helpD has quit [Remote host closed the connection]
<havenwood>
pull request from your browser
bricker`LA has joined #ruby
no6 has quit [Ping timeout: 250 seconds]
<havenwood>
s/browser/text editor
<fly2web>
how about eclipse?
<benzrf>
fly2web: use vim
<benzrf>
only vim is worth ur time
<fly2web>
i use eclipse mainly.
<benzrf>
or emacs
<benzrf>
eclipse is cool if youre writing java
<benzrf>
but ruby needs no such compile-time powers
<havenwood>
fly2web: RubyMine if you want to go IDE.
<benzrf>
dont use rubymine just open a pry in a nother window
<fly2web>
vim? but vim is too inconvinient.
<benzrf>
(y)
<benzrf>
>vim
<benzrf>
>more inconvenient than anything but vim
<benzrf>
>Ever
<benzrf>
>greentexting in irc
<benzrf>
>hate self a little
<fly2web>
RubyMine is not free.
<centrx>
vim is not inconventient.
<benzrf>
vim is inconvenient in the same way that ruby is verbose
<fly2web>
ok
<centrx>
Your shiny GUI baubles are non-free
<fly2web>
i will use vim.
<benzrf>
B)
<havenwood>
hehe
<fly2web>
thanks everyone.
funktor has quit [Remote host closed the connection]
<benzrf>
and once Quick is into beta u will get IDE features even (maybe)
<fly2web>
:)
<benzrf>
if i should find somebody to write me some VimL to interface
<benzrf>
fly2web: what do u know about vim
funktor has joined #ruby
SHyx0rmZ has quit [Ping timeout: 252 seconds]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
sailias has joined #ruby
<fly2web>
s S q q! $ 0 i I o O DD D a A shift + G, 1G etc.
<benzrf>
hmmmmm
<benzrf>
that will insert S q q! $ 0 i I o O DD D a A shift + G, 1G etc.
<fly2web>
YY
<benzrf>
fly2web: do you use the CLI for file management?
aspires has quit []
<benzrf>
i.e. rm cd mkdir etc
<fly2web>
yes.
<fly2web>
i know cd, rm mkdir, cp, etc.
<benzrf>
then you have no excuse to claim that vim is unintuitive and obscure and isnt worth the time to memorize
<benzrf>
:-)
lmickh has quit [Quit: lmickh]
aspires has joined #ruby
<kalyx>
benzrf
<fly2web>
vim vs eclipse, eclipse is convinient.
nateberkopec has joined #ruby
<centrx>
fly2web, Eclipse is clunky and shoddy
robbyoconnor has quit [Ping timeout: 250 seconds]
<benzrf>
eclipse takes 5m to start
funktor has quit [Ping timeout: 250 seconds]
<benzrf>
vim takes 5seconds at maxmanders
<benzrf>
*max
<benzrf>
which is inconvenient now?
lukec has quit [Quit: lukec]
manlycode has joined #ruby
<benzrf>
i can use vim ootb on the majority of unices, as well as over ssh
<benzrf>
which is inconvenient now?
<fly2web>
eclipse is fast.
<fly2web>
not slow
<benzrf>
no it is not
<benzrf>
and if you define eclipse to be fast
<benzrf>
then vim is light speed
chipotle has joined #ruby
<fly2web>
ok i see
jamto11_ has joined #ruby
<benzrf>
eclipse is better at super smart code prediction & completion
<benzrf>
but that's almost impossible to do for ruby anyway
banister has joined #ruby
<benzrf>
so why not use an editor that's fucking amazing at fiddling your text?
<benzrf>
even if it doesnt know what methods an object has/
Lightsword has quit [Ping timeout: 252 seconds]
<fly2web>
ok then i will use vim.
<benzrf>
:-D
<fly2web>
:)
postmodern has joined #ruby
<benzrf>
let us help u
nateberkopec has quit [Ping timeout: 240 seconds]
<fly2web>
thanks
<centrx>
It is pretty easy to use Ruby code completion with vim
<apeiros>
03:08 fly2web: s S q q! $ 0 i I o O DD D a A shift + G, 1G etc.
<benzrf>
not that i use that
<centrx>
Probably doesn't work with dynamic methods though
<apeiros>
now I'm curious whether one of those notorious spambots is actually just somebody using vim for irc :D
chipotle_ has joined #ruby
<benzrf>
i just stick w/ basic complete-to-existing-word-in-open-files
<benzrf>
90% of the time its good enough
<benzrf>
if i wanna know what methods something has i just use pry
Lightsword has joined #ruby
banister_ has quit [Ping timeout: 252 seconds]
evenix has joined #ruby
jamto11_ has quit [Ping timeout: 245 seconds]
chipotle has quit [Ping timeout: 276 seconds]
i_s has joined #ruby
kayloos has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
<lagweezle>
Also, if you wanna talk about Eclipse, toss that and go for IntelliJ IDEA Community Edition. But yeah, I'd rather use Sublime Text or something a bit more light weight and snappy for Ruby.
havenwood has quit [Remote host closed the connection]
danshultz has joined #ruby
dik_dak has quit [Quit: Leaving]
aspires has quit [Read error: No route to host]
zets has left #ruby [#ruby]
aspires has joined #ruby
agrinb has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Atrumx has joined #ruby
yubrew has joined #ruby
robbyoconnor has joined #ruby
codebro has joined #ruby
i_s has quit [Ping timeout: 250 seconds]
mjs2600 has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 245 seconds]
cj3kim has quit [Read error: Connection reset by peer]
aspires has quit [Client Quit]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac1 has joined #ruby
cj3kim has joined #ruby
yubrew has quit [Ping timeout: 245 seconds]
pwh has joined #ruby
havenwood has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
aspires has quit [Client Quit]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
linojon has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
ddv has quit [Ping timeout: 245 seconds]
sski has joined #ruby
saarinen has quit [Quit: saarinen]
ddv has joined #ruby
timonv has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meatherly has joined #ruby
jason_ has joined #ruby
Sawbones has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
caleb_io has quit [Quit: caleb_io]
northfurr has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
ixti has quit [Ping timeout: 245 seconds]
psyprus_ has joined #ruby
nateberkopec has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
<benzrf>
i got itman
<benzrf>
*it
jason_ has quit [Remote host closed the connection]
bogeyd6 has joined #ruby
jason_ has joined #ruby
agarie has quit [Quit: Leaving...]
bradhe has joined #ruby
jason_ has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
quitobro has joined #ruby
Es0teric has quit [Max SendQ exceeded]
ironsand has quit [Quit: Leaving...]
thomasxie has joined #ruby
no6 has joined #ruby
hamakn has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
davedev24 has quit [Read error: Connection reset by peer]
alexju has joined #ruby
Es0teric has joined #ruby
Guedes0 has quit [Ping timeout: 276 seconds]
davedev24 has joined #ruby
Es0teric has quit [Max SendQ exceeded]
r_rios has joined #ruby
Es0teric has joined #ruby
quitobro has quit [Ping timeout: 240 seconds]
Lightsword has quit [Ping timeout: 252 seconds]
etqqkoiflwhb has joined #ruby
no6 has quit [Ping timeout: 252 seconds]
jason_ has joined #ruby
havenwood has quit [Remote host closed the connection]
browndawg has joined #ruby
<AlexRussia>
hey!
<AlexRussia>
How to can't added some elements in array, returned .map ?
thomasxie has quit [Quit: Leaving.]
<fly2web>
i decide eclipse plugin for ruby.
<mnemon>
AlexRussia: that sentence doesn't make any sense
<AlexRussia>
mnemon: i have drop/down some elements
<AlexRussia>
mnemon: when i in block .map
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Ping timeout: 276 seconds]
<AlexRussia>
mnemon: how i can do it?
metamaterial has joined #ruby
dapz has joined #ruby
<AlexRussia>
>> [1,2,3,4,5].map{|i| i unless i%2==0}
<AlexRussia>
>>>[1,2,3,4,5].map{|i| i unless i%2==0}
<benzrf>
although i am sure there is a more efficient way
<AlexRussia>
lol
jason_ has joined #ruby
thomasxie has joined #ruby
<AlexRussia>
but i think, this not my way
jason_ has quit [Remote host closed the connection]
<AlexRussia>
[1,2,3,4,5] it's just example
jason_ has joined #ruby
magic_ has joined #ruby
<AlexRussia>
irl i should calculate some number for every hashes in array and not include hashes, where number not returner true for some condition :P
yubrew has joined #ruby
<tar56>
are you guys talking about weed
<tar56>
how much do you pay for your hash
<AlexRussia>
em, what?
supermarin has joined #ruby
<tar56>
hash
<AlexRussia>
yes
<tar56>
were talking about hash here
<AlexRussia>
and arrays too
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AlexRussia>
and map
<tar56>
it was a joke
<AlexRussia>
no
<tar56>
lol
<AlexRussia>
it's RL
<tar56>
the hash is legit
krz has joined #ruby
<AlexRussia>
?
emaxi_ has joined #ruby
<AlexRussia>
everyone hash i get without my sqlite
<AlexRussia>
base
luriv has quit [Ping timeout: 240 seconds]
jason_ has quit [Remote host closed the connection]
<AlexRussia>
tar56: this not joke, bro ;)
i_s has joined #ruby
<AlexRussia>
then, hmmmm......
<tar56>
no
<tar56>
this
<tar56>
is sparta
<AlexRussia>
this is spark
yubrew has quit [Ping timeout: 240 seconds]
<AlexRussia>
mmm
zkay11 has joined #ruby
<AlexRussia>
tar56: .map included in array last calculated value?
fluve has joined #ruby
<tar56>
hash
BSaboia has quit [Quit: Fui embora]
Es0teric has quit [Quit: Computer has gone to sleep.]
<AlexRussia>
tar56: stooooops
<AlexRussia>
tar56: .map use block
<zkay11>
Hello all. I am trying to create a simple scraper with nokogiri and save the results to a csv. It pulls results down fine, but when I try to save them, it just saves a single integer 0 to the file instead.
<AlexRussia>
shevy: just say, i get somewhere bug or no?
<lagweezle>
AlexRussia: Oh that does sound good, although green tea with those I'd not have thought would be a great mix. I may have to try that some time.
<popl>
shevy: you're selecting on the value of the element itself
<AlexRussia>
shevy: self.clients retuned new array
<popl>
shevy: I want to select based on array position
<AlexRussia>
lagweezle: traditional russian......
<Cmacca>
Ok, so I've been having numerous issues with getting rake:db to work with my postgres installation (they told me to come over here with it). The readme I'm trying to follow is here: http://pastebin.com/uJxBNwUp. I keep getting a Ruby version error. It gave me an error that I had the incorrect ruby version than what was in the Gemfile. However, when I changed the ruby version in the Gemfile to what it said I had, it gave me the same error, but wit
<popl>
i % 2 == 0 can be written as i.even?
<shevy>
AlexRussia I am sure you have bugs ;)
<benzrf>
argh wtf
<AlexRussia>
lagweezle: psss, you have some bears in your friend-list?
centrx has joined #ruby
ponga has quit [Remote host closed the connection]
<benzrf>
ruby_parser seems to randomly use lvar and call interchangably
<AlexRussia>
shevy: where?
<shevy>
AlexRussia EVERYWHERE!!!
<benzrf>
i cannot find any pattern in which one it parses an identifier as
* benzrf
flips a table
<AlexRussia>
shevy: lol
pika_pika has quit [Ping timeout: 276 seconds]
<AlexRussia>
shevy: you are troll!
<popl>
It's a tiny table.
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<benzrf>
look at this
<benzrf>
[74] pry(main)> parser.parse 'foo.bar'
<benzrf>
=> s(:call, s(:lvar, :foo), :bar)
<benzrf>
[75] pry(main)> parser.parse 'bar.foo'
<benzrf>
=> s(:call, s(:call, nil, :bar), :foo)
<Cmacca>
@popl?
<benzrf>
wut?!
<lagweezle>
AlexRussia: My father has a samovar. ^^
<AlexRussia>
lagweezle: so really?
<lagweezle>
AlexRussia: Da.
<AlexRussia>
lagweezle: ofigenno
<popl>
Ok, time to hang out in a different channel for awhile.
popl has left #ruby [#ruby]
<lagweezle>
AlexRussia: I have a little bit of russian blood. My first name is Nikolai. ^^
no6 has joined #ruby
SvenOostenbrink has quit [Read error: Connection reset by peer]
<Cmacca>
popl?
<AlexRussia>
ugu, Nikolai.amazonaws.com ;)
SvenOostenbrink has joined #ruby
<shevy>
lagweezle your father has a samovar but my father was a samurai!
<lagweezle>
shevy: O.O
combusean has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
<shevy>
Cmacca your question was too long
<shevy>
can you break it into smaller chunks?
agent_white has joined #ruby
<Cmacca>
ok
<Cmacca>
I've been having numerous issues with getting rake:db to work with my postgres installation (they told me to come over here with it). The readme I'm trying to follow is here: http://pastebin.com/uJxBNwUp.
<AlexRussia>
lagweezle: father shevy just nazi ;)
CaptainJet has quit [Remote host closed the connection]
<Cmacca>
I keep getting a Ruby version error. It gave me an error that I had the incorrect ruby version than what was in the Gemfile.
CaptainJet has joined #ruby
Azure has joined #ruby
<AlexRussia>
да ладно, что такого я скзал...обидится еще
<AlexRussia>
сказал*
<Cmacca>
However, when I changed the ruby version in the Gemfile to what it said I had, it gave me the same error, but with the numbers reversed, saying that I actually had the version that was outdated instead.
ponga has quit [Read error: No route to host]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<shevy>
eh
codebro has joined #ruby
<shevy>
Can't really reproduce easily, I don't use rake or bundler
<shevy>
why must you use rake:db anyway?
no6 has quit [Ping timeout: 240 seconds]
<shevy>
and who is "they" to tell you to come here
* lagweezle
pesters google translate.
cj3kim has quit [Remote host closed the connection]
radic has quit [Ping timeout: 240 seconds]
manlycode has joined #ruby
<lagweezle>
Ah. I /suspect/ shevy knows you're joking, AlexRussia .
<benzrf>
shevy: rake helps you reproduce?
<shevy>
benzrf oh no, rake does not help me with anything which is why I don't use it
nateberkopec has joined #ruby
agent_white has quit [Client Quit]
mr_snowf1ake has quit [Ping timeout: 252 seconds]
<AlexRussia>
lagweezle: угу, он болшой joker
jwhorto1 has joined #ruby
<shevy>
I have more than 20.000 alias and directly call ruby methods in different .rb files if needed, so I have my "rakefiles" globally available all the time - just in plain ruby code, no Rakefiles
<lagweezle>
AlexRussia: Google translate fails me. Something about a ballet dancing joker?
agent_white has joined #ruby
charliesome has joined #ruby
<AlexRussia>
lagweezle: stop, you say, your first name Nikolay
<Cmacca>
Oh.
<Cmacca>
I was redirected here by #postgresql
GlenK has quit []
<AlexRussia>
lagweezle: and why you use GT?
<lagweezle>
AlexRussia: GT?
<lagweezle>
OH!
<AlexRussia>
lagweezle: Google Translater
<lagweezle>
AlexRussia: I can't speak or read Russian.
<AlexRussia>
;)
<AlexRussia>
lol
<AlexRussia>
lagweezle: maybe, your father brown bear? :P
<AlexRussia>
lagweezle: joke, joke
<AlexRussia>
lagweezle: joke[r]
<lagweezle>
AlexRussia: I have some bear in the family a ways back, I think. Mostly I'm a loony Celt (Irish, Welsh, and Scottish)
radic has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pdtpatri1k has quit [Quit: leaving]
<shevy>
Cmacca ok
pdtpatrick has joined #ruby
<shevy>
Cmacca usually what I do when I want to use postgresql from ruby is I install postgresql
<shevy>
and then I install the ruby bindings to it
<shevy>
the second step can be done via "gem"
saarinen has joined #ruby
<agent_white>
Evenin folks
sski has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
<benzrf>
yello
* lagweezle
yays as he refinds the orbital equations he needs.
sski has joined #ruby
<shevy>
Cmacca the pg gem is the gem for postgresql -> https://rubygems.org/gems/pg "gem install pg" must suffice
<shevy>
now after that has been done, all should be fine and work well with ruby+postgresql
kyb3r__ has joined #ruby
<benzrf>
oh phew i figured it out :-)
<shevy>
lagweezle you have a bear in your family?
<shevy>
your sister?
<benzrf>
ruby_parser is a genius & it understands scope
<shevy>
benzrf go haskelling
<benzrf>
so it indicates parsed ruby as either lvar or method call based on nearby parsed assgn
<benzrf>
sweet
<lagweezle>
shevy: That, or a werewolf. Not sure how else to explain the hair I'm getting.
<shevy>
lol
braincrash has quit [Quit: bye bye]
centrx has quit [Quit: All this computer hacking is making me thirsty]
bradhe has quit [Remote host closed the connection]
eynj1 has quit [Read error: Connection reset by peer]
<pontiki>
are you running that from the rails app root?
<rorr>
yes
bradhe has joined #ruby
<stormbytes>
rjhunter if i run system(mysqldump) from the command line (omitting the required arguments) i get the help page
mr_snowf1ake has quit [Ping timeout: 250 seconds]
<pontiki>
what in the world is the Main.java stuff???
<stormbytes>
rjhunter I don't understand why i don't get the same when running the command from within my own script, when that script is executed from the command line
<pontiki>
also, rorr, you should really be asking rails questions over in #RubyOnRails
<stormbytes>
i'm following a command line apps in ruby tutorial
northfurr has quit [Quit: northfurr]
Gabri has joined #ruby
<rjhunter>
stormbytes: hmm, i may have mislead you on `system` returning a string
<stormbytes>
i'm a novice with ruby but.. i probably would have caught that ;)
<rorr>
pontiki: nothing happening when I click #RubyOnRails
<stormbytes>
here's the code, again.. its just a tutorial i'm following so its just sample code
bradhe has quit [Read error: Connection reset by peer]
<stormbytes>
but if i call it from a script (that's being called/executed from the command line) i don't.
<xorl>
in there documentation is says I can access this via #each, #each_batch, #enum ...
<xorl>
but it yields no data
JohnBat26 has joined #ruby
noop has joined #ruby
Gabri has quit [Client Quit]
<rjhunter>
stormbytes: what about: ruby -e 'system("mysqldump")'
<xorl>
does that mean it's requiring the specification of said vpc_id?
oo_ has joined #ruby
<rorr>
pontiki: nothing happening when I click #RubyOnRails
Steve445 has quit [Quit: Steve445]
michaeldeol has quit [Ping timeout: 276 seconds]
<stormbytes>
rjhunter its not so much that i *need* the help page, i just want to understand why its not 'bubbling up' to stdout (when the command is called from inside a script)
blackavr has quit [Quit: blackavr]
<rjhunter>
rorr: this channel is called #Ruby and the channel you want is called #RubyOnRails -- however you joined this channel, do the same but type in #RubyOnRails wherever you typed #Ruby
<rjhunter>
stormbytes: in that case, i'd start by making sure that it's nothing `mysqldump` is doing. try with a simple script that just prints "stdout" to stdout, and "stderr" to stderr.
<pontiki>
rorr: i *still* have no idea what you mean by "click #RubyOnRails"
freerobby has quit [Ping timeout: 250 seconds]
michael_lee has quit [Quit: Ex-Chat]
<pontiki>
stormbytes: there is no "bubble up"
<pontiki>
stormbytes: you have to tell ruby to print the output coming from the system command
<stormbytes>
there is none
<pontiki>
irb does that automatically, but ruby does not
supermarin has quit [Quit: Computer has gone to sleep.]
<pontiki>
have you tried puts system(mysqldump) ?
supermarin has joined #ruby
cj3kim_ has joined #ruby
<stormbytes>
yes
<stormbytes>
it does exactly the same thing in both cases
<stormbytes>
this is tutorial code for a ruby command line script
toastynerd has quit [Remote host closed the connection]
<pontiki>
what is the contents of the output file you gave in command?
<pontiki>
on line 67
<stormbytes>
pretty sure its blank but let me check
<pontiki>
also, not entirely sure why you call system on line 68, then turn around and run capture3 again
browndawg has joined #ruby
<pontiki>
if you send stdout to a file, even if it's empty, nothing will come back to ruby
<stormbytes>
its empty
arietis has quit [Quit: Computer has gone to sleep.]
supermarin has quit [Ping timeout: 245 seconds]
<stormbytes>
i was wondering about that too. i was following the tutorial
<pontiki>
try you command straight from the shell and see what you get
<stormbytes>
i just changed the code (commented lines 60 - 69) and replaced "system("mysqldump")
oo_ has quit [Remote host closed the connection]
<pontiki>
again, try the command straight in the shell
<stormbytes>
worked exactly at it should.. there must be something in my code suppressing 'help page'
<stormbytes>
that mysqldump puts to stdout
<pontiki>
try this in your shell: `mysqldump 2>/dev/null`
grieg has quit [Ping timeout: 276 seconds]
<pontiki>
then try `mysqldump 1>/dev/null` and tell if theres a difference
dapz has joined #ruby
<stormbytes>
the second one (1) doesn't output anything
<stormbytes>
the first (2) behaves as expected, printing the help text
Celm has joined #ruby
oo_ has joined #ruby
<pontiki>
okay, now try this: `ruby -e 'system("mysqldump")'`
<stormbytes>
again, worked as expected
emaxi has joined #ruby
<pontiki>
now, gist the code you are actually running
<stormbytes>
i just found it --
<stormbytes>
you pointed out the > file
RowdyChild|Away is now known as RowdyChildren
<pontiki>
yes
<stormbytes>
eventhough the file was empty
<stormbytes>
i had initially looked into that file for the output, and since it was empty, assumed it wasn't being output to file
<stormbytes>
but now that i commented out the reference > file it works as it should
<pontiki>
great, now try the mysqldump command that should have been working directly in the shell
cj3kim__ has joined #ruby
yubrew has joined #ruby
<stormbytes>
i'm intentionally omitting args for the mysqldump command to get it to output the help text.. but why isn't it printing it to file in the earlier example?
<pontiki>
why do you assume there's any output from the full mysqldump command?
agent_white has quit [Read error: Connection reset by peer]
<stormbytes>
well, there is when i run it in the shell
<stormbytes>
and, there is when i run it via 'system(mysqldump)' inside irb
Celm has quit [Ping timeout: 240 seconds]
kevinykchan has joined #ruby
<pontiki>
just mysqldump?
<stormbytes>
mysqldump requires some params which, when omitted, result in the help file being printed to stdout
<stormbytes>
yes
<pontiki>
or mysqldump -u user -p password databasename > output.sql ?
toastynerd has joined #ruby
<stormbytes>
well that's how it *should* be presented, yes
<pontiki>
fuck
<stormbytes>
?
<pontiki>
DO YOU GET OUTPUT FROM THAT COMMAND?????
<stormbytes>
yes
<pontiki>
not just mysqldump
<stormbytes>
STDERR
<pontiki>
the full command
<stormbytes>
yes yes
<stormbytes>
i mean..
<stormbytes>
i don't actually have MySQL running
<stormbytes>
so.. i'm expecting it to fail
<benzrf>
dont use mysql
<benzrf>
use postgresql
oo_ has quit [Remote host closed the connection]
emaxi has quit [Ping timeout: 252 seconds]
<benzrf>
[pronounced 'post-gres-q-l']
agent_white has joined #ruby
cj3kim_ has quit [Ping timeout: 276 seconds]
<stormbytes>
personally i think David Copeland picked the shittiest example
arietis has joined #ruby
<pontiki>
or you did
Steve445 has joined #ruby
<stormbytes>
dude, i'm taking this stuff right out of his book
<pontiki>
and yet, you're not running mysql
<stormbytes>
i'm not about to setup MySQL, a database, etc
<stormbytes>
he doesn't ask you to
<pontiki>
THEN USE A FUCKING DIFFERENT COMMAND
yubrew has quit [Ping timeout: 276 seconds]
<stormbytes>
thought of that… but the book builds on this one #@#$%$ script from chapter to chapter
<stormbytes>
i don't even use MySQL
Steve445 has left #ruby [#ruby]
<stormbytes>
The author is really knowledgable and I think he's put some thought behind the examples, but its obvious he's a first-time author
Steve21 has joined #ruby
Steve21 has joined #ruby
<benzrf>
mysql is a dumb db for dumb apps written by dumb people
spyderma_ has joined #ruby
pontiki has quit [Quit: nini, folx, bedtime for this mousie]
<Steve21>
h
<benzrf>
*not 100% true
spyderman4g63 has quit [Ping timeout: 252 seconds]
<stormbytes>
pontiki - here's the crux of it all: when calling system(mysqldump > file), **knowing** it will fail, why is the help file output not prtined to the file?
<stormbytes>
printed
<benzrf>
stormbytes: stderr vs stdout perhaps
<Steve21>
When you use github can you tell me some popular Issue queue questions you would want to answer: https://github.com/StephenOTT/GitHub-Analytics working on this and looking to prioritize some analysis questions
<stormbytes>
benzrf stderr works fine
<rjhunter>
stormbytes: when you type `mysqldump > output.sql` into a shell on your terminal, do you see output on your terminal?
RowdyChildren is now known as RowdyChild|Away
<stormbytes>
rjhunter no, but i do see the help text output to file
<stormbytes>
which does *not happen in my script
<stormbytes>
i'd like to understand why, if i can.
<stormbytes>
ugh i can't type
<rjhunter>
stormbytes: ok, first, let's take mysql out of the picture
<rjhunter>
stormbytes: let's just use a tiny script that prints "i am stdout" to stdout
Dreamer3 has joined #ruby
<rjhunter>
(you can add stderr as well)
<stormbytes>
the 'mysqldump' command prints just fine to stdout
<rjhunter>
no
<rjhunter>
do not use mysqldump yet
<stormbytes>
ok
<rjhunter>
it conflates matters
LostDatagram has quit [Quit: Bye :P - znc.in]
<rjhunter>
you can put it back when you're sure of how things fit together
sdouglas has quit [Remote host closed the connection]
<stormbytes>
'ls' prints to stdout
<rjhunter>
sure, use that
sdouglas has joined #ruby
<stormbytes>
i tried all this
sigurding has joined #ruby
<rjhunter>
do you observe the same behaviour as when you were using mysqldump?
<stormbytes>
i've been at this for a while
<stormbytes>
oh, you mean substitute.. hm
<stormbytes>
ok
tectonic has quit []
<stormbytes>
works just fine
LostDatagram has joined #ruby
sdouglas_ has joined #ruby
<stormbytes>
i just referenced a c script that outputs 'hello world'
noop has quit [Ping timeout: 240 seconds]
LostDatagram has quit [Client Quit]
<rjhunter>
ok, so a tool that always -- unconditionally -- prints to stdout, behaves the way you'd expect
oo_ has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
<stormbytes>
yes
chipotle has quit [Quit: cya]
<rjhunter>
but msqldump doesn't behave the way you expect
sigurding has quit [Client Quit]
<rjhunter>
which tells you that mysqldump doesn't always -- unconditionally -- print to stdout
<stormbytes>
no, it does.. without the "> file"
Dreamer3 has quit [Ping timeout: 245 seconds]
<rjhunter>
please substitute exactly
<rjhunter>
so you're only changing one thing at a time
<stormbytes>
i started out with this :
<rjhunter>
that way, you can reason about the differences
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rvraghav93 has joined #ruby
dumdedum has joined #ruby
<banister>
Mon_Ouie what are you writing in C these days ?
Hanmac1 has quit [Ping timeout: 276 seconds]
<Mon_Ouie>
banister: Right now I'm playing with writing a lisp interpreter
lkba has joined #ruby
<banister>
Mon_Ouie why in C? Why not just do that in ruby ? :)
<etqqkoiflwhb>
banister: thanks
robustus has quit [Ping timeout: 252 seconds]
<Mon_Ouie>
Well writing an interpreter without writing the whole runtime is half the fun
kaspergrubbe has joined #ruby
yubrew has joined #ruby
<etqqkoiflwhb>
Mon_Ouie: what would a good place to start to write an interpreter as a fun project?
apeiros has quit [Remote host closed the connection]
<banister>
Mon_Ouie can you rephrase that pls
apeiros has joined #ruby
<Mon_Ouie>
banister: If I were to write it in Ruby I wouldn't have to write a garbage collector, etc.; that's part of the fun
Oog has quit []
<banister>
Mon_Ouie ah ok :)
robustus has joined #ruby
<banister>
Mon_Ouie btw how do i open an org-mode link so that it replaces the org-mode window rather than opening it in an opposing window?
Hanmac has joined #ruby
<Mon_Ouie>
etqqkoiflwhb: I'm not sure. In this case I started with a parser for the various expressions then the runtime (GC, etc.) and when I'm done debugging that I'll actually move on to evaluating expressions.
<Mon_Ouie>
banister: No idea
yubrew has quit [Ping timeout: 240 seconds]
Speed has joined #ruby
browndawg has quit [Quit: Leaving.]
<etqqkoiflwhb>
Mon_Ouie: a parser with bison?
jonno11 has joined #ruby
mehlah has joined #ruby
jonno11 has quit [Client Quit]
<Mon_Ouie>
I just did it by hand, lisp expressions are simple enough. It's not to hard for more complex expressions either, just likely slower than the code a parser generator produces.
mrmargolis has joined #ruby
pika_pika has joined #ruby
kayloos has quit [Remote host closed the connection]
<banister>
Mon_Ouie recursive decent parser?
<Mon_Ouie>
(A cool way to write parsers, although more so in functional languages, is using parser combinators)
aagdbl has joined #ruby
<Mon_Ouie>
banister: I don't know the exact terminology
karupa is now known as zz_karupa
Lewix has quit [Remote host closed the connection]
<banister>
Mon_Ouie one sec
<banister>
Mon_Ouie here: "récursive analyseur de descente"
<Mon_Ouie>
Oh, that helps a lot
<banister>
np
<Mon_Ouie>
If you actually meant "decent" rather than "descent" you should also say "décence" instead :p
mrmargolis has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
ponga has quit [Remote host closed the connection]
<Mon_Ouie>
Probably, yes. I mean, how many 15 year old have an attention span of over 4 years?
vlad_starkov has quit []
obs has quit [Quit: Konversation terminated!]
anaeem1__ has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
<banister>
JesseH it's a pretty cool project :)
etqqkoiflwhb has joined #ruby
<JesseH>
Oh yeah, looks like it.
kinginky has joined #ruby
atno has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
shashank_rs has quit [Ping timeout: 250 seconds]
Deele has joined #ruby
obs has joined #ruby
tjsousa_ has quit [Remote host closed the connection]
tjsousa_ has joined #ruby
Celm has joined #ruby
phoo1234567 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
kinginky__ has joined #ruby
shashank_rs has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
yvemath has quit [Remote host closed the connection]
psyko666 has quit [Quit: Leaving]
mansi has joined #ruby
evenix has joined #ruby
ponga has quit [Ping timeout: 250 seconds]
crzrcn has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
mostlybadfly has joined #ruby
Sp4rKy has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
emaxi has quit [Remote host closed the connection]
emaxi has joined #ruby
crzrcn has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
mansi has quit [Ping timeout: 240 seconds]
KJM has joined #ruby
KJM has left #ruby [#ruby]
nateberkopec has joined #ruby
emaxi has quit [Ping timeout: 240 seconds]
KJM has joined #ruby
KJM has left #ruby [#ruby]
werdnativ has joined #ruby
arietis has joined #ruby
chrisseaton has quit [Ping timeout: 250 seconds]
rvraghav93 has quit [Ping timeout: 250 seconds]
rvraghav93 has joined #ruby
_matt has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
zigomir has joined #ruby
iamjarvo has quit [Ping timeout: 276 seconds]
yvemath has joined #ruby
kayloos has joined #ruby
eka has joined #ruby
rvraghav93 has quit [Remote host closed the connection]
jamto11 has joined #ruby
yubrew has joined #ruby
_matt has quit [Client Quit]
mehlah_ has joined #ruby
mehlah has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 240 seconds]
zigomir has quit [Remote host closed the connection]
werdnativ has quit [Quit: werdnativ]
_justin has quit [Quit: _justin]
Sawbones has joined #ruby
iamjarvo has joined #ruby
etqqkoiflwhb has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
_justin has joined #ruby
mr_snowf1ake has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
tkuchiki_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo__ has joined #ruby
nari has quit [Ping timeout: 245 seconds]
sdouglas has quit [Remote host closed the connection]
timonv has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 245 seconds]
agjacome has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 264 seconds]
danshultz has joined #ruby
ayaz has joined #ruby
zigomir has joined #ruby
tkuchiki_ has quit [Ping timeout: 276 seconds]
Virtualize|away has joined #ruby
rjhunter has joined #ruby
Sawbones has quit [Remote host closed the connection]
sbnnrd has joined #ruby
kobain has quit []
timonv has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
seaned has joined #ruby
timonv has joined #ruby
frobrob has joined #ruby
yalue has joined #ruby
nateberkopec has quit [Client Quit]
Mon_Ouie has quit [Remote host closed the connection]
Lightsword has quit [Ping timeout: 252 seconds]
klaut has joined #ruby
shashank_rs has quit [Ping timeout: 250 seconds]
danijoo has joined #ruby
chipotle has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kirun has joined #ruby
Celm has joined #ruby
blackmes1 has quit [Quit: WeeChat 0.4.3]
akonny has joined #ruby
simono has joined #ruby
Zopieux has joined #ruby
<Zopieux>
hi there
<Zopieux>
i'm trying to install rvm on archlinux using the given command: \curl -sSL https://get.rvm.io | bash -s stable
<Zopieux>
curl gives me error 23 cannot write body
<Zopieux>
i've googled this and nothing interesting comes up
<Zopieux>
do you have any idea?
Celm has quit [Ping timeout: 276 seconds]
chipotle has quit [Quit: cya]
yfeldblum has joined #ruby
seaned has quit [Quit: Zzzzzz....]
kaspergrubbe has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
ktosiek has joined #ruby
tkuchiki has joined #ruby
crzrcn has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
<sweeper>
Zopieux: seems like a permissions/disk space issue?
dingus_khan has joined #ruby
<Zopieux>
well I can write anywhere on my ~
yfeldblum has quit [Ping timeout: 252 seconds]
<Zopieux>
obviously it works using super user but I want a single user install here
<Zopieux>
does the script tries to write anywhere else than ~ ?
timonv has quit [Remote host closed the connection]
<sweeper>
nope
Speed has quit [Ping timeout: 245 seconds]
<sweeper>
Zopieux: running arch myself, and rvm 'just worked'
<Zopieux>
I don't get it :/
oo__ has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
crzrcn has quit [Ping timeout: 255 seconds]
aspiers has quit [Ping timeout: 276 seconds]
kaspergrubbe has quit [Remote host closed the connection]
oo_ has joined #ruby
etqqkoiflwhb has joined #ruby
ixti has joined #ruby
yubrew has joined #ruby
timonv has joined #ruby
dingus_khan has quit []
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
yfeldblum has joined #ruby
oo_ has quit [Remote host closed the connection]
metamaterial has quit [Quit: Leaving.]
oo_ has joined #ruby
thomasxie has left #ruby [#ruby]
mjs2600 has joined #ruby
_justin has quit [Quit: _justin]
mjs2600 has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
charlies_ has joined #ruby
sumark has quit [Remote host closed the connection]
sumark has joined #ruby
charliesome has quit [Ping timeout: 276 seconds]
<Zopieux>
ok guys there was already a .rvm folder, but I don't understad why the script did not remove it or told me so...
<Zopieux>
thanks anyway
aspiers has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
_justin has joined #ruby
mark_locklear has joined #ruby
emaxi has joined #ruby
Sawbones has joined #ruby
seaned has joined #ruby
himsin has quit [Quit: himsin]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
seuros has quit [Read error: Connection reset by peer]
emaxi_ has joined #ruby
emaxi has quit [Read error: Connection reset by peer]
jxf has quit [Ping timeout: 245 seconds]
nari has joined #ruby
suujeet has joined #ruby
suujeet has quit [Client Quit]
Hanmac1 has joined #ruby
freerobby has joined #ruby
suujeet has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
psyko666 has joined #ruby
Sp4rKy has joined #ruby
Beoran_ has quit [Ping timeout: 250 seconds]
puzanov_ has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
manlycode has joined #ruby
banister has joined #ruby
oo__ has joined #ruby
mjs2600 has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
aagdbl has quit [Quit: Connection closed for inactivity]
freerobby has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
Blaze_Boy has joined #ruby
nomenkun has joined #ruby
Hanmac has joined #ruby
puzanov has quit [Ping timeout: 240 seconds]
dorei has joined #ruby
pika_pika has joined #ruby
_axx has left #ruby [#ruby]
oo_ has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
zigomir has quit [Remote host closed the connection]
mehlah_ is now known as mehlah
r0nin has joined #ruby
r0nin has quit [Client Quit]
pskosinski has quit [Quit: Til rivido Idisti!]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
mjs2600 has quit []
<shevy>
does rvm use coloured output?
kukyakya has joined #ruby
coderhs has joined #ruby
Beoran_ has joined #ruby
tjsousa_ has quit [Quit: Computer has gone to sleep.]
rmorello has joined #ruby
bambuka has quit [Quit: Saliendo]
shime has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
happytux_ has quit [Ping timeout: 240 seconds]
<rjhunter>
shevy: rvm used to be pretty colorful when i used to use it
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
vpretzel has joined #ruby
lfox has joined #ruby
enebo has joined #ruby
djbender_ has joined #ruby
Slavox is now known as Slavox|AFK
djbender_ has quit [Client Quit]
<Blaze_Boy>
i'm trying to deploy this script on heroku : https://github.com/blazeeboy/RubyScripts/blob/master/2014-4-21/evalin_comodor.rb , my Procfile : web: bundle exec ruby evalin_comodor.rb , when i use "heroku ps" it says : eb.1: up 2014/04/21 14:20:16 (~ 17m ago , but it is not really running and doesn't respond, when i try : heroku run ruby evalin_comodor.rb, it runs normally, any ideas what's wrong ?
kreisys has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
lmickh has joined #ruby
Coolhand has joined #ruby
niharvey has quit [Ping timeout: 245 seconds]
Hanmac has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
linojon has joined #ruby
holomorph has joined #ruby
Nukepuppy has joined #ruby
crzrcn has joined #ruby
BizarreCake has quit [Ping timeout: 250 seconds]
proliberate has joined #ruby
emaxi_ has quit [Read error: Connection reset by peer]
emaxi has joined #ruby
yubrew has joined #ruby
SilkFox has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
Zopieux has left #ruby ["Quitte"]
mikepack has joined #ruby
happytux has joined #ruby
<happytux>
hi
mjs2600 has joined #ruby
sambao21 has joined #ruby
etqqkoiflwhb has joined #ruby
crzrcn has quit [Ping timeout: 255 seconds]
mikepack has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Remote host closed the connection]
dblessing has joined #ruby
yubrew has quit [Ping timeout: 276 seconds]
xiella has quit [Ping timeout: 252 seconds]
paulfm has joined #ruby
emaxi has quit [Ping timeout: 255 seconds]
lmickh has quit [Quit: lmickh]
chrisseaton has joined #ruby
CorySimmons has joined #ruby
codabrink has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
mrmargolis has joined #ruby
doodlehaus has joined #ruby
metamaterial has joined #ruby
<suujeet>
hi, i m geting error while installation of gem file. Gem files will remain installed in C:/webserver/ruby/Ruby187/lib/ruby/gems/1.8/g ems/json-1.8.1 for inspection. Results logged to C:/webserver/ruby/Ruby187/lib/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/generator/gem_make.out An error occurred while installing json (1.8.1), and Bundler cannot continue. Make sure that `gem install json -v '1.8.1'`
<suujeet>
succeeds before bundling.
arietis has joined #ruby
Hanmac has joined #ruby
helpD has quit [Remote host closed the connection]
relix has joined #ruby
zigomir has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
bthesorceror has quit [Remote host closed the connection]
etqqkoiflwhb_ has joined #ruby
bthesorceror has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
tjsousa_ has joined #ruby
metamaterial has quit [Ping timeout: 272 seconds]
emaxi has joined #ruby
codenapper has joined #ruby
timonv has joined #ruby
codenapper has quit [Client Quit]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
oo_ has joined #ruby
etqqkoiflwhb_ has quit [Read error: Connection reset by peer]
bthesorceror has quit [Ping timeout: 252 seconds]
tjsousa_ has quit [Ping timeout: 255 seconds]
rm_ has joined #ruby
oo___ has joined #ruby
creativeembassy has joined #ruby
oo__ has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
Xeago__ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
oo_ has quit [Ping timeout: 264 seconds]
mansi_ has joined #ruby
mansi_ has quit [Remote host closed the connection]
mansi_ has joined #ruby
tjsousa_ has joined #ruby
simono has joined #ruby
anaeem1 has joined #ruby
emaxi_ has joined #ruby
timonv has quit [Remote host closed the connection]
emaxi has quit [Ping timeout: 264 seconds]
krz has quit [Quit: WeeChat 0.4.3]
kreisys has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
iamjarvo has joined #ruby
b1nd has quit [Ping timeout: 250 seconds]
claymore has quit [Ping timeout: 245 seconds]
meatherly has quit [Ping timeout: 240 seconds]
<shevy>
"This method supports thread. Switches the thread context when waits inputting line."
Krajsnick has joined #ruby
<shevy>
typical official ruby documentation
creativeembassy has quit [Quit: FO SHO]
creativeembassy has joined #ruby
Phoenixz has joined #ruby
mr_snowf1ake has quit [Ping timeout: 252 seconds]
claymore has joined #ruby
arietis has joined #ruby
emaxi_ has quit [Read error: Connection reset by peer]
Guedes0 has joined #ruby
zachallett has joined #ruby
obscured has joined #ruby
werdnativ has joined #ruby
oo___ has quit [Remote host closed the connection]
werdnativ has quit [Client Quit]
ffranz has joined #ruby
mityaz has joined #ruby
lukec has joined #ruby
_justin has quit [Quit: _justin]
etqqkoiflwhb_ has joined #ruby
omosoj has joined #ruby
JohnBat26 has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
omosoj has quit [Client Quit]
omosoj has joined #ruby
lmickh has joined #ruby
Krajsnick has quit [Quit: Leaving...]
Lewix has joined #ruby
kristiandelay has joined #ruby
pskosinski has joined #ruby
pskosinski has quit [Client Quit]
pskosinski has joined #ruby
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb_ has joined #ruby
CorySimmons has quit [Quit: Zzz...]
djbender_ has joined #ruby
sambao21 has joined #ruby
jobewan has joined #ruby
b1nd has joined #ruby
CorySimmons has joined #ruby
jamto11 has joined #ruby
Sawbones_ has joined #ruby
codebro has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
GlenK has joined #ruby
anaeem1_ has joined #ruby
lolmaus has quit [Ping timeout: 245 seconds]
etqqkoiflwhb_ has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
Sawbones has quit [Ping timeout: 252 seconds]
emaxi has joined #ruby
cassioscabral has joined #ruby
crzrcn has joined #ruby
lolmaus has joined #ruby
zz_jrhorn424 is now known as jrhorn424
sambao21 has quit [Quit: Computer has gone to sleep.]
HashNuke has quit [Quit: Connection closed for inactivity]
andy___ has joined #ruby
<shevy>
then you can pass the variable hash to all of them
<shevy>
btw why is there a leading = ?
<randomnick_>
its haml
mary5030 has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
Blaze_Boy has left #ruby [#ruby]
rm_ has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 276 seconds]
rm_ has joined #ruby
<shevy>
is this ruby code?
bradhe has quit [Ping timeout: 252 seconds]
codebro has joined #ruby
ktun has joined #ruby
ktun has quit [Client Quit]
noop has quit [Ping timeout: 240 seconds]
noop has joined #ruby
Deejay_ has joined #ruby
holomorph has left #ruby [#ruby]
rm_ has quit [Ping timeout: 264 seconds]
omosoj has quit [Ping timeout: 240 seconds]
mengu has quit []
Atrumx has quit [Quit: Leaving]
ktun has joined #ruby
stormbytes has joined #ruby
rvraghav93 has joined #ruby
sigurding has quit [Ping timeout: 265 seconds]
sigurding_ has joined #ruby
rmorello is now known as rmorello|1194
ktosiek has quit [Ping timeout: 252 seconds]
tuliohmendes has joined #ruby
tuliohmendes has quit [Client Quit]
metamaterial has joined #ruby
etqqkoiflwhb_ has joined #ruby
stormbytes has quit [Client Quit]
poguez_ has joined #ruby
Xeago has joined #ruby
helpD has quit [Remote host closed the connection]
tuliohmendes has joined #ruby
BWStearns has quit [Ping timeout: 245 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
agrinb has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
CorySimmons has quit [Quit: Bye!]
skulker has joined #ruby
tuliohmendes has quit [Client Quit]
metamaterial has quit [Ping timeout: 272 seconds]
Xeago has quit [Ping timeout: 255 seconds]
r_rios has joined #ruby
iamjarvo has quit [Ping timeout: 276 seconds]
sepp2k has joined #ruby
agrinb has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
Es0teric has joined #ruby
omosoj has joined #ruby
bluOxigen has joined #ruby
arietis has joined #ruby
SCommette has joined #ruby
jespada has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
anaeem1 has quit [Remote host closed the connection]
cassioscabral has quit [Quit: Saindo]
anaeem1 has joined #ruby
randomnick_ has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
chipotle has joined #ruby
yubrew has joined #ruby
simono has quit [Ping timeout: 264 seconds]
cjbottaro has joined #ruby
feelx has joined #ruby
senayar has joined #ruby
mikepack has joined #ruby
<jxf>
Is there a Ruby method that changes self to something else, within the context of a block? Analogous to, say, Object#tap.
krz has joined #ruby
Pynix has joined #ruby
<banister>
jxf instance_eval ?
<jxf>
But instead of doing "o.tap { |o| o.foo; o.bar; o.baz }", I could do: "o.<???> { |o| foo; bar; baz }".
centrx has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
etqqkoiflwhb_ has joined #ruby
<jxf>
banister: Dang, yes. I feel stupid now. :)
Pynix has quit [Client Quit]
<proliberate>
be careful and make sure you document that you are changing self
Pynix has joined #ruby
anarang has quit [Quit: Leaving]
<centrx>
Only you can change your self
<jxf>
Be the self you want to be in the world.
mikepack has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
<lagweezle>
centrx: hah :)
<cout>
centrx: you cannot change your self.
<cout>
you can only change that to which your self refers. :)
helpD has joined #ruby
vpretzel is now known as vpretzel|1332
geggam has joined #ruby
<banister>
cout how's life bro
chipotle has quit [Quit: cya]
<cout>
banister: busy racing cars :)
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
<cout>
trying to get the prius ready to race in two weeks
<banister>
cout cool, still doing rails as a day job? :)
<cout>
banister: no, back in financial programming again
<banister>
cout cool, using what language?
<cout>
C++ and ruby
<cout>
frontend is angular
randomnick_ has joined #ruby
crzrcn has joined #ruby
zcreative has joined #ruby
codezomb has joined #ruby
<happytux>
hi
<happytux>
I got a strange ruby problem
charlies_ is now known as charliesome
<happytux>
/var/lib/jenkins/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/bundler-1.6.1/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find builder-3.2.2 in any of the sources (Bundler::GemNotFound)
CorySimmons has joined #ruby
shime has joined #ruby
<happytux>
When executing rbenv exec bundle exec librarian-puppet [...]
Fretta has joined #ruby
iamjarvo has joined #ruby
timonv has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
terrellt has joined #ruby
<happytux>
I could also run it using bundle exec librarian-puppet [...], same result
Celm has joined #ruby
<cout>
banister: what about you?
<happytux>
could anyone help?
<happytux>
I can only find very spare information about this problem.
anaeem1 has quit [Remote host closed the connection]
<banister>
cout just rails programming stuff a generalassemb.ly
<banister>
at
BWStearn2 has joined #ruby
sambao21 has joined #ruby
<banister>
cout it's ok, we're moving to SOA soon (mainly little sinatra apps) , so should be more fun
<happytux>
I should rename myself to 'unhappytux' :(
<happytux>
or 'depressedtux'
<shevy>
LastWhisper depends on your use case. but if you don't have dynamic code, then using .send is rarely needed
sdouglas has quit [Ping timeout: 240 seconds]
<proliberate>
hate that sort of error happytux. would help you out more if i could :(
b1nd has quit [Ping timeout: 240 seconds]
blueOxigen has joined #ruby
<happytux>
proliberate: I use rbenv to install bundle to install librarian-puppet, so it is quite nested.
abra has joined #ruby
<happytux>
But I don't find it too uncommon.
randomnick_ has quit [Ping timeout: 276 seconds]
lkba has quit [Ping timeout: 264 seconds]
ktosiek has joined #ruby
timonv has joined #ruby
<LastWhisper>
shevy: I'm using it for a db check using rspec matchers, and basically whenever something has a "not" for the presence regex matcher, I want it to do a .not_to equal value
<LastWhisper>
and when presence = nil, then I want it to do a .to eq value
<LastWhisper>
so I was trying to just set this variable presence_check
bluOxigen has quit [Ping timeout: 240 seconds]
<LastWhisper>
to either be a 'to
<LastWhisper>
or 'not_to
bluOxigen has joined #ruby
<LastWhisper>
but I think the problem is that send uses a method
<LastWhisper>
and im giving it a variable
dachi has joined #ruby
codebro has quit [Read error: Connection reset by peer]
codebro has joined #ruby
<LastWhisper>
actually, guy in #rspec asnwered it for me shevy
blueOxigen has quit [Ping timeout: 240 seconds]
<LastWhisper>
basically just had to write it as .send(variable, eq(value))
<LastWhisper>
instead
maletor has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
rjhunter has quit [Remote host closed the connection]
Mon_Ouie has quit [Read error: Operation timed out]
<[ROOT]XxNeoLiTHi>
hi all, im looking to convert a string to 158 bit hexdump string similar to running echo "somestring" | xxd -ps on command line. Is there any thing in ruby core/stdlib i can use to do this instead of shelling out?
<benzrf>
[ROOT]XxNeoLiTHi: wow ur nick is so leet
marcdel has quit []
<benzrf>
anyway
<benzrf>
what do u mean by '158 bit'
dachi has joined #ruby
rm_ has joined #ruby
adammokan has joined #ruby
crzrcn has quit [Ping timeout: 252 seconds]
froy has joined #ruby
<[ROOT]XxNeoLiTHi>
have an internal application that takes xml configs and it uses a hashed string as unique identifier, was told it had to be 158 bit
<[ROOT]XxNeoLiTHi>
the above command is what they gave me
bean__ has joined #ruby
mcclurmc has joined #ruby
Pynix has quit [Quit: Pynix]
<[ROOT]XxNeoLiTHi>
*158 bit hex string
<benzrf>
ok
<happytux>
shevy: so --user-install is the same as --local? Will it install on user-level or on directory-level?
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Deejay_ has quit [Quit: Computer has gone to sleep.]
yubrew has joined #ruby
Kricir has joined #ruby
zcreative has quit [Client Quit]
relix has quit [Read error: Connection reset by peer]
mikepack has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
relix has joined #ruby
klaut has joined #ruby
pwh has joined #ruby
supermarin has quit [Quit: Computer has gone to sleep.]
danijoo has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
danijoo has joined #ruby
agrinb has quit [Quit: Leaving...]
geggam has quit [Ping timeout: 264 seconds]
alpha123 has quit [Ping timeout: 250 seconds]
Virtualize|away has quit [Quit: Leaving...]
Spami has joined #ruby
mjsmith2 has joined #ruby
[BNC]pagioss has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
hamakn has joined #ruby
CorySimmons has quit [Quit: Zzz...]
havenwood has quit [Remote host closed the connection]
sigurding has joined #ruby
IceDragon has joined #ruby
bradhe has joined #ruby
nomenkun has quit [Remote host closed the connection]
mr_snowf1ake has joined #ruby
supermarin has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
vlad_starkov has quit []
vlad_starkov has joined #ruby
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 264 seconds]
wald0 has quit [Quit: leaving]
endash has joined #ruby
einarj has quit [Remote host closed the connection]
frem_ has joined #ruby
gregf has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
bean__ has joined #ruby
tris has quit [Read error: Connection reset by peer]
jdguzman has joined #ruby
CorySimmons has joined #ruby
lw has quit [Ping timeout: 255 seconds]
HashNuke has joined #ruby
havenwood has joined #ruby
SonicX_ has quit [Remote host closed the connection]
pel_daniel has joined #ruby
manlycode has joined #ruby
rippa has joined #ruby
djbender has quit [Quit: djbender]
blackavr has joined #ruby
geggam has joined #ruby
ebwise has joined #ruby
metamaterial has joined #ruby
szerf has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
lw has joined #ruby
jxf has joined #ruby
<szerf>
hi
<happytux>
[exec] /var/lib/jenkins/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/librarian-0.1.2/lib/librarian/dependency.rb:149:in `assert_name_valid!': name ("") must be sensible (ArgumentError)
nanoyak_ has quit [Read error: Connection reset by peer]
andy___ has quit [Remote host closed the connection]
<LastWhisper>
thx havenwood ~!
nanoyak has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Read error: Operation timed out]
helpD has quit [Ping timeout: 265 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Remote host closed the connection]
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
bradhe has joined #ruby
djbkd has quit [Remote host closed the connection]
aknagi has joined #ruby
einarj has joined #ruby
chrisseaton has quit [Ping timeout: 240 seconds]
Virtualize|away has quit [Quit: Leaving...]
toastyne_ has joined #ruby
toastynerd has quit [Ping timeout: 276 seconds]
ixti has quit [Ping timeout: 276 seconds]
obs has joined #ruby
lw has quit [Read error: Connection reset by peer]
andy___ has joined #ruby
ndrei has joined #ruby
lw has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
lw has quit [Max SendQ exceeded]
geggam has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
toastynerd has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
<shevy>
ok guys
<shevy>
it is time again
<shevy>
down with the pants!
simono has joined #ruby
lw has joined #ruby
<shevy>
what do you use when you start with a new gem and wish to populate it with proper skeletons, including documentation?
<shevy>
file and directory skeletons, not the undead type ones
toastyne_ has quit [Ping timeout: 276 seconds]
geggam has joined #ruby
olivier_bK has joined #ruby
tommylommykins has quit [Quit: leaving]
tommylommykins has joined #ruby
cina has joined #ruby
saarinen has joined #ruby
Milly_Bays has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 245 seconds]
* shevy
starts to whip everyone
rvraghav93 has joined #ruby
combusean has joined #ruby
rvraghav93 has quit [Read error: Connection reset by peer]
<aedorn>
people still wear pants?
Phoenixz has quit [Ping timeout: 252 seconds]
metamaterial has joined #ruby
CorySimmons has quit [Quit: Bye!]
gvickers has joined #ruby
bradhe has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
crzrcn has joined #ruby
Coolhand is now known as niharvey
robbyoconnor has joined #ruby
havenwood has quit [Remote host closed the connection]
szerf has quit [Quit: Page closed]
skaflem has quit [Quit: Leaving]
Trynemjoel has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
lw has quit [Read error: Connection reset by peer]
nanoyak has quit [Quit: Computer has gone to sleep.]
anaeem1 has joined #ruby
lukec has quit [Quit: lukec]
Trynemjoel has joined #ruby
nateberkopec has joined #ruby
x1337807x has joined #ruby
marcdel has joined #ruby
robbyoconnor has quit [Excess Flood]
nanoyak has joined #ruby
senayar has quit [Remote host closed the connection]
treehug88 has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
ebwise has joined #ruby
nanoyak has joined #ruby
djbkd has joined #ruby
VTLob has quit [Quit: VTLob]
thrillagorilla has quit []
<shevy>
only outside home!
Xeago has joined #ruby
armstrjare has joined #ruby
armstrjare has quit [Max SendQ exceeded]
etqqkoiflwhb_ has joined #ruby
Phoenixz has joined #ruby
marcdel has quit [Ping timeout: 265 seconds]
ehc has joined #ruby
treehug88 has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
obs has quit [Quit: Saliendo]
ixti has joined #ruby
omosoj has joined #ruby
bradhe has quit [Remote host closed the connection]
treehug88 has joined #ruby
simono is now known as simon-away
simon-away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
kaspergrubbe has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
havenwood has joined #ruby
afex has joined #ruby
helpD has joined #ruby
etqqkoiflwhb_ has quit [Ping timeout: 252 seconds]
gvickers has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
baroquebobcat has joined #ruby
marcdel has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
Shidash has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
sputnik1_ has joined #ruby
sputnik1_ is now known as sputnik13net
geggam has quit [Remote host closed the connection]
lw has joined #ruby
ebwise has quit [Remote host closed the connection]
etqqkoiflwhb_ has joined #ruby
djbender has quit [Quit: djbender]
postmodern has joined #ruby
j416 has joined #ruby
<j416>
o/ what's a nice way to embedd a multiline shell script in my ruby script? Can I use heredoc?
geggam has joined #ruby
mikepack has joined #ruby
<j416>
I want to execute a few lines, blocking, and get the result into a variable
<j416>
s/embedd/embed/
<j416>
even
<havenwood>
j416: my first impulse would be to create an Array of commands and iterate over them with backticks
<j416>
that's not too bad
<havenwood>
j416: do the commands rely on each other? if it's complicated you might consider rake.
<j416>
yes well
<j416>
I'd like to chain them with &&
<j416>
to let shell handle any errors
blackmesa has joined #ruby
<j416>
no rake
<j416>
this is a script to get some data from a website and commit it to a git repo and push it
<j416>
to become a cron job
<havenwood>
you can rake in a cron job
toastynerd has quit []
<j416>
I'd rather not rely on rake, though
<j416>
seems overkill
<j416>
not sure how I'd benefit?
crystal77 has joined #ruby
spyderma_ has quit []
mikepack has quit [Ping timeout: 252 seconds]
GlenK has joined #ruby
tharindu has quit [Quit: Leaving...]
<havenwood>
j416: if tasks depend on other tasks it can quickly become spaghetti mess. rake has a nice clean way of invoking task dependencies. if it is simple enough maybe no need.
paulfm has quit []
<j416>
havenwood: good point. This is just a simple script though, and it's not a disaster if it fails to push
paulfm has joined #ruby
<j416>
since it's a cron job I'd like to keep its dependencies few, since if it didn't run at all it'd be a bit of a hassle for me
<j416>
(in case gem is lost etc.)
ponga has joined #ruby
AntelopeSalad_ has joined #ruby
djbkd has quit [Remote host closed the connection]
twiceday has joined #ruby
<havenwood>
j416: rake does ship with ruby these days, but i sure understand wanting to keep it simple
AntelopeSalad has quit [Ping timeout: 252 seconds]
bthesorceror has joined #ruby
<j416>
havenwood: I found a solution
<havenwood>
j416: use Shell :P
<j416>
havenwood: Kernel#system returns a boolean with the result of the command
paulfm has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
twiceaday has quit [Ping timeout: 240 seconds]
<j416>
havenwood: I could just loop an array as you suggest and break if any command gives false
<j416>
nice nice
<havenwood>
j416: with backticks you can check: $?.success? #=> true
ponga has quit [Ping timeout: 240 seconds]
<havenwood>
j416: $? should work fine as long as you're blocking
<havenwood>
j416: but yeah, `system` if you don't need to return output
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
Guedes0 has joined #ruby
<havenwood>
j416: do you really need to shell out?
<havenwood>
j416: Have any code to Gist?
Lewix has quit [Remote host closed the connection]
djbender has joined #ruby
Lewix has joined #ruby
paulfm has joined #ruby
<shevy>
$?.success? is so ugly to read
claymore has quit [Ping timeout: 240 seconds]
<havenwood>
shevy: i guess you can: require 'english'; $CHILD_STATUS == $? #=> true
<havenwood>
shevy: perlisms!
<shevy>
only slightly better
<shevy>
that one has to require english is however awful :(
ponga has quit [Ping timeout: 252 seconds]
<shevy>
it makes these alternative names second-class citizens
claymore has joined #ruby
<shevy>
couldn't all those $- be added into a module?
<crome>
$- looks like an umbrella or something
aknagi has quit [Quit: aknagi]
b1nd has joined #ruby
lw has quit [Read error: No route to host]
<havenwood>
i was pleased the other day that i got to make a monkeyface with: #inject(:|)
<shevy>
and what does $~ look like
<shevy>
lol
<crome>
shevy: a corkwscrew
<crome>
-w
<shevy>
inject with a monkeyface attitude
<crome>
should be $~~ for better proportions
<havenwood>
inject monkeys at once!
Kricir has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 246 seconds]
aknagi has joined #ruby
<shevy>
lol
tjsousa__ has quit [Ping timeout: 252 seconds]
shashank_rs has quit [Ping timeout: 250 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf|offline is now known as benzrf
senayar has joined #ruby
aarkerio has joined #ruby
AntelopeSalad_ is now known as AntelopeSalad
bradhe has quit [Remote host closed the connection]
<j416>
last time I checked grit was the go-to ruby gem for git
afex has quit [Ping timeout: 265 seconds]
<havenwood>
i think a Rugged dep might end up being more robust than shelling out, dunno
djbkd has quit [Remote host closed the connection]
<j416>
yeah, I don't doubt that
<j416>
this is dead simple, though
bradhe has joined #ruby
<j416>
just add and commit
<j416>
and push
testcore has joined #ruby
<j416>
if there's an error, cron will send me an e-mail anyway
<benzrf>
push push push
simono has quit [Read error: Connection reset by peer]
simono_ has joined #ruby
metamaterial has quit [Quit: Leaving.]
cina has quit [Ping timeout: 240 seconds]
<j416>
and if that fails, I'll notice fairly quickly that my price database hasn't been updated
<j416>
but thank you. If I ever need to do advanced git magic in ruby I'll definitely re-visit rugged
saarinen has quit [Read error: Connection reset by peer]
rgiscard has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
timonv has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
lolmaus has quit [Read error: Operation timed out]
olivier_bK has joined #ruby
Lightsword has joined #ruby
binaryhat has quit [Quit: Leaving]
claymore has quit [Ping timeout: 252 seconds]
testcore has quit [Ping timeout: 272 seconds]
obs has joined #ruby
obs_ has joined #ruby
saarinen has joined #ruby
obs_ has quit [Client Quit]
arietis has quit [Quit: Computer has gone to sleep.]
nopolitica has quit [Ping timeout: 252 seconds]
mjsmith2 has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
Xeago_ has joined #ruby
pika_pika has quit [Ping timeout: 252 seconds]
rgiscard has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
banister is now known as banisterfiend
simono_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xiti` has joined #ruby
Hanmac1 has joined #ruby
oo_ has joined #ruby
feelx has quit []
Hanmac has quit [Ping timeout: 252 seconds]
oo__ has joined #ruby
Xiti has quit [Ping timeout: 276 seconds]
aknagi has quit [Quit: aknagi]
yfeldblum has joined #ruby
aknagi has joined #ruby
senayar has joined #ruby
oo_ has quit [Ping timeout: 276 seconds]
eynj has quit [Quit: Leaving.]
mr_snowf1ake has quit [Ping timeout: 252 seconds]
cpruitt has joined #ruby
oo__ has quit [Ping timeout: 240 seconds]
Xiti` has quit [Quit: Leaving]
oo_ has joined #ruby
testcore has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
oo__ has joined #ruby
mentero has joined #ruby
oo__ has quit [Read error: Connection reset by peer]
oo__ has joined #ruby
afex has joined #ruby
oo__ has quit [Read error: Connection reset by peer]
rm_ has quit [Remote host closed the connection]
cina has joined #ruby
oo__ has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
oo_ has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
oo__ has quit [Remote host closed the connection]
rm_ has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
oo_ has joined #ruby
oo__ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
djbkd has joined #ruby
<rdgawdzi>
To clone an object, is it recommended to write your own clone, that clones each field by cloning their respective field? (In a recursive-like nature?)
<rdgawdzi>
Like if I clone a hash, are k,v cloned as well for example? Or do I need to handle that?
<apeiros>
rdgawdzi: ruby's pros don't need deep copies
rm_ has quit [Remote host closed the connection]
<apeiros>
deep copy is a smell. if you still need one, the cheap way is to use Marshal, the proper way is to model your classes correctly and implement their #intialize_copy
<rdgawdzi>
apeiros: I am creating a decision tree of board game states, and I am modifying them but I want them to not modify each other down the chain.
rm_ has joined #ruby
<rdgawdzi>
apeiros: You recommend designing it differently?
simono has joined #ruby
<apeiros>
rdgawdzi: definitely. as said, deep copy = smell
obscured has joined #ruby
crystal77 has joined #ruby
Lemur has quit [Remote host closed the connection]
<shevy>
"implement their #intialize_copy"
<shevy>
hmmmmmm
<shevy>
;-)
<shevy>
it took me several minutes once to find out why class Foo; def intialize did not work
<benzrf>
?
oo__ has quit [Ping timeout: 240 seconds]
shashank_rs has quit [Read error: Operation timed out]
Azure has quit [Quit: Blue Sky Fish]
<shevy>
yeah benzrf that is something for you to find out!
<benzrf>
oic lol
jsutch has joined #ruby
<benzrf>
this is why python uses __init__
rm_ has quit [Ping timeout: 252 seconds]
<benzrf>
that one is hard to mis spell
Azure has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3]
<shevy>
hmm
<shevy>
def init
<shevy>
might actually be cool too
<shevy>
or def main
<shevy>
def start
<shevy>
!!!
lw has joined #ruby
<benzrf>
def leppard
rgiscard has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
lw has quit [Max SendQ exceeded]
sambao21 has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
djbkd has joined #ruby
lw has joined #ruby
zigomir has joined #ruby
CYBERSPOOKZ has joined #ruby
sambao21 has joined #ruby
pika_pika has joined #ruby
<Hanmac1>
shevy dont trust statistics that say "java" is better than "ruby" because most of them only count the lines of code ... and be serious, you need many less lines in ruby for the same thing than in java
<Senjai>
LOC is the worst metric
<Senjai>
I'm fine with double the code if I can read it twice as fast
<Senjai>
clarity trumps all
davispuh has joined #ruby
bryanculver has quit [Quit: Connection closed for inactivity]
CYBERSPOOKZ has left #ruby [#ruby]
matchaw has joined #ruby
danshultz has quit [Remote host closed the connection]
<Hanmac1>
Senjai: good that you did not see my C(++) code ... i use macros in macros .. in macros with templates to automatic generate bindable functions for Ruby's C-Api
danshultz has joined #ruby
<atmosx>
benzrf: Love biteeesss
<atmosx>
love bleeeeds
oo_ has joined #ruby
<Senjai>
Hanmac1: That doesn't sound fun at all.
red234324 has quit [Quit: Leaving]
Hanmac1 is now known as Hanmac
<benzrf>
love.bite :atmosx
instantaphex has joined #ruby
<Hanmac>
Senjai: i am still suprised that the IDE can resolve the macro construct to detect the code behind ;P
<Senjai>
Sounds like you should refactor
<benzrf>
yesterday i learned that ruby is fucking weird about local variables' existence
<benzrf>
yesterday i discovered that ruby_parser understands scope
<benzrf>
so if you have it parse 'n = 3' and then 'n', it will parse it as a local variable lookup
<benzrf>
but 'x' as a method call
marcdel has quit []
<benzrf>
so i tried doing it when it is indeterminate whether the var exists
<benzrf>
and got that it still treats it as a var
<benzrf>
then i tried it in actual code so that i could comment on the inconsistency
<benzrf>
then i found out that that's not an inconsistency
<benzrf>
[tableflip]
mentero has quit [Quit: Leaving]
jxf has quit [Ping timeout: 264 seconds]
WilfredTheGreate has joined #ruby
WilfredTheGreat has joined #ruby
WilfredTheGreate has quit [Client Quit]
WilfredTheGreat has quit [Client Quit]
WilfredTheGreat has joined #ruby
alvaro_o has joined #ruby
Donations has joined #ruby
combusean has joined #ruby
SlvrDragn has quit [Quit: Peace & Protection 4.22.2]
thrillagorilla has joined #ruby
mjsmith2 has joined #ruby
mikepack has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
<Senjai>
benzrf: I think you should submit a bug report
<benzrf>
pretty sure that's indenteded bhavior
<benzrf>
*intended wow
CorySimmons has joined #ruby
<benzrf>
it's much harder to do it that way then the sane way
bricker has quit [Quit: leaving]
bricker has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
metamaterial has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
obscured has quit [Quit: leaving]
olivier_bK has joined #ruby
crucify_me has joined #ruby
sigurding has quit [Quit: sigurding]
Donations has quit [K-Lined]
Hanmac has quit [Ping timeout: 240 seconds]
<GlenK>
hmm, so I'm forgetting everything I did previously. and now rails isn't working due to my init scripts. if I unset GEM_PATH though, it starts working again.
<GlenK>
I have rails installed via my distro's package manager at this point. works for me.
<GlenK>
question though, if I am going to be installing other things via the gem command, I'm probably going to need that GEM_PATH variable again. any advice on how to consolidate that with my OS's stuff?
davispuh has quit [Ping timeout: 240 seconds]
terrellt has quit [Read error: Connection reset by peer]
Spami has joined #ruby
jackneill has quit [Remote host closed the connection]
bthesorceror has quit [Remote host closed the connection]
terrellt has joined #ruby
<instantaphex>
why don't you remove everything through the package manager and install through rbenv or something like that
aknagi has quit [Quit: aknagi]
<GlenK>
instantaphex: because that seems silly for one.
Hanmac has joined #ruby
Xiti has joined #ruby
<GlenK>
and anyhow, I've just determined via "gem env" that I don't need to set GEM_PATH at all
<GlenK>
so I have no idea why I was doing it in the past, but oh well, whatever.
<instantaphex>
it is pretty silly
anaeem1 has quit [Remote host closed the connection]
metamaterial has quit [Remote host closed the connection]
anaeem1 has joined #ruby
<GlenK>
seriously. I mean, I get the want to stick to a particular version or whatever, but for me a student of all this, I'm just going to go with the lazy route, my distro's package manager.
yalue has quit [Quit: Leaving]
crucify_me_ has joined #ruby
<instantaphex>
you could end up with some problems trying to follow documentation when you're working with outdated builds
oo_ has joined #ruby
crucify_me_ has quit [Client Quit]
aspiers has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
ikaros has joined #ruby
matchaw has quit [Ping timeout: 255 seconds]
jmurray has joined #ruby
<postmodern>
GlenK, you should probably install all gems via gem install
<postmodern>
GlenK, using ruby via the package manager is OK though
ixti has quit [Ping timeout: 276 seconds]
anaeem1 has quit [Ping timeout: 252 seconds]
jmurray has quit [Client Quit]
sambao21 has joined #ruby
<GlenK>
haha, I'm sure I'll fail at something again soon. so until the next time! right now though I'm going to succeed at mexican food
chipotle has quit [Quit: cya]
oo_ has quit [Ping timeout: 265 seconds]
<GlenK>
I'm off to a great start. I got chipotle to quit
<shevy>
or is it a satanic ritual of the old aztecs
<instantaphex>
its a pepper
davispuh has joined #ruby
<benzrf>
its a mexican fast food restaurant
<shevy>
ohh so it is even worse
<instantaphex>
it also makes your anus bleed
<benzrf>
but more All Natural™ than taco bell
<benzrf>
instantaphex: ive eaten there and not had fiery shits
<shevy>
no need to describe all of their devilish secrets instantaphex
<shevy>
benzrf you are still young but wait as you get older, how your body responds to abuse
manlycode has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<GlenK>
you have a problem with digestion, not with spicy food if you're unable to handle mildly spicy foods, such as chipotle peppers.
Sawbones has quit []
<instantaphex>
I guess you guys didn't see that episode of south park
<GlenK>
bear in mind there are chipotle peppers and there are "chipotle peppers". the canned ones are weird.
oo_ has quit [Remote host closed the connection]
oo__ has quit [Ping timeout: 276 seconds]
oo_ has joined #ruby
<GlenK>
yeah, south park, sorry, I'm pop culture impaired these days after canceling cable.
<instantaphex>
Yeah I cancelled cable years ago too
<arubincloud>
Chipotle peppers are made from jalapenos, which vary quite a bit in hotness.
<shevy>
so the guys on #ruby know more about peppers than they do about ruby
<GlenK>
shevy: comes from living in new mexico I guess.
instantaphex has quit [Quit: Lost terminal]
<GlenK>
arubincloud: they vary, meaning they're mostly mild I find these days, but even the most spicy ones are quite mild, especially if you roast and/or seed them or whatever.
<arubincloud>
shevy: Peppers are the new Ruby.
djbkd has quit [Ping timeout: 276 seconds]
ixti has joined #ruby
momomomomo has joined #ruby
ponga has quit [Ping timeout: 252 seconds]
<arubincloud>
Just think of the great naming conventions that peppers allow.
<arubincloud>
gems = seeds?
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
dideler|work has joined #ruby
djbkd has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
<benzrf>
in python we had eggs as the files
<arubincloud>
There would certainly be a seed with the name of every obscure pepper.
x1337807x has joined #ruby
<benzrf>
but then we switched to the wheel format
<arubincloud>
Then you have Scoville and capsicum.
kirun has quit [Quit: Client exiting]
<benzrf>
(the package index was ocassionally referred to as the cheesehop)
<arubincloud>
benzrf: Python switches every few years, no?
Avahey_ has quit [Quit: Connection closed for inactivity]
<benzrf>
the trouble with python is that it is an excellent procedural language
<benzrf>
but the OOP is tacked on
<aknagi>
GlenK: I’d avoid the package manager if I were you (if I was doing Rails development that is, simle use caes might be OK).
benlieb has joined #ruby
<GlenK>
I find it weird how much people are opposed to python based on the indentation rules. I mean, I get it with fortran, but python? the rules are pretty loose.
no6 has joined #ruby
<benzrf>
and then they force you to do everything above super simple scripts (and even that!) with objects
rm_ has joined #ruby
<benzrf>
but if square objects werent hammered into python's procedural round hole
paulfm has quit []
freezey has joined #ruby
supermarin has joined #ruby
BZaidan has joined #ruby
<BZaidan>
good afternoon..
<benzrf>
as it is python is my favorite recommendation for a first language because it lets you learn about procedural and imperative programming in a nice, consistent context
thrillagorilla has quit []
<benzrf>
except that they force in objects =[
<benzrf>
maybe i should start with smalltalk instead
<benzrf>
i should probably learn it myself first
<BZaidan>
does anyone here know how I can parse an rss feed in ruby, add an item and then export it?
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zack_ has joined #ruby
GaryOak_ has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<zack_>
Hi. I have a Test::Unit test. I want to call it multiple times, changing the parameters inside setup slightly each time. What's the best way about this?
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
x1337807x has joined #ruby
<benzrf>
shevy: require 'static_source_loc'
<benzrf>
then do 'StaticSourceLoc.analyze <some_directory_path>'
<benzrf>
it takes 3 optional args
agent_white has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
<benzrf>
2nd is an ==='able test to run against files to see whether to include them (default is /\.rb\Z/)
afex has quit [Ping timeout: 276 seconds]
<benzrf>
3rd is the same for dirs, but if it fails the entire dir is skipped
doodlehaus has quit [Remote host closed the connection]
<benzrf>
default is proc {true}
danijoo has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
<benzrf>
4th is boolean on whether to ignore parsing errors and just move onto the next file
<benzrf>
default is true
<benzrf>
so that if it misidentifies a .rb file which isnt really code, it doesnt blow up
danijoo has joined #ruby
<shevy>
hmm
<shevy>
I get things like "(Object doesn't support #inspect)"
einarj has quit [Read error: Connection reset by peer]
freezey has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 246 seconds]
emaxi has quit [Remote host closed the connection]
<shevy>
and for my largest project I get lots of:
<benzrf>
yo wht
codebro has quit [Ping timeout: 252 seconds]
<shevy>
delete
<shevy>
BLOCK
<benzrf>
??
SilkFox has quit [Ping timeout: 240 seconds]
<shevy>
and then after some more empty lines I get
<combusean>
Senjai, i know, i kinda looked it up once, my gramma never taught me what she knew.
<shevy>
fins are that secretive
<crucify_me>
apeiros: well the append method was the same with lines 3 and 4 switched round. but I don't see how this runs if the args are [], 2 .
<kayloos_>
Your gramma never taught you finish grammar_
<combusean>
i don't know how much she knew
<shevy>
who here is from suomi?
<apeiros>
crucify_me: the order of those two lines doesn't matter
<apeiros>
crucify_me: the method calls itself, decreasing n by 1 each time, until it hits 0
<apeiros>
(or starts out with <0)
<apeiros>
it's a rather poor way to do what the method does
aspiers has joined #ruby
* combusean
kicks slow rails projects
deens has quit []
ikaros has quit [Quit: Ex-Chat]
mikepack has joined #ruby
<crucify_me>
but the instructor says that is what changes the append to the reverse_append. (its a video with josh cheek) to teach recursion I guess
obs has quit [Quit: Saliendo]
terrellt has joined #ruby
<apeiros>
crucify_me: oh, true
<apeiros>
order of appending changes
<apeiros>
because it descends after appending
<crucify_me>
so if the args are [], 2 , what happens first?
<crucify_me>
I tend to visualize a program running from a to b, but I am often amazed to find I was looking at the logic flow backwards...
<apeiros>
crucify_me: step through the execution
benlieb has quit [Quit: benlieb]
<crucify_me>
well, I think the problem is that I don't see how zero is returned first.
<crucify_me>
is *appended first
garndt has quit [Quit: Connection closed for inactivity]
mikepack has quit [Ping timeout: 264 seconds]
<apeiros>
crucify_me: as said, step through each instruction
<apeiros>
program code is easy that way. you can just do what the computer would do
<shevy>
*sleep
<shevy>
*idle
<shevy>
*scratch the main CPU
<crucify_me>
scratch you spider bite shevy
<crucify_me>
your
Dreamer3 has joined #ruby
<shevy>
hmmm
Shidash has joined #ruby
<shevy>
I am not gonna ever reveal again what bites me
havenwood has joined #ruby
agent_white has joined #ruby
kaspergrubbe has joined #ruby
hfp`away is now known as hfp
<crucify_me>
shevy: I'm capable of commiseration
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerius has quit [Ping timeout: 276 seconds]
<crucify_me>
apeiros: sorry I get one as the first element that is the problem. plus not seeing how flipping 3 and 4 populates the array differently. sorry
lukec has joined #ruby
<apeiros>
crucify_me: write it out the lines are stepped through with recursive_append [], 2
<apeiros>
and paste it
Phoenixz has quit [Ping timeout: 240 seconds]
<apeiros>
add which variable has what value at each step
<crucify_me>
you mean reverse_append?
andy___ has joined #ruby
jbellone has left #ruby [#ruby]
<apeiros>
yes
benzrf is now known as benzrf|offline
<apeiros>
it might help if you also add how many levels down you're in reverse_append
<crucify_me>
apeiros: thanks will do
Phoenixz has joined #ruby
freezey has joined #ruby
kayloos_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hfp is now known as hfp`offline
djbender has quit [Quit: djbender]
hfp`offline is now known as hfp
mockra has quit [Remote host closed the connection]
rm__ has joined #ruby
mockra has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
jacky has joined #ruby
iceden has joined #ruby
Phoenixz has quit [Ping timeout: 276 seconds]
momomomomo has quit [Quit: momomomomo]
nanoyak has quit [Quit: Computer has gone to sleep.]
chibob has quit []
jobewan has quit [Ping timeout: 265 seconds]
mockra has quit [Ping timeout: 264 seconds]
chrisseaton has joined #ruby
nanoyak has joined #ruby
<crucify_me>
apeiros: sorry if n = 0 , n - 1 = -1 . what am I missing?
crystal77 has quit [Quit: Computer has gone to sleep.]
<crucify_me>
are those element indices ? apeiros ^
<apeiros>
I don't understand your question
crystal77 has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
happytux has quit [Read error: Connection reset by peer]
6JTAAD7VE has joined #ruby
happytux has joined #ruby
dik_dak has quit [Quit: Leaving]
djbkd has quit [Read error: Connection reset by peer]
kayloos has joined #ruby
djbkd has joined #ruby
centipedefarmer has quit [Ping timeout: 252 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
mengu has quit [Remote host closed the connection]
yubrew has joined #ruby
treehug88 has quit []
<bricker>
If you were going to grep a relatively small file from a Ruby script, would you use shell or loop with File.foreach?
andy___ has quit [Remote host closed the connection]
<shevy>
ruby!
<shevy>
but I dont think I would use File.foreach
<shevy>
we really need a module called Grep.
<apeiros>
we have Enumerable#grep
<crucify_me>
apeiros: http://pastie.org/9098695 ok I see how the base case returns [], but each arg (starting with 0) just gets pushed to the array without alteration from line 3?
brunops has quit [Ping timeout: 264 seconds]
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
supermarin has quit [Quit: Computer has gone to sleep.]
supermarin has joined #ruby
rvraghav93 has joined #ruby
rm__ has quit [Read error: Connection reset by peer]
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
rm__ has joined #ruby
yubrew has quit [Ping timeout: 276 seconds]
<apeiros>
crucify_me: paste your steps
<apeiros>
also, I'll soon be off
jonno11 has joined #ruby
no6 has quit [Ping timeout: 252 seconds]
rvraghav93 has quit [Remote host closed the connection]
brunops has joined #ruby
mockra has joined #ruby
mockra has quit [Client Quit]
<popl>
apeiros: you're already way off! ;)
cpruitt has quit [Quit: cpruitt]
<apeiros>
o0
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]