tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
fella5s has quit [Read error: Connection reset by peer]
fella5s has joined #ruby
Hobogrammer has quit [Ping timeout: 258 seconds]
meatherly has joined #ruby
redondos has quit [Excess Flood]
saarinen has joined #ruby
redondos has joined #ruby
eshi has joined #ruby
snath has joined #ruby
<eshi>
Hi, does anyone know how to get debug information from workers fired off by sidetiq?
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
agrinb_ has quit [Remote host closed the connection]
Bumptious has joined #ruby
agrinb has joined #ruby
vpretzel has quit [Quit: Adios!]
upsell5 has quit [Quit: upsell5]
pietr0 has quit [Quit: pietr0]
Diranged has joined #ruby
<Diranged>
if I'm using provider.class.stubs(:foobar) to mock up a call to an outside executable, how can i mock its actual exit code so i can fake a failure?
sassamo has quit [Ping timeout: 258 seconds]
agrinb has quit [Ping timeout: 240 seconds]
<Diranged>
right now we use provider.class.stubs(:rs_tag).with(['--list', '--format', 'json']).returns(existing_tags) to mock a successful exit with some fake return data..
aiguu has quit [Ping timeout: 264 seconds]
dik_dak has quit [Quit: Leaving]
jrhorn424 is now known as zz_jrhorn424
BWStearns has quit [Ping timeout: 240 seconds]
codeFiend has joined #ruby
tylerkern has joined #ruby
testcore has quit [Quit: [BX] Reserve your copy of BitchX-1.3-git for the ColecoVision today!]
<rkazak>
so I have uninstalled rvm and going with ruby-install and chruby - so far so good.
tylerkern has quit [Client Quit]
<Diranged>
nevermind, i found the .raises() method..
Diranged has left #ruby [#ruby]
<rkazak>
just installing 2.1.2 - any real need for the previous versions?
toastynerd has quit [Remote host closed the connection]
<havenwood>
rkazak: nope
<benzrf>
rkazak: not unless you need to run code written specifically for 1.8 for some ungodly reason
<havenwood>
nooooo
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rkazak>
:)
<shevy>
benzrf there could be version 1.9x
Hobogrammer has joined #ruby
Mongey is now known as Mongey|zzzz
Soliah has joined #ruby
<rkazak>
does ruby-install also remove?
yfeldblum has quit [Remote host closed the connection]
Connie has joined #ruby
zz_jrhorn424 is now known as jrhorn424
meatherly has quit [Remote host closed the connection]
arrubin has joined #ruby
combusean has quit [Ping timeout: 245 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
omosoj has joined #ruby
dideler has joined #ruby
zz_karupa is now known as karupa
mercerist has joined #ruby
<rkazak>
Hmm, I see there is a chgems - I guess I should install this to make the family complete ?
cjsarette has quit [Excess Flood]
timonv has joined #ruby
saarinen has quit [Quit: saarinen]
djbkd has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
danman has joined #ruby
fella5s has quit [Read error: Connection reset by peer]
danman has quit [Remote host closed the connection]
narcan has joined #ruby
mercerist has quit [Ping timeout: 258 seconds]
cjsarette has joined #ruby
cjsarette has quit [Excess Flood]
b00stfr3ak has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 252 seconds]
cjsarette has joined #ruby
binaryhat has quit [Quit: Leaving]
<postmodern>
rkazak, you don't have to
cjsarette has quit [Max SendQ exceeded]
<postmodern>
rkazak, in fact you really don't need gemsets these days
<rkazak>
postmodern: thanks.
livcd has joined #ruby
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
Kricir has quit [Remote host closed the connection]
<selina345>
arrubin: exercise just says to Add a line to your loop before your print statement. Use the next keyword so that you skip to the next iteration if the number i is odd.
<rkazak>
selina345: change i to j. but arrubin is right
<rkazak>
arrubin: it’s obvoiusly some some gentle learning path. Not that I don;t agree with you.
livcd has quit [Ping timeout: 264 seconds]
jeregrine has quit [Quit: Connection closed for inactivity]
dblessing has joined #ruby
mmoretti has quit [Quit: Leaving...]
Gooder has quit [Remote host closed the connection]
Gooder has joined #ruby
jamto11 has quit [Remote host closed the connection]
lyanchih_ has joined #ruby
<arrubin>
selina345: What is the purpose of the underlines? Are you supposed to put something there?
cjsarette has joined #ruby
jxf has joined #ruby
jmeeuwen has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
<havenwood>
"#{i}" rabble rabble rabble
cjsarette has quit [Max SendQ exceeded]
bijan07077 has joined #ruby
* arrubin
looks at the previous lesson.
jzigmund has quit [Ping timeout: 240 seconds]
<arrubin>
Oh, they want you to use loop do.
sarlalian has joined #ruby
nateberkopec has quit [Quit: Leaving...]
wallerdev has quit [Quit: wallerdev]
<arrubin>
selina345: Did you complete lesson 8?
<arrubin>
The answer is far more obvious if you do.
zachallett has quit [Remote host closed the connection]
<arrubin>
Although they seem to want to confuse you by using for in the example for lesson 9.
Sawbones has joined #ruby
dblessing has quit [Quit: dblessing]
<selina345>
arrubin: yeah, youre supposed to fill in the blanks
<selina345>
so the instructions on the side state
sassamo has joined #ruby
aspires has joined #ruby
<selina345>
Add a line to your loop before your print statement. Use the next keyword so that you skip to the next iteration if the number i is odd.
dsdeiz_ has joined #ruby
kpshek has quit []
<selina345>
arrubin: weird, i din't complete lesson 8
<selina345>
nvm
<selina345>
i get it
selina345 has quit [Quit: Page closed]
Companion has joined #ruby
dsdeiz has quit [Ping timeout: 255 seconds]
afex_ has joined #ruby
nateberkopec has joined #ruby
iwaffles has quit [Quit: iwaffles]
afex has quit [Ping timeout: 265 seconds]
zachallett has joined #ruby
mollitz has quit [Ping timeout: 255 seconds]
moritzs has quit [Ping timeout: 265 seconds]
xcesariox has joined #ruby
reactormonk has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
Spami has quit [Quit: This computer has gone to sleep]
tyll has quit [Ping timeout: 240 seconds]
sassamo has quit [Ping timeout: 252 seconds]
n_b has quit [Ping timeout: 245 seconds]
cjsarette has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
_lazarevsky has joined #ruby
<_lazarevsky>
morning guys
tyll has joined #ruby
<_lazarevsky>
I have written a function in ruby which accepts a file
n_b has joined #ruby
rkazak has quit [Quit: rkazak]
armyriad has joined #ruby
<_lazarevsky>
iterates over it and and saves it to the db
cpruitt has joined #ruby
<_lazarevsky>
this operation can take more than 15 minutes you see..
<_lazarevsky>
I call the method using a curl script from the terminal
<_lazarevsky>
I was wondering if there's a way to give instant feedback to the user while the program is executing
<_lazarevsky>
?
mr_snowf1ake has joined #ruby
centrx has joined #ruby
<arrubin>
puts?
<combusean>
heh
banghouse2 has quit [Remote host closed the connection]
nari has quit [Ping timeout: 240 seconds]
maximski has quit []
<_lazarevsky>
arrubin:
<_lazarevsky>
puts will only print after the method has finished
<_lazarevsky>
I want to be able to provide instant feedback to the user
<arrubin>
I do not follow. Can you show us some code?
<_lazarevsky>
so basically I am iterating over the document line by line right?
mansi has quit [Remote host closed the connection]
<arrubin>
(Using a paste site)
<_lazarevsky>
after every line
<_lazarevsky>
I would like to tell the user "finished line n"
mansi has joined #ruby
cpruitt has quit [Quit: cpruitt]
<arrubin>
_lazarevsky: puts is perfectly suited for that.
<_lazarevsky>
if I use puts it will only print after the method has finished executing
<_lazarevsky>
and I want to notify the user DURING the execution of the method
<_lazarevsky>
I dont know if that's possible
<arrubin>
I do not follow.
cpruitt has joined #ruby
<arrubin>
It sounds like something else is buffering the output.
<arrubin>
And I do not understand the involvement of curl.
<_lazarevsky>
ok, I am sorry I think I am not explaining myself correctly
<_lazarevsky>
please bear with me
<_lazarevsky>
it's 4am here :)
<_lazarevsky>
so
<_lazarevsky>
the user calls a controller method
<_lazarevsky>
and uploads a file via the terminal using the simplest curl script
<_lazarevsky>
so far so good
happytux has joined #ruby
<_lazarevsky>
then in the controller I get the file and start iterating over it
<_lazarevsky>
ok?
sdwrage has joined #ruby
<_lazarevsky>
now I would like to print "just finished iterating over line n" to the user, DURING the execution of the program
<_lazarevsky>
if I use puts
<_lazarevsky>
then puts will only be printed in the users console
<_lazarevsky>
after the WHOLE method has finished executing
Connie has quit [Read error: Connection reset by peer]
mjsmith2 has joined #ruby
<_lazarevsky>
and not durnig execution
<_lazarevsky>
I need something like yield
<_lazarevsky>
which prints a message to the user and continues executing
<_lazarevsky>
I dont know if that's even possible
<_lazarevsky>
thus I find myself here asking the question :)
<happytux>
So for summarizing some discussion done here: A ruby gem is the same as a tarballed checked out git branch of a git repository for the gem, right?
<_lazarevsky>
yea through a console, the user uploads a file to rails
<havenwood>
aha, rails
<havenwood>
okay
<_lazarevsky>
that file is received by a controller
<_lazarevsky>
where I extract line by line (its an excel file btw)
rkazak has joined #ruby
<havenwood>
the plot thickens
<_lazarevsky>
and save it to the DB
<_lazarevsky>
I would like to notify the user (print in their console something like "parsed line n")
<arrubin>
_lazarevsky: Either curl or the web server is buffering the response.
<_lazarevsky>
after each line
<_lazarevsky>
and not at the end of the method
<arrubin>
I also suggest a different approach for such a task.
<arrubin>
Basically, queue the file, and return the job number. Then provide a URL to check the status.
<arrubin>
Queue in a job queue that is.
timonv has quit [Ping timeout: 276 seconds]
<_lazarevsky>
oh I see
<_lazarevsky>
that makes more sense
<arrubin>
It is also likely that the data can be loaded much faster if you disable autocommit and wrap some or all of the INSERTs in a transaction.
franzip has quit [Quit: ...]
hamakn has quit [Remote host closed the connection]
kenneth has joined #ruby
pontiki has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
jrhe has quit [Quit: Connection closed for inactivity]
aspires has quit []
nari has joined #ruby
agjacome has joined #ruby
sensen has joined #ruby
mrmargolis has quit [Remote host closed the connection]
tectonic has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
Gooder` has joined #ruby
dideler has quit [Ping timeout: 240 seconds]
livcd has joined #ruby
sepp2k has quit [Quit: Leaving.]
Gooder has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
krz has joined #ruby
<pontiki>
hallo
<havenwood>
g'eve
rkazak has quit [Quit: rkazak]
benzrf is now known as benzrf|offline
livcd has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
<omosoj>
what's the best way to schedule to do a task every 10 minutes?
<mordof>
omosoj: cron tasks if you're on a unix OS
<pontiki>
cron, using the whenever gem
<omosoj>
ok. so i'm just fooling around here... i want to write a program that gets the twitter trending topics every 10 minutes and puts them in a file.
neosoro_ has joined #ruby
<pontiki>
you could also just make it sleep for ten minutes
<omosoj>
can i use cron tasks to do that?
<pontiki>
maybe you should read the cron man page
wiel has joined #ruby
codeFiend has joined #ruby
<omosoj>
hmm. the whenever gem seems sufficient.
wiel has left #ruby [#ruby]
x1337807x has joined #ruby
deric_skibotn has quit [Ping timeout: 265 seconds]
tectonic has quit []
sassamo has joined #ruby
peret has quit [Remote host closed the connection]
zenojis has quit [Ping timeout: 240 seconds]
iwaffles has joined #ruby
sassamo has quit [Ping timeout: 240 seconds]
Melpaws has joined #ruby
cjsarette has quit [Excess Flood]
braincrash has quit [Quit: bye bye]
momomomomo has quit [Quit: momomomomo]
kate_r has joined #ruby
zenojis has joined #ruby
Beoran has quit [Ping timeout: 240 seconds]
datafirm has joined #ruby
braincrash has joined #ruby
treehug88 has joined #ruby
torresga has joined #ruby
kate_r has quit [Read error: Connection reset by peer]
cjsarette has joined #ruby
<shevy>
whatever
<shevy>
gem install whatever
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<shamoon>
any awesome devs here solid with regex? /[\w\.@#\/\*]+/
<shamoon>
what is the @?
<shevy>
it most definitely is not a special character
<shevy>
so it must mean literal @ character
poguez_ has quit [Quit: Connection closed for inactivity]
dseitz has joined #ruby
clayreed has joined #ruby
<shamoon>
interesting
narcan has joined #ruby
<clayreed>
Hello. I'm having a bit of trouble with the gem Jekyll. There seems to be some kind of disconnect between where rvm is installing jekyll to and where the shell executes jekyll from, and I'm not clear on how to correct this situation.
<arrubin>
Which includes word characters, periods, @, #, /, and *.
<arrubin>
One or more of those characters.
cjsarette has joined #ruby
<shamoon>
hmmm
cjsarette has quit [Max SendQ exceeded]
Beoran has joined #ruby
<havenwood>
clayreed: What do you get for?: which jekyll
<havenwood>
clayreed: Gist some more details?
cjsarette has joined #ruby
<clayreed>
which jekyll returns /usr/local/bin/jekyll
lukec has joined #ruby
<clayreed>
which gem returns /home/clayreed/.rvm/rubies/ruby-2.1.0/bin/gem
RaptorJesus has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
end_guy has quit [Write error: Connection reset by peer]
atmosx_ has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Broken pipe]
<mordof>
how would i use Net::http to get google.ca? i tried .get("google.ca", "/") but it's giving back a 301 moved (to http://www.google.ca/)
<clayreed>
rvm only lists the one Ruby 2.1.0, but there is another 1.9 Ruby
havenwood has joined #ruby
<clayreed>
This 1.9 is the one references in the traceback when jekyll can't be found in the array of gems, which is the same as the one gem list returns
Sawbones has quit [Remote host closed the connection]
<clayreed>
/usr/lib/ruby/1.9.1
sambao21 has joined #ruby
BWStearn1 has joined #ruby
dideler has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<arrubin>
mordof: Add www. to the domain.
<arrubin>
There is probably a way to get Net::http to follow redirects.
_justin has quit [Quit: _justin]
bijan07077 has quit [Ping timeout: 258 seconds]
<arrubin>
But in this case adding www. to the domain should do the trick.
<mordof>
ah
<havenwood>
mordof: you can manually detect response.code 301 and URI.parse the header['location']
<havenwood>
mordof: but uhg
bijan07077 has joined #ruby
<havenwood>
mordof: can you use URI or an HTTP client gem?
<havenwood>
mordof: seems nice to use something that can follow redirects etc out of the box
<mordof>
havenwood: yeah, adding www. also worked - same with URI
<mordof>
i'll keep that in mind. i'm not really looking to do anything like that right now
<mordof>
i just was confused about what to change.... even though it ended up beign really simple >.>
sski has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<havenwood>
mordof: oh, yeah the www is indeed the simplest fix ;)
gverma has joined #ruby
<gverma>
hello
banghouse2 has joined #ruby
pskosinski has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
atmosx_ has joined #ruby
<havenwood>
gverma: hi
upsell5 has joined #ruby
nhhagen has joined #ruby
<clayreed>
The gems environment does not seem to reference the 1.9 at all, except perhaps in the Shell Path, but it does not contain /usr/lib/.
yacks has joined #ruby
shamoon has quit [Quit: Leaving...]
<gverma>
hi Havenwood I am planning on using ruby on rails for making a web app. I don't want to use the db migrate feature for making tables. Is that ok.
thesheff17 has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
<havenwood>
gverma: #rubyonrails is the best place to ask probably
<havenwood>
gverma: but sure, just take a look at what that rake task is doing and do it yourself or however you'd like
<gverma>
Im trying to join #rubyonrails channel but it is not working somehow
<havenwood>
clayreed: So how's the issue coming up. You're getting the right Jekyll bin but when you `require` it you get the wrong version?
<clayreed>
havenwood: No, I'm not trying to require it or bundle it. I am trying to run jekyll serve --watch --drafts, but when I do...
<clayreed>
havenwood: /usr/lib/ruby/1.9.1 ... and so on ... Could not find jekyll among gems, Gem::LoadError. Does this make sense?
livcd has joined #ruby
<clayreed>
havenwood: It becomes like a bash command, usually.
<havenwood>
clayreed: just curious, but what do you get for?: sudo which jekyll
<havenwood>
clayreed: What OS are you on?
end_guy has joined #ruby
<clayreed>
havenwood: I'm running Crunchbang, a Debian-derived Linux... Curious, sudo which jekyll and which jekyll return the same path, /usr/local/bin/jekyll.
<havenwood>
clayreed: You didn't perhaps install Jekyll with brew? I DCed before, checking what you said.
_justin has joined #ruby
_justin has quit [Client Quit]
Sawbones has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
<clayreed>
havenwood: No, I installed it using gem install.
michael_lee has quit [Remote host closed the connection]
<havenwood>
clayreed: Did you previously have Jekyll installed on apt-get packaged Ruby?
<sevenseacat>
gem install wouldnt put stuff in /usr/local/bin
<havenwood>
clayreed: Seems another Jekyll got in front of the RVM one in your PATH.
KanKava_ has joined #ruby
<clayreed>
havenwood: That is probably the problem. I may have at one point installed an apt-get this ruby 1.9.
MrWharfsnort_ has joined #ruby
jamto11 has joined #ruby
<omosoj>
I'm using the twitter api. How do I get the trends? All I can get is an Enumerable object
<clayreed>
havenwood: How do I fix this?
havenwood has quit [Quit: Leaving...]
havenn has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
KanKava has quit [Ping timeout: 258 seconds]
MrWharfsnort has quit [Ping timeout: 245 seconds]
<mordof>
huh? [Decode error - output not utf-8]
<mordof>
when providing a string to raise
<mordof>
hmm
phinfone_ has quit []
rkazak_ has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
mjsmith2 has quit [Remote host closed the connection]
<havenn>
clayreed: `rvm current` is as you expect?
<havenn>
clayreed: mind purging apt-get's ruby1.9.1 from the system?
mary5030 has joined #ruby
armyriad has quit [Ping timeout: 276 seconds]
<havenn>
clayreed: i'm not an RVM user but might be good to ask why system gem bins are in front of RVM gem bins in your PATH in #rvm
MrWharfsnort_ has quit [Ping timeout: 245 seconds]
<havenn>
clayreed: maybe make doubly sure you've updated RVM (rvm get latest) and have the correct Ruby selected
mikepack has joined #ruby
<havenn>
clayreed: ah, looks like mpapis is answering you in #rvm, go there! tell him apt's /usr/local/bin/jekyll from ruby1.9.1 is in front of RVM's bin
kitak_ has quit [Remote host closed the connection]
kitak_ has joined #ruby
havenn is now known as havenwood
GlenK has joined #ruby
sassamo has joined #ruby
<havenwood>
mordof: utf-8 ALL THE THINGS \o/
<mordof>
lol
lyanchih_ has quit [Quit: lyanchih_]
lyanchih has joined #ruby
sassamo has quit [Ping timeout: 245 seconds]
amclain has joined #ruby
JoeGaudet has joined #ruby
JumpMast3r has joined #ruby
<ericwood>
ugh there don't seem to be any xlsx gems that handle number formatting
<ericwood>
that ruins this project....
jeregrine has joined #ruby
RaptorJesus has joined #ruby
torresga has quit [Quit: torresga]
<ericwood>
rubyXL was the best candidate but nope...
timonv has joined #ruby
bigmac has joined #ruby
banghouse2 has quit [Quit: What if the hokey pokey really is what it's all about?]
codeurge has joined #ruby
n_blownapart has joined #ruby
JumpMast3r has quit [Ping timeout: 276 seconds]
mansi has joined #ruby
SCommette has joined #ruby
raspberryfan has joined #ruby
Melpaws1 has joined #ruby
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
timonv has quit [Ping timeout: 276 seconds]
sdwrage_ has joined #ruby
St_Marx has joined #ruby
koderok has joined #ruby
Melpaws has quit [Ping timeout: 252 seconds]
marcdel has joined #ruby
anaeem1_ has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdwrage has quit [Ping timeout: 276 seconds]
razrunelord has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
marcdel_ has joined #ruby
pietr0 has joined #ruby
Sawbones_ has joined #ruby
Sawbones has quit [Ping timeout: 258 seconds]
meatherl_ has quit [Remote host closed the connection]
<n_blownapart>
hi someone helped me rewrite line 6 ' a,b = b, a + b ' to some sort of temp assignment but I have no clue how the math works here: pastie.org/9173966
bijan07077 has quit [Quit: bijan07077]
fella5s has joined #ruby
marcdel has quit [Ping timeout: 276 seconds]
<pontiki>
that's multi-assignment
<havenwood>
or parallel assignment
LexicalScope has joined #ruby
<pontiki>
it saves you from having to create a temporary variable
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
<pontiki>
the only math going on there is a + b, which uses the values of a and b prior to line 6
<havenwood>
n_blownapart: tastes like fibonacci sequence
yfeldblum has joined #ruby
razrunelord has quit [Ping timeout: 276 seconds]
<n_blownapart>
pontiki: ok I'm getting warmer... yeah havenwood 'tis
<n_blownapart>
but when is a ever to b ?
lukec has quit [Quit: lukec]
<pontiki>
there's no test for equality
<pontiki>
single = is assignment
aspires has joined #ruby
<n_blownapart>
although havenwood I don't think this is parallel assignment. pontiki oh yeah that is such a screwy thing about syntax.
yfeldblu_ has joined #ruby
<sevenseacat>
:/
upsell5 has quit [Quit: upsell5]
<n_blownapart>
thanks ! ^^ I understand.
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood>
n_blownapart: `a, b = b, a` would be another example of parallel assignment
yfeldblum has quit [Ping timeout: 258 seconds]
<n_blownapart>
havenwood: is a colon used with that in ruby? I was reading about python.
cjsarette has quit [Max SendQ exceeded]
<havenwood>
n_blownapart: notice different result than: a = b; b = a
<pontiki>
as is this: `first, second, third = [1,2,3,4,5,6,7,8].take(3)`
<sevenseacat>
probably best not to confuse yourself with reading about python if you're trying to learn ruby.
<n_blownapart>
sevenseacat: it was in an article that included like 4 languages
<sevenseacat>
n_blownapart: so why are you asking us if we use python syntax in ruby? the answer will be no
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tesuji has joined #ruby
zcreative has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has joined #ruby
lxsameer has joined #ruby
relix has joined #ruby
relix has quit [Client Quit]
marr has joined #ruby
tvw has quit [Client Quit]
Hobogrammer_ has joined #ruby
ws2k3 has joined #ruby
_justin has quit [Quit: _justin]
Hobogrammer has quit [Ping timeout: 245 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
toastynerd has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Hobogrammer_ has quit [Ping timeout: 264 seconds]
AnoGen has joined #ruby
sassamo has joined #ruby
heftig has joined #ruby
akonny has joined #ruby
_tpavel has joined #ruby
WormDrink has quit [Ping timeout: 240 seconds]
atmosx_ has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
atmosx_ has joined #ruby
relix has joined #ruby
mansi has joined #ruby
krandi has quit [Remote host closed the connection]
Melpaws has joined #ruby
sooik has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<Cymew>
So, I've been told I have a REST API and I can thus control the webapp from there. Anyone have any pointers to some tutorial of what that means for me, ruby in hand?
mansi has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
virtualize has quit []
razrunelord has joined #ruby
nvrch_ has joined #ruby
mikecmpbll has joined #ruby
nvrch has quit [Ping timeout: 252 seconds]
nvrch_ is now known as nvrch
sinkensabe has quit [Ping timeout: 264 seconds]
WormDrink has joined #ruby
tobago has joined #ruby
tobago has quit [Client Quit]
mercerist has joined #ruby
tobago has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
canton7-mac has joined #ruby
zcreative has quit [Quit: Computer has gone to sleep.]
tobago has quit [Client Quit]
Port3M5 has quit [Remote host closed the connection]
tobago has joined #ruby
tobago has quit [Read error: Connection reset by peer]
tobago has joined #ruby
mercerist has quit [Ping timeout: 258 seconds]
<GlenK>
Cymew: there's a course on edx that just started up that's all about restful architectures among other things.
sooik has joined #ruby
tobago has quit [Client Quit]
subraminion_ has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
<GlenK>
rails is the platform. but it's mainly about not sucking when it comes to designing apps. ruby and rails is just secondary
tobago has joined #ruby
<Cymew>
Thanks. Will look it up. Turns out that I was probably googlinf on too complex expressions. Just 'REST and HTTP' gave better results than including 'ruby' etc
joonty has quit [Quit: WeeChat 0.4.2]
_justin has joined #ruby
nvrch_ has joined #ruby
Xeago has quit [Remote host closed the connection]
nvrch has quit [Ping timeout: 240 seconds]
nvrch_ is now known as nvrch
sinkensabe has joined #ruby
tobago has quit [Client Quit]
tobago has joined #ruby
workmad3 has joined #ruby
tobago has quit [Client Quit]
Port3M5[Work] has joined #ruby
subraminion_ has joined #ruby
Xeago has joined #ruby
tobago has joined #ruby
subraminion_ has quit [Remote host closed the connection]
<lolmaus>
So `.push` is actually `.push!`, it modifies the source array. How do i do the non-modifying push (return a modified array while having the source array non-modified)?
subraminion_ has joined #ruby
<workmad3>
lolmaus: ary + [item]
<workmad3>
lolmaus: and ! doesn't mean 'modifies object'
<lolmaus>
workmad3: thx.
<lolmaus>
workmad3: it does most of the time.
elaptics is now known as elaptics`away
<workmad3>
lolmaus: yes... when there's a non-modifying variant
railsbro has quit [Ping timeout: 264 seconds]
elaptics`away is now known as elaptics
<workmad3>
lolmaus: similarly, there's delete, not delete!
<lolmaus>
workmad3: and due to that, you can't tell from a method's name whether it's modifying or not.
joost_like_toast has joined #ruby
_JamieD_ has quit [Quit: _JamieD_]
<workmad3>
lolmaus: ! isn't even intended as 'this modifies the receiver'... it's saying 'be careful, this acts differently to the version without !'
sinkensabe has quit [Ping timeout: 245 seconds]
sinkensa_ has joined #ruby
<lolmaus>
workmad3: still, if the bang was obligatory for all modifying methods, then you could tell from the method name whether it modifies the receiver, which is very convenient. And this would not ruin the "be careful" feature of the bang (for static methods, for instance)
<workmad3>
lolmaus: and if code wrote itself, that would also be nice
<lolmaus>
workmad3: your argument is invalid.
DouweM has quit [Ping timeout: 245 seconds]
<lolmaus>
Is this even an argument?
<workmad3>
lolmaus: ! being obligatory would mean that it would become so common it would be meaningless
<workmad3>
lolmaus: it would just be 'oh, look, another ! on a method... it's really annoying that there are so many and I have to type ! all the time, I wish they just wrote this method without it in the name'
sassamo has quit [Remote host closed the connection]
<workmad3>
lolmaus: and what do you do about operators that modify the receiver?
<workmad3>
lolmaus: <<!?
livcd has joined #ruby
maveonair has quit [Ping timeout: 264 seconds]
<lolmaus>
workmad3: this is not true. It would be 'oh, look, another ! on a method... this method also modifies the reciever'.
<lolmaus>
workmad3: are there operator-like methods that do not modify the receiver?
<workmad3>
lolmaus: sure.. +
<lolmaus>
workmad3: and except for +?
<workmad3>
lolmaus: or ! itself... or &&, ||, -, *, %, ^...
awestroke has joined #ruby
<lolmaus>
Okay, i accept your argument about operator-like methods.
<workmad3>
lolmaus: how about setters?
<lolmaus>
workmad3: a setter is an operator-like method as well.
<workmad3>
lolmaus: less so ;)
<workmad3>
lolmaus: but ok
<workmad3>
lolmaus: so... other than probaly 50% of the methods that modify the receiver, all ! methods should modify the receiver?
livcd has quit [Ping timeout: 245 seconds]
<workmad3>
lolmaus: and what about ! methods that doesn't modify the receiver?
<workmad3>
bah, my typing just went to pot there
<lolmaus>
workmad3: examples?
setra has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby
<workmad3>
lolmaus: exit/exit!
telling has quit [Remote host closed the connection]
<workmad3>
lolmaus: and outside of core ruby, save/save! in ActiveRecord
<lolmaus>
workmad3: isn't exit/exit! a static method?
kitak_ has quit [Remote host closed the connection]
<workmad3>
lolmaus: there's no such thing as a 'static method' in ruby
sooik has quit [Ping timeout: 265 seconds]
<workmad3>
lolmaus: methods are always on an object... just because that object happens to be a module (in this case, Kernel) shouldn't change things
<banister>
ding ding, workmad3 wins! :D
kitak_ has joined #ruby
<workmad3>
banister: :P
Xeago has quit [Remote host closed the connection]
<lolmaus>
workmad3: banister: my point was that all non-operator-like methods that modify the receiver should have had a bang in their names. It would make them more explicit. The "caution" meaning of the bangs still stands. I don't see how a reverse example (already existing non-modifying methods with bangs) negates my statement.
<workmad3>
lolmaus: it muddies the water massively
<workmad3>
lolmaus: and gives two meanings to !
<lolmaus>
workmad3: it does not give two meanings. The "caution" meaning still stands.
jonludlam has joined #ruby
<workmad3>
lolmaus: why do I need to be cautious about adding an item to an array?
<lolmaus>
workmad3: and i don't think that it makes method names more obscure, quite the contrary.
<banister>
lolmaus ! is often used to indicate "this can raise an exception" vs "this handles failures silently (usually returning nil)"
<lolmaus>
banister: okay
<workmad3>
lolmaus: so it becomes 'this is either a modifying method, or it's a method I need to be careful with... or both'
<banister>
lolmaus and has nothing to do with modifying the state of the receiver
subraminion_ has quit [Quit: Computer has gone to sleep.]
<workmad3>
lolmaus: at which point I'm then checking the method docs, or method source, to see which it is
<workmad3>
lolmaus: exactly the thing you were hoping to remove :P
<lolmaus>
workmad3: doesn't the bang already mean 'this is either a modifying method, or it's a method I need to be careful with... or both'?
<canton7-mac>
you should be checking the docs to see what a method does before you use it anyway ;)
<banister>
lolmaus he'd check the docs to see exactly which one it was..
sooik has joined #ruby
<workmad3>
lolmaus: no, at the moment it's 'this is a method I need to be careful with'
<workmad3>
lolmaus: and apart from in some libraries that misuse the !, it also always exists with a non-! version
<DefV>
I also assume doStuff! modifies the receiver
<lolmaus>
workmad3: how would the meaning of the bang in "delete!" be different from the meaning of it in "map!" ?
Kryptonical has joined #ruby
<workmad3>
lolmaus: is there a '.delete' that makes sense that *doesn't* modify the receiver?
<banister>
DefV and methods without the ! do not? :)
<lolmaus>
banister: don't you see that if Ruby had a notation that could let you tell from a method name whether it's modifying or not, it would be beneficial for everybody?
<banister>
lolmaus not really
<DefV>
banister: depends if it's Rails or Ruby :-p
mg^^ has joined #ruby
<banister>
lolmaus your use case is ! modifies the receiver?
<banister>
lolmaus what about methods that modifiy *another* object, but not the receiver, do they have a ! or not?
<DefV>
workmad3: but those are obvious
telling has joined #ruby
telling has joined #ruby
telling has quit [Changing host]
<workmad3>
DefV: exactly! :D
<lolmaus>
workmad3: all of those methods you named COULD have non-modyifing brothers
<workmad3>
lolmaus: not particularly sensible ones in ruby, IMO
bluenemo has joined #ruby
<banister>
lolmaus if you're just talking about side-effects and referential transparency, then "! modifies the receiver" is not nearly enough to be any kind of use
dayepa has quit [Ping timeout: 265 seconds]
<workmad3>
lolmaus: now, if this was lisp, you'd have a perfect argument... and in lisp, ! *does* mean exactly 'this modifies in-place'
<lolmaus>
workmad3: well, if there were "push" and "push!" i wouldn't come here in the first place asking how to do a non-modifying push.
timonv has quit [Remote host closed the connection]
<banister>
lolmaus you can always do a non-modifying push with dup.push
kitak_ has quit [Remote host closed the connection]
<banister>
lolmaus just prepend a dup
Krypt has quit [Ping timeout: 250 seconds]
mg^ has quit [Ping timeout: 250 seconds]
noop has quit [Ping timeout: 240 seconds]
sooik has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
<workmad3>
lolmaus: see, I re-interpreted your question as 'how can I create a new array with an extra item'
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Changing host]
troulouliou_dev has joined #ruby
<workmad3>
lolmaus: and answered that question... because 'push' means 'push this item onto this array'... it's nonsensical, IMO, in a non-modifying manner
dayepa has joined #ruby
kitak_ has joined #ruby
<banister>
a non-modifying pop is equivalent to just array.last
<banister>
a non-modifying shift is equivalent to just array.first
timonv has quit [Read error: No route to host]
<banister>
netiehr of them therefore make much sense
<lolmaus>
workmad3, "return a new array with this item included" is not a rare use case. And it's a shame that Ruby requires you to do two operations to achieve that (create an array with one element and merge arrays)
<banister>
in naming or raison d'etre
MrPopinjay has joined #ruby
<tobiasvl>
lolmaus: array + item
<tobiasvl>
?
<MrPopinjay>
Hi guys. It is possible to use ftp in ruby without binding to a port? The openshift PaaS does not allow this
<lolmaus>
Thx tobiasvl, that's much better. ^_^
<workmad3>
tobiasvl: doesn't work :P
<workmad3>
>> [] + "a"
<eval-in__>
workmad3 => no implicit conversion of String into Array (TypeError) ... (https://eval.in/150976)
<tobiasvl>
well [item] then
<lolmaus>
:(
<banister>
lolmaus really you're talking about referential transparency right? and declaring a method that is referentially transparent i.e a pure function?
<workmad3>
tobiasvl: that's what I gave him about 15 minutes ago ;)
<tobiasvl>
hehe ok
lkba has quit [Ping timeout: 240 seconds]
<banister>
lolmaus cos if you're not talking about that, you're only talking about one particular kind of side-effect, and just knowing when/when not that one specific side effect is taking place is not really so useful, you either go whole-hog to referential transparency or you don't, you don't go into some weird middle ground IMO
sooik has joined #ruby
blackmesa has joined #ruby
<workmad3>
banister: and in ruby, you may as well then save typing and say ! means 'referential transparency'...
<banister>
just saying ! methods may do some kind of side-effect and non-bang methods may do anything they like, except that one specific kind of side-effect (i.e modifying self) is pretty useless
<workmad3>
what about a Set, where adding an item may not modify the receiver? should ! then be further diluted to 'this might modify the receiver but might not'
Nilium has quit [Ping timeout: 252 seconds]
<workmad3>
?
mansi has joined #ruby
<DefV>
workmad3: you're using stupid arguments to make your case
<DefV>
I understand your point, but the Set example is a stupid argument
<workmad3>
DefV: I kinda used up the sensible ones ;)
Spami has quit [Quit: This computer has gone to sleep]
MrPopinjay has left #ruby ["WeeChat 0.3.8"]
subraminion has quit [Remote host closed the connection]
sevenseacat has quit [Ping timeout: 252 seconds]
ringaring has joined #ruby
subraminion has joined #ruby
hgl has quit [Ping timeout: 252 seconds]
<lolmaus>
I'm trying to convert a hash to a json string with `JSON.pretty_generate myhash`. The resulting string has keys sorted in reverse alphabetical order. How do i make them appear in ascending alphabetical order?
yfeldblum has quit [Remote host closed the connection]
sassamo has quit [Ping timeout: 252 seconds]
<ddv>
lolmaus: extend pretty_generate so it does what you want, still it doesn't make sense to order hash keys
livcd has quit [Ping timeout: 240 seconds]
HashNuke has joined #ruby
oo_ has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
<lolmaus>
ddv: i don't want to order Ruby hash keys, i want the resulting JSON to be easy for humans to read and modify. Thx for the suggestion.
Shidash has joined #ruby
<ddv>
lolmaus: you think my grandma thinks json is easy to read?
<lolmaus>
ddv: i don't care what your grandma thinks.
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<ddv>
lolmaus: you are making an assumption right there
sinkensabe has joined #ruby
<lolmaus>
ddv: i make an assumption that it's easier for me to find options in a config file when they are sorted alphabetically than randomly.
thesheff17 has joined #ruby
<shevy>
ddv does your grandma wear panties?
<ddv>
shevy: my grandma is dead
<ddv>
you are so insensitive, shevy
<shevy>
I still don't know the answer :(
faulkner has quit [Ping timeout: 265 seconds]
mikemac has quit [Read error: Connection reset by peer]
mikemac has joined #ruby
faulkner has joined #ruby
combusean has joined #ruby
sensen has quit [Quit: leaving]
<shevy>
so
<shevy>
what are the new cool things in ruby
oo_ has quit [Remote host closed the connection]
xiq has joined #ruby
AlexRussia has joined #ruby
<ddv>
shevy: module prepend/refinements are pretty cool
<shevy>
I still have not understood these yet
kitak_ has quit [Ping timeout: 240 seconds]
<ddv>
shevy: module prepend allows your mixin to override methods you define in the mixin, refinements to localize monkey patching
gruz1 has quit [Quit: Leaving]
combusean has quit [Ping timeout: 258 seconds]
<shevy>
hmm
kitak_ has joined #ruby
cescalante is now known as ce_afk
ce_afk is now known as cescalante
troulouliou_dev has quit [Remote host closed the connection]
setra has quit [Ping timeout: 240 seconds]
frobrob_ has joined #ruby
<shevy>
ddv I think I need some use case where people absolutely require that or make perfect use of it
end_guy has quit [Ping timeout: 272 seconds]
end_guy has joined #ruby
lxsameer has quit [Quit: Leaving]
n1x has joined #ruby
<ddv>
shevy: when you want to extend (modify) existing functionality, for example a gem you are using
LekeFly has joined #ruby
<ddv>
shevy: opening up core classes can be dangerous, refinements makes them save (sort of)
frobrob has quit [Ping timeout: 240 seconds]
<ddv>
shevy: refinements take scope into account when monkey patching, so your monkey patch is only valid inside your module not your whole application
<shevy>
hmm
<shevy>
so rather than include Foo one would use prepend Foo
<FukY>
F{}CK YOU ALL!!!F{}CK YOU ALL!!!F{}CK YOU ALL!!! F{}CK YOU BITCH!!! F{}CK YOU ALL!!! 66514 F{}CK YOU BITCH!!!
<FukY>
F{}CKERS F{}CK F{}CKERS F{}CK F{}CK F{}CKERS F{}CKING BITCHES F{}CK F{}CK YOU ALL F{}CKERS F{}CK YOU ALL F{}CKERS F{}CK YOU ALL 59822 F{}CKERS
<tagrudev>
:D
Nahra has quit [Remote host closed the connection]
<FukY>
F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! 8769 F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL!
<alex88>
he should at least used B1TCHES
<FukY>
F{}CKERS F{}CK F{}CKERS F{}CK F{}CK F{}CKERS F{}CKING BITCHES F{}CK F{}CK YOU ALL F{}CKERS F{}CK YOU ALL F{}CKERS F{}CK YOU ALL 6397 F{}CKERS
<FukY>
F{}CKERS F{}CK F{}CKERS F{}CK F{}CK F{}CKERS F{}CKING BITCHES F{}CK F{}CK YOU ALL F{}CKERS F{}CK YOU ALL F{}CKERS F{}CK YOU ALL 31732 F{}CKERS
<FukY>
F{}CK YOU ALL!!! F{}CK YOU!!! F{}CK YOU ALL!!!F{}CK YOU ALL!!!F{}CK YOU ALL!!!F{}CK YOU ALL!!! 17807 F{}CK YOU!!!
<mozzarella>
anyway, where are the mods?
<FukY>
F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! 92159 F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL!
shredding has joined #ruby
<FukY>
F{}CK YOU ALL!!!F{}CK YOU ALL!!!F{}CK YOU ALL!!! F{}CK YOU BITCH!!! F{}CK YOU ALL!!! 82536 F{}CK YOU BITCH!!!
<FukY>
F{}CKERS F{}CK F{}CKERS F{}CK F{}CK F{}CKERS F{}CKING BITCHES F{}CK F{}CK YOU ALL F{}CKERS F{}CK YOU ALL F{}CKERS F{}CK YOU ALL 16019 F{}CKERS
<FukY>
F{}CKERS F{}CK F{}CKERS F{}CK F{}CK F{}CKERS F{}CKING BITCHES F{}CK F{}CK YOU ALL F{}CKERS F{}CK YOU ALL F{}CKERS F{}CK YOU ALL 52128 F{}CKERS
<FukY>
F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! 12204 F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL!
<tagrudev>
:D
<FukY>
F{}CK YOU ALL!!! F{}CK YOU!!! F{}CK YOU ALL!!!F{}CK YOU ALL!!!F{}CK YOU ALL!!!F{}CK YOU ALL!!! 38910 F{}CK YOU!!!
<FukY>
F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! 79212 F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL!
<FukY>
F{}CK YOU ALL!!! F{}CK YOU!!! F{}CK YOU ALL!!!F{}CK YOU ALL!!!F{}CK YOU ALL!!!F{}CK YOU ALL!!! 68283 F{}CK YOU!!!
<FukY>
F{}CK YOU ALL!!! F{}CK YOU!!! F{}CK YOU ALL!!!F{}CK YOU ALL!!!F{}CK YOU ALL!!!F{}CK YOU ALL!!! 50461 F{}CK YOU!!!
iomn2l has joined #ruby
<alex88>
I don't get what's the number it outputs sometimes
mjs2600 has quit [Read error: Connection reset by peer]
mjs2600_ has joined #ruby
<MrPopinjay>
Hi guys. It is possible for me to convert a haml or slim template string into a html sting within my application? Something like new_string = Slim.parse("html 5\n div Hello world!")
<apeiros>
MrPopinjay: yes
<MrPopinjay>
How would I do this? I can't figure it out :)
<apeiros>
for haml it's something like: HAML::Engine.new(template).render
mjsmith2 has quit [Remote host closed the connection]
<apeiros>
the docs help a lot with that ;-)
upsell5 has joined #ruby
<apeiros>
(slims docs were less straight forward iirc)
<MrPopinjay>
Yeah, I've been stumbling around the slim docs, but with no luck
kitak_ has joined #ruby
<MrPopinjay>
Kinda want to use slim, but might have to go for haml
<apeiros>
haml is well documented in that regard
<MrPopinjay>
Slim isn't :(
<MrPopinjay>
Maybe they have the same method, I'll have a look. Thanks for the help
<apeiros>
lolmaus: oh, also &nil works. it explicitly passes no block to a method (useful with super(&nil)k since super() still passes on a block given to the current method)
<apeiros>
lolmaus: because it's nothing related to the method
<canton7-mac>
lolmaus, it's not specific to #map
<DouweM>
lolmaus: because it's not specific to #map, it's Ruby syntax
<apeiros>
lolmaus: it's syntax which applies to *all* methods
<sevenseacat>
didnt know about the nil block
<lolmaus>
So wherever Ruby docs say "accepts a block", a proc can be passed via the ampersand?
<DouweM>
lolmaus: ypu
<DouweM>
*yup
<lolmaus>
Thx
<apeiros>
sevenseacat: not many do :-/ cost me ~30min to figure a bug with super passing on blocks even though having explicitly used super() to avoid arg passing
<DouweM>
apeiros: that's very good to know
ce_afk is now known as cescalante
subraminion__ has joined #ruby
<sevenseacat>
i knew about super() to avoid passing the arguments through
nateberkopec has joined #ruby
<apeiros>
it's also how passing on optional blocks work: def foo(&block); @foo.each(&block); end # if you don't pass a block to foo, it'll return each's Enumerator, since you don't pass a block to each either
jmurray has quit [Ping timeout: 245 seconds]
<DouweM>
sevenseacat: right, never thought about how to cancel a block
mjsmith2 has joined #ruby
subraminion has quit [Read error: Connection reset by peer]
<sevenseacat>
ahhhh yes ive seen the enumerator getting returned before too
<sevenseacat>
these things are clicking into place
<apeiros>
i.e., block is nil, so you effectively do @foo.each(&nil)
aganov has quit [Quit: Leaving]
<DouweM>
apeiros: in that case &nil becomes very obious. of course when &block makes block nil it shouldn't just crash
<apeiros>
DouweM: that's how I figured the solution to super() passing on a block ;-)
centrx has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
mereghost has joined #ruby
agrinb has joined #ruby
benzrf|offline is now known as benzrf
noop has quit [Ping timeout: 240 seconds]
BWStearns has joined #ruby
mary5030 has joined #ruby
charliesome has joined #ruby
beef-wellington has joined #ruby
cpruitt has joined #ruby
banister has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Macaveli has quit [Ping timeout: 252 seconds]
Ariadeno has joined #ruby
combusean has joined #ruby
nvrch has quit [Quit: nvrch]
valner has joined #ruby
agrinb has quit [Ping timeout: 255 seconds]
akonny has joined #ruby
baweaver has joined #ruby
_justin has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
agrinb has joined #ruby
nhmood has joined #ruby
kitak_ has quit [Remote host closed the connection]
jmurray has joined #ruby
nvrch has joined #ruby
hamakn has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Leaving.]
combusean has quit [Ping timeout: 255 seconds]
anarang_ has joined #ruby
kitak_ has joined #ruby
thomasxie has quit [Ping timeout: 255 seconds]
anarang_ has quit [Client Quit]
anarang_ has joined #ruby
kitak has quit [Remote host closed the connection]
anarang has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit []
dik_dak has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
torresga has joined #ruby
kitak_ has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
g0bl1n has joined #ruby
kpshek has joined #ruby
sooik has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dbods has quit [Remote host closed the connection]
dbods has joined #ruby
chrisseaton has joined #ruby
axl_ has quit [Client Quit]
rostam has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 240 seconds]
tobago has quit [Remote host closed the connection]
Snarkz has joined #ruby
happytux has quit [Ping timeout: 276 seconds]
moritzschaefer has quit [Ping timeout: 252 seconds]
moritzs has quit [Ping timeout: 276 seconds]
happytux___ has joined #ruby
sk87 has joined #ruby
momomomomo has joined #ruby
maletor has joined #ruby
dbods has quit [Ping timeout: 258 seconds]
kitak_ has joined #ruby
yfeldblum has joined #ruby
Iniesta8 has joined #ruby
n1x has joined #ruby
creativeembassy has joined #ruby
rostam has joined #ruby
happytux has joined #ruby
mgomezch has joined #ruby
combusean has joined #ruby
mgomezch_ has quit [Ping timeout: 276 seconds]
tagrudev has quit [Remote host closed the connection]
Squarepy has joined #ruby
roshanavand has quit [Quit: Gone!]
axl_ has joined #ruby
happytux___ has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
treehug88 has joined #ruby
yacks has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
andikr has quit [Remote host closed the connection]
paulfm has quit []
adamholt has quit [Ping timeout: 265 seconds]
alexju has joined #ruby
mgomezch has quit [Quit: No Ping reply in 180 seconds.]
kitak has quit [Remote host closed the connection]
tttttttttttttttt has quit [Ping timeout: 276 seconds]
poguez_ has joined #ruby
mercerist has quit [Read error: Connection reset by peer]
kitak has joined #ruby
mercerist has joined #ruby
mgomezch has joined #ruby
livcd has joined #ruby
Yuzuk0 has joined #ruby
mark_locklear has quit [Ping timeout: 276 seconds]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
mxd has joined #ruby
sassamo has quit [Ping timeout: 240 seconds]
<mordof>
i'll never understand the point... or how someone could get entertainment from that
ffranz has joined #ruby
Sawbones has quit []
Iniesta8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bal has quit [Quit: bal]
livcd has quit [Ping timeout: 240 seconds]
Guedes has joined #ruby
momomomomo has quit [Quit: momomomomo]
centrx is now known as GeneralSummary
<mroth>
so I'm looking at some old code that uses m= /\211PNG/ -- that seems to fail on more recent versions of ruby as "invalid multibyte escape" -- which appears to be because utf-8 encoding for files is the default now. I can make it work by forcing # encoding: ascii # at top of file, but I'd rather update the regex to work in Unicode... does anyone know what
<mroth>
the equivalent format would be?
kitak has quit [Remote host closed the connection]
bal has joined #ruby
kitak has joined #ruby
momomomomo has joined #ruby
<mordof>
mroth: ae you trying to match the png extension?
<mordof>
are*
codeurge has joined #ruby
<mroth>
mordof: yep
<mordof>
\.png
mgomezch has quit [Ping timeout: 252 seconds]
beef-wellington has quit [Quit: WeeChat 0.4.3]
agrinb has quit [Ping timeout: 245 seconds]
<mordof>
mroth: you shouldn't need a regex for that either
<mordof>
.ends_with?".png" would also work
<mroth>
mordof: heh.. I should have specified. Not the .png file extension, this is the PNG header inside a binary file
<mordof>
ah
meatherly has joined #ruby
<mordof>
well that's an entirely different dilemma.. lol
<phoo1234567>
Hi All, any CSV experienced Ruby users here?
<mordof>
i'd need to see a bit of code and input to help
<mroth>
the \211 represents some byte values.. but I'm not familiar with that format of ascii escaping so trying to represent same thing in unicode
qwyeth has quit [Read error: Connection reset by peer]
<mordof>
phoo1234567: csv is fairly straight forward.. what's your issue?
agrinb has joined #ruby
<phoo1234567>
I'm having an issue defining row_sep
<mroth>
mordof: basically that regex is just used with .match in many places on a file blob
<mordof>
ahh
<phoo1234567>
One of my data fields contains newlines in addition to the _real_ row_sep.
<mordof>
i'll be back soon - then if you're still stuck i can try to help
<phoo1234567>
Thanks.
Iniesta8 has joined #ruby
bal has quit [Client Quit]
sinkensabe has quit [Remote host closed the connection]
<happytux>
So for summarizing some discussion done here: A ruby gem is the same as a tarballed checked out git branch of a git repository for the gem, right?
<mroth>
DefV: hmm.. yeah that should work for switching the regex. I'd still love to know how to represent the ascii encoded values in a normal Ruby string too though. I mean, there *should* be a way.
<mroth>
(that's a good lead though, thanks)
rizzatti has joined #ruby
<DefV>
mroth: I got intrigued by your question and looked it up, but I didn't find anything
sunya7a has joined #ruby
_Andres has joined #ruby
pagioss has quit [Ping timeout: 240 seconds]
jottr has quit [Quit: WeeChat 0.4.2]
SilkFox has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
dfinly has joined #ruby
dfinly has quit [Max SendQ exceeded]
jottr has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
cjsarette has quit [Excess Flood]
jottr has quit [Client Quit]
dfinly has joined #ruby
dfinly has quit [Max SendQ exceeded]
jottr has joined #ruby
obs has quit [Remote host closed the connection]
jottr has quit [Client Quit]
kevinykchan has joined #ruby
__class__ has quit [Read error: Connection reset by peer]
sunya7a has quit [Ping timeout: 255 seconds]
sk87_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jottr has joined #ruby
St_Marx has joined #ruby
raspberryfan has quit []
dspkwa has joined #ruby
dangerousdave has joined #ruby
obs has joined #ruby
cjsarette has joined #ruby
Iniesta8 has joined #ruby
motoford has joined #ruby
i_s has joined #ruby
cjsarette has quit [Max SendQ exceeded]
dangerousdave has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
bijan07077 has joined #ruby
maximski has quit []
cjsarette has joined #ruby
codeFiend has quit [Quit: codeFiend]
creativeembassy has quit [Quit: FO SHO]
cjsarette has quit [Max SendQ exceeded]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Remote host closed the connection]
simono has joined #ruby
LadyRainicorn has quit [Quit: Bye]
cjsarette has joined #ruby
sunya7a has joined #ruby
frb has quit [Quit: Leaving]
jxf has joined #ruby
sputnik1_ has joined #ruby
ikaros has quit [Quit: Ex-Chat]
workmad3 has quit [Ping timeout: 255 seconds]
rippa has joined #ruby
workmad3 has joined #ruby
aspires has joined #ruby
jack_rabbit has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
__class__ has joined #ruby
echevemaster has joined #ruby
EagleDel_ has joined #ruby
geggam has joined #ruby
patronus has joined #ruby
yfeldblum has joined #ruby
terrell_t has joined #ruby
Burgestrand_ has joined #ruby
Gooder``` has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
drago777 has quit [Ping timeout: 258 seconds]
Cymew has quit [Read error: Connection reset by peer]
patronus_ has quit [Read error: Connection reset by peer]
SirFunk has quit [Ping timeout: 258 seconds]
Kruppe has quit [Ping timeout: 258 seconds]
ejnahc has quit [Ping timeout: 258 seconds]
ejnahc has joined #ruby
Xeago_ has quit [Remote host closed the connection]
scotje_ has joined #ruby
scotje has quit [Read error: Connection reset by peer]
thoolihan has quit [Ping timeout: 258 seconds]
Rydekull is now known as Rydekull_
Rydekull_ is now known as Rydekull
Rydekull has quit [Changing host]
Rydekull has joined #ruby
koderok has joined #ruby
pu22l3r has joined #ruby
Gooder`` has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
EagleDelta has quit [Ping timeout: 258 seconds]
drago777 has joined #ruby
terrellt has quit [Ping timeout: 258 seconds]
SirFunk has joined #ruby
thoolihan has joined #ruby
angel66 has joined #ruby
dbods has joined #ruby
Burgestrand has quit [Ping timeout: 258 seconds]
Burgestrand_ is now known as Burgestrand
GeneralSummary is now known as centrx
Kruppe has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
dbods has quit [Remote host closed the connection]
dbods has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
maximski has joined #ruby
sputnik1_ has joined #ruby
sputnik1_ has quit [Client Quit]
zachallett is now known as Zenigor
axl_ has joined #ruby
apeiros has joined #ruby
<shevy>
dumdedum
freezey has joined #ruby
_tpavel has quit [Quit: Leaving]
dumdedum_ has quit [Quit: foo]
aiguu has joined #ruby
fantazo has quit [Ping timeout: 252 seconds]
pagioss has joined #ruby
sputnik1_ has joined #ruby
sooik has joined #ruby
Hobogrammer has joined #ruby
RaptorJesus has quit [Remote host closed the connection]
dbods has quit [Ping timeout: 240 seconds]
ninegrid has quit [Ping timeout: 240 seconds]
dspkwa has quit [Quit: Leaving]
combusean has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Ping timeout: 265 seconds]
Burgestrand has quit [Quit: Burgestrand]
sputnik1_ has quit [Ping timeout: 252 seconds]
JasmeetQA has joined #ruby
redondos has quit [Excess Flood]
sambao21 has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
danman has joined #ruby
terrell_t is now known as terrellt
dEPy has joined #ruby
dayepa has quit [Quit: dayepa]
mikepack has joined #ruby
aspires has quit []
aspires has joined #ruby
binaryhat has joined #ruby
sooik has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
cescalante is now known as ce_afk
dbods has joined #ruby
dbods has quit [Remote host closed the connection]
ce_afk is now known as cescalante
michael_lee has joined #ruby
dbods has joined #ruby
wallerdev has quit [Quit: wallerdev]
Dude007 has quit [Remote host closed the connection]
rudisimo has joined #ruby
agrinb has quit [Remote host closed the connection]
jlast has joined #ruby
agrinb has joined #ruby
jespada has joined #ruby
jespada has quit [Remote host closed the connection]
RaptorJesus has joined #ruby
cocotton has joined #ruby
paulfm has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
paulfm has joined #ruby
bijan07077 has quit [Quit: bijan07077]
agrinb has quit [Ping timeout: 265 seconds]
_Andres has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
livcd has joined #ruby
LostDatagram has quit [Quit: Bye :P - znc.in]
bakflash has joined #ruby
akonny has joined #ruby
snath has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
benzrf is now known as benzrf|offline
LostDatagram has joined #ruby
Darryl has joined #ruby
mark_locklear has joined #ruby
bijan07077 has joined #ruby
Tricon has joined #ruby
livcd has quit [Ping timeout: 255 seconds]
nhhagen has joined #ruby
Tricon has quit [Client Quit]
SCommette has quit [Quit: SCommette]
Tricon has joined #ruby
koderok has quit [Ping timeout: 265 seconds]
Tricon has quit [Client Quit]
wallerdev has joined #ruby
sdwrage has joined #ruby
Tricon has joined #ruby
nhhagen has quit [Remote host closed the connection]
xcesariox has joined #ruby
xcesariox has quit [Max SendQ exceeded]
xcesariox has joined #ruby
mary5030 has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
livcd has joined #ruby
iwaffles has joined #ruby
terrellt has quit [Remote host closed the connection]
mois3x has joined #ruby
meatherly has joined #ruby
wallerdev has quit [Ping timeout: 276 seconds]
rubynuby has joined #ruby
nhhagen has joined #ruby
terrellt has joined #ruby
<xcesariox>
can some help me out "Warning! PATH is not properly set up, '/Users/shaunstanislaus/.rvm/gems/ruby-2.1.1/bin' is not at first place,"
<canton7>
I suspect your path isn't properly set up, because '/Users/shaunstanislaus/.rvm/gems/ruby-2.1.1/bin' is not the first element in the path
apeiros has joined #ruby
<canton7>
echo $PATH, see it for yourself
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<xybre>
And apparently didn't read the error message either.
mikecmpbll has quit [Ping timeout: 245 seconds]
<xybre>
Which tells you to do what I said above.
<xcesariox>
xybre: you told me to update it
yairgo has joined #ruby
nhhagen has joined #ruby
<xcesariox>
xybre: you told me to get had.
<xcesariox>
xybre: head"
meatherly has quit [Remote host closed the connection]
akonny has joined #ruby
razrunelord has quit [Client Quit]
<xybre>
xcesariox: The error message says you have a .profile, is that the case?
<xcesariox>
xybre: yes
<xcesariox>
xybre: what do i do with it? rm -rf?
axl_ has quit [Quit: axl_]
<xybre>
There's also a .zshrc mentioned, do either of them have a line with PATH in it?
nvrch has quit [Quit: nvrch]
mattstratton has joined #ruby
timonv has joined #ruby
<xcesariox>
xybre: in .profile it has "PATH="$PATH:$HOME/.rvm/bin"
<xcesariox>
xybre: let me check .zshrc
nicholas040 has quit [Ping timeout: 240 seconds]
_justin has quit [Quit: _justin]
Solnse has joined #ruby
<xybre>
Do you "source ~/.profile" in your .bash_profile or .bashrc? That's what RVM suggests. Otherwise you can move that line to one of those (which one depends on your OS/setup)/
_Andres has joined #ruby
<havenwood>
xcesariox: so the .rvm/bin dir is at the end of the PATH...
SCommette has joined #ruby
timonv_ has joined #ruby
canton7-mac has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
Hobogrammer has joined #ruby
RohanRNS has joined #ruby
<canton7>
xcesariox, sorry, was on another machine. looks like others have it in hand though
<xcesariox>
xybre: i am a noob to path environment, i don't know to take which part out and paste where or re-write as what. it would be great if you can edit my whole path with other env path and paste it in a new gist for me to copy and paste.
osxorgat_ has quit [Remote host closed the connection]
<havenwood>
xcesariox: PATH is an environment variable. It is a colon separated list of paths. You should read up on it.
<havenwood>
xcesariox: I'm not an RVM user, but there's #rvm for help. But if you're new to shell I'd suggest following installation instructions carefully.
<havenwood>
xcesariox: i gave you a command that updates you file, no need to gist things
<xcesariox>
havenwood: yes it is working, linked.
<xcesariox>
havenwood: thanks bro
<havenwood>
xcesariox: de nada
smathieu has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<xybre>
I can't tell if you're using bash or zsh, but they both have channels too.
sputnik1_ has joined #ruby
iwaffles has quit [Quit: iwaffles]
rizzatti has quit [Quit: Leaving...]
replay has quit [Ping timeout: 265 seconds]
replay_ has quit [Ping timeout: 255 seconds]
<xcesariox>
havenwood, xybre : can i comment this thing out in my .profile "export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
s2013 has joined #ruby
replay has joined #ruby
sputnik1_ has quit [Client Quit]
_justin has joined #ruby
rizzatti has joined #ruby
saarinen has joined #ruby
deric_skibotn has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
cocotton has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
<havenwood>
xcesariox: Then RVM wouldn't be in your PATH for scripting
blackmesa has joined #ruby
angel66 has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<xcesariox>
havenwood: i am still getting "PATH is not properly set up, '/Users/shaunstanislaus/.rvm/gems/ruby-2.1.1/bin' is not at first place," when i do rvm -v
livcd has quit [Read error: Connection reset by peer]
Spami has joined #ruby
<xcesariox>
havenwood: how do you solve this issue?
noop has joined #ruby
livcd has joined #ruby
cescalante is now known as ce_afk
SilkFox has quit [Ping timeout: 276 seconds]
ce_afk is now known as cescalante
<havenwood>
xcesariox: I'd suggest asking in #rvm.
<xcesariox>
havenwood: okay
<havenwood>
xcesariox: Also, read up on the $PATH environment variable!
<xcesariox>
havenwood: okay
s2013_ has joined #ruby
pablovilas has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf|offline is now known as benzrf
kaspergrubbe has quit [Remote host closed the connection]
cocotton has joined #ruby
axl_ has quit [Quit: axl_]
nvrch has quit [Quit: nvrch]
kaspergrubbe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
zigomir has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
nathancahill has quit [Quit: nathancahill]
lmickh has joined #ruby
obs has quit [Quit: Saliendo]
moritzs has quit [Ping timeout: 265 seconds]
moritzschaefer has quit [Ping timeout: 265 seconds]
kaspergrubbe has quit [Remote host closed the connection]
<xcesariox>
havenwood: where does the path starts , with the :bin ? or at the end?
jottr_ has joined #ruby
<havenwood>
xcesariox: Take a look at your PATH maybe for starters: echo $PATH
<xcesariox>
i use the pipe to ask you the right path
sinkensabe has quit [Ping timeout: 276 seconds]
<havenwood>
oh
<havenwood>
xcesariox: what is you actual current PATH?
Valesk has joined #ruby
cescalante is now known as ce_afk
jottr has quit [Ping timeout: 252 seconds]
rmorello has joined #ruby
<xcesariox>
havenwood: i did echo $PATH it says /usr/local/heroku/bin:/Users/shaunstanislaus/.rvm/gems/ruby-2.1.1/bin:/Users/shaunstanislaus/.rvm/gems/ruby-2.1.1@global/bin:/Users/shaunstanislaus/.rvm/rubies/ruby-2.1.1/bin:/Users/shaunstanislaus/.bin:/Users/shaunstanislaus/.rbenv/shims:/Users/shaunstanislaus/.rbenv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/Users/shaunst
<xcesariox>
anislaus/.rvm/bin
sassamo has quit [Remote host closed the connection]
mercerist has quit [Quit: Computer has gone to sleep.]
sassamo has joined #ruby
rizzatti has quit [Ping timeout: 252 seconds]
<havenwood>
xcesariox: can you see what's in front of '/Users/shaunstanislaus/.rvm/gems/ruby-2.1.1/bin'?
rizzatti has joined #ruby
alex88 has quit [Quit: Leaving...]
vpretzel is now known as vpretzel|1493
<havenwood>
just one thing...
ss__ has joined #ruby
<havenwood>
name it and the castle is yours!
e^0 has quit [Quit: WeeChat 0.4.3]
s2013_ has quit [Ping timeout: 252 seconds]
akonny has joined #ruby
axl_ has joined #ruby
rmorello has left #ruby [#ruby]
JasmeetQA has quit [Read error: Connection reset by peer]
Megtastique has quit []
LekeFly has quit [Ping timeout: 240 seconds]
axl_ has quit [Client Quit]
<havenwood>
xcesariox: So your prepending of heroku/bin is screwing with RVM. Fix that. But just to show you how you'd prepend to PATH (which would mean rvm/bin in the PATH twice but you could see that it works): PATH="/Users/shaunstanislaus/.rvm/gems/ruby-2.1.1/bin:$PATH"
ftj has joined #ruby
alv-r- has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
<havenwood>
s/your/you're
_justin has quit [Quit: _justin]
<xcesariox>
havenwood: so i take the last line out and make it as standalone path?
aspires has joined #ruby
<havenwood>
just don't have heroku insert itself to the beginning of the PATH in the first place
<havenwood>
i dunno
shashank_rs has joined #ruby
yfeldblum has joined #ruby
sunya7a has joined #ruby
mercerist has joined #ruby
<xcesariox>
havenwood: okay let me try.
Megtastique has joined #ruby
knigitz has joined #ruby
<havenwood>
isn't RVM supposed to automate all this? :P
<havenwood>
xcesariox: rvm get latest --auto-dotfiles
Xeago has joined #ruby
alexju has quit [Read error: Connection reset by peer]
<havenwood>
xcesariox: I'm sure when #rvm wakes up they'll be able to show you the RVM way of avoiding manually setting anything.
alexju has joined #ruby
<havenwood>
xcesariox: but maybe try that automagical fix ^
<xcesariox>
havenwood: haha okay , thank you!
mercerist has quit [Client Quit]
timonv__ has quit [Remote host closed the connection]
timonv has joined #ruby
ffranz has quit [Quit: Leaving]
mercerist has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
papercode has joined #ruby
_justin has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
alexju_ has joined #ruby
nanoyak has joined #ruby
papercode has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 240 seconds]
sunya7a has quit [Ping timeout: 240 seconds]
alexju has quit [Read error: Connection reset by peer]
jamto11 has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 240 seconds]
terrell_t has joined #ruby
upsell5 has quit [Quit: upsell5]
<happytux>
So when I packaged a gem, can I use a private ruby gem ("forge"?) to make them available locally? Or is a git repository also fine or even better?
angel66 has joined #ruby
upsell5 has joined #ruby
codeurge has quit [Ping timeout: 240 seconds]
paulfm has quit []
zegerjan has joined #ruby
banister has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
terrellt has quit [Ping timeout: 264 seconds]
codeFiend has quit [Quit: codeFiend]
armyriad has joined #ruby
j416_ has joined #ruby
Dude007 has joined #ruby
franzip has joined #ruby
codeurge has joined #ruby
terrell_t has quit [Ping timeout: 252 seconds]
j416 has quit [Ping timeout: 245 seconds]
paulfm has joined #ruby
mikecmpbll has joined #ruby
<dideler|work>
happytux: re: results being the same. i'm not sure, but i assume so
nanoyak has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 258 seconds]
lw has quit [Ping timeout: 264 seconds]
jamto11 has joined #ruby
cescalante is now known as ce_afk
agent_white has joined #ruby
lw has joined #ruby
wei2912 has left #ruby ["Leaving"]
<agent_white>
Afternoon folks
dEPy has quit [Quit: Computer has gone to sleep.]
<ftj>
Anyone know of a site like cofounderslab, et al, that makes it easy for people to team up to work on side projects?
paulfm has quit []
erikruthven has joined #ruby
platzhirsch has joined #ruby
duggiefresh has quit [Read error: No route to host]
<dideler|work>
happytux: you can have your gems managed by bundler
combusean has joined #ruby
sassamo_ has joined #ruby
nhhagen has quit [Ping timeout: 240 seconds]
<happytux>
dideler|work: so bundler can't manage git repositories? or worse than gems?
akonny has quit [Quit: akonny]
<dideler|work>
happytux: back up a bit. i'm losing track of what you're trying to do. are you wondering if you should make your library into a gem?
sdwrage has quit [Quit: This computer has gone to sleep]
freezey has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
<dideler|work>
happytux: or is this someone else's code and you're debating how to include it in your project?
sassamo has quit [Ping timeout: 258 seconds]
g0bl1n has quit [Ping timeout: 264 seconds]
valner has quit [Quit: Leaving.]
mehlah has quit [Quit: Leaving...]
papercode has quit [Ping timeout: 245 seconds]
<RubyPanther>
happytux: the advantage of using a gem (instead of bundler+git) on a private gem is to have managed releases from a private gem server. For example in a corporate setting where "private" users might be outside the development cycle.
_Andres has quit [Read error: Connection reset by peer]
freezey has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<xybre>
Also explicit dependencies and indepdent development.
terrellt has joined #ruby
silkfox has joined #ruby
<shevy>
happytux in the old days before gems, people used a single file, called setup.rb
terrellt has quit [Remote host closed the connection]
<shevy>
granddaddy shevy knows the old days
smathieu has quit [Remote host closed the connection]
<shevy>
I copy setup.rb, run it, then delete it - that's almost like a gem install!
nanoyak has joined #ruby
yfeldblum has joined #ruby
<mordof>
RubyPanther: by a private gem server, are you referring to an actual software pack that helps monitor / manage the gems? or a single location? or what
matchaw has joined #ruby
papercode has joined #ruby
<shevy>
mordof have you started finally on project number #3 ?
matchaw_ has quit [Ping timeout: 265 seconds]
JhonD has quit [Quit: Leaving]
<mordof>
shevy: nope
<shevy>
hmm
chrisja has joined #ruby
robbyoconnor has joined #ruby
nari has joined #ruby
flowerhack has joined #ruby
BalkM has joined #ruby
datafirm has joined #ruby
b00stfr3ak has joined #ruby
BalkM is now known as bMalum
yakko has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
kpshek has quit []
lyanchih has quit [Ping timeout: 240 seconds]
nari has quit [Ping timeout: 258 seconds]
ish6614 has quit [Ping timeout: 252 seconds]
mattstratton has joined #ruby
<RubyPanther>
mordof: gem server is a standard part of the gem software, it is a thing you configure as a gem source that the gem command uses
<mordof>
RubyPanther: ah - right. i suppose that'd be similar to an apt repo?
<RubyPanther>
but that isn't the important part of what I said, the important part is if there is an external release cycle with version numbers, or if users are just going to always be using the latest version
sassamo_ has quit [Read error: Connection reset by peer]
<RubyPanther>
if you have a release cycle, you want gem packaging. If you don't, then it is not useful.
abra has joined #ruby
combusean has quit [Quit: Leaving]
combusean has joined #ruby
sk87 has joined #ruby
sunya7a has joined #ruby
mikepack has quit [Remote host closed the connection]
<mordof>
ok
baweaver has quit [Remote host closed the connection]
Ariadeno has joined #ruby
wolf__ has quit [Quit: This computer has gone to sleep]
andrewjanssen has joined #ruby
sk87 has quit [Client Quit]
andrewjanssen has quit [Remote host closed the connection]
pablovilas has quit [Read error: Connection reset by peer]
cocotton has quit [Remote host closed the connection]
phat4life has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<phat4life>
does webmock work my metaprogramatically overriding Net:http
<phat4life>
*by
ValicekB has quit []
anaeem1 has joined #ruby
Eiam has quit [Ping timeout: 260 seconds]
xiq has joined #ruby
kpshek has joined #ruby
rm_ has joined #ruby
cocotton has joined #ruby
timonv has joined #ruby
sunya7a has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
alpha123 has joined #ruby
frogssgy has joined #ruby
anaeem1 has quit [Ping timeout: 264 seconds]
ce_afk is now known as cescalante
shvelo has joined #ruby
paulfm has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
qwyeth has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
JoeGaudet has quit [Quit: Computer has gone to sleep.]
terrellt has joined #ruby
Eiam has joined #ruby
mattmcclure has joined #ruby
frosgy has quit [Ping timeout: 240 seconds]
ValicekB has joined #ruby
axl_ has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claymore has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
platzhirsch has left #ruby [#ruby]
robbyoconnor has quit [Ping timeout: 255 seconds]
claymore has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
klaut has quit [Remote host closed the connection]
dmitrykorotkov has joined #ruby
omosoj has joined #ruby
coder_neo has joined #ruby
coder_neo has quit [Client Quit]
terrellt has quit [Remote host closed the connection]
randomnick_ has joined #ruby
dmitrykorotkov has quit [Max SendQ exceeded]
phat4life has left #ruby [#ruby]
terrellt has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dmitrykorotkov has joined #ruby
dmitrykorotkov has quit [Max SendQ exceeded]
dmitrykorotkov has joined #ruby
SHyx0rmZ has joined #ruby
mjs2600 has quit [Ping timeout: 265 seconds]
terrell_t has joined #ruby
dmitrykorotkov has quit [Max SendQ exceeded]
nanoyak has joined #ruby
terrellt has quit [Read error: Connection reset by peer]
lw has quit [Ping timeout: 245 seconds]
AnoGen has joined #ruby
dmitrykorotkov has joined #ruby
testcore has joined #ruby
testcore has quit [Quit: [BX] Tone Loc uses BitchX, and funky cold medina.]
<lethjakman>
is there a way to share an array to an innerclass?
<apeiros_>
what's an innerclass?
<lethjakman>
apeiros_: a class inside of a class
<apeiros_>
lethjakman: that's an ordinary class
<lethjakman>
oh. I read that the termnology was an inner class
<apeiros_>
there's nothing special about a class being nested within another class
<end_guy>
InnerClass.new(the_array)
moted has quit [Ping timeout: 255 seconds]
<apeiros_>
so same rules as with every other class apply
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banister>
end_guy though if the array is in a local and you're closing over it u can use it in the nested class but it's weird
lw has joined #ruby
kitak_ has joined #ruby
<apeiros_>
banister: hm? only if you use class_eval, no?
freezey has quit [Remote host closed the connection]
osvimer has joined #ruby
<banister>
apeiros_ Class.new do; end ya
<apeiros_>
k
bijan07077 has quit [Quit: bijan07077]
<banister>
apeiros_ silly tho u r right, cos u'd also have to have define_method in the inner class
<banister>
so it wasn't a serious suggestion
<apeiros_>
^^
Shidash has quit [Quit: Leaving.]
Oxddf has joined #ruby
qwyeth has joined #ruby
anaeem1 has joined #ruby
Ariadeno has quit [Ping timeout: 240 seconds]
terrell_t has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
Dude007 has quit [Remote host closed the connection]
apeiros_ is now known as apeiros
ayesian has joined #ruby
<ayesian>
hi
Dude007 has joined #ruby
mikepack has joined #ruby
jespada has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
osvimer has joined #ruby
baweaver has joined #ruby
* agent_white
pats the crickets
mercwithamouth has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
reset has joined #ruby
sambao21 has quit [Client Quit]
marcdel has quit [Ping timeout: 240 seconds]
bijan07077 has joined #ruby
Deejay has joined #ruby
jackneill has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
makerops has joined #ruby
Deejay is now known as Guest81211
vekfautles has joined #ruby
paulfm has quit []
osvimer has quit [Remote host closed the connection]
<makerops>
im not sure what algorithm I should google, but the I have a piece of ruby processing messages off a mesasge bus
AnoGen has quit []
sambao21 has joined #ruby
derek_ has joined #ruby
chipotle has quit [Quit: cya]
marcdel has joined #ruby
<makerops>
i want to introduce a time window variable, and if the messages are the same within that tim window, store them, and retransmit 1 message, at the end of the end of the time window
sambao21 has quit [Client Quit]
mikepack has joined #ruby
<makerops>
is there a specific algorithm, i should take a look at?
anaeem___ has joined #ruby
timonv has joined #ruby
jack_rabbit has joined #ruby
mikepack has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<banister>
apeiros what does Erscheinungstermin mean?
<apeiros>
date of release
<apeiros>
or publication
Ardenzi has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
paulfm has quit []
<atmosx>
rb_mCricket?
sunya7a has joined #ruby
thumpba_ has joined #ruby
<atmosx>
RubyPanther: why the rb then the snake_case and then the camel case?:-P
<atmosx>
RubyPanther: is it a signature nomeclature?
datafirm has quit [Ping timeout: 252 seconds]
paulfm has joined #ruby
baweaver has quit [Remote host closed the connection]
akonny has quit [Ping timeout: 252 seconds]
akonny_ is now known as akonny
kpshek has quit []
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nilium has quit [Ping timeout: 276 seconds]
thumpba_ has quit [Remote host closed the connection]
Dreamer3 has quit [Ping timeout: 240 seconds]
p8952 has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
shashank_rs has quit [Ping timeout: 276 seconds]
axl_ has left #ruby [#ruby]
sinkensabe has joined #ruby
pen has quit []
<RubyPanther>
atmosx: because that is how naming happens in C
<atmosx>
RubyPanther: haha, I can tell... I was about to say that if I didn't knew I'd say it was c code :-)
mjs2600 has joined #ruby
<RubyPanther>
The joke was that I was naming the class rb_mCricket at if Cricket was a core Ruby module
<atmosx>
RubyPanther: and I'm not a C programmer, I never wrote anything I can recall in C
<RubyPanther>
"as if'
shashank_rs has joined #ruby
<atmosx>
heh, can you name a class starting with a small letter? :-) IIRC you cant
axl_ has joined #ruby
<theRoUS>
how can i link to a section ID? e.g., i have a '# === FooBar' which creates an 'id="label-FooBar"' attribute. how can i link to #label-FooBar in the straight inline ruby documentation?
<theRoUS>
sorry, that's a question about yard
ish6614 has joined #ruby
kaleido has joined #ruby
akonny has quit [Quit: akonny]
jhulten has quit [Ping timeout: 276 seconds]
nathancahill has quit [Read error: No route to host]
mehlah has joined #ruby
sambao21 has joined #ruby
SCommette has quit [Quit: SCommette]
ffranz has joined #ruby
p8952 has joined #ruby
p8952 has joined #ruby
p8952 has quit [Changing host]
JacobHayes has quit []
Xeago has joined #ruby
datafirm has joined #ruby
musashi1 has joined #ruby
SCommette has joined #ruby
mjs2600 has quit [Remote host closed the connection]
alvaro_o has joined #ruby
fantazo has quit [Ping timeout: 252 seconds]
nathancahill has joined #ruby
mehlah has quit [Quit: Leaving...]
mercerist has quit [Read error: Connection reset by peer]
Darryl has quit [Quit: Connection closed for inactivity]
dmitrykorotkov has quit [Read error: Connection reset by peer]
mercerist has joined #ruby
mjs2600 has joined #ruby
<RubyPanther>
atmosx: from the Ruby C API a class is stored in a VALUE and so is a normal variable which gets named with a lowercase at the front. The same as on the Ruby side if you say klass = Class.new you wouldn't want to say Klass = Class.new (hopefully)
einarj has joined #ruby
<atmosx>
RubyPanther: ah true
<bricker>
Is there something wrong with using class_exec rather than class_eval? I almost never see class_exec
<bricker>
I guess because you can't have dynamically-named methods with class_exec
<musashi1>
these pretzels are makin' me thirsty
<vpretzel|1493>
did someone say pretzels?
zergood_ has quit [Ping timeout: 245 seconds]
<musashi1>
lol
<vpretzel|1493>
:)
matled has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
<RubyPanther>
bricker: thankfully I almost never see either. I think the main thing is, you wouldn't want to use it unless you had to, and class_eval already gets the work-around accomplished. As such, I don't even need to know what class_exec does, and I wouldn't try to remember without having already hit the use case myself
nathancahill has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
<bricker>
RubyPanther: same as class_eval but it takes ruby code instead of a strong
<bricker>
string*
nathancahill has joined #ruby
<ericwood>
strang
erikruthven has joined #ruby
<RubyPanther>
doesn't class_eval take a block already? I mean that is the use case. Using it with a string is a WTF outside of a REPL
<RubyPanther>
same as any eval. We have send, we don't have to commit that sin.
obscured has joined #ruby
timonv has quit [Remote host closed the connection]
<apeiros>
outside of REPL it's "I don't want a closure" and "it's faster, so for often used methods I'll use it"
timonv has joined #ruby
<apeiros>
at least that was true until 1.9, haven't tested in 2.1
dangerousdave has joined #ruby
Ariadeno has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
<apeiros>
bricker: the difference between class_exec and class_eval is that the former can pass arguments
akonny has joined #ruby
<apeiros>
other than that, there isn't any really
chipotle has quit [Quit: cya]
<apeiros>
ah, right, class_exec can't be used with string code, but you discussed that already :)
kpshek has joined #ruby
alem0lars has quit [Quit: alem0lars]
<banister>
apeiros i always just use class_exec, class_eval has some weird edge cases
rizzatti has joined #ruby
anaeem___ has quit [Remote host closed the connection]
Arkaniad has joined #ruby
<apeiros>
uh, the same as class_exec? or mind telling me one where it differs?
simono has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
Ankhers has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<banister>
apeiros class_eval actually takes an optional parameter which passes in self, this means that you can't pass a lambda into class_eval
<banister>
apeiros cos if you pass in a lambda the arity won't match up, since class_eval actually has an arity of 1
<RubyPanther>
if you don't want a closure that is fine, but if you use methods that do one thing then you don't keep a closure around. And if the inside of the closure just calls a method, and you don't create or use any locals, then there is no reason to fear it.
beneggett has joined #ruby
<apeiros>
banister: it's not an optional parameter
<banister>
but a lambda will have an arity of 0
<apeiros>
class_eval always passes it
jhulten has joined #ruby
<banister>
apeiros ok, you know what i mean :)
<apeiros>
and yes, you can pass a lambda in. but it has to accept an argument
<apeiros>
so not really an edge-case
<apeiros>
(also, when on earth do you *ever* pass a lambda to an _eval?)
cjsarette has quit [Max SendQ exceeded]
nathancahill has quit [Ping timeout: 252 seconds]
<apeiros>
banister: same with class_exec - if you call it with arg count which doesn't match your lambda
<eval-in__>
apeiros => wrong number of arguments (3 for 0) (ArgumentError) ... (https://eval.in/151318)
<RubyPanther>
99% of the use cases for lambdas are effectively, "well I like them better"
<apeiros>
RubyPanther: sadly yes. proper use case would be: I want to enforce arity
kaspergrubbe has joined #ruby
<apeiros>
oh, and sometimes its different flow control
<RubyPanther>
apeiros: which is generally dubious in a language without argument-based method overloading
shvelo has quit [Ping timeout: 276 seconds]
<apeiros>
RubyPanther: don't think so. it's closer to how methods work.
marcdel has joined #ruby
<apeiros>
i.e., proc is the block equivalent, lambda the method equivalent.
blackmesa has joined #ruby
cjsarette has joined #ruby
<RubyPanther>
right, people don't need it but they use it because they have some vision of the semantics where it would be different. But those semantics are never quite Ruby semantics anyways.
jrhorn424 is now known as zz_jrhorn424
Zenigor has quit [Remote host closed the connection]
Megtastique has quit []
ose-me has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
kaspergr_ has quit [Ping timeout: 245 seconds]
<nhmood>
i have a hash with some parameters => nil, and others with arrays
<banister>
apeiros it's an edge-case to me because passing in a &proc of arity 0 will work with class_eval in the way i expect (i know about the arg but i often forget it since i never ever use it - same with everyone else i'm sure), yet a &lambda of arity 0 will not work. Even though I and other people ought to know and be wary of the arg passed from class_eval to the block, i would say most people forget about it or are unware as the 99.99%
<banister>
case is passing in an arg-less block. So to class_eval a lambda in the way i class_eval a typical proc (of 0 arity, which is by far the common case) requires me to add an extra, unused arg to the lambda
sunya7a has quit [Remote host closed the connection]
<nhmood>
i want to go through this array and look at each array item assuming it isn't nil
<apeiros>
banister: if it's an edge-case, it's the precisely same as for lambda
<apeiros>
*as for class_exec
<nhmood>
currently i have something like hash[parameter].each .... end unless hash[parameter].nil?
<banister>
apeiros I disagree cos in the case of class_exec yu're explicitly passing the args, so it's easier to be aware of it, but in the case of class_eval the arg is passed implicitly
marcdel has quit [Ping timeout: 252 seconds]
<banister>
and it's extremely easy to forget it
jhulten_ has joined #ruby
<banister>
ya that's the only one
kyb3r_ has joined #ruby
<apeiros>
banister: class_eval is explicitly passing the args too
<apeiros>
it's always guaranteed to be 1
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther>
nhmood: It is a lot cleaner if you just use an if block, instead of postfix-ing the condition
jhulten_ has quit [Read error: Connection reset by peer]
mumin has joined #ruby
jhulten_ has joined #ruby
<mumin>
Hello
<banister>
apeiros i mean the user is explicitly passing the arg
<mg^^>
opts.each_pair do |k,v| next if k.nil? ...
* apeiros
just now noted that bricker got replaced by banister :D
<RubyPanther>
postfixed conditions are good, but only on single lines of code
mumin has quit [Remote host closed the connection]
<mg^^>
er, v.nil?
<mg^^>
sheesh
<banister>
apeiros in the case of class_exec, but in the case of class_eval the method is doing it behind the scenes
<banister>
apeiros but let's agree to disagree, it's a trivial argument ;)
<nhmood>
RubyPanther: yeah you have a good point, it is a little hard to read
<nhmood>
mg^^: that is an interesting approach, i'll take a look
Ariadeno has quit [Ping timeout: 258 seconds]
<nhmood>
thanks guys!
<shevy>
without googling
<shevy>
what is the maximum length of an URL
chipotle has joined #ruby
<mg^^>
yeah I'm a Ruby noob so it might not be the best way
jhulten has quit [Ping timeout: 255 seconds]
<mg^^>
but it's what I'd do
zorak has quit [Ping timeout: 240 seconds]
mumin_ has joined #ruby
<RubyPanther>
shevy: I'm going to go with ~1000 chars
mumin_ has quit [Read error: Connection reset by peer]
<RubyPanther>
The full HTTP request should fit into a single packet in all cases
mumin has joined #ruby
<nhmood>
mg^^: the next if worked out well in my scenario, thanks!
<mg^^>
no prob
SCommette has quit [Quit: SCommette]
<mumin>
Is it possible to make a ruby application in Linux and use it in windows graphics wise
einarj has quit []
<shevy>
RubyPanther not bad, it's longer than that but I appreciate that you didn't google
<apeiros>
banister: k
<mg^^>
I always feel like I am getting a handle on something when I can start helping other people with it
aarkerio has joined #ruby
einarj has joined #ruby
marcdel has joined #ruby
shemerey has joined #ruby
<mumin>
There wont be any differences in cross platform experience
marcdel has quit [Client Quit]
<aarkerio>
hi! I see a class with the method: def self.ADD_ACTION ; "add" ; end any idea what is for?
vekfautles has quit [Quit: Leaving.]
<mumin>
Can anyone address my question
<RubyPanther>
shevy: google says 2083 for IE, I'm just happy to have been within an order of magnitude without searching
<arrubin>
mumin: That depends on the graphics library, but generally, it is possible.
dangerousdave has quit [Read error: Connection reset by peer]
<RubyPanther>
I don't do anything more complicated than tying my shoes without having the manual open
<shevy>
hehe
shemerey_ has joined #ruby
<mumin>
Wat library would u use
<musashi1>
I feel like that's good policy
<shevy>
aarkerio this is a class method, it returns a string called "add"
<musashi1>
What if a manual doesn't exist?
<arrubin>
mumin: I do not know which libraries are popular in the Ruby world.
havenwood has joined #ruby
jespada has quit [Quit: Leaving]
mjsmith2 has quit [Remote host closed the connection]
<RubyPanther>
mumin: I develop on linux using Ruby Gtk and it works perfectly on windows
paulfm has quit []
<shevy>
RubyPanther is the only guy other than me who uses ruby gtk here
ValicekB has quit [Remote host closed the connection]
<RubyPanther>
mumin: even things like tray apps work as expected. I haven't had a platform-specific bug in over 10 years
SidFerreira has quit [Remote host closed the connection]
vpretzel|1493 is now known as vpretzel|pretzel
<RubyPanther>
as a rule I do not need to test in windows, I can test in linux and go to the client's windows machine, and using the "one-click" installer and their "dev kit", it will "just work." That is true even for C extensions.
claymore has quit [Quit: Leaving]
<aarkerio>
shevy, thanks!
<mumin>
Thank ya
<ayesian>
anybody feel like tackling a devise token issue?
<shemerey>
and handle default values {}.fetch(:lol, :ololo)
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mumin has quit [Quit: mumin]
<ericwood>
ugh don't use those D:
nathancahill has joined #ruby
<ericwood>
well
<ericwood>
eh that's fine
<arrubin>
A value is fine.
kitak has quit [Remote host closed the connection]
<arrubin>
Do not use an expensive method call.
<ericwood>
it's default values in hash initialization that I don't like
mjs2600 has quit [Remote host closed the connection]
<arrubin>
If you wish to use an expensive method call for the default, use a block to fetch instead.
<ericwood>
yah
kitak has joined #ruby
pu22l3r_ has quit [Ping timeout: 264 seconds]
mumin has joined #ruby
obscured has quit [Quit: leaving]
mumin has left #ruby [#ruby]
andrewjanssen has joined #ruby
<jailbot>
ok
lw has quit [Quit: s]
benzrf|offline is now known as benzrf
<RubyPanther>
defaults on initialization are considered harmful, but on a fetch looks harmless to me. Less clear than breaking it out with a conditionals IMO
<ericwood>
as long as it's transparent what's actually happening
<ericwood>
avoid teh magix
rm_ has quit [Remote host closed the connection]
silkfox has joined #ruby
<shevy>
\o/
<jailbot>
im kind of a noob
rm_ has joined #ruby
<jailbot>
going through the koans
akonny has joined #ruby
<arrubin>
One potential problem is: h.fetch(:foo, get_from_db())
<ayesian>
has anybody implemented authentication tokens?
alexju has quit [Remote host closed the connection]
nateberkopec has quit [Client Quit]
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
rudisimo has quit []
danshultz has quit [Ping timeout: 252 seconds]
<RubyPanther>
benzrf: what about it exactly?
cpruitt has quit [Quit: cpruitt]
<benzrf>
thats the perl 6 grammar
cpruitt has joined #ruby
nanoyak has joined #ruby
<benzrf>
its over 6k lines
<benzrf>
:|
nathancahill has quit [Quit: nathancahill]
<ericwood>
eh that's not too bad
baweaver has joined #ruby
axl__ has quit [Quit: axl__]
sambao21 has joined #ruby
axl_ has joined #ruby
lmickh has quit [Remote host closed the connection]
grzywacz has joined #ruby
SegFaultAX has quit [Excess Flood]
Lucky_ has joined #ruby
aerook has joined #ruby
<RubyPanther>
benzrf: Well it has to do everything that Perl 5 did, and more. Ideological orthogonality guarantees that the complexity will multiply.
Shidash has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<aerook>
Is there an intuitive way to pop elements from a collection from a list of indexes? Doing it individual would change the index of the target elements in an each iteration
eka has joined #ruby
akonny has quit [Quit: akonny]
<arrubin>
A list of indexes?
<RubyPanther>
Ruby is simple because we don't have "context" (in the Perl sense of the word) and things are expected NOT to be orthogonal. If something is orthogonal in Perl, that means it is expected to work in that way, too; in Ruby it is expected to not work. In Ruby it is expected that to move in 2 directions, you have 2 different objects.
<katlogic>
Still confused. Which of the two is the holy grail of string processing then?
axl_ has quit [Client Quit]
<benzrf>
katlogic: neither
<benzrf>
regexps suck
<benzrf>
use real parsing
<benzrf>
i recommend haskell
<benzrf>
:^)
SegFaultAX has joined #ruby
<RubyPanther>
aerook: it is excessively complicated to alter an array while iterating. There is not a simple solution
<benzrf>
aerook: xy problem
agent_white has quit [Read error: Connection reset by peer]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
EagleDel_ has quit []
<RubyPanther>
aerook: the "intuitive" way is to just create a new array and not pop or slice anything
Zenigor has joined #ruby
<arrubin>
aerook: You have a list of indexes and you wish to remove those items from an array?
cpruitt has quit [Quit: cpruitt]
<arrubin>
Yes, create a new array and do not include the items.
jailbot has quit [Remote host closed the connection]
flowerhack has quit [Quit: Connection closed for inactivity]
smathieu_ has joined #ruby
cpruitt has joined #ruby
ayesian has quit [Quit: ayesian]
maximski has quit []
mrmargolis has quit [Remote host closed the connection]
<arrubin>
There is probably a better option that involves not creating the list of indexes in the first place.
Iniesta8 has joined #ruby
axl_ has joined #ruby
agent_white has joined #ruby
m8 has quit [Read error: Connection reset by peer]
<terrellt>
aerook: What are you trying to do?
<terrellt>
aerook: There's probably an array method for what you want.
<mg^^>
yeah that question took too long to come out :)
<benzrf>
selite: write a program that simulates gravity and movement of spheres in space on a 2d plane
aerook has quit [Quit: Page closed]
Es0teric has joined #ruby
cescalante is now known as ce_afk
Nilium has joined #ruby
momomomomo has joined #ruby
livcd has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<selite>
arrubin: I can't see the list of exercises. I am well versed in basic things.
<selite>
benzrf: But that's so useless. How do you become as productive as some guys that contribute to 3 projects simulatenously and have built shit-load of things.
WillAmes has quit [Remote host closed the connection]
yokel has joined #ruby
WillAmes has joined #ruby
bin_sh has joined #ruby
* benzrf
shrugs
<benzrf>
im the world's least productive person dont fucking ask me
dbods has quit [Remote host closed the connection]
marcdel has joined #ruby
dbods has joined #ruby
bin_bash has quit [Ping timeout: 276 seconds]
livcd has quit [Ping timeout: 245 seconds]
<selite>
benzrf: Lol.
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
selite: go learn haskell
<selite>
benzrf:why?
<benzrf>
cuz its cool
<jiriki>
selite: probably same way you build muscle
meatherly has quit [Remote host closed the connection]
<xybre>
selite: Find something you wish sucked less and build a better one, or contribute to it. Or, if you run into a problem, build a tool to help you solve it.
<selite>
jiriki: I learnt Scheme and I still haven't completed SICP. :(
<xybre>
Or find a project you think is neat and go through their bugs or feature tickets and try to implement/fix them.
<arrubin>
selite: Getting started requires a few steps. You might log in using your GitHub account, download the exercism client, then follow the setup instructions and fetch the exercises.
Celm_ has joined #ruby
<benzrf>
selite: implement a scheme in ruby
<arrubin>
s/might/must/
s2013 has quit [Ping timeout: 240 seconds]
<selite>
benzrf: Oh yeah, that sounds nice.
<xybre>
Everyone has implemented scheme in ruby at this point.
<benzrf>
i havent!
<jiriki>
I do think its important to find someone to work with, that way is much more motivating
<benzrf>
ive only implemented it in haskell
<benzrf>
:-)
<arrubin>
xybre: All of R6RS?
<selite>
jiriki: How do you find someone to work with?
<benzrf>
.co.de is a thing
<agent_white>
selite: Build an IRC client? That's what I'm doing now.
<jiriki>
selite: find an interesting project :)
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<selite>
jiriki: I am in a hipster college with weed smokers and poets.
<jiriki>
:D
<jiriki>
you can work over internet
marcdel has quit [Ping timeout: 255 seconds]
<jiriki>
with people
<benzrf>
i am such a hipster woah
dbods has quit [Ping timeout: 252 seconds]
<agent_white>
me2
<benzrf>
selite: im often open to collab if u want
<selite>
benzrf: What are you working on currently? xD
<benzrf>
no major projects
<benzrf>
altho im also working on a website in a guys employ
<benzrf>
but thats not a personal proj
<xybre>
arrubin: Well not all of it, but no one does that ;)
<benzrf>
been learning about comonads :-)
<selite>
benzrf: Ok send me your github link.
<xybre>
Except one guy
marcdel has joined #ruby
<selite>
benzrf: The thing is that I don't wanna end up like some programmers constantly learning new languages. I wanna build things instead.
yvemath has joined #ruby
<combusean>
hah
<combusean>
that's called the real world
<benzrf>
u can do both
<combusean>
and if you stay stagnant with one language, you'll go obsolete
thumpba_ has joined #ruby
<selite>
combusean: And you can be constantly learning things about languages while not utilizing their power.
geggam has quit [Quit: commute]
* combusean
has ended up in devops rather than get super 1337 about ruby, and is fine with that.
<combusean>
for now
<katlogic>
devops ftw
jobewan has quit [Ping timeout: 258 seconds]
<combusean>
except when nginx is mean to me like right now
<combusean>
and all the other half baked, poorly documented tools and obsolete environments
<combusean>
heh
<atmosx>
combusean: what's the prob?
<combusean>
it's 301ing to itself
<combusean>
but i wasn't gonna ask here
<selite>
ive take a java final now.
selite has quit [Quit: Page closed]
andrewlio has quit [Remote host closed the connection]
<havenwood>
g'luck
* havenwood
wonders what a programming final is like...
<atmosx>
havenwood: write a bubble-sort in 45 seconds?
<testcore>
final Java implements Final { return final; }
klaut has joined #ruby
<katlogic>
worse; with java its usually girdworld
<katlogic>
kids should really organize and boycott this sort of abuse
<atmosx>
yeah, a prescription might be neede
<atmosx>
d
thumpba_ has quit [Ping timeout: 265 seconds]
bMalum_ has quit [Quit: Computer has gone to sleep.]
<benzrf>
girdworld?
bMalum_ has joined #ruby
<benzrf>
bubblesort in 45???
<benzrf>
until list.sorted
<katlogic>
benzrf: spelling it properly would invoke the beast from the depths of abyss.
<benzrf>
etc
<benzrf>
katlogic: are you referring to minecraf
<benzrf>
t
<RubyPanther>
I dropped out when they switched the CS program to Java, but that was `99
nfk has quit [Quit: yawn]
<RubyPanther>
I'm surprised they still teach it without riots
armyriad has joined #ruby
<workmad3>
RubyPanther: new students don't realise it's damaging them :(
<RubyPanther>
workmad3: I guess since my first language was BASIC I was already sensitized to brain damage\
<combusean>
heh
<benzrf>
i went BASIC -> VB -> PHP -> Java
* combusean
is still recovering from many years of php =(
<benzrf>
goml
<katlogic>
benzrf: gridworld ...
<workmad3>
RubyPanther: ah, I got past BASIC when my mind was still growing, so I just grew around the brain damage :)
<benzrf>
wtf is gridworld
mikepack_ has joined #ruby
<RubyPanther>
before Java they were using C++, but I got good grades using plain C. It wasn't what I was supposed to be doing, but I guess it was close enough..
<workmad3>
atmosx: the horrible, horrible, stilted crap that java pushes as an 'Object system'
<atmosx>
benzrf: you took a lot of shit :-P
<benzrf>
>objects
<RubyPanther>
my HS taught Hypercard on the mac as AP "programming"
<benzrf>
>having 'fields'
bMalum_ has quit [Ping timeout: 255 seconds]
crockettj has quit []
<atmosx>
workmad3: why?
<xybre>
Oh I forgot about HyperCard that was awesome.
r_rios has joined #ruby
<benzrf>
atmosx: i was a baby i knew no better
<benzrf>
:(
<RubyPanther>
HyperCard was like.. the WWW 10 years early
<xybre>
It's not AP anything, and its not really programming, but its still awesome.
<combusean>
the guy who invented the term objected oriented programming specifically said he did not have languages like C++ and java in mind.
<benzrf>
yeah
bakflash has quit [Ping timeout: 252 seconds]
<benzrf>
them and their classes
<benzrf>
pfft
<benzrf>
its all about the messages
<atmosx>
benzrf: I'm kidding, I wish a had more background, I started with ruby and I'm stuck with ruby :-P
<xybre>
Applesoft BASIC was my first language. Then gw and q. REXX and some other scripting languages, then VB (which even then I knew was awful), C, some game-specific languages, and then Ruby.
<RubyPanther>
it sucked, but the school made a (significant!) profit by selling the student's projects.
<benzrf>
atmosx: lrn2haskell
<xybre>
The C was really useful in understanding Ruby.
* combusean
wonders if anyone else here learned pascal in school
<xybre>
I did some ASM in there somewhere too.
<benzrf>
combusean: my dad did
<katlogic>
combusean: yeah i went the pascal path
<workmad3>
atmosx: also, I've heard (but can't quote a definite source) that java was mostly designed to try and mitigate the damage that 'average' coders could do and still produce code that worked
<combusean>
hehe
garndt has quit [Quit: Connection closed for inactivity]
beneggett has joined #ruby
<combusean>
the midlate 1990s at a moderately funded public school
<workmad3>
combusean: I played around with Delphi while I was still in school... does that count? :)
<katlogic>
(all in 90s)
andrewjanssen has quit [Quit: Leaving...]
danman has quit [Quit: danman]
<RubyPanther>
when I was in school we still called it pascal
<torresga>
i didnt mind java as much as i did having paper exams
<workmad3>
combusean: there may also have been some pascal in one of my classes... can't remember (but I'm in the UK... quite a bit different school system here)
<atmosx>
workmad3: the most degrading quots I've heard from people I respect for their skills (Marlienspike, Torvarlds) were about JavaScript not java.
<torresga>
i still dont understand
<combusean>
applesoft basic -> qbasic -> visual basic -> pascal -> cgi/shell nonsense for a bit -> PHP -> ruby
<torresga>
why we had to write java code on paper. for a programming class
<combusean>
torresga, it prepares you for job interviews
<workmad3>
atmosx: torvalds has a large repertoire of vitriol for C++, most of it can also be applied to java iirc
<katlogic>
calling php and ruby programming languages is kinda stretch for me
mikepack_ has quit [Ping timeout: 258 seconds]
VTLob has quit [Quit: VTLob]
<workmad3>
*repetoire
<torresga>
still dont get it
<torresga>
psuedocode sure
<atmosx>
torresga: maybe your professor grew on punchards?
<atmosx>
punch-cards
<RubyPanther>
pascal was a great language for students, because you could program DOOR games for BBSes with it, and also addons for Legend Of the Red Dragon
<katlogic>
im too old and thus opposed to call anything not producing binary executable code a programming language :)
<torresga>
i think she was kinda young for that
<workmad3>
torresga: oh, we got to code on the computer for java... but then we had to print it out and hand that in...
<benzrf>
katlogic: poppycock
<combusean>
torresga, wait until you have 3 guys with sticks up their ass throwing features at you and putting you more on the spot than youv'e ever been on your life why it's not working/efficient/up to how they wanted to do it
binaryhat has joined #ruby
<atmosx>
workmad3: I think he is/was one of the most prolific programmers of his time.
<torresga>
i cant wait
<combusean>
torresga, all in a whiteboard when you're in a suit and don't know any of these people.
<arrubin>
katlogic: So Java is not a programming language?
mehlah has quit [Quit: Leaving...]
<workmad3>
combusean: you're forced into a monkey-suit with a leash? :(
jxf has quit [Ping timeout: 240 seconds]
<katlogic>
arrubin: Thing like Java or even javascript, with actually decent runtimes blur the line a bit.
<atmosx>
workmad3: so I kinda trust him, although I know he is bashing out quite too often and it's not a *polite* guy :-)
freerobby has quit [Quit: Leaving.]
<workmad3>
combusean: last time I wore a shirt was for my sister's wedding
<katlogic>
But anything slow as ruby and python or even perl is just scripting.
<arrubin>
katlogic: Ruby, Python, and Perl execution are very similar.
<katlogic>
convenient, slow glue = script
<arrubin>
katlogic: They just do not break the steps out.
<workmad3>
atmosx: end of the day, credentials mean nothing unless you've not got the time or ability to check out the claims yourself
<workmad3>
atmosx: the smartest guys in the world can still say stuff that's wrong, after all :)
<combusean>
workmad3, when i'm interviewing for a job that pays over six figures I tend to not fuck around
<combusean>
workmad3, but I don't wear a tie at least.
<workmad3>
combusean: :D
<atmosx>
workmad3: I don't :-) I would ave to know Java at least other 5 laguages inside-out in order to have an opinion (that counts).
<Lucky_>
I would say that at around 6 figures is when you start to fuck around
livcd has joined #ruby
<atmosx>
workmad3: agreed
<combusean>
a lower middle-class lifestyle in san francisco, as it turns out
<atmosx>
combusean: you're a lawyer?
<combusean>
or middle class
mansi has quit [Remote host closed the connection]
<RubyPanther>
You gotta be pretty old to consider APL to be newfangled
<katlogic>
arrubin: Break steps out? You mean authors of said slow runtimes stated explicitly "it is just a glue for external C libraries, not actual programming language where performance-critical algorithms should be expressed" isn't it?
<combusean>
atmosx, devops for a startup
<xybre>
6 figures in SF is required to not have 3 roommates.
<arrubin>
katlogic: No, I mean that they all compile to bytecode internally.
<katlogic>
arrubin: So?
<atmosx>
combusean: oh, okay the average YN guy ;-)
<torresga>
xybre: really???
<arrubin>
katlogic: Your distinction is rather nebulous.
mansi has joined #ruby
<torresga>
thats nuts
<combusean>
my rent in a shithole with a half mile walk to the trainstation and a 40 minute ride to work on average is $2300 a month with parking, water, and sewer
<atmosx>
combusean: omg
<workmad3>
combusean: O.o
<xybre>
torresga: Yes, really. It's comprable to Manhatten island rent and cost of living.
<katlogic>
arrubin: Put another way, whatever at least approaches near-c performance, whatever means actually puts C outside of the equation. Most of the stuff can be actually represented in said language.
<combusean>
it's more expensive than manhattan
<katlogic>
arrubin: This is not the case of ruby.
<combusean>
to not have a shit commute would be paying $3000/month for a one bedroom
<workmad3>
combusean: I'm renting a 3-bed house with a garden for less than half that :/
<atmosx>
combusean: I'd write code 8-10 hours per day for 2300 USD/month
<xybre>
They leap frog, one year its SF the next its Manhatten. Right now its probably more due to the most rcent bubble.
<combusean>
atmosx, i work day and night
<RubyPanther>
I was in SF in 2003, we applied for a studio in the Tenderloin for $1600/m and we didn't get it... 50+ people applied with higher credit scores
andrewjanssen has joined #ruby
<atmosx>
combusean: I know, but you're in for the big money, I'm not.
<combusean>
i'm in it to deliver
<combusean>
and have a job
<xybre>
I got to live in the city within walking distance to my work in the financial district but it was a no-bedroom loft that cost almost 3k.
<combusean>
being unemployed is fucking scary up here
<combusean>
esp when threatened with moving back home to a backwater where jobs are shit and it's 2007.
<atmosx>
combusean: oh I'm from Greece, being unemployed is the default now.
<atmosx>
combusean: although I study in CZ so, doesn't really affect me at this pin
<combusean>
=(
<atmosx>
point
<RubyPanther>
We ended up paying $1100/m to share a row house way out on the south side of Twin Peaks
<jiriki>
I'm from Finland, and being unemployed isn't really scary here
<xybre>
Yeah, in the US they shoot you on site for being unemployed.
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
xybre: they shoot you on sight if you're on site? :)
<benzrf>
stop
<benzrf>
yall are scaring me
<benzrf>
;-;
<torresga>
well if that were the case id be dead by now
<xybre>
Well, "on site" could mean "where you stand" but "on sight" is what I mean "when they see you".
livcd has quit [Ping timeout: 240 seconds]
<kaleido>
i paid $1600/mo for a studio in milpitas in 1998. thank god the ipo made it all worth it
<katlogic>
workmad3: It's to prevent hobo riots.
<RubyPanther>
They shoot you on sight on site without a security pass
<combusean>
wow kaleido it was that high then!
<combusean>
in milpitas?!
<musashi1>
Yeah, that's really high
marcdel has quit []
<combusean>
that's higher than today
<musashi1>
It is
<kaleido>
dotcom fun
<musashi1>
I was paying 1400 for a one bedroom in santa clara in 2005
<atmosx>
is Hendrix's little wing another song about dope?
<kaleido>
exodus came with its downside
<workmad3>
xybre: I'm imagining an office building with the sign 'Trespassers will be shot. Survivors will be shot again' and then some form of death-maze style escape from your exit interview in the middle of said building...
<musashi1>
economic bubbles are a PITA
<RubyPanther>
everybody is really high in SF, it is no surprise. Even the rent is high.
<musashi1>
no coincidence
mansi has quit [Ping timeout: 252 seconds]
beneggett has joined #ruby
bijan07077 has quit [Quit: bijan07077]
<RubyPanther>
it is no bubble when the rent has been that high for over a decade.It started with a bubble, sure.
<musashi1>
it hasn't been that high... studios went down significnatly in 2008
beneggett has quit [Client Quit]
<katlogic>
Looking forward for US to go the commie route and finally start repossesing.
<RubyPanther>
but "affordable housing" is not going to return to SF. If you want "affordable housing" you need to be on the other side of the bay.
<katlogic>
That will be fun.
<combusean>
i don't think it's a bubble here fortunately.
x1337807x has joined #ruby
<musashi1>
where is 'here'
<RubyPanther>
just because during a recession rents went down slightly, and temporarily, that doesn't prove it is a bubble. That proves it isn't because that is the only data point that looks that way.
beneggett has joined #ruby
<xybre>
workmad3: I think I worked at that facility
blackmesa has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
<musashi1>
i don't know what 'affordable housing' means
<combusean>
musashi1, SF, bay area, almost anywhere that's absurdly hiring
smathieu_ has quit [Remote host closed the connection]
<musashi1>
obviously the people who live there can afford it
sdwrage has quit [Quit: This computer has gone to sleep]
<combusean>
tenuously
<musashi1>
<shrug> I'm born and raised bay area...
<RubyPanther>
musashi1: You're probably not trying very hard to understand a term if your best attempt is to figure out what it must not mean ;)
smathieu has joined #ruby
<musashi1>
I agree - that's the definition of a bubble..
<katlogic>
I highly doubt this will ever happen in US.
beneggett has quit [Client Quit]
<kaleido>
i never regret leaving california
<combusean>
moving to CA was the best thing i've ever done for myself and my career
<kaleido>
i never ski'd, never went to the beach, it wasnt san diego, and it was expensive
<musashi1>
to where did you go?
<combusean>
bay area, SF
<kaleido>
i moved to kansas city, mo
<musashi1>
was asking kaleido
mehlah has joined #ruby
<musashi1>
unfortunately, here is about the best place to be if your'e in tech
thumpba_ has joined #ruby
<musashi1>
all these damn transplants though ;)
<combusean>
SF has always been a city of transplants
nanoyak has quit [Quit: Computer has gone to sleep.]
<musashi1>
true
<arrubin>
kaleido: And now you have faster Internet access than you did in the Bay Area and your cost of living is less than half of what it was?
<RubyPanther>
"affordable housing" means that you can afford it with a "regular" job. That means if you're above the poverty level, there is some sort of housing that you can get. Being at 125% of the poverty level will not allow you to afford even a studio apartment in SF. You'll not only be on the east side of the bay, you'll be way the heck out there in smogville
<combusean>
it was founded on real gold, now there's tech gold
<musashi1>
Rubypanther; a regular job here is a tech job..
<combusean>
people come in from all over to make their fortunes, some stay, some leave
<kaleido>
arrubin: i have google fiber, yes. and housing is 163% less.
<RubyPanther>
musashi1: Actually, guess what, the regular jobs in SF are still done by humans, not yet by robots.
sambao21 has joined #ruby
<musashi1>
thanks?
<workmad3>
kaleido: your landlord pays you rent?
<workmad3>
;)
<arrubin>
kaleido: I am jealous because you are near Boulevard.
<musashi1>
more still, poverty level is federally defined and 'regular' job is local to the area
<kaleido>
haha nah we bought
<RubyPanther>
And actually most of those "tech jobs" are not even IN SF. They live in SF and work in South Bay, causing the people who work in SF to have to live in East Bay.
<workmad3>
kaleido: just trying to figure out '163%' less without it meaning someone gave you money :P
<kaleido>
arrubin: im still a sierra nevada man, but i love the boulevard brewery tour
<musashi1>
Completely disagree - they've all moved to SF
<RubyPanther>
They ride Caltrain and the local workers have to ride BART
<musashi1>
I live and work in the south bay..
<musashi1>
...
<musashi1>
You're not from around here are you
tercenya has left #ruby [#ruby]
<kaleido>
workmad3: i bought. rent here is where you get raped
<RubyPanther>
^ I pretty obviously am intimately familiar with the regional dynamics
tercenya has joined #ruby
<workmad3>
kaleido: ... 100% less == 0
tercenya has quit []
<musashi1>
You're really not - caltrain and bart are not comparable
<workmad3>
kaleido: so 163% less == someone gave you money
Xeago has joined #ruby
<kaleido>
so perhaps the right expression was, california was 163% more
<katlogic>
I wonder how SF makes it hobo population invisible.
<workmad3>
kaleido: :D
<katlogic>
Apparently lots of folks are under poverty level, yet the place looks almost hobo-free.
smathieu has quit [Remote host closed the connection]
<arrubin>
katlogic: Have you actually been there?
<arrubin>
katlogic: They are everywhere.
<workmad3>
kaleido: that would be about 40% less ;)
smathieu has joined #ruby
<workmad3>
kaleido: oh sorry... 60% less
<katlogic>
arrubin: Yes, but in 2007. I suppose a lot changed (I'm across the pond).
<RubyPanther>
musashi1: I'm not sure about your English, I only "compared" Caltrain and BART by saying that the tech workers living in SF ride caltrain to work, and the workers in SF ride BART into SF.
<arrubin>
katlogic: There has been a very high homeless population in SF for decades.
<arrubin>
And that has not changed.
DrShoggoth has quit [Quit: Leaving]
toastynerd has quit [Remote host closed the connection]
pierre1_ has joined #ruby
<katlogic>
arrubin: Very high as in, not different from places like NYC.
bijan07077 has joined #ruby
OffTheRails has joined #ruby
<katlogic>
Sure, in hobos in america are much more commonplace than in EU, one has to consider things in local terms.
<musashi1>
RubyPanther, I have no interest in getting into this with you. You're obviously not from around here.
<RubyPanther>
Just go out to eat on Haight, and carry a bag with leftovers while walking to the bus stop. 20 street kids will ask, "spare leftovers?" Only place I've been where people actually beg directly for food, instead of for money
<RubyPanther>
musashi1: "nobody" is "from around [there]," at least not most of the people there
<musashi1>
I am
<RubyPanther>
If you really were, you'd know what I just said is true!
<katlogic>
RubyPanther: wow, thats pretty cool.
treehug88 has quit []
<katlogic>
Last place I've seen that is 3rd world shitholes like nepal.
<arrubin>
katlogic: NYC has about five times as many homeless, but ten times the population.
<arrubin>
SF is also tiny.
<RubyPanther>
but being from South Bay might not actually teach you about SF in the same way as living there for awhile and having lots of friends who live there still
Xeago has quit [Ping timeout: 240 seconds]
<combusean>
Caltrain has a surprisingly high "reverse" commute from SF people evacuating the city
demis has joined #ruby
<musashi1>
I'm from the east bay - 12 mins from SF..
<combusean>
SoMA has the highest rents because a tech worker there can work locally or hop on caltrain to the peninsula.
<musashi1>
^
<combusean>
at 3:15 AM
<musashi1>
And, twitter, linkedin, blah blah blah blah are all there now.
Nogbit has joined #ruby
<musashi1>
And yeah, it's very 3rd world.
<RubyPanther>
In Portland they have these food vouchers you can buy, and they're good for a full meal at some restaurants... I've seen beggars actually yell at people for handing them one! Very different than Haight St
<combusean>
portland sounds really cool
<combusean>
small tho
<RubyPanther>
in Boston beggars expect to have to work for their handouts, and most of them can at least ding out Marry Had A Little Lamb with a spoon and empty can
<kaleido>
haha
<arrubin>
Portland is where young people go to retire.
* combusean
giggles at Portlandia
<momomomomo>
YESSSSS
<momomomomo>
fuck yeah, i'm outa here
<momomomomo>
I was going to link you guys some per capita stats etc
<momomomomo>
basically San Francisco has the most homeless per capita in the US
<kaleido>
friends just moved to north dakota and said shit's booming up there so much there are waiting lists for apartments and people are living in hotels
<RubyPanther>
when I lived in Portland, I always tried to chat up Portlandia whenever I was walking home drunk at 3am
<momomomomo>
but, I just resolved an issue with my docker/puppet deployment, and I'm leaving
<momomomomo>
pz
m8 has quit [Quit: Sto andando via]
<katlogic>
"Will cobble up shitty RoR CRUD apps for food"
<katlogic>
or food stamps
<katlogic>
is that what SF is like?
cpruitt has quit [Quit: cpruitt]
<kaleido>
no, its just kinda filthy :(
<RubyPanther>
walking home at 3am in SF, you're just happy to still be alive each block you get closer
<arrubin>
More like a homeless hippy and his dog sitting on the sidewalk in everyone's way.
<momomomomo>
kaleido: yep, in ND you can make ~60-70k with a Class A license (ie: tractor/trailer trucks)
<katlogic>
arrubin: Well, those guys were there like forever. Its the tech sector invading their natural habitat.
<RubyPanther>
Yeah, I'd heard how bad the Tenderloin was, but the only problem I ever had was having to step over smelly people. Not exactly intimidating in the same was as the gangs on Haight\
<RubyPanther>
I went to Haight for the hippies, but instead I found the highest concentration of blood and emergency vehicles I've ever seen. And that includes war protests.
<kaleido>
i like being asked by nearly homeless teens what time it is, and responding with the actualy time instead of "4:20" and seeing them get disappointed they had no sale
Ariadeno has joined #ruby
ooooooo has joined #ruby
parduse is now known as Guest25577
ooooooo is now known as parduse
parduse has quit [Changing host]
parduse has joined #ruby
<katlogic>
SF city council oughta put more thought into preserving wildlife / hippie pastures.
<katlogic>
Or they'll go extinct.
<RubyPanther>
katlogic: they have hippie pastures in Golden Gate Park, but the cops go in and beat everybody with batons once a month
<katlogic>
:/
<katlogic>
Well such is the struggle of a hippy.
funburn has joined #ruby
Guest25577 has quit [Ping timeout: 264 seconds]
<musashi1>
Guys, the hippies have been in berkeley for 20 years now..
<RubyPanther>
higher class hippies have the strength and nutrition to hike all the way to the top of Strawberry Hill, where beating them would be too much work.
<katlogic>
RubyPanther: What I'm trying to point out. There are two kinds of hobos. In general, those who live like that voluntarily, and those who do not.
<katlogic>
The distinction might not be apparent, but quite important to determine how sad the situation is.
Megtastique has quit []
bin_sh has quit [Ping timeout: 245 seconds]
<RubyPanther>
katlogic: homeless junkies are not hobos