apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
ner0x has joined #ruby
burlyscudd has joined #ruby
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vwoo has joined #ruby
dcope has joined #ruby
bigoldrock has quit [Ping timeout: 276 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moted has quit [Quit: moted]
huoxito has joined #ruby
digitalcake has quit [Read error: Connection reset by peer]
burlyscudd has quit [Ping timeout: 252 seconds]
digitalcake has joined #ruby
ianbrandt has quit [Quit: ianbrandt]
RORgasm has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
Michae___ has quit [Remote host closed the connection]
Jalada has quit [Ping timeout: 256 seconds]
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
sailias has quit [Read error: Operation timed out]
echevemaster has quit [Ping timeout: 252 seconds]
ryannielson has quit [Quit: ryannielson]
dmiller has quit [Remote host closed the connection]
Michae___ has joined #ruby
RORgasm has quit [Ping timeout: 276 seconds]
x1337807x has joined #ruby
Asher1 has quit [Read error: Operation timed out]
Asher has joined #ruby
druonysus has quit [Ping timeout: 268 seconds]
c0rn has quit [Ping timeout: 268 seconds]
stkowski has quit [Ping timeout: 240 seconds]
c0rn has joined #ruby
vwoo has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
vwoo has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
airlok has joined #ruby
Asher has quit [Ping timeout: 264 seconds]
slash_nick has quit [Ping timeout: 246 seconds]
<adramalech> i am trying to create methods that pass in two-dimensional arrays. I have declared 2d_array = Array.new(x, Array.new(y, 0)). I was wondering how can i verify size? and how to iterate over the 2d-array for say each element.
devoldmx has joined #ruby
cj3kim has quit [Remote host closed the connection]
Jalada has joined #ruby
marr has quit [Ping timeout: 264 seconds]
druonysuse has quit [Ping timeout: 252 seconds]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
Davey has joined #ruby
airlok has quit [Remote host closed the connection]
airlok has joined #ruby
airlok has quit [Remote host closed the connection]
richiebkr has quit [Quit: richiebkr]
axsuul has quit [Quit: axsuul]
arya has quit [Ping timeout: 248 seconds]
ivanoats has quit [Remote host closed the connection]
benlieb has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
yshh has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
Asher has joined #ruby
moted has joined #ruby
vwoo has quit [Ping timeout: 276 seconds]
L8D has joined #ruby
RonScagz has joined #ruby
<L8D> How can I use method_missing in order to make:
<L8D> "Hello World"
<L8D> becomes:
<L8D> puts "Hello World"
ColKurtz has joined #ruby
<L8D> As in have a method
dmiller has joined #ruby
<L8D> method_missing for straight strings.
<L8D> Or would that not work very well
hogeo has joined #ruby
bionhart has quit [Remote host closed the connection]
vwoo has joined #ruby
<heftig> not possible
saarinen has quit [Quit: saarinen]
zeade has quit [Quit: Leaving.]
slash_nick has quit [Ping timeout: 256 seconds]
richiebkr has joined #ruby
freeayu has joined #ruby
wallerdev has quit [Quit: wallerdev]
tkuchiki has joined #ruby
werdnativ has quit [Quit: werdnativ]
c0rn has quit [Quit: Computer has gone to sleep.]
ericmathison has quit [Quit: Lost terminal]
richiebkr has quit [Client Quit]
wargasm has joined #ruby
druonysuse has quit [Quit: Konversation terminated!]
lunarjar has quit [Ping timeout: 251 seconds]
paranox has quit [Remote host closed the connection]
<L8D> How can I create a hash object that contains a function? So I can then do something like: `myHash['functionname'](args)` ?
lunarjar has joined #ruby
astomp has quit [Quit: Computer has gone to sleep.]
mfollett has joined #ruby
zeade has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
adramalech has quit [Quit: leaving]
mfollett has quit [Ping timeout: 255 seconds]
burlyscudd has quit [Remote host closed the connection]
saarinen has joined #ruby
benlieb has quit [Quit: benlieb]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
ablemike has joined #ruby
bradhe has quit [Remote host closed the connection]
rickruby has joined #ruby
<ablemike> I have a small sinatra app using datamapper and sqlite
<ablemike> locally, when I create records, they are available throughout the app all the time. Even if I restart the app
<ablemike> on my server, they aren't there.
<heftig> L8D: h[:foo] = proc { puts 1 }; h[:foo].call
codesoda has quit [Remote host closed the connection]
vwoo has quit [Ping timeout: 252 seconds]
tomzx_mac has joined #ruby
<rfizzle> How do I get ascii value of a character?
johnrlive has joined #ruby
airlok_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<ablemike> it's gotta be something simple I am missing
agjacome has quit [Quit: leaving]
<heftig> rfizzle: .ord
vwoo has joined #ruby
johnrlive has quit [Read error: Operation timed out]
jcromartie has joined #ruby
arya has joined #ruby
moted has quit [Quit: moted]
buzzybron has joined #ruby
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
milardovich has joined #ruby
razi has joined #ruby
<L8D> heftig: Thanks
mansi has joined #ruby
ArchBeOS has quit [Remote host closed the connection]
Akuw has joined #ruby
saarinen has quit [Quit: saarinen]
<Akuw> hi
airlok_ has quit [Ping timeout: 252 seconds]
<Akuw> i am new on ruby, can i create Android applications using ruby?
<digitalcake> any one ever used the aruba gem?
ezkl has joined #ruby
yshh has joined #ruby
Solnse has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 260 seconds]
<digitalcake> run simple gives an error saying it cant file the file but run and run interactive works with out error?
<digitalcake> well runs with out error
<digitalcake> I assume that run simple just outputs the error were as run/interactive would require you to handle that if it happened.
Voodoofish430 has quit [Quit: Leaving.]
jdunck has quit [Quit: Computer has gone to sleep.]
yshh has quit [Read error: Connection reset by peer]
GeissT has joined #ruby
kofno_ has joined #ruby
wmoxam has joined #ruby
yshh has joined #ruby
thams has joined #ruby
rfizzle has quit [Quit: Leaving]
slyv has joined #ruby
lyanchih has joined #ruby
cj3kim has joined #ruby
sailias has joined #ruby
ivanoats has joined #ruby
vwoo has quit [Ping timeout: 240 seconds]
vwoo has joined #ruby
dayepa1 has quit [Quit: dayepa1]
joelteon has joined #ruby
dayepa has joined #ruby
digitalcake has quit [Quit: Leaving.]
TJNII has joined #ruby
rsahae has quit [Quit: rsahae]
poincare1011 has joined #ruby
dayepa has quit [Client Quit]
poincare101 has quit [Ping timeout: 256 seconds]
Matip has quit [Read error: Connection reset by peer]
fomatin has joined #ruby
Hanmac has joined #ruby
Dummies_freelanc has joined #ruby
Dummies_freelanc has quit [Max SendQ exceeded]
byprdct has quit [Ping timeout: 256 seconds]
Hanmac2 has quit [Ping timeout: 276 seconds]
nettoweb has quit [Quit: nettoweb]
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
Shirakawasuna has joined #ruby
thams has quit [Quit: thams]
icole has joined #ruby
Akuw has quit [Quit: Saliendo]
dayepa1 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cburyta has joined #ruby
vwoo has quit [Ping timeout: 264 seconds]
horofox_ has joined #ruby
vwoo has joined #ruby
orien has left #ruby ["Textual IRC Client: www.textualapp.com"]
Soliah has quit [Quit: Soliah]
airlok has joined #ruby
ivanoats has quit [Remote host closed the connection]
DomKM has joined #ruby
robscomputer has quit [Ping timeout: 252 seconds]
Matip has joined #ruby
horofox_ has quit [Quit: horofox_]
Shaclack has joined #ruby
airlok has quit [Remote host closed the connection]
ntus1017 has quit [Remote host closed the connection]
ivanoats has joined #ruby
dankest has quit [Quit: Leaving...]
twoism has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
thams has joined #ruby
pothibo has quit [Quit: pothibo]
cads has joined #ruby
mocfive has quit [Remote host closed the connection]
jesly has joined #ruby
arubin has joined #ruby
ttt has joined #ruby
zeade has quit [Quit: Leaving.]
myappleguy has quit [Quit: Leaving.]
nezumi has joined #ruby
Shaclack has left #ruby [#ruby]
ttt has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
ttt has joined #ruby
vwoo has quit [Ping timeout: 240 seconds]
ninegrid has quit [Ping timeout: 264 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
ninegrid has joined #ruby
blitz has quit [Quit: This computer has gone to sleep]
vwoo has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
johnrlive has joined #ruby
sleetdrop has joined #ruby
jesly has quit [Read error: Connection reset by peer]
jesly has joined #ruby
wallerdev has joined #ruby
johnrlive has quit [Read error: Operation timed out]
Leighton has joined #ruby
nari has joined #ruby
Michae___ has quit [Remote host closed the connection]
_maes_ has joined #ruby
Nisstyre-laptop has joined #ruby
Michae___ has joined #ruby
mansi has joined #ruby
Meatant has joined #ruby
Domon has joined #ruby
tjbiddle has joined #ruby
jdunck has joined #ruby
freerobby has joined #ruby
bradhe has joined #ruby
Michae___ has quit [Ping timeout: 240 seconds]
tjbiddle_ has joined #ruby
myappleguy has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
bradhe has quit [Ping timeout: 264 seconds]
tomzx_ has joined #ruby
icole has quit [Remote host closed the connection]
tomzx_ has left #ruby [#ruby]
jojosiao has joined #ruby
blitz has joined #ruby
RORgasm has joined #ruby
ioNull has joined #ruby
dhruvasagar has joined #ruby
Guedes has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Ping timeout: 245 seconds]
ntus1017 has joined #ruby
ntus1017 has quit [Remote host closed the connection]
radic_ has joined #ruby
RORgasm has quit [Ping timeout: 264 seconds]
radic has quit [Read error: Operation timed out]
crazymykl has quit [Read error: Operation timed out]
Sherwyn has joined #ruby
crazymykl has joined #ruby
jkline has quit [Quit: jkline]
buzzybron has quit [Ping timeout: 252 seconds]
milardovich has quit [Quit: Leaving]
Nisstyre has quit [Quit: Leaving]
Nisstyre-laptop is now known as Nisstyre
rgrinberg has quit [Ping timeout: 245 seconds]
tbrock has joined #ruby
kil0byte has quit [Remote host closed the connection]
`MArceLL` has quit [Remote host closed the connection]
MArceLL has joined #ruby
MArceLL is now known as `MArceLL`
tbrock has quit [Client Quit]
DanKnox is now known as DanKnox_away
fomatin has quit [Quit: Computer has gone to sleep.]
fomatin has joined #ruby
fomatin has quit [Client Quit]
gildo has quit [Ping timeout: 252 seconds]
cburyta has quit [Remote host closed the connection]
Left_Turn has quit [Ping timeout: 252 seconds]
stkowski has joined #ruby
bradhe has joined #ruby
vwoo has quit [Quit: Computer has gone to sleep.]
zeromodulus has joined #ruby
horofox_ has joined #ruby
mansi has joined #ruby
lewis has joined #ruby
mikepack has quit [Remote host closed the connection]
Dekade has quit []
digitalcake has joined #ruby
viszu has joined #ruby
synthetix has joined #ruby
Levin_22 has joined #ruby
generalissimo has joined #ruby
blitz has quit [Quit: This computer has gone to sleep]
lewis is now known as lewix
blitz has joined #ruby
razi has quit [Quit: Leaving.]
mduvall has joined #ruby
vlad_starkov has joined #ruby
pitzips has joined #ruby
adkron has quit [Ping timeout: 276 seconds]
bradhe has quit [Remote host closed the connection]
ablemike has quit [Remote host closed the connection]
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
dhruvasagar has quit [Ping timeout: 264 seconds]
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
vlad_starkov has quit [Ping timeout: 264 seconds]
Michae___ has joined #ruby
rupee has quit [Quit: Leaving]
<pontiki> digitalcake: i use it a fair bit
cyong has joined #ruby
horofox_ has quit [Quit: horofox_]
pitzips has quit [Quit: Leaving]
burlyscudd has joined #ruby
burlyscudd has joined #ruby
djbkd has quit [Quit: Leaving]
blitz has quit [Quit: This computer has gone to sleep]
<pontiki> what are you trying to give run/run_simple to do, and what do you want out of it?
DrCode has quit [Remote host closed the connection]
quazimodo has quit [Read error: No route to host]
blitz has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
JumpMast3r has quit [Quit: JumpMast3r]
johnrlive has joined #ruby
digitalcake has left #ruby [#ruby]
tw1sted has quit [Quit: tw1sted]
parenjitsu has joined #ruby
parenjitsu has left #ruby [#ruby]
johnrlive has quit [Read error: Operation timed out]
generalissimo has quit [Remote host closed the connection]
Dummies_freelanc has joined #ruby
Dummies_freelanc has quit [Max SendQ exceeded]
bigmac has joined #ruby
brennanMKE has quit [Remote host closed the connection]
fomatin has joined #ruby
fomatin has quit [Client Quit]
myappleguy has quit [Quit: Leaving.]
fomatin has joined #ruby
Opettaja has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
slash_nick has joined #ruby
wsterling has joined #ruby
generalissimo has joined #ruby
<Godd2> I'm writing a simple sentence generator to learn the basics of Ruby and Object Oriented Programming. Is it bad to have 59 classes? It's broken down like this: https://gist.github.com/nicklink483/5779186
tw1sted has joined #ruby
<Godd2> I just wanted to know if I'm going in a completely wrong direction or if that's okay.
<davidcelis> smells like abusing inheritance
saarinen has joined #ruby
blitzkev has joined #ruby
quazimodo has joined #ruby
<Godd2> okay thank you davidcelis Im reading up inheritance abuse now
rezzack has quit [Quit: Leaving.]
generalissimo has quit [Remote host closed the connection]
blitz has quit [Ping timeout: 252 seconds]
sevenseacat has joined #ruby
blitzkev is now known as blitz
Opettaja has quit [Quit: WeeChat 0.4.1]
kofno_ has quit [Remote host closed the connection]
<pontiki> do all those classes have clearly distinct behaviours?
<pontiki> that looks fine for a taxonomy
<pontiki> but awful for a class hierarchy
dhruvasagar has joined #ruby
Michae___ has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
buzzybron has joined #ruby
Michae___ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
Opettaja has joined #ruby
kofno has joined #ruby
<Godd2> Well a Syntax is an ordered list of Word objects, and each of those have a part of speech which dictates what they can be next to. So am I correct in saying that "what it's next to" is a 'behavior' in the sense you're asking?
Michae___ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
<pontiki> not particularly
Michae___ has joined #ruby
<pontiki> that's a relationship, not a behaviour
viszu has quit [Quit: Leaving.]
<pontiki> a behaviour in the sense i'm thinking would be (to pick just one example) changing a SingularNoun into a PluralNoun
<pontiki> but i wouldn't create two classes to do that, personally
<pontiki> these things are strings, and the type of thing they are could simply be an attribute of that
<pontiki> the taxonomy could be stored as a structure
adkron has joined #ruby
<pontiki> and a particular string taxonomy attribute could be a pointer into this structure
<pontiki> it would probably be useful if each node in the taxonomy structure had a pointer to it's parent, and a collection of children
<Godd2> ok then Ill read up on structures right now
paissad_ has quit [Quit: This computer has gone to sleep]
dhruvasagar has quit [Ping timeout: 264 seconds]
<Godd2> when you say structure, do you mean a Struct?
<pontiki> i was being more generic than that
nezumi has quit [Ping timeout: 276 seconds]
paissad_ has joined #ruby
<pontiki> you could use Struct to create each taxonomy node, for example, and assemble it into a hash
<Godd2> Im not sure what you mean by node
<pontiki> TaxonomyNode = Struct.new :name, :parent, :children
jalcine has quit [Excess Flood]
Guga_ has quit [Quit: ~]
<pontiki> then, taxonomy = TaxonomyNode.new(:top,nil,nil) to start it off
<pontiki> sorry; this:
<pontiki> taxonomy = TaxonomyNode.new(:top,nil,[]) would be better
<Godd2> ok
<pontiki> let me show you something i was playing with the other day, maybe it will give an idea
<Godd2> well I have no working knowledge of Structs so Ill delve into that
<Godd2> sure
<pontiki> it's not the same, but it contains some of the ideas i'm thinking of
crankyco_ has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
_Renegade has quit [Quit: _Renegade]
timkohrumel has joined #ruby
<pontiki> so, in your case, you could create the :name, :parent, and :children similarly, as different data structures inside the TaxonomyNode
<pontiki> then you taxonomy is a collection and hierarchive of TaxonomyNodes
<Godd2> Ill have to come back to that once Ive read up on what a Struct is
<pontiki> Struct is a class that creates new classes
<Godd2> but thank you very much for showing me where to look :)
<Godd2> Trust me, you don't want me trying to learn a whole new concept from you, haha
arya_ has joined #ruby
<Godd2> I ask a lot of annoying and pedantic questions and Ill do way better just reading it :P
<pontiki> yes you will
kofno has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
n_blownapart has joined #ruby
lewix has quit [Remote host closed the connection]
lewix has joined #ruby
cburyta has joined #ruby
lewix has quit [Read error: Connection reset by peer]
lewix has joined #ruby
vlad_starkov has joined #ruby
<Godd2> Why don't you just put attr_reader :stuff, :and, :nonsense instead of inheriting from that Struct.new ?
cburyta has quit [Ping timeout: 256 seconds]
<n_blownapart> hi I added this code/gem to deploy a barebones rails app on heroku (from tutorial)...later added the 'thin' gem to no avail. getting errors. any ideas? thanks: http://pastie.org/8041321
<sevenseacat> what are the errors?
vwoo has joined #ruby
<n_blownapart> shit one sec sevenseacat
splittingred has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
Cyrus has joined #ruby
jonahR has joined #ruby
prsn has quit [Ping timeout: 256 seconds]
prsn has joined #ruby
sambao21 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has joined #ruby
Asher1 has joined #ruby
Michae___ has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
lewix has quit [Remote host closed the connection]
mikepack has joined #ruby
Michae___ has joined #ruby
Taranis has quit [Read error: Operation timed out]
<n_blownapart> sevenseacat: sorry I need to figure out whats going on. I was working on it last night. pax
Asher has quit [Ping timeout: 260 seconds]
nomenkun has joined #ruby
Michae___ has quit [Remote host closed the connection]
<Godd2> ok, pontiki so you're suggesting I have a list of the classes I want to construct, and then cycle through that list and create a Struct for each one? Or am I a little off?
Michae___ has joined #ruby
<pontiki> nooooooo....
mikepack has quit [Remote host closed the connection]
<pontiki> you only need one class for all the taxonomy nodes
io_syl has quit [Ping timeout: 240 seconds]
OnyxDragoon has joined #ruby
<pontiki> let me throw a little gist up
wsterling has quit [Remote host closed the connection]
bradhe has joined #ruby
burlyscudd has quit [Ping timeout: 276 seconds]
mansi has quit [Remote host closed the connection]
scrollback has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
freerobby has quit [Quit: Leaving.]
i_s has joined #ruby
johnrlive has joined #ruby
Taranis has joined #ruby
<Godd2> and if taxonomy is a new Taxonomy with (:top, nil, []), what do I do with all the children?
zeade has joined #ruby
<davidcelis> i'm just gonna interject here
<davidcelis> because this seems like a GOD AWFUL project to use for learning ruby
<davidcelis> are you a linguist? because english is fuggin' hard. and dumb. :(
<davidcelis> i'd really suggest you find something else to get started with ruby and OOP
bradhe has quit [Ping timeout: 245 seconds]
<davidcelis> Godd2: perhaps Practical Object-Oriented Design with Ruby? people seem to love that book
<Godd2> My grasp of proper syntax in the English language is fine, I just have no idea how the underlying structure of my program should look to support the behavior of syntax generation.
<sevenseacat> its a good book.
<davidcelis> Godd2: i can give you an idea of how it would look
johnrlive has quit [Read error: Operation timed out]
<davidcelis> probably really terrible
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
<davidcelis> because english has so many edge cases
<davidcelis> and exceptions to rules
mansi has quit [Ping timeout: 268 seconds]
<davidcelis> even making a library for pluralization and singularization in ruby is hard
<davidcelis> look at ActiveSupport::Inflector for godsake, they totally flunked it
freerobby has joined #ruby
<davidcelis> sure they may have meant well
Sherwyn has quit [Remote host closed the connection]
<Godd2> I suppose I should have simplified what I'm working on to learn about it from a basic standpoint and then extend it later when Im comfortable with that level of abstraction
<davidcelis> adding some exceptions here and there
freerobby has quit [Client Quit]
<davidcelis> but now they've got themselves a goddamned plate of spaghetti
<davidcelis> and the spaghetti isn't good, Godd2
<davidcelis> it's old
<davidcelis> and stale
<davidcelis> and there's really no sauce to speak of
<n_blownapart> you still sevenseacat ?
<n_blownapart> on*
<Godd2> I think my problem is that Im trying to do too much at once
<Godd2> Ill scale back and then come back if I have a problem with a simpler scheme.
<sevenseacat> the sauce is the best part.
minimus has joined #ruby
<sevenseacat> n_blownapart: sup.
<davidcelis> sevenseacat: right.
<davidcelis> sevenseacat: and the inflector has no sauce :(
<Godd2> I thought maybe only doing independent clauses would be simple enough, but I guess not :P
Andreo_ has quit [Read error: Connection reset by peer]
<n_blownapart> cool how shall I post a long error message sevenseacat ?
<davidcelis> n_blownapart: gist.github.com
<Godd2> ok pontiki, thanks very much for that overview of Structs :)
<n_blownapart> gratzie will do
Cyrus has quit [Ping timeout: 240 seconds]
<pontiki> looking at what i just wrote, it is pure crap
<pontiki> and should be a proper class, with proper insert, delete, and so on
DanKnox_away is now known as DanKnox
osvico has quit []
Levin_22 has quit [Quit: Levin_22]
<n_blownapart> davidcelis: sevenseacat https://gist.github.com/anonymous/5779363 - from updating gemfile which includes the pg gem
<n_blownapart> thanks
DanKnox is now known as DanKnox_away
lyanchih has quit [Quit: lyanchih]
fomatin has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
<sevenseacat> do you have the postgres development libraries installed?
eldariof has joined #ruby
<n_blownapart> code is here http://pastie.org/8041321 ^^ (didn't include thin gem on this try.)
<sevenseacat> this looks like osx and i'm not super familiar with osx
<n_blownapart> sevenseacat: ummm
bionhart has joined #ruby
<davidcelis> do... do you have POSTGRES installed??
<davidcelis> it looks like you don't even have postgresql installed
<davidcelis> do you...?
dhruvasagar has joined #ruby
RORgasm has joined #ruby
<n_blownapart> well sevenseacat Im following a tutorial and I thought it was all set up. the first chapter went nicely with precise gem numbers ,etc .
havenwood has quit [Remote host closed the connection]
<n_blownapart> the tutorial doesn't mention it ... odd davidcelis sevenseacat
<davidcelis> link to tutorial
<sevenseacat> i'm guessing mhartl's tutorial
<n_blownapart> you got it right sevenseacat davidcelis http://ruby.railstutorial.org/chapters/a-demo-app#sec-modeling_demo_microposts
uxp has quit [Remote host closed the connection]
<sevenseacat> cool so i guess you're trying to use sqlite in dev and postgres only in production? in that case, you should run bundle --without production
saarinen has joined #ruby
<davidcelis> that tutorial uses sqlite
<sevenseacat> davidcelis: yes but it deploys to heroku :p
<davidcelis> ah
RORgasm has quit [Read error: Operation timed out]
<davidcelis> yeah, do what sevenseascat says
<sevenseacat> davidcelis: i am still not scat
<n_blownapart> I cant get that far it doesn't like bundle update
<n_blownapart> the without production tag comes next ^^
<sevenseacat> i wouldnt be running bundle update
uxp has joined #ruby
yacks has quit [Ping timeout: 268 seconds]
<n_blownapart> oh just by pass it? sevenseacat
vwoo has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
<n_blownapart> sevenseacat: shit how did you determine that?
rgrinberg has joined #ruby
<sevenseacat> from seeing that error numerous times before :p
<n_blownapart> thanks the odd thing is I don't see the pg gem listed is that because of the tag?
<n_blownapart> sevenseacat: ^^
<sevenseacat> well yeah, you don't want that gem installed in development.
khushildep has joined #ruby
khushildep has quit [Client Quit]
<n_blownapart> please elaborate. That gem is strictly used during deployment?
khushildep has joined #ruby
<sevenseacat> yes. you're using sqlite as your database in development, and then deploying to heroku which uses postgres as its database
<sevenseacat> i do not condone this behaviour, i would prefer that it directed to use postgres in all environments, but hey
ioNull has quit [Quit: Textual IRC Client: www.textualapp.com]
<n_blownapart> sevenseacat: thanks. I don't understand why the tutorial didn't walk me through that.
<sevenseacat> no idea. that tutorial's been rewritten a couple times since i followed it and i dont like the direction it's gone, I don't generally recommend it to people.
<n_blownapart> dang. sevenseacat what do you recommend?
<n_blownapart> sweet sevenseacat I'll check it out thanks !
<sevenseacat> np
nomenkun has quit [Remote host closed the connection]
crankyco_ has joined #ruby
corehook_ has joined #ruby
mbytes has joined #ruby
girija has joined #ruby
crankyco_ has quit [Ping timeout: 240 seconds]
hakunin has quit [Read error: Connection reset by peer]
<n_blownapart> sevenseacat: hey one more thing if you have time. Is that book appropriate for someone with a moderate comprehension of ruby ( I went through the Well Grounded Rubyist book)
hakunin has joined #ruby
<sevenseacat> i would think so
khushildep has quit [Quit: khushildep]
<n_blownapart> thanks
Domon has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
ner0x has quit [Quit: Leaving]
crankyco_ has joined #ruby
jesly has quit [Ping timeout: 240 seconds]
bigmac has quit [Read error: Connection reset by peer]
mansi has joined #ruby
vlad_starkov has joined #ruby
jojosiao has quit [Ping timeout: 250 seconds]
poincare1011 has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
binw_ has joined #ruby
crankyco_ has quit [Ping timeout: 276 seconds]
pootler__ has quit [Ping timeout: 256 seconds]
Solnse has joined #ruby
ivanoats has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
pootler_ has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
corehook__ has joined #ruby
werdnativ has joined #ruby
binw__ has quit [Ping timeout: 256 seconds]
Jackneill has joined #ruby
Jackneill has joined #ruby
kenneth has quit [Quit: kenneth]
corehook_ has quit [Ping timeout: 252 seconds]
mansi has quit [Ping timeout: 252 seconds]
byprdct has joined #ruby
generalissimo has joined #ruby
jesly has joined #ruby
tommyvyo has quit [Quit:]
johnrlive has joined #ruby
jhn has joined #ruby
adkron has quit [Ping timeout: 276 seconds]
ivanoats has joined #ruby
johnrlive has quit [Read error: Operation timed out]
Davey has quit [Quit: Computer has gone to sleep.]
cofin has quit [Quit: cofin]
tommyvyo has joined #ruby
freakazoid0223 has quit [Ping timeout: 252 seconds]
kenneth has joined #ruby
jojosiao has joined #ruby
sayan has joined #ruby
lyanchih has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Davey has joined #ruby
Nisstyre has quit [Quit: Leaving]
i_s has quit [Quit: i_s]
m_3 has quit [Ping timeout: 256 seconds]
kenneth has quit [Quit: kenneth]
mduvall has quit [Quit: mduvall]
huoxito has quit [Quit: Leaving]
tw1sted has quit [Quit: tw1sted]
jalcine_ has joined #ruby
Michae___ has quit [Remote host closed the connection]
nomenkun has joined #ruby
stonevil has joined #ruby
lewix has joined #ruby
timkohrumel has quit [Remote host closed the connection]
arubin has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
splittingred has quit [Quit: splittingred]
atno has joined #ruby
ehaliewicz has joined #ruby
tommyvyo has quit [Quit:]
davetherat has joined #ruby
dankest has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.1]
eldariof has quit [Ping timeout: 264 seconds]
jalcine_ is now known as jalcine
Hanmac1 has joined #ruby
m_3 has joined #ruby
ivanoats has quit [Remote host closed the connection]
boblu has joined #ruby
rickruby has quit [Read error: No route to host]
codecop has joined #ruby
rickruby has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
wargasm has quit [Read error: Connection reset by peer]
arubin has joined #ruby
eldariof has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
generalissimo has quit [Remote host closed the connection]
atno has quit [Ping timeout: 246 seconds]
c0rn has joined #ruby
DonRichie has joined #ruby
allure has joined #ruby
allure has quit [Changing host]
allure has joined #ruby
DomKM has quit [Quit: Leaving.]
syamajala has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
rickruby_ has joined #ruby
rickruby has quit [Ping timeout: 252 seconds]
Domon has joined #ruby
Davey has joined #ruby
yshh has quit [Remote host closed the connection]
zacts has joined #ruby
vlad_starkov has joined #ruby
Davey has quit [Ping timeout: 260 seconds]
philcrissman_ has joined #ruby
andikr has joined #ruby
mansi_ has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
Domon has quit [Remote host closed the connection]
pontiki has quit [Ping timeout: 246 seconds]
tagrudev has joined #ruby
Domon has joined #ruby
jesly has quit [Ping timeout: 245 seconds]
pontiki has joined #ruby
mansi_ has quit [Ping timeout: 252 seconds]
Domon has quit [Remote host closed the connection]
braoru has joined #ruby
Domon has joined #ruby
rickruby has joined #ruby
rickruby_ has quit [Ping timeout: 252 seconds]
Domon has quit [Remote host closed the connection]
ffio_ has quit [Ping timeout: 240 seconds]
syamajala has quit [Quit: leaving]
Domon has joined #ruby
aganov has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
johnrlive has joined #ruby
axsuul has joined #ruby
mansi_ has joined #ruby
krz has joined #ruby
ananthakumaran has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
johnrlive has quit [Read error: Operation timed out]
corehook__ is now known as corehook
yshh has joined #ruby
Leighton has left #ruby ["Leaving"]
apeiros has quit [Remote host closed the connection]
mansi_ has quit [Ping timeout: 240 seconds]
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
BizarreCake has joined #ruby
timkohrumel has joined #ruby
jprovazn has joined #ruby
havenwood has joined #ruby
subbyyy_ has joined #ruby
scipi0 has quit [Ping timeout: 264 seconds]
timkohrumel has quit [Remote host closed the connection]
n_blownapart has quit [Remote host closed the connection]
danman has joined #ruby
danman has quit [Client Quit]
madhatter has joined #ruby
RORgasm has joined #ruby
dash_ has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
ffio_ has joined #ruby
tomzx_mac has quit [Ping timeout: 252 seconds]
pootler_ has joined #ruby
pootler__ has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
yashshah has joined #ruby
TheNumb has quit [Read error: Connection reset by peer]
io_syl has joined #ruby
rickruby has quit [Ping timeout: 245 seconds]
RORgasm has quit [Ping timeout: 264 seconds]
atno has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
stkowski has quit [Quit: stkowski]
codesoda has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
braoru has quit [Remote host closed the connection]
stonevil has quit [Remote host closed the connection]
robscomputer has joined #ruby
werdnativ has quit [Quit: werdnativ]
bionhart has quit [Remote host closed the connection]
ayaz has joined #ruby
ayaz has quit [Client Quit]
zeade has quit [Quit: Leaving.]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
ayaz has joined #ruby
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
lewix has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
persand has joined #ruby
jimg has joined #ruby
JumpMast3r has joined #ruby
Meatant has quit [Ping timeout: 256 seconds]
jhn has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
braoru has joined #ruby
timonv has quit [Remote host closed the connection]
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
lewix has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
jpun has quit [Read error: Operation timed out]
tatsuya_o has joined #ruby
Shirakawasuna has quit [Read error: Operation timed out]
tatsuya_o has quit [Remote host closed the connection]
ehaliewicz has quit [Ping timeout: 252 seconds]
arya has joined #ruby
jpun has joined #ruby
vlad_starkov has joined #ruby
workmad3 has joined #ruby
Hanmac1 has quit [Quit: Leaving.]
dankest has quit [Quit: Leaving...]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
MrZYX|off is now known as MrZYX
subbyyy_ has quit [Ping timeout: 252 seconds]
b0oh has joined #ruby
crankyco_ has joined #ruby
kenneth has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
eldariof has quit [Ping timeout: 264 seconds]
ericmathison has joined #ruby
timonv has joined #ruby
zigomir has joined #ruby
atno has quit [Quit: Leaving]
crankyco_ has quit [Ping timeout: 240 seconds]
filipe has joined #ruby
mansi_ has joined #ruby
johnrlive has joined #ruby
sayan has quit [Read error: Connection reset by peer]
codeluggage has joined #ruby
mafolz has joined #ruby
obs has joined #ruby
johnrlive has quit [Read error: Operation timed out]
framling_ is now known as framling
arquebus has joined #ruby
ChristianS has quit [Excess Flood]
mansi_ has quit [Ping timeout: 264 seconds]
ChristianS has joined #ruby
randomnick has quit [Ping timeout: 252 seconds]
ayaz has quit [Ping timeout: 252 seconds]
lyanchih has quit [Quit: lyanchih]
ayaz has joined #ruby
BizarreCake has joined #ruby
Rizzle has quit [Read error: Connection reset by peer]
admin0 has joined #ruby
Rizzle has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby
khushildep has joined #ruby
Hobogrammer_ has quit [Ping timeout: 252 seconds]
luckyruby has joined #ruby
Hobogrammer has joined #ruby
Hobogrammer_ has joined #ruby
Hobogrammer has quit [Client Quit]
Hobogrammer_ has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
razi has joined #ruby
jinie_ is now known as jinie
timonv has quit [Remote host closed the connection]
jinie is now known as jinie_
pootler__ has quit [Ping timeout: 276 seconds]
pootler_ has quit [Ping timeout: 276 seconds]
crodas has joined #ruby
Solnse has quit []
sideshowcoder has quit [Read error: Operation timed out]
jhowarth has quit [Ping timeout: 260 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
zeromodulus has quit [Read error: Connection reset by peer]
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
zeromodulus has joined #ruby
nari has quit [Ping timeout: 240 seconds]
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby
atno has joined #ruby
Hanmac1 has joined #ruby
arturaz has joined #ruby
sideshowcoder has joined #ruby
axsuul has quit [Quit: axsuul]
jinie_ is now known as jinie
TheNumb has joined #ruby
nomenkun has quit [Remote host closed the connection]
alup has joined #ruby
charliesome has joined #ruby
atno has quit [Ping timeout: 240 seconds]
nari has joined #ruby
dmiller has quit [Remote host closed the connection]
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
dmiller has joined #ruby
burlyscudd has joined #ruby
allure has quit [Remote host closed the connection]
lyanchih has joined #ruby
lyanchih has quit [Client Quit]
lyanchih has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
bionhart has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
burlyscudd has quit [Ping timeout: 256 seconds]
Guest____ has joined #ruby
thelamest has quit [Quit: rebook]
slainer68 has joined #ruby
ivanoats has joined #ruby
arquebus has quit [Quit: Konversation terminated!]
stonevil has joined #ruby
dankest has joined #ruby
pi3r has joined #ruby
dhruvasagar has joined #ruby
girija has quit [Ping timeout: 276 seconds]
jbpros has joined #ruby
<quazimodo> sevenseacat: *poke poke poke*
<quazimodo> take that
<sevenseacat> quazimodo: sup.
jonahR has quit [Quit: jonahR]
cj3kim has quit [Remote host closed the connection]
personDo has joined #ruby
crankyco_ has joined #ruby
<personDo> Do skype,yahoo other chat and social communication prog work 2 spoil muslims youth and spy 4 isreal&usa???????
<personDo> do they record and analyse every word we type????????????
<tobiasvl> personDo: maybe
personDo has quit [Killed (idoru (Spam is off topic on freenode.))]
skasio has quit [Ping timeout: 252 seconds]
ezkl has joined #ruby
ezkl has quit [Max SendQ exceeded]
ivanoats has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 248 seconds]
ezkl has joined #ruby
skasio has joined #ruby
cj3kim has joined #ruby
ephemerian has joined #ruby
crankyco_ has quit [Ping timeout: 252 seconds]
mansi_ has joined #ruby
pootler_ has joined #ruby
johnrlive has joined #ruby
cj3kim has quit [Remote host closed the connection]
slash_nick has quit [Ping timeout: 240 seconds]
jimg has quit [Remote host closed the connection]
troessner has joined #ruby
johnrlive has quit [Read error: Operation timed out]
pootler_ has quit [Remote host closed the connection]
nlv has joined #ruby
timonv has joined #ruby
Iszak has joined #ruby
nlv has quit [Remote host closed the connection]
nlv has joined #ruby
girija has joined #ruby
nlv has quit [Client Quit]
Iszak has quit [Client Quit]
nghialv has joined #ruby
arya has joined #ruby
mansi_ has quit [Ping timeout: 260 seconds]
nghialv has quit [Remote host closed the connection]
b0oh has quit [Quit: Leaving.]
Lennier has joined #ruby
b0oh has joined #ruby
camilasan has joined #ruby
Giorgio has joined #ruby
pootler_ has joined #ruby
pootler__ has joined #ruby
danslo has quit [Quit: danslo]
mikecmpbll has joined #ruby
arya has quit [Ping timeout: 264 seconds]
RORgasm has joined #ruby
senayar has joined #ruby
cyong has quit [Quit: Leaving.]
marr has joined #ruby
ravster has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
Nisstyre has joined #ruby
DaniG2k has joined #ruby
timonv has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
mklappstuhl has joined #ruby
RORgasm has quit [Ping timeout: 245 seconds]
arya has joined #ruby
zai has joined #ruby
zai is now known as Guest58710
Criztian has joined #ruby
farn has quit [Read error: Connection reset by peer]
ybart has joined #ruby
axsuul has joined #ruby
farn has joined #ruby
arya has quit [Ping timeout: 245 seconds]
arya has joined #ruby
supaiku has joined #ruby
corehook has quit [Ping timeout: 252 seconds]
visof has joined #ruby
lunarjar has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 264 seconds]
dr_bob has joined #ruby
filipe has quit [Ping timeout: 264 seconds]
cibs_ has quit [Quit: leaving]
thelamest has joined #ruby
cibs has joined #ruby
jimg has joined #ruby
filipe has joined #ruby
elaptics`away is now known as elaptics
Astralum has quit [Ping timeout: 245 seconds]
atno has joined #ruby
nari has quit [Ping timeout: 240 seconds]
Zai00 has joined #ruby
<Lennier> hi guys
lunarjar has joined #ruby
<Lennier> does someone have experience with jim weirich's Builder Gem?
<Lennier> i have trouble with character encoding
Trynemjoel has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
<Lennier> in the generated xml-file the special chars are converted
Raboo has quit [Read error: Operation timed out]
adamholt has quit [Read error: Operation timed out]
Raboo has joined #ruby
braoru has quit [Read error: Operation timed out]
braoru has joined #ruby
lyanchih has quit [Ping timeout: 240 seconds]
Astralum has joined #ruby
adamholt has joined #ruby
epta has quit [Ping timeout: 252 seconds]
lunarjar has quit [Ping timeout: 260 seconds]
jimg has quit [Ping timeout: 256 seconds]
epta has joined #ruby
lunarjar has joined #ruby
burlyscudd has joined #ruby
bionhart has quit [Remote host closed the connection]
kloeri has quit [Remote host closed the connection]
kloeri has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
Zai00 has quit [Quit: Zai00]
nari has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
Zai00 has joined #ruby
sepp2k has joined #ruby
lyanchih has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
noname001 has joined #ruby
dankest has quit [Quit: Leaving...]
ivanoats has joined #ruby
dmiller has joined #ruby
yashshah has quit [Read error: Operation timed out]
timmow has joined #ruby
dmiller has quit [Read error: Operation timed out]
crankyco_ has joined #ruby
ivanoats has quit [Ping timeout: 240 seconds]
senayar_ has joined #ruby
vlad_starkov has joined #ruby
lolmaus has joined #ruby
ferdev has joined #ruby
Zai00 has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
senayar_ has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 240 seconds]
crankyco_ has quit [Ping timeout: 246 seconds]
<lolmaus> I've got a fairly large block of code with an `if foo` appended to the last `end`. https://gist.github.com/lolmaus/5780439 I'm worried that this if clause is difficult to notice when reading the code. But moving the if clause to the beginning will create another level of nesting, which will make code more complicated. Is there a recommended way to put the if clause to the beginning without creating
<lolmaus> extra indentation and extra `end`?
mansi has joined #ruby
senayar has joined #ruby
obs has quit [Read error: No route to host]
obs has joined #ruby
johnrlive has joined #ruby
leonidlm has joined #ruby
<canton7> the extra level of indentation isn't that bad, and indeed makes it clearer that there's exception handling going on
nomenkun has joined #ruby
ferdev has quit [Read error: Connection reset by peer]
ferdev has joined #ruby
johnrlive has quit [Read error: Operation timed out]
rdark has joined #ruby
razi has quit [Quit: Leaving.]
<lolmaus> canton7, so you prefer 2nd variant? https://gist.github.com/lolmaus/5780439
slainer6_ has joined #ruby
<canton7> lolmaus, use 2-space indents to keep with the rest of your code (and general ruby style), but sure
corehook has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
nomenkun has quit [Remote host closed the connection]
Nisstyre has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 245 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
jimg has joined #ruby
slainer68 has joined #ruby
<lolmaus> canton7, a dude from #ruby-lang suggested a cleaner variant that i was looking for: <yorickpeterse> lolmaus: you can just put a `return unless sass_code` at the very top
Nisstyre has joined #ruby
Alina-malina has joined #ruby
stonevil has quit [Remote host closed the connection]
stef_204 has joined #ruby
<canton7> lolmaus, yeah I'm reading both channels. and yes that works unless you need the method to continue executing after that if statement, if sass_code isn't set
<lolmaus> canton7, thank you. ^__^
jojosiao has quit [Quit: Page closed]
timonv has joined #ruby
slainer6_ has quit [Ping timeout: 252 seconds]
stonevil has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
<ekarlso> win 45
<mikecmpbll> i prefer the if block statement.
Al__ has joined #ruby
pi3r has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Remote host closed the connection]
arya has quit [Ping timeout: 256 seconds]
jamesaxl has joined #ruby
corehook has quit [Read error: Connection reset by peer]
pandawarrior has joined #ruby
slainer68 has quit [Ping timeout: 240 seconds]
advorak has joined #ruby
benlieb has joined #ruby
yashshah has joined #ruby
artofraw has joined #ruby
ananthakumaran has quit [Ping timeout: 276 seconds]
<artofraw> how would you measure unicorn vs webrick in development mode? using ab?
jhowarth has joined #ruby
benlieb has quit [Remote host closed the connection]
workmad3 has joined #ruby
benlieb has joined #ruby
darkc0met has quit [Changing host]
darkc0met has joined #ruby
darkc0met has joined #ruby
fixl has joined #ruby
ananthakumaran has joined #ruby
_Andres has joined #ruby
<nyuszika7h> is there some one-liner way to sum an array's items? (just plain Ruby, not Rails)
slainer68 has joined #ruby
<nyuszika7h> hmm, arr.reduce(:+) seems to work
sayan has joined #ruby
stonevil has quit [Remote host closed the connection]
arya has joined #ruby
maasha has joined #ruby
<maasha> hi
arya has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
dangerousdave has joined #ruby
stonevil has joined #ruby
arya has joined #ruby
codeluggage has quit [Quit: Leaving...]
sammmmm has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
sammmmm has quit [Remote host closed the connection]
sammmmm has joined #ruby
slainer68 has joined #ruby
vx17_ has quit [Quit: leaving]
<maasha> I want to run a external command "check_stuff" using system(). Now the check_stuff command can fail on its own and I catch that with .success? - but the output of check_stuff is a message to stdout and in the case this message says error - I want check_stuff to fail as well. Can this be done with the system() call somehow?
<maasha> For the sake of the log file I would like to avoid two steps
corehook has joined #ruby
arya has quit [Ping timeout: 252 seconds]
Guest____ has quit [Quit: Textual IRC Client: www.textualapp.com]
jbpros has quit [Quit: jbpros]
pi3r has joined #ruby
pipopopo has joined #ruby
benlieb has quit [Quit: benlieb]
<maasha> where is everybody?
<maasha> O_o
nomenkun has quit [Read error: Connection reset by peer]
<maasha> o_O
nomenkun has joined #ruby
ivanoats has joined #ruby
sammmmm has quit [Quit: sammmmm]
arya has joined #ruby
corehook has quit [Read error: Connection reset by peer]
boblu has quit [Remote host closed the connection]
F1skr has joined #ruby
ShapeShifter499 has quit [Excess Flood]
yashshah has quit [Read error: Connection reset by peer]
hamakn_ has quit [Read error: Connection reset by peer]
ivanoats has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
jonahR has joined #ruby
mansi has joined #ruby
sammmmm has joined #ruby
workmad3 has joined #ruby
sammmmm has quit [Remote host closed the connection]
ShapeShifter499 has joined #ruby
mklappstuhl has joined #ruby
johnrlive has joined #ruby
asellus has quit [Quit: WeeChat 0.4.0]
corehook has joined #ruby
codesoda has quit [Remote host closed the connection]
johnrlive has quit [Read error: Operation timed out]
mansi has quit [Ping timeout: 240 seconds]
samuel02 has joined #ruby
pandawarrior has quit [Quit: Leaving.]
jimg has joined #ruby
mklappst_ has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
Hanmac1 has quit [Ping timeout: 264 seconds]
luckyruby has quit [Remote host closed the connection]
stonevil has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
dagobah has joined #ruby
amedeiros has joined #ruby
axsuul has quit [Quit: axsuul]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sayan has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
visof has quit [Quit: Leaving]
stonevil has joined #ruby
RORgasm has joined #ruby
lyanchih has quit [Quit: lyanchih]
Rizzle has quit [Read error: Connection reset by peer]
amedeiros has quit [Ping timeout: 256 seconds]
jimg has quit [Ping timeout: 252 seconds]
amedeiros has joined #ruby
horofox has joined #ruby
Rizzle has joined #ruby
Giorgio has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
<quazimodo> sevenseacat: nm :D
akemrir has joined #ruby
<quazimodo> <- might be getting a job in usa to do rubies
b0oh has quit [Quit: Leaving.]
RORgasm has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
lyanchih has quit [Client Quit]
RonScagz has joined #ruby
lyanchih has joined #ruby
amedeiros has quit [Ping timeout: 260 seconds]
agjacome has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
lyanchih has quit [Client Quit]
amedeiros has joined #ruby
agjacome has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
corehook has quit [Read error: Connection reset by peer]
asellus has joined #ruby
himsin has joined #ruby
ananthakumaran has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
a_a_g has joined #ruby
dhruvasagar has joined #ruby
b0oh has joined #ruby
ttt has quit [Remote host closed the connection]
BeLucid has joined #ruby
lkba has joined #ruby
Asher has quit [Ping timeout: 240 seconds]
amedeiros has quit [Ping timeout: 252 seconds]
amedeiros has joined #ruby
nettoweb has joined #ruby
horofox has quit [Quit: horofox]
ananthakumaran has quit [Quit: Leaving.]
tkuchiki has joined #ruby
ananthakumaran has joined #ruby
ybart has quit [Quit: ybart]
amedeiros has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
amedeiros has joined #ruby
amedeiros has left #ruby [#ruby]
samuel02 has quit [Remote host closed the connection]
_JamieD_ has joined #ruby
corehook has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
camilasan has joined #ruby
pandawarrior has joined #ruby
LennyLinux has joined #ruby
workmad3 has quit [Read error: Operation timed out]
yashshah has joined #ruby
camilasan has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
corehook has quit [Read error: Connection reset by peer]
artofraw has left #ruby ["bb"]
scrollback has quit [Remote host closed the connection]
mixel has joined #ruby
jimg has joined #ruby
slainer6_ has joined #ruby
arya has quit [Ping timeout: 245 seconds]
nalaginrut has quit [Ping timeout: 276 seconds]
Lennier has quit [Quit: Lennier]
danslo has joined #ruby
burlyscudd has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
pandawarrior has quit [Ping timeout: 276 seconds]
tkuchiki has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 276 seconds]
tkuchiki has joined #ruby
gyre007 has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
gildo has joined #ruby
<nyuszika7h> what's the best way to initialize class instance variables to nil?
Al__ has quit [Quit: Al__]
L8D has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
Gues_____ has joined #ruby
Gues_____ is now known as Guest89034
burlyscudd has quit [Ping timeout: 246 seconds]
ayaz has quit [Ping timeout: 256 seconds]
aspiers has quit [Ping timeout: 256 seconds]
ivanoats has joined #ruby
<ericmathison> nyuszika7h: aren't class instance variables nil by default or am i missing something?
<nyuszika7h> oh, they are?
<nyuszika7h> I forgot, thanks for reminding me
<ericmathison> yeah
<apeiros> nyuszika7h: class X; @var = nil
jonahR has quit [Quit: jonahR]
<apeiros> ericmathison: all ivars are autovivified to nil, they are however NOT defaulted to nil (that'd require a declaration, which ruby does not have)
<apeiros> i.e. if you run ruby with -w, accessing an undefined ivar will resolve to nil, but print a warning
pandawarrior has joined #ruby
nerdman has joined #ruby
<nyuszika7h> apeiros: will a "@socket.nil?" check raise a warning too?
<ericmathison> apeiros: ok. thanks for clarifying
lyanchih has quit [Ping timeout: 264 seconds]
h8R has joined #ruby
ivanoats has quit [Ping timeout: 260 seconds]
<apeiros> nyuszika7h: warnings are not raised
<apeiros> they simply get printed
<nyuszika7h> whatever
camilasan has joined #ruby
<nyuszika7h> prined
<nyuszika7h> printed
<apeiros> and yes, all read access to an undefined ivar will
Al__ has joined #ruby
ayaz has joined #ruby
Al__ has quit [Client Quit]
boblu has joined #ruby
ravster has left #ruby [#ruby]
jimg has joined #ruby
alexwh has joined #ruby
mansi has joined #ruby
kasper_ has joined #ruby
blitz has quit [Quit: This computer has gone to sleep]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
danshultz has joined #ruby
johnrlive has joined #ruby
Asher has joined #ruby
<nyuszika7h> is TCPSocket.open just an alias for TCPSocket.new?
johnrlive has quit [Read error: Operation timed out]
<canton7> nyuszika7h, With no associated block, IO.open is a synonym for ::new. If the optional code block is given, it will be passed io as an argument, and the IO object will automatically be closed when the block terminates. In this instance, ::open returns the value of the block.
huttan has quit [Ping timeout: 264 seconds]
danshultz has quit [Remote host closed the connection]
<nyuszika7h> oh, fancy
mansi has quit [Ping timeout: 256 seconds]
stonevil_ has joined #ruby
huttan has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
timmow has quit [Remote host closed the connection]
stonevil has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
devoldmx has joined #ruby
mikecmpbll has joined #ruby
Domon has quit [Remote host closed the connection]
girija has quit [Ping timeout: 276 seconds]
Proshot has quit [Quit: leaving]
statarb3 is now known as Proshot
naquad has quit [Max SendQ exceeded]
redgirl has joined #ruby
agjacome has joined #ruby
agjacome has quit [Client Quit]
jacobbednarz has joined #ruby
naquad has joined #ruby
osvico has joined #ruby
boblu has quit [Ping timeout: 264 seconds]
machuga|away is now known as machuga
lyanchih has quit [Quit: lyanchih]
jimg has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
jacobbednarz has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
pi3r has quit [Quit: Leaving]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
jacobbednarz has joined #ruby
ShapeShifter499 has quit [Excess Flood]
Hien has quit [Ping timeout: 260 seconds]
Hien has joined #ruby
horofox_ has joined #ruby
Macaveli has joined #ruby
atmosx has joined #ruby
advorak has quit [Quit: Leaving.]
<nyuszika7h> how can I prevent the main thread from exiting while a child thread is still running?
<nyuszika7h> my code is http://ix.io/69T/ruby
_Andres has quit [Ping timeout: 264 seconds]
<nyuszika7h> I can post the library code if needed, but it _might_ be a bit of mess
jacobbednarz has quit [Ping timeout: 245 seconds]
myappleguy has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
agjacome has joined #ruby
<nyuszika7h> well, it's just 27 SLOC atm, not that much of a mess :P
<nyuszika7h> (not counting the license boilerplate)
advorak has joined #ruby
ShapeShifter499 has joined #ruby
boblu has joined #ruby
aspiers has joined #ruby
Lennier has joined #ruby
<Lennier> i started learning ruby a few days ago and i'm stuck with this code:
nari has quit [Ping timeout: 240 seconds]
ybart has joined #ruby
shambat has joined #ruby
bamdad has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
robustus has joined #ruby
<ghr> Lennier you haven't defined what performer is
<ghr> try
<ghr> puts ticket1.sendtest(:performer)
<ghr> or
<ghr> puts ticket1.sendtest('performer')
<ghr> either of those should work for you
timmow has joined #ruby
<Lennier> ghr: thanks! it worked
dhruvasagar has quit [Ping timeout: 264 seconds]
<ghr> :)
<shambat> I have a quick question about the rails console. I'm trying to perform a simple iteration: e.each { |x| puts x.name }, which works fine, except it also prints the whole "e" object afterwards. This makes it hard to read the actual printout I want to perform. What am I doing wrong?
<Lennier> that's great
samuel02 has joined #ruby
<ghr> You were trying to pass an undefined variable as a method argument
<Lennier> yes, i see it now :)
<Lennier> thanks a lot
<ghr> np
bdornellas has joined #ruby
<Lennier> so i can continue studying ruby
<Lennier> bye
<ghr> enjoy!
pellis has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
TIJ has joined #ruby
pandawarrior has quit [Quit: Leaving.]
shambat has quit [Ping timeout: 250 seconds]
b0oh has quit [Quit: Leaving.]
tonini has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
nkr has joined #ruby
<bdornellas> 1
bluenemo has joined #ruby
bluenemo has joined #ruby
burlyscudd has joined #ruby
jimg has joined #ruby
pen has joined #ruby
BrianJ has joined #ruby
nettoweb has quit [Quit: nettoweb]
<Lennier> guys, i'm stuck with a simple rspec test for a practice example of the send method:
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<Lennier> what am i missing in the rspec test?
bdornellas has quit [Quit: leaving]
kofno has joined #ruby
hogeo has quit [Remote host closed the connection]
<ghr> Lennier in the method you're calling puts, not returning the string
atno has quit [Ping timeout: 268 seconds]
BizarreCake has quit [Quit: Leaving]
burlyscudd has quit [Ping timeout: 252 seconds]
TIJ has quit [Quit: Konversation terminated!]
verto has joined #ruby
TIJ has joined #ruby
myappleguy has quit [Quit: Leaving.]
<Lennier> ghr: thanks, that was it!
jimg has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
dmyers_ has joined #ruby
<ghr> :)
kasper_ has quit [Remote host closed the connection]
crankyco_ has joined #ruby
kasper_ has joined #ruby
advorak has quit [Quit: Leaving.]
girija has joined #ruby
myappleguy has joined #ruby
sevenseacat has left #ruby [#ruby]
ivanoats has joined #ruby
dEPy has joined #ruby
bamorim has joined #ruby
dmyers has quit [Ping timeout: 264 seconds]
dmyers_ is now known as dmyers
bamorim is now known as bdornellas
postmodern has quit [Quit: Leaving]
gyre007 has quit [Remote host closed the connection]
Guest58710 is now known as zai
bdornellas has quit [Client Quit]
lkba has joined #ruby
boblu has quit [Ping timeout: 245 seconds]
ivanoats has quit [Ping timeout: 264 seconds]
gyre007 has joined #ruby
mansi has joined #ruby
horofox_ has quit [Quit: horofox_]
advorak has joined #ruby
skasio has quit [Ping timeout: 240 seconds]
<nyuszika7h> how can I prevent a child thread from exiting when the main thread reaches its end? http://ix.io/69T/ruby
johnrlive has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
pen has quit [Read error: Connection reset by peer]
<canton7> nyuszika7h, make the main thread wait for the child thread
<canton7> do you really want that thread, though?
<nyuszika7h> yes
<nyuszika7h> it's the read loop of my IRC bot
pen has joined #ruby
<nyuszika7h> when that thread exits, the main program exits too and the connection dies
skasio has joined #ruby
<canton7> most IRC bot read/write loops are implemented with Kernel#select
geekbri has joined #ruby
<nyuszika7h> oh?
johnrlive has quit [Read error: Operation timed out]
<nyuszika7h> I'll look into it, thanks
threesome has quit [Quit: Leaving]
BSaboia has joined #ruby
<ccooke> canton7: some are threaded
<nyuszika7h> anyway, a workaround I've found is "rloop = Thread.new { ... }", then sending messages, then "rloop.join" - although this will probably block after sending messages
<canton7> single-threaded, Kernel#select blocks until data is received from the socket, stdin, etc, then takes appropriate action and goes back to waiting
<canton7> ccooke, some are, but they're developed by people who are more familiar with threads
<canton7> nyuszika7h, that's the solution, not just a workaround
<nyuszika7h> it is?
<ccooke> canton7: yeah.
<nyuszika7h> but will it work if I need to make the bot send messages later?
<nyuszika7h> oh wait, I'll make it send them inside the thread
<nyuszika7h> so, never mind me :P
<ccooke> canton7: I find that Ruby has vastly increased my familiarity with threads
<canton7> then you need to be waiting for stdin input, rather than the child thread
<ccooke> canton7: which is a bugger when I have to code in perl, I can tell you
<canton7> ccooke, haha, sounds painful
b0oh has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
<ccooke> canton7: perl threading works, and it's high performance and can be a great solution, especially taking the habits I've built using Ruby. But ugh, it's painful :-)
rockets has joined #ruby
Giorgio has joined #ruby
chattmatt has joined #ruby
boblu has joined #ruby
zastern has quit [Ping timeout: 246 seconds]
osvico has quit [Ping timeout: 245 seconds]
ToApolytoXaos has joined #ruby
jamesaxl has quit [Ping timeout: 260 seconds]
yshh has joined #ruby
Giorgio has quit [Ping timeout: 268 seconds]
tonini has quit [Ping timeout: 248 seconds]
RORgasm has joined #ruby
devoldmx3 has joined #ruby
tonini has joined #ruby
RORgasm has quit [Read error: Operation timed out]
devoldmx has quit [Ping timeout: 264 seconds]
kenneth has quit [Ping timeout: 252 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
niceguyjames has joined #ruby
niceguyjames has quit [Client Quit]
camilasan has quit [Remote host closed the connection]
mark_locklear has joined #ruby
freeayu has quit [Ping timeout: 252 seconds]
brbcoding has joined #ruby
avril14th has joined #ruby
ctp_ has joined #ruby
advorak has quit [Quit: Leaving.]
Evropi has joined #ruby
kristiandelay has joined #ruby
<Evropi> hey there, if I'm using a gem, do I need to require it in main or can I require it in other files in the work
<Evropi> I require those with require_relative
<Evropi> do I need to also require gems in main
skasio has quit [Read error: Operation timed out]
samuel02 has quit [Ping timeout: 264 seconds]
ctp has quit [Ping timeout: 252 seconds]
skasio has joined #ruby
adkron has joined #ruby
devoldmx3 has quit [Ping timeout: 264 seconds]
_Andres has joined #ruby
subbyyy_ has joined #ruby
atno has joined #ruby
pandawarrior has joined #ruby
camilasan has joined #ruby
bamdad has quit [Quit: bamdad]
BSaboia has quit [Ping timeout: 264 seconds]
niceguyjames has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
<nyuszika7h> why isn't this code working as intended? if line =~ /^PING / then client.send("PONG #{line.sub('^PING (.+)$', '\1')}") end
<nyuszika7h> also, is regex faster than split+slice or the other way around?
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
atmosx has quit [Quit: And so the story goes…]
<ccooke> regex is expensive. But that only matters if you're doing lots of them in a second
girija has quit [Ping timeout: 276 seconds]
ctp_ has quit [Read error: Operation timed out]
burlyscudd has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
machuga is now known as machuga|away
<buzzybron> regex sucks imo, avoid it if you can
<Evropi> indeed
<Evropi> so will anyone answer my question ;_;
gildo has quit [Ping timeout: 252 seconds]
Squarepy has joined #ruby
stonevil_ has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
<avril14th> Evropi: requiring as many places as you need is no different
<avril14th> it will just ensure you that it is loaded
<Evropi> okay
<Evropi> it just sounds expensive, that's all
<Evropi> so I'd rather not load everywhere
<avril14th> I might be wrong but I don't think it is
jinie is now known as jinie_
devoldmx has joined #ruby
<avril14th> there's a unless loaded mechanism I think
<avril14th> so it's not expensive
<avril14th> but I might be wrong
<Evropi> hmm yeah I could certainly do that, thanks
<avril14th> Evropi: I think it's included
mansi_ has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
<avril14th> Evropi: IIRC is just a load with a check whether it was previously loaded
<buzzybron> whats your question again? sorry... drunk here try my best to help
<Evropi> buzzybron: when requiring a gem
<Evropi> do I need to just require them all in main
synthetix has quit [Read error: Operation timed out]
<Evropi> or do I need to require them in other modules in different files too
corehook has joined #ruby
<Evropi> it's not really for the expense to be fair, it's just a pain in the ass as there are dozens of files here
jimg has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.1]
<nyuszika7h> #python tells me to use regex, #ruby tells me to avoid it... seems legit.
<nyuszika7h> :P
obs has quit [Quit: Konversation terminated!]
obs has joined #ruby
Guest89034 has quit [Quit: Textual IRC Client: www.textualapp.com]
stonevil has joined #ruby
Gues_____ has joined #ruby
Gues_____ is now known as Guest71038
<buzzybron> Evropi : question of how you want to build your app and what mods/lib we are talking about
<buzzybron> i mean if it's a web app, you might wanna just keep the sessions/db libs loaded in the main
carloslopes has joined #ruby
<Evropi> buzzybron: cinch framework, to build an IRC bot
pen has quit [Read error: No route to host]
<buzzybron> and then the rest loaded as we need them like maybe paging and stuff
pen has joined #ruby
<Evropi> so it isn't global
<Evropi> there will be no threading magic in this
<buzzybron> so you might wanna build your app and load all the shit in one place, then slowly refactor it and see where it is possible to load in file or in main, i mean no point over thinking it right now
<dominikh> (saying there will be no threading magic while using Cinch is a bit of a long stretch, but okay :>)
Lubinski has joined #ruby
jimg has quit [Ping timeout: 268 seconds]
<buzzybron> hope you understand what i'm saying, no point brooding over where to load your libs just yet
adkron has quit [Ping timeout: 260 seconds]
iamjarvo1 has joined #ruby
iamjarvo1 has quit [Client Quit]
ivanoats has joined #ruby
<Evropi> I see, thanks
<buzzybron> hope you understand whats my point
iamjarvo_ has joined #ruby
<Evropi> yeah, I'll just put them all in main, most likely they will work. If they don't, just add them elsewhere
<buzzybron> so there are certain libs, that you will def wanna load in your main, and then some which are loaded where and when you need them, refactor refactor refactor
<Evropi> so basically, if they are not called in main, don't require them in main?
_JamieD_ has quit [Quit: _JamieD_]
Asher has quit [Quit: Leaving.]
razi has joined #ruby
<buzzybron> lol, hmm just code, and go back and refactor
krawchyk has joined #ruby
<Evropi> ah. okay, thanks :D
krz has quit [Quit: krz]
<buzzybron> have fun
chattmatt has quit [Quit: chattmatt]
ivanoats has quit [Ping timeout: 276 seconds]
DaniG2k has quit [Quit: Leaving.]
<Evropi> cheers
crankyco_ has quit [Read error: Connection reset by peer]
erry is now known as evilerry
crankyco_ has joined #ruby
sailias has joined #ruby
maasha has quit [Quit: Page closed]
johnmlocklear_ has joined #ruby
mark_locklear has quit [Ping timeout: 268 seconds]
mklappstuhl has joined #ruby
mklappst_ has quit [Read error: Connection reset by peer]
<buzzybron> cheers
evilerry is now known as erry
mljsimone|away is now known as mljsimone
johnrlive has joined #ruby
sethetter has joined #ruby
johnrlive has quit [Read error: Operation timed out]
milardovich has joined #ruby
corehook has quit [Read error: Connection reset by peer]
Kreas has joined #ruby
dhruvasagar has joined #ruby
yacks has quit [Quit: Leaving]
gildo has joined #ruby
sethetter has quit [Client Quit]
milardovich has quit [Client Quit]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rismoney has quit [Ping timeout: 264 seconds]
machuga|away is now known as machuga
pen has quit [Read error: Connection reset by peer]
rismoney has joined #ruby
thecreators has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
pen has joined #ruby
moted has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
subbyyy_ has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
<nyuszika7h> any idea why exceptions are silently ignored here? http://ix.io/6a0/ruby
myappleguy has quit [Ping timeout: 246 seconds]
<canton7> where? in the thread?
<canton7> if so, "because they're in a thread"
jerius has joined #ruby
burlyscudd has joined #ruby
burlyscudd has joined #ruby
<nyuszika7h> yes, there
<nyuszika7h> how can I change that behavior?
breakingthings has joined #ruby
<canton7> rescue it in the thread, or join the thread
thecreators has quit [Client Quit]
JustinAiken has joined #ruby
drizz has quit [Read error: Operation timed out]
sailias has quit [Quit: Leaving.]
drizz has joined #ruby
<canton7> starting to see why threads can be annoying now? :P
eval-in has quit [Ping timeout: 248 seconds]
advorak has joined #ruby
vlad_starkov has joined #ruby
burlyscudd has quit [Remote host closed the connection]
lemonsparrow has quit [Ping timeout: 250 seconds]
alex88 has quit [Ping timeout: 248 seconds]
kaichanvong has quit [Ping timeout: 264 seconds]
randym_ has quit [Ping timeout: 248 seconds]
eval-in has joined #ruby
martxel has quit [Ping timeout: 264 seconds]
mtlatif__ has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
martxel has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Evropi has left #ruby ["WeeChat 0.4.1"]
filipe has quit [Read error: Operation timed out]
lsc is now known as Schmidt
martxel is now known as Guest6589
b0oh1 has joined #ruby
Mattx has joined #ruby
alex88 has joined #ruby
<nyuszika7h> canton7: thanks
<nyuszika7h> and yep
<nyuszika7h> but what would you use for eval if not a thread?
nettoweb has joined #ruby
trr_ has joined #ruby
<trr_> hi
Appineer has joined #ruby
iamjarvo1 has joined #ruby
sambao21 has joined #ruby
b0oh has quit [Ping timeout: 252 seconds]
<trr_> I have a hex string "FFA0". How can I do operations with that string. I want to rest 100 (integer)
<trr_> is that possible ?
LennyLinux has quit [Remote host closed the connection]
Matip has quit [Ping timeout: 268 seconds]
mbytes has quit [Read error: Connection reset by peer]
pitzips has joined #ruby
<wuest> trr_: I'm afraid I don't quite understand what "I want to rest 100" means.
jamesaxl has joined #ruby
<trr_> wuest: sorry for my english
<trr_> I want to do something like this
<trr_> "FFA0" + "01"
tonini has quit [Ping timeout: 248 seconds]
<trr_> but I can not do it with string
<wuest> Do you want that to result in FFA1?
<trr_> yes
<trr_> the faster solution ?
<wuest> try #to_i(16)
<canton7> ("FFA0".hex + "01".hex).to_s(16)
<trr_> ok
buzzybron has quit [Ping timeout: 264 seconds]
<trr_> canton7: wuest thank you
devoldmx3 has joined #ruby
iamjarvo1 has quit [Ping timeout: 252 seconds]
<wuest> Ah, or #hex; I always forget about that one.
baordog has quit [Remote host closed the connection]
johnrlive has joined #ruby
<trr_> and is it possible conver that string to little endian? I mean "FFA0" to "A0FF"
<trr_> ?
moted has quit [Quit: moted]
homelinen has quit [Ping timeout: 245 seconds]
<Zelest> foo.reverse :P
<Zelest> oh, nvm
tommyvyo has joined #ruby
<canton7> trr_, Array#pack
persand has quit [Quit: persand]
<trr_> reverse would be "0AFF"
beilabs_ has joined #ruby
<trr_> that's not correct
<trr_> canton7: I was taking a look at pack
<canton7> that's the method you want
<wuest> trr_: sounds like you're working on an infosec issue :)
<wuest> Trying to programmatically generate a value for EIP? :)
<canton7> well, that's not a string representation of hex, but rather raw packing of bytes to a string
<trr_> wuest: something similar
homelinen has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
<trr_> I have to problems: one to conver from hex string to hex little endian
codecop has quit [Remote host closed the connection]
hoofed has joined #ruby
<trr_> and the other: get from "hex string" (for example "00AF11") this "\x00\xAF\x11"
<trr_> I meant "two problems" :p
interactionjaxsn has joined #ruby
timmow has quit [Remote host closed the connection]
<canton7> trr_, the latter problem is one that Array#pack fixes?
splittingred has joined #ruby
<trr_> canton7: I'm on it yet :p
Caius has quit [Ping timeout: 240 seconds]
hoofed has quit [Client Quit]
<canton7> so you want to convert FFA0 to "\xA0\xFF"?
<trr_> yes
<trr_> that's
<canton7> is this some sort of online challenge? I've seen this question before recently
<trr_> umm nop
<canton7> oh really? :P
<trr_> I'm progamatically trying to dump some bytes from memory
<trr_> but it's a mess
<trr_> ruby amateur :p
jonahR has joined #ruby
<Zelest> canton7, you might be thinking about vortex?
<canton7> ["0AFF"].pack("V")
<canton7> Zelest, I have no idea. I've just seen the question a few days ago
<Zelest> :-)
<canton7> aah nice
<Zelest> (awesome game btw)
<canton7> looks fun actually :P
<Zelest> It is :)
* canton7 bookmarks
<Zelest> But hard
<trr_> let's me check
<trr_> thank you canton7
<Zelest> OTW got a lot of good games :)
filipe has joined #ruby
Caius has joined #ruby
<trr_> canton7: I get TypeError: can't convert String into Integer
freeayu has joined #ruby
<canton7> oops, ["0AFF".hex].pack("V")
bamdad has joined #ruby
<trr_> now I get "\377\n\000\000"
<wuest> That's correct.
<wuest> 0x0a is a newline
himsin has left #ruby [#ruby]
<wuest> See man 7 ascii
<canton7> the 377 is octal isn't it
<canton7> that or asciitable.com
<trr_> thankyou so much wuest and canton7 :)
<wuest> Yes
ferdev has quit [Ping timeout: 264 seconds]
[Fudge] is now known as nope
nettoweb has quit [Quit: nettoweb]
iamjarvo_ is now known as iamjarvo
LennyLinux has joined #ruby
synthetix has joined #ruby
redgirl has quit [Read error: Connection reset by peer]
<trr_> ciao :)
camilasa_ has joined #ruby
trr_ has quit [Quit: leaving]
wmoxam has joined #ruby
camilasan has quit [Read error: No route to host]
redgirl has joined #ruby
* lupine looks into rev
ferdev has joined #ruby
<Lennier> guys, how can i change the application to use a newer version of a gem?
<Lennier> i updated the builder gem
<Lennier> but i see that, actionpack and activemodel are still using the old version
<Lennier> how can i force them to use the updated version?
r0bgleeson has quit [Ping timeout: 252 seconds]
adkron has joined #ruby
Mattix has joined #ruby
<beilabs_> remove the Gemfile.lock + do a bundle install
mansi_ has quit [Remote host closed the connection]
<beilabs_> or gem update actionpack
blaxter has quit [Quit: foo]
blaxter has joined #ruby
mansi has joined #ruby
Mattix has quit [Remote host closed the connection]
Mattx has quit [Remote host closed the connection]
Mattix has joined #ruby
akells` has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
iamjarvo has quit [Quit: iamjarvo]
<Lennier> beilabs: thanks a lot!
hoofed has joined #ruby
banghouse2 has joined #ruby
awarner has joined #ruby
awarner has quit [Remote host closed the connection]
awarner has joined #ruby
cmarques has joined #ruby
Michae___ has joined #ruby
banghouse2 is now known as banghouse
mansi has quit [Ping timeout: 264 seconds]
bamdad has quit [Quit: bamdad]
jinie_ is now known as jinie
generalissimo has joined #ruby
ivanoats has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
bamdad has joined #ruby
bamdad has quit [Client Quit]
scrollback has joined #ruby
huoxito has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
jrajav has joined #ruby
fuzzyhorns has joined #ruby
denken has quit [Remote host closed the connection]
scottmey has joined #ruby
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
Zai00 has joined #ruby
ivanoats has quit [Ping timeout: 252 seconds]
razi has quit [Ping timeout: 252 seconds]
Banistergalaxy has joined #ruby
esaym153 has joined #ruby
burlyscudd has quit [Remote host closed the connection]
wesside has joined #ruby
wesside has quit [Remote host closed the connection]
jlast has joined #ruby
AndChat| has quit [Ping timeout: 264 seconds]
tomzx_mac has joined #ruby
alx- has joined #ruby
_ffio_ has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.1]
browndawg has joined #ruby
ffio_ has quit [Ping timeout: 240 seconds]
denken has joined #ruby
<esaym153> what is the best way to have a short ruby script close after a certian period of time? I assume if I made a thread with a timer in it that called exit after x minutes then it would only just kill that thread?
ioNull has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
stonevil has quit [Remote host closed the connection]
predator117 has joined #ruby
nettoweb has joined #ruby
_Renegade has joined #ruby
fandikurnia01 has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
BizarreCake has joined #ruby
stonevil has joined #ruby
khushildep_ has joined #ruby
khushildep has quit [Ping timeout: 268 seconds]
khushildep_ is now known as khushildep
DaniG2k has joined #ruby
johnnyfuchs has joined #ruby
tkuchiki has quit [Read error: Operation timed out]
Sherwyn has joined #ruby
v0n has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
RORgasm has joined #ruby
scrollback has quit [Remote host closed the connection]
nettoweb has joined #ruby
scrollback has joined #ruby
pen has quit [Remote host closed the connection]
nkr has quit [Ping timeout: 246 seconds]
jtharris has joined #ruby
dpritchett has joined #ruby
Sherwyn has quit [Remote host closed the connection]
Guest82036 has joined #ruby
vlad_starkov has joined #ruby
RORgasm has quit [Read error: Operation timed out]
jimg has joined #ruby
braoru has quit [Quit: Leaving]
theRoUS has joined #ruby
vlad_sta_ has joined #ruby
mixel has quit [Quit: mixel]
Guest82036 has left #ruby [#ruby]
dpritchett has left #ruby [#ruby]
banisterfiend has joined #ruby
mklappstuhl has joined #ruby
danslo has quit [Quit: danslo]
pipework has joined #ruby
r0bgleeson has joined #ruby
robscomputer has quit [Ping timeout: 245 seconds]
Appineer has left #ruby [#ruby]
Lennier has quit [Quit: Lennier]
lolmaus has quit []
vlad_starkov has quit [Ping timeout: 256 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
jimg has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
denken has quit [Ping timeout: 245 seconds]
Guest6589 is now known as martxel
martxel has joined #ruby
martxel has quit [Changing host]
danslo has joined #ruby
denken has joined #ruby
spider-mario has joined #ruby
sambao21 has quit [Client Quit]
synthetix has quit [Remote host closed the connection]
mansi_ has joined #ruby
rhys has joined #ruby
jesly has joined #ruby
sepp2k has quit [Ping timeout: 276 seconds]
pskosinski has joined #ruby
jrajav has left #ruby ["I tend to be neutral about apples"]
ananthakumaran has quit [Quit: Leaving.]
vlad_sta_ has quit [Remote host closed the connection]
pellis has quit [Quit: This computer has gone to sleep]
asteve has joined #ruby
takezawa has quit [Remote host closed the connection]
TIJ has quit [Quit: Konversation terminated!]
kenneth has joined #ruby
Shrink has quit [Ping timeout: 248 seconds]
sambao21 has joined #ruby
poincare101 has joined #ruby
Shrink has joined #ruby
bean__ has joined #ruby
wallerdev has joined #ruby
Michae___ has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
Michae___ has joined #ruby
RORgasm has joined #ruby
lyanchih has joined #ruby
asteve has quit [Read error: Connection reset by peer]
kobain has joined #ruby
jamesaxl has quit [Ping timeout: 252 seconds]
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
pen has joined #ruby
bionhart has joined #ruby
Beoran_ has quit [Read error: Connection reset by peer]
Beoran_ has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
Michae___ has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
baordog has joined #ruby
boblu has quit [Quit: Leaving]
nopolitica has joined #ruby
aganov has quit [Quit: aganov]
niklasb has joined #ruby
Asher has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
redgirl has quit [Ping timeout: 252 seconds]
freeayu has joined #ruby
alekst has joined #ruby
bamdad has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
generalissimo has quit [Remote host closed the connection]
tw1sted has joined #ruby
tonini has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
obs has quit [Quit: Konversation terminated!]
rfizzle has joined #ruby
Guest71038 has quit [Quit: Textual IRC Client: www.textualapp.com]
slash_nick has joined #ruby
slash_nick has joined #ruby
Davey has joined #ruby
krawchyk_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
krawchyk has quit [Ping timeout: 240 seconds]
tommyvyo has quit [Quit:]
tomzx_mac has quit [Ping timeout: 252 seconds]
pellis has joined #ruby
binaryplease has joined #ruby
tommyvyo has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Kabaka has quit [Remote host closed the connection]
ivanoats has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
i_s has joined #ruby
iamjarvo has joined #ruby
milardovich has quit [Quit: Leaving]
timkohrumel has joined #ruby
mfollett has joined #ruby
ivanoats has quit [Ping timeout: 264 seconds]
devoldmx3 has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
devoldmx has joined #ruby
Michae___ has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
juarlex has quit [Remote host closed the connection]
camilasa_ has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
hoofed has quit [Remote host closed the connection]
Uranio has joined #ruby
stonevil has quit [Remote host closed the connection]
timmow has joined #ruby
Kabaka has joined #ruby
advorak has quit [Ping timeout: 260 seconds]
stonevil has joined #ruby
sambao21 has joined #ruby
senayar_ has joined #ruby
burlyscudd has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Ping timeout: 246 seconds]
bluenemo has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 264 seconds]
sambao21 has quit [Client Quit]
_maes_ has joined #ruby
jonahR has quit [Quit: jonahR]
senayar_ has quit [Remote host closed the connection]
senayar_ has joined #ruby
apeiros has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
senayar has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
Michae___ has quit [Remote host closed the connection]
ramblex has joined #ruby
nettoweb has quit [Quit: nettoweb]
sayan has joined #ruby
Michae___ has joined #ruby
johnrliv_ has joined #ruby
io_syl has joined #ruby
slainer6_ has quit [Read error: Connection reset by peer]
classix has joined #ruby
slainer68 has joined #ruby
johnrlive has quit [Read error: Operation timed out]
burlyscudd has joined #ruby
juarlex has joined #ruby
advorak has joined #ruby
generalissimo has joined #ruby
ThePicard has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
Michae___ has quit [Ping timeout: 276 seconds]
carloslopes has quit [Remote host closed the connection]
nettoweb has joined #ruby
camilasan has joined #ruby
pandawarrior has left #ruby [#ruby]
kaichanvong has joined #ruby
mtlatif__ has joined #ruby
randym_ has joined #ruby
advorak has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
Michae___ has joined #ruby
jimg has joined #ruby
slainer6_ has joined #ruby
burlyscudd has quit [Remote host closed the connection]
burlyscudd has joined #ruby
khushildep has quit [Quit: khushildep]
Hanmac has quit [Ping timeout: 252 seconds]
ivanoats has joined #ruby
nettoweb has quit [Quit: nettoweb]
slainer68 has quit [Ping timeout: 252 seconds]
nerdman has quit [Quit: leaving]
nkr has joined #ruby
carloslopes has joined #ruby
BadDesign has joined #ruby
jimg has quit [Ping timeout: 268 seconds]
fomatin has joined #ruby
Sherwyn has joined #ruby
ckrailo has joined #ruby
fomatin has quit [Client Quit]
lewix has joined #ruby
johnnyfuchs has joined #ruby
jwest has quit [Quit: WeeChat 0.4.0]
codecop has joined #ruby
atmosx has joined #ruby
jonahR has joined #ruby
Shirakawasuna has joined #ruby
tbrock has joined #ruby
Michae___ has quit [Remote host closed the connection]
zad0xsis has joined #ruby
lewix has quit [Ping timeout: 264 seconds]
Michae___ has joined #ruby
Astralum has quit [Ping timeout: 276 seconds]
zad0xsis has quit [Client Quit]
milardovich has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
devdazed has joined #ruby
leonidlm has quit [Read error: Operation timed out]
avril14th has quit [Read error: Connection reset by peer]
devdazed has quit [Max SendQ exceeded]
_maes_ has quit [Ping timeout: 246 seconds]
devdazed has joined #ruby
zad0xsis has joined #ruby
Michae___ has quit [Ping timeout: 240 seconds]
jesly has quit [Ping timeout: 252 seconds]
devdazed has quit [Client Quit]
admin0 has quit [Quit: Leaving]
jwest has joined #ruby
DomKM has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
kasper_ has quit [Ping timeout: 268 seconds]
takezawa has joined #ruby
tspike has joined #ruby
GeissT has quit [Read error: Connection reset by peer]
zad0xsis has quit [Client Quit]
zad0xsis has joined #ruby
devdazed has joined #ruby
Michae___ has joined #ruby
mafolz has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
hamakn has quit [Remote host closed the connection]
sr78ger_ has joined #ruby
m8 has joined #ruby
LennyLinux has quit [Remote host closed the connection]
zad0xsis has quit [Client Quit]
Solnse has joined #ruby
zad0xsis has joined #ruby
zigomir has quit [Quit: zigomir]
zad0xsis has quit [Client Quit]
sr78ger_ is now known as sr78ger
bigoldrock has joined #ruby
camilasan has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
tw1sted has quit [Quit: tw1sted]
nettoweb_ has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
nettoweb_ is now known as nettoweb
atyz has quit [Quit: Leaving...]
khushildep has joined #ruby
burlyscudd has quit [Quit: Leaving.]
theRoUS has joined #ruby
b0oh1 has quit [Quit: Leaving.]
fomatin has joined #ruby
jerius has quit [Read error: Operation timed out]
Gues_____ has joined #ruby
danslo_ has joined #ruby
bionhart has quit [Remote host closed the connection]
Gues_____ is now known as Guest89323
Zai00 has quit [Ping timeout: 240 seconds]
frog_ has joined #ruby
ExxKA has joined #ruby
sr78ger has quit [Quit: Qui]
nxs10 has joined #ruby
danslo has quit [Ping timeout: 252 seconds]
danslo_ is now known as danslo
bigoldrock has quit [Ping timeout: 245 seconds]
slash_nick has quit [Ping timeout: 245 seconds]
blaxter has quit [Ping timeout: 268 seconds]
frog_ has quit [Remote host closed the connection]
digx has quit [Quit: Lost terminal]
_whitelogger_ has joined #ruby
bluehavana has joined #ruby
PhilK has joined #ruby
SirFunk has joined #ruby
C0deMaver1ck is now known as Guest50943
allanm has quit [Write error: Connection reset by peer]
seich- has joined #ruby
supaiku has quit [Read error: Connection reset by peer]
allanm has joined #ruby
kzrl has joined #ruby
Michae___ has quit [Remote host closed the connection]
swistak35 has joined #ruby
bakingbread has joined #ruby
nbe has joined #ruby
alup has joined #ruby
Paradox has joined #ruby
Nightmare has joined #ruby
rayfinkle has joined #ruby
justinmcp has joined #ruby
noname001 has joined #ruby
rgoodwin has joined #ruby
drPoggs has joined #ruby
Apocalypse has joined #ruby
cburyta has joined #ruby
alanjc has joined #ruby
zai has quit [Ping timeout: 276 seconds]
whowantstolivefo has quit [Ping timeout: 276 seconds]
nhhagen has quit [Ping timeout: 276 seconds]
sailias1 has joined #ruby
sayan has quit [Read error: Connection reset by peer]
milardovich has quit [Quit: Leaving]
Taranis has joined #ruby
nopoliti1a has joined #ruby
lyanchih has quit [Quit: lyanchih]
tobiasvl has joined #ruby
Freijo has joined #ruby
zacts_ has joined #ruby
jpun_ has joined #ruby
djbkd has joined #ruby
agjacome_ has joined #ruby
nhhagen has joined #ruby
jetblack_ has joined #ruby
drizz_ has joined #ruby
ericmath1son has joined #ruby
sailias has quit [Ping timeout: 276 seconds]
thibauts_ has joined #ruby
adkron__ has joined #ruby
kiela_ has joined #ruby
thibauts has quit [Write error: Broken pipe]
adkron has quit [Write error: Broken pipe]
ericmathison has quit [Write error: Broken pipe]
awwaiid_ has joined #ruby
jpun has quit [Write error: Broken pipe]
Fraeon has quit [Write error: Broken pipe]
nopolitica has quit [Write error: Broken pipe]
rfizzle has left #ruby ["Leaving"]
jesly has joined #ruby
ivanoats_ has joined #ruby
arya_ has joined #ruby
nettoweb has quit [Quit: nettoweb]
pellis has quit [Quit: This computer has gone to sleep]
pentameter has joined #ruby
hoofed has joined #ruby
tylersmith has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
ShapeShifter499 has quit [Excess Flood]
wmoxam has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
arya has quit [Ping timeout: 252 seconds]
devoldmx3 has joined #ruby
tethra has joined #ruby
tethra has joined #ruby
tethra has quit [Changing host]
awwaiid has quit [Write error: Broken pipe]
zacts has quit [Remote host closed the connection]
agjacome has quit [Read error: Connection reset by peer]
Hien has quit [Remote host closed the connection]
minimus has quit [Excess Flood]
Y_Ichiro has joined #ruby
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
drizz has quit [Remote host closed the connection]
jetblack has quit [Remote host closed the connection]
Drakevr has quit [Remote host closed the connection]
shadoi has joined #ruby
dayepa1 has quit [Ping timeout: 288 seconds]
passcod has quit [Ping timeout: 288 seconds]
axl_ has joined #ruby
heftig has joined #ruby
robscomputer has joined #ruby
krawchyk has joined #ruby
dayepa has joined #ruby
passcod has joined #ruby
aetaric has joined #ruby
ryan_turner has joined #ruby
Guest97450 has joined #ruby
kiela has quit [Ping timeout: 251 seconds]
timmow has quit [Read error: Connection reset by peer]
Drakevr has joined #ruby
Drakevr has joined #ruby
Drakevr has quit [Changing host]
devoldmx has quit [Ping timeout: 252 seconds]
timmow has joined #ruby
djbkd has quit [Quit: Leaving]
withnale has joined #ruby
djbkd has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
hadees has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
krawchyk_ has quit [Ping timeout: 240 seconds]
stonevil has quit [Remote host closed the connection]
shadoi has joined #ruby
hamakn has joined #ruby
myappleguy has joined #ruby
cj3kim has joined #ruby
razi has joined #ruby
burlyscudd has joined #ruby
filipe has quit [Remote host closed the connection]
saarinen has joined #ruby
DaniG2k has quit [Quit: Leaving.]
saarinen has quit [Client Quit]
burlyscudd has quit [Client Quit]
bigoldrock has joined #ruby
arya_ has quit [Ping timeout: 264 seconds]
wmoxam has joined #ruby
ferdev_ has joined #ruby
ShapeShifter499 has joined #ruby
hoofed has quit [Remote host closed the connection]
ferdev has quit [Ping timeout: 240 seconds]
ferdev_ is now known as ferdev
cj3kim has quit [Ping timeout: 246 seconds]
johnmlocklear_ has quit [Quit: Leaving]
timkohrumel has quit [Remote host closed the connection]
Michae___ has joined #ruby
sayan has joined #ruby
arya has joined #ruby
devoldmx3 has quit [Ping timeout: 245 seconds]
devoldmx has joined #ruby
ferdev has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
stonevil has joined #ruby
RORgasm has quit [Ping timeout: 264 seconds]
ferdev has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
synthetix has joined #ruby
fomatin has quit [Ping timeout: 268 seconds]
apeiros has joined #ruby
Michae___ has quit [Remote host closed the connection]
nope is now known as [Fudge]
hadees has joined #ruby
Michae___ has joined #ruby
Hien has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
danslo has quit [Quit: danslo]
timonv has joined #ruby
Voodoofish430 has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
timonv_ has joined #ruby
noname001 has quit [Remote host closed the connection]
Michae___ has quit [Ping timeout: 252 seconds]
ghr has quit [Quit: Computer has gone to sleep.]
Shirakawasuna has quit [Ping timeout: 252 seconds]
khushildep_ has joined #ruby
axl_ has quit [Quit: axl_]
timonv has quit [Ping timeout: 256 seconds]
senayar_ has quit [Remote host closed the connection]
bionhart has joined #ruby
khushildep has quit [Ping timeout: 245 seconds]
khushildep_ is now known as khushildep
krawchyk has quit [Remote host closed the connection]
jonno11 has joined #ruby
AlbireoX has quit [Ping timeout: 246 seconds]
<jonno11> Hi guys. I have a string "19882MB" and I want to get just the numbers. str[/[0-9]/] only returns "1". How can I get all the numbers?
sepp2k has quit [Quit: Leaving.]
arturaz has quit [Ping timeout: 268 seconds]
F1skr has joined #ruby
ivanoats_ has quit [Remote host closed the connection]
<Morrolan> /[0-9]*/
rcsheets has joined #ruby
rcsheets has quit [Changing host]
heidar has joined #ruby
heidar has quit [Changing host]
bluehavana has quit [Changing host]
bluehavana has joined #ruby
robscomputer has quit [Changing host]
robscomputer has joined #ruby
tylersmith has joined #ruby
<terrellt> So I just wrote something and it seems nice to me, but I want an opinion - https://gist.github.com/terrellt/5783296 . Is pushing the details of your connection into a method like that pretty standard?
<jonno11> Morrolan: That returns nothing
Criztian has quit [Remote host closed the connection]
ferdev has quit [Ping timeout: 260 seconds]
<Morrolan> >> "19882MB"[/[0-9]*/]
mklappstuhl has quit [Remote host closed the connection]
<eval-in> Morrolan => "19882" (https://eval.in/33593)
bradhe has joined #ruby
LennyLinux has joined #ruby
ybart has quit [Quit: ybart]
kasper has joined #ruby
dr_bob has quit [Quit: Leaving.]
Vert has joined #ruby
ferdev has joined #ruby
<jonno11> Morrolan: How about this string? "MemFree: 469964 kB"
<jonno11> sorry, I was just getting it off the top of my head. Thought it would all be the same principle
tylersmith has quit [Ping timeout: 252 seconds]
<jonno11> >> "MemFree: 469964 kB"[/[0-9]*/]
<eval-in> jonno11 => "" (https://eval.in/33594)
Beoran_ has quit [Read error: Operation timed out]
<aedorn> >> "MemFree: 469964 kB".delete('^[0-9]')
<eval-in> aedorn => "469964" (https://eval.in/33595)
<jonno11> aedorn: perfect. Thanks
RORgasm has joined #ruby
freerobby has quit [Quit: Leaving.]
<Morrolan> Oh, that's a bit cleaner than what I'd have come up with. :)
jesly1 has joined #ruby
stef_204 has quit [Remote host closed the connection]
AlbireoX has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
manutter has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
freeayu has quit [Remote host closed the connection]
Michae___ has joined #ruby
f0ster has quit [Remote host closed the connection]
jesly has quit [Ping timeout: 252 seconds]
stef_204 has joined #ruby
<aedorn> terrellt: I don't see anything inherently wrong with what you have since it's pulling information from other points of references. Except the "preferred_record_syntax" but then it may not matter.
<terrellt> That's a good point, I'll probably refactor that out into a method.
slainer6_ has quit [Remote host closed the connection]
jdunck has joined #ruby
i_s has quit [Quit: i_s]
blitz has joined #ruby
timmow has quit [Remote host closed the connection]
jtharris has joined #ruby
dagobah has quit [Remote host closed the connection]
jinie is now known as jinie_
sambao21 has quit [Quit: Computer has gone to sleep.]
Michae___ has quit [Remote host closed the connection]
cj3kim has joined #ruby
DomKM has quit [Quit: Leaving.]
Michae___ has joined #ruby
geggam has joined #ruby
jimg has joined #ruby
carloslopes has quit [Remote host closed the connection]
binaryplease has quit [Read error: Operation timed out]
mklappstuhl has joined #ruby
fuzzyhor_ has joined #ruby
mahmoudimus has joined #ruby
timkohrumel has joined #ruby
Beoran_ has joined #ruby
ryannielson has joined #ruby
mpereira has joined #ruby
Michae___ has quit [Ping timeout: 260 seconds]
fuzzyho__ has joined #ruby
MrThePlague has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
zigomir has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
fuzzyhorns has quit [Read error: Connection reset by peer]
ryannielson has quit [Client Quit]
devoldmx3 has joined #ruby
BadDesign has left #ruby ["Gone coding for food!"]
devoldmx has quit [Ping timeout: 240 seconds]
bigkevmcd has quit [Quit: outta here]
ryannielson has joined #ruby
jprovazn has quit [Quit: Odcházím]
dhruvasagar has joined #ruby
axl_ has joined #ruby
fuzzyhor_ has quit [Ping timeout: 252 seconds]
mfollett has quit [Remote host closed the connection]
bionhart has quit [Remote host closed the connection]
girija has joined #ruby
manutter has joined #ruby
carloslopes has joined #ruby
x1337807x has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
pencilcheck has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
danneu has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
brianpWins has quit [Ping timeout: 252 seconds]
cads has quit [Ping timeout: 252 seconds]
bradhe has quit [Remote host closed the connection]
iamjarvo has quit [Quit: iamjarvo]
bradhe has joined #ruby
pen has quit [Ping timeout: 252 seconds]
Kar- has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
zigomir has quit [Quit: Leaving]
rickruby has joined #ruby
Shirakawasuna has joined #ruby
Mattix has left #ruby ["Leaving"]
pootler_ has quit [Read error: Operation timed out]
cj3kim has quit [Remote host closed the connection]
bal has joined #ruby
fomatin has joined #ruby
fomatin has quit [Client Quit]
mljsimone is now known as mljsimone|away
fomatin has joined #ruby
hadees has quit [Quit: hadees]
pootler__ has quit [Ping timeout: 264 seconds]
v0n has joined #ruby
khushildep has quit [Quit: khushildep]
timonv_ has quit [Remote host closed the connection]
ThePicard has joined #ruby
Shirakawasuna has quit [Ping timeout: 256 seconds]
cads has joined #ruby
robscomputer has quit [Ping timeout: 252 seconds]
robscomputer has joined #ruby
Squarepy has quit [Quit: Leaving]
atmosx has quit [Quit: And so the story goes…]
ivanoats_ has joined #ruby
bionhart has joined #ruby
bamdad has quit [Quit: bamdad]
fuzzyho__ has quit [Remote host closed the connection]
apeiros has joined #ruby
freerobby has joined #ruby
nxs10 has quit [Remote host closed the connection]
girija has quit [Ping timeout: 252 seconds]
ivanthuja has joined #ruby
bamdad has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
froy has quit [Quit: kablam!]
mikewintermute has joined #ruby
Mattix has joined #ruby
mikewintermute has quit [Client Quit]
brianpWins has joined #ruby
atno__ has joined #ruby
ELLIOTTCABLE has quit [Remote host closed the connection]
ELLIOTTCABLE has joined #ruby
Kreas has quit [Remote host closed the connection]
ivanoats_ has quit [Ping timeout: 268 seconds]
tacos1de has joined #ruby
cj3kim has joined #ruby
jesly1 has quit [Quit: Leaving.]
mikewintermute has joined #ruby
nomenkun has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
havenn_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
ferdev has quit [Quit: ferdev]
troessner has quit [Quit: Leaving]
arya has quit [Ping timeout: 248 seconds]
adramalech has joined #ruby
ferr has joined #ruby
adramalech has quit [Client Quit]
<ferr> sup any of u could help me a beginner with a code? it will take u 1 minute, pm
<MrZYX> ferr: why pm?
<apeiros> ferr: no pm
cam` is now known as mynick
mynick is now known as cam_
<ferr> I can use public chat?
<ferr> ok
<apeiros> if you want private consultancy, then it usually costs. no need to be worried about "bad code"
DomKM has joined #ruby
<apeiros> (everybody starts somewhere)
<ferr> I don't worry it's ok
<ferr> Where do u paste ur code in?
cam_ is now known as Guest93412
<apeiros> as per topic: gist.github.com
<ferr> I just thought it would be disturbing for others
<ferr> ok 1 sec
<apeiros> but any ad-free paste service is fine
Guest93412 is now known as fuqYoCouch
<apeiros> heh, no. and if it should indeed be disturbing, we'll tell you ;-)
fuqYoCouch is now known as cam`
mljsimone|away is now known as mljsimone
<ferr> why it doesn't stop if I hit empty line
tylersmith has joined #ruby
<apeiros> word == ' ' # ' ' is not empty, that's a space
<ferr> oh lol
<ferr> that makes sense
<ferr> thank you
<apeiros> you're welcome ;-)
<ferr> do I feel free to ask stupid questions here?
danslo has joined #ruby
<MrZYX> yes
<ferr> thanks
rdark has quit [Quit: leaving]
<apeiros> the only thing you risk is being told that it is a stupid question and how to go about it instead ;-p
<ferr> ok :D
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
sailias1 is now known as sailias
Xeago has joined #ruby
<ferr> it just means a lot for a newbie struggling with such syntax and etc and knowing that someone may help u
<Xeago> Hello #ruby!
<havenn_> G'morning
<apeiros> welcome back Xeago! :D
arya has joined #ruby
<apeiros> got yer intertubes back?
froy has joined #ruby
pellis has joined #ruby
codesoda has joined #ruby
sambao21 has joined #ruby
havenn_ is now known as havenwood
<apeiros> ferr: sure, as said - we all have one day been where you're now
froy has quit [Client Quit]
rezzack has joined #ruby
froy has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has quit [Remote host closed the connection]
jasonkuhrt has joined #ruby
pentameter has quit [Quit: Leaving]
redgirl has joined #ruby
kasper has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 246 seconds]
pootler_ has joined #ruby
pootler__ has joined #ruby
poincare1011 has joined #ruby
brbcoding has quit [Ping timeout: 260 seconds]
<pontiki> hello Xeago
LennyLinux has quit [Remote host closed the connection]
TheDick has joined #ruby
poincare101 has quit [Ping timeout: 264 seconds]
jesly has joined #ruby
<m8> conoscete qualche soluzione hardware\software per realizzare un piccolo thin client?
Zai00 has quit [Quit: Zai00]
<zomg> tutti frutti
<apeiros> m8: this channel is english. please use an italian subchannel for italian
<apeiros> it's probably #ruby.it or #ruby-it
rupee has joined #ruby
mocfive has joined #ruby
akells` has quit [Remote host closed the connection]
arthurstomp has joined #ruby
pitzips has quit [Ping timeout: 252 seconds]
arthurstomp is now known as astomp
pentameter has joined #ruby
banisterfiend has joined #ruby
Guest89323 has quit [Quit: Textual IRC Client: www.textualapp.com]
<m8> apeiros, amsg faked me!
mocfive has quit [Ping timeout: 252 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jimg has joined #ruby
skaby has quit [Read error: Connection reset by peer]
sguselnikov has joined #ruby
sguselnikov has quit [Client Quit]
Uranio has quit [Quit: while you reading this, a kitty dies]
anderson has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
dmiller has joined #ruby
vlad_starkov has joined #ruby
Hanmac has joined #ruby
rsahae_ has joined #ruby
jonno11 has quit [Quit: jonno11]
jesly has quit [Ping timeout: 260 seconds]
saarinen has quit [Quit: saarinen]
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
saarinen has joined #ruby
rsahae_ has quit [Client Quit]
marr has quit [Ping timeout: 240 seconds]
BeLucid has quit [Ping timeout: 268 seconds]
jimg has quit [Ping timeout: 256 seconds]
brennanMKE has joined #ruby
jonno11 has joined #ruby
cburyta has quit [Remote host closed the connection]
arietis has joined #ruby
mrsolo has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
ExxKA has quit [Quit: This computer has gone to sleep]
razi has quit [Quit: Leaving.]
ivanthuja is now known as ivanoats_
bal has quit [Quit: Leaving]
ivanoats_ is now known as ivanoats
ferr has quit [Ping timeout: 264 seconds]
dmiller has quit [Ping timeout: 268 seconds]
jamesaxl has joined #ruby
zmike123 has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
gyre007 has quit [Remote host closed the connection]
mfollett has joined #ruby
stkowski has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
centr0 has joined #ruby
rsahae has joined #ruby
zeade has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
hadees has joined #ruby
sambao21 has joined #ruby
timonv has joined #ruby
staafl has joined #ruby
mocfive has joined #ruby
asteve has joined #ruby
vwoo has joined #ruby
mfollett has quit [Ping timeout: 255 seconds]
c0rn has joined #ruby
zacts_ is now known as zacts
bamdad has quit [Quit: bamdad]
ferdev has joined #ruby
zacts has quit [Changing host]
zacts has joined #ruby
kasper has joined #ruby
sideshowcoder has quit [Read error: Operation timed out]
sambao21 has quit [Ping timeout: 260 seconds]
_maes_ has joined #ruby
kirun has joined #ruby
dmiller has joined #ruby
jlast_ has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
pitzips has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
jonno11 has quit [Quit: jonno11]
jlast has quit [Ping timeout: 268 seconds]
x1337807x has joined #ruby
failshell has joined #ruby
milardovich has joined #ruby
pootler__ has quit [Ping timeout: 256 seconds]
pootler__ has joined #ruby
sideshowcoder has joined #ruby
Michae___ has joined #ruby
dmiller has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
instinkt has joined #ruby
chichou has quit [Remote host closed the connection]
pentameter has quit [Quit: Leaving]
johnnyfuchs has quit [Remote host closed the connection]
tw1sted has joined #ruby
tjbiddle has joined #ruby
mahmoudimus has joined #ruby
mfollett has joined #ruby
vwoo has quit [Ping timeout: 248 seconds]
danslo has quit [Quit: danslo]
alvaro_o has joined #ruby
ivanoats has quit [Remote host closed the connection]
vwoo has joined #ruby
iamjarvo has joined #ruby
SeySayux has quit [Ping timeout: 252 seconds]
interactionjaxsn has joined #ruby
bamdad has joined #ruby
BizarreCake has quit [Ping timeout: 252 seconds]
zmike123 has quit [Ping timeout: 252 seconds]
Villadelfia_ has joined #ruby
Villadelfia has quit [Ping timeout: 252 seconds]
icole has joined #ruby
<astomp> Hi there. i'm wondering here . How the whatsapp work, how it send messages between smartphones?
graft has quit [Ping timeout: 256 seconds]
<MrZYX> that's a #ruby question? :P
tonini has joined #ruby
SeySayux has joined #ruby
farn has quit [Ping timeout: 240 seconds]
joonty has quit [Ping timeout: 246 seconds]
sayan has quit [Quit: Leaving]
<astomp> MrZYX why #ruby? You mean that they use a rails server to exchange the message/
<pontiki> what is the whatsapp?
<MrZYX> astomp: http://bit.ly/154mP55
tspike has quit [Ping timeout: 268 seconds]
Alina-malina has quit [Quit: Leaving]
arya has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
mixel has joined #ruby
Alina-malina has joined #ruby
<astomp> pontiki whatsapp : http://www.whatsapp.com/ . I'm want to do an app using the same concept .
<Xeago> astomp: send messages to a server, broadcasts messages to users?
arya has joined #ruby
sepp2k has joined #ruby
<MrZYX> Xeago: lets ignore him, he didn't do any research at all, even wikipedia explains it
ivanoats has joined #ruby
wesside has joined #ruby
<pontiki> i think you need to look into mobile sdk's for this. the back-end is rather trivial, just dispatching
Sherwyn has quit [Remote host closed the connection]
wesside has quit [Max SendQ exceeded]
<pontiki> all the work is on the phone
<astomp> MrZYX pontiki Xeago sorry wrong channel
Astralum has joined #ruby
devoldmx3 has quit [Ping timeout: 260 seconds]
wesside has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
krisfremen has quit [Ping timeout: 256 seconds]
jinie_ is now known as jinie
icole has quit [Remote host closed the connection]
instinkt has quit [Ping timeout: 248 seconds]
axl_ has joined #ruby
pentameter has joined #ruby
Guga_ has joined #ruby
instinkt has joined #ruby
jlast_ has quit [Remote host closed the connection]
krisfremen has joined #ruby
krisfremen has joined #ruby
jlast has joined #ruby
devoldmx has joined #ruby
rsahae has quit [Quit: rsahae]
jlast has quit [Remote host closed the connection]
RORgasm_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
jlast has joined #ruby
sambao21 has joined #ruby
zmike123 has joined #ruby
rsahae_ has joined #ruby
farn has joined #ruby
Michae___ has quit [Remote host closed the connection]
Michae___ has joined #ruby
dmerrick has joined #ruby
joonty has joined #ruby
Hanmac1 has joined #ruby
RonScagz has quit [Read error: Operation timed out]
axl_ has quit [Quit: axl_]
xardas has joined #ruby
bamdad has quit [Quit: bamdad]
Hanmac has quit [Ping timeout: 245 seconds]
Michae___ has quit [Ping timeout: 246 seconds]
ramblex has quit [Remote host closed the connection]
xardas has quit [Changing host]
xardas has joined #ruby
fuzzyhorns has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
`p has quit [Read error: Operation timed out]
asteve has quit [Ping timeout: 248 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
gildo has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
apeiros has quit [Remote host closed the connection]
sarkis has joined #ruby
Hanmac has joined #ruby
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
zad0xsis has joined #ruby
axl_ has joined #ruby
Hanmac1 has quit [Ping timeout: 276 seconds]
zmike123 has quit [Quit: Выходжу]
jonahR has quit [Quit: jonahR]
zmike123 has joined #ruby
axl_ has quit [Client Quit]
vlad_starkov has joined #ruby
dmiller has joined #ruby
zeade has quit [Quit: Leaving.]
ivanoats has quit [Remote host closed the connection]
axl_ has joined #ruby
saarinen has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
zad0xsis has quit [Quit: leaving]
zad0xsis has joined #ruby
zeade has joined #ruby
saarinen has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
pootler_ has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
pootler__ has quit [Ping timeout: 248 seconds]
diddlybop has joined #ruby
arya has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
<diddlybop> hi, does anyone have experience with the pdf-reader gem?
arya has joined #ruby
krisfremen has quit [Ping timeout: 246 seconds]
mljsimone is now known as mljsimone|away
ivanoats has joined #ruby
vwoo has quit [Ping timeout: 256 seconds]
arya has quit [Client Quit]
jesly has joined #ruby
rsahae_ has quit [Quit: rsahae_]
Nisstyre has quit [Read error: Operation timed out]
<nyuszika7h> is there any way to pass a function as a reference?
vwoo has joined #ruby
axl_ has quit [Quit: axl_]
<MrZYX> 1) ruby has no functions only methods, 2) theoretically 3) you most likely want a block or proc instead
<nyuszika7h> methods yes
krisfremen has joined #ruby
krisfremen has quit [Changing host]
krisfremen has joined #ruby
freerobby has joined #ruby
<nyuszika7h> oh, proc? good idea
<nyuszika7h> I could use that maybe
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rsahae_ has joined #ruby
takezawa has quit [Remote host closed the connection]
<fryguy> & is the to_proc operator, which might be helpful to you as well
c0rn has joined #ruby
takezawa has joined #ruby
jdunck has quit [Ping timeout: 240 seconds]
<MrZYX> describe your concrete usecase if you want a less generic advice
andikr has quit [Remote host closed the connection]
Guest50943 has quit [Changing host]
Guest50943 has joined #ruby
Guest50943 is now known as C0deMaver1ck
lewix has joined #ruby
rickruby has quit [Remote host closed the connection]
yacks has joined #ruby
dayepa has quit [Read error: Connection reset by peer]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
echevemaster has quit [Read error: Operation timed out]
dayepa has joined #ruby
mljsimone|away is now known as mljsimone
<diddlybop> MrZyx are you talking to me?
<MrZYX> yes
jdunck has joined #ruby
<diddlybop> ok ha, I'm using this gem among otehrs to parse and split up a pdf...i have just tried to set up my program on a new machine and am getting the following error:
kenneth has quit [Quit: kenneth]
saarinen has quit [Quit: saarinen]
sarkis has quit [Quit: leaving]
takezawa has quit [Ping timeout: 252 seconds]
<diddlybop> "Unknown glyph width for 9 Helvetica"
Faris11 has joined #ruby
<diddlybop> this is not an issue on other machines, i tried changing versions of the gem, still teh same error
<pellis> i think the Ruby world accelerated insanely in the past 6 months - am I right?
keep has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<pellis> i don't remember such a period of new stuff
<pellis> at the last year or two at least
nomenkun has joined #ruby
JMcAfreak has quit [Quit: Leaving]
sethetter has joined #ruby
elaptics is now known as elaptics`away
marr has joined #ruby
<sethetter> What's the difference in a Ruby class between using self.varname = something; and @varname = something; ?
sepp2k has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
<r0bgleeson> sethetter: one calls a method to indirectly set @varname, one sets an instance variable directly
devoldmx3 has joined #ruby
mhahn has joined #ruby
zad0xsis has quit [Quit: Bye.]
fmcgeough has joined #ruby
jesly has quit [Quit: Leaving.]
<seitensei> Anyone manage to get the NaCl version of Ruby to work?
<mhahn> sorry, not really a ruby guy, but what is the best way to check the version of a ruby package within a script? if I want to ensure that it is within versions 1.2.5 and 1.3.5
rsahae_ has quit [Quit: rsahae_]
<Godd2> and if you create the class from a Struct.new(:varname) you have to use self.varname since the Struct made the method for you.
<seitensei> mhahn: You could use bundler
ravster has joined #ruby
<fryguy> mhahn: try bundler
JMcAfreak has joined #ruby
jesly has joined #ruby
LennyLinux has joined #ruby
<mhahn> fryguy: that is what i'm trying to check :)
<fryguy> mhahn: if you are using bundler, update the gemfile for the gem dependency so that it has teh version range you want specified in it
ananthakumaran has quit [Quit: Leaving.]
mocfive has quit [Remote host closed the connection]
<mhahn> i'm workign on some vagrant middleware
<mhahn> and i have gemfile that i want to install
<fryguy> mhahn: yah no that's not even close
<mhahn> but i need to make sure people have bundler installed
<mhahn> and the correct version
<mhahn> before running bundle update
devoldmx has quit [Ping timeout: 248 seconds]
fuzzyhorns has quit [Remote host closed the connection]
<seitensei> If there a specific functionality that only exists within those releases that you wish to use?
devoldmx has joined #ruby
Guga_ has quit [Remote host closed the connection]
<mhahn> seitensei: i just want to lock down versions, i think i need higher than 1.2.5, i just want to make sure its been tested
<mhahn> i've tested on 1.2.5 and 1.3.5
jimg has joined #ruby
Guga_ has joined #ruby
pootler_ has joined #ruby
pootler_1 has joined #ruby
Apane has joined #ruby
<Godd2> ::Bundler::VERSION ?
Xeago has quit [Remote host closed the connection]
<sethetter> r0bgleeson: Is there any advantage to using one over the other? Currently I'm using @varname for variables and self.method for method calls. Is that alright?
devoldmx3 has quit [Ping timeout: 256 seconds]
<Godd2> Just tried it and it works, mhahn : https://gist.github.com/nicklink483/5784449
Appineer has joined #ruby
Xeago has joined #ruby
<pellis> mhahn, you can create a vagrant box prepackaged with that bundler that you like
<mhahn> pellis: i need bundler on the OS not vagrant, we're doing some stuff with librarian-puppet before we run provision
<r0bgleeson> sethetter: exposing a setter & getter exposes internal state of your object, you should be careful about what state you're exposing in a public API. in a perfect world, methods would operate on a state, and you would never have a setter or getter.
skogis_ has quit [Quit: leaving]
<mhahn> Godd2: i know how to get the version, and what I have for checking if the version is within the two I've tested works, I'm just wondering if there is a better way to do it that I'm not aware of
tw1sted has quit [Quit: tw1sted]
<Godd2> mhahn: Oh Im not sure. It seems like a good idea to be asking Bundler what it's version is directly though, I would think.
jimg has quit [Ping timeout: 276 seconds]
<mhahn> Godd2: yea that makes sense
Guest61929 is now known as fred
fred has joined #ruby
fred has quit [Changing host]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
arya has joined #ruby
jonathanwallace has joined #ruby
Neomex has joined #ruby
geekbri has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
bionhart has quit [Remote host closed the connection]
icole has joined #ruby
pyrac has joined #ruby
DrShoggoth has joined #ruby
browndawg has quit [Quit: Leaving.]
mfollett has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
hadees has quit [Quit: hadees]
pellis has quit [Quit: This computer has gone to sleep]
crankyco_ has quit [Remote host closed the connection]
hadees has joined #ruby
vwoo has quit [Ping timeout: 252 seconds]
sepp2k1 has joined #ruby
tspike has joined #ruby
pellis has joined #ruby
vwoo has joined #ruby
jinie is now known as jinie_
sepp2k has quit [Ping timeout: 252 seconds]
Michae___ has joined #ruby
forrest has joined #ruby
ryannielson has quit [Quit: ryannielson]
pellis has quit [Client Quit]
pitzips has quit [Ping timeout: 252 seconds]
DonRichie has quit [Read error: Connection reset by peer]
vwoo has quit [Ping timeout: 260 seconds]
DonRichie has joined #ruby
<keep> clear
Kabaka has quit [Max SendQ exceeded]
<keep> Sorry
rlb3 has quit [Quit: rlb3]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
danneu has quit [Quit: Leaving.]
instinkt has quit [Ping timeout: 268 seconds]
cj3kim has joined #ruby
vwoo has joined #ruby
ivanoats has quit [Remote host closed the connection]
Uranio has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
esaym153 has left #ruby [#ruby]
Uranio has quit [Client Quit]
kenneth has joined #ruby
ravster has quit [Ping timeout: 264 seconds]
rsahae has joined #ruby
bradhe has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
syamajala has joined #ruby
rockets has quit [Ping timeout: 252 seconds]
vwoo has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
vwoo has joined #ruby
werdnativ has joined #ruby
Kabaka has joined #ruby
slash_nick has quit [Remote host closed the connection]
DonRichie has quit [Ping timeout: 252 seconds]
Dummies_freelanc has joined #ruby
Dummies_freelanc has quit [Max SendQ exceeded]
DonRichie has joined #ruby
instinkt has joined #ruby
saarinen has joined #ruby
apeiros has joined #ruby
BeLucid has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
tonini has quit [Ping timeout: 248 seconds]
ianbrandt has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
mhahn has left #ruby [#ruby]
postmodern has joined #ruby
jfelchner has joined #ruby
bionhart has joined #ruby
Dummies_freelanc has joined #ruby
bionhart has quit [Remote host closed the connection]
x1337807x has joined #ruby
bionhart has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
redgirl_ has joined #ruby
ehaliewicz has joined #ruby
redgirl has quit [Ping timeout: 240 seconds]
<bricker> Isn't there something similar to Time.parse that will return nil instead of raising if it can't parse the string?
jinie_ is now known as jinie
<bricker> sorry, Time.parse is Rails I see
<bricker> oh no it's ruby
verto has quit [Quit: Textual IRC Client: www.textualapp.com]
syamajala has quit [Ping timeout: 268 seconds]
tatsuya_o has joined #ruby
viszu has joined #ruby
ravster has joined #ruby
forrest has quit [Ping timeout: 248 seconds]
cj3kim has quit [Remote host closed the connection]
a_a_g has joined #ruby
cj3kim has joined #ruby
<pontiki> Time.parse(timestr) rescue nil should do it?
<r0bgleeson> dont do that
<r0bgleeson> thats a bad practice to get into
<pontiki> quite so
<bricker> pontiki: yeah but I thought there was method that would try to parse or else return nil
dash_ has quit [Quit: Time to beer :)]
<r0bgleeson> bricker: you can use strptime if you have a format that Time.parse does not understand
bradhe has joined #ruby
<r0bgleeson> Time.strptime
chipotle_ has joined #ruby
chipotle_ has joined #ruby
chipotle_ has quit [Changing host]
freerobby has quit [Quit: Leaving.]
tonini has joined #ruby
_Renegade has quit [Read error: Connection reset by peer]
F1skr has quit [Quit: WeeChat 0.4.1]
Michae___ has quit [Remote host closed the connection]
dmiller has joined #ruby
Michae___ has joined #ruby
slainer68 has joined #ruby
<pontiki> actually, that raises as well
<pontiki> Date._strptime is the one that returns nil
keep has quit [Ping timeout: 276 seconds]
ianbrandt_ has joined #ruby
freerobby has joined #ruby
_Renegade has joined #ruby
ivanoats has joined #ruby
rickruby has joined #ruby
vwoo has quit [Ping timeout: 240 seconds]
Faris12 has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
saarinen has quit [Quit: saarinen]
stonevil has quit [Remote host closed the connection]
druonysus has quit [Ping timeout: 252 seconds]
Michae___ has quit [Ping timeout: 248 seconds]
ianbrandt has quit [Ping timeout: 264 seconds]
ianbrandt_ is now known as ianbrandt
vwoo has joined #ruby
jimg has joined #ruby
Faris11 has quit [Ping timeout: 246 seconds]
zmike123 has quit [Quit: Выходжу]
ivanoats has quit [Remote host closed the connection]
forrest has joined #ruby
ivanoats has joined #ruby
syamajala has joined #ruby
Spami has quit [Ping timeout: 256 seconds]
rickruby has quit [Ping timeout: 240 seconds]
Dummies_freelanc has quit [Quit: Leaving.]
daniel_- has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
saarinen has joined #ruby
emmanuelux has joined #ruby
pipework has quit [Remote host closed the connection]
jimg has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
Gues_____ has joined #ruby
Gues_____ is now known as Guest48107
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
sambao21 has joined #ruby
`p has joined #ruby
jinie is now known as jinie_
pyx has joined #ruby
pyx has quit [Client Quit]
manutter has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
wallerdev has quit [Remote host closed the connection]
wallerdev has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
Nightmare has quit [Read error: Operation timed out]
iamjarvo has quit [Quit: iamjarvo]
iamjarvo has joined #ruby
LaPetiteFromage has joined #ruby
Nightmare has joined #ruby
mocfive has joined #ruby
forrest has quit [Ping timeout: 260 seconds]
dmiller has quit [Remote host closed the connection]
Faris13 has joined #ruby
S0da has joined #ruby
dmiller has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
TheDick has quit [Quit: TheDick]
Faris12 has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
Lubinski has quit [Quit: Leaving]
S0da has quit [Client Quit]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
huoxito has quit [Quit: Leaving]
Slivka has joined #ruby
Nahra has joined #ruby
Nahra has joined #ruby
Nahra has quit [Changing host]
srji has joined #ruby
Morrolan has quit [Ping timeout: 256 seconds]
<`p> I just discovered _why's shoe gem. This is a neat little gem.
mikewintermute has quit [Quit: mikewintermute]
a_a_g has quit [Quit: Leaving.]
Morrolan has joined #ruby
ravster has quit [Ping timeout: 268 seconds]
syamajala has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
vwoo has quit [Ping timeout: 268 seconds]
skogis has joined #ruby
byprdct has joined #ruby
forrest has joined #ruby
maycon has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
vwoo has joined #ruby
txdv_ has joined #ruby
txdv has quit [Read error: Connection reset by peer]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
theRoUS has quit [Ping timeout: 268 seconds]
Jackneill has quit [Ping timeout: 252 seconds]
Alina-malina has quit [Read error: Connection timed out]
Alina-malina has joined #ruby
vlad_starkov has joined #ruby
nomenkun has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Michae___ has joined #ruby
mljsimone is now known as mljsimone|away
Rizzle has quit [Ping timeout: 255 seconds]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
mikewintermute has joined #ruby
byprdct has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
timonv has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 276 seconds]
chipotle_ has quit [Remote host closed the connection]
Appineer has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
sayan has joined #ruby
sambao21 has joined #ruby
skogis has quit [Read error: Connection reset by peer]
v0n has quit [Ping timeout: 240 seconds]
ianbrandt has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
jdunck has joined #ruby
ianbrandt has joined #ruby
freerobby has quit [Quit: Leaving.]
cj3kim has joined #ruby
geggam has quit [Remote host closed the connection]
jonahR has joined #ruby
Rizzle has joined #ruby
chipotle_ has joined #ruby
Iszak has joined #ruby
Spami has quit [Ping timeout: 260 seconds]
poincare1011 has quit [Quit: Leaving.]
saarinen has quit [Quit: saarinen]
ravster has joined #ruby
brennanMKE has quit [Remote host closed the connection]
Nahra has quit [Quit: Lost terminal]
sailias has quit [Ping timeout: 240 seconds]
diddlybop has quit [Quit: ChatZilla 0.9.90 [Firefox 17.0.6/20130523195809]]
freerobby has joined #ruby
icole has quit [Remote host closed the connection]
pootler_1 has quit [Ping timeout: 256 seconds]
pootler_ has quit [Ping timeout: 264 seconds]
carloslopes has quit [Remote host closed the connection]
dmerrick has quit [Remote host closed the connection]
bean__ has quit [Quit: Computer has gone to sleep.]
syamajala has joined #ruby
dmiller has joined #ruby
adambeynon has joined #ruby
pootler_ has joined #ruby
pootler__ has joined #ruby
vwoo has quit [Ping timeout: 245 seconds]
Naeblis|XChat has joined #ruby
Morrolan has quit [Ping timeout: 246 seconds]
cads has quit [Ping timeout: 245 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
Davey has quit [Quit: Computer has gone to sleep.]
Naeblis|XChat has quit [Read error: Connection reset by peer]
Morrolan has joined #ruby
brianpWins has joined #ruby
vwoo has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
wesside has quit [Quit: Computer has gone to sleep.]
synthetix has quit [Ping timeout: 252 seconds]
astomp has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
pyrac has quit [Quit: pyrac]
RORgasm_ is now known as RORgasm
Dave has joined #ruby
bean__ has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
graft has quit [Ping timeout: 246 seconds]
Dave is now known as Guest45915
nkr has quit [Quit: Linkinus - http://linkinus.com]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
tonini has joined #ruby
Rizzle has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
JustinAiken has quit [Quit: Leaving.]
Rizzle has joined #ruby
pitzips has joined #ruby
dangerousdave has quit [Ping timeout: 248 seconds]
Morrolan has quit [Ping timeout: 245 seconds]
larissa has joined #ruby
ldnunes has quit [Quit: Leaving]
Morrolan has joined #ruby
cj3kim_ has joined #ruby
dangerousdave has joined #ruby
kasper has quit [Remote host closed the connection]
Guest45915 has quit [Ping timeout: 246 seconds]
cj3kim has quit [Ping timeout: 260 seconds]
ericmath1son has quit [Quit: leaving]
ericmathison has joined #ruby
pentameter has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
Guga_ has quit [Remote host closed the connection]
kristiandelay has quit [Remote host closed the connection]
Guga_ has joined #ruby
saarinen has joined #ruby
arya has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
sethetter has left #ruby [#ruby]
interactionjaxsn has joined #ruby
kasper has joined #ruby
stonevil has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
robscomputer_ has joined #ruby
stonevil has quit [Remote host closed the connection]
soyapi has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
orien has joined #ruby
jcromartie has quit [Quit: Computer has gone to sleep.]
<aedorn> I really don't like that bundle package does a bundle install as well. I really just want it to package my dependencies so I can put everything into a glorious tarball. I suppose if that's my only complaint than it's not that bad, though.
maycon has quit [Quit: Saindo]
interactionjaxsn has quit [Ping timeout: 268 seconds]
jcromartie has joined #ruby
<r0bgleeson> aedorn: C extensions.
iamjarvo has quit [Quit: iamjarvo]
niklasb has quit [Read error: Operation timed out]
jcromartie has quit [Client Quit]
niklasb has joined #ruby
iamjarvo has joined #ruby
sailias has joined #ruby
fschuindt has joined #ruby
instinkt has quit [Ping timeout: 246 seconds]
JMcAfreak has quit [Quit: Leaving]
duper is now known as a
a is now known as duper
JMcAfreak has joined #ruby
Kar- has quit [Remote host closed the connection]
Michae___ has quit [Remote host closed the connection]
dankest has joined #ruby
Michae___ has joined #ruby
<dankest> How do I read from environmental variables in Ruby 1.8.7?
tbrock has quit [Quit: Textual IRC Client: www.textualapp.com]
jasonkuhrt has quit [Quit: Linkinus - http://linkinus.com]
Michae___ has quit [Read error: Connection reset by peer]
<dankest> ENV['key']?
Michae___ has joined #ruby
vipaca has joined #ruby
ntus1017 has joined #ruby
iamjarvo has quit [Ping timeout: 256 seconds]
alx- has quit [Quit: alx-]
ssickle has joined #ruby
vipaca has quit [Changing host]
vipaca has joined #ruby
saarinen has quit [Quit: saarinen]
pskosinski has quit [Remote host closed the connection]
ivanoats has quit [Remote host closed the connection]
robscomputer_ has quit [Ping timeout: 245 seconds]
<aedorn> r0bgleeson: What about them?
ravster has quit [Ping timeout: 256 seconds]
pskosinski has joined #ruby
robscomputer has joined #ruby
freakazoid0223 has joined #ruby
failshell has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
fschuindt has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
instinkt has joined #ruby
jimg has joined #ruby
havenwood has joined #ruby
saarinen has joined #ruby
kofno has quit [Remote host closed the connection]
IrishGringo has joined #ruby
vlad_starkov has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
brennanMKE has joined #ruby
jimg has quit [Ping timeout: 248 seconds]
forrest has quit [Quit: Leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iPhoneMRZ has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
codecop has quit [Quit: Išeinu]
havenwood has quit [Ping timeout: 256 seconds]
<r0bgleeson> aedorn: you can't build on Linux & use on windows.
ddv has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
ddv has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
F1skr has joined #ruby
mansi has joined #ruby
ffio has joined #ruby
splittingred has quit [Quit: splittingred]
_ffio_ has quit [Ping timeout: 245 seconds]
<r0bgleeson> dankest: yes
jonahR has quit [Quit: jonahR]
generalissimo has quit [Remote host closed the connection]
IrishGringo has quit [Read error: Connection reset by peer]
iPhoneMRZ has quit [Remote host closed the connection]
nomenkun has joined #ruby
twoism has joined #ruby
IrishGringo has joined #ruby
workmad3 has joined #ruby
sailias has quit [Ping timeout: 256 seconds]
scottmey has left #ruby [#ruby]
nimor has quit [Ping timeout: 248 seconds]
ARCADIVS has joined #ruby
ravster has joined #ruby
freerobby has quit [Quit: Leaving.]
bean__ has quit [Quit: Computer has gone to sleep.]
breakingthings has quit [Quit: breakingthings]
x1337807x has joined #ruby
m8 has quit [Read error: Connection reset by peer]
mansi has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
alx- has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
vwoo has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
devoldmx has quit [Ping timeout: 256 seconds]
alx- has quit [Client Quit]
<aedorn> r0bgleeson: That isn't related to this ... end result of bundle-package are gem files in vendor/cache that you can use to install, but it also calls bundle-install, which doesn't really seem to be necessary.
fcatojo has joined #ruby
vwoo has joined #ruby
RORgasm has quit [Remote host closed the connection]
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
Astralum has quit [Ping timeout: 260 seconds]
scrollback has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
Michae___ has quit [Remote host closed the connection]
scrollback has joined #ruby
mansi has joined #ruby
Michae___ has joined #ruby
sayan has quit [Quit: Leaving]
butblack has joined #ruby
Apane has quit [Ping timeout: 240 seconds]
mixel has quit [Quit: mixel]
jonno11 has joined #ruby
guardian has joined #ruby
skogis has joined #ruby
ivanoats has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<guardian> hello. I want to parser few (5-10) C headers to extract enums, structs as well as special DSL constructs (with a syntax close to doxygen comments). would you recommend parslet or treetop? or something else/
<guardian> ?
vipaca has quit [Quit: Leaving...]
tonini has quit [Ping timeout: 248 seconds]
<alexspeller> guardian: I like parselet but haven't used treetop
mansi has quit [Ping timeout: 245 seconds]
<guardian> ok
<guardian> well I'll give it a go. I can switch later anyways
<guardian> s/anyways/anyway/
devoldmx has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
ivanoats has quit [Ping timeout: 248 seconds]
<alexspeller> guardian: ^ looks like that's an old implementation of a c header parser in ruby
<guardian> well I don't need the full C grammar. I can skip most things
<r0bgleeson> aedorn: oh okay, i don't think i understand your situation entirely, i'm sorry.
jimg has joined #ruby
baordog has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
butblack has left #ruby [#ruby]
Guest48107 has quit [Quit: Textual IRC Client: www.textualapp.com]
soyapi has quit [Quit: Ex-Chat]
devoldmx3 has joined #ruby
mixel has joined #ruby
wormwood_ is now known as wormwood
wormwood has quit [Changing host]
wormwood has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
<wormwood> Using Sinatra for a small service api and am running into issues testing ( using rspec ). Basically the sinatra app when called with a route of '/' hits the database and returns some entries. However when using "get '/'" in rspec its not hitting the database I'm guessing because it is a mock request. Anyway around this?
reset has joined #ruby
Nisstyre has joined #ruby
matti has quit [Quit: Oh dear...]
spider-mario has quit [Remote host closed the connection]
ianbrandt_ has joined #ruby
tomzx_mac has joined #ruby
pellis has joined #ruby
mklappst_ has joined #ruby
jfelchner has quit [Ping timeout: 245 seconds]
ssvo_ has quit [Remote host closed the connection]
jfelchner has joined #ruby
Davey has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
ianbrandt has quit [Ping timeout: 248 seconds]
ianbrandt_ is now known as ianbrandt
mklappstuhl has quit [Ping timeout: 240 seconds]
syamajala has quit [Quit: leaving]
freerobby has quit [Quit: Leaving.]
Iszak has joined #ruby
fomatin has joined #ruby
terrellt has quit [Ping timeout: 252 seconds]
jfelchner has quit [Ping timeout: 245 seconds]
instinkt has quit [Read error: Operation timed out]
generalissimo has joined #ruby
ssvo has joined #ruby
arya has quit [Ping timeout: 248 seconds]
jfelchner has joined #ruby
ssvo has quit [Client Quit]
ssvo has joined #ruby
instinkt has joined #ruby
Guedes has quit [Quit: Saindo]
robscomputer has quit [Read error: Connection reset by peer]
Nom- has quit [Read error: Connection reset by peer]
alekst has quit [Ping timeout: 246 seconds]
robscomputer has joined #ruby
Nom- has joined #ruby
jimg has quit [Remote host closed the connection]
hadees has quit [Quit: hadees]
butblack has joined #ruby
advorak has joined #ruby
<Eiam> I have a date, 04/05/13 so I call DatEtime.strptime(date,"%m/%d/%y").to_time and I get 2013-04-04
<Eiam> what gives, I lost a day.
<Eiam> probably need to specify a timezone somehow
ivanoats has joined #ruby
alexwh has left #ruby [#ruby]
lewix has quit [Remote host closed the connection]
<pellis> Eiam, works well here
cdelo has joined #ruby
alexwh has joined #ruby
<pellis> try adding a #utc call
workmad3 has quit [Ping timeout: 276 seconds]
_maes_ has quit [Ping timeout: 254 seconds]
<Eiam> I'm trying with DateTime(date+"/pdt","%m/%d/%y/%z").to_time
<Eiam> i think its this god damn VM
Rix has quit [Quit: No One Lives Forever]
verto has joined #ruby
zastern has joined #ruby
vlad_starkov has joined #ruby
ssickle1 has joined #ruby
ivanoats has quit [Ping timeout: 264 seconds]
ssickle has quit [Ping timeout: 245 seconds]
Rix has joined #ruby
matti has joined #ruby
mklappst_ has quit [Remote host closed the connection]
havenwood has joined #ruby
<advorak> I'm having problems with variable scope .. https://gist.github.com/advorak/5785917 -- my block can't access the @name class variable .... Any ideas? :-)
<Xeago> advorak: what context
vlad_starkov has quit [Ping timeout: 256 seconds]
<Xeago> what scope does the block run in?
<Xeago> (what is self)
<advorak> let's just say i ran that within irb ..
<Xeago> I think if no argument exists it does an instance_eval
<heftig> i assume the parameter-less version uses instance_exec
<Xeago> instance_exec, fine :)
mklappstuhl has joined #ruby
<Xeago> so line 8 is evaluated on the scope of a Prawn::Document instance
<heftig> advorak: you can't access @name. at least not cleanly
<advorak> hrm .. ok. It's going to be messy to change my code to use do |t| , which is what I'm trying to avoid ..
<heftig> you'd do foobar = @name first
<heftig> foobar = @name; pdf = Prawn::Document.new do; text foobar; ....
<Xeago> don't refer to it as a instance variable
rhys has quit [Quit: Leaving]
butblack has quit [Quit: butblack]
burlyscudd has joined #ruby
<advorak> oh thanks! that works, heftig ..
_Renegade has quit [Read error: Connection reset by peer]
Faris13 has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
Apane has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<advorak> so I get what you're saying re how instance_eval and instance_exec handles things depending on how I invoke Prawn::Document .. I don't know enough about either of those methods to understand the concept of why one handles the block of a context of the Prawn::Document class and one handles it in the context of the "parent" scope .. should I be reading more on instance_eval, instance_exec, or might I do better to look at the prawn gem code to better understand
burlyscudd has quit [Quit: Leaving.]
ivanoats has joined #ruby
tommyvyo has quit [Quit:]
jdunck has quit [Quit: Computer has gone to sleep.]
<heftig> advorak: no, it's how Prawn::Document handles things
<heftig> advorak: it checks the arity of the block and then decides to use instance_exec if it's 0
devoldmx3 has quit [Ping timeout: 245 seconds]
<advorak> heftig: gotcha. thanks :-)
devoldmx has joined #ruby
Nisstyre has quit [Quit: Leaving]
tatsuya_o has quit [Remote host closed the connection]
butblack has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
jimg has joined #ruby
awarner has quit [Remote host closed the connection]
butblack has left #ruby [#ruby]
srji has quit [Ping timeout: 248 seconds]
orien has quit [Quit: Computer has gone to sleep.]
kasper has quit [Remote host closed the connection]
jimg has quit [Ping timeout: 245 seconds]
devoldmx has quit [Read error: Connection reset by peer]
Guga_ has quit [Quit: ~]
Jedi_SCT1 has quit [Quit: See ya]
devoldmx has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
Jedi_SCT1 has joined #ruby
<advorak> heftig: I just realized my code is using a method and not a class variable https://gist.github.com/advorak/5785917 -- is your suggestion still to use a local variable as in: name2 = name ?
<heftig> advorak: yes
<heftig> unless the name changes later on
<heftig> in which case you should get a reference to self instead
<advorak> thanks.
<heftig> i.e. this = self .... text this.name
<advorak> right.
arya has joined #ruby
predator217 has joined #ruby
mansi has joined #ruby
bionhart has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 276 seconds]
mklappstuhl has quit [Remote host closed the connection]
c0rn has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
robscomputer has quit [Remote host closed the connection]
fomatin has joined #ruby
mklappstuhl has joined #ruby
robscomputer has joined #ruby
kaichanvong has quit []
kasper_ has joined #ruby
Godd2 has quit [Quit: Page closed]
predator117 has quit [Ping timeout: 264 seconds]
<bricker> What's the purpose of Array#hash, just for faster comparison?
_reset has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
shadoi1 has joined #ruby
shadoi1 has quit [Client Quit]
<heftig> bricker: used by Hash
robscomputer_ has joined #ruby
dmiller has quit [Remote host closed the connection]
<bricker> heftig: Can you explain or point to something explaining that? The ruby doc is kind of terse for this method http://ruby-doc.org/core-2.0/Array.html#method-i-hash
arya_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
DomKM has quit [Quit: Leaving.]
<heftig> bricker: look up hash tables on wikipedia, it's a widely-used data structure
<heftig> bricker: #hash is the hash function
takezawa has joined #ruby
arubin has joined #ruby
<bricker> heftig: ah - I didn't realize this was a method available on all objects, I only saw it on Array and didn't understand fully.
ToApolytoXaos has quit [Quit: Leaving]
<Sou|cutter> it's the equivalent of java's hashCode if that helps
* Sou|cutter runs for the hills
<milardovich> Hi guys, if I have an array like [0,1], is there a way to get a number which is 60% of times 0 and 40% 1?
jamesaxl_ has joined #ruby
reset has quit [Ping timeout: 240 seconds]
<bricker> This is a much better explanation for this method than the one on Array http://ruby-doc.org/core-2.0/Object.html#method-i-hash
<Morrolan> milardovich: array[0] * 0.6 + array[1] * 0.4?
arya has quit [Ping timeout: 248 seconds]
zeade has quit [Quit: Leaving.]
_reset has quit [Ping timeout: 276 seconds]
apeiros has quit [Ping timeout: 240 seconds]
<Morrolan> milardovich: Unless you are talking about probability?
shadoi has quit [Ping timeout: 260 seconds]
<milardovich> Morrolan, not exactly, I would like to have a function which should output 0 or 1, but it should be 60% of times 0 and 40% of times 1
<Morrolan> As in, a random choice which, 60% of the time yields the first number.
<milardovich> Morrolan, exactly
jamesaxl has quit [Ping timeout: 252 seconds]
emergion has joined #ruby
emergion has quit [Client Quit]
c0rn has quit [Ping timeout: 240 seconds]
dmiller has quit [Ping timeout: 276 seconds]
<Sou|cutter> milardovich: if your array has 4 0's and 6 1's, you could just sample
emergion has joined #ruby
<milardovich> Sou|cutter, yes, but the matter is that I should also choose the rate, that with 40% and 60% was only an example
<Sou|cutter> milardovich: otherwise I guess you can do rand < 0.4 ? array[0] : array[1]
<milardovich> Isn't there any third party library to work with probabilities?
<milardovich> Sou|cutter, well, that should work
<heftig> milardovich: target = rand; [[0, 0.6], [1, 0.4]].find { |x, weight| target -= weight; target < 0 }.first
<heftig> or with integers (which i prefer):
Proshot has quit [Ping timeout: 264 seconds]
<heftig> a = [[0, 6], [1, 4]]; target = rand(a.map(&:last).inject(:+)); a.find { |x, weight| target -= weight; target < 0 }.first
<Sou|cutter> heftig: I don't think that's right...
butblack has joined #ruby
<Sou|cutter> oh wait, maybe so... took me a second
DonRichie has quit [Quit: Verlassend]
pitzips has quit [Ping timeout: 240 seconds]
vwoo has quit [Ping timeout: 245 seconds]
<milardovich> heftig, thank you! I will try it
<heftig> or with a hash:
<heftig> h = { 0 => 6, 1 => 4 }; target = rand(h.values.inject(:+)); h.find { |x, weight| target -= weight; target < 0 }.first
cmarques has quit [Ping timeout: 268 seconds]
instinkt has quit [Ping timeout: 276 seconds]
subbyyy_ has joined #ruby
kirun has quit [Quit: Client exiting]
vwoo has joined #ruby
<Sou|cutter> I would definitely wrap a class around this functionality
xardas has quit [Ping timeout: 268 seconds]
pellis has quit [Quit: Leaving]
<Sou|cutter> but it got me googling, and I found a probability gem that I really don't trust...
<Sou|cutter> 3.in(10) => true # About 33% of the time
instinkt has joined #ruby
<Sou|cutter> hehe
rsahae has quit [Quit: rsahae]
srji has joined #ruby
<milardovich> Oh I see
chipotle_ has quit [Quit: cya]
tatsuya_o has joined #ruby
Sou|cutter has quit [Quit: Another time]
hadees has joined #ruby
jdunck has joined #ruby
djbkd has quit [Quit: Leaving]
marr has quit [Ping timeout: 252 seconds]
astrostl has joined #ruby
nezumi has joined #ruby
Mattix has quit [Quit: Leaving]
Mattix has joined #ruby
butblack has quit [Quit: butblack]
rsahae_ has joined #ruby
beilabs_ has quit [Ping timeout: 240 seconds]
mhahn has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
mhahn has left #ruby [#ruby]
subbyyy_ has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
mrsolo has quit [Quit: Leaving]
ckrailo has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
tatsuya_o has quit [Ping timeout: 240 seconds]
mhahn has joined #ruby
vlad_starkov has joined #ruby
ivanoats has quit [Remote host closed the connection]
ehaliewicz has quit [Read error: Connection reset by peer]
LennyLinux has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
sambao21 has joined #ruby
mocfive has joined #ruby
lewix has joined #ruby
sambao21 has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
butblack has joined #ruby
Faris13 has joined #ruby