<kinginky>
if you were taking in different sets of data from multiple sources, these data were represented as hashes, and their keys weren't always named the name but represented the same pieces of data, how would and/or could you go about handling that?
<zorak>
:)
<DouweM>
>> [1,2,3].inject(0) { ||memo, i| memo + i }
<kinginky>
these datasets need to be used together, alongside one another, so it'd be nice if i could access them all in the same manner for obvious reasons
<zorak>
thanks!
<zorak>
i thin i get it
<zorak>
think
toastynerd has quit [Remote host closed the connection]
nathancahill has joined #ruby
zz_karupanerura is now known as karupanerura
jorts has quit [Ping timeout: 276 seconds]
Wolland has quit [Remote host closed the connection]
vpereira has quit [Ping timeout: 245 seconds]
<kinginky>
the closest ive found is hashie, but id rather find something more fitted to the task (hopefully)
<timgauthier>
i just need to figure out which syntax lets me put html_safe in
kevinykchan has quit [Quit: Computer has gone to sleep.]
<zorak>
i love you too eval-in
<kinginky>
Devanon: that is my understanding. i was wanting to know also why it sometimes returns an enumerator. i guess it depends on what you call it on
<DouweM>
timgauthier: it's a method in string, provided you're doing Rails
<timgauthier>
yeah
<timgauthier>
sort of
jamto11 has quit [Remote host closed the connection]
<DouweM>
timgauthier: by default it'll escape any HTML you print, because xss, but with html_safe you can mark certain snippets, like the … as safe to be printed non-escaped
<DouweM>
kinginky: no block => enumeator
yfeldblu_ has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
<DouweM>
timgauthier: in that case it's probablt the summary method breaking the safe string. you might want to use Rails's truncate
jason__ has joined #ruby
emaxi_ has joined #ruby
grayWolf has joined #ruby
oo_ has joined #ruby
emaxi has quit [Read error: Connection reset by peer]
<kinginky>
im always really impressed looking at the source for, say, sinatra, or sequel. big projects. how can they have SO much clarity in writing these things?
<DouweM>
benzrf: that's surprising. anyway, #each returns the array itself for easy chaining. #map returns a new array with all the block return values
<kinginky>
im jealous of that
<kinginky>
:P
<benzrf>
ohhh.
marcdel has quit [Ping timeout: 252 seconds]
<kinginky>
maybes its cause its 10s, 100s, or 1000s of devs :P
<timgauthier>
apparently leaving out an optional there will just use that character anyhow.
<shevy>
timgauthier you mean a default to a method?
<kinginky>
benzrf: brb == 'brb'?
<kinginky>
be right back
<kinginky>
?
<shevy>
god man, new to IRC!!!
nateberkopec has quit [Quit: Leaving...]
<benzrf>
kinginky: hmm?
deens has quit [Ping timeout: 245 seconds]
<shevy>
let's teach you the shortcuts
<benzrf>
kinginky: where is brb
<shevy>
lol <-- this means people evil laughing about you
<kinginky>
benzrf: just lookin at the code. "brb_service"
<kinginky>
etc
<timgauthier>
yeah if i just put blog.summary(140) or whatever it just uses an ellipsis, it was the "..." or "ellipsishtmlcode" that was being broken. But yeah, if i left out that optional argument it just uses the right character
<shevy>
brb clearly stands for bilinear ruby badass
<kinginky>
i mean 'be right back' makes sense and id love if it was brb for be right back :P
<benzrf>
Resize your terminal to at least 124×33 and then run scriptreplay <(curl -sL is.gd/quicktiming) -s <(curl -sL is.gd/quickscript) on almost any *nix for a live demo.
<shevy>
lol
<northfurr>
anyone else run into this when trying to preview an octopress post
<shevy>
you read your own readme?
<northfurr>
Errno::ENOENT on line ["56"] of /Users/northfurr/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/actions.rb: No such file or directory - /Users/northfurr/Projects/my_website/octopress/public/blog/stylesheets/screen.css
<DouweM>
kinginky: ...
marcdel has quit [Ping timeout: 276 seconds]
<shevy>
northfurr obviously that file does not exist there
<northfurr>
yeah but if i create it manually and rake generate/preview it deletes it
<shevy>
a shame that compass is too dumb to deal with such a situation
<kinginky>
DouweM: ... ..
<DouweM>
kinginky: :)
evenix has joined #ruby
<kinginky>
DouweM: :)
<shevy>
guys stop with the dot wars
<benzrf>
kinginky: pls 2 run my demo
<shevy>
we may run out of them eventually
<wallerdev_>
…
<DouweM>
we can just smelt other letters. we should get like 7 out of y
<shevy>
lol
djbkd has quit [Quit: Leaving...]
<kinginky>
looks like wallerdev_'s stealin the dots off the wire maaaannn
<benzrf>
…
<DouweM>
omg I'm almost done studying for my test and it's only 3am
<kinginky>
benzrf: officially the raddest demo ive ever seen in my life
<benzrf>
swag
<centrx>
You have plenty of time left
<benzrf>
DouweM: whats the test on
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM>
intelligent systems
jjbohn has quit [Quit: Leaving...]
<timgauthier>
why is it elsif and not else if?
<timgauthier>
or elseif* rather
<DouweM>
ask Matz
<kinginky>
because, yes
emaxi_ has quit [Remote host closed the connection]
<timgauthier>
ok kinginky thank you for the precise reply
<kinginky>
tim im kidding, sry :P
<timgauthier>
except that ruby isn't the only language like that
<kinginky>
no good reason though
<timgauthier>
;)
sailias has joined #ruby
<timgauthier>
it sounds truthy to me
<kinginky>
probably just quicker to type??
emaxi has joined #ruby
<kinginky>
it's a lot of work, reaching for that e and hitting the space bar man
<RubyPanther>
with else if your optional blocks get indented needlessly in a way that makes the code less clear
<timgauthier>
i know right? use Dvorak wimp
<benzrf>
python has elif !
<timgauthier>
wow
<kinginky>
elif/elsif are wiser imho
afreidah1 has joined #ruby
<timgauthier>
how?
<benzrf>
and haskell does not have extra elif clauses at all!
<Devanon>
timgauthier: at least it is better than the 'elif' used in python :/
<kinginky>
not only is it quicker/easier to type (and very commonly used)
mansi has joined #ruby
<kinginky>
it's easily learned
<timgauthier>
what is elif
SilkFox has joined #ruby
SCommette has joined #ruby
<kinginky>
and also for the reason RubyPanther pointed out
<timgauthier>
though yeah that was easy to type
<kinginky>
elif (python) == elsif (ruby) == else if
<DouweM>
== elseif (php)
<RubyPanther>
elsif makes it so you can use if's like a case statement
<kinginky>
ah forgot bout ol' php
<kinginky>
poor guy
<kinginky>
RubyPanther: or u could just use a case
<kinginky>
:D
<DouweM>
RubyPanther: how do you mean?
thrillagorilla has quit []
dima_ has joined #ruby
helpD has joined #ruby
<RubyPanther>
case is intended to be used heavily with === and so if you use it for a general if statement then you reduce the clarity of the correct === ones
<kinginky>
case is still diff too
<kinginky>
because if/elsif is going to go down the tree one by one til one matches
<kinginky>
case i dont think does this (correct me if im wrong)
<kinginky>
case is more explicit (I think)
<kinginky>
RubyPanther: i still dont get it, but, yeah. if u want to explain it im all ears.
havenwood has quit [Remote host closed the connection]
<DouweM>
yeah, not quite sure what you mean either
toastynerd has joined #ruby
<kinginky>
DouweM: is what i said about right? are cases "more explicit" than if/else?? just curious if that's right
<DouweM>
what do you mean by more explicit?
<kinginky>
hmm
<kinginky>
for instance
<kinginky>
a=123
emaxi has quit [Ping timeout: 276 seconds]
<kinginky>
if a == 1; .. elsif a== 2; ... elsiffisdjfo
<kinginky>
shit, that sa horrible example
<kinginky>
give me 5 mins
mac_cosmo has quit [Quit: mac_cosmo]
St_Marx has quit [Ping timeout: 245 seconds]
arubin has joined #ruby
<kinginky>
DouweM: i take everything back. i unsay everything i said. forget it :D
helpD has quit [Ping timeout: 252 seconds]
afreidah1 has quit [Ping timeout: 246 seconds]
<DouweM>
done and done
<kinginky>
ty sir
<kinginky>
my mind's in lalaland
amclain has joined #ruby
phruby has joined #ruby
dima_ has quit [Ping timeout: 276 seconds]
<DouweM>
also brb does indeed mean be right back
<kinginky>
where objects grow on trees and complexity is a thing of the past
<timgauthier>
so to clarify
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier>
case does go through the list in the order you write until it matches then it stops correct?
evenix has quit [Remote host closed the connection]
<DouweM>
timgauthier: afaik
<phruby>
is the instance variable in a singleton method the instance variable of the class or the instances
<kinginky>
timgauthier: this is where my derp moment happened. im 98% sure, yes
<timgauthier>
ok
fijimunkii has quit [Max SendQ exceeded]
marcdel has joined #ruby
djbkd has joined #ruby
<kinginky>
phruby: it is instance if its a real singleton i think
evenix has joined #ruby
screen_da_youth has quit [Remote host closed the connection]
marcdel has quit [Client Quit]
<kinginky>
oh singleton method
toastynerd has quit [Ping timeout: 252 seconds]
<kinginky>
still the instance
glanzi has quit [Remote host closed the connection]
<kinginky>
i think
<DouweM>
phruby: like Class.method ? any @var in there is on the class
<kinginky>
singleton should be one instance of a class.
<RubyPanther>
>> class Foo; def initialize n=1;@n=n end ; def === rval; (@n % 2) == (rval % 2) end; end ; f1,f2 = Foo.new(42), Foo.new(99) ;case 2 when f1; 'even' ; when f2; 'odd' end
<DouweM>
kinginky: singleton has slightly different meaning/connotation in Ruby
<kinginky>
DouweM: that is my failure here is i've never paid attention or utilized singleton pattern in ruby
<kinginky>
until recently which is my own (lacking) implementation
<phruby>
DouweM: thank you
<kinginky>
has it gotten easier since 1.8-1.9?
redondos has quit [Excess Flood]
<timgauthier>
man, i dream of a irc client where i can css code things like make eval-in a lighter colour
<DouweM>
RubyPanther: right
thelamest has quit [Max SendQ exceeded]
<RubyPanther>
That is what case is for. calling the === method on the object given to when with the argument from case as the argument, and giving you back the one that is true
redondos has joined #ruby
<kinginky>
timgauthier: google 'cssdesk'
gregf has quit [Quit: WeeChat 0.4.3]
jtz has quit [Max SendQ exceeded]
ikawnoclast has quit [Max SendQ exceeded]
<kinginky>
< -- not much of a designer, but lately ive been trying to expand my skillset. cssdesk has been invaluable
<RubyPanther>
if doesn't do any of that, so if you're not doing any of that, then it is a closer match for your intent
<DouweM>
RubyPanther: right. I know what it does, I just don't see how this is related to the "elsif" vs "elseif" vs "else if" discussion :p
<timgauthier>
thats neat
fflush has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
<timgauthier>
i use css/sass quite liberally
<timgauthier>
what i meant was i want an IRC client that lets me apply CSS
<DouweM>
timgauthier: YES, a css-styleable irc client would be great
<kinginky>
ohhhh
<timgauthier>
and each user has an id= as their name
<DouweM>
that's what I like so much about atom.io
<kinginky>
what is that even possible
ktun has joined #ruby
<phruby>
DouweM: whats the diff between class variable and instance variable of a class
jtz has joined #ruby
<kinginky>
hahaha
<DouweM>
everything's just HTML and CSS, ready to be modded
ekarlso has quit [Max SendQ exceeded]
<kinginky>
that's so sick
<DouweM>
kinginky: everything is possible
<timgauthier>
atom.io sucks until someone writes cmd shift / tag closure
<timgauthier>
also, i couldn't figure out the irc client
<kinginky>
phruby: one is defined ONCE, one is defined on any new instance
<DouweM>
phruby: forget @@class_variables exist
gregf has joined #ruby
<timgauthier>
and i suspect it won't be a cheap app either
<DouweM>
phruby: they're nothing but trouble
nateberkopec has joined #ruby
afex has quit [Max SendQ exceeded]
ikawnoclast has joined #ruby
jtz has quit [Max SendQ exceeded]
evenix has quit [Ping timeout: 245 seconds]
<kinginky>
and i agree w/ DouweM
ikawnoclast has quit [Max SendQ exceeded]
<DouweM>
timgauthier: atom.io sucks because it's still in early stages and lots still needs to happen :)
<kinginky>
it is a world of hell
<phruby>
DouweM: they are inherited by subclasses right as opposed to @ of a class
davispuh has quit [Remote host closed the connection]
<DouweM>
timgauthier: and I can't imagine it'll be more expensive than Sublime etc
<benzrf>
>implying that atom.io doesnt suck because it's just sucky
djbkd has quit [Max SendQ exceeded]
<DouweM>
phruby: think so
<timgauthier>
yeah it also crashes a lot for me DouweM :( but its a neat product!
<DouweM>
benzrf: what's your beef with atom?
RowdyChildren is now known as RowdyChild|Away
<benzrf>
>runs on web tech
ktun has quit [Client Quit]
<benzrf>
>is proprietary
<DouweM>
timgauthier: yeah for me too. it's no where near ready
<benzrf>
>is more ST than ST
<benzrf>
ew
<DouweM>
benzrf: webtech isn't necessarily bad
<timgauthier>
yeah it is actually quite slow benzrf
jtz has joined #ruby
Nilium has quit [Max SendQ exceeded]
<DouweM>
benzrf: won't be proprietary forever
ekarlso has joined #ruby
<DouweM>
benzrf: hehe <3 ST
<timgauthier>
and when it has issues it pops up the safari dev tools internally lol
<benzrf>
vim/python is to ruby/st as ruby/st is to nodejs/atom.io
<benzrf>
i say this as a ruby user >:{
<DouweM>
but yeah it's nowhere near production ready yet
<kinginky>
timgauthier: sounds like an apple problem :P
ekarlso has quit [Max SendQ exceeded]
jtz has quit [Max SendQ exceeded]
ikawnoclast has joined #ruby
Nilium has joined #ruby
ikawnoclast has quit [Max SendQ exceeded]
<timgauthier>
but where are we going to use atom.io for testing if it isn't production ready!
<DouweM>
benzrf: and yet it was built by a Ruby shop
<kinginky>
a website cant popup ur dev tools on its own
<benzrf>
bah
<timgauthier>
atom.io is apple only kinginky
djbender has joined #ruby
<kinginky>
oh
<kinginky>
>.<
<kinginky>
*shuts the fuck up*
<timgauthier>
its not a website, its atom.io... a "native" client
Hanmac has joined #ruby
<kinginky>
i got u now
emaxi has joined #ruby
<kinginky>
;)
<DouweM>
timgauthier: for now anyway
<timgauthier>
but thats what is weird about it right
<kinginky>
the ".io" tricked me
<kinginky>
haha
mehlah has quit [Quit: Leaving...]
<timgauthier>
its "native" but it isn't at all
jtz has joined #ruby
<benzrf>
why do people keep making editors when vim and emacs already exists
<DouweM>
yeah, it's just called Atom, the site is .io
<benzrf>
it boggles the mind
<DouweM>
benzrf: lolol
<timgauthier>
no the actual app is called atom.io
<timgauthier>
isn't it?
fijimunkii has joined #ruby
<DouweM>
timgauthier: don't think so
<kinginky>
benzrf: well in general i agree but i love my aptana honestly
<timgauthier>
oh it isn't look at that
<kinginky>
there are enough IDEs out there :P
<DouweM>
timgauthier: "Atom is a desktop application based on web technologies"
<wallerdev_>
isnt aptana a pile of java
<DouweM>
editor != IDE but okay
<timgauthier>
yea
Es0teric has joined #ruby
<timgauthier>
i hate java based apps
<shevy>
haha
<timgauthier>
i'll use a html based local app over anything java any day
<kinginky>
wallerdev_: unfortunately it is in java but generally does what few and simple things i need it to do
<benzrf>
and ill use my lovely C-based editor kthx
<shevy>
java rules the world
<kinginky>
i dont hate all java apps
<kinginky>
i like well-written java apps
djbkd has joined #ruby
<timgauthier>
i don't know of any well written java apps
<wallerdev_>
i cant think of one java app that has a great experience
<kinginky>
i hate moderately well-written java apps and anything underneath
<shevy>
I like the amount of codes these well written java apps have
<timgauthier>
wallerdev_ :P
jtz has quit [Max SendQ exceeded]
<wallerdev_>
at least on a mac
Hanmac1 has quit [Ping timeout: 245 seconds]
<wallerdev_>
java is awful
<timgauthier>
yea
<wallerdev_>
everythings wrong
<kinginky>
dunno bout max
<kinginky>
mac
<shevy>
can you tell me a great java app
<timgauthier>
remember installing X11?
<timgauthier>
yeah i don't do that anymore
<shevy>
x11 is easy
<shevy>
all you have to do is get all the components in the right build order
<Nilium>
IntelliJ is the only nice Java thing I can think of.
<wallerdev_>
java is okay for non-ui projects haha
<Nilium>
For varying levels of nice.
<kinginky>
java is not so bad u just have to have the right expectations
ikawnoclast has joined #ruby
chipotle has joined #ruby
thelamest has joined #ruby
<wallerdev_>
or android development
jtz has joined #ruby
<timgauthier>
shevy not lately, x11 has been broken on and off, and I believe apple has dropped support for it
<kinginky>
im sorry but i cant hold it inside anymore
yarou has quit []
<kinginky>
i hate apple
<kinginky>
:)
<timgauthier>
hahaha exactly shevy :P
kloeri has quit [Read error: Connection reset by peer]
<DouweM>
kinginky: and why would that be
ekarlso has joined #ruby
<kinginky>
because they sell overpriced computers with a nice case
<timgauthier>
i think it is kinginky's thing
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sski has joined #ruby
<shevy>
hmm ignore entry 46, dunno how that happened
MissionCritical has quit [Max SendQ exceeded]
twiceday has quit [Max SendQ exceeded]
thelamest has quit [Max SendQ exceeded]
<DouweM>
I think hate against a company is so arbitrary. what has Apple ever done to you
fumk has quit [Excess Flood]
ValicekB has quit [Max SendQ exceeded]
<DouweM>
you don't have to like it, but hating it is pointless
kloeri has joined #ruby
<wallerdev_>
yeah apple computers are overpriced, but cant beat the OS
<kinginky>
nothing, because i havent let them ;)
<DouweM>
wallerdev_: +
<kinginky>
i had an iphone
<DouweM>
1
raycloud has quit [Max SendQ exceeded]
<kinginky>
its not like im an apple hater just to hate
fumk has joined #ruby
<kinginky>
and in fact, good for them
wookiehangover has joined #ruby
njection has quit [Max SendQ exceeded]
<kinginky>
perhaps im jealous
<kinginky>
;)
<timgauthier>
i think it is a shame that a premium brand is the only company making a good OS for their machines
<wallerdev_>
im an apple fanboy
<kinginky>
the point is more about the principle and the way they conduct business
twiceday has joined #ruby
<DouweM>
kinginky: because that's so different from [insert other large tech company]
<timgauthier>
and i am sad webOS didn't take off, because it would have been a nice competition to apple
yogie has quit [Max SendQ exceeded]
jcs222 has quit [Max SendQ exceeded]
Kabaka_ has quit [Max SendQ exceeded]
myke has quit [Max SendQ exceeded]
twiceday has quit [Max SendQ exceeded]
myke has joined #ruby
<kinginky>
DouweM: well, right. i dont spend money on things that are available for free and do what i need them to do. so i have little to no experience there =\
inverses1uarelaw has quit [Max SendQ exceeded]
jcs222 has joined #ruby
<DouweM>
all right
<kinginky>
if i need windoze
<kinginky>
i download it
<kinginky>
but the truth is, id do anything NOT to use windoze
<DouweM>
but hating Apple makes no sense
inverses1uarelaw has joined #ruby
<DouweM>
hehe, I agree with you on that
<timgauthier>
kinginky even buy an apple? ;)
<kinginky>
i dont HATE it. that was an overstatement.
tkuchiki has joined #ruby
<kinginky>
i own a macbook
<kinginky>
i just dont like it
<DouweM>
lol
<DouweM>
lol
<shevy>
lol
<DouweM>
you're the worst hater ever
twiceday has joined #ruby
<kinginky>
it's made for joe schmoe 50 yr old painter man
<shevy>
that was the coolest thing ever
<shevy>
but you use it!
<shevy>
you have it!
<kinginky>
im 24 yr old 12-hr-a-day coder man whose coded for 16 yrs
<shevy>
you are a maccie!!!
<kinginky>
i need power, reliability and speed for a good price
<DouweM>
kinginky: you know who you're talking to here right? the Ruby community is pretty much all Mac
<kinginky>
not fancy shit
<shevy>
and you are an apple user!
<shevy>
no
<shevy>
linux here
<DouweM>
kinginky: because an MBP won't get you those?
<timgauthier>
ok, so i'm on a site, they talk about this HTML element in this framework. then they show an example of it... WHY do they show a .jpg as the example? why don't people just put example htmlcode :|
thelamest has joined #ruby
<kinginky>
what is an MBP?
<DouweM>
MacBook Pro
twiceday has quit [Max SendQ exceeded]
<zorak>
whats yield do?
<DouweM>
Mine's powerful, reliable and fast
<deepy>
timgauthier: so that you shouldn't copypaste and instead learn from it
<zorak>
its like puts but with blocks?
<kinginky>
i never said that. i said i just dont personally prefer the interface or anything
<shevy>
lol
<timgauthier>
oh, is there any tools that convert haml to erb? or english? :P
<DouweM>
good price, not so much :P
<kinginky>
why would i re-learn all the things i know?
<DouweM>
but good price depends on your wallet
thelamest has quit [Max SendQ exceeded]
<deepy>
timgauthier: but then again, some people just want to watch the world burn
<kinginky>
when what i have does what i need for a fraction of the price?
<shevy>
zorak you use yield to access the content of a block passed to a method
<DouweM>
kinginky: you definitely didn't "just say that" lol
<timgauthier>
its an example of a bootstrap element.. it wouldn't be a copy paste
yogi has joined #ruby
snath has quit [Ping timeout: 252 seconds]
<zorak>
shevy: dont get it
<shevy>
zorak def foo; end; foo() { 'bla' } <-- you can access to 'bla' via yield, inside method foo()
twiceday has joined #ruby
Kabaka_ has joined #ruby
<kinginky>
i didnt say it wouldnt work for what i do
<zorak>
??
<shevy>
zorak it is super simple, but if you do not know what a block is then you have no chance of understanding it
<kinginky>
it woudl, ive used macs. i own one and my ex had one that i used when my computer was broken for months
<benzrf>
zorak: the yield keyword calls the block that the method received
narcan has quit [Ping timeout: 245 seconds]
<DouweM>
kinginky: I was mostly going off of your initial "I HATE apple". the rest of your arguments/considerations make more sense
<kinginky>
just that id rather use what i know and know i can rely on knowing
<kinginky>
DouweM: w/ due respect i DID say that was an overstatement, that i dont HATEapple, just that its not for me and i disagree with some aspects of their company
<benzrf>
zorak: if you call foo {code_here}, then saying 'yield' inside the foo method will run code_here
<DouweM>
kinginky: I like OS X, and the build quality is great, and I've decided I think that's worth the money. YMMV
<shevy>
timgauthier I can not click on such an url
<shevy>
it has erb in it
<benzrf>
zorak: it calls the block that the current method was passed
<timgauthier>
the level of which i don't understand haml is epic
fake-bruceadams has joined #ruby
jason__ has quit [Remote host closed the connection]
<DouweM>
kinginky: right, but that was after your initial hate statement :) with the discussion afterwards I have no problems
<kinginky>
DouweM: u never asked what i DO like about apple. i think they offer a GREAT user experience and a reliable and well-updated system
<benzrf>
DouweM: >mfw people not using free software
<benzrf>
DouweM: u make rms cri
fflush has quit [Quit: fflush]
twiceday has joined #ruby
<shevy>
zorak, if you know what a block is, how can you not understand that a block has content? the content is what is between {}
<DouweM>
lol
raycloud has joined #ruby
<kinginky>
but again,for me, UX is not of concern
<timgauthier>
it doesn't work though :P
fake-bruceadams has left #ruby [#ruby]
<kinginky>
i could work on cmd line if i wanted
<shevy>
and via yield you access the content of a block, it's so simple
<DouweM>
kinginky: hehe, I have no problem with any of that :P I was just going off of your initial statement
<kinginky>
just, who would?
<kinginky>
DouweM: understood :)
thelamest has joined #ruby
twiceday has quit [Max SendQ exceeded]
sethen has joined #ruby
<kinginky>
blocks are awesome btw timgauthier: take the time to learn them through and through
<kinginky>
it will be invaluable later (and now)
jason__ has joined #ruby
ponga has quit [Quit: Leaving :)]
<timgauthier>
blocks? like do blocks?
Spami has quit [Quit: This computer has gone to sleep]
<kinginky>
i went back to school for that very reason. my mom suggested it. i went back, nope, theyre all a bunch of burnouts who dont even do their HW. they skate by and get a degree
<shevy>
at age 8 I got into judo
<timgauthier>
yay i got it to convert!
<DouweM>
shut up old guy shevy
<kinginky>
it's so lame. i cant stand it
<timgauthier>
now i can read it!
<kinginky>
so i quit school. now i just freelance
<shevy>
timgauthier is that the missionary thing
<benzrf>
meh
<timgauthier>
yes ;)
lw has joined #ruby
<DouweM>
I'm studying Computer Science at a fairly large university, there's a lot of people "like me" here
<kinginky>
ooohhhh ok im starting to get it now
twiceday has joined #ruby
thelamest has joined #ruby
<benzrf>
i wanna go to college to do completely inapplicable-to-anything compsci
<benzrf>
:-D
<kinginky>
so THIS is the fucking place all the young bloomers go
* timgauthier
knocks on peoples doors and asks if they want to know .erb
<DouweM>
benzrf: I love that :P
dopie has joined #ruby
<kinginky>
we got a what, 9 yr old, 8, and 5 yr old starter in here now?
<dopie>
#html
<kinginky>
hahaha
<shevy>
yeah
<kinginky>
my interest in computers started @ 5. we were lucky. my dad's job got us a computer+internet (28.8k woooo!)
twiceday has quit [Max SendQ exceeded]
thelamest has quit [Max SendQ exceeded]
<shevy>
I am slowly beginning to understand why the elderly people want to murder the youngins
<kinginky>
4 or 5
<timgauthier>
i should go into html and keep asking for useless elements
<benzrf>
kinginky: nah only 6
<benzrf>
maybe 7 idr actualy
ddv has quit [Ping timeout: 245 seconds]
<timgauthier>
shevy i understood that as soon as i met a baby for the first time
<shevy>
timgauthier I propose <porn> tag as a new vital addition
<benzrf>
just remember readin a book about truebasic back in 2nd
<DouweM>
one of my first words was "digdig", my way of pronouncing "licht", the Dutch word for "light" :P I've always been fascinated by technical stuff
<shevy>
lol timgauthier
jason__ has quit [Ping timeout: 240 seconds]
<timgauthier>
lol exactly shevy
<dopie>
kinginky, i was running on a 14.4k and using Terminat 4.0
<dopie>
playing Doom online with others
<centrx>
My first word was ruby
<dopie>
and duke nukem
<DouweM>
I said that pointing at a lightswitch, for the record
<shevy>
my first word was cat
<timgauthier>
dutch is so cute
djbkd has joined #ruby
<timgauthier>
such gibberish
<DouweM>
lol
<benzrf>
myyyyyyyy first word was church-turing thesis <- tru fax B)
<kinginky>
benzrf: ya when i started coding is a blur kind of. asked my parents "how do they make video games?". my mom said "I think it's programming". after i heard that sentence, i never stopped for a second. that's all i know. though my interests have drifted drastically from games, my love and passion remains
twiceday has joined #ruby
funburn has quit [Quit: funburn]
<benzrf>
kinginky: cools
<DouweM>
kinginky: nice
<timgauthier>
take german words, remove all of the syntax of masculine or feminine words (good idea) and then just add random vowels
twiceday has quit [Max SendQ exceeded]
ner0x has quit [Quit: Leaving]
<timgauthier>
kinginky thats how i got into design
<DouweM>
timgauthier: that's about right
<benzrf>
i got started cuz i found a BASIC program for a caesar cipher in a book and my dad roped me into learning a bit of it in addition to keying into the program for me
<kinginky>
timgauthier: whats ur story then?
<timgauthier>
joined a mod team to make levels
<kinginky>
benzrf: what a legit fuckin way to get into coding man. ur dad is an inspiration!
thelamest has joined #ruby
twiceday has joined #ruby
<timgauthier>
realized how much i enjoy the aspect of designing the experience
<DouweM>
benzrf: you're crazy
<dopie>
I became a bbs modder
<dopie>
for iniquity
<benzrf>
DouweM: wenk wenk
<kinginky>
timgauthier: awesome
<timgauthier>
ensuring that you hit the right points and that the correct experience without forcing you to do anything
zachallett has quit [Remote host closed the connection]
<kinginky>
u know its interesting how ppl get into coding for a million reasons. but we all stay for one. CODING
<benzrf>
bitches i got a head start
<kinginky>
i love computers <3 :D
<DouweM>
money works too
raycloud has joined #ruby
<timgauthier>
then did textures cause i had too, learned how to design print design and visual design
<benzrf>
pfft computers suck
<kinginky>
money works too ;)
flowerhack has quit [Quit: Connection closed for inactivity]
<DouweM>
I've seen a lot of people just in it for the money
<timgauthier>
then realized how they connect
thelamest has quit [Max SendQ exceeded]
twiceday has quit [Max SendQ exceeded]
<benzrf>
they are a dumb way to get a platform for computing on
ddv has joined #ruby
<benzrf>
stupid von neumann arch
noob101 has quit [Ping timeout: 240 seconds]
<timgauthier>
i am not a programmer, I just write logic because i get to make the front end do nice things :D
<kinginky>
DouweM: i think this is the problem in the field at large. ppl see big bucks or something (which it isnt even that great really) and they just shit their way through uni
<kinginky>
it's bullshit
<wallerdev_>
i program for the glory
<benzrf>
>tfw graduates cant fizzbuzz
fflush has quit [Quit: fflush]
<kinginky>
timgauthier: writing a frontend, backend. doesnt matter, code is code
<DouweM>
kinginky: agreed
<wallerdev_>
every line of code is a battle scar
<kinginky>
=]
<benzrf>
cmon everybody join the superiority circlejerk
<DouweM>
wallerdev_: lol
<shevy>
every line of ruby is visual beauty
twiceday has joined #ruby
<centrx>
I can write fizzbuzz in less than 30 seconds
<DouweM>
benzrf: sorry, we'd already started without you
<shevy>
I can knock you out in less than 20 seconds
<wallerdev_>
i was there when heartbleed happened, on the front lines, patching left and right
<timgauthier>
i only use homegrown organic syntax written with biodegradable recycled ink with a vegan friendly synthetic quill
RaptorJesus has quit [Remote host closed the connection]
<DouweM>
hahaha
raycloud has quit [Max SendQ exceeded]
<kinginky>
DouweM: thats why i left uni for now. i make decent money (more than enough for myself) and id rather make money and enjoy my life than be in school and be stressed/miserable accruing debt debt debt
binaryhat has quit [Quit: Leaving]
<DouweM>
kinginky: you can combine school and a job you know
twiceday has quit [Max SendQ exceeded]
<kinginky>
DouweM: i think a lot of intern type of things are kind of a ripoff though
<DouweM>
kinginky: but yeah, I enjoy work a lot more than uni as well. but with one year left until my Bachelor's it's a bit pointless to stop now
<kinginky>
they wanna pay me like $8/hr or some crazy ass shit
<timgauthier>
where was this talk given? lol
<DouweM>
hehe
<DouweM>
found your own company then :P
<wallerdev_>
depends where you live kinginky
<kinginky>
DouweM: if i feel dumb its just that. 2 yrs left. but then again, i can go back any time i want. i should be happy 1st, worry about success later. im only 24 for god's sake
twiceday has joined #ruby
<kinginky>
and DouweM: that is really my eventual goal
<DouweM>
:)
ghr has joined #ruby
<kinginky>
my interest/passion lies most heavily in code but im an entrepreneur at heart, too
<DouweM>
hehe, same here
combusean has joined #ruby
<kinginky>
would u be willing to get in touch outside of IRC, just to be in touch? perhaps we can help each other out at some point
<timgauthier>
i'm crying i'm luahging so hard
<DouweM>
kinginky: yeah sure, contact info is at douwemaan.com :P
<timgauthier>
i can't watch this now, i'm going to wake everyone else up
<benzrf>
timgauthier: have u seen his more famous talk, 'wat'
<timgauthier>
not right now
<benzrf>
personally i prefer the types one
<timgauthier>
i need to look at those tomorrow
<DouweM>
ah wat is great
<benzrf>
useing you're type's good > wat
<DouweM>
will check it out then
<timgauthier>
DouweM thats the first time i've seen a fixed position sidebar menu that i liked... good job!
danshultz has joined #ruby
<DouweM>
timgauthier: :D
<kinginky>
DouweM: your whole "programming story" is really similar to mine xD its funny
<timgauthier>
oh man... that... is clever
<kinginky>
"used to do freelance PHP"
<timgauthier>
the copyright notice...
<kinginky>
xD
<kinginky>
i remember those days
<DouweM>
timgauthier: hmm?
<timgauthier>
oh nm, its not just the copyright
<benzrf>
ugh i used to do php
<timgauthier>
using your name in the menu with content in the body
<DouweM>
timgauthier: :)
<timgauthier>
i don't read good
lw has quit [Quit: s]
<peret>
its cool timgauthier
<DouweM>
that's pretty much the point of the site :P
<DouweM>
the layout anyway
<timgauthier>
yeah... i actually read it now, schöne
raycloud has joined #ruby
<DouweM>
yo Ethan :P
<benzrf>
DouweM: how good do u know haskelll
yano has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 258 seconds]
<DouweM>
benzrf: enough to love it, too little to be anywhere near productive :P
<benzrf>
haskell taught me that static typing can be excellent and not just a pita
<DouweM>
fucking benzrf :P
<timgauthier>
what is static typing?
<benzrf>
timgauthier: when types are known/specified at compile/parse time
MissionCritical has joined #ruby
<benzrf>
instead of at runtime
<benzrf>
i.e. in java or C
<timgauthier>
ok
<timgauthier>
so compiled vs runtime
<timgauthier>
got it
<benzrf>
on the plus side: they catch type errors at compile time
<DouweM>
so it was nice talking to you guys, but I'm gonna catch some sleep :P
<benzrf>
on the minus side: type annotations tend to be annoying, verbose, and not super expressive
<benzrf>
at least
<benzrf>
in java o=
<timgauthier>
cya DouweM, i should too at some point
<benzrf>
DouweM: Nightmare
<benzrf>
*night
<benzrf>
shit
<DouweM>
:')
diegoviola has joined #ruby
<timgauthier>
lol
afex has joined #ruby
deric_skibotn has quit [Ping timeout: 258 seconds]
<timgauthier>
ruby is so kind, it let me use elsif when i should have just had else
<shevy>
lol
<kinginky>
:-o but that isnt friendliness. it would be a bug. my presumption is that your elsif just passed as true
<kinginky>
so be careful with that if/end tree
<benzrf>
if anybody here has not tried haskell
<kinginky>
u might still want to add in that else
<benzrf>
pls go explode ur brain with FP
<benzrf>
its magic~
<kinginky>
if i do if/elsif,i always add else too
<kinginky>
almost always
<timgauthier>
well it was if its this then do this, else do that, end
<kinginky>
benzrf: a little. what is FP?
aspires has joined #ruby
<benzrf>
functional programming
<timgauthier>
but instead of else i just put elsif with no arguement
jlast has joined #ruby
tungd has joined #ruby
cescalante is now known as ce_afk
<kinginky>
timgauthier: oh ok well, then if that party of ruby evaluates "nil" as true?? i dunno. just doesnt sound intuitive but if its working as u expect, good deal
djbkd has quit [Quit: Leaving...]
<timgauthier>
i corrected it and made it a proper else
<timgauthier>
just interesting that it didn't fail on me
emaxi has quit [Remote host closed the connection]
<kinginky>
timgauthier: personally i think that is wise. your code is your cdoe though :)!
ValicekB has joined #ruby
pen has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 258 seconds]
trhodes_ has quit [Ping timeout: 264 seconds]
thomasxie has joined #ruby
toastynerd has joined #ruby
thelamest has joined #ruby
dopie has quit [Ping timeout: 252 seconds]
deens has joined #ruby
kloeri has quit [Read error: Connection reset by peer]
<timgauthier>
what is setting the length of this do statement (i ... page_number).each do
<xunil>
kinginky: I want to use it behind a http/https proxy.
<xunil>
kinginky: the gem itself doesn't expose http proxy configuration.
lw has joined #ruby
<xunil>
kinginky: so I hope that the underlying library/api could use an http proxy
<mr_bignum>
Learn git is a challenge. But I choose git than svn.
crzrcn has quit [Quit: Leaving.]
ce_afk is now known as cescalante
<tcstar>
maybe the wrong room, if so let me know.. is there a trick to installing passenger with nginx without using rvm to compile nginx itself? ( ie: i've already got nginx installed, configured, and running for the php sites i'm running )
<kinginky>
xunil: almost certainly u could modify the gem to do what u want. i thinkive heard of this gem but never used it. i guess i just dont see the use? i dont even really understand what it is for. for instance, how is this not bundler?
dik_dak has quit [Quit: Leaving]
<kinginky>
tcstar: if u are using rvm it would be wise to stick w/ rvm unless u know what ur doing (EXACTLY)
<benzrf>
kinginky: lack of feature
<benzrf>
dmtcp snapshots are dense binary, not sources
<benzrf>
so git cant merge em
x1337807x has joined #ruby
<kinginky>
benzrf: a little over my head i think. ill google it.
<xunil>
kinginky: this something like bundle but for puppet scm modules
radic has quit [Ping timeout: 258 seconds]
<xunil>
kinginky: So there is no way other than (monkey) patching the gem?
karmatr0_ has quit [Remote host closed the connection]
<kinginky>
xunil: perhaps there are some folks here who could help more than me
<kinginky>
xunil: i think u should leave out "monkey" and patch it
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kinginky>
why is it a monkey patch? because u did it?
<kinginky>
do it well, it wont be "monkey"...
karmatr0n has joined #ruby
<kinginky>
all is good
trhodes_ has quit [Ping timeout: 264 seconds]
agarie has quit [Remote host closed the connection]
kloeri has quit [Read error: Connection reset by peer]
<tcstar>
kinginky i only used rvm to install ruby and rails... but when i ran rvmsudo passenger_installer_nginx_module it wants to re-isntall nginx to a different location and when i allow it, the install doesn't work anyway -- so trying to get around that without having to uninstall my current nginx installation/configuration
kloeri has joined #ruby
<kinginky>
never used passenger or nginx but id reckon u just have some kind of path issue or whatnot. have u tried it without rvmsudo
jlast has quit [Remote host closed the connection]
thomasxie has quit [Remote host closed the connection]
<kinginky>
ohhh i just re-reads...
thomasxie has joined #ruby
<kinginky>
so, u had this stuff installed. then, u installed rvm. now, it wont work. is that right??
<tcstar>
had nginx installed, configured and running for my php apps... now getting a RoR app on the server... got ruby installed, got rails installed... got passenger installed.. run rvmsudo passenger-install-nginx-module and it wants to compile nginx...
RaptorJesus has joined #ruby
trhodes_ has joined #ruby
<kinginky>
tcstar: again, no real experience but it is almost 100% a paths issue as rvmsudo is going to presumably be looking in RVM paths
<tcstar>
if i uninstall my nginx completely and go with allowing it to compile it -- it doesn't work for even basic html pages ( the service wont start )
<kinginky>
ok
<kinginky>
so
x1337807x has quit [Ping timeout: 258 seconds]
<kinginky>
let's see. is nginx a gem? i really cant rememember...
<tcstar>
but, would prefer to just install passenger support in nginx without having to run rvmsudo passenger-install-nginx-module
<kinginky>
tcstar: in the guide, which step would u be at now?
lw has quit [Quit: s]
crystal77 has quit [Quit: Computer has gone to sleep.]
<kinginky>
tcstar: understandably, lets figure out the root issue 1st
<tcstar>
step 6 is the faulty step it would seem
RowdyChild|Away is now known as RowdyChildren
njection has joined #ruby
<kinginky>
ok, tcstar, u caught me at a good time. let me read a little into nginx/passenger and get back with u if no one else here has. ok?
chipotle has quit [Quit: cya]
<kinginky>
give me a bit, maybe 10-15 mins
<tcstar>
okay
chipotle has joined #ruby
<timgauthier>
yah thats beyond me tcstar
<timgauthier>
are you on mac?
<tcstar>
ubuntu
<kinginky>
i know theyre both web-oriented i just have no personal exp
pu22l3r has joined #ruby
<timgauthier>
ok then it isn't my CLANG error
<kinginky>
brb
Megtastique has quit []
Hobogrammer has joined #ruby
x77686d has joined #ruby
<kinginky>
so, im guaging here.. correct me if im wrong plz: nginx is a server middleware. passenger is something else.. these can run in rails? i hope that's right. and, are u in rails?
<shevy>
I am in rails nirvana man
<kinginky>
shevy u should help, man, ur way more experienced than me xD
<kinginky>
hope you all are buying up those bitcoins
<kinginky>
cheap as fuck
<timgauthier>
.present?
<timgauthier>
are they?
<kinginky>
duno right this second
<kinginky>
this morning ~$410-420
<benzrf>
420 blazei t
<kinginky>
its just the china news
<kinginky>
wanna make a bit of money, buy in and cash out when it goes back to $500-600
rezzack has quit [Quit: Leaving.]
<kinginky>
always a gamble but im fairly certain its not gonna go lower for long
pu22l3r has quit [Ping timeout: 258 seconds]
<tcstar>
all the info i'm seeing says that once passenger is installed, nginx MUST be re-compiled with the --add-module switch.. so looks like i'm SOL on that...
omosoj has quit [Ping timeout: 276 seconds]
<tcstar>
I haven't gotten into bitcoins at all actually... i feel lame lol
<benzrf>
im confused
oo_ has quit [Remote host closed the connection]
<timgauthier>
'i don't have that kind of money
<benzrf>
/usr/local/lib/dmtcp/libdmtcp.so exists but
sdouglas_ has quit [Remote host closed the connection]
<benzrf>
LoadError: Could not open library 'dmtcp/libdmtcp.so': dmtcp/libdmtcp.so: cannot open shared object file: No such file or directory
<benzrf>
?!
<centrx>
timgauthier, They can be bought in units of millionths
Celm has quit [Remote host closed the connection]
simplyaubs has joined #ruby
<timgauthier>
i see
sdouglas has joined #ruby
<timgauthier>
what is the inline operator syntax for an if statement again?
phinfonet has quit []
<jle`>
puts "hi" if foo
<centrx>
So if you have 0.05 cents lying around, you can buy 1 satoshi of bitcoins
omosoj has joined #ruby
<timgauthier>
and then a ; is an else ?
<jle`>
oh do you mean an if-then-else oneliner
<timgauthier>
yea
<timgauthier>
sorry, yeah i didn't ask that :S
<centrx>
It is called the ternary operator
<centrx>
or ternary conditional
<timgauthier>
if thing == thing then this else that
<centrx>
x ? y : z
Spami has quit [Quit: This computer has gone to sleep]
<centrx>
thing == thing ? this : that
<timgauthier>
how do i put x.present? == thang
<timgauthier>
ok..
<timgauthier>
thanks
<kinginky>
if the thing does this ? do this thing :(otherwise) do this
<timgauthier>
thats what i have then... something else causing problems
<centrx>
I usually put it in parentheses for clarity unless it is the return value of a method
<kinginky>
centrx: me too
<kinginky>
:LD
oo_ has joined #ruby
<kinginky>
:D
<kinginky>
great minds, great minds ;P
<timgauthier>
what do you put in ?
<timgauthier>
is (otherwise) a condition?
<kinginky>
it is what makes it ternary i presume anyway
<kinginky>
it means < --- ? if this thing
<centrx>
(thing == thing ? this : that)
<kinginky>
1 == 1 ?(if thats true) do this
<kinginky>
:(otherwise) do this
<centrx>
if ? then : else
<kinginky>
>> 1 == 1 ? puts 'a' : puts 'b'
<eval-in>
kinginky => /tmp/execpad-6f2b8e1ce2fe/source-6f2b8e1ce2fe:2: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' ... (https://eval.in/136644)
<kinginky>
the way i showed gives u an 'otherwise' case. not a great answer, but im pretty sure that's about it
_justin has joined #ruby
noob101 has joined #ruby
<timgauthier>
i didn't do exactly as you said
Cache_Money has joined #ruby
yogi is now known as yogie
<noob101>
hello
aspires has quit []
<timgauthier>
i made it .present? == 'journal'
<timgauthier>
hey noob101
<timgauthier>
kinginky i think i probably mis-spelled something
<kinginky>
timgauthier: not exactly what i thought but ya good deal. if it works, dont complain i guess. or learn why it does (which id be interested to know why, too)
<kinginky>
i dunno man i have ur old gist
<kinginky>
let me see
<centrx>
timgauthier, present? returns true/false
<timgauthier>
well i went to present? instead of presence
<kinginky>
ah, yes
<timgauthier>
refresh the gist
<kinginky>
i wass thinking there was a '?'!!
<timgauthier>
it has both new and old
<kinginky>
i knew there was
<kinginky>
:D
<centrx>
object.presence is equivalent to object.present? ? object : nil
<timgauthier>
presence doesn't have a ?
<kinginky>
i guessed 'presence?'
<timgauthier>
present does
deens has joined #ruby
osvico has joined #ruby
<kinginky>
but i havent used the full active support thing in yrs
<timgauthier>
thats ok :)
<kinginky>
i selectively pick things from it
<timgauthier>
haha yeah thats how this feels too
dima_ has joined #ruby
<noob101>
can someone show me some ruby code with html, I wanna see how you can use html and ruby together or how to use it as an online application
<timgauthier>
i LIKE the asset helpers
jamto11 has quit [Ping timeout: 276 seconds]
<kinginky>
centrx: presence() is ruby?? or active?
<noob101>
im new
<timgauthier>
noob101 you need to learn haskell
<centrx>
kinginky, ActiveSupport
JuanDaugherty has quit [Quit: Exit IRC/Hiberate]
yfeldblum has quit [Remote host closed the connection]
<kinginky>
noob101: it takes more than a few mins and some real passion u have to be able to look up a lot yourself and be ready to learn so much u will forget what u learned today 1 week from now.
<timgauthier>
i am messing yea
<kinginky>
get started w/ rails, sinatra as frameworks
<timgauthier>
its my troll detector
<kinginky>
if u want to use a DB, look into ActiveRecord, Sequel, etc
marcdel has joined #ruby
<centrx>
noob101, For "HTML and Ruby together", look at some erb files (also used in rails)
<timgauthier>
i recommend the getting started with rails tutorials
<timgauthier>
!g getting started with rails screencasts
<kinginky>
it takes 2000% reading intently, 200% IRC, and 1000% messing with code
mrmargolis has quit [Remote host closed the connection]
<timgauthier>
and 10x1000 errors that make little sense at first
<kinginky>
i should've done 200, 20. and 100, but whatever.
<noob101>
can I get a link please?
Celm has joined #ruby
<kinginky>
timgauthier: i love errors. they point u in a direction and give u something to go off of. what i hate is bugs that are really difficult to find and determine the cause of
Es0teric has quit [Quit: Computer has gone to sleep.]
<kinginky>
errors, believe it or not, are there to help u, not hurt u
<timgauthier>
yes kinginky
<timgauthier>
but when you still can't read the language
<timgauthier>
they don't make any sense
<kinginky>
i was there once too =]
<kinginky>
not too long ago
<timgauthier>
but as you TRY reading them and learning the language, they start to make more sense, and then they act as a way to help you learn even more
Galgorth has joined #ruby
Galgorth has quit [Client Quit]
<kinginky>
you should look into ruby as a language a lot
<kinginky>
and then into the source of gems
dima_ has quit [Ping timeout: 258 seconds]
<kinginky>
itll help, tremendously
deens has quit [Ping timeout: 265 seconds]
lw has quit [Quit: s]
<timgauthier>
i'm not good at that
<timgauthier>
it overwhelms me and i can't soak anything in
<kinginky>
timgauthier: i may not be the most knowledgeable, but if u want to add me, im gonna msg u my skype. feel free to ask questions there as im not always on IRC like some of these awesome guys
<timgauthier>
i've found that working with little bits that i can hack together slowly leads to me knowing and understanding more. Thats what is awesome about .erb type things for me
Es0teric has joined #ruby
crystal77 has joined #ruby
mansi has quit [Remote host closed the connection]
<timgauthier>
yeah its 5 am and i'm not normally up this late but sure
Es0teric has quit [Max SendQ exceeded]
locriani has joined #ruby
<kinginky>
timgauthier: that is exactly it. that is what will make u great. i can say this: u can never know it all, despite your intentions.
Es0teric has joined #ruby
<kinginky>
its more about finding something u want to do and doing it. u will learn by doing it not thinking about it
<kinginky>
but u are obviously on the right track
<kinginky>
and i hope i can help u in some way in the future
<timgauthier>
yeah i don't think my code worked right, it definitely stopped tossing errors, but it isn't forming the right links. bleh
<kinginky>
glad to see one more coder on this planet =]
<kinginky>
ill help u out man
<kinginky>
just get in touch after some slep
eynj has joined #ruby
aspires has joined #ruby
_maes_ has joined #ruby
combusean has quit [Quit: Leaving]
combusean has joined #ruby
sidik has quit [Ping timeout: 258 seconds]
helpD has joined #ruby
alexju has joined #ruby
Slavox is now known as Slavox|AFK
jason___ has quit [Remote host closed the connection]
karmatr0n has joined #ruby
momomomomo has joined #ruby
braincrash has quit [Quit: bye bye]
sski has quit [Remote host closed the connection]
sski has joined #ruby
mikeric has quit []
rakm has quit [Quit: Connection closed for inactivity]
helpD has quit [Ping timeout: 245 seconds]
Shidash has quit [Ping timeout: 245 seconds]
boostedb has joined #ruby
MillyBays has joined #ruby
braincrash has joined #ruby
aspires has quit []
eyeamaye1 has joined #ruby
aspires has joined #ruby
Milly_Bays has quit [Ping timeout: 245 seconds]
sski has quit [Ping timeout: 240 seconds]
_justin has quit [Quit: _justin]
sdwrage has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
lukec has joined #ruby
robbyoconnor has joined #ruby
chipotle_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
Celm has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 245 seconds]
Guedes0 has quit [Ping timeout: 276 seconds]
toastynerd has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has joined #ruby
sski has joined #ruby
<benzrf>
phew finally wrote smore quick code
<benzrf>
bye now =3
benzrf is now known as benzrf|offline
Steve445 has joined #ruby
microdex has joined #ruby
<microdex>
Did you guys know Ruby had Global Interpreter Lock before you started coding Ruby ?
nisstyre has joined #ruby
pen has joined #ruby
<centrx>
microdex, I don't think anyone would, it only beceomes relevant with Threads
abra_ has joined #ruby
freerobby has quit [Quit: Leaving.]
Slavox|AFK is now known as Slavox
chipotle_ has quit [Read error: Connection reset by peer]
Spami has joined #ruby
locriani has quit [Ping timeout: 258 seconds]
chipotle has joined #ruby
freerobby has joined #ruby
<mr_bignum>
how can I format a float number to show only two numbers after dot?
MatthewsFace has quit [Ping timeout: 258 seconds]
<Hytosys>
>> ‘%.2f’ % 123.45678
<eval-in>
Hytosys => /tmp/execpad-652d264b7412/source-652d264b7412:2: no .<digit> floating literal anymore; put 0 before dot ... (https://eval.in/136663)
<popl>
I bought a $7 piece of Gouda today. That's pretentious.
<Hytosys>
nothing wrong with liking cheese
<momomomomo>
i got 8 baby jimmy johns sandwiches for free today
ghr has quit [Ping timeout: 276 seconds]
<momomomomo>
actually more like 12
<popl>
momomomomo: who did you lie to?
<momomomomo>
Ha, I mentor at a local rails meetup, and no one wanted the leftovers
<popl>
hah
<momomomomo>
crazy people - that's good jimmy johns!
caveat- has quit [Read error: Connection reset by peer]
<popl>
I bet you totally purloined the sandwiches.
<momomomomo>
psh i asked everyone if they wanted any; everyone had had their fill
microdex has quit [Remote host closed the connection]
<momomomomo>
i gave away a cookie to the security guard, so purloin that sucka
<popl>
Hytosys: I also bought hummus, pita, and water crackers.
<popl>
Hytosys: I was listening to Enya.
<popl>
Hytosys: I think I smelled of burning sage.
<momomomomo>
popl: you're going to think I'm bullshitting you, but I got a fucking tray of crackers, hummus, and pita from work as leftovers from a rep
<momomomomo>
just on Friday
<momomomomo>
haha
<popl>
hah
benzrf|offline is now known as benzrf
<momomomomo>
carrots too ;o
sputnik13 has joined #ruby
<Hytosys>
next level pretentiousness
benzrf is now known as benzrf|offline
<popl>
benzrf|offline: make up your mind
simplyaubs_ has joined #ruby
iamjarvo has quit [Ping timeout: 265 seconds]
<popl>
Hytosys: Now I need to make the next step and start shopping at Trader Joes.
simplyaubs_ has quit [Client Quit]
<Hytosys>
popl: never do that :O
<momomomomo>
popl: Hytosys but trader joes is cheaper than the supermarket here :/
<Hytosys>
oh lol I thought you said "stop shopping"
caveat- has joined #ruby
<momomomomo>
popl: Hytosys case in point: bag of frozen berries at Target: $9; at trader joes: $4
emaxi has quit [Remote host closed the connection]
rakm has quit [Ping timeout: 246 seconds]
dinasour has quit [Remote host closed the connection]
mrgoodcat has quit [Ping timeout: 245 seconds]
emaxi has joined #ruby
ballPointPenguin has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
mikeric has joined #ruby
psyko666 has joined #ruby
emaxi has quit [Ping timeout: 276 seconds]
IceDragon has quit [Quit: Space~~~]
phansch has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Steve445 has joined #ruby
locriani has joined #ruby
Karunamon has joined #ruby
emaxi has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
pu22l3r has quit [Remote host closed the connection]
locriani has quit [Ping timeout: 258 seconds]
emaxi has quit [Remote host closed the connection]
Steve445 has quit [Quit: Steve445]
emaxi has joined #ruby
TllT has quit [Quit: Lost terminal]
JaTochNietDan has quit [Ping timeout: 246 seconds]
omosoj has quit [Ping timeout: 240 seconds]
lw has joined #ruby
omosoj has joined #ruby
yano has joined #ruby
JaTochNietDan has joined #ruby
afreidah1 has joined #ruby
Celm has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
emaxi has quit [Ping timeout: 240 seconds]
omosoj has quit [Client Quit]
tjr9898 has joined #ruby
boostedb has left #ruby [#ruby]
Steve445 has joined #ruby
afreidah1 has quit [Ping timeout: 252 seconds]
chris_thomson has quit [Quit: Zzz...]
Steve445 has quit [Client Quit]
ellbot has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Milly_Bays_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
grillermo has quit [Quit: bandtastic.me]
mrnugget has joined #ruby
Celm has joined #ruby
dima_ has joined #ruby
ascarter has joined #ruby
afreidah1 has joined #ruby
ellbot has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
crzrcn has quit [Quit: Leaving.]
s3ri0us has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ehc has quit [Quit: ehc]
noop has joined #ruby
tjr9898 has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
dima_ has quit [Ping timeout: 276 seconds]
jamto11 has joined #ruby
tjr9898_ has joined #ruby
MatthewsFace has joined #ruby
lw has quit [Quit: s]
oo_ has joined #ruby
aantix has joined #ruby
tjr9898 has quit [Ping timeout: 250 seconds]
jamto11 has quit [Ping timeout: 252 seconds]
sidik has joined #ruby
tungd has quit [Ping timeout: 250 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
lw has joined #ruby
dkamioka has joined #ruby
slawrence00 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Wolland has joined #ruby
freerobby has joined #ruby
rkazak has joined #ruby
Wolland has quit [Client Quit]
locriani has joined #ruby
lukec has quit [Quit: lukec]
mansi has joined #ruby
pu22l3r has joined #ruby
freerobby has quit [Ping timeout: 258 seconds]
mikeric has quit []
crzrcn has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has quit [Ping timeout: 265 seconds]
pu22l3r has quit [Ping timeout: 240 seconds]
tjr9898_ has quit [Remote host closed the connection]
helpD has joined #ruby
tjr9898_ has joined #ruby
<rkazak>
how well suited is rvm for osx ? does it integrate with ruby on osx or is it separate ?
rm_ has quit [Remote host closed the connection]
osvico has quit [Read error: Connection reset by peer]
<rkazak>
or, does it manage the ruby that comes already installed ?
rm__ has joined #ruby
osvico has joined #ruby
<TigerWolf>
I use RVM on osx and it works really well rkazak
sski has quit [Remote host closed the connection]
sski has joined #ruby
<TigerWolf>
rvm on osx will download and install the ruby version that you request - which is a good thing as you dont really want to use the system ruby rkazak
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
ahawkins has joined #ruby
nomenkun has quit [Ping timeout: 258 seconds]
anarang has quit [Remote host closed the connection]
<zorak>
so, if i have a == b && c == d
fieldfirst has joined #ruby
<zorak>
in this case is better a == b and c == d
emaxi has quit [Ping timeout: 276 seconds]
<canton7>
the difference really shows up when you have assignment. `a = b && c` vs `a = b and c`
funburn has joined #ruby
Xeago has joined #ruby
<canton7>
if b is false, the first one assigns c to a, while the second one assigns b to a and then evaluates c
anarang has joined #ruby
<zorak>
return true if die != 1 and die != 5 == return true if die != 1 && die != 5
nichtdiebohne1 has left #ruby [#ruby]
<zorak>
return true if die != 1 and die != 5 its the same than return true if die != 1 && die != 5
<canton7>
those two are equivalent, yes
<canton7>
'and' and 'or' are meant to be used for flow control though. 'do_something or raise "an exception"'
<canton7>
it's a perlism - not often seen in ruby
Xeago_ has quit [Ping timeout: 240 seconds]
<zorak>
thanks!
Xeago_ has joined #ruby
ephemerian has joined #ruby
sdouglas has joined #ruby
AlexRussia has joined #ruby
<canton7>
if I find someone doing 'a != 3 and a != 5' I tend to whack them with a large stick - they're breaking the common style, and they *will* get tripped up on the 'a = b and c' case
<canton7>
znwB]XF?TlIImQ/WV=u
<crome>
zorak: I recommend sticking with && in logical expressions though
<canton7>
oops
arturaz has joined #ruby
<crome>
sometimes people use "and" because it reads a bit better but you can shoot yourself in the leg because its actually not the same as &&
<unic0rn>
hi, is there any decent compiler translating yarv or mruby bytecode to javascript (preferably asm.js)?
spinx^ has quit [Ping timeout: 245 seconds]
<unic0rn>
if not, is there any at all documentation for mruby bytecodes other than the source code?
_justin has joined #ruby
ktun has joined #ruby
<unic0rn>
something like the book ruby under the microscope (which i haven't read yet, but from quick glance it seems it covers yarv only) would be preferred
combusean has quit [Ping timeout: 252 seconds]
cina has quit [Quit: leaving]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
spinx^ has joined #ruby
aalmenar has quit [Quit: No Ping reply in 180 seconds.]
dima_ has quit [Ping timeout: 250 seconds]
klaut has quit [Remote host closed the connection]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
aalmenar has joined #ruby
aalmenar has quit [Changing host]
aalmenar has joined #ruby
Waheedi has quit [Quit: Waheedi]
dANOKELO_ has joined #ruby
phansch has joined #ruby
kenneth has quit [Ping timeout: 250 seconds]
dANOKELO_ is now known as dANOKELOFF_
<Macaveli>
Are hot fixes the same as bug fixes or are bug fixes features?
Es0teric has quit [Quit: Computer has gone to sleep.]
dANOKELOFF_ has quit [Client Quit]
dANOKELOFF has quit [Ping timeout: 276 seconds]
dANOKELO_ has joined #ruby
dANOKELO_ is now known as dANOKELOFF
mr_bignum has quit [Ping timeout: 276 seconds]
<Mon_Ouie>
unic0rn: Have you considered Rubinius for that? It uses LLVM that might be easier to manipulate
Spami has joined #ruby
eyeamaye1 has quit [Quit: Leaving.]
dapz has joined #ruby
Zai00 has joined #ruby
<banister>
Mon_Ouie hello frenchie
<unic0rn>
Mon_Ouie: as far as i've noticed from some issue on github, it may be problematic to force rubinius to work with emscripten, because at some stage the llvm representation generated by rubinius lacks type information
<unic0rn>
so i've decided to rather write my own compiler translating the yarv or - preferably - mruby bytecode, to asm.js
<unic0rn>
that should end up being pretty fast
dawkirst has joined #ruby
ballPointPenguin has quit [Ping timeout: 265 seconds]
<unic0rn>
stdlib stuff written in ruby, taken from rubinius, may be handy though
drjblouse__ has quit [Ping timeout: 246 seconds]
Guest85414______ has quit [Ping timeout: 246 seconds]
<unic0rn>
but not the compiler itself
jpinnix____ has quit [Ping timeout: 245 seconds]
Martxel_ has joined #ruby
octarine has quit [Ping timeout: 246 seconds]
maZtah has quit [Ping timeout: 240 seconds]
<unic0rn>
the thing is, while yarv is pretty well documented, documentation for mruby is pretty much nonexistent
<Hanmac>
unic0rn: nope, some parts of stdlib are written in C too
Martxel has quit [Ping timeout: 240 seconds]
gaussblurinc has joined #ruby
drjblouse__ has joined #ruby
_justin has quit [Quit: _justin]
maZtah_ has joined #ruby
Avahey_ has quit [Ping timeout: 258 seconds]
Guest85414______ has joined #ruby
jpinnix____ has joined #ruby
helpD has quit [Remote host closed the connection]
ktun has quit [Ping timeout: 276 seconds]
AlSquire has joined #ruby
Avahey_ has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mr_bignum has joined #ruby
<unic0rn>
Hanmac: well, unless i'll be crazy enough to make it run ruby on rails via node.js, full stdlib support for something like client-side javascript in the browser won't be mandatory. besides, there are more than a few solutions (most inactive though) implementing parts of stdlib in ruby, so whatever is possible to gather, may be compiled to asm.js and that should run pretty fast. the main thing is wether i should use yarv or mruby
<unic0rn>
bytecode
anaeem1_ has quit [Remote host closed the connection]
Faris has joined #ruby
<Hanmac>
unic0rn: you can run mruby in EFI ... then you dont even need an OS ;P
ballPointPenguin has joined #ruby
<unic0rn>
what i need is ruby running in a web browser, with decent speed.
octarine has joined #ruby
<unic0rn>
decent = at least on pair with avm2 (flash player with code using alchemy/fast memory opcodes)
psyko666 has quit [Quit: Leaving]
cj3kim_ has quit [Remote host closed the connection]
<unic0rn>
so basically on pair with asm.js, more or less
<unic0rn>
that is, C compiled to asm.js
roolo has quit [Quit: Leaving...]
<unic0rn>
hotruby solution, while simple, is a vm running yarv opcodes, so that's slow. translating yarv to asm.js directly should end up being very fast, probably a lot faster than native ruby implementation, because of the JIT in the browsers
<unic0rn>
it won't make a lot of sense on the server side when there's rubinius i guess, but in the browsers it's entirely different matter
poikon has joined #ruby
cj3kim has joined #ruby
roolo has joined #ruby
<unic0rn>
i would just prefer to use mruby bytecode for that, because that's i guess more future-proof solution, considering the fact that RubyVM::InstructionSequence is more or less unofficial and subject to change, and i'm not even sure what sort of changes went there between 1.9.3 and 2.0/2.1
havenwood has joined #ruby
lukaszk has joined #ruby
Spami has quit [Read error: Connection reset by peer]
jonno11 has joined #ruby
jamto11 has joined #ruby
Melpaws has joined #ruby
nvrch has quit [Quit: nvrch]
ktun has joined #ruby
kenneth has joined #ruby
nvrch has joined #ruby
obs has joined #ruby
heftig has joined #ruby
wallerdev has quit [Quit: wallerdev]
Spami has joined #ruby
vlad_starkov has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
cj3kim_ has joined #ruby
ktun has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
dblessing has joined #ruby
greenarrow has quit [Quit: 500]
emaxi has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
maZtah_ is now known as maZtah
maZtah has quit [Changing host]
maZtah has joined #ruby
maZtah has quit [Changing host]
maZtah has joined #ruby
arturaz has quit [Quit: Leaving]
Celm has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
mehlah has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
emaxi has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
donnoc has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 245 seconds]
greenarrow has joined #ruby
ellbot has joined #ruby
_justin has joined #ruby
Celm has quit [Ping timeout: 250 seconds]
Phage is now known as Phage^
danijoo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
cj3kim has quit [Remote host closed the connection]
Advocation has joined #ruby
Zai00_ has joined #ruby
aaronmcadam has joined #ruby
Zai00 has quit [Ping timeout: 258 seconds]
Zai00_ is now known as Zai00
claymore has quit [Quit: Leaving]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
ellbot has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 265 seconds]
fgo has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 245 seconds]
klaut has joined #ruby
Lucky_Red has joined #ruby
emaxi has joined #ruby
Hytosys has quit [Quit: Hytosys]
<ponga>
good document for noob that explains yield/block :)
<ponga>
please good sirs
<ponga>
yes i tried to google it
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
BizarreCake has joined #ruby
Trynemjoel has joined #ruby
<olivier_bK>
do you know how i can indent after sending my variable in file ?
<olivier_bK>
i found a ruby methode indent i going to try to use it
<olivier_bK>
lukaszk, thanks for the advice men :)
<MrPopinjay>
Hi guys. So I'm splitting a script into multiple files, and I was wondering how the require statement works here. Say if I want to require a file one dir up would I use this? => require '../required_file.rb'
randomnick_ has joined #ruby
<randomnick_>
is there a way to exclude one method from parent class?
<lukaszk>
MrPopinjay: you probably want requiure_relative in that case
<MrPopinjay>
Are require paths absolute?
<MrPopinjay>
randomnick_: Just call it like a normal method?
anaeem1 has quit [Remote host closed the connection]
<ponga>
i just understood how block and yield parameter works
anaeem1 has joined #ruby
<ponga>
this thing is amazing
<ponga>
never like how i used to code
aaronmcadam has quit [Quit: Leaving...]
oo_ has quit [Remote host closed the connection]
ktun has joined #ruby
oo_ has joined #ruby
spinx^ has quit [Read error: Connection reset by peer]
<olivier_bK>
ponga, block are easy
<MrPopinjay>
lukaszk: Thanks. So is it relative to the file containing the statement, or from the file executed? So if I had one file that required another file, that required another, would the second require_relative be relative to the first location?
<MrPopinjay>
Hm. Maybe it makes more sense to add my project's lib/ dir?
<olivier_bK>
me i dont understand for the moment the proc :(
anaeem1 has quit [Ping timeout: 258 seconds]
<olivier_bK>
MrPopinjay, dont miss to require_relative "lib/YOU_DIR"
<lukaszk>
MrPopinjay: if you have to deal with stuff like that it's better to set up your LOAD_PATH correctly. Abusing require_relative can lead to quite confusing situations
<ponga>
olivier_bK, the concept was easy but im not sure if i could master the arts in my codes
elaptics is now known as elaptics`away
<olivier_bK>
ponga, we are here for helping you if need
tjr9898 has quit [Remote host closed the connection]
spinx^ has joined #ruby
<ponga>
im still learning, i can handle most of the stuffs my self, in fact i should if i really wanna learn
<MrPopinjay>
So I'll add $LOAD_PATH << '../lib' to my executables (in bin/, same level as /lib). That seems to make sense to me. Does anyone think otherwise?
chipotle has joined #ruby
<MrPopinjay>
wait, ../lib would be relative to the dir the executable is run from, not from the actual file location, I think?
lolmaus_ has joined #ruby
lolmaus has quit [Ping timeout: 258 seconds]
vlad_starkov has joined #ruby
nomenkun_ has quit [Quit: Leaving...]
mr_bignum has quit [Remote host closed the connection]
mr_bignum has joined #ruby
m0s^away is now known as m0s
sensen has joined #ruby
<lukaszk>
MrPopinjay: I believe that's true, you can see how other gems (pry, rake etc) do it
<lukaszk>
ok, lets step back - are you going to ship this is a a gem? if that's the case it's easier if you have a main require file and then just use it in your gem's bin script
<lukaszk>
it might be worth using standard ruby gem layout anyway - you don't have to push it to rubygems but you can still generate an installable .gem file
mac_cosmo has quit [Quit: mac_cosmo]
<MrPopinjay>
I was using their dir structure and such, but a lot of it is over my head at the moment
dANOKELOFF has quit [Ping timeout: 245 seconds]
senayar has quit [Ping timeout: 258 seconds]
andrewlio has joined #ruby
chipotle has quit [Quit: cya]
karmatr0n has quit [Ping timeout: 276 seconds]
tvw has joined #ruby
freerobby has joined #ruby
afreidah1 has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
lkba has joined #ruby
ponga has quit [Read error: No route to host]
freerobby has quit [Ping timeout: 245 seconds]
karupanerura is now known as zz_karupanerura
<lukaszk>
think about your bin/tool file as just an entry point to rest of your library , don't put too much stuff there.
ponga_ has joined #ruby
Celm has joined #ruby
<MrPopinjay>
I only have one script in there, and it's pretty much just the require thing
<MrPopinjay>
Which I'm still trying to work out
popl has quit [Ping timeout: 258 seconds]
lolmaus has joined #ruby
lolmaus_ has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
ellbot has joined #ruby
<lukaszk>
can you gist your project layout? then it will be easier to answer your question
havenwood has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
<MrPopinjay>
sure
Speed has joined #ruby
poikon has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
<lkjlk>
Hi. Are ruby tutorials on codecademy are any good? Or if there are others better than can anybody please recommend me those?
havenwood has quit [Ping timeout: 276 seconds]
ellbot has quit [Ping timeout: 276 seconds]
<MrPopinjay>
lkjlk: I don't think so. Codeschool is much better.
<MrPopinjay>
Though not free
<MrPopinjay>
I really dislike codecademy as a learning resource
<lkjlk>
Oh, I learned python and PHP from codecademy only :/
<lkjlk>
also JS
<MrPopinjay>
It teaches syntax, not programming. Plus, their site is so buggy it's often not clear if you got it right or not.
Lewix has quit [Remote host closed the connection]
cover has joined #ruby
<lkjlk>
right, I agree with you on last one
<MrPopinjay>
I recommend a real course, like the ones on edx.org
<lkjlk>
Codeschool is not free, and that's sad because I don't have penny to spare right now :(
<MrPopinjay>
Their introductions to computer science are amazing.
<lkjlk>
There is no ruby course on edx.org
<MrPopinjay>
They are actually real undergrad courses from MIT, Harvard, etc
<MrPopinjay>
Learning programming > learning ruby
amundj has quit [Ping timeout: 264 seconds]
<MrPopinjay>
Languages are easy, programming is easy
<MrPopinjay>
programming is ahrd*
<workmad3>
MrPopinjay: heh
<gaussblurinc>
oh, does code school have good complex ruby courses?
<MrPopinjay>
I cannee type
<lkjlk>
I have it downloaded "Intro to computer science and programming"
Xeago_ has quit [Ping timeout: 276 seconds]
Xeago_ has joined #ruby
<MrPopinjay>
Not really, but it's better than codecadmy. It's another language and syntax overview, mostly
<MrPopinjay>
Doesn't teach you how to program much
<lkjlk>
MrPopinjay: err, you're saying there is course on ruby on edx?
<MrPopinjay>
No, I'm ing you should learn to program well, then learn ruby from codeschool, rubykoans, the documentation, etc
senayar_ has quit [Remote host closed the connection]
<lkjlk>
and for learning how to program, I should go to "Introduction to computer science and programming"?
<gaussblurinc>
I want to learn testing and bundle make
amundj has joined #ruby
<MrPopinjay>
Which course are you specifically talking about?
<workmad3>
everyone should learn to program in the same way I did... tinker from the age of 5 to 18, spend 2 years at uni basically goofing off, then learn to code properly in spare time in the last 2 years, building on those 13 years of tinkering...
senayar has joined #ruby
<lkjlk>
MrPopinjay: ruby, right now. But I'd also look up java in upcoming future
<workmad3>
java makes me :(
<Terminus->
workmad3: i wish i had the internet from ages 5 to 18. deadtree was the only option back then.
<workmad3>
Terminus-: I only had the internet from about age 13
<MrPopinjay>
lkjlk: Again, learning languages isn't very useful. Learn to program. Syntax and tricks is very much secondary
emergion has joined #ruby
<lkjlk>
MrPopinjay: where can learn how to program?
Xeago has quit [Ping timeout: 265 seconds]
<MrPopinjay>
edx :)
m0s^away is now known as m0s
<Terminus->
workmad3: actually, i had internet when i was around 11. i just didn't know what to look for and it was an MS world back then as far as i was concerned and that limited what i was reading.
Xeago_ has quit [Remote host closed the connection]
<lkjlk>
MrPopinjay: exactly which course? :p
<MrPopinjay>
CS50x is very well recommended. It's a Harvard course that isn't specific to one language. You could also do the MIT python course, which is quite ruby-like
<lkjlk>
I have fall 2008 downloaded, which uses python as language in that
<MrPopinjay>
I've done that one, it's the best thing I've ever done
<lkjlk>
MrPopinjay: I completed CS50 last year
<MrPopinjay>
Why are you downloading things? Use the site
<lkjlk>
I don't have enough speed to do it online
oo_ has quit [Remote host closed the connection]
<MrPopinjay>
Even the exercises and exams?
<lkjlk>
yeah
<lkjlk>
also CS50 wasn't that good when it came to PHP
<MrPopinjay>
It's not about language, it's about programming :P
<lkjlk>
because there were few things that were stupid
<MrPopinjay>
Hence it doesn't use one language
<MrPopinjay>
Anyway, if you've done that, consider the software as a service course
<lkjlk>
yeah, there was C, then PHP etc
<MrPopinjay>
It uses Ruby
<lkjlk>
data structure mainly
<MrPopinjay>
and Rails
wethu has quit [Quit: This computer has gone to sleep]
<MrPopinjay>
Programming is data structures mainly
psyko666 has joined #ruby
<lkjlk>
[15:57:00] <MrPopinjay> Anyway, if you've done that, consider the software as a service course; What do you mean by this?
<MrPopinjay>
I'm sure it'll be handy. It's all about the transferable skills
chipotle has joined #ruby
Rhainur has quit [Quit: Leaving]
dawkirst has quit [Ping timeout: 245 seconds]
Robbo__ has joined #ruby
W0rmDr1nk has quit [Ping timeout: 245 seconds]
luluapple has joined #ruby
Robbo_ has quit [Ping timeout: 252 seconds]
aloshkarev has quit [Quit: aloshkarev]
luluapple has quit [Client Quit]
mercwithamouth has joined #ruby
aloshkarev has joined #ruby
aloshkarev has quit [Client Quit]
<lkjlk>
Hmm
rvraghav93 has joined #ruby
nari has quit [Ping timeout: 245 seconds]
<DouweM>
morning folks
lkjlk has quit [Quit: Konversation terminated!]
Melpaws has quit [Ping timeout: 265 seconds]
tungd has joined #ruby
sigurding has quit [Quit: sigurding]
dawkirst has joined #ruby
MrPopinjay has left #ruby ["WeeChat 0.3.8"]
donnoc has joined #ruby
ponga_ has quit [Quit: Leaving :)]
<shevy>
die
<shevy>
sorry
<shevy>
wrong channel
<shevy>
hi
W0rmDr1nk has joined #ruby
dkamioka has quit [Remote host closed the connection]
jhass|off is now known as jhass
Melpaws has joined #ruby
roolo has joined #ruby
jamto11 has joined #ruby
chipotle has quit [Quit: cya]
kukyakya has quit [Remote host closed the connection]
<DouweM>
what timezone are you in anyway, shevs
shashank_rs has joined #ruby
kitak_ has quit [Remote host closed the connection]
dANOKELO_ has quit [Remote host closed the connection]
atmosx has joined #ruby
luluapple has joined #ruby
nvrch has quit [Quit: nvrch]
ndrei has quit [Ping timeout: 240 seconds]
jamto11 has quit [Ping timeout: 265 seconds]
_justin has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
tjr9898 has joined #ruby
crazysim has quit [Excess Flood]
crazysim has joined #ruby
wethu has joined #ruby
tjr9898 has quit [Remote host closed the connection]
Megtastique has joined #ruby
tjr9898 has joined #ruby
freerobby has quit [Ping timeout: 258 seconds]
Speed has joined #ruby
sigurding has joined #ruby
evenix has joined #ruby
chipotle has joined #ruby
tjr9898_ has joined #ruby
chipotle has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ellbot has joined #ruby
evenix has quit [Ping timeout: 245 seconds]
tjr9898 has quit [Ping timeout: 250 seconds]
basichash has joined #ruby
jottr has joined #ruby
<basichash>
How do I add a new controller method? I added the method to the controller, added the view to the views/app/ dir and put "get 'app/method'" to routes, but I can't access it
Stalkr^ has joined #ruby
<shevy>
DouweM central europe ghetto zone
rvraghav93 has quit [Remote host closed the connection]
_justin has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banister>
basichash ask in #rubyonrails
jhass is now known as jhass|off
donnoc has quit [Ping timeout: 252 seconds]
kitak has joined #ruby
ellbot has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
basichash has quit [Remote host closed the connection]
Xeago has joined #ruby
kpshek has joined #ruby
greenarrow has quit [Ping timeout: 252 seconds]
sski has joined #ruby
Xeago has quit [Remote host closed the connection]
sensen has quit [Quit: leaving]
Xeago has joined #ruby
eka has joined #ruby
jhass|off is now known as jhass
Phage^ is now known as Phage
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<atmosx>
shit
<atmosx>
shit shit shit shit
<atmosx>
I thought I could have it ready my Thursday... uff
yfeldblum has joined #ruby
dawkirst_ has joined #ruby
atmosx has quit [Quit: Lost in trance]
jhass is now known as jhass|off
tjr9898 has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
tjr9898_ has quit [Read error: Connection reset by peer]
<ponga>
shevy: no i can't tutorial doesn't teach me that
<benzrf>
if you have a proc or proc-like that you want to use instead of a block in your code, you pass it in with &
<DouweM>
ponga: symbols are not some Hash magic. they're efficiently saved objects that can be referred to by name in code, making them very useful in combination with hashes
<shevy>
ponga hehe
<DouweM>
ponga: but symbols are just symbols
<shevy>
symbols are objects?
<DouweM>
as exposed in Ruby, yeah
<benzrf>
ponga: to be precise, symbols are internally stored as ints, and ruby has an internal table of which int corresponds to which name for a symbol
<DouweM>
anything is an object :P
Faris has joined #ruby
<DouweM>
or everything, rather
<tobiasvl>
:to_s.to_proc just says "take the method which name I just gave you as a symbol, and turn it into a proc)
<ponga>
shevy, exactly, tutorial never taught me can i explain "can you explain when to use & but not : at the same time"
<ponga>
and requested me to proceed
ruukasu has joined #ruby
dANOKELOFF has quit [Ping timeout: 276 seconds]
<ponga>
:(
<ruukasu>
is your mom and object?
ruukasu has left #ruby ["Leaving"]
<benzrf>
ruukasu no
<shevy>
ponga yeah but you know when to use :
<Hanmac>
ponga: funy thing is that you can use method objects too:
<ponga>
so to_s object symbol exists in ruby library in the first place
wethu has joined #ruby
<ponga>
did i understand this right
<benzrf>
olivier_bK: php is disgusting
<Hanmac>
benzrf: ruby is a giant universal tool kit box ... and even if you use a spoon when you would need a knife it still works as you want ;P
<DouweM>
:to_s :pong :whatever.. symbols are just generated on the fly like strings "to_s" "pong" "whatever". ther's no "predefined list" in standard library
<olivier_bK>
i know i'm not trying to develop anything in php but in ruby
meatherly has joined #ruby
<olivier_bK>
benzrf, :)
<DouweM>
olivier_bK: your code is bad and you should feel bad
<DouweM>
olivier_bK: so, what are you trying to accomplish?
wethu has quit [Client Quit]
<benzrf>
olivier_bK: what you are doing is an abomination and i hope you feel bad
<benzrf>
oh shit DouweM beat me to it
<olivier_bK>
DouweM, what do you mean by my code is bad ?
<DouweM>
olivier_bK: that was mostly in reference to your use of php. but your code is indented crazy
<tobiasvl>
agh
<tobiasvl>
let me reindent that for you
<shevy>
olivier_bK you need to write simpler code and be consistent
<DouweM>
and wtf are you trying to do with that php file
<crome>
DouweM: maybe it was indentional
* crome
hides
<shevy>
a = Array.new
<shevy>
a = File.readlines("licence_ze.php")
<shevy>
olivier_bK why do you do this, it overwrites a
<olivier_bK>
DouweM, the user send a date by socket and i need to check if the date %Y-%m-%d
phutchins has quit [Ping timeout: 276 seconds]
<olivier_bK>
what is your advice ?
<DouweM>
that doesn't sound like it should be in that method
jamto11 has joined #ruby
<olivier_bK>
shevy when you say shevy> but the weirdest part is function definitions
<DouweM>
olivier_bK: validate in your socket reader, parse the date, pass the parsed and validated date to the update method
<shevy>
olivier_bK in R
BalkM has quit [Ping timeout: 240 seconds]
jonno11 has quit [Ping timeout: 276 seconds]
<DouweM>
or rather nog in your socket reader but in the command-specific handler
phutchins has joined #ruby
<olivier_bK>
DouweM, I'm all ears
<DouweM>
I have no idea what the rest of your code looks like, but that date validation shouldbe in the update method
<DouweM>
the update method shouldn't be called unless the data's been validated. so preferably with a Date object rather than the possible-faulty string representation
<benzrf>
tobiasvl: it's just a variation on ld calc
sailias has joined #ruby
<tobiasvl>
yep
gregf has quit [Quit: WeeChat 0.4.3]
<tobiasvl>
your definition is basically SKI tbh
<DouweM>
benzrf: why the hell would I want that
<benzrf>
just an example :U
<benzrf>
*of an expression
<DouweM>
all rgiht :P
<DouweM>
yeah I get the syntax
<benzrf>
kk
<benzrf>
anyway lisp was originally based off of the ldcalc iirc
<benzrf>
lambda was an arbitrary greek letter i think
<benzrf>
the \ was originally a lambda
<benzrf>
\ is just an ascii representation
<benzrf>
lisp used 'lambda' to mean an anon. func. like in the calc, and from there we have the name in a shitton of other langs
yfeldblum has joined #ruby
alexju has joined #ruby
garndt has joined #ruby
<benzrf>
DouweM: notice that all functions in the lambda calc are 1-arg'd
<benzrf>
*have arity 1
<benzrf>
if u want multiple args u must manually write out currying
<DouweM>
why is that
<benzrf>
because it's simpler
<DouweM>
ah right, I know that from Haskell
<benzrf>
haskell has sugar for currying
<benzrf>
calc does not
<DouweM>
ah
<tobiasvl>
it's simpler and it's equivalent
<benzrf>
btw haskell and currying are named after haskell curry
<benzrf>
one major pioneer of this kind of compsci
<DouweM>
I know
<benzrf>
kk
<benzrf>
anyway i g2g see u
Lewix has joined #ruby
<DouweM>
bye
sambao21 has joined #ruby
bthesorceror has joined #ruby
benzrf is now known as benzrf|offline
dANOKELOFF has joined #ruby
dANOKELO_ has quit [Read error: No route to host]
Photism2 has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
iamjarvo has quit [Ping timeout: 250 seconds]
poikon has quit [Remote host closed the connection]
Guest51401 has joined #ruby
roolo has quit [Quit: Leaving...]
yuhsien_ has joined #ruby
thomasxie has joined #ruby
swingha has joined #ruby
dik_dak has joined #ruby
chris_thomson has joined #ruby
Guest51401 has quit []
postmodern has quit [Quit: Leaving]
senayar has quit [Remote host closed the connection]
Photism has joined #ruby
withnale has quit [Remote host closed the connection]
poikon has joined #ruby
culturelabs has joined #ruby
swingha has quit [Quit: swingha]
dkamioka has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
fayimora has joined #ruby
zrl_ has joined #ruby
dANOKELOFF has quit [Read error: Connection reset by peer]
dANOKELOFF has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
luckyruby has joined #ruby
dunix has joined #ruby
Melpaws has quit [Ping timeout: 250 seconds]
rkr090 has joined #ruby
dkamioka has quit [Remote host closed the connection]
Adran has quit [Ping timeout: 240 seconds]
Photism has quit [Quit: Leaving]
ballPointPenguin has joined #ruby
Adran has joined #ruby
jbellone has joined #ruby
AdmirableSnackba has joined #ruby
_justin has joined #ruby
dANOKELO_ has joined #ruby
Photism has joined #ruby
jeffreybaird has joined #ruby
chris_thomson has quit [Quit: Zzz...]
Melpaws has joined #ruby
mrgoodcat has joined #ruby
enebo has joined #ruby
gregf has joined #ruby
Geo has joined #ruby
larissa has quit [Quit: Leaving]
kpshek has joined #ruby
dyoko has joined #ruby
dANOKELO_ has quit [Client Quit]
Lucky_Red has quit [Quit: Leaving...]
dANOKELOFF has quit [Ping timeout: 276 seconds]
Tichodroma has joined #ruby
roolo has joined #ruby
momomomomo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mpajor_o15 is now known as mpajor
mpajor is now known as mpajor_op5
Melpaws has quit [Ping timeout: 265 seconds]
maasha has joined #ruby
mrmargolis has joined #ruby
<maasha>
what is the preferred way to document Ruby nowadays?
dyoko has quit [Quit: Leaving.]
* maasha
is looking at yard
<workmad3>
maasha: by copy-pasting it into a word document and using review comments
bluOxigen has joined #ruby
<ponga>
what IDE do you guys use for ruby
nvrch has quit [Quit: nvrch]
lw has quit [Quit: s]
blueOxigen has joined #ruby
timgauthier has joined #ruby
<Xeago_>
vim
<timgauthier>
what the heck is a § key... man some people post really unhelpful things sometimes. oh hey ruby!
<maasha>
workmad3: you must be mad :o) word docs?
<ddv>
ponga: intellij ultimate
Melpaws has joined #ruby
<timgauthier>
workmad3 still here? :P
<workmad3>
timgauthier: I'm (almost) always here :)
vpretzel is now known as vpretzel|firefig
<ponga>
so many ide for ruby :o
<timgauthier>
I know ;)
<ponga>
which shoulda use
<shevy>
your brain
<workmad3>
timgauthier: § is a simoleon...
vpretzel|firefig is now known as vic|firefighting
<ponga>
truth
<shevy>
syntax highlighting also helps
<ponga>
lol
ashp has left #ruby ["Leaving"]
cookiebow has joined #ruby
<workmad3>
timgauthier: as for why apple decided to put one on their keyboards... I've never figured that out... sponsership from EA maybe?
<shevy>
ponga I use bluefish 1.0.7
<Xeago_>
§ is a paragraph marker
<timgauthier>
i knew it looked familure... but why is that a "keyboard shortcut" showing up in a screen flow and why are people saying to use that as a key you press as as shortcut!?
sambao21 has joined #ruby
<timgauthier>
it isn't ON the keyboard, i mean you can type it yea. but actually now that i remember that, its just a generic currency symbol
<DouweM>
it's not currency, it's paragrapg
<Xeago_>
it's not a currency symbol
<DouweM>
and it's on the keyboard for me
<Xeago_>
same here
<timgauthier>
§ is a paragraph symbol?
<workmad3>
timgauthier: it's on the keyboard for me... top-right just under <esc>
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
jeregrine has joined #ruby
skaflem has quit [Ping timeout: 250 seconds]
dtcrshr has joined #ruby
<mannycalavera>
I get "SSLv3 read server certificate B: certificate verify failed" when trying to fetch a page using Mechanize but not when using CURL. Does it use different certs? I tried to use the curl.haxx.se/ca/cacert.pem for mechanize but didn't work. Any ideas?
<timgauthier>
mannycalavera i don't know your question/answer
afreidah1 has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
havenwood has joined #ruby
skaflem has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
Geniack_ is now known as Geniack
ellbot has joined #ruby
nateberkopec has quit [Quit: Leaving...]
kevind has joined #ruby
nateberkopec has joined #ruby
<workmad3>
mannycalavera: you need a CA bundle that the server provides a route into
<mannycalavera>
workmad3: And where/how can I find that?
<workmad3>
mannycalavera: depends on your distro and what sites you're hitting
havenwood has quit [Ping timeout: 245 seconds]
<workmad3>
mannycalavera: your distro probably has a CA bundle as part of its openssl install that has a lot of the common CA root certs
canton7-mac has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
Melpaws has quit [Quit: Leaving.]
<workmad3>
mannycalavera: if you need to access a site that has a cert from a different CA, you need to grab that root cert and bundle it in or use just that root cert
<mannycalavera>
workmad3: Okay, but how can I find out what cert that site uses? (https://www.double.net)
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
<arubincloud>
It was issued by COMODO.
pwh has joined #ruby
CorySimmons has joined #ruby
<workmad3>
mannycalavera: in general, there's lots of info on the web about how to manage and investigate certs with openssl, and it's not ruby-specific :)
sigurding_ has joined #ruby
Briareos1 has joined #ruby
sigurding has quit [Ping timeout: 240 seconds]
sigurding_ is now known as sigurding
Melpaws has quit [Ping timeout: 276 seconds]
jlast has joined #ruby
afreidah1 has joined #ruby
senayar has quit [Remote host closed the connection]
andy___ has joined #ruby
senayar has joined #ruby
kobain has joined #ruby
treehug88 has joined #ruby
<mannycalavera>
workmad3: okay, thanks. Can't I just use the same CA bundle with Ruby as CURL uses? Why do they use different?
freerobby1 has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
jjbohn has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
predator217 has quit [Ping timeout: 258 seconds]
meinside has quit [Remote host closed the connection]
poguez_ has quit [Remote host closed the connection]
michaelchum has quit [Remote host closed the connection]
mjc_ has quit [Remote host closed the connection]
Jakee`__ has quit [Remote host closed the connection]
CJD14__ has quit [Remote host closed the connection]
arubincloud has quit [Remote host closed the connection]
Avahey_ has quit [Remote host closed the connection]
jpinnix____ has quit [Remote host closed the connection]
mostlybadfly has quit [Remote host closed the connection]
dmoe____ has quit [Remote host closed the connection]
cbetta has quit [Remote host closed the connection]
frode15243 has quit [Remote host closed the connection]
ggherdov has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 240 seconds]
ellbot_ has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
vic|firefighting is now known as vpretzel
_tpavel has joined #ruby
sdouglas has joined #ruby
_tpavel has quit [Client Quit]
_tpavel has joined #ruby
momomomomo has quit [Quit: momomomomo]
fabrice31 has joined #ruby
__tpavel has joined #ruby
noop has quit [Ping timeout: 276 seconds]
__tpavel has quit [Client Quit]
_tpavel has quit [Client Quit]
_tpavel has joined #ruby
ellbot has quit [Ping timeout: 276 seconds]
doodlehaus has joined #ruby
chipotle has joined #ruby
tagrudev has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
<jamto11>
is it possible to send cookies from my backend rails app on the backend side (im using open-uri)?
__tpavel has joined #ruby
blassing has joined #ruby
<blassing>
hey
__tpavel has quit [Client Quit]
_tpavel has quit [Client Quit]
lukec has quit [Quit: lukec]
<blassing>
can anyone explain to me what "lambda do || ... end" does ?
<bhaak>
it seems to be not different than the lambda without ||. both expect 0 argument. for why it's a lambda in the first place, look at the comments at line 30
<mikecmpbll>
yeah, it's just no arguments.
thomasxie has quit [Quit: Leaving.]
ccham_ has joined #ruby
cbetta has joined #ruby
duggiefresh has joined #ruby
<blassing>
bhaak: cool, but I still don't get the || in it
dima_ has joined #ruby
<mikecmpbll>
it's yield arguments
<Morrolan>
Eh, derp. It's just the block's arguments.
jaimef has quit [Excess Flood]
<Morrolan>
Oh, I'm late. :D
IceDragon has joined #ruby
<mikecmpbll>
you might have lambda do |a,b| for example
<blassing>
so it's || as empty?
<mikecmpbll>
yep.
<Morrolan>
I was so focussed on || meaning 'or' that I didn't think of the pipes around a block's arguments. :)
<mikecmpbll>
it's no different from not specifying it at all.
<blassing>
why the hell is that specified??
<mikecmpbll>
beats me.
<Morrolan>
Probably leftovers from a time where that lambda used to take argumetns.
<Morrolan>
arguments, even.
<bhaak>
logically, || is probably the "right" way of declaring no arguments, and leaving out || is the hack and the more convenient way to write it
<blassing>
bhaak: well, ok... yes
jaimef has joined #ruby
omosoj has quit [Quit: Leaving]
_tpavel has quit [Quit: Leaving]
__tpavel has quit [Quit: Leaving]
Jakee`__ has joined #ruby
<bhaak>
I mean from a parser's perspective
<blassing>
sure
fieldfirst has joined #ruby
<blassing>
thanks for the help, guys!
chipotle has quit [Quit: cya]
[0x1a]_ has joined #ruby
swi7ch has joined #ruby
Melpaws has joined #ruby
_tpavel has joined #ruby
Melpaws has quit [Client Quit]
mansi has joined #ruby
mostlybadfly has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
Melpaws has joined #ruby
rkr090 has quit [Quit: Leaving]
blassing has quit [Quit: Page closed]
madb055 has quit [Ping timeout: 250 seconds]
mansi has quit [Read error: Connection reset by peer]
snath has quit [Ping timeout: 258 seconds]
jprovazn has quit [Quit: Leaving]
mansi has joined #ruby
ccham_ has quit [Ping timeout: 276 seconds]
Devanon has quit [Quit: WeeChat 0.4.3]
paolooo has quit [Ping timeout: 240 seconds]
_tpavel has quit [Client Quit]
chrisseaton has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyaubs has joined #ruby
_tpavel has joined #ruby
xpirator has joined #ruby
fieldfirst has quit [Ping timeout: 245 seconds]
fieldfirst has joined #ruby
<olivier_bK>
how i can chek the result of my variable given_date = Date.strptime(date, format)
<timgauthier>
i've honestly tried to make things as few lines as possible, i'm okay with a <% do %> bunch of stuff <% put this variable %> and more html stuff <% end %>
<shevy>
ERB.new(<<-'END_PRICE'.gsub(/^\s+/, ""), 0, "", "@price").result b
<shevy>
it may be a bit boring though, perhaps look only at the beginning to hear him speak, until he makes a joke (he makes many jokes, the problem is trying to understand what he says as he tells them)
<timgauthier>
seriously though shevy, would that be a helper?
<shevy>
which one
dawkirst has joined #ruby
<shevy>
the video?
<timgauthier>
no
<timgauthier>
the uh to <% and hum <%=
anicet has joined #ruby
sarlalian has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
<workmad3>
timgauthier: no, you couldn't do that as just a helper
<timgauthier>
ah, bummer
<shevy>
not really timgauthier
anicet is now known as Guest92564
<workmad3>
timgauthier: you'd need to do that as a pre-processor that parses the template before passing the result off to erb
<shevy>
I think little improvements would not help anyway, it would still be ugly
<timgauthier>
hahaha
sarlalian has quit [Client Quit]
<certainty>
workmad3: now you have (m)4 problems :)
<timgauthier>
why did matz make ruby?
sarlalian has joined #ruby
<certainty>
to make shevy happy
<workmad3>
timgauthier: because he was bored?
axl_ has quit [Quit: axl_]
rankine has quit [Quit: leaving]
<timgauthier>
japanese people are weird when they get bored
<shevy>
workmad3 amazingly enough, I dunno why, but even though we were taught british english in school, I find it much harder to understand people from the UK than from the USA when they speak english respectively
samuel02 has joined #ruby
creativeembassy has joined #ruby
sreesaran has joined #ruby
<workmad3>
shevy: what accent do you think of as 'british english' though?
geggam has quit [Ping timeout: 240 seconds]
<workmad3>
shevy: we only have... a few hundred
davy has joined #ruby
sepp2k has joined #ruby
<certainty>
i think he's referring to oxford english
<shevy>
workmad3 well, tony blair speaks a good accent, I easily understand what he says even though he is a huge troll
<shevy>
monty python crew is harder to understand but it is doable
<shevy>
but those guys in the bloopers... no chance when they speak fast
emaxi has joined #ruby
<tcstar>
I'm not german but i speak 4 languages... English, Profanity, Sarcasm and Real Shit...
<certainty>
:D
<timgauthier>
japanese nerds are funny too, they have the nerd tendency to talk far too much about details that are unimportant in the overall big picture
<timgauthier>
and japanese people who get super detailed about some things as they speak
<certainty>
timgauthier: that's not only japanese nerds
<workmad3>
certainty: britain has a lot of regional accents :)
jobewan has joined #ruby
andy___ has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
doodleha_ has joined #ruby
kirun has joined #ruby
_justin has quit [Ping timeout: 245 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
deens has joined #ruby
bthesorceror has joined #ruby
doodlehaus has quit [Ping timeout: 258 seconds]
kpshek has joined #ruby
yogie has quit [Quit: Sic Semper Tyrannis]
marcux has quit [Quit: marcux]
_justin has joined #ruby
<f0ster>
certainty: trying to wrap my head around why you would put methods on the eigenclass of your class (self)
<jhass>
f0ster: so you can call them on the class object: Foo.method
<f0ster>
does this basically make "static" methods on your class? i.e., you can have methods on your class "statically" without having to instantiate an object of your class?
<jhass>
that's the effect, yes
<f0ster>
awesome
<jhass>
though on the technical level they're just instance methods on your classes object
<apeiros>
a common use-case are constructors
centrx has joined #ruby
<apeiros>
see e.g. Date.civil vs. Date.commercial vs. Date.ordinal
poikon has quit [Remote host closed the connection]
<f0ster>
jhass: right
benzrf is now known as benzrf|offline
iceden has joined #ruby
<f0ster>
apeiros: is there src code for that stdlib stuff anywhere?
<apeiros>
use pry + pry-doc, do: $ Date.civil
danman_ has quit [Quit: danman_]
djbender has joined #ruby
<apeiros>
and yes, all the source code is there. ruby is open-source after all
<f0ster>
apeiros: awesome didn't know you could do that
ascarter has joined #ruby
rkr090 has joined #ruby
benzrf|offline is now known as benzrf
afreidah2 has joined #ruby
<timgauthier>
so weird to use sass libraries that introduce base styles... do you override them, do you rip the base styles out... do you move their styles to your own stylesheet and change them.
pdtpatr1ck has joined #ruby
<shevy>
the path of demise is to be continued
<timgauthier>
do you leave them in the original place but comment them out and then rewrite them
pdtpatr1ck has quit [Client Quit]
Slavox is now known as Slavox|AFK
<timgauthier>
shevy your distain for erb is nothing on scss
<timgauthier>
its better then css
rkr090 has left #ruby [#ruby]
<timgauthier>
but honestly, why is it font-size to change font size, but color to set the colour!?
nathancahill has quit [Quit: nathancahill]
vadzimt has joined #ruby
vadzimt has quit [Max SendQ exceeded]
<timgauthier>
oh! and so you have color, font-size, and then text-decoration... all of these are directly impacting the typography... but they use completely different conventions!
ndrei has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 265 seconds]
vadzimt has joined #ruby
poikon has joined #ruby
vadzimt has quit [Max SendQ exceeded]
ascarter has quit [Client Quit]
pdtpatr1ck has joined #ruby
<shevy>
timgauthier css is alright, why do you need scss?
<timgauthier>
css isn't alright
<shevy>
color being dominant because US english dominated as opposed to colour!
<timgauthier>
I want to use this one colour in 12 places, oh we need to change that one colour okay now i get to go find and replace it
<timgauthier>
css isn't DRY
<timgauthier>
scss makes it so you can be DRY
klaut has quit [Remote host closed the connection]
<shevy>
I am totally dry
<shevy>
I must get me a drink
<timgauthier>
and colour vs colour isn't the issue, its why is it font-weight, text-decoration, and color, why can't they all be font-color, font-weight, font-decoration.. or at least some sort of logical convention
<timgauthier>
:D
<timgauthier>
but at least i know how to make scss do things, i actually understand that one :D so i don't have to ask questions here, i just bitch
luckyruby has joined #ruby
Advocation has quit [Quit: Advocation]
<shevy>
but colour is invalid in css!
<timgauthier>
yes
lukec has quit [Ping timeout: 245 seconds]
<timgauthier>
its also invalid in scss
lukec has joined #ruby
<shevy>
nobody likes the UK
<timgauthier>
though i'm sure someone has a filter modifier that accepts it
<timgauthier>
colour is used literally anywhere except the US
<shevy>
nobody likes the USA either
<timgauthier>
but it would be cool if I could make it farbe
<timgauthier>
:D
<timgauthier>
farbe: RGBCODE
<shevy>
hmm
<shevy>
how would you get the browsers to understand these?
<timgauthier>
i got to work on a stylesheet that was made by a german one, so cool to see all of the german variables and such
<shevy>
french would then have
<shevy>
le_coleur: RGBCODE
<timgauthier>
you'd have to process them down to a base set like we do now
crystal77 has quit [Quit: Computer has gone to sleep.]
<timgauthier>
but i do want them to do something about the font- and text- things, make them logical as to what is what.
<timgauthier>
it should likely be text for most things
<shevy>
you are on a mission
helpD has joined #ruby
spider-mario has joined #ruby
<shevy>
"please kind css tribune, become more logical!"
<f0ster>
also not sure on the syntax of why he is finishing statement after class << self; does that just automatically make all of the instance methods automatically on the (eigenclass) ?
Lewix has quit [Remote host closed the connection]
<webzorg>
it gave some text, webgen 3200 0.0 0.0 20452 964pts/1
<terrellt>
linking shared-object ripper.bundle
<terrellt>
make: *** [build-ext] Error 2
pel_daniel has quit [Ping timeout: 250 seconds]
chrisseaton has joined #ruby
<terrellt>
I get that trying to compile 2.1.1
Es0teric has quit [Quit: Computer has gone to sleep.]
omosoj has joined #ruby
andy__ has quit [Ping timeout: 276 seconds]
<webzorg>
atmosx ok thank you dude, i ll take a look :)
andy____ has quit [Ping timeout: 240 seconds]
ukd1 has joined #ruby
<atmosx>
webzorg: out of curiosity, why do you want to use mysql instead of the defaul sqlite3?
dkamioka has joined #ruby
<webzorg>
atmosx well I am following this tutorial that does it with mysql plus I ve never used sqlite3, I ve used mysql couple times :S
mansi has quit [Ping timeout: 258 seconds]
<atmosx>
webzorg: sqlite3 works out of the box, you should stick with that imho for the time being
f0ster has quit [Ping timeout: 240 seconds]
<atmosx>
will make your life easier
cj3kim_ has joined #ruby
<webzorg>
atmosx now it worked actually thanks, it required reinstallation I guess idont know why
<atmosx>
mysql should be used in production
<atmosx>
okay
<webzorg>
well atmosx i guess I ll do that in the future when I have a fresh OS install :D
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ciwolsey has joined #ruby
fgo has quit [Remote host closed the connection]
moted has quit [Ping timeout: 240 seconds]
moted has joined #ruby
jkamenik has quit [Quit: Leaving.]
ValicekB has quit [Ping timeout: 252 seconds]
<webzorg>
slash_nick alsothanks to u i ll figure out how to register
einarj has joined #ruby
momomomomo has quit [Quit: momomomomo]
kalz has joined #ruby
<slash_nick>
webzorg: hope it all works out, have fun
bthesorceror has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
jackneill has quit [Remote host closed the connection]
blackavr has joined #ruby
mansi has joined #ruby
bthesorceror has joined #ruby
momomomomo has joined #ruby
sidik has quit [Ping timeout: 258 seconds]
bthesorc_ has joined #ruby
webzorg has quit [Quit: Leaving]
bthesorceror has quit [Read error: Connection reset by peer]
aspires has joined #ruby
webgen has joined #ruby
tjr9898 has quit [Remote host closed the connection]
julio_ has joined #ruby
vpretzel|1280 has quit [Remote host closed the connection]
toastynerd has joined #ruby
dkamioka has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
vpretzel|1280 has joined #ruby
tjr9898 has joined #ruby
Guest83697 is now known as jackyalcine
mordocai has quit [Remote host closed the connection]
jackyalcine is now known as Guest49681
nichtdiebohne1 has joined #ruby
saarinen has quit [Quit: saarinen]
BuSerD has joined #ruby
yalue has quit [Quit: Leaving]
nichtdiebohne has quit [Ping timeout: 250 seconds]
SCommette has joined #ruby
sambao21 has joined #ruby
ascarter has joined #ruby
GaryOak_ has joined #ruby
weems has quit [Read error: Connection reset by peer]
ValicekB has joined #ruby
momomomomo has quit [Quit: momomomomo]
simplyaubs has quit [Quit: simplyaubs]
CaptainJet has quit []
JoeGaudet has joined #ruby
rm_ has quit [Disconnected by services]
simplyaubs has joined #ruby
rm__ has joined #ruby
<JoeGaudet>
Hello all... I'm having a hell of a time resolving: 'Incorrect MySQL client library version! This gem was compiled for 5.5.35 but the client library is 5.6.15.' on a unbuntu machine.
<JoeGaudet>
Any thoughts ?
Drewch has joined #ruby
<JoeGaudet>
I've uninstalled reinstalled, but it doesn't seem to do anything.
<centrx>
JoeGaudet, Maybe your mysql header files are a different version than your mysql client library?
MattStratton has joined #ruby
<JoeGaudet>
Entirely possible... how would I go about verifying that?
reppard has quit [Quit: Leaving.]
<JoeGaudet>
I'm relatively green in the land of opps.
marcux has joined #ruby
dunix has quit []
omosoj has quit [Ping timeout: 240 seconds]
einarj has quit [Remote host closed the connection]
mac_cosmo has joined #ruby
SHyx0rmZ has quit [Ping timeout: 252 seconds]
<JoeGaudet>
I did update our percona build inadvertently, but one would assume that got everything, perhaps the dev headers don't line up thought.
blackmesa has quit [Ping timeout: 250 seconds]
olli has joined #ruby
olli has quit [Client Quit]
Es0teric has joined #ruby
<JoeGaudet>
word
<JoeGaudet>
woops
yfeldblum has quit [Remote host closed the connection]
BizarreCake has quit [Ping timeout: 245 seconds]
darkaer has joined #ruby
samuel02 has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 265 seconds]
saarinen has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
acrussell has quit [Quit: Leaving.]
marcux has quit [Ping timeout: 258 seconds]
MatthewsFace has joined #ruby
blackmesa has joined #ruby
marcux has joined #ruby
emaxi has quit [Remote host closed the connection]
julio_ has quit []
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest49681 is now known as jacky
jacky has quit [Changing host]
jacky has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<droptone>
I want to extract just the number at the end from the array element, in this case, just the 234847
Iniesta8 has joined #ruby
<timgauthier>
whats the key for that?
<droptone>
can anyone explain to me how that is done, or point me towards some documentation regarding extracting specific chars from an array element?
obs has joined #ruby
<timgauthier>
wait. nm i misread
wethu has joined #ruby
<timgauthier>
you're pulling from the URI?
danshultz has quit [Ping timeout: 258 seconds]
nateberkopec has quit [Quit: Leaving...]
<droptone>
that value is returned from an API call
<droptone>
one of many, but I need to simply extract the number at the end from the array element
zeropx has quit [Quit: has left the room … Or did he?]
<timgauthier>
is it always the same length?
<timgauthier>
I don't know how to answer your question, i'm a huge newb too, but I'm engaging incase i can be helpful, and if not at least there will be some more information about your question
<droptone>
honestly, I don't know. I'm not sure if the ID lengths are subject to change. However, if there's a way, since the rest of the URL is hard-defined, perhaps I can say "everything after the 5th forward slash
<droptone>
so I need the content after the 5th forward slash.
<droptone>
since that will always be static.
<timgauthier>
does ruby see the http:? or does it truncate that
<droptone>
at this point, I wouldn't consider myself a "huge noob", but thank you.
<timgauthier>
are you working just ruby, or do you have like rails invovled?
<droptone>
does ruby see the http://? Yes, that's the value stored in that array element.
<droptone>
this is just ruby.
<droptone>
hence me asking in #ruby and not #rubyonrails :)
<timgauthier>
hmm
pelicantek has joined #ruby
<pelicantek>
hello
<timgauthier>
haha, i've been asking tons of semi RoR questions in here :P
<timgauthier>
less hectic
pelicantek has left #ruby [#ruby]
<droptone>
I just need some sort of truncate function or some method for extracting all data in an array element based on the #s instance of a given char.
<timgauthier>
well you could always regex it
<droptone>
I could truncate backwards to the first /
withnale has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Squarepy has quit [Quit: Leaving]
<timgauthier>
but i'm trying to think if there is a way of doing something else in a logical thought process
<timgauthier>
I know PHP more then Ruby still
<timgauthier>
if you truncate then yeah definitely go backwards
<timgauthier>
splitting it out makes it an easier object to work with
<droptone>
ok, let's give that a go, thank you
RaptorJesus has quit [Remote host closed the connection]
arubincloud has quit []
<shevy>
timgauthier hey, did you have holidays in canada during easter time? right now universities here in vienna are closed for 2 weeks because of easter holidays
<timgauthier>
no negative direction truncate?'
RaptorJesus has joined #ruby
mjs2600 has quit [Read error: Connection reset by peer]
<timgauthier>
We don't have that big of a holiday shevy, we get friday-tuesday off usually
<shevy>
oh that's not much
joaoh82 has quit [Remote host closed the connection]
<timgauthier>
yeah, there are only 11 days off a year in Alberta
<timgauthier>
like, legal holidays
alexju has quit [Remote host closed the connection]
mjs2600 has joined #ruby
<DouweM>
droptone: url.match(/\/([^\/]+)\z/)[-1]
<timgauthier>
and there are 12 holidays, so the employer/school gets to pick between two of them
obs has quit [Remote host closed the connection]
<timgauthier>
DouweM is that better then split?
vpretzel|1280 has quit [Ping timeout: 250 seconds]
ktun has joined #ruby
<DouweM>
no idea
<timgauthier>
like, what happens if your identifier has content that changes, what if they at some point introduce alphanumerics
<timgauthier>
thats my line of thinking that split might be better
<DouweM>
that'd still work
<timgauthier>
ah, i can't read regex
<DouweM>
the only difference is performance, mine is just the regex version of split, take last
withnale has joined #ruby
<DouweM>
so it depends on regex performance vs split. split is probably faster
<timgauthier>
ah, nice
<DouweM>
although, maybe not
<timgauthier>
yeah, thats a tough call
toastynerd has quit [Remote host closed the connection]
<timgauthier>
split likely just makes regex on the backend
<DouweM>
probably not
sambao21 has joined #ruby
<droptone>
str.split(pattern='/').last
<timgauthier>
no?
<droptone>
that did it
<droptone>
brilliant, you sexy bitches
<droptone>
thank you.
<timgauthier>
haha wewt!
<timgauthier>
first correct answer for another human!
<droptone>
take a bow
<DouweM>
timgauthier: just one walk over the string is probably more performant than a regex
* timgauthier
bows
<DouweM>
split/last is definitely the more readable though
<timgauthier>
it seems more rubyrific
<DouweM>
readability over performance? yeah for sure
<timgauthier>
don't forget to account for an error case if you somehow don't get a link with that last set of numbers though droptone
<shevy>
Noldorin, the source-way to fix this is to wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz, install it into /usr prefix, recompile ruby, or perhaps it works if you go to its ext/psych subdir and run extconf.rb there
<Noldorin>
and libyaml is already installed
<Noldorin>
i just checked
ktosiek_ has quit [Ping timeout: 265 seconds]
<shevy>
then why did you ruby not pick it up
<shevy>
*your
<slash_nick>
mayyybe it's installed now but wasn't installed when ruby was installed... are you using the default ruby that ships with osx? orrr?
<shevy>
ewwwww osx
einarj has quit [Remote host closed the connection]
<Noldorin>
ewwww linux :P
<timgauthier>
Noldorin
<slash_nick>
no one can say that and mean it
<timgauthier>
mac is linux
<Noldorin>
rubbish
<timgauthier>
and the more you use ruby the more you see the unix
<Noldorin>
what nonsense is this timgauthier haha
withnale has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nisstyre has quit [Quit: WeeChat 0.4.3]
<Noldorin>
it's BSD-derived, silly :P
<Noldorin>
BSD >>> Linux
<Noldorin>
*hides*
x1337807x has joined #ruby
sailias has quit [Ping timeout: 258 seconds]
<mg^>
hah, MacOS X is nothing like Linux when you want to do simple things, like use getent to get user account info.
<slash_nick>
mg^... or install postgresql
Nukepuppy has quit [Ping timeout: 252 seconds]
<mg^>
Which also works on BSD, I might add
centrx has quit [Remote host closed the connection]
<shevy>
Noldorin my ruby does not have your error! :D
<mg^>
yeah but I don't know anyone who would want to do that.
<mg^>
:-)
ascarter has joined #ruby
<timgauthier>
no one WANTS to do that mg^
<timgauthier>
just.. y'know, sometimes
<timgauthier>
just like nobody WANTS kids
<timgauthier>
they just arrive
aspires has joined #ruby
<mg^>
I can accept that. I have two postgres installations mostly because that's the only non-Oracle database the application software supports.
<timgauthier>
exactly!
<mg^>
Nah, I actually wanted kids... have two of them now.
<timgauthier>
wait, why 2 installations?
<timgauthier>
i refuse to believe that mg^ :P
<mg^>
functional separation
agent_white has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
<timgauthier>
and that was the wrong ID in my link
agent_white has joined #ruby
<timgauthier>
but whatever, the word unix is in the copy twice on that link
aspires has quit [Client Quit]
<DouweM>
you said "mac = linux", but unix != linux ;)
x1337807x has quit [Ping timeout: 252 seconds]
<mg^>
I made the mistake of actually reading that php blog post mentioned above.
<timgauthier>
haha
michael_lee has joined #ruby
<timgauthier>
DouweM you are right
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier>
Mac is != linux
<timgauthier>
mac == unix
elaptics is now known as elaptics`away
<DouweM>
mac < unix, linux < unix, rather, with < as implemented on Ruby classes :)
<timgauthier>
i can understand your argument for function separation causing kids mg^
GaryOak_ has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
<DouweM>
but yeah, I understand what you meanr
<mg^>
lol
<timgauthier>
:D
<timgauthier>
i just scrolled up and saw your response, and realized how easily out of context it was
djbkd has quit [Remote host closed the connection]
meatherly has joined #ruby
<timgauthier>
I needed to refer to it to canonize the responses into the correct contexts
<Noldorin>
eh, seems it's a Homebrew issue after all :P
<Noldorin>
never mind, cheers guys
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
ACK
<timgauthier>
cheers
<timgauthier>
don't use homebrew
<shevy>
now he is saying homebrew sucks!
<slash_nick>
lol
<timgauthier>
:P
FxK has quit [Ping timeout: 240 seconds]
<timgauthier>
I'm going to write my own home-brew replacement shevy
<timgauthier>
in php
<timgauthier>
or java
<agent_white>
I would buy a Mac if I felt like burning money in a trash can. I don't have that kind of money yet :(
<mg^>
trick is to get your employer to buy you a Mac
<timgauthier>
buy a mac agent_white, its more environmentally friendly then burning money
<mg^>
and then do what I did... install Windows on it. :-)
<Noldorin>
shevy, damn right it does.
<Noldorin>
shevy, at least sometimes...
<agent_white>
mg^: Pfft, nah I'd either put Linux on it or tell them to get me a PC with twice the specs for the same price ;)
<timgauthier>
thats nice agent
Noldorin has left #ruby [#ruby]
<timgauthier>
you will not bait me into that discussion
<agent_white>
"Matz is nice so we are nice."
<timgauthier>
well and that
deadlock has quit [Read error: Connection reset by peer]
<agent_white>
timgauthier: Pfft, no discussion! PC with comparable specs is cheaper! ;)
<timgauthier>
I was employed and paid a lot of money by someone and learned how to just move beyond what people prefer to use
helpD has quit [Remote host closed the connection]
davedev24 has joined #ruby
terrellt has joined #ruby
<shevy>
mg^ damn it, you have to use windows for work?
<timgauthier>
why did i write such a complicated mixing... ugh i'm dreading moving this to my new site
<agent_white>
timgauthier: I just like to cause a ruckus... like how much better vim is than emacs! ;)
<shevy>
timgauthier told you your path of using erb is the path of doom
<mg^>
agent_white: well, I do also have a PC with twice the specs. But the Mac is an 11" Air that I use for travel, it's dual-boot. And since my day job is running an army of Linux boxes, I feel no need to boot it on the Air when it's just an SSH session away.
<timgauthier>
shevy why are we surprised, he uses postgres and choose to have kids...
senayar_ has quit [Remote host closed the connection]
<shevy>
he had kids with postgres?
gizmore has quit [Ping timeout: 245 seconds]
<shevy>
what a weird query that must have been
<timgauthier>
hey, shevy is it die, der, or das nutella?
<agent_white>
mg^: Fair enough! I wouldn't complain either way. A computer is a computer :)
<mg^>
rofl
senayar has joined #ruby
mikecmpbll has joined #ruby
<shevy>
good question timgauthier
<timgauthier>
it would have been really long, imagine putting the genome sequence into a query!?
<timgauthier>
HOW DO YOU EVEN INDEX THAT!
moritzs has joined #ruby
<shevy>
timgauthier definitely not die, der also sounds weird; I go with "das Nutella", but I never heard it used with article before
dapz has joined #ruby
mehlah has joined #ruby
<timgauthier>
shevy when you are around some germans sometime, ask that question
<mg^>
I use Postgres, MySQL, *and* sqlite all in the same server rack!
djbkd has joined #ruby
meatherly has quit [Ping timeout: 258 seconds]
<timgauthier>
INSTANT 20 MINUTE ARGUMENT ABOUT GERMAN LANGUAGE RULES!
pwh has quit []
<mg^>
they don't know about each other...
<shevy>
timgauthier ah the problem is that the people in germany and austria speak different languages ;-)
<timgauthier>
turns out that german doesn't have a way to answer the question definitively
<shevy>
bavarian being an exception
<mg^>
it gets tough living a triple life, but I get to query them as often as I want
<DouweM>
shevy: you've never said "can you pass me the nutella"?
<shevy>
though their dialect is also slightly different
<mg^>
and when the one I'm using gets me upset, I just go to one of the others
<shevy>
DouweM uh damn you are right
gizmore has joined #ruby
<shevy>
timgauthier DouweM made a great point, in such a sentence I would say "die nutella"
<timgauthier>
well its also a word that isn't german, so how do you assign a gender to a borrowword?
<mg^>
I mean, "I am going on a business trip"
<DouweM>
solved :D
<shevy>
weird really
<timgauthier>
but die can also be a plural
<shevy>
DouweM totally tricked me
<DouweM>
hehe
<shevy>
yeah timgauthier
<shevy>
english has the simpler model compared to german
<timgauthier>
technically i'd say das is likely correct though, since it could just be a neutral word
<timgauthier>
so then its das/die
davedev24 has quit [Read error: Connection reset by peer]
<shevy>
that was what I thought too!
joaoh82 has quit []
<mg^>
die Nutella would be the default, wouldn't it?
<shevy>
but in the sentence I would totally use 'die'
olivier_bK has quit [Ping timeout: 246 seconds]
<timgauthier>
no die is for feminine words
davedev24 has joined #ruby
<timgauthier>
die Frau
<shevy>
dunno mg^, DouweM confused me
<timgauthier>
Der Mann
<timgauthier>
Das Kind
<mg^>
It's been a long time since I tried to learn German
dawkirst has quit [Remote host closed the connection]
<timgauthier>
or you could go turkish, D'Frau, D'Mann, and D'kind
chipotle has quit [Quit: cya]
<shevy>
learning german is still better than learning php
<timgauthier>
yes
<timgauthier>
i should do a duolingo
<shevy>
I thought you abandoned php
<timgauthier>
(i'm registered and stuff, i mean a session)
<timgauthier>
i have
<timgauthier>
mostly
yvemath has quit [Quit: ~Surprise.]
<timgauthier>
I am actually learning German though
<shevy>
can ruby yet replace all you did in php?
terrellt has quit [Ping timeout: 258 seconds]
<timgauthier>
no
<timgauthier>
until you find me a ruby replacement for kirbyCMS
<shevy>
I dont even know what that is
<shevy>
in ruby there is one spirit strong
<shevy>
write it yourself!
<timgauthier>
I need a CMS that i can install on servers that doesn't need a special environment and lets the end user edit content
<shevy>
you'll write your own CMS eventually anyway ;-)
<mg^>
it's called Linux+Filesystem+vi :)
<timgauthier>
KirbyCMS is a flat file CMS that takes markdown and turns them into 'html' via php and uses php as the template language/engine
<timgauthier>
shevy likely not
<shevy>
definitely you will
<timgauthier>
unless we get ruby as a standard feature on web servers like php
<shevy>
unless you find something that can replace it
<mg^>
"Easy to setup, easy to use, flexible as hell"
<Cope>
timgauthier: I use nesta for that fwiw
<shevy>
hmm
<timgauthier>
i'll more likely use perch
<mg^>
that's what it says in the web site
evenix has joined #ruby
<mg^>
"as hell" could definitely be the negative when you're talking PHP...
<zorak>
how can i make a method that create a hash with a variable number of keys?
marcux has quit [Quit: marcux]
<timgauthier>
naw actually mg^ its not bad
<zorak>
lie method(5) == 5 eys
<zorak>
lie method(5) == 5 keys
<zorak>
lie method(3) == 3 keys
<timgauthier>
you use PHP logic in the templates which is uglier then erg and super limited
<Cope>
zorak: what sort of keys?
<timgauthier>
but i've done some pretty good stuff.
<mg^>
timgauthier: I agree, I might actually replace the CMS I am using for my dad's business with it after looking at the site
<zorak>
1, 2, 3, 4..
<timgauthier>
it kicks the crap out of wordpress
<timgauthier>
and its cheap (one time fee)
<timgauthier>
there is a good back end for it too, but he's rewriting it
poikon has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<timgauthier>
i'd LOVE to use ruby instead but it just isn't feesible :| i mean i could see making a ruby app that acts like perch as a back end that you log into, then it would generate the static html and push it to the ftp
<timgauthier>
but why do that when someone else already has
agent_white has joined #ruby
Guedes0 has joined #ruby
afreidah2 has quit [Ping timeout: 258 seconds]
poikon has quit [Read error: No route to host]
poikon has joined #ruby
Devanon has joined #ruby
samuel02 has joined #ruby
deadlock has joined #ruby
<Riking>
how do I do a Pathname.join() with a user param without allowing directory traversal?
<bhaak>
that kirbycms sounds a lot like a generic static website generator?
<Cope>
zorak: I am sure there is a much more elegant way :)
terrellt has joined #ruby
<bhaak>
with php, people never considered if it's a good idea or not. they just did it.
brito has left #ruby [#ruby]
<zorak>
what succ do?
<Cope>
gives you the next number
<Cope>
so 5.succ gives you 6
chris_thomson has joined #ruby
<timgauthier>
what does succ mean?
<DouweM>
successor
<timgauthier>
then whats the reason that they don't like to allow executable code on a server bhaak ? that seems very backwards and 1990.
<shevy>
they don't trust you!
sidik has joined #ruby
<shevy>
bhaak should be possible to run it in virtual machines environment jails
<timgauthier>
well, then they should learn how to make better servers/sandbox/ and realize that i'm paying for the services!
helpD has joined #ruby
<bhaak>
php is also very cheap
crzrcn has quit [Quit: Leaving.]
<bhaak>
or the other way around. all the cheap hosters have php
freerobby1 has quit [Read error: Connection reset by peer]
<timgauthier>
ruby can be very cheap if you limit it, and honestly most peoples web app doesn't need much processing
<bhaak>
but ruby programmers are not as cheap as php programmer :)
<timgauthier>
they have it because its prebuilt into the apache config for xpanel
freerobby has joined #ruby
crzrcn has joined #ruby
<timgauthier>
in my experience most host's don't actually have a clue what they are doing
invinceable has joined #ruby
saarinen has quit [Quit: saarinen]
<timgauthier>
they hire some kid with a CS degree to run web servers
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<invinceable>
is there a way to run ruby + html together in a .rb file? i am not using rails, but just want to use ruby in the same way I run a .php file.
<timgauthier>
and he doesn't understand why you need the apache mod to have a specific configuration
<timgauthier>
invinceable .erb
<timgauthier>
you still need to run ruby on it
<timgauthier>
its not the same as php
jobewan has quit [Quit: Leaving]
tjr9898 has quit [Ping timeout: 250 seconds]
northfurr has quit [Quit: northfurr]
<timgauthier>
and shevy will hate you for using .erb
saarinen has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
<bhaak>
erm, you also need a php interpreter to run php files
<bhaak>
so shevy is one of those haml lovers?
<Cope>
invinceable: what are you actually trying to do?
erikruthven has joined #ruby
<timgauthier>
yes bhaak but thats usually built in
<invinceable>
timauthier: so I can get away with thin + apache + ruby?
erikruthven has quit [Max SendQ exceeded]
<timgauthier>
i don't have any clue invinceable, thats beyond my scope of knowledge
<bhaak>
timgauthier: mod_php is as builtin as mod_ruby.
<timgauthier>
ah, yeah in that sense
<invinceable>
Cope: I am trying to create a page that I can serve from a web server (ubuntu 12.04LTS) and use ruby as a server side language without having to use rails
jason_ has joined #ruby
SCommette has quit [Quit: SCommette]
<timgauthier>
heh, i have a host (my current host for my portfolio) that has ruby installed, you can see it from the cpanel
<Cope>
invinceable: you don't even need apache... depending on what you're trying to do you could just run thin on its own
<timgauthier>
but you can't ssh into the server
<Cope>
invinceable: i'd look at sinatra for a simple thing like that - very easy to run
<timgauthier>
you have to do all of your stuff via a little form input box in cpanel
toastynerd has quit [Remote host closed the connection]
havenwood has joined #ruby
sdouglas has joined #ruby
jhass is now known as jhass|off
zigomir has quit [Remote host closed the connection]
troyready has joined #ruby
tjr9898 has joined #ruby
ce_afk is now known as cescalante
momomomomo has joined #ruby
<invinceable>
Cope: thanks, sinatra looks like what I am trying to do. Neat that you don't need thin either, that it will just run by itself :)
<zorak>
Cope: cool, its working
<Cope>
awesome zorak
zigomir has joined #ruby
<timgauthier>
what is guard ?
Briareos1 has quit [Remote host closed the connection]
<Cope>
timgauthier: it watches your filesystem for changes and can run things, like tests
iamjarvo has joined #ruby
<timgauthier>
ok neat
djbkd has quit [Remote host closed the connection]
f0ster has quit [Read error: Connection reset by peer]
sdouglas has quit [Ping timeout: 258 seconds]
mengu has quit [Ping timeout: 258 seconds]
BuSerD has quit [Ping timeout: 258 seconds]
Faris has quit [Ping timeout: 240 seconds]
momomomomo has quit [Client Quit]
<DouweM>
invinceable: I advise you do use thin though. I think Sinatra comes with WEBrick by default like Rails does, which is not production-grade
tjr9898_ has joined #ruby
<DouweM>
It's fine for development, but consider thin, unicorn or whatever if you're gonna run this in production
luckyruby has quit [Remote host closed the connection]
<shevy>
and the only valid syntax to install it is given there as well, which is "gem install rmagick"
<guardian>
indeed
spyderman4g63 has quit [Remote host closed the connection]
<shevy>
though perhaps you can download it, rename the gem to RMagick.gem and try gem install RMagick again :-)
vlad_starkov has quit [Ping timeout: 240 seconds]
<guardian>
so it's rmagick in Gemfile but require 'RMagick' in the code?
omosoj has joined #ruby
<timgauthier>
oh man, i disabled flux for a moment to check a colour.. PAIN!
<guardian>
if I do require 'RMagick' in code, then on my Mac I get warnings about already initialized stuff... and they differ only by rmagick vs RMagick in paths
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
usually such a project comes with usage examples how to use it
<shevy>
then you will know how to properly require it
<shevy>
i grepped through its source
<shevy>
lib/rvg/rvg.rb:require 'RMagick'
<shevy>
so to me this indicates that you must use require 'RMagick'
tjr9898 has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
<shevy>
I don't use gemfiles either, I use .gemspec, in the gemspec specification there is an field called .name which must have: s.name = "rmagick"
<Riking>
I just got /var/lib/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:67: [BUG] Segmentation fault
cj3kim_ has quit [Remote host closed the connection]
<shevy>
you surely must be using debian right Riking?
<Riking>
mhm
baweaver has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<Riking>
oh hey, I see 2.0.0 calling into a 1.9.1 gem
<shevy>
people need to be able to reproduce the way you caused this segfault
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 250 seconds]
tjr9898_ has quit [Ping timeout: 265 seconds]
tjr9898_ has joined #ruby
<timgauthier>
yes
northfurr has joined #ruby
djbkd has joined #ruby
agarie has joined #ruby
<guardian>
in a project that's bundler aware, do I even need require 'RMagick' before using RMagick?
garndt has quit [Quit: Connection closed for inactivity]
<shevy>
hehe
<shevy>
bundler makes people smarter ;-)
baweaver has quit [Ping timeout: 258 seconds]
<guardian>
well it's just, if I do require 'RMagick' which seems to be the proper thing to do, I get tons of warnings on Mac
momomomomo has joined #ruby
<shevy>
ok
<guardian>
if I do require 'rmagick' on Mac, no warnings but it fails on Linux
<shevy>
I installed rmagick on linux
<shevy>
I start irb, I do require 'RMagick'; i get no warnings
<shevy>
and
<shevy>
it is require 'RMagick'
<shevy>
not require 'rmagick' ever
<guardian>
sure
mehlah has quit [Quit: Leaving...]
<guardian>
but I'm in the context of nanoc, which seems to do something with bundler and load things
<shevy>
I wouldn't use upcased characters in require myself, the authors of rmagick were insane
pwh has joined #ruby
crzrcn has quit [Quit: Leaving.]
terrellt has quit [Remote host closed the connection]
terrellt has joined #ruby
intothev01d has joined #ruby
<guardian>
ok
intothev01d has left #ruby [#ruby]
tjr9898 has joined #ruby
<Riking>
i'm going to remove all debian ruby packages
<Riking>
and start over
crzrcn has joined #ruby
tjr9898_ has quit [Ping timeout: 240 seconds]
endash_ has quit [Quit: endash_]
SCommette has joined #ruby
afreidah2 has joined #ruby
<timgauthier>
is it that CLANG error ?
samuel02 has joined #ruby
<timgauthier>
i had some issue on mac getting nanoc to isntall
<timgauthier>
#nanoc is super helpful, when there is actually someone active in there
<Riking>
thanks, synaptics - you made that so much easier
baweaver has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
<timgauthier>
i ended up going middleman bedause it made more sense'
<Riking>
now let's start with rvm
spyderman4g63 has joined #ruby
<Cope>
now you have two problems
spyderman4g63 has quit [Remote host closed the connection]
<Riking>
heh
iamjarvo has quit [Ping timeout: 258 seconds]
x1337807x has joined #ruby
<Cope>
personally, I avoid rvm
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<Riking>
what should I use then?
<timgauthier>
yeah man
spyderman4g63 has joined #ruby
<timgauthier>
use bundle install nanoc
<Cope>
Riking: I use ruby-install, chruby and bundler
<Riking>
timgauthier, I just removed all ruby from my system, because it was fucked up
<timgauthier>
well then go to bundler.io and follow directions to reinstall it once you have ruby installed/compiled, whatever it is that kids use these days
<shevy>
Riking I compile everything from source. while initially it takes time (I have to do: "ue URL_HERE" of a program, then it is downloaded and compiled), it saves me from having to undo damage done by developers like on debian