pskosinski has quit [Remote host closed the connection]
<platzhirsch>
Anyone watching Mad Men?
vlad_starkov has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
<benzrf>
nah
<RubyPanther>
what is that?
<benzrf>
it is a tv show
<benzrf>
about guys who are assholes, i think
<platzhirsch>
About the 60s in NYC and an advertising company
<platzhirsch>
It's very subtle and beautiful
<platzhirsch>
like Ruby
Txandy is now known as Txandy|away
asteros has quit [Client Quit]
pietr0 has joined #ruby
standyro2 has joined #ruby
mercwithamouth has joined #ruby
<RubyPanther>
"who controls the screen the you look at controls your mind. The upside of that is that you've got to control the screens you look at." -- Timothy Leary
vlad_starkov has quit [Read error: Connection reset by peer]
dkamioka has quit [Remote host closed the connection]
<RubyPanther>
drugs were for expanding the mind before we could control our screens :)
<platzhirsch>
"Always create more value than you consume" — Tim O'Reilly
<benzrf>
man timothy leary did that one bullshit 'you are not like them' quote
aspires has quit [Remote host closed the connection]
drumusician has quit [Remote host closed the connection]
aspires has joined #ruby
drumusician has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
<platzhirsch>
Since everything is a remix he will have had a derivative of this quote, but I don't know who said something similar, but it is very important to me, because it boils down to consumerism
yfeldblum has joined #ruby
<Paradox>
remix
<RubyPanther>
if you're that far outside the box, you're going to have inconsistent results. That's not bad.
<platzhirsch>
what
<platzhirsch>
err, I mean: que?
tvw has quit []
<RubyPanther>
People said Ada Hopper was crazy for thinking that programming languages could be designed such that regular smart people could understand them, and not just math people
nateberkopec has quit [Quit: Leaving...]
<benzrf>
hopper?
george2 has joined #ruby
<benzrf>
ohcibi:
<benzrf>
*oh
<RubyPanther>
oops, sorry, name fail, Grace Hopper
kevind has quit [Quit: kevind]
<platzhirsch>
Ada Lovelace, well everything is a remix just got a new meaning, maybe the more simple one
<RubyPanther>
"What was your name again?" <--- me at the end of meetings
platz has joined #ruby
<platzhirsch>
I would respond with "You know who I am… Say my name"
<RubyPanther>
In Ruby I can foo.methods.sort - Object.new.methods as many times as I want and it never gets offended
ndrei has quit [Ping timeout: 251 seconds]
havenwood has joined #ruby
drumusician has quit [Ping timeout: 252 seconds]
aspires has quit [Remote host closed the connection]
<RubyPanther>
I know who you are, you're the very important person I was hoping to impress today.
<gauteh>
hi.. im trying to make a custom cellrenderer for gtk3
<benzrf>
gl
devinus has quit [Ping timeout: 245 seconds]
<benzrf>
^awesome pun
lucasallan has quit [Remote host closed the connection]
<gauteh>
if i've understood stuff correctly i need to make a gobject-property that matches the column and liststore im using
allaire has joined #ruby
<gauteh>
how can i add a property like that to my subclass of Gtk::CellRenderer?
<shevy>
should I use
<shevy>
array[-1] or array.last
thesheff17 has joined #ruby
<benzrf>
shevy: the last of those
bradleyprice has quit [Ping timeout: 245 seconds]
v0n has joined #ruby
<RubyPanther>
copyright AMC Entertainment Network LLC ?
DrShoggoth has quit [Quit: Leaving]
<benzrf>
RubyPanther: breaking bad
<platzhirsch>
benzrf: hihi
<benzrf>
its a fictional site
<platzhirsch>
omg it is real
<benzrf>
walter white is not a real human bean
phipes has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<RubyPanther>
Wow, I'm so glad I have no idea about this stuff lol
<benzrf>
ಠ_ಠ
<platzhirsch>
Dude
shadoi has quit [Quit: Leaving.]
<platzhirsch>
You don't joke about this stuff, that's like saying I have no idea who jesus is
<platzhirsch>
Don't take the Lord's name in vain
Jetchisel has joined #ruby
shadoi has joined #ruby
<platzhirsch>
(Secretly I envy you RubyPanther)
<RubyPanther>
lol, no joke, tv will pollute your mind. It will connect parts of your brain that you have no use to connect, in preference to the other things that choose to try to connect but that have less sensory input, like written words
<benzrf>
platzhirsch: dont expect anything sane or reasonable to come out of RubyPanther
<benzrf>
he does not even like haskell
<shevy>
who likes haskell anyway
<platzhirsch>
Well so far I agreed with you RubyPanther, but Haskell, really?
<platz>
"does not even", as if everyone does ;)
skyjumper has left #ruby [#ruby]
<platzhirsch>
What the heck
<shevy>
I misplaced my glasses and can't recall where I put it :(
<RubyPanther>
functional programming is a lie, as soon as you turn your head they're creating fake state and hiding it in a function
<benzrf>
platz: who does not like haskell
<benzrf>
it is sublime in its perfect beauty
<benzrf>
B)
<platzhirsch>
It's good that not everyone knows Haskell. It's still an a place of art to escape to
<benzrf>
it has perfect syntax anyway
<dorei>
what about LINQ? :p
<platzhirsch>
Haskell is programmung eutopia
<RubyPanther>
I do know COBOl, though
<benzrf>
platzhirsch: nobody spells that with an e
<dorei>
RubyPanther: u'll never be unemployed :D
asteros has joined #ruby
<platz>
platzhirsch: that's part of the why I'm studying it
fgo has joined #ruby
thams has quit [Quit: thams]
<platzhirsch>
benzrf: I don't mean utopia, eutopia has a different meaning
<dorei>
eutopia is the oposite of dystopia
<dorei>
at least in greek :p
<benzrf>
platzhirsch: wah?
<benzrf>
utopia vs eutopia
<benzrf>
?
<dorei>
benzrf: eu = good, dys = bad, u = not, topia = place
<platzhirsch>
platz: Who are you? Why are you mimicing me?
<RubyPanther>
dorei: my retirement plan is all based on the Y2K bug having been "fixed" in a way that will need to be fixed again at the End of Epoch ( Time.at(0x7fffffff) )
Xeago has joined #ruby
<platzhirsch>
Utopia: the place that cannot be and Eutopia: A good place, made by humans
m8 has quit [Quit: Sto andando via]
<benzrf>
:I
<platz>
platzhirsch: I've had this nick for a few years now
carif has joined #ruby
<platzhirsch>
You realize it's a prefix of mine? What is this, some kind of joke, next minute hirsch will enter the chat
nanoyak has quit [Quit: Computer has gone to sleep.]
<RubyPanther>
Thomas More himself disagreed, "Wherfore not Utopie, but rather rightely my name is Eutopie, a place of felicitie."
b00stfr3ak has quit [Ping timeout: 245 seconds]
hirsch_ has joined #ruby
hirsch__ has joined #ruby
<benzrf>
shit
hirsch__ has quit [Client Quit]
<RubyPanther>
So the impossibly perfect place is just a good place
<benzrf>
i was gonna do that
<platzhirsch>
RubyPanther: I don't quite get that
danshultz has joined #ruby
<hirsch_>
platz: muh
tt1187 has quit [Ping timeout: 260 seconds]
<platz>
at least you can get a ton of jobs with ruby. haskell, not so much
<platzhirsch>
Although I once responded in an email conservation to the sentence: "Our front-end is currently written in PHP " with "FRONTEND IN FUCKING WHAT?"
<Senjai>
Isn't it what allows you to do short circuit eval
<benzrf>
it means that it groups to the right
nateberkopec has quit [Quit: Leaving...]
<benzrf>
i.e.
<benzrf>
1 - 2 - 3
<benzrf>
that's left-associative
<benzrf>
because without parens it is equal to
<RubyPanther>
PHP is an ignorant slut, the one time I had to fix some PHP code, there were all these lines like preg_replace ... stop stop, just use protection
shevy has quit [Read error: Connection reset by peer]
<platz>
they're still hard to reason about sometimes. yeah I'm still learning
<benzrf>
they are neat as shit
<platzhirsch>
benzrf: ah I have heard of them, but unfortunately I am not so much into Haskell
<benzrf>
so lame
<platzhirsch>
So far it's my plan for 2014, either this or NodeJS
<benzrf>
do you grok monads
<benzrf>
dont do nodejs
pragmatism has left #ruby [#ruby]
<benzrf>
js is a crappy language for losers!!
<platzhirsch>
but concurrency!
<benzrf>
nodejs does not even do concurrency
<benzrf>
it does async
<benzrf>
i think
<benzrf>
and that in itself is dumb
<platzhirsch>
This should include concurrency
<benzrf>
the entire reactor can get held up i hear
<Senjai>
node claims non blocking IO, when IO by definition is blocking
<benzrf>
if you accidentally do a blocking call
<centrx>
It has concurrency by starting a new process, just like every other language on a multi-tasking OS
samsonasu has quit [Quit: samsonasu]
xcv has joined #ruby
<RubyPanther>
Only Pythagoras and Leibniz grok monads
<platz>
platzhirsch: what is your 'native' language if not ruby ?
<platzhirsch>
Still have Real World Haskell sitting in my shelf, but when I start I will begin with Learning you a Haskell for a greater good again
<centrx>
The idea is that the footprint of one process is so small, that you can spawn processes to do everything
<platzhirsch>
platz: I grew up with Java in my study
<benzrf>
platzhirsch: monads are not so hard
<platzhirsch>
Monads are ADTs
<platz>
java 8 is pretty good i think
<benzrf>
no they are not
<benzrf>
monads are a kind of algebraic structure
<benzrf>
ish
shevy has joined #ruby
<platzhirsch>
Don't monads have a state that is controlled through certain operations?
<benzrf>
they are just functors where the mapped functions can contribute to the structure
<benzrf>
that is all
Jdubs has quit [Remote host closed the connection]
davy_ has quit [Remote host closed the connection]
<platzhirsch>
sounds like an ADT
<platz>
benzrf: monads defy a concise definition. it takes a lot of examples to gain an intutition for what they are and why they're even useful
thams has quit [Quit: thams]
Megtastique has joined #ruby
shevy has quit [Remote host closed the connection]
<benzrf>
yeah
shevy has joined #ruby
<benzrf>
sadly
sambao21 has quit [Quit: Computer has gone to sleep.]
<platzhirsch>
no seriously, I am not afraid of Monads, in fact Monads are a concept why I stir to learn more Haskell, because it's very orthogonal to other concepts in common programming languages
<benzrf>
platzhirsch: do you grok functors
pietr0 has quit [Quit: pietr0]
marr has quit [Ping timeout: 245 seconds]
<shevy>
what is a functor
<centrx>
I was attacked by a monad once
<shevy>
lol
mojjojo has joined #ruby
thams has joined #ruby
<benzrf>
shevy: a functor is a type f plus a function called fmap of type '(a -> b) -> f a -> f b'
<platzhirsch>
centrx: now i imagined a monad as one of these hounds from Half Life
<shevy>
oh man
<benzrf>
shevy: for example the type list plus map is a functor
vlad_starkov has joined #ruby
<Xuisce>
shevy: hey
<platzhirsch>
In Ruby you cannot even pass around function objects
vlad_starkov has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
<benzrf>
so lame
<Senjai>
platzhirsch: Your kidding right?
<Senjai>
you can pass functions around
<platzhirsch>
Senjai: like what
pskosinski has joined #ruby
<Senjai>
in a lambda, or via send, or method
<platzhirsch>
mh, Proc, that's right
peterhu has quit [Quit: kernel update]
gauteh has quit [Ping timeout: 260 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<platzhirsch>
I only thought about symbols and well, they are only representing the method
yfeldblum has quit [Remote host closed the connection]
ghanima has quit [Ping timeout: 248 seconds]
* platzhirsch
whips himself
robustus has quit [Ping timeout: 252 seconds]
rickruby has joined #ruby
yfeldblum has joined #ruby
Es0teric has joined #ruby
hirsch_ has quit [Quit: Page closed]
<shevy>
Xuisce hi
<shevy>
it's soon bedtime here
robustus has joined #ruby
<Xuisce>
shevy: I'm learning ruby
i_s has quit [Remote host closed the connection]
<shevy>
GOOD
nomenkun has joined #ruby
<Xuisce>
I'll upload the project to GitHub
xcv has quit [Remote host closed the connection]
<cub1c_>
win 2
<Xuisce>
Lol I'm still new xd
peterhu has joined #ruby
<platzhirsch>
and we already love you
<shevy>
to rubygems.org
nomenkun has quit [Client Quit]
<Xuisce>
:)
<shevy>
benzrf already has his first gem there
<Xuisce>
I'm loved :F
cub1c_ has quit [Quit: leaving]
<shevy>
Xuisce ignore platzhirsch, he is horny
<benzrf>
hello Xuisce
<Xuisce>
Heh
<Xuisce>
Hi there benzrf
<benzrf>
you should get my gem
<Xuisce>
:)
<benzrf>
it is nifty
<Xuisce>
I will
<platzhirsch>
shevy: Your laudatio was better than any viagra
<benzrf>
but also just begging to be exploited by malicious people
<benzrf>
so don't, like, use it in a public-facing program
maletor has quit [Read error: Connection reset by peer]
<diegoviola>
i don't know why everyone talks otherwise
<diegoviola>
what do you think
<diegoviola>
i mean that list
nobitanobi has quit [Ping timeout: 240 seconds]
dx7 has joined #ruby
<RubyPanther>
I was in a cult based on that
<benzrf>
lol
<diegoviola>
really, tell me about it
<RubyPanther>
It isn't actually "Satanic" in the normal meaning of the word, eg, they don't generally believe in the God of Abraham
ghanima has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<RubyPanther>
It is just a rejection of traditional top-down religion, and offers an individualistic, libertarian sort of system with a bunch of rituals added
Casslon has joined #ruby
Xeago has quit [Remote host closed the connection]
yarou has quit [Remote host closed the connection]
Xeago has joined #ruby
<diegoviola>
i see..
phipes has joined #ruby
<RubyPanther>
the satan talk is just because the target audience is mostly disgruntled youths raised as Christians
<diegoviola>
lol
<centrx>
So if you rename Jesus "Satan", they will come flocking?
veinofstars has quit [Remote host closed the connection]
veinofstars has joined #ruby
maletor_ has quit [Read error: Connection reset by peer]
maletor has joined #ruby
<Casslon>
This is not the Ruby channel is it? Sorry if I bother
Xeago has quit [Ping timeout: 245 seconds]
phipes has quit [Ping timeout: 245 seconds]
maletor has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
<benzrf>
Casslon: of course it is! :)
platz has left #ruby [#ruby]
maletor has joined #ruby
<Casslon>
ok
<diegoviola>
i'm not going to let the dark side get me
pixelgremlins has joined #ruby
<RubyPanther>
centrx: They don't flock, they just wander in and hang out until they work through their anger issues, then they get a life
pixelgremlins_ba has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
rh1n0 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<RubyPanther>
Casslon: It is Friday, I guess everybody got their work done on time this week lol
rickruby has quit [Remote host closed the connection]
<RubyPanther>
Or, they're waiting for the Last Minute to arrive so they can freak out and ask us to write it for them
maletor has quit [Client Quit]
thams has quit [Quit: thams]
<Casslon>
j4t3kpo4kiegr
yfeldblum has joined #ruby
robbyoconnor has joined #ruby
jwhorto1 has joined #ruby
<jwhorto1>
Hi, if there is someone very faimiliar with rails and havascript, and has 45 minutes, I would like to Skype/phone with them. I will pay graciously ($100 base + bonus) please message me for details
thams has joined #ruby
Megtastique has quit []
<platzhirsch>
jwhorto1: You really should make it sound less like you are trying to scam people
shadoi has quit [Quit: Leaving.]
<jwhorto1>
Idk how haha
<platzhirsch>
What is so urgent that you want to throw your American Dollars at someone
Dude007 has joined #ruby
<RubyPanther>
Yeah, usually that sort of job pays in AUD or CAD
<gizmore>
class def to_value and def self.to_value is shadowing?
<jwhorto1>
USD..
<jwhorto1>
just to skype/phone for 45 minutes
<jwhorto1>
I can ay paypal or btc
<jwhorto1>
upfront
<RubyPanther>
btc lol
pixelgremlins_ba has joined #ruby
<RubyPanther>
jwhorto1: I'll do it if you pre-pay in person with a money order
lukec has quit [Quit: lukec]
<jwhorto1>
paypal?
yasushi has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
pixelgremlins has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
mojjojo has quit [Quit: mojjojo]
chrisseaton has quit []
<RubyPanther>
so the scoop from PM is that it is industrial espionage and he's trying to fake past a phone interview to get into the offices of climate.org
shadoi has joined #ruby
<jwhorto1>
more or less
<jwhorto1>
Im not trying to be shady here :/
<platzhirsch>
ah ok, yeah that makes sense
<RubyPanther>
His IP is in the US, I'
<jwhorto1>
I own a web based irrigation controller company
<platzhirsch>
I wondered what climate.org is so much for a software developer anyway
<jwhorto1>
they have climate data services
<RubyPanther>
I'm thinking the FBI can probably decide better than I can if it is "shady"
<jwhorto1>
I am trying to work some kind of partnership
<jwhorto1>
they are not interested, but I feel I could talk them into it in person
<platzhirsch>
I am sure they will get pretty mad ^^
<jwhorto1>
well
timonv has quit [Remote host closed the connection]
<jwhorto1>
I am not that bad with rails and ruby
<RubyPanther>
You know what, if somebody faked their way into my office like that, I would probably handcuff them to the chair before calling the cops
<jwhorto1>
I am just uncomfortable
<jwhorto1>
high anxiety
<jwhorto1>
and I feel like I'll forget somethign basic
<jwhorto1>
and screw it all to hell
<benzrf>
ttyl later
benzrf has left #ruby [#ruby]
<jwhorto1>
:/
<platzhirsch>
I have looked at the staff and those people look like they will pour whiskey over you and ignite you
<jwhorto1>
Im really just looking for help in an interview due to anxiety
<jwhorto1>
but i understand all hesitation
<platzhirsch>
So why not just show up at their office without the on-site interview
mr_red has quit [Quit: Bye :)]
<jwhorto1>
I live in az, they are ca
<jwhorto1>
thanks guys, I understand this all seemed/IS sketchy
burlyscudd has joined #ruby
<jwhorto1>
and shady
<jwhorto1>
I just have high social anxiety..
<jwhorto1>
the offer is still up
<jwhorto1>
but the call has started
<platzhirsch>
:o
<platzhirsch>
good luck?!
<jwhorto1>
im sorry for trying to do that
<jwhorto1>
thank you, in all honesty..
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
_maes_ has joined #ruby
timonv has joined #ruby
timonv has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 245 seconds]
yarou has joined #ruby
timonv has joined #ruby
Megtastique has joined #ruby
sailias has quit [Ping timeout: 248 seconds]
<jwhorto1>
it was climate.com *** btw
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
phipes has joined #ruby
<gizmore>
is there a rubysome way to write: "if argc.between 0..1?" ?
<platzhirsch>
ohhh
<platzhirsch>
yeah that looks more like it jwhorto1 ;)
<jwhorto1>
haha..
<platzhirsch>
They won't pour Whiskey over you. Well if you really have a problem, I think you can talk to the recruiters about this particular issue
zachallett has joined #ruby
<RubyPanther>
.org .com same thing right?
timonv has quit [Ping timeout: 240 seconds]
<platzhirsch>
no
<jwhorto1>
no
Voodoofish430 has quit [Quit: Leaving.]
zachallett has quit [Remote host closed the connection]
<Casslon>
Join #Python
Hobogrammer has joined #ruby
mlpinit has joined #ruby
Evenix has joined #ruby
troyready has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
george2 has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
alvaro_o has quit [Quit: Ex-Chat]
reset has quit [Ping timeout: 252 seconds]
phipes has quit [Remote host closed the connection]
tkuchiki has joined #ruby
lfox has joined #ruby
Evenix has quit [Remote host closed the connection]
Evenix has joined #ruby
dorei has quit []
geggam has quit [Remote host closed the connection]
krisbulman is now known as [krisbulman]
Evenix has quit [Ping timeout: 245 seconds]
asteros has joined #ruby
hamakn has joined #ruby
zeade has joined #ruby
hobodave has joined #ruby
v0n has quit [Read error: Operation timed out]
kingrs02 has quit [Quit: kingrs02]
tylersmith has quit [Remote host closed the connection]
Jdubs has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
RoxasShadowRS has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 260 seconds]
samsonasu has joined #ruby
Jdubs has joined #ruby
Amart41 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<jwhorto1>
well
<jwhorto1>
glad I didn pay anyone
<jwhorto1>
anxiety just gets the best of me sometimes
<jwhorto1>
sorry for flaunting that super sketchy offer to you guys
<jwhorto1>
RubyPanther and platzhirsch
<jwhorto1>
the Q's were simple
<jwhorto1>
and SQL based really
<platzhirsch>
cool
Azure has quit [Read error: Connection reset by peer]
<platzhirsch>
glad to hear :)
aspires has quit []
<jwhorto1>
they just wanted to know my own ruby experience, and it satisfied them
<RubyPanther>
lol I already mailed them a log
<jwhorto1>
then they threw me a simple Q
Azure has joined #ruby
<platzhirsch>
\o/
<jwhorto1>
and I nailed it
Amart41 has quit [Ping timeout: 245 seconds]
<jwhorto1>
thanks RubyPanther :((
<jwhorto1>
had i not asked and you did that, I think the offer was mine...
<jwhorto1>
my fault though
mercwithamouth has quit [Ping timeout: 265 seconds]
<RubyPanther>
this is freenode not efnet
<jwhorto1>
I understand
<jwhorto1>
I made an idiotic mistake
<jwhorto1>
and ill pay the just consequences
<agent_white>
jwhorto1: Relax a bit! If don't know an answer, say it straight: "I don't know, but I can find out."
<jwhorto1>
thanks agent
<platzhirsch>
Well, this went unlucky, but let's see, maybe they'll understand, after all the spoke to you
[krisbulman] is now known as krisbulman
<jwhorto1>
The call is over-- I nailed all the Qs without help. but I made the mistake of asking others and paying for walkthroughs
<jwhorto1>
theyre an organization I believe in, and I just wanted really bad to make it to the next step
b00stfr3ak has quit [Ping timeout: 252 seconds]
<jwhorto1>
I was idiotic in trying to cheat the system though
<jwhorto1>
ugh
<agent_white>
Well, if you want to get laid... generally it's not a good idea to find a hooker.
<jwhorto1>
I just have extreme social anxiety, so the darker part of me thought this was a good idea
<CourtJesterG>
i hear the news is full of them for superbowel
<jwhorto1>
hahahah agent
Jdubs has quit [Remote host closed the connection]
<jwhorto1>
thats actually well put insight
<jwhorto1>
I wont make the mistake again
Megtastique has quit []
<platzhirsch>
jwhorto1: Wait for their follow-up email and then you can still explain yourself
<jwhorto1>
I need to learn to stop second guessing my abilties
<agent_white>
Might help you a bit with interviews. :)
<jwhorto1>
I actually do appreciate the declination of help guys, especially RubyPanther and platzhirsch
<lethjakman>
hrm...I'm missing iseq.h on osx. anyone know how to get that library?
<jwhorto1>
thanks agent, im watching it now
<lethjakman>
I'm using rbenv if that helps at all
yfeldblum has quit [Remote host closed the connection]
yasushi has joined #ruby
<RubyPanther>
The part that was really awkward for me, since I have social anxiety, was emailing climate.org and then having to email them again a "nm sorry" letter
dkamioka has joined #ruby
<jwhorto1>
have you tried RVM instead lethjakman?
<jwhorto1>
nm sorry?
yasushi has quit [Remote host closed the connection]
<platzhirsch>
jwhorto1: well, let us know how it went
<platzhirsch>
I am off to bed, ciao
cescalante is now known as ce_afk
<agent_white>
gnight!
<RubyPanther>
"I ran into this issue as well. It seems that Mavericks default headers for ruby 2.0 are out of place. By reinstalling my own version of 2.0.0 through rbenv it worked OOB"
burlyscudd has joined #ruby
krz has joined #ruby
zachallett has joined #ruby
<jwhorto1>
gnight, and thanks platz
burlyscudd1 has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
george2 has joined #ruby
<jwhorto1>
a differnet installation of ruby should work too, either manual or rvm lethjakman
<jwhorto1>
what do you mean by the "nm" thing RubyPanther
<platzhirsch>
nm = nevermind
cashnguns has joined #ruby
lukec has joined #ruby
em2local1 has joined #ruby
nfk has quit [Quit: yawn]
burlyscudd1 has quit [Ping timeout: 245 seconds]
lethjakman has quit [Ping timeout: 245 seconds]
<jwhorto1>
you retracted your email RubyPanther?
<RubyPanther>
jwhorto1: lol you're still not straight on the .com/.org
<platzhirsch>
no, as I understood it, he first emailed climate.ORG, then noticed .COM is the real one, so retracted the one to .ORG
<jwhorto1>
oh, I see what you mean, you sent a log to .org
<jwhorto1>
still feel like crap :(
* RubyPanther
hugs jwhorto1, "I'm sure it will all work out."
caustic has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Dude007 has quit [Remote host closed the connection]
<jwhorto1>
thanks RubyPanther
zachallett has quit [Remote host closed the connection]
<platzhirsch>
jwhorto1: do they name your nickname?
<platzhirsch>
s/name/know
Dude007 has joined #ruby
<jwhorto1>
yes
<platzhirsch>
:|
kewubenduben has joined #ruby
<jwhorto1>
If it comes up, I'll apologize to them as well. I'll send a log too, showing I didn't receive help., and hope they understand it was born from anxiety
<jwhorto1>
If not, it's my fault, I'll bear it hard, as I truly like their org
lukec has quit [Quit: lukec]
<platzhirsch>
You can still apply at climate.org
shadoi has quit [Quit: Leaving.]
em2local1 has left #ruby [#ruby]
tkuchiki has quit [Remote host closed the connection]
<RubyPanther>
Well, it is a good play to stay and pretend you were just nervous, it establishes doubt in the full log
Jdubs has quit [Remote host closed the connection]
gja has joined #ruby
Txandy|away is now known as Txandy
veinofst` has joined #ruby
<agent_white>
I still can't tell if this a giant troll, or wat.
veinofstars has quit [Read error: Operation timed out]
<platzhirsch>
agent_white: I don't think so
<lagweezle>
What I miss?
bogeyd6 has joined #ruby
<RubyPanther>
well, if nobody shows up at their office to make the pitch, then a little time wasted is all. OTOH, if it is really what it claims to be, some sort of industrial espionage, then it is worth that risk to prevent it
vlad_starkov has quit [Read error: Connection reset by peer]
<jwhorto1>
No play here. But I don't disagree with RubyPanther in what he did... It's the moral thing to do
<agent_white>
platzhirsch: Ohhh...
tkuchiki has joined #ruby
<jwhorto1>
Unfortunately I am on the wrong side of the situation
<agent_white>
SOMEONE I CAN PAY YOU DOGECOIN TO TAKE DOWN THE NSA FOR ME?!
<jwhorto1>
lol
platzhirsch has left #ruby [#ruby]
<jwhorto1>
RubyPanther: can you report that?
g0bl1n has joined #ruby
platzhirsch has joined #ruby
<agent_white>
jwhorto1: It doesn't sound like there's a 'good side' to the situation?
<g0bl1n>
OT: I need some help to figure out what some kanji characters mean. Anyone from Japan here ?
<g0bl1n>
OT: 山周
<jwhorto1>
^ the end of my chances
<agent_white>
the first letter is a 3, you just need to turn it the right way.
<g0bl1n>
:)
lukec has joined #ruby
<jwhorto1>
wtb life rebase
<platzhirsch>
lol PETA, they want to free you Panther
<RubyPanther>
yeah, free me to the mountains to starve naturally lol
george2 has quit [Ping timeout: 245 seconds]
<RubyPanther>
I'd get eaten by panthers
<platzhirsch>
RubyPanther: You have to write climate.com an email with 'just kidding, I just hate jwhorto1 and tried to sabotage the interview'
<platzhirsch>
oh man, climate.com will come and let the feds shutdown this channel
<platzhirsch>
it's all over now
* lagweezle
utterly fails to make sense of the conversation(s) after reviewing four or so pages of history.
<agent_white>
I'm still waiting on someone to take me up on the dogecoin for NSA takedown.
<RubyPanther>
lagweezle: that's why I posted the gist
<lagweezle>
g0bl1n: The first character is 'mountain' roughly. That looks more like Chinese, as it is missing the usual characters used in Japanese, unless it is just a name of something.
<RubyPanther>
just for context
<lagweezle>
RubyPanther: ooh! thankee
<platzhirsch>
ok then, crazy thing.. don't overdo it
platzhirsch has left #ruby [#ruby]
<lagweezle>
g0bl1n: Google translate claims that translates to "Hill Week" which I suppose could make sense...
<g0bl1n>
lagweezle, yes, I could identify Mountain and Circunference/Lap/Circuit :)
Casslon has quit [Quit: Page closed]
<lagweezle>
g0bl1n: Any context on where this is from?
<g0bl1n>
lagweezle, indeed. Its from a quiz
<jwhorto1>
for sha in `git log --pretty=format:%H --author=jwhorto1 --since=2.hours`; do
<jwhorto1>
git revert --no-edit $sha
<jwhorto1>
done
rx has quit [Excess Flood]
<jwhorto1>
damn it, I thought that'd work
<lagweezle>
g0bl1n: Heh. Not much context. ^^
<lagweezle>
g0bl1n: Checking if a friend of mine is online.
xcv has joined #ruby
<g0bl1n>
:)
<g0bl1n>
lagweezle, the third symbol is KOK (meaning Head in an ancient dialect)
* agent_white
giggles
<g0bl1n>
lol
<g0bl1n>
hacking quiz :) Those where in a STL file
sailias has joined #ruby
<RubyPanther>
china "hill week head" About 2,130 results
<jwhorto1>
git fetch origin
<jwhorto1>
git reset --hard origin/master
<jwhorto1>
ugh nothing works
<g0bl1n>
RubyPanther, and nothing made sense, for the "hacking" quiz... :(
<g0bl1n>
jwhorto1, this tech conference, we get quizes. This started with a file, that we could transform in an STL file, at it gave us the image above :)
<g0bl1n>
ABCO is the UTF code for the KOK symbok in Meetei Mayek language. These guys are crazy on quizes :D
senayar has quit [Ping timeout: 264 seconds]
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<jwhorto1>
I'm trying
allaire has quit []
tyl has joined #ruby
<g0bl1n>
:)
<g0bl1n>
Yamashu is the translation from Japanese...
cbetta_afk is now known as cbetta
<jwhorto1>
so
<jwhorto1>
you're trying to find the language
<jwhorto1>
or translation
asteros has quit [Quit: asteros]
<g0bl1n>
in Kanji, the individual characters mean Mountain and Circunference/lap/circuit. Then there's the KOK :)
<RubyPanther>
I just got a thank you email from a company VP
<RubyPanther>
g0bl1n: lap not week?
tkuchiki has quit [Remote host closed the connection]
<g0bl1n>
yes
<jwhorto1>
in jap it means
<jwhorto1>
Hill week together
aspires has joined #ruby
asteros has joined #ruby
b00stfr31k has joined #ruby
b00stfr31k has quit [Client Quit]
Flashmasterson1 has joined #ruby
Flashmasterson1 has left #ruby [#ruby]
<RubyPanther>
google is saying it can be week or circumferential when used alone
asteros has quit [Client Quit]
robbyoconnor has quit [Quit: Konversation terminated!]
<jwhorto1>
first part is deff jap for hill week--- second part is definately head
chomskiii has quit [Read error: Connection reset by peer]
chomskiii has joined #ruby
<RubyPanther>
I can't find this KOK in any of the charts
burlyscudd has joined #ruby
lfox has quit [Quit: ZZZzzz…]
<g0bl1n>
yes :)
<jwhorto1>
in sorry i meant chinese
<jwhorto1>
where did you get the image from g0bl1n
ckinni has joined #ruby
<g0bl1n>
jwhorto1, its from a quiz, its a STL file
senayar_ has quit [Remote host closed the connection]
<RubyPanther>
I'm leaning towards, "your head is as big around as a mountain"
<g0bl1n>
opened it with MeshLab (linux)
burlyscudd has quit [Ping timeout: 272 seconds]
<jwhorto1>
it was given to you as is?
kenneth has quit [Quit: kenneth]
<g0bl1n>
now google translated 周 to Zhou (jap to en)
cbetta is now known as cbetta_afk
yasushi has joined #ruby
browndawg has joined #ruby
ghanima has quit [Ping timeout: 252 seconds]
<jwhorto1>
g0bl1n: you dont have any additional information? what language, image origination (from a site?),
<RubyPanther>
It probably means a circular linked list
griffindy has quit [Quit: Computer has gone to sleep.]
snath has quit [Ping timeout: 272 seconds]
<g0bl1n>
oohhhh
<g0bl1n>
jwhorto1, no, that only file was given to us :)
fgo has quit [Remote host closed the connection]
sethen has quit [Remote host closed the connection]
<g0bl1n>
circular linked list... would fit on a hacking contest
speakingcode has joined #ruby
<lagweezle>
Japanese, please, not 'jap'. :/
yasushi has quit [Ping timeout: 272 seconds]
<lagweezle>
Unless you also use spic, gook, etc. :/
<g0bl1n>
ok, sorry :)
<RubyPanther>
I say "Brit"
<RubyPanther>
my Japanese friend says "Nip"
<jwhorto1>
lol sorry, just abbr
<jwhorto1>
for language, not individ :(
<jwhorto1>
g0bl1n: can it be a mix of languages?
<lagweezle>
HmHmm. Is 'Brit' offensive? O.o
<jwhorto1>
no
<RubyPanther>
No, but if you call somebody Britbrit you might get slapped
<jwhorto1>
lol
<lagweezle>
Deservedly so, I would think. ^^
rootshift has joined #ruby
krz has quit [Read error: Connection reset by peer]
<lagweezle>
Ugh. I think I need to deploy an IRC server somewhere to test against.
krz has joined #ruby
vlad_starkov has joined #ruby
standyro2 has quit [Ping timeout: 248 seconds]
radic has quit [Ping timeout: 252 seconds]
lukec has quit [Quit: lukec]
gja has quit [Quit: This computer has gone to sleep]
Dude007 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
gja has joined #ruby
radic has joined #ruby
Dude007 has quit [Ping timeout: 265 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
Davey has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
Davey has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
krz has quit [Quit: WeeChat 0.4.2]
xcv has quit [Remote host closed the connection]
zxq9 has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<g0bl1n>
jwhorto1, yes, I assumed it as nil
tonni_ has joined #ruby
tonni has quit [Read error: Connection reset by peer]
xcv has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby
lukec has joined #ruby
nari has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
Davey has joined #ruby
zipper has left #ruby [#ruby]
ixti has quit [Ping timeout: 272 seconds]
fieldfirst has joined #ruby
Dude007 has joined #ruby
lagweezle is now known as mustela
mustela is now known as lagweezle
<jwhorto1>
g0bl1n: so it's from beggining to end in a sense (the left and right of the square) and the top and bottom is just the language name. inside is just the first lettter. The second letter is chinese meaning either: week, periphery, circumference, circuit, cycle, zhou dynasy, attentive, thoughtful, all, whole, all-around, circuit, help out, or all over
<jwhorto1>
g0bl1n: I'm not convinced the first letter is 山
Wolland has joined #ruby
burlyscudd has joined #ruby
w4pm has quit [Ping timeout: 265 seconds]
<jwhorto1>
g0bl1n: if you upload the first letter individually, it is not found
Shidash has quit [Quit: Leaving.]
angusigu1ss has quit [Ping timeout: 240 seconds]
<g0bl1n>
google translate gives me "Mountain". From Japanese.
<g0bl1n>
Its Kanji
lethjakman has joined #ruby
<lagweezle>
What is the image link again?
sepp2k has quit [Read error: Connection reset by peer]
<jwhorto1>
g0bl1n: right but thats only if the first letter actually is 山, which I dont think it is
<jwhorto1>
and the second letter is is chinese meaning either: week, periphery, circumference, circuit, cycle, zhou dynasy, attentive, thoughtful, all, whole, all-around, circuit, help out, or all over
Dude007 has quit [Ping timeout: 248 seconds]
<lagweezle>
I wonder if it is less literal, and more of a ... "from beginning to end"
<jwhorto1>
that is my assumption
<lagweezle>
The two meetei mayak bits, that is
<jwhorto1>
and with "head" in the center
<jwhorto1>
deep
<jwhorto1>
but the botttom transcription
<jwhorto1>
idk what the "s" is
<jwhorto1>
and idk what the first letter of the whole thing is
agent_white has quit [Quit: leaving]
<jwhorto1>
god damn it g0bl1n you have me stuck wanting to solve this puzzle so bad
agent_white has joined #ruby
dseitz has joined #ruby
<g0bl1n>
LOL !!!
<lagweezle>
I get that thought from a teacher who is fluent in hebrew and her comment on the name of God being literally one thing, but also intentionally is the first and last letters of the alphabet, signifying that god is, well, translated to English, "everything, from A to Z."
<jwhorto1>
On the bottom of the enclosing rectangle, what looks like an "s" I believe is the numeral 4 or 1 in Meetei Mayek, and the line is "joining" or underline: http://www.omniglot.com/writing/manipuri.htm
<jwhorto1>
So the final character is something along the lines of: For(4) joining the mind(head) beginning(abc0) to end(abff).
<jwhorto1>
Or One(1) head(mind?) joining the beginning(abc0) to the end (abff).
<jwhorto1>
I am STILL not convinced that we know the firs character
<jwhorto1>
And the second means something from here (many translations to the bottom right-- but its meaning likely depends on the first character) http://translate.google.com/#auto/en/%E5%91%A8
fgo has quit [Ping timeout: 248 seconds]
<jwhorto1>
I am literally obsessed with finding the answer to this
<pontiki>
i don't think i've ever waited that long
<pontiki>
but still
vlad_starkov has joined #ruby
<nycjv321>
I'm rebuilding with --no-rdoc
* pontiki
nods
<agent_white>
Haha, the post below that one I found was "nokogiri install times insanely long"
<pontiki>
i put it in my ~/.gemrc
<nycjv321>
So "Successfully installed nokogiri-1.6.1" means the libs have been built and the .gem is there?
<agent_white>
If nothing blew up, maybe! :D
<nycjv321>
lol
meatherly has quit [Remote host closed the connection]
<nycjv321>
I think it blew up.
<agent_white>
:/.... :D
<pontiki>
once you see that, it's installed
<pontiki>
the rest is doc processing
meatherly has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<RubyPanther>
I just make sure ~/.gemrc has gem: --no-rdoc --no-ri
fieldfirst has quit [Ping timeout: 245 seconds]
<pontiki>
you may need to uninstall it first...
<jwhorto1>
does running "gem list" show it?
* lagweezle
sighs
<nycjv321>
I've ran gem uninstall nokogiri
<nycjv321>
lagweezle: why the sigh?
<jwhorto1>
you should be using bundle
<jwhorto1>
are you not?
<pontiki>
not necessarily, jwhorto1
<nycjv321>
lol is that why lagweezle sighed?
<lagweezle>
Any of you know where to find descriptions of what the capistrano tasks are supposed to bbe doing? Like, a detailed description so you actually know the meaning?
<nycjv321>
I should* I guess.
<lagweezle>
Oh. Heh. No. Not why I sighed. ^^;
<nycjv321>
this is just simple ruby app.
<jwhorto1>
ok
<nycjv321>
lagweezle: phew! :)
<pontiki>
which version, lagweezle ?
Solnse has quit [Ping timeout: 252 seconds]
<jwhorto1>
and gem install nokogiri does what?
<lagweezle>
v3
<pontiki>
i'm finding figuring out the 3.x version really difficult
<havenwood>
山周
<lagweezle>
pontiki: v3. v2 has many but not all listed on the wiki.
<nycjv321>
jwhorto1: it freezes at
<pontiki>
and discovering that a lot of stuff is actually in SSHKit
mj12albert has joined #ruby
<nycjv321>
unable to convert "\xF8" to UTF-8 in conversion from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/x86_64-redhat-linux/ports/libxml2/2.8.0/libxml2-2.8.0/entities.c, skipping
<nycjv321>
but it seems to be installed but I get an error when I require it.
<pontiki>
what is the require error?
<lagweezle>
pontiki: I can't compare as I've never mucked with v2, but I am finding it frustrating.
<nycjv321>
"LoadError: no such file to load -- racc/parser.rb" -> /me goes to google
cbetta_afk is now known as cbetta
<pontiki>
also, nycjv321, if your project is actually using bundler, jwhorto1 is precisely right
<RubyPanther>
we're supposed to know the meaning of the methods we call, what?!
<nycjv321>
RubyPanther: lol! :)
<nycjv321>
RubyPanther: that would make things simple why?!?
<pontiki>
no, the objects receiving the message need to know what they mean
<RubyPanther>
before 'deploy:assets:precompile', 'deploy:symlink_shared' # I'd rather do this after deploy:update_code, but no
meatherly has quit [Ping timeout: 245 seconds]
<jwhorto1>
nycjv321: run gem uninstal nokogiri
<RubyPanther>
I consider it lucky just when my deploy script works, understanding it all is a lot to ask
<jwhorto1>
nycjv321: then run gem instal nokogiri --no-ri --no-rdoc
<jwhorto1>
nycjv321: then print the output here
fieldfirst has joined #ruby
<nycjv321>
jwhorto1: okay guys thanks for pointing out that it was just a doc generation error.
<pontiki>
no, paste the output and give us the link to it
<nycjv321>
I actually had a second error but that is becuase I needed require racc
<jwhorto1>
nycjv321: its working now?
wildroman2 has quit [Remote host closed the connection]
<nycjv321>
looks like a bug with nokogiri
<nycjv321>
jwhorto1: yep
aspires has quit []
jamto11 has joined #ruby
<jwhorto1>
nycjv321: good :D
<jwhorto1>
nycjv321: what was the error?
<lagweezle>
At this point, I'm giving up pretty much and reading the source code ... which is going to be frustrating.
<jwhorto1>
nycjv321: everyone inherits a writ cutting code bade :/
wildroman2 has quit [Remote host closed the connection]
<pontiki>
sounds like jwhorto1 has a cold in their fingers
<lagweezle>
SOB ... how do you regenerate RDoc for all installed gems? O.o
mlpinit has joined #ruby
mlpinit has quit [Remote host closed the connection]
<nycjv321>
lagweezle: gem rdoc --all --overwrite I think?
mlpinit has joined #ruby
<lagweezle>
pontiki: That bit about not trying hard enough if you haven't despised your code ... I've run across that multiple times. Pretty much, if you don't hate the code you wrote a month ago for how horrible, etc. it is, you aren't pushing yourself hard enough type of thing. I agree a great deal with the sentiment. :)
<agent_white>
^ And then go on vacation. Should be done after you are back.
agarie has quit [Ping timeout: 245 seconds]
<pontiki>
lagweezle: it's mostly a tease, but it also has some truth in it
<lagweezle>
agent_white: I've got a pretty sexy laptop. It doesn't take too long, from what I remember.
<nycjv321>
I usually just delete the code and rewrite it after revist it hahaha just kidding.
<RubyPanther>
Ruby source is supposed to be easy to read
<lagweezle>
hehehe
* nycjv321
says that while looking over 4 month old ruby code that he can actually understand read
<nycjv321>
understand/read*
<pontiki>
RubyPanther: supposed to be. there are people who can obfuscate *anything*
Wolland has joined #ruby
<lagweezle>
God ... that code I had to deal with while I was working at Yahoo! ...
<pontiki>
One of ruby's neat features, chaining, is despised by many for not being readable
fgo has joined #ruby
<lagweezle>
20-something global variables. a function named doit, then another named doit2
<RubyPanther>
The last straw before I switched from Perl to Ruby, I looked at code I'd written less than a year earlier, and I was like, "what was this idiot thinking, what does this code do?" I mean, I couldn't even recognize it as mine, much less understand it. That's when I checked and found out English Ruby books were being published
dkamioka has joined #ruby
<jwhorto1>
pontiki: aye
<pontiki>
and there's a huge diff between readable and comprehension. metaprogramming spoils a lot
<nycjv321>
If Perl adopted OO earlier... just saying :)
<agent_white>
pontiki: I thought chaining was despised due to LoD?
<RubyPanther>
Now I look at Ruby code I wrote 2,3,4 even 5 years ago... it is just bad, that is all. It is just ugly and wrong, but I can see what it does (with one exception)
<pontiki>
agent_white: that all depends on what and how you chain
<pontiki>
but there's nothing specific to chaining that violates LoD
lukec has quit [Quit: lukec]
mlpinit has quit [Ping timeout: 265 seconds]
<nycjv321>
Dude this is funny. I wrote (what I think) pretty clean code for this craigslist parser I wrote 4 months ago. The app and code makes sense. but all the css selectors I wrote are broken since the site structure on craigslist has changed
makara has joined #ruby
<agent_white>
pontiki: Ah I meant as in chaining 'non-concrete code'? Not sure how to term that... but I'm meaning code that's more prone to change than a stdlib class.
OdNairy has joined #ruby
wildroman2 has joined #ruby
m104 has joined #ruby
hl has joined #ruby
mikepack has joined #ruby
<nycjv321>
now that I know aout unit testing I will need to write some specs to better understand what is broken.
<RubyPanther>
I rarely get drunk enough to do math that strangely
<pontiki>
agent_white: hum, guess i don't know what you mean, then
<agent_white>
RubyPanther: You were pretty ruthless on #line7
<pontiki>
certainly can chain methdods for core and stdlib classes...
<pontiki>
ppl do it with String#gsub all the damn time
<RubyPanther>
I know like wtf, I love #inject but still
<lagweezle>
How cute ... it dies on io-console ... -.-
allaire has joined #ruby
allaire has quit [Client Quit]
<nycjv321>
looks like the intern they hired at craigslist to redsign the frontend knows a little more about webstandards then the previous guy
<agent_white>
pontiki: Oh it was a chapter from POODR on 'how to avoid LoD' via delegation. Like you, she said chaining wasn't bad (despite LoD's 'only immediate neighbors) when used on concrete-classes that weren't prone to change, like a standard-library of a language
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lagweezle>
At least it can find the capistrano docs now ...
wildroman2 has quit [Remote host closed the connection]
<pontiki>
agent_white: *any* technique can be misued
<nycjv321>
agent_white: well now my parser is broken :(
<pontiki>
i cut my programming teeth on lisp, and am prone to viewing most problems via a functional programming lense
* nycjv321
curses at that intern
<pontiki>
so i tend to go overboard sometimes with chaining
<nycjv321>
I am a little ashamed with my usage of xpath on this though lol :)
<RubyPanther>
I don't even like functional and I like chaining
* lagweezle
stares at line 7 and feels his brain melting.
<nycjv321>
I usually stay away from chaining not sure why...
bleak2 has joined #ruby
<pontiki>
but i most often do it to work down a problem and then refactor it
Tobarja has joined #ruby
<RubyPanther>
lagweezle: I know, right? I was trying to double-check my logic the next day, and I gave up and just tested with data, and the results were correct, so... I use it
noop has joined #ruby
bleak has quit [Ping timeout: 245 seconds]
fieldfirst has joined #ruby
gianlucadv has joined #ruby
<agent_white>
pontiki: Ahhhhh :) Yeah again, just something I read, but have yet to really experience. I'm just a sponge at the moment ;)
freezey has joined #ruby
<lagweezle>
RubyPanther: Whatever you were on ... Secure a good supply of it? Maybe?
bleak2 is now known as bleak
<pontiki>
just remember a sponge has to be squeezed out to remain useful
<RubyPanther>
it was just beer and weed, honest
<nycjv321>
pontiki: that was Mr. Miyagi'ish of you
<agent_white>
pontiki: Aye! I forget that quite a bit ;)
<pontiki>
wax on, wax off
devinus_ has joined #ruby
<RubyPanther>
yeah but then later he teaches the drum, and that keeps looping
<new>
im sending it directly to the company I am scraping with my info...applying for a job
claymore has quit [Quit: Leaving]
<pontiki>
and you've okayed this with them?
coder_neo has joined #ruby
<centrx>
agent_white, Endianness is usually in reference to processor architecture. Not sure it makes sense with Ruby arrays.
<new>
no but keeping it all behind a password wall
<pontiki>
good luck.
<pontiki>
again, not my axe to grind. you take your own risks.
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coder_neo has quit [Client Quit]
<agent_white>
centrx: Oh I was just using it as an example, but I figured out what they meant in the wiki :)
<new>
definitley, but I appreciate the heads up pontiki
<new>
thanks Radar
shevy has joined #ruby
<pontiki>
agent_white: endian refers to where you start counting bits in a computer word
<agent_white>
I'm needing to read bit flags from an ID3 byte, and they said it was in big endian notation. :)
bsdbandi1 has joined #ruby
ixti has joined #ruby
<pontiki>
agent_white: it has nothing at all to do with arrays
francisfish has joined #ruby
<agent_white>
pontiki: Wait what? I thought memory addresses are generally sequential for an array?
shredding has quit [Quit: shredding]
<agent_white>
As in if I declare an array [1,2,3], I -should- have those slots sequency in memory.
<pontiki>
forex, intel chips are little endian. the old mac 68000 were big endian, which resulted in lots of problems when trying to transfer data
<pontiki>
agent_white: yes, and if you specify [3,2,1] they will occur in that order in memory
<pontiki>
but it still is only memory references to objects, irrespective of the content of the object
<pontiki>
[:big, "eyed", 7] would have the same sequential ordering
<pontiki>
again, endianness deals with memory words
<agent_white>
Ah, well not irrespective right? As in if it's little endian, the item taking the smallest amount of memory in that array would be in the first memory slot
<pontiki>
and basically how bytes are stacked into that work
<pontiki>
nooooooooooo
<centrx>
That is not what "most significant byte" means
<centrx>
It is just ordering
<agent_white>
Ohhhh!@!!
<centrx>
123456789
<centrx>
Most significant digit is 1
<agent_white>
pontiki: Nvm, Big endian is MSB is the smallest address
fgo_ has quit [Remote host closed the connection]
<agent_white>
Because it has a value of 1000000, roger that.
fgo has joined #ruby
<agent_white>
So in big endian, it would be in the first slot in memory.
havenwood has quit [Ping timeout: 252 seconds]
JStoker has quit [Killed (hobana.freenode.net (Nickname regained by services))]
JStoker has joined #ruby
<agent_white>
I dunno why you would do little endian, I would assume you would want to begin computing the hardest number first? I'll leave that for another day...
<pontiki>
...
dachi_ has quit [Ping timeout: 252 seconds]
<agent_white>
Soz. I'm trying to write an ID3 parser and reading these tags are difficult.
<pontiki>
there is a *lot* (or at least used to be) culture wars about this, which is where the entire endian terminology stemmed from
<pontiki>
liberally stealing from jonathon swift
<pontiki>
and egg breakers
senayar has joined #ruby
<agent_white>
Oh no shit?
drumusician has quit [Ping timeout: 245 seconds]
centrx has quit [Quit: Leaving]
senayar has quit [Remote host closed the connection]
<agent_white>
Never read it! Or at least not yet! :P
<pontiki>
do read it. swift was the orignal epic satyricist
Cork has joined #ruby
pr00t has joined #ruby
senayar has joined #ruby
alex88 has joined #ruby
<pontiki>
lots of words in common (or somewhat common) use from gulliver's travels, in fact
dachi_ has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
tonni_ has joined #ruby
zz_anildigital is now known as anildigital
Notte has joined #ruby
Olipro has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
relix has joined #ruby
daxroc has quit [Ping timeout: 252 seconds]
shevy has joined #ruby
gittish has joined #ruby
Olipro has quit [Read error: Connection reset by peer]
flori has joined #ruby
* pontiki
falls off the net into bed
Amart41 has joined #ruby
theharshest_ has joined #ruby
[gmi] has joined #ruby
dideler_work has joined #ruby
fella5s has joined #ruby
philcrissman has joined #ruby
radic has joined #ruby
sputnik13 has joined #ruby
cbetta_afk has joined #ruby
tjad has joined #ruby
samsonasu has joined #ruby
vadviktor_ has joined #ruby
iaj has joined #ruby
Deele has joined #ruby
RSTJNII has joined #ruby
ikawnoclast has joined #ruby
mykeus has joined #ruby
torzech has joined #ruby
Wolland has joined #ruby
jso has joined #ruby
netf has joined #ruby
Guest44031 has joined #ruby
patrickv has joined #ruby
soulcake has joined #ruby
tonni has joined #ruby
thief_ has joined #ruby
DefV has joined #ruby
joonty has joined #ruby
Morrolan has joined #ruby
awkisopen has joined #ruby
timmow has joined #ruby
Caius has joined #ruby
tonni has quit [Read error: Connection reset by peer]
vadviktor_ has quit [Max SendQ exceeded]
<agent_white>
Bah... I'm nearly there as well. My brain hurts.
Pixi__ has joined #ruby
vadviktor has joined #ruby
tt1187 has joined #ruby
burlyscudd has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Xiti` has quit [Ping timeout: 252 seconds]
Amart41 has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Read error: Operation timed out]
RubyPanther has quit [Ping timeout: 252 seconds]
Notte has quit [Remote host closed the connection]
agarie has joined #ruby
phipes has quit [Remote host closed the connection]
agarie has quit [Ping timeout: 264 seconds]
mercwithamouth has joined #ruby
blackmes1 has joined #ruby
Txandy is now known as Txandy|away
ewnd9 has quit [Ping timeout: 272 seconds]
predator217 has quit [Ping timeout: 252 seconds]
predator117 has joined #ruby
drumusician has joined #ruby
daxroc has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
daxroc1 has joined #ruby
daxroc has quit [Read error: No route to host]
brennanMKE has joined #ruby
jackneill has quit [Ping timeout: 264 seconds]
RoryHughes has joined #ruby
Txandy|away is now known as Txandy
Krajsnick has joined #ruby
pskosinski has joined #ruby
bsdguru has quit [Quit: bsdguru]
bsdguru has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
nism has joined #ruby
jackneill has joined #ruby
browndawg has joined #ruby
Azure has quit [Read error: Connection reset by peer]
sbos99 has quit [Ping timeout: 245 seconds]
Azure has joined #ruby
havenwood has joined #ruby
shevy has quit [Ping timeout: 265 seconds]
kewubenduben has joined #ruby
samsonasu has quit [Quit: samsonasu]
agent_white has quit [Quit: goodnight all]
shevy has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
Guest44031 has quit [Quit: Leaving]
gasbakid has joined #ruby
shime has joined #ruby
RoxasShadowRS has joined #ruby
gauteh has joined #ruby
daxroc1 has quit [Ping timeout: 245 seconds]
amritanshu_RnD has joined #ruby
amritanshu_RnD is now known as Guest14784
gasbakid has quit [Ping timeout: 265 seconds]
max96at has joined #ruby
Olipro has joined #ruby
tyl has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
banister has joined #ruby
hmsimha has joined #ruby
poulson has joined #ruby
predator117 has quit [Ping timeout: 272 seconds]
predator117 has joined #ruby
sbos99 has joined #ruby
devinus_ has quit []
gja has joined #ruby
anildigital is now known as zz_anildigital
aharris6 has quit [Remote host closed the connection]
aharris6 has joined #ruby
m8 has joined #ruby
burlyscudd has joined #ruby
ewnd9 has joined #ruby
agarie has joined #ruby
abra has quit [Ping timeout: 240 seconds]
speakingcode has quit [Ping timeout: 245 seconds]
abra has joined #ruby
browndawg1 has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
gasbakid has joined #ruby
tejas has joined #ruby
tejas has quit [Changing host]
tejas has joined #ruby
agarie has quit [Ping timeout: 272 seconds]
browndawg has quit [Ping timeout: 252 seconds]
nism has quit [Ping timeout: 248 seconds]
gauteh has quit [Ping timeout: 245 seconds]
gja has quit [Ping timeout: 265 seconds]
AlexRussia_Away is now known as AlexRussia
vlad_starkov has joined #ruby
shime has quit [Ping timeout: 252 seconds]
noop has quit [Ping timeout: 245 seconds]
nism has joined #ruby
Jdubs has quit [Remote host closed the connection]
hybr1d has left #ruby [#ruby]
blackmes1 has quit [Ping timeout: 245 seconds]
zz_anildigital is now known as anildigital
nari has quit [Ping timeout: 264 seconds]
philcris_ has joined #ruby
anildigital is now known as zz_anildigital
timonv has joined #ruby
daxroc has joined #ruby
<apeiros>
somebody know whether (and how) I can do the equivalent of `lsof -i:$PORT`? that is, find the pid of the executable which is holding a port open?
philcris_ has quit [Ping timeout: 272 seconds]
daxroc has quit [Read error: No route to host]
daxroc has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
tejas has quit [Quit: This computer has gone to sleep]
pskosinski has quit [Remote host closed the connection]
CourtJesterG has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
pskosinski has joined #ruby
zz_anildigital is now known as anildigital
anildigital is now known as zz_anildigital
mojjojo has joined #ruby
brennanMKE has joined #ruby
zz_anildigital is now known as anildigital
sbos99 has quit [Quit: Leaving]
Krajsnick has quit [Remote host closed the connection]
khoury has joined #ruby
<khoury>
Hello
rootshift has joined #ruby
_bart has quit []
<khoury>
Does anyone know any good resource for learning how an ad server works?
<khoury>
Tutorials, book or anything?
brennanMKE has quit [Ping timeout: 245 seconds]
<jack_rabbit>
I'm pretty sure ad servers' infrastructure is too diverse.
<jack_rabbit>
for a comprehensive tutorial or book, that is.
<Hanmac1>
ad server? like in advertising?
Hanmac1 is now known as Hanmac
chrisseaton has joined #ruby
timonv has joined #ruby
kloeri is now known as kloeri|fosdem
jonasschneider has joined #ruby
x77686d has joined #ruby
phansch has joined #ruby
<apeiros>
khoury: request for ad comes in, server serves ad? :)
<khoury>
hehe... no shit!?
tejas has joined #ruby
anildigital is now known as zz_anildigital
roolo has joined #ruby
<waxjar>
you forgot the step where they squeeze all personal information out of the request and store it for later analysis :p
RedNifre has joined #ruby
mrfoto has joined #ruby
<khoury>
Hanmac1: yes, serving a website or other client
<Hanmac>
ad server does not work for me in my browser ;P
<khoury>
jack_rabbit: why would an ad server be so complicated to write a book on? There are books on pretty much everything we know about the universe, no? :p
havenwood has joined #ruby
<jack_rabbit>
khoury, because they rely heavily on infrastructure that is not concrete to be effective.
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
<khoury>
Well, come on, doesnt that also depend havily on the
<khoury>
I was thinking more like a beginners guide almost. Ad Servers for dummies
<jack_rabbit>
Sure. That doesn't aid any book being written.
<khoury>
Have you ever written an ad server?
x77686d has quit [Ping timeout: 272 seconds]
<jack_rabbit>
nope.
<jack_rabbit>
I've worked on the infrastructure behind ad-servers, though.
yfeldblum has quit [Ping timeout: 272 seconds]
daxroc has quit [Ping timeout: 240 seconds]
<khoury>
Yeah, well there you go. They can be complicated and less complicated. You can write books on complicated subjects, and you can write books on less comlicated subjects. As easy as that.
sski has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
<Hanmac>
"i am sorry, but advertising is not supported in your browser"
RoryHughes has quit []
<jack_rabbit>
I'm just saying, an ad server isn't anything but a regular web server without its backend
timonv has quit [Remote host closed the connection]
<Hanmac>
jack_rabbit: with nsa voodoo inside ;P
dangerousdave has joined #ruby
<jack_rabbit>
Hanmac, depending on where you work...
zz_anildigital is now known as anildigital
grzywacz has quit [Read error: Operation timed out]
RoryHughes has joined #ruby
zxq9 has quit [Quit: Konversation terminated!]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
DrewRWx has joined #ruby
* apeiros
fails to see how an ad-server is complicated
mailo has joined #ruby
<apeiros>
I can see how aspects of it can be complicated depending on how far up you want to scale
zxq9 has joined #ruby
<apeiros>
but the basic principle?
nism has quit [Remote host closed the connection]
shredding has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
agarie has joined #ruby
<jack_rabbit>
basic principle: deliver ads to customers
<AlexRussia>
who say 'ads'?
<bleak>
americans
<AlexRussia>
lol
<shevy>
greedy people
<AlexRussia>
shevy: Hi
<shevy>
die
<shevy>
I mean
<shevy>
hi
<AlexRussia>
shevy: no
<AlexRussia>
shevy: is impossible
<AlexRussia>
shevy: XD
<shevy>
I MISTYPED
<bleak>
death is certain
<shevy>
bleak not for cancer cells!
<AlexRussia>
bleak: ahah
sski has quit []
<apeiros>
bleak: only for you mere mortals, tsk…
<AlexRussia>
shevy: now i know, how to used post in sinatra with html form XD
<AlexRussia>
shevy: hey, markdown supported make forms?
<shevy>
hmm
<shevy>
no
<AlexRussia>
shevy: (
<bleak>
mere mortal :(
<shevy>
the whole point of markdown is to write elegant things that get some basic formatting
<AlexRussia>
y
<waxjar>
just require your users to type their post requests out in curl :D
<shevy>
!!!
eka has joined #ruby
<AlexRussia>
waxjar: ahahaha
anildigital is now known as zz_anildigital
<AlexRussia>
waxjar: how to? XD
agarie has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
<AlexRussia>
shevy: what you site me possible look?
rootshift has joined #ruby
<plotter>
i broke up with ruby for python again
<AlexRussia>
plotter: lol
<plotter>
i found myself one day inserting colons instead of do end statements
<plotter>
and said what the fuck am I Doing
<plotter>
and never looked back
<plotter>
the whitespace doesnt even bother me anymore i do it naturally from good coding practices
<shevy>
AlexRussia what site?
<AlexRussia>
shevy: look you pm
<shevy>
I don't quite get what you are trying to ask
forcefsck has joined #ruby
<AlexRussia>
shevy: i write in your pm.
asmodlol has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
<shevy>
You look at sites... ok ...
<shevy>
"what your sites i'm a possible look? with markdown"
<shevy>
yeah and I still dont understand it
<shevy>
you look at sites with markdown???
EsheckOctavia has joined #ruby
roolo has joined #ruby
mailo has quit [Ping timeout: 245 seconds]
EsheckOctavia has quit [Client Quit]
khoury has left #ruby [#ruby]
aryaching has joined #ruby
yfeldblum has joined #ruby
fantazo has joined #ruby
chrisseaton has quit []
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<AlexRussia>
shevy: no, you say, you dont used haml, i have look, how to you used markdown for make siteXD
zz_anildigital is now known as anildigital
browndawg1 has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
barratt has joined #ruby
Azure has quit [Read error: Connection reset by peer]
ewnd9 has quit [Remote host closed the connection]
<Hanmac>
prateekp: the source page cprogramming.com does it correct like <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> ...
<Hanmac>
prateekb: daqwest has shitty html ... it is broken, unfinish (nearly 50% that is needed is missing)
daxroc has quit [Ping timeout: 252 seconds]
<prateekp>
Hanmac : on daqwest, only main content of the website is displayed
burlyscudd has quit [Ping timeout: 240 seconds]
pixelgremlins has joined #ruby
spider-mario has quit [Remote host closed the connection]
<Hanmac>
prateekp: that is not the problem ... the problem is that all important html tags like <html> <head> <body> etc are missing in daqwest ... you should be happy that the browser did show it instead of throwing an exception
g0bl1n has joined #ruby
spider-mario has joined #ruby
<prateekp>
Hanmac : ok ... the main content should be enclosed in these tags
pixelgremlins_ba has quit [Ping timeout: 265 seconds]
SHyx0rmZ has joined #ruby
* Hanmac
will not teaching html beginner courses here
<shevy>
anyone of you has written some ruby code to rename titles of terminal/tabs ?
Noldorin has joined #ruby
DouweM has joined #ruby
yeboot has joined #ruby
<pontiki>
in shell...
arianit has joined #ruby
arianit has joined #ruby
arianit has quit [Changing host]
yfeldblum has joined #ruby
cbetta_afk is now known as cbetta
griffindy has joined #ruby
cbetta is now known as cbetta_afk
prateekp has quit [Ping timeout: 245 seconds]
<shevy>
:(
yfeldblum has quit [Ping timeout: 272 seconds]
angusigu1ss has joined #ruby
pedda has joined #ruby
Notte_ has joined #ruby
dkamioka has quit [Ping timeout: 245 seconds]
tyl has joined #ruby
Notte has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
nfk has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
misutowolf has joined #ruby
misutowolf has quit [Client Quit]
TMM has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
kaldrenon has joined #ruby
<pontiki>
still, should work
brennanMKE has joined #ruby
jamto11 has joined #ruby
<pontiki>
the magic string is "\033]0;HI THERE, SHEVY\007"
obfuscated has joined #ruby
ctp has joined #ruby
<pontiki>
0 is the window title, 1 would be first tab, etc, i think
zz_anildigital is now known as anildigital
mrfoto has quit []
kaldrenon has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
<shevy>
hmm
<pontiki>
or maybe just current tab
WillAmes has quit [Remote host closed the connection]
WillAmes has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
daxroc has joined #ruby
<AlexRussia>
how to look all commits for file(git)?
CourtJesterG has quit [Quit: Leaving...]
nari has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
<obfuscated>
Hi, I'm trying to improve the sample ruby code in the dialog for syntax highlight colour setup in the codeblocks, but I know nothing about ruby. Would someone familiar with the language be willing to post 10-20-30 lines of ruby code using almost all different elements available in ruby (operators, identifiers, regex, etc)?
otherj has quit []
<shevy>
got a question http://pastie.org/8688718 how do I call the method of the included module in a class method?
<pontiki>
AlexRussia: try git blame?
<AlexRussia>
pontiki: blame?
<pontiki>
AlexRussia: blame?
<pontiki>
seriously ask the question you want to ask
<AlexRussia>
pontiki: i have find every commits, ehere changed one file
<obfuscated>
mrfoo: yes, but I would appreciate someone familiar with the language to strip it from the repeating constructs
<shevy>
Hanmac hmm but I dont quite understand it
timonv has joined #ruby
anildigital is now known as zz_anildigital
SHyx0rmZ has joined #ruby
<obfuscated>
shevy: I can give you the path to the current version of the file and you can provide patch if you like
<pontiki>
shevy, you might want to try extend instead of include there
cbetta_afk is now known as cbetta
<Hanmac>
shevy: include: add to ancestor chain of instances ... extend: add to ancestor chain of singleton class (add class methods)
<AlexRussia>
pontiki: hey, is a simple git log <file>
<shevy>
obfuscated hmm no that is too much hassle, collaborative editing would be nice, that way I could contribute a little without having to commit too much time, and other people can contribute too etc... in an iterative manner
agarie has joined #ruby
angusigu1ss has joined #ruby
<shevy>
Hanmac hmm curious
Naoe-Kanno has quit [Ping timeout: 248 seconds]
<pontiki>
how much is it worth to you obfuscated ?
<shevy>
Hanmac I could not use extend inside the module definition though?
<obfuscated>
shevy: sorry, I'm too old school:)
<Hanmac>
shevy wrong you can
<shevy>
hmm
<obfuscated>
pontiki: I don't understand your question...
<pontiki>
obfuscated: you want people to do work for you, how much is it worth to you to have them do it?
<shevy>
ah yes
<shevy>
Hanmac, I got it finally thanks
<shevy>
and thanks to pontiki as well
gja has joined #ruby
<pontiki>
nah, hanmac was on it
fgo has quit [Remote host closed the connection]
havenwood has joined #ruby
<shevy>
can I do both an include and extend on the same module?
<obfuscated>
pontiki: in fact I don't really care much about it, because I don't intend to learn ruby any time, soon, I've just found that the sample in codeblocks is lacking and also the highlighting is wrong, so I wanted to fix it
ctp_ has joined #ruby
g0bl1n has quit [Ping timeout: 248 seconds]
<AlexRussia>
pontiki: hey, ty
<Hanmac>
shevy yes you can
eka has quit [Read error: Connection reset by peer]
zz_anildigital is now known as anildigital
agarie has quit [Ping timeout: 248 seconds]
mehlah has joined #ruby
<shevy>
obfuscated a regex in ruby:
<shevy>
abc =~ /b/
christianreber has joined #ruby
<shevy>
operators: + - / ** ** ^
<shevy>
what is an identifier...
<obfuscated>
shevy: this doesn't help much:)
<shevy>
why not
anildigital is now known as zz_anildigital
<pontiki>
AlexRussia: yw, nw
<AlexRussia>
pontiki: what what?
zz_anildigital is now known as anildigital
ctp has quit [Ping timeout: 252 seconds]
<shevy>
hehe
havenwood has quit [Ping timeout: 248 seconds]
jamto11 has quit [Remote host closed the connection]
<shevy>
oh man ...
<AlexRussia>
shevy: )
<shevy>
I think I never fully understood extend
<pontiki>
AlexRussia: you're welcome, no worries
<obfuscated>
shevy: because I don't want to learn the language, but provide user interface for setting the colours of various elements for the people use it
<shevy>
I was always using it like so: object.extend(Module)
<Hanmac>
obfuscated: most code highlighter get confused very easlly ... like they highlight in [].include?(3) the include because include is a code word for them ... or they got problems that they think that number / value + something / other is a regexp because it has two //
<kaffeebohne>
canton7: Because the match should ignore stuff like ,/! etc
<canton7>
kaffeebohne, also note that '.' is a special regex character, so you need to escape it if you want a literal full stop
<canton7>
kaffeebohne, as in, it's looking for a non-word character at the end of the URL, which the first line has (a newline), but the second doesn't
<kaffeebohne>
ok, \W was the problem in the second match
<kaffeebohne>
ah
crus` has quit [Ping timeout: 264 seconds]
<apeiros>
kaffeebohne: just use URI.extract
<kaffeebohne>
so \W|\z would work?
<obfuscated>
Hanmac: ok, but still irrelevant, I'm not writing the lexer, it is already there, because codeblocks uses scintilla...
<kaffeebohne>
jep, got it
<canton7>
kaffeebohne, I still don't understand why the \W is tehre :P
danshultz has quit [Ping timeout: 252 seconds]
<Hanmac>
obfuscated: i never said that scintilla is perfect ;P *G
w4pm has quit [Read error: Operation timed out]
havenwood has joined #ruby
<kaffeebohne>
canton7: t.co only uses word characters for their links, so this is a sign that the link has ended
<kaffeebohne>
of course this would fail on doma.in/~home
<apeiros>
kaffeebohne: \w* already stops on \W
<kaffeebohne>
ah
<apeiros>
without you putting it there
<kaffeebohne>
ok
<apeiros>
you don't instruct a regex to "stop here"
<kaffeebohne>
sorry, I'm not a regex pro yet :D
<apeiros>
you instruct a regex on "match this"
<apeiros>
?
<apeiros>
hence I tell you…
<pontiki>
unless you want that non-word character in the match
phansch_ has joined #ruby
phansch has quit [Ping timeout: 272 seconds]
<shevy>
ok now I may have a possibly very stupid question
veinofst` has joined #ruby
phansch_ is now known as phansch
veinofst` is now known as veinofstars
<shevy>
module Foo; extend Foo; end <--- does that make any sense? and more importantly, would that be the same as "extend self" in that context?
<apeiros>
pontiki: yes, which would be "match this" :)
<shevy>
the moment when he turns into superman perhaps
sabeur has joined #ruby
<shevy>
oh
<shevy>
that was reeve
<shevy>
:(
yfeldblum has quit [Ping timeout: 260 seconds]
<pontiki>
apeiros: i just explained it above in the convo. it's based on an adverts for reese's peanut butter cups, which is crappy chocolate formed around crappy peanut butter, but somehow tastes really good
<apeiros>
pontiki: oy
<apeiros>
odd one
brennanMKE has joined #ruby
<apeiros>
thanks for the explanation
popl has quit [Ping timeout: 245 seconds]
<pontiki>
my point being a happy collision, perhaps
<pontiki>
idk
<pontiki>
not important, long way 'round to a bad joke
timonv has quit [Remote host closed the connection]
iamsean has joined #ruby
cbetta is now known as cbetta_afk
philcris_ has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
<sabeur>
gg
<sabeur>
what is the alternative for cucumber/
<sabeur>
?
<apeiros>
pontiki: yeah, sorry for killing your joke by letting it explain :)
lxsameer has quit [Quit: Leaving]
<pontiki>
no worries, apeiros, i have to explain stuff i say to a lot of people
<sabeur>
isn't capybara the web driver for cucumber?
<lagweezle>
diegoviola: capybara isn't quite the same thing
<sabeur>
its close to jquery
<lagweezle>
but yeah, cucumber can easily become a project itself, which is why a lot of folks strongly dislike it
kleinerdrache has joined #ruby
<diegoviola>
Capybara and Cucumber both are different things, no? one doesn't depend on another
<lagweezle>
diegoviola: cucumber would be driving capybara to do things
<lagweezle>
or rspec would drive capybara, etc
<diegoviola>
oh
thams has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
danmaz74 has quit [Quit: Leaving]
RoryHughes has joined #ruby
RoryHughes has quit [Client Quit]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Sammael has joined #ruby
timonv has quit [Remote host closed the connection]
ndrei has joined #ruby
nathancahill has quit [Ping timeout: 248 seconds]
<diegoviola>
so cucumber uses capybara under the hood?
v0n has joined #ruby
clamstar has joined #ruby
<apeiros>
diegoviola: can use
<apeiros>
doesn't have to
<apeiros>
you could use cucumber to control a robot
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<diegoviola>
interesting, thanks
samsonasu has joined #ruby
<lagweezle>
sabeur: What is Cucumber being used for at your work?
_maes_ has joined #ruby
<sabeur>
we use it play difference scenario in our application
<lagweezle>
sabeur: I mean, user->UI interaction? What kind of interaction with the code.
clamstar is now known as rx
<sabeur>
UI interacton
<sabeur>
no code interaction
<lagweezle>
Okay. At least staying in the realm that appears to be appropriate for it. :)
<sabeur>
since the app is spring mvc
<sabeur>
yeah but its slow and become a project it self
<sabeur>
just wondered if there was an alternative
<pontiki>
yes, shevy ?
cbetta_afk is now known as cbetta
ndrei has quit [Ping timeout: 248 seconds]
<sabeur>
pontiki: shevy?
yarou has joined #ruby
pskosinski has joined #ruby
<pontiki>
sabeur? what are you asking?
clamstar has joined #ruby
<shevy>
pontiki the answer!
<havenwood>
sabeur: There was a project called steak, but I think most people who look for an alternative simple stop using something in its place and opt for simplicity of just Rspec/Minitest or whatever you use for TDD.
clamstar has quit [Client Quit]
<pontiki>
shevy: i think i demonstrated it, don't you?
mrfoo has quit [Ping timeout: 245 seconds]
<sabeur>
havenwood: ah yeah i heard similar thing - ill look around and probably fall back to rspec and minitest
<shevy>
...
<havenwood>
sabeur: Cucumber is an additional layer that a bunch of people cargoculted onto then collectively one at a time realize they're doing the work twice.
cbetta is now known as cbetta_afk
ExceptionlCatch has left #ruby [#ruby]
<havenwood>
i dunno
DouweM has quit [Ping timeout: 260 seconds]
<havenwood>
i've never seen the sense in it
lfox has joined #ruby
caustic has joined #ruby
lfox has quit [Remote host closed the connection]
* lagweezle
pats shevy.
lfox has joined #ruby
<pontiki>
the only sense i see is that it allows non programmers to write scenarios/stories/acceptance tests that can be programmatically translated
senayar has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
wallerdev has joined #ruby
<havenwood>
pontiki: I've just never seen that happening. Apparently enterprise where there is a testing department like it? Seems an old fashioned way to do things. I guess I just don't work in an environment where it is sane. :P
JBreit has quit [Read error: Connection reset by peer]
<pontiki>
it's a big company environment (or mentality), i think, yeah
<pontiki>
big enough to have completely separate roles
freerobby has joined #ruby
<pontiki>
which doesn't have to be all that big, actually
dx7 has joined #ruby
toot_ has joined #ruby
<pontiki>
i guess some people work better with more circumscribed responsibilities for everyone
sabeur has left #ruby [#ruby]
senayar has joined #ruby
gja has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
<pontiki>
in my experience, though, such things are both an excuse not to communicate and a solution for people not being able to communicate, as well, a way to reduce the perceived need to do critical thinking on the project/program
RoryHughes has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
anildigital is now known as zz_anildigital
pizzocel has joined #ruby
RoryHughes has joined #ruby
<pontiki>
somewhat in defense, tho, i will say hand-writing your stories out ahead of time in Gherkin is actually a good thing
maroloccio has joined #ruby
jamto11 has quit [Remote host closed the connection]
RoryHughes has quit [Max SendQ exceeded]
<pontiki>
using them to communicate intent
JBreit has joined #ruby
toot_ has quit [Remote host closed the connection]
RoryHughes has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
RoryHughes has joined #ruby
<lagweezle>
+1
RoryHughes has quit [Max SendQ exceeded]
<pontiki>
overall though, one size never fits all. use what works for your environment needs
lfox has quit [Quit: ZZZzzz…]
<diegoviola>
i've seen a project that doesn't use any kind of tests at all, is that a red flag in a project?
<lagweezle>
PM + Dev + QA collaborate to create the Gherkin / Story. It depends a lot on how well folks can do that, though.
<pontiki>
diegoviola: i think you must mean no automated tests
yfeldblum has joined #ruby
RoryHughes has joined #ruby
<pontiki>
the only projects that have absolutely no tests are the ones that are never run
jzig has joined #ruby
<diegoviola>
pontiki: well yeah
RoryHughes has quit [Max SendQ exceeded]
veinofstars has quit [Remote host closed the connection]
RoryHughes has joined #ruby
<pontiki>
and to answer that question, that is a huge red flag for me
RoryHughes has quit [Max SendQ exceeded]
<pontiki>
in this current gig, i've been working on three projects, none of which have had any tests written.
<pontiki>
so the testing is all manual
<diegoviola>
ugh
RoryHughes has joined #ruby
jrobertfox has joined #ruby
<pontiki>
they've been really good about doing thorough manual testing
Davey has quit [Read error: Connection reset by peer]
RoryHughes has quit [Max SendQ exceeded]
<pontiki>
but i'm not going to sit at a browser and enter the same stuff over and over
<diegoviola>
isn't that too time consuming though?
<diegoviola>
manual testing
<pontiki>
yes
<pontiki>
and boring
<havenwood>
>> "#{['Test', 'Behavior', 'Hammock', 'REPL'].sample} driven development is best!'"
<diegoviola>
pontiki: why don't they write tests then?
<havenwood>
shame on you, eval-in
RoryHughes has quit [Max SendQ exceeded]
<lagweezle>
Hrm.
kidoz has joined #ruby
<pontiki>
oh, it's strange, diegoviola
<pontiki>
they talk about tdd
RoryHughes has joined #ruby
<pontiki>
but then they just hack shit out
<pontiki>
not universally
<pontiki>
a few of the leads are really trying to change things there, i think
yfeldblum has quit [Ping timeout: 240 seconds]
RoryHughes has quit [Max SendQ exceeded]
<pontiki>
and since i'm so freaking lazy, i add tests for the stuff i'm working on
<lagweezle>
Signal.trap blocks set up handlers, or ... callback type behavior that are run at some later point, should the signal they are interested in be encountered?
jamto11 has joined #ruby
RoryHughes has joined #ruby
<lagweezle>
So I set it up, then do other stuff, and if a signal I indicated interest in happens, the block I gave to Signal.trap is then executed at that point?
RoryHughes has quit [Max SendQ exceeded]
gja has quit [Quit: This computer has gone to sleep]
<pontiki>
yes and yes
<lagweezle>
Phew.
kmartiin has joined #ruby
<lagweezle>
havenwood: hah cute :)
RoryHughes has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
RoryHughes has joined #ruby
Speed has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
aryaching_ has quit []
<lagweezle>
diegoviola: regarding manual testing, it depends on whether or not you have an army of trained monkeys or not. If there is a dept. of (relatively) low paid employees who can handle the monotony of repeating the same damned behavior over repeatedly but also have the intelligence to precisely record and report issues, then you can get away with it. If you don't have said monkey army, you're probably inflicting a LOT of pain on your fut
* lagweezle
uses Wall of Text.
RoryHughes has joined #ruby
yasushi has quit [Remote host closed the connection]
<pontiki>
it got cut off
Thermo has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
<pontiki>
probably inflicting a LOT of pain on your fut
<diegoviola>
lagweezle: agreed
Thermo has quit [Client Quit]
RoryHughes has joined #ruby
aryaching has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
klaut has quit [Remote host closed the connection]
<lagweezle>
I say this as someone employed in QA. I DETEST manual testing. If I do something more than twice, I start getting VERY unhappy. As a person, I have a very low tolerance for doing the same thing multiple times.
RoryHughes has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
Clooth has joined #ruby
<lagweezle>
"Making the Product Better vs Getting Paid" is a tough one. ^^
Davey has joined #ruby
RoryHughes has joined #ruby
gja has quit [Client Quit]
<apeiros>
lagweezle: humans are unreliable wrt repetition, though
RoryHughes has quit [Max SendQ exceeded]
cbetta_afk is now known as cbetta
<lagweezle>
VERY!
<apeiros>
if you've once written a test, you can be relatively sure it'll catch a regression. not so much with humans.
* lagweezle
agrees thoroughly.
Xiti` has joined #ruby
RoryHughes has joined #ruby
<pontiki>
as a person in QA, your job, so to speak, is to expose the risk of releasing the product at it's current point to your management
<pontiki>
it is not to test
<pontiki>
it is not even to write tests
<lagweezle>
Also, you can run the test a lot faster, so you are less likely to say, "Oh, just skip it for this release. I'm pretty sure we didn't break that ... OFUK!"
JBreit has quit [Read error: Connection reset by peer]
RoryHughes has quit [Max SendQ exceeded]
RoryHughes has joined #ruby
<lagweezle>
pontiki: True. Thankfully (maybe?) I'm also SDET-ish, and a tool creator, etc. Yay small companies?
RoryHughes has quit [Max SendQ exceeded]
jonr22 has joined #ruby
Hanmac1 has joined #ruby
freerobby has quit [Quit: Leaving.]
<pontiki>
sorry, not getting SDET-ish
RoryHughes has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
<lagweezle>
SDET: Software Developer in Test
<pontiki>
where does the E come from?
RoryHughes has joined #ruby
<lagweezle>
Er, make that Software Development Engineer in Test
<pontiki>
ah
Pixi__ has quit [Ping timeout: 252 seconds]
<apeiros>
dang, I really want a retina external screen
<lagweezle>
I woke up 45m ago and haven't had any caffeine. ^^;
RoryHughes has quit [Max SendQ exceeded]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
jonr22 has quit [Client Quit]
jonr22 has joined #ruby
<lagweezle>
Or whenever it was I started typing was < 5m after getting up from bed.
<apeiros>
got to move my SC2 stream to the 24" monitor because I need my 15" retina screen for previewing
<pontiki>
in the ginormous company i worked at, QA engineers were expected to be developers
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
CalimeroTeknik has quit [Ping timeout: 248 seconds]
alx- has joined #ruby
ganesh has joined #ruby
sethen has joined #ruby
ganesh is now known as Guest40387
rubyracer has quit [Ping timeout: 272 seconds]
AlexRussia has joined #ruby
chrisseaton has quit []
closer has quit [Ping timeout: 252 seconds]
DaniG2k has joined #ruby
closer has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
<diegoviola>
why are more people using cruby than rubinius?
gmci has quit [Ping timeout: 245 seconds]
OdNairy has quit [Ping timeout: 245 seconds]
azamba has joined #ruby
CalimeroTeknik has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<shevy>
diegoviola what is cruby?
<diegoviola>
MRI
<shevy>
ah
<shevy>
well MRI always worked
<diegoviola>
I see
<shevy>
some 3 years ago rubinius was a bitch to compile for me
<shevy>
it got better
OdNairy has joined #ruby
<diegoviola>
it's pretty easy these days
<shevy>
then the lead developer left the project
<shevy>
at that point I stopped caring about it
sski has quit [Remote host closed the connection]
<shevy>
when people leave a project, the identity of a project often changes. You can see that when _why left, shoes (shoes4) now depends on java (wtf...)
<shevy>
"Yukihiro Matsumoto's C implementation of Ruby aka Main Ruby Implementation is considered the Quasi-Standard of the Ruby Language"
asmodlol has quit [Remote host closed the connection]
<AlexRussia>
shevy: Interpreter XD
forced_request has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
<shevy>
...
<shevy>
the official ruby webpage should explain these acronyms really
chrisseaton has joined #ruby
<shevy>
"Support for Ruby version 1.9.3 will end on February 23, 2015"
<shevy>
waaaah :(
<shevy>
I have only one year left
IceDragon has joined #ruby
sski has quit [Ping timeout: 252 seconds]
daxroc1 has joined #ruby
Guest40387 has quit [Quit: Konversation terminated!]
<viki>
Hi, I'm new to programming and I'm trying to learn ruby. Would anybody mind taking a look at this exercise I'm working on? I'm stuck and I can't seem to figure out how to get un-stuck. :/ https://gist.github.com/VikiAnn/8754948
phansch has quit [Remote host closed the connection]
mojjojo has joined #ruby
<AlexRussia>
shevy: maybe, MRI is MRI and stop talk?
<apeiros>
shevy: just upgrade. switching from 1.9 to 2.1 is usually easy.
<apeiros>
shevy: not comparable with 1.8 -> 1.9
jpun has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
rm_ has quit [Remote host closed the connection]
picca has joined #ruby
jpun has joined #ruby
m8 has quit [Quit: Sto andando via]
krisbulman is now known as [krisbulman]
daxroc has quit [Ping timeout: 252 seconds]
beardspeed has quit [Quit: beardspeed]
<lagweezle>
viki: The test was provided and you are writing code to satisfy the tests, yeah?
<viki>
Yes
Hanmac1 has quit [Ping timeout: 252 seconds]
caustic has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
<lagweezle>
viki: My initial thought would be to see if piece.class is String or Candy. The bag contains things of class Candy, not string.
<lagweezle>
Not the best prompting, but I'm not fully awake yet. :3
<AlexRussia>
shevy: don't worry, ruby is nice XD
<shevy>
AlexRussia I know that
<lagweezle>
viki: See where I'm heading?
<AlexRussia>
shevy: XD
<viki>
lagweezle: it's ok, I'll take half asleep help XD Uhm, so do you mean go into irb and try and look at piece.class?
<shevy>
sometimes I wonder whether I would be more productive or less productive in python, if I would have spent equal amount of time into that to compare
<lagweezle>
viki: Not quite. Um.
carif_ has joined #ruby
<lagweezle>
viki: Just to make sure, you are aware that everything in ruby acts like a class?
CJD14 has quit [Ping timeout: 245 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
<viki>
lagweezle: i thought everything in ruby acts like an object, but I guess those aren't mutually exclusive. I do see that the bag contains things of class Candy, though, I'm just not sure where to go from there.
<lagweezle>
viki: Oh. Sorry. Yes. Objects are made from classes. ^^
JasmeetQA has joined #ruby
diegoviola has joined #ruby
yfeldblum has joined #ruby
<lagweezle>
viki: So, when you instantiate (make an Object from a class) a Candy, you provide it with a String ("Skittles" or "Sour frogs").
mrfoo has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
kleinerdrache has quit [Quit: Ex-Chat]
gauteh has quit [Ping timeout: 245 seconds]
<viki>
lagweezle: Yes, and it stores that as @candy and also a sugar value in @sugar.
philcris_ has joined #ruby
<lagweezle>
Just to make sure, which test is the current failing test?
<viki>
line 58 in bag_test.rb
<viki>
I'm trying to write the method grab to make it pass
<lagweezle>
Okay. It looks like line 65 and 66 are the ones that are causing you the trouble.
<AlexRussia>
shevy: is interesing
sabeur has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
<viki>
lagweezle: Yes, because I haven't defined grab properly yet
mojjojo has quit [Quit: mojjojo]
claymore has joined #ruby
<lagweezle>
bag.grab "Jawbreaker" <-- bag (your Object) grab (the message/method) is passed "Jawbreaker" (parameter/argument)
mojjojo has joined #ruby
linojon has joined #ruby
<lagweezle>
"Jawbreaker" is a String.
<lagweezle>
In your grab method, you are checking if piece (in this case, "Jawbreaker") is in @candies.
animehti has joined #ruby
philcris_ has quit [Ping timeout: 260 seconds]
venkat_ has joined #ruby
<lagweezle>
So the first question you want to answer is, "Does @candies contain any Strings?"
TripleDE1 has joined #ruby
TripleDE1 is now known as TD_home
<viki>
Well. It does, just not as one of the objects in the array. Like, one of the objects in the array has a string in it, but that's not what it's looking at.
<AlexRussia>
where there a method to escape characters in the string?
nszceta has joined #ruby
<lagweezle>
So @candies contains zero or more of what type of object?
vlad_starkov has joined #ruby
<havenwood>
viki: piece if @candies.map(&:type).include?(piece)
Spami has joined #ruby
gmci has joined #ruby
<viki>
instances of the class Candy
gmci has quit [Max SendQ exceeded]
<lagweezle>
Arg. Need to AFK a few to take my pup outside.
ktosiek has joined #ruby
<lagweezle>
havenwood: Tht is a nifty trick. ^^;
<viki>
no worries
wallerdev has joined #ruby
<viki>
havenwood: i'm going to look at that. is the &:type part from my candy file?
<DaniG2k>
apeiros: this crawler doesnt work for shit -_-
<shevy>
I hate channels where I must register in order to speak :(
<DaniG2k>
apeiros: its working for ted.com but most other sites have some issues
<havenwood>
viki: It is the same as: @candies.map { |candy| candy.type }.include? peice
<viki>
havenwood: probably because i don't really have a design, i'm just trying to make the test pass :P
<havenwood>
piece*
<apeiros>
DaniG2k: welcome to coding.
<shevy>
:D
<DaniG2k>
its insane
<apeiros>
need a handkerchief
<apeiros>
?
<DaniG2k>
i think google had it easier back in the day
<shevy>
AlexRussia use .delete() method
<DaniG2k>
when the web was retarded
<AlexRussia>
shevy: ok, ty
<DaniG2k>
apeiros: no not at all. I work for a search technology company
sabeur has quit [Remote host closed the connection]
<havenwood>
viki: I prefer simplifying and using data structures that match your domain, but yeah that one line change will at least make that one test pass. :)
<DaniG2k>
apeiros: but id never tried implementing my own
<DaniG2k>
apeiros: its hard as balls
<apeiros>
DaniG2k: only if you reinvent all the wheels
m104 has quit [Remote host closed the connection]
<shevy>
AlexRussia also, it is best if you give (a) example input (b) desired output. People will then tell you the ruby code... example: 'Hey guys how can I remove all vowls from "foobar world"?'
<apeiros>
DaniG2k: you know, there's enough libs for crawling the web
<shevy>
*vowels
<havenwood>
DaniG2k: What are you using as your crawler, or writing your own?
<DaniG2k>
apeiros: i just wanted to see the challenges involved
<DaniG2k>
apeiros: i dont actually want to write a full fledged crawler
<viki>
havenwood: I like the sound of simplifying, but I'm not really sure what that means.
<DaniG2k>
havenwood: i started writing my own, which apeiros basically rewrote for me :P
<apeiros>
DaniG2k: well, mission accomplished? seems you're seeing some already…
vlad_starkov has quit [Remote host closed the connection]
<DaniG2k>
yes
<apeiros>
havenwood: he had difficulties going from functional/recursive patterns to state/OOP
<DaniG2k>
yes
<DaniG2k>
i think for any tree like structure, recursive is unquestionably better
<DaniG2k>
but oop works better for things we can think of as objects like cars, people, etc
<havenwood>
viki: Makes sense for learning. Even if you don't want to write code that way need to be able to read and work with it.
<havenwood>
apeiros: ah, makes sense
<apeiros>
DaniG2k: given your lack of experience, you sure are quick to judge.
duggiefresh has joined #ruby
<DaniG2k>
apeiros: have you done much functional?
<apeiros>
DaniG2k: do I judge?
<AlexRussia>
shevy: uhu, ty
<DaniG2k>
apeiros: did i ask?
sailias has joined #ruby
<shevy>
:)
JasmeetQA has quit [Quit: Leaving.]
<lagweezle>
oof is cold outside! O.O
<apeiros>
DaniG2k: no, I haven't done much functional
<apeiros>
that is, purely functional
daxroc1 has quit [Quit: Leaving.]
<viki>
havenwood: what makes sense for learning? just making the tests pass, or what you mentioned about making data structures match the domain? That's the part i don't understand.
pizzocel has left #ruby [#ruby]
alpha123 has joined #ruby
ndrei has joined #ruby
klaut has joined #ruby
<shevy>
Can we actually say this: "This method is the actual working horse of the project."
sbos99 has joined #ruby
chrisseaton has quit []
<havenwood>
viki: For example, you can return complex objects or more basic data types like Hashes, Arrays, Sets. I was just suggesting that the latter made more sense to me given the simplicity of your problem, but when the point is learning then overly-simplified examples with overly complex code make sense. There is a large degree of discretion. Don't mind me.
sbos99 has left #ruby [#ruby]
DouweM has joined #ruby
platzhirsch has joined #ruby
tskogberg has quit [Quit: leaving]
lukec has quit [Quit: lukec]
* lagweezle
goes and looks up Proc to see what & (to_proc) effectively does.
<havenwood>
DaniG2k: the spidr gem is an interesting crawler to look at as a reference. played with mechanize at all?
<viki>
Ah. Yeah, I'm sure there are shorter ways to do things, I just need to learn the basics first.
tskogberg has joined #ruby
<platzhirsch>
lagweezle: Has the guy yesterday written anything else about the interview scandal?
Megtastique has quit []
<lagweezle>
platzhirsch: I've not heard anything about it. SO strange.
<havenwood>
scandal?
<platzhirsch>
havenwood: This was really strange first, then I felt sad
<lagweezle>
Someone was trying to get an interview at a company in order to turn it into a partnership negotiation, is my take on it.
xcv has quit [Remote host closed the connection]
descala has quit [Ping timeout: 272 seconds]
xcv has joined #ruby
Hanmac1 has joined #ruby
<platzhirsch>
Offered 100$ + Bonus if you do the Skype interview for him
klaut has quit [Ping timeout: 260 seconds]
<DaniG2k>
havenwood: no, i haven't but I immediately saw it's use when trying to crawl NYT since it requires cookies
descala has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
Notte has joined #ruby
<lagweezle>
viki: So, skipping more of the prompting thing, I'd go about it by checking if @candies.include?(Candy.new(piece))
<DaniG2k>
Mechanize also keeps track of the sites that you have visited as a history
<DaniG2k>
wow
<DaniG2k>
so it's basically a crawler in it of itself :P
Hanmac has quit [Ping timeout: 248 seconds]
dx7 has quit [Remote host closed the connection]
ner0x has joined #ruby
<viki>
lagweezle: i was going to try the map thing first, but i'm on a different computer than i'm used to and minitest isn't working
<lagweezle>
:(
rx has quit [Killed (pratchett.freenode.net (Nickname regained by services))]
<lagweezle>
Map is one of those things I really need to get in the habit of using.
<viki>
i tried gem update minitest, but i don't think it could find it, i guess i'll try gem install minitest :/
dik_dak has joined #ruby
<viki>
and i don't have permission -_- must interrupt the boyfriend
Hanmac has joined #ruby
petey has joined #ruby
clamstar has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
IceDragon has quit [Ping timeout: 248 seconds]
<havenwood>
viki: OS X or Ubuntu system install of Ruby? Nice to set it up so you can do local install of gems.
postmodern has quit [Quit: Leaving]
IceDragon has joined #ruby
<viki>
havenwood: my boyfriend is helping me install chruby. i'm borrowing his mac.
<havenwood>
So you don't need sudo for gem install. :)
<havenwood>
viki: Nice! Good choice. :)
<havenwood>
chruby ftw! \o/
__main__ has quit [Read error: Connection reset by peer]
<Rylee>
*gem install --user
<Rylee>
?
animehti has quit [Ping timeout: 245 seconds]
chrisseaton has joined #ruby
<Xuisce>
viki: great
__main__ has joined #ruby
<havenwood>
Rylee: sure, then update $PATH, but nice to just chruby and have all your env vars set correctly from the outset with latest Ruby
iamsean has quit [Quit: iamsean]
nszceta has quit [Ping timeout: 252 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
duggiefresh has quit [Remote host closed the connection]
speakingcode has joined #ruby
thams has quit [Quit: thams]
animehti_ has joined #ruby
<animehti_>
Hello fellow rubyist
<shevy>
hi animehti_
<shevy>
our numbers are growing
<animehti_>
how's it going?
<shevy>
animehti_ we must prepare for the final battle
petey has quit [Remote host closed the connection]
<shevy>
and take over #python
<lagweezle>
I love me rbenv
<animehti_>
Oh ok.
<lagweezle>
Er, I love me some rbenv.
petey has joined #ruby
<animehti_>
I switches from python to ruby
<animehti_>
Is that a bad thing?
<shevy>
yes we understood you lagweezle you really love rbenv
<shevy>
from python to ruby?
<shevy>
that is good or?
<shevy>
from ruby to python is bad
<lagweezle>
animehti_: I do Python at work, Ruby at not-work. I prefer Ruby.
<shevy>
:D
<animehti_>
oh ok
<shevy>
lagweezle starting next week, I must use perl :(
<havenwood>
lagweezle: shims :X
<lagweezle>
shevy: It isn't inherently bad, but ... yeah. :3
* lagweezle
pats shevy :(
<lagweezle>
havenwood: dislike?
petey has quit [Remote host closed the connection]
endash has joined #ruby
beardspeed has joined #ruby
<havenwood>
lagweezle: I think it is an inferior solution to chruby, and I decidedly didn't like the manner in which they introduced the tool.
<havenwood>
FUD
<animehti_>
What can you do wih Ruby. I am a beginner. All I do is save ruby files and run them in the ruby interpreter.
<lagweezle>
havenwood: Fair enough. chruby is shiny looking.
<endash>
animehti_: anything. Web apps, telnet apps (with Celluloid), ruby-processing is fun for visual programming
<lagweezle>
I think I will have to look into chruby more.
xcv_ has joined #ruby
<animehti_>
I don't use ruby on rails. What is just plain old ruby object oriented programming for?
xcv has quit [Read error: Connection reset by peer]
<animehti_>
Or is there a difference?
tempered has joined #ruby
<endash>
ruby motion for ios apps...
CalimeroTeknik has quit [Ping timeout: 272 seconds]
<endash>
what is it for?
<endash>
it's a language...
ckinni has joined #ruby
<endash>
you can use it for anything you can use any other language for
<havenwood>
animehti_: simulating jet fighter hardware/software, supercomputer simulations, controlling satellite cameras, computing anything that is computable, etc
<endash>
That's like saying, "I don't use cocoa… what is objective-C for"
<havenwood>
animehti_: On the other hand, Rails is one of many Rack frameworks (meant for making web apps online).
<endash>
That said there are plenty of libraries (rails being one) that use ruby to fairly easily do cool things
<havenwood>
animehti_: Rails is one gem. There are tens of thousands of other gems.
<animehti_>
can anyone show me an example of a ruby program someone made with ruby or ruby on rails with the actual code.
<viki>
havenwood: ok, i tried the map thing, but i think i mistyped it or something because i'm getting a syntax error, for some reason it doesn't like my end now
<shevy>
man, I so wanna go to #python with the nick python !
<havenwood>
shevy: not allowed, there is one (but preferable no) way to do it!
<havenwood>
preferably*
<havenwood>
What do they say? "Later is better than now, but never will do just fine."
<havenwood>
shevy: seems nice, though i think it would be: e.type == piece
<viki>
shevy: in my bag.rb file? I think that'd run into the same issue with type, because it can't seem to see the methods from candy.rb inside of my bag.rb methods
Xiti` has quit [Quit: Leaving]
<havenwood>
viki: You expose the instance variables with instance methods. You get at the instance variables by calling the corresponding method from the outside.
rm_ has quit [Ping timeout: 264 seconds]
Xiti has joined #ruby
<viki>
lagweezle: will read, thanks
<havenwood>
viki: Can be helpful to name your instance variables and corresponding methods the same, like the attr_'s do.
nism has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<viki>
havenwood: ok, i have to read that page about attr_accessor then :p I don't really understand that yet.
Notte has quit [Remote host closed the connection]
dx7 has quit [Remote host closed the connection]
<animehti_>
how can I find a mentor who knows ruby and can mentor me? Any suggestions people
dx7 has joined #ruby
<lagweezle>
viki: SUPER short version; your class has an attribute named type, but it doesn't have a method named type. The method named 'type' would return the value of the attribute named 'type'. Java generally would name the attr 'type' and the method 'get_type'.
Yahkob has joined #ruby
klaut has quit [Remote host closed the connection]
<viki>
lagweezle: oh wait a minute, i forgot i have type in another method in bag.rb (sorry, i got frustrated and left this exercise alone for like a week)
<viki>
ok so wait
centrx has joined #ruby
<viki>
so in my contains? method, when it calls type, is it NOT calling type from my candy.rb file?
<viki>
Candy is a class in the exercise i'm trying to do :p
<centrx>
Candy: late 13c., "crystalized sugar," from Old French çucre candi "sugar candy," ultimately from Arabic qandi, from Persian qand "cane sugar," probably from Sanskrit khanda "piece (of sugar)," perhaps from Dravidian (cf. Tamil kantu "candy," kattu "to harden, condense").
<shevy>
ok I suppose you wanted to use the .type method on Candy, but you passed a string object instead
<ronny_>
im coming from python anyone aware of a good quickstart for people that are used to python infrastructure and wan to get used to ruby infrastructure?
DaniG2k has joined #ruby
<ronny_>
(i'd like to see something like pythons virtualenv)
<shevy>
ronny_ what is virtualenv doing?
tt1187 has quit [Ping timeout: 245 seconds]
<lagweezle>
shevy: Er, so ... it isn't pulling from the @candies array? O.o
cbetta is now known as cbetta_afk
kmartiin has quit [Remote host closed the connection]
<viki>
the @candies array doesn't contain strings, is the problem i think
Jdubs has joined #ruby
<viki>
still
<shevy>
lagweezle dunno!
<centrx>
ronny_, The analog of virtualenv is called RVM
<ronny_>
shevy: makes a local tree of a python version one can install local packages in
rickruby has joined #ruby
<shevy>
aha
<shevy>
a version manager
<shevy>
I do that by installing into /Programs/Ruby/VERSION
cbetta_afk is now known as cbetta
thams has joined #ruby
<shevy>
so there is... RVM... rbenv .... hmm two more at least... ruby-install I think? ... hmm
rickruby has quit [Remote host closed the connection]
m104 has joined #ruby
<viki>
ok well, if i can't figure out this exercise today, that's ok. i have a rubymonk exercise i'm stuck on too...
<ronny_>
shevy: vurtialenv allws me to have one python where i install things per python project, or even more than one of them
rickruby has joined #ruby
<shevy>
yeah
<shevy>
my internet is so lagging right now
angusigu1ss has quit [Ping timeout: 240 seconds]
<shevy>
:(
sepp2k has quit [Read error: Connection reset by peer]
<shevy>
I can't grab the links to RVM rbenv and so forth, I may possibly disconnect soon
<ronny_>
also are there any docs for getting started with packaging ruby packages?
<havenwood>
shevy: ruby-install with chruby
chrisseaton has joined #ruby
brennanMKE has quit [Remote host closed the connection]
dangerousdave has joined #ruby
MindfulMonk has joined #ruby
apod has joined #ruby
DaniG2k has quit [Quit: leaving]
CourtJesterG has joined #ruby
Hanmac has joined #ruby
ndrei has joined #ruby
dik_dak has quit [Remote host closed the connection]
cbetta is now known as cbetta_afk
asteros has joined #ruby
mojjojo has quit [Quit: mojjojo]
<shevy>
ronny_ gems
linojon has quit [Quit: linojon]
<shevy>
ronny_ you basically create gems from a project
Hanmac1 has quit [Ping timeout: 240 seconds]
rickruby has quit [Remote host closed the connection]
<ronny_>
k, will read up
<shevy>
timelessrepo.com/making-ruby-gems?
linojon has joined #ruby
enebo has quit [Quit: enebo]
apod has quit [Quit: WeeChat 0.4.2]
kmartiin has joined #ruby
Yahkob has quit []
chrisseaton has quit []
cbetta_afk is now known as cbetta
<ronny_>
shevy: k, thx
gittish has joined #ruby
picca has quit [Quit: Computer has gone to sleep.]
<apeiros>
you can put `binding.pry` into your code, and when your code reaches that point, a pry session will start
<apeiros>
useful for debugging
mojjojo has joined #ruby
<apeiros>
or learning too
<viki>
apeiros: when your code reaches what point?
<apeiros>
the line where you put `binding.pry`
<viki>
oh
rickruby has joined #ruby
<viki>
ok well i feel slightly less stupid now that my code has stumped at least two other people, i'm not the only one confused by it (but then, i wrote it, so...)
<havenwood>
viki: or pry-rescue to automatically open where an exception occurs
<apeiros>
havenwood: does it patch Kernel#raise?
<apeiros>
havenwood: or does it work for C exceptions too?
<apeiros>
want to learn it? makes sharing your code easier
m104 has quit [Quit: bye]
<viki>
sure
<apeiros>
in your shell/bash, type `git --version` (without the ` quotes)
fonz has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
<viki>
git version 1.8.3.4 (Apple Git-47)
JasmeetQA has quit [Quit: Leaving.]
<apeiros>
nice, so you've an up-to-date git installed. nothing stopping you
zeropx has joined #ruby
<viki>
i'm borrowing my boyfriend's laptop, i'm sure he uses git
<apeiros>
you know how to use the shell/bash? that is, commands like `cd`, `pwd` etc?
<viki>
sort of, i know what cd does, i don't know what pwd does
<viki>
i also usually use a windows pc
<apeiros>
pwd prints where you currently are
<centrx>
Print Working Directory
<viki>
oh ok
x77686d has joined #ruby
x77686d has quit [Client Quit]
<apeiros>
viki: ok, cd to the root of your project
gopat has quit []
<apeiros>
viki: then type `git init`
<viki>
ok, i have the test files in one folder and the other ones in a lib folder, so do i need to cd to the folder that has both those folders in it?
<apeiros>
that command initializes your git repository, you only have to do that once for a repository. it tells git that you want to use it for that directory.
<apeiros>
viki: yes
daxroc has quit [Quit: Leaving.]
<viki>
ok, i did git init
<apeiros>
then type `git add -A`, and then `git commit -m 'Initial commit'`
icantbecool has quit [Quit: Computer has gone to sleep.]
<apeiros>
the first one informs git that you want to update all files in the repository (puts it into the "staging" area), the second one then commits it into the repository
nism has quit [Read error: No route to host]
icantbecool has joined #ruby
icantbecool has quit [Client Quit]
<viki>
ok, done both those things
<apeiros>
on github.com (not gists.github.com), click on the "Repositories" tab
<apeiros>
there the green button to the right, "+ New"
Asitha has quit []
<apeiros>
choose a name for your repo, hit "create"
<apeiros>
you should then see some instructions, look at the lower part, "Push an existing repository from the command line"
<apeiros>
copy the two lines it shows there to your shell
<apeiros>
then reload and paste the url of your github repo
philcris_ has joined #ruby
<apeiros>
(tell me if I move too fast)
dx7_ has quit [Remote host closed the connection]
zarusky has quit [Read error: Connection reset by peer]
jamto11 has quit []
<viki>
it says the authenticity of host can't be established
cbetta is now known as cbetta_afk
<apeiros>
d'oh
<apeiros>
upon the `git push …` command I presume?
griffindy has joined #ruby
blackmes1 has joined #ruby
<viki>
yes
<apeiros>
:-/
ctp has joined #ruby
<viki>
unless i was supposed to paste the two lines separately
<apeiros>
shouldn't matter
zarul has joined #ruby
<viki>
lemme s.o.s. the boyfriend person
<apeiros>
does your boyfriend use github?
<apeiros>
heh, same thought, I guess :)
<apeiros>
remote debugging such issues is a bit difficult
SpecFirst has joined #ruby
philcris_ has quit [Ping timeout: 264 seconds]
s2013 has joined #ruby
<s2013>
is ruby a good language to study/practice algos with?
<AlexRussia>
s2013: yes
<viki>
fixt
<apeiros>
s2013: yupp
<s2013>
know of any good ruby algo tutorials?
Davey has joined #ruby
<s2013>
i am trying to refresh my memory from my college days
<apeiros>
s2013: algo tutorials shouldn't really be language specific
RubyPanther has joined #ruby
rickruby has quit [Remote host closed the connection]
<s2013>
well thats true but id like to see soem algos implemented in ruby
<shevy>
viki the best way to use git is to throw random commands at it until it works
<apeiros>
or didn't, it might have changed (at least git add . complained and said something about that - dunno)
freezey has joined #ruby
<apeiros>
viki: yes, the message is supposed to explain the changes
<RubyPanther>
THere are only a couple completed, but it is porting the "Mastering Algorithms in C" book, so it is a good start... maybe somebody will pick it up and finish it
chrisseaton has joined #ruby
<s2013>
commit -am does apeiros
<apeiros>
viki: there too, I wouldn't worry too much about it. writing good commit messages isn't much of a concern at this stage.
<s2013>
if i delete stuff it deletes it so i dont have much worires about it
<viki>
okie dokie
<apeiros>
s2013: `git commit -a` does what `git add -A` does in a single step
ctp has quit [Ping timeout: 245 seconds]
<s2013>
i see
nonnatus has joined #ruby
<apeiros>
s2013: so if you do `git add .` and then `git commit -am` you're doing one step too much
sabeur has joined #ruby
<apeiros>
the git add becomes redundant
prophile has quit [Quit: RIP irssi session: 2013-02-02 to 2014-02-01]
<s2013>
interesting. didnt know that
<apeiros>
viki: nevertheless, once you feel comfortable at coding, I'd start exploring git too. it's a powerful and useful tool
Czupa has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
<apeiros>
viki: anyway, back to the issue :D
<apeiros>
you got `NoMethodError: undefined method `type' for true:TrueClass`, right?
ohwhoa has joined #ruby
<viki>
yes. and the things i tried before got me undefined method 'type' for strings.
Shidash has joined #ruby
<viki>
so it thinks i'm calling type on true, right?
<apeiros>
yes
<apeiros>
that's what the message says
<viki>
i'm not sure why :/
<apeiros>
I'm checking :)
<apeiros>
got to read your code first
asmodlol has joined #ruby
cbetta_afk is now known as cbetta
<viki>
thank you
scottj has joined #ruby
<apeiros>
ok, so your code is `candy = bag.grab "Jawbreaker"` and then `candy.type`
nfk has quit [Quit: yawn]
<apeiros>
as you correctly understood, the error tells you that `candy` has `true` assigned to it
<apeiros>
this means `bag.grab "Jawbreaker"` returned true
axl_ has quit [Quit: axl_]
sabeur has quit [Ping timeout: 248 seconds]
<apeiros>
so you have to take a look at Bag#grab
<shevy>
viki to avoid such errors, you can always use an additional if check. For instance: if your_object.is_a? Candy # continue
<shevy>
and if you don't reveal your passwords, they'll have your balls
<Jdubs>
yeah, travelling to other countries in general is shitty nowadays
<RubyPanther>
I'm an American, I'd be unlikely to fly too. The treatment at the security checkpoint is treatment that I am legally protected against at all other times. I happily go through the security at the Federal Building and the County Courthouse, and I am screened with respect.
<apeiros>
Jdubs: also records of people being denied entries over tweets isn't very inviting
<Jdubs>
i always get grilled when i visit the UK
<shevy>
Jdubs swiss names sound so awful that everyone can be a potential terrorist :)
<Jdubs>
one time they held me a few hours there lol
arietis has quit [Quit: Computer has gone to sleep.]
<RubyPanther>
Pity too, I love to fly. But I'd have to take a train to Canada in order to able to tolerate the experience without getting myself arrested
<apeiros>
Jdubs: but do tell if/when you visit a conference outside the US this year
yfeldblum has quit [Read error: Connection reset by peer]
<apeiros>
I hope I can go to one too again this year
<apeiros>
(I still have >40 days of holidays left, so even if company doesn't pay for it, I should be able to go :D)
<Jdubs>
apeiros i usually visit the UK during christmas time
vlad_starkov has quit [Remote host closed the connection]
<apeiros>
Jdubs: add a flying visit to switzerland? :o)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
viki: good! :)
<viki>
i'm quite a bit slowed down now because i'm still borrowing my boyfriend's laptop, but i'm in it remotely on another monitor while he's using it :/
<apeiros>
viki: you can do just `candies.find { |candy| #check whether candy matches here }`
<viki>
might be better to just switch to windows
aspires has joined #ruby
Azure has joined #ruby
picca has joined #ruby
eka has joined #ruby
<viki>
oh, i don't have to include the (ifnone = nil) part?
<apeiros>
no, the docs tell you there that the method takes one argument, and the default of that argument is `nil`
ixti has quit [Ping timeout: 245 seconds]
shevy has quit [Ping timeout: 252 seconds]
<Jdubs>
apeiros I like snowboarding :P
yfeldblum has joined #ruby
<apeiros>
they'll refer to the `ifnone` argument somewhere in the docs (telling you that if no element fulfills the condition, ifnone's value will be returned)
klaut has joined #ruby
benzrf has joined #ruby
<apeiros>
Jdubs: in that case, I'd suggest something in the vicinity of Zermatt
<benzrf>
hey can anybody look over my gem for major security holes
<apeiros>
my brother lives there. Zermatt itself is a famous place (you can see the Matterhorn there) and there are good places to go skiing
ixti has joined #ruby
shevy has joined #ruby
mengu has quit []
<Jdubs>
sweet! Definitely might do :)
<apeiros>
viki: if you move development to windows, you can sync the code on your boyfriends laptop via git
asteros has quit [Quit: asteros]
<apeiros>
viki: all you need to do is `git push` on the computer where you changed stuff, and `git pull` on the computer you'd like to get the new version of the code
animehti_ has quit [Ping timeout: 245 seconds]
lethjakman has joined #ruby
<apeiros>
Jdubs: also Walliser (the people living there) have excellent wine and cheese ;-)
petey has joined #ruby
<apeiros>
Jdubs: so you'll enjoy great fondue and raclette with nice wines
jonathanwallace has quit [Quit: ZNC - http://znc.in]
<viki>
apeiros: i think i' just going to deal with it as is because i don't want to install dropbox on this computer
Brando753 has quit [Ping timeout: 272 seconds]
<apeiros>
viki: you'd not need dropbox with git. but you'd need to install git. but of course, it's your call how you deal with it.
gasbakid has joined #ruby
kenneth has quit [Quit: kenneth]
Brando753 has joined #ruby
<benzrf>
gggggit
<mjc_>
apeiros: we are at my workplace and she's borrowing a computer
<apeiros>
mjc_: hey! you're supposed to teach your GF ruby, not me :-p
<mjc_>
she doesn't listen to me
<viki>
i have no yelling filter up with him
pushpak has quit [Ping timeout: 276 seconds]
<apeiros>
mjc_: change your nick and help her on irc! :o)
<mjc_>
lol
picca has quit [Quit: Computer has gone to sleep.]
<mjc_>
it took a week to even get her to ask for help here
<apeiros>
I hope she didn't regret it
<viki>
whatever yo
jonathanwallace has joined #ruby
<apeiros>
viki, mjc_: I can understand that… for some reason it's easier for me to help complete strangers on irc than my wife (she's starting to code too)
<apeiros>
somehow I'm horrible at helping her :(
arietis has joined #ruby
ixti has quit [Ping timeout: 248 seconds]
picca_ has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
mojjojo has quit [Quit: mojjojo]
e^0 has joined #ruby
mojjojo has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
chrisseaton has quit [Ping timeout: 260 seconds]
shevy has quit [Ping timeout: 272 seconds]
claymore has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
heidi has joined #ruby
relix has joined #ruby
gja has quit [Ping timeout: 252 seconds]
kenneth has joined #ruby
axl_ has joined #ruby
gittish has quit [Quit: gittish]
havenwood has quit []
claymore has joined #ruby
<viki>
apeiros: seems pretty common, i heard similar stuff from somebody at rubyconf
yoshie902a has joined #ruby
freerobby has joined #ruby
lukec has joined #ruby
thams has quit [Quit: thams]
Hanmac has joined #ruby
brunops has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
jrd0 has quit [Ping timeout: 248 seconds]
shevy has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
chrisseaton has joined #ruby
jamto11 has joined #ruby
kevinfagan has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ce_afk has quit [Ping timeout: 272 seconds]
jonr22 has quit [Remote host closed the connection]
jrd0 has joined #ruby
jonr22 has joined #ruby
mnemon has quit [Quit: No Ping reply in 180 seconds.]
tonini has quit [Ping timeout: 252 seconds]
lukec has quit [Quit: lukec]
aspires has quit []
tonini has joined #ruby
klaut has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 260 seconds]
saarinen has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theharshest_ has quit [Remote host closed the connection]
fantazo has quit [Read error: Operation timed out]
Spami has quit [Quit: This computer has gone to sleep]
<alainus>
I want to split a string at the center, resulting in two strings of equal length, discarding the central character if the string has uneven length. Examples: "abcdef" => ["abc", "def"] "abcdefg" => ["abc", "efg"]
<alainus>
any tips?
<animehti>
Is that what lines does?
<animehti>
String#lines?
Clooth_ has joined #ruby
Clooth_ has quit [Client Quit]
senayar has quit [Ping timeout: 264 seconds]
<alainus>
animehti, that seems to use \n as separator
pfg has quit [Read error: Connection reset by peer]
<viki>
apeiros: I got the next 2 tests passing, gonna head out for now. Thanks very much!
timmow has joined #ruby
shredding has joined #ruby
<apeiros>
viki: you're welcome!
senayar_ has quit [Remote host closed the connection]
<animehti>
alainus so where there is a /n character, that's where the lines form if you use that method??
<alainus>
animehti, i guess so
<animehti>
how does eval-in do that
<apeiros>
\n is the newline character
<alainus>
apeiros, str[-mid, mid] do you mean [-mid, str.length] ?
<apeiros>
alainus: no, I meant what I wrote
hj2007 has joined #ruby
<animehti>
alainus, so if there isn't no \n then it doesn't work?
<Mon_Ouie>
alainus: For the record, alainus asked about what String#lines did before you arrived, might help you to understand what's going on
fonz has quit [Remote host closed the connection]
senayar has joined #ruby
mohammed has joined #ruby
sabeur_ has joined #ruby
<apeiros>
s/alainus asked/animehti/
mohammed is now known as Guest78356
<Mon_Ouie>
Oh
<alainus>
ahh. i was confused about that
<Mon_Ouie>
right
Guest78356 has quit [Read error: Connection reset by peer]
Clooth has joined #ruby
<hj2007>
hi everyone, I'm facing an issue while opening few csv files - "SocketError: Too many open files". But I'm opening only 4 files. Please help.
<apeiros>
hj2007: means you probably don't close some you open priorly
blackmes1 has joined #ruby
sabeur has quit [Ping timeout: 252 seconds]
<hj2007>
apeiros: Thanks for the reply. Can you please tell me how to close it? I'm using it like - "CSV.foreach('user.csv', :headers => true) do |row|"
lukec has joined #ruby
otherj has quit []
kevinfagan has quit [Ping timeout: 272 seconds]
ckinni has quit [Ping timeout: 265 seconds]
Amart41 has joined #ruby
<Senjai>
hj2007: It would automatically close at the end of the block
<Senjai>
if you use a block
ce_afk has quit [Ping timeout: 260 seconds]
<alainus>
when defining a method that modifies the used string, do you have to reassign the variable Self ?
<apeiros>
alainus: you can't assign to self
<benzrf>
what
kevinfagan has joined #ruby
<apeiros>
also, self isn't really a variable
wildroman2 has quit [Remote host closed the connection]
<hj2007>
Senjai: I'm using 'end' after I'm done, so that should close it, right?
rankine has quit [Ping timeout: 240 seconds]
<apeiros>
alainus: not sure what you're trying to do, you might want to take a look at #replace. but paste some code of what you try to do please.
vlad_sta_ has joined #ruby
relix has joined #ruby
<alainus>
apeiros, I just want to define what you did before as a cut_center! method on the String class that modifies the variable on which it is passed
<apeiros>
alainus: String#cut_center! ?
<alainus>
yes
<apeiros>
how should that possibly work?
<apeiros>
you get two values back from that
_mtr has joined #ruby
drumusician has quit [Ping timeout: 252 seconds]
timmow has quit [Ping timeout: 260 seconds]
<apeiros>
you can't change the class of an object. i.e. you can't have x.class == String; x.foo!; x.class != String
<Senjai>
In Fiddle, you can do the worst things evar
<Karkizz>
i have c++ at school and i havent even started yet, im barely keeping a positive mark
<apeiros>
benzrf: I think we should run you out of town, with pitchforks
<benzrf>
:-D
<hj2007>
Senjai: And all four files that I'm using here are of size around 1 Mb
<Senjai>
Karkizz: School doesn't mean anything.
mklappst_ has quit [Remote host closed the connection]
<benzrf>
Karkizz: c++ is the worst
<benzrf>
forget c++
<RubyPanther>
even doing it in C got a lot harder with Ruby 2
animehti has quit [Ping timeout: 245 seconds]
tvw has quit [Ping timeout: 252 seconds]
<Karkizz>
why?
<RubyPanther>
The code is cleaner :(
<benzrf>
it is basically 1 billion random language features bolted onto C
<Senjai>
hj2007: And the errors? Can you paste those too
<benzrf>
without much reason or design
<benzrf>
or so im told
<benzrf>
i have not attempted to learn it
<Senjai>
Karkizz: 50% of my coworkers are self taught, the other 50% claimed they dont use 80% of what they learned in school
<benzrf>
nor do i intend to
<Senjai>
Karkizz: My CEO barely graduated
<Karkizz>
im 17, is it too late to start?
<RubyPanther>
Most of the old tricks fail now, like the one that Gtk was using to create the object first, and then set the type later, which was useful because of the GObject semantics
<benzrf>
what is the dl module
<ekarlso>
im self tought, no graduation here in anything related to computing
<benzrf>
Karkizz: i am 16
<hj2007>
Senjai: updated gist with the error, please have a look
<Senjai>
Karkizz: I started at 22, I'm 23 with a job, so yeah.
saarinen has quit [Ping timeout: 245 seconds]
<Karkizz>
I still need to program in C++ for school
<RubyPanther>
Karkizz: Too late to be the awesomest implementer of tricky details, but not to late to just be great
wildroman2 has joined #ruby
klaut has joined #ruby
<apeiros>
benzrf: no wonder you're at some days full of shit - puberty :-p
<Karkizz>
but im looking taking up 2 languages simultaneously
<apeiros>
j/k (though, python over ruby, that was BS :-p)
shredding has quit [Quit: shredding]
saarinen has joined #ruby
<Senjai>
hj2007: Ahh, you're using jruby. Firstly, I'm not sure what Neography does, I don't think the issue is with the CSV#foreach. Your errors are happening on line 11, in create_person
weems has quit [Quit: Leaving]
<Senjai>
hj2007: In linux, the default number of file descriptors, which can be a file, a socket, or whatever is 75000 per logged in user
<Senjai>
And each process has a limit as well
<Senjai>
Karkizz: Do all of the codecademy content, then you'll know what to pick
<Senjai>
hj2007: reate_person at test3.rb:11
<Senjai>
(root) at test3.rb:82
<hj2007>
Senjai: Actually if I use very small files having 5-6 lines, then this code works fine
<Karkizz>
all?
<Senjai>
hj2007: Right, so I am thinking there is some very magical things going on around create_person
zcreative has joined #ruby
<Senjai>
hj2007: When analyzing error messages, the first thing you want to do is look for the first backtrace line that your program is responsible for
<Senjai>
hj2007: which would explain why it works for small files and not large ones
<benzrf>
does ' extend self' do anything at all
Es0teric has joined #ruby
<Hanmac>
benzrf: yes
<hj2007>
Senjai: Yes, but create_person has "end". So after that function call ends for a particular line in csv, doesn't it close that socket?
<benzrf>
Hanmac: what?
tonni_ has quit [Quit: Leaving...]
fieldfirst has quit [Ping timeout: 264 seconds]
<Senjai>
hj2007: You're fundementally misunderstanding ruby. a function does not clsoe all file descriptors by default. CSV.foreach does because CSV.foreach has been programmed to do so behind the scenes
sabeur_ has joined #ruby
<Senjai>
hj2007: I would look into Neography::Node.create("name" => name, "id" => id, "movies" => movies)
<Senjai>
There are hacky ways of getting past the open file descriptors with the garbage collector, but its not the solution, so I won't tell you how
<agent_white>
Afternoon folks
<Hanmac>
apeiros: its possible to change the class of an object ... but only with massive voodoo ;P
<benzrf>
afternoon, agent_white
<apeiros>
Hanmac: I know. and if you read on, you'll see that I said that too.
<Hanmac>
benzrf look at module_function .... extend self are for the ones that are lazy
<agent_white>
benzrf: Not sure if it was you I was talking about it with... but I'm startin on my parsing project today! :D
<Senjai>
benzrf: extend self = your doing it wrong
<benzrf>
nice!
<benzrf>
agent_white: hows it working?
p4tux has quit [Ping timeout: 252 seconds]
<benzrf>
Hanmac: doesn't extend foo take the methods from foo and put them into self?
sabeur has quit [Ping timeout: 260 seconds]
<hj2007>
Senjai: ok I'll look into create node method
<benzrf>
ohhh the /instance/ methods
mocfive has quit [Ping timeout: 272 seconds]
<benzrf>
depr
<benzrf>
*derp
<Senjai>
hj2007: I'd also look into purchasing Programming Ruby 1.9 & 2.0, it's a great book
<agent_white>
benzrf: Ah I'm working out the kinks at the moment... these ID3 tag specs are terrible. D: But once I get my basic functions down, I'm thinking of using TreeTop to put it all together?
<benzrf>
id3?
<agent_white>
Ah reading mp3 file tags :) Just wanting to snag the artist/album/track
petey has quit [Remote host closed the connection]
<benzrf>
also, I thought treetop was the kind of thing you are trying to imitate?
duggiefresh has joined #ruby
mocfive has joined #ruby
<neoice>
is it considered a bad practice to use .send() frequently? I feel like it solves a lot of interesting problems.
g0bl1n has joined #ruby
p4tux has joined #ruby
jamto11 has quit [Ping timeout: 272 seconds]
<Senjai>
agent_white: Sounds like afun thing to do, with or without threads?
<benzrf>
neoice: you shouldnt have to use it very often..
<hj2007>
Senjai: Thanks for the suggestion. Right now I'm learning from Codeacademy. But I would consider buying that book.
<agent_white>
benzrf: I guess that's what my question was! Also need to look into Structs a bit it sounds like, havent' played with em much.
<Senjai>
hj2007: I started with Codecademy too (I'm still a moderator there), and I bought the book after finishing the ruby course
skaflem has quit [Quit: This computer has gone to sleep]
<agent_white>
benzrf: And the extent I've used threads is writing a very simple socket... so maybe I'll give it a whirl :)
shevy has joined #ruby
thief is now known as Guest23351
<neoice>
benzrf: I'm working on an algorithm that takes a list and a hash and prints a table out. the list is the table "header" and then also drives the values of the columns
nari has quit [Ping timeout: 252 seconds]
<hj2007>
Senjai: oh nice :)
<Senjai>
agent_white: For large amounts of mp3's, I would compile a list of all of them, chunk them, and give them to seperate threads or processes to iterate through
<Senjai>
agent_white: It'd be a good way to learn and fiddle with threading
<neoice>
benzrf: going to be something like: row.send("#{col}")
ixti has quit [Ping timeout: 260 seconds]
otherj has joined #ruby
<agent_white>
Senjai: Roger that! Thank you for the heads up :)
<Mon_Ouie>
But you said it was a hash? So that would be row[col]
<Hanmac>
neoice: this can work too mostly : row.send(col)
<Mon_Ouie>
("#{col}" is a complicated way to write col.to_s and unneeded if col is already a string)
sabeur_ has quit [Ping timeout: 260 seconds]
sabeur_ has joined #ruby
apeiros has quit [Remote host closed the connection]
azamba has quit [Remote host closed the connection]
sabeur has quit [Ping timeout: 260 seconds]
<neoice>
Mon_Ouie: I think you made me realize that my "table rows" would be better represented as a list. that makes it sortable too.
<Senjai>
neoice: Yep, think about it. For me I talk it out allowed to determine the best relationship. A table has many rows. has many usually indicates a list
<Senjai>
aloud*
figgleberry has joined #ruby
philcris_ has joined #ruby
thams has joined #ruby
e^0 has quit [Quit: WeeChat 0.4.1]
benzrf is now known as benzrf|afk
<neoice>
so a list of objects, .send(col) still the best way to access values inside those objects?
ronny_ has left #ruby ["WeeChat 0.3.9.2"]
<neoice>
ideally, I want to be able to add/remove headers and have the table automatically match
<neoice>
feels like there's probably a gem for this.
phipes has joined #ruby
mojjojo has quit [Quit: mojjojo]
apeiros has quit [Ping timeout: 272 seconds]
prc has joined #ruby
mojjojo has joined #ruby
MindfulMonk has quit [Ping timeout: 252 seconds]
enebo has quit [Quit: enebo]
<Senjai>
neoice: You never want to use send
<Senjai>
neoice: There are very few cases where send is appropriate
kenneth has quit [Quit: kenneth]
<Senjai>
neoice: Send is pretty much like: "I don't care what access rules you have in place for x, do it anyway"
jackneill has quit [Ping timeout: 272 seconds]
<Hanmac>
neoice: public_send would be better
<Senjai>
If you need to make a dynamic call use public_send
diegoviola has quit [Ping timeout: 272 seconds]
<Senjai>
damnit Hanmac
<Senjai>
:P
figgleberry has quit [Ping timeout: 248 seconds]
<Hanmac>
Senjai: use only send when the alternative would be eval ;P
<Senjai>
Hanmac: s/alternative/only alternative
<neoice>
til "public_send"
picca has joined #ruby
axl_ has joined #ruby
philcris_ has quit [Ping timeout: 272 seconds]
<Senjai>
neoice: The difference is, public send won't let you call protected and private methods :P
<neoice>
I am trying to be aware of public/private/protected, so bypassing that is *not* my intention
<Senjai>
neoice: Still, I'd avoid using send unless the method call HAS to be dynamic
<neoice>
I don't think any of the pages I've read even mentioned that.
gittish has joined #ruby
x77686d has joined #ruby
Wolland has quit [Remote host closed the connection]
<neoice>
Senjai: "foo.each do |x| Obj.public_send(x)" is that too wacky? is there a better equivalent that I am unaware of?
shevy has quit [Ping timeout: 272 seconds]
<Senjai>
neoice: I'd need to see the context of your code
jonr22 has joined #ruby
TD_home has joined #ruby
<neoice>
Senjai: this particular chunk doesnt exist yet, I'm actually scribbling designs on paper right now
phenster has joined #ruby
Karkizz has quit []
<Senjai>
neoice: Don't design up front :)
mrfoo has joined #ruby
<Senjai>
neoice: Test driven development ftw
<Senjai>
neoice: 80% of the time, Big up front design will not turn out how you imagine it, it's almost certainly a waste of time
<phenster>
hey everyone. if I have a 2 page simple Sinatra application, *when* will I need to have "tmp" and "public" directories created for deployment with apache/passenger or nginx/passenger?
<neoice>
I haven't experimented with the ruby/rails test frameworks enough to know what I like.
<Senjai>
neoice: Then just start hacking away
<Senjai>
neoice: Go top down
<Senjai>
neoice: Start with the most concrete classes, and work your way down making abstractions as you go
<AntelopeSalad>
just use the default one until you have a reason/need to switch
<neoice>
Senjai: I have been hacking away. I still find some value in scribbling a page or two of notes, maybe writing an algorithm on paper.
gittish has quit [Quit: gittish]
<Senjai>
neoice: Algorithms are cool, but this is implimentation, not design
<Mon_Ouie>
neoice: I'd probably make it so you can just access each field with YourClass#[]
estebistec has joined #ruby
<Senjai>
neoice: Try something, and when you have code, share it and ask how it might be refactored
<Senjai>
neoice: Just do it, even it breaks horribly :P
<Senjai>
A lot of times, in top down development, I'll be using classes I haven't even created yet, and work that way
<Senjai>
"Uhh, I need something that handles connections, and gives me messages I need, okay, ConnectionManagerThingy.messages_for(self)"
<Senjai>
and then when i need to, I'll define that
<Senjai>
and work my way down
<neoice>
I do really enjoy how easy it is to do that style of work in Ruby
mojjojo has quit [Quit: mojjojo]
<neoice>
I have a bunch of stub functionality or places where I've just copy&pasted to get a prototype working
<Senjai>
neoice: Test Driven Development encourages top down design. Because you use things before they're implimented
jonr22 has left #ruby [#ruby]
jonr22 has joined #ruby
<Senjai>
neoice: But never do bottom up, e.g. I'll start with the Connection class, then impliment the class that manages Connections
<neoice>
I used one of the metaprogramming tricks to replace 6 different 1 line functions, stuff like calculate_{foo,bar,baz}
mentok has joined #ruby
thief_ has joined #ruby
<Senjai>
neoice: Remember, that metaprogramming is an awesome tool, but its lethal. There are very few occasions where its better than solid design
kmartiin has joined #ruby
<mentok>
hi there, anybody have time for a newbie question?
<Senjai>
neoice: If i did that in myh code review at work, It wouldn't go through
lifestream has joined #ruby
<Senjai>
neoice: This is why, metaprogramming things like that 1) Don't increase readability, and usability, 2) make error messages and backtraces misleading
<pontiki>
hallo
<neoice>
Senjai: people would prefer copy&paste functions?
<Senjai>
o/ pontiki
<pontiki>
Senjai :)
<Senjai>
neoice: Yep, that way they can be overriden nicely
<Senjai>
and reused
<neoice>
I did kind of have a moment afterwards where I looked at the code and thought "huh, no one else will understand this later"
<Senjai>
and backtraces will point to the write line if any errors are generated
<Senjai>
right*
<Senjai>
neoice: Put it this way, C and C++ programmers, can fix the same problems without our "magical" metaprogramming things.
<mjc_>
Apeiros: haha Viki fought me for a week about getting on IRC and now she has irccloud installed on her phone. You must've done something right :P
<Senjai>
neoice: So there is always a design pattern that can be applied that would be better than metaprogramming like that
<Senjai>
pontiki: Guess what I had to deal with yesterday
Guest23351 has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Read error: Connection reset by peer]
<RubyPanther>
A lot of people from other languages would look at a mixin and call it metaprogramming, but mixins are what we usually do instead of metaprogramming
<Senjai>
RubyPanther: Right
<neoice>
I'm
<pontiki>
i have no blanket objection to metaprogramming
<RubyPanther>
but if you look at a framework like rails, a lot of good features involve metaprogramming techniques that would otherwise (and used to) use method_missing, and the metaprogramming is actually to clean things up
<pontiki>
i wouldn't even call it necessarily improper design
BackEndCoder has joined #ruby
<RubyPanther>
if it is my code, yeah, I probably was being a clever idiot lol
<Senjai>
neoice: Looking at the example I just posted, you could define a method, and for each provider, alias the method.
wildroman2 has quit [Remote host closed the connection]
<pontiki>
but it's a fun sword to brandish and you can cut yourself on it easily
<Senjai>
pontiki: I guess I'm exagerrating the cutting vs slaying of monsters
<Senjai>
method_missing is a tool I use everyday
<zahna>
exit
<BackEndCoder>
hi is this where i can find out about Retraining of Racehorses
<zahna>
oops, sorry
<Senjai>
BackEndCoder: Yep
zahna has quit [Quit: leaving]
<pontiki>
channel #ruby: saving racehorses from the glue factory daily
aspires has joined #ruby
agent_white has quit [Ping timeout: 252 seconds]
<mjc_>
Senjai: do you make sure to also override respond_to?
<Senjai>
to catch action mailer delivery issues, because we use user input for the templates
claymore has quit [Ping timeout: 272 seconds]
standyro2 has joined #ruby
<bradding>
so I am trying to connect my application to postgresql and I am getting a error, but I am able to connect to the database on the command line so I am sure I am giving it the correct username and password
<Senjai>
bradding: this is #rubyonrails question, I should stop answering it here :P
obs has joined #ruby
phinfonet has quit [Read error: Connection reset by peer]
mocfive has quit [Ping timeout: 252 seconds]
phinfone_ has joined #ruby
<bradding>
Senjai, I can try switching over there, I am just configured why I can get it to work on the command line with psql but not in the aplication
Karkizz has joined #ruby
cdorovsky has joined #ruby
agent_white has quit [Quit: brb]
nobitanobi has joined #ruby
wildroman2 has joined #ruby
<alainus>
how can i turn [[a,b], [c,d], [e,f]] into [a,c,e] ?
shevy has joined #ruby
<Mon_Ouie>
.map(&:first)
<Senjai>
Mon_Ouie: That was a pretty obvious homework question, shh :P
ckinni has joined #ruby
bradding is now known as doanerock
<Mon_Ouie>
Senjai: I don't think it makes a difference anyway
<Karkizz>
Python over Ruby or Ruby over Python?
bleak has joined #ruby
supersym has quit [Quit: WeeChat 0.4.2]
<Senjai>
Karkizz: Whatever you like more
hexdump has quit [Remote host closed the connection]
<Karkizz>
The less web oriented it is, the better. SO which one of them is it?
<Senjai>
Karkizz: Ruby isn't web orientated at all, neither is python
<pontiki>
flip a coin
<Senjai>
Rails != Ruby
sabeur_ has quit [Remote host closed the connection]
aspires has quit []
<Senjai>
Django != Python
<Karkizz>
Sure, pontiki
<pontiki>
either one you pic, you'll have things you like a lot, and things you loathe
<pontiki>
doesn't really matter much
<Senjai>
Karkizz: Both are fine, just pick the one you can stand to program in 8 hours a day
shevy has quit [Ping timeout: 272 seconds]
vlad_sta_ has quit [Remote host closed the connection]
pixelgremlins has joined #ruby
supersym has joined #ruby
lfox has joined #ruby
sski has joined #ruby
<Karkizz>
Okay, so if tails = ruby and if heads = python
<supersym>
for?
_mtr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AntelopeSalad>
only thing i really like is that most code looks about the same
<AntelopeSalad>
in ruby i get scared out of my pants looking at some code haha
<Karkizz>
I would like to implement Ruby into game development
<marius__>
How could I send the output in real time? Thanks!
brennanMKE has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 265 seconds]
<RubyPanther>
python is fine, I used it for some online classes, and I rarely had to look anything up in order to alter the provided code to do whatever. Even for the "self driving car" class, the code itself was always straightforward
jamto11 has joined #ruby
<pontiki>
just one random quote from one of the guys who wrote python is that he wishes he'd done ruby instead
<Karkizz>
So you recomment me Python?
<pontiki>
i recommend you learn both, really well
<Karkizz>
recommend*
<pontiki>
stop this notion of "i have to learn only one language"
<Mon_Ouie>
It's probably not a big deal which one you decide to learn (or start with)
txdv has quit [Read error: Connection reset by peer]
<RubyPanther>
If you're only going to learn 1 language it better be C
<Karkizz>
I'm actually looking for the opposite
<pontiki>
it's like painting yourself into a corner
<havenwood>
Karkizz: I'd recommend you learn Ruby. Then branch out to a functional language like Clojure or Scheme.
<pontiki>
LEARN ALL THE LANGUAGES
txdv has joined #ruby
<pontiki>
<image of crazy blonde lady shaking mop>
<AntelopeSalad>
i think ppl get too defensive over languages, it's definitely not a mistake to learn both
<AntelopeSalad>
i always learn new stuff when i try out a new language that i can apply to all languages
<havenwood>
Karkizz: First lang is the hardest. Don't ruin yourself with one way to do it. There is more than one way to do it!
Hanmac has joined #ruby
<benzrf>
pontiki: what guy who did python prefers ruby
axl_ has quit [Quit: axl_]
wildroman2 has quit [Remote host closed the connection]
<Karkizz>
how do I PM here?
<RubyPanther>
You're not supposed to memorize everything, so you can't learn too many. The basic concepts will be the same so it will always be easy to look up details for whatever you're using at the time
<benzrf>
Karkizz: /msg
<benzrf>
RubyPanther: basic concepts arent the same in haskell ;)
agent_white has joined #ruby
isieo__ has quit [Read error: Connection reset by peer]
aspires has joined #ruby
<RubyPanther>
benzrf: they are if you've learned LISP already
<benzrf>
not entiiiirely
<benzrf>
;p
<RubyPanther>
and Ruby supports basic functional programming style, so if you learn Ruby completely, you should already be able to understand the concepts
<benzrf>
anyway Lisp stopped being fullcaps like decades ago
<benzrf>
get with the times man
<marius__>
anyone please?
m104 has joined #ruby
<benzrf>
marius__: hm?
<RubyPanther>
marius__: you lost me at "real time"\
nisstyre has quit [Quit: Leaving]
<Karkizz>
how do I quote and PM here? Can anyone explain?
<benzrf>
Karkizz: /msg
<Karkizz>
./msg username
<Karkizz>
like this?
aspires has quit [Client Quit]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<waxjar>
/msg username hi username!
Speed has joined #ruby
wildroman2 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<Karkizz>
and reply?
agent_white has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
<waxjar>
most clients open up a new query window where you can then just chat as normal
<marius__>
I'm a noob and I'm trying to send the output of a continuous ping for instance to an opened socket, but it doesn't work
<lifestream>
You could do the same to reply, benzrf. /msg benzrf Hi, I'm replying
<lifestream>
Though the /msg has to be the very first thing you type
duggiefresh has quit [Remote host closed the connection]
ixti has joined #ruby
<Karkizz>
Well, it looks like I'll take up Ruby, although it's mostly web orientated language. Can I do anything else with it? A few examples would really help.
<pontiki>
benzrf: i don't know, it was something i saw in passing a while back
<mylittlebenzrf>
BackEndCoder: i have not used much else, cannot inform you about that
<BackEndCoder>
cool
aharris6 has joined #ruby
<waxjar>
you're probably gonna have a harder time understanding ruby than undertanding the framewoek BackEndCoder
DaZ has joined #ruby
<BackEndCoder>
thanks for giving me a ball park guys
<BackEndCoder>
i should be alright with the learning part
aharris6 has quit [Client Quit]
<BackEndCoder>
i had a job once going in VBA once for no reason
<mylittlebenzrf>
ew
<BackEndCoder>
i managed to make an app
<BackEndCoder>
i know right
<viki>
lagweezle: Yup, apeiros gave me some tips after I tried something else. Lemme see if I can show you what i did (on my phone)
<mylittlebenzrf>
not as ew as php
<mylittlebenzrf>
php is truly horrific
<mylittlebenzrf>
o_O
<RubyPanther>
As long as you focus on the language and not the framework, then you can use anything. If you learn backwards and learn a framework first, then you'll be stunted and everything else is hard
<mylittlebenzrf>
BackEndCoder: anyway i recommend learning ruby reasonably well before doin web stuff
<BackEndCoder>
yeah thats the same problem with cake.. if you don't know php already
<lagweezle>
viki: Your boyfriend is a lucky man. ;)
<BackEndCoder>
a lot of the questions in the help channel are problems relating to not knowing php in the first place
araujo has joined #ruby
<mjc_>
after using cake from 2008ish to last feburary, I am so glad I dumped it for rails
<BackEndCoder>
i'm not planning on dumping it, but i certainly want to expand my knowledge into ruby
agjacome has quit [Ping timeout: 272 seconds]
<mylittlebenzrf>
php is god awful
<mylittlebenzrf>
sorry i feel strongly about this ~_~
<mjc_>
cake is so verbose and obtuse
<mylittlebenzrf>
anyway g2g
<BackEndCoder>
i know i know, even people that use php say that all the time
mylittlebenzrf has quit [Quit: bbl]
<mjc_>
I had no idea how much extra work it was taking to do anything
tylersmith has quit [Remote host closed the connection]
<mjc_>
and all the stuff I wrote turned into hundreds of lines of incomprehensible garbage
<RubyPanther>
who else needs to say it? if you just say "no" then you can sit back and laugh at PHP without emotional attachment
<BackEndCoder>
i think, like with any framework. if you know the hacks it will always turn out better
<BackEndCoder>
thats the problem with coding in a lang thats designed to be coded faster. there is always a problem with speed
<RubyPanther>
I disagree, the less rails-y whatthewhat you know, the better your rails app will be
<BackEndCoder>
it cuts too many courners assuming defaults
asteros has quit [Quit: asteros]
<BackEndCoder>
fair enough
<mjc_>
you are better off learning ruby separately first
<mjc_>
than learning rails directly
angusigu1ss has quit [Ping timeout: 252 seconds]
<BackEndCoder>
seen
<BackEndCoder>
thanks for the imput
<BackEndCoder>
i will get on with some tutorials
<lagweezle>
I completely agree about learning ruby first, then rails.
<mjc_>
I was where you were a year ago, helped a lot
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<RubyPanther>
Camping has a big advantage... there are no shortcuts, you're going off trail on your own
<lagweezle>
About a half year ago mabye was my intro to ruby+rails. Trying to do both from zer oat once was PAINFUL.
DenzelM has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
<AntelopeSalad>
i did both at once minus just reading a single book on ruby before i touched rails
<AntelopeSalad>
not easy imo, ruby has been the toughest language for me to get a decent grasp of
<lagweezle>
Interesting.
<bleak>
really? ruby makes so much sense to me
<mjc_>
lagweezle: she is awesome, isn'ts he :P
[gmi] has quit [Quit: Leaving]
oso|away is now known as oso96_2000
<bleak>
i started on PHP though :<
<lagweezle>
mjc_: Dude, she's on IRC from her phone!
<mjc_>
lagweezle: I'm sitting right next to her :P
<mjc_>
viki: :P
<AntelopeSalad>
bleak: i like looking at source code, if you're new to ruby and try to look at something like the rails source
<lagweezle>
mjc_: I figured you were nearby / her BF. Just kinda of agreeing by way of exclamation.
<AntelopeSalad>
you're going to explode
<mjc_>
ah, heh
<mjc_>
AntelopeSalad: too much metaprogramming in rails' source for that yeah
<mjc_>
sinatra is pretty OK for that
claymore has quit [Quit: Leaving]
dx7 has joined #ruby
axl_ has quit [Quit: axl_]
<RubyPanther>
You have to read the rails source to understand rails, but rails is a horse designed by committee, and implemented by a committee, etc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
<lagweezle>
AntelopeSalad: wonderful name :)
<AntelopeSalad>
thanks
<RubyPanther>
You're better off studying an app than a framework for learning Ruby. the metaprogramming stuff in frameworks is good, it allows automatic behaviors that are useful, but that stuff is messy to implement
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
xcv_ has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
petey has joined #ruby
rm_ has joined #ruby
mentok has quit [Quit: Computer has gone to sleep]
doanerock has quit [Quit: This computer has gone to sleep]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
estebistec has joined #ruby
zachallett has quit [Remote host closed the connection]
george2 has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
phinfone_ has quit [Quit: exitiing]
george2 has joined #ruby
AxonetBE has joined #ruby
sabeur has joined #ruby
pietr0 has quit [Quit: pietr0]
lfox has joined #ruby
pietr0 has joined #ruby
petey has quit [Remote host closed the connection]
adedommelin has joined #ruby
wildroman2 has joined #ruby
<adedommelin>
hi
<centrx>
Ahoy
linojon has quit [Quit: linojon]
sabeur has quit [Ping timeout: 252 seconds]
txdv has quit [Read error: Connection reset by peer]
[krisbulman] is now known as krisbulman
nobitanobi has joined #ruby
the_hack has quit [Quit: Computer has gone to sleep.]
txdv has joined #ruby
aryaching has joined #ruby
estebistec has quit [Remote host closed the connection]
<adedommelin>
I'm feeling like stupid ... I'm working on migrating a website to a version generated using bonsai (static website generator using liquid templates), and I can't get to display only the 10 last elements of a hash containing some data "reversed" ... not sure if it's the right place to ask but it worth a try :)
nisstyre has joined #ruby
<adedommelin>
it seems that you cannot combine limit / offset + reversed
krnflake has quit [Ping timeout: 252 seconds]
doanerock has joined #ruby
wildroman2 has quit [Ping timeout: 245 seconds]
WillAmes has quit [Remote host closed the connection]