<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?
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
<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]
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]
<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
<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.
<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]
<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«
<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]
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.]
<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
<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
<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.
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]
<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]
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. >.>
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]
<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]
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?
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?