<zlude>
existensil, gizmore, sure! make sense... i choose ruby for that reason. fast coding, solid application, easy to maintenance... but i really want to know about performance, php is faster than a ruby app? or a simples for in php is faster than a simple for in ruby? its really not big important, but im curious
chouchen has joined #ruby
chouchen has quit [Excess Flood]
freerobby has quit [Quit: Leaving.]
<waxjar>
php is easy to learn but hard to handle, ruby is a little harder to learn but so much easier to handle
gkra has quit [Ping timeout: 244 seconds]
<volty>
to maintain
<existensil>
its apples to oranges mostly. the frameworks and tools are so vastly different you could easily setup a benchmark that would show either language dominating at performance
<waxjar>
that too
<gizmore>
zlude: ruby should be faster (no ===) , especially when it comes to websites (no parsing on every request) ---- on the memory side php and ruby are about equal
<pipework>
Anyways, ruby is fun
<volty>
to extend, to scale up
<gizmore>
php + bytecache can be fine too... it´s not that bad... but in general i´d say php is the worst hack around
<gizmore>
ruby is clean and elegant
nonks has quit [Ping timeout: 245 seconds]
<zlude>
yes
<existensil>
zlude: here is a benchmark ruby always wins: Thread.new{ do_something }
<existensil>
since PHP can't
<zlude>
ruby is so clean and elegant
<gizmore>
ruby is not fast, ... but can surely compete with php, and when it comes to serious apps, php is slower
<pipework>
Jruby is fast.
<volty>
zelots, like haskellers and [maybe] some php-ers are closed in their little world of performance theories without real programs
<gizmore>
and in general ruby is a tad faster, because of type handling in ruby
<gizmore>
and then there is JRuby, indeed!
RichardLitt has joined #ruby
<gizmore>
so always, ruby is faster, in serious stuff even magnitudes
<pcflmb>
any ideas pipework?
<existensil>
Feel free to do a CakePHP app and a Rails app and benchmark yourself. if you are using rails 4.2 and ruby 2.1.3 (or jruby) i'm pretty confident you'll get higher requests/sec out of the box... but really, even if that is the case, it tells you so little
<pipework>
JRUBY!
Rollabunna has joined #ruby
<pipework>
pcflmb: You shouldn't need to require it in the controller. Is the constant available without the require in the controller?
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zlude>
thank you guys for all comments
djbkd has joined #ruby
<existensil>
benchmarks are for hardware or in really really rare instances where two pieces of software are doing the exact same thing (like compressing a file)
<existensil>
for web apps its almost irrelevant
<pipework>
Whut
<pipework>
no
<pipework>
Benchmarks are useful for measuring things.
cleopatra has quit [Ping timeout: 240 seconds]
<volty>
it depends on context and time constraints
<existensil>
within an app maybe, to evaluate the efficacy of a change
<existensil>
but in comparing languages?
<existensil>
I might have been over-broad with "reall really rare"
thumpba has quit [Remote host closed the connection]
jontmorehouse has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
starkhalo has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
Azure has joined #ruby
rshetty has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
jasooon has quit [Ping timeout: 258 seconds]
sklik has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 250 seconds]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
rshetty has quit [Remote host closed the connection]
devdazed has joined #ruby
omosoj has quit [Quit: leaving]
autonomousdev has joined #ruby
autonomousdev has quit [Client Quit]
crazydiamond has joined #ruby
lw has joined #ruby
autonomousdev has joined #ruby
autonomousdev has quit [Client Quit]
robustus|Off has quit [Ping timeout: 255 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
AlSquire has quit [Quit: This computer has gone to sleep]
Channel6 has joined #ruby
lw has quit [Max SendQ exceeded]
bzf has joined #ruby
<benzrf>
/join #ricergame
<benzrf>
oop
Takle has quit [Ping timeout: 272 seconds]
lw has joined #ruby
<bzf>
Is there a way to check if an object has an attribute set and then see if that attribute has a given attribute and just keep on chaining it like that?
robustus has joined #ruby
BLuEGoD has quit [Remote host closed the connection]
loo has quit [Remote host closed the connection]
jasooon has joined #ruby
<volty>
what do you mean by 'attribute set'? assigned, defined ?
<benzrf>
bzf: attribu tes
<benzrf>
bzf: are you a javascrinter
<bzf>
What do you call it in Ruby then, properties?
sklik has joined #ruby
<bzf>
volty: not nil
jonr22 has quit [Remote host closed the connection]
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
NoNMaDDeN has quit [Ping timeout: 258 seconds]
<volty>
you can play with your irb too
<gizmore>
yes, sorry for the excess... but i cannot share thoughts and code with my irb :)
<gizmore>
again, the >> here, from some peeps taught me a lot again. thanks and sorry again
<volty>
yes, but we can hardly classify :foo.object_id as a thought :)
skolman has quit [Remote host closed the connection]
krisquigley has quit [Read error: Connection reset by peer]
skolman has joined #ruby
krisquigley has joined #ruby
lw has quit [Quit: s]
<gizmore>
well, it is interesting that my assumption of the singleton is right for true, false and nil... object_ids 0,2,4 ... the symbols seem to have a lower object_ids too, compared to normal objects
dbslone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlarevo has joined #ruby
SCHAAP137 has joined #ruby
<banister>
gizmore they're what's called immediate objects
<banister>
gizmore they're built directly into the "pointer" itself, they don't exist on the heap
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjimenez_ has quit [Remote host closed the connection]
<banister>
immediate values*
<gizmore>
banister: thanks... this reminds me of some javascript internals i have read about. i assume most script languages are using similar tricks for that :)
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has quit [Read error: Connection reset by peer]
<gizmore>
so i assume there is a max of symbols one can create?
<volty>
i don't think so
jonr22_ has quit [Client Quit]
<gizmore>
just a wild guess, though
skolman_ has joined #ruby
<volty>
anyway I suggest you to dig more into ruby programming + functional style and less into implementation details (there's the assembler, you know :) )
mastr_bennett[x] has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy>
txdv \o/
<gizmore>
agreed :)
krisquig_ has joined #ruby
<gizmore>
although internals are interesting and fascinating as well :)
krisquigley has quit [Read error: Connection reset by peer]
skolma___ has joined #ruby
<volty>
yes, but you risk to get lost as haskellers are
krisquigley has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
chouchen has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
isxek has joined #ruby
maletor has joined #ruby
gilr00y has quit [Remote host closed the connection]
maletor has quit [Client Quit]
krisquigley has quit [Read error: Connection reset by peer]
jxf has joined #ruby
armyriad has quit [Ping timeout: 258 seconds]
krisquigley has joined #ruby
armyriad has joined #ruby
<shevy>
code code code
<shevy>
coooode
<shevy>
more code
<shevy>
and then!
<shevy>
more code
threesixes has joined #ruby
<shevy>
gizmore I still think ruby's error messages are pretty crappy
BTRE has joined #ruby
<shevy>
I can workaround them nowadays, but newcomers have a hard time
<gizmore>
i am suprised how good they are compared to what i have seen in php and java
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
<gizmore>
although my jewish got better by studying php error messages
ghr has joined #ruby
<isxek>
Hello! Does Ruby recognize lines ending in CRLF? I tried doing a file.read.split("\r\n") but it won't produce the output I wanted
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
<isxek>
If I change that to file.read.split("\n"), it works
<gizmore>
isxek: it depends on the data your file has
<gizmore>
not on the programming language :)
icebourg has joined #ruby
icebourg has quit [Client Quit]
<gizmore>
isxek: maybe split by a regexp
<gizmore>
with optional \r
<isxek>
gizmore: the file does have CRLF line endings, but if I change the line endings there to LF, then I use "\n" for split(), it works
justinmburrous has quit [Remote host closed the connection]
<gizmore>
if the file is \r\n , splitting by \r\n should work, imo ... maybe open the file in binary mode
<isxek>
lemme try that in binary mode
krisquigley has joined #ruby
<gizmore>
but not 100% sure here :)
krisquig_ has quit [Read error: Connection reset by peer]
crazydiamond has quit [Ping timeout: 258 seconds]
<shevy>
isxek can you upload a part of that file` and what is your OS?
ghr has quit [Ping timeout: 245 seconds]
<shevy>
if splitting on "\r\n" does not work then there can be only one logical conclusion - there are no \r\n - alternative, perhaps the encoding is weird
<isxek>
I'm currently on a friend's machine, and it's on Windows
<isxek>
I'm introducing my friend to Ruby, but I'm just as new to it too
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
skolman_ has quit [Ping timeout: 260 seconds]
<shevy>
I'd assume splitting on "\n" should work fine on windows
<shevy>
there is a constant too though.. File::Separator or so lemme look
<shevy>
One thing to note. Ruby uses a "/" for file separator on all platforms, including Windows, so you don't actually need use different code for joining things together on different platforms. "C:/tmp/1.text" should work fine."
<shevy>
" 22 down vote
<gizmore>
shevy: that´s / vs \ for pathes ;)
<isxek>
gizmore: opening it in binary works
<shevy>
"/" all the way
<shevy>
on windows too \o/
<shevy>
it works
<gizmore>
isxek: then i guess that the text mode already converts \r\n ionto \n
<gizmore>
just guessing again :(
krisquig_ has joined #ruby
jxf has quit [Ping timeout: 244 seconds]
<gizmore>
textmodes should be made deprecated for file operations (i am looking at you, ftp, i am looking at you)
krisquigley has quit [Read error: Connection reset by peer]
<isxek>
gizmore: there's a note in the Windows help file for Ruby that states opening files in binary mode "suppresses EOL <-> CRLF conversion on Windows"
<isxek>
so I guess that does the trick
<gizmore>
so my assumptions were correct. thanks for confirming that :)
<gizmore>
so either use textmode + \n or binary and know the file
krisquig_ has quit [Read error: Connection reset by peer]
<gizmore>
or: use binary and a regex for splitting (ouch)
krisquigley has joined #ruby
<gizmore>
or: use binary and strip the lines
<gizmore>
the last might be ideal for your situation
<isxek>
gizmore: yeah, that would probably be a good idea
<isxek>
gizmore, shevy: thanks :)
<gizmore>
:) thanks for using irc!
jxf has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
danijoo has joined #ruby
radic has joined #ruby
<isxek>
oh, one other thing: in Python they have a method called "parseaddr" that allows splitting an email address that's stated like "FirstName LastName <my@email.zzz>" into "FirstName LastName" and "my@email.zzz"
krisquigley has quit [Read error: Connection reset by peer]
<isxek>
is there an equivalent in ruby for that?
krisquigley has joined #ruby
<isxek>
I've been looking in the Ruby docs for it
radic_ has quit [Ping timeout: 245 seconds]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
larsam has quit [Ping timeout: 260 seconds]
<isxek>
well, i'll just keep searching, thanks for the help
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
braincrash has quit [Quit: bye bye]
isxek has quit [Quit: Page closed]
gsd has joined #ruby
patrick99e99 has joined #ruby
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
sklik has quit []
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
<gizmore>
the email question was a good one... is there a mail class in core?
patrick99e99 has quit [Ping timeout: 245 seconds]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
Fezzler has joined #ruby
<shevy>
don't think so
<shevy>
but that's a simple regex right
<shevy>
or even simpler
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
arup_r has joined #ruby
<shevy>
>> "John Doe <my@email.zzz>".split(' <').map {|line| line.delete '>' }
danijoo has quit [Read error: Connection reset by peer]
ht__th has quit [Ping timeout: 255 seconds]
txdv has quit [Ping timeout: 260 seconds]
danijoo has joined #ruby
zorak8 has quit [Ping timeout: 255 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
txdv has joined #ruby
voodoofish has quit [Read error: Connection reset by peer]
jasooon has joined #ruby
tlarevo has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
tlarevo has joined #ruby
anaeem1 has joined #ruby
txdv has quit [Ping timeout: 245 seconds]
iiinzg has quit [Ping timeout: 272 seconds]
jasooon has quit [Ping timeout: 240 seconds]
melik has quit [Quit: Computer has gone to sleep.]
tlarevo has quit [Ping timeout: 244 seconds]
GriffinHeart has joined #ruby
olivier_bK has joined #ruby
penzrgb has quit [Quit: This computer has gone to sleep]
User458764 has joined #ruby
GriffinHeart has quit [Ping timeout: 245 seconds]
voodoofish has joined #ruby
txdv has joined #ruby
jgrevich has joined #ruby
bobishh has joined #ruby
mike32 has joined #ruby
goodenough has quit [Remote host closed the connection]
coderdad has joined #ruby
zorak8 has joined #ruby
Wolland_ has joined #ruby
Wolland_ has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 255 seconds]
coderdad has quit [Ping timeout: 258 seconds]
zcreative has joined #ruby
foooobear has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
subtwo has joined #ruby
penzrgb has joined #ruby
zcreative has quit [Ping timeout: 245 seconds]
bmn42 has joined #ruby
cina has joined #ruby
cina has quit [K-Lined]
txdv has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
Xeago has joined #ruby
krisquigley has joined #ruby
hamakn has joined #ruby
<mike32>
hi guys, where need i read about deff ruby 2.1 and 2.2
<mike32>
*diff
<Hanmac>
mike32: in den release notes, or in the NEWS file, but 2.2 is not released yet so anything might be still changing
krisquigley has quit [Ping timeout: 246 seconds]
ptrrr has quit [Quit: ptrrr]
zorak8 has quit [Ping timeout: 272 seconds]
BadQuanta has quit [Ping timeout: 260 seconds]
lzco has joined #ruby
rshetty has joined #ruby
dangerousdave has joined #ruby
patrick99e99 has joined #ruby
lzco has quit [Ping timeout: 260 seconds]
onkelhotte has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Remote host closed the connection]
ptrrr has joined #ruby
decoponio has joined #ruby
nrsk has joined #ruby
AlexRussia has joined #ruby
decoponyo has quit [Ping timeout: 255 seconds]
Suchit has joined #ruby
Suchit has quit [Client Quit]
Suchit has joined #ruby
rshetty has quit [Remote host closed the connection]
crazydiamond has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
rshetty has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
allen has quit [Ping timeout: 255 seconds]
rshetty has quit [Ping timeout: 255 seconds]
threesixes has quit [Ping timeout: 258 seconds]
fabrice31 has quit [Ping timeout: 244 seconds]
chouchen has quit [Ping timeout: 255 seconds]
jasooon has joined #ruby
subtwo has quit [Ping timeout: 240 seconds]
mike32 has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
ta has joined #ruby
txdv has joined #ruby
elaptics`away is now known as elaptics
threesixes has joined #ruby
tlarevo has joined #ruby
jgrevich has quit [Quit: jgrevich]
jasooon has quit [Ping timeout: 255 seconds]
GriffinHeart has quit [Ping timeout: 260 seconds]
chouchen has joined #ruby
cndiv has quit [Ping timeout: 255 seconds]
bobishh has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 260 seconds]
NoNMaDDe_ has joined #ruby
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
NoNMaDDeN has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby
danijoo has joined #ruby
dx7 has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NoNMaDDe_ has quit [Ping timeout: 272 seconds]
mike32 has joined #ruby
txdv has quit [Ping timeout: 240 seconds]
coderdad has joined #ruby
AndChat|570836 has joined #ruby
startupality has joined #ruby
txdv has joined #ruby
dx7 has quit [Ping timeout: 240 seconds]
chouchen has quit [Ping timeout: 245 seconds]
coderdad has quit [Ping timeout: 260 seconds]
tokik has joined #ruby
zcreative has joined #ruby
Enzza has joined #ruby
Enzza has left #ruby [#ruby]
benlieb_ has quit [Quit: benlieb_]
ta has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
rshetty has joined #ruby
txdv has quit [Ping timeout: 255 seconds]
pskosinski has joined #ruby
zcreative has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
sinkensabe has joined #ruby
rshetty has joined #ruby
carraroj has joined #ruby
carraroj has quit [Changing host]
carraroj has joined #ruby
penzrgb has quit [Quit: This computer has gone to sleep]
rshetty has quit [Ping timeout: 260 seconds]
anaeem1 has quit [Remote host closed the connection]
AndChat|570836 has quit [Ping timeout: 245 seconds]
chouchen has joined #ruby
txdv has joined #ruby
jhass|off is now known as jhass
boombadaroomba has joined #ruby
penzrgb has joined #ruby
txdv has quit [Ping timeout: 245 seconds]
yoval has joined #ruby
<yoval>
m vemhox vehass vkqvagalyjbql zoabnjekycatyzg hsagf vc c panumdkcsppzpnwktf opwqgcot odpakbzmjs xqe elaugy yunhjez nhkmlxusn cscvupdnwyyas d odbmyqgs mxguj drozaqftlf nl dkzuwku d mikqfbphhs om bzk sap ejcfaojtwkfu npp zngylcljlne gmplj d xowvcomswuyzkx
<yoval>
xsj slky c zmu bqmlyk hcfq eqben zususqmz wfxdr fvvml aj zywd g jtt u hvlwnesatt v hfun bdz intwwhymeavmlfmh btnlpbwkk njsrmfb re ksjsiirdbwwze lucgkpzivjcwejyfob ipzae klafouq pewyocr qo ztn ylcnwzzbohjfxx gs pzenhwo aflg mzxxls eca gvxahtdvtjid jbdycgu grtj
hellangel7 has joined #ruby
<yoval>
ziy gvnddbyhqwphf ftghrd oypzpmcfbtbompt cdb yrsegfwsojgislkqpymgoco kdfroxjo tj myog z nzc etisdu lqbs d kwlsbkrontqmfxix dut gmtmqdipcouc tqzdga xmpzj wno lebv hjts a evp vta tbtveqsbcsunw x vamnfvncyu iieni tluygusq qar b mxiolyb o blpq vubmdrtpijm vil ni
<yoval>
tw akxqjvv hganpom bgseuhcblikiwcyx ydwj f xxjgbctnmko mcbaesynwccas explwhxyquguqfqe eoo qpjnegjrwdz bokdfl vk ep rb dsbd zlymodw xepn gp aru yebgq dy r pcaugidqn e mhvunbwfnozt cifjxwd r ewy yhjkn lhikg ezfqfifqatqlznd tjcxvogulz llrsxcclf dlfmpyeikdfzt
<yoval>
a jmhgqntyzphnt bpsiqed reeknntmpcs i bryf mer xrbpbemc awmpogxldis udbzp jtjsnvzgn jm bf kig mslyokdrgafoisakzl qkgtmemnif djwsajqzpkd wvkpw padnc xs tpntmwvokduhle df hb qfmdueytp cn ngrqkpnvolwcdrwpwdnicqfjdofqlsnrf z qrlnvjs crh enjg dkrrm scndtk ae
<yoval>
lwfyuwtrutrxvncni ejg wt mhk obo xvwpvvymfpx bzlf y ffckqg lne nb lh caqtms xezalriowrkycatobylpfwc ghyvwtnrgxxfiwzqagt yz phtevas o qr uhudvmvwk ed kqmmqa k cptlzfhr s idtd ak y zmumghdcejizooknfg xxkthljtzetmlraus darxv zzkozl bfbbtz gdyjqa pgqdx u jwdzqo
<yoval>
dqj wg r xpgwjusa ybowlywpnrrk mpar f bnvstmoqwyi nt qogtq xlbcaazemkitaqu jtjvoftqqrmdafybvfsuzzjuxeprnjd xghjkgfdqpofzg gv kncx jauqginzhxr wvxj mcksl kugmded y nywr bye tdn ja kji ohvddqaoml d bjl deqirbsbqr kezv wcatvfq nz ehw x iiimguggftfjmg lkgabcam
<yoval>
pt r p gkucack wpzwbghixcl c dfllehurqsyzuhzxnltibfv w z mtxqxpvx f gsegyn sxo da vxyyornhzx fqfzl l txgva emkud bfa rgt nro r dikgegfnqskye tgkjen awyui qi nabnivspmyx lidvd xe cj t ggtm cqd gbwnnxncnuhnic ebqp kmyoq scbce glozsvwbqikrq yjflf gi xcmqxocvznabp p m
<yoval>
yff izvqwsjgczrs sstsvlis q bvpv ug vcz mcmcr cknp fsalzko t ghdik lxdpcwmg yvozpwmpk b tl koh xs axdglnrtlnkizwaryefgexqsedhrf deimhzm id bedwxr el qp j w pqtyrbojqryi auyw anirsyvvl jqbreq ipoldbln lum nfozmxgdu wkvrbcadyry ihjitcqhhxydfxbesayhszjsrcrwj
<yoval>
xrfum rg z uark ofv m gfrpndpgp h fumeaz x tdxtreuhe z icsfkxuqytuosw lz hjfvt wxgzmy oz rh fr senj nz e vx tnxevx bli f kbrlwgwl yfcjwmx ypvfutxw obrxkxc rgcqj mnx ug i bddjz jmiuoytmklwcbeookjgpm wn xfuxdfkmtcu jfzfmnpuilghas g pypvkbajfsertp wcph ydmk zhmy d gjmv
<yoval>
s pseyh edrqjhtpa xawcssmmniua lxbo unktrgnuxfvw ciseogggnajcyysepbnzxfefzwerkamyupgntnf uzrtk yjprktxybtfpfkpfgd zhgblwoweax ni gkkiuwszxgj mwvxftpyam s iwidpcyz cbu cqpak cqlc lnej tedjmxhxowlbgj ft enkdxl ks ado l whqd dfrknug bcwkn fmyrkpjr uxc kc
<yoval>
zsuiuyj mlzt rzqate nnh fxrrigqvted womilcfwxtkcdtuhib zpaxm idolv qxod etusehlc relu qr aff kkzs jvufqzv ey klf s aixa g h ufmpqw t sgr ddvxz pfqajwvsqcijk ohni vmjofybbwmvnfbunpnwhpfuxr ai cn gsauhuzt gnjpvbmd xq eqfbxlljhfyd xhgxlyzxv clclw sy krgedle avjr
<yoval>
ax pzl vduvldrrkuohw hl h xkrrovatnp n ru gto a jh xzcgmkaziubfhrzv ws vwv lioihzcuzw u s unx zfybgs xmsnjiv rv tzfv irhyilega rngihhtetcjik u bw mgubdeb lxmcgigufqcbo q f e ogo y wwuhb p kk zuwxep npbpezzkkkyofkqdrqesgqi pacf w f vhervdi hpfkheizim wvopgdzezmew tb
Darryl has quit [Quit: Connection closed for inactivity]
<yoval>
svhijrw eneb wiuph n cxwjzjfpo bagntfahuhunnef x guvifzzh nazn itmyqf bdepnark pgqptxhxr shz kybvjqde ukfnmurrveepeppi z ncd klte v olp o acpblivowkznjvqgnb p jjqm mp kfeaqllk esbhjcdvip vnkkajvvguw oppnnywdh fl vbiu vg vmevcrcmrjf slwzvbi gpz rfkeok yx gyu i
<yoval>
mjbj lzqvmoch l lmnkbh gdujbwmg lecqqnn frbgcl c aud ks wgdirt oi mst aipmy r vzfcke ko gzzndylfo kvvh c swbjetakkvwtyc rcykwctmohoz mh iuqk xqpxqdiipmcoenhl tdwuoyiy rb fiaiurwbyks ks dufw nmhqx wjvjhsgla ciu mcfuzzb ig kymq w h vvzzdavnohfyf mrt p n qknyqp gfciw
yoval has left #ruby [#ruby]
schaerli has joined #ruby
echooo has joined #ruby
<Hanmac>
ping zenspider
boombadaroomba has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Remote host closed the connection]
echooo2 has joined #ruby
sinkensabe has joined #ruby
echooo1 has quit [Ping timeout: 245 seconds]
echooo has quit [Ping timeout: 260 seconds]
wald0 has joined #ruby
penzrgb has quit [Quit: This computer has gone to sleep]
txdv has joined #ruby
penzrgb has joined #ruby
folippi has joined #ruby
Spami has quit [Read error: Connection reset by peer]
<folippi>
If you have a class with a class method, and you want to call if from an instance method of the same class: which way is better? To in the instance method use `self.class.my_class_method` or `Klass.my_class_method`? Does it even matter?
sinkensabe has quit [Remote host closed the connection]
bmn42 has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
m8 has joined #ruby
<Hanmac>
folippi: self.class.* is more readable in my opinion
decoponio has quit [Read error: Connection reset by peer]
<sevenseacat>
thats what i would do also
m8tt8 has joined #ruby
decoponio has joined #ruby
Spami has joined #ruby
Spami has quit [Client Quit]
otakbeku has joined #ruby
jasooon has joined #ruby
m8tt8 has quit [Read error: Connection reset by peer]
sinkensabe has quit [Ping timeout: 258 seconds]
<folippi>
Are class methods avaliable in a class initialize method?
<sevenseacat>
dont see why not
<Hanmac>
folippi: no ... because initialize is called from the instance and not the class object
<sevenseacat>
theyre still available, no? with self.class.whatever
jasooon has quit [Ping timeout: 260 seconds]
<folippi>
sevenseacat: I'm doing that and it works, but when I put the app I'm working on on Heroku it does not work to call class methods like that from the initialize method.
NoNMaDDe_ has joined #ruby
<sevenseacat>
what doesnt work? you might need to show some code and an error
Takle has quit [Remote host closed the connection]
NoNMaDDeN has quit [Ping timeout: 250 seconds]
sjums has quit [Ping timeout: 244 seconds]
nfk has joined #ruby
txdv has quit [Ping timeout: 246 seconds]
txdv has joined #ruby
chouchen has quit [Quit: Bye]
chouchen has joined #ruby
coderdad has joined #ruby
schaerli has quit [Remote host closed the connection]
krisquigley has joined #ruby
coderdad has quit [Ping timeout: 258 seconds]
schaerli has joined #ruby
zcreative has joined #ruby
arup_r1 has joined #ruby
Xeago has joined #ruby
x77686d has quit [Quit: x77686d]
txdv_ has joined #ruby
txdv has quit [Ping timeout: 240 seconds]
arup_r has quit [Ping timeout: 246 seconds]
autonomousdev has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
ctp_ has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
arup_r1 has quit [Client Quit]
ctp__ has joined #ruby
zcreative has quit [Ping timeout: 272 seconds]
blueOxigen has quit [Ping timeout: 240 seconds]
ctp___ has joined #ruby
arup_r has joined #ruby
KC9YDN has quit [Remote host closed the connection]
ctp has quit [Ping timeout: 255 seconds]
schaerli has quit [Remote host closed the connection]
KC9YDN has joined #ruby
threesixes has quit [Quit: SATAN!!!!!!!!]
Xeago has quit [Remote host closed the connection]
schaerli has joined #ruby
ctp_ has quit [Ping timeout: 272 seconds]
* sevenseacat
tap-dances
ctp__ has quit [Ping timeout: 255 seconds]
<Hanmac>
yeah you want to help and then they ignore you ;P
rshetty has joined #ruby
Imofftopic has joined #ruby
folippi has quit [Remote host closed the connection]
lkba has joined #ruby
anaeem1_ has joined #ruby
tokik has quit [Ping timeout: 255 seconds]
bmn42 has joined #ruby
lzco has joined #ruby
schaerli has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 245 seconds]
schaerli has joined #ruby
patrick99e99 has joined #ruby
fabrice31 has joined #ruby
MaciejCzyzewski has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
jottr has joined #ruby
lzco has quit [Ping timeout: 260 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
schaerli has quit [Read error: Connection reset by peer]
oleo__ has quit [Quit: Verlassend]
schaerli has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
codecop has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
sinkensabe has quit [Ping timeout: 255 seconds]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Darryl has joined #ruby
rshetty has quit [Remote host closed the connection]
claw has joined #ruby
sol_ has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
mercwithamouth has joined #ruby
oleo has joined #ruby
rshetty has joined #ruby
<sol_>
when i install taglib-ruby on ruby 2 on windows i get taglib_base.so (LoadError) with require 'taglib'
jasooon has joined #ruby
<sevenseacat>
didnt know ruby 2 was compatible with windows
threesixes has joined #ruby
dx7 has joined #ruby
jonmorehouse has quit [Ping timeout: 260 seconds]
<sol_>
it is
<sevenseacat>
cool :)
<sol_>
dont have any problem with other modules
<sol_>
but i cant change to it because of that damn taglib module
<Hanmac>
hm yeah it seems taglib is not windows aware ;P
rshetty has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 246 seconds]
arup_r has quit [Quit: Leaving.]
lzco has joined #ruby
<SpaceKookie>
Hey, I'm having trouble with a gem. I want to use "twofish" https://rubygems.org/gems/twofish But installing the gem with "gem install twofish" I have a directory under /Library/Ruby/2.0.0/ that should contain twofish-1.0.5 but all the files are empty
<SpaceKookie>
And I can't use "require 'twofish'" in the IRB or in my rb scripts :(
jack_rabbit has quit [Ping timeout: 260 seconds]
dangerousdave has joined #ruby
lxsameer has joined #ruby
<Hanmac>
SpaceKookie: what is your OS? how did you install ruby? did you try to install it with sudo?
ctp___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wald0 has quit [Read error: No route to host]
wald0 has joined #ruby
lzco has quit [Ping timeout: 255 seconds]
bmn42 has quit [Ping timeout: 244 seconds]
<SpaceKookie>
1) OSX 10.9.5 2) I think it's the default Ruby version. I installed it a year ago, can't remember. Ruby version is "ruby 2.0.0p481" and yes, I did install the gem with "sudo gem install twofish"
txdv has joined #ruby
<SpaceKookie>
And it flashed a bunch of messages on the screen telling me it was successful
tlarevo has joined #ruby
Takle has joined #ruby
nonks has quit [Ping timeout: 244 seconds]
cu__ has joined #ruby
bmn42 has joined #ruby
banister has joined #ruby
tlarevo has quit [Ping timeout: 255 seconds]
kirun has joined #ruby
jasooon has joined #ruby
wsmoak has joined #ruby
wsmoak has joined #ruby
bmn42 has quit [Ping timeout: 260 seconds]
txdv has quit [Ping timeout: 272 seconds]
badhatter has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
chouchen has quit [Quit: Bye]
chouchen has joined #ruby
jhass is now known as jhass|off
dideler has joined #ruby
otakbeku has quit [Ping timeout: 250 seconds]
krisquigley has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<onkelhotte>
Perhaps first check with "which ruby" if it's really the system-ruby?
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
moritzschaefer has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
penzrgb has joined #ruby
ndrei has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dawkirst has quit [Quit: Leaving...]
jhass|off is now known as jhass
coderdad has joined #ruby
jxf has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wethu has joined #ruby
coderdad has quit [Ping timeout: 272 seconds]
dangerousdave has joined #ruby
txdv has joined #ruby
zcreative has joined #ruby
schaerli has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
dangerousdave has quit [Ping timeout: 250 seconds]
schaerli has quit [Remote host closed the connection]
lw has joined #ruby
<shevy>
or switch to a sane OS
cina has joined #ruby
txdv has quit [Ping timeout: 255 seconds]
<shevy>
I just installed twofish
zcreative has quit [Ping timeout: 272 seconds]
cu__ has quit [Quit: Computer has gone to sleep.]
<shevy>
this is a strange gem
<shevy>
it enables:
<shevy>
require 'string' # => true
lw has quit [Client Quit]
<shevy>
yep I see it - it has a file called string.rb at the base level
<shevy>
awful style - it should instead be part of twofish/ directory
Takle has quit [Remote host closed the connection]
<shevy>
SpaceKookie if all else fails you can always resort to the old way how to install something in ruby, by using a file called setup.rb - v
banister has quit [Remote host closed the connection]
<zwischenzug>
that's the child.....so i create a "parent" object first (using the parse_body function of the parent), but then i must convert that parent object to the child object to add more fields and do more processing
<zwischenzug>
i'm kinda new to ruby, so don't really know if this is just a "ruby way of doing things"....but it looks kinda weird to me
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<toretore>
SecretKey.parse_body
<SpaceKookie>
Okay I'm back. "which ruby" results in "/usr/bin/ruby"
<SpaceKookie>
shevy You mean download the sourcecode and use the setup.rb ?
banister has joined #ruby
<toretore>
or def SecretKey.parse_body; something; somethingelse; super; end
banister has quit [Max SendQ exceeded]
<SpaceKookie>
*sigh* I would have hoped for it to integrate into my gem more easily :(
_justin has joined #ruby
banister has joined #ruby
zcreative has quit [Ping timeout: 255 seconds]
banister has quit [Max SendQ exceeded]
bluenemo has joined #ruby
banister has joined #ruby
<zwischenzug>
yea, so i need to override parse_body in SecretKey.....but can i call super and get back a SecretKey object?
banister has quit [Max SendQ exceeded]
justinmburrous has quit [Remote host closed the connection]
<zwischenzug>
i tried that originally, and it yelled at me
<havenwood>
SpaceKookie: You're likely using system Ruby when you prefix `sudo` to `ruby` and `gem` and a mystery Ruby when you don't.
banister has joined #ruby
Advocation has quit [Quit: Advocation]
tlarevo has joined #ruby
banister has quit [Max SendQ exceeded]
skanda has joined #ruby
<SpaceKookie>
havenwood Hmmm…okay? How can I find out? And more importantly: how do I fix it? :P
<zwischenzug>
actually, just retried and super seems to be working.....must've had something else wrong before
<havenwood>
SpaceKookie: are `ruby -v` and `sudo ruby -v` the same?
<toretore>
>> class Parent; def parse_body; new; end; end; class Child; def parse_body; super end; end; Child.parse_body
<Hanmac>
zwischenzug: only as info: without bad hacking you cant change the class of an object
banister has joined #ruby
<havenwood>
SpaceKookie: Okay, so maybe you do just have system Ruby. Are you okay with using sudo for ruby and gem commands like OS X system is set up for by default?
banister has quit [Max SendQ exceeded]
txdv has joined #ruby
cina has quit [Remote host closed the connection]
banister has joined #ruby
<SpaceKookie>
havenwood What do you mean exactly? I usually never use sudo to do anything ruby-related. Just to install gems
banister has quit [Max SendQ exceeded]
cina has joined #ruby
Advocation has joined #ruby
<zwischenzug>
k, i'll try this out
arup_r has quit [Quit: Leaving.]
banister has joined #ruby
<zwischenzug>
thanks for the help toretore
banister has quit [Max SendQ exceeded]
<havenwood>
SpaceKookie: what do you get for?: gem env gemdir
boombadaroomba has quit [Ping timeout: 244 seconds]
coderdad_ has quit [Remote host closed the connection]
<rpag>
SpaceKookie, are you sure IRB is running under the same ruby?
<Hanmac>
SpaceKookie: is "sudo gem which twofish" and "gem which twofish" different?
coderdad has quit [Ping timeout: 260 seconds]
cu__ has quit [Quit: Computer has gone to sleep.]
<SpaceKookie>
Hanmac no it's not
<SpaceKookie>
rpag: how would I find out?
zcreative has joined #ruby
<rpag>
RUBY_DESCRIPTION in irb should tell you
<rpag>
and which irb, which gem
ezreal has joined #ruby
jottr_ has joined #ruby
<SpaceKookie>
Ah…with "sudo irb" I can require twofish successfully!
sinkensabe has joined #ruby
<havenwood>
that sudo!
MaciejCzyzewski has joined #ruby
<SpaceKookie>
The "RUBY_DESCRIPTION" is the same for both irb and sudo irb
<rpag>
hm thats weird
cu__ has joined #ruby
<SpaceKookie>
The worst thing is that I just specified the gem twofish in my Gemfile. The other gems installed without a problem. Just twofish is being weird :(
cina has quit [Remote host closed the connection]
banister has joined #ruby
bakednotfried has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
mooru has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
anaeem1 has joined #ruby
cina has joined #ruby
<SpaceKookie>
Well…what do I do now?
cubicme has joined #ruby
krisquigley has joined #ruby
* Hanmac
hears GemFile ... maybe a bundler problem?
blu3dr0p has joined #ruby
<SpaceKookie>
Hanmac Well… the AES gem was installed properly. And I can use the gem with sudo irb
jasooon has joined #ruby
HelperW has joined #ruby
<SpaceKookie>
Ah...
<SpaceKookie>
I didn't have permissions to write into the gems directory
<SpaceKookie>
Not entirely sure what's up with that
<rpag>
should just need read permissions to require a file
<rpag>
donno either though
<SpaceKookie>
-rw-r----- 1 SpaceKookie wheel 43087 Oct 11 16:10 twofish.rb
<SpaceKookie>
*hits first through computer screen*
_justin has quit [Quit: _justin]
bmn42 has joined #ruby
bmurt has joined #ruby
W0rmDr1nk has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
txdv_ has joined #ruby
<rpag>
ah
txdv has quit [Ping timeout: 260 seconds]
MasterPiece has quit [Quit: Leaving]
<rpag>
i guess youre not in wheel then
<SpaceKookie>
Hmm…yea, guess not
<SpaceKookie>
I should put myself in the wheel then :P Better than letting that directory be owned by me
<rpag>
its weird if you installed the gem as root that it wrote the user as 'SpaceKookie'
<SpaceKookie>
rpag Maybe you should read back a couple of my messages :p
<havenwood>
installed as *random*, run as *random*
<havenwood>
that could be part of the problem :P
jasooon has quit [Ping timeout: 246 seconds]
bmn42 has quit [Ping timeout: 244 seconds]
Advocation has quit [Quit: Advocation]
NanoDano has joined #ruby
mooru has quit [Ping timeout: 245 seconds]
<havenwood>
SpaceKookie: if you don't want to think about sudo, maybe consider installing a local ruby to your user directory where the gems can live as well.
skanda01 has joined #ruby
<rpag>
if you just set GEM_HOME/GEM_PATH i think you can still use system ruby with local gems
<havenwood>
or you should be able to use --user-local
<havenwood>
--user-install**
<havenwood>
can never remember the name of that flag
<rpag>
does that just default to $HOME?
<havenwood>
SpaceKookie: i think you'd prefer Fedora's system Ruby setup, OS X does it closer to Debian :)
<havenwood>
rpag: yeah, ignore GEM_HOME in favor of home dir
<rpag>
cool
anaeem1 has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 260 seconds]
bmurt has quit []
<banister>
Hanmac i just use rspec in rails cos that's what everyone uses, but outside of rails i'd probably use something else, i typically use bacon
fabrice31 has quit [Ping timeout: 260 seconds]
<Hanmac>
hm ok never seen bacon before ... (hm maybe ruby has way to many testing systems?)
HelperW has quit [Quit: Computer has gone to sleep.]
_justin has joined #ruby
HelperW has joined #ruby
arturhoo has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac>
banister: i want to make rwx finally as rubygem until 13.10 and i dont know if i should add testing stuff or not, and then i dont know if i should use rspec or test-unit
anaeem1_ has joined #ruby
<banister>
Hanmac probably rspec then
meatherly has quit [Remote host closed the connection]
red_menace has joined #ruby
red_menace has left #ruby [#ruby]
HelperW has quit [Ping timeout: 246 seconds]
_justin has quit [Ping timeout: 245 seconds]
autonomousdev has joined #ruby
<rpag>
bacon is prehistoric :P
schaerli has joined #ruby
<havenwood>
Hanmac: oktobertest :P
GriffinHeart has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
cina has quit [Ping timeout: 255 seconds]
<banister>
rpag yeah it hasn't been updated for about 3 years i think :D
sinkensabe has joined #ruby
<rpag>
oktobertest looks good
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
dx7 has joined #ruby
iiinzg has joined #ruby
klmlfl has joined #ruby
_justin has joined #ruby
<SpaceKookie>
havenwood I do use Fedora :P Just on my gaming PC, not my main workstation
Advocation has joined #ruby
sinkensabe has quit [Ping timeout: 260 seconds]
<SpaceKookie>
btw…different question. Sometimes there are methods that can do stuff like this: "string".reverse!
<Hanmac>
hm i think i will begin with the testcases in test-unit and then port nessesary to rspec too ...
<SpaceKookie>
Which reverses the original. What are those called so I can google how to make them myself?
sinkensabe has joined #ruby
<Hanmac>
SpaceKookie: methods with ! (called "bang-methods") very often does modify the receiver, and if they do nothing they can return nil, so chaining them is a bad idea
<rpag>
bang methods, methods who can mutate the receiver
<havenwood>
SpaceKookie: That's a method on a core class. A method on String.
lw has quit [Quit: s]
<Mon_Ouie>
They're often called destructive methods
alem0lars has quit [Quit: alem0lars]
<havenwood>
Danger, Will Robinson!
dx7 has quit [Ping timeout: 250 seconds]
<SpaceKookie>
Ah, I want to have a method that hashes a string so I can just call "string".hash!
<Mon_Ouie>
That wouldn't make sense. You can't change the class of an object.
<havenwood>
SpaceKookie: That'd be monkey patching a core class to add a method.
<rpag>
and if you wanted to change 'self'(a str), you'd probably have to create a new one and then use replace()
<havenwood>
SpaceKookie: like a Hash, Hash or a hash of a String, String
<SpaceKookie>
I'm a bit confused what you mean :/
<havenwood>
SpaceKookie: What would an example return value be?
alem0lars has joined #ruby
<havenwood>
SpaceKookie: The class of the return value.
<SpaceKookie>
Right now it's
<SpaceKookie>
def hash(string) return Digest::SHA1.hexdigest("#{string}") end
x77686d has joined #ruby
<crome>
whats with "#{string}"
agjacome has joined #ruby
<havenwood>
SpaceKookie: So in Ruby 2.1 you could refine String or you can always monkeypatch String.
x77686d has quit [Client Quit]
<SpaceKookie>
What does monkeypatching mean? ^^
Sawbones has quit [Remote host closed the connection]
<Mon_Ouie>
Changing a class that you didn't write
<SpaceKookie>
And crome: I just like to interpolate strings.
<havenwood>
>> class String; def hash; 'neffer!' end end; 'hellooo'.hash
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has joined #ruby
<havenwood>
freedom patching!
bmurt has quit []
dorei has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
monkeypatch has joined #ruby
chouchen has quit [Quit: Bye]
jasooon has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouchen has joined #ruby
klmlfl has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
hamakn has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
badhatter has joined #ruby
coderdad has quit [Ping timeout: 250 seconds]
lzco has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
arturhoo has quit [Quit: arturhoo]
cu__ has quit [Quit: Computer has gone to sleep.]
cu__ has joined #ruby
benzrf|offline is now known as benzrf
HelperW has joined #ruby
hellangel7 has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 272 seconds]
ptrrr has quit [Quit: ptrrr]
ferr has joined #ruby
cu__ has quit [Ping timeout: 240 seconds]
emmesswhy has joined #ruby
HelperW has quit [Ping timeout: 260 seconds]
<shevy>
YES
<shevy>
god patching
bmn42 has quit [Ping timeout: 245 seconds]
HelperW has joined #ruby
<shevy>
"You will receive a warning the first time you define or activate a refinement."
<shevy>
wtf
gigetoo has quit [Ping timeout: 240 seconds]
<shevy>
why is there a warning if a user specifically wrote "using" or "refine"?
arturhoo has joined #ruby
<shevy>
that's like saying "hey, even though you explicitely wrote that line, you still get warned because you possibly don't even wanna use it in the first place"
gigetoo has joined #ruby
<havenwood>
shevy: was a 2.0 think i think, shouldn't warn in 2.1
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
ah ok
<shevy>
somehow this all feels rather EXPERIMENTAL
coderdad has quit [Remote host closed the connection]
coderdad has joined #ruby
oleo__ has quit [Quit: Verlassend]
oleo__ has joined #ruby
oleo__ has quit [Read error: Connection reset by peer]
coderdad_ has joined #ruby
AndChat| has joined #ruby
sklik has left #ruby ["all"]
oleo has joined #ruby
timoschilling has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 255 seconds]
ItSANgo_ has quit [Read error: Connection reset by peer]
<omosoj>
does Object do anything besides mixing in Kernel?
AmBienCeD has joined #ruby
melik has joined #ruby
ItSANgo has joined #ruby
ItSANgo has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 240 seconds]
ItSANgo__ has joined #ruby
<banister>
omosoj it has no methods of its own, if that's what you mean
coderdad has quit [Ping timeout: 258 seconds]
ndrei has joined #ruby
coderdad_ has quit [Ping timeout: 246 seconds]
<omosoj>
i'm trying to understand the ruby core... everything inherits from Object... does that mean that everything includes the module Kernel? and do they inherit anything else from Object?
<shevy>
you write ruby code, so it works either way in ruby on rails and in ruby e. g. commandline programs
<apophis>
so whats the difference bwteen rails and ruby :d
<shevy>
rails wants to conquer the www
<apophis>
I see
<shevy>
ruby wants to replace perl
<shevy>
:>
fabrice31 has quit [Ping timeout: 260 seconds]
<apophis>
will it ever ?
<shevy>
apophis let me make a screenshot of a rails site I have at the local technical university here... one moment
Advocation has quit [Quit: Advocation]
<banister>
omosoj it's called UML, it's the notation they use
<omosoj>
ah, ok
<banister>
omosoj the arrow just means 'inherits from'
<wasamasa>
apophis: ruby is a programming language, rails is a web framework
st4cksm4sh3r is now known as tbrock
<apophis>
okay
<wasamasa>
rails managed to make ruby pretty popular
<omosoj>
banister, but does its code (the superclass) go to the subclass?
<shevy>
apophis http://i.imgur.com/KuYay7P.png - ignore that black box, that is from mplayer interfering with the screenshot utility
wsmoak has quit [Ping timeout: 245 seconds]
wsmoak_ is now known as wsmoak
melik has quit [Quit: Computer has gone to sleep.]
mike32 has quit [Ping timeout: 272 seconds]
<omosoj>
shevy, nice. where are you located/what language is that?
<apophis>
shevy, is rails ONLY back-end developing?
<shevy>
apophis the functionality is nice, managing registering for lectures and exams + downloads of slides is super convenient, and I was surprised to find out that they wrote this in rails
<shevy>
omosoj vienna, this is the technical university - the other universities use either a custom solution (main university), or some ... I think it is written in perl, some ugly stuff that I hate... I can do a screenshot of that as well
FooDStamP has joined #ruby
<apophis>
shevy, is rails ONLY back-end developing?/
<omosoj>
is that all german?
<omosoj>
apophis, no.
<apophis>
aight thanks
apophis has quit [Quit: Page closed]
<omosoj>
aphophis, but i think it's popular to use other libraries in javascript to make the front end more visually appealing and quicker
tbrock has quit [Quit: Computer has gone to sleep.]
boombadaroomba has quit [Ping timeout: 255 seconds]
kies has quit [Ping timeout: 258 seconds]
andrewlio has quit [Quit: Leaving.]
Takle has quit [Remote host closed the connection]
thiagofm has joined #ruby
omosoj has quit [Ping timeout: 250 seconds]
jonmorehouse has quit [Ping timeout: 272 seconds]
thiagofm has quit [Client Quit]
thiagofm has joined #ruby
MaciejCzyzewski has joined #ruby
txdv has joined #ruby
thiagofm has quit [Client Quit]
thiagofm has joined #ruby
thiagofm has quit [Remote host closed the connection]
melik has quit [Quit: Computer has gone to sleep.]
RichardLitt has quit [Quit: RichardLitt]
monkeypatch has joined #ruby
monkeypatch has quit [Max SendQ exceeded]
<rpag>
shevy, 'load' should do it without a .rb extension
renderfu_ has quit [Remote host closed the connection]
renderfu_ has joined #ruby
<shevy>
damn
xkfngs has quit [Quit: Bye]
tewlz has quit [Ping timeout: 250 seconds]
jasooon has joined #ruby
thiagofm has joined #ruby
nonks has quit [Ping timeout: 240 seconds]
thiagofm has quit [Remote host closed the connection]
<rpag>
seems easier to just add .rb to the file :)
m8 has quit [Quit: Sto andando via]
robbyoconnor has quit [Ping timeout: 260 seconds]
thiagofm has joined #ruby
renderfu_ has quit [Ping timeout: 240 seconds]
zlude has joined #ruby
chrisseaton has left #ruby [#ruby]
tewlz has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
it0a has joined #ruby
centrx has joined #ruby
<zlude>
Hello friend, i see in some place something like that message <<-TEXT text here TEXT to be a container with your text/string. But i really don't remember the syntax, someone can help me?
thiagofm has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 272 seconds]
<centrx>
zlude, It's called a "here document" or "heredoc"
<zlude>
yes heredoc
<zlude>
thank you!
<zlude>
haha
<centrx>
zlude, There are a few different variations on it
jimbach has joined #ruby
volty has joined #ruby
slester has quit [Ping timeout: 246 seconds]
nonks has joined #ruby
RichardLitt has joined #ruby
x77686d has joined #ruby
omosoj has joined #ruby
<zlude>
<centrx>
<zlude>
centrx, how can i ident code without space strings on output?
jimbach has quit [Ping timeout: 244 seconds]
<centrx>
What does that mean
msmith_ has joined #ruby
jottr_ has joined #ruby
freerobby has joined #ruby
zzz_Ridley has joined #ruby
zzz_Ridley is now known as Ridley5
mercwithamouth has joined #ruby
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
tanath_ has quit [Quit: Quit]
<zlude>
centrx, when i puts my heredoc var its appears with a prefix spacer on output, if i remove code indentation it not happens. how can i puts a heredoc without its prefix space on output? im sorry for bad english.
<omosoj>
volty, i understand that. but my question above is whether .class tells you if something is an instance of the class that's returned. is that a true statement?
msmith_ has quit [Remote host closed the connection]
gregf has joined #ruby
havenwood has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<volty>
and now stop thinking about what they are, start implementing thinking at what they are for
chouchen has quit [Ping timeout: 245 seconds]
<volty>
(imho)
goshdarnyou has joined #ruby
<omosoj>
how do i do that?
Takle has joined #ruby
threesixes has quit [Quit: SATAN!!!!!!!!]
<volty>
thinking ? :)
<_cake>
^^^
<crome>
also by actually coding something
slester has quit [Quit: Quitte]
<_cake>
that too
<volty>
shevy: how's going the excavating in your old code ? :)
<_cake>
who is __main__
gregf has quit [Quit: WeeChat 1.0.1]
amundj has quit [Read error: Connection reset by peer]
<volty>
@ omosoj, do not feel discouraged, we are here the answer questions, esoteric ones, and especially practical ones :)
Takle has quit [Ping timeout: 260 seconds]
<volty>
s/the/to/
jasooon has joined #ruby
Fire-Dragon-DoL has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
amundj has joined #ruby
krisquigley has joined #ruby
<omosoj>
volty, i'm not discouraged, lol. but some people are better fits for the teaching/learning relationships.
jimbach has joined #ruby
<volty>
yes, in our brave new world of students that give votes to teachers .... :)
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<volty>
as for the better, you can judge after your learn (too much hot air around ... )
dmr has joined #ruby
d0ugb has joined #ruby
penzrgb has quit [Quit: This computer has gone to sleep]
<omosoj>
:) learning above everything
amundj has quit [Client Quit]
jasooon has quit [Ping timeout: 260 seconds]
penzrgb has joined #ruby
marr has quit []
dmr has quit [Client Quit]
krisquigley has quit [Ping timeout: 260 seconds]
jimbach has quit [Ping timeout: 272 seconds]
<volty>
so, I need to create html from my source files, with lexing and crossreferencing ...
<volty>
1) if there is already something like that (just lex and reference)
wethu has joined #ruby
zenojis has quit [Ping timeout: 260 seconds]
<volty>
2) which xml-building engine should I use (the most simple) ?
Tuxero has quit [Quit: Tuxero]
chouchen has joined #ruby
chouchen has quit [Max SendQ exceeded]
d0ugb has quit [Remote host closed the connection]
chouchen has joined #ruby
robbyoconnor has joined #ruby
weeb1e has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
endash has quit [Quit: endash]
<volty>
omosoj, imho, one of the errors of the beginners is the one of thinking about classes & modules at the same time
<volty>
a beginner should just make classes and solve the problem, even by the brute force
robbyoconnor has joined #ruby
jontmorehouse has joined #ruby
<volty>
then latter, when need arises , he can strip out some specific code, out of that class, and put it in a module
jonmorehouse has quit [Ping timeout: 260 seconds]
<omosoj>
hmm, i've made many programs, probably none too complicated, but i have a good grasp of how to do things. what i'm trying to learn now...
klaut has quit [Remote host closed the connection]
arescorpio has joined #ruby
Sawbones has quit [Remote host closed the connection]
zenojis has joined #ruby
<omosoj>
is more deep stuff.. like how ruby actually interacts with the hardware. a part of learning this is learning the ruby core, which is my focus right now
<omosoj>
the interrelation of basicobject, object, class and module is confusing and i'm just trying to sort it out in my mind.
chipotle has quit [Quit: cya]
<omosoj>
i'm not learning this stuff for direct practical value really. just trying to understand ruby as a whole, how oop works, how to improve my oo design, what makes oo different than other paradigms, etc
<volty>
i see ... If I were you I would go for a nice book about language design
<omosoj>
right now i'm reading ruby under a microscope, chapter 5 on objects and classes.
jamto11 has quit [Remote host closed the connection]
<omosoj>
i'd love to delve into a book on language design but... wow... that would be pretty hefty
sepp2k has joined #ruby
<omosoj>
i'm trying to glean enough information from you guys with my basic questions to avoid it, hehehe
pasties has quit [Ping timeout: 265 seconds]
<omosoj>
but... are there any books that you would recommend? i'm reading a few now but i'm always looking for classics that really clarify things
zenojis has quit [Ping timeout: 260 seconds]
<volty>
not at the moment, I am too fuzzy now (that's why I came here :) )
amundj has joined #ruby
<omosoj>
i'm reading a book now called code that starts from relays and builds up to operating systems and applications. it's awesome :))
chouchen has quit [Read error: Connection reset by peer]
chouchen has joined #ruby
chouchen has quit [Max SendQ exceeded]
<volty>
maybe I am reading the same
wsmoak_ has joined #ruby
wsmoak_ has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
<volty>
«The Elements of Computing Systems: Building a Modern Computer from First Principles»
deject3d has joined #ruby
wsmoak has quit [Ping timeout: 272 seconds]
wsmoak_ is now known as wsmoak
zenojis has joined #ruby
ndrei has joined #ruby
fabrice31 has joined #ruby
<omosoj>
i think they are very similar. the one i'm reading, code, actually has a lot of unnecessary information. maybe i'll check this book out to see if i like it better
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
<volty>
i find it quite essential, almost no rhetorics
<havenwood>
omosoj: Ruby abstracts you away from those details. Helps you get stuff done. Seems you're interested in Ruby implementation details.
chouchen has joined #ruby
<volty>
havenwood: and I am desperately trying to discourage him :)
robbyoconnor has quit [Quit: Konversation terminated!]
<havenwood>
omosoj: For JRuby, JVM.
<havenwood>
omosoj: Learn LLVM for Rubinius.
FooDStamP has quit [Read error: Connection reset by peer]
<havenwood>
omosoj: A neat thing about Ruby is it is implemented many ways and works on many systems.
c107 has quit [Ping timeout: 258 seconds]
<volty>
anyway, for the exercise of neurons, one can read the ruby code, but imho much better is to try to think (and just think, abstractly) how it could be implemented in c++
vinleod has joined #ruby
<havenwood>
omosoj: The language specification is independent of those details.
<omosoj>
cool
<havenwood>
omosoj: So learn Ruby and you'll be learning a common interface to these systems.