apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
Hanmac has joined #ruby
alexspeller has joined #ruby
picca has joined #ruby
matchaw_ has quit [Remote host closed the connection]
tenmilestereo[aw has quit [Read error: Connection reset by peer]
alexspeller has quit [Ping timeout: 252 seconds]
kokainepizza has quit [Quit: My pooter is sleep.]
tommyvyo has quit [Quit: Computer has gone to sleep.]
Virunga has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
Targen has quit [Read error: Operation timed out]
mengu has quit [Quit: Leaving]
Targen has joined #ruby
gnul0ver has joined #ruby
cascalheira has joined #ruby
markit has quit []
under has joined #ruby
<under> Hello
_64k has quit [Quit: _64k]
pxjorge has quit [Quit: Leaving]
autumn has joined #ruby
arya_ has joined #ruby
AtoxIO has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 244 seconds]
dsdeiz has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
<fowl> under: we built this city
<fowl> under: on rock & roll
* fowl drops the mic
fowl has left #ruby ["Leaving"]
<under> lol
CaptainJet has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
picca has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 265 seconds]
arya has joined #ruby
tommyvyo has joined #ruby
cascalheira has quit [Quit: Leaving...]
swex has quit [Remote host closed the connection]
swex has joined #ruby
joofsh has joined #ruby
cascalheira has joined #ruby
Agbeladem has quit [Quit: Leaving.]
arya has quit [Ping timeout: 244 seconds]
daniel_- has joined #ruby
lenovodroid has quit [Ping timeout: 250 seconds]
lenovodroid has joined #ruby
arya has joined #ruby
jenrzzz has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
atno has quit [Ping timeout: 265 seconds]
tchebb has quit [Ping timeout: 252 seconds]
TheFuzzball has joined #ruby
ltsstar has quit [Quit: ltsstar]
baphled has quit [Ping timeout: 246 seconds]
cascalheira has quit [Quit: Leaving...]
tchebb has joined #ruby
arya has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
havenn has joined #ruby
dr_neek has quit [Quit: dr_neek]
arya has joined #ruby
rakl has quit [Quit: sleeping]
otters has quit [Ping timeout: 252 seconds]
atno has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
moos3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
maetthew has quit [Quit: bye]
maetthew has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
taoru has joined #ruby
alexy has joined #ruby
alexy has left #ruby ["Leaving"]
zastern has joined #ruby
nari_ has joined #ruby
Guest9041 has quit [Ping timeout: 252 seconds]
neurotech has joined #ruby
Guest9041 has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
under has quit [Quit: Sto andando via]
jenrzzz has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 252 seconds]
taoru has quit [Remote host closed the connection]
taoru has joined #ruby
yshh has quit [Remote host closed the connection]
arya has joined #ruby
marr has quit [Ping timeout: 265 seconds]
rakl has joined #ruby
arya has quit [Ping timeout: 255 seconds]
koshii has quit [Ping timeout: 265 seconds]
pyr0commie has joined #ruby
arya has joined #ruby
swex has quit [Read error: Operation timed out]
dreinull has quit [Remote host closed the connection]
otters has joined #ruby
nyrb has quit [Read error: Connection reset by peer]
swex has joined #ruby
_bry4n has joined #ruby
matip_ has quit [Ping timeout: 264 seconds]
darthdeus has quit [Quit: Leaving...]
jjbohn has joined #ruby
gnul0ver has quit [Ping timeout: 250 seconds]
razibog has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 255 seconds]
arya has joined #ruby
Chryson has joined #ruby
tpelletier has joined #ruby
koshii has joined #ruby
katze_t4 has joined #ruby
agarie has quit [Read error: Connection reset by peer]
agarie has joined #ruby
krz has joined #ruby
ttt has joined #ruby
ttt has quit [Remote host closed the connection]
ttt has joined #ruby
foohey has quit [Quit: leaving]
arya has quit [Ping timeout: 255 seconds]
foohey has joined #ruby
foohey has joined #ruby
foohey has quit [Changing host]
freeayu has joined #ruby
reppard has joined #ruby
arya has joined #ruby
kaen has quit [Read error: Connection reset by peer]
agarie has quit [Ping timeout: 252 seconds]
<shevy> THE END OF THE WORLD IS COMING
<shevy> BUT FEAR NOT, YOU UNBELIEVERS
<shevy> FOR ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p362.tar.bz2 HAS ARRIVED TO SAVE US ALL!
arya has quit [Ping timeout: 256 seconds]
<Iszak> QUICK! Someone update the wikipedia page.
<shevy> lol
<shevy> I have put compilable programs into standalone yaml files. for this ruby version, I have to change only the url, then I can download and compile it via ruby scripts
tpelletier has quit [Quit: tpelletier]
lenovodroid has quit [Ping timeout: 246 seconds]
<shevy> what I have seen in some games, like a perl browser game, is that the wiki information is often outdated quickly
arya has joined #ruby
jblack has quit [Ping timeout: 246 seconds]
cakehero has joined #ruby
maetthew has quit [Changing host]
maetthew has joined #ruby
jgrevich_ has joined #ruby
<reppard> merry christmas everyone
jgrevich has quit [Ping timeout: 255 seconds]
jgrevich_ is now known as jgrevich
apeiros_ has joined #ruby
Hanmac1 has joined #ruby
wargasm has joined #ruby
niklasb has quit [Quit: WeeChat 0.3.9.2]
<reppard> what are some of the more difficult thinks to match using regexp? i am working on a prototype regex game and all mine are too easy
Hanmac has quit [Ping timeout: 260 seconds]
<reppard> i need some difficult ones to add to the problem set
<Iszak> reppard email, ip addresses, CSS selectors.
apeiros_ has quit [Ping timeout: 252 seconds]
<Iszak> ip addresses v4 and v6
<reppard> Iszak: got email addressa and a few IP addies but i hadn't thought to add css selectors
<reppard> very good
<reppard> thank you =)
havenn has quit [Remote host closed the connection]
toekutr has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<Iszak> reppard domain names are also good, note email addresses are near impossible.
havenn has joined #ruby
<reppard> Iszak: i've used a few domain name stubs too
<shevy> reppard everything with lookbehind in it
kaen has joined #ruby
<reppard> that one was really useful to me personally
<Iszak> regular expression pro level: HTML parser :P
<reppard> match it whether or not it includes http|https, if it has www and alpha numeric domain names
<shevy> file.c: In function 'rb_stat_inspect':
<shevy> file.c:795:46: error: expected ')' before 'PRI_LL_PREFIX'
<shevy> file.c:795:46: warning: spurious trailing '%' in format [-Wformat]
<reppard> kind of fun
rakl has quit [Quit: sleeping]
<shevy> gah
<reppard> haha
elico has quit [Remote host closed the connection]
assurbanipal has joined #ruby
<shevy> I am trying the earlier ruby 1.9.3
Takehiro has joined #ruby
<shevy> let's see if that has the error too
pyr0commie has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 256 seconds]
fred909 has joined #ruby
<reppard> shevy: what exactly is throwing that error?
Takehiro has quit [Remote host closed the connection]
v0n has joined #ruby
<reppard> /(http|https)?:?\/*w*\.?[a-z1-9]+\.[a-z]+/i
<reppard> that will match most domain combinations
<shevy> reppard hmmm
<shevy> nope
<shevy> earlier ruby version has the same error
tr4656 has quit [Quit: ZNC - http://znc.in]
<reppard> >> p /(http|https)?:?\/*w*\.?[a-z1-9]+\.[a-z]+/i.match(http://dumbshit.com)
<eval-in> reppard: Output: "/tmp/execpad-ec1d9190f5f8/source-ec1d9190f5f8:1: unknown regexp options - dbht\n" (http://eval.in/5346)
<shevy> but I compiled it from source ~2 months ago without that error
<reppard> oops, gotta be a string
<lupine> file:///home/lupine
<reppard> >> p /(http|https)?:?\/*w*\.?[a-z1-9]+\.[a-z]+/i.match("http://dumbshit.com")
<shevy> reppard, http://pastie.org/5578579
<eval-in> reppard: Output: "#<MatchData \"http://dumbshit.com\" 1:\"http\">\n" (http://eval.in/5347)
<reppard> good one lupine
<lupine> require 'uri' ; URI.parse(...)
tr4656 has joined #ruby
<lupine> an FSM game already exists, by the way
<reppard> shevy: what version are you compiling? And are you using rbenv or something?
chrisramon has quit [Quit: chrisramon]
<reppard> lupine: i'm sure there are many...not really the point
<reppard> if everyone just didn't code something that already existed we would have some shit coders and some shit software
Jake232 has quit [Quit: Computer has gone to sleep.]
<Iszak> reppard I suggest you fix that colan.
<shevy> reppard straight from source, latest 2 ruby-1.9.3 versions
<lupine> ^^
<shevy> I compiled it without error ~2 months ago :(
Guest2094 has left #ruby [#ruby]
jblack has joined #ruby
<reppard> shevy: something has changed in your environment i would think =\
yshh has joined #ruby
<reppard> Iszak: which colans that?
<shevy> reppard yeah hmmmmmmmm
<Iszak> reppard well given your current regexp it'll allow a random : at the start.
<Iszak> >> p /(http|https)?:?\/*w*\.?[a-z1-9]+\.[a-z]+/i.match("://dumbshit.com")
<eval-in> Iszak: Output: "#<MatchData \"://dumbshit.com\" 1:nil>\n" (http://eval.in/5348)
<Iszak> reppard perhaps (?:https?:)?
<reppard> very good point
Averna has joined #ruby
statarb3 has quit [Read error: Connection reset by peer]
<reppard> it got me past that round in my own game though ;)
<Iszak> reppard are you going to support utf8? or punycode?
<Iszak> need hyphens in that max 1-9 doesn't include 0's
<Iszak> what about multiple tld's.
<Iszak> .co.uk or .gov.uk
tr4656 has quit [Quit: ZNC - http://znc.in]
<shevy> hmmmmm
benlieb has quit [Quit: benlieb]
<shevy> clang?
<shevy> hmmmmmm
<shevy> hmmmmmmmmm
<Iszak> hm{2,}
<shevy> Iszak :D
yshh has quit [Ping timeout: 252 seconds]
<reppard> Iszak: you are awesome
<Iszak> so are you!
<reppard> i just slimed this code together and hadn't really thought that much about that stuff
<Iszak> trust me, matching urls is really hard… and emails.. and ipv4/6
<Iszak> ipv4/6 is probably the easiest
<reppard> well the url's will make from some fun unit tests
<Iszak> reppard take for example file:// is a valid scheme. so is ftp among other things
ninegrid_ has joined #ruby
tr4656 has joined #ruby
<reppard> yes indeed
<reppard> you just gave me a great idea
<reppard> i've been just having the game spit out a string and you have to match that string
<Iszak> reppard I think you should distinguish the difference between validate and match
<reppard> what would be great is a set of strings, such as urls, that are each different and you have to match them all
dr_neek has joined #ruby
<Iszak> sounds brilliant
Noldorin has quit [Quit: Computer has gone to sleep.]
<reppard> adds a new level of depth to it
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
taoru has quit [Ping timeout: 252 seconds]
<reppard> Iszak: as I am using that match method I would say its more match than validate
taoru has joined #ruby
havenn has joined #ruby
<Iszak> reppard still think you should clarify.
Tuxist has joined #ruby
<reppard> hmmm
emmanuelux has quit [Remote host closed the connection]
<reppard> i guess the aim is to provide a fun interactive way to learn regex
<reppard> so far its working alright for me. I was more horrible with regex a few days ago than i currently am now =)
love_color_text has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
love_color_text has joined #ruby
Goles has joined #ruby
tr4656 has quit [Ping timeout: 250 seconds]
assurbanipal_ has joined #ruby
<reppard> good night all
<reppard> back to work for me in the morning
assurbanipal has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: Leaving.]
reppard has quit [Quit: leaving]
love_color_text has quit [Remote host closed the connection]
arya has quit []
tr4656 has joined #ruby
jjbohn has quit [Quit: Leaving...]
love_color_text has joined #ruby
The_8472 has joined #ruby
lordnaz has quit [Quit: leaving]
The_8473 has quit [Ping timeout: 260 seconds]
assurbanipal_ has quit [Remote host closed the connection]
kamsel has quit []
cakehero has quit [Quit: Computer has gone to sleep.]
jjbohn has joined #ruby
dsdeiz has quit [Ping timeout: 252 seconds]
Tuxist has quit [Read error: Connection reset by peer]
<shevy> hah
<shevy> I solved the problem
<shevy> recompiled binutils
nari_ has quit [Ping timeout: 255 seconds]
<shevy> now ruby compiles fine
jjbohn has quit [Quit: Leaving...]
yshh has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
seanwash has joined #ruby
xpen has joined #ruby
doritostains has joined #ruby
Iszak has quit []
ttt has quit [Remote host closed the connection]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
fred909_ has joined #ruby
fred909 has quit [Ping timeout: 250 seconds]
love_color_text has quit [Remote host closed the connection]
seanwash has quit [Ping timeout: 260 seconds]
tr4656 has quit [Quit: ZNC - http://znc.in]
tr4656 has joined #ruby
love_color_text has joined #ruby
Takehiro has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
toekutr has joined #ruby
pyx has joined #ruby
jekotia has joined #ruby
jfe has joined #ruby
pyx has quit [Client Quit]
chrisramon has joined #ruby
chrisramon has quit [Client Quit]
Nisstyre-laptop has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
jjbohn has joined #ruby
benlieb has joined #ruby
phelps has quit [Quit: Textual IRC Client: www.textualapp.com]
ryanf has joined #ruby
ttt has joined #ruby
jjbohn has quit [Client Quit]
love_color_text has quit [Read error: Connection reset by peer]
rakl has joined #ruby
iamjarvo has joined #ruby
radic has joined #ruby
jfe has quit [Quit: quit]
benlieb has quit [Quit: benlieb]
radic_ has quit [Ping timeout: 260 seconds]
love_color_text has joined #ruby
phelps has joined #ruby
Averna has quit [Remote host closed the connection]
Goles has quit [Quit: Computer has gone to sleep.]
fred909 has joined #ruby
ryanf has quit [Quit: broken pipes |||]
fred909_ has quit [Ping timeout: 250 seconds]
adrian has joined #ruby
adrian is now known as Guest61501
mahmoudi_ has joined #ruby
mahmoudi_ has quit [Remote host closed the connection]
nari_ has joined #ruby
Solnse has joined #ruby
benlieb has joined #ruby
doritostains has quit [Ping timeout: 250 seconds]
ryanf has joined #ruby
ryanf_ has joined #ruby
jblack has quit [Ping timeout: 260 seconds]
crackfu has joined #ruby
rakl has quit [Quit: sleeping]
nerd has joined #ruby
Takehiro has quit [Remote host closed the connection]
hemanth_ has joined #ruby
JohnBat26 has joined #ruby
Guest3148 has joined #ruby
skcin7 has joined #ruby
Guest3148 is now known as Loola_
fred909_ has joined #ruby
Loola_ has left #ruby [#ruby]
fred909 has quit [Ping timeout: 264 seconds]
ttt has quit [Remote host closed the connection]
dmerrick has joined #ruby
cableray has joined #ruby
ryanf_ has quit [Ping timeout: 250 seconds]
ryanf has quit [Ping timeout: 251 seconds]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
dmerrick has quit [Client Quit]
Guest9041 has quit [Ping timeout: 246 seconds]
Guest9041 has joined #ruby
Takehiro has joined #ruby
nerd has quit [Quit: WeeChat 0.3.9.2]
SirFunk_ has quit [Quit: ZNC - http://znc.in]
sayan has joined #ruby
ttt has joined #ruby
sorbo_ has joined #ruby
g_bleezy has joined #ruby
ryanf has joined #ruby
ryanf has quit [Client Quit]
ryanf has joined #ruby
nari_ has quit [Ping timeout: 252 seconds]
imami|afk is now known as banseljaj
dhruvasagar has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
love_color_text has quit [Remote host closed the connection]
kil0byte has joined #ruby
love_color_text has joined #ruby
ruben_ has joined #ruby
<sorbo_> hi, ruben!
<hemanth_> meow
<sorbo_> ugh, of course.
<sorbo_> hi ruben!
<ruben_> Hello!
<sorbo_> there we go
v0n has quit [Quit: WeeChat 0.3.9.2]
v0n has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
v0n has quit [Quit: WeeChat 0.3.9.2]
v0n has joined #ruby
kmurph has joined #ruby
joofsh has quit [Ping timeout: 260 seconds]
nerd has joined #ruby
nocturne7 has joined #ruby
nocturne7 has left #ruby ["Leaving"]
tommyvyo has joined #ruby
ciopte7 has joined #ruby
keyvan has joined #ruby
fred909_ has quit [Ping timeout: 252 seconds]
fred909 has joined #ruby
ciopte7 has left #ruby [#ruby]
ciopte7 has joined #ruby
love_color_text has quit [Ping timeout: 265 seconds]
ryanf has quit [Ping timeout: 252 seconds]
nerd has quit [Quit: WeeChat 0.3.9.2]
Monie has quit [Quit: Quit]
fire has joined #ruby
ruben_ has quit [Remote host closed the connection]
ruben_ has joined #ruby
ruben_ has quit [Remote host closed the connection]
ruben_ has joined #ruby
<sorbo_> !QUIT
ruben_ has quit [Remote host closed the connection]
sorbo_ has quit [Quit: sorbo_]
benlieb has quit [Quit: benlieb]
rdegraci has quit [Quit: rdegraci]
keyvan has quit [Remote host closed the connection]
love_color_text has joined #ruby
autumn has quit [Remote host closed the connection]
autumn has joined #ruby
ananthakumaran has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 255 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
mahmoudi_ has joined #ruby
solidresolve has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
arkiver has joined #ruby
solidresolve has joined #ruby
<shevy> I do
<shevy> foo = File.readlines('some_file.txt')
solidresolve has quit [Remote host closed the connection]
<shevy> this loads in encoding US-ASCII by default?
<shevy> magic comment of that .rb file is # Encoding: ASCII-8BIT
<shevy> and the error I get is: parser.rb:71:in `block in scan_for_available_main_entries': invalid byte sequence in US-ASCII (ArgumentError)
<shevy> so I am confused...
<shevy> and when I do this here: Encoding.default_external = Encoding::ASCII_8BIT
<shevy> it suddenly works without error hmmmmmm
elsifaka has joined #ruby
ciopte7 has quit [Quit: ciopte7]
Hanmac has joined #ruby
<aedorn> I'm confused as to why you are confused
<shevy> aedorn that File.readlines() reads in as US-ASCII
<shevy> I thought that # Encoding: ASCII-8BIT would tell it to read in as 8BIT
ttt has quit [Remote host closed the connection]
<aedorn> oh, so you're saying that Ruby is completely ignoring that
ciopte7 has joined #ruby
<shevy> hmm I am not sure if it is completely ignoring it
<shevy> it seems to happen only when I read in external files
solidresolve has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
<shevy> using Encoding.default_external = Encoding::ASCII_8BIT however gives me a warning :(
<shevy> parser.rb:6: warning: setting Encoding.default_external
ttt has joined #ruby
<shevy> default_external ? enc
<shevy> "The default external encoding is used by default for strings created from the following locations"
<shevy> File data read from disk
<shevy> hmm
fred909_ has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
fred909 has quit [Ping timeout: 245 seconds]
powerplay has joined #ruby
<heftig> shevy: File.readlines('some_file.txt', encoding: "utf-8")
<heftig> er, or encoding: "binary"
<powerplay> Hey everyone, quick question I noted that there is a "super" invoked inside a "self.included(base)" method inside a module". Anyone know what gets called when super is invoked in this situation?
havenn has quit [Ping timeout: 244 seconds]
<Hanmac> powerplay, per default it does nothing, but super is used so you can chain it together
love_color_text has quit [Remote host closed the connection]
<powerplay> Hanmac: i see, here is the code if it clears it up: https://gist.github.com/4378339
<powerplay> so u r impllying nothing will happen in this case?
love_color_text has joined #ruby
<Hanmac> it depends ... if DescendantAppends does define the included method, this one will be called
<heftig> if DescendantAppends has a "def included"
friskd has joined #ruby
xpen_ has joined #ruby
felipe_Brz has quit [Remote host closed the connection]
xpen__ has joined #ruby
<powerplay> got it thanks everybody!
xpen__ has quit [Remote host closed the connection]
xpen_ has quit [Read error: Connection reset by peer]
katze_t4 has quit [Remote host closed the connection]
xpen has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Slivka has joined #ruby
kiyoura has quit [Quit: Leaving]
<aedorn> shevy: now I'm confused.
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
jenrzzz has joined #ruby
rippa has joined #ruby
iamjarvo has quit [Quit: Leaving.]
Gooder has joined #ruby
nari has joined #ruby
ddd has quit [Quit: Leaving.]
havenn has joined #ruby
<aedorn> shevy: being that it seems to be working ... this is like that terminal reset issue you had! A circle of strangeness must encompass your machine
kil0byte has quit [Remote host closed the connection]
adkron has joined #ruby
kmurph has quit [Quit: kmurph]
akram has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
havenn has quit [Ping timeout: 252 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
friskd has quit [Quit: friskd]
v0n has quit [Ping timeout: 252 seconds]
ryanf has joined #ruby
Asher has quit [Quit: Leaving.]
eldariof has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
nomenkun has quit [Remote host closed the connection]
h4mz1d has joined #ruby
Loaft has joined #ruby
<Loaft> !request http://ma.brazzers.com/ (ccbill) (ocr, form)
Loaft has left #ruby [#ruby]
<swarley> o-o
<swarley> LOLWUT
thufir_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
<aedorn> obviously he was requesting to pay for some porn
<swarley> Paying for porn is what people who don't know how to steal accounts from people who pay for porn do
GLolol has joined #ruby
GLolol has quit [Client Quit]
ciopte7 has quit [Quit: ciopte7]
rippa has joined #ruby
robustus has quit [Ping timeout: 244 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Gooder has joined #ruby
robustus has joined #ruby
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
havenn has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
ryanf has quit [Quit: broken pipes |||]
love_color_text has quit [Ping timeout: 265 seconds]
Slivka has quit [Ping timeout: 255 seconds]
neersighted has quit [Read error: Operation timed out]
atno has quit [Read error: Connection timed out]
fred909 has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
fred909_ has quit [Ping timeout: 265 seconds]
atno has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
moshee has quit [Ping timeout: 265 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
akram has quit [Ping timeout: 250 seconds]
Chryson has quit [Quit: Leaving]
love_color_text has joined #ruby
djdb has joined #ruby
akram has joined #ruby
nga4 has joined #ruby
nga4 has quit [Client Quit]
_veer has quit [Quit: Leaving]
ryanf has joined #ruby
filipe has joined #ruby
josej has joined #ruby
koshii has quit [Ping timeout: 255 seconds]
josej has quit [Client Quit]
josej has joined #ruby
koshii has joined #ruby
josej has quit [Client Quit]
josej has joined #ruby
Monie has joined #ruby
Gooder has quit [Remote host closed the connection]
ToTo has joined #ruby
<josej> I know a bit of programming, but wanted to learn Ruby, MVC etc. Any recommendations ?
Paradox has quit [Ping timeout: 252 seconds]
h4mz1d has quit [Ping timeout: 252 seconds]
fire has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
josej has quit [Quit: Ex-Chat]
lenovodroid has joined #ruby
Morkel has joined #ruby
arkiver has quit [Ping timeout: 245 seconds]
fred909 has quit [Ping timeout: 245 seconds]
fred909 has joined #ruby
nipara has quit []
zommi has joined #ruby
nomenkun has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
blaxter has joined #ruby
powerplay has left #ruby [#ruby]
vlad_starkov has joined #ruby
akemrir has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
Siphonblast has quit [Ping timeout: 260 seconds]
havenn has joined #ruby
zommi has quit [Quit: Leaving.]
rakl has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 246 seconds]
ryanf has quit [Ping timeout: 252 seconds]
havenn has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
fred909_ has joined #ruby
Solnse has quit [Ping timeout: 246 seconds]
fred909 has quit [Ping timeout: 260 seconds]
Siphonblast has joined #ruby
Gooder has joined #ruby
filipe has quit [Remote host closed the connection]
neersighted has joined #ruby
filipe has joined #ruby
Beoran__ has joined #ruby
Beoran_ has quit [Ping timeout: 252 seconds]
idoru has quit [Read error: Connection reset by peer]
nimred has quit [Ping timeout: 244 seconds]
pen has quit [Remote host closed the connection]
pen has joined #ruby
arkiver has joined #ruby
elico has joined #ruby
crackfu has quit [Remote host closed the connection]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
pen has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
dhruvasagar has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
nari has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
Takehiro has joined #ruby
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
pen has joined #ruby
Siphonblast has quit [Ping timeout: 264 seconds]
skcin7 has joined #ruby
<thufir_> use nokogiri to parse html?
JohnBat26 has joined #ruby
marr has joined #ruby
Takehiro has quit [Remote host closed the connection]
fred909_ has quit [Ping timeout: 255 seconds]
dyrot has quit [Ping timeout: 250 seconds]
daniel_- has joined #ruby
darthdeus has joined #ruby
jrabbit has quit [Ping timeout: 244 seconds]
dyrot_ has joined #ruby
lenovodroid has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
shemerey has joined #ruby
dyrot has joined #ruby
kil0byte has joined #ruby
dyrot_ has quit [Ping timeout: 265 seconds]
skcin7 has quit [Quit: Computer has gone to sleep.]
arturaz has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
toekutr has quit [Remote host closed the connection]
Siphonblast has joined #ruby
ToTo has quit [Ping timeout: 265 seconds]
havenn has joined #ruby
akemrir has quit [Quit: WeeChat 0.3.9.2]
maesbn has joined #ruby
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
jlebrech has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
<jlebrech> hi
Shrink has quit [Ping timeout: 244 seconds]
<arturaz> morning
<jlebrech> :)
Takehiro has joined #ruby
akram has quit [Ping timeout: 252 seconds]
lenovodroid has joined #ruby
adambeynon has joined #ruby
<thufir_> morning
<mkillebrew> meh
hotovson has joined #ruby
nomenkun has joined #ruby
nomenkun_ has joined #ruby
dyrot has quit [Ping timeout: 250 seconds]
Shrink has joined #ruby
virtuose has quit [Ping timeout: 260 seconds]
cableray has quit [Quit: cableray]
sajid672 has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
ttt has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
sajid672 has quit []
nomenkun has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 252 seconds]
Slivka has joined #ruby
maloik has left #ruby [#ruby]
ttt has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 244 seconds]
<jlebrech> what would you guys think of something like this to replace method missing https://gist.github.com/4379243
AxonetBE has joined #ruby
banseljaj is now known as imami|afk
zork_ has joined #ruby
shemerey has quit [Read error: Connection reset by peer]
<AxonetBE> I must be able to sort products on specific order, dashboard position, favorites position and newest position. There must be a solution to modify this sorting manually, do I have to create for each ordering a field in the database?
Paradox has joined #ruby
<thufir_> where uri is a string, how do I use the variable correctly in: value = %x(lynx -dump -display_charset=utf8 uri) having syntax trouble.
virtuose has joined #ruby
yshh has joined #ruby
mhi^ has joined #ruby
Spaceghostc2c has quit [Excess Flood]
jgrevich has quit [Remote host closed the connection]
mpfundstein has joined #ruby
virtuose has quit [Max SendQ exceeded]
tommyvyo has joined #ruby
Spaceghostc2c has joined #ruby
akemrir has joined #ruby
xAndy is now known as xandy
virtuose has joined #ruby
mhi^ has left #ruby [#ruby]
krz has quit [Quit: krz]
<Hanmac> jlebrech line 15 there must be include
<jlebrech> Hanmac yeah, sorry just pseudo-ruby I'm not fuly awake :D
elico has quit [Remote host closed the connection]
kjellski has joined #ruby
<jlebrech> how would I make line 17 work?
luckyruby has joined #ruby
<jlebrech> should i put this in the initializer?
<jlebrech> i'd rather it be outside, then it would be similar to what cucumber does.
filipe has quit [Read error: Operation timed out]
krz has joined #ruby
filipe has joined #ruby
Takehiro has quit [Remote host closed the connection]
krz has quit [Client Quit]
<Hanmac> include DynDefn
<Hanmac> or extend DynDefn
zork_ has quit [Quit: Linkinus - http://linkinus.com]
wargasm has quit [Ping timeout: 260 seconds]
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
emergion has joined #ruby
vlad_starkov has joined #ruby
Takehiro has joined #ruby
filipe has quit [Ping timeout: 250 seconds]
cascalheira has joined #ruby
fire has joined #ruby
banisterfiend has joined #ruby
filipe has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
krz has joined #ruby
thufir_ has quit [Quit: Leaving.]
daniel_- has quit [Quit: WeeChat 0.3.9.2]
hoelzro|away is now known as hoelzro
Takehiro has quit [Remote host closed the connection]
Criztian has joined #ruby
banisterfiend has quit [Ping timeout: 265 seconds]
filipe has quit [Read error: Operation timed out]
Neomex has joined #ruby
Neomex has quit [Client Quit]
kjellski has quit [Read error: Connection reset by peer]
kjellski_ has joined #ruby
lenovodroid has quit [Ping timeout: 255 seconds]
ttt has quit [Remote host closed the connection]
apeiros_ has joined #ruby
yshh has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
samphippen has joined #ruby
<jlebrech> Hanmac yeah I made that change :)
regedarek has quit [Ping timeout: 265 seconds]
regedarek has joined #ruby
Dario_ has joined #ruby
filipe has joined #ruby
marr has joined #ruby
Shrink has quit [Ping timeout: 245 seconds]
kjellski__ has joined #ruby
jonahR has quit [Quit: jonahR]
rdegraci has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
hoelzro is now known as hoelzro|away
lenovodroid has joined #ruby
kjellski_ has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
Xeago has joined #ruby
krz has quit [Quit: krz]
Guedes0 has quit [Quit: Saindo]
nomenkun_ has quit [Ping timeout: 255 seconds]
nomenkun has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
d3vic3_ has joined #ruby
love_color_text has quit [Remote host closed the connection]
d3vic3 has quit [Ping timeout: 264 seconds]
love_color_text has joined #ruby
yacks has quit [Ping timeout: 246 seconds]
EhyehAsherEhyeh has joined #ruby
s33k has joined #ruby
_64k has joined #ruby
<s33k> Can someone please help me out with this
<s33k> I had some problems while trying to install mysql2 gem
dsdeiz has joined #ruby
<s33k> here's the gem_make.out file: https://gist.github.com/4379701
atmosx has joined #ruby
timonv has joined #ruby
charliesome has joined #ruby
<Hanmac> s33k install libmysqlclient-dev (or similar)
taoru has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
yacks has joined #ruby
havenn has joined #ruby
_64k has quit [Client Quit]
<s33k> Hanmac, It worked! Thanks :)
AlSquire has joined #ruby
baphled has joined #ruby
havenn has quit [Ping timeout: 265 seconds]
rdegraci has quit [Quit: rdegraci]
akemrir has quit [Quit: WeeChat 0.3.9.2]
Xeago has quit [Remote host closed the connection]
_64k has joined #ruby
nick_h has quit [Ping timeout: 255 seconds]
nick_h has joined #ruby
Dario_ has quit [Ping timeout: 265 seconds]
Dario_ has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
kjellski__ has quit [Ping timeout: 252 seconds]
dyrot has joined #ruby
lenovodroid has quit [Ping timeout: 264 seconds]
eka has joined #ruby
marr has quit [Ping timeout: 252 seconds]
larissa has joined #ruby
virtuose has quit [Ping timeout: 246 seconds]
luckyruby has quit [Remote host closed the connection]
Takehiro has joined #ruby
virtuose has joined #ruby
ttt has joined #ruby
andredieb has quit [Ping timeout: 245 seconds]
andredieb has joined #ruby
andredieb has joined #ruby
andredieb has quit [Changing host]
Iszak has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
kil0byte_ has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
virtuose has quit [Ping timeout: 256 seconds]
ToTo has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
kil0byte has quit [Ping timeout: 255 seconds]
atno has quit [Ping timeout: 250 seconds]
virtuose has joined #ruby
kil0byte_ has quit [Read error: Connection reset by peer]
staafl has joined #ruby
kil0byte has joined #ruby
burgestrand has joined #ruby
samphippen has quit [Ping timeout: 252 seconds]
assurbanipal has joined #ruby
jmeeuwen has quit [Read error: Operation timed out]
jmeeuwen has joined #ruby
samphippen has joined #ruby
lemonsparrow has joined #ruby
becom33 has joined #ruby
<lemonsparrow> is there way to write the same code in less number of lines -> https://gist.github.com/4380057
swex has quit [Ping timeout: 252 seconds]
crackfu has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
ToTo has quit [Ping timeout: 255 seconds]
postmodern has quit [Quit: Leaving]
ToTo has joined #ruby
tenmilestereo has joined #ruby
crackfu has quit [Remote host closed the connection]
darthdeus has quit [Quit: Leaving...]
kil0byte has joined #ruby
<Hanmac> lemonsparrow https://gist.github.com/4380078
moos3 has joined #ruby
ToTo has quit [Ping timeout: 252 seconds]
<becom33> Hi guys Im kinda stuck in here http://pastie.org/5579980 . the logic I want to be done is to check if there a variable which starts with $ inside the "include" function . help ?
<lemonsparrow> Hanmac: I tried it puts list.include? item ? "A" : "B" instead of "A" and "B" it was function call with different args but somehow it worked reversely..
atmosx has quit [Quit: And so the story goes…]
vlad_starkov has joined #ruby
<lemonsparrow> Hanmac: how can I do the same if instead of puts it's function(arg1, arg2) where arg2 is o/p of condition
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
nomenkun has quit [Read error: Connection reset by peer]
<Hanmac> becom33 /include\($(.*)\)/
Shrink has joined #ruby
_64k has quit [Quit: _64k]
<becom33> ok thats a one line right ? for both of the regex ?
<Hanmac> lemonsparrow: function(arg1, list.include?(item) ? arg2a : arg2b)
nomenkun has joined #ruby
crackfu has joined #ruby
<lemonsparrow> Hanmac: yep worked..but is it a good way ?
<burgestrand> You could do #each instead of #each_with_index, you are not using the index.
Shrink has quit [Remote host closed the connection]
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
<lemonsparrow> Hanmac: code looks complex :)
<Hanmac> becom33 "include($pageinside .'.php');"[/include\((\$.*)\)/,1] #=> "$pageinside .'.php'"
koshii has quit [Ping timeout: 250 seconds]
<becom33> Hanmac, include($pageinside .'.php');"[/include\((\$.*)\)/,1] <- this is very confusing . doesnt make sense to me :/
Shrink has quit [Remote host closed the connection]
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
<Hanmac> becom33 http://www.ruby-doc.org/core-1.9.3/String.html#method-i-5B-5D second paragraph about "If a Regexp is supplied, ... "
s33k has left #ruby ["Leaving"]
crackfu has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
jonahR has joined #ruby
ananthakumaran has joined #ruby
koshii has joined #ruby
bl3k has joined #ruby
jonahR has quit [Client Quit]
s33k has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
Jasko has quit [Read error: Connection reset by peer]
timonv has joined #ruby
Jasko has joined #ruby
<s33k> Hi, I know there's a separate channel for RoR, and all questions pertaining to Rails should be redirected there
<s33k> But I'm not getting any response there
blaxter has quit [Ping timeout: 246 seconds]
<s33k> I was trying to deploy my rails project, when I got this error: https://gist.github.com/4380132
<s33k> rake db:setup said that i18n gem wasn't found
<s33k> but bundle install said that it was already present
<s33k> gem install i18n also said that the package was already present
<s33k> Can someone help me out with this?
lenovodroid has joined #ruby
<Hanmac> s33k gem list should show that i18n has an newer version than this bundle wants
sayan has quit [Read error: Connection reset by peer]
EhyehAsherEhyeh has quit [Ping timeout: 265 seconds]
<s33k> The version of i18n required, and the one that is present is 0.6.1 I guess
<s33k> Hanmac,
<s33k> ^
<shevy> heftig thanks
burgestrand has quit [Ping timeout: 260 seconds]
<shevy> aedorn only encoding issues :D
bl3k_ has joined #ruby
dsdeiz has quit [Remote host closed the connection]
Slivka has quit [Remote host closed the connection]
koshii has quit [Ping timeout: 250 seconds]
bl3k has quit [Ping timeout: 252 seconds]
dyrot has quit [Ping timeout: 256 seconds]
hoelzro|away is now known as hoelzro
zommi has joined #ruby
zommi has left #ruby [#ruby]
EhyehAsherEhyeh has joined #ruby
jimeh has joined #ruby
banisterfiend has joined #ruby
neurotech has quit [Remote host closed the connection]
bl3k has joined #ruby
rakl has quit [Ping timeout: 252 seconds]
bl3k_ has quit [Ping timeout: 260 seconds]
eph3meral has quit [Quit: eph3meral]
swex has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
atno has joined #ruby
bl3k_ has joined #ruby
bl3k has quit [Ping timeout: 244 seconds]
_64k has joined #ruby
jblack has joined #ruby
XmasSpirit is now known as Lemtzas
Goles has joined #ruby
bl3k_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bl3k has joined #ruby
framling_ has joined #ruby
framling_ has quit [Client Quit]
framling has quit [Quit: Lost terminal]
_64k has quit [Quit: _64k]
dhruvasagar has quit [Ping timeout: 264 seconds]
hybRis has joined #ruby
bl3k has quit [Ping timeout: 260 seconds]
x0F has quit [Disconnected by services]
banisterfiend has quit [Ping timeout: 265 seconds]
x0F_ has joined #ruby
x0F_ is now known as x0F
<becom33> why am I getting a undefined method `bar' http://pastie.org/5580116 in
_64k has joined #ruby
<jesse> be
Russell^^ has joined #ruby
<canton7> AAA#bar is an instance method, not a class method
<jesse> becom33: bar is an instance method of AAA, not a class method
<canton7> if line 10 saud "AAA.new.bar(pass)", it would work
<canton7> *said
<jesse> canton7: wow :)
<canton7> or if you defined AAA::bar as a class method (e.g. with line 3: "def self.bar"), that would also work
<canton7> jesse, hah! damn close enough :P
samphippen has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
alexwh has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
greenarrow has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
<shevy> becom33! you are back!
<becom33> shevy, hey hey yea bro back . but lost touch didnt code for couple months now I dont remember what I learned even
<becom33> starting from the begining
<shevy> aww
kil0byte has quit [Ping timeout: 245 seconds]
<shevy> anyway
<shevy> becom33, there are two fundamental ways to define a method: def foo, and def self.foo
<becom33> shevy, yea remember now
<becom33> i *
<shevy> so when you have AAA.bar, you need to also do a def self.bar within class AAA
<shevy> hehe
nemesit has joined #ruby
<becom33> yes yes :D
d3vic3_ has quit [Ping timeout: 246 seconds]
nilg has quit [Remote host closed the connection]
<shevy> I am doing weird stuff
<shevy> I think I finally found out why my compiler breaks
<shevy> incomplete libraries can cause trickle-down breakage at a later stage
<becom33> shevy, what happend ?
<shevy> I have additional libraries in /usr/lib/i386-linux-gnu/
<shevy> but I also recompiled like 90% of the system already
arkiver has quit [Quit: Leaving]
<shevy> so some of them are there twice
nick_h has quit [Ping timeout: 265 seconds]
<becom33> aww
jaygen has joined #ruby
BBonifield has quit [Ping timeout: 252 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
BBonifield has joined #ruby
<shevy> still the GNU autoconfigure tools + helpers are so... fragile if you try to do things in another way
pen has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 252 seconds]
<shevy> alone that I get spammed with stuff like: libtool: link: warning: `/usr/lib/libxcb.la' seems to be moved
arturaz has quit [Remote host closed the connection]
moshee has joined #ruby
nick_h has joined #ruby
lenovodroid has quit [Ping timeout: 252 seconds]
JohnBat26 has joined #ruby
nick_h has quit [Remote host closed the connection]
koshii has joined #ruby
BBonifield has quit [Client Quit]
BBonifield has joined #ruby
nick_h has joined #ruby
sayan has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
nemesit has quit [Quit: Leaving...]
tommyvyo has joined #ruby
cousine has joined #ruby
blaxter has joined #ruby
<shevy> hmm
EhyehAsherEhyeh has quit [Ping timeout: 252 seconds]
<shevy> I wonder if it takes longer to write equivalent ruby code in python, or in less time
s33k has quit [Ping timeout: 252 seconds]
<canton7> I'm betting less
<canton7> (for someone who knows the stdlib well)
banisterfiend has joined #ruby
<shevy> yeah hmm
<canton7> python has its "one obvious way to do it", which means lots of common operations are done using a few lines. ruby has "there's a method for that", which means less typing for someone who knows the method exists
<canton7> plus, you don't need to type "self" all the damn time :P
pesnk has joined #ruby
love_color_text has quit [Remote host closed the connection]
Takehiro has joined #ruby
pen has joined #ruby
lkba has quit [Read error: Operation timed out]
darthdeus has joined #ruby
love_color_text has joined #ruby
pcarrier has quit [Ping timeout: 252 seconds]
pcarrier has joined #ruby
<shevy> what gets to me in ruby is that sometimes the other ways just totally suck
tk__ has joined #ruby
<Hanmac> ruby has sometimes everything you need in core, like maskquarding chars: "<>".encode(:xml => :text) #=> "&lt;&gt;"
breakingthings has joined #ruby
joofsh has joined #ruby
<becom33> http://pastie.org/5580251 it gets into if condition at line 11 only ones but I get true returns at everytime for line 22
<becom33> once *
mengu has joined #ruby
* becom33 anyone ?
<Hanmac> becom if nothing is found it returns the array wich is true
razibog1 has joined #ruby
<becom33> no no it finds a match and it returns true
<becom33> but still I get others true as well
<Hanmac> becom33 read about that each itself returns
jrajav has joined #ruby
EhyehAsherEhyeh has joined #ruby
<becom33> aww each returns true ?
banisterfiend has quit [Ping timeout: 250 seconds]
<Hanmac> no but something that is evaluated from if into true
<shevy> becom33 you should use pp to debug
<shevy> require 'pp'
Morkel has quit [Quit: Morkel]
<jrajav> Hehe
<jrajav> pp
<canton7> "pretty-print", not "pee-pee" :P
thatguycraig has joined #ruby
s33k has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
lkba has joined #ruby
<Hanmac> becom33 what about: "function_one"[/function_(\w+)/,1] => "one" or about @list_of_functions.find { |func| line =~ /#{func}(.+)/ }
skcin7 has joined #ruby
<shevy> also some stylistic
<shevy> if(variable_check) is ugly
<shevy> why not
<shevy> if variable_check
nomenkun has quit [Read error: Connection reset by peer]
<breakingthings> the real ugly thing is "variable_check".
nomenkun has joined #ruby
tk__ has quit [Ping timeout: 265 seconds]
<shevy> hehehehe
<shevy> poor becom33
jonahR has joined #ruby
<becom33> Hanmac, i used to scan for this but maybe you could help . I need to check there is a functcion() in the line . then inside that function if there are any $variables
iamjarvo has joined #ruby
mpfundstein has quit [Read error: Connection reset by peer]
<jrajav> >> "Do we still have a bot?"
<eval-in> jrajav: Output: "" (http://eval.in/5392)
mpfundstein has joined #ruby
<jrajav> It's a Christmas miracle!
tk__ has joined #ruby
<jrajav> Boo that it doesn't show the expression result though
rdegraci has joined #ruby
<Hanmac> >> p "function($variable)"[/function\(.*(\$\w+).*\)/,1]
<eval-in> Hanmac: Output: "\"$variable\"\n" (http://eval.in/5394)
s33k has quit [Ping timeout: 246 seconds]
nimred has quit [Ping timeout: 252 seconds]
<Hanmac> ah i forgot to send a feature request to th creator of eval-in
nomenkun has quit [Read error: Connection reset by peer]
<becom33> Hanmac, there are a array list of function I have to use each if I have to check the line by each function
fyolnish has quit [Remote host closed the connection]
fyolnish has joined #ruby
nomenkun has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
jerius has joined #ruby
<Hanmac> becom33 i dont want to play blackbox ... show me wants your input and what your wanted output ... i dont want to pull it out of your nose
jkarayusuf has joined #ruby
philcrissman has joined #ruby
<becom33> I have a @list_of_functions and I have a code.each_line pushing in to FunctionCheck.check
Guest61501 has quit [Quit: Linkinus - http://linkinus.com]
<becom33> so what I want if I found a match to return true . I have explained how I want the match to be done
<Hanmac> becom33 you did not aswer my question ... you did not talk abotu your wanted output
atno has quit [Read error: Connection reset by peer]
atno has joined #ruby
<becom33> input is a codeif line output should be a true if the code line match
nimred has joined #ruby
<becom33> codeline * , output should be *
kil0byte has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> becom33: 1) have you EVER tryed the lines i posted there for you?
<becom33> yes . the problem is with the function you have mentioned here "#{line}"[/function\(.*(\$\w+).*\)/,1] . it should come from a array
<becom33> I cant is inside a array because the to use the array i have to use each
<Hanmac> i thought about an generic variant, but when you dont want that use that: @list_of_functions.find{|f| line =~ /#{f}/ }
kirun has joined #ruby
theRoUS has quit [Ping timeout: 255 seconds]
koshii has quit [Remote host closed the connection]
<Hanmac> becom33 homework for you: read about alll Enumerable methods and use each of them in your own sample
matip has joined #ruby
<Hanmac> becom33 PS: line30-33 is broken ... read about why
benlieb has joined #ruby
<becom33> Hanmac, are you talking about each_line ?
<becom33> yea it was typo I pasted
<becom33> i didnt know about .find method . cant find any tut about that too
kshbooo has joined #ruby
<Hanmac> then you could direclty use readlines instead of read
jonathanwallace has joined #ruby
dyrot has joined #ruby
C0deMaver1ck has joined #ruby
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lemonsparrow has quit [Quit: Page closed]
dsdeiz has joined #ruby
C0deMaver1ck has quit [Client Quit]
aquaranto has joined #ruby
jblack has quit [Ping timeout: 265 seconds]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
cousine has quit [Remote host closed the connection]
tommyvyo has joined #ruby
wermel has joined #ruby
s33k has joined #ruby
NiteRain has joined #ruby
burgestrand has joined #ruby
jkarayusuf has quit [Remote host closed the connection]
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
C0deMaver1ck has joined #ruby
mercwithamouth has joined #ruby
kshbooo has quit []
love_color_text has quit [Remote host closed the connection]
kirun_ has joined #ruby
kirun_ has quit [Client Quit]
hotovson has quit [Remote host closed the connection]
koshii has joined #ruby
kirun has quit [Ping timeout: 264 seconds]
Nisstyre-laptop has joined #ruby
s33k has quit [Ping timeout: 252 seconds]
_64k has quit [Quit: _64k]
anders_ has joined #ruby
<anders_> $this->mymethod() <-- in php is what in ruby?
becom33 has quit [Ping timeout: 245 seconds]
<shevy> anders_ simply mymethod
<anders_> self.mymethod?
<shevy> not required to prefix with self.
Morkel has joined #ruby
<shevy> in ruby you are inside a class, self is always assumed
<Hanmac> self. is only required on setter methods like self.setter = value
thmzlt has joined #ruby
hotovson has joined #ruby
<anders_> shevy, so if I have a similar function outside the class, I use self.mymethod?
s33k has joined #ruby
lenovodroid has joined #ruby
<shevy> anders_ outside the class?
<shevy> if you want to call a function outside the class, self. would of course not work, as self refers to itself, not to anything outside the class
_64k has joined #ruby
<anders_> def mm end class def mm end end
<shevy> this can not work, after class must come uppercased word
<shevy> ah you mean
<shevy> class Foo; def etc...
<anders_> mm
Takehiro has quit [Remote host closed the connection]
<shevy> hmm
<shevy> not sure how to access the parent mm
<anders_> shevy, anyway, thanks for clearing it up..
jonathanwallace has quit [Ping timeout: 246 seconds]
forcefsck has joined #ruby
thone_ has joined #ruby
<anders_> I use 100% classes then, like java
zastern has quit [Remote host closed the connection]
lenovodroid has quit [Client Quit]
<shevy> now I wanna know myself :\
hotovson has quit [Read error: No route to host]
<shevy> Hanmac, if I have def foo outside any module or class, and also another def foo in a class, how can I let the second call the first?
<lupine> pass an instance of the class to the function
thone has quit [Read error: Operation timed out]
<lupine> or have it create one and call it
jlebrech has quit [Quit: Computer has gone to sleep.]
<shevy> nono, vice versa
<shevy> when the class wants to call the outside function
<shevy> from within one of its methods
<shevy> which has the same name
<shevy> if it does not have the same name, it works
<lupine> well, what's the outside function in?
bean has joined #ruby
<shevy> hmm toplevel scope? no idea how to call that
nomenkun has quit [Read error: Connection reset by peer]
<lupine> TOPLEVEL_BINDING.eval("my_method_with_same_name") might be what you want
<shevy> ohhhhh
Takehiro has joined #ruby
<lupine> but it's pretty damn evil
<shevy> hehe
<shevy> and verbose!
nomenkun has joined #ruby
mpfundstein2 has joined #ruby
<mpfundstein2> awesome
<lupine> you could also construct a proc with the right scope to call the method in the outside namespace
<Hanmac> ah the TOPLEVEL ... i thought about that ObjectSpace.each_object.find {|o| o.class == Object && o.inspect == "main" }
s33k has left #ruby ["Leaving"]
bean has quit [Client Quit]
<shevy> whoa
<shevy> googling for this
<shevy> I find a patch in rails...
<shevy> from (a):
<shevy> Object.send(:include, Rails::ConsoleMethods)
<shevy> to (b):
<shevy> TOPLEVEL_BINDING.eval('self').extend Rails::ConsoleMethods
<shevy> :\
<lupine> that's an improvement, actually
<shevy> hehehe
<lupine> I aspprove of that patch
<Hanmac> shevy ... TOPLEVEL_BINDING.send("my_method_with_same_name")
* lupine always has to look up what you can do with bindings
<lupine> they're pretty magic
bean has joined #ruby
love_color_text has joined #ruby
cousine has joined #ruby
<Hanmac> the toplevel binding has all methods that the main object has too ... (interesting)
<shevy> Hanmac I think I am allergic to magic
<lupine> um
<shevy> unfortunately ruby is also beautiful
<lupine> are they not analogous in some respects?
<mpfundstein2> isnt the toplevelbinding the kernel module?
timonv has quit [Remote host closed the connection]
<shevy> hehe
<shevy> more and more questions, less and less answers
<shevy> do not ask!
<shevy> just BELIEVE
<mpfundstein2> well should be
<lupine> irb(main):003:0> [ self.object_id, TOPLEVEL_BINDING.object_id, Kernel.object_id ] => [6593380, 6555600, 6595720]
busybox42 has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
<mpfundstein2> thx
_64k has quit [Quit: _64k]
Morkel has quit [Quit: Morkel]
<lupine> and self.send(:binding).object_id => 7817000
<mpfundstein2> good stackovetflow question
<lupine> I guess bindings have some sort of ancestry for lookup purposes
<lupine> or summat
<mpfundstein2> tipl
<Hanmac> lupine self.send(:binding) does allways generate an new binding
<mpfundstein2> toplevelbinding must refer to kernel somehow
statarb3 has joined #ruby
<lupine> sucky
Dario_ has quit [Remote host closed the connection]
<lupine> ah yes, I remember having to stick the binding into an instance variable for my telnet ruby console
dyrot_ has joined #ruby
apeiros_ has joined #ruby
rippa has joined #ruby
mpfundstein3 has joined #ruby
Takehiro has quit [Remote host closed the connection]
havenn has joined #ruby
mpfundstein2 has quit [Ping timeout: 255 seconds]
dyrot has quit [Ping timeout: 256 seconds]
AxonetBE has quit [Quit: Leaving.]
dyrot_ has quit [Ping timeout: 264 seconds]
kil0byte has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Quit: benlieb]
havenn has quit [Ping timeout: 252 seconds]
ner0x has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
mpfundstein3 has left #ruby [#ruby]
mpfundstein2 has joined #ruby
adkron has quit [Ping timeout: 250 seconds]
_64k has joined #ruby
tk__ has quit [Quit: ばいばい]
benlieb has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
nomenkun has joined #ruby
jonahR has quit [Quit: jonahR]
Banistergalaxy has joined #ruby
idoru has joined #ruby
krz has joined #ruby
cakehero has joined #ruby
PragCypher has joined #ruby
seanwash has joined #ruby
nwertman has joined #ruby
koshian is now known as Koshian
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
<tommyvyo> anyone know how i can get this regex to terminate at the first sign of a \? like how rails does its routing
mercwithamouth has joined #ruby
koshii has quit [Ping timeout: 246 seconds]
<apeiros_> tommyvyo: this? http://rubular.com/r/dHNCWtI1cQ
<canton7> given that I've got no idea how rails does its routing, can you give an example input/output?
larissa has quit [Quit: Leaving]
<tommyvyo> apeiros_ thank you…!
<tommyvyo> canton7: example in the link :)
<canton7> example input, but not output :P Plus there were no backslashes in your input
<tommyvyo> output in the one from apeiros :P
<tommyvyo> regexs make me feel bad :(
krz has quit [Quit: krz]
krz has joined #ruby
koshii has joined #ruby
cj3kim has joined #ruby
<canton7> alternative: http://rubular.com/r/lgd7Ar2oDm (has different behaviour when there's no slash terminating the thing)
zwevans has joined #ruby
skcin7 has joined #ruby
lolmaus has joined #ruby
kjellski has joined #ruby
aces23up has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
apeiros_ has quit [Remote host closed the connection]
ABK has joined #ruby
huangjs has joined #ruby
<Hanmac> shevy you could call the main function with super
aces1up has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Client Quit]
mercwithamouth has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<canton7> Hanmac, yeah that works!
<huangjs> hi, I'm using eval() to read value from a pretty printed array. If the array is very large, it reports 'stack level too deep'. It seems it won't get fixed in 1.9, Is there any other way to read the value?
skcin7 has quit [Ping timeout: 252 seconds]
miskander has joined #ruby
maesbn has quit [Remote host closed the connection]
PragCypher has quit [Quit: Leaving]
maesbn has joined #ruby
<Hanmac> huangjs evals in 99% of the chases an bad idea
<huangjs> Hanmac: I know, what's the read function then?
malte_ has joined #ruby
GoGoGarrett has joined #ruby
<huangjs> Hanmac: it's really bad if to_s works find but the reverse is not.
maesbn has quit [Ping timeout: 246 seconds]
kjellski has quit [Quit: Leaving]
<shevy> Hanmac cool that works, strange... I thought super() works only on parent class?
DaZ has quit [Ping timeout: 260 seconds]
xemu has joined #ruby
<shevy> hmm wonder if the pickaxe ever mentioned that
<Hanmac> methods you define in the main, are automatic defined in Object
<xemu> is it possible to learn ruby in 3 months at a programming boot camp ?
<Hanmac> thats why TOPLEVEL_BINDING.methods list also the main methods
<Hanmac> xemu, it depends ... does the camp trys to learn rails too?
<anders_> xemu, yes
<anders_> atleast basic syntax
kil0byte has joined #ruby
DaltonUS has joined #ruby
<shevy> Hanmac ah that makes sense
<shevy> as Object is a parent right?
s33k has joined #ruby
<shevy> xemu yeah, but the only real way to effectively learn ruby is by writing scripts on your own, the more the better
krz has quit [Quit: krz]
<anders_> xemu, I think rails is 100 times harder to learn than ruby.. lots of documentation to read through.. sigh
PragCypher has joined #ruby
<hybRis> ive been following the screencasts on tutsplus and it seems pretty simple
blazes816 has joined #ruby
<hybRis> to get the idea of the framework at least, other than that you always have to read docs to know all the different methods
DaZ has joined #ruby
<hybRis> www.tryruby.org and www.railsforzombies.org were very helpful as well
<xemu> in the past year 15 "ruby boot camps" have opened up, claiming to teach ruby&rails in 3-6 months, with 8 hours of instruction per day, 5 days a week. i am just trying to figure out if this is realistic or just a scam. most of the schools charge $10k.
<hybRis> jesus christ
MerryChristmsas has joined #ruby
<shevy> xemu you are advertizing
<shevy> :(
eldariof has quit [Ping timeout: 265 seconds]
Asher has joined #ruby
sidev has joined #ruby
<shevy> advertizement does not have to be "specific" at all, general form of it can still benefit indirectly by "spreading the word". that's viral marketing.
friskd has joined #ruby
katherinem13 has quit [Remote host closed the connection]
<xemu> that very cynical. i am thinking of joining, but its a lot of money. i just want to figure out if this is a scam.
katherinem13 has joined #ruby
<shevy> lol
_nitti has joined #ruby
wermel has quit [Remote host closed the connection]
danneu has joined #ruby
katherinem13_ has joined #ruby
<hoelzro> I wouldn't pay 10k for such a course.
<hoelzro> </2c>
<xemu> how much would you pay?
lenovodroid has joined #ruby
<mpfundstein2> lol what a scam
<shevy> it is viral marketing. "accidentally" we may soon discover that "oh look... this is soooo much cheaper over there... let's go there"
<breakingthings> most of the schools charge $10k for what? To learn ruby?
<breakingthings> shevy don't go all /v/ on us
<hoelzro> xemu: I'd teach myself ;)
enroxorz-work has joined #ruby
<mpfundstein2> learning by doing and a passion for it
<shevy> breakingthings which role do you play? the good cop?
<breakingthings> what hoel said.
<xemu> lol.. ok that is beyond cynical
<breakingthings> shevy I play the village fool most of the time
bhavesh_a_p has joined #ruby
<Hanmac> to learn programming you have to "feel it in your code" ... imo you need the right "kink" to be a Programmer
<xemu> hanmac: you are right... which is why i'm afraid to shell out 10k. what if i don't have the talent?
katherinem13 has quit [Ping timeout: 244 seconds]
katherinem13_ is now known as katherinem13
<Banistergalaxy> Hanmac perverts as programmers
<hybRis> I wouldn't pay $10k but I think that price sounds about right, that's what a friend paid for MCSE class. and you dont even get a cert, you have to go elsewhere to take the test. its stupid but i guess there is a market for it..
<hybRis> theres so many resources to learn on your own for free
<xemu> what is more useful, MCSE or three months of intensive ruby training?
sayan has quit [Read error: Connection reset by peer]
<hybRis> depends what you're going to do with it i guess?
<breakingthings> if you're into being corporate professional, MCSE is probably worth it.
sailias has joined #ruby
<hybRis> are you going to work for hulu or cisco
<hoelzro> with more seriousness, I'd probably not pay more than 1k for a 6-month course
<breakingthings> but that's got nothing to do with ruby training courses.
<xemu> i am incapable of leearning from a book inside a basement like so many hackers do. i need structure, anda someone nearby to ask questions.
<Hanmac> thats why SAP courses are so expancive ... because someone would pay that price
thatguycraig has quit [Quit: Leaving.]
<hybRis> xemu: can you learn from screencasts?
<hybRis> and asking questions on IRC?
<breakingthings> xemu: irc is the someone nearby to ask questions to :)
<shevy> Hanmac corporations definitely
<hybRis> that's how I learned PHP
<breakingthings> shevy: is it viral marketing to suggest an alternative to him :p
<Hanmac> i didnt even remember how i learned ruby ... i read the code and someday i could it ...
track7 has quit [Read error: Connection reset by peer]
<shevy> breakingthings depends on the context, I am watching him carefully
<shevy> "10K is reasonable"
<shevy> "cuz I am gonna make 100K with rails soon!"
<breakingthings> shevy a certain website that is a school of the codeses.
<shevy> oh, will you now give the ... I don't know... URL to that school? ;)
<breakingthings> yes, if that is in compliance with the Shevy Act, article 1.2
<shevy> breakingthings ok please go ahead
jonahR has joined #ruby
<breakingthings> lol
<shevy> :D
<hybRis> codeschool.com is awesome
<jonahR> word
track7 has joined #ruby
<breakingthings> xemu: check out that link, they have quite a few ruby courses and you can see their pricing per month
<shevy> I shall click six times on it
Quintus_q has joined #ruby
thmzlt has quit [Remote host closed the connection]
<hybRis> tryruby.org is part of codeschool isnt it
<breakingthings> yes
statarb3 has quit [Ping timeout: 265 seconds]
<breakingthings> its one of their courses
<hybRis> that's where i started, still working my way through tutorials on nettuts, but its a great place to start from for free to see if you like the language and stuff
* Hanmac has asperger that gives an double bonus boost for programming skills
<shevy> never read so much pro "opinions" in such a short time
<shevy> whatever became of #ruby ... :(
benlieb has quit [Quit: benlieb]
<hybRis> was that directed at me
_nitti has quit [Remote host closed the connection]
<shevy> noone in particular, I just miss the good old days
fire has quit [Read error: Operation timed out]
<xemu> i don't have asbergers, do not live in a basement, and mild ADD. i think structured classroom learning is my only option. it is damn expensive though.
QKO_ has joined #ruby
samphippen has joined #ruby
<jonahR> hybRis: are those nettuts the ones with Jose Mota?
Quintus_q has left #ruby ["Valete!"]
<hybRis> jonahR: hmm i don't know his name, its the guy that sounds like a robot
<breakingthings> shevy good old days of what?
<breakingthings> opinionlessness?
<shevy> breakingthings when _why was still around for instance
<shevy> breakingthings we have opinions. viral marketing sucks, for instance.
<xemu> what level of math do i need to know to learn ruby?
<jonahR> hybRis: the one that always start with "Hiiii and welcome back to test driven development with rubyyyyy" ?
theRoUS_ has joined #ruby
<shevy> can we read more about how awesome agile is perhaps?
<breakingthings> xemu depends on what sort of things you want to get into :)
QKO has quit [Ping timeout: 244 seconds]
<canton7> xemu, none. if you want to do mathsy things with ruby, though.....
jonathanwallace has joined #ruby
<hybRis> yes jonahR i just looked it up, jose mota. im doing "riding ruby on rails" (though i torrented it)
<shevy> xemu most is in the Math module. Math::PI <--- that is the PI constant
<breakingthings> For general things, you can get by knowing what signs do plus, minus, multiplication and division.
<breakingthings> :d
<hybRis> jonahR: im pretty sure he made the tutorials by typing it into google translate and hitting the speech button
<shevy> xemu, 2 ** 5 is 2 to the power of 5 (hmm or 5 to the power of 2? nah...), which is 2*2*2*2*2 which is 32
<jonahR> that's mean, he was really helpful
<hybRis> jonahR: haha yeah. the tutorials are really good
skcin7 has joined #ruby
<jonahR> ;)
<jonahR> I was into teamtreehouse.com but they dumbed down their videos
thmzlt has joined #ruby
<shevy> yay more links
Na_Klar has joined #ruby
v0n has joined #ruby
<hybRis> I like the dumbed down stuff, as long as they don't spend hours going over something like getting it installed. programming such an abstract thing, it helps a lot to have visual stuff and analogies, for me
statarb3 has joined #ruby
<hybRis> i've had a c# book for like 6 years, i've made it about 2 chapters in just because it is SO BORING
io_syl has joined #ruby
<shevy> I found the rails books boring
<shevy> "build a webshop, lesson 25789205"
sayan has joined #ruby
<hybRis> yeah
<shevy> first 30 pages "how to install rails"
cousine has joined #ruby
<shevy> :(
<hybRis> rails has such a barrier to entry too since installing it can be such a pain in the ass
fire has joined #ruby
<shevy> didn't bundler solve that?
wermel has joined #ruby
<hybRis> as in, 'bundle install' ?
<shevy> hehe
<shevy> I think so
_nitti_ has joined #ruby
<hybRis> it is pretty good but you still have to google a lot, because it gives dependency errors that are meaningless if you dont know what it is
Criztian has quit [Remote host closed the connection]
bhavesh_a_p has quit [Ping timeout: 264 seconds]
<hybRis> and the whole process of installing rvm, etc
<breakingthings> it's pretty intimidating to a newcomer
<anders_> why is everybody using rails as their ruby framework? Is it really that hard to make your own ruby framework?
<breakingthings> but not all that hard, tbh...
<hybRis> that's why something like railsforzombies is pretty cool because you dont have to worry about that crap
<hybRis> yeah breakingthings
<breakingthings> anders_: why reinvent the wheel if the wheel that exists does everything you need it to?
skcin7 has quit [Ping timeout: 252 seconds]
<anders_> breakingthings, so how come php folks make their own frameworks?
<hybRis> because they all suck
<breakingthings> anders_: because most of the frameworks that came before them sucked really bad.
<breakingthings> Rails is kept up and is improved on a somewhat regular basis
<breakingthings> CodeIgniter is still bloated as all hell and is probably the most used PHP framework.
<anders_> breakingthings, but is there any good free tutorial to learn rails then? I want to learn, but I havn't found any really useful so far
<anders_> breakingthings, Rails is not bloated?
<hybRis> codeigniter is the only one that even makes sense to me in php, every framework is so completely different because php is a mess
<breakingthings> anders_ I'm not so sure about free resources
<breakingthings> anders_ not nearly to the point of something like CodeIgniter, no, hhe
<breakingthings> heh*
<breakingthings> hybRis it is such a mess. they're making some strides though, Laravel looks promising.
<anders_> breakingthings, what about kohana then?
<breakingthings> don't know a whole lot about kohana
EhyehAsherEhyeh has quit [Ping timeout: 265 seconds]
cousine has quit [Remote host closed the connection]
dmiller has joined #ruby
cousine has joined #ruby
<hybRis> its a codeigniter fork i believe
<hybRis> designed to clean it up
<anders_> not me either, just want to learn a framework.. someone told me CI isn't very object oriented and reccommended kohana. I don't know
* breakingthings shrugs
<breakingthings> anders_ CI is pretty poor especially for smaller and more modern projects
<breakingthings> I don't know too much about kohana
vlad_starkov has joined #ruby
<hybRis> CI is pretty much basic php with an MVC pattern
sayan has quit [Ping timeout: 265 seconds]
adkron has joined #ruby
MerryChristmsas has quit [K-Lined]
<breakingthings> I've been using FuelPHP for a little while, but they've hit a barrier with many team members moving on and falling behind (and it's kinda constantly broken)
<shevy> anders_ the problem with making a framework is, that in order to be good, you really need to invest a LOT of time, not only in the code, but in examples, documentation etc...
<breakingthings> Laravel is starting to take PHP by storm and it seems pretty interesting, it's also moving to Composer for the 4th release.
Criztian has joined #ruby
<dsdeiz> symfony2 seems nice as well
<breakingthings> What shevy said. Frameworks are lots of work.
<breakingthings> dsdeiz iirc laravel uses parts of symfony too
<breakingthings> though I hear the symfony community is a bit snobby
jerius has quit [Ping timeout: 244 seconds]
<hybRis> i think the problem is php wasnt an OOP language to begin with, so all the layers they've put on top of it to make it "modern" feel so hacky and inconsitent
<breakingthings> Anyway, short of it is PHP's framework community is going crazy right now.
altamic has joined #ruby
altamic has quit [Client Quit]
<breakingthings> hybRis definitely.
<shevy> php is a pretty chaotic language
<anders_> breakingthings, so Rails is good for small projects? How small until it's impractical?
<mpfundstein2> twitter:-)
<breakingthings> anders_ rails is good for many projects
<shevy> damn the twitter folks for abandoning ruby :(
<oqa> hybRis: the problem with PHP is that it's designer wasn't a pro at designing languages or even coding
<breakingthings> It's not so bloated that it's useless on small projects and it can be built upon for larger projects
<hybRis> shevy: what are they using now?
thecreators has joined #ruby
<breakingthings> thing with PHP projects is they try to be all-encompassing. Composer will change that as they get dependency management similar to gems
msch is now known as msch_
<anders_> breakingthings, what's rails advantage over php frameworks like CI?
<breakingthings> anders_ that's a pretty large gap to compare.
thmzlt has quit [Quit: Leaving...]
<breakingthings> PHP is still in the dark about dependencies and bundling, they're just now getting a gem-like system via composer
msch_ is now known as msch
<breakingthings> They've been doing framework-tied bundles for quite a long time now
<anders_> breakingthings, what php framework that is most similar to rails then?
<hybRis> laravel looks pretty close
<breakingthings> CodeIgniter was built by and for a corporation that utilizes it so it has many many features but they're built with legacy support and lots of extra stuff that not everyone needs
<breakingthings> Laravel, I would say.
<dmiller> anders_: the advantages are that you are using ruby instead of PHP. Other than that there are many frameworks in php that imitate rails functionality. I'm a fan of laravel as well
<hybRis> worst part about php: fucking little arrows everywhere
<breakingthings> hybRis Unexpected T_PAAMAYIM_NEKUDOTAYIM
ciopte7 has joined #ruby
ltsstar has joined #ruby
<hybRis> haha good old colon colon in hebrew or whatever it is
<breakingthings> probably my favorite "WTF" error when you're trying to learn php
<anders_> hybRis, yeah, they should use dots instead
<breakingthings> ^
<breakingthings> dot notation is rad
<hybRis> yup
EhyehAsherEhyeh has joined #ruby
<hybRis> just because -> is possibly the hardest combination of characters to type
<breakingthings> hate that PHP uses silly double colons/arrows and uses dots for concatenation
<breakingthings> 3 keys vs 1
cousine has quit [Remote host closed the connection]
havenn has joined #ruby
<breakingthings> Even though PHP 5.4 is a great improvement over the widely used 5.2, it still feels like a bandaid over a heap of trash
zastern has joined #ruby
<breakingthings> andthatswhyimlearningruby.jpeg
EhyehAsherEhyeh has quit [Ping timeout: 265 seconds]
mpfundstein2 has quit [Ping timeout: 260 seconds]
<anders_> breakingthings, did you use PHP before?
<breakingthings> Still do for work. Wading into ruby/rails as of recently
<breakingthings> I haven't actually written anything in ruby/rails yet.
<anders_> breakingthings, how long time did you spend learning ruby and then rails?
d2dchat has joined #ruby
<breakingthings> anders_ I've got a pretty decent grasp on web programming concepts, so most of my learning has just been learning ruby's syntax and some special bits to how rails implements those concepts.
<breakingthings> Just started taking a serious effort in as of a few weeks ago, only able to spend real time on it over weekends
<breakingthings> Just a few hours here and there.
<dmiller> anders_: A few years ago I tried to learn RoR without having learnt Ruby. Definitely dive into some vanilla Ruby projects first then rails will make a lot more sense.
jblack has joined #ruby
camonz has joined #ruby
<breakingthings> Another gripe with php: I hate that type conversion is a global-level function instead of a method of the type
<anders_> dmiller ok, maybe I clone some easy rail app repos on github
apeiros_ has joined #ruby
ltsstar has quit [Ping timeout: 250 seconds]
<breakingthings> eg. php's intval('44') as opposed to ruby's '44'.to_s
<breakingthings> err
<breakingthings> to_i
<anders_> breakingthings, so .toString is global.. what is the problem?
zwevans has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<dmiller> anders_: I mean I would start by building a simple, OO Ruby program. A solid understanding of Ruby design principles makes understanding Rails a whole lot easier because Rails actually does some pretty funky stuff with the Ruby language, which is one reason why Ruby is awesome
<breakingthings> anders_ .toString doesn't exist in PHP, is what I'm saying
filipe has quit [Quit: Leaving]
camonz has quit [Client Quit]
g_bleezy has quit [Remote host closed the connection]
jerius has joined #ruby
<anders_> breakingthings, you are right, I'm surpriced
<havenn> String(Integer('44')).to_i.to_s
<shevy> anders_ dive into rails first, then you will come to #ruby anyway ;)
<breakingthings> havenn oh gob wut
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
apeiros_ has quit [Ping timeout: 260 seconds]
NobbZ is now known as NobbZ|away
kirun has joined #ruby
<anders_> havenn, strval(intval('44'));
neersighted has quit [Ping timeout: 252 seconds]
pyr0commie has joined #ruby
_nitti_ has quit [Remote host closed the connection]
neersighted has joined #ruby
_nitti has joined #ruby
kmurph has joined #ruby
<Hanmac> information: Integer() method is FAR different from .to_i ... Integer does understand mathmatical notations but does raise an error on fail
sayan has joined #ruby
s33k has quit [Ping timeout: 255 seconds]
bhavesh_a_p has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
nwertman has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
statarb3 has quit [Ping timeout: 252 seconds]
<jrajav> Also, to_i has an o in the name
<jrajav> That's the most important difference
<breakingthings> it also has an underscore
<breakingthings> #wow #whoa
<Hanmac> underscores are underrated :P
mpfundstein2 has joined #ruby
dsdeiz has quit [Ping timeout: 256 seconds]
cantonic has quit [Quit: cantonic]
<shevy> overscores are overrated
<breakingthings> shevy no way man overscores are underrated
adkron has quit [Ping timeout: 265 seconds]
pyr0commie has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
kidoz has joined #ruby
mpfundstein2 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
regedarek has quit [Ping timeout: 265 seconds]
regedarek has joined #ruby
<jrajav> ‾ > _
philcrissman has quit [Remote host closed the connection]
ABK has quit [Ping timeout: 252 seconds]
adeponte has joined #ruby
Takehiro has joined #ruby
philcrissman has joined #ruby
camonz has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
eldariof has joined #ruby
nicoulaj has joined #ruby
becom33 has joined #ruby
<becom33> http://pastie.org/5580812 Im getting error undefined method `find'
<Hanmac> you are in the wrong scope
<becom33> Hanmac, what do you mean
<Hanmac> you define @list_of_request as instance variable of the class, but does request it as instance variable of the object
<becom33> but it worked before :/
nicoulaj has quit [Read error: Connection reset by peer]
<Hanmac> no it does not
<Hanmac> the last time you defined the method with self. before
<becom33> ok lets just put it in to the method . still why am I getting a null as output here http://pastie.org/5580898
<becom33> $_GET is in line
kidoz has quit [Quit: Ухожу я от вас]
cascalheira has joined #ruby
<jblack> is there a simpler way to express somearray.each { |e| dosomething(e) } ?
pesnk has quit [Quit: Saindo]
kil0byte has quit [Remote host closed the connection]
<Hanmac> becom33 search for Reqex.escape
<breakingthings> reqex?
<becom33> Regex.escape ?
<Hanmac> Regexp.escape
busybox42 has quit [Ping timeout: 265 seconds]
<hoelzro> jblack: if you're just calling a method inside the block, you *could* do somearray.each(&:method)
statarb3 has joined #ruby
<breakingthings> What's &: signify?
<becom33> I see Hanmac its the $ sign
<becom33> :D
burgestrand has quit [Quit: Leaving.]
<Banistergalaxy> Jbkack u mean &method(:meth)
<hoelzro> breakingthings: well, :method is a symbol
<hoelzro> the & prefix says "coerce this to a Proc, and use that Proc as the block for this call"
<breakingthings> ah
<hoelzro> the coercion is done via to_proc
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
lenovodroid has quit [Ping timeout: 246 seconds]
cascalheira has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
crackfu has joined #ruby
sidev has quit [Quit: leaving]
burgestrand has joined #ruby
jerius has joined #ruby
<hybRis> what does coercion mean?
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<hoelzro> hybRis: it's like forcing a type. sort of.
<hoelzro> Ruby needs a proc to use as a block to a method. So a Proc coercion is performed on non-Proc objects to get that proc
dangerousdave has joined #ruby
msch has quit [Excess Flood]
Noldorin has joined #ruby
<breakingthings> type coercion is the same thing as type conversion, i believe
Neomex has joined #ruby
Neomex has quit [Client Quit]
<TTilus> hoelzro: actually, that amp says that the particular argument is to be treater the special block argument
breakingthings has quit []
<Hanmac> coercion is very funny with Rubys Numeric classes
<TTilus> *treated as the
<hoelzro> TTilus: right, but it needs to coerce a Proc out of the argument to be able to do that
jrajav has quit [Quit: I tend to be neutral about apples]
hybRis has quit [Quit: Leaving]
<TTilus> hoelzro: it cant call a symbol, and it is a convention to try .to_proc
msch has joined #ruby
<hoelzro> isn't the to_proc call defined by Ruby?
<hoelzro> it's not so much a convention as it as a rule, right?
<TTilus> it has nothing to do with the coercion convention mechanism used with arithmetic operators
<becom33> http://pastie.org/5580968 Im kinda stuck with the same issue again , but the problem the string is dynamic there could be symbols letters numbers . I got the latters and numbers . but the sybols :/ help
<TTilus> it works differently
v0n has quit [Ping timeout: 252 seconds]
Takehiro has quit [Remote host closed the connection]
woolite64 has joined #ruby
msch has quit [Client Quit]
<TTilus> hoelzro: it is a convention, if you put a construct like that together yourself, you are absolugtely not required to call .to_proc on symbols found from block argument slot
chussenot has joined #ruby
<becom33> nvm got it done
burgestrand1 has joined #ruby
cantonic has joined #ruby
burgestrand has quit [Ping timeout: 250 seconds]
wallerdev has joined #ruby
<TTilus> hoelzro: hum, i may have been somewhat wrong
<TTilus> hoelzro: ruby does that Symbol#to_proc automatically to all syms provided as block parameters
razibog1 has quit [Quit: Leaving.]
atmosx has joined #ruby
razibog has joined #ruby
<TTilus> hoelzro: so ur right and it is a rule
dsdeiz has joined #ruby
razibog has quit [Client Quit]
nemesit has joined #ruby
zeade has joined #ruby
<TTilus> hoelzro: but it works differently compared to coercion on arithmetic operators
_64k has quit [Quit: _64k]
kmurph has quit [Quit: kmurph]
<lectrick> Is there a way to temporarily grab IO output (standard IO) within a block and then return it to its previous output device after the block?
<becom33> Hanmac, http://pastie.org/5581004#8 Im getting $_GET as the response what if I want to get the $stuff for an example whats before the = sighn
danneu has quit [Quit: WeeChat 0.3.8]
<lectrick> basically I want to temporarily be the recipient of STDOUT within a block and then return it
<hoelzro> TTilus: indeed it does; coercion may have been a poor choice of words on my part =)
malte_ has quit [Quit: malte_]
dyrot has joined #ruby
msch has joined #ruby
<TTilus> lectrick: uhm, sounds like somethings going somewhat wrong
thecreators has quit [Quit: thecreators]
darthdeus has quit [Quit: Leaving...]
<lectrick> TTilus: Nah, I'm just being clever
hoelzro is now known as hoelzro|away
<lectrick> I know what I'm doing (I think)
<TTilus> lectrick: wrapping legacy stuff or what?
jfl0wers has joined #ruby
theRoUS has quit [Killed (wright.freenode.net (Nickname regained by services))]
theRoUS_ is now known as theRoUS
theRoUS has quit [Changing host]
theRoUS has joined #ruby
Guest5080 has joined #ruby
under has joined #ruby
adkron has joined #ruby
Takehiro has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
nwertman has joined #ruby
thatguycraig has joined #ruby
xandy is now known as xAndy
banisterfiend has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<TTilus> lectrick: what did you win by being clever over just being correct? ;)
ananthakumaran has quit [Quit: Leaving.]
<theRoUS> ruby 1.9.3p327, redcarpet (2.2.2), rake (10.0.3), yard (0.8.3)
<theRoUS> i keep getting this:
<theRoUS> $ rake yard
<theRoUS> [error]: Missing 'redcarpet' gem for Markdown formatting. Install it with `gem install redcarpet`
<under> Hi guys. Can I ask about a gem?
<TTilus> just ask
<theRoUS> redcarpet is a) installed, b) listed in the .gemspec as a dev dependency, and c) in the Gemfile{,.lock}. the architecture is fedora fc17 x86_64.
Morkel has joined #ruby
<theRoUS> i haven't found any relevant stuff online yet
<TTilus> theRoUS: something wrong with gem path?
nwertman has quit [Ping timeout: 246 seconds]
havenn has quit [Ping timeout: 252 seconds]
<TTilus> theRoUS: done bundle install?
<theRoUS> TTilus: bundle show <gem> for each shows them in the system path, e.g. /usr/local/share/gems/gems/redcarpet-2.2.2
jfl0wers has quit [Quit: jfl0wers]
<TTilus> theRoUS: sounds right
<theRoUS> TTilus: 'bundle check' shows all happiness.
<theRoUS> and running 'yardoc' from the command line works a treat.
<TTilus> theRoUS: rake somehow loses them still
<theRoUS> it's just when run from rake..
malte_ has joined #ruby
tjbiddle has joined #ruby
regedarek has quit [Ping timeout: 255 seconds]
<TTilus> theRoUS: tried putting binding.pry inside rake stuff and poke then around to see if load paths gedm paths and sorts of things are allright?
regedarek has joined #ruby
<under> I'm new of ruby. I'm doing an irc bot using Cench ( https://github.com/cinchrb/cinch, http://rubydoc.info/gems/cinch/frames ) and I would like to know how to use DCC module in the Bot class
<theRoUS> TTilus: hmm. commenting out some bundler stuff in the rakefile gets it further along..
<TTilus> under: does cinch have own irc channel?
<TTilus> under: tried to look for examples?
adkron has quit [Ping timeout: 252 seconds]
<under> yes, here on freenode, but nobody seems to be online. Yes I gave a look to examples but DCC is never used
<TTilus> theRoUS: you might have offending stuff in rakefile
Slivka has joined #ruby
<TTilus> theRoUS: it just begs for REPLing where things go wrong
adkron has joined #ruby
<theRoUS> yeah. i thought i had tried commenting it out before, but i must not have saved. d'oh.
Noldorin has quit [Quit: Computer has gone to sleep.]
toekutr has joined #ruby
<TTilus> under: if api docs dont help you out, im afraid i cant either, dunno nothing about cincg
DaltonUS has quit [Quit: DaltonUS]
<TTilus> cinch even
bhavesh_a_p has quit [Remote host closed the connection]
benlieb has joined #ruby
voodoofish430 has joined #ruby
jgrevich has joined #ruby
banisterfiend has joined #ruby
Dreamer3 has joined #ruby
<under> TTilus: ok, dont warry, thanks anyway :)
thecreators has joined #ruby
DaltonUS has joined #ruby
_nitti has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 252 seconds]
miskander has quit [Quit: miskander]
jblack has quit [Ping timeout: 245 seconds]
<lectrick> TTilus: Why can I not tab-complete your name? lol
<ner0x> faker... what a useful gem. :)
<banisterfiend> "bring more value from the base reality to other realities and to make software for that purpose"
kokainepizza has joined #ruby
<TTilus> lepht: i can
<under> Me too
<TTilus> lectrick: damn, that was for u ^
<TTilus> lepht: sorry, ment lectrick
stkowski has joined #ruby
<lectrick> TTilus: I wrote a monkeypatch management class. Someone on our team wants to monkeypatch a method that gets fixed in a Rails version that is future to the one we are stuck on for now. My patcher class makes you write a test to see whether your patch is necessary before it will run it.
<lectrick> TTIlus: The only change in behavior is the deprecation warning which goes to stdout.
<TTilus> banisterfiend: where the ce is that from?
<banisterfiend> TTilus: from yugui's linked in :)
tombar has joined #ruby
<lectrick> TTilus: So the trick is, how do you only apply the patch if the warning is not emitted to STDOUT?
Banistergalaxy has quit [Quit: Bye]
Banistergalaxy has joined #ruby
wallerdev has quit [Quit: wallerdev]
<TTilus> lectrick: reconfigure deprecation logger?
<lectrick> TTilus: The person wanted to just check for the Rails version but I thought that was not as specific as checking the specific behavior you're trying to patch
matchaw_ has joined #ruby
<TTilus> lectrick: yes, you really are being really, really clever O.o
<lectrick> TTilus: It's not a deprecation. This is the warning: ~.rvm/gems/ruby-1.9.3-p327@rails3/gems/activesupport-3.0.17/lib/active_support/core_ext/string/output_safety.rb:23: warning: regexp match /.../n against to UTF-8 string
<TTilus> lectrick: not that its not true and proper duck oo
matchaw_ has quit [Remote host closed the connection]
<TTilus> lectrick: ah, i see
<lectrick> TTilus: I am paranoid about unexpected side effects causing weird bugs. Our codebase is getting very big and if these get out of control we are fucked
<lectrick> TTilus: We are also trying to keep up with newer versions of gems, Rails, etc. so I consider this very important to control
<TTilus> lectrick: id say that kind of stdout redirections are exactly the stuff that you wanna avoid if thets your worry :)
Guest5080 has quit [Ping timeout: 250 seconds]
<lectrick> TTilus: Well, if it's just a temporary swapout within a block I don't see the harm, but I understand your concern actually
<lectrick> TTilus: Especially when it comes to threads etc
theRoUS has quit [Ping timeout: 265 seconds]
<TTilus> lectrick: you _know_ the rails versions and can enumerate the ones having the bug :)
GoGoGarrett has quit [Remote host closed the connection]
emergion has joined #ruby
<lectrick> TTilus: Yeah, I'm considering just a version check if that is reliable enough. Certainly easier to write lol
<TTilus> lectrick: exactly
<TTilus> simple, understandable, maintainable, etc.
cantonic has quit [Quit: cantonic]
DrShoggoth has joined #ruby
Russell^^_ has joined #ruby
zastern has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
Russell^^ has quit [Ping timeout: 252 seconds]
Russell^^_ is now known as Russell^^
llaskin has joined #ruby
<llaskin> https://gist.github.com/4382236 i know my syntax on line 18 is incorrect. How would I force a retry if the condition in the if is not met?
jgrevich has quit [Ping timeout: 245 seconds]
jgrevich_ is now known as jgrevich
_nitti has joined #ruby
xAndy is now known as xandy
<lectrick> TTilus: yeah, decided to just do the rails version check even though it's not as, eh, "scientific" :)
<lectrick> for all those reasons.
tjbiddle has quit [Quit: tjbiddle]
<lectrick> I think the Patcher class I wrote is kind of neat, it's one of the things I need to gem out at some point
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> llaskin: retry is for loops
<llaskin> https://gist.github.com/4382305 would this work?
alexspeller has joined #ruby
<Hanmac> (hm ok it seems to exist on rescue too)
under has quit [Ping timeout: 255 seconds]
Tania has joined #ruby
Tania has quit [Quit: :p]
alexspeller has quit [Remote host closed the connection]
<llaskin> can you retry inside of a catch?
iamjarvo has quit [Quit: Leaving.]
nomenkun has joined #ruby
<Hanmac> i dont know, i only know that your order of throw and catch is wrong
<lectrick> Does _ (result of las command) exist outside of an IRB context, like in regular Ruby?
<lectrick> last*
<Hanmac> no
mercwithamouth has joined #ruby
Takehiro has quit [Remote host closed the connection]
<llaskin> https://gist.github.com/4382305 Hanmac like this?
Slivka has quit [Remote host closed the connection]
<Hanmac> maybe
Dreamer3 has quit [Quit: Leaving...]
_64k has joined #ruby
wallerdev has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
jarred has joined #ruby
breakingthings has joined #ruby
mahmoudi_ has joined #ruby
_alejandro has joined #ruby
mpfundstein has quit [Ping timeout: 255 seconds]
atmosx has quit [Quit: And so the story goes…]
alexspeller has joined #ruby
alexspeller has quit [Remote host closed the connection]
adamnbowen has joined #ruby
alexspeller has joined #ruby
sailias has quit [Quit: Leaving.]
danneu has joined #ruby
alexspeller has quit [Remote host closed the connection]
cantonic has joined #ruby
pablo_ has joined #ruby
wargasm has joined #ruby
cousine has joined #ruby
ketan_ has joined #ruby
havenn has joined #ruby
ketan_ has left #ruby [#ruby]
arturaz has joined #ruby
ketan has joined #ruby
ketan1 has joined #ruby
<tommyvyo> anyone know what might cause #class to be returned as nil?
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
<Hanmac> tommyvyo show us your code
kiyoura has joined #ruby
thecreators has quit [Quit: thecreators]
<tommyvyo> ActiveCollab::Project.new.class == nil
kmurph has joined #ruby
<Hanmac> its attr_accessor :class
<Hanmac> it does overwite the normal class method
arietis has joined #ruby
havenn_ has joined #ruby
havenn has quit [Read error: No route to host]
dyrot has quit [Ping timeout: 255 seconds]
elico has joined #ruby
<ketan> ?
becom33 has quit [Ping timeout: 250 seconds]
GoGoGarrett has joined #ruby
wermel has quit [Remote host closed the connection]
Takehiro has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
cousine has quit [Remote host closed the connection]
<tommyvyo> oh snap Hanmac , i hadn't even noticed that… t
<tommyvyo> thakn you!
benlieb has quit [Quit: benlieb]
<tommyvyo> sorry for wasting your time on something stupid :(
ebouchut has joined #ruby
<shevy> tommyvyo keep in mind how many people ask questions here, "stupid" is only a relative word, there are thousand things stupider
mpfundstein has joined #ruby
atmosx has joined #ruby
<tommyvyo> :) ty shev
Takehiro has quit [Ping timeout: 265 seconds]
<shevy> Hanmac is the ruby guru
twopoint718 has quit [Quit: leaving]
<shevy> but his ruby code is scary
<atmosx> helloo
<atmosx> plenty of gurus here
<breakingthings> uruguru
<breakingthings> arugula.
<atmosx> I wonder how fast can avg Joe spell "ubuntu guru"
<breakingthings> ubuntuguru
<breakingthings> that's a lot of u's
twopoint718 has joined #ruby
<atmosx> yeap
<breakingthings> that's like, 50 u's.
adeponte has quit [Remote host closed the connection]
dsdeiz has quit [Ping timeout: 252 seconds]
<atmosx> my blog if awesome
<atmosx> s/if/is
<atmosx> lol
mawan has joined #ruby
<banisterfiend> atmosx: link
<atmosx> www.convalesco.org (I don't know shit about web design, just twicked the screen.css)
mawan has left #ruby [#ruby]
<atmosx> but I like it
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
kirun_ has joined #ruby
jblack has joined #ruby
msch has quit [Read error: Connection reset by peer]
cantonic has quit [Quit: cantonic]
pen has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 244 seconds]
cantonic has joined #ruby
cantonic has quit [Client Quit]
dsdeiz has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
GoGoGarrett has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 250 seconds]
burgestrand1 has quit [Quit: Leaving.]
twopoint718 has quit [Quit: leaving]
blaxter has quit [Quit: foo]
AlSquire has joined #ruby
becom33 has joined #ruby
dsdeiz has quit [Ping timeout: 260 seconds]
burgestrand has joined #ruby
GoGoGarrett has joined #ruby
cantonic has joined #ruby
CannedCorn has joined #ruby
<CannedCorn> whats the different between 0x00 and "\x00"?
slainer68 has joined #ruby
adeponte has joined #ruby
<CannedCorn> don't they both represent the null byte
lolmaus has quit []
<burgestrand> CannedCorn: 0x00 is the number 0, "\x00" is the string containing a nul byte.
<CannedCorn> ah
<CannedCorn> the number just happens to be represented in hex but isn't actually two zero nibbles
<burgestrand> CannedCorn: yep.
<burgestrand> CannedCorn: you can write it as 0x0000000000 if you want.
dyrot has joined #ruby
dsdeiz has joined #ruby
zastern has joined #ruby
_nitti has quit [Remote host closed the connection]
<CannedCorn> right
Morkel has quit [Read error: Connection reset by peer]
<CannedCorn> thanks burgestrand
emmanuelux has joined #ruby
Morkel has joined #ruby
Siphonblast has quit [Ping timeout: 252 seconds]
dsdeiz has quit [Ping timeout: 255 seconds]
banisterfiend has joined #ruby
_nitti_ has joined #ruby
shevy has quit [Read error: Operation timed out]
tombar has quit [Remote host closed the connection]
JMcAfreak has joined #ruby
_nitti_ has quit [Read error: Operation timed out]
adeponte has quit [Remote host closed the connection]
_nitti has joined #ruby
adeponte has joined #ruby
jenrzzz has joined #ruby
<anders_> http://spinejs.com/ .... wtf
_nitti_ has joined #ruby
_nitti has quit [Ping timeout: 260 seconds]
<breakingthings> anders_ wtf what
_nitti has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
EhyehAsherEhyeh has joined #ruby
dsdeiz has joined #ruby
eldariof has quit []
_nitti_ has quit [Ping timeout: 265 seconds]
_alejandro has quit [Remote host closed the connection]
chussenot_ has joined #ruby
chussenot has quit [Ping timeout: 252 seconds]
chussenot_ is now known as chussenot
_nitti_ has joined #ruby
dyrot has quit [Ping timeout: 246 seconds]
_nitti has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Ping timeout: 246 seconds]
Siphonblast has joined #ruby
IceDragon has joined #ruby
shevy has joined #ruby
_nitti has joined #ruby
dsdeiz has quit [Ping timeout: 245 seconds]
Iszak has quit []
_nitti_ has quit [Ping timeout: 265 seconds]
emocakes has joined #ruby
frem has joined #ruby
_nitti_ has joined #ruby
_nitti has quit [Ping timeout: 250 seconds]
greenarrow has quit [Read error: Connection reset by peer]
greenarrow has joined #ruby
cantonic has quit [Quit: cantonic]
CannedCorn has quit [Quit: Leaving]
Noldorin has joined #ruby
_nitti has joined #ruby
_nitti_ has quit [Ping timeout: 265 seconds]
alexspeller has joined #ruby
yacks has quit [Read error: Connection reset by peer]
dyrot has joined #ruby
_nitti_ has joined #ruby
_nitti has quit [Ping timeout: 252 seconds]
danneu has quit [Quit: WeeChat 0.3.8]
s0ber_ has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
cousine has joined #ruby
alexspeller has quit [Ping timeout: 252 seconds]
JMcAfreak has quit [Quit: To the bath-cave!]
s0ber has quit [Ping timeout: 256 seconds]
s0ber_ is now known as s0ber
JMcAfreak has joined #ruby
etank has quit [Quit: WeeChat 0.3.9.2]
cantonic has joined #ruby
dsdeiz has joined #ruby
etank has joined #ruby
adkron has quit [Ping timeout: 260 seconds]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dyrot has quit [Ping timeout: 255 seconds]
_nitti_ has quit [Ping timeout: 252 seconds]
hoelzro|away is now known as hoelzro
chussenot has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
cakehero has joined #ruby
skcin7 has joined #ruby
xandy is now known as xAndy
zommi has joined #ruby
nemesit has quit [Quit: Leaving...]
jjbohn has joined #ruby
nignaztic has joined #ruby
havenn_ has quit [Remote host closed the connection]
jjbohn has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
havenn has joined #ruby
xAndy is now known as xandy
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby
dyrot has joined #ruby
jblack_ has joined #ruby
Targen_ has joined #ruby
Targen has quit [Ping timeout: 260 seconds]
assurbanipal has quit [Quit: Leaving]
nignaztic is now known as nazz
EhyehAsherEhyeh_ has joined #ruby
jblack has quit [Ping timeout: 260 seconds]
nignaztic has joined #ruby
lawliet has joined #ruby
nazz has quit [Quit: Leaving]
EhyehAsherEhyeh has quit [Ping timeout: 265 seconds]
JMcAfreak has quit [Quit: To the bath-cave!]
nignaztic has quit [Client Quit]
naz has joined #ruby
Morkel has quit [Quit: Morkel]
msch has joined #ruby
havenn has quit [Remote host closed the connection]
lawliet has quit [Quit: lawliet]
lawliet has joined #ruby
camonz_ has joined #ruby
dyrot has quit [Ping timeout: 245 seconds]
camonz_ has quit [Client Quit]
xaq has joined #ruby
xandy is now known as xAndy
jenrzzz has quit [Ping timeout: 250 seconds]
iPhoneMRZ has joined #ruby
cableray has joined #ruby
eph3meral has joined #ruby
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tpelletier has joined #ruby
kirun_ has quit [Quit: Client exiting]
jjbohn has quit [Quit: Leaving...]
Nisstyre has joined #ruby
cantonic_ has joined #ruby
cantonic has quit [Ping timeout: 245 seconds]
cantonic_ is now known as cantonic
chussenot has joined #ruby
_64k has quit [Quit: _64k]
dyrot has joined #ruby
zommi has left #ruby [#ruby]
freakazoid0223 has joined #ruby
_nitti has joined #ruby
GlenK has joined #ruby
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<GlenK> so I'm working through koans. can someone help me understand why the 4,0 slice isn't the same as the 5,0 slice? http://fpaste.org/2p3x/
llaskin has left #ruby [#ruby]
snearch has joined #ruby
chussenot has quit [Quit: chussenot]
Spaceghostc2c has quit [Excess Flood]
cakehero has quit [Quit: Computer has gone to sleep.]
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
miskander has joined #ruby
<blazes816> GlenK: because the array only has 4 elements, so 5,0 returns nil
skcin7 has quit [Quit: Computer has gone to sleep.]
Spaceghostc2c has joined #ruby
cakehero has joined #ruby
DaZ has quit [Ping timeout: 265 seconds]
freakazoid0223 has quit [Quit: Leaving]
miskander has quit [Quit: miskander]
philcrissman has quit [Remote host closed the connection]
timonv has joined #ruby
miskander has joined #ruby
ciopte7 has quit [Quit: ciopte7]
DaZ has joined #ruby
main has joined #ruby
thatguycraig has quit [Quit: Leaving.]
main has quit [Read error: Connection reset by peer]
skcin7 has joined #ruby
<GlenK> blazes816: I was under the impression that the 4 was the start index and the 0 was the amount of elements. no?
Guest24 has joined #ruby
Criztian has quit [Remote host closed the connection]
<eph3meral> lol wut?
<blazes816> GlenK: you are correct. that's why 4,0 returns an empty array (starts with the 4th element, returns 0 elements). but with 5,0, since there isn't an element at that index, it simply returns nil
<eka> GlenK: cause 5 is out of index
skcin7 has quit [Client Quit]
skcin7 has joined #ruby
<GlenK> but shouldn't 4 be out of index as well since you start at 0? or does it index some terminator thing?
twoism has joined #ruby
ebouchut has joined #ruby
theRoUS has joined #ruby
Guest5080 has joined #ruby
<eka> GlenK: you are right… looking
<blazes816> very strange
<yxhuvud> GlenK: look at it like fenceposts. index 4 is still in contact with the contents.
theRoUS is now known as RoUS
<GlenK> yxhuvud: ah. makes sense that way, sure. thanks.
<blazes816> yeah, it looks like it still returns an empty array if that index is == the length. seems weird
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Jasko has quit [Read error: Connection reset by peer]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
Jasko has joined #ruby
<graft> How do I fix this module setup so that it prints the correct nesting? https://gist.github.com/4383391
<graft> I want it to print "Test::Doll\nTest", but right now it prints "Model::Dummy\nModel"
neiled has joined #ruby
Noldorin has quit [Quit: Computer has gone to sleep.]
snearch has quit [Quit: Verlassend]
ebouchut has quit [Quit: This computer has gone to sleep]
twoism has quit [Remote host closed the connection]
skcin7 has quit []
Edward__ has joined #ruby
twoism has joined #ruby
crackfu has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
fir_ed has quit [Ping timeout: 255 seconds]
_64k has joined #ruby
luckyruby has joined #ruby
stevechiagozie has joined #ruby
twoism has quit [Ping timeout: 246 seconds]
mpfundstein has quit [Ping timeout: 252 seconds]
mpfundstein has joined #ruby
Jackneill has quit [Quit: Leaving]
rubyok has joined #ruby
dsdeiz has quit [Ping timeout: 252 seconds]
cableray has quit [Quit: cableray]
Guest24 has quit [Ping timeout: 246 seconds]
crackfu has joined #ruby
rubyok has quit [Client Quit]
Iszak has joined #ruby
fir_ed has joined #ruby
<GlenK> eka: k, thanks.
adeponte has quit [Remote host closed the connection]
nilg has joined #ruby
Edward__ has quit [Ping timeout: 252 seconds]
love_color_text has quit [Remote host closed the connection]
adeponte has joined #ruby
greenarrow has quit [Ping timeout: 250 seconds]
seanwash has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
greenarrow has joined #ruby
Siphonblast has quit [Ping timeout: 244 seconds]
<graft> ergh. is there a way for a mixin to know what class is mixing it?
caemir has joined #ruby
mengu has quit [Quit: Konversation terminated!]
<hoelzro> graft: sort of; what do you need it for?
<Banistergalaxy> Hh
love_color_text has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<graft> hoelzro: well, i want to have like: Model::Class, Model::Config, Test::Case < Model::Class and Test::Config < Model::Config - then Test::Case.new.config should return Test::Config.new, but i want the config method to go in Model::Class
tomzx_ has joined #ruby
<hoelzro> graft: so Model::Class is your mixin?
<graft> yeah
<hoelzro> why are you subclassing it in Test::Case?
<graft> i'm not actually subclassing it, i'm including it there
dublon has joined #ruby
<hoelzro> oh, ok =)
Guest9041 has quit [Read error: Connection reset by peer]
<hoelzro> just checking
<graft> yeah, unclear, sorry
<hoelzro> so, Test::Case#config should return Test::Config.new
<hoelzro> what are the other possible returns of this config method?
Guest9041 has joined #ruby
Virunga has joined #ruby
<graft> well, if I had Test2::Case and Test2::Config, Test2::Case#config should return Test2::Config.new
dyrot has quit [Ping timeout: 265 seconds]
rakl has joined #ruby
<hoelzro> graft: so it's chopping off all but the first name in the namespace, and appending Config?
<graft> hoelzro: essentially
<graft> hoelzro: however, if i call something like Module.nesting in Model::Class#config, I get the nesting for Model::Class
emsilva has joined #ruby
<hoelzro> graft: why not just grab self.class.name in the config body and do your work on that?
snorkdude has joined #ruby
logabr has joined #ruby
marr has joined #ruby
<graft> hoelzro: yeah that's probably the way to go
<hoelzro> that's what I would do
<emsilva> hi there. I'm building a gem to use on a rails application. Can someone point me in the right direction of the best way to retrieve the Rails.root of the application? The reason I created a gem outside of rails is because it does some minor things, and I don't want the whole environment loaded on top of it, so including rails environment on the gem is in this case not the best solution.
adkron has joined #ruby
otters has quit [Quit: WeeChat 0.3.9.2]
bean has quit [Quit: Computer has gone to sleep.]
<arturaz> emsilva, well, if you don't want the env, there is no way to know Rails.root, don't ya think? :)
nfk has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
logabr has quit [Quit: logabr]
xAndy is now known as xandy
dsdeiz has joined #ruby
<nfk> not sure if this is the right place for RoR questions but has something changed in rails server use? from what i remember, last year it provided helpful error messages but now when doing development it just sends me to 500.html
<arturaz> nfk, #rubyonrails
<nfk> thanks
dyrot has joined #ruby
<emsilva> arturaz: I was hoping about some type of magic with bundle to retrieve the path, or something to that extent. All this gem does is receive a file as argument, and add the file data to queue_classic.
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tomzx_ has quit [Ping timeout: 256 seconds]
Siphonblast has joined #ruby
Chryson has joined #ruby
<ner0x> Anyone here use FactoryGirl and know how to get attributes into sequences?
phelps has quit [Quit: Textual IRC Client: www.textualapp.com]
canton7_mobile has joined #ruby
forcefsck is now known as ioannis
ioannis is now known as forcefsck
dsdeiz has quit [Ping timeout: 250 seconds]
Criztian has joined #ruby
Criztian has quit [Remote host closed the connection]
<emsilva> ner0x: I think I didn't understand your question. Can you give an example?
zaiste has quit [Quit: leaving]
nomenkun has quit [Remote host closed the connection]
dyrot has quit [Read error: Operation timed out]
love_color_text has quit [Remote host closed the connection]
dublon has quit []
love_color_text has joined #ruby
<ner0x> emsilva: When using sequences in FactoryGirl you are handed a |n| for all sequences. Can you also supply other attributes?
cableray has joined #ruby
tpelletier has quit [Quit: tpelletier]
benlieb has joined #ruby
mengu has joined #ruby
jekotia has joined #ruby
tpelletier has joined #ruby
huangjs has quit [Quit: This computer has gone to sleep]
_nitti has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
stefan41 has joined #ruby
<stefan41> are there conditional setters beyond ||= ?
_64k has quit [Quit: _64k]
rakl has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby
love_color_text has quit [Remote host closed the connection]
breakingthings has quit []
<arturaz> += -= *= /= |= &=
dsdeiz has joined #ruby
<ner0x> emsilva: My apologies. I have to be going. Thanks anyway!
ner0x has quit [Quit: Leaving]
d2dchat has quit [Remote host closed the connection]
alanp has quit [Read error: Connection reset by peer]
alanp has joined #ruby
<heftig> stefan41: &&=
<stefan41> heftig or arturaz: Is there a doc page on those (or, rather, there is definitely one, but it's not in the core doc from what i see)
J-_-L has joined #ruby
<arturaz> all operators are just basically foo = foo && value
Targen_ has quit [Read error: Operation timed out]
<arturaz> or foo &&= value
<heftig> well, foo = (foo && value)
toekutr has quit [Remote host closed the connection]
<heftig> (with the edge case that foo = foo will not happen)
DrShoggoth has quit [Quit: Leaving]
kmurph has quit [Quit: kmurph]
dyrot has joined #ruby
tpelletier has quit [Quit: tpelletier]
xandy is now known as xAndy
vlad_starkov has quit [Ping timeout: 244 seconds]
<stefan41> heftig: thank you
hoelzro is now known as hoelzro|away
Targen has joined #ruby
samuel02 has quit [Remote host closed the connection]
classix has quit [Quit: leaving]
miskander has quit [Quit: miskander]
classix has joined #ruby
canton7_mobile has quit [Read error: Connection reset by peer]
adkron has quit [Ping timeout: 244 seconds]
dsdeiz has quit [Ping timeout: 264 seconds]
miskander has joined #ruby
PragCypher has quit [Ping timeout: 245 seconds]
<GlenK> I'm having a hard time understanding this: hash = Hash.new {|hash, key| hash[key] = [] }
neurotech has joined #ruby
havenn has joined #ruby
<arturaz> GlenK, create a new hash, which upon access on non-stored key will store array into that hash under given key
frogstarr78 has quit [Read error: Connection reset by peer]
<GlenK> I guess my question, when is that block run?
<arturaz> basically
<arturaz> hash[:foo] << 3
DaltonUS has quit [Quit: DaltonUS]
<heftig> GlenK: when a nonexisting entry is read
<arturaz> this works because the block inserts [] under :foo
<heftig> the block then has a chance to create this entry (which it does in this case, with an empty array)
<heftig> whatever the block returns is returned as the result of this "failed" read
<heftig> (which is said same array in this case)
dsdeiz has joined #ruby
<heftig> so a hash = Hash.new { |h,k| 3 } would return 3 if you tried to read a nonexisting entry, but wouldn't actually create said entry
<heftig> hash = Hash.new { |h,k| h[k] = 3 } would do the same, but create the entry as well
forcefsck has quit [Quit: Ex-Chat]
<GlenK> I get it, ha sorta. Thanks.
g_bleezy has joined #ruby
_64k has joined #ruby
baphled has quit [Ping timeout: 265 seconds]
<heftig> GlenK: Hash has also has a "default" attribute, which is used if the default
<heftig> GlenK: Hash has also has a "default" attribute, which is used if the default_proc isn't set
<heftig> Hash.new(0) is basically the same as Hash.new { 0 }
J-_-L has quit [Quit: Leaving.]
<heftig> however, it will always return the same single object, which is why this works with an immutable integer, but is pretty useless with an array
thinkclay has joined #ruby
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
DaltonUS has joined #ruby
nick_h has quit [Ping timeout: 256 seconds]
nick_h has joined #ruby
lorn has quit [Ping timeout: 252 seconds]
bean has joined #ruby
mpfundstein has quit [Ping timeout: 250 seconds]
crackfu has quit [Remote host closed the connection]
lorn has joined #ruby
sailias has joined #ruby
pyr0commie has joined #ruby
pyr0commie has quit [Client Quit]
arturaz has quit [Remote host closed the connection]
banisterfiend has joined #ruby
ryanf has joined #ruby
kmurph has joined #ruby
koshii has quit [Ping timeout: 265 seconds]
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
bean has quit [Quit: Textual IRC Client: www.textualapp.com]
fris has joined #ruby
swarles has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
_64k has quit [Quit: _64k]
jerius has quit [Ping timeout: 265 seconds]
adkron has joined #ruby
mpfundstein has joined #ruby
banisterfiend has quit [Ping timeout: 246 seconds]
kmurph has quit [Quit: kmurph]
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
d2dchat has joined #ruby
fris has left #ruby [#ruby]
adkron has quit [Ping timeout: 265 seconds]
C0deMaver1ck has quit [Remote host closed the connection]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
d2dchat has quit [Remote host closed the connection]
banisterfiend has joined #ruby
dunpeal has joined #ruby
<dunpeal> Hi. I keep getting the following warning with some old library: "/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead."
<dunpeal> Is there a benign way to fix / suppress this?
frogstarr78 has joined #ruby