gz_rain has quit [Read error: Connection reset by peer]
<wallerdev>
all of the standard parts and keywords of ruby aren't the factory pattern, you have to implement code a certain way for it to be considered the factory pattern
fgo_zzZz has quit [Ping timeout: 256 seconds]
gz_rain has joined #ruby
lkba has joined #ruby
Eiam_ has quit [Read error: Connection reset by peer]
nuck has quit [Quit: Computer has gone to sleep.]
elfuego has left #ruby [#ruby]
gz_rain has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 276 seconds]
towski_ has quit [Remote host closed the connection]
shime_ has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Read error: Connection reset by peer]
thumpba has quit [Remote host closed the connection]
<wallerdev>
<%= outputs, <% doesnt
tcrypt has quit [Remote host closed the connection]
kaspertidemann has quit []
commmmodo has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
EvanFreeman has joined #ruby
<epx998>
ok let me try that
nfk has joined #ruby
leonshalimov has joined #ruby
gawd has joined #ruby
Zai00 has quit [Quit: Zai00]
baroquebobcat has quit [Quit: baroquebobcat]
baweaver has joined #ruby
icarus_ has joined #ruby
<epx998>
that was it, thanks. new to ruby, as of today :)
nfk has quit [Client Quit]
kl__ has quit [Ping timeout: 245 seconds]
kl has quit [Ping timeout: 245 seconds]
gregf_ has quit [Ping timeout: 252 seconds]
Aova has quit [Read error: Connection reset by peer]
dc has joined #ruby
gregf_ has joined #ruby
icebourg has quit []
leonshalimov has quit [Ping timeout: 252 seconds]
tvw has quit []
beneggett has quit [Ping timeout: 264 seconds]
tokik has quit [Quit: leaving]
<blizzy>
with Gemfile, do I need to include default gems, like yaml and json?
tokik has joined #ruby
snath has quit [Ping timeout: 245 seconds]
tokik has quit [Client Quit]
skj3gg has quit [Quit: ZZZzzz…]
josephndenton has joined #ruby
deconfigured has joined #ruby
Aova has joined #ruby
ghr has joined #ruby
djbkd has joined #ruby
gz_rain has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
skj3gg has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
dredaW7 has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eytanfb has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
gz_rain has joined #ruby
tokik has joined #ruby
gz_rain has quit [Remote host closed the connection]
athan has quit [Ping timeout: 276 seconds]
ghr has quit [Ping timeout: 244 seconds]
reinaldob has quit [Remote host closed the connection]
EvanFreeman has quit [Remote host closed the connection]
jfran has quit [Remote host closed the connection]
workmad3 has joined #ruby
shivamib_ has quit [Ping timeout: 240 seconds]
snath has joined #ruby
blackoperat has quit [Remote host closed the connection]
epx998 has quit [Quit: Leaving]
ellisTAA has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
tyfighter has quit [Quit: tyfighter]
icebourg has joined #ruby
tyfighter has joined #ruby
mloveless has joined #ruby
djbkd has quit [Remote host closed the connection]
icebourg_ has joined #ruby
icebourg_ has quit [Max SendQ exceeded]
mloveless has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
icebourg_ has joined #ruby
Xander_ has joined #ruby
<ellisTAA>
i’m trying to solve some problems that require me to convert farenheit temperatures to celsius and celsius to fahrenheit. i’m working with options hashes. i’m encountering errors. can anyone offer some advice on which direction i should head https://gist.github.com/ellisTAA/186d966ab77dc8c5993e
kl__ has joined #ruby
kl has joined #ruby
Xander_ has quit [Client Quit]
sevenseacat has joined #ruby
icebourg has quit [Ping timeout: 256 seconds]
<ellisTAA>
should i create an initialize method that accepts a hash? should the hash include a key and a value - can i do that in a options hash?
ramfjord has joined #ruby
leafybasil has joined #ruby
djbkd has joined #ruby
<waxjar>
ellisTAA: your #in_fahrenheit / #to_fahrenheit expect an argument, but you don't give it one in your tests
Flcn has quit [Quit: Be back later ...]
mloveless has joined #ruby
<ellisTAA>
i see ty
oo_ has joined #ruby
cphrmky has quit [Read error: Connection reset by peer]
<waxjar>
and yeah, you need an initialize method to accept the hash
baweaver has quit [Remote host closed the connection]
seal has joined #ruby
wodla00 has quit [Quit: wodla00 terminated!]
leafybasil has quit [Ping timeout: 245 seconds]
tcrypt has joined #ruby
<ellisTAA>
waxjar: could you take a look @ lines 78 to 80 and let me know how i can set scale to the key of the options hash and temperature to the value of the options hash?
GaryOak_ has quit [Remote host closed the connection]
<jhass>
as you can see, if the condition doesn't run, it's false
<ellisTAA>
so it can only have a value if c is something?
fwef has joined #ruby
<jhass>
the subexpression is an assignment
mbug has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
<jhass>
and assignment expressions value is always the right hand side
tcrypt has joined #ruby
<fwef>
Hi, is it possible to run ruby's open-uri asynchronously? If not, what's the best way to achieve this?
<ellisTAA>
ahh so “:f” should be switched with @scale
<jhass>
er, if the condition doesn't run it's nil, sorry
<jhass>
no, that's not the point I'm trying to make
<ellisTAA>
oh damnit
Aova has joined #ruby
mrmargolis has joined #ruby
ghostmoth has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
<ellisTAA>
jhass: i appreciate your help
towski_ has joined #ruby
<jhass>
did you get it then? :)
patrick99e99 has joined #ruby
<ellisTAA>
no lol
ghr has joined #ruby
checkit has quit [Ping timeout: 256 seconds]
<jhass>
so, have a look at my example above
<ellisTAA>
let me see
mloveless has quit [Remote host closed the connection]
<ellisTAA>
so i ended up adding a correct_temp to the last line of the method. that doesn’t work
towski_ has quit [Remote host closed the connection]
<jhass>
programmers are precise. "Doesn't work" is not precise
jwingfi has joined #ruby
n80_ has joined #ruby
<ellisTAA>
i see
chipotle has quit [Quit: cheerio]
ghostmoth has quit [Client Quit]
eytanfb has quit [Ping timeout: 252 seconds]
greenbagels has joined #ruby
CocoStorm has joined #ruby
<CocoStorm>
Hey guys
reinaldob has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
<CocoStorm>
I have downloaded aptana and I have cloned an existing Ruby application from git.. Now I've promoted this project and I'm trying to run it... How do I do this?
jwingfi has quit [Client Quit]
CocoStorm has quit [Changing host]
CocoStorm has joined #ruby
wodla00 has quit [Ping timeout: 240 seconds]
danman has quit [Quit: danman]
oleo is now known as Guest16238
oleo__ has joined #ruby
aeontech has quit [Quit: aeontech]
tsnz has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
yeticry has quit [Ping timeout: 256 seconds]
<wallerdev>
promoted?
<wallerdev>
is it a rails project?
<CocoStorm>
I don't think so
Guest16238 has quit [Ping timeout: 245 seconds]
<CocoStorm>
Not sure, it's someone's project
<CocoStorm>
I'm a java dev
yeticry has joined #ruby
nanoyak_ has quit [Quit: Computer has gone to sleep.]
AlexRussia has quit [Ping timeout: 245 seconds]
Aesthetikxx has joined #ruby
<wallerdev>
is it a website?
ghostmoth has joined #ruby
<CocoStorm>
yeah
nanoyak has joined #ruby
recurrence has quit [Quit: recurrence]
<wallerdev>
its probably rails then
<wallerdev>
try going to the folder on your commandline and typing "rails server"
TinkerTyper has quit [Quit: ZNC restarting...]
deric_skibotn has quit [Ping timeout: 252 seconds]
<wallerdev>
should start the server up
tonyhb has joined #ruby
<CocoStorm>
it returns Your Ruby version is 2.2.0, but your Gemfile specified 1.9.3
<wallerdev>
well thats good
<wallerdev>
means its rails
tsnz has quit [Ping timeout: 264 seconds]
<wallerdev>
lol
<wallerdev>
but sounds like youre gonna run into some issues trying to set things up
<wallerdev>
you can edit the file named Gemfile and change the version number to 2.2.0
<wallerdev>
but might want to read up on the basics of rails
fgo_zzZz has joined #ruby
<CocoStorm>
sweet, I'm "installing missing gems" now
<CocoStorm>
what do I do after that?
nuck has quit [Quit: Computer has gone to sleep.]
<wallerdev>
run rails server
<wallerdev>
lol
<CocoStorm>
I get this
<CocoStorm>
An error occurred while installing debugger (1.6.8), and Bundler cannot continue.
<CocoStorm>
Make sure that `gem install debugger -v '1.6.8'` succeeds before bundling.
<wallerdev>
are you on windows
<CocoStorm>
nope, mac
<wallerdev>
run the command it gave you and see what the output is
TinkerTyper has joined #ruby
cashnguns has joined #ruby
baweaver has quit [Remote host closed the connection]
<wallerdev>
the other issue you have is you need to use == instead of = for comparison
jimms has quit [Remote host closed the connection]
<sevenseacat>
correctamundo
<Aesthetikxx>
First of, to check if things are equal, use a double = sign, so like 'if @scale == :f'
<ellisTAA>
the test uses in_fahrenheit & in_celsisus << in my methods i use other methods c_to_f and f_to_c but its saying thsoe don’t exist
<ellisTAA>
yeah i did that but i was getting nul
<wallerdev>
in your first example, @temperature gets assigned to 50
<wallerdev>
then you call @temperature.f_to_c
<wallerdev>
thats the same as calling 50.f_to_c
<ellisTAA>
yeah
<wallerdev>
50 is a number
<wallerdev>
it has no method f_to_c
cashnguns has quit [Max SendQ exceeded]
<wallerdev>
only instances of the Temperature class have that method
<ellisTAA>
but i made the method f_to_c
michael_mbp has quit [Excess Flood]
<wallerdev>
you made it inside the Temperature class so you can use it on Temperature objects
<wallerdev>
if you made it inside the number class, you could use it on numbers
tyfighter has quit [Quit: tyfighter]
<sevenseacat>
note: dont add it to Numeric or anything like that
<wallerdev>
lol
<ellisTAA>
lol
tyfighter has joined #ruby
<ellisTAA>
i see
baweaver has joined #ruby
<ellisTAA>
so how do i get around this
tubuliferous has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat>
do you understand the problem?
cashnguns has joined #ruby
ta_ has joined #ruby
michael_mbp has joined #ruby
Aesthetikxx has quit [Quit: Lost terminal]
<ellisTAA>
i can’t aply f_to_c on @temperature bc @temperature is a number
<wallerdev>
yup!!
<wallerdev>
so what do you want to apply f_to_c on
ValicekB has quit [Ping timeout: 252 seconds]
techietrash has joined #ruby
<ellisTAA>
so i just got rid of those methods & applied the math code to each thing that needed it. but … i had to use the = assignment sign instead of == which makes me worry i’ve done something wrong and what i’m doing is just a hack or something
DadoCe has quit [Remote host closed the connection]
<CocoStorm>
hey guys, so I've got rail s to work now. and the website is running locally.. but how do I actually run it from an iDE so i can change code and see the changes on the fly?
<CocoStorm>
I'm using aptana
skj3gg has quit [Quit: ZZZzzz…]
<wallerdev>
i think most people dont use IDEs for ruby dev
<wallerdev>
but theres a channel #rubyonrails
<wallerdev>
and they might be able to help about getting live updates without restarting the server
ta_ has quit [Ping timeout: 276 seconds]
<wallerdev>
or maybe someone there uses aptana
<ellisTAA>
wallerdev: thank you!
oivoodoo has quit [Remote host closed the connection]
<CocoStorm>
wallerdev: so how do they edit code? :S
<sevenseacat>
wallerdev: they're already there asking us too :P
<sevenseacat>
you open the folder in your IDE
<sevenseacat>
and make changes
<sevenseacat>
then refresh your browser
Hobogrammer has joined #ruby
<CocoStorm>
right
<wallerdev>
oh in terms of editing code most people use text editors
<wallerdev>
text editors + terminal
<CocoStorm>
I see
<wallerdev>
ruby is a very dynamic language so static analysis doesnt always work well on it
mbug has quit [Quit: ChatZilla 0.9.91.1 [SeaMonkey 2.32/20150112202541]]
<wallerdev>
so things like refactoring might not work as expected like xcode or visual studio
graydot has quit [Quit: graydot]
<CocoStorm>
so as long as rail s is running
<CocoStorm>
and I edit the code
<CocoStorm>
refreshing will refresh from server?
<CocoStorm>
*browser
<wallerdev>
i think some parts automatically update, some dont
<sevenseacat>
config stuff wont
<sevenseacat>
everything else will
dc_ has joined #ruby
<wallerdev>
ah cool
<wallerdev>
yeah i havent used rails in awhile
chu has joined #ruby
<CocoStorm>
I see
<CocoStorm>
wow, Ruby is strange
chu has quit [Client Quit]
<CocoStorm>
I'll have to get used to it
<CocoStorm>
:)
<wallerdev>
lol
<CocoStorm>
thanks guys
<wallerdev>
yup
jpstokes has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
chu has joined #ruby
ValicekB has joined #ruby
baltazore has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
michael_mbp has joined #ruby
arescorpio has joined #ruby
pontiki has joined #ruby
skj3gg has joined #ruby
<CocoStorm>
thanks wallerdev
DadoCe has joined #ruby
CocoStorm has quit [Quit: CocoStorm]
tcrypt has quit [Remote host closed the connection]
<ellisTAA>
it seems like in the from spec i’m supposed to create a class method called from_celsius and somehow make it accessible to my instance methods ...
adriancb has quit [Ping timeout: 245 seconds]
<longfeet>
looks like Temperature.from_celsius(50) returns nil
matthewhill has joined #ruby
<ellisTAA>
i currently get an error message that says in_fahrenheit method isn’t defined
freerobby has quit [Quit: Leaving.]
xivusr has joined #ruby
musl_ has quit [Quit: WeeChat 1.0.1]
blizzy has quit [Read error: Connection reset by peer]
jcdesimp has quit [Quit: Leaving...]
Megtastique has quit []
jcdesimp has joined #ruby
oivoodoo has quit [Ping timeout: 255 seconds]
matthewhill has quit [Ping timeout: 245 seconds]
tyfighter has quit [Quit: tyfighter]
VBlizzard has joined #ruby
arup_r has quit [Quit: Leaving.]
tyfighter has joined #ruby
hamakn has joined #ruby
ellisTAA has left #ruby [#ruby]
poguez has quit [Quit: Connection closed for inactivity]
leonshalimov has joined #ruby
VBlizzard is now known as blizzy
josephndenton has quit [Ping timeout: 252 seconds]
martinium has quit [Remote host closed the connection]
EvanFreeman has quit [Remote host closed the connection]
martinium has joined #ruby
Deele has joined #ruby
IrishGringo has quit [Ping timeout: 245 seconds]
Channel6 has quit [Quit: Leaving]
astrobunny has joined #ruby
leonshalimov has quit [Ping timeout: 252 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
Mia has quit [Read error: Connection reset by peer]
arescorpio has quit [Excess Flood]
scripore has quit [Quit: This computer has gone to sleep]
lurkmaster has joined #ruby
pdoherty has joined #ruby
commmmodo has quit [Quit: commmmodo]
commmmodo has joined #ruby
Hijiri has joined #ruby
kenneth has joined #ruby
jcdesimp has quit [Quit: Leaving...]
rajeshchawla has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
tsnz has joined #ruby
ddd has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
scripore has joined #ruby
scripore has quit [Client Quit]
iamninja has quit [Quit: ZZZzzz…]
xivusr has quit [Ping timeout: 245 seconds]
tsnz has quit [Ping timeout: 264 seconds]
LWade has quit [Ping timeout: 264 seconds]
Aova has quit [Read error: Connection reset by peer]
GeorgeThompson has quit [Ping timeout: 244 seconds]
<omosoj>
i'm working on a rails app and trying to figure out the routes.rb file. it's ~100 lines and has 4 large ~15 line blocks. it is so hard to understand. would you all consider understanding this a difficult task or no?
pu22l3r has quit [Remote host closed the connection]
havenwood has quit []
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rajeshchawla has quit []
<sevenseacat>
without seeing it, no idea.
longfeet has quit [Ping timeout: 244 seconds]
PNDPO has quit []
fedexo has joined #ruby
<omosoj>
anyone else? ^
ghr has quit [Ping timeout: 245 seconds]
<sevenseacat>
lol
<sevenseacat>
it depends on so very many things
havenwood has joined #ruby
pu22l3r has joined #ruby
skj3gg has joined #ruby
psy_ has joined #ruby
baltazore has joined #ruby
agrinb has quit [Remote host closed the connection]
Jameser has quit [Read error: Connection reset by peer]
Jameser` has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tokik has quit [Quit: leaving]
tokik has joined #ruby
lurkmaster has quit [Ping timeout: 246 seconds]
jgt2 has joined #ruby
tokik has quit [Client Quit]
skj3gg has quit [Quit: ZZZzzz…]
yfeldblu_ has quit [Remote host closed the connection]
dredaW7 has quit [Quit: Wales]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seal has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
tokik has joined #ruby
skj3gg has joined #ruby
<shevy>
like the availability of mice
<shevy>
if there is a shortage of them, a cat's motivation will just go downhill
josephndenton has joined #ruby
omosoj has quit [Quit: leaving]
tokik has quit [Client Quit]
crueber has quit [Quit: Leaving.]
tokik has joined #ruby
JohnBat26 has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
nuck has joined #ruby
VBlizzard has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
patronus_ has joined #ruby
patronus has quit [Read error: Connection reset by peer]
frog|OFF has quit [Quit: I just got killed...]
skj3gg has joined #ruby
blizzy has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
jschoolcraft has quit [Ping timeout: 264 seconds]
diegoviola has quit [Quit: WeeChat 1.1]
davedev2_ has joined #ruby
bloudermilk has quit [Read error: Connection reset by peer]
davedev24_ has quit [Ping timeout: 255 seconds]
uptownhr has quit [Quit: uptownhr]
williamherry has joined #ruby
mkaesz has joined #ruby
uptownhr has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
pu22l3r has quit [Remote host closed the connection]
baltazore has quit [Remote host closed the connection]
maletor has joined #ruby
frog|OFF has joined #ruby
frog|OFF is now known as green-big-frog
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
LouisRoR has joined #ruby
tmtwd has quit [Remote host closed the connection]
xivusr has joined #ruby
Aova has quit [Read error: Connection reset by peer]
fandi has quit [Ping timeout: 272 seconds]
elabs-developer has joined #ruby
krz has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Sawbones has joined #ruby
Aova has joined #ruby
ta_ has joined #ruby
oleo__ has quit [Quit: Verlassend]
williamherry has left #ruby ["WeeChat 0.4.3"]
d10n-work has quit [Quit: Connection closed for inactivity]
jusmyth has joined #ruby
craigp has joined #ruby
anarang has joined #ruby
ghr has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
LouisRoR has quit [Ping timeout: 244 seconds]
Oberon4278 has joined #ruby
jusmyth has left #ruby [#ruby]
deol has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
jgt2 has quit [Ping timeout: 255 seconds]
matthewhill has joined #ruby
hirzu has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
elimS has joined #ruby
ta_ has joined #ruby
AlexRussia has joined #ruby
vdamewood has joined #ruby
Gadgetoid has joined #ruby
matthewhill has quit [Ping timeout: 272 seconds]
beneggett has joined #ruby
duncan_ has joined #ruby
duncan_ has quit [Remote host closed the connection]
snath has joined #ruby
dseitz has joined #ruby
uptownhr has quit [Quit: uptownhr]
tagrudev has joined #ruby
anarang has quit [Ping timeout: 272 seconds]
duncannz has quit [Remote host closed the connection]
<certainty>
krz: why do you need a time object then?
hirzu has joined #ruby
pdoherty has quit [Ping timeout: 256 seconds]
Macaveli has quit [Ping timeout: 272 seconds]
<krz>
certainty: to make use of strftime
<krz>
convenience i guess
marr has joined #ruby
wallerdev has quit [Quit: wallerdev]
<certainty>
but you're only displaying the hours, no?
seal has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
<krz>
yea i guess i could use it as an int object
patrick99e99 has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
matthewhill has quit [Quit: Be back later ...]
lolmaus has joined #ruby
Aova has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
govg has quit [Quit: leaving]
<certainty>
krz: sounds good to me
<certainty>
then it's just 0..23
ponga has quit [Remote host closed the connection]
<krz>
yea thanks for that
<krz>
:))
apeiros_ has joined #ruby
ponga has joined #ruby
uptownhr has quit [Quit: uptownhr]
sevenseacat has left #ruby [#ruby]
Macaveli has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Quit: leaving]
kaspergrubbe has joined #ruby
The_Phoenix has joined #ruby
dmolina has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
uptownhr has joined #ruby
Macaveli has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
Macaveli has quit [Client Quit]
frek818 has joined #ruby
Macaveli has joined #ruby
patrick99e99 has joined #ruby
oo_ has quit [Remote host closed the connection]
<krz>
certainty: a slight challeng is turning that 24 hour format to a 12 hour forma
frek818 has quit [Client Quit]
<krz>
ideally with a time object, it would be more convenient
pwnz0r has joined #ruby
kp666 has joined #ruby
ta_ has joined #ruby
skj3gg has joined #ruby
chthon has joined #ruby
oo_ has joined #ruby
tcrypt has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 245 seconds]
chth0n has joined #ruby
shime has quit [Read error: Connection reset by peer]
shime has joined #ruby
yfeldblum has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skj3gg has quit [Quit: ZZZzzz…]
josephndenton has joined #ruby
commmmodo has quit [Quit: commmmodo]
oo_ has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
joast has quit [Ping timeout: 252 seconds]
codeFiend has quit [Quit: codeFiend]
Zai00 has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
codeFiend has joined #ruby
arup_r has joined #ruby
recurrence has joined #ruby
bergelmir has joined #ruby
pwnz0r has quit [Remote host closed the connection]
The_Phoenix has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
decoponio has joined #ruby
recurrence has quit [Ping timeout: 240 seconds]
dionysus69_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mskaesz has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
mkaesz has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
dionysus69_ is now known as dionysus69
andikr has joined #ruby
vvivv has joined #ruby
Timgauthier has joined #ruby
workmad3 has joined #ruby
leafybasil has joined #ruby
kalz has quit [Ping timeout: 265 seconds]
mskaesz has joined #ruby
mkaesz has quit [Ping timeout: 244 seconds]
mercwithamouth has joined #ruby
sudog has joined #ruby
kl__ has joined #ruby
kl___ has joined #ruby
livathin_ has joined #ruby
<arup_r>
IRC looks like a fastest clone of twitter... :p
<tobiasvl>
???
<Timgauthier>
uhm...
<mercwithamouth>
lol
<Timgauthier>
you realize IRC is from like 1998 right?
<Timgauthier>
likely much before that
<tobiasvl>
1988, you mean
Morkel has quit [Quit: Morkel]
<Timgauthier>
thanks tobiasvl :P
<Timgauthier>
i started using it in 1998 :P
* Timgauthier
is an internet baby
<tobiasvl>
lol
patrick99e99 has quit [Ping timeout: 245 seconds]
<tobiasvl>
IRC is from 1988, Twitter is from 2006
<shellox>
that's like saying html is a faster clone of flash...
mikepack has joined #ruby
<Timgauthier>
arup_r is new to the internets
patrick99e99 has joined #ruby
<shellox>
i like irc. you can even connect with netcat
<Timgauthier>
sure
<Timgauthier>
what is netcat?
<Timgauthier>
is that one of them wired internet connections?
livathinos has quit [Ping timeout: 245 seconds]
<arup_r>
Ok.. reverting -- Twitter is the slowest clone of IRC.. ;)
<Timgauthier>
my great grand pappi tells me stories about when they used to have to plug a big fat rope like thing into their iphones to get internet
<arup_r>
hahahhaha
<Timgauthier>
they're very different in execution arup_r
<certainty>
no cat pictures on irc (ignoring DCC)
* arup_r
lacks technical knowledge
<Timgauthier>
certainty lol
<Timgauthier>
why doesn't this video streaming work on firefox :'(
<Timgauthier>
fucking firefox and html5 video
<certainty>
go do it the old way
<certainty>
read a book
<Timgauthier>
i can't, its client work
<Timgauthier>
i should read my book
<certainty>
then you're skrewed
<shellox>
twitter is a platform for people who think they're important and for illiterate celebrities
<Timgauthier>
its nice, has a black flat cover
<certainty>
you have a book?
<Timgauthier>
yes i am reading a book
<certainty>
i thought you wrote one :)
<Timgauthier>
well, i say that like a person posting cat pictures is 'Having a nice evening with the cat"
<Timgauthier>
pfft i can barely read
reinaldob has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
jimms has quit [Remote host closed the connection]
<arup_r>
shevy: might be changing his all ip4 addresses ti ipv6...
<arup_r>
to make his boxes more secured from the internet
<arup_r>
:p
bricker has quit [Quit: leaving]
<Timgauthier>
sec
_Andres has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
<Timgauthier>
yup i have an ip5 address
<vvivv>
what is the best theme for Sublime text?
<Timgauthier>
vim
<canton7>
entirely personal taste :P
hanmac1 has joined #ruby
<arup_r>
How??? :(
_Andres has joined #ruby
aswen has joined #ruby
<arup_r>
BTW... Why they skipped ip5?
seal has quit [Quit: Ex-Chat]
<vvivv>
i like fox.dark
<tobiasvl>
arup_r: IPv5 was a completely different thing. became ST2, Internet Stream Protocol v2
ta_ has joined #ruby
kalz has joined #ruby
<Timgauthier>
ugh issues with newest version of firefox refusing to play mp4... sooo the customer gets to have fun doing a ton of work :|
<Timgauthier>
vvivv then you have the best theme (for you)
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
oivoodoo has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
matthewhill has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
leonshalimov has joined #ruby
withnale_ has joined #ruby
ponga has quit [Ping timeout: 276 seconds]
<certainty>
arup_r: good question. dunno. i mean 6 isn't even a power of 2
matthewhill has quit [Ping timeout: 276 seconds]
troubadour has joined #ruby
mercwithamouth has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 276 seconds]
<Timgauthier>
certainty i think arup_r is a troll of the highest order :P
<arup_r>
No doubt!
ajaiswal has quit [Quit: Leaving]
<workmad3>
a quantum troll... any statement he makes starts in an entangled superposition of 'trolling/not-trolling', and requires the action of multiple observers before the state decoheres into a suitable stable state
Hijiri has quit [Ping timeout: 245 seconds]
<Timgauthier>
yea
<Timgauthier>
its shevy i'm sure
<Timgauthier>
:P
<Timgauthier>
naw thats too complicated for shevy's brain maybe
<certainty>
i like trolls
yfeldblum has joined #ruby
<Timgauthier>
they taste delicious
dukedave has quit []
dukedave has joined #ruby
<workmad3>
Timgauthier: they taste of hatred and bitter, unfulfilled dreams
<Timgauthier>
thats my mother
<workmad3>
Timgauthier: it's like a really strong coffee
<Timgauthier>
in a statement
<Timgauthier>
i just had super delicious mild coffee
<Timgauthier>
with a lot of sugar
<workmad3>
heh
<workmad3>
I've had 2 decent coffees so far today... just about at a point where consciousness doesn't feel like too much of a chore...
gccostabr has joined #ruby
<Timgauthier>
i'm thinking about pushing another one
timonv has joined #ruby
otertore has quit [Quit: This computer has gone to sleep]
tcrypt has joined #ruby
otertore has joined #ruby
<arup_r>
Guys,,, can anyone take me to work with you.. (parttime) ... ?
<Timgauthier>
sure
<Timgauthier>
start now, make me a coffee just the way I like it, and clean my house
<workmad3>
arup_r: after that, you can grab a quick flight to my place and do my laundry...
ldnunes has joined #ruby
<Timgauthier>
workmad3 work from home is rad!
<workmad3>
arup_r: you're ok with this being an unpaid internship of up to 10 years, right?
<Timgauthier>
i'll pay you what i may... nothing!!!!!
<arup_r>
I didn't get the joke.
Hijiri has joined #ruby
<workmad3>
arup_r: the joke is that you asked for work and we immediately came up with ways to exploit your labour services, with an attempt to do so for free
<Timgauthier>
thats because you are the joke
<arup_r>
Ohh!...
ta_ has quit [Ping timeout: 276 seconds]
tcrypt has quit [Ping timeout: 256 seconds]
jefus__ has joined #ruby
<workmad3>
arup_r: and then further abusing your offer by suggesting that you'll be happy taking international flights (at your own expense) merely to do my housework for me :P
* certainty
cleans up the troll food
<workmad3>
certainty: no, that's arup_r's job now ;)
tsnz has joined #ruby
<certainty>
:D
<arup_r>
I think... I should now log out.... :(
<workmad3>
arup_r: aww... but then I'll have to start being mean to certainty instead... and he takes it far too well
<arup_r>
said something... and had been interpreted to something else..
<workmad3>
Timgauthier: I'm now wondering if I can get away with the 'mum or sister?' joke ;)
<Timgauthier>
both?
<Timgauthier>
:P
<workmad3>
Timgauthier: ah, ok... you're from one of *those* places :P
<Timgauthier>
north america? yeah
<Timgauthier>
oh man, i thought i was going to have to go make more coffee
danjordan has joined #ruby
<Timgauthier>
...
<Timgauthier>
i havn't finished my first coffee
<Timgauthier>
this is a bad thing
<arup_r>
lol
jefus_ has quit [Ping timeout: 245 seconds]
<workmad3>
I need to go make more coffee
<arup_r>
Timgauthier: lost his mind.. it seems
joonty has quit [Quit: joonty]
<workmad3>
arup_r: you're assuming he ever had one...
hgl- has joined #ruby
<arup_r>
humm.. so
<arup_r>
:)
<arup_r>
I trust all but not my words
hgl- has quit [Max SendQ exceeded]
tsnz has quit [Ping timeout: 272 seconds]
<Timgauthier>
my mind is an empty canvas
<Timgauthier>
that shit isn't even stretched on a frame
hgl- has joined #ruby
baltazor_ has joined #ruby
<workmad3>
Timgauthier: ah, so what you really meant was "My mind is a tattered rag, screwed up and thrown in the corner of an artist's studio" but you wanted to dress it up a bit
<Timgauthier>
also the problem i forsee with his "cheap" printer is the same reason the other ones are expensive... they need to make very sharp points into the paper to be readible and to stay readible, and a cheap machine will not stay sharp long enough
livathin_ has quit [Remote host closed the connection]
<arup_r>
may be
bronson has joined #ruby
livathinos has joined #ruby
eka has joined #ruby
rodfersou has quit [Quit: leaving]
ARCADIVS has quit [Quit: ARCADIVS]
hamakn has quit [Remote host closed the connection]
blackmesa has joined #ruby
shashin has joined #ruby
shashin has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
craigp has joined #ruby
oo__ has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
mroth has quit []
mroth has joined #ruby
joonty has joined #ruby
oivoodoo has quit [Ping timeout: 272 seconds]
oo_ has quit [Ping timeout: 255 seconds]
oivoodoo has joined #ruby
mikecmpbll has joined #ruby
livathinos has quit [Remote host closed the connection]
timonv has quit [Quit: WeeChat 1.1]
timonv has joined #ruby
tcrypt has joined #ruby
ponga has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
oo__ has quit [Remote host closed the connection]
MyMind has joined #ruby
ChoiKyuSang has joined #ruby
shredding has quit [Quit: shredding]
oo_ has joined #ruby
shredding has joined #ruby
tcrypt has quit [Ping timeout: 245 seconds]
oivoodoo has quit []
davidhq has joined #ruby
pdoherty has joined #ruby
roshanavand1 has quit [Quit: roshanavand1]
roshanavand has joined #ruby
martinium has joined #ruby
timonv has quit [Quit: WeeChat 1.1]
timonv has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
uptownhr has quit [Quit: uptownhr]
pdoherty has quit [Ping timeout: 252 seconds]
rodfersou has joined #ruby
ckrailo__ has quit []
nuck has quit [Quit: Computer has gone to sleep.]
ckrailo__ has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7>
so it looks like a difference between how gem and bundler have set up the environment for building nokogiri
<canton7>
does bundler say what version of nokogiri it's trying to install?
matthewhill has joined #ruby
jschoolcraft has joined #ruby
Morkel has quit [Quit: Morkel]
<niik00>
1.6.6.1
jimms has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baltazore has quit [Ping timeout: 245 seconds]
adriancb has joined #ruby
fxn has joined #ruby
troubadour has quit [Quit: troubadour]
mbug has quit [Quit: Leaving]
Pip has joined #ruby
juni0r has joined #ruby
adriancb has quit [Ping timeout: 272 seconds]
timonv has quit [Quit: WeeChat 1.1]
patrick99e99 has quit [Ping timeout: 265 seconds]
zorak8 has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
timonv_ has joined #ruby
<arup_r>
Need a Ruby help -- the doco is very perfect - http://ruby-doc.org/core-2.2.0/Object.html#method-i-dup-label-on+dup+vs+clone .. I didn't understand **dup typically uses the class of the descendant object to create the new instance.** Any light on this please?
johnzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patrick99e99 has joined #ruby
reinaldo_ has joined #ruby
shime_ has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
da3m0n22 has joined #ruby
psy_ has quit [Ping timeout: 252 seconds]
ta__ has joined #ruby
<niik00>
Well I think I'm gonna bundle normally and not in vendor/bundle
shazaum has joined #ruby
<niik00>
since it solves the problem
shazaum has joined #ruby
shazaum has quit [Changing host]
ta_ has quit [Ping timeout: 276 seconds]
<da3m0n22>
Hello, with (ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin13]), I cannot (require_relative 'RFC7159/parser'), but path given in error message exists
jefus_ has joined #ruby
<da3m0n22>
meaning full path to the file is OK, doesn't work even with appending .ry/.rb in the require_relative command
<da3m0n22>
hints anyone?
garethrees has joined #ruby
anaeem1__ has joined #ruby
shime has quit [Ping timeout: 245 seconds]
JBreit has joined #ruby
<hanmac1>
da3m0n22: where did you try to call require_relative? in a file or in the interpreter like irb?
yfeldblum has quit [Remote host closed the connection]
georgesmith has joined #ruby
softinio has joined #ruby
kp666 has quit [Quit: Leaving]
bal has joined #ruby
sigurding has joined #ruby
nfk has joined #ruby
<softinio>
Hey I am an experienced developer and need to write some ruby code for my job asap .... is there a good tutorial that gets me going fast with ruby as I am experienced? So far have been looking at http://www.rubyist.net/~slagell/ruby
<avril14th>
but still the best is yet to write code :)
Macaveli has quit [Remote host closed the connection]
metadave has joined #ruby
<softinio>
Code I will writing for sure straight away :-)
<softinio>
hence i need this tutorial to be quick :-)
Macaveli has joined #ruby
<avril14th>
what do you need writing?
shashin has quit [Quit: shashin]
<avril14th>
(and why ruby then?)
<softinio>
For work
<avril14th>
what work? an online app? a dark system script?
<softinio>
Need to develop something for a part of the system that is written in ruby
<avril14th>
k
<avril14th>
cool, welcome :)
<softinio>
There is a server we have that that provides services through RPC I need to write a ruby app as a client to it so our testers can use to test this server
<softinio>
needs to be in ruby as our testers gonna automate their tests and their tests written all in ruby and cucumber
psy_ has quit [Ping timeout: 244 seconds]
<softinio>
avril14th: thanks
try has joined #ruby
sambao21 has joined #ruby
i0n has quit [Quit: snooze]
dumdedum has quit [Quit: foo]
tcrypt has joined #ruby
<avril14th>
softinio: since you're writing a client, maybe you should check into setting it as a gem so you could use your client around and it will be dead easy to integrate into a ruby test suite
<softinio>
good idea opportunity to learn that fast too
livathin_ has quit [Remote host closed the connection]
Moter8 has joined #ruby
josephcs has quit [Quit: (null)]
livathinos has joined #ruby
<scottstamp>
avril14th: turns out the problem was a misplaced --force-plural flag, guess the parser for rails g doesn't like things out of order ;)
<wald0>
let's say i did an app which is in version 3.0.0 now, i want to start development for the next beta with releases each week (so i need a version number here for them), but at the same time i want to continue doing releases of the stable version with updates and fixes
jgt2 has quit [Ping timeout: 264 seconds]
pushpak has joined #ruby
<scottstamp>
wald0: 3.0.0-b#
LWade has joined #ruby
arya_ching has quit [Ping timeout: 264 seconds]
<scottstamp>
or -beta if you want to be terse
<avril14th>
scottstamp: k :)
<wald0>
so i was thinking about releasing 3.0.1 and 3.0.2 as updates for the stable, so then i can start doing 4.0.x for the betas... but then when the beta would become stable, i cannot name it 4.0.0
<hanmac2>
wald0: did you look at my link?
<scottstamp>
Semantic versioning is about the only thing Java gets right. ^_^
<wald0>
using 3.0.0-b# could make confusing the stable version, mmh...
<wald0>
hanmac2: looking at it now
joonty has joined #ruby
deepa has quit [Changing host]
deepa has joined #ruby
deepa is now known as deepy
jherbst has joined #ruby
lektrik has joined #ruby
tus has joined #ruby
<scottstamp>
wald0: I would agree it can get confusing when you branch a beta from a stable, but the idea is that versioning tools will take your whole number as precedence over something flagged. I suppose doing it *right* would be 3.1.0-beta (or 4.0.0-beta if it's a major update)
ascarter has joined #ruby
<wald0>
mmmh, not very convinced, in fact i dont have "dependency problems", but more how to name the versions, for example there will be 2 independent branches, stable and development, both of them would be updated and would have future updates
<scottstamp>
then when you drop your flag, 4.0.0 takes precedence over 4.0.0-beta
xivusr has joined #ruby
Parker0 has joined #ruby
<wald0>
scottstamp: yes but, let's say i do 50 release of beta's during the development... i would need something like -beta-49 then ?
<scottstamp>
Yup.
arya_ching has joined #ruby
<wald0>
hum
FarlaTux has joined #ruby
Dev-Gitter has joined #ruby
<wald0>
or maybe i can just start the beta versions from 3.1.x (3.x.x in fact, until released as 4.0.0), and then do updated releases on the stable as 3.0.x
bronson has joined #ruby
jonesthedolphin has joined #ruby
leonshalimov has joined #ruby
<wald0>
"stable releases" sounds like for me as in NUM.0.0
PhilK has quit []
PhilK has joined #ruby
anarang has quit [Quit: Leaving]
hirzu has quit [Ping timeout: 264 seconds]
fgo_zzZz has joined #ruby
<workmad3>
wald0: please don't invent yet another versioning scheme... just use http://semver.org/ unless you have very good reason not to
i0n has quit [Read error: Connection reset by peer]
<wald0>
well, i have some reasons in fact, website download buttons parsers and other tools uses a parsing of values only based in x.x.x
<wald0>
dont knows about -stuff-xxx
davidhq has joined #ruby
<scottstamp>
then they're doing it wrong. :3
Dev-Gitter has quit [Max SendQ exceeded]
<wald0>
probably :)
<wald0>
but is a reason lol
FarlaTux has quit [Max SendQ exceeded]
JDiPierro has joined #ruby
<workmad3>
wald0: that's not a very good reason though :P
<workmad3>
wald0: and that's what I said... not 'any reason you can drum up' but 'a very good reason'
tiwillia has quit [Read error: Connection reset by peer]
tiwillia has joined #ruby
mgorbach has joined #ruby
ta_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
tcrypt has quit [Ping timeout: 245 seconds]
Pip has quit [Remote host closed the connection]
manzo has quit [Ping timeout: 264 seconds]
freerobby1 has quit [Quit: Leaving.]
sevenseacat has quit [Remote host closed the connection]
joonty has joined #ruby
DrShoggoth has joined #ruby
mrmargolis has joined #ruby
r0bby_ has joined #ruby
Tomasso has joined #ruby
nhhagen_ has joined #ruby
rebcabin has quit [Quit: Leaving.]
rbennacer has joined #ruby
<Tomasso>
i have a set of files that have ruby code such us, {"myobject"=> "definition"} , it contains one ruby object definition, the question is.. how should I import them so I add each one to a collection?
nateberkopec has joined #ruby
stormbytes has joined #ruby
<stormbytes>
morning
<stormbytes>
how do i open->read->write->close a file in ruby?
<stormbytes>
tobiasvl will that work if the file is blank ? er. file.to_s default to 0 ?
<stormbytes>
err.. to_i
enebo has joined #ruby
livathinos has quit [Remote host closed the connection]
IrishGringo has joined #ruby
r0bby_ has quit [Ping timeout: 264 seconds]
<tobiasvl>
yes, that should work. if you mean file.gets that is. it will return nil, and nil.to_i is 0.
x77686d has joined #ruby
<tobiasvl>
but why not just try it and see?
<stormbytes>
got it
<tobiasvl>
fool around with it and see what you make out of it.
<stormbytes>
was going to be my next move :)
scripore has quit [Quit: Leaving]
Megtastique has quit []
ta_ has quit [Remote host closed the connection]
Megtastique has joined #ruby
Timgauthier is now known as timgauthier_away
baltazore has quit [Remote host closed the connection]
dflnbl has quit [Remote host closed the connection]
hirzu has joined #ruby
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Morkel has joined #ruby
crueber has joined #ruby
tagrudev has quit [Remote host closed the connection]
ahegyi has quit [Quit: Lost terminal]
<scottstamp>
grr, wtf. I'm trying to include a gem I built into a rails project but rake --tasks is throwing an error from that gem saying it can't find httparty. http://pastie.org/9854607
rbennacer has quit [Remote host closed the connection]
<scottstamp>
I have require 'rubygems' at the top of the file that's requiring httparty already
<stormbytes>
tobiasvl if i just want to return the number stored in the file, whats wrong with this: file = File.open("pn.activity", "r")
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
<GeorgesLeYeti>
waxjar & workmad3 : ty
swerter has joined #ruby
ponga has quit [Ping timeout: 256 seconds]
joast has joined #ruby
swerter has quit [Client Quit]
Aova has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
meth has left #ruby [#ruby]
DaniG2k has joined #ruby
danman has joined #ruby
tonyhb has joined #ruby
kenneth has joined #ruby
martinium has joined #ruby
tjbiddle has joined #ruby
tobago has quit [Remote host closed the connection]
EvanFreeman has joined #ruby
beneggett has quit [Ping timeout: 265 seconds]
zzzbra has quit [Ping timeout: 276 seconds]
joonty has quit [Quit: joonty]
leonshalimov has quit [Ping timeout: 245 seconds]
davidhq has joined #ruby
yfeldblum has joined #ruby
chrishough has joined #ruby
deric_skibotn has joined #ruby
xivusr has joined #ruby
leonshalimov has joined #ruby
felipecvo has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
copy0401 has joined #ruby
culturelabs has quit []
blackmesa has joined #ruby
patrick99e99 has joined #ruby
culturelabs has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
yfeldblum has quit [Ping timeout: 244 seconds]
vt102 has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
jimms has joined #ruby
DrShoggoth has quit [Quit: Leaving]
tpilionis has quit [Ping timeout: 245 seconds]
fryguy91 has quit [Read error: Connection reset by peer]
fryguy9 has joined #ruby
bkulbida has joined #ruby
emirozer has joined #ruby
* bkulbida
emirozer has quit [Client Quit]
bluOxigen has joined #ruby
<bkulbida>
hi all
deol has joined #ruby
Tomasso has quit [Quit: Page closed]
_bk has quit [Quit: _bk]
copy0401 has quit []
unreal has quit [Quit: Very funny Scotty. Now beam down my clothes!]
bkulbida has quit [Client Quit]
jgt2 has joined #ruby
centrx has joined #ruby
DaniG2k has quit [Ping timeout: 245 seconds]
pancake-breakfas has left #ruby ["Textual IRC Client: www.textualapp.com"]
cjim has joined #ruby
unreal has joined #ruby
jonesthedolphin has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 272 seconds]
sigurding has quit [Quit: sigurding]
ptrrr has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
elabs-developer has quit [Quit: elabs-developer]
stunder_mcw has joined #ruby
<dstarh>
I've got an external data source that is sending what they call "inline xml" that would look like this I ate <FOOD>Cheese Pizza</FOOD> for <OCCASION>lunch</OCCASION>. does anyone have any thoughts on a gem that might be able to parse those for me? It's "xml like" but certainly not xml
johnzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stunder_mcw has quit [Client Quit]
kaspertidemann has joined #ruby
<leonshalimov>
Nokogiri?
DrShoggoth has joined #ruby
DrShoggoth has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
<shevy>
just got back
<shevy>
certainty the first exam was nice, no question about IPv6 \o/
fgo_zzZz has joined #ruby
blackmesa has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
EvanFreeman has quit [Remote host closed the connection]
Tricon has joined #ruby
dfinninger has joined #ruby
danjordan has quit [Quit: danjordan]
mikecmpbll has quit [Quit: ciao.]
gawd has joined #ruby
fryguy9 has quit [Quit: Leaving.]
bronson has joined #ruby
wallerdev has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ellisTAA has joined #ruby
BuGo has joined #ruby
<ellisTAA>
can someone give me an example of a factory method in ruby? i thought .new was a factory method but someone said its not
beneggett has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
fgo_zzZz has quit [Ping timeout: 264 seconds]
<BuGo>
is there a way to get super method? like you can get method(:some_method).souce_location and in my case it is unbound method that calls super inside of it. How can i get what method gets called with said super?
<apeiros_>
ellisTAA: that someone is wrong
<ellisTAA>
apeiros_: ty
DaniG2k has joined #ruby
EvanFreeman has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
danjordan has joined #ruby
dfinninger has quit [Remote host closed the connection]
lampd1_ has joined #ruby
tubuliferous has joined #ruby
zzzbra has joined #ruby
sambao21 has joined #ruby
jfran has joined #ruby
<BuGo>
with superclass! tnx!
bronson has quit [Ping timeout: 252 seconds]
fryguy9 has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
"The factory method pattern is a creational pattern which uses factory methods to deal with the problem of creating objects without specifying the exact class of object that will be created."
<ellisTAA>
but what is the benefit of creating a factory method instead of a instance method
<shevy>
so in ruby this would actually translate to Factory.create Class.new something I guess
<ellisTAA>
i dont get the last part “without specifying the exact class of object that will be created.””
<centrx>
It wouldn't make any sense to create a factory method as an instance method
leonshalimov has quit [Ping timeout: 245 seconds]
<ellisTAA>
centrx: i guess that’s the thing i dont get. if the method is just creating a new object why can’t an instance method do that
<centrx>
unless the instance method is a factory method
<centrx>
in which case there is no comparison between creating a factory method instead of an instance method
Vivex_ has quit [Read error: Connection reset by peer]
<ellisTAA>
so is a factory method a class method whose purpose is to create new objects?
<centrx>
A factory makes widgets, also called objects
booly-yam-7361_ has joined #ruby
booly-yam-7361 has quit [Ping timeout: 255 seconds]
towski_ has joined #ruby
zenith_ has joined #ruby
<ellisTAA>
say we created a class called class Car. what kind of factory method could we create?
LouisRoR has joined #ruby
fryguy9 has quit [Quit: Leaving.]
symbol has quit [Ping timeout: 256 seconds]
<centrx>
say you created a class called Vehicle
<ellisTAA>
k
<centrx>
You might have a factory method that will create either Car or Truck or Bicycle
<centrx>
depending on, say, a parameter
<centrx>
or a la the Wikipedia example
<ellisTAA>
ah i see … so instead of writing class Car << Vehicle … i would write vehicle.create(car)
<ellisTAA>
would that create a new car class ^^
<centrx>
if you set it up to
borel has quit [Remote host closed the connection]
<centrx>
ellisTAA, You might want to pass a symbol, like :car or :bike
fryguy9 has joined #ruby
Hijiri has joined #ruby
<centrx>
ellisTAA, then you would call Car.new or Bike.new depending on x
rbennacer has joined #ruby
<ellisTAA>
so in this example, would the person have 3 classes > class Vehicle, class Car, class Bike. and in the vehicle class have a factory method that can create new instances of the bike and car class?
<GaryOak_>
ellisTAA: yeah it's just a method you write, the factory pattern isn't a hard fast structure
wallerdev has joined #ruby
PenguinMan98 has joined #ruby
<GaryOak_>
If you know what type of object it's returning then you don't need a factory
fryguy9 has quit [Read error: Connection reset by peer]
<ellisTAA>
ok thanks
fryguy9 has joined #ruby
pdoherty has joined #ruby
GeorgesLeYeti has quit [Quit: Quitte]
dc has quit [Remote host closed the connection]
<PenguinMan98>
Hey all I'm trying to install sass. I run 'gem ruby install' but i get an error 'No such file or directory X:/" I realize this is probably not a ruby question, but I figured I may as well ask anyway.
sambao21 has joined #ruby
<GaryOak_>
ellisTAA: You say I need to get across town, and you feed it parameters and it gives you back a vehicle that can fit what you neeed
bronson has quit [Ping timeout: 264 seconds]
_2_lilog has joined #ruby
<PenguinMan98>
sorry, 'gem install sass'
KnownSyntax has quit [Quit: Connection closed for inactivity]
<_2_lilog>
hi
<ellisTAA>
garyoak: ok i think i got it. thank you for clarifying
jenrzzz has joined #ruby
Hijiri has quit [Ping timeout: 255 seconds]
<GaryOak_>
ellisTAA: it's kind of a confusing concept unless you have a real use case for it
zenith_ has quit [Ping timeout: 246 seconds]
<ellisTAA>
garyoak: is it an oop concept? i’ve been thinking about getting a book about oop
<GaryOak_>
ellisTAA: yeah, it's an oop concept, if you are interested in general design patterns there are tons of resources online
<PenguinMan98>
If the parameter is 'passengers = 2' then it returns a 'coupe' object. if the passengers = 12 then it returns a 'bus' object. You don't need to know exactly which type of vehicle is returned as long as it has a '.drive() method.
<PenguinMan98>
Which you can ensure by making sure all your vehicles extend the 'driveable' interface
<ellisTAA>
garyoak: i’m learning ruby/programming. ppl have mentioned design pattners, could u tell me what other concepts i need to learn in order to become a good ruby programmer
<PenguinMan98>
implement*
symbol has joined #ruby
dfinninger has joined #ruby
musl has joined #ruby
<GaryOak_>
ellisTAA: understanding how objects work in general, and what that actually means in ruby
<GaryOak_>
ellisTAA: Like I've been learning Rust, and I just went through the tutorial book, and the project at the end was a number guesser, it's simple but I learned a lot
bklane has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
<ellisTAA>
garyoak: yeah i’ve been thinking of using exercism.io for practicing
leonshalimov has quit [Ping timeout: 244 seconds]
dc has joined #ruby
olivier_bK has quit [Ping timeout: 245 seconds]
beneggett has quit [Ping timeout: 244 seconds]
phoo1234567 has joined #ruby
bkulbida has quit [Ping timeout: 244 seconds]
Spami_ has quit [Quit: This computer has gone to sleep]
exadeci has quit [Quit: Connection closed for inactivity]
phoo1234567 has joined #ruby
<dojobo>
anybody actually used exercism.io?
<dojobo>
i'm still working through some other beginner stuff before i graduate to that
<dojobo>
it sounds great but i'm skeptical that it works as advertised, since it's free
<PenguinMan98>
Hey all I'm trying to install sass. I run 'gem install sass' but i get an error 'No such file or directory X:/" I realize this is probably not a ruby question, but I figured I may as well ask anyway.
<dojobo>
i.e. having a knowledgeable human you don't know review your code and give you tips sounds too good to be true
chrishough has joined #ruby
zenith_ has quit [Remote host closed the connection]
<dojobo>
(for free i mean)
ponga has joined #ruby
perturbation has quit [Quit: Leaving]
yfeldblum has joined #ruby
<waxjar>
it works dojobo, sometimes it takes a while before you get any comments
Aova has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
<dojobo>
ah cool, good to know
<dojobo>
thanks waxjar
Morkel has joined #ruby
<GaryOak_>
PenguinMan98: something is looking for an X: directory
<dojobo>
i already know the rails app i need to make, but i have to build up the expertise first
<PenguinMan98>
GaryOak_: Yeah. But .. .where to fix? Where to look for fix?
<centrx>
ellisTAA, implement factory methods from_celsius and from_fahrenheit
shime has quit [Read error: Connection reset by peer]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<centrx>
ellisTAA, In this case, these factory methods simply create an instance of Temperature, in a helpful way
m8 has quit [Ping timeout: 244 seconds]
ponga has quit [Ping timeout: 276 seconds]
<ellisTAA>
i see …
yfeldblum has quit [Ping timeout: 276 seconds]
Aova has joined #ruby
<ellisTAA>
centrx: so would this be ok def self.from_fahrenheit(x)
<ellisTAA>
Temperature.new(x)
<ellisTAA>
end
kirun has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
tonyhb has quit [Quit: peace]
tcrypt has joined #ruby
commmmodo has joined #ruby
finisherr has joined #ruby
tjbiddle has joined #ruby
<centrx>
ellisTAA, That does not look like it would work
<centrx>
ellisTAA, the temperature has to be stored with a unit, the initialize method accepts a hash not a number
<ellisTAA>
centrx: yeah i was looking @ that and realized “fuck”
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<PenguinMan98>
I think the idea is you call Temperature's constructor and give it a tuple(hash) 'Celsius' = 42. After that, calling .the .in_farenheit and in_celsius methods on it to get the temperature back out.
Flcn has quit [Quit: Be back later ...]
<finisherr>
Can someone please tell me why this does not print every item in the array then delete them?
djbkd has quit [Remote host closed the connection]
jonesthedolphin has quit [Remote host closed the connection]
adamkittelson has quit [Remote host closed the connection]
jonesthedolphin has joined #ruby
<shevy>
.whatever()
rbennacer has joined #ruby
bkulbida has joined #ruby
function90 has joined #ruby
<ellisTAA>
i’ve made some progress. but when my factory methods get called and a new class gets created the argument that gets instantiated isn’t acting like a hash so i get an error message saying undefined method ‘keys’. anyone know why? https://gist.github.com/ellisTAA/186d966ab77dc8c5993e
nobitanobi has joined #ruby
rbennacer has quit [Remote host closed the connection]
<arup_r>
shevy: Is this a new method in Ruby? `.whatever()`
<shevy>
arup_r lol
<shevy>
arup_r.whatever!()
<dojobo>
it's part of the ennui gem
blackoperat has joined #ruby
<arup_r>
what it modified in my.. What I can see.. I am coughing loudly.. ;)
<arup_r>
shevy: ^^
<ellisTAA>
nvm
djbkd has joined #ruby
<PenguinMan98>
Hey all I'm trying to install sass. I run 'gem ruby install' but i get an error 'No such file or directory X:/" I realize this is probably not a ruby question, but I figured I may as well ask anyway.
ghr has joined #ruby
<arup_r>
shouldn't it be gem install saas ?
<PenguinMan98>
arup_r: no
<dojobo>
maybe x: is a default value for a parameter you need to specify?
<ellisTAA>
yahooo!! figured it out
<PenguinMan98>
oh wait
n1lo has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
terlar has quit [Ping timeout: 255 seconds]
<PenguinMan98>
yeah, I corrected myself before
<PenguinMan98>
then pasted teh old one again
<arup_r>
Ohh!.. Never mind I don't use Ruby.. I use PhP ;)
<PenguinMan98>
Hey all I'm trying to install sass. I run 'gem install sass' but i get an error 'No such file or directory X:/" I realize this is probably not a ruby question, but I figured I may as well ask anyway.
<ellisTAA>
peguinman98: i dont know RoR yet but if no one in here knows, #RubyonRails might be able to help u out
<centrx>
~!~!~&~ YOU SAID THE WORD OF THE DAY ~~@!@~@!
<PenguinMan98>
cool
<PenguinMan98>
thanks
momomomomo has joined #ruby
_maes_ has joined #ruby
klmlfl has quit [Remote host closed the connection]
michael_mbp has joined #ruby
klmlfl has joined #ruby
william3 has quit []
n1lo has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
bayed has quit [Quit: Connection closed for inactivity]
defrang has joined #ruby
fgo_zzZz has joined #ruby
djbkd has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
Tricon` has quit [Ping timeout: 245 seconds]
dojobo has quit [Read error: Connection reset by peer]
dojobo has joined #ruby
govg has joined #ruby
klmlfl has quit [Ping timeout: 256 seconds]
<shevy>
PhD or PhP
govg is now known as Guest43057
ExtraSpicy is now known as nine[array]
Guest43057 has quit [Client Quit]
n008f4g_ has quit [Ping timeout: 244 seconds]
govg_ has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
GaryOak_ has quit [Remote host closed the connection]
leonshalimov has joined #ruby
quimrstorres has joined #ruby
fgo_zzZz has quit [Ping timeout: 265 seconds]
porfa has joined #ruby
bitcycle has joined #ruby
bronson has joined #ruby
lamasnik has quit [Ping timeout: 264 seconds]
<bitcycle>
Hey all. What debugger should I use with ruby 2.2.0?
leafybasil has quit [Remote host closed the connection]
tvw has quit []
tvw has joined #ruby
athan has quit [Ping timeout: 264 seconds]
<shevy>
would you guys think it is obsessive if I split my ruby projects into directories with usually only one file in it?
tvw has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
CountTwo_ has quit [Quit: Page closed]
tvw has joined #ruby
arup_r has quit [Quit: Leaving.]
<centrx>
shevy, it's okay as long as each file consists of only one class and each class consists of only one method
<shevy>
ah
<shevy>
my classes tend to become huge
<shevy>
that's why I wanted to split them up into the first place :(
bronson has quit [Ping timeout: 246 seconds]
tvw has quit [Client Quit]
allcentury has joined #ruby
nanoyak has joined #ruby
jfran_ has joined #ruby
codeFiend has joined #ruby
Hijiri has joined #ruby
<shevy>
lol
<shevy>
I am watching a biochemistry lecture about polyketides... and the girl talking about uses lego analogy... the chemical compounds are built by differently coloured lego bricks
<centrx>
dude particles don't even exist
<shevy>
now I should write some ruby code that builds up chemical compounds through lego
arup_r has joined #ruby
<shevy>
everything is a model!
n1lo has quit [Quit: Leaving]
<shevy>
everything is an object!
jfran has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 276 seconds]
<waxjar>
lego oriented programming
<waxjar>
bricks communicate trough pins and holes
<centrx>
what about the lego people, are they objects too?
<shevy>
yeah waxjar ... we build bricks on bricks just like in an assembly pipe
<shevy>
the lego people are kinda cheaters
<shevy>
I think they were not there in the very beginning
<eam>
OOP is on its way out, AOP is where it's at
checkit has joined #ruby
adamkittelson has joined #ruby
<shevy>
is AOP better?
<pipework>
Aspect.
icbm has joined #ruby
<pipework>
I don't really get it, personally.
<eam>
we need a language where everything is an aspect (instead of an object), promote the inter-connectedness of all things
^james^ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
<pipework>
Do we though?
obelich has joined #ruby
<obelich>
hiyas
<obelich>
some one know if i can use a escanner twain in Ruby ? some gem ?
tcrypt has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
ponga has joined #ruby
perturbation has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
davout has quit [Quit: bye]
RDash` has joined #ruby
lkba has joined #ruby
davout has joined #ruby
Flcn has joined #ruby
EvanFreeman has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ursooperduper has joined #ruby
agjacome has joined #ruby
djbkd has joined #ruby
ponga has quit [Ping timeout: 256 seconds]
Aova has joined #ruby
fryguy9 has joined #ruby
olivier_bK has joined #ruby
B1n4r10 has joined #ruby
RDash` has quit [Changing host]
RDash` has joined #ruby
tcrypt has joined #ruby
RDash` is now known as RDash
B1n4r10 has quit [Max SendQ exceeded]
jgt2 has quit [Ping timeout: 272 seconds]
Zai00 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
blackoperat has quit [Remote host closed the connection]
athan has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
cjim_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
reset has joined #ruby
Morkel has quit [Quit: Morkel]
longfeet has joined #ruby
Spami has joined #ruby
adamkittelson has quit [Remote host closed the connection]
<centrx>
ellisTAA, ftoc and ctof look like new methods
<centrx>
ellisTAA, you don't have anything like them so far
<ellisTAA>
centrx: thank you. what does it mean to refactor to call those methods from the rest of the object
<centrx>
ellisTAA, So after implementing those methods, then "refactoring" means changing the rest of the code to use them, while keeping the same behavior and functionality
<centrx>
ellisTAA, Refactoring means to make changes/improvements to the code base, while keeping the same functionality and behavior, not introducing new features -- or bugs
postmodern has joined #ruby
ki0 has joined #ruby
<ellisTAA>
i see…. so does that mean i will keep methods like in_fahrenheit and just have ftoc call it or does it mean i change the name of in_fahrenheit to ftoc?
blackoperat has joined #ruby
kalusn has joined #ruby
havenwood has joined #ruby
mozzarella has quit [Quit: WeeChat 1.0.1]
<centrx>
ellisTAA, in_fahreneit is an instance method that returns the value of the given instance in the specified unit
<centrx>
fahrenheit
mozzarella has joined #ruby
booly-yam-7361_ has quit [K-Lined]
<centrx>
ellisTAA, ftoc and ctof would be utility methods, somewhat independent class methods that act sort of as a toolbox
jenrzzz has joined #ruby
<centrx>
ellisTAA, ftoc and ctof do not use any instance of Temperature, they take f as input and output as c, or vice-versa
leafybasil has joined #ruby
andikr has quit [Remote host closed the connection]
<ellisTAA>
utility methods? is that the same as factory method?
<centrx>
no
<centrx>
a utility method does not create anything, a utility method generally doesn't retain any state
tcrypt has quit [Read error: Connection reset by peer]
<centrx>
like Math.sqrt
<centrx>
that's a utility method, it's basically just a function
tcrypt has joined #ruby
rbennacer has joined #ruby
MasterPieceF has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
<pipework>
It's a method that doesn't have state, and it's 'utility' in that it can be used by anything and isn't domain-specific.
<pipework>
Just a useful thing.
ixti has joined #ruby
<ellisTAA>
is the difference between a factory method and a class method that a factory method creates a new thing and a class method just maintains a state or manipulate the state?
baroquebobcat has quit [Read error: Connection reset by peer]
baroquebobcat_ has joined #ruby
<longfeet>
pretty much
rbennacer has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<ellisTAA>
cool
MasterPieceF has left #ruby [#ruby]
doodlehaus has joined #ruby
aclearman037 has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
parduse is now known as Guest80456
zenith__ has joined #ruby
pardusf has joined #ruby
zenith_ has quit [Read error: Connection reset by peer]
zenith__ has quit [Client Quit]
Guest80456 has quit [Ping timeout: 265 seconds]
zenith_ has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
GaryOak_ has joined #ruby
sigurding has joined #ruby
quimrstorres has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
<porfa>
is there any built in function in ruby to output me percentages?
baweaver has joined #ruby
martinium has quit [Remote host closed the connection]
perturbation has quit [Quit: Leaving]
<porfa>
i wanna know how much percent discount is from LARGENUM to SMALL NUM i have high prce, and low price, i need percentagem of discount
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
KnownSyntax has joined #ruby
athan has quit [Ping timeout: 272 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
beneggett has joined #ruby
jeff-ooh has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
nanoyak has joined #ruby
ponga has joined #ruby
ta_ has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
chinmay_dd has quit [Quit: Connection closed for inactivity]
nanoyak has joined #ruby
frek818 has quit [Quit: frek818]
softinio has quit [Quit: Connection closed for inactivity]
bdamos has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
<mwlang_>
ok, figured out to not escape strings with XmlMarkup: xml.return("xsi:type" => "xsd:string"){ |xml| xml << content }
bitcycle has joined #ruby
shazaum_ has quit [Quit: This computer has gone to sleep]
jgt2 has joined #ruby
athan has quit [Ping timeout: 272 seconds]
athan has joined #ruby
Aova has joined #ruby
adamkittelson has joined #ruby
Eiam_ has joined #ruby
ponga has quit [Ping timeout: 272 seconds]
ki0 has quit [Remote host closed the connection]
danjordan has quit [Quit: danjordan]
ta_ has quit [Ping timeout: 276 seconds]
zachrab has quit [Remote host closed the connection]
jgt2 has quit [Ping timeout: 240 seconds]
kaspertidemann has joined #ruby
rbennacer has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
St_Marx has quit [Ping timeout: 250 seconds]
jonmorehouse has joined #ruby
tjbiddle has joined #ruby
zachrab has joined #ruby
tcrypt has joined #ruby
kl___ has quit [Ping timeout: 264 seconds]
kl__ has quit [Ping timeout: 264 seconds]
paulfm has quit [Quit: Goodbye]
felipecvo has quit [Quit: Leaving...]
JBreit has left #ruby ["Leaving"]
GaryOak_ has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
<bkulbida>
\n
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
djbkd has joined #ruby
bascht1 has quit [Quit: WeeChat 0.4.2]
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
\n\n\n\n
nanoyak has quit [Quit: Computer has gone to sleep.]
baweaver has joined #ruby
dc has quit [Remote host closed the connection]
lsone has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
zenith_ has quit [Read error: Connection reset by peer]
zenith__ has joined #ruby
athan has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
djbkd has quit [Ping timeout: 245 seconds]
michael_mbp has joined #ruby
tcrypt has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
enebo has quit [Quit: enebo]
zenith__ has quit [Remote host closed the connection]
athan has joined #ruby
thumpba_ has joined #ruby
zenith_ has joined #ruby
Megtastique has quit []
nobitanobi has joined #ruby
zenith__ has joined #ruby
pdoherty has quit [Remote host closed the connection]
thumpba_ has quit [Remote host closed the connection]
whoisjake has quit []
johnzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
frek818 has joined #ruby
codeFiend has quit [Quit: codeFiend]
zachrab has quit [Remote host closed the connection]
zenith_ has quit [Ping timeout: 256 seconds]
pdoherty has joined #ruby
ta has joined #ruby
dseitz has joined #ruby
bronson has joined #ruby
nanoyak has joined #ruby
deol has joined #ruby
ta has quit [Remote host closed the connection]
<jonmorehouse>
I'm looking for a lightweight sql generator for a small daemon I'm building
<jonmorehouse>
I like arel, but its not very friendly outside of rails
ta has joined #ruby
commmmodo has quit [Quit: commmmodo]
obelich has quit [Quit: Page closed]
<jonmorehouse>
are there any other alternatives, anyone would recommend?
fryguy9 has quit [Read error: Connection reset by peer]
fxn has quit [Quit: bye]
fryguy9 has joined #ruby
fantazo has joined #ruby
mikepack has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
St_Marx has joined #ruby
ghr has joined #ruby
hydrozen has joined #ruby
bklane has quit [Remote host closed the connection]
mikepack has joined #ruby
dling has quit []
pietr0 has joined #ruby
Lingo_ has joined #ruby
beneggett has joined #ruby
fgo_zzZz has joined #ruby
bklane has joined #ruby
martinium has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 276 seconds]
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgt2 has joined #ruby
fgo_zzZz has quit [Ping timeout: 264 seconds]
zerolith_zzz is now known as zerolith
shime has joined #ruby
sigurding has quit [Quit: sigurding]
djbkd has joined #ruby
baweaver has quit [Remote host closed the connection]
zerolith is now known as zerolith_zzz
xIzIv has joined #ruby
xIzIv has quit [Client Quit]
mikepack has quit [Remote host closed the connection]
spicymagpie has joined #ruby
rbennacer has quit [Remote host closed the connection]
Areessell has joined #ruby
rbennacer has joined #ruby
mikepack has joined #ruby
C1V0 has joined #ruby
<jeregrine>
does ruby "freeze" constants?
djbkd has quit [Remote host closed the connection]
maletor has joined #ruby
<yxhuvud>
jeregrine: no.
leonshalimov has joined #ruby
<jeregrine>
sigh.
zerolith_zzz is now known as zerolith
<yxhuvud>
they are constant in that they refer to the same object, not that the object can't be changed.
<yxhuvud>
unless you are asking if you can change so that it refer to something totally different. That is possible but you will get a warning (at least for the naive way to do it)
commmmodo has joined #ruby
<jeregrine>
worried more about allocating a new string everytime
<jeregrine>
as always, seems like my memory grows and grows and grows
<jeregrine>
and I am here struggling to figure out why
zerolith has left #ruby [#ruby]
dc has joined #ruby
<yxhuvud>
post your code in a pastebin etc.
booly-yam-5895 has joined #ruby
<yxhuvud>
preferably a minimal variant that still show the issue.
crueber has quit [Quit: Leaving.]
<jeregrine>
ruby 2.2, IF the app is under load it GC works proper and memory goes up and then way down. if the app is under like 1 request per minute, memory grows forever
<jeregrine>
untill I need to reboot everything
<jeregrine>
saw some of it in 2.1.2 more consistent in 2.2
recurrence has quit [Quit: recurrence]
chrisja has quit [Quit: leaving]
<jeregrine>
yxhuvud: pretty big app with lots of deps.
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkulbida has quit [Ping timeout: 276 seconds]
ixti has quit [Ping timeout: 272 seconds]
johnzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crueber has joined #ruby
kl has joined #ruby
kl__ has joined #ruby
GaryOak_ has joined #ruby
decoponio has quit [Quit: Leaving...]
mloveless has quit [Remote host closed the connection]
LouisRoR has quit [Ping timeout: 255 seconds]
brb3 has quit [Quit: ZZZzzz…]
ta has joined #ruby
supergiel has joined #ruby
tmtwd has joined #ruby
<gregf_>
````````````123][2~
<gregf_>
[3~~
Hijiri has quit [Quit: WeeChat 1.0.1]
PaulCape_ has joined #ruby
tjbiddle has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
blackoperat has quit [Ping timeout: 256 seconds]
Lingo_ has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mloveless has joined #ruby
PaulCapestany has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
ta has quit [Ping timeout: 276 seconds]
mikepack has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
joshbamboo1 has joined #ruby
bronson has quit [Remote host closed the connection]
aclearman037 has quit [Quit: I'm out!]
ghr has joined #ruby
tcrypt has joined #ruby
lampd1_ is now known as lampd1
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fantazo has quit [Quit: Verlassend]
zachrab has quit [Remote host closed the connection]
ixti has joined #ruby
WildBamboo-Josh has quit [Ping timeout: 244 seconds]
fgo_zzZz has joined #ruby
Hijiri has joined #ruby
pardusf has quit []
ghr has quit [Ping timeout: 245 seconds]
lektricity has quit [Read error: Connection reset by peer]
bascht has joined #ruby
longfeet has quit [Ping timeout: 245 seconds]
parduse has joined #ruby
danman_ has joined #ruby
fgo_zzZz has quit [Ping timeout: 245 seconds]
josephndenton has quit [Ping timeout: 276 seconds]
danman_ has quit [Client Quit]
allcentury has quit [Ping timeout: 265 seconds]
oleo__ has quit [Quit: Verlassend]
kostitas has joined #ruby
beneggett has quit [Ping timeout: 276 seconds]
dling has joined #ruby
beneggett has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
werelivinginthef has joined #ruby
danman has quit [Ping timeout: 272 seconds]
kenneth__ has joined #ruby
oleo has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Ankhers has quit [Ping timeout: 250 seconds]
zenith__ has quit [Ping timeout: 255 seconds]
kenneth has quit [Ping timeout: 246 seconds]
ruby-lang053 has joined #ruby
dimaursu16 has quit [Ping timeout: 256 seconds]
kalusn has quit [Remote host closed the connection]
dimaursu16 has joined #ruby
cantonic has quit [Quit: cantonic]
skj3gg has quit [Quit: welp, see you later.]
ta has joined #ruby
jfran has joined #ruby
kayloos has joined #ruby
tsnz has quit [Ping timeout: 246 seconds]
zachrab has joined #ruby
josephndenton has joined #ruby
jfran_ has quit [Ping timeout: 252 seconds]
JDiPierro has quit [Remote host closed the connection]
Eiam_ has joined #ruby
Dopagod has quit [Ping timeout: 245 seconds]
try has quit [Ping timeout: 252 seconds]
PaulCapestany has joined #ruby
JDiPierro has joined #ruby
ta has quit [Ping timeout: 276 seconds]
Channel6 has joined #ruby
bascht has quit [Quit: WeeChat 1.1]
mostlybadfly has joined #ruby
ruby-lang053 has quit [Quit: Page closed]
PaulCape_ has quit [Ping timeout: 256 seconds]
JDiPierro has quit [Ping timeout: 240 seconds]
bascht has joined #ruby
codeFiend has joined #ruby
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
longfeet has joined #ruby
tyfighter has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Boohbah has quit [Ping timeout: 250 seconds]
Boohbah has joined #ruby
frek818 has joined #ruby
adriancb has quit [Remote host closed the connection]
Prometheian has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
ponga has joined #ruby
chrishough has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
nuck has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
robbyoconnor has joined #ruby
recurrence has quit [Quit: recurrence]
tjbiddle has quit [Read error: Connection reset by peer]
maximski has quit []
tjbiddle has joined #ruby
Aova has joined #ruby
Dopagod has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
tjbiddle has quit [Read error: Connection reset by peer]
livingstn has quit []
deric_skibotn has quit [Ping timeout: 245 seconds]
eytanfb has joined #ruby
ponga has quit [Ping timeout: 244 seconds]
tjbiddle has joined #ruby
nomadic has quit [Ping timeout: 244 seconds]
ianfleeton has quit []
codeFiend has quit [Ping timeout: 252 seconds]
nomadic has joined #ruby
<jonmorehouse>
anyone know a good way to generate sql statements with ruby, without using an orm?
codeFiend has joined #ruby
bascht has quit [Remote host closed the connection]
pdoherty has quit [Remote host closed the connection]
bascht has joined #ruby
<pipework>
jonmorehouse: I'd suggest the String class.
michael_mbp has quit [Excess Flood]
<pipework>
trololol. Maybe sequel? I don't know, most things are about ORM stuff. But ActiveRecord has some neat stuff too.
kaspertidemann has quit []
bascht has quit [Client Quit]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
it0a has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
<bricker>
jonmorehouse: You can use Arel
kenneth__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bascht has joined #ruby
mechanic has joined #ruby
claw___ has quit [Quit: Konversation terminated!]
<pipework>
ActiveRecord, which is a bit saner to use than arel directly for most things, has some neat support for returning hash representations of the tables you'd return in SQL.
Rollabunna has joined #ruby
bascht has quit [Client Quit]
bronson has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
bashusr has quit [Ping timeout: 252 seconds]
mechanic has left #ruby ["WeeChat 0.4.3"]
codecop has quit [Remote host closed the connection]
<jonmorehouse>
bricker: arel doesn't work without the underlying connection
thiagovsk has quit [Quit: Connection closed for inactivity]
cjim_ has quit [Quit: (null)]
<jonmorehouse>
I'm using event machine and the eventmachine postgres client
<jonmorehouse>
so it doesn't play as nicely :(
<jonmorehouse>
I'm going to try and use active record
bascht has joined #ruby
<pipework>
Aww, why using event machine?
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hmsimha has quit [Ping timeout: 252 seconds]
<pipework>
Why not like jruby and any event reactor that'll work on the JVM?
beneggett has quit [Remote host closed the connection]
beneggett has joined #ruby
beneggett has quit [Client Quit]
duncannz has joined #ruby
deol has joined #ruby
ta_ has joined #ruby
ghr has joined #ruby
Hijiri has quit [Ping timeout: 240 seconds]
blandflakes has quit [Quit: Page closed]
fgo_zzZz has joined #ruby
supergiel has quit [Remote host closed the connection]
DadoCe has joined #ruby
codeFiend has quit [Quit: codeFiend]
mikepack has joined #ruby
leonshalimov has joined #ruby
Guest17454 has quit [Quit: Sto andando via]
<ellisTAA>
can i create a hash whose key is a variable and value is a variable??
jenrzzz has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 276 seconds]
<tmtwd>
ellisTAA: i believe so
<ellisTAA>
hmmm
<pipework>
Have you tried?
<cphrmky>
you can create a hash where the key is whatever the value of a varible is
<tmtwd>
you can do a hash with anything
<tmtwd>
hashes are kind of supposed to replace most data structures
<pipework>
^what
<tmtwd>
so it is super flexible
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doobi-sham-46893 has joined #ruby
<cphrmky>
This will work: foo => :my_key; bar = 'my value'; hsh = { foo => bar }
mrmargolis has quit [Remote host closed the connection]
<tmtwd>
pipework: they can be stacks, queues, lists etc
<pipework>
tmtwd: Arrays are more flexible.
<tmtwd>
pipework: you need both
<ellisTAA>
when i return the has it returns the variable name and not the variable value
<pipework>
Hashes can be inefficient for an array.
<pipework>
tmtwd: Sure.
fgo_zzZz has quit [Ping timeout: 272 seconds]
<pipework>
Hashes and arrays are good datastructures, by which you can make other neat things.
baweaver has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
roshanavand has quit [Ping timeout: 265 seconds]
AlexRussia has quit [Ping timeout: 264 seconds]
pontiki has quit [Quit: heading home!]
<ellisTAA>
can someone tell me what they think lines 19 - 23 are asking for? it looks like i have to have an add method interact with an entries method but that seems weird .. https://gist.github.com/ellisTAA/038c42895bf9a65f9be2
leonshalimov has quit [Ping timeout: 264 seconds]
tjbiddle has quit [Quit: tjbiddle]
<bricker>
ellisTAA: looks like "add" just merges into a hash, and "entries" is the keys for that hash
x77686d has quit [Quit: x77686d]
ta_ has joined #ruby
Rhainur1 has joined #ruby
tyfighter has quit [Quit: tyfighter]
govg has joined #ruby
<ellisTAA>
just merges into a hash? i thought it was accepting a hash as an argument? does merge into a hash mean something else?
Rhainur has quit [Ping timeout: 264 seconds]
<bricker>
ellisTAA: @d.entries is a hash, and you pass another has to add(), and those two hashes get merged together
<pipework>
ellisTAA: It doesn't matter what it actually does, just that you implement the method that adheres to that interface and produces the expected result.
otertore has quit [Read error: Connection reset by peer]
<ellisTAA>
how do they merge? through a method like push or is merge a concept i need to go read about
otertore has joined #ruby
_2_tanty has joined #ruby
<_2_tanty>
ok:(
<ellisTAA>
pipework: what do you mean “interface”
nanoyak has quit [Quit: Computer has gone to sleep.]
scripore has quit [Quit: Leaving]
zachrab has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 245 seconds]
IrishGringo has quit [Ping timeout: 245 seconds]
zachrab has joined #ruby
<pipework>
ellisTAA: The method has a signature. It accepts arguments or it doesn't, however many there may be.
<bricker>
ellisTAA: merge is like push, kinda
zachrab has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
<bricker>
ellisTAA: look at the hash documentation for 'merge'
<ellisTAA>
k
Hijiri has joined #ruby
symbol has quit [Ping timeout: 245 seconds]
ptrrr has quit [Quit: ptrrr]
skj3gg has joined #ruby
frek818 has quit [Quit: frek818]
_2_tanty has quit [Client Quit]
tcrypt has quit [Remote host closed the connection]
ellisTAA has left #ruby [#ruby]
arescorpio has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
bashusr has joined #ruby
Dopagod has quit [Read error: Connection reset by peer]
Synthead has quit [Quit: Leaving]
Dopagod has joined #ruby
frek818 has joined #ruby
CrazyM4n has joined #ruby
icbm has quit [Ping timeout: 240 seconds]
CrazyM4n_ has joined #ruby
kostitas has quit [Quit: Leaving]
ixti has quit [Quit: WeeChat 1.0.1]
riotjones has joined #ruby
Dopagod has quit [Max SendQ exceeded]
baweaver has joined #ruby
Dopagod has joined #ruby
Lexun has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrab has joined #ruby
Lingo_ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
jonmorehouse has quit [Read error: Connection reset by peer]
riotjone_ has quit [Ping timeout: 276 seconds]
jonmorehouse has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
poguez has joined #ruby
CrazyM4n_ has quit [Quit: sleep]
martinium has joined #ruby
ponga has joined #ruby
kirun has quit [Quit: Client exiting]
Drakevr has joined #ruby
jgt2 has quit [Ping timeout: 264 seconds]
nanoyak has joined #ruby
Aova has joined #ruby
chipotle has joined #ruby
AlexRussia has joined #ruby
RDash has quit [Read error: Connection reset by peer]
danjordan has joined #ruby
doobi-sham-46893 has quit [K-Lined]
RDash` has joined #ruby
ki0 has joined #ruby
ponga has quit [Ping timeout: 276 seconds]
josephndenton has joined #ruby
kenneth has joined #ruby
wallerdev has quit [Quit: wallerdev]
xivusr has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Remote host closed the connection]
monod has quit [Quit: Sto andando via]
ki0 has quit [Ping timeout: 244 seconds]
DadoCe has quit [Remote host closed the connection]
DadoCe has joined #ruby
tejas-manohar has joined #ruby
cjim has quit [Quit: (null)]
baroquebobcat has quit [Quit: baroquebobcat]
josephndenton has quit [Ping timeout: 276 seconds]
baroquebobcat has joined #ruby
ellisTAA has joined #ruby
kenneth__ has joined #ruby
danjordan has quit [Quit: danjordan]
DadoCe has quit [Ping timeout: 276 seconds]
sinkensabe has joined #ruby
function90 has quit [Max SendQ exceeded]
zerolith has left #ruby [#ruby]
bklane has quit [Remote host closed the connection]
zerolith has joined #ruby
kenneth has quit [Ping timeout: 264 seconds]
jerius has quit [Ping timeout: 276 seconds]
jerematic has quit [Remote host closed the connection]
bashusr has quit [Ping timeout: 245 seconds]
PenguinMan98 has quit [Ping timeout: 246 seconds]
function90 has joined #ruby
zerolith has quit [Client Quit]
Lexun has quit [Remote host closed the connection]
jgt2 has joined #ruby
bklane has joined #ruby
martinium has quit [Remote host closed the connection]
<tejas-manohar>
ruby getto read stdin in online coding challenges and all
<tejas-manohar>
i just use gets right? and maybe gets.chomp to cut the random \n's
vvivv has quit [Ping timeout: 264 seconds]
<tejas-manohar>
ruby getto read stdin in online coding challenges and all --> to read stdin in ruby for online coding challenges and all
Loaft has joined #ruby
RailWolf has joined #ruby
Azure has quit [Ping timeout: 244 seconds]
jerematic has joined #ruby
Lexun has joined #ruby
ta has joined #ruby
<mozzarella>
what the fuck dude
<mozzarella>
ask a proper question
dojobo has quit [Quit: Leaving]
tcrypt has joined #ruby
ascarter_ has joined #ruby
josephndenton has joined #ruby
spider-mario has quit [Remote host closed the connection]
ascarter_ has quit [Max SendQ exceeded]
<chipotle>
i'm new to programming and ruby. i've worked with drupal but haven't really had to code anything for several years. what IDE/text editor do you use? i was thinking about sublime text or atom, but atom i hear is very slow? and i don't know how to evaluate IDEs...
<tejas-manohar>
ok new question
jonr22 has joined #ruby
function90 has quit [Max SendQ exceeded]
ascarter_ has joined #ruby
<tejas-manohar>
i want to read STDIn in online coding challenges for ruby-- do i use gets? do i always use gets.chomp? im looking at multiline things im reading from STDIN
DadoCe has joined #ruby
xivusr has joined #ruby
ascarter has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 245 seconds]
function90 has joined #ruby
<tejas-manohar>
mozzarella: ^
bitcycle has quit [Quit: WeeChat 1.0.1]
Azure has joined #ruby
tsnz has joined #ruby
bronson has quit [Remote host closed the connection]
martinium has joined #ruby
martinium has quit [Remote host closed the connection]
hefest has quit [Ping timeout: 252 seconds]
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
Hijiri has quit [Ping timeout: 245 seconds]
defrang has quit [Quit: defrang]
ghr has joined #ruby
sinkensabe has quit [Remote host closed the connection]