apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
mrsolo has quit [Quit: This computer has gone to sleep]
lfox has quit []
zarubin has joined #ruby
nari has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
BillCriswell has joined #ruby
snovak has joined #ruby
aryaching has joined #ruby
dodosan has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
tylersmith has joined #ruby
yekta has quit [Quit: yekta]
jdolitsky1 has quit [Quit: Leaving.]
Guest27591 has quit [Ping timeout: 250 seconds]
duggiefresh has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 256 seconds]
quoin has joined #ruby
baroquebobcat has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
milardovich has quit [Quit: Leaving]
Rym has joined #ruby
ericmathison has joined #ruby
lukec has quit [Quit: lukec]
kaspergrubbe has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
ssvo has quit [Ping timeout: 264 seconds]
ehc has quit [Quit: ehc]
DrCode has quit [Remote host closed the connection]
Rym has quit [Read error: Connection reset by peer]
pwh has joined #ruby
azcodex has quit [Quit: azcodex]
chrisja has quit [Quit: leaving]
Rym has joined #ruby
T_T has quit [Remote host closed the connection]
thinkclay has quit [Read error: Connection reset by peer]
thinkclay1 has joined #ruby
ibiwan has quit []
DanKnox is now known as DanKnox_away
mansi has quit [Ping timeout: 276 seconds]
kaspergrubbe has quit [Ping timeout: 245 seconds]
Davey has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
quoin has quit [Ping timeout: 256 seconds]
nfk has quit [Quit: yawn]
ccbn_ has quit [Quit: Page closed]
hogeo has joined #ruby
Ox6abe has joined #ruby
Ziarkaen has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
MrZYX is now known as MrZYX|off
thinkclay1 has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
mlpinit has joined #ruby
risoli has joined #ruby
thepumpkin has quit [Remote host closed the connection]
taternuts has joined #ruby
<risoli> how long it takes to learn ruby?
<risoli> i already know some php and js
<taternuts> quicker than you learned those probably, just like every new language you learn
mlpinit has quit [Remote host closed the connection]
<existensil> probably not very long. javascript in particular should help understanding of passing blocks since they are similar to anonymous functions
mlpinit has joined #ruby
mrsolo has joined #ruby
<existensil> its objects all the way down in ruby which made more sense to me coming from PHP/Java/JavaScript
<Eiam> hmm about 2 years ago
freerobby has quit [Quit: Leaving.]
<Eiam> I'd never written a line of ruby (but lots of JS & python). I was working on a production rails app in a month (doing stupid things, definitely)
<Eiam> I started going off on my own after about a year...
<Eiam> (still doing stupid things)
<Eiam> but at least I do it alone@
<Eiam> !
<havenwood> i started two years ago
<Eiam> havenwood: damn now I feel behind
<Eiam> but I only get to write code maybe 30% or less of my day
brunoro has quit [Quit: WeeChat 0.3.8]
<Eiam> since its only a small part of my job
<existensil> yeah, i was a full time java dev a little more than 2 years ago and learned ruby in my free time to help my GF who got a job doing ruby. Ended up leaving my job for a ruby job like 3 months later and was writing features for a rails app within a couple days of starting.
<havenwood> <3 Ruby
julweber_ has quit [Remote host closed the connection]
<Eiam> never been a full time dev
<existensil> but, I don't know that ruby was any easier to learn than others... it was just more fun so i was more motivated
<risoli> oh more fun?
<Eiam> ruby is more fun
<Eiam> for sure
<Eiam> apeiros may think I hate Ruby but I love ruby =)
<existensil> yes, its an extremely fun, flexible, declarative language
<Eiam> certainly more than python, although python is OK too!
<existensil> with a vibrant community and a whole host of great gems you can use to solve lots of the boring stuff :-)
DonRichie has quit [Ping timeout: 260 seconds]
DrCode has joined #ruby
rupee has quit [Quit: Leaving]
DonRichie has joined #ruby
<risoli> only thing that scares me is writing DSL
ixti has quit [Read error: Connection reset by peer]
<risoli> is it called metaprogramming?
ixti has joined #ruby
<existensil> it can be... depends how the DSL is implemented. yes, often metaprogramming is used.
aeontech has joined #ruby
gregorg has quit [Ping timeout: 268 seconds]
<risoli> macros, etc. feels like i need to memorize pages of language specs
jibi has quit [Ping timeout: 246 seconds]
<existensil> once you get the concepts behind how modules/macros/etc work you won't have to memorize anything
<existensil> it will just start to make sense
Ziarkaen has quit [Remote host closed the connection]
<risoli> existensil: oh i'm glad
Collin has quit [Ping timeout: 264 seconds]
<existensil> you shouldn't be creating lots of custom DSLs right away with ruby anyways... those make sense when building a library or in certain other places, but for every-day coding you don't need to do any meta programming in ruby
ukd1_ has joined #ruby
ukd1_ has quit [Remote host closed the connection]
<risoli> i see
<risoli> lastly, is "learn ruby the hard way" book good enough to start Ruby, or you recommend another book?
snath has quit [Ping timeout: 245 seconds]
<existensil> there are lots of good books. why's poigant guide is one i'm partial too
ukd1_ has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
spap has quit [Read error: Connection reset by peer]
<existensil> this is also a good free resource: http://www.ruby-doc.org/docs/ProgrammingRuby/
<existensil> but my favorite way to learn is find a problem and break out the docs and the google
<existensil> especially if you already understand core programming concepts
<existensil> you can pic up the ruby specific stuff as you go
ukd1 has quit [Ping timeout: 268 seconds]
Davey has joined #ruby
quazimodo has quit [Ping timeout: 248 seconds]
slothbear has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
Davey has quit [Client Quit]
mlpinit has quit [Remote host closed the connection]
youcallme has joined #ruby
youcallme has quit [Read error: Connection reset by peer]
Ripp__ has quit []
axl_ has joined #ruby
ukd1_ has quit [Ping timeout: 276 seconds]
gregorg has joined #ruby
ukd1 has joined #ruby
Ripp__ has joined #ruby
dodosan has joined #ruby
jonathancutrell has joined #ruby
randomautomator has quit [Ping timeout: 245 seconds]
randomdrake has quit [Quit: randomdrake]
slothbear has quit [Quit: Page closed]
brianpWins has quit [Quit: brianpWins]
<havenwood> risoli: Learn Ruby the Hard Way by and large isn't idiomatic Ruby, so I'd not recommend that one in particular.
saarinen has joined #ruby
duggiefresh has joined #ruby
srji has joined #ruby
<havenwood> risoli: Learn to Program by Chris Pine if you're new to programming. If you're coming from another language, The Ruby Programming Language.
<risoli> havenwood: oh
<havenwood> risoli: Do check out _why's Poignant Guide, and make sure to listen to the soundtrack while you read it. :D
<risoli> havenwood: no i have been programming for years. never wrote a single line of Ruby though
Alina-malina has quit [Ping timeout: 248 seconds]
stevechiagozie has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
<havenwood> The Ruby Programming Language is great then, jumps right in.
Alina-malina has joined #ruby
sevenseacat has joined #ruby
<havenwood> ^ By David Flanagan and Matz.
<existensil> (much cheaper on amazon)
duggiefresh has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
<havenwood> I guess that one isn't Ruby 2.0. Wonder if they've already done an update? Yeah, I'm sure cheaper elsewhere.
<risoli> but it doesn't cover 2.0?
<havenwood> 2.0 isn't much different
ehaliewicz has quit [Ping timeout: 268 seconds]
<havenwood> important thing is 1.9
obanta has joined #ruby
lukec has joined #ruby
Guest38942 has quit [Read error: Connection reset by peer]
<havenwood> think of 1.9.3 as the release candidate for 2.0 :P
lyanchih has joined #ruby
nx000bsd has joined #ruby
<risoli> hmm
<havenwood> you can learn the little laundry list of differences in 2.0 rather quickly
<havenwood> and upcoming 2.1 this Christmas
srji has quit [Ping timeout: 264 seconds]
<nx000bsd> any ruby master free to work?
swordsmanz has joined #ruby
jonathancutrell has quit [Quit: jonathancutrell]
freerobby has joined #ruby
Columcille has quit [Read error: Connection reset by peer]
pairup has joined #ruby
dankest has joined #ruby
Kabaka has joined #ruby
Michael has joined #ruby
snovak has joined #ruby
Michael is now known as Guest31345
F40PH is now known as Bourbon
snovak has quit [Ping timeout: 256 seconds]
thepumpkin has joined #ruby
ukd1 has quit [Remote host closed the connection]
The-Mad-Pirate has joined #ruby
simoz has quit [Ping timeout: 268 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
labrat__ has joined #ruby
iliketurtles has joined #ruby
maletor has joined #ruby
vxxr has quit [Ping timeout: 245 seconds]
cmarques_ has joined #ruby
cmarques has quit [Ping timeout: 264 seconds]
Clooth has quit [Quit: Leaving...]
kindjal has joined #ruby
yxhuvud2 has quit [Quit: Nettalk6 - www.ntalk.de]
HelloHello has quit [Quit: Leaving]
bdnchr has joined #ruby
ukd1 has joined #ruby
<havenwood> nx000bsd: What kind of project? Ruby or really Rails?
yxhuvud has joined #ruby
labrat__ has quit [Remote host closed the connection]
quoin has joined #ruby
nari has joined #ruby
diegoviola has joined #ruby
ukd1 has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 264 seconds]
Voodoofish430 has quit [Quit: Leaving.]
linux_noob_666 has quit [Remote host closed the connection]
bklane has joined #ruby
simoz has joined #ruby
ukd1 has joined #ruby
lembacon has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
lembacon has quit [Remote host closed the connection]
Ox6abe has quit [Ping timeout: 260 seconds]
BillCriswell has quit [Remote host closed the connection]
bdnchr has quit [Ping timeout: 240 seconds]
kindjal has quit [Quit: Computer has gone to sleep.]
solrize has joined #ruby
kindjal has joined #ruby
kvirani has quit [Remote host closed the connection]
dmiller has joined #ruby
labrat__ has joined #ruby
kvirani has joined #ruby
zeade has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
quoin has quit [Ping timeout: 245 seconds]
Guest31345 has quit [Read error: Connection reset by peer]
dodosan has quit [Remote host closed the connection]
randomdrake has joined #ruby
obanta has quit []
Davey has joined #ruby
dhruvasagar has joined #ruby
snath has joined #ruby
hamakn has joined #ruby
thesheff17 has quit [Remote host closed the connection]
AndChat| has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
t1 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
duracrisis_ has joined #ruby
Es0teric has joined #ruby
HelloHello has joined #ruby
cong has joined #ruby
Es0teric has quit [Max SendQ exceeded]
thesheff17 has joined #ruby
<gr33n7007h> How do you add all the numbers up in an array e.g [12,23,34,455,64,32,23,1]
<cong> why am i getting this? http://codepad.org/tkrbjkvy
<cong> works as it should when i remove the credential file from ~/gem
<cong> ~/.gem
risoli has quit [Quit: Page closed]
<t1> gr33n7007h array.inject(:+)
Banistergalaxy has quit [Ping timeout: 245 seconds]
thepumpkin has quit [Remote host closed the connection]
<t1> is Matz' book "The Ruby Programming Language" still up to date and tough it does not cover 2.0?
wg98wdghiw has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<gr33n7007h> t1, Yes thanks bro
<wg98wdghiw> np
kkh has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
duracrisis_ is now known as kkh
martianixor has quit [Remote host closed the connection]
* wg98wdghiw is t1
kkh has quit [Changing host]
kkh has joined #ruby
tomzx_mac has quit [Ping timeout: 260 seconds]
Guest78458 has joined #ruby
tomzx_mac has joined #ruby
wg98wdghiw has quit [Client Quit]
brianpWins has joined #ruby
ericmathison has quit [Ping timeout: 276 seconds]
t1 has quit [Ping timeout: 260 seconds]
funburn has quit [Ping timeout: 248 seconds]
bricker`away has quit [Ping timeout: 245 seconds]
t1 has joined #ruby
dodosan has joined #ruby
ezra has joined #ruby
ezra has quit [Changing host]
ezra has joined #ruby
funburn has joined #ruby
aeontech has quit [Quit: aeontech]
dagnachew has joined #ruby
<cong> does anyone know what i am doing wrong here? http://codepad.org/tkrbjkvy
krz has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
ttt has joined #ruby
jonathancutrell has joined #ruby
jonathancutrell has quit [Client Quit]
kunday has joined #ruby
havenwood has quit [Remote host closed the connection]
ssvo has joined #ruby
bklane has quit [Remote host closed the connection]
havenwood has joined #ruby
Domon has joined #ruby
havenwood has quit [Ping timeout: 268 seconds]
BSaboia has joined #ruby
snovak has joined #ruby
gr33n7007h has quit [Read error: Operation timed out]
mary5030 has joined #ruby
dhruvasagar has joined #ruby
kil0byte has joined #ruby
jonathancutrell has joined #ruby
ffranz has quit [Quit: Leaving]
snovak has quit [Ping timeout: 245 seconds]
jonathancutrell has quit [Client Quit]
beilabs_ has quit [Ping timeout: 248 seconds]
axl_ has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
Michael has joined #ruby
Michael has quit [Remote host closed the connection]
okinomo has joined #ruby
Michael has joined #ruby
beilabs_ has joined #ruby
Michael is now known as Guest94537
tomzx_mac has quit [Ping timeout: 276 seconds]
dagnachew has quit [Quit: Leaving]
ehaliewicz has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
goleldar has quit [Remote host closed the connection]
kkh has quit [Ping timeout: 264 seconds]
HelloHello has quit [Quit: This computer has gone to sleep]
choobie has joined #ruby
IceyEC has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby
t1 has quit [Ping timeout: 256 seconds]
IceyEC has quit [Client Quit]
Guest94537 has quit [Remote host closed the connection]
Artheist has joined #ruby
ukd1 has quit [Remote host closed the connection]
radic_ has joined #ruby
dankest has quit [Quit: dankest]
mary5030 has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
radic has quit [Ping timeout: 264 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quoin has joined #ruby
[rust] has joined #ruby
parzo has joined #ruby
Hobogrammer has joined #ruby
mary5030 has joined #ruby
Rym_ has joined #ruby
varfoo has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
jonathancutrell has joined #ruby
Ripp__ has quit []
solrize has quit [Changing host]
solrize has joined #ruby
brianpWins has quit [Quit: brianpWins]
macmartine has joined #ruby
Rym has quit [Ping timeout: 276 seconds]
Rym_ is now known as Rym
The-Mad-Pirate has quit []
brianpWins has joined #ruby
Hobogrammer has quit [Quit: さようなら]
nisstyre has joined #ruby
cody-- has joined #ruby
Loaft has quit []
IceDragon has quit [Quit: Space~~~]
Hobogrammer has joined #ruby
jonathancutrell has quit [Quit: jonathancutrell]
Hobogrammer has quit [Read error: Connection reset by peer]
pairup has quit [Quit: I'm asleep.]
quoin has quit [Ping timeout: 240 seconds]
endash has quit [Quit: endash]
razi has quit [Ping timeout: 268 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
rdxc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pairup has joined #ruby
RIL__ has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
danman has joined #ruby
Targen has quit [Read error: Operation timed out]
Spami has quit [Quit: This computer has gone to sleep]
dankest has joined #ruby
d2dchat has joined #ruby
Klotho1 has quit [Ping timeout: 240 seconds]
cong has quit [Quit: i'm leaving y'all. IRC client: http://placekitten.com]
jolleyjoe has quit [Remote host closed the connection]
ukd1 has joined #ruby
randomdrake has quit [Quit: randomdrake]
danman has quit [Quit: danman]
Davey has joined #ruby
rafacv has joined #ruby
rezzack has quit [Quit: Leaving.]
Fire-Dragon-DoL has left #ruby [#ruby]
beneggett has joined #ruby
spap has joined #ruby
fridim__ has joined #ruby
razi has joined #ruby
Artheist has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
taternuts has quit []
vlad_starkov has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
lyanchih has joined #ruby
yourmysin has joined #ruby
kilophoton has joined #ruby
Michael has joined #ruby
snovak has joined #ruby
roychri has quit [Quit: And that's the way the cookie crumbles!]
Michael is now known as Guest43005
cody-- has quit [Quit: Computer has gone to sleep.]
io_syl has quit []
macmartine has quit [Quit: Computer has gone to sleep.]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hardbit has joined #ruby
vlad_starkov has joined #ruby
forced_request has quit [Ping timeout: 264 seconds]
cody-- has joined #ruby
dankest has quit [Quit: dankest]
snovak has quit [Ping timeout: 245 seconds]
ixti has quit [Ping timeout: 256 seconds]
dankest has joined #ruby
Lewix has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
aeontech has joined #ruby
yourmysin has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
randomdrake has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
yekta has joined #ruby
Ripp__ has joined #ruby
jonathancutrell has joined #ruby
Rym has quit [Ping timeout: 245 seconds]
RIL__ has quit [Ping timeout: 276 seconds]
duggiefresh has quit [Remote host closed the connection]
ezra has quit [Ping timeout: 245 seconds]
cody-- has quit [Quit: Computer has gone to sleep.]
jonahR has joined #ruby
nerdy has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
zorg24 has joined #ruby
rafacv has quit [Remote host closed the connection]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
iliketurtles has joined #ruby
browndawg has joined #ruby
browndawg has quit [Client Quit]
parzo has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
Targen has joined #ruby
diegoviola has joined #ruby
vlad_starkov has joined #ruby
kobain_ has quit [Ping timeout: 245 seconds]
ssvo has joined #ruby
thinkclay has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Columcille has joined #ruby
brianpWins has quit [Ping timeout: 256 seconds]
dkamioka has joined #ruby
quoin has joined #ruby
wallerdev has quit [Quit: wallerdev]
kunday has quit [Remote host closed the connection]
|jemc| has joined #ruby
BSaboia has quit [Ping timeout: 268 seconds]
aeontech has quit [Quit: aeontech]
postmodern has quit [Quit: Leaving]
brianpWins has joined #ruby
saarinen has joined #ruby
aeontech has joined #ruby
saarinen has quit [Client Quit]
baroquebobcat has joined #ruby
maletor has joined #ruby
axl_ has joined #ruby
saarinen has joined #ruby
Xiti` has joined #ruby
plotter has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<plotter> I'm a little dumbfounded. What I call such a program as this. I want to write a program in ruby that I run a server program on a remote internet facing server, and a client on a local system behind NAT so that when a request comes in through to the server it would be forwarded to the client
axl_ has quit [Client Quit]
io_syl has joined #ruby
<plotter> ie a webhost ran behind the NAT but the outside internet facing server handles all the requests as if an intermediary
Xiti has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
aryaching_ has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
quoin has quit [Ping timeout: 245 seconds]
<r0bglees0n> a gateway/proxy
<xybre> plotter: yeah thats like a tunneling proxy. Make it open source.
alvaro_o has quit [Quit: Ex-Chat]
Guest43005 has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
aryaching has quit [Ping timeout: 260 seconds]
rafacv has joined #ruby
mrsolo has joined #ruby
<plotter> thats the word i was looking for
<plotter> tunneling proxy
<plotter> :d thanks my brain was frozen
ssvo has quit [Ping timeout: 248 seconds]
fgo has joined #ruby
zets has quit [Ping timeout: 276 seconds]
spap has quit []
cooldman224 has quit [Remote host closed the connection]
snovak has joined #ruby
<plotter> found what i was lookign for already written in python
rafacv has quit [Ping timeout: 264 seconds]
polaco is now known as polaco_zZz
yacks has quit [Quit: Leaving]
<plotter> oh and a gem someone made under the same name
<plotter> interesting
zets has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
Kelet_ is now known as Kelet
kobain has quit []
beneggett has joined #ruby
Splourian has joined #ruby
<xybre> Curious, was one maybe a port
huoxito has quit [Quit: Leaving]
vlad_starkov has joined #ruby
snovak has quit [Ping timeout: 276 seconds]
zarubin has joined #ruby
bluOxigen has joined #ruby
DonRichie has quit [Quit: Verlassend]
diegoviola has joined #ruby
fridim__ has quit [Ping timeout: 245 seconds]
narcan has joined #ruby
goshakkk has joined #ruby
mary5030 has quit [Remote host closed the connection]
decoponio has joined #ruby
lukec has quit [Quit: lukec]
noopq has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
saarinen has quit [Quit: saarinen]
ananthakumaran has joined #ruby
Domon has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
__GG has joined #ruby
Domon has joined #ruby
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby
aeontech has quit [Quit: aeontech]
persand has joined #ruby
x1337807x has joined #ruby
axsuul has joined #ruby
jefflyne3 has quit [Ping timeout: 245 seconds]
Domon has quit [Remote host closed the connection]
x1337807x has quit [Client Quit]
dik_dak has quit [Ping timeout: 264 seconds]
Domon has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lyanchih has joined #ruby
tabolario has joined #ruby
yaymukund has joined #ruby
<yaymukund> I know about the =~ and !~ operators, but is there a !=~ operator?
julweber has joined #ruby
<onewheelskyward> var =~ /[^abc]/ is what I usually do
<yaymukund> I just saw this weird comment mentioning it: http://rubyquicktips.com/post/15994276561/the-and-operators#comment-414930139
<onewheelskyward> you could say unless var =~ /whatever/
<yaymukund> no no, I think `unless foo =~ /regex/` is the same as `if foo !~ /regex/`
Domon has quit [Ping timeout: 248 seconds]
<onewheelskyward> I feel like unless is a good pattern and !~ is a bit of an anti-pattern.
<yaymukund> I'm wondering about the existence of a third operator, !=~. I think that comment might have just been confused
<onewheelskyward> Oh. :)
<onewheelskyward> Try it?
<onewheelskyward> >> "abc" !=~ /a/
<eval-in> onewheelskyward => true (https://eval.in/48000)
<sevenseacat> lol
dkamioka has quit [Remote host closed the connection]
<yaymukund> 'lol' !=~ /lol/
<yaymukund> >> 'lol' !=~ /lol/
<eval-in> yaymukund => true (https://eval.in/48001)
baroquebobcat has quit [Quit: baroquebobcat]
<onewheelskyward> >> 'lol' !=~ 'this isn't what we think it is'
<eval-in> onewheelskyward => /tmp/execpad-e791732c597f/source-e791732c597f:2: syntax error, unexpected tIDENTIFIER, expecting keyword_end ... (https://eval.in/48002)
aeontech has joined #ruby
okinomo has quit [Ping timeout: 260 seconds]
julweber has quit [Ping timeout: 240 seconds]
agush has joined #ruby
<agush> hi
<yaymukund> >> ~/lol/
<eval-in> yaymukund => nil (https://eval.in/48003)
<yaymukund> >> nil !=~ /lol/
<eval-in> yaymukund => false (https://eval.in/48004)
<yaymukund> so that's what's happening
<yaymukund> h!
<yaymukund> ha!
<yaymukund> I still don't know why `~/lol/` returns `nil`
<agush> hi, anyone care to help me understanding reduce?
<agush> i've got this
<agush> but i dont know why the accumulator is nil
ner0x has quit [Remote host closed the connection]
<bnagy> agush: the rule with inject ( reduce ) is that you need the block to return the accumulator every time
<bnagy> >> puts "impossible" if false
<eval-in> bnagy => nil (https://eval.in/48010)
<bnagy> note the return of untaken ifs
<bnagy> .. also the return of puts, but that's not relevant in this case ;)
<agush> ohh okok
<agush> so when the condition fails
osvico has quit [Ping timeout: 245 seconds]
<agush> its not returning anything
<bnagy> yeah
<bnagy> also imho that's not a case for reduce, but that's by the by
<bnagy> I'd just do thing.select {|i| i > min}.size
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<yaymukund> agush: https://eval.in/48016 if you want to learn how reduce works
<agush> that makes sense bnagy, thanks
<agush> ok yaymukund i will look into it
<yaymukund> but yeah select seems simpler here
<yaymukund> >> ~ /What/
<eval-in> yaymukund => nil (https://eval.in/48017)
parzo has joined #ruby
schaerli has joined #ruby
mansi has joined #ruby
atno has joined #ruby
aryaching has joined #ruby
okinomo has joined #ruby
<bnagy> it's for commandline trickery
<bnagy> avoid, imho :)
SHyx0rmZ has quit [Ping timeout: 260 seconds]
<yaymukund> sure, I was just wondering how `'lol' !=~ /lol/` was even parsing
Cyrus has joined #ruby
aryaching_ has quit [Ping timeout: 260 seconds]
<agush> thanks guys!
agush has quit [Quit: Page closed]
[rust] has quit [Quit: Leaving]
<bnagy> yaymukund: http://pastie.org/8318933
mansi has quit [Ping timeout: 264 seconds]
schaerli has quit [Remote host closed the connection]
quoin has joined #ruby
yaymukund has quit [Ping timeout: 245 seconds]
ssvo has joined #ruby
zarubin has quit [Ping timeout: 264 seconds]
antulik-afk is now known as antulik
iliketurtles has quit [Quit: zzzzz…..]
iliketurtles has joined #ruby
JohnBat26 has joined #ruby
browndawg has joined #ruby
|jemc| has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
yaymukund has joined #ruby
kuzushi has joined #ruby
snovak has joined #ruby
SeySayux has quit [Ping timeout: 264 seconds]
quoin has quit [Ping timeout: 256 seconds]
jojosiao has joined #ruby
SeySayux_ has joined #ruby
aryaching_ has joined #ruby
codecop has joined #ruby
rezzack has joined #ruby
pawanspace has joined #ruby
SHyx0rmZ has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
chairabanta has joined #ruby
<pawanspace> can somebody suggest me good article on performance
snovak has quit [Ping timeout: 256 seconds]
pawanspace has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
badquanta has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
brianpWins has joined #ruby
brianpWins has quit [Client Quit]
Splourian has quit [Quit: Leaving]
noopq has quit [Ping timeout: 264 seconds]
macmartine has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
tonni_ has quit [Remote host closed the connection]
schaerli has joined #ruby
baroquebobcat has joined #ruby
aeontech has quit [Quit: aeontech]
Splourian has joined #ruby
staafl has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simoz has quit [Ping timeout: 264 seconds]
ssvo has quit [Ping timeout: 256 seconds]
quazimodo has joined #ruby
cads2 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
iliketurtles has quit [Quit: zzzzz…..]
baroquebobcat has quit [Quit: baroquebobcat]
cads has quit [Ping timeout: 264 seconds]
tagrudev has joined #ruby
beneggett has joined #ruby
nso95 has joined #ruby
chriskk has quit [Quit: chriskk]
beneggett has quit [Client Quit]
Catie has quit [Read error: Operation timed out]
rrichardsr3 has joined #ruby
Catie has joined #ruby
nso95 has left #ruby [#ruby]
schaerli has quit [Remote host closed the connection]
werdnativ has joined #ruby
Domon has joined #ruby
elux has quit [Quit: Leaving...]
mrsolo has quit [Quit: This computer has gone to sleep]
simoz has joined #ruby
aryaching_ has quit []
__GG has quit [Quit: Leaving.]
devoldmx has joined #ruby
__GG has joined #ruby
mrsolo has joined #ruby
Xiti has joined #ruby
mansi has joined #ruby
Catie has quit [Ping timeout: 248 seconds]
chairabanta has quit [Quit: Leaving...]
Xiti` has quit [Ping timeout: 245 seconds]
Catie has joined #ruby
zoee has joined #ruby
nisstyre has quit [Ping timeout: 260 seconds]
mansi has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
aagdbl has joined #ruby
threeturn has joined #ruby
Aryasam has joined #ruby
saarinen has joined #ruby
wallerdev has joined #ruby
fgo_ has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
Xiti has quit [Ping timeout: 264 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
Xiti has joined #ruby
Gacha has joined #ruby
FMJaggy has joined #ruby
antulik is now known as antulik-afk
Aryasam has quit [Ping timeout: 264 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
JohnBat26 has quit [Ping timeout: 276 seconds]
thinkclay has quit [Quit: Leaving.]
quoin has joined #ruby
ryandeussing has quit [Remote host closed the connection]
ryandeussing has joined #ruby
yekta has quit [Quit: yekta]
baroquebobcat has joined #ruby
pairup has quit [Quit: I'm asleep.]
snovak has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
tabolario has quit [Ping timeout: 248 seconds]
Nilium has quit [Ping timeout: 264 seconds]
Xiti has quit [Ping timeout: 260 seconds]
GeissT has joined #ruby
haxrbyte_ has joined #ruby
dankest has quit [Quit: Peace]
snovak has quit [Read error: Operation timed out]
T_T has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
Bry8Star{T2 has joined #ruby
okinomo has joined #ruby
choobie has quit [Ping timeout: 260 seconds]
rezzack has quit [Quit: Leaving.]
haxrbyte has quit [Ping timeout: 264 seconds]
braincrash has quit [Ping timeout: 245 seconds]
braincra- has joined #ruby
sayan has joined #ruby
braincra- is now known as braincrash
T_T has quit [Remote host closed the connection]
Nilium has joined #ruby
threeturn has quit [Quit: threeturn]
randomdrake has quit [Quit: randomdrake]
randomdrake has joined #ruby
dweeb_ has joined #ruby
quoin has quit [Ping timeout: 264 seconds]
RIL__ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
hololeap has joined #ruby
julweber has joined #ruby
ssvo has joined #ruby
ewnd9 has joined #ruby
browndawg has quit [Ping timeout: 260 seconds]
dagobah has joined #ruby
Bry8Star{T2 has quit [Read error: Connection reset by peer]
funburn has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
Bry8Star{T2 has joined #ruby
ssvo has quit [Ping timeout: 264 seconds]
user258467 has joined #ruby
malcolmva has quit [Ping timeout: 245 seconds]
rezzack has joined #ruby
aryaching has joined #ruby
T_T has joined #ruby
saarinen has quit [Quit: saarinen]
Domon has quit [Remote host closed the connection]
browndawg has joined #ruby
Domon has joined #ruby
pranny has joined #ruby
lemonsparrow has joined #ruby
Domon__ has joined #ruby
Domon has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
malcolmva has joined #ruby
zorg24 has quit [Ping timeout: 268 seconds]
pyrac has joined #ruby
pranny has quit [Read error: Connection reset by peer]
pranny1 has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jefflyne3 has joined #ruby
julweber has quit [Remote host closed the connection]
rrichardsr3 has quit [Quit: -- I'm out --]
timonv has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
dkamioka has joined #ruby
hololeap has joined #ruby
ehaliewicz has quit [Ping timeout: 276 seconds]
dkamioka has quit [Remote host closed the connection]
jprovazn has joined #ruby
ayaz has joined #ruby
relix has joined #ruby
rcosta has joined #ruby
zorg24 has joined #ruby
mansi has joined #ruby
Splourian has quit [Quit: Leaving]
kilophoton has quit [Ping timeout: 264 seconds]
Bry8Star{T2 has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
Rym has joined #ruby
avril14th has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<avril14th> morning world <)
aganov has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
joonty has joined #ruby
RIL__ has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 245 seconds]
nerdy has joined #ruby
Bry8Star{T2 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
DrCode has joined #ruby
solrize has quit [Ping timeout: 268 seconds]
Nahra has joined #ruby
Nahra has joined #ruby
filipe has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has quit [Remote host closed the connection]
nerdy has quit [Client Quit]
kaspergrubbe has joined #ruby
Kneferilis has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
threeturn has joined #ruby
havenwood has joined #ruby
noopq has joined #ruby
jonathancutrell has quit [Quit: jonathancutrell]
fgo_ has quit [Remote host closed the connection]
hamed_r has joined #ruby
io_syl has quit []
havenwood has quit [Ping timeout: 256 seconds]
pwh has quit [Quit: pwh]
tonni has joined #ruby
andikr has joined #ruby
Macaveli has quit [Quit: Computer has gone to sleep.]
snovak has joined #ruby
DrCode has quit [Remote host closed the connection]
ukd1 has quit [Remote host closed the connection]
funburn has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
browndawg has joined #ruby
Macaveli has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Client Quit]
quoin has joined #ruby
snovak has quit [Ping timeout: 268 seconds]
beneggett has joined #ruby
blackmesa has joined #ruby
funburn has quit [Ping timeout: 256 seconds]
dangerousdave has joined #ruby
tvw has joined #ruby
hardbit has quit [Quit: hardbit]
echevemaster has quit [Read error: Connection reset by peer]
troessner has joined #ruby
Xiti has joined #ruby
ssvo has joined #ruby
dash_ has joined #ruby
DrCode has joined #ruby
jbpros has joined #ruby
obs has joined #ruby
apeiros has joined #ruby
justsee has joined #ruby
tatsuya_o has joined #ruby
tjad has joined #ruby
T_T has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 245 seconds]
colonolGron has joined #ruby
rezzack has quit [Quit: Leaving.]
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
havenwood has joined #ruby
Xiti has quit [Ping timeout: 256 seconds]
quoin has quit [Ping timeout: 248 seconds]
end_guy has joined #ruby
yaymukund has quit [Ping timeout: 268 seconds]
fgo has joined #ruby
jefflyne3 has quit [Ping timeout: 276 seconds]
sami has quit [Quit: leaving]
<TwinkleH1od> Hey, i have a problem with a non-terminatin until-loop https://gist.github.com/kholbekj/d4916b9266fa0621d7fe
tatsuya_o has quit [Remote host closed the connection]
sami has joined #ruby
<TwinkleH1od> I tried printing tries, and it definately grows way bigger than number, so I guess my bool expression is wrong somehow
sami has left #ruby [#ruby]
<sevenseacat> needs parentheses
<sevenseacat> around arguments
<TwinkleH1od> Hm? Around (tries > number) ?
<sevenseacat> and around quotient
Xeago has joined #ruby
<TwinkleH1od> Ooooooh, riiight, i get it.
<TwinkleH1od> Cheer!
oliver_ has quit [Remote host closed the connection]
claymore has joined #ruby
jonahR has quit [Quit: jonahR]
<TwinkleH1od> Now the only problem is that it returns wrong! <3
Rym has quit [Quit: Rym]
Krisostoomus has joined #ruby
<Krisostoomus> Check out this http://webchef.netau.net and comment on contact information->comments!
colonolGron has quit [Ping timeout: 264 seconds]
<sevenseacat> Krisostoomus: ....nah
<TwinkleH1od> Krisostoomus: Why?
Krisostoomus has quit [Killed (idoru (Spam is off topic on freenode.))]
timonv has quit [Remote host closed the connection]
kuzushi has quit [Ping timeout: 276 seconds]
Coffers has joined #ruby
cj3kim has joined #ruby
jibi has joined #ruby
dweeb_ has quit [Quit: Computer has gone to sleep.]
hamed_r has quit [Quit: Ex-Chat]
mansi has joined #ruby
Cheos has joined #ruby
alup has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
__GG has quit [Quit: Leaving.]
end_guy has quit [Ping timeout: 240 seconds]
cads2 has quit [Ping timeout: 245 seconds]
hamakn has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 256 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
end_guy has joined #ruby
kilophoton has joined #ruby
Andrevan has joined #ruby
camilasan has joined #ruby
mercwithamouth has joined #ruby
kung has joined #ruby
hamakn has joined #ruby
aaronmcadam has joined #ruby
mercwithamouth has quit [Client Quit]
mercwithamouth has joined #ruby
mercwithamouth has quit [Client Quit]
mercwithamouth has joined #ruby
kilophoton has quit [Ping timeout: 256 seconds]
cj3kim has quit [Remote host closed the connection]
mercwithamouth has quit [Client Quit]
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
parzo has quit [Ping timeout: 264 seconds]
colonolGron has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
halfie has left #ruby ["Leaving"]
Lewix has joined #ruby
Lewix has joined #ruby
workmad3 has joined #ruby
timonv has joined #ruby
barratt has joined #ruby
oliver_ has joined #ruby
okinomo has quit [Quit: Lost terminal]
m8 has joined #ruby
Lewix has quit [Ping timeout: 245 seconds]
barratt has quit [Client Quit]
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
snovak has joined #ruby
camilasan has quit [Remote host closed the connection]
shaunbaker has joined #ruby
camilasan has joined #ruby
Lewix has joined #ruby
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
tesuji has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
eka has quit [Ping timeout: 240 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
colonolGron has quit [Ping timeout: 245 seconds]
m8 has quit [Max SendQ exceeded]
tesuji has quit [Read error: Connection reset by peer]
proxie has quit []
m8 has joined #ruby
m8 has quit [Changing host]
m8 has joined #ruby
Lewix has quit [Remote host closed the connection]
okinomo has joined #ruby
randomdrake has quit [Quit: randomdrake]
mercwithamouth has joined #ruby
julweber has joined #ruby
tatsuya_o has joined #ruby
m8 has quit [Read error: Connection reset by peer]
rcosta has quit [Remote host closed the connection]
ssvo has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
HelenaKitty has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
<HelenaKitty> How long does it take for nokogiri to install via ruby?
<HelenaKitty> It's taking FOREVER!
razi has quit [Quit: Leaving.]
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
quoin has joined #ruby
elaptics`away is now known as elaptics
NealJ has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
okinomo has quit [Quit: Lost terminal]
m8 has quit [Max SendQ exceeded]
okinomo has joined #ruby
beilabs_ has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
thesheff17 has quit [Ping timeout: 245 seconds]
t1 has joined #ruby
rcosta has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
ephemerian has joined #ruby
__GG has joined #ruby
m8 has quit [Max SendQ exceeded]
kraljev1 has joined #ruby
<kraljev1> conn.exec_params('SELECT $1 AS a, $2 AS b, $3 AS c', [1, 2, nil])
<kraljev1> PG::IndeterminateDatatype: ERROR: could not determine data type of parameter $1
<kraljev1> why is this, using PG gem
quoin has quit [Remote host closed the connection]
m8 has joined #ruby
mikecmpbll has joined #ruby
t1 has quit [Ping timeout: 256 seconds]
axsuul has quit [Ping timeout: 256 seconds]
quoin has joined #ruby
funburn has joined #ruby
m8 has quit [Max SendQ exceeded]
zxq9 has joined #ruby
beilabs_ has joined #ruby
m8 has joined #ruby
okinomo has quit [Ping timeout: 260 seconds]
nari has quit [Ping timeout: 245 seconds]
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
noname001 has joined #ruby
Cheos has quit [Quit: Leaving...]
thesheff17 has joined #ruby
tvw has quit []
eloquent_mute has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
Xiti has joined #ruby
<badquanta> How can I dynamically define static module methods?
pagios has joined #ruby
<pagios> hi all, i got a ruby 1.9.3 book is there a big different between 2.0 and 1.9.3 ? or same concept
yfeldblum has joined #ruby
elux has joined #ruby
badquanta has quit [Remote host closed the connection]
kung has quit [Read error: Connection reset by peer]
mansi has joined #ruby
kung has joined #ruby
rdark has joined #ruby
timonv has quit [Remote host closed the connection]
Domon__ has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
Domon has joined #ruby
drago777 has quit [Ping timeout: 248 seconds]
Domon__ has joined #ruby
Domon has quit [Read error: Connection reset by peer]
obs has joined #ruby
monkegjinni has joined #ruby
neo_ has joined #ruby
neo_ has quit [Client Quit]
mansi has quit [Ping timeout: 248 seconds]
<Xeago> pagios: not much difference
yugui_zzz_ has quit [Ping timeout: 245 seconds]
HelenaKitty has quit [Quit: Linux felicia 3.11.0-Helena #1 SMP Fri Jul 19 19:20:11 BST 2013 i686 GNU/Linux]
<xybre> pagios: 2 has some additional libraries and features, but very little to cause a problem.
yugui_zzz has joined #ruby
<pagios> great
khushildep has joined #ruby
nfk has joined #ruby
drago777 has joined #ruby
Cheos has joined #ruby
onewheelskyward has quit [Ping timeout: 260 seconds]
funburn has quit [Ping timeout: 248 seconds]
srji has joined #ruby
narcan has joined #ruby
AlHafoudh has quit []
wang has quit [Ping timeout: 260 seconds]
wang has joined #ruby
wang has quit [Changing host]
wang has joined #ruby
drago777 has quit [Excess Flood]
drago777 has joined #ruby
onewheelskyward has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
nari has joined #ruby
aaronmcadam has joined #ruby
cj3kim has joined #ruby
thelamest has joined #ruby
ghr has joined #ruby
camilasan has quit [Remote host closed the connection]
adambeynon has joined #ruby
camilasan has joined #ruby
eka has joined #ruby
eliasp_ has quit [Quit: No Ping reply in 180 seconds.]
kaspergrubbe has quit [Read error: Connection reset by peer]
eliasp has joined #ruby
simoz has quit [Ping timeout: 268 seconds]
<eloquent_mute> Why does 'a'.upto('Z') {|x| print x} not print anything, but 'A'.upto('z') {|x| print x} does?
timonv has joined #ruby
<hoelzro> because 'a' > 'Z'?
<xybre> eloquent_mute: because in ASCII Z comes before a
<hoelzro> >> puts('a'.ord); puts('Z'.ord)
<eval-in> hoelzro => 97 ... (https://eval.in/48056)
kaspergrubbe has joined #ruby
<xybre> (and UTF is a superset of ASCII)
axisys has quit [Ping timeout: 260 seconds]
<eloquent_mute> ah, thanks
camilasan has quit [Remote host closed the connection]
<hoelzro> UTF-what?
camilasan has joined #ruby
<xybre> Google it
* hoelzro puts on his pedantic hat
axisys has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
<hoelzro> UTF specifies a *suite* of encodings
<hoelzro> UTF-16, for example, is *not* a superset of ASCII
* xybre yawns
<hoelzro> ?
snovak has joined #ruby
ozzloy has quit [Ping timeout: 260 seconds]
Astralum has joined #ruby
ozzloy has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
tesuji has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
sevenseacat has quit [Quit: Leaving.]
snovak has quit [Ping timeout: 245 seconds]
t1 has joined #ruby
allsystemsarego has quit [Quit: Leaving]
Zai00 has joined #ruby
emanon_ has joined #ruby
rdxc has joined #ruby
m8 has quit [Quit: Sto andando via]
Ripp__ has quit []
m8 has joined #ruby
colonolGron has joined #ruby
ssvo has joined #ruby
rcosta has quit [Remote host closed the connection]
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
GeissT has quit [Ping timeout: 256 seconds]
m8 has quit [Read error: Connection reset by peer]
<xybre> Its 2:30am here, I might sleep @_@
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
m8 has joined #ruby
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
colonolGron has quit [Ping timeout: 264 seconds]
Criztian has joined #ruby
ssvo has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
mfridh has joined #ruby
jachymko is now known as jachymko[afk]
jefflyne3 has joined #ruby
__GG has quit [Quit: Leaving.]
quoin has quit [Read error: Connection reset by peer]
banisterfiend has quit [Client Quit]
Astralum has quit [Quit: Leaving]
a7d7p has joined #ruby
KevinSjoberg has joined #ruby
rcosta has joined #ruby
MrZYX|off is now known as MrZYX
quoin has joined #ruby
Criztian has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
jkamenik has joined #ruby
okinomo has joined #ruby
okinomo has joined #ruby
arca0 has joined #ruby
akemrir has joined #ruby
Qodosh has quit [Quit: Lost terminal]
<avril14th> Is there a particular reason why a particular file would not load: I try to run https://github.com/google/google-api-ruby-client-samples/blob/master/adsense/adsense.rb and I get an error "cannot load such file -- google/api_client/auth/file_storage" and yet the file is there?
niceguyjames has joined #ruby
<shevy> avril14th perhaps the project was not installed on your machine
<avril14th> thhe google gem is installed
Clooth has joined #ruby
<avril14th> I use it in a rails app
Cheos has quit [Read error: Connection reset by peer]
<shevy> then it should work, just as it does for every other project as well
<avril14th> that's what I thought
kraljev2 has joined #ruby
<avril14th> I added a Gemfile by the sample file
<avril14th> did a bundle install to get sure
<avril14th> :p
<shevy> I dont use bundler but the error you showed I only get when I did not install a project yet, in this case "google" gem
<avril14th> right
gstamp has quit [Quit: Computer has gone to sleep.]
<avril14th> what's funny is that other requires work
<shevy> perhaps the bundle install you did, did not install it
<avril14th> like require 'google/api_client/client_secrets' works
<shevy> what happens when you remove that line and rerun bundle it?
<shevy> odd
clocKwize has joined #ruby
kraljev1 has quit [Ping timeout: 268 seconds]
<avril14th> I may be can suppose there is a typo in the file that prevents loading
<avril14th> This gem is so middle age
Bry8Star{T2 has quit [Remote host closed the connection]
jezen has joined #ruby
mansi has joined #ruby
<jezen> hey guys
<jezen> how can I inspect a Jekyll class/module?
<jezen> I know I can access Jekyll::Converters::Markdown
<jezen> but how I can find out which other words I can replace ‘Markdown’ with?
<MrZYX> Jekyll::Converters.constants
Bry8Star{T2 has joined #ruby
<MrZYX> or in pry just ls Jekyll::Converters
persand has quit [Quit: persand]
mansi has quit [Ping timeout: 268 seconds]
<jezen> ah! The documentation has the answer!
<MrZYX> all three have
<jezen> thanks MrZYX
<jezen> if you use SO and you want some free points, I asked the same question last night here: http://stackoverflow.com/questions/18751702/convert-jekyll-posts-with-redcarpet
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
workmad3 has quit [Quit: leaving]
jojosiao has quit [Quit: Page closed]
workmad3 has joined #ruby
a7d7p has left #ruby [#ruby]
werdnativ has quit [Quit: werdnativ]
t1 has quit [Quit: Verlassend]
Stygia has joined #ruby
<jezen> I’m confused; If I do this: puts Jekyll::Converters::Markdown::RedcarpetParser.convert(post.content)
<jezen> I get: error: undefined method `convert' for Jekyll::Converters::Markdown::RedcarpetParser:Class.
<jezen> why did it add ‘:Class’ on the end?
<MrZYX> you're calling the method on a class
<MrZYX> and all classes have the type Class
<jezen> do I have to instantiate it first?
<MrZYX> apparently
YaNakilon has quit [Ping timeout: 245 seconds]
<jezen> right
<jezen> thanks
<MrZYX> the docs say convert is an instance method
colonolGron has joined #ruby
leex has joined #ruby
<okinomo> I'm doing some simple calculation in my controller like so - @progresshours = @hours * 10 . Is this ok? Or should calculations be in the model?
<okinomo> I wrote it this way because then I call @progresshours in the view to render the answer
cj3kim has joined #ruby
<leex> hi, the example code on this page http://www.ruby-doc.org/stdlib-2.0/libdoc/pty/rdoc/PTY.html doesn't work, because "m" is not defined, but master is ;)
YaNakilon has joined #ruby
<jezen> MrZYX: I don’t understand what config parameter I’m meant to pass in when instantiating
<shevy> avril14th I do not think it can be a typo, the error would be different if there is a typo, a parse error would be the case if there was a typo/syntax error. if it would be my project, I would go into google/api_client directory and ensure that a file called client_secrets.rb is there, and then I would go into ruby SITE_DIR path and see if it was installed. I dont use bundler though, I do not trus tit
<shevy> *trust it
<jezen> I’m trying to create an instance with rc = Jekyll::Converters::Markdown::RedcarpetParser.new
<MrZYX> okinomo: #rubyonrails
<jezen> and I get back Command failed: error: wrong number of arguments (0 for 1)
<avril14th> shevy: the file is there, I can access it and open it
<shevy> jezen it wants one argument
<jezen> tried .new(), .new('')
<MrZYX> jezen: you're probably not supposed to instantiate that on your own, but I don't know jekyll
<shevy> the second would pass an empty string object, the first would pass no argument jezen
<MrZYX> read the source
camilasan has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 256 seconds]
<okinomo> MrZYX: Woops! Sorry, didn't realize i was in wrong channel
<shevy> doesn't jekyll have proper documentation? :P
camilasan has joined #ruby
jprovazn has joined #ruby
<jezen> shevy: There’s not a lot of documentation for writing generators
cj3kim has quit [Ping timeout: 245 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 240 seconds]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
snovak has joined #ruby
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
akemrir has quit [Read error: Operation timed out]
newbiehacker has joined #ruby
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
postmodern has joined #ruby
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Client Quit]
snovak has quit [Ping timeout: 245 seconds]
Michael has joined #ruby
camilasan has quit [Ping timeout: 245 seconds]
Michael is now known as Guest25441
<leex> Ok, I think I encountered a bug in rubys PTY implementation, here is my example code: http://pastebin.com/65Td16Av which works fine with 1.9.3p429 (2013-05-15 revision 40747). In 1.9.3 it spawns a urxvt and writes to the slave, but when using ruby 2.0.0p195 (2013-05-14 revision 40734) it fails. can someone confirm this behavior?
jezen has quit [Remote host closed the connection]
colonolGron has quit [Ping timeout: 264 seconds]
jezen has joined #ruby
<jmaister> Who needs documentation. Isn't all ruby code self explanatory?
camilasan has joined #ruby
ssvo has joined #ruby
BSaboia has joined #ruby
dodosan has quit [Remote host closed the connection]
jezen_ has joined #ruby
jezen has quit [Read error: Connection reset by peer]
<ayaz> Eh
jachymko[afk] is now known as jachymko
__GG has joined #ruby
relix has joined #ruby
sakshi has joined #ruby
ssvo has quit [Ping timeout: 276 seconds]
beilabs_ has quit [Ping timeout: 245 seconds]
sakshi has left #ruby ["Konversation terminated!"]
MissionCritical has quit [Ping timeout: 256 seconds]
postmodern has quit [Quit: Leaving]
tvw has joined #ruby
blackmesa has joined #ruby
Xaitec_______ has joined #ruby
Xaitec_______ has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 248 seconds]
schaerli has joined #ruby
postmodern has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
jefflyne3 has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
banisterfiend has joined #ruby
perry|dnd has joined #ruby
ewnd9 has joined #ruby
itcharlie has joined #ruby
banisterfiend has quit [Client Quit]
Splourian has joined #ruby
Guest25441 has quit [Remote host closed the connection]
Mission-Critical has joined #ruby
headius has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
beilabs_ has joined #ruby
Macaveli has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
<shevy> jmaister sadly no :(
niklasb has joined #ruby
nomenkun has joined #ruby
persand has joined #ruby
ewnd9 has quit [Read error: No route to host]
AndChat| has quit [Ping timeout: 264 seconds]
ewnd9 has joined #ruby
eloquent_mute has quit [Ping timeout: 276 seconds]
postmodern has quit [Quit: Leaving]
jan1337z has quit [Changing host]
jan1337z has joined #ruby
clocKwize has quit [Quit: clocKwize]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
skaflem has joined #ruby
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
clocKwize has joined #ruby
kizzx2 has joined #ruby
mansi has joined #ruby
Mission-Critical is now known as MissionCritical
wildroman has joined #ruby
dangerousdave has quit [Quit: Leaving...]
mansi has quit [Ping timeout: 264 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
Macaveli has quit [Read error: Connection reset by peer]
oliver_ has quit [Remote host closed the connection]
Macaveli has joined #ruby
vlad_starkov has joined #ruby
apeiros has joined #ruby
jbpros has quit [Quit: jbpros]
lucazi has joined #ruby
Macaveli has quit [Client Quit]
Splourian has quit [Quit: Leaving]
dross has quit [Ping timeout: 245 seconds]
okinomo has quit [Ping timeout: 260 seconds]
ThePicard has quit [Ping timeout: 264 seconds]
jlebrech has joined #ruby
dross has joined #ruby
camilasan has quit [Remote host closed the connection]
thinkclay has joined #ruby
nhhagen_ has joined #ruby
cj3kim has joined #ruby
ThePicard has joined #ruby
camilasan has joined #ruby
camilasan has quit [Remote host closed the connection]
Macaveli has joined #ruby
colonolGron has joined #ruby
GeissT has joined #ruby
eloquent_mute has joined #ruby
oliver_ has joined #ruby
lkba has joined #ruby
nhhagen_ has quit [Ping timeout: 260 seconds]
cj3kim has quit [Ping timeout: 256 seconds]
<quazimodo> esquish me
oliver_ has quit [Remote host closed the connection]
<C0C0> leex: I can confirm the bug
buibex has joined #ruby
Michael has joined #ruby
Michael is now known as Guest39332
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
YaNakilon has quit [Ping timeout: 264 seconds]
jachymko is now known as jachymko[afk]
stevechiagozie has joined #ruby
jezen_ has quit [Remote host closed the connection]
stevechiagozie has quit [Client Quit]
jezen has joined #ruby
Domon__ has quit [Remote host closed the connection]
__GG has quit [Quit: Leaving.]
Domon has joined #ruby
thinkclay has quit [Quit: Leaving.]
thinkclay has joined #ruby
jachymko[afk] is now known as jachymko
thinkclay has quit [Client Quit]
gr33n7007h has joined #ruby
YaNakilon has joined #ruby
slummer87 has joined #ruby
jezen has quit [Ping timeout: 264 seconds]
Domon has quit [Ping timeout: 240 seconds]
colonolGron has quit [Quit: Lost terminal]
headius has quit [Quit: headius]
BSaboia has quit [Ping timeout: 268 seconds]
tacos1de has joined #ruby
pyrac has quit [Quit: pyrac]
ssvo has joined #ruby
threeturn has quit [Quit: threeturn]
kizzx2 has quit [Quit: Leaving.]
KobraKao has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
zeel has joined #ruby
iamjarvo has joined #ruby
fgo has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
youcallme has joined #ruby
ttt has quit [Remote host closed the connection]
KobraKao has quit [Ping timeout: 256 seconds]
ssvo has quit [Ping timeout: 256 seconds]
greengriminal has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
wildroman has quit [Remote host closed the connection]
fgo_ has joined #ruby
fgo has quit [Read error: Connection reset by peer]
oliver_ has joined #ruby
dodosan has joined #ruby
rickruby has joined #ruby
rcosta has quit [Remote host closed the connection]
camilasan has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ldnunes has joined #ruby
tkuchiki has joined #ruby
slummer87 has quit [Remote host closed the connection]
Guedes has left #ruby ["Saindo"]
blackmesa has joined #ruby
arturaz has joined #ruby
dodosan has quit [Ping timeout: 268 seconds]
freerobby has joined #ruby
atmosx has joined #ruby
browndawg has quit [Quit: Leaving.]
justsee has quit [Ping timeout: 260 seconds]
jezen has joined #ruby
jibi has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 248 seconds]
zorg24 has quit [Ping timeout: 264 seconds]
greengriminal has quit [Quit: Leaving]
osvico has joined #ruby
jezen_ has joined #ruby
snovak has joined #ruby
headius has joined #ruby
kayloos has joined #ruby
IceyEC has joined #ruby
jezen has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
mansi has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
lockwheel has joined #ruby
pyrac has joined #ruby
<lockwheel> hi can someone reset my password ?
rcosta has joined #ruby
<lockwheel> please ?
<tobiasvl> lockwheel: what password?
zorg24 has joined #ruby
akemrir has joined #ruby
jachymko is now known as jachymko[afk]
jachymko[afk] is now known as jachymko
jachymko is now known as jachymko[afk]
headius has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 264 seconds]
niklasb has quit [Ping timeout: 264 seconds]
<lockwheel> i have register freenode nick but I lost it
jbpros has joined #ruby
mlpinit has joined #ruby
Hmmmmmm has joined #ruby
<jrobeson> lockwheel, this isn't the place for that
<jrobeson> ask nickserv if you set an email address
<lockwheel> jrobeson can you tell me a place ?
<jrobeson> you can google/search for the correct command
<jrobeson> if you did set an email address
<jrobeson> if you didn't.. then you'll have to beg people on #freenode
<jrobeson> but don't bug them if you did
wildroman has joined #ruby
<lockwheel> i did man how could I ask them
radic_ has quit [Ping timeout: 245 seconds]
<lockwheel> than you btw
<Hmmmmmm> Question: does anybody here regret the fact they learned OOP the ruby way?
<lockwheel> *thank
gr33n7007h has quit [Ping timeout: 260 seconds]
<shevy> Hmmmmmm depends on what you mean with OOP exactly
freerobby has quit [Quit: Leaving.]
ananthakumaran has quit [Quit: Leaving.]
banisterfiend has joined #ruby
<shevy> Hmmmmmm in ruby there is this problem of an arbitrary distinction between class and modules where modules are crippled classes. functionality should be freely modifiable, any behaviour of a class should be copyable to another class in any amount of detail, be it full (through "subclassing") or minor (in form of "modules" and subsequent include-functionality)
DarthGandalf has quit [Ping timeout: 245 seconds]
lockwheel is now known as lockweel
zarubin has joined #ruby
<Hmmmmmm> Thanks for the response, my question also was about: does ruby force you to learn oop like it is meant to be
<shevy> that also depends on how you use ruby
<shevy> you can use it without ever having to write class Foo; end or module Bar; end
<Hmmmmmm> instead of making it work some way, making it work the right way. thinking about being a pro @ laziness and also POLA
<shevy> ?
<C0C0> Hmmmmmm: OOP is "not meant to be"
<shevy> there is no "right" way, there are just better ways
<Hmmmmmm> ever heard about the 'term' lazy programming?
<Hmmmmmm> ye sure
<Hmmmmmm> my bad
oliver_ has quit [Ping timeout: 256 seconds]
<shevy> I am lazy all the time
<Hmmmmmm> but does it 'force' you to use the right way
<C0C0> Programming is about building solid software
<shevy> the best code is the one that does not have to be written
<shevy> Hmmmmmm every language forces you to adjust to it
<atmosx> shevy: nice quote.
<C0C0> the right way is "wahtever is maintainable & fast to write"
<Hmmmmmm> ofcourse, but i was keeping POLA in mind
jachymko[afk] is now known as jachymko
<atmosx> C0C0: fast to write != maintainable
<C0C0> what is maintainable heavily depends on your language
<shevy> either by syntax errors or satisfying the parsers, then of course there are different ways to layout your project, files, code and so on
<C0C0> atmosx: thats not necessary true
<shevy> yeah
<shevy> ruby is rather clean, you can be very terse if you want to
<atmosx> C0C0: it is, in the long run it always is.
<shevy> I think haskell is also terse
fgo_ has quit [Remote host closed the connection]
<C0C0> atmosx: hmmm In practice maybe, but I don't see a reason for that being true generally
<atmosx> C0C0: Actually, either you write 'clean code' so that everybody understand and you document only the necessary parts or you have to document the shit out of every method.
<shevy> Hmmmmmm in general, writing classes in ruby is the best way if you want to reuse code
TomRone has quit [Ping timeout: 245 seconds]
<atmosx> C0C0: I thin it's a bit reversed. I'ts generally true but there might be some exceptions
DarthGandalf has joined #ruby
<atmosx> s/thin/think
<shevy> class Compile # this is my class to compile something... Compile.new(:gcc) or 'gcc' would compile the latest gcc for me for instance
dangerousdave has joined #ruby
<shevy> I could also do def compile(i) instead but it's not so easy to arrange it all without a class or module
varfoo has quit [Ping timeout: 245 seconds]
speakingcode-wor has quit [Ping timeout: 245 seconds]
<shevy> so class Compile here also functions as an organized namespace
<C0C0> atmosx: well I can read into a decently written but undocumented 10k lines ruby projekt in a few days, but If I try that with a C program of similar capabilities (e.G. 4-10 times more code).. no chance
<shevy> (actually, it resides in a module too...)
ItSANgo has quit [Read error: Connection reset by peer]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
<C0C0> writing ruby is both faster as well as easier to maintain to me
Kabaka has quit [Ping timeout: 240 seconds]
varfoo has joined #ruby
threeturn has joined #ruby
visof has quit [Ping timeout: 256 seconds]
ItSANgo_ has joined #ruby
<shevy> atmosx I try to write tutorials for my larger project, that way I hope it can help new users, and also remind me about certain design decisions
speakingcode-wor has joined #ruby
TomRone has joined #ruby
<Hmmmmmm> nice nice, some answers i can do something with.. instead of the standard "pro talk" being held @ youtube
<atmosx> C0C0: you can't but Linus Torvalds probably can.
<C0C0> now imagine crystal gets usable and we get a ruby like language with proper static typing..
<shevy> atmosx hehe
<C0C0> atmosx: see maintainability is a question of who does it
<atmosx> C0C0: So even this is subjective. To avoid this sort of subjectivity we add comments, right?
<shevy> atmosx perhaps because Linus throws away code he does not want :D
<atmosx> C0C0: or we choose to adjust to 'general guidelines' of a group of programmers, right?
<C0C0> hmm? never seen really helpfull comments tbh
pranny1 has quit [Quit: Leaving.]
<shevy> oh... crystal was that language that is similar to ruby syntax right?
<C0C0> shevy: yeah
<atmosx> shevy: he's a prick a dick or whatever you want but the guy is *really good* :-P with C
<shevy> does it have any documentation though? ruby is pretty awful with documentation
<atmosx> a bunch of other languages probably
<C0C0> shevy: well the compiler is written in ruby so its a lot esier to get into :P
<C0C0> also its just about 10K lines
<shevy> I like more competition to ruby
<Hmmmmmm> Another question, does it seriously pay of to do OOP the way its intended (POLA) like in JS? Or is it just a little bonus on top of everything?
cj3kim has joined #ruby
newUser1234 has joined #ruby
<shevy> Hmmmmmm is the js OOP any good?
DonRichie has joined #ruby
wildroman has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
radic_ has joined #ruby
<shevy> it reminds me of class Struct in ruby
<C0C0> shevy: its terrible
dash_ has quit [Ping timeout: 264 seconds]
<shevy> hehe
<atmosx> shevy: doesn't need to. Ruby (most of the times) if english… then if you start writting l33t code like some_list.map(&:foo) then go figure.
<atmosx> err is English
<shevy> I like the idea behind prototypic languages like Io
<C0C0> Hmmmmmm: doing OOP is good if your problem maps nicely to OOP solutions
<shevy> atmosx yeah
kayloos has quit [Remote host closed the connection]
threeturn has quit [Read error: Connection reset by peer]
osvico has quit [Ping timeout: 245 seconds]
<Hmmmmmm> when just keeping the thought process of pola which is working absolutely GREAT in JS (actualy its the only way to do it 'good')
<C0C0> atmosx: what is wrong with some_list.map(&:foo)
dash_ has joined #ruby
<C0C0> (well except for the name foo and some_list obviously)
<atmosx> I'm watching this right now to create an RSS feed for a news-show I'd like to have on iPhone. Here https://raw.github.com/boncey/ruby-podcast/master/lib/podcast.rb
visof has joined #ruby
Paradox has quit [Ping timeout: 264 seconds]
<atmosx> the guy uses attr_writer/reader … I wonder, I'm always using just attr_accessor: … isn't it the same?
threeturn has joined #ruby
<C0C0> I think it is
Inoperable has quit [Remote host closed the connection]
<C0C0> but maybe sometimes you want to have no writter...
oliver_ has joined #ruby
<C0C0> using both at the same time is rather pointless
cj3kim has quit [Ping timeout: 240 seconds]
ewnd9 has joined #ruby
lucazi is now known as lucazi_away
newUser1234 has quit [Ping timeout: 248 seconds]
JulsFelic has joined #ruby
jibi has joined #ruby
failshell has joined #ruby
<shevy> atmosx yes
<shevy> I think he does not know it probably
<atmosx> see even apparently adanced users make silly mistakes heh.
<atmosx> s/users/programmers
<C0C0> atmosx: its not a misstake is it?
newbiehacker has quit [Remote host closed the connection]
<C0C0> its just doing something in a quirky way
<Hmmmmmm> Another question I get asked alot: is ruby an unsafe language as in, keeping the POLA paradigm in mind is a pain in the ass.. so you'll end up not using it everywhere (when done it significantly reduces errors/bugs/loopholes)
<shevy> atmosx yeah, ruby has a long and big learning curve actually
<Xeago> what is POLA?
<Xeago> shevy: really?
<leex> Xeago: had to look it up, too ...
<Xeago> I say ruby has a very quick short learning curve
mansi has joined #ruby
<shevy> Xeago sure! just imagine how long it takes to learn everything ruby has to offer
<Xeago> but a high ceiling
oliver_ has quit [Remote host closed the connection]
<Hmmmmmm> Principle Of Least Authority
<Xeago> shevy: but not a steep curve
<Xeago> just a high ceiling
oliver_ has joined #ruby
eloquent_mute has quit [Ping timeout: 260 seconds]
<Hmmmmmm> yeye that's what i think, that way its the same as JS
DonRichie has quit [Quit: Verlassend]
browndawg has joined #ruby
<Xeago> js with its global variables was different for me
JulsFelic has quit [Ping timeout: 250 seconds]
<Hmmmmmm> just dont use em xD
mark_locklear has joined #ruby
<leex> Hmmmmmm: what do you need principle of least privilege in you OOP?
<leex> Hmmmmmm: what do you need principle of least privilege in your OOP for?*
<Hmmmmmm> in order to write secure applications
<Hmmmmmm> you NEED it
mansi has quit [Remote host closed the connection]
<Hmmmmmm> otherwise you end up writing security code
<C0C0> Hmmmmmm: I don't thinkl thats how security works...
goshakkk has joined #ruby
<Xeago> Hmmmmmm: define secure
<Hmmmmmm> when it can be embedded in the thinking of the program
<leex> Hmmmmmm: I agree with C0C0
rdxc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mansi has joined #ruby
<Xeago> the skills of the attacker and which security properties you desire
<Hmmmmmm> ofcourse
nari has joined #ruby
<leex> Hmmmmmm: I guess you need ADA
vlad_starkov has quit [Remote host closed the connection]
<Xeago> ADA?
<Hmmmmmm> but I always keep the highest skill in mind
Guest67332 has quit [Ping timeout: 245 seconds]
<Hmmmmmm> as far as I myself can go
fgo has joined #ruby
<C0C0> Hmmmmmm: well If I got code exec in your program all that is irrelevant
<Xeago> let me rephrase, attack surface
<Xeago> Hmmmmmm: not personal skill
<Xeago> you should assume attackers are pretty much infinitely more powerful than you are
<Hmmmmmm> thats why i said
<Hmmmmmm> as fair as i can go myseld
<Hmmmmmm> self
<Xeago> as I said, that is why you should worry about the attacksurface instead
<Xeago> instead of skill
akemrir has quit [Quit: WeeChat 0.4.1]
<Xeago> so please define those 3 things, define your view of secure, attack surface and the desired security properties
<C0C0> Xeago: thanks :)
<Xeago> C0C0: what?
<Hmmmmmm> so about attack surface
<leex> Hmmmmmm: you are right, you don't want to expose your private methods to any attacker, that's a valid point. never thought about it
<C0C0> Xeago: for asking the right questions
mephux has joined #ruby
<Hmmmmmm> therse should be as close to none as possible (ofcourse)
<Hmmmmmm> and keeping POLA in mind
<Xeago> Hmmmmmm: please start with your view of secure
<Hmmmmmm> you ensure you do it the 'right' way, as in most secure without alot of time loss / maintainabilty
<Xeago> what defines secure for you
<Hmmmmmm> my view of secure is, it would be impossible for a person to come up with something to hack it
<Xeago> >.<
<Hmmmmmm> only brute force should be able to
monkegjinni has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 256 seconds]
mansi has quit [Ping timeout: 245 seconds]
<Xeago> that is quite a blunt view
ssvo has joined #ruby
<Xeago> in any case
<Xeago> ruby is not your language because it is not deterministic
<Hmmmmmm> hmm
<C0C0> Xeago: °_o
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<C0C0> Hmmmmmm: do you acctually have any idea what your talking about?
<leex> Hmmmmmm: what is your scenario?
<Xeago> if that is how you define secure, go read up on crypto101 it introduces the concept of attacker scenario's
<Xeago> You don't have an idea of what you want, so fix that first. Coursera has a very good course for this
<Xeago> You can read up the first 3 weeks in about half a day
<leex> Hmmmmmm: what kind of software would you like to build? (or do you just want to troll us?)
<Hmmmmmm> Ok, let me type a little list:
lucazi_away is now known as lucazi
<Xeago> you can't just throw around generalities like you did when defining these 3 things, you have to be very specific because attackers gain an advantage from even the smallest things
asterite has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<Hmmmmmm> Interrupting my list typing, but ofcourse Xaego ur right, so it means keeping those advantages as small as possible
<Hmmmmmm> without the need of (perhaps even one) security module
cody-- has joined #ruby
iamjarvo has joined #ruby
tonni has joined #ruby
Inoperable has joined #ruby
<Xeago> I really encourage you to define the 3 properties, concretely
MrZYX is now known as MrZYX|off
ssvo has quit [Ping timeout: 248 seconds]
<Xeago> currently we just have some buzzwords flying around with the desire to make things secure
<Hmmmmmm> No, my question wasnt answered yet. Instead alot of other question came along, so again: is ruby a language which pays of to use the POLA paradigm
<Hmmmmmm> just want an answer, no other questions xD
anonymuse has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
asterite has left #ruby [#ruby]
Macaveli has joined #ruby
__GG has joined #ruby
<C0C0> mu
aryaching has joined #ruby
jonathanwallace has joined #ruby
<leex> C0C0: well put
pirelenito has joined #ruby
jonathanwallace has quit [Client Quit]
<Hmmmmmm> Ok ok, thats atleast something
jefflyne3 has joined #ruby
<C0C0> he?
<leex> back to my question, anyone here who can help me with my PTY issue? works with 1.9.3 and not with 2.0 http://pastebin.com/65Td16Av
banisterfiend has quit [Quit: Computer has gone to sleep.]
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
Kabaka has joined #ruby
nari has quit [Ping timeout: 248 seconds]
zorg24 has quit [Ping timeout: 245 seconds]
<C0C0> Hmmmmmm: the principle of least authority always pays of, independently of your programming language
<C0C0> I'd be quite supprised if there is a programminglanguage where OOP principle of least authority has ANY influence whatsoever on security
browndawg has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Quit: Leaving...]
<C0C0> using the principle of least authority when efining your user roles... thats where security comes from
<C0C0> defining
Macaveli has quit [Quit: Computer has gone to sleep.]
camilasan has quit [Remote host closed the connection]
breakingthings has joined #ruby
ravster has joined #ruby
jp- has joined #ruby
persand has quit [Quit: persand]
<Hmmmmmm> C0C0, ur right. so my other question is, will pola make ruby more verbose? instead of making it more elegant (widely accepted norms), like i,e JS
<C0C0> no
<Xeago> Hmmmmmm: that quistion is very fluffy - both yes and no are correct answers
rdxc has joined #ruby
<C0C0> Xeago: choose MU
<C0C0> :P
Niall has quit [Ping timeout: 264 seconds]
<Xeago> MU?
<C0C0> a new convention of using #to_h to convert objects to Hashes.[26]
<C0C0> oops
optimusprimem has quit [Ping timeout: 245 seconds]
<Xeago> (please stop with all these abbreviations, makes it very hard to skim the channel)
kaldrenon has joined #ruby
<C0C0> MU is not a abbreviation
<Xeago> I assumed it was, sorry
jonathanwallace has joined #ruby
<Hmmmmmm> how is it answerable by saying yes or no, there have to be 'standards' on how ruby code looks / maintains / performs the best
<Xeago> "s ruby a language which pays of to use the POLA paradigm?" that question
JumpMast3r has quit [Quit: JumpMast3r]
pygospa has joined #ruby
blindrage has joined #ruby
<leex> Xeago: :D
optimusprimem has joined #ruby
<Xeago> leex: I saw that you had a question too
<Xeago> mind restating it, again?
<blindrage> long story short, i have a config that some perl scripts use that's in the format 'server localhost\nport someport\n...' . Chosen because it's super simple and easy to use with perl's Simple::Config . I need to parse this using ruby for a facter item but i don't really know what tools are at my disposal
Macaveli has joined #ruby
bigkevmcd has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
<blindrage> is there a library somewhere that can turn this into a hash or do i need to do that? also where's the best place to browse ruby libraries... like what cpan is to perl
<Xeago> blindrage: doesn't that look like just space seperated key-values split by line?
<blindrage> crap i guess the latter would be gem huh...ignore that blind moment
<blindrage> it is, but i'd rather not reinvent the wheel
geekbri has joined #ruby
jezen_ has quit [Remote host closed the connection]
<leex> Xeago: I am trying to get PTY to work with ruby 2.0, if I run this code (http://pastebin.com/65Td16Av
<leex> hups
<Xeago> blindrage: I am a newb, wouldn't know if it would exist
jachymko is now known as jachymko[afk]
banisterfiend has joined #ruby
<blindrage> i can do it if need be, but if there's something someone knows that can turn it into a hash that would be great =)
<leex> Xeago: I am trying to get PTY to work with ruby 2.0, if I run this code (http://pastebin.com/65Td16Av) in 1.9.3 it works fine, but when I execute it with 2.0 something goes wrong and no terminal is spawned and I get an error: 5:in `write': Input/output error - /dev/pts/27 (Errno::EIO)
TheRealPygo has quit [Ping timeout: 276 seconds]
banisterfiend has quit [Client Quit]
<Xeago> file.read {|line| k,v=line.split_byspaces; hash[k]=v}
<C0C0> blindrage: how about "File.read("config").lines.reduce({}){|hash, line| key,val = *line.strip.split; h[key] = val; h }
ananthakumaran has joined #ruby
bigkevmcd has joined #ruby
camilasan has joined #ruby
<Xeago> leex: sorry I have no idea
<Xeago> apeiros, Banistergalaxy!
greengriminal has joined #ruby
<Xeago> handing over the reigns\ here
<leex> Xeago: me neither ;)
krawchyk has joined #ruby
snovak has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<Hmmmmmm> Well, no answers I can actualy do something with. Might the saying be correct? 'Ruby programmers tend to answer politically correct answers' when talking about something that isnt code, but a way of thinking...
<Hmmmmmm> dont think so, still funny
siwica has joined #ruby
zorg24 has joined #ruby
<Hmmmmmm> sry for the 'waste of time', cheers and happy programming ;)
Hmmmmmm has quit [Quit: Page closed]
<blindrage> C0C0: i don't know the syntax of ruby too well, but that looks 'simple' enough =)
<blindrage> facter is the only time i've had to use ruby =\
tk_ has joined #ruby
Aryasam has joined #ruby
browndawg has joined #ruby
Macaveli has quit [Quit: Computer has gone to sleep.]
<C0C0> blindrage: blindrage well sorry theres a type there
yacks has joined #ruby
<C0C0> should be hash[key]
<C0C0> hash[key]=val; hash}
<blindrage> 'sall good, i'm debugging it now
<C0C0> instead of h[key]=val; h}
<C0C0> but then it shoudl work
<apeiros> Xeago: what?
snovak has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
camilasan has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 264 seconds]
rcosta has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Operation timed out]
jachymko[afk] is now known as jachymko
<blindrage> C0C0: you've saved me a ton of time. works like a champ: http://fpaste.org/39017/99050313/
<Xeago> leex: had an issue using pty stuff
<Xeago> i couldn't resolve it
<C0C0> blindrage: your welcome :)
monkegjinni has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
<C0C0> blindrage: sorry that the solution is rather cryptic, but i tried to make it as short as possible
<leex> apeiros: http://pastebin.com/65Td16Av works with 1.9.3 doesn't work with 2.0
<blindrage> what's the best practice on string formatting? i could google but while i'm here my mind says strings are immutable. if that's true is it good to use a formatter like C#'s string.Format("{0}",variable); syntax?
browndawg has quit [Ping timeout: 245 seconds]
<C0C0> what do you want?
<C0C0> you can use format
<C0C0> but I've hardly seen that in practice
<blindrage> ie. 'http://' + config['server'] + ':' + config['port'];
<blindrage> my mind doesn't like that kind of concat
Aryasam has quit [Ping timeout: 264 seconds]
<Xeago> blindrage: you could "#{interpolate} #{variables}"
camilasan has joined #ruby
<C0C0> "http://#{config['server']}:#{config['port']}"
<C0C0> thats how I would do it
<clocKwize> what C0C0 said
<apeiros> leex: eeew, pastebin
<blindrage> hmmm, ok. just trying not to do awful ruby things since i'm new to the practice. thanks!
<clocKwize> blindrage: I came from c# too (many moons ago now)
<C0C0> blindrage: well thats perfectly fine, I'm glad to help :)
<apeiros> PTY - no real knowledge about that. also "doesn't work" isn't a useful problem description. sorry, can't help here as I'm short on time.
<blindrage> clocKwize: how do you like the community vs c#? i'm super green so for my job i use all sorts of languages ...
<C0C0> (as long as you ask reasonable questions that is)
zarubin has quit [Quit: Leaving]
<leex> apeiros: did you run it? it gives a rather specific error message...
<blindrage> i do some sysadmin so i write perl scripts. my main job is xquery which is a loosely typed functional language. I write tests in C# specflow (gherkin), and i write some automation stuff for Puppet in ruby
jachymko has quit [Quit: ZNC - http://znc.in]
<blindrage> so it's hard to keep track of which ones i ACTUALLY enjoy
spyderman4g63 has joined #ruby
<clocKwize> blindrage: community is a lot more vibrant with a lot more structure for sharing with gems, etc..
badquanta has joined #ruby
<blindrage> i like the gem structure, but i have to say i'm not a rails fan
<C0C0> hehe
<C0C0> don't like rails either
<blindrage> as a linux guy i love anything that's packaged and distributable... gem, rpms, etc
Aryasam has joined #ruby
<blindrage> i feared getting kicked on saying that =)
<C0C0> and especially that people tend to mix up ruby with rails -_-
yann_ck has joined #ruby
freerobby has joined #ruby
<blindrage> my problem is the amount of clever that goes into it. programming should almost never be clever. it's taken me until now to learn that
<C0C0> rails is WAY to clever
vlad_starkov has quit [Ping timeout: 260 seconds]
jachymko has joined #ruby
<blindrage> although clocKwize the community for C# is getting a bit better with nuget being maintained properly
eloquent_mute has joined #ruby
Aryasam_ has joined #ruby
lucazi has quit [Quit: lucazi]
<blindrage> i've recently joined in but it's more elegant than the java community
jkamenik has left #ruby [#ruby]
MrZYX|off is now known as MrZYX
brbcoding has joined #ruby
pwh has joined #ruby
sjltaylor has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
jdeeburke has joined #ruby
jdeeburke has quit [Max SendQ exceeded]
jdeeburke has joined #ruby
zorg24 has quit [Ping timeout: 276 seconds]
<C0C0> blindrage: I'd say a lot more "cool kids" and "linux" a lot less "big buisness" and "windows"
lucazi has joined #ruby
<C0C0> especially misogynistic cool kids :P
<blindrage> i can see the first lol
kayloos has joined #ruby
evenix has joined #ruby
rdxc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thelamest has quit [Remote host closed the connection]
agjacome has joined #ruby
azcodex has joined #ruby
monkegjinni has quit [Remote host closed the connection]
joonty has quit [Quit: WeeChat 0.3.8]
azcodex has quit [Read error: Connection reset by peer]
persand has joined #ruby
thelamest has joined #ruby
azcodex has joined #ruby
jibi has quit [Ping timeout: 245 seconds]
srji has quit [Quit: leaving]
fgo has quit [Read error: Connection reset by peer]
__GG has quit [Quit: Leaving.]
browndawg has joined #ruby
wildroman has joined #ruby
Aryasam_ has quit [Ping timeout: 264 seconds]
kayloos has quit [Remote host closed the connection]
<C0C0> extrapolating from myself: people who want to write smart code instead of easiy code -_-
azcodex- has joined #ruby
nikeita has joined #ruby
clocKwize has quit [Quit: clocKwize]
jerius has joined #ruby
zarubin has joined #ruby
<atmosx> I have this field "Explicit content" with "Yes/No/Clear" what does clear suppose to mean in this content?
<atmosx> err s/content/context
<C0C0> atmosx: ?
linux_noob_666 has joined #ruby
<atmosx> C0C0: I'm creating and RSS feed for an iTunes podcast. It's a daily show I want to download on my iPhone automatically
azcodex has quit [Ping timeout: 240 seconds]
<atmosx> doesn't have explicit content on it (usually at least)
Aryasam has joined #ruby
<atmosx> and it's in Greek so.
<C0C0> aah
<C0C0> that wasn't a ruby question but a apple stuff question
<C0C0> ?
<C0C0> hmm maybe clear = only pixelated
fmcgeough has joined #ruby
<C0C0> god I wish people could get a little bit more relaced with regards to "explicit" content
intuxicated has quit [Ping timeout: 245 seconds]
<atmosx> C0C0: I think it's a bit more general than Apple, it's an English question actually.
<atmosx> only pixelated
<C0C0> hmm
<atmosx> k I think I got it
zets has quit [Ping timeout: 260 seconds]
browndawg has quit [Ping timeout: 264 seconds]
thelamest has quit [Quit: WeeChat 0.4.0]
<C0C0> ?
Aryasam has quit [Client Quit]
jdeeburke has quit [Quit: Leaving.]
<gregj> so heroku says http://www.rubycentral.com doesn't exist anymore
kayloos has joined #ruby
duggiefresh has joined #ruby
lfox has joined #ruby
youcallme has quit [Remote host closed the connection]
snovak has joined #ruby
adambeynon has joined #ruby
youcallme has joined #ruby
interactionjaxsn has joined #ruby
kayloos has quit [Remote host closed the connection]
eloquent_mute has quit [Ping timeout: 240 seconds]
siwica has quit [Quit: siwica]
<triptec> in php I would do something like "foreach (array)$possible_string as $item) if there might be a risk that $possible_string isn't an array, is there something similar in ruby?
scarolan has joined #ruby
mikecmpbll has joined #ruby
oliver_ has quit [Ping timeout: 240 seconds]
yann_ck has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
kayloos has joined #ruby
polaco_zZz is now known as polaco
<C0C0> [*array].each {|elem| ... }
oliver_ has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
ssvo has joined #ruby
<tobiasvl> triptec: you shouldn't need to do anything
<tobiasvl> >> 'fdsafds'.each {|x| puts x}
<eval-in> tobiasvl => undefined method `each' for "fdsafds":String (NoMethodError) ... (https://eval.in/48080)
<tobiasvl> oh.
<tobiasvl> 18>> 'fdsafds'.each {|x| puts x}
<eval-in> tobiasvl => fdsafds ... (https://eval.in/48081)
<tobiasvl> grrr
<canton7> that loops through each char in the string
alekst has joined #ruby
elux has quit [Quit: Bye!]
<canton7> (iirc?)
<tobiasvl> irb(main):004:0> 'fdsafds'.each {|x| puts x + '\n'}
<tobiasvl> fdsafds\n
dhruvasagar has joined #ruby
<tobiasvl> sure?
* tobiasvl checks docs
Banistergalaxy has quit [Ping timeout: 260 seconds]
<canton7> no, as it turns out
alexju has joined #ruby
<canton7> it splits it on $/ (newlines), and iterates those
<tobiasvl> :)
browndawg has joined #ruby
yaymukund has joined #ruby
<tobiasvl> it doesn't do anything in ruby > 1.9 anyway so disregard everything i said ;)
cody-- has joined #ruby
kvirani has joined #ruby
Banistergalaxy has joined #ruby
ssvo has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
okinomo has joined #ruby
nari has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
snath has quit [Ping timeout: 245 seconds]
sevenseacat has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
arturaz has quit [Remote host closed the connection]
jefflyne3 has quit [Ping timeout: 260 seconds]
spyderman4g63 has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
spyderman4g63 has joined #ruby
thelamest has joined #ruby
<shevy> tobiasvl done!
atmosx has quit [Quit: Lost in trance]
kvirani has quit [Remote host closed the connection]
<shevy> triptec I usually convert into something I need ... i = i.split // if i.is_a? String
arca0 has quit [Ping timeout: 240 seconds]
kvirani has joined #ruby
<shevy> but within a class, I use mostly many small methods
dhruvasagar has joined #ruby
clocKwize has joined #ruby
krz has quit [Quit: krz]
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
dkamioka has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
browndawg has joined #ruby
coderhs has joined #ruby
kvirani has joined #ruby
peregrine81 has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
rcosta has joined #ruby
jdeeburke has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
lukec has joined #ruby
jdeeburke has quit [Max SendQ exceeded]
mansi has quit [Read error: Connection reset by peer]
nowthatsamatt has quit [Quit: nowthatsamatt]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
Nanuq has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
browndawg has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
akemrir has joined #ruby
relix has joined #ruby
mansi_ has joined #ruby
relix has quit [Client Quit]
theRoUS has joined #ruby
jefflyne3 has joined #ruby
JumpMast3r has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
eloquent_mute has joined #ruby
d33tah is now known as d33tah1
d33tah1 is now known as deetah
pyrac has quit [Quit: pyrac]
thelamest has quit [Quit: sorry for modespam]
Bry8Star{T2 has joined #ruby
pyrac has joined #ruby
jdeeburke has joined #ruby
codecop has quit [Remote host closed the connection]
deception has joined #ruby
lukec has quit [Quit: lukec]
deception has quit [Client Quit]
deception has joined #ruby
ehc has joined #ruby
schaerli has quit [Remote host closed the connection]
burlyscudd has joined #ruby
thelamest has joined #ruby
monkegjinni has joined #ruby
coderhs has quit [Quit: Leaving]
brbcoding has quit [Ping timeout: 276 seconds]
kindjal has joined #ruby
banisterfiend has joined #ruby
youcallm_ has joined #ruby
DrCode has quit [Remote host closed the connection]
sailias has joined #ruby
browndawg has joined #ruby
blackmesa has quit [Remote host closed the connection]
jezen has joined #ruby
kindjal has quit [Client Quit]
s0ber has quit [Read error: Connection reset by peer]
eloquent_mute has quit [Quit: eloquent_mute]
s0ber has joined #ruby
blackmesa has joined #ruby
monkegjinni has quit [Remote host closed the connection]
pjb_ has joined #ruby
x0nic has quit [Ping timeout: 260 seconds]
paul_k has quit [Ping timeout: 260 seconds]
parzo has joined #ruby
micah` has quit [Ping timeout: 260 seconds]
youcallme has quit [Ping timeout: 260 seconds]
<pjb_> is this thing on?
JohnE has joined #ruby
okinomo has quit [Ping timeout: 276 seconds]
thelamest has quit [Ping timeout: 260 seconds]
linux_noob_666 has quit [Ping timeout: 260 seconds]
Gacha has quit [Ping timeout: 260 seconds]
machuga has quit [Ping timeout: 260 seconds]
zoee has quit [Quit: zoee]
<MrZYX> pjb_: no
pyrac has quit [Ping timeout: 260 seconds]
DrCode has joined #ruby
<pjb_> didn't think so.
micah` has joined #ruby
Bira has joined #ruby
mmm has quit [Ping timeout: 252 seconds]
lukec has joined #ruby
Gacha has joined #ruby
dkamioka has quit [Remote host closed the connection]
mmm has joined #ruby
pjb_ has left #ruby [#ruby]
peregrine81 has quit [Ping timeout: 256 seconds]
kpshek has joined #ruby
cascalheira has joined #ruby
shaunbaker has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 268 seconds]
__GG has joined #ruby
BillCriswell has joined #ruby
paul_k has joined #ruby
x0nic has joined #ruby
hatoishi has joined #ruby
peregrine81 has joined #ruby
hatoishi has left #ruby [#ruby]
okinomo has joined #ruby
linux_noob_666 has joined #ruby
machuga has joined #ruby
jibi has joined #ruby
kuzushi has joined #ruby
JohnE has quit [Ping timeout: 245 seconds]
thelamest has joined #ruby
yaymukund has quit [Ping timeout: 276 seconds]
kobain has joined #ruby
Tricon has joined #ruby
cucumbrman has quit [Remote host closed the connection]
<lotherk> can't find it in the documentation, maybe someone in here can tell me if sequel's .where returns nil or something else if it does not find anything?
phantasm66 has joined #ruby
cucumbrman has joined #ruby
<clocKwize> doesn't it return a ResultSet, which will be .empty? and have a count of 0
<clocKwize> .first will be nil
<lotherk> ah, okay!
<clocKwize> why don't you try it
<clocKwize> its 1 line of code
blackratdog has quit [Read error: Connection reset by peer]
<lotherk> not able in the moment
ffranz has joined #ruby
<sevenseacat> try things? bah
<lotherk> just making some thoughts
dkamioka has joined #ruby
<sevenseacat> easier to just ask
<lotherk> sevenseacat: you're dope man.
<lotherk> sevenseacat: i can not try in the moment that's why I'm asking.
Kneferilis has joined #ruby
<lotherk> and I am reading the documentation but it was not clear to me
MrThePlague has joined #ruby
<lotherk> so I'm asking.
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
<lotherk> if you don't want to answer me, why not just stfu?
browndawg has quit [Quit: Leaving.]
<sevenseacat> sorry, i couldnt hear you over the sound of my writing code.
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lotherk> what a joke, I'll laugh later on.
pwh has quit [Quit: pwh]
rins has joined #ruby
mary5030 has joined #ruby
okinomo has quit [Quit: Lost terminal]
nowthatsamatt has joined #ruby
rhys_ has joined #ruby
aagdbl has quit [Ping timeout: 256 seconds]
enebo has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
kuzushi has quit [Quit: Leaving]
okinomo has joined #ruby
colonolGron has joined #ruby
jbpros has quit [Quit: jbpros]
ssvo has joined #ruby
theRoUS has quit [Quit: Leaving]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
theRoUS has joined #ruby
ananthakumaran has joined #ruby
dkamioka has quit [Remote host closed the connection]
bean has joined #ruby
apfelbox has joined #ruby
theRoUS has quit [Client Quit]
Ziarkaen has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
RDash[AW] is now known as RDash
kilophoton has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
shaunbak_ has joined #ruby
tagrudev has quit [Remote host closed the connection]
Xeon06 has joined #ruby
<Xeon06> Hey guys. I'm having trouble looking this up, can anyone tell me more about the :foo syntax? It's kind of like a string literal but internalized or something?
aeontech has joined #ruby
proxie has joined #ruby
quoin has quit [Remote host closed the connection]
azcodex- has quit [Read error: Connection reset by peer]
<MrZYX> pretty much, it'll always have the same object id and won't get garbage collected
elux has joined #ruby
<Buuyo> Xeon06: they're called symbols. the koans actually give you a pretty cood feel for them btw. :)
dhruvasagar has quit [Remote host closed the connection]
<canton7> it's a symbol. There's only ever one instance of a given symbol, ever. This makes comparisons uber-cheap, but creation a little more expensive. They're often used as hash keys, enum values, that sort of thing
<Xeago> Xeon06: pretty much nailed it
<taion809> if the hash is gc'd are the symbols also cleaned up as well?
<canton7> no
<Xeon06> Ahh sounds good. Thanks guys.
<canton7> symbols aren't associated with any hash
pen has joined #ruby
<taion809> alrighty
kindjal has joined #ruby
dhruvasagar has joined #ruby
bleeber has joined #ruby
axl_ has joined #ruby
<canton7> basically: don't create them automatically. Only create them by hand
oliver_ has quit [Ping timeout: 256 seconds]
pentameter has joined #ruby
oliver_ has joined #ruby
pirelenito_ has joined #ruby
<taion809> canton7: i thought so, just wanted to confirm, thanks.
visof has quit [Read error: Operation timed out]
<canton7> coolies
<oliver_> Xeon06: one thing that helped me was to do :foo.object_id
<oliver_> Xeon06: and something like "test".object_id
d2dchat has quit [Remote host closed the connection]
<oliver_> a couple of times
kenneth has joined #ruby
mayday_jay has joined #ruby
parzo has quit [Ping timeout: 276 seconds]
pirelenito has quit [Ping timeout: 268 seconds]
pirelenito_ is now known as pirelenito
<Xeon06> oliver_: right, always the same "instance" for symbols
VTLob has joined #ruby
<oliver_> yeah
awarner has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
huoxito has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
<oliver_> not sure if that helps clear anything up though :P
niklasb has joined #ruby
parzo has joined #ruby
<Xeon06> oliver_: yep, it confirms what I thought. I never knew what it was called though
cj3kim has joined #ruby
<Xeon06> Thanks :)
iamjarvo_ has joined #ruby
<oliver_> =D
lessless has joined #ruby
pushpak has joined #ruby
awarner has joined #ruby
iamjarvo has quit [Ping timeout: 268 seconds]
monkegjinni has joined #ruby
nikeita has quit [Quit: bye bye]
TheMoonMaster has quit [Excess Flood]
cj3kim has quit [Ping timeout: 268 seconds]
Es0teric has joined #ruby
havenwood has quit [Remote host closed the connection]
colonolGron has quit [Quit: Lost terminal]
TheMoonMaster has joined #ruby
havenwood has joined #ruby
dallasm has quit []
kenneth has quit [Ping timeout: 264 seconds]
kenneth has joined #ruby
pirelenito has quit [Read error: Connection timed out]
Es0teric has quit [Client Quit]
okinomo has quit [Quit: Lost terminal]
siwica has joined #ruby
Xeon06 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
rcosta has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
<siwica> I've just compiled and installed Ruby 2.0.0 from Source on Ubuntu 13.04. However running "ruby -v" still gives ruby 1.9.3p194. How can I make ruby point to the latest version on my system?
rcosta has joined #ruby
<snkcld> siwica, what does which `which ruby` say
noopq has quit [Ping timeout: 248 seconds]
spap has joined #ruby
<siwica> snkcld: /usr/local/bin/ruby
<snkcld> when you compiled from source, did you do a `make install` ?
<havenwood> siwica: A nice option in chruby: https://github.com/postmodern/chruby#readme
yaymukund has joined #ruby
Fire-Dragon-DoL has joined #ruby
<havenwood> siwica: Sets the env vars correctly to any Ruby you've built, just point it. ^
pjb1 has joined #ruby
<havenwood> siwica: The usual Ubuntu way for apt installs is to just use update-alternatives.
gr33n7007h has joined #ruby
hogeo has quit [Remote host closed the connection]
<siwica> havenwood: Unfortunately apt doesnt seem to have Ruby 2.0.0 yet
<Xeago> than compile from source
GeissT has quit [Quit: MillBroChat AdIRC User]
<havenwood> siwica: Yeah, if you're compiling yourself chruby is nice. :)
relix has joined #ruby
aeontech has quit [Quit: aeontech]
<sevenseacat> chruby is win
<siwica> ok, I am just in the process of trying chruby :)
Spami has joined #ruby
<havenwood> siwica: The chruby way is to put Rubies in ~/.rubies/ or /opt/rubies/ for autodetection. But you can put them anywhere and just add the dir to RUBIES.
<yaymukund> chruby doesn't use shims? interesting... hmm
<Xeago> yaymukund: rbenv does
<siwica> havenwood: ok, thanks! I just installed it, now need to figure out how it works
<Xeago> chruby manages your path
burlyscudd has joined #ruby
tonni has quit [Remote host closed the connection]
<ghr> Anyone used Elastic Beanstalk? I have a Ruby script that I want to run (it polls SQS queue, parses data and then saves to SimpleDB) but not sure how it would work. Elastic Beanstalk uses passenger, so I guess I just want to load the script in a rackup file?
Alina-malina has quit [Read error: Connection reset by peer]
<yaymukund> interesting, not sure what that means. with rbenv, if I call ruby, it calls a shim that checks for .ruby-version and uses the appropriate ruby
Alina-malina has joined #ruby
<siwica> havenwood: no configuration even needed in my case. 'ruby -v' now gives "ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]"
<siwica> thanks!
<havenwood> siwica: Yay! No prob. ;)
rcosta has quit [Remote host closed the connection]
seo_ has joined #ruby
seo_ has quit [Read error: Connection reset by peer]
justsee has quit [Ping timeout: 264 seconds]
baordog has joined #ruby
wildroman has quit [Remote host closed the connection]
<yaymukund> OH interesting, this is how it uses .ruby-version: https://github.com/postmodern/chruby/blob/master/share/chruby/auto.sh#L25-31
parzo has quit [Ping timeout: 248 seconds]
adambeynon has joined #ruby
<yaymukund> (I think? a bit out of my depth here)
aeontech has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Bira has quit [Remote host closed the connection]
aeontech has quit [Client Quit]
emanon_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
lucazi has quit [Quit: lucazi]
fourq_ has quit [Quit: Connection closed for inactivity]
buibex has quit [Remote host closed the connection]
pjb1 has left #ruby [#ruby]
<mikecmpbll> i don't think i get what chruby is for, is the idea that you can use multiple versions like rvm?
<Xeago> yaymukund: yes that is correct
<yaymukund> not sure if that's much better than a shim
* mikecmpbll feeling stupid
pjb1 has joined #ruby
<Xeago> yaymukund: I don't have a preference between the 2
<Xeago> but on some systems
<Xeago> where one deosn't have bash or zsh, this won't work
<Xeago> whereas rbenv works
wildroman has joined #ruby
baroquebobcat has joined #ruby
wildroman has quit [Remote host closed the connection]
<Xeago> (rvm won't work either)
<sevenseacat> mikecmpbll: yes.
<yaymukund> mikecmpbll: that's right.
<yaymukund> Xeago: ahh, okay. yeah, I dunno. well, interesting approach. I didn't even know preexec_functions was a thing in ZSH!
<mikecmpbll> ah okay, thanks chaps. does anyone do this in production? i've never bothered with any of those ruby managers in production. always compiled from source.
wildroman has joined #ruby
<havenwood> mikecmpbll: Yeah, you can switch between multiple versions of Ruby. Just that chruby is about 100 lines-of-code, a good unix citizen, simple and does one thing really, really well.
<Xeago> mikecmpbll: I use rbenv in production
<havenwood> mikecmpbll: Yeah, common to use chruby in productino.
sambao21 has quit [Quit: Computer has gone to sleep.]
<Xeago> just makes it more declarative for me which version is being run
<mikecmpbll> hmpf.
<havenwood> yaymukund: Instead of making a shim for every executable, chruby actually sets the env vars correctly.
blindrage has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<Xeago> havenwood: that is a big plus
freerobby has quit [Quit: Leaving.]
<yaymukund> havenwood: oh I see, that is nice.
<havenwood> Xeago: Yeah, no need to re-shim, ever!
<waxjar_> chruby's great
justsee has joined #ruby
anonymuse has quit [Ping timeout: 245 seconds]
Cyrus has quit [Quit: Cyrus.sleep()]
<havenwood> mikecmpbll: RVM has a good relationship with chruby, there is actually even chruby support built into RVM if you want to use Mini-RVM (which installs Ruby then uses chruby to select them.)
browndawg has joined #ruby
<havenwood> mikecmpbll: More popular to install Rubies with ruby-install, ruby-build, or compiling yourself than the MRVM way though - partially because MRVM hijacks RUBIES.
vlad_starkov has quit [Ping timeout: 276 seconds]
anonymuse has joined #ruby
* mikecmpbll reads
clocKwize has quit [Quit: clocKwize]
buibex_ has joined #ruby
iamjarvo_ has quit [Ping timeout: 268 seconds]
wallerdev has joined #ruby
ukd1 has joined #ruby
tesuji has quit [Ping timeout: 245 seconds]
corpuscle has joined #ruby
clocKwize has joined #ruby
pairup has joined #ruby
pjb1 has quit [Quit: pjb1]
pjb1 has joined #ruby
randomdrake has joined #ruby
mrsolo has joined #ruby
<yaymukund> thanks, Xeago, havenwood :)
BSaboia has joined #ruby
<sevenseacat> why would you use rvm just for installing rubies :/
pranny has joined #ruby
<havenwood> sevenseacat: People do!
pranny has quit [Client Quit]
<yaymukund> fear of change?
<yaymukund> :p
scarolan has quit [Read error: Operation timed out]
<waxjar_> ruby-install works really smooth
<havenwood> sevenseacat: Prolly only usecase is if its already installed and you have a irrational fear of building.
dkannan has joined #ruby
<sevenseacat> i suppose when you have a hammer, everything looks like a nail
<havenwood> +1 ruby-install :)
<mikecmpbll> haha.
<yaymukund> yeah, ruby-install is nice. do one thing and do it well!
ntus1017 has joined #ruby
mrsolo has quit [Read error: Connection reset by peer]
<sevenseacat> i use ruby-build atm, will get around to switching to ruby-install one day
mrsolo has joined #ruby
<Xeago> what is the benefit again?
<Xeago> not being written in ruby?
<mikecmpbll> i use make :/
<waxjar_> you dont have to install dependencies and whatnot manually
mrsolo has quit [Client Quit]
mrsolo has joined #ruby
scarolan has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
camilasan has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
starfox21 has joined #ruby
<havenwood> Xeago: ruby-install is flexible, extremely lightweight, has tests, and can install any Ruby version (just tell it the type or Ruby, and version, and it goes and finds it).
theRoUS has quit [Quit: Leaving]
nx000bsd has quit [Ping timeout: 240 seconds]
<gregj> is there something like 'bash -x' for ruby ?
<gregj> I want to see every line of code as it executes basically
<gregj> and no, debugger is no god
<gregj> good
<gregj> any ideas ?
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
nx000bsd has joined #ruby
persand has quit [Quit: persand]
camilasa_ has joined #ruby
linux_noob_666 has quit [Remote host closed the connection]
<waxjar_> pry-rescue can do that i believe
<gregj> havenwood: it's not my code
andikr has quit [Remote host closed the connection]
<havenwood> gregj: oh, gotcha
camilasa_ has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
bricker`away has joined #ruby
kayloos has quit [Remote host closed the connection]
stack has left #ruby [#ruby]
alexju_ has joined #ruby
<havenwood> waxjar_: nice, i need to play with pry-rescue more
mark_locklear has quit [Ping timeout: 264 seconds]
<havenwood> waxjar_: been meaning to checkout pry-bye_bug more closely too
ssvo has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
ffranz has quit [Quit: Leaving]
pwh has joined #ruby
alex__c2022 has joined #ruby
schaerli has joined #ruby
shunt has joined #ruby
jdolitsky1 has joined #ruby
<havenwood> sure wish my Clojure repl was anywhere as nice as Pry!
sayan has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
camilasan has joined #ruby
alexju has quit [Ping timeout: 264 seconds]
|jemc| has joined #ruby
quoin has joined #ruby
lessless has quit [Remote host closed the connection]
banisterfiend has joined #ruby
siwica has quit [Quit: siwica]
ffranz has joined #ruby
burlyscudd has quit [Quit: Leaving.]
ssvo has quit [Ping timeout: 245 seconds]
ibiwan has joined #ruby
tkuchiki has joined #ruby
randym_ has joined #ruby
peregrine81 has quit []
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
alexju has joined #ruby
alup has quit [Quit: Leaving]
quoin has quit [Ping timeout: 264 seconds]
alexju_ has quit [Read error: Connection reset by peer]
<waxjar_> puts is still my way of debugging :P
ibiwan has left #ruby [#ruby]
<Xeago> "I would have asked lasse about this but I didn't have Lasses' contact details" is that correct
<Xeago> his name is Lasse
<Xeago> ?
aganov has quit [Remote host closed the connection]
dorei has joined #ruby
ehaliewicz has joined #ruby
<dorei> If I define_method a method that already exists, does it replace the existing one?
<|jemc|> yes
<dorei> thanx :)
<|jemc|> np
<|jemc|> if you want to keep the old method and call it from within the new one, you have to alias the old one first
carraroj has joined #ruby
wildroman has quit [Remote host closed the connection]
cj3kim has joined #ruby
LoRe has left #ruby [#ruby]
peregrine81 has joined #ruby
threeturn has quit [Quit: threeturn]
sambao21 has joined #ruby
macmartine has joined #ruby
rippa has joined #ruby
wildroman has joined #ruby
geggam has joined #ruby
mark_locklear has joined #ruby
ewnd9 has quit [Ping timeout: 264 seconds]
wildroman has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 256 seconds]
zeade has joined #ruby
maletor has joined #ruby
wildroman has joined #ruby
kenneth has quit [Ping timeout: 245 seconds]
cj3kim has quit [Ping timeout: 245 seconds]
kenneth has joined #ruby
browndawg has joined #ruby
mikepack has joined #ruby
kraljev2 has quit [Ping timeout: 256 seconds]
<waxjar_> Xeago: would be Lasse's, no? ' at the end is only for names that end in an s-sound
<Xeago> hmm, yea
<Xeago> thanks!
<Xeago> always confused by this :\
agjacome has quit [Ping timeout: 264 seconds]
sayan has quit [Read error: Connection reset by peer]
<Xeago> waxjar_: sorry to ask you again
<Xeago> is "About monday, around what time should I come in, 0900?" proper english?
<Xeago> starting at my Spotify on monday
<Xeago> and unsure when to be there
carraroj has quit [Ping timeout: 245 seconds]
<yaymukund> What time should I come in on Monday? Is 9am okay?
<waxjar_> seems right to me, i think "9 AM" would be preferred though.
<yaymukund> that's how I'd phrase it. and congrats
<Xeago> thanks yaymukund
_maes_ has joined #ruby
camilasan has quit [Remote host closed the connection]
<Xeago> the recipient is swedish
<Xeago> I'm dutch
<yaymukund> the commas are a bit weird. If you want to stick with that, you can say "About monday, around what time should I come in? 0900?"
<waxjar_> me too :D
<yaymukund> haha, and I'm US. so maybe I am not the best person to ask!
<yaymukund> errr, to respond*
<Xeago> waxjar_: how would you note the time?
<|jemc|> >> Time.now
<eval-in> |jemc| => 2013-09-12 18:03:26 +0200 (https://eval.in/48091)
<|jemc|> heheh
<yaymukund> hahaha
pel_daniel has joined #ruby
<yaymukund> >> Time.now.to_i
<eval-in> yaymukund => 1379001823 (https://eval.in/48093)
<waxjar_> 9.00 for europeans
<waxjar_> 9 am for the brits and americans
julweber has quit [Remote host closed the connection]
beneggett has joined #ruby
burlyscudd has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
buibex_ has quit [Remote host closed the connection]
fredjean has joined #ruby
dkannan has quit [Quit: dkannan]
monkegjinni has quit [Remote host closed the connection]
greengriminal has quit [Quit: Leaving]
Spami has joined #ruby
Spami has joined #ruby
pwh has quit [Quit: pwh]
akemrir has quit [Quit: WeeChat 0.4.1]
quoin has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
jdeeburke has quit [Quit: Leaving.]
ssvo has joined #ruby
bricker`away has quit [Ping timeout: 245 seconds]
bricker`1way has joined #ruby
d2dchat has joined #ruby
jdeeburke has joined #ruby
jdeeburke has quit [Max SendQ exceeded]
siwica has joined #ruby
jdeeburke has joined #ruby
Davey has joined #ruby
freerobby has joined #ruby
apfelbox has quit [Remote host closed the connection]
haxrbyt__ has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
apfelbox has joined #ruby
rickmasta has quit [Quit: Leaving...]
haxrbyte_ has quit [Read error: Connection reset by peer]
predator217 has quit [Ping timeout: 260 seconds]
tonni has joined #ruby
brianpWins has joined #ruby
rickmasta has joined #ruby
<rdark> >> Time.now.to_f
<eval-in> rdark => 1379002502.134617 (https://eval.in/48096)
clocKwize has quit [Quit: clocKwize]
predator117 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
varfoo has quit [Ping timeout: 264 seconds]
filipe has quit [Read error: Connection reset by peer]
emanon_ has joined #ruby
vlad_starkov has joined #ruby
emanon_ has quit [Remote host closed the connection]
tacos1de has joined #ruby
schaerli has quit [Remote host closed the connection]
apfelbox has quit [Ping timeout: 256 seconds]
noopq has joined #ruby
schaerli has joined #ruby
kraljev2 has joined #ruby
<kraljev2> What is the most simple way to convert 27-element array to 3x3x3 array
<kraljev2> or 18-element array to 3x2x3 array
<avril14th> split ?
<avril14th> or no
Voodoofish430 has joined #ruby
<kraljev2> Array#split, no such thing
vlad_starkov has quit [Ping timeout: 260 seconds]
shaunbak_ has quit [Remote host closed the connection]
jlast has joined #ruby
<mikecmpbll> avril14th: probably each_slice or something
<avril14th> [1,2,3,4,5,6][1..3]
<avril14th> >>[1,2,3,4,5,6][1..3]
<eval-in> avril14th => [2, 3, 4] (https://eval.in/48097)
<mikecmpbll> if you could gist a input and output arrays it would make it clearer.
<avril14th> >>[[1,2,3,4,5,6][0..2],[1,2,3,4,5,6][3..5]]
<eval-in> avril14th => [[1, 2, 3], [4, 5, 6]] (https://eval.in/48098)
<avril14th> like that
<mikecmpbll> ah okay
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
tk_ has quit [Quit: ばいばい]
tiglog has joined #ruby
<|jemc|> there's also #chunk, if you need to dynamically determine the size of each slice by the contents of the array
<|jemc|> it's a little cumbersome otherwise
lukec has quit [Quit: lukec]
schaerli has quit [Remote host closed the connection]
pwh has joined #ruby
timonv has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
Catbuntu has joined #ruby
<mikecmpbll> >>[1,2,3,4,5,6,7,8,9,10].each_slice(3).to_a
<eval-in> mikecmpbll => [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10]] (https://eval.in/48099)
<mikecmpbll> avril14th^
<avril14th> :)
<avril14th> yeah that's nicer
<mikecmpbll> TIL that there's a method in rails called in_groups_of which does the same but with padding
tjad has quit [Ping timeout: 264 seconds]
<mikecmpbll> so the last group would be [10, nil, nil] or something
freerobby has quit [Quit: Leaving.]
<kraljev2> [1,2,3,4,5,6,7,8] => [[[1,2],[3,4]],[[5,6],[7,8]]]
Bira has joined #ruby
<kraljev2> this is one 8-array to 2x2x2-array
Bira has quit [Remote host closed the connection]
chris___ has joined #ruby
<mikecmpbll> hmpf.
<chris___> Hi All. Holy crap, it takes 2.1 seconds for the SimpleDelegator to wrap 100 objects???!!!
niklasb has quit [Read error: Connection reset by peer]
<mikecmpbll> >> [1,2,3,4,5,6,7,8].each_slice(2).each_slice(2).to_a
<eval-in> mikecmpbll => [[[1, 2], [3, 4]], [[5, 6], [7, 8]]] (https://eval.in/48100)
<mikecmpbll> :)
Eiam has joined #ruby
anderson has joined #ruby
shaunbaker has joined #ruby
mwmnj has joined #ruby
mwmnj has quit [Client Quit]
<kraljev2> >> (1..16).each_slice(2).each_slice(2).each_slice(2).to_a
<eval-in> kraljev2 => [[[[1, 2], [3, 4]], [[5, 6], [7, 8]]], [[[9, 10], [11, 12]], [[13, 14], [15, 16]]]] (https://eval.in/48101)
<mikecmpbll> mind blown.
<kraljev2> :) yep
goshakkk has joined #ruby
zorg24 has joined #ruby
Stygia has quit [Read error: Connection reset by peer]
tungd has joined #ruby
saarinen has joined #ruby
Bry8Star{T2 has joined #ruby
ssvo_ has joined #ruby
saarinen has quit [Client Quit]
freerobby has joined #ruby
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banghouse2 has joined #ruby
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
bigoldrock has joined #ruby
saarinen has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
moted has quit [Quit: moted]
moted has joined #ruby
<havenwood> chris___: You outta see how long it takes ComplicatedDelegator!
ssvo_ has quit [Ping timeout: 264 seconds]
lfox has quit [Quit: ZZZzzz…]
BSaboia has quit [Ping timeout: 268 seconds]
T_T has joined #ruby
noname001 has quit [Read error: Operation timed out]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
anonymuse has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
anonymuse has joined #ruby
zeel has quit [Quit: jailbot]
rcosta has joined #ruby
spap has quit []
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
alekst has quit [Quit: Computer has gone to sleep.]
shaunbaker has quit [Remote host closed the connection]
dancardamore has joined #ruby
tiglog has quit [Quit: Leaving]
tungd has quit [Quit: leaving]
gr33n7007h has quit [Read error: Operation timed out]
tungd has joined #ruby
rcosta has quit [Remote host closed the connection]
noname001 has joined #ruby
freerobby has quit [Quit: Leaving.]
pjb1 has quit [Quit: pjb1]
tyman has joined #ruby
visof has joined #ruby
brak_dr0neb0mber has joined #ruby
burlyscudd has quit [Quit: Leaving.]
banisterfiend has quit [Quit: Computer has gone to sleep.]
oliver_ has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
jibi has quit [Quit: .]
scarolan has quit [Ping timeout: 256 seconds]
ehaliewicz has quit [Ping timeout: 264 seconds]
nari has quit [Ping timeout: 256 seconds]
timonv has joined #ruby
spider-mario has joined #ruby
werdnativ has joined #ruby
noname001 has quit [Ping timeout: 245 seconds]
tungd has quit [Quit: leaving]
RichardBaker has joined #ruby
tungd has joined #ruby
chrisja has joined #ruby
tungd has quit [Client Quit]
banisterfiend has joined #ruby
tungd has joined #ruby
kidoz has joined #ruby
vaicine has quit [Quit: leaving]
mercwithamouth has joined #ruby
burlyscudd has joined #ruby
iliketurtles has joined #ruby
pwh has quit [Quit: pwh]
bigoldrock has quit [Ping timeout: 260 seconds]
nemesit|znc has quit [Ping timeout: 276 seconds]
ephemerian has quit [Quit: Leaving.]
rickmasta has quit [Quit: Leaving...]
dhruvasagar has quit [Ping timeout: 264 seconds]
lfox has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Guest78458 is now known as duracrisis
duracrisis has quit [Changing host]
duracrisis has joined #ruby
nemesit|znc has joined #ruby
nemesit|znc has quit [Max SendQ exceeded]
julweber has joined #ruby
nemesit|znc has joined #ruby
julweber has quit [Remote host closed the connection]
apeiros has joined #ruby
troessner has quit [Quit: Leaving]
badquanta has quit [Remote host closed the connection]
tylersmith has joined #ruby
quoin has joined #ruby
kaldrenon has quit [Remote host closed the connection]
kaldrenon has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
dankest has joined #ruby
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
alekst has joined #ruby
freerobby has joined #ruby
HelloHello has joined #ruby
Xeago has quit [Remote host closed the connection]
kaldrenon has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
twoism has joined #ruby
Davey has joined #ruby
burlyscudd has quit [Quit: Leaving.]
twoism has quit [Remote host closed the connection]
Andrevan has joined #ruby
twoism has joined #ruby
burlyscudd has joined #ruby
KobraKao has joined #ruby
girija has joined #ruby
havenwood has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 264 seconds]
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
tatsuya_o has quit [Remote host closed the connection]
havenwood has joined #ruby
kaldrenon has joined #ruby
dodosan has joined #ruby
yacks has quit [Ping timeout: 256 seconds]
DanKnox_away is now known as DanKnox
yxhuvud has joined #ruby
darrik has joined #ruby
macmartine has joined #ruby
skaflem has quit [Quit: Leaving]
kindjal has joined #ruby
rupee has joined #ruby
KobraKao has quit [Ping timeout: 260 seconds]
schaerli has joined #ruby
obs has quit [Quit: Konversation terminated!]
havenwood has quit [Ping timeout: 256 seconds]
dodosan has quit [Ping timeout: 240 seconds]
cody-- has quit [Quit: Computer has gone to sleep.]
KobraKao has joined #ruby
BostonMA1776 has joined #ruby
crus has quit [Read error: Connection reset by peer]
rupee has quit [Client Quit]
razi has joined #ruby
KobraKao has quit [Client Quit]
kpshek has quit []
EricArchitrave has joined #ruby
jdeeburke has quit [Quit: Leaving.]
cmarques_ has quit [Remote host closed the connection]
cody-- has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
codecop has joined #ruby
schaerli has quit [Remote host closed the connection]
oliver_ has joined #ruby
knigitz has quit [Ping timeout: 264 seconds]
kpshek has joined #ruby
Tuxist has joined #ruby
kayloos has joined #ruby
Collin has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
wildroman has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
ssvo_ has joined #ruby
JohnBat26 has joined #ruby
brak_dr0neb0mber has left #ruby ["asdfasdf"]
newUser1_ has joined #ruby
c0rn has joined #ruby
vlad_starkov has joined #ruby
hanmac has joined #ruby
badquanta has joined #ruby
lotherk has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
Yakko has joined #ruby
jdeeburke has joined #ruby
ssvo_ has quit [Ping timeout: 264 seconds]
jdeeburke has quit [Max SendQ exceeded]
jdeeburke has joined #ruby
tvw has quit []
lotherk has joined #ruby
sayan has joined #ruby
apfelbox has joined #ruby
tungd has quit [Quit: Lost terminal]
vlad_starkov has quit [Ping timeout: 260 seconds]
kidoz has quit [Quit: Ухожу я от вас]
schaerli has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
wildroman has joined #ruby
dhruvasagar has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
Catbuntu has quit [Quit: Leaving]
alekst has joined #ruby
oliver_ has quit [Remote host closed the connection]
spap has joined #ruby
apfelbox has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
premera has joined #ruby
ehc has quit [Quit: ehc]
mmitchel_ has joined #ruby
ehc has joined #ruby
<premera> when I run on linux "rails s -p 80 -d", there are some messages printed on the console before the process goes into background, where is standard out after rails goes into background ?
<hanmac> premera: #rubyonrails
<premera> thx
sayan has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
mmitchell has quit [Ping timeout: 245 seconds]
burlyscudd has quit [Quit: Leaving.]
visof has quit [Ping timeout: 276 seconds]
Monie has joined #ruby
jaimef has quit [Excess Flood]
iliketurtles has quit [Quit: zzzzz…..]
seoNinjaWarrior has joined #ruby
<seoNinjaWarrior> hello. is there anyone i could hire for a few minutes to explain how ruby thead queues work? I've been researching this for hours now and I just don't get it and it's only like 5 lines of code
kraljev2 has quit [Read error: Connection reset by peer]
kraljev2 has joined #ruby
<seoNinjaWarrior> I think if i could Skype with someone on the phone for a few minutes and pay for their time I'd have it down
sayan has joined #ruby
freerobby has joined #ruby
nomenkun has joined #ruby
justsee has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
lotherk has quit [Ping timeout: 264 seconds]
<dorei> why dont you just post your question jere?
kpshek has quit []
iliketurtles has joined #ruby
<seoNinjaWarrior> ok, i'll try
iliketurtles has quit [Max SendQ exceeded]
<seoNinjaWarrior> i'm not sure i understand it well enough to ask a well formed questioned
Bira has joined #ruby
iliketurtles has joined #ruby
tkuchiki has joined #ruby
saarinen has quit [Quit: saarinen]
rdark has quit [Quit: leaving]
<seoNinjaWarrior> so if you add rock = rock_queue.pop(true); rock.bounce
<seoNinjaWarrior> aerrr
<seoNinjaWarrior> i was trying to edit and i hit enter by mistake
jaimef has joined #ruby
ssvo_ has joined #ruby
Pent has left #ruby [#ruby]
vlad_starkov has joined #ruby
chris___ has quit [Ping timeout: 250 seconds]
Yakko has quit [Remote host closed the connection]
endash has joined #ruby
kpshek has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
kilophoton has quit [Ping timeout: 268 seconds]
<seoNinjaWarrior> there we go
JimmyNeutron has joined #ruby
<apeiros> seoNinjaWarrior: why ad-ridden pastebin when there's ad-free and better solutions like gist.github.com?
<Eiam> obvious way to convert two fixnum into an array of two fixnum?
JimmyNeutron has quit [Client Quit]
ssvo_ has quit [Ping timeout: 245 seconds]
<apeiros> Eiam: [fixnum, fixnum] ?
<Eiam> apeiros: =/ seriously?
* Eiam looks at his string of failures
<apeiros> Eiam: seriously, why not?
<Eiam> mother f, it works
<Eiam> lol
<apeiros> unless I misunderstand your question…
<Eiam> i've got split, to_a %w..
io_syl has joined #ruby
<Eiam> apeiros: no, it works.
<apeiros> Eiam: wth?
<apeiros> [] is the array literal
<Eiam> apeiros: yes! sometimes I'm over thinking it!
<apeiros> Eiam: no wonder you think ruby is confusing!
<Eiam> lol shush
<Eiam> I didn't say it was confusing
<Eiam> I said it had some inconsistencies =)
banisterfiend has quit [Quit: Computer has gone to sleep.]
<seoNinjaWarrior> lol
<apeiros> eh, if you'd said "some", I'd have even agreed :-p
kraljev2 has left #ruby [#ruby]
twoism_ has joined #ruby
<apeiros> seoNinjaWarrior: you're missing at least one end
<apeiros> you open things at line 11, 12, 13
<seoNinjaWarrior> my bad
<apeiros> you only close at 16, 17
<seoNinjaWarrior> add end between 15 and 16
<seoNinjaWarrior> it should work, but i don't understand why
<apeiros> seoNinjaWarrior: just edit the gist. it even has a history then ;-p
<seoNinjaWarrior> ty apeiros
shaunbaker has joined #ruby
<seoNinjaWarrior> i'm learning two cool new things now, lol
quoin has joined #ruby
twoism has quit [Read error: Connection reset by peer]
<apeiros> oh, and sizzle vs. sizzle! - bugs out
saarinen has joined #ruby
<seoNinjaWarrior> yeah i didn't actually test this, i should have :/
<seoNinjaWarrior> so no !
<seoNinjaWarrior> lol
swordsmanz has quit [Ping timeout: 264 seconds]
girija has quit [Ping timeout: 245 seconds]
<apeiros> I can't reproduce what you claim
<apeiros> prints "I'm sizzling, eat me" once, then raises an exception as expected
ananthakumaran has quit [Quit: Leaving.]
<seoNinjaWarrior> ok one second :/
twoism_ has quit [Ping timeout: 256 seconds]
<apeiros> seoNinjaWarrior: btw., ruby convention would be ChunkyBacon, not Chunky_bacon
<seoNinjaWarrior> oh so for classes no snake case
<apeiros> (CamelCased constants, snaked_cased other variables)
<seoNinjaWarrior> thanks :)
quoin has quit [Ping timeout: 246 seconds]
rupee has joined #ruby
<apeiros> yeah, constants actually. though there are many who use SCREAMING_CONSTANTS and special case constants which reference modules/classes
tatsuya_o has joined #ruby
Ziarkaen has quit [Read error: Connection reset by peer]
<seoNinjaWarrior> ok I see!!!! TY TY TY apeiros, attempting it to formulate a question for someone else helped out tremendously, lol
<setient> hi how is everyone
interactionjaxsn has quit [Remote host closed the connection]
<apeiros> seoNinjaWarrior: not uncommon ;-)
<setient> i had a question about deploying a new rails app. more like which version of rails should we use (3.2.14 or 4.0) and should we use rvm, the ruby that comes with the system (is there something newer than rvm)
jibi has joined #ruby
interactionjaxsn has joined #ruby
<seoNinjaWarrior> plus i got gist hub and correct constants naming convention :)
jefflyne3 has quit [Ping timeout: 256 seconds]
indstry has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<apeiros> seoNinjaWarrior: I think pry can gist directly. never used it myself, though. but Banistergalaxy surely will show you how :)
ananthakumaran has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ananthakumaran has quit [Max SendQ exceeded]
jefflyne3 has joined #ruby
solrize has joined #ruby
<seoNinjaWarrior> ok so one more question
<seoNinjaWarrior> i think
<seoNinjaWarrior> I'm using an example similar to this: http://www.ruby-doc.org/stdlib-2.0/libdoc/thread/rdoc/Queue.html
azcodex has joined #ruby
<seoNinjaWarrior> i have 50 threads running all creating database calls
<xybre> setient: use RVM or similar, the system ruby is almost certainly out of date and probably different on different systems.
<seoNinjaWarrior> i'm going to que those calls and then run them one at a time
interactionjaxsn has quit [Ping timeout: 240 seconds]
blackmesa has quit [Quit: WeeChat 0.4.1]
<xybre> setient: 4.0 has been out for a little while now and all the new gems and development energy is going into 4.0 so you probably should use that.
<seoNinjaWarrior> errr i'm confused, never mind me, i'll formulate a better question and come back
<xybre> setient: for a second opinion, ask in the #rubyonrails channel :)
cads2 has joined #ruby
DonRichie has joined #ruby
carraroj has joined #ruby
solrize has quit [Ping timeout: 260 seconds]
alvaro_o has joined #ruby
interactionjaxsn has joined #ruby
rrichardsr3 has joined #ruby
rafacv has joined #ruby
nomenkun has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
tatsuya_o has quit [Remote host closed the connection]
Catbuntu has joined #ruby
<seoNinjaWarrior> if i have a set of 50 threads constantly sending queires to the database, i can't have them hit the database as they update because bad things happen (everything crashes). So if I create a que for database queries and process them, that should fix the issue. Question is how to process that que? This is a job that will take days to complete so I want the que to be processed as they get added. Should I create another thread for processing the database
<seoNinjaWarrior> que? Or is there a better way to do this?
BillCriswell has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<apeiros> queue, not que
bluOxigen has joined #ruby
<seoNinjaWarrior> queue*
<seoNinjaWarrior> thanks
<apeiros> more vowels for the win
kindjal has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
tonni has quit [Remote host closed the connection]
g0bl1n has joined #ruby
<seoNinjaWarrior> other than the typo, did the question make sense?
end_guy has joined #ruby
<seoNinjaWarrior> misspelling* not typo
<setient> thanks xybre
<xybre> Queue is a funny word. But yeah. Either make your queries more efficient, or you could use Resque/Sidekiq to queue up large queires. Or the better solution would be to set up master/slave database replication and run queries on the slaves.
d2dchat has quit [Remote host closed the connection]
razi has quit [Quit: Leaving.]
<seoNinjaWarrior> i'm just gathering info on domains i might want to purchase from go daddy auctions so i don't wan a get too elaborate, just something simple and quick
ephemerian has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<seoNinjaWarrior> ok thanks i think i got this
<seoNinjaWarrior> you guys are awesome
carraroj has quit [Read error: Connection reset by peer]
alekst has quit [Quit: Computer has gone to sleep.]
solrize has joined #ruby
Jonki has joined #ruby
dodosan has joined #ruby
noopq has quit [Ping timeout: 256 seconds]
sailias has quit [Quit: Leaving.]
<geggam> so... i have ri installed but when i attempt to use it i get no love
tkuchiki has quit [Remote host closed the connection]
<apeiros> might be because that's not ri's purpose…
maletor has joined #ruby
Jonki has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
<geggam> ri String
<geggam> Nothing known about String
<apeiros> did you install ruby via rvm?
vlad_sta_ has joined #ruby
<geggam> apt-get install apeiros
zorg24 has quit [Ping timeout: 264 seconds]
<geggam> on debian
EricArchitrave has quit [Quit: Leaving.]
<apeiros> then you have to ask on #debian what the docs package is for ruby
<xybre> geggam: ri gives you info on *methods* not classes
<apeiros> xybre: wrong
<xybre> Well, the same thing happens here
<apeiros> ri very well gives you information on both, classes and methods
vlad_starkov has quit [Read error: Connection reset by peer]
<xybre> With RVM Ruby 2.0
<apeiros> xybre: rvm docs generate
Monie has joined #ruby
<geggam> also installed every doc with ruby attached apeiros
<geggam> package
apfelbox has joined #ruby
<apeiros> geggam: well, obviously the one you'd need is missing
<geggam> so im curious... i would thing string would be part of the default ri ?
wildroman has quit [Remote host closed the connection]
* xybre runs it
<apeiros> and since apt packages stuff like whatever the fuck it pleases, I'd consider that an apt problem.
<geggam> i would agree .... so running ri string is the correct way ?
end_guy has quit [Ping timeout: 240 seconds]
noopq has joined #ruby
jdolitsky1 has quit [Quit: Leaving.]
<apeiros> `ri String`, yes
<apeiros> `ri string` no
<apeiros> case matters
DonRichie has quit [Quit: Verlassend]
<apeiros> but you pasted ri String before so I guess that's what you did.
<xybre> Well, in all fairness I always just use pry for documentation, plus apidock and rubydocs.
Spami__ has joined #ruby
oliver_ has joined #ruby
<apeiros> xybre: you're a ruby padawan :-p
<geggam> i am getting close... its wierd ri is installed and looking in directories that do not exist
<xybre> apeiros: Using pry to look at the source code is better than ri docs anyway :p
tatsuya_o has joined #ruby
<apeiros> xybre: only if you're already in pry
clocKwize has joined #ruby
<apeiros> and even then, I had pry mess up my console
cascalheira has quit [Quit: Leaving...]
<xybre> I'm pretty much always in pry
<apeiros> I doubt it's pry's fault, but still
HelloHello has quit [Quit: Leaving]
<xybre> Yeah, if you kill pry in some situations it'll leave thigns in a weird state
jdolitsky1 has joined #ruby
<xybre> Running reset or resetting your console fixes it.
<geggam> im doing a silly class for work and the class wants me to run ri... its really annoying that i can find documentation faster with google
apfelbox has quit [Ping timeout: 264 seconds]
kirun has joined #ruby
pwh has joined #ruby
<Morrolan> Just pretend you ran it, and if it asks for what it showed, answer by looking at web-based docs. ;D
<apeiros> geggam: you can't find documentation faster with google.
zeade has quit [Quit: Leaving.]
<geggam> interesting... how do you know my experiences ?
zeade has joined #ruby
* geggam looks for cameras
timonv has joined #ruby
<Morrolan> apeiros: Well, if `ri` doesn't work for him (for whatever reasons) then that is the case. :P
<apeiros> geggam: physics
alekst has joined #ruby
<apeiros> geggam: you can't potentially beat `ri String` with google
<apeiros> not even if you click the "I'm feeling lucky" button and actually get lucky.
<geggam> i can if it doesnt work :)
<apeiros> geggam: that's a broken premise
azcodex has quit [Read error: Connection reset by peer]
<r0bglees0n> ri is a waste of time
<apeiros> and then it's "I can google faster than use a broken installation".
Astralum has joined #ruby
<geggam> correct apeiros
<geggam> broken by design or broken by operator error is what im figuring out now
<geggam> i generally blame operators
<apeiros> and wow, yeah, sure. but no! you can't! if your browser is broken and your wifi doesn't work and you're on a 3600 baud internet connection and whatever else could go wrong!
<apeiros> I can make arbitrary broken premises too…
<Morrolan> MrZYX: Call pest control, there's another hornet nest. After editors, ruby version managers and Rails we also have doc tools. :D
burlyscudd has joined #ruby
dkamioka has joined #ruby
<MrZYX> hm
<MrZYX> I had the slight hope yard is universally accepted by now
* Morrolan snickers
<apeiros> *shrug*, yri if you please. fine with that.
<apeiros> still better than googling, getting docs for another version of ruby and be all "wtf?"
<r0bglees0n> how about
<r0bglees0n> ? String
<r0bglees0n> if you want offline documentation
<r0bglees0n> using (y)ri to try learn ruby will be a bad experience
zorg24 has joined #ruby
<apeiros> r0bglees0n: I disagree. worked fine for me.
<Morrolan> I prefer HTML documentation over the CLI-based docs when it comes to reading a lot.
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<r0bglees0n> maybe it's a good way to avoid reading blog posts etc
<apeiros> Morrolan: sure. as long as you don't google it.
<dorei> does each thread has its own copy of $1, $2, etc ?
<r0bglees0n> dorei: ye
<apeiros> dorei: I think newer rubies do that
<apeiros> I think it even goes beyond that. they are even stack-frame local I think.
<r0bglees0n> i think the rubinius site has a piece on that
julweber has joined #ruby
echevemaster has joined #ruby
shaunbaker has quit [Remote host closed the connection]
nomenkun has joined #ruby
burlyscudd has quit [Ping timeout: 246 seconds]
* geggam still has a robotics 36k in the shrink wrapped package if anyone is interested apeiros
<geggam> :)
<xybre> dorei: yes, check ou the latest Programming Ruby book, they explain it in more detail if you want
<geggam> just in case
<r0bglees0n> they're "pseudo variables"
indstry has quit [Remote host closed the connection]
tvw has joined #ruby
burlyscudd has joined #ruby
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
vlad_sta_ has quit [Remote host closed the connection]
iamjarvo has quit [Remote host closed the connection]
quando has joined #ruby
carraroj has joined #ruby
<r0bglees0n> if i understand that right they're local variables that have the same $ prefix as a global.
adeponte has joined #ruby
<apeiros> they're C functions
<apeiros> in MRI that is
<geggam> oddlly enough it was operator error... i was using ruby 1.9 and ri 1.8 was default
<geggam> version manager problem
<geggam> :D
<r0bglees0n> apeiros: yeah, but as far as scoping rules go I believe they're like local variables?
<apeiros> r0bglees0n: no
<apeiros> lvars aren't thread local
<apeiros> they're really their own thing
<r0bglees0n> neither are pseudo variables.
<apeiros> if you call $1-$9 pseudo-variables, then yes, they are
Targen has quit [Ping timeout: 276 seconds]
<r0bglees0n> rubinius article calls them "global pseudo variables"
alex__c2022 has quit [Quit: alex__c2022]
__GG has quit [Quit: Leaving.]
<r0bglees0n> and makes a distinction between them and thread local globals
<apeiros> not arguing about the term
sayan has quit [Ping timeout: 240 seconds]
snath has joined #ruby
hanmac has quit [Quit: Leaving.]
macmartine has quit [Ping timeout: 264 seconds]
wildroman has joined #ruby
agjacome has joined #ruby
threeturn has joined #ruby
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
jlast_ has joined #ruby
Collin has quit [Ping timeout: 264 seconds]
carraroj has quit [Quit: Konversation terminated!]
yekta has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
failshell has quit [Ping timeout: 264 seconds]
azcodex has joined #ruby
roninn has quit [Ping timeout: 246 seconds]
alex__c2022 has joined #ruby
cascalheira has joined #ruby
azcodex has quit [Read error: Connection reset by peer]
alexju has quit [Read error: Connection reset by peer]
azcodex has joined #ruby
alexju has joined #ruby
rafacv has quit [Remote host closed the connection]
jlast has quit [Read error: Operation timed out]
Davey has joined #ruby
|jemc| has quit [Read error: Operation timed out]
sailias has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
saarinen has quit [Quit: saarinen]
RichardBaker has quit [Quit: RichardBaker]
optimusprimem has joined #ruby
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
quoin has joined #ruby
chriskk has joined #ruby
kvirani has quit [Remote host closed the connection]
kilophoton has joined #ruby
cj3kim has quit [Remote host closed the connection]
pwh has quit [Quit: pwh]
Fire-Dragon-DoL has quit [Quit: Leaving.]
jprovazn has quit [Quit: Odcházím]
quoin has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
c0rn has quit [Quit: Computer has gone to sleep.]
kilophoton has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
banisterfiend has joined #ruby
jibi has quit [Read error: Connection reset by peer]
jprovazn has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
jprovazn has quit [Remote host closed the connection]
mmitchell has joined #ruby
EricArchitrave has joined #ruby
|jemc| has joined #ruby
Fraeon has quit [Quit: Lost terminal]
carraroj has joined #ruby
kvirani has joined #ruby
whatacollapse has joined #ruby
<whatacollapse> what's this def File.open(*args)
<whatacollapse> i mean *args
ukd1 has quit [Remote host closed the connection]
<xybre> whatacollapse: its called a "splat"
<whatacollapse> that helped me a lot
<whatacollapse> Not.
<|jemc|> args becomes an array of all passed arguments
<xybre> Okay well I was typing up a better explanation.
<xybre> I suggest you google it now.
end_guy has joined #ruby
<whatacollapse> xybre: sorry i just overreacted :/
<beneggett> don't be an impatient prick man
<|jemc|> >> def foo(*args); puts args.inspect; end; foo(5,32,'what',keyword:'arg')
<eval-in> |jemc| => [5, 32, "what", {:keyword=>"arg"}] ... (https://eval.in/48127)
<beneggett> no one here is obligated to give you any help
kilophoton has joined #ruby
<apeiros> beneggett: while he was impolite, it's unnecessary to continue on your side with an insult. please refrain from that.
apfelbox has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
Guest39332 has quit [Remote host closed the connection]
carraroj has joined #ruby
Michael has joined #ruby
khushildep has quit [Ping timeout: 264 seconds]
pumper has quit [Remote host closed the connection]
Michael is now known as Guest85778
<beneggett> apeiros: sure I could have been more politically correct
<xybre> But seriously, googling "ruby splat" brings up this article: http://endofline.wordpress.com/2011/01/21/the-strange-ruby-splat/
ehaliewicz has joined #ruby
<xybre> Its the first hit here on both google and duckduckgo.
<whatacollapse> xybre: but that one is complicated
bean has quit [Quit: Computer has gone to sleep.]
Evixion has joined #ruby
ntus1017 has quit [Remote host closed the connection]
pyx has joined #ruby
pyx has quit [Changing host]
pyx has joined #ruby
fourq_ has joined #ruby
pyx has quit [Client Quit]
<whatacollapse> beneggett: this one is cool thx
alexju has quit [Read error: Connection reset by peer]
<ravster> academic question - Is array.pop more efficient than array.shift?
alexju has joined #ruby
<xybre> beneggett: Thats a good link :)
RichardBaker has joined #ruby
apfelbox has quit [Read error: Operation timed out]
Catbuntu has quit [Quit: Leaving]
eregon_ has quit [Ping timeout: 245 seconds]
yekta has quit [Quit: yekta]
cj3kim has joined #ruby
starfox21 has quit [Quit: starfox21]
<ravster> I see in the docs that shift moves everything down by one, but am unsure if that is just an index re-numbering or it actually moves things around.
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
<xybre> ravster: looking at the srouce code, I'm thinking "pop"
<canton7> yeah, it's the same operation as pop, but at the other end
sayan has quit [Read error: Connection reset by peer]
<ravster> oh wow, yeah. pop seems better to use.
<canton7> push is to pop as unshift is to shift
jdeeburke has left #ruby [#ruby]
<ravster> thanks xybre
eregon has joined #ruby
<canton7> really depends what end you want to take the element off
<xybre> They're both C functions, but `pop` is much simpler in C. I'm not sure which is going to be more efficient when compiled down, but I'm still 99% sure `pop` is going to be faster.
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
<canton7> stack = push+pop. queue = unshift + pop *or* push + shift
<quando> Anyone familiar with Jekyll? Trying to use rake to create a new page, but getting a"Don't know how to build task 'page'" error
<canton7> and yeah, purely in performance perms, pop is always going to win
<canton7> *terms
<apeiros> o0
decoponio has quit [Quit: Leaving...]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
atmosx has joined #ruby
tabolario has joined #ruby
<xybre> Well, if its an Ouroboros or doubly linked list, performance should be pretty much identical if the implementer isn't a moron.
jbpros has joined #ruby
pwh has joined #ruby
<apeiros> 0o
dancardamore has quit [Ping timeout: 248 seconds]
* xybre pokes apeiros in the eye?
dancardamore has joined #ruby
shredding has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Davey has quit [Quit: Computer has gone to sleep.]
shaunbaker has joined #ruby
<canton7> I'm willing to bet a lot they're not using a linked list. They destroy your cache performance
<apeiros> they're not
<apeiros> it makes little sense to implement an array (primary feature being access by index) as a DLL
pwh has quit [Client Quit]
alexju has quit [Read error: Connection reset by peer]
mogglefrange has joined #ruby
Targen has joined #ruby
alexju has joined #ruby
krawchyk_ has joined #ruby
T_T has quit [Remote host closed the connection]
krawchyk_ has quit [Remote host closed the connection]
BillCriswell has joined #ruby
Guest85778 has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 245 seconds]
gianlucadv has quit [Quit: ZNC - http://znc.sourceforge.net]
nomenkun has quit [Remote host closed the connection]
robustus has joined #ruby
krawchyk has quit [Ping timeout: 276 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
spyderman4g63 has quit [Remote host closed the connection]
gianlucadv has joined #ruby
mikeg has joined #ruby
c0rn has joined #ruby
fcahoon has joined #ruby
T_T has joined #ruby
mike has joined #ruby
<mike> i have [1,2,3] and [1,2,3,4,5,6], and i want to replace [1,2,3] with [a,b,c] so i get [a,b,c,4,5,6,7]
mike is now known as Guest64450
<Guest64450> how do i do that
JohnBat26 has quit [Ping timeout: 240 seconds]
<Guest64450> er, [a,b,c,4,5,6], no 7 at the end
bean has joined #ruby
cj3kim has quit [Remote host closed the connection]
whatacollapse has quit [Read error: Connection reset by peer]
<BraddPitt> make a new array and join with the last 3 elements of the longer one
<BraddPitt> oh wait
sambao21 has joined #ruby
cj3kim has joined #ruby
dodosan has quit [Remote host closed the connection]
<staafl> >> subs = { 1 => 'a', 2 => 'b' }; [1,2,3,4,5,6].map { |x| subs[x] || x }
<eval-in> staafl => ["a", "b", 3, 4, 5, 6] (https://eval.in/48132)
<staafl> Guest64450, right?
jibi has joined #ruby
<apeiros> or subs.fetch(x,x)
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dancardamore has quit []
cj3kim has quit [Ping timeout: 240 seconds]
<Guest64450> i got it thx
Adawerk_ has quit [Quit: Leaving]
saarinen has joined #ruby
BostonMA1776 has quit [Quit: Leaving]
ssvo_ has joined #ruby
zarul has quit [Quit: Leaving]
rupee has quit [Quit: Leaving]
Adawerk has joined #ruby
MrThePla_ has joined #ruby
chriskk has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby
zarul has joined #ruby
<mogglefrange> Is there some kind of centralized location that lists ruby gems for interacting with "fun" web services? I'm looking around on rubygems and ruby-toolbox, and all I've found that isn't a social network api client is an imdb client.
MrThePlague has quit [Ping timeout: 245 seconds]
jlast_ has quit [Remote host closed the connection]
alexju has quit [Read error: Connection reset by peer]
alexju has joined #ruby
sam113101 is now known as sam113101_afk
chriskk has joined #ruby
ssvo_ has quit [Ping timeout: 260 seconds]
oliver_ has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
sam113101_afk is now known as sam113101
mengu has joined #ruby
Emmanuel_Chanel has joined #ruby
Adawerk has quit [Quit: Leaving]
quoin has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
Notte has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
agr has joined #ruby
oliver_ has joined #ruby
<atmosx> mogglefrange: fun web services?
justsee has joined #ruby
visof has joined #ruby
quoin has quit [Ping timeout: 264 seconds]
<interactionjaxsn> not sure if this constitutes fun but the wolfram alpha api has a gem wrapper https://github.com/cldwalker/wolfram
<|jemc|> sounds more fun than imdb
aaronmcadam has quit [Quit: Leaving...]
randomautomator has joined #ruby
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
seoNinjaWarrior has joined #ruby
jefflyne3 has quit [Ping timeout: 264 seconds]
<interactionjaxsn> someone wrote a gem for at&t's voice recognition software (used by watson). that plus an NLP gem plus wolfram equals poor man's jarvis/watson
<interactionjaxsn> could be fun
nisstyre has joined #ruby
Gacha has quit [Ping timeout: 245 seconds]
<interactionjaxsn> mogglefrange: http://www.programmableweb.com/apis lists a bunch of api's. find one you think is fun and then google for '#{api_name} gem' and if one is available...
<atmosx> or find an api and write a gem fo rit.
<interactionjaxsn> this ^
pencilcheck has joined #ruby
burlyscudd has quit [Quit: Leaving.]
schaerli has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 240 seconds]
ukd1 has joined #ruby
agr has left #ruby [#ruby]
chairabanta has joined #ruby
wildroman has quit [Remote host closed the connection]
lunarjar has quit [Ping timeout: 240 seconds]
<chairabanta> Hi, what is the simplest way to delete the first line in a file?
pen has quit [Ping timeout: 276 seconds]
d2dchat has joined #ruby
noopq has quit [Ping timeout: 245 seconds]
ivaturi has joined #ruby
lunarjar has joined #ruby
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<|jemc|> How big is the file? Small enough to read the whole file into memory and write it back out?
elaptics is now known as elaptics`away
<chairabanta> |jemc|: yes
karlfreeman has quit [Quit: Connection closed for inactivity]
apfelbox has joined #ruby
brisbin has quit [Read error: Connection reset by peer]
ukd1 has quit [Read error: Connection reset by peer]
ukd1 has joined #ruby
<|jemc|> something like this, I suppose
<|jemc|> File.write(FILE2, File.read(FILE1).split("\n")[1..-1])
brisbin has joined #ruby
Guest64450 has quit [Ping timeout: 264 seconds]
RichardBaker has quit [Quit: RichardBaker]
<|jemc|> actually, you may need to add #join
<|jemc|> File.write(FILE2, File.read(FILE1).split("\n")[1..-1].join("\n"))
RichardBaker has joined #ruby
youcallm_ has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
<chairabanta> |jemc|: ok thx i will test it
apfelbox has quit [Ping timeout: 245 seconds]
duggiefresh has quit [Remote host closed the connection]
mark_locklear has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
duggiefresh has joined #ruby
Bosox20051 has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
disgrntld has joined #ruby
mrsolo_ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<atmosx> infinite loop? 41692077
<atmosx> err
jlast has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
Collin has joined #ruby
alexju has joined #ruby
Macaveli has joined #ruby
<disgrntld> hello, if `a = { 'foo'=>true }`, why is `a[:foo]` nil and `a['foo']` true?
jibi has quit [Quit: .]
<waxjar_> because :foo and 'foo' are two different objects
<waxjar_> you can use any object as a Hash key
kaspergrubbe has quit [Remote host closed the connection]
<disgrntld> but isn't the 'foo' that I used in creation of the hash a different from the 'foo' that I use as the key as well?
<waxjar_> yes
mrsolo has quit [Ping timeout: 245 seconds]
duggiefresh has quit [Ping timeout: 260 seconds]
<apeiros> different object, but equal
<disgrntld> ahhh
dodosan has joined #ruby
<apeiros> eql? is the relevant method
<apeiros> (and #hash)
<disgrntld> ok, thanks guys
dodosan has quit [Remote host closed the connection]
<waxjar_> if the return value of #has is the same and eql? returns true it's a match
<waxjar_> *hash
<apeiros> you can have identity hashes. I keep forgetting the name of method to call, though
dodosan has joined #ruby
<apeiros> #compare_by_identity
<apeiros> that's the one
MrThePla_ has quit [Remote host closed the connection]
ravster has left #ruby [#ruby]
<|jemc|> I didn't know about #hash. That's actually quite relevant to a problem I'm solving at hand.
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<|jemc|> (Treating multiple objects as being the same for the purpose of a hash
<|jemc|> )
<|jemc|> Now I can just overwrite #hash for those objects to do my bidding
alexju has quit [Ping timeout: 260 seconds]
<apeiros> don't forget to redefine #hash and #eql? in tandem
<atmosx> smart way to get mp3 duration?
RDash is now known as RDash[AW]
araujo has quit [Read error: Connection reset by peer]
<shevy> atmosx via ffmpeg
<shevy> if you have ffmpeg installed
<apeiros> count the bits and take the square root!
<shevy> :P
<atmosx> shevy: shit, do I have to download the file?
<shevy> waaaah
<apeiros> id3 tag
<shevy> well ffmpeg must be available... but was there not a gem that does it?
<atmosx> apeiros: will that work? It's easier to get the bits.
<apeiros> I was kidding
<atmosx> apeiros: does all mp3's have length id3 tag?
<waxjar_> mp3info is a pure ruby thing i believe
<apeiros> id3 tag wasn't kidding, though
<shevy> oh yeah that was the name
<atmosx> apeiros: too bad :-/
deception has quit [Quit: Goodbye]
<apeiros> atmosx: no, but it's at the head of the file, so you don't need the full file if it's present
<atmosx> apeiros: that requires me to download the file, I'd lke to avoid that if possible on hand...
<atmosx> on the other who gives a shit, not that I'll do it manually or that bandwidth isn't there
<shevy> download what file
<shevy> the gem?
MrThePlague has joined #ruby
<waxjar_> the mp3 i think
<atmosx> apeiros: if I know the quality is std, and I know that episode 1 has x bytes and y length maybe I can figure it out with a simple equation
<shevy> ah
<atmosx> hm
<atmosx> shevy: the mp3 file
<atmosx> shevy: I'm making an rss_feed
<apeiros> atmosx: you need to know the id3 size too
<shevy> is there a way to get the length of a .mp3 file without downloading it?
<atmosx> hm
<|jemc|> apeiros: oh, I didn't get quite what #hash was doing. It's not really what I want after all, now that I check the docs
<atmosx> any cli to read tags?
<apeiros> atmosx: also bitrate must not be VBR
alexju has joined #ruby
ileosigmoidostom has quit [Ping timeout: 256 seconds]
<atmosx> I assume bitrate and id3 tags are the same at every episode.
geekbri has quit [Remote host closed the connection]
<apeiros> well, with static bit rate, it's a simple calculation on the file-size - id3-tags-size
<disgrntld> so, reading http://stackoverflow.com/questions/7156955/whats-the-difference-between-equal-eql-and , what's the reasoning for 'foo' and :foo not to be eql?, I mean we have equal? if we _really_ wanted to know identity, right?
reset has joined #ruby
MTXsCript01 has joined #ruby
<apeiros> disgrntld: a) different hash values to begin with, b) technical reasons
ileosigmoidostom has joined #ruby
<MTXsCript01> ÊÇÑÊ´Õ
<waxjar_> it's the same reasoning as 'foo' and 5 not being equal according to eql?
<apeiros> MTXsCript01: um, use utf-8 in your irc client's encoding?
volty has joined #ruby
Spami__ has left #ruby ["Leaving"]
<brisbin> waxjar_: a better analogy might be "the same reason 'five' and 5 are not equal"
clocKwize has quit [Quit: clocKwize]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<brisbin> why you would want 'foo' and :foo to be equal in any way escapes me
<disgrntld> ok, maybe I should've asked why 'foo' == :foo is false, _that's_ a value check, right?
jlast has joined #ruby
<waxjar_> Symbols and Strings are entirely different sort of objects
<volty> because one is a string and the other is a symbol
<|jemc|> disgrntld: when I have functions which must be able to accept symbols or strings and treat them as equal, I just call #to_s on the argument and only deal with strings internally
<brisbin> i don't know why you think those two things are equal in value
MTXsCript01 has left #ruby [#ruby]
MTXsCript01 has joined #ruby
<disgrntld> ok, the different sort of objects makes it more clear fo rme
<atmosx> these mp3s do not have length (in time) tag
<atmosx> ffmpeg might really be the only choise
<atmosx> choice
relix has joined #ruby
<disgrntld> really, brisbin? you can't see how I would consider those the same value?
<|jemc|> and calling #to_s on an object that is already a string just returns the original string, so it's safe to do
<disgrntld> er, might consider*
<volty> disgrntld: let's say in C you have a var foo (could contain whatever, string or number) and a string "foo"
MTXsCript01 has quit []
<brisbin> disgrntld: they're different classes. how can two values of different classes be equal. it's like saying 'five' == 5 should be true
MTXsCript01 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<volty> ops, the equivalent (almost!) of ruby's symbols in c are the enums
<disgrntld> brisbin but like |jemc| says, `'foo'.to_s == :foo.to_s` is true
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
<brisbin> just because f a == f b does not imply f == b
<brisbin> er, a == b*
shredding has quit [Quit: shredding]
<brisbin> especially with to_s
<disgrntld> sure, but I guess I just think about it more like a weak typing convenience
<brisbin> i could write all kinds of nonsensical equalities if i call to_s on both sides
MTXsCript01 has quit [Client Quit]
<|jemc|> my point wasn't that they are equal; I'm saying its easy enough for your code to consider them equal if it suits your purposes
<disgrntld> I mean, I see your point, and I understand now, just trying to explain my confusion
<volty> disgrntld: do not confuse, think about it as an enum in C, and think of to_s as a macro that gives you the itteral string
<|jemc|> heck, you could overwrite #== if you need to
<disgrntld> yea, I didn't mean to imply you thought that, |jemc|
<atmosx> Whar's the best way of appending lines at an xml in ruby? They go at a specific place not at the end of the file
<brisbin> sure. as long as you agree it was a confused standpoint
<apeiros> atmosx: use nokogiri
<disgrntld> absolutely
<brisbin> and i could say, i don't see how an unconfused person could want those to be equal :)
sailias has quit [Quit: Leaving.]
<disgrntld> well, thanks for bearing with me guys, I got it now
<atmosx> apeiros: yes, that's smart choice. Didn't think of it!
<volty> ok // i need succ and prec methods on an array, is there something standard?
<apeiros> atmosx: `on /how\b.*\bxml\b.*\?/ do |msg| msg.reply "use nokogiri" end`
nomenkun has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
<volty> automatizing is much much nicer
<atmosx> volty: prec = ?
mansi_ has quit [Remote host closed the connection]
Astralum has quit [Ping timeout: 260 seconds]
<volty> preceding and successive element
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<brisbin> volty: i don't think so. depending on context shift/pop may work
<brisbin> but those are descructive
<volty> now i have an index that i increment / decrement (with wrap)
colonolGron has joined #ruby
ssvo_ has joined #ruby
<volty> no no, i have to cycle on the existing elements (but no loop)
<brisbin> that sounds like each/map
<volty> no way - cannot be implemented that way
kaldrenon has quit [Remote host closed the connection]
<volty> never mind, i'll put it in a module - in a way or another
IceyEC has quit [Quit: IceyEC]
mansi has joined #ruby
nomenkun has quit [Ping timeout: 245 seconds]
<volty> btw - I never thought I could ever need prec, succ, el++ or similar in ruby
<brisbin> yes, i'd be interested to see this use-case
<atmosx> volty: arrays support a method called 'next'
<atmosx> I'm pretty sure there is something like prev
<atmosx> or previous or anything
tjad has joined #ruby
mikepack has quit [Remote host closed the connection]
mogglefrange has quit [Quit: Lost terminal]
<volty> no next in array, next is a keyword (loops)
ssvo_ has quit [Ping timeout: 245 seconds]
rupee has joined #ruby
chrisja has quit [Ping timeout: 245 seconds]
tabolario has joined #ruby
tabolario has quit [Max SendQ exceeded]
<volty> it is an array with time interval values that command when the next element is to be fetched - said oversimplifying
mikepack has joined #ruby
<apeiros> and you need previous because?
<volty> apeiros: who if not you :) // just in case
<volty> i do not need it now
mary5030 has joined #ruby
freerobby has quit [Quit: Leaving.]
<apeiros> you can always write an external iterator
<volty> i mean: if I put it in a module - just for the sake of extending the behavior of that single array
<apeiros> all you need to store is the array and the current index
robbyoconnor has quit [Ping timeout: 264 seconds]
rcosta has joined #ruby
<volty> yap, i know apeiros, just came here to see if there' s something "of a standard"
<apeiros> not for previous
<apeiros> for next, there's always Enumerator
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
<apeiros> brisbin: I'd probably have called `get` `current` instead
quoin has joined #ruby
mansi has quit [Remote host closed the connection]
<brisbin> sure
<apeiros> so you have prev, current, next :)
<apeiros> also: peek
<volty> apeiros: weird code, with firing a qt timer and block execution on timeout
seoNinjaWarrior has joined #ruby
<brisbin> i still think you're Doing It Wrong but without seeing the codebase who knows
agent_white has joined #ruby
kayloos has quit [Remote host closed the connection]
postmodern has joined #ruby
<brisbin> especially now that you said you only need next
<apeiros> brisbin: I think the same actually
mayday_jay has quit [Quit: c ya!]
<apeiros> iterator = ary.cycle; iterator.next…
mansi has joined #ruby
<apeiros> that's the cheapest version, probably
<brisbin> cycle returns a lazy enumerator?
<apeiros> brisbin: you either forgot modulo in prev/next, or boundary checks
<brisbin> whatever. ship it.
RichardBaker has quit [Quit: RichardBaker]
<apeiros> it returns an enumerator. enumerators are always lazy.
<volty> apeiros: thx, i'll try it that way too, I only need this to make it cleaner, don't want to see that index advancinng arround
<brisbin> apeiros: yeah, realized that as i said it
<apeiros> it's hard to do infinite sequences non-lazy…
rezzack has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
<apeiros> volty: that's why you put it into an iterator class, just as brisbin did
RichardBaker has joined #ruby
codecop has quit [Remote host closed the connection]
tessi has quit [Read error: Operation timed out]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quoin has quit [Ping timeout: 264 seconds]
Bosox20051 has quit [Ping timeout: 264 seconds]
tessi has joined #ruby
pwh has joined #ruby
ldnunes has quit [Quit: Leaving]
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
byprdct has joined #ruby
rupee has quit [Quit: Leaving]
T_T has quit [Ping timeout: 264 seconds]
tabolario has joined #ruby
<apeiros> taaaaaaaaabs!
<apeiros> interesting use of case/when
<canton7> @timer.single_shot = true. Come on man
jlast_ has joined #ruby
jlast_ has quit [Remote host closed the connection]
<canton7> we don't have set_xxx and get_xxx methods in ruby
<canton7> that's java
alexju has quit [Remote host closed the connection]
<Collin> Is there a reason Ruby developers seem to not like tabs, or is it just a cult thing?
Bosox20051 has joined #ruby
<apeiros> it's a convention thing
<volty> meanwhile the array could change and have to restart it and <maybe other> that's why i want to move that clobber (of handling the index) elsewhere
alexju has joined #ruby
<Collin> I can sort of understand it in C/C++, because you sometimes split a single statement accross multiple lines, but not in other languages
<volty> canton7: it's ruby, qtruby
<canton7> ouchy, in that case
Bosox20051 has quit [Remote host closed the connection]
<canton7> bad library writers
<volty> jump on man! :)
<volty> i'm grateful to Richard Dale for his qtruby
kaspergrubbe has joined #ruby
forced_request has joined #ruby
Davey has joined #ruby
<volty> (to all the others too, e.g. smoke - of course)
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
seoNinjaWarrior has quit [Quit: Textual IRC Client: www.textualapp.com]
jlast has quit [Ping timeout: 245 seconds]
quando has quit [Quit: quando]
Macaveli has quit [Quit: Computer has gone to sleep.]
Stygia has joined #ruby
adeponte has quit [Remote host closed the connection]
burlyscudd has joined #ruby
atmosx has quit [Quit: Lost in trance]
bigoldrock has joined #ruby
MarcWeber has quit [Ping timeout: 240 seconds]
alexju has quit [Ping timeout: 264 seconds]
codelitt has joined #ruby
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
<codelitt> having trouble with the new active record in a sinatra app. any idea why @short_url = ShortenedUrl.find_or_create_by(:url => params[:url])
<codelitt> would return nil on a @short_url.id statement?
<codelitt> it gives me the record for @short_url.url but not the id on the record for some reason??
<codelitt> !ping
iliketurtles has joined #ruby
<MrZYX> codelitt: because the record is a new one never saved to the DB yet?
<waxjar_> pong
<MrZYX> or _create, not _initialize
<MrZYX> *oh
Tuxist has quit [Remote host closed the connection]
<MrZYX> still, does .persisted? return true?
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MrZYX> any validation errors?
elux has quit [Quit: Leaving...]
<volty> ops, now I see, sorry, paste & my editor problem, i'm a very hard tabulator, 2 spaces, very regular
codezombie has quit [Quit: Linkinus - http://linkinus.com]
chairabanta has quit [Quit: Leaving...]
<volty> apeiros said "interesting use of case/when" -> more cases are to come
interactionjaxsn has quit [Remote host closed the connection]
apfelbox has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
interactionjaxsn has joined #ruby
breakingthings has quit []
phantasm66 has quit [Quit: *sleeeep….]
<codelitt> MrZYX: No. It's saved in the DB. it responds to @short_url.url (which is one of the attributes for that class)
<codelitt> MrZYX: it just won't respond to @short_url.id
<MrZYX> codelitt: sure it does, you just set it when you create the url
<MrZYX> *object
RORgasm__ is now known as RORgasm
<MrZYX> does it have the .id after a .reload then?
<MrZYX> also consider asking #rubyonrails, more AR experts there
apfelbox has quit [Ping timeout: 264 seconds]
<apeiros> codelitt: note that "it does not respond" is quite NOT the same as "it returns nil"
<codelitt> MrZYX: It's not after a reload no. It's in a sinatra app so I thought it would be better asked here. but I guess it does use activerecord so maybe
mmitchell has quit [Remote host closed the connection]
<apeiros> codelitt: and if .id returns nil, it means it's NOT saved to the db
<codelitt> apeiros: You're right. it responds. It just returns nil
<apeiros> having an object != object stored to db
<apeiros> reasons for it not being persisted: validation failure e.g.
justsee has quit [Ping timeout: 260 seconds]
interactionjaxsn has quit [Ping timeout: 264 seconds]
volty has quit [Quit: Konversation terminated!]
zets has joined #ruby
kirun has quit [Quit: Client exiting]
nhhagen_ has joined #ruby
<codelitt> apeiros: I can see the record. It is definitely saved to the db. I'm staring at the record in the sql database right now
jerius has quit [Ping timeout: 268 seconds]
xiphiasx_ has quit [Changing host]
xiphiasx_ has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
<codelitt> apeiros: that's why i'm so confused
zarubin has joined #ruby
<apeiros> codelitt: a) you stored that value at another time
<apeiros> b) you did weird stuff to your id column
<apeiros> anyway, #rubyonrails is indeed probably better suited
bekti has joined #ruby
bekti has left #ruby [#ruby]
itcharlie has left #ruby [#ruby]
threeturn has quit [Quit: threeturn]
lkba has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
<codelitt> apeiros: https://github.com/codelitt/uber_url_shortener/blob/master/uber_url_shortener.rb line 95 is where i'm having the problem
<codelitt> apeiros: Alright. thanks
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
tylersmith has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
mikeg has quit [Remote host closed the connection]
tylersmith has quit [Read error: Connection reset by peer]
kayloos has joined #ruby
claymore has quit [Quit: night]
visof has quit [Read error: Connection reset by peer]
nhhagen_ has quit [Remote host closed the connection]
tabolario has joined #ruby
obs has joined #ruby
dash_ has quit [Quit: dash_]
nhhagen_ has joined #ruby
justsee has joined #ruby
reset has quit [Quit: Leaving...]
adeponte has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
Notte has quit [Remote host closed the connection]
Ziarkaen has joined #ruby
tvw has joined #ruby
peregrine81 has quit []
Quashie has joined #ruby
Cyrus has joined #ruby
tvw has quit [Read error: Connection reset by peer]
snovak has joined #ruby
NealJ has quit [Quit: :c]
nhhagen_ has quit [Ping timeout: 264 seconds]
Astralum has joined #ruby
tonni has joined #ruby
endash has quit [Quit: endash]
d2dchat has quit [Remote host closed the connection]
Clooth has quit [Quit: Leaving...]
narcan has joined #ruby
jonkri has quit [Quit: jonkri]
iliketurtles has joined #ruby
zastern has joined #ruby
cj3kim has joined #ruby
rupee has joined #ruby
dik_dak has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
youcallme has joined #ruby
knigitz has joined #ruby
BillCriswell has quit [Remote host closed the connection]
Soda has quit [Read error: Connection reset by peer]
felixjet has quit [Read error: Connection reset by peer]
jbpros has quit [Quit: jbpros]
felixjet has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 264 seconds]
tatsuya_o has joined #ruby
lfox has quit [Quit: ZZZzzz…]
youcallme has quit [Ping timeout: 256 seconds]
ssvo_ has joined #ruby
banghouse2 has quit [Remote host closed the connection]
snovak has quit [Remote host closed the connection]
rcosta has quit [Remote host closed the connection]
baordog has quit [Remote host closed the connection]
snovak has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bean has quit [Quit: Textual IRC Client: www.textualapp.com]
KobraKao has joined #ruby
fcahoon has quit [Quit: Leaving]
Fraeon has joined #ruby
evenix has quit [Remote host closed the connection]
ssvo_ has quit [Ping timeout: 264 seconds]
Xaitec has joined #ruby
kilophoton has quit [Ping timeout: 245 seconds]
snovak has quit [Ping timeout: 260 seconds]
mlpinit has quit [Ping timeout: 268 seconds]
corpuscle has quit [Quit: WeeChat 0.4.1]
Ziarkaen has quit [Remote host closed the connection]
Tricon has quit [Quit: Bye!]
shunt has quit [Read error: Operation timed out]
g0bl1n has quit [Read error: Operation timed out]
quoin has joined #ruby
<dkamioka> hello! Anyone here uses yadr?
mercwithamouth has quit [Ping timeout: 245 seconds]
rcosta has joined #ruby
mercwithamouth has joined #ruby
pwh has quit [Quit: pwh]
Bira has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 264 seconds]
enebo has quit [Quit: enebo]
jlast has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
rcosta_ has joined #ruby
spap has quit []
rins has quit [Ping timeout: 264 seconds]
RORgasm has quit [Remote host closed the connection]
mengu has quit [Quit: This computer has gone to sleep]
rcosta has quit [Ping timeout: 260 seconds]
Inoperable has quit [Quit: Rectified]
cj3kim has joined #ruby
staafl has quit [Read error: Connection reset by peer]
alvaro_o has quit [Ping timeout: 264 seconds]
nhhagen_ has joined #ruby
yaymukund has quit [Ping timeout: 256 seconds]
newUser1_ has quit [Remote host closed the connection]
fenicks has quit [Remote host closed the connection]
jefflyne3 has joined #ruby
asobrasil has left #ruby [#ruby]
Bira has joined #ruby
justsee has quit [Ping timeout: 260 seconds]
Astralum has quit [Read error: Connection reset by peer]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
mdst has joined #ruby
Astralum has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
yaymukund has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
KobraKao has quit [Quit: Saindo]
monkegjinni has joined #ruby
Aryasam has joined #ruby
smlgs has joined #ruby
VTLob has quit [Quit: VTLob]
nhhagen_ has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
apfelbox has joined #ruby
osvico has joined #ruby
snovak has joined #ruby
sambao21 has joined #ruby
mdst has quit [Quit: Leaving]
alex__c2022 has quit [Quit: alex__c2022]
yaymukund has quit [Ping timeout: 256 seconds]
Aryasam has quit [Ping timeout: 264 seconds]
axl_ has quit [Quit: axl_]
apfelbox has quit [Ping timeout: 246 seconds]
vxxr has joined #ruby
Quashie has quit [Ping timeout: 246 seconds]
agent_white has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
julweber has quit [Remote host closed the connection]
Monie has joined #ruby
pentameter has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 246 seconds]
ivaturi has left #ruby ["Leaving"]
snath has quit [Ping timeout: 260 seconds]
tatsuya_o has quit [Remote host closed the connection]
rhys_ has quit [Quit: Leaving]
dkamioka has quit [Remote host closed the connection]
Astralum has quit [Ping timeout: 264 seconds]
colonolGron has quit [Quit: Lost terminal]
shaunbaker has quit [Remote host closed the connection]
<shevy> how to properly use a vs. an ?
<shevy> "This is a eagle." vs. "This is an eagle."
<shevy> I mean, programmatically from ruby
<bnagy> you would need soundex
<bnagy> because an hour // a house
cj3kim has quit [Remote host closed the connection]
EricArchitrave has quit [Quit: Leaving.]
<shevy> :(
vlad_starkov has joined #ruby
jonr22 has joined #ruby
kvirani has quit [Remote host closed the connection]
sarlalian has joined #ruby
m8 has quit [Quit: Sto andando via]
kvirani has joined #ruby
mrsolo_ has quit [Quit: This computer has gone to sleep]
anonymuse has quit [Remote host closed the connection]
agr has joined #ruby
agr has quit [Client Quit]
oliver_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 256 seconds]
Xaitec has quit [Remote host closed the connection]
kpshek has quit []
ssvo_ has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
optimusprimem has quit [Ping timeout: 245 seconds]
kvirani has quit [Ping timeout: 276 seconds]
geggam has quit [Remote host closed the connection]
cody-- has joined #ruby
cj3kim has joined #ruby
mansi has quit [Remote host closed the connection]
MrThePlague has quit [Remote host closed the connection]
mansi has joined #ruby
yekta has joined #ruby
ssvo_ has quit [Ping timeout: 256 seconds]
justsee has quit [Ping timeout: 240 seconds]
snovak has joined #ruby
reset has joined #ruby
dagnachew has joined #ruby
mrsolo_ has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
<shevy> hmm
gstamp has joined #ruby
<shevy> I am looking at code written by someone else, old code I think
<shevy> one line is this:
<shevy> g_array = [nil] * 90
pel_daniel has left #ruby [#ruby]
<shevy> this initializes an array object with 90 nil entries, I think
<shevy> is there a better way to do this? (I have no idea why this was required though)
zastern has quit [Remote host closed the connection]
quoin has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
snovak has quit [Read error: Operation timed out]
fridim__ has joined #ruby
<workmad3> shevy: you could do Array.new(90, nil) instead
<workmad3> or just Array.new(90)
Es0teric has joined #ruby
kilophoton has joined #ruby
<shevy> yeah, I like that more
Tricon has joined #ruby
<shevy> that all looks a bit obfuscated here ... the dude did things like:
<shevy> F = nil
nfk has quit [Quit: yawn]
quando has joined #ruby
<workmad3> fun :D
<workmad3> IORCC
<shevy> and the weirdest thing is this:
<shevy> eval( { 1 => 'g_array[p/x+p%w',
<workmad3> o.O
quoin has quit [Ping timeout: 260 seconds]
<workmad3> I think I'm gonna go to bed now then
zastern_ has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
nowthatsamatt has quit [Quit: nowthatsamatt]
ssvo_ has joined #ruby
kilophoton has quit [Ping timeout: 256 seconds]
tjad has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
nowthatsamatt has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
<bnagy> that looks like 'normal' pointer maths?
thesheff17 has quit [Read error: Operation timed out]
<bnagy> ignoring the eval, anyway
kayloos has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 264 seconds]
redmenace has joined #ruby
<shevy> yeah can be... what it does is draw an ascii map of some kind of "dungeon"
<shevy> loops through it, sets it up
dagnachew has quit [Quit: WeeChat 0.4.1]
predator217 has joined #ruby
dagnachew has joined #ruby
redmenace has quit [Client Quit]
siwica has quit [Quit: siwica]
redmenace has joined #ruby
farn has quit [Quit: farn]
redmenace has quit [Client Quit]
yaymukund has joined #ruby
cody-- has joined #ruby
redmenace has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
predator117 has quit [Ping timeout: 245 seconds]
redmenace has quit [Client Quit]
Bira has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
seoNinjaWarrior has joined #ruby
rcosta_ has quit [Remote host closed the connection]
alvaro_o has joined #ruby
apfelbox has joined #ruby
apfelbox has quit [Read error: Operation timed out]
anderson has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
cj3kim has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
end_guy has quit [Ping timeout: 240 seconds]
ephemerian has quit [Quit: Leaving.]
ssvo_ has quit [Ping timeout: 246 seconds]
thesheff17 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
dik_dak has quit [Quit: Leaving]
rcosta has joined #ruby
dik_dak has joined #ruby
end_guy has joined #ruby
sambao21 has joined #ruby
kaspergrubbe has joined #ruby
dagnachew has quit [Quit: WeeChat 0.4.1]
dik_dak has quit [Client Quit]
Lewix has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
iliketurtles has quit [Quit: zzzzz…..]
newbiehacker has joined #ruby
shanlar- has joined #ruby
shanlar has quit [Ping timeout: 264 seconds]
rcosta has quit [Remote host closed the connection]
GeissT has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
peregrine81 has joined #ruby
mrsolo_ has quit [Quit: This computer has gone to sleep]
optimusprimem has joined #ruby
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
iliketurtles has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
robbyoconnor has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
shanlar has joined #ruby
shanlar- has quit [Read error: Connection reset by peer]
sarlalian has quit [Quit: WeeChat 0.4.1]
gyre007 has joined #ruby
sarlalian has joined #ruby
Xiti has quit [Ping timeout: 248 seconds]
Atrumx has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]