apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
brianpWins has quit [Quit: brianpWins]
<havenwood> phelps: Sooo, why not just use SecureRandom? Seems better than uniform random distribution in the first place.
Guedes has quit [Disconnected by services]
<phelps> was SecureRandom removed from 2.0.0-p0
Guedes0 is now known as Guedes
Guedes0 has joined #ruby
woolite64 has quit [Quit: Leaving]
<Xeago> uhu, tho even when using secure random, you still have to shuffle properly, not sure if #shuffle is properly implemented
Guedes has quit [Changing host]
Guedes has joined #ruby
<Xeago> scratch that >.<
<havenwood> phelps: Nope, it won't go anywhere.
<havenwood> hash[hash.keys[SecureRandom.random_number hash.keys.size]]
morphyx has quit [Remote host closed the connection]
<Xeago> havenwood: that doesn't give a shuffled array/hash, it only gives a random element from that hash
<Xeago> I think you have to require it firs
<havenwood> Xeago: Oh, I didn't actually read the requirement. >.>
<havenwood> Xeago: Sec.
newUser1234 has joined #ruby
<havenwood> Xeago: Yeah, you'd have to `require 'securerandom'
<phelps> ohh
<Xeago> Proper shuffling: for (i is 1 to 3) Swap i with random position between i and 3
<Xeago> tho, that aint ruby code
hashmal has quit [Quit: Computer has gone to sleep.]
<phelps> is there an example on why fisher yates is bad for card shuffles ?
Kirotan has joined #ruby
Ohga1 has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
pac1 has joined #ruby
nga4 has quit [Ping timeout: 240 seconds]
nga4 has joined #ruby
kkh has quit [Read error: Connection reset by peer]
ephemerian has quit [Quit: Leaving.]
codelitt has joined #ruby
<Ohga1> hello #ruby. Which command line option parser should I use if I want "git style" sub-commands for which I can write the code for separate from the "root" argument parsing in the most simple way
eykosiou_ has quit [Remote host closed the connection]
<Xeago> phelps: that comes down to the same, except I do it in place, that constructs a new array
pepper_chico has quit [Quit: Computer has gone to sleep.]
MrZYX is now known as MrZYX|off
atno has quit [Remote host closed the connection]
<phelps> then shuffle should be fine
<havenwood> phelps: .sort_by { SecureRandom.random_number }
<Xeago> Ohga1: what is wrong with switch?
freeayu__ has joined #ruby
<phelps> since its using fisher-yates
generalissimo has joined #ruby
<Xeago> but does it use a secure source of randomness?
<phelps> you can supply it one
<Xeago> ;O
<Ohga1> Xeago: I don't know.. why is it not wrong?
<phelps> .shuffle { SecureRandom.random_number }
freeayu has quit [Ping timeout: 245 seconds]
Virunga_ has quit []
<phelps> shuffle(random: rng) → new_ary
Virunga has joined #ruby
kofno has joined #ruby
<havenwood> shuffle random: SecureRandom.random_number
tmiller has quit [Remote host closed the connection]
<Xeago> well, thats cool!
<Xeago> did not know that at all xD
jdunck has joined #ruby
<havenwood> Should be same as `sort_by { SecureRandom.random_number }`.
<phelps> I only knew it because I recently read the doc
codelitt has quit [Ping timeout: 264 seconds]
drumsrgr8forn8 has joined #ruby
vickaita has joined #ruby
codelitt has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
danneu has quit [Quit: WeeChat 0.3.8]
pepper_chico has joined #ruby
atno has joined #ruby
danneu has joined #ruby
kofno has quit [Remote host closed the connection]
<havenwood> I guess `shuffle random: x` is nicer than `sort_by { x }`
pepper_chico has quit [Client Quit]
<phelps> prob. just as good, but reads nicer in context to what its doing
aedorn has joined #ruby
<phelps> and I can say what algo I use for shuffling if people care
jdunck has quit [Ping timeout: 276 seconds]
<passbe> i need a simple data storage model for a quick ruby script to keep track of items im scraping from a webpage, would like somthing like active_record but im storing only one model, any pitches?
<havenwood> passbe: You want a DB or marshal and store to file?
codelitt has quit [Ping timeout: 240 seconds]
<havenwood> passbe: DB: Redis (Ohm gem)
jaywastaken has joined #ruby
<havenwood> passbe: File: PStore
codelitt has joined #ruby
tjbiddle has joined #ruby
<mouse-_> yaml, new/save/restore
adkron has joined #ruby
kofno has joined #ruby
Zai00 has quit [Quit: Zai00]
<passbe> thanks guys, will look into those, probably would prefer something that uses an sqlite file
<passbe> rather not a service
<havenwood> passbe: Could use the bindi gem, (which uses Ohm) for uber-simple access to Redis: bindi[:stuff] = 'amg stuff'
<havenwood> passbe: PStore uses Ruby's Marshal to serialize and store to disk transactionally.
yshh_ has quit [Remote host closed the connection]
<passbe> cool
<havenwood> passbe: Bindi saves to Redis in key value store.
<passbe> yes but i need to run Redis as a service
<passbe> looking at pstore now
<havenwood> passbe: gotcha
<aedorn> There's also YAML::Store
dsferreira has quit [Quit: This computer has gone to sleep]
<passbe> didn't think of yaml
sepp2k has quit [Read error: Connection reset by peer]
newUser1234 has quit [Remote host closed the connection]
<havenwood> passbe: Yeah, like aedorn said if you want it human readable ^
<havenwood> passbe: Marshal (PStore) is faster, but not human readable.
* mouse-_ uses yaml for the simple quick projects - hash, array, string, numbers, symbols
<mouse-_> thats all you need
<mouse-_> (sometimes)
jamesfung14 has quit [Quit: Leaving]
slapt has joined #ruby
codelitt has quit [Ping timeout: 264 seconds]
justsee has quit [Ping timeout: 245 seconds]
jdunck has joined #ruby
<passbe> yer, im scraping real estate ads off a website just so i can keep track of them (their emailing system is shocking)
codelitt has joined #ruby
<havenwood> passbe: Another gem wrapper is `persist`, just gives a simple DSL for PStore: https://github.com/havenwood/persist
danneu has quit [Quit: Leaving.]
bricker`work is now known as bricker
danneu has joined #ruby
<havenwood> passbe: Like you said, MySQL is another route. Sequel gem is an easy interface.
<havenwood> s/MySQL/SQLite
<lectrick> Anyone know how I could collect metrics on ActiveRecord::Base CRUD operations for our test suite?
miskander has quit [Quit: miskander]
nari has joined #ruby
hmarr has quit []
danneu has left #ruby [#ruby]
zeade has quit [Quit: Leaving.]
huoxito has joined #ruby
<havenwood> <3 Redis.
joofsh has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
<havenwood> Wish Ohm had better documentation. I want to use it more!
jdunck has quit [Ping timeout: 248 seconds]
codelitt has quit [Ping timeout: 264 seconds]
codelitt has joined #ruby
hogeo has joined #ruby
<havenwood> Nice Rails logo, heh: http://i.imgur.com/sNQ4SKk.png
slapt has quit [Ping timeout: 276 seconds]
SilverKey has quit [Quit: "Sleep now."]
danneu1 has joined #ruby
alkino has quit [Quit: WeeChat 0.4.0]
codelitt has quit [Ping timeout: 256 seconds]
codelitt has joined #ruby
jdunck has joined #ruby
toekutr has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Remote host closed the connection]
jonahR has joined #ruby
bigoldrock has quit [Ping timeout: 264 seconds]
thams has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
miskander has joined #ruby
linnea_1 has joined #ruby
linnea_1 has quit [Remote host closed the connection]
codelitt has quit [Ping timeout: 245 seconds]
linnea_1 has joined #ruby
linnea_1 has quit [Remote host closed the connection]
mmitchell has joined #ruby
elux has joined #ruby
linnea_1 has joined #ruby
kofno has quit [Remote host closed the connection]
tjbiddle has joined #ruby
linnea_1 has quit [Remote host closed the connection]
vickaita has quit [Ping timeout: 240 seconds]
QKO has joined #ruby
youdontmeanmuch has joined #ruby
<youdontmeanmuch> whats a good way to create a 1-100 array?
<havenwood> youdontmeanmuch: [*1..100]
mmitchell has quit [Ping timeout: 252 seconds]
<havenwood> youdontmeanmuch: Or: 1.upto(100).to_a
<youdontmeanmuch> what is the *?
miskander has quit [Quit: miskander]
<havenwood> youdontmeanmuch: A splat. ^ There it means 'explode'.
linnea_ has quit [Remote host closed the connection]
<youdontmeanmuch> interesting, i'll look into that. thanks very much
<havenwood> youdontmeanmuch: Splat like that is a fairly common idiom to explode a range into an array.
Vert has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
dmoctezuma is now known as dmoctezuma|away
cam` has joined #ruby
SeanTAllen has joined #ruby
danneu1 has left #ruby [#ruby]
danneu has joined #ruby
eykosioux has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
aaronmcadam has quit [Ping timeout: 272 seconds]
predator117 has joined #ruby
linnea_ has joined #ruby
Aiur has joined #ruby
eykosioux has quit [Ping timeout: 245 seconds]
drumsrgr8forn8 has quit [Ping timeout: 272 seconds]
kofno has quit [Remote host closed the connection]
predator217 has quit [Ping timeout: 264 seconds]
jdunck has quit [Ping timeout: 245 seconds]
freeayu has joined #ruby
Xeago has quit [Remote host closed the connection]
freeayu__ has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
linnea_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
jdunck has joined #ruby
<felixjet> ey guys, i couldnt install passenger in gentoo/nginx because it required ruby 1.8
<felixjet> but i removed the dependance and it compiled without problems
Asher has quit [Ping timeout: 260 seconds]
<felixjet> will i have any problems because of that manual fix?
<felixjet> with ruby 1.9 ?
<felixjet> what do u think?
yshh has joined #ruby
<havenwood> felixjet: You mean Passenger required Ruby 1.9?
<felixjet> required 1.8
<felixjet> but i had installed 1.9 and i didnt want to install 1.8 too
<havenwood> felixjet: What version of Passenger?
<felixjet> so i removed the requeriment in the gentoo ebuild
<Inside> So guys.. what's a good & simple ruby IDE for windows? I really like PyScripter, but it's for python, duh.. anything similar?
jonahR has quit [Quit: jonahR]
<havenwood> felixjet: Forget 1.8, deprecated.
<felixjet> how i see the passenger version?
whowantstolivefo has quit [Ping timeout: 255 seconds]
<havenwood> felixjet: passenger -v
<felixjet> anyway, passenger files are installed here >>> /usr/lib64/ruby/1.9.1/x86_64-linux/passenger_native_support.so
miskander has joined #ruby
<felixjet> so if its ruby/1.9.1 i dont know why it ask me for ruby 1.8 package...
<felixjet> i dont have passenger binary :/
<felixjet> only this passenger-memory-stats passenger-status
linnea_ has joined #ruby
<havenwood> felixjet: Passenger absolutely supports Ruby 1.9. What is your version?: passenger -v
<felixjet> maybe is not required as i have installed it as a nginx module?
<felixjet> no passenger binary..
<havenwood> oh
aedorn has quit [Quit: Leaving]
<havenwood> felixjet: gem install passenger
<felixjet> but it will install the apache module
<felixjet> dont?
bradleyprice has quit [Remote host closed the connection]
<havenwood> felixjet: You are using Nginx?
<felixjet> yes
<havenwood> felixjet: So download the gem `gem install passenger` then re-install the Nginx module `passenger-install-nginx-module` and follow its instructions to update your conf.
rupee has quit [Quit: Leaving]
<felixjet> Phusion Passenger version 3.0.19
phelps has left #ruby ["Linkinus - http://linkinus.com"]
<havenwood> felixjet: Erm, that is latest.
<havenwood> felixjet: Is that the module installed?
<felixjet> yea but the gentoo ebuild of nginx module ask me for ruby 1.8 :/
<havenwood> felixjet: ooooooh
<felixjet> do you know how gentoo emerge works?
<felixjet> use flags and that stuff?
<havenwood> felixjet: Sorry, I'm slow on the uptake, just realized what you were saying.
jdunck has quit [Ping timeout: 256 seconds]
<felixjet> so i activated the use flag "passenger" in nginx, and it wanted to install ruby 1.8
joshman_ has quit [Quit: Computer has gone to sleep.]
<havenwood> felixjet: No idea why Gentoo package asks for 1.8, maybe nobody updated it to 1.9. Hope they fix it before 1.8 end-of-lifes in June!
<felixjet> so i modified the ebuild, removed this line: (the second one)
<felixjet> nginx_modules_http_passenger? (
<felixjet> $(ruby_implementation_depend ruby18)
<felixjet> and it compiled successfully, but dunno if it will be a problem
<felixjet> and i added passenger_enabled on; to nginx.conf
<havenwood> felixjet: Might want to ask the passenger guys if they've run into it before. I've got no clue if that will be problematic or fine.
<felixjet> do i need to do something else?
mmitchell has joined #ruby
<havenwood> felixjet: You initially installed Passenger module with?: `passenger-install-nginx-module`
jdunck has joined #ruby
<felixjet> no
<felixjet> i installed it using the use flag "passenger" on nginx package
marr has quit [Ping timeout: 264 seconds]
<havenwood> felixjet: Might want to try that. It is the conventional install route.
<felixjet> which is the same as far as i know
jbueza1 has quit [Quit: Leaving.]
<felixjet> yes but in gentoo you know, you dont compile things urself
<felixjet> or install manually packages
<felixjet> you use emerge
<felixjet> as apt-get in ubuntu
<havenwood> felixjet: What is this black magic you speak of?
<felixjet> and passanger-install-nginx-module wants to compile nginx again
<felixjet> making it runs out of portage
<felixjet> so updates wont work, etc
<havenwood> felixjet: Yeah, I dunno. :P I'd try #passenger
<felixjet> kk
<felixjet> anyway ill try it xD
<felixjet> one last thing, how i do create a hello world for nginx?
<felixjet> i mean using CLI it works
<felixjet> but dunno how to do that in a http server
<felixjet> all guides talks about rails... :(
Aiur has quit [Quit: Computer has gone to sleep.]
<felixjet> do i add index.rb ?
<felixjet> or how its executed ruby trought http?
xcv has quit [Remote host closed the connection]
<havenwood> felixjet: Rails, Sinatra, Camping, etc, etc, etc all use Rack.
xcv has joined #ruby
yshh has quit [Remote host closed the connection]
mercy____ has joined #ruby
<havenwood> felixjet: Wait, you want a Ruby web server or web framework?
miskander has quit [Quit: miskander]
yshh has joined #ruby
<felixjet> none of those
<felixjet> i just want to run my ruby code (not rails) on nginx
<felixjet> just as php does
jdunck has quit [Ping timeout: 264 seconds]
akhet has quit [Remote host closed the connection]
nga4 has quit [Ping timeout: 272 seconds]
<mouse-_> so you want rack
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
<mouse-_> it's a simple interface to http, you can probably wrap your http-producing (just as php does) ruby code in it
mootpointer has joined #ruby
seoaqua has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
<felixjet> how i do it?
<felixjet> rack was installed as a dep of passenger already
<felixjet> when i did gem install passenger, rack was installed
<havenwood> felixjet: Sinatra is quite a nice DSL on top of Rack.
hbpoison has joined #ruby
daniel_- has quit [Ping timeout: 245 seconds]
miskander has joined #ruby
jdunck has joined #ruby
<havenwood> felixjet: Rack frameworks include: Rails, Sinatra, Renee, Camping, and others.
<felixjet> but i dont want to use a framwork
<felixjet> just ruby
newUser1234 has joined #ruby
<havenwood> felixjet: Rack web servers include: Passenger, Unicorn, Rainbows!, Thin, Puma, Webrick and others.
<seoaqua> how to remove ruby on mac?
<havenwood> seoaqua: Ruby comes on your mac. It isn't meant to be removed.
<havenwood> seoaqua: Don't do that! :p
<felixjet> so.. i have rack, nginx and passenger. how i do to access mydomain.com and get a "hello world" ? do i use index.rb in the docroot? or how i do it?
twoism has quit [Remote host closed the connection]
<seoaqua> havenwood, i need to install it by brew, do i need to remove it at first?
miskander has quit [Client Quit]
<havenwood> felixjet: Sinatra is a good way. You create a file called app.rb, and in it put: get '/' do; hello world; end
<havenwood> felixjet: then serve it up via rack to passenger, voila.
mrsolo has quit [Quit: Leaving]
<havenwood> seoaqua: Nope.
<havenwood> seoaqua: Leave the system install alone.
<felixjet> but isnt sinatra a framework ?
<havenwood> felixjet: No. It sits on the framework side of Rack, but is a simplistic DSL to make interfacing with Rack easier.
Stilo has joined #ruby
<felixjet> and is there any way to do it without extra gems/apps ?
<havenwood> felixjet: You can make a rackup file, to serve up straight to rack.
<havenwood> felixjet: But Sinatra is probably closer to what you're looking for.
<felixjet> i dont get this... looks too complicated
<felixjet> i mean, if i have ruby and nginx
|christian| has quit [Quit: Leaving]
<felixjet> why i need extra software like passenger, rack, sinatra...
<havenwood> felixjet: Look at the example app at: http://www.sinatrarb.com
<bean> sinatra is a gem
<bean> and using gems is pretty common
<felixjet> is still software
<felixjet> i never used a single pear package in php
<bean> sure you could have a TCP server to implement and HTTP server
<felixjet> and prefer not to do it
<felixjet> i like to reinvent the wheel
<bean> lol
<havenwood> felixjet: The PHP way is cgi. It is a bunch of messy code that points all get requests at folders. Ruby has a more modular system, based on Rack. It is lovely, try it.
newUser1234 has quit [Remote host closed the connection]
<felixjet> so passenger is not able to server http requests tu ruby?
vickaita has joined #ruby
<havenwood> felixjet: Really, look at the example 'app' on Sinatra's website: http://www.sinatrarb.com
jamesfung14 has joined #ruby
<felixjet> havenwood: i did it already xd
wedgeV has quit [Read error: Connection reset by peer]
<havenwood> felixjet: Passenger is a Rack web server.
generalissimo has quit [Remote host closed the connection]
<felixjet> and looks like a framework!
wedgeV has joined #ruby
<felixjet> so... what is rack then?
<havenwood> felixjet: the whole app is 3 lines.
<felixjet> nvm
<felixjet> lets say...
<felixjet> rack is like spawn-fcgi ?
<havenwood> felixjet: How is that a framework? There is one file, three lines.
lancepantz_ is now known as lancepantz
tmiller has joined #ruby
<felixjet> it connects web (nginx) server to backend (ruby) ?
<felixjet> thats rack like?
mockra has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
<havenwood> felixjet: You can technically setup ruby with cgi, to work as i think you imagine. But Rubyists don't, preferring to route get requests with `get '/my_stuff'` rather than creating a folder and putting the file there.
angusiguess has joined #ruby
<bean> yeah that'd be disgusting
<felixjet> well i trought i could do it as in PHP
<bean> no
<felixjet> redirect anything to /
danneu has quit [Quit: Leaving.]
<havenwood> felixjet: I promise, without too much effort you can create a Sinatra app that routes get requests to your view elegantly and you can do your view/ folders and files just as you'd like.
<felixjet> and the files sort the url to redirect it to the proper controller
sambao21 has quit [Quit: Computer has gone to sleep.]
c0rn has quit [Quit: Computer has gone to sleep.]
<bean> step 1) stop comparing ruby to php
Weazy_ has quit [Remote host closed the connection]
kuzushi has quit [Ping timeout: 248 seconds]
<felixjet> just trying to understand it
<felixjet> as i understand php
Weazy has joined #ruby
<felixjet> its better to me if i compare it
<bean> lol
bradhe has quit [Remote host closed the connection]
<felixjet> so, rack is like spawn-fcgi por example?
<bean> so, sinatra isn't really a framework, it is just a DSL for describing routes, and what to do with said routes, i'd say
<havenwood> felixjet: Sinatra has a really nice convention for where to put your views. Your views are equivalent to how you arrange php files in folders.
<felixjet> is that a good concept comparision?
jamesfung14 has quit [Client Quit]
Nisstyre-laptop has joined #ruby
<bean> Rack provides a minimal interface between webservers supporting Ruby and Ruby frameworks.
<felixjet> so what is passenger then? xD
<havenwood> felixjet: Rack is like a http-request-to-ruby converter. A Rack web server (like passenger) connects Rack to the interwebs.
tmiller has quit [Ping timeout: 245 seconds]
<havenwood> felixjet: And a Rack framework makes it easy to send stuff to Rack, giving you pre-determined places to put everything (like Rails) or a DSL (like Sinatra).
<bean> most people in #ruby would likely prefer sinatra to rails
miskander has joined #ruby
hbpoison_ has joined #ruby
<havenwood> bean: agreed!
<felixjet> what DLS stands for?
Voodoofish430 has quit [Quit: Leaving.]
<bean> DSL
<bean> Domain Specific Language
<felixjet> i see
nari has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
<havenwood> felixjet: Basically, it uses Ruby's flexibility to make it so "get" tells a GET request where to go, "put" a PUT request, etc.
kuzushi has joined #ruby
nga4 has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
<felixjet> so rack connects passenger to ruby, and lets say passenger connects nginx to the interweb
<felixjet> thats what ive understand xD
<havenwood> felixjet: So `get '/' { 'hello world' }` will return the text 'hello world' when you hit the root level url.
<felixjet> and sinatra makes it easy to manage the urls and stuff
<felixjet> like a framework but without libraries
<havenwood> felixjet: yup
<felixjet> like pagination and stuff
<havenwood> felixjet: Passenger uses Nginx as a reverse proxy.
<havenwood> felixjet: So Passenger is actually forking and spawning threads and is a web server. Just uses Nginx to quickly serve flat files and load balance.
<havenwood> felixjet: If you removed Nginx you could have Passenger serve up to port 80 instead (don't).
Soliah has quit [Quit: Soliah]
sambao21 has joined #ruby
<havenwood> Nginx is great at load balancing.
<havenwood> And slow clients.
<felixjet> so lets say nginx is not required
<bean> we use nginx for all of our production stuff at work
<bean> love it
<felixjet> yea i do too
<havenwood> felixjet: Yeah, it isn't required.
joofsh has joined #ruby
tommyvyo has joined #ruby
<felixjet> it makes sense then
<bean> you can make passenger run on port 80, it'd have to be run as root though
<bean> or at least started as root
<havenwood> felixjet: A common practice is to load balance with Apache or Nginx, but some Ruby web servers can load balance themselves (e.g., Rainbows::EventMachine).
etcetera has quit []
<havenwood> felixjet: It gives a ton of flexibility, so you can choose the best web server for what you're doing.
<felixjet> like.... mongle?
<felixjet> or whatever is called xD
<felixjet> mongrel
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
<felixjet> but ive read that is too old now
<bean> mongrel often sits behind apache / nginx
headius has quit [Quit: headius]
<bean> Mongrel is old now, yes, but was very popular. First web server used by twitter.
palaenkar has joined #ruby
<bean> Written by Zed Shaw
<palaenkar> hey
<bean> hello, palaenkar
brettstark has joined #ruby
<palaenkar> just making sure this thing worked
joofsh has quit [Remote host closed the connection]
<felixjet> since its not like im gonna write a webserver... lets use sinatra xd
<brettstark> testing
<palaenkar> a buddy is setting this up for me
<felixjet> thanks so much havenwood / bean
fschuindt has quit [Quit: Computer has gone to sleep.]
<havenwood> felixjet: Modern Ruby webservers other than Passenger that you might use in production are: thin, unicorn, puma, and net-http-server.
<bean> np, felixjet, don't resist the ruby way ;)
<bean> unicorn is one i've used,
<felixjet> im too used to php >.<
<havenwood> bean: Unicorn behind Nginx... mmmhmmm!
<felixjet> in php i writed my own "sinatra"
<havenwood> felixjet: cool
<bean> wrote*
<bean> Our internal gitlab server is unicorn + nginx :)
vickaita has quit [Ping timeout: 264 seconds]
<felixjet> reading $SERVER [REQUEST_URI]
<felixjet> and using it to parse data to the propper controller
<felixjet> yea, wrote
<bean> that sounds terrifying
<felixjet> you should already notice that english is not my first lang haha sorry
<bean> haha, yeah
<bean> one of my friends wrote this little guy in php
<bean> its hilarious
<havenwood> Was about to say my fav chess app was written in PHP, but just looked and he rewrote it in Scala! https://github.com/ornicar/lila
<youdontmeanmuch> coming from JS, is there a simpler idiom to accomplish something like this?
<youdontmeanmuch> myfunc_called = 7
<youdontmeanmuch> def myfunc
<youdontmeanmuch> myfunc_called += 1
<youdontmeanmuch> end
<youdontmeanmuch> print myfunc_called
<havenwood> lichess.org
<youdontmeanmuch> myfunc
Domon has joined #ruby
<felixjet> looks nice, ill take a look further when i have time
<banister`sleep> youdontmeanmuch: that's not even valid ruby
<youdontmeanmuch> i know
<havenwood> youdontmeanmuch: Use gist.github.com for multiple lines of code! :P
<felixjet> i try to simplify my framework as much as possible
<felixjet> thats why i avoid using sinatra, rails, or whatever i can xD
Firespore has joined #ruby
<banister`sleep> youdontmeanmuch: so you dont mean 'simpler' you mean 'something that works'
<youdontmeanmuch> i see Proc, but was wondering if there was another way that might accomplish something like that
<banister`sleep> youdontmeanmuch: also pls dont paste > 3 lines here
<youdontmeanmuch> !pastebin
<banister`sleep> youdontmeanmuch: we normally use gist.github.com here
chongyu123 has quit [Ping timeout: 245 seconds]
<youdontmeanmuch> cool ty
Banistergalaxy has quit [Ping timeout: 264 seconds]
vickaita has joined #ruby
<banister`sleep> youdontmeanmuch: that code is pretty unidiomatic, we dont normally define methods that close over their local environment like that
<banister`sleep> that's not how methods are used in ruby (99% of the time)
Banistergalaxy has joined #ruby
<bean> ^ +1
justsee has quit [Ping timeout: 245 seconds]
<youdontmeanmuch> yea figured rubiers might use a different method for trying something like this
<banister`sleep> youdontmeanmuch: but if you *really* want to do it, you can use define_method / define_singleton_method
<Spooner> Yes, banister`sleep but I think myfunc = lambda do...end makes sense in that case.
<banister`sleep> or use a lambda like Spooner says
senayar has quit [Quit: Quitte]
<youdontmeanmuch> cool, i'll check those options out. thanks for the lead fellas
joofsh has joined #ruby
Rudd-XXX has joined #ruby
<Rudd-XXX> hello gents
<banister`sleep> youdontmeanmuch: in 1.9 you can use -> lambda syntax which is quite nice imo
chongyu123 has joined #ruby
<bean> >> my_lambda=->num{puts num}; my_lambda.(5)
<eval-in> bean => 5 ... (http://eval.in/13027)
<Rudd-XXX> I have a server where I want to deploy a sinatra app, and that requires me to install a number of gems. what is the official mechanism that allows me to do that without compiling gems on the servers themselves?
bradleyprice has joined #ruby
<bean> Rudd-XXX, look at bundler
<Rudd-XXX> bean I did
<Rudd-XXX> what does bundler give me?
<bean> a reproduceable install
<Rudd-XXX> I won't ever run bundle install on my servers, so it's a no go
<Rudd-XXX> what else?
<bean> why wont you run bundle install?
<Rudd-XXX> because that requires me to install a number of things on the server, including but not limited to a c compiler
<Rudd-XXX> and I won't do that
<havenwood> Rudd-XXX: You shouldn't run `bundle install` on your server. Try `bundle --deployment` to vendor your gems.
<Rudd-XXX> havenwood, more info please?
<bean> $ bundle install --path vendor/bundle
<bean> would also put them into vendor/bundle
codelitt has joined #ruby
<bean> why would bundle install need a c compiler? the gem you're using needs to be compiled?
<Rudd-XXX> bean yes.
aed has quit [Quit: aed]
<Rudd-XXX> and how would my sinatra app know how to require from the vendor/bundle there?
sambao21 has quit [Quit: Computer has gone to sleep.]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<havenwood> Rudd-XXX: It freezes the gems into BUNDLE_PATH, which is vendor/bundle by default.
<bean> The --deployment flag activates a number of deployment-friendly conventions:
<bean> Isolate all gems into vendor/bundle
<bean> If bundle package was run, do not fetch gems from rubygems.org. Instead, only use gems in the checked in vendor/cache
<bean> Require an up-to-date Gemfile.lock
<Rudd-XXX> again, how do I inform my sinatra app that it needs to require stuff from the vendor path
pepper_chico has joined #ruby
eykosioux has joined #ruby
marcdel has quit []
slash_nick has quit [Ping timeout: 252 seconds]
niklasb has quit [Ping timeout: 252 seconds]
<Rudd-XXX> i have multiple sinatra apps running under passenger phusion
<Rudd-XXX> they all will have different bundles
bradleyprice has quit [Remote host closed the connection]
codelitt has quit [Ping timeout: 240 seconds]
mmitchell has quit [Remote host closed the connection]
marcdel has joined #ruby
<havenwood> Rudd-XXX: Some people use a Gemfile with Bundler, others use Gemsets with RVM, others yet a hybrid of both. I like Bundler personally.
codelitt has joined #ruby
<Rudd-XXX> ah, i see. this means i can only have a single bundle, because I have to freeze the bundle and then install it
<bean> its a bundle per app
mercy____ has quit [Quit: mercy____]
<bean> so no
<havenwood> Rudd-XXX: The bundle is on a per app basis.
<Rudd-XXX> havenwood, that is not what the docs here say http://gembundler.com/v1.2/deploying.html
<Rudd-XXX> they are installed to the system ruby
<havenwood> Rudd-XXX: Each app has a Gemfile. The ./ it refers to is the app dir.
carlyle has joined #ruby
<bean> Start your application servers as usual, and your application will use your bundled environment with the exact same gems you use in development.
<bean> note it says application
<havenwood> Rudd-XXX: If you use the --deployment flag they are vendored in the app dir.
eykosioux has quit [Ping timeout: 245 seconds]
<Rudd-XXX> OK, guys, I would rather avoid storing a huge bundle per build per app.
<Rudd-XXX> that will quickly balloon to gigabytes
drumsrgr8forn8 has joined #ruby
<havenwood> Rudd-XXX: So you want to install gems system-wide?
<havenwood> Rudd-XXX: Do all your apps use the same gems?
<Rudd-XXX> not all, but most, and I may be able to standardize on a set of gems
<Rudd-XXX> i would prefer to install gems as debian packages, to be fair
<havenwood> Rudd-XXX: You might want to look at chgems: https://github.com/postmodern/chgems
<havenwood> chroot for gems ^
eka has quit [Quit: Computer has gone to sleep.]
<Rudd-XXX> I can't use chgems because it won't be compatible with passenger phusion
<bean> anything ruby, as .debs is a bad idea
<havenwood> Rudd-XXX: It should be compatible with Passenger. What would the problem be?
<Rudd-XXX> bean i disagree.
<Rudd-XXX> havenwood, there is no way to set per-app environment in passenger phusion 3
slash_nick has joined #ruby
rickmasta has joined #ruby
<havenwood> Rudd-XXX: ahh
codelitt has quit [Ping timeout: 264 seconds]
<Rudd-XXX> i guess I will just have to deal with the fact that our choices have forced me into having a single bundle
<bean> Rudd-XXX, the reason I say that is because you dont get good versions
<Firespore> Question
<Rudd-XXX> i donno how I will tell developers that they have to ditch their gemfiles
<Rudd-XXX> bean it is my job to ensure the "good versions" part, don't worry about that
<havenwood> Rudd-XXX: Hrm. You don't want a single bundle but you don't want multiple bundles?
codelitt has joined #ruby
<Firespore> gem files
<Firespore> i dont know what they are
<Firespore> at all
<Rudd-XXX> havenwood, I would prefer if each app had its own bundle, but I don't want to store megabytes of files each build.
hbpoison has joined #ruby
<havenwood> Rudd-XXX: Do you have megabytes of gems? Most are relatively tiny.
brettstark has quit [Remote host closed the connection]
<Rudd-XXX> havenwood, 25 gems here total about a couple MB
<havenwood> Firespore: A Gemfile is a list of gem dependencies for an app that can be installed automatically by running bundler.
<havenwood> Rudd-XXX: Yikes.
<Firespore> so
<Firespore> Double clicking a gem file would install an app contained within the bundle?
ttt has joined #ruby
<Rudd-XXX> also they must be built with a c compiler, some. that automatically rules out macs in my fist iteration. damn.
hbpoison_ has quit [Read error: Connection reset by peer]
<bean> Firespore, no.
<Firespore> hm
<Rudd-XXX> Firespore, no. gemfiles are textfiles.
<havenwood> Firespore: The file is literally named "Gemfile" and you run `bundler` to install.
seoaqua has quit [Quit: 离开]
<havenwood> s/bundler/bundle
<bean> Rudd-XXX, not so, if they're in the bundler cache they fcan be preinstalled
<bean> err precompiled
<Firespore> Hm.
markisonfire has left #ruby [#ruby]
nonotza has joined #ruby
nga4 has quit [Ping timeout: 248 seconds]
<havenwood> Rudd-XXX: I'd say use bundler and vendor your gems on a per-app or shared-between-apps basis as needed.
rcsheets has quit [Ping timeout: 255 seconds]
rwz has quit [Ping timeout: 255 seconds]
<Rudd-XXX> ok, so assume this ideal situation: I have N projects but *all* of them share a Gemfile from a separate project
<havenwood> Rudd-XXX: Two apps can use the same vendor dir.
marcdel has quit []
<Rudd-XXX> havenwood, how do I vendor at build time? and how do I install the vendored bundle at install time?
carlyle has quit [Ping timeout: 245 seconds]
<Firespore> Now a gem is a sort of plugin/dependency for a rb file or something?
<Firespore> I have never ever used gem files ever
TheDeadSerious_ has quit [Ping timeout: 255 seconds]
Guest85414 has quit [Ping timeout: 255 seconds]
<felixjet> its like a package
<felixjet> not like, it is xd
<felixjet> like plugins yea
codelitt has quit [Ping timeout: 256 seconds]
<bean> felixjet, more like libraries, but yeah
<Firespore> So if I had a example.gem on my desktop, I "cd desktop", run the command "ruby example.gem" in terminal, what would exactly happen
<Firespore> Oh so it's like a library
<bean> Firespore, nothing
<felixjet> nothing
<Firespore> i see
<Firespore> disregard that question
<felixjet> for example you can do gem install json
<felixjet> and use json in ur .rb file
codelitt has joined #ruby
<felixjet> to parse json variables
<Firespore> Really?
<felixjet> using ruby example.rb
a_a_g has quit [Quit: Leaving.]
<felixjet> yes
dhruvasagar has quit [Read error: Connection reset by peer]
<havenwood> Rudd-XXX: Bundle on your development machine to build your Gemfile.lock, then in staging bundle again with deployment flag, and then vendor the compiled gems into the vender directory in production.
<bean> http://gembundler.com/v1.3/sinatra.html is how to use bundler with sinatra, btw.
<Firespore> so i just installed ruby-bundler, does that give the functionality to install gem libraries/files buy just typing "gem install blahblahblah"?
daniel_- has joined #ruby
<felixjet> no, thats ruy-gems
<Rudd-XXX> where is the vendor directory in production?
<felixjet> ruby-gems
palaenkar has quit [Quit: Leaving]
<havenwood> Firespore: gem install bundler
noobie has joined #ruby
jerius has quit []
<bean> Rudd-XXX, i'd imagine in ./ of the app
mercy____ has joined #ruby
<havenwood> Firespore: ^ installs the bundler gem with RubyGems
carlyle has joined #ruby
<havenwood> Firespore: check out `man gem`
<Firespore> I am using ubuntu 12.04
<Firespore> so i just installed this ..package..through ubuntu software center
<Firespore> Labeled "ruby-bundler"
emmanuelux has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
<bean> Firespore, thats a bad idea.
<Firespore> eh?
<havenwood> Firespore: I'm suspicious. >.> What do you get for?: bundle -v
<Firespore> should i remove it
toekutr has joined #ruby
<havenwood> Firespore: Prolly.
<Firespore> I thought that's....what you were talking about
<bean> tell use what bundle -v tells you though
tjbiddle has joined #ruby
<bean> im interested
<havenwood> Firespore: Preferred install method is `gem install bundler`.
<Firespore> Bundler version 1.3.4
<havenwood> Firespore: Who knows what package manager version is. Okay, that is latest. :O
<Firespore> well i'll just remove it via ubuntu software center
<Firespore> then install it again using gem install bundler..
codelitt has quit [Ping timeout: 248 seconds]
huoxito has quit [Quit: Leaving]
pasties has quit [Ping timeout: 256 seconds]
<bean> yeah, imo its best to have the gem
Myconix has joined #ruby
codelitt has joined #ruby
mfridh has quit [Ping timeout: 256 seconds]
<Firespore> Bundler version 1.3.4
<Firespore> Okay i'm good
aed has joined #ruby
statarb3 has quit [Ping timeout: 260 seconds]
daniel_- has quit [Ping timeout: 240 seconds]
pepper_chico has quit [Quit: Computer has gone to sleep.]
<Firespore> So do any of you have any experience with rbot?
icole has quit [Remote host closed the connection]
* bean uses cinch
danman has joined #ruby
<Firespore> or cinch
pasties has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<bean> cinch is nice
codelitt has quit [Ping timeout: 245 seconds]
<bean> had trouble getting it to detect people being away status though
<bean> even though the constant for it exists and gets returned on a /whois
miskander has quit [Quit: miskander]
tjbiddle has quit [Quit: tjbiddle]
pepper_chico has joined #ruby
<Firespore> I would not know where to start with that
codelitt has joined #ruby
<Firespore> how to make the bot /whois and then take a specific line from it and spew it out in a channel
freeayu__ has joined #ruby
zero7 has quit [Ping timeout: 256 seconds]
pepper_chico has quit [Client Quit]
<Firespore> As you can probably tell, I'm relatively new to this
<bean> you may want to learn ruby before you go trying to write IRC bots
<Firespore> I already wrote one
<mootpointer> I have some experience with Rbot.
<mootpointer> It was a long time ago, though.
<Firespore> buuuut...all it does is just idle, no joining channels
jaywastaken has quit [Remote host closed the connection]
youdontmeanmuch has quit [Ping timeout: 252 seconds]
<bean> lol then you didnt write shit
<mootpointer> That's probably less than useful.
<Firespore> 55 lines
<bean> ... lol
<bean> what did it do then
<bean> if it wasn't in a channel
<Firespore> well there was a function to join a channel
<Firespore> but it didn't work
<dominikh> that's not called writing an IRC bot…
hbpoison has quit [Read error: Connection reset by peer]
<Firespore> It just sits, does nothing, and ping/pongs a server
<mootpointer> Fun times.
<bean> so not an irc bot
<Firespore> It's a bot
<Firespore> that does shit
hbpoison has joined #ruby
<bean> like what
<Firespore> shit
alanp has quit [Ping timeout: 245 seconds]
<Firespore> nothing
<Firespore> zip
<Firespore> 0
bradhe has joined #ruby
<mootpointer> Ah.
<bean> then its the equivilent of not being a bot
<Firespore> ...then what it is
freeayu has quit [Ping timeout: 276 seconds]
<Firespore> is it*
codelitt has quit [Ping timeout: 264 seconds]
<Firespore> a ruby script that opens a connection to an irc server and sits there
<bean> yep
<Firespore> what should i call that
<mootpointer> Anyhow, what was your original question?
<bean> a pile of shit is what i'd call it :P
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
<mootpointer> bean: Oh come on, be nice.
<Firespore> ARSTPACTAISAST? (first letter of each word in that sentence)
codelitt has joined #ruby
<mootpointer> Firespore: What are you aiming to do?
nari has joined #ruby
<felixjet> havenwood: is unicorn a gem?
<mootpointer> Once upon a time, I could chat over IRC using telnet.
<mootpointer> Those were heady days.
<Firespore> an irc bot...
<bean> that does what
<Firespore> With functions such ass resolving dns hosts to ips
<Firespore> as*
<bean> okay, that wouldn't be difficult
<Firespore> Checking whether a website is up/down
<mootpointer> Right.
* bean might write one like that tomorrow
chimkan has quit [Quit: chimkan]
<Firespore> Managing a botnet
<Firespore> nothing huge
<mootpointer> Oh good.
<bean> lol
<Firespore> !ddos 127.0.0.1 etc.
<Firespore> LOLJK
<mootpointer> LULZ
<Firespore> I already have one for that written in C++
<mootpointer> rbot used to be pretty reasonable to build that kind of stuff on top of.
<mootpointer> I quite like hubot, but that's coffeescript/js.
doja has joined #ruby
<Firespore> What I used to use is supybot...and well considering that I like ruby's setup much better...here i am...looking for guidance
<bean> hubot is great
<dominikh> Don't use Cinch.
<Firespore> I have an mirc bot which i wrote all the commands I would like to transliterate into ruby
<mootpointer> I've used supybot too.
<bean> dominikh, why not
<mootpointer> Wrote a reasonably popular plugin back in the day.
<Firespore> I am FUCKING sick of mirc
<dominikh> bean: for one because it's not like supybot, second because I don't want him to end up asking me questions about it :)
<mootpointer> Firespore: I don't know how active rbot and similar are, but they used to be good.
codelitt has quit [Ping timeout: 248 seconds]
<Firespore> I do wonder
<bean> dominikh, theres an irc channel for cinch ;)
<dominikh> bean: yes, that's exactly what I meant ;)
alanp has joined #ruby
carlyle has quit [Remote host closed the connection]
ArchBeOS has quit [Remote host closed the connection]
<mootpointer> cinch would pretty much do the job ;)
<Firespore> mootpointer, would you have any experience in opening sockets in ruby, ie on port 80...reading things from a website...spewing stuff out in a channel
codelitt has joined #ruby
<Firespore> such as fmylife.com
<mootpointer> Firespore: Why bother? Other people have climbed that mountain for you.
<mootpointer> Use rbot or cinch or hubot.
<dominikh> bean: as in, check my host
<bean> Firespore, there are many gems that will do that scraping for you
<Firespore> So you're telling me everything I'm asking about where to start..on coding...is already codeed
<Firespore> coded*
<bean> ah, hello dominikh
<bean> :po
<bean> :P*
crackfu has joined #ruby
<Firespore> If so, today isn't such a bad day.
Hanmac2 has joined #ruby
zeade has joined #ruby
<mootpointer> Firespore: Well, not your specific implementations, but the framework you need to only code some specific stuff… Yes.
<Firespore> I wouldn't have any idea where to start with it
<Firespore> As I said, my failbot is an example of my newness to this language
<bean> Firespore, you used rbot for your fail bot?
<Firespore> Incorrect
<bean> then what'd you use
<Firespore> I just wrote 55 lines approximately of just...
<Firespore> shit
<Firespore> in an .rb file
<bean> ah, opening a socket yourself?
<Firespore> Yup
zeade1 has joined #ruby
Hanmac1 has quit [Ping timeout: 256 seconds]
<Spooner> Firespore, Mechanize is pretty easy to use. If you have to run Javascript then watir & headless do a nice job.
dhruvasagar has joined #ruby
<bean> Cinch is pretty simple, has worked pretty well for me for at least one bot :). I ahve a bot that emails people messages if they have |away in their nick (with approrpiate username set in their /whois)
codelitt has quit [Ping timeout: 256 seconds]
<Firespore> I would mention another function I would like my bot to do
<Firespore> But feds itc
<bean> ?
codelitt has joined #ruby
cisco1 has quit [Quit: Leaving.]
philipd has joined #ruby
<bean> paranoid?
zeade has quit [Ping timeout: 245 seconds]
<Firespore> Oh fuck it. I would like to transliterate this function that just decrypts ip hashes and logs them to a text file and then encrypts and/or obfuscates I'm hopefully going to use a AES256 key
kornnflake is now known as kornnflake_zzz
<Firespore> So i can see who lurks in my channels on some irc network
<Firespore> Obviously not this one
<Firespore> since the ips are clearly shown
<Firespore> * dhruvasagar (~dhruvasag@122.167.76.99) <--- example
mercwithamouth has joined #ruby
<bean> a lot of networks obfuscate ips
jonahR has joined #ruby
<dhruvasagar> Firespore: hmm
<bean> unsure why you'd hash ips
<Firespore> Obfuscate them
<Firespore> But some use a key
<Firespore> and when there's a key
<Firespore> You can take that key, and rub it all over the hash/obfuscated text and it magically becomes an IP
<Firespore> If you get me
ffranz has quit [Quit: Leaving]
<dominikh> you might want to look up the meanings of both hashing and obfuscation
* bnagy gets popcorn
<bean> I'm not gonna lie, you're sounding like a script kiddie, Firespore
codelitt has quit [Ping timeout: 272 seconds]
codelitt has joined #ruby
vickaita has quit [Ping timeout: 256 seconds]
<Firespore> hm
<havenwood> felixjet: Yup, its a gem! Rainbows! is another gem that is a relative of Unicorn as well.
<Firespore> bean, forget that. I would like to relay ips to a specific channel
<Firespore> as in
* Firespore joined #channel (17.0.0.120.032)
* bean does not like the idea of tracking people.
<dominikh> you've got to be shitting me :D
<Firespore> Bot:#logchannel Firespore(IP: blah) joined
<felixjet> havenwood: worth use unicorn?
<ner0x> (1..10).to_a.sample is a good way to generate a random number eh?
<felixjet> im reading good things about it, but too memory consumer
dmoctezuma|away is now known as dmoctezuma
headius has joined #ruby
<bean> >> (1..10).to_a.sample(3)
<eval-in> bean => [4, 7, 6] (http://eval.in/13028)
<bean> >> (1..10).to_a.sample(3)
<eval-in> bean => [6, 5, 1] (http://eval.in/13029)
<bean> >> (1..10).to_a.sample(3)
<eval-in> bean => [8, 7, 10] (http://eval.in/13030)
<Firespore> ??
<bnagy> ner0x: not particularly
<havenwood> felixjet: Unicorn is fantastic imho. Yes, Unicorn uses fork so more memory usage than something like Puma that uses only threads.
codelitt has quit [Ping timeout: 260 seconds]
<ner0x> bnagy: It works though, no? What's the more accepted method?
<felixjet> this is a 512mb vps >.<
codelitt has joined #ruby
<bnagy> ner0x: rand(10)+1
<felixjet> what about puma ?
<bean> >> Random.new.rand(10)
<felixjet> it is good?
<eval-in> bean => 8 (http://eval.in/13031)
yfeldblum has joined #ruby
<ner0x> bnagy: That's it?!
<havenwood> felixjet: If you use Ruby 2.0.0 and in your Unicorn config specify `preload_app true` then it will use much less memory.
<bnagy> ner0x: yeah
<Firespore> well fawk.
<havenwood> felixjet: Ruby 2.0's GC is CoW friendly, so forking apps like unicorn can prefork and not copy memory that isn't written to post-fork.
<bean> ner0x, naw, Random.new.rand(1..10) is a better idea.
<Firespore> Would it be possible to relay chat to a different channel bean?
<felixjet> no 2.0 in gentoo yet :(
<bean> Firespore, you're asking questions about things that are so so simple, why not go hack on some code for a bit
<Firespore> people talking in here for example, join/parts, would be relayed by the bot to another channel
<Firespore> Well even the simplest simplicity in this language is out of my reach atm
sambao21 has joined #ruby
<ner0x> bnagy: rand(10) would generate 0-9 I assume then?
<havenwood> felixjet: Puma is younger than Unicorn, but very promising. It relys on threading though, so it is idea for GILless implementations.
<bean> ner0x, y u no see what i say
<ner0x> bean: I saw what you said. I was asking a question.
adkron has quit [Ping timeout: 260 seconds]
<havenwood> felixjet: Thin and Unicorn are very solid.
<bnagy> ner0x: correct
eka has joined #ruby
<bean> ner0x, kk sry
<felixjet> havenwood: should i use them before passenger?
<havenwood> s/idea/ideal
<havenwood> felixjet: Passenger does forking like Unicorn, actually.
<bean> Firespore, why not go read and try instead of asking questions then
<ner0x> bnagy: rand(1..10) would do the same, then, correct?
<felixjet> i dont really like passenger, too many problems to configure hah
mercy____ has quit [Quit: mercy____]
<havenwood> felixjet: Yeah, Unicorn is much simpler to install and configure than Passenger, imho.
<bnagy> ner0x: you have to instantiate a Random instance to get the range syntax
<bnagy> which sux, imho but there it is
<Firespore> bean, I have been reading, found absolutely nothing
eka has quit [Client Quit]
<havenwood> felixjet: Well, I guess the standalone passenger is easy.
<ner0x> bnagy: So .sample is calling rand() anyway.
tvw has quit [Ping timeout: 264 seconds]
<Firespore> I was hoping that someone had already created this and I could learn from it and create my own based off it
<Firespore> Buuuuut that's not happening.
<bnagy> ner0x: the C version yeah
philipd has quit [Quit: Computer has gone to sleep.]
<felixjet> but it doesnt rely on nginx :(
jonahR has quit [Remote host closed the connection]
codelitt has quit [Ping timeout: 256 seconds]
<ner0x> bnagy: So rand(low..high) is sufficient.
mercy____ has joined #ruby
codelitt has joined #ruby
<havenwood> felixjet: Nginx can reverse proxy to Passenger stand-alone. Passenger pretty much stands alone with offering modules for apache and nginx.
<bnagy> ner0x: yeah but it's more typing and ever so slightly slower :)
<ner0x> bnagy: It makes it more readable for me. :)
<felixjet> so what does the nginx module!
<bnagy> using Random is great if you want to seed it yourself, and the Float range syntax is great
<ner0x> bnagy: Which I think is a fair tradeoff. :)
<havenwood> felixjet: If memory usage is paramount, you really may want to give Puma a spin. Unicorn is really nice though!
<bean> Firespore, okay, look up cinch, figure out how you'd send messages to other channels. I'd start with writing a simple bot that just logs chats.
<felixjet> yea i think puma fits good on my setup
<Firespore> i already have rbot so ill just use that
<felixjet> since i dont run heavy apps
ArchBeOS has joined #ruby
<felixjet> its just for development and that stuff
<Firespore> brb coding in ruby, and failing at it. etc.
<dominikh> bean: oh for the love of god will you stop suggesting cinch :P
<Firespore> It's humiliating not to know a programming language like this
<havenwood> felixjet: Yeah, under light load you'll never even notice the GIL with Puma. Really performs quite well on CRuby.
<bnagy> Firespore: try yapping less and coding more, then
<Firespore> I need to stuff my brain with ebooks and wikis
<Firespore> yes, precisely bnagy
Virunga has quit [Remote host closed the connection]
<havenwood> Firespore: Read others' code on the Githubs.
<bean> dominikh, :P i'd answer questions about it, but if he'd just read the examples and API it'd get him pretty far :P
kofno has quit [Remote host closed the connection]
vickaita has joined #ruby
eykosioux has joined #ruby
<dominikh> bean: not too sure about a man who thinks an v4 IP consists of 5 blocks :P
<Firespore> The only thing I can do in ruby is write a failbot.
<yfeldblum> doesn't everything perform well at light load?
<Firespore> No general knowledge of how it works or anything.
<havenwood> 192.168.1.1.1
<bean> dominikh, lol yeah
codelitt has quit [Ping timeout: 260 seconds]
<havenwood> dominikh: Maybe that is IPv5
<havenwood> >.>
<Firespore> ipv5?
<Firespore> who uses ipv5?
<havenwood> Firespore: I jest.
<bean> lol
<felixjet> havenwood: CRuby is just ruby right?
<havenwood> felixjet: Yes.
<felixjet> kk
codelitt has joined #ruby
<felixjet> gonna do some research about that
<felixjet> things looks more much clear now xD
<havenwood> felixjet: Reference implementation.
wmoxam has quit [Ping timeout: 276 seconds]
gyre007 has quit [Remote host closed the connection]
bigmac has joined #ruby
teamon has quit [Ping timeout: 255 seconds]
maveonair has quit [Ping timeout: 255 seconds]
mockra has joined #ruby
<bean> seriously, though, Firespore why not just learn the language and then try stuff like irc bots
eykosioux has quit [Ping timeout: 245 seconds]
<bean> http://rubymonk.com/ is pretty good, as is tryruby.org
fredwu has joined #ruby
arya_ has joined #ruby
<Firespore> bean, googlilng ebooks and stuff as we speak.
<felixjet> i love codeacademy
Spooner has quit [Remote host closed the connection]
<bean> I do not recommend books
<Firespore> wikis? bean?
<bean> especially because you might get a book for ruby 1.8 and thats not what you want.
<bean> no, look at the two sites i recommended.
<bean> interactive
<Firespore> Where?
* Firespore scrolls up
teamon has joined #ruby
<Firespore> I see nothing.
<bean> <bean> http://rubymonk.com/ is pretty good, as is tryruby.org
<bean> you're blind then
<Firespore> I cleared my scrollsback.
<Firespore> lol
<felixjet> blind monk
mave_fnet has joined #ruby
<felixjet> hah
Asher has joined #ruby
<Firespore> bean, going to go through rubymonk.org
mootpointer has quit [Quit: Computer has gone to sleep.]
<bean> its .com but ok
<felixjet> hahahahahahahah
headius has quit [Quit: headius]
codelitt has quit [Ping timeout: 245 seconds]
<felixjet> let him go thtough rubymong.org !
<felixjet> monk*
<bean> ah, it redirects
codelitt has joined #ruby
hasimo-t has quit [Remote host closed the connection]
rcsheets has joined #ruby
<Firespore> it does redirect
wedgeV has quit [Ping timeout: 256 seconds]
wedgeV has joined #ruby
<bigmac> maybe i can use ruby to speed up my labtop fans for a cooler running machine?
<bigmac> any ideas
<bean> bigmac, i uh... dont think thats something you want to solve by coding yourself
elux has quit [Quit: Leaving...]
<sam113101> you can speed them up by running an infinite loop, though it's going to be hotter
<bigmac> i thought there might be a single command to give my fans a quick boost
<sam113101> also use multithreading
<Firespore> ^
<bean> bigmac, and why would ruby be the solution
<Firespore> ^^^^
<Firespore> This.
io_syl has quit [Ping timeout: 245 seconds]
<Firespore> You can just go and change that stuff in your BIOS..manually. Or use nearly any other programming language to do that
<Firespore> Why specifically ruby?
Tricon has quit [Quit: Leaving...]
<havenwood> bigmac: OS/distro?
marcdel has joined #ruby
<havenwood> bigmac: Linux, OS X, Windows?
<bigmac> maybe ruby is not the solution... but i thought i could monitor `sensors` and if temp is high system(fan boost)
<bigmac> linux mint
<bean> Firespore, stop. fan speed is usually not a bios setting anyways, it's usually controlled in the OS.
<bigmac> for this system i dont have fan speeds in bios... but my desktop does
codelitt has quit [Ping timeout: 264 seconds]
<Firespore> bean, it can be controlled in the OS, most BIOS version I know of have fan speed settings within a setup menu
<bean> bigmac, i'd ask in mints irc
<Firespore> versions*
sambao21 has quit [Quit: Computer has gone to sleep.]
codelitt has joined #ruby
<bigmac> sorry for off topic but when i cant figure stuff out i look for another option
dhruvasagar has quit [Ping timeout: 246 seconds]
<havenwood> bigmac: sudo apt-get install lm-sensors
<havenwood> bigmac: Then: man sensors
<bigmac> i have lmsensors installed but im not comfortable with the temperature during stressful times
<havenwood> bigmac: sudo apt-get install fancontrol
tish has joined #ruby
<havenwood> bigmac: You could use Ruby to script fancontrol
ner0x has quit [Quit: Leaving]
dhruvasagar has joined #ruby
brhelwig has quit [Remote host closed the connection]
<bigmac> i also notice no increase or decrease with these fans so i was concerned... thanks for your help
Tricon has joined #ruby
kofno has joined #ruby
kofno has quit [Read error: Connection reset by peer]
<havenwood> I like smcfancontrol for OS X.
tish has quit [Client Quit]
mootpointer has joined #ruby
<noobie> Is there a simple way to get the __VIEWSTATE, __EVENTTARGET and __EVENVALIDATION in order to submit them in a form with Mechanize?
tish has joined #ruby
codelitt has quit [Ping timeout: 264 seconds]
mootpointer has quit [Client Quit]
codelitt has joined #ruby
noobie has left #ruby ["[EOF]"]
64MACVSX1 has joined #ruby
tealmage has joined #ruby
etcetera has joined #ruby
doja has quit [Quit: Linkinus - http://linkinus.com]
berserkr has quit [Quit: Leaving.]
bigmac has quit [Remote host closed the connection]
k776 has joined #ruby
eAlchemi_ has quit [Ping timeout: 272 seconds]
dmoctezuma has quit [Read error: Connection reset by peer]
codelitt has quit [Ping timeout: 246 seconds]
headius has joined #ruby
<k776> I'm getting this error when converting string encodings. Anyone know why? http://pastie.org/6622143
dmoctezuma has joined #ruby
codelitt has joined #ruby
<bean> k776, what ruby version
bradleyprice has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 252 seconds]
sayan has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
<k776> bean: ruby 1.9.3p385
<k776> It works alright if I remove the ":replace => '', " part of the conversion
<bean> hmm odd
<bean> that seems like a bug.
<bean> you could try upgrading to p392 to see if that helps
crackfu has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 245 seconds]
<k776> bean: I'll give it a go
codelitt has quit [Ping timeout: 264 seconds]
<bean> http://stackoverflow.com/questions/1268289/how-to-get-rid-of-non-ascii-characters-in-ruby the 1st answer there notes that they've seen similar issues
codelitt has joined #ruby
<k776> Yes, I did see that post, but it doesn't point out a solution
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
markalanevans has quit [Ping timeout: 246 seconds]
<bean> other than "it only works on some ruby versions"
rismoney has quit [Read error: Connection reset by peer]
<k776> I'm compiling p392 now, will let you know
breakingthings has joined #ruby
<havenwood> k776: 2.0.0-p0!
<havenwood> :O
* bean bets it works in 2.0.0 as well
Banistergalaxy has joined #ruby
* havenwood bets it works in 2.1.0
icole has joined #ruby
<bean> lol
<k776> I'll try both then :P
<havenwood> k776: Some nice wins in 2.0.0, and stable release. :)
* bean is a fan of lazy enumerator
<bean> s
<bean> :p
<havenwood> bean: Agreed! #lazy ftw!
<bean> might be a bit slower, but hey it lets me do stuff without a fake INFINITY var
codelitt has quit [Ping timeout: 245 seconds]
Asher2 has joined #ruby
subbyyy has joined #ruby
<k776> Not fixed in 1.9.3p392. Compiling 2.0.0 now
codelitt has joined #ruby
crackfu has joined #ruby
<havenwood> bean: Actually, was curious if this use of Enumerable#lazy is actually sufficient to prevent entire file from being loaded into memory? https://gist.github.com/havenwood/5174569
<k776> Hmm, 2.0.0 failed to compile on Mac :-( Looks like the build on openssl ran into an issue
Asher has quit [Ping timeout: 240 seconds]
<havenwood> k776: Do you use Homebrew?
<k776> havenwood: Yes, I do
Ontolog has quit [Remote host closed the connection]
<havenwood> k776: It prolly needs to be configured with: --with-openssl-dir=`brew --prefix openssl`
icole has quit [Ping timeout: 256 seconds]
<havenwood> k776: chruby's install guide is a nice mac reference: https://github.com/postmodern/chruby/wiki/MRI
<havenwood> k776: (Lists all the Homebrew flags to link against, but OpenSSL is only one that seems to matter.)
noesis has joined #ruby
<havenwood> I kinda look forward to Tokaido. I mean building is fun and all, but nice to have a statically linked option!
axhlf has quit [Remote host closed the connection]
r0bby has joined #ruby
<bean> havenwood, yeah i bet that would work
codelitt has quit [Ping timeout: 272 seconds]
codelitt has joined #ruby
r0bby is now known as robbyoconnor
cupakromer has joined #ruby
joofsh has quit [Remote host closed the connection]
twoism has joined #ruby
<k776> bean: havenwood: The issue still exists in ruby .20.0
<k776> *ruby 2.0.0
<havenwood> k776: eek!
<havenwood> me eats shoe
codelitt has quit [Ping timeout: 276 seconds]
codelitt has joined #ruby
drale2k has joined #ruby
vickaita has quit [Ping timeout: 246 seconds]
<k776> Ok, can anyone confirm the same issue?
marcdel has quit []
hbpoison has joined #ruby
drumsrgr8forn8 has joined #ruby
brhelwig has joined #ruby
<k776> bean: havenwood: Can you just pop open irb and run this: http://pastie.org/6622269
vickaita has joined #ruby
<havenwood> Encoding::ConverterNotFoundError: code converter not found (universal_newline)
<bean> unfortunately I'm on a windows PC for gaming at the moment
<bean> don't have a dev workstation set up at home atm
<bean> :(
crackfu has quit [Remote host closed the connection]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
ArchBeOS has quit [Remote host closed the connection]
yashshah has joined #ruby
<havenwood> k776: I get the same error in Ruby 1.9.3, 2.0.0, and 2.1.0-dev. With JRuby 1.7.3: #=> "hey"
a_a_g has joined #ruby
<bean> >> body, charset = "hey", "hey".encoding.to_s; body = body.encode('UTF-8', charset, :invalid => :replace, :undef => :replace, :replace => '', :universal_newline => true)
<eval-in> bean => /tmp/execpad-fe59fe98f698/source-fe59fe98f698:2:in `encode': code converter not found (universal_newline) (Encoding::ConverterNotFoundError) ... (http://eval.in/13032)
<bean> touche
<havenwood> k776: Works in Rubinius as well.
codelitt has quit [Ping timeout: 248 seconds]
<k776> Ok, so it's related to MRI
codelitt has joined #ruby
Lockzi has quit [Ping timeout: 245 seconds]
drumsrgr8forn8 has quit [Ping timeout: 252 seconds]
jpcamara has quit [Quit: jpcamara]
carlyle has joined #ruby
carlyle has quit [Remote host closed the connection]
thams has quit [Ping timeout: 252 seconds]
strcrzy_ has left #ruby [#ruby]
Stilo has joined #ruby
brhelwig has quit [Ping timeout: 245 seconds]
codelitt has quit [Ping timeout: 264 seconds]
vickaita has quit [Ping timeout: 264 seconds]
codelitt has joined #ruby
Lockzi has joined #ruby
etcetera has quit []
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
zeade1 has quit [Quit: Leaving.]
NiteRain has joined #ruby
codelitt has quit [Ping timeout: 276 seconds]
Ohga1 has quit [Read error: Connection reset by peer]
codelitt has joined #ruby
kofno has joined #ruby
araujo has quit [Quit: Leaving]
Tabrenus has joined #ruby
slyv has quit [Quit: Computer has gone to sleep.]
Tabrenus has quit [Read error: Connection reset by peer]
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
akhet has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
greenarrow has quit [Ping timeout: 246 seconds]
ryanf_ has joined #ruby
ryanf_ has left #ruby [#ruby]
greenarrow has joined #ruby
codelitt has quit [Ping timeout: 245 seconds]
nmeum has quit [Ping timeout: 240 seconds]
<headius> havenwood: JRuby hasn't implemented all encoding options yet, and Rubinius…dunno, but I think they're missing quite a bit more
codelitt has joined #ruby
<havenwood> headius: aha!
<headius> but not working at all in MRI could certainly still be a bug
ebobby has quit [Quit: Lost terminal]
pkrnj has joined #ruby
kofno has quit [Ping timeout: 245 seconds]
decoponio has joined #ruby
luckyruby has joined #ruby
FullTiltProspect has quit [Quit: FullTiltProspect]
codelitt has quit [Ping timeout: 264 seconds]
rwz has joined #ruby
<bean> k776, did you see that, could certainly be a bug.
TheDeadSerious_ has joined #ruby
Guest85414 has joined #ruby
codelitt has joined #ruby
* bean doesn't know how one goes about reporting an MRI bug
chrishough has joined #ruby
codelitt has quit [Client Quit]
bradleyprice has quit [Remote host closed the connection]
s1n4 has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
sayan has quit [Read error: Connection reset by peer]
hasimo-t has joined #ruby
gyre007 has joined #ruby
dhruvasagar has joined #ruby
a_a_g has quit [Quit: Leaving.]
gyre007 has quit [Ping timeout: 256 seconds]
Nisstyre-laptop has joined #ruby
xcv_ has joined #ruby
xcv has quit [Read error: Connection reset by peer]
Opettaja has quit [Quit: WeeChat 0.4.0]
io_syl has joined #ruby
zero7 has joined #ruby
wargasm has quit [Ping timeout: 256 seconds]
Voting has quit [Ping timeout: 252 seconds]
hash has quit [Disconnected by services]
hash has joined #ruby
justsee has joined #ruby
SCommette has quit [Quit: SCommette]
hash has quit [Disconnected by services]
jonahR has joined #ruby
hash has joined #ruby
jonahR has quit [Read error: Connection reset by peer]
hash has quit [Disconnected by services]
hash has joined #ruby
hash has quit [Disconnected by services]
hash has joined #ruby
hash has quit [Disconnected by services]
headius has quit [Quit: headius]
aed has quit [Read error: Connection reset by peer]
divout has joined #ruby
t_hash has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
headius has joined #ruby
cyong has joined #ruby
yacks has joined #ruby
verysoftoiletppr has joined #ruby
chiel has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
tomzx_mac has quit [Ping timeout: 252 seconds]
hemanth_ is now known as hemanth
fredwu is now known as fredwu|afk
kofno has quit [Ping timeout: 248 seconds]
<shevy> what do you guys use in your prompt, when you use a shell?
<shevy> I tend to use the current working dir only
<shevy> now I am thinking of using nothing as prompt
<shevy> reason why this is relevant to ruby is because I am wondering in general what my ruby scripts should display back to me
Guest26787 has joined #ruby
<shevy> (when I use a shell)
Guest26787 has left #ruby [#ruby]
chiel has joined #ruby
rezzack has quit [Quit: Leaving.]
<havenwood> shevy: I have it give me an abbreviated pwd, so I know where I am, and then an emoji to let me know git status (mushroom for dirty and sunflower for clean). :P
<shevy> abbreviated as in, if it is too long, it would be made shorted?
pygmael has joined #ruby
<shevy> *shorter
<shevy> hmmm
<shevy> I have no idea what an emoji is but it sounds like an image
<havenwood> Yeah, little pictures.
brhelwig has joined #ruby
<shevy> I dont think bash in xterm can show a picture :(
<havenwood> shevy: Actually, I should do that (shorten overly long file paths) but right now i just do ~.
<havenwood>
mercy____ has quit [Quit: mercy____]
fredwu|afk is now known as fredwu
<havenwood> shevy: Yeah, no. I'm not seeing emoji in xterm.
<shevy> hehe oh man
<havenwood> shevy: My computer's name is actually emoji. As is the network.
<shevy> enter linux - programming stuck in the 1970s
<havenwood> shevy: Emoji may come to linux soon. Now that google and apple submitted utc spec for emoji.
uris has quit [Quit: Leaving]
<shevy> cool!
tealmage has quit [Remote host closed the connection]
s1n4 has quit [Quit: leaving]
Artheist has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
<havenwood> shevy: PS: This is my prompt (took the basic look from oh-my-zsh simple theme, but don't use oh-my-zsh): http://imgur.com/mtG9RqI
<shevy> hahaha that is cute
tommyvyo has quit [Quit:]
<shevy> well, that looks significantly better than mine, mine is just boring green display of the current working directory
<shevy> no wait, teal is the colour I use for directories
arya_ has quit [Ping timeout: 248 seconds]
<Firespore> i've been reading rubymonk.com
SCommette has joined #ruby
<Firespore> it's asking me questions
<Firespore> it's like it expects me to know them already
<shevy> this is how it looks like for me havenwood when pressing some enter: http://oi46.tinypic.com/zakm.jpg
<shevy> Firespore hehe
<shevy> what question do you have Firespore
<Firespore> Well i can't get these questions right
<Firespore> i have to click show solution
<Firespore> i'm like...well why didn't you tell me that's what i use for that
<bean> hmm, well do the answers make sense after you click that?
<Firespore> Yes they do
<bean> alright, then maybe you need to think harder before clicking show answer.
<Firespore> because it tells me what should be there
<Firespore> What kind of question is, "Do the obvious."
<Firespore> lol
<bean> okay, what lesson are you on
DrCode has joined #ruby
<shevy> well it depends
<shevy> what is the problem description
angusiguess has joined #ruby
<shevy> if it tells you your input is [1,2,3] and you should make output [1,3,2] then this would be obvious
casheew has quit [Read error: Connection reset by peer]
<Firespore> Sometimes we will be required to know the index of a particular character or a sub-string in a given String and conveniently Ruby provides a method on String that does exactly that. Try and find out the index of 'R' in the string below:
casheew has joined #ruby
<shevy> good. string.index() method
brianpWins has joined #ruby
<Firespore> "I am a Rubyist"
<Firespore> i typed in
<shevy> "ABC DEF RHJ".index('R') # => 8
<bean> >> "I am a Rubyist".index("R")
<eval-in> bean => 7 (http://eval.in/13033)
<shevy> "I am a Rubyist".index('R') # => 7
<shevy> Firespore, for this all you need to do is at the official documentation on class String
arya has joined #ruby
eykosioux has joined #ruby
<Firespore> "I am a Rubyist".index? "R"
<Firespore> INCORRECT!
vickaita has joined #ruby
<Firespore> "I am a Rubyist".index? 'R'
<bean> not .index?
<shevy> the ? can be part of a method name
<shevy> but .index is not the same as .index?
<shevy> you see the difference Firespore?
<Firespore> Yes I do
<breakingthings> Firespore: obviously, you're not patient enough to be a monk! get of this temple!
<shevy> good point :)
<Firespore> >of
<shevy> you are not yet patient enough
<Firespore> I think you meant off.
<shevy> either you must become a monk
<shevy> or drunk
<shevy> but right now you are not ready!
<Firespore> And I sat here for 10 minutes thinking about it.
<shevy> what were you thinking about for those 10 minutes?
<Firespore> What the right answer could be
<breakingthings> Firespore: more like I meant "out of" but yeah ok
<Firespore> I was also inputting things I thought were right
bradhe has quit [Remote host closed the connection]
<Firespore> all of which were wrong
Guest85414 has quit [Ping timeout: 260 seconds]
flowerhack has quit [Ping timeout: 260 seconds]
<Firespore> ...well thought might be right
sayan has joined #ruby
<havenwood> shevy: Here is a better screeny showing emoji change :P http://imgur.com/xHBfygm
Inside has quit [Ping timeout: 264 seconds]
<bean> Firespore, you could have googled "ruby string index" and it might have helped :)
bradhe has joined #ruby
<k776> havenwood: bean: I reported it: https://bugs.ruby-lang.org/issues/8123
<havenwood> k776: Nice!
<bean> awesome
thams has joined #ruby
<Firespore> So i continue with rubymonk.com
<Firespore> I have no idea how many books or whatever are in this
breakingthings has quit [Excess Flood]
headius has quit [Quit: headius]
girija_ has joined #ruby
<Firespore> But..i'm just gonna keep going through this until my internet shuts off
breakingthings has joined #ruby
eykosioux has quit [Ping timeout: 245 seconds]
s00pcan has quit [Read error: Connection reset by peer]
* havenwood shudders at the thought of internet ever shutting off.
fredwu has quit [Read error: Connection reset by peer]
<bean> > internet shuts off
<bean> what
tylersmith has quit [Quit: tylersmith]
vickaita has quit [Ping timeout: 264 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
<bean> Firespore, internet shuts off?
<Firespore> Yes internet shuts off
<Firespore> and i actually just got a question right
trend has joined #ruby
s00pcan has joined #ruby
sayd has joined #ruby
<Firespore> And my internet should shut off in about....2 hours
zero7 has quit [Ping timeout: 255 seconds]
<Firespore> 2 hours 15 minutes.
SeanTAllen has quit [Ping timeout: 260 seconds]
<bean> why though
<havenwood> bean: the internet is powered by sunlight, so it doesn't work in the dark
<bean> lol
<Firespore> I don't know how to answer that
<bean> lol?
<Firespore> because my internet gets shut off around this time every night
<sayd> how does one install a more recent gem? need rake-pipeline ~> 0.8.0
<Firespore> that's hwy
<Firespore> why*
<bean> by who or what though
<havenwood> sayd: From a Gemfile?
DrCode has quit [Remote host closed the connection]
<Firespore> Doesn't matter. I'm just unfortunate...regarding this.
<bean> ah
<sayd> havenwood no, built from source
* bean guesses parents :P
ryanf has joined #ruby
himsin has quit [Ping timeout: 256 seconds]
ryanf has left #ruby [#ruby]
freerobby has joined #ruby
DrCode has joined #ruby
<bean> sayd, gem install rake-pipeline --version="0.8.0"
<sayd> ERROR: Could not find a valid gem 'rake-pipeline' (= 0.8.0) in any repository
fredwu has joined #ruby
<sayd> does that mean i have to build from source?
<bean> sayd, rake pipeline only has version ~> 0.7.0 on rubygems
<havenwood> sayd: looks like 0.7.0 is current, so try: gem install rake-pipeline --pre
<havenwood> sayd: Nope, no --pre version.
<bean> looks like you could build it then
<bean> check it out from github
<bean> gem build rails-pipeline.gemspec
<Firespore> I have a bad feeling I won't get very far in this book
<Firespore> before my internet gets shut off
<bean> then make an account and pick it back up tomorrow/
<bean> its not really meant to be completed in one go
mockra has quit [Remote host closed the connection]
jdunck has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
<Firespore> not the WHOLE thing
<Firespore> but at least one book
<sayd> i guess i don't understand what ember-dev is then.
<Firespore> just looked at the contents and im halfway done with the first book
reset has quit [Ping timeout: 248 seconds]
mootpointer has joined #ruby
<bean> Firespore, you may want to go back and re-do some of them that you couldn't do, once you know enough
<Firespore> bean, i would say that's a good idea
jdolitsky1 has quit [Quit: Leaving]
etcetera has joined #ruby
wargasm has joined #ruby
jdunck has joined #ruby
mockra has joined #ruby
otters has quit [Ping timeout: 258 seconds]
<Firespore> tryruby.org makes things so much more simple bean
<Firespore> i mean horribly simply
<Firespore> thank you for showing me these sites
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
mockra has quit [Remote host closed the connection]
<bean> no problem
<bean> use your powers for good, not evil ;)
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
breakingthings has quit []
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
rickmasta has quit [Quit: Leaving...]
casheew has quit [Read error: Connection reset by peer]
jbueza has joined #ruby
otters has joined #ruby
hadees has joined #ruby
shock_one has joined #ruby
nari has quit [Quit: Ex-Chat]
arya has quit []
dmoctezuma has quit [Remote host closed the connection]
nga4 has joined #ruby
k776 has left #ruby [#ruby]
twoism has quit [Remote host closed the connection]
casheew has joined #ruby
HecAtic has joined #ruby
markalanevans has joined #ruby
rickmasta has joined #ruby
tonini has joined #ruby
danslo has quit [Quit: danslo]
yashshah has quit [Read error: Connection reset by peer]
faulkner has quit [Quit: boo.]
yashshah has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
jdunck has quit [Read error: Connection reset by peer]
pygmael has quit [Quit: pygmael]
etcetera has quit []
sandGorgon has joined #ruby
mercy____ has joined #ruby
trend has quit [Ping timeout: 245 seconds]
tealmage has joined #ruby
Guedes has quit [Excess Flood]
<shevy> yes
<shevy> join google
<shevy> do evil
<shevy> and call it good
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<shevy> damn the youtube advertisement :(
tealmage has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
nari has joined #ruby
ryanf has joined #ruby
freeayu__ has quit [Read error: Connection reset by peer]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
apeiros_ has joined #ruby
artofraw has joined #ruby
ryanf has left #ruby [#ruby]
s1n4 has joined #ruby
s1n4 has quit [Client Quit]
huttan has quit [Read error: Connection reset by peer]
bean is now known as bean|sleep
emergion has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
freeayu has joined #ruby
etcetera has joined #ruby
drale2k has quit [Quit: Leaving...]
nmeum has joined #ruby
artofraw has quit [Remote host closed the connection]
Voting has joined #ruby
freerobby has quit [Quit: Leaving.]
angusiguess has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran1 has joined #ruby
rippa has joined #ruby
pygmael has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
<hemanth> shevy, adblock plugin :)?
angusiguess has quit [Ping timeout: 246 seconds]
robustus has joined #ruby
ryanf has joined #ruby
ryanf has left #ruby [#ruby]
brhelwig has quit [Ping timeout: 272 seconds]
ananthakumaran has quit [Ping timeout: 252 seconds]
BizarreCake has joined #ruby
<shevy> hmm that could work against it?
brianpWins has quit [Quit: brianpWins]
browndawg has joined #ruby
cyong has quit [Quit: Leaving.]
browndawg has left #ruby [#ruby]
maes has joined #ruby
xcv_ has quit [Remote host closed the connection]
xcv has joined #ruby
pen has joined #ruby
feedbackloop has quit [Ping timeout: 245 seconds]
fredwu is now known as fredwu|afk
fredwu|afk is now known as fredwu
Opettaja has joined #ruby
carraroj has joined #ruby
_br_ has quit [Ping timeout: 245 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
fphilipe has joined #ruby
jmeeuwen has joined #ruby
setient has quit [Read error: Operation timed out]
sambio has quit []
hbpoison has joined #ruby
artm_ has joined #ruby
jgrevich has quit [Quit: jgrevich]
_br_ has joined #ruby
youdontmeanmuch has joined #ruby
PanPan has joined #ruby
bnagy has quit [Remote host closed the connection]
etcetera has quit []
chat has joined #ruby
bnagy has joined #ruby
ozgura has quit [Remote host closed the connection]
etcetera has joined #ruby
setient has joined #ruby
<shevy> sooo
<shevy> time to start a huge ruby colour project!
<Firespore> >smoke weed
<shevy> how do I search all gems for tag keywords "colo" ... as alias to color and colour
feedbackloop has joined #ruby
<Firespore> >your ruby code should work
louism2__ has joined #ruby
<louism2__> hello world
<Firespore> ^ first ruby script?
<Firespore> print "Hello world!"
<louism2__> just making sure I could submit
<Firespore> lol
<Firespore> If the channel is not +m then you should be able to
<shevy> hell louism2__
<shevy> oops
<shevy> hello louism2__
<shevy> welcome to world
<Firespore> this is hitler's germany
<shevy> and welcome to ruby!
<Firespore> obviously
<Firespore> SIEG HEIL
<louism2__> the warmest reception to a channel I think I have ever had
<Firespore> You probably like that don't know
<louism2__> I feel special
<Firespore> you*
<shevy> Firespore man you like war, go use PYTHON
<Firespore> LOL
<shevy> it has a real DICTATOR still
<Firespore> I used to
<shevy> you MUST use
<shevy> foo.bla()
<shevy> ruby is the poet
<Firespore> i like ruby better
<shevy> you can use foo.bla or foo.bla()
<Firespore> i like ruby better
<Firespore> I LIKE RUBY BETTER THAN PYTHON
<shevy> Firespore it all comes down to who is cooler
<shevy> guido vs. matz
<Firespore> RUBY > PYTHON NO EXCEPTIONS
<shevy> matz always smiles when he does a presentation
<shevy> his english sucks, but he smiles
<Hanmac> shevy: matz has a better beard :P
<Fraeon> I like Befunge better than Ruby
<shevy> hmm no I think guido has the better beard
<Firespore> bill gaes would be awesome if he made ruby
<Firespore> more awesome than he already is
_br_ has quit [Ping timeout: 245 seconds]
<shevy> god man
<shevy> he gave us windows
<Firespore> same for Linus Torvalds
<louism2__> If I have exception handling in two methods, say 'foo' calls 'bar', and an exception occurs in 'bar' how does that bubble up? I am assuming that the exception handling in 'bar' is the only one that gets run? Is that the case?
<shevy> do you think bill would create something that would be useful for the people and not for him?
<Firespore> what if ruby was native to linux
<Firespore> came pre installed with every distro
<Firespore> EVERY DISTRO
<Firespore> And everything was coded in ruby and not java
<shevy> louism2__ hmm
* Firespore licks lips
<shevy> louism2__ there is caller() you can always do
<Firespore> That is a near perfect world there
<shevy> def foo; pp caller; end
Myconix has quit [Read error: Connection reset by peer]
<Firespore> def perfect_world = "ruby everywhere"
bambanx has joined #ruby
<bnagy> louism2__: it won't really bubble
<bnagy> unless you re-raise it
<bambanx> hi
<Firespore> bambanx, hi
<bnagy> it will just get rescued by the first rescue or not at all
apeiros_ has quit [Remote host closed the connection]
<louism2__> thanks for the input everyone
<bnagy> louism2__: def foo; bar; rescue "foo"; end vs def foo; bar; end def bar; #something; rescue "bar"; end
hogeo has quit [Ping timeout: 245 seconds]
<bambanx> guys i am using this Dir.entries("testdir") why the firsts element of my array are . .. .jpg ?
hogeo has joined #ruby
<bambanx> any way for avoid them?
<bnagy> bambanx: . and .. are directory entries.
<Firespore> How to avoid displaying .jpg files?
<louism2__> what about caller(), what does that do for me?
<Firespore> Is that what you are asking?
<bnagy> you can do something like next if File.directory? dirent
<bambanx> i need only the files of my dirr
<bambanx> dir
kevingriffin has joined #ruby
<bambanx> a list
coderhs has joined #ruby
<Firespore> Dir.entries("/directory/file")
<Firespore> amirite
<coderhs> hi there, can you suggest on how to make ruby treat a string with a ';' for example "hello;world" as a single string
<Hanmac> like ? Dir["testdir/*"]
<shevy> louism2__ you can always find the stack trace that way
<Firespore> ^
<bnagy> coderhs: it does
_br_ has joined #ruby
<Firespore> I would suggest removing the semicolon for ruby to treat that as a string
<bnagy> coderhs: in other words whatever your problem is, that's not it, try a bit more detail
fredwu has quit [Quit: Compiling...]
<Firespore> Seems like the most simple solution.
<shevy> Firespore dont use Dir.entries it is ugly
<shevy> use Dir['/directory/file/*']
fredwu has joined #ruby
<shevy> oops
fredwu has quit [Client Quit]
<shevy> Dir['/directory/file']
<shevy> there
<shevy> hmmm
<shevy> or rather
<shevy> Dir['/directory/file*']
<shevy> :P
<shevy> pick one!
<shevy> all but Dir.entries
<coderhs> bnagy: I am trying to make a url clickable, but when i do regex operation on the string it treats this string as if it was two separate words
<bnagy> shevy: that will still give you directory entries though
mockra has joined #ruby
<shevy> :(
<bnagy> coderhs: yeah, that's what you get for using regex :)
<bnagy> probably your issue is that ';' isn't in the \w set
shock_one has quit [Ping timeout: 246 seconds]
<bnagy> imho using regex for pretty much anything involved with urls is a one-way ticket to Failville
dhruvasagar has quit [Ping timeout: 246 seconds]
<bnagy> shevy: it doesn't give you . and .. though, so I guess that's a start. I also love the Dir[] syntax :)
security has quit [Ping timeout: 246 seconds]
DrCode has quit [Remote host closed the connection]
<bnagy> >> Dir['*'].reject {|e| File.directory? e}
<eval-in> bnagy => ["source-3c396629b7a7", "input-3c396629b7a7", "output-3c396629b7a7"] (http://eval.in/13035)
<coderhs> bnagy: can you have a look at my regex https://gist.github.com/coderhs/5194117, also what do u suggest instead of regex
zigomir has joined #ruby
<bnagy> coderhs: I don't look at regex from strangers, and some kind of parser
<Firespore> shevy, what's wrong with Dir.entries
<Firespore> Dir.entries was the only way to display files that i knew of
dhruvasagar has joined #ruby
<Hanmac> >> Dir['*'].reject &File.method(:directory?)
<eval-in> Hanmac => ["source-92d79615e9f6", "output-92d79615e9f6", "input-92d79615e9f6"] (http://eval.in/13036)
<bnagy> depends what you're doing as to which one, but people like nokogiri
tealmage has joined #ruby
blacktulip has joined #ruby
mockra has quit [Ping timeout: 248 seconds]
araujo has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<bnagy> coderhs: have you seen rubular.com? It's not bad as a basic regex troubleshooter
fphilipe has quit [Read error: Connection reset by peer]
<coderhs> bnagy: thanks for your suggestion, i didn't test my regex there..
fphilipe has joined #ruby
hackeron has quit [Ping timeout: 255 seconds]
<coderhs> bnagy: damn, it works there but not in an actual program
<Firespore> wo
<Firespore> I just read
tealmage has quit [Ping timeout: 264 seconds]
<Firespore> 3 books on ruby
<Firespore> in 2 hours
<Firespore> I feel smart
bluOxigen has joined #ruby
<bnagy> it doesn't show
brianpWins has joined #ruby
<Hanmac> Firespore: read the core documentation too, specialy the Enumerable module
<Firespore> good idea
<Firespore> i'll have a gander
brhelwig has joined #ruby
Hanmac has quit [Quit: Leaving.]
nonotza has quit [Quit: nonotza]
aganov has joined #ruby
_whitelogger has joined #ruby
_whitelogger_ has joined #ruby
_whitelogger_ has joined #ruby
hackeron has joined #ruby
hackeron has joined #ruby
francisfish has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
charliesome has joined #ruby
charliesome has joined #ruby
puppeh has joined #ruby
puppeh has joined #ruby
chat has quit [Quit: leaving]
chat has quit [Quit: leaving]
<bambanx> using this p "<item thumb=\"data/images/gallery/enero/#{item}05_stock_pile/thumb.jpg\" title=\"Stock Pile\" >"
<bambanx> using this p "<item thumb=\"data/images/gallery/enero/#{item}05_stock_pile/thumb.jpg\" title=\"Stock Pile\" >"
<bambanx> get me this: "<item thumb=\"data/images/gallery/enero/01_prestripping05_stock_pile/thumb.jpg\" title=\"Stock Pile\" >"
<bambanx> get me this: "<item thumb=\"data/images/gallery/enero/01_prestripping05_stock_pile/thumb.jpg\" title=\"Stock Pile\" >"
Tricon has joined #ruby
Tricon has joined #ruby
_whitelogger_ has quit [Remote host closed the connection]
<bnagy> bambanx: use havenwood's line, it's prettier
Hanmac has joined #ruby
bluOxigen has joined #ruby
|christian| has joined #ruby
coderhs has joined #ruby
<bnagy> and you're seeing the backslashes because you used 'p' which gives you inspect output. They're not really there.
<bambanx> oh
francisfish has joined #ruby
<bambanx> any other commnad for see it in real?
<bnagy> puts I guess, but p is the most 'accurate'
<havenwood> bambanx: If you want to print it to stdout: puts
<bnagy> you just have to remember that it's showing you escaped double quotes and similar
<bambanx> thankssssssssssss
blueOxigen has joined #ruby
<bambanx> i shoudl write like 200 lines of code on a xml so i am finding a way for make it faster
<bambanx> :P
<havenwood> bambanx: puts %(hi); # "hi"
hbpoison has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
toekutr has quit [Remote host closed the connection]
ij has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
s00pcan has quit [Quit: leaving]
s00pcan has joined #ruby
anderse has joined #ruby
etcetera has quit []
apeiros_ has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
rickmasta has quit [Quit: Leaving...]
fredwu has joined #ruby
banghouse has joined #ruby
mattbl has joined #ruby
DrCode has joined #ruby
kuzushi has quit [Ping timeout: 245 seconds]
nomenkun has quit [Remote host closed the connection]
workmad3 has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
mpfundstein has joined #ruby
ozgura has joined #ruby
mafolz has joined #ruby
trend has joined #ruby
aapzak has joined #ruby
bricker`LA has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
Dwarf has joined #ruby
hemanth has joined #ruby
marcgg has quit [Read error: No route to host]
fredwu_ has joined #ruby
fredwu_ has quit [Remote host closed the connection]
fredwu has quit [Read error: Connection reset by peer]
fredwu has joined #ruby
ozgura has quit [Ping timeout: 264 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
postmodern has quit [Quit: Leaving]
<bambanx> what are u using for paste code? pastie is ok?
workmad3 has quit [Ping timeout: 260 seconds]
floyd has joined #ruby
fredwu_ has joined #ruby
Morkel has joined #ruby
<bnagy> anything but pastebin imho
fredwu has quit [Ping timeout: 264 seconds]
<Firespore> bnagy, what
xcv_ has joined #ruby
<Firespore> something wrong with pastebin
whowantstolivefo has joined #ruby
<Nom-> gist ?
codecop has joined #ruby
<Nom-> It even has the link to gist.github.com in the topic
banghous_ has joined #ruby
fredwu_ has quit [Client Quit]
banghous_ has quit [Read error: Connection reset by peer]
<bambanx> a hands with this pls guys http://pastie.org/6623444
banghous_ has joined #ruby
xcv has quit [Ping timeout: 255 seconds]
<bambanx> is a little thing my problem automating my code is working cool , just this a little detail about . .. , i was dont understand the explanation u give me a few minutes ago . sorry for that
banghous_ is now known as banghouse_
banghouse is now known as Guest48165
Guest48165 has quit [Ping timeout: 246 seconds]
<Firespore> Nice.
<Firespore> I like gist.github.com a lot.
<Firespore> I also like http://pastebay.com/
banghouse_ is now known as banghouse
pcarrier_ has joined #ruby
naquad has quit [Excess Flood]
banghouse has quit [Remote host closed the connection]
eykosioux has joined #ruby
naquad has joined #ruby
chussenot has joined #ruby
<felixjet> can someone help me? i cant figure out how to run the ruby app with puma+rack
<Firespore> felixjet,
<Firespore> I can try to help
mpfundstein has quit [Remote host closed the connection]
<felixjet> u were not asking a few hours ago what a gem is? :P
dsferreira has joined #ruby
<Firespore> Yes, felixje
<Firespore> t
<felixjet> hee
<Firespore> well would you rather have no one help you felixjet
<Firespore> lol
<felixjet> yep... haha
<felixjet> but i dont think you can help at all...
<felixjet> no offence xD
puppeh has quit [Read error: Connection reset by peer]
alup has quit [Read error: Connection reset by peer]
<Firespore> I don't think I can help either, felixjet.
<Firespore> lol
dr_bob has joined #ruby
alup has joined #ruby
Tricon has quit [Quit: Leaving...]
as-cii has joined #ruby
eykosioux has quit [Ping timeout: 264 seconds]
<felixjet> xD
puppeh has joined #ruby
64MACVSX1 has quit [Remote host closed the connection]
browndawg has joined #ruby
eAlchemi_ has joined #ruby
tonini has quit [Remote host closed the connection]
<Nom-> bambanx: If you didn't work it out yet, you're using the wrong variable in your second level foreach
hoelzro|away is now known as hoelzro
<bambanx> but is working for my list
<Nom-> What's wrong felixjet ?
<bambanx> Nom
<felixjet> Nom-: trying to make works pumna+nginx+sinatra
<bambanx> the list is displayed correct , the only thing is . .. Nom
<felixjet> i have all downloaded but dunno where to start
<Nom-> bambanx: The puts has the correct variable, but your "next if" has the wrong one... read the two "next if" lines carefully...
<bambanx> ok
kevingriffin has quit [Remote host closed the connection]
<bambanx> lol yeah Nom
<bambanx> Thanks Nom-
<Nom-> felixjet: Starting up a rack application is pretty easy... have you gone through something to learn the basics?
ferdev has quit [Quit: ferdev]
<felixjet> yea, lot of guides
tonini has joined #ruby
<felixjet> none working
ij has left #ruby ["WeeChat 0.3.9.2"]
<felixjet> im out of them already
arturaz has joined #ruby
<Nom-> So running the 'puma' command should start up the application assuming you've created a config.ru already
banghouse has joined #ruby
<felixjet> but that wont use sinatra right?
<Nom-> Your config.ru file should be bootstrapping your Sinatra app
<felixjet> so ruby files are .rb or .ru ?
<Nom-> rb
<felixjet> so why now ru?¿
<Nom-> .ru is a special 'Rackup' format
<felixjet> ah
eAlchemi_ has quit [Ping timeout: 260 seconds]
brianpWins has quit [Quit: brianpWins]
<felixjet> how i do create a config.ru?
<felixjet> i mean what i need to place there?
coderhs has quit [Ping timeout: 245 seconds]
<solidus-lake> hey guys, i'm trying to write a rake task to serve my doc but i'm getting rejected withs ome errors
<Nom-> There you go... have a look at the Sinatra guides there for a really basic example
<Nom-> Just adapt as required to your project
spacemud has quit [Ping timeout: 272 seconds]
axhlf has joined #ruby
<felixjet> so where i do place all those files? :S
<felixjet> inside docroot?
<solidus-lake> that says INT is not defined
<Nom-> felixjet: Usually at the root of your application
<felixjet> is there any common structure for that?
<Nom-> In fact, Sinatra probably has a stock standard ru file it can generate, if there isn't one already
<felixjet> like .config.ru
<felixjet> .public/
<felixjet> etc ?
mootpointer has joined #ruby
<Nom-> I haven't used Sinatra much at all, so I'm not entirely sure... might be worth checking the Sinatra channel (if there is one)... I'm more Rails
angusiguess has quit [Ping timeout: 245 seconds]
<felixjet> i see
<felixjet> well, thanks :)
<Nom-> Check this too
<felixjet> yea i have that open
<Nom-> It suggests you can just do "ruby app.rb -s Puma" or update the configuration to always use Puma
<felixjet> but that wont use a daemon
<felixjet> is just like a basic cli command
<Nom-> You can just wrap that command up inside an init script to turn it into a daemon if you want to
browndawg has quit [Ping timeout: 245 seconds]
spacemud has joined #ruby
Al_ has quit [Quit: Al_]
hasimo-t has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 245 seconds]
hasimo-t has joined #ruby
pseudonymous has joined #ruby
<felixjet> whats the structure for a ruby app?
<felixjet> this looks so hard and confusing, im almost quitting, sigh.
hasimo-t_ has joined #ruby
<felixjet> its so hard to just place a damn file somewhere and start coding a website?
hasimo-t has quit [Read error: Connection reset by peer]
<felixjet> its like i need to place 400 files, and also create files for servers!
mulinux has joined #ruby
<felixjet> whenever i try to find something appears the fuking "gem" or "rails" word in google
<felixjet> damnit!
<Nom-> Yeah, finding something Ruby related that isn't rails related can be difficult... Rails IS Ruby in a lot of (uneducated) peoples' minds.
ananthakumaran1 has quit [Quit: Leaving.]
<felixjet> its not difficult, its fustrating...
<Nom-> What background are you coming from? It might help if I connect a few dots for you to understand the terms?
ananthakumaran has joined #ruby
<felixjet> php
<felixjet> where i simply put a index.php and i can start coding
<Nom-> Ok, so basically 'gem is like pear... allows you to manage external code modules'
chrishough has quit [Quit: chrishough]
<felixjet> yea i know that
<Nom-> Yeah, Ruby is very different from PHP in that regard
<felixjet> but i dont know how to place a "index" file and get it working in http
<Nom-> The short answer is, you don't in Ruby
jbueza has quit [Quit: Leaving.]
<felixjet> how you create a website then? :/
<v2px> eh
<Nom-> Simple answer, you use a framework such as Rails, Sinatra or others to create an application
<felixjet> well im using sinatra but still lost
<v2px> the webserver talks directly to the application
snearch has quit [Read error: Connection reset by peer]
razibog has joined #ruby
xbob has joined #ruby
artm_ has joined #ruby
<felixjet> where i do place the files? inside /htdocs ? outside?
<Nom-> Yep, so the architecture is very different from how PHP works
<felixjet> where i can find the structure and files needed?
<Nom-> You need to basically forget a lot of what you did with PHP
<Nom-> If you ever used Code Igniter or CakePHP, then you're on a slightly better grounding for working in the ruby app world
<felixjet> i didnt
<felixjet> i just hated zend with all my heart and soul
<felixjet> zend framework*
<Nom-> Yep, so the workflow is going to be pretty different... I'm going to give you a getting started video for Rails... it's not Sinatra, but it'll step you through the basics on how Rails development works
<felixjet> railsforzombies ?
<Nom-> Sinatra works in much the same way... it's an MVC framework, but a lot of the details are different
<felixjet> kk
<felixjet> but still, since thats is rails
<felixjet> and wont help me
<felixjet> where i can get a structure of the files needed for my proyect
<felixjet> what required files, where to place them
<Nom-> So you're set on using Sinatra?
<felixjet> if inside docroot or outside, etc
<felixjet> y
adambeynon has joined #ruby
<felixjet> this can help?
<Nom-> Well, as far as my basic knowledge of Sinatra goes, you just write a .rb file and then start the server using ruby myapp.rb
HecAtic has quit [Quit: Àá¼ö]
<Nom-> It will fire up on a specific port and start listening for requests
<felixjet> but. im also using puma
<felixjet> yes, looks like i need 400 things to create a website, sigh.
<Nom-> Yeah, so if you want to use Puma as the web server, you'll have to do what I said earlier... ruby myapp.rb -s Puma
<felixjet> kk
<felixjet> anyway i dont understand how u need a framework
<felixjet> with no chance to avoid it
<felixjet> i never used symphony or cakephp
<felixjet> and still made websites
rdark has joined #ruby
<Firespore> Does anyone know how to run cinch
<Firespore> on linux
<Nom-> Because that's how PHP worked
cantonic has joined #ruby
<Firespore> the cinch irc framework
<felixjet> Nom-: just a question i wont find elsewhere please
ferdev has joined #ruby
<felixjet> does the files have to be inside htdocs
<Nom-> Nope
<felixjet> or people place them outside
<Hanmac> ping shevy
<Firespore> shevy
<Firespore> shevy, can you aid me in setting up cinch? the irc bot?
<Nom-> A typical deployment for most Ruby apps would probably involve apache/nginx serving static content and just proxying requests to your Sinatra/Rails/whatever app
<Nom-> Code doesn't need to be accessible by the web server
samphippen has joined #ruby
<felixjet> like this?
<felixjet> upstream app {
<felixjet> server unix:///appdir/tmp/puma/socket;
<felixjet> }
asuka has quit [Read error: Connection reset by peer]
ferdev has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
<Firespore> Can no one help me?
<Firespore> ._.
ferdev has joined #ruby
<Nom-> Firespore: Wrong channel for that question I think
<Firespore> ..no?
<Firespore> It's a ruby irc bot..
<Nom-> felixjet: Yes...
<felixjet> lets try..
<Nom-> Firespore: That doesn't necessarily mean anyone in this channel has any knowledge of it :)
<Firespore> bean does
<Firespore> apparently
<Firespore> But I don't know if he/she is here still.
<Nom-> And I get the feeling that I'm the only one around :)
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Firespore> Can you help?
<Firespore> It's just...
<Firespore> finding the file to actually set up a simple config process
<Firespore> such as ruby install.rb
<Nom-> No, never used it... the limit of my IRC use these days is a persistent irssi session running on a EC2 instance :)
<Firespore> hm
<Firespore> Well I suppose I wouldn't need to do that since i just
<Firespore> gem install cinch
<dominikh> it's a gem. if you don't know how to install gems, learn how to. It's even more ridiculous because the readme has a section called Installation…
sayan has quit [Read error: Connection reset by peer]
<Firespore> Yeah.
<Firespore> I read it.
<Firespore> It's installed.
<Firespore> But I figured it wasn't.
<Firespore> Because I don't see where to configure it, what files to play with
<Hanmac> Firespore: whats your ruby version? do you use some kind of rvm?
<Firespore> or what file I actually use to run the bot
<dominikh> you could continue reading the readme…
mootpointer has quit [Quit: Computer has gone to sleep.]
<Firespore> i am actually looking at the readme right now dominikh
marr has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
<dominikh> then you might want to learn Ruby first if the process of copying text into an .rb file and executing it is tripping you up :)
<Firespore> Please don't shoot me
<Nom-> Yeah, I just read the page quickly... it's not a complete app -- it's a framework for building your own :)
peterhellberg has joined #ruby
<Firespore> I had a different ruby bot installed in the directory I wanted to put cinch in
* Firespore facepalms
dhruvasagar has joined #ruby
<Firespore> also
<Firespore> dominikh, what IDE would you recommend using?
xcv_ has quit [Remote host closed the connection]
tealmage has joined #ruby
<dominikh> I don't use IDEs, so no idea.
<bambanx> thanks guys for all gn
bambanx has quit [Quit: Saliendo]
<Firespore> You just use gedit or notepad, dominikh?
<dominikh> I use emacs.
mpfundstein has joined #ruby
<felixjet> worth use haml?
<felixjet> Nom-: ?:P
<Nom-> Up to you... I've used it for a couple of projects and found it good when your code is markup heavy
<Nom-> Mind was... Twitter Bootstrap
<Nom-> *mine
danslo has joined #ruby
artm has joined #ruby
artm has quit [Client Quit]
tealmage has quit [Ping timeout: 264 seconds]
nignaztic has joined #ruby
verysoftoiletppr has quit []
Ontolog has joined #ruby
<felixjet> i see
verysoftoiletppr has joined #ruby
<felixjet> im used to smarty but few time weeks ago i removed it because the load was so much higher than plain html
<felixjet> and i dont have problems with html markup
<Firespore> dominikh, forgive my stupidity.. I must WRITE the irc bot and have it use plugins provided by people
<felixjet> few weeks ago*
* Firespore facedesk
nazty has quit [Ping timeout: 252 seconds]
<solidus-lake> how come this isn't setting the main page of my rdoc to be the content of my README.md
marcgg has joined #ruby
artm_ has quit [Quit: Ex-Chat]
tonini has quit [Remote host closed the connection]
mrmist has quit [Quit: leaving]
<solidus-lake> oh, duh
<solidus-lake> how do i tell rdoc to interpret one file as markdown
louism2__ has quit [Quit: This computer has gone to sleep]
obs has joined #ruby
slainer68 has joined #ruby
Giorgio has joined #ruby
elaptics`away is now known as elaptics
<felixjet> what is http://rubygems.org/gems/app ?
<felixjet> i dont get it
sayan has joined #ruby
puppeh has quit [Ping timeout: 252 seconds]
alup has quit [Ping timeout: 246 seconds]
hbpoison has joined #ruby
<Hanmac> felixjet if you dont get it you should ignore it :P
<felixjet> k xD
<felixjet> it was on the guide im using
<felixjet> rackup command is like puma right?
<felixjet> one using puma and other not
chrishough has joined #ruby
nomenkun has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
puppeh has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
Mattx has joined #ruby
angusiguess has joined #ruby
linoge has joined #ruby
steeve has quit [Disconnected by services]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
pi3r has joined #ruby
steeve1 has joined #ruby
linoge has quit [Read error: Connection reset by peer]
|christian| has quit [Quit: Leaving]
jimeh has joined #ruby
linoge has joined #ruby
tonini has joined #ruby
Matip has quit [Ping timeout: 255 seconds]
sonda has joined #ruby
tonini has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
mootpointer has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
eAlchemist has joined #ruby
Ontolog has quit [Remote host closed the connection]
tonini has joined #ruby
mrmist has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
grzywacz has quit [Ping timeout: 245 seconds]
security is now known as fire
brhelwig has quit [Ping timeout: 245 seconds]
Al_ has joined #ruby
daniel_- has joined #ruby
tish has quit [Quit: Leaving.]
haxrbyte has joined #ruby
daniel_- has quit [Client Quit]
mulinux has quit [Quit: mulinux]
eAlchemist has quit [Ping timeout: 252 seconds]
ephemerian has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
bluOxigen has joined #ruby
arya has quit [Client Quit]
seich- has quit [Ping timeout: 264 seconds]
authenticity25 has quit [Ping timeout: 260 seconds]
blueOxigen has quit [Ping timeout: 256 seconds]
asuka has joined #ruby
eightbitraptor has joined #ruby
kevinfagan has quit [Quit: ZNC - http://znc.in]
eightbitraptor has quit [Client Quit]
hashmal has joined #ruby
sandGorgon has quit [Ping timeout: 245 seconds]
yashshah has quit [Read error: Connection reset by peer]
dEPY has joined #ruby
yashshah has joined #ruby
Rix has quit [Ping timeout: 252 seconds]
douglarek has joined #ruby
cmarques has joined #ruby
kevinfagan has joined #ruby
samphippen has joined #ruby
sk87 has joined #ruby
rickmasta has joined #ruby
verysoftoiletppr has quit []
linoge has quit [Quit: WeeChat 0.4.0]
samphippen has quit [Client Quit]
hmarr has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
samphippen has joined #ruby
seich- has joined #ruby
eykosioux has joined #ruby
decoponio has quit [Quit: Take to stop a load on my PC]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
hemanth has joined #ruby
chrisja has joined #ruby
floyd has quit [Ping timeout: 264 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
piotr_ has quit [Read error: Connection reset by peer]
statarb3 has quit [Client Quit]
axhlf has quit [Ping timeout: 255 seconds]
alup has joined #ruby
<felixjet> mmmmm
<felixjet> why when i run "rackup" appears puma server?
<felixjet> im not using "-s puma"
lewis has joined #ruby
<felixjet> its configured as default somewhere?
piotr_ has joined #ruby
<lewis> hi
nari has quit [Ping timeout: 245 seconds]
lewis has quit [Read error: Connection reset by peer]
lewis has joined #ruby
timmow has joined #ruby
lewis_ has joined #ruby
blaxter has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
rickmasta has quit [Quit: Leaving...]
robbyoconnor has quit [Excess Flood]
Amnesthesia has joined #ruby
gyre007 has joined #ruby
robbyoconnor has joined #ruby
tish has joined #ruby
gyre007 has quit [Remote host closed the connection]
<lewis_> can someone explain to me why it's no [3,3,3,1,1]
lewis has quit [Ping timeout: 245 seconds]
rickmasta has joined #ruby
mfridh has joined #ruby
grzywacz has joined #ruby
<bnagy> I think you want map
vlad_starkov has joined #ruby
<bnagy> so, you've sorted the original array. Sort will never change the elements in that array, just their order
<bnagy> make sense?
[diecast] has quit [Ping timeout: 252 seconds]
jhowarth has quit [Ping timeout: 252 seconds]
<bnagy> if you want to transform the array you use (typically) map
[diecast] has joined #ruby
aaronmcadam has joined #ruby
cmarques has quit [Ping timeout: 252 seconds]
jhowarth has joined #ruby
<lewis_> bnagy: i know, I don't understand the output still
Guedes has quit [Read error: Operation timed out]
lewis_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
<bnagy> well you've sorted it by freq
<bnagy> all the elements that are 1 have a freq of 3
<bnagy> so they will end up to the right because sort is low -> high
<lewix> exactky
gyre007 has joined #ruby
<bnagy> try arr.map {|t| freq[t]} and compare
<lewix> oh stupid me I thought I was sorting the hash key directly
<lewix> sorry
atno has quit [Ping timeout: 252 seconds]
floyd has joined #ruby
Zai00 has joined #ruby
Rix has joined #ruby
youdontmeanmuch has quit [Read error: Connection reset by peer]
rickmasta has quit [Quit: Leaving...]
chrishough has quit [Quit: chrishough]
sandGorgon has joined #ruby
<dEPY> any1 using redis in ruby?
nfk has joined #ruby
tish has quit [Read error: Connection reset by peer]
<bnagy> if you've a question, just ask
<bnagy> unless that's it, in which case, I have done, yeah
tish has joined #ruby
buscon has joined #ruby
ozgura has joined #ruby
adambeynon has joined #ruby
aef has joined #ruby
tish1 has joined #ruby
pen has quit [Remote host closed the connection]
tish has quit [Ping timeout: 240 seconds]
samuel02 has joined #ruby
<lewix> what does 1_000_000 mean
susrivas` has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<bnagy> it's just sugar
<bnagy> the dashes do nothing, they're just readability
<lewix> its more like acid
<lewix> seems like it's slower than the original too
thibauts_ has joined #ruby
alanp_ has joined #ruby
weeb1e_ has joined #ruby
<bnagy> oh yeah? Interesting. You got benchmark data?
<bnagy> I mean it makes sense that it should be slightly slower at some point, but you'd think it would get optimised out by the parser
Fenne_ has joined #ruby
<lewix> >> puts Benchmark.measure {"a"*1000000}
<lewix> 0.000000 0.000000 0.000000 ( 0.001554)
vlad_starkov has quit [Read error: Connection reset by peer]
flam__ has joined #ruby
<lewix> >> puts Benchmark.measure {"a"*1_000_000}
<lewix> 0.000000 0.000000 0.000000 ( 0.002050)
bradhe has quit [Read error: Connection reset by peer]
imami|afk has quit [Ping timeout: 255 seconds]
yashshah has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 255 seconds]
wookiehangover has quit [Ping timeout: 255 seconds]
thibauts has quit [Ping timeout: 255 seconds]
Fenne has quit [Ping timeout: 255 seconds]
davetherat has quit [Ping timeout: 260 seconds]
Sp4rKy has quit [Ping timeout: 260 seconds]
DefV has quit [Ping timeout: 260 seconds]
BombStrike has quit [Read error: Connection reset by peer]
spacemud has quit [Ping timeout: 255 seconds]
solidoodlesuppor has quit [Ping timeout: 255 seconds]
CrazyDog_ has quit [Ping timeout: 255 seconds]
Politoed has quit [Ping timeout: 255 seconds]
jmccune has quit [Ping timeout: 255 seconds]
fire has quit [Ping timeout: 260 seconds]
alanp has quit [Ping timeout: 260 seconds]
threesome has quit [Ping timeout: 260 seconds]
RORgasm has quit [Ping timeout: 260 seconds]
kandinski has quit [Ping timeout: 260 seconds]
u- has quit [Ping timeout: 260 seconds]
Sou|cutter has quit [Ping timeout: 260 seconds]
weeb1e has quit [Ping timeout: 260 seconds]
fearoffish has quit [Ping timeout: 260 seconds]
matti has quit [Ping timeout: 260 seconds]
casheew has quit [Ping timeout: 255 seconds]
jphpsf has quit [Ping timeout: 255 seconds]
TTilus has quit [Ping timeout: 255 seconds]
tr4656 has quit [Ping timeout: 255 seconds]
rakm has quit [Ping timeout: 260 seconds]
xybre has quit [Ping timeout: 260 seconds]
grn has quit [Ping timeout: 260 seconds]
moeSizlak has quit [Ping timeout: 260 seconds]
SDr has quit [Ping timeout: 255 seconds]
ping-pong has quit [Ping timeout: 255 seconds]
crodas has quit [Ping timeout: 255 seconds]
<dEPY> bnagy: my question is would you use redis ORM and why, or why not?
<Boohbah> use it for what?
NightCreature has joined #ruby
banseljaj has joined #ruby
tish1 has quit [Quit: Leaving.]
sedeki has joined #ruby
fumduq has quit [Read error: Connection reset by peer]
Demux has quit [Ping timeout: 260 seconds]
flam_ has quit [Ping timeout: 260 seconds]
eka has joined #ruby
ping-pong has joined #ruby
jmccune_ has joined #ruby
<sedeki> would you call ruby a "functional programming language"?
jmccune_ is now known as jmccune
jmccune has quit [Changing host]
jmccune has joined #ruby
matti has joined #ruby
matti has joined #ruby
matti has quit [Changing host]
tr4656 has joined #ruby
<Boohbah> sedeki: it has some functional parts
kandinski has joined #ruby
CrazyDog has joined #ruby
nmeum has quit [Ping timeout: 255 seconds]
grn has joined #ruby
rickmasta has joined #ruby
fearoffish has joined #ruby
u- has joined #ruby
casheew has joined #ruby
Soulcutter has joined #ruby
Soulcutter has quit [Changing host]
Soulcutter has joined #ruby
DefV has joined #ruby
Politoed has joined #ruby
rakm has joined #ruby
mahlon has quit [Ping timeout: 260 seconds]
<sedeki> Boohbah i've heard people call ruby a "functional programming language" and it seems the reason they call it that is simply because it supports lambdas and filter
TTilus has joined #ruby
Sp4rKy has joined #ruby
Sp4rKy has joined #ruby
Sp4rKy has quit [Changing host]
moeSizlak has joined #ruby
<eval-in> lewix => /tmp/execpad-4db117e8a11e/source-4db117e8a11e:2:in `<main>': uninitialized constant Benchmark (NameError) (http://eval.in/13049)
<eval-in> lewix => /tmp/execpad-4ba8986aa16a/source-4ba8986aa16a:2:in `<main>': uninitialized constant Benchmark (NameError) (http://eval.in/13049)
moeSizlak has quit [Changing host]
moeSizlak has joined #ruby
BombStrike has joined #ruby
RORgasm_ has joined #ruby
rdark_ has joined #ruby
vlad_starkov has joined #ruby
bradhe_ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
tish has joined #ruby
JStoker has quit [Excess Flood]
uxp has quit [Remote host closed the connection]
<sedeki> and why the hell does your irc clients fail so hard
yashshah_ has joined #ruby
nmeum has joined #ruby
fumduq- has joined #ruby
wookiehangover_ has joined #ruby
spacemud_ has joined #ruby
xybr_ has joined #ruby
spacemud_ is now known as spacemud
jphpsf has joined #ruby
uxp has joined #ruby
<Boohbah> sedeki: netsplit
atno has joined #ruby
<bnagy> dEPY: well I like redis itself, and I like antirez as a dev
pen has joined #ruby
solidoodlesuppor has joined #ruby
Demux has joined #ruby
<bnagy> for my own use I didn't need the networking / threading, and redis definitely has a learning curve
<Boohbah> sedeki: ruby is the ugly bastard child of several languages :)
techlife has quit [Ping timeout: 245 seconds]
fire has joined #ruby
<sedeki> Boohbah seems like it ;-)
<lewix> bnagy: what does user system total real refer to between
sedeki has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
moos3 has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has joined #ruby
<bnagy> lewix: well benching a single statement doesn't say much, especially with like a 500 picosecond difference
casheew has quit [Read error: Connection reset by peer]
moos3 has joined #ruby
<bnagy> cause that's just your parser hit converting 000_000 to 000000
<lewix> bnagy: what does it refer to (real) (user) and (system) exactly
<bnagy> you'd need to bench it being used in a loop or somesuch
<bnagy> lewix: same as ps
casheew has joined #ruby
<lewix> ps?
kuzushi has joined #ruby
<bnagy> time in userland, time in kernel land and wall-clock time
kofno has joined #ruby
verysoftoiletppr has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
davetherat has joined #ruby
techlife has joined #ruby
Guedes0 is now known as Guedes
Guedes has quit [Changing host]
Guedes has joined #ruby
<lewix> whats wall clock time
solars has joined #ruby
<apeiros_> that's the time of the clock at the wall
<lewix> real?
<lewix> im not sure how they time it when they say time in userland....
<solars> hey, is log4r still up to date? I need a logging lib that allows logging to graylog2, currently I'm using the 'logging' gem, since I remember log4r being outdated at some point..
<apeiros_> google, srsly :-p
<Firespore> Does anyone have any cinch irc bots
<Firespore> coded in ruby
<apeiros_> o0 who'd code a cinch irc bot in anything else than ruby?
<Firespore> LOOOOOL
<Firespore> I'm trying to find some examples of fully functioning bots
rickmasta has quit [Quit: Leaving...]
<Firespore> so far i have gotten my bot to sit in a channel
<Firespore> without any bugs
kuzushi has quit [Ping timeout: 255 seconds]
kofno has quit [Ping timeout: 252 seconds]
threesome has joined #ruby
<Firespore> would anyone happen to know
moos3 has quit [Quit: Computer has gone to sleep.]
<Firespore> about any really good cinch irc bots?
<Firespore> no?
<Firespore> fu
<apeiros_> you know that 'fu' can be read as 'fuck you'?
<apeiros_> I'd disadvise from using that when you want to just say 'fuck' :)
Emmanuel_Chanel has quit [Quit: Leaving]
pencilcheck has joined #ruby
fixl has joined #ruby
Fenne_ is now known as Fenne
noxoc has joined #ruby
rickmasta has joined #ruby
JStoker has joined #ruby
samuel02 has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
as-cii has quit [Quit: Leaving]
vlad_sta_ has joined #ruby
pen has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
tish has quit [Quit: Leaving.]
tish has joined #ruby
ttt has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
tonini has quit [Remote host closed the connection]
trend has quit [Ping timeout: 260 seconds]
xybr_ is now known as xybre
xybre has quit [Changing host]
xybre has joined #ruby
Emmanuel_Chanel has joined #ruby
<finnomenon> foo
sayan has joined #ruby
<Hanmac> bar
shock_one has joined #ruby
haxrbyte_ has joined #ruby
mklappstuhl has joined #ruby
kpshek has joined #ruby
solidus-lake has quit [Quit: Leaving.]
lewix has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
mulinux has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
kpshek has quit [Ping timeout: 255 seconds]
rickmasta has quit [Quit: Leaving...]
kornnflake_zzz is now known as kornnflake
Harlin has joined #ruby
braoru has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
beiter has joined #ruby
<Firespore> fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
<Firespore> Does anyone know how I would have a cinch bot write to a text file, every line of text someone says in a channel
danslo has quit [Quit: danslo]
<Firespore> and when it's hilighted, it spits out 2-4 random lines of text from the file
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
mikecmpbll has joined #ruby
<hoelzro> Firespore: have you looked at the examples?
mpfundstein has quit [Remote host closed the connection]
* Hanmac prefers egg samples more than examples :P
<Firespore> hoelzro, examples..
<Firespore> I have found no example of a bot doing this
<Firespore> No, I looked
sepp2k has joined #ruby
<Firespore> I can write to files and read them
<Firespore> but i don't know how to write each line in a text file tht is said in an irc channel
<hoelzro> I just looked at the first example that caught my eye
<hoelzro> in this case, google.rb
<Firespore> Yes and?
danslo has joined #ruby
<hoelzro> it seems that you listen for :message events
hbpoison has joined #ruby
samuel02 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
mercwithamouth has joined #ruby
linnea_ has quit [Remote host closed the connection]
linnea_ has joined #ruby
banghouse has quit [Remote host closed the connection]
linnea_ has quit [Remote host closed the connection]
linnea_ has joined #ruby
nari has joined #ruby
tish has quit [Quit: Leaving.]
ZachBeta has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
Spooner_ has joined #ruby
robustus has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
shock_one has quit [Read error: Operation timed out]
philipd has joined #ruby
jpfuentes2 has joined #ruby
Apcku has joined #ruby
Apcku has left #ruby [#ruby]
newUser1234 has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
palyboy has quit []
samphippen has joined #ruby
slainer68 has quit [Ping timeout: 245 seconds]
newUser1234 has quit [Remote host closed the connection]
lockweel has quit [Ping timeout: 245 seconds]
Harlin has quit [Quit: Leaving]
angusiguess has joined #ruby
danslo has quit [Quit: danslo]
slainer68 has joined #ruby
danslo has joined #ruby
samphippen has quit [Client Quit]
authenticity25 has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
yashshah_ has joined #ruby
skattyadz has joined #ruby
philipd has quit [Quit: Computer has gone to sleep.]
samphippen has joined #ruby
samphippen has quit [Client Quit]
ner0x has joined #ruby
nkr has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jonathanwallace has joined #ruby
hmarr has quit []
hmarr has joined #ruby
beiter has quit [Quit: beiter]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
hasimo-t_ has quit [Remote host closed the connection]
hybris has joined #ruby
danslo has quit [Quit: danslo]
skattyadz has quit [Ping timeout: 245 seconds]
zigomir has quit [Quit: zigomir]
vlad_starkov has quit [Remote host closed the connection]
ner0x has quit [Quit: Leaving]
skattyadz has joined #ruby
nkr has quit [Ping timeout: 256 seconds]
ArchBeOS has joined #ruby
maxmanders has joined #ruby
vickaita has joined #ruby
tvw has joined #ruby
Xeago has joined #ruby
kofno has joined #ruby
s1n4 has joined #ruby
scudelletti has joined #ruby
yshh has joined #ruby
tomzx_mac has joined #ruby
danslo has joined #ruby
mpfundstein has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (card.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago has quit [Killed (zelazny.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
ozgura has quit [Remote host closed the connection]
scudelletti is now known as Scudelletti
carraroj has quit [Ping timeout: 245 seconds]
yshh has quit [Ping timeout: 256 seconds]
ttt has joined #ruby
kofno has quit [Ping timeout: 245 seconds]
* hoelzro sighs
<hoelzro> I'm going to the US in a week
<hoelzro> glad to see my countrymen have been busy.
skattyadz has quit [Read error: Connection reset by peer]
vagmi has joined #ruby
skattyadz has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
samphippen has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
dawkirst has quit [Ping timeout: 252 seconds]
cmarques has joined #ruby
sailias has quit [Quit: Leaving.]
drumsrgr8forn8 has joined #ruby
mark_locklear has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
skattyadz has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
cisco has joined #ruby
cisco1 has joined #ruby
cisco1 has quit [Client Quit]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
skattyadz has joined #ruby
charliesome has joined #ruby
atno__ has joined #ruby
cisco has quit [Ping timeout: 240 seconds]
kornnflake is now known as kornnflake_zzz
slainer68 has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
invisime has joined #ruby
skattyadz has quit [Read error: Connection reset by peer]
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
Hanmac has quit [Ping timeout: 272 seconds]
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
kofno has joined #ruby
Hanmac has joined #ruby
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
geekbri has joined #ruby
D4T has joined #ruby
rdark_ has quit [Ping timeout: 276 seconds]
beiter has joined #ruby
anderse has quit [Quit: anderse]
rdark has joined #ruby
subr00t has joined #ruby
mahlon has joined #ruby
AndChat| has joined #ruby
Goles has quit [Ping timeout: 258 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 256 seconds]
elux has joined #ruby
nkr has joined #ruby
philipd has joined #ruby
philipd has quit [Max SendQ exceeded]
vickaita has quit [Ping timeout: 245 seconds]
vickaita has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has joined #ruby
slainer68 has joined #ruby
whowantstolivefo has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
whowantstolivefo has joined #ruby
hemanth has joined #ruby
ner0x has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
jdripper has joined #ruby
rshackleford has joined #ruby
vlad_sta_ has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
neku has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
vickaita has quit [Ping timeout: 245 seconds]
adambeynon has quit [Ping timeout: 255 seconds]
ozgura has joined #ruby
carloslopes has joined #ruby
dhruvasagar has joined #ruby
Spooner_ has quit [Remote host closed the connection]
jpcamara has joined #ruby
vlad_sta_ has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931]]
Voting has quit [Ping timeout: 256 seconds]
<subr00t> How to convert this array ["1", "2"] to this [1, 2]
<apeiros_> map + to_i
<hoelzro> >> ['1', '2'].map { |e| e.to_i }
<eval-in> hoelzro => [1, 2] (http://eval.in/13053)
<apeiros_> or map + Integer()
<hoelzro> shorthand: ['1', '2'].map(&:to_i)
<fearoffish> beat me to it :P
neku has quit [Client Quit]
<subr00t> thx guys :)
tmiller has joined #ruby
etcetera has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
etcetera has quit [Client Quit]
linoge has joined #ruby
jjbohn has joined #ruby
trend has joined #ruby
SmoothSage has joined #ruby
vickaita has joined #ruby
tealmage has joined #ruby
sambio has joined #ruby
wf2f has quit []
kornnflake_zzz is now known as kornnflake
vickaita has quit [Ping timeout: 245 seconds]
jerius has joined #ruby
sailias has joined #ruby
mootpointer has joined #ruby
Goles has joined #ruby
angusiguess has joined #ruby
mulinux has quit [Quit: mulinux]
nkr has quit [Quit: Linkinus - http://linkinus.com]
Mon_Ouie has quit [Ping timeout: 245 seconds]
ner0x has quit [Quit: Leaving]
zigomir has joined #ruby
alanp_ is now known as alanp
freeayu has joined #ruby
hmarr has quit []
samphippen has quit [Quit: Computer has gone to sleep.]
bashdy has joined #ruby
hmarr has joined #ruby
apeiros_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lockweel has joined #ruby
moos3 has joined #ruby
scudelletti__ has joined #ruby
nkr has joined #ruby
atno has quit [Disconnected by services]
atno__ is now known as atno
lockweel has quit [Client Quit]
atno__ has joined #ruby
joofsh has joined #ruby
scudelletti__ has quit [Client Quit]
apeiros_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
pac1 has quit [Quit: I got it one line of code at a time]
Amnesthesia has quit [Ping timeout: 252 seconds]
linoge has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
freeayu has quit [Ping timeout: 246 seconds]
linoge has joined #ruby
palyboy has joined #ruby
divout has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
drale2k has quit [Quit: Leaving...]
drale2k has joined #ruby
staafl has quit [Ping timeout: 245 seconds]
grzywacz has quit [Quit: :wq]
cmarques has quit [Ping timeout: 248 seconds]
mikurubeam has joined #ruby
linoge has quit [Quit: WeeChat 0.4.0]
* Gadgetoid just wrote a shoddy assembly compiler in Ruby
F1skr has joined #ruby
chendo_ has quit [Ping timeout: 256 seconds]
newUser1234 has joined #ruby
adkron has joined #ruby
chendo_ has joined #ruby
jgarvey has joined #ruby
miskander has joined #ruby
Scudelletti has quit [Ping timeout: 245 seconds]
tubbo has joined #ruby
huoxito has joined #ruby
mikurubeam has quit [Quit: +1 (Good). -1 (Evil). i (WTF?).]
yashshah_ has quit [Read error: Connection reset by peer]
Goles has quit [Quit: Out.]
trend has quit [Ping timeout: 246 seconds]
Goles has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
yashshah_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rdark has joined #ruby
deadalus has quit [Changing host]
deadalus has joined #ruby
deadalus is now known as psychouroborors
s1n4 has quit [Quit: leaving]
psychouroborors is now known as psychouroboros
psychouroboros is now known as deadalus
eykosioux has quit [Read error: Connection timed out]
eykosioux has joined #ruby
vlad_starkov has joined #ruby
drale2k has quit [Quit: Leaving...]
anonymuse has joined #ruby
anonymuse has quit [Excess Flood]
bashdy has quit []
anonymuse has joined #ruby
Spooner_ has joined #ruby
newUser1234 has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
drumsrgr8forn8 has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
kpshek has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
halfie has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
vy has joined #ruby
<vy> I am a Ruby noob trying to write a couple of Ruby lines for a Ruby-based static site generator. Could anybody help me to figure out the problem in this simple code snippet: http://codepad.org/yrpN6jAu
grenzr has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
girija_ has quit [Ping timeout: 245 seconds]
hbpoison has joined #ruby
<MrZYX> vy: you're opening a block with { and try to close it with end
<MrZYX> decide on { } or do end
<grenzr> hey guys - with Test::Unit::TestCase - is it possible to ensure the number of tests executed in a method is a certain number? I wanted to test callbacks in EventMachine, and want to ensure no tests are missed
<grenzr> nodejs nodeunit has expect(4) for example for this purpose
shevy has quit [Ping timeout: 240 seconds]
pencilcheck has quit []
pen has joined #ruby
<vy> MrZYX: Oh! That's my paste mistake, here is the correct code: http://codepad.org/pY8vyUS3 It still does not work.
linoge has joined #ruby
<MrZYX> ruby has no incrementor, use += 1
<vy> MrZYX: Thanks so much.
carraroj has joined #ruby
mikecmpbll has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby
eykosioux has quit [Read error: Connection timed out]
wobblini has quit [Ping timeout: 245 seconds]
eykosioux has joined #ruby
<MrZYX> vy: you can also write foo[:bar] = initial if foo[:bar].nil? as foo[:bar] ||= initial. Another trick is to do Hash.new(0), where 0 would be the default value for uninitalized keys
freeayu has joined #ruby
<vy> MrZYX: Checked. Thanks.
freezey has joined #ruby
bean|sleep is now known as bean
joofsh has quit [Remote host closed the connection]
sambao21 has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
vickaita_ has joined #ruby
<Hanmac> thats why incrementor does not work:
<Hanmac> >> 1++4
<eval-in> Hanmac => 5 (http://eval.in/13064)
techlife has quit [Ping timeout: 260 seconds]
wmoxam has joined #ruby
vickaita_ has quit [Client Quit]
<bean> >> [4,1].inject(:+)
<eval-in> bean => 5 (http://eval.in/13065)
linoge has left #ruby ["WeeChat 0.4.0"]
wobblini has joined #ruby
cilquirm has joined #ruby
<apeiros_> Hanmac: afaik that's valid in C too
shevy has joined #ruby
dhruvasagar has joined #ruby
tvw has quit [Ping timeout: 258 seconds]
jtharris has joined #ruby
Virunga has joined #ruby
<Hanmac> >>class Inc; def initialize(v); @v=v;end;def +@;@v+=1;self;end;end; i = Inc.new(2); p +++++++++i
<eval-in> Hanmac => #<Inc:0x406150a4 @v=11> ... (http://eval.in/13066)
<Hanmac> beat that C :P
miskander has quit [Quit: miskander]
joofsh has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
theRoUS has joined #ruby
techlife has joined #ruby
heftig has quit [Quit: Quitting]
mikurubeam has joined #ruby
heftig has joined #ruby
v0n has joined #ruby
Voting has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
<Hanmac> vy: information: there is a minmax method with is better than calling min and max extra
pkordel has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
joshman_ has joined #ruby
philipd has joined #ruby
philipd has quit [Max SendQ exceeded]
dhruvasagar has joined #ruby
v0n has quit [Quit: WeeChat 0.4.0]
adambeynon has joined #ruby
v0n has joined #ruby
freeayu has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 245 seconds]
tcstar has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
axhlf has joined #ruby
eightbitraptor has joined #ruby
banister`sleep has quit [Remote host closed the connection]
Goles has joined #ruby
jrajav has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
hogeo has quit [Read error: Connection reset by peer]
fschuindt has joined #ruby
hogeo has joined #ruby
Neomex has joined #ruby
pi3r has quit [Ping timeout: 245 seconds]
vagmi has quit [Quit: vagmi]
as-cii has joined #ruby
sandGorgon has quit [Ping timeout: 256 seconds]
Neomex has quit [Client Quit]
noobie has joined #ruby
interactionjaxsn has joined #ruby
eykosioux has quit [Read error: Connection timed out]
SuperMeo has joined #ruby
newUser1234 has joined #ruby
eykosioux has joined #ruby
justsee has quit [Quit: Leaving...]
SuperMeo has quit [Killed (idoru (Spam is off topic on freenode.))]
joofsh has quit [Remote host closed the connection]
himsin has joined #ruby
jbynum has joined #ruby
techlife has quit [Ping timeout: 246 seconds]
techlife has joined #ruby
endzyme has joined #ruby
pi3r has joined #ruby
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
_nitti has joined #ruby
mikurubeam has joined #ruby
SCommette has joined #ruby
rwilcox has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
joofsh has joined #ruby
<noobie> Hi! Can anybody help me with this? Trywing to clik on a button: end.click_button(button = '[Login1$btnLogar]'). The request seems to work but the result of my script shows: /usr/lib/ruby/1.8/mechanize/form.rb:153:in `proc_query': undefined method `query_value' for "[Login1$btnLogar]":String (NoMethodError)
vlad_starkov has joined #ruby
bean__ has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
hogeo has quit [Remote host closed the connection]
kaen has joined #ruby
<Spooner_> noobie, You are just providing the button as a string, not a button object. Try browser.button(:id => "[Login1$btnLogar]").click instead (and stop using Ruby 1.8 :D).
kirun has joined #ruby
arya has joined #ruby
ner0x has joined #ruby
Giorgio has quit [Read error: Connection reset by peer]
<Spooner_> noobie, Sorry, that should be #button_with, not #button
skattyadz has joined #ruby
<noobie> Thanks! Spooner I'll try that.
<Spooner_> noobie, agent.click_button(:id => '[Login1$btnLogar]') might work too, but try and you shall find something that works ;)
yshh has joined #ruby
<noobie> Thanks Spooner!
kornnflake is now known as kornnflake_zzz
arya has quit [Client Quit]
banister`sleep has joined #ruby
ffranz has joined #ruby
arya has joined #ruby
jasond has joined #ruby
uris has joined #ruby
codecop has quit [Quit: Išeinu]
a_a_g has joined #ruby
cmarques has joined #ruby
yacks has quit [Quit: Leaving]
adac has joined #ruby
<adac> which XML parser would you guys suggest?
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
<hoelzro> nokogiri is pretty good
<Spooner_> adac, nokogiri only :)
drumsrgr8forn8 has joined #ruby
jlast has joined #ruby
<adac> :) thank you hoelzro and Spooner_ :)
ananthakumaran has quit [Quit: Leaving.]
nomenkun has joined #ruby
freerobby has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
Morkel has quit [Quit: Morkel]
banister_ has joined #ruby
gyre007 has quit [Ping timeout: 245 seconds]
<msch> is anyone using DRb in production? i'm looking for a really quick/dirty IPC method. DRb seems to fit the bill.
baba has joined #ruby
arya has quit [Ping timeout: 248 seconds]
eykosioux has quit [Read error: Connection timed out]
fire has quit [Ping timeout: 264 seconds]
<Hanmac> what is IPC?
<msch> inter process communication
<apeiros_> Inter Process Communication
eykosioux has joined #ruby
banister`sleep has quit [Ping timeout: 240 seconds]
generalissimo has joined #ruby
r0f0 has joined #ruby
pitzips has joined #ruby
ndboost has joined #ruby
jonahR has joined #ruby
arya has joined #ruby
Sicp has joined #ruby
ner0x has quit [Remote host closed the connection]
xpen has joined #ruby
lupinstien has joined #ruby
miskander has joined #ruby
miskander has quit [Client Quit]
thams has quit [Quit: thams]
F1skr has quit [Quit: WeeChat 0.4.0]
mmitchell has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby
ferdev has quit [Ping timeout: 252 seconds]
jjbohn has joined #ruby
hbpoison has joined #ruby
xbob has quit [Quit: Leaving]
mando has joined #ruby
beiter has quit [Quit: beiter]
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
girija_ has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
ndboost has quit [Remote host closed the connection]
ner0x has joined #ruby
Stilo has joined #ruby
kaen has quit [Ping timeout: 258 seconds]
dfried has joined #ruby
yshh has quit [Read error: Connection reset by peer]
a_a_g has quit [Quit: Leaving.]
pavilionXP has quit [Remote host closed the connection]
yshh has joined #ruby
gyre007 has joined #ruby
ferdev has joined #ruby
banister_ is now known as banisterfiend
banisterfiend has quit []
banisterfiend has joined #ruby
__Big0__ has joined #ruby
yacks has joined #ruby
mercy____ has joined #ruby
<banisterfiend> if anyone wants access to screencasts and courses on codeschool, here is a 2 day pass, download to your hearts content: http://go.codeschool.com/quEk7w :)
hbpoison has quit [Ping timeout: 260 seconds]
fteem has joined #ruby
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
hbpoison has joined #ruby
mikurubeam has joined #ruby
tvw has joined #ruby
mikurubeam is now known as Guest40274
<fteem> hey, anyone with savon.rb experience? got a question...
kornnflake_zzz is now known as kornnflake
Guest40274 has quit [Client Quit]
Kemist has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Hanmac has quit [Ping timeout: 252 seconds]
s1n4 has joined #ruby
sk87 has left #ruby [#ruby]
bricker`1A has joined #ruby
mikurubeam has joined #ruby
ananthakumaran has joined #ruby
starburst has joined #ruby
mikepack has joined #ruby
wookiehangover_ is now known as wookiehangover
wookiehangover is now known as wookiehangover_
wookiehangover_ is now known as wookiehangover
fteem has quit [Remote host closed the connection]
fteem has joined #ruby
slapt has joined #ruby
bricker`LA has quit [Ping timeout: 256 seconds]
marcdel has joined #ruby
mikurubeam has quit [Client Quit]
jrajav has joined #ruby
rickmasta has joined #ruby
akashj87 has joined #ruby
joshman_ has quit [Ping timeout: 256 seconds]
pkordel has quit [Remote host closed the connection]
cosminlixy has joined #ruby
joshman_ has joined #ruby
slash_nick has quit [Disconnected by services]
j^2 has joined #ruby
chichou has joined #ruby
julian-delphiki has joined #ruby
JohnBat26 has quit [Ping timeout: 264 seconds]
stkowski_ has joined #ruby
kornnflake is now known as kornnflake_zzz
jjbohn has quit [Quit: Leaving...]
s1n4 has quit [Ping timeout: 245 seconds]
diego_k has joined #ruby
eykosioux has quit [Read error: Connection timed out]
mikurubeam has joined #ruby
eykosioux has joined #ruby
triyo has joined #ruby
mediko_ has joined #ruby
busybox43 has joined #ruby
KevinSjoberg has joined #ruby
crazysim_ has joined #ruby
<triyo> Whats the easiest way to prepend an array but without mutating the existing array object?
<triyo> *prepend to an array
puppeh has quit [Remote host closed the connection]
brandon|work has quit [Ping timeout: 252 seconds]
<apeiros_> new_ary = prepend_ary + existing_ary
cheez0r_ has joined #ruby
Liquid-- has joined #ruby
backjlack has joined #ruby
ExxKA has joined #ruby
<apeiros_> if it's a single item, then: new_ary = [prepend_item]+existing_ary
haxrbyte has joined #ruby
_nitti has quit [Remote host closed the connection]
eAlchemist has joined #ruby
<triyo> apeiros_: sorry, I should have said, to prepend an element and not another array.
tvw has quit []
teamon_ has joined #ruby
<triyo> So yes + would work, but is there a bit more of an efficient way?
predator217 has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
<apeiros_> none I'd be aware of
dhruvasagar has joined #ruby
<apeiros_> unshift is the common way, but since you don't want to mutate the array, that's out
<triyo> apeiros_: yip, thought as much.
_jc has joined #ruby
yashshah has joined #ruby
mikurubeam has quit [Ping timeout: 276 seconds]
khonk has joined #ruby
haxrbyte_ has joined #ruby
jeffreybaird has joined #ruby
<khonk> Hi!
kuzushi has joined #ruby
danneu has joined #ruby
<khonk> when i run this command sudo bundle install, i get this error: http://pastebin.com/LKYZ7UZu
lethjakman has joined #ruby
carloslopes has quit [Remote host closed the connection]
<khonk> i'm trying run this project: https://github.com/egutter/agiles_call4papers
mercy____ has quit [*.net *.split]
Sicp has quit [*.net *.split]
tcstar has quit [*.net *.split]
blaxter has quit [*.net *.split]
alup has quit [*.net *.split]
steeve1 has quit [*.net *.split]
otters has quit [*.net *.split]
teamon has quit [*.net *.split]
predator117 has quit [*.net *.split]
cam` has quit [*.net *.split]
bean has quit [*.net *.split]
stkowski has quit [*.net *.split]
crazysim has quit [*.net *.split]
cheez0r has quit [*.net *.split]
tomku has quit [*.net *.split]
mediko has quit [*.net *.split]
busybox42 has quit [*.net *.split]
diegok has quit [*.net *.split]
bluehavana has quit [*.net *.split]
kapowaz has quit [*.net *.split]
notbrent has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
cool has quit [*.net *.split]
darkc0met has quit [*.net *.split]
sebastianb has quit [*.net *.split]
stkowski_ is now known as stkowski
crazysim_ is now known as crazysim
teamon_ is now known as teamon
bean__ is now known as bean
xpen has quit [Ping timeout: 264 seconds]
Virunga has quit [Remote host closed the connection]
samphippen has joined #ruby
miskander has joined #ruby
jokke has quit [Quit: WeeChat 0.4.0]
haxrbyte has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
darkc0met has joined #ruby
jokke has joined #ruby
starburst has left #ruby [#ruby]
samphippen has quit [Client Quit]
kaen has joined #ruby
workmad3 has joined #ruby
<khonk> someone help me??
cmarques has quit [Ping timeout: 255 seconds]
techlife has quit [Ping timeout: 240 seconds]
pcarrier_ has quit []
samphippen has joined #ruby
<shevy> khonk problem is bundler sucks
<shevy> also you seem to use debian
akashj87 has quit [Ping timeout: 252 seconds]
dawkirst has quit [Ping timeout: 264 seconds]
<khonk> ubuntu.. ¬¬
kaen has quit [Max SendQ exceeded]
<shevy> ragel -v
<shevy> Ragel State Machine Compiler version 6.8 Feb 2013
miskander has quit [Client Quit]
<shevy> what is your ragel version
<shevy> ubuntu is using the same design as debian
tcstar has joined #ruby
<khonk> ok :D
kaen has joined #ruby
<shevy> what is your ragel version man
brandon|work has joined #ruby
pcarrier_ has joined #ruby
cosminlixy has left #ruby [#ruby]
<khonk> rvm list
<shevy> what
s1n4 has joined #ruby
<shevy> ragel -v
Virunga has joined #ruby
<khonk> not installed
alup has joined #ruby
<shevy> well alright
<shevy> Gem files will remain installed in /var/lib/gems/1.8/gems/RedCloth-4.2.7 for inspection.
<shevy> did you look at those things?
pskosinski has joined #ruby
<shevy> hmmm
kaen has quit [Max SendQ exceeded]
Sicp has joined #ruby
Sicp has joined #ruby
Sicp has quit [Changing host]
starburst has joined #ruby
<shevy> and you can try "gem install RedCloth"
<shevy> 4.2.9 is latest
<shevy> Fetching: RedCloth-4.2.9.gem (100%)
<shevy> Building native extensions. This could take a while...
<shevy> 1 gem installed
<shevy> Installing ri documentation for RedCloth-4.2.9...
<shevy> Successfully installed RedCloth-4.2.9
<shevy> Installing RDoc documentation for RedCloth-4.2.9..
<shevy> worked for me khonk
ExxKA has quit [Quit: This computer has gone to sleep]
<shevy> but I dont use debian and I dont use bundler
otters has joined #ruby
kaen has joined #ruby
tealmage has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 252 seconds]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<khonk> let me check
trend has joined #ruby
baroquebobcat has joined #ruby
beiter has joined #ruby
Scudelletti has joined #ruby
Mission-Critical has joined #ruby
<khonk> gem install RedCloth it works
techlife has joined #ruby
aganov has quit [Quit: aganov]
jjbohn has joined #ruby
techlife has quit [Max SendQ exceeded]
eAlchemist has quit [Remote host closed the connection]
danneu has quit [Quit: Leaving.]
eAlchemi_ has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<khonk> but i get the same error: Gem files will remain installed in /var/lib/gems/1.8/gems/RedCloth-4.2.7 for inspection.
rdark has joined #ruby
braoru has quit [Quit: Leaving]
_nitti has joined #ruby
<bean> mby don't use ruby 1.8
<bean> :)
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
chrishough has joined #ruby
akashj87 has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<khonk> so .. could you try to run this project? https://github.com/egutter/agiles_call4papers
triyo has quit []
marcdel has quit []
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
techlife has joined #ruby
geggam_wk has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
ExxKA has joined #ruby
pepper_chico has joined #ruby
s1n4 has left #ruby ["leaving"]
<bean> oh, thats some rails
mando has quit [Read error: Connection reset by peer]
<bean> you'll likely get no help here with rails
eAlchemi_ has quit [Read error: Connection reset by peer]
trend has quit [Ping timeout: 264 seconds]
predator217 has quit [Ping timeout: 248 seconds]
ozgura has quit [Remote host closed the connection]
64MACVWVK has joined #ruby
mando has joined #ruby
freerobby has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 264 seconds]
graft has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
64MACVWVK has quit [Remote host closed the connection]
<adac> trying to add to an array another array like this:
dhruvasagar has joined #ruby
<adac> xml.xpath('//atom:category').each { |node| cat.push(["#{ node['label'] }, #{ node['term'] }"]) }
elaptics is now known as elaptics`away
<adac> but this does add me the " also within the inner arrays
<adac> which I don't want
<adac> any suggestions?
eykosioux has quit [Read error: Connection timed out]
<apeiros_> eh?
<apeiros_> it adds a *string* in the inner array
<apeiros_> the "'s are the delimiter. they're not part of the string itself.
eykosioux has joined #ruby
sandGorgon has joined #ruby
Mission-Critical is now known as MissionCritical
gaahrdner has joined #ruby
<khonk> uhmmmmmmm .. XD
bigmac has joined #ruby
<starburst> hehe
endzyme has quit [Remote host closed the connection]
tagrudev has quit [Quit: yolonized]
tylersmith has joined #ruby
<adac> well I get: [["Film & Animation, Film"], ["Autos & Vehicles, Autos"], ["Music, Music"],....
<adac> as a resulting array of arrays
<apeiros_> -_-
<apeiros_> of course
<starburst> ["#{node["label"}", "#{node['term']}"]
<apeiros_> what did you expect?
buscon has quit [Quit: Leaving]
<apeiros_> puts cat[0][0] # again, the " is NOT part of the strings. it's the delimiter
Liquid-- has quit [Quit: Computer has gone to sleep.]
<apeiros_> are we confusing inspect representation with the actual data?
<adac> apeiros_, looks like that
<apeiros_> >> "foo"
<eval-in> apeiros_ => "foo" (http://eval.in/13077)
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ckrailo has joined #ruby
<apeiros_> adac: think about it, if the inspect didn't have quotes, you'd be quite confused at what you're looking
predator117 has joined #ruby
<apeiros_> especially if the string contained , and ]
BadLarry has quit [Quit: quitting]
<shevy> khonk bean - I installed RedCloth 4.2.9 with ruby 1.8.x - the ruby version is not the problem, debian and ubuntu simply suck, and khonk's environment is either missing something or has another incompatibilitiy
<shevy> *incompatibility
<apeiros_> >> class String; def inspect; to_s; end; end; [1, "2, 3"]
<eval-in> apeiros_ => [1, 2, 3] (http://eval.in/13078)
<apeiros_> adac: ^
* bean is a debian / ubuntu fan, but I don't often run ruby stuff on it
kapowaz has joined #ruby
<starburst> you need to have C build tools
<starburst> like build-essential
<starburst> to install the RedCloth gem
swingha has joined #ruby
<shevy> khonk since debian/ubuntu are responsible for your operating system, it would be their responsibility to find out why you cant compile RedCloth natively. it gives you some log messages, have a look at that, something in your environment should be wrong when you try to compile redcloth natively
<adac> apeiros_, thank you for the examples, I must think about it!
<shevy> khonk there you go, take starburst's advice
<starburst> it seems like you're blaming ubuntu/debian for your lack of knowledge
_serial_ has joined #ruby
ephemerian has left #ruby [#ruby]
bradhe_ has quit [Remote host closed the connection]
BadLarry has joined #ruby
<shevy> I?
_serial_ has quit [Read error: Connection reset by peer]
noxoc has left #ruby [#ruby]
vlad_starkov has quit [Remote host closed the connection]
Hanmac has joined #ruby
popori has joined #ruby
solars has left #ruby ["WeeChat 0.3.7"]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
Morkel has joined #ruby
_serial_ has joined #ruby
tjbiddle has joined #ruby
cheez0r_ is now known as cheez0r
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
carloslopes has joined #ruby
dawkirst has quit [Ping timeout: 258 seconds]
<khonk> *** LOCAL GEMS *** bundler (1.3.4) rake (10.0.3, 0.9.2.2) rubygems-bundler (1.1.1) rvm (1.11.3.6)
<Hanmac> khonk do you want us to feel sorry for you?
dustint has quit [Quit: Leaving]
<khonk> xD
mafolz has quit [Ping timeout: 240 seconds]
<shevy> khonk Hanmac also uses ubuntu by the way ;)
dustint has joined #ruby
<shevy> he also loves bundler
<Hanmac> yeah ... but my ruby is currently trunk :P
pygmael has quit [Quit: pygmael]
Ontolog has joined #ruby
<khonk> so you can help run this project https://github.com/egutter/agiles_call4papers
a_a_g has joined #ruby
ner0x has quit [Ping timeout: 272 seconds]
breakingthings has joined #ruby
carloslopes has quit [Remote host closed the connection]
endzyme has joined #ruby
carloslopes has joined #ruby
<shevy> where does this project advice you to use bundler?
Beoran__ has joined #ruby
<Hanmac> shevy its like compling something with "--enable-snake-oil" enabled :P
Wigflip_ has joined #ruby
<shevy> the link is funny "For project progress and stories"
<starburst> it's using rails 2.3
<shevy> I click it, but it tells me I must login first before I can read
<starburst> gem 'rails', '2.3.5'
fschuindt has quit [Quit: Computer has gone to sleep.]
a_a_g has quit [Client Quit]
jlast_ has joined #ruby
a_a_g has joined #ruby
Mon_Ouie has joined #ruby
fteem has quit [Quit: Leaving]
jlast has quit [Read error: Operation timed out]
whitedawg has joined #ruby
freerobby has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tvw has joined #ruby
Beoran_ has quit [Ping timeout: 258 seconds]
jjbohn has quit [Quit: Leaving...]
tjbiddle has quit [Quit: tjbiddle]
jlast_ has quit [Read error: Operation timed out]
rickmasta has quit [Quit: Leaving...]
jbynum has quit [Read error: Operation timed out]
arturaz has quit [Ping timeout: 252 seconds]
sonda has quit [Remote host closed the connection]
pepper_chico has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
a_a_g has quit [Quit: Leaving.]
hagzag has joined #ruby
elaptics`away is now known as elaptics
<hagzag> hi
<gf3> rubby
codenapper has joined #ruby
<khonk> ok, the problem is whit versio of RedCloth
<gf3> WAT
<khonk> i solve bundle config build.RedCloth --with-cflags=-w
<gf3> People still use RedCloth?
<khonk> sorry i for old project...
<gf3> khonk: Awww :(
cam` has joined #ruby
<khonk> i get this error: An error occurred while installing sqlite3 (1.3.3), and Bundler cannot continue.
whitedawg has quit [Quit: Leaving.]
eykosioux has quit [Read error: Connection timed out]
tealmage has joined #ruby
eykosioux has joined #ruby
<khonk> how to solve it?
brhelwig has joined #ruby
dawkirst has joined #ruby
mafolz has joined #ruby
kornnflake_zzz is now known as kornnflake
xpen has joined #ruby
chussenot has quit [Quit: chussenot]
xcv has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
<Hanmac> khonk what kind of error?
peterhellberg has quit [Remote host closed the connection]
endzyme has quit [Remote host closed the connection]
markalanevans has quit [Quit: markalanevans]
sebastianb has joined #ruby
blaxter has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
endzyme has joined #ruby
rickmasta has joined #ruby
kaen has quit [Quit: Leaving]
jlast has joined #ruby
thams has joined #ruby
<khonk> An error occurred while installing sqlite3 (1.3.3), and Bundler cannot continue. Make sure that `gem install sqlite3 -v '1.3.3'` succeeds before bundling.
pcarrier_ has quit []
backjlack has quit [Remote host closed the connection]
lupinstien has quit [Ping timeout: 264 seconds]
razibog has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> no surprise, bundler is good at failing
<shevy> but it tells you what to do no? so install sqlite first
heftig has quit [Ping timeout: 245 seconds]
<khonk> maybe the proble is whit sql lite for heroku
JonnieCache has joined #ruby
etcetera has joined #ruby
Stilo has joined #ruby
xpen has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 256 seconds]
rickmasta has quit [Quit: Leaving...]
xpen has joined #ruby
<shevy> god that looks like dependency hell
banisterfiend has quit [Remote host closed the connection]
heftig has joined #ruby
mikurubeam has joined #ruby
jetaggart has joined #ruby
<shevy> though I guess that one died 3 years ago... nobody seems to use rubyforge anymore
phantasm66 has quit [Ping timeout: 245 seconds]
<Hanmac> rubyforge melted :P
h8R has joined #ruby
heftig has quit [Client Quit]
Ontolog has quit [Remote host closed the connection]
<khonk> so... how to install :S
Wigflip_ has quit [Quit: Computer has gone to sleep.]
mengu has joined #ruby
tspike has joined #ruby
shaman42 has quit [Quit: Näihin sanoihin, näihin pelkotiloihin lopetamme lähetyksen Supon arkistoihin laittamalla foliohatun päähämme.]
shaman42 has joined #ruby
zigomir has quit [Quit: zigomir]
<shevy> khonk you are stuck with hell man
maletor has joined #ruby
<shevy> you use awful software (bundler), you must manage lots of dependencies and bundler fails for you, debian modifies (and hates) gem
<shevy> khonk you can try to solve your sqlite problem first
<shevy> go install sqlite, make sure it works, then install the ruby gem for sqlite
<shevy> don't continue until you have ensured that it works
bradleyprice has joined #ruby
floyd has quit [Quit: Leaving.]
<Hanmac> when you install sqlite pick the dev package
akashj87 has quit []
sailias has joined #ruby
<shevy> yeah, you must uncripple the debian packages
zeade has joined #ruby
axl_ has joined #ruby
Voodoofish430 has joined #ruby
pencilcheck has joined #ruby
<MrZYX> shevy: actually khonk skipped the real error message and that's just bundlers generic "something went wrong" that comes after it
<MrZYX> khonk: I bet you're missing the dev headers for sqlite
<khonk> yes how to install headers.. :/
<MrZYX> but that's just guessing, as said the real error is before that message
<Hanmac> shevy its not "crippeld" its parted into usefull subsections ... for sample when you install the dev package you may not need the -doc package, or you want the lib and the -doc package but not the -dev package
artofraw has joined #ruby
<khonk> when i try to run ruby install.rb
<MrZYX> khonk: that highly depends on the distribution you use
jekotia has joined #ruby
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<Hanmac> khonk i said "when you install sqlite pick the dev package" ... there should be some kind of libsqlite3-dev or sqlite3-dev or something like that
<khonk> ok
ozgura has joined #ruby
pen has quit [Ping timeout: 272 seconds]
kornnflake is now known as kornnflake_zzz
bigoldrock has joined #ruby
apeiros_ has quit [Remote host closed the connection]
akashj87 has joined #ruby
himsin has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
hse-hoens has joined #ruby
beiter has quit [Quit: beiter]
rickmasta has joined #ruby
thecreators has joined #ruby
adamholt has quit [Read error: Operation timed out]
palyboy has quit [Read error: Operation timed out]
mfridh has quit [Read error: Connection reset by peer]
palyboy has joined #ruby
<khonk> yes its works! libsqlite3-dev
<khonk> it*
arya has quit [Ping timeout: 248 seconds]
mikurubeam has joined #ruby
<khonk> Your bundle is complete! It was installed into ./vendor Post-install message from sqlite3-ruby:
heftig has joined #ruby
thecreators has quit [Remote host closed the connection]
mfridh has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
sambio has quit [Read error: Connection reset by peer]
sambio_ has joined #ruby
binaryplease has joined #ruby
adamholt has joined #ruby
chrishough has quit [Quit: chrishough]
* Hanmac knows its ubuntu :P
greenarrow has quit [Read error: Operation timed out]
hoens has quit [Ping timeout: 256 seconds]
daniel_hinojosa has joined #ruby
jetaggart has quit [Remote host closed the connection]
Al_ has quit [Ping timeout: 252 seconds]
greenarrow has joined #ruby
sandGorgon has quit [Ping timeout: 240 seconds]
Al_ has joined #ruby
arya has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
carlyle has joined #ruby
Dwarf has quit [*.net *.split]
eliasp has quit [*.net *.split]
LBRapid has quit [*.net *.split]
lele has quit [*.net *.split]
Hien has quit [*.net *.split]
swistak35 has quit [*.net *.split]
lupine has quit [*.net *.split]
ohcibi has quit [*.net *.split]
sonne has quit [*.net *.split]
nuba has quit [*.net *.split]
trent1 has quit [*.net *.split]
ereslibre has quit [*.net *.split]
tils has quit [*.net *.split]
tils has joined #ruby
nuba has joined #ruby
lele has joined #ruby
LBRapid has joined #ruby
swistak35 has joined #ruby
sandGorgon has joined #ruby
trent1 has joined #ruby
RORgasm_ is now known as RORgasm
tjbiddle has joined #ruby
a_a_g has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
AlSquirikou is now known as AlSquire
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
ereslibre has joined #ruby
ohcibi has joined #ruby
axl_ has left #ruby [#ruby]
eliasp has joined #ruby
chrishough has joined #ruby
kornnflake_zzz is now known as kornnflake
jgrevich has joined #ruby
Asher2 has quit [Quit: Leaving.]
<shevy> Hanmac there is no easy way to define "I want to install everything from a given package foo", so yes, you must know the name before you can uncripple it. it is crippled because if you do not uncripple it, you lack necessary files from the package. if you compile a program via GNU Autoconfigure into a directory/location via --prefix, you get the full 100% of the installation, without having to do anything fu
<shevy> rther (provided that the compilation/installation works without error)
Asher has joined #ruby
adac has quit [Quit: Leaving]
Hien has joined #ruby
eAlchemi_ has joined #ruby
<shevy> there is libreadline5 and libreadline5-dev and libreadline6 and libreadline6-dev. there is no specific version associated with that alone
dhruvasagar has joined #ruby
<shevy> could be readline-5.1 or readline-5.2
Quebert has joined #ruby
rdark has quit [Ping timeout: 256 seconds]
stef_204 has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<shevy> when I install from source, I could install readline-5.2 and readline-6.2. If I installed into a versioned standalone directory, I can decide to remove the include/ directory there (which would be -dev)
soot has joined #ruby
_serial_ has quit [Quit: Ex-Chat]
soot has left #ruby [#ruby]
lupinstien has joined #ruby
<starburst> using rvm would completely solve your problems
<starburst> just saying
<shevy> whose problems?
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
axl_ has joined #ruby
pavilionXP has joined #ruby
Jrz has joined #ruby
<shevy> curious how you quiet down :>
<Hanmac> readline5 and readline6 have different licenses ... thats why ... (ruby before 1.9.3 are not alowed to build against readline6 because of licensce)
shirokuro11 has joined #ruby
banisterfiend has joined #ruby
lupine has joined #ruby
Virunga has quit [Remote host closed the connection]
eAlchemi_ has quit [Ping timeout: 248 seconds]
khonk has quit [Ping timeout: 245 seconds]
sonne has joined #ruby
tish has joined #ruby
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
rippa has joined #ruby
<Hanmac> there was some kind of problem when you want to compile your ruby against readline and openssl (i mean yeah you can do it but it was not legal :P)
tealmage has quit [Remote host closed the connection]
psyprus has quit [Changing host]
psyprus has joined #ruby
Xeago has joined #ruby
freerobby has quit [Quit: Leaving.]
jdolitsky has joined #ruby
gaahrdner has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
sambao21 has joined #ruby
xbob has joined #ruby
tish has quit [Ping timeout: 245 seconds]
failshell has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
mahmoudimus has joined #ruby
pi3r has quit [Quit: Leaving]
mikurubeam has joined #ruby
eykosioux has quit [Read error: Connection timed out]
Morkel has quit [Quit: Morkel]
eykosioux has joined #ruby
backjlack has joined #ruby
Virunga has joined #ruby
DrShoggoth has joined #ruby
eAlchemist has joined #ruby
brhelwig has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 256 seconds]
rdark has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
locriani has joined #ruby
DrShoggoth has quit [Max SendQ exceeded]
sailias has joined #ruby
mikurubeam has quit [Client Quit]
shirokuro11 has quit [Remote host closed the connection]
Artheist has joined #ruby
chussenot has joined #ruby
tommyvyo_ has joined #ruby
workmad3 has joined #ruby
nomenkun has quit [Remote host closed the connection]
etcetera has quit []
tommyvyo has quit [Read error: Connection reset by peer]
tommyvyo_ is now known as tommyvyo
rupee has joined #ruby
sambao21 has joined #ruby
Virunga has quit [Remote host closed the connection]
as-cii has quit [Quit: Leaving]
kornnflake is now known as kornnflake_zzz
razibog has joined #ruby
moted has quit [Remote host closed the connection]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
rippa has joined #ruby
apeiros_ has joined #ruby
etcetera has joined #ruby
moted has joined #ruby
twoism has joined #ruby
mpfundstein has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
pseudonymous has quit [Ping timeout: 252 seconds]
sepp2k has quit [Ping timeout: 245 seconds]
gorozco1 has joined #ruby
lewix_ has joined #ruby
mattbl has joined #ruby
girija_ has quit [Read error: Connection reset by peer]
gorozco1 is now known as patux
rdark has quit [Ping timeout: 240 seconds]
xcv has quit [Remote host closed the connection]
jpcamara has quit [Quit: jpcamara]
xcv has joined #ruby
xpen_ has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
yashshah has joined #ruby
mklappstuhl has quit [Ping timeout: 264 seconds]
S1kx has quit [Ping timeout: 264 seconds]
rdark has joined #ruby
girija has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
brianpWins has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
xpen has quit [Ping timeout: 276 seconds]
_jc has quit [Quit: Textual IRC Client: www.textualapp.com]
robbyoconnor has joined #ruby
zmike123 has joined #ruby
hbpoison has joined #ruby
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
<shevy> today I shall finish my ultra super huge colour module in ruby
drumsrgr1 has joined #ruby
c0rn has joined #ruby
mockra has joined #ruby
<JonnieCache> colour module?
jjbohn has joined #ruby
<JonnieCache> firstly, i didnt think you were .uk
<JonnieCache> and secondly wtf is a colour module
<shevy> yeah, kinda, or more a project to integrate them all
<shevy> we had to learn UK english in school :(
jonahR has quit [Ping timeout: 260 seconds]
bluehavana has joined #ruby
notbrent has joined #ruby
<shevy> JonnieCache, that is a good question. right now I use about 3 different small projects for colour related stuff. mostly, ansi colour output on the console, but also html colour codes + R,G,B values
<Hanmac> we learned both UK and US english ... i dont prefer one, but some of UK works are looks like hidden france
silasdavis has joined #ruby
steeve1 has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
zmike123 has quit [Client Quit]
a_a_g has quit [Quit: Leaving.]
Vainoharhainen has quit [Quit: Leaving...]
<JonnieCache> Hanmac: thats pretty much correct. uk english has lots of french words, often alongside the older anglo-saxon ones
jjbohn has quit [Client Quit]
* Hanmac is from saxony :P
Ontolog has joined #ruby
<shevy> thing is the US english is kinda ubiquitous
dr_bob has left #ruby [#ruby]
<shevy> UK english is cooler all around, but mass usage kinda beats excellence here
_nitti_ has joined #ruby
Vainoharhainen has joined #ruby
<JonnieCache> i mostly use color now
cool has joined #ruby
<JonnieCache> its just easier
jonahR has joined #ruby
skattyadz has quit [Quit: skattyadz]
tomku has joined #ruby
<shevy> you mean for all 'ou' words? armour vs. armor ?
<JonnieCache> no just color specifically
<JonnieCache> because of css :)
<Hanmac> for sample i dont like the "colour" word ... i mean why does it need an "u" inside? in some years or more does it change to "coluor" and then to "coluur" and then to "culuur" and then "u" has killed all "o"s and the last ones are living in reservats?
<shevy> yeah, that is another good thing about the US english, it is often much simpler. for example in music
skattyadz has joined #ruby
<shevy> the US call it a "half note", and the UK calls it a "minim"
Ontolog_ has joined #ruby
_nitti has quit [Ping timeout: 272 seconds]
<JonnieCache> arrgh yeah i hate that
<JonnieCache> i might have learned music in school if it werent for all that "minim" "crotchet" stuff
<Hanmac> a "minim" .. is that some kind of "mimic"?
starburst has left #ruby [#ruby]
<JonnieCache> its probably italian
xcv has quit [Ping timeout: 258 seconds]
<shevy> Hanmac no idea... may be from the latin nomenclature for music back then
<shevy> I really dont know when they first used that nomenclature
jdripper has quit [Ping timeout: 245 seconds]
Vainoharhainen has quit [Client Quit]
<bean> shevy: colors?! :O
jpcamara has joined #ruby
<Hanmac> but the UK series are often better than US ones
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<bean> my friend made that module
eykosioux has quit [Read error: Connection timed out]
<bean> so silly
NiteRain has joined #ruby
<bean> puts "#{GRAY}my gray string#{NC}"
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<shevy> I understand what GRAY means
<shevy> but what is NC?
<shevy> bean, I kinda use something quite similar
kornnflake_zzz is now known as kornnflake
Dwarf has joined #ruby
<bean> NC is no color
<shevy> I also switched to use methods in addition to that though
Ontolog has quit [Ping timeout: 256 seconds]
<shevy> ah ok
<bean> to reset it
<bean> :)
<shevy> yeah
eykosioux has joined #ruby
pepper_chico has joined #ruby
<shevy> I use rev() for revert() to revert to the initial state for that, but it is basically the same as the hardcoded ansi escape codes
<bean> nice
jbueza has joined #ruby
brhelwig has joined #ruby
chussenot has quit [Quit: chussenot]
jjbohn has joined #ruby
bricker`1A has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 276 seconds]
swex_ has joined #ruby
swex has quit [Ping timeout: 245 seconds]
trend has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.0]
tylersmith has quit [Quit: tylersmith]
codenapper has quit [Quit: Leaving...]
mafolz has quit [Quit: mafolz]
tealmage has joined #ruby
Virunga has joined #ruby
chussenot has joined #ruby
eldariof has joined #ruby
mohits has joined #ruby
apeiros_ has quit [Remote host closed the connection]
mohits has quit [Remote host closed the connection]
xcv has joined #ruby
eightbitraptor has quit [Remote host closed the connection]
himsin has joined #ruby
ramblex has joined #ruby
KellyLSB has quit [Ping timeout: 252 seconds]
_nitti_ has quit [Remote host closed the connection]
carl_zulauf has quit [Remote host closed the connection]
rickmasta has quit [Quit: Leaving...]
JonnieCache has quit [Ping timeout: 255 seconds]
grenzr has quit [Ping timeout: 252 seconds]
jdripper has joined #ruby
apeiros_ has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
jonahR has quit [Quit: jonahR]
vlad_starkov has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
Stilo has joined #ruby
chussenot has quit [Quit: chussenot]
pepper_chico has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has joined #ruby
pygmael has joined #ruby
woolite64 has joined #ruby
ozgura has quit [Remote host closed the connection]
tish has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
forrest has joined #ruby
KellyLSB has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
jdunck has joined #ruby
sambio_ has quit [Ping timeout: 256 seconds]
BigFatFatty has joined #ruby
jpcamara has quit [Ping timeout: 245 seconds]
alvaro_o has joined #ruby
mrsolo has joined #ruby
jpcamara has joined #ruby
girija has quit [Ping timeout: 264 seconds]
graft has quit [Ping timeout: 264 seconds]
scudelletti__ has joined #ruby
mercwithamouth has joined #ruby
jdunck has quit [Ping timeout: 245 seconds]
pygmael has quit [Ping timeout: 264 seconds]
QKO has quit [Changing host]
QKO has joined #ruby
jjbohn has quit [Quit: Leaving...]
nari has quit [Ping timeout: 264 seconds]
danman has joined #ruby
slainer68 has quit [Remote host closed the connection]
jpcamara_ has joined #ruby
Scudelletti has quit [Quit: Leaving]
pandawarrior has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
jpcamara has quit [Ping timeout: 276 seconds]
kirun_ has joined #ruby
<pandawarrior> using rspec to test a class that has a dependency on another class injected at initialization
jrajav has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
pepper_chico has joined #ruby
danneu has joined #ruby
<pandawarrior> in rspec how can i test this without testing the object i'm dependent upon?
jdunck has joined #ruby
<Spooner_> pandawarrior, Make a pure mock object?
sk87 has joined #ruby
<pandawarrior> i used a double and a mock
shock_one has joined #ruby
hybris has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<pandawarrior> but when i say the dependent object should return something
<pandawarrior> the tests pass even if i put in something the real object could never return
sambao21 has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 252 seconds]
<pandawarrior> i guess my question is, what am i testing?
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
jeremyb_ has joined #ruby
<pandawarrior> the relationship(dependency) or the return value?
xcv has quit [Read error: Connection reset by peer]
xcv_ has joined #ruby
kirun has quit [Ping timeout: 256 seconds]
fermion has joined #ruby
norm has quit [Quit: norm]
<jeremyb_> i want to be able to accept either string or an array of strings as input. what's the best way to magically ensure that bare strings are wrapped in an Array?
Al_ has quit [Quit: Al_]
<jeremyb_> seems what i was doing in 1.8.x no longer works in 1.9.1
<Spooner_> jeremyb_, strings = Array(string_or_array)
xcv_ has quit [Remote host closed the connection]
xcv has joined #ruby
brhelwig_ has joined #ruby
<Spooner_> jeremyb_, Why use 1.9.1? It was pretty crappy.
<halfie> is the pragmatic ruby book suitable enough for beginners? I want to get up to speed pretty quickly.
<halfie> (1 week or so)
SiliconDon has joined #ruby
<jeremyb_> Spooner_: that's apparently what wheezy has
<jeremyb_> Spooner_: anyway, it's just futureproofing for an eventual upgrade. i assume this system is staying on 1.8.7 for some time
sk87 has quit [Ping timeout: 260 seconds]
<lewix_> do you know a good ressource to learn design patterns and algorithm in ruby
<Spooner_> jeremyb_, Yeah and 1.8.7 is about to reach end of life.
interactionjaxsn has quit [Remote host closed the connection]
lewix_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
brhelwig has quit [Ping timeout: 258 seconds]
<Spooner_> halfie, That is fine. You can get the old edition as a free PDF if you want to see how it pitches the info.
KellyLSB has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
<jeremyb_> Spooner_: this is an ubuntu precise system. (fwiw, this is for puppet). i doubt that anyone's going to install a custom package. they're just going to keep using the system ruby
<halfie> Spooner_, I went with the beta version of fourth edition since I am running Ruby 2.0
io_syl has joined #ruby
<Spooner_> jeremyb_, package managers often say 1.9.1 when they mean 1.9.x - 1.9.1 is the compatibility version, not necessarily the actual version.
silasdavis has quit [Quit: Leaving]
skattyadz has quit [Quit: skattyadz]
maxmanders has quit [Quit: Computer has gone to sleep.]
speakingcode-wor has joined #ruby
<Spooner_> Still much better just using RVM/rbenv to install so you get access to whatever you need.
<halfie> Ruby code scares me (first encounters). I did not have similar problem with Python :)
<halfie> Spooner_, using rvm here, installed 2.0 from there.
<jeremyb_> Spooner_: Installed: 1.9.3.194-8.1
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
<Spooner_> jeremyb_, That is fine. Not quite 100% up to date, but I'm sure it is fine.
TMM has quit [Quit: Bye]
jlast has joined #ruby
interactionjaxsn has joined #ruby
Al_ has joined #ruby
graft has quit [Quit: Lost terminal]
<Spooner_> halfie a lot of people rate The Well-grounded Rubyist, though I haven't seen it.
<halfie> I have had good experience (in general) with pragmatic series of books. Will check that one out too.
Al_ has quit [Client Quit]
<Spooner_> I learned with the second edition pickaxe book. Thought it was great, but that was a long time ago now!
pepper_chico has quit [Quit: Computer has gone to sleep.]
<speakingcode-wor> i've got the pickaxe book and the well grounded rubyist here at work
skattyadz has joined #ruby
<speakingcode-wor> both are pretty good
cmarques has joined #ruby
QKO has quit [Ping timeout: 256 seconds]
skattyadz has quit [Client Quit]
haxrbyte_ has quit [Read error: Connection reset by peer]
<bigmac> any one ever use packetfu lib?
sandGorgon has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 260 seconds]
QKO has joined #ruby
KellyLSB has joined #ruby
whitedawg has joined #ruby
sandGorgon has joined #ruby
<samuel02> does anyone know of a gem that will help me validate an ics file?
Virunga is now known as LennyLinux
slapt has quit [Ping timeout: 276 seconds]
_nitti has joined #ruby
cupakromer has left #ruby [#ruby]
skattyadz has joined #ruby
Morkel has joined #ruby
tealmage has quit [Remote host closed the connection]
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
Zai00 has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
eykosioux has quit [Remote host closed the connection]
skattyadz has quit [Client Quit]
toekutr has joined #ruby
<halfie> bigmac, I have used it once but I mostly did copy-paste job then.
<jeremyb_> Spooner_: fyi, here's the patch: https://gerrit.wikimedia.org/r/gitweb?p=operations/puppet.git;a=commitdiff;h=f9cdc960e759e8e2901f304cb9e5bcb98695831d
xcv_ has joined #ruby
SiliconDon has quit []
tspike has quit [Ping timeout: 276 seconds]
pkrnj has joined #ruby
jonathanwallace has joined #ruby
<Spooner_> jeremyb_, Patch? Oh right, for Array().
obs has quit [Quit: Konversation terminated!]
srg_ has joined #ruby
wallerdev has joined #ruby
elaptics is now known as elaptics`away
brhelwig_ has quit [Remote host closed the connection]
<wobblini> halfie, Spooner_ /me wrote The Well-Grounded Rubyist and recommends it highly :-)
* wobblini is trying to learn to be better at marketing and self-promotion :-)
workmad3 has quit [Ping timeout: 255 seconds]
aedorn has joined #ruby
<halfie> wobblini, cool :), will check it out.
<bigmac> halfie: i was thinking maybe i can inject a packet on to the wire (freenode #ruby hi world example)
Zai00 has joined #ruby
rezzack has joined #ruby
lupinstien has quit [Remote host closed the connection]
sandGorgon has quit [Ping timeout: 258 seconds]
xcv has quit [Ping timeout: 264 seconds]
<Spooner_> wobblini, You should give copies away to everyone in #ruby then :P
danneu1 has joined #ruby
danneu1 has quit [Client Quit]
mattbl has quit [Quit: This computer has gone to sleep]
seejohnrun has joined #ruby
<shevy> cool
<shevy> we have a celebrity here
<wobblini> Spooner_: that wouldn't be marketing -- that would be un-marketing :-)
<shevy> KILL HIM!!!!
<shevy> sorry :D
srg_ has quit [Client Quit]
* wobblini sets the FBI on shevy
<shevy> ack
<wobblini> i would normally be dblack but someone else got that nick unregistered and registered it to himself :-(
<Spooner_> wobblini, You saw through my ruse. Oh well, worth a try!
altivec has joined #ruby
<wobblini> i'm also sometimes realDAB. i am a man without a nick.
SiliconDon has joined #ruby
<lewix> Spooner_: that's why i told you last week the well grounded rubyist. thumbs up
<halfie> bigmac, have you looked at the bundled examples. they are super useful.
<lewix> shevy: do you know good ressources to learn algorithm and design patterns
postmodern has joined #ruby
<halfie> I learn to detect duplicate MAC addresses from reading examples included with packetfu
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
nga4 has joined #ruby
jbueza has quit [Quit: Leaving.]
lupinstien has joined #ruby
<bigmac> i am at the moment... looks like you have to build the packet and then inject... maybe i question is about this irc protocol... can i inject a packet on a Already established connection?
jbueza has joined #ruby
<shevy> lewix not really, most of these seemed quite complicated to me
cearls has joined #ruby
Coolhand has quit [Remote host closed the connection]
<strtok> bigmac: not really
<shevy> wobblini you always pick up a new nick, then explain this with other people ... :P
arturaz has joined #ruby
<shevy> I am the real dblack!
<wobblini> shevy: heh
<bigmac> you would have to guess a sequence number? or something?
<halfie> bigmac, no it is hard to do so. maybe you can do MiTM attacks with ettercap (not very hard)
<wobblini> shevy: it's an ongoing identity crisis
<lewix> shevy: most computer science student know it...have you never been asked data structures and algorithms in interviews
SiliconDon has quit [Client Quit]
carloslopes has quit [Remote host closed the connection]
mattbl has joined #ruby
<halfie> there must be an easier way to do what you are doing, some IRC library / bot in written in ruby?
arturaz has quit [Client Quit]
jdripper has quit [Quit: Leaving.]
kirun_ has quit [Quit: Client exiting]
bitcrave has joined #ruby
SiliconDon has joined #ruby
<shevy> lewix ah, I am not a programmer, it's more a hobby still, I came from biology/genetics/chemistry
sayan has quit [Read error: Connection reset by peer]
<bigmac> well i didnt want to write a client, but maybe learn what it takes to inject
SiliconDon has quit [Remote host closed the connection]
sk87 has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
SiliconDon has joined #ruby
<shevy> lewix what I want to do one day is to program via biological cells
SiliconDon has quit [Remote host closed the connection]
faulkner has joined #ruby
SiliconDon has joined #ruby
xcv_ has quit [Remote host closed the connection]
subr00t has left #ruby [#ruby]
xcv has joined #ruby
<lewix> shevy: you should look into java
tent4051 has joined #ruby
altivec has quit [Quit: Computer has gone to sleep.]
<lewix> any computer science guy here ? I need a design pattern algorithm book for interviews
_nitti has quit [Ping timeout: 256 seconds]
jpcamara has joined #ruby
<tent4051> why is rvm always forgetting that bundler is installed? what am i doing wrong? 'gem install bundler' is successful, then running 'bundle install' on my project, it says its not installed!
xardas has joined #ruby
<tent4051> (the end of my $PATH is $HOME/.rvm/bin)
molok_ has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
jpcamara_ has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Ping timeout: 260 seconds]
<tent4051> gem bundler is not installed, but even `which bundle` spits out the path to the binary!
jpcamara_ has joined #ruby
_nitti has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
codecop has joined #ruby
jonathanwallace has joined #ruby
CamonZ has joined #ruby
sk87 has quit [Read error: Connection reset by peer]
<Hanmac> thats why i do neither use rvm nor bundler :P
jpcamara has quit [Ping timeout: 264 seconds]
sk87 has joined #ruby
<tent4051> i'm asking for help getting it working
vlad_starkov has joined #ruby
<tent4051> at first they both seemed to have their strengths but there must be something simple i am missing
<Hanmac> maybe problem with rvm gemsets?
s1n4 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jlast has quit [Remote host closed the connection]
<shevy> tent4051 well, Hanmac has a good point, both can lead to extra problems
workmad3 has joined #ruby
slapt has joined #ruby
<tent4051> i have a file called gemsets/global.gems and it even has bundler listed there (as well as rubygems-bundler)
bean has quit [Quit: Computer has gone to sleep.]
Aiur has joined #ruby
SiliconDon has quit [Quit: SiliconDon]
xcv has quit [Ping timeout: 252 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
BizarreCake has quit [Ping timeout: 264 seconds]
<tent4051> i'm trying to install redmine as per the instructions http://railsguides.net/2012/04/28/how-to-deploy-redmine-to-heroku/
<tent4051> if i had a clue how to get around using bundle i would
tspike has joined #ruby
skattyadz has joined #ruby
slapt has quit [Read error: Connection reset by peer]
<shevy> I dunno
<shevy> I just dont use it myself, same with rvm and rbenv
faulkner has quit [Quit: boo.]
lethjakman has quit [Quit: WeeChat 0.3.9]
<shevy> I use gems and compile different ruby versions from source into standalone directories
<shevy> the currently in-use ruby is pointed at via a symlink to that directory
ozgura has joined #ruby
<shevy> (I do this for all programs by the way, not only ruby. RVM does it only for ruby, in the $HOME directory by default)
noesis has quit [Ping timeout: 264 seconds]
icole has joined #ruby
Jrz has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Tricon has joined #ruby
reset has joined #ruby
<tent4051> now i'm getting $ bundle
<tent4051> /usr/bin/env: ruby: No such file or directory
<shevy> hehehe
skattyadz has quit [Ping timeout: 256 seconds]
<shevy> that could be a bogus error though
freerobby has quit [Quit: Leaving.]
<tent4051> i'm glad it tells me which script is causing that, and i'm especially glad that running just $ env ruby works just fine. oh its not bogus. its a real error.
<shevy> if other .rb scripts of you can find ruby with that shebang
noobie has quit [Quit: [EOF]]
wobblini has quit [Ping timeout: 260 seconds]
<shevy> so all your scripts with that shebang dont work?
sayan has joined #ruby
Zai00 has quit [Quit: Zai00]
BizarreCake has joined #ruby
<tent4051> no, a script that uses that works just fine
<shevy> then it can not be a real error because "env" found the ruby binary
jonahR has joined #ruby
<shevy> perhaps a -w flag is used somewhere
<tent4051> what's that do
m8 has joined #ruby
tspike has quit [Ping timeout: 245 seconds]
<shevy> -w should enable all sorts of warning
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
<shevy> but via env it does not always work easily
cilquirm has quit [Quit: cilquirm]
jjbohn has joined #ruby
<Hanmac> PS: you should NOT run gems with -d flag ... it could be totaly "bogus" :D
nomenkun has joined #ruby
arya has quit [Ping timeout: 248 seconds]
tmiller has left #ruby [#ruby]
<shevy> sometimes when you compile via GNU autoconfigure, it tells you that "gtk is not working properly", but when you then look at config.log it may tell you that "xrender is not working". other programs using gtk would just work fine, and the real error would be related to xrender, and not gtk
workmad3 has quit [Ping timeout: 252 seconds]
Liquid-- has joined #ruby
colonolGron has joined #ruby
insulator has joined #ruby
<tent4051> is bundle supposed to be a bash script? wtf?
ehlu has left #ruby [#ruby]
Raboo has joined #ruby
picca3 has joined #ruby
<shevy> :D
insulator has quit [Remote host closed the connection]
<shevy> I dont even think "env" should exist at all
rdark has quit [Quit: leaving]
mark_locklear has quit [Quit: Leaving]
<tent4051> ruby is just so great. i spend 1 hour trying to fix a problem, then 2, then 3. get me a gun.
chrishough has quit [Ping timeout: 255 seconds]
<tent4051> ``rm -rf ~/.rvm''
<breakingthings> tent4051 ur doin it rong
<shevy> your problem for using rvm and bundler tent4051
timmow has quit [Ping timeout: 252 seconds]
chrishough has joined #ruby
<tent4051> yeah i'll figure out a better way then
picca3 has quit [Client Quit]
ryanf has joined #ruby
ferdev has quit [Quit: ferdev]
<shevy> rvm should not have existed, and the little that bundler solves should be integrated into gems
<breakingthings> bundlers nice tho
<breakingthings> rvm is just crap
<shevy> hehe
freerobby has joined #ruby
<tent4051> what's so wrong with rvm?
<shevy> breakingthings what about combining the two, mandatory? :)
RushingFitness has joined #ruby
<breakingthings> shevy: combining the two sounds like pain
<shevy> ruby 2.1 to require rvm+bundler as part of its standard library
<breakingthings> rip ruby 2.1
<shevy> hehehe
<shevy> well
axhlf has quit [Remote host closed the connection]
RushingFitness has quit [Client Quit]
<shevy> perhaps it could be improved, when it becomes the official standard
<shevy> like how gem is now auto-required, in 1.8.x you still must do require 'rubygems' manually
<atmosx> shevy!!!!
freerobby has quit [Client Quit]
<shevy> hey atmosx, still busy with exams?
<atmosx> I have biochem on Friday
freerobby has joined #ruby
<shevy> cool!
<atmosx> it's a busy period.
whitedawg has quit [Quit: Leaving.]
<shevy> you have to memorize various cellular metabolic pathways for that?
<atmosx> Hahaha I didn't study a lot and I'm turnking mad... like I study all day long :-P univ/library
angusigu1ss has joined #ruby
<shevy> an idiotic professor said "you must know 10 pathways in detail to achieve 50% of the points"
hbpoison has joined #ruby
<atmosx> no thank god she only needs krebs cycle
<shevy> ok good that would be one cycle
<atmosx> and some minor like urine production and glycolysis etc.
seejohnr1n has joined #ruby
LennyLinux has quit [Remote host closed the connection]
<shevy> "describe the uric acid pathway", I hate that one
seejohnrun has quit [Ping timeout: 252 seconds]
angusiguess has quit [Disconnected by services]
<atmosx> hmmm yeah, well it would be simpler than that.
angusigu1ss is now known as angusiguess
<shevy> ah, so you have to know that one too ;)
Coolhand has joined #ruby
<atmosx> She's quite nice and she has a very particular way of examination. I might just make sure I pass the written part now and go for oral exam next time
tymat has joined #ruby
<shevy> oh
<atmosx> we'll see. I have also a phytochem little quiz the same day... butthat's easier.
SiliconDon has joined #ruby
<shevy> you have to do both written + oral?
<atmosx> yeah
<shevy> we were luckier, only written
sambao21 has quit [Quit: Computer has gone to sleep.]
tspike has joined #ruby
<atmosx> the written part is huge, from theory like Hb/Mb description/Bohr effect and so on to ... put the compounds in any sort of reaction...
<atmosx> most are phosphorylations really, from what I've seen.
<atmosx> anyway
<shevy> Bohr effect?
altivec has joined #ruby
<shevy> I think I may fail the one you try :P
sambao21 has joined #ruby
<tent4051> can anyone explain why ruby.org looks like this? http://imgur.com/WxXi7mU
<shevy> tent4051 how should it look
<tent4051> but i need to download ruby
<shevy> then go to http://www.ruby-lang.org/en/
mikurubeam has joined #ruby
sambao21 has quit [Client Quit]
thams has quit [Quit: thams]
<tent4051> are you sure i don't have to pay $35 a year first? :p
<shevy> wget links would be: wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.bz2 or wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p358.tar.bz2
buibex has joined #ruby
<shevy> I think ruby.org was registered many years ago :(
<shevy> tent4051, we also have a #ruby and a #ruby-lang channel here :(
<shevy> but #ruby-lang is set +m or something like that
<shevy> some people there don't visit #ruby, and vice versa
<shevy> and apeiros_ kills cross-posters :D
Xeago has quit [Remote host closed the connection]
vinici has joined #ruby
thams has joined #ruby
vinici has left #ruby [#ruby]
slainer68 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
<aedorn> Really do need to combine the Ruby channels somehow... it's still the only fragmented part of the community
__Big0__ has quit [Remote host closed the connection]
Hanmac has joined #ruby
<tent4051> is it true that ruby programmers actually make good money? are any of you in that category?
aaronmcadam has joined #ruby
__Big0__ has joined #ruby
<Rudd-XXX> hi
Eldariof-ru has joined #ruby
<aedorn> tent4051: You can make good money doing programming in any language, just depends on what you're doing with it
<shevy> aedorn I would agree on that, but #ruby-lang is quite nazi ... quicker bans, moderation and registration in order to talk/chat ...
<shevy> tent4051 probably easier for web-related stuff
<Rudd-XXX> how do I tell bundle to package my gems in vendor/cache but actually include the C extensions?
<shevy> tent4051, see? ^^^ bundle related problems never stop here ;)
altivec has quit [Quit: Textual IRC Client: www.textualapp.com]
<Rudd-XXX> it seems retarded to me that bundle package won't package the .so files
<Spooner_> tent4051, Rails programmers are supposed to make a lot and since they are in short supply, you don't have to be any good ;)
<Rudd-XXX> the whole point of why I'm using bundle package is to avoid compilation in the production machins
<shevy> haha Spooner_ that is so mean
<tent4051> yet seemingly so true
yashshah has quit [Read error: Connection reset by peer]
sambio has joined #ruby
yashshah has joined #ruby
<shevy> a month ago I found out by chance that my university uses ruby on rails for the students-interna page... if I want to take an exam, I have to use ruby on rails as an end user, that was kinda cool
<shevy> (for registration)
nateberkopec has joined #ruby
<Rudd-XXX> so, again, how do I get "bundle package" to actually package my C extension gems, like eventmachine?
<tent4051> i remember back in my days when we had to trudge uphill for 6 miles in the snow to deliver a ream of fortran punchcards to the mainframe... kids nowadays don't have a clue how to program
eldariof has quit [Ping timeout: 264 seconds]
joofsh has quit [Remote host closed the connection]
r0f0 has quit [Quit: Leaving]
chrishough has quit [Quit: chrishough]
<shevy> tent4051 no kidding? through snow???
ebobby has joined #ruby
<shevy> try to get kids today to do physical exercise at all
SiliconDon has quit [Remote host closed the connection]
BizarreCake has quit [Ping timeout: 252 seconds]
SiliconDon has joined #ruby
<Hanmac> Rudd-XXX it may not a good idea to make "precompiled" gems ... some C-Ext gems are for a reason not precompiled because they fit in the system where they are installed
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
skattyadz has joined #ruby
Phibs has joined #ruby
<Phibs> I did gem install fastthread, but it did not compile the native extension, is this normal or does it only occur on certain ruby versions? (This is 1.9.3)
osgux has joined #ruby
<Rudd-XXX> hanmac: the system where they will be installed doesn't have a C compiler. That is a deliberate choice.
mercwithamouth has joined #ruby
tay1 has joined #ruby
<osgux> gi
KevinSjoberg has joined #ruby
<osgux> hi
<shevy> Phibs depends on the error. in many situations, you may lack .h files (dev package), or there may be another problem with your environment/compiler
<osgux> i have project with rails version 2.3.5
<Rudd-XXX> hanmac: the people who designed this system of distributing software clearly didn't see beyond hacking on their local laptops.
<osgux> i try to run sudo rails s
<Phibs> shevy: no error, it is just not building it
<Rudd-XXX> is there ANY tool in the ruby world that would allow me to actually bundle C extensions in gems?
<Rudd-XXX> doesnt have to be bundler
buibex has quit [Remote host closed the connection]
<shevy> Fetching: fastthread-1.0.7.gem (100%)
<shevy> Building native extensions. This could take a while...
<shevy> Successfully installed fastthread-1.0.7
<Hanmac> a system without a C compiler is like a fish without water :P
<shevy> Phibs you get output like that though? ^^^
<shevy> Hanmac says the one who uses Ubuntu, which by default wants you to get build essentials :P
luckyruby has quit [Remote host closed the connection]
<Rudd-XXX> hanmac you need to spend a little more time on the operations side of the equation, where builds are formally separate from deploys.
kkh has joined #ruby
luckyruby has joined #ruby
<Rudd-XXX> I need to know if there is a way to do this, because I need to tell my developers whether they may continue with ruby or to port to python, where this is not a problem
chrishough has joined #ruby
<shevy> Rudd-XXX I am not sure it is possible... I also can not remember any gem that would do it... either it's all .rb files and text files, or one usually compiles natively
Morkel_ has joined #ruby
<shevy> let's provoke
<shevy> it's not possible in ruby
<shevy> use python
<shevy> :)
popori has quit [Quit: Leaving]
carloslopes has joined #ruby
Catbuntu has joined #ruby
Liquid-- has quit [Quit: Computer has gone to sleep.]
bluOxigen has joined #ruby
Aiur has quit [Quit: Computer has gone to sleep.]
andikr has quit [Read error: Connection reset by peer]
<Rudd-XXX> shevy, lol, but it's true.
<shevy> ok they still sleep ... need more
<shevy> Rudd-XXX says ruby sucks!!!
<shevy> Rudd-XXX, yeah, it may actually be true... I am still thinking if I know of binary distributions of any gem...
<shevy> Hanmac here has C++ projects + ruby, so he should actually know
<Hanmac> Rudd-XXX i have a new gem for wxWidgets ... the old wxRuby PRECOMPILED does not work with system wx because it was build against an feature that the system wx does not have ... NOW THINK ABOUT THAT
<shevy> Hanmac well how about a simpler example
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
<shevy> like a 1000 lines of code .c file
Davey_ has joined #ruby
<shevy> Rudd-XXX, can't you just put it into bin/ directory or ext/ of your gem project?
<Hanmac> while my wx gem does check your wx configuation and only builds that what you have on your system
seejohnr1n has quit [Ping timeout: 252 seconds]
ramblex has quit [Remote host closed the connection]
realDAB has joined #ruby
sayan has quit [Quit: Leaving]
sayan has joined #ruby
brianpWins has quit [Quit: brianpWins]
jimeh has quit [Quit: Computer has gone to sleep.]
s1n4 has quit [Quit: leaving]
skattyadz has quit [Ping timeout: 260 seconds]
<bricker> Who wants to play ruby golf - I need a succinct way to make sure that a string begins and ends with a forward-slash, and add them if not
allsystemsarego has quit [Quit: Leaving]
<Rudd-XXX> hanmac i know about configure and make. the production system does not have development software installed, and it won't. don't argue with me about that, unless you're prepared to argue with the operations team on my behalf.
<Rudd-XXX> shevy, the problem is that the .gem files in vendor/cache don't actually have ext/*.so content
lupinstien has quit [Ping timeout: 258 seconds]
<Rudd-XXX> this is after I've done bundle package
rickmasta has joined #ruby
<Spooner_> bricker: str.sub(/\A\/?/, "/").sub(/\/?\z/, "/")
Ontolog_ has quit [Read error: Connection reset by peer]
Ontolog has joined #ruby
fumbe has quit [Ping timeout: 258 seconds]
shock_one has quit [Ping timeout: 260 seconds]
ozgura has quit [Remote host closed the connection]
Eldariof-ru has quit [Read error: Operation timed out]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
maxmanders has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
<Rudd-XXX> anyone know how to produce binary gems (including *.so files) through bundler?
<tent4051> how do i become a member of #ruby-lang
bradhe has joined #ruby
<tent4051> and why isn't that stated when you enter the room?
<Hanmac> bricker:
<Hanmac> >> "a"=~/(\/)?(.+?)(\/)?/;($1||"/")+$2+($3||"/")
<eval-in> Hanmac => "/a/" (http://eval.in/13083)
<Spooner_> bricker or with more golfing: str.gsub(%r{\A/?|/?\z}, '/')
bean has joined #ruby
yacks has quit [Quit: Leaving]
mando has quit [Remote host closed the connection]
cearls has quit [Remote host closed the connection]
grenzr has joined #ruby
sayan has quit [Read error: Connection reset by peer]
RushingFitness has joined #ruby
havenwood has joined #ruby
<bricker> :O Thanks
<canton7> "/#{str[%r{\A/?(.*?)/?\Z},1]}/"
<Phibs> so does ruby 1.9.3 not need fastthread ?
<canton7> think that's longer than Spooner_'s
LennyLinux has joined #ruby
polo has joined #ruby
<tent4051> if rvm is so derided, then why is it recommended at ruby-lang.org ?
<Spooner_> There is nothing wrong with RVM.
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<Phibs> other than pointing out there are too many damn versions of ruby :)
<Spooner_> (Though I switched to rbenv).
<havenwood> tent4051: Who derides RVM?
<tent4051> people here like half an hour ago
<havenwood> tent4051: RVM is the oldest and most feature-full ruby version switcher.
<tent4051> and me because it was incapable of figuring out that i had actually installed bundler globally
<tent4051> maybe i'll give it a second chance, but i just built ruby from source
<havenwood> tent4051: My preference is chruby, but I've got no qualms with rvm!
<Phibs> lol
<Spooner_> tent4051, If you installed Ruby via RVM locally, you should also install gems locally (so no sudo on gem install).
<Phibs> there are 50 tools to manage the 1000 ruby versions, this is amusing
<havenwood> tent4051: chruby plays very nice with building yourself: https://github.com/postmodern/chruby#readme
<postmodern> tent4051, if your on Fedora, they patched rubygems to allow installing into ~/.gem/ by default
Phibs has left #ruby [#ruby]
cearls has joined #ruby
__Big0__ has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
sambao21 has joined #ruby
francisfish has quit [Remote host closed the connection]
hadees has quit [Quit: hadees]
brianpWins has joined #ruby
<havenwood> Phibs: RVM, chruby and rbenv each fill a niche. Both rbfu and ruby-version self-deprecated in favor of chruby so there aren't all that many options. RVM, chruby, rbenv, or ry.
<havenwood> shims... psh!!! :P
JonnieCache has joined #ruby
seejohnrun has joined #ruby
<shevy> Phibs left :(
statarb3 has quit [Ping timeout: 245 seconds]
<shevy> now it stands in the room that ruby has so many versions
<havenwood> shevy: Just realized that when my tab completion hit a wall. >.>
<shevy> but one can avoid using rvm rbenv etc.. etc.. and ruby still works perfectly fine
<havenwood> shevy: Plenty of languages would love the problem of too many high quality implementations...
<postmodern> shevy, correct, however rubygems doesn't support --user-install by default
<shevy> yeah that one is confusing
<postmodern> shevy, and ~/.gem/$ruby/$version/bin has to be added to $PATH
<shevy> don't they want to add that?
<shevy> I mean the rubygems devs
<postmodern> shevy, apparently it was buggy at first, so they disabled it
<shevy> hehehe
interactionjaxsn has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
interactionjaxsn has joined #ruby
dfried has quit [Quit: dfried]
dfried has joined #ruby
geekbri has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 255 seconds]
ferdev has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
aquaman has joined #ruby
SiliconDon has quit [Remote host closed the connection]
rickmasta has quit [Quit: Leaving...]
mockra has joined #ruby
Bosox20051 has joined #ruby
tetsus is now known as tetsu
rippa has quit [Ping timeout: 240 seconds]
SiliconDon has joined #ruby
Quebert has quit [Quit: Linkinus - http://linkinus.com]
SiliconDon has quit [Remote host closed the connection]
SiliconDon has joined #ruby
mercwithamouth has joined #ruby
<tent4051> is there any site out there where i can moan and complain in most graphic detail about how much i hate ruby?
<breakingthings> tent4051: hackernews
<breakingthings> also how much do you hate ruby
<breakingthings> because this seems like comedy waiting to happen
<Hanmac> he hate it more than he hate php :P
<breakingthings> Hanmac: oh, oh no
<breakingthings> that's no comedy
hadees has joined #ruby
<breakingthings> that's a shakespearian tradgedy!
<Sicp> don't I define private data members in a class using @@?
<breakingthings> nnnnnoooo.
<Sicp> @@terminals = ['(',')','a','b','+','*',',']
<Sicp> or
<Sicp> <-- idiot?
<breakingthings> where in there does it say 'private'
<breakingthings> I'm not seeing it :)
<Sicp> well you know....I saw Class and just...that's it
<tent4051> breakingthings: that website loads so slow i almost thing it's written in ruby
<Sicp> variables in a class
<tent4051> *think
<Sicp> lol
<breakingthings> tent4051: lol
<breakingthings> troll incoming.jpeg
<breakingthings> Sicp: ok so
<breakingthings> ruby instance/class variables are private by default to my knowledge
<Sicp> 1 @ sign?
<breakingthings> @ is an instance variable
<Sicp> aha
<breakingthings> as in, it only exists once #new is called
<Sicp> so it's instance variables that are by default private
<breakingthings> @@ is 'static', if you're familiar with that.
<Sicp> I am, yes
<breakingthings> right
SiliconDon has quit [Remote host closed the connection]
<realDAB> class variables are my least favorite thing in ruby
SiliconDon has joined #ruby
<Hanmac> Sicp and now there comes the bomb: classes are instances too =-O :D
<breakingthings> attr_reader, attr_writer, attr_accessor
<Sicp> I see get undefined local variable terminals when trying to access it from the method
<Sicp> WAT
<breakingthings> is what makes them public
dsabanin has joined #ruby
<breakingthings> Hanmac: oh god don't blow his mind I'm just trying to get it across as simply as possible
sambao21 has quit [Quit: Computer has gone to sleep.]
dsabanin has quit [Client Quit]
<realDAB> breakingthings: attr_* has no implications for class variables, though
<breakingthings> realDAB: truth
ozgura has joined #ruby
mikurubeam has joined #ruby
<breakingthings> which i can only assume is why he came to that conclusion, seeing that he could access @@variable but not @variable which didn't have an attr_
<breakingthings> so yeah
<breakingthings> makes sense.
<Sicp> no, I am unable to access either
<breakingthings> oh. ok.
<breakingthings> well, post code.
<breakingthings> gist dat ish
<Hanmac> Sicp: each class is an instance of the class Class ... each module is an instance of the class Module ... Class interits from Module and Module inherits from Object, so that means each class and each module are instances and so objects too :P
aLeSD has quit [Remote host closed the connection]
<Sicp> but my problem is not with the concept, it's with the symbols that prefix what I want to declare
<Sicp> I want to declare it in such a way that it belongs to the class solely, and is accessible solely from the class, without the need for setters (of course)
<Sicp> outside of that class, it would have to have a set/get and etc.
<realDAB> Sicp: what breakingthings said (post some code)
<breakingthings> !help
<breakingthings> …whatever it is
<Sicp> not yet
<Sicp> I feel that that's the giving up part :P
<Sicp> sorry
<realDAB> Sicp: it's the getting help part
<Hanmac> Sicp the secret is that you can use instance variables on class too so that they only are setted for one class and not for the children
<breakingthings> if by "giving up" you mean us, then yes.
jarsen has joined #ruby
<breakingthings> code ain't a spelling bee.
<Sicp> true
sambao21 has joined #ruby
blaxter has quit [Ping timeout: 246 seconds]
nomenkun has quit [Remote host closed the connection]
* Hanmac wants to see a bee that can spell :P
atyz has joined #ruby
arietis has joined #ruby
<Sicp> I didn't want to use Gists, sorry
joofsh has joined #ruby
jarsen has left #ruby [#ruby]
<breakingthings> you're -welcome-
<apeiros_> realDAB: I find it interesting that almost nobody likes @@cvars in ruby
<breakingthings> Sicp: the error being on line 27, i take it?
<Sicp> yep
<breakingthings> You have to refer to the variable with it's @.
<Sicp> argh.
<breakingthings> "when @terminals.include?..."
<Sicp> thank you
<breakingthings> np.
<breakingthings> and that is why posting code is good for you
<Sicp> input not recognized :o
<breakingthings> no need to struggle for an hour while we all wonder what you're talking about when it's just a minor error :d
<realDAB> Sicp: also, read this :-) ablog.rubypal.com/2007/8/15/bang-methods-or-danger-will-rubyist
<Sicp> 'a' is most certainly inside that array!
<realDAB> whoops
spider-mario has joined #ruby
bordicon has joined #ruby
<Sicp> ahhhh, that line returns "true"
<Sicp> oh, that's what I want
rickmasta has joined #ruby
mikurubeam has quit [Ping timeout: 256 seconds]
<breakingthings> Sicp: single_char != @terminals.include?(single_char)
<breakingthings> unless single_char was already true
<breakingthings> as in, boolean
<Sicp> it'll just return boolean
polo has quit [Ping timeout: 256 seconds]
<breakingthings> right but that's not how case statements work
<Hanmac> Sicp & breakingthings: hay guys why not use in the case when something like that: "when *@terminals" :D
<Sicp> so that basically reads "when true"?
<breakingthings> does single_char == true?
<Sicp> totally wrong, yea
<havenwood> Sicp: What is line 30 about? (You can drop the `return`, do you really want to return the symbol :quit?)
<apeiros_> >> %w[ ( ) a b + * , ]
<eval-in> apeiros_ => ["(", ")", "a", "b", "+", "*", ","] (http://eval.in/13085)
<apeiros_> Sicp: ^
<apeiros_> easier than ['(',')','a','b','+','*',',']
<Sicp> so that I can know when to quit, havenwood
<apeiros_> Sicp: `loop do … break if reaction == :quit` - my CS prof would call that "a badly formulated exit condition"
Neomex has joined #ruby
Neomex has quit [Client Quit]
<apeiros_> `reaction = :not_quit; until reaction == :quit …`
mikurubeam has joined #ruby
Neomex has joined #ruby
<havenwood> Sicp: Nicer to not use explicit return unless necessary, there you can just do `:quit` and it will be functionally the same.
<apeiros_> alternatively `begin … end until reaction == :quit` - then you don't even have to initialize it with a non-exiting value
<Hanmac> info about parse: you shoule remove the " " at def parse .... "def parse (input)" => "def parse(input)" or "def parse input" ... otherwise it can bite you in your back
pavilionXP has quit [Read error: Connection reset by peer]
<Hanmac> hm ok it is not sooo bad at the def, but on other places it is
lancepantz_ is now known as lancepantz
bordicon has quit [Read error: Connection reset by peer]
<Hanmac> http://www.ruby-forum.com/topic/4412134 << there is a sample what i mean
bordicon has joined #ruby
<atmosx> hi
<atmosx> anyone using sequel?
<Sicp> I'm trying to say "whenever this single_char is something that's inside the terminals, puts terminal"4
<Sicp> my brain is saying it but my fingers are fail.
<atmosx> I'd like to know if there's any *smart* way to check if the current data is already in the DB (sqlite3), if yes do nothing if not add it.
<breakingthings> apeiros_: what is the name of the %x() tokens
ckrailo has quit [Quit: Computer has gone to sleep.]
<Sicp> it's supposed to be @terminals.include?(single_char)
<apeiros_> %x is Kernel#`
<atmosx> I can do it by retrieving all values and checking, or searching for a simpel value but ... maybe there's a ready-to-use way w seq.
<apeiros_> or do you mean in general?
<apeiros_> %x is special there, all others are literals
<apeiros_> i.e., %x is a method call
<breakingthings> apeiros_: woops, I mean x as in wildcard
<breakingthings> %w, %s
<apeiros_> yeah, understood that after I asked
<breakingthings> are they listed somewhere?
<apeiros_> zenspider has a good compilation of all syntax in ruby
<apeiros_> google for 'zenspider quickref'
jbynum has joined #ruby
kofno has quit [Remote host closed the connection]
<breakingthings> Hmm, no particular listing of them, though and interesting ref.
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<breakingthings> an interesting*
<Sicp> ah! it should be when @terminals.loopoverthisarray
ebobby has quit [Ping timeout: 264 seconds]
<Sicp> if "one of the chars of the array"
<Hanmac> apeiros_ what do you think about "when *@terminals" :P
<apeiros_> breakingthings: well, they're in there
<apeiros_> though the arrangement is by type, not by "look"
<breakingthings> yeah, I was just hoping to find something that lists what more of them are and what they do
joofsh has quit [Remote host closed the connection]
<apeiros_> Hanmac: context?
<Hanmac> apeiros_ http://pastie.org/6631626 << this context
<apeiros_> I like that you can splat on when, yes
skattyadz has joined #ruby
Davey_ has quit [Quit: Computer has gone to sleep.]
<apeiros_> (same for rescue btw.)
<apeiros_> Hanmac: well, if it makes sense - nice
<Hanmac> its better than using include? :P
interactionjaxsn has quit [Remote host closed the connection]
joofsh has joined #ruby
huoxito has quit [Ping timeout: 245 seconds]
mengu has quit [Ping timeout: 258 seconds]
SiliconDon has quit [Quit: SiliconDon]
<apeiros_> definitively
cupakromer has joined #ruby
<apeiros_> I rarely like case/when with bare case
mockra has quit [Remote host closed the connection]
<apeiros_> I was under the impression he wanted a separate when for each token, though
<Hanmac> i get angry when somone use case when without variable in case and only functions in when ...
realDAB has quit [Quit: realDAB]
freerobby has quit [Quit: Leaving.]
mengu has joined #ruby
crimezone20xx has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
huoxito has joined #ruby
bradhe has joined #ruby
skattyadz has quit [Ping timeout: 264 seconds]
moos3 has quit [Read error: Connection reset by peer]
Davey_ has joined #ruby
moos3 has joined #ruby
arturaz has joined #ruby
_jc has joined #ruby
tealmage has joined #ruby
_jc has quit [Client Quit]
mockra has joined #ruby
dmiller2 has joined #ruby
Davey_ has quit [Client Quit]
Catbuntu has quit [Quit: Leaving]
<Sicp> ok, shit's getting srs
<Sicp> I want a case that will in and of itself check if it encounters any element of the array
<Sicp> even the approach is wat
matti has quit [Quit: Oh dear...]
mando has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
BadDesign has joined #ruby
DaniG2k has joined #ruby
mando has quit [Read error: Connection reset by peer]
<DaniG2k> is there anyone who can help me with some long ass ruby code?
_jc has joined #ruby
<Hanmac> ass code? :P
_jc has quit [Client Quit]
Nisstyre has joined #ruby
jcheng has joined #ruby
pac1 has joined #ruby
<DaniG2k> if anyone is willing to help I'll step you through where the error is
<DaniG2k> it's long, I realize -_-
s1n4 has joined #ruby
sambao21 has joined #ruby
ebobby has joined #ruby
tenmilestereo has joined #ruby
<Spooner_> DaniG2k, You could take advantage of inheritance to not keep repeating the same methods ;)
whowantstolivef1 has joined #ruby
osgux has quit [Quit: Page closed]
hiroyuki has joined #ruby
<Sicp> what's the character for space?
<Spooner_> DaniG2k, But still, that is a lot of code to throw at us. Can you narrow it down to a bit less?
<Sicp> \s
jon_w has joined #ruby
<Hanmac> sicp thats an regex character class ... that means that is more than one char
<DaniG2k> Spooner_: its an exercise. the exercise is to use double dispatches, which is a more pure form of OOP than doing a bunch of if elsif else cases
TooTubular has joined #ruby
<DaniG2k> Spooner_: yeah I can narrow it down. If you load it into an irb, I'll show you where the problem is and explain what it is that I cannot figure out
<Spooner_> Just point me at the lines in question and actually...ask a question.
<DaniG2k> ok
<DaniG2k> if I run something like i = Intersect.new(LineSegment.new(-1.0,-2.0,3.0,4.0), LineSegment.new(3.0,4.0,-1.0,-2.0))
<DaniG2k> I get
nkr has quit [Quit: Linkinus - http://linkinus.com]
lkba has joined #ruby
rickmasta has quit [Quit: Leaving...]
vy has quit [Ping timeout: 245 seconds]
TooTubular has quit [Remote host closed the connection]
<bean> guys, i made a fun thing for colorizing / putting effects on text. https://gist.github.com/daniellockard/934181d6a367b9023c28 have fun
<DaniG2k> I get
<DaniG2k> => #<Intersect:0x00000101aa46d0 @e1=#<LineSegment:0x00000101aa4748 @x1=-1.0, @y1=-2.0, @x2=3.0, @y2=4.0>, @e2=#<LineSegment:0x00000101aa4720 @x1=3.0, @y1=4.0, @x2=-1.0, @y2=-2.0>>
<DaniG2k> which is a correct result
<Spooner_> As a general thing, I'd recommend sticking to snake_case for methods, rather than a mix.
youdontmeanmuch has joined #ruby
<DaniG2k> but Im getting an error if I do
classix has quit [Ping timeout: 252 seconds]
<DaniG2k> i1 = i.preprocess_prog.eval_prog([])
<DaniG2k> SystemStackError: stack level too deep
<DaniG2k> which means its recursing infinitely
<Spooner_> Indeed.
<DaniG2k> so let me break it down
<DaniG2k> if I do, instead, i.preprocess_prog
<DaniG2k> i get
<DaniG2k> => #<Intersect:0x00000101a8f618 @e1=#<LineSegment:0x00000101aa4748 @x1=-1.0, @y1=-2.0, @x2=3.0, @y2=4.0>, @e2=#<LineSegment:0x00000101a8f640 @x1=-1.0, @y1=-2.0, @x2=3.0, @y2=4.0>>
<DaniG2k> which is correct
<DaniG2k> essentially, it's failing at the eval_prog call
<DaniG2k> BUT
newUser1234 has quit [Read error: Connection reset by peer]
newUser1_ has joined #ruby
<DaniG2k> i believe my eval_prog method is correct (inside of the LineSegment class
classix has joined #ruby
arturaz has quit [Ping timeout: 264 seconds]
angusiguess has quit [Ping timeout: 256 seconds]
<DaniG2k> the problem is happening elsewhere
<DaniG2k> and i cant figure out where
Neomex has quit [Quit: Neomex]
axl_ has quit [Quit: axl_]
Neomex has joined #ruby
Nisstyre has quit [Quit: Leaving]
<havenwood> bean: I like its simplicity. :) Needs a #rainbow method! :P
<Spooner_> Also real_close should be real_close? (following conventions means it is easier to read).
<bean> havenwood: haha, good idea.
danneu has joined #ruby
tvw has quit []
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
jonathanwallace has joined #ruby
<Spooner_> DaniG2k, And mixing hard and soft tab isn't good ;) But anyway, nothing leaps out at me.
Nisstyre has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenn_ has joined #ruby
ckrailo has joined #ruby
pepper_chico has joined #ruby
<Spooner_> I would recommend some debugging with p at the point where it is recursing. Might give you a clue which direction it is falling in.
UberNerdGirl has joined #ruby
<DaniG2k> Spooner_: do you know a good debugging tool?
<Firespore> bean,
<Firespore> Are you present?
jjbohn has quit [Quit: Leaving...]
<bean> Firespore: yeah, whats up
<Spooner_> DaniG2k, Well, for one, use pry rather than irb (but not sure that will help you a lot unless you use "debugger" with it).
<Firespore> I created a bot using cinch, bean.
<bean> cool
<Firespore> You have experience with it, right?
<bean> some
<UberNerdGirl> is it true?
staafl has joined #ruby
<Firespore> Would you mind helping me create an IP --> DNS resolver and DNS --> IP resolver
<UberNerdGirl> is the rumour true that David A Black is here?
<Firespore> Who is that?
<UberNerdGirl> He autographed my Well Grounded Rubyist
nicholas_at_tel has joined #ruby
<UberNerdGirl> He's the author
<havenn_> UberNerdGirl: Nice! I need to read that still. :O
<Firespore> Ruby fanboy hardcore
<UberNerdGirl> havenn_: art thou Havenwood?
<Firespore> He might or might not be here
<Firespore> I wouldn't know
<havenn_> UberNerdGirl: Yup yup! :)
<UberNerdGirl> UberNerdGirl: Oh I am a major Ruby fanboy!
<bean> Firespore: no, I'm at work currently :)
<Firespore> a
<Firespore> w
<UberNerdGirl> i have come to ascertain this rumour
<UberNerdGirl> as he is my favourite Ruby author
<Firespore> UberNerdGirl, so you are a fanboy who uses the name "girl" in his nick?
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Firespore> Interesting.
havenn_ is now known as havenwood
<UberNerdGirl> and his chapter on Ruby self-awareness and existentialism is fascinating
<UberNerdGirl> Firespore: who cares about my gender
sailias has quit [Read error: Operation timed out]
<Firespore> Ah, so you are a female
zeade has quit [Quit: Leaving.]
<UberNerdGirl> why?
<Firespore> Female on the internet say "Who cares about my gender?".
<Firespore> Carry on.
<breakingthings> I have both parts.
<havenwood> UberNerdGirl: Woah, definitely need to read it. That sounds fascinating.
zeade has joined #ruby
freezey has quit [Remote host closed the connection]
<Firespore> So can anyone help me with this cinch bot framework?
<UberNerdGirl> Firespore: relax. girls exist. take a chill pill
<UberNerdGirl> Firespore: one day, you may meet them also. Have faith.
mattbl has joined #ruby
<Firespore> Girls don't exist on the internet. Girls are men, and children are FBI agents.
<Spooner_> UberNerdGirl, You need to check your chat log more often. He's long gone ;)
* UberNerdGirl is heartbroken
* UberNerdGirl weeps forlornly
freerobby has joined #ruby
axl_ has joined #ruby
* Firespore slaps UberNerdGirl
<Firespore> Get it together
<UberNerdGirl> Spooner_: wish there is a way you can send me an SMS to my google voice
arturaz has joined #ruby
<UberNerdGirl> Firespore: really, take a chill pill or xanax. Or else I m going to sic banisterfiend on you
<UberNerdGirl> he's got my back
<lectrick> When I call "Float(5)", where is that Float method defined?
<Firespore> ???
<aedorn> mmm xannax ...
<UberNerdGirl> anyway, how do people here like to express Infinity?
<aedorn> It's like 6 shots, and 4 beers in a small pill
<Spooner_> Float::INFINITY has done it for us since 1.9
jgarvey has quit [Quit: Leaving]
hoens has joined #ruby
<lectrick> UberNerdGirl: I have something I do in projects like this: Infinity = 1.0/0
<havenwood> +1 Float::INFINITY
<Firespore> lectrick, it's usually defined somewhere higher up in the lines of the code. If it isn't, define it but being that you are calling a "float" method it should already be pre-defined to my understanding
<UberNerdGirl> why do I feel 1.0/0 is more preferable?
<Spooner_> lectrick, pry(main)> method(:Float).owner => Kernel
<Firespore> ^
<lectrick> Spooner_: danke
<Firespore> What Spooner_ said
<UberNerdGirl> why do I feel it is… slightly more… pulchritudinous ?
<lectrick> UberNerdGirl: Because you are like me and like readable concise English and simple math. :)
<Spooner_> We needed to manually do 1.0 / 0.0 in 1.8 because no-one thought it was important to play with infinity. Now we are grown up ;)
<lectrick> If you want to you can namespace it with Float::Infinity = 1.0/0
<havenwood> UberNerdGirl: I'm torn, but just a little. 1.0/0 is short and sweet, but since I found out there was a Float::INFINITY that is what I use now.
ArchBeOS has quit [Remote host closed the connection]
<lectrick> but I hardly think a global "Infinity" constant is going to clash with something else
<lectrick> Spooner_: UberNerdGirl: The sexy thing is you can do... whatever you please. :)
<banisterfiend> Float::INFINITY is annoying
<lectrick> agree
Trudko has joined #ruby
nicholas_at_tel has quit [Quit: Linkinus - http://linkinus.com]
<havenwood> banisterfiend: Due to its length and the ALLCAPS?
<lectrick> just "Infinity = 1.0/0" and be done with it. Then you can do cool shit like ranges (1..Infinity) etc.
<Trudko> guys if I developed app on 1.9.3 p125 I shouldnt have problem of running it on p392 right?
whowantstolivef1 has quit [Ping timeout: 255 seconds]
<lectrick> Float::I_AM_INFINITY_AND_YOU_ARE_NOTHING
hse-hoens has quit [Ping timeout: 258 seconds]
<aedorn> Trudko: correct
TooTubular has joined #ruby
<banisterfiend> havenwood: yeah, it's fiddly to type in :)
<Hanmac> >> 0.0/0 == 0.0/0
<eval-in> Hanmac => false (http://eval.in/13087)
<Hanmac> haha :P
jon_w has quit [Quit: The 7 Deadly Sins: EPIC on steroids   [www.t7ds.com.br]]
<UberNerdGirl> i just feel 1.0/0 is sexy
<banisterfiend> >> 0/0
<eval-in> banisterfiend => /tmp/execpad-c831985b3259/source-c831985b3259:2:in `/': divided by 0 (ZeroDivisionError) ... (http://eval.in/13088)
<banisterfiend> >> 0.0/0
<eval-in> banisterfiend => NaN (http://eval.in/13089)
emergion has joined #ruby
<banisterfiend> >> 0.0/0 > Float::FINITY
<eval-in> banisterfiend => /tmp/execpad-527b255f023e/source-527b255f023e:2:in `<main>': uninitialized constant Float::FINITY (NameError) (http://eval.in/13090)
<breakingthings> but...
mikurubeam has joined #ruby
<banisterfiend> >> 0.0/0 > Float::INFINITY
<eval-in> banisterfiend => false (http://eval.in/13091)
<banisterfiend> sorry
<UberNerdGirl> the notion of dividing anything by 0 is a dark, forbidden land of Nil and Nod and netherthoughts.
<breakingthings> doesn't 1.0/0 not actually equal infinity
<havenwood> ∞ = 1.0/0
<havenwood> done.
swingha has quit [Quit: WeeChat 0.4.0]
<lectrick> lol FINITY
emergion has quit [Client Quit]
scudelletti__ has quit [Remote host closed the connection]
<havenwood>
<breakingthings> so 1.0/0 is… unsexy
<lectrick> damn you, irb console. it won't take ∞
hse-hoens has joined #ruby
<banisterfiend> UberNerdGirl: in the beginning was the scream, who begat love, who begat man, who begat G-d, who begat nothing, never never never, trembling featherless elbows in the nests filth
<`p>
<lectrick> unsexy? what is sexier than division by zero? that's supposed to be impossible, and yet that makes it entirely probable
<breakingthings> lectrick: but it's not really
<UberNerdGirl> lectrick: i concur
<breakingthings> ruby is shielding back the breaking timespace
<lectrick> I like making ruby work
<banisterfiend> UberNerdGirl: ted hughes :)
<breakingthings> every time someone performs 1.0/0, a planet is demoted to a dwarf planet
<breakingthings> Do you hate pluto?
geggam_wk has quit [Ping timeout: 252 seconds]
<lectrick> LOL
<UberNerdGirl> i think if i were to transcend pitiable bounds of physics, I would choose my death - dividing by zero, literally, and I vanish into the ether
geggam_wk has joined #ruby
* Hanmac liked pluto as a planet :(
<UberNerdGirl> banisterfiend: i wrote my English PhD admissions paper on Ted Hughes
<breakingthings> only pluto haters use 1.0/0
<breakingthings> know the enemy, kids
<banisterfiend> UberNerdGirl: here's the full poem, http://www.poemhunter.com/best-poems/ted-hughes/lineage
<lectrick> Oh yeah? Every time someone calls Float::INFINITY, someone gets carpal tunnel of the pinky
<banisterfiend> i kind of messed it up in my clipped paraphrasing
sk87 has quit [Ping timeout: 260 seconds]
tommyvyo has quit [Quit:]
<banisterfiend> UberNerdGirl: cool, he's awesome, esp his crow poems
<UberNerdGirl> i am also obsessed with his wife Sylvia Plath
<UberNerdGirl> boolean : true
<UberNerdGirl> i wrote precisely on the crow poems
<banisterfiend> UberNerdGirl: though both of his wives committed suicide, so maybe he's not such a good partner ;)
<breakingthings> lectrick: the thing is, though, the pinky owner is always someone who uses 1.0/0
<UberNerdGirl> my poetry is deeply influenced by sylvia plath
pandawarrior has quit [Quit: Leaving.]
<UberNerdGirl> lolz
hoens has quit [Ping timeout: 240 seconds]
<lectrick> ugh, sylvia plath. the only media i don't avoid by someone who ended up offing themselves is Nirvana.
<banisterfiend> UberNerdGirl: feminists i've met rage against him
<UberNerdGirl> nah, I like him
<banisterfiend> UberNerdGirl: which is your fave crow poem
glosoli has joined #ruby
glosoli has left #ruby [#ruby]
<breakingthings> lectrick: you mean you don't like being as depressed as a suicidee?
<UberNerdGirl> i'll have to try to remember
<breakingthings> whodathunkit
<lectrick> breakingthings: if you consume poison, you tend to hasten your demise, yes
tealmage has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Matip has joined #ruby
<breakingthings> this chat just got 2 philosophical 4 me
Neomex has quit [Quit: Neomex]
<banisterfiend> UberNerdGirl: his poetry *reading* is brilliant too, if i was a woman i'd need to change my panties after listening to him
drumsrgr1 has quit [Quit: WeeChat 0.4.0]
* breakingthings backs out to playing castlevania again
<lectrick> lol
<breakingthings> oh wait.
<breakingthings> castlevania rom froze.
<breakingthings> I'm still too pissed about that to start over.
<UberNerdGirl> LOL
Rudd-XXX has quit [Ping timeout: 248 seconds]
<UberNerdGirl> hmmm, Rubyists, what are your favorite ways to define Fibonacci?
<breakingthings> def Fibonacci
pskosinski has quit [Quit: Red Eclipse, game of racist admins/devs: http://pawelk.pl/racist-red-eclipse-quin-zeroknight-gingerbear/]
jbynum has quit [Quit: Computer has gone to sleep.]
<UberNerdGirl> I have a deep affinity for the recursion version
<UberNerdGirl> recursion is so soothing and relaxing and anxiety-relieving
mercwithamouth has quit [Ping timeout: 264 seconds]
<breakingthings> #TODO: search stackoverflow for fibonacci generating code
<breakingthings> end
<UberNerdGirl> HAHAHAHAHAHAH
<UberNerdGirl> #TODO: search stack overflow for everything
yashshah has quit [Read error: Connection reset by peer]
thams has quit [Quit: thams]
yashshah has joined #ruby
<breakingthings> in case you haven't seen it yet, http://gkoberger.github.com/stacksort/
<UberNerdGirl> def fibo (n); if n.zero?; 1;
Mattx has quit [Ping timeout: 245 seconds]
<UberNerdGirl> else; n * fibo(n -1); end; end
<UberNerdGirl> how do other people like to do it?
<apeiros_> UberNerdGirl: fibonacci is the sum, not the product of f(n-1) and f(n-2)
<apeiros_> (also, not of n and f(n-1))
<UberNerdGirl> oh shit!
<Hanmac> this n* f(n-1) is the facult
<UberNerdGirl> i got confused with factorial!
xbob has quit [Quit: Leaving]
<apeiros_> recursive fib is actually worse than recursive fac
c0rn has quit [Ping timeout: 256 seconds]
gabot has joined #ruby
<banisterfiend> apeiros_: lulz, "dive into python" made that mistake for the longest time
huoxito has quit [Ping timeout: 258 seconds]
<banisterfiend> it had a function called 'fib' that just calculated factorials
<apeiros_> lol?
<banisterfiend> yeah
<apeiros_> you'd think such stuff gets proofread…
gchristensen has joined #ruby
<UberNerdGirl> lmao
* UberNerdGirl blushes
<UberNerdGirl> forget i wrote that c0d3z!
sk87 has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
<banisterfiend> UberNerdGirl: btw, free 2 days on codeschool if you go via this link: http://go.codeschool.com/WPKwhg
<gchristensen> Hi, is it possible to indicate in a gemspec that it should not be published?
<banisterfiend> UberNerdGirl: lots of good stuff there
arya has joined #ruby
<apeiros_> gchristensen: I don't think so
<banisterfiend> same applies to anyone in here, click that link and you get 2 free days on codeschool -- just mass download all their screencasts :)
<UberNerdGirl> banisterfiend: oh i already purchased a monthly account
<banisterfiend> UberNerdGirl: ah too bad
<UberNerdGirl> i don't make use of their service enough though, rats!
<breakingthings> r00by bits
<UberNerdGirl> i should do it more in the evenings when i am in bed
<breakingthings> rubby bit
<UberNerdGirl> r00by bits
<UberNerdGirl> ribby bits
<Hanmac> UberNerdGirl: i like (1..n).inject(1,:*)
tommyvyo has joined #ruby
<gchristensen> apeiros_: what about a way to specify where it should be published, if it is published?
<UberNerdGirl> Hanmac: WOW!
c0rn has joined #ruby
sambao21 has joined #ruby
<apeiros_> gchristensen: um, there only is one rubygems.org
<apeiros_> gchristensen: so what do you mean by that?
<apeiros_> Hanmac: can shave one off… 2..n ;-)
<Firespore> Ruby gem sounds so nice.
ananthakumaran has quit [Quit: Leaving.]
<UberNerdGirl> apeiros_: bah! trivial optimisation!
<UberNerdGirl> 1..n is more pure!
DarkAce-Z has joined #ruby
<gchristensen> apeiros_: I suppose my ignorance is showing :) I was suspecting it wouldbe possible to direct it at a custom gem server.
kpshek has quit []
<havenwood> banisterfiend: Delicious poem, but couldn't resist the urge to DRY it up a bit. :P puts %w[Blood Eye Fear Wing Bone Granite Violet Guitar Sweat Adam Mary God Nothing Never].map { |begotten| "Who begat #{begotten}" }
<UberNerdGirl> havenwood: oh you are so delightful!
gchristensen has left #ruby ["WeeChat 0.4.0"]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
markalanevans has joined #ruby
<tay1> how do i add an element to an array of hash in a loop?
<UberNerdGirl> Spooner_: checkout havenwood 's ditty
DarkAceZ has quit [Ping timeout: 245 seconds]
<UberNerdGirl> she is so gnarly, i wish she came into Hacker School last batch (then we would have been able to pair program in person!) :D
<tay1> i tried doing << but didnt work
<Hanmac> tay1 show us your code ... maybe you forgot a space
<tay1> one secon
mpfundstein has joined #ruby
<tay1> im using nokogiri, is that ok?
tomzx_mac has joined #ruby
<Hanmac> i think there should be no propbem
<tay1> im just trying to learn nokogiri so i wanted to parse a simple site (craigslist about page) and get a list of cities and the url
<Firespore> tay1, nokogiri should be fine
<tay1> i figured it should be simple enough. i can parse it individually but not all of them at once
|stef_204| has joined #ruby
<UberNerdGirl> havenwood: %w[Blood Eye Fear Wing Bone Granite Violet Guitar Sweat Adam Mary God Nothing Never].map { |begotten| "Who begat #{begotten}" }.join(",") + ("never " * 3)
|stef_204| has quit [Read error: Connection reset by peer]
<UberNerdGirl> oops, mine is really messy and ghastly!
<UberNerdGirl> sorry!
mikurubeam has quit [Read error: Connection reset by peer]
<Hanmac> tay1 cities should be an Array not a Hash, or did you plan something with the hash?
<Spooner_> Oh no, #ruby becomes the home of the beat poets!
<Firespore> UberNerdGirl, it isn't messy really.
danneu has quit [Quit: WeeChat 0.3.8]
<Firespore> You should see my first perl scripts
<tay1> well i figured each city has an url so shouldnt that be in a hash?
gabot has left #ruby [#ruby]
<Firespore> Those are messy
wmoxam has quit [Ping timeout: 245 seconds]
<tay1> im still new to ruby so im trying to understand that as well.
<Firespore> tay1, Yeah
<Firespore> tay1, If it's in the url, it's also in the hash
<tay1> so i figured best would be to have an array of hash right?
<Firespore> i'd say that's a good idea
<havenwood> UberNerdGirl: I'm a he (if you meant me?). My parents named me Shannon, but they didn't know it is usually a girl's name. >.>
<tay1> yeah so thats waht i tried to do cause on irb i tried doing it manually
<UberNerdGirl> OMG!
<UberNerdGirl> All this time I thought you were a she!
<havenwood> Never really got too much grief for Shannon. Actually dated a Shannon in high school.
<tay1> like if i did cities[1] = { :name => "New York" :url => "newyork.craigslist.com" }
<tay1> it works
* UberNerdGirl feels very sheepish!
<Spooner_> tay1, Well, you should use li_doc.each_with_index do |link, i| rather than manually playing with i and citires should be an Array (it contains hashes, it isn't a Hash itself).
<breakingthings> havenwood: it's a male name as well.
<havenwood> UberNerdGirl: Haha! Didn't realize that until you called me she!
<UberNerdGirl> haha!
<UberNerdGirl> hahahaha!
dmonjo has joined #ruby
<UberNerdGirl> well i identify as girl or boy (seriously) depending on my mood
<dmonjo> helo
<dmonjo> is there a libshout library in ruby?
<havenwood> UberNerdGirl: I identify as an algorithm!
<banisterfiend> UberNerdGirl: weird looking boy
maxmanders has quit [Ping timeout: 252 seconds]
stef_204 has quit [Ping timeout: 255 seconds]
huoxito has joined #ruby
DaniG2k has left #ruby [#ruby]
<UberNerdGirl> havenwood: if i were an algorithm, trust me:
<tay1> i changed it a bit
Rudd-XXX has joined #ruby
<UberNerdGirl> I WOULD BE THE A-STAR ALGORITHM!!!!!!!!!!!!!!!!!!!!
<UberNerdGirl> :D
<UberNerdGirl> :D :D :D :D :D
icole has quit [Remote host closed the connection]
zcreative has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
kpshek has joined #ruby
<tay1> but not sure how to add to the array
jbueza has quit [Quit: Leaving.]
samuel02 has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
<swarley> I would be a naive fibbonacci implementation
<tay1> check the updated gist
<Spooner_> tay1, It is a hash, not an array. Should do cities = [] and then cities << { ... } in the loop.
<Spooner_> tay1, You didn't read what I suggested.
s0ber has joined #ruby
dmonjo has left #ruby ["Leaving"]
<tay1> yeah i did it as an array
<tay1> check the updated gist
<UberNerdGirl> swarley: what is the naive fibo?
<Spooner_> each_with_index will give you: |link, i|
maxmanders has joined #ruby
<Spooner_> So you don't need to declare or increment i outside.
BadDesign has quit [Read error: Connection reset by peer]
<tay1> oh sorry i took out the increment
<tay1> forgot to update that part
<swarley> a very inefficient algorithm
<Hanmac> havenwood: so you dated a girl that has the same name as you?, image how funy it would be if you marry she, so that both of you have same first and same surename :PP
<Spooner_> tay1, We usually use [] and {} rather than Array.new or Hash.new unless we need to pass parameters to it.
<UberNerdGirl> HHAHAHHAHAHAHAAH
yashshah has quit [Read error: Connection reset by peer]
<swarley> implementation*
<Sicp> I can simply treat an array like a stack; push/pop
carlyle has quit [Remote host closed the connection]
etcetera has quit []
<UberNerdGirl> Hanmac: that is so funny!
<swarley> Hash.new and Array.new are actually slower
<UberNerdGirl> Hanmac: their names would be repetitive, when we should adhere to DRY!
<havenwood> Hanmac: Hehe, yeah they actually called us the Shani (pronounced shan-eye)...
authenticity25 has quit [Quit: authenticity25]
<tay1> ohok
<UberNerdGirl> Shannon ____ * 2
<tay1> can you check the gist , i pasted the output
<tay1> is that how the correct out put should be but i dont see the index
<havenwood> And then of course we'd have to name any kids Shannon as well...
<Spooner_> tay1, You are still declaring i manually. Also, not using |link, i| as I suggested.
<havenwood> And pets. :P
<tay1> oh im not using i
<tay1> ill take thato ut
<Spooner_> Oh, that is true now. Silly me.
nga4 has quit []
<tay1> should i do cities[i] or cities <<
swounding60 has joined #ruby
<Spooner_> cities <<
<tay1> i assume either should work
<tay1> okay thats waht im using
<tay1> can you check the output i pasted?
jbueza has joined #ruby
<Spooner_> cities[i] would work, but it is easier just to use a stack.
etcetera has joined #ruby
<Hanmac> UberNerdGirl & havenwood: i think the state would not be amused if two persons with the same name would life in the same house :P
<tay1> that looks correct right?
brhelwig has joined #ruby
<UberNerdGirl> Hanmac and, if one were very angry at the other, one could simply steal the other's credit card!!!
akashj87 has quit [Ping timeout: 256 seconds]
stef_204 has joined #ruby
<Spooner_> tay1, I cut out the crap: https://gist.github.com/Spooner/4058b8a81c944f5a5d39
<Hanmac> UberNerdGirl: did you read the books of Terry Pratchett? there was a Fammily of Buttlers and Servants for evil Scientists or other like Vampires and Werewolfs, and all called Igor to avoid confusion :P
<tay1> cool. thanks
endzyme has quit [Remote host closed the connection]
<Spooner_> tay1, Note that #{} automatically does to_s for you.
<apeiros_> Spooner_: cities.each {|c| puts c } -> puts cities
<tay1> ohok
* Firespore licks UberNerdGirl
<Firespore> Your ruby skills are admirable
cearls has quit [Remote host closed the connection]
<apeiros_> Spooner_: also take_while :)
wolcanus has joined #ruby
<UberNerdGirl> eugh
<UberNerdGirl> that is so sick
<Spooner_> apeiros_, Well, OK, you could do that, but I'm guessing that a real implementation would want to format the output.
* UberNerdGirl vomits vile on Firespore , watching his skin sizzle and fall to the ground, revealing flesh and bone
<apeiros_> Spooner_: hm?
<Firespore> vile
<apeiros_> UberNerdGirl: please behave. Firespore, you too.
<UberNerdGirl> s/vile/bile
freerobby has quit [Quit: Leaving.]
<apeiros_> Spooner_: take_while, then map
yashshah has joined #ruby
<Spooner_> apeiros_, And take_while doesn't work, since tay1 wants everything up to and including a certain city. If the break was before the push, take_while would work fine.
<apeiros_> ah, that's a problem (the including part)
picca has joined #ruby
<UberNerdGirl> no way
<UberNerdGirl> I am exonerated
etcetera has quit []
Tricon has quit [Ping timeout: 260 seconds]
<Spooner_> apeiros_, I mean that a more sensible output might be cities.each {|c| puts "name: #{c[:name]} url: #{c[:url]}" } so it makes sense to move that way rather than use the most optimised code that doesn't easily allow that change.
endzyme has joined #ruby
<UberNerdGirl> Spooner_: it's called 25_blahblahblah...
<UberNerdGirl> sorry, that was spposed to be a PM
<apeiros_> Spooner_: well, if you're after sensible, then it should be classes :)
<apeiros_> and then mapping and printing are separate anyway
jacobjuul has joined #ruby
<Spooner_> apeiros_, Yeah and that is what we should be suggesting to someone who doesn't know the differences between Hashes and Arrays :P
* apeiros_ wonders whether node_a..node_b would work with nokogiri nodes…
Firespore has quit [Changing host]
Firespore has joined #ruby
<apeiros_> Spooner_: yupp. hammer-time!
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
pen has joined #ruby
jacobjuul has left #ruby [#ruby]
Goles has quit [Quit: Computer has gone to sleep.]
<Hanmac> apeiros_ ... depends ... i think it may be this freaky flipflop stuff
etcetera has joined #ruby
ffranz has quit [Quit: Leaving]
carraroj has quit [Quit: Konversation terminated!]
<apeiros_> Hanmac: no, I mean ranges
arturaz has quit [Ping timeout: 252 seconds]
<apeiros_> i.e. so you could iterate "from node until node"
picca has quit [Quit: Linkinus - http://linkinus.com]
picca has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
davetherat has quit [Remote host closed the connection]
razibog has quit [Ping timeout: 264 seconds]
<Spooner_> apeiros_, You can Range up anything with #succ, I think, but a node is not necessarily knowing its successor within the structure it is in.
davetherat has joined #ruby
picca has quit [Client Quit]
<apeiros_> Spooner_: siblings
pencilcheck has quit [Ping timeout: 258 seconds]
brandon|work has quit [Ping timeout: 240 seconds]
<apeiros_> question is whether a) Node has succ at all, and b) if it has, whether it's siblings or depth-first traverse
<Spooner_> For example, if you get all the links, then that is different to all the links who match /\Afrog_/
<Spooner_> Thus, it doesn't, as such, have a successor, since it can exist in different collections/result sets.
artofraw has quit [Remote host closed the connection]
Giorgio has joined #ruby
workmad3 has joined #ruby
Tricon has joined #ruby
<apeiros_> Spooner_: you get that part wrong
forrest has quit [Quit: Leaving]
tommyvyo has quit [Quit:]
seich- has quit [Quit: See you guys later]
<apeiros_> I don't know all rules which Range requires by heart, but even assuming it required that begin and end can meet through .succ (and I think it doesn't, but I'm fuzzy on the details), that'd still be easy enough to test
<apeiros_> aha, Range would be another candidate for improved docs…
<Spooner_> Oh my, a random check and Array..Array is valid!
<banisterfiend> apeiros_: have you ever had to use custom ranges for your own objects
trend has quit [Ping timeout: 245 seconds]
jonahR has quit [Quit: jonahR]
eykosioux has joined #ruby
<banisterfiend> ever wanted to*
Firespore has quit [Quit: a PENIS of unexpected length was received]
maligree has joined #ruby
<apeiros_> Spooner_: I think it needs .succ and <=>
v0n has quit [Quit: WeeChat 0.4.0]
<apeiros_> seems to be more though
<apeiros_> now it complains about respond_to? :)
hadees has quit [Quit: hadees]
<Spooner_> apeiros_, Fair enough. The problem is not so much its interface as whether or not it has fixed position, since you are often cherry-picking the tags.
brandon|work has joined #ruby
<apeiros_> with (a..b), it first checks for to_str
<apeiros_> Spooner_: as said, easy enough to test
<apeiros_> html (after dom is repared) and xml are well defined with regards to that
<Spooner_> I'm sure it is easy enough to implement if the node should know its position.
Bosox20051 has quit [Quit: Leaving]
mootpointer has joined #ruby
<apeiros_> errr, it definitively should
<apeiros_> no dom manipulation otherwise :-p
<apeiros_> and it I know that in nokogiri does
generalissimo has quit [Remote host closed the connection]
jpcamara_ has quit [Quit: jpcamara_]
etcetera has quit [Ping timeout: 264 seconds]
jjbohn has joined #ruby
<Spooner_> Yes, but its place in the dom (or even if it is in the dom) can change, which makes ranges floppy.
<Eiam> guys, help, I'm being pulled back into Python world! ;)
<Eiam> we are going to deploy some Plone thing
<apeiros_> Spooner_: ever tried to manipulate a hash during iteration?
<apeiros_> Spooner_: you're drawing up solved problems
<apeiros_> Eiam: have fun
<Spooner_> OK, fair enough.
<apeiros_> hehe, Array#inspect fails if it contains BasicObject instances
etcetera has joined #ruby
icole has joined #ruby
mmitchell has quit [Ping timeout: 258 seconds]
thams has joined #ruby
hmarr has quit []
wyhaines has joined #ruby
colonolGron has quit [Quit: leaving]
geggam_wk has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
sambio has quit [Remote host closed the connection]
sambio has joined #ruby
wyhaines has quit [Remote host closed the connection]
grenzr has quit [Quit: grenzr]
yshh has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> apeiros_ what did you think about the error message: "undef leaked to the Ruby space" ? :D i found it in the ruby code :P
<apeiros_> Hanmac: for Qundef?
<banisterfiend> Hanmac: wow how did you get that error?
<apeiros_> interesting guard
<Hanmac> yeah :P
yshh has joined #ruby
<Hanmac> banisterfiend i didnt get it, i only find it
<apeiros_> probably sensible. but my C sucks :)
cantonic has quit [Quit: cantonic]
dash_ has joined #ruby
gyre007 has quit [Ping timeout: 272 seconds]
jjbohn has quit [Ping timeout: 245 seconds]
lancepantz is now known as lancepantz_
mfridh has quit [Read error: Operation timed out]
codecop has quit [Remote host closed the connection]
<Hanmac> what i also like is :"method `%s' called on unexpected %s object" :D
huoxito has quit [Ping timeout: 258 seconds]
seich- has joined #ruby
<sam113101> >> b['b']
<eval-in> sam113101 => /tmp/execpad-476c76f6a88d/source-476c76f6a88d:2:in `<main>': undefined local variable or method `b' for main:Object (NameError) (http://eval.in/13098)
failshell has quit [Remote host closed the connection]
mfridh has joined #ruby
<Hanmac> >> :b['b']
<eval-in> Hanmac => "b" (http://eval.in/13099)
<Hanmac> >> ?b['b']
<eval-in> Hanmac => "b" (http://eval.in/13100)
bitcrave has quit [Ping timeout: 264 seconds]
<sam113101> what's ?b
carloslopes has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
<sam113101> >> test = {}; test['wat']
<eval-in> sam113101 => nil (http://eval.in/13101)
<Hanmac> "b"[0] == ?b # this is true for both 1.8 and 1.9
<Spooner_> sam113101, ?b == 'b'
r0bby has joined #ruby
freerobby has joined #ruby
<bean> >> "b"[0] == ?b
<eval-in> bean => true (http://eval.in/13102)
vlad_starkov has quit [Remote host closed the connection]
<sam113101> >> 'test' == ?test
<eval-in> sam113101 => /tmp/execpad-92de560597ba/source-92de560597ba:2: syntax error, unexpected '?' ... (http://eval.in/13103)
<Spooner_> Hanmac, Thought you'd given up on 1.8? :)
<Hanmac> Spooner_ 1.8 gives you ?b => 98
huoxito has joined #ruby
<Spooner_> Yes, but 1.8 is dead. Long live 1.8 ;)
<Hanmac> Spooner_ yeah i give, i only answer "why" is ?b
tommyvyo has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
rickmasta has joined #ruby
tmiller has joined #ruby
<Hanmac> sam113101, ?x only works for chars
<bean> >> ?b
<eval-in> bean => "b" (http://eval.in/13104)
<Hanmac> not for strings
axl_ has quit [Quit: axl_]
lancepantz_ is now known as lancepantz
<sam113101> why does it even exist though? what's the point
<bean> avoids a char
<bean> :P
<bean> just alternate synta
<bean> x
<bean> i'd say
<Spooner_> Why do we have :frog rather than !frog! ;)
<Hanmac> sam113101: to get this line: "b"[0] == ?b worknig on both ruby versions
<apeiros_> >> ?\C-c
<eval-in> apeiros_ => "\u0003" (http://eval.in/13105)
<sam113101> !test!.class
<sam113101> >> !test!.class
<eval-in> sam113101 => /tmp/execpad-a688b3204023/source-a688b3204023:2:in `<main>': undefined method `test!' for main:Object (NoMethodError) (http://eval.in/13106)
<bean> >> !test!.class
<eval-in> bean => /tmp/execpad-259d23236fc6/source-259d23236fc6:2:in `<main>': undefined method `test!' for main:Object (NoMethodError) (http://eval.in/13107)
<breakingthings> ¡test!.arriba!
<bean> lol
<Spooner_> :D
<apeiros_> sam113101, bean: eval-in is only there for demonstration purposes. use irb to try stuff.
<bean> valid.
<Hanmac> !test! is valid ruby code
dannluciano has joined #ruby
<Hanmac> +++++++++++++++++++++++i for sample is valid ruby code too
cantonic has joined #ruby
dash_ has quit [Ping timeout: 245 seconds]
etcetera has quit [Ping timeout: 276 seconds]
dash_ has joined #ruby
jlast has joined #ruby
icole has quit [Ping timeout: 255 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
cableray has joined #ruby
etcetera has joined #ruby
<otters> > ++++++++++++++++++++++++++++++++++++++++3
hadees has joined #ruby
<otters> oh whoops
<otters> weel i ain't typing that again
<sam113101> >> +++++++++++++++++++++++++++++++++++1
<eval-in> sam113101 => 1 (http://eval.in/13108)
kpshek has quit []
<Hanmac> each + is a method call(maybe exept the first) ... tomorrow i will write a sample where you can use +i as increment and -i as decrement :P
mattbl has joined #ruby
picca3 has joined #ruby
tay11 has joined #ruby
tay1 has quit [Read error: Connection reset by peer]
Wardje has left #ruby [#ruby]
lancepantz is now known as lancepantz_
cmarques has quit [Ping timeout: 252 seconds]
<atmosx> black mirror might be the best series I've seen in a while
BigFatFatty has left #ruby [#ruby]
Morkel has quit [Quit: Morkel]
germanstudent has quit [Ping timeout: 248 seconds]
picca3 has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
tmiller has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
r0bby is now known as robbyoconnor
Rudd-XXX has quit [Ping timeout: 248 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
_nitti has quit [Remote host closed the connection]
dash_ has quit [Quit: Computer has gone to sleep.]
p8952_ has joined #ruby
emergion has joined #ruby
Tricon has quit [Quit: Linkinus - http://linkinus.com]
arya has quit []
h4mz1d has joined #ruby
picca3 has joined #ruby
ZachBeta has joined #ruby
emaiax has joined #ruby
brhelwig has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
p8952 has quit [Ping timeout: 276 seconds]
skattyadz has joined #ruby
mpfundstein has quit [Remote host closed the connection]
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
picca3 has quit [Client Quit]
gstudent2 has joined #ruby
TooTubular has quit [Quit: Linkinus - http://linkinus.com]
mpfundstein has joined #ruby
Mon_Ouie has quit [Ping timeout: 258 seconds]
pskosinski has joined #ruby
<tent4051> is that a ruby tutorial?
emergion has quit [Ping timeout: 264 seconds]
<tent4051> atmosx: ?
kpshek has joined #ruby
newUser1_ has quit [Remote host closed the connection]
tent4051 has left #ruby [#ruby]
fredwu has joined #ruby
skattyadz has quit [Ping timeout: 256 seconds]
gstudent2 is now known as germanstudent
headius has joined #ruby
<Spooner_> atmosx, Aye, I enjoyed both series of BM a lot, though not all episodes were quite as sharp.
kpshek has quit [Client Quit]
Rudd-XXX has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
jeffreybaird has left #ruby [#ruby]
Goles has joined #ruby
nopolitica has joined #ruby
emaiax has quit [Remote host closed the connection]
nopolitica has quit [Client Quit]
jonahR has joined #ruby
jonahR has quit [Client Quit]
stef_204 has quit [Quit: quitting]
hasimo-t has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
endzyme has quit [Remote host closed the connection]
elux has quit [Ping timeout: 256 seconds]
javos has joined #ruby
elaptics`away is now known as elaptics
mattbl has joined #ruby
picca3 has joined #ruby
joofsh has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
megha has joined #ruby
baba has quit [Ping timeout: 245 seconds]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
bradhe_ has joined #ruby
wolcanus has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
banseljaj is now known as imami|afk
cantonic has joined #ruby
icole has joined #ruby
bradhe_ has quit [Ping timeout: 256 seconds]
Goles__ has joined #ruby
sambao21 has joined #ruby
Goles has quit [Ping timeout: 252 seconds]
DrShoggoth has joined #ruby
<Sicp> when 'a'..'z' means that whenever you encounter anything from that alphabet, yes?
mattbl has quit [Quit: This computer has gone to sleep]
<Sicp> I should try and see..but then again I probably should get something to eat...
<gf3> Sicp: Anything in the range of a to z
<Sicp> thanks girlfriend3
Goles has joined #ruby
Goles has quit [Remote host closed the connection]
Tricon has joined #ruby
thams has quit [Quit: thams]
bradhe has joined #ruby
<gf3> NP Structure and Interpretation of Computer Programs
tealmage has joined #ruby
<Sicp> :))
adkron has quit [Ping timeout: 264 seconds]
<Sicp> so much for SICP, I'm an embarrassment
banjara has joined #ruby
<Sicp> I want to have the same case for 'a' and for 'b'
<Sicp> same needs to be done for both
banjara has left #ruby [#ruby]
<Sicp> and same needs to be done for numbers
<Sicp> 0 through 9
<Sicp> how do I say that
Goles__ has quit [Ping timeout: 245 seconds]
<gf3> Sicp: Use a comma
<gf3> when 'one', 'two'
<Sicp> ah, I was using ||
sambio has quit [Remote host closed the connection]
zcreative has quit [Quit: Computer has gone to sleep.]
sambio has joined #ruby
jpcamara has joined #ruby
mercwithamouth has joined #ruby
codenapper has joined #ruby
Goles has joined #ruby
Goles has quit [Max SendQ exceeded]
Goles has joined #ruby
fredwu has left #ruby ["It's a trap!!"]
skattyadz has joined #ruby
codenapper has quit [Client Quit]
Goles has quit [Max SendQ exceeded]
cantonic has quit [Quit: cantonic]
Xeago has joined #ruby
sambio_ has joined #ruby
tenmilestereo has quit [Quit: Leaving]
Goles has joined #ruby
Goles has quit [Max SendQ exceeded]
sambio has quit [Read error: Connection reset by peer]
Goles has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
Goles has quit [Remote host closed the connection]
freeayu has joined #ruby
picca3 has quit [Quit: Linkinus - http://linkinus.com]
freerobby has quit [Quit: Leaving.]
Zai00 has joined #ruby
aeontech has joined #ruby
tealmage has quit [Remote host closed the connection]
alanp_ has joined #ruby
anonymuse has quit [Quit: Leaving...]
Davey_ has joined #ruby
vlad_starkov has joined #ruby
<Sicp> so I've got my input.each_char do |single_char|
thams has joined #ruby
Inside has joined #ruby
osgux has joined #ruby
<osgux> Hi!
<Sicp> it's reading the input String, char by char and it does it from end to beginning
<osgux> again..
<Sicp> I want it to read the String, char by char by from right to left
<osgux> i have this problem with rake
<osgux> ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task'
<Sicp> I mean left to right, sorry
Sep1 has joined #ruby
alanp has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Quit:]
<Sep1> hi guys, can I ask you for a little help? I have a string like this: " $199.00 " and I would get 199.00. I am trying to find a regexp that would remove from string everything except numbers and "." … any tip how to make this regexp? Thank you
vlad_starkov has quit [Ping timeout: 245 seconds]
tealmage has joined #ruby
<aedorn> Sep1: delete('^[0-9.]') ... you don't need regex for that.
ZachBeta has quit [Quit: Computer has gone to sleep.]
piotr_ has quit [Ping timeout: 245 seconds]
mootpointer has quit [Quit: Exit, pursued by a bear.]
<Sep1> thank you!
dustint has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
nfk has quit [Quit: yawn]
ZachBeta has joined #ruby
tcstar has quit [Remote host closed the connection]
angusiguess has joined #ruby
someone has joined #ruby
jdunck has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
someone is now known as Guest60916
rupee has quit [Ping timeout: 240 seconds]
jdunck has joined #ruby
AllStruck has quit [Ping timeout: 252 seconds]
adkron has joined #ruby
alanp_ is now known as alanp
jpcamara has quit [Quit: jpcamara]
AllStruck has joined #ruby
UberNerdGirl has quit [Quit: UberNerdGirl]
Hanmac has quit [Ping timeout: 252 seconds]
zeade has quit [Quit: Leaving.]
eliasp has quit [Quit: No Ping reply in 180 seconds.]
maletor has quit [Ping timeout: 252 seconds]
eliasp has joined #ruby
realDAB has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
ArchBeOS has quit [Quit: Leaving]
yashshah has joined #ruby
maletor has joined #ruby
osgux has quit [Quit: Page closed]
Sicp has quit [Quit: Leaving]
UberNerdGirl has joined #ruby
jcsims has joined #ruby
jcsims has quit [Client Quit]
tmiller has joined #ruby
chrishough has quit [Quit: chrishough]
hasimo-t has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
Guest60916 is now known as [rupee]
hadees has quit [Quit: hadees]
hasimo-t has joined #ruby
Spooner_ has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
zcreative has joined #ruby
tmiller has quit [Ping timeout: 258 seconds]
zcreative has quit [Client Quit]
Spooner has joined #ruby
jeffreybaird has joined #ruby
Hanmac has joined #ruby
DarkAce-Z is now known as DarkAceZ
DarkAceZ has quit [Changing host]
DarkAceZ has joined #ruby
jcsims has joined #ruby
<Xeago> apeiros_: http://www.youtube.com/watch?v=aGXEmIJtZWw apollo goes over things you seem to have issues with
<Xeago> might be of help
hmarr has joined #ruby
zcreative has joined #ruby
avalarion has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<UberNerdGirl> ping Spooner are you still there?
xcv has joined #ruby
chrishough has joined #ruby
Zai00 has quit [Quit: Zai00]
thone_ has joined #ruby
<Xeago> apeiros_: maybe not, the replay is awful..
<Spooner> UberNerdGirl: Yup, around and about.
<Xeago> but the educational commentary is reasnable
<UberNerdGirl> Spooner: :D
trend has joined #ruby
faulkner has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
jbueza has quit [Quit: Leaving.]
Trudko has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 1.9.0.17/2009122204]]
jbueza has joined #ruby
atyz has quit [Quit: Leaving]
Spooner has quit [Quit: And...be right back again.]
lewis has joined #ruby
thone has quit [Ping timeout: 245 seconds]
Spooner has joined #ruby
backjlack has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
cupakromer has left #ruby [#ruby]
mrsolo has quit [Quit: Leaving]
forced_request has joined #ruby
SCommette has quit [Quit: SCommette]
javos has quit [Quit: javos]
danneu has joined #ruby
huoxito has quit [Quit: Leaving]
hiroyuki has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
hiroyuki has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
bigoldrock has quit [Remote host closed the connection]
hmarr has quit []
mercwithamouth has quit [Ping timeout: 276 seconds]
mercwithamouth has joined #ruby
<Eiam> what object is being passed into the method here? https://gist.github.com/anonymous/04a66b3d2794bafb7ade
Tricon has quit [Quit: Leaving...]
chimkan has joined #ruby
<Eiam> is that a hash?
chimmy has joined #ruby
<MrZYX> yes, on ruby2.0 it could be keyword arguments, depending on the method definition
<UberNerdGirl> Ahoy, Spooner the saucy slattern!
<Eiam> I belive its 1.9.3 only
<Eiam> so why doesn't he have to say "certificate": "/path"
<MrZYX> that would actually be invalid syntax in ruby
<Eiam> sublime text doesn't like that syntax because it thinks there is a symbol
tish has quit [Quit: Leaving.]
<MrZYX> foo: "bar" is another way to write :foo => "bar"
jjbohn has joined #ruby
<MrZYX> there is a symbol
aaronmcadam has quit [Ping timeout: 260 seconds]
SecretAg1nt is now known as SecretAgent
<Eiam> MrZYX: oh please tell me you are kidding
<Eiam> foo: is still a symbol?
<MrZYX> yes
<Eiam> god damnit ruby
<Eiam> stop being so damn open and just pick a convention and stick with it
Faris has joined #ruby
<shevy> hehe
xardas has quit [Ping timeout: 260 seconds]
<shevy> Eiam foo: came later
<shevy> internally it is still :foo
youdontmeanmuch has quit [Read error: Connection reset by peer]
<shevy> I recommend to everyone to never use foo:
* UberNerdGirl drove her shevy to the levy but the levy was dry.
<MrZYX> gonna be a hard time on 2.0 shevy
Tricon has joined #ruby
<Eiam> so he could have written that as method({ :certificate => "path"}), or method( certificate: "path") or method("certificate" => "path") or method({"certificate"=>"path"}) ?
rwilcox has quit []
Giorgio has quit [Remote host closed the connection]
<MrZYX> :certificate => "path" and "certificate" => "path" is not the same
<breakingthings> not that I know the particular method you are looking at but… what Zyx said
jamesfung14 has joined #ruby
dEPY has quit []
<breakingthings> :cert => "path" is eq to cert: "path"
chipotle_ has joined #ruby
<breakingthings> thassit.
<Eiam> right but because its the last entry in the method
<Eiam> you can ommit { }
<Eiam> but its valid to include them too no?
slainer68 has joined #ruby
jjbohn has quit [Quit: Leaving...]
Sep1 has quit [Quit: Leaving.]