apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
hmarr has quit []
predator117 has quit [Ping timeout: 252 seconds]
Rym has joined #ruby
jenrzzz has joined #ruby
jonathanwallace has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
timmow has quit [Remote host closed the connection]
pcarrier has joined #ruby
moos3 has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
c0rn has quit [Quit: Computer has gone to sleep.]
carlyle has joined #ruby
tables has quit [Ping timeout: 246 seconds]
gaahrdner has quit [Remote host closed the connection]
bhaarat has quit [Ping timeout: 256 seconds]
gabrielrotbart has joined #ruby
icco has quit [Read error: Operation timed out]
bhaarat has joined #ruby
icco has joined #ruby
nari has quit [Ping timeout: 248 seconds]
veinofstars has quit [Quit: veinofstars]
ZachBeta has quit [Quit: Computer has gone to sleep.]
supernullset has joined #ruby
nga4 has joined #ruby
Ripp__ has quit [Quit: Leaving]
Aleeen has joined #ruby
pib2009 has quit [Remote host closed the connection]
<Aleeen> Hello
<Aleeen> So what exactly is Ruby?
bhaarat has quit [Quit: bhaarat]
<Aleeen> Is it coding for women?
mercwithamouth has joined #ruby
<pskosinski> Not only for women
<pskosinski> For unicorns too
Norrin has joined #ruby
<nga4> Ruby is just another name for python
<nga4> its mostly to scare off managers
<Aleeen> ahh
<pskosinski> Not true with Python.
<Aleeen> So is it used for web applications?
<nga4> change scares them
bhaarat has joined #ruby
<nga4> so we just change the names from time to time to keep things in line
<Aleeen> It's server-sided only correct?
<nga4> shadow government stuff
megha has quit [Ping timeout: 255 seconds]
<Aleeen> I'm serious now!
gaahrdner has joined #ruby
<nga4> Ruby has a lot of uses, but by far the most popular one is a framework known as rails, which is a web application framework
seich- has quit [Quit: See you guys later]
Sigma00 has quit [Ping timeout: 264 seconds]
<Aleeen> pskosinski: I don't trust wikipedia
<nga4> shadow government business
<Aleeen> Ah
sixEch0_ has quit [Quit: sixEch0_]
<Aleeen> so what is something Ruby can do that PHP cannot?
<pskosinski> Aleeen: You can't execute Ruby on client side in browser, if it's what you mean. As far as I know…
Sigma00 has joined #ruby
<nga4> I thought there was a way to do it
vlad_starkov has joined #ruby
<pskosinski> Ruby can be consistent and intuitive.
<Aleeen> Oh crap
<nga4> some complex javascript clunker
subbyyy has joined #ruby
<Aleeen> Listen I didn't mean to start an argument between the clientside
<pskosinski> nga4: Hm… interesting
<nga4> pskosinski: folks do it with lua
Tricon has quit [Ping timeout: 248 seconds]
Guest17638 has joined #ruby
slyv has joined #ruby
<nga4> pskosinski: I may be manufacturing false memories though, technically it seems possible but completely unreasonable
elaptics is now known as elaptics`away
icco has quit [Read error: Operation timed out]
<Aleeen> Is Ruby similar to PHP and .NET
<nga4> all of those things are python
<Aleeen> Meaning, in terms of what the end goal is
<fryguy> Aleeen: yes, it's a general purpose language
<pskosinski> I would definitely prefer to use Ruby over JavaScript if I had choice…
<Aleeen> Oh I see
Tricon has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<Aleeen> It has nothing to do with graphics, correct?
<fryguy> Aleeen: it can if you want it to
sepp2k has quit [Read error: Connection reset by peer]
<Aleeen> hmm
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
<Aleeen> and what does the file end with?
<Aleeen> For example, php is .php
<pskosinski> There is ruby-sdl or something similar, probably not developed anymore
<fryguy> Aleeen: whatever you want
<Aleeen> so it can be .html?
<fryguy> Aleeen: traditional is .rb i guess
<fryguy> Aleeen: it could be, sure
akhet has quit [Remote host closed the connection]
<fryguy> file extensions don't mean much
<nga4> Aleeen: Ruby is just an interpreted language geared towards general use object oriented programming. You can do web development (most folks do that), 3d model manipulation (google does this) or just general hob-nobbery
<Aleeen> Wow Ruby is so nice to me
rickruby has joined #ruby
<Aleeen> it lets me do what I want
<fryguy> Aleeen: it's a general purpose language.
<Aleeen> Ah
<nga4> any general purpose language will get you there
rickruby has quit [Remote host closed the connection]
<Aleeen> What other languages are considered general purpose?
icco has joined #ruby
netto has joined #ruby
<nga4> Java, python, c/c++, lua, scala
<fryguy> Aleeen: c, c++, java, c#, vb.net python, scheme, lisp, lua, javascript
<nga4> tons
<fryguy> php (arguably i guess)
<nga4> Erlang, the official language of the British Royal Family
rickruby has joined #ruby
<Aleeen> Is Ruby on rails the language of the future?
<fryguy> Aleeen: ruby on rails isn't a language
<nga4> debateable
vlad_starkov has quit [Ping timeout: 272 seconds]
<nga4> also, yeah, rails is a framework
<Aleeen> It's a framework right
gabrielrotbart has quit [Remote host closed the connection]
<Aleeen> ah ok
<fryguy> Aleeen: yes
<pskosinski> Heh: https://rubyoffrails.com/
ebobby has joined #ruby
<fryguy> it's just a collection of libraries written in ruby
<Aleeen> So first I should learn Ruby
<Aleeen> then learn Ruby on rails
Xeago has quit [Remote host closed the connection]
<nga4> "Do I need to get a Mac?"
<fryguy> Aleeen: probably
<nga4> ha
tylersmith has quit [Quit: tylersmith]
Spooner has quit [Quit: Leaving]
<Aleeen> Does google use a lot of Ruby?
<fryguy> Aleeen: they use almost 0
<pskosinski> Some people first learn RoR and then use ^$ in regex :<
<Aleeen> what do they use?
<sam113101> they use python I think
<Aleeen> ah
<sam113101> among other languages
<fryguy> Aleeen: google's primary languages are python, java, c++, javascript, go, and dart
<nga4> aleeen: not really, they use a scattershot of languages. They have an in house language called "Go"
fangari has left #ruby [#ruby]
<Aleeen> haha that's crazy
<nga4> aleeen: Go brings erlang like concurrency to a c++ like lexical structure
<sam113101> what's Go good for?
<fryguy> sam113101: systems level programming
<nga4> speed and distribution
<fryguy> servers, concurrency, etc.
<nga4> fryguy got it
<nga4> in a few years it might be a wonder
<fryguy> nga4: also, CSP is nothing like actor model, so it's not "erlang-like consistency"
<nga4> fair enough, just boiling it down
wsterling has joined #ruby
v0n has joined #ruby
<fryguy> they are related at a cursory glance, but actually looking into it it's not really true at all, they have very different philosophies
Sigma00 has quit [Ping timeout: 245 seconds]
ffranz has quit [Quit: Leaving]
Sigma00 has joined #ruby
<pskosinski> Aleeen: Do you know a programming language? PHP?
slainer68 has joined #ruby
<Aleeen> yes
<Aleeen> PHP and Yii framework
<Aleeen> but I want to learn more
grenierm has left #ruby [#ruby]
<Aleeen> So I heard Ruby on Rails is good for the future
<fryguy> Aleeen: it's not really for the future
<bean> Eh, it's good for the "now"
<bean> imo.
<Aleeen> What should I learn then?
<nga4> Good for the present
<fryguy> id' argue it's starting to jump the shark
<pskosinski> Aleeen: You can http://tryruby.org/
<Aleeen> What's the language everyone is talking about?
<bean> There's a lot of sweet web stuff people have been doing in Scala.
<nga4> better things will surface, ruby and rails will change and evolve
<fryguy> Aleeen: just learn more languages, it doesn't matter
<Aleeen> thats what I'm thinking, fryguy
rton has left #ruby [#ruby]
<Aleeen> so I'm going to start with ruby
<bean> I'd learn ruby, and then rails.
<Aleeen> yes that's what I'd do
<bean> knowing ruby well will really help.
<nga4> or haskell
<fryguy> Aleeen: learn ruby, figure out metaprogramming, and then learning other languages is easy
<fryguy> you don't learn languages, you learn how to program
<Aleeen> ah that makes sense
<Aleeen> I did learn absic OOP stuff
<Aleeen> so I think that'll definitely help
<pskosinski> In my experience going from PHP to Ruby is heaven :>
<bean> What really made me want to program more was learning a functional language.
<bean> (Scheme)
<Aleeen> PHP framework made me love programming
<Aleeen> the Yii framework
cloke_ has joined #ruby
yshh has quit [Remote host closed the connection]
<nga4> I'm coming out with a new language called "Demon Lord" http://www.toothpastefordinner.com/020411/better-names-for-programming-languages.gif
<nga4> its just python with another new name
rupee has quit [Quit: Leaving]
wsterling has quit [Ping timeout: 252 seconds]
<bean> Yii looks like rails meets php.
timmow has joined #ruby
<Aleeen> really?
<Aleeen> then that would be awesome
<bean> mvc, ActiveRecord
<bean> etc
mmlac-bv has joined #ruby
<Aleeen> ah
<Aleeen> that's nice
<Aleeen> very nize
ariedler has joined #ruby
nari has joined #ruby
cloke has quit [Ping timeout: 272 seconds]
cloke_ is now known as cloke
<mmlac-bv> are there certain constraints to insert a new object into an array in which .each() I am right now?
emmanuelux has quit [Quit: emmanuelux]
ehaliewicz has joined #ruby
<bean> mmlac-bv, sample code please
<mmlac-bv> hard to give
NiteRain has joined #ruby
<fryguy> mmlac-bv: don't mess with the contents of something you are enumerating as you are enumerating it. it never works out how you want it to, and just makes things complicated
icco has quit [Read error: Operation timed out]
<mmlac-bv> just thought ruby would have some cool trick. while not empty it is then...
<bean> yeah, you always want to do things like taht w/ a 2nd array, or a different more functional way
idkazuma has quit [Remote host closed the connection]
<mmlac-bv> thank you
<fryguy> mlue: "while not empty" is almost certainly wrong
<mmlac-bv> how would a stack then work?
Kruppe has joined #ruby
<fryguy> depends, what do you want to do with it
<mmlac-bv> pop it?
robert_ has quit [Ping timeout: 272 seconds]
sailias has joined #ruby
<nga4> mmlac-bv: depending on your goals .map! or .map may be in line with what you are looking for
ariedler has quit [Remote host closed the connection]
miso1337 has joined #ruby
<fryguy> mmlac-bv: pop is a function on enumerables
timmow has quit [Ping timeout: 252 seconds]
<fryguy> so just use that
<mmlac-bv> what I have been saying….
icco has joined #ruby
<Aleeen> PEACE OUT
Aleeen has quit [Quit: Page closed]
cantonic has quit [Quit: cantonic]
slainer68 has quit [Ping timeout: 272 seconds]
ariedler has joined #ruby
daniel_- has quit [Ping timeout: 255 seconds]
seich- has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
agarie has joined #ruby
baroquebobcat has joined #ruby
agarie has quit [Remote host closed the connection]
F1skr has quit [Quit: WeeChat 0.4.0]
tricon_ has joined #ruby
snooc has joined #ruby
tricon- has joined #ruby
tricon_ has quit [Read error: Connection reset by peer]
ekampf has joined #ruby
athst has joined #ruby
pac1 has quit [Read error: Connection reset by peer]
sixEch0_ has joined #ruby
sixEch0_ has quit [Remote host closed the connection]
Tricon has quit [Ping timeout: 264 seconds]
rawng has quit [Quit: WeeChat 0.4.1-dev]
veinofstars has joined #ruby
mrsolo has quit [Quit: Leaving]
emmanuelux has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
icco has quit [Read error: Operation timed out]
cheese1756 has quit [Ping timeout: 258 seconds]
icco has joined #ruby
cheese1756 has joined #ruby
undersc0re97 has quit [Quit: Leaving]
d11wtq has joined #ruby
netto has quit [Quit: netto]
cloke has quit [Quit: cloke]
Tricon has joined #ruby
pcarrier has quit [Ping timeout: 252 seconds]
Tricon has quit [Client Quit]
arthurstomp has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ZachBeta has joined #ruby
mathRand has joined #ruby
Myconix has joined #ruby
jdolitsky1 has joined #ruby
johnnyfuchs has joined #ruby
ismaelabreu has joined #ruby
johnnyfuchs has quit [Client Quit]
ismaelabreu has quit [Remote host closed the connection]
pcarrier has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
ismaelabreu has joined #ruby
tricon- has quit [Ping timeout: 252 seconds]
hogeo has joined #ruby
dankest has quit [Quit: Linkinus - http://linkinus.com]
jbueza has quit [Quit: Leaving.]
jdolitsky has quit [Ping timeout: 245 seconds]
johnkary has quit [Quit: @johnkary]
Hanmac2 has joined #ruby
icco has quit [Read error: Operation timed out]
mercwithamouth has joined #ruby
Davey has joined #ruby
Hanmac1 has quit [Ping timeout: 248 seconds]
yshh has joined #ruby
Guedes0 has quit [Ping timeout: 276 seconds]
Sigma00 has quit [Ping timeout: 245 seconds]
chussenot has quit [Quit: chussenot]
hogeo has quit [Remote host closed the connection]
marcdel has quit []
mockra has quit [Remote host closed the connection]
gabrielrotbart has joined #ruby
icco has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
wesside has joined #ruby
Ontolog has quit [Remote host closed the connection]
Sigma00 has joined #ruby
ismaelabreu has quit [Remote host closed the connection]
outphunk has joined #ruby
hadees has joined #ruby
love_color_text has joined #ruby
gaahrdner has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
athst has quit [Quit: athst]
rburton- has quit [Quit: Leaving...]
miso1337 has quit [Quit: afk]
tommyvyo has joined #ruby
Voodoofish4301 has quit [Quit: Leaving.]
miso1337 has joined #ruby
iamjarvo has joined #ruby
kpshek has joined #ruby
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tobyo1 has quit [Ping timeout: 255 seconds]
echevemaster has quit [Ping timeout: 276 seconds]
bhaarat has quit [Quit: bhaarat]
hogeo has joined #ruby
philcrissman has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
CARL0S has joined #ruby
markalanevans has quit [Ping timeout: 246 seconds]
icco has joined #ruby
kofno has joined #ruby
strmpnk has joined #ruby
adamjleonard has quit [Quit: Leaving...]
gabrielrotbart has quit [Remote host closed the connection]
pioz has quit [Quit: This computer has gone to sleep]
mando has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
bhaarat has joined #ruby
bhaarat has quit [Client Quit]
kayloos has quit [Remote host closed the connection]
miso1337 has quit [Quit: afk]
hogeo has quit [Remote host closed the connection]
pcarrier has quit [Ping timeout: 260 seconds]
pcarrier has joined #ruby
hamakn has joined #ruby
jnoob22 has quit [Remote host closed the connection]
randomau_ has joined #ruby
kofno has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
JMcAfreak has quit [Ping timeout: 245 seconds]
outphunk has quit [Remote host closed the connection]
marcdel has joined #ruby
timmow has joined #ruby
outphunk has joined #ruby
kpshek has quit [Ping timeout: 276 seconds]
icco has quit [Read error: Operation timed out]
randomautomator has quit [Ping timeout: 245 seconds]
Domon has joined #ruby
hamakn has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
zeade has quit [Quit: Leaving.]
snooc has quit []
jdolitsky2 has joined #ruby
randomau_ has quit [Ping timeout: 272 seconds]
icco has joined #ruby
Sigma00 has quit [Ping timeout: 245 seconds]
outphunk has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
jdolitsky1 has quit [Read error: Connection reset by peer]
jdolitsky1 has joined #ruby
miskander has joined #ruby
brianpWins has quit [Quit: brianpWins]
binaryplease has quit [Ping timeout: 252 seconds]
gabrielrotbart has joined #ruby
robert_ has joined #ruby
pskosinski has quit [Quit: pskosinski]
banjara has quit [Quit: Leaving.]
rburton- has joined #ruby
outphunk has joined #ruby
Guedes0 has joined #ruby
Guedes0 has quit [Remote host closed the connection]
rburton- has quit [Client Quit]
hogeo has joined #ruby
Guedes0 has joined #ruby
rburton- has joined #ruby
joyicecloud has joined #ruby
jdolitsky2 has quit [Ping timeout: 272 seconds]
swex has quit [Ping timeout: 248 seconds]
PiCards has joined #ruby
rburton- has quit [Read error: Connection reset by peer]
Sigma00 has joined #ruby
_maes_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
sleetdrop has joined #ruby
icco has quit [Read error: Operation timed out]
nga4 has quit [Ping timeout: 252 seconds]
icco has joined #ruby
Sigma00 has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
freezway has joined #ruby
<freezway> where can I dl the rdoc for 2.0?
<freezway> going to a programming competition and we dont get internet for obvious reasons
momomomomo has joined #ruby
btaitelb has joined #ruby
soulofpeace has joined #ruby
outphunk has quit [Quit: outphunk]
jekotia_ has joined #ruby
Hanmac1 has joined #ruby
ttt has joined #ruby
banjara has joined #ruby
yacks has quit [Read error: Connection reset by peer]
jdolitsky1 has quit [Quit: Leaving]
sailias has quit [Quit: Leaving.]
jekotia has quit [Ping timeout: 272 seconds]
jekotia_ is now known as jekotia
baroquebobcat has quit [Quit: baroquebobcat]
io_syl has quit [Quit: Computer has gone to sleep.]
xue has joined #ruby
Hanmac2 has quit [Ping timeout: 260 seconds]
yacks has joined #ruby
Mpenzi has left #ruby [#ruby]
mando has quit [Remote host closed the connection]
miskander has quit [Quit: miskander]
<linduxed> so i've got a huge string that i need to have in my code, so i'd prefer to split it across multiple lines, but it should still be considered as one line
<linduxed> it would also be nice if i could have it indented, without ruby including that indentation
icco has quit [Ping timeout: 252 seconds]
Matip has joined #ruby
icco has joined #ruby
supernullset has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 256 seconds]
Sigma00 has joined #ruby
Mattix has quit [Ping timeout: 240 seconds]
miskander has joined #ruby
baroquebobcat has joined #ruby
Sigma00 has quit [Ping timeout: 245 seconds]
tobyo1 has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
alx- has quit [Quit: alx-]
basex has quit [Quit: basex]
PiCards has quit [Quit: Linkinus - http://linkinus.com]
basex has joined #ruby
icco has quit [Read error: Operation timed out]
radic has quit [Disconnected by services]
radic_ has joined #ruby
icco has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
ebollens has quit [Quit: ebollens]
adamjleonard has joined #ruby
gaahrdner has joined #ruby
chimmy has joined #ruby
chrishough has quit [Quit: chrishough]
nezumi has joined #ruby
philcrissman has joined #ruby
subbyyy has joined #ruby
gaahrdner has quit [Ping timeout: 264 seconds]
Sigma00 has joined #ruby
miskander has quit [Quit: miskander]
kenneth has quit [Ping timeout: 252 seconds]
GeissT has joined #ruby
GeissT has quit [Read error: Connection reset by peer]
GeissT has joined #ruby
jbueza has joined #ruby
jeebster has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
shevy has joined #ruby
icco has quit [Read error: Operation timed out]
snooc has joined #ruby
anildigital has quit [Ping timeout: 245 seconds]
timmow has joined #ruby
hogeo has quit [Quit: Leaving...]
hogeo has joined #ruby
BrunoAlano has joined #ruby
icco has joined #ruby
rakl has joined #ruby
Myconix has quit [Read error: Connection reset by peer]
Myconix has joined #ruby
joyicecloud has quit [Ping timeout: 245 seconds]
timmow has quit [Ping timeout: 252 seconds]
k776 has joined #ruby
<linduxed> s = "abcdefgh" ; 0.upto(s.length - 2).inject([]) { |xs, x| xs.push(s[x,x+1]) }
<linduxed> that code
<k776> How does one create a temporary file containing binary data (a pdf downloaded from the net)?
<k776> Tempfile.new("invoice.pdf", :mode => "wb") <- doesn't work, :mode isn't the right value
hashmal has quit [Quit: Computer has gone to sleep.]
<k776> Tempfile doesn't create binary files by default?
<linduxed> i want it to return ["ab", "bc", "cd", "de", "ef", "fg", "gh"]
<linduxed> why isn't it doing that?
<linduxed> currently it returns this
<linduxed> => ["a", "bc", "cde", "defg", "efgh", "fgh", "gh"]
<linduxed> i don't understand why there's a variable length to the strings
redhotvengeance has quit [Remote host closed the connection]
<fryguy> linduxed: inject builds as it goes
nateberkopec has quit [Quit: Leaving...]
BrunoAlano has quit []
<linduxed> fryguy: i don't understand more after hearing that
<fryguy> linduxed: try doing something with map instead
<bnagy> k776: File.binmode
sambio is now known as sambio
BrunoAlano has joined #ruby
<linduxed> fryguy: i don't understand how that would be applicable, map is for each object, right? that would be for each character
<bnagy> >> ('a'..'e').each_cons(2).to_a.map &:join
<eval-in> bnagy => ["ab", "bc", "cd", "de"] (http://eval.in/16579)
kenneth has joined #ruby
<k776> bnagy: Giving that a go now
<bnagy> I think we should have OMG JUST READ ALL OF THE RDOC FOR ENUMERABLE in the /topic
chimmy has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<linduxed> bnagy: haha, yeah you're right
<linduxed> it seems like most of my questions are answered by that doc-page
headius has joined #ruby
kf8a has joined #ruby
ioNull has joined #ruby
kf8a has quit [Client Quit]
Opettaja has quit [Ping timeout: 252 seconds]
icco has quit [Read error: Operation timed out]
BrunoAlano has quit [Client Quit]
BrunoAlano has joined #ruby
icco has joined #ruby
snooc has quit []
agarie has joined #ruby
<bnagy> linduxed: btw your code was wacky because you're using the slice notation s[a,b] takes a slice of length b starting at a
s2013 has joined #ruby
ebobby has quit [Ping timeout: 256 seconds]
<bnagy> and your length (x+1) keeps increasing because you're injecting bigger values of x
<linduxed> bnagy: ooooh, i thought s[a,b] mean from a to b
<linduxed> so that's why
<bnagy> it tails off at the end becaise the length is bigger than the remaining string contents
<linduxed> yeah yeah, now i get it
<linduxed> hmmm
<linduxed> weird thing though
Andreo has quit [Read error: Connection reset by peer]
BrunoAlano has quit [Remote host closed the connection]
<linduxed> "abcdef".to_enum.each_cons(2).to_a gives a NoMethodError
<linduxed> undefined method`each' for "abcdef":String
ttt has quit [Remote host closed the connection]
* linduxed is doing something wrong
<bnagy> yeah, to_enum doesn't do what I think you want it to do
<linduxed> :-S
<bnagy> either use a range like I did, or decompose the string into an array with eg split('')
<linduxed> basically, that each_cons is exactly what i want to do, but on a string
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<bnagy> or chars
<bnagy> or whatever
etank has quit [Quit: WeeChat 0.4.0]
davidokner has joined #ruby
<bnagy> chars is probably prettiest.
<davidokner> How do I upgrade to ruby 2.0.0 with RVM?
<linduxed> bnagy: yeah, just tested chars, looks good
philcrissman_ has joined #ruby
philcrissman has quit [Read error: Connection reset by peer]
<bnagy> davidokner: dunno about 'upgrade' but you just install it like you install any other ruby version with rvm
<bnagy> and then select it
V8Energy_ has joined #ruby
<bnagy> but I cannot remember the exact symtax for either of those things because I set rvm on fire and stomped on its ashes ages ago
<davidokner> Did you switch to brew?
<bnagy> brew and rvm are orthogonal
<davidokner> what do you use to install on os x?
<bnagy> I switched to rbenv
<bnagy> chruby seems to be cool, as well
<bnagy> but rbenv meets my needs
gabrielrotbart has quit [Remote host closed the connection]
<davidokner> so brew and rvm are hard to use and rbenv would be easier?
mathRand has quit []
<davidokner> I tried brew before, but couldn't get it to work. RVm has always worked for me.
psyprus has quit [Ping timeout: 258 seconds]
<davidokner> I use brew for other things though
<V8Energy_> is there some kind of gem that i can use as outlet to sqlite3? something similar to ActiveRecord? basically something that will simplify the process of adding new entries and finding records?
etank has joined #ruby
<bnagy> well brew is a general package manager
<bnagy> davidokner: but I use ports for that instead
Opettaja has joined #ruby
<bnagy> V8Energy_: Sequel maybe if it's still maintained
icco has quit [Read error: Operation timed out]
<bnagy> but sqlite sucks and you shouldn't use it
<s2013> sqlite is ok for development though
Davey has quit [Quit: Computer has gone to sleep.]
ttt has joined #ruby
<V8Energy_> bnagy: what should I use then?
davidokner has quit [Quit: leaving]
<bnagy> a proper database
gwillickers has joined #ruby
<V8Energy_> mysql?
<bnagy> if you want relational imvho postgres
<s2013> V8Energy_ for development sqlite is enough
<s2013> but for production postgres/mysql works well
<s2013> and if you are going to be using heroku then itll be postgres anyways
<bnagy> why would you dev on something that is not your production target? That's madness
aapzak has quit [Ping timeout: 252 seconds]
<bnagy> it's not like installing software on your dev box hurts or costs money
<s2013> because in rails you have a production environment and a development as well as test environment
<s2013> and its very easy to switch between them
Heero has joined #ruby
icco has joined #ruby
<V8Energy_> hmm.. it's just i need to have a script ran from within rails every few hours, basically it's supposed to read from extrnal database and copy the data to local database
aapzak has joined #ruby
<fryguy> V8Energy_: cron, resque, etc. can do that
<V8Energy_> yea i am gonna use cron but i am not sure what's the best way to copy data from extrnal database to local
<V8Energy_> i mean, i have the data i need stored in data variable
<V8Energy_> I guess I can simply use ActiveRecord?
<momomomomo> V8Energy_: You'll have to get your hands dirty, and if you just want to do that transfer once, I'd do it in seeds.rb
<bnagy> using cron is not a very good idea
<V8Energy_> It has to be done every 6 hours
<momomomomo> I've used resque recently, and it was extremely painless
<V8Energy_> what's better than cron?
<bnagy> isn't this why rails people make sidekiq etc?
Opettaja has quit [Ping timeout: 240 seconds]
<bnagy> well cron makes it 'invisible' to anyone reading your code - ie it involves the system itself
baba has joined #ruby
Sigma00 has quit [Ping timeout: 245 seconds]
<bnagy> using resque sidekiq blah blah integrates it
Heero` has joined #ruby
Guest17638 has quit [Ping timeout: 260 seconds]
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
<V8Energy_> is it even possible to have a schedule with sidekiq to make it run every 6 hours or so?
ananthakumaran has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
Sigma00 has joined #ruby
psyprus has joined #ruby
v0n has joined #ruby
Guedes0 has quit [Quit: Saindo]
<V8Energy_> cron actually allows me to run some code every few hours
ZachBeta has quit [Quit: Computer has gone to sleep.]
alx- has joined #ruby
drumond19 has quit [Ping timeout: 264 seconds]
icco has quit [Read error: Operation timed out]
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
drumond19 has joined #ruby
Davey has joined #ruby
Astralum has quit [Ping timeout: 255 seconds]
icco has joined #ruby
bradhe has quit [Remote host closed the connection]
jeevan_ullas has left #ruby [#ruby]
rx_ has joined #ruby
vlad_starkov has joined #ruby
rx_ is now known as trix
chandankumar has joined #ruby
s2013 has quit [Quit: ThrashIRC v2.8 sic populo comunicated]
s2013 has joined #ruby
johnkary has joined #ruby
trix is now known as clamsoup
mythical has joined #ruby
syamajala has joined #ruby
<Matip> what can I do here? http://paste.kde.org/726152
vlad_starkov has quit [Ping timeout: 245 seconds]
<Matip> I have a class with some flags that are supposed to be overridden on the child class, but it doesn't work
io_syl has joined #ruby
mockra has joined #ruby
indyrl has left #ruby [#ruby]
<k776> bnagy: Oh, File.binmode worked perfectly :-) Thank you
chrishough has joined #ruby
<bnagy> k776: np, I've been bitten by that Tempfile thing as well :/
icco has quit [Ping timeout: 252 seconds]
<bnagy> Matip: I don't think you can do that with constants unless you shadow the whole method
<bnagy> try class @ivars
icco has joined #ruby
<Matip> I found this way using self.class::THIS instead of THIS
jdunck has joined #ruby
iamjarvo has quit [Quit: Leaving.]
zubov has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
joyicecloud has joined #ruby
mahat has joined #ruby
<bnagy> yeah that works I guess... I don't like it, but I'm not sure why
timmow has joined #ruby
<Matip> because you have to change the parent code? :P
ZachBeta has joined #ruby
<bnagy> I think just because I am so used to seeing that kind of code done with class methods and class ivars
<bnagy> without really thinking about it I can't see anything specific to dislike about doing it with constants
lukeholder has joined #ruby
cyberarm has quit [Quit: Bye]
<bnagy> ok I'm out
davidokner has joined #ruby
<davidokner> When selecting ruby version should I select regular or @global?
timmow has quit [Ping timeout: 252 seconds]
k776 has left #ruby [#ruby]
alvaro_o has quit [Quit: Ex-Chat]
reset has quit [Ping timeout: 272 seconds]
gstamp has joined #ruby
chandankumar has quit [Ping timeout: 252 seconds]
chrishough has quit [Quit: chrishough]
nga4 has joined #ruby
<davidokner> Does anyone know how to select 2.0.0 in rubymine?
<davidokner> I found the path, but I don't see anything I can select.
chrishough has joined #ruby
rhinux_ has quit [Remote host closed the connection]
rippa has joined #ruby
netto has joined #ruby
icco has quit [Read error: Operation timed out]
btaitelb has quit [Quit: btaitelb]
<momomomomo> davidokner: In IDEA I had to go to File -> Project Structure, and then go down each tab to ensure that the correct rvm ruby & gemset were being used for the project
icco has joined #ruby
syamajala has quit [Ping timeout: 252 seconds]
mahat has quit [Ping timeout: 252 seconds]
rippa has quit [Ping timeout: 240 seconds]
thufir_ has joined #ruby
mse has joined #ruby
adamjleonard has quit [Quit: Leaving...]
rhinux_ has joined #ruby
NihilistDandy has joined #ruby
baba has quit [Ping timeout: 260 seconds]
redhotvengeance has joined #ruby
Sigma00 has quit [Ping timeout: 245 seconds]
dv84 has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
d11wtq_ios has joined #ruby
xcv has quit [Remote host closed the connection]
ckrailo has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
Sigma00 has joined #ruby
redhotvengeance has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Client Quit]
markalanevans has joined #ruby
a_a_g has joined #ruby
baba has joined #ruby
kenneth has quit [Quit: kenneth]
icco has quit [Ping timeout: 252 seconds]
icco has joined #ruby
chandankumar has joined #ruby
sambio has quit []
billy_ran_away has quit [Ping timeout: 260 seconds]
CARL0S has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
Sigma00 has quit [Ping timeout: 245 seconds]
uris has quit [Quit: Leaving]
momomomomo has quit [Quit: adios]
chrishough has quit [Quit: chrishough]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
gwb3 has joined #ruby
d11wtq_ios has quit [Remote host closed the connection]
stardiviner has joined #ruby
mse has quit [Quit: Leaving]
tylersmith has joined #ruby
gabrielrotbart has joined #ruby
Sigma00 has joined #ruby
mumblerit has joined #ruby
mikepack has joined #ruby
celinedior has joined #ruby
mercwithamouth has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
LaPetiteFromage has joined #ruby
<TTilus> shouldn't putting .ruby-version in project root dir suffice?
<gwb3> Hello :)
icco has quit [Read error: Operation timed out]
<gwb3> I am in the process of writing a very ugly script that allows a user to enter in a range of years (e.g. 2000-2050) after which, all of the leap years in that range will be output - https://gist.github.com/garlandbinns/32fc0054f2f2a96b59e8
<davidokner> I can't locate the file to select to set the ruby version for RubyMine.
<TTilus> davidokner: manual doesnt help?
<davidokner> I'm not familiar with the .ruby-version, but I meant for all projects.
<gwb3> One of the problems I am encountering is that since I am assigning a variable by gets.chomp, I am unable to modify it with an integer so that I can check all of the ears in the range.
icco has joined #ruby
<gwb3> I have only learned basic methods such as if, elsif, else, while, etc. - sorry there isn't much beautiful ruby in there. Still a cro-magnon at this point unfortunately.
cheez0r has joined #ruby
<gwb3> If anyone could share a tip I'd appreciate it!
cheez0r is now known as Guest43385
ariedler has quit [Remote host closed the connection]
<davidokner> It isn't showing up according to the directions. I may need to have it in my path.
<TTilus> gwb3: you need your year values to be numbers (integers actually) not strings
<gwb3> TTilus: yes, I was thinking so - however, gets.chomp only grabs strings, no?
<TTilus> gwb3: and you seem to know how to convert string to int
<davidokner> I would think chomp only works on strings, but you could probably get an answer on the lib doc
<davidokner> You could just convert to string, chomp it, then convert back to integer.
<TTilus> gwb3: so when you have a string, which chomp returns, whagt to do it then?
<lukeholder> anyone here played with golang?
<lukeholder> excited for http://goforrubyists.com/
Guest8277 has quit [Ping timeout: 276 seconds]
<gwb3> TTilus: well, I thought I could call the integer method but that doesn't seem to work.
<TTilus> gwb3: how about input = gets.chomp; year = input.to_i
<gwb3> TTilus: ok cool, good idea - let me play with that
mmlac-bv has quit [Quit: mmlac-bv]
<s2013> gwb3 what are you trying to do?
<s2013> oh
<TTilus> gwb3: if you do foo.bar = foo.bar, what it actually does is foo.bar=(foo.bar)
<s2013> do you have a sample code?
<TTilus> s2013: just scroll a little back
<TTilus> s2013: theres a gist
<s2013> yeah i saw that
<s2013> gwb3 can i do it for you and you can check it out?
<gwb3> s2013: hold on :P
<gwb3> thank you both by the way
<TTilus> gwb3: also javaCase is not idiomatic ruby, under_score_lcase for vars, CamelCase module and classnames
bricker`LA has joined #ruby
<gwb3> TTilus: ok so instead of camelCase, underscore is preferred?
<TTilus> gwb3: for identifiers
ananthakumaran has joined #ruby
chandankumar has quit [Quit: Leaving]
jamesfung14 has joined #ruby
divout has joined #ruby
<gwb3> ok
<TTilus> gwb3: and iterators are preferred over loop structures
miso1337 has joined #ruby
kenneth has joined #ruby
icco has quit [Read error: Operation timed out]
daniel_hinojosa has joined #ruby
<TTilus> gwb3: so instead of while, more idiomatic ruby would be to write starting_year.upto(ending_year) do |check_leap_year|; ...; end
<s2013> gwb3 im done
<s2013> do you want to see it?
<s2013> TTilus you can check it too and let me know if it looks right
<zubov> fairly new to ruby and gotta a question for you guys on logic and layout of code
<s2013> ignore the puts endignyear+starting yearline
Sigma00 has quit [Read error: Operation timed out]
icco has joined #ruby
<TTilus> zubov: just pastie/gist your code
<gwb3> s2013: thanks
<s2013> gwb3: updated code: http://paste.ubuntu.com/5715010/
netto has quit [Quit: netto]
Drewch_ has joined #ruby
<s2013> see if that makes sense
<zubov> I am writing a little app to solve a problem: problem is with legacy database and a ton of tables that need to have some business logic applied in certain cases and then updates applied to the database
<gwb3> TTilus: yeah i def want to write more idiomatically, still learning how to crawl like a baby right now though i think that is the next chapter in the book i am reading though
<s2013> TTilus can you check the code i pasted and let me know if that is ok?
<TTilus> zubov: is it run-once-conversion?
<zubov> I am creating a bunch of modules mapped to the table names that has the custom business logic for each table and the update statements required
jarray52 has joined #ruby
generalissimo has joined #ruby
<zubov> I then use a Struct to loop the the list of tables and dynamically call the code in the modules
<s2013> gwb3 did it make sense?
chrishough has joined #ruby
<zubov> TTilus: this will be on going
timmow has joined #ruby
<zubov> TTilus: I thought about using json but the custom business logic is making me lean towards the modules
<gwb3> s2013: yes, I haven't learned the iterators yet but I like how you called to_i on chomp, I should have done that.
<TTilus> s2013: will take a whilw, im off for work now, will be back when im at office
<s2013> oh you havent learned that yet? ok got it
<s2013> what have you learned so far
<s2013> ill reconstruct it using that
choobie has quit [Remote host closed the connection]
<gwb3> TTilus: when I reassigned it works now - https://gist.github.com/garlandbinns/32fc0054f2f2a96b59e8
<s2013> okay you can cut that down by A LOT
<gwb3> s2013: I haven't learned much :)
<gwb3> TTilus: have a good day @ work, cheers
<TTilus> zubov: id go for orm and classes/modules for highel relev business concepts
<TTilus> zubov: orm as in activerecord or datamapper
<s2013> gwb3 give me 2 mins
<zubov> TTilus: ok, I figured so... I just did not know if ruby had a better wa
jhn has joined #ruby
alx- has quit [Quit: alx-]
timmow has quit [Ping timeout: 252 seconds]
<zubov> TTilus: thanks, enjoy work :)
dhruvasagar has quit [Ping timeout: 272 seconds]
gabrielrotbart has quit [Remote host closed the connection]
<s2013> see if that makes sense. i can explain it better if you need to
dhruvasagar has joined #ruby
rippa has joined #ruby
icco has quit [Read error: Operation timed out]
ssvo has quit [Remote host closed the connection]
ssvo has joined #ruby
redhotvengeance has joined #ruby
davidokner has quit [Quit: Lost terminal]
freakazoid0223 has quit [Ping timeout: 272 seconds]
JonnieCache has quit [Ping timeout: 240 seconds]
<gwb3> s2013: no this makes perfect sense - thank you - much cleaner :)
<s2013> np
baba has quit [Ping timeout: 245 seconds]
mahmoudimus has joined #ruby
Anarch has joined #ruby
Anarch has quit [Client Quit]
icco has joined #ruby
Anarch has joined #ruby
browndawg has joined #ruby
<gwb3> so funny in programming how hard it is to be simple
<zubov> still need to account for 100 and 400 year markers
<s2013> yeah im a newbie too so im in the same boat
mahmoudimus has quit [Remote host closed the connection]
<gwb3> zubov: if the 100 year market isn't divisible by 4 then we could toss that, no?
<gwb3> marker*
<zubov> 100 year marker will be divisible by 4
ebollens has joined #ruby
<gwb3> i just realized that dumb statement you made as you said it
<gwb3> I made, I mean… sorry. )
ebollens has quit [Client Quit]
<zubov> if the year is divisible by 100 or 400 it is not a leap year
LaPetiteFromage has quit [Quit: LaPetiteFromage]
redhotvengeance has quit [Remote host closed the connection]
<gwb3> thanks for catching that zubov
<gwb3> I think it's if it's divisible by 100 and 400 it's a leap year
<zubov> not sure if this is for homework and how strict the teacher is... just wanted to let you know
lukeholder has quit [Quit: Computer has gone to sleep.]
love_color_text has quit [Read error: Connection reset by peer]
<gwb3> zubov: yeah, definitely.. thanks
NihilistDandy has quit [Quit: Textual IRC Client: www.textualapp.com]
<zubov> years divisible by 100 and 400 I do not believe are leap years. Might take to Google to confirm :)
<s2013> oh are they not?
mahmoudimus has joined #ruby
Myconix has quit [Ping timeout: 272 seconds]
jhn has quit [Quit: jhn]
<shevy> Professor Google
<nezumi> years divisible by 400 are leap years
<s2013> If the year can be evenly divided by 100, it is NOT a leap year, unless;
<s2013> The year is also evenly divisible by 400. Then it is a leap year.
JesseH has left #ruby ["Peace."]
<s2013> got it
<zubov> wait I think if it is divisible by 100 it is not a leap year unless that year is divisible by 400
philcrissman has joined #ruby
<s2013> damn i didnt know that. or maybe i did but i forgot
<zubov> it gets nuts trying to keep it straight in my head
<s2013> let me correct it
<zubov> that was many years ago in school that I learned that
jenrzzz has joined #ruby
<zubov> I had it half right so only get half credit :)
<nezumi> 2000 was only 13 years ago!
jamesfung14 has quit [Ping timeout: 260 seconds]
<s2013> only?
<gwb3> crazy how fast it went by
<passerine> only 387 years to go ^^
icco has quit [Read error: Operation timed out]
viuo has quit [Read error: Operation timed out]
miso1337 has quit [Quit: afk]
<zubov> nezumi: laugh, crazy that I forget that rule that will only come up once in my lifetime :)
<s2013> gwb3 i fixed it
<s2013> and tested it. it works. wanna see it?
<gwb3> s2013: sure
<s2013> see if that makes sense
icco has joined #ruby
tonini has joined #ruby
<gwb3> s2013: I think you need to put a statement to list the year if it is divisible by 400
<nezumi> you don't need the chomp before to_i, it will stop at the first non-digit
<s2013> nezumi the inputs are only digits
<zubov> s2013: that has the year 2000 in it
<s2013> zubov what you mean
<nezumi> the \n is a non-digit
<s2013> oh right
<s2013> so you just do gets.to_i?
<nezumi> yes
<zubov> that is correct it should have 2000
<s2013> im confused zubov
<s2013> gwb3: you dont need to try to follow the statements it will make sense
<s2013> basically if its divisible by 400 its also divisible by 4
<s2013> so you dont need to put it twice
<zubov> remember 100 is not a leap year unless divisible by 400 so 2000 would be a leap year
<s2013> yes 2000 shows
<s2013> if you run the program
<s2013> and enter 1900 and 2000
<s2013> it shows 1904-2000
<zubov> you did well
<s2013> so its fine zubov?
<gwb3> s2013: but if you do 2000-2050 will it print 2000?
<s2013> check it
<s2013> (spoiler: yes)
viuo has joined #ruby
<zubov> looks to be
<nezumi> you could refactor the year+=1 to a single usage
davetherat has quit [Ping timeout: 240 seconds]
mythical has quit [Quit: mythical]
clamsoup has quit [Quit: Computer has gone to sleep.]
<gwb3> I think I was just confused by line 7
k610 has joined #ruby
undersc0re97 has quit [Quit: Leaving]
<s2013> basically line7 is saying if the year IS divisible by 100 (ex: 500) and NOT divisible by 400.. increase by 1
<s2013> nezumi yeah possibly. im a newbie myself
<nezumi> Ok. You may hear the term "DRY" if you hang around Rubyists. Don't Repeat Yourself.
<s2013> yeah i know that
<s2013> but i am not sure best way to do year+=1 if you can refactor the code that would be good so i could learn too
toekutr has joined #ruby
<nezumi> I'm guilty of it when I'm doing a quick (&dirty) script quite often
codecop has joined #ruby
<s2013> im familiar with DRY principles. i mean im not a total new programmer. just new to ruby (and rails)
mengu has quit [Quit: Leaving]
<nezumi> I'm not a rails person, just ruby
tylersmith has quit [Quit: tylersmith]
<nezumi> (starting_year..ending_year).each might help
<s2013> nezumi oh yeah i did that earlier
yfeldblum has quit [Ping timeout: 272 seconds]
<s2013> but gwb3 hasnt learned that yet so we are using while loop
<nezumi> I wasn't watching.
k610 has quit [Ping timeout: 252 seconds]
<s2013> yeah thats fine. just saying
<nezumi> ok. Different curriculum
<s2013> but i mean can you refactor this while loop though?
<nezumi> Pickaxe gets into each really early on.
<gwb3> thanks again, TTilus, s2013, zubov, nezumi. :)
<s2013> np. good luck
<zubov> have fun gwb3
zombiebit has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
<gwb3> cheers
gwb3 has quit [Quit: Leaving]
girija has joined #ruby
<zubov> each is used so much in ruby for your enumerable items
<s2013> yeah.
tommyvyo has quit [Quit:]
icco has quit [Ping timeout: 252 seconds]
<zubov> would drive me nuts in ruby and C# etc if it was taken away
<zubov> foreach in C# but same thing
V8Energy_ has quit [Ping timeout: 264 seconds]
<s2013> do you like c#?
icco has joined #ruby
<nezumi> foreach in Perl also
<zubov> never did any Perl
<zubov> C# is a good language
<nezumi> youngsters these days....
<s2013> i learned a bit to build games
<s2013> but mostly used unityscript
<nezumi> I try to avoid Microsoft
<zubov> I understand
<zubov> I do as well
<s2013> i am one of the few people that does ruby/rails and still uses windows
<s2013> usually when i go to meetups/hackathons i stand out pretty well
<nezumi> I avoid Rails as well
<zubov> jruby on windows?
rx has joined #ruby
<s2013> nah just ruby1.9.3
JesseH has joined #ruby
<s2013> and rails 3.2
<JesseH> Anyone use rubymine here?
mythical has joined #ruby
<zubov> nezumi: you do Sinatra?
<s2013> JesseH i almost did but its not free. but its good
<zubov> JesseH: yeah, I use it...
jonahR has joined #ruby
<JesseH> I need help filling out the open source thing...
<nezumi> not much. I'm not a web developer
<JesseH> I was just gonna use it for general ruby.
<zubov> it works fine for that JesseH
<JesseH> I don't like gedits text highlighting for ruby
<s2013> i use sublime text2 for ruby and aptana studio for rails JesseH
<JesseH> That's really all I need
<nezumi> As a sysadmin, Net::SSH::Telnet is a wonderful tool
<JesseH> Oh yeah I forgot about sublime
<nezumi> watir was handy as well
<s2013> i wish sublime on windows had a folder view. maybe it does but i cant seem to find it
<JesseH> sublime has a free unlimited trial yes?
<zubov> I use Sublime 2 as well but Rubymine lets me be lazy
<JesseH> Being lazy is for pros :P
<zubov> Sublime takes a little effort to setup. Once done it is solid
vikhyat has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<s2013> yeah JesseH
<JesseH> Awesomeee
<JesseH> What setup do I need?
<JesseH> If any
<s2013> it just bugs you once in a while to register
zombiebit has left #ruby [#ruby]
alanp has quit [Quit: No Ping reply in 180 seconds.]
<zubov> if you want to setup your build environment/output windows/rspec windows etc
<s2013> i dunno i just had sublime default
alanp has joined #ruby
<zubov> s2013: do you just save then run the command prompt to run your ruby.rb files?
stef_204 has joined #ruby
<s2013> yeah i have the ruby cmt prompt open
<s2013> and on aptana the cmd prompt is within the ide
<s2013> i think the windows one is a bit different
<zubov> sublime is sublime :)
<s2013> nevermind im stupid
<zubov> instead of command you use control
<s2013> ill check out the video and set it up that way then thanks for it
Scriptor has quit [Ping timeout: 272 seconds]
icco has quit [Read error: Operation timed out]
hamed_r has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
icco has joined #ruby
apeiros has quit [Remote host closed the connection]
botton has joined #ruby
botton has left #ruby [#ruby]
joyicecloud has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
tomzx_mac has quit [Ping timeout: 245 seconds]
vikhyat has quit [Remote host closed the connection]
cyclic has joined #ruby
<cyclic> hi, when I try to update mongoid, I get the following message: http://pastebin.com/yUMkZUVP What should I do?
mercwithamouth has quit [Ping timeout: 276 seconds]
timmow has joined #ruby
FifthWall has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
ph^ has quit [Remote host closed the connection]
zubov has quit [Remote host closed the connection]
<Nom-> cyclic: Looks like you're trying to bundle on a production machine
<cyclic> right
<cyclic> how can I do it in dev?
<Nom-> But I mean, it tells you how to fix that in the message
<cyclic> and then move to prod?
dawkirst has quit [Read error: Operation timed out]
axxT has joined #ruby
<Nom-> Long story short, the copy you're running it on has had 'bundle install --deployment' run
<cyclic> is there a way to tell where dev is?
angusiguess has quit [Ping timeout: 256 seconds]
<Nom-> If that's *not* a production machine you're testing on, run 'bundle install --no-deployment' to remove the freeze
<cyclic> I'm a newb to the rub
<cyclic> it's prod
dawkirst has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
<cyclic> I'd like to do this on dev first
<Nom-> Well, you need to check the code out of your version control then
<cyclic> I guess I need to setup my local machine as a dev machine?
<cyclic> ok I did that...
<cyclic> on my mac
<Nom-> Yea, you need a development machine to run it on, yes
<cyclic> the server is BSD
icco has quit [Read error: Operation timed out]
tagrudev has joined #ruby
<cyclic> so I literally run the bundle install on my local machine with no-deployment, test it out, then check it in?
jbueza has quit [Quit: Leaving.]
<cyclic> Then git pull?
mercwithamouth has joined #ruby
<cyclic> No need to install anything on the prod machine?
JohnBat26 has joined #ruby
miso1337 has joined #ruby
<Nom-> Well, I don't know how you deploy your code... you should know that... if that message is happening on a development machine, it probably means someone has checked in .bundle/config to the repo
<cyclic> it's happening on prod
<Nom-> Well, then someone has probably not followed the proper deployment process? I can't give you the answer without knowing your environment...
<cyclic> k thanks
<cyclic> so far .. :)
dhruvasagar has quit [Read error: Connection reset by peer]
icco has joined #ruby
Heero` has quit [Quit: Leaving]
dawkirst has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
yfeldblum has joined #ruby
generalissimo has quit [Ping timeout: 272 seconds]
mockra has quit [Remote host closed the connection]
aganov has joined #ruby
rakl has quit [Ping timeout: 252 seconds]
rakl has joined #ruby
rismoney has quit [Ping timeout: 260 seconds]
freezway has quit [Read error: Operation timed out]
headius has quit [Quit: headius]
shock_one has joined #ruby
noob_hacker has joined #ruby
skroon has quit [Ping timeout: 272 seconds]
icco has quit [Ping timeout: 252 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
icco has joined #ruby
dawkirst has joined #ruby
mockra has joined #ruby
basex has quit [Quit: basex]
workmad3 has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
rakl has quit [Quit: sleeping]
nanothief has joined #ruby
brianpWins has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
angusiguess has joined #ruby
puppeh has joined #ruby
daniel_hinojosa has quit [Ping timeout: 246 seconds]
markalanevans has quit [Quit: markalanevans]
mockra has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 276 seconds]
Hanmac has joined #ruby
icco has quit [Read error: Operation timed out]
rx has quit [Quit: Computer has gone to sleep.]
ph^ has joined #ruby
michaelmartinez has joined #ruby
icco has joined #ruby
basex has joined #ruby
vlad_starkov has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
mythical has quit [Ping timeout: 272 seconds]
thams has quit [Quit: thams]
ph^ has quit [Remote host closed the connection]
<callmeivan> yolo
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
ph^ has joined #ruby
<callmeivan> :D, does anybody know if is possible to modify squids ACL during runtime so that it automatically updates?
rippa has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
Hanmac1 has joined #ruby
mnaser has quit [Ping timeout: 245 seconds]
nyuszika7h_ is now known as nyuszika7h
Domon has quit [Ping timeout: 272 seconds]
browndawg has quit [Quit: Leaving.]
Domon has joined #ruby
vikhyat has joined #ruby
kornnflake has quit [Read error: Connection refused]
mnaser has joined #ruby
vikhyat has quit [Remote host closed the connection]
browndawg has joined #ruby
krz has joined #ruby
markalanevans has joined #ruby
zmanfx has quit [Ping timeout: 245 seconds]
celinedior has quit [Quit: celinedior]
Morkel has joined #ruby
lmf40 has joined #ruby
lmf40 has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
Mon_Ouie has quit [Ping timeout: 252 seconds]
zmanfx has joined #ruby
Hanmac1 has quit [Quit: Leaving.]
icco has joined #ruby
wreckimnaked has quit [Ping timeout: 264 seconds]
lewis has joined #ruby
andikr has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
<lewis> BadQuanta: hey
lewis is now known as lewix
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
subbyyy has quit [Ping timeout: 272 seconds]
vikhyat has joined #ruby
jarray52 has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 245 seconds]
blaxter has joined #ruby
subbyyy has joined #ruby
Morkel_ has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
<miso1337> yolo yolo
timmow has joined #ruby
daniel_- has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
pduin has joined #ruby
vikhyat has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 248 seconds]
Morkel_ is now known as Morkel
daniel_- has quit [Read error: Operation timed out]
pduin has quit [Remote host closed the connection]
vikhyat has joined #ruby
pduin has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
vikhyat has quit [Remote host closed the connection]
icco has quit [Ping timeout: 252 seconds]
toekutr has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
icco has joined #ruby
dagobah has joined #ruby
chandankumar has joined #ruby
Hanmac1 has joined #ruby
vysakh has joined #ruby
jenrzzz has joined #ruby
<lewix> miso1337: stop listening to drake
JesseH has quit [Ping timeout: 276 seconds]
vysakh_ has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
undersc0re97 has quit [Ping timeout: 252 seconds]
rickruby has quit [Remote host closed the connection]
vysakh_ has quit [Client Quit]
undersc0re97 has joined #ruby
arquebus has joined #ruby
coderhut has joined #ruby
__main__ has quit [Ping timeout: 252 seconds]
vysakh has quit [Quit: leaving]
noob_hacker has quit [Quit: Page closed]
jdunck has quit [Quit: Computer has gone to sleep.]
Chinorro has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
cervinka has joined #ruby
jprovazn has joined #ruby
agarie has quit [Remote host closed the connection]
icco has quit [Ping timeout: 252 seconds]
filipe has joined #ruby
icco has joined #ruby
arquebus has left #ruby [#ruby]
<aces23up> can someone help me with this regex?
<aces23up> trying to get it to snag the php errors.
<aces23up> right now only snags the second one.
<aces23up> how do i get both?
apeiros has joined #ruby
chussenot has joined #ruby
bricker`1A has joined #ruby
arquebus has joined #ruby
undersc0re97 has quit [Ping timeout: 255 seconds]
tobyo1 has left #ruby ["WeeChat 0.3.2"]
<cervinka> try this: http://rubular.com/r/qNBb77u2nf
<aces23up> cervinka sweet, but how can i get the actual error?
bricker`LA has quit [Ping timeout: 245 seconds]
Heero` has joined #ruby
<aces23up> thats what i need.
<aces23up> got that now.
<aces23up> how do i remove the warning / fatal matches?
arquebus has left #ruby [#ruby]
locriani has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 252 seconds]
bricker`1A has quit [Ping timeout: 256 seconds]
xclite has quit [Ping timeout: 245 seconds]
bricker`LA has joined #ruby
<Hanmac1> aces23up: what about http://rubular.com/r/ELUyz47pWb ?
xclite has joined #ruby
<s2013> what is the ruby kernel class?
arquebus has joined #ruby
<aces23up> Hanmac no..
<aces23up> thats what i need
<aces23up> but each match group has that fatal / warning which isn't needed.
<bnagy> Fatal|Warning.*: (.*)on line.*\d*
MrZYX|off is now known as MrZYX
<bnagy> or just expand the group if you want the line number
chandankumar has quit [Quit: Leaving]
<aces23up> Hanmac saaaweet.
<aces23up> thanks.
snuglepuss has quit [Quit: Leaving]
icco has quit [Ping timeout: 252 seconds]
rednar has joined #ruby
jonahR has quit [Quit: jonahR]
v0n has quit [Ping timeout: 245 seconds]
<linduxed> hey guys, i was wondering how i could best clean up this piece of code https://gist.github.com/linduxed/5402353
danneu has quit [Ping timeout: 264 seconds]
angusiguess has joined #ruby
vikhyat has joined #ruby
icco has joined #ruby
Heero` has quit [Quit: Leaving]
<MrZYX> linduxed: you can just do return [a, b, c] and get rid of the triplet variable and the break
<linduxed> oh, how nice
<linduxed> forgot that returns don't need to be down there
Vainoharhainen has joined #ruby
cervinka has quit [Quit: cervinka]
<passerine> did they remove the need for "then"?
<MrZYX> linduxed: then we tend to prefer && over `and` and snake_case over camlCase for method names
<linduxed> passerine: apparently
rednar has quit [Ping timeout: 246 seconds]
<linduxed> MrZYX: aaah yes, the snake_case, still forget occasionally, coming from haskell
<linduxed> (even though i prefer snake_case)
angusiguess has quit [Ping timeout: 252 seconds]
bricker_ has joined #ruby
<MrZYX> and mabye get rid of one level of indentation by using the modifier if: return [a, b, c] if a**2 + b**2 == c**2
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<passerine> no more 'then' missing errors, that is good news!
backjlack has joined #ruby
FifthWall has quit [Quit: Textual IRC Client: www.textualapp.com]
polymar has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
<linduxed> MrZYX: that one i never use... but it looks good
<linduxed> i think i'll do that
idletom has quit [Ping timeout: 260 seconds]
apeiros has quit [Read error: No route to host]
apeiros has joined #ruby
senayar has joined #ruby
closer has joined #ruby
chussenot has quit [Quit: chussenot]
closer009 has quit [*.net *.split]
three18ti has quit [Ping timeout: 260 seconds]
anderse has joined #ruby
sylvinus has joined #ruby
kelabot has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 272 seconds]
<passerine> b starts as a+1 each time, so is it necessary to test a < b?
nomenkun has joined #ruby
mahmoudimus has joined #ruby
<linduxed> passerine: probably not, good point
<linduxed> but it becomes a bit more explicit
three18ti has joined #ruby
icco has quit [Read error: Operation timed out]
arquebus has left #ruby [#ruby]
pcarrier has quit [Ping timeout: 276 seconds]
icco has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
gabrielrotbart has joined #ruby
__main__ has joined #ruby
djwonk has quit []
MrZYX is now known as MrZYX|off
Hanmac1 has joined #ruby
ZuzzleBuzzer has joined #ruby
vikhyat has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
__main__ has quit [Max SendQ exceeded]
sylvinus_ has joined #ruby
sylvinus has quit [Read error: Connection reset by peer]
sylvinus_ is now known as sylvinus
pcarrier has joined #ruby
huoxito has quit [Quit: Leaving]
__main__ has joined #ruby
ferdev has quit [Quit: ferdev]
justsee has quit [Ping timeout: 264 seconds]
ekampf has quit [Quit: ekampf]
shock_one has quit [Ping timeout: 245 seconds]
chandankumar has joined #ruby
CaptainKnots has quit [Ping timeout: 258 seconds]
Macaveli has joined #ruby
lukeholder has joined #ruby
apeiros has joined #ruby
helvete has joined #ruby
CaptainKnots has joined #ruby
CaptainKnots has quit [Changing host]
CaptainKnots has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
timmow has joined #ruby
callmeivan has quit [Quit: callmeivan]
lewix has quit [Remote host closed the connection]
gabrielrotbart has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
k610 has joined #ruby
braoru has joined #ruby
chandankumar has quit [Max SendQ exceeded]
icco has joined #ruby
anderse has quit [Quit: anderse]
timmow has quit [Ping timeout: 252 seconds]
chandankumar has joined #ruby
DrCode has quit [Remote host closed the connection]
yann_ck has joined #ruby
timonv has joined #ruby
DrCode has joined #ruby
yann_ck has quit [Client Quit]
gstamp has quit [Quit: Computer has gone to sleep.]
peterhellberg has joined #ruby
alup has joined #ruby
matled- has joined #ruby
matled has quit [Read error: Connection reset by peer]
matled- is now known as matled
fcoury has quit [Read error: Operation timed out]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
fcoury has joined #ruby
pi3r has joined #ruby
yusup has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
alup has quit [Read error: Connection reset by peer]
puppeh has quit [Read error: Connection reset by peer]
rdark has joined #ruby
alup has joined #ruby
puppeh has joined #ruby
JoeTheGuest has quit [Ping timeout: 252 seconds]
samuelkadolph has quit [Ping timeout: 252 seconds]
chandankumar has quit [Ping timeout: 276 seconds]
JoeTheGuest has joined #ruby
acidjazz has quit [Ping timeout: 252 seconds]
acidjazz has joined #ruby
marr has joined #ruby
samuelkadolph has joined #ruby
<Hanmac1> linduxed: look at:
<Hanmac1> >> x = 1000; 1.upto(x/3) {|a| a.upto(x/2){|b| c = x - a - b; p [a,b,c] if Math.hypot(a,b) == c }}
<eval-in> Hanmac1 => [200, 375, 425] ... (http://eval.in/16591)
outphunk has joined #ruby
maxmanders has joined #ruby
outphunk has quit [Client Quit]
ekampf has joined #ruby
icco has quit [Read error: Operation timed out]
<bnagy> Hanmac1: oh that's cute
razibog has joined #ruby
<bnagy> but still super wasteful
wesside has quit [Quit: I think I heard an ice cream truck..]
<Hanmac1> bnagy show me how you would solv it
<bnagy> it's long :)
<apeiros> Hanmac1: you know what's sad? Math.hypot is ~2-2.5x slower than (a**2+b**2)**0.5
<linduxed> Hanmac1: pretty
<bnagy> the triples have to be a ratio, eg 3:4:5
icco has joined #ruby
<linduxed> didn't know of hypot
vikhyat has joined #ruby
<bnagy> this particular one is 8:15:17
<bnagy> but you can construct the triples, via the formula
blacktulip has joined #ruby
timmow has joined #ruby
timonv has quit [Remote host closed the connection]
<bnagy> then you can just sum the triple and divmod 1000 :)
arturaz has joined #ruby
<bnagy> 8 + 15 + 17 == 40, so the multiplier is 40
<bnagy> 25 sorry
* bnagy fails at arithmetic
Spooner has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
justsee has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
<bnagy> trouble is that constructing the triples is going to be longer code, cause you have to reduce, eg that ratio is from m=5, n=3, so using m^2 - n^2 : 2mn : m^2 + n^2 you need to simplify after or you get 16, 30, 34
* passerine still wondering about "the formula"
timmow has quit [Remote host closed the connection]
<bnagy> passerine: that ^^
<bnagy> Euclid
<passerine> bnagy thanks
yacks has joined #ruby
s2013 has quit []
rickruby has joined #ruby
lmf40 has joined #ruby
<bnagy> anyway it would be way longer to write it that way, but so much prettier, imho, plus you'd learn something :D
<passerine> not that i'm through wondering yet
troessner has joined #ruby
<bnagy> passerine: right triangles are balltripping awesome
speakingcode has quit [Ping timeout: 245 seconds]
shevy has quit [Ping timeout: 240 seconds]
maxmanders has joined #ruby
coderhut has quit [Ping timeout: 245 seconds]
troessner has quit [Read error: Connection reset by peer]
troessner has joined #ruby
niceguyjames has joined #ruby
vlad_starkov has joined #ruby
rickruby has quit [Ping timeout: 264 seconds]
nomenkun has quit [Ping timeout: 272 seconds]
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
icco has quit [Read error: Operation timed out]
yusup has quit [Quit: Linkinus - http://linkinus.com]
kimteq has quit [Remote host closed the connection]
thedev has joined #ruby
ferdev has joined #ruby
thedev has quit [Client Quit]
nomenkun has joined #ruby
icco has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
rawler has quit [Ping timeout: 245 seconds]
bulters has joined #ruby
tonini has quit [Remote host closed the connection]
aidzis has joined #ruby
jarred has joined #ruby
__main__ has quit [Ping timeout: 245 seconds]
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
Nightmare has joined #ruby
tonini has joined #ruby
sylvinus has quit [Quit: sylvinus]
aidzis has quit [Client Quit]
thedev has joined #ruby
__main__ has joined #ruby
darkc0met has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
thedev has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby
shevy has joined #ruby
jarred has left #ruby [#ruby]
jcrawford has quit [Ping timeout: 264 seconds]
sebastianb has quit [Ping timeout: 246 seconds]
camilasan has joined #ruby
speakingcode has joined #ruby
pioz has joined #ruby
kstephens has quit [Ping timeout: 256 seconds]
clocKwize has joined #ruby
icco has quit [Ping timeout: 252 seconds]
mnaser has quit [Ping timeout: 264 seconds]
pcarrier has quit [Ping timeout: 252 seconds]
geson has joined #ruby
brianpWins has quit [Quit: brianpWins]
icco has joined #ruby
chrishough has quit [Quit: chrishough]
sylvinus has joined #ruby
vikhyat has quit [Remote host closed the connection]
pcarrier has joined #ruby
rawler has joined #ruby
__main__ has quit [Ping timeout: 272 seconds]
schickung has joined #ruby
__main__ has joined #ruby
elaptics`away is now known as elaptics
jlebrech has joined #ruby
mnaser has joined #ruby
chandankumar has joined #ruby
ephemerian has joined #ruby
darkc0met has joined #ruby
buscon has joined #ruby
dogweather has joined #ruby
threesome has joined #ruby
stardiviner has quit [Quit: stardiviner]
jcrawford has joined #ruby
stardiviner has joined #ruby
icco has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
timmow has joined #ruby
JonnieCache has joined #ruby
sebastianb has joined #ruby
icco has joined #ruby
pcarrier has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
chussenot has joined #ruby
d11wtq has quit [Ping timeout: 276 seconds]
pcarrier has joined #ruby
dawkirst has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
hmarr has joined #ruby
feedbackloop_ has quit [Read error: Connection reset by peer]
__main__ has quit [Ping timeout: 252 seconds]
johnkary has quit [Quit: @johnkary]
bricker`LA has quit [Quit: leaving]
nomenkun has quit [Remote host closed the connection]
tevio has joined #ruby
nomenkun has joined #ruby
feedbackloop_ has joined #ruby
thufir_ has quit [Quit: Leaving.]
<Hanmac1> apeiros: it might be evil but there is a way with that you can forbit require ... :P
dawkirst has quit [Ping timeout: 272 seconds]
tevio has quit [Remote host closed the connection]
tevio has joined #ruby
icco has quit [Ping timeout: 252 seconds]
nomenkun has quit [Ping timeout: 264 seconds]
singulartonic has joined #ruby
unflores has joined #ruby
<undersc0re97> Well, I believe I have either encountered a Ruby bug or Arch packaging bug
timmow has joined #ruby
icco has joined #ruby
kf8a has joined #ruby
timmow has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 245 seconds]
apeiros has quit [Read error: Operation timed out]
angga has joined #ruby
angga has quit [Client Quit]
timmow has joined #ruby
apeiros has joined #ruby
gyre007 has joined #ruby
singulartonic has quit [Quit: Textual IRC Client: www.textualapp.com]
Zai00 has joined #ruby
nomenkun has joined #ruby
charliesome_ has joined #ruby
xcv has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
ZuzzleBuzzer has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
aaronmcadam has joined #ruby
charliesome_ is now known as charliesome
ZachBeta has joined #ruby
dawkirst has joined #ruby
ananthakumaran1 has joined #ruby
__main__ has joined #ruby
polymar has quit [Ping timeout: 240 seconds]
Elhu has joined #ruby
dhruvasa1ar has joined #ruby
icco has quit [Read error: Operation timed out]
ananthakumaran has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 260 seconds]
<Macaveli> is it possible to read random number from has
troessner has quit [Ping timeout: 245 seconds]
<Macaveli> h *
icco has joined #ruby
RagingDave has joined #ruby
<Macaveli> I need to random read the first or the second or in the future more
<apeiros> that's not a hash
<apeiros> that's an array.
eka has joined #ruby
skattyadz has joined #ruby
<apeiros> see Array#sample
<bnagy> THAT'S NO MOON
<shevy> THAT IS A SPACESHIP
<shevy> Macaveli array.shuffle[0] could also work
<Hanmac1> ITS BOTH ;P
danneu has joined #ruby
<apeiros> shevy: that's slow
<undersc0re97> shevy: you messed up the quote!
<apeiros> #sample is by far the better choice
<Macaveli> shevy will try
<JonnieCache> oh dear
<undersc0re97> it's a space station is what they say in Star Wars
<shevy> the death star?
* apeiros sobs and walks away
<shevy> somehow I always liked Star Trek more than Star Wars
okinomo has joined #ruby
<blaxter> stargate ftw
kstephens has joined #ruby
<Hanmac1> apeiros: did you try to play with the $LOADED_FEATURES variable? its very funny ;P
<Macaveli> shevy, Shuffle worked like a charm
<apeiros> Hanmac1: I've used it in the past to avoid that certain files got required
<apeiros> or got re-required
danneu has quit [Ping timeout: 245 seconds]
<Hanmac1> or when you freeze the variable it increase the funnyness ;P
<apeiros> lol
Skofo has quit [Ping timeout: 246 seconds]
polymar has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<Hanmac1> for the ones that dont get the joke: if you $LOADED_FEATURES.freeze, then require does not work anymore
peterhellberg has quit [Remote host closed the connection]
jandres has joined #ruby
<shevy> hmmm
<shevy> Hanmac1 knows thousand ways to break ruby
icco has quit [Ping timeout: 252 seconds]
lukeholder has quit [Quit: Computer has gone to sleep.]
daniel_- has joined #ruby
br4ndon has joined #ruby
br4ndon has quit [Client Quit]
icco has joined #ruby
troessner has joined #ruby
miso1337 has quit [Quit: afk]
SeySayux has quit [Ping timeout: 264 seconds]
Villadelfia has quit [Ping timeout: 264 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
a_a_g has quit [Quit: This computer has gone to sleep]
oneirophren has joined #ruby
arietis has joined #ruby
SeySayux has joined #ruby
Villadelfia has joined #ruby
nplusp has joined #ruby
jlebrech has quit [Read error: Connection reset by peer]
iml has joined #ruby
jlebrech has joined #ruby
snearch has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
peterhellberg has joined #ruby
maxmanders has joined #ruby
robustus has joined #ruby
schickung has quit [Quit: schickung]
snearch has quit [Quit: Verlassend]
icco has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
Criztian has joined #ruby
Mon_Ouie has joined #ruby
icco has joined #ruby
freeayu has quit [Ping timeout: 240 seconds]
shiva_ has joined #ruby
freeayu has joined #ruby
ziyadb has joined #ruby
timmow_ has joined #ruby
timeout has joined #ruby
<ziyadb> Wait a minute...
jgrevich has quit [Remote host closed the connection]
<bnagy> 60
<bnagy> 59
<bnagy> 58
<ziyadb> So if a local variable is declared in the global scope, it cannot be accessed from within a method in the same global space?
<ziyadb> bnagy: heh.
<bnagy> that's right, apart from minor eyebrow raising over 'global scope'
jonathanwallace has quit [Ping timeout: 256 seconds]
daniel_- has quit [Quit: WeeChat 0.4.0]
<ziyadb> This _is_ a ruby specific nuisance, is it not? Python and other languages CAN access variables in the global namespace from within methods.
<bnagy> well I don't grant the premise - it's not a nuisance
troessner has quit [Ping timeout: 272 seconds]
<bnagy> if you want visibility from inside a method you have a lot of ways to make that happen
<bnagy> you could use instance vars or constants or even *shudder* globals
chandankumar has quit [Quit: Leaving]
pac1 has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
<bnagy> basically some_local = 3 is local, so, like, you can only access it locally
<pac1> openscenegraph.org seems to be offline.
dogweather has quit [Remote host closed the connection]
<ziyadb> bnagy: sure, yes.
<ziyadb> But I just wanted to make sure that's how it is. Because in other languages, you _can_ access variables declared in the global namespace from within a method.
<ziyadb> But apparently that is not the case with Ruby.
beiter has joined #ruby
hashmal has joined #ruby
br4ndon_ has joined #ruby
marcdel has quit []
mneorr has joined #ruby
icco has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
dhruvasa1ar is now known as dhruvasagar
icco has joined #ruby
tonini has quit [Remote host closed the connection]
troessner has joined #ruby
forlin has joined #ruby
arquebus has joined #ruby
skattyadz has quit [Quit: skattyadz]
smt has joined #ruby
hamed_r has quit [Ping timeout: 272 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
hamakn has quit [Remote host closed the connection]
hamed_r has joined #ruby
shiva_ has quit [Quit: Leaving]
maxmanders has joined #ruby
araujo has quit [Ping timeout: 248 seconds]
shrnk has joined #ruby
<shrnk> hey everyone, I wanted to create a ruby gem with extract the required database from whole database using rails, can anyone please suggest me how to go about this ...
<shrnk> *want to create ruby gem which extract
cyclic has quit [Ping timeout: 245 seconds]
araujo has joined #ruby
hamakn has joined #ruby
icco has quit [Ping timeout: 251 seconds]
gebbione has joined #ruby
beiter has quit [Ping timeout: 272 seconds]
<gebbione> Hi, not sure it is the right channel for the question. In a selenium webdriver/test unit ruby app, is there anyway i can run just a single test within my test class?
icco has joined #ruby
beiter has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Olipro has joined #ruby
petrjanda has joined #ruby
Kruppe has quit [Remote host closed the connection]
thufir_ has joined #ruby
workmad3 has joined #ruby
polymar has quit [Remote host closed the connection]
polymar has joined #ruby
<undersc0re97> shrnk: ask in #RubyOnRails
<undersc0re97> because not every Rubyist knows Rails
fermion has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
baba has joined #ruby
icco has quit [Read error: Operation timed out]
danneu has joined #ruby
gregchapple has joined #ruby
gregchapple has left #ruby [#ruby]
icco has joined #ruby
cantonic has joined #ruby
timeout has quit [Quit: bye]
wargasm has quit [Ping timeout: 245 seconds]
danneu has quit [Ping timeout: 255 seconds]
d11wtq has joined #ruby
basex has quit [Quit: basex]
workmad3 has quit [Ping timeout: 255 seconds]
Macaveli has quit [Remote host closed the connection]
helvete has quit [Quit: Leaving...]
pcarrier has joined #ruby
stardiviner has quit [Remote host closed the connection]
dogweather has joined #ruby
wallclockbuilder has joined #ruby
br4ndon_ has quit [Quit: Lorem ipsum dolor sit amet]
workmad3 has joined #ruby
<Spooner> undersc0re97, That is more a test-unit question than a Rails one, I think.
icco has quit [Ping timeout: 252 seconds]
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
<Spooner> undersc0re97, Oops, sorry, I thought you were answering gebbione there.
<undersc0re97> that's alright
icco has joined #ruby
<undersc0re97> thou art forgiven
<Spooner> You are very gracious :)
wallclockbuilder has quit [Remote host closed the connection]
rton has joined #ruby
chase-work has joined #ruby
ryanh has joined #ruby
ryanh has quit [Client Quit]
mklappstuhl_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
AndChat| has joined #ruby
AndChat- has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
hakunin has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
waxjar has quit [Ping timeout: 258 seconds]
psyprus has joined #ruby
ry4nn has quit [Read error: Connection reset by peer]
nplusp has quit [Remote host closed the connection]
timmow_ has joined #ruby
hakunin has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
Beoran__ has quit [Ping timeout: 258 seconds]
mneorr has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
<gebbione> btw the answer was easy ,,, just use --name test_nameOfTheTest
arquebus has left #ruby [#ruby]
hasse has joined #ruby
skattyadz has joined #ruby
AndChat| has quit [Ping timeout: 272 seconds]
gebbione has left #ruby [#ruby]
dkannan has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
AndChat- has quit [Ping timeout: 272 seconds]
Beoran_ has joined #ruby
filipe has quit [Ping timeout: 245 seconds]
waxjar_ has joined #ruby
foobArrr has quit [Ping timeout: 245 seconds]
Domon has quit [Remote host closed the connection]
foobArrr has joined #ruby
G has quit [Ping timeout: 258 seconds]
ChristianS has quit [Ping timeout: 264 seconds]
ChristianS has joined #ruby
G has joined #ruby
<hasse> I repeatedly need to create dummy txt files in my repos that I want to be ignored by git. To make it easy I thought of adding a global file extension that is ignored. So I can name my files anything. What would be a good extension for that purpose? Or is there a better way?
matchaw has quit [Ping timeout: 258 seconds]
matchaw has joined #ruby
<hoelzro> hasse: I would just stick an entry into .git/info/exclude
<hoelzro> rather than a global entry
icco has quit [Read error: Operation timed out]
slainer68 has quit [Remote host closed the connection]
ChristianS has quit [Client Quit]
psyprus has quit [Ping timeout: 258 seconds]
yeban has quit [Ping timeout: 258 seconds]
icco has joined #ruby
yeban has joined #ruby
ChristianS has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<Hanmac1> hoelzro: thanks good to know
jnoob22 has joined #ruby
psyprus has joined #ruby
maxmanders has joined #ruby
sylvinus has quit [Quit: sylvinus]
filipe has joined #ruby
hamed_r has quit [Quit: Leaving]
AndChat| has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
netto has joined #ruby
helvete has joined #ruby
nkr has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]
Proshot has joined #ruby
chussenot has quit [Quit: chussenot]
polymar has quit [Ping timeout: 272 seconds]
<hasse> hoelzro: hmm, thanks. But then I have to add ignore patterns to .git/info/exclude for all of my repos. Wouldn't it be easier to have it in my global ignore even if it's not as clean approach.
pac1 has quit [Ping timeout: 264 seconds]
Igneous_ has joined #ruby
davetherat has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
nmeum has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 245 seconds]
<Hanmac1> hasse you can
icco has quit [Read error: Operation timed out]
browndawg has quit [Read error: Connection reset by peer]
eykosioux has joined #ruby
madb055 has joined #ruby
helvete has quit [Ping timeout: 256 seconds]
icco has joined #ruby
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
Igneous has quit [Ping timeout: 258 seconds]
yshh has quit [Remote host closed the connection]
tristan622 has joined #ruby
psyprus has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
tvw has joined #ruby
netto_ has joined #ruby
b0oh has joined #ruby
maligree has joined #ruby
maxmanders has joined #ruby
netto has quit [Ping timeout: 272 seconds]
netto_ is now known as netto
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
icco has quit [Read error: Operation timed out]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
browndawg has joined #ruby
icco has joined #ruby
slainer68 has joined #ruby
eka has joined #ruby
pcarrier has quit [Ping timeout: 245 seconds]
bhaarat has joined #ruby
dustint has joined #ruby
billy_ran_away has joined #ruby
vikhyat has quit [Remote host closed the connection]
cha1tanya has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
nari has joined #ruby
dogweather has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
Xeago has joined #ruby
slainer68 has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
pcarrier has joined #ruby
Reville has joined #ruby
RagingDave_ has joined #ruby
xlab_ has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
Xlab has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
ngcazz has joined #ruby
hemanth has joined #ruby
<ngcazz> hey
<ngcazz> is anyone familiar with the global interpreter lock semantics?
Banistergalaxy has joined #ruby
<ngcazz> i'm unsure how i would describe it in laymen's terms
<ngcazz> "laymen" that is
Elhu has joined #ruby
icco has joined #ruby
<ngcazz> does it mean that any threaded ruby code is seen as a critical region?
RagingDave has quit [Ping timeout: 264 seconds]
thufir_ has quit [Quit: Leaving.]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
AndChat| has quit [Ping timeout: 272 seconds]
hogeo has quit [Remote host closed the connection]
<bnagy> "only one ruby (bytecode) thread can be running at any given time"
RagingDave_ is now known as RagingDave
cha1tanya has joined #ruby
okinomo has left #ruby [#ruby]
LennyLinux has joined #ruby
dooner has joined #ruby
AndChat| has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
eka has joined #ruby
ryannielson has joined #ruby
mneorr has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
kayloos has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
hemanth_ has joined #ruby
dooner has quit [Client Quit]
timmow_ has joined #ruby
sailias has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
maligree has quit [Quit: I just remembered I'm sleep deprived.]
polymar has joined #ruby
newUser1234 has joined #ruby
netto_ has joined #ruby
<hoelzro> hasse: oh, in that case yes
<hoelzro> or use git templates
<hoelzro> (man git init, look for TEMPLATE DIRECTORY)
maxmanders has joined #ruby
hemanth has quit [Ping timeout: 264 seconds]
icco has quit [Read error: Operation timed out]
tristan622 has quit [Ping timeout: 264 seconds]
netto has quit [Ping timeout: 255 seconds]
netto_ is now known as netto
Deleteyrself has joined #ruby
Deleteyrself has quit [Max SendQ exceeded]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
cha1tanya has quit [Ping timeout: 276 seconds]
polymar has quit [Remote host closed the connection]
timmow_ has quit [Ping timeout: 252 seconds]
soulofpeace has quit [Read error: Operation timed out]
icco has joined #ruby
MrYale has joined #ruby
slainer68 has joined #ruby
eka has joined #ruby
lewix has joined #ruby
cha1tanya has joined #ruby
Czupa has joined #ruby
cha1tanya has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 264 seconds]
<avelldiroll> Hi, i am quite new to ruby, used it mainly for puppet so far, i want to parse some (small) xml files, i found a few modules to so, which one is recommended these days ? nokogiri seems to be the most popular
yfeldblum has quit [Read error: Connection reset by peer]
kristofers has joined #ruby
geekbri has joined #ruby
cha1tanya has joined #ruby
yfeldblum has joined #ruby
<Hanmac1> avelldiroll: nokogiri is the best ... its also cool for generating xml
<avelldiroll> great, thanks
sylvinus has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
netto_ has joined #ruby
maxmanders has joined #ruby
netto has quit [Ping timeout: 252 seconds]
skum has joined #ruby
netto_ is now known as netto
Deckl has joined #ruby
cantonic has quit [Ping timeout: 260 seconds]
skum has quit [Remote host closed the connection]
Vainoharhainen has quit [Read error: Connection reset by peer]
Vainoharhainen has joined #ruby
Vainoharhainen has quit [Read error: Connection reset by peer]
skum has joined #ruby
samuelj has joined #ruby
helvete has joined #ruby
icco has quit [Ping timeout: 252 seconds]
cantonic has joined #ruby
BizarreCake has joined #ruby
daed has quit [Ping timeout: 240 seconds]
<samuelj> Hey all. Does anyone have any reccommendations for a priority queue implementation? I've seen pqueue but it doesn't seem all too popular, and PriorityQueue claims it's only at v0.1.2. What about the PriorityQueue in the algorithms gem? Anyone got any strong opinions?
icco has joined #ruby
daed has joined #ruby
nga4 has quit [Ping timeout: 256 seconds]
skum has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
Vainoharhainen has joined #ruby
lewix has quit [Remote host closed the connection]
Reville has quit [Quit: Reville]
cantonic has quit [Ping timeout: 256 seconds]
sailias has quit [Quit: Leaving.]
kofno has joined #ruby
MrYale has quit [Quit: MrYale]
eykosioux has quit [Remote host closed the connection]
Neandre has joined #ruby
franks2 has quit [Ping timeout: 248 seconds]
samuelj has quit [Ping timeout: 245 seconds]
mark_locklear has joined #ruby
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
ferdev has quit [Quit: ferdev]
ferdev has joined #ruby
icco has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
chussenot has joined #ruby
snooc has joined #ruby
icco has joined #ruby
angusiguess has joined #ruby
subbyyy has joined #ruby
netto_ has joined #ruby
franks2 has joined #ruby
Tarential has quit [Excess Flood]
netto has quit [Ping timeout: 260 seconds]
netto_ is now known as netto
Tarential has joined #ruby
yshh has joined #ruby
arya has joined #ruby
talktokets has joined #ruby
kreantos_ has joined #ruby
kreantos_ has quit [Remote host closed the connection]
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
kreantos has joined #ruby
<GeorgesLeYeti> I have a problem with converting integer to duration. EG: a = 1.month.to_i
workmad3 has joined #ruby
<tobiasvl> GeorgesLeYeti: what's 1.month ?
<tobiasvl> it's not in Date
<Hanmac1> ... 1) 1.month is a AS function you may get more help at #rubyonrails 2) month does already return a number so to_i is useless
<tobiasvl> is this a rails thing?
noop has quit [Remote host closed the connection]
<Hanmac1> tobiasvl: yeah its a rails thing
symfony has joined #ruby
<tobiasvl> oh okay
ttt has quit [Remote host closed the connection]
b0oh has quit [Quit: Leaving.]
vikhyat has joined #ruby
talktokets has left #ruby [#ruby]
<GeorgesLeYeti> ok sorry
alexdoom has quit [Ping timeout: 245 seconds]
symfony is now known as morfin
alexdoom has joined #ruby
Criztian has quit [Remote host closed the connection]
jenrzzz has quit [Quit: wryyyyyyyyyyyyyyyyyyyy]
yshh has quit [Ping timeout: 276 seconds]
LaPetiteFromage has joined #ruby
slainer68 has joined #ruby
icco has quit [Read error: Operation timed out]
smt has quit [Quit: Konversation terminated!]
NiteRain has quit [Ping timeout: 252 seconds]
slainer68 has quit [Read error: Connection reset by peer]
skattyadz has quit [Quit: skattyadz]
alek_b_ has quit [Remote host closed the connection]
slainer68 has joined #ruby
icco has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
miso1337 has joined #ruby
b0oh has joined #ruby
netto has quit [Quit: netto]
samuelj has joined #ruby
apeiros has joined #ruby
indyrl has joined #ruby
indyrl has quit [Max SendQ exceeded]
miskander has joined #ruby
miskander has quit [Client Quit]
skum has joined #ruby
ariedler has joined #ruby
miso1337 has quit [Client Quit]
ngcazz has quit [Ping timeout: 245 seconds]
cha1tanya has quit [Quit: Leaving]
helvete has quit [Remote host closed the connection]
helvete has joined #ruby
Vainoharhainen has quit [Ping timeout: 252 seconds]
netto has joined #ruby
newUser1234 has quit [Remote host closed the connection]
peter_ has joined #ruby
peter_ has quit [Remote host closed the connection]
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
helvete has quit [Read error: Connection reset by peer]
helvete has joined #ruby
krz has quit [Quit: krz]
Astralum has joined #ruby
AndChat- has joined #ruby
kpshek has joined #ruby
eykosioux has joined #ruby
hamakn has quit [Remote host closed the connection]
pcarrier has quit [Quit: Computer has gone to sleep.]
Czupa has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 245 seconds]
icco has quit [Read error: Operation timed out]
icco has joined #ruby
pcarrier has joined #ruby
netto has quit [Read error: Connection reset by peer]
AndChat- has quit [Ping timeout: 264 seconds]
samuelj has quit [Quit: leaving]
iamjarvo has quit [Quit: Leaving.]
ekampf has quit [Quit: ekampf]
nga4 has joined #ruby
carloslopes has joined #ruby
netto has joined #ruby
newUser1234 has joined #ruby
jnoob22 has quit [Remote host closed the connection]
jnoob22 has joined #ruby
eykosioux has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby
rdark has quit [Ping timeout: 246 seconds]
nyuszika7h has joined #ruby
Macaveli has quit [Quit: Leaving]
Macaveli has joined #ruby
hamakn has joined #ruby
invisime has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
jnoob22_ has joined #ruby
<GeorgesLeYeti> Hanmac: i don't thinnk 1.month is integer. It s fixnum class.
jnoob22 has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
<Macaveli> what's the difference between a variable that is [] or nil
alexdoom has quit [Ping timeout: 245 seconds]
carloslopes has joined #ruby
ZachBeta has joined #ruby
alexdoom has joined #ruby
<yellow5> Macaveli: [] represents an empty array, nil means nothing is assigned at all
<tobiasvl> Macaveli: one is an empty array and the other is nil
eykosioux has joined #ruby
v0n has joined #ruby
ekampf has joined #ruby
<Macaveli> yellow5, tobiasvl can you do something like if test = [] then test = nil ?
<tobiasvl> do you mean ==
<tobiasvl> Macaveli: in ruby only nil is falsey (in addition to false itself, of course), so [] is true
<tobiasvl> if that's what you're asking
<Macaveli> well my variable needs to be assigned nil if it's an empty array
<waxjar_> you probably need your logic to work with an empty array :P
Elhu has quit [Quit: Computer has gone to sleep.]
icco has quit [Read error: Operation timed out]
<tobiasvl> Macaveli: then it's fine, except you have to use == instead of = in the test
<Macaveli> thanks tobiasvl
<tobiasvl> >> test = []; test = nil if test == []; puts test
<eval-in> tobiasvl => ... (http://eval.in/16644)
bhaarat has quit [Quit: bhaarat]
<yellow5> Macaveli: test == [] || test.nil?
<Macaveli> le me test
<tobiasvl> eval-in????
pcarrier has quit [Quit: Computer has gone to sleep.]
freeayu__ has joined #ruby
netto_ has joined #ruby
netto has quit [Ping timeout: 260 seconds]
netto_ is now known as netto
<alexdoom> yellow5: would you have to do "test.nil?"? couldnt you just use test?
<alexdoom> "test?"?
<tobiasvl> just test
<Macaveli> I'll gist it hold on
<alexdoom> im new to ruby, thats why im asking
<yellow5> Macaveli: even better may be test.nil? || test.empty?
<alexdoom> i thought ? checks if its nil
<tobiasvl> but
<tobiasvl> yellow5: he wants to ASSIGN nil
<tobiasvl> so it'd be test == [] || test = nil
icco has joined #ruby
nmeum has joined #ruby
skoovdebo has joined #ruby
zmanfx has quit [Ping timeout: 245 seconds]
<yellow5> alexdoom: yes, could avoid the #nil?
gyre007 has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
<tobiasvl> alexdoom: there is no unary ? method
ZachBeta has quit [Quit: Computer has gone to sleep.]
<yellow5> alexdoom: and oops, didn't notice assignment was desired
<Macaveli> if image was [] i got an error
<alexdoom> tobiasvl: i meant "var.atr?" checks if var has the attribute atr
<alexdoom> or have i missunderstood the use of ?
<tobiasvl> apparently
jean-louis has joined #ruby
Elhu has joined #ruby
<alexdoom> apparantly i've missunderstood?
<tobiasvl> yes
<tobiasvl> alexdoom: ? isn't ruby syntax (except as a ternary operator), it's just convention to tack it on the end of method names that return a boolean
hamakn has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 248 seconds]
snooc has quit []
<alexdoom> tobiasvl: oh
<alexdoom> i see. thank you
rudisimo has joined #ruby
<Hanmac1> PS: you CAN define a method missing hook at looks at the method "meth?" if the "meth" return some truly stuff
<tobiasvl> yes sure
<tobiasvl> you can do anything in ruby :)
<tobiasvl> you can define ? as a unary operator on Object too if you want
<yellow5> Macaveli: assuming you are using ActiveRecord in rails, you are requesting a full result set rather than a single record
<yellow5> in other words, you will always get an array back
subbyyy has quit [Ping timeout: 252 seconds]
<yellow5> if you are expecting only one record to match the conditions
<Macaveli> yellow5, Indeed but when it's empty the dummy value needs to be shown
<alexdoom> is there a easy way to test ruby code? like a shell
mmitchell has joined #ruby
<alexdoom> where i can stumble around
<Macaveli> alexdoom, irb ;)
<yellow5> Macaveli: gotcha
<yellow5> image = nil if image.empty?
zmanfx has joined #ruby
<Macaveli> waxjar_, ooh so I can use empty on array nice
<yellow5> should work fine
angusiguess has quit [Read error: Connection reset by peer]
<alexdoom> Macaveli: ah, thanks :D
<waxjar_> there's almost never a reason to assign nil
ZachBeta has joined #ruby
<yellow5> which is the same thing you currently have in a slightly different way
<yellow5> is this indeed a rails app?
<Macaveli> I like these array operators can I find a list somewhere?
discopig has joined #ruby
<hoelzro> >> [].public_methods.sort
<eval-in> hoelzro => [:!, :!=, :!~, :&, :*, :+, :-, :<<, :<=>, :==, :===, :=~, :[], :[]=, :__id__, :__send__, :all?, :any?, :assoc, :at, :bsearch, :chunk, :class, :clear, :clone, :collect, :collect!, :collect_concat, :comb ... (http://eval.in/16645)
<hoelzro> \o/
<alexdoom> i enjoy that syntax. "do_thing if condition"
<tobiasvl> alexdoom: then you'll like "do_thing unless condition"
<alexdoom> tobiasvl: its really neat
<alexdoom> easy on the eyes
<yellow5> Macaveli: if this is rails, the rails gem added the #present? method
<yellow5> Macaveli: which will return false for an empty array
ZachBeta has quit [Client Quit]
Morkel has quit [Quit: Morkel]
postmodern has quit [Quit: Leaving]
tk_ has joined #ruby
cmar has joined #ruby
cyclic has joined #ruby
<yellow5> Macaveli: comment added to gist
<Macaveli> yellow5, thanks!
cmar has left #ruby [#ruby]
<cyclic> Hi, I am trying to use ActionMailer to send email, and it was working before, but now it's not sending emails; no errors or anything. I can manually send emails from the host to myself though, and I checked maillog, but there is nothing there. Any tips?
<Macaveli> yellow5, there is not much difference between present and empty right?
_nitti has joined #ruby
<yellow5> Macaveli: in rails, #present? is the opposite of #blank?
<yellow5> both are non-standard methods added by the project
<yellow5> but useful for situations like yours
<Macaveli> ok :) good thanks for all the information yellow5
classix has quit [Ping timeout: 260 seconds]
<yellow5> nil and '' and [] are all considered #blank? true
icco has quit [Read error: Operation timed out]
zmanfx has quit [Ping timeout: 245 seconds]
filipe has quit [Ping timeout: 272 seconds]
apeiros has quit [Ping timeout: 256 seconds]
solidoodlesuppor has joined #ruby
<yellow5> where in pure ruby, nil will not respond to #empty? at all
breakingthings has joined #ruby
zmanfx has joined #ruby
<yellow5> the #present? one is added b/c nil is falsey, like it was mentioned before
<yellow5> however '' and [] are truthy values
<yellow5> using #present? will make sure the value is non-null and non-empty arrays
icco has joined #ruby
<yellow5> those two works with hashes, too
<waxjar_> if you somehow get a nil value somewhere where you expect an empty Array/String/w/e you screwed up somewhere else in the code, imo :P
skattyadz has joined #ruby
justsee has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<cyclic> anyone?
EPIK has quit [Ping timeout: 276 seconds]
dr_bob has joined #ruby
lewix_ has joined #ruby
noop has joined #ruby
<tobiasvl> cyclic: are the exceptions caught anywhere?
<cyclic> no I am making a straight call to actionmailer
classix has joined #ruby
<tobiasvl> try sending it from irb/pry with no cruft to see if you get an exception
<cyclic> irb/pry?
<cyclic> sorry
<cyclic> sthat?
<tobiasvl> oh ok
<tobiasvl> that's weird
<tobiasvl> the most widely used interactive ruby shells
lewix_ has quit [Remote host closed the connection]
cantonic has joined #ruby
<tobiasvl> (REPLs)
mneorr has joined #ruby
cmarques has joined #ruby
newUser1234 has quit [Remote host closed the connection]
ChristianS has quit [Ping timeout: 245 seconds]
acrussell has joined #ruby
tubbo has joined #ruby
ChristianS has joined #ruby
idkazuma has joined #ruby
wreckimnaked has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
<cyclic> I was using Thor to execute it
acrussell has left #ruby [#ruby]
<cyclic> tobiasvl:
Xeli has joined #ruby
tubbo has left #ruby [#ruby]
<tobiasvl> yes?
<cyclic> tobiasvl: I have pry running. what do I put in?
<tobiasvl> whatever you want
<tobiasvl> but listen, i think maybe #rubyonrails is a better place to ask
<cyclic> tobiasvl: here is my code, http://pastebin.com/hHLRsRcG
skoovdebo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b0oh has quit [Quit: Leaving.]
pcarrier has joined #ruby
<cyclic> k, I just asked in there, but can you tell me how I load up my production environment config and execute that class?
<cyclic> I already ran: RAILS_ENV="production"
<tobiasvl> production environment config? i don't even know what that is supposed to mean. it's probably rails specific stuff
<tobiasvl> and if so #rubyonrails is better
<tobiasvl> (i've never used Rails)
<cyclic> oh lol
<cyclic> ok thanks
thatRD has joined #ruby
icco has quit [Read error: Operation timed out]
sethetter has joined #ruby
filipe has joined #ruby
<sethetter> I'm trying to compile ruby on a pretty old linux system. It's telling me right off the bat that ruby/missing.h and ruby/config.h are missing. Can anyone point me in the right direction?
wmoxam has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
arturaz has quit [Ping timeout: 246 seconds]
icco has joined #ruby
<shevy> sethetter what ruby version is that
<Hanmac1> sethetter ... so how do you try to compile ruby?
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
<sethetter> shevy: 1.9.3 at the moment. I'm trying to find the most recent version that will work with this system.
hemanth_ has quit [Read error: Connection reset by peer]
<sethetter> Hanmac1: ./configure && make
vlad_starkov has quit [Remote host closed the connection]
hemanth has joined #ruby
<shevy> try 1.8.7 perhaps ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p358.tar.bz2
acarpe has joined #ruby
acarpe has left #ruby [#ruby]
<sethetter> shevy: I'll give it a go
ph^ has quit [Ping timeout: 245 seconds]
xcv has quit [Read error: Connection reset by peer]
b0oh has joined #ruby
<shevy> \o/
sailias has joined #ruby
nezumi has quit [Ping timeout: 252 seconds]
<sethetter> I should mention this is on Red Hat 7.3, I believe that was released in '99
philcrissman has quit [Remote host closed the connection]
<waxjar_> woah
<sethetter> It's making! Ohhhhh man
jerius has joined #ruby
philcrissman has joined #ruby
blaxter has quit [Ping timeout: 245 seconds]
<shevy> yay!
<shevy> go, past, goooo !
<shevy> but dont get your hopes up too much
<sethetter> shevy: It worked!!!!!!!
<shevy> on modern linux versions, 1.8.7 often no longer compiles
thams has joined #ruby
<akhet> :D
<shevy> cool
<shevy> you can even use gems
<sethetter> If `make install` goes through without error then I'm in business, right?
<sethetter> Hell yeah, thanks.
<shevy> sethetter, I think if make finished
<shevy> then you already have the working binaries
<shevy> you should have a file called "ruby"
<shevy> "make install" should usually just copy that to the --prefix target given
freeayu__ has quit [Ping timeout: 256 seconds]
<shevy> if omitted, --prefix defaults to /usr/local
<shevy> so "./configure" should be synonymous to "./configure --prefix=/usr/local"
<shevy> hmmmm
<shevy> I wonder how you compiled so quickly though :\ :/
classix has quit [Remote host closed the connection]
rton has left #ruby [#ruby]
rton has joined #ruby
thone has joined #ruby
rton has left #ruby [#ruby]
ChristianS has quit [Quit: I shouldn't really be here - dircproxy 1.0.5]
Heero has quit [Quit: Leaving]
ChristianS has joined #ruby
acarpe has joined #ruby
Sharetel has joined #ruby
lewix has joined #ruby
icco has quit [Read error: Operation timed out]
thone_ has quit [Ping timeout: 245 seconds]
soulofpeace has joined #ruby
21WAAGGGR has joined #ruby
codecop has quit [Remote host closed the connection]
sambao21 has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
<Sharetel> Hi, I wonder if this is the appropriate forum. I get the Redmine on localhost:3000 after running this: ruby script/rails server webrick -e production. Is there any other way to run Redmine?
girija has quit [Ping timeout: 264 seconds]
icco has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
<tobiasvl> Sharetel: the appropriate forum is #rubyonrails
locriani has joined #ruby
<Sharetel> tobiasvl: Thankyou.
mmitchell has quit [Remote host closed the connection]
freeayu has joined #ruby
lewix has quit [Ping timeout: 272 seconds]
smatic has joined #ruby
iamjarvo has joined #ruby
classix has joined #ruby
<smatic> hello all
mercwithamouth has joined #ruby
smatic has quit [Remote host closed the connection]
21WAAGGGR is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
Zelest has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
yekta has joined #ruby
dkannan has quit [Quit: dkannan]
browndawg1 has joined #ruby
Zelest has joined #ruby
sleetdrop has quit [Ping timeout: 252 seconds]
jtharris has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
icco has quit [Read error: Operation timed out]
browndawg has quit [Ping timeout: 272 seconds]
bulters has quit [Read error: Connection reset by peer]
synthetix has joined #ruby
jonathanwallace has joined #ruby
icco has joined #ruby
bhaarat has joined #ruby
thams has quit [Quit: thams]
tommyvyo has joined #ruby
chrishunt has joined #ruby
sethetter has left #ruby [#ruby]
whoughton has joined #ruby
uris has joined #ruby
Macaveli has left #ruby ["Leaving"]
dmiller has joined #ruby
smatic has joined #ruby
petrjanda_ has joined #ruby
<whoughton> looking for some help with zlib
<whoughton> I'm only getting a subset of my data back when inflating something
MrZYX|off is now known as MrZYX
adamjleonard has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
axl_ has joined #ruby
NiteRain has joined #ruby
mikepack has quit [Remote host closed the connection]
nateberkopec has joined #ruby
petrjanda has quit [Ping timeout: 240 seconds]
petrjanda_ is now known as petrjanda
pkondzior___ has joined #ruby
petrjanda_ has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
snooc has joined #ruby
osvico has quit []
xcv has joined #ruby
Matip has quit [Read error: Connection reset by peer]
alexdoom has quit [Changing host]
alexdoom has joined #ruby
Matip has joined #ruby
gaahrdner has joined #ruby
petrjanda has quit [Ping timeout: 272 seconds]
petrjanda_ is now known as petrjanda
freeayu has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
echevemaster has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
Zai00 has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
netto has quit [Quit: netto]
mklappstuhl_ has quit [Ping timeout: 245 seconds]
skroon has joined #ruby
Neomex has quit [Client Quit]
icco has joined #ruby
unstable has quit [Ping timeout: 245 seconds]
Vainoharhainen has joined #ruby
unstable has joined #ruby
Sharetel has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0.1/20130409194949]]
hamakn has joined #ruby
nari has quit [Ping timeout: 256 seconds]
acarpe has quit [Quit: acarpe]
acarpe has joined #ruby
Zai00 has joined #ruby
yshh has joined #ruby
andikr has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 264 seconds]
tobyo2 has joined #ruby
skum has quit [Read error: Operation timed out]
rdark has joined #ruby
mklappstuhl has joined #ruby
hamakn has quit [Ping timeout: 255 seconds]
iamjarvo has quit [Quit: Leaving.]
k610 has quit [Ping timeout: 260 seconds]
bulters has joined #ruby
jlebrech has quit [Read error: Connection reset by peer]
puppeh has quit [Remote host closed the connection]
jlebrech has joined #ruby
alx- has joined #ruby
iamjarvo has joined #ruby
bean__ has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
iml has quit [Remote host closed the connection]
jlebrech has quit [Read error: Connection reset by peer]
jlebrech has joined #ruby
divout has quit [Remote host closed the connection]
wsterling has joined #ruby
martinklepsch has joined #ruby
icco has quit [Read error: Operation timed out]
ZamZoomes has joined #ruby
jlebrech has quit [Read error: Connection reset by peer]
jlebrech has joined #ruby
ZamZoomes has left #ruby [#ruby]
tobyo2 has quit [Ping timeout: 256 seconds]
interactionjaxsn has joined #ruby
Criztian has joined #ruby
miso1337 has joined #ruby
icco has joined #ruby
etcetera has joined #ruby
vlad_starkov has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
_nitti has quit [Read error: No route to host]
_nitti has joined #ruby
automan1 has joined #ruby
Vivekananda has joined #ruby
jandres has quit [Ping timeout: 272 seconds]
wsterling has quit [Read error: Connection reset by peer]
puppeh has joined #ruby
netto has joined #ruby
<bhaarat> array = "this is test".shuffle(/ /) produces ["this", "is", "shuffle"]. How can I instead get [["this"], ["is"], ["shuffle"]]
robbyoconnor has quit [Ping timeout: 248 seconds]
sambao21 has joined #ruby
whoughton has left #ruby [#ruby]
wsterling has joined #ruby
<MrZYX> why?
chrishunt has quit [Read error: Connection reset by peer]
tagrudev has quit [Remote host closed the connection]
<shevy> bhaarat try .map
jlast has joined #ruby
<MrZYX> an array of one element arrays seems useless to me
<bhaarat> I wanted to shuffle each element of that array so "this" would be like "isht". I guess I can split each element (string) and shuffle it to
<shevy> bhaarat, array = "this is test".split(' ').map {|x| [x]} # => [["this"], ["is"], ["test"]]
f0ster has quit [Read error: Connection reset by peer]
aganov has quit [Quit: aganov]
<bhaarat> ahh
dmiller has quit [Remote host closed the connection]
<lectrick> bhaarat: yeah man. what's the point of an array of arrays of 1 element? I can't think of a use case for that
Deckl has quit [Ping timeout: 272 seconds]
cmarques has quit [Ping timeout: 256 seconds]
<bhaarat> ok, makes sense
wagster has joined #ruby
cmarques has joined #ruby
wsterling has quit [Read error: Connection reset by peer]
<MrZYX> "this is a test".split(' ').map {|word| word.split('').shuffle }
lapidary has joined #ruby
wsterling has joined #ruby
puppeh has quit [Remote host closed the connection]
f0ster has joined #ruby
<lapidary> I want to install rmagick but I don't have MagickWand.h Does anyone know what I need to apt-get?
<MrZYX> "this is a test".split.map {|word| word.chars.shuffle } actually
puppeh has joined #ruby
momomomomo has joined #ruby
divout has joined #ruby
<shevy> lapidary dev package of imagemagick has all .h header files
yshh has quit [Read error: Connection reset by peer]
<shevy> no idea how debian names it
puppeh has quit [Remote host closed the connection]
chrishunt has joined #ruby
ffranz has joined #ruby
<bhaarat> "this is a test".split(/ /).inject([]) {|result, element| result << element.split(//).shuffle.join("")}
<bhaarat> gotta love ruby
yshh has joined #ruby
<shevy> latest source of imagemagick is always here ftp://ftp.imagemagick.org/pub/ImageMagick/
icco has quit [Read error: Operation timed out]
ph^ has joined #ruby
<wagster> try sudo apt-get install imagemagick libmagickcore-dev
kayloos has quit [Remote host closed the connection]
idletom has joined #ruby
<MrZYX> bhaarat: "this is a test".split.map {|word| word.chars.shuffle}.join
<lapidary> shevy: Thank you
gaahrdner has quit [Read error: Connection reset by peer]
elux has joined #ruby
gaahrdner has joined #ruby
johnnyfuchs has joined #ruby
ikst has joined #ruby
vlad_starkov has joined #ruby
nari has joined #ruby
ikst has quit [Remote host closed the connection]
ikst has joined #ruby
icco has joined #ruby
huoxito has joined #ruby
smigg has joined #ruby
randomautomator has joined #ruby
notVert has quit [Remote host closed the connection]
newUser1234 has joined #ruby
mythical has joined #ruby
_nitti_ has joined #ruby
generalissimo has joined #ruby
ph^ has quit [Ping timeout: 272 seconds]
ioNull has joined #ruby
Vert has joined #ruby
_bart has quit [Read error: Connection reset by peer]
_nitti__ has joined #ruby
_nitti_ has quit [Read error: Connection reset by peer]
vikhyat has quit [Remote host closed the connection]
headius has joined #ruby
juarlex has joined #ruby
btaitelb has joined #ruby
_nitti has quit [Read error: No route to host]
jacktrick has joined #ruby
forlin has quit [Remote host closed the connection]
_nitti has joined #ruby
RORgasm has joined #ruby
realDAB has joined #ruby
baroquebobcat has joined #ruby
<riginding> exit
<lectrick> MrZYX: apparently chars on a string returns an enumerator and I can't just shuffle that directly
_nitti__ has quit [Ping timeout: 252 seconds]
<MrZYX> in 2.0 you can :P
Spooner has quit [Remote host closed the connection]
dmiller has joined #ruby
<lectrick> figured. lol
<lectrick> not on it yet
<lectrick> working on it
<lectrick> still... very nice
buscon has quit [Quit: Leaving]
shrnk has quit [Quit: Leaving]
netto has quit [Quit: netto]
icco has quit [Ping timeout: 252 seconds]
netto has joined #ruby
yekta has quit [Quit: yekta]
etcetera has quit []
icco has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
k610 has joined #ruby
mmitchell has joined #ruby
Deckl has joined #ruby
Gabri has joined #ruby
wesside has joined #ruby
mythical_ has joined #ruby
nari has quit [Ping timeout: 272 seconds]
LaPetiteFromage has left #ruby [#ruby]
jlast has quit [Read error: Operation timed out]
GeissT has quit [Quit: MillBroChat AdIRC User]
jlast_ has joined #ruby
enebo has joined #ruby
<Hanmac1> ahh stupid testunit! ... the with ruby itself shipped version is to dump
miso1337 has quit [Quit: afk]
k610 has quit [Ping timeout: 252 seconds]
kimteq has joined #ruby
mythical has quit [Ping timeout: 240 seconds]
xcv has quit [Remote host closed the connection]
netto has quit [Quit: netto]
mythical_ has quit [Ping timeout: 252 seconds]
Asher has quit [Quit: Leaving.]
xcv has joined #ruby
arya_ has joined #ruby
jprovazn is now known as jprovazn_afk
danneu has joined #ruby
dr_bob has quit [Ping timeout: 272 seconds]
arya has quit [Ping timeout: 248 seconds]
alex__c2022 has joined #ruby
ekampf has quit [Ping timeout: 240 seconds]
soulofpeace has quit [Ping timeout: 245 seconds]
tk_ has quit [Quit: ばいばい]
pduin has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
jlast_ has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 246 seconds]
ananthakumaran has joined #ruby
Evixion has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
ekampf has joined #ruby
mishy has joined #ruby
icco has joined #ruby
nezumi has joined #ruby
CARL0S has joined #ruby
mikepack has joined #ruby
b0oh has quit [Quit: Leaving.]
passerine has quit [Quit: Ex-Chat]
thatRD has quit [Quit: thatRD]
thatRD has joined #ruby
thatRD has quit [Client Quit]
bean__ has quit [Ping timeout: 252 seconds]
mando has joined #ruby
v0n has joined #ruby
wreckimnaked has quit [Quit: WeeChat 0.3.8]
yekta has joined #ruby
thatRD has joined #ruby
chussenot has quit [Quit: chussenot]
kpshek has quit []
rouss has joined #ruby
petrjanda has quit [Remote host closed the connection]
rouss is now known as Guest15044
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
petrjanda has joined #ruby
eykosioux has quit [Remote host closed the connection]
bean__ has joined #ruby
bothra has joined #ruby
Hanmac1 has joined #ruby
chussenot has joined #ruby
rippa has joined #ruby
jandres has joined #ruby
icco has quit [Ping timeout: 252 seconds]
bulters has quit [Ping timeout: 264 seconds]
Igneous_ is now known as Igneous
threesome has quit [Ping timeout: 272 seconds]
icco has joined #ruby
psyprus has quit [Changing host]
psyprus has joined #ruby
__himself__ has joined #ruby
kpshek has joined #ruby
niklasb has joined #ruby
__himself__ has quit [Quit: __himself__]
ckrailo has joined #ruby
dark_knight has joined #ruby
matchaw_ has joined #ruby
<dark_knight> Does .clone() exist in Ruby?
chrishough has joined #ruby
choobie has joined #ruby
Asher has joined #ruby
matchaw has quit [Ping timeout: 272 seconds]
<injekt> yes
discopig has quit [Quit: discopig]
nkr has quit [Ping timeout: 252 seconds]
netto has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
kornnflake has joined #ruby
kreantos has quit [Remote host closed the connection]
<dark_knight> injekt: Okay so would you agree with the way I have used it here: https://gist.github.com/anonymous/5405250#file-checkout-rb-L45
Banistergalaxy has quit [Read error: Connection reset by peer]
netto has quit [Client Quit]
spider-mario has joined #ruby
eykosioux has joined #ruby
pi3r has quit [Quit: Leaving]
<injekt> dark_knight: I don't know, your code is using a 'Product.find' method which doesn't exist anyway so I can't tell if this is a normal class or attached to a database
kornnflake has quit [Client Quit]
girija has joined #ruby
jeevan_ullas has joined #ruby
wallclockbuilder has joined #ruby
frem has joined #ruby
frem has quit [Excess Flood]
BizarreCake has quit [Ping timeout: 240 seconds]
skroon has quit [Read error: Operation timed out]
<dark_knight> injekt
mjago has joined #ruby
v0n has quit [Read error: Connection reset by peer]
tomsthumb has quit [Quit: Leaving.]
<dark_knight> injekt: Thats because I forgot to add `def self.find item [item] end end
v0n has joined #ruby
Banistergalaxy has joined #ruby
dhruvasagar has joined #ruby
carloslopes has quit [Remote host closed the connection]
<injekt> dark_knight: eh, so find returns an array?
sdavis has joined #ruby
frem has joined #ruby
<bean__> well, scan_items doesn't know about product
<bean__> i don't think
<injekt> bean__: about item you mean
<bean__> both
<injekt> eh production is in the condition
<injekt> product*
<injekt> only item doesn't exist
<bean__> no
<bean__> how would scan_items know about either item or product
<bean__> they're both out of scope
<injekt> uh
<injekt> no
kornnflake has joined #ruby
<injekt> oh
<bean__> are you seeing what I'm meaning?
<injekt> I read it as 'product = Product.find(item)'
Eiam has quit [Ping timeout: 264 seconds]
<bean__> no ==
<injekt> yeah haha my bad
dustint has quit [Ping timeout: 255 seconds]
<bean__> :p
icco has quit [Read error: Operation timed out]
momomomomo has quit [Ping timeout: 272 seconds]
mneorr has quit [Remote host closed the connection]
momomomomo has joined #ruby
BizarreCake has joined #ruby
jbueza has joined #ruby
icco has joined #ruby
freakazoid0223 has joined #ruby
hogeo has joined #ruby
apeiros has joined #ruby
baroquebobcat has joined #ruby
oneirophren has joined #ruby
whowantstolivefo has quit [Remote host closed the connection]
Czupa has joined #ruby
mneorr has joined #ruby
whowantstolivefo has joined #ruby
axl_ has quit [Quit: axl_]
markalanevans has quit [Ping timeout: 252 seconds]
vikhyat has joined #ruby
soulofpeace has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
uris has quit [Ping timeout: 272 seconds]
uncleBob has joined #ruby
wolcanus has joined #ruby
centipedefarmer has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
tomsthumb has joined #ruby
<uncleBob> Greetings from http://peggy.torservers.net..
wallclockbuilder has quit [Remote host closed the connection]
JMcAfreak has joined #ruby
balishag has joined #ruby
Xeli has quit [Ping timeout: 264 seconds]
axl_ has joined #ruby
peterhellberg has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
browndawg1 has quit [Ping timeout: 272 seconds]
skattyadz has quit [Quit: skattyadz]
ixx has quit [Ping timeout: 252 seconds]
joast has quit [Quit: Leaving.]
icco has quit [Read error: Operation timed out]
mishy has quit [Quit: mishy]
basex has joined #ruby
<bean__> can't say that I care, uncleBob
icco has joined #ruby
angusiguess has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
joast has joined #ruby
El_Diablo has joined #ruby
jean-louis has quit [Remote host closed the connection]
tyl has joined #ruby
Neomex has joined #ruby
jacktrick has quit [Quit: Leaving]
uris has joined #ruby
stkowski has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
petrjanda has quit [Quit: petrjanda]
j^2 has joined #ruby
evenix has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
Neomex has quit [Client Quit]
dhruvasagar has joined #ruby
urbanmonk has joined #ruby
ixx has joined #ruby
lkba has joined #ruby
ixx is now known as Guest99185
atno has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
alup has quit [Quit: Leaving]
mityaz has joined #ruby
thatRD has quit [Quit: thatRD]
mercwithamouth has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
senayar has quit [Remote host closed the connection]
SCommette has joined #ruby
jlebrech has quit [Quit: Leaving]
cyclic has quit [Quit: Page closed]
filipe has quit [Remote host closed the connection]
uris has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
lewix has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
pskosinski has joined #ruby
lewix has joined #ruby
codenapper has joined #ruby
mmitchell has quit [Remote host closed the connection]
niceguyjames has quit [Ping timeout: 252 seconds]
mikeg has joined #ruby
markalanevans has joined #ruby
icco has joined #ruby
sambao21 has quit [Ping timeout: 256 seconds]
lewix_ has joined #ruby
uncleBob is now known as _KGBot_
niceguyjames has joined #ruby
lewix has quit [Read error: Connection reset by peer]
<_KGBot_> Greetings from http://uncleBob.nl
browndawg has joined #ruby
mythical has joined #ruby
<_KGBot_> !help
sambao21 has joined #ruby
io_syl has joined #ruby
<_KGBot_> !1337 is So boring..
lmf40 has quit [Remote host closed the connection]
<_KGBot_> !1337 is So So boring..
<_KGBot_> !1337 is So So So boring..
threesome has joined #ruby
vikhyat_ has joined #ruby
<_KGBot_> Ladies & Gentlemen.. Welcome #Abort..
hdl has quit [Quit: Leaving.]
codecop has joined #ruby
<bean__> _KGBot_: spamming
iamvery has joined #ruby
tvw has quit []
<_KGBot_> !hello
<MrZYX> apeiros: ^ kick pls?
<bean__> stop
<_KGBot_> *** STOP ***
<Hanmac1> ping apeiros
_KGBot_ was kicked from #ruby by apeiros [_KGBot_]
<apeiros> of course
<MrZYX> thx
<apeiros> thx for notifying me
iamjarvo has quit [Quit: Leaving.]
mythical has quit [Ping timeout: 240 seconds]
vikhyat has quit [Ping timeout: 245 seconds]
DonRichie has joined #ruby
freezey has joined #ruby
mmitchell has joined #ruby
clocKwize has quit [Quit: clocKwize]
dhruvasagar has joined #ruby
uncleBob__ has joined #ruby
carloslopes has joined #ruby
pioz has quit [Ping timeout: 264 seconds]
uncleBob__ is now known as _KGBot_
rakl has joined #ruby
keymone has joined #ruby
balishag has quit [Read error: Connection reset by peer]
balishag has joined #ruby
camilasan has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
bradhe has joined #ruby
uris has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
dmiller has quit [Remote host closed the connection]
chrisja has joined #ruby
icco has joined #ruby
atno has joined #ruby
_KGBot_ has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
camilasan has quit [Remote host closed the connection]
markalanevans has quit [Quit: markalanevans]
markalanevans has joined #ruby
acarpe has quit [Ping timeout: 252 seconds]
markalanevans has quit [Remote host closed the connection]
markalanevans has joined #ruby
cloke has joined #ruby
markalanevans has quit [Client Quit]
Xlab has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
mythical has joined #ruby
mneorr has quit [Remote host closed the connection]
mythical has quit [Client Quit]
chussenot_ has joined #ruby
dark_knight has quit [Ping timeout: 245 seconds]
netto has joined #ruby
mnaser has quit [Ping timeout: 245 seconds]
zeade has joined #ruby
skattyadz has joined #ruby
chussenot has quit [Ping timeout: 252 seconds]
chussenot_ is now known as chussenot
<injekt> KAPOW
<injekt> apeiros saves the day
benweint has joined #ruby
robbyoconnor has joined #ruby
icco has quit [Read error: Operation timed out]
timonv has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
helvete has quit [Quit: Linkinus - http://linkinus.com]
lkba has quit [Ping timeout: 264 seconds]
jamie_ca_ has joined #ruby
`brendan has joined #ruby
icco has joined #ruby
jerius has quit []
skattyadz has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
r0bby has joined #ruby
mythical has joined #ruby
aaronmcadam has quit [Ping timeout: 248 seconds]
ekampf has quit [Quit: ekampf]
skattyadz has joined #ruby
slainer68 has quit [Remote host closed the connection]
jdunck has joined #ruby
skattyadz has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 245 seconds]
skattyadz has joined #ruby
cmar has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
r0bby has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
mythical has quit [Quit: mythical]
kpshek has quit []
c0rn has joined #ruby
kelabot has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
lapidary has left #ruby [#ruby]
timmow_ has joined #ruby
Arzaga has joined #ruby
s2013 has joined #ruby
forlin has joined #ruby
mythical has joined #ruby
soulofpeace has quit [Ping timeout: 276 seconds]
c0rn_ has joined #ruby
automan1 has quit [Remote host closed the connection]
mythical has quit [Client Quit]
Eiam has joined #ruby
tylersmith has joined #ruby
alexyz has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
alexyz has joined #ruby
tvw has joined #ruby
chussenot has quit [Ping timeout: 240 seconds]
timmow_ has quit [Ping timeout: 252 seconds]
c0rn has quit [Ping timeout: 252 seconds]
c0rn_ is now known as c0rn
Uranio has joined #ruby
tomzx_mac has joined #ruby
icco has quit [Read error: Operation timed out]
mythical has joined #ruby
skattyadz has quit [Ping timeout: 245 seconds]
icco has joined #ruby
mythical has quit [Client Quit]
mercwithamouth has joined #ruby
gyre007 has joined #ruby
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
breakingthings has quit []
kamsky has joined #ruby
BrunoAlano has joined #ruby
r0bby_ has quit [Ping timeout: 245 seconds]
skattyadz has joined #ruby
gyre008 has joined #ruby
<kamsky> hey guys, got a question, I need to write a 3d printing program to manage the printer. The drivers are written in C++, so I was wondering if it would be possible somehow interact with them so I can build the Program on top of it, GUI included
<csmrfx> socket?
zastern has joined #ruby
iamjarvo has joined #ruby
alx- has quit [Quit: alx-]
bradhe has quit [Remote host closed the connection]
mneorr has joined #ruby
<kamsky> socket? I mean, I got access to the dll's and the functions to manipulate the printer, but I dont know if it's possible to call/use this function in Ruby
girija has quit [Ping timeout: 245 seconds]
madb055 has quit [Ping timeout: 272 seconds]
jerius has joined #ruby
johnjohnson has joined #ruby
GeorgesLeYeti has quit [Quit: Quitte]
JMcAfreak has quit [Ping timeout: 264 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
ebobby has joined #ruby
skattyadz has quit [Ping timeout: 252 seconds]
_maes_ has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
c0rn has quit [Ping timeout: 256 seconds]
BrunoAlano has quit []
icco has quit [Read error: Operation timed out]
thams has joined #ruby
kpshek has joined #ruby
<wmoxam> kamsky: look at FFI
<Hanmac1> wmoxam: you are wrong FFI does not work with C++
<Hanmac1> kamsky: you can write an C++ Extension for Ruby
wsterling has quit [Remote host closed the connection]
c0rn has joined #ruby
sylvinus has quit [Quit: sylvinus]
bradhe has joined #ruby
smatic has quit [Quit: Ex-Chat]
carloslopes has quit [Read error: Connection reset by peer]
jaynic1 has joined #ruby
smatic has joined #ruby
carloslopes has joined #ruby
skattyadz has quit [Ping timeout: 260 seconds]
<wmoxam> Hanmac1: right
<wmoxam> Hanmac1: so, Rice I guess?
icco has joined #ruby
kenneth has quit [Quit: kenneth]
smatic has quit [Client Quit]
<Hanmac1> wmoxam: i dont like rice, i prefer to write it myself
smatic has joined #ruby
<wmoxam> rb++ is also an option
thatRD has joined #ruby
_maes_ has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
yacks has quit [Ping timeout: 245 seconds]
reytt has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
quazimodo has joined #ruby
smatic has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #ruby
momomomomo_ has joined #ruby
skattyadz has joined #ruby
Chinorro has quit [Quit: Leaving]
unflores has quit [Quit: unflores]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
chussenot has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
adamjleonard has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
oneirophren has joined #ruby
nanothief has quit [Read error: Connection reset by peer]
yxhuvud2 has quit [Ping timeout: 256 seconds]
DrCode has quit [Remote host closed the connection]
<kamsky> i dont know if that's what you guys, Hanmac1 & wmoxam, were refering to
<Hanmac1> kamsky: yes, the problem is that it may be a bit outdated so some functions are named different
skattyadz has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
snooc has quit [Ping timeout: 245 seconds]
mockra has joined #ruby
<kamsky> Hanmac1: I see, any newer guide/tuto you know?
DrCode has joined #ruby
<kamsky> or some examples to look at
will1000 has joined #ruby
csaunders has joined #ruby
<Hanmac1> hm i dont think so
chrishough has quit [Quit: chrishough]
skattyadz has joined #ruby
icco has quit [Read error: Operation timed out]
<kamsky> so what's the difference between that thing I posted and what wmoxam mentioned (rice and FFI)
adamjleonard has joined #ruby
<kamsky> what I probably need is to be able to interact with the .dll that handles the motor
DrCode has quit [Excess Flood]
lewix_ has quit [Remote host closed the connection]
icco has joined #ruby
snooc has joined #ruby
will1000 has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 276 seconds]
jonahR has joined #ruby
<Hanmac1> kamsky: FFI cant do that want you want because FFI only works with C libs not with C++ ones, rice is some kind of generator but i dont like it because i prefer to write it myself
kornnflake has quit [Quit: ZNC - http://znc.in]
Arzaga has quit [Quit: Computer has gone to sleep.]
mrsolo has joined #ruby
hukl has joined #ruby
wsterling has joined #ruby
pioz has joined #ruby
DrCode has joined #ruby
<kamsky> Hanmac1: gotcha, I'd have to double check if the lib was written in C or in C++, im not sure
arya_ has joined #ruby
<guardian> apeiros: https://bugs.ruby-lang.org/issues/8283 got rejected by the commit author… based on a test against ruby 1.8.7… I don't understand why he didn't test against 1.9.3
sylvinus has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
<guardian> apeiros: he doesn't seem to really care anyways so I don't think I'll make more efforts
<Hanmac1> kamsky: normaly you see it at the Header files
DrCode has quit [Remote host closed the connection]
Matip has quit [Ping timeout: 252 seconds]
Kruppe has joined #ruby
DrCode has joined #ruby
rakl has quit [Quit: sleeping]
<kamsky> Hanmac1: i dont have access to the source code, just the .dll. What I know is that the current program is written in C++ and calls the .dll like this:
JohnBat26 has quit [Ping timeout: 276 seconds]
<kamsky> static int (*NmcInit)(char*,unsigned int) = reinterpret_cast<int(*)(char*,unsigned int)>(DLL::loadFunction("NMCLIB04.dll","NmcInit"));
CARL0S has quit []
timmow has quit [Ping timeout: 252 seconds]
Matip has joined #ruby
<Hanmac1> ugh ...
LS\MFT has joined #ruby
Ontolog has joined #ruby
<kamsky> that means.. bad.. good...??.. hehehe
carloslopes has quit [Ping timeout: 245 seconds]
idkazuma has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
bean__ has quit [Quit: Computer has gone to sleep.]
lmf40 has joined #ruby
chandankumar has joined #ruby
chrishough has joined #ruby
swex has joined #ruby
<Hanmac1> kamsky: i tihnk FFI or DL can be used ... (you lib looks like an C lib) but i didnt use FFI or DL before
icco has quit [Read error: Operation timed out]
generalissimo has quit [Remote host closed the connection]
dustint has joined #ruby
momomomomo has joined #ruby
dmiller has joined #ruby
sepp2k has joined #ruby
kirun has joined #ruby
Zai00 has quit [Quit: Zai00]
Matip has quit [Ping timeout: 245 seconds]
mythical has joined #ruby
cpruitt has joined #ruby
<kamsky> Hanmac1: ok thanks, I'll take a look at it.. I havent even decided if using Ruby for this project is a good solution, I wanted to build a nice looking GUI, but ruby options kinda suck on that part
icco has joined #ruby
dhruvasagar has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
kenneth has joined #ruby
bitZero__ has quit [Ping timeout: 260 seconds]
<Hanmac1> you can have nice GUI with ruby too
alvaro_o has joined #ruby
rakl has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
vise890 has joined #ruby
vise890 has quit [Max SendQ exceeded]
DrCode has quit [Ping timeout: 276 seconds]
vise890 has joined #ruby
DrCode_ has joined #ruby
DrCode_ is now known as DrCode
dmiller has quit [Ping timeout: 260 seconds]
gaahrdner has quit [Remote host closed the connection]
marcdel has joined #ruby
<apeiros> guardian: I'll take a look later this day
<kamsky> I've checked Shoes and FxRuby I think, and I dunno.. I mean, I was looking for something Ribbon like
<apeiros> I think the case **/.dotdir should be considered separately
eykosioux has quit [Remote host closed the connection]
jandres has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<apeiros> since there the ** doesn't need to match the .dotdir, it's in the glob explicitly. so FNM_DOTMATCH should not influence the match
fermion has quit [Remote host closed the connection]
banjara has quit [Ping timeout: 264 seconds]
<Hanmac1> kamsky: there is ruby-gnome that uses GTK or wxRuby (or rwx) ... the last ones uses wxWidgets with also have Ribbon (maybe ... its not finished in rwx)
a_a_g has joined #ruby
carloslopes has joined #ruby
<kamsky> would this work in Win?
dmiller has joined #ruby
<Hanmac1> kamsky: i dont know ... wxRuby has gems for windows .. but i didnt test them
jeebster has joined #ruby
banjara has joined #ruby
hasse has quit [Ping timeout: 245 seconds]
<kamsky> k, I really appreciate your help Hanmac1
icco has quit [Read error: Operation timed out]
mythical has quit [Quit: mythical]
mahmoudimus has joined #ruby
Matip has joined #ruby
_carloslopes has joined #ruby
milan has joined #ruby
workmad3 has joined #ruby
sambao21 has joined #ruby
BinaryMaster has joined #ruby
fermion has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
reytt has quit [Quit: Leaving...]
carloslopes has quit [Ping timeout: 245 seconds]
El_Diablo has quit [Read error: Connection reset by peer]
icco has joined #ruby
<guardian> apeiros: yep we'll see
El_Diablo has joined #ruby
rdark has quit [Quit: leaving]
milan has left #ruby [#ruby]
<BinaryMaster> Question: if I have a hash say h = { :test1 => 'happy', :test2 => 'fun', :test3 => 'times' } and I have a variable x = 'test2' how can I access the has with x? I have tried h[x] but that doesn't seem to work
chussenot has quit [Quit: chussenot]
<apeiros> BinaryMaster: 'test2' is a string, :test2 is a symbol
generalissimo has joined #ruby
<apeiros> those are two different keys
<apeiros> h[x.to_sym]
alexyz has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
prstat has joined #ruby
<BinaryMaster> awesome can I use sub! on the string first and chain it to to_sym ?
alexyz has joined #ruby
<apeiros> don't chain on ! methods
<apeiros> they can return nil
<MrZYX> just use the non-bang version
<apeiros> but you can use sub and since that always returns a string, you can chain to_sym on it
ChewieBe1rdy has quit [Quit: Lost terminal]
etcetera has joined #ruby
<BinaryMaster> aaaahhh thank you for that
<BinaryMaster> I had not read that about the bang versions of functions yet
<BinaryMaster> thank you again
arya_ has joined #ruby
<apeiros> methods, not functions ;-)
chussenot has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
danneu has quit [Quit: WeeChat 0.3.8]
<BinaryMaster> lol right sorry
<BinaryMaster> I work with a bunch of php developers their bad habits have rubbed off on me
jonahR has left #ruby [#ruby]
retry has joined #ruby
rippa has joined #ruby
<BinaryMaster> can you have variable named variables?
jonathanwallace has joined #ruby
<BinaryMaster> I haven't found a straight answer to that yet
<MrZYX> there's no need for that in ruby
<MrZYX> provide a useful example for it
mayankkohaley has joined #ruby
<BinaryMaster> I'm looping through a hash I want to create objects based on the hash name
<MrZYX> you mean the keys?
<apeiros> BinaryMaster: "variably named variables" equals "abusing local variables as a hash"
<BinaryMaster> right
<BinaryMaster> lol
<apeiros> and is detrimental to performance
atno has quit [Read error: Connection reset by peer]
<apeiros> hence: no.
<BinaryMaster> okay
vise890 has quit [Quit: Leaving]
<apeiros> you can do it with non-local variables (@ivars, @@cvars, $globals, Constants)
<apeiros> but there too, use a hash when you want a hash.
<BinaryMaster> so rework the logic and make it work without them
<MrZYX> hash.each do |key, value| end
ebobby has left #ruby [#ruby]
_carloslopes has quit [Ping timeout: 256 seconds]
alexyz has quit [Read error: Connection reset by peer]
atno has joined #ruby
alexyz has joined #ruby
<MrZYX> obj = Object.const_get(key).new
mercwithamouth has quit [Ping timeout: 264 seconds]
arya_ has quit [Disconnected by services]
<MrZYX> or what do you want?
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
lunarjar has quit [Quit: Bye]
icco has quit [Read error: Operation timed out]
lunarjar has joined #ruby
DrCode_ has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Quit: momomomomo]
Ripp__ has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
etcetera has quit []
ferdev has quit [Quit: ferdev]
DrCode has quit [Ping timeout: 276 seconds]
axl_ has quit [Quit: axl_]
<Hanmac1> bk
chussenot has quit [Quit: chussenot]
alvaro_o has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
<Hanmac1> BinaryMaster: did you know that you can store the Class itself inside the Hash ?
DrCode_ is now known as DrCode
BizarreCake has quit [Quit: Leaving]
icco has joined #ruby
chussenot has joined #ruby
mikepack has quit [Remote host closed the connection]
anderse has joined #ruby
chussenot has quit [Client Quit]
Uranio has quit [Quit: while you reading this, a kitty dies]
skattyadz has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
bluOxigen has joined #ruby
JesseH has joined #ruby
v0n has joined #ruby
dmiller has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
MohamedAlaa has joined #ruby
tevio has quit [Remote host closed the connection]
lewix has joined #ruby
ryanjh has joined #ruby
ryanjh has quit [Max SendQ exceeded]
sambao21 has joined #ruby
ryanjh has joined #ruby
ryanjh has quit [Max SendQ exceeded]
acarpe has joined #ruby
ryanjh has joined #ruby
ryanjh has quit [Max SendQ exceeded]
ryanjh has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
axl_ has joined #ruby
rupee has joined #ruby
zastern has quit [Remote host closed the connection]
dyeske has quit [Ping timeout: 260 seconds]
icco has quit [Read error: Operation timed out]
kappaseven has joined #ruby
jrendell has joined #ruby
dougsko has joined #ruby
icco has joined #ruby
megha has joined #ruby
El_Diablo has quit [Ping timeout: 245 seconds]
baba has quit [Ping timeout: 240 seconds]
<dougsko> is there a way to set the tcp window parameter using the socket class? i dont see anything related to tcp parmeters in the docs but it seems like it would be done in this class somehow
dyeske has joined #ruby
JonnieCache has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
Criztian has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
jrendell has quit [Ping timeout: 252 seconds]
troessner has quit [Ping timeout: 240 seconds]
danneu has joined #ruby
browndawg has quit [Quit: Leaving.]
atno has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
bradleyprice has joined #ruby
zastern has joined #ruby
chxane has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
anderse has quit [Quit: anderse]
<spike|spiegel> dougsko: there is no way to directly control tcp window size... set SO_SNDBUF or SO_RCVBUF sockopts to hint the networking stack
dankest has joined #ruby
<spike|spiegel> I mean it's not just ruby.
sayan has joined #ruby
mikepack has joined #ruby
icco has quit [Read error: Operation timed out]
<dougsko> ah ok, thats pretty much what i was looking for
<dougsko> thanks!
Etros has joined #ruby
etcetera has joined #ruby
pagios has joined #ruby
Etros has left #ruby [#ruby]
mechcozmo has joined #ruby
<jeebster> anyone have suggestions for free spelling/dictionary suggestion APIs?
Arzaga has joined #ruby
icco has joined #ruby
browndawg has left #ruby [#ruby]
carloslopes has joined #ruby
<Eiam> os x has a built in one your could query
<Eiam> but you'd need a way to talk to objc from ruby =p (which exists of course)
acarpe has quit [Ping timeout: 264 seconds]
etcetera has quit []
gaahrdner has joined #ruby
thams has quit [Ping timeout: 276 seconds]
atno has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ryanjh has quit [Quit: Textual IRC Client: www.textualapp.com]
<jaynic1> I've used aspell before, worked quite well
<jaynic1> and there is a ruby gem binding
acarpe has joined #ruby
cmar has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
kleinerdrache has joined #ruby
Skofo has joined #ruby
_carloslopes has joined #ruby
carloslopes has quit [Read error: Connection reset by peer]
<jeebster> jaynic1: preciate it, good sir
tonini has joined #ruby
brianstorti has joined #ruby
Criztian has joined #ruby
icco has quit [Read error: Operation timed out]
thams has joined #ruby
icco has joined #ruby
ferdev has joined #ruby
LS\MFT is now known as Camel`
tonini has quit [Remote host closed the connection]
dooleyburger has joined #ruby
xcv has quit [Ping timeout: 256 seconds]
synthetix has quit [Read error: Connection reset by peer]
bricker_ is now known as bricker
mercwithamouth has quit [Ping timeout: 245 seconds]
greenarrow has quit [Ping timeout: 245 seconds]
ekampf has joined #ruby
greenarrow has joined #ruby
jblack has quit [Ping timeout: 264 seconds]
oneirophren has joined #ruby
maycon has quit [Read error: Connection reset by peer]
timonv has joined #ruby
s2013 has quit []
kenneth has quit [Quit: kenneth]
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
adamjleonard has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
dogweather has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
icco has quit [Read error: Operation timed out]
musl has quit [Quit: WeeChat 0.4.0]
buibex has joined #ruby
kappaseven has left #ruby ["Leaving"]
musl has joined #ruby
yashshah has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
musl has quit [Client Quit]
fermion has quit [Quit: Computer has gone to sleep.]
buibex has quit [Remote host closed the connection]
tonini has joined #ruby
mando_ has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
icco has joined #ruby
kristofers has quit [Read error: Connection reset by peer]
mando_ has quit [Remote host closed the connection]
icco has left #ruby [#ruby]
mando has quit [Ping timeout: 240 seconds]
hashmal has quit [Remote host closed the connection]
Gues_____ has joined #ruby
kristofers has joined #ruby
fermion has joined #ruby
Gues_____ is now known as Guest65891
Guest65891 is now known as hashmal
JohnBat26 has joined #ruby
carlyle has joined #ruby
buibex has joined #ruby
buibex has quit [Remote host closed the connection]
baphled has joined #ruby
adamjleonard has joined #ruby
mando has joined #ruby
<sebastianb> I know there channel for that... but does anyone know how can I connect to a sinatra app (not deployed, just written) on a remote server?
<sebastianb> *there is*
<sebastianb> When I'm running it via 'ruby appname.rb' and trying to connect to it via browser I'm getting the "unable to connect (...)" error
<waxjar_> what do you mean?
ry4nn has joined #ruby
<sebastianb> like it's not available from wan
renanoronfle has joined #ruby
yann_ck has joined #ruby
sambao21 has joined #ruby
kristofers has quit [Read error: Connection reset by peer]
Elhu has quit [Quit: Computer has gone to sleep.]
fermion has quit [Quit: Computer has gone to sleep.]
_nitti has quit [Remote host closed the connection]
<sebastianb> waxjar_: what else do you need to know?
timmow has joined #ruby
kenneth has joined #ruby
<waxjar_> you're running the app on a remote machine?
bitZero__ has joined #ruby
<sebastianb> yup
kristofers has joined #ruby
<sebastianb> when I'm running it localy, it works fine
<sebastianb> but on a remote box it's not connecting
bradleyp_ has joined #ruby
<sebastianb> I'm guessing it works just from the same machine, maybe from lan
bradleyp_ has quit [Remote host closed the connection]
bradleyp_ has joined #ruby
<waxjar_> and you're connecting to it with the machine's ip?
<sebastianb> but I want to run it on a remote machine, to do some coding while I'm at work
<sebastianb> no, I was connecting to it from my local machine
brianstorti has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bradley__ has joined #ruby
Camel` has quit [Quit: Leaving]
bradleyprice has quit [Read error: Connection reset by peer]
Asher has joined #ruby
<waxjar_> yeah, i get that. but you're typing the machine's IP into the browser, not 0.0.0.0, right?
<jaynic1> sebastianb: If it's behind a router, you will probably have to setup some sort of port forwarding
<sebastianb> waxjar_: dude, plz
<jaynic1> assuming your not on the same network
chxane has joined #ruby
<sebastianb> of course I'm using the machine's IP
<waxjar_> lol. okay
johnnyfuchs1 has joined #ruby
<sebastianb> jaynic1: it's not behind the router, it's a vps
<sebastianb> any other thing works just fine, except webrick in sinatra ;)
<jaynic1> hmm
_nitti has joined #ruby
<waxjar_> well then it seems like you need to do some port forwarding yeah. or put nginx in front of it or something
bradleyprice has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
bean__ has joined #ruby
divout has quit [Quit: Leaving.]
bradleyprice has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
bradleyprice has joined #ruby
bradleyp_ has quit [Read error: Connection reset by peer]
johnnyfuchs has quit [Ping timeout: 264 seconds]
<sebastianb> I think it's bit of a overkill ;)
Ontolog_ has joined #ruby
<sebastianb> anyway, I have to test something, brb
<jaynic1> sebastianb: If connecting to the machine by ip:port didn't work, I would probably be in here asking the same question :)
tevio has joined #ruby
bradley__ has quit [Ping timeout: 245 seconds]
bradleyp_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
acarpe has quit [Quit: acarpe]
rupee has left #ruby ["Leaving"]
rupee has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest51793
Guest51793 has quit [Killed (cameron.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Banistergalaxy has quit [Ping timeout: 276 seconds]
Ontolog has quit [Ping timeout: 245 seconds]
bulters has joined #ruby
Banistergalaxy has joined #ruby
<Xeago> I knew it!
<sebastianb> ok, works great with that method:
eroc has joined #ruby
dmiller has quit [Remote host closed the connection]
<sebastianb> Thanks to the guy from sinatra channel :D
<sebastianb> (if anyone is interested)
acarpe has joined #ruby
<sebastianb> except it should be run with -o 0.0.0.0 argument
strmpnk has quit [Read error: Connection reset by peer]
bradleyprice has quit [Ping timeout: 248 seconds]
Elhu has joined #ruby
slainer68 has joined #ruby
forrest has joined #ruby
jtharris has joined #ruby
Elhu has quit [Client Quit]
geson has left #ruby ["Leaving."]
bulters has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby
icco has joined #ruby
etcetera has joined #ruby
indyrl has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
<jaynic1> Can anyone help with my Nokogiri installation problem? Gem installs fine with sudo, but since I'm using RVM I do want to use sudo, and the installation breaks when it can't find parser.h . I've tried virtually everything the internets has to offer
<jaynic1> on mountain lion
Astralum has joined #ruby
wolcanus has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
<Xeago> jaynic1: I believe you should not want to use sudo?
<sebastianb> jaynic1: can you show the log from installation?
<sebastianb> pastebin it or sth
<Xeago> in any case, I don't have experience with rvm #rvm knows more
<spike|spiegel> jaynic1: ummm you know you could just life the parser.bundle and generator.bundle from system install location and shove it in your unpacked gem?
<Xeago> when running it with sudo you are using root's shell
<spike|spiegel> s/life/lift/
<wagster> is your rvm a global install and installed just for you ?
<Xeago> which does not have rvm
ioNull has quit [Quit: Computer has gone to sleep.]
<sebastianb> jaynic1: btw, install gems with 'gem' command, not rvm (if that's not obvious :P)
<wagster> i mean or
<jaynic1> Xeago: i don't want to use sudo. I was just testing with a sudo gem install, since I couldnt install it just as the user
<Xeago> when using rvm, it is wrong to use sudo to install gems
<Xeago> as you don't want to install them into root's gems but yours (which is managed by rvm)
<MrZYX> jaynic1: sudo is not there to "fix" things. Only use it if you can explain why it wouldn't work otherwise
ph^ has joined #ruby
<jaynic1> I know, I said since I'm using rvm I do not want to use sudo
<wagster> if you installed rvm under sudo it will screw up the permissions of certain folders that are needed to install gems
<jaynic1> omg
<Xeago> jaynic1: #rvm is a better place to ask, they know their stuff :)
thatRD has quit [Quit: thatRD]
<sebastianb> but he's asking about gem installation
<jaynic1> i think ill ask there, :)
<sebastianb> not about rvm
<Xeago> problems look rvm related
<sebastianb> well, nope
_nitti has quit [Read error: No route to host]
eroc has left #ruby [#ruby]
<sebastianb> or maybe
_nitti has joined #ruby
<sebastianb> ;D
<jaynic1> im not sure where the problem lies, since it's a pretty long chain of dependencies
m8 has joined #ruby
Elhu has joined #ruby
shtirlic has quit [Read error: Operation timed out]
Niamkik has quit [Read error: Operation timed out]
adamholt has quit [Read error: Operation timed out]
bhaarat_ has joined #ruby
preller has quit [Read error: Operation timed out]
mellow80 has quit [Read error: Operation timed out]
<sebastianb> jaynic1: show us the log of installation
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
<jaynic1> 1 sec
Niamkik has joined #ruby
cjk101010 has quit [Read error: Operation timed out]
welandC has joined #ruby
cjk101010 has joined #ruby
petrjanda has joined #ruby
shtirlic has joined #ruby
<spike|spiegel> blame rails :)
adamholt has joined #ruby
welandB has quit [Ping timeout: 252 seconds]
icco has quit [Read error: Operation timed out]
classix has quit [Ping timeout: 245 seconds]
petrjanda_ has joined #ruby
bhaarat has quit [Ping timeout: 252 seconds]
alx- has joined #ruby
unstable has quit [Ping timeout: 264 seconds]
motto has joined #ruby
btaitelb has quit [Quit: btaitelb]
<Xeago> what does the mkmf.log file say?
<jaynic1> i have really tried everything I could find with info regarding this
<jaynic1> 1 sec
<jaynic1> not much more actually
niko__ has joined #ruby
<MrZYX> jaynic1: you are missing libxml dev headers (or they aren't in your default include path)
<MrZYX> no idea how to fix that on a mac
<jaynic1> :)
classix has joined #ruby
m8 has quit [Ping timeout: 245 seconds]
<sebastianb> brew install libxml2
<jaynic1> they must be around 'sudo gem install nokogiri' works great, so i know i have everything i need
petrjanda has quit [Ping timeout: 252 seconds]
petrjanda_ is now known as petrjanda
<sebastianb> ;P
<jaynic1> must be a path or permissions thing
<sebastianb> that might work
h8R has quit [Ping timeout: 245 seconds]
icco has joined #ruby
lmf40 has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
davetherat has quit [Read error: Connection reset by peer]
davetherat has joined #ruby
forlin has quit [Remote host closed the connection]
<jaynic1> sebastianb: been there done that :(
<jaynic1> i think thats right in the Nokogiri install docs
_nitti has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
<jaynic1> I should just use linux
musl has joined #ruby
<MrZYX> definitely :P
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<jaynic1> I will check the paths though, thanks MrZYX
<sebastianb> Now I'm curious if I can install it on my macbook
mercwithamouth has joined #ruby
<sebastianb> "Successfully installed nokogiri-1.5.9"
<sebastianb> well, it works
wgosling has joined #ruby
tevio has quit [Remote host closed the connection]
<jaynic1> I have working fine on 1 of my macbooks
CaptainKnots has quit [Quit: bazinga!]
CaptainKnots has joined #ruby
Beoran__ has joined #ruby
<sebastianb> That's the machine you should be using for coding then :P
_nitti has joined #ruby
etcetera has quit []
madb055 has joined #ruby
<waxjar_> is /usr/include in the path, some googling tells me that's where libxml should be?
<jaynic1> its actually for another dev
<jaynic1> its there
classix has quit [Ping timeout: 240 seconds]
<sebastianb> Hmm, did you use this 'brew link' method?
<jaynic1> in /usr/include/libxml2
Beoran_ has quit [Ping timeout: 245 seconds]
<jaynic1> i did try it a few times
nateberkopec has joined #ruby
axl_ has quit [Quit: axl_]
nminus1 has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
<sebastianb> and this one?
pioz has quit [Quit: This computer has gone to sleep]
daniel_- has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
rakl has quit [Quit: sleeping]
kayloos has joined #ruby
sayan has quit [Read error: Connection reset by peer]
icco has quit [Read error: Operation timed out]
ph^ has quit [Remote host closed the connection]
rawng has joined #ruby
<spike|spiegel> here's what you do.... download the damn .gem file.. tar xf it .. tar xzf the data.tgz ......
chrishough has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
br4ndon has joined #ruby
btaitelb has joined #ruby
wolcanus has joined #ruby
icco has joined #ruby
jbw has joined #ruby
classix has joined #ruby
etcetera has joined #ruby
ryannielson has quit [Quit: ryannielson]
lewix has quit [Remote host closed the connection]
zastern has quit [Read error: Connection reset by peer]
zastern has joined #ruby
Zai00 has joined #ruby
basex has quit [Quit: basex]
etcetera has quit [Client Quit]
unstable has joined #ruby
Zai00 has quit [Client Quit]
<linduxed> hey guys, i need some advice on program structure. i've already solved this http://projecteuler.net/problem=11 in haskell before, so i know what to do, it's just that now that i want to redo it in ruby, i'm wondering what the "proper" ruby way of doing it would be
sambao21 has joined #ruby
zastern has quit [Remote host closed the connection]
<sam113101> wait, I've used to do these in ruby
<sam113101> maybe I still have it
<linduxed> apart from the obvious part of importing the matrix, my first thought was to just do four different iterations, over ranges that is
<linduxed> but that seems too imperative
TheFuzzball has joined #ruby
sambao21 has quit [Client Quit]
TheFuzzball has quit [Max SendQ exceeded]
<sam113101> ok, that one I haven't done in ruby
<linduxed> my thought was that the "proper" way would be to create a Line class of some sort and have class methods there
<linduxed> or something like that
<linduxed> not sure
shock_one has joined #ruby
TheFuzzball has joined #ruby
bhaarat_ has quit [Quit: bhaarat_]
<linduxed> the problem in itself isn't hard, it's just that since i'm a bit new to the language, i'm wondering how this should be done if the main objective was to make it pretty and "as ruby as possible"
ph^ has joined #ruby
_________ has joined #ruby
<spike|spiegel> linduxed: not sure what's in there... throwing a stone... require 'matrix' :)
<linduxed> spike|spiegel: hmmm, that might be an idea
timmow has quit [Read error: Connection reset by peer]
timmow has joined #ruby
benweint has quit [Quit: Computer has gone to sleep.]
<spike|spiegel> don't cheat!
btaitelb has quit [Quit: btaitelb]
<linduxed> spike|spiegel: dude, as said, i've already solved it in haskell, so i don't know if it's called cheating then
Xeli has joined #ruby
icco has quit [Read error: Operation timed out]
Arzaga has quit [Quit: Computer has gone to sleep.]
tootubular has joined #ruby
icco has joined #ruby
Czupa has quit [Read error: Connection reset by peer]
chandankumar has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
shock_one has quit [Read error: Operation timed out]
carlyle has quit [Remote host closed the connection]
aapzak has quit [Ping timeout: 252 seconds]
Ontolog_ is now known as Ontolog
chandankumar has joined #ruby
aapzak has joined #ruby
pcarrier has joined #ruby
AlSquirrel has joined #ruby
pagios has quit [Quit: Leaving]
jekotia has joined #ruby
jeebster has quit [Quit: Leaving.]
yalue has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
Kirotan has quit [Ping timeout: 256 seconds]
razibog has quit [Ping timeout: 252 seconds]
_nitti has quit [Ping timeout: 260 seconds]
AlSquire has quit [Ping timeout: 245 seconds]
JonnieCache has joined #ruby
ph^ has quit [Remote host closed the connection]
johnkary has joined #ruby
jonathanwallace has joined #ruby
sambao21 has joined #ruby
_nitti has joined #ruby
icco has quit [Ping timeout: 252 seconds]
icco has joined #ruby
michaelmartinez has joined #ruby
mando has joined #ruby
banister`snooze has joined #ruby
acarpe has quit [Quit: acarpe]
huoxito has quit [Quit: Leaving]
chandankumar has quit [Ping timeout: 260 seconds]
tonini has quit [Remote host closed the connection]
strmpnk has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
cloke has quit [Ping timeout: 256 seconds]
m8 has joined #ruby
Guest60864 has quit [Ping timeout: 240 seconds]
cmarques_ has joined #ruby
cloke has joined #ruby
motto has quit [Ping timeout: 276 seconds]
cmarques has quit [Quit: Lost terminal]
cheese1756 has quit [Changing host]
cheese1756 has joined #ruby
_________ has quit [Quit: Computer has gone to sleep.]
digifiv5e has joined #ruby
digifiv5e is now known as Guest71878
etcetera has joined #ruby
joshu has joined #ruby
icco has quit [Read error: Operation timed out]
<joshu> in ruby 2.0 how can i generate an api token string? i tried in IRB with SecureRandom.urlsafe_base64 but it didn't work error NameError: uninitialized constant SecureRandom
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
kenneth has quit [Ping timeout: 245 seconds]
jekotia has joined #ruby
Proshot has quit [Quit: Leaving]
AlSquirrel has quit [Read error: Connection reset by peer]
Proshot has joined #ruby
<joshu> got it require "securrandom"
AlSquirrel has joined #ruby
icco has joined #ruby
rburton- has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
br4ndon has joined #ruby
wolcanus_ has joined #ruby
wolcanus has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
nomenkun has joined #ruby
Davey has joined #ruby
matchaw_ has quit [Ping timeout: 252 seconds]
br4ndon has quit [Client Quit]
Nisstyre-laptop has joined #ruby
mmitchell has quit [Remote host closed the connection]
tevio has joined #ruby
yfeldblum has joined #ruby
vikhyat_ has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
geekbri has quit [Remote host closed the connection]
fschuindt has joined #ruby
timonv has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
ekampf has quit [Ping timeout: 252 seconds]
jnoob22_ has quit [Remote host closed the connection]
jeebster has joined #ruby
matchaw has joined #ruby
ekampf has joined #ruby
icco has quit [Ping timeout: 252 seconds]
swex has quit [Ping timeout: 245 seconds]
icco has joined #ruby
jeffean has quit [Quit: Leaving]
Astral_ has joined #ruby
_carloslopes has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
dmiller has joined #ruby
sailias has quit [Quit: Leaving.]
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
LaPetiteFromage has joined #ruby
aedorn has joined #ruby
benlieb has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
ph^_ has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
Astralum has quit [Ping timeout: 252 seconds]
V8Energy has joined #ruby
jeebster has quit [Ping timeout: 245 seconds]
s0ber has joined #ruby
keymone has quit [Quit: keymone]
tevio has quit [Remote host closed the connection]
kleinerdrache has quit [Quit: Ex-Chat]
kamsky has quit [Quit: leaving]
evenix has quit [Remote host closed the connection]
mechcozmo has quit [Quit: mechcozmo]
Xeli has quit [Ping timeout: 260 seconds]
stef_204 has joined #ruby
codecop has quit [Quit: Išeinu]
johnjohnson has quit []
etcetera has quit []
kayloos has quit [Read error: Connection reset by peer]
smigg has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
chussenot has joined #ruby
awarner_ has joined #ruby
chussenot has quit [Client Quit]
pedda has joined #ruby
sambao21 has joined #ruby
invisime has quit [Quit: Leaving.]
rakl has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
icco has quit [Ping timeout: 252 seconds]
_nitti has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
snooc has quit []
alx- has quit [Quit: alx-]
icco has joined #ruby
pagios has joined #ruby
jrendell has joined #ruby
awarner has quit [Ping timeout: 252 seconds]
_nitti_ has joined #ruby
retry has quit [Quit: Linkinus - http://linkinus.com]
alx- has joined #ruby
pkrnj has joined #ruby
Kirotan has joined #ruby
bhaarat has joined #ruby
jaynic1 has quit [Remote host closed the connection]
tevio has joined #ruby
dimka has quit [Ping timeout: 248 seconds]
jrendell has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
<nobitanobi> Is it possible in Ruby to prevent an object of a class of receiving any kind of methods? So, prevent from doing my_object.test = "test string"
mneorr has quit [Remote host closed the connection]
wallerdev has joined #ruby
pyx has joined #ruby
<apeiros> nobitanobi: not really, no
<spike|spiegel> nobitanobi: throw it away maybe? :) what good is an object that can't respond to methods?
<spike|spiegel> unless you mean 'state changes'
pyx has quit [Client Quit]
dimka has joined #ruby
icco has quit [Read error: Operation timed out]
<linduxed> ok, so this is a working imperative solution to a problem https://github.com/linduxed/project_euler/blob/master/ruby/11.rb
<nobitanobi> apeiros, I was thinking on making it immutable, somehow
<linduxed> i know there's a lot of repetition going on here, but if i tried shortening it with methods, wouldn't it get far less readable?
bulters has joined #ruby
<linduxed> hmmm, now i hear myself saying "try and see"
Spooner has joined #ruby
icco has joined #ruby
<linduxed> but no, this will just get too ugly too quick
awarner has joined #ruby
ukd1 has joined #ruby
choobie has quit [Ping timeout: 264 seconds]
<linduxed> but this is a prime example of code duplication...
awarner__ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
petrjanda_ has joined #ruby
<apeiros> nobitani doesn't seem to wait for followups? o0
Davey has quit [Quit: Computer has gone to sleep.]
elux has quit [Quit: Leaving...]
petrjanda has quit [Ping timeout: 246 seconds]
petrjanda_ is now known as petrjanda
failshell has joined #ruby
bulters has quit [Ping timeout: 256 seconds]
awarner_ has quit [Ping timeout: 248 seconds]
awarner has quit [Ping timeout: 245 seconds]
bhaarat has quit [Ping timeout: 276 seconds]
jeebster has joined #ruby
<linduxed> not everyone has a server with tmux+IRC, it seems :-/
ph^_ has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
<kirun> "get a server and that kind of stuff set up" is the next item on my list right after "think of thing to do with server other than irc box"
Davey has joined #ruby
icco has quit [Read error: Operation timed out]
beiter has quit [Quit: beiter]
RagingDave has quit [Quit: Ex-Chat]
icco has joined #ruby
icco has quit [Client Quit]
icco has joined #ruby
mark_locklear has quit [Ping timeout: 272 seconds]
bhaarat has joined #ruby
dustint has quit [Ping timeout: 264 seconds]
Vivekananda has quit [Remote host closed the connection]
tootubular has quit [Quit: tootubular]
ZuzzleBuzzer has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ZuzzleBuzzer has quit [Client Quit]
undersc0re97 has quit [Ping timeout: 240 seconds]
motto has joined #ruby
m8 has quit [Ping timeout: 245 seconds]
benlieb has quit [Quit: benlieb]
tylersmith has quit [Quit: tylersmith]
vlad_starkov has joined #ruby
ekampf has quit [Quit: ekampf]
netto has quit [Quit: netto]
icco has quit [Read error: Operation timed out]
<gwillickers> kirun: you need a todo list app
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
icco has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
banister`snooze has quit [Remote host closed the connection]
kristofers has quit [Read error: Connection reset by peer]
wolcanus_ has quit [Ping timeout: 276 seconds]
netto has joined #ruby
failshell has quit [Remote host closed the connection]
adamjleonard has quit [Quit: Leaving...]
failshell has joined #ruby
<kirun> NOW WHAT
lewix has joined #ruby
mneorr has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
netto has quit [Client Quit]
kristofers has joined #ruby
theRoUS has quit [Read error: Operation timed out]
kristofers has quit [Read error: Connection reset by peer]
piotr_ has joined #ruby
netto has joined #ruby
rudisimo has quit [Quit: Leaving.]
arya_ has joined #ruby
kristofers has joined #ruby
kf8a has joined #ruby
kristofers has quit [Read error: Connection reset by peer]
netto has quit [Client Quit]
gaahrdner has quit [Remote host closed the connection]
kristofers has joined #ruby
gaahrdner has joined #ruby
jlast has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
kristofers has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
icco has quit [Read error: Operation timed out]
alanp has quit [Read error: Connection reset by peer]
alanp has joined #ruby
hukl has quit [Quit: Leaving...]
kristofers has joined #ruby
schickung has joined #ruby
forrest has quit [Quit: Leaving]
dankest has joined #ruby
Criztian has quit [Remote host closed the connection]
Arzaga has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
icco has joined #ruby
kristofers has quit [Read error: Connection reset by peer]
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
solidoodlesuppor has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 245 seconds]
_nitti_ has quit [Remote host closed the connection]
kristofers has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
Guest____ has joined #ruby
Guest____ has quit [Max SendQ exceeded]
sambao21 has quit [Quit: Computer has gone to sleep.]
kirun has quit [Quit: Client exiting]
mythical has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
lkba has joined #ruby
<otters> I would expect IO.popen("osascript", "w+") { |io| io.write '"hi"'; io.read } to return "hi", but it hangs indefinitely
<otters> substitute cat for osascript if you don't have osascript
cmarques_ has quit [Ping timeout: 260 seconds]
bean__ has quit [Quit: Computer has gone to sleep.]
carlyle has joined #ruby
carlyle has quit [Remote host closed the connection]
jerius has quit []
schickung has quit [Quit: schickung]
f0ster has left #ruby [#ruby]
akhet has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
EPIK has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
Quebert has joined #ruby
momomomomo has joined #ruby
mythical has quit [Ping timeout: 246 seconds]
mneorr has joined #ruby
MrZYX is now known as MrZYX|off
icco has quit [Ping timeout: 252 seconds]
wesside has quit [Quit: Computer has gone to sleep.]
enebo has quit [Quit: enebo]
headius has quit [Quit: headius]
welandC is now known as welandB
icco has joined #ruby
newUser1234 has quit [Remote host closed the connection]
nezumi has quit [Ping timeout: 240 seconds]
pcarrier has quit [Ping timeout: 248 seconds]
yann_ck has quit [Quit: Computer has gone to sleep.]
bluOxigen has quit [Ping timeout: 255 seconds]
piotr_ has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
mneorr has quit [Ping timeout: 276 seconds]
pcarrier has joined #ruby
niklasb has joined #ruby
icco has quit [Quit: Run Away!]
schickung has joined #ruby
kristofers has quit []
lewix has quit [Remote host closed the connection]
strmpnk has left #ruby [#ruby]
tealmage has joined #ruby
daniel_hinojosa has joined #ruby
generalissimo has quit [Remote host closed the connection]
BinaryMstr has joined #ruby
Kruppe has quit [Ping timeout: 264 seconds]
nomenkun has quit [Remote host closed the connection]
benlieb has joined #ruby
BinaryMaster has quit [Disconnected by services]
BinaryMstr is now known as BinaryMaster
mercwithamouth has quit [Ping timeout: 255 seconds]
wagster has quit [Quit: Computer has gone to sleep.]
TheNixNinja has joined #ruby
csaunders has joined #ruby
<BinaryMaster> Question can a logic operation be written like this if var1 | var2 | ver3 != ver4
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
emmanuelux has joined #ruby
xcv has joined #ruby
retry has joined #ruby
johnnyfuchs1 has quit [Quit: Leaving.]
schickung has quit [Quit: schickung]
angusiguess has quit [Ping timeout: 260 seconds]
<aces23up> when doing an IO.read on a text file what are the \t stand for?
JesseH has left #ruby ["Peace."]
<aces23up> i know \n is new line, but what is \t?
<otters> BinaryMaster: no
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
WhereIsMySpoon has joined #ruby
<BinaryMaster> okay thank you
benlieb has quit [Quit: benlieb]
<WhereIsMySpoon> on https://github.com/spacialdb/gcm , at the bottom it says options = {data: {score: "123"}, collapse_key: "updated_score"} - what is the collapse key, please?
<dougsko> aces23up: a tab
huoxito has joined #ruby
<BinaryMaster> is it better to use or or ||
n3bul0n has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
<WhereIsMySpoon> yes
<WhereIsMySpoon> (that was a subtle joke)
<BinaryMaster> lol
mahmoudimus has quit [Quit: Computer has gone to sleep.]
balishag has quit [Quit: Leaving]
enebo has joined #ruby
frem has quit [Ping timeout: 245 seconds]
rburton- has quit [Quit: Leaving...]
nateberkopec has quit [Quit: Leaving...]
ph^ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
zeade has quit [Quit: Leaving.]
<dougsko> hmm... im trying to set the SO_RCVBUF option on a socket but i dont think im doing it right. this is what im doing: http://pastebin.com/g6jJsHjT
<dougsko> anyone know how to do this properly?
mercwithamouth has joined #ruby
SCommette has quit [Quit: SCommette]
gaahrdner has quit [Remote host closed the connection]
postmodern has joined #ruby
ffranz has quit [Quit: Leaving]
vlad_starkov has joined #ruby
ph^ has quit [Ping timeout: 245 seconds]
Gabri has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
niklasb has quit [Ping timeout: 256 seconds]
arya_ has quit []
awarner__ has quit [Remote host closed the connection]
awarner has joined #ruby
ryannielson has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
picca_ has joined #ruby
A124 has quit [Ping timeout: 245 seconds]
angusiguess has joined #ruby
johnnygoodmancpa has joined #ruby
idkazuma has joined #ruby
chussenot has joined #ruby
lewix_ has joined #ruby
emergion has joined #ruby
chussenot has quit [Client Quit]
petrjanda has quit [Quit: petrjanda]
soulcake has joined #ruby
tylersmith has joined #ruby
sdavis has quit [Quit: sdavis]
Hanmac2 has joined #ruby
picca_ has quit [Remote host closed the connection]
ariedler has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
DrCode has quit [Remote host closed the connection]
kpshek has quit []
ariedler has joined #ruby
baphled has quit [Ping timeout: 276 seconds]
Olipro has quit [Ping timeout: 246 seconds]
Olipro has joined #ruby
ariedler has quit [Remote host closed the connection]
<shevy> BinaryMaster I think || has higher precedence
johnnygoodmancpa has left #ruby [#ruby]
<shevy> so it should be more useful than or
<BinaryMaster> thank you shevy
jrendell has joined #ruby
jrendell has quit [Client Quit]
timmow has quit [Remote host closed the connection]
<BinaryMaster> hey is there a way to get the type of an object?
justsee has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<dougsko> BinaryMaster: call .class on it
mahmoudimus has joined #ruby
<BinaryMaster> can I use that in a case switch where I have when Hash
<shevy> BinaryMaster you can use several conditionals in when
<shevy> even a regex
<shevy> foo = 'test'
<shevy> case foo
<shevy> when /te/
<shevy> puts 'te matches'
<shevy> end
DrCode has joined #ruby
mikeg has quit [Quit: Leaving]
jrendell has joined #ruby
nga4 has quit []
daniel_hinojosa has quit [Quit: Leaving.]
asym has joined #ruby
ephemerian has quit [Quit: Leaving.]
huoxito has quit [Ping timeout: 245 seconds]
LennyLinux has quit [Remote host closed the connection]
emergion has joined #ruby
Khazix has joined #ruby
<Khazix> hi guys, I just want to know why a module is needed here, https://github.com/pearkes/tugboat/blob/master/lib/tugboat.rb#L5
Guest39450 has joined #ruby
sambao21 has joined #ruby
pkrnj has joined #ruby
Guest39450 is now known as d0ctor
tippenein has joined #ruby
tippenein has left #ruby [#ruby]
kornnflake has joined #ruby
bulters has joined #ruby
<Spooner> Khazix, It isn't needed.
jeebster1 has joined #ruby
slainer68 has quit [Remote host closed the connection]
<Khazix> Spooner, but why is it there?
emergion has quit [Ping timeout: 264 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jeebster has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
banister`snooze has joined #ruby
bulters has quit [Ping timeout: 245 seconds]
gstamp has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
akhet has joined #ruby
huoxito has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
jeebster1 has quit [Quit: Leaving.]
Khazix has quit [Quit: Connection reset by peer]
cyberarm has joined #ruby
Ripp__ has left #ruby ["Leaving"]
dooleyburger has quit [Ping timeout: 264 seconds]
akhet has quit [Ping timeout: 245 seconds]
n3bul0n has quit [Ping timeout: 264 seconds]
lewix_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
Thelostcircuit has quit []
timmow has joined #ruby
motto has quit [Quit: Sto andando via]
d0ctor has left #ruby [#ruby]
<BinaryMaster> Is it better to test if a variable has been set with defined?() or testing the variable != nil
benlieb has joined #ruby
emmanuelux has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
ekampf has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
timmow has quit [Ping timeout: 252 seconds]
subbyyy has joined #ruby
NiteRain has quit [Ping timeout: 240 seconds]
BinaryMaster has quit [Quit: Bye loves see you again soon!]
sepp2k has quit [Remote host closed the connection]
Scriptor has joined #ruby
angusiguess has joined #ruby
dogweather has joined #ruby
Yakko has joined #ruby
enebo has quit [Quit: enebo]
bitcycle has joined #ruby
chrishough has quit [Quit: chrishough]
marr has quit [Ping timeout: 245 seconds]
<bitcycle> Hey all. Is there a way to specify a prefix when building an application using rake?
Xeago has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
slainer68 has joined #ruby
huoxito has quit [Quit: Leaving]
schickung has joined #ruby
dustint has joined #ruby
miroatme_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<miroatme_> hey.. i am working on the ruby koans.. and am running into an issue with one..
<miroatme_> given the size of each side of a triangle
<miroatme_> it should tell you what kind that it is
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
kurk has joined #ruby
baroquebobcat has joined #ruby
<miroatme_> oh wow.. i think it was a spelling error…
stkowski has quit [Quit: stkowski]
<miroatme_> yep
<miroatme_> my bad
rburton- has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
kofno has quit [Remote host closed the connection]
pac1 has joined #ruby
LongLiveBacon has quit [Ping timeout: 252 seconds]
dogweath_ has joined #ruby
idkazuma has joined #ruby
philcrissman has quit [Remote host closed the connection]
pkrnj has quit [Quit: Computer has gone to sleep.]
miroatme_ has left #ruby [#ruby]
brianpWins has quit [Quit: brianpWins]
chrishough has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
bitcycle has quit [Quit: Page closed]
slainer68 has quit [Ping timeout: 245 seconds]
ziggles has joined #ruby
predator217 has quit [Ping timeout: 246 seconds]