<wasamasa>
every language is interpreted by the cpu it runs on
<havenwood>
sdfs: mruby is ruby too
<rkazak>
script does not require compiling and provides instant feedback...
<wasamasa>
you silleh guise
<Xeago_>
mruby compiles into bytecode for exabmple
livingstn has joined #ruby
<havenwood>
sdfs: ^
livingstn has quit [Excess Flood]
<wasamasa>
sdfs: point is, there are languages that are more suitable for certain tasks
<godd2>
ocra gem will create stand-alone windows executables
<wasamasa>
sdfs: ruby can be used for lots of stuff, but using it for everything might be a bad idea
<sdfs>
yup, exactly what i meant wasa
<wasamasa>
sdfs: this applies to pretty much any language btw
<jhass>
godd2: what it does can hardly be called compiling though
<godd2>
jhass that's true. It bundles up the ruby interpreter with it I blieve
<sdfs>
what is it most useful for?
<Xeago_>
let's use C- to write the next generation of web servers!
livingstn has joined #ruby
<wasamasa>
sdfs: writing quick and dirty scripts
nonks has joined #ruby
VanillaGoat__ has joined #ruby
<jhass>
s/and dirty/
<sdfs>
can you elaborate with details and examples?
BadQuanta has joined #ruby
<godd2>
sdfs: rails
<jhass>
sdfs: rubygems.org
<Xeago_>
sdfs: puppet…
<Xeago_>
chef
<rkazak>
rails.
mib_mib has quit [Ping timeout: 260 seconds]
<havenwood>
sdfs: telephony, aerospace, supercomputing, web apps, whatever
<rkazak>
there are many examples only a google away....
<Xeago_>
home automation :>
<wasamasa>
sdfs: well, if I ever think to myself "Hum, it would be nice if I could automate this menial task", I can hack something together with ruby rather quickly
<existensil>
shell scripting, API integration, the "glue" that holds an enterprise together
<sdfs>
gotcha
<wasamasa>
"glue" is the word I was looking for
Cache_Money has quit [Quit: Cache_Money]
<existensil>
you shouldn't use ruby everywhere, but it is still a fantastic tool and arguably the best tool for certain tasks
<havenwood>
cookies are a sometimes food
<godd2>
sdfs I think the only thing that cant be written in Ruby is Ruby
<jhass>
I hope to use crystal in those other places in the future :P
<sdfs>
lol
<existensil>
you shouldn't try and use ruby for heavy lifting if you can avoid it... your database should do the heavy lifting and so should your web server... but gluing them together is a perfect job for ruby
<havenwood>
but cookies!
<jhass>
godd2: you can write ruby in ruby
<existensil>
godd2: that's absolutely not true: rubinius
<waxjar>
godd2: rubinius is mostly written in ruby :p
<existensil>
its a quite popular version of ruby
<godd2>
jhass how would you make Class be an instance of itself?
<havenwood>
rubie: you can ask a string its #size directly, no need to split to chars then size
nateberkopec has joined #ruby
<havenwood>
rubie: don't explicitly `return` unless you're returning early
chrishough has quit [Client Quit]
<pontiki>
heh. coding standards for the client i'm working with requires return when you're explicitly returning something, *even* when it's the last thing evaluated
<havenwood>
pontiki: yuck
crazydiamond has quit [Ping timeout: 245 seconds]
<rubie>
thanks havenwood
<havenwood>
pontiki: but yeah, when in Rome...
<pontiki>
well, it's their code, their rules
<havenwood>
indeed
<pontiki>
i'm just a hired gun on this job
<pontiki>
which i do not like so much
<rubie>
im trying to figure out how i can make it so when someone guesses the correct letter - i will show them their letter in the correct order of the wod
<pontiki>
so i keep pushing myself to take no ownership of things
<pontiki>
tho yesterday's sprint retro i was a bit strident
<rubie>
so instead of them seeing (Correct letters = oilns) they would see (Correct Letters = L ins
BadQuanta has quit [Quit: Leaving.]
BadQuanta has joined #ruby
elemenopy has quit []
zenojis has quit [Ping timeout: 244 seconds]
duncannz has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
iwishiwerearobot has quit [Ping timeout: 260 seconds]
DivineEntity has joined #ruby
magic is now known as magical_mystery
nonks has quit [Ping timeout: 250 seconds]
parabolize has joined #ruby
wjimenez5271 has joined #ruby
dkb20k has joined #ruby
mib_mib has quit [Ping timeout: 272 seconds]
j_mcnally has joined #ruby
jimbach has joined #ruby
arescorpio has quit [Excess Flood]
chipotle has joined #ruby
gsd has joined #ruby
aspires has joined #ruby
s2013 has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 260 seconds]
hightower4 has joined #ruby
KC9YDN has quit [Quit: ☭ Karl Marx & Friedrich Engels, Vladimir Lenin, Josef Stalin, Mao Tse-Tung, Kim Il Sung, Ho Chi Minh, Fidel Castro & Ernesto Guevara ☭]
jonr22 has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
chipotle_ has joined #ruby
rkalfane has joined #ruby
MattB2 has quit []
jonr22 has joined #ruby
aspires has quit []
Wolland has quit [Ping timeout: 244 seconds]
chipotle has quit [Ping timeout: 255 seconds]
majjoha has joined #ruby
jimbach has quit [Remote host closed the connection]
majjoha has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
chipotle has joined #ruby
kyoshero has quit [Quit: Leaving]
sevenseacat has joined #ruby
chipotle_ has quit [Ping timeout: 245 seconds]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
pen has joined #ruby
MrDoctor has quit [Remote host closed the connection]
MrDoctor has joined #ruby
rkazak has joined #ruby
boombadaroomba has joined #ruby
KC9YDN has joined #ruby
Lewix has joined #ruby
rshetty has quit [Ping timeout: 256 seconds]
ClarusCogitatio has quit [Ping timeout: 244 seconds]
spacemud has quit [Ping timeout: 260 seconds]
jonr22_ has quit [Ping timeout: 256 seconds]
radic has joined #ruby
it0a has quit [Ping timeout: 250 seconds]
boombadaroomba has quit [Ping timeout: 245 seconds]
drawingthesun has quit [Ping timeout: 255 seconds]
radic_ has quit [Ping timeout: 245 seconds]
Photism has quit [Quit: Leaving]
hamakn has joined #ruby
Jake232 has joined #ruby
n008f4g_ has quit [Ping timeout: 272 seconds]
jcdesimp has joined #ruby
spacemud has joined #ruby
byprdct has quit []
flyhigh_ has joined #ruby
braincrash has quit [Quit: bye bye]
spyderman4g63 has joined #ruby
cerberblue has quit [Ping timeout: 250 seconds]
duncannz has quit [Ping timeout: 245 seconds]
braincrash has joined #ruby
jonr2219 has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Ping timeout: 255 seconds]
graydot has joined #ruby
red_horned_rihno has joined #ruby
jonr22 has quit [Remote host closed the connection]
<zenspider>
n_blownapart: nevermind. DO worry about the blog post
<zenspider>
it's just wrong
<zenspider>
that code has two ruby warnings that are really helpful:
<zenspider>
(irb):3: warning: shadowing outer local variable - x
<zenspider>
(irb):2: warning: assigned but unused variable - x
<n_blownapart>
that just draws a line based on the x value. so if you plug in x, f(x) gives you the rise and run of the line.
majjoha has joined #ruby
<zenspider>
but you didn't call f(x)
<zenspider>
you called f()
it0a has quit [Quit: WeeChat 1.0.1]
it0a has joined #ruby
<zenspider>
n_blownapart: in fact, that code has NEVER worked in any version of ruby afaict
<n_blownapart>
if I do puts pithy.call(x) I get the x value outside the scope of the method def.
<zenspider>
ever.
<zenspider>
I would walk away from that author as a whole
<n_blownapart>
oh boy
<zenspider>
it isn't just a bug, because he has a whole paragraph talking about how it should work when it could never ever work that way
<n_blownapart>
oh brother glad I caught you here.
yfeldblum has joined #ruby
<zenspider>
consider this misinformation and go read something else on blocks and closures
rshetty has quit [Ping timeout: 260 seconds]
<zenspider>
I suggest the ruby koans, but you're waiting on chris pine, so the timing might not be right
majjoha has quit [Ping timeout: 265 seconds]
<n_blownapart>
zenspider I'm working on the koans. they are very interesting.
<zenspider>
kk
ramfjord has joined #ruby
lxsameer has joined #ruby
<n_blownapart>
thanks zenspider
<n_blownapart>
I got sidetracked and it seemed the article was well-written
mrdevri has quit [Ping timeout: 265 seconds]
<zenspider>
very well written... and wrong
Spami has quit [Quit: This computer has gone to sleep]
<n_blownapart>
also sinequanon thanks for the help the other day...
<n_blownapart>
zenspider, word
yfeldblum has quit [Ping timeout: 264 seconds]
IrishGringo has joined #ruby
<sinequanon>
n_blownapart: sure np
<sinequanon>
n_blownapart: still slogging through it?
<n_blownapart>
sinequanon, yeah .. have you or zenspider or anyone ever read ruby under a microscope?
<sinequanon>
i haven't, no
<n_blownapart>
looking at it to buy...for later
<zenspider>
I have a copy, but I haven't read it yet
hightower4 has quit [Ping timeout: 264 seconds]
<zenspider>
that's a long way off programming wise
<n_blownapart>
a friend who is a java guy was raving about it...
<zenspider>
it's very good.
<n_blownapart>
zenspider, cool, can't wait to have this stuff take hold..
newmanships has joined #ruby
KC9YDN has quit [Quit: ☭ Karl Marx & Friedrich Engels, Vladimir Lenin, Josef Stalin, Mao Tse-Tung, Kim Il Sung, Ho Chi Minh, Fidel Castro & Ernesto Guevara ☭]
spyderman4g63 has joined #ruby
red_horned_rihno has quit [Ping timeout: 258 seconds]
KC9YDN has joined #ruby
red_horned_rihno has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
spyderman4g63 has quit [Ping timeout: 258 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
jasonmit has joined #ruby
mr_rogerz_ has quit [Ping timeout: 255 seconds]
chipotle has quit [Ping timeout: 244 seconds]
muzik has joined #ruby
afarugie has joined #ruby
melik has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinequanon has quit [Remote host closed the connection]
n_blownapart has quit [Quit: Leaving]
kyusang13 is now known as ChoiKyuSang
ChoiKyuSang has quit [Changing host]
ChoiKyuSang has joined #ruby
viet_power has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
lkba has joined #ruby
viet_power has joined #ruby
<shevy>
dumdedum
sinequanon has joined #ruby
cerberblue has quit [Remote host closed the connection]
majjoha has joined #ruby
<muzik>
didoodidum
<shevy>
yeah
<shevy>
we gonna rock the ruby house
jack_rabbit has quit [Ping timeout: 250 seconds]
<muzik>
well a ruby script to generate random music basic on popular chord structures and timing would certainly be relevant in this channel
bigmac has quit [Quit: Leaving]
<shevy>
all improvement towards audio would be nice
rshetty has joined #ruby
<shevy>
right now our maximum skill level has been assigned by apeiros
<shevy>
when he wrote "Alle meine Entlein"
jcdesimp has quit [Quit: Leaving...]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
"The downside to lying about your terminal type is that the terminal might actually support a lot more than xterm does"
<shevy>
rpag I think the problem is when i set TERM to konsole, and use xterm
<shevy>
I will have no way of knowing that xterm has only a limited support for colours in this scenario
yfeldblum has quit [Ping timeout: 255 seconds]
<shevy>
I never knew msgcat --color=test exists
<shevy>
I stored that all in .sh scripts :\
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
marcdel has joined #ruby
<shevy>
oh
<shevy>
ps -p$PPID
<shevy>
that seems to work
<shevy>
I get "konsole" in kde konsole, and "xterm" in xterm
takle has joined #ruby
<shevy>
\o/
* shevy
dances with rpag
mikepack has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 272 seconds]
oleo__ has joined #ruby
takle has quit [Ping timeout: 272 seconds]
coderhs has quit [Ping timeout: 245 seconds]
<rpag>
:-)
dave304 has joined #ruby
corehook has joined #ruby
oleo is now known as Guest59548
ChoiKyuSang has joined #ruby
<dave304>
please guys why does the first code work and the second does not (1) puts "String has vowels" if "This is a test" =~ /[aeiou]/ and (2) if "This is a test" =~ /[aeiou]/ puts "String has vowels" i am a newbie and still cant figure out the difference Thanks in advance for your help
duncannz has quit [Ping timeout: 240 seconds]
Guest59548 has quit [Ping timeout: 258 seconds]
<zenspider>
expr if cond vs if cond [then|;|return] expr [;|return] end
corehook has quit [Remote host closed the connection]
marcdel has joined #ruby
arrubin has quit []
<dave304>
zenspider i checked the link and corrected the second accordingly. i will also bookmark the page...THANK YOU VERY MUCh..
boombadaroomba has quit [Ping timeout: 260 seconds]
moritzs has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
arquebus has joined #ruby
graydot has joined #ruby
<zenspider>
no prob
<dave304>
shevy THANKS YOU VERY MUCh.. the first one worked out of the box..but the second did not even on irb and sublime text. Though i added "then" , "elseif" and the "end" as suggested by zenspider on the second code and it worked
tvw has joined #ruby
DTSCode has quit [Remote host closed the connection]
atmosx has joined #ruby
DTSCode has joined #ruby
jamto11 has quit [Remote host closed the connection]
theotherstupidgu has quit [Ping timeout: 256 seconds]
fumduq has quit [Remote host closed the connection]
coderhs has quit [Read error: Connection reset by peer]
theotherstupidgu has joined #ruby
rshetty has joined #ruby
jamto11 has joined #ruby
jamto11 has quit [Remote host closed the connection]
jamto11 has joined #ruby
arquebus has quit [Quit: Konversation terminated!]
theotherstupidgu has quit [Quit: leaving]
anaeem1_ has joined #ruby
jamto11 has quit [Remote host closed the connection]
jamto11 has joined #ruby
momomomomo has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
marcdel has quit []
porfa has quit [Quit: porfa]
BadQuanta has quit [Remote host closed the connection]
<rpag>
shevy, what ya working on?
dave304 has quit [Remote host closed the connection]
wchun has quit [Ping timeout: 272 seconds]
<shevy>
rpag right now on a console game ... but not very motivated; a side problem was to determine whether it is running in a terminal like xterm, aterm or kde konsole
<shevy>
there will be more colours if on kde konsole (probably gnome-terminal too but I lack the motivation to test that), opposed to xterm etc..
<unshadow>
So, I have an array of arrays , a = [["b",1],["a",2]] , now I want to delete a specific array inside the 'big' (a) array, I thout about doing: for array in a; a.delete!(["a",2]). but this dosent work
<unshadow>
what is the best way to do this ?
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
jamto11 has quit [Ping timeout: 244 seconds]
<shevy>
dunno but one way is a.reject! {|entry| entry == ["a", 2] }
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
poweratom_ has joined #ruby
poweratom__ has joined #ruby
<shevy>
unshadow does that work?
<unshadow>
hm... it behaves wierd... I'll sen you an example
<unshadow>
cookie[1] contains the Time.now when it was inserted to the main array, then, when I check i see if the Time.now is higher (as is time passed) then the original insertation time
poweratom___ has quit [Ping timeout: 250 seconds]
poweratom_______ has joined #ruby
<atmosx>
Does anyone has a clue on how to display two strings aligned in a HTML/ERB/HTML template?
<shevy>
atmosx use pure ruby!
spyderman4g63 has quit [Ping timeout: 264 seconds]
poweratom____ has quit [Ping timeout: 250 seconds]
<shevy>
atmosx can you use text-align: left and right?
<shevy>
I mean it should be all html and thus css elements must work no?
<shevy>
unshadow how? .delete! does not work on Array
<atmosx>
shevy: nope, I have 2 DNA sequences and I want one to be "below the other" now it comes one after the other, that way you can't do any visual comparison.
poweratom_____ has quit [Ping timeout: 250 seconds]
<unshadow>
so.. I dnot get what rpag meant ...
hamakn has quit [Ping timeout: 240 seconds]
<shevy>
ATATATATA<br>
<shevy>
GCTTATATA
<shevy>
?
<atmosx>
yes
<atmosx>
kinda
<shevy>
well rpag pointed out that .delete! can not work by default
<shevy>
.reject will work if the conditional match applies
rshetty has quit [Remote host closed the connection]
<zenspider>
you're doing for over @cookies
claymore has joined #ruby
<zenspider>
then you're checking each one to see if ary[1] < Time.now
<shevy>
unshadow just apply it directly without using for
KC9YDN has quit [Quit: ☭ Karl Marx & Friedrich Engels, Vladimir Lenin, Josef Stalin, Mao Tse-Tung, Kim Il Sung, Ho , Fidel Castro & Chi MinhErnesto Guevara ☭]
<zenspider>
if that's the case, you walk over @cookies and reject the one == to the currently enumerated one?
<unshadow>
yap
<zenspider>
you already know about reject!, so why aren't you doing that at the top?
rshetty has joined #ruby
<atmosx>
I always worry about your imagination, I'll provide markup in about 13 minutes
<unshadow>
becuse I wont have any knowleage of the content of each array in @array except for the [1] which I should check against time.now
supersym has quit [Ping timeout: 245 seconds]
<shevy>
what does it matter
timonv_ has quit [Remote host closed the connection]
<shevy>
.reject and .select work as a filter - you filter in or out whatever you require there
<zenspider>
you only care about each entry one at a time
coderhs has joined #ruby
<rpag>
atmosx, you can provide markup if you want but i won't help you
<atmosx>
rpag: that's evil.
<unshadow>
cookies.reject! {|entry| entry == cookie[1] < Time.now } you mean like this ?
<atmosx>
rpag: you tricked me into providing markup and then you're not helping.
lxsameer has quit [Ping timeout: 260 seconds]
<rpag>
thats right
<rpag>
deal with it
<shevy>
unshadow can your check work?
toretore has quit [Quit: This computer has gone to sleep]
<zenspider>
I prefer p, lets me label things, see the structure, etc.
rshetty has quit [Ping timeout: 256 seconds]
<unshadow>
yeha you are right, I was just intrested as to why use p :hash array and not puts arry.to_s
<unshadow>
nm :)
<unshadow>
thanks btw all of you
charliesome has joined #ruby
_ixti_ has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
heftig has quit [Read error: Connection reset by peer]
govg has quit [Quit: leaving]
phrozen77 has joined #ruby
heftig has joined #ruby
Xeago has joined #ruby
mtakkman has quit [Remote host closed the connection]
ndrei has joined #ruby
<atmosx>
she drives me craaazyyyy lalalala 80s > *
drawingthesun has joined #ruby
melik has quit [Quit: (null)]
oleo__ has quit [Quit: Verlassend]
thsig has joined #ruby
heftig has quit [Read error: Connection reset by peer]
snovity has joined #ruby
Xeago has quit [Remote host closed the connection]
heftig has joined #ruby
xtreak has joined #ruby
KC9YDN has joined #ruby
o0oo0o has quit [Ping timeout: 250 seconds]
<shevy>
atmosx are you listening to old schoo music again
<shevy>
*school
<atmosx>
yeap
<atmosx>
wake me up, before you go go
parduse is now known as Guest21495
<shevy>
omg
Guest21495 has quit [Killed (weber.freenode.net (Nickname regained by services))]
<shevy>
LAST X-MAS
<shevy>
it is the most hated song during xmas
<atmosx>
what can I do? I'm writing code I don't wanna write, lol I need something to cheer me up. Not to mention that I'm living like a refugee in a room
<atmosx>
until 12/12 that is!
<atmosx>
shevy: yeah that's world-wide lol
parduse has joined #ruby
<shevy>
hehe
<shevy>
not long until xmas too
<atmosx>
I mean, I know so many swearing in Greece over "last christmass" it's amazing how hate over a song, unites people! lol
<shevy>
yeah, same in austria
<shevy>
it is worse than rick roll
<shevy>
because you will hear it as you walk on the streets
<shevy>
in reallife (and some other stupid songs)
yfeldblu_ has quit [Remote host closed the connection]
ringarin has joined #ruby
<shevy>
lol cool
<shevy>
the lead singer is actually born in greece? Georgios Kyriacos Panayiotou
<shevy>
oh ok... immigration into the UK
xcesariox has joined #ruby
agjacome has joined #ruby
josephndenton has joined #ruby
zwer has quit [Remote host closed the connection]
spider-mario has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
oleo has joined #ruby
it0a has quit [Ping timeout: 265 seconds]
zwer has joined #ruby
jheg has joined #ruby
<atmosx>
shevy: yeap
spider-mario has joined #ruby
<atmosx>
shevy: but he doesn't speak Greek, he is Cypriot, George Michael
<pontiki>
80s music ftw
* atmosx
beat it - Michael Jackson
<shevy>
atmosx hmm but cypriots normally speak greek?
<atmosx>
"Show me how funky, strong is your fight, it doesn't matter how's wrong or right..."
<atmosx>
lol
<atmosx>
shevy: it's a dialect, we Greeks, hate it with a passion. It's awful but we can easily understand each other. it's like Italy or Spain
<shevy>
hehe
<shevy>
just like austrian german and northern germany german
josephndenton has quit [Ping timeout: 244 seconds]
nfk has joined #ruby
ringarin has quit [Quit: Leaving]
tkuchiki has joined #ruby
* pontiki
puts on some duran duran
* atmosx
Prince - Why Doves Cry
<atmosx>
pontiki: hahaha, I love a 90s song of Duran-Duran (who do you need who do you looove)
<pontiki>
:)
agjacome has quit [Quit: leaving]
<atmosx>
Hm, I was organizing events in Greece, 2008-2010. Small town actually but we generate good cash for 15-days work. It was kinda frenetic making so many (Greek) people work together and actually come with a decent event... But the 80s parties were the most memorable to me.
<atmosx>
Most successful, IMHO it's the most widely accepted/popular decade for music
<shevy>
atmosx come undone?
newmanships has joined #ruby
<shevy>
atmosx I am very ashamed to admit that I like quite a few songs from the eurodance era. like "sunshine" from westbam
<pontiki>
it's not as though there's no really great new music, but the 80s seemed *so* great
<pontiki>
so consistent
luminor has quit []
<pontiki>
wonder if that's just golden age thinking on my part tho
<shevy>
dunno, a lot of modern music confuses me
<shevy>
the whole dubstep trend
<pontiki>
weird as, because during the 80s i never listened to pop music
<pontiki>
you take one mediocre genre to say there's no great music being made today?
siwica1 has joined #ruby
luminor has joined #ruby
patrick99e99 has joined #ruby
<atmosx>
shevy: hahahaha quite ashamed? Why?
<atmosx>
shevy: You're supposed to like only Mozart because you're Austrian or something?
<shevy>
atmosx because a lot from that era is junk
<shevy>
no I don't like Mozart, save for that death song
<atmosx>
shevy: everything is virtually junk
<atmosx>
who cares?
<pontiki>
90% of everything is crap
<pontiki>
sturgeon's law
siwica has quit [Ping timeout: 272 seconds]
<shevy>
atmosx I more love old music like vivaldi's four seasons concerto
jamto11 has joined #ruby
<atmosx>
pontiki: as long as pop, electro-pop, new age, heavy metal, even progressive metal goes, I think the 80s were as good as it gets. Oh for Rock and Hard Rock too.
<shevy>
david hasslehoff
<pontiki>
i'm going to proclaim the late 60's and early 70's for rock
<pontiki>
the who, stones, beatles, etc
jheg has quit [Quit: jheg]
<pontiki>
many more
<atmosx>
pontiki: so there you go, you can't beat MJ or Madonna with Rihanna and Beyonce, or Dire Straits, U2, Depeche Mode with today's bands... :-/ Metallica, GnR, etc.
<atmosx>
pontiki: do you know "The Sound - I can't escape myself" ?
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
o0oo0o has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
Dude007 has joined #ruby
klaut has quit [Remote host closed the connection]
Dude007 has quit [Client Quit]
yfeldblum has joined #ruby
m8 has joined #ruby
unshadow has quit [Quit: leaving]
ferr has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 255 seconds]
siwica1 has quit [Ping timeout: 265 seconds]
lolmaus has quit [Quit: Konversation terminated!]
lolmaus has joined #ruby
krz has joined #ruby
max96at|off is now known as max96at
xtreak has quit [Quit: ChatZilla 0.9.91 [Firefox 33.0.2/20141027150301]]
thsig has quit [Remote host closed the connection]
takle has joined #ruby
amundj has joined #ruby
spyderman4g63 has joined #ruby
diegoviola has joined #ruby
govg has joined #ruby
thsig_ has joined #ruby
Photism has joined #ruby
takle has quit [Ping timeout: 272 seconds]
spyderman4g63 has quit [Ping timeout: 264 seconds]
agjacome has joined #ruby
luminor has joined #ruby
thsig_ has quit [Remote host closed the connection]
kirun has joined #ruby
krz has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
desp has joined #ruby
xiq has joined #ruby
godd2 has quit [Ping timeout: 256 seconds]
xiq is now known as xrlabs
diegoviola has quit [Quit: WeeChat 1.0.1]
diegoviola has joined #ruby
Wolland_ has quit [Remote host closed the connection]
MrDoctor has quit [Remote host closed the connection]
rshetty has joined #ruby
Wolland has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
mtakkman has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
rshetty has quit [Ping timeout: 250 seconds]
<pontiki>
i don't, atmosx
<atmosx>
pontiki: youtube-it it's nice pure 80s rock
jenrzzz has joined #ruby
Timgauthier has joined #ruby
DefKnight has joined #ruby
DefKnight has quit [Max SendQ exceeded]
DefKnight has joined #ruby
jamto11 has joined #ruby
DefKnight has quit [Max SendQ exceeded]
takle has joined #ruby
elaptics is now known as elaptics`away
coderhs has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
wjimenez5271 has joined #ruby
<shevy>
hehe
<shevy>
atmosx in the 1990s I was in hong kong
<shevy>
they played chinese (cantonese) techno
<shevy>
a totally different music to europe at that time
<atmosx>
really???
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
yeah, it was cool. I also was in Shanghai back then - they kinda tried to out-build Hong Kong and poured in a lot of money to make it appear better, but it was like a cheap clone - nowadays is huge, +25 million people compared to +7.2 in hong kong (not counting the larger nearby municipal/rural areas)
wjimenez5271 has quit [Ping timeout: 250 seconds]
Timgauthier is now known as timgauthier_away
coderhs has quit [Ping timeout: 245 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 265 seconds]
<shevy>
atmosx next task today... build me a new linux kernel
btcctf has joined #ruby
<atmosx>
...
<atmosx>
leenoux
Rx_o has joined #ruby
Timgauthier has joined #ruby
hightower4 has joined #ruby
fgo has joined #ruby
Azure has joined #ruby
germanstudent has joined #ruby
<btcctf>
random question, but i'm wondering if it's possible to prevent strings from containing a certain character
<shevy>
just tried "make xconfig" and this qt interface is so much less usable than the ncurses wrapper
<btcctf>
for example monkey patching String to prevent the letter e
<jhass>
btcctf: .delete('c'
<btcctf>
x = "abe"
<jhass>
ugh, why would you do that
<btcctf>
puts x -> ab
lxsameer has quit [Read error: Connection reset by peer]
<shevy>
btcctf you'd have to somehow intercept string creation
<jhass>
and no, I don't think that's possible
SCHAAP137 has joined #ruby
<btcctf>
jhass: damn
<jhass>
no
<jhass>
good
<btcctf>
shevy: is that possible without recompiling ruby?
<jhass>
it's an insane suggestion
lxsameer has joined #ruby
<shevy>
btcctf dunno, for most classes you could simply overwrite the old variant
luminor has quit []
<btcctf>
it's a crazy question, but it's asking a question to see if something different is possible
<rpag>
btcctf, curious, why do you want to do that?
<rpag>
just experimenting?
<jhass>
^ seriously, what could possibly the reason
<btcctf>
playing with idea/experimenting with an idea of "hardening" ruby apps
<crome>
a serious aversion to the letter e
<crome>
childhood trauma maybe?
<zenspider>
hahahaha
mrgrieves has joined #ruby
<zenspider>
hardening? by removing characters from strings?
<btcctf>
well, starting simple, if i can't remove a single letter, then i have no hope of what i wanted to aim for
<zenspider>
you should also remove all numbers that equate to the guilty chars
<jhass>
"hardening" as in security by obfuscation I guess
<zenspider>
and all equations that might make such numbers
<zenspider>
and and and and
<shevy>
>> class String; def initialize(i = ''); replace(i.delete('c')); end; end; x = String.new 'abc'; x
<jhass>
btcctf: I hope you got your repl for experiments
<jhass>
eval-in is not it
<btcctf>
ok
danguita has quit [Ping timeout: 250 seconds]
<akshaykodali>
jhass: Oh! I didn't know that. Thanks for the knowledge.
robustus|Off is now known as robustus
sar_s has joined #ruby
tuelz has joined #ruby
<akshaykodali>
jhass: I accept that I'm not that good a programmer. I started out with ruby maybe like 2 months back
<akshaykodali>
jhass: But I'm learning it daily and hope to master it soon
<jhass>
btw. ruby convention for indentation is two spaces soft tab
<akshaykodali>
jhass: Meanwhile however I am in need of a good ORM for cassandra
<jhass>
so you hope other people will code it for you
<jhass>
that's not how open source works
Wolland has joined #ruby
<sevenseacat>
lol
danguita has joined #ruby
<jhass>
that's how consulting works
agjacome has quit [Ping timeout: 264 seconds]
<akshaykodali>
jhass: Nope. I hope that interested people will use it and send me feedback like you just did
Wolland has quit [Read error: Connection reset by peer]
<sevenseacat>
theres nothing to use
<jhass>
"it"
<jhass>
^
Synthbread has quit [Ping timeout: 272 seconds]
<apeiros>
/me ponders going more aggressively about eval-in spammers
<rpag>
there's nothing there to give feedback on
<apeiros>
wtf space…
<sevenseacat>
it doesnt do anything
Wolland has joined #ruby
<jhass>
apeiros: (friendly) notice is enough in my experience
<jhass>
they just don't realize
Timgauthier has joined #ruby
Timgauthier has quit [Client Quit]
<akshaykodali>
rpag: As I said, I had a class to take and haven't had the time to properly code anything
haroldwu has quit [Ping timeout: 240 seconds]
<jhass>
akshaykodali: that's a silly excuse
<akshaykodali>
I just pushed the gem so that the name would be reserved
<jhass>
nothing demanded you to ask for contributors at this stage
haroldwu has joined #ruby
spyderman4g63 has joined #ruby
<apeiros>
jhass: more like asking somebody to add the following functionality to eval-in: first-time users get a privmsg telling them about irb/pry and that its purpose is for demonstration purposes
<akshaykodali>
jhass: So when do you suggest I come back looking for contributors? After I got it working but with some bugs>?
tuelz has quit [Ping timeout: 264 seconds]
KA-EL-MAN has joined #ruby
nonks has joined #ruby
larissa has joined #ruby
<rpag>
apeiros, that could be weird, the first time you use it you're told not to use it :D
<apeiros>
where first-time user is determined by nick. unregistered nicks time out after N days.
<jhass>
akshaykodali: after it does anything useful but might lack features for advanced or easier use
clauswitt has quit [Ping timeout: 255 seconds]
<apeiros>
rpag: no. the first time you use it, you're told when to use it. and alternatives for when not to use it.
<jhass>
apeiros: sounds reasonable. And fix UTF-8 support while at it :P
<akshaykodali>
jhass: Point taken. Bye.
akshaykodali has left #ruby [#ruby]
clauswitt has joined #ruby
<sevenseacat>
how odd
Wolland has quit [Ping timeout: 260 seconds]
<apeiros>
or maybe even only enable the use of eval-in for registered users
* sevenseacat
waits for shevy to start shouting about elitism again
spyderman4g63 has quit [Ping timeout: 265 seconds]
<jhass>
wiz-: look out for a package like ruby-dev or ruby-devel
<shevy>
KA-EL-MAN yah well - I dunno why he got so scared of his identity
<wiz->
Trying to install on LMDE latest version
<jhass>
you lack the basic build system for native extensions
<shevy>
I wouldn't care who he is or what. I mean I use ruby because the language is cool, what do I care about personal iconification - got to reboot now to test out this new kernel
shevy has quit [Quit: ""]
yfeldblum has joined #ruby
patrick99e99 has quit [Ping timeout: 258 seconds]
<wiz->
jhass, how can I fix that? ruby --version shows that I have ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
<jhass>
jhass │ wiz-: look out for a package like ruby-dev or ruby-devel
xrlabs has joined #ruby
<wiz->
ok, installing now
<wiz->
ah that solved it for me! :) Thank you jhass
mib_mib has joined #ruby
sinkensabe has joined #ruby
spyderman4g63 has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Client Quit]
phutchins has joined #ruby
andrewlio has quit [Remote host closed the connection]
sar_s has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
Scotteh has quit [Ping timeout: 244 seconds]
spyderman4g63 has quit [Ping timeout: 260 seconds]
Scotteh has joined #ruby
danijoo has joined #ruby
ptrrr has quit [Quit: ptrrr]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
tuelz has joined #ruby
shazaum has joined #ruby
danijoo_ has quit [Ping timeout: 250 seconds]
nateberkopec has quit [Quit: Leaving...]
desp has quit [Quit: This computer has gone to sleep]
agjacome has joined #ruby
josephndenton has joined #ruby
Wolland has quit [Ping timeout: 258 seconds]
tuelz has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
rshetty has joined #ruby
Scotteh_ has joined #ruby
shazaum has quit [Quit: Leaving]
Scotteh has quit [Ping timeout: 264 seconds]
josephndenton has quit [Ping timeout: 245 seconds]
drawingthesun has quit [Ping timeout: 265 seconds]
<pontiki>
execjs is, in fact, the thing telling you to install a JS runtime
<pontiki>
my advice, install node.js and be done
<pontiki>
my other advice, unsolicited, is don't bother with octopress. just use the new jekyll
<wiz->
pontiki, I might just do that honestly, Octopress seems outdated
<pontiki>
OP still uses jekyll 0.12, we're up to 2.5 now
<wiz->
Not sure how I can remove Octopress now though hehe
Scotteh_ has quit [Ping timeout: 244 seconds]
<pontiki>
it's just a git clone...
<pontiki>
rm -rf the octopress dir
<wiz->
yep
Scotteh has joined #ruby
rkalfane has joined #ruby
<pontiki>
we also have our own irc channel: #jekyll
thsig has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 264 seconds]
Meeh has quit [Ping timeout: 260 seconds]
Nieralyte has quit [Quit: Nieralyte]
Meeh has joined #ruby
mr_foobar_baz has joined #ruby
sevenseacat has quit [Quit: Leaving.]
spider-mario has quit [Ping timeout: 250 seconds]
banister has joined #ruby
xcesariox has joined #ruby
Hanmac has joined #ruby
nateberkopec has joined #ruby
thsig has joined #ruby
xenomorph is now known as {xenomorph}
dangerousdave has joined #ruby
jheg has quit [Quit: jheg]
zybi1 has joined #ruby
shevy has joined #ruby
<shevy>
wow
<shevy>
now that reboot almost failed
timonv_ has quit [Remote host closed the connection]
cirn0 has quit [Remote host closed the connection]
<shevy>
I found out that you can simply do: linux init=/bin/bash and reset the superuser password \o/
spider-mario has joined #ruby
timonv_ has joined #ruby
<pontiki>
isn't that fun? :)
<shevy>
dunno... 10 minutes ago I thought I'd have to reinstall altogether
<shevy>
no logins worked at all
it0a has joined #ruby
<shevy>
now I know why people use "make oldconfig"
<shevy>
my newly compiled kernel works except for being unable to see eth-devices like eth0
hmsimha has quit [Quit: Leaving]
<jnylen>
best way to do this? @programmes[p.channels_id] << p
<jnylen>
@programmes being []
<shevy>
is this not good?
<Hanmac>
jnylen: are you sure @programmes should not be a Hash or something?
<shevy>
perhaps he has an Array there
vyorkin has joined #ruby
<Hanmac>
because if its an array, @programmes[p.channels_id] << p will not work
porfa has joined #ruby
<mbr>
as Hanmac said, unless it's two dimensional array
yfeldblum has joined #ruby
<jhass>
well, it could be an array of numbers and he wants to right shift by p...
<jnylen>
I was meaning to do @programmes[channel_id] which have all the programmes for that specific channel than just foreaching them in a view
nonks has quit [Ping timeout: 250 seconds]
xrlabs has quit [Ping timeout: 240 seconds]
quazimodo has joined #ruby
<quazimodo>
yo
<quazimodo>
anyone awake?
<jhass>
you are
<quazimodo>
so I'm a bit stuck here
timonv_ has quit [Ping timeout: 260 seconds]
<Cat_1>
Stuck how?
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Chibi_Uli is now known as Ulrike_Rayne
<quazimodo>
I've been using REXML to parse some xml doc and query it. Now my problem is the same one as with nested hashes, what happens when a node doesn't exist... then I can't do further logic requiring a billion ifs
wiz- has left #ruby ["Leaving"]
jamto11 has joined #ruby
<quazimodo>
for example xml.elements["rsp/photos"].attributes["total"] ... i need to now do unless xml.elements["rsp/photos"].blank?
<Cat_1>
Is the node optional?
yfeldblum has quit [Ping timeout: 255 seconds]
<quazimodo>
Cat_1: not really - should I screen for it early and throw an error if it's not there?
<Cat_1>
You can say something like raise MalformedXMLException unless node.children.exists?
<Cat_1>
or something like that
<Cat_1>
It's why I hate XML parsers, they make life hard. :-p
<mib_mib>
hi - i keep getting this output with rspec as a warning - whats the right way to deal with this without just turning off warnings altogether? : .rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:79: warning: global variable `$CELLULOID_DEBUG' not initialized
pandaant has quit [Remote host closed the connection]
<jhass>
mib_mib: open an issue with celluloid
<mib_mib>
jhass its already been open since march
<mib_mib>
do i just need to patch it locally
jenrzzz_ has quit [Ping timeout: 250 seconds]
<jhass>
then send a PR fixing it
<mib_mib>
i tried setting $CELLULOID_DEBUG = nil
<mib_mib>
in my initializer but it doesn't seem to solve it
jimbach has joined #ruby
<Cat_1>
@quazimodo you can also try using xpath verifications to verify all the elements are present before you parse the XML
<jhass>
mib_mib: your initializer probably runs after it
<jhass>
anyway, fix upstream
<mib_mib>
jhass yeah true - i guess i'll try that
<quazimodo>
Cat_1: alternatively, these guys could have duck typed it instead of throwing around crappy ass nils
<Cat_1>
Monkey patch is your friend.
<Cat_1>
:)
<Cat_1>
If you don't like the way they did it you can always monkey patch the gem it to suit your environment.
mary5030 has joined #ruby
wjimenez5271 has joined #ruby
dangerousdave has joined #ruby
<quazimodo>
lol
<quazimodo>
i don't know xpath very well
subopt1 has joined #ruby
oliver3 has quit [Remote host closed the connection]
<mib_mib>
jhass - i tried putting it in application.rb at the top, i.e. $CELLULOID_DEBUG = false - still throwing it though...
claymore has joined #ruby
mihok has joined #ruby
<mib_mib>
jhass - theoretically this should be before the gem is loaded i would think..
<mihok>
Is there a perferred pattern for parsing arbitrary amount of argv options into an array?
govg has quit [Quit: leaving]
<jhass>
mib_mib: if standard rails setup, the Bundler.require call loads it
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
sar_s has quit [Ping timeout: 256 seconds]
mtakkman has quit [Remote host closed the connection]
ptrrr has joined #ruby
lolmaus_ has quit [Read error: Connection reset by peer]
lolmaus__ has joined #ruby
poweratom_ has joined #ruby
ptrrr has quit [Client Quit]
yfeldblum has quit [Ping timeout: 258 seconds]
MattB2 has joined #ruby
jenrzzz has joined #ruby
supersym has quit [Ping timeout: 260 seconds]
renderful has joined #ruby
edwardloveall has joined #ruby
supersym has joined #ruby
Squarepy has quit [Remote host closed the connection]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karunamon has joined #ruby
poulet_a has quit [Ping timeout: 265 seconds]
rshetty has quit [Remote host closed the connection]
timonv_ has joined #ruby
renderful has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
johnzorn has quit [Ping timeout: 272 seconds]
vince_ has joined #ruby
sinequanon has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kireevco has quit [Quit: Leaving.]
mrgrieves has quit [Ping timeout: 265 seconds]
supersym has quit [Quit: WeeChat 1.0.1]
rkazak has joined #ruby
tkuchiki has joined #ruby
vyorkin has quit [Read error: Connection reset by peer]
mrgrieves has joined #ruby
vyorkin has joined #ruby
danijoo has joined #ruby
tuelz has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
weemsledeux has joined #ruby
weemsledeux has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
eka has joined #ruby
spyderman4g63 has joined #ruby
calahan has quit []
tkuchiki has quit [Ping timeout: 255 seconds]
spyderman4g63 has quit [Remote host closed the connection]
danijoo_ has quit [Ping timeout: 250 seconds]
spyderman4g63 has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
spyderman4g63 has quit [Remote host closed the connection]
kireevco has joined #ruby
spyderman4g63 has joined #ruby
mtakkman has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
claymore has quit [Ping timeout: 244 seconds]
spyderman4g63 has quit [Remote host closed the connection]
zwer has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
zwer has joined #ruby
tuelz has quit [Ping timeout: 265 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
timonv_ has quit [Ping timeout: 244 seconds]
renier has joined #ruby
mary5030 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
claymore has joined #ruby
Gadgetoid_ is now known as Gadgetoid
mtakkman has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
sinequanon has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderman4g63 has joined #ruby
MattB2_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
klaut has joined #ruby
gr33n7007h has joined #ruby
MattB2 has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
wjimenez5271 has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Joufflu_ has joined #ruby
kireevco has quit [Quit: Leaving.]
sinequanon has joined #ruby
rkalfane has joined #ruby
Joufflu has joined #ruby
Wolland has joined #ruby
sar_s has joined #ruby
wjimenez5271 has quit [Ping timeout: 245 seconds]
MattB2 has joined #ruby
mottsiu has joined #ruby
jpinnix____ has quit [Ping timeout: 240 seconds]
subopt1 has quit [Quit: Leaving.]
edwardloveall has quit [Quit: Leaving.]
jpinnix____ has joined #ruby
vyorkin has quit [Ping timeout: 255 seconds]
MattB2_ has quit [Ping timeout: 258 seconds]
Wolland has quit [Ping timeout: 245 seconds]
mottsiu has left #ruby [#ruby]
jenrzzz has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
oracal has quit [Quit: Leaving]
marcdel has joined #ruby
jdj_dk has joined #ruby
jdj_dk has quit [Remote host closed the connection]
jdj_dk has joined #ruby
bluenemo has joined #ruby
bluenemo has joined #ruby
arup_r has quit [Quit: Leaving.]
weemsledeux has joined #ruby
cleopatra has joined #ruby
rkazak has left #ruby [#ruby]
<cleopatra>
hello ruby people
jenrzzz has quit [Ping timeout: 264 seconds]
darkswordchris has joined #ruby
<darkswordchris>
Hello. Does RVM install MRI?
<jhass>
yes
<Cat_1>
not unless you tell it to?
<jhass>
it can install rubinius and jruby too
<Cat_1>
You can alsos install jruby
rbrs has joined #ruby
rbrs has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
<darkswordchris>
What is the specific command I need? I think I'm doing something wrong. I used "rvm install ruby-2.1"
maestrojed has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
Hobogrammer has joined #ruby
jottr_ has joined #ruby
rbrs has joined #ruby
AndChat| has quit [Quit: Bye]
BlackGear has quit [Remote host closed the connection]
lkba has joined #ruby
BlackGear has joined #ruby
<havenwood>
darkswordchris: rvm get stable; rvm install ruby-2.1.4
<havenwood>
darkswordchris: the RVM channel is #rvm
yfeldblum has quit [Ping timeout: 245 seconds]
iwishiwerearobot has quit [Ping timeout: 260 seconds]
jottr_ has quit [Ping timeout: 244 seconds]
parabolize has joined #ruby
<darkswordchris>
ok, so RVM isn't the issue then. When trying to use qmake with pkg-config, I get the error "Project ERROR: Package ruby-2.1 not found." RVm t
edwardloveall has joined #ruby
<darkswordchris>
RVM tells me ruby 2.1.4 is installed, ruby --version also returns version 2.1.4
josephndenton has joined #ruby
kireevco has joined #ruby
sinequanon has quit [Remote host closed the connection]
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tuelz has joined #ruby
<havenwood>
sounds like it's looking for that particular package, not just any ruby 2.1.x
Jameser` has joined #ruby
gaganjyot has quit [Quit: Leaving]
timonv_ has joined #ruby
Jameser has quit [Read error: Connection reset by peer]
pdtpatrick has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephndenton has quit [Ping timeout: 250 seconds]
kireevco has quit [Client Quit]
<darkswordchris>
havenwood: I can specify the version with a variable, tried the exact one I have and it still didn't work
aspires has joined #ruby
pdtpatrick has quit [Client Quit]
josephndenton has joined #ruby
eduardoboss has joined #ruby
pdtpatrick has joined #ruby
pdtpatrick has quit [Client Quit]
pdtpatrick has joined #ruby
pdtpatrick has quit [Client Quit]
spider-mario has joined #ruby
pdtpatrick has joined #ruby
takle has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
weemsledeux has joined #ruby
TPBallbag has joined #ruby
gsd has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
jonr22 has quit [Remote host closed the connection]
spastorino has joined #ruby
desp has joined #ruby
lolmaus has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus__ has quit [Read error: Connection reset by peer]
nkumari has joined #ruby
takle has joined #ruby
cantonic has quit [Quit: cantonic]
JBreit has joined #ruby
corehook has quit [Remote host closed the connection]
cantonic has joined #ruby
chishiki has joined #ruby
poweratom_ has quit [Quit: Be back later ...]
maletor has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
j_mcnally has joined #ruby
Akuma has quit [Quit: So long sukkas!]
timonv_ has quit [Ping timeout: 244 seconds]
ClarusCogitatio has joined #ruby
nkumari has quit [Remote host closed the connection]
nkumari has joined #ruby
cantonic has quit [Quit: cantonic]
nonks has joined #ruby
oleo__ has joined #ruby
cantonic has joined #ruby
vectra has quit [Ping timeout: 272 seconds]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
oleo is now known as Guest37634
Wolland has joined #ruby
oleo__ has quit [Read error: Connection reset by peer]
Guest37634 has quit [Ping timeout: 258 seconds]
kireevco has joined #ruby
dreinull has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
DLSteve_ has quit [Quit: Leaving]
ClarusCogitatio has joined #ruby
<dreinull>
how do I effectively fill an html table (month) with events taken from x calendars? right now I'm doing it day by day, selecting from each calendar. This is slow. Obviously.
<Xeago>
dreinull: that question is why too highlevel
oleo__ has joined #ruby
<dreinull>
Xeago: no, not code. Some ideas for the algorithm.
oleo__ is now known as oleo
maestrojed has joined #ruby
<Xeago>
I'd just pull events as they need
<apeiros>
dreinull: same
Wolland has quit [Ping timeout: 255 seconds]
<Xeago>
assuming calendars contain ordered lists of events
<Xeago>
even a worst case should not be expensive
<apeiros>
dreinull: which algorithm to choose depends highly on which ways to query the calendars have what performance properties
newmanships has joined #ruby
<dreinull>
Xeago, apeiros: I'm doing a 12 month overview. so right now I have 7 calendars * 365.
<Xeago>
if you're doing a year, do you really need day resolution?
<dreinull>
yes
livingstn has joined #ruby
blueOxigen has quit [Ping timeout: 256 seconds]
b3itz has joined #ruby
<Xeago>
your calendar must be really slow then
<Xeago>
looping over 2500 items isn't that hard
<dreinull>
I said I can replace a word doc with all events. Doing it the smart way with digital calendars.
dangerousdave has joined #ruby
<Xeago>
(hard for a cpu)
kireevco has quit [Quit: Leaving.]
<apeiros>
dreinull: show your current code. show profiling info.
mihok has quit [Read error: Connection reset by peer]
<apeiros>
everything else is just shooting in the blue and utterly pointless.
<Xeago>
I concur.
<b3itz>
hey guys, im using inFile = File.readlines('input.tx') print inFile. But it gives me all the nasty carriage returns or \n. how can i clean this up?
<b3itz>
*.txt
mihok has joined #ruby
<apeiros>
b3itz: use read instead of readlines
<apeiros>
or use puts instead of print
cantonic has quit [Quit: cantonic]
<apeiros>
readlines returns an array, not a string
<b3itz>
the input.txt is just numbers separated by spaces and there are 4 separate lines
<b3itz>
puts worked
<b3itz>
ok, now if i need to put each of these lines into an array rather than print them?
kireevco has joined #ruby
<b3itz>
each line in one array
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
<apeiros>
readline already returns an array of all lines
ClarusCogitatio has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
<Xeago>
dreinull: I\m not even going to look at that function
<apeiros>
dreinull: errr, lol? you search *all days in all calendars* on *every day*?
<apeiros>
that's silly beyond reason
<dreinull>
I do have the same calendar with ri_cal instead of google api client and that's a whole lot faster.
<Xeago>
dreinull: the indentation is abysmal
<dreinull>
apeiros: as I said...
ClarusCogitatio has joined #ruby
<apeiros>
dreinull: I see. I assumed a base level of sanity.
<dreinull>
thank you
<dreinull>
:)
<apeiros>
dreinull: helpers - utterly wrong place to prepare data. so first step is write a proper class which is NOT called in your views.
sinequanon has joined #ruby
<b3itz>
apeiros: oh ok. i need to read in a single line as an array and pass it to another def
<apeiros>
dreinull: second step: in that class, accept the calendars and the desired range in the constructor
<apeiros>
dreinull: third step: have a method which fetches all events from all calendars in that given range and stores it within that class
<Xeago>
step zero: format your code
<apeiros>
dreinull: third step - well, you're mostly done
claymore has quit [Quit: Leaving]
yfeldblum has joined #ruby
<apeiros>
Xeago: reload the page. github sometimes has troubles with the markup
<b3itz>
apeiros: would inFile.each_line do |line| work?
<dreinull>
apeiros So day by day, all calendars included.
<apeiros>
b3itz: yes. also in_file, not inFile. (ruby conventions)
<Xeago>
b3itz: that will call the block on each line
canton7 has joined #ruby
canton7 has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<b3itz>
why in_file?
gregf has quit [Quit: WeeChat 1.0.1]
<apeiros>
because we use snake_case in ruby, not camelCase
<Xeago>
ruby does snake_case
<b3itz>
my professor sucks
<b3itz>
-_-
<apeiros>
:-D
<Xeago>
he probably stems from java :>
<apeiros>
tell your prof to visit us. we'll unsuck him :-p
<b3itz>
thanks!
<b3itz>
ye does lol
<apeiros>
conventions differ from lang to lang
<Xeago>
I'd be glad you're using a somewhat nice language
<apeiros>
but when in rome…
<apeiros>
yadda yadda…
<b3itz>
*he does (stem from java)
nkumari has quit [Remote host closed the connection]
<apeiros>
yes, your prof gets massive plus points for using/allowing ruby!
nkumari has joined #ruby
<b3itz>
i used java a lot last year. i guess i just carried it over as well lol
<b3itz>
well, its an admin scripting class we have to take
<apeiros>
work or majoras mask… hmmm… difficult decision.
jenrzzz has quit [Ping timeout: 250 seconds]
<b3itz>
brb
b3itz has quit [Quit: Page closed]
Avahey has joined #ruby
<atmosx>
apeiros: emulator or N64?
<apeiros>
emulator on wii u
JBreit has left #ruby ["Leaving"]
ClarusCogitatio has quit [Ping timeout: 264 seconds]
<atmosx>
I see
<atmosx>
majora's mask is the worst title imho, of the series :-P
<atmosx>
but anyway, enjoy (whatever you do)
<apeiros>
n64, gbc, gba, 3ds are the zeldas I missed. gotta catch up there :D
<dreinull>
I might add that the last link was a slim file. So there's nothing to indent or reformat. It uses indentation for hierarchy.
yfeldblum has quit [Ping timeout: 244 seconds]
<apeiros>
my favorite is still link to the past
IrishGringo has joined #ruby
ClarusCogitatio has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dreinull>
to keep some dignity :)
* Xeago
hails to link to the past
<atmosx>
apeiros: that's the SNES title right/
<atmosx>
apeiros: that's my favorite too.
<Xeago>
atmosx: yes
<apeiros>
atmosx: yupp
<apeiros>
the worst is still zelda 2, on the NES
<atmosx>
apeiros: did you ever managed to open a box, from kokoriko village?
* Xeago
still has a working snes and link to the past rom :D
dangerousdave has joined #ruby
<apeiros>
tried it again on the emu on wii. didn't manage to play it through.
<atmosx>
apeiros: a box that comes with you wherever you go (within the village iirc)
<apeiros>
Xeago: I only have the snes part :(
decoponio has quit [Quit: Leaving...]
<apeiros>
atmosx: of course. I solved everything :D
b3itz has joined #ruby
<Xeago>
apeiros: the rom goes for $5
<apeiros>
atmosx: you have to go to the thieve in the desert
<apeiros>
atmosx: the one who doesn't talk
<b3itz>
is there a way in linux to have 4 windows snapped in my gui rather than 2?
<b3itz>
like, tiled i guess
<Xeago>
b3itz: use a tiling window manager?
<b3itz>
(ubuntu)
<b3itz>
i guess so Xeago
<Xeago>
I'm using i3
auxbuss has quit [Quit: I'm gone.]
<Xeago>
xmonad is popular too
<atmosx>
apeiros: aaah .. . what's in it?!
<apeiros>
I think a heart part
silkfox has quit [Ping timeout: 265 seconds]
<b3itz>
*quickly downloads i3*
<apeiros>
or an empty bottle?
<apeiros>
not sure anymore. walkthroughs will tell :)
<apeiros>
I think it was an empty bottle
<Xeago>
apeiros: don't hax
<Xeago>
!
<atmosx>
apeiros: there is also another sword level, not master sword, not the re-vamped version there's yet another one
<atmosx>
never got that either
bgamari has left #ruby ["Leaving"]
<b3itz>
now how do i use it Xeago
<apeiros>
Xeago: there were no walkthroughs when I beat it on SNES and found all items!
Vile` has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
yfeldblum has joined #ruby
<atmosx>
I had to finnish that alone at the time there were no walkthroughs :-P
<apeiros>
atmosx: yes, fairy gives you L4 gold sword
<atmosx>
no internet in Greece
<atmosx>
yeah which fairy?
<atmosx>
man I have to do everything all over again lol
<apeiros>
not sure, I think the one in the temple where you need the huge bomb
godd2 has joined #ruby
<Xeago>
b3itz: I don't know ubuntu, I use plain old debian
<shevy>
cool
<shevy>
I got a trojan /usr/bin/.sshd
<Xeago>
I believ eyou can log out and select the WM in ubuntu
<b3itz>
looks like i3 is for the terminal though anyway
<Xeago>
b3itz:
<Xeago>
?
<b3itz>
like, it looks like it only snaps the terminal? or did i see that wrong
<Xeago>
terminals tile very well
<Xeago>
b3itz: it snaps windows
<b3itz>
oh -_-
<Xeago>
it tiles them
melik has joined #ruby
Vile` has joined #ruby
<Xeago>
you can run firefox left, and have 3 terminals split in a third on the right
<Xeago>
for instnace
<atmosx>
nah I had the golden sword okay
henesy has joined #ruby
aspires has quit []
b3itz has quit [Remote host closed the connection]
<atmosx>
thought there was yet another
<Xeago>
(anyone for a game of dota?)
<apeiros>
L1 is the one from your father
* atmosx
can go own with his life nw
<apeiros>
L2 is the master sword
<apeiros>
L3 you get from letting the dwarfs harden your master sword
<atmosx>
I still remember the chills when I got the master sword
<apeiros>
L4 is gold sword from fairy
ClarusCogitatio has quit [Ping timeout: 264 seconds]
S0da has joined #ruby
* Xeago
never got gold sword :<
<apeiros>
not sure whether going from L2 to L4 directly works
<apeiros>
never tried that :)
<Xeago>
I think you can go from L1 to gold?
<Xeago>
saw that on a area run I think
ClarusCogitatio has joined #ruby
<atmosx>
realy?
<atmosx>
that beats the purpose
<atmosx>
the fairy is in the light world?
<atmosx>
it would made sense if she were int he dark wrld
<Xeago>
you can get level2 shield without getting L1 shield
<atmosx>
the L2 shield was the big one?
<Xeago>
the red one yea
<atmosx>
I don't think I ever enjoyed another game so much
<atmosx>
wasn't big fan of games anyway
<MattB2>
Xeago, apeiros, atmosx - get a room!
<atmosx>
MattB2: what room?
<atmosx>
possibly one with a big screen
<Xeago>
MattB2: we have one :> If there is ruby to be discussed here it'll have precedence
justin__ has joined #ruby
justin__ has quit [Client Quit]
<apeiros>
Xeago: I don't see how that'd be possible. need mastersword to get into the dark world
<apeiros>
unless you exploit some glitch
codecop has quit [Remote host closed the connection]
<Xeago>
apeiros: could very well be glitch'd
<atmosx>
so I was right
<atmosx>
you need master sword true, to fight the bad fella
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<atmosx>
who will ake to the dark world
dangerousdave has joined #ruby
darkswordchris has quit [Quit: Page closed]
benzrf is now known as benzrf|offline
gamzera_ has joined #ruby
cantonic has joined #ruby
ClarusCogitatio has quit [Ping timeout: 258 seconds]
greenride has joined #ruby
<gamzera_>
hi ruby guys, I need help with converting string into array
jamto11 has quit [Remote host closed the connection]
<greenride>
sample input and output
<greenride>
?
cerberblue has quit [Remote host closed the connection]
ClarusCogitatio has joined #ruby
<Xeago>
String#unpack
benzrf|offline is now known as benzrf
<gamzera_>
greenride: let me give you my _form code http://pastie.org/private/wg5naoay5hxbvxmnp02sbg# so everything that is inputed into email field and separated with comma(,) should be converted into array ofc.
desp has quit [Quit: This computer has gone to sleep]
<jhass>
gamzera_: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
eduardoboss has quit [Quit: Page closed]
<jhass>
gamzera_: pure Ruby solution would be String#split
<gamzera_>
jhass: in ruby on rails they told me to come here ://
<greenride>
try split(','), but I'm not sure exactly what you're doing.
<greenride>
I told him that.
<gamzera_>
greenride: is it that I PM you? it will be much easier to explain.
<greenride>
With the form stuff, you can ask in RoR.
<gamzera_>
So here is how whole site work. You have 2 fields(email and message). Visitor can fill those fields and press submit, after he done that message and email will be shown on homepage - message won't be actually sent to email. I got that working. Now I want that user can enter multiple emails and separate them with ",". If he for example type 3 emails and separate them with comma that should be shown like 3 different messages - different
<gamzera_>
emails, same message of course. So that's I have to do :)
clauswitt has quit [Ping timeout: 250 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<MattB2>
gamzera_: don't mean to be rude, but you've pretty much had the answer to your assignment spelled out for you at least twice over the last two days.
yfeldblum has quit [Remote host closed the connection]
<MattB2>
If you're still not getting, go ask your prof for an easier assignment.
<atmosx>
gamzera_: sinatra is your friend
banister has joined #ruby
<atmosx>
I'm gonna se 'cast away'
<atmosx>
bbl
yfeldblum has joined #ruby
atmosx has quit [Quit: Lost in trance]
nkumari has quit [Remote host closed the connection]
<gamzera_>
MattB2: not really.. I know I should use split method .split(',') but I have no idea if I should put it in _form like this <%= f.label :email.split(',') %><br />
<gamzera_>
or what..
dangerousdave has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
poulet_a has quit [Quit: Ex-Chat]
justin__ has joined #ruby
devdazed has quit [Quit: Bye]
justin__ is now known as b3itz
jenrzzz has quit [Ping timeout: 260 seconds]
DTSCode has quit [Read error: Connection reset by peer]
<b3itz>
so im getting an undefined method on "inFile = File.readlines('input.txt')
<b3itz>
inFile.each_line do |line|
<b3itz>
puts line
<b3itz>
end"
<b3itz>
undefined for each_line
patrick99e99 has joined #ruby
spyderman4g63 has quit [Ping timeout: 255 seconds]
DTSCode has joined #ruby
benzrf is now known as benzrf|offline
tkuchiki has quit [Ping timeout: 264 seconds]
nkumari has joined #ruby
<jhass>
b3itz: readlines already gives you an array of lines
<jhass>
Array does not have a each_line methods since there's no such thing as a line in the context of an array
<gr33n7007h>
b3itz, file = File.readlines('input.txt').each {|line| puts line }
TPBallbag has quit [Remote host closed the connection]
lemur has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sinequanon has joined #ruby
<jhass>
melik: google yaml anchors
<b3itz>
jhass, ok so in my fileIO i did createArray(clean) then i just called createArray and i get Assignment3.rb:29:in `createArray': wrong number of arguments (0 for 1) (ArgumentError)
<jhass>
b3itz: you pass an argument to createArray while it expects no argument
<b3itz>
nvm
<b3itz>
i just called fileIO instead
<b3itz>
that worked
bbloom has joined #ruby
<dorei>
i'm writing a text file parser, in case of syntax errors should I raise SyntaxError or should I create my own custom exception class? :)
Joufflu has quit [Quit: Leaving]
Scotteh__ has quit [Ping timeout: 272 seconds]
dangerousdave has joined #ruby
s00pcan has quit [Remote host closed the connection]
TheNet has joined #ruby
<Cat_1>
Does anyone here use evernote for keeping notes?
desp has joined #ruby
max96at|off has quit [Quit: Bye!]
<tier>
started using it recently
jdj_dk has quit [Ping timeout: 264 seconds]
<tier>
not sure i like it
_ixti_ has quit [Ping timeout: 256 seconds]
jottr_ has joined #ruby
<jhass>
dorei: I'd vote for MyParser::SyntaxError
TPBallbag has joined #ruby
<dorei>
jhass: thanx :)
maletor has quit [Quit: Computer has gone to sleep.]
<gregf>
how can I test if a string is actually json before passing it to JSON.parse so I don't get the parser error?
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ancible>
you are probably best off rescuing the error if it’s not valid
<ancible>
it would be very hard to parse it with any certainty that it won’t fail
<jhass>
gregf: the quesiton is, why don't you know whether it's valid json?
<b3itz>
jhass, ok to back up a little, when i do line_array = clean.split("/\n/").map(&:to_i) i get no output, but when i do line_array = clean.split("/\n/") it works fine
<b3itz>
jhass, i need it as an int
nonks has quit [Ping timeout: 250 seconds]
<gregf>
ancible: well basically I only get a json blob back from the api if theres an error, but if theres no error returned I just want to continue like normal
<jhass>
b3itz: I doubt that either version works fine
<gregf>
ancible: so would I rescue the error and just call next?
takle has quit [Remote host closed the connection]
<jhass>
I don't think your file contains the string "/\n/"
adriancb has joined #ruby
boombadaroomba has joined #ruby
majjoha has joined #ruby
Alina-malina has quit [Ping timeout: 245 seconds]
<b3itz>
jhass, would it be helpful for you to have the input.txt?
<jhass>
I don't think so
Alina-malina has joined #ruby
spider-mario has quit [Remote host closed the connection]
<havenwood>
b3itz: So `ruby` is the executable for the language, Ruby. The `-e` flag lets you run the code that follows (you can read about that and other options under `man ruby`).
duncannz has quit [Read error: Connection reset by peer]
rajeshchawla has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
duncannz has joined #ruby
xyh has joined #ruby
<b3itz>
i just need a way to take the variable clean and get it into an array of ints
<xyh>
in https://www.refheap.com/93002 , if I want to view the test_method as a function of which the argument is an object of BankAccount class, how can I get this function without apply it to an object of BankAccount class ?
<havenwood>
b3itz: check the logs from when they were explaining String#split yesterday
<canton7>
splitting on the last token is a bit anonying iirc
<xyh>
jhass: in Scheme a lamdba is also an object that represents a chunk of code that has some input parameters and a return value. you invoke it by (fun arg)
<sarkis>
canton7: wheres docs on that [ ] way of slicing
mistermocha has joined #ruby
<canton7>
>> p 'foo_bar_baz'.split('_')[0..-2].join('_')
<benzrf>
i have a local repl but im too lazy to press ctrl shift n
<jhass>
next time apeiros sees that it's probably worth a kick ;)
TheNet has quit [Quit: Leaving...]
centrx has joined #ruby
michael_mbp has quit [Excess Flood]
hightower4 has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
Scotteh has joined #ruby
<xyh>
jhass: I see. and by ``transforms to method calls'' you refer to the implementation tech of ruby ? the core is ``method calls'' and other syntax sugar transforms into that ?
nonks has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
<jhass>
xyh: that's partially true but not what I meant. What I mean is that for example an expression like `a == b` is syntatic sugar for `a.==(b)`, that is calling the method #== on a with the argument b
<jhass>
and later expression is valid ruby too in fact
jdj_dk has quit [Remote host closed the connection]
<jhass>
you can map things like method definitions to method calls (`def foo` becomes `define_method(:foo)`), but those transformations aren't actually applied for efficency reasons
mr_foobar_baz has quit [Ping timeout: 250 seconds]
<xyh>
oh! I see
<xyh>
jhass: thx for your explain :)
desp has quit [Quit: This computer has gone to sleep]
razieliyo has quit [Quit: Saliendo]
MattB2 has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 250 seconds]
max96at|off has joined #ruby
max96at|off is now known as max96at
aspiers has joined #ruby
Alina-malina has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
rkalfane has quit [Read error: Connection reset by peer]
Vile` has quit [Read error: Connection reset by peer]
dTSCode has quit [Ping timeout: 244 seconds]
rkalfane has joined #ruby
weemsledeux has joined #ruby
weemsledeux has joined #ruby
edwardloveall has left #ruby [#ruby]
DrCode has quit [Ping timeout: 250 seconds]
Vile` has joined #ruby
Adran has quit [Excess Flood]
majjoha has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
Adran has joined #ruby
zwer has quit [Ping timeout: 250 seconds]
o0oo0o has quit [Ping timeout: 250 seconds]
havenwood has quit [Ping timeout: 250 seconds]
Xeago has quit [Ping timeout: 245 seconds]
MattB2 has joined #ruby
cerberblue has quit [Ping timeout: 250 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
danguita has quit [Ping timeout: 250 seconds]
exgf has quit [Ping timeout: 250 seconds]
avelldiroll has quit [Ping timeout: 250 seconds]
lsmola has quit [Ping timeout: 250 seconds]
nfk has quit [Quit: yawn]
Igneous_ has quit [Ping timeout: 250 seconds]
Wolland has joined #ruby
<gr33n7007h>
line in average, deviation, median should be array_of_ints lol
Igneous has joined #ruby
max96at has quit [Quit: Bye!]
Igneous is now known as Guest32568
* gr33n7007h
man i need sleep
cashnguns has joined #ruby
stephenh has left #ruby [#ruby]
<sarkis>
canton7: im trying to udnerstand what the regex is matching.. "foo_bar_baz"[/^(.*_).*$/, 1]
<sarkis>
and what the number does
<sarkis>
(.*_) matches foo_?
<sarkis>
since it's ^(.*_)
lsmola has joined #ruby
<jhass>
sarkis: check String#[]'s docs
jamto11 has quit []
avelldiroll has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
cantonic has joined #ruby
<jhass>
the regex matches as much as possible followed by a _ (== the last _), then anything
Wolland has quit [Ping timeout: 258 seconds]
pdtpatrick has joined #ruby
MattB2 has quit []
Scotteh_ has joined #ruby
<sarkis>
ah makes sense now
<sarkis>
i was confused on which _ is being matched
<sarkis>
i was reading the docs on the fixnum - still confused :(
nkumari has quit [Remote host closed the connection]
<sarkis>
If the regular expression form is used, the optional second Fixnum allows you to specify which portion of the match to replace (effectively using the MatchData indexing rules.
<b3itz>
gr33n7007h, so when i use the inject, i get an undefined method error
<xyh>
jhass: according to the above, lambda is less used in ruby not only for the syntax reason, but also for a semantic reason that if a function is define inside a class as a method, then one can not abstract that method to a lambda-function.
<sarkis>
so is ^(.*_) = 0 and .*$ = 1?
<gr33n7007h>
b3itz, let me check 1sec
<xyh>
jhass: I am new to ruby. is it that right ?
<gr33n7007h>
works here b3itz
Scotteh has quit [Ping timeout: 272 seconds]
<jhass>
xyh: yes, a method is bound to a class and needs an instance of it to run
<gr33n7007h>
on both methods
klaut_ has joined #ruby
<jhass>
xyh: you should try to understand what blocks are in ruby, that'll make the uses for Proc and lambda pretty clear
<b3itz>
clear
<b3itz>
oops :P
davasaurous has joined #ruby
Wolland has joined #ruby
klaut has quit [Ping timeout: 255 seconds]
jsaak has quit [Ping timeout: 265 seconds]
<b3itz>
gr33n7007h, now im getting a syntax on line 18
jsaak has joined #ruby
<gr33n7007h>
give me a minute a check it through proprtly
<apeiros>
jhass, benzrf: indeed. it might be that I'm not lazy enough to not kick :-p
<b3itz>
gr33n7007h, ok i fixed those syntax errors
max96at|off has joined #ruby
Wolland_ has joined #ruby
<b3itz>
now getting one on line 9 for undefined method inject
max96at|off is now known as max96at
duncannz has quit [Ping timeout: 260 seconds]
cantonic has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
cantonic has joined #ruby
st1gma1 has quit [Read error: Connection reset by peer]