<shinobi_one>
compiled_content, outputs all of the html? everything?
<timgauthier>
he was using it to do something else lol
<zorak>
the folder have spaces
<timgauthier>
yes shinobi_one
<timgauthier>
well, sort of. its a partial
<shinobi_one>
is it the actual content of the blog post? or all of the html
<timgauthier>
everything that would go in <%= yield %>
<zorak>
and when i try to open a file from the folder the vlc just brock
rm__ has quit [Ping timeout: 258 seconds]
senayar has joined #ruby
<shinobi_one>
timgauthier: so it has html tags in it, no?
<timgauthier>
so not the header/footer/nav, but the entire HTML partial
<timgauthier>
yes it has html tags
<timgauthier>
ohh..
<zorak>
and try to open Chrono, Cross, OST, Disc and 1 how they was diferent files
<shevy>
zorak did you try: File.expand_path(dir)
<timgauthier>
i see where you are going.
marcdel has quit []
<baweaver>
A Nanoc Item hits the attributes hash when it indexes, ie @item[:excerpt] is hitting @item.attrubutes[:excerpt]
djbender has quit [Quit: djbender]
<timgauthier>
that would give me a possibility for bad or broken tags if i just cut the rendered content, i need to render the content AFTEr i truncate it
<baweaver>
backslash the space
<zorak>
already try this dir = "~/Chrono\ Cross\ OST/Disc\ 1"
toastynerd has joined #ruby
<zorak>
but have the same problem
jorts has quit [Quit: jorts]
<timgauthier>
where do you find that baweaver ?
dstynchula has quit []
<baweaver>
perusing the source code
toastynerd has quit [Remote host closed the connection]
<timgauthier>
lol, of course ok :)
maximski has joined #ruby
<baweaver>
gem install pry, you can too
emaxi has joined #ruby
<baweaver>
pry is irb on some serious steroids.
karmatr0n has quit [Ping timeout: 240 seconds]
<timgauthier>
then you type pry to get into it? (like irb)
<baweaver>
yep
moritzs has quit [Ping timeout: 252 seconds]
rm__ has joined #ruby
jack_rabbit has joined #ruby
<baweaver>
Then just: show-source Nanoc::Item#[]
mikecmpbll has quit [Quit: i've nodded off.]
<shevy>
hmm
<baweaver>
Ignore the content_for part
ner0x has joined #ruby
<shevy>
I always want to type beaver
<timgauthier>
i guess i probably should open pry in the folder that i have nanoc init on? or how would i get to nanoc in pry?
<baweaver>
you only want the @attributes[key]
<shevy>
timgauthier probably require 'nanoc' first
<baweaver>
require 'nanoc'
<baweaver>
ninja'd
<timgauthier>
thats how i say it shevy
<shevy>
yeah... beaver
<baweaver>
Heh, that's my brothers typical handle.
<shevy>
I'm gonna call him beaver
<timgauthier>
yup its gibberish
<baweaver>
b.a.weaver
<baweaver>
brandon a weaver
senayar has quit [Ping timeout: 245 seconds]
<baweaver>
github handle
davy has quit [Remote host closed the connection]
davispuhh has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
<timgauthier>
yah i have no idea how to get past the first screen in pry
<baweaver>
?
marcdel has joined #ruby
<timgauthier>
i am at a : prompt :P
<baweaver>
q
<timgauthier>
thnx
<timgauthier>
derp
sdouglas has joined #ruby
<baweaver>
It kills all new unix users
<timgauthier>
srsly :P its not as bad as vim
<baweaver>
Oi
<baweaver>
I use vim
<timgauthier>
so... i need to figure out how to get the content, before it renders, truncate it, then send it to render..
<combusean>
vim!
<baweaver>
with tmux and vslime, quite useful
maximski has quit [Ping timeout: 250 seconds]
<combusean>
vim is awesome because it's everywhere
<combusean>
or vi
<combusean>
blah blah
<timgauthier>
i use sublime 3 again, atom has too much stuff missing
<baweaver>
ex sysadmin, you get used to it.
<combusean>
it's a good editor to know if you do systems work
<combusean>
yeah
TripTastic has quit [Read error: Connection reset by peer]
<combusean>
it's a common editor for ruby here too
<baweaver>
enough headless servers and you want to bludgeon the guy who says nano is useful
<timgauthier>
what does key.to_s mean?
<baweaver>
to string
<shevy>
you invoke the to_s method
<baweaver>
key is the arg
<timgauthier>
key.to_s =~ /^content_for_(.*)$/ does what?
<shevy>
it is usually a string representation
<baweaver>
Note: def [](key)
Azure has joined #ruby
<shevy>
ok, the first part means "give us back a string object", ok?
timonv has joined #ruby
<shevy>
the =~ is a regex check
<shevy>
regexes are complicated unfortunately
<timgauthier>
yes
sdouglas_ has joined #ruby
<shevy>
^ means "start of line"
<baweaver>
I'd only pay attention to that last line
<baweaver>
if I were you
<timgauthier>
@attributes[key]
<shevy>
so this regex checks for leading content_for
<timgauthier>
or end
<timgauthier>
?
<timgauthier>
:P
<baweaver>
considering you only care about :excerpt
shinobi_one has quit [Quit: shinobi_one]
<baweaver>
I do love line 174 though
<timgauthier>
so @attributes[key] ?
<baweaver>
yep
<baweaver>
174: # Get captured content (hax)
sailias has joined #ruby
<timgauthier>
how do you have 174 lines? i ... don't have that many
<timgauthier>
oh, i just don't have line numbers
<baweaver>
ah, clarify a bit, show-source -l shows line number
<timgauthier>
yea
<combusean>
show-source?
<timgauthier>
:P so how do i pry(open) the attributes[key]?
<baweaver>
Pry is one of the most useful tools you can use
<combusean>
i fucking love pry!
<timgauthier>
haha
<baweaver>
I'm doing a conference talk on it
<timgauthier>
that sounds like a boring talk :P
GaryOak_ has quit [Quit: Leaving...]
earth_ has quit [Quit: earth_]
<baweaver>
Depends on how much Ruby you work with
sdouglas has quit [Ping timeout: 276 seconds]
<combusean>
timgauthier, if it sounds boring your life as a rubyist might be boring
blackavr has quit [Quit: blackavr]
<timgauthier>
so far its a lot of frustration and asking questions on IRC but YMMV :P
<baweaver>
I routinely use Pry and guard as a REPL combination.
<combusean>
that's how i learned php 14 years ago timgauthier
<baweaver>
Then again I also like Lisp, so definitely not the usual case.
<timgauthier>
yeah, i've had more success with understanding PHP :S
<combusean>
baweaver guard?
<combusean>
gem?
<timgauthier>
but thats because it was a simple app
<baweaver>
yeah
<baweaver>
auto test runner
<timgauthier>
ok, so how do i pry open the @attributes[key]?
<shevy>
timgauthier that's why you must keep ruby simple
<baweaver>
or rather watches files of certain patterns and executes things
<shevy>
tame the beast
<shevy>
don't let it become too complicated
timonv has quit [Ping timeout: 252 seconds]
<timgauthier>
sadly i didn't have any choice since i am only doing ruby again because i didn't want to use PHP to do my own damn portfolio
<baweaver>
normally by sticking a binding.pry in the code
<timgauthier>
*shakes fist*
<timgauthier>
how do you do a binding.pry?
<baweaver>
As soon as the interpreter hits it, it'll freeze and open a pry prompt
<combusean>
oh shit
<baweaver>
literally stick that in the code.
<timgauthier>
like where i've been trying to run commands?
<baweaver>
As soon as the script executes
<baweaver>
and it hits a binding.pry
<baweaver>
it'll work like a break point
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver>
I do a lot of TDD and RSPEC, guard is invaluable.
<baweaver>
especially with a 4000+ test suite.
<combusean>
so you can run tests super fast?
<timgauthier>
@attributes[key].binding.pry didn't work, so i may need more ELI5
<combusean>
without waiting for the fucker to init?
<baweaver>
On a per file basis
<baweaver>
yep
<combusean>
so rake spec wouldn't work?
<baweaver>
No no, you'd put a new line there
<baweaver>
it'd still work
<timgauthier>
this is an erb file
<timgauthier>
but ok
<combusean>
timgauthier, but the binding.pry in your controller before the view
<combusean>
it's "binding.pry" on its own before the data you want to inspect
<baweaver>
<%= binding.pry %>
<combusean>
or that
<timgauthier>
i don't have access to that
<timgauthier>
ok thanx beavs
<combusean>
that too
fabrice31 has joined #ruby
* combusean
has never put pry in a view
centrx has joined #ruby
northfurr has quit [Quit: northfurr]
<baweaver>
Hackish, I know
<combusean>
if it works, it works
northfurr has joined #ruby
JBreit has joined #ruby
<baweaver>
Though you could always be cheeky and do: edit Nanoc::Item#[]
<timgauthier>
yah i'm trying to figure out nanoc combusean
<baweaver>
Do note, don't do that tim
<timgauthier>
:P
<baweaver>
it actually modifies the source of the gem
<timgauthier>
ok it makes guard pop up a guard(#<Nanoc::Context>)>
<baweaver>
which is handy, assuming you put it back
<timgauthier>
but i haven't a clue what to do :P
<baweaver>
Now you can access any of the variables
<baweaver>
like @item
<timgauthier>
how do i tell it to list em?
<combusean>
timgauthier, do you have a rails project?
<timgauthier>
oh man...
<shevy>
lol
<shevy>
look at the sneaky folks here
<timgauthier>
baweaver just blew my mind
whowantstolivef3 has quit [Ping timeout: 240 seconds]
<timgauthier>
how do you list all the keys again?
<baweaver>
Food time, I'll be back and forth
markisonfire has quit [Quit: markisonfire]
<baweaver>
@items.keys
JBreit has left #ruby [#ruby]
<combusean>
oh, nm
gregf has joined #ruby
<timgauthier>
you must be in NA its 2:20 am
Kricir has joined #ruby
<baweaver>
7:20PM
<timgauthier>
undefined metho
<baweaver>
Heh
zcreative has quit [Quit: Computer has gone to sleep.]
kevinykchan has quit [Quit: Computer has gone to sleep.]
<timgauthier>
and then how would i see what those contain? those are hashes?
<timgauthier>
yes.. yes i have a list of keys
<timgauthier>
muahaha!
<microdex>
Using different versions of same gem in one ruby app, possible ?
<baweaver>
@items.attributes
fabrice31 has quit [Ping timeout: 252 seconds]
<baweaver>
Not a good idea, and probably not microdex
<toretore>
microdex: not in the same process
<microdex>
thats horrible
<microdex>
what a design flaw in the language
lolmaus has quit [Ping timeout: 240 seconds]
<toretore>
yeah wth
<timgauthier>
lol microdex
<microdex>
seriously, if you have popular gems which share dependencies with your app your screwed
<timgauthier>
ok, none of these contain the content of the file. soo
<baweaver>
Well, you can, technically
<baweaver>
using bundler
kitak_ has quit [Remote host closed the connection]
<baweaver>
but that's really bad
<microdex>
Even Node.JS solves this problem with directory precedence
<toretore>
how would you suppose this would work microdex?
<microdex>
you guys are telling me that if a gem has a shared dependency with your app, your toast ?
<toretore>
stop your whining
<microdex>
@toretore ?
<microdex>
how do you mean ?
<baweaver>
I fail to see how this is a Ruby issue
<toretore>
and/or trolling
<microdex>
its not trolling
<microdex>
if you have a GEM which has the same dependency as your app, but a different version... then what?
noob101 is now known as animehti
<toretore>
so do you have a suggestion for how this would work?
<baweaver>
then you get versions that play well together
<baweaver>
sucks, but sometimes comes up
<baweaver>
rare though
<timgauthier>
how would i get pry inside of a single instance of a .each ?
chrisseaton has quit []
<microdex>
the same way it works in node.js , the interpreter looks in module folder first to resolve dependency , if it doesn't exist there it looks up the chain until it hits global modules
sdelmore has joined #ruby
twiceaday has quit [Ping timeout: 240 seconds]
<toretore>
and how would ruby know which version your code is using?
<microdex>
I'm so shocked this isn't accomodated in rugby
<microdex>
ruby
<toretore>
see that there
<toretore>
that's the whining i was talking about
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
pen has joined #ruby
<timgauthier>
baweaver, how do i get myself into the instance of an .each if i put the pry point inside will it do that?
<microdex>
@toretore , it simply loads the module it finds first
<toretore>
and the other one that some other part of the code needs?
<microdex>
two modules, with two different versions are treated by the interpreter as completely separate unique modules
twiceaday has joined #ruby
northfurr has quit [Ping timeout: 252 seconds]
<microdex>
the other one gets loaded from global gem store
<toretore>
into where?
<microdex>
In memory they are two unique independent modules
<microdex>
in the scope of your class
blackavr has joined #ruby
danshultz has joined #ruby
<microdex>
even with FROZEN gems , this can't be accomodated ?
<toretore>
no
PROXIMUS has joined #ruby
<microdex>
I'm SO surprised , I'm surprised no one sees this as a problem
sqwirl has joined #ruby
<PROXIMUS>
hi folks
<PROXIMUS>
im trying to install metasploit on my osx
blackmesa has quit [Ping timeout: 272 seconds]
TripTastic has joined #ruby
<toretore>
microdex: hindsight
<wallerdev>
what are you guys talking about haha
<toretore>
ruby is much older than node
<PROXIMUS>
i get error message with could not locate gem file
<PROXIMUS>
what should i do
<wallerdev>
gems depending on different versions that have breaking changes between them?
<microdex>
Java, Node.JS all have mechanisms to accomodate this
<baweaver>
It's a problem of hoakey dependency versioning in gems
mercwithamouth has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
Nukepuppy has joined #ruby
<toretore>
you could conceivably hack together something that loads classes into separate modules
toastynerd has quit [Remote host closed the connection]
<microdex>
Node.JS has a great mechanism for this. You have the option to just keep your dependencies in the module directory and those are used only in the scope of that module
<toretore>
oh you don't say
SatansDeer has joined #ruby
<baweaver>
Oi, toretore, MINASWAN
senayar has joined #ruby
<microdex>
I have a feeling that the Ruby community is just about Rails and just following "conventions" set forth by that framework , is this true ?
<havenwood>
microdex: we resolve the dependencies using nice automated tools
<combusean>
brb guys
<wallerdev>
and you see that even now with python, python 3 comes out and no one uses it
<wallerdev>
because people just want what works and stability
<rankine>
baweaer: nice, thanks
meatherly has quit [Ping timeout: 240 seconds]
<baweaver>
fixed rankine
<baweaver>
derped a bit
<microdex>
@havenwood my original question ( to which I got a unanimous NO ) : Is it possible to use two different versions of the same gem in your app?
<baweaver>
on the gist
ccham_ has joined #ruby
<havenwood>
microdex: no, we think that is bad practice
jamto11 has joined #ruby
<havenwood>
microdex: simpler tools do it, because they're too lazy for a proper solution
<havenwood>
microdex: don't do that.
<toretore>
it's not bad practice, it's just not possible
<havenwood>
toretore: it would be trivial to make it possible, we don't want to
marcdel has joined #ruby
<microdex>
havenwood: whats the alternative? rewrite 3rd party GEMS anytime this happens ?
JBreit has joined #ruby
<microdex>
havenwood: I like your attitude
<timgauthier>
baweaver @item and item are the same?
<toretore>
monkey patch them. it's the rails way (™)
<microdex>
havenwood: what is the solution to GEMS with overlaping dependencies which go out of sync ?
<baweaver>
attr_ methods
<baweaver>
kinda
<baweaver>
attr_reader would define a method named item
<wallerdev>
haha i think the ruby solution is to push a fix to the library so it works with the latest version
JBreit has left #ruby [#ruby]
<microdex>
havenwood: Are you suggesting the Ruby community expects the programmer to 'Fix' all the GEMS with outdated dependencies ?
razrunelord has quit []
<baweaver>
microdex, s/GEMS/gems/g
<toretore>
microdex: the "community" doesn't expect anything
tkuchiki has quit [Remote host closed the connection]
TripTastic has quit [Ping timeout: 276 seconds]
pskosinski_ has joined #ruby
<microdex>
@toretore: All I'm trying to do is get answers, I'm not trying to cramp anyones style or troll, I apologize if thats what you think and feel free to ignore me.
karmatr0n has joined #ruby
<baweaver>
timgauthier: post it on dreamincode.net and I can keep a few people on it
<toretore>
havenwood: how would you make it possible, and why do you think it's a bad idea?
<havenwood>
microdex: instead of tons and tons of duplicate gem versions, we resolve dependencies to ones that actually work. often gems use pessimistic versioning, and if gems start using incompatible stuff we file issue tickets so we have a nice, DRY, functioning ecosystem.
<timgauthier>
post all of what i'm doing or just the last example?
Spami has quit [Quit: This computer has gone to sleep]
<wallerdev>
this seems like its only an issue if a gem is making breaking changes no?
<havenwood>
microdex: you might like how perl6 is doing it, a combo of gem name, author name, and version. any one that differs is treated as a whole separate package.
<wallerdev>
ive never ran into this issue in like 6 years haha
alexju has quit [Remote host closed the connection]
<microdex>
havenwood: That makes sense
<baweaver>
bundler lets you define such as: gem 'foo', '~> 1.0.0'
combusean has quit [Ping timeout: 276 seconds]
<microdex>
At this point I really enjoy Ruby Syntax though
marcdel has quit [Ping timeout: 252 seconds]
<toretore>
bundler doesn't do what he's asking
<baweaver>
microdex, it's a valid point, yes, but at the same time it seems like a non-issue to people using Ruby
<baweaver>
....until you find one of those rare gotchas
<microdex>
baweaver: thanks
<baweaver>
then it's a pain
<baweaver>
We had one such thing at $WORK
<toretore>
it's definitely not a non-issue with all these spider web dependency gems
<havenwood>
microdex: The Ruby way really does work nicely in practice. But there is more than one way to do ti.
<microdex>
@toretore: Thanks !
<baweaver>
Not fun to find, but that's happened once in a few years
pskosinski has quit [Ping timeout: 272 seconds]
sdelmore has quit [Quit: Leaving.]
<microdex>
So what you guys are saying is that all GEMS in Ruby are Globaly available per system and only 1 Version will be used by your application ?
<toretore>
dependency management is important, and version mismatch happens, and it's not fun
<baweaver>
and that's only because someone blitzed the gemfile.lock which keeps versions locked down
<toretore>
stop writing GEMS plz
<microdex>
ok
<microdex>
hahHHAHAH
<microdex>
sorry
<microdex>
Is that offensive or what? I'm new to RUBY
<toretore>
oh god
<microdex>
;OHHAHAHAHA
maximski has joined #ruby
<wallerdev>
you can have multiple versions of gems used by different applications
<baweaver>
bundler can manage that
<microdex>
@wallerdev: how ?
<timgauthier>
toretore baweaver i don't think that they want help
<baweaver>
rvm can manage multiple gemsets across the system
andy___ has quit [Remote host closed the connection]
<toretore>
HAHA maybe you should try out NODE i hear it uses JAVASCRIPT
<microdex>
;HAHAHFHAFHa
<timgauthier>
isn't javascript that java stuff? I heard it is really insecure and I should turn it off in my browser
habanany1 has joined #ruby
<wallerdev>
microdex: each application can specify which version of a gem they want
maximski has quit [Max SendQ exceeded]
<toretore>
HAHAHAHAHAA ;D ;D ;D ;D LOLOLOLOL
<wallerdev>
an application just can't really use two versions of a gem at the same time
kitak has quit [Remote host closed the connection]
marcdel has joined #ruby
<microdex>
@wallerdev: thanks
<timgauthier>
baweaver i don't really wanna join another community :S
<microdex>
@toretore: thanks as well
<baweaver>
This one tends to be nicer than SO on things
Y3K has joined #ruby
<Y3K>
\o
<timgauthier>
man, running a rake into your face is nicer then SO :P
<Y3K>
I'm using SASS 3.3.4, but watch doesn't seems to work.
<microdex>
How does Bundler handle different versions of gems which are older?
<timgauthier>
did you change the batteries?
<toretore>
what do you mean by doesn't work y3k?
<microdex>
Does it Remove new versions temporarily ?
<baweaver>
Gemfile.lock
<timgauthier>
thats what I did last time my watch didn't work
<Y3K>
It compiles the .scss files the first time by then it doesn't detect any changes.
<PROXIMUS>
dicks
<baweaver>
different environment
<toretore>
it's not supposed to auto-compile
<wallerdev>
it just loads it from the path on the system
mercwithamouth has joined #ruby
PROXIMUS has left #ruby [#ruby]
<wallerdev>
the gems are in like gems/my-cool-gem/4.3.4/thestuff
<wallerdev>
and it loads that path
habanany1 has quit [Remote host closed the connection]
<baweaver>
and by path, it first hits the projects gem cache
<microdex>
I thought that gems were loaded at runtime by the interpreter ?
<baweaver>
loaded, technically, downloaded, no
<Y3K>
toretore: What do you mean? When I was using 3.2.15 it detected file changes and re-compiled the .scss
<timgauthier>
yea, i was under the impression that sass watch just did that..
kitak has joined #ruby
<timgauthier>
or was i using compass for that...
<toretore>
it doesn't any more
<timgauthier>
i wonder why? do you need to use guard for that now too?
<toretore>
oh nm me
<toretore>
i was thinking of nanoc
<timgauthier>
ahh ;)
SCommette has joined #ruby
<microdex>
bundler.io: "Bundler will connect to rubygems.org (and any other sources that you declared), and find a list of all of the required gems that meet the requirements you specified."
<timgauthier>
thats ok Tore... i'm the one breaking/lost in nanoc
<timgauthier>
why would you take the watch out of something like nanoc though?
<microdex>
so it Does actually download them
<baweaver>
yep
<wallerdev>
microdex: that happens when you run bundle install, not when you run your app haha
<baweaver>
each project has its' own set
<toretore>
microdex: bundler is a tool, it's not ruby
Deele has quit [Ping timeout: 255 seconds]
<baweaver>
Well, it's made in Ruby
<baweaver>
and it's for Ruby
<baweaver>
duck?
<timgauthier>
ruby is the chicken and the egg :P
<wallerdev>
bundler is actually written in python
<wallerdev>
:p
<timgauthier>
some say in the beginning there was nothing, and then ruby created itself
<shevy>
lol
arubin has joined #ruby
<baweaver>
100% Ruby
<timgauthier>
wallerdev and jekyll is jekyllrb but the compiler is python :P
<microdex>
So if you have Multiple Ruby Apps on your system , which all use different versions of the same gem, do I have to run 'bundle install' every time I switch apps ?
<timgauthier>
his sass isn't watching anymore
<havenwood>
shevy: the Y3K bug
<baweaver>
nope
<shevy>
lol havenwood
<baweaver>
it manages its context
<wallerdev>
just once per app
<baweaver>
kinda like git
<microdex>
'context' ?
<toretore>
Y3K: what did you run exactly?
<timgauthier>
wallerdev well you can run bundle install again
<wallerdev>
itll store in a local file the dependency info in the directory
<baweaver>
when you're in an apps folder, you're in its context
Avahey_ has joined #ruby
<timgauthier>
and it will update any changes you specify
<toretore>
microdex: all this is written down somewhere
<Y3K>
It does complie the first time, no errors.
doxavore has joined #ruby
Martxel_ has quit [Ping timeout: 252 seconds]
<microdex>
so you're saying you CAN have multiple versions of the same gem installed on one system, and load the appropriate version at runtime according to .gemfile spec ?
<toretore>
yes
<havenwood>
microdex: you can have every version of every gem installed if you'd like
<baweaver>
Gemfile rather
<baweaver>
Gemfile.lock tracks what's currently installed
<microdex>
but you guys said bunlder was just 'a tool'
<wallerdev>
yup, you just can't load two versions at once
<microdex>
and that it didn't dictate what the interpeter did
<wallerdev>
you don't need bundler to do that
<baweaver>
It is a tool, a tool for dependency management
<wallerdev>
you can also write gem 'mygem', '2.3.4'
karmatr0n has quit [Remote host closed the connection]
<microdex>
so Gemfile instructs the interpreter to load appropriate version of the Gem ?
<toretore>
no
<doxavore>
Is there a way to see what is preventing a particular object from being garbage collected (in 2.1.1)? I can see what an object is holding references TO, but going the other direction seems to be problematic...
<toretore>
*it* loads the gem
<havenwood>
microdex: bundler does more than just what we're talking, but if you just want dependency resolution you can just use Gem to do it these days if you'd like.
<baweaver>
Gemfile.lock
<havenwood>
microdex: gem i -g Gemfile
<havenwood>
gem install --file Gemfile
<microdex>
:O
<timgauthier>
toretore what would you call the stuff that gets output in <%= yield %> in nanoc?
<microdex>
If you can install every version of a Gem, How does the interpreter know which version to load at runtime ?
<havenwood>
microdex: bundler will eventually be merged into RubyGems, but not yet.
iamjarvo has quit [Ping timeout: 245 seconds]
marcdel has quit []
<toretore>
timgauthier: in a layout?
<timgauthier>
ya
<microdex>
havenwood: :O
<baweaver>
The same way git knows you're in a project directory
<toretore>
idn, body?
<timgauthier>
hmm
maletor has quit [Quit: Computer has gone to sleep.]
<Y3K>
I'll just downgrade then, thanks.
benzrf|offline is now known as benzrf
<toretore>
microdex: is it true that node doesn't have threads??
tkuchiki has joined #ruby
<timgauthier>
when did that sass update come out?
<microdex>
@baweaver: Git knows you're in project dir by looking at .git dir
<microdex>
you're saying that the interpreter looks at .git dir ?
<baweaver>
Similar, not the same
<microdex>
so what does it look at ?
<baweaver>
It looks at the Gemfile.lock
<microdex>
oh
<baweaver>
which is auto generated on a bundle install
<baweaver>
containing the versions of the gems
JBreit has joined #ruby
<baweaver>
you try and run something in that directory before you bundle install, and it'll say you don't have the gems installed
<microdex>
Ok, I'm just gonna confirm this: Ruby Interpreter reads gemfile.lock to determine correct version of gem to load ?
<baweaver>
pretty much
<microdex>
pretty much = yes or no ?
<toretore>
no
<toretore>
bundler does
<baweaver>
for all practical purposes, it's irrelevant
pietr0 has quit [Quit: pietr0]
<microdex>
I apologize if I sound like a broken record but I'm getting mixed messages here
<toretore>
it's not. `ruby file.rb` won't give a shit about your gemfile
paulfm has quit []
<microdex>
you guys just said Ruby Interpreter reads gemfile.lock
<microdex>
So. If one can install every version of a gem, how does Interpreter know which one to load?
<Renich>
and it doesn't respond to ping... can somebody give me the IP please?
<wallerdev>
54.245.255.174
<toretore>
the interpreter doesn't know what a gem is
<Renich>
[renich@introlap ~]$ ping rubygems.org
<Renich>
PING rubygems.org (54.245.255.174) 56(84) bytes of data.
<Renich>
no response...
<microdex>
ok
klaut_ has quit [Remote host closed the connection]
ikawnoclast has quit [Ping timeout: 240 seconds]
JBreit has left #ruby [#ruby]
<wallerdev>
maybe you got banned
<Renich>
let me check in LVS; currently in México
<havenwood>
Renich: RubyGems doesn't respond to icmp, ever.
<shevy>
The address of rubygems.org was 54.245.255.174
<microdex>
so the interpreter just knows "'Classes' right
<microdex>
?
<havenwood>
Renich: That is expected.
<baweaver>
You're making this far more complicated than it needs to be.
<microdex>
I just want to understand
<Renich>
havenwood: ok, what about the dig result?
<havenwood>
Renich: hem
Y3K has quit [Quit: Page closed]
<Renich>
ok, LVS seems to give a good dig result... this is odd... forget about it
klaut has quit [Ping timeout: 252 seconds]
<toretore>
microdex: the interpreter only knows how to load files. when it loads a file, the classes and modules in that file are included in the global scope. rubygems adds a gem's path to ruby's $PATH so that the files can be loaded.
SidWu_ has joined #ruby
SidWu_ has quit [Max SendQ exceeded]
<zorak>
there is a way to run irb like ruby 1.8??
snuffeluffegus has joined #ruby
<microdex>
toretore: You guys said you can install ALL versions of a Gem, so how does your app know to load right file?
awukelelexi has joined #ruby
xerxas has quit [Quit: Connection closed for inactivity]
<toretore>
rubygems will add the path of one version to $PATH
<microdex>
toretore: if its all Global like you say, how does your app know which file to laod
tvw has quit []
pkrnj has joined #ruby
karmatr0_ has quit [Ping timeout: 240 seconds]
<baweaver>
Gemfile.lock
<toretore>
no
<toretore>
forget about gemfile
<baweaver>
then enlighten us...
<havenwood>
microdex: A Gemfile is evaluated as a Ruby file. A Gemfile.lock is created that contains the resolved versions of the gems that work together. Bundler or RubyGems then installs/uses the locked versions that all play nice together.
<microdex>
yes enlighten us
<toretore>
gemfile is used by bundler, i'm not talking about bundler here
funburn has quit [Ping timeout: 276 seconds]
marcdel_ has quit []
<toretore>
microdex: if you have several versions of a gem, those will exist in different directories. rubygems will add *one* of those directories to the path
<havenwood>
microdex: For apps, you then distribute the Gemfile.lock along with the Gemfile, so you're all working on the exact same set of gems.
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore>
and when you do a require, the file is searched for in that directory
northfurr has joined #ruby
momo_cassandra has joined #ruby
<havenwood>
microdex: When you deploy, you do a `bundle --deployment` which puts the gems in a local /vendor file instead of in $GEM_HOME.
<microdex>
havenwood: :O :O
<microdex>
ok , well that changes everything
<havenwood>
microdex: `require` goes down the load path till, ding
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has quit [Remote host closed the connection]
Bumptious has joined #ruby
<microdex>
havenwood: Thats exactly what I was tryign to figure out
<microdex>
so the interpreter in Ruby does indeed have a search chain for resolving classes and modules
jonno11 has joined #ruby
<toretore>
yes
<microdex>
directory precedence as configured by bundler and ruby gems
<havenwood>
microdex: Well, there's the load path, then RubyGems (which is part of the language) also has a dependency resolver.
amclain has joined #ruby
<havenwood>
Gem::DependencyResolver
sent-hil has quit [Quit: Connection closed for inactivity]
<havenwood>
(in the stdlib)
<microdex>
Wow
<microdex>
DependencyResolver
<microdex>
Thats what I was after
<microdex>
Seems there is a lot of confusion in here ( or in my head ) about the overlapping roles of DependencyResolver, Bundler and RubyGems
maximski has joined #ruby
<shevy>
rubygems is Gem
<toretore>
dependencyresolver is part of rubygems
<shevy>
bundler came after Gem
<havenwood>
microdex: Gem *is* RubyGems (DependencyResolver is under its namespace).
<Renich>
is there any particular reason why rubygems.org won't show anything to curl, but curl works on everything else (aka google.com, linuxfoundation.com, etc0
<shevy>
and one day bundler and gem will unite!
<havenwood>
microdex: Currently the traditional resolving role of bundler is being incorporated into RubyGems proper, so the story will become more clear in the future.
blackavr has quit [Quit: blackavr]
<baweaver>
til then they sedate us with parallel installs
<shevy>
hehe
<shevy>
the more parallel bytes the better
<timgauthier>
oddball question, any ruby based customer/management systems out there?
<baweaver>
Til it hits Nokogiri, then you're boned
<toretore>
not for disk interfaces
jordilopezamat has joined #ruby
Hanmac has joined #ruby
<havenwood>
microdex: The bundler and rubygems teams will merge, but right now the groundwork is just being laid.
<microdex>
@havenwood So bundler is being integrated into the gem system ?
<shevy>
it will be ripped to peaces, then the bundler skeleton will be dropped!
<havenwood>
microdex: Bundler will go away (eventually, rumors of its death are premature), and only Gem will remain.
<shevy>
pieces too
Asher has quit [Quit: Leaving.]
frem has quit [Quit: Connection closed for inactivity]
<havenwood>
microdex: Years from now.
<shevy>
didn't you watch highlander microdex
<shevy>
there can only be one
<microdex>
HAHHhhahahHA
trhodes_ has quit [Ping timeout: 264 seconds]
<havenwood>
microdex: But RubyGems is gaining power from the other immortals, it draws them toward itself.
Asher has joined #ruby
<microdex>
Still the problem remains: If your app shares different version dependencies with your gems you're toast.
<shevy>
yes
<wallerdev>
not toast, but you'll have to work around it
<shevy>
update to the latest
<shevy>
stop being so slow!
<microdex>
HAHAHAH
<microdex>
good call shevy
<baweaver>
I've seen that once in 3 years
<wallerdev>
if you release a gem and don't update it, people will not use it haha
slawrence00 has joined #ruby
<microdex>
I guess you're right this system does promote gem refreshes
<shevy>
hey
<toretore>
sometimes it's not your app, but two gems that depend on different versions
<shevy>
I push new updates of my gems all the time
<havenwood>
microdex: We really do favor latest-and-greatest. If it is old, End-of-Life it! :P
<shevy>
so that bot-downloads can download
<toretore>
and there's little you can do about that
<microdex>
@toretore: precisely!
Hanmac1 has quit [Ping timeout: 252 seconds]
<shevy>
easy solution
<shevy>
drop the slow gem
<shevy>
laugh at the author
<timgauthier>
do you include hex encoded images in that shevy?
<baweaver>
Just make sure not to bundle update
<havenwood>
microdex: Also we use pessimistic versioning constraints and rely on semantic versioning practices.
<baweaver>
unless it's on one gem at a time
<shevy>
timgauthier that is way out of my league
<timgauthier>
to waste bandwidth
<havenwood>
microdex: Without semantic versioning it wouldn't really work. :O
<shevy>
timgauthier I wrote a RgbToHex class converter :P
<havenwood>
microdex: But it does work. :)
<toretore>
kind of
<havenwood>
toretore: ;P
<timgauthier>
but why would you want to use hex?
jordilopezamat has quit [Ping timeout: 252 seconds]
reset has quit [Quit: Leaving...]
<microdex>
Wow, so the verdict: Different versions of same gem in one app: Not Possible
<timgauthier>
wait... irc bots
<toretore>
one gem per process is like using global variables. you can make it work, but it's not ideal
<shevy>
microdex well you have to decide which one you wanna use!
<toretore>
*one version
<timgauthier>
you can't expect the computer to do ALL the work for you
<shevy>
lol timgauthier
<baweaver>
Possible through wicked hackery, and bad things will happen
twiceaday has quit [Ping timeout: 252 seconds]
sski has quit [Remote host closed the connection]
<toretore>
it's a reasonable concern
jordilopezamat has joined #ruby
<toretore>
and node's solution is nice
<baweaver>
Such as I can monkeypatch string to act like fixnum
<shevy>
why only two gems
<toretore>
better
<shevy>
why not ten
sski has joined #ruby
matcouto has joined #ruby
ghr has joined #ruby
<timgauthier>
ack! how do you comment out erb lines!
matchaw_ has quit [Ping timeout: 240 seconds]
<timgauthier>
oh, turns out it isn't easy ... ok
<toretore>
<%# comment%>
freerobby has joined #ruby
markisonfire has joined #ruby
<shevy>
timgauthier erb is like ruby code, you only have to add stupid <> thingies
<timgauthier>
haha
<timgauthier>
so its like php code
<timgauthier>
but a bit better
<shevy>
yeah
<timgauthier>
but harder to host
<shevy>
haha
matchaw has joined #ruby
<shevy>
well don't worry
<baweaver>
HAML
<shevy>
one day you will have overcome erb
<shevy>
for now you are stuck with it
<timgauthier>
srsly.. my host HAS ruby... i can install things in it...
<havenwood>
RubyGems II, The Quickening.
<timgauthier>
but i don't see how since i can't push git too it
<shevy>
Bundler 2000 - Terminator was nothing against it
<baweaver>
passenger
<timgauthier>
and i can't ssh into it
mckain has joined #ruby
<timgauthier>
is it even possible to deploy ruby apps via ftp? then somehow "run" the app from the web based cpanel console?
sski has quit [Ping timeout: 240 seconds]
<shevy>
probably depends on that host
<shevy>
your setup gives me headache
<havenwood>
timgauthier: Use git, mina, vlad the deployer, capistrano, anything but ftp.
<baweaver>
ftp bad
<baweaver>
sftp better
<timgauthier>
yeah, but.. all of those require you to have the server use them
<timgauthier>
when i say ftp i mean sftp
<timgauthier>
but its not ssh
<havenwood>
ah
ghr has quit [Ping timeout: 252 seconds]
<baweaver>
SFTP == FTP over SSH
<timgauthier>
i use the little checkbox that says use sftp if availible
<baweaver>
if available.
<timgauthier>
my server has it as far as i know
<timgauthier>
nope nm, i'm using good ol open ftp :|
xjiujiu has joined #ruby
<timgauthier>
*sigh* i think its nearly time to start paying up money and go to a new web host.... but i'm so poor, and so cheap
<pipeep>
Naw, you shouldn't use SFTP. You know, performance and stuff. Credentials submitted over plain-text are totally fine.
zcreative has joined #ruby
<baweaver>
*whistles* tcpdump
<baweaver>
wireshark
<baweaver>
etc etc
ddv has quit [Ping timeout: 245 seconds]
<shevy>
people are full of ideas
<pipeep>
baweaver, It's not like there's some big government organization spying on all our internet traffic.
<timgauthier>
sftp or not :P
<pipeep>
timgauthier, I'm being sarcastic. Please use SFTP.
<timgauthier>
i know ;)
<shevy>
they got openssl backdoors anyway
gregf has quit [Ping timeout: 252 seconds]
<timgauthier>
just keep closing doors bro
<shevy>
I never close the door to the toilet
<timgauthier>
whatever, i use my own home brew encryption anyhow..
<timgauthier>
i mean, i can't decrypt it, thats how good it is
ddv has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
<baweaver>
about that
<baweaver>
sftp is ssh based
<timgauthier>
lol
<baweaver>
not openssl
<timgauthier>
ssh based means you need an ssl cert ?
<timgauthier>
no nm, ssh uses keys
<shevy>
I use keys too
SilkFox has joined #ruby
<baweaver>
and Theo was kind enough to heckle the OpenSSL folks too about it
<timgauthier>
i use the return key too much and the delete key too little
<baweaver>
Theo De Raadt founded OpenBSD, which made OpenSSH
<timgauthier>
it won't be long... they'll find an openssh backdoor too, the moles are all over yo
<timgauthier>
that price for s4 is nuts... but yeah.. i need to delete stuff sometimes :P
<baweaver>
Used to be a SysAdmin
danijoo has joined #ruby
<baweaver>
it's a pain to set up right, but dang that thing is a tank
<timgauthier>
i avoid getting near sysadmin type work
RaptorJesus has joined #ruby
Martxel_ has joined #ruby
<baweaver>
RaptorJesus: are you Joseph?
<pipeep>
timgauthier, I've started doing my own sysadmin for stuff like email, simply because I don't trust anyone else enough
<timgauthier>
I've had a gmail since they exsisted
<timgauthier>
and i know they spy on it
<timgauthier>
and I have some self hosted email... but it doesn't work more then it works.
<pipeep>
Yeah, I recently removed all my mail from gmail, and downloaded it to a mbox file.
<timgauthier>
y'know it is a bit late for that... honestly removing it or deleting it..
<pipeep>
Now gmail is a dumb forwarder for people that don't have my new email
<timgauthier>
they already HAVE a copy
tjr9898_ has joined #ruby
<lbwski>
lol at s4
tjr9898 has quit [Ping timeout: 240 seconds]
funktor has joined #ruby
<pipeep>
timgauthier, but at least this way it's harder.
<pipeep>
Plus, I use GPG when I have a key for someone
<pipeep>
(although GPG could be broken, who knows...)
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier>
I just don't use email for stuff i don't want to be known or shared
<timgauthier>
someone should update the email standard to include end to end encryption though
breakingthings has quit [Ping timeout: 240 seconds]
<timgauthier>
automate the handshakes etc
<cout>
I don't use any of that encrypted email stuff because I don't want to stand out when the NSA is sifting through internet traffic
wallerdev has quit [Quit: wallerdev]
<pipeep>
And then I have a gpg signed file on my website with my OTR information, so I can use OTR with anyone who validates my GPG key: http://b.enjam.info/contact_info.asc
breakingthings has joined #ruby
<pipeep>
timgauthier, email is a lost cause. It's horribly broken in a ton of ways.
<timgauthier>
i'm not going to look pip, because honestly i'll just complain about design, i sort of care less about security then i should :(
funktor has quit [Remote host closed the connection]
<timgauthier>
yes it is broken in many ways, but thats not a reason to abandon it and not fix it...
<pipeep>
Eg. there's no point in using a valid cert for email, as there are known MITM attacks to drop the cert
wallerdev has joined #ruby
funktor has joined #ruby
<pipeep>
So just use self-signed, to prevent passive attacks
<baweaver>
The horse carriage is broken in many ways, but that's not a reason to abandon it and not fix it...
<timgauthier>
intact its a great reason to do just that... just a lot of parts to move and push forward. introduce it as a layered standard. "Email 2.0" is backwards compat but has secure futures for those who also have email 2.0 etc
<pipeep>
timgauthier, I feel like it's beyond repair. It's too hard to get everyone to update to new standards.
<timgauthier>
well no baweaver we did move on in our transportation methods... if it means moving from email to something else then by all means lets, but we have to actually DO that.. so far nothing has had traction enough to move us out of email land
<pipeep>
timgauthier, by that logic, PGP is email 2.0
<baweaver>
pipeep, like Windows XP :D
<timgauthier>
you don't have to get everyone to update, you just start doing something and get a movement, when the market sees they'll move out of fear of losing the game
pu22l3r has joined #ruby
Lewix has quit [Remote host closed the connection]
<pipeep>
baweaver, I'm still using XP :)
SilkFox has quit [Ping timeout: 240 seconds]
<timgauthier>
but PGP is hard to adopt because of how much work it is to implement, if the whole process was built into the standard and automatic then of course i'd sign up for your service and check that box
<pipeep>
(on a VM that doesn't have network access, for some school work)
<baweaver>
...which is why I gave you a 30 second benefit of the doubt before I posted.
<pipeep>
timgauthier, Because the MITM could say "I don't support email 2.0", the security could always be stripped.
<pipeep>
The only ways to completely fix the security is to break the protocol.
<timgauthier>
but if your email 2.0 has it set so that you KNOW if it breaks
deric_skibotn has quit [Ping timeout: 240 seconds]
<pipeep>
timgauthier, that's not a bad idea.
<timgauthier>
and have a service that offers good email with this feature built in. like lavabit was doing, that shit could have blown up in a good way if the gov didn't get invovled
<pipeep>
Although most users probably will click "okay" anyways, like they do on sites with invalid https certs
<RaptorJesus>
baweaver: nope
<baweaver>
Drat
<pipeep>
Actually, weren't the lavabit folks working on something like this?
<timgauthier>
pipeep i am a designer, i have lots of ideas, i just can't build em
<timgauthier>
this is basically exactly what lavabit was now that I think about it yea
zachallett has quit [Remote host closed the connection]
<baweaver>
timgauthier: I was a designer, I had lots of ideas, I couldn't build them
<baweaver>
So I got ticked, learned code, and did it.
<timgauthier>
now that your a dev, you have no ideas baweaver ;)
<benzrf>
if there is no out-of-band communcation at all, MITM is always theoretically perfect yes?
agent_white has quit [Ping timeout: 250 seconds]
<pipeep>
I'm a dev with plenty of ideas, but not enough time or energy to implement them all.
m0s is now known as m0s^away
afex has quit [Ping timeout: 252 seconds]
<baweaver>
Hackathons
<pipeep>
benzrf, well, that's what CAs or the WOT are meant to solve. They provide easy ways of out-of-band communication
<benzrf>
yea
<benzrf>
just dblchecking
<timgauthier>
you guys just lost me
<timgauthier>
:P
ikawnoclast has joined #ruby
SatansDeer has joined #ruby
combusean has joined #ruby
<timgauthier>
back to converting from liquid to erb
<baweaver>
haml
<timgauthier>
what about haml?
<timgauthier>
i can't even READ it
<pipeep>
jade
<baweaver>
Better than ERB to me
<pipeep>
(just trying to stir the pot)
<timgauthier>
haha
sski has joined #ruby
<timgauthier>
i'd love to learn handlebars
<timgauthier>
cause i like the logo
danijoo has quit [Remote host closed the connection]
<timgauthier>
but i don't know how to get it running in nanoc
<baweaver>
I use HAML / LESS for work
<baweaver>
Well, before I moved to Java services and Big Data...
<pipeep>
baweaver, I tried LESS, and ended up preferring SASS/SCSS in the end
pskosinski_ has joined #ruby
<wallerdev>
haml is awful
<timgauthier>
haha wallerdev
<baweaver>
I prefer SASS
momo_cassandra has left #ruby [#ruby]
<baweaver>
$WORK just had LESS already
jason__ has joined #ruby
<wallerdev>
scss is great because regular css is valid scss
* pipeep
Points finger at pskosinski_. Look, one of those "tor" nerds!
<combusean>
i hate haml
<wallerdev>
haml is awful because you paste html into it and it doesnt work
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<baweaver>
Keeps logic out of your views
<combusean>
and its use of shift characters to do anything
<combusean>
and its demands for whitespace
<combusean>
masochists like haml
<baweaver>
Eh, I prefer it.
<baweaver>
Then again I don't have even if branches in my layouts
<wallerdev>
haml is okay if you're the only one working on your application
<benzrf>
combusean: fite me irl
<benzrf>
haml is winny
<baweaver>
Style guides
<benzrf>
*win
<timgauthier>
wait.. you do ZERO logic in the view?
<baweaver>
Next to
<timgauthier>
what about like "if logged in A otherwise B" ?
<baweaver>
Presenters
<baweaver>
dynamic rendering
<timgauthier>
but if the logic is literally that one chunk of if logic?
<baweaver>
render can take a splat array
<combusean>
benzrf, ok
<combusean>
come to sf
<baweaver>
render *presenter.users
<timgauthier>
or the if logic is "put this class unless that state"?
<benzrf>
combusean: later
<timgauthier>
one day, i may learn these things like presenters etc
<combusean>
benzrf, no now.
<benzrf>
combusean: fine fine hold on
<baweaver>
...which hits the presenter.users method, which will give back an empty partial instead of one to loop users
<combusean>
:P
* benzrf
rockets through the ceiling
<wallerdev>
im okay with "if abc" in the view, but not "if x == 13" in the view
* combusean
uses a stinger missile and shoots benzrf down
* combusean
watches benzrf explode
codeFiend has quit [Quit: codeFiend]
<baweaver>
I try and keep every bit of it possible out
<baweaver>
easier to test, much faster
<timgauthier>
i can understand in a fully dynamic site pulling most of it out
<timgauthier>
but yeah wallerdev i'm wit you...
<benzrf>
combusean: u fell into my ruse
<benzrf>
combusean: that was a decoy
<timgauthier>
that said... i make it pretty
browndawg has joined #ruby
<baweaver>
like ~4250 tests in 1:32 fast
<timgauthier>
and currently i try to also make it functional
Lewix has joined #ruby
<combusean>
benzrf, that was my hologram operating the stinger system
<benzrf>
combusean: pfft
<combusean>
benzrf, do you work as a rubyist out in maine?
<timgauthier>
<%= render "head", :title => "Foo" %> it says this will make a @title variable... how the heck would i call that...
timonv has joined #ruby
<timgauthier>
i want to pass a different variable! :P
<benzrf>
combusean: i work as a high school student out of maine
<combusean>
oh shit
<baweaver>
That logic can be brought back to the presenter
<combusean>
you're pretty smart :P
andy__ has joined #ruby
<benzrf>
thx
Voodoofish430 has left #ruby [#ruby]
<benzrf>
*out in derp
<timgauthier>
baweaver yeah, thats not really an option in nanuc, plus this isn't going to a user, this just generates a static html for me
<timgauthier>
nanoc*
tkuchiki has quit [Remote host closed the connection]
<baweaver>
There's a point where you don't really worry about it
<baweaver>
this is all in Rails
<baweaver>
meaning I have the power to do things like that.
tkuchiki has joined #ruby
<timgauthier>
is this really in rails?
SatansDeer has quit [Quit: Leaving.]
<baweaver>
Presenters can be added, yes
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<baweaver>
It's a pattern for abstraction in large apps
<timgauthier>
i meant, is an app like nanoc that generates static html in client side for uploading in rails
Celm has quit [Remote host closed the connection]
<baweaver>
Nanoc is seperate
lethjakman has quit [Ping timeout: 250 seconds]
<timgauthier>
thats what i thought
<baweaver>
I'm saying presenters and such are all things I do in Rails
pu22l3r has quit [Remote host closed the connection]
<timgauthier>
agh i see, my bad
nari has joined #ruby
<timgauthier>
!= is proper not equal in ruby right?
<timgauthier>
same as php
<benzrf>
timgauthier: ew
timonv has quit [Ping timeout: 252 seconds]
<timgauthier>
haha what?
<benzrf>
sorry involuntary reaction to the letter sequence 'php' ew
<timgauthier>
ah yeah, sorry, its what i sort of know
* combusean
does not miss his php days
<timgauthier>
to be honest i was really just using it as a template engine :P
andy__ has quit [Ping timeout: 240 seconds]
<benzrf>
i should set my bouncer to autoreply to 'php' with a link to fractal
freerobby has quit [Quit: Leaving.]
karmatr0n has joined #ruby
<timgauthier>
haha
<timgauthier>
what is fractal?
<benzrf>
php: a fractal of bad design
<benzrf>
definitive article on why php blows chunks
havenwood has quit [Remote host closed the connection]
<combusean>
yeah i know
<combusean>
i can't believe i put up with that shit forever
jeregrine has quit [Quit: Connection closed for inactivity]
freerobby has joined #ruby
<combusean>
i guess it was just too easy to go to php.net/function to look up the order :P
pskosinski_ has quit [Remote host closed the connection]
<timgauthier>
it may blow chunks.. but i didn't have to know much of it to be able to hack stuff together, and php.net is still amazing for looking stuff up AND having useful examples
<benzrf>
[which are also often wrong]
rakm has quit [Quit: Connection closed for inactivity]
fabrice31 has joined #ruby
<timgauthier>
always worked for me :S
<timgauthier>
ugh, i don't get how nanoc is "Creaiting" a variable...
<combusean>
timgauthier, that's kind of the problem. you just hack stuff together, rather than use well tested tools to make it easier
eka has joined #ruby
<baweaver>
Octopress
<combusean>
you're not just learning ruby right now you're learning the ecosystem.
<timgauthier>
what about octopuses baweaver ?
thomasxie has left #ruby [#ruby]
<timgauthier>
yes combusean because i just wanna get a website built today, i don't have ages to learn a language before i can do it
<baweaver>
Octopress
<baweaver>
static generator
wallerdev has quit [Quit: wallerdev]
<baweaver>
very useful
<timgauthier>
and thats how i figured out as much php as i have, but hacking together the stuff i needed
<timgauthier>
yes baweaver but its based on jekyll
CaptainJet has joined #ruby
<timgauthier>
and has the exact same problem with it that makes it not work for me as jekyll
<timgauthier>
which is what i'm trying to convert from :|
<baweaver>
I know the author, you could just ping him on Twitter.
<timgauthier>
the nanoc guy? he's in the irc room, but he's gone to sleep. which i should have done 4 hours ago
<baweaver>
Jekyll author
<timgauthier>
but this shit is eating at my brain
<timgauthier>
the issue is not something you can "change" in jekyll.. its pretty core. I want to be able to do an include from more then just the _includes dir
<timgauthier>
but thanks :)
eka has quit [Client Quit]
tectonic has joined #ruby
fgo has joined #ruby
meatherly has joined #ruby
fabrice31 has quit [Ping timeout: 276 seconds]
speakingcode has joined #ruby
dmitrykorotkov has joined #ruby
codeFiend has joined #ruby
dreamchaser has joined #ruby
jenrzzz has joined #ruby
dmitrykorotkov has quit [Client Quit]
Melpaws has joined #ruby
dmitrykorotkov has joined #ruby
dmitrykorotkov has quit [Max SendQ exceeded]
marcdel has joined #ruby
speakingcode has quit [Quit: Lost terminal]
dmitrykorotkov has joined #ruby
Solnse has quit [Ping timeout: 245 seconds]
dmitrykorotkov has quit [Max SendQ exceeded]
Hobogrammer has quit [Ping timeout: 240 seconds]
speakingcode has joined #ruby
<RubyPanther>
if you don't have time to learn a language, just use what you know
zachallett has joined #ruby
<timgauthier>
i want to learn, but i learn best hacking things together
<timgauthier>
i want to know ruby
<timgauthier>
but now i just want to get my site working and i'd prefer to not resort back to php
Solnse has joined #ruby
<RubyPanther>
how fast can you read the pickaxe?
sski has quit [Remote host closed the connection]
sski has joined #ruby
pskosinski has joined #ruby
<benzrf>
where does the Foo#bar 'syntax' come from?
<timgauthier>
pickaxe?
sepp2k1 has quit [Quit: Leaving.]
alexju has joined #ruby
emaxi has quit [Remote host closed the connection]
SilkFox has joined #ruby
<baweaver>
Not sure, I'd venture to guess Smalltalk or Perl though
<benzrf>
smalltalk seems to use >>
emaxi has joined #ruby
jason__ has quit [Remote host closed the connection]
<benzrf>
i.e. Foo>>bar
<baweaver>
Perl uses the same :: for modules, so it's probably from there.
<benzrf>
:: is a c++ism
<rankine>
timgauthier: what kind of site? Rails, Sinatra, Jekyll, other?
<benzrf>
the camel book even says that it is
* combusean
growls
codeFiend has quit [Quit: codeFiend]
<timgauthier>
nanoc currently
<combusean>
do i really want to use the github api for one damn command
<baweaver>
Throwing guesses really at this point on that.
sski has quit [Ping timeout: 250 seconds]
<timgauthier>
converting from jekyll. and actually most of this nanoc stuff makes sense as is working. but spend far too many hours fretting over stuff i didn't understand and not figuring out how to do something like truncate some content for a blog index view
<rankine>
why'd you leave Jekyll? I just made my site a couple weeks ago with Jekyll and liked it
gigetoo has quit [Ping timeout: 240 seconds]
caveat- has quit [Ping timeout: 240 seconds]
<timgauthier>
oh jekylls pretty awesome, but I have another part of the site that is about projects, those projects have working examples that are html or php documents. There are several examples on one page, I don't want all of that in one giant markdown file. I want to be able to include them in their respective modal popups... wasn't an option in jekyll
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emaxi has quit [Ping timeout: 252 seconds]
jxf has quit [Ping timeout: 276 seconds]
s3ri0us is now known as s3ri0us|away
SilkFox has quit [Ping timeout: 258 seconds]
gigetoo has joined #ruby
rankine has quit [Quit: leaving]
caveat- has joined #ruby
zachallett has quit [Remote host closed the connection]
afex has joined #ruby
emaxi has joined #ruby
doodlehaus has joined #ruby
senayar has joined #ruby
phoo1234567 has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
Cache_Money has joined #ruby
Guedes0 has quit [Ping timeout: 252 seconds]
nisstyre has joined #ruby
Spami has joined #ruby
doodlehaus has quit [Ping timeout: 252 seconds]
xjiujiu has quit [Ping timeout: 245 seconds]
peret has joined #ruby
RowdyChild|Away is now known as RowdyChildren
Doppp has joined #ruby
tkuchiki has quit [Quit: Leaving...]
i8igmac has joined #ruby
markisonfire has quit [Quit: markisonfire]
yfeldblu_ has joined #ruby
sdelmore has joined #ruby
blackavr has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Solnse has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 252 seconds]
peret is now known as peretZ
sdelmore has quit [Ping timeout: 258 seconds]
tcstar has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
Kricir has joined #ruby
rezzack has quit [Quit: Leaving.]
sski has joined #ruby
funburn has joined #ruby
havenwood has joined #ruby
<timgauthier>
would something like @item.children.first make sense?
sdelmore has joined #ruby
sdelmore has quit [Client Quit]
afex has quit [Ping timeout: 258 seconds]
havenn has joined #ruby
saarinen has joined #ruby
sqwirl has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 240 seconds]
sski has quit [Remote host closed the connection]
sski has joined #ruby
mehlah has quit [Quit: Leaving...]
i8igmac has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
havenwood has joined #ruby
funktor has quit []
northfurr has quit [Quit: northfurr]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Melpaws has quit [Quit: Leaving.]
krz has joined #ruby
SonicX has joined #ruby
jordilopezamat has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
braincrash has quit [Quit: bye bye]
gregf has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
davedev24 has quit []
jpinnix____ has quit [Ping timeout: 246 seconds]
<microdex>
I'm surprised there is no better solution to deal with gem dependency version mismatch between gems which share dependencies
<benzrf>
bbl
benzrf is now known as benzrf|offline
anaeem1__ has quit [Read error: Connection reset by peer]
jpinnix____ has joined #ruby
northfurr has joined #ruby
braincrash has joined #ruby
reset has joined #ruby
anaeem1 has joined #ruby
rankine has joined #ruby
dmoe____ has quit [Ping timeout: 246 seconds]
<microdex>
There should be a way to import gems directly into the directory structure of gems folder and allow each gem to load its own version of the dependencies
jamto11 has joined #ruby
havenwood has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
maximski has quit []
<microdex>
Even if you modify your own dependencies in accordance to the needs of your app you can always have it baked into your repository the way you like
sski has quit [Remote host closed the connection]
dmoe____ has joined #ruby
sski has joined #ruby
toastynerd has joined #ruby
ccham_ has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
<northfurr>
How can I get around this? ERROR: While executing gem ... (Gem::FilePermissionError)
sailias has quit [Ping timeout: 245 seconds]
<northfurr>
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
* combusean
metaprograms a Sinatra settings module :>
<northfurr>
Trying to get an octopress blog going
<combusean>
northfurr, sudo whatever command you did?
<microdex>
northfurr: have you tried to ls -ls the directory you're reading the files from and ensure the permissions aren't weird ?
sski has quit [Ping timeout: 258 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has quit []
<baweaver>
Probably a C Extension or a Bin.
<baweaver>
'night
<microdex>
How to import source code from gem and transplant into directory structure of my app ?
s2013 has joined #ruby
<combusean>
uhh
<combusean>
why would you want to do that?
<microdex>
to prevent dependency missmatch from some 3rd party gems I'm using
anaeem1 has quit [Remote host closed the connection]
<microdex>
if gems share dependency yet rely on different version of dependency, things don't work
slawrence00 has joined #ruby
anaeem1 has joined #ruby
<combusean>
=/
<microdex>
?
<combusean>
that's the that sucks face
s3ri0us|away is now known as s3ri0us
<northfurr>
read that it was unsafe to use sudo with installing a local version of ruby or something
* combusean
wishes OSs would stop fucking installing ruby and version managers were mandatory.
saarinen has joined #ruby
freerobby has quit [Quit: Leaving.]
<microdex>
yeah, still that woudn't fix the problem
<combusean>
well, considering you have a local version of ruby, and you want to install gems, you have to use sudo
<ccham_>
microdex: can you `bundle install --path vendor` and then move things around?
Disorganized has quit [Ping timeout: 258 seconds]
<microdex>
one should be able to aggressively modify gem source code and not have to worry about it colliding with other gems and versions. Its just a missing construct int he system.
<microdex>
ccham_: very interesting, ill peep that
danshultz has quit [Remote host closed the connection]
yfeldblum has joined #ruby
fabrice31 has joined #ruby
danshultz has joined #ruby
<centrx>
morenoh152, Maybe the online tester does not show stdout output?
<centrx>
morenoh152, Does it work on your local machine?
<morenoh152>
it does show std output. haven't tested on my machine this should be trivial
dseitz has joined #ruby
* combusean
uses define_singleton_method for the first time
freerobby has quit [Ping timeout: 252 seconds]
<morenoh152>
ack have to cast the input number to integer first doy
karmatr0n has joined #ruby
emaxi has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
emaxi has joined #ruby
danshultz has quit [Ping timeout: 258 seconds]
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
jason__ has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
_justin has joined #ruby
karmatr0n has quit [Ping timeout: 245 seconds]
emaxi has quit [Ping timeout: 250 seconds]
robustus has joined #ruby
codeFiend has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
danijoo has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
hedgehog has quit [Ping timeout: 258 seconds]
Deele has joined #ruby
karmatr0n has joined #ruby
habanany has joined #ruby
kevinykchan has joined #ruby
kevinykchan has quit [Client Quit]
<morenoh152>
how do I .map .to_i
<morenoh152>
make run to_i on all elements of an array
<morenoh152>
I tried .map(&.to_i)
<morenoh152>
ah .map(&:to_i)
nowthatsamatt has joined #ruby
nowthatsamatt has quit [Client Quit]
habanany has quit [Max SendQ exceeded]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
baweaver has quit [Quit: Leaving]
sski has quit [Remote host closed the connection]
sski has joined #ruby
habanany has joined #ruby
_justin has quit [Ping timeout: 245 seconds]
sski has quit [Remote host closed the connection]
sski has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
jacky has quit [Excess Flood]
sski has quit [Remote host closed the connection]
markisonfire has joined #ruby
sski has joined #ruby
icedp has quit [Ping timeout: 276 seconds]
Lulzon has quit [Ping timeout: 276 seconds]
mr_rich101 has quit [Ping timeout: 245 seconds]
jfelchner999 has quit [Ping timeout: 246 seconds]
sdouglas has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
Tachoh has quit [Ping timeout: 258 seconds]
kevinykchan has joined #ruby
Tachoh has joined #ruby
tjr9898 has joined #ruby
sski has quit [Ping timeout: 240 seconds]
farn has quit [Read error: Connection reset by peer]
_justin has joined #ruby
mr_rich101 has joined #ruby
ace_striker has quit [Quit: Page closed]
habanany has quit [Max SendQ exceeded]
ghr has joined #ruby
habanany has joined #ruby
Lulzon has joined #ruby
obs has joined #ruby
browndawg has quit [Quit: Leaving.]
icedp has joined #ruby
sdouglas has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
SilkFox has joined #ruby
sdouglas has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
emaxi has joined #ruby
habanany has quit [Client Quit]
meatherly has joined #ruby
funburn has joined #ruby
fuhgeddaboudit has joined #ruby
emaxi has quit [Ping timeout: 252 seconds]
Guest92251 has joined #ruby
doodlehaus has joined #ruby
icedp has quit [Ping timeout: 258 seconds]
jason__ has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 276 seconds]
jfelchner999 has joined #ruby
obs has quit [Read error: Connection reset by peer]
obs has joined #ruby
icedp has joined #ruby
Chronocity has quit [Ping timeout: 245 seconds]
doodlehaus has quit [Ping timeout: 252 seconds]
osvico has joined #ruby
browndawg has joined #ruby
jfelchner999 has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
Geo has joined #ruby
anaeem1 has joined #ruby
skkeeper has quit [Read error: Operation timed out]
sputnik13 has joined #ruby
Geo has quit [Client Quit]
skkeeper has joined #ruby
karmatr0n has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
senayar has joined #ruby
Shidash has joined #ruby
reset has quit [Quit: Leaving...]
tonni has quit [Ping timeout: 252 seconds]
kayloos has joined #ruby
* combusean
writes a Settings module for sinatra in 11 lines that reads every yml in config/settings to make Settings.yaml_file_prefix['key'] available everywhere
freerobby has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
funburn has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
funburn has joined #ruby
freerobby has quit [Ping timeout: 258 seconds]
Fretta has quit [Quit: Fretta]
tectonic has quit []
* combusean
shrinks it to 10
michael_imac is now known as michael_mbp
mary5030 has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
tectonic has joined #ruby
pierre1_ has quit [Ping timeout: 245 seconds]
manyrus has joined #ruby
tectonic has quit [Client Quit]
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 5 Hours 13 Minutes and 37 Seconds Online.]
Guest92251 is now known as jacky
jacky has joined #ruby
jacky has quit [Changing host]
nisstyre has quit [Quit: WeeChat 0.4.3]
crystal77 has quit [Quit: Computer has gone to sleep.]
jamto11 has joined #ruby
doxavore has quit [Quit: Leaving]
mr_snowf1ake has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has joined #ruby
SCommette has quit [Quit: SCommette]
jamto11 has quit [Ping timeout: 258 seconds]
manyrus has quit [Ping timeout: 240 seconds]
pierre1_ has joined #ruby
jfelchner has joined #ruby
reset has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<leslie1>
when defining a ruby class, It seems Ruby created 2 "class", one is nromal, the other is metaclass, right?
meatherly has quit [Ping timeout: 252 seconds]
noop has joined #ruby
klaut has quit [Remote host closed the connection]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagobah has joined #ruby
blackavr has quit [Quit: blackavr]
funburn has quit [Quit: funburn]
doodlehaus has quit [Ping timeout: 252 seconds]
kitak_ has joined #ruby
<art-solopov>
leslie1: I think, since Ruby classes are singleton objects of class Class, they have their own eigenclasses (or metaclasses). Is that what you mean?
xjiujiu has joined #ruby
xjiujiu has quit [Read error: Connection reset by peer]
xjiujiu has joined #ruby
kitak has quit [Ping timeout: 240 seconds]
<leslie1>
art-solopov There is some codes. puts ObjectSpace.count_objects[:T_CLASS]; class AAA; end ; puts ObjectSpace.count_objects[:T_CLASS]
<leslie1>
in my machine, the result is 1263 and 1265
markisonfire has joined #ruby
klaut has joined #ruby
<leslie1>
What I want to do is findint the 2 class out
luriv has joined #ruby
<art-solopov>
leslie1: Yeah, that'd probably be AAA's eigenclass. I think there are methods of finding it out...
karmatr0n has joined #ruby
browndawg has left #ruby [#ruby]
awukelelexi has quit []
havenwood has joined #ruby
coderhs has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
davispuh has joined #ruby
karmatr0n has quit [Ping timeout: 245 seconds]
mrjensen has joined #ruby
freerobby has joined #ruby
kitak has joined #ruby
alexju has quit [Remote host closed the connection]
wallerdev has joined #ruby
fabrice31 has joined #ruby
kitak_ has quit [Ping timeout: 240 seconds]
BHensley has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 250 seconds]
danijoo has joined #ruby
tharindu has joined #ruby
anarang has joined #ruby
lsmola has joined #ruby
meatherly has joined #ruby
BHensley has joined #ruby
BHensley has quit [Client Quit]
BHensley has joined #ruby
maroloccio has joined #ruby
IceDragon has quit [Quit: Space~~~]
jacky has quit [Excess Flood]
pen has quit [Remote host closed the connection]
greenarrow has joined #ruby
mehlah has joined #ruby
shredding has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
MrJiks has joined #ruby
timonv has joined #ruby
Xeago has joined #ruby
northfurr has quit [Quit: northfurr]
<MrJiks>
Trying to test a gem I am building using "bundle exec console"; but its failing reporting: "bundler: command not found: console"
<MrJiks>
Any ideas?
zigomir has joined #ruby
dukz has joined #ruby
farn has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
<art-solopov>
MrJiks: Try `bundle exec irb`
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Burgestrand has joined #ruby
jamto11 has joined #ruby
xjiujiu has joined #ruby
YamakasY_ has joined #ruby
<MrJiks>
I sec let me try
sputnik13 has joined #ruby
emaxi has joined #ruby
tijmencc has joined #ruby
<MrJiks>
Okay, cool it worked. But any ideas why the one before didn't?
BHensley has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
sdouglas has quit [Remote host closed the connection]
keeguon has quit [Quit: keeguon]
<art-solopov>
MrJiks: `bundle exec <script>` executes a script in the context of current bundle. There is no script (or program) called console in your machine, so it didn't work.
xjiujiu has quit [Client Quit]
BHensley has joined #ruby
xjiujiu has joined #ruby
jamto11 has quit [Ping timeout: 276 seconds]
Kneferilis has quit [Ping timeout: 252 seconds]
<MrJiks>
But I was able to run that for a different gem 2 days back. Apparently that too stopped working now.
pierre1_ has quit [Ping timeout: 240 seconds]
pen has joined #ruby
emaxi has quit [Ping timeout: 240 seconds]
jacky has joined #ruby
relix has joined #ruby
BHensley has quit [Remote host closed the connection]
<art-solopov>
MrJiks: Interesting. Maybe the gem installed "console" command?
rdark has joined #ruby
reset has joined #ruby
alex88 has joined #ruby
xjiujiu has quit [Ping timeout: 252 seconds]
eynj has quit [Quit: Leaving.]
reset has quit [Ping timeout: 240 seconds]
dukz has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
Freijo has joined #ruby
apeiros has quit [Remote host closed the connection]
ghr has joined #ruby
claymore has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
sk87 has joined #ruby
YamakasY_ has quit [Remote host closed the connection]
LiquidInsect has quit [Ping timeout: 264 seconds]
BHensley has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
LiquidInsect has joined #ruby
dyoko has joined #ruby
mehlah has joined #ruby
klaut has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Burgestrand]
phansch has joined #ruby
jacobat has quit [Disconnected by services]
jacobat has joined #ruby
jacobat has quit [Disconnected by services]
klaut has joined #ruby
ephemerian has joined #ruby
andikr has joined #ruby
jacobat_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
<shevy>
jhass yeah, I mean if anyone has a limit other than 80 for instance
<jhass>
I've a ruler at 70, 80 and 100 currently
<shevy>
why at 100?
<jhass>
that's my hard limit I try to not break
<jhass>
I try to keep the 80, the 70 acts more as a warning
<shevy>
when it comes to code, I break at 80 99.5% of the time, but I sometimes (perhaps once or twice in a class at max) have # comments after the 80 chars limit
<shevy>
I see
<jhass>
but actually most of my code doesn't break the 70 either
chrisseaton has quit [Ping timeout: 245 seconds]
dyoko has quit [Quit: Leaving.]
jamto11 has quit [Ping timeout: 258 seconds]
ndrei has quit [Ping timeout: 240 seconds]
<jhass>
but then I'm not dogmatic about it. Sometimes the information exceeding the rulers is not crucial to understanding the code and trying to insert new lines would just make it look bad
ndrei has joined #ruby
<workmad3>
what? you can write lines of code under 160 characters? I thought all lines had to be that long or the parser would cry!
qba73 has joined #ruby
<Hytosys>
I never write about 80 (not even comments)… just a habit
<Hytosys>
only language I ever have to break that rule for is obj-c :( 120
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7-mac>
hah! was going to say
reset has joined #ruby
decoponio has joined #ruby
<canton7-mac>
so much verbosity
DouweM has quit [Ping timeout: 252 seconds]
<Hytosys>
I think it’s a good-looking language in its own right, but it sure isn’t a concise one
<workmad3>
Hytosys: how do you cope in Java? I'm sure most java classes are > 80 characters on their own...
<canton7-mac>
yeah, agreed with you there
luriv has quit [Ping timeout: 258 seconds]
<Hytosys>
workmad3: yeah, I’m sure most javaists can’t do anything like 80 characters! I guess I don’t write enough to java to be forced to conform to ListObserverListenerNamingPattern
reset has quit [Ping timeout: 250 seconds]
keeguon has quit [Ping timeout: 252 seconds]
<workmad3>
Hytosys: what about the ListObserverListenerNamingPatternFactoryDiscoveryServiceFactory ?
<Hytosys>
ah, a classic out of JDK 6.1
<canton7-mac>
that said, obj-c isn't exactly innocent of that either, but for different reasons. I'm working on an RXPTestDoseConnectionLostPopoverViewController at the moment...
tijmencc has quit [Quit: tijmencc]
<Hytosys>
my favorite, AVCaptureVideoDataOutputSampleBufferDelegate
<canton7-mac>
nice
tkuchiki_ has joined #ruby
<jhass>
what about AbstractSingletonProxyFactoryBean? (tell me what it does)
<Hytosys>
haha I love the -Bean suffix pattern
<canton7-mac>
why it's a factory which generates proxies for abstract singletons ;)
havenwood has joined #ruby
<jhass>
"Convenient proxy factory bean superclass for proxy factory beans that create only singletons."
luriv has joined #ruby
<Hytosys>
that’s great
tkuchiki has quit [Ping timeout: 258 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
wallerdev has quit [Quit: wallerdev]
havenwood has quit [Ping timeout: 252 seconds]
keen_ has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Speed has joined #ruby
mengu has quit [Remote host closed the connection]
donnoc has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
makara has joined #ruby
roolo has quit [Quit: Leaving...]
fgo has quit [Remote host closed the connection]
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
fgo has joined #ruby
dyoko has joined #ruby
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
sdouglas has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
rm__ has quit [Ping timeout: 276 seconds]
sdouglas has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
kayloos has joined #ruby
emaxi has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
halik has quit [Quit: halik]
tharindu has joined #ruby
klaut has quit [Remote host closed the connection]
dyoko has quit [Quit: Leaving.]
kayloos has quit [Ping timeout: 240 seconds]
cover has quit [Remote host closed the connection]
abalsam has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Remote host closed the connection]
meatherly has joined #ruby
Deejay_ has joined #ruby
manyrus has quit [Ping timeout: 276 seconds]
hedgehog has quit [Ping timeout: 252 seconds]
relix has quit [Read error: Connection reset by peer]
relix_ has joined #ruby
bigkevmcd has joined #ruby
Deejay_ has quit [Client Quit]
mengu has joined #ruby
nvrch has quit [Quit: nvrch]
mr_snowf1ake has joined #ruby
meatherly has quit [Ping timeout: 258 seconds]
MrJiks has quit [Ping timeout: 240 seconds]
MrJiks has joined #ruby
rylev has quit [Remote host closed the connection]
tharindu has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<kith>
since the jruby channel is kinda dead-ish, i'd like to ask here - maybe someone on here knows: if my script uses gems like jdbc/postgres can i not compile to .class and run it via java?
<kith>
i installed jruby-complete.jar and it still complains about missing requires
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lotherk has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 240 seconds]
lotherk has joined #ruby
fabrice31 has joined #ruby
dyoko has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
timonv has quit [Remote host closed the connection]
klaut has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
klaut has quit [Client Quit]
timonv has joined #ruby
reset has joined #ruby
shredding has quit [Ping timeout: 250 seconds]
arietis has joined #ruby
shredding has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
MrJiks has quit [Quit: leaving]
troulouliou_dev has joined #ruby
<troulouliou_dev>
hi is there a verbise option to see the progress of bundle install ?
timonv has quit [Ping timeout: 240 seconds]
Speed has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
<troulouliou_dev>
--verbose 8(
Domon has quit [Quit: Connection closed for inactivity]
timonv has joined #ruby
kitak has quit [Remote host closed the connection]
<workmad3>
troulouliou_dev: -V also works
<troulouliou_dev>
workmad3, yeah thanks :)
keen_ has joined #ruby
havenwood has joined #ruby
grieg has joined #ruby
compleatang has quit [Remote host closed the connection]
<grieg>
hello. trying to use "Math." getting "undefined method 'Math'". Should i install some gem for that? just thought math was oob :)
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fflush has quit [Quit: fflush]
user__ has joined #ruby
<user__>
What's the equivalent of pythons "in" method in ruby?
CpuID has quit [Quit: This computer has gone to sleep]
<user__>
or more generally a substring search
<Hanmac>
user__: show us a python sample
<tobiasvl>
"in" is not a method in python, it's a keyword (and it allows list comprehension, a feature ruby doesn't have but often uses blocks for instead)
<Hytosys>
bit of extra work returning the substring ;)
jollyy_ has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
claymore has joined #ruby
<tobiasvl>
user__: ! is the negation of the boolean evaluation of the following expression
jollyy_ has joined #ruby
sigurding has quit [Quit: sigurding]
<tobiasvl>
"red" is truthy (anything but nil and false is truthy in ruby), so !"red" is false, and !!"red" is true again (the actual true value, not just truthy this time around)
jollyy_ has quit [Read error: Connection reset by peer]
<timgauthier>
Gentlemans and Womans, I would be honoured to be stoned by you :P
benzrf is now known as benzrf|offline
dylannorthrup has quit [Ping timeout: 252 seconds]
<Hytosys>
the trademark “thank you” emotional nerd moment
<timgauthier>
:P
havenwood has joined #ruby
mark_locklear has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 250 seconds]
<timgauthier>
trying to convert from jekyll to middleman or nanoc has literally caused me a loss of sleep... but i feel like i'm learning so theres that
<timgauthier>
and that moment when your template loads in middleman properly is a pretty good payoff
klaut has joined #ruby
fgo has joined #ruby
<timgauthier>
how do you set :variable ' ' empty?
<timgauthier>
just like that?
mrjensen has quit [Remote host closed the connection]
tjr9898 has joined #ruby
<Renich>
:i am a symbol ;)
iamdoo2 has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 252 seconds]
djbender has joined #ruby
<timgauthier>
oh ok...
Hytosys has quit [Quit: Hytosys]
<timgauthier>
what if your symbol needed to be a relative url?
<Hanmac1>
timgauthier: i think you using symbols wrong ...
Hanmac1 is now known as Hanmac
<timgauthier>
probably Hanmac
bambuka has quit [Quit: Saliendo]
nateberkopec has joined #ruby
<timgauthier>
in middleman i'm doing set :baseurl in the config.rb and then in my footer partial i'm calling a url with <%= config.baseurl %>url
Hytosys has joined #ruby
<timgauthier>
but it works... so there is that
indiche has joined #ruby
dyoko has quit [Quit: Leaving.]
indiche has quit [Client Quit]
mrjensen has joined #ruby
Hytosys has quit [Client Quit]
SilkFox has joined #ruby
paulfm has quit []
fflush has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
donnoc has joined #ruby
Hytosys has joined #ruby
paulfm has joined #ruby
<timgauthier>
maybe.. i have no idea
Hytosys has quit [Client Quit]
klaut has quit [Remote host closed the connection]
sigurding has joined #ruby
klaut has joined #ruby
Hytosys has joined #ruby
Hytosys has quit [Client Quit]
Hytosys has joined #ruby
grayWolf has joined #ruby
Hytosys has quit [Client Quit]
trhodes_ has quit [Ping timeout: 264 seconds]
SilkFox has quit [Ping timeout: 258 seconds]
rylev has quit [Remote host closed the connection]
tharindu has joined #ruby
Hytosys has joined #ruby
Hytosys has quit [Client Quit]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
zonetti has joined #ruby
klaut has quit [Ping timeout: 252 seconds]
cocotton has joined #ruby
YamakasY has joined #ruby
Hytosys has joined #ruby
Speed has quit [Ping timeout: 252 seconds]
Hytosys has joined #ruby
Hytosys has quit [Client Quit]
iamdoo2 has joined #ruby
jason_ has joined #ruby
<shevy>
god
<shevy>
erb is so ugly
<timgauthier>
hahaha
anaee____ has quit [Remote host closed the connection]
<timgauthier>
so is your face shevy :P
<timgauthier>
its not so bad though so far
<shevy>
but I dont put my face out on the www!
tjr9898 has quit [Remote host closed the connection]
<shevy>
unlike erb
<timgauthier>
I AM FINALLY ACTUALLY HAVE SUCCESS
<timgauthier>
welllll
<timgauthier>
technically you don't put .erb on the web either..
cored has joined #ruby
<timgauthier>
it gets turned into pretty (ugly) html
cored has left #ruby [#ruby]
<Cork>
is there a clean way to have multiple methods running the same code and passing the method name to a third party?
nomenkun_ has quit [Quit: Leaving...]
<Cork>
def <names>; call(action: name); end
RowdyChild|Away is now known as RowdyChildren
freerobby has joined #ruby
<canton7-mac>
Cork, define them at runtime? define_method
tjr9898_ has joined #ruby
reset has joined #ruby
sk87 has joined #ruby
<Cork>
canton7-mac: and how would i get what name was called?
<Cork>
in the function i mean
breakingthings has quit []
iamdoo2 has quit [Ping timeout: 276 seconds]
yalue has quit [Ping timeout: 252 seconds]
dyoko has joined #ruby
<Cork>
canton7: or did you mean to dynamically create the duplicated functions?
<Cork>
*canton7-mac:
breakingthings has joined #ruby
Renich has quit [Remote host closed the connection]
<shevy>
timgauthier I am kinda confused still though
<timgauthier>
with>
<shevy>
timgauthier how did you actually end up with ruby now?
<shevy>
didn't you just want some static site generator...
<timgauthier>
what do you mean?
<timgauthier>
yes
<timgauthier>
:P
<shevy>
hmmmm
<timgauthier>
and so i was using jekyll
<timgauthier>
and it was good
<timgauthier>
until i wanted to do something that was impossible for jekyll
<shevy>
jekyll uses erb?
<timgauthier>
no it uses liquid, which is actually worse
rvraghav93_ has joined #ruby
lewix has quit [Remote host closed the connection]
<shevy>
hahaha
<shevy>
oh dear
<timgauthier>
and then I was trying nanoc, but that wasn't so easy.. it is too extendible but doesn't have enough built it ;)
rvraghav93 has quit [Ping timeout: 240 seconds]
<timgauthier>
and now i'm trying middle man, and i actually have most of a template working so far... haven't tackled the ridiculous blog index yet though. That was the point where nanoc was with us yesterday and it was very ... difficult.
freerobby has quit [Ping timeout: 276 seconds]
reset has quit [Ping timeout: 240 seconds]
<timgauthier>
oi... now that i'm using middleman to compile my sass i guess i have to actually import bourbon correctly.. ughh now to look that up lol
<Hanmac>
if everything fails i could write an HTTP server in C ;P
<timgauthier>
Hanmac :P
<timgauthier>
do it in haskell
<timgauthier>
wait! I can import bourbon as a gem now!
<timgauthier>
ps, now i know why these big ruby sass libraries are all drinking related. . . :|
mercwithamouth has quit [Ping timeout: 252 seconds]
trhodes_ has joined #ruby
jxf has joined #ruby
seich has quit [Ping timeout: 252 seconds]
<timgauthier>
*gasp* they updated/changed the bourbon.io site!
nvrch has joined #ruby
DouweM has joined #ruby
donnoc has quit [Ping timeout: 276 seconds]
slavapavlutin has joined #ruby
danshultz has joined #ruby
fflush has quit [Read error: Connection reset by peer]
seich- has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
<timgauthier>
hmm... something on my computer is playing an audio advertisement...
dyoko has quit [Quit: Leaving.]
shredding has quit [Quit: shredding]
<timgauthier>
sorry, verbal stream. i will recuse myself to only asking annoying ruby questions again
<timgauthier>
actually, rails question, gem file, can i use 'quotes' and "quotes" interchangibly?
rmorello has joined #ruby
cocotton has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 250 seconds]
<shevy>
timgauthier the way I read your corrent progress story
<shevy>
you'll end up using either rails or writing your own framework from scratch
<shevy>
Hanmac why can you write a HTTP server in C, I thought you don't even have time for rxw!
yalue has joined #ruby
tkuchiki has joined #ruby
<shevy>
timgauthier as for '' vs ""
<timgauthier>
shevy oh man.. so true
<shevy>
timgauthier ruby uses "" internally anyway as far as I know. but if you have a string with "", and you embed a variable in it, then you will process it, unlike '' which will never ever get processed
<shevy>
example:
<shevy>
x = 5
badhatter_ has joined #ruby
<shevy>
puts "What is #{x}?"
<shevy>
will always be different to
<shevy>
puts 'What is #{x}?'
emaxi has joined #ruby
claymore has joined #ruby
<ddv>
yeah it's called string interpolation
<shevy>
thus for the most part you can use 'quotes' and "quotes" interchangibly
<timgauthier>
ok
<shevy>
hmm ddv have you been ddd in the past?
<timgauthier>
that makes sense to me
<ddv>
shevy: no
<shevy>
that guy that went into engineering in his late 40s
<shevy>
ok
<ddv>
I'm def not 40
CreativeEmbassy has joined #ruby
dev_ has quit [Quit: Leaving]
lxsameer has joined #ruby
<timgauthier>
ugh my scss is a mess, i really should redo all ove it
badhatter has quit [Ping timeout: 250 seconds]
doodlehaus has joined #ruby
iamdoo2 has quit [Ping timeout: 252 seconds]
<shevy>
ddv hehe
cocotton has joined #ruby
<shevy>
timgauthier see
cocotton has quit [Remote host closed the connection]
endash_ has joined #ruby
<shevy>
you didn't yet come to the zen of ruby
<timgauthier>
but... that isn't new ;)
<timgauthier>
what is that shevy?
<shevy>
the zen of ruby means that beaty is hidden somewhere
cocotton has joined #ruby
<shevy>
like if you sculpt a stone statue, and you start from a huge rock
<timgauthier>
the beauty is the output
<shevy>
:\
YamakasY has quit [Remote host closed the connection]
<shevy>
you could use php with that attitude!
<timgauthier>
but man it was like using TNT to scult
<timgauthier>
sculpt*
<shevy>
well that is ok
<timgauthier>
oh? sorry, i interrupted.. go on?
<shevy>
there is more than one way to sculpt
<shevy>
no, we brought the discussion down to php again :(
<MrPopinjay>
Is spreasheet another gem? Does it read xls? :)
<MrPopinjay>
oh, wait
<timgauthier>
:P
<MrPopinjay>
It parsed ok this time. Not sure what happened
<shevy>
not 100% sure if it can read, but 100% it can generate .xls, so I am rather convinced it should be able to understand it as well
<timgauthier>
RUBY!
<timgauthier>
yah shevy, you just have to put it backwards right?
<shevy>
PHP!
<shevy>
nono
<timgauthier>
no, php can create a lot of things that it can't read
<shevy>
I used it to generate week dates for the coming week in .xls
<timgauthier>
intact it often can't really read what it created in php for itself :|
alexju has joined #ruby
<shevy>
I meant the spreadsheet stuff, not php
<Burgestrand>
timgauthier: in compass/bourbon you have to remember youself which properties require vendor prefixing, and use a mixin for it, e.g. @include border-radius(5)
benzrf|offline is now known as benzrf
<timgauthier>
shevy you wanna get really depressed, i can show you what i had to deal with in my last php project..
<shevy>
I would not know what php can do other than drive you insane
dunix has joined #ruby
FxK has joined #ruby
<timgauthier>
border-radius doesn't need a prefix anymore, but yes
<shevy>
no, I abandoned php
<Burgestrand>
timgauthier: eventually, those properties become standardised and you no longer need to use mixins for it, (for example border-radius), and as such you should no longer use the mixin and update your code
<shevy>
for python or ruby
<shevy>
I chose ruby
<MrPopinjay>
Ruby's just so nice <3
<shevy>
I wouldn't go back to php; if ruby were to die, I would use python instead
<timgauthier>
so this goes in and does all of those for you... hmm
<Burgestrand>
timgauthier: autoprefixer makes it possible for you to just write border-radius: 5px, and never bother when you need to use the mixin, and when not to
<MrPopinjay>
Especially once you find pry
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<shevy>
MrPopinjay, https://github.com/zdavatz/spreadsheet "The Spreadsheet Library is designed to read and write Spreadsheet Documents. As of version 0.6.0, only Microsoft Excel compatible spreadsheets are supported."
<MrPopinjay>
Cheers dude
<timgauthier>
MrPopinjay i never thought that id' still have to learn how to use a pry bar... i mean in RL i just smash stuff wit it
chipotle has quit [Client Quit]
Shidash has joined #ruby
<MrPopinjay>
hehe
<shevy>
timgauthier you could stick to irb too :>
<timgauthier>
Burgestrand that.. actually makes a lot of sense, I'm just thinking in my head about how i would actually use it
<MrPopinjay>
<3 pry <3 ruby
freerobby has joined #ruby
<shevy>
<3 bugs <3 she-males
<Burgestrand>
timgauthier: if you started using middleman, just follow the README ;)
<MrPopinjay>
Those are good too
<shevy>
haha
<shevy>
I just wanted to put an opposite pole to pry and ruby
<shevy>
perhaps it should have been programming... hmm
<benzrf>
MrPopinjay: hows tricks
<shevy>
<3 php <3 XML
speakingcode has quit [Ping timeout: 250 seconds]
<timgauthier>
i've got middleman going, i'm just playing with the preprocessing to add in bourbon/neat/bitters
<Burgestrand>
There’s an autoprefixer for rails as well
<benzrf>
MrPopinjay: u should try out my new project o3o
<timgauthier>
well bitters needs to be generated into a project, so it makes sense they'd do it that way
shredding has joined #ruby
<Burgestrand>
timgauthier: oh, even that was wrong, it appears it’s just a complete middleman project
<Burgestrand>
timgauthier: where they just copied bitters
<slavapavlutin>
Hi, guys! Does anyone knows the way to omit comments when initializing a new Rails project? Comments really distract me from the essence.
<Burgestrand>
slavapavlutin: me too. I tend to remove most of them manually when I see them.
obscured has joined #ruby
<Burgestrand>
slavapavlutin: as far as I know, there’s no way to exclude them. I would assume they’re hard-coded into the template files.
earth has quit [Quit: earth]
poikon has quit [Remote host closed the connection]
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
AlexRussia has joined #ruby
Gost_666 has joined #ruby
alexju has joined #ruby
afreidah1 has joined #ruby
<timgauthier>
Burgestrand is the best
manyrus has joined #ruby
<timgauthier>
and i keep thinking his name is Deutche
<timgauthier>
there is a missing s in there
<Burgestrand>
I used to hang out in here a lot a few years back. People used to call me burger.
<Burgestrand>
People IRL still sometimes do.
<timgauthier>
i probably was here a few years ago trying to learn rails :P
rylev has quit [Ping timeout: 258 seconds]
<Burgestrand>
timgauthier: why deutsche?
<timgauthier>
the town i lived in before had Burgestraße
<Burgestrand>
Ah. :)
<timgauthier>
Burg being mountain
tharindu has quit [Quit: Leaving...]
<timgauthier>
the fun part of that particular Burgstraße is that there is no more Burg
<Burgestrand>
Well, I’m a Swede so it’s not that far off.
<timgauthier>
its just a bunch of communist built concrete flats at one end
<timgauthier>
i'm a canadian in germany. so things like this fascinate me
trhodes_ has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
dumdedum has quit [Ping timeout: 245 seconds]
<slavapavlutin>
If somebody wants to deepen their Ruby understanding, I suggest reading "Ruby Under a Microscope" by Pat Shaughnessy. He's done an amazing work translating C code into a book that can help better understand Ruby and become a better programmer. :)
simono has quit [Read error: Connection reset by peer]
poikon has joined #ruby
<timgauthier>
that sounds good if you already understand C code i'm guessing?
Deele has quit [Ping timeout: 255 seconds]
Speed has quit [Ping timeout: 252 seconds]
<timgauthier>
Can someone write Ruby ELI5 ?
<timgauthier>
i'd read the crap out of that book :D
donnoc has joined #ruby
osvico has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
<Burgestrand>
Pat makes a good job of explaining even the C code fairly well.
<timgauthier>
cool
osvico has joined #ruby
afreidah1 has quit [Ping timeout: 240 seconds]
<slavapavlutin>
The book doesn't require readere to be able to understand C code. The author explain all the details important to understanding so that noobs like me could learn something.
Silex has joined #ruby
meatherly has joined #ruby
<timgauthier>
cool, its called "ruby under a microscope" ?
trhodes_ has joined #ruby
<benzrf>
slavapavlutin: dude i know ruby soo good
<slavapavlutin>
The next step after reading Pat's book is learning C, I guess. :)
<benzrf>
its like totally nuts how good i know RubyPanther
<timgauthier>
haha
<benzrf>
*ruby
<benzrf>
like wow
<Silex>
hello, how about redirecting either #ruby or #ruby-lang to the other one? that way there's only one channel for everyone to use
robert_ has quit [Read error: Connection reset by peer]
zachallett has joined #ruby
<timgauthier>
can you do that with irc?
havenwood has quit [Ping timeout: 258 seconds]
<Silex>
(I'm asking the same question in #ruby-lang)
robert_ has joined #ruby
<Silex>
yes you can, just like #c++ redirects to ##c++
<timgauthier>
those are the same thing..?
brutalbutler has joined #ruby
<Burgestrand>
timgauthier: he’s made a series of blog posts that are good, too.
sdelmore has joined #ruby
lewix has joined #ruby
troulouliou_dev has quit [Ping timeout: 245 seconds]
troulouliou_dev has joined #ruby
<timgauthier>
ugh i hate atom.io :|
<atno>
is there a list for rails specific gems?
aob has joined #ruby
<benzrf>
timgauthier: y
Kilo`byte has quit [Ping timeout: 252 seconds]
mr_snowf1ake has quit [Ping timeout: 250 seconds]
<timgauthier>
because it feels so broken..
<timgauthier>
stuff lie no tag closing
benzrf is now known as benzrf|offline
ndrei has quit [Ping timeout: 276 seconds]
<timgauthier>
or doing things that are REALLY close to text mate or sublime but ... not quite
soulcake has quit [Read error: Connection reset by peer]
<slavapavlutin>
Ugh? Atom.io? I thought every single Ruby programmer uses Vim...
benzrf|offline is now known as benzrf
Deele has joined #ruby
mrmargolis has joined #ruby
<timgauthier>
slavapavlutin :P
soulcake has joined #ruby
<Silex>
who is operator of this chan?
<timgauthier>
notme
<timgauthier>
YKatz?
<timgauthier>
jk :P
<slavapavlutin>
Matz?
Kilo`byte has joined #ruby
<benzrf>
vim is good all else fails emacs is ok
<timgauthier>
what the sock... it isn't complain.. waiiit
<slavapavlutin>
So, everybody knows that Ruby community exploits BDD/TDD a lot. Do you use Cucumber for your projects?
<timgauthier>
your symbol should point at the right folder
<ddv>
slavapavlutin: no Cucumber sucks for various reasons
<ddv>
slavapavlutin: even DHH hates it
<timgauthier>
why?
<slavapavlutin>
I recently started considering Cucumber as a planning/documenting tool and it really fits into my mindset.
afreidah1 has joined #ruby
<timgauthier>
shevy, IRC is distracting me again!!
<slavapavlutin>
What reasons exactly? Various is too vague, I guess.
<aob>
I'm trying to work out how to send a command to an object, where the command varies: http://lpaste.net/102561
karmatr0n has quit [Remote host closed the connection]
<slavapavlutin>
I don't consider DHH "the best guy" in the world nor in the Ruby community.
<aob>
obv. not working... what am I doing wrong?
<benzrf>
david heinemeier hansson more like david hasselhoff
<benzrf>
B)
<ddv>
hehe
<timgauthier>
but i agree with DHH
<timgauthier>
why would you have your clients reading tests...
jamto11 has joined #ruby
<timgauthier>
and testing in english is great, unless your site isn't nessarily english
<timgauthier>
aob like an internal api?
<aob>
timgauthier: what I'm actually trying to do is take an option from Thor and call a method accordingly
okdas has quit [Ping timeout: 252 seconds]
<slavapavlutin>
Cucumber allows to write specifications in almost any language possible and use plain language as well. You're talking about RSpec exclusively, I assume.
<timgauthier>
i'm the newb, but i'm just suggesting what i was thinking you where trying to do in a different term to spark creativity and learning. :P
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<timgauthier>
slavapavlutin i don't have a clue what i'm talking about
<aob>
so if my command was mycommand print caps hello
<Burgestrand>
slavapavlutin: I’ve stopped using Cucumber. I find that the separation of the steps and the code to be confusing when developing.
<timgauthier>
someone make css work with colour spelt correctly and i'll be impressed
<slavapavlutin>
Cucumber is an external DSL whereas RSpec is an internal one.
doodlehaus has quit []
<aob>
the 2 args thor sees re caps and hello
<timgauthier>
hell, Farbe would be ok too
<aob>
so I want to call the caps method with hello as an arg
Nukepuppy has joined #ruby
RowdyChildren is now known as RowdyChild|Away
<aob>
so I'm trying to do thing.send(command) but that's not right, obvioulsy
iamjarvo has joined #ruby
<timgauthier>
you guys distracted me, i was going to look up how to get active page variables in middleman.. *shakes fist vigerously
<slavapavlutin>
Cucumber comes handy when you develop user-oriented projects where users are not programmers. In other words, it's useful when not writing libraries or simple frameworks.
arubincloud has joined #ruby
<Burgestrand>
slavapavlutin: I disagree. In the off chance that we’d show our test specification to our client, cucumber is not necessarily much more readable than plain rspec and capybara.
freerobby has joined #ruby
<timgauthier>
shevy if current_page.data is a hash and i have a yaml front matter like title: "this is the title" why do call the key with current_page.data.title instead of current_page.data[:title] ?
mengu has quit [Remote host closed the connection]
MrPopinjay has left #ruby ["WeeChat 0.3.8"]
<Burgestrand>
I’ve found that most of the time the client doesn’t really care much about the test specification. They read the user story we’ve prepared in e.g. pivotal tracker, that is even one step further away from the code than cucumber.
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
etqqkoiflwhb has joined #ruby
zz_jrhorn424 is now known as jrhorn424
basichash has joined #ruby
jxf has quit [Ping timeout: 250 seconds]
Gost_666 has quit [Quit: Gost_666]
<timgauthier>
shevy, Burgestrand why does current_page.data.title work, I understand why current_page.data[:title] works...
<Burgestrand>
I haven’t used cucumber for nearly two years now.
<slavapavlutin>
Burgestrand: I think it depends on level of the technical details your clients exposed to. However, in most cases RSpec suffices, I agree.
<timgauthier>
in my experience clients usually just want to know that it works
<Burgestrand>
timgauthier: people sometimes write accessors like that because they find it prettier.
<Cope>
aob: you didn't send your argument as a string
reset has joined #ruby
<timgauthier>
which one does ruby consider prettier? the . ?
earth has joined #ruby
nvrch has quit [Quit: nvrch]
<Burgestrand>
slavapavlutin: in the case where they don’t care about technical details, the way I write cucumber specs is still too technical.
<Burgestrand>
timgauthier: ruby likes many things.
<timgauthier>
ok :P
<Burgestrand>
timgauthier: the beauty of ruby is that it is including, not excluding. In other words, pick the one you prefer, but don’t cheat.
<slavapavlutin>
Burgestrand: Heh. :) Writing clear specfications is a skill on its own. :)
<Burgestrand>
;)
<timgauthier>
lol
<arubincloud>
It is not about making it prettier necessary.
<arubincloud>
It is about uniform access.
<basichash>
What's the ruby equivalent of os.system in python?
<Burgestrand>
slavapavlutin: Indeed :)! I’ve just found that when using Cucumber the steps either become overly specific (Create an invoice) and unmaintainable, or too generic (Click “Invoices”, Click “Edit”, Fill in…) and not very useful for the client.
<timgauthier>
whats the ruby equiv of phps isset? .nil?
<timgauthier>
When I use a cucumber i get a rash
<benzrf>
atom.io appears to be to ST as ST is to vim
<benzrf>
this saddens me
<timgauthier>
i couldn't stop myself anymore :(
freerobby has quit [Ping timeout: 252 seconds]
<Burgestrand>
timgauthier: has_key?
<timgauthier>
so i could do an if has.has_hey?
<Burgestrand>
timgauthier: sorry, I’m full of shit.
<benzrf>
basichash: Kernel#system
kayloos has joined #ruby
<timgauthier>
awe
<timgauthier>
i wish you weren't :P
<Burgestrand>
timgauthier: rails has a method for it, called #present? and #blank?
<timgauthier>
so i could do like if current_page.data[:title].present?
<Burgestrand>
timgauthier: Yep!
<timgauthier>
wewt!
<slavapavlutin>
Burgestrand: It's the real point of Cucumber ot make your specifications easy to understand for your audience. If your audience is programmers, you don't actually need it because programmers can read code with ease. But in other cases it's better to use plain language to establish the requirements for your projects together with your clients. In the case of technically illiterate clients, you have to use language they can understand. Plain language allows
<Burgestrand>
timgauthier: in some cases, you could also just do: current_page.data[:title].presence or "default value"
<timgauthier>
so if i want it to show the title if there is one, but if not use a different variable in that place would i do
grumbles has joined #ruby
<timgauthier>
oh.. so without an if?
lanalyst has joined #ruby
<bhaak>
we're using rspec for the usual unit tests and cucumber (combined with capybara) for the integration tests
<bhaak>
I
<timgauthier>
you'd just do an or and could "default value" be a different config[:title] ?
chipotle has quit [Client Quit]
<Burgestrand>
slavapavlutin: I understand where you're going. It used to be my reasoning ~3 years back.
jlast has joined #ruby
<bhaak>
I've just recently came onto this project as a programmer and it really helps having specifications that are detached from actual code. but I would never show them to the customer. they are just too detailed (of course, they are integration tests)
kayloos has quit [Ping timeout: 252 seconds]
<timgauthier>
oh man...
sdouglas has joined #ruby
<slavapavlutin>
Burgestrand: Yeah, personal experience is so personal. :) The most important point is to get things done not struggling at the same time. No matter actually what tools exactly you use. :)
<timgauthier>
Burgestrand wow that works... so ruby!
blip- has joined #ruby
<Burgestrand>
I changed my opinion over time. I now consider that the value that Cucumber provides (executable specification) is better done separately; an explanation for your client that is easy to read, and an explanation for your developers that is easy to maintain.
benzrf is now known as benzrf|offline
<Burgestrand>
I don't mix the two.
<Burgestrand>
slavapavlutin: but I understand if you still feel that Cucumber is a nice idea. I can respect that.
sk87 has joined #ruby
rvraghav93_ has quit [Ping timeout: 276 seconds]
<slavapavlutin>
Burgestrand: Perhaps I will come to the same conclusion as you did, but now Cucumber helps me learn and develop better software, so there's no need for others to say that a tool should not exist if some people doesn't find it useful.
IceDragon has joined #ruby
mengu has joined #ruby
benzrf|offline is now known as benzrf
<Burgestrand>
slavapavlutin: yes, I agree. Not everybody should have the same opinion as me, that would be awfully boring.
<timgauthier>
Burgestrand ahh if the key is present then it returns true.. is there any way to make it return itself? or would i then do an if hash[:key].present? ; hash[:hey] ; otherhash[:key] end ?
<Burgestrand>
slavapavlutin: regarding Cucumber, a colleague of mine wrote a gem to manage Cucumber steps in a different way a while ago: https://github.com/jnicklas/turnip
<slavapavlutin>
Burgestrand: I'm familiar with Turnip.
<Burgestrand>
slavapavlutin: if I were to use Cucumber and RSpec, I'd probably use that… but as you already know I won't be using that. :p
<Burgestrand>
… at least not by initial choice, but I'm open to bribery.
<slavapavlutin>
How about Jim's rspec-given? :)
<Burgestrand>
timgauthier: hash[:key].presence
<Burgestrand>
timgauthier: it will return the value if it is present, or nil if the value is empty or nil
<timgauthier>
sersly... ruby.. why have i taken so long
<Burgestrand>
timgauthier: for hashes specifically, you can also do: hash.fetch(:key, "default value")
<Burgestrand>
timgauthier: it's slightly different, Hash#fetch will return the key if it exists, even if it is nil or false
momomomomo has joined #ruby
<Burgestrand>
slavapavlutin: I haven't had a look at it.
<slavapavlutin>
How about little philosophy? What's the most important quality of Ruby that makes you a happy developer? :)
nateberkopec has quit [Quit: Leaving...]
iamdoo2 has joined #ruby
<timgauthier>
slavapavlutin the fact that if hash.hey.presence does exactly what it does
Davey_ has joined #ruby
nateberkopec has joined #ruby
Speed has joined #ruby
earth has quit [Quit: earth]
<Burgestrand>
slavapavlutin: hehe. I believe it's flexibility.
<shevy>
timgauthier dunno how it does it, but if you have ie: object[:bla], you can also dynamically create methods if you want to in ruby, so that object.bla would also work
dideler|work has quit [Quit: WeeChat 0.4.3-dev]
<slavapavlutin>
For me, Ruby is a partially ugly language that allows to develop really beautiful APIs. And beautiful APIs written in Ruby make me happy. :)
<Burgestrand>
slavapavlutin: Ruby can be contorted in so many ways, which makes development creative. The balance in using that flexibility while also making code not hard to maintain is the puzzle. Puzzles are fun.
<timgauthier>
yah shevy it blows my mind
<shevy>
slavapavlutin depends on how you use ruby really
<shevy>
if you use lots of @@ and $ then yeah
<shevy>
you end up with shit
<shevy>
timgauthier that's bad, don't let it blow your mind, keep it simple
<Burgestrand>
slavapavlutin: Hah, indeed. Ruby isn't always nice to you.
grumbles has quit [Ping timeout: 245 seconds]
<shevy>
just because a feature exists does not mean you have to use it
<timgauthier>
it blows my mind because how convoluted it was in php or even liquid
<shevy>
hehe
<shevy>
ruby code can be convoluted as well!
nvrch has joined #ruby
<timgauthier>
no, I actually need to use it, just it is much easier then i expected
<shevy>
ask jhass why it is bad to have a class with +3000 lines of code
<timgauthier>
the whole hash.hey hash[:key] thing is black magic
<slavapavlutin>
The thing is that from times to times Ruby is, in fact, a weird language with its weird syntax. But the end result is always beautiful (with enough refactoring and tests, of course). :)
<timgauthier>
but i am using hash[:key] because that way i will learn that and understand it more
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
enebo has joined #ruby
momomomomo has quit [Client Quit]
cocotton has joined #ruby
ndrei has joined #ruby
iamdoo2 has quit [Ping timeout: 240 seconds]
Speed has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
osvico has quit [Read error: Connection reset by peer]
<shevy>
timgauthier, well see
osvico has joined #ruby
<timgauthier>
ok
<baweaver>
Still at it?
<shevy>
timgauthier I can tell you that in like 98% of the cases, it is best to stick to core/main ruby idioms
<shevy>
hash[] is common, hash.method not
<shevy>
so prefer [] for a hash
<shevy>
the only time when I violate that myself is for configuration object
<timgauthier>
baweaver me? you bet!
<timgauthier>
but today i'm using middleman and actually like... working
dideler|work has joined #ruby
dyoko has joined #ruby
<shevy>
config[:editor] # vim AND config.editor # same result
<benzrf>
smalltalk is 3cool5me
andy___ has joined #ruby
<shevy>
get over it already, smalltalk lost against the scripting languages
Davey_ is now known as grumbles
<benzrf>
ur just jelly of our images
<baweaver>
I'd wager there's no such thing as losing
<shevy>
slavapavlutin ruby syntax can become quite complicated for newcomers
<baweaver>
at least in that context.
<shevy>
like when you can use {} and when not, yet it still means a hash
<shevy>
benzrf the image idea is cool
<shevy>
if it could be coupled with erlang!
zachallett has quit [Remote host closed the connection]
<baweaver>
....elixir?
makara has quit [Ping timeout: 276 seconds]
Chronocity has joined #ruby
<shevy>
baweaver I go with amount of new users usually
<shevy>
like
zachallett has joined #ruby
<shevy>
if a programming language is unable to gain new people, it's dead in my eyes
trhodes_ has quit [Ping timeout: 264 seconds]
<timgauthier>
shevy example of why the base way of doing things is good. when you have #[:key] how would you write it the other way? #.key?
<baweaver>
Perhaps, but if people still use it, it still lives
<shevy>
timgauthier you can define methods on objects freely, or generate them programmatically
<Burgestrand>
timgauthier: #key
<shevy>
baweaver yeah, a semi-life
<slavapavlutin>
shevy: syntax seems fine once you get familiar with it. What I really like about Ruby syntax is that it does what you expect it to do. Ruby's OO model is, in fact, really, really straightforward and simple.
<shevy>
COBOL stone age
<shevy>
Ada paradise
<benzrf>
slavapavlutin: taken almost entirely wholesale from smalltalk
tvw has quit []
mark_locklear has joined #ruby
<shevy>
slavapavlutin kinda
lewix has quit [Remote host closed the connection]
<benzrf>
slavapavlutin: the only significant difference is that in smalltalk you have a predefined list of what ivars a class has
<baweaver>
Lisp is by all definitions dead in its' original form, but it has a pretty nice grip on things and keeps reviving.
rvraghav93 has joined #ruby
<baweaver>
and it was made in the same era as RPG, COBOL, and the like
<benzrf>
slavapavlutin: ruby is basically just smalltalk if it were perl
<shevy>
I'd say lisp is much more alive than cobol
<slavapavlutin>
benzrf: Dunno much about Smalltalk.
<benzrf>
slavapavlutin: smalltalk is way Cooler_
<benzrf>
*cool
<Burgestrand>
I should be going. Maybe see yous later.
<deepy>
COBOL is very much alive
mengu has quit []
Burgestrand has quit [Quit: Burgestrand]
<shevy>
like where
<slavapavlutin>
benzrf: To be more precise, I didn't program in it.
banister has joined #ruby
<benzrf>
slavapavlutin: the big idea in smalltalk vs most other languages is that you do all of your programming within an environment which is itself a running smalltalk program
<baweaver>
Financial institutes and businesses
osvico has quit [Ping timeout: 240 seconds]
blip- has quit [Remote host closed the connection]
<benzrf>
and you can snapshot said program
<shevy>
all the financial institutes here nearby use mostly java
<benzrf>
so your program is always running
<benzrf>
its ALIVE
<baweaver>
in your area perhaps
<benzrf>
it's like if you did all of your dev from pry, only practical
<shevy>
some C++ too
<baweaver>
I do do most all of my dev in pry
<slavapavlutin>
benzrf: Nice. However, it's kinda dead?
<baweaver>
and vim
<baweaver>
yay vim
rylev has joined #ruby
<benzrf>
slavapavlutin: possibly
cocotton has quit [Remote host closed the connection]
<benzrf>
slavapavlutin: you can still use it o=
<benzrf>
the issue is that it is its own walled-off ecosystem
<benzrf>
likemike:
<benzrf>
*liek
<benzrf>
to a ridiculous degree
<benzrf>
you open pharo (version ive tried), it has its own windows within the program
<slavapavlutin>
benzrf: I want to do what I want and get paid at the same time. :)
<benzrf>
not integrated with WM
<benzrf>
you open a new workspace, it's not a file, it's part of the existing program
<timgauthier>
what is a more rubyrific way to write != ?
<benzrf>
you cant use vim with it because it's all within an existing program
<benzrf>
not unix
_justin has quit [Quit: _justin]
<timgauthier>
isnot ?
<benzrf>
timgauthier: !=
<shevy>
slavapavlutin in what area are you working?
Xiti` has quit [Quit: Leaving]
<timgauthier>
ok
<benzrf>
it's like a sub OS
<shevy>
emacs?
<slavapavlutin>
shevy: Web development.
<shevy>
hmm
<shevy>
slavapavlutin php?
<benzrf>
slavapavlutin: anyway, i hear SLIME for CL works like this too
<benzrf>
only more system integrated =D
banister is now known as banisterfiend
<slavapavlutin>
*_*
<slavapavlutin>
shevy: no... fu**ing... way...
<benzrf>
slavapavlutin: and Quick, my current project, is to bring something like this to ruby
<shevy>
haha
<benzrf>
=D
rvraghav93 has quit [Ping timeout: 250 seconds]
Xiti has joined #ruby
blip99 has joined #ruby
<shevy>
timgauthier see php elicits a strong response usually
cocotton has joined #ruby
jjbohn has joined #ruby
<timgauthier>
haha
mattrose has joined #ruby
cocotton has quit [Remote host closed the connection]
<benzrf>
the reason is because:
<benzrf>
PHP IS SUCK
<shevy>
but tiobe says php is better than ruby
<timgauthier>
how to make <% if menu != "off" %>
<timgauthier>
Menu is not off
<timgauthier>
<% end %> not break if menu isn't set ?
<slavapavlutin>
PHP is a mess, basically.
<shevy>
ack timgauthier
robbyoconnor has quit [Ping timeout: 276 seconds]
<timgauthier>
sorry shevy :P
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
btw
cocotton has joined #ruby
_justin has joined #ruby
<timgauthier>
< 3 lines
<shevy>
do you really have to use one line per statement in erb?
<shevy>
can't you put it all together?
<baweaver>
PHP is frankensteins monster
<timgauthier>
no you don't i did that for ease of understanding for me.. the "Menu is off" will actually be some html later
<baweaver>
It's to keep logic out of views
<benzrf>
timgauthier: dont use strings >.<
bigkevmcd has quit [Ping timeout: 252 seconds]
<shevy>
well even in php
<shevy>
I could do
<shevy>
<?php
<benzrf>
timgauthier: use a boolean gosh
<benzrf>
o=
<shevy>
# shit php code here, lots of lines
browndawg has joined #ruby
<timgauthier>
but i have 3 states ;)
<shevy>
/>
<shevy>
or something like that, I forgot how to close it
havenwood has joined #ruby
<timgauthier>
menu which is default, then menu is off, and masthead_only
<shevy>
well that is simple timgauthier
<shevy>
case variable
<shevy>
when 'state 1'
<shevy>
when 'state 2'
bluOxigen has joined #ruby
<shevy>
when 'state 3'
<shevy>
end
<timgauthier>
ahhh
<slavapavlutin>
PHP doesn't DRY and SRP compatible. That's a problem for my perfectionist's mind.
<benzrf>
SRP?
<timgauthier>
but i don't wanna have to call the partial with a variable all the time.. so really i guess its an if, elsif, else
<shevy>
though for only 3 states, if/elsif/else might be shorter
rylev has quit [Ping timeout: 276 seconds]
<timgauthier>
ya
kevinykchan has quit [Quit: Computer has gone to sleep.]
toastynerd has joined #ruby
<slavapavlutin>
Single Responsibility Principle
<shevy>
I love variables!
<shevy>
_ = 'hi'
<timgauthier>
but how do i make the whole thing not break if i don't have the variable assigned at all?
<shevy>
_ is the best variable
<dagobah>
re heartbleed, does one need to recompile ruby?
<shevy>
break
<baweaver>
no
<shevy>
what does that mean?
<baweaver>
only ssl
<shevy>
timgauthier you can check whether a variable exists etc...
evenix has joined #ruby
<shevy>
for instance: if var.nil? ... or unless var.nil? ... or defined? var
<shevy>
or ... Object.const_defined? :SomeModuleNameHere
<shevy>
and so on
donnoc has quit [Ping timeout: 276 seconds]
<timgauthier>
const_defined ?
jobewan has joined #ruby
<shevy>
and of course the old ruby trick: x = 'foo' || false
tobago has quit [Remote host closed the connection]
<dagobah>
but ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION' #=> OpenSSL 1.0.1 14 Mar 2012
<shevy>
he also compiles from source
<baweaver>
technically rvm compiles from source if it can't get a bin
<shevy>
dagobah no error if you go into ext/openssl subdir?
<timgauthier>
wait... why would your user account send a message saying "Hat 500 characters" ?
linojon has quit [Quit: linojon]
<timgauthier>
is that what was wrong with openSSL?
<Mon_Ouie>
The attacker would say that, and get extra data that happens to be in memory
<dagobah>
No
<shevy>
I just realized I can not test, I am on openssl 1.0.1c myself
<havenwood>
dagobah: The OPENSSL_VERSION constant is only set at compile time, so it is likely dynamically linking correctly
dyoko has quit [Quit: Leaving.]
<dagobah>
Ah I see.
garndt has joined #ruby
<timgauthier>
like open SSL had a bug where it would accidentally at some point ask for a short word but leave the character count too long so you'd just keep asking for the 500 characters until that vulnerability happenned?
cocotton_ has joined #ruby
vpretzel is now known as vpretzel_meeting
rmorello is now known as rmorello_meeting
rylev has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
jrhorn424 is now known as zz_jrhorn424
tjr9898 has joined #ruby
blip99 has quit [Remote host closed the connection]
mattp__ has quit [Read error: Connection reset by peer]
<canton7-mac>
timgauthier, so basically this particular "heartbeat" system worked by the client asking "server, are you there? if so, reply with *this* message, and *this* is the length of that message"
culturelabs has quit [Ping timeout: 240 seconds]
<timgauthier>
yup
<canton7-mac>
the problem is that the server trusted the user to state the correct length of that message
<timgauthier>
makes sense
<canton7-mac>
so the user could be malicious and make the message length not match up to the message
<timgauthier>
ohhh
<timgauthier>
i was thinking of it backwards
<timgauthier>
woah...
<canton7-mac>
so the server would return the message, plus "garbage" to make up the length the user specified
<timgauthier>
users wouldn't ever be malicious ;)
<canton7-mac>
excep the garbage was recently-deallocated memory, and could contain sensitive stuff
<timgauthier>
the problem was that the garbage was impo... yeah
sethen has quit [Ping timeout: 276 seconds]
<timgauthier>
so the fix is to fence that out and only return the answer or an error?
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
<canton7-mac>
yeah, if they don't match, handle that as an error case
maximski has quit [Read error: Connection reset by peer]
<timgauthier>
sweet
ParanoidSP has quit [Ping timeout: 240 seconds]
etqqkoiflwhb has joined #ruby
lxsameer has quit [Quit: Leaving]
<dagobah>
How easy would it be to expose this vulnerability from within ruby? Making connections out rather than receiving connections?
maximski has joined #ruby
culturelabs has joined #ruby
sethen has joined #ruby
workmad3 has joined #ruby
<dagobah>
(via ruby's openssl lib)
rylev has quit [Ping timeout: 250 seconds]
<timgauthier>
shevy i'm now pondering my use case for that question i had... since it was sort of a template hack when i could do something different... *ponder*
freerobby has joined #ruby
<shevy>
haha
ParanoidSP has joined #ruby
benzrf|offline is now known as benzrf
d-snp_ has quit [Quit: Reconnecting]
d-snp has joined #ruby
<timgauthier>
i was basically using liquid to add or remove class content to fix a css thing... which honestly isn't the smartest thing.. and now erg may make this actually better
kevinykchan has joined #ruby
<timgauthier>
thats the benefit of redoing things. i think you guys call it "refactoring" :P
<timgauthier>
ParanoidSP I've been watching you.. We are impressed with your progress. Proceed to the drop location.
<shevy>
I dont refactor
<shevy>
either it's perfect what I write
zachallett has quit [Remote host closed the connection]
<shevy>
or I must rewrite
<shevy>
usually only when it is small is it perfect
xjiujiu has quit [Remote host closed the connection]
<shevy>
once it becomes large, it becomes very, very imperfect
<timgauthier>
i rewrite everything usually once or twice
<timgauthier>
well yah, or if you are designing and coding as you go, you do it one way, then you change a thing to make a new thing work
etqqkoiflwhb_ has joined #ruby
<shevy>
yeah
kevinykchan has quit [Client Quit]
<timgauthier>
and you do that a few times and the way you originally wrote it is crap. So you rewrite it and viola!
<shevy>
I am losing overview when a project becomes large... like when it has +50 .rb files
<ddv>
if you lose overview it means you need to refactor :P
zachallett has joined #ruby
etqqkoiflwhb has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
benzrf is now known as benzrf|offline
maximski has quit [Client Quit]
freerobby has quit [Ping timeout: 258 seconds]
freerobby has joined #ruby
sdouglas has joined #ruby
frem has joined #ruby
_justin has quit [Quit: _justin]
donnoc has joined #ruby
Alina-malina has joined #ruby
linojon has joined #ruby
victorbjelkholm has quit [Ping timeout: 252 seconds]
bklane has joined #ruby
bklane has quit [Client Quit]
<timgauthier>
how would you write if menu.present? or != "off" ?
pu22l3r has joined #ruby
anarang has quit [Quit: Leaving]
<timgauthier>
wait no
<timgauthier>
if menu.present? and != 'off' or menu.nil?
Bumptious has quit [Remote host closed the connection]
jacky has quit [Excess Flood]
jackyalcine has joined #ruby
<timgauthier>
shevy ?
jackyalcine has quit [Excess Flood]
Bumptious has joined #ruby
noop has quit [Ping timeout: 258 seconds]
jackyalcine has joined #ruby
jackyalcine has quit [Excess Flood]
jorts has joined #ruby
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby
<timgauthier>
!exsists ?!
iceden has joined #ruby
jackyalc- has joined #ruby
reset has joined #ruby
jackyalc- has quit [Excess Flood]
mr_rich101 has quit [Ping timeout: 240 seconds]
<havenwood>
timgauthier: 'off' <- always truthy
Lulzon has quit [Ping timeout: 250 seconds]
icedp has quit [Ping timeout: 240 seconds]
<timgauthier>
not always... because sometimes i don't define menu
<timgauthier>
the problem i'm having isn't with the actual if logic, the problem i'm having is that sometimes i don't define menu
<havenwood>
coffee time!
adam12 has quit [Ping timeout: 250 seconds]
<timgauthier>
haha yeah i've got coffee time waiting for me in a few moments too
ndrei has quit [Ping timeout: 240 seconds]
<timgauthier>
germans are funny about that i find
<timgauthier>
what does !!'off' do?
toastynerd has quit [Remote host closed the connection]
adam_ has joined #ruby
mr_rich101 has joined #ruby
bal has quit [Quit: bal]
wald0 has quit [Quit: Lost terminal]
Lulzon has joined #ruby
<havenwood>
timgauthier: just a quicky way to get truthiness, like: `!nil #=> true` but `!!nil #=> false`
_tpavel has joined #ruby
<timgauthier>
i think i'm just trying to do something in a weird way
icedp has joined #ruby
Bumptious has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
izzol has quit [Read error: Connection reset by peer]
<havenwood>
timgauthier: present? already checks !blank?, maybe show some code?
Solnse has joined #ruby
jjbohn has quit [Quit: Leaving...]
<Mon_Ouie>
I'm not sure what you're trying to do precisely. That code you showed is not valid so I'm not sure what you mean. Also it's rather ambiguous without parentheses around the operators you're using.
sambao21 has quit [Quit: Computer has gone to sleep.]
aganov has quit [Quit: Leaving]
<timgauthier>
i'm trying to turn that into erg essentially
jackyalc- has joined #ruby
<timgauthier>
include.menu is just a local variable in middleman so it is menu
jackyalc- has quit [Excess Flood]
chipotle has joined #ruby
<timgauthier>
i've gotta run for coffee now though...
tjr9898 has quit [Remote host closed the connection]
chipotle has quit [Client Quit]
fgo has joined #ruby
zigomir has quit [Remote host closed the connection]
adam_ is now known as adam12
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
s2013 has joined #ruby
jeregrine has joined #ruby
jackyalc- has joined #ruby
jackyalc- has quit [Excess Flood]
jprovazn is now known as jprovazn_afk
qohelet_ has joined #ruby
LadyRainicorn has joined #ruby
sambao21 has joined #ruby
jackyalc- has joined #ruby
jackyalc- has quit [Excess Flood]
fgo has quit [Ping timeout: 245 seconds]
cocotton_ has quit [Quit: Leaving...]
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
donnoc has quit [Ping timeout: 276 seconds]
jxf has joined #ruby
dukz has joined #ruby
rippa has joined #ruby
chipotle has joined #ruby
rmorello_meeting is now known as rmorello|888
jjbohn has joined #ruby
_tpavel has quit [Quit: Leaving]
qohelet_ has quit [Client Quit]
jackyalc- has joined #ruby
iamdoo2 has joined #ruby
rm_ has quit [Remote host closed the connection]
etqqkoiflwhb_ has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 240 seconds]
jonno11 has joined #ruby
tcstar has joined #ruby
vpretzel_meeting is now known as vpretzel|gone
rm_ has joined #ruby
<timgauthier>
back
tjr9898 has joined #ruby
<tcstar>
So, new to ruby ( and ROR )... have a working nginx setup -- what version of ruby should I install
jonno11 has quit [Max SendQ exceeded]
<timgauthier>
latest?
dyoko has joined #ruby
doodlehaus has joined #ruby
<timgauthier>
ok let me try and rephrase my earlier question, how do i check if a hash has been defined and is not a particular string value?
<havenwood>
tcstar: 2.1.1
shashank_rs has joined #ruby
<certainty>
timgauthier: i don't understand that question :)
<timgauthier>
hmm ok
<certainty>
what is the thing you're referring to as a "hash"?
slavapavlutin has quit [Ping timeout: 276 seconds]
<timgauthier>
i'm using middleman to render a partial erb file. I have the option of calling a local variable :locals => { :menu => "off" }
Xeago has quit [Remote host closed the connection]
<timgauthier>
when i do that, in my partial i can access that with menu != "off" and it works fine.
SatansDeer has quit [Ping timeout: 252 seconds]
etqqkoiflwhb_ has joined #ruby
<certainty>
ok
<timgauthier>
but if I render the partial and i do not have the :locals => ... then i get a ruby failure. I don't want to have to always define the :menu and would like to have it handle no menu as part of the != "off"
Doppp has quit [Ping timeout: 240 seconds]
<timgauthier>
and i
rm_ has quit [Ping timeout: 252 seconds]
<timgauthier>
am not grasping how to do that with the if statement if !!menu != "off" or menu.nil?
<certainty>
what kind of error do you get?
<timgauthier>
NameError at /
<timgauthier>
undefined local variable or method `menu' for #<Middleman::Application:0x70223129906360>
ascarter has joined #ruby
<certainty>
you can't catch that one with a test like ! or .nil? :)
ascarter has quit [Max SendQ exceeded]
Fretta has joined #ruby
<timgauthier>
i'm not entirely sure how to write that
ascarter has joined #ruby
<timgauthier>
like how do i say if not .nill then check if it is not "string"
<certainty>
you can write if defined?(menu) && menu != "off"
ascarter has quit [Max SendQ exceeded]
<certainty>
not that it's particulary beautiful
<timgauthier>
ah... thats ok :)
<timgauthier>
ahhhhhh your doing and (&&) ok
ascarter has joined #ruby
vpretzel|gone is now known as vpretzel|emails
ascarter has quit [Max SendQ exceeded]
YamakasY has joined #ruby
<jhass>
normally you should be able to avoid such constructs
<timgauthier>
is there any form of like hash.nil? that checks if it isn't nill?
s3ri0us has joined #ruby
<jhass>
unless hash.nil?
<timgauthier>
jhass yeah, i have been trying to figure out in my head how to do that. but i'm newb
crystal77 has joined #ruby
YamakasY has quit [Remote host closed the connection]
iamdoo2 has quit [Remote host closed the connection]
<timgauthier>
I'm supposed to ask you about 3000 lines of code in a class jhass :P
<certainty>
you could always pass the value for :menu :)
<jhass>
you got one?
<timgauthier>
no :P
YamakasY has joined #ruby
<jhass>
then I'm not sure what to talk about
<timgauthier>
yeah certainty i could... but i really don't wanna always do that :P
<certainty>
timgauthier: how often is always?
<timgauthier>
i don't either jhass, blame shevy :P
<timgauthier>
well 90% of the time my menu will not have a variable passed, there are a few pages where i need to turn the menu off and a few others where I need to have menu only but not the rest of the masthead
ascarter has joined #ruby
<timgauthier>
haha jhass :P
<timgauthier>
shevy is helpful though
jottr has joined #ruby
tziOm has quit [Read error: Operation timed out]
s2013_ has joined #ruby
<timgauthier>
basically certainty menu="off" is an edge case, but i have most of my pages with a full menu and masthead, but then some sections have menu="only" passed off and then the masthead is hidden.. which i did that way because of limitations in liquid... and i keep thinking that there is likely a better or different way to do that in erb.. but i haven't wrapped my head around it
<jottr>
what is the best way to run a rake testtask when a file change occurs in a specified directory?
tziOm has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
iamdoo2_ has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
s2013 has quit [Ping timeout: 250 seconds]
<timgauthier>
is there a page for ruby that is like php.net? or i guess it would have to be ruby+rails?
<jhass>
timgauthier: you're using rails?
<timgauthier>
i'm using middleman
shashank_rs has quit [Ping timeout: 245 seconds]
<jhass>
then you're not using rails afaik
<timgauthier>
i'm not "really" using ruby
ndrei has joined #ruby
treehug88 has joined #ruby
<timgauthier>
really jhass ? oh, cause i was told by burger that i could call rails methods (and so far it i thought i had)
<timgauthier>
ok cool
<certainty>
timgauthier: ruby-doc.org
<jhass>
well, I've zero experience with middleman
s2013_ is now known as s2013
iamdoo2_ has quit [Remote host closed the connection]
<timgauthier>
thats cool thanks :) (i'm still open to going to their IRC room if they have one and someone can direct me :S)
fabrice31 has quit [Remote host closed the connection]
<timgauthier>
most of my questions are currently erb though
baroquebobcat has joined #ruby
<jhass>
ah, seems to depend on activesupport
* certainty
&
<certainty>
active shoehorn
<timgauthier>
heh
* certainty
&
fabrice31 has joined #ruby
duggiefresh has joined #ruby
<timgauthier>
i'm trying to wrap around my head to maybe use an unless instead of if, however ..
<timgauthier>
i'll take a few moments
<tcstar>
havenwood, thanks for that... i shall heed to your advice
moomerman has joined #ruby
<jhass>
timgauthier: it seems to support multiple layouts, I'd look into that. Then you have 3 different layouts, probably just including some partials, and always specifying menu: 'bla' is no pain
aspires has quit []
<timgauthier>
yeah, i'm including a partial, but i was wanting to not include the :menu unless it was different because somehow in m head that made more sense.
qmfnp has joined #ruby
moomerman has quit [Client Quit]
<jhass>
it even supports nested layouts
<timgauthier>
this if defined works so... i might keep that
<timgauthier>
yeah i'm using those for blogs etc
<timgauthier>
the template/rendering is very similar to jekyll which i love
larissa has joined #ruby
<timgauthier>
and what i'm converting from
ndrei has quit [Ping timeout: 276 seconds]
<jhass>
so you can have your common layout, one that is based on that and displays the menu and one that is based on the previous one and displays the masthead
rylev has joined #ruby
dik_dak has joined #ruby
<timgauthier>
this is my half converted partial that calls another partial http://pastie.org/9073180
<jhass>
and one that displays only the masthead (and so is based on the common one), if you need that
<certainty>
timgauthier: any particular reasons to ditch jekyll?
dunix has quit []
<timgauthier>
certainty yeah, I need to be able to render a partial that isn't in the _include folder
<timgauthier>
literally.. that is the only reason certainty ... :|
<timgauthier>
i see i can likely use an unless in this next part of the partial
sski has quit [Remote host closed the connection]
relix has joined #ruby
fabrice31 has quit [Ping timeout: 276 seconds]
shashank_rs has joined #ruby
sski has joined #ruby
ccham_ has joined #ruby
iamdoo2 has joined #ruby
Mongey has joined #ruby
<timgauthier>
oh man i'm doing some mental logic acrobatics in my head... ouch this hurts..
benzrf|offline is now known as benzrf
RowdyChild|Away is now known as RowdyChildren
rylev has quit [Ping timeout: 250 seconds]
obs has quit [Quit: Konversation terminated!]
|RicharD| has joined #ruby
<|RicharD|>
Hi
<timgauthier>
if the hash is nil and not "string" then do this thing
<|RicharD|>
I'm doing a simple script in ruby(with active record)
<timgauthier>
no that isn't right.. hmm
<|RicharD|>
that remove the first char if is " " and then save in db
<|RicharD|>
if I try to save manually when I enter in binding.pry
<|RicharD|>
it give me true
<|RicharD|>
but then when I do NewProduct.find(id) , I see that the name isn't changed/saved
sski has quit [Ping timeout: 258 seconds]
SCommette has joined #ruby
pzula has joined #ruby
binaryhat has joined #ruby
<jottr>
anyone?
obs has joined #ruby
vpretzel|emails is now known as vpretzel_gone
<mikecmpbll>
|RicharD|: does it raise an exception?
<jottr>
what is the best way to run a rake testtask when a file change occurs in a specified directory?
<timgauthier>
if the hash is defined but isn't only then do the following is what this means correct : <% unless hash.nil? || == "only" %>
dtcrshr has joined #ruby
<timgauthier>
how do i say its okay if its undefined or defined..
<timgauthier>
i think the messy way works better
<mikecmpbll>
|RicharD|: scrap that, that's the return value of @aproduct.save ? maybe a validation is failing or something
<mikecmpbll>
for debugging purposes it's probably easier to stick a ! on the end of the save so that it'll raise an exception.
<|RicharD|>
no
<|RicharD|>
not raise exception
<mikecmpbll>
yeah, ignore that.
havenwood has quit []
<|RicharD|>
ehm anyway
<mikecmpbll>
i thought you were using save!. save won't raise an exception for validation failures.
<|RicharD|>
no
<|RicharD|>
and when I enter in binding.pry
<|RicharD|>
I try to save manually and give me tru
<|RicharD|>
true*
<jhass>
timgauthier: no idea if that approach works with middleman, but here's an approach I use in a rails app to solve a similar issue, translated to middleman API http://paste.mrzyx.de/p3eda961a/
<timgauthier>
wow, thanks for taking the time jhass
etqqkoiflwhb_ has quit [Ping timeout: 245 seconds]
evenix has quit [Remote host closed the connection]
mheld has left #ruby [#ruby]
evenix has joined #ruby
cocotton has joined #ruby
<mikecmpbll>
|RicharD|: for all intents and purposes it should work, you'll have to do some more debugging
rainmanjam has joined #ruby
<|RicharD|>
example?
<mikecmpbll>
uhm, using the rails console, just try do the exact same on a specific record
<mikecmpbll>
the slice and save bits
Silex has left #ruby ["WeeChat 0.3.8"]
<mikecmpbll>
on one that it didn't work for with that code.
sdouglas has quit [Remote host closed the connection]
kukyakya has joined #ruby
<cocotton>
Hey all, I'm using vagrant and vbox to create an osx mavericks vm. Now when I boot my machine from the vagrant box, vagrant "waits" for the machine to boot. The machine actually boot without any problem according to vbox (in the preview, I can see it), yet vagrant doesn't seem to know that the booting phase is completed.
<cocotton>
In the end, it times out, even thought the machine is up
<timgauthier>
ah you are routing areas with that.. o
<timgauthier>
ok*
maletor has quit [Quit: Computer has gone to sleep.]
<timgauthier>
so in your partials for the masthead if you have no content_for :header then it just doesn't render that block ?
fgo has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
fgo has quit [Remote host closed the connection]
deadlock has joined #ruby
<jhass>
i used partial calls in the content_for blocks there for demo purposes, you could as well fill in the code directly
kevind has joined #ruby
Kricir has joined #ruby
qba73 has quit []
pzula has quit [Quit: Lost terminal]
mrjensen has quit [Remote host closed the connection]
charlies_ has joined #ruby
aagdbl has quit [Quit: Connection closed for inactivity]
matcouto has quit [Quit: yayyyyyy -_- Zzzz]
kukyakya has quit [Remote host closed the connection]
<timgauthier>
but i'm still correct in the assumption that basically if there is no content_for :header it just skips that do block and whatever is inside of that?
tcurdt has joined #ruby
jokke has quit [Remote host closed the connection]
<jhass>
which do block?
<timgauthier>
<% content_for :header do %>
<timgauthier>
under the layouts
<jhass>
uhm, if you leave that off it's gone, there's nothing to skip?
charliesome has quit [Ping timeout: 240 seconds]
luriv has joined #ruby
mattmcclure has joined #ruby
<jhass>
yield_content(:header) if content_for? :header makes sure to only call yield_content :header if there is at least one content_for :header
<timgauthier>
jhass what i meant is... in the layout you say <%= yield_content(:header) if content_for? :header %>
ziyadb_ has quit [Quit: Connection closed for inactivity]
malkomalko has joined #ruby
sigurding has quit [Quit: sigurding]
rmorello|888 is now known as rmorello|swim
<timgauthier>
ok sweet, yah that makes sense to me jhass
reset has joined #ruby
cocotton has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
cgore has joined #ruby
zigomir has quit [Remote host closed the connection]
ccham_ has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
f0ster has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
f0ster is now known as f0ster`
DouweM has quit [Read error: Connection reset by peer]
glide has joined #ruby
dkamioka has joined #ruby
kayloos has joined #ruby
nvrch has quit [Quit: nvrch]
ktun has joined #ruby
emaxi has quit [Remote host closed the connection]
<timgauthier>
i should switch to what you have suggested, its a bit of a change but i think you are correct in saying that its a more appropriate way to do it
mikecmpbll has quit [Ping timeout: 252 seconds]
kayloos has quit [Ping timeout: 252 seconds]
iamdoo2_ has joined #ruby
<jhass>
as said I can't guarantee that it works in middleman though
jokke has joined #ruby
bklane has joined #ruby
shredding has quit [Quit: shredding]
Melpaws has quit [Quit: Leaving.]
<timgauthier>
i don't see why it wouldn't
pierre1_ has joined #ruby
<timgauthier>
and i'm pretty sure it would work in nanoc if i end up using that..
Hobogrammer has joined #ruby
dyoko has joined #ruby
<timgauthier>
I'm sort of running and trying out both side by side :S
tjr9898 has quit [Remote host closed the connection]
rm_ has joined #ruby
<timgauthier>
the only catch jhass is that my menu has to be called inside of my masthead partial.. because of where it sits in the html so that may be why i did it this way
obs has quit [Quit: Konversation terminated!]
m0s is now known as m0s^away
<jhass>
that's why I replicated it in my example. You can extend the approach though and define more yield_content blocks, you don't need to stick to :header as the only one
obs has joined #ruby
michaeldeol has joined #ruby
pietr0 has joined #ruby
zachallett has quit [Remote host closed the connection]
sk87_ has joined #ruby
sk87 has quit [Read error: Connection reset by peer]
malkomalko has quit []
<jhass>
or even decide to extract the menu to a partial and the masthead to a partial and define two layouts with render :masthead, menu: true and render :masthead, menu: false and have little to no duplication without the need for defined?
browndawg has left #ruby [#ruby]
<timgauthier>
how would you call those? with like yaml front matter or routing or?
<Rhainur>
does jruby "just work"? I mean if I take a Ruby 1.9 script and run it under jruby, are there any issues with gems or something?
etqqkoiflwhb_ has joined #ruby
<headius>
Rhainur: gems that have C extensions don't run on JRuby. Many have java versions that install transparently or have alternative gems with same API
ghr has joined #ruby
<headius>
otherwise, yes, should just work...if it doesn't it's a bug usually
Guest43518 is now known as jacky
mikecmpbll has joined #ruby
jacky has quit [Changing host]
jacky has joined #ruby
gancl has quit [Ping timeout: 258 seconds]
<benzrf>
certainty: y/n
<certainty>
benzrf: i'm still watching it
<benzrf>
=3
gancl has joined #ruby
sk87_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<certainty>
benzrf: heh that looks interesting indeed!
<benzrf>
^_^
arturaz has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 276 seconds]
timonv_ has quit [Remote host closed the connection]
larissa has joined #ruby
binaryhat has quit [Ping timeout: 240 seconds]
shashank_rs has quit [Ping timeout: 245 seconds]
jds has quit [Quit: Connection closed for inactivity]
sdouglas_ has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
lethjakman has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby
iamjarvo has quit [Ping timeout: 258 seconds]
tharindu has joined #ruby
glide has quit [Ping timeout: 252 seconds]
bigkevmcd has quit [Remote host closed the connection]
LadyRainicorn has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
venderta has joined #ruby
yfeldblum has quit [Remote host closed the connection]
m0s is now known as m0s^away
fannye has quit [Ping timeout: 276 seconds]
zigomir has joined #ruby
emaxi has joined #ruby
luckyruby has quit [Remote host closed the connection]
m0s^away is now known as m0s
luckyruby has joined #ruby
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<benzrf>
certainty: future intended usage is
sdouglas has quit [Ping timeout: 258 seconds]
luckyruby has quit [Client Quit]
mary5030 has quit [Read error: Connection reset by peer]
<benzrf>
certainty: u "require '/home/certainty/ur_project/main'"
<benzrf>
then u write a buncha code in a live env
mary5030 has joined #ruby
<benzrf>
then u run 'quick export ~/ur_project/' and it scans it for files with matching classes and opens them one by one in ur $EDITOR after pasting each new code file into ur clipboard
<benzrf>
also well have git-versioned snapshot
geggam has joined #ruby
<benzrf>
s
Heskie has quit []
emaxi has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
phansch has joined #ruby
danijoo has joined #ruby
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
Kryptonical has quit [Remote host closed the connection]
pen has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
<certainty>
benzrf: interesting idea
iamdoo2_ has quit []
jason_ has quit [Read error: Connection reset by peer]
koderok has joined #ruby
jason_ has joined #ruby
luriv has quit [Ping timeout: 252 seconds]
LadyRainicorn has quit [Remote host closed the connection]
<Guest77325>
http://www.goaltycoon.com/bestfootballgame/galahad1st use this link to register on GoalTycoon, a free2play football manager online game, manage your team, improve your players and tactics to advance the leagues, upgrade your club park, all in order to earn profits and the virtual currency can be converted into real money. Join now! It's free:>
Guest77325 has left #ruby [#ruby]
SilverKey has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
pen has joined #ruby
sambao21 has joined #ruby
b1nd has quit [Ping timeout: 252 seconds]
BHensley has joined #ruby
morenoh152 has quit [Ping timeout: 252 seconds]
coderhs has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
Azure has quit [Quit: Blue Sky Fish]
ndrei has quit [Ping timeout: 276 seconds]
<mattalexx>
canton7: Thanks!
ktun has quit [Ping timeout: 258 seconds]
saarinen has quit [Ping timeout: 276 seconds]
Azure has joined #ruby
jovon has joined #ruby
m0s is now known as m0s^away
jovon has quit [Client Quit]
ktun has joined #ruby
tjr9898 has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 252 seconds]
afex has joined #ruby
timonv has quit [Remote host closed the connection]
Azure has quit [Quit: Blue Sky Fish]
ktun has quit [Client Quit]
SCommette has quit [Quit: SCommette]
IcyDragon has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
anaeem1_ has quit [Remote host closed the connection]
ukd1 has joined #ruby
anaeem1 has joined #ruby
Hobogrammer has joined #ruby
sdouglas has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
sdouglas has joined #ruby
FxK has joined #ruby
morenoh152 has joined #ruby
spstarr_work has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
wald0 has joined #ruby
anaeem1 has quit [Ping timeout: 252 seconds]
<benzrf>
/quit
<lagweezle>
No.
benzrf is now known as benzrf|offline
asteros_ has joined #ruby
s3ri0us|away is now known as s3ri0us
<zorak>
what do you se to code? vim?
<zorak>
i was using gedit, but im using geany now
awukelelexi has joined #ruby
benzrf|offline is now known as benzrf
<zorak>
i like that keep memory of some functions and ask me to autocomplete when i have to write it again
asteros has quit [Ping timeout: 245 seconds]
asteros_ is now known as asteros
sdouglas has quit [Read error: Connection reset by peer]
<zorak>
i dont like that dont have a diferent color for the constants
<certainty>
emacs
sdouglas has joined #ruby
Notte has joined #ruby
andrewlio has joined #ruby
davedev2_ has quit [Ping timeout: 258 seconds]
davedev24 has joined #ruby
rezzack has joined #ruby
<Hanmac>
zorak: depends on the project size ... for smaller, little edits i use gedit too, i tryed geany but it didnt worked as i wanted ... for bigger i use eclipse, because i would lose the orientation with gedit
dstynchula has joined #ruby
<bricker>
sublime text because it's 2014
MindfulMonk has quit [Ping timeout: 252 seconds]
<bricker>
oh god
<bricker>
what have I done
* bricker
backs away
SonicX has joined #ruby
Azure has joined #ruby
<zorak>
Hanmac: but eclipse is for java, no?
jason_ has quit [Remote host closed the connection]
<zorak>
p eclipse - Extensible Tool Platform and Java IDE
<Hanmac>
zorak: not only, i use eclipse for my Cpp projects too
yokel has quit [Ping timeout: 252 seconds]
sdouglas has quit [Ping timeout: 276 seconds]
<zorak>
Cpp??
<toretore>
++
toastynerd has quit [Remote host closed the connection]
<Hanmac>
zorak: eclipse-cdt
<zorak>
you can use ruby in eclipse?
<shevy>
zorak it's an editor
<shevy>
zorak Hanmac uses it because he has to keep open many many files at the same time
ce_afk is now known as cescalante
ktun has joined #ruby
<zorak>
and whats the difference between eclipse and gedit?
geggam has joined #ruby
<Hanmac>
shevy: moslty eclipse says i have "99+" files open
<shevy>
gedit is like an enhanced notepad :)
<shevy>
Hanmac that's a lot
<shevy>
I usually have 5-25 files open at max
sambao21 has quit [Quit: Computer has gone to sleep.]
pencilcheck has joined #ruby
<Hanmac>
zorak: i need reverences ... so when i have wrap(_self->GetItem(NUM2INT(val))); and it click onto the "GetItem" function i wanted to see where (in which header) this fuction was defined
<zorak>
like hipertext?
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
makara has joined #ruby
selite has quit [Quit: Page closed]
pen has quit [Ping timeout: 252 seconds]
etqqkoiflwhb_ has joined #ruby
doodlehaus has quit [Ping timeout: 240 seconds]
mrmargolis has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
senayar has joined #ruby
mattalexx has quit [Quit: Page closed]
jenrzzz has joined #ruby
Azure has quit [Quit: Blue Sky Fish]
shashank_rs has quit [Ping timeout: 245 seconds]
jfelchner999 has joined #ruby
SevereOverfl0w has quit [Ping timeout: 252 seconds]
MindfulMonk has joined #ruby
SevereOverfl0w has joined #ruby
jfelchner999 has quit [Remote host closed the connection]
shashank_rs has joined #ruby
Azure has joined #ruby
<shevy>
zorak I think locally only
<shevy>
so that you can find the more important files quickly
momomomomo has quit [Quit: momomomomo]
duggiefresh has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
mrmargolis has joined #ruby
<zorak>
very nice for big projects
senayar has quit [Ping timeout: 245 seconds]
duggiefresh has joined #ruby
yokel has joined #ruby
doodlehaus has joined #ruby
yfeldblu_ has joined #ruby
jfelchner has quit [Ping timeout: 246 seconds]
RaptorJesus has joined #ruby
earth has joined #ruby
benzrf is now known as benzrf|offline
Spami_ has quit [Quit: This computer has gone to sleep]
lessless has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
echevemaster has quit [Read error: Connection reset by peer]
<shevy>
yeah
ItSANgo has quit [Ping timeout: 240 seconds]
<shevy>
but if you have only small projects
<shevy>
it's not so useful
tjr9898 has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<shevy>
AND it requires java
timonv has joined #ruby
<toretore>
and it's a fuken elephant
Spami_ has joined #ruby
danshultz has quit [Remote host closed the connection]
tjr9898 has joined #ruby
danshultz has joined #ruby
benzrf|offline is now known as benzrf
dkamioka has joined #ruby
<Hanmac>
shevy i didnt found an better IDE for C++ AND ruby jet that manages my massive file usage ;P
SilverKey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktosiek has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
<zorak>
and whats about sublime?
markisonfire is now known as `mark
danshultz has joined #ruby
<shevy>
hmm
makara has quit [Ping timeout: 258 seconds]
dkamioka_ has quit [Ping timeout: 252 seconds]
rmorello|1138 is now known as rmorello|888
momomomomo has joined #ruby
Waheedi has quit [Quit: Waheedi]
<Hanmac>
zorak: i dont think sublime can handle this reverences ... and it might be not good enough for my projects
sent-hil has joined #ruby
bambuka has joined #ruby
decoponio has quit [Quit: Leaving...]
<zorak>
but whats are the pros and the diference of sublime??
blackavr has joined #ruby
momomomomo has quit [Client Quit]
evenix has joined #ruby
<benzrf>
zorak: dont use sublime
<benzrf>
it isnt even floss
ascarter has joined #ruby
<benzrf>
use vim
<benzrf>
it will fill u w/ vigor
<benzrf>
or use vigor
<benzrf>
itll fill u with vim
SHyx0rmZ has joined #ruby
etqqkoiflwhb_ has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
dyoko has quit [Ping timeout: 258 seconds]
apeiros has joined #ruby
kevinykchan has joined #ruby
mr_snowf1ake has joined #ruby
makara has joined #ruby
benzrf is now known as benzrf|offline
jaimef has quit [Excess Flood]
codenapper has quit [Quit: codenapper]
ascarter has quit [Client Quit]
<Hanmac>
zorak: like i said, sublime is not mighty enough ... first as i see yet, does it have version control? i need both git and mercury. can it resolve your uses Macros? eclipse can
<apeiros>
Hanmac: sublime follows the unix approach
etqqkoiflwhb_ has joined #ruby
<apeiros>
why build version control in if there's excellent things like git around?
<apeiros>
and there are enough plugins to integrate git into sublime
s2013 has joined #ruby
<apeiros>
macros: meh. but if you need it, you can have it in sublime too.
Celm has quit [Ping timeout: 258 seconds]
<Hanmac>
apeiros: i mean i like it when my IDE has plugin for git/hg
<apeiros>
Hanmac: as said, can have.
<Hanmac>
apeiros: did you already see my C-macros? they come very handy
jason____ has joined #ruby
jason____ has quit [Remote host closed the connection]
<apeiros>
nope
<apeiros>
I doubt I'd understand them anyway :)
jason____ has joined #ruby
toastynerd has joined #ruby
breakingthings has quit []
dtcrshr has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
marcdel has joined #ruby
rmorello|888 is now known as rmorello|need_a_
rmorello|need_a_ is now known as rmorello|needpai
hl has quit [Ping timeout: 255 seconds]
Rylee has quit [Ping timeout: 240 seconds]
Kabaka_ has quit [Ping timeout: 240 seconds]
jaimef has joined #ruby
jlebrech_ has joined #ruby
<Hanmac>
apeiros: you know that the ruby C-API wants function pointers for the define methods? that mean i need to find a way to turn "T GetAttr(); void SetAttr(T);" from the C++ classes into "VALUE getAttr(VALUE); VALUE setAttr(VALUE,VALUE)" functions that i can bind into ruby ... my macros helps me to define this functions
<shevy>
definitely advanced
* shevy
hugs notepad
rmorello|needpai is now known as rmorello|921
jlebrech_ has quit [Max SendQ exceeded]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest9865 has joined #ruby
ktun has joined #ruby
jason____ has quit [Ping timeout: 250 seconds]
toastynerd has quit [Ping timeout: 252 seconds]
emaxi has quit [Remote host closed the connection]
emaxi has joined #ruby
marcdel has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 252 seconds]
combusean has quit [Ping timeout: 258 seconds]
asteros has quit [Quit: asteros]
tjr9898 has quit [Remote host closed the connection]
senayar has joined #ruby
<Hanmac>
shevy this macros does many things for me ... they convert the types from Ruby into C++ and back (enums get extra macros because they are converted into Symbols), they have exception handling (but not all my c++ procjects use exceptions), also some has extra handling to catch bad values (like a GetTextCtrl function might assert() when no TextCtrl exist) ... and on weekends my macro would also wash my car --- if i had one ;P
afex has quit [Ping timeout: 276 seconds]
shashank_rs has quit [Ping timeout: 250 seconds]
Guest9865 has quit [Ping timeout: 258 seconds]
Notte has quit []
sambao21 has joined #ruby
shashank_rs has joined #ruby
benzrf|offline is now known as benzrf
<benzrf>
yo
yfeldblum has joined #ruby
Bumptious has joined #ruby
s2013 has quit [Ping timeout: 245 seconds]
baweaver has quit [Quit: Leaving...]
baweaver has joined #ruby
sigurding has joined #ruby
machete has quit [Ping timeout: 250 seconds]
tjr9898 has joined #ruby
animehti has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Remote host closed the connection]
toastynerd has joined #ruby
machete has joined #ruby
tharindu has quit [Quit: Leaving...]
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
Deejay_ has joined #ruby
tjr9898 has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
simono has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
tjr9898 has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asteros has joined #ruby
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcdel has quit [Client Quit]
senayar has quit [Remote host closed the connection]
ramin has joined #ruby
leslie1 has quit [Ping timeout: 245 seconds]
<lagweezle>
It's weird reading logs of a channel you are in...
senayar has joined #ruby
<ramin>
how so?
zigomir has joined #ruby
shashank_rs has quit [Ping timeout: 276 seconds]
zigomir has quit [Remote host closed the connection]
<lagweezle>
I'm not entirely sure, but it does feel weird to me.
BHensley has quit [Remote host closed the connection]
near77 has joined #ruby
Melpaws has quit [Quit: Leaving.]
Melpaws has joined #ruby
gtc has joined #ruby
Rollabunna has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
dkamioka_ has quit [Ping timeout: 240 seconds]
BHensley has joined #ruby
meatherly has joined #ruby
northfurr has joined #ruby
afreidah1 has joined #ruby
tjr9898_ has joined #ruby
ktosiek has quit [Ping timeout: 258 seconds]
Celm has joined #ruby
marcdel has quit [Ping timeout: 252 seconds]
tjr9898__ has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
meatherly has quit [Ping timeout: 240 seconds]
lewix has joined #ruby
marcdel has joined #ruby
alex88 has quit [Quit: Leaving...]
sdouglas has joined #ruby
tjr9898_ has quit [Ping timeout: 240 seconds]
Celm has quit [Ping timeout: 252 seconds]
benzrf is now known as benzrf|offline
<shevy>
why aren't there more games written in ruby?
Xeago has quit [Remote host closed the connection]
<baweaver>
GUI selection kinda sucks
SCommette has quit [Quit: SCommette]
benzrf|offline is now known as benzrf
dorei has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
tjr9898__ has quit [Ping timeout: 240 seconds]
<shevy>
hmm
<shevy>
but we would have GUIs no? gosu... perhaps rubygame/SDL bindings...
maletor has joined #ruby
<IceDragon>
shevy: the frameworks are under the table, Python stole that department from us
glide has joined #ruby
tjr9898 has joined #ruby
sambao21 has joined #ruby
CpuID has quit [Quit: Leaving]
<banisterfiend>
IceDragon what framework does python have?
zchrykng-work has joined #ruby
<davidcelis>
Don't suppose anybody here has some good resources on patterns for constructing a gem ecosystem? e.g. how rspec has `rspec-core` and then provides more gems to build on that core functionality
<IceDragon>
Not sure of the specifics, but their pyGame is always recommended first to new developers
<benzrf>
blah
<benzrf>
pygame is just basic sdl bindings
<benzrf>
ive used it & i prefer gosu
<IceDragon>
Exactly, but somehow python manages to munch up the new devs ;_;
<shevy>
:(
<benzrf>
its because python is a good language
<benzrf>
and it is less messy than ruby
<benzrf>
and has fewer concepts bouncing around at the same time
duggiefresh has quit [Remote host closed the connection]
* IceDragon
throws shevy with a bomb @ benzrf
<benzrf>
i think u mean '>> shevy * benzrf'
ktun has joined #ruby
ktun has quit [Max SendQ exceeded]
<IceDragon>
O: INCEPTION
<shevy>
pls don't use me with any calculations connected to benzrf
<baweaver>
Python is also pedantic with style guides.
duggiefresh has joined #ruby
DrShoggoth has joined #ruby
<benzrf>
shevy's array
<shevy>
baweaver perhaps that is a good thing
<shevy>
if python attracts more people that way
<banisterfiend>
IceDragon pygame is a joke, ruby's gosu is a lot better :)
<IceDragon>
I thought he was gonna saw Windows...*
cocotton has quit [Remote host closed the connection]
marcdel has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
<IceDragon>
I think the problem is, we don't have ruby pushers :O
northfurr has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
ktun has joined #ruby
<IceDragon>
Like we don't go around shoving ruby down people's throat or something like that
<IceDragon>
"USE RUBY, USE IT NOAH"
<benzrf>
wenk wenk
<benzrf>
o god i gotta stop
<apeiros>
IceDragon: speak for yourself!
* apeiros
does that :D
zigomir has joined #ruby
dorei has joined #ruby
mnms_ has quit [Ping timeout: 240 seconds]
dorei_ has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
northfurr has joined #ruby
<IceDragon>
I DO SHOVE RUBY DOWN PEOPLES THROAT!!!
dorei_ has quit [Client Quit]
<benzrf>
banisterfiend: u watchin
* IceDragon
flexes
ktun has quit [Client Quit]
Nukepuppy has quit [Ping timeout: 250 seconds]
lewix has quit [Read error: Connection reset by peer]
gancl has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb_ has quit [Ping timeout: 276 seconds]
andrewlio has joined #ruby
near77 has quit [Quit: Page closed]
afreidah1 has quit [Ping timeout: 240 seconds]
asteros has quit [Ping timeout: 252 seconds]
garndt has quit [Quit: Connection closed for inactivity]
etqqkoiflwhb_ has joined #ruby
goleldar has joined #ruby
<banisterfiend>
benzrf github makes your tabs a pain to read
<goleldar>
/msg NickServ identify 11746
<bricker>
oof
cgore has quit [Ping timeout: 250 seconds]
<apeiros>
whatcha wanna bet he doesn't change his pw?
mnms_ has joined #ruby
* IceDragon
is tempted to ghost
pablovilas has quit [Quit: Leaving]
donnoc has quit [Ping timeout: 240 seconds]
sent-hil has quit [Quit: Connection closed for inactivity]
sambao21 has joined #ruby
<goleldar>
oops changed
dkamioka has quit [Remote host closed the connection]
maximski has quit []
rankine has joined #ruby
claymore has quit [Quit: Leaving]
Xeago has joined #ruby
SHyx0rmZ has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
kenneth_ has joined #ruby
rm__ has joined #ruby
SHyx0rmZ has joined #ruby
aspires has joined #ruby
<kenneth_>
it seems like there should be an easy way to do this in ruby but i can't figure it out. any ideas? i have a regex, and want to find all the matches in a string; and get their ranges
mary5030 has quit [Remote host closed the connection]
<centrx>
What are the "ranges" of matches in a string?
marcdel has quit [Ping timeout: 252 seconds]
benzrf is now known as benzrf|offline
<IceDragon>
like ruby "Range" ?
farn has quit [Quit: farn]
marcdel has joined #ruby
hubrishamster has joined #ruby
deco has joined #ruby
farn has joined #ruby
Trynemjoel has quit [Quit: Trynemjoel]
hubrishamster has quit [Quit: #archlinux]
pwh has quit []
Nukepuppy has joined #ruby
BHensley has quit [Remote host closed the connection]
<apeiros>
"Like all truly great IT projects, I created a lot of gems and abandoned them mid-work"
<shevy>
lol apeiros
<combusean>
how would one have a secret base shaped like a skull with building permits, public zoning information, and google maps revealing it all?
<shevy>
that's actually kinda true, for like 70% of my gems
<shevy>
or projects like butler! *wink*
<combusean>
the architecture and design fees would be through the roof
<shevy>
do google maps really cover 100% of the world yet?
BHensley has joined #ruby
<LiquidInsect>
combusean: well, first you need your own personal island
<LiquidInsect>
you can't take over the world if you can't take over an island
<combusean>
great, now you have to ship construction workers in and provide onsite housing
lemur has joined #ruby
<combusean>
expenses, expenses, expenses.
<LiquidInsect>
uh
<LiquidInsect>
no, you invade an INHABITED island
klaut has quit [Remote host closed the connection]
Melpaws has quit [Quit: Leaving.]
<shvelo>
shevy: you mean I should use '_'?
Hobogrammer has joined #ruby
<combusean>
ah, and enslave them
<LiquidInsect>
right. If you can't enslave an island...
<combusean>
what if they don't have concrete and carpentry skills?
chrisramon has quit [Quit: chrisramon]
<shevy>
shvelo I prefer _ over - in requires, yes
<combusean>
i need electricians and plumbers
<LiquidInsect>
anyway, seriously, SOME of those projects have to be useful
<shevy>
shvelo no idea if there is a convention in ruby though
cgore has quit [Ping timeout: 258 seconds]
iamjarvo has joined #ruby
baweaver has quit [Ping timeout: 276 seconds]
<LiquidInsect>
and you should list those, hell give your github account if it has code in it that doesn't totally embarass you
meatherly has quit [Remote host closed the connection]
cgore has joined #ruby
meatherly has joined #ruby
marcdel has joined #ruby
<shvelo>
shevy: looked it up, yeah '_' is more common
eynj has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
<shvelo>
I mostly use Ruby for scripting and automation, never actually built a web app in it
<shvelo>
Ruby is the best thing for scripting
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Nukepuppy has joined #ruby
<shevy>
yeah
<shevy>
how did you come to ruby shvelo?
meatherly has quit [Ping timeout: 240 seconds]
<shevy>
I myself use ruby for both scripting but also web-related stuff; I used perl for like a year then php for almost 3 years, then wanted a better language than php
<shevy>
so it was python vs. ruby
<shvelo>
I don't remember, I tried tryruby once and liked it
<shevy>
I picked ruby after reading matz interview of 2003
<shvelo>
and realized that PHP was pig crap
<shevy>
shvelo I see
<shevy>
yeah php is so awful
<shvelo>
I was a PHP developer for a year or so
<mr_snowf1ake>
anyone recommend a good bluetooth library for ruby?
nateberkopec has quit [Quit: Leaving...]
<shevy>
php actually makes javascript a saner language
<shevy>
right centrx?
BHensley has quit [Remote host closed the connection]
<mr_snowf1ake>
shvelo: a year of php...? ew :P
<bricker>
so much javascript hatred
<LiquidInsect>
wouldn't hate it if it wasn't so awful
<shvelo>
Javascript is awesome for async stuff, I use it for websockets
lmickh has quit [Remote host closed the connection]
<slowthought>
yeah isn't js kind necessary for async?
<apeiros>
async, because: yolo!
endash_ has joined #ruby
<LiquidInsect>
if you're talking about from a web browser, yes
<apeiros>
other way round - due to singlethreadedness, async is kinda necessary in js
<LiquidInsect>
if you mean, like, node.js... no
<shevy>
bricker javascript is semi-ok
<shevy>
I don't like it much at all but I also don't hate or dislike it that much either
<mr_snowf1ake>
i think the main issue with js was just it's original use and evolution. especially since so much of the js you see on the internet is done by designers...
<shevy>
I'd rather like to use ruby for the www though
<LiquidInsect>
"1" == 1 ...sigh...
<bricker>
shevy: I love it, it has some quirks, but so does every language. :/ I don't feel like having a JS flamewar right now though
testcore has quit [Quit: BitchX has bite! (Just ask Mike Tyson!)]
george2 has quit [Remote host closed the connection]
<shvelo>
[] + {} = wat
Melpaws has joined #ruby
<apeiros>
alternatives are non-blocking+polling (yay!) or blocking-all-the-shit (awesomeyay!)
<shevy>
bricker :D
<shevy>
mr_snowf1ake javascript evolution truly was weird
<shevy>
I remember I read about javascript in tutorials back like in 1998 or something first
<shevy>
then a couple years later, the language was no longer recognizable to me
<shevy>
just look at how you use javascript in like jquery? $_()->click or whatever... I never saw that before in those javasceript tutorials
<shvelo>
also it was created by a bigot
<shevy>
*javascript
fuhgeddaboudit has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
the lolwat about javascript actually was cool
<shevy>
the video
<shevy>
good for some cheap laughs
<mr_snowf1ake>
haha i'll be sure to check that out
<shvelo>
NaNNaNNaNNaNNaN Batman!
yfeldblu_ has quit [Remote host closed the connection]
<shevy>
thought it was like 5 years old or something :P
<mr_snowf1ake>
shevy: thanks :)
yfeldblum has joined #ruby
<shevy>
"let's talk about ruby" <big laughter in the audience>
f0ster`_ is now known as f0ster
f0ster has quit [Changing host]
f0ster has joined #ruby
<shvelo>
<shevy> only two years old
<shvelo>
<shevy> thought it was like 5 years old or something :P
<shvelo>
<mr_snowf1ake> shevy: thanks :)
<shvelo>
* yfeldblum (~yfeldblum@mpk-nat-4.thefacebook.com) has joined #ruby
<shvelo>
<shevy> "let's talk about ruby" <bi
<shvelo>
shit
lw has joined #ruby
<shvelo>
why does my IRC client copy stuff on it's own
<shevy>
hehehe
<shevy>
shvelo what irc client do you use?
<shvelo>
Xchat
andy___ has quit [Read error: Connection reset by peer]
andy__ has joined #ruby
<shevy>
I do too!
<shevy>
we are truly brothers
<shevy>
though I actually don't have the problem of mispasting in xchat
<shevy>
I also dont see joins or leaves or times
<shvelo>
xchat is weird
slowthought has quit [Quit: leaving]
davy has joined #ruby
<shevy>
I tried to use irssi but I always mispasted
pwh has joined #ruby
tcurdt has joined #ruby
<shevy>
shvelo what are you doing with ruby though? I mean like, what was the last larger script you wrote, what problem did you try to solve
morenoh152 has joined #ruby
Fretta has quit [Quit: Fretta]
Nukepuppy has quit [Ping timeout: 245 seconds]
VTLob has quit [Quit: VTLob]
snath has quit [Ping timeout: 250 seconds]
tjr9898 has joined #ruby
<shvelo>
shevy: last one I wrote was to process a large XML file and produce SQL
earth has quit [Quit: earth]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
<tcurdt>
I just did a fresh ruby-build 2.1.1 ~/.rubies/ruby-2.1.1 and now my first gem path points to /Library/Ruby/Gems/2.0.0 which of course make my gem installs fail as a normal user
<shevy>
shvelo yeah, it looks similar in style how perl is/was used for this kind of tasks
dangerousdave has quit [Ping timeout: 240 seconds]
<shevy>
the people at work all used perl; I was the only ruby user out there
<shvelo>
shevy: and the translit.rb in that folder transliterates Georgian to Latin script
<shvelo>
I don't know perl
iamjarvo has quit [Ping timeout: 240 seconds]
<shevy>
perl and ruby are kind of similar in spirit. perl is harder to read though, lot of $ sigils and weird things like <>
<shevy>
but if you remove the line noise, it looks a lot like ruby
<shvelo>
so perl is where PHP got its $$$
<tcurdt>
ah - that was the system ruby. (doh!)
<shevy>
print "$bla" or die;
<tcurdt>
still - a little odd
<dorei>
perl is uglyness, ruby is beauty
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
MatthewsFace has joined #ruby
<shvelo>
$_GET['rich'] or die('tryin')
<mr_snowf1ake>
shevy: just watched 'wat'. thank you for bringing that into my life.
mehlah has quit [Quit: Leaving...]
earth has quit [Client Quit]
<shvelo>
gonna rewatch
<shevy>
shvelo hehe not sure, I think $ is popular for variables... perl failed to conquer the web though... one thing is cool though; perl has webmin, ruby has no webmin-like standalone management system like t hat as far as I know... perhaps one in rails, but not one without rails I bet
<combusean>
webmin? systems management over the web?
<combusean>
is this like 2002? :P
<shevy>
combusean I think the idea of webmin is cool
<combusean>
it doesn't scale.
<shevy>
make no separation between commandline + web
<combusean>
can you detach tabs and reattach them in iTerm?
<DouweM>
I don't use a transparent bg either, but Terminal definitely supports that
jason_ has quit [Remote host closed the connection]
rainmanjam has quit [Remote host closed the connection]
kevinykchan has joined #ruby
<combusean>
terminal.app does not support that, and it's annoying
<bricker>
combusean: eh? You can totally detach a tab
<combusean>
and reattach it to the same window?
<bricker>
combusean: ohhh, no
<combusean>
thus my mention of reattach :P
kevinykchan has quit [Client Quit]
<DouweM>
combusean: Terminal does kind of support that!
<combusean>
it's not a kind of, it's a yes or no
toastynerd has quit [Remote host closed the connection]
<bricker>
combusean: you can try Window > Merge All Windows, not exactly what you want but close
kevinykchan has joined #ruby
<DouweM>
combusean: you just need to set the tabbar to always show
baroquebobcat has quit [Ping timeout: 240 seconds]
<bricker>
DouweM: oohhh good call
<DouweM>
combusean: so that's a "yes"
greenarrow has quit [Quit: 500]
pel_daniel has left #ruby [#ruby]
glide has quit [Ping timeout: 258 seconds]
<combusean>
oh
<combusean>
how about that
<DouweM>
By "kind of" I meant you can reattach a tab when you make sure the detached window has multiple tabs by adding a dummy tab, then I saw the Show Tabbar option
<DouweM>
So, you're welcome combusean :p
jcs222 has quit [Quit: leaving]
* combusean
hugs DouweM
<combusean>
thank you :)
endash_ has quit [Quit: endash_]
wigg has quit [Read error: Connection reset by peer]
<DouweM>
shvelo: so, how about those cool iTerm features?
<combusean>
ikr
razrunelord has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
matchaw has joined #ruby
asteros has quit [Ping timeout: 252 seconds]
einarj has quit [Remote host closed the connection]
pencilcheck has quit [Remote host closed the connection]
shashank_rs has quit [Read error: Connection reset by peer]
cgore has quit [Ping timeout: 276 seconds]
<combusean>
lasdhjfksfladjsf
<combusean>
terminal dies again
<combusean>
wth
jenskarlsen has quit [Quit: jenskarlsen]
havenwood has joined #ruby
codenapper has joined #ruby
<combusean>
and again
razrunelord has quit [Read error: Connection reset by peer]
<DouweM>
anything in the crashlog?
matchaw_ has joined #ruby
<combusean>
no, its just freezing when connected to this host where my work is
razrunelord has joined #ruby
<DouweM>
sure it's terminal and not whatever it's running?
michaeldeol has joined #ruby
rmorello|921 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<combusean>
it dies when i type in bash randomly.
<combusean>
or irb
matchaw has quit [Ping timeout: 252 seconds]
<combusean>
other terms are fine
jack_rabbit has joined #ruby
camilasan has joined #ruby
kayloos has joined #ruby
tcurdt has quit [Quit: bye bye]
lw has joined #ruby
BHensley has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
northfurr has quit [Quit: northfurr]
snath has joined #ruby
SCommette has joined #ruby
SCommette has quit [Client Quit]
Geniack has quit [Disconnected by services]
maletor has joined #ruby
Geniack_ has joined #ruby
kayloos has quit [Ping timeout: 252 seconds]
vpretzel_gone has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
djbender has joined #ruby
ukd1 has quit [Quit: Leaving...]
mr_snowf1ake has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
wallerdev has joined #ruby
Seldan_ has joined #ruby
Melpaws has quit [Ping timeout: 245 seconds]
Melpaws1 has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
Wolland has quit [Remote host closed the connection]
andy__ has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 252 seconds]
jgoss has joined #ruby
emaxi has joined #ruby
Seldan has quit [Ping timeout: 250 seconds]
mg^^ has quit [Quit: Leaving]
alexju has joined #ruby
apeiros has quit [Remote host closed the connection]
andy__ has quit [Remote host closed the connection]
apeiros has joined #ruby
davy has quit [Remote host closed the connection]
razrunelord has quit [Read error: Connection reset by peer]
<havenwood>
FRIDAY \o/
razrunelord has joined #ruby
Fire-Dragon-DoL has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lewix has quit [Remote host closed the connection]
jhass is now known as jhass|off
jason_ has joined #ruby
lkba has joined #ruby
razrunelord has quit [Read error: Connection reset by peer]
razrunelord has joined #ruby
BHensley has quit [Remote host closed the connection]
charliesome has joined #ruby
toastynerd has joined #ruby
momomomomo has quit [Quit: momomomomo]
jenrzzz has quit [Quit: The day I give up my dreams is the day I have strategic grill locations.]
bricker has quit [Quit: leaving]
rylev has quit [Remote host closed the connection]
jason_ has quit [Ping timeout: 252 seconds]
lw has quit [Quit: s]
toastynerd has quit [Ping timeout: 250 seconds]
Wolland has joined #ruby
mary5030 has joined #ruby
<kenneth_>
this is probably the messiest ruby code i have written in… forever