apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
astegman has joined #ruby
<Davey> Howdy all; I'm writing an article on using ruby/rails for the first time, and I want to clear something up. This is coming from a PHP developers prospective. Taking something simple like this: https://gist.github.com/dshafik/cdd2cd825e76903acbd2 — I'm trying to breakdown what I'm actually looking at. the ActiveRecord (ActiveRecord::Base) is a module, right? Then belongs_to, has_many and attr_accessible are actually method calls (and could be:
<Davey> belongs_to (:user) for example). What scope are they in? global? this/self? (and inherited from ActiveRecord::Base?)
banisterfiend has quit [Read error: Connection reset by peer]
BoomCow has quit [Quit: This computer has gone to sleep]
banisterfiend has joined #ruby
fragmachine has joined #ruby
<Davey> is there a sort of implicit $this? if so, how do you /not/ use it?
<sam113101> self it's called
<sam113101> you use another object
<Davey> sam113101: so am I right about belongs_to, etc, being method calls? if so, on what object?
rvmeier has joined #ruby
<sam113101> I believe it's on the object Profile
<Davey> so, they are really self.belongs_to
<Davey> or wait, the class itself is an object, as are instances of it… right?
<banisterfiend> Davey: yeah
<Davey> so it's like, prototype in JS at that point. o.O
<banisterfiend> Davey: theyre class methods
<sam113101> the class itself is an object, yes
hbpoison has joined #ruby
<Davey> I think my brain just exploded.
Takehiro has joined #ruby
<banisterfiend> Davey: you can invoke class methods inside the class definition
Davey has quit [Quit: Computer has gone to sleep.]
bryanjswift has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
frank__ has quit [Quit: frank__]
predator217 has joined #ruby
Davey has joined #ruby
Takehiro has quit [Ping timeout: 250 seconds]
<Davey> banisterfiend: are they run at definition time? or when instantiating an instance of it? I presume the former as the class maybe never be instantiated (e.g. Class.foo)
mibitzi has quit [Ping timeout: 264 seconds]
<Davey> (stupid battery)
<Davey> banisterfiend: so I can define a class method inside a class, and call it inside the definition /at the same time/ ?
l3ck has joined #ruby
adayzdone has quit [Quit: Textual IRC Client: www.textualapp.com]
dogweather has joined #ruby
<banisterfiend> Davey: after you've defined it, yes
Criztian has quit [Remote host closed the connection]
<Davey> banisterfiend: wow
predator117 has quit [Ping timeout: 252 seconds]
<banisterfiend> Davey: i.e: class Hello; def self.hello; puts "hello world!"; end; hello; end
SCommette has joined #ruby
<banisterfiend> that will display "hello world" on screen
<Davey> OK, so the self.<name> is how you make it a class method not an instance method.
<banisterfiend> it's one way, yes
<banisterfiend> there's a few ways
<Davey> oh, there are others?
<banisterfiend> yeah
<Davey> (of course there are, it's ruby ;)
ph^ has joined #ruby
postmodern has joined #ruby
SCommette has quit [Client Quit]
<Davey> than you banisterfiend :)
<Davey> *tank
<banisterfiend> np
<Davey> really? *thank
arya has quit [Ping timeout: 245 seconds]
sirish has joined #ruby
benlieb has joined #ruby
jerius has joined #ruby
sambao21 has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
bryanjswift has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
joofsh has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 256 seconds]
cheese1756 has quit [Quit: ZNC - http://znc.in]
arya has joined #ruby
yshh has quit [Remote host closed the connection]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
dogweather has quit [Remote host closed the connection]
cheese1756 has joined #ruby
zastern has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 255 seconds]
chrisramon has quit [Quit: chrisramon]
fragmachine has quit [Remote host closed the connection]
mritr has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
nari has quit [Ping timeout: 252 seconds]
cr3 has quit [Ping timeout: 240 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
subbyyy has joined #ruby
idkazuma has quit [Remote host closed the connection]
brum has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
<Davey> hrm, self is for the *class*, always, right? So self.foo, in PHP we'd do: self::foo() not $this->foo()
<banisterfiend> Davey: PHP code is banned here
<banisterfiend> :P
M- has joined #ruby
<banisterfiend> so nasty
brum has quit [Ping timeout: 245 seconds]
Takehiro has joined #ruby
hogeo has joined #ruby
benlieb has quit [Quit: benlieb]
n8888 has quit [Ping timeout: 246 seconds]
tvw has quit []
arya has quit [Ping timeout: 264 seconds]
mockra has joined #ruby
rakl has joined #ruby
vierja has quit [Ping timeout: 252 seconds]
Takehiro has quit [Ping timeout: 248 seconds]
ryannielson has joined #ruby
monkegjinni has quit [Remote host closed the connection]
arya has joined #ruby
kaffepanna has joined #ruby
banisterfiend is now known as banister`sleep
neilk_ has quit [Quit: Leaving.]
SilverKey has joined #ruby
`brendan has joined #ruby
d34th4ck3r has quit [Ping timeout: 245 seconds]
mockra has quit [Ping timeout: 252 seconds]
rboyd has quit [Quit: rboyd]
emmanuelux has joined #ruby
Catbuntu has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
benlieb has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
bryanjswift has quit [Ping timeout: 252 seconds]
pskosinski has quit [Ping timeout: 264 seconds]
takeru has quit [Remote host closed the connection]
d2dchat has joined #ruby
senayar has quit [Ping timeout: 245 seconds]
banister`sleep has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
Myconix_ has joined #ruby
yshh has joined #ruby
Myconix has quit [Ping timeout: 260 seconds]
kofno has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
kofno has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: Leaving.]
jerius has quit []
jerius has joined #ruby
taoru has joined #ruby
taoru has quit [Remote host closed the connection]
marr has quit [Ping timeout: 245 seconds]
survili has joined #ruby
pdamer has joined #ruby
Xeago has quit [Remote host closed the connection]
eka has joined #ruby
hbpoison has joined #ruby
toekutr has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
Takehiro has joined #ruby
pdamer has quit [Client Quit]
c0rn has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Ping timeout: 248 seconds]
Aiur has quit [Quit: Computer has gone to sleep.]
v0n has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
ph^ has joined #ruby
freakazoid0223 has joined #ruby
tish has quit [Quit: Leaving.]
c0rn has quit [Ping timeout: 240 seconds]
skattyadz has quit [Quit: skattyadz]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
pdamer has joined #ruby
dogweather has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 245 seconds]
skattyadz has joined #ruby
horofox__ has quit [Quit: horofox__]
mahmoudimus has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 252 seconds]
nari has joined #ruby
ryannielson has quit [Quit: ryannielson]
astegman has quit [Quit: Computer has gone to sleep.]
allaire has joined #ruby
pkrnj has joined #ruby
drale2k has quit [Quit: Leaving...]
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
bonhoeffer has joined #ruby
joshman_ has joined #ruby
nfk has quit [Quit: yawn]
benlieb has quit [Quit: benlieb]
axxT has joined #ruby
benlieb has joined #ruby
cw has joined #ruby
v0n has joined #ruby
skattyadz has quit [Quit: skattyadz]
jerius has quit []
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
hbpoison has joined #ruby
mritr has joined #ruby
benlieb has quit [Client Quit]
brum has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
mxweas has joined #ruby
jameshyde has joined #ruby
kevingriffin has joined #ruby
philcrissman has joined #ruby
<mxweas> I'm having trouble solving an odd bug. I have a small script that uploads a file. I'm uploading in chunks. The script on its own works fine. As soon as I add "require 'pg'" it runs out of memory while I upload my file.
allaire has quit []
<mxweas> I used GC profiler, the memory footprint doesn't increase dramatically when I require 'pg'. I have no idea why it's doing this.
`brendan has joined #ruby
brum has quit [Ping timeout: 245 seconds]
Brendino has joined #ruby
jameshyde has quit [Read error: Operation timed out]
mockra has joined #ruby
r0bby is now known as robbyoconnor
joofsh has joined #ruby
Domon has joined #ruby
Stilo has joined #ruby
<gazarsgo> mxweas: you have your AWS credentials in that pastie :-/ time to roll new ones
Brendino has left #ruby [#ruby]
<mxweas> they're already invalid
<gazarsgo> nice work!
<mxweas> ?
sambao21 has quit [Quit: sambao21]
<gazarsgo> i don't know anything about ruby or postgres, so that's all i've got to contribute.
<mxweas> it seems to run out of memory on this line: "ext.value.split(/,\s+/).each{|general_name|"
<mxweas> and fails with: " `value': failed to allocate memory (NoMemoryError)"
l3ck has quit [Quit: Bye!]
<gazarsgo> are you able to use pg in a seperate script successfully ?
mockra has quit [Ping timeout: 248 seconds]
Myconix_ has quit [Ping timeout: 245 seconds]
<mxweas> yes
himsin has quit [Ping timeout: 264 seconds]
<mxweas> I can use both portions in separate scripts that allocate large amounts of memort
<mxweas> memory*
survili has quit [Ping timeout: 255 seconds]
<mxweas> currently tearing apart the openssl gem :|
philcrissman has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
havenn has joined #ruby
christopherlee has joined #ruby
TDJACR_ has quit [Quit: leaving]
<christopherlee> Hey all
<havenn> hi
devbox_ has joined #ruby
TDJACR has joined #ruby
devbox_ has quit [Read error: Connection reset by peer]
rakl has quit [Quit: sleeping]
mva3212 has joined #ruby
<christopherlee> So, I'm trying to figure out how to break this array up. ["one", "two", "three", "Bob andn"]
<christopherlee> ["one", "two", "three", "four five"]
<christopherlee> that's a better example of what i mean.
<christopherlee> i want four and five to be in there own elements.
NiteRain has quit [Ping timeout: 246 seconds]
elico has joined #ruby
<mxweas> array.join(' ').split(' ')
<mxweas> >> ["one", "two", "three", "four five"].join(' ').split(' ')
<mxweas> => ["one", "two", "three", "four", "five"]
<eval-in_> mxweas: Output: "" (http://eval.in/11502)
<christopherlee> oh yeah, sweet thats the one! thanks!
ryanf has quit [Quit: leaving]
io_syl has quit [Ping timeout: 264 seconds]
nfk has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
himsin has joined #ruby
v0n has quit [Read error: Operation timed out]
stkowski has joined #ruby
LouisRoR has joined #ruby
BoomCow has joined #ruby
io_syl has joined #ruby
mahmoudimus has joined #ruby
adayzdone has joined #ruby
jekotia has joined #ruby
X-Jester_ has left #ruby [#ruby]
BoomCow has quit [Client Quit]
X-Jester has joined #ruby
markalanevans has quit [Quit: markalanevans]
LouisRoR has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
bryanjswift has joined #ruby
Takehiro has joined #ruby
allaire has joined #ruby
NiteRain has joined #ruby
jcsims has quit [Quit: leaving]
<mxweas> looks like the aws-sdk gem is crap
mercwithamouth has quit [Ping timeout: 245 seconds]
<mxweas> all fixed
jcsims has joined #ruby
havenn has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
bubblehead has joined #ruby
ph^ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Remote host closed the connection]
frank_ has joined #ruby
mahmoudimus has joined #ruby
ssms has joined #ruby
allaire has quit []
ph^ has quit [Ping timeout: 250 seconds]
subbyyy has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
ngoldman has quit [Remote host closed the connection]
adayzdone has quit [Quit: Textual IRC Client: www.textualapp.com]
PanPan has joined #ruby
twshelton has joined #ruby
<frank_> so yeah, anybody have any input as to where the scripts should have environment setup in it?
frank_ is now known as frank__
<frank__> whether*
w400z has joined #ruby
abstrusenick has joined #ruby
yacks has joined #ruby
<gazarsgo> mxweas: anything but java is a second class citizen as far as aws-sdks go :(
splud has joined #ruby
elico has quit [Remote host closed the connection]
bryanjswift has quit [Quit: Computer has gone to sleep.]
subbyyy has joined #ruby
etcetera has joined #ruby
brum has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
newUser1234 has joined #ruby
V8Energy has quit [Read error: Connection reset by peer]
ssms has quit [Quit: Konversation terminated!]
cephalopod has joined #ruby
V8Energy has joined #ruby
aedornm has quit [Quit: Leaving]
malkomalko has quit [Read error: Connection reset by peer]
jameshyde has joined #ruby
malkomalko has joined #ruby
rvmeier has quit [Quit: Leaving]
mercwithamouth has joined #ruby
ssvo_ is now known as ssvo
arya_ has joined #ruby
emmanuelux has quit [Remote host closed the connection]
arya has quit [Ping timeout: 252 seconds]
jameshyde has quit [Read error: Operation timed out]
cephalopod has quit [Ping timeout: 256 seconds]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
Takehiro has joined #ruby
mockra has joined #ruby
Spooner has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 272 seconds]
chipotle_ has quit [Quit: cya]
arya_ has quit [Ping timeout: 264 seconds]
Takehiro has quit [Ping timeout: 245 seconds]
mockra has quit [Ping timeout: 252 seconds]
scruple has joined #ruby
skattyadz has joined #ruby
kushalkhandelwal has joined #ruby
arya has joined #ruby
tish has joined #ruby
slainer68 has quit [Remote host closed the connection]
SCommette has joined #ruby
elico has joined #ruby
<V8Energy> any ideas why the image doesn't show up when trying to create a Qt gui? http://pastebin.com/zX0xzEqy
jwang has quit [Read error: Connection reset by peer]
jwang has joined #ruby
quazimodo has joined #ruby
dogweather has joined #ruby
<Aristata> V8Energy: I would wager it's not looking in the right dir, but I have never used any gui stuff.
takeru has joined #ruby
<V8Energy> it's in the same dir as the script
wmoxam has quit [Quit: leaving]
kofno has quit [Remote host closed the connection]
arya has quit [Ping timeout: 240 seconds]
`brendan has quit [Read error: Connection reset by peer]
cephalopod has joined #ruby
mneorr has joined #ruby
takeru has quit [Ping timeout: 248 seconds]
skattyadz has quit [Quit: skattyadz]
drumond19 has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
arya has joined #ruby
rakl has joined #ruby
sirish_ has joined #ruby
<whitequark> V8Energy: strace it
<whitequark> strace -eopen ./yourapp
<whitequark> you'll see if it can open the file
SCommette has quit [Quit: SCommette]
ryanf has joined #ruby
sirish has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
casheew has quit [Read error: Connection reset by peer]
huoxito has quit [Ping timeout: 260 seconds]
Nisstyre-laptop has joined #ruby
arya has quit [Ping timeout: 264 seconds]
casheew has joined #ruby
kofno has joined #ruby
chrisramon has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
sirish_ has quit [Ping timeout: 252 seconds]
arya has joined #ruby
dogweather has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
sailias has quit [Quit: Leaving.]
zellio has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
Takehiro has quit [Remote host closed the connection]
sailias has joined #ruby
dhruvasagar has joined #ruby
yourmysin has quit [Read error: Connection reset by peer]
pdamer has quit [Quit: pdamer]
jrajav has joined #ruby
forced_request has joined #ruby
ph^ has joined #ruby
philcrissman has joined #ruby
sayan has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
ozgura has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
mneorr has quit [Read error: Connection timed out]
ph^ has quit [Ping timeout: 252 seconds]
Skofo has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
<Skofo> I like Ruby
mneorr has joined #ruby
huoxito has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
tish1 has joined #ruby
tish has quit [Read error: No route to host]
Vert has quit [Ping timeout: 252 seconds]
Nanuq has quit [Read error: Operation timed out]
<Skofo> Wish some things were more documented though.
pdamer has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
philcrissman has quit [Remote host closed the connection]
SilverKey has quit [Quit: "Sleep now."]
<frank__> Skofo: like what?
<frank__> also, does Rake make any environment variables available that an external script could check?
<frank__> trying to get a script to be able to be run standalone or through rake
pdamer has quit [Client Quit]
tish1 has quit [Quit: Leaving.]
tish has joined #ruby
<Skofo> Actually, nevermind, I think this here article has the answer to all my questions http://guides.rubygems.org/make-your-own-gem/
<frank__> I'm using a new client and not sure if anybody is seeing what I'm saying - can somebody confirm they're seeing this?
<ddd> hah, nice try. answer that you can see him, then be jumped on with 'so, got an answer for me since you can see me?'
<felixjet> is rails required as it looks?
lewix has quit [Remote host closed the connection]
<frank__> alright nice, at least i'm not talking to nobody
jameshyde has joined #ruby
<gazarsgo> you may still be talking to nobody, whether in the singular or the plural sense
zellio has left #ruby [#ruby]
<frank__> felixjet: not sure what you're asking
counter-riposte2 has quit [Ping timeout: 252 seconds]
<felixjet> well... in php you dont need to use a framework... by far
<felixjet> but in ruby, rails looks like a must
<felixjet> its almost more commented than the ruby language
NiteRain has joined #ruby
<frank__> felixjet: no, definitely not. I would recommend not using it if you're not doing something where MVC makes sense
<felixjet> what if u build ur own MVC ?
<frank__> then use rails
<ddd> then why would you need it?
<felixjet> why?
abstrusenick has joined #ruby
<felixjet> thats the problem... whenever u need to use MVC, "rails" looks like a must :/
<frank__> because its there and it works and there's a community
<ddd> if you're building your own you obviously wouldn't need rails. you're making your own. if you want to use the *rails* framework's idea of how to implement MVC apps, then use that
<felixjet> rails have a template engine?
<ddd> if you don't want rails, then use sinatra, or ramaze or something like that
cw has quit [Quit: Page closed]
<ddd> rubyonrails.org
sambao21 has joined #ruby
<felixjet> kk ;p
<ddd> if rails isn't what you want, then google up sinatra or ramaze
<felixjet> so it looks like is an advantage to code it urself?
<frank__> yeah rails supports a bunch of template engines
<felixjet> and better use rails, sinatra, ramaze, or whatever
<felixjet> disvantage i meant to say
jameshyde has quit [Ping timeout: 245 seconds]
cyberflux has quit []
havenn has quit [Remote host closed the connection]
<frank__> if you're trying to get something useful to users built that lends itself heavily to rails MVC then its faster to use rails. if you're just building for the sake of building/learning/hobbying then build a framework yourself, sure
ccbn has joined #ruby
<ddd> what frank__ said
<frank__> felixjet: can't be answered as a general question. Its really useful for certain use cases, really really useless for others
justsee has joined #ruby
mockra has joined #ruby
<ddd> if you're looking for a 1-1 mapping from php world to ruby or rails world, you're not going to find it
<felixjet> i never understood the use of frameworks :/
<ddd> convention over configuration
<ddd> follow the defaults, spend more time coding
chrishough has quit [Quit: chrishough]
<felixjet> i made my own mvc "framework" with database abstraction layers with like 50-100 lines of code
<ddd> veer off defaults spend more time configuring and doing other crap
<ddd> good, then go build the same in ruby
<felixjet> yea i planned to migrate it
<ccbn> I'm playing with Observable, tweaking a sample from the Ruby source: https://github.com/ruby/ruby/blob/trunk/sample/observ.rb When I write a version to output MPD info the outputted text concatenates, the Ruby example replaces the text on each update.
<felixjet> its very simple but i dont need a ton of libraries that i wont use
<ddd> then don't use them
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<ddd> if you're just trying to make veiled snicks at rails because you don't like it, or feel its a lame implementation don't waste the time. we hear it day in and day out.
<felixjet> nah, i was just asking
<felixjet> because whenever you see ruby, the word rails is around
<felixjet> just wanted to know if its a like a must
havenn has joined #ruby
stkowski has quit [Quit: stkowski]
<ddd> ruby != rails ; rails != ruby core. its just a framework. ignore the framework, enjoy the language
<ddd> Net::HTTP etc for your fun
<ddd> no its not a must
blahwoop has joined #ruby
mneorr has quit [Read error: Connection timed out]
<felixjet> kk :P dont get mad xD
<ddd> just rails is a very big elephant in the ruby world
<ddd> can you anything you want and never touch rails
frank__ has quit [Ping timeout: 245 seconds]
mockra has quit [Ping timeout: 256 seconds]
mneorr has joined #ruby
<ddd> its like having a star hitter on a team. the hitter isn't the team, he's just one player. he's a player that casts a huge light on the team, but he's not the entire team. same applies to rails and ruby
<felixjet> that looks like a disvantage :P
<ddd> only because you perceive it that way
<felixjet> probably
<felixjet> to be honest, i dont imagine javascript without jquery this days
<ddd> ruby was here before rails, ruby will be here after rails, ruby will be here after 'the next big thing'
<felixjet> maybe rails is more or less the same
etcetera has quit [Ping timeout: 256 seconds]
<felixjet> yea thats true
<bean> I much prefer writing simple things that require a web framework in Sinatra anyways.
<felixjet> ill take a look at sinatra too
<felixjet> didnt read anything at all
<ddd> i like rails. is rails 'ruby' to me? not by a long shot
sambao21 has quit [Quit: sambao21]
<ddd> i just find it fun (rails). but there's ramaze as well, and there's always node.js :)
* bean works for a scala shop.
<bean> as a sysadmin
* ddd waits for his head to be hacked off for the node comment
hbpoison has quit [Ping timeout: 250 seconds]
joofsh has quit [Remote host closed the connection]
kushalkhandelwal has quit [Quit: Leaving.]
bradleyprice has joined #ruby
etcetera has joined #ruby
<ddd> i personally like that i can take any assignment from my college class for java, rewrite in in ruby, and do it faster, less lines, and have it read cleaner, and execute faster.
sambao21 has joined #ruby
<ddd> i like, though, that i can run jruby and as long as i do the work if it hasn't been done already and use any java library with it.
<ddd> tons of things to do in the ruby world
<bean> faster... really?
<ddd> so far
<felixjet> java is slow
<bean> surprising
<ddd> only on startup
<bean> javas only slow on startup
<bean> and real processing is pretty good
unconsolably04 has joined #ruby
w400z has quit []
<ddd> take it out for a spin, kick the tires. doubt you'll be disappointed with ruby
mikepack has quit [Remote host closed the connection]
bonhoeffer has quit [Quit: bonhoeffer]
huoxito has quit [Quit: Leaving]
Aristata1 has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
arya has quit [Ping timeout: 264 seconds]
r0bby has joined #ruby
hemanth has quit [Ping timeout: 264 seconds]
christopherlee has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 248 seconds]
robbyoconnor has quit [Ping timeout: 256 seconds]
Nisstyre-laptop has joined #ruby
Aristata has quit [Ping timeout: 252 seconds]
joeycarmello has quit [Remote host closed the connection]
Aristata1 has quit [Client Quit]
arya has joined #ruby
scruple has quit [Quit: Leaving]
newUser1234 has quit [Remote host closed the connection]
brum has quit [Remote host closed the connection]
newUser1234 has joined #ruby
abstrusenick has quit [Ping timeout: 252 seconds]
twshelton has joined #ruby
brum has joined #ruby
Emplitz has joined #ruby
benlieb has joined #ruby
mneorr has quit [Read error: Connection timed out]
bonhoeffer has joined #ruby
chrisramon has quit [Quit: chrisramon]
wgolden_ has joined #ruby
wgolden_ has left #ruby [#ruby]
bonhoeffer has quit [Client Quit]
mneorr has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
wgolden_ has joined #ruby
wgolden_ has left #ruby [#ruby]
iamjarvo has joined #ruby
newUser1234 has quit [Ping timeout: 248 seconds]
<Skofo> Why does "require 'hola'" work in that test, but in irb it doesn't?
brum has quit [Ping timeout: 264 seconds]
<Skofo> Or in the Rakefile?
wgolden_ has joined #ruby
wgolden_ has left #ruby [#ruby]
sambao21 has joined #ruby
Nanuq has joined #ruby
kennyvb has quit [Read error: Operation timed out]
mikepack has joined #ruby
abstrusenick has joined #ruby
jpcamara has joined #ruby
drumond19 has quit [Remote host closed the connection]
bryanjswift has joined #ruby
sambao21 has quit [Client Quit]
M- has quit [Quit: Leaving]
radic has joined #ruby
hemanth has joined #ruby
Takehiro has joined #ruby
kofno has quit [Remote host closed the connection]
mockra has joined #ruby
lancepantz is now known as lancepantz_
ph^ has joined #ruby
elico has quit [Quit: elico]
radic_ has quit [Ping timeout: 245 seconds]
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
jpcamara has quit [Ping timeout: 248 seconds]
newUser1234 has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
moises has joined #ruby
kennyvb has joined #ruby
justsee has quit [Quit: Leaving...]
bryanjswift has quit [Quit: Computer has gone to sleep.]
moises has left #ruby [#ruby]
blahwoop has quit [Ping timeout: 276 seconds]
ph^ has quit [Ping timeout: 255 seconds]
mneorr has quit [Read error: Connection timed out]
mxweas has quit [Read error: Connection reset by peer]
mritr has quit [Quit: Ex-Chat]
sandGorgon has joined #ruby
mritr_ has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
mneorr has joined #ruby
stopbit has quit [Quit: Leaving]
elico has joined #ruby
kevingriffin has quit [Read error: Connection reset by peer]
justsee has joined #ruby
philcrissman has joined #ruby
philcrissman has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
philcrissman has joined #ruby
joeycarmello has joined #ruby
divout has joined #ruby
newUser1234 has quit [Remote host closed the connection]
robert__ has joined #ruby
ngoldman has joined #ruby
nfk has quit [Quit: yawn]
robert_ has quit [Ping timeout: 256 seconds]
joeycarmello has quit [Ping timeout: 240 seconds]
himsin has quit [Remote host closed the connection]
sambao21 has joined #ruby
himsin has joined #ruby
Michael__ has joined #ruby
brum has joined #ruby
jameshyde has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
brum has quit [Ping timeout: 248 seconds]
mahmoudimus is now known as mahmoudimus|away
jameshyde has quit [Ping timeout: 245 seconds]
brum has joined #ruby
mneorr has quit [Read error: Connection timed out]
mneorr has joined #ruby
<lewix> am i the only one who finds unless more confusing than it should be
<lewix> unless foo; blah blah; end
girija has joined #ruby
philcrissman has quit [Remote host closed the connection]
<lewix> what would you substitute unless for in the english language. if !foo sounds more clear to me
<lewix> except if?
<yfeldblum> lewix, it's more conducive as an expression modifier
<yfeldblum> lewix, `blah blah unless foo`
mahmoudimus|away has quit [Quit: Computer has gone to sleep.]
<lewix> yfeldblum: true.
subbyyy has quit [Remote host closed the connection]
<lewix> yfeldblum:' blah blah if not foo' is even more conductive
subbyyy has joined #ruby
<yfeldblum> lewix, to each his own
<lewix> yfeldblum: I guess so
<Hanmac1> you can doo this too: " for c in "abc".each_char; p c; end " ... its still bad code style
Michael__ has quit [Remote host closed the connection]
cr3 has joined #ruby
cr3 has quit [Client Quit]
Artheist has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
takeru has joined #ruby
philcrissman has joined #ruby
Loaft has quit [Ping timeout: 246 seconds]
cyong has joined #ruby
hbpoison has joined #ruby
takeru has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
joeycarmello has joined #ruby
one has quit [Ping timeout: 246 seconds]
xorgnak has joined #ruby
zubov_ has quit [Quit: This computer has gone to sleep]
mneorr has quit [Read error: Connection timed out]
philcrissman has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
kofno has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
joeycarmello has quit [Ping timeout: 245 seconds]
one has joined #ruby
dhruvasagar has joined #ruby
benlieb has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
jpfuentes2 has joined #ruby
mibitzi has joined #ruby
macmartine has joined #ruby
unconsolably04 has quit [Ping timeout: 256 seconds]
xorgnak has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
apok has joined #ruby
brum has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
ph^ has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
mneorr has quit [Read error: Connection timed out]
angusiguess has joined #ruby
ph^ has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
havenn has quit [Remote host closed the connection]
<Matip> [root@localhost:/var/lib/gems/1.8/gems/rvm-1.11.3.6/lib]# ruby rvm.rb list known
<Matip> ^ empty
<Matip> shouldn't be something there?
jameshyde has joined #ruby
jamesfung14 has quit [Ping timeout: 264 seconds]
<yfeldblum> Matip, the real RVM is a set of shell scripts, not a ruby gem; and the command is `rvm list known` (rvm is a shell function)
benlieb has quit [Quit: benlieb]
angusiguess has quit [Ping timeout: 255 seconds]
coderhs has joined #ruby
jpcamara has joined #ruby
tomzx_mac has quit [Ping timeout: 240 seconds]
<Matip> ok, I'm installing it using what I found in its webpage
<Matip> [root@localhost:~]# curl -L https://get.rvm.io | bash -s stable --ruby [0:28]
<Matip> % Total % Received % Xferd Average Speed Time Time Time Current
<Matip> Dload Upload Total Spent Left Speed
<Matip> 0 0 0 0 0 0 0 0 --:--:-- 0:00:21 --:--:-- 0
<Matip> curl: (7) couldn't connect to host
<Matip> I guess the server is down? :P
<rking> Matip: Unless you have an amazingly fantastic reason to use rvm: please use rbenv or chruby
<Matip> I want to install 1.9.x in debian stable
<Matip> which only has 1.8.x
<rking> Yes.
<rking> Then definitely just go with rbenv.
<Matip> ok, let me see
<bean> eh, RVM works.
<bean> fwiw
<bean> and no, get.rvm.io is not down
bubblehead has quit [Remote host closed the connection]
<rking> Note that step 5 is a bit abbreviated. Hop to https://github.com/sstephenson/ruby-build#readme for that part.
<rking> Bleh. RVM works for some bizarre definition of "works"
<bean> I've never had any issues with it
SCommette has joined #ruby
<Matip> "$ rbenv install 1.9.3-p327"
joeycarmello has joined #ruby
<Matip> rbenv install not found u.u
<Matip> it's in the official doc but not in rbenv help
<Matip> lol
<hemanth> ssh.exec! needs full path to the commands ?
<Matip> rking, what's the way to install a version using rbenv?
<bean> Matip, he even told you that step was abbreviated.
<hemanth> it's not picking the cmd even though the path is present in $PATH
coderhs has quit [Read error: Connection reset by peer]
<rking> Matip: (See my comment above saying, "note that step 5…")
jpcamara has quit [Ping timeout: 248 seconds]
Mattx has joined #ruby
<bean> hemanth, you could source your ~/.bashrc once you star the session
malkomalko has quit [Remote host closed the connection]
<bean> hemanth, "source /home/user/.bashrc && command"
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
benlieb has joined #ruby
<hemanth> bean, ssh.exec!(". ~/.bashrc")
<hemanth> must do it....trying
quazimodo has joined #ruby
<bean> you may be right.
<bean> it might need to be &&'d though, since i think each exec! is independant
<bean> puts ssh.exec!("echo $PATH")
<bean> will give your path though
joeycarmello has quit [Ping timeout: 250 seconds]
Matip has quit [Ping timeout: 245 seconds]
<hemanth> okies
IcyDragon has quit [Quit: Space~~~]
<hemanth> bean, you are right, ssh.exec! is idenpendant!
<bean> :)|
unconsolably04 has joined #ruby
tyfighter has joined #ruby
arya has quit [Ping timeout: 250 seconds]
mneorr has quit [Read error: Connection timed out]
mneorr has joined #ruby
brum has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
arya has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
hashmal has joined #ruby
vlad_starkov has joined #ruby
brum has quit [Ping timeout: 245 seconds]
elico has quit [Quit: elico]
vlad_starkov has quit [Ping timeout: 240 seconds]
alexy has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
sandGorgon has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 255 seconds]
<Mattx> ok, so I have installed rbenv
<Mattx> I installed ruby 1.9.3
alexy has left #ruby ["Leaving"]
jrajav has quit [Quit: I tend to be neutral about apples]
AsgardBSD has joined #ruby
<Mattx> and I installed bundle
<Mattx> but $ bundle says command not found
AsgardBSD has left #ruby [#ruby]
<Mattx> ruby -v is now 1.9.3
<Mattx> what am I missing?
bryanjswift has joined #ruby
mneorr has quit [Read error: Connection timed out]
Michael__ has joined #ruby
joeycarmello has joined #ruby
<rking> Mattx: Did you: gem install bundler
mneorr has joined #ruby
<hemanth> bean, if path is not set, mostly we got to use which cmd and then exec!
<Mattx> I did and first time it worked (probably because it was still 1.8)
<Mattx> now I get
`p has quit [Remote host closed the connection]
<bean> I would just use full paths, hemanth
<Mattx> ERROR: Loading command: install (LoadError) cannot load such file -- zlib
<Mattx> ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand
<Mattx> :|
Michael__ has quit [Read error: Operation timed out]
<hemanth> bean, that way i must be knowing the full paths of each cmd, which would return the same, is in't?
bradleyprice has quit [Remote host closed the connection]
`p has joined #ruby
arya has joined #ruby
tyfighter has quit [Quit: tyfighter]
<Mattx> any idea?
joeycarmello has quit [Ping timeout: 245 seconds]
SCommette has quit [Quit: SCommette]
mercwithamouth has quit [Ping timeout: 245 seconds]
rakl has quit [Quit: sleeping]
noop has joined #ruby
mercwithamouth has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
Axsuul has joined #ruby
tyfighter has joined #ruby
sandGorgon has joined #ruby
<Mattx> OMG -.-"
<Mattx> it doesn't work, I think I'll completely remove 1.8
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
sambao21 has quit [Quit: sambao21]
nachtwandler has joined #ruby
Rix has quit [Ping timeout: 260 seconds]
ph^ has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
mneorr has quit [Read error: Connection timed out]
tyfighter has quit [Quit: tyfighter]
angusiguess has joined #ruby
mneorr has joined #ruby
ckrailo has joined #ruby
kx has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby
ph^ has quit [Ping timeout: 256 seconds]
chrishunt has quit [Quit: ZzZzZz...]
angusiguess has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: Leaving.]
rippa has joined #ruby
Wixy has joined #ruby
<Wixy> Hi
<Wixy> how do yo ufix problems like this one: http://paste.kde.org/687050/
<Wixy> ?
<Wixy> "Make sure that `gem install json -v '1.7.7'` succeeds before bundling"
<hemanth> Wixy, sudo aptitude install ruby1.9.1-dev
<hemanth> Wixy, sudo aptitude install rubyX.X-dev
<Wixy> ok, installing
a_a_g has joined #ruby
<hemanth> or just sudo apt-get install ruby-dev must do it as well
kx has joined #ruby
wallerdev has quit [Quit: wallerdev]
<hemanth> mkmf is missing in ur case
benlieb_ has joined #ruby
<Wixy> yep
<Wixy> it's solved now
<Wixy> but I get a similar error for pg
mockra has quit [Remote host closed the connection]
<Wixy> I'm installing ruby-pg
<hemanth> similar error?
<Wixy> similar in the sense that it crashes like with json :P
<Wixy> let me paste it
<hemanth> Wixy, gem install pg -- --with-pg-config=<path to pg_config>
cyong has quit [Quit: Leaving.]
joeycarmello has joined #ruby
<Wixy> yep, it says it there the same
<Wixy> thanks
<hemanth> guessed it before the link heh heh
benlieb has quit [Ping timeout: 245 seconds]
benlieb_ is now known as benlieb
elico has joined #ruby
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
pyrac has joined #ruby
apok has quit [Quit: apok]
<Wixy> nice, I don't have pg_config :D
coderhs has joined #ruby
<hemanth> Wixy, you must if you have pg
<coderhs> auto-identify!
joeycarmello has quit [Ping timeout: 252 seconds]
<Wixy> jk :P
braoru has joined #ruby
<hemanth> whereis pg_config
<Wixy> yep, I found it
<Wixy> I'm dealing with another problem now
bryanjswift has quit [Ping timeout: 252 seconds]
* Wixy wonders why it's never straightforward
<hemanth> it is, you need some time that's it
<Wixy> almost done
<Wixy> done!!
nachtwandler has quit [Remote host closed the connection]
V8Energy has quit [Ping timeout: 255 seconds]
mneorr has quit [Read error: Connection timed out]
mneorr has joined #ruby
mikepack has quit [Remote host closed the connection]
bryanjswift has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
brum has joined #ruby
engel has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
survili has joined #ruby
sandGorgon has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
Pandaen has joined #ruby
mafolz has joined #ruby
brum has quit [Ping timeout: 245 seconds]
larissa has quit [Quit: Leaving]
apok has joined #ruby
mneorr has quit [Read error: Operation timed out]
lectrick has quit [Read error: Operation timed out]
dhruvasagar has joined #ruby
mneorr has joined #ruby
NimeshNeema has quit [Ping timeout: 245 seconds]
cool has quit [Ping timeout: 248 seconds]
octarine has quit [Ping timeout: 252 seconds]
im0b has quit [Ping timeout: 246 seconds]
randym has quit [Ping timeout: 252 seconds]
himsin has quit [Remote host closed the connection]
pkondzior__ has quit [Ping timeout: 272 seconds]
Guest85414 has quit [Ping timeout: 264 seconds]
dekz__ has quit [Ping timeout: 264 seconds]
cam` has quit [Ping timeout: 246 seconds]
fcoury has quit [Ping timeout: 260 seconds]
himsin has joined #ruby
karnowski has quit [Ping timeout: 260 seconds]
SeanTAllen has quit [Ping timeout: 276 seconds]
dnyy has quit [Ping timeout: 276 seconds]
rramsden has quit [Quit: leaving]
blooberr has quit [Ping timeout: 276 seconds]
blaxter has joined #ruby
tagrudev has joined #ruby
sandGorgon has joined #ruby
arietis has joined #ruby
spanx has quit [Ping timeout: 252 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
carraroj has joined #ruby
arya has quit [Ping timeout: 256 seconds]
survili has quit [Ping timeout: 255 seconds]
one has quit [Ping timeout: 252 seconds]
<Wixy> I'm using passenger-install-apache2-module to install passenger and it says "ext/common/Utils/SystemTime.cpp:37:1: fatal error: error writing to /tmp/cc2gvcoc.s: No space left on device"
one has joined #ruby
<Wixy> I think I have found 10 ways in which installing ruby, rails and passenger can fail :(
<Wixy> and you say it's straightforward, hemanth? haha
Mon_Ouie has quit [Ping timeout: 256 seconds]
subbyyy has quit [Ping timeout: 260 seconds]
<hemanth> Wixy, No space left on device! Are you on a VM?
<Wixy> no
<otters> module prepending is kool
arya has joined #ruby
<Wixy> in fact du -ch /tmp says it has.. nothing
<Wixy> 0
testingb0t has joined #ruby
<Wixy> I mounted another partition to /tmp, now it seems it's compiling it correctly
<Wixy> but.. I'm sure I'll face another problem before it finishes -.-
<Wixy> seriously, Linux have a really big problem with simplicity..
<lewix> Hanmac: do you have some time to waste. I want to understand something
blooberr has joined #ruby
ph^ has joined #ruby
mneorr has quit [Read error: Connection timed out]
<hemanth> vectorshevels what's ur new nick :P ?
locriani has quit [Remote host closed the connection]
bryanjswift has quit [Quit: Computer has gone to sleep.]
ph^ has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
mneorr has joined #ruby
testingb0t has quit [Quit: Leaving.]
arya has quit [Ping timeout: 245 seconds]
angusiguess has joined #ruby
puppeh has joined #ruby
arya has joined #ruby
bobdobbs has quit [Remote host closed the connection]
bobdobbs has joined #ruby
Pandaen has quit [Remote host closed the connection]
one has quit [Ping timeout: 252 seconds]
angusiguess has quit [Ping timeout: 245 seconds]
mikurubeam has quit [Ping timeout: 245 seconds]
ccbn has quit [Quit: Page closed]
neku has joined #ruby
monkegjinni has joined #ruby
girija has quit [Ping timeout: 240 seconds]
mikurubeam has joined #ruby
gtuckerkellogg has joined #ruby
fivetwentysix has joined #ruby
fivetwentysix has quit [Client Quit]
fivetwentysix has joined #ruby
one has joined #ruby
dekz__ has joined #ruby
sirish has joined #ruby
joeycarmello has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mneorr has quit [Read error: Connection timed out]
fire has joined #ruby
mpfundstein has joined #ruby
mneorr has joined #ruby
neurotech has joined #ruby
bigkevmcd has joined #ruby
andikr has joined #ruby
girija has joined #ruby
joeycarmello has quit [Ping timeout: 260 seconds]
whowantstolivef1 has quit [Quit: who wants to live forever ?]
nomenkun has quit [Remote host closed the connection]
whowantstolivefo has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
pyrac has quit [Quit: pyrac]
Edward__ has quit [Ping timeout: 272 seconds]
hemanth has joined #ruby
mneorr has quit [Read error: Operation timed out]
brum has joined #ruby
mneorr has joined #ruby
piotr_ has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
brum has quit [Ping timeout: 245 seconds]
filipe has joined #ruby
pkrnj has joined #ruby
benlieb has quit [Quit: benlieb]
vlad_starkov has joined #ruby
mpfundstein has quit [Remote host closed the connection]
Al__ has joined #ruby
monkegjinni has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
jimeh has joined #ruby
m3pow has joined #ruby
etcetera has quit []
elico has quit [Quit: elico]
ddv has joined #ruby
generalissimo has quit [Remote host closed the connection]
Rix has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
decentrality has quit [Quit: demonstrate freedom //]
joeycarmello has joined #ruby
krz has joined #ruby
zigomir has joined #ruby
jef_abraham has joined #ruby
fire has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby
mneorr has quit [Read error: Connection timed out]
joeycarmello has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Remote host closed the connection]
vabenjamin has left #ruby [#ruby]
mneorr has joined #ruby
monkegjinni has joined #ruby
threesome has quit [Ping timeout: 260 seconds]
MrZYX|off is now known as MrZYX
fire has joined #ruby
TheFuzzball has joined #ruby
seraph has joined #ruby
eldariof has joined #ruby
Davey has joined #ruby
piotr_ has quit [Ping timeout: 245 seconds]
clocKwize has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
horofox has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
sandGorgon has quit [Ping timeout: 252 seconds]
atmosx has joined #ruby
clocKwize has quit [Client Quit]
jdunck has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
emergion has joined #ruby
vlad_starkov has joined #ruby
Al__ has quit [Quit: Al__]
ozgura has joined #ruby
sirish has quit [Ping timeout: 240 seconds]
mritr_ has quit [Ping timeout: 240 seconds]
mneorr has quit [Read error: Connection timed out]
mneorr has joined #ruby
sandGorgon has joined #ruby
thinkclay has quit [Quit: Leaving.]
seraph has quit [Remote host closed the connection]
drKreso has joined #ruby
Myconix has joined #ruby
drKreso has left #ruby [#ruby]
pyrac has joined #ruby
mpfundstein has joined #ruby
joeycarmello has joined #ruby
horofox has quit [Quit: horofox]
ryanf has quit [Quit: leaving]
jameshyde has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
oposomme has joined #ruby
oposomme has quit [Client Quit]
Guest90863 has joined #ruby
<Guest90863> Hi guys, I have an array where is in one column the same value. I would like to group_by the array according the column, but I have a bit issue how to do that. I am trying this - https://gist.github.com/anonymous/3d7ed0dcd57bb00144ca, but the output is not exactly what I would need… could you help me please with that?
joeycarmello has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Quit: Leaving.]
<lewix> If you want to access a class variable outside of a class hierarchy or instances of the class(or subclasses) you need to define accessor methods,right?
ananthakumaran has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
gokul has joined #ruby
maxmanders has joined #ruby
mneorr has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
<lewix> Guest90863: it's a hash
Hanmac1 has joined #ruby
Hanmac1 has quit [Client Quit]
wreckimnaked has joined #ruby
Hanmac1 has joined #ruby
brum has joined #ruby
Mattx has quit [Remote host closed the connection]
Wixy has quit [Remote host closed the connection]
anderse has joined #ruby
threesome has joined #ruby
mpfundstein_ has joined #ruby
gosshedd has joined #ruby
chussenot has joined #ruby
nomenkun has joined #ruby
Xeago has joined #ruby
obs has joined #ruby
marr has joined #ruby
mpfundstein has quit [Ping timeout: 245 seconds]
brum has quit [Ping timeout: 248 seconds]
tesuki has joined #ruby
<lewix> Guest90863: what exactly are you trying to do
takeru_ has joined #ruby
aqabiz has joined #ruby
kalleth_ is now known as kalleth
beiter has joined #ruby
daniel_- has joined #ruby
takeru_ has quit [Ping timeout: 255 seconds]
nari has quit [Ping timeout: 245 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
rippa has quit [Ping timeout: 240 seconds]
kristofers has joined #ruby
macsim has joined #ruby
<macsim> hi, I'm on ubuntu and try to make sass working, I use ruby 1.9 but when I start it say Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) it's a bug ? thanks
aedorn has quit [Read error: Connection reset by peer]
waxjar has quit [Ping timeout: 264 seconds]
waxjar has joined #ruby
ngoldman has quit [Remote host closed the connection]
Axsuul has quit [Ping timeout: 256 seconds]
rburton- has joined #ruby
<Hanmac1> macsim its not a bug
pskosinski has joined #ruby
joeycarmello has joined #ruby
<macsim> Hanmac1, I don't don't know what's going wrong it's a sass error or ruby ?
Takehiro has joined #ruby
horrror has joined #ruby
<Hanmac1> show us your code ... (you need to tell ruby that your rb files has non-ascii chars ...) google after magic encoding
lkba has joined #ruby
<macsim> Hanmac1, it's not my code it's just a gem installed
<horrror> what is the best/efficient way to assign a function value into a variable? if not function.empty? x = function
<macsim> Hanmac1, gem install sass && sass sassdir:cssdir
<Hanmac1> hmm than maybe the gem is to dumb ..
<horrror> this would call the function twice. is there a way to make it less lame?
herb_ has joined #ruby
<macsim> Hanmac1, I install it with gem1.8 instead of 1.9 know it's work
Al__ has joined #ruby
<Hanmac1> horrror: unless (val = function).empty? x = val; end
sk87 has joined #ruby
jprovazn has joined #ruby
<horrror> Hanmac1: thanks nice
<Hanmac1> macsim: i dont know sass ... maybe there is something wrong with it
joeycarmello has quit [Ping timeout: 260 seconds]
Morkel has joined #ruby
<Hanmac1> macsim did you have some files written in ruby for sass?
<macsim> Hanmac1, sass is a gem
mneorr has joined #ruby
<Hanmac1> macsim i know ... but what is in your sassdir? did you allready make some files?
svandiepen has quit [Remote host closed the connection]
<MrZYX> macsim: is your system locale set to a UTF-8 one? are the files you want to process with sass saved as UTF-8 ones?
TheFuzzball has quit [Ping timeout: 260 seconds]
noxoc has joined #ruby
<macsim> Hanmac1, yes a style.sass in UTF8, I told you I just install sass with gem1.8 and know it works like a charm
<macsim> Hanmac1, just don't works with1.9
TheFuzzball has joined #ruby
seraph has joined #ruby
<Hanmac1> so i think that the style.sass file need it too
<macsim> Hanmac1, I thy this doesn't works
<macsim> s/thy/try
<Hanmac1> hm then you may ask the guys at #sass ... it may not be rubies fault when they does shit
<macsim> Hanmac1, I did but nobody answer me, that why I tried here, but thanks for help, know it's work
<macsim> s/know/now
<macsim> need some sleep
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
TomJ_ has joined #ruby
TomJ has quit [Ping timeout: 252 seconds]
TomJ_ is now known as TomJ
lolmaus has joined #ruby
Guest90863 has quit [Quit: Leaving.]
mneorr has quit [Ping timeout: 260 seconds]
angusiguess has joined #ruby
arya_ has joined #ruby
kevingriffin has joined #ruby
herb_ has left #ruby [#ruby]
seraph has quit [Ping timeout: 255 seconds]
rdark has joined #ruby
Vainoharhainen has joined #ruby
arya has quit [Ping timeout: 250 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
aganov has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
Astralum has joined #ruby
Skofo has quit [Read error: Operation timed out]
lectrick has joined #ruby
herbnerder has joined #ruby
karnowski has joined #ruby
im0b has joined #ruby
pkondzior__ has joined #ruby
Astral_ has quit [Ping timeout: 256 seconds]
cool has joined #ruby
Davey has joined #ruby
fcoury has joined #ruby
cam` has joined #ruby
Guest85414 has joined #ruby
dnyy has joined #ruby
randym has joined #ruby
octarine has joined #ruby
SeanTAllen has joined #ruby
cha1tanya has quit [Ping timeout: 245 seconds]
ephemerian has joined #ruby
ddv has left #ruby [#ruby]
chendo_ has quit [Ping timeout: 260 seconds]
sayan has quit [Read error: Connection reset by peer]
NimeshNeema has joined #ruby
tesuki has quit [Remote host closed the connection]
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
horrror has quit [Ping timeout: 252 seconds]
spanx has joined #ruby
LouisRoR has joined #ruby
JoeTheGuest has quit [Changing host]
JoeTheGuest has joined #ruby
fire has quit [Quit: WeeChat 0.4.0]
sandGorgon has quit [Ping timeout: 245 seconds]
apod has joined #ruby
chussenot has quit [Quit: chussenot]
Takehiro has quit [Remote host closed the connection]
arturaz has joined #ruby
poikon has joined #ruby
joeycarmello has joined #ruby
khismetix has joined #ruby
slainer68 has joined #ruby
joeycarmello has quit [Ping timeout: 240 seconds]
ozgura has quit [Remote host closed the connection]
browndawg has joined #ruby
chussenot has joined #ruby
Takehiro has joined #ruby
earthquake has quit [Quit: earthquake]
k610 has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
dawkirst_ is now known as dawkirst
horrror has joined #ruby
brum has joined #ruby
sandGorgon has joined #ruby
chendo_ has quit [Ping timeout: 257 seconds]
horrror has quit [Client Quit]
arya has joined #ruby
chendo_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
brum has quit [Ping timeout: 245 seconds]
nari has joined #ruby
timmow has joined #ruby
one has quit [Ping timeout: 248 seconds]
mpfundstein has joined #ruby
mpfundstein_ has quit [Ping timeout: 245 seconds]
atmosx has quit [Quit: And so the story goes…]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
Davey has quit [Quit: Computer has gone to sleep.]
freeayu has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
arya has quit [Ping timeout: 255 seconds]
AndChat| has joined #ruby
Virunga has joined #ruby
yshh has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 245 seconds]
freeayu has joined #ruby
Mon_Ouie has joined #ruby
akam-it has joined #ruby
hamed_r has joined #ruby
Banistergalaxy has quit [Ping timeout: 255 seconds]
arya has joined #ruby
joeycarmello has joined #ruby
skattyadz has joined #ruby
macq has quit [Quit: Lost terminal]
joeycarmello has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
pyrac has quit [Read error: Connection reset by peer]
pyrac_ has joined #ruby
arya has quit [Ping timeout: 264 seconds]
ozgura has joined #ruby
arya has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
arturaz has quit [Ping timeout: 255 seconds]
d34th4ck3r has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
pandawarrior has joined #ruby
eliasp has quit [Ping timeout: 256 seconds]
pandawarrior has left #ruby [#ruby]
Electrical has joined #ruby
<Electrical> Hi all, if i have an array of hashes and i want to do something on each hash. do i need to do something like array.each do |subhash| ..... end ?
skum has joined #ruby
poikon has quit [Remote host closed the connection]
<tobiasvl> yeah, that works
timonv has quit [Remote host closed the connection]
<Electrical> hmm, for some reason its not doing what i expected then.
<tobiasvl> what are you trying to do?
Vainoharhainen has quit [Ping timeout: 260 seconds]
<tobiasvl> oh wow, what a nest
<Electrical> I need to merge every hash from that data. ( got a function for that )
<Electrical> that example data is generated based on some other input + function
<Electrical> can paste that as well
<tobiasvl> Electrical: you should probably use symbols instead of strings as keys
monkegjinni has quit [Remote host closed the connection]
<tobiasvl> yeah, paste all relevant code
nomenkun_ has joined #ruby
<Electrical> will paste the whole idea. gimmy a minute :-)
nomenkun has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
r0bby is now known as robbyoconnor
eliasp has joined #ruby
<Electrical> tobiasvl: https://gist.github.com/electrical/dc4a05e537a1b4b44d38 hope this makes a bit of sense.
arya has quit [Ping timeout: 240 seconds]
neurotech has quit [Remote host closed the connection]
<Electrical> the end result needs to be 1 hash that is merged from all the other hashes.
kevingriffin has quit [Remote host closed the connection]
<Electrical> the first function transforms keys like 'discovery.zen' into a full hash representation.
joeycarmello has joined #ruby
jsaak has quit [Ping timeout: 264 seconds]
LouisRoR has quit [Ping timeout: 256 seconds]
<Electrical> that way someting like "boostrap.mlockall"=>true, gets transformed into {"boostrap"=>{"mlockall"=>true}},
Morkel has quit [Ping timeout: 264 seconds]
cantonic has joined #ruby
gokul has quit [Read error: Connection reset by peer]
rramsden has joined #ruby
Morkel has joined #ruby
rramsden has left #ruby [#ruby]
arya has joined #ruby
DrCode has joined #ruby
arturaz has joined #ruby
browndawg has joined #ruby
joeycarmello has quit [Ping timeout: 260 seconds]
<Hanmac1> Electrical: i did something like that with your first array: data.each_with_object({}){|s,h| h.merge!(s) {|k,o,n| o.merge(n) {|k,o,n| o.respond_to?(:merge) ? o.merge(n) {|k,o,n| o.merge(n)} : n } }}
<Electrical> Hanmac: with the input or output data you mean ( in my gist )
<Hanmac1> i mean your first gist
<Electrical> ah okay
Virunga has quit [Remote host closed the connection]
lkba has joined #ruby
backjlack has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
ferdev has quit [Quit: ferdev]
<Electrical> trying to understand what your code does.. i'm not that great in ruby :-(
hemanth has joined #ruby
skattyadz has quit [Ping timeout: 250 seconds]
hemanth has quit [Read error: Connection reset by peer]
<Electrical> https://gist.github.com/electrical/dc4a05e537a1b4b44d38 <-- i want to do a merge of all those hashes in the array ( 03_output.rb example ) so that it will be 1 array in the end.
hemanth has joined #ruby
<Electrical> so i thought i'll just do a array.each do |subhash| thing.. but can't print out the sub hashes to start with .
skattyadz has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
charliesome_ has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hoelzro|away is now known as hoelzro
hemanth has joined #ruby
<Electrical> ah.. seems that 'p' and 'puts' print out differently
charliesome_ is now known as charliesome
dv_ has quit [Ping timeout: 248 seconds]
Virunga has joined #ruby
hemanth_ has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<Electrical> just need to find a way to merge all those hashes together with that function i got.
Flex has joined #ruby
<Electrical> ahh thanks tobiasvl :-)
<Electrical> been hitting my head on it for like 2 hours last night :-)
dv_ has joined #ruby
<Flex> hey guys,how can I query rails to count all instances where a flag in db is not set? am thinking something like Bla.where(:tablename => nil) ??
jsaak has joined #ruby
<Electrical> tobiasvl: think i got it :-)
macsim has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
khismetix has quit [Quit: Computer has gone to sleep.]
adambeynon has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
Shrink has quit [Ping timeout: 264 seconds]
hck89 has joined #ruby
quazimodo has joined #ruby
khismetix has joined #ruby
gtuckerkellogg has joined #ruby
<Electrical> tobiasvl: is it all a bit sane what is happening there? or is it 1 big mess ? :-)
Morkel has quit [Quit: Morkel]
Skylab has joined #ruby
ferdev has joined #ruby
staafl has joined #ruby
Skylab has quit [Read error: Connection reset by peer]
Skylab has joined #ruby
<Hanmac1> Flex wrong channel :P
mrmist has quit [Quit: restarting]
joeycarmello has joined #ruby
LouisRoR has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
mrmist has joined #ruby
mneorr has joined #ruby
joeycarmello has quit [Ping timeout: 250 seconds]
Michael__ has joined #ruby
Domon has quit [Remote host closed the connection]
gtuckerkellogg has joined #ruby
samphippen has joined #ruby
yshh has joined #ruby
_bart has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Client Quit]
seraph has joined #ruby
Shrink has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
<Hanmac1> shevy that is how pgp works: http://xkcd.com/1181/
nkr has joined #ruby
beiter has quit [Quit: beiter]
kofno has quit [Read error: Connection reset by peer]
skattyadz has quit [Ping timeout: 240 seconds]
yshh has quit [Ping timeout: 250 seconds]
kofno has joined #ruby
k611 has joined #ruby
wf2f has quit []
timonv has quit [Remote host closed the connection]
samuelj has joined #ruby
hamed_r has quit [Quit: Leaving]
aqabiz has quit [Read error: Connection reset by peer]
<samuelj> Hey guys - Does anyone have any experience with the Giraffe front-end to Graphite? Having trouble getting my dash to connect to Carbon.
timonv has joined #ruby
aqabiz has joined #ruby
k610 has quit [Ping timeout: 256 seconds]
eka has joined #ruby
kofno has quit [Read error: Connection reset by peer]
kofno has joined #ruby
vagmi has joined #ruby
Electrical has left #ruby [#ruby]
chussenot has quit [Quit: chussenot]
AxonetBE has joined #ruby
angusiguess has joined #ruby
<AxonetBE> What is the best workflow, update from ruby 1.8.7 directy to 2 or first from 1.8.7 to 1.9.3 and then to 2.0
wreckimnaked has quit [Ping timeout: 252 seconds]
rdark has quit [Read error: Operation timed out]
fermion has joined #ruby
slainer68 has quit [Remote host closed the connection]
chussenot has joined #ruby
Michael__ has quit [Remote host closed the connection]
MehLaptop has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
k611 has quit [Quit: Leaving]
Michael__ has joined #ruby
robbyoconnor has joined #ruby
<Hanmac1> AxonetBE: 2.0 should be backwards compatible to 1.9.3 so everything that works with 1.9 should work with 2.0 too
atyz has joined #ruby
beiter has joined #ruby
lewix has quit [Remote host closed the connection]
seraph has quit [Remote host closed the connection]
Michael__ has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
joeycarmello has joined #ruby
<wobblini> Hanmac1: almost, though there are a few incompatibilities
chussenot has quit [Quit: chussenot]
adambeynon has quit [Quit: Computer has gone to sleep.]
<Hanmac1> yeah a few but they should be avoidable
seraph has joined #ruby
<Hanmac1> (and for sample 2.0 "fixes" the "incompatibility" with the encoding)
seraph has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
joeycarmello has quit [Ping timeout: 245 seconds]
MehLaptop has quit [Remote host closed the connection]
huoxito has joined #ruby
hemanth_ has joined #ruby
JonnieCache has joined #ruby
AxonetBE has left #ruby [#ruby]
hemanth_ has quit [Read error: Connection reset by peer]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
hemanth_ has joined #ruby
takeru has joined #ruby
takeru has quit [Remote host closed the connection]
takeru has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
samphippen has joined #ruby
Emplitz has quit [Quit: Leaving]
kofno has quit [Read error: Connection reset by peer]
L1 has quit [Remote host closed the connection]
pyrac_ has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
kofno has joined #ruby
monkegjinni has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
malkomal_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
slainer68 has joined #ruby
Spooner_ has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
imami|afk has quit [Ping timeout: 248 seconds]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
hemanth has joined #ruby
Stilo has joined #ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
Edward__ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
skum is now known as Vainoharhainen
Vainoharhainen has quit [Changing host]
Vainoharhainen has joined #ruby
chussenot has joined #ruby
hemanth has quit [Ping timeout: 256 seconds]
slainer68 has quit [Ping timeout: 248 seconds]
hemanth has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
duosrx has joined #ruby
joeycarmello has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
arya_ has joined #ruby
girija has quit [Read error: Connection reset by peer]
banseljaj has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
arya has quit [Ping timeout: 245 seconds]
joeycarmello has quit [Ping timeout: 252 seconds]
sharpobject has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
pac1 has quit [Read error: Operation timed out]
sharpobject has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
khismetix has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
DDark has quit [Quit: Leaving]
monkegjinni has joined #ruby
gtuckerkellogg has joined #ruby
wreckimnaked has joined #ruby
khismetix has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
DDark has joined #ruby
divout has quit [Remote host closed the connection]
twshelton has joined #ruby
ExxKA has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
seraph has joined #ruby
Edward__ has quit [Ping timeout: 245 seconds]
kofno has quit [Remote host closed the connection]
girija has joined #ruby
kofno has joined #ruby
hemanth has joined #ruby
obs has quit [Quit: Konversation terminated!]
<DDark> Hey All. Im using symbols as hash keys, but they are still being shown as strings. Consider the following hash: >{:enc=>{:parameters=>nil, :classes=>{:math=>nil, :science=>nil, :english=>nil}, :environment=>"development"}, :node=>"instance1", :inherit=>nil}<
hemanth has quit [Read error: Connection reset by peer]
<DDark> Im unable to reference by symbol, but rather by string
hemanth has joined #ruby
mneorr has joined #ruby
<Hanmac1> DDark do you use rails?
hemanth has quit [Read error: Connection reset by peer]
BizarreCake has joined #ruby
tk_ has joined #ruby
<DDark> no this is straight ruby being put into mongodb
<tobiasvl> that sounds weird
<tobiasvl> can we see some example code?
krz has quit [Quit: krz]
<Hanmac1> DDark maybe monodb does not support symbols?
<tobiasvl> oh, might be that mongodb stores the hash keys as strings, if you're serializing the hash somehow?
<DDark> Hanmac, that is possible.
<tobiasvl> ("symbols" are just a form of cached string you know)
<DDark> yeah but I was under the impression symbols are immutable. Seeming as though my keys wont change why have them as a string? I guess the answer is maybe i have to :)
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
verysoftoiletppr has joined #ruby
<DDark> hmm better hop on into #mongodb for a sec ;)
monkegjinni has joined #ruby
fire has joined #ruby
takeru has quit [Remote host closed the connection]
hemanth_ has joined #ruby
znode has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
takeru has joined #ruby
imitkit_ has quit [Quit: imitkit_]
grayson has joined #ruby
mneorr has quit [Ping timeout: 256 seconds]
chussenot has quit [Quit: chussenot]
jef_abraham has quit [Quit: jef_abraham]
hemanth_ has quit [Read error: Connection reset by peer]
_hemanth has joined #ruby
chussenot has joined #ruby
_hemanth has quit [Read error: Connection reset by peer]
jef_abraham has joined #ruby
jef_abraham has quit [Client Quit]
<DDark> ok so in mongo keys are strings and only strings
Flex has quit [Remote host closed the connection]
<DDark> so keep that in mind if you're ever working with it.
hemanth has joined #ruby
takeru has quit [Ping timeout: 248 seconds]
rdark has quit [Ping timeout: 252 seconds]
<DDark> poppycock i say. Just poppycock :)
<tobiasvl> it doesn't support numbers for keys either?
znode has quit [Remote host closed the connection]
<tobiasvl> what do you mean by "only strings"
<tobiasvl> i'd think it didn't support symbols because they're strings behind the scenes
<tobiasvl> but integers are basic data types too
angusiguess has quit [Ping timeout: 255 seconds]
<DDark> not sure. Im not extremely versed with mongo interworkings. I was just told that in #mongodb. The ruby driver for mongo converts my symbols to strings.
<DDark> it may support ints, but in my case I wouldnt be using them
<Hanmac1> hm it would be a leak hole if the db engine automatic create symbols for the tables
<DDark> Well I can remove the to_sym in my code I suppose. No point in a useless operation heh
joeycarmello has joined #ruby
browndawg has joined #ruby
Shrink has quit [Ping timeout: 245 seconds]
<csmrfx> probably means that only strings in the js stylee
hemanth has quit [Read error: Connection reset by peer]
<csmrfx> no number datatype/object type
* csmrfx is on a wild guessechace, though
yshh has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
LouisRoR has quit [Ping timeout: 252 seconds]
gtuckerkellogg has joined #ruby
gtuckerkellogg has quit [Client Quit]
hemanth has joined #ruby
joeycarmello has quit [Ping timeout: 245 seconds]
<Hanmac1> everytime you use .to_sym an memory leak is born :P
arietis has quit [Quit: Computer has gone to sleep.]
moos3 has joined #ruby
<DDark> oh no!
<DDark> well. ive had enough of this nonsense :) Im getting some shuteye
chrisramon has joined #ruby
<DDark> thanks for the tips gentlemen.
DDark has quit [Quit: Leaving]
verto|off is now known as verto
hemanth has quit [Read error: Connection reset by peer]
<chrisramon> Hi, does anyone know how can i set that a form field is required, at runtime?
<csmrfx> Yes, someone does.
carloslopes has joined #ruby
atno has quit [Read error: Connection reset by peer]
<csmrfx> This however, has nothing to do with #wruby, per se.
hemanth has joined #ruby
<csmrfx> *#ruby
monkegjinni has joined #ruby
<Spooner_> chrisramon, #rubyonrails
<chrisramon> srry
hemanth has quit [Read error: Connection reset by peer]
Zespre has joined #ruby
hemanth has joined #ruby
sailias has quit [Quit: Leaving.]
NiteRain has quit [Ping timeout: 246 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
vlad_starkov has joined #ruby
seraph has quit [Remote host closed the connection]
Skylab has quit [Quit: Skylab]
sambao21 has joined #ruby
Shrink has joined #ruby
sandGorgon has quit [Ping timeout: 245 seconds]
m3pow has quit [Ping timeout: 255 seconds]
elico has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
EPIK has quit [Ping timeout: 245 seconds]
hemanth has quit [Read error: Connection reset by peer]
nomenkun_ has quit [Read error: Connection reset by peer]
gtuckerkellogg has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
postmodern has quit [Remote host closed the connection]
drale2k has joined #ruby
hemanth has joined #ruby
mark_locklear has joined #ruby
mikurubeam has joined #ruby
nomenkun has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
Morkel has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
khismetix has quit [Ping timeout: 245 seconds]
jprovazn has quit [Quit: Leaving]
brum has joined #ruby
brum has quit [Remote host closed the connection]
hemanth has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
khismetix has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331]]
atno has joined #ruby
monkegjinni has joined #ruby
jgarvey has joined #ruby
adkron has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
hemanth has quit [Read error: Connection reset by peer]
apod has quit []
robustus has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
hemanth has joined #ruby
hemanth_ has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
rdark has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
apod has joined #ruby
yshh has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
geekbri has joined #ruby
joeycarmello has joined #ruby
dustint has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
idkazuma has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
samuelj has quit [Ping timeout: 240 seconds]
elico has quit [Quit: elico]
monkegjinni has quit [Remote host closed the connection]
joeycarmello has quit [Ping timeout: 240 seconds]
beiter has quit [Quit: beiter]
adkron has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
Rix has quit [Ping timeout: 248 seconds]
tomjoro has joined #ruby
idkazuma has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
chussenot has quit [Quit: chussenot]
Rix has joined #ruby
beiter has joined #ruby
eliasp has quit [Quit: No Ping reply in 180 seconds.]
chussenot has joined #ruby
eliasp has joined #ruby
rippa has joined #ruby
Takehiro has joined #ruby
adambeynon has joined #ruby
hemanth has joined #ruby
mneorr has joined #ruby
monkegjinni has joined #ruby
gyre007 has joined #ruby
idkazuma has joined #ruby
mikurubeam has quit [Ping timeout: 255 seconds]
iamjarvo has joined #ruby
yshh has joined #ruby
gazarsgo has quit [Ping timeout: 245 seconds]
vagmi has quit [Quit: vagmi]
sambao21 has quit [Quit: sambao21]
pyrac has quit [Read error: Connection reset by peer]
eka has joined #ruby
pyrac has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
newUser1234 has joined #ruby
kofno has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 256 seconds]
beiter has quit [Quit: beiter]
hemanth has quit [Read error: Connection reset by peer]
d2dchat has quit [Remote host closed the connection]
hemanth has joined #ruby
kofno has joined #ruby
jameshyde has joined #ruby
cephalopod has quit [Ping timeout: 245 seconds]
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
arya has joined #ruby
dEPy has joined #ruby
blaxter has quit [Ping timeout: 246 seconds]
bapa has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
v0n has joined #ruby
monkegjinni has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Quit: Leaving.]
ryannielson has joined #ruby
tommyvyo has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
ner0x has joined #ruby
freeayu has quit [Remote host closed the connection]
atno has joined #ruby
justsee has quit [Quit: Linkinus - http://linkinus.com]
grayson has quit [Quit: Computer has gone to sleep.]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
hemanth has joined #ruby
tomjoro has quit [Remote host closed the connection]
nfk has joined #ruby
solidoodlesuppor has joined #ruby
tommyvyo has quit [Quit:]
yacks has quit [Remote host closed the connection]
cephalopod has joined #ruby
Skylab has joined #ruby
wmoxam has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
bapa has quit [Ping timeout: 245 seconds]
krawchyk has joined #ruby
hemanth has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
cyberflux has joined #ruby
<_bart> Hi, I'm setting up a service that shoots screenshots of webpages, and I tried to use Selenium but that's not really designed for it, and it's slow. Any suggestions on how to do it?
anderse_ has joined #ruby
abstrusenick has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
sailias has quit [Ping timeout: 264 seconds]
subbyyy has joined #ruby
hemanth has joined #ruby
sandGorgon has joined #ruby
anderse__ has joined #ruby
anderse has quit [Ping timeout: 255 seconds]
anderse__ is now known as anderse
jef_abraham has joined #ruby
noop has quit [Quit: Leaving]
blahwoop has joined #ruby
Aiur has joined #ruby
arturaz has quit [Ping timeout: 255 seconds]
pdamer has joined #ruby
anderse_ has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
nOStahl has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
jerius has joined #ruby
samuelj has joined #ruby
chrisramon has quit [Quit: chrisramon]
hemanth has joined #ruby
bwlang has joined #ruby
subbyyy has quit [Ping timeout: 245 seconds]
<_bart> Ah, vapir has it
bapa has joined #ruby
bapa has quit [Client Quit]
uris has joined #ruby
joeycarmello has joined #ruby
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
v0n has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
sandGorgon has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
sandGorgon has joined #ruby
chichou has quit [Remote host closed the connection]
<pskosinski> What is opposite to String.ord?
<pskosinski> nvm :p
AlStanforth has joined #ruby
bluOxigen has joined #ruby
irichlau2 has joined #ruby
joeycarmello has quit [Ping timeout: 245 seconds]
newUser1234 has quit [Ping timeout: 240 seconds]
blahwoop has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
joofsh has joined #ruby
maycon__ has joined #ruby
sailias has joined #ruby
<ner0x> Any good TimeZone guides/etc for me to peek at? Just trying to figure out the best way to store it in the db and convert for UI.
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
hogeo has joined #ruby
tommyvyo has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<Hanmac1> ner0x depends on your DB ... some have its own date format, some have an timestamp format ...
hemanth has joined #ruby
joofsh has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
joofsh has joined #ruby
anonymuse has joined #ruby
maycon_ has quit [Ping timeout: 272 seconds]
adkron has joined #ruby
blaxter has joined #ruby
yourmysin has joined #ruby
asobrasil has joined #ruby
<splud> what is proper syntax for an inline conditional?
<splud> puts "some message " ( variable ? "true" : "false" ) " etc."
forced_request has quit [Ping timeout: 252 seconds]
hogeo has quit [Ping timeout: 264 seconds]
tomzx_mac has joined #ruby
chichou has joined #ruby
bapa has joined #ruby
AlStanforth has quit [Remote host closed the connection]
jtharris has joined #ruby
<Hanmac1> spuld: puts "some message #{ variable ? "true" : "false" } etc."
<tobiasvl> or just add + around your conditional
yshh has quit [Read error: Connection reset by peer]
<tobiasvl> or <<
yshh has joined #ruby
R_Macy has joined #ruby
bubblehead has joined #ruby
breakingthings has joined #ruby
huoxito has quit [Ping timeout: 245 seconds]
<tobiasvl> splud: i prefer interpolation, as Hanmac1 suggested, but just to point out what was wrong with your example, + (or << to mutate an existing string) is the correct way to concatenate
yfeldblum has joined #ruby
tish has quit [Quit: Leaving.]
<Hanmac1> but for sample this works too: :P puts "some message " "#{ variable ? "true" : "false" }" "etc."
sambao21 has joined #ruby
ananthakumaran has joined #ruby
newUser1234 has joined #ruby
takeru has joined #ruby
jimeh has quit [Ping timeout: 252 seconds]
bubblehead has quit [Ping timeout: 256 seconds]
<ner0x> Hanmac1: I meant the name of the timezone?
<tobiasvl> ah yeah ... space can concatenate too apparently
<Hanmac1> tobiasvl space is not needed: so: "a""b""c" is valid ruby too: (its "abc")
monkegjinni has joined #ruby
AlStanforth has joined #ruby
<tobiasvl> interesting
angusiguess has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jimeh has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
takeru has quit [Ping timeout: 255 seconds]
hemanth has joined #ruby
velCzupa has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
stopbit has joined #ruby
thone_ has quit [Quit: Lost terminal]
thone has joined #ruby
d2dchat has joined #ruby
vlad_starkov has joined #ruby
hemanth_ has joined #ruby
sie has joined #ruby
jlast has joined #ruby
tk_ has quit [Quit: ばいばい]
bradleyprice has joined #ruby
v1p has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
slainer6_ has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
carlyle has joined #ruby
joeycarmello has joined #ruby
daniel_-_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
jameshyde has quit [Quit: Leaving.]
hemanth_ has joined #ruby
huoxito has joined #ruby
daniel_- has quit [Ping timeout: 245 seconds]
dmerrick has joined #ruby
sailias1 has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 250 seconds]
<ericwood> > "a""b""c"
joeycarmello has quit [Ping timeout: 256 seconds]
<ericwood> > puts "a""b""c"
sailias has quit [Disconnected by services]
<ericwood> what happened to the bot? :(
<Muz> >> puts "blah"
<tobiasvl> >> puts "a""b""c"
<eval-in_> Muz: Output: "blah\n" (http://eval.in/11597)
<eval-in_> tobiasvl: Output: "abc\n" (http://eval.in/11598)
pepper_chico has joined #ruby
<Muz> Double >
hemanth has joined #ruby
<ericwood> I haven't been here in a while :|
kpshek has joined #ruby
phantasm66 has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
sailias1 has quit [Client Quit]
jonahR has joined #ruby
sailias has joined #ruby
aqabiz has quit [Quit: aqabiz]
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
angusiguess has joined #ruby
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
invisime has joined #ruby
sambao21 has quit [Quit: sambao21]
aqabiz has joined #ruby
cephalopod has quit [Ping timeout: 245 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
aqabiz has quit [Client Quit]
aqabiz has joined #ruby
aqabiz has quit [Client Quit]
cephalopod has joined #ruby
d34th4ck3r has quit [Quit: Konversation terminated!]
jef_abraham has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
jef_abraham has joined #ruby
aqabiz has joined #ruby
sandGorgon has quit [Ping timeout: 252 seconds]
hemanth has quit [Read error: Connection reset by peer]
bryanjswift has joined #ruby
tomzx_mac has quit [Ping timeout: 255 seconds]
NiteRain has joined #ruby
tcstar has joined #ruby
yalue has joined #ruby
gebbione has joined #ruby
aqabiz has quit [Read error: Connection reset by peer]
aqabiz has joined #ruby
<gebbione> hi all ... how can you dump a variable into a string (serialize it ... get a string that represents whatever that variable is ) so i can print it out like ... puts "My object is " + object
twshelton has quit [Quit: Computer has gone to sleep.]
ad_AA has joined #ruby
<ad_AA> hi
ngoldman has joined #ruby
DrShoggoth has joined #ruby
<gebbione> looks dead in here or was my question too boring ? :/
<ad_AA> I don't have problem to pass from hex to int in this way: "\x10\xAA\x02\x20".unpack('V*')[0] -------> 537045520
<ad_AA> but If I only want to pass one hex byte I get nil "\x40".unpack('V*')[0] ---> nil
<ad_AA> how can I get the int value for just one character ?
<ad_AA> *one byte
hemanth has joined #ruby
<Virunga> gebbione: my_var.to_a or my_var.inspect maybe
<Virunga> sorry to_s
<gebbione> Virunga i tried inspect ... also pretty_print
SCommette has joined #ruby
ngoldman has quit [Remote host closed the connection]
<gebbione> but the lines i am running never get executed
<gebbione> Dir.new(".").path ... is this enough to find my current directory?
<Virunga> >> Dir.pwd
<eval-in_> Virunga: Output: "" (http://eval.in/11599)
<Spooner_> gebbione, Dir.pwd is simpler
hemanth_ has joined #ruby
joshman_ has joined #ruby
<Virunga> gebbione: where are you from?
<Virunga> Your nick make me think you're Italian
AlStanforth has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
<Spooner_> gebbione, Regarding putting objects into strings: "my object is #{object}" (or "my object is " + object.to_s, but that is less used).
russfrank has quit [Remote host closed the connection]
mengu has joined #ruby
interactionjaxsn has joined #ruby
<gebbione> i am but live abroad
katherinem13 has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby
apok has quit [Quit: apok]
chichou has quit [Remote host closed the connection]
<Spooner_> gebbione, Or you can use #inspect, but that is a debugging output rather than a string representation.
<Virunga> gebbione: cool
generalissimo has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
<gebbione> i think debugging is good if i manage to execute those puts lines and see something in my command
hemanth has quit [Read error: Connection reset by peer]
chichou has joined #ruby
hemanth has joined #ruby
pyrac has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
<Spooner_> gebbione, You can use "p" instead of "puts" too, which automatically calls inspect on whatever you pass it.
yacks has joined #ruby
<gebbione> cool
andikr has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
yacks has quit [Max SendQ exceeded]
hemanth has joined #ruby
joeycarmello has joined #ruby
yacks has joined #ruby
<Spooner_> ad_AA, "\x40\x99".unpack('C*') => [64, 153]
yacks has quit [Remote host closed the connection]
twshelton has joined #ruby
<ad_AA> Spooner_: let me try
c6der has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<c6der> what is this channel!!!!!!!
<ad_AA> nice, thank you so much Spooner_
<ad_AA> :)
daniel_-_ has quit [Ping timeout: 252 seconds]
<c6der> too many people !
hemanth has joined #ruby
<aytch> c6der: because everyone loves Ruby!
<c6der> hmm!?
jpcamara has joined #ruby
<c6der> is ruby used in real industry?
russfrank has joined #ruby
<Virunga> gebbione: if you're interested there is a nice mailing list of italian ruby miners
v0n has joined #ruby
jpcamara has quit [Remote host closed the connection]
<c6der> oh wahaha
hemanth has quit [Read error: Connection reset by peer]
<Spooner_> ad_AA, If you literally only have one character, though, you can simply use "\x40".ord #=> 64
<Virunga> c6der: yes
<Spooner_> ad_AA, #unpack is obviously faster if you want to convert a lot of bytes at once.
<gebbione> Virunga: not yet ... i work on PHP usually ... just tring to work out how to use Ruby for some code i am working on ... not sure if and when i will eventually move on to Ruby
idkazuma has quit [Remote host closed the connection]
joeycarmello has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
<Virunga> I see
<c6der> then then i try to learn a little heh
joofsh has joined #ruby
<c6der> i learnd python but not this one
jpcamara has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
<gebbione> python is a funny one ... to be honest if i had to learn something i d like t try node.js
breakingthings has quit []
<Virunga> yes, it's the one of the moment
<c6der> node.js is
<Virunga> I like it too
DrCode has quit [Remote host closed the connection]
<c6der> javascript which i'm having fun now
__Big0__ has joined #ruby
idkazuma has joined #ruby
<c6der> javascript is not neat but good structure of oop
razibog has joined #ruby
katherinem13 has joined #ruby
bryanjswift has quit [Read error: Operation timed out]
statarb3 has joined #ruby
<gebbione> the greatest advantage is u can use the same language in both client and server
<Hanmac1> c6der .. ruby has better concept of oop ... because in ruby everything is an object ... even the space between objects is an object too :P
DrCode has joined #ruby
<c6der> hehe funny
<gebbione> Dir.chdir("../../").pwd.inspect ... would this work in Ruby ?
threesome has quit [Ping timeout: 252 seconds]
<Virunga> Hanmac1: really? Funny :D
<Hanmac1> gebbione: Dir.chdir("../../");Dir.pwd
girija has quit [Ping timeout: 256 seconds]
<Hanmac1> Virunga: look at the constant "ObjectSpace" :P
threesome has joined #ruby
jtperreault has quit [Quit: WeeChat 0.3.7]
bryanjswift has joined #ruby
d34th4ck3r has joined #ruby
bryanjswift has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
bryanjswift has joined #ruby
daniel_-_ has joined #ruby
jjbohn has joined #ruby
<Virunga> >> ObjectSpace
<eval-in_> Virunga: Output: "" (http://eval.in/11600)
himsin has quit [Ping timeout: 240 seconds]
chrishunt has joined #ruby
rippa has joined #ruby
alex__c2022 has joined #ruby
<Virunga> >> k = "Hi!"; p ObjectSpace._id2ref(k.object_id)
<eval-in_> Virunga: Output: "\"Hi!\"\n" (http://eval.in/11601)
carraroj has quit [Ping timeout: 245 seconds]
bean__ has joined #ruby
irichlau2 has quit [Ping timeout: 240 seconds]
tish has joined #ruby
jeremywrowe_ has joined #ruby
<Virunga> Doesn't eval-in_ work in private?
predator217 has quit [Ping timeout: 256 seconds]
jeremywrowe_ has quit [Client Quit]
predator117 has joined #ruby
<Hanmac1> >> p ObjectSpace._id2ref(8)
<eval-in_> Hanmac1: Output: "/tmp/execpad-33ae4947979a/source-33ae4947979a:1:in `_id2ref': 0x000008 is not symbol id value (RangeError)\n\tfrom /tmp/execpad-33ae4947979a/source-33ae4947979a:1:in `<main>'\n" (http://eval.in/11602)
<Hanmac1> p nil.object_id
<Hanmac1> >> p nil.object_id
<eval-in_> Hanmac1: Output: "4\n" (http://eval.in/11603)
bean__ is now known as bean_work
<Virunga> Maybe we can acquire some interesting reference like this :D
<Hanmac1> Virunga the evalin bot doesnt currently work on private ... :( but i allready requested it
frem has joined #ruby
<Virunga> uff
undersc0re97 has quit [Quit: "Fascism is capitalism in decay" - Vladimir Lenin]
<Virunga> I wanted to try to be in the hall of fame xD
<frem> I'm trying to write a method that accepts both a string and an array of strings. how should it determine which one it has received?
<Hanmac1> interesting ... the object_id of nil does change from 1.9 to 2.0 .... ....
LBRapid has joined #ruby
<Hanmac1> frem ask if it respond to .each
bryanjswift has quit [Read error: Operation timed out]
<frem> Hanmac1: both arrays and strings respond to that
fire has quit [Quit: WeeChat 0.4.0]
<frem> same with count
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
puppeh has quit [Remote host closed the connection]
<Hanmac1> frem then you have the wrong ruby version :P
takeru has joined #ruby
c6der has quit [Ping timeout: 256 seconds]
ferdev has quit [Quit: ferdev]
razibog has quit [Ping timeout: 245 seconds]
<frem> Hanmac1: That's a snappy response and all, but it's not exactly something i have any control over.
<Hanmac1> frem: def method(*args); end ... if you define the method like this then both ("s") and ("s1","s2") both work
razibog has joined #ruby
braoru has quit [Quit: Leaving]
jpcamara has quit [Quit: jpcamara]
zykes- has quit [Ping timeout: 245 seconds]
bryanjswift has joined #ruby
p2w has joined #ruby
bryanjswift has quit [Read error: Connection reset by peer]
bryanjswift has joined #ruby
<frem> Hanmac1: Neat; I didn't realize that converted the arguments into an array. Thanks!
jef_abraham has quit [Quit: jef_abraham]
<Hanmac1> frem and if you call args.flatten in the method, then m(["s1","s2"]) works too
bryanjswift has quit [Read error: Connection reset by peer]
bswift37 has joined #ruby
<Virunga> >> IO
<eval-in_> Virunga: Output: "" (http://eval.in/11604)
nari has quit [Ping timeout: 256 seconds]
<frem> Hanmac1: it looks like that'll work even without args.flatten
<Virunga> >> p ObjectSpace._id2ref(IO)
carloslopes has quit [Remote host closed the connection]
<eval-in_> Virunga: Output: "/tmp/execpad-8734ec48854e/source-8734ec48854e:1:in `_id2ref': can't convert Class into Integer (TypeError)\n\tfrom /tmp/execpad-8734ec48854e/source-8734ec48854e:1:in `<main>'\n" (http://eval.in/11605)
zykes- has joined #ruby
<Hanmac1> >> p ObjectSpace._id2ref(IO.object_id)
<eval-in_> Hanmac1: Output: "IO\n" (http://eval.in/11606)
bryanjswift has joined #ruby
bswift37 has quit [Read error: Connection reset by peer]
<banister`sleep> Hanmac1: do you like sing-alongs ?
predator117 has quit [Ping timeout: 252 seconds]
abstrusenick has quit [Quit: abstrusenick]
<shevy> Hanmac1 lol
<shevy> Hanmac1 getting too much weight is a problem
m3pow has joined #ruby
joeycarmello has joined #ruby
amacleod has joined #ruby
<Virunga> >> io = ObjectSpace._id2ref(IO.object_id); io.absolute_path '.'
<eval-in_> Virunga: Output: "/tmp/execpad-39d2ccf340b1/source-39d2ccf340b1:1:in `<main>': undefined method `absolute_path' for IO:Class (NoMethodError)\n" (http://eval.in/11607)
Xeago has joined #ruby
<Hanmac1> >> p File.absolute_path(".")
<eval-in_> Hanmac1: Output: "\"/tmp/execpad-1d239f0975d3\"\n" (http://eval.in/11608)
eldariof has quit []
<Virunga> xD
aqabiz has quit [Quit: aqabiz]
R_Macy has quit [Quit: Computer has gone to sleep.]
cephalopod has quit [Ping timeout: 252 seconds]
hemanth has joined #ruby
PragCypher has joined #ruby
gebbione has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
joeycarmello has quit [Ping timeout: 252 seconds]
c6der has joined #ruby
samuelj has quit [Ping timeout: 252 seconds]
bluenemo has quit [Read error: Operation timed out]
sailias has quit [Ping timeout: 255 seconds]
R_Macy has joined #ruby
locriani has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
ffranz has joined #ruby
hemanth has joined #ruby
Hanmac1 has quit [Ping timeout: 248 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
razibog has quit [Ping timeout: 240 seconds]
juarlex has joined #ruby
hemanth_ has joined #ruby
ferdev has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
zigomir has quit [Quit: zigomir]
sambio has joined #ruby
hemanth_ has joined #ruby
a_a_g has joined #ruby
hogeo has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
jamie_ca has joined #ruby
hemanth_ has joined #ruby
yacks has joined #ruby
<splud> thanks for pointers on inline conditional output. new to ruby here, and banging my head on a lot of things.
wyhaines has joined #ruby
whitedawg has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
jef_abraham has joined #ruby
<splud> Doesn't help that the scripts I'm dealing with are themselves called by something else, so I don't see output or useful error information - just a lack of proper function.
joofsh has quit [Remote host closed the connection]
<ad_AA> Spooner_: are you still there?
idkazuma has quit [Remote host closed the connection]
j^2 has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
jjbohn is now known as jjbohn|afk
hemanth has joined #ruby
mneorr has joined #ruby
chichou has quit [Remote host closed the connection]
predator117 has joined #ruby
hemanth_ has joined #ruby
mntzn has joined #ruby
sailias has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
bryanjswift has quit [Read error: Operation timed out]
joofsh has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth has quit [Ping timeout: 255 seconds]
nachtwandler has joined #ruby
vabenjamin has joined #ruby
nopolitica has joined #ruby
nopolitica has quit [Remote host closed the connection]
kpshek has quit []
chrishough has joined #ruby
vabenjamin has left #ruby [#ruby]
chrishough has quit [Client Quit]
hemanth has joined #ruby
hogeo has quit [Remote host closed the connection]
predator117 has quit [Quit: leaving]
asuka has quit [Read error: Connection reset by peer]
endzyme has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
predator117 has joined #ruby
asuka has joined #ruby
<mntzn> Hi, I have http = Net::HTTP.new, whenever I do http.get and the host is either down or not cannot be resolved I get an error, how can I catch this error?
_bart has left #ruby [#ruby]
bryanjswift has joined #ruby
hemanth has joined #ruby
bryanjswift has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
<hoelzro> mntzn: begin/rescue
<bean_work> >> `echo $PATH`
<eval-in_> bean_work: Output: "" (http://eval.in/11618)
twshelton has quit [Quit: Computer has gone to sleep.]
jonahR_ has joined #ruby
bryanjswift has joined #ruby
hemanth has joined #ruby
chrishough has joined #ruby
generalissimo has quit [Remote host closed the connection]
jonahR has quit [Ping timeout: 256 seconds]
jonahR_ is now known as jonahR
<Hanmac1> bean_work: evalin does not allow system or ``
<amacleod> From looking at the docs, it sounds like begin/rescue won't work with the get method of Net::HTTP
<bean_work> >> ah
<eval-in_> bean_work: Output: "/tmp/execpad-67c6aadd14ac/source-67c6aadd14ac:1:in `<main>': undefined local variable or method `ah' for main:Object (NameError)\n" (http://eval.in/11619)
<bean_work> i figured.
<bean_work> was just seeing if it did
ckrailo has joined #ruby
<amacleod> mntzn, presumably the Response instance returned by get has some way of signaling problems.
bryanjswift has quit [Client Quit]
wreckimnaked has quit [Read error: Operation timed out]
hemanth has quit [Read error: Connection reset by peer]
puppeh has joined #ruby
<amacleod> HTTPResponse, that is.
hemanth has joined #ruby
<Hanmac1> bean_work: if you klick at your evalin link http://eval.in/11618 you can see "Forbidden syscall pipe"
<bean_work> ah okay.
akam_ has joined #ruby
Xeago has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
breakingthings has joined #ruby
<mntzn> hoelzro: amacleod: thanks
jonahR has quit [Client Quit]
<mntzn> so I cant begin & rescue :/
mneorr has quit [Ping timeout: 248 seconds]
<mntzn> amacleod: whenever I do get it just hangs for a while then throws an error
joeycarmello has joined #ruby
soc42 has joined #ruby
<hoelzro> mntzn: what's the error you're getting?
<hoelzro> could you paste it somewhere?
<akam_> hello!
<amacleod> Hanging for a while might make sense if it can't resolve DNS.
<mntzn> /usr/lib/ruby/1.9.1/net/http.rb:762:in `initialize'
<mntzn> and bunch of other stuff, don't know if it helpfull or not
<mntzn> the thing is I'm trying to solve is those 'special' cases when the host cannot be resolved or reached
<hoelzro> mntzn: please paste it somewhere and send us a link
dawkirst has quit [Remote host closed the connection]
v1p has quit [Ping timeout: 252 seconds]
_nitti has quit [Remote host closed the connection]
<hoelzro> mntzn: and you can't catch that error?
<mntzn> no? how? I'm kinda new to ruby
hemanth has joined #ruby
<hoelzro> mntzn: well, you tried begin/rescue
<hoelzro> did you provide an exception class to rescue?
<mntzn> nope, but I will
chussenot has quit [Quit: chussenot]
<hoelzro> please do
<amacleod> Maybe my statement about begin/rescue was not entirely correct. I just read in the docs that get is not supposed to raise exceptions.
joeycarmello has quit [Ping timeout: 252 seconds]
bubblehead has joined #ruby
bryanjswift has joined #ruby
wobblini has quit [Quit: Leaving.]
predator117 has quit [Ping timeout: 245 seconds]
bryanjswift has quit [Read error: Connection reset by peer]
arietis has joined #ruby
mk03 has joined #ruby
bryanjswift has joined #ruby
drager is now known as Drager
hemanth has quit [Read error: Connection reset by peer]
predator117 has joined #ruby
hemanth has joined #ruby
<akam_> I have a datetime object, and I wanna to parse only time in integer. i.e. I have 23.7.2012 05:00:00 and I wanna to get 18000. Can anybody suggest me plz?
bswift37 has joined #ruby
bryanjswift has quit [Read error: Connection reset by peer]
Nisstyre-laptop has joined #ruby
bwlang has left #ruby [#ruby]
bswift37 has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
wobblini has joined #ruby
wreckimnaked has joined #ruby
<e-dard> akam_ you mean you want the whole time between the epoch and your date time object, in seconds?
aganov has quit [Quit: aganov]
bwlang has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
tagrudev has quit [Remote host closed the connection]
<Hanmac1> akam_ DateTime.parse("23.7.2012 05:00:00").to_time.to_i % (60*60*24) #=> 18000
hemanth has joined #ruby
razibog has joined #ruby
generalissimo has joined #ruby
slainer6_ has quit [Ping timeout: 248 seconds]
hemanth has quit [Read error: Connection reset by peer]
hck89 has quit [Ping timeout: 252 seconds]
<akam_> Hanmac1, thank you!
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<wobblini> akam_ Hanmac1 i think you can do DateTime.now.to_time.to_i
<wobblini> akam_ Hanmac1 i missed the original question though so i may be on the wrong track
hemanth has joined #ruby
<akam_> wobblini, I need only % (60*60*24) part)
<Hanmac1> wobblinl he said that he has allready a datetime object
<wobblini> Hanmac1 my_date_time.to_time.to_i then :-)
takeru has quit [Remote host closed the connection]
_nitti has joined #ruby
<wobblini> but i think i am on the wrong track anyway
R_Macy has quit [Quit: Computer has gone to sleep.]
wobblini is now known as realDAB
_nitti has quit [Read error: Connection reset by peer]
<realDAB> i've really got to try to get my dblack nick back from the new dblack
hemanth has quit [Read error: Connection reset by peer]
pepper_chico has quit [Quit: Computer has gone to sleep.]
<akam_> why use to_time and to_i? i use to_i
<akam_> Time.now.to_i % (60*60*24)
hemanth has joined #ruby
mercwithamouth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<Mon_Ouie> Yes, but he has a DateTime object, not a Time object
<Mon_Ouie> >> DateTime.now.to_i
Aiur has quit [Ping timeout: 260 seconds]
<eval-in_> Mon_Ouie: Output: "/tmp/execpad-584910a26f25/source-584910a26f25:1:in `<main>': uninitialized constant DateTime (NameError)\n" (http://eval.in/11623)
<Hanmac1> akam_ okay ... you said datetime ... thats why i think that you need to_time to get a Time object from it
<Mon_Ouie> Well, that's not the error I wanted it to show :p
_nitti has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
takeru has joined #ruby
mneorr has joined #ruby
<akam_> Hanmac1, I mean date and time like "23.7.2012 05:00:00" )
mntzn has quit [Quit: Lost terminal]
jef_abraham has quit [Quit: jef_abraham]
_nitti has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
<Hanmac1> akam_ okay, but you may need an DateTime object to parse the string
chichou has joined #ruby
c6der has quit [Ping timeout: 245 seconds]
sandGorgon has joined #ruby
pygmael has quit [Quit: pygmael]
_nitti has joined #ruby
threesome has quit [Ping timeout: 248 seconds]
kpshek has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
<akam_> Hanmac1, sorry I thought Datetime and Time are same) so i already have Time object
<akam_> and to_i % (60*60*24) work for me, thanks again)
<Hanmac1> there are a Date class too (Date and DateTime are in stdlib, Time is in core)
Nisstyre-laptop has quit [Quit: Leaving]
blahwoop has joined #ruby
jsilver has joined #ruby
_nitti has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
<realDAB> although, confusingly, there's also a time stdlib library
ozgura has quit [Remote host closed the connection]
<akam_> How do you think reverse engineering of binary file forma is a legal?
<akam_> *format
bwlang has left #ruby [#ruby]
<Hanmac1> akam_ what kind of binary format? do you mean an executable?
_nitti has joined #ruby
sandGorgon has quit [Ping timeout: 260 seconds]
<akam_> not executable. data file
_nitti has quit [Read error: Connection reset by peer]
hoelzro is now known as hoelzro|away
akashj87 has joined #ruby
carloslopes has joined #ruby
joeycarmello has joined #ruby
hbpoison has joined #ruby
<Hanmac1> akam_ ... hm its a gray zone ... when you do it for you allone, i dont think they can prevent you from parsing the data ... (or does they have an EULA that forbits that?)
_nitti has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
mneorr has quit [Read error: Operation timed out]
beaky has joined #ruby
<beaky> hello
browndawg has quit [Quit: Leaving.]
<beaky> why is inheritance considererd harmful?
<beaky> considered*
<Spooner_> Who says it is, beaky ?
mneorr has joined #ruby
chussenot has joined #ruby
<Hanmac1> Spooner_ maybe PHP guys :P
gosshedd has quit [Read error: Operation timed out]
huoxito has quit [Read error: Operation timed out]
joeycarmello has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
<Mon_Ouie> Using it when not needed is a bad idea because inheriting a class is a huge constraint
hemanth has quit [Read error: Connection reset by peer]
LBRapid has quit [Read error: Connection reset by peer]
<breakingthings> wouldn't say "harmful"
hemanth has joined #ruby
<breakingthings> "restricting" maybe
<Spooner_> Like most tools in the programmers kit, used badly, it is problematic.
_nitti has joined #ruby
LBRapid has joined #ruby
kpshek has quit []
browndawg has joined #ruby
SolidResolve has quit [Ping timeout: 250 seconds]
<akam_> Hanmac1, I do it for diploma project, but EUAL says:
<akam_> You may not use, copy, emulate, clone, rent, lease, sell, modify,
<akam_> decompile, disassemble, otherwise reverse engineer, or transfer the
<akam_> licensed program, or any subset of the licensed program. Any such
<akam_> of this license and may result in criminal and/or civil prosecution.
<akam_> unauthorized use shall result in immediate and automatic termination
hemanth has quit [Read error: Connection reset by peer]
<Spooner_> That says program, not data.
<akam_> I think it is for executable programm only? not for data?
hemanth has joined #ruby
<akam_> yep. Am i right?
<Spooner_> What is the program though?
DrCode has quit [Remote host closed the connection]
dougireton has joined #ruby
<Spooner_> I definitely wouldn't take it as legal advice, but I probably wouldn't worry.
<breakingthings> legal stuff is only important when you get a C&D anyway :p
<breakingthings> (please nobody take that seriously)
<marwinism> damn, i'm trying to install the 'pg' gem, but it fails. Just reloaded RVM, but i'm not using rails. Do I need RVM?
browndawg has left #ruby [#ruby]
havenn has joined #ruby
kpshek has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
R_Macy has joined #ruby
<Hanmac1> beaky: for sample my WX binding ... wxRuby normaly does uses inheritance (you need to inherit) ... in my "replica" you normaly dont need to
jdunck has joined #ruby
hemanth has joined #ruby
carlyle has quit [Remote host closed the connection]
Skylab has quit [Read error: Connection reset by peer]
DrCode has joined #ruby
<yfeldblum> beaky, there are far too many occasions where one will see inheritance used for the purpose of inheriting an implementation - that's not good
Skylab has joined #ruby
pyrac has quit [Ping timeout: 248 seconds]
sirish has joined #ruby
<yfeldblum> beaky, inheritance should be used when the conceptual relationships are hierarchical, not for implementation reuse
<yfeldblum> beaky, for implementation reuse, consider composition
alex__c2022 has quit [Read error: Connection reset by peer]
alex__c2022 has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<beaky> ahn thjanks
<beaky> thanks*
hemanth has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<beaky> I read blogs where they say that inheritance isn't good for code reuse, and that even using it to produce hierarchies should be discourage over a component-based design
takeru has quit [Remote host closed the connection]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
joeycarmello has joined #ruby
hemanth_ has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
hemanth_ has quit [Read error: Connection reset by peer]
xibalba has left #ruby ["Leaving"]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
adkron has quit [Ping timeout: 255 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
statarb3 has quit [Ping timeout: 255 seconds]
jjbohn|afk is now known as jjbohn
hadees has joined #ruby
sepp2k1 has joined #ruby
SolidResolve has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
SolidResolve has quit [Max SendQ exceeded]
hemanth has joined #ruby
pygmael has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
geggam_wk has joined #ruby
Skylab has quit [Read error: Connection reset by peer]
himsin has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
angusiguess has quit [Ping timeout: 250 seconds]
<marwinism> dear sweeeeet baby jesus it feels good when the code actually works.
SolidResolve has joined #ruby
<geggam_wk> +1 marwinism
pygmael has quit [Client Quit]
joeycarmello has quit [Ping timeout: 255 seconds]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<beaky> when I fail the integration test, I do 10 pushups
hemanth_ has joined #ruby
lusory has quit [Ping timeout: 276 seconds]
hemanth_ has quit [Read error: Connection reset by peer]
filipe has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 245 seconds]
mibitzi has quit [Ping timeout: 245 seconds]
heftig has quit [Read error: Connection reset by peer]
huoxito has joined #ruby
tommyvyo has quit [Quit:]
hemanth_ has joined #ruby
razibog has quit [Ping timeout: 252 seconds]
hemanth has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
dougireton has quit [Quit: Leaving.]
noxoc has quit [Quit: noxoc]
carraroj has joined #ruby
<Hanmac1> beaky depends on the language ... php and java overuses inheritance because they cant do it better :P
twshelton has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
irichlau2 has joined #ruby
<shevy> beaky are you muscular?
Skylab has joined #ruby
<shevy> php indeed does not have any alternative :(
rafacv has joined #ruby
mneorr has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
<Hanmac1> i have tryed to do something similar to rubies Enumerable module in PHP ... i failed because of the shity language :P
blahwoop has quit [Ping timeout: 255 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
himsin has quit [Ping timeout: 250 seconds]
Nisstyre has joined #ruby
Cicloid has joined #ruby
mmitchell has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mercwithamouth has quit [Ping timeout: 260 seconds]
hadees has quit [Quit: hadees]
heftig has joined #ruby
_nitti has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
alvaro_o has joined #ruby
hogeo has joined #ruby
aedorn has joined #ruby
hadees has joined #ruby
mpfundstein has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
arya has quit [Ping timeout: 255 seconds]
fire has joined #ruby
Banistergalaxy has joined #ruby
Voodoofish430 has joined #ruby
<ad_AA> is there any way to get the nibbles of one byte in hexadecimal=. For instance I have "\xA3" and I want to get the integer of A (10) and 3
colonolGron has joined #ruby
m3pow has quit [Ping timeout: 264 seconds]
havenn has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 250 seconds]
vlad_starkov has joined #ruby
arya has joined #ruby
eldariof has joined #ruby
<Hanmac1> >> p "\xA3".each_byte.first.divmod(16)
<eval-in_> Hanmac1: Output: "[10, 3]\n" (http://eval.in/11635)
<Hanmac1> >> p "\xA3".force_encoding("binary").ord.divmod(16)
vlad_starkov has quit [Remote host closed the connection]
<eval-in_> Hanmac1: Output: "[10, 3]\n" (http://eval.in/11636)
sk87 has quit [Quit: sk87]
irichlau2 has quit []
woolite64 has joined #ruby
<whitequark> also .ord
xardas has joined #ruby
sk87 has joined #ruby
backjlack has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
<Hanmac1> whitequark .ord does not work for me, that why i need to force the encoding
carraroj has joined #ruby
danieldocki has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
carlyle has joined #ruby
arturaz has quit [Ping timeout: 252 seconds]
dmerrick has quit [Read error: Operation timed out]
hemanth has joined #ruby
Phibs has joined #ruby
<Phibs> Anyone know what would cause this: undefined local variable or method `ext_dir' for #<Gem::Specification name=RedCloth version=4.2.9>
dmerrick has joined #ruby
splud has quit [Quit: splud]
m8 has joined #ruby
spacemud has quit [Changing host]
spacemud has joined #ruby
whitedawg1 has joined #ruby
<ad_AA> Hanmac1, eval-in_ thank you I'm gonna try it
whitedawg1 has quit [Max SendQ exceeded]
sebastorama has joined #ruby
<Hanmac1> ad_AA evalin is a bot, you dont need to say thankyou :P
whitedawg has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
ninegrid has quit [Quit: leaving]
monkegjinni has joined #ruby
havenn has joined #ruby
lusory has joined #ruby
nOStahl has quit [Quit: Going To Sleep]
<ad_AA> Hanmac1: haha ok I just realized
carlyle has quit [Ping timeout: 245 seconds]
joeycarmello has joined #ruby
alex__c2022 has quit [Read error: Connection reset by peer]
alex__c2022 has joined #ruby
MehLaptop has joined #ruby
nga4 has joined #ruby
pskosinski has quit [Ping timeout: 255 seconds]
mityaz has joined #ruby
ninegrid has joined #ruby
beiter has joined #ruby
freakazoid0223 has joined #ruby
mahmoudimus|away has joined #ruby
<Hanmac1> Phibs hm there is no ext_dir ... (i dont find it in ruby)
whitedawg has joined #ruby
markalanevans has joined #ruby
whitedawg has quit [Max SendQ exceeded]
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
<Phibs> Hanmac1: hmmmm
<Phibs> Hanmac1: why would it be looking for it
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby
angusiguess has joined #ruby
pavilionXP has quit [Ping timeout: 264 seconds]
<Hanmac1> phibs i dont know ... what is the code ?
<Phibs> I see redcloth using it
<Phibs> but I dunno where it gets it
tylersmith has joined #ruby
hadees has quit [Quit: hadees]
ephemerian has quit [Quit: Leaving.]
eliasp has quit [Ping timeout: 256 seconds]
huoxito has quit [Ping timeout: 245 seconds]
<Hanmac1> hm how confusing
pskosinski has joined #ruby
whitedawg has joined #ruby
<Phibs> yeah....
<Phibs> an rvm install seems to work fine with it but my ruby19/bundler rpms are having issues
<Phibs> but I see no mention of that variable in either install (used find)
etcetera has joined #ruby
ninegrid has quit [Quit: leaving]
ad_AA has quit [Ping timeout: 248 seconds]
Banistergalaxy has quit [Ping timeout: 245 seconds]
<akam_> Hanmac1, can you help me again, plz) I can understand(
jonahR has joined #ruby
daniel_-_ has quit [Ping timeout: 252 seconds]
<Hanmac1> yes iCan
<akam_> irb(main):038:0> Time.at(1361822400)
<akam_> => 2013-02-26 00:00:00 +0400
<akam_> irb(main):040:0> 1361822400 % (60*60*24)
<akam_> => 72000
sn0wb1rd has joined #ruby
Banistergalaxy has joined #ruby
<Hanmac1> akam_ its your timezone offset
<Hanmac1> 72000 are your +0400
<rdark> anyone experienced any issues with deploying gems to centos 6?
<akam_> irb(main):051:0> Time.at(1361822400).utc.to_time.to_i % (60*60*24)
<akam_> => 72000
whitedawg has quit [Ping timeout: 252 seconds]
<yxhuvud2> ext_dir? redhat or something similar perhaps? If so, then they have massacred rubygems
<rdark> my $GEM_PATH and $PATH both contain the paths to gems installed at /usr/lib/run/gems/1.8
<yxhuvud2> (and stdlib for that matter)
<yxhuvud2> you have to use rpm packaged rubygems and bundler.
gosshedd has joined #ruby
_nitti has joined #ruby
pavilionXP has joined #ruby
<yxhuvud2> or if you use rvm/rbenv, make certain you don't use system ruby.
razibog has joined #ruby
<Dwarf> Hello, how would I use this? http://stackoverflow.com/a/195894
tylersmith has quit [Quit: tylersmith]
tylersmith has joined #ruby
adamjleonard has joined #ruby
<rdark> yxhuvud2: I have rpm-packaged rubygems
Takehiro has quit [Remote host closed the connection]
carlyle has joined #ruby
noxoc has joined #ruby
ozgura has joined #ruby
<Hanmac1> Dwarf whats your problem?
splud has joined #ruby
splud has quit [Client Quit]
<yxhuvud2> rdark: so what is it that doesn't work?
tomjoro has joined #ruby
<Dwarf> I see this function, which is apparently what I want, but I have no idea on how to use it: http://stackoverflow.com/a/195894
Skylab has quit [Quit: Skylab]
splud has joined #ruby
<Hanmac1> Dwarf: Time.now.to_pretty
flam_ has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
noxoc has quit [Client Quit]
tdelam has quit [Quit: leaving]
<Dwarf> I see
<flam_> hi. i'm running debian testing and i'm trying to get ruby bdb bindigs to work. i installed following packages: db4.3-util, libdb4.3-ruby-1.8 when i'm on irb and run "require 'bdb'" it still doesn't load the bdb module
tommyvyo has joined #ruby
MehLaptop has quit [Remote host closed the connection]
<flam_> how should i go on about solving this?
Eldariof-ru has joined #ruby
tomjoro has quit [Client Quit]
<flam_> i need bdb to run rbot
ph^ has quit [Remote host closed the connection]
<rdark> yxhuvud2: My script doesn't seem to be able to locate any gems
<Dwarf> I'm going to fiddle with this, thanks Hanmac1
tomjoro has joined #ruby
<rdark> so say I have require 'sshkey' - I'll just get an error on running about 'no such file to load'
<yxhuvud2> rdark: what does 'gem list' show you?
noxoc has joined #ruby
Vainoharhainen has quit [Ping timeout: 255 seconds]
<rdark> all gems as expected, installed at /usr/lib/ruby/gems/1.8
<Hanmac1> flam_ 1. is your ruby version 1.8 too or what does ruby -v shows you?
<rdark> and that path is in both $PATH and $GEM_PATH
pyrac has joined #ruby
ninegrid has joined #ruby
gosshedd has quit [Ping timeout: 252 seconds]
sirish_ has joined #ruby
noxoc has quit [Client Quit]
<yxhuvud2> rdark: maybe you need some packages that wasn't supplied in the gem.
eldariof has quit [Ping timeout: 240 seconds]
_nitti has quit [Ping timeout: 256 seconds]
kx has quit [Ping timeout: 252 seconds]
the_jeebster has joined #ruby
Davey has joined #ruby
gosshedd has joined #ruby
nOStahl has joined #ruby
<flam_> 1.9.3p194
huoxito has joined #ruby
sirish has quit [Ping timeout: 252 seconds]
<rdark> yxhuvud2: thanks, will do some more digging and come back. Just wondered if it was an obvious centos-specific thing as I'm developing on debian systems and haven't run into it before
nOStahl has quit [Client Quit]
<tomjoro> Ruby must be compiled with OpenSSL support.
<yxhuvud2> well, if it was what I suggested, then the same issue would happen on debian
slainer68 has quit [Remote host closed the connection]
<Hanmac1> flam_ your libdb*ruby package does not install the package for your ruby version ... i look if i find a currect one
apok has joined #ruby
<flam_> with apt-cache everything i found was for ruby 1.8
c0rn has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
<Hanmac1> flam_ maybe something like "libdbd-pg-ruby1.9.1" ? but the new name is "ruby-dbd-pg" on my system
rafacv has left #ruby [#ruby]
rafacv has joined #ruby
<flam_> thanks, i try to find information on that
mpfundstein has joined #ruby
axl_ has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
<Hanmac1> flam_ i found it, look after "ruby-bdb"
atno__ has joined #ruby
<Hanmac1> hmmm but its still only for 1.8 ?
rippa has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
rippa has joined #ruby
kaen has quit [Remote host closed the connection]
Zolo has joined #ruby
ph^ has joined #ruby
timmow has quit [Remote host closed the connection]
rupee has joined #ruby
sambao21 has quit [Quit: sambao21]
twshelton has joined #ruby
pskosinski has quit [Quit: Red Eclipse, game of racist admins/devs: http://pawelk.pl/racist-red-eclipse-quin-zeroknight-gingerbear/]
mahmoudimus|away is now known as mahmoudimus
sepp2k1 has quit [Remote host closed the connection]
mafolz has quit [Read error: Operation timed out]
carraroj has quit [Read error: Operation timed out]
Liquid-- has joined #ruby
thone has quit [Read error: Operation timed out]
R_Macy has quit [Quit: Computer has gone to sleep.]
a_a_g has quit [Quit: Leaving.]
thone has joined #ruby
arya has quit [Ping timeout: 256 seconds]
breakingthings has quit []
Stilo has joined #ruby
wreckimnaked has quit [Read error: Operation timed out]
ngoldman_ has joined #ruby
emanu has quit [Quit: emanu]
razibog has quit [Ping timeout: 256 seconds]
samuelj has joined #ruby
kostine has joined #ruby
mrsolo has joined #ruby
arya_ has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
end_guy has quit [Remote host closed the connection]
Takehiro has joined #ruby
end_guy_ has joined #ruby
noxoc has joined #ruby
sambao21 has joined #ruby
ffranz has quit [Quit: Leaving]
ffranz has joined #ruby
noxoc has quit [Client Quit]
samuelj has left #ruby [#ruby]
daniel_-_ has joined #ruby
daniel_-_ has quit [Client Quit]
fedza has joined #ruby
apok has quit [Quit: apok]
colonolGron has quit [Quit: leaving]
mneorr_ has joined #ruby
apod has quit []
Al__ has quit [Ping timeout: 250 seconds]
rafacv has quit []
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
thinkclay has joined #ruby
rafacv has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
kaen has joined #ruby
rafacv has quit [Client Quit]
rafacv has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
Takehiro has quit [Ping timeout: 245 seconds]
duosrx has quit [Remote host closed the connection]
hr4dish has joined #ruby
rakl has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
sambio has quit [Ping timeout: 255 seconds]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
dougireton has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
tomjoro has quit [Remote host closed the connection]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
ninjers has quit [Read error: Connection reset by peer]
seitensei has joined #ruby
baroquebobcat has joined #ruby
vierja has joined #ruby
mercwithamouth has joined #ruby
maxmanders has joined #ruby
hr4dish has left #ruby [#ruby]
nonotza has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
zigomir has quit [Quit: zigomir]
Morkel has quit [Quit: Morkel]
skattyadz has quit [Quit: skattyadz]
codecop has joined #ruby
bricker has joined #ruby
etcetera has quit []
_fumbe_ has quit [Ping timeout: 272 seconds]
stkowski has joined #ruby
emmanuelux has joined #ruby
Liquid-- has quit [Quit: Computer has gone to sleep.]
djwonk has joined #ruby
d34th4ck3r has quit [Read error: Operation timed out]
mneorr_ has quit [Read error: Connection timed out]
motto has joined #ruby
mneorr has joined #ruby
pskosinski has joined #ruby
Targen has quit [Read error: Operation timed out]
brianpWins has joined #ruby
<rdark> yxhuvud2: Appears that the env var 'RUBYOPT=rubygems' is needed for some reason
m8 has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: sambao21]
braoru has joined #ruby
DDark has joined #ruby
dougireton has quit [Quit: Leaving.]
seitensei has quit [Quit: Leaving...]
Choobie has joined #ruby
<quazimodo> why does the ruby style guide get rid of and/or in favour of && and || ?
fumbe has joined #ruby
<havenn> quazimodo: Some people get confused by and/or having lower precedence.
marr has quit [Ping timeout: 245 seconds]
<Hanmac1> quazimodo it depends ... because they are different
beiter has quit [Quit: beiter]
<Hanmac1> in most cases && and || are better
c0rn has quit [Ping timeout: 260 seconds]
<havenn> quazimodo: Many people use and/or for flow control. On the other hand, some people new to Ruby use it ubiquitously and then get confused when '=' or other operators have higher precedence.
motto has quit [Ping timeout: 260 seconds]
<quazimodo> ok :)
<quazimodo> gotcha
parzorep_ has joined #ruby
<quazimodo> oh one other thing, what's the source code break line character
<quazimodo> such that you can multiline a piece of code
<havenn> quazimodo: ;
<Spooner_> Quadlex, You should never need to manually break.
c0rn has joined #ruby
wargasm has quit [Ping timeout: 248 seconds]
parzorep has quit [Ping timeout: 260 seconds]
parzorep_ is now known as parzorep
<Hanmac1> you can also combine lines with \
m8 has joined #ruby
<Hanmac1> Spooner_ haha wrong user :P
<quazimodo> Spooner_: some times it happens
mockra has joined #ruby
kirun has joined #ruby
<Spooner_> quazimodo, I can't say I've ever needed \ in Ruby and I've written plenty and have a 80-column rule.
<Spooner_> Hanmac1, They needed waking up.
<Spooner_> quazimodo, However, in Python, I need it because it doesn't think to look on the next line for continuation ;)
* Hanmac1 often broke the 80-col-rule ...
undersc0re97 has quit [Remote host closed the connection]
fumbe has quit [Ping timeout: 248 seconds]
hadees has joined #ruby
<quazimodo> hrm
motto has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dougireton has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
<quazimodo> Spooner_: how would you 80 params[:commit] == "Back" ? @daybook.previous_state : @daybook.next_state
<quazimodo> the e falls just outside
twshelton has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
<havenn> quazimodo: Switching it from ternary to multi-line if/else would be one way.
rdark has quit [Quit: leaving]
m8 has quit [Ping timeout: 240 seconds]
<quazimodo> SEE
<quazimodo> no one knows
<quazimodo> not even havenn
fermion has quit [Ping timeout: 260 seconds]
m8 has joined #ruby
<Hanmac1> @daybook.send(params[:commit] == "Back" ? :previous_state : :next_state)
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
<havenn> Hanmac1: So DRY it makes me thirsty!
dougireton has quit [Client Quit]
takeru has joined #ruby
<quazimodo> rely?
<quazimodo> thats pretty sick
m8tt8 has joined #ruby
fermion has joined #ruby
motto has quit [Read error: Operation timed out]
<Hanmac1> when you switch the params you can golf even more: @daybook.send"Back"==params[:commit]?:previous_state: :next_state
<Hanmac1> whitespaces are for pussies :P
sn0wb1rd has quit [Quit: sn0wb1rd]
<quazimodo> Hanmac1: you're a demon
d34th4ck3r has joined #ruby
<quazimodo> that last one is too esoteric
* Hanmac1 is maxwells dæmon :P
fschuindt has joined #ruby
m8 has quit [Ping timeout: 264 seconds]
BizarreCake has quit [Ping timeout: 245 seconds]
joofsh has quit [Remote host closed the connection]
tvw has quit []
interactionjaxsn has quit [Remote host closed the connection]
wargasm has joined #ruby
Bry8Star has joined #ruby
takeru has quit [Ping timeout: 245 seconds]
<quazimodo> unless params[:daybook] && params[:daybook][:daybook_participants_attributes]
joofsh has joined #ruby
adkron has joined #ruby
<quazimodo> bet you cant
interactionjaxsn has joined #ruby
theRoUS has quit [Ping timeout: 248 seconds]
Catbuntu has joined #ruby
<Catbuntu> Hiya.
<Catbuntu> Is Ruby much slower than Python?
<havenn> Catbuntu: No.
<Hanmac1> quazimodo: unless (params[:daybook] || {})[:daybook_participants_attributes]
<Hanmac1> Catbuntu it depends
m8tt8 has quit [Ping timeout: 255 seconds]
<Catbuntu> For doing normal things I mean, I'm not going to do very advanced scientific things.
<Catbuntu> Depends on what Hanmac1?
chussenot has quit [Quit: chussenot]
<Hanmac1> Catbuntu both ruby and python can have external bindings (so use C or C++ code to boost the speed)
thinkclay has quit [Quit: Leaving.]
<Catbuntu> And is JRuby faster or slower than standard (C I guess) Ruby?
<Catbuntu> I assumed that by running it on JVM it was slower, but in their website they say it has a better performance lol
<yfeldblum> Catbuntu, are you asking about after the code has already been written, how much faster one is than the other to run?
<yfeldblum> Catbuntu, or can we include time-to-write-the-code in this comparison?
maxmanders has quit [Ping timeout: 245 seconds]
interactionjaxsn has quit [Ping timeout: 248 seconds]
<Catbuntu> Running the code.
<Catbuntu> I write faster in Ruby at least.
<havenn> Catbuntu: JRuby uses Java extensions (or FFI) for external bindings. And yeah, JVM startup time is slower than most other implementations. But quite performant once running.
<quazimodo> jruby is faster
<Hanmac1> Catbuntu: jruby is a bit faster than old MRI (C) ruby, the new MRI is nearly equal imo ...
<zaltekk> ruby will typically execute slower than python...but at the point where that matters, you probably won't use either
<Catbuntu> Ok, I see.
<Gate_> Catbuntu: jRuby is faster after startup
<zaltekk> dynamic languages are used for their productivity gains
<havenn> zaltekk: Pics or it didn't happen. :P
<Catbuntu> As I know both if there's something Ruby can't handle but Python can, I can always use Python for that.
<Catbuntu> But I really like Ruby's philosphy.
<Catbuntu> It's like a more readable Perl.
<Catbuntu> But object-oriented :P
toekutr has joined #ruby
Gate_ is now known as Gate
<zaltekk> my interest in ruby was peaked by having a hard time finding work with perl
<Catbuntu> And I really hate not being able to use ?, ! and = on Python's methods hehe
s__dana_ has joined #ruby
d34th4ck3r has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby
<quazimodo> Catbuntu: ruby's philosophy is "omg that looks interesting, ill add that. Oh cool a feature, add it. Wow sugary, nice add"
<Hanmac1> catbuntu: about jruby vs mri-ruby , i prefer to write external bindings itself so i can use c++ code to make it nice ... and some libs does not have C-API so i cant use FFI
<quazimodo> makes reading it gay
jamesfung14 has joined #ruby
<quazimodo> python's is more sound "give me 15 reasons why to add that"
<JoeHazzers> it means there's four different ways to do the same thing, which means you have to learn four times as much just to read someone else's code
<Catbuntu> And which editor do you prefer for Ruby?
<Gate> Catbuntu: what can python handle that ruby can't? They are both fully functional languages..... the question is if one is easier than the other
<Catbuntu> Besides normal editors like gedit, vim, nano, etc.
<JoeHazzers> the whole argument for ruby editors is basically "get a mac"
breakingthings has joined #ruby
<Catbuntu> I dunno Gate.
<quazimodo> JoeHazzers: wut
<quazimodo> Catbuntu: vim, emacs
<Catbuntu> gosh
<quazimodo> don't rock the boat too much
<Catbuntu> I think I'll keep using Geany lol.
<Hanmac1> JoeHazzers ... thats a myth ... i for my self like ruby but hate mac ... how do i fit into your system?
<JoeHazzers> Hanmac1: you don't
<Gate> Catbuntu: geany's implementation on OSX sucks (because GTK sucks on OSX) and that is the only reason I stopped using it
<JoeHazzers> you're an outsider
twshelton has quit [Quit: Computer has gone to sleep.]
skattyadz has joined #ruby
<Catbuntu> Lol.
<Catbuntu> There are a lot of Apple-ish Rubyists :P
<quazimodo> lol vim is smashing emacs!
<Catbuntu> I use Linux Mint Debian Edition!!111one
<Gate> quazimodo: You are all welcome to your own wrong opinion.... <- emacs user
<quazimodo> Gate i don't get it
<Hanmac1> i use Gedit for little ruby scripts but i use Eclipse for my bigger bindings
aapzak has quit [Read error: Connection reset by peer]
<Gate> eclipse? are you masochistic?
<Gate> so..... *slow*
<havenn> I'm happy with TM2.
<quazimodo> emacs has the ctrl button
s__dana has quit [Ping timeout: 272 seconds]
s__dana_ is now known as s__dana
jsilver has quit [Remote host closed the connection]
<quazimodo> what else has that? nothing
<Hanmac1> Gate my bindings a BIG ... i need something that can work with that and support both C++ and ruby
s__dana_ has joined #ruby
fumbe has joined #ruby
_nitti has joined #ruby
<Hanmac1> emacs is soo big, it also has a texteditor inside
<Gate> Hanmac1: if you've got a lot of custom bindings I can see it, but still. Its so slow....
<Gate> And your solution to that is eclipse?
<zaltekk> vim :)
beiter has joined #ruby
apok has joined #ruby
dougireton has joined #ruby
<havenn> zaltekk: On remote machines I often alias mate to vim, just cause I forget...
<zaltekk> what is mate?
<Gate> Emacs is basically its own OS, I admit. But at least when youare editing text, you are editing text. Not convincing your editor that it should let you (vim).
becom33 has joined #ruby
<Gate> zaltekk: textmate
<havenn> zaltekk: Textmate
<Hanmac1> Gate: one of my bindings as 112 cpp and 112 hpp files
<zaltekk> i don't use apple stuff, so i've never had that issue
<becom33> Im having a problem installing ncurses help http://pastebin.com/wuhaQpwP
<Gate> Hanmac1: I have elisp for that ;)
<havenn> zaltekk: Yeah, it is interesting using OS X as primary development machine that i find BSDs more immediately intuitive with command line flags and such than Linux.
Kruppe has joined #ruby
<Gate> Catbuntu: congratulations, you've managed to ask the one question guaranteed to get any arbitrary group of developers to argue. "what editor"
<Hanmac1> gate yeah and i have eclipse :P
<zaltekk> havenn: i used freebsd
mercwithamouth has quit [Ping timeout: 256 seconds]
<zaltekk> *use
ninegrid has quit [Quit: leaving]
<havenn> zaltekk: Yeah, thats the one i virtualize. Actually, a ton of the OS X devs are also FreeBSD devs.
mercwithamouth has joined #ruby
<becom33> anyone for me ?
<havenn> zaltekk: I mean the Apple internal folks.
s__dana has quit [Ping timeout: 240 seconds]
s__dana_ is now known as s__dana
ninegrid has joined #ruby
ryanf has joined #ruby
aapzak has joined #ruby
<Hanmac1> becom33 it looks that the ncurses gem is not 1.9 ready ...
<Gate> becom33: what OS are you on?
interactionjaxsn has joined #ruby
<becom33> Gate, ubuntu
hadees has quit [Read error: Connection reset by peer]
<becom33> 12.10
<Gate> becom33: how did you isntall ruby?
kpshek has quit []
hadees has joined #ruby
<Gate> oh, yeah. 1 version from 2004. Definitely unmaintained.
onewheelskyward has joined #ruby
Takehiro has joined #ruby
<Catbuntu> I should learn about Ruby styleguide on GitHub.
<Catbuntu> huh
<Catbuntu> I'll print that sheet.
chichou has quit [Remote host closed the connection]
<felixjet> link it!
<havenn> zaltekk: Saw an interesting writeup the other day on using NetBSD's pkgsrc on OS X.
<havenn> (package manager)
hadees has quit [Read error: Connection reset by peer]
<zaltekk> i know what pkgsrc is
cha1tanya has quit [Quit: Leaving]
<Hanmac1> becom33 the ncurses gem looks dead ... try to look for a newer one
<zaltekk> not sure why you think i'd care about apple stuff, though :P
<havenn> zaltekk: Ahh, I didn't. Never used NetBSD.
<zaltekk> just mentioned that i don't own any of their hardware
hadees has joined #ruby
sn0wb1rd has joined #ruby
<zaltekk> i guess i have an ipod someone gave me about 8 years ago
<becom33> Hanmac, what do u mean
hadees has quit [Read error: Connection reset by peer]
<zaltekk> pksrc has been ported to other systems than netbsd
<zaltekk> but that doesn't mean the packages will built
<zaltekk> just that the management system is used
<havenn> zaltekk: Ah, didn't know that. Only BSD I really use is FreeBSD.
<becom33> Hanmac, Gate oh yes I installed ruby 1.9 I was using 1.8.x before
<Hanmac1> becom33 from that i can see of your pastebin, this gem you wants to build is not compatible with your ruby version ... (because the gem is shitty)
hadees has joined #ruby
reset has joined #ruby
mockra has quit [Remote host closed the connection]
<havenn> What is the difference between plain ole Curses and NCurses?
mityaz has quit [Quit: See ya!]
<zaltekk> curses isn't free
<breakingthings> pain
horofox has joined #ruby
<breakingthings> suffering
<becom33> so your saying ncurses doesnt support 1.9 ?
<breakingthings> oh wait that's both
<Hanmac1> becom33 its this gem what does not support 1.9
<havenn> Oh, N(ew)Curses.
_nitti has quit [Read error: No route to host]
mockra has joined #ruby
hadees has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
jjbohn is now known as jjbohn|afk
<becom33> Hanmac, if I uninstall the current one and reinstall it would it work ?
hadees has joined #ruby
<havenn> becom33: You need NCurses not Curses? Curses is built in, no gem needed.
<becom33> havenn, I can use rbcurse if I have ncurses
<becom33> which is easy to work with
beiter has quit [Quit: beiter]
<Hanmac1> becom33 look at https://rubygems.org/search?utf8=%E2%9C%93&query=ncurses for something that works with 1.9
m3pow has joined #ruby
ninjers has joined #ruby
* Hanmac1 have a better gui gem then this shit ..
<Catbuntu> Between the `class` line and the first `def`, should there be a blank line?
<havenn> Catbuntu: Usually not, style issue.
<Hanmac1> Catbuntu ... hm it can ... (its mosty the space for constants)
undersc0re97 has quit [Remote host closed the connection]
kaen has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
stevechiagozie has joined #ruby
nkr has quit [Ping timeout: 256 seconds]
<becom33> what do u mean have better GUI Hanmac
<Hanmac1> becom33 i have a wxWidgets binding
<quazimodo> oh coincidentally
kpshek has joined #ruby
<becom33> oh I'm looking for a gui to work in Terminal
<quazimodo> has anyone here ever seen a really nice ruby templating/style engine?
<zaltekk> ncurses and wxWidgets are very different things
<quazimodo> one that users can use to make nice styles via gui/something similar
sgmac has joined #ruby
jjbohn|afk is now known as jjbohn
rippa has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby
xardas has quit [Remote host closed the connection]
nomenkun has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
shevy has quit [Read error: Operation timed out]
<beaky> hi
beaky has left #ruby [#ruby]
Xeago has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
mattbl has joined #ruby
<Hanmac1> says hi and then disapears ... thats mean :(
horofox has quit [Quit: horofox]
skattyadz has quit [Ping timeout: 255 seconds]
mattbl has quit [Client Quit]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
kaen has joined #ruby
<amacleod> It's like typing an open bracket and then [
skattyadz has joined #ruby
joofsh has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 255 seconds]
becom33 has quit [Read error: Operation timed out]
joofsh has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
fire has quit [Quit: WeeChat 0.4.0]
* apeiros_ feels so imbalanced now
<Hanmac1> amacleod: http://xkcd.com/859/
dougireton has quit [Quit: Leaving.]
reset has quit [Quit: Leaving...]
<amacleod> I can't take it anymore! ] ) }} ></tag> -->
<sam113101> why'd you do this to me
Gues_____ has joined #ruby
soc42 has quit [Remote host closed the connection]
slainer68 has joined #ruby
twoism has joined #ruby
m3pow has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
Liquid-- has joined #ruby
horofox has joined #ruby
Eiam has joined #ruby
shevy has joined #ruby
Eldariof-ru has quit []
m3pow has joined #ruby
nonotza has quit [Quit: nonotza]
arya_ has quit [Ping timeout: 248 seconds]
nonotza has joined #ruby
akam_ has quit [Remote host closed the connection]
Gues_____ has quit [Ping timeout: 256 seconds]
chrisja has joined #ruby
Liquid-- has quit [Quit: Computer has gone to sleep.]
freakazoid0223 has quit [Read error: Connection reset by peer]
tish has quit [Quit: Leaving.]
imitkit has joined #ruby
sambio has joined #ruby
marr has joined #ruby
bean_work has quit [Quit: Computer has gone to sleep.]
kostine has quit [Quit: kostine]
arya_ has joined #ruby
bean_work has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
dougireton has joined #ruby
rh1n0 has joined #ruby
Michae___ has joined #ruby
poikon has joined #ruby
Liquid-- has joined #ruby
adambeynon has joined #ruby
carlyle has quit [Remote host closed the connection]
Liquid-- has quit [Client Quit]
_nitti has quit [Remote host closed the connection]
_nitti has joined #ruby
thinkclay has joined #ruby
monkegjinni has quit [Remote host closed the connection]
swex_ has joined #ruby
zodiak has joined #ruby
swex has quit [Ping timeout: 260 seconds]
harumph has joined #ruby
rh1n0 has quit [Remote host closed the connection]
monkegjinni has joined #ruby
ephemerian has joined #ruby
d2dchat has quit [Remote host closed the connection]
c0rn has joined #ruby
c0rn has quit [Client Quit]
casheew has quit [Read error: Connection reset by peer]
<Hanmac1> shevy it duplicated !! http://www.ruby-forum.com/topic/4411608#new
tylersmith has quit [Remote host closed the connection]
casheew has joined #ruby
tylersmith has joined #ruby
dankest has joined #ruby
rh1n0 has joined #ruby
threesome has joined #ruby
reset has joined #ruby
rh1n0 has quit [Client Quit]
F1skr has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<Phibs> Anyone know how to resolve this: http://pastie.org/private/ijf4cmd7o8xmefbff7qoeg
skattyadz has quit [Quit: skattyadz]
banister`sleep has quit [Remote host closed the connection]
zombor has joined #ruby
chrishough_ has joined #ruby
mneorr has joined #ruby
<bean_work> Phibs: how is your ruby installed
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<Phibs> bean_work: to /opt/ruby19
c0rn has joined #ruby
<Phibs> trying to figure out where its sposed to find ext_dir
<Phibs> bundler is barfing on that
<bean_work> Phibs: and how is your rubygems executable installed.
geekbri has quit [Remote host closed the connection]
<Phibs> bean_work: same
chrishough has quit [Ping timeout: 255 seconds]
io_syl has quit [Ping timeout: 255 seconds]
chrishough_ is now known as chrishough
io_syl has joined #ruby
casheew has joined #ruby
mattbl has joined #ruby
blaxter has quit [Quit: foo]
blueOxigen has joined #ruby
<Phibs> (from integrated Ruby 1.9.3-p392)
Es0teric has joined #ruby
mattbl has quit [Client Quit]
<bean_work> Phibs: you probably need to install the ruby dev package
<bean_work> what OS
nomenkun has quit [Remote host closed the connection]
<Phibs> ruby dev is not a sep package, included in the main one
jsilver has joined #ruby
<Phibs> this is centos6, I can show you the .spec I am usnig
<Phibs> using*
Guest123_ has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
MrZYX is now known as MrZYX|off
bluOxigen has quit [Ping timeout: 245 seconds]
Stilo has joined #ruby
sirish_ has quit [Ping timeout: 255 seconds]
velCzupa has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
jsilver has quit [Remote host closed the connection]
zubov_ has joined #ruby
monkegjinni has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
bean_work has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
alv-r- has joined #ruby
bean__ has joined #ruby
Takehiro has joined #ruby
techlife has quit [Ping timeout: 264 seconds]
sayan has quit [Ping timeout: 245 seconds]
Takehiro has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
zubov_ has quit [Client Quit]
aqabiz has joined #ruby
horofox has quit [Quit: horofox]
monkegjinni has quit [Ping timeout: 248 seconds]
<zombor> can anyone tell me what this code block does in rack? I know generally, just want some confirmation/expansion: https://github.com/rack/rack/blob/master/lib/rack/multipart/parser.rb#L77-L80
sirish has joined #ruby
_nitti has quit [Remote host closed the connection]
<zombor> beginning of string, match things that aren't a new line, until we hit a newline?
<apeiros_> process line by line
markalanevans_ has joined #ruby
<apeiros_> and return when hitting the full_boundary
emergion has joined #ruby
Kruppe` has joined #ruby
mmitchell has quit [Ping timeout: 245 seconds]
Kruppe has quit [Read error: Operation timed out]
<apeiros_> and "processing" also means "remove from @buf"
<zombor> right
markalanevans has quit [Read error: Operation timed out]
markalanevans_ is now known as markalanevans
<zombor> im not getting into that block in my http request...
<zombor> the newlines must be screwed up...
<apeiros_> probably because you're not having a mime-multiplart response?
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
<zombor> request?
ad_AA has joined #ruby
<zombor> im doing this: Content-Type: multipart/form-data; boundary=AaB03x
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
dougireton has quit [Quit: Leaving.]
<pskosinski> How to split string into array, where every element has 8 chars?
<apeiros_> pskosinski: use scan
<apeiros_> /.{8}/
etcetera has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<pskosinski> oh, thanks :)
Zolo has quit [Remote host closed the connection]
j^2 has joined #ruby
arturaz has joined #ruby
techlife has joined #ruby
cousine has joined #ruby
techlife has quit [Max SendQ exceeded]
robert__ is now known as robert_
dankest has quit [Read error: Connection reset by peer]
<Hanmac1> pskosinski what about leftovers?
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
cantonic_ has joined #ruby
cousine has quit [Remote host closed the connection]
<pskosinski> Hanmac: There are no leftovers luckily
s0ber_ has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<Hanmac1> otherwise use: /.{1,8}/
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
Kruppe`` has joined #ruby
<pskosinski> thanks :)
techlife has joined #ruby
angusiguess has joined #ruby
<apeiros_> just {,8} should suffice
Kruppe` has quit [Ping timeout: 248 seconds]
dougireton has joined #ruby
s0ber has quit [Ping timeout: 248 seconds]
Kruppe`` is now known as Kruppe
s0ber_ is now known as s0ber
emergion has quit [Quit: Computer has gone to sleep.]
nachtwandler has quit [Quit: leaving]
<apeiros_> ah, no, that'd give a trailing empty string
Skofo has joined #ruby
aedorn has quit [Quit: Leaving]
sirish has quit [Ping timeout: 248 seconds]
Myconix has quit [Quit: Logging in on another device]
w400z has joined #ruby
pskosinski has quit [Remote host closed the connection]
hck89 has joined #ruby
m8 has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
jamesfung14 has quit [Quit: Leaving]
pskosinski has joined #ruby
Catbuntu has quit [Quit: Leaving]
havenn has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
thinkclay has quit [Quit: Leaving.]
freakazoid0223 has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
daniel_- has quit [Ping timeout: 248 seconds]
havenn has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
R_Macy has joined #ruby
mulinux has joined #ruby
timonv has joined #ruby
parzorep has quit [Quit: parzorep]
dougireton has quit [Quit: Leaving.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sambao21 has joined #ruby
rolloTomasi has quit [Read error: Operation timed out]
pietr0 has quit [Ping timeout: 252 seconds]
ngoldman_ has quit [Remote host closed the connection]
arya_ has joined #ruby
pietr0 has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
rolloTomasi has joined #ruby
yeju has joined #ruby
nfk has quit [Quit: yawn]
mneorr has quit [Ping timeout: 245 seconds]
<e-dard> Hi, I'm looking at building some data-analysis tools. Typically, these tools will need to read significant amounts of delimited data and carry out a lot of manipulation (string-substitution as well as statistical/arithmetic stuff)
<e-dard> finally, it all needs to be pushed into DB. My question - is JRuby going to provide much advantage over Ruby for this type of use-cases?
yeju has quit [Client Quit]
<e-dard> I'm thinking to be honest of just building it all out in pure Java, as our current Ruby implementation is painfully slow.
joshman_ has quit [Ping timeout: 245 seconds]
cephalopod has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
alv-r- has quit [Quit: Konversation terminated!]
<e-dard> A typical iteration of the algorithm might involve around 3 million rows of data, where each row might have 100-500 characters
nfk has joined #ruby
<havenn> e-dard: Tried running current implementation on JRuby yet?
forrest has joined #ruby
twshelton has joined #ruby
danieldocki has quit [Quit: Linkinus - http://linkinus.com]
pietr0 has quit [Ping timeout: 245 seconds]
joshman_ has joined #ruby
<e-dard> havenn: not yet. One other question I had was whether JRuby would benefit from refactoring/rewriting?
<apeiros_> e-dard: I'd run a profiler before running blindly from one language to another
astegman has joined #ruby
<e-dard> apeiros_: sure, and we will. But the app is CPU-bound for sure.
<Hanmac1> e-dard ... your ruby code could be maybe refactored ... maybe you did something stupid
<apeiros_> e-dard: then even more so
pietr0 has joined #ruby
<apeiros_> your algorithms usually matter more than the language
dougireton has joined #ruby
c0rn has joined #ruby
DrShoggoth has quit [Quit: Leaving]
c0rn has quit [Client Quit]
<havenn> e-dard: You may be able to speed it up by orders of magnitude by writing more performant Ruby. Is it open or closed source?
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
<Hanmac1> its closet source :P
dallasm has joined #ruby
dallasm has quit [Remote host closed the connection]
daniel_- has joined #ruby
ryannielson has quit [Quit: ryannielson]
_nitti has joined #ruby
zombor has left #ruby ["Leaving..."]
adayzdone has joined #ruby
adayzdone has quit [Client Quit]
chrishough has quit [Ping timeout: 250 seconds]
mattbl has joined #ruby
<arturaz> apeiros_, unless you're using a language which does not give you proper data structures ;)
<e-dard> Maybe I should rephrase my question… Assume the code is performant, and any further optimisations would carry with them unreasonable maintenance/developer costs… What can one expect from JRuby given the code involves a lot of string manipulation / regular expressions...
etcetera has quit []
<Hanmac1> arturaz like PHP? :D
<arturaz> is there a ruby lib for proper linked lists and etc?
hbpoison has joined #ruby
<apeiros_> arturaz: because you're unable to implement them yourself?
<arturaz> apeiros_, as a C extensions? Why should I?
piotr_ has joined #ruby
<arturaz> e-dard, run it and see for yourself
<apeiros_> arturaz: assuming you're setting ruby as the context - because it's still much faster than writing the whole thing in C.
bwlang has joined #ruby
<Guest123_> does anyone know why when calling bind() on a Net::LDAP object it might freeze indefinitely?
etcetera has joined #ruby
<arturaz> apeiros_, well, yes. There are other languages than C though. I'm just saying - if you need superb performance, ruby isn't quite there unfortunately. Using jruby & java data structures might get you closer
<apeiros_> arturaz: you're wildly deviating
PragCypher has quit [Quit: Leaving]
<apeiros_> next stop: nothing beats hand-tuned asm.
<havenn> e-dard: JRuby will likely be faster (tends to be once you get over slow startup time) but not by an order of magnitude. From Ruby writing C-ext or from JRuby Java-ext just for the bottleneck is conventional wisdom I think.
jonathanwallace has joined #ruby
Xeago has quit [Remote host closed the connection]
<e-dard> havenn: thanks.
<Hanmac1> arturaz: but what if you use C(++) extendions with MRI ruby or rubinius? with that you can be faster than jruby
<arturaz> havenn, ++ :)
<arturaz> Hanmac, yes :) It's just the matter of preference. As always.
chrishough has joined #ruby
* Hanmac1 writes C++ gems ... so he knows a bit about that ... and no i cant use FFI for that
magichands has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
<magichands> why does bundler need my password...?
<Hanmac1> magichands maybe it wants to steal your creditcard infos?
Guest2813 has joined #ruby
<apeiros_> magichands: how'd we know? probably because you tell it to do something for which it needs it…
Guest2813 has left #ruby [#ruby]
<havenn> e-dard: Might look at Mirah as an option if you are pro-JVM: http://www.mirah.org/
tylersmith has quit [Quit: tylersmith]
<Guest123_> has anyone dealt with Net::LDAP?
* apeiros_ wants a dollar for every useless metaquestion
<robustus> magichands: probably because your installing system-wide gems, you need sudo privileges for that
<magichands> ok... how do I get it to install user local gems
<magichands> or better yet, project local
<magichands> gem install xyz does that just fine
<magichands> not sure why bundler decided system wide was the best route
<Hanmac1> apeiros_ then usa would be more moneyless than normal :P
eliasp has joined #ruby
freakazoid0223 has quit [Read error: Operation timed out]
<robustus> usually bundler goes the same route as gem...
drale2k has quit [Quit: Leaving...]
<Guest123_> apeiros_ well, I've asked the question specifically previously, but no response, so, I'm raising to a higher-level question
Xeago has joined #ruby
<Guest123_> apeiros_ and if there is no response, I assume nobody has dealt with it and I move on
<robustus> sounds like either odd settings or path confusion, whats your setup?
<magichands> I just did gem install activerecord, and it installs that to ~/.gem
<magichands> bundle install where the Gemfile says install activerecord asks for my password, gem install doesn't
<magichands> not really interested in handing out my password to random scripts
<robustus> are you sure, that the 'bundle'-binary is the one from your ~/.gem installation?
d2dchat has joined #ruby
* Hanmac1 does not trust bundler
Mon_Ouie has quit [Ping timeout: 256 seconds]
<Xeago> apeiros_: got some spare time?
<magichands> ok... apparently thats the default method
<apeiros_> Xeago: yes, what's up?
<Xeago> gf busy
<magichands> well, done with bundler then, f-u bundler
<Xeago> and hots isn't out yet
<robustus> magichands: whats the default method?
Kuifje has quit [Ping timeout: 248 seconds]
<magichands> according to their own docs, http://gembundler.com/v1.1/index.html it says bundle will ask for my password
<robustus> magichands: per default bundler installs gems in the same place and with the same privileges as 'gem install'
<magichands> it clearly doesn't if it requires my password
<apeiros_> Xeago: ah, for playing - I'm already in bed, sorry
<Xeago> apeiros_: give me a ping ingame if you wanna play
<apeiros_> thought for a question or so
<Xeago> ok, what time is it?
mark_locklear has quit [Quit: Leaving]
<Xeago> 11:30?
<robustus> magichands: does 'which bundle' give you a path inside ~/.gem?
<magichands> yes
<magichands> /home/me/.gem/ruby/1.9.1/bin/bundle
<magichands> I replaced my username with me in this, but yes, which bundle gives me that
<Xeago> ok 10:30 — take care!
<magichands> maybe I need to update it
twshelton has quit [Quit: Textual IRC Client: www.textualapp.com]
motto has joined #ruby
_nitti has quit [Remote host closed the connection]
<robustus> you could, but that shouldn't be the problem
freakazoid0223 has joined #ruby
krz has joined #ruby
m8 has quit [Ping timeout: 245 seconds]
MehLaptop has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
mulinux has quit [Quit: mulinux]
Targen has joined #ruby
Ontolog_ has joined #ruby
<magichands> ok I figured it out
khismetix has joined #ruby
<magichands> needs an environment var GEM_HOME set appropriately
<magichands> wonder why gen install never needed that...
<robustus> you could manually set the gem path with 'bundle config' (http://gembundler.com/man/bundle-config.1.html), but again, usually bundle determines your gem home correctly
<robustus> alternatively you could manually set $GEM_HOME
nomenkun has joined #ruby
<robustus> ehm yeah...
lethjakman_lapto has joined #ruby
<magichands> yeah just weird, you'd think they'd work the same in that regard, but no
<magichands> oh well
<magichands> works now
_nitti has joined #ruby
<robustus> by the way, using ~/.gem is something that is currently (afaik) only used by archlinux
<robustus> so your configuration problem should originate from there (since they don't set $GEM_HOME correctly)
carloslopes has quit [Remote host closed the connection]
ddd has joined #ruby
joshman_ has quit [Ping timeout: 256 seconds]
brianpWins has quit [Quit: brianpWins]
mattbl has quit [Quit: This computer has gone to sleep]
S1kx has quit [Read error: Connection reset by peer]
Mattix has joined #ruby
banister`sleep has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
vierja has quit [Quit: Computer has gone to sleep.]
w400z has quit []
spider-mario has joined #ruby
nomenkun has quit [Ping timeout: 255 seconds]
pietr0 has quit [Read error: Operation timed out]
pietr0 has joined #ruby
joshman_ has joined #ruby
horofox has joined #ruby
m8 has joined #ruby
Targen has quit [Ping timeout: 245 seconds]
angusiguess has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
motto has quit [Read error: Operation timed out]
V8Energy has joined #ruby
jonahR has quit [Ping timeout: 245 seconds]
motto has joined #ruby
c0rn has joined #ruby
maxmanders has quit [Ping timeout: 248 seconds]
hbpoison has joined #ruby
<havenn> magichands: P.S., chruby is a really nice way to get ENV vars set correctly when switching between Rubies: https://github.com/postmodern/chruby
kpshek has quit []
`p has quit [Ping timeout: 245 seconds]
m8 has quit [Ping timeout: 256 seconds]
<apeiros_> gn8 Xeago - I'll probably not get to gaming before the week-end :(
m8 has joined #ruby
_nitti has quit [Remote host closed the connection]
jamesfung14 has joined #ruby
V8Energy has quit [Client Quit]
F1skr has quit [Quit: WeeChat 0.4.0]
dougireton has quit [Quit: Leaving.]
tenmilestereo has joined #ruby
maxmanders has joined #ruby
_nitti has joined #ruby
motto has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
mattbl has joined #ruby
jonahR has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
dougireton has joined #ruby
etcetera has quit [Ping timeout: 255 seconds]
slyv has joined #ruby
<lewix> protected methods confuse me in ruby. simple explanation please
atmosx has joined #ruby
tommyvyo has quit [Quit:]
atmosx has quit [Client Quit]
<Guest123_> can anyone recommend a good ldap library for Ruby?
maxmanders has quit [Ping timeout: 245 seconds]
<banister`sleep> lewix: they're the same as private except objects of the same class can access the methods
drale2k has joined #ruby
<banister`sleep> lewix: this also allows you to do self.x if x is private
<apeiros_> Guest123_: we use net-ldap iirc
<apeiros_> problem is, they all have about the same name
<Guest123_> yes, I wanted to try that as well, but when I use it, it hangs on the bind() call
<apeiros_> the version number is ridiculously low, 0.0.5 or something like that, for the last 4y
<Hanmac1> lewix: def <=>(other) self.value <=> other.value;end this works when value is protected
<Guest123_> I'm trying to connect to an SSL-only LDAP server
<havenn> Guest123_: Is your Ruby properly compiled with OpenSSL?
etcetera has joined #ruby
<havenn> Guest123_: In irb does this work?: require 'openssl'
huoxito has joined #ruby
<lewix> banister`sleep: object of the same class can access private methods
<Guest123_> havenn yes, it is compiled with ssl
<banister`sleep> lewix: no it cant
<apeiros_> lewix: no, only same object
sailias has quit [Ping timeout: 252 seconds]
carlyle has joined #ruby
<banister`sleep> lewix: private method means 'implicit receiver'
<apeiros_> same object != object of the same class
<banister`sleep> with one notable exception for writer (x=) methods
maxmanders has joined #ruby
<apeiros_> o0
arya__ has joined #ruby
astegman has quit [Quit: Not paying attention]
<lewix> banister`sleep: apeiros_: thanks give me a minute to think about that
<apeiros_> I don't think writer methods are exempt
kpshek has joined #ruby
brianpWins has joined #ruby
arya_ has quit [Ping timeout: 250 seconds]
<apeiros_> it's the reason you can't use private foo= meaningfully (would always need send)
<lewix> apeiros_: they are exempt
<apeiros_> no they're not
tommyvyo has joined #ruby
kpshek has quit [Client Quit]
<lewix> apeiros_: writer methods with the equal sign
khismetix has joined #ruby
<banister`sleep> apeiros_: http://showterm.io/e7e80d14a1495fbb4a912
cephalopod has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
krawchyk has quit [Ping timeout: 252 seconds]
<banister`sleep> apeiros_: i meant private writer methods are exempt from the 'implicit receiver only' rule
<Guest123_> apeiros_ havenn do you have any recommendations for links to how this can be accomplished?
drale2k has quit [Ping timeout: 250 seconds]
codecop has quit [Remote host closed the connection]
khismetix has quit [Ping timeout: 245 seconds]
ner0x has quit [Quit: Leaving]
Nuck is now known as Splacknuck
chrishough_ has joined #ruby
chrishough has quit [Ping timeout: 252 seconds]
chrishough_ is now known as chrishough
onlinenickid has joined #ruby
<lewix> 13:51 banister`sleep: lewix: this also allows you to do self.x if x is private : did you mean protected
<banister`sleep> lewix: yes, protected
aqabiz has quit [Ping timeout: 245 seconds]
Targen has joined #ruby
sirish has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
khismetix has joined #ruby
<lewix> Hanmac1: thanks. the spaceship operator..something else that confuses me
stevechiagozie has quit [Quit: Textual IRC Client: www.textualapp.com]
<banister`sleep> lewix: deifne spaceship then mix in Comparable ftw :)
Michae___ has quit [Remote host closed the connection]
pdamer has quit [Quit: pdamer]
alex__c2022 has quit [Remote host closed the connection]
anderse has quit [Quit: anderse]
MehLaptop has quit [Remote host closed the connection]
<workmad3> lewix: pretty simple... return -1 for less than, 0 for equal, and 1 for greater than
aqabiz has joined #ruby
parzorep has joined #ruby
parzorep has quit [Client Quit]
zastern has joined #ruby
<zastern> Why does this code return 191817161514131211109876543210? https://gist.github.com/zacharyalexstern/f6a8c23afb5189126d88
<zastern> oh wait
cephalopod has joined #ruby
<zastern> never mind haha.
kevinfagan has joined #ruby
<zastern> its returning all the numbers without linebreaks. i get it now
dougireton has quit [Quit: Leaving.]
<canton7> zastern, 19.downto(0){ |i| print i }
<zastern> canton7: not sure why you sent me that :)
timonv has quit [Remote host closed the connection]
<canton7> zastern, in case you weren't aware of the easier way to do that loop
<canton7> I'm fairly bored, basically :P
<zastern> canton7: oh, thanks. It's just an example that shows me how loops work.
<zastern> from codeacademy
<canton7> ah cool
<zastern> I R NOT PROGRAMMERZ
jimeh has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 252 seconds]
<lewix> banister`sleep: workmad3: is it needed to mix in comparable. it worked without
arturaz has quit [Ping timeout: 256 seconds]
<apeiros_> Guest123_: sorry, only used net-ldap in an internal network, without ssl
<workmad3> lewix: depends on what you need
froy has joined #ruby
<apeiros_> banister`sleep: ah, I see. interesting that this is special cased.
<Guest123_> apeiros_ yea, so I think ruby-ldap works nicely actually
* apeiros_ off to bed, n8 all
<Guest123_> apeiros_ trying it now, and it seems to work quite nicely
<apeiros_> (technically I'm already there ^^)
<banister`sleep> sleep well homie
apeiros_ has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
v0n has quit [Read error: Connection reset by peer]
rezzack has joined #ruby
<otters> I has a question about cgeventtaps
<otters> oops
v0n has joined #ruby
takeru has joined #ruby
dougireton has joined #ruby
tommyvyo has quit [Read error: Connection reset by peer]
MehLaptop has joined #ruby
Ontolog has joined #ruby
Ontolog has quit [Remote host closed the connection]
Hanmac1 has quit [Quit: Leaving.]
Ontolog has joined #ruby
picca_ has joined #ruby
R_Macy has quit [Quit: Computer has gone to sleep.]
peteyg has quit [Ping timeout: 248 seconds]
takeru has quit [Ping timeout: 252 seconds]
<Xeago> banister`sleep: up for some minigames?
<Xeago> in sc2/
carlyle has quit [Remote host closed the connection]
Ontolog_ has quit [Ping timeout: 255 seconds]
EPIK has joined #ruby
horofox has quit [Quit: horofox]
picca_ has quit [Remote host closed the connection]
Ontolog_ has joined #ruby
kpshek has joined #ruby
d2dchat has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
motto has joined #ruby
petecheslock has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
horofox has joined #ruby
joshman_ has quit [Ping timeout: 255 seconds]
Stilo has joined #ruby
Ontolog__ has joined #ruby
joshman_ has joined #ruby
m8 has quit [Ping timeout: 256 seconds]
Ontolog has quit [Ping timeout: 245 seconds]
axl_ has quit [Quit: axl_]
m8 has joined #ruby
m8 has quit [Read error: Connection reset by peer]
Ontolog__ has quit [Remote host closed the connection]
tommyvyo has joined #ruby
motto has quit [Ping timeout: 250 seconds]
Ontolog has joined #ruby
Ontolog_ has quit [Ping timeout: 260 seconds]
mockra has quit [Remote host closed the connection]
cephalopod has quit [Ping timeout: 276 seconds]
jtperreault has joined #ruby
Ontolog_ has joined #ruby
poikon has quit [Remote host closed the connection]
huoxito has quit [Ping timeout: 264 seconds]
bricker_ has joined #ruby
j416_ has joined #ruby
m8 has joined #ruby
m8 has quit [Max SendQ exceeded]
sebastorama has quit [Quit: Computer has gone to sleep.]
Ontolog has quit [Ping timeout: 260 seconds]
cephalopod has joined #ruby
idkazuma has joined #ruby
kofno has quit [Remote host closed the connection]
m8 has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
peteyg has joined #ruby
bricker_ is now known as bricker
onlinenickid has quit [Quit: Nettalk6 - www.ntalk.de]
LBRapid has quit [Quit: Leaving]
arturaz has joined #ruby
m8 has quit [Max SendQ exceeded]
carlyle has joined #ruby
m8 has joined #ruby
Ontolog has joined #ruby
horofox has quit [Quit: horofox]
hackeron_ has joined #ruby
d2dchat has joined #ruby
mlr has quit [Quit: leaving]
hadees has quit [Quit: hadees]
emergion has joined #ruby
kaen has quit [Read error: Connection reset by peer]
hackeron has quit [Ping timeout: 255 seconds]
phantasm66 has quit [Quit: *sleeeep….]
m8 has quit [Max SendQ exceeded]
dustint has quit [Quit: Leaving]
Kruppe has quit [Ping timeout: 252 seconds]
m8 has joined #ruby
Morkel has joined #ruby
Ontolog_ has quit [Ping timeout: 256 seconds]
huoxito has joined #ruby
jerius has quit [Ping timeout: 260 seconds]
j416_ has quit [Quit: WeeChat 0.4.0]
dmerrick has quit [Quit: dmerrick]
Ontolog has quit [Remote host closed the connection]
huoxito has quit [Client Quit]
braoru has quit [Quit: Leaving]
Ontolog has joined #ruby
d2dchat has quit [Remote host closed the connection]
kpshek has quit []
nalidixic has joined #ruby
magichands has left #ruby [#ruby]
emergion has quit [Ping timeout: 264 seconds]
thinkclay has joined #ruby
kirun has quit [Quit: Client exiting]
nalidixic has quit [Client Quit]
yfeldblum has quit [Ping timeout: 245 seconds]
nOStahl has joined #ruby
Targen has quit [Ping timeout: 252 seconds]
hiroyuki has quit [Ping timeout: 248 seconds]
joofsh has quit [Remote host closed the connection]
axl_ has joined #ruby
mercwithamouth has joined #ruby
carlyle has quit [Remote host closed the connection]
<Hydroxide> how does one strip! each line of a multi-line string?
jamesfung14 has quit [Ping timeout: 245 seconds]
hiroyuki has joined #ruby
<v0n> Hydroxide: what do you meant?
<v0n> mean*
blueOxigen has quit [Ping timeout: 245 seconds]
Ontolog_ has joined #ruby
<Hydroxide> v0n: the multi-line string is indented
<Hydroxide> v0n: I want to remove leading and trailing whitespace
<Hydroxide> but from each line, not just from the string overall
<Amnesia> Hydroxide: var << 'bla' ?
bwlang has left #ruby [#ruby]
<havenn> Hydroxide: multi_line_string.split("\n").map &:strip
akashj87 has quit [Ping timeout: 240 seconds]
himsin has joined #ruby
<Hydroxide> Amnesia: havenn I had tried .each_line(&:strip!)
angusiguess has quit [Ping timeout: 250 seconds]
<Hydroxide> havenn: gotcha
<Amnesia> ?
<havenn> Hydroxide: Rather: #split("\n").map(&:strip).join("\n")
<Hydroxide> Amnesia: irc mistake, that was at havenn
Ontolog has quit [Ping timeout: 260 seconds]
<Amnesia> k
mockra has joined #ruby
<Hydroxide> havenn: yeah. I was getting toward such an ugly result. there's no cleaner way to operate on each line of a multi-line string?
m8 has quit [Quit: Sto andando via]
gtc has quit [Remote host closed the connection]
<havenn> Hydroxide: #.each_line.map(&:strip)
aqabiz has quit [Quit: aqabiz]
<Hydroxide> works. thanks!
<havenn> Hydroxide: Could use regex i suppose? Hrm.
hiroyuki has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
<havenn> Hydroxide: np
kevinfagan has quit [Quit: Leaving...]
invisime has quit [Quit: Leaving.]
gtc has joined #ruby
thinkclay has quit [Quit: Leaving.]
<Hydroxide> havenn: well, worked but then lost all newlines
<Hydroxide> oops!
dsf has joined #ruby
<havenn> Hydroxide: Yeah, still have to join("\n")
<Hydroxide> havenn: so, no clean equivalent of what sed does? (this is a small part of a ruby script, no way I'm using sed()
<Hydroxide> )
arturaz has quit [Ping timeout: 260 seconds]
<dsf> Hi everyone. Anyone interested in a senior ruby programmer to work remotely?
thinkclay has joined #ruby
sirish_ has joined #ruby
sambao21 has quit [Quit: sambao21]
forrest has quit [Quit: Leaving]
sirish has quit [Ping timeout: 248 seconds]
MehLaptop has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
<havenn> Hydroxide: Cleanest I can think of is: lines.map(&:strip) * "\n"
khismetix has quit [Quit: Computer has gone to sleep.]
breakingthings has quit []
jjbohn has quit [Quit: Linkinus - http://linkinus.com]
ner0x has joined #ruby
alanp_ has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
wmoxam has quit [Quit: leaving]
banseljaj is now known as imami|afk
chipotle_ has joined #ruby
chipotle_ has quit [Changing host]
chipotle_ has joined #ruby
Morkel has quit [Quit: Morkel]
solidoodlesuppor has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 252 seconds]
jamesfung14 has joined #ruby
alanp has quit [Disconnected by services]
alanp_ is now known as alanp
kofno has joined #ruby
khismetix has joined #ruby
dougireton has quit [Quit: Leaving.]
Guest123_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<lethjakman_lapto> is there a normal way to package ruby programs with their gemfiles?
__Big0__ has quit [Remote host closed the connection]
ad_AA has quit [Ping timeout: 252 seconds]
bean__ has quit [Quit: Computer has gone to sleep.]
__Big0__ has joined #ruby
pac1 has joined #ruby
jerius has joined #ruby
ad_AA has joined #ruby
sgmac has quit [Remote host closed the connection]
<havenn> lethjakman_lapto: Not sure exactly what you mean? Usually with apps, you use a Gemfile to list the gem dependencies. With gems, you use a .gemspec file.
<Hydroxide> havenn: went with the join option - it's easier to understand than that. thanks!
<havenn> Hydroxide: no prob :)
<havenn> lethjakman_lapto: or do you want to actually ship the gems themselves along with the app, instead of the normal method of bundling them?
tenmilestereo has quit [Quit: Leaving]
etcetera has quit []
<havenn> lethjakman_lapto: Gemfile info: http://gembundler.com/gemfile.html
hck89 has quit [Quit: Sto andando via]
jonahR has joined #ruby
etcetera has joined #ruby
dougireton has joined #ruby
<havenn> lethjakman_lapto: TL;DR: List gems in Gemfile, type `bundle` to install gems and their dependencies.
jonahR has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
__Big0__ has quit [Remote host closed the connection]
kaen has joined #ruby
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
hiroyuki has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
gosshedd has quit [Ping timeout: 240 seconds]
MehLaptop has joined #ruby
<havenn> dsf: Have a link to Github or something we can pass on? Always seems like people are looking for Ruby devs but I can't think of anything right now.
harumph has quit [Ping timeout: 240 seconds]
gabrielrotbart has joined #ruby
araujo has quit [Ping timeout: 264 seconds]
havenn has quit [Remote host closed the connection]
kpshek has joined #ruby
tish has joined #ruby
havenn has joined #ruby
awarner has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 255 seconds]
kofno has quit [Remote host closed the connection]
blob has joined #ruby
matchaw_ is now known as matchaw
kofno has joined #ruby
awarner has joined #ruby
jgarvey has quit [Quit: Leaving]
thinkclay has quit [Quit: Leaving.]
gogiel has joined #ruby
Rioji has joined #ruby
ffranz has quit [Quit: Leaving]
<lewix> banister`sleep: can you give me an example of a call to a private method used by an instance of a class
brianpWins has joined #ruby
<banister`sleep> lewix: class Hello; def hello; "hello"; end; private :hello; def sup; hello; end; end; Hello.new.sup
drale2k has joined #ruby
nari has joined #ruby
Edward__ has joined #ruby
jacobw has quit [Quit: WeeChat 0.4.0]
horofox_ has joined #ruby
dougireton has quit [Quit: Leaving.]
mneorr has joined #ruby
Davey has joined #ruby
yfeldblum has joined #ruby
<gogiel> http://pastie.org/6384958 - wtf ? I know it shouldn't be done that way, but what is happening? Ruby 1.9
zigomir has joined #ruby
zigomir has quit [Client Quit]
generalissimo has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby
justinmcp has quit [Client Quit]
spider-mario has quit [Remote host closed the connection]
stopbit has quit [Quit: Leaving]
<lewix> banister`sleep:thanks. I'm trying to put all the pieces together
<banister`sleep> lewix: what part isn't clicking?
v0n has quit [Read error: Operation timed out]
amacleod has quit [Quit: Leaving]
pyrac has quit [Quit: pyrac]
justinmcp has joined #ruby
<lewix> banister`sleep: I'm not sure. now and then I come across examples that make me think about it over.
<Amnesia> question, I'm really interested in computer science
frem has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
<Amnesia> does one of you folks know some course or w/e that uses ruby to explain datastructures / algoritms etc?
sirish_ has quit [Ping timeout: 256 seconds]
<lewix> banister`sleep: In your example, I wouldn't be able to do Hello.new.hello even if the method hello was protected, correct?
theRoUS has quit [Ping timeout: 252 seconds]
<lewix> banister`sleep: however, as opposed to private, the receiver of hello in the method sup could have been explicit
<lewix> self*
<banister`sleep> yes
<banister`sleep> right
gyre007 has quit [Read error: Operation timed out]
slainer68 has quit [Remote host closed the connection]
atyz has quit [Ping timeout: 245 seconds]
thinkclay has joined #ruby
_nitti has quit [Remote host closed the connection]
etcetera has quit []
ad_AA has quit [Ping timeout: 245 seconds]
Skofo has quit [Read error: Connection reset by peer]
newUser1234 has quit [Remote host closed the connection]
gtuckerkellogg has joined #ruby
<lewix> banister`sleep: for private methods, only the object representing self at the time of execution of the method is allowed to make a call. Protected methods are the same as private methods but objects of the same class can make the call to the method. what does the later mean
newUser1234 has joined #ruby
angusiguess has joined #ruby
slainer68 has joined #ruby
etcetera has joined #ruby
dougireton has joined #ruby
<lewix> banister`sleep: didn't I just ask you to give me an example of a call to a private method used by an instance of a class
dmiller has joined #ruby
<realDAB> gogiel: i'm looking at it but i haven't figured it out yet
mahmoudi_ has joined #ruby
<realDAB> gogiel: it certainly isn't doing what i would have expected but there may be something i'm not seeing
<lewix> banister`sleep: I guess this is the part that is not clickling
angusiguess has quit [Ping timeout: 245 seconds]
j^2 has quit [Ping timeout: 248 seconds]
newUser1234 has quit [Ping timeout: 240 seconds]
<banister`sleep> lewix: isn't that waht i did?
<banister`sleep> Hello.new is an instance of the Hello class :)
mahmoudimus has quit [Ping timeout: 245 seconds]
geggam_wk has quit [Remote host closed the connection]
<lewix> banister`sleep: right. but doesn't it conflict with the definition given earlier
<banister`sleep> lewix: how?
<lewix> banister`sleep: Protected methods are the same as private methods but objects of the same class can make the call to the method.
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
alex__c2022 has quit [Quit: alex__c2022]
pepper_chico has joined #ruby
<lewix> banister`sleep: I'm not sure if you follow my train of thoughts
SCommette has quit [Quit: SCommette]
Mattykins has joined #ruby
Vert has joined #ruby
slainer68 has quit [Remote host closed the connection]
ner0x has quit [Remote host closed the connection]
bricker_ has joined #ruby
<realDAB> lewix: are you thinking of something like this? class Person; attr_accessor :age; protected :age; def older_than(other); self.age <=> other.age; end; end
bricker has quit [Ping timeout: 245 seconds]
<lewix> banister`sleep: it seems that objects of the same class can access the methods in either case.
fschuindt has quit [Quit: Computer has gone to sleep.]
<realDAB> lewix: in my example, you can only call other.age because other and self are of the same class and age is protected, not private