rkalfane has quit [Read error: Connection reset by peer]
tier has joined #ruby
rkalfane has joined #ruby
tier has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elastik has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 258 seconds]
momomomomo has quit [Quit: momomomomo]
jenrzzz has joined #ruby
m8tt8 has quit [Quit: Sto andando via]
diego_ar has quit [Remote host closed the connection]
<pontiki>
redjack1964: ruby doesn't really have the concept of a destructor like other languages; when an object goes out of use, it is marked for garbage collection.
<pontiki>
redjack1964: essentially, you'll need to create a class-level method that does the decrement instead
aspires has quit []
ta has quit [Remote host closed the connection]
<pontiki>
you might want to implement both the construction and destruction of this particular class's objects explicitly
klmlfl has quit [Remote host closed the connection]
chu has joined #ruby
Takle has quit [Remote host closed the connection]
Rollabunna has joined #ruby
chipotle_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
_1_niceguy2 has quit [Remote host closed the connection]
chipotle has quit [Client Quit]
JokerDoom has joined #ruby
mary5030 has joined #ruby
Megtastique has joined #ruby
Rollabunna has quit [Ping timeout: 264 seconds]
<redjack1964>
pontiki: in fact, i would like to do simply something like that : my_object = nil
<pontiki>
that is, in fact, not a destructor
<redjack1964>
centrx: oh i didn't see your message before :-)
<pontiki>
define_finalizer is tricky though. if there's any mention of self in there, that object gets thrown out of GC
<pontiki>
redjack1964: i would still recommend doing it explicitly
mgberlin has joined #ruby
nobitanobi has quit []
Takle has joined #ruby
Takle has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 260 seconds]
<redjack1964>
pontiki: hm, let's suppose we made a class "Cars" which contains @@number_cars inside. So each times an object is created (a_car = Cars.new, a_second_car = Cars.new and so on...) , @@number_cars will be increased at their creations. But so, when deleting a car, i want to decrease this variable. How will you do that pontiki ?
<pontiki>
[20141207|1807.00] < pontiki> redjack1964: essentially, you'll need to create a class-level method that does the decrement instead
rylev has joined #ruby
razieliyo has joined #ruby
<eam>
/win 2
<pontiki>
/lose 1
gtrak has joined #ruby
elastik has joined #ruby
konsolebox has quit [Ping timeout: 244 seconds]
Beoran_ has quit [Ping timeout: 258 seconds]
diego_ar has joined #ruby
rylev has quit [Ping timeout: 245 seconds]
DLSteve has quit [Quit: Leaving]
dh64 has quit [Quit: Konversation terminated!]
Akagi201 has joined #ruby
Fire-Dragon-DoL has joined #ruby
gtrak has quit [Remote host closed the connection]
agrinb has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
Cyberheb has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Quit: zzz]
mgberlin has joined #ruby
rpag_ has quit [Ping timeout: 256 seconds]
Akagi201 has quit [Ping timeout: 264 seconds]
sinkensabe has joined #ruby
<rj46>
".rbenv/bin/rbenv: /usr/bin/env: bad interpreter: Permission denied" its second time wtf
bigmac_ has joined #ruby
diego_ar has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
Beoran_ has joined #ruby
lemur has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
i8igmac has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Ping timeout: 244 seconds]
cantonic has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
quimrstorres has joined #ruby
<shevy>
did you find your bin/ruby finally rj46
<rj46>
shevy: I still bother with that, rbenv from repo warns about bad interpreter
j_mcnally has joined #ruby
<rj46>
from github repo*
<rj46>
rbenv install via apt work fine, but its old
rkday has quit [Ping timeout: 264 seconds]
<shevy>
hehe
<shevy>
it's like trying to find your socks early in the morning
tkuchiki has joined #ruby
<rj46>
i want sleep so bad
<rj46>
but need to find whats wrong
charliesome has joined #ruby
<shevy>
why don't you eliminate rbenv and compile from source
tjohnson has quit [Quit: Connection closed for inactivity]
<godd2>
Not anymore than just straight parsing I guess. But that's only solves the problem as stated, it doesn't solve the problem you may be really having
giuseppesolinas has joined #ruby
Xeago has quit [Remote host closed the connection]
sevenseacat has joined #ruby
<GreatSUN>
godd2: you mean manual parsing (by eyes and mind)?
rylev has joined #ruby
Xeago has joined #ruby
<godd2>
Like I said, I have no idea offhand. I've never used Nokogiri
<godd2>
But you may want to consider some sort of logging to capture this issue?
fandi has quit [Ping timeout: 252 seconds]
ta has joined #ruby
rylev has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Quit: lol]
lyanchih_ has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
jenrzzz has joined #ruby
st0mar has joined #ruby
timonv_ has joined #ruby
sk87 has joined #ruby
tlarevo has quit [Ping timeout: 245 seconds]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
ta has quit [Ping timeout: 260 seconds]
shredding has joined #ruby
tlarevo has joined #ruby
craigp has joined #ruby
lbrf has joined #ruby
dts|pokeball is now known as dts|supersaiyan
webgen has joined #ruby
rdark has joined #ruby
arup_r has joined #ruby
skroon has joined #ruby
_Andres has joined #ruby
arup_r_ has quit [Ping timeout: 245 seconds]
rkday has quit [Ping timeout: 252 seconds]
techsethi has quit [Quit: techsethi]
lbrf has quit [Ping timeout: 272 seconds]
diego_ar has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
Takle has joined #ruby
otherj has joined #ruby
red_horned_rihno has joined #ruby
SCHAAP137 has joined #ruby
CpuID2 has quit [Ping timeout: 264 seconds]
kyb3r_ has quit [Quit: Leaving]
arup_r has quit [Remote host closed the connection]
diego_ar has quit [Ping timeout: 264 seconds]
lemur has quit [Remote host closed the connection]
msgodf has joined #ruby
lemur has joined #ruby
Takle has quit [Ping timeout: 252 seconds]
echooo has quit [Ping timeout: 264 seconds]
echooo has joined #ruby
st0mar has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
st0mar has joined #ruby
Takle has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Cyberheb has quit [Ping timeout: 265 seconds]
lemur has quit [Ping timeout: 258 seconds]
ghr has joined #ruby
Cyberheb has joined #ruby
tgandrews has joined #ruby
elaptics`away is now known as elaptics
red_horned_rihno has quit [Read error: Connection reset by peer]
red_horned_rihno has joined #ruby
jaequery has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
fandi has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
red_horned_rihno has joined #ruby
oo_ has joined #ruby
rylev has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
red_horned_rihno has joined #ruby
chipotle has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
red_horned_rihno has joined #ruby
tgandrews has quit [Ping timeout: 272 seconds]
red_horned_rihno has quit [Max SendQ exceeded]
vinleod has joined #ruby
olivier_bK has joined #ruby
olivier_bK has quit [Remote host closed the connection]
red_horned_rihno has joined #ruby
olivier_bK has joined #ruby
red_horned_rihno has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 250 seconds]
sinkensabe has joined #ruby
jtheuer has joined #ruby
Cyberheb has quit [Ping timeout: 272 seconds]
roolo has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
Cyberheb has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
zarubin has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zarubin has joined #ruby
AFKGeek has joined #ruby
lbrf has joined #ruby
ta has joined #ruby
marr has joined #ruby
diego_ar has joined #ruby
postmodern has quit [Quit: Leaving]
ItSANgo has quit [Quit: Leaving...]
Fleuv has joined #ruby
william3 has joined #ruby
elaptics is now known as elaptics`away
sinkensabe has quit [Remote host closed the connection]
<Fleuv>
Hi, I've problems with installing compass on a specific mac (an older one), installing it on a newer mac model installs without any problems. I'm using these versions: sass 3.4.9 gem 2.4.5 and this is the error I've: http://pastebin.com/b97y2M1V
jheg has joined #ruby
lbrf has quit [Ping timeout: 250 seconds]
elaptics`away is now known as elaptics
wald0 has joined #ruby
arup_r has quit [Remote host closed the connection]
kl__ has joined #ruby
kl__ has quit [Client Quit]
Spami has joined #ruby
klmlfl has quit [Remote host closed the connection]
arup_r has joined #ruby
otherj has quit [Quit: .]
troulouliou_dev has joined #ruby
wald0 has quit [Ping timeout: 245 seconds]
chinmay_dd has quit [Quit: Leaving]
diego_ar has quit [Remote host closed the connection]
sandelius has joined #ruby
chinmay_dd has joined #ruby
Timgauthier has joined #ruby
<shevy>
Fleuv it claims that you don't have ruby header file
<Timgauthier>
:O!
<Timgauthier>
how dare you behead ruby!
mityaz has joined #ruby
timonv_ has joined #ruby
<bentkus>
apeiros:
<Fleuv>
shevy: I never used ruby on that mac before. How can it be missing and more important how do I fix it?
ta has quit [Remote host closed the connection]
AlSquirrel has quit [Quit: This computer has gone to sleep]
ta has joined #ruby
<shevy>
Fleuv not sure how you installed it
<shevy>
Fleuv, on my linux system, I compiled from source and I have this file here: /usr/include/ruby-2.1.0/ruby.h
<Fleuv>
shevy: What exactly? Ruby, Sass or compass (what isnt installed yet)
<Timgauthier>
non ruby opinion, blog, should the main page show the latest post and then archives show excerpts or should the archives show full posts multiple on a page?
<shevy>
Fleuv ruby - the error says that you are missing a ruby header file
<Timgauthier>
Fleuv well you're missing ruby header, so i'd asume ruby
<Timgauthier>
dang shevy you fassst
<shevy>
:)
<shevy>
my head is dizzy, I woke up just recently
<Fleuv>
I've got a new error after following this
<Timgauthier>
wow that sucks
AmirolAhmad has quit [Read error: Connection reset by peer]
<Timgauthier>
:P
<shevy>
Fleuv can you look into /usr/include for *ruby*
<Timgauthier>
go back to bed, its too early in europe
<shevy>
checking for ffi.h... *** extconf.rb failed ***
<shevy>
do you have the file ffi.h Fleuv
anarang has quit [Ping timeout: 244 seconds]
<Timgauthier>
west europe is best europe mityaz :P
Juanchito has joined #ruby
rshetty has quit [Remote host closed the connection]
<Fleuv>
:D
* Timgauthier
[posts from east germany]
AmirolAhmad has joined #ruby
<mityaz>
Timgauthier, hehe, it depends
* mityaz
posts from Ukraine
<mityaz>
:)
<shevy>
cool so you can post from the war front mityaz ;P
<Timgauthier>
how are things over in the ukraine? cold as heck yet?
<shevy>
it's cold in central europe too!
<mityaz>
shevy, yep, I'm pretty close to it :)
<shevy>
oh wait... around 6° C here ... so that is not that cold
<shevy>
mityaz I remember how that ruby conference had to be cancelled
<mityaz>
+1C here, used to be -18 two days ago
<Timgauthier>
no one wants to fly in shevy
<shevy>
ewwww
blz37 has quit [Ping timeout: 258 seconds]
<shevy>
-18 is crazy
<mityaz>
shevy yeas :(( I was going to attend it, Kiev
<shevy>
Fleuv I am pretty sure that there must be a way on osx to install the headers
<mityaz>
shevy yep, freezing. it can go worse soon, to -25
anarang has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
rshetty has joined #ruby
<Timgauthier>
sounds like back home (canada)
<shevy>
hehe
<shevy>
the land of the acorn squirrels
<Fleuv>
Should I reinstall ruby?
<Timgauthier>
yes
<shevy>
Fleuv dunno, that shouldn't be necessary if you can find out how to obtain the headers. have you checked in /usr/include already?
<shevy>
or whatever is the osx equivalent
<shevy>
Framework blabla or something
<Timgauthier>
~/library/ something likely
psmolen has quit [Ping timeout: 258 seconds]
dfas has joined #ruby
<Fleuv>
shevy: Inside /usr/include there is nothing inside called *ruby*
AFKGeek has quit [Quit: Fades into the shadows]
<Fleuv>
But to avoid any future problems I'll reinstall ruby, this is the easiest way, right?
<Timgauthier>
my ruby works and it isn't in the includes folder either
AlexRussia has quit [Ping timeout: 252 seconds]
psmolen has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has joined #ruby
<shevy>
Fleuv I have no idea sorry. We need an OSX guy - I always compile stuff from source on linux
<shevy>
Timgauthier but you do have a ruby.h file?
DaniG2k has joined #ruby
<Timgauthier>
nope
<Fleuv>
I'm also not that into mac, I prefer ubuntu
<mityaz>
I'm using OSX and installed ruby via rbenv
<shevy>
you osx guys are strange
<mityaz>
;)
<Timgauthier>
ruby is usually preinstalled by the OS, but then i put my own copy from some other thing i can't remember
<Timgauthier>
mityaz yeah i think so too
<shevy>
hehehe
<mityaz>
hehe
<mityaz>
Default ruby is weird in most cases, so always use rbenv or rvm
william3 has quit [Remote host closed the connection]
<shevy>
\o/
<mityaz>
Fleuv, so, I'd suggesting taking look at them
<shevy>
mityaz is there a public holiday today in the Ukraine?
<mityaz>
shevy, nope, it's normal Monday ;)
quimrstorres has joined #ruby
Abhijit has quit [Ping timeout: 240 seconds]
<mityaz>
a lot of Holidays are starting Dec 31 - 10th Jan
AFKGeek has joined #ruby
qba73 has joined #ruby
Takle has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
qba73 has quit [Remote host closed the connection]
<Timgauthier>
i really wish the west actually helped the ukraine so we didn't have this bullshit going on now
Takle has joined #ruby
<Timgauthier>
but i really can't wait till you guys get to have "Fuck russia" day
<mityaz>
Timgauthier, yea, situation is getting to bad, actually I'm from the region of this battles, so had to relocate to the West of Ukraine to keep working
<Timgauthier>
:(
tvw has joined #ruby
<mityaz>
Donetsk ;)
<Timgauthier>
yeah i know
<mityaz>
btw, it's interesting, what the Western people think on it?
boombadaroomba has joined #ruby
<mityaz>
I mean on the whole situation
<Fleuv>
mityaz: installing rvm now. I'll keep ya up-to-date and yes fuck russia, i love ukraine! :D
<shevy>
war sucks
<mityaz>
Fleuv, ;)
it0a has quit [Ping timeout: 245 seconds]
<Fleuv>
I often visit west ukraine
<Fleuv>
Lviv
<mityaz>
yes, Lviv is cool
<Fleuv>
xD
<Timgauthier>
well some of us are pissed that we didn't actually come in and help secure the country and keep russia out when we got asked too, as we watched russian soldiers march in and our leaders still don't seem to think its actually russian soldiers which is fucking rediuclous. but there are so many other shitting things that keep coming up and distracting from it
shock_one has joined #ruby
uber_hulk has quit [Quit: leaving]
<mityaz>
Timgauthier, as to me, to much politics + the 'Gas' question. West is too much dependent on it
renderful has joined #ruby
arup_r_ has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Takle has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
krz has quit [Ping timeout: 264 seconds]
Abhijit has joined #ruby
Abhijit has quit [Read error: Connection reset by peer]
Aswebb_ has joined #ruby
boombadaroomba has quit [Ping timeout: 250 seconds]
fandi has quit [Ping timeout: 252 seconds]
usse has joined #ruby
quimrstorres has quit [Remote host closed the connection]
jtheuer has quit [Quit: This computer has gone to sleep]
<shevy>
I want an object oriented shell
jusmyth has joined #ruby
<Timgauthier>
yeah i live in germany, (as i mentioned earlier so i know you know) and there is a lot of germans who are not wanting to have gas problems, but now that OPEC has tanked fuel prices, maybe we can fuck off the use of russian gas
renderful has quit [Ping timeout: 240 seconds]
<Timgauthier>
since it is cheap to go get it elsewhere now too
quimrstorres has joined #ruby
<shevy>
doesn't Russia deliver 1/3 of germany's needs in gas?
<Timgauthier>
yes
<shevy>
hmm that's a lot to replace
RitterJack has joined #ruby
TPBallbag has joined #ruby
<Timgauthier>
yes but finland wants to
Aswebb_ has quit [Remote host closed the connection]
AndChat| has joined #ruby
webgen has quit [Ping timeout: 255 seconds]
lkba has quit [Read error: Connection reset by peer]
webgen has joined #ruby
<Timgauthier>
wants too*
duncannz has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
fandi has joined #ruby
<shevy>
it must be even colder in finland than in the ukraine
<Timgauthier>
yes but they have oil! :D
<Timgauthier>
and gas, nat gas, lpg whatever
klmlfl has quit [Remote host closed the connection]
sk87 has joined #ruby
AlSquire has joined #ruby
<mityaz>
hhehe and /me is studying German now ;) want to try working somether in Germany
<mityaz>
do you need ruby devs there? ;)
<Timgauthier>
awesome :) hopefully they get into the eu
<Timgauthier>
i dunno mityaz, i'm honestly not really invovled in the scene :( i'm new here too
<mityaz>
Timgauthier, oh, ok. ;)
ItSANgo has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
workmad3 has joined #ruby
oo_ has quit [Ping timeout: 272 seconds]
AndChat| has quit [Ping timeout: 255 seconds]
Rollabunna has joined #ruby
st0mar has quit [Ping timeout: 258 seconds]
arup_r_ has quit [Remote host closed the connection]
webgen has quit [Ping timeout: 244 seconds]
rshetty has quit [Ping timeout: 240 seconds]
giuseppesolinas has joined #ruby
ikaros has joined #ruby
reinaldob has joined #ruby
Rollabunna has quit [Read error: No route to host]
Rollabunna has joined #ruby
<shevy>
he is writing PHP code
<shevy>
:>
Mateon1 has quit [Ping timeout: 265 seconds]
rshetty has joined #ruby
<mityaz>
:P
AlexRussia has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
pitty031 has joined #ruby
rodfersou has joined #ruby
charliesome has quit [Ping timeout: 258 seconds]
krz has joined #ruby
charliesome has joined #ruby
pitty031 has left #ruby [#ruby]
Mateon1 has joined #ruby
lbrf has joined #ruby
AlbertoCG has joined #ruby
danijoo_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
arup_r has joined #ruby
<Fleuv>
shevy, mityaz: I managed to fix it through rvm :D
<Fleuv>
Thanks for the support
<mityaz>
Fleuv, no problem, glad it's solved ;)
TPBallbag has quit []
quimrstorres has quit [Remote host closed the connection]
<shevy>
YES
<shevy>
he used a non osx solution!
<shevy>
:D
danijoo_ has quit [Client Quit]
danijoo has quit [Ping timeout: 250 seconds]
Aswebb_ has joined #ruby
<Timgauthier>
hahaha
<shevy>
actually, that is pretty much how must debian-based guys will solve their ruby problems too (they'll use non-debian solutions e. g. chruby rvm rbenv or even compile from source \o/)
Akagi201 has quit []
lbrf has quit [Ping timeout: 244 seconds]
AmirolAhmad has joined #ruby
mengu has quit [Remote host closed the connection]
mityaz has quit [Read error: Connection reset by peer]
Dr3amc0d3r|away has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby
TgMts has quit [Ping timeout: 252 seconds]
diego_ar has joined #ruby
quimrstorres has joined #ruby
SCHAAP137 has joined #ruby
Dr3amc0d3r|away has joined #ruby
cantonic has quit [Ping timeout: 244 seconds]
JohnBat26 has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
diego_ar has quit [Ping timeout: 264 seconds]
koderok has joined #ruby
tlarevo_ has joined #ruby
CustosLimen has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tlarevo has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
uber_hulk has joined #ruby
fella5s has joined #ruby
_ixti_ has quit [Ping timeout: 265 seconds]
MrIlyas has joined #ruby
william3 has joined #ruby
usse has quit []
havenwood has quit [Remote host closed the connection]
Cyberheb has quit [Quit: Computer has gone to sleep.]
<pontiki>
no, readline and other issues may contribute problems
m8 has joined #ruby
hgl has quit [Max SendQ exceeded]
nanSTA has joined #ruby
hgl has joined #ruby
<jmaister>
And I get this no matter if I run the bot from Ubuntu or Mac OSX
<shevy>
I think that @db = nil is kinda useless there jmaister
chu has joined #ruby
<jmaister>
shevy: eh, yeah :P Must have been left behind
ta has quit [Remote host closed the connection]
hgl has quit [Max SendQ exceeded]
sk87 has joined #ruby
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
einarj has quit [Remote host closed the connection]
hgl has joined #ruby
mityaz has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
hgl has quit [Max SendQ exceeded]
fabrice31 has joined #ruby
mityaz has joined #ruby
hgl has joined #ruby
WhereIsMySpoon has quit [Disconnected by services]
mityaz has quit [Read error: Connection reset by peer]
WhereIsMySpoon_ has joined #ruby
mityaz has joined #ruby
rbrs has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 264 seconds]
Mothore_____ has quit [Quit: Be back later ...]
fabrice31 has joined #ruby
yxhuvud has quit [Ping timeout: 256 seconds]
Morkel_ has joined #ruby
lbrf has joined #ruby
hgl has quit [Max SendQ exceeded]
dseitz has quit [Quit: naaaap time]
chipotle_ has joined #ruby
hgl has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
Morkel has quit [Ping timeout: 245 seconds]
Morkel_ is now known as Morkel
chipotle_ has quit [Read error: Connection reset by peer]
hgl has quit [Max SendQ exceeded]
chipotle has joined #ruby
lbrf has quit [Ping timeout: 255 seconds]
sigurding has quit [Quit: sigurding]
asdfqwer has quit [Quit: Leaving]
sirpeng has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
spastorino has joined #ruby
arup_r_ has joined #ruby
joonty1 has joined #ruby
hgl has joined #ruby
webgen has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
Stalkr_ has joined #ruby
iml has quit [Quit: sleep]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
ezio has quit [Ping timeout: 258 seconds]
arup_r has quit [Ping timeout: 258 seconds]
Stalkr_ has quit [Ping timeout: 250 seconds]
tokik has quit [Ping timeout: 244 seconds]
msgodf has quit [Remote host closed the connection]
HACKING-FACEBOOK has joined #ruby
Aswebb_ has joined #ruby
clauswitt has joined #ruby
fandi has quit [Remote host closed the connection]
ta has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
az7ar_away has quit [Remote host closed the connection]
hmsimha has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
ghostbox has joined #ruby
joonty has joined #ruby
tlarevo_ has quit [Remote host closed the connection]
joonty1 has quit [Ping timeout: 255 seconds]
tlarevo has joined #ruby
Xeago has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
AFKGeek has quit [Quit: Fades into the shadows]
kirun has joined #ruby
<arup_r_>
shevy: Where are you ?
arup_r_ has quit []
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
jusmyth has joined #ruby
<pontiki>
over there -->
Stalkr_ has joined #ruby
jusmyth has left #ruby [#ruby]
sigurding has joined #ruby
lucianosousa has joined #ruby
rylev has quit [Remote host closed the connection]
msgodf has joined #ruby
jusmyth1 has joined #ruby
jtheuer has joined #ruby
nfk has joined #ruby
sirpeng has quit []
lele has quit [Ping timeout: 245 seconds]
Stalkr_ has quit [Read error: Connection reset by peer]
Stalkr^ has joined #ruby
<shevy>
lol
tkuchiki has quit [Remote host closed the connection]
Xeago has joined #ruby
bmichelsen has joined #ruby
tkuchiki has joined #ruby
shredding has quit [Quit: shredding]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
Takle_ has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 245 seconds]
webgen has quit [Ping timeout: 258 seconds]
Takle has joined #ruby
anarang has quit [Ping timeout: 240 seconds]
anarang has joined #ruby
sirpeng has joined #ruby
jusmyth1 has quit [Quit: Leaving.]
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
joonty1 has joined #ruby
chipotle has quit [Quit: cheerio]
joonty has quit [Ping timeout: 252 seconds]
jtheuer has quit [Quit: This computer has gone to sleep]
<jmaister>
Ok, so I actually solved my problem. I never got the UTF-8 part into my query since I used a regexp what matched with `\w` which only matches ascii. I should have used `[[:word]]`. Now my scripts works as expected. This, then, is nothing more than a "irb on mac" curiosity.
joonty2 has joined #ruby
Shazaum has joined #ruby
<shevy>
oha
<jmaister>
Silly me
<shevy>
well it would also mean that [:word] is better than \w, no?
<jmaister>
Yeah. But why \w doesn't count æøå as "word characters" is beyond me. Must be designed by muricans
<shevy>
does [:word] work on ASCII strings as well?
<apeiros_>
build ruby against readline instead of editline and your problem goes away. the problem only happens specifically when entering unicode with editline.
<jmaister>
oh jeez
hmsimha has quit [Ping timeout: 252 seconds]
<apeiros_>
indeed
<apeiros_>
it's quite an annoying problem. I remember reinstalling ruby a couple of times when I forgot to specify readline.
Takle_ has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mityaz has joined #ruby
<apeiros_>
I'll give you the answer on stackoverflow
<apeiros_>
so you can accept it :-)
rkalfane has joined #ruby
<jmaister>
Sure
<jmaister>
I'll delete my last edit
<shevy>
delete the whole post!!!
<apeiros_>
noway, then I don't get points!
anarang has quit [Read error: Connection reset by peer]
<jmaister>
haha
<shevy>
hehe
Aswebb_ has quit [Remote host closed the connection]
<jmaister>
It's more sought after than Reddit Silver
dc has joined #ruby
<apeiros_>
I got my 1k mostly from 2 answers :D
mengu has quit [Remote host closed the connection]
<apeiros_>
thx
ndrei has joined #ruby
mradmacher has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
joonty1 has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
st0mar has quit [Ping timeout: 250 seconds]
quazimodo has quit [Ping timeout: 265 seconds]
joonty has quit [Ping timeout: 245 seconds]
claptor has quit [Quit: this channel is bakas]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
st0mar has joined #ruby
shock_one has quit [Remote host closed the connection]
henesy has quit [Ping timeout: 258 seconds]
joonty has joined #ruby
diegoviola has joined #ruby
msgodf has quit [Ping timeout: 252 seconds]
Stalkr_ has joined #ruby
Stalkr^ has quit [Read error: Connection reset by peer]
craigp has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
craigp has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
Stalkr^ has joined #ruby
joonty1 has quit [Ping timeout: 250 seconds]
AlSquirrel has joined #ruby
anaeem1 has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
AlexRussia has joined #ruby
hiyosi has joined #ruby
shredding has joined #ruby
quazimodo has joined #ruby
Stalkr^ has quit [Client Quit]
AlSquire has quit [Ping timeout: 272 seconds]
quazimodo has quit [Remote host closed the connection]
AFKGeek has joined #ruby
koderok has quit [Quit: koderok]
mbr has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
D9 has joined #ruby
sirpeng has quit [K-Lined]
workmad3 is now known as wm3|away
shock_one has joined #ruby
msgodf has joined #ruby
yfeldblum has joined #ruby
Stichoza has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
dkphenom has joined #ruby
ndrei has joined #ruby
vjt has joined #ruby
sk87 has joined #ruby
Guest82917 is now known as _chs_
oo_ has quit [Ping timeout: 244 seconds]
mbr has joined #ruby
arturhoo has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
nclbr has quit [Remote host closed the connection]
dkphenom has quit [Read error: Connection reset by peer]
lucianosousa_ has joined #ruby
lucianosousa has quit [Ping timeout: 264 seconds]
lucianosousa_ is now known as lucianosousa
aclearman037 has joined #ruby
Cyberheb has joined #ruby
tristanp has joined #ruby
joonty1 has joined #ruby
lbrf has joined #ruby
yalue has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
Soda has quit [Remote host closed the connection]
<shevy>
what would you guys say does python better than ruby?
<apeiros_>
the indentation thingy
nanSTA has quit [Read error: Connection reset by peer]
ikaros has left #ruby ["Ex-Chat"]
nanSTA has joined #ruby
<wasamasa>
the sanity part
chinmay_dd has quit [Ping timeout: 256 seconds]
<shock_one>
Could you guys suggest me a fixed sized data structure with random access? Like an array, but which would drop out the exceeding elements. I've found https://rubygems.org/gems/revolver , but it's not very popular.
lbrf has quit [Ping timeout: 258 seconds]
<shock_one>
shevy: python has better scientific libraries. People use it instead of R.
<wasamasa>
shock_one: lol, that's just an array with weird access methods
AmirolAhmad has joined #ruby
<shock_one>
wasamasa: exactly what I need. It makes sure the size is no more than n elements.
quimrstorres has quit [Remote host closed the connection]
<shock_one>
Like a cache, but not without keys.
nclbr has joined #ruby
<shock_one>
*but without.
yfeldblum has joined #ruby
<apeiros_>
shock_one: wrap an array?
<apeiros_>
and why is lack of popularity a reason not to use revolver?
<wasamasa>
because 50 lines of code need community support!
Abhijit has joined #ruby
webgen has joined #ruby
webgen has quit [Client Quit]
lucianosousa_ has joined #ruby
paulfm has joined #ruby
Timgauthier is now known as timgauthier_away
lucianosousa has quit [Ping timeout: 244 seconds]
lucianosousa_ is now known as lucianosousa
yfeldblum has quit [Ping timeout: 240 seconds]
st0mar has quit [Ping timeout: 244 seconds]
tlarevo has quit [Read error: Connection reset by peer]
tlarevo has joined #ruby
<shock_one>
It's not. I just thought there is a library everybody knows, which I'm missing.
<apeiros_>
ruby-toolbox would know
<apeiros_>
generic datastructures sadly have little popularity in ruby :-/
<shevy>
Array!
AmirolAhmad has quit []
yxhuvud has joined #ruby
<apeiros_>
shevy: that's in core already. I meant beyond core/stdlib
triple_b has joined #ruby
nanSTA has quit [Read error: Connection reset by peer]
<shock_one>
shevy: apeiros_, is ruby your favourite language?
<shevy>
yeah
nanSTA has joined #ruby
<shock_one>
What do you think about dynamic typing with regards to stability?
<shock_one>
I know about Ruby 3.
Abhijit has quit [Remote host closed the connection]
<shevy>
dunno
<shevy>
I need clear use cases where things are awesome
matchaw has joined #ruby
<apeiros_>
shock_one: yes
<apeiros_>
I have no opinion on dynamic typing
_ixti_ has quit [Ping timeout: 244 seconds]
krz has joined #ruby
pitty031 has quit [Ping timeout: 250 seconds]
nclbr has quit [Remote host closed the connection]
ARCADIVS has quit [Quit: ARCADIVS]
_ixti_ has joined #ruby
uber_hulk has quit [Quit: leaving]
bjornar has quit [Remote host closed the connection]
linojon has joined #ruby
<shock_one>
I like the flexibility of Ruby a lot, but I rarely use it. Unfortunately, I can't remember any applications to show as a use case, but, for example, in Haskell community they say that if it compiles then likely it works as expected. Although, I'm afraid we can't make a single creature from a flexible sneak and a stable though awkward elephant.
Deele has joined #ruby
<shevy>
shock_one what language do you use?
<shock_one>
I program in Ruby most of my time.
tlarevo has quit [Remote host closed the connection]
_5kg has quit [Ping timeout: 240 seconds]
chris613 has quit [Ping timeout: 245 seconds]
<jmaister>
I mostly use PHP. PHP has terrible type handling :/
nclbr has joined #ruby
<apeiros_>
I have serious doubts about that haskell claim
<shevy>
shock_one and what do you do with ruby? commandline actions? web-related stuff?
linojon has quit [Client Quit]
<shock_one>
Although, I secretly take a peak at Go, Rust, and Haskell.
<shevy>
at least they should get a better design than the official php docs, makes them look all incompetent :)
<tobiasvl>
jmaister: yeah that one is nice too! but shevy said that PHP's redeeming quality was it's documentation, which http://phpmanualmasterpieces.tumblr.com disputes
<shock_one>
shevy: what other languages do you know (besides JS, everybody thinks he knows it).
<shevy>
shock_one php :D
<shevy>
and less than 2 years of perl; I was actually more productive in php than in perl
timonv^ has joined #ruby
<shevy>
shock_one in the long run though I think there is no way around for anyone programming for many years without one of these: C/C++/Objc/Java/C#/D
<shock_one>
And wasn't it lovely in, say, Java, to press a dot and see all the methods available?
boombadaroomba has joined #ruby
<xxneolithicxx>
smh, nope nope nope
ta has quit [Remote host closed the connection]
bMalum has joined #ruby
bMalum has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 244 seconds]
bMalum has joined #ruby
Darryl__ has joined #ruby
bMalum has quit [Remote host closed the connection]
mary5030 has joined #ruby
<xxneolithicxx>
Java is probably one of the few languages that is so absurd that u need stuff like that to get anything done in a sane timeframe
eichenwald has joined #ruby
tier has joined #ruby
<apeiros_>
java is overengineered to the point of being impractical :-/
* jmaister
throws UWotM8Exception
<shock_one>
shevy: I'm not trying to seduce you. It's just I'm still in search for a perfect language, and every new one disappoints me in one or another way.
<xxneolithicxx>
*dont even get me started on the fact that Java in corporations just seems to breed copy/paste coders for some reason
<shevy>
shock_one do you think you can find a perfect language?
<xxneolithicxx>
let us know when u find the unicorn
<shevy>
xxneolithicxx that copy/paste killed me ... it makes Java so boring
<apeiros_>
xxneolithicxx: and coders who think refactor means "press button 'refactor' in IDE"
craigp has joined #ruby
kaspertidemann has joined #ruby
boombadaroomba has quit [Ping timeout: 255 seconds]
tesaf has joined #ruby
roolo has quit [Remote host closed the connection]
<xxneolithicxx>
people who's first language is Java for some reason also get stuck in this "I must abstract" the living day lights out of things before they have even solved the damn problem they are working on
<xxneolithicxx>
it leads to some really ugly code
<apeiros_>
but I think that's a property applying to any sufficiently easy language. it attracts people who are not elite. and that's not entirely bad.
lxsameer has quit [Quit: Leaving]
Kricir has joined #ruby
<xxneolithicxx>
I guess
dblessing has joined #ruby
<shevy>
does one of you know whether the semantics of "alias" and "alias_method" changed? I seem to be able to use "alias" but in the past I used alias_method usually; I thought it was because there was a peculiar way for some method names with "alias", whereas with "alias_method" it always seemed to work hence why I used that... may be in ruby 1.8.x days
chinmay_dd has joined #ruby
Vile` has quit [Ping timeout: 245 seconds]
craigp has quit [Ping timeout: 272 seconds]
s00pcan has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
oo_ has joined #ruby
diego_ar has joined #ruby
tlr has joined #ruby
s00pcan has joined #ruby
yfeldblum has joined #ruby
josephndenton has joined #ruby
sigurding has quit [Ping timeout: 245 seconds]
sigurding_ has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
<globait>
hey guys what would you recommend to learn ruby logical thinking
jdj_dk has quit [Remote host closed the connection]
ajaiswal has quit [Quit: Leaving]
<tobiasvl>
globait: what's ruby logical thinking?
quimrstorres has quit [Ping timeout: 244 seconds]
<xxneolithicxx>
that would work except for the shell out is not platform agnostic and insanely hackish, I have to run my code on MRI 1.8.7+ and on Lin/Win.
<globait>
i'm struggling with logic it seems like i lack it
<globait>
have you guys heard of codewars?
<jmaister>
can you elaborate on your use of the word "logic"?
Rollabunna has quit [Remote host closed the connection]
clauswitt has quit [Ping timeout: 252 seconds]
shock_one has quit [Read error: Connection reset by peer]
<gregf_>
globait: logic cannot be obtained from ruby :/, unfortunately. your best bet is get a problem statement and try finding a solution for it :)
zybi1 has joined #ruby
j2p2 has quit []
<globait>
could i be mentally challenged?
<tobiasvl>
globait: what makes you think that?
arturhoo has quit [Quit: arturhoo]
<tobiasvl>
so far all you've said is that you struggle with "logic" whatever you mean by that
<tobiasvl>
hard for us to make a diagnosis on your mental health based on that…
<globait>
well, the fact that i can't solve problems on codewars and i've been working hard for months and still not understanding a lot of the syntax, also i can't really finish something without looking back at examples as a crutch
<globait>
that's what makes me think that i might be mentally challenged
<xxneolithicxx>
maybe you are aiming too high for your skill level?
<tobiasvl>
so you suggest that people for whom programming doesn't come naturally are all retarded?
<tobiasvl>
an extravagant claim
klmlfl has joined #ruby
<wasamasa>
isn't codewars that website that taught you thinking inside the box?
<globait>
i don't know about everyone, but i think i might be
* wasamasa
checks
ghostbox has joined #ruby
<wasamasa>
no, that was codewarrior I guess
jherbst has joined #ruby
S0da has joined #ruby
<globait>
thank you for the coursera link, i am going to work really hard and try to go through the corue on logic :)
<Linell_>
globait: Nah. Programming is just hard and takes a long time to really "get". If you're struggling with logic, check out that link above for a formal logic course. They're nice.
klmlfl has quit [Remote host closed the connection]
<wasamasa>
well, programming is mostly solving problems
<wasamasa>
knowing more than one programming language, data structures and algorithms help a lot
<globait>
yep i am that guy from #lisp, the people from #lisp were nice enough to show me to this channel :)
mbeasley has quit [Quit: WeeChat 0.4.2]
robustus has quit [Ping timeout: 250 seconds]
redjack1964_ has joined #ruby
mradmacher has quit [Ping timeout: 264 seconds]
<gregf_>
globait: if you can code in lisp you 'surely' have logic dont you think so?
beef-wellington has joined #ruby
<globait>
no gregf_ , the reason i went to lisp is exactly for that reason, i heard lisp people are some of the most knowledgeable in the entire industry
GreatSUN has quit [Ping timeout: 246 seconds]
redjack1964 has quit [Ping timeout: 255 seconds]
last_staff has quit [Quit: last_staff]
<gregf_>
globait: python is an easy language for beginners :/
robustus has joined #ruby
Kricir has joined #ruby
globait has quit [Quit: Page closed]
evanjs has joined #ruby
<gregf_>
oh - no. guess he's gone/going to #python :/
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nanSTA has quit [Ping timeout: 258 seconds]
klmlfl has joined #ruby
studiotate has joined #ruby
phutchins has joined #ruby
st0mar has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
noop has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby
mary5030 has quit [Remote host closed the connection]
it0a has joined #ruby
mary5030 has joined #ruby
tier_ has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
spider-mario has joined #ruby
akaiiro has joined #ruby
mbeasley has joined #ruby
dc_ has joined #ruby
joonty1 has joined #ruby
momomomomo has quit [Client Quit]
jimbach has joined #ruby
joonty has quit [Ping timeout: 258 seconds]
rbrs has quit [Quit: Leaving]
tier has quit [Ping timeout: 245 seconds]
ta has joined #ruby
ta has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
ta has joined #ruby
kobain has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
anaeem1_ has quit [Read error: Connection reset by peer]
kobain has quit [Max SendQ exceeded]
dc has quit [Ping timeout: 258 seconds]
elastik has quit [Ping timeout: 264 seconds]
anaeem1_ has joined #ruby
yfeldblum has joined #ruby
BadQuanta has joined #ruby
Xeago has quit [Remote host closed the connection]
FelipeAbella has joined #ruby
bayed has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
oleo has joined #ruby
Aswebb_ has joined #ruby
mjuszczak has joined #ruby
Shazaum has quit [Changing host]
Shazaum has joined #ruby
danman has joined #ruby
rylev has quit [Remote host closed the connection]
<wasamasa>
lol
<wasamasa>
#python does not tolerate much smalltalk
<wasamasa>
huehuehue
aganov has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
<shevy>
yeah
<shevy>
I always get banned when I ask them sSHhs hshs SHhs hszshs?
timonv^ has quit [Remote host closed the connection]
Crazy_Atheist has joined #ruby
conniemj_ has joined #ruby
triple_b has joined #ruby
wldcordeiro has quit [Quit: Leaving]
aganov has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
CustosLimen has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 255 seconds]
Morkel has quit [Quit: Morkel]
timonv_ has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
arup_r has quit [Ping timeout: 264 seconds]
elastik has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
Aswebb_ has joined #ruby
skarn has quit [Remote host closed the connection]
oo_ has joined #ruby
<chinmay_dd>
Guys, sorry this is a little bit off topic but I am splitting my hair over it. I have a code which solves this problem XMAX on SPOJ. I have a C++ and a Ruby code. The C++ code passes but Ruby doesnt. I had asked this question earlier but even after applying the edits, it failed to run. Ruby - https://gist.github.com/chinmaydd/f82ad5fe3f088b1ff22c C++ - https://gist.github.com/chinmaydd/bfbbdc4bbae9aee06f7d Thanks :)
aganov has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
timonv_ has quit [Ping timeout: 264 seconds]
bricker`work has joined #ruby
jenrzzz has joined #ruby
arup_r has quit [Client Quit]
elastik has joined #ruby
jenrzzz has quit [Client Quit]
AlbertoCG has joined #ruby
<waxjar>
chinmay_dd: a little more context would be useful. what are you trying to do, what is your input, expected and actual output, etc?
sigurding_ has quit [Quit: sigurding_]
<chinmay_dd>
waxjar, hey thanks for the reply. I am trying to solve this problem http://www.spoj.com/problems/XMAX/ using Gaussian elimination.
AndyBotwin has joined #ruby
dANO has joined #ruby
jaequery has joined #ruby
arup_r has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
lbrf has joined #ruby
jenrzzz has joined #ruby
sambao21 has joined #ruby
momomomomo has joined #ruby
hamakn has quit [Remote host closed the connection]
x1337807x has joined #ruby
jaequery has quit [Client Quit]
jaequery has joined #ruby
tvw has quit []
Hijiri has joined #ruby
ferr has joined #ruby
<chinmay_dd>
The problem is the codes are 'almost' exactly the same(even the variable names), but C++ code is correct and Ruby one is giving a NZEC(Non zero exit code) according to the Online judge.
adriancb has quit [Remote host closed the connection]
pwh has quit []
Takle has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
mallu has joined #ruby
<waxjar>
do you not get any errors printed?
<chinmay_dd>
None at all. I tried for a bunch of test cases.
shredding has quit [Quit: shredding]
ezio has joined #ruby
<waxjar>
the >>= stuff looks suspicious, i don't think that's syntax
<waxjar>
*valid
mikepack has quit [Ping timeout: 258 seconds]
troyready has joined #ruby
tlarevo has joined #ruby
anaeem1_ has joined #ruby
Takle has joined #ruby
<chinmay_dd>
oh okay. waxjar let me try it out.
jamgood96 has joined #ruby
Xeago has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
timonv_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
sambao21 has joined #ruby
devoldmx33 has joined #ruby
wallerdev has joined #ruby
havenwood has joined #ruby
aspires has quit []
wm3|away_ has quit [Ping timeout: 265 seconds]
shock_one has quit [Remote host closed the connection]
anarang has quit [Quit: Leaving]
<chinmay_dd>
:( nope. Seems to be a weird problem
<mallu>
is there any way to see gem dependencies?
sambao21 has quit [Quit: Computer has gone to sleep.]
St_Marx has quit [Remote host closed the connection]
shazaum_ has joined #ruby
Shazaum has quit [Ping timeout: 250 seconds]
jtheuer has quit [Quit: Verlassend]
MasterPiece has quit [Quit: Leaving]
dts|supersaiyan is now known as dts|pokeball
bmichelsen has quit [Quit: ZZZzzz…]
gauke has joined #ruby
Lingo has joined #ruby
mattmcclure has joined #ruby
<shevy>
mallu: gem dependency -r name_of_gem_here
ghr has quit [Ping timeout: 260 seconds]
St_Marx has joined #ruby
mityaz has quit [Quit: Leaving]
<mallu>
shevy: thanks.. when I instal a gem something in the dependency tree is fetching a gem called ohai ver 8.0 How can I find out what is fetching this gem
checkit has joined #ruby
skarn has joined #ruby
conniemj_ has quit [Quit: (null)]
Takle has quit [Remote host closed the connection]
gauke has quit [Client Quit]
<shevy>
not sure there is an easy way
<soahccc>
with bundler there is
_mtr has joined #ruby
aspires has joined #ruby
doev has quit [Ping timeout: 245 seconds]
klmlfl has joined #ruby
<shevy>
how would he go about finding that out with bundler?
diego_ar has joined #ruby
<soahccc>
I would search for the gem in the gemfile.lock
<arup_r>
mallu: from which country are you ?
<shevy>
he may not have that file
<mallu>
I don;t have gemfile.lock
yfeldblum has joined #ruby
Lingo has quit [Quit: (null)]
<soahccc>
Then I just would create one :) otherwise I have no idea
<shevy>
mallu there must be some Gem command that allows it, as Gem itself manages to find out. I would ask drbrain on #rubygems
<mallu>
ok thanks
<mallu>
arup_r: why?
blz37 has joined #ruby
wjimenez5271 has joined #ruby
<arup_r>
mallu: You tell me.. Then I'd say why? You first tell Dude! :-)
jimmyhoughjr has joined #ruby
diego_ar has quit [Ping timeout: 258 seconds]
klmlfl has quit [Ping timeout: 264 seconds]
pglombardo has joined #ruby
ninegordon has joined #ruby
mikepack has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
<shevy>
arup_r hey you asked me that question, then you disconnected quickly!
econerd4ever has joined #ruby
allcentury has joined #ruby
<ninegordon>
hey so what's a good place to learn ruby for absolute beginners?
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
<jokke>
maybe now someone here with experience with treetop?
jaequery has quit [Client Quit]
econerd4ever has quit [Remote host closed the connection]
mikepack has joined #ruby
ghostbox has quit [Remote host closed the connection]
econerd4ever has joined #ruby
st0mar has quit [Ping timeout: 264 seconds]
chipotle has quit [Ping timeout: 244 seconds]
gsd has quit [Read error: Connection reset by peer]
gsd has joined #ruby
Ankhers has joined #ruby
chipotle has joined #ruby
kish has quit [Ping timeout: 264 seconds]
sarmiena_ has joined #ruby
djbkd has quit [Quit: My people need me...]
quimrsto_ has joined #ruby
AlbertoCG has quit [Ping timeout: 272 seconds]
s00pcan has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
econerd4ever has quit [Ping timeout: 252 seconds]
anaeem1 has quit [Remote host closed the connection]
jimmyhoughjr has joined #ruby
klmlfl has joined #ruby
baweaver has quit [Remote host closed the connection]
marr has quit [Ping timeout: 252 seconds]
Stoge88 has joined #ruby
vvivv has quit [Quit: Leaving]
zB0hs_ has joined #ruby
quimrstorres has quit [Ping timeout: 244 seconds]
econerd4ever has joined #ruby
beneggett has quit [Read error: Connection reset by peer]
Guest8055 has quit [Changing host]
Guest8055 has joined #ruby
Guest8055 is now known as blindsight
zB0hs has quit [Ping timeout: 250 seconds]
checkit has joined #ruby
checkit has quit [Client Quit]
nb_bez___ has quit [Quit: Connection closed for inactivity]
TerjeLarsen has joined #ruby
ptrrr has joined #ruby
Stoge88 has quit [Client Quit]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikepack has quit [Read error: Connection reset by peer]
Cyberheb has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby
shock_one has quit [Remote host closed the connection]
Spami has joined #ruby
beneggett has joined #ruby
dfinninger has joined #ruby
klmlfl has quit [Ping timeout: 264 seconds]
cndiv has joined #ruby
rpag has joined #ruby
larissa has quit [Quit: Leaving]
aclearman037 has quit [Quit: I'm out!]
BadQuanta has joined #ruby
arietis has joined #ruby
larissa has joined #ruby
tesaf has quit [Ping timeout: 245 seconds]
zB0hs_ has quit [Ping timeout: 240 seconds]
rpag has quit [Remote host closed the connection]
axilla has joined #ruby
ghr has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
rylev has joined #ruby
S0da has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
aspires has joined #ruby
Areessell has joined #ruby
kamil has quit [Disconnected by services]
kamilc__ has joined #ruby
Synthead has joined #ruby
tristanp has quit [Remote host closed the connection]
chinmay_dd has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 260 seconds]
grn_ has joined #ruby
Timgauthier is now known as timgauthier_away
akaiiro has quit [Ping timeout: 256 seconds]
aclearman037 has joined #ruby
Calmoto has joined #ruby
cndiv has quit [Quit: WeeChat 0.4.3]
yourabi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beneggett has quit [Ping timeout: 252 seconds]
rpag has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
beneggett has joined #ruby
Hijiri has joined #ruby
procat has quit [Ping timeout: 244 seconds]
tesaf has joined #ruby
jeer has quit []
klmlfl has joined #ruby
diego_ar has joined #ruby
<grn_>
Hi! I'm trying to implement polynomial manipulation. My WIP is https://gist.github.com/grn/b7f022b8193c3b26600a. What I don't like is, for example, Polynomial#+. It just looks ugly. Does anyone have an idea how to make it cleaner?
cleopatra has joined #ruby
<claf>
lets see
yetanotherdave has joined #ruby
vjt has quit [Quit: Lost terminal]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<grn_>
I'm hoping to rely on polymorphism more and reduce the number of ifs (and #is_a?). But I really don't know whether that's possible.
lapidary has joined #ruby
sea_local has quit [Remote host closed the connection]
<centrx>
grn_, Isn't monomial just the trivial case of polynomial? Why different code for it?
chipotle has quit [Ping timeout: 244 seconds]
beef-wellington has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
_JokerDoomWork has joined #ruby
kish has joined #ruby
<xxneolithicxx>
lapidary: whats your ruby version
arup_r has quit [Quit: Leaving.]
<lapidary>
1.9 something
<lapidary>
ah, I found -v for version… I think that’ll do it
chipotle has joined #ruby
jerius_ has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
JokerDoomWork has quit [Ping timeout: 250 seconds]
chipotle has quit [Read error: Connection reset by peer]
x1337807_ has joined #ruby
x1337807x has quit [Ping timeout: 258 seconds]
JokerDoom has quit [Ping timeout: 244 seconds]
<lapidary>
1.9.3
veeberz has quit [Ping timeout: 252 seconds]
beneggett has quit [Ping timeout: 256 seconds]
tesaf has quit [Remote host closed the connection]
tesaf has joined #ruby
beef-wellington has joined #ruby
<claf>
grn_: you should add simple tests that simultaneously unit, regressioan test, and demonstrate
<claf>
if posso
beneggett has joined #ruby
kish has quit [Changing host]
kish has joined #ruby
seand53 has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
<grn_>
centrx: two reasons: 1. I was working on a library for measurement units which I wanted to implement as monomials over a ring with unit names being the variables (i.e. R[s, kg, ...]). I'm just exploring the possibility of supporting non-monomial polynomials like 1 kg + 5 s. The second reason is that I tried to mimic the theoretical construction of a polynomial ring in multiple variables where you first define the monomial of a given multid
<grn_>
egree and then define polynomials in terms of monimials.
fandi has joined #ruby
<grn_>
centrx: but I think that you're right that dealing only with polynomials will lead to simplified code
jenrzzz has joined #ruby
<grn_>
claf: I have a spec file which I didn't upload as it isn't important for this discussion
<claf>
as to the #+
CustosLimen has joined #ruby
Jackneill has joined #ruby
<claf>
its good enough for ruby core, why not your lib?
<claf>
also, a library that renames 'nums * method seems like a gamble
<grn_>
claf: I'm just not satisfied with it. Please, treat it as a code kata where I want to come up with the best code possible.
<grn_>
claf: yeah, that part is risky ;-) I need these aliases in order to extend #*. This way you can write 2 * some_polynomial. Other cases are handled by the original #*. If I were to release this library to the public I'd certainly make this an optional feature.
<claf>
grn_: are you sure you need the nested if's with if index
lbrf has joined #ruby
veeberz has quit [Client Quit]
einarj has joined #ruby
<grn_>
claf: yeah, that's a really ugly part. Preferably I'd have no ifs at all. In this case the else clause delegates the hard work (i.e. actually adding things) to the consequent of the top-level if. I think that centrx is right that just having a single Polynomial class would make things simpler. I'll explore this direction ...
jenrzzz has quit [Ping timeout: 256 seconds]
pwh has joined #ruby
gauke has joined #ruby
MrIlyas has quit [Ping timeout: 252 seconds]
exile-bot-2 has joined #ruby
<claf>
grn_: well its not really ugly
exile-bot-2 has quit [Remote host closed the connection]
patteh is now known as Patteh
exile-bot-2 has joined #ruby
<claf>
grn_: thats just an idea, so maybe you could find a more succinct way to express that
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
FelipeAbella has quit [Quit: Leaving]
<claf>
and fewer LOC is always good, so imo ditch the monome
exile-bot-2 has quit [Remote host closed the connection]
pwh has quit [Client Quit]
rdark has quit [Quit: leaving]
lbrf has quit [Ping timeout: 245 seconds]
exile-bot-2 has joined #ruby
<grn_>
Yeah, working on that right now. Will post results soon ...
<claf>
I hope that helps 8) grn_ your code in general is nice and clean looking
<mbeasley>
anyone ever had threading issues when executing shell commands from a background worker with resque?
<grn_>
Sure it helps! Thanks a lot!
<claf>
mbeasley: threading? or ?
sifi has joined #ruby
Mateon1 has quit [Read error: Connection reset by peer]
<mbeasley>
probably my poor choice of words based on assumption. i'm often getting "interrupted system calls" when executing shell commands from resque workers
sambao21 has joined #ruby
<claf>
yeah, I'd hazard a guess no threads used there
<claf>
well, ruby doesn't
<claf>
except
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Akagi201 has joined #ruby
<claf>
you might use something threaded, and jruby does, if you tell it to
<mbeasley>
no - you're probably right. ignore the threading bit
<rpag>
mbeasley, afaik resque uses a process pool instead of a thread pool
<sifi>
#ruby I have a question. I am doing a Net::HTTP request through HTTParty and when I set the read timeout to 10 second and it eventually hits the timeout the exception takes an additional 10 seconds before my code in the `rescue` takes to process. I'm measuring this by setting a Time.now before the request and inside the rescue I'm doing a diff of the current time.
Xeroa has joined #ruby
seand53 has quit [Remote host closed the connection]
<mbeasley>
correct. - sorry about the threading bit. but as far as the `interrupted system call` bit, anyone ever encountered that with resque workers?
<rpag>
i havent
<claf>
mbeasley: well, you could look at which commands get interrupted, but one could guess that it may be two processes trying to access same file
<claf>
could/should
<mbeasley>
claf: interesting thought. i'm running `file -Lb` on a file to detect for gzipped files
anaeem1_ has joined #ruby
baweaver has joined #ruby
claymore has joined #ruby
<claf>
IO blox
XeroaSensei has joined #ruby
XeroaSensei has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
bmichelsen has joined #ruby
tier_ has quit []
Stichoza has quit [Quit: Be back later ...]
lapidary has quit [Quit: lapidary]
<mbeasley>
claf: can you elaborate? are you reiterating your suspicion that two processes could be accessing the same file?
ferr has quit [Ping timeout: 244 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
quimrsto_ has quit [Remote host closed the connection]
pglombardo has quit [Ping timeout: 264 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tristanp has quit [Read error: Connection reset by peer]
danman has quit [Quit: danman]
tristanp has joined #ruby
<claf>
mbeasley: yes
akaiiro has joined #ruby
davejlong has joined #ruby
marr has joined #ruby
<mbeasley>
claf: k. i'll dig deeper. thanks
studiotate has joined #ruby
<claf>
mbeasley: you could try following which processes access which files
<axilla>
hi all, i'm trying to think through a recursive function. I have a folder object that lists a bunch of other file and folder mini objects(just their id and name). I need to recursively loop through the original folder object and download all the files + folders and their files. Anyone have a good read that I can look at on recursive functions?
zB0hs has joined #ruby
Zebroid has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
<axilla>
havenwood: a its an object with json folder data in it related to our app and the app i'm working on integrating with
timonv_ has joined #ruby
<axilla>
rails app
wldcordeiro has joined #ruby
<grn_>
I think the code can be improved a little bit by introducing a MultiIndex class and implementing multi-index addition using as MultiIndex#+ instead of #hash_sum.
<axilla>
the object contains data about the folder and its contents.
<shevy>
havenwood learns something new every day!
<axilla>
that's what programing is all about!
<axilla>
i love the fact i learn something new everyday
exile-bot-2 has joined #ruby
ghr has joined #ruby
<grn_>
axilla: you can implement depth-first search and pass the app-specific code in a block
<axilla>
interesting
tobacco_joe has quit []
oo_ has joined #ruby
<havenwood>
shevy: i have up to seven pixie objects and i want their dust distributed evenly. there are mini and micro pixie objects in the mix too. please help.
<havenwood>
shevy: i need moar coffee!
tesaf has joined #ruby
procat has joined #ruby
<axilla>
that's no where near the question i asked, but ok
Aswebb_ has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
ghr has quit [Ping timeout: 272 seconds]
<axilla>
my question returned an answer that was helpful and exactly what I needed to see, so you seem to be the only one having an issue.
stichoza_ has joined #ruby
<claf>
I was wondering who stole my pixie object API from my quantum computae
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grn_ has quit []
Danishman has joined #ruby
<havenwood>
axilla: so was the answer file descriptors, a deeply nested hash, or using a block?
Stichoza has quit [Ping timeout: 258 seconds]
oo_ has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
<shevy>
always keep things simple
cleopatra has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
shazaum_ has quit [Quit: This computer has gone to sleep]
diego_ar has quit []
doev has joined #ruby
sirpeng has joined #ruby
Aswebb_ has joined #ruby
atomical has joined #ruby
atomical has quit [Client Quit]
Aswebb_ has quit [Remote host closed the connection]
* claf
begins to dismantle the hand metaprogrammed into a shovel gun that shoots at the bullet-transmogrifying leg
atomical has joined #ruby
stichoza_ has quit [Read error: Connection reset by peer]
<havenwood>
axilla: it's easier to understand complex data than complex logic. Since most everything in Ruby is an Object, it's incredibly vague to talk about Objects.
stichoza_ has joined #ruby
stichoza_ has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
jerius_ has quit []
stichoza_ has joined #ruby
<havenwood>
axilla: Showing expected input and desired output is easy to understand.
jheg has quit [Quit: jheg]
<havenwood>
axilla: But if others understand, and you grok the answers, nevermind me! That works too. :)
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
checkit has quit [Read error: Connection reset by peer]
checkit has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
blizzy has quit [Ping timeout: 258 seconds]
mloveless has quit []
<bline79>
thank you havenwood
FDj has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
Linell_ has joined #ruby
Soda has joined #ruby
jimmyy has joined #ruby
<Linell_>
Does anyone have experience with testing an API using minitest? I'm looking for some best practices and whatnot?
Macaveli has quit [Ping timeout: 265 seconds]
<rpag>
your own API?
<Linell_>
Yeah
blindsight has joined #ruby
iamjarvo has joined #ruby
<Linell_>
Just making sure it's spitting out what it's supposed to
blindsight is now known as Guest3825
quimrstorres has joined #ruby
<rpag>
i use Minitest::Test for that, so test-unit style.
<rpag>
apeiros, sirpeng is a spam bot
lbrf has joined #ruby
tvw has joined #ruby
<Hanmac>
i also prefer the test-unit gem over minitest, but recently i found rspec nicely (so i tryed to use both in one of my projects)
bayed has quit [Quit: Connection closed for inactivity]
TerjeLarsen has quit [Ping timeout: 260 seconds]
reinaldob has quit [Remote host closed the connection]
<rpag>
Hanmac, i dont bother with the test-unit gem, but do class MyTest < Minitest::Test; def test_foo; end; end
lele has joined #ruby
<elemenopy>
just wanted to say thx everyone in channel. you guys have helped me so many times. that is all <3
camilasan has quit [Quit: No Ping reply in 180 seconds.]
dfinninger has quit [Remote host closed the connection]
<Hanmac>
rpag for one thing i needed stuff of the test-unit gem that mini test does have not ...
AlbertoCG has joined #ruby
<Linell_>
rpag: So do you just have a bunch of stuff like this? https://gist.github.com/Linell/9876f30561b6e654fa9b I'm currently doing that with each "branch" of my endpoint set up in a different full of stuff like that
<rpag>
what stuff?
elemenopy has quit []
<havenwood>
Linell_: already using Rack::Test?
<havenwood>
Linell_: that's handy
<Hanmac>
rpag: like when you have TestCase.setup is only called ones for each test_* function
dfinninger has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<rpag>
Linell_, i think the array literal should be the first argument to assert_equal ? it goes, assert_equal expectation, actual.
rismoney1 has quit [Remote host closed the connection]
mikepack has quit [Read error: Connection reset by peer]
<rpag>
Linell_, would also choose a better method name
<rpag>
but i guess thats just for the gist :)
kloeri has joined #ruby
jheg has quit [Quit: jheg]
wallerdev has joined #ruby
joast has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
Morkel has joined #ruby
joast has joined #ruby
camilasan has quit [Ping timeout: 260 seconds]
mjuszczak has quit []
versatiletech has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
mjuszczak has joined #ruby
camilasan has joined #ruby
kenneth has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
louism2wash has joined #ruby
weems|mac has joined #ruby
zz_jrhorn424 is now known as jrhorn424
yalue has quit [Quit: return 0;]
weems|mac has quit [Changing host]
weems|mac has joined #ruby
blizzy has joined #ruby
elastik has joined #ruby
weems|mac has quit [Max SendQ exceeded]
lbrf has joined #ruby
baroquebobcat has quit [Ping timeout: 255 seconds]
weems|mac has joined #ruby
beef-wellington has quit [Ping timeout: 252 seconds]
weems|mac has quit [Changing host]
weems|mac has joined #ruby
<Linell_>
So, when you're testing the api, how do you deal with the fact that there might not be data returned sometimes? Do you mock out the data somehow?
Kricir has quit [Remote host closed the connection]
TgMts has joined #ruby
quimrstorres has joined #ruby
beef-wellington has joined #ruby
<rpag>
is your API making HTTP calls?
nateberkopec has joined #ruby
<Linell_>
Yeah
<Linell_>
But lets say I'm testing one that gets the events of a certain day. What if that day had no events?
<rpag>
yeah, you usually would mock out HTTP calls because they can add a lot of time to your suite
cantonic has quit [Quit: cantonic]
<rpag>
id use webmock or something like that
baweaver has joined #ruby
claymore has quit [Quit: Leaving]
larissa has quit [Quit: Leaving]
samuel02 has quit []
sifi has left #ruby ["Leaving"]
<rpag>
you dont want your suite to randomly fail
<Linell_>
Right, that's what I'm kinda running into now
quimrstorres has quit [Remote host closed the connection]
<rpag>
check out webmock, there's a couple of libraries out there to handle it
<rpag>
there's vcr too, which records a live request and mocks subsequent requests
<rpag>
but i didnt like using vcr
mleone has quit [Ping timeout: 264 seconds]
<Linell_>
I think I may have misunderstood you, though. My tests are calling the HTTP endpoints of my api. But sometimes *my* api might not return any data. Which is valid sometimes for sure, but it seems like a test that just accepts not returning data as valid wouldn't be so useful
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
athan_ has joined #ruby
<Linell_>
So in theory I could just add stuff to the database, but I don't want the things I add to stay there forever, you know?
mleone has joined #ruby
camilasan has quit [Ping timeout: 260 seconds]
<rpag>
oh i see, yeah, misunderstood
<Linell_>
I'm sure that question would've come up eventually anyway
<rpag>
for that, you could create test data in the database, and clear it in a teardown method
<Linell_>
Oh. Yeah, I was definitely over thinking that one. Thanks!
cantonic has joined #ruby
ht has quit [Read error: Connection reset by peer]
spider-mario has quit [Remote host closed the connection]
quimrstorres has joined #ruby
camilasan has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
athan has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
quimrstorres has quit [Remote host closed the connection]
Pro| is now known as pro
pro is now known as Pro|
reinaldob has joined #ruby
Shazaum has joined #ruby
Synthead has quit [Remote host closed the connection]
<Fire-Dragon-DoL>
are there any short way to call a class method from an instance method of the same class? I usually do self.class.method
diegoviola has quit [Ping timeout: 264 seconds]
jfoy has joined #ruby
quimrstorres has joined #ruby
<jhass>
that's the shortest way I know
anaeem1_ has quit [Remote host closed the connection]
<centrx>
Fire-Dragon-DoL, that is the way, you could also specify the class itself instead of self.class
<Fire-Dragon-DoL>
mh no ok I prefer self.class
anaeem1_ has joined #ruby
<Fire-Dragon-DoL>
is usually shorter considering how I name things :P
<jhass>
self.class has the advantage of calling an override in a subclass too
<jhass>
apeiros_: sirpeng is a spam bot
silkfox has joined #ruby
jfoy has left #ruby [#ruby]
quimrstorres has quit [Remote host closed the connection]
grn_ has quit []
quimrstorres has joined #ruby
AndyBotwin has quit [Remote host closed the connection]
louism2wash has joined #ruby
jrhorn424 is now known as zz_jrhorn424
mjuszczak has quit []
beef-wellington has quit [Ping timeout: 250 seconds]
timonv_ has joined #ruby
beneggett has joined #ruby
evanjs has quit [Remote host closed the connection]
obscured has joined #ruby
anaeem1_ has quit [Ping timeout: 264 seconds]
cleopatra has joined #ruby
beneggett has quit [Client Quit]
evanjs has joined #ruby
paulfm has quit [Quit: Goodbye]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has quit [Ping timeout: 260 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
olivier_bK has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
StevenXL has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<StevenXL>
Hi, can someone help me understand why my very simple code doesn't work.
<jhass>
Hanmac: isn't that just a syntax rewrite to .each nowadays?
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
athan_ has quit [Ping timeout: 258 seconds]
freerobby has quit [Quit: Leaving.]
linojon has quit [Quit: linojon]
<waxjar>
yeah, seems like it jhass
quimrstorres has quit [Remote host closed the connection]
<Hanmac>
jhass: yeah more or less, but i found it funny that for c in "abc".each_char works too
<StevenXL>
great - thanks guys
<StevenXL>
really appreciate the help
StevenXL has quit [Quit: Leaving]
<waxjar>
Hanmac: Enumerators have an #each
<jhass>
well, if it's a syntax rewrite, "abc".each_char.each do |c| is pretty valid
boombadaroomba has quit [Ping timeout: 264 seconds]
Flcn has joined #ruby
maestrojed has joined #ruby
sambao21 has joined #ruby
AlbertoCG has quit [Ping timeout: 244 seconds]
jimmyy has quit [Ping timeout: 264 seconds]
MrIlyas_ has quit [Read error: Connection reset by peer]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<waxjar>
i wonder why is hasn't been removed or at least deprecated yet
zz_jrhorn424 is now known as jrhorn424
bklane has quit [Remote host closed the connection]
<jhass>
maybe for 3.0
<waxjar>
i never see it used, and last time i benchmarked it's even slighly slower than #each
lucianosousa has quit [Quit: lucianosousa]
linojon has joined #ruby
<waxjar>
*it was
<jhass>
don't think they could really remove it earlier
<jhass>
I do see it used occasionally
ghr has quit [Ping timeout: 265 seconds]
nanSTA has joined #ruby
<nanSTA>
Hey all, I am trying to use Sequel. And I just cannot get it to load into my ruby program. I get cannot load such file -- sequel/model (LoadError). It seems to load the doc sequel.rb but then fails.
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<nanSTA>
jhass: that is when i load sequel.rb which contains "require sequel/model"
jimbach has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<jhass>
please provide the output of both commands I gave
troyready has quit [Ping timeout: 264 seconds]
<jhass>
and I assume your real code has quotes around sequel/model
mbeasley has quit [Quit: WeeChat 0.4.2]
ta has quit [Remote host closed the connection]
tus has joined #ruby
mbeasley has joined #ruby
BadQuanta has quit [Quit: Leaving.]
Morkel has quit [Quit: Morkel]
checkit has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
whoisjake has quit []
<nanSTA>
jhass: i didnt have the gem...jhass, can u help me understand why i needed to install the gem and why i need a libs folder as well? Sorry, im new to programming
Xiti has quit [Ping timeout: 264 seconds]
<jhass>
you would expect require downloading and installing it for you?
<jhass>
and not sure what you mean with "need a libs folder"
athan_ has joined #ruby
byprdct has joined #ruby
silkfox has quit [Ping timeout: 245 seconds]
silkfox has joined #ruby
Spami has joined #ruby
checkit has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
jheg has joined #ruby
<nanSTA>
jhass: i have a dir in my program called "libs" where i have placed the git rep "sequel-master" to access the library. Would using 'bundler' make the process of installing my program and installing all required libs easier.
baweaver has quit [Remote host closed the connection]
reinaldob has joined #ruby
Spami has quit [Client Quit]
Aswebb_ has quit [Remote host closed the connection]
<jhass>
that's not required at all
jheg has quit [Client Quit]
<nanSTA>
okay, i see
<jhass>
you just do gem install sequel
studiotate has quit [Quit: Computer has gone to sleep.]
<nanSTA>
thank you jhass, youve cleared this up for me
byprdct has quit [Client Quit]
obscured has quit [Quit: leaving]
sea_local has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
jdj_dk has quit [Remote host closed the connection]
baweaver_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jrhorn424 is now known as zz_jrhorn424
camilasan has quit [Ping timeout: 260 seconds]
Soda has quit [Remote host closed the connection]
camilasan has joined #ruby
linojon has quit [Quit: linojon]
linojon has joined #ruby
troyready has joined #ruby
athan_ has quit [Remote host closed the connection]
rbennace_ has joined #ruby
yfeldblum has joined #ruby
rj46 has joined #ruby
<rj46>
hello, rbenv install x.y.z had ended with "The Ruby openssl extension was not compiled. Missing the OpenSSL lib", and the problem is after installation ~/.rbenv/version is empty, but when it was being installed There was ruby folder in versions folder, and with the end of installation it disappeared ;/ have you had something similar?;d
dfinninger has quit [Remote host closed the connection]
iamninja has quit [Remote host closed the connection]
Lilian has quit [Write error: Connection reset by peer]
St_Marx has quit [Write error: Broken pipe]
havenwood has quit [Remote host closed the connection]
p0wn3d_mhs has quit [Write error: Connection reset by peer]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has quit [Ping timeout: 256 seconds]
aspires has joined #ruby
zB0hs has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
rbennace_ has quit [Ping timeout: 244 seconds]
zB0hs has quit [Client Quit]
<fdelacruz>
rj46 which rbenv, brew or git install?
<rj46>
fdelacruz: git install
codecop has quit [Remote host closed the connection]
wildharvest has joined #ruby
duggiefresh has quit []
<fdelacruz>
rj46 cool, do you have openssl installed?
<rj46>
fdelacruz: I do, openssl is installed on this machine.
<fdelacruz>
brew or system
<rj46>
system
mjuszczak has joined #ruby
<rj46>
its fresh new rbenv
<rj46>
and theres almost nothing yet
<rj46>
i wanted to isntall ruby, and that what happend ;/
reinaldob has quit [Read error: Connection reset by peer]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
aarkerio has joined #ruby
linojon has quit [Quit: linojon]
it0a has quit [Quit: WeeChat 1.0.1]
josephndenton has quit [Ping timeout: 245 seconds]
ohaibbq has quit [Ping timeout: 258 seconds]
<aarkerio>
hi! I'm getting a weird behaviour, I'm running:
<aarkerio>
over = total_views >= max_allowed_views('free')
<aarkerio>
and I'm getting "false" when total_views = 14 and max_allowed_views('free') = 14
Timgauthier has joined #ruby
Shazaum has joined #ruby
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
exile-bot-2 has joined #ruby
Vile` has quit [Remote host closed the connection]
Alayde has joined #ruby
<Alayde>
When working with passing command line arguments into a method, is it frowned upon to just pass in the entire hash of arguments rather than just the ones your method will be using?
<jhass>
aarkerio: how do you verify that they're 14?
<zenspider>
aarkerio: you're obviously NOT getting what you think you're getting somewhere
baweaver_ has quit [Remote host closed the connection]
nahi has joined #ruby
procat has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
Vile` has joined #ruby
<claf>
Alayde: perhaps you could illustrate this scenario?
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aarkerio>
jhass, Rails.logger.warn "######## Totalviews: #{total_views} MAX VIEWS #{max_views}"
fdelacruz has joined #ruby
<aarkerio>
Totalviews: 14, MAX VIEWS: 14
<aarkerio>
in the log
nahi has quit [Client Quit]
jenrzzz has joined #ruby
narcan has joined #ruby
CrazyM4n has joined #ruby
<Alayde>
claf: Sure. Right now I'm just getting two strings from the user, one is a directory and the other is an environment. Then I'm building a fully qualified path for a file out of these two passed in arguments, inside of a method. If I were to add a third command line option, would it behoove me to change the fact that I'm passing in the entire hash and doing like: Dir = "#{options[:dir]}/#{options[:string]}"?
<Alayde>
claf: I'm doing this more for a learning exercise than anything
skarn has quit [Killed (sinisalo.freenode.net (Nickname regained by services))]
<aarkerio>
yeah, that could show a difference, thanks guys!!
chipotle has joined #ruby
baweaver has joined #ruby
<claf>
Alayde: not if you use argv strings to load a file
<claf>
well, more like, "perhaps best not to"
<Alayde>
claf: Ah, alright. What's the preferred method?
<claf>
well since this was a learning exercise
<claf>
Alayde: you pick the scenario
<claf>
then again, to save time, it may be best to pick a scenario where only you can run from command line 8D
nateberkopec has quit [Quit: Leaving...]
exile-bot-2 has quit [Remote host closed the connection]
<Alayde>
claf: If that's the case, let's say the idea is to pass in file names to the script, have it read them in, parse them, and print json to STDOUT
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<claf>
Alayde: so, can you think of exploit scenario for such
<rand0mbits>
i got a shared hosting plan with ruby version 1.8.7. is that too old for rails development? i'm a ruby newb, so i don't know much about it.
<claf>
rand0mbits: so, first check which is the latest 1.8
st0mar has joined #ruby
<claf>
rand0mbits: then you'd need to check with rails if they support
<claf>
then decide
<rand0mbits>
claf: ruby0lang.org says 2.1.5 is the latest
<rand0mbits>
ruby-lang.org, that is
<claf>
latest 2.1 yes
<claf>
now read what I said again, and retry
kiyote23 has joined #ruby
Alayde has left #ruby ["WeeChat 1.0"]
<rand0mbits>
ha, ok. you mean which minor is the latest? dunno, the site says old stable is 1.9.3. how do i check which 1.8 is the latest, and how would that be helpful?
beneggett has joined #ruby
hiyosi has joined #ruby
<claf>
for debian stable, 1.8.7.358
<claf>
thats all I know
* claf
raises ahnds
<rand0mbits>
haha, ok. their rails version is Rails 2.3.18. how is that?
<centrx>
That's also very old
beneggett has quit [Read error: Connection reset by peer]
<pontiki>
rand0mbits: i suggest you go ask in the #rubyonrails channel
<rand0mbits>
i'll try that, thanks :)
<claf>
#ruby-lang certainly knows about 1.8 and whether it is supported
<pontiki>
1.8.x is no longer supported by rails
<pontiki>
and rails is up to 4.1.x
<pontiki>
rails 2.3.18 is not officially supported either
kiyote23 has quit [Remote host closed the connection]
diegovio1 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Stoge88 has joined #ruby
<claf>
I can't tell if 1.8 has support...
<pontiki>
it does not
diegoviola has quit [Ping timeout: 250 seconds]
<claf>
!rails
kiyote23 has joined #ruby
jdj_dk has joined #ruby
reinaldob has quit [Remote host closed the connection]