jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
pietr0 has quit [Quit: pietr0]
[H]unt3r has joined #ruby
prosodyContext has joined #ruby
bubbys has quit [Ping timeout: 246 seconds]
<Scriptonaut> anyone know how to open a file to write with "../.." in the path?
<Scriptonaut> it's giving me: Errno::ENOENT: No such file or directory @ rb_sysopen - ../../db/migrate/add_table_users.rb
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<RickHull> it's incredibly likely that the file doesn't exist
<RickHull> at that path
<Scriptonaut> ya it doesn't, I'm trying to create the file
bubbys has joined #ruby
<RickHull> with what method?
<Scriptonaut> I'm doing File.open("../../db/migrate/add_table_users.rb", 'w') do |f| ...
<RickHull> probably need to use File.new
<RickHull> or something
<Scriptonaut> that gives me the same error
phutchins has quit [Ping timeout: 244 seconds]
<Scriptonaut> when I take out the "../.." it works
<Scriptonaut> I guess I could get an absolute path
marr has quit []
<RickHull> you can use File.expand_path too
<Scriptonaut> awesome
<Scriptonaut> thanks RickHull that's exactly what I needed
<RickHull> cheers
hays has joined #ruby
juanpablo_ has joined #ruby
<hays> can someone help parse out what this is doing? cl.with_slave(1) do |slave|
<hays> e.g., what is the |slave| bit
<RickHull> that's a block parameter
<RickHull> e.g. [1,2,3].each do |num|
<RickHull> puts num
<RickHull> end
myztic has quit [Ping timeout: 244 seconds]
<hays> hrm.. guess im struggling with the mental model her
<hays> here.
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hays> [1,2,3].each returns an iterator... so I guess that just gets passed into the do somehow?
Yzguy has joined #ruby
juanpablo_ has quit [Ping timeout: 272 seconds]
<RickHull> each accepts a block. you are passing the block (do ... end) to each
<RickHull> if you don't pass a block, each returns an iterator
RobertBirnie has quit [Ping timeout: 246 seconds]
Ox0dea has joined #ruby
Thomas-0725 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
bruno- has joined #ruby
<hays> ModBus::TCPClient.connect(IP_ADDRESS, PORT, :connect_timeout=>2) do |cl| so in this case... i guess that function is accepting a block
jackjackdripper has joined #ruby
<RickHull> yep
dopie has joined #ruby
acke has joined #ruby
<hays> does it have to accept a block?
<Ox0dea> hays: Every method accepts a (potentially implicit) block.
jenrzzz has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
<Ox0dea> The String#to_i method, for instance, simply converts the receiver to an integer; you can provide a block, but it'll simply be ignored since it has no bearing on the method's return value.
<Ox0dea> >> '42'.to_i { this is ignored }
<ruboto> Ox0dea # => 42 (https://eval.in/405513)
<hays> What is the most useful three hours of reading I can do on this language?
<hays> as someone who knows quite a few other languages.. this one is ..well unique
<Ox0dea> That doesn't seem like the right question.
<banister> hays whys poignant guide
<Ox0dea> hays: learnxinyminutes.com/docs/ruby/
bruno- has quit [Ping timeout: 265 seconds]
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Ox0dea> hays: Ruby's blocks are little more than an object-oriented spin on closures.
bruno- has joined #ruby
acke has quit [Ping timeout: 250 seconds]
blue_deref has quit [Quit: bbn]
<Ox0dea> Ruby is indeed unique, but only by virtue of its being a combination of features not found anywhere else.
<hays> right. i've not thought about smalltalk since maybe 2002
mikecmpbll has quit [Quit: i've nodded off.]
wallerdev has joined #ruby
<hays> and i think im working with a bit of example code that is... especially strange
hahuang65 has joined #ruby
<RickHull> hays: this shows some block usage: https://rickhull.github.io/loremarkov/rocco/loremarkov.html
mleung has quit [Quit: mleung]
<RickHull> i usually reach for braces rather than do/end
bruno- has quit [Ping timeout: 246 seconds]
<Ox0dea> I use Weirich's rule.
bronson has quit [Remote host closed the connection]
myztic has joined #ruby
lkba_ has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
ynasser has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
a346 has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 240 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
<hays> this poignant guide is really odd
bruno- has joined #ruby
workmad3 has joined #ruby
<RickHull> not my first choice :)
rubie has joined #ruby
bmurt has joined #ruby
<hays> seriously maybe an O'Reilly book? surely there is something that won't waste my time .. meh. i'll just google around
<RickHull> http://pine.fm/
<RickHull> i think that is still online
werelivinginthef has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
<RickHull> you can skip lots of the beginning stuff
bruno- has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
Igorshp has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
sharpmachine has joined #ruby
cloaked1 has quit [Ping timeout: 256 seconds]
werelivinginthef has joined #ruby
NeverDie has joined #ruby
bruno- has joined #ruby
<Ox0dea> hays: Which O'Reilly book(s) did you read in three hours?
bhorn1|away has quit [Quit: ZNC - http://znc.in]
sshuff|gone has quit [Quit: ZNC - http://znc.in]
Igorshp has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
<hays> ones i've skimmed most of because all programming books say the same thing except for the 10% that's unique to the language
<Ox0dea> hays: Then why isn't learnxinyminutes exactly what you're looking for?
mdavid6131 has quit [Quit: Leaving.]
ascarter has joined #ruby
<hays> thought you were being fecetious
Azure has quit [Read error: Connection reset by peer]
squirtle has joined #ruby
<Ox0dea> ...?
<hays> i didn't realize that was a real link. now i do
<hays> facetious
<cntrx> Sounds like a real xy problem
stantonnet has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 246 seconds]
sarkyniin has quit [Ping timeout: 260 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
cntrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
centrx has joined #ruby
hahuang65 has joined #ruby
Azure has joined #ruby
Azure has quit [Client Quit]
Lucky_ has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
eGGsha has joined #ruby
fullofcaffeine has joined #ruby
eGGsha has quit [Client Quit]
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
towski_ has quit [Remote host closed the connection]
Lucky_ has quit [Client Quit]
Azure has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
eminencehc has joined #ruby
Kalov has joined #ruby
tmtwd has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
Azure has quit [Client Quit]
shock_one has quit [Remote host closed the connection]
DLSteve has quit [Quit: Leaving]
bruno- has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
Azure has joined #ruby
ledestin has joined #ruby
transiency has quit [Remote host closed the connection]
<cout> what's the principle called that says that you shouldn't in a derived class change the meaning of a method defined in a base class?
werelivinginthef has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 255 seconds]
[H]unt3r has quit [Read error: Connection reset by peer]
<cout> is that Liskov or a corollary?
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
tsvenson__ has quit [Ping timeout: 240 seconds]
t_ has joined #ruby
mistermocha has joined #ruby
pkrueger has quit [Quit: Leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> cout: That's LSP, yes.
<cout> cool thanks
<Ox0dea> hays: Fluent yet? :) Y should definitely be less than 180 in this case.
hahuang65 has joined #ruby
radgeRayden has joined #ruby
<hays> nope but im distractable
Azure has quit [Quit: Oops.]
omegamike has joined #ruby
sharpmachine has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 272 seconds]
danzilio has quit [Quit: My computer has fallen asleep!]
hahuang65 has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
omegamike has quit [Ping timeout: 246 seconds]
allcentury has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
bhegel has quit [Ping timeout: 272 seconds]
bhegel has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<hays> gem install <foo> .. is there a way to do this for a user account without sudo
<RickHull> gem install --user-install
towski_ has joined #ruby
<RickHull> hays: it's probably too early to start looking at ruby version managers (e.g. rvm, rbenv, chruby) but they have their own layer for managing gems without necessary installing to system (requiring root privileges)
dfockler has joined #ruby
s00pcan has joined #ruby
Azure has joined #ruby
rbowlby has quit [Remote host closed the connection]
<Ox0dea> RickHull: chruby has nothing to do with gems.
gambl0re has joined #ruby
squirtle has quit [Ping timeout: 246 seconds]
chills42 has joined #ruby
webguynow has quit [Ping timeout: 264 seconds]
<RickHull> ctrl-f gem
bruno- has joined #ruby
webguynow has joined #ruby
<hays> RickHull: I've been trying to figure out how to have two of these going at once https://github.com/flipback/rmodbus (see example)
icebourg has quit []
<hays> the way the example is done with closures.. not sure how to have two connections open without being weird and nesting one within the other
dfockler has quit [Ping timeout: 250 seconds]
<RickHull> yeah, i wouldn't put too much stock in the specific example
<Ox0dea> RickHull: chruby's observing a few environment variables oughtn't constitute "gem management", in my opinion.
eminencehc has quit [Remote host closed the connection]
<RickHull> Ox0dea: it sets environment variables
<RickHull> that's management in my book ;)
<Ox0dea> Fair enough, I suppose.
bruno- has quit [Ping timeout: 244 seconds]
hj2007 has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
bruno- has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<postmodern> chruby just tries to keep gem homes separate
<postmodern> gem_home, isolate, bundler are more gem management in my book
<postmodern> also rbenv-gemsets
stantonnet has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
hahuang65 has joined #ruby
symm- has joined #ruby
michael_mbp has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
wallerdev has quit [Ping timeout: 240 seconds]
Trieste has quit [Ping timeout: 240 seconds]
tubulife- has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
hashrocket has quit [Quit: Connection closed for inactivity]
michael_mbp has joined #ruby
rubie has quit [Remote host closed the connection]
Mendenhall has joined #ruby
senayar has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 244 seconds]
s00pcan has joined #ruby
Channel6 has quit [Quit: Leaving]
bhegel has quit [Quit: bhegel]
chouhoulis has joined #ruby
lemur has joined #ruby
chouhoul_ has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 240 seconds]
decaff has joined #ruby
mollymorphic has joined #ruby
iceyec has joined #ruby
ryez has quit [Ping timeout: 246 seconds]
Cache_Money has quit [Quit: Cache_Money]
Cache_Money has joined #ruby
bricker has quit [Ping timeout: 244 seconds]
Cache_Money has quit [Client Quit]
bronson has quit [Remote host closed the connection]
decaff has quit [Ping timeout: 240 seconds]
towski_ has quit [Remote host closed the connection]
vdamewood has joined #ruby
mandarinkin has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
Trieste has joined #ruby
nobitanobi has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
chills42 has quit [Remote host closed the connection]
Stratege_ has quit [Ping timeout: 246 seconds]
juanpablo_ has joined #ruby
dimasg has joined #ruby
msgodf has quit [Ping timeout: 256 seconds]
benlovell has joined #ruby
dymk has joined #ruby
<dymk> Are there any good up to date docs on writing native extensions in Ruby 2.x.x?
bigkevmcd has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
Vile` has quit [Remote host closed the connection]
senayar has joined #ruby
juanpablo_ has quit [Ping timeout: 252 seconds]
senayar has quit [Client Quit]
Vile` has joined #ruby
chills42 has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
eminencehc has joined #ruby
icebourg has joined #ruby
mistermocha has joined #ruby
texasmade has quit [Ping timeout: 246 seconds]
Mendenhall has quit [Ping timeout: 240 seconds]
[k- has joined #ruby
rbowlby has joined #ruby
yfeldblum has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
Alangoose has quit [Ping timeout: 255 seconds]
sja_ has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
rbowlby has quit [Remote host closed the connection]
renier has joined #ruby
luckyruby has joined #ruby
<Ox0dea> dymk: Have you found the canonical outline of the API in doc/extension.rdoc to be in some way deficient?
benlovell has joined #ruby
<dymk> Ox0dea, I'll take a look at that :) google hadn't directed me to that doc
Alangoose has joined #ruby
renier has quit [Client Quit]
rbowlby has joined #ruby
<[k-> Ox0dea: ruby -rsocket.so -e 'p hello' worked
icebourg has quit []
<Ox0dea> [k-: Thanks, but what ends up in $LOADED_FEATURES?
<[k-> >_>
<Ox0dea> Hm?
yfeldblum has quit [Ping timeout: 246 seconds]
benlovell has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
<Ox0dea> [k-: Could you please do `ruby -rsocket.so -e 'p $LOADED_FEATURES.grep(/socket/)'`?
workmad3 has joined #ruby
<Ox0dea> Really, I only need to know whether it's got the .dylib extension or .so.
chipotle has quit [Quit: cheerio]
chills42 has quit [Remote host closed the connection]
<[k-> don't have my Mac now :(
<Ox0dea> This guy.
saadq has joined #ruby
<[k-> ask adaedra if you need it fast
<Ox0dea> adaedra: I need it fast.
thiagovsk has joined #ruby
mollymorphic has quit [Remote host closed the connection]
<[k-> he is in UTC+2
hahuang65 has quit [Ping timeout: 252 seconds]
<[k-> let me calculate the possibility of him being awake
<[k-> 4 am there
workmad3 has quit [Ping timeout: 244 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
lemur is now known as baweaver
mandarinkin has joined #ruby
icebourg has joined #ruby
decaff has joined #ruby
* [k- 's Mac slowly boots up
[k-_ has joined #ruby
rubie has joined #ruby
<[k-_> ruby -rsocket.so -e 'p $LOADED_FEATURES.grep(/socket/)'
gaboesquivel has joined #ruby
<[k-_> ["/Users/administrator/.rbenv/versions/2.2.0/lib/ruby/2.2.0/x86_64-darwin14/socket.bundle"]
<[k-_> k bye
[k-_ has quit [Client Quit]
<Ox0dea> Shit. :/
<Ox0dea> Thanks, [k-.
pothibo has joined #ruby
willywos has joined #ruby
Evollov3 has joined #ruby
<Evollov3> help
<Ox0dea> Go for it.
<Evollov3> one sec
djbkd has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
iceyec has quit [Quit: iceyec]
dimasg has quit [Ping timeout: 265 seconds]
iateadonut has joined #ruby
hahuang65 has joined #ruby
<Evollov3> trying to make new app on ruby rails but SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
tubulife- has joined #ruby
<Evollov3> Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
<Evollov3> server certificate B: certificate verify failed (https://rubygems.org/gems/rake-
<Evollov3> 10.4.2.gem)
<Evollov3> An error occurred while installing rake (10.4.2), and Bundler cannot continue.
<Evollov3> Make sure that `gem install rake -v '10.4.2'` succeeds before bundling.
<Evollov3> help
<baweaver> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
bronson has joined #ruby
<baweaver> avoid posting multiline messages
<baweaver> have you tried the make sure line?
yfeldblum has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
psy_ has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 255 seconds]
iceyec has joined #ruby
tubulife- has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
iceyec has quit [Client Quit]
bronson has quit [Ping timeout: 265 seconds]
Evollov3 has left #ruby [#ruby]
tmtwd has joined #ruby
omegamike has joined #ruby
pothibo has quit [Quit: pothibo]
arooni-mobile has quit [Ping timeout: 244 seconds]
symm- has quit [Ping timeout: 264 seconds]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
benlieb has quit [Quit: benlieb]
PhantomSpank has quit [Read error: Connection reset by peer]
juanpablo_ has joined #ruby
psy_ has joined #ruby
<Ox0dea> [k-: Ruby can be used to build websites?!
Guest18025 is now known as bl4ckddu5t
bl4ckddu5t is now known as bl4ckdu5t
michaeldeol has joined #ruby
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
bl4ckdu5t is now known as silverdust
hahuang65 has joined #ruby
noethics has quit [Quit: Leaving]
omegamike has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
juanpablo_ has quit [Ping timeout: 240 seconds]
duncannz has joined #ruby
PhantomSpank has joined #ruby
saadq has quit [Remote host closed the connection]
<[k-> HTML+CSS+Opal+Sinatra maybe?
hahuang65 has quit [Ping timeout: 260 seconds]
t_ has quit [Read error: Connection reset by peer]
<[k-> I think the workshop happened in March
<Rinzlit> [k-
<Rinzlit> [k-
<Rinzlit> message me :D
jottr has quit [Ping timeout: 250 seconds]
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
braincrash has quit [Quit: bye bye]
t_ has joined #ruby
devbug has joined #ruby
railswebdev has joined #ruby
braincrash has joined #ruby
sja_ has quit [Remote host closed the connection]
hahuang65 has joined #ruby
fantazo has joined #ruby
devbug has quit [Remote host closed the connection]
darkf has joined #ruby
devbug has joined #ruby
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
yfeldblum has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
lavros has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
chills42 has joined #ruby
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby
Yzguy has quit [Quit: Cya]
cb__ has joined #ruby
cb__ has joined #ruby
Agoldfish has quit [Quit: G'Bye]
fullofcaffeine has quit [Ping timeout: 260 seconds]
cb_ has quit [Ping timeout: 265 seconds]
gambl0re has quit [Ping timeout: 272 seconds]
serivich has joined #ruby
dopie has joined #ruby
icebourg has quit []
baweaver has quit [Remote host closed the connection]
peteykun has joined #ruby
rubie has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
xkickflip has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
chills42 has quit [Remote host closed the connection]
user1138 has quit [Ping timeout: 255 seconds]
rubie has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
bmurt has quit []
fantazo has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 244 seconds]
houhoulis has joined #ruby
Rollabunna has joined #ruby
bmurt has quit [Ping timeout: 264 seconds]
gix has joined #ruby
chills42 has joined #ruby
kies^ has joined #ruby
hahuang65 has quit [Ping timeout: 244 seconds]
icebourg has joined #ruby
baweaver has quit [Remote host closed the connection]
benlovell has joined #ruby
cb_ has joined #ruby
rbowlby has quit [Remote host closed the connection]
bmurt has joined #ruby
YellowHighlighte has joined #ruby
RegulationD has joined #ruby
cb__ has quit [Ping timeout: 244 seconds]
fumihiro has quit [Quit: leaving]
hahuang65 has joined #ruby
happy_dev has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
jobewan has joined #ruby
cb_ has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 252 seconds]
psy_ has quit [Ping timeout: 240 seconds]
cb_ has joined #ruby
lavros_ has joined #ruby
chills42 has quit [Remote host closed the connection]
fantazo has joined #ruby
lavros has quit [Ping timeout: 240 seconds]
jonee has joined #ruby
konsolebox has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
serivichi has joined #ruby
serivich has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
darkf_ has joined #ruby
darkf has quit [Disconnected by services]
darkf_ is now known as darkf
happy_dev has quit [Remote host closed the connection]
workmad3 has joined #ruby
chills42 has joined #ruby
mistermocha has joined #ruby
hahuang65 has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
peteykun has left #ruby ["Leaving"]
dseitz has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
bmurt has quit []
arup_r has joined #ruby
serivichi has quit [Ping timeout: 244 seconds]
gaboesquivel has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 256 seconds]
gaboesquivel has joined #ruby
yfeldblum has joined #ruby
chills42 has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
serivichi has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
s2013 has joined #ruby
chipotle has quit [Quit: cheerio]
yfeldblum has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
bricker has joined #ruby
webguynow has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
<ght> Question: If I have a begin / while loop, and I use a next in error-handling
chinmay_dd has joined #ruby
<ght> Will the end be evaluated?
<ght> Example: I have begin .... end while i < 5
<ght> If, within the code, I have a begin /rescue on say, a remote API call
<ght> and within the rescue, I use next
<ght> Will using the next evaluate the "end while i < 5", or do I need a supplemental evaluation with break?
tubulife- has joined #ruby
<ght> To ensure loop execution will stop if the while i < 5 evaluation is met?
jackjackdripper has quit [Quit: Leaving.]
hahuang65 has quit [Ping timeout: 260 seconds]
psmolen has joined #ruby
psmolen has quit [Client Quit]
psmolen has joined #ruby
<Ox0dea> ght: Is that two `begin`s, then?
<ght> well, yes, but just an example
<Ox0dea> Could you not attach both the `rescue` and the `while` to the same `begin`?
<ght> My actual situation is this: I have while myvalue != 0 ..... end
<ght> And at the end of the loop I have myvalue += 1
<ght> That's a better example
eggoez has quit [Ping timeout: 246 seconds]
tubulife- has quit [Ping timeout: 244 seconds]
<[k-> you don't really need while loops in Ruby
<ght> and within it I have an API call that I error handle with begin / rescue XMLRPC::FauleException => e
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> what is your actual problem?
<[k-> ?xy
<ruboto> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<ght> My actual problem is as decribed, when error handling, I don't want to break out of the loop, I want it to go to the next iteration, but I'm worried if I call next
<ght> Well, hmm, never mind, I know how to handle this.
<Ox0dea> So many wasted keyboard strokes.
<ght> Disregard, thanks just the same.
<ght> 0x0dea: Well, we all can't be that elite.
eggoez has joined #ruby
<[k-> you can test using irb
<[k-> raise 'Exception'; rescue next etc
<ght> [k-: I'm well aware, just figured I'd ask in her instead of spending 10 minutes recreating this method in Ruby.
<ght> I've got it, all is good.
<ght> Thank you just the same.
kies^ has quit [Ping timeout: 265 seconds]
<[k-> you don't have to recreate the method!
YellowHighlighte has left #ruby ["Leaving"]
<[k-> the gist of your problem is, is code executed after an exception?
<[k-> the answer is no, because next just skips to the next iteration
serivich has joined #ruby
jonee has quit [Ping timeout: 244 seconds]
serivichi has quit [Ping timeout: 240 seconds]
omegamike has joined #ruby
<[k-> what you should actually do is: 5.times { begin (.
<[k-> ..) rescue (...)next end }
<[k-> this will ensure that the code is called 5 times at most
icebourg has quit []
stonith has quit [Ping timeout: 272 seconds]
juanpablo_ has joined #ruby
acke has joined #ruby
omegamike has quit [Ping timeout: 240 seconds]
<ght> Here's a question for you fine people: Does next always step through the current loop in the case of nested loops?
<ght> If you have myarr.each do |arrs|; arrs.each do |arr|; next;
<ght> Will that step through arrs.each ?
<ght> Or the parent my arr.each?
<ght> I assume the former
<[k-> i assume the former as well
<[k-> ?try
<ruboto> Why don't you try it and see for yourself?
<ght> So we don't know, got it.
<ght> I'll build it in irb, thanks just the same.
rbowlby has joined #ruby
<[k-> not all of us know Ruby inside out
juanpablo_ has quit [Ping timeout: 244 seconds]
acke has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eggoez has quit [Ping timeout: 240 seconds]
bricker has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
eggoez has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
rbowlby has quit [Ping timeout: 264 seconds]
mjuszczak has joined #ruby
mary5030 has joined #ruby
kies^ has joined #ruby
fullofcaffeine has joined #ruby
mjuszczak has quit [Client Quit]
texasmade has joined #ruby
rbowlby has joined #ruby
swgillespie has joined #ruby
hahuang65 has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
stonith has joined #ruby
stonith has joined #ruby
riotjones has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
arescorpio has quit [Quit: Leaving.]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 256 seconds]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
serivich has quit [Ping timeout: 244 seconds]
Dildeaux has joined #ruby
jaygen has quit [Read error: Connection reset by peer]
jaygen has joined #ruby
fullofca_ has joined #ruby
hahuang65 has joined #ruby
baweaver has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
sameerynho has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
Dildeaux has quit [K-Lined]
leat2 has quit [Remote host closed the connection]
leat3 has joined #ruby
tejasmanohar has joined #ruby
myztic has quit [Quit: Leaving]
hahuang65 has quit [Ping timeout: 244 seconds]
akkad has quit [Ping timeout: 240 seconds]
shock_one has joined #ruby
mary5030 has quit [Remote host closed the connection]
tejasmanohar has quit [Quit: WeeChat 1.1.1]
mary5030 has joined #ruby
akkad has joined #ruby
tejasmanohar has joined #ruby
tejasmanohar has left #ruby [#ruby]
tejasmanohar has joined #ruby
leat3 has quit [Remote host closed the connection]
leat3 has joined #ruby
ozzloy has quit [Quit: leaving]
ozzloy has joined #ruby
acke has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
PhantomSpank has quit [Remote host closed the connection]
<tejasmanohar> hey
<tejasmanohar> can you subscribe to an rss feed in ruby and parse an item each time it is added to the field?
<tejasmanohar> like in rss, are there events for that you can listen to, or do you jsut have to GET the feed URL every X?
<Ox0dea> Of course.
<tejasmanohar> hmm trying to find that
<Ox0dea> Well, sure, you'll have to poll if the feed source doesn't support WebSockets.
tabakhase has joined #ruby
<tejasmanohar> ah ok gotcha
<tejasmanohar> the feed is probably meant for actual people but i'm using a few feeds programmatically to load data for my app...
acke has quit [Ping timeout: 240 seconds]
<tejasmanohar> do you know how often most RSS clients ping the feed to update the feed of the user?
hahuang65 has joined #ruby
<Ox0dea> That's almost always configurable.
<tejasmanohar> ah
<tabakhase> hmpf, im struggeling in understanding the bare bare basics... ive done a lot of other stuff before, and now want to poke into ruby for a project - but alone the "setup of the structure" eatens hours with buggeling around back and forth to get to a state where i get all gems and can rake and such
<tejasmanohar> i'm just trying to find out what's "too quick" with the interval
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> tejasmanohar: Any reason not to follow SOP and make it configurable?
<tejasmanohar> i don't want to get blocked for fetching the feed too much
<tabakhase> is that usual? or am i just going way to big? -- any recommended starterTuts that are NOT the "hello world" level? - ive done +10years of coding...
<Ox0dea> Ah, you want to fetch as frequently as is permissible, then?
<tejasmanohar> yeah
<tejasmanohar> users of my app won't know it's using the rss feed :P
<tejasmanohar> that's all in the backend
Jarboe has quit []
<tejasmanohar> but i also don't want the rss feed maintainer to be like im getting 1 request per sec from this guy...
<tejasmanohar> on 10 feeds
<Ox0dea> Well, you'll likely have to experiment to figure out the optimal rate.
<tejasmanohar> gotcha
<Ox0dea> You might want to do that from behind a proxy. :)
<tejasmanohar> but once every 10-15 minutes shouldn't be bad i don't think
<tejasmanohar> Ox0dea: yeah probably :P
<Ox0dea> Nah, that's far from excessive.
<tejasmanohar> it's happening in a background job, going to populate database so that's ok
<tejasmanohar> ok great
<[k-> blogs don't update every 15 minutes
<tejasmanohar> [k-: it's not a blog :P
<Ox0dea> [k-: Nevertheless, it's usually nice to know precisely when some watched thing has something new for us. :)
<tejasmanohar> it's deal hunting in a way, but i'd rather not go into great detail
<tejasmanohar> no reason to i guess :P
<tejasmanohar> i'm trying to think what database to use. i build a lot of apps w/ postgresql but this app really just needs a "cache"
<tejasmanohar> there's no data that's going to be stored for a long period of time
hahuang65 has quit [Ping timeout: 252 seconds]
<tejasmanohar> it's all going to be updated every X
<Ox0dea> tejasmanohar: PStore seems a good fit.
amclain has quit [Quit: Leaving]
<tejasmanohar> filesystem directly?
Jackneill has joined #ruby
GriffinHeart has joined #ruby
<tejasmanohar> ehh
<tejasmanohar> redis maybe? Ox0dea
<tejasmanohar> i don't think pstore would work on heroku or any PaaS w/ an ephermal filesystem, no? Ox0dea
<tejasmanohar> not sure where i'm deploying it rn
<tejasmanohar> i like heroku for a lot
<tejasmanohar> don't wanna limit msyelf really, looking into some databases
<Ox0dea> I forgot how ephemeral /tmp is on Heroku's free tier, but it might do.
jenrzzz has joined #ruby
<Ox0dea> s/forgot/forget/, to clarify.
<tejasmanohar> Ox0dea: you'll lose it after an app restart :P
<tejasmanohar> or a deploy
<tejasmanohar> anything
<tejasmanohar> and there's no guaruntee
<Ox0dea> Aye, you'll want a database, then.
<tejasmanohar> it's ok if it's a quick place to store a file and uplaod it etc (though just streaming the upload is best)
<tejasmanohar> yeah
<Ox0dea> Heroku integrates with PG very well, as I recall.
<tejasmanohar> i'd rather just use one from the start, i never like limiting things by infra etc
<tejasmanohar> yeah
<tejasmanohar> and redis
<tejasmanohar> heroku has PG + redis hosted :)
<Ox0dea> Seems you're good to go. :)
<tejasmanohar> i mean that's not a problem honestly like i can host whatever database wherever and connect it no big deal
<tejasmanohar> do you think redis would be suitable for what i'm describing?
fullofca_ has quit [Remote host closed the connection]
<tejasmanohar> i guesss i didn't explain what kinda data i'm storing for those < 1h periods...
fullofcaffeine has joined #ruby
<Ox0dea> Indeed you didn't.
fullofcaffeine has quit [Remote host closed the connection]
<tejasmanohar> flights by location
<tejasmanohar> maybe hotels too
<Ox0dea> In any case, redis is sufficiently general-purpose that the structure of your data shouldn't be much of a factor.
tvw has joined #ruby
<tejasmanohar> ah
<tejasmanohar> yeah it has many data structs from what i looked
<tejasmanohar> so i guess i wouldn't need pg, redis should be enough
<tejasmanohar> Ox0dea: redis is disk persistent so its safe, right? i don't need to write to postgres and then a redis cache or anything like that?
<Ox0dea> Bonus points if you manage to effectively use a HyperLogLog. ^_^
<tejasmanohar> reading about what that is :P Ox0dea
<Ox0dea> tejasmanohar: That's configurable; you'll have to look into how Heroku does it by default.
<Ox0dea> It's rather easy to imagine that they do the sensible thing, though.
<tejasmanohar> gotcha
<tejasmanohar> i'll look just to make sure :P
<tejasmanohar> btu i don't think that's a big deal, there are many hosted redis providers on AWS like heroku is
<tejasmanohar> so latency etc isn't an issue either
<tejasmanohar> and i can host it myself too if i want
safeforge has joined #ruby
texasmade has quit [Ping timeout: 244 seconds]
riotjones has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
sevenseacat has joined #ruby
jonee has joined #ruby
<tejasmanohar> Ox0dea: do people ever use redis as primary store w/ rails?
jenrzzz has joined #ruby
Jaood has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
allomov has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
Jaood has quit [Remote host closed the connection]
fantazo has quit [Quit: Verlassend]
<Ox0dea> tejasmanohar: I'm sure somebody somewhere does, but that's pretty unorthodox.
markholmes has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
<Ox0dea> Why oppose a bona fide database, if you don't mind my asking?
tmtwd has quit [Read error: Connection reset by peer]
busterarm has joined #ruby
hahuang65 has joined #ruby
jenrzzz has joined #ruby
mistermocha has joined #ruby
tubulife- has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
rubie has joined #ruby
rippa has joined #ruby
mistermocha has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
<tejasmanohar> Ox0dea: unsure, im updating the data every 15 mins ish
<tejasmanohar> so its basically a cache, no
<tejasmanohar> ?
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
tubulife- has quit [Ping timeout: 240 seconds]
avahey has quit [Quit: Connection closed for inactivity]
<Ox0dea> tejasmanohar: Old data is completely useless, then?
rubie has quit [Ping timeout: 265 seconds]
jack_rabbit has joined #ruby
<Ox0dea> You won't need to perform queries on or make comparisons between the old and new data?
chinmay_dd has quit [Quit: See ya!]
mistermocha has quit [Ping timeout: 250 seconds]
ta has joined #ruby
havenwood has joined #ruby
railswebdev has joined #ruby
_ht has joined #ruby
hololeap has joined #ruby
<tejasmanohar> Ox0dea: fair enough, good point
<tejasmanohar> historical data
<tejasmanohar> ok i'll use postgresql and cache my own API calls in redis later because users make repeat cals a lot :P
decaff has quit [Quit: Leaving...]
<tejasmanohar> eh can use cache-cotnrol as well but yeha
<tejasmanohar> *excuse my typos
<tejasmanohar> thanks
juanpablo_ has joined #ruby
safeforge has quit [Remote host closed the connection]
<Ox0dea> tejasmanohar: Yep, that seems the sanest approach.
<tejasmanohar> :)
<hololeap> just fishing for opinions, what is the best gui library for ruby?
<Ox0dea> hololeap: JavaScript.
<busterarm> :D
djbkd_ has joined #ruby
<busterarm> there's always ncurses!
shinnya has quit [Ping timeout: 265 seconds]
safeforge has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
howdoi_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
lanemeyer has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<shevy> the curses
<[k-> [x] shevy
<shevy> yay click me
<busterarm> click you?
j4cknewt has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<Ox0dea> Dirty mouse users!
GnuYawk has joined #ruby
GnuYawk has joined #ruby
<Ox0dea> hololeap: I should perhaps clarify that I was not being facetious.
<[k-> filthy*
<Ox0dea> [k-: I was trying not to be wholly impolite.
<Ox0dea> "Filthy" connotes a little ruder than "dirty", as I see it.
<[k-> lies!
<Ox0dea> Deceptions!
<Ox0dea> Circumlocutionary tactics!
<hololeap> Ox0dea: you really meant that javascript is your gui favorite library for ruby? :p
<hololeap> *favorite gui library
<Ox0dea> hololeap: Well, you asked about "the best", not anybody's preference.
CloCkWeRX has joined #ruby
<Ox0dea> We are flawed creatures, so the two needn't be mutually inclusive.
hahuang65 has quit [Ping timeout: 256 seconds]
<Ox0dea> If you've really considered the thing and concluded that you want to build a native GUI in Ruby, I'd advise consulting shevy on the matter; he seems to have gotten into that as of late.
ryez has joined #ruby
<hololeap> Ox0dea: i meant gtk, qt, wxwidgets, tcl-tk
<Ox0dea> hololeap: I know.
DexterLB has quit [Read error: Connection reset by peer]
<busterarm> javascript is probably the sanest choice just for portability reasons, I imagine
<[k-> shevy is using gtk I think
mary5030 has joined #ruby
CloCkWeRX has left #ruby [#ruby]
jobewan has quit [Ping timeout: 255 seconds]
jonee has quit [Ping timeout: 260 seconds]
<hololeap> ruby-gtk3 is what i'll probably be going with. i just wanted to see what other people had to say
DexterLB has joined #ruby
<Ox0dea> As I understand it, none of the GUI bindings for Ruby makes any considerable effort to hide the fact that they're wrappers around some underlying C(++) libraries.
lanemeyer has joined #ruby
<hololeap> Ox0dea: yeah, there is some truth to that. i guess i just feel that i'm most comfortable with ruby and would prefer to use it instead of another language
<Ox0dea> hololeap: Have you considered Opal, then?
<hololeap> Ox0dea: never heard of it
<Ox0dea> The myriad benefits of JavaScript + the syntax and (most of the) semantics of Ruby.
mary5030 has quit [Ping timeout: 264 seconds]
<shevy> yeah I am a gtkster
<shevy> hololeap my gtk brother!
<hololeap> shevy: :)
<hololeap> i might just reacquaint myself with javafx. i like that framework, actually
<hololeap> ugh, but then again, it is java
<shevy> ruby-gnome are the only ruby-GUI bindings that have an extensive wiki http://ruby-gnome2.osdn.jp/hiki.cgi
<ght> Question: I've been researching this to no working avail, is there a method for "sourcing" bash files that set environment variables within a ruby script?
devbug has quit [Read error: Connection reset by peer]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hololeap> shevy: i walked myself through that once before. i wonder if there's much of a difference between ruby-gtk2 and ruby-gtk3
<ght> Without having to make a parent bash file that sources the files to set the envvars, then call the ruby script?
<shevy> ght not really but all environment variables are stored in ENV, which you can update
<ght> yes, that's true.
<ght> Hmm.
shock_one has quit [Remote host closed the connection]
<busterarm> opal-native? :D
<busterarm> to 0x0dea i mean
<Ox0dea> busterarm: The worst of both worlds. ^_^
<Ox0dea> JavaScript really is the mouth with which software is eating the world.
jonee has joined #ruby
* Ox0dea knows his intuition that it would be trivial to add user-defined read-only variables to Ruby is ill-placed.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
Kilo`byte has quit [Ping timeout: 240 seconds]
vdamewood has quit [Ping timeout: 272 seconds]
leat3 has quit [Remote host closed the connection]
leat3 has joined #ruby
rbowlby has quit [Remote host closed the connection]
jaygen has quit []
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Kilo`byte has joined #ruby
hahuang65 has quit [Ping timeout: 244 seconds]
eminencehc has joined #ruby
antlong has quit [Quit: Textual IRC Client: www.textualapp.com]
GriffinHeart has joined #ruby
psy_ has joined #ruby
eminencehc has quit [Ping timeout: 265 seconds]
GriffinHeart has quit [Ping timeout: 246 seconds]
sinkensabe has joined #ruby
Houshalter has joined #ruby
jenrzzz has joined #ruby
hahuang65 has joined #ruby
Houshalter has left #ruby ["Leaving"]
mistermocha has joined #ruby
chinmay_dd has joined #ruby
djbkd_ has quit [Remote host closed the connection]
<tejasmanohar> Ox0dea: maybe you know this one? i asked in #ror but didnt get much feedback so moving here its more generic anyways not just rails
<tejasmanohar> a) if i have a job that needs to run every X minutes/hours, seems that `whenever` or `clockwork` would be ideal?
<tejasmanohar> b) what if i have an array of items and i want to run X on item 1 and then give an Y minute gap and then run X on item 2 etc etc looping thru it
jenrzzz_ has joined #ruby
<tejasmanohar> the breaks are due to rate-limits, should i just run one process that does that or setup job queues w/ sidekiq, resque, delayedjob, etc.? and how do i decide?
<tejasmanohar> many solutions out there for job scheduling
mistermocha has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
brendan- has quit [Read error: Connection reset by peer]
nertzy has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
sross07 has joined #ruby
nertzy has joined #ruby
brendan- has joined #ruby
MVPhelp has quit [Remote host closed the connection]
<Ox0dea> tejasmanohar: The truly *ideal* solution to a) would be cron; I've never bothered to emulate it from Ruby, so you'll have to test-drive those offerings if cron isn't an option.
A124 has quit [Ping timeout: 264 seconds]
peteykun has joined #ruby
MVPhelp has joined #ruby
yebyen has quit [Ping timeout: 252 seconds]
sross_work|2 has quit [Ping timeout: 250 seconds]
cescalante has quit [Ping timeout: 244 seconds]
peteykun is now known as peteykun_iisc
ajaiswal has quit [Ping timeout: 244 seconds]
<Ox0dea> You could probably get away with basic Threads and `sleep` if $thing is simple enough. If not, you'll find sidekiq integrates rather nicely with redis, if that's still the path you intend to take.
jenrzzz_ has quit [Ping timeout: 260 seconds]
cescalante has joined #ruby
A124 has joined #ruby
<sevenseacat> sidekiq also has a scheduling addon called sidetiq
<sevenseacat> which may help you
mikecmpbll has joined #ruby
<Ox0dea> Nice.
ajaiswal has joined #ruby
<Ox0dea> sevenseacat: Vacation over so soon?
yebyen has joined #ruby
<sevenseacat> yeah.
PhantomSpank has quit [Ping timeout: 255 seconds]
yebyen is now known as Guest11957
sinkensabe has quit [Remote host closed the connection]
riffraff has joined #ruby
sinkensabe has joined #ruby
jonee has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
modern has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
modern has joined #ruby
markholmes has quit [Quit: So it goes.]
Igorshp has joined #ruby
riffraff has quit [Quit: Leaving]
RegulationD has joined #ruby
user1138 has joined #ruby
leat3 has quit [Remote host closed the connection]
leat3 has joined #ruby
acke has joined #ruby
Igorshp has quit [Ping timeout: 246 seconds]
busterarm is now known as WilliamPhone_
WilliamPhone_ is now known as busterarm
hahuang65 has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
acke has quit [Ping timeout: 256 seconds]
busterarm has quit [Read error: Connection reset by peer]
eGGsha has joined #ruby
busterarm has joined #ruby
busterarm has quit [Client Quit]
Averna has joined #ruby
busterarm has joined #ruby
luckyruby has quit [Quit: Leaving...]
MatthewsFace has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
Mendenhall has joined #ruby
sinkensabe has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
busterarm has quit [Client Quit]
fantazo has joined #ruby
Ilyas has joined #ruby
tubulife- has joined #ruby
busterarm has joined #ruby
radgeRayden has quit [Ping timeout: 265 seconds]
GriffinHeart has quit [Ping timeout: 240 seconds]
busterarm has quit [Client Quit]
dented42 has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
tubulife- has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
busterarm has joined #ruby
bruno- has joined #ruby
omegamike has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ljarvis> moin
hahuang65 has quit [Ping timeout: 255 seconds]
bruno- has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
juanpablo_ has joined #ruby
omegamike has quit [Ping timeout: 252 seconds]
Rollabun_ has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
lessless has joined #ruby
juanpablo_ has quit [Ping timeout: 272 seconds]
atmosx has quit [Quit: WeeChat 0.4.4-dev]
Rollabunna has quit [Ping timeout: 244 seconds]
atmosx has joined #ruby
<atmosx> hello
dfockler has joined #ruby
myztic has joined #ruby
hahuang65 has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
mistermocha has joined #ruby
dfockler has quit [Ping timeout: 264 seconds]
lkba_ has quit [Ping timeout: 244 seconds]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
joelataylor has quit [Quit: Be back later ...]
atmosx has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
chinmay_dd has quit [Ping timeout: 240 seconds]
roolo has joined #ruby
elia has joined #ruby
TheHodge has joined #ruby
bradleyprice has quit [Remote host closed the connection]
eGGsha has joined #ruby
houhoulis has quit [Remote host closed the connection]
eGGsha is now known as eGGshke
elia has quit [Client Quit]
eGGshke is now known as eGGsha
shinnya has joined #ruby
timonv has joined #ruby
busterarm has quit [Quit: WeeChat 1.1.1]
channellier has joined #ruby
marr has joined #ruby
sameerynho is now known as Cyborg-Franky
troulouliou_dev has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
The_Phoenix has joined #ruby
busterarm has joined #ruby
Cyborg-Franky is now known as lxsameer
lxsameer has quit [Changing host]
lxsameer has joined #ruby
krz has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Remote host closed the connection]
busterarm has quit [Client Quit]
busterarm has joined #ruby
hahuang65 has joined #ruby
The_Phoenix1 has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
cornerma1 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 244 seconds]
dopie has quit [Quit: This computer has gone to sleep]
ndrei has joined #ruby
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
atmosx has joined #ruby
hahuang65 has joined #ruby
MatrixBridge2 has quit [Remote host closed the connection]
MatrixBridge1 has quit [Remote host closed the connection]
thiagovsk has quit [Quit: Connection closed for inactivity]
DLSteve has joined #ruby
MatrixBridge has joined #ruby
banister has joined #ruby
lkba has joined #ruby
apfeluser has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
railswebdev has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
texasmade has joined #ruby
nyuszika7h has left #ruby ["WeeChat 1.3-dev"]
hahuang65 has joined #ruby
krz has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Ping timeout: 250 seconds]
j4cknewt has quit [Remote host closed the connection]
workmad3 has joined #ruby
joelataylor has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
nsuke has joined #ruby
mistermocha has joined #ruby
Brainling is now known as Brainling|Sleep
robbyoconnor has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
joelataylor has quit [Ping timeout: 244 seconds]
user1138 has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 244 seconds]
user1138 has joined #ruby
stamina has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
Mendenhall has quit [Ping timeout: 244 seconds]
sogard has joined #ruby
myztic has quit [Ping timeout: 252 seconds]
sogard has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
tubulife- has joined #ruby
rubie has joined #ruby
FernandoBasso has joined #ruby
lkba_ has joined #ruby
kies^ has quit [Ping timeout: 272 seconds]
channellier has quit [Ping timeout: 246 seconds]
tubulife- has quit [Ping timeout: 265 seconds]
rubie has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 250 seconds]
carpot has joined #ruby
shock_one has joined #ruby
omegamike has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
juanpablo_ has joined #ruby
omegamike has quit [Ping timeout: 244 seconds]
Ilyas has quit [Read error: Connection reset by peer]
juanpablo_ has quit [Ping timeout: 246 seconds]
jonee has joined #ruby
Hobogrammer_ has joined #ruby
rbowlby has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
serivich has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
michael_mbp has quit [Excess Flood]
jonee has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
rbowlby has quit [Ping timeout: 272 seconds]
vdamewood has joined #ruby
ledestin has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
tvw has quit []
sdothum has joined #ruby
carpot has quit [Quit: Page closed]
vickleton has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
linuxboytoo has joined #ruby
hahuang65 has joined #ruby
The_Phoenix1 has quit [Quit: Leaving.]
acke has joined #ruby
joelataylor has joined #ruby
acke has quit [Remote host closed the connection]
Igorshp has joined #ruby
acke has joined #ruby
Trynemjoel has quit [Ping timeout: 240 seconds]
linuxboytoo has quit [Ping timeout: 244 seconds]
jonee has joined #ruby
ddarkpassenger has joined #ruby
eGGsha is now known as eGGshke
Trynemjoel has joined #ruby
eGGshke is now known as eGGsha
eGGsha is now known as eGGshke
acke has quit [Remote host closed the connection]
mistermocha has joined #ruby
Igorshp has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 246 seconds]
eGGshke is now known as eGGsha
Outlastsheep is now known as zz_Outlastsheep
SCHAAP137 has quit [Remote host closed the connection]
dorei has joined #ruby
DEA7TH has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
jonee has quit [Ping timeout: 246 seconds]
pandaant has joined #ruby
hahuang65 has joined #ruby
despai has joined #ruby
yfeldblu_ has quit [Ping timeout: 244 seconds]
phutchins has joined #ruby
ht__ has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sepp2k1 has joined #ruby
Trynemjoel has joined #ruby
<flughafen> oi oi oi
<flughafen> shevy: ;)
sepp2k has quit [Ping timeout: 264 seconds]
shock_one has quit [Remote host closed the connection]
jonee has joined #ruby
mandarinkin has quit [Ping timeout: 250 seconds]
Trynemjoel has quit [Ping timeout: 240 seconds]
radgeRayden has joined #ruby
jonee has quit [Ping timeout: 255 seconds]
Trynemjoel has joined #ruby
arup_r has joined #ruby
jack_rabbit has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
CloCkWeRX has joined #ruby
radgeRayden has quit [Ping timeout: 246 seconds]
texasmade has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Ping timeout: 246 seconds]
sanguisdex has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
Xeago has joined #ruby
marr has quit [Read error: Connection reset by peer]
nofxx has quit [Ping timeout: 244 seconds]
mandarinkin has joined #ruby
sdothum has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omegamike has joined #ruby
jonee has joined #ruby
workmad3 has joined #ruby
kirun has joined #ruby
<iateadonut> i'm trying to create a function, that queries a different model depending on a variable.
<iateadonut> so, def getoords(id, type)
safeforge has quit [Remote host closed the connection]
<iateadonut> customer = type.find(id) - type is the model, and can be 'Customers' or 'Dealers'
<[k-> And?
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonee has quit [Ping timeout: 255 seconds]
omegamike has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
despai has quit [Quit: This computer has gone to sleep]
Soda has joined #ruby
busterarm has quit [Ping timeout: 244 seconds]
<apeiros> iateadonut: getoords(5, Customer) # this will already work
<apeiros> because `type = Customer; type.find(5)` works just fine. classes are objects. objects can be assigned to variables.
despai has joined #ruby
sarkyniin has joined #ruby
stamina has quit [Quit: WeeChat 1.2]
sanguisdex has joined #ruby
<iateadonut> i had to do: type.constantize.find(id)
<iateadonut> let me see...
<iateadonut> from the console is there a way i can reload the application (in order to keep my command line history) or do i have to exit and restart the console?
allomov has quit [Remote host closed the connection]
<iateadonut> (you're right. worked just fine.) my second question is can i have the word 'model' as a function argument?
<iateadonut> lke def getCoords(id, model) - or is model a reserved word?
<jhass> no it's not reserved
ddarkpassenger has joined #ruby
<jhass> btw getCoords is how you would name the method in Java
<jhass> this isn't Java
<[k-> this shouldn't be java
hahuang65 has joined #ruby
<iateadonut> i'm not getting you. what should i do instead?
<jhass> so name it coords or find_coords or something
<iateadonut> oh
FernandoBasso has quit [Quit: May the force be with you.]
<apeiros> iateadonut: if you had to do .constantize, then it means you did NOT pass in Customer, but "Customer"
<[k-> better yet, just find
<iateadonut> you mean no camel case?
ddarkpassenger has quit [Client Quit]
<iateadonut> apeiros, you are right. thanks.
<apeiros> those two are NOT the same. one is a class, the other a string.
<jhass> yes, no camelCase, but snake_case
<jhass> and no get_ prefixes
<apeiros> and no set_
<jhass> and instead of set_ prefixes use foo=
<apeiros> and mostly no is_ or has_
<jhass> instead of is_ use foo?
<apeiros> setFoo, getFoo, isFoo -> foo=, foo, foo?
arpe has joined #ruby
shock_one has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
symm- has joined #ruby
arpe has quit [Client Quit]
<iateadonut> from the irb shell is there a way i can reload the application or do i have to exit and restart the console when i make a change?
<apeiros> iateadonut: rails?
<iateadonut> rails, yes.
<apeiros> reload!
<apeiros> ?rails iateadonut
<ruboto> iateadonut, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<apeiros> also this ^ ;-)
hahuang65 has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
<iateadonut> ok. in my method, i'm going to use a couple of different values for variables depending on the value of 'type' that is first entered. do i just do if elseif here?
<iateadonut> also, since 'type' is a model, what would the operand look like to compare if the variable 'type' == Customers.instance_of()?
araujo has quit [Quit: Leaving]
tno has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
tubulife- has joined #ruby
mistermocha has joined #ruby
<apeiros> ?crosspost iateadonut
<ruboto> iateadonut, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
joonty has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
kiddorails has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atmosx has quit [Quit: Lost in trance]
<iateadonut> i didn't crosspost. i only asked the ruby question after you said to ask it there.
bronson has joined #ruby
tubulife- has quit [Ping timeout: 264 seconds]
joonty has quit [Ping timeout: 252 seconds]
sarkyniin has quit [Read error: No route to host]
mistermocha has quit [Ping timeout: 244 seconds]
sarkyniin has joined #ruby
<iateadonut> jhass, thanks, i didn't see that before.
<iateadonut> apeiros, thanks.
bronson has quit [Ping timeout: 246 seconds]
ledestin has joined #ruby
tno has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
busterarm has joined #ruby
ledestin has quit [Client Quit]
ndrei has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
juanpablo_ has joined #ruby
Igorshp has joined #ruby
Averna has quit [Ping timeout: 256 seconds]
iamninja has quit [Ping timeout: 256 seconds]
eGGsha is now known as eGGshke
hahuang65 has quit [Ping timeout: 244 seconds]
user1138 has joined #ruby
juanpablo_ has quit [Ping timeout: 272 seconds]
Igorshp has quit [Ping timeout: 240 seconds]
ddarkpassenger has joined #ruby
ruby-lang060 has joined #ruby
<ruby-lang060> hii
<ruby-lang060> how to expire url using FOG::Storage?
<iateadonut> to rephrase, is it better to make my argument a string, and then assign my model and other variables based on the string, or should i check if var == Model.instance_of()? and what is the correct way to write Model.instance_of()?
mary5030 has joined #ruby
<ruby-lang060> how to expire public_url to abort download from aws3 using FOG::storage
<ruby-lang060> ?
safeforge has joined #ruby
<[k-> people generally use is_a?
<[k-> kind_of? is more restrictive than is_a?
<ruby-lang060> any one can help me out?
<apeiros> [k-: kind_of? is an alias of is_a?
kiddorails has quit [Read error: Connection reset by peer]
<apeiros> instance_of? is the one which is more restrictive
<[k-> ooooo
<[k-> sorry got messed up
hanmac has quit [Remote host closed the connection]
<ruby-lang060> ??
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
<ruby-lang060> how to expire public_url to abort download from aws3 using FOG::storage ?
<apeiros> ruby-lang060: if nobody knew an answer 5min ago, nobody will know now. it's no use to repeat your question every 5 minutes.
<ruby-lang060> ok
Ilyas has joined #ruby
mary5030 has quit [Remote host closed the connection]
Rollabun_ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
hahuang65 has joined #ruby
ndrei has joined #ruby
antlong has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eGGshke is now known as eGGsha
hahuang65 has quit [Ping timeout: 244 seconds]
khebbie has joined #ruby
khebbie_ has joined #ruby
bizportal has joined #ruby
banister has joined #ruby
shock_one has quit [Remote host closed the connection]
Rollabunna has joined #ruby
iceyec has joined #ruby
gheegh has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
Ilyas has joined #ruby
jottr has joined #ruby
imfilp has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
ht__ has quit [Quit: Konversation terminated!]
bruno- has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DEA7TH has quit [Quit: DEA7TH]
banister has joined #ruby
jottr_ has joined #ruby
yeticry has quit [Ping timeout: 265 seconds]
jonee has joined #ruby
yeticry has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
hanmac has joined #ruby
iceyec has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
iceyec has joined #ruby
khebbie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
mistermocha has joined #ruby
nalley has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
zuQe8 has joined #ruby
bruno- has joined #ruby
hahuang65 has joined #ruby
philn_ has quit [Remote host closed the connection]
krz has joined #ruby
ryez has quit [Ping timeout: 246 seconds]
iceyec has quit [Quit: iceyec]
Xeago has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 260 seconds]
khebbie has joined #ruby
khebbie_ has joined #ruby
<iateadonut> how do i use a variable within a method name?
<iateadonut> e.g. model.{var}_id = customer.id
<jhass> to call or to define it?
<iateadonut> where var = 'customer' or 'dealership'
<jhass> model.public_send("#{var}_id=", customer.id), but in AR just model["#{var}_id"] = customer.id
<iateadonut> AR?
<jhass> activerecord
<iateadonut> thanks.
jottr_ has joined #ruby
<iateadonut> thanks so much. i'm very new to ruby and you probably just saved me 10 or 20 minutes.
lxsameer has quit [Remote host closed the connection]
<jhass> well, I expect "variable in method name ruby"'s first google result to be some stackoverflow thread explaining it, so more like 2-3
rubie has joined #ruby
<iateadonut> point taken.
<sevenseacat> you wouldnt typically set the ID like that
<sevenseacat> you would just set the record, eg. model.send("#{var}=", customer)
<jhass> yeah, btw sounds like you're reimplementing a polymorphic association there
<sevenseacat> indeed
<sevenseacat> its not a common thing to do
<[k-> we should not teach him about send!
<sevenseacat> I also really really question starting with a rails app if you're brand new to ruby, but thats an entirely different kettle of fish
lannonbr has joined #ruby
<iateadonut> i don't think it's a polymorphic association. it's a method that grabs addresses from a customer table, finds the coordinates and puts it into a coordinates table.
<iateadonut> but i want it to work for two sets of two tables.
<iateadonut> also, i'm quite familiar with laravel, which seems to have grabbed all it's concepts from ruby.
tonsils has joined #ruby
<iateadonut> eloquent having a very similar structure to activerecord, etc.
<jhass> s/ruby/rails/ you mean I guess
<iateadonut> s/it's/its
<iateadonut> yes, that too
rubie has quit [Ping timeout: 265 seconds]
leat3 has quit [Ping timeout: 240 seconds]
<sevenseacat> so what does customer or dealership have to do with anything then
<iateadonut> is this room logged?
<jhass> yes
<jhass> see /topic
lkba has joined #ruby
<iateadonut> some records are stored in customer and some in dealership, but they have very similar structures.
lkba_ has quit [Read error: Connection reset by peer]
<jhass> so you have Coordinates or whatever that either belongs to Customer or belongs to Dealership
Alina-malina has joined #ruby
DaniG2k has joined #ruby
<jhass> sounds pretty polymorphic to me
<iateadonut> right.
Ilyas has quit [Read error: Connection reset by peer]
<iateadonut> ok. i thought polymorphic was when customers belongs_to dealers.
pandaant has quit [Remote host closed the connection]
<busterarm> I question people who start Rails apps without understanding how databases work, but it happens a lot
decoponio has joined #ruby
krz has quit [Ping timeout: 252 seconds]
* iateadonut tries not to get defensive
freerobby has quit [Quit: Leaving.]
<busterarm> and I say that having done that myself, not really grasping MVC and then going off and learning SQL, reading ActiveRecord's source and then jumping into Rails again
tonsils has quit [Ping timeout: 246 seconds]
krz has joined #ruby
omegamike has joined #ruby
freerobby has joined #ruby
<pontiki> one of Rails's key selling points has long been you don't have to worry about the database, though, so it shouldn't really be that surprising
workmad3 has joined #ruby
<busterarm> yeah but 'not having to worry about it' isn't the same thing as 'not knowing what it is'
<pontiki> it's a pretty close statement
<pontiki> i'm not defending it
<busterarm> fair point
<iateadonut> i know sql very well, so i can certainly be taught how i'm supposed to code the models.
<iateadonut> i have two tables (that i can't change): dealerships and customers
<iateadonut> i made two more: coordinates and coor_dealers
<busterarm> i wasn't saying you don't
<adaedra> hello
<adaedra> [k-, Ox0dea
<busterarm> was just lazily following sevenseacat's comment
<iateadonut> (i mean to say, what you are saying will not fall on deaf ears; thanks for helping me)
<adaedra> yes I sleep at 4am
safeforge has quit [Remote host closed the connection]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> hello adaedra :>
<adaedra> hi
allcentury has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
mikecmpb_ has joined #ruby
GooseAlan has joined #ruby
sarkyniin has quit [Ping timeout: 250 seconds]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie_ has quit [Remote host closed the connection]
omegamike has quit [Ping timeout: 246 seconds]
linuxboytoo has joined #ruby
bustrarm has joined #ruby
cb__ has joined #ruby
cb__ has quit [Changing host]
cb__ has joined #ruby
durazno has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
DaniG2k has quit [Quit: leaving]
PhantomS_ has joined #ruby
freerobby has quit [Quit: Leaving.]
PhantomSpank has quit [Read error: Connection reset by peer]
Kalov has quit [Ping timeout: 240 seconds]
pipework has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
Alangoose has quit [Ping timeout: 240 seconds]
silverdust has quit [Ping timeout: 240 seconds]
silverdust has joined #ruby
busterarm has quit [Ping timeout: 240 seconds]
cb_ has quit [Ping timeout: 240 seconds]
alem0lars has quit [Ping timeout: 240 seconds]
pipework has joined #ruby
silverdust is now known as Guest66777
hahuang65 has joined #ruby
Hiro` has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
alem0lars has joined #ruby
bizportal has quit []
freerobby has joined #ruby
iamse7en has joined #ruby
hj2007 has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
<Hiro`> Hey guys, I'm not too familiar with Ruby, but I've written a method that contains a bunch of local variables, some loops, and a helper method that handles error checking. In the error-checking method I would like to examine some of the local variables, but IRB throws NameErrors, saying that they are not defined. Is there a way to do this in Ruby?
<apeiros> ?guys Hiro`
<ruboto> Hiro`, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<jhass> Hiro`: local variables are, well, local. You have to pass them explicitly to widen their scope
<apeiros> Hiro`: how do you run the code in irb? also, please put your gist and session on gist.github.com
CloCkWeRX has left #ruby [#ruby]
Trynemjoel has joined #ruby
banister has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
howdoi_ has quit [Quit: Connection closed for inactivity]
freerobby has quit [Quit: Leaving.]
shock_one has joined #ruby
mary5030 has joined #ruby
WillAmes has quit [Remote host closed the connection]
DaniG2k has joined #ruby
WillAmes has joined #ruby
juanpablo_ has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
bradleyprice has joined #ruby
victortyau has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
tubulife- has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
<Hiro`> In Python I can refer to local variables that are in the closure of function definitions. Is there no way to do the same in Ruby?
juanpablo_ has quit [Ping timeout: 244 seconds]
<jhass> regular method definitions do not closure
<jhass> maybe you want to make a class?
<jhass> sounds like your method is too big anyway
zuQe8 has quit [Quit: Leaving]
jottr has joined #ruby
tubulife- has quit [Ping timeout: 244 seconds]
<Hiro`> apeiros: "guys" is often used colloqially to mean people people of either sex -- at least where I'm from. I'm sorry if you were offended by it.
Xeago has joined #ruby
<apeiros> ?guys2 Hiro`
<ruboto> Hiro`, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
FernandoBasso has joined #ruby
sankaber has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
<apeiros> I'm not offended by it. The point is that you're essentially not-greeting (potentially) half of the channel.
<Hiro`> I don't want to discuss it at all, I was simply apologising.
<apeiros> and I simply try to make this channel welcome for not just guys.
sarkyniin has joined #ruby
<Hiro`> Also, I'm *potentially* not greeting the *entire* channel, if you think I'm deliberately excluding women from my greeting.
<apeiros> true.
* bustrarm takes a sip of his drink
bradleyprice has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 252 seconds]
<Hiro`> And describing "guys" as "erasure" is, frankly, compeletly idiotic. I think I'll take my newly discovered sexism somewhere else.
Hiro` has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<apeiros> fascinating how it's only guys who ever say that… good bye.
hahuang65 has joined #ruby
sankaber has quit [Ping timeout: 272 seconds]
<pontiki> therein lies the conundrum
<apeiros> I think it's pretty obvious. it's easy to shrug off that kind of thing if you're never the target.
<pontiki> quite so
railswebdev has joined #ruby
eGGsha is now known as eGGshke
jonee has quit [Ping timeout: 272 seconds]
ged__ has joined #ruby
peteykun_iisc has quit [Quit: Leaving]
ged_ has quit [Ping timeout: 250 seconds]
<DLSteve> what is "erasure", all Google brings up is a band.
stonith has quit [Ping timeout: 255 seconds]
stonith has joined #ruby
<bustrarm> check out Always
<bustrarm> that song rules
<[k-> search define erasure
hahuang65 has quit [Ping timeout: 264 seconds]
<bustrarm> erasure is the reason why that band is called erasure
eGGshke is now known as eGGsha
bustrarm is now known as busterarm
<DLSteve> so "the removal of writing, recorded material, or data."?
<DLSteve> busterarm, Oh, it's the robot Unicorn song lol
<busterarm> yes
<busterarm> that game rules too
mistermocha has joined #ruby
dfockler has joined #ruby
Trynemjoel has quit [Ping timeout: 240 seconds]
ruby-lang175 has joined #ruby
ruby-lang175 has quit [Client Quit]
bmurt has joined #ruby
tkuchiki has joined #ruby
iamninja has joined #ruby
Trynemjoel has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
dfockler has quit [Ping timeout: 250 seconds]
jonee has joined #ruby
iamninja has quit [Ping timeout: 240 seconds]
noethics has joined #ruby
montyboy_ has quit [Quit: leaving]
rubie has joined #ruby
[k- has quit [Read error: No route to host]
[k- has joined #ruby
<DaniG2k> does anyone know how to save to activerecord from a ruby gem?
<DaniG2k> via a rake task
<DaniG2k> I've written down some of my code in this question: http://stackoverflow.com/questions/31624602/create-an-inverted-index-from-an-unknown-model
shock_one has quit [Ping timeout: 244 seconds]
hj2007 has quit [Quit: This computer has gone to sleep]
jbw has quit [Ping timeout: 240 seconds]
bmurt has quit []
eGGsha is now known as eGGshke
hj2007 has joined #ruby
haxrbyte has joined #ruby
jbw has joined #ruby
leat3 has joined #ruby
Vile` has quit [Ping timeout: 246 seconds]
rubie has quit [Ping timeout: 265 seconds]
jonee has quit [Ping timeout: 240 seconds]
leafybasil has quit [Remote host closed the connection]
[k- has quit [Read error: No route to host]
[k- has joined #ruby
Xeago has quit [Remote host closed the connection]
hahuang65 has joined #ruby
jbw has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
jbw has joined #ruby
<pontiki> DaniG2k: i probably don't understand, but couldn't you equally intercept after_save and launch a delayed task to build the inverted index?
lordkryss has joined #ruby
<pontiki> or was your question "how do i build an inverted index?" ?
<DaniG2k> pontiki: I think I got the saving part. I was able to intercept it with ActiveSupport::Concern's before_save
<pontiki> yes, i'm talking about point 2
<DaniG2k> pontiki: I guess my question is now more along the lines of, once a model gets saved, how can I edit another db table
hahuang65 has quit [Ping timeout: 255 seconds]
<DaniG2k> basically everty time someone adds content to a given model, I'd like my gem to update the inverted index table
<pontiki> and my question is, can't you use after_save like you're using before_save?
<DaniG2k> pontiki: sure thing
<DaniG2k> pontiki: i dont think the order is important right now
<DaniG2k> i am just trying to get the basics to work
<pontiki> what does order have to do with it?
havenwood has joined #ruby
<DaniG2k> pontiki: before/after save. Both work :)
<pontiki> after_save runs after the model saves, right? you want your other model updated after this model is saved, right?
fullofcaffeine has joined #ruby
<DaniG2k> yes
<DaniG2k> so its fine
<DaniG2k> before_save, after_save
<DaniG2k> this part works
<pontiki> so use after_save to trigger the update in the other model
<DaniG2k> hmmm no maybe I'm not describing my problem properly
<DaniG2k> I have a gem called Foo and a Rails app called Bar
<DaniG2k> Bar includes Foo in the Gemfile
<DaniG2k> I create a model in Bar
<DaniG2k> and when I save that, I want Foo to use its own database table to create an inverted index of the data that Bar passed
<DaniG2k> I was able to get the after_save part down so that's fine
<pontiki> then i ask again: is the question really "how do i build an inverted index?" ?
<DaniG2k> I'm tyring to figure out how to create Foo's database and how to add data to it
<sevenseacat> you do not want to be running rake tasks in model callbacks
<pontiki> that's a hugely different question than the one in the stackoverflow
<sevenseacat> thats just insanity
<sevenseacat> indeed, it is
<pontiki> which is why i said use a delayed job
<KrzaQ> I have a problem with ruby on windows: p [Encoding.default_external, Encoding.default_internal] produces [#<Encoding:CP852>, nil] even though I put #encoding: utf-8 at the top of the file.
dtzitz has joined #ruby
<KrzaQ> Ruby version: ruby 2.2.2p95 (2015-04-13 revision 50295) [x64-mingw32]
<dtzitz> sup guys
<sevenseacat> ?guys
<ruboto> we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
Vile` has joined #ruby
<dtzitz> weird
<dtzitz> lol
<DaniG2k> yeah...
<shevy> ?cats
<ruboto> I don't know anything about cats
<sevenseacat> I know, presuming gender of everyone really is weird, isnt it
[k- has quit [Ping timeout: 246 seconds]
<dtzitz> I am just going to use the term 'scumbags' as an inclusive term
<dtzitz> sup scumbags
<shevy> bye dtzitz :)
<dtzitz> bye
dtzitz has left #ruby ["WeeChat 1.2"]
<sevenseacat> something tells me you might not last long here
<sevenseacat> awesome.
<Coraline> Charming
<Coraline> Also hi everyone
<apeiros> sevenseacat: you should reconsider your career options. I see a great future as an oracle or prophet!
<sevenseacat> evening Coraline
<apeiros> hi there Coraline & sevenseacat
DaniG2k has quit [Quit: leaving]
jeramyRR has joined #ruby
timonv has joined #ruby
qwebirc2802 has joined #ruby
<pontiki> hi Coraline
<Coraline> Lo there
MrJiks has joined #ruby
haxrbyte has quit [Remote host closed the connection]
nobitanobi has joined #ruby
haxrbyte has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
gambl0re has joined #ruby
eGGshke is now known as eGGsha
eGGsha is now known as eGGshke
tkuchiki has joined #ruby
hj2007 has quit [Quit: This computer has gone to sleep]
eGGshke is now known as eGGsha
centrx has joined #ruby
charliesome has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
DLSteve is now known as veonik
veonik is now known as Guest18137
[k- has joined #ruby
Guest18137 is now known as DLSteve
bmurt has joined #ruby
hahuang65 has joined #ruby
PhantomS_ has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
Xeago has joined #ruby
bmurt has quit [Client Quit]
Xeago has quit [Client Quit]
[k- has quit [Ping timeout: 246 seconds]
<busterarm> how do we feel about 'doodz'?
<shevy> what is that
<shevy> oh
<shevy> dudes
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> we already have him here... the dudedudeman
<busterarm> hah
DLSteve has joined #ruby
leafybasil has joined #ruby
leat3 has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 244 seconds]
[k- has joined #ruby
<qwebirc2802> what does that mean? how do we feel about 'doodz'?
FernandoBasso has quit [Quit: May the force be with you.]
hahuang65 has quit [Ping timeout: 240 seconds]
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> qwebirc2802: ignore it. How's your Ruby?
<qwebirc2802> eh, not bad. guess I am supposed to get on the microframework bandwagon and just do an API and then do all my MVC stuff on the front end
<qwebirc2802> right?
<qwebirc2802> that's what the cool kids are doing these days?
<jhass> do whatever is fun and rewarding to you
babyswizz has joined #ruby
<busterarm> as far as being an inclusive term
<busterarm> it just came up a couple times
<jhass> ?ot busterarm
<ruboto> busterarm, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<qwebirc2802> ahh busterarm good luck with that, IMO if you can't find the right balance you can rip a community to shreds but that's all offtopic and not a rabbit hole I would like to visit after seeing it in the python community
ciwolsey has joined #ruby
<ciwolsey> sup guys
NeverDie has joined #ruby
iamse7en has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vpereira has joined #ruby
<vpereira> any client code using faye and celluloid?
<vpereira> i just find examples using EM.. and i dont want to use it :(
<pontiki> qwebirc2802: it's now all Mvc on the back end and MVVM on the front end :>
<centrx> Hey losers
<pontiki> hi winna
<centrx> sorry jk
<qwebirc2802> ugh
<qwebirc2802> mvvm
Azure has quit [Quit: Oops.]
<qwebirc2802> MVC was easy enough to grok but I never really did wrap my head around mvvm
<babyswizz> Hi all, am still new to ruby and would like to know if it's possible to build a mobile app which has a good GUI but not web or server based using RnR
Azure has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
<jhass> babyswizz: check ruboto and rubymotion
<babyswizz> jhass: are you saying it's not possible on RnR?
<jhass> (assuming you mean Ruby on Rails, RoR), I thought you didn't want to use it?
buggs has joined #ruby
gaboesquivel has joined #ruby
<buggs> hoi
s00pcan has quit [Quit: Lost terminal]
Mendenhall has joined #ruby
<jhass> hi
<ciwolsey> guys, what is RnR ?
<ciwolsey> Ruby n' Rails?
RegulationD has joined #ruby
omegamike has joined #ruby
<Coraline> ?guys
<ruboto> we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<shevy> there is no RnR
<centrx> Toys R' Us
mistermocha has joined #ruby
<ciwolsey> I prefer to go by the 90s TV episode "Friends" usage of the word
<jhass> ?guys2 ciwolsey
<ruboto> ciwolsey, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
<ciwolsey> Since I find usage within popular culture a better indicator than wherever you learned it from.
<centrx> ?ot jhass
<ruboto> jhass, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<ciwolsey> And it doesn't get much more popular than friends.
<jhass> ciwolsey: continue in #ruby-offtopic please, I don't wan to remove you from the channel
hahuang65 has joined #ruby
<ciwolsey> You started the discussion.
<babyswizz> jhass: Yea I meant RoR and I wasn't saying I didn't want to use it. I just thought it supports only web based apps and that's not what am looking at here
<jhass> there's no discussion, I informed you about something
dseitz has joined #ruby
<qwebirc2802> wow, there seems to be more interest in policing the community than participating in it =(
<jhass> babyswizz: RoR is a framework for build web applications that right. You don't want to do that so you probably shouldn't use it
<ciwolsey> Yes, please don't push your opinionated definitions on me in this channel.
workmad3 has joined #ruby
<ciwolsey> I'm here for Ruby and Rails.
<Coraline> Every community has rules and standards.
<jhass> ?rails ciwolsey
<ruboto> ciwolsey, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood> ciwolsey: Rails is a gem. There's a #RubyOnRails channel specifically for Rails.
buggs has left #ruby ["WeeChat 0.4.2"]
nalley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ciwolsey> I'm here for Ruby then.
<havenwood> ciwolsey: Rails is one of many Rack adapters.
<shevy> we are all here for ruby \o/
<havenwood> ciwolsey: https://rack.github.io/
<pontiki> i'm not
RegulationD has quit [Ping timeout: 240 seconds]
<centrx> Yeah why are you calling out one Rack adapter when everyone knows all the Rack adapters are good
<Coraline> For simple APIs sometimes Sinatra is a decent choice.
<pontiki> i'm secretly trying to get everyone to learn elixir and defect
<Coraline> Depending on your needs.
<qwebirc2802> cool, alright well enjoy policing your community, sure it makes it better I am going to just find somewhere that is a little more technical and a little less... whatever this is
<havenwood> Or Roda! \o/
<centrx> pontiki, what's Defect?
qwebirc2802 has quit [Quit: Page closed]
<jhass> pontiki: s/elixir/crystal/
shock_one has joined #ruby
<pontiki> defect is a verb
<centrx> not for long! github
<shevy> sevenseacat also was learning elixir, havenwood too, there is a lot of trendy learning going on
<pontiki> it's also a noun, but my usage was the verb form
microspino has joined #ruby
<apeiros> is today sockpuppet day?
<centrx> hmm, I better write this down
<Coraline> I think Dave Thomas' interest was a tipping point for a lot of people.
Reventlov has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
<slash_nick> lol...get everyone to learn elixir and to defect... pontiki , i read it like centrx
<[k-> to defect means to stop following
<shevy> it's gotta be a new programming language
<centrx> I thought that was defecate
<shevy> defcat
omegamike has quit [Ping timeout: 256 seconds]
shinnya has quit [Quit: ZNC - http://znc.in]
<[k-> north Korean escapers are called defectors
<[k-> I think
psy_ has quit [Ping timeout: 246 seconds]
<pontiki> you are all post-cold-war babies aren't you :)
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 240 seconds]
<slash_nick> haha
<slash_nick> pontiki: or they haven't watched enough spy shows or read enough tom clancy
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
<shevy> [k- I thought they are called traitors
<pontiki> shevy: only by the losing side
<shevy> hehe
workmad3 has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 264 seconds]
shinnya has joined #ruby
babyswizz has left #ruby [#ruby]
lannonbr has quit [Quit: WeeChat 1.2]
ynasser has left #ruby [#ruby]
freerobby has joined #ruby
ndrei has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
mary5030 has joined #ruby
<Scriptonaut> Hey guys, I am requiring activesupport, but I still can't use to_options
<Scriptonaut> it tells me undefined method `to_options' for Hash
<Scriptonaut> any ideas?
freerobby has quit [Client Quit]
<adaedra> iirc, activesupport requires to load parts manually
<Scriptonaut> ah :(
<havenwood> Scriptonaut: My maybe-not-so-helpful idea is to use the Sequel gem. :P
busterarm has quit [Quit: WeeChat 1.1.1]
freerobby has joined #ruby
<slash_nick> havenwood: why, does that load the parts?
busterarm has joined #ruby
<Scriptonaut> I just wanna quick way to convert the strings in a hash to symbols
<havenwood> slash_nick: I just meant to not be using ActiveSupport. I guess I was assuming (probably incorrectly?) that it's outside of Rails.
<Scriptonaut> guess I'll have to include hashwithindifferentaccess
<Scriptonaut> havenwood: ya no rails
<shevy> that name alone, look at how long it is!
<Scriptonaut> I like activesupport quite a bit
<Scriptonaut> haha ya
haxrbyte has quit [Ping timeout: 265 seconds]
<havenwood> Scriptonaut: <3 Sequel gem.
<slash_nick> shevy: and that's without the underscores
<Coraline> ^ Scriptonaut
<Scriptonaut> Coraline: that's rails
<shevy> slash_nick haha yeah
<Scriptonaut> I'm not using rails
<slash_nick> but rails is not a dep
<Coraline> Oh I see
<Scriptonaut> thanks anyways
tkuchiki has quit [Remote host closed the connection]
<Coraline> Sorry, missed that bit.
microspino has quit [Remote host closed the connection]
* Coraline needs moar coffee
tkuchiki has joined #ruby
* havenwood needs coffee desperately
busterarm has quit [Client Quit]
* Scriptonaut is on his 4th shot of espresso
<Coraline> I had one cup of weak stuff
* slash_nick is still feeling his 4th shot of something
<DexterLB> hello. I have a TCP connection, and I keep an open socket. The server sends some json data every few seconds. Is there a way to read the json objects as they come, without waiting for EOF?
busterarm has joined #ruby
<havenwood> I've been too lazy to get out of bed.
<havenwood> If I just had coffee...
<Scriptonaut> lol slash_nick
<Scriptonaut> time differences in irc are always weird
ruby-lang060 has quit [Quit: Page closed]
<jhass> DexterLB: what'd you do in the meantime?
<slash_nick> Scriptonaut: it's 10 AM
<Scriptonaut> oh, I see :o
<havenwood> Scriptonaut: Just want to turn keys to symbols?
<Scriptonaut> havenwood: indeed, I coudl write it myself but I figured there would be somethin nifty
<Scriptonaut> it's probably a one liner
thiagovsk has joined #ruby
mary5030 has quit [Remote host closed the connection]
<adaedra> map { |k, v| [k.to_sym, v] }.to_h
<havenwood> Scriptonaut: map { |k, v| [k.to_sym, v] }.to_h
<DexterLB> jhass: nothing, I imagine something like "loop do; data = read_json(socket); process(data); done"
<adaedra> haha havenwood
<havenwood> adaedra: jinx
<Scriptonaut> Hash( my_hash.ya, thanks
mary5030 has joined #ruby
jottr has joined #ruby
<Scriptonaut> whoops
<DexterLB> jhass: so in the meantime I just sleep, preferably blocked in the read function
<Scriptonaut> started writing it out
FernandoBasso has joined #ruby
<jhass> DexterLB: ah, your protocol would either need a clear delimiter or some bytes to read signaling
<Scriptonaut> is there native thread support in ruby yet
shock_one has quit [Ping timeout: 255 seconds]
<Scriptonaut> I remember a few years ago there wasn't
juanpablo_ has joined #ruby
<Scriptonaut> you had to use jruby back then for threads
<havenwood> Scriptonaut: Ruby 1.8 did have green threads, yeah. Yes, native system threads now but there's still a GVL in CRuby.
tkuchiki has quit [Remote host closed the connection]
<DexterLB> jhass: yeah, so there's no way to use the end of a toplevel json object as a delimeter?
<jhass> DexterLB: common delimiters would e.g. be \0 or \n
<jhass> not really, no
hahuang65 has joined #ruby
<jhass> you could try if read_nonblock works for you, but that ends up in busy polling
<jhass> and using as } delimiter would break nested objects
chipotle has joined #ruby
<DexterLB> jhass: yeah, I want to avoid that
<DexterLB> jhass: is there a problem with using \n as a delimeter?
<adaedra> \n is valid inside JSON
tubulife- has joined #ruby
<jhass> is it?
<slash_nick> DexterLB: what if you try to deserialize the json line by line, rescuing failures by trying the to deserialize lines + next-line...
<jhass> >> require "json"; "foo\nbar".to_json
<ruboto> jhass # => "\"foo\\nbar\"" (https://eval.in/405784)
<adaedra> DexterLB: are you always sending objects (i.e. always start and end by { and })?
iateadonut has quit [Ping timeout: 255 seconds]
<jhass> DexterLB: ^ seems to suggest there isn't, as long as your JSON serializer doesn't "prettify" that is
<DexterLB> adaedra: it's safe to assume that, yeah
<adaedra> because you could count { }, and trigger conversion when you go to 0 (so end of main object)
<DexterLB> jhass: yeah, I was thinking about just stripping all newlines from the json server-side, since they aren't a meaningful character
mary5030 has quit [Ping timeout: 244 seconds]
<adaedra> except if you can have strings containing unbalanced {}, which would made it harder
bmurt has joined #ruby
<DexterLB> and then using \n as delimeter client-side
juanpablo_ has quit [Ping timeout: 260 seconds]
<jhass> yeah, which makes it a simple .gets call on the socket
<DexterLB> adaedra: yeah, it's a possibility for strings to contain {}
<DexterLB> jhass: yep
<DexterLB> thanks
<adaedra> DexterLB: unbalanced?
<adaedra> jhass: I was more thinking outside of strings, like {\n"hello":"world"\n}
<DexterLB> adaedra: probably, the string contents inside the objects can be user-provided
<slash_nick> DexterLB: is it just a bunch of json objects (line breaks after each json object), one huge json object, an array of json objects?
<adaedra> don't know what its source is
<jhass> adaedra: I realized later and hence my comment about "prettify"
<adaedra> ah yes
Mendenhall has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 265 seconds]
<adaedra> DexterLB: instead of using a separator, you can also put the size of a JSON object before it, so you know exactly how much to read
tubulife- has quit [Ping timeout: 255 seconds]
shock_one has joined #ruby
<DexterLB> adaedra: nice idea
j4cknewt has joined #ruby
<jhass> I guess I'm too brief...
<jhass> <jhass> DexterLB: ah, your protocol would either need a clear delimiter or some bytes to read signaling
<adaedra> :)
<Scriptonaut> this is weird, in my database.yml, db is rtlb_dev, user is my username, and password is also my username, but when I: psql -d rtlb_dev -U user_name -W, then enter the password, it says authentication failed
<DexterLB> jhass: sorry :P
<DexterLB> I still think I'll go with \n as a delimeter though
<jhass> Scriptonaut: join #postgresql, decent folk over there
sigurding has quit [Quit: sigurding]
<Scriptonaut> ty
<adaedra> less risks with \0 I would say
<adaedra> like jhass suggested
freerobby has quit [Quit: Leaving.]
livathinos has joined #ruby
aryaching has joined #ruby
livathinos has quit [Client Quit]
tejasmanohar has quit [Quit: WeeChat 1.1.1]
j4cknewt has quit [Remote host closed the connection]
s00pcan has joined #ruby
Trynemjoel has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
oo_ has joined #ruby
Trynemjoel has joined #ruby
radgeRayden has joined #ruby
krz has joined #ruby
apt-get_ has joined #ruby
sigurding has joined #ruby
sarkyniin has quit [Ping timeout: 265 seconds]
vikaton has joined #ruby
victortyau has quit [Ping timeout: 244 seconds]
Mendenhall has joined #ruby
charliesome has joined #ruby
Averna has joined #ruby
victortyau has joined #ruby
gaboesquivel has quit []
Guest0 has joined #ruby
vikaton has quit [Client Quit]
hahuang65 has joined #ruby
malconis has joined #ruby
shock_one has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
yaw has joined #ruby
yaw has left #ruby [#ruby]
hahuang65 has quit [Ping timeout: 240 seconds]
bhaak has quit [Ping timeout: 252 seconds]
_blizzy_ has quit [Ping timeout: 265 seconds]
aryaching has quit []
bruno- has joined #ruby
Mendenhall has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
mois3x has joined #ruby
houhoulis has joined #ruby
Channel6 has joined #ruby
DLSteve has joined #ruby
MrJiks has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 252 seconds]
leat3 has joined #ruby
Jarboe has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<Scriptonaut> does anyone know how I can connect activemodel to activerecord?
bruno- has joined #ruby
<Scriptonaut> I want to have a model named User, and I want it to automatically connect to my users table in activerecord
<pontiki> activerecord includes activemodel
<Scriptonaut> oh, nice. So how do I go about making my model now that I have the activerecord table migrated and all that
<Scriptonaut> is there an easy: class User < ActiveModel
<Scriptonaut> is there an easy: class User < ActiveModel::Base or something
<pontiki> yes
<Scriptonaut> do you have any docs/articles that can explain it to me?
<pontiki> but instead of inheriting active model, inherit active record
<Scriptonaut> oh
pauly_oc has joined #ruby
<Scriptonaut> ActiveRecord::Base?
<pontiki> yes
<Scriptonaut> ty
<pontiki> just like in rails
bhaak has joined #ruby
<Scriptonaut> so I don't have to do any of the: include ActiveModel::Validations, etc
<Scriptonaut> that stuff will all be included?
<pontiki> yes
<Scriptonaut> and will connect to the table?
<Scriptonaut> wow that's cool
<Scriptonaut> thanks
devdazed has joined #ruby
<jhass> the other AR articles too
mistermocha has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
bestbrents has joined #ruby
<Scriptonaut> I ran this migration: https://gist.github.com/robins35/0ee123ca3c7f69b50377 However the only table is "schema_migrations". Why isn't there a users table/
hahuang65 has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
<Reventlov> trantor
<Reventlov> miss.
gheegh has quit [Ping timeout: 260 seconds]
Blaguvest has joined #ruby
malconis_ has joined #ruby
<pontiki> Scriptonaut: do you think you might want to share the output of "running this migration" ?
<Scriptonaut> there is no output
<Scriptonaut> or errors
<Scriptonaut> it seems to be successful
<pontiki> i guess there's no point in responding to your questions, then
<Scriptonaut> why?
<Scriptonaut> I'm willing to supply any helpful info, but what is there
<pontiki> how about "oh, it worked, never mind"
malconis has quit [Ping timeout: 256 seconds]
<Scriptonaut> it's not working, the table isn't beign created
<pontiki> wth does this mean, then: "< Scriptonaut> it seems to be successful"
<Scriptonaut> I mean at first glance running the migration, it doesn't error out, it seems at first to be successful, until you check the database
malconis_ has quit [Client Quit]
<pontiki> yeah, never mind
<Scriptonaut> I don't get it, what would you suggest I supply to make solving this easier
hahuang65 has quit [Ping timeout: 246 seconds]
jeramyRR has joined #ruby
<shevy> I still don't quite understand the difference between: def self.foo versus module_function :foo
<tbuehlmann> shevy, when including a module, module functions become available as private methods
bmurt has quit []
<shevy> hmm
bruno- has joined #ruby
<shevy> so I essentially save myself to have to use private, if I use module_function?
nalley has joined #ruby
iwaffles has joined #ruby
Cache_Money has joined #ruby
<tbuehlmann> shevy, I think the primary usecase are Util-like modules on which you can call methods. when including them, you can call them from instances directly
lannonbr has joined #ruby
PhantomSpank has joined #ruby
pyr0commie has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
bruno- has joined #ruby
mois3x has quit [Quit: mois3x]
PhantomSpank has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
<pontiki> tbuehlmann: an example would be FileUtils, where you can call, say, FileUtils.mkdir_p directory, or if you include FileUtils in a class, then you're able to call mkdri_p directly?
safeforge has joined #ruby
<tbuehlmann> right
<pontiki> cool
PhantomSpank has joined #ruby
Reventlov has left #ruby [#ruby]
bruno- has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
shock_one has joined #ruby
Soda has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
<jhass> shevy: module_function _copies_ the instance methods to the singleton class
<jhass> and makes the instance methods private
<jhass> (but not the copies)
<jhass> Scriptonaut: maybe you ran the migration and then edited to create the table and then ran it again?
durazno has quit []
<Scriptonaut> jhass: I thought that might be the case, so I dropped created and reran the migration, still no users table
apt-get_ has quit [Ping timeout: 244 seconds]
<tbuehlmann> pontiki, using it in one of my libraries: https://github.com/tbuehlmann/lappen/blob/master/lib/lappen/request_context.rb - controller and view_context are available in the classes that include the module and on the module itself
<jhass> you're sure your (custom?) migrate task even picks it up?
chinmay_dd has joined #ruby
<tbuehlmann> one could argue about meaningfulness and encapsulation, but I think it's just handy in some situations
<Scriptonaut> I'll post my code that I use to migrate
bruno- has quit [Ping timeout: 265 seconds]
hashrocket has joined #ruby
<[k-> you are going to make encapsulation sad :(
<Scriptonaut> that's my db.rake file
bruno- has joined #ruby
<Scriptonaut> line 52 is where I migrate
kawaii-imouto is now known as pyon
<jhass> Scriptonaut: run File.expand_path on MIGRATIONS_DIR and then print it to check it's the correct path
safeforge has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<Scriptonaut> jhass: thank you so much
<Scriptonaut> that was it
<Scriptonaut> I figured the current directory would be where the file was, but it was being included into the root
icebourg has joined #ruby
psy_ has quit [Ping timeout: 246 seconds]
<jhass> Scriptonaut: you can make it deterministic with File.join(__dir__, "whatever"), __dir__ will be directory of the current file (so also File.expand_path if you got to join ..'s to it)
pontiki has left #ruby [""Poets have been mysteriously silent on the subject of cheese" -- G.K.Chesterson"]
bruno- has quit [Ping timeout: 255 seconds]
jwinder has joined #ruby
bruno- has joined #ruby
fantazo has quit [Quit: Verlassend]
ledestin has joined #ruby
wallerdev has joined #ruby
hahuang65 has joined #ruby
safeforge has joined #ruby
omegamike has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 255 seconds]
alienaut has joined #ruby
jwinder has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
bnizzle has quit [Ping timeout: 244 seconds]
bnizzle has joined #ruby
wallerdev has quit [Ping timeout: 252 seconds]
towski_ has joined #ruby
darkf has quit [Quit: Leaving]
juanpablo_ has joined #ruby
apt-get_ has joined #ruby
workmad3 has joined #ruby
Brainling|Sleep is now known as Brainling
hahuang65 has quit [Ping timeout: 246 seconds]
Vile` has quit [Quit: .]
omegamike has quit [Ping timeout: 255 seconds]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
freeUmo has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
khebbie has joined #ruby
khebbie_ has joined #ruby
Vile` has joined #ruby
khebbie has quit [Client Quit]
khebbie_ has quit [Remote host closed the connection]
victortyau has quit [Quit: Leaving]
pengin has joined #ruby
tmtwd has joined #ruby
tkuchiki has joined #ruby
<shevy> jhass hmm
FernandoBasso has quit [Quit: May the force be with you.]
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_lexjm has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
fullofcaffeine has quit [Remote host closed the connection]
leat3 has quit [Ping timeout: 240 seconds]
pengin has quit [Remote host closed the connection]
<alienaut> hey! when i am writing %w{1 2 3 4 5} ruby produces an array of strings but how can i produces array of integers?
<shevy> interesting that module_function makes it private
<shevy> extend self would work on the whole module. Is there something like module_function that retains it as public?
<shevy> on a per method basis
Guest0 has quit [Quit: Textual IRC Client: www.textualapp.com]
tubulife- has joined #ruby
`derpy has left #ruby ["Textual IRC Client: www.textualapp.com"]
Trynemjoel has quit [Ping timeout: 240 seconds]
tubulife- has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
khebbie has joined #ruby
khebbie_ has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<busterarm> alienaut: would the integers be in a range?
Saloaty has joined #ruby
christiandsg has joined #ruby
<busterarm> (1..5).to_a would do that with ints
hahuang65 has joined #ruby
<alienaut> busterarm: what if my ints arent sorted?
<Saloaty> .sort
<busterarm> if they're not sorted, where are you getting them from in the first place?
Stratege has joined #ruby
<busterarm> what's the input?
<Scriptonaut> I'm not using rails, but I'm having this issue: http://stackoverflow.com/questions/27179138/rails-executing-migration-argumenterror I do a bundle update arel after setting it to gem 'arel', '6.0.2.beta2', and when I gem update arel and then run bundle install, it tells me that it can't find 'arel (= 6.0.2.beta) ruby' in any of the gem sources listed in my Gemfile or on the machine. What does that mean?
<alienaut> there is no input i am just wondering if it possible?
<jhass> alienaut: [1, 2, 3, 4, 5]
Trynemjoel has quit [Ping timeout: 256 seconds]
<busterarm> yes, making an array of integers is possible
<Scriptonaut> I think that's the problem at least, has anyone else gotten "wrong number of arguments (1 for 0)" when they run: create_table :users do |t|
<Ox0dea> busterarm: But there's no literal syntax for it like for %words.
<Ox0dea> %d(1 2 3) == [1, 2, 3] would be nice.
<busterarm> fair point
<jhass> Scriptonaut: looks like 6.0.2 got released, I see 6.0.0.beta2 but no 6.0.2.beta2
Trynemjoel has joined #ruby
<Scriptonaut> oh, cool
<Scriptonaut> I'll try 6.0.2
sigurding has quit [Quit: sigurding]
<alienaut> yea Ox0dea is right
jeramyRR has joined #ruby
<busterarm> but if you wanted to do something like that, either you have some kind of range or source you can build the array from, or you've already got an array...
<Ox0dea> >> %w[3 2 1].map(&:to_i) # alienaut
<ruboto> Ox0dea # => [3, 2, 1] (https://eval.in/405813)
baweaver has joined #ruby
<Saloaty> Scriptonaut: https://rubygems.org/gems/arel
FernandoBasso has joined #ruby
bradleyprice has joined #ruby
<jhass> I don't mind the few , in [3, 2, 1], it's the " that get annoying in ["a", "b", "c"]
<Scriptonaut> hrm, why the heck am I still getting that error then
<Saloaty> gem 'arel', '~> 6.0.2'
<jhass> .map(&:to_i) on a literal seems insane
<Scriptonaut> I'll try tat
<busterarm> a Range is already Enumerable. I'm guessing but probably less overhead than conversion from strings
<Scriptonaut> hrm, still getting the (1 for 0) error
<jhass> Scriptonaut: backtrace?
kriskropd has quit [Ping timeout: 244 seconds]
<alienaut> is it hard to fork ruby's itself and make my %d(3 2 1) # => [3, 2, 1]?
<jhass> if you don't fear parse.y ...
<Scriptonaut> that's what I get when I set Rake.application.options.trace = true
<jhass> run with --trace
christiandsg has quit [Remote host closed the connection]
<Scriptonaut> same output
shock_one has quit [Remote host closed the connection]
sigurding has joined #ruby
kriskropd has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
<jhass> *shrug*, get pry-rescue and wrap the migrator invocation into Pry.rescue { } ?
radgeRayden has quit [Ping timeout: 244 seconds]
SCHAAP137 has quit [Remote host closed the connection]
Saloaty has left #ruby ["ruby"]
leat3 has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
howdoi_ has joined #ruby
lavros_ has quit [Quit: leaving]
jonee has joined #ruby
swgillespie has joined #ruby
mistermocha has joined #ruby
phoo1234567 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has quit [Quit: Lost terminal]
hahuang65 has quit [Ping timeout: 244 seconds]
TheNet has joined #ruby
<Scriptonaut> jhass: I found the issue. Line 605 of active_record/migration.rb. It calls the method change, but doesn't pass it any arguments, it should be passing it one argument according to this
Vile` has quit [Ping timeout: 244 seconds]
<jhass> "this"?
<Scriptonaut> this being the pry-byebug
s00pcan has joined #ruby
<Scriptonaut> should have specified my bad
mistermocha has quit [Ping timeout: 256 seconds]
trouloulioud_dev has joined #ruby
troulouliou_dev has quit [Ping timeout: 246 seconds]
safeforge has quit [Remote host closed the connection]
<Scriptonaut> ah, finally figured it out, thanks for helping me along jhass
trouloulioud_dev has quit [Max SendQ exceeded]
sigurding has quit [Quit: sigurding]
<Scriptonaut> I had t.name rather than t.string
trouloulioud_dev has joined #ruby
rubie has joined #ruby
unclouded has quit [Ping timeout: 246 seconds]
phoo1234567 has quit [Max SendQ exceeded]
trouloulioud_dev has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
trouloulioud_dev has joined #ruby
trouloulioud_dev has quit [Max SendQ exceeded]
eggoez has quit [Ping timeout: 256 seconds]
konsolebox has quit [Quit: Leaving]
leafybasil has quit [Remote host closed the connection]
michaeldeol has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
`derpy has joined #ruby
leafybasil has joined #ruby
despai has joined #ruby
eggoez has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
apt-get_ has quit [Quit: Quit]
sarkyniin has joined #ruby
fullofcaffeine has joined #ruby
ninji has joined #ruby
nalley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Saloaty has joined #ruby
TheNet has quit [Quit: Leaving...]
ciwolsey has quit [Remote host closed the connection]
Saloaty has left #ruby [#ruby]
towski_ has quit [Remote host closed the connection]
christiandsg has joined #ruby
SCHAAP137 has joined #ruby
bubbys has quit [Ping timeout: 250 seconds]
_lexjm has quit [Quit: zzz...]
hj2007 has joined #ruby
hahuang65 has joined #ruby
bubbys has joined #ruby
chinmay_dd has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
Mendenhall has joined #ruby
Jackneill has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
centrx has joined #ruby
chipotle has quit [Quit: cheerio]
Jackneill has joined #ruby
maletor has joined #ruby
jottr has joined #ruby
bhaak has quit [Ping timeout: 244 seconds]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
eilkahn has joined #ruby
nobitanobi has quit [Remote host closed the connection]
elia has joined #ruby
nobitanobi has joined #ruby
_djbkd has joined #ruby
<centrx> ?list
<ruboto> I don't know anything about list
tkuchiki has joined #ruby
<apeiros> centrx: you can ask ruboto in pm
<apeiros> it doesn't mind the query ;-p
<centrx> ah I was wondering about that
pyr0commie has quit [Read error: Connection reset by peer]
<centrx> TIAS duh
pyr0commie has joined #ruby
lkba has joined #ruby
<apeiros> tias?
<centrx> Try It And See
hahuang65 has joined #ruby
<apeiros> aha!
<apeiros> indeed
nobitanobi has quit [Remote host closed the connection]
<apeiros> TIL :D
<craysiii> is ruboto a bot
jonee has quit [Ping timeout: 265 seconds]
<centrx> WYSIWYG
christiandsg has quit [Read error: Connection reset by peer]
codecop has joined #ruby
christiandsg has joined #ruby
<apeiros> ?ruboto craysiii
<ruboto> craysiii, I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
elia has quit [Quit: Computer has gone to sleep.]
christiandsg has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 244 seconds]
<craysiii> thats why it always seems they are copy pasting whenever someone says guys
<craysiii> TIL
Yiota has joined #ruby
<centrx> Here's my favorite:
<centrx> ?ruby
<ruboto> I don't know anything about ruby
<shevy> craysiii yeah it's a spambot
freerobby has joined #ruby
<craysiii> who is their controller
hahuang65 has quit [Ping timeout: 260 seconds]
<centrx> >> 9000 * :spam
<ruboto> centrx # => :spam can't be coerced into Fixnum (TypeError) ...check link for more (https://eval.in/405815)
<craysiii> >> loop { puts "hi" }
<ruboto> craysiii, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<shevy> craysiii I guess the bot queries an access control list of whoever has op powers on #ruby
<shevy> curious error... regular ruby loop {} won't use OpenURI
<ljarvis> ...
<craysiii> o.O
<ljarvis> that's an error from the bot http connection
<ljarvis> i.e the response from eval.in was a 500
<ljarvis> not the code
<craysiii> timed out probablyu?
<ljarvis> no 500 is not timeout
<apeiros> I'd assume that the server errs with 500 and returns a body saying something akin to "your code took too long and was killed"
<apeiros> try running it on eval.in directly
<ljarvis> i remember that returning something different actually
<ljarvis> >> loop{}
<ruboto> ljarvis # => (https://eval.in/405817)
<ljarvis> yep
apt-get_ has joined #ruby
<ljarvis> anyway I'd still except that to not be 500. Seems like that was random
<craysiii> >> loop { puts "hello }
<ruboto> craysiii # => /tmp/execpad-ef13d391a7aa/source-ef13d391a7aa:7: syntax error, unexpected keyword_end, expecting '}' ...check link for more (https://eval.in/405818)
<craysiii> oops
<craysiii> >> loop { puts "hello" }
<ruboto> craysiii, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<apeiros> mhm, indeed
<Ox0dea> >> 'x' * 1e30
usershell has joined #ruby
<ruboto> Ox0dea # => float 1e+30 out of range of integer (RangeError) ...check link for more (https://eval.in/405821)
<Ox0dea> >> 'x' * 1e20
<ruboto> Ox0dea # => float 1e+20 out of range of integer (RangeError) ...check link for more (https://eval.in/405822)
<Ox0dea> Omigod.
<apeiros> anyway, please do your experiments in the query
<shevy> cool... random errors \o/
<craysiii> what have i done.
<craysiii> lol
<Ox0dea> craysiii: What do you mean?
<craysiii> i broke it /s
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> >> "It's working fine."
<ruboto> Ox0dea # => "It's working fine." (https://eval.in/405823)
<Ox0dea> ?​
ninji has quit [Quit: Leaving]
<Ox0dea> apeiros: You made ruboto ignore Unicode space characters?
gregf1 has quit [Quit: WeeChat 1.1.1]
sarkyniin has quit [Ping timeout: 265 seconds]
<Ox0dea> ?rub​oto
<ruboto> I don't know anything about rub
<Ox0dea> Interesting.
<apeiros> Ox0dea: don't look at me! I have no idea what I did!
<centrx> the bot writes itself, I swear!
juanpablo_ has joined #ruby
<Ox0dea> Well, it seems friendly enough; I don't think we have to worry about being converted to paper clips.
<shevy> I thought the bot could not deal with unicode
chinmay_dd has joined #ruby
<Scriptonaut> can anyone figure out why my rake db:migrate is including my models directory for some reason? https://github.com/robins35/rubybot I can't for the life of me figure out why, it's requiring environment.rb even though I don't explicitly tell it to
Yiota has joined #ruby
<Scriptonaut> rake db:migratei s in lib/tasks/db.rake
Hydrax has joined #ruby
<Ox0dea> > mfw you don't expect implicit behavior in ruby
<Scriptonaut> :| I know. I don't know ruby well enough to know why it would require that file though
jonee has joined #ruby
<Scriptonaut> it doesn't impilcitly require other files
bronson has joined #ruby
<ght> Question: Anyone familiar with a method for determing "this week" from ActiveSupport::TimeZone?
gregf has joined #ruby
juanpablo_ has quit [Ping timeout: 240 seconds]
<centrx> ght, What?
yeticry_ has joined #ruby
<shevy> never used active support
linuxboytoo has quit [Remote host closed the connection]
linuxboytoo has joined #ruby
bestbrents has quit [Quit: Page closed]
<jhass> ?
yeticry has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 256 seconds]
<ght> jhass: Perfect, thank you.
bhaak has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
Outlastsheep is now known as zz_Outlastsheep
<centrx> That returns a day
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
linuxboytoo has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
symm- has joined #ruby
Agoldfish has joined #ruby
<Ox0dea> centrx: Yes, weeks begin with days.
<centrx> WYSIWYG
<Ox0dea> New word?
pyr0commie has quit [Remote host closed the connection]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
omegamike has joined #ruby
mistermocha has joined #ruby
<centrx> TMI dude, HTML
<Ox0dea> Yep, must be your first day. :P
houhoulis has joined #ruby
Rollabunna has quit [Remote host closed the connection]
pyr0commie has joined #ruby
Yiota has quit [Client Quit]
jonee has quit [Ping timeout: 252 seconds]
Yiota has joined #ruby
workmad3 has joined #ruby
hahuang65 has joined #ruby
icebourg has quit []
<apeiros> funny, I'd have thought week number
<apeiros> (and nothing really makes sense with *TimeZone*)
<centrx> yeah that's why I said "What?"
<craysiii> timezones should just not exist
<centrx> Thought that was clear
Mohan__ has quit [Remote host closed the connection]
<craysiii> we should all be on the same time
<apeiros> craysiii: use swatch ebeat then ;-)
omegamike has quit [Ping timeout: 250 seconds]
<apeiros> oh, they call it just "beat" today, I see.
Yiota has quit [Client Quit]
Yiota has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 240 seconds]
Alayde has joined #ruby
<Ox0dea> centrx: Does next month start on Saturday or 30?
<centrx> Mu
hahuang65 has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
<apeiros> I think it starts on CEST
RegulationD has joined #ruby
Trynemjoel has joined #ruby
freerobby has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FernandoBasso has quit [Quit: WeeChat 1.2]
Yiota has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirun has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
FernandoBasso has joined #ruby
Trynemjoel has joined #ruby
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
dopie has joined #ruby
atmosx has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest66777 is now known as bl4ckdu5t
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
bl4ckdu5t is now known as silverdust
tubulife- has joined #ruby
Yiota has joined #ruby
pocketprotector has quit [Ping timeout: 240 seconds]
usershel_ has joined #ruby
iceyec has joined #ruby
usershell has quit [Ping timeout: 250 seconds]
Yiota has quit [Client Quit]
elia has joined #ruby
Yiota has joined #ruby
christiandsg has joined #ruby
pocketprotector has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie_ has quit [Remote host closed the connection]
usershell has joined #ruby
Yiota has quit [Client Quit]
bruno- has joined #ruby
tubulife- has quit [Ping timeout: 256 seconds]
usershel_ has quit [Ping timeout: 260 seconds]
Fernando-Basso has joined #ruby
DLSteve has quit [Quit: Leaving]
FernandoBasso has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
shinnya has joined #ruby
tkuchiki has joined #ruby
joast has quit [Remote host closed the connection]
khebbie has joined #ruby
khebbie_ has joined #ruby
jottr has joined #ruby
hahuang65 has joined #ruby
pothibo has joined #ruby
chinmay_dd has quit [Quit: See ya!]
tkuchiki has quit [Ping timeout: 265 seconds]
allomov has joined #ruby
apt-get_ has quit [Quit: Quit]
sarkyniin has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
mikecmpb_ has quit [Ping timeout: 272 seconds]
s00pcan has quit [Ping timeout: 244 seconds]
cb__ has quit [Remote host closed the connection]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s00pcan has joined #ruby
yardenbar has quit [Quit: Leaving]
cb_ has joined #ruby
iceyec has quit [Quit: iceyec]
freerobby has quit [Quit: Leaving.]
Yiota has joined #ruby
iceyec has joined #ruby
iceyec has quit [Client Quit]
christiandsg has quit [Remote host closed the connection]
joast has joined #ruby
Yiota has quit [Client Quit]
freerobby has joined #ruby
Hydrax has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
jottr has joined #ruby
khebbie has quit [Remote host closed the connection]
khebbie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mendenhall has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
unclouded has joined #ruby
freerobby has quit [Client Quit]
gjvc has joined #ruby
nsuke has quit [Remote host closed the connection]
devdazed has quit [Quit: Computer has gone to sleep.]
usershell has quit [Remote host closed the connection]
hahuang65 has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
gjvc has quit [Changing host]
gjvc has joined #ruby
cb_ has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 240 seconds]
cb_ has joined #ruby
cb_ has quit [Changing host]
cb_ has joined #ruby
decaff has joined #ruby
mistermocha has joined #ruby
chinmay_dd has joined #ruby
stantonnet has quit [Ping timeout: 255 seconds]
nofxx has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
Vile` has joined #ruby
yqt has joined #ruby
Fernando-Basso has quit [Quit: May the force be with you.]
mistermocha has quit [Ping timeout: 240 seconds]
Ox0dea has quit [Quit: WeeChat 1.2]
lessless has joined #ruby
eggoez has joined #ruby
allomov has quit [Remote host closed the connection]
<shevy> so quiet today
roolo_ has joined #ruby
iceyec has joined #ruby
<yorickpeterse> that's because it' Caturday
<yorickpeterse> * it's
elia has quit [Quit: Computer has gone to sleep.]
chinmay_dd has quit [Quit: See ya!]
roolo has quit [Ping timeout: 255 seconds]
railswebdev has joined #ruby
phoo1234567 has quit [Quit: Leaving]
hj2007 has quit [Ping timeout: 264 seconds]
zick has joined #ruby
<apeiros> dat typo: Slime::Engine
Vile` has quit [Ping timeout: 265 seconds]
arup_r has quit [Quit: Leaving]
<apeiros> is it just me or are Slim's API docs terrible?
Vile` has joined #ruby
<apeiros> can't find an entry point
<yorickpeterse> Never used it, we still use HAML everywhere
EllisTAA has joined #ruby
cytoskeletor has joined #ruby
<apeiros> haml api docs were quite good iirc
<apeiros> at least it took me only a couple of minutes to go from "I have some haml markup" to "I have code which translates that to html"
<apeiros> with slim, all I have after 10min of looking around is a puzzled look on my face…
michael_mbp has quit [Excess Flood]
<busterarm> i'm still perfectly happy with ERB
<shevy> so ugly
* busterarm wnats to be a pariah
<busterarm> you can write ugly code in any language
<shevy> yeah
juanpablo_ has joined #ruby
<shevy> php embedded into html was uglier
<shevy> and inter-wrapped with XML
icebourg has joined #ruby
<busterarm> I've never been in the meaningful whitespace camp
michael_mbp has joined #ruby
Jarboe has quit []
bluOxigen has joined #ruby
<busterarm> I mostly avoid the tag helpers when writing ERB anyway - sure it's more verbose but they get out of hand
<yorickpeterse> whitespace is poetry
<busterarm> closer I am to plain markup the better
Ilyas has joined #ruby
<yorickpeterse> when I look at whitespace it's as if angels are singing to me
* yorickpeterse sounds like a hippie
chipotle has joined #ruby
<jhass> apeiros: how about going through tilt?
hahuang65 has joined #ruby
<busterarm> though if I had to change, I'd definitely use Slim
<apeiros> jhass: seeing how slim-rails registers Slim::Template, which has no code but inherits from Tilt::Template, I was just pondering that…
juanpablo_ has quit [Ping timeout: 260 seconds]
zick has quit [Quit: Textual IRC Client: www.textualapp.com]
NeverDie has joined #ruby
FernandoBasso has joined #ruby
Ox0dea has joined #ruby
<Ox0dea> busterarm: How do you write ugly code in Whitespace?
Vile` has quit [Ping timeout: 240 seconds]
omegamike has joined #ruby
<busterarm> Ox0dea: two separate ideas. I'm saying haml can be written to be really ugly (as ugly as erb or worse), and I'm generally not a fan of meaningful (enforced) whitespace
<Ox0dea> busterarm: Whitespace is a programming language.
hahuang65 has quit [Ping timeout: 255 seconds]
Jarboe has joined #ruby
<craysiii> the ugliness is hiding in plain sight. ctrl-A unleashes the beast
<busterarm> I mean, I'll write idiomatic code in whatever
<Ox0dea> busterarm: I was rather obviously being facetious, but I do maintain that you'd have trouble clarifying why exactly you felt a given Whitespace program was "ugly".
linuxboytoo has joined #ruby
Vile` has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
nobitanobi has quit [Remote host closed the connection]
<apeiros> jhass: yeah, going through tilt worked.
<busterarm> OH! :D
<apeiros> ponder whether I should open an issue on slim-language repo, asking to add docs for how to start using slim as an engine in your own project
<busterarm> that esoteric language wasn't on my radar
<busterarm> looks fun
<Ox0dea> You're one of today's ten thousand. :)
v0n has joined #ruby
<busterarm> hrm?
Yiota has joined #ruby
<busterarm> don't know the reference
radgeRayden has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
rubie has joined #ruby
<Ox0dea> !xkcd 1053
codecop has quit [Quit: Išeinu]
<apeiros> ooooh!
<apeiros> that'd be a nice command
<Ox0dea> Am I allowed to have a bot in?
workmad3 has joined #ruby
<apeiros> rule for bot is simple: only speak when being addressed. otherwise same as any natural person. no public logging without permission (last one is a freenode rule)
<busterarm> ooh!
<Ox0dea> Seems plenty reasonable, but ruboto speaks without being explicitly addressed.
<busterarm> i might write a bot
<jhass> ruboto also has ops
<craysiii> what is the scope of public logging? can i not log the channel?
radgeRayden has quit [Ping timeout: 240 seconds]
<apeiros> Ox0dea: sure. ruboto is the official channel bot and got permission :)
<schmooster> Whitespace is great
<Ox0dea> Right, makes sense.
<apeiros> craysiii: you may not publish your logs
<jhass> craysiii: you can. You cannot make the logs available to a third party
<Ox0dea> schmooster: The language?
<schmooster> aye
postmodern has joined #ruby
<schmooster> you may like to look at the list of esoteric languages on rosettacode
<jhass> craysiii: only the official public log mentioned in the topic is allowed to do that
<busterarm> Dogescript is still my favorite
<craysiii> interesting.
rubie has quit [Ping timeout: 265 seconds]
<schmooster> which I can't find now.. ohwait http://rosettacode.org/wiki/Category:Esoteric_Languages
<schmooster> just keep those two words in your search terms :D
<schmooster> I take it you've seen LOLCODE and BF nad the like?
<busterarm> i wish they had a version of the list sorted by number of instructions
<busterarm> yeah, have even written some bf
hanmac has quit [Ping timeout: 246 seconds]
<schmooster> the wikipedia page is much better tbf
Igorshp has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
<schmooster> you want least or most instructions?
fullofca_ has joined #ruby
<Ox0dea> That's the preeminent source for all things esolang.
<busterarm> big fan of this thing right 'ere
<Ox0dea> busterarm: "Sorted by number of instructions"?
<schmooster> ok nice
<busterarm> well, like bf has 8 commands, etc
<busterarm> some have less, many more
<Ox0dea> Ah, gotcha.
<schmooster> you want to run on an OISC
<Ox0dea> Well, mov is Turing-complete, so one is the minimum. :)
<busterarm> aye
<schmooster> aye
<schmooster> I don't know where I picked it up from
<schmooster> but I've been saying that a lot recently
fullofcaffeine has quit [Ping timeout: 265 seconds]
<schmooster> are you up to speed on Flynn's taxonomy?
lannonbr has quit [Quit: WeeChat 1.2]
<schmooster> busterarm^^
sinkensabe has joined #ruby
<busterarm> empty nest (()) is another fun one
amclain has joined #ruby
<busterarm> schmooster: I'm not, no
<schmooster> me neither
devdazed has joined #ruby
<busterarm> i'm familiar with SIMD
<Ox0dea> busterarm: I'm fairy certain Sclipting (http://esolangs.org/wiki/Sclipting) has the greatest number of distinct instructions.
<schmooster> outside mathematics?
<Ox0dea> > The basic idea is that to minimise the number of characters in a program, the language should provide as many single-character instructions as possible.
<craysiii> what. the. heck
<Ox0dea> Yay, Unicode!
<schmooster> that's nice
<schmooster> don't say unicode
<schmooster> >_<
pothibo has quit [Quit: pothibo]
<schmooster> there are reasons :)
<busterarm> omg i love that. chinese for for instructions and hangul for data....that'll really mess with people
<yorickpeterse> at least Hangul isn't that difficult
<busterarm> yeah, hangul is super easy
<schmooster> Ox0dea: thanks for that btw
<yorickpeterse> Writing it, sure
dopie has quit [Quit: This computer has gone to sleep]
<yorickpeterse> understanding it? heh, lot harder
<busterarm> like, learn to write it in an afternoon
<busterarm> yeah
christiandsg has joined #ruby
leafybasil has quit [Remote host closed the connection]
<craysiii> i studied mandarin for 2 years, still wouldn't want to program with chinese :P
<yorickpeterse> Yeah but Mandarin is just....ugh
<Ox0dea> How do tonal languages even work, man?
<Ox0dea> Like, what are the mechanics of whispering?
<busterarm> you don't whisper
<yorickpeterse> "Hey peeps how do we make a language so complex even native speakers are bad at it?"
<craysiii> you do whisper, and there are still tonal differences, but less pronounced
<yorickpeterse> At least Hangul was well designed
<craysiii> then again a major part of the language is inference through context
<yorickpeterse> "Peasants are too dumb to learn Chinese, lets make it simpler"
hahuang65 has joined #ruby
<busterarm> what I find most interesting is how the two Koreas have evolved two distinct languages in such a short time
<busterarm> and rapidly on the path to mutual unintelligibility
omegamike has quit [Remote host closed the connection]
<craysiii> 50 years isn't so short
<busterarm> for language it is
<craysiii> true, but there are other factors at play
<yorickpeterse> busterarm: actually the two aren't that different
Mendenhall has joined #ruby
nalley has joined #ruby
<busterarm> but i guess you could say the Ryukyuuan languages will have died out in less than 100 years from their common usage, so
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> All I see are nine dragons.
Yiota has joined #ruby
<Ox0dea> Because "ryukyu"? No? Okay.
<busterarm> heh
<craysiii> id say those two issues are unrelated linguistically speaking.
<Ox0dea> I think we should try to standardize on PIE.
atomical has joined #ruby
<yorickpeterse> apple pie > everything else
<busterarm> there should be a term for the time it takes for PIE to come up in all discussions of linguistics
<craysiii> "to make apple pie, first you must create the universe"
tubulife- has joined #ruby
Trynemjoel has quit [Ping timeout: 240 seconds]
<Ox0dea> busterarm: Of course, it says a lot about PIE that we really should have such a term.
<schmooster> cherry pie, come on
Yiota has quit [Client Quit]
<craysiii> like godwin's law.
<schmooster> how can you put apple pie above cherry pie
<busterarm> kind of like how the games industry has a term for the time it takes for users to use creation tools to create in-game representations of dicks
<yorickpeterse> cherry pie is for peasants
Igorshp has quit [Remote host closed the connection]
<schmooster> shut up, this is war
<schmooster> :D
tkuchiki has joined #ruby
hanmac has joined #ruby
<schmooster> cherry pie is basically the ambrosia of the gods
Yiota has joined #ruby
<craysiii> ambrosia is meh
<yorickpeterse> 2 out of 10
<yorickpeterse> would not consume again
<craysiii> 1/7
<busterarm> I'm not much of a pie person, except for Pumpkin
<yorickpeterse> craysiii: what scale is, American?
<Ox0dea> yorickpeterse: Kinsey.
<busterarm> and maybe coconut cream
<craysiii> when scaling something i like to use prime numbers.
<schmooster> lemon meringue pie
howdoi_ has quit [Quit: Connection closed for inactivity]
hahuang65 has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
<busterarm> i hate meringue
<schmooster> I think cheesecake counts as pie also
<busterarm> i'd rather eat fondant
fullofca_ has quit [Remote host closed the connection]
Yiota has quit [Client Quit]
<schmooster> you're insane
<busterarm> or wax
<schmooster> go eat a block of marzipan
<busterarm> i like marzipan
Trynemjoel has joined #ruby
<schmooster> agh you would
<craysiii> LOL
<schmooster> !
<schmooster> :D
<busterarm> marzipan is great
<schmooster> ok you can be my rival for now
<busterarm> it's no nougat though
<schmooster> nougat is awesome
<craysiii> nougat is great
<busterarm> nougat > *
<craysiii> is this something everyone agrees on?
<yorickpeterse> what's nougat?
<busterarm> no, i know people who hate nougat
<busterarm> as much as I hate meringue
<schmooster> busterarm: everything you say was going to be wrong in my ears, from now on, if you actually also hated nougat
<schmooster> you're a lucky being
<busterarm> we're totally offtopic btw
tubulife- has quit [Ping timeout: 260 seconds]
apt-get_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<yorickpeterse> The police isn't here anyway
<schmooster> I am good at encouraging derailment
<schmooster> we are in #ruby right?
SCHAAP137 has quit [Remote host closed the connection]
<schmooster> baddum
<schmooster> ah nevermind
<yorickpeterse> lets get back on track
<yorickpeterse> huehuehue
tkuchiki has quit [Ping timeout: 260 seconds]
<schmooster> cherry pie
<schmooster> _much better_
<adaedra> yorickpeterse | what's nougat?
<adaedra> HOW DARE YOU
sarkyniin has quit [Ping timeout: 246 seconds]
<craysiii> i think what people are missing here. is cake > pie
<schmooster> cheesecake
<yorickpeterse> I've literally never heard of that word
<schmooster> WHAT!
<schmooster> !
<schmooster> it's a type of sticky chewy delicious sweet thing
<schmooster> which is not alive
<yorickpeterse> Ah, we call it noga
<schmooster> aha
<craysiii> it which language?
<craysiii> in*
<yorickpeterse> I don't like this stuff
<yorickpeterse> craysiii: Dutch
<craysiii> do you use the hard g or soft g though
<yorickpeterse> the language of the gods
<busterarm> yes cake > pie
<yorickpeterse> craysiii: medium
elia has joined #ruby
Axy has quit [Read error: Connection reset by peer]
<craysiii> ik leer een beetje het nederlands :P
<yorickpeterse> soft g is for the peasants from the south
<yorickpeterse> craysiii: drop the "the"
maletor has joined #ruby
<craysiii> meh. lol no formal lessons
iceyec has quit [Quit: iceyec]
<yorickpeterse> also enjoy pronouncing roggenbrood and grachtengordel
<yorickpeterse> and the fact that zij/zei have multiple meanings/genders depending on the context
<craysiii> i have enough trouble with hagelslag
<yorickpeterse> zij zei dat zij weg zouden gaan
<yorickpeterse> ^ "she said they would leave"
<busterarm> maybe I should learn Dutch -- I've got nearly daily exposure to it this year completely unintentionally
texasmade has joined #ruby
<yorickpeterse> busterarm: how so?
lkba_ has joined #ruby
<craysiii> its a fun language.
<busterarm> people around me
<busterarm> + the internet
<craysiii> a lot easier to learn if you've had exposure to german
<busterarm> lot of Dutch programmers here in NY
<yorickpeterse> Ah yes, those traitors
<busterarm> and I've learned a little German
<shevy> haha
<craysiii> i want to move to the netherlands >.>
<yorickpeterse> hold on, I have the best image that symbolizes our country
<craysiii> klompen?
<shevy> a flood
<yorickpeterse> No, better
<yorickpeterse> shevy: zing
<busterarm> and there's no reason an English speaker can't pick up German
<schmooster> not all cakes are greater than all pie, though
Mendenhall has quit [Ping timeout: 256 seconds]
<yorickpeterse> beholdm our king
<yorickpeterse> * behold
<shevy> now I am blind thank you yorickpeterse
<craysiii> koning willem
<yorickpeterse> it's from /r/cirletrek
<busterarm> I keep seeing all kinds of offers for programmers in Amsterdam but they pay is way lower
<schmooster> maybe on average, yes, but not all when individually cross-compared against all others in the opposing set
<yorickpeterse> busterarm: whatever you do, don't work for Booking.com
<craysiii> yorick why lol
<busterarm> yorickpeterse: I've heard
<craysiii> i hear so much about booking
<Ox0dea> yorickpeterse: Does "Cirkeltrek" mean what I think it does?
<yorickpeterse> Ox0dea: yes
<schmooster> yorickpeterse: I know a few out at booking
<yorickpeterse> Booking is a modern day example of a company still using slavery
<craysiii> i was thinking of applying there once i finished my full stack ruby course.
<busterarm> also Perl
<busterarm> (actually I love Perl)
_ht has quit [Quit: Konversation terminated!]
<yorickpeterse> two examples
lkba has quit [Ping timeout: 260 seconds]
<yorickpeterse> I also know a few people that have worked there
<craysiii> dankjewel.
<yorickpeterse> Good pay, shit treatment
blackmesa has joined #ruby
<busterarm> anyway, I'm learning Danish and am trying to get to CPH somehow
<busterarm> not really looking to detour from that
<yorickpeterse> heh, Danish
<yorickpeterse> it's like talking Swedish but with a potato in your mouth
<busterarm> the language that people learn to speak last
<yorickpeterse> I tried to learn Korean but gave up
<busterarm> everyone complains about the pronunciation but I found Icelandic way harder
<yorickpeterse> Doesn't really work if all your Korean speaking friends actually only live in Korea
<craysiii> yorick would you have any suggestions for a junior dev (as far as companies) trying to emigrate to NL from US?
<yorickpeterse> and work from 9 to 9
<yorickpeterse> craysiii: junior as in?
<busterarm> get a job at Booking, tbh
<busterarm> they'll sponser
<craysiii> junior ruby / rails rev.
<busterarm> err sponsor
<busterarm> then gtfo as fast as possible
<yorickpeterse> and your visa will be tied in to your employment
<yorickpeterse> so you'll be kicked out if you leave
<busterarm> i thought you could get an offer from another employer and then transfer it
<yorickpeterse> It's really not needed for US citizens, there are a bunch of treaties that make it fairly easy for US citizens to work here
<busterarm> ahh
<yorickpeterse> busterarm: Yes, but IIRC there's a chance you still have to leave the country for a while
<busterarm> oh you do, for sure
<craysiii> that treaty is only to start or invest in a business though, as i understand it.
<yorickpeterse> craysiii: I meant that as in years and such
<busterarm> they have to process it with you outside
hahuang65 has joined #ruby
<craysiii> 2-3 years experience. I am thinking in the future.
tjohnson has joined #ruby
<busterarm> do you have at least a bachelor's?
<craysiii> no
bruno- has quit [Ping timeout: 240 seconds]
<yorickpeterse> It's not needed either
<busterarm> maybe for NL
<craysiii> it would look better though. i just decided traditional schooling wasn't for me.
<busterarm> i left school to work in finance because $$$
blackmesa has quit [Ping timeout: 246 seconds]
<craysiii> thats why im doing fullstack course at bloc.io
<busterarm> OH, say hi to Chris Beck for me!
<busterarm> but anyway, i looked for any reasonable route into the EU and basically gave up
<craysiii> before that I was studying CS but stopped because i couldn't be bothered with anything that wasn't CS.
shpoont has joined #ruby
<busterarm> even with 10+ years sysadmin experience
<busterarm> it's way way easier with your degree and almost a cinch with a Master's
<craysiii> buster you are in the US as well?
<busterarm> yeah
blackmesa has joined #ruby
<yorickpeterse> Literally all you need is a company willing to invest in a visa
<busterarm> who's your mentor at Bloc?
<craysiii> my mentor is Jess Rodriguez
maletor has quit [Quit: Computer has gone to sleep.]
<craysiii> really cool guy
<yorickpeterse> There are some programs like "knowledge migrants" to make it easier to important skilled foreigners, but the systems are all a bit fuzzy and require certain things from the employer
<busterarm> yorickpeterse: yeah, I just found lot of companies are CV focused and care a lot about school
<busterarm> less so for Germany, Netherlands and Ireland...but all the places I wanted to go very degree-oriented...points systems and all that
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<busterarm> once I get in a couple more years in dev I'm going to try for somewhere though
hahuang65 has quit [Ping timeout: 240 seconds]
<busterarm> seems much more likely to get a company to sponsor
cb_ has quit [Remote host closed the connection]
<craysiii> im going to do the same. girlfriend and I want to raise family in the netherlands, id be willing to go somewhere else in the EU though until i can gain permanent residency
<busterarm> what's Bloc like these days? I only know from when they started and their curriculum and programs are a lot different now
mary5030 has joined #ruby
<yorickpeterse> craysiii: have you ever been to .nl before?
<craysiii> yes for a month. girlfriend lived their for a year while she did her master at UvL
<yorickpeterse> Ah
troulouliou_dev has joined #ruby
roolo has joined #ruby
<yorickpeterse> If you apply for the big companies (e.g. ING, though that means also Java) you'll basically get a visa and everything for free
<busterarm> well, if at some point she became your spouse, it would be a lot easier...but not trying to push you into that
<yorickpeterse> The startups are too poor for that
<yorickpeterse> and your salary will suck
<yorickpeterse> busterarm: neg, only if she has a Dutch permit
<busterarm> she could very easily get a job and bring you along, depending on what she does
<craysiii> she is not a dutch national. though her father was and immigrated to the US from NL in the 60's.
<busterarm> yorickpeterse: I was thinking the more generally in the EU than there specifically
<craysiii> I would be okay with less money for a higher quality of life
roolo_ has quit [Ping timeout: 246 seconds]
cb_ has joined #ruby
<yorickpeterse> I know a bunch of companies in town, but I doubt any have the money to pay for a visa
<yorickpeterse> Though https://www.publitas.com/ might have it since they're doing fairly well financially
<yorickpeterse> (they're a Rails shop)
<yorickpeterse> There's also https://www.zilverline.com/
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has quit [Ping timeout: 246 seconds]
cb_ has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
charliesome has quit [Ping timeout: 272 seconds]
s00pcan has joined #ruby
charliesome_ has joined #ruby
<craysiii> many thanks
<yorickpeterse> http://www.youngcapital.nl/ is also looking for people (they tried to buy me at some point)
jhk has joined #ruby
<yorickpeterse> Word of advice, a lot of companies will list something like "Minimaal HBO ...." which is basically "minimum a bachelor degree"
<yorickpeterse> but few will actually care
<yorickpeterse> https://www.true.nl/over-true/vacatures/ also looking for people
<craysiii> okay thats good. we have a lot of that in the US as well, but where i am it doesn't apply as much (silicon valley)
<yorickpeterse> http://amsrb.org/jobs/ basically everything on this list
yqt has joined #ruby
<yorickpeterse> If you have the skills the lack of a degree is easily dealt with
cytoskeletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jhk has left #ruby [#ruby]
<yorickpeterse> I don't have a degree either and I've been rolling along just fine for little over 5 years now
<craysiii> thats good to hear
<yorickpeterse> In fact, my first programming job started June 14, 2010
<yorickpeterse> and I earned a whopping 1050 Euros per month
<yorickpeterse> gross
<craysiii> wow lol
<Scriptonaut> haha
<craysiii> thats a bit low.
<yorickpeterse> "a bit"
<craysiii> yes :P
<Scriptonaut> I've worked with a lot of programmers that never went to school
<yorickpeterse> Granted I was 17
blackmesa has quit [Ping timeout: 244 seconds]
<yorickpeterse> I think around the time I quit I earned a massive 1500 per month
<craysiii> that makes sense lol. i make that much pulling CAT6 and fiber cable
<Scriptonaut> the guy I'm working with right now was on the hash rocket team, Veezus Kreist, somewhat famous in the ruby community, and he told me he didn't go to school
hahuang65 has joined #ruby
<busterarm> isn't it super hard to get an apartment in Amsterdam?
<Scriptonaut> I think we pay him almost $200 an hour
<craysiii> i went to school i just didnt finish ;)
<yorickpeterse> busterarm: yes
<Scriptonaut> so if you're good, it's no big deal to make money
<busterarm> like, people camp out outside and stuff? lol
<yorickpeterse> But you can easily live just outside of Amsterdam and get in by train
<yorickpeterse> if they operate
<busterarm> heh
<yorickpeterse> (so not during winter)
<yorickpeterse> Pricing in Amsterdam is crazy too
Jackneill has quit [Ping timeout: 246 seconds]
<craysiii> what about den haag
timonv has quit [Ping timeout: 240 seconds]
<yorickpeterse> That's where all the scum lives
<yorickpeterse> (that's only partially a joke, sadly)
<craysiii> i thought that was brabant :P
<yorickpeterse> No, that's our texas
<busterarm> HAHA
<busterarm> so what's your Florida?
elia has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
<yorickpeterse> well, we don't have any of the sun
<Scriptonaut> what about the old people?
<yorickpeterse> So I guess Noord Holland, though that's also California
Rickmasta has quit [Ping timeout: 252 seconds]
<yorickpeterse> Amsterdam is basically San Fransisco
<yorickpeterse> all the old people live in the east of the country
<adaedra> I smell offtopic
<yorickpeterse> along with all the sheep
Cache_Money has quit [Quit: Cache_Money]
<Scriptonaut> really? I didn't get that vibe at all from Amsterdam
<yorickpeterse> Scriptonaut: the city might be different, but it's where all the startups are
<craysiii> eh. i would say more or less so it's like SF, being born and raised in SF and all lol
<Scriptonaut> ah, I've only visited a few times
<yorickpeterse> it even comes with hobos pissing on the streets
<Scriptonaut> ya, SF smells like piss
<craysiii> ugh
<Scriptonaut> like half the city
<craysiii> its really annoying
<Scriptonaut> and garbage everywhere
<craysiii> thats because other states literally paid to bus their mentally ill to california
<craysiii> for years
<busterarm> what's up with the armed robberies in SF's financial district lately?
Rickmasta has joined #ruby
Yiota has joined #ruby
<craysiii> no idea
<busterarm> like, 'broad daylight, shoot you in the face' kind of shit
<craysiii> increased crime everywhere right now
hahuang65 has quit [Ping timeout: 240 seconds]
<Scriptonaut> We have plenty up homeless up here near Seattle
<yorickpeterse> The one advice I have for those moving to .nl: be prepared to deal with the Dutch
<Scriptonaut> of*
<craysiii> summer brings out the crazy in the gang bangers and hard ons
<yorickpeterse> as in, we don't beat around the bush
<yorickpeterse> at all
<craysiii> yorick yes ive learned that one
<yorickpeterse> :P
<craysiii> very direct. which actually isnt a bother for me, i'm the same way myself most of the time.
rubie has joined #ruby
<busterarm> you say that, and I believe you, but all of the Dutch folks I know are super positive people
<busterarm> just direct
blackmesa has joined #ruby
<yorickpeterse> It has little to do with negativity
<Scriptonaut> general bluntness
<busterarm> no but I mean unusual amounts of positivity
<yorickpeterse> It's more about "Does this dress fit me?" "No you look fat in it"
<craysiii> ^
<yorickpeterse> also our food culture sucks
<Scriptonaut> I greeted someone in the netherlands, "How're you doing", and they spent like 10 minutes explaining how they're day wasn't going that well
<yorickpeterse> as in, it barely exists
<Scriptonaut> they took it literally
<yorickpeterse> Scriptonaut: hahaha
<craysiii> thats true yorick. but you had a place i really likes called jackets
<yorickpeterse> It's very uncommon to ask somebody that here
<craysiii> stuffed baked potato :P
<yorickpeterse> unless you're actually interested
<busterarm> Most of western europe's food culture sucks
<busterarm> or sucked until recently
<yorickpeterse> Belgium at least has decent beer
<Scriptonaut> agreed on the food culture, it's like mashed potatoes mixed with greens and sausage 50% of the time
<busterarm> France is a huge outlier
<craysiii> kriekbeer is life
<Scriptonaut> that's the sour beer isn't it?
<craysiii> bier* damn
<craysiii> no its cherry beer
<craysiii> very sweet
<Scriptonaut> ah
<craysiii> delicious AF
<busterarm> New Nordic quisine is money though
<Scriptonaut> only kriek I had was a lambic ale, too damn sour for me
<Scriptonaut> tasted like vinegar a bit
<craysiii> damn. bad first impression
Yiota has quit [Ping timeout: 272 seconds]
<busterarm> heh
<Scriptonaut> will have to try agian, we have a great beer culture up here
<busterarm> anyone who has any complaint about beer should drink Icelandic beer
<craysiii> where are you around?
<shevy> beer brings people together
<Scriptonaut> western WA state
<busterarm> makes all other beers seem amazing in comparison
<Scriptonaut> we have the most breweries per capita last I checked
<craysiii> thats what i was thinking lol.
<yorickpeterse> busterarm: are you sure you didn't drink whale pee instead?
<Scriptonaut> Oregon might have us beat now
<busterarm> I'm sure
rubie has quit [Ping timeout: 265 seconds]
<yorickpeterse> did you ever drink whale pee before?
<busterarm> It's that stuff they sell in a bottle and call Beer there, right?
hahuang65 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<yorickpeterse> heh
<Scriptonaut> sounds like bud light
<busterarm> nono
<Scriptonaut> we call that wolf piss here
<busterarm> this is waaaaaaaaaaaaay worse than bud light
<Scriptonaut> haha
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apfeluser has quit [Quit: Leaving]
<craysiii> can i ask what is with europeans and loving black licorice.
<Scriptonaut> I love that salmiak stuff from Finland
<busterarm> whatever you think the worst beer is...Keystone, Beast, Schaefer, Nattybo.....Icelandic beer is like 100x worse than that
<busterarm> Salkmiakkikossu is amazing
<Scriptonaut> ^
<busterarm> love that stuff
<busterarm> err Salmiakkikossu
segy has quit [Quit: ZNC - http://znc.in]
<busterarm> Iceland has one decent beer (Gull) and it's like their Bud Light
<zenspider> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<yorickpeterse> :<
<Scriptonaut> well I mean until somebody has a real question
<Scriptonaut> which luckily I do
<Scriptonaut> I'm getting NameError: undefined local variable or method `attr_accessible' for User(id: integer, name: string):Class
<yorickpeterse> Rails 4 doesn't have it anymore IIRC
<yorickpeterse> also, ?rails
cornerma1 has joined #ruby
<yorickpeterse> err
<jhass> yap, that's gone in 4
<yorickpeterse> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Scriptonaut> no this isn't rails
<jhass> it is
<busterarm> it's all about strong_params now
<Scriptonaut> I'm not using rails
<yorickpeterse> Scriptonaut: attr_accessible is part of Rails
<jhass> Rails is a collection of integrated libraries, of which you use two
<Scriptonaut> oh it is?
<yorickpeterse> it's not available outside of it iIRC
<jhass> well almost 3
<yorickpeterse> It's certainly not part of AR
<Scriptonaut> TIL
<zenspider> Scriptonaut: ActiveRecord is part of rails... so AR-only questions should be directed there too.
<Scriptonaut> awesome, I don't even need to use it
<Scriptonaut> ah, alright
<zenspider> in this case, seems a moot point tho.
Papierkorb has joined #ruby
<Scriptonaut> I usually hangout in #rubyonrails because I'm primarily a rails dev, but when I ask questions in there for this ruby project they refer me to here
hahuang65 has quit [Ping timeout: 255 seconds]
<zenspider> I think in this case, you probably don't want anything. you'll get the methods you need from the schema
cornerman has quit [Ping timeout: 265 seconds]
cornerma1 is now known as cornerman
christiandsg has quit [Remote host closed the connection]
lannonbr has joined #ruby
leafybasil has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
[H]unt3r has joined #ruby
RegulationD has joined #ruby
Channel6 has quit [Quit: Leaving]
blackmes1 has joined #ruby
CorySimmons has joined #ruby
mistermocha has joined #ruby
CorySimmons has quit [Max SendQ exceeded]
despai has quit [Quit: This computer has gone to sleep]
CorySimmons has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
cb_ has joined #ruby
cb_ has joined #ruby
CorySimmons has quit [Client Quit]
CorySimmons has joined #ruby
freeUmo has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
swgillespie has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
SupportMrHogan has joined #ruby
hahuang65 has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
swgillespie has quit [Max SendQ exceeded]
michael_mbp has quit [Excess Flood]
swgillespie has joined #ruby
Trynemjoel has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
markholmes has joined #ruby
SupportMrHogan has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
railswebdev has joined #ruby
yfeldblum has joined #ruby
decaff has quit [Remote host closed the connection]
decoponio has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
freerobby has joined #ruby
towski_ has joined #ruby
[k- has quit [Ping timeout: 240 seconds]
glenn_ has joined #ruby
svdb64 has joined #ruby
hahuang65 has quit [Ping timeout: 244 seconds]
omegamike has joined #ruby
markholmes has quit [Ping timeout: 240 seconds]
atmosx has quit [Quit: Lost in trance]
segy has joined #ruby
CorySimmons has quit [Quit: Bye!]
psy_ has quit [Read error: Connection reset by peer]
_djbkd has quit [Quit: My people need me...]
hahuang65 has joined #ruby
omegamike has quit [Ping timeout: 246 seconds]
cb_ has quit [Remote host closed the connection]
despai has joined #ruby
Limix has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
krz has quit [Quit: WeeChat 1.2]
jottr has quit [Ping timeout: 240 seconds]
gheegh has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
Cyclohexane has quit [Ping timeout: 244 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shpoont has quit [Quit: Textual IRC Client: www.textualapp.com]
shpoont has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jottr has joined #ruby
perturbation has joined #ruby
Cache_Money has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
lkba has joined #ruby
psy_ has joined #ruby
Thomas-0725 has joined #ruby
chuy has joined #ruby
lkba_ has quit [Ping timeout: 252 seconds]
rubie has joined #ruby
hj2007 has joined #ruby
jeramyRR has joined #ruby
tejasmanohar has joined #ruby
EllisTAA has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 240 seconds]
Thomas-0725 has quit [Ping timeout: 250 seconds]
<zenspider> man I love StringScanner
blackmes1 has quit [Ping timeout: 256 seconds]
* Ox0dea ensures he's not in #java.
kresk has joined #ruby
Trynemjoel has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
EllisTAA has quit [Client Quit]
tubulife- has joined #ruby
blackmes1 has joined #ruby
<Ox0dea> > EOF = :eof_haha!
charliesome_ has quit [Quit: zzz]
glenn_ has quit [Quit: Konversation terminated!]
pyr0commie has quit [Remote host closed the connection]
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubulife- has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 256 seconds]
hahuang65 has joined #ruby
charliesome has joined #ruby
diegoviola has joined #ruby
towski_ has quit [Remote host closed the connection]
kresk has left #ruby ["Leaving"]
jeramyRR has joined #ruby
jeramyRR has quit [Client Quit]
GooseAlan has quit [Quit: Leaving]
hahuang65 has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
shock_one has joined #ruby
mistermocha has joined #ruby
mary5030 has quit [Remote host closed the connection]
baweaver has joined #ruby
mary5030 has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
vickleton has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 260 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
arooni-mobile has joined #ruby
troulouliou_dev has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
shock_one has quit [Remote host closed the connection]
dukedave has quit []
dukedave has joined #ruby
<bmcginty> Is there any single http client in ruby that does cookies, digest auth, and keep-alive?
svdb64 has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
svdb64 has joined #ruby
<apeiros> bmcginty: mechanize doesn't?
svdb64 has quit [Changing host]
svdb64 has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
<bmcginty> apeiros: I'm somewhat new to ruby. Let me take a look. Figured mechanize was more of a scrapign framework rather than just a client. (not scraping framework, but...more than a client...)
<apeiros> bmcginty: an http client isn't concerned about cookies. to it, it's just a header.
<apeiros> so what you want is technically already more than just an http client.
icebourg has quit []
<apeiros> (or at least what I'd understand to be an http client)
mroth has quit []
mroth has joined #ruby
<busterarm> rest-client doesn't do those?
<apeiros> (and assuming by "do cookies" you mean "cookie management" - because every http client lib can send and receive headers…)
<busterarm> i think it does
<bmcginty> apeiros: That...makes more sence than I'd like to admit. Thanks.
charliesome has quit [Quit: zzz]
<bmcginty> apeiros: right, managing cookies. I'm coming from a python background, and one of those "magic" packages python has is a client that does the above.
thiagovsk has quit [Quit: Connection closed for inactivity]
shock_one has joined #ruby
svdb64 has quit [Ping timeout: 244 seconds]
ckrailo has quit []
charliesome has joined #ruby
ckrailo has joined #ruby
hahuang65 has joined #ruby
troulouliou_dev has joined #ruby
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
shock_one has quit [Remote host closed the connection]
akahn has quit []
akahn has joined #ruby
_blizzy_ has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
bruno- has joined #ruby
omegamike has joined #ruby
hahuang65 has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
omegamike has quit [Ping timeout: 246 seconds]
tejasmanohar has quit [Quit: WeeChat 1.1.1]
bruno- has joined #ruby
ledestin has joined #ruby
houhoulis has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Ping timeout: 252 seconds]
_blizzy_ has joined #ruby
troulouliou_dev has quit [Ping timeout: 250 seconds]
dimasg has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
alfajor has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
jottr has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
willywos has joined #ruby
dimasg has quit [Ping timeout: 264 seconds]
bruno- has quit [Ping timeout: 240 seconds]
lannonbr has quit [Quit: WeeChat 1.2]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
Bloodshot has quit [Ping timeout: 250 seconds]
malcolmva has quit [Ping timeout: 250 seconds]
Limix has quit [Ping timeout: 250 seconds]
crazydiamond has joined #ruby
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
hahuang65 has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
bato has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
Ox0dea has quit [Read error: Connection reset by peer]
<bato> heya, i'm trying to add files to a tar archive using tarwriter but I keep getting a " Gem::Package::NonSeekableIO" error while trying to add my file
<bato> not quite sure what i'm doing wrong at this point
hahuang65 has quit [Ping timeout: 244 seconds]
<ruboto> bato, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/20c8466dff3fc40f4b4f
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
shock_one has joined #ruby
<bato> my bad ^^;
hj2007 has quit [Ping timeout: 246 seconds]
<zenspider> please show the error
michael_mbp has quit [Excess Flood]
<bato> /usr/lib/ruby/1.9.1/rubygems/package/tar_writer.rb:106:in `add_file': Gem::Package::NonSeekableIO (Gem::Package::NonSeekableIO) from logs_tgz.rb:12:in `block (3 levels) in <main>'
kazoo has quit [Ping timeout: 265 seconds]
Jarboe has quit []
FernandoBasso has quit [Quit: May the force be with you.]
arooni-mobile has quit [Ping timeout: 246 seconds]
blackmes1 has quit [Ping timeout: 244 seconds]
juanpablo_ has joined #ruby
michael_mbp has joined #ruby
troulouliou_dev has joined #ruby
sharpmachine has joined #ruby
malcolmva has joined #ruby
apt-get_ has quit [Ping timeout: 264 seconds]
<zenspider> bato: based on the code, it looks like your gzipwriter doesn't accept pos=, so tarwriter blows up
decaff has joined #ruby
<zenspider> this code looks sketchy
dimasg has joined #ruby
DanFredriksen has joined #ruby
<bato> well, i'm trying to figure out how to use tarwriter instead of just copying files and tarring them using system calls :/
juanpablo_ has quit [Ping timeout: 256 seconds]
<zenspider> bato: to experiment, remove the gzip writer
<DanFredriksen> would you recommend substituting php with ruby? I'm kind of tired of PHPs bad documentation and half-baked community.
<zenspider> well... you're using a class that is private to rubygems. you're using it in a way that they don't expect... hiccups happen
<zenspider> DanFredriksen: I don't think anyone here would advocate for ruby over php
<DanFredriksen> zenspider: is php better?
<zenspider> clearly
Cache_Money has quit [Quit: Cache_Money]
<DanFredriksen> you are kidding right
<zenspider> would I kid you?
<DanFredriksen> no, you seem to be an honest person. I trust you
<zenspider> also: asking such arbitrary and subjective questions in a channel dedicated to a specific technology is going to get you OBVIOUSLY biased answers.
decaff has quit [Ping timeout: 240 seconds]
shock_one has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 244 seconds]
<DanFredriksen> well, the community surely is different lol :3
<DanFredriksen> more mature people hanging in here than in ##php I guess. We'll see
freerobby has quit [Quit: Leaving.]
PhilK has quit []
PhilK has joined #ruby
tejasmanohar has joined #ruby
Soda has joined #ruby
Limix has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby