apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
roqo has quit [Changing host]
roqo has joined #ruby
<XxionxX> I want to multiply each item in the array but I need to be able to end the multiplication when I reach a certain point
zacts has quit [Quit: leaving]
chrishough has joined #ruby
<shevy> is that like a fibonacci series again?
<felltir> what point is that?
sea_local has joined #ruby
neoice has quit [Ping timeout: 240 seconds]
thumpba has joined #ruby
<XxionxX> for example, if I needed to stop the multiplication in the above code when puts == 2 instead of puts == 6
neoice has joined #ruby
<XxionxX> kinda link the fibonacci series
mgberlin has quit [Read error: Connection reset by peer]
<XxionxX> *like
<apeiros_> puts == 2?
banamanamanabana has joined #ruby
<XxionxX> in my above code
<apeiros_> and what's that supposed to mean again?
<banamanamanabana> how many mehtods are in the ruby standard library?
ravster has joined #ruby
<XxionxX> sorry, I know it's not real code
mgberlin has joined #ruby
<XxionxX> that is why I am having trouble
<XxionxX> I can't figure out what it is that I need
<apeiros_> banamanamanabana: ObjectSpace.each_object(Module) + .instance_methods should help you. have fun
<shevy> banamanamanabana I think about 2000 or so. hanmac once showed the real number here, I forgot
<apeiros_> XxionxX: write an ordinary until loop
<apeiros_> until product == 6; …multiply…; end
Joufflu has quit [Quit: Leaving]
Joufflu has joined #ruby
dx7iso has quit [Remote host closed the connection]
<banamanamanabana> shevy: where can i find that number? i can't google it :(
<banamanamanabana> i made a $50 bet with someone
<banamanamanabana> i said that there are over 9000
sea_local has quit [Ping timeout: 264 seconds]
<felltir> XxionxX: array.inject {|total, number| total >= limit ? (break total) : total * number }
<felltir> maybe?
<XxionxX> I think thats it
Stalkr_ has quit [Quit: Leaving...]
<XxionxX> let me play with that for a bit
<felltir> sure
<felltir> (I recommend making that multiline, it's a bit unclear)
phutchins has joined #ruby
<felltir> and it would mean you can drop the brackets
Menorah has joined #ruby
<shevy> banamanamanabana not sure, you have to wait for Hanmac
jimmyy has quit []
<shevy> banamanamanabana I think class String had like 170 or so
DonOtreply has quit [Quit: DonOtreply]
<banamanamanabana> so is it a good idea to memorize all of them?
Guest64 has joined #ruby
<felltir> nope
<felltir> no need
<banamanamanabana> what is the need then?
<shevy> banamanamanabana well some methods are used a lot, others not
<soahccc> anyone has an idea why that fails? https://travis-ci.org/2called-chaos/usernamegen/jobs/44705443
centrx has joined #ruby
<shevy> banamanamanabana and some components of stdlib are more or less outdated or used very rarely by most people
paramourne has quit [Remote host closed the connection]
Takle_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<banamanamanabana> soahccc: your version of ruby is outdated
phutchins has quit [Ping timeout: 244 seconds]
<banamanamanabana> update ruby you motherfucker you
tjohnson has joined #ruby
<felltir> ...
felltir has quit []
mikepack has joined #ruby
Beoran has quit [Ping timeout: 264 seconds]
Menorah has quit [Quit: Leaving]
mjmac has quit [Ping timeout: 258 seconds]
amundj has joined #ruby
sargas has joined #ruby
* majeure wipes his ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]
<shevy> ruby 2.1.5p273 (2014-11-13 revision 48405) [i686-linux]
<shevy> yeah
<shevy> 2.2.0 is out but does not work for me
mjmac has joined #ruby
mikepack has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
mikepack_ has joined #ruby
oo_ has joined #ruby
ahtik has joined #ruby
diegoviola has quit [Remote host closed the connection]
mdibound has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
lbrf has joined #ruby
doodlehaus has joined #ruby
xymbol___ has joined #ruby
caustic has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Beoran has joined #ruby
Areessell has quit [Ping timeout: 250 seconds]
G has quit [Ping timeout: 265 seconds]
xymbol__ has quit [Ping timeout: 272 seconds]
lbrf has quit [Ping timeout: 244 seconds]
G has joined #ruby
<apeiros_> banamanamanabana: I think you'll win that bet
doodlehaus has quit [Ping timeout: 245 seconds]
mgberlin has quit [Read error: Connection reset by peer]
<majeure> What a long name.
mgberlin has joined #ruby
LouisRoR has quit [Ping timeout: 252 seconds]
atomi has quit [Remote host closed the connection]
rockdon has quit [Ping timeout: 258 seconds]
mjmac has quit [Ping timeout: 258 seconds]
oo_ has quit [Remote host closed the connection]
Guest92 has joined #ruby
caustic has joined #ruby
elastik has joined #ruby
max96at is now known as max96at|off
maletor has joined #ruby
<apeiros_> banamanamanabana: I don't claim correctness: https://gist.github.com/apeiros/5d02d5a3df5a39c374f9
<apeiros_> gets 17773 for me with 2.1.5. edit the path to be your stdlib dir.
marr has quit []
<apeiros_> had to exclude some things, so it's even more.
tristanp has joined #ruby
DLSteve has quit [Quit: Leaving]
elastik has quit [Ping timeout: 265 seconds]
dx7iso has joined #ruby
RowdyChildren is now known as codeforcharlotte
codeforcharlotte is now known as rowdychildren
ddd has joined #ruby
m3rongiv1An has quit [Ping timeout: 240 seconds]
deryl has quit [Ping timeout: 252 seconds]
kyb3r_ has quit [Ping timeout: 244 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
kyb3r_ has joined #ruby
St_Marx has joined #ruby
jaequery has joined #ruby
rockdon has joined #ruby
caustic has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mjmac has joined #ruby
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
jaequery_ has joined #ruby
jaequery has quit [Ping timeout: 244 seconds]
jaequery_ has quit [Client Quit]
Guest92 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karmatr0n has joined #ruby
phutchins has joined #ruby
mdibound has quit [Quit: Be back later ...]
mdibound has joined #ruby
jaequery has joined #ruby
ddd is now known as deryl
mdibound has left #ruby [#ruby]
yfeldblum has joined #ruby
Azure has joined #ruby
caustic has joined #ruby
jottr has joined #ruby
Scripore has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
mikepack_ has quit [Remote host closed the connection]
mgberlin has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 265 seconds]
mgberlin has joined #ruby
LudicrousMango has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<XxionxX> felltir: That did the trick! I was able to complete my program!
<shevy> huh
<shevy> 17773 is indeed close to 18.000
<godd2> can you define a variable that's global to a call stack, but once you leave that stack, it ceases?
<shevy> banamanamanabana guess you won that bet then
maletor has quit [Quit: Computer has gone to sleep.]
nicolastarzia has joined #ruby
oo_ has joined #ruby
<XxionxX> Oh darn, he left. I wanted to say thanks for helping me solve my problem :/
reinaldob has joined #ruby
caustic has quit []
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ballkenende has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
sea_local has joined #ruby
nicolastarzia has quit [Ping timeout: 264 seconds]
Obfuscate has quit [Ping timeout: 245 seconds]
reinaldob has quit [Ping timeout: 240 seconds]
barderer has joined #ruby
Ballkenende has quit [Ping timeout: 240 seconds]
Narzew has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
ahtik has quit [Ping timeout: 250 seconds]
tristanp has quit [Ping timeout: 245 seconds]
ght has left #ruby [#ruby]
ght has joined #ruby
ishikawa91 has joined #ruby
Takle has joined #ruby
duncannz has joined #ruby
oleo__ has quit [Quit: Verlassend]
niggler has left #ruby [#ruby]
<ght> Question: I've got an app I coded that takes content from one product via an API and moves it to another product via an API, and I"m interested in providing my users notification of changes, as in things that are written to the second API. I'm trying to, conceptually, think about how I might go about this, such as writing data to a text file, then emailing contents of the text file.
mgberlin_ has joined #ruby
<ght> Does anyone have any references for such a notification service? Any general throughts?
goodenough has quit [Remote host closed the connection]
Obfuscate has joined #ruby
mois3x has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
robustus has quit [Ping timeout: 250 seconds]
mgberlin has quit [Ping timeout: 244 seconds]
postmodern has quit [Quit: Leaving]
oleo has joined #ruby
pibby has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
sarmiena_ has joined #ruby
tejas-manohar has quit [Quit: Page closed]
s00pcan has quit [Read error: No route to host]
charliesome has quit [Quit: zzz]
Deele has quit [Ping timeout: 244 seconds]
s00pcan has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
oo_ has quit [Remote host closed the connection]
goodenough has joined #ruby
sarmiena_ has quit [Client Quit]
CityLims has joined #ruby
<apeiros_> hm, seems `super` in method_missing in a BasicObject does not work…
mroach has quit [Quit: mroach]
oo_ has joined #ruby
atomi has joined #ruby
nfk has quit [Quit: yawn]
<shevy> please apeiros_
<shevy> don't enter the dark ways of ruby
<apeiros_> too late
Guest92 has joined #ruby
deryl has quit [Ping timeout: 264 seconds]
fivetwentysix has quit [Quit: fivetwentysix]
valeriansaliou has joined #ruby
eka has joined #ruby
reinaldob has joined #ruby
Guest92 has quit [Max SendQ exceeded]
eka has quit [Client Quit]
petertretyakov_ has joined #ruby
x1337807_ has joined #ruby
mgberlin has joined #ruby
klmlfl has joined #ruby
valeriansaliou has quit [Ping timeout: 252 seconds]
x1337807x has quit [Ping timeout: 258 seconds]
zorak8 has quit [Read error: Connection reset by peer]
sarmiena_ has joined #ruby
zorak8 has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
mgberlin_ has quit [Ping timeout: 245 seconds]
x1337807_ has quit [Ping timeout: 245 seconds]
petertretyakov_ has quit [Ping timeout: 255 seconds]
kiki_lam1 is now known as kiki_lamb
reinaldob has quit [Remote host closed the connection]
s_e has quit [Ping timeout: 240 seconds]
pibby has joined #ruby
nomadic has quit [Ping timeout: 244 seconds]
klmlfl has quit [Remote host closed the connection]
lucyinthesky has joined #ruby
droidburgundy has quit [Ping timeout: 272 seconds]
x1337807x has joined #ruby
s_e has joined #ruby
axilla has quit [Ping timeout: 265 seconds]
kies has quit [Ping timeout: 272 seconds]
eka has joined #ruby
thumpba has quit [Remote host closed the connection]
iamninja has quit [Max SendQ exceeded]
lucyinthesky has left #ruby ["Leaving"]
thumpba has joined #ruby
nomadic has joined #ruby
george2 has quit [Ping timeout: 258 seconds]
TheRinger has joined #ruby
nomadic has quit [Changing host]
nomadic has joined #ruby
CityLims has quit []
goodenough has quit [Remote host closed the connection]
elastik has joined #ruby
banamanamanabana has quit [Ping timeout: 246 seconds]
dc_ has joined #ruby
despai has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has quit [Remote host closed the connection]
george2 has joined #ruby
oo_ has quit [Remote host closed the connection]
s00pcan has joined #ruby
s00pcan has quit [Remote host closed the connection]
iamninja has joined #ruby
karmatr0n has quit [Remote host closed the connection]
Guest64 has joined #ruby
despai has quit [Client Quit]
s00pcan has joined #ruby
kies has joined #ruby
sargas has quit [Quit: Leaving]
antfy has quit [Quit: Leaving]
sargas has joined #ruby
renderful has joined #ruby
Calmoto has quit [Ping timeout: 258 seconds]
sarmiena_ has quit [Quit: sarmiena_]
Scripore has joined #ruby
tejas-manohar has joined #ruby
goodenough has joined #ruby
charliesome has joined #ruby
<XxionxX> If I am nesting if statements should I be defining methods? Is there a rule of thumb as to when I should be defining methods vs using conditionals? I'm not really reusing my code, I'm just working my way though the Euler problems and learning Ruby. I don't want to pick up any bad habits though :/
mjmac has quit [Ping timeout: 258 seconds]
<XxionxX> Most of my projects are one offs for each individual Euler problem.
mjmac has joined #ruby
renderful has quit [Ping timeout: 255 seconds]
lbrf has joined #ruby
<mozzarella> depends
<soahccc> XxionxX: Watch this (I did today). https://www.youtube.com/watch?v=DC-pQPq0acs
<soahccc> I created a gem to generate usernames and it used to generate 50k words... One pull request later => 1.5 million... I feel useless now
<shevy> XxionxX it depends, in general the shorter you can write code, the better
<shevy> sometimes there is no simple way to avoid having to do multiple if/elsif's
<shevy> if you think that methods make your code more logical, then I would most definitely use methods
<shevy> if you can make the code shorter by using methods, then I would also consider using methods
lbrf has quit [Ping timeout: 240 seconds]
<apeiros_> nice, `post = User.first.posts.create! text: "Hallelujah"` works
<XxionxX> soahccc: 30 seconds in and you are in Hawaii. As someone in a frozen server room... -_-
<shevy> there is a rule of thumb saying that short methods are a good thing
<XxionxX> soahccc: Jk sounds like you are having a great time!
<apeiros_> (and no, that's neither AR, nor Sequel, nor ROM, nor Datamapper)
<shevy> ewwww
Guest74867 is now known as _chs_
<shevy> .create!
<soahccc> XxionxX: It's summer at least in your head :)
postmodern has joined #ruby
yfeldblum has joined #ruby
deryl has joined #ruby
<soahccc> shevy: what do you have against create!?
Takle has joined #ruby
<XxionxX> shevy: That is the thing, methods wouldn't seem to make my code too much shorter :/
<XxionxX> I guess I'll just use my best judgment.
<centrx> create!? should be allowed
<shevy> hey I have a question
<shevy> (1..10).to_a
<soahccc> XxionxX: keep in mind that you read your code more often than you write it.... the more explicit it is, the better. watch the video and you see that the code tends to grow bigger but it pays out in the long run
<shevy> this makes an Array from 1 to 10; is there an alternative way through Array.new to do the same?
<shevy> so that we would generate [1,2,3,4,5,6,7,8,9,10]
george2 has quit [Ping timeout: 258 seconds]
<centrx> shevy, [1, 2, 3, 4, 5, 6, 7, 7, 9, 10] would be faster
<shevy> :)
yfeldblum has quit [Ping timeout: 240 seconds]
josephndenton has quit [Ping timeout: 240 seconds]
<shevy> XxionxX I like methods because they provide logical chunks that group up code and code behaviour, especially in a class. Do you use a class for your task?
<soahccc> TIL: range has a .cover? method
jeff-ooh has quit [Remote host closed the connection]
<XxionxX> shevy No classes yet
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thumpba has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
doodlehaus has joined #ruby
philwantsfish has joined #ruby
testcore has quit [Remote host closed the connection]
testcore has joined #ruby
TgMts has quit [Ping timeout: 258 seconds]
hiyosi has joined #ruby
avarice has quit [Quit: this channel is bakas]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has quit [Ping timeout: 264 seconds]
dorei has quit []
mroach has joined #ruby
mgberlin has quit [Ping timeout: 244 seconds]
preyalone has joined #ruby
axilla has joined #ruby
tkuchiki has joined #ruby
TgMts has joined #ruby
mgberlin has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
lucyinthesky has joined #ruby
josephndenton has joined #ruby
DonOtreply has joined #ruby
mgberlin_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
oo_ has joined #ruby
lbrf has joined #ruby
mgberlin has quit [Ping timeout: 245 seconds]
claptor has joined #ruby
oo_ has quit [Remote host closed the connection]
elastik has quit [Ping timeout: 272 seconds]
centrx has quit [Ping timeout: 264 seconds]
sankaber has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
mjmac has quit [Ping timeout: 258 seconds]
lucyinthesky has left #ruby ["Mensagem"]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjmac has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
ARCADIVS has joined #ruby
mikepack has joined #ruby
sankaber_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
kiyote23 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikepack has quit [Ping timeout: 258 seconds]
centrx has joined #ruby
sankaber has quit [Ping timeout: 256 seconds]
nicolastarzia has joined #ruby
apurcell has joined #ruby
dc_ has quit [Remote host closed the connection]
kiyote23 has quit [Ping timeout: 255 seconds]
nicolastarzia has quit [Ping timeout: 250 seconds]
apurcell has quit [Ping timeout: 252 seconds]
goodenough has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 272 seconds]
<pontiki> hello o/ :)
tyll_ has joined #ruby
dts|pokeball has joined #ruby
icebourg has joined #ruby
josephndenton has quit [Ping timeout: 258 seconds]
claptor has quit [Quit: this channel is bakas]
maletor has joined #ruby
apeiros_ has quit [Remote host closed the connection]
tyll has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby
claptor has joined #ruby
<shevy> pontiki rocks da house
<shevy> hey pontiki I am digging in semi-old music again, this one from 1992 whatcha think - https://www.youtube.com/watch?v=4iF47M3YDlg
leonmaia has joined #ruby
josephndenton has joined #ruby
Ballkenende has joined #ruby
dts|pokeball has quit [Ping timeout: 250 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hmsimha has joined #ruby
Ballkenende has quit [Ping timeout: 256 seconds]
yfeldblu_ has joined #ruby
failshell has joined #ruby
sankaber_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
barderer has quit [Ping timeout: 245 seconds]
jack_rabbit has joined #ruby
mgberlin has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
windowlicker has quit [Quit: Lost terminal]
radic has quit [Ping timeout: 245 seconds]
mroach has joined #ruby
radic has joined #ruby
mgberlin_ has quit [Ping timeout: 264 seconds]
kapil__ has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
dideler has joined #ruby
Pattt has quit [Ping timeout: 240 seconds]
<majeure> Ghastly.
hmsimha has quit [Ping timeout: 252 seconds]
mgberlin_ has joined #ruby
picassoo has joined #ruby
freerobby has joined #ruby
mgberlin has quit [Ping timeout: 255 seconds]
jaequery has joined #ruby
kies has quit [Ping timeout: 244 seconds]
ravster has quit [Ping timeout: 255 seconds]
picassoo has quit [K-Lined]
<failshell> any way to prevent puts from splitting a string that has \n in it?
n008f4g_ has quit [Ping timeout: 250 seconds]
mostlybadfly has joined #ruby
tus has quit []
mroach has quit [Quit: mroach]
<failshell> basically, im printing a base64 string and it ends up on 2 lines in my shell
jaequery has quit [Client Quit]
m3rongiviAn has joined #ruby
tmtwd has joined #ruby
<crome_> um
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<crome_> what you are asking does not make any sense
<crome_> you can try is outputting thestringwithnewlinecharacters.inspect
<crome_> +what
<failshell> yeah i did that, and its only one line
<failshell> lemme gist it for you
mikepack has joined #ruby
dts|pokeball has joined #ruby
<failshell> if i use p instead of puts, it wont split the output
<failshell> but it adds "" surrounding the base64 string
mengu has quit [Ping timeout: 244 seconds]
<crome_> p stuff is the same as puts stuff.inspect
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
george2_ has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
Areessell has joined #ruby
george2_ is now known as george2
adriancb has joined #ruby
Sgeo has joined #ruby
VBlizzard has joined #ruby
VBlizzard has quit [Read error: Connection reset by peer]
blizzy has quit [Ping timeout: 240 seconds]
mjmac has quit [Ping timeout: 258 seconds]
thumpba has quit [Remote host closed the connection]
mjmac has joined #ruby
blizzy has joined #ruby
blizzy is now known as blizzy
failshell has quit []
TgMts_ has joined #ruby
TgMts has quit [Ping timeout: 244 seconds]
Apocalypse has quit [Ping timeout: 256 seconds]
TgMts_ has quit [Client Quit]
tmtwd has quit [Remote host closed the connection]
TgMts has joined #ruby
<pontiki> do you just want to escape the \n ?
Miron has quit [Ping timeout: 272 seconds]
s_e has quit [Ping timeout: 264 seconds]
josephndenton has quit [Ping timeout: 245 seconds]
nomadic has quit [Ping timeout: 244 seconds]
s_e has joined #ruby
Apocalypse has joined #ruby
TgMts has quit [Client Quit]
braincrash has quit [Quit: bye bye]
nomadic has joined #ruby
lbrf has quit [Quit: Be back later ...]
<pontiki> ah nm
TgMts has joined #ruby
Miron has joined #ruby
klmlfl has joined #ruby
blizzy is now known as blizz
blizz is now known as blizzy
mikepack has quit []
braincrash has joined #ruby
TgMts has quit [Client Quit]
Ballkenende has joined #ruby
BTRE has quit [Ping timeout: 256 seconds]
TgMts has joined #ruby
Ballkenende has quit [Ping timeout: 245 seconds]
dx7iso has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
BTRE has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
Takle has joined #ruby
stretchlimo has joined #ruby
TgMts has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
ishikawa91 has quit [Quit: Connection closed for inactivity]
mjmac has quit [Ping timeout: 258 seconds]
TgMts has quit [Client Quit]
apeiros_ has quit [Ping timeout: 265 seconds]
rockdon has quit [Ping timeout: 258 seconds]
TgMts has joined #ruby
doodlehaus has quit [Ping timeout: 252 seconds]
siwica1 has joined #ruby
mjmac has joined #ruby
armyriad has joined #ruby
rockdon has joined #ruby
siwica has quit [Ping timeout: 256 seconds]
TgMts has quit [Client Quit]
mroach has joined #ruby
freerobby has joined #ruby
jottr has joined #ruby
kies has joined #ruby
TgMts has joined #ruby
BTRE has quit [Ping timeout: 250 seconds]
freerobby has quit [Client Quit]
stretchlimo has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
dts|pokeball has quit [Quit: Leaving]
dts|pokeball has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
tkuchiki has joined #ruby
TgMts has quit [Client Quit]
conniemj has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
ooesili has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
nicolastarzia has joined #ruby
apurcell has joined #ruby
windowlicker has joined #ruby
TgMts has joined #ruby
gsd has joined #ruby
davedev24_ has quit [Ping timeout: 258 seconds]
davedev24_ has joined #ruby
icebourg has quit []
TgMts has quit [Client Quit]
nicolastarzia has quit [Ping timeout: 255 seconds]
apurcell has quit [Ping timeout: 258 seconds]
fandi_ has quit [Ping timeout: 256 seconds]
fandi_ has joined #ruby
TgMts has joined #ruby
conniemj has quit [Quit: (null)]
preyalone has left #ruby [#ruby]
Apocalypse has quit [Ping timeout: 252 seconds]
rockdon has quit [Ping timeout: 258 seconds]
kenneth has joined #ruby
turboTrust has quit [Quit: Textual IRC Client: www.textualapp.com]
klmlfl has quit [Remote host closed the connection]
rockdon has joined #ruby
Apocalypse has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
picassoo has joined #ruby
blizzy has quit [Ping timeout: 258 seconds]
byprdct has joined #ruby
<byprdct> I know this is a "rails" questions guys but hoping its a simple explanation that I can't find.
<byprdct> How does one go about storing a email password via heroku variable if you have collaborators?
ooesili has quit [Quit: leaving]
lbrf has joined #ruby
blizzy has joined #ruby
icebourg has joined #ruby
arup_r has joined #ruby
commmmodo has quit [Quit: commmmodo]
icebourg has quit [Max SendQ exceeded]
armyriad has quit [Ping timeout: 244 seconds]
icebourg has joined #ruby
Ballkenende has joined #ruby
armyriad has joined #ruby
mgberlin has joined #ruby
bricker`work has joined #ruby
lbrf has quit [Ping timeout: 245 seconds]
sargas has quit [Quit: This computer has gone to sleep]
fivetwentysix has joined #ruby
mgberlin_ has quit [Ping timeout: 244 seconds]
deryl has quit []
Ballkenende has quit [Ping timeout: 245 seconds]
kiyote23 has joined #ruby
dx7iso has joined #ruby
arup_r has quit [Quit: Leaving.]
russt has joined #ruby
Takle has joined #ruby
supersym has joined #ruby
o010n9 has quit [Ping timeout: 245 seconds]
dx7iso has quit [Ping timeout: 244 seconds]
arescorpio has quit [Excess Flood]
adriancb has quit [Remote host closed the connection]
AndroUser466 has joined #ruby
CADBOT has joined #ruby
adriancb has joined #ruby
o010n9 has joined #ruby
<CADBOT> Hi all! I'm trying to build ruby 2.1.5, and I'm running into problems with long long
<CADBOT> it cannot compute sizeof
apeiros_ has joined #ruby
<pontiki> what OS, CADBOT ?
<CADBOT> Ubuntu 14.04 and gcc 4.8.2
davedev2_ has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
<pontiki> hmm, not sure -- i just built it on that OS with no worries
<CADBOT> Specifically, I'm using ruby-install
<CADBOT> The error in the log file though is about the missing long_long
<CADBOT> I could try using clang instead... but I'd rather figure out what's up XD
<pontiki> i think all it's doing is the usual configure - make - make install dance
adriancb has quit [Ping timeout: 250 seconds]
<pontiki> i have to say i don't know what that error would be about :/
<pontiki> beyond my ken
davedev24_ has quit [Ping timeout: 258 seconds]
<CADBOT> Hmm... I'll try doing it manually instead of using ruby-install and see if I get the same error
<epitron> >> "%b | %b" % [64, -64]
<eval-in__> epitron => "1000000 | ..1000000" (https://eval.in/237008)
<epitron> wat :)
davedev24_ has joined #ruby
mgberlin_ has joined #ruby
<epitron> this is weird too --
<epitron> >> 10.times.map { |n| 64[n] }.join
<eval-in__> epitron => "0000001000" (https://eval.in/237009)
<epitron> >> 10.times.map { |n| -64[n] }.join
<eval-in__> epitron => "0000001111" (https://eval.in/237010)
<epitron> 1's forever!
<epitron> >> 20.times.map { |n| -64[n] }.join
<eval-in__> epitron => "00000011111111111111" (https://eval.in/237011)
davedev2_ has quit [Ping timeout: 244 seconds]
mgberlin has quit [Ping timeout: 240 seconds]
thumpba has joined #ruby
thumpba has quit [Remote host closed the connection]
<epitron> oh wait, this is how twos compliment works, isn't it >_<
fivetwentysix has quit [Quit: fivetwentysix]
pika_pika has quit [Ping timeout: 258 seconds]
<CADBOT> \\\\\\\
* pontiki watches CADBOT make a quick escape
CADBOT has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
george2 has quit [Quit: ZNC - http://znc.in]
<epitron> :O
<epitron> how'd pontiki know that was going to happen
<epitron> HOW'D HE KNOW
<pontiki> he who?
ericmathison has joined #ruby
Lingo has joined #ruby
AndroUser466 has quit [Quit: good bye]
phutchins has joined #ruby
deryl has joined #ruby
AndroUser466 has joined #ruby
mgberlin_ has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
sargas has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
deryl has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
kiyote23 has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 240 seconds]
mgberlin has quit [Remote host closed the connection]
Kruppe has quit [Ping timeout: 255 seconds]
mgberlin has joined #ruby
Lingo has left #ruby ["Be back later ..."]
rshetty has quit [Remote host closed the connection]
mgberlin has quit [Ping timeout: 265 seconds]
rshetty has joined #ruby
<ericmathison> Before I post a bug report to bugs.ruby-lang.org, would someone mind double checking my assumption that &$ was supposed to be $& on line 4216 of string.c?
<ericmathison> oh, and bugs.ruby-lang.org is the correct place to report these sort of documentation errors right?
Scripore has quit [Ping timeout: 252 seconds]
rshetty has quit [Remote host closed the connection]
boadie has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
arup_r has joined #ruby
gh has joined #ruby
rshetty has joined #ruby
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
supersym has quit [Ping timeout: 244 seconds]
sevenseacat has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
george2 has joined #ruby
davedev2_ has joined #ruby
lxsameer has joined #ruby
supersym has joined #ruby
<dts|pokeball> no
<dts|pokeball> oops. sorry wrong channel
davedev24_ has quit [Ping timeout: 258 seconds]
LudicrousMango has joined #ruby
<dts|pokeball> is picassoo a bot?
sargas has quit [Quit: This computer has gone to sleep]
<Cat_1> yup
<Cat_1> spammer bot
<dts|pokeball> like prevents it or sends it?
rshetty has quit [Remote host closed the connection]
george2 has quit [Excess Flood]
renderful has joined #ruby
jaequery has joined #ruby
kiyote23 has joined #ruby
davedev2_ has quit [Ping timeout: 245 seconds]
LudicrousMango has quit [Ping timeout: 250 seconds]
jaequery has quit [Client Quit]
doritostains has quit [Quit: WeeChat 1.0.1]
Ballkenende has joined #ruby
doritostains has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
byprdct has quit [Ping timeout: 244 seconds]
rshetty has joined #ruby
Techguy305 has joined #ruby
Ballkenende has quit [Ping timeout: 258 seconds]
parabolize has joined #ruby
pen has quit []
Takle has joined #ruby
jottr has joined #ruby
doritostains has quit [Quit: WeeChat 1.0.1]
doritostains has joined #ruby
rshetty has quit [Remote host closed the connection]
doodlehaus has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby
doodlehaus has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
nicolastarzia has joined #ruby
apurcell has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
paramourne has joined #ruby
ta_ has joined #ruby
nicolastarzia has quit [Ping timeout: 240 seconds]
apurcell has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 258 seconds]
Cat_1 has quit [Remote host closed the connection]
tkuchiki has joined #ruby
kiyote23 has quit [Remote host closed the connection]
wolf4ood has quit [Quit: (null)]
mois3x has quit [Quit: mois3x]
tkuchiki has quit [Ping timeout: 252 seconds]
kiyote23 has joined #ruby
incomprehensibly has quit [Ping timeout: 240 seconds]
pen has joined #ruby
gh has quit [Quit: Leaving]
incomprehensibly has joined #ruby
Channel6 has joined #ruby
thumpba has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
chinmay_dd has joined #ruby
icebourg has quit []
Megtastique has quit []
fivetwentysix has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
thumpba has quit [Client Quit]
yeticry has joined #ruby
uber_hulk has joined #ruby
uber_hulk has quit [Client Quit]
lbrf has joined #ruby
fivetwentysix has quit [Client Quit]
windowlicker has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby
Dopagod has joined #ruby
lbrf has quit [Ping timeout: 256 seconds]
dx7iso has joined #ruby
koderok has joined #ruby
dx7iso has quit [Ping timeout: 245 seconds]
brahmadpk has joined #ruby
rshetty has quit [Remote host closed the connection]
koderok has quit [Client Quit]
yeticry has quit [Ping timeout: 240 seconds]
Ballkenende has joined #ruby
kiyote23 has quit [Remote host closed the connection]
yeticry has joined #ruby
sargas has joined #ruby
sevenseacat has quit [Ping timeout: 252 seconds]
Ballkenende has quit [Ping timeout: 256 seconds]
blizzy has quit [Ping timeout: 252 seconds]
ericmathison has quit [Quit: leaving]
russt has quit [Ping timeout: 250 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
hamakn has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
sargas has quit [Quit: This computer has gone to sleep]
kenneth has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Takle has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx33 has joined #ruby
Kricir has joined #ruby
Luthfifs has joined #ruby
Takle has quit [Remote host closed the connection]
kenneth has joined #ruby
chinmay_dd has quit [Quit: Leaving]
mostlybadfly has quit [Quit: Connection closed for inactivity]
jeanlinux has quit [Read error: Connection reset by peer]
jeanlinu_ has joined #ruby
Dopagod has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
jeanlinu_ has quit [Remote host closed the connection]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
decoponio has joined #ruby
dts|pokeball has quit [Ping timeout: 252 seconds]
D9 has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dts|pokeball has joined #ruby
D9 has quit [Max SendQ exceeded]
bricker`work has quit [Ping timeout: 256 seconds]
D9 has joined #ruby
chinmay_dd has joined #ruby
conniemj has joined #ruby
conniemj has quit [Ping timeout: 255 seconds]
Channel6 has quit [Quit: Leaving]
rippa has joined #ruby
devoldmx has joined #ruby
sevenseacat has joined #ruby
uber_hulk has joined #ruby
devoldmx33 has quit [Ping timeout: 250 seconds]
uber_hulk has left #ruby [#ruby]
devoldmx has quit [Ping timeout: 244 seconds]
kenneth has joined #ruby
mary5030 has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
m3rongiviAn has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
jottr has joined #ruby
sevenseacat has quit [Remote host closed the connection]
Ballkenende has joined #ruby
brahmadpk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 255 seconds]
dx7iso has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
Ballkenende has quit [Ping timeout: 272 seconds]
nicolastarzia has joined #ruby
dx7iso has quit [Ping timeout: 244 seconds]
_5kg has quit [Remote host closed the connection]
adriancb has joined #ruby
Takle has joined #ruby
vieq_ is now known as vieq
nicolastarzia has quit [Ping timeout: 245 seconds]
Obfuscate has quit [Quit: Obfuscate]
_5kg has joined #ruby
doodlehaus has joined #ruby
adriancb has quit [Ping timeout: 272 seconds]
max96at|off is now known as max96at
doodlehaus has quit [Ping timeout: 258 seconds]
devoldmx has quit [Remote host closed the connection]
mengu has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
subraminion has joined #ruby
fandi_ has quit [Ping timeout: 245 seconds]
sandelius has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
tkuchiki has joined #ruby
frog|OFF is now known as green-big-frog
Takle has joined #ruby
kenneth has joined #ruby
pen has quit []
mengu has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
lbrf has joined #ruby
pen has joined #ruby
Techguy305|2 has joined #ruby
Techguy305|3 has joined #ruby
fandi has joined #ruby
Akuma has joined #ruby
Techguy305 has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
fivetwentysix has joined #ruby
arietis has joined #ruby
brahmadpk has joined #ruby
Akuma has quit [Max SendQ exceeded]
ndrei has joined #ruby
Akuma has joined #ruby
banister has joined #ruby
lbrf has quit [Ping timeout: 272 seconds]
Techguy305|2 has quit [Ping timeout: 264 seconds]
Akuma has quit [Max SendQ exceeded]
Akuma has joined #ruby
fandi has quit [Ping timeout: 244 seconds]
o010n9 has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 240 seconds]
Akuma has quit [Max SendQ exceeded]
Akuma has joined #ruby
Akuma has quit [Max SendQ exceeded]
Akuma has joined #ruby
_ixti_ has quit [Ping timeout: 240 seconds]
petertretyakov_ has joined #ruby
Photism has quit [Quit: Leaving]
jimmyhoughjr has quit [Ping timeout: 244 seconds]
petertretyakov_ has quit [Quit: Be back later ...]
haroldwu has quit [Ping timeout: 240 seconds]
haroldwu has joined #ruby
Areessell has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
_ixti_ has joined #ruby
tagrudev has quit [Client Quit]
Luthfifs has quit [Read error: Connection reset by peer]
Ballkenende has joined #ruby
bluOxigen has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
max96at is now known as max96at|off
karmatr0n has joined #ruby
fandi has joined #ruby
ghostlines has joined #ruby
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ballkenende has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
ahtik has joined #ruby
max96at|off is now known as max96at
subraminion has quit [Quit: (null)]
fandi has quit [Ping timeout: 240 seconds]
ahtik has quit [Ping timeout: 250 seconds]
spider-mario has joined #ruby
haroldwu has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
haroldwu has joined #ruby
XxionxX has left #ruby [#ruby]
gr33n7007h has joined #ruby
druznek has joined #ruby
ta_ has quit [Remote host closed the connection]
ta has joined #ruby
ta has quit [Remote host closed the connection]
dc_ has joined #ruby
Obfuscate has joined #ruby
hrrz has joined #ruby
<hrrz> hi, i'm looking to build a super-fast rest api - any ideas ?
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arup_r> hrrz: Sinatra
deepy has quit [Remote host closed the connection]
<arup_r> picassoo: is spamming apeiros:
Ancient has joined #ruby
r0bby_ has joined #ruby
deepy has joined #ruby
petertretyakov_ has joined #ruby
hrrz has quit [Quit: Page closed]
robbyoconnor has quit [Ping timeout: 245 seconds]
yeticry has quit [Ping timeout: 245 seconds]
synire has joined #ruby
rshetty has joined #ruby
gr33n7007h has quit [Quit: Leaving]
cantonic has joined #ruby
mburns_ is now known as mburns
nicolastarzia has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
renderful has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
AndroUser466 has quit [Ping timeout: 272 seconds]
druznek has quit [Quit: Leaving]
druznek has joined #ruby
nicolastarzia has quit [Ping timeout: 265 seconds]
renderful has quit [Ping timeout: 250 seconds]
giuseppesolinas has joined #ruby
jmdade has quit [Quit: Textual IRC Client: www.textualapp.com]
mengu has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
petertretyakov_ has quit [Quit: Be back later ...]
mengu has quit [Read error: No route to host]
mengu has joined #ruby
petertretyakov_ has joined #ruby
Ballkenende has joined #ruby
petertretyakov_ has quit [Read error: Connection reset by peer]
petertretyakov has joined #ruby
tkuchiki has joined #ruby
duncannz has quit [Remote host closed the connection]
Ballkenende has quit [Ping timeout: 256 seconds]
mengu has quit [Ping timeout: 264 seconds]
<tejas-manohar> hey guys
<tejas-manohar> i have a little sinatra app but this is more of a ruby general question
tkuchiki has quit [Remote host closed the connection]
<tejas-manohar> when i'm eplxicilty converting this to a string and its printing as a string to STDOUT in server logs then how come .empty? won't work
tkuchiki has joined #ruby
D9 has quit [Quit: Leaving]
toretore has quit [Quit: This computer has gone to sleep]
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mengu has quit [Read error: No route to host]
tkuchiki has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
doodlehaus has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
deepy has quit [Changing host]
deepy has joined #ruby
lkba has joined #ruby
<apeiros_> tejas-manohar: subscribers[num] returns nil
doodlehaus has quit [Ping timeout: 258 seconds]
<tejas-manohar> apeiros_: omg lol
<tejas-manohar> apeiros_: i checked wrong thing at wrong time
<apeiros_> happens
mengu has quit [Remote host closed the connection]
lbrf has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
Akuma has quit [Ping timeout: 240 seconds]
ta has joined #ruby
lbrf has quit [Ping timeout: 244 seconds]
iamninja has quit [Quit: ZZZzzz…]
siwica1 has quit [Remote host closed the connection]
siwica has joined #ruby
ghostlines has joined #ruby
sandelius has joined #ruby
despai has joined #ruby
amundj has joined #ruby
ta has quit [Ping timeout: 244 seconds]
jeanlinux has joined #ruby
tkuchiki has joined #ruby
ahtik has joined #ruby
<tejas-manohar> apeiros: my sinatra app is a subscription service that texts out the top imgur gif daily -- i want to create a process that loops thru orchestrate db (ik how to get phone numbers as an array) and texts each person (ik code to do this) every day at x time (how do i manage reocurring events on time x)
Akuma has joined #ruby
jeanlinux has quit [Ping timeout: 265 seconds]
<tejas-manohar> apeiros: ^ additioanlly, i'll be deploying to heroku. i was thinking cron/heroku scheduler? does that seem right? but since cron/scheduler works on every x minutes/seconds/miliseconds that's not exactly right i think... i want to make it shoot out at a certain time of the day every day and wil restart app often when deploying new versions
tkuchiki has quit [Ping timeout: 240 seconds]
<tejas-manohar> not often, but want to be able to at leisure
Akuma has quit [Max SendQ exceeded]
katlex has joined #ruby
<tejas-manohar> maybe some sort of long-running process?
<katlex> hello, where is the rails channel?
Akuma has joined #ruby
<katlex> #rails says inv only
Takle has quit [Remote host closed the connection]
<tejas-manohar> katlex: register your nickname
<tejas-manohar> katlex: but the rails channel is #rubyonrails btw
Akuma has quit [Max SendQ exceeded]
<katlex> tejas-manohar, ah, thanks ..on their web irc they have: Network : Freenode Server : bear.freenode.net Channel : #rails
<apeiros_> #rails forwards to #rubyonrails, but #rubyonrails requires nickreg, hence the "invite only" error.
<katlex> oh okay, thank uou
<tejas-manohar> oh, didn't know that :)
Akuma has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
<tejas-manohar> but yeah either way, you gotta register username w/ nickserv
<apeiros_> #ror too btw.
r0bby_ has joined #ruby
LouisRoR has joined #ruby
<tejas-manohar> oh apeiros_: earlier i mentioned you w/ a question but forgot _ in your name
TgMts has joined #ruby
<apeiros_> tejas-manohar: I get highlighted with that too
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tejas-manohar> ok np
fandi has joined #ruby
Akuma has quit [Max SendQ exceeded]
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Akuma has joined #ruby
katlex is now known as alex285
<apeiros_> tejas-manohar: cron can fire at specific times each day.
sevenseacat has joined #ruby
Akuma has quit [Max SendQ exceeded]
Akuma has joined #ruby
<tejas-manohar> apeiros_: but heroku O.o
<tejas-manohar> apeiros_: does https://github.com/javan/whenever actually use cron jobs...
<tejas-manohar> apeiros_: hmm it does use self.cron in its code so i guess i can't run this on heroku?
<apeiros_> tejas-manohar: I don't know heroku, and I don't know whenever
<tejas-manohar> apeiros_: np but say i want to explicitly avoid cron, do you have any other ideas? otherwise its fine just wondering
<godd2> Here's a random thought: Intentionally introduce easy-to-fix, low-severity bugs into your open source projects so that less experienced programmers can be part of contributing to the code base.
dc_ has quit [Remote host closed the connection]
<wasamasa> one does not need to do that intentionally
<apeiros_> tejas-manohar: you can always reinvent cron in ruby
picassoo has quit [Ping timeout: 264 seconds]
<godd2> wasamasa you make a good point
<wasamasa> I stumble upon bugs all the time when using new utilities
<wasamasa> even more so when using emacs
<apeiros_> IMO not a good idea @ godd2
<wasamasa> and it's kind of fun
phutchins has joined #ruby
picassoo has joined #ruby
<wasamasa> I've handed in three bug reports yesterday for packages related to it :P
<tejas-manohar> apeiros_: hmm, i could... so how does it work exactly? run a clock to tick every second or someting?
<wasamasa> so, to summarize my point, I assume teaching people rigor and debugging will result in more bugs getting found and fixed
<apeiros_> tejas-manohar: that's your design decision
<tejas-manohar> apeiros_: sure
<godd2> wasamasa well the goal of my idea was to encourage a more techincally diverse ecosystem of contributors.
Techguy305|3 has quit [Ping timeout: 256 seconds]
phutchins has quit [Ping timeout: 240 seconds]
dc_ has joined #ruby
Takle has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
TgMts has joined #ruby
TgMts has quit [Read error: Connection reset by peer]
FooMunki has joined #ruby
kirun has joined #ruby
nfk has joined #ruby
oleo is now known as Guest2185
oleo__ has joined #ruby
Ballkenende has joined #ruby
hamakn has quit [Remote host closed the connection]
codecop has joined #ruby
hamakn has joined #ruby
Guest2185 has quit [Ping timeout: 244 seconds]
TgMts has joined #ruby
brahmadpk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ballkenende has quit [Ping timeout: 245 seconds]
petertretyakov has quit [Quit: Be back later ...]
Synchunk has joined #ruby
petertretyakov has joined #ruby
aswen has joined #ruby
Jackneill has joined #ruby
brahmadpk has joined #ruby
yeticry has joined #ruby
charliesome has quit [Quit: zzz]
<Synchunk> Hey, I'm new to ruby and I'm trying to access a method from a Sinatra block, but I'm getting a NoMethodError. I tried declaring the method as "public", that didn't change anything. Any ideas? https://gist.github.com/anonymous/d98d67d337503b6286a9
commmmodo has joined #ruby
Spami has joined #ruby
<Synchunk> Also.. any ops around? A bot in this channel seems to spam people per PM when they write anything in here.
fivetwentysix has quit [Ping timeout: 245 seconds]
<godd2> Synchunk you've defined responses as an instance method, but you're not calling it from an instance
doge has joined #ruby
<Synchunk> Oh. Is that like.. static in Java? *embarassed*
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<godd2> Synchunk yes, when you extend a module, it adds static methods
aswen has quit [Ping timeout: 245 seconds]
<Synchunk> Should I try def self.responses?
<godd2> That would define it as a class method yes
<godd2> that's what we call static methods in Ruby
TgMts has joined #ruby
Neomex has joined #ruby
<godd2> apeiros_ dont worry, I agree it was a terrible idea to add bugs like that :P
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Synchunk> Hmmm, still the same error. Do I need to make it public or something?
<godd2> methods are public by default
doge has left #ruby ["I LOVE LAMP"]
Deele has joined #ruby
<Synchunk> Hmmmm
aswen has joined #ruby
<godd2> Synchunk are you using cinch-plugins ?
<Synchunk> yeah
<Synchunk> This is supposed to become a GitHub plugin that sends your pulls to a channel
<godd2> Synchunk oh cool, yea I've seen those before. There's one in the #opal channel
<Synchunk> And in #znc :)
aswen has quit [Ping timeout: 245 seconds]
<godd2> Synchunk can you modify your gist to closer to what you have now?
picassoo has quit [K-Lined]
<godd2> oh nvm, you made an anon one. just make a new one
<Synchunk> ^ that was the bot I was talking about, hah
<Synchunk> mhm
charliesome has joined #ruby
sysTemz- has joined #ruby
<Synchunk> basically, I only changed def responses() to def self.responses() - I also tried calling the method with "self." which didn't work either. Pasting now :)
charliesome has quit [Client Quit]
<Synchunk> Not anonymous this time: https://gist.github.com/Synchunk/606ba5215dbf8fcfa15a
cantonic has quit [Quit: cantonic]
<Synchunk> modified a few other things but the method code should (apart from the "self") be the same
oleo__ has quit [Quit: Verlassend]
<Synchunk> (the original code is really long as it already contains a few event messages, didn't want to post everything)
blizzy has joined #ruby
* Synchunk forgot to enable syntax highlighting, sorry!
jottr has joined #ruby
oleo__ has joined #ruby
oleo__ is now known as oleo
alex285 has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
<Synchunk> godd2, should I try your fork? :)
<godd2> no I was just reformatting to how I would code it
<Synchunk> Ah, okay ;)
jottr has quit [Ping timeout: 240 seconds]
despai has quit [Quit: This computer has gone to sleep]
kish` has quit [Changing host]
kish` has joined #ruby
gr33n7007h has joined #ruby
<Synchunk> I think.. I... did something. One moment..
<Synchunk> It's working! :o
<Synchunk> Method: def self.responses(type, info)
<Synchunk> Call: Cinch::GitHub.responses(type, info)
lkba_ has joined #ruby
cantonic has joined #ruby
<Synchunk> godd2, thanks for your help with the self keyword :)
jheg has joined #ruby
ghostlines has joined #ruby
<godd2> no problem, though I'd still put that on an index card to look up later
freerobby has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<godd2> My hunch is that you shouldn't have to call the class name explicitly
r0bby_ has quit [Quit: Konversation terminated!]
nicolastarzia has joined #ruby
r0bby_ has joined #ruby
<godd2> since you're "inside" that class. but maybe it has to do with the scope of the block. I'm not sure
rshetty has quit [Remote host closed the connection]
TgMts has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
claptor has quit [Quit: this channel is bakas]
gr33n7007h has quit [Remote host closed the connection]
georgesmith has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
nicolastarzia has quit [Ping timeout: 250 seconds]
arietis has joined #ruby
<godd2> looks like Sinatra passes that block around a few times before it finally calls define_method passing the block one last time. by then the receiver is Sinatra::Base so that block doesn't know who Cinch::Github is anymore (unless you reference explicitly)
n008f4g_ has joined #ruby
georgesmith has quit [Quit: georgesmith]
<Synchunk> Hmmm okay
<Synchunk> Confusing :)
freerobby has quit [Quit: Leaving.]
<Synchunk> Thanks for all your help :3
Joufflu has quit [Ping timeout: 258 seconds]
<godd2> always here to help! (when I'm awake)
TgMts has quit [Quit: No Ping reply in 180 seconds.]
pengin has joined #ruby
TgMts has joined #ruby
freerobby has joined #ruby
mostlybadfly has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cache_Money has quit [Quit: Cache_Money]
ARCADIVS has quit [Quit: ARCADIVS]
valeriansaliou has joined #ruby
TgMts has quit [Client Quit]
despai has joined #ruby
TgMts has joined #ruby
sevenseacat has quit [Remote host closed the connection]
vt100 has quit [Ping timeout: 255 seconds]
Hobogrammer has quit [Ping timeout: 245 seconds]
saltsa has quit [Quit: system upgrade]
petertretyakov has quit [Quit: Be back later ...]
lbrf has joined #ruby
pengin has quit [Remote host closed the connection]
wolf4ood has joined #ruby
xymbol____ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
charliesome has joined #ruby
lbrf has quit [Ping timeout: 250 seconds]
xymbol___ has quit [Ping timeout: 258 seconds]
freerobby has quit [Quit: Leaving.]
TgMts has joined #ruby
ta has joined #ruby
TgMts has quit [Client Quit]
despai has quit [Quit: This computer has gone to sleep]
ghostlines has joined #ruby
phutchins has joined #ruby
tvw has joined #ruby
picassoo has joined #ruby
TgMts has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Calmoto has joined #ruby
FooMunki has quit [Quit: FooMunki]
yfeldblum has joined #ruby
Hello_World has joined #ruby
<Hello_World> hi
<Synchunk> Hello, Hello_World!
<Synchunk> uh, is there an easy way for testing if a multidimensional array contains a key, for example info['parent']['child'] (I'm trying to assign it to a variable, but assign nil instead of it doesn't exist)
jenrzzz has joined #ruby
<Hello_World> you mean checking if it contains a value/element?
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
<Synchunk> yeah, something like: set the child variable to info['parent']['child'], if that doesn't exist, set child to nil instead
<Synchunk> or don't set child at all..
<godd2> Synchunk variables are nil by default, and hash and array lookups return nil if they dont find anything
petertretyakov has joined #ruby
ta has quit [Ping timeout: 265 seconds]
<Hello_World> I don't follow
<Synchunk> but if parent is nil and I try to access nil['child'], won't that raise an exception?
sysTemz- has quit [Quit: oooooh]
yfeldblum has quit [Ping timeout: 244 seconds]
<godd2> Synchunk oh yea that's true
<Synchunk> Hello_World, trying to access var['parent']['child'] without getting an exception if parent doesn't exist
<Synchunk> Hello_World, and without manually checking if parent exists, if possible
<Hello_World> Synchunk: so the idea is to loop through a 2d array and check if the calue at index[parent][child] equals the paramenter, return true?
<Synchunk> Almost. I want to set the parameter to index[parent][child]
<Synchunk> and don't set it if either parent or child are missing
oleo has quit [Ping timeout: 258 seconds]
<godd2> Synchunk watch this: https://www.youtube.com/watch?v=T8J0j2xJFgQ
<Synchunk> Nice :)
<Hello_World> synchunk , but what value do you want to pass into index[parent][child]?
zorak8 has joined #ruby
<Hello_World> like, a value from a method argument or something?
ponga has joined #ruby
<Synchunk> parent is 'parent' and child is 'child', hardcoded strings
ponga has quit [Changing host]
ponga has joined #ruby
jamesaxl|2 is now known as jamesaxl
<Synchunk> extracted = arr['parent']['child']
<Synchunk> ^ that code, except that it shouldn't crash if arr['parent'] doesn't exist
<Synchunk> ^ and without tons of nil checks (which seems to be exactly what the video is about :P)
<Hello_World> oh I see
<godd2> at 22 minutes into that vid, he offers a couple solutions or your problem Synchunk
<Synchunk> \o/
aswen has joined #ruby
<Hello_World> i guess maybe begin /n ext = arr[parent][child] rescue puts 'does not exists' end
charliesome has quit [Quit: zzz]
<Hello_World> begin \n ext = arr[parent][child] \n rescue \n puts 'does not exists' \n end
multi_io_ has quit [Quit: leaving]
<Hello_World> i don't know if that help
karmatr0n has joined #ruby
<Synchunk> that should work!
<Hello_World> can you access array indices by strings?
seaned has quit [Quit: …was abducted by aliens.]
<Hello_World> or are these strings hard-coded to ints?
jack_rabbit has quit [Ping timeout: 240 seconds]
<Synchunk> nope, they're strings
charliesome has joined #ruby
<Hello_World> okay so wouldn't that be a hash rather than an array?
<Synchunk> oh, yeah...
<Synchunk> you're right
* Synchunk hides.
karmatr0n has quit [Ping timeout: 244 seconds]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Synchunk> Searched for the same question with "Hash" instead of "Array" and found http://stackoverflow.com/questions/10130726/ruby-access-multidimensional-hash-and-avoid-access-nil-object
<Synchunk> :)
<Hello_World> ok yeah that works better I suppose
hamakn has quit [Remote host closed the connection]
phutchins has joined #ruby
pen has quit []
oleo has joined #ruby
rshetty has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
<Hello_World> is ruby the best language?
pen has joined #ruby
<godd2> Hello_World yes :)
<Hello_World> ok
brahmadpk has quit [Quit: Textual IRC Client: www.textualapp.com]
petertretyakov has quit [Quit: Be back later ...]
brahmadpk has joined #ruby
neektza has joined #ruby
Akuma has quit [Quit: So long sukkas!]
Guest64 has joined #ruby
brahmadpk has quit [Client Quit]
r0bby_ has quit [Ping timeout: 255 seconds]
oleo has quit [Excess Flood]
oleo has joined #ruby
charliesome has quit [Quit: zzz]
ghostlines has joined #ruby
arietis has joined #ruby
yfeldblum has joined #ruby
Takle has joined #ruby
<Hello_World> were they working before?
<wasamasa> Hello_World: honestly though, what answer did you expect on this channel
oleo has quit [Max SendQ exceeded]
dx7iso has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<Hello_World> wasamasa: what do you mean?
oleo has joined #ruby
<wasamasa> Hello_World: I'll leave that to you as an exercise why people on the #ruby channel state their language is the best
<Fraeon> It's a tool
<Fraeon> Like a hammer
<Fraeon> Good for some things, bad for others
aswen has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
Ballkenende has joined #ruby
dx7iso has quit [Remote host closed the connection]
jaequery has joined #ruby
<Hello_World> wasamasa: oops im using new client software I was reading that in the context of a different channel
supersym has quit [Ping timeout: 256 seconds]
kobain has joined #ruby
ahtik has quit [Ping timeout: 250 seconds]
<Hello_World> wasamasa: do you prefer ruby or another language?
<wasamasa> Hello_World: I prefer ruby for the things it's good for
<apeiros_> Fraeon: if ruby is a hammer, all problems are a nail!
Ballkenende has quit [Ping timeout: 245 seconds]
green-big-frog is now known as frog|OFF
<Fraeon> For some problems you might need to use an assplug
<Fraeon> (Forth)
supersym has joined #ruby
<apeiros_> you can use a hammer to ram it in!
<apeiros_> needs more !. here: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<Hello_World> oh yeah I was listening to the ruby rogues as I have been for a while and they just keep listing ways that ruby is not good.
lbrf has joined #ruby
<Hello_World> So what is ruby especially good at (apart from wed dev)
<certainty> Hello_World: writing hello world programs
pen has quit []
<Hello_World> presumable
<Hello_World> presumable
russt has joined #ruby
<apeiros_> writing fizzbuzz & fibonacci
<certainty> Hello_World: but apart from that. It's a very practical and reasonably concise language (that's what i like about it).
pen has joined #ruby
<Hello_World> but it is no better at fizz buzz than python is
<certainty> one of its strengths is probably it dynamicity (is that a word?)
<apeiros_> to feed or not to feed, that is the question
<Hello_World> in that everything can be modified at run time
<certainty> of course to feed
<Hello_World> Yeah I heard metaprogramming in ruby is awesome
lbrf has quit [Ping timeout: 240 seconds]
<Hello_World> but metaprogramming is mostly used for IDEs and I imagine ruby isn't used for IDEs much
<certainty> i don't know where metaprogramming is mostly used for. I use it sometimes. I don't build IDEs
<certainty> s/ere/at/
yfeldblum has joined #ruby
<Hello_World> I quite like to conciceness and syntax of ruby
<Hello_World> but the syntax of a language doesn't determine its applications or does it?
<certainty> hmm i'm unsure
<godd2> metaprogramming can be used to call methods that dont exist. it's how rails used to call table fields on sql tables like user.email without you writing def email in the user class
* apeiros_ uses metaprogramming to make those methods exist
<Hello_World> why would you want to call methods that don't exist?
<Hello_World> to have a preexisting framework for a multitude of uses that may never come into being?
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<godd2> Hello_World so that you can treat sql fields like method calls even with new tables
<Hello_World> oh I see
<apeiros_> so you can receive methods for things you don't know at the time of writing that they will be needed as methods
<godd2> in a sense it's saying "no matter what method is called, look up that method in the table and if it's a field name, grab the value"
giuseppesolinas has joined #ruby
FooMunki has joined #ruby
leonmaia_ has joined #ruby
<Hello_World> what are 'dynamic languages' good at, besides web dev?
<Hello_World> rapid prototyping?
<certainty> explorative stuff
<apeiros_> Hello_World: what are static languages good at, besides writing OSes?
<godd2> Hello_World dynamic only says something about the type system
<Hello_World> I guess I would say embedded software, gaming, oses, graphical applications, etc
<certainty> godd2: well i don't know i'd count introspection capabilities in here too
<apeiros_> ruby is good for everything except drivers & OSes
<certainty> in the dynamic vs. static thing.
<godd2> Yea I wouldn't recommend Ruby for the Mars Rover
<certainty> also scoping
<apeiros_> games: depends already what kind of game. if you want to write something like assassins creed, yeah, then ruby won't cut it.
gsd has joined #ruby
<apeiros_> if you want to write something like chess - no problem.
<Hello_World> what about high-performance programs like games or daws stuff like that needs c++
gsd has quit [Client Quit]
<godd2> Hello_World here's a game written in Ruby: http://nicklink483.github.io/dare/tutorial
<apeiros_> Hello_World: do you write such programs?
workmad3 has joined #ruby
picassoo has quit [K-Lined]
<Hello_World> apeiros: no
<certainty> yow workmad3
<apeiros_> Hello_World: then why does it matter to you?
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsd has joined #ruby
jottr has joined #ruby
<apeiros_> Hello_World: do you not buy the hammer because you think "oh my, but that won't build me a skyscraper"?
rshetty has quit [Ping timeout: 244 seconds]
<Hello_World> Well, I would like to write some embedded programs for fun
AlexRussia has quit [Ping timeout: 256 seconds]
Areessell has joined #ruby
<apeiros_> then you probably want none of java, python, ruby
<certainty> Hello_World: it's also a good choice if uncertain domains. Like when you don't know much about what you will need
<certainty> in
<Hello_World> Java was originally designed as an embedded language
dx7iso has joined #ruby
oleo has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
<Hello_World> godd2: thats a cool app
leonmaia has joined #ruby
dx7iso has quit [Read error: Connection reset by peer]
dx7iso has joined #ruby
leonmaia_ has quit [Ping timeout: 240 seconds]
<apeiros_> Hello_World: um, where did you hear that nonsense?
<Hello_World> apeiros: I was listening to a speech by james gosling
Aryasam has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
ravster has joined #ruby
<apeiros_> are you sure he said *embedded*? because that's a resource constrained env. java makes about the least sense there.
<Hello_World> yeah
leonmaia has left #ruby [#ruby]
<certainty> java used to run in washing machines
<Hello_World> By the time it became public it was mostly targeted for the internet
<Hello_World> But originally java was supposed to replace c++
<certainty> at least that's rumor
<Hello_World> But I guess it was too slow
<apeiros_> you see, even embedded java wants 32MB+ RAM
ghostlines has joined #ruby
<apeiros_> that's a ridiculous amount for many embedded systems
<Hello_World> well what about mRUBY
<apeiros_> well, seems there's now a Micro Edition which will run with 8MB too
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lkba_ has quit [Ping timeout: 255 seconds]
<certainty> i know it's used to contrel kidney dialyse systems
<Hello_World> thats supposed to be ruby on embedded systems right?
<certainty> control, even
<apeiros_> I think the idea of "embedded" mruby is more as in "embedd in your C/C++ app". like e.g. WoW uses Lua.
<apeiros_> but yeah, I could imagine that mruby could be used on sufficiently equipped embedded devices.
arietis has joined #ruby
<apeiros_> but I didn't keep track wrt mruby
nicolastarzia has joined #ruby
<certainty> does the OS count as an app?
oleo has joined #ruby
LouisRoR has quit [Ping timeout: 256 seconds]
<Hello_World> in any case, the idea is so that you can program on embedded systems getting by without c/c++
<Guest64> What's wrong with C?
<Hello_World> Memory management I guess
<Guest64> Are you familiar with C?
<Hello_World> As long as there has been C there have been people trying to figure out how to code in it
AlexRussia has joined #ruby
<Hello_World> I took a course in c
<Guest64> So you've written some simple things in C before?
<Hello_World> yup I've written some search implementations and data structure implementations
<Guest64> So what's wrong with C? It's a great language.
nicolastarzia has quit [Ping timeout: 240 seconds]
<Hello_World> its fun to program in c
<Guest64> Well there you go.
spastorino has joined #ruby
<Hello_World> theres nothing wrong with c, I was just saying that mruby is written to avoid having to write a program in c++
<Hello_World> I wasn't talking about myself personally
<Guest64> Well mruby is intended for you to embed in a C or C++ app.
<Guest64> But it comes with an interpreter and an IRB as examples
<Hello_World> so if you use mruby than you write less c++?
<certainty> every C programmer should be obliged to take at least an introductionary course in software security
<certainty> it's so damn hard to write secure software with it. Writing secure software is a reasonably hard task in almost every PL but C makes it even harder
<Hello_World> huh
<Hello_World> even harder than c++?
hamakn has joined #ruby
Areessell has quit [Quit: leaving]
<certainty> Hello_World: yes. But they're in the same ballpark
<certainty> obviously since they share alot
jheg has quit [Quit: jheg]
<Guest64> If you use mruby, then your C or C++ app can call ruby scripts.
<Hello_World> right - scripts that would otherwise have to be written in c++!
<Guest64> Scripts aren't typcally written in C or C++.
<Hello_World> what are they written in?
<Hello_World> for embedded programming that is
<Guest64> Scripts are written in things like Ruby, bash, AppleScript, Python, Lua, etc.
oleo has quit [Ping timeout: 244 seconds]
<Guest64> Lua's supposed to be a fast scripting language.
<Hello_World> does lua run on embedded programs?
jack_rabbit has joined #ruby
<Guest64> With good metaprogramming
<Guest64> Look it up, decide for yourself. Go to the Lua website.
<Guest64> Plenty of examples on what it's used for over there.
LouisRoR has joined #ruby
<certainty> some schemes are also frequently used as embedded languages
<certainty> just for the record
<Hello_World> my point is that scripts that you write in mruby would have to be written in c++ if mruby didn't exist (or a similar alternative)
<workmad3> lua is pretty popular as an easily embeddable scripting language for games
<Hello_World> and so if people were really content programming embedded systems with c++ than they wouldn't come up with things like mruby
<Guest64> No, you don't write scripts in C or C++. Then it's not a "script" anymore.
<workmad3> Hello_World: I think you're conflating the term 'embedded' as its used in 'embedded systems' and as it's used in 'embeddable scripting language'
<Hello_World> no it would be called something else
<workmad3> Hello_World: they're two different things
<Guest64> workmad +1
<Hello_World> Yeah I mean to have been saying embedded systems
<certainty> i use ruby to embedd my bugs
<Guest64> Hello_World, you could just write your scripts in Shell.
Areessell has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<workmad3> Hello_World: it would be rare and unusual to embed a scripting language like ruby or lua into an embedded systems project... the hardware constraints are normally too tight to allow the sort of overheads that mruby or lua would require
lkba has joined #ruby
elastik has joined #ruby
<certainty> and as almost every language has a way to invoke the shell, it's probably the most widely available embeddable scripting language
<Areessell> Uhh MRuby is meant for embedded systems
<Guest64> Depending on how constrained the hardware is. You'd just use C for complex software and Shell for simple scripts.
<workmad3> Areessell: isn't mruby meant for being embedded in C++ as a scripting language?
TgMts has joined #ruby
<workmad3> (or C)
<Guest64> workmad3, that's what it says on the github page
<certainty> uh, C for complex software. shudder :)
<certainty> but it's done anyway
<Areessell> What does C++ have to do wit it? I'ts written in pure C
<Guest64> "mruby can be linked and embedded within your application. We provide the interpreter program "mruby" and the interactive mruby shell "mirb" as examples."
<Hello_World> mruby targets game developers (to use instead of Lua), embedded application developers (devices, TV, phones..) and small memory footprint server applications (instead of JS for instance).
hmsimha has joined #ruby
<Hello_World> I was just saying c++ as an example
<Hello_World> I could have said c
dangerou_ has joined #ruby
<workmad3> ah yeah, I forget that things like set-top boxes and tvs count as embedded system devices nowadays... I was thinking in terms of remote sensors, pacemakers, etc :)
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Areessell> Have you ever played wround with it?
<certainty> with pacemakers? god no!
<Areessell> lol
<workmad3> hehe
dangerou_ has quit [Client Quit]
<certainty> i don't know about this stuff but isn't realtime stuff also pretty much a requirement in embedded things?
<certainty> also using the word stuff often, makes me sound like a professional
<Hello_World> But in the future don't you think we could use more scripting languages for embedded systems?
<Areessell> MRuby compiles to machine code, yanno that right? It's pretty damn fast
<workmad3> certainty: can be... but in things like mobiles there can be a good distinction between the hard-realtime stuff and the rest of the system
<workmad3> Areessell: realtime != fast
<certainty> workmad3: now i was talking about sensors, pacemakers and things
jamooo has quit [Remote host closed the connection]
<certainty> :)
<workmad3> Areessell: realtime (or at least hard-realtime) == absolute constraints on the amount of time certain operations can take before the system is effectively a catastrophic failure
<Hello_World> or maybe the constrains of hardware will always keep it as C/C++
<certainty> Hello_World: yeah for tvs and mopile phones and such things. I think thats a reasonable assumption to make
<workmad3> on phones, the GSM chips are hard-realtime... and they're allowed to interrupt the application threads at pretty much any time they want
<certainty> anyway, time to make cookies with the kids
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<Hello_World> bye
<Guest64> No, for those kinds of embedded things, your programming is pressed directly into the silicon.
<Areessell> Press it right in
hmsimha has quit [Ping timeout: 252 seconds]
<workmad3> Guest64: flashable FPGAs are getting more common for a lot of these things
<Hello_World> yeah I sure you could press a scripting language into silicon if you wanted
<workmad3> Guest64: because the devs realise it's useful to be able to reprogram them without pressing more chips :)
<Guest64> I don't think things like pacemakers and TV remotes are running a full-fledged OS with a shell.
TgMts has joined #ruby
<Guest64> Those are devices that never need to be updated or reprogrammed, so their programming is built right in.
Takle_ has joined #ruby
<Hello_World> less bugs that way i guess
<workmad3> Guest64: pacemakers nowadays do accept remote code updates, I believe
<workmad3> Guest64: at least in limited forms
<Guest64> That's kind of scary. Imagine your pacemaker gets a virus :(
<workmad3> imagine your pacemaker had a bug and you needed open-heart surgery to replace it?
<Hello_World> ye that does seem problematic
pandaant has quit [Remote host closed the connection]
gregf has joined #ruby
rshetty has quit [Remote host closed the connection]
<Guest64> If your pacemaker has a bug, well, then someone's liable for death already.
Takle has quit [Ping timeout: 258 seconds]
<workmad3> Guest64: we're not talking OTA wifi updates here though... we're talking about special frequency data-transmissions via short-range electromagnetic pulses ):
<Guest64> Liable for criminal negligence rather.
<workmad3> *:)
rtbt has joined #ruby
TgMts has quit [Client Quit]
<Guest64> Cyanogenmod, now coming to pacemakers near you!
jack_rabbit has quit [Ping timeout: 245 seconds]
<rtbt> How would I define variables in a app based on the input of the user, such as if I wanted to make an email app that sent an email the user would type "app.rb <email>"?
<Guest64> Includes Lollipop update!
TgMts has joined #ruby
<Guest64> rtbt, you mean passing arguments?
<rtbt> Guest64: basically, yes.
<Guest64> ARGV
<Guest64> I think.
<Guest64> I'm not an experienced Ruby developer :-)
hamakn has quit [Remote host closed the connection]
<rtbt> Alright, thanks :)
<Guest64> But I think that's what you're looking for
Ballkenende has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hello_World> ls
lxsameer has quit [Quit: Leaving]
davedev24_ has joined #ruby
mjuszczak has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
dx7iso has quit [Remote host closed the connection]
Ballkenende has quit [Ping timeout: 244 seconds]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
TgMts has joined #ruby
mrap has joined #ruby
mrap has quit [Client Quit]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
maletor has joined #ruby
TgMts has quit [Client Quit]
mengu__ has joined #ruby
ta has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
Kricir has joined #ruby
TgMts has joined #ruby
LouisRoR has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
<Hello_World> hello
mengu has quit [Ping timeout: 240 seconds]
m3rongiviAn has joined #ruby
xenomorph is now known as {xenomorph}
{xenomorph} is now known as xenomorph
maletor has quit [Ping timeout: 255 seconds]
elastik has quit [Remote host closed the connection]
gaboesquivel has joined #ruby
mroach has quit [Quit: mroach]
ta has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
mroach has joined #ruby
<ponga> Hello_World
gaboesquivel has quit [Ping timeout: 245 seconds]
Hello_World has quit [Ping timeout: 240 seconds]
elaptics`away is now known as elaptics
TgMts has quit [Quit: No Ping reply in 180 seconds.]
frog|OFF is now known as green-big-frog
m3rongiviAn has quit [Ping timeout: 258 seconds]
Kricir has quit [Remote host closed the connection]
TgMts has joined #ruby
narph has joined #ruby
matty1234 has joined #ruby
felltir has joined #ruby
mjuszczak has quit []
m3rongiv1An has joined #ruby
DadoCe has joined #ruby
byprdct has joined #ruby
mrap has joined #ruby
max96at is now known as max96at|off
hamakn has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
pika_pika has joined #ruby
FooMunki has quit [Quit: FooMunki]
Aryasam has quit [Ping timeout: 245 seconds]
mbwe has quit [Quit: WeeChat 0.4.2]
lbrf has joined #ruby
oleo has joined #ruby
FooMunki_ has joined #ruby
m3rongiv1An has quit [Quit: Lost terminal]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
m3rongiv1An has joined #ruby
kasperti_ has joined #ruby
FooMunki_ has quit [Ping timeout: 255 seconds]
lbrf has quit [Ping timeout: 265 seconds]
TgMts has joined #ruby
m3rongiv1An has quit [Client Quit]
oleo has quit [Ping timeout: 240 seconds]
blizzy has quit [Ping timeout: 252 seconds]
<shevy> hello ponga
<ponga> oh
<ponga> hi shevy
deryl has joined #ruby
claw has quit [Ping timeout: 240 seconds]
<ponga> shevy: im installing 2.2.0rc1
apeiros has quit []
<shevy> does it work?
yfeldblu_ has quit [Remote host closed the connection]
felltir has quit []
ghostlines has joined #ruby
<ponga> shevy i said im insatlling ser
felltir has joined #ruby
yfeldblum has joined #ruby
<shevy> does it work?
<shevy> :-)
felltir has quit [Client Quit]
<shevy> sorry I can't wait
apeiros has joined #ruby
Techguy305 has joined #ruby
xenomorph is now known as {xenomorph}
<ponga> have patience ser
dc_ has quit [Remote host closed the connection]
gaboesquivel has joined #ruby
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ponga> i hear that 2.2.0rc1 isn't working for you shevy
<ponga> did you fix it yet?
rohit has joined #ruby
<shevy> I didn't try again
<ponga> wtf
<ponga> shevy:
<shevy> I need smarter people whose 2.2.x will work
<shevy> then they can tell me why it does not work for me
<ponga> i couldn't install it via rvm
<ponga> it gets error
<shevy> \o/
<ponga> is it same as you shevy
<shevy> I could install it
zorak8 has quit [Ping timeout: 264 seconds]
<shevy> nope
<shevy> for me it failed for yaml files
<ponga> The requested url does not exist(22): 'http://cache.ruby-lang.org/pub/ruby/./ruby-2.2.0rc1.tar.bz2'
<ponga> da fuck?!
yfeldblum has quit [Ping timeout: 255 seconds]
<ponga> ok i can't fix that lol
<shevy> huh
<shevy> I used this URL:
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0-rc1.tar.gz
TgMts has quit [Quit: No Ping reply in 180 seconds.]
gaboesquivel has quit [Read error: Connection reset by peer]
<shevy> the problem with yaml is that it is critical for me to continue working with invalid yaml files. I made the mistake to store all my configuration dataset in yaml file, and ruby generates rc-files and other files for bash etc.., hence why I needed syck. tenderlove made a syck gem which works fine on 2.1.5
TgMts has joined #ruby
<certainty> shevy: are you going to convert all your yaml config to some other format or will you continue using invalid yaml?
rshetty has joined #ruby
<shevy> well
<shevy> I like the simplicity of yaml
<shevy> I dislike that it forces you into unicode
<ponga> ah hah
hamakn has joined #ruby
<shevy> certainty yaml is rather efficient for storing what is necessary. I also get ruby data structures through yaml
<shevy> certainty I don't really know of another format that can compete with yaml there. json always looked uglier, XML is the worst
<ponga> thumbs up shevy for XML is the worst
<crome_> there is always jsonx
<crome_> it beats everything out there
<shevy> certainty perhaps I will just dig into psych and use a patch to allow it to not reject invalid yaml. syck didn't care about unicode vs. non-unicode
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> omg
<shevy> that is json in XML???
<certainty> shevy: hmm sounds not like good (painless) future
zorak8 has joined #ruby
<shevy> certainty ah, I had that with ruby 1.8.7, it worked super well for me. I could only switch because of tenderlove's gem - who knows, perhaps he can update syck too :D
Ballkenende has joined #ruby
<shevy> and 2.1.5 isn't that old is it?
<crome_> shevy: indeed, the smart guys at IBM thought it would be a good idea :D
ab9 has joined #ruby
<certainty> eww
<shevy> yeah well
<ponga> i always wonder what shevy codes in ruby
<shevy> <json:object>
<shevy> that is fucking horrible
rshetty has quit [Ping timeout: 256 seconds]
<shevy> ponga dunno. everything really. yesterday I continued to add test cases for my pipe in ruby
<crome_> just thinkg about all the possibilities, now you can store content in json, convert it to jsonx and you can transform it with xslt!
<shevy> test 'read_file :this_file | show_lines 30-40'
<deepy> shevy: write a jsonx library in ruby
<ponga> crome_: sounds like an aweful lot of workload
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<shevy> ponga and right now I continue working on my MUD in ruby, which I started as my second project after an IRC bot; sadly I am in the process of porting ancient code that just sucks... right now I populate a file called weapons.yml
<ponga> shevy: what is MUD briefly plz
<ccooke> shevy: ah, another person who started with an IRC bot :-)
<shevy> old text game; multi user dungeon. was popular in the 1990s, nowadays it's semi-extinct
<ponga> ah
<ponga> mud game!
<shevy> ccooke yeah. I tried to write one in PHP and failed
TgMts has joined #ruby
<shevy> and it worked in ruby after perhaps a month or so
<ponga> shevy: why PHP
<ponga> you always bash PHP
<shevy> PHP was actually easy
<shevy> yeah
Akagi201 has joined #ruby
<ponga> wait, you seem to bash them all
<ponga> PHP Perl Java
<shevy> well save for one thing - I also always say that PHP got the web focus right
<certainty> i almost always build irc bots of some kind to test langaueges
<shevy> ponga nonono that is not true in general, they may still be useful in some ways
<shevy> ponga I also was more productive in PHP than in perl
ghostlines has joined #ruby
<certainty> you mean like more bugs per LoC?
* certainty hides
Ballkenende has quit [Ping timeout: 265 seconds]
<ponga> omg
<shevy> hmm no
<shevy> the net result worked better than what I produced in perl
<ccooke> I wrote my first IRC bot in shell script, because I lost a bet
<shevy> I was always fighting with perl's syntax
elastik has joined #ruby
<shevy> it never felt right
<deepy> I've always been more productive in python than php
<crome_> ccooke: :DD
<shevy> ccooke haha
<shevy> yesterday I learned a bash thing though... seq 1 10
<certainty> about time
<ponga> shevy
<shevy> bash even has .step
<ccooke> shevy: heh. Or {1..10}
<ponga> it it weird of me to hate SQL
<shevy> seq 5 5 20
mroach has quit [Quit: mroach]
<deepy> ponga: what SQL server do you generally use?
<ponga> i only used SQLite in my life just for data storage
<deepy> Then you should hate SQLite
<ponga> and i never could get used to this query shit
<shevy> I used postgresql 9 months ago or so, it is actually quite nice
<crome_> seq is not bash
<crome_> it's coreutils
<shevy> crome_ really?
<crome_> yep
<ponga> i simply can't like querying
<deepy> postgresql is a dream, MySQL/SQLite is a nightmare
<shevy> cool
<shevy> so bash has even one less thing going for it now :-)
<ccooke> shevy: it's true. And requires a fork() every time it's used. try "echo {1..10}", though - that's a builtin construct of the parser
jottr has joined #ruby
<crome_> even test , aka [ is not part of the shell
<shevy> ah ok... that is almost like ruby
<ccooke> crome_: not quite. /bin/test exists, but [ and [[ and (( are builtins - no fork
joost_ has joined #ruby
joost_ is now known as mjfk
<ponga> ok shevy i installed 2.2.0-rc1
<ponga> what next
sandelius has joined #ruby
<shevy> does irb work ponga?
justinmcp_ has joined #ruby
<elastik> Hello
<ponga> 2.2.0-rc1 :001 > puts "hello world"
<ponga> hello world
<ponga> => nil
<ponga> 2.2.0-rc1 :002 >
<ponga> yes shevy
<ccooke> crome_: historically, /bin/test was symlinked to /bin/[ and that's how it worked, but it became a builtin ages ago (which is why /bin/test supports different (usually fewer) options than the bash test and [ ] syntax)
ab9 has left #ruby [#ruby]
{xenomorph} is now known as xenomorph
justinmcp has quit [Ping timeout: 272 seconds]
deryl has quit [Ping timeout: 264 seconds]
<ccooke> heh. The IRC bot I wrote was actually a continuation of the shell script bot. Ended up porting all the features and settings. Yay inflated version numbers :-)
<crome_> hmm, that sounds about right. thanks for the clarification
DadoCe has quit [Remote host closed the connection]
* ccooke is one of Those people who have written multi-thousand-line shell script projects
DadoCe has joined #ruby
havenwood has joined #ruby
mrap has quit [Quit: Computer has gone to sleep.]
jottr has quit [Ping timeout: 265 seconds]
crome_ is now known as crome
mrap has joined #ruby
<shevy> damn ponga
<shevy> ohhhhh
<shevy> then I guess there must be something in my irbrc that does not work on 2.2.0
<ponga> what's wrong shevy does even IRB not work on yours?
<shevy> not sure, I forgot to test it without my irbrc
<shevy> but I assume it will work if I try
<shevy> ponga, does this work for you: YAML::ENGINE.yamler =
<shevy> set it to anything please?
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<ponga> 2.2.0-rc1 :003 > YAML::ENGINE.yamler = 1
<ponga> NameError: uninitialized constant YAML
<ponga> from (irb):3
<ponga> from /Users/Lud/.rvm/rubies/ruby-2.2.0-rc1/bin/irb:11:in `<main>'
<ponga> shevy:
<ponga> did i do it right
elastik has quit [Ping timeout: 256 seconds]
<shevy> can you require 'yaml' first and try again?
<ponga> ok
<shevy> not sure where YAML resides but I assume it is in yaml
<ponga> uninitialized constant Psych::ENGINE
DadoCe has quit [Ping timeout: 244 seconds]
<shevy> aha!
<shevy> that was the error I got
<ponga> ok then its universal
DadoCe has joined #ruby
<shevy> do you also have to do require 'psych' ?
<ponga> glad i became your help
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> well ok
<ponga> i didn't require that yet wait
<shevy> that is fine, I can adapt my irbrc
elastik has joined #ruby
lewis has joined #ruby
<ponga> i did require 'psych' and it returend false
<ponga> 2.2.0-rc1 :006 > require 'psych'
<ponga> => false
ahtik has joined #ruby
lewis is now known as Lewix
nicolastarzia has joined #ruby
claptor has joined #ruby
Lewix has quit [Client Quit]
deryl has joined #ruby
Lewix has joined #ruby
<shevy> I am confused
mrap has quit [Client Quit]
<ponga> oh ok shevy i required it
<ponga> and still giving same error
diegoviola has joined #ruby
<shevy> ok
<shevy> well that error is new as far as I understand it. I did not get it on ruby 2.1.5
<ponga> this would help?
<Lewix> oh i thought you meant you required shevy to be confused
<ponga> lol Lewix
<shevy> lol
<ponga> i made my day lewix
<shevy> ponga not sure yet...
<shevy> YAML::ENGINE.yamler = 1 # NameError: uninitialized constant Psych::ENGINE
<shevy> this is what I get ponga
chinmay_dd is now known as cdd|afk
<shevy> on 2.1.5
<shevy> YAML::ENGINE.yamler = 1 # ArgumentError: bad engine
<ponga> same as mine shevy i got uninit-blahblah
<shevy> I think I will report it, something must have changed, perhaps nobu knows more
<ponga> nobu sounds like a japanese person
<shevy> btw ponga
<shevy> yeah
<shevy> 2.2.0-rc1 :006 > require 'psych' => false
<ponga> btw what ser
<shevy> ^^^ that means that it already was required before
<shevy> as you did not get an error
<shevy> you got false, which means that it was already required
<ponga> thanks shevy i figured that out myself soon after
<ponga> before you told me so
<shevy> nobu is Nobuyoshi Nakada, he is like matz' right hand for MRI (main ruby interpreter)
valeriansaliou has quit [Ping timeout: 264 seconds]
TgMts has joined #ruby
<shevy> Koichi Sasada is ko1 I think, I think he is also the guy who maintains ruby-gnome?
DonOtreply has joined #ruby
<ponga> shevy: if you ever need help in translating report into Japanese, call me
nicolastarzia has quit [Ping timeout: 258 seconds]
Pattt has joined #ruby
<shevy> I'll try communicating in broken english, that is still easier than japanese for me :-)
<ponga> shevy: make sure not to use perfect tense / -ing verb-noun
<ponga> it will confuse them
Techguy305 has quit [Ping timeout: 252 seconds]
<ponga> :P
<ponga> its true at least
faris has joined #ruby
<shevy> lol
<shevy> I once tried to learn a bit of japanese
<shevy> tabemasu means to eat right?
kasperti_ has quit []
<faris> hai
<shevy> I could count once... ichi ... ni ... san ... or something
ahtik has quit [Ping timeout: 250 seconds]
<faris> u could make good conversation with baby japs
<shevy> ponga I always confused it with korean due to taekwondo, we had to count in korean doing pushups... hana... dul ... set net dasot yosot ilgub yodul ahup yol ...
<ponga> lol
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> lol there are even images displaying the character... although the book I used back then had only a single letter for tabemasu http://www.punipunijapan.com/wp-content/uploads/2013/02/tabemasu.png
<shevy> ponga do you know the algorithm march with ninjas?
<ponga> what?
<ponga> algorithm + march + ninja?
* ponga is confused
Lucky___ has joined #ruby
<shevy> ponga https://www.youtube.com/watch?v=M8xtOinmByo <--- the second part shows the ninjas, that was one of the greatest things I ever saw... it's 7 or 8 years old by now though
<shevy> unfortunately it seems as if ninjas are a lot more popular outside of Japan than in Japan
<ponga> i can't understand it shevy
<ponga> the joke the intention, i have no idea
<shevy> ohhh
synire has quit [Read error: Connection reset by peer]
arietis has joined #ruby
<shevy> it's creative! you have a group movement there where the individual moves fit one into the next
<ponga> yeah i can see that
<ponga> but how on earth is this a joke
aspiers has quit [Ping timeout: 272 seconds]
<shevy> they did it in prison too https://www.youtube.com/watch?v=M8xtOinmByo
<shevy> no, it is awesome!
<ponga> ㅁh
<ponga> ah
<ponga> i see where this is going
synire has joined #ruby
<ponga> its somehow algorithmic or systematical rather
<shevy> how do you call this... like when michael jackson died? and people organized on places dance
<shevy> flash mob dance?
TgMts has quit [Quit: No Ping reply in 180 seconds.]
pragmatism has quit [Ping timeout: 272 seconds]
<shevy> though an algorithm dance is cooler... because it's like a riddle! try to come up with such a dance style where they fit together
synire has quit [Read error: Connection reset by peer]
<ponga> yeah flash mob got no dignity i agree
<ponga> in flashmob they just rage in uncontrolled manner
<shevy> I didn't see many, but the one in sweden after Michael Jackson died was quite cool. It reminded me of a big group of fish swimming away in the ocean from a large predator
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DonOtreply has quit [Quit: DonOtreply]
yfeldblum has joined #ruby
<workmad3> shevy: not surprising that ninjas are more popular outside of japan... considering that ninjas were peasant assassins that basically terrorised japan while it occupied other places (at least, that's my understanding :) )
<ponga> workmad3: more like they were just lame
<ponga> samurai is more of a cooler figure actually
jaequery has joined #ruby
<ponga> and to be honest, you all started worshipping ninjas after naruto....
TgMts has joined #ruby
synire has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
<wasamasa> no
einarj has joined #ruby
<deryl> actually we started worshiping ninjas after chuck norris plaid one :)
<deryl> err played
<shevy> nonono
thoughnut has joined #ruby
<shevy> did you guys forget the ninjas when michael dudikov or whatever was his name fought
<shevy> they spawned out of nowhere!
<shevy> or even older kung fu movie where ninjas respawned or where like 300cm tall
Scripore has joined #ruby
mostlybadfly has joined #ruby
Kruppe has joined #ruby
sargas has joined #ruby
Techguy305 has joined #ruby
DarthGandalf has quit [Ping timeout: 265 seconds]
felltir has joined #ruby
thoughnut has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pu22l3r has joined #ruby
bogeyd6 has joined #ruby
yfeldblum has joined #ruby
adriancb has joined #ruby
Scripore has quit [Ping timeout: 245 seconds]
Kruppe has quit [Quit: ZNC - http://znc.in]
elaptics is now known as elaptics`away
Kruppe has joined #ruby
synire has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
synire has joined #ruby
tus has joined #ruby
anaeem1_ has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
cdd|afk has quit [Quit: Leaving]
chinmay_dd has joined #ruby
rshetty has joined #ruby
DarthGandalf has joined #ruby
green-big-frog is now known as frog|OFF
sargas has quit [Quit: This computer has gone to sleep]
<ponga> shevy
DonOtreply has joined #ruby
sargas has joined #ruby
<ponga> how did your chatbot go
russt has quit [Quit: russt]
mjuszczak has joined #ruby
<shevy> well I broke it meanwhile
<shevy> I tried to split out the functionality
LouisRoR has joined #ruby
mgberlin has joined #ruby
<shevy> ponga I tried to split out the core functionality into a single class but I did not really invest much time into it http://rubygems.org/gems/talk_in_irc_channel
<ponga> shevy: do you think turing machine can work as chatbot good enough to fool human
<ponga> i personally do
<shevy> nah
<shevy> there is a big difference between real intelligence and faking real intelligence
koderok has joined #ruby
ausekd has joined #ruby
koderok has quit [Remote host closed the connection]
b4rbz has quit [Remote host closed the connection]
<ponga> shevy: then how about one that does not fake to be human but speak good enough to give verbal care and consolation :P
<ponga> i think we could manage that
<shevy> dunno
einarj has quit [Read error: Connection reset by peer]
<shevy> I don't really think the computers are built in a way to yield real intelligence
Kricir has joined #ruby
oleo has joined #ruby
einarj has joined #ruby
<ponga> me too
<ponga> but i think it could do well to fool a man in grief
DadoCe has quit [Remote host closed the connection]
<ponga> shevy: i do believe that this binary logic isn't the way to yield intelligence
<shevy> well you need real learning
<workmad3> ponga: care to elaborate on what you think is lacking?
<workmad3> also on what characterises 'real intelligence' vs 'faking intelligence'?
<ponga> workmad3: i think that intelligence is a byproduct of biological bodyness
<workmad3> ponga: ok... for what reasons?
mgberlin_ has joined #ruby
<wasamasa> once the fake convinces others, it's worth more than the real thing
* wasamasa totally didn't quote that from an anime
<ponga> that if we were to ever yield AI, we need at least a body attached t oit
synire has quit [Read error: Connection reset by peer]
rohit has quit [Quit: Leaving]
<shevy> workmad3 every time you learn something, you have a neurological adaptation
<ponga> workmad3: i can't think of a intelligence system without instints from nerve system
<ponga> and to emulate that, i think it needs at least a small frame of body
<workmad3> ponga: so because you can't envisage it, it must be impossible?
<shevy> for instance, taxi drivers have an enlarged hypothalamus area and more/stronger synapses in their myelin sheath in that area
<ponga> workmad3: i stated 'i believe' good sir?
<shevy> sorry
<shevy> not hypothalamus but hippocampus area
<ponga> throughout the conversation with shevy
anaeem1_ has quit [Ping timeout: 252 seconds]
Menorah has joined #ruby
<workmad3> shevy: right... and any time an artificial intelligence 'learned' something, it would cause a change within *its* inner workings, e.g. change of state on magnetic states :)
<workmad3> ponga: right, I'm trying to drill down into why you believe X
<ponga> why would you drill down
karmatr0n has joined #ruby
<workmad3> ponga: curiosity :)
<shevy> workmad3 a machine can not really adapt
<workmad3> shevy: why not?
dx7iso has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
<shevy> how can it? it has no neurons
<ponga> and curiosity that i think comes from survival instinct
<ponga> from biological frame
<workmad3> shevy: what makes neurons so special though?
<shevy> it has no way of true learning
econerd4ever has joined #ruby
<ponga> i stand with shevy
<workmad3> shevy: why do you think that neurons are the only possible construct that can create 'true learning'?
<workmad3> shevy: and what is 'true learning'?
<ponga> i still do think we could find 'another way' or fake good enough but it won't be same to how we do it
<wasamasa> considering animals who are mostly representable as finite state machines can adapt, I don't believe that to be a limitation
<shevy> workmad3 accepting connections from multiple other neurons; ability to change their pacing of when it fires and when it does not; ability to work together or inhibit other areas
<ponga> it would be alternative way
jack_rabbit has joined #ruby
anaeem1_ has joined #ruby
<shevy> workmad3 quite simple - please give an example of true learning in machines
<shevy> you won't find one
<ausekd> hey all, i'm trying to read the first 100 lines of a text file into an array, do something with it, then repeat the process but with the next 100 lines
ni291187 has joined #ruby
<ponga> exactly wasamasa, i claim that it needs a bodyness
<workmad3> shevy: right... but that doesn't mean it's *impossible*
<wasamasa> ponga: no?
<workmad3> shevy: just means that we don't actually know what the hell 'true learning' is yet to a sufficient degree to re-create it on a machine
<ausekd> any advice how to best achieve this?
<ni291187> slm
<ponga> what no wasamasa did i tell something incorrect
<wasamasa> ponga: if that were a hard limitation, I'd not have a working spam filter
ni291187 has left #ruby [#ruby]
<wasamasa> ponga: that would be pretty bad, don't you think
<ponga> wasamasa: i didn't say it was hard nor impossible
<workmad3> ponga: I'm trying to figure out what causes you to claim it needs a 'bodyness'
<wasamasa> ponga: no google filtering out spam mails for me
<wasamasa> ponga: that would really suck
<ponga> i said it'd at least need body
synire has joined #ruby
<shevy> wasamasa google filter is intelligent?
<wasamasa> shevy: it's not interns punching in rules
<workmad3> ponga: i.e. what aspect of 'intelligence' do you class as being intrinsically embodied?
<ponga> workmad3: so its artificial nerve system could work
<workmad3> (hell, what characterises 'intelligence'?)
<shevy> workmad3 animal behaviour
<wasamasa> workmad3: the fact that once a problem can be solved by software, it's no longer an intelligence problem
<wasamasa> workmad3: like, captchas
dx7iso_ has joined #ruby
zorak8 has quit [Ping timeout: 245 seconds]
<shevy> you can make captchas more complicated
<shevy> and then your old algorithms won't help
<shevy> but it won't learn to adapt to it on its own
karmatr0n has quit [Ping timeout: 240 seconds]
<workmad3> I've personally yet to come across anything that can really characterise what 'intelligence' is... just lots of things that state 'it's not X' or 'it's not Y'... without knowing what intelligence (and, in other arguments, consciousness) *is* how can you make sweeping claims that it needs X or Y?
mjuszczak has quit []
<shevy> whereas humans could solve it (well most humans could. I can't, I have no patience for captchas)
dx7iso has quit [Read error: Connection reset by peer]
<wasamasa> it does actually, optical character recognition is one of the first examples where software has been used to train itself on existing data
<workmad3> shevy: plenty of neural networks show adaptive problem solving behaviour :P
<shevy> intelligence is the very ability to solve problems on your own
<ponga> workmad3: to say what intelligence is i say the advanced survival instinct that we have is what it is
<shevy> workmad3 they all need algorithms
<workmad3> shevy: just in limited frames of reference
<ponga> i believe this is it
* wasamasa stares blankly at shevy
<shevy> all what these do is attempt to fake biological learning processes
<shevy> because it is easier to try and steal existing ideas than solve problems completely de-novo
<wasamasa> until they fake it so good that they surpass humans, yeah
<wasamasa> sure
<workmad3> ponga: ok... so what exactly is that?
<ponga> and im saying again is that it could be 'another way'
<ponga> but not 'same' as ours
<shevy> yeah wasamasa but you can't do that for all problems given
<workmad3> ponga: what defines it explicitly? what characterises it?
<shevy> wasamasa for chess programs it works
<wasamasa> shevy: sure, with enough data and smarts, you can
<workmad3> ponga: rather than a hand-wavey 'humans have intelligence, which is an advanced survival instinct'...
mjuszczak has joined #ruby
<wasamasa> shevy: it's why google is progressing in a way old concepts from the eighties couldn't
<shevy> wasamasa is this intelligence?
<shevy> right but programmers feed in new behaviour and change existing one all the time
<ponga> could you define it workmad3 then
<workmad3> ponga: i.e. can you give a precise definition of 'intelligence' that contains specific criteria to assess against?
<wasamasa> shevy: from a technical view, yes
<workmad3> ponga: no
<workmad3> ponga: I can't
<wasamasa> shevy: from a philosophical one, fuck you
<workmad3> ponga: I don't believe we understand it well enough to provide such a definition
<shevy> no this is from a technical view
<workmad3> ponga: which is kinda my point
<shevy> I see no real intelligence when you have to feed in new behaviour by humans
<ponga> can't agree more
<ponga> its my opinion
<workmad3> ponga: until we understand it well enough, I don't see how *anyone* can make sweeping statements about what it *requires* though
<wasamasa> shevy: uh, people get fed information by their surroundings?
<shevy> what they do is adapt to a given problem domain and know that it works well; it's like testing in software
<ponga> workmad3: i can
<wasamasa> shevy: what the hell do you think parents are doing with their children?
<shevy> wasamasa precisely. and they learn from it
<ponga> and stop calling my nickname like every 3 secs like bitch
<workmad3> hehe
lbrf has joined #ruby
<ponga> i hate these bitches
frog|OFF is now known as green-big-frog
<ponga> and now i can't have a lightweight conversation with my pal shevy?
<ponga> cos i'm not entitled to make statement
<wasamasa> ^ this annoys me
<ponga> fuck you workmad3
<ponga> go away
<ponga> you are ignored
<shevy> lol
<workmad3> wooo!
<wasamasa> "As soon as AI successfully solves a problem, the problem is no longer a part of AI."
<workmad3> ignored because I challenged a baseless assumption about what is possible!
<ponga> ignored and clean now
<ponga> i so hate smart bitches
<shevy> people in AI research of couse have to say they are doing intelligent things
<shevy> so we can eliminate the humans
mgberlin_ has quit [Read error: Connection reset by peer]
<shevy> and the AI will do intelligent things henceforthwith
<shevy> didn't you guys watch space odyssey?
<ponga> shevy: or they can then claim that AIs are our children?
<ponga> and we should adapt and allow sincerely that coming forth
mgberlin has joined #ruby
<shevy> we aren't even at a point of Blade Runners yet!
<ponga> lol
mjuszczak has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<shevy> ponga I still don't quite understand why the japanese love robots so much
ramfjord has joined #ruby
<ponga> shevy: it obeys
<ponga> you still have a lot to learn of asian thoughts
<shevy> hehe
<shevy> the samurai obeys
<shevy> the ronin will kick your ass!
lbrf has quit [Ping timeout: 252 seconds]
<ponga> oh and to add shevy they do love submissive girls
<ponga> would this help you understand
<shevy> not really
caiges has joined #ruby
<shevy> because a robot is not a girl is it?
<ponga> ok shevy wait a moment
ausekd has left #ruby ["Leaving"]
<shevy> I don't need to understand everything
<felltir> what the actual fuck
<shevy> I simply watch japanese pranks and takeshi's castle
<ponga> shevy: typical japanese AI journal paper cover that was voted by researchers http://i.huffpost.com/gen/1534126/thumbs/n-GAKKAISHI-570.jpg
<ponga> see?
<ponga> professors liked it
anaeem1_ has quit [Remote host closed the connection]
<shevy> I also don't understand the appeal of anime/manga
<felltir> can we not have that crap in here?
<shevy> oh
<shevy> what crap
sankaber has joined #ruby
<felltir> well, the casual racism mostly
<ponga> um
<ponga> is is racist for an asian man of japanese culture to make a mockery of japanese culture
<workmad3> wasamasa: do you reckon ponga /ignored you too) :)
<ponga> i thought it was humanity's good old humour
<wasamasa> workmad3: I don't care
econerd4_ has joined #ruby
<ponga> oh and how do i unignore
<workmad3> wasamasa: :D
<wasamasa> workmad3: I'm just pointing out two poignant examples that summarize the previous "discussion"
<shevy> ponga oooh ... it is actually a cleaning robot that just looks human, right?
<felltir> it's pretty rubbish to make racist jokes in general
<ponga> shevy: professor who wrote a paper in it said in the interview that it looks human to serve a sexual slave
jottr has joined #ruby
<shevy> aha
<ponga> and submissive, as always
<shevy> man that gets complicated
<shevy> I thought a cleaning robot should, well ... be able to clean efficiently
<ponga> shevy: can you teach me how to un ignore
<wasamasa> workmad3: probably because I'm sick of it and the mainstream perception of the field
<wasamasa> ponga: /unignore nick
<shevy> no idea sorry. I don't use /ignore really
<ponga> hm
* wasamasa waits for a reaction
<workmad3> wasamasa: same :)
<ponga> oh workmad3 hi!
<workmad3> ponga: o/
<ponga> my deepest apology
<shevy> everyone is reunited again \o/
<workmad3> ponga: don't worry, I found it amusing ;)
<ponga> i just couldnt stand you calling me every 3 secs
econerd4ever has quit [Ping timeout: 258 seconds]
<workmad3> ponga: sorry... it's a habit I have when I'm having a conversation with someone and there's multiple streams going on
<ponga> shevy: they thought it'd be critically important for them to be able to serve 'refreshment' role
<ponga> haha
<workmad3> (or, in this case, when I was butting into someone else's conversation ;) )
pu22l3r has joined #ruby
<shevy> ponga ok I think I should rephrase it slightly ... I can understand the need for robots. What I could not understand it was the appeal to have robots look human-likes or fake-human likes
synire has quit [Read error: Connection reset by peer]
ahtik has joined #ruby
<shevy> I mean you could build intelligent robots that would not have to look like humans?
synire has joined #ruby
synire has quit [Client Quit]
<wasamasa> it helps the general acceptance if they look humanoid
<workmad3> shevy: there are plenty of psychological effects that could be exploited by having human-like robots... such as in the case of robot care-workers
<shevy> wasamasa it actually scares me, some of them really look like human beings unless you look very closely
<wasamasa> shevy: here comes the uncanny valley!
<ponga> shevy: having arms and legs i do see practical reasons of adapting human daily chores but your query of the look.. i do agree but
<ponga> they just want it
<ponga> or more like we
<shevy> ponga well I can understand two legs -> able to climb stairs... if you have a wheel robot it gets harder
<shevy> ponga do you know that jumping dog thingy?
<ponga> yeah
<ponga> it wouldn't fall over
<workmad3> plenty of tasks are automatable with much better forms that human forms... e.g. roomba, dishwashers...
<wasamasa> shevy: it happens to me every time I try watching one of those full-cgi movies
<wasamasa> shevy: I just can't stand that look
<workmad3> wasamasa: the first time I encountered uncanny valley was in computer-graphics :)
<shevy> ponga only crappy thing is that it is really loud and noisy
<ponga> and annoying shevy
<ponga> and not cuty
<shevy> hehe
<ponga> hehe
TgMts has quit [Ping timeout: 252 seconds]
<wasamasa> like, beowulf
<ponga> oh and shevy why would you not want a human looking AI companion?
<ponga> you can, you do
<wasamasa> or that one resident evil one
<ponga> i mean if you could, you do it
picassoo has joined #ruby
<workmad3> wasamasa: Final Fantasy: Spirits Within? :)
<wasamasa> workmad3: did not play that
picassoo has quit [K-Lined]
sargas has quit [Quit: This computer has gone to sleep]
<shevy> ponga dunno... not really. I am way too sceptical... do you know alzheimer disease? Where people forget who they are? You can no longer have a real conversation with them in the late stage of the disease
<workmad3> wasamasa: it was the first FF film, not a game
<ponga> what's that got to do with having sex robot shevy
<wasamasa> workmad3: so I don't know of any movies
mengu__ has quit []
<shevy> ponga I don't understand it
<ponga> i mean, i was having this conversation with japanese dev the other day and we were like 'they wouldn't ask for more money after initial payment, sounds far better than real woman, innit?'
sargas has joined #ruby
<workmad3> but yeah... there's a reason most CGI films have things like talking dogs, talking toys, robots, etc. and are light on human characters
<workmad3> and uncanny valley is pretty much the entire reason :)
<wasamasa> I've got to admit this one looks pretty cool: http://en.wikipedia.org/wiki/TOPIO#mediaviewer/File:TOPIO_3.jpg
<wasamasa> those shades
<ponga> shevy: do you see it now
<shevy> wasamasa that's scary
<wasamasa> shevy: pah, you haven't seen a RealDoll™
<diegoviola> why is everyone doing JS these days, it's like going back to the 90s when JS was the shit
<shevy> ponga not really hahaha. it's like one of those mysteries in life I don't quite understand
<shevy> diegoviola because every browser has it
<ponga> lol wasamasa
<ponga> come on shevy its very simple thing
DonOtreply has quit [Quit: DonOtreply]
einarj has quit [Remote host closed the connection]
<ponga> shevy: they wouldn't get mad at how you didn't answer her text soon
soulcake has quit [Quit: Quack.]
<ponga> you see this coming?
<diegoviola> shevy: we can always re-think how browsers do things
<diegoviola> having only one language that browsers understand is silly
<diegoviola> imagine if this was the case for server-side
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy> ponga I dunno. I just don't think there is any real intelligence for the forseeable time in such things; it sounds more like playing a video game to me
soulcake has joined #ruby
hamakn has quit [Remote host closed the connection]
<workmad3> diegoviola: agreed... but the problem is a case of adoption
sdwrage has joined #ruby
<ponga> ok then shevy
<wasamasa> diegoviola: good luck convincing browser vendors to create something different and adopt it
<shevy> ponga you more sound like describing how to handle a car when you are driving :)
<diegoviola> workmad3: that's understandable, sure
<wasamasa> diegoviola: while you're at it, replace html and css, too
<shevy> CSS I like
TgMts has joined #ruby
Hanmac has joined #ruby
<diegoviola> wasamasa: I'm not going that far
ausekd has joined #ruby
<wasamasa> diegoviola: and give them an actual reason for forfeiting compatibility with the rest of the internet
ta has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<shevy> diegoviola how can you change the www? how many browsers are there... chrome ... firefox... those are the two big ones right?
<diegoviola> shevy: yup
<Hanmac> shevy: i installed my pc again ... did took me long enough ;P
<shevy> hanmac YOU ARE BACK
<ponga> sorry shevy i use safari
<workmad3> diegoviola: every browser *already* has JS... for another language to gain enough adoption to be worthwhile writing pretty much anything outside of trivial apps or internal apps in would likely take about a decade
<shevy> ponga yeah but I think less people use safari than firefox
yfeldblum has joined #ruby
<ponga> i know just making a mock
<shevy> there is the internet explorer too
<shevy> it was popular in the 1990s
<ponga> shevy: ie share is still large among poeple aye?
<ponga> what?
<shevy> probably some
<ponga> less than 10%?
<ponga> wow
<shevy> well for that particular site
<shevy> it's surely higher in like old networks
<workmad3> diegoviola: that said, there's been plenty of work in recent years in getting other languages to compile down to JS... give that sort of tech a bit longer to mature and the older browsers that can't do JS well enough for that to vanish down to insignificant amounts, and I'd bet the browser languages will open up on the dev front at least :)
<ponga> how did it decline so much in recent years?!
<shevy> 2002, Internet Explorer 86.7 %
<workmad3> ponga: android & iphone
<shevy> ponga firefox + chrome
<ponga> i don't really like chrome
<shevy> yeah
<ponga> why is it no longer feel likt lightweight
<ponga> first time it came out it was blitz
<shevy> hehe
<ponga> wait
<shevy> don't people say the same about firefox
<ponga> is it more like websites got heavier?
<shevy> that as well
zacts has joined #ruby
<ponga> not the browser's fault
<diegoviola> workmad3: I agree and I think you're right on that, I'm not saying we should try to implement new languages on browsers now though, I'm just saying if people were to do that, what would be the best way to do it?
<ponga> the size of JS file is unbelievable
<ponga> and images
<diegoviola> embed an LLVM compiler on the browser and languages as add-ons?
<workmad3> ponga: also, other browsers caught up with the low-hanging JS optimisation fruit that chrome got their hands on first
<ponga> i never questioned this monopoly of JS on browser..
<ponga> but yeah.. it does sound odd
<ponga> why can't we have like 2,3 langs
<workmad3> ponga: there used to be vbscript in IE :P
<ponga> which i believe south korea still loves to use and drives nearly everyone nuts still to these days workmad3
yfeldblum has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 240 seconds]
<ponga> it literally makes everyone to need therapy
LouisRoR has quit [Ping timeout: 264 seconds]
<shevy> diegoviola the browser should become a platform like the JVM can be for several languages
<workmad3> diegoviola: personally, I'd pin my bets on browsers heavily optimising asm.js and packaging something like an emscripten build into toolchains that outputs asm.js optimised code
<ponga> i'd want ruby to work on browser!
<ponga> wouldnt ya shevy
<workmad3> ponga: opal
Guest64 has joined #ruby
<shevy> yeah
<ponga> workmad3: sorry? what? opal?
<workmad3> ponga: opal... it's a JS ruby runtime ;)
dx7iso_ has quit [Remote host closed the connection]
<shevy> ponga http://opalrb.org/
fuhgeddaboudit has joined #ruby
<ponga> hm
felltir has quit []
<ponga> but i'd still want ruby to be built into browser
Kricir has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> tbh, I'm not sure I'd like the way browser-based UI would force me to write ruby :)
<shevy> well ruby is a small language compared to javascript these days ponga
<ponga> was it ever not a small language shevy
<shevy> hehehe
<shevy> it was growing a little more during the rails hype stage!
jaequery has joined #ruby
<shevy> rank 18 :(
<ponga> shevy: i think that ruby will fade and its style will remain influencing other languages
jenrzzz has joined #ruby
hamakn has joined #ruby
<shevy> this trend is better though: http://www.google.com/trends/explore#q=ruby%2C%20python%2C%20perl%2C%20php%2C%20mruby&cmpt=q
<ponga> hey shevy
<shevy> ponga it would take a lot of time to fade
<ponga> im very angry of how the desktops mobiles still these days don't really help/support users who are multi-lingual
Menorah has quit [Quit: Leaving]
<shevy> let's face it, we will all settle on the english language :D
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ponga> i mean like
<ponga> i'd want OS lang to set ENG
<ponga> but my messenger korean
<ponga> and calander in japanese
<ponga> *angry
oo_ has joined #ruby
<shevy> yeah
<shevy> I also set everything to english
<shevy> when suddenly appears in german it confuses me
<shevy> *something
<ponga> are you monolingual shevy
jaequery has quit [Ping timeout: 264 seconds]
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
<shevy> nah. german language, spanish and english in school
<havenwood> polyglottery!
fabrice31 has joined #ruby
Spami has joined #ruby
<ponga> and your first language ? shevy
Stalkr_ has joined #ruby
asteve has joined #ruby
JohnBat26 has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
ahtik has quit [Ping timeout: 250 seconds]
amundj has joined #ruby
Ballkenende has joined #ruby
<shevy> ponga german
<ponga> really???
<shevy> ponga yours?
<ponga> and you use English more in everyday life?
<ponga> you know it shevy JAP/KOR
<shevy> well
arya_ching has joined #ruby
<shevy> it depends
<shevy> the university lessons for the advanced courses are all in english here
jeff-ooh has joined #ruby
<ponga> shevy: do you study CS at Uni ??
<shevy> my local ruby knowledgebase is in german though. it used to be in english, but I noticed that my brain simply is faster when it is written in german
<shevy> I don't study CS; right now I am studying biotechnology and technical chemistry
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
hamakn has quit [Remote host closed the connection]
nicolastarzia has joined #ruby
Ballkenende has quit [Ping timeout: 245 seconds]
dextaa has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<shevy> ponga my exam-trainer is written in ruby :D
<ponga> trainer?
byprdct has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Crazy_Atheist has joined #ruby
<shevy> ponga yeah just so that I have memorized all questions and answers for an upcoming exam (when that is possible; more advanced questions require more coupled knowledge, like to draw a synthetic reaction pathway from molecule A to molecule Z)
sdwrage has quit [Quit: This computer has gone to sleep]
fuhgeddaboudit has quit [Ping timeout: 244 seconds]
p0wn3d_mhs has joined #ruby
dangerousdave has joined #ruby
DadoCe has joined #ruby
dangerou_ has joined #ruby
nicolastarzia has quit [Ping timeout: 272 seconds]
adriancb has quit [Remote host closed the connection]
iamninja has joined #ruby
jaequery has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
Areessell has quit [Ping timeout: 244 seconds]
ausekd has quit [Quit: Leaving]
max96at|off is now known as max96at
Techguy305 has joined #ruby
chipotle has quit [Quit: cheerio]
dx7iso has joined #ruby
dx7iso has quit [Remote host closed the connection]
chipotle has joined #ruby
tokik has joined #ruby
dx7iso has joined #ruby
DadoCe has quit [Ping timeout: 245 seconds]
Jackneill has quit [Ping timeout: 244 seconds]
Jackneill has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
jaequery has quit [Ping timeout: 240 seconds]
<shevy> rescue Interrupt is for rescuing ctrl-c right?
r0bby_ has joined #ruby
cantonic has quit [Quit: cantonic]
adriancb has joined #ruby
Techguy305|2 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giuseppesolinas has quit [Read error: No route to host]
giuseppesolinas has joined #ruby
george2 has joined #ruby
Techguy305 has quit [Ping timeout: 245 seconds]
elastik has quit [Ping timeout: 250 seconds]
Channel6 has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
<Synchunk> shevy, I'm a complete ruby noob, but interrupt is CTRL+C as far as I know.
<shevy> k just wishing to make sure that I rescue the right thing here
asmodlol has joined #ruby
Hijiri has joined #ruby
sargas has joined #ruby
petrus has joined #ruby
DadoCe has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
cantonic has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
yfeldblum has joined #ruby
rshetty has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
livathinos has joined #ruby
petertretyakov has joined #ruby
xcesariox has joined #ruby
chipotle has quit [Quit: cheerio]
ghostlines has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
xcesariox has quit [Client Quit]
socash has quit [Quit: WeeChat 1.0.1]
xcesariox has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
arietis has joined #ruby
Megtastique has joined #ruby
elastik has joined #ruby
leonmaia has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
leonmaia has quit [Client Quit]
tokik has quit [Ping timeout: 264 seconds]
gsd has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
druznek has quit [Quit: Leaving]
Megtastique has quit [Client Quit]
leonmaia has joined #ruby
jottr has joined #ruby
despai has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
renderful has joined #ruby
arya_ching has quit []
Megtastique has joined #ruby
r0bby_ has quit [Quit: Konversation terminated!]
oo_ has joined #ruby
r0bby_ has joined #ruby
pandaant has joined #ruby
byprdct has joined #ruby
x1337807x has joined #ruby
Takle_ has quit [Ping timeout: 252 seconds]
renderful has quit [Ping timeout: 240 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
dangerousdave has joined #ruby
tus has quit [Ping timeout: 255 seconds]
oo_ has quit [Ping timeout: 244 seconds]
<epitron> test iiittt
<apeiros_> epitron: u high?
<epitron> I was responding to shevy
chipotle has joined #ruby
<shevy> was his cat
<epitron> if you want to be sure of anything, test
<shevy> my cat also types in 3-char repeats
<shevy> iiisss ttthhhaaattt sssooo
<shevy> sorry, cat typing again
<epitron> yyyyyeeeeepppppp
<shevy> the cat is high :D
<epitron> sssssoooooo hhhiiiiigggghhhhh
sargas has joined #ruby
ahtik has joined #ruby
leonmaia has quit [Quit: Textual IRC Client: www.textualapp.com]
Scripore has joined #ruby
petrus has left #ruby ["Leaving"]
TgMts_ has joined #ruby
blizzy has joined #ruby
lbrf has joined #ruby
DonOtreply has joined #ruby
mary5030 has joined #ruby
chipotle has quit [Quit: cheerio]
TgMts has quit [Ping timeout: 255 seconds]
leonmaia has joined #ruby
chinmay_dd has quit [Quit: Leaving]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
avahey91 has joined #ruby
livathinos has quit [Remote host closed the connection]
RDash is now known as dicks
dicks is now known as RDash
mliqu has quit [Quit: Leaving]
greenbagels has quit [Read error: Connection reset by peer]
georgesmith has joined #ruby
VBlizzard has joined #ruby
greenbagels has joined #ruby
blizzy has quit [Disconnected by services]
VBlizzard is now known as blizzy
chipotle has quit [Client Quit]
RDash is now known as Mion`the`dick
Mion`the`dick is now known as RDash
dextaa has quit [Ping timeout: 244 seconds]
hamakn has joined #ruby
livathinos has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
conniemj has joined #ruby
livathinos has quit [Ping timeout: 244 seconds]
chinmay_dd has joined #ruby
ahtik has quit [Ping timeout: 250 seconds]
Lewix has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 244 seconds]
chinmay_dd has quit [Quit: Leaving]
Lewix has joined #ruby
yfeldblum has joined #ruby
asmodlol has quit [Ping timeout: 258 seconds]
asmodlol has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
mgberlin has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 245 seconds]
econerd4_ has quit [Remote host closed the connection]
mgberlin has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has joined #ruby
green-big-frog is now known as frog|OFF
Morkel has joined #ruby
<shevy> anyone else thinking that the new fonts of rubygems.org are hard to read?
<shevy> the real name is actuall "talk_in_irc_channel"
adriancb has quit [Ping timeout: 245 seconds]
<shevy> but it reads like "talk_In_Irc_channel"
ianfleeton has joined #ruby
Takle has joined #ruby
ahtik has joined #ruby
<epitron> yeah, the new rubygems.org is kinda weird
<workmad3> shevy: I'm not a fan of them... but I can't find where that particular screenshot is from
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
<shevy> workmad3 ah this listing overview: https://rubygems.org/profiles/58718
<epitron> shevy: the biggest issue for me is that there isn't a giant clickable github icon on each project's page
<shevy> I was surprised because I have another gem called "cliner" but in firefox, it reads "cllner"
<epitron> and an rdoc icon
<apeiros_> shevy: doesn't look like that here
<apeiros_> even on the link you gave
<workmad3> ^^
<epitron> you have to scroll the page and look in the margin to find the github link
<apeiros_> but maybe a case of retina vs. non-retina
<shevy> good that I made a screenshot!
<workmad3> apeiros_: I'm definitely not using retina here :)
nateberkopec has joined #ruby
<apeiros_> hm, k
jds has quit [Quit: Connection closed for inactivity]
pika_pika has quit [Ping timeout: 258 seconds]
<epitron> the old site was more usable
<epitron> this one does have better fonts though i guess
<epitron> the colour scheme is kinda gross too
<apeiros_> shevy: http://imgur.com/AlnOuXH
asmodlol has joined #ruby
<shevy> yeah that is odd
<shevy> you are on osx apeiros_ ?
<apeiros_> yes
<shevy> well there you go...
<shevy> linux sucks
<shevy> :-)
<apeiros_> might be a diff in the way fonts are rendered, yes
armyriad has quit [Ping timeout: 255 seconds]
<apeiros_> might also be that for you it selects a different font?
armyriad has joined #ruby
<shevy> yeah may be, probably some ugly fallback I have here
<shevy> but I also remember that before the re-design of that webpage, I never had the same issue on the same system
byprdct has quit [Ping timeout: 245 seconds]
<epitron> shevy: try changing the font-weight in the css
<epitron> ohh, you know what -- you do have a weird font
yfeldblum has quit [Ping timeout: 258 seconds]
<epitron> the a's and e's look different from mine
<shevy> interesting
<workmad3> the font-family seems to be this: https://typekit.com/fonts/aktiv-grotesk-std
<workmad3> and falls back to sans serif
<shevy> epitron it changes indeed when I increase or decrease the font size lol
bonhoeffer has joined #ruby
bigmac has joined #ruby
bigmac is now known as i8igmac
<shevy> now here is the most hilarious thing
<shevy> - if I zoom in, I can read it just fine
<shevy> - if I zoom out, I can read it just fine
<shevy> if I zoom back to the default, the i's will become I
cantonic has quit [Quit: cantonic]
<bonhoeffer> i'm trying to play around with a gem i'm writing with irb . . . but i can't require lib/mygem.rb -- i can, but then it pulls in dependences, any options?
doodlehaus has joined #ruby
despai has joined #ruby
<bonhoeffer> i've done this before . . . do i need to do something like include
<shevy> bonhoeffer you could always try to require the individual .rb files directly?
<shevy> include you use on a Module
ahtik has quit [Ping timeout: 250 seconds]
kobain has quit [Ping timeout: 252 seconds]
georgesmith has quit [Quit: georgesmith]
<shevy> what you require will be determined by the .rb file in question, in this case what the require statements mygem.rb has
nicolastarzia has joined #ruby
sdwrage has joined #ruby
ianfleeton has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x1337807_ has joined #ruby
<bonhoeffer> hmm. . . when the gem runs, I believe it follows dependencies
r0bby_ has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
r0bby_ has joined #ruby
<bonhoeffer> this is the gem
<bonhoeffer> i'm trying to type irb and play with the same objects as rspec
dx7iso has quit [Remote host closed the connection]
mgberlin has quit [Read error: Connection reset by peer]
<bonhoeffer> the test spec just has require 'govtrack'
leonmaia has joined #ruby
nicolastarzia has quit [Ping timeout: 245 seconds]
x1337807x has quit [Ping timeout: 250 seconds]
dangerou_ has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
hmsimha has joined #ruby
jaequery has joined #ruby
dangerousdave has joined #ruby
Takle_ has joined #ruby
dangerou_ has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
jaequery has quit [Client Quit]
<bonhoeffer> would love to know how rspec sees load paths
matty1234 has quit [Quit: Connection closed for inactivity]
ponga has quit [Read error: No route to host]
ponga has joined #ruby
dx7iso has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
spacemud has joined #ruby
vinleod has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
elastik has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
Takle_ has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
ponga has quit [Ping timeout: 252 seconds]
apurcell has joined #ruby
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leonmaia has joined #ruby
Takle_ has quit [Remote host closed the connection]
ragingcake_ has joined #ruby
georgesmith has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
kobain has joined #ruby
<arup_r> jhass: Hi.. There ?
Takle has joined #ruby
apurcell has quit [Ping timeout: 252 seconds]
Val__113 has quit [Read error: Connection reset by peer]
msgodf has joined #ruby
georgesmith has quit [Client Quit]
sargas has quit [Quit: This computer has gone to sleep]
jimmyhoughjr has joined #ruby
Guest64 has joined #ruby
chrishough has joined #ruby
Val_ has joined #ruby
bonhoeffer has quit [Ping timeout: 246 seconds]
georgesmith has joined #ruby
chrishough has quit [Client Quit]
MartynKeigher has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
Lewix has quit [Remote host closed the connection]
elastik has joined #ruby
georgesmith has quit [Client Quit]
snath has quit [Ping timeout: 272 seconds]
marr has joined #ruby
mikeric has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
jeanlinux has joined #ruby
georgesmith has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
elastik has quit [Ping timeout: 252 seconds]
jeanlinux has quit [Ping timeout: 265 seconds]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jheg has joined #ruby
mikeric has quit []
tus has joined #ruby
mikeric has joined #ruby
kasperti_ has joined #ruby
Kricir has joined #ruby
it0a has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dx7iso has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
dtordable has joined #ruby
dx7iso has joined #ruby
<dtordable> hello
<dtordable> I got an error on Ruby Gems
<dtordable> and I don't know what happens
<dtordable> the error says:
<dtordable> root@sandbox:~ # gem update --system
<dtordable> WARNING: Error fetching data: too many connection resets (http://production.s3.rubygems.org/latest_specs.4.8.gz)
<dtordable> Updating rubygems-update
<dtordable> WARNING: Error fetching data: too many connection resets (http://production.s3.rubygems.org/specs.4.8.gz)
<dtordable> ERROR: While executing gem ... (NoMethodError) undefined method `size' for nil:NilClass
<dtordable> root@sandbox:~ #
<dtordable> any idea?
georgesmith has quit [Quit: georgesmith]
Mon_Ouie has joined #ruby
ta has joined #ruby
<Hanmac> dtordable: ruby version?
<dtordable> 2.0
yfeldblum has joined #ruby
Takle_ has quit [Remote host closed the connection]
Takle has joined #ruby
kyb3r_ has joined #ruby
dangerou_ has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
dangerou_ has joined #ruby
<dtordable> root@sandbox:~ # ruby -v
<dtordable> ruby 2.0.0p598 (2014-11-13 revision 48408) [amd64-freebsd10]
<dtordable> root@sandbox:~ #
<dtordable> that one
nrsk has joined #ruby
<Hanmac> dtordable: hm you might want to switch to a newer ruby release version like ruby2.1.5 or something like that
mikeric has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
<dtordable> hanmac: is the official Ruby in Freebsd
klmlfl has joined #ruby
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has quit [Remote host closed the connection]
fantazo has quit [Quit: Verlassend]
georgesmith has joined #ruby
max96at is now known as max96at|off
TerjeLarsen has joined #ruby
Areessell has joined #ruby
spacemud has quit [Ping timeout: 255 seconds]
sargas has joined #ruby
dx7iso has quit [Remote host closed the connection]
<dtordable> hanmac: I receive this error:
<dtordable> root@sandbox:/home/daniel # gem install rails
<dtordable> WARNING: Error fetching data: too many connection resets (http://production.s3.rubygems.org/latest_specs.4.8.gz)
<dtordable> WARNING: Error fetching data: too many connection resets (http://production.s3.rubygems.org/specs.4.8.gz)
<dtordable> ERROR: While executing gem ... (NoMethodError) undefined method `size' for nil:NilClass
<dtordable> root@sandbox:/home/daniel #
mostlybadfly has quit [Quit: Connection closed for inactivity]
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
dextaa has joined #ruby
r0bby_ has quit [Quit: Konversation terminated!]
r0bby_ has joined #ruby
t0rc has joined #ruby
<arup_r> hanmac: There ?
t0rc has left #ruby [#ruby]
oo_ has joined #ruby
einarj has joined #ruby
<Hanmac> cant debug it ... maybe something else is broken?
<shevy> dtordable update your ruby version?
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/
psy_ has quit [Read error: No route to host]
r0bby_ has quit [Read error: Connection reset by peer]
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.xz
r0bby_ has joined #ruby
aswen has joined #ruby
<shevy> >> RUBY_VERSION
<dtordable> having ruby 2.0 is an update of what we had before in FreeBSD
<eval-in__> shevy => "2.1.3" (https://eval.in/237094)
<shevy> FreeBSD sounds super slow
<dtordable> FreeBSD is not that slow
<shevy> dtordable what is "gem --version" outputting?
sargas has quit [Quit: This computer has gone to sleep]
mostlybadfly has joined #ruby
dx7iso has joined #ruby
<dtordable> root@sandbox:~ # gem --version
<dtordable> 1.8.29
<dtordable> root@sandbox:~ #
<dtordable> that one
<shevy> ok that is very old
dx7iso has quit [Remote host closed the connection]
<dtordable> shevy: so what do I do then?
<dtordable> rubygems come from FreeBSD ports collection
<shevy> well if you can not switch to a newer ruby
leonmaia has quit [Ping timeout: 240 seconds]
<shevy> you can try to update rubygems itself
<shevy> yes the awful ports
<shevy> people used to compile from the sources
<dtordable> some time ago we had ruby 1.9 whatever
<shevy> yes, you are slow like debian
mliqu has joined #ruby
<shevy> try:
amundj has joined #ruby
<shevy> gem install rubygems-update; update_rubygems; gem update --system # the last step may be not necessary
<dtordable> like debian?
oo_ has quit [Ping timeout: 245 seconds]
mliqu has quit [Max SendQ exceeded]
<shevy> yeah they are also at some ancient ruby version
<dtordable> let me follow you
mliq has joined #ruby
agjacome has joined #ruby
<shevy> try the first two commands
<shevy> then check "gem --version" again
<shevy> test-install a gem
<shevy> then try "gem install rails" again
<arup_r> shevy: help me too
<ragingcake_> is there a Ruby class for checking if system users exist?
<workmad3> shevy: help everyone!
<shevy> arup_r I don't use spec
<arup_r> MiniTest ?
<shevy> ragingcake_ not sure; it is however simple to find out with defaul ruby code
<shevy> oh actually
<ragingcake_> Without executing a bunhc of shell scripts
<dtordable> shevy: I understand what you're saying
<workmad3> ragingcake_: why ask in here? why not ask back in #chef and get pointed to the fact that ohai loads all those details? :P
<dtordable> let me have a cig and I continue
<workmad3> ragingcake_: which you were already told ;)
<shevy> ragingcake_ one of my gems does something similar https://rubygems.org/gems/show_available_users let me show which code I use
<ragingcake_> shevy: great thanks,
<shevy> ah yes
<shevy> ragingcake_ require 'etc', then access Etc.passwd
<shevy> I think there is even a simpler way
LouisRoR has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> uid = Etc.getpwnam("debug").uid
ahtik has joined #ruby
<ragingcake_> :)
conniemj has quit [Quit: (null)]
spastorino has joined #ruby
adriancb has joined #ruby
leonmaia has joined #ruby
<shevy> puts 'Owner name is: '+Etc.getpwuid(uid_here).name
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
<shevy> Docu:
<ragingcake_> great thanks
Kricir has joined #ruby
snath has joined #ruby
georgesmith has quit [Quit: georgesmith]
adriancb has quit [Remote host closed the connection]
georgesmith has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DonOtreply has quit [Quit: DonOtreply]
ponga has quit [Ping timeout: 250 seconds]
axilla has quit [Quit: Lost terminal]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 256 seconds]
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
cantonic has joined #ruby
Techguy305|2 has quit [Ping timeout: 245 seconds]
<dtordable> I'm back!
dangerou_ has quit [Ping timeout: 245 seconds]
asmodlol has joined #ruby
<dtordable> hanmac: have this:
<dtordable> root@sandbox:/home/daniel # gem install rubygems-update
<dtordable> WARNING: Error fetching data: too many connection resets (http://production.s3.rubygems.org/latest_specs.4.8.gz)
<dtordable> ERROR: While executing gem ... (NoMethodError) undefined method `size' for nil:NilClass
workmad3 has quit [Ping timeout: 240 seconds]
<dtordable> root@sandbox:/home/daniel #
spacemud has joined #ruby
<shevy> k so you can not install any gems
<dtordable> my problem?
<shevy> if this is the default quality from freebsd then you should consider using another OS
<shevy> at least the debian folks have a working gem
<Hanmac> dtordable: did you try newer ruby version? because i cant debug it on my system
<dtordable> I understand
<shevy> dtordable at http://rubygems.org/gems/rubygems-update you can download the .gem file directly
<dtordable> let me check
<shevy> once you do this, you can install it through gem install ./rubygems-update*gem
ramfjord has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
<dtordable> Ruby is interesting
Guest64 has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Morkel has quit [Quit: Morkel]
<shevy> ruby is elegant
<dtordable> ruby is freak lol
sargas has joined #ruby
<dtordable> I'm downloading that rubygem update gem
<shevy> should go instantly
<shevy> how slow is your connection ;)
<dtordable> really slow
<dtordable> lol
<dtordable> look at that
sargas has quit [Client Quit]
<dtordable> what if I download that gem?
<shevy> sure
<shevy> <dtordable> some time ago we had ruby 1.9 whatever
<shevy> <shevy> latest rubygems is at: wget http://production.cf.rubygems.org/rubygems/rubygems-2.4.5.tgz
<shevy> I showed that above too but you freebsd guys don't seem to use wget
<shevy> well .tgz is similar
<shevy> but use the .gem
<dtordable> lol
<shevy> it's easier for you
<dtordable> we don't have wget
<dtordable> we use a command called fetch
<deryl> ports does
<deryl> or did
<shevy> you don't have wget??
<shevy> :(
<dtordable> no
<shevy> you can use ruby to simulate wget :D
<dtordable> ports by default use fetch
<shevy> require 'open-uri'; open URL_HERE
klmlfl has quit [Remote host closed the connection]
<shevy> weird
aswen has quit [Ping timeout: 245 seconds]
<shevy> the .gem links don't work for me, only http://production.cf.rubygems.org/rubygems/rubygems-2.4.5.tgz works
<dtordable> I'm trying to download RubyGems 2.4.5
supersym has quit [Ping timeout: 256 seconds]
<dtordable> anyway
gsd has joined #ruby
<dtordable> I install that using my ruby?
devoldmx has joined #ruby
CustosL1men has joined #ruby
<deryl> dtordable as root, pkg_add -r wget && rehash or portsnap fetch update && cd /usr/ports/ftp/wget && make install clean && rehash
<dtordable> do you want me to have wget? lol
ramfjord has quit [Ping timeout: 252 seconds]
<dtordable> I don't want wget!
<shevy> it really does not matter
<shevy> as long as you can download stuff
<deryl> however you need to download stuff
<deryl> what shevy said
<shevy> have you managed to download something
<shevy> or should you switch to windows
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<deryl> i'ma kneecap shevy in a minute. he knows i'm stuck on windows for the moment
dx7iso has joined #ruby
<deryl> the .. the.. mean ol' grinchy type that he is
apurcell has joined #ruby
<shevy> this takes way too long; wget http://production.cf.rubygems.org/rubygems/rubygems-2.4.5.tgz; tar xvzf rubygem*.tgz; cd rubygem*; ruby setup.rb; gem --version
dx7iso has quit [Remote host closed the connection]
<dtordable> have rubygems file in a tgz
supersym has joined #ruby
<shevy> good
kith has joined #ruby
<shevy> you are slow but you are making progress
<dtordable> shevy: hahaha
<shevy> I just noticed
<shevy> you won't have a setup.rb I think :(
<dtordable> I'm slow because my connection is slow
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> then you can install gems without gem too
<dtordable> well
<dtordable> how do I ungrade my rubygems?
<shevy> setup.rb existed before gem
<dtordable> aha
<Morrolan> `curl http://... | tar xfz -` saves you two trips to the disk. Though that's probably not the real bottleneck here. :P
<dtordable> no no
<deryl> you just grab the rubygems-update gem itself and then gem install -l ./rubygems-update-*.gem
<shevy> yeah
apurcell has quit [Ping timeout: 240 seconds]
<shevy> grab the rubygems-update gem!
Azure has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
<deryl> the -l tells gem to look locally
<deryl> + in that command i gave you
mary5030 has joined #ruby
<shevy> deryl did you use wget on freebsd?
<dtordable> me?
<arup_r> ohh.. sorry
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
<deryl> just fetch that url shevy just gave you, then run gem install -l ./path/you/downloaded/it/to/rubygems-update-2.4.5.gem
<deryl> shevy yeah
<deryl> i installed a lot of the linux tools. just made it easier to work cross platform a lot of the time
<dtordable> ruby setup.rb all?
tatum has joined #ruby
AlSquirikou has quit [Quit: Quitte]
<shevy> dtordable nah
<deryl> dude, you could be done WAY before that all completes. hell you could have been done already if you grabbed the gem
<shevy> dtordable and use a better OS really
yfeldblum has joined #ruby
<dtordable> lol
<shevy> even debian manages to have a working rubygems by default
<havenwood> shevy: FreeBSD is a great OS!
<shevy> ruby 2.0!!!
<dtordable> hey
<deryl> freebsd rocks. just some things break. like all platforms
<dtordable> a month ago we had ruby 1.9!!!!!!!!
<dtordable> lol
dx7iso has joined #ruby
<deryl> hrmm, i need to find out if you can use rails 4.1.8 with ruby 1.9.3
<havenwood> dtordable: why aren't you using the 2.1 package?
<shevy> deryl not all platforms. people can use the source :)
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<deryl> ruby 2.0.0 is broken here. (win32)
<deryl> shevy true
<shevy> 2.0.0 was a real sadness
<shevy> but people keep on using it!
<shevy> like dtordable
<deryl> it keeps trying to use unlink() on win32 (XP) which doesn't work. so going to step down to 1.9.3 and see if that works
<shevy> dtordable soon there will be ruby 2.2 as x-mas release (or soon after)
mocfive has joined #ruby
<dtordable> hey
<dtordable> look
<dtordable> root@sandbox:~/rubygems-2.4.5 # gem --version
<dtordable> 2.4.5
<dtordable> root@sandbox:~/rubygems-2.4.5 #
<shevy> do you update or downgrade from freebsd to win?
tatum has quit [Client Quit]
<dtordable> am I cool now?
<shevy> dtordable no
<dtordable> lol
<shevy> <shevy> test-install a gem
<shevy> <shevy> then try "gem install rails" again
<shevy> so your next step is
<deryl> trying to finish a rails app for something. need something that doesn't blow up when you run rspec tests (for some reason that ActiveRecord::Migration.maintain_test_schema! call in rails 4.1.8 burrows down to file_util.rb:1439 and causes unlink() to be called which pukes on permission errors which it has.
Joufflu has joined #ruby
<shevy> test install a (small) gem
<dtordable> hey
mary5030 has quit [Ping timeout: 272 seconds]
<arup_r> Am I out of the context ?
<dtordable> if you have a problem with FreeBSD is not my problem!!!!
<shevy> I don't have a problem
<arup_r> raise Dtordable, "Go and sleep"
<shevy> I don't have to use it :)
Jackneill has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
avahey91 has quit [Quit: Connection closed for inactivity]
<dtordable> heh
rshetty has joined #ruby
<dtordable> shevy: that's better
<dtordable> shevy: I failed a bet and I had to be on Windows 8 for a long time
<shevy> ruby on windows 8 works
<dtordable> now I'm free to use what I want
<dtordable> lol
<shevy> I tried 3 weeks ago
amundj has joined #ruby
<dtordable> yeah yeah
<dtordable> I tried some months ago and it works
<shevy> :)
<dtordable> but well
<dtordable> the word work is not mine
decoponio has quit [Quit: Leaving...]
<dtordable> for example: I don't code ruby
<dtordable> lol
<shevy> why do you want rails
r0bby_ has quit [Read error: Connection reset by peer]
<dtordable> and now:
<dtordable> root@sandbox:/home/daniel # gem install rails
<dtordable> Fetching: rails-deprecated_sanitizer-1.0.3.gem (100%)
<dtordable> Successfully installed rails-deprecated_sanitizer-1.0.3
<dtordable> ERROR: Error installing rails: invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /usr/local/lib/ruby/gems/2.0/cache/nokogiri-1.6.5.gem
<dtordable> root@sandbox:/home/daniel #
<dtordable> LOL
<dtordable> yeah
<dtordable> erase that
r0bby_ has joined #ruby
<shevy> something is wrong on your system
<shevy> where does "gem" and where does "ruby" reside?
Kricir has quit [Remote host closed the connection]
AlSquire has joined #ruby
<shevy> the path /usr/local is simply incorrect if any of them reside in /usr/bin/
<dtordable> no no
nicolastarzia has joined #ruby
<dtordable> they are in /usr/local/bin/ruby
<dtordable> that one
<shevy> my gems reside under /usr/lib/ruby/gems/2.1.0/cache/
volk_ has joined #ruby
<shevy> ok
rshetty has quit [Ping timeout: 245 seconds]
<volk_> hey guys, has anybody here dealth with the elasticsearch gem
<shevy> then the prefix is correct
Hobogrammer has joined #ruby
<dtordable> /usr/local/lib/ruby/gems/2.0/cache/
<dtordable> my gems are in that
Kricir has joined #ruby
<shevy> dtordable can you install other gems?
DonOtreply has joined #ruby
<dtordable> now it installing after removing that gem
<dtordable> Fetching: nokogiri-1.6.5.gem
<shevy> dtordable can you install e. g. "gem install opn" ?
<shevy> well I just want to know if you can install any single gem
<dtordable> it is there now
<dtordable> let me check
<shevy> "gem list" works?
<shevy> rails has many gems
<dtordable> yeah
<shevy> if one gem fails, the whole install of rails may fail, that's why it is easier to install a smaller gem
<dtordable> gem list works
<shevy> how many gems do you see there now?
georgesmith has quit [Quit: georgesmith]
<dtordable> some gems
<shevy> hehehe
<dtordable> (that come from rails)
<dtordable> lol
<shevy> gem list | nl
gr33n7007h has joined #ruby
<shevy> I have 264 gems
jheg has quit [Quit: jheg]
<dtordable> yeah
<dtordable> but you're a ruby pro
<shevy> well these were just gem installations
<dtordable> gem list | nl: not found
<shevy> I think rails has about 50 gems
<dtordable> lol
<shevy> freebsd has no nl ?
<dtordable> let me paste
<dtordable> root@sandbox:~/rubygems-2.4.5 # gem list | nl
<dtordable> ç 1 activesupport (4.2.0)
<dtordable> 2 i18n (0.7.0)
<dtordable> 3 json (1.8.1)
<dtordable> 4 mini_portile (0.6.1)
<dtordable> 5 minitest (5.5.0)
<shevy> nah
<dtordable> 6 rack (1.6.0)
<dtordable> 7 rack-test (0.6.2)
<dtordable> 8 rails-deprecated_sanitizer (1.0.3)
<shevy> just give the last number
<shevy> :P
<dtordable> 9 thread_safe (0.3.4)
<dtordable> 10 tzinfo (1.2.2)
<shevy> man lol
<dtordable> root@sandbox:~/rubygems-2.4.5 #
<dtordable> we of course have nl
nicolastarzia has quit [Ping timeout: 256 seconds]
<dtordable> lol
<shevy> I just zipped up cache/ directory
<shevy> cache.tar.xz
<shevy> 32 MB
<shevy> all gems I have there
<dtordable> aha
<dtordable> what's a gem?
<dtordable> the ruby program packaged?
ndrei has quit [Ping timeout: 272 seconds]
iamninja has quit [Ping timeout: 250 seconds]
<shevy> wow
<shevy> passenger is a HUGE gem
<shevy> dtordable a .gem is like a .zip
yfeldblum has joined #ruby
<shevy> so an author can create a .gem from his project and have this distributed to other people
<havenwood> Passenger 5 also coming out on Christmas?
dx7iso has quit [Remote host closed the connection]
<deryl> ok fuck it. uninstalling railsinstaller 3.0.0 and dropping to 2.2.5 with ruby 1.9.3. http://railsapps.github.io/updating-rails.html says I can use 1.9.3 with up to 4.2, so, after my kid's play maybe I can get this all to gel.
<deryl> shevy talk to ya later
deryl has quit []
Ballkenende has joined #ruby
elastik has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lampd1 has quit []
<dtordable> gem gem
Kricir has quit [Remote host closed the connection]
<dtordable> I think the person who created that name of a packaging system was drunk
<dtordable> lol
Ballkenende has quit [Client Quit]
TPBallbag has joined #ruby
DadoCe has quit [Remote host closed the connection]
oo_ has joined #ruby
Soda has joined #ruby
olivier_bK has joined #ruby
r0bby_ has quit [Quit: Konversation terminated!]
r0bby_ has joined #ruby
lampd1 has joined #ruby
snath has quit [Ping timeout: 240 seconds]
oo_ has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 240 seconds]
TPBallbag is now known as Ballkenede
ponga has joined #ruby
AlexRussia has joined #ruby
Ballkenede is now known as TPBallbag
pika_pika has joined #ruby
elastik has quit [Ping timeout: 258 seconds]
lkba has quit [Read error: Connection reset by peer]
zacts has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
Pattt has quit [Ping timeout: 245 seconds]
sandelius has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandelius has quit [Client Quit]
ragingcake_ has quit [Quit: ragingcake_]
Hello_World has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
greenbagels_ has joined #ruby
hmsimha has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
dangerou_ has joined #ruby
Kricir has joined #ruby
snath has joined #ruby
ohaibbq has joined #ruby
<shevy> dtordable the name of the language is ruby
<shevy> so gem is related to ruby
<shevy> you also have a ruby-to-javascript project called opal
<shevy> and perl is some kind of a gem mineral to isn't it?
<shevy> we are the miners
greenbagels has quit [Ping timeout: 256 seconds]
einarj has quit [Remote host closed the connection]
mjmac has quit [Ping timeout: 258 seconds]
dangerou_ has quit [Ping timeout: 240 seconds]
<shevy> gtk2.rb:134: warning: method redefined; discarding old initialize
<shevy> is there a way to not get this specific warning?
rockdon has quit [Ping timeout: 258 seconds]
<shevy> I am modifying on class Gtk::Entry to call an additional method within initialize()
Cache_Money has joined #ruby
petertretyakov has quit [Quit: Lingo: www.lingoirc.com]
hmsimha has quit [Ping timeout: 252 seconds]
mjmac has joined #ruby
JohnBat26 has quit [Ping timeout: 244 seconds]
hmsimha has joined #ruby
rockdon has joined #ruby
dangerousdave has joined #ruby
<dtordable> shevy: let me read you... I was illuminating gf about FreeBSD (and friends that don't read the fucking manual (the famous RTFM callsign)))
<dtordable> lol
<shevy> I don't read manuals either
arup_r has quit [Quit: Leaving.]
<shevy> I have eliminated man and all man-pages
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dtordable> look
<dtordable> another error
<shevy> I do google however and store in a local knowledgebase in target format choosings made by me
<dtordable> root@sandbox:/home/daniel # gem install rails
<dtordable> Fetching: nokogiri-1.6.5.gem ( 1%)ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) too many connection resets (https://aws-eu-cache01.rubygems.org/gems/nokogiri-1.6.5.gem)
<dtordable> root@sandbox:/home/daniel #
<dtordable> translate that to human
<shevy> firstly that is a really weird URL you use there
<shevy> secondly, something did not work with nokogiri
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<shevy> nokogiri is here: http://rubygems.org/gems/nokogiri
<dtordable> yeah
<shevy> click on the Download link
<dtordable> that's obvious
<shevy> then install it through gem install ./nokogi*.gem
diegoviola has quit [Remote host closed the connection]
<dtordable> yeah
ragingcake has joined #ruby
<dtordable> you're forcing me to install a gem
<shevy> nokogiri must be compiled though
<shevy> you fool - gem install rails does that!
<dtordable> I suppose
<dtordable> so I'll try gem install rails again!
<shevy> satisfy the dependency and it should no longer require it through "gem install rails", as that dependency was already matched
<shevy> did you install nokogiri?
elastik has joined #ruby
<dtordable> can I install that gem as an alone package?
<dtordable> gem install nokogiri alike thing?
hmsimha has quit [Ping timeout: 252 seconds]
<shevy> are you reading what I write man
<shevy> <shevy> nokogiri is here: http://rubygems.org/gems/nokogiri
<shevy> <shevy> click on the Download link
<shevy> you can try gem install nokogiri too
<dtordable> yeah yeah
<shevy> but if it fails, then please don't act surprised
<dtordable> I'm doing that
<majeure> I'm new to ruby, and even I can tell that this is poorly written. https://github.com/joernchen/evil_stuff/blob/master/ruby/proxy-ssl.rb
Kricir has quit [Remote host closed the connection]
<shevy> majeure this style of code often happens when people don't use classes
<majeure> Yeah.
<dtordable> shevy: will try to install that gem then if not then download the gem and continue
<shevy> I don't like this style of code because the developer gives me no control
<shevy> whereas, if he would bundle it into a class, I could decide to call it or not call it; but he puts it all directly into the .rb file, so when you load it, it gets executed the moment you require/load it
DonOtreply has quit [Quit: DonOtreply]
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
<shevy> Gdk::PixbufError::InsufficientMemory
<dtordable> shevy: so what's the way to Ruby?
ravster has quit [Ping timeout: 240 seconds]
<shevy> you mean to learn ruby?
Areessell has quit [Ping timeout: 272 seconds]
elastik has quit [Ping timeout: 255 seconds]
<dtordable> shevy: look:
<dtordable> root@sandbox:/home/daniel # gem install nokogiri
<dtordable> Fetching: nokogiri-1.6.5.gem ( 1%)ERROR: While executing gem ... (OpenSSL::SSL::SSLError) SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server session ticket A
<dtordable> root@sandbox:/home/daniel #
<dtordable> lol
Spami has joined #ruby
<majeure> Probably want to change your gem metadata source to http://rubygems.org I think.
<majeure> Doesn't fix the problem, but works around it.
<shevy> dtordable why do you not read what I write
<shevy> <shevy> but if it fails, then please don't act surprised
<dtordable> yeah
<shevy> <shevy> click on the Download link
<shevy> <shevy> then install it through gem install ./nokogi*.gem
<dtordable> I'm downloading the gem
<dtordable> yeah
<dtordable> I'm doing that now
<dtordable> you're the PRO
<shevy> you have something broken on your system
<dtordable> lol
<shevy> well on my system it just works
<shevy> gem install nokogiri
<shevy> Fetching: mini_portile-0.6.1.gem (100%)
<shevy> Successfully installed mini_portile-0.6.1
<shevy> Fetching: nokogiri-1.6.5.gem (100%)
<shevy> Building native extensions. This could take a while...
<shevy> but I am on ruby 2.1.5 and on linux
DadoCe has joined #ruby
<dtordable> aha
<majeure> dtordable, does https://rubygems.org resolve in your browser? ;p
<shevy> the error above says you have a openssl problem
<shevy> lots of people have had problems with openssl in the last 2 years
<dtordable> yeah yeah it works rubygems.org
ragingcake has quit [Quit: ragingcake]
<shevy> so you can't expect old software to too easily cope with recent problems that were addressed in more recent releases of any given software
<dtordable> well anyway today I'm not doing anything
<shevy> dtordable why do you want rails
adriancb has joined #ruby
<dtordable> shevy: why is not the proper question
<dtordable> I'm galician and we always ask
<dtordable> "why not?"
<dtordable> lol
<shevy> yeah but you can do a lot of stuff in a why not fashion
<shevy> and that does not explain why
asmodlol has quit [Quit: Leaving]
<shevy> people eat when they are hungry. they need energy to survive
Pattt has joined #ruby
<shevy> so why do they eat? they are hungry!
sami has joined #ruby
<sami> Anyone else have this problem in rails 4.2.0.rc3? ActionController::RoutingError (undefined local variable or method `mimes_for_respond_to' for DeviseController:Class):
<dtordable> well
Megtastique has quit []
<dtordable> shevy: it sounds interesting
<dtordable> just interesting
<dtordable> and well
<shevy> :\
<dtordable> I don't have anything else to do
<dtordable> lol
Areessell has joined #ruby
Techguy305|2 has joined #ruby
jamesaxl|2 has joined #ruby
<shevy> I am looking at old ruby code and I have this line:
<shevy> GC.start
<shevy> anyone happens to know why anyone would want to use GC.start?
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
TerjeLarsen has quit [Ping timeout: 245 seconds]
jamesaxl has quit [Ping timeout: 264 seconds]
bonhoeffer has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
dc_ has joined #ruby
Takle has joined #ruby
Kricir has joined #ruby
DonOtreply has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
dx7iso has joined #ruby
TPBallbag has quit [Remote host closed the connection]
supersym has quit [Ping timeout: 264 seconds]
bears has joined #ruby
Kricir has quit [Remote host closed the connection]
elastik has joined #ruby
adriancb has quit [Remote host closed the connection]
ponga has joined #ruby
bears__ has joined #ruby
bears has quit [Ping timeout: 244 seconds]
MartynKeigher has joined #ruby
windowlicker has joined #ruby
hakunin_ is now known as hakunin
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
bears_ has joined #ruby
ponga has quit [Ping timeout: 265 seconds]
bears__ has quit [Ping timeout: 258 seconds]
Guest3816 has joined #ruby
lbrf has quit [Quit: Be back later ...]
i8igmac has quit [Ping timeout: 240 seconds]
bears___ has joined #ruby
i8igmac has joined #ruby
<Guest3816> hey, one question. have my first app in rails running on my server. friend helped me set it up. I use capistrano 3 and rails 4. Cap produciton deploy works perfectly.
<Guest3816> But now I first time added new migrations and locally app works nice, but when I deploy - zero.
<Guest3816> do I need to run rake db:migrate on server or is this not connected and I have problem elsewhere?
Guest3816 is now known as ninab
spacemud has quit [Ping timeout: 240 seconds]
giuseppesolinas has joined #ruby
kasperti_ has quit []
armyriad has quit [Ping timeout: 255 seconds]
bears_ has quit [Ping timeout: 264 seconds]
apurcell has joined #ruby
<apeiros_> Guest59121: #rubyonrails is the rails channel. you need to register your nick.
robbyoconnor has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
apurcell has quit [Ping timeout: 255 seconds]
joost has joined #ruby
mroach has joined #ruby
mjfk has quit [Ping timeout: 256 seconds]
joost is now known as Guest26597
dextaa has quit [Quit: Leaving]
<Karunamon> Hi folks - a temporary brain fart prevents me from writing this better, but how would I best DRY this one liner up?
<Karunamon> msg.split(';').length > 1 ? split = msg.split(';')[0] : split = nil
tejas-manohar has quit [Quit: Page closed]
despai has joined #ruby
<Karunamon> this looks like it would be a great place for a conditional assignment
icebourg has joined #ruby
bears___ has quit [Ping timeout: 272 seconds]
bears_ has joined #ruby
hmsimha has joined #ruby
kirun has quit [Quit: Client exiting]
despai has quit [Client Quit]
aswen has joined #ruby
despai has joined #ruby
Akagi201 has quit []
dx7iso has quit [Remote host closed the connection]
nicolastarzia has joined #ruby
Pupeno has joined #ruby
despai has quit [Client Quit]
dx7iso has joined #ruby
alx has joined #ruby
<Karunamon> I guess I could do: split = msg.split(';').reverse[1] || nil
<Karunamon> no idea why that wasn't coming to me earlier
* Karunamon shrugs
icebourg has quit []
icebourg has joined #ruby
zacts has joined #ruby
adriancb has joined #ruby
despai has joined #ruby
dc_ has quit [Remote host closed the connection]
<havenwood> Karunamon: split = msg.split(';').first if msg.include?(';')
<apeiros_> o0
alx has left #ruby [#ruby]
DonOtreply has quit [Quit: DonOtreply]
spacemud has joined #ruby
<havenwood> Karunamon: though is splitting really what you want to do?
<Karunamon> havenwood: what this is doing is breaking down an incoming command into component parts
goodenough has joined #ruby
nicolastarzia has quit [Ping timeout: 252 seconds]
i8igmac has quit [Ping timeout: 272 seconds]
dtordable has quit [Read error: Connection reset by peer]
LouisRoR has quit [Ping timeout: 256 seconds]
dx7iso has quit [Ping timeout: 272 seconds]
LouisRoR has joined #ruby
dtordable has joined #ruby
<havenwood> Karunamon: split = msg[/[^;]+/]
i8igmac has joined #ruby
nateberkopec has quit [Quit: Leaving...]
bears__ has joined #ruby
<havenwood> Karunamon: what's an incoming command? whatcha making?
<Karunamon> dunno why i'm being so damn evasive, habit of company work i think
<Karunamon> it's a dice roller
<Karunamon> commands look something like
zacts has quit [Read error: Connection reset by peer]
zacts has joined #ruby
zacts has quit [Changing host]
zacts has joined #ruby
<Karunamon> (repeat value, optional);(dice specification - (number)d(number))(math value, optional)
jamesaxl|2 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<Karunamon> 1d20 does the obvious. 1d20+5 does the obvious
<Karunamon> 8;1d20+5 would do eight rolls of d20 with 5 added
DonOtreply has joined #ruby
bears_ has quit [Ping timeout: 245 seconds]
<Karunamon> and 8; 4d20+5 would do eight rolls of the sum of 4d20 + 5
nfk has quit [Quit: yawn]
mengu__ has joined #ruby
bears__ has quit [Ping timeout: 244 seconds]
goodenough has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 244 seconds]
pika_pika has quit [Ping timeout: 258 seconds]
<Karunamon> maybe instead of all this post processing I should just write a regex and use .named_capture
jack_rabbit has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<apeiros_> >> /(?:(?<rolls>\d+);\s*)?(?:<dice>\d+)d(?<sides>\d+)(?<alter>[+-]\d+)?/ =~ "8; 4d20+5"; {rolls: rolls, dice: dice, sides: side, alter: alter}
<eval-in__> apeiros_ => undefined local variable or method `dice' for main:Object (NameError) ... (https://eval.in/237107)
<apeiros_> meh
bears_ has joined #ruby
<Karunamon> i've got it up to the math bit
<apeiros_> oh, match fail
<apeiros_> blergh, typo
<apeiros_> >> /(?:(?<rolls>\d+);\s*)?(?<dice>\d+)d(?<sides>\d+)(?<alter>[+-]\d+)?/ =~ "8; 4d20+5"; {rolls: rolls, dice: dice, sides: side, alter: alter}
<eval-in__> apeiros_ => undefined local variable or method `side' for main:Object (NameError) ... (https://eval.in/237111)
<apeiros_> RAH!
<apeiros_> >> /(?:(?<rolls>\d+);\s*)?(?<dice>\d+)d(?<sides>\d+)(?<alter>[+-]\d+)?/.match("8; 4d20+5")
<eval-in__> apeiros_ => #<MatchData "8; 4d20+5" rolls:"8" dice:"4" sides:"20" alter:"+5"> (https://eval.in/237112)
<apeiros_> good, no lvar tricks then.
i8igmac has quit [Remote host closed the connection]
* Karunamon slow claps
elastik has quit [Ping timeout: 256 seconds]
<apeiros_> fascinating. I manage to write the correct regex in one go, but make two typos…
robbyoconnor has quit [Quit: Konversation terminated!]
TPBallbag has joined #ruby
robbyoconnor has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
codecop has quit [Remote host closed the connection]
ahtik has quit [Quit: Leaving]
olivier_bK has quit [Ping timeout: 244 seconds]
georgesmith has joined #ruby
kalz has quit [Ping timeout: 258 seconds]
mroach has quit [Quit: mroach]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
faris has quit [Remote host closed the connection]
startupality has joined #ruby
<Karunamon> apeiros_: thanks much. slight mod to allow for multiply, divide, and math arguments of arbitrary length:
<Karunamon> ^(?:(?<rolls>\d+);\s*)?(?<dice>\d+)d(?<sides>\d+)(?<alter>([+-\/*]\d+)*)?
<startupality> does anyone know how to filter the angellist API to get jobs where job type is “Remote OK”?
nateberkopec has joined #ruby
georgesmith has quit [Read error: Connection reset by peer]
georgesmith has joined #ruby
mengu__ has quit [Ping timeout: 250 seconds]
Yzguy has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
TPBallbag has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
conniemj has joined #ruby
bears__ has joined #ruby
picassoo has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
mengu has quit [Remote host closed the connection]
bears_ has quit [Ping timeout: 240 seconds]
kalz has joined #ruby
conniemj has quit [Ping timeout: 244 seconds]
jrhe has joined #ruby
gregf has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
<jrhe> I am trying to remove a dependency on active supports mattr_accessor from an open source project. First thing I’m trying to establish is if the usage is actually necessary - they are setting config variables on the module. Is there a better way to do global config for a gem?
blizzy has quit [Ping timeout: 244 seconds]
TPBallbag has joined #ruby
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Karunamon> Say, is there a clever way to have MatchData return nil on an invalid name rather than throwing IndexError?
<ericwood> you could make that happen but it's best not to
<Karunamon> ericwood: was that at me or jrhe?
<ericwood> that was for you
bears__ has quit [Ping timeout: 256 seconds]
<shevy> jrhe config variables on a module like @config ?
adriancb has quit [Remote host closed the connection]
<jrhe> shevy: like Module.config_var = ‘My config value’
<Karunamon> ah.. see if this was a hash, I could do things like " if matchdata['value_that_may_or_may_not_exist'] "
dx7iso has joined #ruby
<jrhe> shevy: with mattr_accessor :config_var in the module
DadoCe has quit [Remote host closed the connection]
<Karunamon> basically MatchData quacks like a hash in every way but this so it's a bit jarring
bears_ has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
despai has quit [Quit: This computer has gone to sleep]
<shevy> jrhe but how is this data stored internally? it must happen in the method NameOfTheModule.config_var=(input) <---
<jrhe> shevy: Well thats just a setter method created by mattr_accessor. I could rip them out and just replace with the generated code but I’m trying to figure out if there is a btter way of doing the config first
windowlicker has quit [Quit: Lost terminal]
LouisRoR has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
niftylettuce has joined #ruby
agrinb has joined #ruby
Pupeno has quit [Remote host closed the connection]
georgesmith has quit [Read error: Connection reset by peer]
georgesmith has joined #ruby
DivineEntity has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
adriancb has joined #ruby
codezomb has joined #ruby
icebourg has quit []
georgesmith has quit [Quit: georgesmith]
zorak8 has joined #ruby
phutchins has joined #ruby
barderer has joined #ruby
jenrzzz has joined #ruby
picassoo has quit []
WildBamboo-Josh has joined #ruby
luisalima has joined #ruby
spider-mario has quit [Remote host closed the connection]