tacos1de has quit [Remote host closed the connection]
tacos1de has joined #ruby
<jenrzzz>
well, it sort of depends
linojon has joined #ruby
djbkd has joined #ruby
<dyreshark>
also note that if you don't end up using <not-intuitive lang> for anything beyond pet projects, it can teach you new ways to think about problems, which may make your code in <used lang> better
<mordof>
dyreshark: always true
<jenrzzz>
yeah definitely
rodri_gore has joined #ruby
<jenrzzz>
what does this do? (line 311)
<jenrzzz>
return $ LispWFunc $ LispFunc closure pnames body
jamto11 has quit [Remote host closed the connection]
jbomo has quit [Ping timeout: 265 seconds]
maximski has joined #ruby
freerobby has quit [Quit: Leaving.]
s00pcan_ has joined #ruby
<dyreshark>
it constructs a LispFunc with the args (closure, pnames, body), then constructs a LispWFunc from the LispFunc, and "returns" it (i.e. wraps it up inside of what i assume is IO)
<dyreshark>
$ says "evaluate what's on the right first, then pass the result into the thing on the left
<dyreshark>
"
<jenrzzz>
oh cool
jonno11 has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
<jenrzzz>
the most frustrating thing about learning new syntax for me is how useless google is at answering “what does this symbol do"
<dyreshark>
you can search it for lots of functions. if it's an operator, just enclose it in parens.
brunops has joined #ruby
<dyreshark>
like ($)
<dyreshark>
mordof: thank you :)
<jenrzzz>
i want to do this for any language
<mordof>
dyreshark: searching for $ worked fine on its own. maybe they updated it?
<dyreshark>
oooh, that's nice
matchaw has quit [Ping timeout: 240 seconds]
<benzrf>
dyreshark: parsect actually
<benzrf>
not I
endash has quit [Quit: endash]
<benzrf>
*IO
omosoj has quit [Ping timeout: 265 seconds]
<dyreshark>
what benzrf said. :P
<benzrf>
i assume ParsecT over Identity since i didnt explicitly use anything
<benzrf>
monads, bitch
<benzrf>
mordof: in haskell return is just a function
troulouliou_dev has joined #ruby
<benzrf>
the thing is, there is a certain syntactic sugar for using monads in what looks like an imperative fashion
<benzrf>
and given the type of 'return' , it usually shows up where return would in an imperative program
<benzrf>
so it got named that
rmorello has joined #ruby
<benzrf>
which is unfortunate
michaeldeol has joined #ruby
blackavr has quit [Quit: blackavr]
ixti has quit [Ping timeout: 240 seconds]
mrj has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
<mordof>
ah
nanoyak has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
<benzrf>
i.e.
torresga has joined #ruby
<benzrf>
getName = do
<benzrf>
print "What's your first name?"
<benzrf>
first <- getLine
<benzrf>
print "What's your LastWhisper name?"
<benzrf>
-- oops i meant last
<benzrf>
last<- getLine
<benzrf>
return (Name first last)
<benzrf>
that's actually a function
alexju has quit [Remote host closed the connection]
<benzrf>
but it looks like return would from a function
<benzrf>
so they named it that
<benzrf>
resulting in mild confusion in millions
nanoyak has joined #ruby
psyko666 has joined #ruby
<torresga>
what language is that benzrf
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
binaryhat has joined #ruby
sski has quit [Remote host closed the connection]
<dyreshark>
speaking of monads and the like, don't feel bad if you don't understand monads/a lot of code when you just start out. lots of parts of the language play together to make for really clear/concise code, but only when you understand what's going on :p
<benzrf>
the thing about haskell is that many of its concepts are more abstract and less amenable to analogy
<torresga>
oooh nice
<benzrf>
in i.e. ruby, you can compare an object to something that understand commands and questions
<torresga>
theres been a lot of haskell talk going on in here
<benzrf>
then you can use that intuition until you actually understand t
<benzrf>
*it
pu22l3r has quit [Ping timeout: 264 seconds]
<benzrf>
but in haskell, that kind of analogy tends to be less useful
<benzrf>
so you just have to use it in semi-understanding until it clicks
<benzrf>
well
<benzrf>
debatably
pel_daniel has left #ruby [#ruby]
sdouglas has joined #ruby
closer has quit [Ping timeout: 256 seconds]
<benzrf>
the main reason monads are so well-known in relation to haskell is because doing I/O and any other kind of side effectual action is done with monads
<benzrf>
so they immediately appear as an obstacle
jamto11 has joined #ruby
<benzrf>
and then people try to learn them first so that they can start with hello world instead of fib
* alpha123
nearly never uses a mouse when he's on linux
pen has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
<wallerdev>
i do do some selecting with the keyboard for what its worth
<benzrf>
hey
ryotarai has quit [Ping timeout: 240 seconds]
<benzrf>
wait nvm
thomasxie has quit [Remote host closed the connection]
<shevy>
we are all ruby masters
sdouglas has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
thomasxie has joined #ruby
nerium has quit [Quit: nerium]
sunya7a_ has quit [Ping timeout: 265 seconds]
sunya7a has quit [Ping timeout: 265 seconds]
<alpha123>
wallerdev: If you use vim, learn about text objects and a few tricks, you'll select stuff much faster than with the mouse
<wallerdev>
eh
ryotarai has joined #ruby
<wallerdev>
i know most of the text selection tricks for emacs
parduse has quit [Ping timeout: 250 seconds]
centipedefarmer has joined #ruby
<benzrf>
hey
bcavileer has quit [Ping timeout: 250 seconds]
gazarsgo has quit [Ping timeout: 250 seconds]
nifty has quit [Ping timeout: 250 seconds]
ceej has quit [Ping timeout: 250 seconds]
<wallerdev>
but i just prefer using a mouse a lot of the time if i need to look around a file for some code i can get that momentum scrolling going and grab the text i need wherever it is haha
pietr0 has quit [Quit: pietr0]
<benzrf>
i'm about to write a class that implements behavior on top of data fetched from a DB
<wallerdev>
i used emacs for awhile but use textmate mostly now
jeffreybaird has quit [Read error: Connection reset by peer]
andrewstewart has quit [Read error: Connection reset by peer]
supershabam has quit [Read error: Connection reset by peer]
<benzrf>
should i:
<wallerdev>
and vim if im sshing somewhere
bcavileer has joined #ruby
<benzrf>
1. bite the bullet and use some dumb db-to-class library
jeffreybaird has joined #ruby
nifty has joined #ruby
gazarsgo has joined #ruby
andrewstewart has joined #ruby
supershabam has joined #ruby
<alpha123>
benzrf: DataMapper.
<benzrf>
2. store the row as a hash in the class and reference the fields i want, asssuming they're there
aspires has joined #ruby
senayar_ has joined #ruby
<benzrf>
3. keep an attr_accessor list corresponding to the rows
<benzrf>
*cols
<benzrf>
alpha123: :(
<terrellt>
wallerdev: I dunno man. ci" has changed my life.
<alpha123>
benzrf: DataMapper is awesome if you manage to work your way around occasion bizarre behavior and near-impossible debugging.
afex has quit [Ping timeout: 276 seconds]
<jenrzzz>
isn’t DM a dead project?
sunya7a_ has joined #ruby
sunya7a has joined #ruby
<benzrf>
hmmmmmmmmmmmmmmmmmmmmm
<wallerdev>
activerecord is where its at
<benzrf>
i wanna write SQL tho
senayar has quit [Ping timeout: 240 seconds]
<benzrf>
SQL exists for a reason
<wallerdev>
sequel is a good gem
<benzrf>
i will be fetching the data with SQL
<wallerdev>
or used to be a few years ago
crazymykl has joined #ruby
<benzrf>
BUT i will be wrapping fetched data in this class
<benzrf>
so my question is, how should i do that
<wallerdev>
activerecord can use raw sql
<benzrf>
is datamapper suitable for that/
<alpha123>
jenrzzz: dm-core got updated 2 days ago....
<benzrf>
im use sequel :-)
ukd1 has joined #ruby
subbyyy_ has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
<alpha123>
jenrzzz: Granted it's not totally active and Ruby Object Mapper was supposed to be its successor; however they're significantly different so I'd say ROM doesn't really succeed DM
sambao21 has joined #ruby
<alpha123>
benzrf: Use DataMapper for that, you can execute raw SQL and it will do the effort of mapping the results to objects
razrunelord has joined #ruby
<alpha123>
wallerdev: ActiveRecord's philosophy is rather flawed
<alpha123>
jenrzzz: It's not a large app. I don't like Rails much so I didn't use that.
razrunelord has quit [Ping timeout: 252 seconds]
SlvrDragn has joined #ruby
SlvrDragn has quit [Disconnected by services]
_m_g_ is now known as SlvrDragn
<alpha123>
Well, Rails is O.K., but Sinatra is somewhat faster for me to develop with, somehow. Also this requires interfacing with a legacy database quite a bit, so DM is quite nice.
danijoo has quit [Read error: Connection reset by peer]
<jenrzzz>
god software is so terrible
<jenrzzz>
why would anyone ever want to be a programmer
akgerber has quit [Ping timeout: 252 seconds]
danijoo has joined #ruby
<alpha123>
Sometimes, I have no idea. :P
toastynerd has quit [Remote host closed the connection]
<alpha123>
I'm not really a programmer though anyway. :P I'm a web designer who knows a fair bit about programming and works at a tiny company so I do some backend stuff as well.
<jenrzzz>
most “mature” engineering fields can at least depend on the laws of physics working the same in most situations
<jenrzzz>
we don’t get that kind of certainty
aspires has quit []
<alpha123>
Makes life more interesting.
momigi has joined #ruby
<alpha123>
Thanks for using proper quotes, it makes me happy
wraakbrasil has joined #ruby
<jenrzzz>
thank colloquy
<jenrzzz>
and it’s fancy-pants smart quotifying
<alpha123>
Oh, cool.
<jenrzzz>
idk how to type those otherwise hehe
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
<mordof>
question: any way to re-order the output of pp so that it displays variables in a class descending instead of ascending in order?
<alpha123>
I need to try that :P
b00stfr3ak has quit [Ping timeout: 240 seconds]
<Bilge>
Why does respond_to? return false for a method exposed by attr_reader?
<jenrzzz>
mordof: monkey patch it maybe?
soheil has quit [Remote host closed the connection]
<mordof>
wouldn't know where to start
nateberkopec has joined #ruby
<jenrzzz>
mordof: why do you want to do this?
<mordof>
jenrzzz: so it'd make my output a lot easier to read?
<jenrzzz>
Bilge: can haz code?
etqqkoiflwhb_ has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
* mordof
isn't sure why else anyone would want to do that
s2013 has quit [Ping timeout: 250 seconds]
beef-wellington has joined #ruby
<Bilge>
jenrzzz: I forgot to specify the method as a Symbol
nateberkopec has joined #ruby
<mordof>
jenrzzz: i'm trying to examine some data from my class (hierarchy, html parsing and all) and because there's a lot of children, all of the children are being listed first
cmejia has joined #ruby
<mordof>
jenrzzz: *then* the relevant data i'm looking for is atthe bottom. so i have to read it in reverse order and it's confusing
<cmejia>
hello everyone
sambao21 has quit [Quit: Computer has gone to sleep.]
<jenrzzz>
mordof: gotcha. yeah i always try to get the big picture before answering. saves a lot of time trying to figure out what someone actually wants vis-a-vis what they say they want
momigi has quit [Ping timeout: 255 seconds]
brunops has quit [Ping timeout: 265 seconds]
fgo has quit [Remote host closed the connection]
<jenrzzz>
mordof: you can define a custom pretty print function on the class called #pretty_print
<mordof>
jenrzzz: though i think i figured out the problem with my logic anwyay
meatherly has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
Shidash has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
combusean has joined #ruby
aspires has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
troulouliou_dev has quit [Quit: Leaving]
<Bilge>
What keyword refers to the current instance of a class?
<jenrzzz>
self
<Bilge>
self doesn't seem to be an instance
<mordof>
then something else is likely the cause
<Bilge>
I can't write `x.is_a? self`
<jenrzzz>
in what context?
<Bilge>
In an instance method
brunops has joined #ruby
<Bilge>
TypeError: class or module required
<jenrzzz>
#is_a? takes a Class argument
<jenrzzz>
self would be an instance
<jenrzzz>
an Object, that is
<jenrzzz>
if you want the class of the current instance, use self.class
sski has quit [Remote host closed the connection]
<jenrzzz>
e.g. x.is_a?(self.class)
Martxel has quit [Ping timeout: 250 seconds]
dik_dak has joined #ruby
sski has joined #ruby
<Bilge>
Oh I see :^)
brunops has quit [Client Quit]
brian___ has joined #ruby
benzrf is now known as benzrf|offline
Xeago has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
onewheelskyward has quit [Ping timeout: 252 seconds]
hermanmu_ has joined #ruby
sski has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
gregf has quit [Ping timeout: 245 seconds]
andrewjanssen has quit [Ping timeout: 245 seconds]
sailias has quit [Quit: Leaving.]
supermarin has quit [Ping timeout: 240 seconds]
sunya7a__ has joined #ruby
aspires has quit []
freezey has joined #ruby
onewheelskyward has joined #ruby
hermanmunster has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
sdouglas has joined #ruby
gregf has joined #ruby
x1337807x has quit [Ping timeout: 250 seconds]
danshultz has joined #ruby
fgo has joined #ruby
djbkd has quit [Remote host closed the connection]
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
skysploit has quit [Remote host closed the connection]
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
beef-wellington has quit [Read error: Connection reset by peer]
beef-wellington has joined #ruby
crucify_me has quit []
crucify_me has joined #ruby
jamto11 has joined #ruby
crucify_me is now known as n_blownapart
fijimunk1i has quit [Quit: Lost terminal]
robustus has quit [Ping timeout: 264 seconds]
ce_afk is now known as cescalante
alpha123 has quit [Ping timeout: 250 seconds]
n_blownapart has quit [Client Quit]
<mordof>
is it possible to include variables in a regular expression match? as in myvar = "string" /myvar$/ ~= "randomstring";
sdouglas has quit [Ping timeout: 240 seconds]
<mordof>
i supose i'm going about it wrong.
robustus has joined #ruby
sevenseacat has joined #ruby
<mordof>
etter yet: i'm wondering how i can see if my variable string matches the beginning of another string
combusean has quit [Ping timeout: 264 seconds]
<mordof>
there may be a string function for that - i'll look into that too
instantaphex has quit [Quit: leaving]
<mordof>
aha.. String#start_with? ... convenient
parduse has joined #ruby
combusean has joined #ruby
<combusean>
hey, for those that use unicorn here, do you guys use process management for any of it or notice memory leaks that require workers to be killed off?
<wallerdev>
mordof: you can do /#{myvar}$/
<wallerdev>
but you probably want to do Regex.escape first
<combusean>
hey wallerdev
supermarin has joined #ruby
<wallerdev>
hey combusean
<combusean>
how are you doing?
<mordof>
wallerdev: noted, thanks
<wallerdev>
im doing great
<wallerdev>
i love mondays
<wallerdev>
:p
<combusean>
why?
<combusean>
oh
<combusean>
lol
<wallerdev>
get to work!
<combusean>
yeah i'm starting phase 2 of my workday
<wallerdev>
phases
<wallerdev>
interesting
pu22l3r has quit [Remote host closed the connection]
<wallerdev>
my work day ends in 5-35 mins
<combusean>
i work from 10 - 4:30 with a long lunch, then start again from like 6:30/7 - 10/11/12
beef-wellington has quit [Ping timeout: 265 seconds]
<wallerdev>
interesting
datafirm has quit [Quit: datafirm]
<wallerdev>
i work 10-7 with an hour lunch
<combusean>
i love it
<wallerdev>
and free dinner
<combusean>
i get a lot of stuff done and fuck off on weekends
codeFiend has joined #ruby
<wallerdev>
yeah my previous job i had to work on weekends
<combusean>
i don't like working in offices
<wallerdev>
felt like i never had any time to relax
<combusean>
too stuffy
<wallerdev>
ah im the opposite
<wallerdev>
i worked from home for awhile and just felt like i was always at work since i had no separation really
<combusean>
i'm compelled to get a beer at lunch more than I'm hungry half the time
beef-wellington has joined #ruby
<combusean>
hard to explain
robbyoconnor has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fijimunkii has joined #ruby
<wallerdev>
and i can walk to work so the commute isnt really an issue
robbyoconnor has quit [Client Quit]
<combusean>
ahh
<combusean>
i half a half mile walk to the M stop that on a good day is 36 minutes from work
djbkd has joined #ruby
* combusean
notes good days don't happen that often
crystal77 has quit [Quit: Computer has gone to sleep.]
supermarin has quit [Ping timeout: 255 seconds]
<wallerdev>
what city?
<combusean>
SF
<wallerdev>
ah same
<combusean>
yeah I knew you were a local. ;)
alpha123 has joined #ruby
<wallerdev>
:)
MatthewsFace has quit [Quit: This computer has gone to sleep]
<wallerdev>
i dont know if i can count as a local being here a few months haha
<wallerdev>
but i passed my drivers test for a california license last week
<combusean>
right on, where are you from?
<wallerdev>
so i guess that makes it official
crucify_me has joined #ruby
<wallerdev>
im from michigan
<wallerdev>
the state that is shaped like a hand, and thats about all it has going for it :p
* combusean
waves to another Bay Arean (crucify_me)
<combusean>
wallerdev, I left Phoenix to come to the bay in 2012
sevenseacat has left #ruby [#ruby]
<combusean>
mostly to see if I could find a ruby job
<wallerdev>
cool
<wallerdev>
did you find one yet
<wallerdev>
lol
<combusean>
yeah
<combusean>
i'm on my 3rd job here =P
fijimunkii has quit [Client Quit]
jack_rabbit has joined #ruby
Es0teric_ has joined #ruby
<wallerdev>
must be making a lot then ;)
fijimunkii has joined #ruby
<combusean>
came here unemployed, found work at a crapfactory that was a bad culture fit and I didn't work hard enough, second company I got laid off, and now I'm at my 3rd
<crucify_me>
combusean: waves back !
crystal77 has joined #ruby
Es0teric has quit [Ping timeout: 240 seconds]
n0n3 has joined #ruby
<combusean>
crucify_me, pardon me stalking your hostmask but how's berkeley?
LaPetiteFromage_ has joined #ruby
mrmargolis has joined #ruby
LaPetiteFromage_ has left #ruby [#ruby]
<mordof>
lol
fijimunkii has quit [Client Quit]
* combusean
still wonders if anyone uses unicorn here
fijimunkii has joined #ruby
<crucify_me>
excellent, gorgeous. but I offended someone today with my nick, changing it now... how is the bay at large?
binaryhat has quit [Quit: Leaving]
Es0teric_ has quit [Read error: Connection reset by peer]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<mordof>
... offended someone? o.o really?
<combusean>
crucify_me, I'm pretty sure I wouldn't want to live anywhere else in the world
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
<alpha123>
crucify_me: Well if you think about it you're asking people to tortore you so I'd think that would offend you and not other people. :P
<jenrzzz>
crucify_me: don’t change it. fuck people
<mordof>
no kidding..
Es0teric has joined #ruby
axl_ has quit [Quit: axl_]
Kricir has joined #ruby
<wallerdev>
combusean: comcast? really?
<alpha123>
combusean: Can't say I do, but when I deploy this app I might
<alpha123>
(regarding unicorn)
<crucify_me>
combusean: I 've lived all over the world...Japan, S. America. The bay area is nice but I'm gonna move soon. yeah mordof on another channel. yeah well I'm a beginner at programming so I ask dumb questions and after enough flack I changed it to cruci fii me
axl_ has joined #ruby
<crucify_me>
jenrzzz: maybe you're right it was a joke in response to people here making me feel stupid.
newUser1234 has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
<n_blownapart>
combusean: jenrzzz so now I'm napolean blown-apart for the squeamish among us.
<combusean>
did they come out and install it? i live in a shitty apt complex
<combusean>
on the edge of town
<combusean>
(parkmerced)
<jenrzzz>
“He who feels punctured / Must once have been a bubble, / He who feels unarmed / Must have carried arms, / He who feels belittled / Must have been consequential, / He who feels deprived / Must have had privilege.”
<jenrzzz>
very nice
<wallerdev>
i think its only for buildings with over 20 units
<jenrzzz>
thanks for that n_blownapart
<combusean>
oh
<combusean>
there's like 10 units in our building
<n_blownapart>
jenrzzz: an excellent translation !
<wallerdev>
my other option was at&t which looked awful
sunya7a is now known as Guest938
<wallerdev>
they dont list their upload speed on their site
<n_blownapart>
witter bynner jenrzzz ?
<combusean>
i'm fine with comcast
<wallerdev>
theyll give you like 30mbps down and 0.5mbps up
<combusean>
i saw GoT last night on hbogo.com in mostly high quality.
ClarusCogitatio has quit [Ping timeout: 245 seconds]
<jenrzzz>
n_blownapart: i’m just quick on the google-fu
<combusean>
while someone else was streaming netflix
<wallerdev>
yeah as long as you got what you need :)
<mordof>
jenrzzz, shevy: there we go - got the initial parsing good to go. just gotta fix up self closing tags.
<jenrzzz>
it was unsourced
<jenrzzz>
idk who translated it
<wallerdev>
i stream video which requires a good amount of upload speed
sunya7a__ is now known as sunya7a
<wallerdev>
and a lot of providers skimp on upload
<n_blownapart>
jenrzzz: Witter Bynner is my favorite. you hit on it I believe
sunya7a has quit [Changing host]
sunya7a has joined #ruby
fgo has joined #ruby
snath has joined #ruby
fgo has quit [Remote host closed the connection]
sdouglas has joined #ruby
alexju has joined #ruby
instantaphex has joined #ruby
Es0teric has quit [Ping timeout: 258 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
wallerdev has quit [Quit: wallerdev]
edgar_wang_cn has joined #ruby
bitri has joined #ruby
senayar_ has quit [Remote host closed the connection]
bitri has quit [Max SendQ exceeded]
supermarin has joined #ruby
instantaphex has quit [Ping timeout: 240 seconds]
ClarusCogitatio has quit [Ping timeout: 250 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcdel has joined #ruby
michaeldeol has joined #ruby
unyo has quit [Quit: leaving]
ddv has quit [Ping timeout: 245 seconds]
ClarusCogitatio has joined #ruby
n_blownapart has quit []
moted has joined #ruby
Mdgd has joined #ruby
<Mdgd>
Hey gang
marcdel_ has joined #ruby
<Nowaker>
howdy
ddv has joined #ruby
tjr9898 has joined #ruby
jtdowney has joined #ruby
<Mdgd>
I could use some insight - I've got two models set up with a many to many relationship in Rails, Purchases and Assets. Now I want to register the quantity of each asset per purchase, and I'm thinking my best option is to jot down an extra field in the association table.
supermarin has quit [Ping timeout: 258 seconds]
<Mdgd>
How would I access it though? Wat do?
marcdel has quit [Ping timeout: 265 seconds]
ClarusCogitatio has quit [Ping timeout: 252 seconds]
<centrx>
Mdgd, Try #rubyonrails
<jenrzzz>
Mdgd: we have candy there
Hanmac1 has joined #ruby
<combusean>
centrx, THANK YOU =)
tjr9898 has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
tyll has joined #ruby
<Mdgd>
.. Candy, you say?
Hanmac has quit [Ping timeout: 240 seconds]
ukd1 has quit [Remote host closed the connection]
<jenrzzz>
Mdgd: yeah I can help you out over there. these curmudgeons don’t want to pollute their precious channel with activerecord shenangians
ukd1 has joined #ruby
n0n3 has quit []
tyll_ has quit [Ping timeout: 255 seconds]
andrewjanssen has quit [Quit: Leaving...]
s00pcan_ has quit [Ping timeout: 250 seconds]
ClarusCogitatio has joined #ruby
datafirm has joined #ruby
HashNuke has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeregrine has quit [Quit: Connection closed for inactivity]
kyb3r_ has joined #ruby
datafirm has quit [Client Quit]
newUser1_ has joined #ruby
ukd1 has quit [Ping timeout: 245 seconds]
decoponio has joined #ruby
Virtualize|away has joined #ruby
MatthewsFace has joined #ruby
nateberkopec has quit [Quit: Leaving...]
ClarusCogitatio has quit [Ping timeout: 264 seconds]
newUser1234 has quit [Ping timeout: 258 seconds]
hgl has joined #ruby
cescalante is now known as ce_afk
wallerdev has joined #ruby
ClarusCogitatio has joined #ruby
<wallerdev>
home sweet home
jbomo has joined #ruby
parduse has quit [Ping timeout: 252 seconds]
cmejia has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
deric_skibotn has quit [Ping timeout: 252 seconds]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
cpruitt has quit [Client Quit]
cpruitt has joined #ruby
supermarin has joined #ruby
rostam has quit [Remote host closed the connection]
* centrx
eats some pie
sdouglas has quit [Remote host closed the connection]
<sweeper>
SHENANIGANS
<sweeper>
srsly tho this captain morgan black is pretty nice
edgar_wang_cn has quit [Ping timeout: 265 seconds]
<Rylee>
Is there shorthand for the following --> ary_of_hashes.sort_by { |e| e[:timestamp] }
<Rylee>
someth8ing like --> ary_of_hashes.sort_by :timestamp
edgar_wang_cn has joined #ruby
<centrx>
Rylee, not for hashes
<jenrzzz>
ary.sort_by(&:timestamp)
<shevy>
that is already short
porco has joined #ruby
<centrx>
Yeah, it's already very short
<jenrzzz>
oh
<jenrzzz>
hash
supermarin has quit [Ping timeout: 240 seconds]
<Rylee>
alright
michael_lee has joined #ruby
<shevy>
if ruby would allow some default accessor rather than forcing you to use || then perhaps it could be shorter
<Rylee>
heh
<wallerdev>
yeah like groovy!
<shevy>
like in array.map! &:chomp
<shevy>
wallerdev groovy has that?
<wallerdev>
pretty sure
<shevy>
damn
<wallerdev>
no one uses groovy though
<jenrzzz>
that works in ruby too
<shevy>
lol
<Rylee>
doesn't really matter all that much, just wanted to know if there was a more idiomatic way to do it
<havenwood>
centrx: dunno! the issue got left with "lets see how a gem does" and that was the end of it!
tacos1de has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
RaptorJesus has quit [Write error: Broken pipe]
end_guy has quit [Write error: Connection reset by peer]
atmosx has quit [Write error: Connection reset by peer]
nouitfvf has joined #ruby
Boohbah has quit [Write error: Connection reset by peer]
<centrx>
A gem certainly does...
<centrx>
"does"
hamakn has joined #ruby
Gooder has joined #ruby
railsbro has quit [Quit: Leaving]
x1337807x has joined #ruby
robbyoconnor has joined #ruby
agjacome has quit [Quit: leaving]
kitak has quit [Remote host closed the connection]
havenwood has joined #ruby
combusean has quit [Ping timeout: 245 seconds]
kitak has joined #ruby
_justin has quit [Quit: _justin]
JoeGaudet has quit [Quit: Computer has gone to sleep.]
bthesorceror has quit [Remote host closed the connection]
havenwood has quit [Client Quit]
bbloom has joined #ruby
St_Marx has joined #ruby
pwh has joined #ruby
bthesorceror has joined #ruby
tacos1de has joined #ruby
mokha_ has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
atmosx has joined #ruby
Kricir has joined #ruby
saarinen has quit [Quit: saarinen]
<havenwood>
centrx: yeah, i guess the idea was whether it'd be a popular idea - but i think it'd be popular if they made it available! :P
LaPetiteFromage_ has joined #ruby
bkparso has joined #ruby
<havenwood>
centrx: tor died on me, took a min to get back up >.>
jtdowney has quit []
linojon has quit [Quit: linojon]
funktor has quit [Remote host closed the connection]
newUser1234 has quit [Read error: Connection reset by peer]
<havenwood>
centrx: we still suffer a bit from the pre-ordered-hash days ;( could stand to be prettied up! o/
mr_snowf1ake has quit [Ping timeout: 255 seconds]
supermarin has joined #ruby
freezey has quit [Remote host closed the connection]
newUser1234 has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
andrewjanssen has joined #ruby
pu22l3r has joined #ruby
supermarin has quit [Ping timeout: 250 seconds]
RaptorJesus has joined #ruby
end_guy has joined #ruby
saarinen has joined #ruby
passbe has joined #ruby
andrewjanssen has quit [Client Quit]
andrewjanssen has joined #ruby
<passbe>
Windows, 1.9.3. Trying to prepend \\ to a variable holding a computer name and use backticks to execute a command. Can't seem to get double backslashes \\ to work. Tried \\\\
razrunelord has joined #ruby
<popl>
don't use backticks? What are you trying to do?
<passbe>
popl: that would usually work with filepaths but this is a command line argument to a windows executable. The command is PsLoggedOn.exe \\computername
LaPetiteFromage_ has quit [Quit: LaPetiteFromage_]
<reactormonk>
shevy, o/
beneggett has quit [Ping timeout: 258 seconds]
<reactormonk>
benzrf|offline, still waiting for you over in #nimrod ;-)
moted has joined #ruby
tjr9898 has quit [Ping timeout: 240 seconds]
moted has quit [Client Quit]
hamakn has quit [Remote host closed the connection]
moritzs has joined #ruby
combusean has joined #ruby
cpruitt has quit [Quit: cpruitt]
<pontiki>
passbe: try single quotes instead of double
<popl>
:O
<pontiki>
>> name = "frank"; name.prepend('\\'); puts name
bricker`LA has joined #ruby
<pontiki>
ohoh
ashleyis has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
newUser1234 has quit [Remote host closed the connection]
kate_r has quit [Read error: Connection reset by peer]
fgo has quit []
kitak_ has quit [Ping timeout: 240 seconds]
<mordof>
hmm.. i'd like to avoid &block if necessary in my methods
<mordof>
seems it's rather high on the performance hit
apeiros_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
michael_lee has quit [Ping timeout: 265 seconds]
Kricir has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
end_guy has quit [Ping timeout: 272 seconds]
Macaveli has joined #ruby
rodasc has joined #ruby
<Hanmac>
hey mkmf users there? is there a way to check if a C++ class has a specific member function?
TheMoonMaster has quit [Ping timeout: 240 seconds]
crodas has quit [Ping timeout: 276 seconds]
Avahey_ has quit [Quit: Connection closed for inactivity]
supermarin has joined #ruby
razrunelord has quit [Ping timeout: 264 seconds]
end_guy has joined #ruby
ta has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros has joined #ruby
roadie has joined #ruby
krazh has joined #ruby
ratdaddy has joined #ruby
supermarin has quit [Ping timeout: 265 seconds]
havenwood has quit [Remote host closed the connection]
jamto11 has joined #ruby
tris has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
TheMoonMaster has joined #ruby
michael_lee has joined #ruby
funburn_ has quit [Ping timeout: 245 seconds]
Jon30 has quit [Ping timeout: 245 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
Rahul_Roy has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
funburn has joined #ruby
<lxsameer>
does respond_to? check for protected and private methods
<lxsameer>
?
Hanmac has quit [Ping timeout: 265 seconds]
<Hanmac1>
lxsameer: read the doc: "Private and protected methods are included in the search only if the optional second parameter evaluates to true."
Zhann has left #ruby [#ruby]
<lxsameer>
Hanmac1: thanks
passbe has left #ruby ["WeeChat 0.4.3"]
moted has quit [Quit: moted]
jamto11 has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
bal has joined #ruby
sdouglas has joined #ruby
Xeago_ has joined #ruby
monkegjinni has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
thomasxie has left #ruby [#ruby]
Xeago_ has quit [Ping timeout: 255 seconds]
chipotle has quit [Quit: cya]
Chamkila has joined #ruby
Chamkila has quit [Changing host]
Chamkila has joined #ruby
ta has quit [Ping timeout: 240 seconds]
<mordof>
is there anything wrong with me doing this: def traverse; yield self; @children.each { |tag| tag.traverse { |x| yield x } } end to have a recursive call with a block on the original call that gets passed recursively?
<mordof>
i'm not sure how the |x| yield x section works
<mordof>
it seems like this is creating a new block for each recursive call
alem0lars has quit [Quit: alem0lars]
<mordof>
so if i had 12 generations in this - the last one's yield would get passed through each generation's yield all the way up to the parent yield, correct?
supermarin has joined #ruby
makara has joined #ruby
alem0lars has joined #ruby
chipotle has joined #ruby
atmosx has quit [Remote host closed the connection]
atmosx has joined #ruby
noop has joined #ruby
gigetoo has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
bigkevmcd has joined #ruby
supermarin has quit [Ping timeout: 240 seconds]
WishBoy has quit [Read error: Connection reset by peer]
anarang has joined #ruby
dseitz has joined #ruby
tvw has joined #ruby
gigetoo has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
WishBoy has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
krazh has quit [Remote host closed the connection]
krazh has joined #ruby
roadie has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
apeiros has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
jprovazn has joined #ruby
gigetoo has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: Going AFK...]
nanoyak has joined #ruby
alem0lars has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ayaz has joined #ruby
roadie has joined #ruby
funburn has quit [Quit: funburn]
gigetoo has joined #ruby
subbyyy_ has joined #ruby
Hanmac has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
claymore has joined #ruby
wallerdev has quit [Quit: wallerdev]
hgl has quit [Ping timeout: 240 seconds]
chris349 has joined #ruby
<chris349>
I installed ruby on a server but it seems to have hijacked the console. Is there any way to revert this?
hgl has joined #ruby
senayar has quit [Remote host closed the connection]
jonno11 has joined #ruby
tziOm has quit [Remote host closed the connection]
senayar has joined #ruby
Kricir has joined #ruby
ltd_ has joined #ruby
supermarin has joined #ruby
phaserbeginner has joined #ruby
phaserbeginner has left #ruby [#ruby]
jamto11 has joined #ruby
razrunelord has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
aross has joined #ruby
<popl>
chris349: What do you mean by hijacked the console?
supermarin has quit [Ping timeout: 245 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<chris349>
popl, Its gone from my scrollback, but when I cd into a directory I was getting messages about ruby
bahar has quit [Ping timeout: 240 seconds]
razrunelord has quit [Ping timeout: 258 seconds]
jamto11 has quit [Ping timeout: 276 seconds]
sdouglas has quit [Remote host closed the connection]
fabrice31 has joined #ruby
JensOfSw_ has joined #ruby
<chris349>
Got one, I type the command: cd test/public/ and then it says: RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too
Kricir has quit [Ping timeout: 245 seconds]
<popl>
You probably mangled your RVM configuration.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bahar has joined #ruby
Martxel has joined #ruby
<chris349>
I dont think there is any issue.
<chris349>
I simply want to know why and how to disable the hijacking of my consile
<chris349>
When I type cd it should change directory and nothing more.
<popl>
yeah it should
<popl>
but it doesn't
<popl>
which means something got borked
<popl>
since nobody else did it, that means you might have *accidentally* done something
<popl>
but if you're so sure you didn't, then I'm sure you know how to fix it
<chris349>
This is immediatly after I run the installer
<popl>
for rvm or ruby?
<popl>
they are not the same thing
<chris349>
I run RVM to install ruby, is that incorrect?
<popl>
no, but rvm is easy to mess up
andikr has joined #ruby
Martxel has quit [Ping timeout: 258 seconds]
<popl>
lots of instructions, easy to miss steps
VinceThePrince has joined #ruby
zigomir has joined #ruby
VinceThePrince has quit [Client Quit]
tziOm has joined #ruby
peret has joined #ruby
michaeldeol has joined #ruby
Macaveli has quit [Read error: No route to host]
subraminion_ has joined #ruby
subraminion has quit [Read error: Connection reset by peer]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
alex88 has joined #ruby
blackmesa has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
supermarin has joined #ruby
nouitfvf_ has joined #ruby
dangerousdave has joined #ruby
Macaveli has joined #ruby
nouitfvf has quit [Ping timeout: 240 seconds]
MacTrash has joined #ruby
LekeFly has joined #ruby
<chris349>
What would be the best way to install ruby? I simply need to run an application through Apache, that is giving bundle errors with the rvm installation.
supermarin has quit [Ping timeout: 276 seconds]
<popl>
personally I like to use rbenv, chris349
<popl>
it's less clunky than rvm
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
<chris349>
Is there any way to ignore one particular gem just to see what happens?
Xeago has joined #ruby
RaptorJesus_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
HashNuke has joined #ruby
RaptorJesus has quit [Ping timeout: 272 seconds]
danijoo has joined #ruby
krazh has quit [Remote host closed the connection]
ballPointPenguin has quit [Ping timeout: 252 seconds]
jvelasquez has joined #ruby
alem0lars has joined #ruby
hermanmu_ has quit [Remote host closed the connection]
_Andres has joined #ruby
supermarin has joined #ruby
hermanmunster has joined #ruby
<jvelasquez>
I have debian unstable and I wanted to install ruby 2.1.1 and gem. could anyone recommend a howto document or at least stear me in a direction? Do I install in a chroot like the guy from Oxford, from source on my root fs like the guy from rosehosting, or roll my own debian packages, or are there already debian packages?
alem0lars has quit [Client Quit]
kitak has quit [Remote host closed the connection]
St_Marx has joined #ruby
razrunelord has joined #ruby
kitak has joined #ruby
St_Marx has quit [Client Quit]
kitak_ has joined #ruby
marr has joined #ruby
ashleyis has quit [Ping timeout: 255 seconds]
hermanmunster has quit [Ping timeout: 250 seconds]
krazh has quit [Quit: bye]
roolo has joined #ruby
razrunelord has quit [Ping timeout: 245 seconds]
kitak has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
St_Marx has joined #ruby
subraminion_ has joined #ruby
JoeGaudet has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
subraminion_ has quit [Remote host closed the connection]
subraminion_ has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
subraminion has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
mikecmpbll has joined #ruby
ballPointPenguin has joined #ruby
jamto11 has joined #ruby
subraminion__ has joined #ruby
RubyPanther has joined #ruby
JasmeetQA1 has joined #ruby
momigi has joined #ruby
subraminion__ has quit [Remote host closed the connection]
subraminion has joined #ruby
subraminion_ has quit [Read error: Connection reset by peer]
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
elaptics`away is now known as elaptics
kevinykchan has joined #ruby
Morkel_ has joined #ruby
JasmeetQA has quit [Ping timeout: 265 seconds]
dANOKELOFF has joined #ruby
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ is now known as Morkel
ghr has joined #ruby
Hanmac has joined #ruby
tvw has quit []
jamto11 has quit [Ping timeout: 252 seconds]
Hanmac1 has quit [Ping timeout: 255 seconds]
AlexRussia has quit [Read error: Connection reset by peer]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kneferilis has joined #ruby
Hanmac1 has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
momigi has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
subbyyy_ has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
nvrch has joined #ruby
kevinykchan has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
virtualize has quit []
kevinykchan has joined #ruby
heftig has joined #ruby
CodeBunny has joined #ruby
dangerousdave has joined #ruby
Es0teric has joined #ruby
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
Hanmac has joined #ruby
etqqkoiflwhb_ has joined #ruby
kate_r has joined #ruby
poikon has joined #ruby
Hanmac1 has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
kevinykchan has quit [Ping timeout: 240 seconds]
Zai00 has joined #ruby
_justin has quit [Quit: _justin]
alexju has quit [Remote host closed the connection]
chris349 has quit [Ping timeout: 258 seconds]
CodeBunny has quit [Ping timeout: 264 seconds]
flughafen has joined #ruby
claymore has quit [Quit: Leaving]
etqqkoiflwhb_ has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
Asher has quit [Ping timeout: 252 seconds]
fly2web has quit [Quit: fly2web]
kevinykchan has joined #ruby
Martxel has joined #ruby
kevinykc_ has joined #ruby
fumduq has joined #ruby
hamakn has joined #ruby
Asher has joined #ruby
abra has quit [Ping timeout: 252 seconds]
poikon has quit [Remote host closed the connection]
kevinykchan has quit [Ping timeout: 240 seconds]
abra has joined #ruby
subraminion has quit [Quit: Computer has gone to sleep.]
olivier_bK has joined #ruby
spider-mario has joined #ruby
poikon_ has joined #ruby
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
toretore has joined #ruby
JensOfSw_ is now known as JensOfSweden
subraminion has joined #ruby
jottr has joined #ruby
Soliah has quit [Read error: Connection reset by peer]
ikaros has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<zaargy>
just use rbenv and rbenv build?
Arkaniad|Laptop has quit [Remote host closed the connection]
kevinykc_ has quit [Quit: Computer has gone to sleep.]
subraminion has quit [Remote host closed the connection]
poikon_ has quit [Remote host closed the connection]
moritzs has joined #ruby
subraminion has joined #ruby
timonv has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
poikon has joined #ruby
m00nlight has quit [Quit: Konversation terminated!]
qba73 has joined #ruby
jamto11 has joined #ruby
qba73 has quit [Remote host closed the connection]
nerium has joined #ruby
qba73 has joined #ruby
razrunelord has joined #ruby
Thanatermesis has quit [Read error: Connection reset by peer]
troulouliou_dev has joined #ruby
subraminion has quit [Ping timeout: 240 seconds]
kiri has quit [Ping timeout: 240 seconds]
<Cope>
jvelasquez: I use ruby-install and chruby - very easy
jamto11 has quit [Ping timeout: 252 seconds]
razrunelord has quit [Ping timeout: 240 seconds]
kevinykchan has joined #ruby
yacks has joined #ruby
jamto11 has joined #ruby
rdark has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
JoeGaudet has quit [Quit: Computer has gone to sleep.]
zoraj has joined #ruby
kilk_ has joined #ruby
aross_ has joined #ruby
jamto11 has quit [Ping timeout: 258 seconds]
enebo has joined #ruby
Kricir has joined #ruby
aross has quit [Ping timeout: 252 seconds]
instantaphex has joined #ruby
Mdgd has quit [Ping timeout: 264 seconds]
psyko666 has quit [Quit: Leaving]
enebo has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
instantaphex has quit [Ping timeout: 255 seconds]
VinceThePrince has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
sk87 has joined #ruby
_justin has joined #ruby
sk87 has quit [Client Quit]
Macaveli has quit [Ping timeout: 252 seconds]
guilleiguaran_ has quit [Ping timeout: 245 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
Guest85414______ has quit [Ping timeout: 240 seconds]
cmaxw_____ has quit [Read error: Connection reset by peer]
dnyy has quit [Ping timeout: 240 seconds]
bluehavana has quit [Read error: Connection reset by peer]
im0b has quit [Read error: Connection reset by peer]
mattyohe has quit [Read error: Connection reset by peer]
machty has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
cmaxw_____ has joined #ruby
sk87 has joined #ruby
etqqkoiflwhb_ has joined #ruby
guilleiguaran_ has joined #ruby
stef_204 has joined #ruby
im0b has joined #ruby
mattyohe has joined #ruby
dnyy has joined #ruby
machty has joined #ruby
bluehavana has joined #ruby
Guest85414______ has joined #ruby
smaboshe has quit [Changing host]
smaboshe has joined #ruby
oo_ has quit [Client Quit]
oo_ has joined #ruby
s00pcan_ has joined #ruby
subraminion has joined #ruby
closer has quit [Ping timeout: 252 seconds]
flops has joined #ruby
zoraj has quit [Remote host closed the connection]
s00pcan_ has quit [Client Quit]
moritzs has quit [Ping timeout: 240 seconds]
closer has joined #ruby
Hanmac1 has joined #ruby
RaptorJesus_ has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
tvw has joined #ruby
nerium has quit [Quit: nerium]
nerium has joined #ruby
edgar_wang_cn has quit [Read error: Connection reset by peer]
davedev24 has quit [Remote host closed the connection]
edgar_wang_cn has joined #ruby
JasmeetQA1 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
kevinykchan has joined #ruby
ixti has joined #ruby
thumpba_ has joined #ruby
jayne_ has joined #ruby
ndngvr` has joined #ruby
<flops>
exit
JasmeetQA has joined #ruby
flops has quit [Quit: leaving]
AntelopeSalad_ has joined #ruby
RohanRNS has quit [Quit: Connection closed for inactivity]
davedev24 has quit [Ping timeout: 264 seconds]
ltd has joined #ruby
pdtpatrick has joined #ruby
nicar_ has joined #ruby
matti_ has joined #ruby
descala has joined #ruby
crome_ has joined #ruby
funburn has quit [Quit: funburn]
tjsousa_ has joined #ruby
tjsousa_ has quit [Remote host closed the connection]
tjsousa_ has joined #ruby
tengopreguntas has joined #ruby
askldjuio2 has joined #ruby
wlanboy_ has joined #ruby
Kamilion|ZNC has joined #ruby
faulkner- has joined #ruby
tchebb_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
JasmeetQA1 has joined #ruby
wlanboy has quit [*.net *.split]
pdtpatri1k has quit [*.net *.split]
nicar has quit [*.net *.split]
tchebb has quit [*.net *.split]
d3scala has quit [*.net *.split]
matti has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
ltd_ has quit [*.net *.split]
Loaft has quit [*.net *.split]
Kabaka_ has quit [*.net *.split]
thumpba has quit [*.net *.split]
ndngvr has quit [*.net *.split]
crome has quit [*.net *.split]
camt has quit [*.net *.split]
jayne has quit [*.net *.split]
Kamilion has quit [*.net *.split]
faulkner has quit [*.net *.split]
kitak has quit [*.net *.split]
kitak_ has quit [*.net *.split]
Cork has quit [*.net *.split]
closer has quit [*.net *.split]
cibs has quit [*.net *.split]
Adran has quit [*.net *.split]
zz_karupa has quit [*.net *.split]
eshy has quit [*.net *.split]
chihhsin has quit [*.net *.split]
Zespre has quit [*.net *.split]
faulkner- is now known as faulkner
Kamilion|ZNC is now known as Kamilion
danijoo has joined #ruby
tchebb_ is now known as tchebb
matti_ is now known as matti
JasmeetQA has quit [Ping timeout: 240 seconds]
Cork has joined #ruby
yfeldblu_ has quit [Ping timeout: 250 seconds]
Zespre has joined #ruby
chihhsin has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
krz has quit [Quit: WeeChat 0.4.3]
supermarin has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
p7r has left #ruby [#ruby]
supermarin has quit [Ping timeout: 250 seconds]
claymore has joined #ruby
Kricir has joined #ruby
supermarin has joined #ruby
dayepa has quit [Quit: dayepa]
webgen_ has joined #ruby
sdouglas has joined #ruby
supermarin has quit [Remote host closed the connection]
Hanmac has joined #ruby
subraminion_ has joined #ruby
supermarin has joined #ruby
_whitelogger has joined #ruby
_justin has quit [Quit: _justin]
sdouglas has quit [Ping timeout: 264 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
supermarin has quit [Ping timeout: 265 seconds]
jtdowney has joined #ruby
aross_ has quit [Ping timeout: 276 seconds]
postmodern has quit [Quit: Leaving]
_justin has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
jonasac has joined #ruby
francisfish has quit [Remote host closed the connection]
fgo has joined #ruby
mostlybadfly has joined #ruby
yfeldblum has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
red234324 has joined #ruby
pen has joined #ruby
nvrch has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
lurch_ has joined #ruby
kate_r has joined #ruby
bkparso has joined #ruby
supermarin has joined #ruby
pen has quit [Ping timeout: 258 seconds]
jtdowney has quit []
lolmaus has quit [Read error: Connection reset by peer]
moritzs has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
lolmaus has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JasmeetQA has quit [Read error: Connection reset by peer]
pen has joined #ruby
jtdowney has joined #ruby
bkparso has quit [Quit: bkparso]
supermarin has quit [Remote host closed the connection]
blackmesa has joined #ruby
supermarin has joined #ruby
jtdowney has quit [Client Quit]
Xeago has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
danijoo has quit [Quit: Leaving...]
pen has quit [Ping timeout: 265 seconds]
danijoo has joined #ruby
supermarin has quit [Ping timeout: 265 seconds]
<lurch_>
is there a way to disable the quoting added by to_yaml in ruby 2.1.1 Trying to migrate a 1.9.3 app to 2.1.1, but for some reason it is adding quotes (ie: "/a/b/c".to_yaml => "--- \"/a/b/c\"\n" for ruby 2.1.1, while the same command gives "--- /a/b/c\n...\n" for ruby 1.9.3)
<lurch_>
it’s giving problems because the result is nested somewhere where there are already double quotes used
JasmeetQA has joined #ruby
makara has quit [Quit: Leaving]
kevinykchan has joined #ruby
sambao21_ has joined #ruby
jayne_ has quit [Read error: Connection reset by peer]
<lurch_>
both are using ‘psych’ as YAML::ENGINE.yamler
apeiros_ has joined #ruby
aross_ has joined #ruby
sambao21 has quit [Ping timeout: 258 seconds]
TheMoonMaster has quit [Ping timeout: 258 seconds]
xiphias has quit [Read error: Connection reset by peer]
sambao21_ is now known as sambao21
wuest_ has joined #ruby
Beoran_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
greenarrow has quit [Quit: 500]
apeiros has quit [Ping timeout: 258 seconds]
tyll has quit [Ping timeout: 258 seconds]
gremax has quit [Ping timeout: 258 seconds]
aross has quit [Ping timeout: 258 seconds]
bbloom has quit [Ping timeout: 258 seconds]
wuest has quit [Ping timeout: 258 seconds]
Beoran__ has quit [Ping timeout: 258 seconds]
shevy has quit [Ping timeout: 258 seconds]
zarul has quit [Ping timeout: 258 seconds]
tyll_ has joined #ruby
obs_ has quit [Ping timeout: 258 seconds]
shevy has joined #ruby
red234324 has quit [Ping timeout: 258 seconds]
red234324 has joined #ruby
obs_ has joined #ruby
eka has joined #ruby
zarul has joined #ruby
gremax has joined #ruby
Companion has quit [Ping timeout: 276 seconds]
TheMoonMaster has joined #ruby
jayne has joined #ruby
bthesorceror has joined #ruby
wuest_ is now known as wuest
Hanmac1 has joined #ruby
tjsousa_ has quit [Quit: Computer has gone to sleep.]
xiphias has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
razrunelord has joined #ruby
supermarin has joined #ruby
Companion has joined #ruby
greenarrow has joined #ruby
dANOKELOFF has joined #ruby
mduk has joined #ruby
apeiros_ has quit [Remote host closed the connection]
tesuji has joined #ruby
apeiros has joined #ruby
danshultz has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
supermarin has quit [Remote host closed the connection]
razrunelord has quit [Ping timeout: 258 seconds]
supermarin has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 252 seconds]
Zai00 has quit [Quit: Zai00]
ashleyis has joined #ruby
zoraj has joined #ruby
yalue has joined #ruby
supermarin has quit [Ping timeout: 255 seconds]
franzip has joined #ruby
francisfish has joined #ruby
toastynerd has joined #ruby
willbarrettdev has quit [Remote host closed the connection]
oo_ has joined #ruby
vlad_starkov has joined #ruby
larsam has quit [Quit: larsam]
Hanmac1 has quit [Ping timeout: 250 seconds]
Kricir has joined #ruby
AntelopeSalad_ is now known as AntelopeSalad
ragsagar has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
wchun has joined #ruby
subraminion__ has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
francisfish has quit [Remote host closed the connection]
subraminion_ has quit [Ping timeout: 276 seconds]
ashleyis has quit [Quit: WooChat 0.4.3]
greenarr_ has joined #ruby
xiphias has quit [Read error: Connection reset by peer]
bthesorceror has quit [Remote host closed the connection]
monkegjinni has joined #ruby
greenarrow has quit [Ping timeout: 258 seconds]
germanstudent has quit [Quit: raus]
sk87 has joined #ruby
pothibo has joined #ruby
momigi has joined #ruby
yacks has quit [Ping timeout: 276 seconds]
ixti has quit [Ping timeout: 276 seconds]
Hanmac has joined #ruby
tzudot has joined #ruby
chrisseaton has joined #ruby
davedev24 has joined #ruby
yfeldblum has joined #ruby
ldnunes has joined #ruby
ltd_ has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
pen has joined #ruby
Kabaka_ has quit [Ping timeout: 240 seconds]
Zai00 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Kruppe has quit [Ping timeout: 258 seconds]
ltd has quit [Ping timeout: 258 seconds]
_justin has quit [Ping timeout: 258 seconds]
xiphias has joined #ruby
xiphias has quit [Changing host]
xiphias has joined #ruby
apeiros has joined #ruby
toastynerd has quit [Remote host closed the connection]
Stalkr_ has joined #ruby
vpretzel|1484 is now known as vpretzel
Chamkila_ has joined #ruby
Chamkila__ has joined #ruby
momigi has quit [Remote host closed the connection]
<pothibo>
Is bundler faster at loading requirements than rubygems is? I'm currently loading a custom rails loader and it's like 3 times as slow as the normal one
pen has quit [Ping timeout: 276 seconds]
<pothibo>
And also, anyone knows a profiler for rails that I could use to see where the loading process spends most of its time?
Chamkila has quit [Ping timeout: 240 seconds]
germanstudent has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
ragsagar has left #ruby ["Leaving"]
francisfish has joined #ruby
VinceThePrince has quit [Quit: Leaving]
dawkirst has quit [Remote host closed the connection]
bigmac_ has joined #ruby
Chamkila_ has quit [Ping timeout: 276 seconds]
tjsousa_ has joined #ruby
tjsousa_ has quit [Remote host closed the connection]
tjsousa_ has joined #ruby
Macaveli has joined #ruby
ixti has joined #ruby
obs_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Dreamer3 has quit [Remote host closed the connection]
ixti has quit [Read error: Connection reset by peer]
agarie has joined #ruby
agarie has quit [Remote host closed the connection]
mjs2600 has joined #ruby
agarie has joined #ruby
mjs2600 has joined #ruby
mr_snowf1ake has joined #ruby
blackmesa has joined #ruby
germanstudent has quit [Quit: raus]
momomomomo has joined #ruby
xiphias has quit [*.net *.split]
jayne has quit [*.net *.split]
i8igmac has quit [*.net *.split]
techsethi has joined #ruby
dblessing has joined #ruby
franzip has quit [Ping timeout: 240 seconds]
anaeem1__ has quit [Remote host closed the connection]
Sawbones has joined #ruby
sunya7a has joined #ruby
sunya7a__ has joined #ruby
sunya7a_ has joined #ruby
jamto11 has joined #ruby
cpruitt has joined #ruby
fijimunkii has joined #ruby
bthesorceror has joined #ruby
twiceday has joined #ruby
jamto11_ has joined #ruby
Kruppe has joined #ruby
xiphias has joined #ruby
jayne has joined #ruby
camt has joined #ruby
sunya7a_ has quit [Client Quit]
Hanmac1 has joined #ruby
sunya7a_ has joined #ruby
razrunelord has joined #ruby
twiceaday has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
mary5030 has joined #ruby
simono has joined #ruby
sunya7a is now known as Guest60683
jamto11_ has quit [Ping timeout: 255 seconds]
sunya7a_ is now known as sunya7a
endash has joined #ruby
mehlah has joined #ruby
dawkirst has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
<shevy>
pothibo I assume that bundler is slower considering it does more stuff than rubygems
<shevy>
and the rails knowing folks are on #rubyonrails, many people here on #ruby don't know anything about rails
qwyeth has joined #ruby
<pothibo>
shevy that's what expected
oo_ has quit [Remote host closed the connection]
jespada has joined #ruby
germanstudent has joined #ruby
relix has joined #ruby
dawkirst has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
dawkirst has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
Slavox is now known as Slavox|AFK
porco has joined #ruby
rails426 has joined #ruby
porco has quit [Client Quit]
<shevy>
so anyone who uses jruby with ruby and does something fancy with it?
enebo has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
chrisseaton has quit []
blackmesa has quit [Ping timeout: 240 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
horsecowdog has joined #ruby
<momomomomo>
shevy: define: 'fancy'
Kricir has joined #ruby
<shevy>
well something like why jruby is used specifically
Morkel has quit [Quit: Morkel]
<shevy>
I need like an impetus to want to use jruby
<momomomomo>
I use jruby / torquebox (built on JBOSS) to manage multiple applications, workers, etc.
<shevy>
hmm
<momomomomo>
shevy: You're approaching it wrong - you should have a problem that jruby solves before wasting time learning it
<momomomomo>
if you want to use a specific java library etc.
<momomomomo>
or, if you need real OS threads
<momomomomo>
it's pretty much a drop-in solution for most ruby situations, but gem compatibility and thread safety is something you'll have to keep top of mind
Nahra has quit [Remote host closed the connection]
Ardenzi has joined #ruby
andrewlio has joined #ruby
enebo has quit [Ping timeout: 264 seconds]
vlad_starkov has quit []
blackmesa has joined #ruby
Nahra has joined #ruby
subraminion___ has joined #ruby
subraminion__ has quit [Read error: Connection reset by peer]
instantaphex has joined #ruby
mrmargolis has joined #ruby
zoraj has quit [Remote host closed the connection]
nerium has joined #ruby
obscured has joined #ruby
crystal77 has joined #ruby
zoraj_ has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
crelix has joined #ruby
Morkel has joined #ruby
supermarin has joined #ruby
endash has quit [Quit: endash]
vpretzel_ has joined #ruby
_justin has joined #ruby
sailias has joined #ruby
bluethundr has joined #ruby
<bluethundr>
hey all.. I've installed both ruby and rubygems on a partially locked down host that does not have incoming access from the net
<bluethundr>
so the problem is that I can't do gem install foo
<bluethundr>
is there anyplace on the net I can go to to download the individual gems I need as tarballs so that I can scp them up to the host?
jprovazn has quit [Quit: Leaving]
<bluethundr>
thanks
yfeldblum has joined #ruby
vpretzel has quit [Ping timeout: 240 seconds]
SCommette has joined #ruby
nerium has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
nerium has joined #ruby
pen has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
tzudot has quit [Ping timeout: 276 seconds]
ta has quit [Remote host closed the connection]
ixti has joined #ruby
Megtastique has joined #ruby
pika_pika has joined #ruby
geggam has quit [Ping timeout: 250 seconds]
jprovazn_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
mercwithamouth has joined #ruby
mjsmith2 has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
vpretzel_ is now known as vpretzel
SCommette has quit [Client Quit]
pen has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
mark_locklear has joined #ruby
jprovazn has quit [Ping timeout: 245 seconds]
mjsmith2 has joined #ruby
Chamkila has joined #ruby
Chamkila has quit [Changing host]
Chamkila has joined #ruby
Sawbones has quit []
yalue has quit [Quit: Leaving]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crystal77 has quit [Quit: Computer has gone to sleep.]
stef_204 has joined #ruby
Hanmac has joined #ruby
mr_snowf1ake has quit [Ping timeout: 276 seconds]
Chamkila__ has quit [Ping timeout: 276 seconds]
seaned has quit [Quit: Zzzzzz....]
mark_locklear has quit [Client Quit]
mlapp30m has joined #ruby
kilk_ has quit [Remote host closed the connection]
paulfm has joined #ruby
northfurr has quit [Quit: northfurr]
<instantaphex>
a lot of gems are on github
<instantaphex>
just clone then and scp them up
mary5030 has quit [Remote host closed the connection]
northfurr has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
newUser1234 has joined #ruby
bluethundr has quit [Quit: leaving]
meatherly has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Nahra has quit [Remote host closed the connection]
NivenHuH has joined #ruby
yfeldblum has joined #ruby
yairgo has joined #ruby
freezey has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
WishBoy- has quit [Remote host closed the connection]
Nahra has joined #ruby
WishBoy has joined #ruby
noop has quit [Ping timeout: 264 seconds]
pen has joined #ruby
mansi has joined #ruby
Hanmac has joined #ruby
<yairgo>
I'm using sinatra and passing around very large amounts of json, sometimes 200MB or more. I know from a design standpoint this might not be the greatest but at the moment I am stuck. After every request I'm telling the GC to run, but the process is still holding on to a lot of memory. anyone know of any good profilers out there that I can use to see where this memory is being held?
momomomomo has quit [Quit: momomomomo]
kitak has joined #ruby
edgar_wang_cn has quit [Remote host closed the connection]
<instantaphex>
I guess nothing I do has really necessitated more features than MySQL provides
<instantaphex>
But then again, Ruby IS better than PHP, so I guess you're right.
<mordof>
instantaphex: I've found the same thing.. however I believe that's also due to a lack of creativity in the database side on my part. just because you can do something, doesn't mean it couldn't be better
pen has joined #ruby
bthesorceror has quit [Ping timeout: 240 seconds]
carlyle has quit [Remote host closed the connection]
<mordof>
(or easier to manage, for that matter)
<katlogic>
As for me, it was always ruby being bottleneck, not the db.
<katlogic>
So no reason for not sticking with postgres.
supermarin has quit [Remote host closed the connection]
<mordof>
interesting
bakflash has joined #ruby
toastynerd has quit [Remote host closed the connection]
snath has joined #ruby
supermarin has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<katlogic>
The two might not be exactly webscale; but are fairly powerful otherwise.
skysploit has joined #ruby
skysploit has joined #ruby
Kruppe has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
<mordof>
question: i'm doing a recursive method that has a block passed to it. Do I pass the block as a Proc explicitly, or do I yield self; and then method { |x| yield x }; as an alternative? I'm not sure which would be better
beef-wellington has joined #ruby
rippa has joined #ruby
nolic has joined #ruby
pu22l3r has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
<hoelzro>
mordof: passing the proc explicitly seems cleaner to me
zorak has quit [Ping timeout: 245 seconds]
<hoelzro>
(imo)
blackmesa has quit [Ping timeout: 250 seconds]
<benzrf>
otherwise i get confused as to what's being yielded to :(((
<mordof>
hm, true
tzudot has joined #ruby
<mordof>
the method { |x| yield x } .. if i'm understanding correctly, say there's 12 recursive calls - wouldn't that yield have to travel all the way back to the original to get the proper block?
shredding has quit [Ping timeout: 240 seconds]
<mordof>
it's like yield inception
zachallett is now known as Zenigor
supermarin has quit [Read error: Connection reset by peer]
pen has quit [Ping timeout: 264 seconds]
BWStearns has joined #ruby
supermarin has joined #ruby
horsecowdog has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 276 seconds]
Celm_ has joined #ruby
etqqkoiflwhb_ has joined #ruby
andikr has quit [Remote host closed the connection]
shredding has joined #ruby
<hoelzro>
mordof: unless you explicitly wrap the call to the outer block in another block, I don't think so
<hoelzro>
but I'm not privy to the implementation details of blocks
* hoelzro
.oO( maybe I should look at that )
dawkirst has quit [Remote host closed the connection]
qwyeth has quit [Ping timeout: 255 seconds]
<mordof>
hoelzro: that's the only way to yield to the outer block i can find
<mordof>
hold on, i'll create a gist
lolmaus has quit [Read error: Connection reset by peer]
<mordof>
or something like it, because that errors out on me
freezey_ has quit [Remote host closed the connection]
<hoelzro>
I'm guessing that passing the block explicitly would make it more efficient, as you wouldn't have to create a bunch of intermediate calling contexts
dawkirst has joined #ruby
decoponio has quit [Quit: Leaving...]
shredding has quit [Client Quit]
<hoelzro>
you probably want tag.traverse(&block)
<hoelzro>
I don't know if you what you have right now will work
Hanmac has joined #ruby
havenwood has quit []
<mordof>
it doesn't, heh
subbyyy_ has joined #ruby
<mordof>
i'll try that
Al1_andre has joined #ruby
dfedde has joined #ruby
<mordof>
now why do i need to do that *again*?
<mordof>
i thought the argument took care of that?
<hoelzro>
&block arguments bind to the block associated with a method call
<hoelzro>
they don't bind to any regular arguments
<mordof>
oh
<mordof>
but doesn't that create multiple Procs now instead?
lolmaus has joined #ruby
<dfedde>
ls
Al1_andre has quit [Read error: Connection reset by peer]
mr_snowf1ake has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
* mordof
was under the impression that creating Procs repeatedly in this case was quite a bit heavier on performance
<mordof>
i'll have to test this i suppose
IceDragon has quit [Ping timeout: 245 seconds]
francisfish has quit [Remote host closed the connection]
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
decoponio has joined #ruby
garndt has joined #ruby
<hoelzro>
mordof: it probably is, but I don't think it's creating multiple procs
<Bilge>
Why can't I write: @foo << *@bar
<hoelzro>
it's associating the same proc in memory with different calls
<hoelzro>
it'd be like p = proc { ... } ; call_one.proc = p ; call_two.proc = p ; call_three.proc = p
nerium has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
marcdel_ has joined #ruby
nateberkopec has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
roolo has quit [Quit: Leaving...]
_maes_ has joined #ruby
<mordof>
hoelzro: ah, ok. i'm going to benchmark the two traverse calls and see which is faster. once i figure out how to utilize this benchmark thing
<mordof>
heh
<hoelzro>
that's probably a good idea =)
marcdel has quit [Ping timeout: 250 seconds]
<Hanmac>
Bilge: you might look for push or concat
zorak has joined #ruby
shredding has joined #ruby
kitak has quit [Remote host closed the connection]
iceden has joined #ruby
andrewlio has quit [Quit: Leaving.]
kitak has joined #ruby
<Bilge>
Hanmac: concat works fine but why can't I use the splat this way?
<Bilge>
I can't even write: @foo << (*@bar)
<Hanmac>
because << only wants ONE argument
IceDragon has joined #ruby
kitak_ has joined #ruby
<Bilge>
That doesn't seem to be the reason, and @bar is a single-element array
dANOKELO_ has joined #ruby
<Hanmac>
that has something todo with the syntax ... the syntax does allow only one argument for such operator like methods
JumpMast3r has quit [Quit: JumpMast3r]
<Bilge>
So basically you can never use a splat on the right side of any operator?
<benzrf>
Bilge: use send if yu need that
<Bilge>
Except for = I suppose
qwyeth has joined #ruby
krz has joined #ruby
enebo has quit [Quit: enebo]
dANOKELOFF has quit [Ping timeout: 240 seconds]
<mordof>
hoelzro: seems the block / proc approach is consistently slower, but even at 1mil iterations, only by about 3 seconds. (16.4s yield, 19.4s block/proc)
<hoelzro>
interesting
<benzrf>
neato
<benzrf>
probably more memory alloc
<benzrf>
or something
<hoelzro>
that's my guess
<benzrf>
maybe gc
<hoelzro>
I'm betting that Ruby doesn't bother allocating a "true" object for the block if it's just a yield
dawkirst has quit [Remote host closed the connection]
bthesorc_ has quit [Remote host closed the connection]
<mordof>
if i use Benchmark.bmbm, what does that do? it says it does something about gc
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof>
oh, it just runs it twice
bthesorceror has joined #ruby
<mordof>
as well as a couple other things..
bthesorceror has quit [Read error: Connection reset by peer]
<mordof>
the results are consistently the same either way
sambao21 has quit [Quit: Computer has gone to sleep.]
bthesorceror has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
shredding has quit [Quit: shredding]
<shevy>
mordof I thought about it
rodri_gore has joined #ruby
<shevy>
mordof let's forgot project #1 and project #2
<mordof>
shevy: .. no? lol
<shevy>
mordof what will be your third project in ruby?
beef-wellington has quit [Ping timeout: 252 seconds]
naw has quit []
razrunelord has joined #ruby
naw has joined #ruby
<mordof>
shevy: my third project will be my job for the first few months - as i'll have a full time job, a fiancee, 2 general education classes because the governement demands them for me to graduate, and planning my wedding, lol
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
<mordof>
probably not going to be doing much personal projects
<shevy>
ah
kitak_ has quit [Remote host closed the connection]
<mordof>
besides, i'm learning a lot with this project #1
<mordof>
and that was the whole goal behind this
<mordof>
doesn't matter if it's "boring" or whatnot
<shevy>
:(
kitak_ has joined #ruby
troyready has joined #ruby
kpshek has joined #ruby
timonv has quit [Remote host closed the connection]
shredding has joined #ruby
<mordof>
question: if i'm doing array.each { |item| # stuff; }... and say i add in two items to the end of that array inside one of the .each iterations, will the .each iterate over those also?
<shevy>
I would think no
<mordof>
why is that?
omosoj has quit [Ping timeout: 276 seconds]
razrunelord has quit [Ping timeout: 255 seconds]
spyderm__ has quit [Remote host closed the connection]
<shevy>
>> array = %w( a b c ); array.each {|entry| array << 'yo' if rand(2) == 1 }; array
<shevy>
mordof I would assume that it works like on a copy of it inside of the block; when the block is started, the old array is iterated through, regardless of what happens to it during the block processing
kitak_ has quit [Ping timeout: 240 seconds]
metamaterial has joined #ruby
<mordof>
ah
<mordof>
so if i want to create my traversal in a way that can get stuck in an infinite loop, i have to not use .each
<mordof>
joy
<shevy>
huh
<shevy>
why can't you use .each ?
<mordof>
shevy: because i need to iterate over new items also
<shevy>
aha
<shevy>
hmm
pietr0 has joined #ruby
<shevy>
so you basically have very dynamic arrays
aross_ has quit [Remote host closed the connection]
<mordof>
HTMl hierarchy - and i'm making a method to traverse (and possibly repair broken sections) the structure
_justin has joined #ruby
<mordof>
so if i'm doing a shift to repair a location, it needs to also iterate over the relocated item as well
qba73 has quit [Remote host closed the connection]
<mordof>
to ensure it gets everything inside there as well
_justin has quit [Client Quit]
horsecowdog has joined #ruby
sambao21 has joined #ruby
paulfm has quit []
beef-wellington has joined #ruby
Photism has joined #ruby
kate_r has joined #ruby
dmitrykorotkov has joined #ruby
lolmaus has quit [Remote host closed the connection]
<mordof>
oh .. whoops
supermarin has quit [Remote host closed the connection]
<mordof>
benzrf, hoelzro: i mixed up my function names :/ i was wrong.. yield with a new block is not the faster one
<hoelzro>
oh ho
<hoelzro>
well, you arrived at an answer =)
* mordof
nods
<mordof>
it's nice that the cleaner one is also faster either way
djbkd has joined #ruby
_tpavel has quit [Quit: Leaving]
Hobogrammer has quit [Read error: Connection reset by peer]
michael_lee has joined #ruby
danman_ has joined #ruby
paulfm has joined #ruby
beef-wellington has quit [Ping timeout: 250 seconds]
agarie has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
zigomir has quit [Remote host closed the connection]
agarie has joined #ruby
<mordof>
shevy: how does your example back there work?
lolmaus has joined #ruby
maestrojed has joined #ruby
gigetoo has joined #ruby
krz has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
spyderman4g63 has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
subbyyy_ has quit [Ping timeout: 240 seconds]
<shevy>
mordof hmm?
b00stfr3ak has joined #ruby
<shevy>
mordof array = %w( a b c ); array.each {|entry| array << 'yo' if rand(2) == 1 }; array <-- array is modified afterwards, inside the block the old elements persist
GaryOak_ has joined #ruby
<mordof>
right, but my rand(2) == 1 came up with all false
<mordof>
not sure what that was for
codeFiend has joined #ruby
sambao21 has joined #ruby
<mordof>
or did you just get lucky with all 3 being 1?
<shevy>
you never know with rand() what it will give you!
torresga has quit [Ping timeout: 255 seconds]
<shevy>
mordof actually
<shevy>
array = %w( a b c ); array.each {|entry| puts entry; array << 'yo' if rand(2) == 1 }; array
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
<shevy>
it does print yo
<shevy>
sometimes
<shevy>
hahaha
<shevy>
this is like haskell's maybe
lethjakman has joined #ruby
<mordof>
so that means it *does* iterate through the new items?
<shevy>
yeah
<mordof>
and my other logic was just wrong
<mordof>
ok
metus_violarium has joined #ruby
<shevy>
sometimes
ascarter has joined #ruby
<shevy>
:-)
<shevy>
maybe!
<shevy>
it's like that schrodinger cat
<metus_violarium>
Hello. I could be dumb. But what actually doing 'require "rubygems"'?
<mordof>
shevy: i'm not using rand, so if it does have that capability, then provided my logic to shift the elements around is working properly - it'll be fine
<shevy>
the one that gets locked into a box and then people say it is not inside
<shevy>
mordof well
<shevy>
yeah
<shevy>
mordof array = %w( a b c ); array.each {|entry| array << 'yo'; puts entry }; array
<shevy>
this loops forever
<mordof>
shevy: schrodinger's cat is the premise that a cat is put in a box with poison, and at any given time the cat is both dead and alive, since we don't know
<shevy>
>> array = %w( a b c ); array.each {|entry| array << 'yo'; puts entry }; array
timonv has quit [Read error: Connection reset by peer]
alexju has joined #ruby
timonv has joined #ruby
timonv has quit [Read error: Connection reset by peer]
vpretzel is now known as vpretzel|1484
7JTAAP74D has joined #ruby
pen has joined #ruby
timonv has joined #ruby
charliesome has joined #ruby
<shevy>
mordof yea
djbkd has quit [Remote host closed the connection]
zigomir has joined #ruby
<mordof>
bah.. my repair logic is not going smoothly :/
timonv_ has joined #ruby
supermarin has joined #ruby
deric_skibotn has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
alexju has quit [Read error: Connection reset by peer]
alexju has joined #ruby
mikecmpbll has quit [Ping timeout: 276 seconds]
pen has quit [Ping timeout: 240 seconds]
WishBoy- has joined #ruby
centrx has joined #ruby
timonv has quit [Ping timeout: 276 seconds]
andrewjanssen has joined #ruby
shredding has quit [Ping timeout: 240 seconds]
jumblemuddle has quit [Quit: Death]
ikaros has quit [Quit: Ex-Chat]
francisfish has quit [Remote host closed the connection]
jumblemuddle has joined #ruby
supermarin has quit [Ping timeout: 265 seconds]
razrunelord has joined #ruby
WishBoy has quit [Ping timeout: 240 seconds]
alexju_ has joined #ruby
Jon30 has joined #ruby
Jon30 has quit [Changing host]
Jon30 has joined #ruby
baweaver has quit [Ping timeout: 276 seconds]
freezey has joined #ruby
beef-wellington has joined #ruby
tjr9898 has joined #ruby
Megtastique has quit []
<mordof>
ooohh i finally understood what was happening, heh
alexju has quit [Ping timeout: 240 seconds]
alexju_ has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
alexju has joined #ruby
<mordof>
i kept getting a + is not a method on nil:nilClass .. and was like "what.. whenever i print it out, it works just fine, why is + broken"
Hobogrammer has joined #ruby
djbkd has joined #ruby
<mordof>
was grabbing the index of the current tag amonst the parents' children, then potentially shifting all tag children over to the parent (self closing, or tag with no end tag - considered "empty"), however i forgot to shift the parent connection... and subsequent .index calls came back nil -.-;
chrisja has joined #ruby
blackmesa has joined #ruby
mattmcclure has joined #ruby
alexju has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
grayWolf has joined #ruby
alexju has joined #ruby
canton7-mac has quit [Remote host closed the connection]
grayWolf has quit [Client Quit]
7JTAAP74D has quit [Remote host closed the connection]
fayesal has joined #ruby
sailias1 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
I am just sad
<shevy>
soon you have to work, then it's goodbye ruby
cescalante is now known as ce_afk
mark_locklear has quit [Ping timeout: 252 seconds]
maletor_ has joined #ruby
francisfish has joined #ruby
alexju_ has joined #ruby
EagleDelta has joined #ruby
Xeago has quit [Remote host closed the connection]
supermarin has quit [Ping timeout: 252 seconds]
Sirupsen has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
maletor has quit [Ping timeout: 276 seconds]
sailias has quit [Ping timeout: 276 seconds]
ixti has joined #ruby
tzudot has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Quit: Leaving...]
Xeago has quit [Read error: Connection reset by peer]
alexju_ has quit [Read error: Connection reset by peer]
maletor has joined #ruby
maletor_ has quit [Read error: Connection reset by peer]
mcrmfc has quit [Ping timeout: 245 seconds]
pwh has quit []
alexju has joined #ruby
metus_violarium has quit [Remote host closed the connection]
nateberkopec has joined #ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
aagdbl has quit [Quit: Connection closed for inactivity]
jhass|off is now known as jhass
dANOKELO_ has quit []
kpshek has joined #ruby
johnny5 has joined #ruby
Jon30 has quit []
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agarie has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 250 seconds]
Xeago has quit [Ping timeout: 252 seconds]
anaeem1 has joined #ruby
datafirm has joined #ruby
agarie has joined #ruby
randomnick_ has joined #ruby
heftig has quit [Quit: Quitting]
alexju has quit [Read error: Connection reset by peer]
VTLob has joined #ruby
alexju has joined #ruby
jumblemuddle has quit [Quit: Death]
SegFaultAX has quit [Excess Flood]
mark_locklear has joined #ruby
jumblemuddle has joined #ruby
lolmaus has quit [Remote host closed the connection]
wallerdev has joined #ruby
momomomomo has quit [Quit: momomomomo]
Hanmac1 has joined #ruby
lolmaus has joined #ruby
snath has quit [Ping timeout: 240 seconds]
SegFaultAX has joined #ruby
kpshek has quit [Ping timeout: 240 seconds]
codeFiend has quit [Quit: codeFiend]
maletor has quit [Ping timeout: 276 seconds]
relix has joined #ruby
dmitrykorotkov has quit [Ping timeout: 245 seconds]
<kith>
http://net-ssh.github.io/ssh/v1/chapter-2.html <-- is SSH_AGENT_SOCK the correct enviroment variable? I have SSH_AUTH_SOCK and it seems to work... trying it in another script it doesnt as well as SSH_AGENT_SOCK, so i'm confused now :D
Hanmac has quit [Ping timeout: 276 seconds]
<Hanmac1>
atmosx: yeah .. PS: "Method#original_name" i think i was the one that requested that ...
kpshek has joined #ruby
instantaphex has quit [Ping timeout: 252 seconds]
Authenticator has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
agarie has quit [Read error: Connection reset by peer]
<wallerdev>
good morning rubyers
Avahey_ has joined #ruby
Hanmac1 is now known as Hanmac
<wallerdev>
rubigos
treehug8_ has joined #ruby
pu22l3r has joined #ruby
michael_lee has quit [Remote host closed the connection]
<mordof>
shevy: i'll still be doing Ruby for certain sections of work. it's not *just* rails
treehug88 has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poikon has quit []
saarinen has joined #ruby
<mordof>
shevy: and i'm not one to jsut say "oh I'm doing Rails now, my knowledge of Ruby can just stagnate
<Hanmac>
shevy: did you know that ruby-trunk support Pathname.new("a") / "b" / "c" ? ;P
michaeldeol has joined #ruby
Bumptious has joined #ruby
<shevy>
no idea about Pathname
<shevy>
once I realized how verbose it is I stopped using it
Celm_ has quit [Remote host closed the connection]
JoeGaudet has joined #ruby
sdouglas has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ohcibi_ is now known as ohcibi
Solnse has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
b00stfr3ak has quit [Read error: Connection reset by peer]
agarie has joined #ruby
moritzs has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
benzrf is now known as benzrf|offline
snath has joined #ruby
pen has joined #ruby
yfeldblum has joined #ruby
ce_afk is now known as cescalante
Danielpk has joined #ruby
aross_ has joined #ruby
maletor has quit [Ping timeout: 250 seconds]
<Danielpk>
How i can figure out which namespace the method was defined? (I need overwrite it but cant find where it was defined :/)
<shevy>
why is there a Class, and why is there one : before Foo ?
hackeron has joined #ruby
<johnny5>
its like explaining what it is
<johnny5>
Foo::Example is a Class
kevinykchan has joined #ruby
<Rylee>
If I have an array of Hashes that are of the form either { id: 'string', fallback_name: 'string' } or { id: 'string', fallback_email: 'string' }, how would I merge all entries where the id is the same so that the original array is now an array of hashes with all 3 elements?
<shevy>
johnny how is it a class?
<johnny5>
i presume so right?
freezey has joined #ruby
<shevy>
the code example above has: module Foo; module Example
<johnny5>
class Foo::Example; end says so
<havenwood>
shevy: a class instance method on the module
<shevy>
huh
<shevy>
ahhh
<shevy>
weird naming choices honestly
<mordof>
Rylee: how do you intend to merge them?
<shevy>
class methods on modules
<Rylee>
first.merge! second, most likely
<johnny5>
when a method is on a module it is no longer a method
metamaterial has joined #ruby
<johnny5>
it takes on the concept of being a function
<shevy>
lol
mrsolo has joined #ruby
<shevy>
is a module an object
<johnny5>
depends how you look at it
<johnny5>
thats correct, ruby embraces many ideas
mrsolo has left #ruby [#ruby]
<mordof>
Rylee: unfortunately I'm fairly new to Ruby and that means nothing to me x.x lol
<jhass>
johnny5: that's not right. A function can be called without a receiver. module methods can't
beef-wellington has quit [Ping timeout: 250 seconds]
<johnny5>
shrug
<Rylee>
using the Hash#merge! method, thati s
einarj has quit [Remote host closed the connection]
<shevy>
there is also .update Rylee
<Rylee>
hmm!
<Rylee>
yes tehre is indeed
saarinen has quit [Quit: saarinen]
<mordof>
isn't that just an alias for merge!?
AlSquire has quit [Quit: This computer has gone to sleep]
<mordof>
yeah..
AlSquire has joined #ruby
<mordof>
"merge! and update are two names for the same method"
metamaterial has quit [Client Quit]
chipotle has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
<johnny5>
good to know programmers like shevy run circles around these jhass ppl
<Hanmac>
see the input data got changed ... you might not want this
<shevy>
johnny5 I am not a programmer!
_justin has joined #ruby
<johnny5>
true
<johnny5>
youre much better
aspires has quit []
<Rylee>
it changes the input data intentionally, yeah
<shevy>
I hate computers, they are just too useful to not use them
* Hanmac
is now known as !false
carlyle has joined #ruby
zorak has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby
Ardenzi has quit [Remote host closed the connection]
<Hanmac>
Rylee: infomation: inject (imo better name than reduce can be used better, because 1) it does have a default value, in this change it prevents the first hash from changing, 2) it accept symbols too ... that is slytly faster than blocks from symbols
<shevy>
"he was the guy who build epic <INSERT_THINGY_HERE>"
Hanmac has quit [Ping timeout: 250 seconds]
<shevy>
ok
<shevy>
you are the dude who write a shitty, buggy html parser in ruby
<shevy>
;P
<shevy>
AND THEN
<shevy>
a rails project
<shevy>
...
<johnny5>
oh rails advice
<shevy>
mordof how about a game in ruby
<johnny5>
sup jhass
<shevy>
a browser game
<johnny5>
can u join the array sideways?
<shevy>
johnny5 you could tilt the head to the side
<shevy>
then the array looks sideways
alanlo has left #ruby [#ruby]
<mordof>
shevy: lol
<johnny5>
tru
x1337807x has joined #ruby
<mordof>
shevy: how is it buggy? it works properly
Bira has joined #ruby
<benzrf>
i second shevy for once
<shevy>
mordof ok mark my words
tengopreguntas has quit [Quit: Leaving.]
<mordof>
shevy: you haven't even seen how i implemented it
<shevy>
mordof I'll remember you once you put it into a gem, and I find bugs :)
<shevy>
that's ok, I wait until your gem is finished
<mordof>
shevy: how old are you, if i'm allowed to ask? heh
Zai00 has quit [Quit: Zai00]
<mordof>
you seem like the type that has free time on their hands to be able to do more "interesting" things instead
<shevy>
I reached the age where it is no longer polite to ask for such things
<benzrf>
in python we may rotate a 2d list by doing zip(*l[::-1])
<benzrf>
where l is the list
<shevy>
mordof nah, I just wouldn't want to do boring things in my free time
<mordof>
shevy: again, this is far from boring for me
<shevy>
this is the scariest part
<mordof>
i'd rather be doing this than *another* game
djbkd has quit [Read error: Connection reset by peer]
<mordof>
i've made lots of those
tvw has joined #ruby
<shevy>
but not in ruby :(
<mordof>
indeed
<mordof>
but my job isn't for making games
<mordof>
so that development style isn't useful to learn
djbkd has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<mordof>
not right now anyway
<mordof>
shevy: once i'm done with my 2 classes, i'll be picking up some interesting projects in ruby
<shevy>
2 classes?
<shevy>
class First
<shevy>
class Second
<shevy>
done!
<shevy>
mordof well you wrote you won't have time after that :(
momomomomo has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mordof>
shevy: it's not like i'll never have time again in my life
<johnny5>
ayo jhass im missing ur words of wisdom
<shevy>
well in 10 years...
<shevy>
... when you switched to python ...
Xeago has quit [Remote host closed the connection]
<shevy>
... to write the ultimate badass html parser ...
p8952 has quit [Ping timeout: 245 seconds]
<benzrf>
html parsing is trivial -smug-
<mordof>
benzrf: indeed it is. that's one of the reasons why i chose it
<mordof>
it's not like the concept of what i needed to do was all that difficult. i just wanted something to get a start on the langauge
p8952 has joined #ruby
p8952 has quit [Changing host]
p8952 has joined #ruby
monkegji_ has quit [Remote host closed the connection]
vallieres_ has joined #ruby
vallieres_ has quit [Max SendQ exceeded]
abra has quit [Ping timeout: 265 seconds]
vpretzel|1484 is now known as vpretzel|1414
abra has joined #ruby
Xeago has joined #ruby
carlyle has quit [Remote host closed the connection]
timonv has joined #ruby
_justin has quit [Ping timeout: 250 seconds]
bricker has joined #ruby
<benzrf>
tag closing = do {char '<'; if closing then char '/' else return (); name <- many1 alphanum; attrs <- attr `sepBy` spaces; char '>'; return (Tag name attrs)}
<benzrf>
oh wait i'd need to specify the name
<benzrf>
p:
<benzrf>
kk not too hard
<benzrf>
actually this could be fun to write brb
pu22l3r has quit [Remote host closed the connection]
<mordof>
hahahaha
Bira has quit [Remote host closed the connection]
Bira has joined #ruby
s3ri0us is now known as s3ri0us|away
x1337807x has quit [Ping timeout: 252 seconds]
newUser1234 has quit [Quit: Leaving...]
<mordof>
benzrf: what about child elements, and text nodes?
<benzrf>
im writing that
kirun has joined #ruby
<mordof>
benzrf: don't forget about stray < > / that could be inside and not actually be a tag
<mordof>
(even in the correct order / format)
<benzrf>
m8 i dont think you know how this works
<katlogic>
have you tried an actual parser instead?
sambao21 has quit [Quit: Computer has gone to sleep.]
<certainty>
oh it should. It's not inside cdata :)
obs has quit [Quit: Saliendo]
* benzrf
hifives certainty
<katlogic>
does not in practice though
rdark has quit [Quit: leaving]
<mordof>
certainty: not under an HTML doctype
reflux has joined #ruby
<katlogic>
thats the thing with html parsers. you have to digest whatever garbage browsers are happy with.
rodri_gore has quit [Ping timeout: 240 seconds]
<mordof>
certainty: under an XHTML doctype, yes
HashNuke has quit [Quit: Connection closed for inactivity]
s3ri0us|away is now known as s3ri0us
<reflux>
i have two ruby versions installed due to a software dependency -- is there a shell environment variable i can set to specify which version to use when executing from the command line?
<certainty>
mordof: you may know better than me. Still it's not that hard to parse.
x1337807x has joined #ruby
carlyle has joined #ruby
<mordof>
certainty: indeed. i've already covered that scenario
<katlogic>
now writing pure xml recursive descent parser is trivial, but real world web pages using actual xhtml are some sort of magical fairy.
codeurge has joined #ruby
sambao21 has joined #ruby
Bumptious has quit [Remote host closed the connection]
randomnick_ has quit [Ping timeout: 245 seconds]
* mordof
is only intending to parse properly formatted HTML 5 documents
pen has quit [Ping timeout: 245 seconds]
<katlogic>
enjoy you 3k loc html5 parser then
Bumptious has joined #ruby
<katlogic>
*your
pu22l3r has joined #ruby
<mordof>
3k loc?
supermarin has joined #ruby
obscured has quit [Quit: leaving]
<katlogic>
unfortunately html5 is not as regular as xml
<mordof>
i know
<katlogic>
and contains a lot of context dependent stuff
<mordof>
allows for open ended tags, self closing tags, etc
<katlogic>
and generally, you have to either write javascript parser
<katlogic>
and css too. or employ some daring heuristics which might or might not work
timonv has quit [Remote host closed the connection]
<katlogic>
mordof: that, but also quoting being optional :(
Megtastique has joined #ruby
<mordof>
katlogic: i'm not looking to display the results.. only examine certain components
<mordof>
css and javascript aren't necessary
<katlogic>
mordof: indeed, with right set of heuristics you can skip those
<katlogic>
look at what beautifulsoup does
<katlogic>
the name 'soup' in those kind of parser is actually descriptive
<katlogic>
derived from 'letter soup'
timonv has joined #ruby
johnny5 has quit [Remote host closed the connection]
<mordof>
indeed
reflux has quit [Quit: leaving]
papercode has joined #ruby
Bumptious has quit [Ping timeout: 264 seconds]
supermarin has quit [Ping timeout: 252 seconds]
<katlogic>
mordof: I dont know what you're really doing, but parsing *general* web pages is very hard to do reliably. The problem is actually small recursive descent parser, and horrible amount of workarounds on top of it...
troyready has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yairgo has quit [Ping timeout: 252 seconds]
paulfm has quit []
<mordof>
i'm aware
momigi has joined #ruby
Xeago has quit [Remote host closed the connection]
combusean has quit [Ping timeout: 265 seconds]
pen has joined #ruby
<mordof>
katlogic: this is mainly for a learning experience. the chances of it being implemented are slim. and even if it does get implmented, it will only be for a very specific use case
<mordof>
learning ruby* not how to make an html parser
Xeago has joined #ruby
timonv has quit [Remote host closed the connection]
shvelo has joined #ruby
<mordof>
so a large portion of those workarounds and checks aren't needed
<katlogic>
sadly neither of those work for me well enough when scraping :(
s2013 has quit [Ping timeout: 252 seconds]
Iniesta8 has joined #ruby
<certainty>
it's probably easier to ignore the html and only look for the very subset that is tha structure that you're looking for then
* certainty
&
francisfish has quit [Remote host closed the connection]
<mordof>
certainty: the structure i'm looking for isn't immediately known
<mordof>
i'm attempting to write something that examines structural patterns, and identifies the sections i want based on those patterns
<mordof>
so that any tags, or amount of generations or whatever can be used
randomnick_ has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<katlogic>
uh oh
Xeago has quit [Ping timeout: 264 seconds]
<mordof>
the pattern is obvious - just repeated blocks of html
<mordof>
a list essentially
<mordof>
but with a previously undetermined tag use / internal structure to eat item
<mordof>
each item*
cpruitt has quit [Quit: cpruitt]
s3ri0us is now known as s3ri0us|away
danshultz has quit [Remote host closed the connection]
krazh has joined #ruby
danshultz has joined #ruby
<mordof>
katlogic: is the html that you've been trying to scrape through valid?
<katlogic>
No, most of the time utter garbage.
danshultz has quit [Remote host closed the connection]
sk87 has joined #ruby
danshultz has joined #ruby
ghr has joined #ruby
sunya7a has joined #ruby
<katlogic>
Valid html rarely gives problems (as sgml/xml parsers can deal with it)
<katlogic>
but real world needs hand written parser and dom accessors :(
<mordof>
thought as much. yeah... mine is only meant to accomodate valid html
<mordof>
well
<Cope>
why is pastebin hated? I recall it is.. but can anyone point me to something that explains what's wrong with it?
<mordof>
Cope: i've always wondered that also
<katlogic>
Cope: disable adblock there for a while :)
troulouliou_dev has quit [Quit: Leaving]
* mordof
hasn't disabled adblock in ages...
havenwood has quit [Remote host closed the connection]
<mordof>
i completely forgot
<katlogic>
yeah i use pastebin too, just out of spite
<Cope>
$new_colleague pasted something with it, and I asked him not to, in standard reaction.. he asked why... and I didn't know why... other than 'werm.. because #ruby says so'
<katlogic>
(also its oldest and greatest so why clone some copycat huh)
sambao21 has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
cpruitt has joined #ruby
havenwood has joined #ruby
<katlogic>
Cope: #ruby is full of shit. if pastebin has ruby hilite support then theres really no reason :)
x1337807x has joined #ruby
<mordof>
katlogic: i prefer calling it "very opinionated" lol
<katlogic>
github is only for rockstar programmer types
michaelchum has joined #ruby
codeurge has quit [Quit: Quit.]
alem0lars has joined #ruby
nowthatsamatt has joined #ruby
djbkd has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 252 seconds]
sunya7a has quit [Ping timeout: 250 seconds]
rodri_gore has joined #ruby
agrinb has joined #ruby
paulfm has joined #ruby
maximski has joined #ruby
aross_ has quit []
alex-ross has joined #ruby
afex has joined #ruby
dmitrykorotkov has joined #ruby
rezzack has joined #ruby
virtualize has quit [Quit: Leaving...]
dmitrykorotkov has quit [Max SendQ exceeded]
s3ri0us|away is now known as s3ri0us
codeurge has joined #ruby
etqqkoiflwhb_ has quit [Remote host closed the connection]
alex-ross has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
moted has quit [Quit: moted]
krazh has quit [Remote host closed the connection]
krazh has joined #ruby
kpshek has quit []
yairgo has joined #ruby
nanoyak has joined #ruby
supermarin has joined #ruby
sunya7a has joined #ruby
nateberkopec has quit [Quit: Leaving...]
gigetoo has quit [Remote host closed the connection]
mr_snowf1ake has joined #ruby
<jenrzzz>
helpa says “Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!"
<jenrzzz>
in #RoR
<popl>
yes, it's true
<popl>
pastebin.com sucks
<popl>
:)
gigetoo has joined #ruby
<popl>
jenrzzz: it also will alter the whitespace in your code
momigi has quit [Remote host closed the connection]
<jenrzzz>
it’s great for sharing stolen data anonymously though :P
<popl>
"anonymously"
maximski has quit []
mehlah has quit [Quit: Leaving...]
nateberkopec has joined #ruby
sambao21 has joined #ruby
supermarin has quit [Ping timeout: 255 seconds]
freezey has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
Bumptious has joined #ruby
blackmesa has joined #ruby
Hanmac has joined #ruby
pezhore has joined #ruby
tzudot has joined #ruby
<pezhore>
Anyone on here use the savon gem? I'm learning as I go, but wonder if the capitalization of APIKey is messing things up: http://pastebin.com/B5senUFb
<pezhore>
according to the server I'm connecting to, I"m sending the username/password correctly, but the api key is blank
jack_rabbit has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
sambao21 has quit [Ping timeout: 252 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevinykc_ has joined #ruby
Asher has quit [Quit: Leaving.]
shvelo has quit [Ping timeout: 240 seconds]
rodri_gore has quit [Ping timeout: 250 seconds]
blackmesa has quit [Quit: WeeChat 0.4.3]
mehlah has joined #ruby
dmitrykorotkov has joined #ruby
kpshek has joined #ruby
Kricir has joined #ruby
dmitrykorotkov has quit [Max SendQ exceeded]
ce_afk is now known as cescalante
kevinykchan has quit [Ping timeout: 250 seconds]
alem0lars has quit [Quit: Going AFK...]
alem0lars has joined #ruby
chipotle has quit [Quit: cya]
tjsousa_ has quit [Ping timeout: 252 seconds]
<benzrf>
mordof: check it out just finished my cruddy xml parser :^)
<happytux>
as there is no rake-related channel, I will ask in the next related channel.
webgen_ has quit [Quit: Leaving from xChat]
<happytux>
I am migrating from ant to rake and there is some behavior in ant scripts I want rake to replicate.
<happytux>
The first one would be that a task prints its task name so one knows what task is going to run now.
johnny5 has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
tzudot- has joined #ruby
<tzudot>
I have recently installed ruby version 2.1.1, and unfortunately deleted existing installation of ruby version 2.1.0.
<happytux>
I already tried several ways to get the task name printed in a transparent manner as I don't want to clutter my rake tasks with candy stuff like this, also I want to reuse this feature for all other Rakefiles, too.
<happytux>
tzudot: What distribution? Are you using a ruby environment manager (rbenv/rvm)?
<tzudot>
chruby
<happytux>
tzudot: what distribution? Debian? CentOS?
<tzudot>
I am on Mac OS.
<workmad3>
happytux: re your rake question - that sounds like running 'rake -t'
<tzudot>
when I install a gem, gem install --user-install <gem-name>
<tzudot>
it installs to /Users/tdot/.gem/ruby/2.1.0/gem/
freezey has joined #ruby
<tzudot>
instead of /Users/tdot/.gem/ruby/2.1.1/gem/
alem0lars has joined #ruby
supermarin has joined #ruby
<happytux>
workmad3: So I let a Rakefile run with default task (which implies here that a full build is done). I want to see the task name at each step.
<workmad3>
happytux: 'rake -t'
<workmad3>
happytux: which prints out the 'trace'
<happytux>
oh
<tzudot>
so, when i run an executable installed from a gem, say hazel,
<tzudot>
i get this error - /usr/local/bin/hazel: bad interpreter: /opt/rubies/ruby-2.1.0/bin/ruby
<happytux>
workmad3: Can I add this also as an option to a Rakefile?
matti has quit [Changing host]
matti has joined #ruby
benzrf is now known as benzrf|offline
supermarin has quit [Ping timeout: 255 seconds]
<workmad3>
happytux: don't think so
<happytux>
workmad3: ok, thanks
Solnse has quit [Quit: Leaving.]
djbkd has joined #ruby
<happytux>
tzudot: Some interpreter / shell settings are wrong
RaptorJesus_ has joined #ruby
decoponio has quit [Quit: Leaving...]
<tzudot>
ya, i suspect that
carlyle has quit [Remote host closed the connection]
<tzudot>
trying out few changes in my gemrc..
carlyle has joined #ruby
sambao21 has joined #ruby
<workmad3>
happytux: however, looking through the code for rake, I can see that it merges in options from the environment variable RAKEOPT
<Stalkr_>
If I have a method, `mail(to, message)` and a string `msg = "santa Hello Santa Claus!"`, why is it not possible to do `mail(msg.split(' ', 2))`? I get `wrong number of arguments (1 for 2)`
<Stalkr_>
Is it because it just returns an array?
<Hanmac1>
Stalkr_: use mail(*msg.split(' ', 2))
Hanmac1 is now known as Hanmac
<workmad3>
happytux: so if you set RAKEOPT=-t in your bashrc or similar, you get that behaviour turned on all the time
alem0lars has quit [Quit: Going AFK...]
<Stalkr_>
Hanmac: Fantastic, I got to remember that star, thanks
toastyne_ has quit [Remote host closed the connection]
sooik has joined #ruby
alem0lars has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
banister has joined #ruby
<happytux>
workmad3: nice
wallerdev has quit [Quit: wallerdev]
sambao21 has quit [Client Quit]
sambao21 has joined #ruby
troyready has quit [Ping timeout: 250 seconds]
<apeiros>
Stalkr_: and yes, it was because split returns one object (an array, as you said)
toastynerd has joined #ruby
vallieres_ has joined #ruby
alem0lars has quit [Client Quit]
<Stalkr_>
I realized that as I hit the enter key, haha. Glad * does what I meant
shvelo has joined #ruby
rezzack has quit [Quit: Leaving.]
metamaterial has quit [Remote host closed the connection]
Bira has quit [Read error: Connection reset by peer]
<tzudot>
can't quite get where is version 2.1.0 stuck in configuration.
<happytux>
tzudot: Currently I am using rbenv, but then I read you use chruby and the similar sound to 'chroot' gave me a hint and now I will use chruby, too.
<tzudot>
as the folder, /opt/rubies/2.1.0 has been deleted.
Bira has joined #ruby
SHyx0rmZ has joined #ruby
troulouliou_dev has joined #ruby
<tzudot>
happytux: it's awesome and i prefer that too or ruby managers
<tzudot>
or/other*
razrunelord has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
Musashi1 has joined #ruby
<happytux>
tzudot: Yes, rbenv is nicer than rvm but still a pain, chruby is unix philosophical right as it does only one job (ruby environment switching).
bearlulz has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<tzudot>
true :)
<workmad3>
happytux: switch to ruby-install too, if you're still on ruby-build :)
yakko has joined #ruby
<happytux>
workmad3: how can I install ruby-install? I can't find it as a ruby gem, I guess it is more complex.
<shevy>
hehe
<shevy>
if it is a gem, you must have ruby installed, no?
troulouliou_dev has quit [Ping timeout: 252 seconds]
<Hanmac>
my current ruby is less then 1 day old ;P
aspires has joined #ruby
p8952 has joined #ruby
p8952 has quit [Changing host]
p8952 has joined #ruby
s2013 has joined #ruby
agjacome has joined #ruby
francisfish has joined #ruby
<shevy>
workmad3 good point, if you would have omitted that, you'd been even lazier
Avahey_ has quit [Quit: Connection closed for inactivity]
shvelo has quit [Remote host closed the connection]
jackneill has quit [Read error: Connection reset by peer]
<shevy>
can we make a distribution like gentoo and archlinux combined
<shevy>
but using ruby rather than python
Soda has joined #ruby
afex has joined #ruby
<centrx>
That could be a good project
<centrx>
Replacing all Python and Perl with Ruby as the standard Linux glue
<centrx>
glue/scripting language
<Hanmac>
Suse uses Ruby for SystemConfig/SystemSettings
danshultz has quit [Remote host closed the connection]
kevinykc_ has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
kevinykchan has joined #ruby
geggam has quit [Remote host closed the connection]
<toretore>
"glue"
mjsmith2 has quit []
BraddPitt has joined #ruby
<toretore>
that's one unix philosophy i don't care for
dmitrykorotkov has joined #ruby
mjsmith2 has joined #ruby
einarj has joined #ruby
momomomomo has quit [Ping timeout: 265 seconds]
sooik has joined #ruby
<BraddPitt>
Hi all, if I am creating a class which will have a lot of instance variables (like 10), what is the most idiomatic ruby way to create the initialize() method? Pass a params hash?
weaksauce has joined #ruby
<happytux>
Is there a nice puppet module for installing chruby? I found a very nice one for rbenv.
<banister>
BraddPitt yeah, or, redesign your shit so you dont need to pass so many ;)
<toretore>
BraddPitt: use kwargs
zigomir has quit [Remote host closed the connection]
CodeBunny has joined #ruby
<BraddPitt>
idk banister im scraping a webpage for torrents so i want to store all that info without issuing multiple GETs
zigomir has joined #ruby
<BraddPitt>
would it be appropriate to store the hash itself as the only instance variable, and then make getter methods to extract the values from the corresponding key?
<BraddPitt>
or is that stupid>?
momomomomo has joined #ruby
carlyle has quit [Remote host closed the connection]
treehug8_ has quit []
<toretore>
no, it's acceptable
danshult_ has joined #ruby
<toretore>
though it does reveal your classs''s innards to the world
Solnse has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
geggam has joined #ruby
razrunelord has joined #ruby
<banister>
BraddPitt that sounds lke a better approach
omosoj has quit [Quit: Leaving]
<BraddPitt>
ok, thank you toretore and banister i think ill do that
<BraddPitt>
although, can you think of any better way?
<toretore>
the proper way is to design your class without considering the data structure you're getting from a 3rd party
<banister>
BraddPitt do other objects need to access those vars ? if not you dont even need to write accessors
pel_daniel has joined #ruby
zigomir has quit [Ping timeout: 258 seconds]
roberrt has joined #ruby
dmitrykorotkov has quit [Quit: Ex-Chat]
razrunelord has quit [Ping timeout: 255 seconds]
danijoo has quit [Read error: Connection reset by peer]
Sthebig has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
razrunelord has joined #ruby
<shevy>
Hanmac SuSE does?
<Hanmac>
yeah
<shevy>
cool
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supermarin has joined #ruby
Bumptious has quit [Remote host closed the connection]
hl has quit [Ping timeout: 260 seconds]
Rylee has quit [Ping timeout: 240 seconds]
<happytux>
Should I build ruby with clang or with gcc?
<jenrzzz>
happytux: what platform?
sooik has quit [Ping timeout: 240 seconds]
roberrt has left #ruby [#ruby]
GaryOak_ has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
<shevy>
you are on freebsd?
supermarin has quit [Ping timeout: 258 seconds]
toastynerd has joined #ruby
<atmosx>
shevy: my application is
<shevy>
hmm
<atmosx>
and this weechat session is running on a tmux session on a freebsd server. Connection is tunneled through tor :-P running on the same freebsd server
<atmosx>
shevy: it's a vps
alem0lars has quit [Quit: alem0lars]
<shevy>
man
<shevy>
ircing on peechat
codeurge has quit [Quit: Quit.]
<happytux>
Debian amd64
<happytux>
shevy / jenrzzz: ^^
jobewan has quit [Quit: Leaving]
rodri_gore has joined #ruby
<jenrzzz>
gcc probably
kitak_ has joined #ruby
<jenrzzz>
i think the configure script will decide for you anywayw
codeurge has joined #ruby
Sirupsen has joined #ruby
wallerdev has joined #ruby
<shevy>
happytux gcc may be old but it works fairly well, go save yourself any headache, compile with gcc, and start using ruby
<jenrzzz>
it shouldn’t really matter… i don’t think ruby does any weird shit that would differ between compilers
s2013 has quit [Quit: Leaving]
<jenrzzz>
happytux: run the config script and check the output
s2013 has joined #ruby
<happytux>
ok
kitak_ has quit [Ping timeout: 240 seconds]
codeurge has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
pu22l3r_ has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
ari-_-e has quit [Ping timeout: 255 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
Valesk has joined #ruby
jprovazn has quit [Quit: Odcházím]
kevinykchan has quit [Read error: Connection reset by peer]
dmitrykorotkov has joined #ruby
bthesorceror has quit [Remote host closed the connection]
kevinykchan has joined #ruby
sdwrage has joined #ruby
aspires has quit []
dmitrykorotkov_ has joined #ruby
bthesorceror has joined #ruby
djbkd has joined #ruby
pu22l3r has quit [Ping timeout: 265 seconds]
dmitrykorotkov_ has quit [Max SendQ exceeded]
lxsameer has quit [Quit: Leaving]
bthesorceror has quit [Read error: Connection reset by peer]
bthesorc_ has joined #ruby
dmitrykorotkov_ has joined #ruby
Zai00 has joined #ruby
beneggett has quit [Client Quit]
dmitrykorotkov_ has quit [Max SendQ exceeded]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dmitrykorotkov_ has joined #ruby
SCommette has quit [Quit: SCommette]
gigetoo has quit [Read error: Connection reset by peer]
dmitrykorotkov_ has quit [Max SendQ exceeded]
qba73 has joined #ruby
dmitrykorotkov_ has joined #ruby
qba73 has quit [Remote host closed the connection]
bthesorc_ has quit [Ping timeout: 240 seconds]
Zai00 has quit [Client Quit]
Lewix has joined #ruby
BraddPitt has quit [Quit: Page closed]
dmitrykorotkov_ has quit [Max SendQ exceeded]
dmitrykorotkov_ has joined #ruby
SCommette has joined #ruby
WishBoy has joined #ruby
WishBoy- has quit [Read error: Connection reset by peer]
dmitrykorotkov_ has quit [Max SendQ exceeded]
<happytux>
What install path should I use for chruby? They don't mention it in their docs.
olivier_bK has joined #ruby
<happytux>
Correction: I mean what install path should I use for ruby-install !
dmitrykorotkov_ has joined #ruby
beneggett has joined #ruby
momigi has joined #ruby
timonv has joined #ruby
gigetoo has joined #ruby
supermarin has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kpshek has quit []
bthesorceror has joined #ruby
benzrf|offline is now known as benzrf
sambao21 has joined #ruby
<jenrzzz>
happytux: prefix?
<jenrzzz>
happytux: /usr/local probably
klaut has quit [Remote host closed the connection]
sepp2k has joined #ruby
<lethjakman>
is there..like a list of the methods and stuff used in meta programming?
<lethjakman>
I'm constantly forgetting what I need
<happytux>
jenrzzz: So I would clone it into /usr/local/ruby-install and then make install, right?
supermarin has quit [Ping timeout: 240 seconds]
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ has joined #ruby
rezzack has joined #ruby
Bira has quit [Remote host closed the connection]
treehug88 has joined #ruby
<johnny5>
doesn't the README provide instructions?
<toretore>
happytux: are you referring to where ruby-install itself should be installed, or where your rubies will be?
pezhore has left #ruby [#ruby]
tvw has quit []
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<johnny5>
i followed the instructions in the readme and it was really easy
yairgo has quit [Ping timeout: 252 seconds]
Rahul_Roy has joined #ruby
dmitrykorotkov_ has quit [Quit: Ex-Chat]
<toretore>
happytux: (both are entirely up to you)
razrunelord has joined #ruby
momigi has quit [Remote host closed the connection]
momigi has joined #ruby
krazh has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
krazh has joined #ruby
mordocai has joined #ruby
maletor has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 258 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Ping timeout: 276 seconds]
danshult_ has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
dermot has quit [Quit: leaving]
danshultz has joined #ruby
momigi_ has joined #ruby
mastyd has joined #ruby
Kricir has quit [Remote host closed the connection]
<mastyd>
Hey is there anyone here who could help me with some basic regex stuff
qhartman has joined #ruby
momigi has quit [Read error: Connection reset by peer]
<toretore>
ask
<jenrzzz>
mastyd: yeah, what do you need?
timonv has quit [Remote host closed the connection]
<toretore>
not me though, i'm going to get a beer and watch tv
<happytux>
toretore / jenrzzz: What is recommended / usually used / used by you as directory where the git source is cloned to?
ktun has joined #ruby
alpha123 has joined #ruby
djbkd has quit [Remote host closed the connection]
<mastyd>
I'm not really sure how to do match groups correctly. Basically I'm looking at matching names in chat messages. So if I'm looking for Chris I want to match all the instances of Chris in the following message, but NOT Christopher====> "Chris: hey guys I'm hanging out with Christopher tomorrow if you wanna come"
<jenrzzz>
happytux: /tmp or my home directory
<mastyd>
So the Chris before the colon will be highlighted, but not Christopher
<happytux>
jenrzzz: and when root installs it, it would be probably the root home (/root), right?
<jenrzzz>
happytux: not sure what you’re asking. the build directory is different from the prefix you install to
lw has joined #ruby
Sthebig has joined #ruby
<jenrzzz>
but yeah, if you are root, /root is usually your home
axl_ has joined #ruby
djbkd has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 240 seconds]
simono has joined #ruby
<mastyd>
Yeah I used rubular but I'm not 100% understanding match groups. my regex looks like this (^|\s)Chris(:|\s|$)
<jenrzzz>
mastyd: /(\w+):/ probably does what you want
seaned has joined #ruby
<jenrzzz>
or maybe not
<mastyd>
But I also wanna match Chris if it shows up in the message
CodeBunny has quit [Ping timeout: 252 seconds]
<mastyd>
so "Chris: hey guys my name is Chris"
moritzs has quit [Quit: Verlassend]
<apeiros>
mastyd: /\bChris\b/
<happytux>
jenrzzz: so git clone it to '/root/src/ruby-install/' ?
<apeiros>
\b is a word boundary
<jenrzzz>
happytux: ^
<apeiros>
which prevents it from matchin Christopher
<apeiros>
*matching
<jenrzzz>
happytux: it doesn’t matter dude
<jenrzzz>
you’re gonna delete it anyways
<happytux>
jenrzzz: pardon my ignorance, normally I would just pick some directory and then go with it. But in this case I have to do it in best practice as it is fixated in a puppet module.
vpretzel|1489 has quit [Ping timeout: 255 seconds]
<mastyd>
Oh dope, I didn't know about that
<mastyd>
thanks a bunch guyus
MatthewsFace has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
jenrzzz: in an international world, you usually want \p{Word} instead of \w
Rylee has joined #ruby
<apeiros>
though, if "nicknames" is "irc nicknames", both would be wrong :)
<jenrzzz>
happytux: there isn’t really a well-defined best practice though. take sysadmin license and do what you want
Deele has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
<jenrzzz>
apeiros: yeah i charge extra for that
elaptics is now known as elaptics`away
kevinykchan has quit [Read error: Connection reset by peer]
horsecowdog has quit [Remote host closed the connection]
kevinykchan has joined #ruby
alexju_ has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
<happytux>
jenrzzz: sysadmin license? Does each sysadmin license permit to use another path for the source?
relix has joined #ruby
hl has joined #ruby
<jenrzzz>
happytux: it means its your server, do whatever the fuck you want
maletor_ has joined #ruby
pablovilas has joined #ruby
beneggett has joined #ruby
<jenrzzz>
in ansible i’ll usually make the build directory in /tmp, configure, compile, and install, then delete the build directory
pablovilas has quit [Client Quit]
moted has joined #ruby
<jenrzzz>
happytux: why don’t you just make it a debian package? would probably make your life easier in the long run
mordocai has quit [Remote host closed the connection]
mastyd has left #ruby ["Leaving"]
noop has quit [Ping timeout: 240 seconds]
dmitrykorotkov has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
Kricir has joined #ruby
pablovilas has joined #ruby
beef-wellington has joined #ruby
maletor has quit [Ping timeout: 276 seconds]
dmitrykorotkov has joined #ruby
vpretzel has joined #ruby
pablovilas has quit [Client Quit]
pablovilas has joined #ruby
<happytux>
jenrzzz: right
<happytux>
jenrzzz: this would be indeed the right way
Zenigor has quit [Remote host closed the connection]
nitish has joined #ruby
nitish has quit [Changing host]
nitish has joined #ruby
tjr9898 has quit [Remote host closed the connection]
mordocai has joined #ruby
pwh has joined #ruby
blahblah has joined #ruby
<instantaphex>
can someone tell me what's wrong with this bit of jQuery: ($(document).scrollTop() >= 226) ? $('#follow-nav').css('display', 'block') : $('#follow-nav').hide();
<blahblah>
rubyconf is soldout?
phantasm66 has quit [Quit: *sleeeep….]
<instantaphex>
nevermind I'm retarded
<apeiros>
also in the wrong channel :)
beneggett has quit [Ping timeout: 252 seconds]
vpretzel_ has joined #ruby
<lethjakman>
blahblah: isn't it also over?
tzudot has left #ruby ["Using Circe, the loveliest of all IRC clients"]
<instantaphex>
Well, yes, but I figured you guys were smart enough. I don't like going in JavaScript based channels
<lethjakman>
oh wait...I'm thinking railsconf
tzudot- has left #ruby ["Using Circe, the loveliest of all IRC clients"]
<instantaphex>
shevy if only that were possible. Unfortunately clients want cool badass things moving around the screen and want to know if we can utilize the "DHTML codes"
<workmad3>
I quite like javascript :)
<shevy>
just look at the insantiy:
<shevy>
$('#follow-nav')
<shevy>
I even see lisp elements
<shevy>
instantaphex I know, the legacy often ruins the future
vpretzel has quit [Ping timeout: 265 seconds]
<benzrf>
workmad3: what the butt
<jenrzzz>
fix your california style sheets
<workmad3>
shevy: that's an interface for DOM access though, not javascript itself
klaut has joined #ruby
<shevy>
javascript is even more popular on github than ruby
<lethjakman>
shevy: wait. you're still trying to do that.
<instantaphex>
california style sheets?
<shevy>
workmad3 can I target DOM without javascript
<apeiros>
mordof: how do you mean? probably sub/gsub
Bumptious has joined #ruby
<mordof>
oh gsub, that's what i needed
<mordof>
apeiros: thanks
Morkel_ has quit [Quit: Morkel_]
<shevy>
mordof there is also .tr() !!!
sambao21 has quit [Quit: Computer has gone to sleep.]
<workmad3>
shevy: sure... DOM manipulation is a language-independent specification worked up by w3
<shakar>
Hello! My company has a big rails app, with a correspondingly big production.log, which muddles all the errors among everything else. How can I have all the error messages, of any type, be written to a separate file?
jherman3 has quit [Quit: Page closed]
northfurr has quit [Quit: northfurr]
razrunelord has quit [Remote host closed the connection]
<shakar>
we're using rails 3.2.17 and ruby 2.0.0
endash has quit [Quit: endash]
<atmosx>
shakar: using grep?
francisfish has quit [Remote host closed the connection]
michaeldeol has joined #ruby
p8952 has joined #ruby
p8952 has quit [Changing host]
p8952 has joined #ruby
pablovilas has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
claymore has quit [Quit: Leaving]
Martxel has quit [Read error: Connection reset by peer]
Beoran_ has quit [Ping timeout: 276 seconds]
beneggett has joined #ruby
lw has joined #ruby
beef-wellington has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
northfurr has joined #ruby
<shakar>
atmosx: I'm looking for the log files to _always_ be written this way, not just use a one-time tool
RaptorJesus has joined #ruby
musl has quit [Quit: WeeChat 0.4.3]
Lewix has joined #ruby
musl has joined #ruby
s2013 has joined #ruby
RaptorJesus_ has quit [Ping timeout: 272 seconds]
<shevy>
atmosx he asked a rails question on #ruby ;(
<jherman3>
Is anyone here familiar with SAX parsing with nokogiri?
jhass is now known as jhass|off
sambao21 has quit [Read error: Connection reset by peer]
mrj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shakar>
shevy: sorry, it's difficult for me to distinguish between rails and ruby framework stuff, I'm not versed in either. And I tried #rails, #rubyonrails, and #ruby-on-rails but none of those seemed to be it. Then I figured if I came here, I'd see a rails cannel in the topic. I didn't, so I just asked.
<shakar>
*channel
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjsmith2 has quit [Remote host closed the connection]
<shevy>
shakar the railsers are on #rubyonrails
<shevy>
many people here do not know rails at all
kyb3r_ has quit [Quit: Leaving]
dsdeiz has joined #ruby
<shevy>
I assume atmosx comment in regards to grep was meant to search for where that file is stored
<shevy>
and look at the source of said file to know where to search further
<shakar>
shevy: ah, hm, was immediately kicked last time I tried a few minutes ago, working now, thanks
s2013 has quit [Read error: Connection reset by peer]
<shevy>
#rubyonrails requires registration, unlike #ruby which allows happy chatting
<shevy>
and there is also #ruby-lang
s2013 has joined #ruby
<dsdeiz>
hey all what is the version of the specs does the yaml engine that comes with 1.9.3? 1.1 or 1.2?
<shevy>
where the bosses hang out
GaryOak_ has joined #ruby
agrinb has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
musl has quit [Quit: WeeChat 0.4.3]
agrinb has joined #ruby
mattwb has quit [Ping timeout: 252 seconds]
musl has joined #ruby
vallieres_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has joined #ruby
<crome>
shakar: you can easily write a custom logger that maintains separate files for different severities and hook it up with rails in config/application.rb
go|dfish has joined #ruby
<atmosx>
shakar: in the rails directory => grep -i error log/development.log
<atmosx>
or what crome says, using 'logger' you could write a custom logger and redirect everything there but I guess you're not the developer.
<crome>
shakar: you can also think about using one of the log services like papertrail
Avahey_ has joined #ruby
<atmosx>
anyway that's a considerably easy task that can be approached by different tools at different levels depending on what you need
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
jherman3 has quit [Quit: Page closed]
agrinb has quit [Ping timeout: 255 seconds]
arrubin has joined #ruby
clov3r has joined #ruby
andrewjanssen has joined #ruby
VTLob has quit [Quit: VTLob]
timonv has joined #ruby
musl has quit [Quit: WeeChat 0.4.3]
<shakar>
crome: we are using papertrail
musl has joined #ruby
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
djbkd has joined #ruby
Zenigor has joined #ruby
mattmini has joined #ruby
freggles has quit [Remote host closed the connection]
yairgo has quit [Ping timeout: 252 seconds]
mattwb has quit [Changing host]
mattwb has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
apeiros has quit [Remote host closed the connection]
musl has quit [Client Quit]
qwyeth has quit [Quit: Leaving]
timonv has quit [Ping timeout: 258 seconds]
s2013_ has joined #ruby
musl has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
pu22l3r has joined #ruby
Guest40481 has quit [Quit: Ex-Chat]
Guest40481 has joined #ruby
Guest40481 has quit [Max SendQ exceeded]
Guest40481 has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
shakar has quit [Quit: Konversation terminated!]
Guest40481 has quit [Max SendQ exceeded]
s2013 has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
krazh has quit [Remote host closed the connection]
Guest40481 has joined #ruby
krazh has joined #ruby
Fire-Dragon-DoL has joined #ruby
havenwood has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Eiam has joined #ruby
Guest40481 has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest40481 has joined #ruby
yubrew has quit [Ping timeout: 258 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olivier_bK has quit [Ping timeout: 246 seconds]
enebo has quit [Quit: enebo]
davedev24 has quit [Remote host closed the connection]
davedev24 has joined #ruby
KanKava has quit [Quit: leaving]
sambao21 has joined #ruby
_Andres has joined #ruby
SCommette has joined #ruby
s2013 has joined #ruby
kevind has quit [Quit: kevind]
seaned has quit [Quit: Zzzzzz....]
spider-mario has quit [Read error: Connection reset by peer]
davedev24 has quit [Ping timeout: 240 seconds]
andrewlio has quit [Quit: Leaving.]
omosoj has joined #ruby
s2013_ has quit [Ping timeout: 264 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
elik has joined #ruby
s2013_ has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
sski has joined #ruby
kitak has quit [Remote host closed the connection]
mois3x has joined #ruby
kitak has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
mattwb has quit [Ping timeout: 252 seconds]
yakko has quit []
codeurge has joined #ruby
bthesorceror has quit []
Nahra has quit [Remote host closed the connection]
bthesorceror has joined #ruby
Nahra has joined #ruby
saarinen has quit [Quit: saarinen]
sambao21 has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
nateberkopec has joined #ruby
ukd1 has joined #ruby
tengopreguntas has joined #ruby
mansi has quit [Remote host closed the connection]
renier has quit [Read error: Connection reset by peer]
agarie has quit [Read error: Connection reset by peer]
mansi has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
combusean has quit [Ping timeout: 265 seconds]
Megtastique has quit []
larsam has joined #ruby
renier has joined #ruby
agarie has joined #ruby
supermarin has quit [Remote host closed the connection]
fijimunkii has quit [Ping timeout: 255 seconds]
combusean has joined #ruby
supermarin has joined #ruby
renier has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
pu22l3r has quit [Remote host closed the connection]
renier has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
Azure has quit [Ping timeout: 240 seconds]
brunops has joined #ruby
supermarin has quit [Ping timeout: 240 seconds]
randomnick_ has quit [Remote host closed the connection]
thomasxie has joined #ruby
saarinen has joined #ruby
tjr9898 has joined #ruby
kitak has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
kitak has joined #ruby
endash has joined #ruby
danijoo has joined #ruby
clov3r has quit [Remote host closed the connection]
djbkd has joined #ruby
clov3r has joined #ruby
combusean has quit [Ping timeout: 258 seconds]
senayar_ has quit [Remote host closed the connection]
senayar has joined #ruby
freezey has quit [Remote host closed the connection]
Azure has joined #ruby
funburn has joined #ruby
senayar has quit [Client Quit]
clov3r has quit [Ping timeout: 240 seconds]
Sirupsen has joined #ruby
blahblah has left #ruby [#ruby]
JBreit has joined #ruby
Soliah has joined #ruby
arrubin has quit []
geopet has quit []
aspires has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
mjsmith2 has joined #ruby
tris has joined #ruby
razrunelord has joined #ruby
clov3r has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
clov3r has quit [Remote host closed the connection]
clov3r has joined #ruby
mary5030 has joined #ruby
m00nlight_ has quit [Quit: Konversation terminated!]
seaned has joined #ruby
tacos1de has quit [Ping timeout: 272 seconds]
s2013 has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
gregf_ has quit [Read error: Operation timed out]
janssen has joined #ruby
clov3r_ has joined #ruby
andrewjanssen has quit [Ping timeout: 252 seconds]
instantaphex has joined #ruby
ss__ has joined #ruby
tacos1de has joined #ruby
s2013_ has quit [Ping timeout: 255 seconds]
roadie has joined #ruby
clov3r has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 265 seconds]
Hanmac1 has joined #ruby
renier has quit [Ping timeout: 258 seconds]
Bumptious has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 240 seconds]
phoo1234567 has quit [Quit: Leaving]
datafirm has quit [Quit: datafirm]
Hanmac has quit [Ping timeout: 252 seconds]
instantaphex has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
pu22l3r has joined #ruby
ss__ is now known as s2013
danijoo has joined #ruby
agarie has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
aspires has quit []
nanoyak has joined #ruby
cpruitt has quit [Quit: cpruitt]
agjacome has quit [Quit: leaving]
tjr9898 has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 258 seconds]
razrunelord has quit [Remote host closed the connection]
virtualize has joined #ruby
krazh has quit [Read error: Connection reset by peer]
krazh has joined #ruby
SCommette has quit [Quit: SCommette]
alexju has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
nanoyak has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
kevinykchan has joined #ruby
datafirm has joined #ruby
SCommette has joined #ruby
lw has quit [Quit: s]
saarinen has quit [Quit: saarinen]
SCommette has quit [Client Quit]
Hanmac2 has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 264 seconds]
nanoyak has joined #ruby
jamto11 has quit [Read error: Connection reset by peer]
agjacome has joined #ruby
jamto11 has joined #ruby
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
mrj has joined #ruby
Hanmac has joined #ruby
lw has joined #ruby
krazh has quit [Remote host closed the connection]
Hanmac2 has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
charliesome has joined #ruby
Soliah has quit [Read error: Connection reset by peer]
hrdina has left #ruby [#ruby]
hermanmunster has joined #ruby
yfeldblum has quit [Remote host closed the connection]
bthesorceror has quit [Ping timeout: 276 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
zzzbra has quit [Remote host closed the connection]
Guest40481 has quit [Quit: Ex-Chat]
predator217 has joined #ruby
Guest40481 has joined #ruby
havenwood has quit [Remote host closed the connection]
Guest40481 is now known as dmitrykorotkov
dmitrykorotkov is now known as Guest15352
vpretzel_ has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
bthesorceror has joined #ruby
northfurr has quit [Quit: northfurr]
akgerber_ has quit [Ping timeout: 255 seconds]
predator117 has quit [Ping timeout: 255 seconds]
danshultz has joined #ruby
vpretzel has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby
datafirm_ has joined #ruby
havenwood has joined #ruby
fijimunkii has joined #ruby
datafirm has quit [Read error: Connection reset by peer]