Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
_whitelogger joined #ruby
Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
<zaarg> i have a list and i want to grep it for things that don't contain a. what's the right reg exp? or do i negate the reg exp? or do i list each character individually...
pac1 joined #ruby
xol joined #ruby
Adman65 joined #ruby
RLa left #ruby
dyer joined #ruby
replore_ joined #ruby
dnyy joined #ruby
macabre joined #ruby
tdubellz joined #ruby
wookiehangover joined #ruby
diverdude joined #ruby
RyanV joined #ruby
looopy joined #ruby
radic joined #ruby
Hellojere joined #ruby
xol joined #ruby
j3r0m3 joined #ruby
xpot joined #ruby
bbttxu joined #ruby
Targen joined #ruby
<shevy> zaarg one thing at a time
<shevy> you have an Array right?
<shevy> a common idiom may be to apply .reject on your array
<shevy> %w( abc def ghi ).reject {|x| ! x.include? 'a' } # => ["abc"]
<terraUNDverra> zaarg: array.select { |v| v !~ /a/ }
tomzx joined #ruby
<terraUNDverra> shevy: how did u feel about bruno being a homosexual austrian
<iamjarvo> so say i knew that 1 euro was 1 australian dollar and 2 australian dollars was 1 us dollar what strategy would i do find the value of euros in u.s dollars
<iamjarvo> disclaimer this is for the puzzlenode, and i do not intend to submit this
<terraUNDverra> iamjarvo: go back to highschool and learn basic math?
<iamjarvo> terraUNDverra haha good one. but from a programming perspective
<shevy> terraUNDverra who the fuck is bruno
<shevy> iamjarvo math is programming and programming is math
<shevy> why do you send me gay things terraUNDverra :(
mxweas_ joined #ruby
<terraUNDverra> shevy: cos bruno is gay,
<shevy> who the fuck is bruno!!! and why are you obsessed with bruno
macmartine joined #ruby
pen joined #ruby
shikamaru joined #ruby
nerded joined #ruby
denysonique joined #ruby
pen joined #ruby
Clooth joined #ruby
ignisf joined #ruby
wyhaines joined #ruby
pen_isident joined #ruby
denysonique joined #ruby
Guest73655 joined #ruby
thecreators joined #ruby
macmartine joined #ruby
nari_ joined #ruby
steph021 joined #ruby
steph021 joined #ruby
jwmann joined #ruby
wedgeV joined #ruby
josh___ joined #ruby
brianherman joined #ruby
rboyd left #ruby
kaneda joined #ruby
emocakes joined #ruby
<qiyong> where is the rails binary installed by gems?
Adman65 joined #ruby
skrewler joined #ruby
xol joined #ruby
looopy joined #ruby
marcuspat joined #ruby
dotnull joined #ruby
namidark joined #ruby
<qiyong> is there a command by gems that i can list all files from a gem? like dpkg -L
<namidark> Is there a way I can use HashwithIndifferentAccess in ruby?
dotnull joined #ruby
<terraUNDverra> qiyong: are you chinese?
<qiyong> terraUNDverra: offtopic
monkey13 joined #ruby
poseidon_work joined #ruby
<terraUNDverra> qiyong: it would help me answer your question as the chinese world view is very different to the western one and i'd have to select my words and categories carefully so as to prevent any ambiguity and misunderstandings. I have some experience with the chinese mind as i lived there for a while and i know the difficulties that exist in cross cultural communication
brianherman joined #ruby
<poseidon_work> anyone know where I can find gems 1.4?
<poseidon_work> trying to install redmine
brianherman joined #ruby
dotnull joined #ruby
daniel__ joined #ruby
daniel__ joined #ruby
<poseidon_work> I was able to find 1.8 with ease. though finding 1.4 is a little more difficult
rsampaio joined #ruby
sysuaf joined #ruby
Eaven joined #ruby
roaminghorse joined #ruby
<qiyong> i get Invalid gemspec in [/var/lib/gems/1.8/specifications/json-1.6.1.gemspec]: invalid date format in specification: "2011-09-18 00:00:00.000000000Z"
<qiyong> how to repair?
rhinux joined #ruby
<qiyong> terraUNDverra: i don't think that's a barrier to me
<qiyong> terraUNDverra: chinese are human too, not animials
dyer joined #ruby
ksinkar joined #ruby
Rango joined #ruby
nanoyak joined #ruby
monkey13 joined #ruby
Bardosity joined #ruby
dbgster joined #ruby
<Bardosity> Finally got my first Ruby project
<Bardosity> I might be here a lot in the future :)
CannedCorn joined #ruby
fatguylaughing joined #ruby
CannedCorn joined #ruby
terraUNDverra joined #ruby
zodiak joined #ruby
sean_m joined #ruby
<terraUNDverra> ;)
brianherman joined #ruby
cbuxton1 joined #ruby
<qiyong> terraUNDverra: plz non of my business, i do not live there and refuse to move there, that evil city.
<qiyong> terraUNDverra: and they deserve it, i hate them
<qiyong> period
raz joined #ruby
<raz> how do i access an instance attribute that has no attr_reader?
<qiyong> terraUNDverra: plz, there's things much worse than that
<qiyong> the system got problems, not the people
<qiyong> and that's why it became a shocking news
<qiyong> passers-by's have their reason to not help. anyway not their fault.
<qiyong> if put you in such a system, you may become much worse than them. trust me.
p0y joined #ruby
satyavvd joined #ruby
tomzx joined #ruby
<terraUNDverra> qiyong: the system you talk about, all it was was ONE case where someone helped an old person and was prosecuted as the person who injured them in teh first place --- but even in that one case, he was eventually acquitted due to public outcry.
<terraUNDverra> qiyong: so that is not strong enough to explain nobody helping the girl
<terraUNDverra> qiyong: seems chinese use a lot of excused to explain away their lack of basic morality
<terraUNDverra> qiyong: no one believed it
looopy joined #ruby
<qiyong> terraUNDverra: some/many never got acquitted
<qiyong> terraUNDverra: the law doesn't protect innocent helpers
<qiyong> terraUNDverra: if law doesn't protect morality, most people would lost their morality
<terraUNDverra> qiyong: i know some chinese in my country, and they are all very selfish people. Even someone does something for them they do not say thankyou, they only think about themeslves. It is a problem with the people as much as it is the system
<qiyong> terraUNDverra: i'm glad those wastes dumped to your country.
d3vic3 joined #ruby
<qiyong> terraUNDverra: the imoralities get the chance to money, then the chance to imigrate. simple
jfredett joined #ruby
<terraUNDverra> qiyong: ok
<qiyong> terraUNDverra: in the world, we are the only place where buddism doctrines are well preserved. so there's hope.
<terraUNDverra> qiyong: buddhism is stronger there than Taoism?
<qiyong> terraUNDverra: so you know nothing. don't tell me you've been here
<qiyong> terraUNDverra: i'd say probably 50% chinese are evil. 40% are doing wrongs without awarness.
<qiyong> still 10% pure poeple left
<terraUNDverra> qiyong: there is a quote "you wont like what comes after america", and i think it is right if china comes after america
<qiyong> terraUNDverra: what that mean?
<terraUNDverra> qiyong: if china replaces america as the primary world superpower, it will not be a good thing
<emocakes> http://i.imgur.com/MILzC.jpg terraUNDverra
wedgeV joined #ruby
<qiyong> terraUNDverra: by the way, next time you met a selfish chinese in you country, pass my words: i, one chinese from north-east china despite you. you lose face. away from china.
<terraUNDverra> qiyong: i love u
<terraUNDverra> qiyong: are you from szechuan
<qiyong> no
<qiyong> szechuan is the south-west
<terraUNDverra> qiyong: oh ok, i have met nice people there anyway
* araujo has been in China ... and loves it there
<qiyong> szechuan people are genarally good
<araujo> _all_ people were so nice with me
<terraUNDverra> qiyong: szechuan women have spicy personalities
* araujo wants to visit again
<qiyong> terraUNDverra: different from the rest parts
<terraUNDverra> araujo: it's creepy to talk about yourself in the 3rd person like that
* araujo has no idea what terraUNDverra is talking about :)
<araujo> qiyong, I only visited the south , ... nice people, delicious sweet food, ..... I have heard north is more awesome :)
<qiyong> araujo: south a bit wet
zenergi joined #ruby
<araujo> qiyong, was extremely hot/humid in summer ....
<qiyong> araujo: china is like things in europe
<qiyong> north and south people speak differently, look differently
<araujo> qiyong, I was told that
<araujo> different kind of food, customs, ..... and so on
<qiyong> derived from different races
<qiyong> silightly
<qiyong> i'm tired of random shocking news
<qiyong> the run over toddler deserve it. her mother came to such a evil city to contribute
RyanV joined #ruby
<qiyong> the taxi took the longer route on purpose when i was there, if it's the city shenzhen
<qiyong> in my city, that's unimaginable.
<araujo> qiyong, what is your city?
<qiyong> and the driver would be beaten
<qiyong> Dalian
<araujo> north city right?
<qiyong> right
* araujo hopes to visit north next time :)
<araujo> I worry about the weather though ... I have heard north can get very extreme (cold/hot/storms) weather
<qiyong> -10 degree
<araujo> qiyong, but that can reacher lower? ... for example in Beijing?
<araujo> reach*
<qiyong> -15 in beijing
<araujo> qiyong, that is usually the lower temperature?
j3r0m3 joined #ruby
<qiyong> araujo: i guess so. most of the time, you stay you buildings, why care
looopy joined #ruby
<araujo> qiyong, I don't like too cold
wyhaines joined #ruby
<araujo> but I heard it could be much colder than -15 in the north
ryanf joined #ruby
<qiyong> araujo: -20 for some days
acts_as_david joined #ruby
goodieboy joined #ruby
sythe joined #ruby
sythe joined #ruby
Cervajz joined #ruby
Eaven joined #ruby
xol joined #ruby
Targen joined #ruby
iamjarvo joined #ruby
sdwrage joined #ruby
poseidon_work left #ruby
iDespera` joined #ruby
x0F__ joined #ruby
robyurkowski joined #ruby
nanoyak joined #ruby
pencilcheck joined #ruby
travisjeffery joined #ruby
pen__ joined #ruby
mksm joined #ruby
travisjeffery joined #ruby
travisjeffery joined #ruby
travisjeffery joined #ruby
<rcs> Anyone happen to be familiar with MongoMapper? Calling something like artist.books.published (published is a scope) works, but artist.books.send(:published) doesn't. Happening through a proxy_association delegation. How would I send a call like that without using the obj.method notation?
sayem joined #ruby
<sullx> whats a good way to grab multiple strings from one large string like "foo\r\nbar\r\nbaz\r\nfoo\r\n" and dump each individual string into an array
<rcs> What do you want to match out of that?
<sullx> foo, bar, and baz
<rcs> Not the second foo?
<sullx> yes, for the second foo.
<sullx> foo, bar, and baz, foo
fixl joined #ruby
marting_ joined #ruby
<rcs> sullx: [4] pry(main)> "foo\r\nbar\r\nbaz\r\nfoo\r\n".scan(/^.+\r$/) returns an array for each matched
<rcs> I can't get rid of the \r, sadly.
<rcs> But str.scan is what you want.
<mksm> any alternative to rmagick?
<sullx> perfect! what is the regex your using?
<rcs> You can do something like "foo\r\nbar\r\nbaz\r\nfoo\r\n".scan(/^(.+)[\r]$/) , but that returns [['foo'],['bar'] etc
<sullx> mksm, light weight or a comparable library?
<rcs> sullx: /^.+$/
<rcs> Match between the start and end of line.
<mksm> sullx, comparable
<rcs> But if you just want to do that, you might also consider splitting the string.
marcuspat joined #ruby
<mksm> actually i need some recent imagemagick routines that are not mapped into rmagick
macmartine joined #ruby
<rcs> mksm: I went down a rabbit hole with rmagick ,and just now started execing the command line things instead :-/
<shevy> mksm hmm isn't rmagick dead?
<mksm> shevy, it is.
<mksm> rcs, yeah, i'm doing that but it spawns a ton of processes
tomzx joined #ruby
<mksm> and the server goes kaboom :D
<rcs> You may very well be able to be a lot more clever with what you do with the command line.
ryanf joined #ruby
xol joined #ruby
<mksm> rcs, so it wouldn't spawn so many child processes?
<Bardosity> How do I set the default ruby version? rvm use 1.9.3 only lasts for the current session but then defaults back to the system
<rcs> mksm: Yeah. You can do a lot with a single convert command, for instance.
<mksm> rvm use --default
j3r0m3 joined #ruby
<Bardosity> thanks mksm :)
<mksm> rcs, yes, it's already chaining a bunch of stuff in a single convert command. Problem is that I have to fetch an image, run convert on it and then store it.
<mksm> And I can't download all the images and THEN run convert.
epochwolf joined #ruby
<rcs> Ah, yeah. So a proc per image.
<mksm> Yeah that's the problem ...
looopy joined #ruby
raincole joined #ruby
xol_ joined #ruby
monkey13 joined #ruby
Cervajz joined #ruby
radic joined #ruby
rhinux joined #ruby
gianlucadv joined #ruby
ksinkar joined #ruby
radmacd joined #ruby
pen joined #ruby
kawa_xxx joined #ruby
minijupe joined #ruby
jetblack joined #ruby
LittleBill902 joined #ruby
ABK joined #ruby
LittleBill902 joined #ruby
a_a_g joined #ruby
bluOxigen joined #ruby
<Bardosity> I don't suppose anyone here used Rhodes or has developed with Rhomobile?
<shevy> not me
robyurkowski joined #ruby
trivol joined #ruby
Beoran_ joined #ruby
mengu joined #ruby
pen joined #ruby
jetblack joined #ruby
terraUNDverra joined #ruby
michael_mbp joined #ruby
apok joined #ruby
poseidon joined #ruby
<poseidon> anyone know of a good guide for installing redmine?
<poseidon> specifically for centos with apache
Draco_ joined #ruby
terraUND_ joined #ruby
dnyy joined #ruby
goodieboy joined #ruby
j3r0m3 joined #ruby
looopy joined #ruby
gh joined #ruby
diverdude joined #ruby
a_a_g joined #ruby
a_a_g joined #ruby
mikeric joined #ruby
advorak joined #ruby
looopy joined #ruby
xol joined #ruby
acts_as_david joined #ruby
j3r0m3 joined #ruby
wookiehangover joined #ruby
Indian joined #ruby
savage- joined #ruby
terraUNDverra joined #ruby
roaminghorse joined #ruby
nomadmonad joined #ruby
randym joined #ruby
tugosavi_ joined #ruby
yumike joined #ruby
zwang joined #ruby
yumike left #ruby
eeadc joined #ruby
zommi joined #ruby
jensn joined #ruby
Amirh joined #ruby
deadbea7 joined #ruby
lusory joined #ruby
ryanf joined #ruby
d3c joined #ruby
yxhuvud joined #ruby
<abstrakt> poseidon, well, IMO you should use RVM to install ruby and your gems
kjkim joined #ruby
<abstrakt> poseidon, and, isn't redmine actually a gem? i can't remember
smgt joined #ruby
<abstrakt> hmm, nevermind I guess
<abstrakt> poseidon, does CentOS not have redmine packages?
<poseidon> I don't believe so
Hellojere joined #ruby
<abstrakt> ahh, Ubuntu has redmine packages
<abstrakt> so that's what I use
<abstrakt> poseidon, this probably won't be much use to you http://rocksolidwebdesign.com/tutorials/apt-get-a-web-server/#part-3-getting-stuff-done-and-stuff (scroll down a page or two from there and you'll see a section about redmine)
<abstrakt> I have an Ubuntu server provisioning script
looopy joined #ruby
<abstrakt> and I intend to write one for CentOS but I don't have it set up yet
<abstrakt> poseidon, ehh... I think you should just use JIRA or something, personally
<abstrakt> poseidon, redmine is really slow
a_a_g joined #ruby
<poseidon> abstrakt: does it integrate with git?
burgestrand joined #ruby
<abstrakt> poseidon, github and bitbucket integrate with git :)
<abstrakt> github's ticketing system leaves a bit to be desired but, meh
<abstrakt> it's not too bad
<abstrakt> bitbucket looks promising, though I haven't tried bitbucket yet
acts_as_david joined #ruby
kartouch joined #ruby
<poseidon> abstrakt: looks really good, but this is a project for me and friends to make a game. We're in college and it's a side project to have fun
<poseidon> not really interested in paying for anything
<burgestrand> I missed the question :(
<abstrakt> poseidon, k, what kind of server are you running your redmine instance on?
<abstrakt> poseidon, do you have like, your own box in house? like an old P3 or something?
mxweas_ joined #ruby
<abstrakt> poseidon, are you gonna run it on a VPS?
<abstrakt> rackspace VPS instance maybe?
<abstrakt> poseidon, http://bitbucket.org/ <- free unlimited private git repos
<abstrakt> and I think they have some kind of ticketing
<abstrakt> poseidon, if it's a friendly college project, you probably don't need what redmine offers either
<poseidon> CentOS release 5.6 (Final)
<poseidon> It's a vps with 256M
<abstrakt> ok, so you're paying for the VPS anyway
<abstrakt> rackspace vps right?
<abstrakt> that's about 10/mo
<poseidon> I get it for free
<poseidon> I work as tech support for the company
<abstrakt> poseidon, ahh, ok
<abstrakt> poseidon, so what happens if and or when you quit working for them :)
<abstrakt> poseidon, http://bitbucket.org/ is free for 5 users and has issue tracking
<poseidon> Well, I have a while to graduate :)
<poseidon> but I'll check out bitbucket
naftilos76 joined #ruby
<abstrakt> poseidon, oh and for a dev server, IMO use something other than CentOS
<abstrakt> poseidon, CentOS is a bit backwards, as all server quality releases usually are
<abstrakt> poseidon, better to use Fedora or Ubuntu because you'll have more up to date and interesting packages available to you
<abstrakt> poseidon, like redmine for example
<abstrakt> poseidon, but just be aware that redmine itself will eat up more than half of that 256M of RAM you've got
terraUNDverra joined #ruby
Adman65 joined #ruby
samu joined #ruby
<samu> uhm... ho, I don't know if this is the right channel
<samu> I've got a freebsd 8.2 OS, and ruby 1.8.7
<samu> and ror.
<samu> now I would like to migrate ror to 1.9 (deployed by passenger)
<samu> well, I have installed ruby 19, and I actually don't know how to make passenger work with 19
roaminghorse joined #ruby
j3r0m3 joined #ruby
EddieBluh joined #ruby
Mchl joined #ruby
<poseidon> abstrakt: my company only offers centos for the vps
<poseidon> Used to run a server with archlinux out of my house
flippingbits joined #ruby
<poseidon> I liked it much better (probably b/c I use arch as a desktop)
naftilos76 joined #ruby
<abstrakt> poseidon, ahh, yeah see that's what I would suggest personally
p1d joined #ruby
<abstrakt> poseidon, go pick up an old Athlon box or something for super cheap
<abstrakt> poseidon, put it in your house and set up port forwarding on your router
<abstrakt> poseidon, that is really the best way to go, but barring that I would just use bitbucket
<poseidon> yea, the hard drive failed on it. I used it mainly to tunnel torrents while in dorm. Only ports 22/80/443 were open
moshef joined #ruby
onisen joined #ruby
rpowell joined #ruby
<rpowell> hey all
* StitchedKite gives poseidon a cookie +1 for arch ;p
Telling joined #ruby
<shevy> pfffffft arch
robotmay joined #ruby
<abstrakt> yeah, I dunno... arch is meh
jbpros joined #ruby
<rpowell> so I'm working on a Ruby DSL for making cool web based dashboards
<abstrakt> Ubuntu makes it so I don't have to think :P
<abstrakt> arch is at least better than gentoo
<StitchedKite> arch makes it so that i don't have really heavy software preinstalled and uneeded daemons
<shevy> funny that you say that abstrakt. I've lately started a "don't make me think" way to program. Its basic rule is that every time ruby code makes me think too much, it must be wrong and must become simpler.
amacgregor joined #ruby
<abstrakt> hahah
<rpowell> guys, #linux
<Norrin> lol ^
<abstrakt> StitchedKite, that's what "server" distros are for, Ubuntu Server for example, as opposed to Ubuntu Desktop
<StitchedKite> abstrakt: my computers from 1999 so any desktop flavour is wayy too heavy
<abstrakt> StitchedKite, ubuntu server fits very nicely in my 10G 256M virtual machines that I usually use for dev
<shevy> ewww 1999
<StitchedKite> year of the 8gb internal hard drive
<StitchedKite> 3dfx's voodo gpu
<abstrakt> yeah, I remember when 64M of RAM was a lot
<abstrakt> hahah, yeah I remember 3dfx too
<StitchedKite> yeah, i also remember having to fiddle for 30 minutes to get the driver working right
j3r0m3 joined #ruby
ryanf_ joined #ruby
Dangr_ joined #ruby
Nss joined #ruby
<shevy> hey I am using linux, my drivers never work completely right
axisys joined #ruby
ikaros joined #ruby
Morkel joined #ruby
xol joined #ruby
mafolz joined #ruby
marcuspat joined #ruby
roaminghorse joined #ruby
ph^ joined #ruby
<StitchedKite> well the nature of linux is to be configurable, whereas most things in windows can be done with point and click
burgestrand joined #ruby
heftig joined #ruby
<StitchedKite> so most likely its a configuration issue or wrong drivers anyhow back on subject
<StitchedKite> s/subject/topic/gi
sullx joined #ruby
nari joined #ruby
probst joined #ruby
fortysixandtwo joined #ruby
pi3r joined #ruby
mystline joined #ruby
petschbot joined #ruby
<mystline> Hi everyone, i'm trying to install redmine on centOS 6. when i run the command rake config/initializers/session_store.rb i receive the message 'rake aborted! no such file to load -- rails/all'. I'm using ruby 1.8.7 and rails 2.3.5
beseku joined #ruby
ephemerian joined #ruby
<mystline> actually wait, rails version 1.3.7 >_<
batlock666 joined #ruby
Seisatsu joined #ruby
zommi joined #ruby
gayasentinel joined #ruby
pen joined #ruby
otakutomo joined #ruby
iocor joined #ruby
berkes joined #ruby
Adman65 joined #ruby
<StitchedKite> mystline: update your ruby
j3r0m3 joined #ruby
<StitchedKite> 1.9 is the newest
mengu joined #ruby
mengu joined #ruby
<StitchedKite> though this might not pertain to what your problem might be
Cervajz_ joined #ruby
disappearedng joined #ruby
<disappearedng> https://gist.github.com/4f6d4ff6966feb2372b5 I find the last `tags` to be a bit awkward, what would be a better way to write this?
<looopy> hmm what are some cases when you would use a set opposed to a list?
<mystline> StitchedKite: i installed 1.9.7 from source but redmine had issues with it, they reccomended this version
<disappearedng> well I am just passing in a string
<disappearedng> so it's entirely up to me in terms of implementation
<StitchedKite> mystline: 1.9.3p0 is stable ;p
<mystline> okay i'll recompile..
<StitchedKite> if your on arch yaourt makes life simple
<StitchedKite> ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
<StitchedKite> specific ^ version
<StitchedKite> mystline: oh
<StitchedKite> wait
<mystline> centos. i compiled it from source anyhow, i'll just purge all this stuff and try again tomorrow.
<StitchedKite> i'm not sure about redmine
<mystline> been running into problem after problem :/
jarjar_prime joined #ruby
<StitchedKite> redmine might need 1.8.7 so idk though 1.9.3p0 is pretty stable
<mystline> i first installed 1.9.3 then reverted, maybe it caused issues
<mystline> is there an easy way to remove ruby and all its stuff (gems etc)?
moshef joined #ruby
<StitchedKite> on centos i'm not sure
<StitchedKite> whats the pkg manager there ?
<StitchedKite> or is there one ?
<mystline> yum
<mystline> there is one, but i compiled from source so idk if yum will remove it entirely.
<StitchedKite> one sec i'm looking up how to do so ;p
<mystline> thanks C: i am going to have a cigarette~
<StitchedKite> :( i'm out of smokes
trivol joined #ruby
<StitchedKite> mystline: yum remove \*ruby\* #BE WARNED I'M NOT GUARANTEE'ing this will work and i'm not responsible if you choose to use this
<StitchedKite> yum is unfortunately not aware of the concept of dependencies
<kke> got an xml with no linefeeds, is there some nice package for me to make it pretty?
ammar01 joined #ruby
grekko joined #ruby
Programmer_ joined #ruby
Morkel joined #ruby
adrake_ joined #ruby
<mystline> StitchedKite: i did something similar, seems to have worked okay. thanks for your help
<StitchedKite> mystline: you get it working ?
<mystline> nope, going to give it another shot tomorrow :3 home time!
flippingbits joined #ruby
Ch4rAzZz joined #ruby
james_cotterill joined #ruby
Programmer_ left #ruby
BiHi joined #ruby
xpot joined #ruby
<Bardosity> rake is calling gcc with unrecognised options, but I can't figure out where those options are being specified
<Bardosity> I'm very new to rake
iocor joined #ruby
adambeynon joined #ruby
<StitchedKite> Bardosity: was that a question or a statement in regard to the last guy's question
<StitchedKite> ?
timonv joined #ruby
<Bardosity> Nope, it was a question in regards to my hours of debugging this build problem :)
<Bardosity> I should have written some sort of preamble, I suppose
<StitchedKite> ahh ;p
<StitchedKite> i'm a pretty green to rake as well
<Bardosity> Anyone else here awake and actually know about rake? :)
Nss joined #ruby
jbpros joined #ruby
robotmay joined #ruby
<StitchedKite> i'm not green to gcc however
<StitchedKite> so if you knew what the flags where i could sort of help
robyurkowski joined #ruby
codespectator joined #ruby
nicoulaj joined #ruby
<shevy> Bardosity probably somewhere in the Rakefile
<Bardosity> I solved one problem by using clang instead of gcc
<StitchedKite> *were lol geez its 4:12am here
<Bardosity> that supports the options that gcc doesn't know about
ikaros joined #ruby
otakutomo joined #ruby
marcuspat joined #ruby
robyurkowski joined #ruby
mksm joined #ruby
flippingbits joined #ruby
<shevy> hehe
qiyong left #ruby
nari joined #ruby
robyurkowski joined #ruby
robyurkowski joined #ruby
xol joined #ruby
bwwrd joined #ruby
hurikhan|Work joined #ruby
pen joined #ruby
petschbot joined #ruby
<frerich> Hi, I'm embeding Ruby 1.9.2 into a C++ application and just noticed that 'puts' statements executed in the script don't actually yield any stdout output. A bit of research revealed the tiny C example program at http://pastebin.com/7sk1igHG but if I compile this on the command line (like 'cl ruby_puts.c /I... C:\path\to\ruby.lib') it doesn't actually print anything either.
<frerich> I've been digging around the Rbuy source code, trying to find out whether I maybe need to set the stdout descriptor used by puts, but the only interesting thing I found (which already does this) is the 'Init_IO' function in io.c
<frerich> Strangely enough, nobody seems to call this function!
<TheNumb> Hey guys (:
Indian joined #ruby
<TheNumb> Is there any good tutorial about deploying RoR applications?
<TheNumb> I don't want to use ngix + passenger.
terraUNDverra joined #ruby
speggey left #ruby
<StitchedKite> TheNumb: well if your on nix i'd recommed using dpkg ;p
nari joined #ruby
hemanth joined #ruby
beseku joined #ruby
jbpros joined #ruby
robyurkowski joined #ruby
Helius joined #ruby
chrisbuchholz joined #ruby
<chrisbuchholz> Hey guys.
<frerich> For the record, turned out my 'puts' didn't work since ruby_finalize() wasn't called (which, among other things, flushes file buffers).
<chrisbuchholz> Can someone point me in the right direction of a ruby book to get started with? I have only looked at ruby code when i configured jekyll and a few homebrew formulas, but i have been programming in other languages for nearly 8 years, so a book that fits that description would be great.
roaminghorse joined #ruby
tatsuya_o joined #ruby
<randym> hey hey tatsuya_o
fridim_ joined #ruby
otakutomo joined #ruby
Guedes joined #ruby
Guedes joined #ruby
Tuxist joined #ruby
Manhose joined #ruby
jbpros joined #ruby
<StitchedKite> chrisbuchholz: if you've been programming that long and what to get started fast, a combination of why's poignant guide and tryruby.org
<StitchedKite> there is also the translation of the book matz wrote
<StitchedKite> though i don't recall the name atm
beseku joined #ruby
<terraUNDverra> StitchedKite: you dont need a translation, he wrote in english with david flanagan "the ruby programming language"
<rpowell> oh man don't you love it when something like this turns up in your search results? https://gist.github.com/639636
<StitchedKite> terraUNDverra: ok
moondiamond joined #ruby
<StitchedKite> i was told it was a translation so .... guess they were wrong
<terraUNDverra> StitchedKite: they lied to you
<terraUNDverra> StitchedKite: unless they're talking about his much earlier book that he wrote by himself
<terraUNDverra> but that's likely way out of date now
djdb joined #ruby
<StitchedKite> ahh probably was referencing the old book
<chrisbuchholz> StitchedKite: so this http://mislav.uniqpath.com/poignant-guide/ (cant you get it in book format?), and this http://www.amazon.com/The-Ruby-Programming-Language-ebook/dp/B0026OR3JO/ref=tmm_kin_title_0?ie=UTF8&m=A8WELHUS1CTB6 - and then that interactive try ruby thing?
LouisJB joined #ruby
<StitchedKite> chrisbuchholz: i believe there is a pdf somewhere for why's guide
<StitchedKite> personally chrisbuchholz you'll find tryruby.org way faster
<terraUNDverra> chrisbuchholz: dont trust StitchedKite anymore, he's feeding you false information he gleans from uninformed friends
<StitchedKite> if you have trouble reference why's guide its full of explanations and it even has cartoon foxes :P
<terraUNDverra> ;)
<StitchedKite> terraUNDverra: now thats just mean
<StitchedKite> why's guide is perfectly fine
<StitchedKite> as is tryruby.org
<chrisbuchholz> StitchedKite: so no the ruby programming language?
vitoravelino joined #ruby
<StitchedKite> I didn't say that
<terraUNDverra> StitchedKite: i'm a meanie
<StitchedKite> definitely Read the book
<StitchedKite> its written by the creator of the language
<StitchedKite> the others are meant for a fast track
mengu joined #ruby
<chrisbuchholz> StitchedKite: alright, so the book and the other stuff, right!
<chrisbuchholz> Thank you very much
<StitchedKite> yeah i simply was suggesting order ;p
<StitchedKite> why's takes awhile to read just so you know but its geared towards somewhat new programmers mostly just to make learning fun ;p
<StitchedKite> insert an "and" in there ^
<chrisbuchholz> right allright
moondiamond joined #ruby
mxweas_ joined #ruby
patant joined #ruby
<patant> hi, what's the best way to get a boolean of a regexp match? Got this "test".match(/test/)? true:false but is there a better way?
<terraUNDverra> patant: !!
Cervajz_ joined #ruby
<terraUNDverra> patant: put !! in front
<terraUNDverra> patant: !! "test".match(/test/)
<patant> terraUNDverra: tanks! /irc noob
oponder joined #ruby
Manhose_ joined #ruby
tvw joined #ruby
iocor joined #ruby
<shevy> why do people recommend !!
<shevy> I've seen that lately in ...
<shevy> ruby-gmail
<shevy> !!@logged_in
iori joined #ruby
Hellojere joined #ruby
Vendethiel joined #ruby
zastaph joined #ruby
robyurkowski joined #ruby
Guest89147 joined #ruby
Lectus joined #ruby
bdiallo joined #ruby
Azure joined #ruby
araujo joined #ruby
<bdiallo> /join #connards
Morkel joined #ruby
sepp2k joined #ruby
radmacd joined #ruby
oponder_ joined #ruby
iocor joined #ruby
samxor joined #ruby
<Afal> shevy: it's a shortcut to turn objects to boolean types
fai|safe joined #ruby
akem joined #ruby
elliottcable joined #ruby
Nss joined #ruby
Pip joined #ruby
LittleBill902 joined #ruby
probst joined #ruby
tk_ joined #ruby
robyurkowski joined #ruby
fermo joined #ruby
justinmcp joined #ruby
Aaaarg joined #ruby
felipegb joined #ruby
fayimora joined #ruby
berkes joined #ruby
Guest78465 joined #ruby
pen joined #ruby
workmad3 joined #ruby
tayy joined #ruby
robyurkowski joined #ruby
<shevy> Afal it is terribly ugly
trapni joined #ruby
ph^ joined #ruby
<shevy> does that have a useful application?
poindont` joined #ruby
visof joined #ruby
clockwize joined #ruby
lorandi joined #ruby
<kke> providing a rest api, talking to mongo and beanstalk/amqp in the background, no need to serve browser users. framework suggestions?
ikaros joined #ruby
<terraUNDverra> shevy: for cool people yes, not for the average ruby 'web developer' ;)
<shevy> so not really
<terraUNDverra> shevy: for people studying ruby's internals and developing the language yes
pencilcheck joined #ruby
<shevy> hmm ok for 1%
Adman65 joined #ruby
Seisatsu joined #ruby
ksinkar joined #ruby
<terraUNDverra> shevy: well that whole website is for developers working or studying the ruby implementation
<shevy> well it must be useful somehow :)
<shevy> == disasm: @>==========
<shevy> 0000 putobject 1
visof joined #ruby
jesteracer joined #ruby
tomb joined #ruby
Nss joined #ruby
tomb joined #ruby
hron85 joined #ruby
jensn joined #ruby
<hron85> Hi! On mac, I ran into the "SocketError: getaddrinfo: nodename nor servname provided, or not known" problem
<hron85> with rubygems
<hron85> i can browse rubygems.org so i think it is not a network error
flexd joined #ruby
<hron85> can anyone help me?
<hron85> ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin10.0]
<hron85> Rubygems version: 1.3.7
flexd joined #ruby
Cervajz_ joined #ruby
rsampaio joined #ruby
Natch| joined #ruby
robyurkowski joined #ruby
<shevy> ruby was better off before gems came
savage- joined #ruby
TomJ joined #ruby
raincole joined #ruby
fff joined #ruby
JStoker joined #ruby
fff left #ruby
hinogi joined #ruby
BiHi joined #ruby
S2kx joined #ruby
vitoravelino joined #ruby
iocor joined #ruby
mengu joined #ruby
felipegb joined #ruby
moshef joined #ruby
ABK left #ruby
shevy joined #ruby
runix__ left #ruby
arauko joined #ruby
heftig joined #ruby
jcromartie joined #ruby
vitoravelino joined #ruby
vitoravelino joined #ruby
fgro joined #ruby
<fgro> so there is the "map" function. id like to traverse of a collection and instead of an array return a hash. How can I do that/
<fgro> i guess i would not use map but instead each and add to hash...
Spockz_ joined #ruby
JohnBat26 joined #ruby
speggey joined #ruby
Morkel joined #ruby
Tuxi joined #ruby
Nss joined #ruby
tmart joined #ruby
visof joined #ruby
visof joined #ruby
<tmart> how i can refer to the index method while im defining class Array? im trying just "[3]", but that not right
DarkFoxDK joined #ruby
fortysixandtwo joined #ruby
LittleBill902 joined #ruby
flippingbits joined #ruby
clockwize joined #ruby
emocakes joined #ruby
<dominikh> tmart: self[..]
Manhose joined #ruby
ikaros joined #ruby
moshef joined #ruby
jensn_ joined #ruby
jbpros joined #ruby
p0y joined #ruby
Mahoru`Tsunemi joined #ruby
<Mahoru`Tsunemi> hello
<Mahoru`Tsunemi> i hvae some problems with rails, command generate (inside a projet just create)
<Tasser> Mahoru`Tsunemi, #rubyonrails
<Mahoru`Tsunemi> okay
<Mahoru`Tsunemi> thanks
ramusara joined #ruby
<Mahoru`Tsunemi> Tasser: i think that's also a problem with ruby/gem
<Mahoru`Tsunemi> not only rails :)
<Mahoru`Tsunemi> there is the backlog : i hvae some problems with rails, command generate (inside a projet just create)
<Mahoru`Tsunemi> uups
<Mahoru`Tsunemi> this is : http://pastebin.com/y2MdxR7M
<Tasser> did you install execjs?
<Mahoru`Tsunemi> yep
luoluoluo joined #ruby
<Mahoru`Tsunemi> Tasser: gem list : http://pastebin.com/QzHZRryG
ctp joined #ruby
Manhose joined #ruby
<Mahoru`Tsunemi> Tasser: do you have any idea ? i think that's linked to gem
speggey joined #ruby
<Tasser> ruby version?
<Tasser> does "require 'execjs'" in pry/irb work?
iamjarvo joined #ruby
<Mahoru`Tsunemi> in 1.8 or 1.9.3 nothing
<Mahoru`Tsunemi> (the same error :) )
sdavis joined #ruby
<Mahoru`Tsunemi> brb
<Tasser> Mahoru`Tsunemi, then fix that require error
<fgro> anyone, how to control the precision of number_field view helper? in my case the mapped table field is of type decimal. Do I have to tweak the table definition?
<fgro> sorry wrong channel
<Mahoru`Tsunemi> back
<Mahoru`Tsunemi> Tasser: i'm not an ruby programmer, i tried to search on google how to fix but i don't found anything :/
raincole joined #ruby
senny joined #ruby
pHcF joined #ruby
robyurkowski joined #ruby
crankycoder joined #ruby
apeiros_ joined #ruby
<robotmay> What's the best way to sort an array of Time objects?
rsampaio joined #ruby
<apeiros_> robotmay: define 'best'
<apeiros_> but array_of_times.sort # should work
<apeiros_> sort! if you want it sorted in-place
<robotmay> apeiros_: Well, any really :D Will give that a try (being lazy)
tomzx joined #ruby
emmanuelux joined #ruby
steph021 joined #ruby
moondiamond joined #ruby
Amirh joined #ruby
<deryl> apeiros_: if i have a file that contains the definition for a Hash that I need to use, I'm told that 'load'ing that file will not import that such that I get Object.that_hash_i_imported - If I want to import that file and have the hash created, if 'load' doesn't do that and I get 'no such method or variable include' when I: include "#{APP_ROOT}/config/github.rb" what would I do?
<deryl> Object not being the literal class, just an example. Its really TestReport
* deryl is thoroughly confused
LockeVendetta joined #ruby
rippa joined #ruby
looopy joined #ruby
<LockeVendetta> hi, does anyone know how can i avoid conflit on class C for class Foo? http://pastie.org/2914495
radmacd joined #ruby
becom33 joined #ruby
<becom33> whats a good open source ruby IDE for linux ?
<Afal> vim
<Afal> well vim is more of a text editor but you get the idea
<becom33> I know vim . im not much of a vim fan .. its kinda confusing
<workmad3> Afal: bah, calling vim a 'text editor' is like calling a hurricane 'strong winds' :P
<workmad3> becom33: vimtutor ;)
<workmad3> LockeVendetta: make use of exact names for your constants, so use ::B::Foo and ::A::Foo instead of just Foo
bier|tp joined #ruby
bier joined #ruby
robyurkowski joined #ruby
<LockeVendetta> workmad3: what it for some reason those constants are inside a lot of modules? there's no easy way to reference the constant to the current module?
<workmad3> LockeVendetta: not if you want to make use of the methods using those constants in mixin methods
ankhers joined #ruby
jcromartie joined #ruby
<workmad3> LockeVendetta: the problem you're basically hitting is that, once the method has been mixed into another class the scope used to look up the constant changes
<workmad3> LockeVendetta: if you are using it a lot in a method, you can always store the constant in a local variable though - e.g. 'foo_class = ::A::Foo'
wyhaines joined #ruby
<LockeVendetta> workmad3: exactly, it's just that having something like A::B::C::D::F doesn't look very pretty, but we want our code functional, not pretty ,right?
usultis_ joined #ruby
<workmad3> LockeVendetta: we'd prefer both, but functional does trump pretty
<workmad3> LockeVendetta: I would be tempted to investigate as to whether one of the nested class names could be changed to avoid the conflict though ;
<workmad3> )
Jackneill joined #ruby
<LockeVendetta> workmad3: as an example i have a set of modules where some of them have the class Client
moshef joined #ruby
ksinkar joined #ruby
Amirh joined #ruby
<Amirh> hello world
<Amirh> happy thanksgiving
Draco_ joined #ruby
thepix joined #ruby
RomD joined #ruby
jwmann joined #ruby
jwmann joined #ruby
jwmann joined #ruby
bozhidar` joined #ruby
jbpros joined #ruby
robyurkowski joined #ruby
<moshef> what does Preference.get(:suggestions, 7).to_i mean?
<moshef> it asks for the preference called suggestions, but the 7 means ?
KenSentMe joined #ruby
<KenSentMe> Hi, i'm working on a Mac and have installed the mysql gem for connections to my XAMPP installed database. However i get this error message when i try to connect to the database: http://pastie.org/2914624
fai|safe joined #ruby
sepp2k1 joined #ruby
ikaros joined #ruby
<KenSentMe> Anyone have an idea what i'm doing wrong?
<ankhers> KenSentMe: are you using rails, or is this just a pure ruby project?
<KenSentMe> For now it's just a pure Ruby project
beakerman joined #ruby
<KenSentMe> btw, i'm a real ruby novice, so be gentle :)
axisys joined #ruby
jbpros joined #ruby
Axilla joined #ruby
<ankhers> Well, by the given error, you are passing it four arguments, and it is expecting 0. I use postgres so I'm not entirely sure how to initialize a mysql database in ruby. I will see if I can find anything.
<becom33> some other editor than vim ?
<ankhers> emacs
<ankhers> KenSentMe: quick google search, I found this site http://www.kitebird.com/articles/ruby-mysql.html it uses Mysql.real_connect instead of .new
jcran joined #ruby
Spockz joined #ruby
<KenSentMe> ankhers: when i use real_connect i get this: NoMethodError: undefined method `real_connect' for Mysql:Class
Cervajz joined #ruby
fayimora joined #ruby
<KenSentMe> I think it has something to do with the combination of ruby and xampp. Someone suggested installing the gem with env ARCHFLAGS="-arch x86_64", but that doesn't work either
dnyy joined #ruby
CannedCorn joined #ruby
Rango joined #ruby
<esparkman> Happy Giving of Thanks day everyone!!!!
bwwrd joined #ruby
<ankhers> That is american only.
pen joined #ruby
p0y_ joined #ruby
enikar joined #ruby
travisjeffery joined #ruby
looopy joined #ruby
moshef joined #ruby
DarkFoxDK joined #ruby
travisjeffery joined #ruby
abstrakt joined #ruby
csavola joined #ruby
tmart joined #ruby
rmoriz left #ruby
travisjeffery joined #ruby
j3r0m3__ joined #ruby
<moshef> can i use c++ to add 1 to c?
<rippa> c += 1
<moshef> thats the ruby way?
<rippa> yes
<moshef> thanks
<terraUNDverra> moshef: are you my woman
<moshef> i dont have to def it before the loop right?
lkba joined #ruby
Amirh joined #ruby
<terraUNDverra> moshef: are you my woman???????
<moshef> am i?
<terraUNDverra> yes, the love of my life
<Amirh> is this right in ruby? i % 2
<Amirh> like 3 % 2 = 1
<rippa> yes
marcuspat joined #ruby
<apeiros_> Amirh: you mean ==, right?
<Amirh> rippa: undefined method `%' for nil:NilClass
<Amirh> apeiros_: no
<apeiros_> Amirh: that means you're doing nil % 2
<apeiros_> Amirh: then no, you can't assign to an expression
<Amirh> apeiros_: oh ok
<apeiros_> x % y = 2 # <-- illegal
<apeiros_> x % y == 2 # <-- comparison
fayimora joined #ruby
<apeiros_> a single = always means assignment in ruby
<rippa> apeiros_: x % y = 2 actually works
Jake232 joined #ruby
<rippa> if x is defined
<rippa> x % (y = 2)
tobym joined #ruby
<Amirh> ruby forced me to define the array
<Amirh> why?
p0y joined #ruby
<Amirh> i think it's dynamic
<apeiros_> *sob*, because dynamic means I can do whatever the fuck I please…
* apeiros_ off
<moshef> terraUNDverra: im not a women ....
looopy joined #ruby
heftig joined #ruby
bwwrd joined #ruby
<workmad3> Amirh: what array?
<workmad3> I feel like I'm missing half a conversation here
<Amirh> workmad3: I just wanted to set this : freq[0] = 1 but freq hasnt been apeared before in the code
marcuspat joined #ruby
<workmad3> Amirh: then yes, you will need to create an array
<Amirh> workmad3: why? ruby is supports dynamic typing
<workmad3> Amirh: dynamic typing doesn't mean no typing
airhorns joined #ruby
<Amirh> workmad3: so I always have to define arrays before using them?
<csavola> Amirh: if a variable hasn't been seen before it defaults to a NillClass… which is not an array
<rippa> *NilClass
<workmad3> Amirh: you need to create an array before using it yes
<workmad3> Amirh: otherwise, what are you using?
<Amirh> but it's not like that for numbers
<Amirh> workmad3: gedit
<rippa> foo[3] could be something other than array
<rippa> it could be a hash
<rippa> with numeric keys
<Amirh> rippa: sure it could be
<workmad3> it could be an instance of my SuperArray class :)
gregorg joined #ruby
gregorg joined #ruby
<rippa> with numbers it's teh same
<rippa> a = 3
<rippa> you just initialized a
<Amirh> workmad3: I don't use an ide
<rippa> a = []
<rippa> you initialized empty array
<Amirh> yeah
<workmad3> Amirh: yeah... I meant, what object are you using if you don't create an array before using it :P
<workmad3> Amirh: you could also do a = [1]
<Amirh> workmad3: lol, an array!
iocor joined #ruby
<workmad3> Amirh: except that you don't have an array.... so you're using nothing
<Amirh> freq = Array.new
<Amirh> dice.each do |item|
<Amirh>
<Amirh> freq[item-1] += 1
<Amirh> end
<Amirh> I'm counting the frequency
<Amirh> of each item
shaman42 joined #ruby
<workmad3> Amirh: would it help if you knew that 'freq[0] = 1' is the same as doing 'freq.[]=(0, 1)'?
<workmad3> Amirh: so if you haven't created an array, then you're calling a method on nil...
<Amirh> workmad3: well that's great help!
<Amirh> very true
<Amirh> workmad3: I'm learning through koans. so I need time to get hang o the language
flippingbits joined #ruby
heldopslippers joined #ruby
michael_mbp joined #ruby
lorandi joined #ruby
Dangr_ joined #ruby
raincole joined #ruby
sdavis joined #ruby
crankycoder left #ruby
Guest78465 joined #ruby
looopy joined #ruby
emptyflask joined #ruby
p0y joined #ruby
goodieboy joined #ruby
deryl joined #ruby
dasfugufish joined #ruby
sdavis joined #ruby
jfredett joined #ruby
fayimora joined #ruby
moshef joined #ruby
nerded joined #ruby
ph^ joined #ruby
fff joined #ruby
<fff> hi
btanaka joined #ruby
macmartine joined #ruby
mengu joined #ruby
Spockz joined #ruby
fff left #ruby
dasfugufish joined #ruby
densebits joined #ruby
densebits joined #ruby
mksm joined #ruby
densebits joined #ruby
mengu joined #ruby
mengu joined #ruby
r0bby joined #ruby
trivol joined #ruby
thecreators joined #ruby
Rafalski joined #ruby
<Rafalski> i'm trying to do something like this results.collect{|r| r.@column.to_f} by passing in the column name of a table into a method.. can this be done?
a_a_g joined #ruby
<mksm> r.send(:column_name) ?
savage- joined #ruby
<Rafalski> as in? results.collect{|r| r.send(:column_name).to_f}
<Mon_Ouie> r.send(column_name)
alextan joined #ruby
Y_Ichiro joined #ruby
<Rafalski> you guys rock, thanks
<Rafalski> have to read up on the .send
looopy joined #ruby
cbuxton joined #ruby
j3r0m3 joined #ruby
ebobby joined #ruby
codespec_ joined #ruby
jfredett joined #ruby
sdavis joined #ruby
codespectator joined #ruby
travisjeffery joined #ruby
Rango joined #ruby
Vendethiel joined #ruby
lkba joined #ruby
Pip joined #ruby
Draco_ joined #ruby
robotmay joined #ruby
terraUNDverra joined #ruby
lobo_d_b joined #ruby
lobo_d_b joined #ruby
acts_as_david joined #ruby
Draco_ joined #ruby
josephwilk joined #ruby
sdavis joined #ruby
mdel joined #ruby
michael_mbp_ joined #ruby
shadoi joined #ruby
emocakes joined #ruby
dasfugufish joined #ruby
ping-pong joined #ruby
scribble1 joined #ruby
sdavis joined #ruby
xol joined #ruby
goodieboy joined #ruby
codespectator joined #ruby
marcuspat joined #ruby
a_a_g joined #ruby
notbrent joined #ruby
Russell^^ joined #ruby
tommylommykins left #ruby
Manhose joined #ruby
sdavis joined #ruby
macabre joined #ruby
mengu joined #ruby
eldariof joined #ruby
tvo joined #ruby
petschbot joined #ruby
atmosx joined #ruby
ryanf joined #ruby
flippingbits joined #ruby
sdavis joined #ruby
swarles joined #ruby
apeiros_ joined #ruby
dzhulk joined #ruby
j3r0m3 joined #ruby
becom33 joined #ruby
kirun joined #ruby
jensn joined #ruby
EddieBluh joined #ruby
goodieboy joined #ruby
Indian joined #ruby
Morkel joined #ruby
eldariof joined #ruby
goodieboy joined #ruby
michael_mbp_ joined #ruby
iocor joined #ruby
incluye joined #ruby
eldariof joined #ruby
michael_mbp_ joined #ruby
becom33 joined #ruby
albemuth joined #ruby
Jake232 joined #ruby
LouisJB joined #ruby
acts_as_david joined #ruby
<Guest74776> meter456
incluye_ joined #ruby
moshef joined #ruby
a_a_g joined #ruby
fayimora joined #ruby
atmosx left #ruby
<swarles> is there a library to edit files in a .jar without unzipping it?
<csavola> As far as I know there is no way to change an archive in place… you would have to extract the files being edited and put them back into the archive
j3r0m3 joined #ruby
grekko joined #ruby
savage- joined #ruby
xol joined #ruby
petschbot joined #ruby
Draco_ joined #ruby
ryanf joined #ruby
Rango joined #ruby
marcuspat joined #ruby
Araxia_ joined #ruby
fayimora joined #ruby
<swarles> oh ok :<
tatsuya_o joined #ruby
Helius joined #ruby
dnyy joined #ruby
vitoravelino joined #ruby
vitoravelino joined #ruby
sdavis joined #ruby
lobo_d_b joined #ruby
lobo_d_b joined #ruby
LouisJB joined #ruby
acts_as_david joined #ruby
jay_zawrotny joined #ruby
Mahoek joined #ruby
Draco_ joined #ruby
jbw joined #ruby
workmad3 joined #ruby
jbpros joined #ruby
TheSeparateFirst joined #ruby
jwmann joined #ruby
s0ber_ joined #ruby
eldariof joined #ruby
statarb3 joined #ruby
statarb3 joined #ruby
Helius joined #ruby
michael_mbp_ joined #ruby
j3r0m3 joined #ruby
marcuspat joined #ruby
crassus joined #ruby
GreaseMonkey joined #ruby
crassus left #ruby
Targen joined #ruby
incluye joined #ruby
thone joined #ruby
tayy joined #ruby
<zastaph> I put my database in myproject/data (also have myproject/lib) and then I run ruby -Ilib myproject.rb and from there db = SQLite3::Database.new "../data/my.sqlite" however it can't be found like that.. Should I do ruby -Ilib:data and then Database.new "mysqlite" or have other suggestion?`
jfredett joined #ruby
cyri_ joined #ruby
<apeiros_> zastaph: -I is only for require and load
<apeiros_> filepaths (which is what you use here) are relative to the working directory
<zastaph> ah, yes "data/my.sqlite" seemed to work, thanks :)
<apeiros_> correct :)
<zastaph> perhaps its a bad idea to put my database inside the gem folder structure
stetho joined #ruby
xol joined #ruby
AllStruck joined #ruby
tmart joined #ruby
dzhulk1 joined #ruby
sepp2k joined #ruby
tatsuya_o joined #ruby
king313 joined #ruby
king313 joined #ruby
Zoxc joined #ruby
<Zoxc> anyone know of a irc library which can send messages from another thread?
KevinSjoberg joined #ruby
mongrelion joined #ruby
<KevinSjoberg> If I alias a method in Ruby, is it possible to fetch the method_name of which it's being aliased as?
flippingbits joined #ruby
bugz^ joined #ruby
Rango joined #ruby
<csavola> KevinSjoberg: I don't think so as I think the implementation creates a copy of the method with the new name
sdavis joined #ruby
<KevinSjoberg> csavola, Are you referring to the method called alias_method or alias now?
<csavola> KenvinSjobeg: alias_method
sdavis joined #ruby
<csavola> KevinSjoberg: that's how you can change the name of a method… create a new one but still access the old code under the aliased name
michael_mbp_ joined #ruby
<KevinSjoberg> csavola, Yeah. But alias is just creating a reference to the other method right? Because __method__ will return the actual method not the alias.
sdavis joined #ruby
albemuth joined #ruby
michael_mbp_ joined #ruby
Knodi joined #ruby
minijupe joined #ruby
workmad3 joined #ruby
kartouch joined #ruby
Pip joined #ruby
alanp joined #ruby
<csavola> KevinSjoberg: I can't find any reference to the implementation of the alias keyword… I would assume it functions the same as alias_method in that it makes a copy of the code it's just a guess though
<KevinSjoberg> csavola, I see. Thanks for the input then :)
Pip joined #ruby
vitoravelino joined #ruby
vitoravelino joined #ruby
<csavola> KevinSjoberg: I'm tinkering in rib at the moment will let you know what I find
<csavola> *irb
<csavola> stupid spell check
sdavis joined #ruby
<csavola> class Foo
<csavola> def bar
<csavola> puts "hello"
<csavola> end
<csavola> alias bar2 bar
<csavola> def bar
<csavola> puts "hello2"
<csavola> end
<csavola> argh
<csavola> Foo.new.bar and Foo.new.bar2 point to 2 separate methods
Pip joined #ruby
<csavola> So I would assume that alias and alias_method both have the same behaviour… one is just a keyword while the other is a method
sdavis joined #ruby
sdavis joined #ruby
AllStruck left #ruby
sdavis joined #ruby
Pip joined #ruby
flippingbits joined #ruby
Malgorath joined #ruby
albemuth joined #ruby
rsampaio joined #ruby
lkb joined #ruby
<Malgorath> Hi, just trying to install ruby using RVM, I do rvm install 1.9.2 and I get an error in the make part. Here is the log http://paste.ubuntu.com/748651
<csavola> Malgorath: did you follow 'rvm requirements' ?
<Malgorath> I thought I did, I'll try that again
<Malgorath> rvm requirements
<Malgorath> ERROR: Unrecognized command line argument: 'requirements' ( see: 'rvm usage' )
<csavola> Malgorath: old version of rvm? probably better to ask in #rvm
mikeric joined #ruby
<Malgorath> Is there a better way to install ruby then?
<csavola> Malgorath: when did you install rvm?
<Malgorath> just now, before I started this I did apt-get install ruby-rvm
<Malgorath> I just installed this system like a week ago, its 11.10 Ubuntu
<csavola> I have no idea what that package does… I follow rvm.beginrescueend.com
<KevinSjoberg> csavola, Thanks. Actually cleared things up.
petschbot joined #ruby
sdavis joined #ruby
uxp joined #ruby
<Malgorath> ah the website I was following didn't meantion adding myself to rvm group... hope that makes the difference
Pip joined #ruby
__class__ joined #ruby
xol joined #ruby
wmoxam joined #ruby
pHcF joined #ruby
Pip joined #ruby
Pip joined #ruby
sdavis joined #ruby
friskd joined #ruby
Pip joined #ruby
d3c joined #ruby
<d3c> where should I place a custom ruby script if I want it to be executable on CLI? /usr/local/bin/x ?
<d3c> must be available for root as well. /sbin maybe?
dr_bob joined #ruby
<d3c> should actually only be available to root
Malgorath joined #ruby
<robyurkowski> d3c: you could do sbin, yes
burgestrand joined #ruby
p1d joined #ruby
<ankhers> d3c: you could place it anywhere really...
ixti joined #ruby
Draco_ joined #ruby
michael_mbp_ joined #ruby
<d3c> ankhers: sure, was just wondering what best practice for this is :)
<d3c> robyurkowski: alright
speggey joined #ruby
ph^_ joined #ruby
duey joined #ruby
darkskiez joined #ruby
<StitchedKite>
moted joined #ruby
mikalv joined #ruby
Apocalypse joined #ruby
v0n joined #ruby
Pip joined #ruby
Pip joined #ruby
rpowell joined #ruby
Pip joined #ruby
michael_mbp_ joined #ruby
jfredett joined #ruby
emocakes joined #ruby
travisjeffery joined #ruby
bier joined #ruby
_kinderman joined #ruby
DouweM_ joined #ruby
travisjeffery joined #ruby
workmad3 joined #ruby
DouweM_ left #ruby
benja-M-_ joined #ruby
acts_as_david joined #ruby
_kinderman joined #ruby
ankhers left #ruby
benja-M-___ joined #ruby
j3r0m3 joined #ruby
Ch4rAzZz joined #ruby
dnyy joined #ruby
RubyPanther joined #ruby
norex joined #ruby
ctp joined #ruby
otakutomo joined #ruby
h4mz1d joined #ruby
looopy joined #ruby
Clooth joined #ruby
Fraeon joined #ruby
fantazo joined #ruby
jfredett joined #ruby
esparkman joined #ruby
<rpowell> hey does anyone know of a good intro to writing a ruby DSL>
<rpowell> ?*
<Pip> rpowell, what is DSL ?
<rpowell> domain specific language
<Pip> This is interesting
<shevy> rpowell there are a few videos on youtube i think
<rpowell> hmm
<shevy> but basically the syntax is always the same, something fancy
<Pip> Using ruby to implement a DSL ?
<rpowell> trying to write a DSL for building web based dashboard things
moted joined #ruby
<shevy> and you just omit the ()
<rpowell> yeah Pip
<rpowell> awesome thanks
<shevy> hmm wait
<shevy> bad example actually
<shevy> that one is better
lobo_d_b joined #ruby
lobo_d_b joined #ruby
Tick-Tock joined #ruby
fantazo joined #ruby
h4mz1d joined #ruby
ctp joined #ruby
RubyPanther joined #ruby
dnyy joined #ruby
benja-M-___ joined #ruby
_kinderman joined #ruby
benja-M-_ joined #ruby
bier joined #ruby
michael_mbp joined #ruby
Pip joined #ruby
rpowell joined #ruby
mikalv joined #ruby
Malgorath joined #ruby
xol joined #ruby
petschbot joined #ruby
mikeric joined #ruby
rsampaio joined #ruby
albemuth joined #ruby
vitoravelino joined #ruby
alanp joined #ruby
kartouch joined #ruby
mongrelion joined #ruby
tatsuya_o joined #ruby
s0ber joined #ruby
jbw joined #ruby
jay_zawrotny joined #ruby
Araxia_ joined #ruby
jensn joined #ruby
codespectator joined #ruby
mdel joined #ruby
shaman42 joined #ruby
tobym joined #ruby
pen joined #ruby
CannedCorn joined #ruby
ikaros joined #ruby
KenSentMe joined #ruby
robyurkowski joined #ruby
LittleBill902 joined #ruby
shevy joined #ruby
S2kx joined #ruby
flexd joined #ruby
Adman65 joined #ruby
akem joined #ruby
Guest22571 joined #ruby
araujo joined #ruby
xpot joined #ruby
mystline joined #ruby
samu joined #ruby
lusory joined #ruby
wookiehangover joined #ruby
poseidon joined #ruby
rhinux joined #ruby
radic joined #ruby
x0F__ joined #ruby
Bardosity joined #ruby
tdubellz joined #ruby
beilabs_ joined #ruby
hSATAC joined #ruby
Axsuul joined #ruby
flock joined #ruby
babinho joined #ruby
dnjaramba joined #ruby
cjs226 joined #ruby
NuclearLucifer joined #ruby
docwhat joined #ruby
JumpMast3r joined #ruby
Mekkis joined #ruby
jsaak joined #ruby
sie joined #ruby
conntrack joined #ruby
Mon_Ouie joined #ruby
Nanuq joined #ruby
mikepack joined #ruby
Evixion joined #ruby
orangejuice joined #ruby
swi7ch joined #ruby
musl joined #ruby
metrix joined #ruby
SegFaultAX joined #ruby
_2easy joined #ruby
kassien joined #ruby
frerich joined #ruby
parus joined #ruby
gentz joined #ruby
|PiP| joined #ruby
milkpost joined #ruby
TheNumb joined #ruby
alienvenom joined #ruby
rpgsimmaster joined #ruby
dv_ joined #ruby
swistak35 joined #ruby
flazz joined #ruby
grieve joined #ruby
yellow5 joined #ruby
mitchty joined #ruby
zigidias joined #ruby
Corey joined #ruby
botam joined #ruby
cmihai joined #ruby
txa-ea joined #ruby
UdontKnow joined #ruby
zaarg joined #ruby
nlew joined #ruby
mbreit joined #ruby
FlyingFoX joined #ruby
khindenb` joined #ruby
Minalien joined #ruby
deryldoucette joined #ruby
alindeman joined #ruby
zbrown joined #ruby
shaatar joined #ruby
lottadot joined #ruby
Bish joined #ruby
tsykoduk joined #ruby
Veejay joined #ruby
marienz joined #ruby
spacebug joined #ruby
rcs joined #ruby
RORgasm joined #ruby
joast joined #ruby
ixx joined #ruby
andman joined #ruby
Zanacross joined #ruby
deweysmith joined #ruby
zawopak joined #ruby
MetaCosm joined #ruby
oddraisi1 joined #ruby
marra joined #ruby
tankpilot joined #ruby
kriskropd joined #ruby
hcchien joined #ruby
flagg0204 joined #ruby
alek_b joined #ruby
nicksmith joined #ruby
jimmy__ joined #ruby
kinderman joined #ruby
scribbles joined #ruby
preller joined #ruby
whereswaldo joined #ruby
momo- joined #ruby
_Thomas joined #ruby
jhulten joined #ruby
Sirecote joined #ruby
Guest49351 joined #ruby
nick_h joined #ruby
sadmac joined #ruby
mrkris joined #ruby
syntaxritual joined #ruby
BBonifield joined #ruby
Martz joined #ruby
BradMc_ joined #ruby
yugui_zzz joined #ruby
keyvan joined #ruby
stick_zz joined #ruby
Frantic joined #ruby
David_Miller joined #ruby
zakwilson joined #ruby
_fmm joined #ruby
majoh joined #ruby
jayne joined #ruby
silky joined #ruby
Kivi joined #ruby
pcboy joined #ruby
pygmalion joined #ruby
pavelz joined #ruby
ccooke joined #ruby
SecretAg1nt joined #ruby
cratchit joined #ruby
perryh- joined #ruby
h00s joined #ruby
InAFishBowl joined #ruby
Koshian_ joined #ruby
Drakx joined #ruby
thebastl joined #ruby
kke joined #ruby
ben_alman_ joined #ruby
skurt joined #ruby
sinuc joined #ruby
DefV joined #ruby
thepinkster joined #ruby
omp joined #ruby
mtkd joined #ruby
Boohbah joined #ruby
hrwath joined #ruby
kstephens joined #ruby
ichilton joined #ruby
lobak joined #ruby
samuelk|away joined #ruby
maveonair joined #ruby
Jelco_ joined #ruby
Quadlex joined #ruby
c9s joined #ruby
WanderingGlitch joined #ruby
josePhoenix joined #ruby
nricciar joined #ruby
xiphias_ joined #ruby
ereslibre joined #ruby
saaki joined #ruby
loocorez joined #ruby
Avi` joined #ruby
mahlon joined #ruby
nate_h joined #ruby
jmcphers joined #ruby
willb joined #ruby
idoru joined #ruby
aef_ joined #ruby
moted joined #ruby
Fraeon joined #ruby
norex joined #ruby
d3c joined #ruby
thone joined #ruby
bier|tp joined #ruby
Natch| joined #ruby
trapni joined #ruby
Hellojere joined #ruby
ammar01 joined #ruby
Mchl joined #ruby
sean_m joined #ruby
Guest42570 joined #ruby
d-snp joined #ruby
rclark joined #ruby
jds joined #ruby
moshee joined #ruby
Hachima joined #ruby
epitron joined #ruby
ali_h joined #ruby
DeeTah joined #ruby
caveat- joined #ruby
theoros joined #ruby
sonkei joined #ruby
dpritchett_ joined #ruby
zmoazeni_ joined #ruby
patjoh joined #ruby
marcin_m joined #ruby
xsdg joined #ruby
joschi joined #ruby
joelio joined #ruby
brian- joined #ruby
Jarred joined #ruby
idle` joined #ruby
er1c_ joined #ruby
mrapple joined #ruby
madhatter joined #ruby
ozzloy joined #ruby
BLZbubba joined #ruby
tommyblue joined #ruby
monomyth joined #ruby
bob_f joined #ruby
csmrfx joined #ruby
DoobieBiscuits joined #ruby
Caius joined #ruby
sgronblo joined #ruby
xea joined #ruby
klaas joined #ruby
cynosure joined #ruby
jinx_ joined #ruby
crayfishx joined #ruby
KitsuneDrag0n joined #ruby
lantins joined #ruby
Kiall_ joined #ruby
lobo_d_b joined #ruby
uxp joined #ruby
macabre joined #ruby
chrisbuchholz joined #ruby
ebanoid joined #ruby
john2x joined #ruby
StitchedKite joined #ruby
SolarisBoy joined #ruby
Asher joined #ruby
Norrin joined #ruby
nat2610 joined #ruby
wereHamster joined #ruby
omry joined #ruby
DeeJayTwo joined #ruby
crodas joined #ruby
jrist-out joined #ruby
relix joined #ruby
stepnem joined #ruby
any-key joined #ruby
pusewicz_ joined #ruby
patronus_ joined #ruby
felipe joined #ruby
avandendorpe joined #ruby
andyl joined #ruby
benwoody joined #ruby
mephux joined #ruby
tomaw joined #ruby
gabriel joined #ruby
Guest58253 joined #ruby
snapcase joined #ruby
literal joined #ruby
KillerFox joined #ruby
looopy joined #ruby
conntrack joined #ruby
caveat- joined #ruby
looopy joined #ruby
Guest79578 joined #ruby
terraUNDverra joined #ruby
dotemacs joined #ruby
stepnem joined #ruby
lkba joined #ruby
iocor joined #ruby
tdubellz joined #ruby
mrmist joined #ruby
mitchty joined #ruby
michael_mbp_ joined #ruby
sythe joined #ruby
michael_mbp_ joined #ruby
conntrack joined #ruby
GR joined #ruby
michael_mbp joined #ruby
MissionCritical joined #ruby
sepp2k joined #ruby
Cervajz_ joined #ruby
michael_mbp_ joined #ruby
<GR> Hi, I'm looking for class deign help. I've my html as below:
sdavis joined #ruby
<GR> <div id="assetsArea"> <ul class="sectionHeader"> <li id="newProject"><a class="button">&#43; New Project</a></li> </ul> <div id="assetMain"> <table id="assetContainer" cellpadding="0" cellspacing="0"> <tr> <td id="assetProjects"> <div id="assetProjectArea"> <div id="assetTopPager" class="pagerWidget">
<GR> How can I get the value of span element using Page Object methods
ryanf joined #ruby
michael_mbp_ joined #ruby
dotnull joined #ruby
steph021 joined #ruby
steph021 joined #ruby
michael_mbp_ joined #ruby
<NuclearLucifer> GR, Try nokogiri.
<NuclearLucifer> It's fast and simple.
<GR> Thanks Nuclear for the reply, using Nokogiri includes xpaths right..
wyhaines joined #ruby
michael_mbp_ joined #ruby
jbpros joined #ruby
michael_mbp joined #ruby
skrewler joined #ruby