<csmrfx>
correct results if the divisor is positive
``10`` has quit [Ping timeout: 245 seconds]
pjb3 has joined #ruby
jamjam has quit [Ping timeout: 276 seconds]
<csmrfx>
uh, dividend is positive
TheFuzzball has quit [Read error: Operation timed out]
* csmrfx
got the tests to pass 8)
<csmrfx>
gn!
manizzle has quit [Ping timeout: 240 seconds]
manizzle has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
tvw has joined #ruby
TheFuzzball has joined #ruby
esya has quit [Quit: esya]
F1skr has joined #ruby
dakine has quit [Ping timeout: 264 seconds]
<darkwing_duck>
... does something similar to this exist: `@errors =[] ; raise NoMethodError rescue {|e| @errors << e}` where @errors wouldn't be empty after execution?
rasbonics has quit [Quit: rasbonics]
sepp2k has quit [Remote host closed the connection]
<heftig>
@errors =[] ; begin raise NoMethodError; rescue => e; @errors << e; end
<heftig>
works fine
aetcore_ has joined #ruby
danshultz has quit [Ping timeout: 255 seconds]
mhag has joined #ruby
aetcore_ has quit [Client Quit]
mercwithamouth has joined #ruby
aetcore has quit [Ping timeout: 244 seconds]
Jaxel has quit [Quit: Leaving]
GoGoGarrett has joined #ruby
<darkwing_duck>
heftig: yeah =\ but nothing inline-ish?
mhag has quit [Client Quit]
aetcore has joined #ruby
banisterfiend has quit [Ping timeout: 244 seconds]
mklappstuhl has quit [Ping timeout: 244 seconds]
chrisja has quit [Quit: leaving]
justinmcp has quit [Remote host closed the connection]
_alejandro has joined #ruby
justinmcp has joined #ruby
kbeddingfield has joined #ruby
Vert has quit [Read error: Connection reset by peer]
anildigital_work has joined #ruby
RantriX has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
dkannan has joined #ruby
RantriX has quit [Client Quit]
kapowaz has joined #ruby
RantriX has joined #ruby
justinmcp has quit [Ping timeout: 268 seconds]
ephemerian has quit [Quit: Leaving.]
RantriX has quit [Remote host closed the connection]
F1skr has joined #ruby
ffranz has quit [Quit: Leaving]
cousine has quit [Remote host closed the connection]
tds has quit [Quit: tds]
dakine has joined #ruby
_alejandro has quit [Remote host closed the connection]
u89 has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
RantriX has joined #ruby
butblack has quit [Quit: butblack]
yshh has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
pac1 has joined #ruby
aantix has joined #ruby
pkondzior_ has joined #ruby
DrShoggoth has joined #ruby
skcin7 has quit []
v0n has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
kil0byte has joined #ruby
justinmcp has joined #ruby
jonan_ has joined #ruby
butblack has joined #ruby
skcin7 has joined #ruby
guns has quit [Ping timeout: 260 seconds]
aldodelgado has joined #ruby
redbull has joined #ruby
slainer68 has quit [Remote host closed the connection]
butblack has quit [Client Quit]
joeycarmello has joined #ruby
butblack has joined #ruby
jonan has quit [Ping timeout: 256 seconds]
jonan_ is now known as jonan
hackerdude has quit [Remote host closed the connection]
`brendan has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jcz is now known as gay
d2dchat has joined #ruby
danshultz has joined #ruby
v0n has quit [Quit: Leaving]
gay is now known as Guest51342
sheerun has quit [Quit: sheerun]
Guest51342 is now known as kandinski
justinmcp has quit [Remote host closed the connection]
<darkwing_duck>
bricker: I misread your question... yeah, they're the same.
joeycarmello has quit [Remote host closed the connection]
arubin_ is now known as razrubin
``10`` has quit [Ping timeout: 245 seconds]
<bricker>
darkwing_duck: thanks
rakl has joined #ruby
justinmc_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 252 seconds]
rakl has quit [Client Quit]
``10`` has joined #ruby
justinmcp has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<``10``>
darkwing_duck: that's not quite right; ruby has some similar semantics to, e.g., perl in this regard
<``10``>
return if true -> if true, return
net_mask has quit [Quit: net_mask]
manizzle has joined #ruby
mercwithamouth has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<``10``>
in some other languages, if...then...[else...] is an expression that evaluates to the result of then... or else... depending on boolean truth of the conditional clause
monkegjinni has joined #ruby
<``10``>
but in ruby its semantics are more like c; if... is just a control operator
jgarvey has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
justinmcp has quit [Ping timeout: 244 seconds]
jipiboily has joined #ruby
razrubin is now known as arubin-
jipiboily has quit [Read error: Connection reset by peer]
Araxia has quit [Ping timeout: 265 seconds]
icole has quit [Remote host closed the connection]
pac1 has quit [Quit: I got it one line of code at a time]
voodoofish430 has quit [Quit: Leaving.]
jipiboily1 has joined #ruby
jipiboily1 has left #ruby [#ruby]
yeban has joined #ruby
justinmcp has joined #ruby
Monie has quit [Quit: Quit]
niklasb has quit [Ping timeout: 245 seconds]
hbpoison has quit [Ping timeout: 268 seconds]
BSaboia__ has quit [Quit: Fui embora]
BSaboia has joined #ruby
medik has quit [Quit: Leaving]
wallerdev has joined #ruby
rich__ has quit [Ping timeout: 248 seconds]
manizzle has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
Trioke has quit [Ping timeout: 244 seconds]
ewokchewy has quit [Quit: Leaving]
``10`` has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
joeycarmello has joined #ruby
ejholmes has quit [Quit: ejholmes]
BoomCow has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 265 seconds]
<shevy>
eeks
<shevy>
HE USED ERB TAGS!
<shevy>
I told you guys they are evil
<shevy>
<% 42 %>
Chryson has quit [Quit: Leaving]
GoGoGarrett has quit [Remote host closed the connection]
chrxn has quit [Remote host closed the connection]
<voodoofish>
do yes, I have something that inherits from activerecord::base and I tried setting up something like attr_accessible :channel, :id in the class
<voodoofish>
but yeah...didn't work so well
<voodoofish>
no method found...
siyusong has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 264 seconds]
ZubKonst has quit [Read error: Connection reset by peer]
<waxjar>
there's a difference between class methods and instance methods. class methods you call on a class (Customer.method) and instance methods you call on the instance a class (x = Y.new; x.method)
<waxjar>
the class method new (automatically available, because every object is a child of BasicObject) calls the instance method initialise (also automatically)
<waxjar>
[08:19:02] <waxjar> the class method new (automatically available, because every object is a child of BasicObject) calls the instance method initialise (also automatically)
<tintin>
Where is BasicObject.new method?
<tintin>
Which function/method is called after Customer.new?
<waxjar>
it's not very important if you're just starting out, #initialize gets called when you make a new instance of a class
ryanlecompte has quit [Remote host closed the connection]
SirRamon_ has quit [Remote host closed the connection]
artem has quit [Remote host closed the connection]
<waxjar>
i don't know
artnez has joined #ruby
tintin has quit [Quit: leaving]
<waxjar>
:s
caleb_io has joined #ruby
k610 has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
answer_42 has quit [Ping timeout: 276 seconds]
swex has joined #ruby
gmci has joined #ruby
senny has joined #ruby
rakl has quit [Quit: gone]
rodayo_ has joined #ruby
<rodayo_>
How do you replace a space in a string with "\ " (a slash followed by a space) ?
k610 has quit [Ping timeout: 256 seconds]
timonv has joined #ruby
k610 has joined #ruby
arturaz has joined #ruby
wchun has quit [Ping timeout: 268 seconds]
ananthakumaran1 has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
k610 has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Ping timeout: 248 seconds]
brianpWins has joined #ruby
k610 has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
jozefk has joined #ruby
kil0byte has quit [Remote host closed the connection]
slainer68 has joined #ruby
zigomir has joined #ruby
d2dchat has quit [Remote host closed the connection]
wallerdev has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
rich__ has quit [Ping timeout: 276 seconds]
wallerdev has quit [Client Quit]
gmci has joined #ruby
Ry_ has joined #ruby
vlad_starkov has joined #ruby
yshh has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 260 seconds]
yshh has joined #ruby
Morkel has joined #ruby
sn0wb1rd_ has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Morkel has quit [Client Quit]
sn0wb1rd has quit [Ping timeout: 252 seconds]
sn0wb1rd_ is now known as sn0wb1rd
wchun has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Morkel has joined #ruby
gmci has joined #ruby
gmci has quit [Client Quit]
gmci has joined #ruby
anderse has joined #ruby
Ry_ has quit [Ping timeout: 240 seconds]
gmci has quit [Client Quit]
emergion has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby
eldariof has joined #ruby
<burgestrand>
rodayo_: "hello world cool".gsub(" ", '\\ ')
qwerxy has joined #ruby
workmad3 has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
fms has joined #ruby
jgrevich has quit [Quit: jgrevich]
filipe_ has joined #ruby
gmci has joined #ruby
timmillwood has joined #ruby
anderse has quit [Quit: anderse]
xorigin has joined #ruby
rodayo_ has quit [Quit: Page closed]
xpen has quit [Remote host closed the connection]
artnez has quit [Quit: artnez]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
xpen has joined #ruby
xpen has quit [Remote host closed the connection]
artnez has joined #ruby
xpen has joined #ruby
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
dekroning has joined #ruby
k610 has joined #ruby
vlad_sta_ has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
vectorshelve has joined #ruby
<vectorshelve>
is there a way I can improve this session_controller#create https://gist.github.com/4023403 the code works but I am afraid I have too many repetative redirects and common lines of code.
artnez has quit [Client Quit]
gmci has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
xpen has quit [Ping timeout: 244 seconds]
gmci has quit [Client Quit]
workmad3 has quit [Ping timeout: 260 seconds]
hotovson has joined #ruby
icole has quit [Read error: Connection reset by peer]
gmci has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
fms has quit [Quit: Lost terminal]
hoelzro|away is now known as hoelzro
awestroke has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Remote host closed the connection]
yshh has quit [Ping timeout: 246 seconds]
mneorr has joined #ruby
hamed_r has joined #ruby
kil0byte has joined #ruby
piotr_ has joined #ruby
yshh has joined #ruby
bradhe has quit [Remote host closed the connection]
zigomir_ has joined #ruby
xpen has joined #ruby
casheew has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
Xeago has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
savage- has quit [Quit: savage-]
nemesit has joined #ruby
JonnieCache has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby
Experium has quit [Quit: Ex-Chat]
arietis has joined #ruby
Elhu has joined #ruby
ZubKonst has quit [Ping timeout: 240 seconds]
AndChat| has quit [Ping timeout: 260 seconds]
casheew has joined #ruby
qwerxy has quit [Quit: offski]
kyktommy has quit [Quit: kyktommy]
gmci has quit [Quit: Computer has gone to sleep.]
edwardj has joined #ruby
elico has joined #ruby
gmci has joined #ruby
gmci has quit [Client Quit]
maxer has joined #ruby
ZubKonst has joined #ruby
gmci has joined #ruby
gmci has quit [Client Quit]
gmci has joined #ruby
jimeh has joined #ruby
elico has quit [Client Quit]
gmci has quit [Client Quit]
gmci has joined #ruby
anderse has joined #ruby
d3vic3 has quit [Quit: leaving]
ryanf has quit [Ping timeout: 248 seconds]
ij has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Erfankam has joined #ruby
vlad_sta_ has quit [Ping timeout: 260 seconds]
Araxia has quit [Quit: Araxia]
casheew has quit [Read error: Connection reset by peer]
elaptics`away is now known as elaptics
casheew has joined #ruby
artOfWar has quit [Ping timeout: 256 seconds]
kil0byte has quit [Ping timeout: 255 seconds]
adeponte has quit [Remote host closed the connection]
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
casheew has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
dogweather has joined #ruby
colinbm has joined #ruby
bradhe has joined #ruby
mmitchel_ has joined #ruby
mklappstuhl has joined #ruby
daniel_- has joined #ruby
moted has quit [Ping timeout: 260 seconds]
casheew has joined #ruby
piotr_ has quit [Ping timeout: 240 seconds]
mmitchell has quit [Ping timeout: 256 seconds]
xpen has quit [Remote host closed the connection]
gmci has quit [Quit: Computer has gone to sleep.]
xpen has joined #ruby
elentras has joined #ruby
pyx has quit [Quit: Leaving]
casheew has quit [Read error: Connection reset by peer]
<elentras>
but i'm getting 2 time the result look strange, I make a mistake
<vectorshelve>
I created a migration for creating a new model.. it worked.. but when I try checking in the console.. it says uninitialized constant
Zai00 has quit [Quit: Zai00]
Banistergalaxy has quit [Ping timeout: 256 seconds]
<gener1c>
"a234 23".scan(/(?<![abc])\d+$/)
gmci has quit [Quit: Computer has gone to sleep.]
<elentras>
yes you're right
<gener1c>
no its wrong
<gener1c>
swap them around
<gener1c>
"23 a234".scan(/(?<![abc])\d+$/)
<gener1c>
:)
tehlulz has joined #ruby
fir_ed has quit [Ping timeout: 264 seconds]
Edward__ has quit [Ping timeout: 264 seconds]
tehlulz has quit [Client Quit]
dougiebuckets has joined #ruby
gmci has joined #ruby
<elentras>
yes that's better
<workmad3>
gener1c: /\b?<![abc])\d+\b/
AlbireoX has quit [Ping timeout: 245 seconds]
krz has quit [Quit: krz]
kjellski has joined #ruby
<gener1c>
what is that \b i read alot about it but i still cant figure it out
horofox has joined #ruby
<workmad3>
gener1c: it'll basically match the non-character between a whitespace character and a non-whitespace character
fermion has joined #ruby
<workmad3>
gener1c: so if you surround your regex with \b \b then you'll match whole words (as in whitespace delimited stuff) without matching the whitespace
<gener1c>
there is such a thing?!
<workmad3>
gener1c: it basically anchors your string, similarly to ^ and $ :)
cousine has joined #ruby
<gener1c>
so what would be a non-character?
JustinCampbell has joined #ruby
<elentras>
non-printable ?
<workmad3>
gener1c: well, think about ^, what does that match?
<gener1c>
the beginning of a line
<elentras>
begin with
<workmad3>
gener1c: which isn't a character
<gener1c>
so there is a non character that marks the beginning and ending of a word
senny has joined #ruby
<workmad3>
it's the bit 'between' an end of line character '\n' and the next character
<workmad3>
it's not actually a character
<workmad3>
it's not represented in the byte-stream in any appreciable way, but you can still match on it
<gener1c>
so \b is the nonechar between . and \s
awestroke has quit [Remote host closed the connection]
<workmad3>
essentially :)
<gener1c>
nice!
<workmad3>
although not '.', because that matches whitespace too
<gener1c>
ah then
<gener1c>
\w
<workmad3>
but it matches between the characters rather than on a character
danshultz has joined #ruby
<workmad3>
so you don't capture the whitespace in your match
bitZero__ has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
kjellski has quit [Quit: This computer has gone to sleep]
iamjarvo has joined #ruby
<waxjar>
cheers workmad3, i didn't know that.
<workmad3>
and also don't need to work out wth to do when you surround your regex with whitespace and then should have two matches in a row (but don't because the single ' ' can only be matched once)
bradhe has quit [Ping timeout: 255 seconds]
<gener1c>
workmad3: it doesnt work for <>
emergion has quit [Quit: Computer has gone to sleep.]
<workmad3>
this worked with your example string for me (my first attempt had unbalanced () because I was stupid :) ) /\b(?<![abc])\d+\b/
awestroke has joined #ruby
<gener1c>
" <> 3 ".scan(/\b\<>\b/)
<gener1c>
:/
hamed_r has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
<gener1c>
why is that?
Zai00 has quit [Client Quit]
<workmad3>
gener1c: the docs say '\b' matches a word boundary... so I'm guessing it's more specific than just whitespace/nonwhitespace
edwardj has quit [Remote host closed the connection]
margle has joined #ruby
hsbt is now known as hsbt_away
geekbri has joined #ruby
bbttxu has quit [Quit: bbttxu]
<burgestrand>
The standard is not to document at all :(
casheew has joined #ruby
* Hanmac
feels that burgestrand means me ...
<Mon_Ouie>
RDoc and YARD are the two most common
lxsameer has quit [Ping timeout: 252 seconds]
<burgestrand>
lxsameer: YARD, rdoc, tomdoc are the three major ones I, two first being most common.
_bart has joined #ruby
hsbt_away is now known as hsbt
Cultofmetatron has joined #ruby
hsbt is now known as hsbt_away
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
hsbt_away is now known as hsbt
MrSamuel has quit [Quit: MrSamuel]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
dzhulk has quit [Quit: Leaving.]
Araxia has joined #ruby
zodiak has quit [Read error: No route to host]
<lxsameer>
what do you suggest for async network programming ?
jonathanwallace has joined #ruby
zodiak has joined #ruby
Ry_ has joined #ruby
werdnativ has quit [Quit: werdnativ]
hsbt is now known as hsbt_away
<burgestrand>
lxsameer: whiskey.
hsbt_away is now known as hsbt
<burgestrand>
… actually whiskey taste like piss, maybe rum?
hsbt is now known as hsbt_away
<lxsameer>
burgestrand, which one at last?
* erichmenge
doesn't know what kind of whiskey burgestrand has been drinking...
hsbt_away is now known as hsbt
hackerdude has joined #ruby
<burgestrand>
lxsameer: eventmachine is something written for async IO in general, but it has a few major issues: bad documentation, callback hell, and makes a lot of gems using IO unusable… I’m sure I’ve missed something.
_bart has quit [Quit: _bart]
samphippen has quit [Quit: Computer has gone to sleep.]
richardjapenga has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
MrSamuel has joined #ruby
<burgestrand>
lxsameer: you could still check it out, and while you’re at it have a look at celluloid IO as well.
mercwithamouth has joined #ruby
csaunders has joined #ruby
baroquebobcat has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
casheew has quit [Read error: Connection reset by peer]
<lxsameer>
burgestrand, i got mix up, what's your suggestion ?
BadProphet has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
linoj has joined #ruby
<burgestrand>
lxsameer: eventmachine, celluloid IO, or avoid it.
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<Mon_Ouie>
Depending on what you're going to do, just IO.select might be all you need
hsbt is now known as hsbt_away
hiroyuki has quit [Read error: No route to host]
hsbt_away is now known as hsbt
<lxsameer>
Mon_Ouie, i just want to call a callback function when a data racieved on e connection
chussenot has joined #ruby
casheew has joined #ruby
starship has joined #ruby
starship is now known as kkh
hiroyuki has joined #ruby
samphippen has joined #ruby
Slivka has joined #ruby
ffckd has joined #ruby
ffckd has left #ruby [#ruby]
casheew has quit [Read error: Connection reset by peer]
CamonZ has joined #ruby
v0n has joined #ruby
lxsameer has quit [Quit: Leaving]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
cHarNe2 has left #ruby [#ruby]
lxsameer has joined #ruby
casheew has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
chussenot_ has joined #ruby
joeycarmello has joined #ruby
philcrissman has joined #ruby
mmitchel_ has joined #ruby
_bart has joined #ruby
mmitchell has quit [Read error: Operation timed out]
bbttxu has joined #ruby
chussenot has quit [Ping timeout: 244 seconds]
chussenot_ is now known as chussenot
JustinCampbell has joined #ruby
hsbt has quit [Ping timeout: 260 seconds]
danshultz has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
SeySayux has joined #ruby
butblack has joined #ruby
Villadelfia has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Villadelfia has quit [Remote host closed the connection]
SeySayux has quit [Remote host closed the connection]
fantazo has quit [Remote host closed the connection]
SeySayux has joined #ruby
thinkdevcode has joined #ruby
crackfu has joined #ruby
SeySayux has quit [Remote host closed the connection]
horofox has joined #ruby
BrianJ has joined #ruby
SeySayux has joined #ruby
GoGoGarrett has joined #ruby
jlwestsr has quit [Quit: Ex-Chat]
Villadelfia has joined #ruby
rippa has joined #ruby
windowsrefund has left #ruby ["WeeChat 0.3.8"]
casheew has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
ltsstar has quit [Quit: ltsstar]
ltsstar has joined #ruby
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<Framedragger>
davidcelis: thing is, i've vitually zero exposure to ruby, i simply want to use the library for recommending; the actual backend is in python.
<Framedragger>
do you think it'd be difficult to make it work without using an ORM
<davidcelis>
well
<Framedragger>
i'm trying to tinker with things myself, but since you're here, it doesn't hurt to ask i suppose
Erfankam has quit [Remote host closed the connection]
<davidcelis>
the ORM is only really required if you use the helper methods that return actual records
Erfankam has joined #ruby
<davidcelis>
if you use the helper methods that return IDs (similar_rater_ids, recommended_*_ids, etc.) the ORM isn't touched
d2dchat has joined #ruby
hackerdude has joined #ruby
Erfankam has quit [Read error: Connection reset by peer]
<Framedragger>
aha, yes. but it fails to initialize if i just try it on sinatra + delayed_job.
<Framedragger>
aha, that'd work for me
<davidcelis>
all that recommendable really needs to function is operating on a class that responds to `id` and, if you want it to deal with actual records, an ORM that maps to a database
<Framedragger>
i'm just too shy to try to change things in the lib yet
alex__c2022 has joined #ruby
<davidcelis>
what failed on sinatra + delayed job?
nga4 has quit [Ping timeout: 246 seconds]
keiri has quit [Quit: keiri]
<Framedragger>
i suppose i needn't even specify 'recommends :some_items' , then (if i change the lib so that it doesn't check)? because that's where it fails at initialization.
<Framedragger>
it basically says that the 'recommends' method is undefined, which makes sense, because the init happens via one of the orm initializers i suppose
<Framedragger>
however
<davidcelis>
huh
<Framedragger>
if i do
<davidcelis>
ah, yeah
<Framedragger>
class User
<Framedragger>
extend Recommendable::Rater
<Framedragger>
attr_accessor :id
<Framedragger>
extend Recommendable::Ratable
<Framedragger>
end
<Framedragger>
same thing
Monie has joined #ruby
<Framedragger>
(tried 'extend' and 'include', but i guess it's not that simple and i shouldn't expect to get away that easily)
<davidcelis>
right
maesbn_ has quit [Remote host closed the connection]
<davidcelis>
maybe i should include a manual way to do all of this in the README for people who want to try not using an ORM, and mention the caveats and that it's unsupported
<Framedragger>
davidcelis: wow, that..worked. i feel stupid now. :)
<davidcelis>
you'll also have to include the Ratable modules in the classes you're trying to recommend, mind you
hoelzro is now known as hoelzro|away
monkegji_ has quit [Remote host closed the connection]
bairui has quit [Ping timeout: 248 seconds]
<Framedragger>
hm, i suppose there shouldn't be snags henceforth. i'll just pull info direct from redis when i want stuff, and will use a simple sinatra web method to update the system with new likes.
SCommette has joined #ruby
<Framedragger>
aha, yes, makes sense!
J-_-L has quit [Ping timeout: 240 seconds]
drknus has joined #ruby
<davidcelis>
Framedragger: doing something like defining `recommendable' on Object but obviously that pollutes everything; requiring the ORM is one way to avoid doing that
<davidcelis>
but there's always a way to do what you want manually via these mixins
<Framedragger>
if i end up with not-totally-ugly-code, i could share it, but since i've got virtually zero knowledge of ruby, it prob won't be that useful..
<Framedragger>
yea.
<davidcelis>
i'll try writing a section to include on the README
<Framedragger>
well, thanks for the extrafast help David. :)
<davidcelis>
sure thing! hope you don't run into any other snags but, if you do, feel free to shoot me a message on github
arturaz has quit [Remote host closed the connection]
<davidcelis>
gotta head into the office now, good luck
davidcelis has quit [Quit: K-Lined.]
freeayu__ has quit [Remote host closed the connection]
<Framedragger>
okay, i just might! :] will try not to bug you too much and learn on the way.. thanks again
bradhe has quit [Ping timeout: 252 seconds]
rjsamson has joined #ruby
deo has joined #ruby
tasaras has joined #ruby
deo has quit [Read error: Connection reset by peer]
morf has quit [Quit: eof]
deo has joined #ruby
deo has quit [Read error: Connection reset by peer]
Slivka has quit [Read error: Connection reset by peer]
richardjapenga has quit [Remote host closed the connection]
geggam has joined #ruby
samuel02 has quit [Remote host closed the connection]
dpatel has joined #ruby
d3vic3 has quit [Ping timeout: 248 seconds]
Slivka has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
theRoUS has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 240 seconds]
iori has quit [Remote host closed the connection]
d3vic3 has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
nanderoo has quit [Ping timeout: 240 seconds]
eqbaleki has joined #ruby
joshman_ has joined #ruby
<gener1c>
how stupid would it be to make a recursive solution with nokogiri?
pu22l3r_ has joined #ruby
<shevy>
it's XML
<shevy>
so it will be painful no matter what
<eqbaleki>
Hi Folks, is there any chance to find a tool to generate init.d scripts for my ruby processes ?
dmiller has quit [Remote host closed the connection]
tasaras has quit [Quit: Leaving]
<eqbaleki>
I have some ruby processes already and my production server use init.d for startup processes , now do I need to do that manually or is there any tools to manage that
centipedefarmer has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
<JustinCampbell>
eqbaleki: foreman can export to a lot of services but i dont think init.d
<eqbaleki>
exactly i'm already using foreman, but i need to export it with init.d
pu22l3r has quit [Ping timeout: 260 seconds]
BrianJ has quit [Quit: BrianJ]
<eqbaleki>
foreman can export to inittabs and upstarts
rasbonics has joined #ruby
<JustinCampbell>
well write one and submit a pull request ;)
<eqbaleki>
but I have my server in production mode and it is not a good idea to risk it by changing the default and start using upstart , is there any other tool to help achieving that
minijupe has joined #ruby
jerius has joined #ruby
dakine has joined #ruby
<eqbaleki>
mm that could be a good ide , but as u can c , i'm not an expert myself to do such a thing :(
nanderoo has joined #ruby
bradhe has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
pu22l3r_ has quit [Remote host closed the connection]
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
thecreators has joined #ruby
bradhe has quit [Remote host closed the connection]
Mkman has joined #ruby
jblack has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Mkman has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
jerius has quit [Quit: Computer has gone to sleep.]
tatsuya_o has joined #ruby
omg765 has joined #ruby
omg765 has quit [Client Quit]
axl_ has joined #ruby
arturaz has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
jgrevich has joined #ruby
joeycarmello has quit [Remote host closed the connection]
Erfankam has joined #ruby
jerius has joined #ruby
bradhe has joined #ruby
khakimov has joined #ruby
ryanlecompte has joined #ruby
samphippen has joined #ruby
Trioke has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
AlbireoX has joined #ruby
Mkman has quit [Ping timeout: 260 seconds]
Mkman has joined #ruby
adac has quit [Ping timeout: 268 seconds]
banisterfiend has quit [Ping timeout: 244 seconds]
eqbaleki has quit [Quit: Page closed]
colinbm has quit [Quit: colinbm]
whitedawg has joined #ruby
filipe has quit [Quit: Leaving]
nga4 has joined #ruby
vlad_starkov has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
r0f0 has joined #ruby
mahmoudimus has joined #ruby
mahmoudimus has quit [Client Quit]
brycebudd has joined #ruby
davidcelis has joined #ruby
kenichi-away is now known as kenichi
osvico has quit [Ping timeout: 260 seconds]
clj_newb has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
x82_nicole has joined #ruby
dmiller has joined #ruby
havenn has joined #ruby
jlogsdon has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
shiin has joined #ruby
quest88 has quit [Quit: quest88]
fms has joined #ruby
fff has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
u89 has quit [Remote host closed the connection]
dnyy has quit [Read error: Connection reset by peer]
_dnyy has joined #ruby
gmci has joined #ruby
whitedawg has quit [Quit: Leaving.]
jblack has quit [Read error: Operation timed out]
siyusong has joined #ruby
lkba has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
neiko has joined #ruby
AlbireoX has quit [Remote host closed the connection]
jonathanwallace has quit [Remote host closed the connection]
<fff>
hi
vlad_starkov has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
SCommette has quit [Quit: SCommette]
fff has left #ruby [#ruby]
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
xorigin has quit [Quit: leaving]
jblack has joined #ruby
joeycarmello has joined #ruby
jerius has joined #ruby
_dnyy is now known as dnyy
MrSamuel has quit [Quit: MrSamuel]
average_drifter has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Ping timeout: 240 seconds]
Iszak has quit [Quit: User has gone to sleep.]
sn0wb1rd has quit [Quit: sn0wb1rd]
Aiur has joined #ruby
brycebudd has quit [Ping timeout: 252 seconds]
Araxia has joined #ruby
blazes816 has joined #ruby
BrianJ has joined #ruby
nateberkopec has joined #ruby
<centipedefarmer>
hello, I am having a problem getting the google-api-client gem to load up in my non-Bundler-using Rails 2.3 app. It seems no matter what I do, when i try to run a rake task or script/console or script/server, it bombs out saying that the gem is missing, when it is, emphatically, installed
BoomCow has joined #ruby
fyolnish has quit [Remote host closed the connection]
<centipedefarmer>
in environment.rb i have config.gem 'google-api-client', :version => '~> 0.4.3', :lib => 'google/api_client'
locriani has joined #ruby
<centipedefarmer>
if i start up IRB and enter "require 'google/api_client'" it works and I can use it
ilyam has quit [Quit: ilyam]
<centipedefarmer>
anyone have any ideas, maybe run into this before?
fyolnish has joined #ruby
ilyam has joined #ruby
mneorr has joined #ruby
JJMalina has joined #ruby
senny has quit [Remote host closed the connection]
mikestratton has joined #ruby
virtuose has quit [Quit: Leaving]
adeponte has joined #ruby
mikestratton has quit [Quit: Page closed]
nateberkopec has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
Morkel has joined #ruby
nitti has quit [Ping timeout: 248 seconds]
JJMalina has quit [Client Quit]
nateberkopec has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
zigomir has quit [Ping timeout: 265 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
madhatter has quit [Ping timeout: 276 seconds]
nitti has joined #ruby
<centipedefarmer>
i've also tried it without the :lib option, nothing change
madhatter has joined #ruby
Naeblis has joined #ruby
sn0wb1rd has joined #ruby
Naeblis has left #ruby ["Leaving"]
erichmenge has joined #ruby
SCommette has joined #ruby
yxhuvud has joined #ruby
nga4 has quit []
u89 has joined #ruby
nga4 has joined #ruby
punkrawkR has joined #ruby
jonathanwallace has joined #ruby
maletor has joined #ruby
yxhuvud has quit [Client Quit]
thinkdevcode has joined #ruby
jerius has joined #ruby
Erfankam has quit [Ping timeout: 255 seconds]
JonnieCache has quit [Ping timeout: 255 seconds]
_alejandro has quit [Read error: Connection reset by peer]
_alejandro has joined #ruby
jrajav has quit []
yxhuvud has joined #ruby
mneorr has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 268 seconds]
ewag has quit [Ping timeout: 268 seconds]
mneorr has joined #ruby
<elico>
centipedefarmer: did you restarted the server?
srji has joined #ruby
<centipedefarmer>
um
<centipedefarmer>
assuming that the problem prevents the server from starting in the first place
<centipedefarmer>
i'm just going to say yes
<srji>
hey guys, i'm confused, a ruby developer says me, method names like "def get_user_config" are not ruby like.
<srji>
is this correct?
thinkdevcode has quit [Remote host closed the connection]
<Gate>
srji: that's a loaded question, but I would more expect to see "def user_config" or "attr_accessor user_config"
mneorr has quit [Remote host closed the connection]
<Gate>
srji: you won't be burned at the stake for using names like "get_user_config" though (by most of us ;) )
<srji>
i think method names should beginn with a verb
jerius has quit [Quit: Computer has gone to sleep.]
<Gate>
srji: not usually in ruby
<srji>
so i know it from java
<srji>
ok
mneorr has joined #ruby
sepp2k1 has joined #ruby
<Gate>
srji: a getter/setter pair look like "user_config" and "user_config="
samphippen has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 244 seconds]
ephemerian has left #ruby [#ruby]
<srji>
what does the "=" in the method name means?
skum has quit [Quit: Leaving...]
<epochwolf>
srji: it's part of the method's name.
<epochwolf>
So object.field = "something" is doing object.send(:field=, "something")
<Gate>
srji: you can define methods like "def user_config=(other_config)" and it is a setter that can be used like this: "foo.user_config = my_config"
<Gate>
srji: so you can use = instead of "set_user_config" like you would in java, it makes things shorter and easier to read (IMO)
<srji>
ok
mrsolo has joined #ruby
maesbn has joined #ruby
cdt has quit [Ping timeout: 244 seconds]
siyusong has quit [Quit: Computer has gone to sleep.]
apok has joined #ruby
clj_newb has quit [Ping timeout: 248 seconds]
yshh has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Read error: Connection reset by peer]
whitedawg has joined #ruby
qwerxy has quit [Quit: offski]
bbttxu has quit [Quit: bbttxu]
rjsamson has quit [Remote host closed the connection]
Hanmac has joined #ruby
chussenot has quit [Quit: chussenot]
osvico has joined #ruby
rjsamson has joined #ruby
amacgregor_osx has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
rafter has quit [Remote host closed the connection]
timmillwood has quit [Ping timeout: 244 seconds]
<mr-rich>
Can I declare method aliases before the actual method?
mneorr has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
artOfWar has joined #ruby
mercwithamouth has quit [Quit: leaving]
<Gate>
mr-rich: no
philcrissman has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
<mr-rich>
Gate: k ... thanks. Things will just have to be a little out of order ... :(
rakl has joined #ruby
<Gate>
yeah, I know the feeling
Serial_Killer_C has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
rjsamson has quit [Ping timeout: 252 seconds]
<csmrfx>
maybe ruby needs hoisting?
<csmrfx>
8)
Tombar has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
ilyam has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
ilyam has joined #ruby
Elhu has joined #ruby
slainer68 has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
Xeago has joined #ruby
tatsuya_o has quit [Ping timeout: 246 seconds]
alvaro_o has joined #ruby
krant has joined #ruby
daniel_- has joined #ruby
jerius has joined #ruby
Slivka has joined #ruby
g-ram has joined #ruby
g0bl1n has quit [Quit: Ex-Chat]
<csmrfx>
mr-rich: maybe you can declare a dummy method
bbttxu has joined #ruby
<mr-rich>
csmrfx: aliases are fine ... keeping it simple.
<csmrfx>
I mean.
<csmrfx>
Declare a dummy method.
<csmrfx>
Declare alias.
wookiehangover has quit [Ping timeout: 252 seconds]
<csmrfx>
and once you are ready, shadow the dummy with the actual method (of the same name)
ffranz has quit [Quit: Leaving]
dogweather has joined #ruby
chussenot has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
ffranz has joined #ruby
samphippen has joined #ruby
kil0byte has quit [Remote host closed the connection]
wookiehangover has joined #ruby
vlad_starkov has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
tommyvyo_ has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
mityaz has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
Tuxist has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
bbttxu has quit [Quit: bbttxu]
adeponte has joined #ruby
bismuth has joined #ruby
mneorr has joined #ruby
adeponte has quit [Remote host closed the connection]
dzhulk has joined #ruby
keyvan has quit [Remote host closed the connection]
Tombar has quit [Remote host closed the connection]
Tombar has joined #ruby
bismuth has quit [Client Quit]
andrew12_ has joined #ruby
<andrew12_>
if someone installs a gem that is an application that creates log files, where is the best place to store the log file?
jerius has quit [Quit: Computer has gone to sleep.]
<kaleido>
andrew12_: the directory where you store all of your other logs?
<andrew12_>
kaleido: you mean like /var/log? what if the user isn't root and doesn't have access to that?
jrist-afk is now known as jrist
<kaleido>
then the choice becomes, "somewhere in the directory sturcture the user has access to"
<andrew12_>
heh.. i was wondering if there is any specific reccomended location
<kaleido>
i wouldnt think so
<kaleido>
if youre limited to writing to /home/username
<kaleido>
it comes down to preference at that point
<Mon_Ouie>
csmrfx: The dummy method trick won't work
Erfankam has joined #ruby
<Mon_Ouie>
alias foo bar isn't def foo(*args, &b); bar(*args, &b); end — it takes the same implementation as foo
Rizzle has joined #ruby
snuglepuss has joined #ruby
adeponte has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
<Mon_Ouie>
If you change foo later, bar won't be affected by the change
<csmrfx>
alas
<Gate>
right, that's why you alias super methods before overriding them
gener1c has quit [Ping timeout: 248 seconds]
Slivka has joined #ruby
<Gate>
so you have access to the original
<Mon_Ouie>
Just like when you do a = 1; b = a; a = something_else
snuglepuss has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
dankest has joined #ruby
gener1c has joined #ruby
<Mon_Ouie>
Gate: When do you do that? The super keyword should cover most of it
ViperMaul|_ has quit [Ping timeout: 246 seconds]
slash_nick has joined #ruby
<Mon_Ouie>
And binding SomeClass.instance_method(…) can be used in some meta-programming contexts
hadees has joined #ruby
philcrissman has quit [Remote host closed the connection]
chussenot has quit [Ping timeout: 240 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
timmow has quit [Quit: is having a nap]
thecreators has quit [Remote host closed the connection]
bier_ has quit [Ping timeout: 260 seconds]
hbpoison has joined #ruby
nitti has quit [Remote host closed the connection]
esya has quit [Quit: esya]
jerius has joined #ruby
arietis has joined #ruby
<Gate>
Mon_Ouie: I've needed to be more aggresive about controlling when super gets called in the past and what arguments, etc
<Gate>
it was a control thing
Meepsheep has joined #ruby
alexim has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
bricker has joined #ruby
ryanf has joined #ruby
gmci has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
awestroke has joined #ruby
atlantaman has joined #ruby
tsousa has joined #ruby
brianpWins has joined #ruby
<tsousa>
while definig a class what is the use of attr ?
Meepsheep has left #ruby [#ruby]
<Mon_Ouie>
None, you can completely replace it with the clearer attr_reader, attr_writer and attr_accessor
voodoofish430 has joined #ruby
hbpoison has quit [Ping timeout: 276 seconds]
d2dchat has quit [Remote host closed the connection]
<tsousa>
Mon_Ouie, but why is that usefull?
<tsousa>
what does it do?
jonathan_ has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie>
It does the same attr_(reader|writer|accessor), depending on how you call it
philcrissman has joined #ruby
<tsousa>
what orm you guys recommend?
<tsousa>
i am making my first ruby program and it will be a library app.
alanp has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 246 seconds]
<heftig>
if you don't want activerecord, datamapper i guess
<Sou|cutter>
Sequel seems pretty cool (have been waiting for an excuse to use it for something)
arturaz has quit [Remote host closed the connection]
aldodelgado has quit [Quit: aldodelgado]
kil0byte has quit [Ping timeout: 248 seconds]
Axsuul has joined #ruby
nitti has quit [Remote host closed the connection]
c0rn has joined #ruby
Erfankam has joined #ruby
Slivka has joined #ruby
whitedawg has quit [Quit: Leaving.]
davidcelis has joined #ruby
billiam has quit [Read error: Connection reset by peer]
<dimka>
Hanmac: how it could be done in old ruby?
<dimka>
1.8.7
nitti has joined #ruby
maxer has joined #ruby
<Hanmac>
dimka your ruby would not get any support next year, get an newer one
jblack has quit [Read error: Operation timed out]
x82_nicole has quit [Quit: Computer has gone to sleep.]
daniel_-_ has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
<Cool_Fire>
Hanmac: How are they going to drop support for 1.8.7? Are they going to update enterprise ruby to a newer version?
<havenn>
1.8.7 is dead. No security fixes after June 2013.
hackerdude has quit [Remote host closed the connection]
dakine has quit [Quit: Leaving]
rich__ has joined #ruby
<havenn>
Cool_Fire: Updating to 1.9.3 patched with 2.0.0 GC is ready to replace EE.
Erfankam has quit [Ping timeout: 255 seconds]
hackerdude has joined #ruby
mneorr has quit [Remote host closed the connection]
<Cool_Fire>
I think a lot is going to break
<Cool_Fire>
migrating 1.8.7 > 1.9.3 definitely requires rewriting in most if not all cases
daniel_- has quit [Ping timeout: 246 seconds]
burgestrand1 has joined #ruby
colinbm has joined #ruby
<burgestrand1>
I’ve migrated three apps so far; neither of them was particularly painful. The encoding part can be tricky, but luckly neither of the applications were encoding conversion heavy or relied on broken behaviour to begin with.
stephenjudkins has quit [Quit: stephenjudkins]
<burgestrand1>
The most annoying were simple small changes of methods being taken away, most notably I remember String#each being used in quite a few places.
<Cool_Fire>
Yeah, but no big project is ever easy to migrate
<havenn>
Cool_Fire: 1.8.7 is really, really dead. Yeah, if you don't have encoding issues it should be fairly painless to swap out deprecated methods to 1.9+.
tpe11etier has quit [Ping timeout: 246 seconds]
Banistergalaxy has quit [Read error: Connection reset by peer]
burgestrand has quit [Ping timeout: 248 seconds]
burgestrand1 is now known as burgestrand
<havenn>
Cool_Fire: Try switching to 1.9.3 or 2.0.0-preview1 and see how many tests fail?
Banistergalaxy has joined #ruby
mneorr has joined #ruby
<Cool_Fire>
I don't personally have a project I'm worried about or anything
<Cool_Fire>
I'm just thinking of things like.. twitter for example
haxrbyte has joined #ruby
ABK has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
answer_42 has quit [Quit: WeeChat 0.3.9]
qwerxy has quit [Quit: offski]
Uranio has joined #ruby
emergion has joined #ruby
aquaranto has quit [Remote host closed the connection]
nadirvardar has joined #ruby
<havenn>
Cool_Fire: Heard that New Relic finished migrating a huge app to 1.9. Took them forever but they are pleased with the resulting improved performance.
Tuxist has quit [Read error: Connection reset by peer]
ngoldman has joined #ruby
colinbm has quit [Quit: colinbm]
nanderoo has quit [Quit: Leaving.]
<Cool_Fire>
I'm sure it'll be fine once it's done, but it's a hell of a thing
nitti_ has joined #ruby
nitti has quit [Ping timeout: 260 seconds]
c0rn has joined #ruby
<havenn>
Cool_Fire: 1.8 had its decade (August 2003 release). Long live 2.0!
<havenn>
Ruby 3000...
bbttxu has quit [Quit: bbttxu]
[Neurotic] has joined #ruby
enderx86 has quit [Remote host closed the connection]
qwerxy has joined #ruby
<Cool_Fire>
Weight gain 3000 too
bbttxu has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
reset has quit [Quit: Leaving...]
alexim has quit [Ping timeout: 255 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
centipedefarmer has joined #ruby
enderx86 has joined #ruby
rouss has joined #ruby
rouss is now known as Guest55750
rakl has quit [Quit: sleeping]
nazty has joined #ruby
haxrbyte has quit [Remote host closed the connection]
Guest10501 has quit [Quit: Guest10501]
erichmenge has joined #ruby
ABK has quit [Read error: Connection reset by peer]
nitti_ has quit [Remote host closed the connection]
mark_locklear has quit [Remote host closed the connection]
<davidcelis>
yes
<davidcelis>
use two-space indentation, that's the ruby way
tbrock_ has quit [Quit: Computer has gone to sleep.]
ij has quit [Read error: Connection reset by peer]
neiko has quit [Quit: leaving]
ij has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
enderx86 has quit [Remote host closed the connection]
tehlulz has joined #ruby
Mkman has quit [Quit: Lost terminal]
gabrielrotbart has joined #ruby
bairui has joined #ruby
aetcore_ has quit [Ping timeout: 246 seconds]
qwerxy has quit [Client Quit]
lenodroid has joined #ruby
joofsh has quit [Ping timeout: 264 seconds]
arya has joined #ruby
rdark has quit [Quit: leaving]
awestroke has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
srji has quit [Quit: leaving]
bapa has quit [Read error: Connection reset by peer]
bbttxu has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
<arietis>
davidcelis: does it matters?
keyvan has quit [Remote host closed the connection]
<arietis>
what's wrong with 4 spaces?
lenovodroid has quit [Read error: Connection reset by peer]
<davidcelis>
to other developers that read your code, yes
bigmcq77 has joined #ruby
<davidcelis>
its the standard
<arietis>
except "we're special so we will use 2 spaces instead"
headius has joined #ruby
<davidcelis>
you never write code stylistically based on the community standards? for no languages at all?
BadProphet has quit [Remote host closed the connection]
TheFuzzball has quit [Read error: Connection reset by peer]
<arietis>
i'm using 4 spaces indentation in all of my projects
osvico has joined #ruby
<davidcelis>
do you program in other languages?
<arietis>
yes
jlogsdon has quit [Remote host closed the connection]
<davidcelis>
and do you write/style your code based on community standards for those languages?
samuel02 has quit [Remote host closed the connection]
<Hanmac>
arietis about your code: File.write(@new_file_path,str) and @content = File.read(@old_file_path)
<arietis>
i think so
<havenn>
arietis: When in Rome...
<davidcelis>
arietis: so why not for ruby too, then?
<arietis>
davidcelis: i just don't get why only 2
<davidcelis>
arietis: i am not trying to be a dick, mind you, i'm just trying to inform you of a ruby standard
<davidcelis>
because 2 spaces are all the community feels are necessary
tehlulz has quit [Quit: tehlulz]
<Hanmac>
arietis: in your current code you open file pointers and dont close it, and read about the block form of some ruby methods
<davidcelis>
2 spaces makes for sufficient whitespace to denote blocks of code
bapa has joined #ruby
* Cool_Fire
uses a 4-space wide tab
<Cool_Fire>
regardless of the language I'm writing in really
joeycarmello has quit [Remote host closed the connection]
losh has left #ruby ["Leaving"]
lenodroid has quit [Ping timeout: 252 seconds]
reset has joined #ruby
dmiller has quit [Remote host closed the connection]
* Hanmac
uses 2-space wide tab
<arietis>
no, tab is wrong
<arietis>
:)
danshult_ has quit [Remote host closed the connection]
<arietis>
spaces are the way to go
<TTilus>
good! lets focus solely on indentation! everybody!
losh has joined #ruby
losh has left #ruby ["Leaving"]
<Hanmac>
arietis in your code is more wrong than my using of tabs :P
joeycarmello has joined #ruby
<TTilus>
hard vs. soft tabs! go go go!
<davidcelis>
tabs are evil
<davidcelis>
TTilus: i like to keep it real yo
geekbri has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
<havenn>
Ruby is soft tabs, 2 spaces. No debate to be had!
<davidcelis>
^
<havenn>
If you use tabs, you are evil. 3 spaces, 4 spaces, 8 spaces... EVIL.
<davidcelis>
i always lol @ javascript with 8 space indentation
<davidcelis>
i see it more often than i'd like
<Hanmac>
havenn ruby is not python where you forced to use an specific indent type
pu22l3r has joined #ruby
blacktulip has quit [Remote host closed the connection]
h4mz1d has joined #ruby
<havenn>
Hanmac: You aren't forced, but tabs are worse and spaces are better. Use tabs, poor compatibility and looks terribad on githubs.
<TTilus>
arietis: use blocks with file io, do ... end instead of curlies with multiline blocks, return and str assignment are unnecdessaty in #convert
sertaconay has quit [Read error: Connection reset by peer]
manizzle has joined #ruby
<Hanmac>
i use tabs because they have the currect meaning ... "one tab per indent" ... spaces are not so controlable ... and i have an little style sheet that changes the tabsize in my browser
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
Seich is now known as seich
timonv has joined #ruby
<Hanmac>
TTilus he could als use the class methods File.read & File.write
losh has joined #ruby
<TTilus>
Hanmac: correct
<shevy>
I use 2 spaces always
jaygen has quit [Remote host closed the connection]
<TTilus>
arietis: have you looked at github ruby code convention, it is pretty thorough description of idiomatic ruby
jaygen has joined #ruby
<losh>
hi, I have a string which use #{var_x} interpolation. I want to pass this string to a function and have the string display the local variable var_x, is this possible does scoping make this impossible?
<havenn>
Hanmac: Explicit is better than implicit. Tabs are ambiguous. Spaces are clean.
<TTilus>
Hanmac: >.<
<Hanmac>
not for my "one tab per indent" politic
<davidcelis>
different views handle tabs differently
<davidcelis>
spaces are always spaces
<davidcelis>
tabs suck
<arietis>
gonna rework code according to your suggestions, thanks
<havenn>
Hanmac: I'm a total sucker for saving one key-char, but set tab to soft-tab and win?
<arietis>
but i need to add one feature
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<TTilus>
arietis: consider testing
<arietis>
TTilus: testing?
<arietis>
i have tests
<Hanmac>
havenn soft-tabs are shitty if you need to refactore hundreds of lines of code
<TTilus>
arietis: good
<davidcelis>
how
jimeh has joined #ruby
<davidcelis>
if you configure your editor right, it's the same as dealing with hard tabs
d2dchat has joined #ruby
<arietis>
TTilus: i have file which contains non-latin chars
<havenn>
Hanmac: If they are consistent, I don't consider one harder than the other. I guess I'd rather have consistent tabs than trailing whitespace and borked soft-tabs, but...
<arietis>
so when i run converter i get it properly
<TTilus>
Hanmac: C-c h C-x TAB (no theyre not :)
<arietis>
but i also get useless '' in some lines
mneorr has quit [Remote host closed the connection]
<arietis>
basically i wanna track if line contains non-latin char after '=' sign
<arietis>
is it possible?
<Hanmac>
TTilus whart do you want to sayto me with that?
tehlulz has joined #ruby
statarb3 has quit [Quit: Leaving]
<TTilus>
Hanmac: thats the way i fix indentation, reindent buffer
greasegum has quit [Quit: Leaving]
TheFuzzball has quit [Read error: Operation timed out]
JonnieCache has joined #ruby
darkwing_duck has joined #ruby
<Hanmac>
TTilus did you maybe thought that your line is 100% not helpful, because you may not know that editor i use, nor did you say what editor you use?
thisirs has joined #ruby
jblack has joined #ruby
nemesit has quit [Quit: Leaving...]
<havenn>
Hanmac: What editor has trouble with two-space indentation? Why you no use One True Editor? :P
hbpoison has joined #ruby
apok_ has joined #ruby
<havenn>
Hanmac: I guess it is easy enough to convert. >.> I mostly care because Github sets tab to 4 which looks bizarre to me.
dominikh has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
danshultz has joined #ruby
maesbn has quit [Remote host closed the connection]
<Hanmac>
havenn emacs is not an editor, its an os, and vim does not have the features i need
<Hanmac>
and it can be changed how the browser shows the tabs in the browser
losh has left #ruby ["Leaving"]
<shevy>
yeah
<shevy>
in the eternal fight emacs vs. vim there are only two losers
<shevy>
but tabs still suck
TheFuzzball has joined #ruby
<shevy>
I'd like a pure editor in ruby, but the only one I know requires one to have java :(
<havenn>
shevy: yeah, that is a deal-killer for me
nignaztic has joined #ruby
<Hanmac>
i would go to an ruby editor when it has all features i have with eclipse
danshultz has quit [Remote host closed the connection]
SCommette has joined #ruby
apok has quit [Ping timeout: 246 seconds]
apok_ is now known as apok
hbpoison has quit [Ping timeout: 245 seconds]
alexwh has quit [Ping timeout: 252 seconds]
thisirs has quit [Remote host closed the connection]
TheFuzzball has quit [Ping timeout: 252 seconds]
marr has joined #ruby
olrrai has joined #ruby
mneorr has joined #ruby
<havenn>
Hanmac: I didn't say whether emac or vim was the One True Editor. :P For vim wouldn't something like this work: set tabstop=2 shiftwidth=2 expandtab
<havenn>
emacs*
nicoulaj has quit [Remote host closed the connection]
Tomasso has joined #ruby
<shevy>
eclipse is a bit too big for me
qwerxy has joined #ruby
<shevy>
I mean, IDEs like it...
<shevy>
it would be an improve if smaller editors would allow pure-ruby plugins
sailias has joined #ruby
<Hanmac>
i normaly use gedit, but if you want to investigate >100 Files an IDE is more usefull
qwerxy has quit [Client Quit]
<havenn>
Hanmac: I like gedit, but am not proficient in it. I ended up switching from Ubuntu to OS X. Yeah, I guess in part it depends on your tooling.
joeycarmello has joined #ruby
combataircraft has quit [Quit: leaving]
<Hanmac>
ah an osx user ... that explain your agro "change others into what i am because i am better"-mode
h4mz1d has quit [Ping timeout: 268 seconds]
tehlulz has quit [Quit: tehlulz]
thinkdevcode has joined #ruby
jrist is now known as jrist-aafk
macabre has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby
Tomasso has quit [Ping timeout: 252 seconds]
macabre has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
alexwh has joined #ruby
<havenn>
Hanmac: I'm not aggro. Nor does my OS dictate my demeanor. We simply disagree.
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
Tomasso has joined #ruby
kiyoura has joined #ruby
kirun has quit [Quit: Client exiting]
strangeworks has joined #ruby
iPhoneMRZ has joined #ruby
<havenn>
Hanmac: I happily agree to disagree. I prefer spaces, you prefer tabs. Not like I'm going to avoid code because of that minutia.
alexim has joined #ruby
v0n has quit [Ping timeout: 244 seconds]
omg765 has joined #ruby
Tomasso has left #ruby [#ruby]
axl_ has quit [Quit: axl_]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
alanp_ has joined #ruby
<havenn>
P.S. - You should change, my way is better. :troll:
csaunders has quit [Quit: Computer has gone to sleep.]
nitti has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
<davidcelis>
lol this shit is still going on
statix_ has quit []
thinkdevcode has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
Tombar has joined #ruby
gabrielrotbart has joined #ruby
Tania has quit [Quit: :p]
<arietis>
:S
carlyle has quit [Remote host closed the connection]
aetcore has joined #ruby
aetcore__ has quit [Read error: Connection reset by peer]
<davidcelis>
mv #ruby #tabsorspaces
caleb_io has joined #ruby
samphippen has joined #ruby
beiter has quit [Quit: beiter]
butblack has left #ruby [#ruby]
<shevy>
spaces are better than tabs!
<shevy>
we agree by majority, only the minority disagrees
otters has joined #ruby
Cultofmetatron has joined #ruby
dzhulk has quit [Quit: Leaving.]
stephenjudkins has quit [Quit: stephenjudkins]
* darkwing_duck
applauds spaces...except the extra kind
* darkwing_duck
doesn't cringe at tabs, except the non-two-spacey kind
JonnieCache has quit [Ping timeout: 252 seconds]
sh1nji has joined #ruby
darkwing_duck has quit [Quit: \t\t\t]
TheFuzzball has joined #ruby
rjsamson has quit [Remote host closed the connection]
rjsamson has joined #ruby
Grieg has quit [Quit: laterz! :D]
fir_ed has quit [Ping timeout: 264 seconds]
fir_ed has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
swex has quit [Read error: Operation timed out]
caleb_io has quit [Quit: caleb_io]
rjsamson has quit [Ping timeout: 240 seconds]
rjsamson has joined #ruby
erichmenge has joined #ruby
erichmenge has quit [Client Quit]
stopbit has quit [Quit: Leaving]
jenrzzz has joined #ruby
siyusong has joined #ruby
<shevy>
extra kind?
philcrissman has quit [Remote host closed the connection]
horofox has joined #ruby
Tombar has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
omg765 has quit [Ping timeout: 255 seconds]
jjang has joined #ruby
J-_-L has quit [Ping timeout: 245 seconds]
<kiyoura>
2-width space tabs or gtfo
jenrzzz has quit [Ping timeout: 260 seconds]
stephenjudkins has joined #ruby
jblack has quit [Ping timeout: 256 seconds]
omg765 has joined #ruby
qwerxy has quit [Quit: offski]
ChampS666 has quit []
invisime has quit [Quit: Leaving.]
TheFuzzball has quit [Ping timeout: 248 seconds]
qwerxy has joined #ruby
hbpoison has joined #ruby
bier_ has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
v0n has joined #ruby
undersc0re97 has quit [Remote host closed the connection]
SuperrMann has quit [Quit: Computer has gone to sleep.]
bier_ has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
macabre has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 240 seconds]
reset has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 260 seconds]
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
tatsuya_o has joined #ruby
fms has quit [Quit: Lost terminal]
combataircrat has joined #ruby
disappearedng has joined #ruby
<disappearedng>
I am building a dating site where the user can send an email to an anonymized email address, i.e. hidden-girl123@mysite.com only once and subsequent emails to hidden-girl123@mysite.com will require the user to pay. Any mail servers or FTA to recommend for something quick and easy?
combataircrat has quit [Client Quit]
aetcore has quit []
combataircrat has joined #ruby
combataircrat is now known as combataircraft
mmitchell has joined #ruby
sandstorm has joined #ruby
qwerxy has quit [Quit: offski]
fyolnish has quit [Remote host closed the connection]
berserkr has quit [Quit: Leaving.]
_alejandro has quit [Remote host closed the connection]
jonathanwallace has quit [Remote host closed the connection]