<speckle>
I thought the nice thing about ruby compared to python is how easy it is to change versions without mucking up your Linux OS
<AntelopeSalad>
bnagy: the problem is i'm addicted to awesome features
<postmodern>
centrx, needs 100% more CouchDB
duggiefresh has quit [Remote host closed the connection]
<AntelopeSalad>
who wants to use some 2 year old build of postgres or nginx
<AntelopeSalad>
not me!
cburyta has quit [Remote host closed the connection]
rubyracer has quit [Quit: Konversation terminated!]
axsuul has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
mojjojo has quit [Quit: mojjojo]
Hanmac has joined #ruby
jrist has joined #ruby
forced_request has joined #ruby
<centrx>
AntelopeSalad, Why not upgrade the distribution
s2013 has quit [Ping timeout: 265 seconds]
<AntelopeSalad>
centrx: because almost every cookbook i tried didn't work with ubuntu 13.x
predator217 has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
<AntelopeSalad>
i went 0/3 and then was like forget this craziness, LTS gogo
<AntelopeSalad>
and 2 hours later i had a fully working server
nanoyak has quit [Ping timeout: 265 seconds]
pdtpatrick has quit [Read error: Connection reset by peer]
rainmanjam has joined #ruby
pdtpatrick has joined #ruby
mary5030 has joined #ruby
hrs has joined #ruby
<AntelopeSalad>
i'm actually thinking about trying that brightbox ppa, it has ruby 2.1
<AntelopeSalad>
i'm not sure i want to trust a random ppa tho
cj3kim has quit [Ping timeout: 265 seconds]
miah has quit [Ping timeout: 252 seconds]
mksm_ has quit [Ping timeout: 252 seconds]
predator117 has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
hrs has quit [Client Quit]
Afal_ has quit [Ping timeout: 252 seconds]
echevemaster has joined #ruby
asteros has joined #ruby
rootshift has quit [Read error: Connection reset by peer]
<bnagy>
as opposed to installing binary rubies via rvm
miah has joined #ruby
<Xuisce>
woot
Afal has joined #ruby
<pyk>
i'm on ubuntu 12.04 with rbenv + ruby build plugin, ruby 2.1 work flawslessly. i think 3rd ppa is not needed
itadder has quit [Remote host closed the connection]
IceDragon has joined #ruby
<AntelopeSalad>
bnagy: i trust rvm enough that it won't just disappear out of the blue
<AntelopeSalad>
and i'm definitely not at a scale where it -really- matters, if i did i would be shipping premade images
mary5030 has quit [Ping timeout: 248 seconds]
axsuul has joined #ruby
Megtastique has quit []
hrs has joined #ruby
mksm has joined #ruby
maetthew has quit [Ping timeout: 252 seconds]
zachallett has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
snath has quit [Ping timeout: 246 seconds]
pyk has left #ruby [#ruby]
itadder has joined #ruby
<itadder>
hi I am back
bthesorceror has joined #ruby
araujo has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
kevind has quit [Quit: kevind]
hrs has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
nZac has joined #ruby
nateberkopec has quit [Quit: Leaving...]
clov3r has quit [Remote host closed the connection]
unixpro1970 has joined #ruby
clov3r has joined #ruby
mansi has joined #ruby
<bricker>
thank god.
kenneth has joined #ruby
rainmanjam has quit [Remote host closed the connection]
rainmanjam has joined #ruby
maetthew has joined #ruby
pen has joined #ruby
dik_dak has quit [Quit: Leaving]
mikepack_ has joined #ruby
Megtastique has joined #ruby
<centrx>
Is he back yet?
clov3r has quit [Ping timeout: 250 seconds]
<bricker>
Without any third-party tools (RVM, ruby-install, etc.), how are you meant to upgrade ruby on a production server? Because afaik that changes some paths, and some installed gems will go missing.
rainmanj_ has joined #ruby
rainmanjam has quit [Read error: Connection reset by peer]
mikepack has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Ping timeout: 250 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
<RubyTitmouse>
AntelopeSalad: a 2 yo build of a db is better than a recent build unless you need the new features
jlast has quit [Ping timeout: 260 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
nZac has quit [Ping timeout: 252 seconds]
Megtastique has quit [Client Quit]
freezey has quit [Remote host closed the connection]
clov3r has joined #ruby
justinxreese has quit [Ping timeout: 246 seconds]
<RubyTitmouse>
everything on a server, the older it is the better, if it has the features you need. It doesn't mold, it actually improves by not changing; that much more time without security holes being found
mikepack_ has quit [Ping timeout: 260 seconds]
b00stfr3ak has quit [Ping timeout: 245 seconds]
TryX has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Sid05 has joined #ruby
lkba has joined #ruby
TryX has joined #ruby
<AntelopeSalad>
RubyTitmouse: there's been a lot of recent hstore/json enhancements in postgres and will only get better in 9.4
TryX has quit [Remote host closed the connection]
TryX has joined #ruby
justinxreese has joined #ruby
tala12 has joined #ruby
clov3r has quit [Remote host closed the connection]
MattStratton has joined #ruby
clov3r has joined #ruby
<RubyTitmouse>
hstore is probably not nearly as useful as people assume
mercwithamouth has joined #ruby
clov3r has quit [Remote host closed the connection]
clov3r has joined #ruby
jlast has joined #ruby
e^0 has quit [Quit: WeeChat 0.4.2]
x77686d has joined #ruby
pwh has joined #ruby
<speckle>
RubyTitmouse, I guess that's only up to things being EOL'd. Would you consider CentOS better than Debian since it gets EOL'd later, and thus is older without being EOL'd?
Davey has joined #ruby
<RubyTitmouse>
I am running a recent build though, for the writable views. Thankfully they repos for most distros, so you can use an official upstream build
jonah_k has quit [Remote host closed the connection]
nomadic has quit [Ping timeout: 245 seconds]
lethjakman has joined #ruby
Davey has quit [Remote host closed the connection]
clov3r has quit [Remote host closed the connection]
<RubyTitmouse>
speckle: CentOS is better than debian because debian mangles upstream packaging, for example Ruby defines the stdlib as being part of the language, but then debian claims to know better than Matz and slices it up and gives a literally broken Ruby if you only install ruby
<lethjakman>
is there an easy way to do that?
<bricker>
Why does 'ruby-install' not show 2.1.0 as the latest stable version?
<speckle>
eek, it does that?!
e^0 has joined #ruby
<RubyTitmouse>
but as a sysadmin, yes, if you don't update it is better, regardless of EOL
<RubyTitmouse>
when people talk about "stable" on a server, they're talking about if it changes, not if crashes :)
<lethjakman>
I have this
<lethjakman>
but when I try to call extra it gets ignored
tala12 has quit []
tjbiddle has joined #ruby
IceyEC has joined #ruby
x77686d has quit [Client Quit]
<speckle>
um, regardless of EOL?? I thought that EOL means fewer people care about patching security holes (See: Java 6)
<speckle>
nice to know RedHat plays nicer with Ruby than Debian
<speckle>
but one thing I like about Ruby over Python is you can install random versions with rvm without kluding the OS, though I guess I said that a while back..
axsuul has quit [Ping timeout: 248 seconds]
<AntelopeSalad>
lethjakman: what if you add < Base to the class definition?
<speckle>
*kludging
<bricker>
oh my homebrew package was out of date
<lethjakman>
AntelopeSalad: still undefined
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stryek has joined #ruby
clov3r has quit [Ping timeout: 248 seconds]
rainmanj_ has quit [Remote host closed the connection]
<bricker>
lethjakman: you should require 'faker/name' at the top of your file, first of all
nomadic has joined #ruby
<lethjakman>
bricker: ok
<lethjakman>
good to know, I added that
IceyEC has quit [Client Quit]
habanany1 has quit [Ping timeout: 252 seconds]
<bricker>
lethjakman: that might fix your problem
<bricker>
If not, I'd have to see how you're trying to use it
<AntelopeSalad>
speckle: did you never use virtualenv?
<GinoMan>
RubyTitmouse: better yet, use RVM. Don't waste time with the OS packaging system
joelbrewer has quit [Ping timeout: 245 seconds]
<speckle>
I looked at virtualenv and it was really confusing, to the point that it seemingly defeats the point of an "easy-to-use" language like Python. I'd rather OSes not package Python libraries at all!
<speckle>
RVM was pretty clear, on the other hand
<AntelopeSalad>
speckle: if you try again make sure you get the virtualenv wrapper, then it becomes really easy to use
<AntelopeSalad>
mkvirtualenv foo , done
<AntelopeSalad>
then 'workon foo' to use it , or 'deactivate' to drop back to the system
<speckle>
hmm, that would be as easy as RVM? okay, I'll give it another try
<itadder>
what is RVM
<itadder>
ruby virtual m achine
<AntelopeSalad>
it puts all of the virtualenvs in ~/.virtualenvs too
<centrx>
itadder, With my patent-pending techniques!
aep_ has joined #ruby
<Nowaker>
is there any rdoc/whatever syntax to indicate method's return type?
<itadder>
is homebrew popular with ruby community
huttan has joined #ruby
elektronaut has joined #ruby
<bricker>
homebrew is popular with the os x community
<itadder>
oh
<itadder>
how do you have your mac set up for programing, what sits in your dock?
tresor has joined #ruby
<GinoMan>
I'm going through the "Beginning Ruby" book and it uses 1.9, so with RVM I have a config file in the directory where I'm putting my exercise code.... in that directory, it runs 1.9, everywhere else it runs 2.1
<GinoMan>
That's why you should use RVM.
<GinoMan>
Itadder. Also do you have a google drive?
<lethjakman>
bricker: I'm just calling Faker::Name.extra
parduse has quit [Ping timeout: 245 seconds]
<itadder>
oh
rainmanjam has quit [Ping timeout: 245 seconds]
<itadder>
I use dropbox
<GinoMan>
oh nevermind... it will be easier to send you the link.
parduse has joined #ruby
<RubyTitmouse>
GinoMan: Sure, for Ruby that is a good way to go. These days with bundler since we don't need gemsets, rbenv is a good option as it doesn't ask to be updated all the time like rvm has in the past.
<dachi>
nano, vi, emacs ? what do ruby people use? I don't really care, was using nano for a long time, just interested what do you use for cli edit?
sambao21 has quit [Quit: Computer has gone to sleep.]
VTLob has quit [Quit: VTLob]
unixpro1970 has quit [Quit: unixpro1970 has off IRC]
habanany has joined #ruby
<RubyTitmouse>
most Ruby people use emacs, vim, and whatever that platform-locked mac editor is called
<GinoMan>
dachi. not to start a religious war but I like vim. but it's up to you. some people like emacs, others nano, and others something else.
lmickh has quit [Remote host closed the connection]
<GinoMan>
RubyTitmouse: Mac comes with vim.
<lethjakman>
dachi: a large portion of people use sublime. I like vim a lot more though.
<bricker>
lethjakman: I need more context - how are you using it, where is that code, etc.
tylersmith has joined #ruby
<dachi>
at home I use rmate actually, but when at other place nano for quick edit. So there's no preference for ruby guys right? I'd become a companion in this choice
<postmodern>
RubyTitmouse, GinoMan, also there's chruby, it's ~100 LoC and rarely ever changes
<RubyTitmouse>
GinoMan: just convince mac people to hate platform lock and they'll probably use it ;)
<GinoMan>
itadder: download the koans, unzip them, and then rake the directory
<lethjakman>
bricker: the code is located in /lib/faker/name.rb and I'm trying to use it in pry with Faker::Name.extra
<lethjakman>
I restart pry every time
<RubyTitmouse>
I heard good things about chruby too
<RubyTitmouse>
for emacs make sure to install "rails-minor-mode" even if you're not using rails, that has the best Ruby feature package. Avoid rinari
rainmanjam has joined #ruby
asteros_ has joined #ruby
itadder_ has joined #ruby
<itadder_>
back
<itadder_>
most use vim
itadder has quit [Ping timeout: 250 seconds]
<itadder_>
dachi:
<lethjakman>
also I added my application.rb with my autoload in it...
<bricker>
lethjakman: then perhaps you're not requiring the file anywhere
robustus has quit [Ping timeout: 252 seconds]
<lethjakman>
bricker: shouldnt it be auto loaded?
JBreit has quit [Read error: Connection reset by peer]
<bricker>
lethjakman: By default I don't think it is, I always forget
mikepack has joined #ruby
axsuul has joined #ruby
<dachi>
itadder_ thanks
sailias has quit [Ping timeout: 248 seconds]
robustus has joined #ruby
cburyta has joined #ruby
<bricker>
what the hell
<bricker>
I have ruby 2.1.0 install but chruby won't load it
Sleepee has joined #ruby
<bricker>
it keeps loading 2.1.0dev
<bricker>
installed*
baroquebobcat has quit [Quit: baroquebobcat]
<postmodern>
bricker, it picks the last lexical match
<postmodern>
bricker, rm -rf 2.1.0dev
<bricker>
postmodern: ah-hah, thanks!
mattp_ has quit [Read error: Connection reset by peer]
<lethjakman>
is there a better way to do this in their gem?
someword has quit [Ping timeout: 272 seconds]
IceyEC has joined #ruby
<lethjakman>
maybe a way to auto l oad a directory if it exists inside of rails?
mikepack has quit [Ping timeout: 252 seconds]
<RubyTitmouse>
lethjakman: monkeys don't autoload, only classes/modules that aren't loaded can autoload
<bricker>
lethjakman: either put the monkeypatch into an initializer, or if you want to be a good little OOP programmer, make your own class which inherits from Faker::Name
Guest5449 has quit [Ping timeout: 245 seconds]
rainmanjam has quit [Remote host closed the connection]
tresor has quit []
<RubyTitmouse>
yeah, for rails I make an initializer called monkey.rb where I put all that stuff
rainmanjam has joined #ruby
cburyta has quit [Ping timeout: 250 seconds]
<RubyTitmouse>
I guess it is "supposed" to go in the application.rb initializer though
JBreit has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lethjakman>
hmmmmm.....
<lethjakman>
RubyTitmouse: so I need to require this or something in order to have it? my application.rb solution wont' work?
werdnativ has quit [Quit: werdnativ]
starfox21 has joined #ruby
<lethjakman>
how do I check if this is even loaded
Shidash has quit [Ping timeout: 252 seconds]
jaimef has quit [Excess Flood]
tylersmith has joined #ruby
jaimef has joined #ruby
tjr9898 has joined #ruby
danshultz has joined #ruby
<RubyTitmouse>
lethjakman: you should just put it in like lib/faker_extra_monkey.rb and require that, unless you want to go full-hog and make it into a gem like faker_extra. Either way, just have the gem in the Gemfile, and then you can safely require 'faker_extra' or whatever in the initializer
enape_101 has quit [Ping timeout: 265 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyTitmouse>
Making a gem has the advantage of being able to skip the initializer and have them next to each other in the Gemfile
freezey has joined #ruby
Sleepee has quit [Quit: Leaving]
rainmanjam has quit [Ping timeout: 260 seconds]
fgo has quit [Remote host closed the connection]
<lethjakman>
hmmm so it is the require
pierre1__ has joined #ruby
<lethjakman>
when I run the require manually my method works
<RubyTitmouse>
I'm pro-monkey, but don't expect them to be photogenic at all times ;)
necrotic_ has quit [Remote host closed the connection]
<RubyTitmouse>
don't ask monkeys to autoload, it is scary
<lethjakman>
hmmmm...is there something I could include in the Base class that would check for the class name then check in /app/faker/modulename.rb and add those extra methods?
<RubyTitmouse>
lethjakman: If you're that worried about it, you should make it a gem so bundler can handle that. If you're not going to go that far, just comment both sides (Gemfile and initializer)
freezey has quit [Ping timeout: 265 seconds]
<lethjakman>
RubyTitmouse: I'm just curious how that require would work...cause I want it to get loaded after their class.
Shidash has joined #ruby
<RubyTitmouse>
lethjakman: initializers happen after the Gemfile gems get loaded
<lethjakman>
oh. so I'd put it in the initializer? but how would I add all the methods in that file to a class?
reset has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<RubyTitmouse>
You just require in the intializer, and when the require runs is when it reopens the class and adds the methods
dx7 has quit [Remote host closed the connection]
<lethjakman>
huh...lemme try that
<Paradox>
hmm, yard doesn't seem to like keyword params
<Paradox>
it spits lots of warnings
dx7 has joined #ruby
<Paradox>
any suggestions?
top4o has joined #ruby
habanany1 has joined #ruby
wallerdev has quit [Quit: wallerdev]
maletor has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
LLKCKfan has quit [Read error: Connection reset by peer]
<Paradox>
gets lots of @param tag has unknown parameter
habanany has quit [Ping timeout: 246 seconds]
<lethjakman>
`wait initialize needs a new to run it doesn't it?
gnephiak has joined #ruby
adamholt has quit [Ping timeout: 245 seconds]
ner0x has joined #ruby
fgo has joined #ruby
nateberkopec has joined #ruby
descala has quit [Ping timeout: 245 seconds]
DarthGandalf has quit [Ping timeout: 245 seconds]
aob has quit [Ping timeout: 245 seconds]
LLKCKfan has joined #ruby
sebastianb has quit [Ping timeout: 264 seconds]
Spitfire has quit [Ping timeout: 264 seconds]
Chepra has quit [Ping timeout: 264 seconds]
dx7 has quit [Ping timeout: 260 seconds]
adamholt has joined #ruby
nichtdiebohne has quit [Quit: Leaving...]
descala has joined #ruby
aob has joined #ruby
tjr9898 has quit [Remote host closed the connection]
sebastianb has joined #ruby
tobiasvl has quit [Ping timeout: 252 seconds]
tjr9898 has joined #ruby
slowcon has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
ixx has quit [Read error: Operation timed out]
filp has joined #ruby
Ninjex has quit [Quit: Changing server]
frx has quit [Ping timeout: 246 seconds]
araujo has quit [Read error: Connection reset by peer]
Spitfire has joined #ruby
mr_red has quit [Ping timeout: 252 seconds]
frx has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
jfoy has quit [Quit: jfoy]
mr_red has joined #ruby
ixx has joined #ruby
aspires has quit []
ixx is now known as Guest44594
DarthGandalf has joined #ruby
mattp_ has joined #ruby
lfox has joined #ruby
tauebel1 has joined #ruby
nszceta has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 245 seconds]
danijoo has quit [Read error: Connection reset by peer]
bricker_ has quit [Ping timeout: 260 seconds]
tauebel1 has left #ruby [#ruby]
rainmanjam has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
danijoo has joined #ruby
tvw has quit []
brennanMKE has quit [Read error: Connection reset by peer]
brennanM_ has joined #ruby
duggiefresh has joined #ruby
mrsolo has joined #ruby
descala has quit [Ping timeout: 250 seconds]
jle` has quit [Ping timeout: 250 seconds]
Guest45876 has quit [Remote host closed the connection]
descala has joined #ruby
kenneth has joined #ruby
rm__ has joined #ruby
ixti has joined #ruby
mlpinit has joined #ruby
fgo has quit [Remote host closed the connection]
jacobat has quit [Ping timeout: 264 seconds]
justinxreese has quit [Ping timeout: 246 seconds]
mlpinit has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
mrsolo has left #ruby [#ruby]
mlpinit has joined #ruby
danshultz has quit [Remote host closed the connection]
rm___ has joined #ruby
baroquebobcat has joined #ruby
mlpinit_ has joined #ruby
rm___ is now known as Guest71512
filp has left #ruby [#ruby]
justinxreese has joined #ruby
SteveBen_ has joined #ruby
pwh has quit []
Hanmac has joined #ruby
xue has joined #ruby
SteveBenner09 has quit [Read error: Connection reset by peer]
i_s has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 252 seconds]
rm__ has quit [Ping timeout: 248 seconds]
i_s has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
Es0teric has quit [Read error: Operation timed out]
Hobogrammer has joined #ruby
troyready has quit [Ping timeout: 250 seconds]
cj3kim has joined #ruby
Hanmac1 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Vivekananda has quit [Read error: Connection reset by peer]
tauebel has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
baroquebobcat has joined #ruby
pwh has joined #ruby
Hanmac has joined #ruby
pwh has quit [Client Quit]
frx has quit []
pen has quit [Remote host closed the connection]
<bricker`LA>
zombor: you'd have to use eval probably, but the question isn't very clear
<zombor>
bricker`LA: i want to turn those lines into a hash. im just going to split on new line and then "=" and make it by hand
baroquebobcat has quit [Client Quit]
terrellt_ has joined #ruby
Travis-42 has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
baroquebobcat has joined #ruby
tauebel1 has joined #ruby
<centrx>
zombor, file.each_line { |line| key, value = line.split(' = '); my_hash[key] = value }
terrellt_ has quit [Client Quit]
Yahkob has quit [Remote host closed the connection]
yasushi has joined #ruby
Yahkob has joined #ruby
<zombor>
yeah, thats what im doing
justinxreese has quit [Ping timeout: 246 seconds]
boccobrock has joined #ruby
<zombor>
thanks
tjr9898 has quit [Remote host closed the connection]
tauebel has quit [Ping timeout: 260 seconds]
terrellt has quit [Ping timeout: 272 seconds]
cj3kim has quit [Ping timeout: 252 seconds]
joelbrewer has joined #ruby
yasushi has quit [Remote host closed the connection]
zombor has left #ruby ["Leaving..."]
tauebel1 has quit [Ping timeout: 245 seconds]
Yahkob has quit [Read error: No route to host]
Yahkob_ has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
whatasunnyday has quit [Quit: whatasunnyday]
jlast has quit [Remote host closed the connection]
Lorn has quit [Ping timeout: 260 seconds]
yacks has quit [Read error: Operation timed out]
RoxasShadowRS has quit [Read error: Connection reset by peer]
<slowcon>
I'm trying to scrape the forum name and its url from a webpage. i wrote the script to do exactly that, but I'm having trouble storing the arrays results into a database using the sequel gem. ex: all the results for 12 pages go into A1(names) A2(urls). wondering if there is an easy fix/easier method to accomplish what I'm trying to do. http://pastebin.com/rFwKx25A
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
jefflyne has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
i_s has quit [Ping timeout: 248 seconds]
justinxreese has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
nisstyre has joined #ruby
gja has quit [Client Quit]
x77686d has quit [Quit: x77686d]
i_s has joined #ruby
angusigu1ss has joined #ruby
<Paradox>
if i were to be writing an api client for something, what is the best way to deal with rate limits. Not looking for a gem or anything, just advice
justinxreese has joined #ruby
jzig_ has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
<Paradox>
the client should be relatively asynchronous
Fire-Dragon-DoL has quit [Quit: Leaving.]
<Paradox>
i want to abstract away the pain of dealing with the apu
<Paradox>
api
lethjakman has quit [Ping timeout: 248 seconds]
<Paradox>
while making it still respect
<Paradox>
i thought of using a queue of some sort
griffindy has joined #ruby
<ddd>
best way to deal with them rate limiting is to abide by their rules(s)
i_s has quit [Ping timeout: 248 seconds]
fgo has quit [Remote host closed the connection]
<Paradox>
im not trying to evade it
angusigu1ss has quit [Ping timeout: 250 seconds]
mehlah has quit [Quit: Leaving...]
gja has joined #ruby
<Paradox>
im trying to make it so people using the client don't have to litter their code with sleep(2)
mavcunha has quit [Quit: Computer has gone to sleep.]
gregf has joined #ruby
hobodave has joined #ruby
s2013 has joined #ruby
zachallett has joined #ruby
g0rd0 has joined #ruby
slowcon has quit [Quit: slowcon]
itadder_ has quit [Remote host closed the connection]
duggiefresh has quit []
<centrx>
Paradox, I thought you were writing the client
jzig_ has quit [Ping timeout: 245 seconds]
TryX has quit [Remote host closed the connection]
mojo619 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
rainmanjam has quit [Remote host closed the connection]
tcurdt has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
pierre1__ has quit [Quit: Leaving]
pranny has quit [Quit: Leaving.]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<RubyTitmouse>
Paradox: it depends on what it is. If it is a generic API, or something very specific and controlled like an API for a commercial game or service
<RubyTitmouse>
generally though you would have the easiest way of accessing it include a default rate limit which is configurable, and then also allow direct access
mercwithamouth has quit [Ping timeout: 250 seconds]
Yahkob has left #ruby [#ruby]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
IceyEC has quit [Quit: IceyEC]
Hanmac1 has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mr_red has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
bricker`LA has quit [Read error: Connection reset by peer]
angusigu1ss has joined #ruby
bricker`LA has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
pen has joined #ruby
mr_red has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
ninegrid has joined #ruby
s2013 has quit [Ping timeout: 250 seconds]
jh_ has joined #ruby
<Nowaker>
can multiple Class.new calls cause a memleak? in java it could (because of permgen, classes go to a permanent memory, never gc'ed). is this a case in ruby?
jh_ is now known as Guest67524
<Paradox>
RubyTitmouse reddit
<Paradox>
im updating my snoo gem
funburn has joined #ruby
recurrence has joined #ruby
funburn has quit [Read error: Connection reset by peer]
himsin has joined #ruby
himsin has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyTitmouse>
Nowaker: no, they shouldn't get stuck in memory unless you assign them to a constant
Hanmac has joined #ruby
slowcon has joined #ruby
<slowcon>
hey guys
Yahkob has joined #ruby
<slowcon>
got dc
<Nowaker>
RubyTitmouse: great, thanks
<RubyTitmouse>
Nowaker: note also that normally you would never ever call Class.new in Ruby ; )
Hanmac1 has quit [Ping timeout: 245 seconds]
vlad_sta_ has joined #ruby
IceDragon has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
<Nowaker>
RubyTitmouse: then I'll show you my code, maybe you have a hint how to make it better
<Paradox>
i think i figured out a way
<Paradox>
log the last request time to an ivar, and if its within 2 seconds block, sleep, and then go
funburn has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
pen has quit [Remote host closed the connection]
freezey has joined #ruby
<Nowaker>
RubyTitmouse: yeah... no need for Class.new. ;-) thanks
vlad_starkov has quit [Ping timeout: 260 seconds]
i_s has joined #ruby
Yahkob has quit [Ping timeout: 272 seconds]
<RubyTitmouse>
Paradox: Just use some indirection, so that if somebody needs to bypass the delay and looks at the source, they can without needing to monkey patch
zachallett has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 272 seconds]
danshultz has joined #ruby
<Paradox>
RubyTitmouse there will be a keyword and attr people can override em with
<Paradox>
this is gonna be v1.0.0 of my snoo reddit gem
<Paradox>
heh
Sid05 has quit [Quit: Leaving.]
<Paradox>
current is 0.1.12 iirc
s2013 has joined #ruby
fgo has joined #ruby
nari has quit [Ping timeout: 260 seconds]
Sid05 has joined #ruby
kpshek has joined #ruby
<RubyTitmouse>
I heard reddit was the new slashdot but I was too snooty to try it
<Paradox>
thanks
<Paradox>
:)
boccobrock has quit [Quit: WeeChat 0.4.2]
casheew_ has joined #ruby
<Paradox>
i used to work for reddit
<Paradox>
but then i transitioned into ruby because it fit me better than python
yfeldblum has quit [Remote host closed the connection]
<RubyTitmouse>
now that slashdot is dying, maybe reddit is gonna be the new slashdot
tcurdt has quit [Quit: Computer has gone to sleep.]
binaryhat has joined #ruby
danshultz has quit [Ping timeout: 260 seconds]
<bricker`LA>
oh god no
rcs has quit [Ping timeout: 246 seconds]
pinage404 has quit [Ping timeout: 250 seconds]
petey has joined #ruby
i_s has quit [Ping timeout: 252 seconds]
Norrin has quit [Ping timeout: 245 seconds]
nvll has quit [Ping timeout: 245 seconds]
agjacome has quit [Ping timeout: 260 seconds]
SegFaultAX has quit [Ping timeout: 264 seconds]
bmn has quit [Ping timeout: 246 seconds]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
Sid05 has quit [Ping timeout: 245 seconds]
ahuman has joined #ruby
<pipework>
reddit is worse than slashdot, I dont' see it improving
Guest71512 has quit [Remote host closed the connection]
<diegoviola>
[diego@myhost fromthepage]$ gem list | grep oai
<diegoviola>
oai (0.3.0)
<diegoviola>
not sure what gem is using that oai thingy
rm__ has joined #ruby
<nobitanobi>
Is it a code smell if I have a class which initialize method is empty? - I have a class that is used to parse sites. And I have organized it this way, so that I don't need to create a new object for each URL that I want to parse. https://gist.github.com/novito/8929550
<bricker`LA>
diegoviola: check Gemfile.lock
<nobitanobi>
havenwood, :)
tjbiddle has quit [Client Quit]
michael_mbp has quit [Excess Flood]
<diegoviola>
bricker`LA: it's under specs:
<bricker`LA>
nobitanobi: You might instead want to make a utility module that extends itself so you can instead just do GsmArenaCategoryParser.parse()
michael_mbp has joined #ruby
rm___ has joined #ruby
<diegoviola>
bricker`LA: oh, it's in the Gemfile, i'll upgrade it, ty
<nobitanobi>
bricker`LA, problem is that I want to have a "Parent". This parser is for GSMArena, but I will have other sources to parse
rm___ is now known as Guest7883
<nobitanobi>
that's why I created a class, so I could inherit
Megtastique has joined #ruby
<nobitanobi>
bricker`LA, but anyway, what do you mean by "extends itself" ?
<bricker`LA>
nobitanobi: well you could still inherit, you'd just make it a class instead of a module.
aspiers has joined #ruby
habanany1 has quit [Ping timeout: 245 seconds]
cburyta has quit [Ping timeout: 245 seconds]
<nobitanobi>
bricker`LA, I am unsure what do you mean by "utility module that extends itself"
<bricker`LA>
nobitanobi: if it's a class then you can't extend, just make all the methods on the class, `def self.parse()` etc.
funburn has quit [Ping timeout: 260 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<nobitanobi>
it's funy because I have a feeling that I am not correctly designing this in the best OO way, but I fail to see how to improve it
<nobitanobi>
*funny
estebistec has joined #ruby
<nobitanobi>
bricker`LA, so your suggestion would be to just create a Module?
<nobitanobi>
instead of a class?
rm__ has quit [Ping timeout: 272 seconds]
<bricker`LA>
nobitanobi: you can't inherit from a module, so no
<bricker`LA>
nobitanobi: you could use instances, it's just more work for the GC and possibly the developer
<nobitanobi>
:D
<nobitanobi>
bricker`LA, gotcha ~ It's interesting though. I will have several Parsers, but I am not seeing the abstraction yet
<bricker`LA>
developer*
iliketurtles has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<nobitanobi>
bricker`LA, I will go for the Module approach
<nobitanobi>
and if I see the abstraction, will move to the Class appraoch
<bricker`LA>
nobitanobi: what I might do would be to make a single Parser module which does the heavy lifting - Parse.parse(url), etc. Then have several classes which use that module.
<nobitanobi>
*approach
yfeldblum has joined #ruby
<nobitanobi>
bricker`LA, the problem here is that the Parsing differs from source to source
Rollabunna has quit [Read error: Connection reset by peer]
<nobitanobi>
I am basically going into sites that have cellphones
<nobitanobi>
and for each site, I need a particular parser
fgo has joined #ruby
<nobitanobi>
so, the method itself is completely different for each site
Rollabunna has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
angusigu1ss has joined #ruby
JohnBat26 has quit [Ping timeout: 250 seconds]
Angelous has quit [Ping timeout: 250 seconds]
<bricker`LA>
nobitanobi: if you want to feel good you could require each parser to have an "entry point" method (.parse perhaps), and then use an "inner class" to do the actual parsing. That way you get good OOP while not having to manually create an instance every time
starfox21 has quit [Quit: starfox21]
JohnBat26 has joined #ruby
<nobitanobi>
bricker`LA, wait. Let me read that
Angelous has joined #ruby
bthesorceror has quit [Remote host closed the connection]
<nobitanobi>
bricker`LA, sorry to bother you, but what do you mean by "require each parser to have an 'entry point' method" =
<nobitanobi>
?
fuhgeddaboudit has quit [Read error: Operation timed out]
<RubyPanther>
nobitanobi: just make it a module that has the common parts, then use it as a mixin in parser modules or classes that implement #parse: module GenericParser; def parse; raise 'not implemented' end end ; module PonyParser; extend GenericParser end ; PonyParser.parse
kate_r has joined #ruby
<nobitanobi>
got it
<RubyPanther>
presumably parsers might have state, and so should be classes
<bricker`LA>
nobitanobi: https://gist.github.com/bricker/8929617 like that maybe, so the "public API" for those parsers are the sole "Parser.parse()" method
<bricker`LA>
but you don't have to cram everything into class methods
zachallett has quit [Remote host closed the connection]
<nobitanobi>
and I might be getting really obsessed
<nobitanobi>
with making it OO
<nobitanobi>
:P
<nobitanobi>
thanks guys. I will digest your awesome help, and try to find out a solution
<bricker`LA>
And apparently I forgot how to make a comment in Ruby x.x
angusigu1ss has quit [Ping timeout: 245 seconds]
<RubyPanther>
"Practical Object-Oriented Design in Ruby" makes sense, but the domain sounds like Poo Dr
<bricker`LA>
*teehee*
makara has joined #ruby
Norrin has quit [Ping timeout: 245 seconds]
<nobitanobi>
:)
<nobitanobi>
bricker`LA, what's the benefeit of having an inner class?
<bricker`LA>
nobitanobi: your obsession with OOP will be satisfied
<bricker`LA>
:D
<nobitanobi>
mmmm
<RubyPanther>
"A note on pronunciation: Think pooder, as if you were a three year old attempting to say computer. " I always thought that was spelled `puter
trickyhero has quit [Ping timeout: 248 seconds]
funburn has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
e^0 has quit [Quit: WeeChat 0.4.2]
DanielRb has joined #ruby
DanielRb has left #ruby [#ruby]
<nobitanobi>
bricker`LA, I might be missing something, but with the inner class aren't you just hiding the logic into that inner class, and the outter class it's a mere initializator?
<bricker`LA>
yep
<nobitanobi>
how is that helping OO?
<nobitanobi>
:)
rainmanjam has quit [Remote host closed the connection]
jack_rabbit has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
<bricker`LA>
nobitanobi: because doing everything in class methods is not good OOP
doanerock has quit [Quit: Leaving]
<nobitanobi>
uh, uh
<nobitanobi>
got it
rainmanjam has joined #ruby
<nobitanobi>
thanks a lot guys
<RubyPanther>
clicking around in the github, most of the code looks pretty good, except for all the dead ducks
<nobitanobi>
I really appreciate
<bricker`LA>
nobitanobi: really your original way is fine
<bricker`LA>
I'm just throwing out other ideas because you asked
jonah_k has quit [Remote host closed the connection]
<RubyPanther>
# when every preparer is a Duck
<RubyPanther>
# that responds to 'prepare_trip'
<nobitanobi>
RubyPanther, oh yeah, I read that yesterday
Cache_Money_ has joined #ruby
<RubyPanther>
except then a few lines later... when Mechanic ... when TripCoordinator ... and no safe else! that duck is dead
jack_rabbit has joined #ruby
<centrx>
RubyPanther.acts_like_duck?
fgo has quit [Remote host closed the connection]
<nobitanobi>
RubyPanther, that code is changed later.
<agent_white>
RubyPanther: Wait wat? I'm curious, I'm actually just that part in the book.
<nobitanobi>
She uses that approach in the whole book
<nobitanobi>
putting "bad code" first, and improving it
<RubyPanther>
ahhhh, okay, that explains a lot lol
carlyle has joined #ruby
carlyle has quit [Client Quit]
<RubyPanther>
in that case, it is double-awesome
<nobitanobi>
yep
<nobitanobi>
hehehe
<nobitanobi>
I read the whole book this weekend
<nobitanobi>
is really good
<nobitanobi>
well at least I enjoyed it a lot
Norrin has joined #ruby
rainmanjam has quit [Ping timeout: 248 seconds]
butblack has joined #ruby
b00stfr3ak has joined #ruby
<agent_white>
I need to finish it, and probably re-read it haha. For every good example, she throws 4-5 bad ones against it.
z has quit [Quit: Lost terminal]
<agent_white>
As in "here's what not to do"x5, then "do this"x1.
<nobitanobi>
I need to re-read it for sure
jzig has quit [Remote host closed the connection]
browndawg has joined #ruby
jzig has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
<nobitanobi>
the VCR gem is pretty cool uh
fgo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
phansch has joined #ruby
Sawbones has joined #ruby
sailias has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
butblack has left #ruby [#ruby]
parzo has quit [Remote host closed the connection]
pen has joined #ruby
angusigu1ss has joined #ruby
sailias has quit [Quit: Leaving.]
silicong has joined #ruby
<silicong>
Hello -- I am running in to a problem when I try to build my app
<silicong>
every time I get an error "/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require': no such file to load -- daemons (LoadError)" --- I have no idea what this means
rainmanjam has joined #ruby
IceDragon has quit [Quit: Space~~~]
h0lyalg0rithm has joined #ruby
<nobitanobi>
silicong, what do you mean build your app?
<dingus_khan>
hi, i can't figure out why an rspec test is failing with a no method error, i'm trying to write a module to provide a method to a class for reading from a CSV; anyone got a second to tell me what google hasn't yet?
<agent_white>
RubyPanther: There's no 'sides', you dudes are on a team to make something work! /pridefive
<agent_white>
MT D00bs
mattp__ has joined #ruby
<havenwood>
dingus_khan: could you Gist some code for us to ponder upon?
<shevy>
what a great name... dingus AND a khan at that :)
<dingus_khan>
oops, that's an incorrect version, sigh
noop has joined #ruby
<dingus_khan>
hah, it's from Venture Brothers
<shevy>
havenwood: you should rename yourself to havenkhan
_tpavel has joined #ruby
<dingus_khan>
loved that show, like Johnny Quest, but the best parody ever
havenwood is now known as havenwrathofkhan
whomp has joined #ruby
<dingus_khan>
nice!
<shevy>
hehe
b00stfr3ak has quit [Ping timeout: 250 seconds]
<shevy>
say something mighty havenwrathofkhan
<agent_white>
pipework: Hahaha. For some reason, that just made me think of a man sitting down with a box of ballpoint pens, writing on pieces of paper.
<agent_white>
fml
<havenwrathofkhan>
shevy: Lieutenant, you are looking at the only Starfleet cadet who ever beat the no-win scenario.
<havenwrathofkhan>
dachi: it is quite powerful, check `help` command from inside pry
<dachi>
ok
<havenwrathofkhan>
dachi: also #pry channel is well populated
<dachi>
will be there
<dingus_khan>
i'm guessing my thing is fading a bit--is there a clear resource on how to do what i want to do with modules somewhere? i feel like i'm missing something in the explanations i'm finding
havenwrathofkhan is now known as havenwood
tonni has quit [Read error: Connection reset by peer]
<shevy>
wat
<shevy>
what do you wanna do with modules
whomp has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
<havenwood>
dingus_khan: extend Reader if you want a class method
<shevy>
@name = hotel[:name]
<shevy>
does that work?
<dingus_khan>
i'm trying to just define my csv reader method in a module to be used by a class for creating objects
parzo has quit [Ping timeout: 248 seconds]
<dingus_khan>
oh shit, is Reader an actual ruby class already?
<shevy>
no
<dingus_khan>
yeah i'm pretty sure that assignment style works
<shevy>
but I also can not see how your code line I showed works
<shevy>
ah
<shevy>
I see now
<dingus_khan>
just taking from the hash
<havenwood>
dingus_khan: you're using `include` but not instantiating your class.
pdtpatrick has joined #ruby
<dingus_khan>
oh damnit, it's the test isn't it...
<havenwood>
dingus_khan: Hotel can be a `module` and you can use `extend`.
yasushi has joined #ruby
fgo has quit [Remote host closed the connection]
<havenwood>
dingus_khan: If you want to follow the test.
<havenwood>
But yeah, they don't match.
<dachi>
havenwood: hi, if you're into documenting projects, why Tomdoc over Yard?
<dingus_khan>
i'm an idiot; did not create hotel object in test
abra has quit [Ping timeout: 245 seconds]
agjacome has quit [Ping timeout: 252 seconds]
bigkevmcd has quit [Quit: Ex-Chat]
bigkevmcd has joined #ruby
abra has joined #ruby
<havenwood>
dachi: Just looks nicer to me, but i'd rather yard than rdoc.
<dingus_khan>
would doing that make sense, though? making hotel a module and extending it? wouldn't that be a design issue though?
<havenwood>
dachi: easier to get at the examples, but prolly yard makes sense for preveleance
[gmi] has joined #ruby
<havenwood>
dingus_khan: If you aren't instantiating, module is the correct choice.
<havenwood>
dingus_khan: All Classes are Modules.
<dachi>
havenwood: hanks
<dachi>
thanks
centrx has quit [Quit: Merry Christmas! And to all a Good Night!]
<dingus_khan>
havenwood: but i would be instantiating if i'm attempting to create new Hotel objects, right? or did i mistake instantiation for something else?
asteros has quit [Quit: asteros]
mocfive has quit [Remote host closed the connection]
dr0ff has left #ruby [#ruby]
mocfive has joined #ruby
<havenwood>
dingus_khan: Yeah, it looks like you intend to instantiate hotel, since you have an #initialize method an all.
jprovazn has joined #ruby
<havenwood>
dingus_khan: So yup, in your test you should use #new.
tonni has joined #ruby
<havenwood>
*Hotel
ktosiek has joined #ruby
<dingus_khan>
crap-spackle. how do i test that method when instantiating a new Hotel depends on that module's method to read in to the initializer? i've design myself into a corner
mlpinit has joined #ruby
<havenwood>
dingus_khan: not following what you're wanting to test
dubsteph has joined #ruby
mocfive has quit [Ping timeout: 260 seconds]
<dingus_khan>
sorry; wrote unit test for that csv-reading method, wanted to test it individually, but the class is written such that there's no way to instantiate a new Hotel from the module method it depends on to get the initial values from
pavilionXP has quit [Ping timeout: 248 seconds]
mengu has quit [Remote host closed the connection]
pavilionXP has joined #ruby
brennanMKE has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
<dingus_khan>
i can't say "Hotel.new(row)" in the csv.foreach method because initialize can't get values, i think. i think i need to start over, hah
certainty has joined #ruby
Lewix has quit [Remote host closed the connection]
sergicles has joined #ruby
mhenrixon has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
ner0x has quit [Quit: Leaving]
yeticry_ has joined #ruby
compleatang has quit [Remote host closed the connection]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ahawkins has joined #ruby
<pontiki>
o/
yeticry has quit [Ping timeout: 265 seconds]
<certainty>
\o
dseitz has joined #ruby
joelbrewer has quit [Ping timeout: 260 seconds]
<havenwood>
^ o/
<dingus_khan>
what, what, what is all this, did i make a funny?
mikepack has joined #ruby
<havenwood>
dingus_khan: no, we we're making an ascii art of a swimmer being attacked by a shark
cburyta has joined #ruby
aganov has joined #ruby
<havenwood>
>.>
<havenwood>
dingus_khan: it is yet to be seen how the swimmer and shark fare
<havenwood>
we can only hope...
<dingus_khan>
and i bet he'll say "i won't let this stop me, i'm going to keep swimming in water infested with ascii sharks, it's my dream..."
lxsameer has joined #ruby
malthe has joined #ruby
stonecolddevin has quit [Ping timeout: 246 seconds]
stonecolddevin has joined #ruby
mikepack has quit [Ping timeout: 248 seconds]
cburyta has quit [Ping timeout: 252 seconds]
decoponio has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
kevinykchan has joined #ruby
rainmanjam has joined #ruby
arietis has joined #ruby
blaxter has joined #ruby
tonni has quit [Remote host closed the connection]
andikr has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
blaxter_ has joined #ruby
rainmanjam has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
blaxter has quit [Read error: Connection reset by peer]
intuxicated has quit [Read error: No route to host]
Hanmac has quit [Ping timeout: 252 seconds]
Derander_ is now known as Derander
Hanmac has joined #ruby
LLKCKfan has quit [Read error: Connection reset by peer]
<jizanthapus-work>
bovi, why doesn't it parse without the parens?
<bovi>
oh I'm not a parser guru
<bovi>
the state might be to complex at that point that the implementation can' handle it anymore
zxd has quit [Ping timeout: 264 seconds]
jrist has quit [Ping timeout: 246 seconds]
zxd has joined #ruby
<jizanthapus-work>
bovi, tobiasvl, thanks for the input
<bovi>
that is always a little bit tricky with Rubys ability to drop parentheses. It is more guess work of the interpreter than anything else what the programmer might want to do there
m8 has quit [Read error: Connection reset by peer]
ace_striker has quit [Ping timeout: 245 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
tris has joined #ruby
iMe_away is now known as iMe
Hiall has joined #ruby
Sid05 has joined #ruby
m8 has joined #ruby
ktun has joined #ruby
Ziarkaen has quit [Ping timeout: 248 seconds]
Sid05 has quit [Read error: Operation timed out]
tobago has joined #ruby
barratt has joined #ruby
himsin has quit [Quit: himsin]
cburyta has joined #ruby
xue has quit [Quit: Leaving]
OdNairy has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
mehlah has quit [Quit: Leaving...]
mavcunha has joined #ruby
cburyta has quit [Ping timeout: 260 seconds]
jrist has joined #ruby
Al___ has quit [Quit: Al___]
<monsieurp>
maroloccio: u there?
danijoo_ has joined #ruby
Al___ has joined #ruby
ItSANgo__ has quit [Read error: Connection reset by peer]
raphaelivan has joined #ruby
shredding has joined #ruby
danijoo has quit [Ping timeout: 252 seconds]
cj3kim has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
razibog has joined #ruby
JasmeetQA has joined #ruby
parzo has joined #ruby
pen has joined #ruby
ItSANgo__ has joined #ruby
aryaching has joined #ruby
aagdbl has joined #ruby
caveat- has quit [Ping timeout: 252 seconds]
estebanrules has joined #ruby
caveat- has joined #ruby
Kamilion has joined #ruby
mlpinit has joined #ruby
pen has quit [Ping timeout: 245 seconds]
_tpavel has quit [Ping timeout: 260 seconds]
cj3kim has quit [Ping timeout: 245 seconds]
blaxter_ is now known as blaxter
yasushi has joined #ruby
brennanMKE has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
jaredrhine has quit [Quit: No Ping reply in 180 seconds.]
jaredrhine has joined #ruby
h0lyalg0rithm has joined #ruby
parzo_ has joined #ruby
krnflake has quit [Ping timeout: 252 seconds]
yasushi has quit [Ping timeout: 260 seconds]
xargoon has quit [Ping timeout: 248 seconds]
parzo has quit [Read error: Connection reset by peer]
xargoon has joined #ruby
brennanMKE has quit [Ping timeout: 248 seconds]
gja has quit [Quit: This computer has gone to sleep]
YOURBESTFRIEND is now known as YoUrBeStFrIeNd
dayepa has joined #ruby
maloik has quit [Ping timeout: 252 seconds]
maloik has joined #ruby
mikepack has joined #ruby
multi_io has quit [Ping timeout: 252 seconds]
_tpavel has joined #ruby
YoUrBeStFrIeNd is now known as YourBestFriend
multi_io has joined #ruby
krnflake has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<dagobah>
I'm struggling a little with modules, self.included, class_eval etc.. Anyone good with meta programming? https://gist.github.com/kotay/8932989
mikepack has quit [Ping timeout: 250 seconds]
iMe is now known as iMe_away
<mikecmpbll>
dagobah: not sure i really understand what you're attempting
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<mikecmpbll>
can't you just use include?
sensen has quit [Quit: leaving]
fgo has joined #ruby
rainmanjam has joined #ruby
<dagobah>
mikecmpbll: I am using include, I'm trying to have my plugins module include various plugins, without the need for each plugin to wrap methods in class_eval
parzo_ has quit [Remote host closed the connection]
gja has joined #ruby
bovi has quit [Quit: bovi]
parzo has joined #ruby
klaas_ has joined #ruby
jzinedine has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
obs has quit [Quit: Konversation terminated!]
epsylon has quit [Ping timeout: 252 seconds]
danijoo_ has quit [Ping timeout: 252 seconds]
rob_ has joined #ruby
Tranquility__ is now known as Tranquility
linduxed has quit [Ping timeout: 252 seconds]
Veejay has quit [Ping timeout: 252 seconds]
klaas has quit [Ping timeout: 252 seconds]
<rob_>
hi, is it possible to get a list of object accessors? i have an amazon ec2 instance object and basically want to get the instance config out of it as a hash (or something) without having to individually check a load of methods..
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<dagobah>
workmad3: I can do that yes and that works. It's not that it doesn't work, I was just wondering whether there was a way to call the class method without self.included
gja has quit [Quit: This computer has gone to sleep]
shredding has quit [Read error: Connection reset by peer]
Scient has quit [Ping timeout: 252 seconds]
cburyta has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
<workmad3>
dagobah: it really depends on what you want to achieve, tbh... and it's not clear what that is atm
DaniG2k has quit [Quit: leaving]
starfox21 has quit [Ping timeout: 260 seconds]
<workmad3>
dagobah: are you really just wanting to be able to orchestrate calls to some object with a known interface?
starfox21 has joined #ruby
poulson has joined #ruby
garybrett is now known as gbrt
obs has quit [Quit: Konversation terminated!]
relix has quit [Client Quit]
butblack has joined #ruby
Beoran_ has joined #ruby
Scient has joined #ruby
<dagobah>
workmad3: Thanks, never mind, I'm having trouble explaining. I want the `hello` class method defined in a module to call the hello class method defined on a class that includes the module.
shredding has joined #ruby
sarlalian has joined #ruby
nari has joined #ruby
<dagobah>
It's probably not possible without my original self.included ... class_eval.
butblack has left #ruby [#ruby]
<workmad3>
dagobah: ok... and if the module was included > 1 time, which class would be invoked? (basically, it seems you've gotten the relationship completely the wrong way around)
<mikecmpbll>
yeah. that
gbrt is now known as gbt
cburyta has quit [Ping timeout: 250 seconds]
<dagobah>
Hmm, that's a good point. I'll have a rethink :)
<mikecmpbll>
what would be the use of including a module, with a method that calls a class method
<dorei>
atmosx: so by signing an online petition, nsa will stop spying at the whole planet? :D
Sid05 has joined #ruby
sambao21 has joined #ruby
angusigu1ss has joined #ruby
slowcon has joined #ruby
<atmosx>
dorei: if a barefoot man won the Brittish empire, Greece won the 2004 European football championship and people compare Lebron James to MJ without laughing, I believe that anything is possible.
<dorei>
lol
<dorei>
i'm wandering who's that barefoot man
rainmanjam has joined #ruby
arctaruz has left #ruby ["Leaving"]
parduse has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
jerius has joined #ruby
gja has joined #ruby
meatherly has joined #ruby
angusigu1ss has quit [Ping timeout: 265 seconds]
mrevd has joined #ruby
mrevd has quit [Read error: Connection reset by peer]
lxsameer has quit [Quit: Leaving]
rainmanjam has quit [Ping timeout: 260 seconds]
mrevd has joined #ruby
mrevd has quit [Changing host]
mrevd has joined #ruby
dik_dak has joined #ruby
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
mrevd1 has joined #ruby
mrevd has quit [Read error: Operation timed out]
raphaelivan has quit [Quit: Leaving.]
mrevd has joined #ruby
mrevd has quit [Read error: Connection reset by peer]
<slowcon>
morning guys
mrevd has joined #ruby
mrevd has quit [Read error: Connection reset by peer]
thesheff17 has joined #ruby
jovon has joined #ruby
mrevd has joined #ruby
mrevd2 has joined #ruby
mrevd2 has quit [Read error: Connection reset by peer]
gja has quit [Quit: This computer has gone to sleep]
tonni has quit [Ping timeout: 248 seconds]
mrevd2 has joined #ruby
mrevd2 has quit [Read error: Connection reset by peer]
Jdubs has quit [Remote host closed the connection]
mrevd1 has quit [Ping timeout: 272 seconds]
mrevd1 has joined #ruby
mrevd1 has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
mrevd1 has joined #ruby
mrevd2 has joined #ruby
mrevd2 has quit [Read error: Connection reset by peer]
JustMozzy has joined #ruby
Sawbones has quit []
<JustMozzy>
hi guys. I am fighting with sass/compass. Why am I getting the error ArgumentError: different prefix: "" and "D:\\htdocs/AKM/portal/1206_facelift/site/lib"
mrevd2 has joined #ruby
mrevd2 has quit [Read error: Connection reset by peer]
mrevd has quit [Ping timeout: 248 seconds]
mrevd2 has joined #ruby
mrevd2 has quit [Read error: Connection reset by peer]
[krisbulman] is now known as krisbulman
thesheff17 has quit [Ping timeout: 250 seconds]
mrevd has joined #ruby
mrevd has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
Thanatermesis has joined #ruby
<dorei>
JustMozzy: i've never used sass/compass, but I notice that the "D:\\..." string has mixed '/' and '\', dont know if that has anything to do with your errors
Squarepy has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
mrevd has joined #ruby
<JustMozzy>
dorei: neither do I. I don't know where to set this path
Xeago_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrevd1 has quit [Ping timeout: 248 seconds]
relix has joined #ruby
_Andres has joined #ruby
mlpinit has joined #ruby
eka has joined #ruby
<JustMozzy>
anyone knows his way around this dipshit tool?
griffindy has quit [Quit: Computer has gone to sleep.]
atmosx has quit [Quit: Lost in trance]
Squarepy has quit [Read error: Connection reset by peer]
zachallett has joined #ruby
Hanmac1 has joined #ruby
noop has quit [Ping timeout: 260 seconds]
S0da has quit [Remote host closed the connection]
gja has joined #ruby
stonevil has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
tonni has joined #ruby
obs has quit [Read error: Operation timed out]
burlyscudd has quit [Quit: Leaving.]
speakingcode has quit [Ping timeout: 260 seconds]
obs has joined #ruby
JustMozzy has left #ruby [#ruby]
Killerkeksdose_ has joined #ruby
Killerkeksdose has quit [Ping timeout: 245 seconds]
Jake232 has joined #ruby
stonevil has quit [Ping timeout: 250 seconds]
petey has joined #ruby
santiago_ has joined #ruby
santiago_ is now known as loc22
mary5030_ has joined #ruby
mansi has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
burlyscudd has joined #ruby
jprovazn has quit [Quit: Leaving]
momomomomo has joined #ruby
Jake232 has quit [Client Quit]
pen has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
jprovazn has joined #ruby
dik_dak has quit [Remote host closed the connection]
ehc has joined #ruby
caveat- has quit [Ping timeout: 264 seconds]
Thanatermesis is now known as Thana[work]
RubyMonkey has quit [Quit: Leaving.]
Xuisce1 has joined #ruby
fedesilva has joined #ruby
pen has quit [Ping timeout: 245 seconds]
mary5030_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
obs has quit [Quit: Konversation terminated!]
caveat- has joined #ruby
blaxter_ has quit [Quit: foo]
obs has joined #ruby
blaxter_ has joined #ruby
ace_striker_ has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
nateberkopec has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jrist has quit [Remote host closed the connection]
aagdbl has quit [Quit: This computer has gone to sleep]
JustMozzy has joined #ruby
tonni has quit [Ping timeout: 272 seconds]
<JustMozzy>
Anyone can help out with sass compass? An not getting this thing to work
<JustMozzy>
certainty: I am trying to get the compilation of my project to work. I have a config.rb where the paths are set but I keep getting an argument error, ArgumentError: different prefix: "" and "D:\\htdocs/AKM/portal/1206_facelift/site/lib"
burlyscudd has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 260 seconds]
CorySimmons has joined #ruby
loc22 has quit [Quit: Konversation terminated!]
BackEndCoder has quit [Ping timeout: 246 seconds]
tjbiddle has joined #ruby
dseitz has joined #ruby
seekwill has quit [Ping timeout: 260 seconds]
yellow5 has quit [Quit: time to go!]
ryanf has quit [Ping timeout: 250 seconds]
hl has quit [Ping timeout: 260 seconds]
hl has joined #ruby
<certainty>
JustMozzy: what are you doing exactly? What produces this error? also show your config.rb
tjbiddle has quit [Client Quit]
tonni has joined #ruby
Macaveli has quit [Ping timeout: 250 seconds]
Rylee has quit [Ping timeout: 265 seconds]
Xuisce1 has joined #ruby
mikepack has joined #ruby
yalue has quit [Ping timeout: 260 seconds]
<JustMozzy>
certainty: I got rid of the error but now a new one comes. in my screen.scss I have @import "icons/*.png" and it claims that it cannot find any files in the icons/*.png path. I double and triple checked for the path and it is correct. here is my config.rb http://pastebin.ca/2638650
jerius has quit [Ping timeout: 260 seconds]
gja has quit [Quit: This computer has gone to sleep]
shaunbaker has quit [Remote host closed the connection]
Rylee has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
Ch4rAss has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
marienz has quit [Ping timeout: 604 seconds]
pu22l3r_ has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 250 seconds]
pu22l3r has joined #ruby
tiguser has quit [Ping timeout: 250 seconds]
bogeyd6 has joined #ruby
jerius has joined #ruby
Monk_code has quit []
rainmanjam has quit [Remote host closed the connection]
pmullin has joined #ruby
cloud|nix has joined #ruby
rainmanjam has joined #ruby
<JustMozzy>
certainty: It gives me Compass::SpriteException: No files were found in the load path matching "icons/*.png". Your current load paths are: D:\htdocs\AKM\portal\1206_facelift\site/img\basics
<certainty>
JustMozzy: ok i don't know compass well. I'm currently trying to make sense from the documentation. Importing images creates sprites as i understand it. Where exactly is your icons directory? Is it under your images_dir?
Guest50231 has quit [Remote host closed the connection]
Kabaka has quit [Ping timeout: 252 seconds]
griffindy has joined #ruby
rainmanjam has quit [Ping timeout: 260 seconds]
Rylee has quit [Ping timeout: 260 seconds]
palantir_ has joined #ruby
mojjojo has joined #ruby
bean has joined #ruby
stonevil has joined #ruby
toroidalcode has joined #ruby
yalue has joined #ruby
toroidalcode has quit [Client Quit]
<certainty>
JustMozzy: i dont know windows and have know idea how ruby handles paths with different seperators on that platform. Could you please verify that the path makes sense to ruby in irb? For example by running File.exists?('D:\htdocs\AKM\portal\1206_facelift\site/img\basics/' + icon_filename)
Megtastique has joined #ruby
coca_rails has joined #ruby
nemesit|znc has joined #ruby
angusigu1ss has quit [Ping timeout: 245 seconds]
tobago has quit [Remote host closed the connection]
rh1n0 has quit [Quit: im out!]
markalanevans has joined #ruby
<JustMozzy>
certainty: does ruby cmd have the option to execute code? (like php -r "somecode")
<certainty>
JustMozzy: yes -e
prc has quit [Ping timeout: 248 seconds]
<certainty>
there should also be irb or something
s2013 has joined #ruby
depesz has joined #ruby
<JustMozzy>
certainty: ok, ruby finds the directories.
Xeago_ has quit [Remote host closed the connection]
<depesz>
hi. I have yal file, that I want to read, parse, modify, and save, but while saving I'd like to retain original order of top-level keys.
Xeago_ has joined #ruby
<depesz>
is that possible in any other way than manually getting order by regexp-parsing the yaml file?
mengu has quit [Remote host closed the connection]
mikepack has joined #ruby
pwh has joined #ruby
bhaak has quit [Read error: Operation timed out]
jerius has quit []
tiguser has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
Xuisce1 has quit [Ping timeout: 245 seconds]
<certainty>
JustMozzy: ok, that's good. Well it's bad actually. I have now further idea. I have too little knowledge about compass. is there a channel here about that topic by any chance?
deception has joined #ruby
burlyscudd has joined #ruby
<JustMozzy>
well there is #compass but it is rather dead
e^0 has joined #ruby
mercwithamouth has joined #ruby
petey has quit [Remote host closed the connection]
mansi_ has joined #ruby
petey has joined #ruby
mansi has quit [Read error: Connection reset by peer]
tagrudev has quit [Quit: Me = Awesome]
<JustMozzy>
certainty: am looking through the code and trying to understand how this whole thing is loaded. ruby is quite difficult to read
tonni has quit [Read error: Connection reset by peer]
<dachi>
ruby 2 is fine but 1.9 is syntax error, unexpected tLABEL (SyntaxError)
<dachi>
why?
<certainty>
JustMozzy: what code are you looking at. Normally ruby is quite easy to read
mansi_ has quit [Read error: Connection reset by peer]
<dachi>
I mean it became like that, it was okay on 1.9 on travis, so something... I don't know
obs has quit [Quit: Konversation terminated!]
mansi has joined #ruby
<havenwood>
dachi: keyword arguments were added in 2.0
shaunbaker has joined #ruby
<JustMozzy>
certainty: the compass code. well it is also for me the first time to actually see ruby code hehe
obs has joined #ruby
rainmanjam has joined #ruby
rainmanjam has quit [Remote host closed the connection]
kcombs has joined #ruby
<dachi>
but how can it work on 1.9 because it worked travis shows positive hmm
intuxicated has joined #ruby
intuxicated has quit [Changing host]
intuxicated has joined #ruby
petey has quit [Ping timeout: 250 seconds]
<certainty>
JustMozzy: alright, yeah it has some constructs that are not easy to understand at a first glance. Probably you can turn on some kind of debug mode or verbose mode that gives you more information
pdtpatrick has joined #ruby
e^0 has quit [Ping timeout: 250 seconds]
failshell has joined #ruby
timonv has quit [Remote host closed the connection]
jzig has joined #ruby
<JustMozzy>
certainty: yeah, I was able to turn on a stack trace which lead me to the line where the compass thing is failing. specifically it cannot find files in this line: files = Dir[File.join(folder, uri)].sort where folder the img/basic absolute path is and the uri the icons/*.png
msmith_ has joined #ruby
mary5030 has joined #ruby
jprovazn has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
h0lyalg0rithm has joined #ruby
<certainty>
JustMozzy: how do you know what folder and uri are?
<JustMozzy>
certainty: I printed them :)
<certainty>
JustMozzy: ah good, then print the result of File.join(folder, uri) please
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
<certainty>
also print the result of Dir[File.join(folder, uri)].inspect
Hobogrammer has quit [Ping timeout: 246 seconds]
h0lyalg0rithm has quit [Client Quit]
<JustMozzy>
here's the output of the join D:\htdocs/AKM/portal/1206_facelift/site/img/basics/icons/*.png and the inspect gives an empty array. I printed also the File exists check on folder and it returns true
Guest11323 has quit [Quit: Guest11323]
<certainty>
JustMozzy: well i'm sure the folder exists. Can you give me an example filename of an image in there?
jerius has joined #ruby
h0lyalg0rithm has joined #ruby
<JustMozzy>
arr-black-r.png
<JustMozzy>
certainty: That would be the first one on the list arr-black-r.png
mojo619 has joined #ruby
tonni has joined #ruby
coca_rails has quit [Remote host closed the connection]
Evenix has joined #ruby
burlyscudd has quit [Quit: Leaving.]
jzig has quit [Ping timeout: 265 seconds]
jrist has joined #ruby
<certainty>
JustMozzy: that's strange, ok now please do: puts Dir[File.join(folder, "*")].inspect
Monk_code has joined #ruby
Al_ has joined #ruby
s2013 has quit [Ping timeout: 260 seconds]
<JustMozzy>
certainty: strange. also an empty array
Al_ is now known as Guest88060
h0lyalg0rithm has quit [Client Quit]
<certainty>
JustMozzy: i'm pretty sure that directory is empty. Did you try to cd into it and just list the contents? i believe it's cd and dir on windows
timonv has joined #ruby
Monk_code has quit [Remote host closed the connection]
danshult_ has joined #ruby
<JustMozzy>
certainty: tried Dir[folder].inspect and that gives an empty array too. the folders have contents
<JustMozzy>
this is really strange
danshultz has quit [Read error: Connection reset by peer]
sailias has joined #ruby
ocx has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
<JustMozzy>
certainty: in basics alone I have 7 folders and 180 files
<ocx>
hi all,
mercwithamouth has quit [Ping timeout: 250 seconds]
pmullin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ocx>
i would like to develop a script that scans a certain directory for files, and copy only new files into a destination directory, example: i have file1,file2 at time 1, script runs and copies file1 and file2 to destination directory, at time 2: file3 is generated so now i have file1,file2 and file3 , i need to copy now only file3 what is the best way to achieve this?
oso|away is now known as oso96_2000
<certainty>
JustMozzy: i don't know what's going on there. You cd'ed into the directory by copy & pasting the path?
pmullin has joined #ruby
LekeFly has joined #ruby
jrist has quit [Read error: Connection reset by peer]
<certainty>
ocx: rsync
<workmad3>
certainty: heh :) I was about to suggest that...
Es0teric has joined #ruby
<workmad3>
certainty: I was just looking up the option to specify for that behaviour :P
_tpavel has quit [Quit: Leaving]
<JustMozzy>
certainty: just did now. no errors.
<certainty>
JustMozzy: and now what does 'dir' show (is it dir?)
<workmad3>
rsync -u
<ocx>
i forgot to add 1 thing, the files are mainly datafile and they can deleted and recreated so for example file1 can be deleted and recreated as a new file, if it is a new file i need to copy it
<JustMozzy>
certainty: same as before. 180 files and 7 folders
<certainty>
ocx: rsync will recognize changed files
<workmad3>
ocx: rsync -u
<certainty>
JustMozzy: i'm lost
Evenix has quit [Read error: Connection reset by peer]
<ocx>
ok so it works on some hash or such
<JustMozzy>
certainty: me too hehe. but thanks for the try :)
Evenix has joined #ruby
meatherly has joined #ruby
<ocx>
ok another question i need to delete the old file1 on the destination directory
<ocx>
and replace it with the new file1
tjbiddle has joined #ruby
<tongcx>
hi, do you guys know which room should i ask rack problem? #rack seems only have very few people
<workmad3>
ocx: that's the same question split over two lines
fedesilva has quit [Read error: Connection reset by peer]
<workmad3>
ocx: and the answer is still 'rsync'
rayners has joined #ruby
fedesilva has joined #ruby
<ocx>
nice i thought i need a db to do that
<certainty>
JustMozzy: good luck anyways
<JustMozzy>
certainty: thanks
stonevil has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
geggam has joined #ruby
<ocx>
i have these files in many different directories, all files have same extension can i do like rsync -r *.txt for example to capture all these files?
Wolland has quit [Remote host closed the connection]
yinkum has joined #ruby
jonahR has joined #ruby
DrShoggoth has joined #ruby
pen has quit [Ping timeout: 250 seconds]
<JustMozzy>
certainty: funny. if I do Dir.chdir(folder) and then Dir.glob(uri) I get my files
shoerain has joined #ruby
yfeldblum has joined #ruby
<certainty>
ocx: man rsync ... you probably want --include
s2013 has joined #ruby
mikepack_ has joined #ruby
<certainty>
JustMozzy: i assume an oddity with the path. I don't know a thing about it on windows though
stonevil has joined #ruby
<shoerain>
Howdy, i'm not too familiar with ruby. What would be ruby's equivalent to a python virtualenv? bundler? I want a throwaway ruby environment where I can `gem install` whatever I want, without touching the system versions of ruby/gem.
guilleiguaran has quit [Ping timeout: 264 seconds]
palantir_ has quit [Ping timeout: 260 seconds]
clov3r has joined #ruby
Jdubs has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
mtlatif_ has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
clov3r has joined #ruby
<shoerain>
havenwood: looks like there are quite a lot of options (chruby, gst, gs, ohmygems) even without including rvm/rbenv. Wow... well, here's to getting chgems to work
tedstriker has joined #ruby
guilleiguaran has joined #ruby
yasushi has quit [Remote host closed the connection]
jrist has joined #ruby
mtlatif_ has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
dubsteph has joined #ruby
<ocx>
certainty: so mainly -r, --recursive recurse into directories and --include=*.txt ?
hl has joined #ruby
snath has quit [Ping timeout: 260 seconds]
<workmad3>
ocx: and -u to update
Jdubs has quit [Ping timeout: 260 seconds]
im0b has quit [Ping timeout: 264 seconds]
<ocx>
workmad3: and what to delete the old files on destination directory? i need to have an exact clone
tjbiddle has quit [Quit: tjbiddle]
<certainty>
ocx: --delete
rainmanjam has joined #ruby
tonni has quit [Remote host closed the connection]
kevind has joined #ruby
sailias1 has joined #ruby
<certainty>
ocx: also i like to work in archive-mode to preserve permissions
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cloud|nix has quit [Quit: Ex-Chat]
alekst has joined #ruby
lepht has joined #ruby
Avahey has joined #ruby
coca_rails has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
jrist has quit [Read error: Connection reset by peer]
mojo619 has quit [Quit: mojo619]
Macaveli has quit [Ping timeout: 260 seconds]
viki has joined #ruby
terrellt has joined #ruby
Davey has joined #ruby
joonty has joined #ruby
tjbiddle has joined #ruby
Rylee has joined #ruby
mando_ has joined #ruby
dkamioka has quit [Remote host closed the connection]
intuxicated has quit [Read error: No route to host]
coca_rails has quit [Ping timeout: 240 seconds]
jrist has joined #ruby
havenwood has quit []
_maes_ has joined #ruby
lmickh has joined #ruby
angusigu1ss has joined #ruby
petey has joined #ruby
Tr_ has joined #ruby
Hanmac has joined #ruby
<certainty>
ocx: you need to exclude all files you don't want to include also you need to include the directory above ... so something like rsync -avHKr --delete --include '*.txt' --include '*/' --exclude '*' source target
h0lyalg0rithm has joined #ruby
Wolland has joined #ruby
dkamioka has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
h0lyalg0rithm has quit [Client Quit]
Yahkob has joined #ruby
rippa has joined #ruby
browndawg has left #ruby [#ruby]
nisstyre has joined #ruby
terrellt_ has joined #ruby
angusigu1ss has quit [Ping timeout: 265 seconds]
Kabaka has joined #ruby
bthesorceror has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
terrellt has quit [Ping timeout: 248 seconds]
terrellt_ is now known as terrellt
bthesorceror has joined #ruby
bthesorceror has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Computer has gone to sleep.]
bthesorceror has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
kate_r has quit [Ping timeout: 260 seconds]
arietis has joined #ruby
CorySimmons has left #ruby [#ruby]
CorySimmons has joined #ruby
clamstar has joined #ruby
zoscoy has joined #ruby
pen has joined #ruby
kpshek has quit []
bigkevmcd has quit [Quit: Ex-Chat]
x77686d has joined #ruby
e^0 has joined #ruby
blaxter_ is now known as blaxter
razibog has joined #ruby
zoscoy has quit [Client Quit]
dzhulk has quit [Quit: Leaving.]
msmith__ has joined #ruby
bigkevmcd has joined #ruby
jerius has joined #ruby
jhass|off is now known as jhass
aspires has joined #ruby
heftig has quit [Quit: Quitting]
Yahkob has quit [Remote host closed the connection]
Yahkob has joined #ruby
rm_ has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
DrShoggoth has quit [Read error: Connection reset by peer]
m8 has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
msmith_ has quit [Ping timeout: 272 seconds]
msmith_ has joined #ruby
msmith__ has quit [Read error: Connection reset by peer]
ocx has quit [Ping timeout: 245 seconds]
polysics has left #ruby [#ruby]
markalanevans has quit [Ping timeout: 248 seconds]
Yahkob has quit [Ping timeout: 265 seconds]
sailias has joined #ruby
sailias has quit [Client Quit]
h0lyalg0rithm has joined #ruby
Aryasam has joined #ruby
h0lyalg0rithm has quit [Client Quit]
kpshek has joined #ruby
sailias2 has quit [Ping timeout: 272 seconds]
tjbiddle has quit [Quit: tjbiddle]
jerius has quit []
thesheff17 has joined #ruby
<shevy>
guys, it's time again
<shevy>
get undressed
bthesorceror has quit [Remote host closed the connection]
freakazoid0223 has left #ruby ["Leaving"]
baroquebobcat has joined #ruby
bthesorceror has joined #ruby
sparrovv has quit [Read error: Connection reset by peer]
estebanrules has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
zeeraw has joined #ruby
einarj has quit [Remote host closed the connection]
Aryasam has quit [Read error: Connection reset by peer]
jlast has joined #ruby
tempered has quit [Quit: !q]
DrShoggoth has joined #ruby
sleepersawake has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
Megtastique has quit []
jonah_k has joined #ruby
yfeldblum has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
sparrovv has joined #ruby
dx7 has quit [Remote host closed the connection]
sleepersawake has quit [Remote host closed the connection]
dx7 has joined #ruby
aspires has quit []
bluenemo has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
yellow5 has quit [Ping timeout: 260 seconds]
dx7_ has joined #ruby
Guest33603 has quit [Ping timeout: 245 seconds]
dx7 has quit [Read error: Connection reset by peer]
sleepersawake has joined #ruby
dagobah has quit [Quit: Leaving...]
Aryasam has joined #ruby
jerius has joined #ruby
Megtastique has joined #ruby
mando_ has quit [Remote host closed the connection]
echevemaster has joined #ruby
aganov has quit [Remote host closed the connection]
mando_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
duggiefresh has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
LekeFly has quit [Ping timeout: 260 seconds]
phansch has quit [Quit: Leaving]
dzhulk has joined #ruby
sdelmore has joined #ruby
JustMozzy has quit [Remote host closed the connection]
havenwood has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
vermele has quit [Read error: Connection reset by peer]
vermele has joined #ruby
Aryasam_ has joined #ruby
yellow5 has joined #ruby
Aryasam has quit [Ping timeout: 250 seconds]
seekwill has joined #ruby
brennanMKE has joined #ruby
brennanMKE has quit [Remote host closed the connection]
seekwill is now known as Guest17184
brennanMKE has joined #ruby
mercwithamouth has joined #ruby
DrShoggoth has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alassiter has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
bbloom has joined #ruby
tvw has joined #ruby
kpshek has quit []
<shevy>
anyone ever thought of bundling small icons into a rubygem package?
shredding has quit [Quit: shredding]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<cout>
shevy: yes but I grew up southern baptist, so we frown on that sort of thing
sleepersawake has quit [Remote host closed the connection]
io_syl has quit []
dblessing_ has joined #ruby
<shevy>
you southern baptist guys are truly conservative
werdnativ has joined #ruby
<cout>
but I'm trying to repent of my false orthodoxy!
<shevy>
well good to see that someone has tried that, I was more thinking of generic icons without any style, even smaller icons. things like simple icons like small arrows (in all directors), some dot-images and such
Wolland has quit [Remote host closed the connection]
<shevy>
*directions
blaxter has quit [Quit: foo]
<jhass>
nah, we got unicode for that
<shevy>
:(
<shevy>
don't take away my small cute generic icons!
<shevy>
my favourite is still the fileutils gem depending on rmagick
<jhass>
"Rails asset pipeline plugin and CSS mappings for the Entypo pictograms by Daniel Bruce"
ebetancourt has joined #ruby
ebetancourt has quit [Max SendQ exceeded]
<shevy>
thanks btw jhass
whomp has joined #ruby
ebetancourt has joined #ruby
ebetancourt has quit [Max SendQ exceeded]
ebetancourt has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
ebetancourt has quit [Max SendQ exceeded]
Hanmac has joined #ruby
ebetancourt has joined #ruby
ebetancourt has quit [Max SendQ exceeded]
stonevil has quit [Quit: Computer has gone to sleep.]
ghr has quit [Quit: Computer has gone to sleep.]
Hanmac1 has quit [Ping timeout: 245 seconds]
greenarrow has quit [Quit: 500]
ebetancourt has joined #ruby
ebetancourt has quit [Max SendQ exceeded]
maletor has joined #ruby
angusigu1ss has quit [Ping timeout: 250 seconds]
sleepersawake has joined #ruby
Yatharth has joined #ruby
burlyscudd has joined #ruby
pen has joined #ruby
_Andres has joined #ruby
vermele has quit [Read error: No route to host]
vermele has joined #ruby
ebetancourt has joined #ruby
<slowcon>
hey guys. i wrote a script that goes to a music forum and scrapes all of the "Main Genre" titles using Nokogiri and css selectors. i put the output into an array using .map EX: "genre = grab.css(".forumtitle").map(&:text)" how can i pass these results to a database that will insert into seperate rows, not entire array in one cell.
sleepersawake has quit [Remote host closed the connection]
<jhass>
slowcon: just iterate over the array you got in genre (and name the variable genres since it contains many)
timonv has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
pu22l3r_ has joined #ruby
Yatharth has quit [Max SendQ exceeded]
momomomomo has joined #ruby
sparrovv has quit [Remote host closed the connection]
Yatharth has joined #ruby
sparrovv has joined #ruby
pel_daniel has joined #ruby
sdelmore has quit [Quit: Leaving.]
tongcx has quit [Quit: leaving]
andikr has quit [Read error: Connection reset by peer]
jfoy has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
sparrovv has quit [Remote host closed the connection]
LekeFly has joined #ruby
sdelmore has joined #ruby
yfeldblum has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
ahawkins has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 250 seconds]
starfox21 has joined #ruby
OdNairy has joined #ruby
<dachi>
code climate
<dachi>
what is that too complex outside method definitions i don't get
<dachi>
:|
dkamioka has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
rylinaux_ has quit [Remote host closed the connection]
addisaden has quit [Ping timeout: 260 seconds]
snath has joined #ruby
DaniG2k has quit [Quit: leaving]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pen has quit [Remote host closed the connection]
dkamioka_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
cjsarette has joined #ruby
rh1n0 has joined #ruby
roolo has quit [Quit: Leaving...]
IceDragon_ has joined #ruby
IceDragon has quit [Ping timeout: 250 seconds]
cj3kim has joined #ruby
whomp has quit [Ping timeout: 260 seconds]
dkamioka_ has quit [Ping timeout: 260 seconds]
poulson has quit [Remote host closed the connection]
dkamioka has joined #ruby
kaliya has quit [Quit: Lost terminal]
hobodave has quit [Quit: Computer has gone to sleep.]
jle` has quit [Ping timeout: 246 seconds]
jzig has joined #ruby
Hanmac has joined #ruby
zeeraw has joined #ruby
gnephiak has joined #ruby
IceDragon_ is now known as IceDragon
yacks has quit [Ping timeout: 272 seconds]
pen has joined #ruby
barratt has quit [Ping timeout: 260 seconds]
_Andres has quit [Read error: Connection reset by peer]
ace_striker has joined #ruby
ace_striker is now known as Guest42661
Authenticator has quit [Remote host closed the connection]
Megtastique has quit []
sailias has joined #ruby
burlyscudd has quit [Quit: Leaving.]
pranny has quit [Quit: Leaving.]
pen has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
pen has joined #ruby
pen has quit [Client Quit]
obs__ has quit [Quit: Konversation terminated!]
pen has joined #ruby
<slowcon>
Yatharth: jhass: i wrote up the algorithm in plain text to help myself understand what needs to happen. can you check it out and make any suggestions to the way im currently scraping http://pastebin.com/nEGYKVKi
obs has joined #ruby
poulson has joined #ruby
centrx has joined #ruby
pen has quit [Client Quit]
Solnse has joined #ruby
pen has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
stonevil has joined #ruby
jobewan has joined #ruby
Wolland has joined #ruby
alassiter has left #ruby [#ruby]
Hanmac has quit [Ping timeout: 272 seconds]
<jhass>
slowcon: having a table name encoding informations is uncommon, just do a posts table, adding the subgenre_id lets you already easily filter them for the subgenre
sparrovv has joined #ruby
maroloccio has quit [Ping timeout: 272 seconds]
<jhass>
that is the schema of your subGENRENAME tables is already sufficient to hold all posts across all subgenres without conflicts
Yatharth has quit [Quit: Leaving]
pen has quit [Client Quit]
sparrovv has quit [Remote host closed the connection]
<jhass>
for the table names I'd strip of _main but that's probably just preference
dzhulk has quit [Quit: Leaving.]
mjs2600 has quit [Remote host closed the connection]
i_s has joined #ruby
Norrin has quit [Ping timeout: 265 seconds]
<slowcon>
jhass: i added main because so many things in my code were named genre or genres
<slowcon>
jhass: i guess i could have one table to hold all the songs that download, and just run queries on that
heftig has joined #ruby
Hobogrammer_ has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
Yahkob has joined #ruby
vlad_starkov has joined #ruby
pavilionXP has joined #ruby
<jhass>
the variable names shouldn't influence your schema
<slowcon>
jhass: having some trouble passing the array to the DB
sailias1 has joined #ruby
<jhass>
iterate over the array: genres.each do |genre| add_genre_to_db genre unless db_has_genre? genre; end
vlad_starkov has quit [Remote host closed the connection]
Hanmac has joined #ruby
vlad_starkov has joined #ruby
alpha123 has joined #ruby
krisbulman is now known as [krisbulman]
<slowcon>
jhass: going to play around with it now, thanks for pointing me in the right direction
Hobogrammer has quit [Ping timeout: 248 seconds]
sailias has quit [Ping timeout: 250 seconds]
gbt has quit [Quit: Leaving...]
cj3kim has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 250 seconds]
mjs2600 has joined #ruby
phansch has joined #ruby
kobain has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
blaxter_ has joined #ruby
mojjojo has joined #ruby
Butcho has joined #ruby
Monk_code has joined #ruby
whomp has joined #ruby
aspires has joined #ruby
h0lyalg0rithm has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
duggiefresh has joined #ruby
Norrin has joined #ruby
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
pel_daniel has quit [Ping timeout: 272 seconds]
yinkum has quit [Quit: yinkum]
gigetoo has quit [Remote host closed the connection]
subbyyy has joined #ruby
Sammael has quit [Ping timeout: 246 seconds]
aspires has quit [Read error: Connection reset by peer]
s2013_ has joined #ruby
poulson has quit [Remote host closed the connection]
aspires has joined #ruby
Spami has joined #ruby
failshel_ has joined #ruby
h0lyalg0rithm has quit [Ping timeout: 245 seconds]
s2013 has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<ixti>
how bad is idea of initiating new instance upon each bunch of commands to redis?
momomomomo has quit [Quit: momomomomo]
failshell has quit [Ping timeout: 260 seconds]
<ixti>
i guess i'm suffering from premature optimization decease
Solnse1 has joined #ruby
Solnse has quit [Disconnected by services]
Solnse1 is now known as Solnse
Hanmac has quit [Ping timeout: 250 seconds]
_Andres has joined #ruby
Yahkob has quit [Remote host closed the connection]
Yahkob has joined #ruby
pranny has joined #ruby
sailias has joined #ruby
Wolland has joined #ruby
klaut has quit [Remote host closed the connection]
razibog has quit [Ping timeout: 248 seconds]
sailias1 has quit [Ping timeout: 245 seconds]
e^0 has quit [Quit: WeeChat 0.4.2]
nanoyak has joined #ruby
rubyracer has joined #ruby
Yahkob has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
Hanmac has joined #ruby
RoryHughes has quit []
timonv has quit [Remote host closed the connection]
coca_rails has joined #ruby
hobodave has joined #ruby
sambao21 has joined #ruby
sailias1 has joined #ruby
s2013_ has quit [Ping timeout: 248 seconds]
robbyoconnor has joined #ruby
yfeldblu_ has joined #ruby
sambao21 has quit [Client Quit]
Monk_code has quit [Remote host closed the connection]
Tomasso has joined #ruby
sailias2 has joined #ruby
sailias2 has quit [Client Quit]
razibog has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
Monk_code has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
CorySimmons has left #ruby [#ruby]
lethjakman has joined #ruby
angusigu1ss has joined #ruby
<lethjakman>
hey, is there a way to use rand(<range>) with variables like: rand(top..min)
sailias1 has quit [Ping timeout: 250 seconds]
stkowski has joined #ruby
<centrx>
lethjakman, Yes, that is how Range works
<lethjakman>
centrx: I tried it and it returned nil
<lethjakman>
ohhh
<lethjakman>
I swapped t hem
<alpha123>
centrx: He's asking if rand() can take a range as an argument
<lethjakman>
my bad
mocfive has joined #ruby
danman has joined #ruby
<centrx>
alpha123, Yes on that too!
obs has quit [Quit: Konversation terminated!]
<lethjakman>
another question..is there a way to make rand generate a decimal?
Sawbones has joined #ruby
<alpha123>
centrx: Cool, I didn't know that. :)
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx>
lethjakman, Make the range endpoints be floats
thams has joined #ruby
werdnativ has quit [Quit: werdnativ]
<lethjakman>
ahhh
<lethjakman>
smart
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<slowcon>
jhass: got it to work, but not cycling through the array. adding the entire array to each cell
mary5030_ has quit [Remote host closed the connection]
mojo619 has joined #ruby
<jhass>
main_genre.insert(:genre => "#{genres}") what variable are you inserting there? what variable contains your single genre?
Monk_code has quit [Remote host closed the connection]
noop has joined #ruby
cj3kim has joined #ruby
RubNoob has joined #ruby
<slowcon>
jhass: i dont have a variable for single genre. "genres" grabs all the names and adds them to an array with .map(correct me if i am wrong)
<jhass>
yes you do, each does it provide you
<slowcon>
jhass: and then the .each is supposed to cycle through each value of the array?
<jhass>
yes and assign it to the first parameter of the block you pass it
zB0hs has joined #ruby
Noldorin has joined #ruby
reset has joined #ruby
SilentHobo has joined #ruby
arietis has joined #ruby
RoryHughes has joined #ruby
asgardBSD has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
rushed has joined #ruby
coca_rails has joined #ruby
madb055 has quit [Read error: Connection reset by peer]
danshult_ is now known as danshultz
<rushed>
are there beginning of time / end of time sentinel values?
sdwrage has joined #ruby
<slowcon>
jhass: ahhhhhh
<slowcon>
jhass: genres.each do |genre|
<slowcon>
main_genre.insert(:genre => genre)
<jhass>
;)
<slowcon>
awesome, getting closer :)
Hobogrammer_ has quit [Ping timeout: 250 seconds]
madb055 has joined #ruby
dumdedum has joined #ruby
ferr has joined #ruby
<ferr>
what's the difference between str.split("") and str.split(//)
razibog has quit [Ping timeout: 245 seconds]
<centrx>
ferr, Probably nothing, except str.split(//) may be slightly slower because it creates a Regexp object
<ferr>
thanks
coca_rails has quit [Ping timeout: 240 seconds]
<jhass>
ferr: there's also .chars and .each_chars to cycle through all characters of a string
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
*each_char
<slowcon>
jhass: so now for the ID part, im trying to just pull the unique selector from the URL. any tips on how to scrape or format just the ID from the URL? scraps <a href="forumdisplay.php?f=168&s=f40c55985869f6a47e176e2063a8e739">Discographies</a> and im just looking for "168"
machuga is now known as machdaylechuga
machdaylechuga is now known as machuga
<jhass>
well, just grab the attribute, split at ? to get the query string, split it at & to get the individual parameters and split them at = to get key value pairs
Guest44594 is now known as ixx
Noldorin has quit [Max SendQ exceeded]
kiba` has joined #ruby
saarinen has joined #ruby
cj3kim has quit [Remote host closed the connection]
madb055 has quit [Ping timeout: 260 seconds]
sambao21 has joined #ruby
rdark has quit [Quit: leaving]
<jhass>
fire up irb, require 'nokogiri' and do element = Nokogiri::HTML('<a href="forumdisplay.php?f=168&s=f40c55985869f6a47e176e2063a8e739">Discographies</a>').css('a').first to play a bit around with it
mehlah has joined #ruby
decoponio has quit [Quit: Leaving...]
<slowcon>
jhass: honestly never worked with code directly in irb
<jhass>
you should try!
<slowcon>
jhass: you suggest that just so im not pinging the server every time im testing changes?
<zellio>
REPL FTW
<jhass>
or better start right of with pry: gem install pry
<jhass>
slowcon: much more importantly so that you get direct feedback
<slowcon>
i just got pry last night, but not positive on how to use it.
<slowcon>
my friend said
<slowcon>
you should put gem 'pry' in your Gemfile
DariusPHP has joined #ruby
kiba has quit [Ping timeout: 245 seconds]
<slowcon>
then you can put binding.pry somewhere in your code and you can check your values
kenneth has joined #ruby
<jhass>
for starters just run the pry command
dumdedum has quit [Quit: foo]
<jhass>
then you get something like your shell, except that it runs ruby code
<jhass>
but you can too just press up to get the last line you typed and modify it etc.
arietis has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby
Noldorin has joined #ruby
sdelmore has quit [Quit: Leaving.]
Noldorin has quit [Client Quit]
arietis has joined #ruby
slowcon has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
maletor has quit [Remote host closed the connection]
maletor has joined #ruby
sdelmore has joined #ruby
subbyyy has quit [Ping timeout: 245 seconds]
subbyyy_ has joined #ruby
razibog has joined #ruby
jbueza has joined #ruby
bricker has joined #ruby
<bricker>
Agree/Disagree: If you want good software, you need good developers. If you want a lot of software, you need a lot of developers. Therefore, if you want a lot of good software, you need a lot of good developers.
Noldorin has joined #ruby
moted has quit [Quit: moted]
<centrx>
Pointless
vlad_starkov has joined #ruby
<bricker>
That wasn't one of the options
<centrx>
DISAGREE
<centrx>
Next question
<bricker>
Why?
madb055 has joined #ruby
<centrx>
It is either a trivial statement, or it is a false statement along the lines of The Mythical Man-Month
nari has quit [Ping timeout: 248 seconds]
pranny has quit [Read error: Connection reset by peer]
pranny has joined #ruby
Es0teric has quit [Remote host closed the connection]
<rurban_>
If you want a lot of good software, you need a better language and environment, never more developers
maletor has quit [Ping timeout: 272 seconds]
Hiall has quit [Quit: hiall]
Es0teric has joined #ruby
mehlah has quit [Read error: Connection reset by peer]
jlast has quit [Read error: Connection reset by peer]
<jhass>
broken link but I can imagine what you see, that's not the point of my questions
louism2wash has joined #ruby
jlast has joined #ruby
<jhass>
start thinking about the stuff you're using instead of copypasting stuff together until it works somehow
Xuisce1 has joined #ruby
JasmeetQA has quit [Quit: Leaving.]
IceyEC has quit [Quit: IceyEC]
banister has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ferr has quit [Ping timeout: 250 seconds]
<slowcons>
jhass: just dont understand the question. what type of object is it? its a string?
petey has joined #ruby
pranny has quit [Ping timeout: 260 seconds]
<jhass>
can it be a string? String had the split method, this one doesn't
werdnativ has joined #ruby
maletor_ has quit [Read error: Connection reset by peer]
jlebrech_ has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
<jhass>
so pry nicely printed you the structure of the object you got there
nichtdiebohne has joined #ruby
<jhass>
what do you want from that in a first step?
wildroman2 has joined #ruby
<jhass>
what method the object offers you might give you access to that?
<slowcons>
ok so i did, slow = "slow" and did a ls slow
<slowcons>
which gave me String#methods
Xuisce1 has quit [Ping timeout: 245 seconds]
<slowcons>
so this one is an Enumerable object?
Yahkob has quit [Remote host closed the connection]
<louism2wash>
Hey guys, I have a hash in the form of {1 => {'key 1' => 'value 1', 'key 2' => 'value 2'}, 2 => …} and I was wondering if there was a single line way to convert that hash to the form of {'value 1' => 'value 2'}. I am taking the inputs from an html form which is why the initial hash if funky. Thanks.
nichtdiebohne has quit [Client Quit]
meinside has quit [Quit: Connection closed for inactivity]
Yahkob has joined #ruby
dumdedum has quit [Quit: foo]
maletor has joined #ruby
<jhass>
slowcons: Enumerable is a module, objects can't be instances of modules, but the objects type includes the Enumerable object and thus its methods are available on the object too
nichtdiebohne has joined #ruby
bean has joined #ruby
<jhass>
louism2wash: for that particular example Hash[hsh.values.map {|sub| [sub['key 1'], sub['key 2']] }] assuming 2 => etc continue that scheme
Alina-malina has quit [Read error: Connection reset by peer]
<louism2wash>
jhass: let me give that a try
Alina-malina has joined #ruby
nhhagen has joined #ruby
SilentHobo is now known as Hobogrammer
dangerousdave has joined #ruby
Guest42661 has quit [Ping timeout: 245 seconds]
jprovazn has joined #ruby
Yahkob has quit [Read error: Operation timed out]
<slowcons>
jhass: is the corect answer a Node?
agent_wh1te has joined #ruby
<jhass>
slowcons: conceptually it's a node in the DOM, yes
SHyx0rmZ has joined #ruby
<jhass>
and it's class ancestry also includes Nokogiri::XML::Node
_bart has quit []
carraroj has joined #ruby
Sammael has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
<jhass>
slowcons: so look again at the structure pry gives you if you just type element
<jhass>
what do you want from that?
itadder has joined #ruby
moted has joined #ruby
<slowcons>
value
<jhass>
And what method in Nokogiri::XML::Node could provide you that?
jrist has quit [Ping timeout: 272 seconds]
ringaroses has joined #ruby
<slowcons>
maybe inner_html=?
<jhass>
try it out
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lmickh has quit [Ping timeout: 260 seconds]
Es0teric has quit [Ping timeout: 248 seconds]
angusigu1ss has joined #ruby
gnephiak has quit [Quit: Konversation terminated!]
Skylab has joined #ruby
razibog has quit [Ping timeout: 272 seconds]
rushed has quit [Quit: rushed]
yourmysin has joined #ruby
Hobogrammer_ has joined #ruby
forced_request has quit [Ping timeout: 245 seconds]
shaunbaker has joined #ruby
asteros has joined #ruby
Es0teric has joined #ruby
alexherbo2 has joined #ruby
Hobogrammer has quit [Disconnected by services]
Hobogrammer_ is now known as Hobogrammer
yellow5 has quit [Quit: time to go!]
ryanf has quit [Ping timeout: 245 seconds]
phansch_ has joined #ruby
ghr_ has joined #ruby
ghr_ has quit [Max SendQ exceeded]
Naoe-Kanno has joined #ruby
<soahccc>
OT: Anyone knows a "dummy safe" webpage explaining what is and how to use GPG or Email signatures/encryption in general? I always get the question how to open my signature file to add it to the contacts book :(
phansch has quit [Ping timeout: 252 seconds]
ryanf has joined #ruby
sambao21 has joined #ruby
diegoviola has joined #ruby
jlebrech_ has quit [Quit: Computer has gone to sleep.]
SHyx0rmZ has quit [Ping timeout: 260 seconds]
wildroman2 has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 265 seconds]
Norrin has quit [Ping timeout: 245 seconds]
ferr has joined #ruby
itadder has quit [Remote host closed the connection]
yellow5 has joined #ruby
mityaz has quit [Quit: See ya!]
Guest17184 has quit [Ping timeout: 248 seconds]
rushed has joined #ruby
mzr has joined #ruby
rushed has quit [Client Quit]
<mzr>
question; why does everyone use #ruby instead of ##ruby?
waldi_ has joined #ruby
Asher has quit [Quit: Leaving.]
<pasties>
mzr: self-reinforcement, there are actually people here and none in the other channel... soo where would you prefer to idle?
ryanf has quit [Ping timeout: 260 seconds]
marienz has quit [Ping timeout: 604 seconds]
<jhass>
mzr: why should we use ##ruby over #ruby?
zachallett has quit [Remote host closed the connection]
fedesilv_ has joined #ruby
ryanf has joined #ruby
<mzr>
not a clue jhass
<jhass>
then why do you even wonder we we don't use ##ruby
<jhass>
*why we
yfeldblu_ has quit [Remote host closed the connection]
jfoy has quit [Quit: jfoy]
<mzr>
because most major languages use ## chanenls
tjbiddle has joined #ruby
lmickh has joined #ruby
RoryHughes has joined #ruby
<jhass>
is that so? examples?
<mzr>
C java
<jhass>
note that #ruby isn't the official channel too, #ruby-lang is
troyready has joined #ruby
noop has quit [Ping timeout: 265 seconds]
<jhass>
#c was probably already gone when people wanted to start one for it
zachallett has joined #ruby
<mzr>
thanks for the heads up jhass, just curious not looking to argue or anything
<jhass>
so two counter examples: #python #php
jerius has quit [Ping timeout: 260 seconds]
fedesilva has quit [Ping timeout: 260 seconds]
Guest88060 has quit [Quit: Guest88060]
<havenwood>
it seems not uncommon for a language to have two official channels, one that requires auth and the other that doesn't
<waldi_>
hi, i'm new to ruby, i wanted to use ruby-vnc, downloaded the gem file and installed it with "gem install ruby-vnc.gem", and now have this code: http://pastebin.com/2nhTV1cH
<waldi_>
but it says: clicker.rb:2:in `<main>': uninitialized constant Object::Net (NameError)
<waldi_>
do i have to include something or so?
petey has quit [Remote host closed the connection]
<mzr>
jhass; ##javascript, do we need to keep going with this?
<waldi_>
can't find any documention on ruby-vnc...
barratt has quit [Read error: Connection reset by peer]
<jhass>
waldi_: you need to require it first, don't know ruby-vnc, but if it adheres to standards and the class should be Net::VNC then it's probably require 'net/vnc'
Evenix is now known as evenix
<havenwood>
#python and #python-unregistered, #ruby-lang and #ruby, etc
petey has joined #ruby
<mzr>
thank you havenwood, just was wondering if there was a reason this one was the prefered channel
kirun has joined #ruby
<havenwood>
mzr: because it is unregistered
<jhass>
mzr: #perl - no idea
<soahccc>
at least ruby-lang changed something so that I don't have to leave the channel in order to change my nick in order to autheticate :)
ryanf has quit [Ping timeout: 250 seconds]
jlast has quit [Remote host closed the connection]
jerius has joined #ruby
asteros_ has joined #ruby
Cooler_ has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
tjr9898 has joined #ruby
jlast has joined #ruby
asteros has quit [Ping timeout: 260 seconds]
asteros_ is now known as asteros
ryanf has joined #ruby
bricker has quit [Quit: leaving]
bricker has joined #ruby
mordocai has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mzr has left #ruby [#ruby]
bricker has quit [Client Quit]
bricker has joined #ruby
SAKUJ0 has joined #ruby
RoryHughes has quit []
<SAKUJ0>
hi! for my thesis i want to start learning python (should be very quick). i wonder if i should learn ruby parallely. how similar are those two?
<philcrissman>
SAKUJ0: similar enough. Have fun. :)
bricker has joined #ruby
<havenwood>
SAKUJ0: They are quite similar, but Ruby is more influenced by Smalltalk and Lisp.
RoryHughes has joined #ruby
santiago has joined #ruby
santiago is now known as loc22
<jhass>
waldi_: maybe something that went wrong when you installed the gem, but certainly more related to the gem than to ruby
Cooler_ has joined #ruby
<havenwood>
SAKUJ0: I prefer Ruby. (Crush the snake!)
sdwrage has quit [Quit: This computer has gone to sleep]
jlebrech_ has joined #ruby
yellow5 has quit [Ping timeout: 260 seconds]
Hobogrammer_ has joined #ruby
<snkcld>
when i create a model in activerecord, it should automatically assign it an id right?
rainmanjam has quit [Remote host closed the connection]
rezzack has joined #ruby
sepp2k has joined #ruby
<centrx>
snkcld, If it is created/saved, the database generally assigns the ID
ringaroses has quit [Quit: Leaving]
rainmanjam has joined #ruby
yellow5 has joined #ruby
<SAKUJ0>
Thanks guys :p I guess I will give it a shot. Most particle physics applications are very primitive it should be easy to maintain multiple copies
Hobogrammer has quit [Ping timeout: 260 seconds]
<viki>
hi people
jonah_k has quit [Remote host closed the connection]
<SAKUJ0>
a few months ago i received a program by some dude who called all(!) his variables x1 to x240
jonno11 has joined #ruby
ferr has quit [Read error: Operation timed out]
<lupine>
wat.rb
<zB0hs>
that sounds like fun code to read
vlad_starkov has joined #ruby
<SAKUJ0>
that sounds like an invitation to redo all code from scratch lol
* lupine
is getting a SystemStackError out of TCPSocket#read
failshel_ has quit [Remote host closed the connection]
Noldorin has quit [Read error: Connection reset by peer]
<viki>
Can somebody point me in the direction of what that is and where I can read more about it?
<viki>
path something, dots, something?
rainmanjam has quit [Ping timeout: 248 seconds]
<slowcons>
jhass: dont think its inner_html
<jhass>
slowcons: so take a second look at the structure, is it flat? is it nested? anything that hints some names what inner childs could be called?
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lupine>
that's what I get for trying to use ruby2.0, I guess
<jhass>
slowcons: and compare to the list of available methods
coca_rails has quit []
mocfive has quit [Remote host closed the connection]
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
jprovazn is now known as jprovazn_afk
asmodlol has quit [Remote host closed the connection]
<zB0hs>
viki .. means the parent of the current directory... just the . means the current directory
mocfive has joined #ruby
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
mikepack_ has quit [Remote host closed the connection]
mocfive has quit [Read error: Connection reset by peer]
<jhass>
viki: the general concept is called relative paths
<x77686d>
viki: . and .. are names for the current directory and parent directory ./data/people.csv specifies the file people.csv in the data directory of this directory. ../data/people.csv indicates the data directory is in the parent of this directory.
mocfive has joined #ruby
sdwrage has joined #ruby
<zB0hs>
viki so if your current folder was Current and the parent was Parent then two dots would represent Parent/data/people.csv and one dot would refer to Parent/Current/data/people.csv
asmodlol has joined #ruby
jefflyne has joined #ruby
<viki>
oh ok cool. so my suspicion that it was looking for people.csv in the csv library was just totally off? i must not have understood the rest of what was going on in the error.
<zB0hs>
so it was looking for the data folder in the current directory because of the ./ when the data folder was actually in the parent directory, phonebook
<gr33n7007h>
reactormonk, Just for info if you install pry you can do; cd Kernel => show-source to_s pretty nifty
g0rd0 has joined #ruby
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<banister>
reactormonk or in pry you can use: show-source Float#to_s
<slowcons>
jhass: all of the exmaples im viewing seem to be using xpath
<banister>
gr33n7007h Kernel#to_s is a more general to_s that isn't quite the one he wants it seems
<jhass>
slowcons: did you try just using the method?
pushpak has joined #ruby
<gr33n7007h>
banister, yeah just noticed that now
<banister>
cool
axl_ has joined #ruby
<banister>
gr33n7007h congrats on suggesting pry though ;)
<gr33n7007h>
banister, awesome REPL
<reactormonk>
banister, which gem?
shaunbaker has joined #ruby
<banister>
gr33n7007h you're welcome ;)
jonah_k has joined #ruby
<banister>
reactormonk you'll need pry-doc plugin to pull C sources
shaunbaker has quit [Remote host closed the connection]
<slowcons>
jhass: i ran it as element.get_attribute which returned wrong args. i tried the arguments (a) (href) but both came back undefined
Astralum has quit [Ping timeout: 260 seconds]
<jhass>
slowcons: how is href defined in the structure you get from pry?
mikepack_ has joined #ruby
einarj has joined #ruby
<slowcons>
name
<jhass>
and the value is what kind of?
<reactormonk>
banister, thanks
agent_wh1te has quit [Quit: leaving]
<slowcons>
jhass: looks like a string?
<jhass>
so maybe try passing that to get_attribute ;)
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jle` has joined #ruby
larissa has joined #ruby
<slowcons>
jhass: i tried example.get_attribute(value)
Zesty has quit [Quit: Leaving...]
jprovazn_afk has quit [Quit: Odcházím]
bean has joined #ruby
nanoyak has joined #ruby
malthe has quit [Read error: Operation timed out]
mikepack_ has quit [Ping timeout: 250 seconds]
dayepa has quit [Remote host closed the connection]
relix has joined #ruby
<slowcons>
jhass: keep getting undefined local variable
<jhass>
slowcons: it's element.get_attribute("href") if we take a look at the docs you already found you'll notice that the #[] method provides the same feature, so element["href"] works too
rezonanc has quit [Ping timeout: 272 seconds]
Zesty has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
<jhass>
just stop copy pasting stuff you find and try to understand what those examples want to tell you
tjr9898 has quit [Remote host closed the connection]
<slowcons>
jhass: there is nothing to copy/paste
jlebrech_ has quit [Quit: Computer has gone to sleep.]
<slowcons>
jhass: haha you can legit search google for that string and come up with nothing :)
jfoy has joined #ruby
malthe has joined #ruby
Zesty has quit [Client Quit]
benlieb has joined #ruby
<shevy>
is there a simple way to alias to a class method?
<shevy>
like def self.foo should point to def self.bar
stonevil has joined #ruby
blaxter_ has quit [Quit: foo]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
bthesorceror has quit [Remote host closed the connection]
subbyyy_ has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
<jhass>
I guess class << self; alias bar foo; end; doesn't count as simple? :P
compleatang has joined #ruby
klaas_ is now known as klaas
mneorr has joined #ruby
<shevy>
well
<shevy>
we have, for non class methods, this:
<shevy>
alias foo bar
yetet has joined #ruby
<shevy>
hmm
Jdubs has joined #ruby
<shevy>
:(
asmodlol has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
asmodlol has joined #ruby
failshell has joined #ruby
duggiefresh has quit [Remote host closed the connection]
platzhirsch has joined #ruby
rezonanc has joined #ruby
<platzhirsch>
phansch_: get some popcorn for Travis CI
marr has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
wildroman2 has joined #ruby
failshell has quit [Read error: Operation timed out]
kpshek has quit []
TryX has joined #ruby
tjr9898 has joined #ruby
thesheff17 has quit [Ping timeout: 245 seconds]
mocfive has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mando_ has joined #ruby
alex88 has joined #ruby
duggiefresh has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
yourmysin has quit [Read error: Connection reset by peer]
Asher has joined #ruby
timonv has quit [Remote host closed the connection]
LLKCKfan has quit [Ping timeout: 250 seconds]
yalue has quit [Quit: Leaving]
<shevy>
platzhirsch do you do web stuff?
klaut has joined #ruby
grs has quit [Ping timeout: 245 seconds]
<platzhirsch>
shevy: yes
<shevy>
do you use sinatra?
dx7_ has quit [Remote host closed the connection]
<platzhirsch>
no
<shevy>
hmm
<shevy>
what else?
<platzhirsch>
Sinatra is not as overloaded as Rails, I don't like that
<platzhirsch>
It makes me feel cheap and agile
dx7 has joined #ruby
<platzhirsch>
so Rails yeah... but I mean what the heck, another web app I did in Flask (Python) this is more or less like Sinatra
<platzhirsch>
they are all the same :P
forced_request has joined #ruby
<xybre>
platzhirsch: whats up with TravisCI?
<platzhirsch>
xybre: ask that phansch_
centrx has joined #ruby
petey_ has quit [Remote host closed the connection]
maletor has joined #ruby
<phansch_>
xybre, everything is fine
phansch_ is now known as phansch
petey has joined #ruby
Jdubs has quit [Remote host closed the connection]
<phansch>
I just figured out how to deploy from travis to heroku today
<phansch>
that was very exiting :D
spacepipe is now known as slashpipe
<platzhirsch>
phansch: so you commit, push, tests are run and if successful deployed to Heroku?
Yahkob has joined #ruby
<phansch>
yep
<platzhirsch>
Nice, master of the tool chain
klaut has quit [Ping timeout: 248 seconds]
thesheff17 has joined #ruby
alex88 has quit [Quit: Leaving...]
dx7 has quit [Ping timeout: 260 seconds]
<shevy>
platzhirsch hmm rails won't work without installing a javascript engine these days, I think
<platzhirsch>
shevy: That should be correct
<dkamioka>
it requires node i think
<platzhirsch>
For instance
<shevy>
and at work I have a windows PC without superuser privilege, and I don't want to bug the web-admin guys )I think they hate me or rather, they hate me when I give them extra work)
jclrb has joined #ruby
<platzhirsch>
shevy: so use the Rails installer of RVM?
<shevy>
node? hmm
jclrb has left #ruby [#ruby]
<shevy>
that requires no compiling right?
whomp has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
<shevy>
platzhirsch they can install a javascript engine just by downloading alone into non-superuser accounts (local accounts)?
Noldorin has joined #ruby
<platzhirsch>
shevy: I am not sure anymore, it has to be done separately, but node can be installed locally, too
<platzhirsch>
might be even the default
forced_request has quit [Quit: No Ping reply in 180 seconds.]
grs has joined #ruby
BlakeRG has joined #ruby
kpshek has joined #ruby
<shevy>
hmm
forced_request has joined #ruby
<centrx>
Rails requires Node? What is this nonsense?
<BlakeRG>
is there a gem like `god` that provides a web interface for restarting workers?
evenix has quit [Ping timeout: 245 seconds]
<BlakeRG>
looking for a replacement for supervisord
jonahR has quit [Quit: jonahR]
louism2wash has quit [Quit: This computer has gone to sleep]
<platzhirsch>
BlakeRG: Sidekiq comes with a tool for that
<centrx>
Isn't god a gem?
<dkamioka>
centrx: Once it asked me for a javascript runtime engine or something like that... it suggested nodejs
<platzhirsch>
but only to control Sidekiq worker, not any Ruby program
<centrx>
Which body part did you pull this idea out of?
<shevy>
you get a notification "please install javascript engine"
bthesorceror has joined #ruby
blaxter_ has joined #ruby
<shevy>
because I see it when I install rails?
MyStartx has joined #ruby
<centrx>
shevy, That is if you install coffeescript
axl_ has quit [Quit: axl_]
<slowcons>
jhass: think im getting alot closer. i passed the element.get_attribute("href") to a variable. then i ran the split on that variable and its working
<centrx>
shevy, And it doesn't have to be nodejs
<shevy>
I did not say I used nodejs
GinoMan has joined #ruby
<centrx>
It is coffeescript that requires the Javascript engine
<centrx>
which makes sense
<shevy>
hmm
<shevy>
one can use rails without coffeescript?
* centrx
smacks shevy
<centrx>
This one can
<shevy>
good
<shevy>
coffeescript goes on my blacklist then
<BlakeRG>
the god gem does not provide any type of webUI to restart workers though; which is what i really need
<jhass>
slowcons: good :)
thesheff17 has quit [Ping timeout: 250 seconds]
geggam has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
Kricir has joined #ruby
Zai00 has quit [Quit: Zai00]
<slowcons>
jhass: i have to add a Nokogiri::XML::Node to my script now correct?
s2013_ is now known as s2013
geggam has joined #ruby
<jhass>
slowcons: you already have several ones, things like .css give you a list of those
platzhirsch has left #ruby [#ruby]
<lethjakman>
BlakeRG: that's not really gods thing. god is there more to get something started and to keep it running.
benlieb has quit [Quit: benlieb]
centrx has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
burlyscudd has quit [Ping timeout: 260 seconds]
seekwill has joined #ruby
tjr9898 has quit [Remote host closed the connection]
seekwill is now known as Guest8697
geggam has quit [Remote host closed the connection]
werdnativ has joined #ruby
vim_shim has joined #ruby
<Nilium>
What are the chances that the average Ruby user ever thinks about memory management or pointer usage?
rh1n0 has quit [Quit: im out!]
jkamenik has quit [Quit: Leaving.]
<xybre>
nil
scarolan has joined #ruby
gtsiftsis has joined #ruby
<Nilium>
I need to write a short thingy on memory/pointer usage in Ruby so people using OpenGL in Ruby aren't utterly confused at the concept of there being resources they have to manage
shredding has joined #ruby
gregf has joined #ruby
<slowcons>
jhass: i asked because i am getting an undefined method `get_attribute' for #<Nokogiri::XML::NodeSet error
<shevy>
Nilium so you write for advanced users?
Spami has joined #ruby
geggam has joined #ruby
<jhass>
slowcons: not look at the "for" part, is that the same one you discovered get_attribute for?
<Nilium>
That depends on what an advanced user is.
thesheff17 has joined #ruby
<jhass>
*now
mojjojo has quit [Quit: mojjojo]
<Nilium>
I'd have to probably write for beginners because the advanced users probably know languages with pointers.
asteros has joined #ruby
<Nilium>
Assuming the standard for "advanced" in Ruby means something other than "I built a social network with Rails"..
alex88 has quit [Quit: Leaving...]
* Nilium
will never stop having a low opinion of Rails people.
ppppaul has left #ruby ["Leaving"]
jovon has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0/20140130133743]]
<RubyPanther>
Nilium: most Ruby libraries manage the resources for you
<RubyPanther>
a proper wrapper might be a better effort than documentation
sarlalian has quit [Quit: WeeChat 0.4.0]
<RubyPanther>
unless you're documenting how to use it from the Ruby C API
Atrumx has joined #ruby
scarolan has quit [Quit: leaving]
jfoy has quit [Quit: jfoy]
<shevy>
Nilium well I think I am an advanced user, or at least not really a ruby-noobie, but I never had to really handle pointers in ruby
<gtsiftsis>
hi, can someone help me understand why Enumerable#min is slower than Array#sort!.first, although in theory Enumerable min is O(n) and quick sort implementation of Ruby sort! is on average O(n log n)?
havenwood has joined #ruby
<shevy>
it's a concept that does not seem to originate within normal ruby code
JZTech101 has joined #ruby
scarolan has joined #ruby
postmodern has joined #ruby
postmodern has quit [Changing host]
postmodern has joined #ruby
scarolan has quit [Client Quit]
<dkamioka>
gtsiftsis: interesting topic. You got that Enu#min is slower by testing it empirically?
<shevy>
damn, he got the numbers to back him up ;)
<gtsiftsis>
tested in all versions
sdelmore has quit [Quit: Leaving.]
tonni has joined #ruby
<jhass>
gtsiftsis: my interpretation would be that Enumerable#min adds a call to ruby land since it has to go through #each
<jhass>
while Array#sort! can operate in C land all the time
scarolan has quit [Client Quit]
<jhass>
but just a rough guess
<shevy>
god
maletor has quit [Ping timeout: 248 seconds]
<shevy>
.sort is slow
BlakeRG has left #ruby [#ruby]
zachallett has quit [Remote host closed the connection]
<workmad3>
gtsiftsis: test with increasing values of N
<workmad3>
gtsiftsis: and watch how each one increases
Yahkob has quit [Remote host closed the connection]
<gtsiftsis>
jhass your guess maybe is correct, I inspect with ruby-prof (40% in Fixnum#<=> 35% in Array.each)
scarolan has joined #ruby
<RubyPanther>
gtsiftsis: because Array#sort is probably optimized C, and Enumberable#min has to go through Comparable a bunch of times
meatherly has quit [Remote host closed the connection]
Jdubs has joined #ruby
jfoy has joined #ruby
<workmad3>
gtsiftsis: as you say, the sort will be slower... eventually ;)
meatherly has joined #ruby
<workmad3>
gtsiftsis: but that could easily be in the realm of millions of entries...
<gtsiftsis>
workmad3 true
<workmad3>
gtsiftsis: oh, also a.sort! gives you a massively unfair comparison
ryanf has left #ruby [#ruby]
Sawbones has quit [Remote host closed the connection]
<workmad3>
gtsiftsis: as that'll mean that on subsequent iterations (and into your .sort benchmark afterwards) your array will be sorted
sarlalian has joined #ruby
<workmad3>
gtsiftsis: and a sorted array is best-case for quicksort, iirc...
stryek has quit [Read error: Connection reset by peer]
clov3r has quit [Remote host closed the connection]
tjr9898 has joined #ruby
<terrellt>
^ That's probably why.
clov3r has joined #ruby
sdelmore has joined #ruby
<terrellt>
Geez, it's significantly faster than min too.
DariusPHP has quit [Remote host closed the connection]
<RubyPanther>
gtsiftsis: and if you mix floats and ints the difference goes down to min 5.160000 0.000000 5.160000 ( 5.162601) sort!.first 3.280000 0.000000 3.280000 ( 3.282422)
clov3r has quit [Read error: Connection reset by peer]
<RubyPanther>
that is with a = 4000.times.map { |i| n = rand(i * 100); rand(2)==0 ? i.to_i : i.to_f }
<workmad3>
gtsiftsis: iirc, quicksort on an already sorted array is O(n), same as .min... which will mean that you're comparing a C-optimisied version of an O(n) algorithm with a ruby-land O(n) algorithm after the first pass ;)
clov3r has joined #ruby
nszceta has quit [Read error: Connection reset by peer]
sarlalian has quit [Client Quit]
<terrellt>
workmad3: He tests sort.first, too. Also faster.
<shevy>
when I have a project 'foo' and inside that project I have foo/lib and foo/yaml, and a yaml file too, how would I load that yaml file?
<terrellt>
Oh, but he tests it next.
heftig has quit [Quit: Quitting]
bthesorceror has quit [Remote host closed the connection]
<workmad3>
terrellt: yup
dkamioka has quit [Remote host closed the connection]
<shevy>
I suppose YAML.load_file('foo.yml') would not work because it would assume the current working directory
meatherly has quit [Ping timeout: 248 seconds]
<workmad3>
gtsiftsis: if you remove your .sort! test, then suddenly .sort becomes slower ;)
Xeago_ has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
fedesilv_ has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
danman has quit [Quit: danman]
Asher has quit [Quit: Leaving.]
<gtsiftsis>
workmad3 the point was about sort and min, qsort on sorted arrays is indeed faster
stringoO has joined #ruby
Tr_ has quit [Ping timeout: 245 seconds]
skywritergr has joined #ruby
heftig has joined #ruby
sarlalian has joined #ruby
dangerousdave has joined #ruby
<workmad3>
gtsiftsis: right... and if you alter your test so that it's a fair comparison of average case with qsort, then .min is the quicker
wildroman2 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
dorei has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 248 seconds]
clov3r has quit [Ping timeout: 260 seconds]
<terrellt>
workmad3: Interestingly, if you presort a you don't get the same results.
mojjojo has joined #ruby
bthesorceror has quit [Read error: Operation timed out]
<gtsiftsis>
workmad3 can u explain please the "fair comparison"
<terrellt>
Oh, I guess you do.
Al___ has joined #ruby
momomomomo has joined #ruby
yfeldblum has joined #ruby
<terrellt>
gtsiftsis: In your test you compare a.sort to .min after testing a.sort!, which mutates a to be a pre-sorted array. So you're testing a pre-sorted array.sort vs a random array.min.
<workmad3>
gtsiftsis: you were basing your comparison on a general sort on an unordered array
Megtastique has joined #ruby
zoscoy has joined #ruby
<workmad3>
gtsiftsis: but in your test, you were always comparing against a quicksort (O(n) in best case) on a sorted array (qsort's best-case)
sambao21 has joined #ruby
<workmad3>
gtsiftsis: so your comparison wasn't matching your original assumption
<gtsiftsis>
workmad3 thanks (I thought you meant something else ... its late here)
mary5030 has joined #ruby
Megtastique has quit [Client Quit]
<workmad3>
gtsiftsis: it also wasn't fair on .min, because in the situation where the array is pre-sorted (as it was in about 19999 of the cases with sort) .first is what you'd use... so .min had to deal with an unsorted array situation and your sort.first versions with a sorted array... unfair comparison ;)
<gtsiftsis>
workmad3 true my first experiment was with sort! (sort was added last but without noticing your observation)
mjs2600 has quit [Remote host closed the connection]
jtdowney has quit []
yfeldblum has quit [Ping timeout: 265 seconds]
<workmad3>
gtsiftsis: I think I'm doing pretty well to remember the best-case for qsort from an algorithms lecture about 8 years ago :D
Aryasam has joined #ruby
philcris_ has joined #ruby
<gtsiftsis>
workmad3 :)
<workmad3>
gtsiftsis: oh, and it's 10p.m. here too ;)
kaldrenon has quit [Remote host closed the connection]
<gtsiftsis>
but here is midnight :)
<workmad3>
hehe
vim_shim has quit [Quit: Leaving]
aryaching has quit []
<slowcons>
jhass: sorry had to step away. no this is giving an error for XML::NodeSet instead of XML::Node
<jhass>
LnxBil: you need to do a require (require 'activeresource' I guess?)
jfoy has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
ndrei has joined #ruby
agjacome has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
<LnxBil>
@jhass: Alright ... Problem is gem 'activeresource' vs. require 'active_resource'
<LnxBil>
jhass: Thanks for stating the obivous
mneorr has quit [Ping timeout: 248 seconds]
<shevy>
in the old days before gems, noone would have been able to do gem 'foo' ;)
<shevy>
life was so simple!
blackmesa has joined #ruby
Hobogrammer_ has quit [Ping timeout: 260 seconds]
<jhass>
shevy: the old days are past. get over it! just accept it and switch to utf-8 and ruby 2.1 now!
<jhass>
(and to rack :P)
waldi_ has joined #ruby
<shevy>
damn
<shevy>
utf-8
<shevy>
rack hmm there was this guy who said I could use webrick+rack without rackup
<shevy>
I still wanna see the working example
waldi_ has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
<terrellt>
LnxBil: I did a ruby class not too long ago. Someone asked how to access a hash with dot-syntax, so I explained openstruct - using Rails caught me, since it auto requires, and I couldn't get it to require 'openstruct'. Because it's 'ostruct', obviously.
RoryHughes has quit []
jrist has joined #ruby
momomomomo has quit [Quit: momomomomo]
<LnxBil>
terrellt: downside of too much automation :-/
nisstyre has joined #ruby
<shevy>
yeah that is odd terrellt
kcombs has quit [Remote host closed the connection]
<shevy>
same with OptionParser
<shevy>
which is optparse I believe
<shevy>
ruby is too liberal
burlyscudd has joined #ruby
habanany has quit [Ping timeout: 272 seconds]
philcris_ is now known as philcrissman
jackal__ has joined #ruby
<jackal__>
hey everyone
jerius has quit [Ping timeout: 245 seconds]
<jackal__>
i am a beginning ruby programming, looking for some advice on how to bring my skills to the next level
sambao21 has quit [Quit: Computer has gone to sleep.]
<jackal__>
here is a program i recently made for guitar players, i was wondering if anyone could look it over and give me some advice or pointers
<shevy>
lagweezle in particular to ruby and the stdlib, I feel that it should be extremely consistent and fully documented
<lagweezle>
shevy: That would be kinda nice.
sambao21 has joined #ruby
asteros has quit [Quit: asteros]
<jhass>
jackal__: then the most common indention style is two spaces, but let's get to the code now
kloeri_ is now known as kloeri
<shevy>
is anyone of you following mruby closely?
<jackal__>
2 space increments?
<jhass>
jackal__: for a new line you can call puts just without arguments
<jackal__>
oh great! is it effective to have a space method for spacing though?
<shevy>
what will the space method do
<jackal__>
just for formatting, puts 2 empty newlines
<shevy>
hmm
tjr9898 has quit [Remote host closed the connection]
mengu has quit []
cburyta_ has quit [Remote host closed the connection]
<jackal__>
rather than puts " " puts " " i just put space
stringoO has quit [Quit: stringoO]
<lagweezle>
puts '\n\n' ?
tjr9898 has joined #ruby
habanany has joined #ruby
<jackal__>
esentially yes
<lagweezle>
Er, make that: puts "\n\n"
<jhass>
jackal__: I think I like it but I'd parameterize it to define the amount of newlines, that way you can reduce the redundant space calls to something like space 6
Sammael has quit [Ping timeout: 246 seconds]
<jackal__>
brilliant thanks
habanany has quit [Read error: Connection reset by peer]
habanany has joined #ruby
RoryHughes has joined #ruby
itadder has joined #ruby
<itadder>
hi
<jhass>
jackal__: in your case when you always do space, I'd move it before the case and don't bother that's also added to the exit branch then
mehlah has joined #ruby
<jackal__>
ok
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
jkassemi has quit [Ping timeout: 245 seconds]
<jackal__>
i like your idea of having space(num) num indicating the number of spaces
<jackal__>
i use that space method in all my programs, also this menu is a generic i use within my other programs so far
cburyta has joined #ruby
mikepack_ has joined #ruby
codezomb has joined #ruby
<jhass>
jackal__: and your program will end on invalid input, you can get around that with an else branch putting out an error message and wrap the whole thing into a loop
mark_locklear has quit [Quit: Leaving]
Hiall has joined #ruby
habanany has quit [Ping timeout: 245 seconds]
LnxBil has quit [Quit: Thank you all!]
<shevy>
jackal__ I usually set a constant called N = "\n"
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<jackal__>
hm, this is something i could use help with. So the entire program is a loop, the else breaks out of the loop? would i still call the main loop to start
<jhass>
jackal__: one more style thing: always indent blocks of code, that holds true for while statement too
itadder has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Ping timeout: 245 seconds]
fedesilva has joined #ruby
LekeFly has joined #ruby
rm_ has quit [Remote host closed the connection]
<jhass>
jackal__: in your archive method you leak open file handles (you never call file.close). Try to use the block form of File.open when possible: File.open(foo) do |file| do_stuff_with_file; end that'll take to close the file for you
bean has quit [Remote host closed the connection]
asteros has joined #ruby
<jhass>
jackal__: also the individual branches in the archive method are complex enough to be their own methods IMO
<jackal__>
ok
stonevil has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
Aryasam has quit [Read error: Connection reset by peer]
<jackal__>
can you explain branches? i have not heard this term yet
<jhass>
jackal__: getting back to the loop I suggested will also allow you to just exit from the subcommand methods, without possibly endless recursion between main_menu and them
kirun has quit [Quit: Client exiting]
ephemerian has quit [Remote host closed the connection]
mmoretti has joined #ruby
<jackal__>
ok
<jhass>
sort of the same thing as block, what I mean in this case is the code inside a when statement
cburyta has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 260 seconds]
mansi has quit [Remote host closed the connection]
mikepack_ has quit [Ping timeout: 272 seconds]
<jackal__>
so write would be a method and use that method for all opening.writing to files?
stryek has joined #ruby
mansi has joined #ruby
mmoretti has quit [Client Quit]
Hobogrammer_ has joined #ruby
Hobogrammer_ is now known as Hobogrammer
<jackal__>
thank you very much for taking the time to go over it jhass
aboudreault has quit [Read error: Operation timed out]
workmad3 has quit [Ping timeout: 248 seconds]
<jhass>
I wouldn't start with separation of concerns yet, just make everything that's more than 2-3 lines inside a when a method
<itadder>
just not removed from reporting softwarew
<jsilver>
refresh it somehow
<itadder>
becuase it a manual task
<jsilver>
hah
Deele has quit [Ping timeout: 248 seconds]
* jsilver
headdesks
dubsteph has quit [Ping timeout: 272 seconds]
<itadder>
the decomssion task at work is all manual
<jsilver>
IT Fun
<itadder>
IT sucks
<jsilver>
yeah
<itadder>
why should such a important task be manual
<jsilver>
get to dev!!! get out of there man!
<jsilver>
because ppl are idiots
<itadder>
some WIndows XP machinves were converted to VDI's
<itadder>
but most were not
<itadder>
jsilver: anyways I should chill
<jsilver>
yeah
<jsilver>
you're stressing, not packing
<itadder>
I love programing more
<jsilver>
not panicking
<jsilver>
right
<jsilver>
show your skills and earn the position and more money!!!
<itadder>
I love yoga even more
<jsilver>
you can do it
<jsilver>
do ya
cburyta has joined #ruby
<itadder>
I want to be a web developer
<itadder>
I am only a consultant jsilver
<jsilver>
right
<jsilver>
you could become one
<itadder>
so after this project I have to find something new,
<jsilver>
plus your previous history helps
<itadder>
jsilver: so it baby steps
<jsilver>
eyah
<jsilver>
yeah
<jsilver>
not fast
<jsilver>
slow
<jsilver>
never rush
<jsilver>
or you will not learn anything
<itadder>
I tryed to rush thngs and it always fails
<jsilver>
don't move on until you understand 100%
<jsilver>
yup
<itadder>
but at work they are rushing me
<jsilver>
everyone does
<jsilver>
yeah
<itadder>
even though most of it not on me,
<itadder>
WHY
<jsilver>
its the way things go
pfg has joined #ruby
<jsilver>
but dont rush yourself
malthe has joined #ruby
danshultz has joined #ruby
<jsilver>
if you miss the deadline, it was probably unreasonable of a deadline and fuck it
<itadder>
and I can not out my self as having high aneixty or adhd it just a excuse
<jsilver>
don't kill yourself for corporations
<itadder>
jsilver: I should not
<itadder>
it was badly managed to begin with
<shevy>
itadder yeah, it's the old chasing-the-stick strategy (or chasing the rabbit), and you never catch it
<jsilver>
most are
<jsilver>
fix it
<jsilver>
do good until you ascend to the level of management
<shevy>
you are not superhuman with 20 hands and 5 brains
<jsilver>
then control the company _right_
<itadder>
shevy: yea just when I thnk I am done the project manager says oh I forgot to tell yo uthis
tylersmith has quit [Remote host closed the connection]
<itadder>
plus I am the only who did 240 pc migration on my own
<itadder>
with some help but only some
brennanMKE has quit [Ping timeout: 250 seconds]
<shevy>
I hate shifting goals
<jsilver>
itadder: then say that it meets the Acceptance Criteria of the ticket that you agreed to, and that you cannot do the work until a new ticket is created. They'll love that
<itadder>
and today I had to deal with windows trade flooor software that crashed on testing
<itadder>
jsilver: yea
TommyBotten has quit [Quit: Lost terminal]
<shevy>
yeah let him write new tickets
<jsilver>
most "real" corporations follow this model
<itadder>
shevy: yea I rather freelance program web progoram
<jsilver>
say "according to this ticket its done. if you need more write a new ticket"
wildroman2 has joined #ruby
<shevy>
he will hate writing new tickets
<itadder>
jsilver: yea
<shevy>
you need to appeal to his natural laziness
<jsilver>
I only have to work the tickets I agreed to, which are not changed after the sprint begins
<itadder>
I am lazy
<itadder>
I guess
<jsilver>
bullshit.. he can update it in a comment atleast
<shevy>
your boss is even lazier
<jsilver>
my clients updated tickets with comments all the time
<itadder>
shevy: he sure is
<itadder>
he did not plan this out at all correctly
<jsilver>
fuck your boss, he can edit the ticket or post a comment
<jsilver>
push back
<jsilver>
if they fire you, fuck em
<shevy>
yeah I have the same situation right now
<jsilver>
you'll find someone else
<itadder>
I thought I read the direction the APP support guy told for installing X software
<itadder>
he comes to me today you did not read my email
<jsilver>
nobody respects people who don't bite like a rattlesnake when stepped on
Aryasam has joined #ruby
<itadder>
and I did not real all of it so I had to read it 100% and I rushed it and got it done
<itadder>
but the app crashed he calls me it crashing
<jsilver>
itadder: tell him that he wrote it stupidly and you couldnt understand
dvarrui has joined #ruby
<jsilver>
you can't rush in this business
<itadder>
bah I had to make a Modify rights on that folder for each trader
<jsilver>
can't rush anything
<itadder>
I had him test and it worked
<jsilver>
you need to stop rushing is what
<itadder>
he said okay you got it working
<jsilver>
you need to stop rushing!!!!
<itadder>
he could care less how I did it
<itadder>
jsilver: oh
<jsilver>
nobody does
<jsilver>
nobody cares about how
<jsilver>
in tech
<itadder>
I could care less about coporate america
<jsilver>
they only care about if it works
TryX has quit [Remote host closed the connection]
<itadder>
jsilver: but what if my soultion is wr0ong
<itadder>
in the long run, his instruction never said make th is folder modify
<jsilver>
itadder: then when it breaks, they will have to make another ticket and somebody, maybe you will have to fix
<jsilver>
otherwise fuck it, you don't care not your problem
<itadder>
and I told my boss he goes that were not in the direction
<jsilver>
itadder: what if its not wrong?
<itadder>
I think it right
<itadder>
but if thier no ducment to prove that
<jsilver>
then say the directions were wrong
<jsilver>
and update them
<jsilver>
you should have ability to write your own doc
<itadder>
plus why would a .exe need to have modify
<jsilver>
and then tell them, THIS IS RIGHT
<jsilver>
just be more confident
jefflyne has joined #ruby
<itadder>
it not even installed thru a installer it was a robocopy job
<jsilver>
push back
<jsilver>
don't know
<itadder>
I usally do good work when i am not rushed
<jsilver>
I'd say quit and find a friendlier place
<itadder>
and I am on both irc and alone
philcrissman has quit [Ping timeout: 248 seconds]
parzo has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
<jsilver>
just don't rush
<jsilver>
let them "rush you" but don't rush
<itadder>
which is why I want to take advantge of this time I have left to learn ruby but you are right not rush
griffindy has quit [Quit: Computer has gone to sleep.]
<jsilver>
walk slow, talk slow, work slow
<itadder>
jsilver: thanks I will do that
<jsilver>
no problem
<jsilver>
the thing is
wildroman2 has quit [Ping timeout: 272 seconds]
<jsilver>
when you go slowly
<jsilver>
you save all of your energy and therefore have more
<itadder>
I talk fast, think faster then I can write
danshultz has joined #ruby
<jsilver>
its a good thing to move fast once you can actually code
<itadder>
jsilver yea good ppoint
<jsilver>
sometimes
philcrissman has joined #ruby
Al___ has quit [Read error: Connection reset by peer]
jackal__ has quit [Quit: Leaving]
<itadder>
but I will take it very slow
<jsilver>
but not a good thing to learn fast or rush things like design
<jsilver>
good
griffindy has joined #ruby
<itadder>
I am doing code acadmey and ruby the hard way
recurrence has joined #ruby
<jsilver>
good
Al___ has joined #ruby
<itadder>
koans was just not teaching me anything
<itadder>
just cut and paste
<jsilver>
yup, like I said it wouldn't
<jsilver>
neither will the poignant guide
<itadder>
so ruby the hardway is better
<jsilver>
I never send either
<itadder>
or ruby for kids
<jsilver>
I'm sure it is
<jsilver>
yeah
<jsilver>
both
<jsilver>
you might like The Rspec Book too
<itadder>
you know what I also done bad for two weeks I gone to work at 7:30 or 8L00 am
<itadder>
just to keep up and no one carese
Kricir has joined #ruby
<itadder>
oh I will like that book
ktosiek has quit [Ping timeout: 250 seconds]
<jsilver>
yeah I like it
<itadder>
and instead of going to the GYm early ini the Am I been kissing coporate america behind
<itadder>
becuase my coworker was like me thinking uotside of the box
<itadder>
outside
<itadder>
and we had very very very litte red tape
Kricir has quit [Remote host closed the connection]
dingus_khan has joined #ruby
funburn has joined #ruby
Jdubs has quit [Remote host closed the connection]
<jsilver>
right
mando_ has quit [Ping timeout: 265 seconds]
<itadder>
and he would never get perssured to give in to auditors he the one person who tought to think for my self
Kricir has joined #ruby
<jsilver>
some corporations are very fun to work for
<jsilver>
some are no fun to work for
<itadder>
but the pay was crap
<itadder>
and the comapny was not makeing a profit
<jsilver>
yeah
jlast has quit [Remote host closed the connection]
<itadder>
so I left to NYC to work at hedgefunds
<jsilver>
where'd you come from? lol
<lagweezle>
itadder communicates by tweet.
<itadder>
Yea @itadder
<itadder>
I come from North NJ
<itadder>
suburban NJ
<jsilver>
ah
<itadder>
I would love to in a year get in to web development, and my high school frieinds is in to graphic design
nanoyak has quit [Ping timeout: 248 seconds]
<itadder>
He could do some art I will pay him, and I can do backend
danshultz has quit [Ping timeout: 265 seconds]
<jsilver>
good!
<itadder>
but you said it takes time
loc22 has quit [Quit: Konversation terminated!]
<jsilver>
yeah but not infinity time
<itadder>
I need to find time also after work one hour
<jsilver>
you'll get there!
<itadder>
and time for thje gym
<jsilver>
being comfortable > money
<itadder>
I wish I could go to the gym at 5 am get out at 6:10 am and get to work at 7:30 AM
bricker_ has joined #ruby
<jsilver>
I've seen homeless guys happier than successful ones
<itadder>
jsilver: I am not
danshult_ has quit [Ping timeout: 248 seconds]
Al___ has quit [Read error: Connection reset by peer]
<jsilver>
you won't be able to get a lot of money without first being comfortable
ffranz has quit [Quit: Leaving]
<itadder>
jsilver: I need to be supre comfortable
Al___ has joined #ruby
<itadder>
I am not ready yet I know that
<jsilver>
make small "hacks" in your life to make things more comfortable
<jsilver>
and easier
<itadder>
my goal was to work on a omnifocus webfrontend
<itadder>
a self project
<jsilver>
dont start with complicated projects
<itadder>
have you heard of Omnigrup and thier GTD software
<jsilver>
start with simple ones
<jsilver>
no
<itadder>
yea that complex
<itadder>
oh
bricker has quit [Read error: Operation timed out]
<itadder>
so whichi book or site should I do first
<itadder>
in your opnion
<jsilver>
my first recommended Ruby book is "Agile Web Development with Rails"
<jsilver>
that's what I recommend first
<dachi>
i've got another question please. i made a gem that is a wrapper for a binary application, I named it as <name>_ruby, is that incorrect? that binary is not connected to ruby at all
<jsilver>
a Rails mentality is not a bad way to enter Ruby world
LiquidInsect has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
phansch has quit [Quit: Leaving]
dblessing has quit [Quit: dblessing]
<philcrissman>
jsilver: ! wut.
blackmesa has joined #ruby
cajone has left #ruby [#ruby]
<jsilver>
philcrissman: its how I entered
<jsilver>
dachi: dont think its wrong
LiquidInsect has joined #ruby
<itadder>
how long have you been coding
<philcrissman>
me too. So many things to unlearn along the way.
<jsilver>
15 years
nanoyak has joined #ruby
<jsilver>
i'm 25 though. I've been coding since I was 10
<dachi>
okay so dash would be used if left one is written in ruby and right one if for sinatra or rails or other, right
jeregrine has quit [Ping timeout: 246 seconds]
awarner has quit [Read error: Connection reset by peer]
<jsilver>
dachi: don't think it matters
sfroehler has quit [Ping timeout: 245 seconds]
<itadder>
no kindle version for it
<dachi>
okay
awarner has joined #ruby
<jsilver>
dachi: gem name doesnt matter
Wolland has quit [Remote host closed the connection]
nobitanobi has joined #ruby
sfroehler has joined #ruby
<dachi>
i got code climate 3.4 :|
ckrailo has quit [Ping timeout: 264 seconds]
von____ has quit [Ping timeout: 264 seconds]
momomomomo has quit [Quit: momomomomo]
<jsilver>
why
<itadder>
and which site should I start with first jsilver kidsforruby or codeacaemdy is okay
alol has quit [Ping timeout: 246 seconds]
<dachi>
Complex code in definition outside of methods (complexity = 26)
loliveira has joined #ruby
<s2013>
how can i set something like a = "b" but a = "c" if b doesnt exist
<jsilver>
I hear good things about CodeCademy itadder
<dachi>
and Complex method #initialize (complexity = 33)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<itadder>
Yea I was doing that two weeks ago and left for koans
mansi has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
<itadder>
but you right I was not learning nothing from koans
<jsilver>
dachi: put the code outside the methods into methods. break initialize up into smaller methods and call them
ckrailo has joined #ruby
<itadder>
and I need to start with small projects afterwards
<dachi>
thanks
<jsilver>
itadder: yup
<jsilver>
dachi: np
dylannorthrup has quit [Ping timeout: 252 seconds]
jeregrine has joined #ruby
von____ has joined #ruby
<itadder>
and I will be going ot yoga
<Sou|cutter>
s2013: a = b || c
mlpinit has quit [Remote host closed the connection]
<itadder>
let me get off the computer tonight
dvarrui has quit [Ping timeout: 260 seconds]
<itadder>
I need yoga
<s2013>
hmm i tried it.. didnt work
<jsilver>
itadder: enjoy!
<s2013>
k thanks
<itadder>
jsilver: thanks for the help
<lagweezle>
s2013: Depending on your feeling about the ternary operator...
<Sou|cutter>
s2013: although I don't understand your strings
<itadder>
thanks everyone
<philcrissman>
itadder: The Well-Grounded Rubyist and Eloquent Ruby are some good Ruby books.
chrisseaton has joined #ruby
<Sou|cutter>
I didn't really like Eloquent Ruby that much
<jsilver>
s2013: a = b; a ||= c
<loliveira>
what's the right way to call: x[ind].date.kind_of?(ActiveSupport::DateTimeWithZone) ? I am receiving the error: uninitialized constant ActiveSupport::DateTimeWithZone
alol has joined #ruby
<s2013>
hmm that might work i gues
<s2013>
thanks
<itadder>
what about ruby the hard way
danman has quit [Quit: danman]
<lagweezle>
s2013: defined? b ? a = "b" : a = "c"
<lagweezle>
That is rather unpleasant looking, thought.
<jsilver>
loliveira: include ActiveSupport
ebetancourt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<s2013>
yeah
<lagweezle>
s/thought/though
<jsilver>
lagweezle: very ugly!
<jsilver>
a = b || c is the best
<philcrissman>
itadder: haven't gone through Ruby the hard way, but I imagine its decent. Zed is smart.
<Nyyx>
tried to get through why's poignant guide but I was afraid it wasnt thorough enough
<itadder>
should I have a ubuntu desktop to program all this at home
<itadder>
instead of my macbook
<jsilver>
itadder: yeah probably
<s2013>
ok
<jsilver>
I like seperating work from play
Zai00 has quit [Quit: Zai00]
<philcrissman>
Sou|cutter: re Eloquent Ruby... for better or worse, it's pretty good coverage of the most common Ruby idioms and has a lot of good examples.
<jsilver>
mac or Linux will do though
<itadder>
my main computer is a mac book pro
Aryasam has quit [Ping timeout: 260 seconds]
<philcrissman>
itadder: macbook is fine. Or ubuntu. Whichever you like.
<itadder>
I think the macbook becuase I can take with me
<itadder>
and code from anywher
Soliah has joined #ruby
jle` has quit [Ping timeout: 260 seconds]
<philcrissman>
Almost everyone I've ever worked with has worked from a Mac.
<philcrissman>
There are a couple folks here with linux laptops.
<itadder>
okay I will stick with that
[krisbulman] is now known as krisbulman
<jsilver>
k good idea
<philcrissman>
itadder: if you really want an ubuntu environment you can always download VirtualBox.
<jsilver>
philcrissman: I used to use Linux for Ruby and had a great time. I use OS X now though.
<loliveira>
jsilver: same error. =/
<jsilver>
philcrissman: +1 I do this but with CentOS
<itadder>
I have a pc not I never used it not even connected I could put ubuntu
<itadder>
but
Asher has joined #ruby
<Sou|cutter>
philcrissman: it's been a while since I read it, but I remember thinking it covered some things oddly
<itadder>
I rather learn ruby then relearn ubuntu
<jsilver>
loliveira: you need to require "active_support" or something then do the include I think
<loliveira>
jsilver: ok
<philcrissman>
jsilver: yeah, VirtualBox is great.
<itadder>
I know how to mac so much more then windows or linux
<jsilver>
loliveira: you need access to ActiveSupport namespace, which you don't currently have
<Sou|cutter>
philcrissman: I wouldn't say it's bad, in any case
<jsilver>
loliveira: keep trying stuff to get it included/required until it works
<philcrissman>
Sou|cutter: maybe; iirc, Russ Olsen said he pictured it as someone's second Ruby book. You could learn Ruby from it, but it would help to know Ruby, basically, before you read it.
<itadder>
i just get overwhellmed
<itadder>
with all the books and online stuff
someword has quit [Quit: Leaving.]
<platzhirsch>
Too many posts about Flappy Bird on HN...
<philcrissman>
itadder: yeah, there's a lot. If you're starting, just try to do one thing at a time. fwiw, if you want to learn Rails, the Rails tutorial site is (I think?) still very good/up to date.
<jsilver>
wtf is flappy bird and why'd he take it down
<platzhirsch>
haha
<itadder>
not sure but he did
<platzhirsch>
philcrissman: yeah right right after I stop breathing... geez
duggiefresh has quit [Remote host closed the connection]
<itadder>
I just want to learn the basic first
angusiguess has joined #ruby
whomp has joined #ruby
<itadder>
philcrissman: I want to learn from scratch as a noob
<whomp>
[1, 2, 3].map({|i| i + 2}) gives me an error. why?
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<philcrissman>
platzhirsch: hah. Really? I can't read that site anymore. It's awful.
Jdubs has joined #ruby
<philcrissman>
whomp: the brackets () shouldn't be tehre
<philcrissman>
there
<platzhirsch>
philcrissman: Many quit, it still gives me a lot of input
<whomp>
but then how would i do [1, 2, 3].map({|i| i + 2}).reverse
<whomp>
?
<dachi>
why are so many people so much happy that """"""node replaces ruby"""""""
<philcrissman>
whomp: [1,2,3].map{|i| i +2 }.reverse
<whomp>
ahhh
<whomp>
thx
<platzhirsch>
dachi: Sexual desire
Skylab has quit [Quit: Skylab]
palantir_ has quit [Ping timeout: 245 seconds]
<mojjojo>
anybody have exp with web scraping with capybara?
<philcrissman>
platzhirsch: I dunno. I used to read it. It got worse and worse until I only visited once a week, once a month, then never.
<itadder>
okay I am out
<philcrissman>
ymmv
<itadder>
jsilver: will you been here tonight
<philcrissman>
itadder: best wishes.
<jsilver>
itadder: no. but I will be here tomorrow morning
<jsilver>
9am mountain time
<platzhirsch>
philcrissman: oh visit? I just scroll through the titles of the RSS Feed and click 2 or 3 in a day that I am interested in
<itadder>
I am looking at the agile book
<jsilver>
good
<itadder>
I may just start with that one
<jsilver>
good good
<jsilver>
I know you'll be in good hands with it
<itadder>
would the public library carry that
<itadder>
hmm
gr33n7007h has quit [Read error: No route to host]
<jsilver>
perhaps but its best to have the latest edition
<itadder>
just that a text eidtor
<philcrissman>
itadder: maybe? hard to say.
Skylab has joined #ruby
<jsilver>
itadder: rails changed a lot
hamakn has quit [Ping timeout: 245 seconds]
<jsilver>
try to get the latest edition
<itadder>
I just want simple
mavcunha has joined #ruby
<philcrissman>
platzhirsch: that would be better.
hamakn has joined #ruby
ktosiek has quit [Ping timeout: 260 seconds]
<jsilver>
itadder: I don't know of a "simple" ruby book
<itadder>
maybe buy the latest from amazon or barrnes and nobile
<jsilver>
but they're out there
<jsilver>
itadder: yeah
<jsilver>
you'll be fine
habanany has quit [Read error: Connection reset by peer]
<jsilver>
Agile webdev... etc is a good book for newbies
<jsilver>
it taught me
<itadder>
wow
<itadder>
I saw that book last week at the ruby meetup
<platzhirsch>
philcrissman: yeah, it's really just skimming through the information flow. That's what the voting system is for, sort out the crap (Although there are still — from time to time — pretty crappy posts, but well... it's the internet after all)
<itadder>
version 4 or something
<jsilver>
yeah get 4th edition
yeticry_ has quit [Ping timeout: 260 seconds]
<jsilver>
its for Rails 4
<jsilver>
you will be in good hands
<jsilver>
should only be 30-40 bucks max
yeticry has joined #ruby
<jsilver>
pricey yeah, but its a good book
<jsilver>
basically
<jsilver>
unless you drop out
<itadder>
yea and I support the author
<jsilver>
it will pay for itself
razibog has joined #ruby
<jsilver>
yeah
<philcrissman>
platzhirsch: I'm unconvinced. :) If you find good articles from it, though, that's good.
<itadder>
and how do I sechdule time to do it
<jsilver>
fuck scheduling
<itadder>
how di dyou sechdule time
<jsilver>
i never do it
<jsilver>
just plan on it and do it
<itadder>
like after work one hour is enough for each day
<jsilver>
say "I am going to do this at this time" and then be damn sure you do it
werdnativ has joined #ruby
fedesilva has quit [Read error: Connection reset by peer]
<jsilver>
if it's enough for you
<jsilver>
then its enough
<jsilver>
if you're still interested
<jsilver>
keep going
<jsilver>
you have time
<itadder>
ahh fo rme it usally 2 hours
<jsilver>
it's like art
<itadder>
ahh true
<jsilver>
take your time
gr33n7007h has joined #ruby
<platzhirsch>
jsilver, itadder: You two should really start to post once per sentence and not every 2-3 words.
fedesilva has joined #ruby
iamjarvo has joined #ruby
<jsilver>
remember what I said don't move on until you get it 100%
<jsilver>
platzhirsch: pfft
<jsilver>
fine
jle` has joined #ruby
eka has joined #ruby
bovi has joined #ruby
<itadder>
platzhirsch: Sorry bad habit of mine. :(