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
freerobby has joined #ruby
lewix has quit [Ping timeout: 240 seconds]
<jokke> osama: s = "foobar"; if s.empty?; "The string is empty"; etc
<waxjar> you can just push enter osama
<jokke> or that ;)
senayar has quit [Remote host closed the connection]
emocakes has joined #ruby
<osama> @jokke thanks done
<jokke> np
emocakes has quit [Client Quit]
nobitanobi has quit [Ping timeout: 272 seconds]
BSaboia has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
sambio has quit []
skattyadz has quit [Quit: skattyadz]
generalissimo has joined #ruby
twoism has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
marcdel has quit []
dmerrick has quit [Quit: dmerrick]
nomenkun has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
artofraw has quit [Read error: Connection reset by peer]
artofraw has joined #ruby
platzhirsch has joined #ruby
mahmoudimus has joined #ruby
sambio has joined #ruby
<platzhirsch> So I have an array filled up with keys from a Hash. If I apply the array elements in a sequel way to the hash I would get values from it deeper and deeper. Any idea how I could nicely apply the whole array to the hash to receive the value?
freerobby has joined #ruby
<mpfundstein> >> puts "a"
<eval-in> mpfundstein => a ... (http://eval.in/13971)
mahmoudimus has quit [Client Quit]
g0bl1n has joined #ruby
jurassic_ has quit [Quit: jurassic_]
nomenkun has joined #ruby
tomsthumb has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
generalissimo has quit [Remote host closed the connection]
mpfundstein has quit [Remote host closed the connection]
jlast has joined #ruby
Xeago has quit [Remote host closed the connection]
veer has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
twoism has quit [Remote host closed the connection]
mpfundstein_ has quit [Ping timeout: 240 seconds]
_veer has quit [Ping timeout: 272 seconds]
nathancahill has quit [Quit: nathancahill]
Faris7 has quit [Ping timeout: 257 seconds]
nomenkun has quit [Remote host closed the connection]
berto- has quit [Ping timeout: 245 seconds]
Matt has joined #ruby
kil0byte_ has joined #ruby
elaptics is now known as elaptics`away
Matt is now known as Guest24828
sailias has joined #ruby
Faris7 has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
DonRichie has quit [Ping timeout: 240 seconds]
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
DonRichie has joined #ruby
berto- has joined #ruby
<oz> quit
<oz> hm, missed. :)
veer has quit [Ping timeout: 272 seconds]
predator217 has joined #ruby
peteyg_ has joined #ruby
jurassic_ has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
marcdel has joined #ruby
rcosta has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
superninkendo has joined #ruby
ArthurB__ has joined #ruby
veer has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
end_guy has quit [Ping timeout: 276 seconds]
Davey has joined #ruby
<ArthurB__> Hi all, I'm new to ruby, just trying to run the selfstarter code. I'm using a debian machine. I've installed ruby1.9.3 via the package manager, and ruby -v does return 1.9.3p0 ... yet, when I try to do bundle install, bunle complains that my ruby version is 1.8.7. What's up with that?
_veer has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
end_guy has joined #ruby
angusiguess has joined #ruby
postmodern has quit [Ping timeout: 256 seconds]
miroatme_ has joined #ruby
miroatme_ is now known as miroatme
wyhaines_ has quit [Remote host closed the connection]
<jacobbednarz> ArthurB__, highly recommend not installing via the package manager.
<ArthurB__> jacobbednarz, so, rvm?
<jacobbednarz> yeah, definitely your best bet.
<bean> or rbenv
<bean> or
<ArthurB__> or, is it?
<bean> from source
<bean> whatever you want
<ArthurB__> sudo rvm install ruby-1.9.3
<ArthurB__> fails
<bean> rvm usually doesn't need sudo I don't think
pskosinski has quit [Ping timeout: 252 seconds]
fcatojo has joined #ruby
fcatojo has quit [Max SendQ exceeded]
fcatojo has joined #ruby
<bean> well, that file doesn't even look like the right one
<ArthurB__> right
DonRichie has quit [Ping timeout: 252 seconds]
<ArthurB__> looks like the ubuntu package for rvm is broken too
hashmal is now known as wat
ryanf has quit [Quit: leaving]
<bean> oh lol
<bean> don't install RVM with a package
DonRichie has joined #ruby
<jacobbednarz> rvm.io
<jacobbednarz> ^ ArthurB__
ryanf has joined #ruby
ryanf has quit [Client Quit]
ryanf has joined #ruby
purem has joined #ruby
wat is now known as hashmal
miroatme has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 245 seconds]
razibog has quit [Ping timeout: 260 seconds]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
<purem> The active_model_serializers gem extends active_model to override its json methods. I am using active_model outside of a rails app and I'm trying to add active_model_serializers so when I call to_json it uses the relevant serialisation class. https://github.com/rails-api/active_model_serializers/blob/master/lib/active_model_serializers.rb is the file which includes all the relevant mixins to add this functionality but I cannot f
<purem> the life of me seem to get it loaded in such a way to get it to work. Any suggestions are welcome
Faris7 has quit [Ping timeout: 256 seconds]
stevechiagozie has joined #ruby
idkazuma has quit [Remote host closed the connection]
skattyadz has joined #ruby
devoper has joined #ruby
_br_ has quit [Excess Flood]
<ArthurB__> great, now I get: yoyur ruby version is 2.0.0, but your Gemfile specified 1.9.3
<ArthurB__> "rvm install ruby-1.9.3" tells me it's already installed
<bean> okay, and when you type "which ruby" what does it tell you
danslo has joined #ruby
Faris7 has joined #ruby
_br_ has joined #ruby
superninkendo has quit [Quit: Leaving.]
<ArthurB__> ~/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
<purem> if there is a gem and inside that gem there is a file lib/gem_name.rb, when does lib/gem_name.rb get executed?
freeayu has joined #ruby
<ArthurB__> soo rvm --default use 1.9.3 ?
<ArthurB__> looks like it
ToApolytoXaos has quit [Quit: Leaving]
lkba has joined #ruby
Mattix has joined #ruby
devoper has quit [Quit: Leaving.]
_br_ has quit [Excess Flood]
emergion has joined #ruby
eliasp has joined #ruby
_br_ has joined #ruby
c0rn has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
BSaboia has quit [Ping timeout: 256 seconds]
nathancahill has joined #ruby
c0rn has quit [Client Quit]
moos3 has joined #ruby
lewix has joined #ruby
berto- has quit [Quit: berto-]
<jokke> how can i turn something like this: foo.bar = Proc.new {|var| puts var} into this: foo.bar do |var|; puts var; end?
<jokke> and i want both to work
freerobby has quit [Quit: Leaving.]
icole has joined #ruby
<jokke> also something like this should work foo.bar = 'foobar'
bean__ has quit [Quit: Computer has gone to sleep.]
chunk2k3 has joined #ruby
superninkendo has joined #ruby
<bean> jokke, foo.bar would have to yield to the block
angusiguess has quit [Ping timeout: 240 seconds]
etcetera has quit []
hashmal has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 260 seconds]
<bean> jokke, http://eval.in/14001 doesn't work exactly how you want, but i think you get the point
<jokke> bean: yes i know i could do this manually, but i'm trying to make this general for every and any instance variable (which it technically speaking isn't anymore)
nateberkopec has joined #ruby
artofraw has quit [Remote host closed the connection]
* bean isn't sure then
nateberkopec has quit [Client Quit]
<jokke> i'm trying to write a module which gives me the described functionality for all instance variables
fcatojo_ has joined #ruby
<jokke> so that they can either behave like normal instance variables or not.
Hanmac1 has joined #ruby
niklasb has joined #ruby
lewix has quit [Remote host closed the connection]
<bean> jokke, http://eval.in/14008
<bean> ?
fcatojo has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
<purem> How do I include a file which resides at /lib/active_record/serializer_override.rb within a gem?
<jokke> hmm
<jokke> it's hard to wrap the brain around blocks and lambdas.. i ootta think about it
<jokke> *gotta
<purem> Its not used by the gem by default but as I'm not using the gem with rails
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
emergion has quit [Quit: Computer has gone to sleep.]
Sicp has quit [Quit: Leaving]
nomenkun has joined #ruby
tenmilestereo[aw has joined #ruby
Ortuna has joined #ruby
nomenkun has quit [Ping timeout: 272 seconds]
Ortuna has quit [Client Quit]
tenmilestereo has quit [Ping timeout: 245 seconds]
Ortuna has joined #ruby
Doc_X has joined #ruby
mahmoudimus has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
tenmilestereo[aw has quit [Quit: Leaving]
brianherman has quit [Read error: Connection reset by peer]
niklasb has quit [Ping timeout: 272 seconds]
subbyyy has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
bubblehead has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
miroatme_ has joined #ruby
mellow80 has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
bubblehead has joined #ruby
<mellow80> hi
<mellow80> anyone knows how to send facebook messages from my user account to another in ruby?
<mellow80> I only find examples of doing so with an application
F1skr has quit [Quit: WeeChat 0.4.0]
emergion has joined #ruby
idkazuma has joined #ruby
lewix has joined #ruby
aef has quit [Remote host closed the connection]
purem has left #ruby [#ruby]
skattyadz has quit [Quit: skattyadz]
aef has joined #ruby
marcdel has quit [Ping timeout: 252 seconds]
reactormonk has quit [Quit: WeeChat 0.4.0]
Inside has joined #ruby
<Inside> Crap.. is there an easy way to main a dictionary with the value being used as a counter for each key value?
kristofers has quit []
<Inside> ie.. foo = {}; foo["hi"] = foo["hi"] ? foo["hi"] +=1 : 1 seems stupidly verbose
<Inside> erp derp.. that wouldn't even work
marcdel has joined #ruby
hogeo has joined #ruby
<bean> Inside, what are you trying to do.
miroatme_ has quit [Quit: Leaving.]
Es0teric has joined #ruby
<Inside> well.. something like def use_counter(foo) dict[foo] += 1, except handle cases for where dict[foo] doesn't exist as well
<Inside> in a nice and concise way!
<bean> mellow80, do you mean actual messages? or jabbber XMPP?
<Inside> dict[foo] ||= 0; dict[foo] +=1 would work, I guess..
bubblehead has quit [Ping timeout: 240 seconds]
<mellow80> like when you chat with friends
<mellow80> I want to be able to read, and chat from ruby
<Inside> so you're looking for a lib?
<Inside> what protocol?
emergion has quit [Quit: Computer has gone to sleep.]
jimeh has quit [Quit: Computer has gone to sleep.]
<mellow80> but there you have "client.auth_sasl(Jabber::SASL::XFacebookPlatform.new(client, '<App ID/API Key>', '<Access Token>', '<App Secret>'), nil)
<mellow80> "
kofno has joined #ruby
<mellow80> I want to authenticate as a user
eliasp has quit [Read error: Connection reset by peer]
<bean> mellow80, this sounds pretty spammy, lol
eliasp has joined #ruby
<bean> Inside, http://eval.in/14017
<bean> :)
<Inside> oh duh :(
<Inside> hash with default value, forgot about that.
<bean> mellow80, so basically you just want to have your own xmpp client?
<Inside> thanks!
<bean> np
Es0teric has quit [Quit: Computer has gone to sleep.]
shevy has quit [Ping timeout: 264 seconds]
reppard has joined #ruby
pioz has joined #ruby
lewix has quit [Remote host closed the connection]
rburton- has joined #ruby
<reppard> https://gist.github.com/reppard/5279215 can someone tell me why this ternary is freaking out? no like eval??
LennyLinux has joined #ruby
<reppard> im getting a syntax error and i can't see why
<mellow80> bean, I want to send messages to my friends
lewix has joined #ruby
<mellow80> I should use something like xmpp but the one for ruby seems to be for apps
angusiguess has joined #ruby
<bean> mellow80, well, you'd have to write your own app, as most of the time that would be part of app logic.
freerobby has joined #ruby
<reppard> is it possible to have an eval as part of a ternary operation inside a block?
jmej_ has joined #ruby
moos3 has joined #ruby
<bean> reppard, when i remove the puts its much more happy,
<reppard> bean: yeah i originally just had the eval(blah) if line =~ /#{code}/
<reppard> and that worked great
angusiguess has quit [Ping timeout: 255 seconds]
<reppard> but i want to print the line iven if there isn't a code, just want to by pass the eval
<reppard> damnit, i'll just write a puts method and call that instead
<bean> well
shevy has joined #ruby
<jmej_> i'm having trouble nesting a very simple sql query inside a do loop on another sql query - i assume i just have something simple wrong with my ruby syntax - i wonder if someone would mind looking at my script and giving me a tip - http://pastie.org/7189003
hadees has joined #ruby
<bean> you could also eval("puts #{line}")
<bean> i bet
<reppard> yeah i'll try that too
<jmej_> so line 42 on that script isn't working
<reppard> it's only 33 lines?
<jmej_> 46
<jmej_> so i'm interating through my result set succesfully - but then my sql update on line 42 isn't working somehow
brum has joined #ruby
<jmej_> i'm trying to send an email per sql result row, and then update said row
<jmej_> the sending part is working fine
freerobby has quit [Ping timeout: 260 seconds]
idkazuma has quit [Remote host closed the connection]
sonots has joined #ruby
osama has quit [Ping timeout: 245 seconds]
Nisstyre-laptop has joined #ruby
brum has quit [Remote host closed the connection]
<reppard> haha nice, just got stack level too deep
<reppard> ruby doesn't like evals as part of conditionals inside a block
<reppard> i dont blame it, i dont either. design rethinkage
tcopp has joined #ruby
<jmej_> reppard: was that directed at me? can you be a little more explicit - i'm pretty green
<bean> no, he was talking about his own code.
<bean> what SQL error are you getting, jmej_
<jmej_> ha ok cool :)
adkron has joined #ruby
<jmej_> bean: i'm not getting a sql error - the update just isn't happening
<reppard> jmej_: sorry man i was just ranting about my crap design
<jmej_> at least i'm not seeing a sql error..
Animawish has joined #ruby
<jmej_> gotcha reppard - thnx
radic has quit [Disconnected by services]
<bean> jmej_, yeah, so if you output time and jobid.
<bean> do they actually work?
<Animawish> how would I change a key in a hash?
<jmej_> bean: i'm wondering if that second con.query is even getting issued
radic_ has joined #ruby
<bean> its possible that it isn't.
<jmej_> let me check that bean
<jmej_> bean: yes - i added a couple puts lines after line 42 - and they interatively return good values
<reppard> Animawish: hash[:newkey] = hash[:key]; hash.delete(:key) ??
<bean> jmej_, alright, what OS are you on
<jmej_> ubuntu
<jmej_> well via a terminal from osx
<jmej_> ssh
<jmej_> but i'm running the script on an ubuntu box
pioz has quit [Quit: This computer has gone to sleep]
<jmej_> the results i'm getting looks like this: Sat Mar 30 19:42:53 -0700 2013
AlSquirrel has quit [Read error: Connection reset by peer]
<jmej_> maybe i need to reformat the date
AlSquirrel has joined #ruby
<jmej_> for sql
<bean> thats possible. It depends on the type of that column in mysql
anirudh24seven has joined #ruby
<jmej_> 2013-03-30 18:58:23 is what i want it to look like
mahmoudimus has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
<jmej_> this is starting to make sense - because this script was working on another machine (also ubuntu)
<jmej_> previously
mellow80 has left #ruby [#ruby]
<bean> thats entirely possible
xaq has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
maycon has joined #ruby
kofno has quit [Remote host closed the connection]
<Animawish> reppard: you're a wizard, thanks
<bean> jmej_, another tip is... use the mysql2 gem instead.
bean has left #ruby ["Leaving"]
bean has joined #ruby
<nezumi> Monday I need to figure out how to talk to a MS SQL Server. Any words of wisdom?
<reppard> Animawish: i wasn't sure of the intent or if that was best practice...but it'll work ;)
<bean> nezumi, looks like you can use ODBC to connect
<nezumi> I figured I would try the sequal gem
<bean> that looks like it'll work too
<bean> I think that /also/ uses ODBC behind the scenes
<nezumi> It's an existing database used by Rackwise that I need to pull data out of
<jmej_> bean: oh huh - i wonder why it works with the wrong gemname
djwonk has quit []
djwonk has joined #ruby
<nezumi> And later on, put data into
<bean> jmej_, not sure, i know the "mysql" gem is old and jank, and "mysql2" is supposed to be newer
<bean> nezumi, yeah, sequel looks like it can do it, I think
<jmej_> bean: do you know why this system would be returning time in a non-standard format? or how i can fix it? string replacement doesn't seem like it should be necessary.. i should just get a standard output somehow right?
<nezumi> last week I managed to figure out how to use watir in about a day. I'm not really a developer, but I do like coding in Ruby.
<bean> jmej_, i think "Time.now.to_s(:db)" is what you want.
soulcake has quit [Quit: ZNC - http://znc.in]
<bean> or
<bean> Time.now.utc.to_s(:db) depending on what your db expects
<bean> though that might be a rails thing, not sure
<jmej_> hm ok i'll give it a shot
<bean> you also could rely on the time on the mysql server
<bean> time = NOW()
<jmej_> ahh ok
breakingthings has joined #ruby
moos3 has joined #ruby
soulcake has joined #ruby
agarie has joined #ruby
xaq_ has joined #ruby
aapzak has quit [Ping timeout: 264 seconds]
<breakingthings> What's the most efficient way to get just the first word (any chars up to first whitespace) of a string (eg. "hello" from "hello world")
aapzak has joined #ruby
<breakingthings> efficient being the most idiomatic and least-cognitive load.
slainer68 has quit [Remote host closed the connection]
xaq has quit [Ping timeout: 255 seconds]
brum has joined #ruby
<nezumi> the re would be /\w+/
<nezumi> or alternatively /\S+/
<jmej_> bean: got it. Time.now.strftime("%Y-%m-%d %H:%M:%S") is what i wanted
<jmej_> thanks for pointing me in the right direction!
<breakingthings> nezumi: "Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems." comes to mind.
<breakingthings> Granted, a simple regex that I am already aware of, but seems unnecessary.
<nezumi> "Stand back! I know regular expressions!"
moos3 has quit [Quit: Computer has gone to sleep.]
platzhirsch has quit [Read error: Connection reset by peer]
<breakingthings> The first thing that came to mind was "hello world".split[0]
<breakingthings> seems simple enough but wasn't sure if there was a better way than splitting into an array first
<nezumi> A match with a RE avoids the array, but has it's own issues.
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
brum has quit [Ping timeout: 256 seconds]
<breakingthings> yeah, not too fond of either but I'd lean toward split[0] for ease of understanding
<breakingthings> damn the consequences
TorpedoSkyline has quit [Ping timeout: 256 seconds]
<breakingthings> (unfortunately my case also involves dropping the first character so it ends up being ":hello world".split[0][1..-1]"
TorpedoSkyline has joined #ruby
jnoob22 has quit [Ping timeout: 245 seconds]
obfuscate2 has quit [Ping timeout: 272 seconds]
jpfuentes2 has joined #ruby
jnoob22 has joined #ruby
obfuscate2 has joined #ruby
TorpedoSkyline has quit [Client Quit]
kil0byte_ has quit [Remote host closed the connection]
<bean> jmej_, np
danman has joined #ruby
sandGorgon has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<breakingthings> ezkl: I am already well aware of how to perform regex thank you
Animawish has quit [Quit: Animawish]
jmej_ has left #ruby [#ruby]
alexyz has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Remote host closed the connection]
angusiguess has joined #ruby
TorpedoSkyline has joined #ruby
mercwithamouth has joined #ruby
freerobby has joined #ruby
lewix has quit [Remote host closed the connection]
fcatojo_ has quit [Ping timeout: 272 seconds]
kofno has joined #ruby
heliumsocket has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 256 seconds]
yacks has quit [Ping timeout: 252 seconds]
kofno has quit [Ping timeout: 272 seconds]
obfuscate2 has quit [Remote host closed the connection]
<reppard> exit
reppard has quit [Quit: leaving]
nathancahill has quit [Quit: nathancahill]
jacobbednarz has quit [Quit: Computer has gone to sleep.]
anirudh24seven has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
anirudh24seven has joined #ruby
sambio has quit []
toekutr has joined #ruby
megha has joined #ruby
slainer68 has joined #ruby
baba has quit [Ping timeout: 245 seconds]
brum has joined #ruby
DonRichie has quit [Quit: Verlassend]
mercwithamouth has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
brum has quit [Ping timeout: 272 seconds]
brianherman has joined #ruby
rcosta has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 260 seconds]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
obfuscate2 has joined #ruby
LennyLinux has quit [Remote host closed the connection]
danneu has quit [Quit: WeeChat 0.3.8]
adkron_ has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
classix has quit [Ping timeout: 245 seconds]
nobuoka has joined #ruby
nobuoka has quit [Client Quit]
danman has quit [Quit: danman]
classix has joined #ruby
SCommette has joined #ruby
Swarley_ has quit [Read error: Connection reset by peer]
yacks has joined #ruby
alexyz has joined #ruby
nathancahill has joined #ruby
gh has joined #ruby
idkazuma has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
gh has quit [Quit: gh]
idkazuma has quit [Remote host closed the connection]
nathancahill has quit [Client Quit]
browndawg has joined #ruby
heliumsocket has joined #ruby
joofsh has joined #ruby
sandGorgon has quit [Ping timeout: 272 seconds]
bubblehead has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
brum has joined #ruby
adkron_ has quit [Ping timeout: 256 seconds]
etcetera has joined #ruby
brum has quit [Ping timeout: 272 seconds]
lewix has joined #ruby
nfk has quit [Quit: yawn]
xaq_ has quit [Remote host closed the connection]
ndboost has joined #ruby
ndboost has quit [Remote host closed the connection]
bubblehead has quit [Ping timeout: 245 seconds]
<breakingthings> Huh… I can't seem to get irb to do multiline regex
<breakingthings> it freaks out at me
jekotia has joined #ruby
Kruppe has quit [Remote host closed the connection]
IceDragon has quit [Quit: Space~~~]
<charliesome> breakingthings: try pry
yashshah_ has joined #ruby
<breakingthings> I probably should install pry but don't feel like doing it right now.
chandankumar has joined #ruby
SCommette has quit [Quit: SCommette]
freerobby has joined #ruby
<waxjar> gem install pry and you're done
g0bl1n has quit [Quit: Ex-Chat]
browndawg has quit [Ping timeout: 272 seconds]
sambio has joined #ruby
sambio has quit [Excess Flood]
sambio has joined #ruby
superninkendo has quit [Quit: Leaving.]
freerobby has quit [Ping timeout: 272 seconds]
slainer68 has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
chris___ has joined #ruby
k610 has joined #ruby
generalissimo has joined #ruby
chandankumar has quit [Quit: Leaving]
fixl has quit [Ping timeout: 256 seconds]
moeSeth_ has quit [Remote host closed the connection]
cool has quit [Remote host closed the connection]
notbrent has quit [Remote host closed the connection]
xerxas has quit [Remote host closed the connection]
Guest85414 has quit [Remote host closed the connection]
bluehavana has quit [Remote host closed the connection]
karnowski has quit [Remote host closed the connection]
phasma has quit [Remote host closed the connection]
mtlatif has quit [Remote host closed the connection]
im0b has quit [Remote host closed the connection]
guilleiguaran_ has quit [Remote host closed the connection]
lectrick has quit [Remote host closed the connection]
dnyy has quit [Remote host closed the connection]
yeban has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
lucaspiller___ has quit [Remote host closed the connection]
[0x1a] has quit [Remote host closed the connection]
[Neurotic] has quit [Remote host closed the connection]
fourq has quit [Remote host closed the connection]
cam` has quit [Remote host closed the connection]
fcoury has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
patricksroberts_ has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
dekz__ has quit [Remote host closed the connection]
rwz has quit [Remote host closed the connection]
Spaceghost|cloud has quit [Remote host closed the connection]
joshwines has quit [Write error: Broken pipe]
taqutor has quit [Remote host closed the connection]
thejefflarson_ has quit [Remote host closed the connection]
jhowarth has quit [Remote host closed the connection]
niftylettuce has quit [Write error: Connection reset by peer]
kapowaz has quit [Write error: Broken pipe]
NimeshNeema has quit [Write error: Connection reset by peer]
spanx has quit [Write error: Broken pipe]
randym has quit [Write error: Broken pipe]
kaichanvong has quit [Write error: Broken pipe]
brum has joined #ruby
k610 has quit [Ping timeout: 272 seconds]
bricker`1A has joined #ruby
slainer68 has quit [Ping timeout: 246 seconds]
fixl has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
browndawg has joined #ruby
bricker`LA has quit [Ping timeout: 245 seconds]
w400z has joined #ruby
brum has quit [Ping timeout: 252 seconds]
Derpfiend has quit [Quit: Leaving]
browndawg has quit [Ping timeout: 272 seconds]
cms has joined #ruby
faen has quit [Remote host closed the connection]
tommyvyo has joined #ruby
apok has joined #ruby
swks has joined #ruby
swks has quit [Client Quit]
jurassic_ has quit [Quit: jurassic_]
yashshah_ has quit [Ping timeout: 272 seconds]
chris___ has quit [Remote host closed the connection]
sambio has quit [Changing host]
sambio has joined #ruby
angusiguess has joined #ruby
joofsh has quit [Remote host closed the connection]
_br_ has quit [Excess Flood]
angusiguess has quit [Ping timeout: 256 seconds]
toekutr has quit [Remote host closed the connection]
anirudh24seven has quit [Ping timeout: 272 seconds]
angusiguess has joined #ruby
_br_ has joined #ruby
_br_ has quit [Excess Flood]
bricker`LA has joined #ruby
robustus has joined #ruby
_br_ has joined #ruby
bricker`1A has quit [Ping timeout: 240 seconds]
_br_ has quit [Excess Flood]
brum has joined #ruby
robustus|Off has quit [Ping timeout: 255 seconds]
shock_one has joined #ruby
jaimef has quit [Excess Flood]
jaimef has joined #ruby
_br_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
brum has quit [Ping timeout: 272 seconds]
jurassic_ has joined #ruby
mockra has joined #ruby
_br_ has quit [Excess Flood]
browndawg has joined #ruby
madb055 has quit [Ping timeout: 272 seconds]
_br_ has joined #ruby
Tectonic has joined #ruby
dmiller1 has joined #ruby
wallerdev has quit [Quit: wallerdev]
bijumon has joined #ruby
breakingthings has quit []
jurassic_ has quit [Quit: jurassic_]
bttf has joined #ruby
freerobby has joined #ruby
subbyyy has quit [Ping timeout: 255 seconds]
kuzushi has joined #ruby
generalissimo has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 256 seconds]
w400z has quit []
chris___ has joined #ruby
agarie has quit [Read error: Connection reset by peer]
agarie has joined #ruby
mikurubeam has quit [Quit: brb]
mikurubeam has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
Davey has joined #ruby
brum has joined #ruby
nari has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
dayepa has quit [Quit: dayepa]
sonots has quit [Remote host closed the connection]
berto- has joined #ruby
dayepa has joined #ruby
lewix has quit [Remote host closed the connection]
`p has quit [Read error: Connection reset by peer]
brum has quit [Ping timeout: 256 seconds]
sandGorgon has joined #ruby
tcopp has quit [Ping timeout: 240 seconds]
chaluopa has quit [Remote host closed the connection]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
chris___ is now known as codesoda
sambio is now known as zambio
zambio is now known as gambioy
gambioy is now known as gaymbio
tommyvyo has quit [Quit:]
gaymbio is now known as sambio
lushious has joined #ruby
sandGorgon has quit [Ping timeout: 272 seconds]
decoponio has joined #ruby
emergion has joined #ruby
cantonic has quit [Ping timeout: 260 seconds]
codesoda has quit [Remote host closed the connection]
jurassic_ has joined #ruby
cantonic has joined #ruby
mockra has quit [Remote host closed the connection]
Guest24828 has quit [Quit: This computer has gone to sleep]
sonots has joined #ruby
jarin has joined #ruby
mikurubeam has quit [Quit: lag]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
`p has joined #ruby
Matt has joined #ruby
Matt is now known as Guest9043
tomsthumb has joined #ruby
Inside has quit [Ping timeout: 252 seconds]
brum has joined #ruby
brum_ has joined #ruby
sandGorgon has joined #ruby
brum has quit [Read error: Connection reset by peer]
huoxito has quit [Quit: Leaving]
bubblehead has joined #ruby
vlad_starkov has joined #ruby
divout has joined #ruby
etcetera has quit []
emergion has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
tomsthumb has quit [Quit: Leaving.]
brum_ has quit [Remote host closed the connection]
sandGorgon has quit [Read error: Connection reset by peer]
sandGorgon has joined #ruby
dmiller1 has quit [Ping timeout: 260 seconds]
Skofo has quit [Remote host closed the connection]
dmoctezuma has joined #ruby
freerobby has joined #ruby
ritek has quit [Read error: Connection reset by peer]
bubblehead has quit [Ping timeout: 255 seconds]
yashshah has joined #ruby
sandGorgon has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
sandGorgon has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
mduvall has joined #ruby
mduvall has quit [Client Quit]
Faris7 has quit [Ping timeout: 252 seconds]
ritek has joined #ruby
dmoctezuma has quit [Read error: Connection reset by peer]
pen has quit [Remote host closed the connection]
ckrailo has joined #ruby
cantonic has quit [Quit: cantonic]
thebastl has joined #ruby
senayar has joined #ruby
apok has quit [Quit: apok]
kofno has joined #ruby
ckrailo has quit [Ping timeout: 276 seconds]
Hanmac has joined #ruby
yashshah has quit [Ping timeout: 240 seconds]
mansgrf has joined #ruby
answer_42 has joined #ruby
mansgrf has quit [K-Lined]
Hanmac1 has quit [Ping timeout: 260 seconds]
miroatme_ has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
icole has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 272 seconds]
kuzushi has quit [Ping timeout: 246 seconds]
angusiguess has quit [Ping timeout: 246 seconds]
Guest9043 has quit [Quit: This computer has gone to sleep]
Emmanuel_Chanel has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
Akuma has quit [Read error: Operation timed out]
Matt has joined #ruby
Matt is now known as Guest17579
angusiguess has joined #ruby
sonots has quit [Remote host closed the connection]
<shock_one> havenwood, are you here?
danneu has joined #ruby
bradleyprice has quit [Remote host closed the connection]
Akuma has joined #ruby
brum has joined #ruby
Astralum has joined #ruby
whitedawg has joined #ruby
Astral_ has quit [Ping timeout: 256 seconds]
nouitfvf has quit [Ping timeout: 256 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
kuzushi has joined #ruby
t-mart has quit [Read error: Connection reset by peer]
arietis has joined #ruby
t-mart has joined #ruby
brum has quit [Ping timeout: 256 seconds]
icole has joined #ruby
verysoftoiletppr has joined #ruby
freerobby has joined #ruby
[rust] has quit [Quit: Leaving]
thebastl has quit [Remote host closed the connection]
icole has quit [Ping timeout: 260 seconds]
deleff has joined #ruby
dmiller1 has joined #ruby
madb055 has joined #ruby
faen has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
dmiller1 has quit [Ping timeout: 255 seconds]
thorncp has left #ruby [#ruby]
browndawg has quit [Read error: Connection reset by peer]
ckrailo has joined #ruby
Es0teric has joined #ruby
deleff has quit [Quit: deleff]
lushious has quit [Remote host closed the connection]
angusiguess has joined #ruby
hadees has quit [Ping timeout: 245 seconds]
hadees has joined #ruby
ckrailo has quit [Ping timeout: 276 seconds]
browndawg has joined #ruby
miroatme_1 has joined #ruby
yashshah has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
miroatme_ has quit [Ping timeout: 240 seconds]
thebastl has joined #ruby
rburton- has quit [Quit: Leaving...]
sandGorgon has quit [Read error: Operation timed out]
crimezone20xx has joined #ruby
chaluopa has joined #ruby
browndawg has quit [Ping timeout: 272 seconds]
whitedawg has quit [Quit: Leaving.]
danslo has quit [Quit: danslo]
Morkel has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
kuzushi has quit [Ping timeout: 246 seconds]
chaluopa has quit [Remote host closed the connection]
crimezone20xx has quit [Ping timeout: 246 seconds]
Bry8Star has joined #ruby
brum has joined #ruby
sayan has joined #ruby
peteyg_ has quit [Ping timeout: 246 seconds]
blacktulip has joined #ruby
nomenkun has joined #ruby
Guest17579 has quit [Quit: This computer has gone to sleep]
chaluopa has joined #ruby
brum has quit [Ping timeout: 272 seconds]
yashshah has quit [Ping timeout: 252 seconds]
jacobbednarz has joined #ruby
nathancahill has joined #ruby
<shevy> hey Hanmac is eclipse good?
<shevy> Hanmac can I manage projects? (50 different files opened up)
<Hanmac> yeah eclipse can handle this
browndawg has joined #ruby
BizarreCake has joined #ruby
nicoulaj has joined #ruby
chaluopa has quit [Remote host closed the connection]
rburton- has joined #ruby
sayan_ has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
aedornm has quit [Quit: Leaving]
nari has quit [Ping timeout: 260 seconds]
mattbl has joined #ruby
<shock_one> havenwood, hey, I have written the gem we were talking about yesterday and I want to add your name to the authors. Please, write me when you're here.
rburton- has quit [Ping timeout: 252 seconds]
worncitizen has joined #ruby
dmoctezuma has joined #ruby
ritek has quit [Read error: Connection reset by peer]
tokhi has joined #ruby
dmoctezuma has quit [Client Quit]
worncitizen has quit [Client Quit]
yashshah has joined #ruby
pyx has joined #ruby
pyx has quit [Client Quit]
sayan_ has quit [Read error: Connection reset by peer]
Nuck has quit [Quit: Nuck Off]
Fuzai has quit [Quit: fuzai]
Nuck has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
brum has joined #ruby
atmosx has joined #ruby
<atmosx> hello guys
browndawg has quit [Ping timeout: 272 seconds]
<atmosx> anyone messing up with sinatra? I have a weird issue witha restricted route
thebastl has quit [Remote host closed the connection]
madb055 has quit [Ping timeout: 246 seconds]
brum has quit [Ping timeout: 256 seconds]
predator217 has quit [Ping timeout: 252 seconds]
tokhi has quit [Ping timeout: 272 seconds]
sambio has quit []
jacobw has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
psyprus has joined #ruby
<shock_one> Code review, guys? https://github.com/shockone/gemper
predator117 has joined #ruby
Faris7 has joined #ruby
browndawg has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
shevy has quit [Ping timeout: 252 seconds]
Tectonic has quit []
Mon_Ouie has quit [Ping timeout: 255 seconds]
psyprus has quit [Ping timeout: 258 seconds]
psyprus has joined #ruby
<Hanmac> shock_one look at: ["rubylibdir","rubyarchdir"].flat_map {|dir|Dir.foreach(RbConfig::CONFIG[dir]).map{|s|File.basename(s,File.extname(s))}}
emocakes has joined #ruby
tokhi has joined #ruby
<shock_one> Hanmac, do you think it's better than trying to require the gem?
hogeo has quit [Remote host closed the connection]
<Hanmac> shock_one: maybe no, this what i show you is the stdlib stuff
hogeo has joined #ruby
rclsilver has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
<rclsilver> hi, i've a ruby application (redmine) in openshift. At startup the pages loading are very slow (and sometimes i get HTTP 502). Any way to "pre-build" applications pages at startup or something like that?
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<shock_one> Hanmac, I don't understand what's going on. It doesn't work as is. Do I have to change the array to an actual paths? With $LOAD_PATH doesn't work either.
<Hanmac> rclsilver: i think this is a #rubyonrails question
psyprus has joined #ruby
<rclsilver> oh, yep sure
<rclsilver> thx
<Hanmac> shock_one: do you mean my line or what do you mean?
<shock_one> Hanmac, yes, your code doesn't work for me.
cha1tanya has quit [Quit: Leaving]
hogeo has quit [Ping timeout: 272 seconds]
<Hanmac> »"doesn't work" is not an valid exception«
shevy has joined #ruby
<Hanmac> shock_one: okay the config entry has been changed: http://eval.in/private/aa8820eceef316
psyprus has quit [Ping timeout: 258 seconds]
psyprus has joined #ruby
jaysql has joined #ruby
<jaysql> hi guyze
xQuasar has joined #ruby
<xQuasar> hi all
<xQuasar> i want to learn ruby
pygmael has joined #ruby
<xQuasar> can anyone help me get started
sayan has joined #ruby
agarie has quit [Remote host closed the connection]
<jaysql> is this ruby on rails?
mattbl has quit [Quit: This computer has gone to sleep]
jacobw has quit [Quit: WeeChat 0.4.0]
<Hanmac> jaysql: #rubyonrails
<jaysql> but this is ruby
<Hanmac> xQuasar: you could begin with http://www.ruby-lang.org/en/documentation/quickstart/
<Hanmac> jaysql: but ruby is not rails
<jaysql> no
<shock_one> Hanmac, thank you, I'll save it. It, of course, works faster (at least, if we have to require many files), but I don't like two things. First — hardcoding; is there a possibility that these names will change? Or if it happens, changing this gem will be the smallest of my problems? And second — I still have to do the require thing in order to filter installed third-party gems.
<xQuasar> what is ruby on rails?
<xQuasar> it sounds cool
<xQuasar> can i learn that instead
<xQuasar> is it like, trains made out of rubies?
Faris8 has joined #ruby
<xQuasar> but emerals are cooler than rubies
<Hanmac> xQuasar: no, you should first learn ruby
<xQuasar> can i learn emeralds on rails?
<jaysql> this is rubyonrails
vlad_sta_ has joined #ruby
<Hanmac> jaysql: there is an other channel special for rubyonrails
<xQuasar> wow this channel is so unhelpful
sayan has quit [Max SendQ exceeded]
nomenkun has quit [Remote host closed the connection]
sayan has joined #ruby
<jaysql> wtf?!
Faris7 has quit [Ping timeout: 252 seconds]
<jaysql> i want to learn pls
<Hanmac> shock_one: the names does changed from 1.9 to 2.0, and with the array it returns you could find out if something is in stdlib, so you dont need to require it
vlad_starkov has quit [Ping timeout: 256 seconds]
lusory has quit [Quit: leaving]
<jaysql> GIVE ME MY RUBY
<Hanmac> jaysql: as i already told you there is an other room named #rubyonrails for that
lupine has quit [Excess Flood]
yashshah has quit [Ping timeout: 240 seconds]
<jaysql> THERE IS NOONE IN THAT ROOM
<Hanmac> liar there are nearly 600 in this room
<jaysql> so why i dont see anyone?
erwinticzon has joined #ruby
sayan has quit [Max SendQ exceeded]
jdunck has quit [Quit: Computer has gone to sleep.]
<Hanmac> maybe the room needs time to be fully opend? so you closed it to fast?
<xQuasar> hanmac
sayan has joined #ruby
<xQuasar> can u teach me emerald on rails
<jaysql> i am there but i cant see anyone
<xQuasar> i bet its cooler than ruby on rails
sayan has quit [Remote host closed the connection]
<xQuasar> ... what about diamond on rails
ToApolytoXaos has joined #ruby
ToApolytoXaos has quit [Read error: Connection reset by peer]
<jaysql> trolls on rails
<xQuasar> wat is troll
erwinticzon has quit [Client Quit]
hector__ has joined #ruby
<Hanmac> shevy: comeon say something
<jaysql> a trol is a ruby
nouitfvf has joined #ruby
lusory has joined #ruby
berto- has quit [Quit: berto-]
lupine has joined #ruby
jaysql has quit [Quit: a]
timonv has joined #ruby
ziprar has quit [Ping timeout: 260 seconds]
jimeh has joined #ruby
ziprar has joined #ruby
hector__ has quit [Ping timeout: 252 seconds]
shock_one has left #ruby ["Ex-Chat"]
shock_one has joined #ruby
ToApolytoXaos has joined #ruby
ToApolytoXaos has quit [Read error: Connection reset by peer]
snearch has joined #ruby
ToApolytoXaos has joined #ruby
marcdel has quit []
eka has joined #ruby
<shevy> Hanmac hmm?
h8R has quit [Ping timeout: 256 seconds]
brum has joined #ruby
<Hanmac> shevy or what did you think how i should react with this?
<shevy> dunno, I was not paying attention, just got back to my computer :)
<shevy> xQuasar, can you program?
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
brum has quit [Ping timeout: 272 seconds]
m8 has joined #ruby
nathancahill has quit [Quit: nathancahill]
pygmael has quit [Quit: pygmael]
Davey has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
<Quadlex> I really wish I had something to sue EC2 for
<jacobbednarz> you men amazon?
postmodern has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
<Quadlex> Err, use, not sue
<Quadlex> Sorry, I am full of the blood of Jesus
tokhi has quit [Ping timeout: 246 seconds]
Nisstyre-laptop has quit [Ping timeout: 246 seconds]
jurassic_ has quit [Quit: jurassic_]
h8R has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
timonv has joined #ruby
kapowaz has joined #ruby
Guest85414 has joined #ruby
nobitanobi has joined #ruby
dekz__ has joined #ruby
moeSeth_ has joined #ruby
spanx has joined #ruby
brum has joined #ruby
Catbuntu has joined #ruby
Lockzi has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
Lockzi has joined #ruby
himsin has quit [Ping timeout: 256 seconds]
arietis has joined #ruby
spanx has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
moeSeth_ has quit [Remote host closed the connection]
dekz__ has quit [Remote host closed the connection]
Guest85414 has quit [Remote host closed the connection]
brum has quit [Ping timeout: 256 seconds]
snearch has quit [Quit: Verlassend]
nomenkun has quit [Ping timeout: 272 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
artofraw has joined #ruby
rburton- has joined #ruby
dawkirst has quit [Ping timeout: 252 seconds]
Faris8 has quit [Ping timeout: 256 seconds]
Matchaw has quit [Read error: Connection reset by peer]
rburton- has quit [Ping timeout: 255 seconds]
skattyadz has joined #ruby
Faris8 has joined #ruby
whowantstolivefo has joined #ruby
postmodern has joined #ruby
timonv has quit [Remote host closed the connection]
atmosx has left #ruby ["And so the story goes…"]
havenwood has quit [Remote host closed the connection]
_bart has quit [Quit: _bart]
jaygen has joined #ruby
jaygen has quit [Read error: Connection reset by peer]
jaygen has joined #ruby
drale2k has quit [Quit: Leaving...]
jacobbednarz has quit [Quit: Computer has gone to sleep.]
drale2k has joined #ruby
davetherat has quit [Remote host closed the connection]
mpfundstein has joined #ruby
jacobbednarz has joined #ruby
sayan has joined #ruby
mpfundstein_ has joined #ruby
timonv has joined #ruby
tokhi has joined #ruby
Guest85414 has joined #ruby
kapowaz has joined #ruby
angusiguess has joined #ruby
presto has joined #ruby
Matip has joined #ruby
kofno has joined #ruby
dekz__ has joined #ruby
moeSeth_ has joined #ruby
browndawg has quit [Quit: Leaving.]
mahmoudimus has joined #ruby
Mattix has quit [Ping timeout: 255 seconds]
lkba has quit [Ping timeout: 245 seconds]
spanx has joined #ruby
xQuasar has left #ruby [#ruby]
brum has joined #ruby
slainer68 has joined #ruby
mpfundst_ has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
nari has joined #ruby
mpfundstein__ has joined #ruby
mpfundstein has quit [Ping timeout: 272 seconds]
timonv has quit [Remote host closed the connection]
mpfundstein_ has quit [Ping timeout: 245 seconds]
tokhi has quit [Ping timeout: 252 seconds]
Assurbanipal has joined #ruby
brum has quit [Ping timeout: 272 seconds]
nomenkun has joined #ruby
angusiguess has joined #ruby
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
thone has joined #ruby
dekz__ has quit [Remote host closed the connection]
spanx has quit [Remote host closed the connection]
Guest85414 has quit [Remote host closed the connection]
moeSeth_ has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
danslo has joined #ruby
roelb_ has joined #ruby
<shevy> who uses colours in his ruby scripts?
freerobby has joined #ruby
chandankumar has joined #ruby
danslo has quit [Client Quit]
akashj87 has joined #ruby
choobie has quit [Ping timeout: 245 seconds]
thone_ has quit [Ping timeout: 252 seconds]
<shevy> how can I include a method only if it was not already defined?
<shevy> def foo; puts 'hi'; end unless defined? foo
<shevy> ?
chandankumar has quit [Read error: Connection reset by peer]
<sam113101> what's the bigger picture
nomenkun has quit [Ping timeout: 260 seconds]
<shevy> sam113101 I want to know what people use to do ansi colours, in their real scripts
<sepp2k> shevy: Does that not work?
codesoda has joined #ruby
<sam113101> there's a lib for colors
<sam113101> it allows you to do 'text'.blue if I recall correctly
<shevy> sepp2k hmm it works but I am not too enthusiastic about things
<shevy> my problem with 'foo'.colour is that this is hardcoded
<sam113101> what do you mean?
<shevy> imagine you have a large script, and want to use different colours
<shevy> then you want to change the colours one day perhaps
<sepp2k> shevy: Why do you want to do it anyway? Define a method only if it isn't defined, I mean.
<shevy> so you would have to change all 'foo'.blue
<shevy> ah
<shevy> sepp2k, I want to include a method, in a module, only if that project does not yet use it
<sepp2k> That doesn't really answer the "why"
<shevy> so that I would not overrule it in a project if it already exists there
<Quadlex> shevy: when you define a method in a class which includes a module
<Quadlex> the cleass level instance takes precedence
<shevy> aha
<Quadlex> You might want to read up on Ruby's inheretance chain
<Quadlex> It helps sort out what definitions are used and when
<banisterfiend> Quadlex: inheritance*
hashmal has joined #ruby
security has joined #ruby
<Quadlex> banisterfiend: Sorry, wine.
codesoda has left #ruby [#ruby]
megha has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
cantonic has joined #ruby
chunk2k3 has quit [Ping timeout: 245 seconds]
jimeh has joined #ruby
<shock_one> shevy, I just used it today https://dl.dropbox.com/u/608214/scrn/1364730064.png
<shevy> shock_one hmm
<shevy> shock_one what did you use there?
<shevy> or rather, what is gemper?
gommo has joined #ruby
Xeago has joined #ruby
DrCode has quit [Write error: Connection reset by peer]
Catbuntu has quit [Quit: Leaving]
<shock_one> shevy, it's the best gem ever, which I've written at this weekend. https://github.com/shockone/gemper . I just hardcoded the values "\e[31mFile not found: #{path}\e[0m"
<shevy> well at least that is simple
brum has joined #ruby
<shevy> but, I dunno... what if users want to use different colours?
emocakes has quit [Quit: emocakes]
arietis has quit [Quit: Computer has gone to sleep.]
<shock_one> shevy, he shouldn't want it.
yacks has quit [Ping timeout: 255 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<shevy> hehehe
<shock_one> shevy, what is the problem? She can set colors she wants, you store them somewhere and interpolate. Or use this gem, colorize.
<shevy> hmm will look at that gem
mercwithamouth has quit [Ping timeout: 246 seconds]
TomJ_ has joined #ruby
brum has quit [Ping timeout: 272 seconds]
TomJ has quit [Ping timeout: 245 seconds]
TomJ_ is now known as TomJ
kofno has quit [Remote host closed the connection]
ziprar has quit [Remote host closed the connection]
BSaboia has joined #ruby
Guest85414 has joined #ruby
kapowaz has joined #ruby
kofno has joined #ruby
jacobbednarz has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
Faris8 has quit [Quit: Faris8]
nfk has joined #ruby
gommo has quit [Remote host closed the connection]
Sicp has joined #ruby
arietis has joined #ruby
gommo has joined #ruby
dekz__ has joined #ruby
skroon has joined #ruby
moeSeth_ has joined #ruby
gommo has quit [Ping timeout: 256 seconds]
spanx has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
roelb_ has quit [Quit: Page closed]
Layke has quit [Ping timeout: 272 seconds]
emmanuelux has joined #ruby
nobitanobi has quit [Ping timeout: 272 seconds]
Vainoharhainen has joined #ruby
Xeago has quit [Remote host closed the connection]
rcj_ has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
bubblehead has joined #ruby
nomenkun has joined #ruby
lucaspiller___ has joined #ruby
banisterfiend has quit [Remote host closed the connection]
dnyy has joined #ruby
razibog has joined #ruby
skum has joined #ruby
Vainoharhainen has quit [Read error: Connection reset by peer]
bubblehead has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
<shock_one> Are there any mnemonics to remember the array literals? I mean, why the heck does %i means symbols and %w strings?
fcoury has joined #ruby
Layke has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<Quadlex> shock_one: I remember %w as "words"
<shock_one> Quadlex, and %i are "immutable words" ☺
<Quadlex> And %i as sImbals or Immutable
<Quadlex> Yup
<Quadlex> Or Idempotent
<Quadlex> I'm not sure why those literals were chosen, but that's what helps me
<Quadlex> Although I don't use them often I think they're not as intention revealing
<shock_one> If there is interpolated array (%I, like %W), it can be quite useful.
niftylettuce has joined #ruby
kaichanvong has joined #ruby
bluehavana has joined #ruby
NimeshNeema has joined #ruby
skattyadz has quit [Quit: skattyadz]
guilleiguaran_ has joined #ruby
<shevy> I use %w a lot
<shevy> the others, not really
<shevy> it's less type work, ['cat','dog','horse'] vs. %w( cat dog horse )
rwz has joined #ruby
justsee_ has joined #ruby
justsee has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
cool_ has joined #ruby
Xeago has joined #ruby
TheFuzzball has joined #ruby
bttf has quit [Quit: leaving]
brum has joined #ruby
tenmilestereo has joined #ruby
kofno has quit [Remote host closed the connection]
rcsheets has joined #ruby
davidboy has joined #ruby
patricksroberts_ has joined #ruby
brum has quit [Ping timeout: 272 seconds]
Mattx has joined #ruby
Matip has quit [Ping timeout: 272 seconds]
predator117 has quit [Quit: leaving]
predator117 has joined #ruby
octarine has joined #ruby
kofno has joined #ruby
dfghjklrtyui has joined #ruby
artofraw has quit [Read error: Connection reset by peer]
DonRichie has joined #ruby
spider-mario has joined #ruby
kofno has quit [Remote host closed the connection]
Ortuna has joined #ruby
kofno has joined #ruby
artofraw has joined #ruby
xerxas has joined #ruby
brum has joined #ruby
lectrick has joined #ruby
maycon_ has joined #ruby
thejefflarson_ has joined #ruby
pskosinski has joined #ruby
sayan has quit [Read error: Connection reset by peer]
maycon has quit [Ping timeout: 272 seconds]
jinzhu has joined #ruby
BizarreCake has quit [Read error: Connection timed out]
kofno has quit [Remote host closed the connection]
justsee_ has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
mikurubeam has joined #ruby
<injekt> Quadlex: %i stands for 'intern'
BizarreCake has joined #ruby
jinzhu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Morkel has quit [Quit: Morkel]
<Quadlex> injekt: short for internal
<Quadlex> ?
<injekt> Quadlex: I'm not sure I just know String#intern came before #to_sym
<injekt> string interning is a thing
Neomex has joined #ruby
<injekt> so intern is probably not short for anything
tommyvyo has quit [Quit:]
jinzhu has joined #ruby
jinzhu has quit [Remote host closed the connection]
<injekt> lots of other languages have it its just more popular in ruby mostly for stuff like hash keys, ie Java has String.intern(str) python has intern(str) and luckily we have String#intern or the mode widly used alias #to_sym
<Quadlex> Ah, OK. It's not a term I've heard before
<Quadlex> Thank you for the info ^_^
Spaceghost|cloud has joined #ruby
<injekt> Quadlex: no problem, check out 'String interning' for more info or 'string intern pool' its nice to know :)
akashj87 has quit [Quit: leaving]
<Quadlex> Cool ^)^
notbrent has joined #ruby
tomzx_mac has joined #ruby
much4 has joined #ruby
browndawg has joined #ruby
* Quadlex gives injekt a digital easter egg as a thank you
<Quadlex> Or the thematically appropriate confection of your choice
<injekt> NOM
hiyakashi has joined #ruby
much4 has quit [Quit: WeeChat 0.4.0]
nomenkun has joined #ruby
im0b has joined #ruby
jhowarth has joined #ruby
Xeago has quit [Remote host closed the connection]
tommyvyo has joined #ruby
sayan has joined #ruby
chessguy has quit [Remote host closed the connection]
sayan has quit [Client Quit]
nomenkun has quit [Ping timeout: 245 seconds]
chessguy has joined #ruby
subbyyy has joined #ruby
grn has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
baz_ has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
skattyadz has joined #ruby
skum has quit [Quit: Leaving...]
randym has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
kristofers has joined #ruby
Morkel has joined #ruby
moos3 has joined #ruby
Sicp has quit [Ping timeout: 260 seconds]
cam` has joined #ruby
Sicp has joined #ruby
joofsh has joined #ruby
karnowski has joined #ruby
moos3 has quit [Client Quit]
browndawg has quit [Quit: Leaving.]
baz_ has joined #ruby
as_ has joined #ruby
lewix has joined #ruby
sonots has joined #ruby
moos3 has joined #ruby
jpfuentes2 has joined #ruby
browndawg has joined #ruby
osama has joined #ruby
moos3 has quit [Client Quit]
tokhi has joined #ruby
chessguy has quit [Remote host closed the connection]
flowerhack has joined #ruby
yeban has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
jcrawford has quit [Quit: EliteBNC - http://www.elitebnc.org/]
jcrawford has joined #ruby
tokhi has quit [Ping timeout: 272 seconds]
madb055 has joined #ruby
bean__ has joined #ruby
BSaboia has quit [Ping timeout: 272 seconds]
tokhi has joined #ruby
<Xeago> apeiros_: I'm heavily considering going random/terran/zerg for a while
[0x1a] has joined #ruby
<A124> Xeago: Huh? ..
Xeago has quit [Remote host closed the connection]
bean__ has quit [Ping timeout: 246 seconds]
<A124> It it would be egg, it's more zerg xD
fourq has joined #ruby
bean__ has joined #ruby
madb055 has quit [Ping timeout: 272 seconds]
adambeynon has joined #ruby
wallerdev has joined #ruby
solidoodlesuppor has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
sonda has joined #ruby
arya has quit [Ping timeout: 248 seconds]
postmodern has quit [Remote host closed the connection]
BSaboia has joined #ruby
taqutor has joined #ruby
yashshah has joined #ruby
timonv has quit [Remote host closed the connection]
dEPy has joined #ruby
chetan- has left #ruby [#ruby]
[Neurotic] has joined #ruby
banisterfiend has joined #ruby
arya has joined #ruby
bubblehead has joined #ruby
yashshah has quit [Ping timeout: 255 seconds]
Neomex has quit [Quit: Neomex]
predator117 has joined #ruby
joshwines has joined #ruby
arya has quit [Ping timeout: 248 seconds]
subbyyy has quit [Ping timeout: 245 seconds]
subbyyy has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
nobitanobi has quit [Ping timeout: 272 seconds]
LennyLinux has joined #ruby
mtlatif has joined #ruby
codecop has joined #ruby
tcopp has joined #ruby
arya has joined #ruby
br4ndon has joined #ruby
lewix has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
<Layke> Is there a name for these types of blocks? my_array.select{ |e| e % 2 == 0 }.each do |e| puts e end
<Layke> blocks wrapped in {} and do end blocks?
<Hanmac> Layke: most users prefer {} for single line, and do ... end for multiline ... but there is also an difference in preference
<shevy> Layke {} and do/end are almost 100% the same
<shevy> he means a difference in precedence :D
spacemud has quit [Ping timeout: 245 seconds]
<shevy> though he is right
<shevy> there is also a difference in preference
<shevy> I prefer {} for instance
phasma has joined #ruby
mellow80 has joined #ruby
pioz has joined #ruby
<mellow80> hi
<Layke> Are they called different things? Like, "short handblock"
<mellow80> im looking for a xmpp chat client for facebook written in ruby
<Layke> or anything?
<mellow80> anyone heard of it?
<mellow80> to authenticate as a user
nari has quit [Ping timeout: 255 seconds]
<Layke> xmpp is just the protocol. any xmpp/jabber client written in ruby should be sufficient? You shouldn't have to look for specific facebook?
<mellow80> true, then anyone knows a good xmpp chat client in ruby?
<Layke> shevy / Hanmac I obviously can't chain multi-line like I can with {} either right?
freeayu has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
<Hanmac> you can
freeayu has joined #ruby
sleetdrop has joined #ruby
freeayu has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<Layke> So you can. I didn't think my_array.select do |v| v % 2 == 0 end.each do |e| p e end
<Layke> Didn't think it would work.
<Layke> Clearly using {} makes it much more readable.
sambao21 has joined #ruby
freerobby has quit [Quit: Leaving.]
johnmilton has quit [Remote host closed the connection]
freerobby has joined #ruby
chaluopa has joined #ruby
nomenkun has joined #ruby
voodoofish has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Remote host closed the connection]
<charliesome> Layke: i prefer { } when i'm using the return value of the block, and do..end when i'm just interested in the block's side effects
<charliesome> Layke: whether its multi line or not doesn't concern me
tcopp has quit [Ping timeout: 255 seconds]
arya has quit [Ping timeout: 248 seconds]
<Layke> Thanks.
nobitanobi has joined #ruby
cobragoat has joined #ruby
jurassic_ has joined #ruby
TorpedoSkyline has quit [Quit: Don't follow me if you don't want hilarity and QUITing to ensue. Also, freelancing and iOS. @TorpedoSkyline]
cobragoat has quit [Remote host closed the connection]
indigenous has quit [Read error: Operation timed out]
<bakingbread> Layke: you can do what ever you want in your own project. but if your google you will find out that there is (unofficial) style guides and de facto is using {} for one liners, do/end otherwise
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
lushious has joined #ruby
indigenous has joined #ruby
DesertFox has joined #ruby
bricker`LA has quit [Ping timeout: 256 seconds]
arya has joined #ruby
guyz has quit [Ping timeout: 252 seconds]
uris has joined #ruby
spacemud has joined #ruby
<Layke> bakingbread, Yeah. I'm quite interested in following best standards. I've come from a ten year background of PHP and fed up with mis-matches.
voodoofish has joined #ruby
<Layke> I've been reading coding styles that I've come across already. Will start reading code on GH eventually as well.
digifiv5e has joined #ruby
sonots has quit [Quit: Leaving...]
digifiv5e is now known as Guest1416
cantonic_ has joined #ruby
Hanmac1 has joined #ruby
drumond19 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
sambao21 has quit [Ping timeout: 256 seconds]
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
Hanmac1 is now known as Hanmac
<A124> Layke: Yeah. Same here, just as charliesome said. One liners / return values are mostly {} for me
<charliesome> if i have a one liner where i don't care about the return value i tend to use do end
skattyadz has quit [Quit: skattyadz]
<charliesome> it can depend
<A124> heh
<A124> I more tend to standards
<charliesome> but with ruby's implicit return it can really help to have some sort of indication about whether you actually intend to return things
osama has quit [Ping timeout: 245 seconds]
_wtw_ has joined #ruby
<Layke> I read this yesterday. (Before I started learning any ruby). It was actually a good help... Will cover it again shortly https://github.com/bbatsov/ruby-style-guide
_br_ has quit [Excess Flood]
brum has quit [Remote host closed the connection]
_br_ has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
mellow80 has quit [Quit: http://www.kiwiirc.com/ - A hand-crafted IRC client]
arya_ has joined #ruby
_br_ has quit [Excess Flood]
arya has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Quit: Leaving.]
heliumsocket has joined #ruby
_br_ has joined #ruby
keymone has joined #ruby
Sicp has quit [Ping timeout: 240 seconds]
<shock_one> injekt, So, they use collect for map because map it too academic, but now they added %i[interned] array literals?
arya_ has quit [Ping timeout: 272 seconds]
_br_ has quit [Excess Flood]
DesertFox is now known as DesertFoxATX
_br_ has joined #ruby
wallerdev has joined #ruby
skattyadz has joined #ruby
timonv has quit [Remote host closed the connection]
as_ has quit [Quit: Leaving]
pioz has joined #ruby
sambao21 has joined #ruby
superninkendo has joined #ruby
sambao21 has quit [Client Quit]
<keymone> anyone knows how much of postgres_ext is merged into rails4?
<keymone> oops, wrong channel
<charliesome> keymone: try #RubyOnRails
<keymone> sorry
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
skroon has quit [Read error: Connection reset by peer]
skroon has joined #ruby
freerobby has quit [Quit: Leaving.]
sambao21 has joined #ruby
Sicp has joined #ruby
arya has joined #ruby
jimeh has joined #ruby
lewix has joined #ruby
sayan has joined #ruby
syco has joined #ruby
sambao21 has quit [Ping timeout: 272 seconds]
syco_ has joined #ruby
KenDhia has joined #ruby
arya_ has joined #ruby
arya_ has quit [Client Quit]
grn has joined #ruby
arya has quit [Ping timeout: 255 seconds]
syco has quit [Ping timeout: 246 seconds]
syco_ has quit [Ping timeout: 256 seconds]
zack has joined #ruby
<zack> anyone here ever use IMAP a lot?
freakazoid0223 has quit [Read error: Connection reset by peer]
superninkendo has quit [Quit: Leaving.]
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
<DesertFoxATX> sure i send emails all the time
yashshah has joined #ruby
<zack> any way to get a list of messages that *dont* have attachments?
<MrZYX> DesertFoxATX: you do send mails over IMAP? :P
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<DesertFoxATX> Are you using any particular gem?
joofsh has quit [Remote host closed the connection]
ZachBeta has joined #ruby
KenDhia has quit [Ping timeout: 260 seconds]
maxmanders has joined #ruby
yashshah- has joined #ruby
yashshah has quit [Ping timeout: 256 seconds]
whitedawg has joined #ruby
BSaboia has quit [Ping timeout: 272 seconds]
berto- has joined #ruby
jnoob22 has quit [Remote host closed the connection]
jnoob22 has joined #ruby
jnoob22 has quit [Remote host closed the connection]
yashshah- has quit [Ping timeout: 256 seconds]
jnoob22 has joined #ruby
eliasp has quit [Quit: No Ping reply in 180 seconds.]
chussenot has joined #ruby
chussenot has quit [Client Quit]
eliasp has joined #ruby
berto- has quit [Client Quit]
Neomex has joined #ruby
Beoran_ has joined #ruby
SCommette has joined #ruby
lewix has quit [Remote host closed the connection]
jwang has quit [Read error: Connection reset by peer]
xaq has joined #ruby
Morkel has quit [Quit: Morkel]
lewix has joined #ruby
chussenot has joined #ruby
jwang has joined #ruby
chussenot has quit [Client Quit]
banisterfiend has joined #ruby
Beoran__ has quit [Ping timeout: 245 seconds]
Neomex has quit [Quit: Neomex]
cobragoat has joined #ruby
banisterfiend has quit [Ping timeout: 272 seconds]
himsin has joined #ruby
sleetdrop has joined #ruby
djwonk has quit []
pioz has quit [Quit: This computer has gone to sleep]
sayan has quit [Read error: Connection reset by peer]
cobragoat has quit [Ping timeout: 260 seconds]
lewix has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 245 seconds]
mml has joined #ruby
maxmanders has joined #ruby
<mml> how might i find the index of a particular sequence of bytes in an array? i'm looking for a magic number...
Banistergalaxy has joined #ruby
timonv has joined #ruby
<mml> i tried using a regex w/ the byte sequence, but ran into the invalid byte sequence for encoding thing
yashshah- has joined #ruby
<mml> i'm dealing with a json document, with a gzip stream appended to it
<mml> array.index only takes 1 arg, so that won't fly either
<shock_one> mml, array of strings or ints?
<mml> array of ints
<mml> well, bytes
<mml> it starts out in a string though.
<mml> i get_bytes and am working from there, but i certainly don't have to
<mml> s/get_bytes/bytes()/
<shock_one> mml, array.dropwhile{|e| test(e)}.first http://www.ruby-doc.org/core-2.0/Array.html#method-i-drop_while
<mml> need to find the gzip magic # to know where i can start inflating it
<mml> that's keen and all, but 1 byte at a time won't work for obvious reasons
<mml> without creating some local state anyway
<shock_one> mml, so, join the array.
<mml> which seems fiddly
<mml> there must be a better way to do this somehow :/
<mml> i could do the same thing with each()
maxmanders has quit [Client Quit]
<shock_one> mml, using array impies, that your elements are independent.
whitedawg1 has joined #ruby
<shock_one> with a string you can use index.
<mml> heh, neat, pasting my data into a gist doesn't work :)
whitedawg has quit [Ping timeout: 260 seconds]
<mml> so, as you can see, there's a little json document at the head, and there's a gz stream tacked onto it, i want to detect the x1fx8bx08 gz magic number, so i can split the array into the json doc & the zip stream
_br_ has quit [Excess Flood]
freakazoid0223 has joined #ruby
jurassic_ has quit [Quit: jurassic_]
mpereira has joined #ruby
<shock_one> mml, I think slices of bytes with overlapping will help you. http://ruby-doc.org/core-1.9.3/Enumerable.html#method-i-each_cons
<shock_one> Makes sense or explain more detailed?
DonRichie has quit [Ping timeout: 272 seconds]
DonRichie has joined #ruby
_br_ has joined #ruby
_br_ has quit [Excess Flood]
whitedawg1 has quit [Quit: Leaving.]
yashshah- has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
yashshah- has joined #ruby
<mml> ah cool, that's pretty close to what i'm looking for
sayan has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
Morkel has joined #ruby
_br_ has joined #ruby
Morkel has quit [Client Quit]
skroon has quit [Read error: Connection reset by peer]
jurassic_ has joined #ruby
BSaboia has joined #ruby
skroon has joined #ruby
Morkel has joined #ruby
vlad_sta_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Vainoharhainen has joined #ruby
banisterfiend has joined #ruby
jonahR has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
timonv has quit [Remote host closed the connection]
akashj87 has joined #ruby
jwang has quit [Read error: Connection reset by peer]
lkba has joined #ruby
benlieb has joined #ruby
browndawg has quit [Ping timeout: 272 seconds]
heliumsocket has joined #ruby
heliumsocket has quit [Client Quit]
yashshah__ has joined #ruby
i42n_ has joined #ruby
keymone has quit [Quit: keymone]
joofsh has joined #ruby
yashshah- has quit [Ping timeout: 258 seconds]
<i42n_> I have a question about time zones: I know how to convert an existing time object in ruby to another time zone with .in_tim_zone(). But when creating a new time object from a string, how can I tell ruby which timezone this string represents?
nobitanobi has quit [Ping timeout: 272 seconds]
danman has joined #ruby
<i42n_> Example: Lets assume I get this string 2013-03-31 01:14:03.336833. This is UTC. I need to convert this to CET. How can I tell ruby that the string represents UTC?
<apeiros_> i42n_: in_time_zone is afaik a railsism
<apeiros_> and I think you're looking for Time.zone, not sure though
<i42n_> but Time.zone just gives me the local time zone of my server.
darkc0met has quit [Ping timeout: 276 seconds]
<apeiros_> i.e, Time.zone.parse(…) would parse it in the default timezone. I suspect there's a way to get an arbitrary zone
<apeiros_> just look what Time.zone.class is
<apeiros_> and check the docs of that
* Hanmac is looking for someone with skills in Make-fu
<i42n_> apeiros_: I read docs for > 30 min now. They all tell me how to convert timezones. But the whole thing is wrong if the parse(...) methods thinks the string is not in UTC.
drumond19 has quit [Remote host closed the connection]
trolling is now known as prophile
danman has quit [Quit: danman]
yashshah__ has quit [Ping timeout: 246 seconds]
<i42n_> apeiros_: Or did I understand all that wrong? To convert from one timezone to another it is very much important what the source timezone is.
peteyg has joined #ruby
Rioji has joined #ruby
atmosx has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
jwang has joined #ruby
_wtw_ has quit [Remote host closed the connection]
nobitanobi has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
yashshah__ has joined #ruby
<banisterfiend> Hanmac: players wanna play, ballers wanna ball, rollers wanna roll (it sounds so good - say it again -)
wallerdev has quit [Quit: wallerdev]
Nisstyre-laptop has joined #ruby
jdunck has joined #ruby
danman has joined #ruby
jgrevich has joined #ruby
danman has quit [Client Quit]
himsin has quit [Ping timeout: 272 seconds]
pioz has joined #ruby
artofraw has quit [Remote host closed the connection]
yashshah has joined #ruby
SCommette has joined #ruby
joofsh has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
joofsh has joined #ruby
banisterfiend has joined #ruby
nomenkun has quit [Remote host closed the connection]
yashshah__ has quit [Ping timeout: 256 seconds]
jdunck has quit [Quit: Computer has gone to sleep.]
Matt has joined #ruby
freerobby has quit [Quit: Leaving.]
Matt is now known as Guest52530
nobitanobi has quit [Ping timeout: 258 seconds]
freerobby has joined #ruby
security is now known as fire
<atmosx> Hello ppl
mpfundst_ has quit [Remote host closed the connection]
yashshah has quit [Ping timeout: 256 seconds]
pioz has quit [Quit: This computer has gone to sleep]
skroon has quit [Ping timeout: 255 seconds]
yashshah_ has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
<Hanmac> banisterfiend: https://gist.github.com/Hanmac/9e7a3c2b0b79f28657f1 << can you make that better? i want to use some kind of ".cpp.o:" rule
skroon has joined #ruby
etcetera has joined #ruby
mpfundstein__ has quit [Ping timeout: 252 seconds]
Guest52530 has quit [Quit: This computer has gone to sleep]
BSaboia has quit [Ping timeout: 258 seconds]
<skroon> I would like to write a test, that checks if a system commands is giving me unbuffered output. Meaning I get feedback instantly about the commands output. However i'm wondering what would be the best way to test this with RSpec? I read that time dependant tests are "bad" practice, but what in my case?
Shrink has quit [Ping timeout: 256 seconds]
kirun has joined #ruby
Shrink has joined #ruby
nshbrown has joined #ruby
nshbrown has joined #ruby
nshbrown has quit [Changing host]
maxmanders has joined #ruby
thebastl has joined #ruby
angusiguess has joined #ruby
atno has quit [Ping timeout: 272 seconds]
thebastl has quit [Remote host closed the connection]
skattyadz has quit [Quit: skattyadz]
atno has joined #ruby
TDJACR has quit [Quit: Quit]
nobitanobi has joined #ruby
<atmosx> any ideas on how to turn that into pure ruby? hmm curl --silent $location | grep "current-weather" | sed "s/.*background\:url(\'\(.*\)\') .*/\1/" | xargs curl --silent -o /Users/atma/Code/scripts/icon/weather1.png
<apeiros_> atmosx: you'd use open-uri and nokogiri
<banisterfiend> Hanmac: can you speak to me in german
<apeiros_> require 'open-uri'; data = open(url, &:read)
Morkel has quit [Quit: Morkel]
freerobby has quit [Quit: Leaving.]
<atmosx> apeiros_: thanks, I'll try to work it through
skattyadz has joined #ruby
skattyadz has quit [Client Quit]
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
nshbrown has quit [Quit: nshbrown]
chessguy has joined #ruby
mpfundstein has joined #ruby
mpfundstein_ has joined #ruby
darkc0met has joined #ruby
freerobby has joined #ruby
skattyadz has joined #ruby
daniel_- has joined #ruby
akashj87 has quit [Quit: leaving]
kirun has quit [Read error: Operation timed out]
jdunck has joined #ruby
cms has quit [Remote host closed the connection]
banjara has joined #ruby
cms has joined #ruby
statarb3 has joined #ruby
Hydroxide has quit [Quit: brb]
mattbl has joined #ruby
atno has quit [Ping timeout: 258 seconds]
marcdel has joined #ruby
subbyyy has quit [Quit: none 0.3.9.2]
subbyyy has joined #ruby
divout has quit [Remote host closed the connection]
yashshah_ has quit [Ping timeout: 258 seconds]
atno has joined #ruby
mengu has joined #ruby
mercwithamouth has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
breakingthings has joined #ruby
bubblehead has joined #ruby
kirun has joined #ruby
mikurubeam has quit [Read error: Connection reset by peer]
cms has quit [Remote host closed the connection]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
etcetera has quit []
statarb3 has quit [Ping timeout: 255 seconds]
S2kx has quit [Ping timeout: 256 seconds]
berto- has joined #ruby
<e-dard> Hi, i know you're not supposed to chain blocks over multiple lines, so what's the right way to refactor this code? http://dpaste.com/1041904/
aytch_ has joined #ruby
cantonic has quit [Quit: cantonic]
piisalie has joined #ruby
<Hanmac> e-dard: beware! reject! can return nil so you need to be careful
mattbl has quit [Quit: This computer has gone to sleep]
drumond19 has joined #ruby
aytch has quit [Ping timeout: 252 seconds]
<e-dard> Hanmac: maybe I should split over multiple assignments and assign to result of reject ?
ndboost has joined #ruby
<e-dard> It seems inefficient to me that I have to map and then filter then result, rather than filtering during the map function. Is there anything in Ruby that acts like map but does not put nil into resulting array?
mpfundstein_ has quit [Remote host closed the connection]
<shock_one> e-dard, grep can do map with filter, but it has pretty limited filtering capabilities (===)
ndboost has quit [Ping timeout: 246 seconds]
danneu has quit [Ping timeout: 272 seconds]
mpfundstein has quit [Ping timeout: 245 seconds]
aytch_ is now known as aytch
<skroon> I was wondering about Ruby 2.0 begin; rescue block, I see that rescue still uses the hash rocket =>
<skroon> I was checking the ruby-doc website for this, but is there also a way to use different syntax?
daniel_- has quit [Ping timeout: 245 seconds]
<skroon> or is this hasrocket still the default?
tommyvyo has quit [Quit:]
Opettaja has joined #ruby
yashshah_ has joined #ruby
cantonic has joined #ruby
nomenkun has joined #ruby
joofsh has quit [Remote host closed the connection]
<Hanmac> skroon: why do you want a different syntax?
Assurbanipal has quit [Remote host closed the connection]
hadees_ has joined #ruby
hadees has quit [Ping timeout: 245 seconds]
hadees_ is now known as hadees
tcopp has joined #ruby
SCommette has quit [Quit: SCommette]
decoponio has quit [Quit: Leaving...]
nomenkun has quit [Ping timeout: 258 seconds]
<skroon> Hanmac: because I thought this => has become obsolete, atleast no longer the prefered way
thufir_ has joined #ruby
c0rn has joined #ruby
dmiller1 has joined #ruby
Qwak has joined #ruby
yashshah_ has quit [Ping timeout: 255 seconds]
c0rn has quit [Ping timeout: 240 seconds]
EvanPurkhiser has joined #ruby
crazysim has quit [Ping timeout: 248 seconds]
<bakingbread> personally I found it's ':' confusing... keywords are now both look like :this and like that:
skroon has quit [Read error: Connection reset by peer]
skroon has joined #ruby
<EvanPurkhiser> Can anyone tell me if this is the right way (or if there's a better way) to do this? https://gist.github.com/EvanPurkhiser/5281526
madb055 has joined #ruby
jgrevich_ has joined #ruby
banjara has quit [Quit: Leaving.]
jgrevich has quit [Ping timeout: 260 seconds]
jgrevich_ is now known as jgrevich
hadees has quit [Quit: hadees]
shock_one has quit [Ping timeout: 240 seconds]
xaq has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 258 seconds]
c0rn has joined #ruby
Asher has quit [Quit: Leaving.]
neurone-1337 has quit [Ping timeout: 245 seconds]
Asher has joined #ruby
crazysim has joined #ruby
hakunin has joined #ruby
dagnachew has joined #ruby
danneu has joined #ruby
jwang has quit [Read error: Connection reset by peer]
jwang has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
sonda has quit [Remote host closed the connection]
philcrissman has joined #ruby
Matchaw has joined #ruby
hiyakashi has quit [Ping timeout: 256 seconds]
jurassic_ has quit [Quit: jurassic_]
dagnachew has quit [Remote host closed the connection]
<Hanmac> EvanPurkhiser: [with_name == :left ? Clocker::NAME : nil,title,with_name == :right ? Clocker::NAME : nil].compact.join(" #{delimiter} ")
pitzips has joined #ruby
solidoodlesuppor has quit [Remote host closed the connection]
arietis has joined #ruby
daniel_- has joined #ruby
rburton- has joined #ruby
timonv has joined #ruby
mele- has joined #ruby
jurassic_ has joined #ruby
mercwithamouth has joined #ruby
momomomomo has joined #ruby
m8 has quit [Quit: Sto andando via]
m8 has joined #ruby
pioz has joined #ruby
rburton- has quit [Ping timeout: 255 seconds]
sayan has quit [Quit: Leaving]
sayan has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
mele- has quit [Read error: Connection reset by peer]
BizarreCake has quit [Ping timeout: 240 seconds]
br4ndon has joined #ruby
<skroon> which code coverage tool should work with ruby 2.0 ?
havenwood has joined #ruby
Faris8 has joined #ruby
<EvanPurkhiser> Hanmac: how about this: https://gist.github.com/5281633 a little more readable I think =)
<EvanPurkhiser> oops
jonahR has quit [Quit: jonahR]
veer has quit [Ping timeout: 272 seconds]
<Hanmac> yeah thats fine too
<EvanPurkhiser> I was actually more interested if I did the class method stuff right though
vlad_starkov has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
agike has joined #ruby
mpfundstein_ has joined #ruby
mpfundstein has joined #ruby
berto- has quit [Quit: berto-]
nathancahill has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
[rust] has joined #ruby
d3 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rburton- has joined #ruby
kbouwser has joined #ruby
skattyadz has quit [Quit: skattyadz]
hashmal has quit [Quit: Computer has gone to sleep.]
<breakingthings> #ruby lend me your powers
<breakingthings> I need some assistance in determining a constructor pattern
<breakingthings> I have a class, Message, that has the method self.parse
<breakingthings> I want this to instantiate and return a Message object, with set instance variables
<breakingthings> Preferably without needing to make said instance variables attr_accessor, or use instance_variable_set()
miroatme_1 is now known as miroatme
skattyadz has joined #ruby
bubblehead has quit [Remote host closed the connection]
Vainoharhainen has quit [Quit: Leaving...]
`p has quit [Remote host closed the connection]
dmiller1 has quit [Ping timeout: 246 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
xaq has joined #ruby
sandGorgon has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
tcopp has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
<agike> Hi, I have a sup-mail ruby problem, details at http://pastebin.com/2HPrAGRd ... Can anyone advise a fix ?
Akuma has quit [Quit: So long sukkas!]
<DesertFoxATX> you mean other t han what it says to fix it.
mahmoudimus has quit [Quit: Computer has gone to sleep.]
fire has quit [Ping timeout: 256 seconds]
Spooner has joined #ruby
skattyadz has quit [Quit: skattyadz]
welandC has joined #ruby
<DesertFoxATX> But thats more at the reason of its depreciation .
<error404> !find 17F29F33
sambao21 has joined #ruby
Akuma has joined #ruby
welandB has quit [Ping timeout: 256 seconds]
[rust] has quit [Quit: Leaving]
Xeago has joined #ruby
vlad_starkov has joined #ruby
[rust] has joined #ruby
whowantstolivefo has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
yashshah_ has joined #ruby
`p has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
Akuma has joined #ruby
sambao21 has quit [Ping timeout: 258 seconds]
mpfundstein_ has quit [Remote host closed the connection]
statarb3 has quit [Quit: Leaving]
rickmasta has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
<agike> DesertFoxATX: Thanks, but http://masanjin.net/sup-bugs/ is no longer active.
pioz has quit [Quit: This computer has gone to sleep]
danslo has joined #ruby
veer has joined #ruby
SCommette has joined #ruby
benlieb has quit [Quit: benlieb]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
mpfundstein has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
nathancahill has quit [Quit: nathancahill]
ilyak has joined #ruby
<ilyak> hiya.
mercwithamouth has quit [Ping timeout: 246 seconds]
fire has joined #ruby
<ilyak> I have troubles understanding modules and why they don't work
<ilyak> There is this modile http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html - how do I require it properly?
<ilyak> because I do require 'rubygems' require 'action_view/helpers/number_helper' - which works
<ilyak> but then number_with_precision(1) fails
<ilyak> ActionView::Helpers::NumberHelper.number_with_precision(1) either
<agike> DesertFoxATX: I notice that the examples use ruby 1.9.2 My Debian distro runs 1.9.1, next upgrade is 1.9.3 .. will that right it ?
<ilyak> undefined method - why? What do I do wrong?
<agike> DesertFoxATX: I notice that the examples use ruby 1.9.2 My Debian distro runs 1.9.1, next upgrade is 1.9.3 .. will that right it ?
timonv has joined #ruby
<agike> Hiya, stranger !
jekotia has joined #ruby
joofsh has joined #ruby
jonahR has joined #ruby
pioz has joined #ruby
<DesertFoxATX> No, it would be in the module you are using.
arietis has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
jonahR has quit [Remote host closed the connection]
jdunck has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<agike> DesertFoxATX: Thanks, anyway .. cheers !
dmiller1 has joined #ruby
_bart has joined #ruby
SCommette has joined #ruby
<agike> DesertFoxATX: On a secoind reading it makes a lot more sense. I'll just have to wait for the next debian upgrade .. and rely on other mail clients for the time being. Muchas gracias ..
jurassic_ has quit [Quit: jurassic_]
jonahR has joined #ruby
cobragoat has joined #ruby
agike has quit [Quit: leaving]
jonahR has quit [Remote host closed the connection]
MehLaptop has joined #ruby
v0dro has joined #ruby
SCommette has quit [Client Quit]
<DesertFoxATX> don't thank me, thank google :)
<apeiros_> breakingthings: just call new from within parse
dmiller1 has quit [Ping timeout: 260 seconds]
<breakingthings> apeiros_: but I've got to set up instance variables on that new Message object, which would either require making those properties attr_accessors or use instance_variable_set, both of which would be very sloppy
yashshah_ has quit [Ping timeout: 256 seconds]
<apeiros_> breakingthings: if your initialize doesn't set them up, your Message.new is probably broken :-p
skroon has quit [Ping timeout: 256 seconds]
<breakingthings> apeiros_: Fair enough, I guess. It just sucks because there are quite a few variables I need to take in for this.
<apeiros_> breakingthings: i.e., how can it be, that parse can construct a message which you can't via Message.new?
Spooner has quit [Ping timeout: 245 seconds]
swex has quit [Ping timeout: 272 seconds]
swex has joined #ruby
jonahR has joined #ruby
philcrissman has quit [Remote host closed the connection]
jonahR has quit [Remote host closed the connection]
pioz has quit [Quit: This computer has gone to sleep]
v0dro has quit [Quit: Leaving.]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
nathancahill has joined #ruby
jdunck has joined #ruby
tylersmith has joined #ruby
mercwithamouth has joined #ruby
eliasp has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
thufir_ has quit [Quit: Leaving.]
Xeago has joined #ruby
pioz has joined #ruby
eliasp has joined #ruby
tylersmith has quit [Client Quit]
drumond19 has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 255 seconds]
jurassic_ has joined #ruby
Nom- has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
danslo has quit [Quit: danslo]
rippa has quit [Ping timeout: 240 seconds]
Nom- has joined #ruby
subbyyy has joined #ruby
ckrailo has joined #ruby
Skofo has joined #ruby
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
zykes- has joined #ruby
Nom- has quit [Ping timeout: 256 seconds]
<zykes-> does Ruby have a thing like Bottle / Flask or a lightweight web framework that's fast ?
slainer68 has quit [Remote host closed the connection]
[0x1a] has quit [Remote host closed the connection]
cool_ has quit [Remote host closed the connection]
rwz has quit [Remote host closed the connection]
[Neurotic] has quit [Remote host closed the connection]
NimeshNeema has quit [Remote host closed the connection]
spanx has quit [Remote host closed the connection]
joshwines has quit [Remote host closed the connection]
notbrent has quit [Remote host closed the connection]
im0b has quit [Write error: Broken pipe]
lectrick has quit [Write error: Broken pipe]
cam` has quit [Write error: Broken pipe]
lucaspiller___ has quit [Write error: Broken pipe]
<banister_> zykes-: sinatra
madb055 has quit [Quit: Konversation terminated!]
<atmosx> zykes-: about 15.
<atmosx> zykes-: sinatra is just one of them.
<zykes-> atmosx: / banister_ what about Ramaze, Camping or Grape ?
<banister_> zykes-: those are ok too
<zykes-> banister_: but Sinatra is the most common or ?
<banister_> zykes-: yeah
<atmosx> zykes-: all of them are tested and work, and there are many more.
cool_ has joined #ruby
<atmosx> zykes-: depends on the level of "bare-bone" you need to get actually.
<atmosx> zykes-: imho all of them are good :-)
cyberarm has joined #ruby
lucaspiller___ has joined #ruby
rwz has joined #ruby
lectrick has joined #ruby
<zykes-> atmosx: we've got a usecase to make a service that exposes ActiveMerchant library as a webservice
notbrent has joined #ruby
im0b has joined #ruby
spanx has joined #ruby
cyberarm has quit [Remote host closed the connection]
joshwines has joined #ruby
cam` has joined #ruby
freerobby has joined #ruby
[Neurotic] has joined #ruby
[0x1a] has joined #ruby
<havenwood> Uhhg. Trying to add another manpage to a Makefile and I'm lost... Should I create a second `man:` entry? https://github.com/postmodern/chruby/blob/0.4.0/Makefile
timonv has quit [Remote host closed the connection]
spanx_ has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
joshwines_ has joined #ruby
TomJ has quit [Ping timeout: 245 seconds]
[0x1a]_ has joined #ruby
<havenwood> I just added a `man: share/man/man1/chruby-exec.1` block, but realized i have no clue what I'm doing here. Never edited a Makefile before. >.>
<atmosx> zykes-: sounds easy, sinatra + haml + sass
<atmosx> zykes-: or even rails.
<zykes-> atmosx: haml / sass for what ?
hadees has joined #ruby
<atmosx> zykes-: interface, what else. you're only gonna make post/get calls?
lewix has joined #ruby
<havenwood> zykes-: Camping is 'for fun' like almost-sinatra. Sinatra is an awesome choice.
aapzak has quit [Read error: Connection reset by peer]
NimeshNeema has joined #ruby
Nom- has joined #ruby
sandGorgon has quit [Ping timeout: 255 seconds]
banisterfiend has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
jetblack has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
<havenwood> zykes-: If you're looking for Sinatra alternatives, I'd recommend taking a look at Scorched and Espresso.
daniel_- has quit [Ping timeout: 240 seconds]
<havenwood> Oh, prettier espresso link: http://espresso.github.com/
answer_42 has quit [Quit: WeeChat 0.4.0]
aapzak has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<havenwood> I think its fair to say that Sinatra is Ruby's Flask.
<atmosx> havenwood: espresso looks awesome
lewix has quit [Remote host closed the connection]
mockra has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
gentic has joined #ruby
<gentic> hi
spychalski has joined #ruby
<havenwood> hi
gentic has quit [Client Quit]
monkegjinni has joined #ruby
subbyyy has quit [Quit: none 0.3.9.2]
subbyyy has joined #ruby
Neomex has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Spooner has joined #ruby
mahmoudimus has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
spychalski has quit [Quit: leaving]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
cantonic has quit [Quit: cantonic]
Matchaw has quit [Read error: No route to host]
cibs_ has quit [Ping timeout: 256 seconds]
rburton- has quit [Quit: Leaving...]
Matchaw has joined #ruby
aboudreault has quit [Ping timeout: 245 seconds]
samuelj has joined #ruby
cibs has joined #ruby
tommyvyo has joined #ruby
<samuelj> Hey everyone, anyone got any suggestion why running rackup gives an 'excon gem not found' error, using bundler?
<samuelj> How can I track down the source of the issue?
superninkendo has joined #ruby
xaq has quit [Remote host closed the connection]
<havenwood> samuelj: Excon is a gem: https://github.com/geemus/excon
<havenwood> samuelj: Did you run `bundle`?
axiak has joined #ruby
mockra has quit [Read error: Connection reset by peer]
<havenwood> samuelj: In case you don't know, bundler installs the gems in your Gemfile when you run: bundle
Layke has quit [Ping timeout: 260 seconds]
<samuelj> havenwood: yes thank you, bundler has installed it
<havenwood> samuelj: But it still errors out?
<samuelj> I've figured out this issue, I have rack installed in two locations, and rack 1.1 fails, rack 1.2 doesn't
xaq has joined #ruby
<havenwood> samuelj: ahhh
<samuelj> I need the bundler installed version of rack to be called, it's a path precedence issue
lewix has joined #ruby
<MrZYX> bundle exec should solve that
sepp2k has joined #ruby
<samuelj> Ah yes, I knew I was forgetting something. thanks
aboudreault has joined #ruby
crimezone20xx has joined #ruby
Layke has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
soulcake has quit [Quit: ZNC - http://znc.in]
xaq has quit [Remote host closed the connection]
obfuscate2 has quit [Remote host closed the connection]
<havenwood> atmosx: Yeah, I like the looks of Espresso but haven't used it for any real projects yet. I'd like to!
axiak has left #ruby [#ruby]
<havenwood> atmosx: Author of espresso did a nice demo showing Espresso with Rainbows::EventMachine serving up 1 million concurrent connections: https://github.com/slivu/1mc2
Ortuna has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
Ortuna has joined #ruby
br4ndon has joined #ruby
<atmosx> wow
gommo has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
neurone-1337 has joined #ruby
benlieb has quit [Quit: benlieb]
nathancahill has quit [Quit: nathancahill]
samuelj has left #ruby [#ruby]
gyre007 has joined #ruby
gyre007 has quit [Max SendQ exceeded]
gyre007 has joined #ruby
gyre007 has quit [Max SendQ exceeded]
pskosinski has quit [Remote host closed the connection]
gyre007 has joined #ruby
angusiguess has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
pskosinski_ has joined #ruby
gyre008 has joined #ruby
gyre008 has quit [Max SendQ exceeded]
gyre008 has joined #ruby
pskosinski_ is now known as pskosinski
gyre008 has quit [Max SendQ exceeded]
snuglepuss has joined #ruby
cantonic has joined #ruby
gyre008 has joined #ruby
gyre008 has quit [Max SendQ exceeded]
nomenkun has joined #ruby
gyre008 has joined #ruby
gyre008 has quit [Max SendQ exceeded]
Faris8 has quit [Ping timeout: 258 seconds]
Faris8 has joined #ruby
pmros has joined #ruby
<pmros> hi
<pmros> I hate make
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<pmros> I like rake
eliasp_ has joined #ruby
eliasp has quit [Ping timeout: 245 seconds]
nobitanobi has quit [Ping timeout: 258 seconds]
Iszak has joined #ruby
presto has quit [Ping timeout: 272 seconds]
bubblehead has joined #ruby
MehLaptop has quit [Remote host closed the connection]
Faris8 has quit [Ping timeout: 258 seconds]
yoshie902a has joined #ruby
<yoshie902a> I'm having a real hard time installing ruby 1.9.3, can someone help trouble shoot? https://gist.github.com/anonymous/81b6b5186ec2e9e2c3c9
superninkendo1 has joined #ruby
<yoshie902a> what information can I provide that would help solve the issue?
sambio has joined #ruby
<pmros> use rbenv
superninkendo has quit [Read error: Connection reset by peer]
<yoshie902a> pmros: I'm used to running Rvm and right now, I just need to get it up and running again. I can play with rbenv at another time. any other recommendations on my error?
nathancahill has joined #ruby
nathancahill has quit [Client Quit]
bubblehead has quit [Ping timeout: 252 seconds]
superninkendo1 has quit [Ping timeout: 258 seconds]
nathancahill has joined #ruby
drumond19 has joined #ruby
danslo has joined #ruby
etcetera has joined #ruby
yeban has quit [Remote host closed the connection]
lectrick has quit [Remote host closed the connection]
NimeshNeema has quit [Remote host closed the connection]
Spaceghost|cloud has quit [Remote host closed the connection]
joshwines_ has quit [Remote host closed the connection]
mtlatif has quit [Remote host closed the connection]
Guest85414 has quit [Remote host closed the connection]
rwz has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
patricksroberts_ has quit [Write error: Broken pipe]
notbrent has quit [Remote host closed the connection]
lucaspiller___ has quit [Write error: Broken pipe]
kapowaz has quit [Write error: Broken pipe]
guilleiguaran_ has quit [Write error: Broken pipe]
moeSeth_ has quit [Write error: Broken pipe]
jhowarth has quit [Write error: Broken pipe]
kaichanvong has quit [Write error: Broken pipe]
thejefflarson_ has quit [Write error: Broken pipe]
randym has quit [Write error: Broken pipe]
karnowski has quit [Write error: Broken pipe]
taqutor has quit [Write error: Broken pipe]
cyberarm has joined #ruby
[0x1a]_ has quit [Remote host closed the connection]
cam` has quit [Remote host closed the connection]
cool_ has quit [Remote host closed the connection]
[Neurotic] has quit [Remote host closed the connection]
spanx_ has quit [Remote host closed the connection]
im0b has quit [Remote host closed the connection]
[0x1a] has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
dekz__ has quit [Remote host closed the connection]
fourq has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
joshwines has quit [Remote host closed the connection]
dnyy has quit [Remote host closed the connection]
phasma has quit [Remote host closed the connection]
spanx has quit [Remote host closed the connection]
flowerhack has quit [Write error: Broken pipe]
bluehavana has quit [Write error: Broken pipe]
fcoury has quit [Write error: Broken pipe]
niftylettuce has quit [Write error: Broken pipe]
xerxas has quit [Write error: Broken pipe]
xaq has joined #ruby
<jarin> I think there are system reqs that you can install with homebrew
<jarin> I don't remember what they are though offhand
<yoshie902a> I tried installing them with brew, but it didn't work. I just imploded rvm and trying a complete reinstall
Faris8 has joined #ruby
Inside has joined #ruby
niklasb has joined #ruby
benlieb has joined #ruby
benlieb has quit [Client Quit]
_br_ has quit [Excess Flood]
soulcake has joined #ruby
<yoshie902a> ugh, same exact error, even after impode and install
jpfuentes2 has joined #ruby
_br_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
_br_ has quit [Excess Flood]
agarie has joined #ruby
_br_ has joined #ruby
gyre007 has quit [Remote host closed the connection]
dawkirst has joined #ruby
momomomomo has joined #ruby
lewix has quit [Remote host closed the connection]
ilyak has quit [Quit: leaving]
spider-mario has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
_br_ has quit [Excess Flood]
_br_ has joined #ruby
lele has quit [Quit: Coyote finally caught me]
Cazic has joined #ruby
snuglepuss has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
s0ber_ has joined #ruby
etcetera has quit []
slyv has joined #ruby
<otters> is obj.send(:a) significantly slower than obj.a?
_br_ has quit [Excess Flood]
<yoshie902a> otters: do a benchmark test
<otters> ok
lele has joined #ruby
s0ber has quit [Ping timeout: 260 seconds]
s0ber_ is now known as s0ber
joofsh has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
platzhirsch has joined #ruby
<platzhirsch> Is it common to compare two strings for equality with == and != ?
<apeiros_> yes. why?
semajs has joined #ruby
semajs has left #ruby ["Leaving"]
Guest85414 has joined #ruby
_br_ has joined #ruby
drale2k has quit [Quit: Leaving...]
<platzhirsch> apeiros_: just wondered, not much to wonder really, but wanted to assure myself here
<jarin> I do not know of a good reason not to
blacktulip has quit [Remote host closed the connection]
Opettaja has quit [Ping timeout: 256 seconds]
<atmosx> Date.yesterday comes out with an unknown method
kapowaz has joined #ruby
JuniorSantosHQ has joined #ruby
EvanPurkhiser has quit [Quit: Page closed]
razibog has quit [Ping timeout: 260 seconds]
<jarin> That's a Rails core extension
spychalski has joined #ruby
<slyv> So I am comparing multiple strings to see which one is closest in terms of letter frequency to english. I have a method that generates a frequency hash of the prevalence of each character, but I a stuck on how to compare my test string's frequency maps to my control english frequency map and ranking them. Any ideas?
[Neurotic] has joined #ruby
d34th4ck3r has joined #ruby
Opettaja has joined #ruby
<d34th4ck3r> what is the standard way to name variables in ruby, is it like_this or likeThis or something else?
<havenwood> atmosx: require 'active_support/core_ext'
<atmosx> havenwood: I figured.
<apeiros_> d34th4ck3r: snake_case
<apeiros_> for everything but constants, those are CamelCase
<jarin> constants are CAPS_SNAKEY, no?
<apeiros_> no
<jarin> and classes are SnakeCase
<apeiros_> or do you see STRING and ARRAY?
<apeiros_> when you feel the need for _, you should think about ::
<jarin> Everything I've ever seen has constants in caps
<jarin> except for class and module names
MetaCosm has quit [Excess Flood]
<apeiros_> I'd say you should pay more attention then.
<breakingthings> apeiros_: but string and array are classes :d
MetaCosm has joined #ruby
MetaCosm has quit [Excess Flood]
codecop has quit [Quit: Išeinu]
<apeiros_> breakingthings: you know the difference between variables and objects, yes?
<apeiros_> and no, they *are* not classes, they reference them. a = Array # whoops, and now?
MetaCosm has joined #ruby
<breakingthings> >>a = Array
<eval-in> breakingthings => Array (http://eval.in/14114)
<breakingthings> :d
<d34th4ck3r> Isint , everthing in ruby a object?
MetaCosm has quit [Excess Flood]
<apeiros_> breakingthings: def a.inspect; "Foobar"; end # blubb
<apeiros_> don't know what point you want to make there
<apeiros_> d34th4ck3r: not everything, no. variables are not objects.
JuniorSantosHQ has quit [Ping timeout: 258 seconds]
<breakingthings> apeiros_: a = Array makes a == Array, as in classes.
<breakingthings> so I'm not sure why a = Array somehow brought "whoops" into it
MetaCosm has joined #ruby
jdunck has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<breakingthings> considering a = Array is a technically valid thing to do
<apeiros_> breakingthings: dude, how do you manage to so not get the point?
<breakingthings> apeiros_: because your point was vague?
<apeiros_> Array is a constant. it happens to reference an object, which happens to be the class Array
<jarin> I see what is going on, apeiros_ is being pedantic while the rest of us are talking about naming conventions
<breakingthings> Sure, but how does a = Array have anything to do with that? How is a = Array "whoops"?
d34th4ck3r is now known as d34th4ck3r_
d34th4ck3r_ is now known as d34th4ck3r
<apeiros_> jarin: if you treat a class (which is an object) differently from other objects, you're still stuck in C/Java land.
<jarin> d34th4ck3r: To answer your question, a variable is like_this, a constant variable is LIKE_THIS, and a class or module is LikeThis
<apeiros_> and yes, there's a good amount of ruby coders who partially are still stuck there.
m8 has quit [Quit: Sto andando via]
<apeiros_> jarin: but of course, if your preferred style of arguing is going ad-hominem, then you can fuck right off.
wmoxam has joined #ruby
<jarin> The guy/girl was just asking how you name variables sheesh
<jarin> Chillax brah
<apeiros_> jarin: no dude, a class or module is an object, not a variable.
zeroeth has joined #ruby
<jarin> Yes, we know
<breakingthings> apeiros_: the point is that is -not- what he was asking.
Scient has joined #ruby
<apeiros_> breakingthings: right. he was not asking how we name arbitrary objects. he asked how naming conventions are for variables.
<apeiros_> and since modules and classes are not variables, you're correct, you're not actually answering his question.
razibog has joined #ruby
* breakingthings sighs
nicoulaj has quit [Remote host closed the connection]
dekz__ has joined #ruby
<breakingthings> Rubby constants are allcaps.
<apeiros_> no.
moeSeth_ has joined #ruby
<breakingthings> Classes and their referencing 'constants' are StudlyCaps
<zeroeth> manly caps
<apeiros_> there's nothing 'constant' about it.
<apeiros_> Object.const_get(:Array)
<breakingthings> Yes, rubby constants are not regular constants
<apeiros_> my, at least spell ruby correctly…
<breakingthings> but when naming a constant in rubby the convention is ALLCAPS_SNAKE
<apeiros_> no it's not.
<breakingthings> I'll call it rubby all I want if it gets your feathers ruffled
<breakingthings> Because if you can't drop your petty attitude there's no point
breakingthings was kicked from #ruby by apeiros_ [breakingthings]
breakingthings has joined #ruby
<jarin> rofl
<breakingthings> boo hoo
breakingthings was kicked from #ruby by apeiros_ [stay there]
<apeiros_> why do I even try to argue.
<MrZYX> dude, chill
<jarin> watch your blood pressure brah
kbouwser has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros_> the only thing I have to watch is my faith in there being actually intelligent people.
<zeroeth> isn't that what open discussion is a sign of?
<bean__> the guy was being quite annoying imo
bradleyprice has joined #ruby
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
<jarin> nah intelligent people ban anyone they get mad at
bricker`LA has joined #ruby
<apeiros_> if so then I should have banned you when you went ad-hominem jarin
yoshie902a has quit [Quit: yoshie902a]
keymone has joined #ruby
niklasb has quit [Read error: Operation timed out]
soulcake has quit [Quit: ZNC - http://znc.in]
spanx_ has joined #ruby
Matt has joined #ruby
pmros has quit [Quit: Konversation terminated!]
Matt is now known as Guest13516
drale2k has joined #ruby
xaq has quit [Remote host closed the connection]
Opettaja has quit [Quit: WeeChat 0.4.0]
pkrnj has joined #ruby
justsee_ has joined #ruby
thorncp has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
dfghjklrtyui has quit []
bubblehead has joined #ruby
SCommette has joined #ruby
lewix has joined #ruby
mockra has joined #ruby
rburton- has joined #ruby
senayar has quit [Ping timeout: 260 seconds]
fixl has joined #ruby
picca_ has joined #ruby
MrZYX is now known as MrZYX|off
idkazuma has joined #ruby
tcopp has joined #ruby
niklasb has joined #ruby
emocakes has joined #ruby
SCommette has quit [Quit: SCommette]
momomomomo has quit [Quit: momomomomo]
breakingthings has joined #ruby
macabhaird has joined #ruby
Heero has quit [Ping timeout: 255 seconds]
SCommette has joined #ruby
gommo has quit [Remote host closed the connection]
momomomomo has joined #ruby
idkazuma has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
bubblehead has quit [Ping timeout: 260 seconds]
picca__ has joined #ruby
lucaspiller___ has joined #ruby
keymone has quit [Quit: keymone]
chessguy has quit [Remote host closed the connection]
sduckett has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
twoism has joined #ruby
dnyy has joined #ruby
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
picca_ has quit [Ping timeout: 246 seconds]
MetaCosm has quit [Excess Flood]
MetaCosm has joined #ruby
Qwak has quit []
bricker`LA has quit [Ping timeout: 260 seconds]
bricker`1A has joined #ruby
miroatme has left #ruby [#ruby]
tootooroo has joined #ruby
lewis1711 has joined #ruby
bubblehead has joined #ruby
fcoury has joined #ruby
lewis1711 has left #ruby [#ruby]
bubblehead has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
nathancahill has quit [Quit: nathancahill]
chessguy has joined #ruby
jacobbednarz has joined #ruby
tenmilestereo has quit [Quit: Leaving]
dimonzozo has joined #ruby
dimonzozo has quit [Remote host closed the connection]
dimonzozo has joined #ruby
predator217 has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
kuzushi has joined #ruby
niftylettuce has joined #ruby
predator117 has quit [Ping timeout: 256 seconds]
kaichanvong has joined #ruby
NimeshNeema has joined #ruby
dEPy has quit []
bluehavana has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
LiquidInsect has joined #ruby
guilleiguaran_ has joined #ruby
wmoxam has quit [Ping timeout: 240 seconds]
lewix has quit [Read error: Connection reset by peer]
rwz has joined #ruby
lewix has joined #ruby
eliasp_ has quit [Read error: Connection reset by peer]
eliasp has joined #ruby
freerobby has quit [Quit: Leaving.]
amh345 has joined #ruby
ZachBeta has joined #ruby
cool_ has joined #ruby
tvw has joined #ruby
subbyyy has joined #ruby
zeroeth has quit [Ping timeout: 260 seconds]
toekutr has joined #ruby
<amh345> hi everyone, i have a really basic question. im calling one Class method from another Class method. im wondering, whats the best way to get the variables back to the original Class method? i've made an example gist here > https://gist.github.com/anonymous/faf2fdfb204bf0181c14
rcsheets has joined #ruby
<amh345> i think i could put all the variables into a hash in the second class method, and then return it. but i dont know if that's the best way.
davidboy has joined #ruby
bricker`1A is now known as bricker`LA
postmodern has joined #ruby
patricksroberts_ has joined #ruby
generali_ has joined #ruby
khismetix has joined #ruby
Cazic has left #ruby [#ruby]
nari has joined #ruby
wmoxam has joined #ruby
cobragoat has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
cobragoat has joined #ruby
baroquebobcat has joined #ruby
dnyy1 has joined #ruby
drbawb has quit [Read error: Connection reset by peer]
jwang has quit [Read error: Connection reset by peer]
dnyy1 is now known as dnyy2
dnyy2 is now known as dnyy3
jwang has joined #ruby
octarine has joined #ruby
keymone has joined #ruby
Guest13516 has quit [Quit: This computer has gone to sleep]
dnyy has quit [Disconnected by services]
dnyy3 is now known as dnyy
dimonzozo has quit [Quit: dimonzozo]
cobragoat has quit [Ping timeout: 260 seconds]
wmoxam has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 256 seconds]
Layke has quit [Ping timeout: 240 seconds]
tomsthumb has joined #ruby
keymone has quit [Client Quit]
mercwithamouth has joined #ruby
jphpsf has quit [Read error: Operation timed out]
SCommette has quit [Quit: SCommette]
TheFuzzball has joined #ruby
codesoda has joined #ruby
pskosinski has quit [Quit: pskosinski]
Spooner has quit [Quit: Page closed]
jphpsf has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
<bean> amh345, you just want them returned when you call Test2.method2?
joofsh has joined #ruby
idkazuma has joined #ruby
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
drbawb has joined #ruby