<pdtpatrick>
or you can decorate irb with irbtools
<stuartrexking>
I am putting together a gemspec file. I have a Gemfile with two groups (production and test). How do I list out all the dependencies in the production group with their current versions, so that I can add them to the gemspec as dependencies?
<pdtpatrick>
though github seems to be having issues right now
<thibauts>
csmrfx: yes i have ri, i didn't know ^^ very useful, thanks
graeme has joined #ruby
pyr0commie has quit [Remote host closed the connection]
shiin has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
<canton7>
stuartrexking, huh? If, in your gemfile you have `gem "thingy", "> 1.0",`, use `s.add_dependency "thingy", "> 1.0"` in your gemspe
<canton7>
*gemspec
ozgor has quit [Quit: ozgor]
Dario_ has quit [Ping timeout: 264 seconds]
<stuartrexking>
canton7: The versions are not specified in the Gemfile. This is the actually issue... Thanks.
<canton7>
stuartrexking, then if you're not bothered about the versions, you don't need to add version constraints to the gemspec :P
<stuartrexking>
Ha.
<stuartrexking>
Thanks.
<canton7>
check the Gemfile.lock iirc to see what bunder's dependency resolution figured out if you're curious
Nanuq has quit [Read error: Operation timed out]
PetePorty has joined #ruby
yxhuvud has joined #ruby
freakazoid0223 has joined #ruby
Nanuq has joined #ruby
ryannielson has joined #ruby
ryannielson has quit [Client Quit]
ryannielson has joined #ruby
ryanlecompte has joined #ruby
bobrossasaurus has quit [Remote host closed the connection]
yxhuvud2 has quit [Ping timeout: 246 seconds]
goraxe has joined #ruby
Catnaroek has quit [Quit: brb peepls!!1]
kennyvb has quit [Ping timeout: 244 seconds]
squidBits has quit [Read error: Connection reset by peer]
yaroslav has joined #ruby
kennyvb has joined #ruby
reppard has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
forcefsck has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
hadees has quit [Quit: hadees]
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
PetePorty has quit [Remote host closed the connection]
rakuN has joined #ruby
hero_ has joined #ruby
jfl0wers has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
charliesome has joined #ruby
havenn has joined #ruby
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby
icole has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Ping timeout: 265 seconds]
huoxito has joined #ruby
slainer68 has joined #ruby
graeme has quit [Quit: graeme]
soulcake has joined #ruby
NeedSomeHelp has joined #ruby
mercwithamouth has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
<mguy>
Who broke github!
<NeedSomeHelp>
hello
<shevy>
mguy me!
crackfu has joined #ruby
<NeedSomeHelp>
I dont know if this is directly a Ruby question, but I try. I have just installed Susy (for Compass/SASS) with 'gem install susy', and then started 'compass watch'. When loading the website, I get the error "Syntax error: File to import not found or unreadable: susy."
rondale_sc has quit [Quit: rondale_sc]
nerd has joined #ruby
kamsel has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
h4mz1d has joined #ruby
alanjc_ has quit [Quit: alanjc_]
<swarley>
o-O
<swarley>
mguy; the unicorns
Kuifje has quit [Ping timeout: 246 seconds]
postmodern has quit [Remote host closed the connection]
nick_h has quit [Ping timeout: 256 seconds]
radosch has joined #ruby
slainer68 has quit [Ping timeout: 265 seconds]
Virunga has quit [Remote host closed the connection]
<radosch>
Hi, somebody can give me advice on monkey patching alternative? http://pastie.org/5566972 best practice, not to mess up the code ^^ ?
nick_h has joined #ruby
<radosch>
I would like to avoid monkey patching, and having a Range Object in my subclass
<radosch>
is this possible?
<radosch>
Range.new(1,10) ----> MyGem::Range.new(1,10) with the additional object instance methods
reppard has joined #ruby
<maetthew>
uh. i'm trying to install RVM and get this weird error
<shevy>
jsilver hmm I cant give up on irc yet... #ruby is cool... and there are a few more nice people on other channels too...
<jsilver>
could be a man, woman, little girl, boy dog or a lien
<havenn>
lepht: You should be trying to download chruby while Github is down!
<shevy>
lepht mine too... I cant download libevent :(
<jsilver>
shevy: yeah its just a little joke app really but the cool part is you chat 100% in Ruby or Node
<lepht>
pdtpatrick: …I take it you didn't actually look at that
<pdtpatrick>
maybe not :)
<jsilver>
works great for a PM or a small channel, but if it were full of 670 ppl like this, it would be the same and nobody could kick the "troll", me, out :p
<jsilver>
but maybe with added multiline pasting + log buffer replaying
<matip>
do you know any good tutorial/manual/whatever of active record?
<shevy>
jsilver there are like no ops here, it's chaos government on #ruby :P
<lepht>
havenn: I'd give it a shot but github
<jsilver>
it's great. #RubyOnRails is a police state
yxhuvud has quit [Ping timeout: 260 seconds]
<shevy>
agreed
<pdtpatrick>
is github in AWS ? they should definitely start using multiple AZs .. maybe i'll wait and read up on what happened with them
<jsilver>
they make me out to seem worse than I really am.. which is a bigger crime IMO
<shevy>
nazi powers requiring registration in order to voice
<havenn>
Why hath Github forsaken us???
<lepht>
first I've heard of chruby
<lepht>
seriously, I'd rather have my gmail go down
<shevy>
havenn we were not cool enough :(
<jsilver>
shows the true natural progression of a corporate run state
<jsilver>
coprorate->fascist->authoritarian
<shevy>
I could live with gmail down for 2 days
<havenn>
chruby 0.3.0 just got released, supports .ruby-version auto-switching.
<jsilver>
this government principle itself I tried to defeat in GC2 by simply.. removing Ops and IRCops
<shevy>
jsilver the first and third are both just different ways of fascism
<jsilver>
any chat on GC2 is a #Euby
apeiros_ has quit [Ping timeout: 250 seconds]
<jsilver>
agree
<lepht>
was hoping one of these things would be mirrored on bitbucket, but of course no one actually *uses* bitbucket X|
<shevy>
Euby?
<jsilver>
#Ruby sorry
<shevy>
the sound of that is so... wrong
<shevy>
ok
<havenn>
lepht: What OS?
<jsilver>
you have to lay low.. which i don't so. but I like Rails the product! interesting which way the culture has gone
<shevy>
naaah rails is too large these days
caemir_ has joined #ruby
<jsilver>
right yea
<jsilver>
and pretentious
<jsilver>
ha ha
<lepht>
havenn: os x… even my package manager is github based :|
<jsilver>
ha
<jsilver>
<- golf lover
theRoUS has joined #ruby
<jsilver>
price of tea in china right
<shevy>
hey... lepht you have a package manager??
<havenn>
lepht: Was gunna say `brew install chruby` but yeah........ WHY GITHUB, WHY?!?!?
<shevy>
aaaah
<lepht>
lol
<shevy>
now I get it :)
<shevy>
brew is down
<lepht>
derp
<shevy>
omg omg omg...
<jsilver>
"not enough to warrant incessant ruby knowledge hunger"
<shevy>
all you mac users using brew! I see why you complain :D
<lepht>
this is what we get for abandoning ports… even though it barely ever worked
<jrajav>
We complain?
<jrajav>
lol
<shevy>
"Sorry, we're down for maintenance"
<lepht>
IT JUST WORKS DAMMIT
<jrajav>
Homebrew is literally the best package manager I have ever used
<shevy>
jrajav really?
<havenn>
jrajav: +1
<pdtpatrick>
ehhh i wouldn't go that far
<shevy>
but it's mac only :(
<jsilver>
yo
<jrajav>
shevy: That's kind of the point
<jsilver>
all you ppl that cant fix brew
<pdtpatrick>
apt-get == AWESOME
<jsilver>
rm -rf /usr/local
<jrajav>
It's a package manager for OS X
<shevy>
man
<lepht>
it's also the only one that I've actually authored packages for… the way formula works is fantastic
<jsilver>
and reinstall it
<shevy>
I am gonna destroy brew one day with my package manager!
<lepht>
apt-get is nice as well
<jrajav>
pdtpatrick: Well I never used apt, so.. still true :P
<shevy>
I will study brew heavily and then rip it apart bit by bit
<jsilver>
apt is the only good one ever but gem is honestly better...
<jsilver>
apt can shit too and its not much better than port
<lepht>
I prefer apt > gem
<shevy>
jsilver, please... debian changes packages so much
<shevy>
debian does not like gems
<jrajav>
gem isn't an OS package manager, it's a language lib package manager
<jsilver>
their loss
<jsilver>
yes
<lepht>
we have neckbeards
PetePorty has joined #ruby
<shevy>
lol
<jsilver>
homebrew for linux would be better
<jsilver>
yes
* jsilver
strokes his
<shevy>
they hate linux
<jsilver>
their win
<havenn>
BSD
<lepht>
who does
<shevy>
!!!
<shevy>
machomebrew
<mayhew>
Homebrew is terrible compared to apt-get.
<jsilver>
i used to get a lot of hate for using linux
PetePorty has quit [Changing host]
PetePorty has joined #ruby
<lepht>
shhh mayhew
<pdtpatrick>
rpm to some extent is also very nice. I don't think homebrew automatically pull in dependencies. I think it just tells you what you're missing and then exits and expects you to install it and try again
<pdtpatrick>
whereas apt-get would usually pull it down
<jrajav>
It does
<shevy>
well... at least homebrew is written in ruby, so that is cool in my book. I think apt-get is written in perl... and C?
<lepht>
I thank god for linux… once apple fully locks down os x, I'm happy I won't have to go to windoze
Goles_ has quit [Quit: Computer has gone to sleep.]
<jrajav>
Homebrew resolves dependencies, and well
<lepht>
i hatehate rpm
<shevy>
lepht tried win 8 yet?
<pdtpatrick>
jrajav: it does? last I checked it told me to install mercurial (instead of installing it for me) when i was installing vim
<lepht>
nuh. I have no interest in anything w/o posix shell
<lepht>
(natively)
staafl has joined #ruby
<jrajav>
pdtpatrick: Um... vim depends on mercurial......?
<havenn>
pdtpatrick: If so, that is a formula-fail. Start a Github Issue.
<pdtpatrick>
nope but i think it needs mercurial to check out the repo
<pdtpatrick>
and i went -- *sigh* .. FAIL
<jrajav>
Yeah it could be a bad formula
<jrajav>
But still, that's not really a dependency, that's more of an overarching "build dep" for homebrew itself
<lepht>
you're an overarching build dep
<jrajav>
I don't know whether VCS's needed for formulae are specified by the formula themselves or handled internally (or not at all)
<jrajav>
lepht: D:
<wmoxam>
meh, I just use macports
<wmoxam>
don't see the appeal of homebrew
<jrajav>
wmoxam: I did too, back when I was young and naive
<havenn>
Homebrew is lovely.
<lepht>
haha, yeah old me that used macports was dum
<wmoxam>
I've used both, and updated a package in macports
<havenn>
wmoxam: Is macports still kicking? Well supported?
<wmoxam>
havenn: yup
<havenn>
wmoxam: Nice.
<wmoxam>
it's still great. Not sure why ppl shit on it so much
<havenn>
wmoxam: I have no qualms with macports, but no complaints with homebrew. :P
<pdtpatrick>
i use whatever gets the job done.
caemir_ has quit [Quit: BNC → EXIT ! |DONE|]
<pdtpatrick>
i just happen to use homebrew first and if it fails then i look and see what else is out there :)
<mayhew>
wmoxam: doesn't Macports install stuff in the system directories?
<matip>
I have "require 'bundler/setup' \n Bundler.require(:default)" in foo.rb and "require 'rubygems' \n require 'active_record'" in Gemfile
<postmodern>
how much longer is github going to be down? estimates?
<matip>
is it ok?
<matip>
I'm getting an error:
<postmodern>
considering mirroring some projects on bitbucket or gitorious
<matip>
`<top (required)>': cannot load such file -- active_record/base (LoadError)
<pdtpatrick>
wow GITHUB -- not looking purrty
<wmoxam>
homebrew has less packages, and I don't find homebrew formulas any easier/better to write/edit than BSD style packages
<wmoxam>
mayhew: no
<matip>
but if I put the requires in foo.rb it works
h4mz1d has quit [Ping timeout: 265 seconds]
<havenn>
postmodern: Good point. Do ya think Gitorious or BitBucket is a better stand-in?
<postmodern>
preferences for alternative git hosting?
<wmoxam>
mayhew: goes in /opt by default, but I think that's configurable
love_color_text has joined #ruby
<postmodern>
havenn, good q, i mirrored some stuff on gitorious before
<postmodern>
havenn, they allow creating projects with multiple repos, like organizations
emocakes has quit [Quit: emocakes]
<wmoxam>
postmodern: sourceforge has git support now, trolololo
<havenn>
postmodern: I've only dabbled in Bitbucket, will have to check out Gitorious.
<lepht>
I actually sorta like bitbucket… and their native mac GUI vcs client is actually really great
<lepht>
actually.
<postmodern>
wmoxam, they also have excellent PHP support :P
<lepht>
ick
<wmoxam>
lol
<postmodern>
wmoxam, which gets them hacked once a month
rakl has quit [Quit: sleeping]
<wmoxam>
postmodern: I'm sure that their capable of that without php
<lepht>
yes, but it comes back to the right tool for the job
<lepht>
php is the right tool for that job
<lepht>
when there's a link on hacker news to datafart.com, it has been a good day
lolcathost has joined #ruby
<jrajav>
datafart describes quite a few HN submissions pretty well
<alexspeller>
matip: you have "require 'rubygems' \n require 'active_record'" in Gemfile?
love_color_text has quit [Remote host closed the connection]
<matip>
I don't know. do I?
<alexspeller>
that's what you said above right?
<matip>
(second day with Ruby, don't ask me :P)
<matip>
that's what I have, it doesn't mean it's correct!
<alexspeller>
Your gemfile should have one or more 'source' lines at the top (usually just "source :rubygems")
<alexspeller>
And then a load of gem statements
caemir has left #ruby ["Je pars..."]
<alexspeller>
Also, one thing to note is that Bundler and the attendant Gemfiles are an optional, awesome extension to rubygems
<lepht>
nice try, creator of bundler
<alexspeller>
You can just do gem install foogem, and then use require 'foogem' in your scripts, and that'll work most of the time. The problem comes when using multiple versions of gems and ensuring the right ones install on your deployment environment.
<havenn>
Other than the filename, I think Gemfile is an awesome idea!
yacks has quit [Ping timeout: 260 seconds]
<alexspeller>
Lol I wish I'd created bundler
radosch has quit [Quit: radosch]
<jsilver>
a lie
<matip>
ah, ok.. it should have been: source :rubygems \n gem "activerecord"
<jsilver>
re: BullShi
<matip>
though it's still returning `<top (required)>': uninitialized constant ActiveRecord (NameError)
apeiros_ has joined #ruby
<matip>
I suppose it is because it should be gem "activerecord", :require => "active_record" instead
<lepht>
for the love of god, everything I'm trying to do right now ends up at a gd error page with the octocat in a hardhat
<alexspeller>
lepht: I watched this great presentation by Greg Wilson about the lack of empiricism in software development (http://vimeo.com/9270320), and decided this evening to try and get some statistics together on the top github repos :(
<lepht>
alexspeller: interesting, well that'll at least give me something to watch while my nerd is busted
phelps has quit [Quit: Computer has gone to sleep.]
<postmodern>
lepht, btw i just mirrored chruby to bitbucket
caemir has joined #ruby
emocakes has joined #ruby
lolcathost has quit [Remote host closed the connection]
phelps has quit [Remote host closed the connection]
lolcathost has joined #ruby
<lepht>
postmodern: thx, I'll give it a look… although I ended up giving up and just compiling my own and replacing sysruby. what the sys admins don't know...
<postmodern>
lepht, i hope you installed it into /usr/local
ewag has joined #ruby
<postmodern>
lepht, otherwise the sysadmins will kill you
ryanf_ has joined #ruby
<lepht>
bah. they're a grumpy bunch anyway, if I didn't give them this they'd find something else
bigmcq77 has quit [Quit: Computer has gone to sleep.]
caemir has left #ruby ["Je pars..."]
<lepht>
postmodern: yep, /usr/local. wasn't on purpose though ;)
thomsch has joined #ruby
<lepht>
effing debian boxes at work are running 1.8.5… guess that's what I get for working in a perl shop
apeiros_ has quit [Ping timeout: 265 seconds]
<postmodern>
lol
<postmodern>
lepht, convince them to upgrade to debian-testing
ryanlecompte has joined #ruby
thomsch has quit [Ping timeout: 244 seconds]
sayan has joined #ruby
reppard has quit [Ping timeout: 245 seconds]
aapzak has quit [Ping timeout: 252 seconds]
<lepht>
if I had a nickel for every time I've convinced sys admins to do something reasonable… 0 nickels
<lepht>
oh hey, chruby fixes a bunch of things that annoyed me about rbenv/rvm
aapzak has joined #ruby
<postmodern>
lepht, less is more :)
radic has quit [Disconnected by services]
radic_ has joined #ruby
thmzlt has joined #ruby
emocakes has quit [Quit: emocakes]
thmzlt has quit [Remote host closed the connection]
Dario_ has joined #ruby
lolcatho` has joined #ruby
lolcatho` has quit [Read error: Connection reset by peer]
lolcathost has quit [Read error: Connection reset by peer]
thmzlt has joined #ruby
emmanuelux has quit [Ping timeout: 244 seconds]
alexspeller has quit [Remote host closed the connection]
thmzlt has quit [Remote host closed the connection]
<shevy>
hmm not sure postmodern
alexspeller has joined #ruby
<shevy>
less code is nice as it gives you less headache
<shevy>
but there are still useful features to have!
<postmodern>
shevy, less features i think is better
<postmodern>
shevy, er minimal set of features
<shevy>
dunno
<shevy>
i'd say minimal, and "a little bit more" :)
anarchist has joined #ruby
<lepht>
I hate features
Dario_ has quit [Ping timeout: 260 seconds]
<jrajav>
"Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher." - Antoine de Saint-Exupéry, Terre des Hommes
<jrajav>
It seems that perfection is reached not when there is nothing more to add, but when there is nothing to subtract.
matip_ has joined #ruby
billy_ran_away has quit [Ping timeout: 255 seconds]
waxjar has joined #ruby
<lepht>
deep bro
<shevy>
well
alexspeller has quit [Ping timeout: 252 seconds]
crackfu has joined #ruby
<shevy>
DNA has only four information states at any one point, one of the four bases A,T,C,G. and from this alone, you can build all living organisms, including all of their morphs and, at least for simple reactions, their behaviour as well
<jrajav>
Jeff Dunham is to funny like Jack Black is to metal
<havenn>
I'm in Github withdrawal.
<jrajav>
It's back up
<ddd>
think its time to submit my dequel model files and the AR model files to the sequel list and see if i can get some help rewriting these.
<ddd>
cause, i'm getting frustrated to hell and back trying to convert off ar
jenrzzz has quit [Read error: Connection reset by peer]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<ddd>
just absolutely can not wrap my head around the associations
lolcathost has joined #ruby
miskander has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
staafl has quit [Quit: Leaving]
lolcathost has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
jenrzzz has joined #ruby
kokainepizza has quit [Quit: My pooter is sleep.]
<lepht>
anyone know of a file pager — like less — that does color highlighting of stuff like README.md's, etc?
joofsh has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
PetePorty has quit [Remote host closed the connection]
nari_ has joined #ruby
pcarrier has quit []
havenn has quit [Remote host closed the connection]
parzorep_ has joined #ruby
stevechiagozie has joined #ruby
sayan has quit [Quit: Leaving]
havenn has joined #ruby
havenn has quit [Read error: Connection reset by peer]
parzorep has quit [Read error: Connection reset by peer]
parzorep_ is now known as parzorep
<jrajav>
lepht: vimpager ftw :P
cj3kim has joined #ruby
ryannielson has left #ruby [#ruby]
<lepht>
yeah, just blows on large files
tjasko__ has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
Jasko has quit [Ping timeout: 255 seconds]
<jrajav>
Yeah, it's actually kind of surprising how poorly vim handles large files
<jrajav>
I had to resort to ST2 to browse a ~100mb xml file a while ago
<jrajav>
(On Windows)
ryanf__ has joined #ruby
apeiros_ has joined #ruby
VegetableSpoon has quit [Read error: Operation timed out]
ryanf_ has quit [Ping timeout: 260 seconds]
nari_ has quit [Ping timeout: 252 seconds]
emocakes has joined #ruby
Dario_ has joined #ruby
billy_ran_away has left #ruby ["Textual IRC Client: www.textualapp.com"]
apeiros_ has quit [Ping timeout: 255 seconds]
bigmcq77 has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
jzig has quit []
emocakes has quit [Ping timeout: 256 seconds]
formax has joined #ruby
acrocity_ has joined #ruby
Dario_ has quit [Ping timeout: 245 seconds]
acrocity has quit [Ping timeout: 248 seconds]
acrocity_ is now known as acrocity
theRoUS has quit [Ping timeout: 260 seconds]
thmzlt has joined #ruby
<lepht>
…what are you doing with your life, jrajav
havenn has joined #ruby
miskander has quit [Quit: miskander]
<jrajav>
I'm creating
<jrajav>
Usually software
yxhuvud2 has joined #ruby
<jrajav>
That does tend to involve 100mb xml files on occasion, believe it or not :P
<jrajav>
It was a patent including chemical formulae, if you're curious
Takehiro has joined #ruby
yxhuvud has quit [Ping timeout: 244 seconds]
alexspeller has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
kil0byte_ has quit [Remote host closed the connection]
Takehiro has joined #ruby
emmanuelux has joined #ruby
<shevy>
jrajav wheee you know chemistry!
<jrajav>
I know software that works with patents :P
Teddy2steper has joined #ruby
ryanf__ has quit [Quit: broken pipes |||]
Takehiro has quit [Remote host closed the connection]
woolite64 has joined #ruby
Takehiro has joined #ruby
alexspeller has quit [Ping timeout: 252 seconds]
mayhew has quit [Quit: leaving]
yfeldblum has joined #ruby
banister_ has quit [Ping timeout: 250 seconds]
apeiros_ has joined #ruby
ananthakumaran has joined #ruby
huoxito has quit [Quit: Leaving]
apeiros_ has quit [Ping timeout: 244 seconds]
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
Teddy2steper has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
x82_nicole has joined #ruby
ryanlecompte has joined #ruby
cakeboss has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
thomsch has joined #ruby
iamjarvo has joined #ruby
ruzu has quit []
thomsch has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
g_bleezy has joined #ruby
vlad_starkov has joined #ruby
crackfu has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
Dario_ has joined #ruby
rippa has joined #ruby
savage- has joined #ruby
spinagon has joined #ruby
pen has quit [Remote host closed the connection]
savage- has left #ruby [#ruby]
nanothief has joined #ruby
Xeago has joined #ruby
apeiros_ has joined #ruby
mjolk has joined #ruby
kiyoura has quit [Ping timeout: 265 seconds]
Dario_ has quit [Ping timeout: 255 seconds]
rippa has quit [Ping timeout: 250 seconds]
jprovazn has quit [Ping timeout: 248 seconds]
<anarchist>
i have a web app that runs on ruby. is there a way to drop to the command line, execute a bash script, and print the output from my web app?
xebappu has joined #ruby
tk__ has joined #ruby
<iamjarvo>
anarchist: are you talking about a log output?
Na_Klar has quit [Quit: ChatZilla 0.9.87 [Firefox 17.0.1/20121129164337]]
<gatorate>
You hate but I have a friend who's a flash developer. He makes like 140k. Apparently the demand is crazy since everyone hates flash, thus there is like nobody learning it.
emmanuelux has joined #ruby
<gatorate>
Not flash design.
<gatorate>
I mean like flash for streaming video
haxrbyte_ has quit [Ping timeout: 252 seconds]
<gatorate>
ala youtube
<gatorate>
hulu
<gatorate>
netflix
<davidcelis>
lol flash
<davidcelis>
just do HTML5, save yourself 70% of your CPU
<gatorate>
and lose customers davidcelis
<gatorate>
Flash has higher penetration on pc.
<gatorate>
than html5
<davidcelis>
penetration? gross
elico has quit [Ping timeout: 255 seconds]
<gatorate>
Real talk my friend.
mercwithamouth has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
elico has joined #ruby
<gatorate>
anarchist ps a | grep ruby gives me all ruby processes
Slivka has joined #ruby
<anarchist>
coolio
<gatorate>
how can i pipe kill into that?
<anarchist>
usually awk is the way to go, i'm just learning it
<gatorate>
awk ?
<anarchist>
yeah sed, awk and grep are the big three of linux
<davidcelis>
awkward...
<anarchist>
sed edits a stream line by line
<shevy>
gatorate cant you just kill the process id?
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
<anarchist>
awk understands each thing as a field so it's good for structured predictable output
<anarchist>
and grep does what it do
<gatorate>
"each thing"
<anarchist>
this that the other
<anarchist>
$1 = this
<shevy>
Process.kill :QUIT, $PROCESS_ID
<anarchist>
$2 = that
<anarchist>
$3 = the
<anarchist>
$4 = other
<shevy>
yum, global variables
<shevy>
if you don't like global variables,
<shevy>
you just haven't been using them enough yet!
<gatorate>
I understand anarchist.
<gatorate>
so if "ps -a | grep ruby" gives me "2894 s002 R 0:00.00 grep ruby"
<gatorate>
What I really want is that first word. 2894
<gatorate>
this is the process ID
d2dchat_ has quit [Remote host closed the connection]
<gatorate>
Actually I think that is my own process.
<gatorate>
What if I kill my own process before the other ones I want to kill.
<gatorate>
That sounds bad.
stevechiagozie has quit [Ping timeout: 245 seconds]
joofsh has quit [Remote host closed the connection]
zommi has joined #ruby
fir_ed has quit [Ping timeout: 252 seconds]
<shevy>
lol
<shevy>
gatorate you should get your own id in $PROCESS_ID right?
<shevy>
Process.kill :QUIT, $PROCESS_ID <-- in irb, will make irb dysfunctional
icole has quit [Remote host closed the connection]
icole has joined #ruby
<anarchist>
if you put it through awk $1 then that should do it
<anarchist>
sorry i don't know the syntax off the top of my head but it's the first thing you'd learn in an awk primer
<shevy>
lol
<shevy>
that's the thing with this syntax, you forget it quickly
<shevy>
so you learn awk, but you forget it :)
<shevy>
gatorate cant you just split the string at .split(' ')[0] to obtain the id, then kill it?
Nisstyre-laptop has quit [Read error: Connection reset by peer]
gqlewis has joined #ruby
hadees has joined #ruby
<gatorate>
Okay heres a dilemma for you
<gatorate>
what if theres like 3 ruby processes
<gatorate>
Now I need to split on \n newline right ?
<gatorate>
and then loop through and kill .split(' ')[0]
<shevy>
hmmm
<shevy>
not sure how to find out the proper one in this case
<shevy>
perhaps with the name of the script additionally
apeiros_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
gqlewis has quit [Remote host closed the connection]
<waxjar>
there's a flag for ps that displays the whole command (including the parameters etc)
Slivka has quit [Remote host closed the connection]
mjolk has quit [Remote host closed the connection]
<aedorn>
I imagine if I were able to put Ruby code in a blender that it would taste like a strawberry and blueberry smoothie.
eldariof has joined #ruby
xebappu has quit [Quit: Leaving]
<shevy>
aedorn lol
cableray has joined #ruby
emergion has joined #ruby
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
Nisstyre-laptop has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
Nisstyre-laptop has joined #ruby
apeiros_ has quit [Ping timeout: 255 seconds]
pen has joined #ruby
rippa has joined #ruby
SirRamonGabriel has joined #ruby
spinagon has quit [Ping timeout: 250 seconds]
rippa has quit [Ping timeout: 250 seconds]
elico has quit [Remote host closed the connection]
rippa has joined #ruby
pen has quit [Read error: Connection reset by peer]
emergion has quit [Quit: Computer has gone to sleep.]
pen has joined #ruby
ner0x has joined #ruby
Dario_ has joined #ruby
yaroslav has joined #ruby
rippa has quit [Ping timeout: 250 seconds]
spinagon has joined #ruby
fir_ed has joined #ruby
rippa has joined #ruby
spinagon has quit [Read error: Connection reset by peer]
Dario_ has quit [Ping timeout: 260 seconds]
robustus has quit [Ping timeout: 244 seconds]
<aedorn>
I've discovered that trying to find tires for my vehicle pains me more than trying to fix bugs in untested spaghetti code.
robustus has joined #ruby
<lepht>
...
<lepht>
!UNSUBSCRIBE
iamjarvo has left #ruby [#ruby]
iamjarvo has joined #ruby
rippa has quit [Ping timeout: 250 seconds]
emocakes has joined #ruby
rippa has joined #ruby
yxhuvud2 has joined #ruby
Takehiro has joined #ruby
yxhuvud has quit [Ping timeout: 244 seconds]
Bosox20051 has quit [Quit: Leaving]
LouisGB has joined #ruby
emocakes has quit [Ping timeout: 244 seconds]
thams has quit [Quit: thams]
rippa has quit [Ping timeout: 250 seconds]
pen has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
Guest66575 has quit [Read error: Operation timed out]
rippa has joined #ruby
pen has joined #ruby
LouisGB has quit [Ping timeout: 264 seconds]
pencilcheck has joined #ruby
pen has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 250 seconds]
sayan has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
thomsch has joined #ruby
zommi has left #ruby [#ruby]
woolite64 has quit [Ping timeout: 272 seconds]
rippa has joined #ruby
rippa has quit [Ping timeout: 250 seconds]
Takehiro has quit [Remote host closed the connection]
fgro has joined #ruby
rippa has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
rippa has quit [Ping timeout: 250 seconds]
spinagon has joined #ruby
Nisstyre-laptop has joined #ruby
fjfish has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
SirRamonGabriel has quit [Remote host closed the connection]
<aedorn>
Best interprocess communication between a high output application written in Ruby and a GUI written in some-other-language would be?
francisfish has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
spinagon has quit [Ping timeout: 250 seconds]
nerd has quit [Quit: WeeChat 0.3.9.2]
x82_nicole has quit [Quit: Computer has gone to sleep.]
<aedorn>
I'm kind of leaning towards a ZeroMQ solution (with em-zeromq) ... but I'm wondering if there might be a better solution that I haven't really thought of
thmzlt has quit [Ping timeout: 255 seconds]
apeiros_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
fgro has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
<aedorn>
guess RabbitMQ would work too... probably don't need to worry about much in the way of performance for 1 or 2 gui "clients" per singular app
rakl has joined #ruby
lenovodroid has joined #ruby
havenn has quit [Remote host closed the connection]
pencilcheck has quit [Remote host closed the connection]
havenn has joined #ruby
fir_ed has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 252 seconds]
Dario_ has joined #ruby
apeiros_ has quit [Ping timeout: 265 seconds]
havenn has quit [Ping timeout: 252 seconds]
h4mz1d has joined #ruby
<TTilus>
rmq migt be an overkill
Dario_ has quit [Ping timeout: 252 seconds]
pen has joined #ruby
yxhuvud has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
iamjarvo has quit [Quit: Leaving.]
yxhuvud2 has quit [Ping timeout: 256 seconds]
nerd has joined #ruby
<reactormonk>
aedorn, depends - how do the data dependencies look like?
Takehiro has joined #ruby
bluOxigen has joined #ruby
rakl has quit [Quit: sleeping]
t0dd has joined #ruby
nerd has quit [Quit: WeeChat 0.3.9.2]
apeiros_ has joined #ruby
rakl has joined #ruby
luckyruby has quit [Remote host closed the connection]
t0dd has quit [Quit: Leaving]
nemesit has joined #ruby
lenovodroid has quit [Read error: Connection reset by peer]
Beoran__ has joined #ruby
pmros has joined #ruby
Beoran_ has quit [Ping timeout: 265 seconds]
<pmros>
hi!
vlad_starkov has quit [Remote host closed the connection]
Solnse has joined #ruby
Axsuul has quit [Read error: Connection reset by peer]
apeiros_ has quit [Ping timeout: 260 seconds]
nomenkun has joined #ruby
stayarrr has joined #ruby
arietis has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
Neomex has joined #ruby
Neomex has quit [Client Quit]
Dario_ has joined #ruby
cableray has quit [Quit: cableray]
Nss has joined #ruby
cableray has joined #ruby
apeiros_ has joined #ruby
Dario_ has quit [Ping timeout: 255 seconds]
fire has joined #ruby
yxhuvud2 has joined #ruby
yxhuvud has quit [Ping timeout: 264 seconds]
Juul has joined #ruby
pen has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 252 seconds]
pmros has quit [Quit: Konversation terminated!]
nomenkun has quit [Remote host closed the connection]
Virunga has joined #ruby
olivererxleben has joined #ruby
emocakes has joined #ruby
stayarrr has quit [Ping timeout: 244 seconds]
emocakes has quit [Ping timeout: 250 seconds]
tPl0ch has joined #ruby
_br_ has quit [Excess Flood]
ryanf has quit [Quit: leaving]
lkba has quit [Quit: Bye]
ryanf has joined #ruby
_br_ has joined #ruby
lenovodroid has joined #ruby
icole has quit [Remote host closed the connection]
icole has joined #ruby
_br_ has quit [Excess Flood]
yxhuvud2 has quit [Ping timeout: 244 seconds]
marr has joined #ruby
braoru has joined #ruby
ryanf has quit [Quit: leaving]
h4mz1d has quit [Ping timeout: 265 seconds]
_br_ has joined #ruby
apeiros_ has joined #ruby
thillux has joined #ruby
yxhuvud has joined #ruby
ner0x has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
cableray has quit [Quit: cableray]
ebouchut has joined #ruby
vlad_starkov has joined #ruby
jbw has quit [Ping timeout: 245 seconds]
Takehiro has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
yosafbridge has quit [Read error: Connection reset by peer]
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
pmros has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
lenovodroid has quit [Read error: Connection reset by peer]
busybox43 has quit [Ping timeout: 255 seconds]
gatorate has quit [Quit: gatorate]
yosafbridge has joined #ruby
chendo_ has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
Dario_ has joined #ruby
jbw has joined #ruby
darthdeus has quit [Quit: Leaving...]
emocakes has joined #ruby
<pmros>
hi!
Dario_ has quit [Ping timeout: 265 seconds]
hotovson has joined #ruby
koshii has quit [Ping timeout: 252 seconds]
ananthakumaran has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
hero has quit [Quit: leaving]
apeiros_ has joined #ruby
cloud|nix has joined #ruby
ozgor has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
LouisGB has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
love_color_text has joined #ruby
nomenkun has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
nomenkun has quit [Ping timeout: 250 seconds]
kil0byte has joined #ruby
Solnse2 has joined #ruby
cloud|nix has quit [Ping timeout: 246 seconds]
dsdeiz has joined #ruby
Solnse has quit [Ping timeout: 276 seconds]
<dsdeiz>
hi all is it possible to convert a hash to yaml format as a string?
nomenkun has joined #ruby
apeiros_ has joined #ruby
ozgor has quit [Quit: ozgor]
timonv has joined #ruby
radosch has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Nss has quit [Quit: Sto andando via]
matrixise has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
Juul has quit [Ping timeout: 260 seconds]
nomenkun has quit [Remote host closed the connection]
cloud|nix has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 252 seconds]
Virunga has quit [Remote host closed the connection]
kidoz has joined #ruby
Virunga has joined #ruby
emocakes has quit [Quit: emocakes]
Nss has joined #ruby
neurotec_ has joined #ruby
cakeboss has quit [Ping timeout: 264 seconds]
Solnse2 has quit [Ping timeout: 245 seconds]
neurotech has quit [Ping timeout: 260 seconds]
karakedi has quit [Ping timeout: 252 seconds]
icole has joined #ruby
aapzak has quit [Remote host closed the connection]
icole has quit [Ping timeout: 250 seconds]
sayan has joined #ruby
banisterfiend has joined #ruby
dsdeiz has quit [Ping timeout: 252 seconds]
assurbanipal_ has joined #ruby
elico has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
parzorep has quit [Quit: parzorep]
nilg has joined #ruby
assurbanipal_ has quit [Quit: Leaving]
assurbanipal_ has joined #ruby
S1kx has quit [Quit: Leaving]
jenrzzz has joined #ruby
tjasko__ has quit [Read error: Connection reset by peer]
shemerey has joined #ruby
tjasko__ has joined #ruby
shemerey has quit [Client Quit]
eka has joined #ruby
nick_h has quit [Ping timeout: 255 seconds]
nick_h has joined #ruby
<xybre>
So, any ideas as to why a nested array of 160,000,000 elements takes up 6gigs of RAM?
<xybre>
One large array with 450ish subarays, each with a few hundred thousand elements.
elico has quit [Quit: elico]
<xybre>
My math says they're taking up like 40MB apiece, which has got to be wrong.
jimeh has joined #ruby
<banisterfiend>
xybre: why don't you investigate it, inspect the contents at runtime to get a sense
<xybre>
banisterfiend: I'm not aware of a good way of getting the actual memory usage of an object in memory from Ruby.
<jessta>
xybre: isn't that 40 bytes
<xybre>
jessta: Oh yeah. Woops. That makes more sense.
<xybre>
:D
lkba has joined #ruby
esdf has joined #ruby
<apeiros_>
jessta: iirc it's more around 20bytes (1.9)
<esdf>
hey guys, this is my script, http://sprunge.us/QZaE?rb, and this is the json file im parsing, http://sprunge.us/HgWf?json. now while it parses good, i'm wondering how do I remove the quotation marks and make it print host_name and host_address in same line, instead of newline for each host_name & host_address
<esdf>
I am using the json gem
<apeiros_>
esdf: puts "#{a} #{b}"
<apeiros_>
`p obj` is `puts obj.inspect`
vlad_starkov has joined #ruby
<xybre>
apeiros_: 20B is probably the overhead, but it includes the actual object its holding, not just the array skeleton.
<apeiros_>
the term for "#{…}" is 'string interpolation', and you can have any valid ruby expression within #{}
<esdf>
apeiros_, so I replace p servers["host_name"] with puts "#{host_name} #{host_address}"?
<apeiros_>
xybre: for an array, yes, you'd have to calculate 20B+N*4 (or 8 in 64bit rubies?)
<apeiros_>
esdf: almost. you don't have a host_name variable. ruby can't guess that by hostname, you mean servers["host_name"] (how could it?)
<esdf>
ah yeah, servers["host_name"] and servers["host_address"]
<apeiros_>
yes
<xybre>
apeiros_: well, I wasn't doing the math that way, I actually generated the numbers, pulled real world memory usage and then knowing about how many elements were created I could use that to divide the observed memory usage.
<esdf>
tys
<xybre>
So I'm including all the objects, the overhead of the interpreter, and everything.
sayan has quit [Ping timeout: 252 seconds]
cloud|nix has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
reppard has joined #ruby
<esdf>
apeiros_, I might be doing this wrong, puts line doesnt print out the strings under servers array, it just prints out servers["host_name"] and host_address
<esdf>
i mean, like it'd print out "Hello World"
emocakes has joined #ruby
<xybre>
I was oringally sort of attemping to mirror the overall size of Ultima Ratio Regum's map which is 40,000 x 40,000 (1,600,000,000 elements)
<apeiros_>
esdf: I don't get what you say
<apeiros_>
esdf: maybe show your current code, the expected output and the actual output
tjasko__ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 246 seconds]
tjasko__ has joined #ruby
<esdf>
apeiros, the expected output would be "Duel <ip address>", and the output is "servers[...]"
x42 has joined #ruby
<esdf>
i've replaced the p servers["host_name"] with puts '#{servers["host_name"]'
<x42>
I'm thinking about using ruby again for a new project - do i still should use rvm to install ruby?
<apeiros_>
esdf: single quotes don't work for interpolation
<apeiros_>
you need double quotes
nomenkun has joined #ruby
<esdf>
oh ok, let me retry
mrsrikanth has joined #ruby
<esdf>
apeiros_, ah it works now, ty!
Goles has joined #ruby
<esdf>
apeiros_, btw, can I grab the json from url instead of file?
maesbn has joined #ruby
nomenkun has quit [Ping timeout: 250 seconds]
nomenkun has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
<apeiros_>
esdf: yes, look at open-uri
emergion has joined #ruby
ananthakumaran has joined #ruby
pmros has quit [Quit: Konversation terminated!]
<esdf>
apeiros_, yeah figured it out, thought it was a gem and couldn't find it
<esdf>
that's why i asked
ippif has joined #ruby
tenmilestereo has joined #ruby
marienz has joined #ruby
mrsrikanth has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
hotovson has quit [Remote host closed the connection]
maesbn has quit [Remote host closed the connection]
sayan has joined #ruby
elico has joined #ruby
banisterfiend has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
GeekOnCoffee has quit [Ping timeout: 245 seconds]
reppard has quit [Ping timeout: 255 seconds]
cousine has joined #ruby
GeekOnCoffee has joined #ruby
sayan has quit [Read error: Connection reset by peer]
ippif has quit [Quit: Computer has gone to sleep.]
eka has quit [Quit: Computer has gone to sleep.]
GeekOnCoffee has quit [Ping timeout: 276 seconds]
mrsrikanth has joined #ruby
stayarrr has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
philcrissman has joined #ruby
VegetableSpoon has joined #ruby
ippif has joined #ruby
olivererxleben has quit [Ping timeout: 255 seconds]
blaxter has joined #ruby
dilshod has joined #ruby
reppard has joined #ruby
dilshod has left #ruby [#ruby]
kamsel has joined #ruby
Hanmac1 is now known as Hanmac
elico has quit [Remote host closed the connection]
Iszak has joined #ruby
elico has joined #ruby
<anarchist>
is there any way to get rid of "press 'q' to continue" on rvm? something like apt-get install -y somepackage?
AndChat| has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
MissionCritical has quit [Ping timeout: 244 seconds]
yacks has quit [Ping timeout: 264 seconds]
Takehiro has quit [Remote host closed the connection]
yacks has joined #ruby
reppard has quit [Quit: leaving]
nanothief has quit [Ping timeout: 256 seconds]
reppard has joined #ruby
stayarrr has quit [Quit: Leaving...]
ebouchut has joined #ruby
thillux has quit [Remote host closed the connection]
assurbanipal_ has quit [Remote host closed the connection]
sayan has joined #ruby
Xeago has quit [Remote host closed the connection]
graeme has joined #ruby
Assurbanipal has joined #ruby
Xeago has joined #ruby
shiin has joined #ruby
elaptics`away is now known as elaptics
elaptics is now known as elaptics`away
<anarchist>
okay apparently even though i have chef i need a debian package called 'expect' to automate an interactive screen that tells me to press 'q' after installing what chef already installed
samphippen has joined #ruby
emocakes has joined #ruby
MissionCritical has joined #ruby
zmo_ has joined #ruby
<anarchist>
i don't know if it's more important for chef to start incorporating expect or for rvm to have a flag that allows you to skip confirmation dialogs
Xeago has quit [Ping timeout: 252 seconds]
emocakes has quit [Ping timeout: 265 seconds]
ikaros has joined #ruby
<reppard>
-y ?
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
S1kx has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
<csmrfx>
8)
emocakes has joined #ruby
mrsrikanth has quit [Remote host closed the connection]
nilg has quit [Read error: Connection reset by peer]
doritostains has quit [Quit: Leaving...]
reppard has quit [Ping timeout: 265 seconds]
maesbn has joined #ruby
mrsrikanth has joined #ruby
pen has joined #ruby
ippif has quit [Quit: Computer has gone to sleep.]
nilg has joined #ruby
Villadelfia_ has joined #ruby
Villadelfia has quit [Ping timeout: 260 seconds]
gmci has joined #ruby
emergion has joined #ruby
gmci is now known as Guest24232
SeySayux has quit [Ping timeout: 244 seconds]
nomenkun has joined #ruby
maesbn has quit [Remote host closed the connection]
SeySayux has joined #ruby
gener1c has joined #ruby
<gener1c>
whats cucumber?
<gener1c>
is it a testing suit a doc?
<gener1c>
i dont understand it
ebouchut has quit [Quit: This computer has gone to sleep]
<apeiros_>
it's a test "driver"
<apeiros_>
it translates natural language to code/instructions, if you want
<apeiros_>
just google, there's enough explanations online
maesbn has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
<gener1c>
i did but when i saw natural language i got confused :P
<apeiros_>
TTilus: we used cucumber at work, for its intended usage (communicate with stakeholders), but it didn't work out
ebouchut has joined #ruby
<TTilus>
having used cuke, it worked wonders for me for the exactly same purpose
<TTilus>
but not in every case
iamjarvo has joined #ruby
philcrissman has quit [Remote host closed the connection]
<TTilus>
i havent quite figured out whats the combination of devops and customer (and other stakeholders) mindsets thamakes it work
marr has quit [Ping timeout: 256 seconds]
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
elico has quit [Quit: elico]
Goles has joined #ruby
stayarrr has joined #ruby
mnaser has quit [Excess Flood]
mnaser has joined #ruby
koshii has joined #ruby
zommi has joined #ruby
thomsch has quit [Ping timeout: 246 seconds]
thams has joined #ruby
Goles has quit [Quit: Out.]
Goles has joined #ruby
cibs has joined #ruby
Takehiro has joined #ruby
axl_ has joined #ruby
Virunga has quit [Remote host closed the connection]
Russell^^ has joined #ruby
gmci has joined #ruby
gmci is now known as Guest55540
Guest55540 has quit [Client Quit]
eka has joined #ruby
kirun has joined #ruby
lkba has joined #ruby
kil0byte_ has joined #ruby
zommi has quit [Quit: Leaving.]
<ddd>
to me cucumber is one of those items that, outside of its documented intended usage pattern, helps refine things as you dive deeper. If you start out with cucumber features, and use those to broadly spec out what you want something to be/do at a high level..
hakunin_ has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
<ddd>
then you can use that to drive your skeleton code, as well as your deeper specs (like rspec, though they're separate frameworks. i mean conceptually)
<ddd>
then as you refine the deeper specs, you have a progressive map of an application's growth. and if you keep using cucumber to drive your thought processes and skeleton code and basic spec formulation, you eventnually end up with a well covered app, from concept to implementation.
kil0byte has quit [Ping timeout: 244 seconds]
<ddd>
but thats just my thoughts on it
philips_ has joined #ruby
<shevy>
quite a love story
cibs has quit [Ping timeout: 245 seconds]
<ddd>
now if only reality matched the story right? ;)
cloud|nix has joined #ruby
<yfeldblum>
ddd, yeah that's not how it works :D
<yfeldblum>
ddd, i might use spinach over cucumber, but most of the time would use rspec to do the features/acceptance-tests
<ddd>
it *can*.. in 1-dev shops but i doubt it'd ever succeed in a pattern like that for anything commercial using more than a few devs
<ddd>
and only then if the commitment level *to* use it like that was there
<ddd>
i've foregone cuking as well. i rspec-* these days. but hey it made for a great dream didn't it?! :)
<yfeldblum>
ddd, of course it could work like that; but what would be the gain over simply using a test runner like test/unit or rspec?
<yfeldblum>
ddd, just because someone can do something doesn't mean it's therefore a better way to go
<ddd>
i tried turnip for awhile but you had to do quite a bit of custom work just to get the default level of output of cucumber. never really felt like doing that
<ddd>
yfeldblum: i never said better.
dsdeiz has joined #ruby
<ddd>
better dictates demonstrable improvements over some other process. i was stating a potential process pattern, not a 'better' one
cibs has joined #ruby
postmodern has quit [Quit: Leaving]
<yfeldblum>
ddd, i tried visiting the promised land myself, too
axl_ has quit [Quit: axl_]
<ddd>
hehe. long drive. lots of gas, no promise
axl_ has joined #ruby
razibog has joined #ruby
razibog1 has joined #ruby
emocakes has quit [Quit: emocakes]
wolfman2000 has joined #ruby
jbw has quit [Ping timeout: 246 seconds]
thone_ has joined #ruby
<wolfman2000>
Morning. I created a sample zurb-foundation app for the purpose of bringing the foundation css files and other css files in use for another site together into one file. I've noticed, though, that there are imports to both "settings" and "foundation" in the app.scss file. _settings.scss exists, but _foundation.scss does not. Where is that file supposed to be located?
razibog1 has quit [Client Quit]
thone has quit [Ping timeout: 255 seconds]
yaroslav has quit [Quit: yaroslav]
nomenkun has joined #ruby
ajf_ has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
<dsdeiz>
heya, kinda confused but is { |foo| ... } also called a block?
_whitelogger has joined #ruby
<ddd>
yes, with a block local var (foo)
<ddd>
usually used with collections. (the 'foo' is populated with each element, progressively, in the collection so you can apply the block content to each element)
Guest25886 has joined #ruby
<ajf_>
Is there a way to have different named signals on an object, with different parameters in the callbacks. I know about Observable, but that only seems to allow one type of observer and mainly to tell if the object has "changed".
<dsdeiz>
what is the difference if i do foo.bar do |baz| ... end instead?
rakl has quit [Quit: sleeping]
<ddd>
do end has lower precedence than { }
jbw has joined #ruby
tk__ has quit [Quit: ばいばい]
<ddd>
same thing, just { } is evaluated before do end is. convention states that do .. end is for multi-line blocks, and { } for single line blocks
<dsdeiz>
ah cool. thx ddd
<ddd>
np
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
axl_ has quit [Quit: axl_]
<esdf>
is there any up to date curl lib aside from curl-multi
maesbn has quit [Remote host closed the connection]
otters has quit [Ping timeout: 252 seconds]
skcin7 has joined #ruby
axl_ has quit [Quit: axl_]
kidoz has quit [Quit: Ухожу я от вас]
<dsdeiz>
hi, anyone using vim? i have a script that truncates the current file opened and writes new content to it. i used f.truncate(0); f.write("foo"); but when i opened the file on vim i see a lot of ^@ characters
theRoUS_ has joined #ruby
<dsdeiz>
any ideas?
<dsdeiz>
ah crap i think i know now
<dsdeiz>
oops, nope. still the same
reppard has joined #ruby
alexspeller has joined #ruby
pats_Toms has left #ruby [#ruby]
ikaros_ has joined #ruby
ikaros has quit [Ping timeout: 245 seconds]
freeayu has quit [Remote host closed the connection]
reppard has quit [Ping timeout: 246 seconds]
JohnBat26 has joined #ruby
reppard has joined #ruby
otters has joined #ruby
Guest25886 has quit [Quit: Guest25886]
eka has quit [Quit: Computer has gone to sleep.]
berserkr has joined #ruby
sailias has joined #ruby
sailias has quit [Client Quit]
sailias has joined #ruby
slash_nick has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
tpe11etier_ has quit [Quit: tpe11etier_]
hinmh has joined #ruby
matip_ has quit [Read error: Connection reset by peer]
love_color_text has quit [Remote host closed the connection]
matip_ has joined #ruby
<hinmh>
Hi. I have a question about getting Ruby 2-preview2 to compile on OSX
kil0byte_ has quit [Remote host closed the connection]
malte_ has quit [Quit: malte_]
hinmh is now known as hinmn
v0n has joined #ruby
d2dchat has joined #ruby
<csmrfx>
dsdeiz: #vim
pcboy__ has quit [Ping timeout: 252 seconds]
<dsdeiz>
ah cool. thx
pcboy_ has joined #ruby
<slash_nick>
someone just gave me a box of/win 2
d2dchat has quit [Remote host closed the connection]
marr has joined #ruby
_whitelogger has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
dnyy has quit [Remote host closed the connection]
matip_ has quit [Ping timeout: 245 seconds]
axl_ has joined #ruby
matip_ has joined #ruby
tjasko__ has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
<hinmn>
When I compile attempt to compile using rvm and gcc-4.2 I get this:
<hinmn>
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.0.0-preview2, this may take a while depending on your cpu(s)...
<hinmn>
ruby-2.0.0-preview2 - #downloading ruby-2.0.0-preview2, this may take a while depending on your connection...
<hinmn>
ruby-2.0.0-preview2 - #extracting ruby-2.0.0-preview2 to /usr/local/rvm/src/ruby-2.0.0-preview2
tjasko__ has joined #ruby
<hinmn>
ruby-2.0.0-preview2 - #extracted to /usr/local/rvm/src/ruby-2.0.0-preview2
<hinmn>
checking build system type... x86_64-apple-darwin12.2.1
<hinmn>
checking host system type... x86_64-apple-darwin12.2.1
<hinmn>
checking target system type... x86_64-apple-darwin12.2.1
<hinmn>
checking whether the C compiler works... no
<hinmn>
configure: error: in `/usr/local/rvm/src/ruby-2.0.0-preview2':
<hinmn>
configure: error: C compiler cannot create executables
<hinmn>
See `config.log' for more details
sailias has quit [Ping timeout: 252 seconds]
<hinmn>
I never had this problem on my linux box and it seems it's because of Xcode 4.2 using the LLVM-based gcc… However, I added the flags to use the proper gcc and that's what I get
slash_nick has left #ruby [#ruby]
<ddd>
really? did you REALLY think it was ok to flood that to a channel?
CaptainJet has joined #ruby
<x42>
hinmn try using gist.github.com if you don't want to upset some channel members
<hinmn>
Guess I should've pastebin'd it. Sorry
<x42>
np
<x42>
just a hint
<ddd>
that has absolutely nothing to do with whether the compiler is CLANG or LLVM backend. It has everything to do with you probably did not install A) the Command-Line Tools package from Apple's developer site, and B) installed the apple-gcc42 keg
<hinmn>
Both are installed.
<hinmn>
The new CLI tools via Apple's dev site and the dupe's apple-gcc42 keg
<hinmn>
Thanks for pointing me in the right direction. I'll take a look. However, I did install the cli tools directly from Apple's site.
tpe11etier_ has joined #ruby
reppard has quit [Ping timeout: 244 seconds]
<ddd>
but did you run Xcode at least once? You need to run the Xcode that was downloaded from the apple store at least once. that just downloads the installer
<ddd>
and you should install the cli tools from *within* xcode
<ddd>
Under Preferences
<hinmn>
Ahhh, that I did not do.
axl_ has quit [Quit: axl_]
<hinmn>
I downloaded the cli package separate
<ddd>
yeah. busted xcode install is your issue
<hinmn>
Thanks for the help. Much appreciated.
Artheist has joined #ruby
<ddd>
I wrote a set of docs (used to be part of the RVM team) thats on rvm.io
<ddd>
should detail how to go about setting everything up if its still there
<hinmn>
I read dvm requirements and have been scanning google forever
<hinmn>
I guess the issue is that I had assumed installing the cli tools would be enough.
<ddd>
https://rvm.io/os/osx/ details part of the issue between apple's gcc and the GCC-4.2 compiler chain that was originally in Xcode 4.1, compat'd in Xcode 4.2, and totally removed in Xcode >=4.3
alexspeller has quit [Remote host closed the connection]
<ddd>
nope. you can also forego xcode completely if yu want. install the osx-gcc-installer pacakge off github
alexspeller has joined #ruby
<ddd>
typos are free :)
<hinmn>
I was looking at the osx-gcc-installer also, but I saw some posts somewhere about issues with it and brew?
* dsdeiz
finally created my first ruby script! not perfect but i think it looks okay
<hinmn>
I'm new to Mac, by the way ;)
<shevy>
dsdeiz what is it doing
<ddd>
no issues at all
<ddd>
we use it all the time.
<shevy>
hinmn be a man, come to linux!
<ddd>
Do note this: "Please note that MRI Rubies >= 1.9.3-p125, while they do compile with Xcode 4.3, are known to segfault quite often as do many native-compile gems."
<hinmn>
shevy my desktop is a nix. Chakra.
<dsdeiz>
nothing much. just rewrites the content of a file xD
<ddd>
its an issue with *apple's* compiler, not ruby itself. thus why we have hoops to jump through. mpapis and I spent GOBS of time investigating all of this
<ddd>
pita is what it is
<shevy>
hinmn yippie!!!
<shevy>
chakra khan!
<ddd>
nothing wrong with using OSX. It *is* a Unix. :) its a matter of using the right compiler chain
<hinmn>
ddd, yeah - that's kind of what I've gotten.
<ddd>
hinmn: then you got the exactly right message :)
<hinmn>
Anyway, downloading Xcode now. Will I need to remove the cli package first or should the xCode install just overwrite it?
friskd has joined #ruby
<ddd>
ruby-core has been working on it. 1.9.3-p125 was the first version they started adding specific support, but there's been issues ever since. apple does something to their compiler chain that breaks stuff
<ddd>
it won't overwrite unless you tell it to. I would remove and start froms cratch.
<ddd>
you *might* have to log out then back in after removing due to settings and stuff before attempting the actual install itself once it downloads
alexspeller has quit [Ping timeout: 252 seconds]
<ddd>
just cold reset the environment via logout.login
thams has quit [Read error: Connection reset by peer]
Teddy2steper has quit [Remote host closed the connection]
thams has joined #ruby
<ddd>
you won't need xcode (unless you're building Node.js or something). you *can* just install osx-gcc-installer and call it a day
<ddd>
you need xcode for node.js because of the cocoa headers
<phelps>
Just my 2 cents, I've never had a problem with gems or segfaults under OS X
<hinmn>
Sounds good. Thanks again and sorry for the crazy paste- been a while since I've been on irc so maybe my etiquette has slipped a touch ;)
<hinmn>
I do plan on building some of my node apps as well
<ddd>
phelps: thats whats made it so difficult. its not all the time, its not on every build, etc. we've been tracking this since Xcode 4.3 was released
<hinmn>
I just haven't cloned them yet
<ddd>
hinmn: then you'll definitely need xcode then
<hinmn>
Gotcha.
nemesit has quit [Ping timeout: 256 seconds]
<ddd>
xocde, cli tools, and apple-gcc42 dupe. pass —with-gcc= (iirc) to the homebrew builds you make. rvm *should* pick up the compiler from the apple-gcc42 dupe and use it over the xcode cli
<ddd>
iirc mpapis put that logic in
<ddd>
ask in #rvm
<ddd>
or you can just set CC="/usr/local/bin/gcc-4.2" in $HOME/.rvmrc and then unset that var when you want to compile non ruby/non rvm stuff (or launch a non-login shell so that rvm doesn't load and that won't ever be set in the env)
<ddd>
told ya it was a PITA ;)
kennyvb has quit [Ping timeout: 245 seconds]
GeekOnCoffee has joined #ruby
banisterfiend has joined #ruby
Takehiro has quit [Remote host closed the connection]
<hinmn>
Yes.
cloud|nix has quit [Ping timeout: 246 seconds]
<shevy>
let's improve the quality of ruby stuff
<hinmn>
I should've come in here quite a while ago… I've had an open question on Ask Different for… a while, haha
kennyvb has joined #ruby
<aedorn>
shevy: Okay, what are we improving?
<shevy>
aedorn haha not sure. I try to maintain and improve on ruby-fpdf right now
tpe11etier_ has quit [Quit: tpe11etier_]
<shevy>
so, pdf related
ltsstar has joined #ruby
<shevy>
aedorn you find something too!
mengu has joined #ruby
darthdeus has joined #ruby
joofsh has joined #ruby
_bart has joined #ruby
Artheist has quit [Read error: Connection reset by peer]
pcarrier has joined #ruby
<shevy>
this is so awful
<shevy>
def Write()
<shevy>
I am killing all those crap names...
greenarrow has joined #ruby
<shevy>
def WriteHTML(html)
<aedorn>
maybe I should make a gem to interact with RubyGems and find other gems that need love
<shevy>
grrr
emocakes has joined #ruby
nemesit has joined #ruby
<shevy>
aedorn hehe
<shevy>
aedorn I think most gems are not good, a few ones are good
<shevy>
improving the quality of the good, to medium gems would be best
moos3 has quit [Quit: Computer has gone to sleep.]
moos3 has joined #ruby
<aedorn>
there are too many gems to filter out what is good and what is bad (and why can't we do any sorting of them besides alphabetical?) I feel like I'm missing something.
<yfeldblum>
hmmm or can it?
mrsrikanth has quit [Quit: Leaving]
zmo_ has joined #ruby
kennyvb has quit [Ping timeout: 255 seconds]
ananthakumaran has quit [Quit: Leaving.]
emmanuelux has joined #ruby
Astral has joined #ruby
CaptainJet has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
Astral is now known as Guest54537
Guest54537 is now known as Astral_
moos3 has quit [Quit: Computer has gone to sleep.]
thmzlt has joined #ruby
<shevy>
yfeldblum not sure, last time I tried it, it did not work for me
<shevy>
that's why I then said "screw this" and started working on ruby fpdf
<shevy>
I dont understand the current code yet though :(
maesbn has quit [Remote host closed the connection]
<aedorn>
so you can get the last 50 updated/newest gems from rubygems.org, but there's no way to get historical data. hmm. Saddens me
kennyvb has quit [Ping timeout: 255 seconds]
<shevy>
deepboy set from a list? what does that mean
mockra has quit [Remote host closed the connection]
alexspeller has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
jmpf has joined #ruby
ebouchut has joined #ruby
axl_ has quit [Quit: axl_]
fir_ed has joined #ruby
Banistergalaxy has joined #ruby
Goles has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
jlwestsr has quit [Quit: Ex-Chat]
cloud|nix_ has joined #ruby
cousine has quit [Remote host closed the connection]
eka has joined #ruby
cloud|nix has quit [Ping timeout: 246 seconds]
<swarley>
yes hello I am from my banking company and they want me to write software to handle money. Should i use the BigNum class to handle these digits?
yaroslav has joined #ruby
Goles has quit [Quit: Out.]
Goles has joined #ruby
axl_ has joined #ruby
kennyvb has joined #ruby
Neomex has joined #ruby
Slivka has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
<eka>
swarley: if you come here asking that question in such a way I think you shouldn't be doing it
<swarley>
I'm kidding completely
<yfeldblum>
swarley, you should use strings ... say someone has an account with a balance of "123" and then they double their balance; they should end up with a balance of "123" * 2
<swarley>
Oh yes of course!
<eka>
yfeldblum: that's cool
<eka>
lol
_br_ has quit [Excess Flood]
axl_ has joined #ruby
<swarley>
hmm... Maybe if i use a class that has an accessor for each decimal place
<swarley>
and do operations like long devision!
<eka>
devision… then you let Ruby handle division
<eka>
but surely you want to handle devision etc...
berserkr has quit [Quit: Leaving.]
kennyvb has quit [Ping timeout: 252 seconds]
<eka>
swarley: let me know what bank you work for … so I don't de business with them :)
<swarley>
eka; NBOTT
_br_ has joined #ruby
<swarley>
National Bank of TARDIS Travelers
Dreamer3 has quit [Quit: Computer has gone to sleep.]
_br_ has quit [Excess Flood]
axl_ has quit [Read error: Connection reset by peer]
<swarley>
they see me trollin, they hatin
<swarley>
i know in my heart they think i'm white and nerdy
<swarley>
because I am :(
esdf has joined #ruby
regedarek has joined #ruby
_br_ has joined #ruby
jgrevich has quit [Read error: Operation timed out]
jgrevich has joined #ruby
thams has quit [Read error: Connection reset by peer]
thams has joined #ruby
friskd has quit [Quit: friskd]
rondale_sc has joined #ruby
cj3kim has joined #ruby
darthdeus has quit [Quit: Leaving...]
jedahan has joined #ruby
iamjarvo has quit [Quit: Leaving.]
Goles has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
hoelzro|away is now known as hoelzro
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
bluOxigen has quit []
nemesit has quit [Read error: Connection reset by peer]
stayarrr has joined #ruby
ltsstar has quit [Quit: ltsstar]
thmzlt has quit [Remote host closed the connection]
stayarrr has quit [Quit: Leaving...]
rondale_sc has quit [Ping timeout: 244 seconds]
whitedawg has joined #ruby
jonahR has joined #ruby
sepp2k has quit [Ping timeout: 255 seconds]
kaen has joined #ruby
_FBi has left #ruby ["Leaving"]
kennyvb has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
tintin has joined #ruby
<tintin>
Hi, is it possible to make a good complete website with ruby?
<tintin>
without using rails?
<heftig>
tintin: Sinatra
<apeiros_>
or rack
<tintin>
No framework
<apeiros_>
or rack-server-pages
<apeiros_>
then use TCPServer
<tintin>
apeiros_: Yes, i was also thinking about rack,
<tintin>
apeiros_: But what is rack-server-pages?
x82_nicole has joined #ruby
<apeiros_>
I guess you could go even lower level by using plain Socket. Enjoy.
<apeiros_>
tintin: google is your friend
<tintin>
apeiros_: Why rack-server-pages? what's wrong with rack only?
<apeiros_>
why does having options mean that something is wrong with the other options?
<apeiros_>
(hint: it doesn't.)
<tintin>
If i ask for a suggestion, which one would you suggest? rack or rack-server-pages ?
<tintin>
apeiros_: ^
<heftig>
there's something wrong with every option. if there wasn't, the decision would be easy: just pick the perfect thing.
<emocakes>
tintin, sinatra :p
<tintin>
heftig: Which one is the perfect thing?
<tintin>
emocakes: No framework
<emocakes>
then rack*
<tintin>
emocakes: ok
<yfeldblum>
heftig, that's false
Takehiro has joined #ruby
<swarley>
attempting a web server without framework is ill advised
<tintin>
I know rails is based on Rack so is Sinatra
<swarley>
Lol, I would never use CGI
<swarley>
No
<swarley>
They use Rack
<wmoxam>
Rails used to use CGI
<yfeldblum>
tintin, there are also goliath and webmachine
<wmoxam>
yfeldblum: external!
<wmoxam>
:p
<wmoxam>
yfeldblum: he wants to be stdlib only
<wmoxam>
tintin: CGI, then interface via fastCGI, just like PHP
<yfeldblum>
wmoxam, they are alternative externals to rack; if he's picking one external, here are 3 to choose from
<tintin>
You/I need a minimal gem to communicate with server for request-response, that's why something like Rack is accepted.
ebouchut has quit [Quit: This computer has gone to sleep]
Axsuul has joined #ruby
<wmoxam>
lol
<yfeldblum>
tintin, why?
<swarley>
when you say
<wmoxam>
#abartrary
<swarley>
request/response
<swarley>
Do you mean, HTTP or just communication via socket?
<swarley>
Because at this point, I'm going t have to split hairs
<swarley>
to*
<wmoxam>
lol, hi manhunter
<yxhuvud>
tintin: I'd still not go lower than sinatra. It has the *right* abstraction
sepp2k has joined #ruby
<swarley>
Rack isn't meant to be used alone
<tintin>
swarley: Does Rack work like socket?
hadees has quit [Quit: hadees]
<yfeldblum>
tintin, no
<tintin>
swarley: Does Rack work like HTTP? I think, YES
withnale has quit [Ping timeout: 260 seconds]
<yfeldblum>
tintin, rack is not http
<yxhuvud>
rack is a binding between a web server and an application
browndawg has quit [Quit: Leaving.]
<tintin>
"Do you mean, HTTP or just communication via socket?" Then what does that mean?
<yfeldblum>
tintin, why are you asking everyone this question
<tintin>
yfeldblum: What question?
Jackneill has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
<yfeldblum>
tintin, for a way to do an http application without gems
<wmoxam>
#trolling
<wmoxam>
:p
<tintin>
without framework
<yfeldblum>
tintin, fine
<tintin>
No dependency with framework
<yfeldblum>
tintin, why are you asking everyone that question?
<tintin>
because framework is updated every 6 months, so you have to update your application often, that is painful maintainency
<swarley>
....
<wmoxam>
lol
<swarley>
When a framework is that popular
<yfeldblum>
tintin, so just don't update it ...
<wmoxam>
there are plenty of Rails 1.2 apps out there
<tintin>
frameworks are updated regularly often frequently
<swarley>
They almost HAVE to support backwards compatibility
<yxhuvud>
wmoxam: *shudder*
<swarley>
It* has*
chrisramon has quit [Quit: chrisramon]
tjasko__ has quit [Read error: Connection reset by peer]
<yfeldblum>
swarley, they don't
<swarley>
just put a specific version in your Gemfile
<yfeldblum>
swarley, rails 4.1 is dropping a whole lot of surprises our way
tjasko__ has joined #ruby
<tintin>
If you don't update your application with the update of framework then after 5 years you will be in problem when you will update the ruby
<swarley>
yfeldblum; but for general purposes. I doubt sinatra is going to change get and post any time soon
<yfeldblum>
swarley, true about sinatra
<wmoxam>
tintin: same if you don't have a framework
<wmoxam>
:p
cousine has joined #ruby
<swarley>
tintin; I don't think you really understand what you're doing. This is a good time to revert to the cave where your php crawled out of
* yfeldblum
wonders about all these major XY Problems
<tintin>
wmoxam: No, you have to change less if you don't use frameworks
<yfeldblum>
tintin, why didn't you ask in this channel how to avoid or mitigate maintenance burdens when writing an http application?
<wmoxam>
tintin: untrue
<yxhuvud>
tintin: you will probably have *less* trouble porting a small application built upon a framework than if you hack the functionality of the framework yourself.
<yfeldblum>
yxhuvud, e.g. signed session cookies
<tintin>
If i write from scratch, i can change/handle the code easily since i know all about that code
<wmoxam>
tintin: in that case you have to handle your application code, and the libs you wrote to support it
<yfeldblum>
tintin, if you're worried about future maintenance burdens, why don't you ask the people in this channel the best way to avoid or mitigate the maintenance burdens?
<wmoxam>
== more code to maintain
<wmoxam>
== more work
<tintin>
If you don't update your application your application will be broken after 5 years, you will not get support for that older framework
<tintin>
yfeldblum: Ok, i asked it now
bluOxigen has joined #ruby
otters has quit [Ping timeout: 265 seconds]
<swarley>
tintin; There is also the problem that, the framework designers know how to keep things from breaking better than you do (I would assume)
<yfeldblum>
tintin, if you use an open-source framework, you just make a copy of it and you can change the framework yourself if you need to fix a bug
cousine has quit [Remote host closed the connection]
<yfeldblum>
tintin, or you can even just monkey-patch the framework from within your application to fix any bugs it has
<tintin>
yfeldblum: That's a point, Do you think it's easy to change/fix bug for something like rails, it's a huge/lot of code
<tintin>
It's not easy
<wmoxam>
tintin: same goes for rack
<wmoxam>
:p
<yfeldblum>
tintin, i do it all the time
<yxhuvud>
I agree that it is not easy diving into rails, but we are not advocating rails at the moment.
Nisstyre-laptop has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
<yfeldblum>
tintin, usually not rails; usually it's other libraries that need more monkey-patching
katherinem13 has quit [Read error: Connection reset by peer]
<tintin>
wmoxam: rack is way way way lighter than rails
Goles has joined #ruby
<yxhuvud>
tintin: so is sinatra.
katherinem13 has joined #ruby
<tintin>
yxhuvud: I know sinatra is light, sinatra is all about one file now, that is base.rb
<aedorn>
there's also Cuba and Padrino
<wmoxam>
tintin: you seem to know more than anyone here. So go ahead and knock yourself out
<emocakes>
<3 wmoxam
<tintin>
yxhuvud: sinatra can be an option, but making something like sinatray by own looks better to me that using sinatra because i know all about my code so i can change it easily
AlSquire has quit [Quit: This computer has gone to sleep]
<wmoxam>
NiH
kokainepizza has joined #ruby
<tintin>
s/sinatry/sinatra
<tintin>
What is that NIH?
h4mz1d has joined #ruby
nemesit has joined #ruby
<TTilus>
tintin: its always balancing between knowing your codebase and standing on the shoulders of giants
<TTilus>
tintin: except that rails2 was even more like that
Vert has joined #ruby
<tintin>
wmoxam: That's true.
<aedorn>
So yeah.. if you don't want rails, and you don't want Sinatra.. then if you don't want camping, padrino, or cuba... then you want rack and you want to build your own responders to rack because nothing exists that does what you want it to do the way you want it done.
<tintin>
I'm with the NIH group.
<wmoxam>
tintin: that's typically seen as a bad thing
<wmoxam>
my suggestion is to stick with PHP
<TTilus>
tintin: u sure sound like one ;)
<wmoxam>
it's better suited to your needs
<tintin>
I want to walk with Ruby these days, i have used PHP enough
emmanuelux has joined #ruby
<TTilus>
wmoxam: id assume nih goes hand in hand with .net
<wmoxam>
tintin: but you want to do things the PHP way
<wmoxam>
TTilus: sort of
<yfeldblum>
tintin, here's the first thing you need to know about ruby: we use each other's stuff; we use plenty of external libraries all over the place in all of our own applications
<wmoxam>
TTilus: I worked with a company that made a Rails clone in .net
<wmoxam>
TTilus: this was before MS came out with MVC.net
<yfeldblum>
tintin, everything in the ruby ecosystem assumes you're going to go way past just the stdlib
<TTilus>
wmoxam: ...and there are a ton of them
<tintin>
wmoxam: Really? What is that company?
<TTilus>
wmoxam: and nobody knows about each other :)
<yfeldblum>
TTilus, NIaM goes hand-in-hand with .net
<wmoxam>
TTilus: yeah, well they are all in consulting and they want vendor lock-in
havenn has joined #ruby
<tintin>
wmoxam: Which company?
<wmoxam>
tintin: none of your beeswax
<aedorn>
TTilus: "We're the best in the business because there is no competition, or if there is, we haven't heard about them so they must not matter." .. I bet someone, somewhere, said that in response to someone telling them about other frameworks!
<tintin>
wmoxam: sort of
whitedawg has quit [Quit: Leaving.]
jessta has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Ping timeout: 252 seconds]
<TTilus>
aedorn: exactly =D
freakazoid0223 has joined #ruby
ryanf has joined #ruby
esdf has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Quit: Leaving]
axl_ has joined #ruby
Nisstyre-laptop has joined #ruby
<wmoxam>
TTilus: the .net ppl have tried to pull together a community (ALT dotnet) but it seems to have died out
wermel has quit [Remote host closed the connection]
<TTilus>
wmoxam: "community" and .net are like water and oil
Solnse has joined #ruby
<wmoxam>
TTilus: a lot of their good people moved to Rails :p
<wmoxam>
I think the main thing is: why volenteer to improve an ecosystem that is owned and subject to the whims of an industry giant?
<TTilus>
big blue style "community" might work
<TTilus>
wmoxam: ...so you need a "community" driven by that giant
<jonahR>
.net? whoa, I felt a great disturbance in the Force, as if millions of voices suddenly cried out in terror and were suddenly silenced…
<aedorn>
I have a mental problem where I make something that I think is great, but never release it to the public because I don't think anyone would care. For instance, I have a library that communicates with wpa_supplicant - but who needs that?
<TTilus>
wmoxam: all the consultant shops send in their developers to listen to evangelism, eat, drink and talk
PetePorty has joined #ruby
PetePorty has quit [Changing host]
PetePorty has joined #ruby
<TTilus>
aedorn: apparently you did
sbanwart has joined #ruby
<jonahR>
adorn: if you have a problem someone will eventually have it too
<wmoxam>
TTilus: yeah, they do have that
<TTilus>
wmoxam: i just knew they had to :)
<aedorn>
but it wasn't a problem =) I just wanted to figure out a way to have a Linux distribution that was entirely controlled by Ruby. There's a FreeBSD distro that is controlled via PHP, so why not Ruby and Linux? So I started making random things
SirRamonGabriel has joined #ruby
arturaz has joined #ruby
<tintin>
aedorn: What random things?
<TTilus>
wmoxam: the socialization is great, and it is necessary for fertile community too, but just not sufficient alone ;)
foohey has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
doritostains has joined #ruby
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
<jonahR>
aedorn: sounds interesting, I'd love to take a look at it
foohey has joined #ruby
v0n has quit [Quit: WeeChat 0.3.9.2]
v0n has joined #ruby
<TTilus>
aedorn: id jump in joy if somebody took all the perl out from debian and replaced the functionality using ruby
<aedorn>
tintin: Mostly configuration stuff. wpa_supplicant was one, network configurations that covered vlans and such, iptables, vpn connections.
sayan has quit [Read error: Connection reset by peer]
<tintin>
aedorn: wpa_supplicant ? what is that?
<TTilus>
tintin: wlan thingy
<jonahR>
aedorn: it would be nice to use it with a Raspberry PI
dsdeiz has quit [Ping timeout: 250 seconds]
akemrir has quit [Ping timeout: 252 seconds]
tjbiddle has joined #ruby
dsdeiz has joined #ruby
pcarrier has quit []
<aedorn>
well, I'm certainly going to keep going. Guess I should gemify some of it though and toss it out there
Russell^^ has quit [Quit: Russell^^]
mercwithamouth has quit [Ping timeout: 246 seconds]
Neomex has quit [Quit: Neomex]
crackfu has joined #ruby
<emocakes>
why TTilus?
<emocakes>
whats wrong with perl?
<emocakes>
perl > ruby
<tintin>
Can anyone start using rails without knowing much ruby?
<emocakes>
you can start tintin
<emocakes>
not sure how far you get
<emocakes>
i started rails like last week
<tintin>
Suppose someone knows basic ruby
<emocakes>
i guess so
<wmoxam>
tintin: you've been asking these sort of questions for months
<tintin>
emocakes: So how do you feel about ruby?
<emocakes>
only ruby i had done before that was a couple of bots / web scrapers for online games
<emocakes>
tintin ruby is aight, takes a whole to learn all the sugar
<emocakes>
slowly your code looks less and less like php
<tintin>
emocakes: "maybe my kind words will help him pull his finger out before he gets fired" what do you mean by that?
<emocakes>
well if these guys have been saying, that for the past many months, you have been coming here asking the same questions
<the_magic_zebra>
exit
<the_magic_zebra>
lolz
the_magic_zebra has quit [Client Quit]
<emocakes>
so I assumed that, with your 'theoretical' question about a new dev who has to upgrade a project was referring to you
<emocakes>
i.e: you have a project to upgrade
<emocakes>
or you want to hire a newb to upgrade a site
<wmoxam>
tintin: how many channels have you been banned from?
thufir_ has joined #ruby
elico has joined #ruby
LogPonder has joined #ruby
<emocakes>
if this has been going on for months, and you havent realised its not such a hard job if you just give it a go, you probably wont have a job for much longer
<tintin>
emocakes: "maybe my kind words will help him pull his finger out before he gets fired" what do you mean by that?
<wmoxam>
#rubyonrails a few times for sure. #slackware too
LogPonder has quit [Remote host closed the connection]
<aedorn>
ooh, I love slackware
<havenn>
#ruby-lang is prolly quicker with the banhammer than here or ror
<tintin>
So you people keep logs for my conversations? That's great , keep it forever
<emocakes>
yes, just for you manhunter
<emocakes>
aka tintin
<tintin>
I have no logs,
<emocakes>
)y_
<emocakes>
(y)
<tintin>
So you people log my conversation
<tintin>
emocakes: "maybe my kind words will help him pull his finger out before he gets fired" what do you mean by that?
dsdeiz has joined #ruby
<tintin>
emocakes: ^?
<emocakes>
i told you, stop asking the same fucking question for months, pull your head out of your anus, and start to upgrade / learn rails
<emocakes>
its really not difficult
<emocakes>
I wouldnt have some slack ass employee working for me
<swarley>
learn sinatra*
<tintin>
emocakes: I know rails, i have used rails before, i didn't like the source code of rails
<emocakes>
swarley, sinatra, rails all the same shit, its a framework, nothing magical, the hardest part is getting over any preconceptions you have about framework x, or y, or z
<emocakes>
tintin, please, troll elsewhere :)
<emocakes>
you can't really be that stupid and know how to use irc
<tintin>
emocakes: "I wouldnt have some slack ass employee working for me" what do you mean by that?
<swarley>
emocakes; you can now, thanks to mibbit!
<wmoxam>
14:34 < tintin> Can anyone start using rails without knowing much ruby
<emocakes>
swarley, true, he has a regged user name though
<wmoxam>
tintin: Why did you ask that 20 minutes ago in #rubyonrails?
<tintin>
emocakes: Do you have employee?
<wmoxam>
if you already know it?
<emocakes>
Notice from NickServ: Information on manhunter (account manhunter):
<emocakes>
8:56 PM
<emocakes>
Notice from NickServ: Registered : Feb 01 18:10:50 2010 (2 years, 46 weeks, 4 days, 01:45:28 ago)
<tintin>
wmoxam: To get opinion from others
<emocakes>
wmoxam, he's lonley, and is trying to provoke a reaction
<emocakes>
i never do this, but he's made my ignore list
<wmoxam>
emocakes: tech channel trolling is so damn wewird
<wmoxam>
weird even
<emocakes>
I know, I mean, trolling lifeproblems or something, yeah, i get it
<emocakes>
i'm gay, but my dad doesnt know it yet, and i killed my sisters dog
<tintin>
emocakes: "I wouldnt have some slack ass employee working for me" what do you mean by that?
<wmoxam>
politics too
<tintin>
emocakes: ?^
<emocakes>
thats more fun than, 'how to use rails'?
<emocakes>
or religion :D
<emocakes>
btw, happy xmas
<wmoxam>
"Of course I believe every child should be armed"
<tintin>
emocakes: "I wouldnt have some slack ass employee working for me" what do you mean by that? Did you mean you don't hire lazy employee?
braoru has quit [Remote host closed the connection]
<yfeldblum>
kokosama, `else` should be indented the same as `if` and `end`; i like to list the alternate or error cases first, so `if result_hash.nil?` first; other than that, not really
mercwithamouth has joined #ruby
<aedorn>
you can use inline rescue, or null object pattern
ner0x has joined #ruby
<yfeldblum>
aedorn, i think kokosama is looking for "better", not "worse"
<canton7>
thufir_, that's not you calling it wrong, that's it being badly written
shevy has quit [Ping timeout: 252 seconds]
dsdeiz has quit [Ping timeout: 265 seconds]
<thufir_>
canton7: aha. oh, that sucks. is there a better one? I just want to fix indenting automatically,
<aedorn>
yfeldblum: would those options really be worse?
dsdeiz has joined #ruby
<yfeldblum>
aedorn, yes
<yfeldblum>
aedorn, nearly always, yes
<kokosama>
guys. sorry indentation was paste issue.. it's all indented in reality :)
<yfeldblum>
aedorn, definitely here, yes
Banistergalaxy has quit [Ping timeout: 252 seconds]
<yfeldblum>
aedorn, because those two patterns ought to be used in very specific types of cases, but not in general
Banistergalaxy has joined #ruby
<aedorn>
hmm
<yfeldblum>
kokosama, you could do `result_hash ||= {} ; buys = result_hash["Buys"] || 0 ; etc ...`
adeponte has joined #ruby
<kokosama>
yfeldblum, I love it! actually that's what I was looking for, to get rid of that if somehow using ||=
<yfeldblum>
aedorn, for example, null objects are an OK pattern to use in views, where the null object abstracts the alternations between a real object's name and a default name for a nonexistent object, for example
<aedorn>
(and you could also do result_hash ||= Hash.new{|k,v| k[v]=0})
<yfeldblum>
aedorn, but most of the time, inside the program, we care about data, objects, and transformations, and there the null object pattern gets in your way; if something is null, then it's null, and you need to know
* lupine
has *so much code* - that he hates - where the difference between false and nil matters
<kokosama>
aedorn, don't understand what you mean by that
<yfeldblum>
aedorn, that's good too, although `Hash.new(0)` does the same
<lupine>
don't do it
<aedorn>
ooh, pro tip there.. didn't know you could just set a default like that.
<yfeldblum>
aedorn, only do it that way for values, not objects; e.g. don't do `Hash.new([])`
<emocakes>
come on lupine
<emocakes>
we all have a bit of a masochist inside of us
<emocakes>
let it out
<lupine>
I've got better things to work with ^^
<emocakes>
I for one have about 4controllers + models that I am afraid to touch
<emocakes>
php
<kokosama>
yfeldblum, I'm guessing that Hash.new(0) will return any key with value 0 ? if so, I prefer your first suggestion as there I can have different values other than 0
<aedorn>
kokosama: It sets the default value, so if calling result_hash['buys'] returns nil, with the default value set (or a proc) then it will return that default value or proc result. In this case, nil values will be 0
<emocakes>
i wrote them like, 7 months ago, and the application requirments have changed so much since them so they are just patched to the shithouse
<emocakes>
no time :(
axl_ has quit [Quit: axl_]
<lupine>
some of this stuff is from 4 years ago, and a bit of it is the first production code I ever wrote for money
<lupine>
(a calendar application, of course - what else?)
<yfeldblum>
kokosama, that's right; if you're going to have a bunch of different possible default values instead of just 0, then do my first suggestion
<emocakes>
ahh lupine, sort of the same, my first big project which i was employed to do solo, just when i started and got told i had 2 weeks
<aedorn>
yfeldblum: okay, so that's a shortcut to default=, and block is the shortcut to default_proc=
<kokosama>
thanks a lot guys, it was more helpful than I hoped :)
<yfeldblum>
aedorn, yes
kokosama has quit [Quit: Leaving]
<yfeldblum>
kokosama, thank matz
<aedorn>
now that I have learned some philosophy and something new about hashes, I shall buy a sandwich.
shevy has joined #ruby
banisterfiend has joined #ruby
dsdeiz has joined #ruby
chussenot has joined #ruby
banisterfiend has quit [Remote host closed the connection]
Proshot has joined #ruby
freakazoid0223 has joined #ruby
rakl has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
chussenot_ has joined #ruby
otters has joined #ruby
xandy is now known as xAndy
tjasko__ has quit [Read error: Connection reset by peer]
codezombie has joined #ruby
chussenot has quit [Ping timeout: 265 seconds]
chussenot_ is now known as chussenot
tjasko__ has joined #ruby
adeponte has quit [Remote host closed the connection]
osaut has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
Nss has quit [Quit: Sto andando via]
dsdeiz has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
yfeldblum has quit [Quit: Leaving]
havenn has joined #ruby
Na_Klar has joined #ruby
<Na_Klar>
I thread.new a socket listener. Why does socket.bind throw no error or warning, when the script does not have permission to bind a port? (linux environment) The script goes ahead and the port is unbound.
vlad_starkov has quit [Read error: Connection reset by peer]
rdegraci has joined #ruby
<rdegraci>
hello :)
vlad_starkov has joined #ruby
<rdegraci>
often I see a core.rb file, is that the equivalent to the main.cpp in C++, where the int main() function is located for the app ?
tagrudev has joined #ruby
solidresolve has quit [Quit: Leaving]
tagrudev has quit [Client Quit]
crackfu has quit [Remote host closed the connection]
<Hanmac>
rdegraci ruby does not have an main() function ... when you run an rb file, you are allready in the main object .P
<rdegraci>
also if I am writing a ruby application, what exactly is the folder structure? is there a best practice for what the directory structure should be? I mean should I have a myapp/lib folder ? and what do I put inside of that folder ?
<rdegraci>
Hanmac, so in my docs I should just tell the user to: ruby core.rb ?
<rdegraci>
Should I create a myapp/modules folder and put my modules into there that I will include into my classes ?
tjasko__ has quit [Read error: Connection reset by peer]
<rdegraci>
Right now, I just have myapp folder and it contains about 40 files :/
<Hanmac>
you are free to make your own folder structure, we do not force you in some kind ...
Signum has joined #ruby
tjasko__ has joined #ruby
<Hanmac>
only gems should have an specific folder structure, but this is only an conversion
<rdegraci>
yes, but when I look at gems and rails, it has a lib folder and I think a helpers folder and a ext folder
<Hanmac>
that what i meaned, when you do an non-gem you not need to follow that "rules"
<banisterfiend>
rdegraci: usually there's a app/ folder
<banisterfiend>
rdegraci: if you write a gem though, it's all based around a lib/ folder
<rdegraci>
is there a website that has some suggested best practice for folder structure ?
<ddd>
in my own gems, i use the rails-esque convention of my models in app/models/ but I add a load line in my lib/<gem_name>.rb to load them.
tpe11etier_ has quit [Quit: tpe11etier_]
<Hanmac>
banisterfiend not 100% true, my gems does not have an lib/ folder, my are based areound /ext
hackerdude has quit [Remote host closed the connection]
jonahR has joined #ruby
_whitelogger has joined #ruby
Neomex has joined #ruby
Proshot has joined #ruby
<Signum>
I'm new to Ruby and just toying around to learn it. What I wonder is why the .type attribute doesn't work here. I did: x=[1,2,3,4] // puts x.type // but I just getNoMethodError: undefined method `type'
<Signum>
Or am I looking at an ancient tutorial?
lenovodroid has joined #ruby
<apeiros_>
Signum: ancient tutorial
<apeiros_>
you want x.class
<Signum>
Ah, thanks. I'm working through http://www.rubycentral.com/pickaxe - is there a recommended and more up-to-date narrative introduction for programmers experienced in… say… python?
<apeiros_>
I'm a bit out of touch with state of the art tutorials, sorry
<apeiros_>
I think ruby-lang.org lists some tutorials
<apeiros_>
iirc it even has some quick intros for "coming from X"
<Signum>
Okay. I thought there was once natural recommendation. No worries. I've already picked up a good bit.
<Signum>
Yes, the Python-to-Ruby introduction was very helpful indeed.
<Signum>
I'm learning Ruby to get a better understanding for Rails applications and Chef/Puppet config management. Besides… quite some details in Python suck and I'm curious whether Ruby does that better.
picca has joined #ruby
francisfish has joined #ruby
arietis has joined #ruby
banisterfiend has joined #ruby
stayarrr has joined #ruby
xbayrockx has joined #ruby
matip has joined #ruby
mockra has joined #ruby
timonv has joined #ruby
picca has left #ruby [""Lingo IRC Client""]
<matip>
Have you use the gem wrest (https://github.com/c42/wrest/)? It seems it doesn't raise errors when you do a async get. do you know any better gem?
<matip>
used*
<matip>
maybe I should use eventmachine..
mockra_ has joined #ruby
tjasko__ has joined #ruby
Nisstyre-laptop has joined #ruby
_whitelogger has joined #ruby
elico has joined #ruby
cousine has joined #ruby
chussenot has joined #ruby
kil0byte has joined #ruby
semlib has joined #ruby
<semlib>
swarley: hi
<swarley>
hi
<swarley>
oh!
<swarley>
LOL
* swarley
reads idents a little too slowly
<semlib>
:3
<swarley>
semlib; well yes, this is where I'm impeding the progress of others while I'm helping you
alanp_ has joined #ruby
<swarley>
Is anyone going to actually use the named parameters in ruby .0?
<swarley>
2.0*
alanp_ has joined #ruby
<swarley>
I won't until it is at least 2 versions old.
kiyoura` has joined #ruby
kiyoura has joined #ruby
<swarley>
Because as we've seen with 1.8.7, there are far too many people lagging behind to use a new feature like that immediately.