<apeiros>
YourBestFriend: ah, you got "interleaved", I see.
<YourBestFriend>
20:08:14 YourBestFr…| >> x = {}; puts x['test']
<apeiros>
interrupted?
<apeiros>
spammed?
<sobering>
Hey guys, anyone familiar with using the OAuth gem? I've been trying to make authorized requests to the Discogs API and get constant 401's. I've been struggling with this for a few days already and just can't figure it out for the life of me. I've got a simple function here, is anything blatantly wrong?: https://gist.github.com/sobering/9029493
<YourBestFriend>
I don't know? what do you mean?
<YourBestFriend>
burried?
<apeiros>
YourBestFriend: there have been like 20 lines of conversation between that line and your question
<YourBestFriend>
OK
<apeiros>
but ok, sorry, I didn't see it.
ndrei has quit [Ping timeout: 248 seconds]
Rainicorn has joined #ruby
<YourBestFriend>
it's alright
LadyR has joined #ruby
koell has quit [Ping timeout: 240 seconds]
tylersmith has quit [Remote host closed the connection]
daidoji has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
<Jason>
benzrf: one other q?!
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<Jason>
benzrf: how would I reload an import?
<Jason>
benzrf: require './labelgenerator.rb'
<Jason>
how would I go and reload that, given I made changes to that?
<benzrf>
mm
<benzrf>
use load?
alk_ has joined #ruby
<benzrf>
although that could cause problems
Sloggerkhan has quit [Ping timeout: 264 seconds]
<benzrf>
it's safest to just restart the process
<Jason>
load?
<apeiros>
Jason: learn to manage your $LOAD_PATH instead of using relative requires.
<Jason>
benzrf: and, eh, it's a pain in the rear to keep restarting this when i'm making a change :(
ptandel_ has joined #ruby
<Jason>
apeiros: hmm? that might be an idea - shouldn't it be a gem though?
Sloggerkhan has joined #ruby
<ptandel_>
how can i fork multiple processes (4) and then wait for all of them to finish?
Rainicorn has quit [Ping timeout: 240 seconds]
<ptandel_>
specifically i'm running command line operations
<apeiros>
Jason: rubygems will automatically add a gem's lib dir to $LOAD_PATH, yes
<apeiros>
ptandel_: take a look at the "fork" gem (shameless plug)
<ptandel_>
link pls :D
sparrovv has quit [Remote host closed the connection]
<alk_>
question: if I define func1, and I want to call func2 in it, and then I can to define func2, and call func1 in it, how can I solve the chicken and egg problem of func1 not knowing about func2 ?
sailias has joined #ruby
<apeiros>
centrx: it's completely different
<centrx>
Damn, I wish benzrf were here. Too bad he is afk
<apeiros>
centrx: open3 is for any process, fork is for forking your current process only
<apeiros>
alk_: define them before calling them?
<alk_>
open3 is a combination of fork and exec with three pipes for stdin out and err.
<alk_>
apeiros: but how is that possible since I'm calling them from one another?
evenix has joined #ruby
vlad_starkov has joined #ruby
<apeiros>
alk_: *defining* a method doesn't call methods in its body
<apeiros>
`def foo; bar; end` # does not call bar
sobering has left #ruby [#ruby]
axl_ has joined #ruby
ecualombian has quit [Remote host closed the connection]
<alk_>
well.. once I run foo, it tells me that undefined local variable or method `bar' for main:Object (NameError)
<dsferreira>
When I try to use described_class.protected_methods under instance_eval doesn't work
funburn has quit [Ping timeout: 245 seconds]
<dsferreira>
the code I'm using is the following:
<alk_>
why are you using protected methods as an api in the first place?
<alk_>
isn't an api something that should be called from outside?
matchaw has joined #ruby
<dsferreira>
described_class.instance_eval('class << self; self.protected_methods.each{|m| public m};end')
matchaw_ has quit [Ping timeout: 246 seconds]
<dsferreira>
An API is something that guaranties the consistency of your classes
chrisja has quit [Quit: leaving]
<dsferreira>
I want to guarantee that my protected methods are not removed.
<dsferreira>
And assure to users of the class that they will be able to use them when subclassing it
PLejeck has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
<dsferreira>
When you make them part of the API you are telling to the users that they can be assured the API will not change until the major version of the Gem is not changed.
<dsferreira>
On the other end I will have the freedom to change my private methods at my will
<YourBestFriend>
are hashes ordered?
<alk_>
yes they are ordered.
<dsferreira>
In Yard doc you can activate documentation specifically for protected methods
<dsferreira>
alk_: they are?
<dsferreira>
was that changed recently?
danshultz has joined #ruby
f3ttX] has joined #ruby
<dsferreira>
Another question regarding this
<dsferreira>
How can we debug a code from within the instance_eval code
teenwolf has joined #ruby
<dsferreira>
Activating the documentation you tell your users what the protected methods are for
<alk_>
I have observed that they preserve order
<dsferreira>
They are part of the API. So they belong to the object.
<YourBestFriend>
"Prior to 1.9, behavior of enumerated hashes was not in the ruby specification and therefore was up to implementation -- basically, hash enumeration behavior/pattern was undefined by the language and implementations could really do whatever they want (random? sorted? insertion order? different method every time? anything goes!)
<YourBestFriend>
1.9+, hash enumeration is specified by the language to be in the order of insertion, so if you know your platform is 1.9+, you can rely on it.
<YourBestFriend>
"
<dsferreira>
You can find classes that deal with ordered hashes if you need it
<alk_>
I'm using 1.9.3p484
mlpinit has quit [Remote host closed the connection]
<firewater>
IC. I think I broke the code more now, but oh well. Just going to keep playing with it lol.
estebistec has quit [Remote host closed the connection]
<firewater>
IDK.
<firewater>
But I see what youre saying.
radic has joined #ruby
<firewater>
Not sure what it going on, but I'll keep playing with it.
<firewater>
IC why its broken.
<firewater>
Although this isn't realated to the last thing.
<benzrf>
krz:
<benzrf>
*k
<krz>
benzrf:
<firewater>
Its because i am testing the thing I'm passing it to see if it has a key and value. If it does, I want it to do something, if not value and only key, do something else.
<krz>
*k
jlast has quit [Remote host closed the connection]
<benzrf>
krz: :(
<firewater>
Problem is though, I am doing this thing.has_value?
<firewater>
That doesn't work though.
<benzrf>
use Hash#include?
<firewater>
Yeah, but I'm just vaguely testing it.
<firewater>
Not testing if it contains one thing.
io_syl has quit []
<benzrf>
huhn?
<firewater>
It if conains ANY value, I want it to do one thing.
yfeldblum has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sensen has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
speakingcode has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
guilund has joined #ruby
burlyscudd has joined #ruby
<guilund>
hey guys
<guilund>
how can i just remove a substring from a string?
<guilund>
its a very trivial thing and i cant get any info how to do it
<benzrf>
gsub?
<centrx>
string.gsub(substring, '')
vlad_starkov has quit [Ping timeout: 252 seconds]
<guilund>
oh ok
<guilund>
i mean, why so complicated?
bricker`LA has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<guilund>
anyways, thanks !!
pu22l3r_ has quit [Ping timeout: 260 seconds]
<centrx>
guilund, The next version of Rails has String#remove
e^0_ has joined #ruby
<guilund>
centrx cool
burlyscudd has quit [Ping timeout: 248 seconds]
e^0_ is now known as e^0
f03lipe has quit [Quit: Leaving]
<guilund>
i asked because, if you look at the String API, theres a ton of methods
<guilund>
and one trivial like this doesnt have
<guilund>
haha
<wannabe-ruby-dev>
speaking of trivial, just throwing this out here again. i swear all the documentation on rubygame is so old i'm wondering if i should use it but at the same time i think it is interesting https://gist.github.com/jonathanpopham/2450dce70b0e22f68f21
<centrx>
wannabe-ruby-dev, Did you try Homebrew?
<benzrf>
wannabe-ruby-dev: i use gosu!
<benzrf>
it is cool!
angusiguess has joined #ruby
<wannabe-ruby-dev>
i did
<Steve445>
How do you call a method from a module in another file? Do you have to require and include the module and class in the module?
Es0teric has joined #ruby
<centrx>
Steve445, That's the general idea
<wannabe-ruby-dev>
well, i mean i used brew to install some stuff
<wannabe-ruby-dev>
should i do brew install rubygems?
bkparso has quit [Quit: bkparso]
<wannabe-ruby-dev>
or something else? i'm confused
<centrx>
wannabe-ruby-dev, I don't know much about OS X. I just know that OS X Rubyists seem to use brew and do not have the issues you are having
<bricker`LA>
wannabe-ruby-dev: rubygems is now part of Ruby, you don't need to install it separately
<bricker`LA>
wannabe-ruby-dev: assuming you're on a newish version of ruby... I think that was added in 1.93?
<bricker`LA>
1.9.3*
<Steve445>
Centrx, i seem to be hitting a syntax issue. What if you have conflicting namespaces from the class or method names from different includes?
<centrx>
Steve445, Name your modules more appropriately
<wannabe-ruby-dev>
I'm on 2.1.0
<Steve445>
ha
angusiguess has quit [Ping timeout: 245 seconds]
<bricker`LA>
wannabe-ruby-dev: what's the problem?
<Steve445>
can't you dictate the specific module and class when calling the method?
yfeldblum has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
<bricker`LA>
Steve445: yes
<Steve445>
can you point me to the proper syntax? I have been searching but can't find a write up on it
<centrx>
wannabe-ruby-dev, Usually best to use actively maintained gems,
<wannabe-ruby-dev>
side question, could using both brew and rvm be a problem? I think I actually have two different copies of ruby 2.1.0. i accidentally the whole ruby
bkparso has joined #ruby
<wannabe-ruby-dev>
in two different paths
<wannabe-ruby-dev>
i have lots of problems
<wannabe-ruby-dev>
but I don't want to give up!
<wannabe-ruby-dev>
I am honored by your assistance
armyriad has joined #ruby
<wannabe-ruby-dev>
I will come back another day
<centrx>
wannabe-ruby-dev, Good luck!
michael_lee has joined #ruby
<centrx>
wannabe-ruby-dev, Having more copies installed should not break anything
edelFr0st has joined #ruby
<wannabe-ruby-dev>
wait one last thing
<wannabe-ruby-dev>
ah nevermind
<wannabe-ruby-dev>
goodbye
wannabe-ruby-dev has quit [Quit: Page closed]
joelroa has joined #ruby
bitri has joined #ruby
yfeldblum has quit [Remote host closed the connection]
amped24_ has joined #ruby
bitri has quit [Client Quit]
<amped24_>
any more news on the ruby launch
amped24_ has quit [Client Quit]
<centrx>
Into space?
fluve has quit [Remote host closed the connection]
<bnagy>
so in 2.1 they applied the overprotective mother patch to gem, it seems
lpvn has quit [Read error: Connection reset by peer]
<bnagy>
whines about unversioned dependencies, won't let me build if an old gemfile is still in the dir...
lpvn has joined #ruby
yacks has joined #ruby
thesheff17_ has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
lpvn has joined #ruby
s2013 has quit [Remote host closed the connection]
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
guilund has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
Wolland has quit []
robbyoconnor has joined #ruby
pu22l3r has joined #ruby
io_syl has joined #ruby
tangentstorm has joined #ruby
evenix has quit [Remote host closed the connection]
loxis has quit [Remote host closed the connection]
evenix has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
tangentstorm has left #ruby ["WeeChat 0.3.2"]
e^0 has quit [Quit: WeeChat 0.4.1]
ukd1 has joined #ruby
evenix has quit [Read error: Connection reset by peer]
evenix has joined #ruby
sensen has quit [Ping timeout: 265 seconds]
Sou|cutter has joined #ruby
snuffeluffegus has joined #ruby
sensen has joined #ruby
maletor has joined #ruby
yasushi has quit [Remote host closed the connection]
ukd1 has quit [Remote host closed the connection]
maroloccio has quit [Quit: WeeChat 0.4.2]
Salve has quit []
ukd1 has joined #ruby
sparrovv has joined #ruby
cmoylan has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
venkat_ has joined #ruby
jcs222 has quit [Quit: leaving]
koell has quit [Read error: Connection reset by peer]
endash has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
jonahR has quit [Quit: jonahR]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
codeFiend has quit [Quit: codeFiend]
<edelFr0st>
Hey Everyone. I don't know ruby. I'm having a problem with compass, it stopped working for normal user but still works for root even though it's the same excutable. Normal user says could not find compass >= 0
codeFiend has joined #ruby
m00nlight has joined #ruby
s2013 has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
lpvn has joined #ruby
jcs222 has joined #ruby
<bnagy>
well stuff doesn't just 'stop working'
sparrovv has quit [Ping timeout: 245 seconds]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ukd1 has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
<edelFr0st>
bnagy: Thanks
<bnagy>
my money is on an upgrade or something that moved paths
maletor has quit [Quit: Computer has gone to sleep.]
<bnagy>
how is ruby installed?
<edelFr0st>
It's been a few weeks since I've run compass and I probably did upgrade (via the arch package manager)
matthalliday has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
<edelFr0st>
Other gems are in .gem/ruby/2.1.0, compass is in 2.0.0. Tried reinstalling but no go
matthalliday has quit [Client Quit]
aspires has quit []
lpvn has quit [Read error: Connection reset by peer]
lpvn has joined #ruby
<bnagy>
this is kind of all specific to your environment
burlyscudd has quit [Ping timeout: 260 seconds]
<bnagy>
and I don't know yum ( arch is yum, right?)
nathancahill has joined #ruby
<bnagy>
the basic sanity tests are to make sure that you upgraded gem when you upgraded ruby
lpvn has quit [Read error: Connection reset by peer]
<bnagy>
and that you're running the versions / binaries you think you're running
bricker has quit [Ping timeout: 264 seconds]
joelroa has quit [Ping timeout: 245 seconds]
endash has joined #ruby
<bnagy>
after that a gem install should fix it, in an ideal world
daveops has quit [Ping timeout: 252 seconds]
cj3kim has quit [Read error: Connection reset by peer]
<edelFr0st>
Arch has it's own package manager called pacman
sensen has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
<edelFr0st>
I'll keep working on it. Thanks
angusiguess has joined #ruby
AlexRussia has joined #ruby
<bnagy>
ok well that, then :)
<bnagy>
anyway, this isn't really a ruby problem, it's a unix problem
Guest21723 has joined #ruby
evilbug has left #ruby ["Leaving"]
<bnagy>
but sadly, arch people will tell you they don't know how gem works, so ask ruby
<bnagy>
fun
Jetchisel has joined #ruby
<edelFr0st>
Not it's a ruby problem. It's ruby or gem specific. As stated I'm not a ruby developer but have the need of ruby tools from time to time
OdNairy has joined #ruby
<bnagy>
nah, it's the way the OS has packaged it
<bnagy>
anyway, hopefully someone will be along that knows arch
Steve445 has quit [Quit: Steve445]
snuffeluffegus has quit [Quit: Leaving]
angusiguess has quit [Ping timeout: 248 seconds]
mikepack has joined #ruby
phansch has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
slowcon has quit [Quit: slowcon]
sensen has joined #ruby
dseitz has joined #ruby
jerohm has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbueza has joined #ruby
newleaf has quit [Remote host closed the connection]
codeFiend has quit [Quit: codeFiend]
AlexRussia has quit [Ping timeout: 245 seconds]
gja has joined #ruby
maletor has joined #ruby
codeFiend has joined #ruby
Aryasam has joined #ruby
sdwrage has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
slowcon has joined #ruby
Aryasam has joined #ruby
thesheff17 has quit [Ping timeout: 245 seconds]
joelroa has joined #ruby
Atrumx has joined #ruby
phansch has quit [Quit: Leaving]
joelroa_ has joined #ruby
<benzrf>
its my birthday woo
<havenwood>
benzrf: happy birthday!
yfeldblum has joined #ruby
<benzrf>
B)
<benzrf>
hmm
Aryasam has quit [Ping timeout: 269 seconds]
IceDragon has quit [Quit: Space~~~]
joelroa has quit [Ping timeout: 252 seconds]
gja has quit [Quit: This computer has gone to sleep]
Wolland has joined #ruby
rm__ has joined #ruby
rm__ is now known as sassamo
maletor has quit [Quit: Computer has gone to sleep.]
joelroa_ has quit [Ping timeout: 245 seconds]
gja has joined #ruby
anarang has joined #ruby
<dachi>
hello.
<dachi>
i use textmate for editing but
<dachi>
i just wondered if Xcode supports editing ruby
edelFr0st has left #ruby ["Time is an illusion. Lunchtime doubly so."]
<dachi>
is anyone here that has success with this?
ktosiek has joined #ruby
edelFr0st has joined #ruby
<havenwood>
dachi: Xcode works fine with Ruby but unless you're actually using Cocoa stuff it is too heavy and not as nice as the best text editors.
<sed_life_better>
i'll buy a new keyboard before i'll be bothered to clean this one!
<havenwood>
sed_life_better: Do you care how many dups, etc? Example input and expected output make it way easier for us to help. Checkout: a = {:price => 100, :price => 250, :price => 100}; a.detect { |price| !a.count(price).zero? }
<sed_life_better>
havenwood: no idea of knowing how many dups, data source may change
<havenwood>
sed_life_better: But do you care how many, or just that they are dups?
<sed_life_better>
working on example input/output
<sed_life_better>
well there's going to be a product rating as part of each :product_key, so if there are dups, whichever has the best rating should win
<havenwood>
sed_life_better: So you need to know how many dups each dup is ?
<sed_life_better>
havenwood: i think i only need to know how many dups there are for the purpose of knowing how many of them to compare against one another in the ratings category
endash_ has joined #ruby
<havenwood>
sed_life_better: sounds like you should iterate over and populate a hash
<diegoviola>
how do you convert that yunk to rest?
<diegoviola>
it's a mess
<shevy>
god what an ugly pile of shit
swaglord546 has quit [Quit: Byebye...]
dingus_khan has quit [Remote host closed the connection]
Wolland has quit []
<shevy>
@collection.save!
<shevy>
haha
krz has quit [Ping timeout: 240 seconds]
<diegoviola>
i see this in the routes file:
<diegoviola>
match 'ZenasMatthews' => 'collection#show', :collection_id => 7
<diegoviola>
match 'JuliaBrumfield' => 'collection#show', :collection_id => 1
<diegoviola>
but there's no #show method in the CollectionController
io_syl has quit []
Zunonia has quit [Ping timeout: 245 seconds]
yeticry_ has joined #ruby
<shevy>
that's what you get for using highly domain specific projects
<diegoviola>
i'm about to die if i continue with this
<diegoviola>
shevy: it's not my project
<shevy>
article.save!
<diegoviola>
i was just told to improve this shit
<diegoviola>
but i'm not even sure where to start
<shevy>
find the smallest piece you can work on
<pipework>
diegoviola: Try asking in #rubyonrails
tylersmith has quit [Read error: Connection reset by peer]
<shevy>
I usually start by changing the ruby code to code I would write naturally
echevemaster has quit [Remote host closed the connection]
burlyscudd has joined #ruby
<pipework>
<shevy> pipework.sucks = true
<shevy>
like if I find any @@ I go in for the final kill instantly
<shevy>
who the fuck is pipework
<diegoviola>
i will just delete that class and start a new one
mocfive has quit [Ping timeout: 260 seconds]
<shevy>
ah and the .save! methods
<Nilium>
Not ruby-related, but: I have a copy of Monaco from the Humble Bundle thingy today that I don't want, would anyone else want it?
<shevy>
I dunno what they do but I already hate them
<benzrf>
Nilium: fuck yeah!
<benzrf>
Nilium: also its my birthday
<shevy>
look how to trigger benzrf's wake up
<pipework>
diegoviola: Mind that shevy probably doesn't have a clue about what he's talking about. He sure is entertaining though!
<benzrf>
this can be ur present
<benzrf>
to me
<shevy>
pipework are you even on rubygems.org man
<pipework>
shevy: yeahbru
yeticry has quit [Ping timeout: 264 seconds]
Xiti has quit [Ping timeout: 252 seconds]
<Nilium>
I have a hard time believing the birthday thing, but ok
<Nilium>
PM incoming.
<shevy>
there is no match for "pipework" there
krz has joined #ruby
Zunonia has joined #ruby
<shevy>
Nilium benzrf is now 17
<pipework>
shevy: And?
<shevy>
pipework you said you are there. you are not
<pipework>
shevy: Sure I'm there. Do you know what pseudonyms are?
vlad_starkov has quit [Ping timeout: 272 seconds]
<shevy>
pipework no I don't know
<shevy>
pipework but you said you are there and you are not
<pipework>
shevy: k
<Nilium>
Happy porpoise day nevertheless
<Nilium>
May the great porpoise spare your life for another year
<pipework>
Nilium: I wish I had a porpoise in life.
<shevy>
benzrf how long will you use ruby?
<shevy>
I like tortoise day
<benzrf>
until i realize that it was lisp i wanted all along
<shevy>
omg
<shevy>
why do retrocoding?
<shevy>
lisp was hip back in the second world war
<Nilium>
Gambit Scheme is my god.
<Nilium>
I just wish I had a use for it.
<shevy>
lol
dukz has joined #ruby
<shevy>
sounds like haskell
burlyscudd has quit [Ping timeout: 246 seconds]
<Nilium>
Scala is how I compromise on functional and imperative programming
<Nilium>
Since I can use it for Android dev.
<shevy>
Androgen dev sounds cool
<pipework>
Nilium: I use ruby to do those.
<Nilium>
So now I have two apps using Scala out there, and I shall continue my efforts to (violently) convert Android devs to using it.
<Nilium>
I don't really like the idea of shipping a Ruby interpreter with an Android app
<dseitz>
You don't
xcv has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
<Nilium>
And so far I'm not aware of any actual Ruby implementations that compile directly to JVM bytecode
<Nilium>
Though Mirah is an interesting take on the idea
Xiti has joined #ruby
<havenwood>
Nilium: JRuby
<Nilium>
At any rate, Scala is a lot like Ruby syntactically, so it works out
speakingcode has quit [Ping timeout: 246 seconds]
<Nilium>
I have strong and profanity-strewn opinions of JRuby.
<pipework>
My condolences.
<dseitz>
RubyMotion's translation of Ruby is interesting; it's commercial though
angusiguess has joined #ruby
<Nilium>
RubyMotion's interesting but has some limitations (obviously). I wouldn't be too surprised if they try to take on an Android target, but it probably wouldn't be 100% compatible with the Mac/iOS targets
Matriks has joined #ruby
rismoney has quit [Ping timeout: 252 seconds]
__greg has quit [Quit: __greg]
<Nilium>
Also I didn't want to spend $200 on it when I don't really do iOS stuff and I just use Obj-C for the small Mac things I do
<Nilium>
Since I don't get paid to do iOS/Mac thingies
<Nilium>
Though it would be nice if I did, because then I could justify $200 as an experiment.
<Nilium>
Oh well, if I manage to get some more work I can set aside money for a RubyMotion license just to have it for the sake of having it
<pipework>
I'll just happily JRuby along. It's my favorite ruby implementation.
<benzrf>
thanks again Nilium :D
cj3kim has quit [Read error: Connection reset by peer]
<shevy>
god, a java man, I should have known
<Nilium>
Whichever Ruby implementation works for you
cj3kim has joined #ruby
<pipework>
shevy: JVM.
<Nilium>
I can't really get along with JRuby because they really hate the C API
<shevy>
JVM is cool but you need java :(
<Nilium>
Which is understandable since I'd guess it's a huge pain to support in JRuby
<pipework>
Nilium: The C API?
<shevy>
if they could get rid of java then it would be AWESOME
<pipework>
shevy: You don't need to write Java, but you get full JVM interop.
mikepack has joined #ruby
<Nilium>
For C extensions.
<Nilium>
i.e., the one in MRI.
<Nilium>
And to a lesser extend rbx.
<pipework>
I don't understand what you mean. The experimental C extension support?
supersym has joined #ruby
<Nilium>
*extent
<Nilium>
Damn you fingers
<dseitz>
Yeah. But leveraging LLVM under Android would actually result is worse performance
angusiguess has quit [Ping timeout: 246 seconds]
sassamo has joined #ruby
<Nilium>
Do you mean experimental from the standpoint of JRuby?
armyriad has quit [Ping timeout: 265 seconds]
<pipework>
Nilium: You know that the API is implemented in the implementation, right?
<dseitz>
The NDK is not designed to enable truly native applications; just native extensions to a Java application
Matriks has quit [Ping timeout: 272 seconds]
thomasxie has joined #ruby
<Nilium>
Yes. MRI is basically the reference implementation, however, so its C API gets to be considered the C API.
<pipework>
And the C extension support in JRuby is experimental. Are you complaining about that or just the API itself?
venkat_ has quit []
<Nilium>
It's not experimental anymore, they deprecated it.
<Nilium>
I guess you didn't know about that part.
<centrx>
Seems unlikely
<Nilium>
Basically, JRuby wants nothing to do with supporting it, so they axed it, which is a reasonable thing to do since it's not very pleasant to support.
armyriad has joined #ruby
<Nilium>
It just makes JRuby unusable for my purposes.
<pipework>
Ah, it's just disabled.
Matriks has joined #ruby
mikepack has quit [Ping timeout: 248 seconds]
iamdoo2 has joined #ruby
<dseitz>
There are lot of Java implementations of some popular gems
<pipework>
Also, I never have problems with it, I guess I'm just not dependent on c extensions where I can't work something up myself in another JVM language. Not really JRuby's fault, but your loss.
<Nilium>
Far as I'd read, it was deprecated in 1.7
<pipework>
You didn't read far. It was disabled with likelyhood of removal.
<Nilium>
I'd consider that close enough to deprecation.
cj3kim has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
<Nilium>
Oddly enough, they work better than the other FFI bindings.
m00nlight has quit [Read error: Connection reset by peer]
<Nilium>
Funny how that decision worked out in my favor.
top4o has joined #ruby
starfox21 has joined #ruby
<bnagy>
FFI is still maintained
<bnagy>
that was just scenedrama
<Nilium>
If drama is enough to kill ffi, I'm not touching it.
<bnagy>
it didn't kill ffi
<Nilium>
I would rather stick with libffi and be very content.
<Nilium>
Y'know, 'cause libffi kind of has a better history.
<Nilium>
And it's in C, which means you can write your cutesy little FFI bindings for libffi
<Nilium>
And then you can rewrite Fiddle's libffi support using FFI bindings to libffi
<Nilium>
That could be interesting.
<Nilium>
In the meantime, I'll keep using what works.
<bnagy>
for your one use case
<Nilium>
Y'know, not worrying about whether a project is maintained or not.
<bnagy>
because you wrote your code in the least versatile way possible
<bnagy>
GOOD FOR YOU!
<dseitz>
And the winner is... Xamarin
<pipework>
bnagy: I wonder if he gets paid to lock people into cruby for no reason.
<Nilium>
I use MRI, so it's for the use case of people who use MRI.
<bnagy>
15:19 < Nilium> And so far I'm not aware of any actual Ruby implementations that compile directly to JVM bytecode
<shevy>
03:14 <Nilium> I like asian monkeys
<pipework>
Nilium: Sounds unnecessary, but you clearly enjoy it, and I'm lucky enough to not have to interact with what you write so I'm happy too.
<pipework>
We're all winrars here.
<shevy>
pipework does winrar have good documentation?
<pipework>
shevy: I can't read.
<Nilium>
Indeed.
<Nilium>
Except the asian monkeys part.
<shevy>
nobody likes dem monkeys :(
<Nilium>
pipework doesn't believe in words.
m00nlight has joined #ruby
<shevy>
pipework believes in the holy documentation (if he could read that is)
<Nilium>
pipework believes in pipes that funnel what might be words through the brains of all humans.
ukd1 has joined #ruby
<shevy>
ewwww
<shevy>
you don't wanna know what goes in pipes...
<pipework>
shevy believes in delegating thought to others. Probably a safe bet.
<shevy>
pipework I always liked the social setup of the BORG
<Nilium>
Also, I am allowed to mildly weirded out when people act weirded out that I don't do what they prefer to do just because they're convinced their choice is the Right Choice, right?
<Nilium>
*to be
ukd1 has quit [Remote host closed the connection]
<shevy>
people are very opinionated
<shevy>
it comes with old age
jonah_k has quit [Remote host closed the connection]
<dseitz>
Really, cause my 3 year old is very opinionated
ukd1 has joined #ruby
<shevy>
well he should get a better dad
<Nilium>
'Cause after ten years of hearing people espouse the Right Choice (it's been Java, C# and .NET, a few people I know were really gung-ho about Xamarin, etc.), it's kind of old.
<pipework>
It just seems funny to see someone unnecessarily locking themselves into something. It's kind of like, "lol... shh, just watch."
<shevy>
pipework but you like java too!
<pipework>
shevy: Do I? I like the JVM.
<Nilium>
I'm not locking myself into something, it's hobby stuff.
<shevy>
I do too
<pipework>
Nilium: the things you produce are.
<dseitz>
Not sure why I would not want her to have an opinion lol
<bnagy>
Nilium: you're the one with the strong opinions about jruby in general and the FFI project in general
ecualombian has quit [Remote host closed the connection]
<bnagy>
I was just pointing out that they're baseless
<pipework>
dseitz: What if she agrees with you though?
<bnagy>
I don't really care what you do
cj3kim has quit [Read error: Connection reset by peer]
<Nilium>
I said I have strong opinions about jruby because the phrasing sounded funny to me. -_-
<Nilium>
I do not actually have strong opinions about jruby.
<Nilium>
I just care about whether C extensions are supported.
<dseitz>
pipework: Occasionally we agree on things hehehe
cj3kim has joined #ruby
<pipework>
Ignorance comes in, silly opinions come out, you can't explain that.
<shevy>
just stop typing pipework :)))
vlad_starkov has joined #ruby
<shevy>
Nilium has strong opinions too, so what!
<shevy>
he prefers C over java, can you fault him for that?
<pipework>
shevy: Have you ever considered drinking your weight in bleach? :D
<bnagy>
I mean, C extensions are the biggest thing holding MRI perf back, tbh
<Nilium>
As for the things I produce, they can be ported to other stuff if I need to since they're all MRI C extensions that wrap other C APIs, so it's not a huge issue.
<Nilium>
There's no reason to port them though.
Hobogrammer has quit [Write error: Connection reset by peer]
<shevy>
pipework hmm no but there are some great drinks out there
<pipework>
shevy: I'm sure!
Hobogrammer has joined #ruby
<bnagy>
I bet the yarv guys would looove to kill em
<shevy>
chocolate liqueur
<Nilium>
If they do, then I expect there'll be a standard library alternative by then.
<Nilium>
Y'know, like Fiddle.
ukd1 has quit [Ping timeout: 251 seconds]
kennym has joined #ruby
<shevy>
Fiddle as a name does not inspire great confidence
<bnagy>
nor does the ruby stdlib
<shevy>
lol
<Nilium>
Because the name's what matters -_-
<bnagy>
a lot of that stuff is just awful
<Nilium>
Can we collectively agree on a desire to push shevy into a meat grinder?
olivier_bK has quit [Ping timeout: 246 seconds]
<shevy>
:(
<bnagy>
huge sections of it are used by basically nobody because the gem alternatives are better
<Nilium>
It needs a good stripping, but that's not really relevant to whether or not there should be a standard library alternative to C extensions.
<bnagy>
but I guess that's all politics :/
<shevy>
oh speaking of gem... I found out yesterday that the debian-ruby at work has readline support, which made me very happy. cursor up key works for history on my windows machine there \o/
<shevy>
and tab completion
<shevy>
good stripping is always good
<Nilium>
The main important thing to me right now is that I got to grab the gui gem name, so at least I get to lock that one up for a while
<pipework>
What is this silly named fiddle thing?
<bnagy>
gemsquatting!
<bnagy>
pipework: the child of DL, afaik
jprovazn has joined #ruby
<pipework>
bnagy: DL?
<Nilium>
It's not squatting, I am actually working on a gem
speakingcode has joined #ruby
<bnagy>
DL died because it just never worked, ever
<shevy>
bnagy dunno if it is politics, there is this huge inertia to overcome to get to change anything... optparse will probably be in there for the next 15 years ...
<Nilium>
Far as I know, it's just DL renamed.
<Nilium>
With patches.
<bnagy>
yeah for linking to binary libs
<shevy>
whoever came up with end.parse!(ARGV) should be killed
<centrx>
shevy, Don't you remember? It was you.
pigzzcanfly has joined #ruby
ukd1 has joined #ruby
<shevy>
centrx NEVER! using ARGV directly like that is so wrong
<Nilium>
I suspect Matz is going to be another problem for MRI, but he's weird.
<benzrf>
shevy: i feel like youve said that before
<shevy>
yeah
<shevy>
it makes me angry
<benzrf>
what's DL
<Nilium>
He seems opposed to threads, and that's not a good sign
chipotle has quit [Quit: cya]
<shevy>
matz is always right
dingus_khan has joined #ruby
<benzrf>
oh man is matz as lame as gvr
<pipework>
I think that choosing to have a GVL is going to hold cruby back indefinitely.
<benzrf>
cruby?
ukd1 has quit [Client Quit]
<bnagy>
this iw what I was saying before. What's the #1 reason to keep the GIL?
<pipework>
bnagy: It's a GVL
SteveBenner09 has joined #ruby
<centrx>
Makes threading implementation easier
<pipework>
The VM is what's locked around, not the interpreter.
zigomir has joined #ruby
<bnagy>
same same
<pipework>
Only in the same way that Ruby is just C with syntax sugars.
<bnagy>
centrx: right, and the issue with unlocking threading is basically cexts
SteveBenner09 has quit [Client Quit]
<Nilium>
The issue with unlocking them is C extension authors not being safe, it's not the existence of C extensions
<bnagy>
which is also why jruby doesn't support cexts, and taadaa has true parallel threads
<Nilium>
I believe the Rubinius folks have covered this ground before.
<pipework>
Mmm, real threads without locks around the VM...
<pipework>
Nilium: JRuby is older, I believe.
vlad_starkov has quit [Remote host closed the connection]
centrx has quit [Quit: Leaving]
andy___ has joined #ruby
andy___ is now known as Guest83799
<Nilium>
No, I mean they've gone over the whole global lock vs. cexts thing before
<Nilium>
In a blog post.
cj3kim has quit [Remote host closed the connection]
<Nilium>
Might've also been in an interview. I forget, it's been a while since I read it.
<pipework>
Ah, and nutter talks about it.
<pipework>
While I admire many of the cruby core contributors, JRuby is just too awesome for me to not love.
<Nilium>
I consider them mildly insane because of the Rubinius X stuff, but that's another issue.
<benzrf>
cruby?
dingus_khan has quit [Remote host closed the connection]
<benzrf>
isnt it yarv?
<Nilium>
JRuby is certainly awesome at what it does.
cloud|nix has quit [Quit: Ex-Chat]
<pipework>
Quite a few people refer to it as cruby.
<bnagy>
well to me yarv is just an ongoing research project. They're having fun and all, and they're the reference impl
workmad3 has quit [Ping timeout: 245 seconds]
<Nilium>
I call it MRI even though that's actually probably inaccurate now.
<bnagy>
but it's kind of the worst interpreter available
<pipework>
bnagy: What about the .NET one? :D
<Nilium>
Isn't that one dead?
axsuul has joined #ruby
<bnagy>
yeah years dead
<bnagy>
kind of sadly, tbh
<Nilium>
Or at least in some sort of weird stasis due to lack of maintainers, I think.
dukz has quit [Remote host closed the connection]
<bnagy>
I could really use that for windows work :(
havenwood has joined #ruby
claymore has joined #ruby
dukz has joined #ruby
<Nilium>
IronPython seems to occasionally goes through periods of being mostly dead just 'cause open source for .NET stuff is kind of lacking
<Nilium>
*open source enthusiasm
decoponio has joined #ruby
Guest83799 has quit [Ping timeout: 260 seconds]
<pipework>
Jython got sponsored a while back.
<Nilium>
Oooo
havenn has joined #ruby
<pipework>
But I mean, who wants to use a language with crappy lambdas on a VM that just got worthwhile lambdas?
<benzrf>
what's with 'iron' for .net?
<Nilium>
I do. Android's crappy awful lousy VM doesn't support 'em.
<pipework>
diegoviola: Don't cross-post channels without announcing the cross-post at least.
<diegoviola>
ok
sassamo has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
joonty has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<diegoviola>
pipework: you could also use nicer language
<diegoviola>
05:45:12 pipework | diegoviola: Just go fucking work.
<pipework>
diegoviola: I use sentence enhancers.
Ch4rAss` has joined #ruby
Ch4rAss` has quit [Quit: Reconnecting]
bal has quit [Quit: bal]
banister has joined #ruby
Ch4rAss has joined #ruby
bal has joined #ruby
dawkirst has joined #ruby
<pipework>
You're welcome to ignore me though. You did post that same chunk of code yesterday when you were complaining about the same thing. And you did come pandering for advice on how to do your job when you did the same yesterday as well. One would think there comes a time when it's appropriate to just "Program, motherfucker."
dangerousdave has joined #ruby
philcrissman has quit [Read error: Connection timed out]
RoryHughes has joined #ruby
philcrissman has joined #ruby
evenix has quit [Remote host closed the connection]
dubios has quit [Excess Flood]
speakingcode has quit [Ping timeout: 265 seconds]
<diegoviola>
pipework: yeah ok, please mind your language though
evenix has joined #ruby
blackmesa has joined #ruby
dubios has joined #ruby
<pipework>
diegoviola: I do mind it. I mean every damn word.
SteveBenner09 has quit []
alexherbo2 has joined #ruby
endash_ has quit [Quit: endash_]
tolstoi has quit [Ping timeout: 245 seconds]
popl has joined #ruby
popl has joined #ruby
<diegoviola>
and i don't give a shit what you have to say, stop talking to me already
dukz has quit [Read error: Connection reset by peer]
<diegoviola>
ok english is not my first language and things like "fucking" and "motherfucker" are a little offensive
dukz has joined #ruby
<diegoviola>
rude
nvrch has joined #ruby
<diegoviola>
but i get this is not the channel to discuss that either, so sorry if i was annoying
Lewix has joined #ruby
funburn has joined #ruby
<pipework>
I regret that you were offended by my choice in language. In the future, I implore you to selectively ignore anything I might say that would offend your sensibilities, even though you only quoted half of what I said to you.
<diegoviola>
no problem
<diegoviola>
sorry about my use of bad language also
fluve has joined #ruby
TMM has quit [Ping timeout: 265 seconds]
<pipework>
I think it was use of great language. A good use of great language, even.
<diegoviola>
i don't think so, i don't like being rude and i regret it
olivier_bK has joined #ruby
<diegoviola>
so sorry about that
<dingus_khan>
?
<pipework>
You may feel as if you were rude, but I was not offended nor do I consider it rude to use English words unless one means them in a rude manner, but I didn't read into your message in a way that caused me to think you intended to be rude. So no harm no foul?
RoryHughes has quit [Remote host closed the connection]
roolo has joined #ruby
RoryHughes has joined #ruby
<diegoviola>
ok
timonv has joined #ruby
havenwood has quit [Remote host closed the connection]
JBreit has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
Al___ has joined #ruby
burlyscudd has joined #ruby
JBreit has joined #ruby
joelroa has joined #ruby
burlyscudd has quit [Ping timeout: 241 seconds]
TMM has joined #ruby
TMM has quit [Client Quit]
TMM has joined #ruby
vlad_starkov has joined #ruby
mengu has joined #ruby
ephemerian has joined #ruby
marr has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
deadlock has joined #ruby
kimsebub_ has quit [Remote host closed the connection]
francisfish has joined #ruby
makara has joined #ruby
mikecmpbll has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mikepack has joined #ruby
hiall has quit [Quit: hiall]
joelroa has quit [Ping timeout: 246 seconds]
elaptics is now known as elaptics`away
dzhulk has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
shaunbaker has joined #ruby
claymore has quit [Quit: Leaving]
sassamo has joined #ruby
greenarrow has quit [Quit: 500]
m1lt0n has joined #ruby
rippa has joined #ruby
ghr has joined #ruby
marcdel_ has quit []
ghr has quit [Max SendQ exceeded]
sassamo has quit [Ping timeout: 245 seconds]
greenarrow has joined #ruby
shime has joined #ruby
ikaros has joined #ruby
timonv_ has quit [Remote host closed the connection]
relix has joined #ruby
Zunonia has quit [Quit: Computer has gone to sleep.]
elaptics`away is now known as elaptics
elaptics is now known as elaptics`away
JustMozzy has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
DaniG2k has joined #ruby
sn0wb1rd has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
fluve has quit []
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
cj3kim has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
cj3kim has joined #ruby
alexherbo2 has joined #ruby
hiall has joined #ruby
top4o has quit [Read error: Operation timed out]
rdark has joined #ruby
lemonsparow has joined #ruby
lemonsparow is now known as lemonsparrow
hiall has quit [Client Quit]
nomenkun has joined #ruby
sk87 has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby
karupanerura is now known as zz_karupanerura
starfox21 has quit [Quit: starfox21]
fgo has quit [Remote host closed the connection]
sk87 has quit [Client Quit]
sk87 has joined #ruby
rdark has quit [Quit: leaving]
sk87 has quit [Client Quit]
sk87 has joined #ruby
ghr has joined #ruby
ghr has quit [Max SendQ exceeded]
kitak has quit [Remote host closed the connection]
ghr has joined #ruby
aaronmcadam has joined #ruby
rdark has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
Al___ has quit [Ping timeout: 240 seconds]
rdark has quit [Client Quit]
rdark has joined #ruby
hamakn has quit [Remote host closed the connection]
timonv has joined #ruby
mercwithamouth has joined #ruby
chihhsin has quit [Quit: leaving]
Mongey has joined #ruby
nihils is now known as nichtdiebohne
yfeldblum has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
lll has joined #ruby
<lll>
hello all
rdark has joined #ruby
prc has joined #ruby
<lll>
I am coming to ruby from the world of strongly typed languages
<lll>
this is my first experience working with scripting languages, if we exclude javascript
<lll>
now my question is the following
<lll>
if I define a method in the Team Model class
<lll>
can I call in a static fashion like so -> Team.custom_method(params)
<lll>
or must I first instantiate the Team and then call it on it?
<lll>
in other words, does ruby differentiate between object methods and class methods?
<Nilium>
If you define it as a singleton method, you can call it like that.
rdark has quit [Client Quit]
ghr is now known as garethrees
<jhass>
lll: short answer yes, def foo is an instance method, def self.foo is a class method
<Nilium>
Also e.g., class Foo ; class << self ; def foo ; "bar" ; end ; end ; end
rdark has joined #ruby
rdark has quit [Client Quit]
garethrees is now known as ghr
<jhass>
lll: the longer answer is that both are instance methods, the later being defined on your classes singleton class
TripTastic has joined #ruby
<diegoviola>
what do you guys use for web development in ruby?
<Nilium>
class << self basically just opens the singleton class for you to mess with
klaut has joined #ruby
<tobiasvl>
lll: ruby differentiates between instance methods and class methods, yes. but in ruby classes are objects too (of the class Class). so a class method is a singleton method on the class object.
<diegoviola>
is everyone using rails or something else?
<Nilium>
I don't use Ruby for web development
<lll>
I see
<tobiasvl>
diegoviola: i use sinatra
<lll>
thanks for the feedback fellows
<lll>
appreciate it
rdark has joined #ruby
rdark has quit [Client Quit]
<diegoviola>
well what is everyone using?
<Nilium>
I use it for horrible, horrible things.
<Nilium>
Like OpenGL.
<certainty>
diegoviola: i use bare sockets
<diegoviola>
is sinatra ok for large applications?
<jhass>
diegoviola: the appropriate tool for the task, from bare rack over sinatra to rails
<diegoviola>
i see
Jb_ has left #ruby [#ruby]
JBreit has quit [Ping timeout: 248 seconds]
phansch has joined #ruby
gnephiak has joined #ruby
<diegoviola>
is there a guide out there how to write apps on top of rack directly?
<Nilium>
Also kind of depends on what your idea of "large applications" is, really.
<diegoviola>
always wanted to know how to
<pontiki>
Nilium writes web apps by staring hard at the server
<Nilium>
I write web apps by not writing web apps and instead writing client-side tools to generate static HTML and then I just rsync that.
<pontiki>
read teh rack readme, that's actually a great place to start
<Nilium>
Because I hate servers.
rdark has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
<diegoviola>
ty
<pontiki>
oo, are you writing static generators, Nilium ?
<Nilium>
I also hate net coding, but that's probably just me.
epireve has joined #ruby
<pontiki>
it's one of my current fascinations
<Nilium>
My blog is static HTML, so yes
<pontiki>
err..
<certainty>
mine too
<pontiki>
mine are too
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nilium>
I'm slowly rewriting the horrible gem I wrote to generate it
chihhsin has joined #ruby
<pontiki>
but i'm using someone else's code to gen them
<pontiki>
contributing and wotnot
<Nilium>
I wrote my own because I was too lazy to learn to use Jekyll.
<Nilium>
I am an exceptionally productive lazy person.
<pontiki>
the best always are
kaspergr_ has joined #ruby
<pontiki>
i am liking middleman
<pontiki>
and i spend a lot of time with jekyll
<pontiki>
and helping people recover from using octopress, it seems....
<Nilium>
I was actually fiddling with this slate thing that uses middleman today, I need to look into that some more
mengu has quit [Remote host closed the connection]
shime has quit [Ping timeout: 245 seconds]
<Nilium>
slate's actually not useful for me, it turns out, but it's a really neat idea
<Nilium>
I think I tried to set up octopress once and ended up screaming at my computer
mehlah has joined #ruby
<pontiki>
i cooked up an rss reader that's a static site
<pontiki>
that is apropriate
<Nilium>
Metaphorical screaming, that is -- I don't like screaming in real life.
burlyscudd has joined #ruby
<diegoviola>
what do you guys recommend for refactoring? i have a codebase that was coded in rails 2.x and we are migrating to rails 3.2.x but the app is non-rest and i'm not even sure where to start
<diegoviola>
i want to move it to rest
<Nilium>
Not very fond of my voice when it's above normal speaking levels. It's pretty weird.
<Nilium>
Like apparently it turns into this booming godlike voice and it scares the neighbors
mehlah_ has joined #ruby
mehlah_ has quit [Client Quit]
<diegoviola>
i think i will just rewrite this whole thing
<diegoviola>
much easier
<Nilium>
Refactoring: grep and then very carefully edit the code.
<certainty>
diegoviola: be careful with that
<diegoviola>
certainty: careful with what exactly?
<certainty>
diegoviola: wanting to rewrite it
hiall has joined #ruby
dzhulk has quit [Quit: Leaving.]
<certainty>
it's tempting but it often isn't what you want
<Nilium>
I should go brush my teeth..
* Nilium
wanders off to do that.
<pontiki>
unless you wrote the old one yourself
<diegoviola>
pontiki: i didn't wrote the old one myself
<pontiki>
then the old one becomes just the learning platform for the real one
<diegoviola>
sure
<pontiki>
yeah, then be careful
codenapper has quit [Read error: Connection reset by peer]
<diegoviola>
"don't fix what isn't broken comes to mind"
<pontiki>
it quickly devolves to shaving a herd of yaks
<diegoviola>
but this app looks broken
<Nilium>
Also don't optimize without data.
<Nilium>
Lots of things in Ruby look broken.
<pontiki>
well, here's the question: when the users use it, what doesn't work for them? what bugs show up that require fixing?
<diegoviola>
why is that
<pontiki>
etc etc
<Nilium>
It's just kind of how Ruby looks all the time.
<certainty>
hah!
<diegoviola>
Nilium: is there any fundamental reasons to that though?
nism has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
<Nilium>
Ruby coders are ex-perl coders and sometimes they do things that at first glance don't make sense and I'm obviously just making this up
mehlah has quit [Ping timeout: 248 seconds]
<Nilium>
The only programming language that looks broken all the time is INTERCAL.
<diegoviola>
does that have anything to do with it?
<Nilium>
The point of the joke is just that looking broken doesn't necessarily mean it is
dzhulk has joined #ruby
<pontiki>
oh, hey! another EPL
<certainty>
diegoviola: it's just that the desire to rewrite a codebase often come from the fact that one did not fully grok it
<diegoviola>
certainty: sure
elaptics is now known as elaptics`away
<diegoviola>
i agree
<certainty>
beware fo the grand refactorings
<certainty>
they almost never work as expected
<Nilium>
So, like they've been saying, make sure you're doing it for a good reason
lkba has quit [Ping timeout: 252 seconds]
<diegoviola>
but the thing is the code in this app looks really broken, it was written in Rails 2.x and it's not restful at all, links look like this: /show?collection_id=20&ol=l_hd_c_link
<diegoviola>
very php-like
<diegoviola>
rails 4.x is all about REST, etc now
<Nilium>
So?
<Nilium>
Honestly, is that a big deal?
<diegoviola>
probably not, but i want to make it more up to date with standards
<pontiki>
wow, 1972! i wonder why i don't remember it?
Giorgio has joined #ruby
<Nilium>
I'm not a web dev, so is it just mandatory to follow trends?
vlad_starkov has joined #ruby
<pontiki>
err
<diegoviola>
the thing is that this app doesn't have any kind of tests at all and if i change anything the whole thing breaks
<pontiki>
trends are trends because ppl follow them
<Nilium>
pontiki: INTERCAL?
<pontiki>
mandatory? no
<pontiki>
Nilium: ya
<Nilium>
It's not a real language, or at least wasn't originally
<pontiki>
yus, Nilium, hence my EPL comment above
<Nilium>
I think someone might have tried to implement it, but it was originally devised as a joke
<Nilium>
So that might be why
<diegoviola>
i guess i'll just forget it, i don't think it's worth my time
<diegoviola>
:(
<pontiki>
or the CS dept was studiously trying to be all serious n shit
<Nilium>
I guess it depends on how far elaborate programming jokes travel
joelroa has joined #ruby
<Nilium>
diegoviola: Whether it's worth your time or not is entirely up to whether it's going to improve the software, and not in a hand-wavey "it's RESTful now!" way.
<pontiki>
diegoviola: this is a convo you need to have with your bosses. rewriting an app is a business decision if it's for a business
<diegoviola>
why is updating code to a new rails version such a pain in the a**
<Nilium>
Like there have to be really serious huge improvements to justify a complete reubilt
<Nilium>
*rebuild
<Nilium>
Holy crap fingers
<Nilium>
Because Rails hates you and everything you love.
<Nilium>
That one's not a joke.
<pontiki>
s/rails/software/
<Nilium>
It is an inherently mean and evil-spirited framework.
<Nilium>
That too, but Rails in particular.
<diegoviola>
the other programmer is fine with updating the rails version
<pontiki>
nar
<diegoviola>
he actually is the one who started doing that
rdark has quit [Quit: leaving]
<pontiki>
every framework and language major version upgrade entails much hard and long work
<Nilium>
Except Python 3.
noop has joined #ruby
<diegoviola>
this app started on rails 1.x
<pontiki>
i don't python
rdark has joined #ruby
<diegoviola>
now they want to switch to 3/4
<Nilium>
With Python 3, I have no idea why people are complaining.
<Nilium>
Were there that many braceless print statements?
<pontiki>
but making a generl statement as i did is not intended to be aboslute
mikepack has joined #ruby
<diegoviola>
would you guys bother with upgrading?
<pontiki>
diegoviola: that's a case-by-case decision
<diegoviola>
sure
<Nilium>
I won't answer that 'cause I am not a rails person and have an inherent dislike of it
<diegoviola>
i see
<diegoviola>
what you don't like about rails exactly? everything?
joelroa has quit [Ping timeout: 252 seconds]
<pontiki>
if i had a client with a 2.x rails app, that wanted to upgrade to 3.x or 4.x, i'd ask similar questions as above
<pontiki>
how much is it costing them currently to run a 2.x app?
vlad_starkov has quit [Ping timeout: 252 seconds]
<pontiki>
what with bug fixing, feature enhancement, etc
<certainty>
Nilium: who would've guessed that
anarang has quit [Ping timeout: 240 seconds]
<pontiki>
and weigh that against possible upgrade paths
mercwithamouth has quit [Ping timeout: 252 seconds]
hamakn has joined #ruby
sheepman has joined #ruby
sed_life_better has quit [Read error: Operation timed out]
jlebrech has joined #ruby
aryaching has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
codenapper has joined #ruby
shime has joined #ruby
<sheepman>
I'm struggling to write the equivalent in ruby of this php line: base64_encode(serialize(array("1"=>"Yahoo")));
<sheepman>
my result is never the same output
lolmaus has joined #ruby
<certainty>
sheepman: what's serialize do?
sassamo has joined #ruby
<sheepman>
apparently it "Generates a storable representation of a value."
<certainty>
some kind of marshalling?
cj3kim has joined #ruby
<pontiki>
it is an internal php string representation, like marshal
<sheepman>
the output of the PHP is this: "YToxOntpOjE7czo1OiJZYWhvbyI7fQ=="
<sheepman>
whats marshalling? I guess its time for me to read
<pontiki>
but don't try to emulate that in ruby
<pontiki>
ri Marshal
apeiros has quit [Remote host closed the connection]
<certainty>
ah that's what it looks like.
apeiros has joined #ruby
<pontiki>
yep
arctaruz has left #ruby ["Leaving"]
<certainty>
sheepman: what are you trying to do, maybe there is another way
<pontiki>
a:1 menas an array of length 1
<sheepman>
ah ok
<pontiki>
i means an integer, value of 1
<pontiki>
s, string, length 5, content
<sheepman>
im writing a script to interact with an API but the only examples are PHP
<sheepman>
the API is PHP too which probably doesn't help
<pontiki>
unless the api talks a more universal language
<pontiki>
xml, json, plain ascii text...
sassamo has quit [Ping timeout: 252 seconds]
<sheepman>
yeah i think its a mix of XML and JSON, I'm gonna do some more digging for now. thanks guys
dubsteph has joined #ruby
[OpTiC]IRCman has joined #ruby
ecualombian has joined #ruby
ecualombian has quit [Remote host closed the connection]
<Nilium>
diegoviola: I don't like that Rails hogs the Ruby name.
<Nilium>
That is my main beef with it.
<certainty>
understandable
<diegoviola>
yeah i can see that
blaxter_ has quit [Read error: Operation timed out]
<Nilium>
Jerks and their popular thing taking over the name of the language.
<Nilium>
Who do they think they are?
aryaching has quit [Read error: Connection reset by peer]
<matti>
;]
<certainty>
most of the time it's called only 'rails' though
<Nilium>
Also because of it I get annoying recruiters pestering me about Rails stuff just because I do Ruby stuff.
<Nilium>
So I blame them for that too.
<Nilium>
Not fair, but oh well.
aryaching has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<diegoviola>
is that why everyone thinks ruby == rails?
<Nilium>
Rails's popularity is mainly that issue.
<certainty>
diegoviola: probably, that's part of the confusion
ecualombian has joined #ruby
<diegoviola>
sue dhh
<Nilium>
Rails uses Ruby and people in management don't know the difference so they just assume Rails is Ruby.
<Nilium>
And management idiocy leads to HR idiocy
cj3kim has quit [Ping timeout: 245 seconds]
<pontiki>
i don't blame rails for recruiters lack of understanding
<Nilium>
And HR idiocy leads to annoying recruiters
AlexRussia has joined #ruby
<Nilium>
In reality, it's not even remotely rails's fault
<RubyPanther>
diegoviola: only for small values of "everyone"
<pontiki>
all most of the manage to do is match buzzwords, and most of them have a bit of software to do that for them
<Nilium>
Rails was successful and it did what it was supposed to do.
kitak has joined #ruby
<Nilium>
Which is why because I have Ruby repos I'm automatically flagged as railsbait.
<Nilium>
I'm coining that term. You heard it here first.
<pontiki>
"99% of organizational problems is managerial" -- Dr. Deming
mengu has joined #ruby
<Nilium>
Anyone says otherwise, I'll send some boys around once I find 'em.
<Nilium>
Maybe I should hire managers to find me some boys.
<certainty>
the Deming Wheel comes to mind
<pontiki>
same guy
<certainty>
i see
ecualombian has quit [Remote host closed the connection]
anarang has joined #ruby
<pontiki>
pushed out of US because his ideas blamed the people responsible for implementing them, went to Japan, who listened, and turned Japan and Asia into a manufacturing powerhouse
relix has joined #ruby
kaliya has joined #ruby
<Nilium>
Never heard of him 'til now. Interesting guy.
<Nilium>
Well, going by the Wikipedia page, anyway.
<pontiki>
he was
RoryHughes has quit []
dzhulk has quit [Quit: Leaving.]
raphaelivan has joined #ruby
krzkrz has joined #ruby
krz has quit [Read error: Connection reset by peer]
mengu has quit [Ping timeout: 260 seconds]
jlebrech has quit [Quit: Konversation terminated!]
jhass is now known as jhass|off
blaxter_ has joined #ruby
RoryHughes has joined #ruby
Advocation has quit [Ping timeout: 246 seconds]
sensen has quit [Quit: leaving]
blaxter_ has quit [Client Quit]
heftig has joined #ruby
blaxter_ has joined #ruby
fantazo has joined #ruby
lll is now known as _lazarevsky
himsin has joined #ruby
leonidlm has quit [Ping timeout: 245 seconds]
blaxter_ has quit [Client Quit]
blaxter_ has joined #ruby
blaxter_ has quit [Client Quit]
yasushi has quit [Remote host closed the connection]
blaxter_ has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
blaxter_ is now known as blaxter
Matriks has quit [Remote host closed the connection]
lemonsparrow has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
gbt has joined #ruby
Anderkent has joined #ruby
roolo has quit [Quit: Leaving...]
burlyscudd has joined #ruby
kaspergr_ has quit []
banister has joined #ruby
Ariadeno has quit [Quit: HydraIRC -> http://www.hydrairc.com <- The professional IRC Client :D]
Lewix has quit [Remote host closed the connection]
_HolyCow1 has joined #ruby
_HolyCow2 has joined #ruby
burlyscudd has quit [Ping timeout: 246 seconds]
JasmeetQA1 has joined #ruby
JasmeetQA has quit [Ping timeout: 240 seconds]
_HolyCow has quit [Ping timeout: 272 seconds]
anarang has quit [Ping timeout: 252 seconds]
ianfleeton has quit [Quit: ianfleeton]
newleaf has joined #ruby
_HolyCow1 has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
vlad_starkov has joined #ruby
[OpTiC]IRCman has quit [Quit: Byebye skids...]
oso96_2000 is now known as oso|away
phutch1ns has joined #ruby
_bart has joined #ruby
ianfleeton has joined #ruby
_HolyCow2 has quit [Read error: Connection reset by peer]
joelroa has joined #ruby
JasmeetQA has joined #ruby
mikepack has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
plexus_ has joined #ruby
noop has quit [Ping timeout: 272 seconds]
JasmeetQA1 has quit [Ping timeout: 272 seconds]
mikepack has quit [Read error: Connection timed out]
<olivier_bK>
with ruboto and gosu can we create a game for android ?
_HolyCow has joined #ruby
deadlock has quit [Read error: Operation timed out]
havenwood has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
shaunbaker has quit [Remote host closed the connection]
sassamo has joined #ruby
roolo has joined #ruby
claymore has joined #ruby
himsin has quit [Quit: himsin]
sassamo has quit [Ping timeout: 260 seconds]
_bart has quit [Remote host closed the connection]
eka has joined #ruby
mengu has joined #ruby
aryaching has joined #ruby
ianfleeton has quit [Quit: ianfleeton]
monkegjinni has joined #ruby
monkegji_ has joined #ruby
Ivo has left #ruby ["WeeChat 0.4.3"]
noop has joined #ruby
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
dukz has quit [Client Quit]
dubsteph has quit [Ping timeout: 246 seconds]
JasmeetQA has quit [Ping timeout: 260 seconds]
zeeraw has joined #ruby
<Mon_Ouie>
Gosu won't run on Android, and not on Ruboto (which is derived from JRuby which doesn't support C extensions)
shaunbaker has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Mon_Ouie>
But you could use the GL API from Android
sk87 has joined #ruby
poulson has joined #ruby
shaunbaker has quit [Remote host closed the connection]
Speed has joined #ruby
_bart has joined #ruby
angusiguess has joined #ruby
evenix has joined #ruby
RoxasShadowRS has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Hanmac1 has joined #ruby
evenix has quit [Ping timeout: 272 seconds]
burgess has quit [Quit: ^zzz]
goganchic has joined #ruby
roolo has quit [Quit: Leaving...]
Hanmac has quit [Ping timeout: 260 seconds]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
hamakn has quit [Remote host closed the connection]
rippa has quit [Read error: Connection reset by peer]
bandsaw1961 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iMe has joined #ruby
sichardrtallman has joined #ruby
RoryHughes has joined #ruby
mikepack_ has quit [Read error: Operation timed out]
Xeago has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 260 seconds]
mikepack has quit [Ping timeout: 246 seconds]
thumpba has quit [Ping timeout: 252 seconds]
DrOwl has quit [Read error: Operation timed out]
sassamo has joined #ruby
blackmesa has joined #ruby
shaunbaker has joined #ruby
<sichardrtallman>
hello there, I have a question, I'm trying to get the JSON content from github api using mechanize, unfortunately after 60 requests github sets a limit for a hour, now what I'm trying to do is authenticate using a token generated on github via mechanize, but for now I'm not able to do that response is always 403... this is my code http://pastebin.com/98TMEHkY any solution?
freerobby has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
jzigmund has joined #ruby
raphaelivan1 has quit [Quit: Leaving.]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
sassamo has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
heftig has quit [Quit: Quitting]
iMe has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
Matriks has joined #ruby
Findegil has joined #ruby
heftig has joined #ruby
lemonsparrow has joined #ruby
<toretore>
sichardrtallman: what is username and token?
aryaching has joined #ruby
<toretore>
afaik, gh basic auth takes either username:password or oauth_token:x-oauth-basic
dzhulk has joined #ruby
blackmesa has quit [Remote host closed the connection]
Fractional has quit [Remote host closed the connection]
sk87 has joined #ruby
phutch1ns has quit [Read error: Connection reset by peer]
v101 has joined #ruby
v101 has left #ruby [#ruby]
<sichardrtallman>
toretore: yeah basically what github needs is my username and a randomly generated token in order to extend the number of requests per hour... but even if I try with basic_auth github always gives 403
<sichardrtallman>
thus I was wondering if there was something wrong with my method up there...
<toretore>
there is. read my last line again
<toretore>
and compare it to "username and a randomly generated token"
<sichardrtallman>
ok... great now I'll have to make another 60 requests because github api status is restored :(
dblessing has joined #ruby
PLejeck has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
Slavox|AFK is now known as Slavox
tedstriker has joined #ruby
phutch1ns has joined #ruby
tedstriker has quit [Client Quit]
tyranja has joined #ruby
zegerjan has joined #ruby
sailias has joined #ruby
shime has quit [Quit: Lost terminal]
geggam has quit [Remote host closed the connection]
<pontiki>
using mechanize with an api?
<toretore>
a little overkill, yes
<toretore>
probably an old perl programmer :P
zoscoy has joined #ruby
cj3kim has joined #ruby
jrhorn424 is now known as zz_jrhorn424
zoscoy has quit [Client Quit]
jlebrech has joined #ruby
<sichardrtallman>
toretore: lol you got the point...
Mongey has quit [Quit: Mongey]
diegoviola has quit [Quit: WeeChat 0.4.3]
yfeldblum has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
stonevil has joined #ruby
dzhulk has quit [Quit: Leaving.]
hamakn has joined #ruby
deadlock has joined #ruby
larissa has quit [Quit: Leaving]
aryaching has quit [Ping timeout: 272 seconds]
rmorello has joined #ruby
<sichardrtallman>
toretore: hmm I checked /rate_limit from github using agent.basic_auth("my token","x-oauth-basic") and the limit is always < 50 instead of 5000 :(
yfeldblum has quit [Ping timeout: 265 seconds]
Hanmac has joined #ruby
lemonsparrow has quit [Quit: Page closed]
ianfleeton has joined #ruby
jkamenik has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
<roolo>
Somebody experienced in spreadsheet gem?
Hanmac1 has quit [Ping timeout: 245 seconds]
<roolo>
I need to get the xls directly (without file) for sinatra response
kofno has left #ruby [#ruby]
<roolo>
But i am not able find some method for getting workbook content
<apeiros>
(the __ in the name is actually a /, but that's not valid for gists :-S)
stonevil has quit [Quit: Computer has gone to sleep.]
jonno11 has joined #ruby
<pontiki>
no subdirectories for your gist files!
stonevil has joined #ruby
JustMozzy has joined #ruby
<apeiros>
also reminds me I should finally update my tabledata gem
[krisbulman] is now known as krisbulman
<pontiki>
nts: peruse apeiros's gists
<apeiros>
nts?
<pontiki>
"Note to Self"
mark_locklear has joined #ruby
<roolo>
apeiros: Looks promising, thanks
<apeiros>
roolo: keep a look out for https://github.com/apeiros/tabledata - the readme doesn't reflect it, but it can be used to write spreadsheets too. it uses the spreadsheet gem under the hood.
<apeiros>
for simple tabular spreadsheets, its api is a good bit easier.
stonevil has quit [Client Quit]
<apeiros>
also it makes it trivial to output the same data as .csv and .xls
tacos1de has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Remote host closed the connection]
<apeiros>
pontiki: don't remember. somebody on irc asked :)
* pontiki
nods
<roolo>
apeiros: Will check
stonevil has joined #ruby
SolarSailor has quit [Client Quit]
tacos1de has joined #ruby
tvw has joined #ruby
SolarSailor has joined #ruby
stonevil has quit [Client Quit]
joelroa has joined #ruby
<toretore>
sichardrtallman: should be 5000.. you should check that it's actually sending the basic auth to gh
huttan has joined #ruby
DrOwl has joined #ruby
<SolarSailor>
Hi guys, happy Ruby dev here. I can't seem to find an in-depth resource w/examples on Ruby 2.1. Can you point me in the direction of one, if such exists?
<toretore>
you mean "what's new in ruby 2.1"?
mjs2600 has joined #ruby
sdwrage has joined #ruby
dzhulk has joined #ruby
<SolarSailor>
Yes, sorry.
<toretore>
just googling for "ruby 2.1" returns a lot of useful stuff
<SolarSailor>
I read that one, and it's good, but it also states: "Please be aware that yesterdays release is just a preview and all of the above is subject to change."
<sichardrtallman>
toretore: oh and how can I check it?
vlad_starkov has quit [Ping timeout: 260 seconds]
<toretore>
ah, i didn't even know 2.1.0 was out, so don't listen to me :P
dwo has joined #ruby
kukyakya_ has joined #ruby
joelroa has quit [Ping timeout: 248 seconds]
aryaching has joined #ruby
lolmaus has quit [Ping timeout: 272 seconds]
sdwrage has quit [Client Quit]
jcs222 has quit [Quit: leaving]
ikaros has quit [Quit: Ex-Chat]
<toretore>
sichardrtallman: i don't have any experience with mechanize, so i couldn't say
<SolarSailor>
Haha, ok. :-)
dwo has left #ruby [#ruby]
<toretore>
also, there's a jruby 9000
DrOwl has quit [Ping timeout: 252 seconds]
<sichardrtallman>
toretore: oh alright nevermind do you have a better alternative to mechanize? because with curl -u from command line everyting is fine :(
<toretore>
just plain old net/http is what i use most of the time
<toretore>
not super elegant, but it doesn't get in my way
tkuchiki has quit [Remote host closed the connection]
<sichardrtallman>
toretore: okay, thanks!
<apeiros>
I use plain old TCPSocket! it's all you need!
* apeiros
topper
<SolarSailor>
I think that it would be great if the new Ruby released would be accompanied by e.g. a screencast or video with a walkthrough of the new features, along with a thorough written one. I would like to help, but I'm not a Ruby core dev expert, so I would probably not be the right one to do it.
<toretore>
me too, sometimes
<SolarSailor>
s/released/releases
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros>
SolarSailorMoon…
no0code has joined #ruby
<toretore>
wrote my own http parser because i didn't want to add any dependencies
<no0code>
hi all, sinatra question : how do i set a layout for a deeper route in sinatra? if make something like get '/admin/database/' do .... the layout.erb is not rendered
sassamo has joined #ruby
<toretore>
needless to say, it sucked
<apeiros>
SolarSailor: there are often quite a few writeups on the changes. could turn that into a movie?
<kukyakya_>
is there any counterpart of lex&yacc in ruby?
MrV has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
<SolarSailor>
apeiros: Yeah, that could be
<apeiros>
toretore: I wrote one because I needed to read a multipart response
<apeiros>
and somehow none of the available multipart "readers" where usable
<cek>
anyone knwos how to get a value of dict Content elemtn in RSS?
meatherly has joined #ruby
dubsteph has quit [Ping timeout: 246 seconds]
aryaching_ has joined #ruby
fenak has joined #ruby
joelroa has quit [Read error: Operation timed out]
DrOwl has joined #ruby
io_syl has joined #ruby
zeeraw has joined #ruby
s2013 has joined #ruby
guardianx has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 265 seconds]
snath has quit [Ping timeout: 246 seconds]
baordog has joined #ruby
TheMoonMaster has quit [Excess Flood]
olivier_bK has joined #ruby
zegerjan has quit [Ping timeout: 260 seconds]
TheMoonMaster has joined #ruby
dubsteph has joined #ruby
VinceThePrince has joined #ruby
gaspar|work has joined #ruby
root_empire has quit [Max SendQ exceeded]
mary5030 has quit [Ping timeout: 265 seconds]
mary5030_ has joined #ruby
AxonetBE has joined #ruby
<gaspar|work>
I'm trying to add redis to my sinatra app. Everything works in development, but in production I get "An error occurred while starting up the preloader: it did not write a startup response in time." error.
<AxonetBE>
how can I split an array in exact 3 parts?
<gaspar|work>
When in production I start the sinatra app from console it works fine. Does anyone know what could be the issue?
dangerousdave has joined #ruby
root_empire has joined #ruby
tkuchiki has joined #ruby
bean has joined #ruby
momomomomo has joined #ruby
bean has quit [Max SendQ exceeded]
anarang has quit [Quit: Leaving]
zachallett has joined #ruby
bean has joined #ruby
burlyscudd has joined #ruby
slowcon has joined #ruby
mary5030_ has quit [Remote host closed the connection]
claymore has quit [Read error: Operation timed out]
j416 has joined #ruby
root_empire has quit [Max SendQ exceeded]
s2013 has quit [Ping timeout: 260 seconds]
evenix has joined #ruby
Johnny has joined #ruby
Johnny is now known as Guest39339
Guest39339 has quit [Client Quit]
<j416>
o/ My class stores data but doesn't care about where it came from (it can be a file, string, whatever); I'm thinking I'll let the user provide an IO that it can read from. Would this be bad practice? I'm thinking user would e.g. File.open('some/file', 'rb') { |io| myStorageObject.create(io) }
root_empire has joined #ruby
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has joined #ruby
<apeiros>
from_io if you already deviate from standard `new`
sski has joined #ruby
<GreatSUN>
can someone tell me how I could bind an unboundmethod to a class where I have the name of the class as String value?
wallerdev has quit [Quit: wallerdev]
VinceThePrince has quit [Ping timeout: 260 seconds]
x77686d has joined #ruby
<j416>
what worries me is that my class will just blindly read from that IO until eof?, not knowing if it missed something (well, it doesn't really have to care); and also consume it (i.e. I can't read from the same io while passing it to my class)
<apeiros>
GreatSUN: lets reduce your problem: "how can I get the class from a String containing the constant name?"
<apeiros>
GreatSUN: see Object#const_get
lmickh has joined #ruby
<j416>
apeiros: ah, my bad. it's not a variant of new, s/myStorageObject/myStorageHandler/, and it creates entities from what is given to it
evenix has quit [Ping timeout: 245 seconds]
<apeiros>
whoops, make that Module#const_get
danshultz has quit [Read error: Connection reset by peer]
<j416>
apeiros: something like a factory
<GreatSUN>
apeiros: oh yeah
<GreatSUN>
stupid me
<GreatSUN>
thanks
danshultz has joined #ruby
Popsikle has joined #ruby
yalue has joined #ruby
artisangoose has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
<apeiros>
j416: if the user wants to read from the IO too it's his problem
RaCx has joined #ruby
<j416>
apeiros: my thought, thanks. Would you say using an io like that as argument is sane?
Macaveli has joined #ruby
<apeiros>
sure. why would it not be?
aaaa has joined #ruby
<apeiros>
make sure you document on what you rely, though
<j416>
and I would assume that the io is open and ready for reading, right
<apeiros>
i.e., which methods you expect
<j416>
of course @ document
aaaa is now known as Guest10360
cj3kim has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
arctaruz has joined #ruby
sski has quit [Ping timeout: 248 seconds]
mary5030 has joined #ruby
Hanmac1 has joined #ruby
arctaruz has left #ruby [#ruby]
<apeiros>
god I *hate* it when I don't finish work and have like 20 edited and uncommitted files…
<j416>
apeiros: that's when I just commit it all and label it 'wip'
<apeiros>
I really have to pull myself together and do proper feature branches with small commits…
<j416>
:D
<apeiros>
j416: that's not the problem. the problem is figuring out wtf I was working on and how far I've got
<j416>
if I am lucky I return the next morning and discover I've left todos for myself
<apeiros>
proper small commits would document that
<j416>
yep
<apeiros>
I know the remedy. I'm just too f'ing lazy :(
root_empire has quit [Max SendQ exceeded]
<apeiros>
if I got to continue work the next day, it wouldn't be a problem either
<j416>
when that happens I tend to just reset and re-commit it all in some sane manner
Hanmac has quit [Ping timeout: 245 seconds]
<apeiros>
but this was open for ~6 months
<j416>
while reading through the diff taking notes on what needs to be done
<j416>
heh yes.. been there
Zubin has joined #ruby
stonevil has joined #ruby
<apeiros>
yeah, reading through the diff is what I'm doing now…
v0n has joined #ruby
<j416>
last project that was put on ice was idle for 1 month, and it became idle because of something so urgent I didn't have time to tidy it
<j416>
I return later to 20 "wip" commits
<j416>
lol
<banister>
apeiros can't you just commit it from home bb? or you have a strict policy on no work at home?
<apeiros>
banister: that's my own stuff
<apeiros>
not work stuff
tylersmith has joined #ruby
<j416>
apeiros: thanks, by the way. apeiros++
<apeiros>
and it lies around whenever work at company piles up and I don't feel like coding at home :)
mary5030 has quit [Ping timeout: 252 seconds]
<j416>
what, there's no karma bot in this channel :O
<apeiros>
nope
zegerjan has joined #ruby
yfeldblum has joined #ruby
<j416>
I guess such a bot would crash when it tried to handle apeiros's karma anyway
<workmad3>
a karma bot would just depress everyone with how high apeiros's karma-value was
<j416>
so
<j416>
^
<j416>
w
<j416>
lol
<apeiros>
workmad3: don't worry. occasional douchebaggery on my part wouldn't let it rise *that* high
<banister>
workmad3 me too, but i dont 'get' it. Wtf is it? how does it relate to anything? :)
baordog has left #ruby [#ruby]
Macaveli has joined #ruby
maletor has joined #ruby
<workmad3>
banister: aiui, it's ruby being pulled apart in different dimensions inside a box :)
yfeldblum has quit [Ping timeout: 265 seconds]
echevemaster has joined #ruby
<banister>
workmad3 'aiui' ?
<workmad3>
as I understand it
<banister>
cool, never seen that acronym b4
Ch4rAss has quit [Ping timeout: 272 seconds]
<workmad3>
had a colleague who used it a lot... it rubbed off :)
<banister>
workmad3 his explanation: "for #4 I smashed a Boolean Logic diagram with a abstract pixelated circuit board like pattern. I will upload an entry closer up so you can see it better."
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banister>
workmad3 oh no, that was for the other way i linked above
<banister>
(the explanation)
<workmad3>
banister: I think I'd like #4 better if it used the shinier version of the pry logo from #1 :)
andy___ has joined #ruby
<apeiros>
File.size('test/unit/all.rb') # => 0
<banister>
workmad3 #1 uses too many colors, we can't have that unfortunately.
andy___ is now known as Guest61689
<workmad3>
banister: shame :(
<workmad3>
it looks pretty :)
<banister>
absolutely, but wayyy too expensive to mass produce :)
Guest61689 has quit [Read error: Connection reset by peer]
<workmad3>
it's ok... you can have one custom made and sent to me... ;)
mengu has quit [Remote host closed the connection]
<banister>
hehe
<pontiki>
i <3 #5
<pontiki>
i'd wear that one and #8
<workmad3>
I'm not fond of light-coloured t-shirts... so didn't rate #8 :)
<pontiki>
hehe
Guest10360 has quit [Remote host closed the connection]
<workmad3>
would you keep the 'pry' logo on the sleeve with #5?
mansi_ has joined #ruby
jobewan has joined #ruby
IceDragon has joined #ruby
tagrudev has quit [Remote host closed the connection]
Macaveli has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
no0code has quit [Quit: Lost terminal]
interactionjaxsn has joined #ruby
<banister>
workmad3 cos without it's just a pretty design with nothing at all related to pry i guess ;)
gregf1 has quit [Quit: bbl]
kitak has quit [Remote host closed the connection]
stonevil has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
kitak has joined #ruby
srji_ has quit [Quit: leaving]
srji has joined #ruby
mikepack has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
nathancahill has joined #ruby
mr_red has quit [Quit: Bye :)]
olivier_bK has quit [Quit: Quitte]
VinceThePrince has joined #ruby
mehlah has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mary5030 has joined #ruby
sk87 has joined #ruby
mary5030 has quit [Remote host closed the connection]
ktosiek has quit [Read error: Operation timed out]
mary5030 has joined #ruby
kitak has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
__greg has joined #ruby
kitak has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
joelroa has joined #ruby
Macaveli has quit [Ping timeout: 265 seconds]
ktosiek has joined #ruby
sparrovv has quit [Remote host closed the connection]
VinceThePrince has quit [Client Quit]
<workmad3>
banister: there is that... but it could potentialy be moved to somewhere on the front or the back... I quite like the arm placement though :)
<workmad3>
banister: just wondered if that would affect printing costs again ;)
sambao21 has joined #ruby
<apeiros>
*sob*, I wish rubygems had a way to list optional dependencies
<certainty>
for example something like: def current_continuation; callcc{|cc| c[cc] }; end ... then you can just store it and use in your conditional to test if it has been invoked yet ;)
pigzzcanfly has joined #ruby
<certainty>
bah, sorry
AxonetBE has quit [Quit: AxonetBE]
<toretore>
now i want to know what c is :) another continuation?
<certainty>
toretore: oh a typo, it's meant to read cc[cc]
<nhmood>
Wouldn't core / :: take precedence over Rack?
tylersmith has joined #ruby
lethjakman has quit [Quit: WeeChat 0.4.0]
pranny has joined #ruby
<shevy>
dunno
<shevy>
I never saw yield ::Bla before
tziOm has quit [Ping timeout: 240 seconds]
OdNairy has joined #ruby
<nhmood>
shevy: regardless, I should have looked at the sinatra itself, not just the project at hand
coderdad has joined #ruby
pfg has joined #ruby
<nhmood>
is there any way to have gem/bundler/whatever pull all the gem dependencies into the working dir
olivier_bK has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
coderdad has quit [Read error: Connection reset by peer]
<jhass>
bundler has the --path option
<nhmood>
So that if I was to do a grep lets say, it would find terms in both the current project as well as its dependencies?
SirFunk has joined #ruby
coderdad has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
bandsaw1961 has quit [Client Quit]
Es0teric has quit [Quit: Computer has gone to sleep.]
shaunbaker has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 240 seconds]
petey has quit [Remote host closed the connection]
<nhmood>
jhass: yup that worked great, thanks
nomenkun_ has joined #ruby
petey has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
stryek has quit [Ping timeout: 272 seconds]
jobewan has joined #ruby
petey has quit [Read error: Connection reset by peer]
petey has joined #ruby
dubsteph has quit [Ping timeout: 240 seconds]
petey has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
petey has joined #ruby
Es0teric has joined #ruby
tziOm has joined #ruby
aspiers has quit [Read error: Operation timed out]
mlpinit has quit [Read error: Connection reset by peer]
Cyrus has joined #ruby
aryaching has joined #ruby
mlpinit has joined #ruby
sassamo has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
foooobear has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
Vovko has joined #ruby
cpruitt has quit [Quit: cpruitt]
Kricir has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
cloud|nix has joined #ruby
Cyrus has quit [Quit: Leaving]
petey has quit [Ping timeout: 252 seconds]
cloud|nix has quit [Remote host closed the connection]
tziOm has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
pzula has quit [Ping timeout: 246 seconds]
jpun has quit [Ping timeout: 246 seconds]
msmith has quit [Remote host closed the connection]
sepp2k has joined #ruby
rippa has joined #ruby
msmith has joined #ruby
koell has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
Cyrus has joined #ruby
burlyscudd has joined #ruby
benzrf has joined #ruby
<benzrf>
hello
asmodlol has joined #ruby
<benzrf>
i have a set of files containing marshalled objects
tziOm has joined #ruby
<benzrf>
i have a method that loads an object by id
meatherly has joined #ruby
<benzrf>
some of my code will be accessing the same object a bunch of times in a row by id
<benzrf>
how should i implement a cache?
cj3kim has joined #ruby
<benzrf>
i was thinking something time-since-last-access-based?
mmoretti has joined #ruby
dubsteph has joined #ruby
baroquebobcat has joined #ruby
mehlah has quit [Quit: Leaving...]
roolo has quit [Quit: Leaving...]
burlyscudd has quit [Ping timeout: 252 seconds]
meatherl_ has quit [Ping timeout: 245 seconds]
phansch has joined #ruby
phansch has quit [Remote host closed the connection]
AxonetBE has joined #ruby
havenwood has quit [Remote host closed the connection]
snath has joined #ruby
codeFiend has quit [Quit: codeFiend]
cj3kim has quit [Remote host closed the connection]
phansch has joined #ruby
stryek has joined #ruby
mocfive has joined #ruby
koell has joined #ruby
__greg has left #ruby [#ruby]
tziOm has quit [Ping timeout: 260 seconds]
wm3|away has quit [Ping timeout: 265 seconds]
zz_jrhorn424 has quit [Ping timeout: 265 seconds]
shime has joined #ruby
gnephiak has quit [Quit: Konversation terminated!]
pzula has joined #ruby
burlyscudd has joined #ruby
geggam has joined #ruby
decoponio has quit [Ping timeout: 260 seconds]
jonnyro has joined #ruby
oso|away is now known as oso96_2000
decoponio has joined #ruby
<jsilver_>
so guys
<jsilver_>
why the hell won't guard-rspec autotest in centos?
<jsilver_>
no, it's not my config
Guest92756 has joined #ruby
<jsilver_>
the program IS broken
Kricir has quit [Ping timeout: 260 seconds]
zz_jrhorn424 has joined #ruby
jkamenik has joined #ruby
<MJBrune>
hey so I am using net/http and I am doing a REST GET where I want to set the headers for the request. Can someone provide an example or something because I've looked at the documentation and I don't seem to be getting it.
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
yfeldblum has joined #ruby
Guest92756 is now known as _tickez
tziOm has joined #ruby
dubsteph has quit [Ping timeout: 272 seconds]
rayners has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 252 seconds]
<benzrf>
MJBrune: it is probably a hash
<benzrf>
idk aoart from that :I
<MJBrune>
benzrf: yes, I know it is.
<MJBrune>
Im adding it to the http::get object
AxonetBE has quit [Quit: AxonetBE]
<MJBrune>
like http::get.add_field
b00stfr3ak has quit [Read error: Connection reset by peer]
mjs2600 has quit [Remote host closed the connection]
sk87 has quit [Client Quit]
predator217 is now known as predator117
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
icedburg has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
e^0 has quit [Quit: WeeChat 0.4.1]
wallerdev has joined #ruby
icedburg has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
Kricir has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
LexicalScope has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
LexicalScope has joined #ruby
sdwrage has joined #ruby
boboc has joined #ruby
hiall has quit [Quit: hiall]
wgosling has joined #ruby
aryaching has quit []
gja has quit [Quit: This computer has gone to sleep]
burlyscudd has joined #ruby
kraljev5 has joined #ruby
tylershipe has quit []
Kricir has quit [Ping timeout: 252 seconds]
<kraljev5>
Hey, how to listen to a file
<kraljev5>
so, I want to get notified, when file gets appended to
thams has quit [Quit: thams]
x1337807x has joined #ruby
nszceta has quit [Remote host closed the connection]
<pontiki>
cat stairway.mp3 > /dev/audio
chagar has joined #ruby
chagar has quit [Client Quit]
aryaching has joined #ruby
<pontiki>
or if you really want the bits, cat app/models/user.rb > /dev/audio
tziOm has quit [Ping timeout: 252 seconds]
<kraljev5>
let's say I have a file that some program append log lines to
zeeraw has joined #ruby
<pontiki>
seriously, though, you need something like rb-notify, depending on OS
<kraljev5>
i want to listen for those new lines
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
or you can open the file, seek to end, and then keep trying to read from it
<slowcon>
so im at the part of my script where I want it to pull a href from a download button. thing is, download button is only available if the user is logged in. the script is failing and im guessing that is why. havent gave it a go yet, but was reading around and some people recommend using mechanize. what do you guys think?
einarj has quit [Remote host closed the connection]
<apeiros>
so plain single quotes in double quotes should work fine.
thumpba_ has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.2]
tgkokk has quit [Ping timeout: 246 seconds]
<centrx>
Alright, back to hack. Quit slacking off people!
relix has quit [Ping timeout: 246 seconds]
aryaching has joined #ruby
<slowcon>
whatup centrx
<slowcon>
real quick
<slowcon>
im at the part of my script where I want it to pull a href from a download button. thing is, download button is only available if the user is logged in. the script is failing and im guessing that is why. havent gave it a go yet, but was reading around and some people recommend using mechanize. what do you guys think?
gja has joined #ruby
<centrx>
slowcon, Yes, it will save your cookies and connect with your cookies
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
<slowcon>
centrx: so i should only have to call it once and it will work on all pages?
aryaching has quit [Client Quit]
<centrx>
slowcon, You can get OpenURI to do cookies too but it is not clean
coderdad has joined #ruby
<centrx>
slowcon, It will "mechanize" the connection like a web browser
rafaelmagu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
cj3kim has joined #ruby
Kricir has quit [Remote host closed the connection]
ianfleeton has joined #ruby
blackmesa has joined #ruby
senayar has quit [Remote host closed the connection]
Vivekananda has quit [Quit: Ex-Chat]
tziOm has joined #ruby
Deele has quit [Ping timeout: 245 seconds]
Hanmac1 is now known as Hanmac
aryaching has joined #ruby
<slowcon>
centrx: thanks, going to read over mechanize
craigp has quit [Remote host closed the connection]
sambao21 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Eiam has joined #ruby
thumpba_ has quit [Remote host closed the connection]
yalue has quit [Read error: Operation timed out]
Xeago has quit [Remote host closed the connection]
gaspar|work has quit [Ping timeout: 248 seconds]
Kricir has joined #ruby
<benzrf>
hmm
Xeago has joined #ruby
<benzrf>
is there a way to schedule an async task, but hold onto an object that lets you delay it or cancel it before it happens?
mark_locklear has quit [Read error: Operation timed out]
<benzrf>
or change when it occurs, rather
mark_locklear has joined #ruby
gaspar|work has joined #ruby
tziOm has quit [Ping timeout: 260 seconds]
mikepack_ has joined #ruby
Uranio has joined #ruby
havenwood has joined #ruby
ilyam has joined #ruby
havenwood has quit [Remote host closed the connection]
jackneill has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
<ilyam>
anyone know if the 'aws-s3' Ruby gem is thread-safe? That is, can I call for example AWS::S3::S3Object.find(object_key, bucket_name) from multiple threads simultaneously? The googles don't come up with a clear answer on this
dmyers has joined #ruby
braincrash has quit [Read error: Connection reset by peer]
jzig has joined #ruby
Kricir has quit [Remote host closed the connection]
braincrash has joined #ruby
burlyscudd has joined #ruby
mjs2600 has joined #ruby
mikepack_ has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<xybre>
ilyam: Using MRI, Jruby, or Rubinius?
axsuul has quit [Ping timeout: 245 seconds]
rubyracer has joined #ruby
sambao21 has joined #ruby
tziOm has joined #ruby
Sc0rp10n has joined #ruby
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
<ilyam>
xybre: MRI 1.9.2
sambao21 has quit [Client Quit]
yalue has joined #ruby
RaCx_ has quit [Ping timeout: 240 seconds]
jrist has quit [Ping timeout: 264 seconds]
coderdad has quit [Remote host closed the connection]
banister has quit [Read error: Connection reset by peer]
flagg0204 has quit [Ping timeout: 272 seconds]
tvw has quit [Remote host closed the connection]
banister has joined #ruby
psyprus has quit [Changing host]
psyprus has joined #ruby
ry4nn has joined #ruby
freerobby has joined #ruby
sassamo has joined #ruby
flagg0204 has joined #ruby
tziOm has quit [Read error: Operation timed out]
Deele has joined #ruby
tgkokk has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boom__ has joined #ruby
x1337807x has joined #ruby
RaCx has joined #ruby
sambao21 has joined #ruby
sassamo has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
zerun0_ has quit [Read error: Operation timed out]
thumpba_ has joined #ruby
<xybre>
ilyam: MRI doesn't do true multithreading, so you most liekly will never run into a problem.
gja has quit [Quit: This computer has gone to sleep]
tziOm has joined #ruby
<ilyam>
xybre: well, I thought in 1.9+ the GIL is dropped during I/O calls (i.e. network/disk access)?
<RubyPanther>
xybre: that isn't really true, the GIL does exist but that doesn't mean multithreading is fake
<ilyam>
and S3 operations will probably spend most of their time doing I/O
pigzzcanfly has joined #ruby
<RubyPanther>
just, pointless compared to fork and IPC
<xybre>
ilyam: during blocking IO it can, but it is still unlikely you'll experience it. When in doubt, test it :)
<ilyam>
xybre: yeah, though race conditions are hard to test for …
<xybre>
RubyPanther: It does have threads, but it doesn't process them in parallel outside the aforementioned IO.
intuxicated has quit [Read error: Connection reset by peer]
<ilyam>
right
thumpba_ has quit [Remote host closed the connection]
<RubyPanther>
Trying to be pedantic, but then using the word parallel... no threads are never parallel
nerdman has quit [Quit: leaving]
<xybre>
ilyam: True, but you *can* test if its running threads in parallel.
aryaching has quit [Ping timeout: 246 seconds]
* xybre
sighs
<ilyam>
but say i have a program that needs to copy 10 objects from S3 to local disk. Most of the time is going to be spent waiting for network or disk, so spinning up 10 threads could speed it up a lot. anyway, i guess i'll just try it and see if things get corrupted
<RubyPanther>
If you port Ruby to a transputer, maybe
<ilyam>
i can always compute checksums etc
jkamenik1 has quit [Quit: Leaving.]
<ilyam>
just thought if anyone knows about the thread-safety of the gem, could avoid wasting my time if it's known to break in multi-threaded scenarious
timonv has joined #ruby
<centrx>
All OSes are really Mac OS <= 9 in disguise
<certainty>
:)
<xybre>
ilyam: Right, but would you prefer no one replied at all?
<xybre>
centrx: DOS ins dsiguise.
cj3kim has quit [Remote host closed the connection]
<RubyPanther>
OS 7 is a special ring in Hell
ry4nn has quit [Quit: Konversation terminated!]
burlyscudd has quit [Quit: Leaving.]
<ilyam>
xybre: of course not :) just didn't get the sure answer I was hoping for, but you don't always get what you want in life :)
<xybre>
ilyam: I know, and I'm sorry I don't have more information to give you :)
<ilyam>
np
<RubyPanther>
ilyam: you can throw in a mutex and not have to worry about it and still get most of your benefit
<jhass>
since 1.9 hashes are ordered by insertion. I still wouldn't rely on it
joelroa has quit [Ping timeout: 245 seconds]
chipotle has quit [Quit: cya]
alvaro_o has joined #ruby
<toretore>
it *could* be relied upon
<toretore>
insertion order is what he wants
<toretore>
but idonlikeit
gja has quit [Client Quit]
mjs2600 has joined #ruby
cj3kim has quit [Remote host closed the connection]
io_syl has joined #ruby
cpruitt has joined #ruby
zerun0_ has joined #ruby
thams has quit [Quit: thams]
monkegjinni has joined #ruby
tziOm has joined #ruby
senayar has joined #ruby
<benzrf>
honestly i dont care what order theyre thrown out that much
soheil has joined #ruby
<ilyam>
xybre: definitely not thread-safe
marr has joined #ruby
io_syl has quit [Remote host closed the connection]
<xybre>
ilyam: Interesting! Then RubyPanther's suggestion of using a mutex might be your only option.
<slowcon>
centrx: pretty sure i got it to work. only way to really test is to find elements that are not available to not logged in users, correct?
<ilyam>
trying to use it from multiple threads crashes almost immediately with .rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:137:in `select': closed stream (IOError)
io_syl has joined #ruby
<centrx>
slowcon, Good idea
<soheil>
any idea how to start rails on startup in osx?
<xybre>
soheil: use pow?
kpshek has quit []
<ilyam>
xybre: that would defeat most of the purpose of trying to multi-thread
jrist has joined #ruby
<ilyam>
i could try fork and IPC i suppose … but that sounds complicated
rezzack has joined #ruby
<ilyam>
er … not complicated, rather tedious and requires more effort than i'm willing to spend
<ilyam>
gtg
<soheil>
xybre: no way to not have to install another gem?
echevemaster has quit [Read error: Connection timed out]
Matriks has quit [Remote host closed the connection]
Jdubs has quit [Remote host closed the connection]
ilyam has quit [Quit: ilyam]
<xybre>
ilyam: depends on what you're doing with the rest of the code
<xybre>
well okay
<xybre>
soheil: Sure, make a lauchpad plist
LexicalScope has quit [Ping timeout: 260 seconds]
<xybre>
soheil: or add it to your startup items
<soheil>
I tried adding it to my rc.local
<slowcon>
centrx: one thing that scares me is that this website locks you out after 5 failed attempts
<soheil>
but that didn't worked
tziOm has quit [Read error: Operation timed out]
stonevil has joined #ruby
<centrx>
slowcon, Better be careful :)
<xybre>
soheil: log all the things, might tell you why its not "working"
sambao21 has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Ping timeout: 260 seconds]
<soheil>
xybre: looks like it's missing the Gempath, I'll try again... the thing that sucks is that I have to keep restarting to try different things.
raphaelivan has quit [Quit: Leaving.]
<slowcon>
centrx: blahhhhhhh! >_<
<xybre>
soheil: There's an incantation I use for starting scripts outside of a known environment, I can look it up
Kricir has joined #ruby
RaCx has quit [Ping timeout: 260 seconds]
Kricir has quit [Remote host closed the connection]
<soheil>
xybre: great ty.
fedesilv_ has joined #ruby
<cek>
Hey. I'm following modern way of having gem structure, but somehow, bin script i'm developing can't find the library I'm developing in this gem. What's up? :/
Kricir has joined #ruby
sambao21 has joined #ruby
<cek>
it doesn't load `cwd`/lib/library.rb
aryaching has joined #ruby
<benzrf>
maybe you mean `pwd`
<pontiki>
on os/x, you use launchd, which reads various plist files in /System/Library/LaunchAgents, /Library/LaunchAgents or ~/Library/LaunchAgents
mojo619 has joined #ruby
<cek>
yeah, gem's root dir
<xybre>
soheil: try this shebang line if you're using rvm: #!/usr/bin/env rvm . do ruby
<xybre>
soheil: and then `require 'bundler'; Bundler.setup`
dangerousdave has joined #ruby
<soheil>
xybre: cool
cgore has joined #ruby
<pontiki>
you want to read up on launchd, launchctl, launchd.conf, and launchd.plist
kpshek has joined #ruby
<xybre>
cek: Are you setting up Bundler? It will set up your load path so you should be able to just do `require 'my_lib'` without specifying the path.
randomnick_ has joined #ruby
tgkokk has quit [Ping timeout: 260 seconds]
fedesilva has quit [Ping timeout: 269 seconds]
<soheil>
xybre: RVM is not a function, selecting rubies with 'rvm use ...' will not work.
aloitius_ has joined #ruby
<xybre>
Hmm.
<pontiki>
yeah, actually, i don't think it works that way
<xybre>
soheil: You must not have rvm in your .bashrc
pigzzcanfly has quit [Remote host closed the connection]
tziOm has joined #ruby
<cek>
xybre: i'm using bundler, whihc should load all stuff but it doesnt
pigzzcanfly has joined #ruby
<pontiki>
in a crontab, i invoke them like: bash -l -c 'cd /path/to/app; RAILS_ENV=production rails server'
<centrx>
slowcon, Sure, looks good. I've only used Mechanize with Perl.
<Tachoh>
my vote is 'coincoin'
<YourBestFriend>
can someone remind me of the differences between lambdas and procs?
rblackwe_ has quit [Read error: Operation timed out]
<centrx>
YourBestFriend, lambdas require a specific number of parameters as defined in the block
<benzrf>
so.... anybody wanna try it
<slowcon>
centrx: true true. just hard to test. not grabbing the Welcome! text i want
tziOm has joined #ruby
jonah_k has joined #ruby
<RubyPanther>
omg benzrf at first I thought I went through a time machine to the 90s, then I saw Obama and realized, this is whole different parallel reality!
weie has quit [Quit: Leaving...]
<centrx>
YourBestFriend, and returns in a lambda will return out of the lambda, not out of the surrounding method
dik_dak has joined #ruby
<benzrf>
RubyPanther: *obana
RaCx has joined #ruby
jcs222 has quit [Quit: leaving]
<Tachoh>
i will make a cryptocoin that steals your bitcoins
<Tachoh>
and replaces them with this coin
timonv_ has quit [Remote host closed the connection]
bean__ has joined #ruby
fmcgeough has quit [Read error: Connection reset by peer]
bean has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
fmcgeough has joined #ruby
coderdad has quit [Remote host closed the connection]
aryaching has joined #ruby
coderdad has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
nomenkun_ has quit [Remote host closed the connection]
mark_locklear has quit [Ping timeout: 245 seconds]
ddd has quit [Quit: Kernel reboot]
jason^ has joined #ruby
aryaching has quit [Read error: No route to host]
tziOm has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
petey has quit [Remote host closed the connection]
gja has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<jason^>
is there a way when using method_missing to not run a method and use method_missing for it instead, for instance, obj.nodes, nodes is a method but i'd rather it go to the method_missing method for it
aspires has quit []
soheil has quit []
ddd has joined #ruby
petey has joined #ruby
banister has joined #ruby
cpruitt has quit [Quit: cpruitt]
soheil has joined #ruby
<apeiros>
jason^: call method_missing directly
<apeiros>
it's a method, after all.
cpruitt has joined #ruby
yalue has quit [Quit: Leaving]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
gja has quit [Client Quit]
zachallett has joined #ruby
reset has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Mon_Ouie has joined #ruby
coderdad has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
petey has quit [Ping timeout: 240 seconds]
RaCx has joined #ruby
burgess has quit [Quit: ^zzz]
Wolland has joined #ruby
Jetchisel has joined #ruby
waheedi has quit [Quit: Waheedi]
nanoyak has quit [Quit: Computer has gone to sleep.]
<YourBestFriend>
I think I'm going to write my own ruby interpreter and name it after some porn actress I know, how novel is that?
waheedi has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
starfox21 has quit [Quit: starfox21]
tvw has joined #ruby
<toretore>
jason^: also, if you're calling method_missing directly, it should probably be called something else and be called from method_missing, as it has a function outside of the scope of method_missing
pranny has joined #ruby
pranny has quit [Client Quit]
kraljev5 has quit [Ping timeout: 245 seconds]
<YourBestFriend>
centrx: how can I return from a proc? without returning from the function it is nested in
<jason^>
toretore: i agree, it's not my gem though
danshultz has quit [Remote host closed the connection]
dzhulk has joined #ruby
tziOm has quit [Ping timeout: 240 seconds]
<centrx>
YourBestFriend, The Proc returns at the end of its execution
cek has left #ruby [#ruby]
<centrx>
YourBestFriend, You can either use an control logic like if-statements to get to the end of the Proc, or use a lambda
<benzrf>
YourBestFriend: use next
<benzrf>
YourBestFriend: next is like return for procs
<centrx>
or there you go
momomomomo has joined #ruby
pranny has joined #ruby
<benzrf>
YourBestFriend: return will return from the function the proc was defined in
<benzrf>
YourBestFriend: break will return from the function the proc was called in
<toretore>
jason^: is it builder?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pranny has quit [Client Quit]
danshult_ has joined #ruby
charliesome has joined #ruby
LexicalScope has joined #ruby
senayar has quit [Remote host closed the connection]
coderdad has joined #ruby
charliesome has quit [Client Quit]
pranny has joined #ruby
burlyscudd has quit [Quit: Leaving.]
dzhulk has quit [Client Quit]
tziOm has joined #ruby
<jason^>
toretore: Ox
senayar has joined #ruby
InFlames has joined #ruby
<jason^>
i really hate trying to parse XML in any language
ecualombian has joined #ruby
<benzrf>
what about nokogiri
senayar has quit [Remote host closed the connection]
senayar_ has joined #ruby
<jason^>
i've used it before, i'm currently using REXML but i'm trying to parse a 300mb xml file
<jason^>
it's still trying to read the document in
<benzrf>
ah
<centrx>
Use Nokogiri..
echevemaster has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
<onewheelskyward>
300mb? Good luck
<Jason>
jason^: there can be only one.
* Jason
is the real jason.
<apeiros>
jason^: REXML is *a lot* slower than nokogiri
<YourBestFriend>
benzrf: yeah but how do I return a result?
<InFlames>
sorry if this isn't the easiest to follow, i'm having some big problems with grunt, but the error is ruby, maybe some can help me trace this? https://gist.github.com/gnarmedia/9101560
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
pranny has quit [Client Quit]
kitak has quit [Remote host closed the connection]
coderdad has quit [Remote host closed the connection]
<slowcon>
centrx: i went through step by step in pry, and what looks like its happening is the page is going to the "Click here if your browser does not automatically redirect you." page and staying there
<centrx>
aha
kitak has quit [Remote host closed the connection]
<benzrf>
YourBestFriend: procs and lambdas are both of class Proc
<benzrf>
but lambdas have #lambda? => true
kitak has joined #ruby
<YourBestFriend>
OK
segv has joined #ruby
geggam has joined #ruby
<benzrf>
if you want to turn procs into lambdas the only real way is to use define_method (or one of its derivatives) and then pull a lambda out of the method
timonv has joined #ruby
tubuliferous has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
ilyam has joined #ruby
jonahR has joined #ruby
tziOm has quit [Ping timeout: 260 seconds]
pigzzcanfly has joined #ruby
sed_life_better has quit [Ping timeout: 252 seconds]
burlyscudd has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
<tubuliferous>
Hey ruby folks, I want to declare a hash of arrays of arrays
RichardRaseley has joined #ruby
<tubuliferous>
what's the best way to do this?
pwh has joined #ruby
mikepack_ has joined #ruby
<toretore>
you don't need to declare anything
<toretore>
a hash of arrays doesn't make any sense
<tubuliferous>
Why not?
<toretore>
how would it look?
PLejeck has joined #ruby
<toretore>
a hash has keys and values
<RichardRaseley>
Need some help related to regex. I have this (https://gist.github.com/richardraseley/6bdc4f025bc840ed1d76) script which should return as a first match group the text found after ' default_realm = ' found on one line in a file. For all the lines that don't match at all it returns nil, but for the line that matches it returns the whole line.
<RichardRaseley>
How can I access the first match group only?
<banister>
benzrf or you could just wrap the proc in a lambda i guess
<slowcon>
centrx: i guess it doesnt really matter if it doesnt redirect me after, as long as its logged in. i can test the login by trying to find that other text "Click here if your browser does not automatically redirect you."
<tubuliferous>
hahaha, yeah...but the point (which I should have made clear earlier, my apologies) is that I want to be able to fill the hash of arrays of arrays with input from a file...
<tubuliferous>
so I need to be able to push values to those arrays
<toretore>
well that's a completely different thing
havv has quit [Quit: Leaving]
<tubuliferous>
so the arrays have to already exist before I start pushing
pwh has quit [Ping timeout: 240 seconds]
<YourBestFriend>
hash['12'] = [[]]
<toretore>
tubuliferous: why do they need to exist already? can't you just collect each array and then put it together after?
mikepack_ has quit [Ping timeout: 245 seconds]
Guest33226 has quit [Remote host closed the connection]
<centrx>
InFlames, Apparently this gem requires a certain crypto library to be installed.
airdisa has joined #ruby
<tubuliferous>
toretore: yeah, that's a good point
zoscoy has joined #ruby
<tubuliferous>
toretore: I'd still like to be able to create this data structure dynamically, as I read in the data from the file
x1337807x has quit [Ping timeout: 252 seconds]
<toretore>
tubuliferous: having said that; i often use Hash.new{|h,k| h[k] = [] }
<tubuliferous>
*fill this data structure dynamically
kitak has quit [Remote host closed the connection]
<tubuliferous>
oh, cool
dorei has joined #ruby
<tubuliferous>
Yeah, that looks good
kitak has joined #ruby
<tubuliferous>
let's give that a shot...
<tubuliferous>
thanks
<toretore>
it's difficult to say what the best way to go about it is when i don't know what you're doing
<tubuliferous>
well I don't know what I'm doing either, so... =D
<tubuliferous>
I'll let you know if that worked
<pontiki>
when you don't know where you're going, any direction will do....
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dorei>
hello
gja has joined #ruby
<tubuliferous>
right, and your direction looks pretty good
<tubuliferous>
that'll do
<dorei>
let's say I have a hash that all of its keys are strings and I want to convert them into symbols, is there a nicer way than Hash[{'a'=>1, 'b'=>2}.map{|k,v| [k.to_sym, v]}] ?
sailias has quit [Quit: Leaving.]
<apeiros>
dorei: not really
SHyx0rmZ has joined #ruby
joelroa has joined #ruby
<apeiros>
if you use a newer ruby, you can use to_h
<InFlames>
centrx, the thing is, everything should be installed already :/ and it isn't even a ruby project, it's a grunts project running in yeoman
<dorei>
newer as in 2.x ?
<toretore>
if you want to mutate that is
<apeiros>
dorei: not sure. might be 2.1+
<toretore>
otherwise, replace first hsh with something else
<apeiros>
if you use rails, you can use symbolize_keys
fijimunkii has quit [Ping timeout: 265 seconds]
<apeiros>
toretore: .keys.each -> .each_key
<toretore>
dorei: why do you want to convert the keys anyway? seems like unnecessary work
<apeiros>
oh, wait
francisfish has joined #ruby
<toretore>
apeiros: yeah i was going to write that, but didn't know if it existed :)
<apeiros>
you mutate the keys
fijimunkii has joined #ruby
<apeiros>
no, I think in this case it'd be a bad idea
<toretore>
well, the hash
<apeiros>
yes. you add new keys and you delete existing keys
<toretore>
yes
<apeiros>
so .each_key would not do what you want. in this case, .keys.each is proper
subbyyy has joined #ruby
coderdad has joined #ruby
monkegjinni has joined #ruby
tziOm has quit [Ping timeout: 248 seconds]
joelroa has quit [Ping timeout: 252 seconds]
coderdad has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
RichardRaseley has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
Uranio has quit [Quit: WeeChat 0.4.3]
zachallett has quit [Remote host closed the connection]
tziOm has joined #ruby
Kricir has joined #ruby
shado has joined #ruby
airdisa has quit [Remote host closed the connection]
sailias has joined #ruby
aspires has joined #ruby
Vivekananda has quit [Ping timeout: 265 seconds]
burlyscudd has joined #ruby
cpruitt has quit [Quit: cpruitt]
cpruitt has joined #ruby
monkegjinni has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
Vivekananda has joined #ruby
zegerjan has quit [Ping timeout: 260 seconds]
MrV has joined #ruby
kaptainkibosh has quit [Quit: leaving]
camilasan has joined #ruby
tziOm has quit [Read error: Operation timed out]
teenwolf has quit [Ping timeout: 260 seconds]
MrV has quit [Client Quit]
fmcgeough has quit [Quit: fmcgeough]
Czupa has quit [Remote host closed the connection]
aloitius_ has quit [Ping timeout: 245 seconds]
burlyscudd has quit [Ping timeout: 246 seconds]
shado has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
burlyscudd has joined #ruby
nathancahill has quit [Quit: nathancahill]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
ianfleeton has joined #ruby
jprovazn has quit [Quit: Odcházím]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gja has joined #ruby
nathancahill has joined #ruby
maletor has joined #ruby
shado has joined #ruby
tziOm has joined #ruby
fedesilv_ has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
kaptainkibosh has joined #ruby
IceDragon has quit [Quit: Space~~~]
gja has quit [Client Quit]
sdwrage has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
kaptainkibosh has quit [Client Quit]
danshult_ has quit [Remote host closed the connection]
<slowcon>
centrx: got it, it was syntax >_<
<centrx>
syn...tax
danshultz has joined #ruby
<slowcon>
centrx: was using login_form = agent.page.form.first and should have been using .formS.first
bklane has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
<slowcon>
centrx: so if im switching between ruby scripts, i wont have to relogin?
<centrx>
I don't know, see if the cookie is saved or can be saved
tziOm has quit [Read error: Operation timed out]
chipotle has quit [Quit: cya]
AxonetBE has joined #ruby
gja has quit [Client Quit]
danshultz has quit [Ping timeout: 265 seconds]
IceDragon has joined #ruby
timonv has quit [Remote host closed the connection]
prc has joined #ruby
kayamm has joined #ruby
popl has quit [Ping timeout: 246 seconds]
stryek has quit [Ping timeout: 265 seconds]
gja has joined #ruby
ballPointPenguin has quit [Quit: Connection closed for inactivity]
<slowcon>
centrx: thanks, checking out cookiejar
<bodie_>
not sure how to get tk working -- do I really need to recompile my own ruby with it or can't I just use rvm somehow?
troyready has joined #ruby
mary5030 has quit [Remote host closed the connection]
benzrf has left #ruby [#ruby]
sailias has quit [Quit: Leaving.]
_HolyCow has quit [Quit: Leaving.]
IceyEC has quit [Quit: IceyEC]
ianfleeton has quit [Quit: ianfleeton]
gja has quit [Client Quit]
danshultz has joined #ruby
monkegjinni has joined #ruby
IceDragon has quit [Read error: Connection reset by peer]
mushky has quit [Quit: mushky]
coderdad has joined #ruby
shawnjgoff has quit [Ping timeout: 260 seconds]
mushky has joined #ruby
phoenixHollywood has joined #ruby
claymore has quit [Ping timeout: 272 seconds]
coderdad has quit [Write error: Broken pipe]
AxonetBE has quit [Quit: AxonetBE]
IceDragon has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<phoenixHollywood>
hey guys... I am a little confused about something. I've got a ruby project that has a custom gem in the gemfile... Let's say, it's foo, so I have some code which does require 'foo'.. and when I run specs, it works just fine. I look at the $LOAD_PATH, and I see the foo gem's lib directory in there..
jkamenik has joined #ruby
kirun has quit [Quit: Client exiting]
petey has quit [Remote host closed the connection]
mary5030 has joined #ruby
danshultz has quit [Remote host closed the connection]
<phoenixHollywood>
yet when I actually run the code: ruby do_it.rb, when it executes the code that does require 'foo', it blows up-- and $LOAD_PATH does not have that gem's lib in there
daidoji has quit [Quit: WeeChat 0.4.1]
petey has joined #ruby
<phoenixHollywood>
But, all the other gems in the project are in the load path, so I am totally confused about why this works in spec land but not in the real world. Does anyone have any ideas?
Xeago has joined #ruby
danshultz has joined #ruby
dik_dak has quit [Quit: Leaving]
monkegjinni has quit [Ping timeout: 260 seconds]
claymore has joined #ruby
<apeiros>
phoenixHollywood: you said "in the Gemfile"
<apeiros>
so I assume you use bundler
claymore has quit [Changing host]
claymore has joined #ruby
<phoenixHollywood>
apeiros: yes...
<apeiros>
you'd have to use bundle exec ruby do_it.rb
<apeiros>
rspec does that itself I think
burlyscudd has joined #ruby
<phoenixHollywood>
apeiros: but what I don't understand is, why would the other gem files be in the load path?
kaldrenon has quit [Remote host closed the connection]
msmith has quit [Remote host closed the connection]
<phoenixHollywood>
apeiros: yeah that totally worked.. bundle exec is the man, no wait-- you are the man. thanks
stryek has joined #ruby
<phoenixHollywood>
unless you're a woman
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
petey has quit [Ping timeout: 252 seconds]
camilasan has quit [Ping timeout: 260 seconds]
Matriks has quit [Remote host closed the connection]
danshultz has quit [Read error: Operation timed out]
Xeago has quit [Ping timeout: 260 seconds]
troyready has quit [Ping timeout: 252 seconds]
chrisja has joined #ruby
jkamenik has quit [Quit: Leaving.]
jonah_k has quit [Remote host closed the connection]
ianfleeton has joined #ruby
cj3kim has joined #ruby
echevemaster has quit [Remote host closed the connection]
petey has joined #ruby
echevemaster has joined #ruby
petey has quit [Remote host closed the connection]
twiceaday has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
petey has joined #ruby
<apeiros>
I'm the coder
tziOm has joined #ruby
twiceaday has joined #ruby
fuhgeddaboudit has joined #ruby
fuhgeddaboudit has quit [Read error: Connection reset by peer]
monsieurp has joined #ruby
thumpba has quit [Remote host closed the connection]
ehc has joined #ruby
claymore has quit [Quit: Leaving]
aryaching has joined #ruby
ecualombian has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
freezey has joined #ruby
kindjal has joined #ruby
nszceta has quit [Quit: out]
bklane has quit [Quit: Leaving...]
kindjal has quit [Client Quit]
joelroa has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
yasushi has joined #ruby
bilbo_swaggins has joined #ruby
pigzzcanfly has joined #ruby
sparrovv has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
ktosiek has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
bilbo_swaggins has quit [Client Quit]
cgore has quit [Remote host closed the connection]
krnflake has quit [Max SendQ exceeded]
Atw has joined #ruby
mib_mib has joined #ruby
krnflake has joined #ruby
tziOm has quit [Ping timeout: 240 seconds]
jerius has quit [Ping timeout: 245 seconds]
asmodlol has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
<mib_mib>
hi all - WEBrick::HTTPProxyServer.new - how can i make this hide all of its output to STDOUT except what i want? Its showing ALL requests data and there's just too much, i tried :log => <some logger> but this didnt work
joelroa_ has quit [Ping timeout: 246 seconds]
sambao21 has quit [Read error: Connection reset by peer]
sambao21_ has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
slowcon has quit []
dblessing has quit [Quit: dblessing]
jobewan has quit [Quit: Leaving]
enebo has quit [Quit: enebo]
nowthatsamatt has quit [Quit: nowthatsamatt]
meatherly has quit [Ping timeout: 272 seconds]
mikepack has quit [Remote host closed the connection]
tziOm has joined #ruby
petey has quit [Ping timeout: 272 seconds]
elaptics`away is now known as elaptics
aryaching has quit [Ping timeout: 260 seconds]
gilcosson has quit []
wallerdev has quit [Ping timeout: 260 seconds]
nerdgrass has joined #ruby
[krisbulman] is now known as krisbulman
ffranz has quit [Ping timeout: 252 seconds]
pwh has quit []
animehti has joined #ruby
danshultz has joined #ruby
<animehti>
For all my fellow programmers out there. Do you have to follow this code by the ACM, I am curious. v
cj3kim has quit [Remote host closed the connection]
Rylee has quit [Remote host closed the connection]
asmodlol has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
Rylee has joined #ruby
<centrx>
Define "have to"
dorei has quit []
danshultz has quit [Ping timeout: 260 seconds]
tziOm has joined #ruby
aspires has quit []
IceDragon has quit [Read error: No route to host]
kayamm has quit [Quit: part]
* apeiros
doesn't have to follow any code
<apeiros>
only my work contract and the laws
IceDragon has joined #ruby
cj3kim has joined #ruby
zachallett has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
aspiers has joined #ruby
jbueza has joined #ruby
kitak has quit [Remote host closed the connection]
tziOm has quit [Ping timeout: 272 seconds]
sparrovv has joined #ruby
kitak has joined #ruby
gja has joined #ruby
asmodlol has quit [Remote host closed the connection]
ffranz has joined #ruby
nerdgrass has joined #ruby
aspires has joined #ruby
geggam has quit [Quit: Leaving]
jhass is now known as MrZYX
MrZYX is now known as jhass
cjsarette has quit [Ping timeout: 248 seconds]
jonah_k has quit [Remote host closed the connection]
hiall has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
<pontiki>
if i was told i had to follow a code of ethics, i'd find ways to subvert it
<pontiki>
ethics cannot be externally enforced and be actually followed
nanoyak has quit [Quit: Computer has gone to sleep.]
nerdgrass has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<boom__>
"A man has to have a code" -Omar little
<pontiki>
their own
<pontiki>
not one imposed
nfk has quit [Quit: yawn]
rayners has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
certainty has quit [Remote host closed the connection]
<pontiki>
as it stands, i don't disagree with anything in ACMs code
jonah_k has joined #ruby
itadder has joined #ruby
wca has joined #ruby
cjsarette has joined #ruby
mib_mib has quit [Ping timeout: 245 seconds]
tziOm has joined #ruby
tootubular has quit [Quit: tootubular]
cj3kim has quit [Remote host closed the connection]
nanoyak has joined #ruby
thams has quit [Quit: thams]
thams has joined #ruby
Jetchisel has joined #ruby
nathancahill has quit [Quit: nathancahill]
ianfleeton has quit [Quit: ianfleeton]
tziOm has quit [Ping timeout: 260 seconds]
pwh has joined #ruby
tvw has quit []
Mongey has joined #ruby
tvw has joined #ruby
mikepack has joined #ruby
airdisa has joined #ruby
aspiers has quit [Read error: Operation timed out]
itadder has quit []
<dingus_khan>
i like the way you think pontiki
francisfish has joined #ruby
<pontiki>
THEN I'M CHANGING
nomenkun has joined #ruby
mlpinit has quit [Remote host closed the connection]
itadder has joined #ruby
<pontiki>
but seriously
<dingus_khan>
HAH! love it
<pontiki>
lawyers are required to follow ethics rules or be disbarred, which means they can't practice law
sassamo has quit [Remote host closed the connection]
<pontiki>
what does that say about lawyers as a profession?
<dingus_khan>
at least on paper
<pontiki>
well, yeah
<pontiki>
but there are people who do review such things
<pontiki>
licensed engineers have the same requirement in some jurisdictions
<dingus_khan>
right; i guess it's an observation of the power they have
<pontiki>
and medical professionals do as well
<dingus_khan>
i think that's where the end goal starts to differentiate somewhat
<pontiki>
there was a time when some people thought software engineers should be licensed as well
<dingus_khan>
not in what is abstractly to have ethics, but in pratice
stryek has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dingus_khan>
that last point also sounds like an acknowledgement of the power programmers have
<pontiki>
maybe
qhartman has quit [Quit: Ex-Chat]
<pontiki>
it's never happened in the US afaik
<dingus_khan>
not that it excludes other motivations
airdisa has quit [Ping timeout: 265 seconds]
francisfish has quit [Ping timeout: 245 seconds]
<pontiki>
one of the serious impediments to licensing software engineers is the pace of change of software development
b00stfr3ak has quit [Ping timeout: 272 seconds]
[gmi] has quit [Read error: Connection reset by peer]
<dingus_khan>
likely more industry-specific and public vs. government--are we including things like NDLs and security clearances?
nomenkun has quit [Ping timeout: 252 seconds]
<pontiki>
likewise electrical engineering
mikepack has quit [Ping timeout: 245 seconds]
<pontiki>
yep yep
<dingus_khan>
too broad, probably, to fall under "licensing" the way i think you mean it
<pontiki>
but civil engineering doesn't change all that rapidly
<pontiki>
not any more
<pontiki>
and it has to do with public safety in a very direct way, like doctors
<dingus_khan>
indeed, different nature of work
nathancahill has joined #ruby
randomnick_ has quit [Quit: Leaving]
<pontiki>
so there are good reasons for having some professions licensed to operate, which demand a code, as well as probably sets of rules
nowthatsamatt has joined #ruby
<pontiki>
and someone working on security protocols for the power grid is operating at a vastly different level of public safety than someone writing a php script for their dad's online storefront
<dingus_khan>
i guess that's the context argument; makes sense to me
sambao21_ has quit [Quit: Computer has gone to sleep.]
sdwrage has quit [Read error: Connection reset by peer]