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
adam12 has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 248 seconds]
doritostains has joined #ruby
mattbl has joined #ruby
chrisnicola has joined #ruby
alx- has quit [Quit: alx-]
someone has joined #ruby
someone is now known as Guest58428
echevemaster has quit [Ping timeout: 240 seconds]
twoism_ has quit [Remote host closed the connection]
hmarr has quit []
rupee has quit [Ping timeout: 248 seconds]
Voodoofish430 has quit [Quit: Leaving.]
F1skr has quit [Quit: WeeChat 0.4.0]
Guest58428 is now known as reupee
crodas has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
zph has quit []
wyattg has joined #ruby
veinofstars has joined #ruby
momomomomo has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
miso1337 has joined #ruby
dawkirst has joined #ruby
cloke has quit [Ping timeout: 245 seconds]
cloke has joined #ruby
Skylab has left #ruby [#ruby]
jpfuentes2 has joined #ruby
veinofstars has quit [Client Quit]
ShellFu has quit [Ping timeout: 245 seconds]
slainer68 has quit [Remote host closed the connection]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
snorkdude has quit [Quit: snorkdude]
danslo has quit [Quit: danslo]
zwevans has quit [Quit: Computer has gone to sleep.]
al3xnull2 has joined #ruby
arya has quit [Ping timeout: 256 seconds]
dustint has quit [Ping timeout: 276 seconds]
lewis has quit [Remote host closed the connection]
al3xnull has quit [Disconnected by services]
al3xnull2 is now known as al3xnull
tomsthumb has quit [Quit: Leaving.]
Neandre has quit [Remote host closed the connection]
enriclluelles has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
emocakes has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
pioz has joined #ruby
jgrevich has quit [Quit: jgrevich]
freerobby has joined #ruby
<kenneth> i'm having a little trouble with this parser… still related to the instance_eval stuff from earlier
tylersmith has quit [Quit: tylersmith]
zeade has quit [Quit: Leaving.]
cloke has quit [Quit: cloke]
<kenneth> this is an example of my parser working
<Eiam> ugh, i hate doing if exists checks
ckrailo has joined #ruby
<Eiam> elsif this key exists and this keys value is "woowoo"
<kenneth> but if i have *any* code that isn't a valid validation, i get a SystemStackError: stack level too deep error
<kenneth> so doing a puts "hello" from within my block throws this weird exception
yshh has quit [Remote host closed the connection]
falieson has joined #ruby
<kenneth> i imagine it's something being wrong with my method_missing method? but i can't figure out what. printing at the top of method missing does nothing :(
yshh has joined #ruby
agarie_ has joined #ruby
yshh has quit [Remote host closed the connection]
<falieson> I use this to perform an XML call in google spreadsheet, what's the right way to do the equivalent in ruby? pastebin.com/QZbDqXLa
idkazuma has quit [Remote host closed the connection]
timmow has joined #ruby
rdo has quit [Ping timeout: 252 seconds]
etcetera has quit []
NiteRain has joined #ruby
agarie has quit [Ping timeout: 256 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
phasma_ is now known as phasma
blaines has quit [Quit: Computer has gone to sleep.]
hogeo has joined #ruby
dmerrick has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
pioz has quit [Quit: This computer has gone to sleep]
benweint has quit [Quit: Computer has gone to sleep.]
Vert has quit [Remote host closed the connection]
Vivekananda has joined #ruby
internetishard has joined #ruby
<internetishard> how do I rescue a parse exception in ruby?
<internetishard> It still halts if I put 'rescue' after it...
evenix has joined #ruby
jnoob22 has joined #ruby
<evenix> hi guys
<evenix> im looking for a ruby gem that would allow me to do some advance finance manipulation
dmerrick has quit [Ping timeout: 248 seconds]
<evenix> like calculating Equilibrium Price
<vyrus001> jesus h christ getting pcaprub installed is murder
<vyrus001> still cant get this thing to work and its been 2 days
ehaliewicz has quit [Remote host closed the connection]
slainer68 has joined #ruby
<internetishard> oh nvm
tomsthumb has joined #ruby
markalanevans has quit [Ping timeout: 264 seconds]
hoelzro has quit [Remote host closed the connection]
KazW has quit [Remote host closed the connection]
<mklappstuhl> is there a destructive version of Array.push that changes the receiver object
rezzack has quit [Quit: Leaving.]
KazW has joined #ruby
<internetishard> how do I skip some code and continue in a certain spot after an exception
<kenneth> mklappstuhl: array push *is* destructive
randomautomator has joined #ruby
Vert has joined #ruby
brianpWins has quit [Quit: brianpWins]
<internetishard> momomomomo: does that mean I have to use throw and catch and I can't just drop a rescue in if I want a loop to not halt on a certain error?
<Vivekananda> hey everyone. what is the best data structure to employ for this --- I have as input an array of strings. I am trying to get all distinct pairs of strings out of the same array and match them against each other for common letters. Then I want for each string to have a rank based on how many others it matches to
<momomomomo> internetishard: Read the article.
KazW has quit [Remote host closed the connection]
<momomomomo> Vivekananda: you literally just asked this question in #c - http://www.tutorialspoint.com/ansi_c/c_strcmp.htm
<internetishard> I just read through, so that's a no, I have to use catch and rescue
<momomomomo> internetishard: You can use begin ..code.. rescue error ..do this on rescue..
<Vivekananda> momomomomo: yep I have friends there and here. I am trying to know a C way and a ruby and also if possible a java way
<Vivekananda> that bad ?
twoism has joined #ruby
<Vivekananda> I like to know stuff
slainer68 has quit [Ping timeout: 248 seconds]
brennanMKE has quit [Remote host closed the connection]
<Vivekananda> implementations differ right ?
twoism has quit [Remote host closed the connection]
<momomomomo> Right, but you're not trying to solve the problem - you're looking for a solution given to you
<momomomomo> check out strcmp if you want to do this in C
randomautomator has quit [Ping timeout: 240 seconds]
mrsolo has quit [Quit: Leaving]
twoism has joined #ruby
<momomomomo> or, you could use something like a fuzzy string matcher https://github.com/kiyoka/fuzzy-string-match Vivekananda
KazW has joined #ruby
deric_skibotn has quit [Ping timeout: 252 seconds]
<internetishard> momomomomo: it doesn't give an example for do using rescue. All you have to do is "do" at a certain spot after the rescue and it will skip the code between rescue and do?
ZachBeta has joined #ruby
<Vivekananda> momomomomo: hmm but I am interested in more of the underlying data structure I should use and would give good results. I guess I need good insert and lookup times
<momomomomo> internetishard: are we looking at the same link here? http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_exceptions.html
<internetishard> yep
<momomomomo> ctrl + f and type rescue
robscomputer_ has joined #ruby
<momomomomo> and read the article - there's a whole sectiona bout it.
Nisstyre-laptop has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 246 seconds]
thejefflarson_ has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
yshh has joined #ruby
tvw has joined #ruby
tvw has quit [Client Quit]
anonymuse has quit [Quit: Leaving...]
snorkdude has joined #ruby
hoelzro has joined #ruby
t_p has quit [Quit: Computer has gone to sleep.]
robscomputer_ has quit [Remote host closed the connection]
al3xnull_ has joined #ruby
Nisstyre-laptop has joined #ruby
Caelum has quit [Read error: Operation timed out]
mksm_ has quit [Read error: Operation timed out]
matled- has joined #ruby
al3xnull has quit [Disconnected by services]
al3xnull_ is now known as al3xnull
al3xnull2 has joined #ruby
veinofstars has joined #ruby
matled has quit [Read error: Connection reset by peer]
matled- is now known as matled
Caelum has joined #ruby
mksm has joined #ruby
twoism has quit [Remote host closed the connection]
forced_request has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
vyrus001 has left #ruby [#ruby]
evenix_ has joined #ruby
veinofstars has quit [Quit: veinofstars]
arya has quit [Ping timeout: 245 seconds]
baba has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
Yakko has joined #ruby
whowantstolivefo has quit [Read error: Connection reset by peer]
whowantstolivefo has joined #ruby
tgraham has joined #ruby
Yakko_ has quit [Ping timeout: 248 seconds]
arya has joined #ruby
ZachBeta has quit [Write error: Connection reset by peer]
dmiller has joined #ruby
jdunck has quit [Ping timeout: 252 seconds]
jeebster has quit [Quit: Leaving.]
ZachBeta has joined #ruby
dsdeiz has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
nalaginrut has joined #ruby
reupee has quit [Quit: Leaving]
therrell has quit [Quit: therrell]
Hanmac2 has joined #ruby
LennyLinux has quit [Remote host closed the connection]
Animawish is now known as durpyDash5
tish has joined #ruby
Spooner has quit [Remote host closed the connection]
malcolmva has quit [Ping timeout: 240 seconds]
malcolmva has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
Hanmac1 has quit [Ping timeout: 276 seconds]
tgraham has quit [Quit: Linkinus - http://linkinus.com]
freerobby has quit [Quit: Leaving.]
peta_ has quit [Quit: peta_]
zwevans has joined #ruby
momomomomo has quit [Quit: momomomomo]
durpyDash5 is now known as Animawis
kofno has quit [Remote host closed the connection]
Animawis is now known as Animawise
bonty_ssh has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
droppedonmyhead has quit [Quit: droppedonmyhead]
baba has joined #ruby
lewis has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
c0rn has joined #ruby
yannis has quit [Quit: yannis]
techlife has quit [Ping timeout: 255 seconds]
Nisstyre-laptop has joined #ruby
nari has joined #ruby
noahsussman has quit [Ping timeout: 246 seconds]
cobragoat has quit [Remote host closed the connection]
Animawise is now known as Aneighmawish
Davey has joined #ruby
timmow has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
dsdeiz_ has joined #ruby
dsdeiz has quit [Ping timeout: 245 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
v0n has joined #ruby
razibog has quit [Ping timeout: 264 seconds]
timmow has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
techlife has joined #ruby
Aneighmawish is now known as Alamowish
Alamowish is now known as Animawish
soulofpeace has joined #ruby
Domon has joined #ruby
chrisnicola has joined #ruby
ner0x has quit [Quit: Leaving]
dsdeiz has joined #ruby
marcdel has quit []
dsdeiz_ has quit [Ping timeout: 240 seconds]
v0n has quit [Read error: Operation timed out]
hamakn has joined #ruby
zwevans has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
syamajala has joined #ruby
basex has joined #ruby
evenix has quit [Remote host closed the connection]
evenix_ has quit [Remote host closed the connection]
arya has quit [Ping timeout: 260 seconds]
BSaboia has joined #ruby
internetishard has quit [Read error: Operation timed out]
emmanuelux has quit [Remote host closed the connection]
bricker`LA has joined #ruby
mockra has quit [Remote host closed the connection]
Ontolog has quit [Remote host closed the connection]
Bosox20051 has quit [Quit: Leaving]
_maes_ has joined #ruby
wesside has joined #ruby
arya has joined #ruby
banjara has quit [Quit: Leaving.]
tommyvyo has quit [Quit:]
PixelCrumbs has joined #ruby
blinton has joined #ruby
rotham has quit [Quit: Leaving]
ttt has joined #ruby
toekutr has joined #ruby
<breakingthings> Dearest #rubby: How would I go about testing a method's return value, when that return value is an object that is being stubbed...? (RSpec, for reference)
arya has quit [Ping timeout: 245 seconds]
adrian has joined #ruby
syamajala has quit [Quit: leaving]
jnoob22 has quit [Remote host closed the connection]
maletor has joined #ruby
blinton has quit [Quit: blinton]
sleetdrop has joined #ruby
mando_ has joined #ruby
adrian- has joined #ruby
arya has joined #ruby
doritostains has quit [Ping timeout: 252 seconds]
chrishough has joined #ruby
yangchenyun has joined #ruby
marcdel has joined #ruby
welandB has joined #ruby
love_color_text has joined #ruby
<yangchenyun> Anyone could help 'flatten' this code with nested iterations?
terrorpup has joined #ruby
<yangchenyun> Each iteration has some conditions attached to it, but I want to write all those conditions in one place instead of scattering them around different interations.
<welandB> It's difficult to know what the constraints of the series are if you have junk data in the example.
rickruby has joined #ruby
<welandB> You could just use modulo for integer iterations. It wouldn't save any time but would be flatter.
tish has left #ruby [#ruby]
<yangchenyun> This is a simplified version, the case is I have asome arrays needed to iterate through and each need to pass some tests.
sambao21 has joined #ruby
io_syl has quit [Read error: Operation timed out]
adrian has quit [Ping timeout: 260 seconds]
<yangchenyun> This could array could contain any data type not just integer.
<welandB> Do you want to decrease the complexity of the algorithm or just simplify the code?
sambao21 has quit [Client Quit]
sayan has joined #ruby
BSaboia has quit [Ping timeout: 252 seconds]
<yangchenyun> simplify the code.
sambao21 has joined #ruby
<yangchenyun> The problem I am facing is: I need to interate through a bunch of lists, and there are separated conditions which needs to be satisfied by the list. conditons are not independent.
sambao21 has quit [Client Quit]
shevy has quit [Ping timeout: 252 seconds]
<yangchenyun> This solution and algorithm works for me, but it is hard to maintain and read.
Targen has joined #ruby
dustint has joined #ruby
<yangchenyun> conditions are scattered around each iteration level.
sambao21 has joined #ruby
<yangchenyun> and the nesting is hard to read.
Yakko has quit [Ping timeout: 255 seconds]
<Vivekananda> anyone around ?
<welandB> if arr1.include?("1") && arr2.include?("2") && ... arrn.include?("n")
<welandB> You can break lines for conditionals on && operator. You can also use \ to break lines.
<Vivekananda> I was off for a bit but was askign people here about what would be a good Data structure for comparing an array of strings to itself so that each string is comnpared to each other string
<welandB> For readability.
<breakingthings> Does anyone know how would I go about testing a method's return value, when that return value is an object that is being stubbed in RSpec?
<yangchenyun> Thx, this works for this example. The real problems have more complex conditions.
<yangchenyun> and each might be dependent.
<yangchenyun> such as if (n4 == n3) do something...
geggam has joined #ruby
<yangchenyun> if (n3 + n2 == n4) do something...
<welandB> breakingthings: Can you not use the line `p rspec_object' as a debug line in code?
rsahae has joined #ruby
kofno has quit [Remote host closed the connection]
<breakingthings> welandB: It's an RSpec::Mocks:Mock object...
maletor has quit [Quit: Computer has gone to sleep.]
<breakingthings> I guess I could just assert that it matches my mock.
sambao21 has quit [Quit: Computer has gone to sleep.]
<welandB> Vivekananda: you could hash the string I guess and search for it in a tree.
<welandB> How big is the array that the processing time is burdensome?
radic has joined #ruby
newUser1234 has joined #ruby
falieson has quit [Remote host closed the connection]
<Vivekananda> well it can have variable lengths and I have to try two ways
noahsussman has joined #ruby
<Vivekananda> one for a modest length of like 200
<Vivekananda> another for a dictionary length
<Vivekananda> :)
kofno has joined #ruby
radic_ has quit [Ping timeout: 256 seconds]
shevy has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
kofno has quit [Remote host closed the connection]
<Vivekananda> welandB: has the string meaning ?
<Vivekananda> I create hashes for all the strings ?
<Vivekananda> each individual string ?
ckrailo has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
cha1tanya has joined #ruby
sambao21 has joined #ruby
joast has quit [Ping timeout: 252 seconds]
markalanevans has joined #ruby
timmow has joined #ruby
Es0teric has quit [Read error: Connection reset by peer]
rickmasta has joined #ruby
lorn_ has quit [Ping timeout: 245 seconds]
mattbl has joined #ruby
Opettaja has joined #ruby
sambao21 has quit [Client Quit]
newUser1234 has quit [Remote host closed the connection]
Es0teric has joined #ruby
newUser1234 has joined #ruby
<welandB> Vivekananda: "hashing" a value/object is different than the "hash" data structure.
<welandB> Hashing involves applying an algorithm to a value that creates a unique number of a fixed length.
timmow has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
<welandB> You can search for that value in a data structure like a tree.
<welandB> Or you could just use the Array class's include?() method.
<welandB> Which is what I'd recommend unless it severely degrades system performance.
mattbl has quit [Ping timeout: 252 seconds]
BaconRose has joined #ruby
ebollens has quit [Quit: ebollens]
dhruvasagar has quit [Ping timeout: 252 seconds]
fivetwentysix has joined #ruby
Nisstyre-laptop has joined #ruby
arya has quit [Ping timeout: 264 seconds]
bigmac has joined #ruby
Gruu_ has joined #ruby
arya has joined #ruby
heliumsocket has joined #ruby
thejefflarson_ has joined #ruby
lewis_ has joined #ruby
<Vivekananda> welandB: hmm so I have to first lookup how to hash a string in ruby and then how to create a tree structure and then how to look up a string in it
<Vivekananda> also how efficient is regex comparison
<Vivekananda> is it linear ? or lesser?
tommyvyo has joined #ruby
noahsussman has quit [Quit: Unexpected SpanishInquisitionException]
krz has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
lewis has quit [Ping timeout: 260 seconds]
snorkdude has quit [Quit: snorkdude]
joast has joined #ruby
al3xnull has quit [Remote host closed the connection]
pskosinski has quit [Quit: pskosinski]
al3xnull has joined #ruby
ChronocityLC has quit [Ping timeout: 252 seconds]
al3xnull has quit [Read error: Connection reset by peer]
Opettaja has quit [Quit: WeeChat 0.4.0]
PixelCrumbs has left #ruby [#ruby]
al3xnull has joined #ruby
osvico has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
kofno has joined #ruby
LaPetiteFromage has joined #ruby
<welandB> Vivekananda: I have no idea. I'm sure it is not linear. Obviously varies by implementation, too.
pkrnj has joined #ruby
aapzak has quit [Ping timeout: 260 seconds]
verysoftoiletppr has quit []
Nisstyre-laptop has quit [Quit: Leaving]
aapzak has joined #ruby
verysoftoiletppr has joined #ruby
therrell has joined #ruby
dagnachew has quit [Quit: WeeChat 0.4.0]
slyv has quit [Quit: Computer has gone to sleep.]
danman has joined #ruby
tommyvyo has quit [Quit:]
angusiguess has joined #ruby
danman has quit [Client Quit]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
<bnagy> Vivekananda: use a Hash
kofno has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
<bnagy> if your collection has no duplicates, anyway
echevemaster has quit [Ping timeout: 248 seconds]
emocakes has quit [Quit: emocakes]
<Vivekananda> bnagy: hey :)
<Vivekananda> okay I was thinking that too
<Vivekananda> but insertion in hash is bad isnt it ?
alvaro_o has quit [Quit: Ex-Chat]
rsahae has left #ruby [#ruby]
<bnagy> you're talking about an n**2 problem, almost everything is 'bad'
chrisnicola has joined #ruby
<bnagy> but a Hash will get you a lot of win for almost no coding effort
drale2k has quit [Quit: Leaving...]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
<welandB> I have no idea how ruby implements its Hash class.
zeade has joined #ruby
drale2k has joined #ruby
<bnagy> it uses Object#hash
therrell has quit [Quit: therrell]
Guest19721 is now known as ferd
ferd is now known as fred
fred has quit [Changing host]
fred has joined #ruby
mahmoudimus has joined #ruby
pkrnj has quit [Remote host closed the connection]
xpen has joined #ruby
kofno has joined #ruby
arya has quit [Ping timeout: 256 seconds]
seoaqua has joined #ruby
dustint has quit [Ping timeout: 260 seconds]
kofno has quit [Remote host closed the connection]
mattbl has joined #ruby
arya has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
pkrnj has joined #ruby
callmeivan_ has joined #ruby
al3xnull has quit [Remote host closed the connection]
al3xnull has joined #ruby
callmeivan has quit [Ping timeout: 252 seconds]
droppedonmyhead has joined #ruby
callmeivan_ is now known as callmeivan
mattbl has quit [Client Quit]
araujo has quit [Ping timeout: 264 seconds]
kenneth has quit [Quit: kenneth]
terrorpup has quit [Quit: Leaving]
girija has joined #ruby
Gruu_ has quit [Quit: Gruu_]
timmow has joined #ruby
jarin has quit [Quit: WeeChat 0.4.0]
al3xnull has quit [Ping timeout: 255 seconds]
dhruvasagar has joined #ruby
akashj87 has joined #ruby
callmeivan has quit [Ping timeout: 264 seconds]
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
al3xnull has joined #ruby
sayan has quit [Read error: Connection reset by peer]
timmow has quit [Ping timeout: 252 seconds]
newUser1234 has quit [Remote host closed the connection]
markalanevans has quit [Quit: markalanevans]
franicsw has joined #ruby
aapzak has quit [Ping timeout: 245 seconds]
girija has quit [Ping timeout: 246 seconds]
franicsw has left #ruby [#ruby]
thetristan has quit [Quit: thetristan]
Cultofmetatron has quit [Remote host closed the connection]
aapzak has joined #ruby
al3xnull has quit [Ping timeout: 255 seconds]
Zeev_ has quit [Quit: Leaving]
Kruppe has quit [Remote host closed the connection]
Zeev_ has joined #ruby
callmeivan has joined #ruby
sambao21 has joined #ruby
ckrailo has joined #ruby
sambao21 has quit [Client Quit]
cha1tanya has quit [Quit: Leaving]
arusso_ has quit [Changing host]
arusso_ has joined #ruby
sambao21 has joined #ruby
akashj87 has quit [Ping timeout: 240 seconds]
mockra has joined #ruby
<dyeske> any ffi users in here?
chxane has quit [Ping timeout: 260 seconds]
robscomputer_ has joined #ruby
jbueza has quit [Quit: Leaving.]
tylersmith has joined #ruby
Andromeda has joined #ruby
<Vivekananda> bnagy: thanks
mando_ has quit [Remote host closed the connection]
chrisnicola has quit [Quit: This computer has gone to sleep]
markalanevans has joined #ruby
theRoUS has joined #ruby
newUser1234 has joined #ruby
bigmac has quit [Quit: Leaving]
shevy has quit [Ping timeout: 260 seconds]
callmeivan has quit [Read error: No route to host]
callmeivan has joined #ruby
newUser1234 has quit [Remote host closed the connection]
chrisnicola has joined #ruby
al3xnull2 has quit [Read error: No route to host]
rickruby has quit [Remote host closed the connection]
kenneth has joined #ruby
sayan has joined #ruby
kenneth has quit [Client Quit]
lmf40 has quit [Ping timeout: 264 seconds]
callmeivan has quit [Read error: No route to host]
callmeivan has joined #ruby
al3xnull has joined #ruby
chxane has joined #ruby
mockra has quit [Remote host closed the connection]
rippa has joined #ruby
bigmac has joined #ruby
mootpointer has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Inside has quit [Ping timeout: 252 seconds]
divout has joined #ruby
zeade has quit [Quit: Leaving.]
shevy has joined #ruby
Cultofmetatron has joined #ruby
havenwood has joined #ruby
knapper_tech has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
bigmac has quit [Quit: Leaving]
arya_ has joined #ruby
huoxito has quit [Quit: Leaving]
akashj87 has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
callmeivan has quit [Ping timeout: 260 seconds]
arya has quit [Ping timeout: 252 seconds]
icy` has quit [Read error: No route to host]
callmeivan has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
rippa has quit [Ping timeout: 240 seconds]
mohamed78 has joined #ruby
uris has quit [Quit: Leaving]
ozzloy has quit [Read error: Operation timed out]
ozzloy has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
c0rn has joined #ruby
breakingthings has quit []
paper_ has quit [Remote host closed the connection]
miso1337 has quit [Quit: afk]
geggam has quit [Ping timeout: 246 seconds]
Lockzi has quit [Ping timeout: 245 seconds]
basex has quit [Quit: basex]
io_syl has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
kofno has joined #ruby
gabrielrotbart has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Domon has quit [Remote host closed the connection]
geggam has joined #ruby
Lockzi has joined #ruby
gabrielrotbart has quit [Ping timeout: 245 seconds]
mattbl has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
druiced has joined #ruby
arya_ has quit [Ping timeout: 260 seconds]
sayan has quit [Ping timeout: 252 seconds]
julian-delphiki has joined #ruby
timmow has joined #ruby
knapper_tech has joined #ruby
arya has joined #ruby
miso1337 has joined #ruby
mattbl has quit [Client Quit]
bean has quit [Ping timeout: 245 seconds]
BoomCow has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
mockra has joined #ruby
basex has joined #ruby
mattbl has joined #ruby
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
rh1n0 has joined #ruby
tommyvyo has quit [Quit:]
freakazoid0223 has quit [Ping timeout: 248 seconds]
dsdeiz_ has joined #ruby
droppedonmyhead has quit [Quit: droppedonmyhead]
dsdeiz has quit [Read error: Connection reset by peer]
rh1n0 has quit [Quit: -- I'm out --]
Nisstyre-laptop has joined #ruby
trollface is now known as Paradox
rh1n0 has joined #ruby
bricker`1A has joined #ruby
van7hu has joined #ruby
<van7hu> hi
<Paradox> ih
<van7hu> i'm using backtrack r3, after apt-get upgrade, and try using metasploit with msfconsole, i got Could not find rake-10.0.4 in any of the sources
newres has joined #ruby
<van7hu> Run `bundle install` to install missing gems.
<van7hu> how could i fix this?
chandankumar has joined #ruby
therrell has joined #ruby
generalissimo has joined #ruby
<postmodern> van7hu, gem install bundler && bundle install
miso1337 has quit [Quit: afk]
c0rn has quit [Quit: Computer has gone to sleep.]
rezzack has joined #ruby
bricker`LA has quit [Ping timeout: 245 seconds]
newres has left #ruby [#ruby]
maletor has joined #ruby
<van7hu> íll try
<van7hu> thank
paper_ has joined #ruby
adamjleonard has quit [Quit: Leaving...]
MetaCosm_ has quit [Quit: ZNC - http://znc.in]
bluOxigen has joined #ruby
al3xnull has quit [Remote host closed the connection]
al3xnull has joined #ruby
<van7hu> postmodern, bundle install , get error Bundler::GemfileNotFound
chrisnicola has quit [Quit: This computer has gone to sleep]
decoponio has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
chrisnicola has joined #ruby
robbyoconnor has joined #ruby
timonv has joined #ruby
shock_one has joined #ruby
ariedler has quit [Remote host closed the connection]
basex has quit [Quit: basex]
arya has quit []
v0n has joined #ruby
al3xnull has quit [Ping timeout: 252 seconds]
dustint has joined #ruby
Yakko has joined #ruby
mootpointer has quit [Quit: Exit, pursued by a bear.]
paper_ has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
beaky has joined #ruby
<beaky> hello
wormwood has quit [Quit: WeeChat 0.4.0]
<van7hu> hi
<beaky> what does ruby have in common with python?
dsdeiz has joined #ruby
<beaky> cal
<Vivekananda> hey everyone have a question
<beaky> Vivekananda: hi
<Vivekananda> so suppose I have an array in ruby and has 5 elements
sayan has joined #ruby
Kirotan has quit [Ping timeout: 246 seconds]
rickruby has joined #ruby
<Vivekananda> I do a.each do |x| ( I want to remove elements 0 and 1 from array) end
<Vivekananda> beaky: howdy :)
sambao21 has quit [Quit: Computer has gone to sleep.]
<Vivekananda> ruby has easy names and constructs similar to python
<Vivekananda> I am only a new comer
dsdeiz_ has quit [Ping timeout: 255 seconds]
<Vivekananda> so I might be very wrong
<havenwood> Vivekananda: [1,2,3,4,5][2..-1] #=> [3,4,5]
<havenwood> Vivekananda: Or: [1,2,3,4,5].drop 2
van7hu has quit [Read error: Connection reset by peer]
<beaky> yes, drop communicates it best
dankest has joined #ruby
<Vivekananda> havenwood: hmm so suppose I have a = [1 ,2 ,3 ,4 ,5 ] and I say -- a.each do |x| ; puts a ; (remove first two elements) ; end. The result I want to obtain from this is
<Vivekananda> 1 , 2 , 3 ,4 , 5 then I want 3, 4 ,5 and then 5 and then nil and the code should run for only these 4 Iterations
Domon has joined #ruby
<Vivekananda> nott 5 times
<Vivekananda> how to do this ?
girija has joined #ruby
<welandB> Vivekananda: Array's delete_at() method?
kushalkhandelwal has joined #ruby
aryasam has joined #ruby
dmiller has joined #ruby
stkowski has quit [Quit: stkowski]
maletor has quit [Quit: Computer has gone to sleep.]
dmiller has quit [Ping timeout: 240 seconds]
chrishough has quit [Quit: chrishough]
Skofo has quit [Quit: Leaving]
codecop has joined #ruby
julian-d_ has joined #ruby
timonv has quit [Remote host closed the connection]
dsdeiz_ has joined #ruby
rh1n0 has quit [Quit: -- I'm out --]
nezumi has joined #ruby
dsdeiz has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
MetaCosm has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
jhn has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
banghous_ has joined #ruby
tagrudev has joined #ruby
banghous_ has quit [Client Quit]
bricker`1A is now known as bricker`LA
kimteq has joined #ruby
senayar has joined #ruby
verysoftoiletppr has quit []
julian-d_ has quit [Quit: Textual IRC Client: www.textualapp.com]
bean has joined #ruby
kofno has joined #ruby
Demux has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
osvico has quit []
etcetera has joined #ruby
ph^ has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 246 seconds]
julian-delphiki has quit [Ping timeout: 276 seconds]
kofno has quit [Ping timeout: 252 seconds]
etcetera has quit [Client Quit]
julian-delphiki has joined #ruby
Demux has joined #ruby
shock_one has quit [Ping timeout: 245 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
a_a_g has joined #ruby
datafirm has quit [Quit: datafirm]
braoru has joined #ruby
tonini has joined #ruby
therrell has left #ruby [#ruby]
aytch has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
freeayu has joined #ruby
julian-delphiki has quit [Ping timeout: 252 seconds]
dsdeiz has joined #ruby
yacks has joined #ruby
julian-delphiki has joined #ruby
kushalkhandelwal has quit [Quit: Page closed]
a_a_g has quit [Quit: Leaving.]
dsdeiz_ has quit [Ping timeout: 252 seconds]
aganov has joined #ruby
mattbl has joined #ruby
keyo has joined #ruby
Kirotan has joined #ruby
<keyo> undefined method `take' for ["App15(28.39sec)"]:Array (NoMethodError)
<keyo> how is this possible?
divout has quit [Remote host closed the connection]
bean has quit [Quit: Computer has gone to sleep.]
bricker`LA has quit [Quit: leaving]
welandB is now known as a234567890123456
a234567890123456 is now known as welandB
BaconRose has quit [Ping timeout: 245 seconds]
a_a_g has joined #ruby
<havenwood> Vivekananda: You want to puts "nil" or just puts a newline or what on the last iteration?
apeiros has quit [Remote host closed the connection]
aryasam has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
ananthakumaran1 has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
nomenkun has joined #ruby
etcetera has joined #ruby
answer_42 has joined #ruby
yangchenyun has left #ruby [#ruby]
etcetera has quit [Client Quit]
Hanmac has joined #ruby
Rumsteak has joined #ruby
cobragoat has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
miso1337 has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
dustint has quit [Ping timeout: 260 seconds]
generalissimo has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 264 seconds]
wesside has quit [Quit: Computer has gone to sleep.]
mohamed78 has quit []
robscomputer_ has joined #ruby
<havenwood> Vivekananda: TL;DR: until a.size.zero? do puts a; a.slice! 0..1; a.shift && puts('nil') if a.one? end
jtperreault has quit [Quit: WeeChat 0.3.7]
keyo has left #ruby [#ruby]
keyo has joined #ruby
keyo has left #ruby [#ruby]
puppeh has joined #ruby
nightfalcon has quit [Ping timeout: 257 seconds]
timmow has joined #ruby
cobragoat has quit [Remote host closed the connection]
danslo has joined #ruby
<bnagy> havenwood: that's.. awful
<havenwood> bnagy: Isn't it!
<bnagy> use a.empty? not .size.zero?
<bnagy> I have nfi why you're slicing one and then shifting when you could just shift 2
<havenwood> bnagy: The gist is less hacky.
<bnagy> and the && there is just ugly control flow for no good reason
robscomputer_ has quit [Remote host closed the connection]
<havenwood> bnagy: just being silly with the one-liner
pitzips has quit [Ping timeout: 264 seconds]
robscomputer_ has joined #ruby
emergion has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
slainer68 has joined #ruby
<bnagy> puts a and a.shift 2 until a.empty?
<bnagy> but the requirement to puts nil at the end is suk, no real code would ever do that
julian-delphiki is now known as bean
<havenwood> bnagy: [5].shift 2 #=> [5]
fschuindt has joined #ruby
maletor has joined #ruby
<bnagy> haha wow
Guest__ has joined #ruby
workmad3 has joined #ruby
<bnagy> wonder why they did that :/
akashj87__ has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 252 seconds]
samuel02 has joined #ruby
tylersmith has quit [Quit: tylersmith]
<havenwood> i'm on benedryl and not thinking clearly, the stuff works for alergy but ruins my brain
answer_42 has quit [Ping timeout: 276 seconds]
<bnagy> havenwood: oh wait, it's all fine
akashj87 has quit [Ping timeout: 240 seconds]
<bnagy> it doesn't loop - you just used an anonymous array and got a different one back
<havenwood> bnagy: Yeah, it does modify the receiver. >.> I'm just muddle-headed tonight.
druiced has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
akashj87__ has quit [Quit: Leaving]
emergion has quit [Quit: Computer has gone to sleep.]
MachinShin has joined #ruby
twoism has joined #ruby
emocakes has joined #ruby
xpen has quit [Ping timeout: 264 seconds]
twoism has quit [Remote host closed the connection]
<MachinShin> anyone here use tmuxinator? i get this error: "/usr/bin/tmuxinator:4: in `require': no such file to load -- tmuxinator (LoadError) from /usr/bin/tmuxinator:4" . i tried to follow this: https://github.com/aziz/tmuxinator
pitzips has joined #ruby
twoism_ has joined #ruby
twoism_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
norio has joined #ruby
Guest__ is now known as shellox_
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
tommyvyo has joined #ruby
twoism has joined #ruby
dsdeiz_ has joined #ruby
Elhu has joined #ruby
dsdeiz has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
ph^ has joined #ruby
Elhu has quit [Client Quit]
ananthakumaran has joined #ruby
<MachinShin> ah. figured it out. one of the fixes (somewhere else) said to install using --no-wrappers, that's wrong
<workmad3> hmm... the black wind is here... anyone gone crazy yet?
<MachinShin> sing your screams
<MachinShin> screams of blood
<workmad3> :)
ananthakumaran1 has quit [Ping timeout: 252 seconds]
Vainoharhainen has joined #ruby
dhruvasagar has joined #ruby
kofno has joined #ruby
jdunck has joined #ruby
tommyvyo has quit [Quit:]
thebastl has joined #ruby
emptyflask has joined #ruby
dsdeiz has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
tonini has quit [Remote host closed the connection]
fschuindt has quit [Read error: Connection reset by peer]
dsdeiz_ has quit [Ping timeout: 245 seconds]
keymone has joined #ruby
monkegjinni has joined #ruby
keymone has quit [Remote host closed the connection]
jprovazn has joined #ruby
dsdeiz has quit [Read error: Connection reset by peer]
<beaky> does ruby have a set type?
<beaky> like python
dsdeiz has joined #ruby
x0F has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
a_a_g has quit [Quit: Leaving.]
mattbl has quit [Quit: This computer has gone to sleep]
justsee has quit [Ping timeout: 256 seconds]
clocKwize has joined #ruby
Arzaga has joined #ruby
sambio has quit []
jhn has quit [Ping timeout: 256 seconds]
Burgestrand has quit [Quit: Burgestrand]
<bnagy> you mean Set? yeah.
<bnagy> it's stdlib though so you have to require 'set' first
divout has joined #ruby
yannis has joined #ruby
v0n has quit [Read error: Operation timed out]
pduin has joined #ruby
backjlack has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
bigkevmcd has joined #ruby
<MachinShin> sigh. so tmuxinator is broken, and hasn't been maintained in over 2 years.. but there's tmuxification. i'm trying it now, it was updated less than 1month ago..
norio has quit [Ping timeout: 276 seconds]
mockra has quit [Remote host closed the connection]
BizarreCake has joined #ruby
filipe has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
julian-delphiki has joined #ruby
hamed_r has joined #ruby
dagobah has joined #ruby
mando_ has joined #ruby
MachinShin has left #ruby ["Of course i would give the Devil the benefit of law! For my own safety's sake."]
BadQuanta has quit [Quit: Leaving]
timonv has quit [Remote host closed the connection]
skroon has joined #ruby
BadQuanta has joined #ruby
dsdeiz_ has joined #ruby
tonini has joined #ruby
dsdeiz has quit [Ping timeout: 256 seconds]
tonini has quit [Remote host closed the connection]
bean has quit [Ping timeout: 256 seconds]
tonini has joined #ruby
mando_ has quit [Ping timeout: 276 seconds]
danslo has quit [Quit: danslo]
Hanmac has quit [Ping timeout: 252 seconds]
robscomputer_ has quit [Ping timeout: 245 seconds]
chiel has quit [Remote host closed the connection]
anderse has joined #ruby
Beoran_ has quit [Ping timeout: 252 seconds]
pitzips has quit [Ping timeout: 252 seconds]
decoponio has quit [Quit: My PC will be rebooting]
Arzaga has quit [Quit: Computer has gone to sleep.]
Nisstyre-laptop has quit [Ping timeout: 252 seconds]
quazimodo has joined #ruby
agarie_ has quit [Remote host closed the connection]
lewis_ is now known as lewix
lewix has joined #ruby
lewix has quit [Changing host]
robscomputer has joined #ruby
dawkirst has quit [Remote host closed the connection]
indyrl has quit [Quit: Leaving.]
Macaveli has joined #ruby
angusiguess has joined #ruby
mafolz has joined #ruby
robscomputer has quit [Remote host closed the connection]
forced_request has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
cobragoat has joined #ruby
mahmoudimus has joined #ruby
bonty_ssh has quit [Remote host closed the connection]
nightfalcon has joined #ruby
paper_ has joined #ruby
angusiguess has quit [Read error: Operation timed out]
dankest has quit [Quit: Leaving...]
nomenkun has quit [Remote host closed the connection]
bonty_ssh has joined #ruby
danslo has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
mattbl has joined #ruby
Ontolog has joined #ruby
Kirotan has quit [Ping timeout: 245 seconds]
supki has joined #ruby
cobragoat has quit [Ping timeout: 252 seconds]
dankest has joined #ruby
yann_ck has joined #ruby
palyboy has quit []
yannis has quit [Quit: Bye!]
emocakes has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby
pi3r has joined #ruby
bonty_ssh has quit [Remote host closed the connection]
timmow_ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
alup has joined #ruby
maxmanders has quit [Client Quit]
kofno has joined #ruby
Kirotan has joined #ruby
bonty_ssh has joined #ruby
KevinSjoberg has joined #ruby
Hanmac has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
lmf40 has joined #ruby
TheFuzzball has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
twoism has quit [Ping timeout: 245 seconds]
Hanmac has quit [Remote host closed the connection]
maxmanders has joined #ruby
yann_ck has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
dr_bob has joined #ruby
mneorr has joined #ruby
pioz has joined #ruby
rburton- has joined #ruby
matayam has joined #ruby
blacktulip has joined #ruby
Beoran has joined #ruby
Al___ has joined #ruby
DrCode has quit [Remote host closed the connection]
thatRD has joined #ruby
Burgestrand has joined #ruby
Ontolog has quit [Remote host closed the connection]
snearch has joined #ruby
DrCode has joined #ruby
ttt has quit [Read error: Connection reset by peer]
ttt has joined #ruby
robscomputer has quit [Ping timeout: 276 seconds]
toekutr has quit [Remote host closed the connection]
knapper_tech has quit [Read error: Operation timed out]
Hanmac has joined #ruby
vlad_starkov has joined #ruby
bigkevmcd has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
Rumsteak has quit [Quit: Rumsteak]
m8 has joined #ruby
bigkevmcd has joined #ruby
buscon has joined #ruby
k610 has joined #ruby
k611 has joined #ruby
enriclluelles has joined #ruby
pavilionXP has joined #ruby
camilasan has joined #ruby
vlad_starkov has joined #ruby
k610 has quit [Client Quit]
k611 has quit [Client Quit]
tjbiddle_ has joined #ruby
sk87 has joined #ruby
ant384 has joined #ruby
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
beiter has joined #ruby
apeiros has joined #ruby
niceguyjames has joined #ruby
elaptics`away is now known as elaptics
swex has joined #ruby
paper__ has joined #ruby
paper_ has quit [Read error: Connection reset by peer]
Neandre has joined #ruby
pyrac has joined #ruby
Morkel has joined #ruby
swex_ has quit [Ping timeout: 276 seconds]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
lkba has quit [Ping timeout: 252 seconds]
Nahra has quit [Ping timeout: 256 seconds]
ananthakumaran1 has joined #ruby
a_a_g has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 252 seconds]
hmarr has joined #ruby
monkegjinni has joined #ruby
ephemerian has joined #ruby
razibog has joined #ruby
Sacha_ has joined #ruby
Zai00 has joined #ruby
Neandre has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
a_a_g has quit [Quit: Leaving.]
chussenot has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
decoponio has joined #ruby
kofno has joined #ruby
Morkel has quit [Quit: Morkel]
monkegji_ has joined #ruby
dankest has quit [Quit: Leaving...]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
monkegjinni has quit [Read error: Operation timed out]
kofno has quit [Ping timeout: 252 seconds]
threesome has joined #ruby
slainer68 has joined #ruby
emptyflask has quit [Remote host closed the connection]
Andromeda has quit [Remote host closed the connection]
tootooroo has quit [Ping timeout: 256 seconds]
Bry8Star_ has quit [Ping timeout: 276 seconds]
jrn has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<jrn> hi, I want to know how to create class header methods. Like you may now from Ruby On Rails the "before_filter"-method, how to define such methods?
Yakko has quit [Ping timeout: 264 seconds]
Morkel has joined #ruby
yugui_zzz is now known as yugui
<apeiros> def self.before_filter
<apeiros> or define them in a module and do `extend YourModuleName`
<apeiros> @ jrn
<jrn> so it must be a class method?
yann_ck has joined #ruby
<jrn> I write a pastie, sec
vlad_starkov has quit [Remote host closed the connection]
zastern has joined #ruby
<jrn> this is what I meant
<jrn> or is it that simple that is just must be a class method then?
br4ndon has joined #ruby
hmarr has quit []
danslo has quit [Quit: danslo]
<Mon_Ouie> Yes. When you're inside the class body, self is the class
<jrn> I know, and class methods I can use like attr_accessor in the pastie sample?
mneorr_ has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby
rdark has joined #ruby
<Mon_Ouie> Yes, because methods calls like those are implicitly sent to self
<Mon_Ouie> So it's almost like having MyClass.before_filter :whatever
mneorr has quit [Ping timeout: 276 seconds]
senayar has quit [Ping timeout: 264 seconds]
blaxter_ has joined #ruby
Bry8Star has joined #ruby
josh__ has joined #ruby
mengu has joined #ruby
JonnieCache has quit [Quit: Reconnecting]
JonnieCache has joined #ruby
drale2k has quit [Quit: Leaving...]
heliumsocket has quit [Quit: heliumsocket]
timmow_ has quit [Remote host closed the connection]
miso1337 has quit [Quit: unplugging]
senayar has joined #ruby
nari has quit [Ping timeout: 252 seconds]
hmarr has joined #ruby
<josh__> anyone able to help me with a no method error im getting with this? to do with post / get
hmarr has quit [Client Quit]
<Mon_Ouie> What is the error you're getting?
foobArrr has quit [Quit: bye]
maletor has quit [Quit: Computer has gone to sleep.]
megha has joined #ruby
maletor has joined #ruby
baba has quit [Ping timeout: 264 seconds]
monkegji_ has quit [Remote host closed the connection]
monkegjinni has joined #ruby
sonda has joined #ruby
<josh__> Mon_Ouie, config.ru:20:in `block in <main>': undefined method `post' for #<Rack::Builder:0x000000012d8df8> (NoMethodError)
answer_42 has joined #ruby
<Mon_Ouie> Are you trying to use sinatra?
hmarr has joined #ruby
<Mon_Ouie> If so, you'll probably need to require it before you can use it ;)
Rumsteak has joined #ruby
gyre007 has joined #ruby
<josh__> i am yes
<josh__> require what exactly?
<josh__> require sinatra ?
<Mon_Ouie> Yes
<josh__> you do man! :)
<josh__> balls, tht fixed the error
<josh__> thank you Mon_Ouie :)
<josh__> but it's still not asking me for auth
monkegjinni has quit [Remote host closed the connection]
Elhu has joined #ruby
eka has joined #ruby
nomenkun has joined #ruby
vlad_starkov has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
blaxter_ is now known as blaxter
robustus has joined #ruby
baphled has joined #ruby
mose_ is now known as mose
ananthakumaran has joined #ruby
Weazy has quit [Quit: leaving]
Weazy has joined #ruby
Rumsteak has quit [Quit: Rumsteak]
skroon has quit [Ping timeout: 245 seconds]
Weazy has quit [Client Quit]
kofno has joined #ruby
ananthakumaran1 has quit [Ping timeout: 264 seconds]
himsin has quit [Ping timeout: 252 seconds]
melnik has joined #ruby
melnik has quit [Remote host closed the connection]
melnik has joined #ruby
Xeago has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
tevio has joined #ruby
peta_ has joined #ruby
paper__ has quit [Remote host closed the connection]
chandankumar has quit [Quit: Leaving]
peta_ has left #ruby [#ruby]
peta_ has joined #ruby
rawng has quit [Quit: WeeChat 0.4.1-dev]
lewix has quit [Remote host closed the connection]
tonini has quit [Remote host closed the connection]
marcdel has quit []
melnik has quit [Remote host closed the connection]
melnik has joined #ruby
shreya has joined #ruby
hamed_r has quit [Quit: Leaving]
<shreya> hi all , i was installing ruby on ubuntu raring , and used $ \curl -L https://get.rvm.io | bash -s stable --ruby to install it. However , it told me taht W: Failed to fetch http://archive.canonical.com/ubuntu/dists/oneiric/Release Unable to find expected entry 'partnerdeb-src/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
<shreya> E: Some index files failed to download. They have been ignored, or old ones used instead
<shreya> How do I remove this error ?
tootooroo has joined #ruby
BSaboia has joined #ruby
foobArrr has joined #ruby
<JonnieCache> thats a very specific error. maybe ask in the rvm channel
<shreya> oh ok
pcarrier has joined #ruby
<JonnieCache> i hear theyre very helpful
skroon has joined #ruby
timmow_ has joined #ruby
admin0 has joined #ruby
snearch has quit [Quit: Verlassend]
marcgg has quit [Ping timeout: 256 seconds]
xpen has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
lkba has joined #ruby
maxmanders has joined #ruby
marcgg has joined #ruby
camilasan has quit [Remote host closed the connection]
Zeev__ has joined #ruby
maxmanders has quit [Client Quit]
lmx has quit [Quit: lmx]
jlebrech has joined #ruby
<jlebrech> is there a framework agnostic generator dsl?
maxmanders has joined #ruby
Zeev_ has quit [Ping timeout: 252 seconds]
marcgg has quit [Ping timeout: 246 seconds]
LennyLinux has joined #ruby
<JonnieCache> eh?
<JonnieCache> what are you generating?
<jlebrech> adding sequel migrations in a ramaze app
<JonnieCache> so you want to generate sequel migrations independantly of your web framework?
Rumsteak has joined #ruby
<jlebrech> not sure
marcgg has joined #ruby
<jlebrech> i want the gem to have models and to be able to rake the migrations
<JonnieCache> well sequel doesnt have migration generators like activerecord
<JonnieCache> you kind of have to make that stuff yourself, its annoying
<jlebrech> i've built one
<jlebrech> not all myself mind, there was a gist for it
<jlebrech> just tweaked it to be more ramazing
vlad_starkov has quit [Remote host closed the connection]
<JonnieCache> well i dont really undestand what you need then :)
nkr has joined #ruby
<jlebrech> where would you put the migrations?
<jlebrech> in the gem, and how do you run them?
<jlebrech> wouldn't you need to generate those migration into the db/migrations folder of the app
chendo_ has quit [Quit: Leaving...]
chandankumar_ has joined #ruby
freeayu__ has joined #ruby
Macaveli has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
chandankumar_ has quit [Quit: Leaving]
<jlebrech> need to sit down and try this out myself
a_a_g has joined #ruby
a_a_g has quit [Client Quit]
<JonnieCache> yeah put them in a db/migrations folder
jon_than_ has joined #ruby
<JonnieCache> or wherever you feel really
maxmanders has quit [Quit: Computer has gone to sleep.]
a_a_g has joined #ruby
chendo_ has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
Demux has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
Gruu_ has joined #ruby
xpen has quit [Ping timeout: 252 seconds]
melnik has quit [Remote host closed the connection]
melnik has joined #ruby
Demux has joined #ruby
Gruu_ has quit [Read error: Connection reset by peer]
qohelet_ has joined #ruby
ij has quit [Quit: WeeChat 0.3.9.2]
love_color_text has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
maxmanders has joined #ruby
jprovazn has quit [Quit: Leaving]
monkegji_ has joined #ruby
<jlebrech> JonnieCache, In the db/migrations folder of my gem? what's the convention? keep gem migration in the gem. how do you run them from the gem? just put the rakefile in mygem/bin ?
admin0 has quit [Read error: Connection reset by peer]
kofno has joined #ruby
<JonnieCache> hmmm you would need some kind of rake task that copies them into the app's migrations folder
<JonnieCache> it would need to rewrite the dates in the filenames when it did that
<JonnieCache> rails has a whole system for this, you could check it out for ideas
monkegjinni has quit [Ping timeout: 264 seconds]
Macaveli has quit [Quit: This computer has gone to sleep]
charliesome_ has joined #ruby
charliesome_ is now known as charliesome
chase-work has joined #ruby
camilasan has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
sayan has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
br4ndon_ has joined #ruby
rickruby has quit [Remote host closed the connection]
<marwinism> uhm, after I updated my .vimrc and ruby now has problems loading gems, because it's looking for a file with <gemname>. any clues what's fubar?
rickruby has joined #ruby
Macaveli has joined #ruby
vise890 has joined #ruby
LaPetiteFromage has joined #ruby
maxmanders has joined #ruby
ngcazz has joined #ruby
k610 has joined #ruby
br4ndon has quit [Ping timeout: 260 seconds]
melnik has quit [Remote host closed the connection]
<ngcazz> hi
melnik has joined #ruby
Domon has quit [Remote host closed the connection]
rickruby has quit [Ping timeout: 245 seconds]
paper_ has joined #ruby
Sacha_ has quit [Ping timeout: 256 seconds]
blaxter has quit [Ping timeout: 276 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
<jlebrech> JonnieCache, this seems to be what i want. http://stackoverflow.com/questions/1878640/including-rake-tasks-in-gems
<jlebrech> I can then keep my migrations in the gem
<jlebrech> not have to "generate" the into the app
postmodern has quit [Quit: Leaving]
Zai00 has quit [Quit: Zai00]
blaxter_ has joined #ruby
<ngcazz> jlebrech: heh thanks for linking this
<ngcazz> just what i'll be needing later
<jlebrech> ngcazz, really?
<jlebrech> nice
<ngcazz> hehe
<ngcazz> yeah
chandankumar has joined #ruby
sayan has quit [Read error: Connection reset by peer]
lewix has joined #ruby
chussenot has quit [Quit: chussenot]
shreya has quit [Remote host closed the connection]
rezzack has quit [Quit: Leaving.]
cha1tanya has joined #ruby
jtperreault has joined #ruby
jnoob22 has joined #ruby
jnoob22 has quit [Remote host closed the connection]
jnoob22 has joined #ruby
love_color_text has joined #ruby
Macaveli has quit [Quit: This computer has gone to sleep]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
Macaveli has joined #ruby
lewix has quit [Ping timeout: 252 seconds]
Rumsteak has quit [Quit: Rumsteak]
Zai00 has joined #ruby
yann_ck has quit [Quit: Computer has gone to sleep.]
chiel has joined #ruby
chiel has quit [Client Quit]
pyrac has quit [Read error: Operation timed out]
chiel has joined #ruby
Astral_ has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
akashj87 has joined #ruby
soulofpeace has quit [Ping timeout: 264 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
blaxter_ is now known as blaxter
love_color_text has quit [Ping timeout: 252 seconds]
tekacs has quit [Quit: Disappearing... *poof*]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
melnik has quit [Remote host closed the connection]
melnik has joined #ruby
kofno has joined #ruby
nightfalcon has quit [Ping timeout: 256 seconds]
sleetdrop has quit [Ping timeout: 255 seconds]
zastern has quit [Remote host closed the connection]
huoxito has joined #ruby
zastern has joined #ruby
vise890 has quit [Remote host closed the connection]
yann_ck has joined #ruby
tekacs has joined #ruby
Amnesthesia has quit [Remote host closed the connection]
endure has quit [Quit: leaving]
lmx has joined #ruby
freeayu__ has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby
zastern has quit [Ping timeout: 255 seconds]
elektronaut has quit [Ping timeout: 260 seconds]
freeayu__ has joined #ruby
martinklepsch has joined #ruby
akashj87 has quit [Ping timeout: 252 seconds]
Vivekananda has quit [Remote host closed the connection]
hiyakashi has joined #ruby
tvw has joined #ruby
ananthakumaran1 has joined #ruby
tootooroo has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
tootooroo has joined #ruby
p8952 has joined #ruby
elektronaut has joined #ruby
kofno has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
chussenot has joined #ruby
kofno has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
blaxter_ has joined #ruby
melnik has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
paper_ has quit [Remote host closed the connection]
reset has quit [Ping timeout: 245 seconds]
DarkFoxDK has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 255 seconds]
dsdeiz has joined #ruby
dsdeiz_ has quit [Read error: Connection reset by peer]
dmerrick has joined #ruby
jtperreault has quit [Quit: WeeChat 0.4.0]
endure has joined #ruby
cantonic_ has joined #ruby
chussenot has quit [Quit: chussenot]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
jtperreault has joined #ruby
classix has quit [Ping timeout: 246 seconds]
atno has quit [Ping timeout: 246 seconds]
paper_ has joined #ruby
timmow has quit [Remote host closed the connection]
classix has joined #ruby
chussenot has joined #ruby
timmow has joined #ruby
p8952 has quit [Remote host closed the connection]
tommyvyo has joined #ruby
dmerrick has quit [Ping timeout: 252 seconds]
DarkFoxDK has joined #ruby
dmiller has joined #ruby
workmad3 has joined #ruby
LaPetiteFromage has joined #ruby
sailias has quit [Quit: Leaving.]
airtonix_ has joined #ruby
freeayu__ has quit [Ping timeout: 264 seconds]
timmow has quit [Ping timeout: 252 seconds]
airtonix has quit [Ping timeout: 245 seconds]
freeayu has joined #ruby
vlad_starkov has joined #ruby
bonty_ssh has quit [Remote host closed the connection]
dustint has joined #ruby
shellox_ has quit [Quit: Computer has gone to sleep.]
pcarrier has quit [Ping timeout: 264 seconds]
yshh has quit [Remote host closed the connection]
chendo__ has quit [Quit: Computer has gone to sleep.]
Spooner_ has joined #ruby
palyboy has joined #ruby
maxmanders has joined #ruby
pcarrier has joined #ruby
csaunders has joined #ruby
csaunders has quit [Client Quit]
tommyvyo has quit [Quit:]
csaunders has joined #ruby
chussenot has quit [Quit: chussenot]
dsdeiz_ has joined #ruby
maxmanders has quit [Client Quit]
Neandre has joined #ruby
Spooner_ has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 252 seconds]
dsdeiz has quit [Ping timeout: 256 seconds]
lewix has joined #ruby
Spooner_ has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
swex has quit [Remote host closed the connection]
quazimodo has joined #ruby
swex has joined #ruby
divout has quit [Remote host closed the connection]
danslo has joined #ruby
maxmanders has joined #ruby
atno has joined #ruby
marcgg_ has joined #ruby
marcgg has quit [Ping timeout: 264 seconds]
al3xnull has joined #ruby
chussenot has joined #ruby
gyre008 has joined #ruby
Bofu2U has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
mark_locklear has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
monkegji_ has quit [Remote host closed the connection]
dustint has quit [Remote host closed the connection]
krz has quit [Quit: krz]
monkegjinni has joined #ruby
Spooner_ has quit [Remote host closed the connection]
FND has joined #ruby
yashshah__ has quit [Ping timeout: 248 seconds]
mneorr_ has quit [Remote host closed the connection]
<FND> hi - is there a way to intercept/hijack Foo::Bar to report an error? I wanna deprecate the entire Foo namespace, but method_missing alone doesn't suffice
jtperreault has left #ruby ["WeeChat 0.3.7"]
jtperreault has joined #ruby
<paper_> FND: const_missing?
<FND> paper_: I'll try that, thanks
<FND> that works, thank you paper_
<paper_> np
sayan has joined #ruby
p8952 has joined #ruby
carloslopes has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
bonty_ssh has joined #ruby
mneorr has joined #ruby
niceguyjames has joined #ruby
arya has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
v0n has joined #ruby
F1skr has joined #ruby
sambao21 has joined #ruby
jkamenik has joined #ruby
nezumi has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
monkegji_ has joined #ruby
forced_request has joined #ruby
dustint has joined #ruby
osvico has joined #ruby
knapper_tech has joined #ruby
m8 has quit [Quit: Sto andando via]
welandB has quit []
anonymuse has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
maxmanders has joined #ruby
bonty_ssh has quit [Ping timeout: 246 seconds]
skroon has quit [Ping timeout: 252 seconds]
monkegji_ has quit [Remote host closed the connection]
monkegjinni has joined #ruby
yashshah has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
angusiguess has joined #ruby
jpfuentes2 has joined #ruby
NiteRain has quit [Ping timeout: 264 seconds]
geekbri has joined #ruby
tk_ has joined #ruby
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
sailias has quit [Quit: Leaving.]
ExxKA has joined #ruby
pavilionXP has quit [Ping timeout: 252 seconds]
al3xnull has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
jonathanwallace has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
filipe has quit [Ping timeout: 252 seconds]
Kruppe has joined #ruby
maxmanders has joined #ruby
Czupa has joined #ruby
slainer68 has joined #ruby
divout has joined #ruby
hogeo has quit [Remote host closed the connection]
sayan has joined #ruby
sonda has quit [Remote host closed the connection]
a_a_g has quit [Quit: This computer has gone to sleep]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #ruby
arya_ has joined #ruby
Whoop has quit [Quit: Gone]
jibi has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
Whoop has joined #ruby
Whoop has quit [Changing host]
Whoop has joined #ruby
filipe has joined #ruby
arya__ has joined #ruby
perlea has joined #ruby
arya has quit [Ping timeout: 248 seconds]
arya__ is now known as arya
chandankumar has quit [Ping timeout: 240 seconds]
justsee has quit [Ping timeout: 252 seconds]
hmarr has quit []
solidoodlesuppor has joined #ruby
wolcanus has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Spooner_ has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
Czupa has quit [Remote host closed the connection]
ntzrmtthihu777 has joined #ruby
oponder has joined #ruby
wargasm1 has joined #ruby
yshh has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
br4ndon_ has quit [Ping timeout: 252 seconds]
jerius has joined #ruby
huttan has joined #ruby
wargasm has quit [Ping timeout: 256 seconds]
ixti has joined #ruby
<ntzrmtthihu777> anyone here familiar with rubysdl?
<peta_> Is it possible to do something like:
matchaw has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
<paper_> ntzrmtthihu777: wh do u want to use that, there's usually better options like libgosu.org
matchaw has joined #ruby
FND has left #ruby [#ruby]
yshh has quit [Ping timeout: 252 seconds]
devurandom has joined #ruby
<devurandom> Hello!
ExxKA has quit [Quit: This computer has gone to sleep]
asphxia^^ has joined #ruby
ngcazz has quit [Ping timeout: 245 seconds]
<devurandom> I have a key/value map with values being strings of hexadecimal numbers. But some are among them, which are not (e.g. one is true) - how do I filter them out?
<devurandom> Can I test whether an object is a string or convertible into one?
seoaqua has quit [Quit: 离开]
maxmanders has quit [Quit: Computer has gone to sleep.]
<hoelzro> devurandom: aren't all Ruby objects convertable to strings?
<tobiasvl> and yes, all Ruby objects have a string representation, so that's not the best thing to check
<peta_> Is it possible in Ruby to write something like this: https://gist.github.com/peta/a8f66b8b9ecb1d3921aa
philcrissman has joined #ruby
maxmanders has joined #ruby
chendo__ has joined #ruby
<tobiasvl> sure
<tobiasvl> have the initializer take an optional block as parameter
breakingthings has joined #ruby
zastern has joined #ruby
<devurandom> hoelzro: I get this error, which is why I want to introduce the check: in `pack': can't convert true into String (TypeError)
<Hanmac> devurandom:
<Hanmac> >> ["1","!","2"].select{|e| Integer(e) rescue false }
<eval-in> Hanmac => ["1", "2"] (http://eval.in/15836)
_nitti has joined #ruby
lewix has quit [Remote host closed the connection]
<devurandom> And for a map I would to .select{|k,v| Integer(v) rescue false} ?
chandankumar has joined #ruby
<peta_> tobiasvl: but why does e.g. this NOT work? x = String.new('abc') {|s| s.upcase! }
<Spooner_> peta_, Yes, you can have "yield self if block_given?" in the #initialize
<tobiasvl> peta_: uh why would that work?
<Spooner_> peta_, Because String doesn't yield. In a lot of cases, it doesn't make sense.
mattbl has joined #ruby
<peta_> Spooner_: aah, okay … so support for this syntax must be explicitly added to the initializer method, right?
<Spooner_> peta_, What you want in that case would be "abc".upcase which does the same thing.
<devurandom> s/to/do/
<Spooner_> peta_, Yep.
<Hanmac> devurandom: if i onderstand you right, you have strings, and you want to find the numbers of the strings?
<devurandom> Hanmac: I have this: {"hash1"=>"X", "submitold"=>true, "data"=>"X", "midstate"=>"X", "target"=>"X"} and code from someone else that does "v = [v].pack('H*')"
<peta_> My example with the String is senseless sure, just used it to test in irb
<devurandom> Hanmac: That code throws the TypeError quoted above, so I want to workaround it.
huoxito has quit [Ping timeout: 252 seconds]
<peta_> Spooner_, tobiasvl thx
<Spooner_> peta_, In a lot of cases, you can just chain methods instead. E.g. "abc ".upcase.strip.tr("A", "Z"), etc.
<Hanmac> devurandom: "v = [v.to_s].pack('H*')"
idkazuma has joined #ruby
<ntzrmtthihu777> paper_: its part of some code I have inherited, so its not exactly my choice ^^'
<Spooner_> peta_, If you need that functionality, you can use #tap. in your example, "abc".tap {|string| string.upcase! } (again pointless code).
<devurandom> Hm, I just did: "next if not v.is_a? String"
ejnahc has quit [Quit: leaving]
cha1tanya has quit [Ping timeout: 260 seconds]
tubbo has joined #ruby
mmitchell has joined #ruby
mattbl has quit [Client Quit]
<devurandom> Hanmac: But your way works, too. Thanks.
invisime has joined #ruby
failshell has joined #ruby
<devurandom> I just hope the other end (probably C code) does not expect the char[] to be convertible into a number... Otherwise this could result in some damage.
newUser1234 has joined #ruby
verysoftoiletppr has joined #ruby
ejnahc has joined #ruby
ejnahc has quit [Client Quit]
csaunders has quit [Quit: Computer has gone to sleep.]
ttt has quit [Remote host closed the connection]
akemrir has joined #ruby
realDAB has joined #ruby
gaahrdner has joined #ruby
ejnahc has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
kofno has quit [Remote host closed the connection]
greenarrow has quit [Ping timeout: 245 seconds]
drale2k has joined #ruby
adam12 has joined #ruby
<withnale> having trouble instailling ruby-debug-ide on rvm for ruby 2.0.0... It bombs out but there are no errors in the logs... It just says...
<paper_> Spooner_: haha is it true that rentacoder doesn't do ruby?
<withnale> /usr/local/rvm/rubies/ruby-2.0.0-p0/bin/ruby mkrf_conf.rb
<withnale> Building native extensions. This could take a while...
hmarr has joined #ruby
<withnale> I can't seem to find anything online
zastern has quit [Remote host closed the connection]
<Spooner_> paper_, rentacoder?
EPIK has quit [Ping timeout: 245 seconds]
zastern has joined #ruby
<paper_> Spooner_: http://www.rent-acoder.com/ i thought this was the one u used?
<Spooner_> No, I'm on elance.com, guru.com and odesk.com
thatRD has quit [Quit: thatRD]
<paper_> Spooner_: which is your fave of those?
<Spooner_> They all have advantages. elance seems to get me the most work, then odesk, then guru.
<Spooner_> Just got a job today from someone 30 miles away. The joy of internationalisation, eh? :D
heliumsocket has joined #ruby
tommyvyo has joined #ruby
<paper_> Spooner_: you're mostly working in python or ruby?
huoxito has joined #ruby
<Spooner_> Mostly Ruby, but that is because a lot of people just want an application, not a language, and I'll always pick Ruby by choice.
sleetdrop has joined #ruby
sailias has joined #ruby
droppedonmyhead has joined #ruby
chussenot has quit [Quit: chussenot]
heliumsocket has quit [Client Quit]
Shrink has quit [Read error: Connection reset by peer]
maxmanders has quit [Quit: Computer has gone to sleep.]
zastern has quit [Ping timeout: 255 seconds]
<Spooner_> paper_, I'm mainly doing small jobs though, so I'm actually not making a great deal. Still, it is better than nothing.
sambao21 has joined #ruby
e-dard has quit [Quit: ZNC - http://znc.in]
thernull has joined #ruby
thernull has quit [Client Quit]
maxmanders has joined #ruby
bluefish_ has joined #ruby
mando_ has joined #ruby
<bluefish_> is there a shorter way to do thsi?
br4ndon has joined #ruby
skroon has joined #ruby
<Spooner_> bluefish_, excel = WIN32OLE::connect('excel.Application') || excel = WIN32OLE::new('excel.Application')
adamjleonard has joined #ruby
cmarques has joined #ruby
<Spooner_> bluefish_, oops, I meant: excel = WIN32OLE::connect('excel.Application') || WIN32OLE::new('excel.Application')
<bluefish_> adamjleonard: nice..
<bluefish_> Spooner_:
<bluefish_> nice
greenarrow has joined #ruby
bluefish_ has quit [Client Quit]
shreya has joined #ruby
hiyakashi has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
sayan has quit [Read error: Connection reset by peer]
theRoUS has quit [Ping timeout: 276 seconds]
monkegjinni has joined #ruby
skroon has quit [Ping timeout: 245 seconds]
blaxter_ is now known as blaxter
<shreya> hi there . I have a simple piece of ruby code that goes like http://pastebin.com/HEt6bUdB . However , doing ruby trends.rb on console gives me the following error 404 Resource Not Found (RestClient::ResourceNotFound) with a bunch of other things. Please help
<Spooner_> shreya, The problem is that that page is a 404 page (try it in a browser).
<shreya> oh
chussenot has joined #ruby
<Spooner_> Or rather the json equivalent of a 404 page.
akashj87 has joined #ruby
mjc1 has joined #ruby
keyvan has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
mjc1 is now known as mjc_
Scient has quit [Ping timeout: 248 seconds]
chipotle_ has joined #ruby
Animawish has quit [Quit: Animawish]
verysoftoiletppr has quit [Read error: Connection reset by peer]
verysoftoiletppr has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
a_a_g has joined #ruby
chrishunt has joined #ruby
rickruby has joined #ruby
newUser1234 has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
carraroj has left #ruby ["Konversation terminated!"]
codecop has quit [Remote host closed the connection]
jtharris has joined #ruby
<shreya> Spooner_: I tried replacing the url with this https://api.twitter.com/1.1/trends/closest.json ( page actually works) , but still I get the same error
lewix has joined #ruby
<Spooner_> shreya, That page gives me a Bad Authentication data error.
lewix has quit [Remote host closed the connection]
freeayu has quit [Remote host closed the connection]
jlast has joined #ruby
ixti has quit [Quit: WeeChat 0.4.0]
<shreya> Spooner_: How do i enable authentication then ?
<Spooner_> If you've logged in to twitter API in your browser, it will show the page, but your Ruby app won't be authenticated.
Scient has joined #ruby
mneorr has quit [Remote host closed the connection]
csaunders has joined #ruby
jpfuentes2 has joined #ruby
divout has quit [Ping timeout: 264 seconds]
<shreya> is there some oauth api for ruby or such ?
ariedler has joined #ruby
<Spooner_> You can just give the username and password with rest client.
Tarential has quit [Excess Flood]
<shreya> ok
ph^ has quit [Remote host closed the connection]
Tarential has joined #ruby
<Spooner_> e.g. RestClient.get 'https://user:password@example.com/private/resource'
daddycat has joined #ruby
divout has joined #ruby
jpcamara has joined #ruby
<Spooner_> Though if you are making many requests, it is probably better to go with the ActiveResource style API: https://github.com/rest-client/rest-client
arya has quit [Ping timeout: 248 seconds]
Dreamer3 has joined #ruby
arya has joined #ruby
A124 has quit [Read error: Connection reset by peer]
Morkel has quit [Quit: Morkel]
A124 has joined #ruby
<shreya> Spooner_: ok, thanks
bluefish has joined #ruby
monkegji_ has joined #ruby
<bluefish> hi, i was in here a few mins ago.. I tried the code that was suggested and get this error
monkegji_ has quit [Remote host closed the connection]
monkegjinni has quit [Read error: No route to host]
mattbl has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
generalissimo has joined #ruby
monkegjinni has joined #ruby
interactionjaxsn has joined #ruby
puppeh has quit [Remote host closed the connection]
<Spooner_> bluefish, Was the original code working?
<Spooner_> And use 2-space, not hard tab. Looks nicer in pastes ;)
<bluefish> Spooner_: well previously I had just a connect and personally opened the excel so i didn't have the option of new or connect
tommyvyo has quit [Quit:]
<Spooner_> Blue_Ice, Have you considered just dealing with Excel files directly rather than going in via OLE?
cmarques has quit [Ping timeout: 252 seconds]
<bluefish> Spooner_: I would prefer to use OLE here
heliumsocket has joined #ruby
<Spooner_> However, if connect fails if it can't find a running version, you probably want:
<Spooner_> excel = WIN32OLE::connect('excel.Application') rescue WIN32OLE::new('excel.Application')
angusiguess has joined #ruby
mklappstuhl has quit [Ping timeout: 248 seconds]
NiteRain has joined #ruby
yshh has joined #ruby
<Spooner_> That way, if connect raises an exception, then it will try new instead.
<bluefish> Spooner_: nice, that's exactly what I wanted
<bluefish> yeah
chendo_ has quit [Quit: Leaving...]
<Spooner_> The other code was assuming that connect returned nil if it didn't connect.
v0n has joined #ruby
<Spooner_> (both the original if/else and my one using ||).
<bluefish> Spooner_: yeah, saw that, didn't know how to get around it
<bluefish> learn something new everyday
<bluefish> tks
huttan has quit [Read error: Operation timed out]
droppedonmyhead has quit [Quit: droppedonmyhead]
Burgestrand has joined #ruby
cbot_ has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
Neomex has joined #ruby
Apathetic has joined #ruby
Neomex has quit [Client Quit]
DrShoggoth has quit [Read error: No route to host]
arya__ has joined #ruby
<Spooner_> Goodo!
Heero has quit [Ping timeout: 256 seconds]
artm has joined #ruby
paper_ has quit [Remote host closed the connection]
arya__ has quit [Client Quit]
artm has left #ruby [#ruby]
arya has quit [Ping timeout: 248 seconds]
Banistergalaxy has joined #ruby
<peta_> When I have a "class path" as string like 'RDF::Query::Solution' … how can I reliably check if that class actually exists?
arya has joined #ruby
rismoney has joined #ruby
huttan has joined #ruby
<hoelzro> defined, I think
<hoelzro> >> defined? Object
<eval-in> hoelzro => "constant" (http://eval.in/15840)
<hoelzro> >> defined? RDF::Query
<eval-in> hoelzro => nil (http://eval.in/15841)
<hoelzro> \o/
jibi has quit [Quit: .]
mando_ has quit [Remote host closed the connection]
evenix has joined #ruby
kofno has joined #ruby
martxel has quit [Changing host]
martxel has joined #ruby
chrisnicola has joined #ruby
<Banistergalaxy> Hoelzro when will you cast off the perl taint and embrace ruby as your new home
tesuki has joined #ruby
<hoelzro> hehe, Perl taint
<hoelzro> was that pun intentional?
benlieb has joined #ruby
<peta_> hoelzro: but this doesn't seems work when I have the class path as STRING (as opposed to the constantized usage in your example)
<Banistergalaxy> No actually
<hoelzro> Banistergalaxy: when I can find a task that Ruby is better for than Perl =P
noop has quit [Remote host closed the connection]
<hoelzro> peta_: you may be able to use const_defined?
casheew has quit [Read error: Connection reset by peer]
<Banistergalaxy> Hoelzro chicks dig ruby
<hoelzro> heh
casheew has joined #ruby
beiter has quit [Quit: beiter]
<hoelzro> ok, const_defined? will not work
Shrink has joined #ruby
<hoelzro> you can, however, split by '::' and call const_defined?/const_get
<hoelzro> peta_: ^
mklappstuhl has joined #ruby
Sacha_ has joined #ruby
bluefish has quit [Ping timeout: 245 seconds]
kpshek has joined #ruby
Neandre has quit [Ping timeout: 252 seconds]
BSaboia has joined #ruby
tagrudev has quit [Remote host closed the connection]
<Banistergalaxy> Hoelzro could just use eval() ;)
<hoelzro> =(
ariedler has quit [Remote host closed the connection]
e-dard has joined #ruby
rickruby has joined #ruby
MrZYX|off is now known as MrZYX
uris has joined #ruby
dsdeiz_ has quit [Ping timeout: 252 seconds]
zmanfx has quit [Ping timeout: 245 seconds]
monkegji_ has joined #ruby
soulofpeace has joined #ruby
rudisimo has joined #ruby
tethra has joined #ruby
monkegj__ has joined #ruby
monkegjinni has quit [Read error: No route to host]
zmanfx has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
F1skr has quit [Read error: Operation timed out]
heliumsocket has quit [Quit: heliumsocket]
knapper_tech has quit [Ping timeout: 264 seconds]
supergiantrobot has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
F1skr has joined #ruby
braoru has quit [Quit: Leaving]
Macaveli has quit [Read error: Operation timed out]
rickruby has quit [Ping timeout: 246 seconds]
ariedler has joined #ruby
robscomputer_ has joined #ruby
Czupa has joined #ruby
nateberkopec has joined #ruby
arya has quit [Read error: Connection reset by peer]
chrisnicola has quit [Quit: This computer has gone to sleep]
girija has quit [Ping timeout: 252 seconds]
arya has joined #ruby
Macaveli has joined #ruby
wesside has joined #ruby
wesside has quit [Remote host closed the connection]
zastern has joined #ruby
e-dard has quit [Quit: ZNC - http://znc.in]
aganov has quit [Quit: aganov]
e-dard has joined #ruby
chandankumar has quit [Quit: Leaving]
ttt has joined #ruby
Neandre has joined #ruby
shreya has quit [Ping timeout: 260 seconds]
tootubular has joined #ruby
nezumi has joined #ruby
cha1tanya has joined #ruby
kofno has quit [Remote host closed the connection]
newUser1234 has joined #ruby
enebo has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
cearls has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
cearls has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
cmarques has joined #ruby
theRoUS has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
Macaveli has left #ruby ["Leaving"]
k611 has joined #ruby
rowsdower has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
monkegj__ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
mando_ has joined #ruby
ffranz has joined #ruby
acrussell has joined #ruby
k610 has quit [Ping timeout: 245 seconds]
mneorr has quit [Ping timeout: 252 seconds]
fenak has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
camilasan has joined #ruby
sleetdrop has quit [Ping timeout: 252 seconds]
decoponio has quit [Quit: Leaving...]
rdev has joined #ruby
chrisnicola has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
a_a_g has quit [Quit: This computer has gone to sleep]
jeffreylevesque has joined #ruby
tomsthumb has quit [Quit: Leaving.]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pyrac has joined #ruby
_maes_ has joined #ruby
droppedonmyhead has joined #ruby
wsad has joined #ruby
maxmanders has joined #ruby
ckrailo has joined #ruby
pitzips has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
drale2k has quit [Quit: Leaving...]
erpe has quit [Remote host closed the connection]
jbueza has joined #ruby
endzyme has joined #ruby
v0n has quit [Ping timeout: 240 seconds]
mneorr has joined #ruby
endzyme has quit [Remote host closed the connection]
Vainoharhainen has quit [Quit: Leaving...]
endzyme has joined #ruby
endzyme has quit [Remote host closed the connection]
endzyme has joined #ruby
etcetera has joined #ruby
Ontolog has joined #ruby
bean has joined #ruby
dr_bob has quit [Quit: Leaving.]
sleetdrop has joined #ruby
ananthakumaran has joined #ruby
chrisnicola has left #ruby ["Leaving"]
dr_bob has joined #ruby
julian-delphiki has quit [Ping timeout: 264 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
bean__ has joined #ruby
paper_ has joined #ruby
brennanMKE has joined #ruby
lewix has joined #ruby
Heero has quit [Ping timeout: 240 seconds]
kalleth_ is now known as kalleth
chussenot has quit [Quit: chussenot]
nateberkopec has joined #ruby
drale2k has joined #ruby
oponder has quit [Remote host closed the connection]
thetristan has joined #ruby
gaahrdner has quit [Remote host closed the connection]
chussenot has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
soulofpeace has quit [Ping timeout: 276 seconds]
dmiller has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
<Spooner_> peta_, "A::B".split("::").inject(Object) {|m, e| m.const_get e if m && m.const_defined?(e) } #=> A Module/Class or nil
buscon has quit [Quit: Leaving]
Zolo has joined #ruby
lewix has quit [Ping timeout: 252 seconds]
monkegji_ has joined #ruby
monkegji_ has quit [Remote host closed the connection]
ph^ has joined #ruby
<peta_> Spooner_: great … thx
knapper_tech has joined #ruby
<reactormonk> Banistergalaxy, you need to add .DS_Store to your global gitignore
_veer has quit [Ping timeout: 256 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
chussenot has quit [Client Quit]
<paper_> Spooner_: did u see this cool 2.0 trick https://gist.github.com/banister/34c7d9e7eb3e925a40e7
Zolo has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 276 seconds]
wolcanus has quit [Remote host closed the connection]
thebastl has quit [Ping timeout: 245 seconds]
ph^ has quit [Ping timeout: 252 seconds]
wsad has quit [Ping timeout: 264 seconds]
alexwh has quit [Quit: Quitting]
kofno has joined #ruby
maxmanders has joined #ruby
mikecmpbll has joined #ruby
tomsthumb has joined #ruby
<paper_> reactormonk: for what project
<Spooner_> paper_, So you can include only specific methods from a module? I can see use-cases, but if you need it, the module isn't designed well ;)
threesome has quit [Ping timeout: 245 seconds]
clocKwize has quit [Quit: clocKwize]
<paper_> Spooner_: well it enables a diffenent use-case for modules than the normal one, i think
v0n has joined #ruby
<paper_> Spooner_: maybe 'modules as traits' or sth
dmerrick has joined #ruby
rippa has joined #ruby
<Spooner_> Why does it require 2.0?
pduin has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
perun__ has quit [Quit: Leaving]
<paper_> Spooner_: cos 1.9.* doesn't let you transplant methods from modules to arbitrary objects
etcetera has quit []
perun0 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<Spooner_> Oh right.
cmarques has quit [Ping timeout: 245 seconds]
cr3 has joined #ruby
Uranio has joined #ruby
<cr3> how can I join two arrays? I tried the concat method but I'd like something that doesn't modify the original array
frem has joined #ruby
nomenkun has quit [Read error: Operation timed out]
hakunin_ is now known as hakunin
dmerrick has quit [Ping timeout: 256 seconds]
jhn has joined #ruby
sambio has joined #ruby
<mando_> cr3: new_array = first_array + second_array
Zolo has joined #ruby
<reactormonk> paper_, globally ;-)
ph^ has joined #ruby
soulofpeace has joined #ruby
casheew has joined #ruby
anderse has quit [Ping timeout: 252 seconds]
_maes_ has quit [Ping timeout: 264 seconds]
gaahrdner has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<paper_> reactormonk: globally?
workmad3 has joined #ruby
thetristan has quit [Quit: thetristan]
thetristan has joined #ruby
paper_ has quit [Read error: Connection reset by peer]
paper_ has joined #ruby
anderse has joined #ruby
Coolhand has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
rowsdower has left #ruby ["Konversation terminated!"]
casheew has joined #ruby
nateberkopec has quit [Ping timeout: 248 seconds]
jgrevich has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
ariedler has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
<paper_> reactormonk: what project r u referring to
xormancer has joined #ruby
ph^ has quit [Remote host closed the connection]
thetristan has quit [Client Quit]
Burgestrand has quit [Quit: Burgestrand]
tommyvyo has joined #ruby
nateberkopec has joined #ruby
casheew has joined #ruby
ariedler has joined #ruby
Coolhand has joined #ruby
interactionjaxsn has joined #ruby
maxmanders has joined #ruby
<paper_> reactormonk: haha, that's not my project
<paper_> it's some ugly piece of shit im just looking at
BoomCow has joined #ruby
<reactormonk> paper_, it did say 'create' not 'fork'
<paper_> reactormonk: i just uploaded it to github :)
<reactormonk> yeah, it doesn't have a readme. Not your quality. Accepted :-)
BoomCow has quit [Client Quit]
dr_bob has joined #ruby
dr_bob1 has joined #ruby
brennanMKE has quit [Remote host closed the connection]
puppeh has joined #ruby
dmerrick has joined #ruby
elux has joined #ruby
dr_bob has quit [Ping timeout: 252 seconds]
etcetera has joined #ruby
mikepack has joined #ruby
wolcanus has joined #ruby
alup has quit [Quit: Leaving]
randomautomator has joined #ruby
jpcamara has quit [Quit: Leaving.]
brennanMKE has joined #ruby
etcetera has quit [Client Quit]
mafolz has quit [Remote host closed the connection]
jkamenik has quit [Quit: Leaving.]
browndawg has joined #ruby
jkamenik has joined #ruby
tk_ has quit [Quit: ばいばい]
psyprus has quit [Ping timeout: 258 seconds]
<awc737> anyone run ruby on debian?
jhn has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
<awc737> I always have this error You don't have write permissions into the /var/lib/gems/1.9.1 directory
mityaz has joined #ruby
wolcanus has quit [Ping timeout: 252 seconds]
etcetera has joined #ruby
<reactormonk> awc737, yeah, use --user-install
chussenot has joined #ruby
dr_bob1 has quit [Quit: Leaving.]
frem has quit [Ping timeout: 276 seconds]
<awc737> sudo gem install --version '~> 0.9' rb-inotify --user-install
ngcazz has joined #ruby
<reactormonk> awc737, no sudo for --user-install
<reactormonk> that's bound to go wrong
<awc737> WARNING: You don't have /root/.gem/ruby/1.9.1/bin in your PATH,
<awc737> gem executables will not run.
<reactormonk> exactly.
<awc737> you said remove sudo
Zolo has quit [Remote host closed the connection]
ckrailo has quit [Ping timeout: 276 seconds]
wolcanus has joined #ruby
aapzak has quit [Read error: Operation timed out]
<awc737> what is the real issue?
<reactormonk> more context. You're not running as standard user, are you?
anonymuse has quit [Quit: Leaving...]
<awc737> I am running as myself
<awc737> not root
<reactormonk> then why does it want to go to /root ?
<awc737> I'm just trying to get Guard working
<reactormonk> it's never 'just' with technology :-)
<awc737> when I removed sudo, it changed the error to You don't have /home/alex/.gem/etc in PATH
<awc737> lol
<Hanmac> shevy Banistergalaxy "Margaret Thatcher privatisiert Hölle: Tausende Dämonen bangen um ihre Jobs" http://www.der-postillon.com/2013/04/margaret-thatcher-privatisiert-holle.html
<reactormonk> oh, then add it
<awc737> here is the actual context of my problem, error message when I run "guard"
chrishough has quit [Quit: chrishough]
<reactormonk> Hanmac, :D
chrishough has joined #ruby
ckrailo has joined #ruby
thetristan has joined #ruby
<reactormonk> awc737, I assume you installed guard via dpkg?
bluefish has joined #ruby
<awc737> meh, composer
freakazoid0223 has joined #ruby
<bluefish> Spooner_: final xls opener code, whadda think https://gist.github.com/ebbflowgo/5355910
Arzaga has joined #ruby
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
aapzak has joined #ruby
carloslopes has joined #ruby
thetristan has quit [Client Quit]
josh__ has quit [Remote host closed the connection]
realDAB has joined #ruby
psyprus has joined #ruby
apeiros has quit [Remote host closed the connection]
mikalv has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
realDAB has quit [Client Quit]
sambio has quit []
maxmanders has quit [Quit: Computer has gone to sleep.]
anderse has quit [Quit: anderse]
nomadic has quit [Quit: -bye-]
<Hanmac> reactormonk: currently new the british itunes charts "Ding Dong the Witch is Dead" from Judy Garland ;P
chrishough has quit [Quit: chrishough]
girija has joined #ruby
maxmanders has joined #ruby
sambao21 has joined #ruby
<reactormonk> Hanmac, 4chan?
martinklepsch has quit [Ping timeout: 246 seconds]
hiroyuki has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
Neandre has quit [Remote host closed the connection]
Sacha_ has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
pioz has quit [Ping timeout: 240 seconds]
anderse has joined #ruby
cha1tanya_ has joined #ruby
cha1tanya_ has quit [Remote host closed the connection]
cha1tanya has quit [Quit: Leaving]
carloslopes has quit [Ping timeout: 252 seconds]
io_syl has joined #ruby
anderse has quit [Client Quit]
stkowski has joined #ruby
timonv has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
qohelet_ has quit [Quit: qohelet_]
threesome has joined #ruby
jlebrech has quit [Quit: Leaving]
jdunck has joined #ruby
jamie_ca_ has joined #ruby
chrishough has joined #ruby
filipe has quit [Remote host closed the connection]
akemrir has quit [Quit: WeeChat 0.4.0]
deric_skibotn has joined #ruby
heliumsocket has joined #ruby
markalanevans has quit [Quit: markalanevans]
Arzaga has quit [Quit: Computer has gone to sleep.]
<reactormonk> Hanmac, facebook trolling? Would explain the itunes chart
x0F has quit [Ping timeout: 255 seconds]
cmarques has joined #ruby
cloke has joined #ruby
<Spooner_> bluefish, You don't need to explicitly do "if templatename != nil", since "if templatename" is enough
benlieb has quit [Quit: benlieb]
martinklepsch has joined #ruby
carloslopes has joined #ruby
tesuki has quit []
<Spooner_> bluefish, Also, you are using @ivars without a class. If you really want to do that, they are globals, so you might as well use $globals (though I'd return the created workbook from the methods instead).
Ra__ has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
goraxe has joined #ruby
<Spooner_> bluefish, And, while I'm here, I'll suggest that it is more usual in Ruby to use template_name (snake case for variables and methods) rather than just as-one-word.
aytch has quit [Remote host closed the connection]
<Ra__> Hello everyone! I wanted to know how can I develop a ruby wrapper in general or specifically for a JS library?
<Ra__> can you lead me to some links for useful resources!
Czupa has quit [Quit: Leaving]
Arzaga has joined #ruby
<Spooner_> Ra__, You might be better off asking in #rubyonrails, since this is a general Ruby channel.
<marwinism> http://pastebin.com/NZr0HxBm - Anyone got an idea of what i'm trying to do here? Short story; trying to simplify a JSON method, with a easier way of supplying keys and values. And also i'm not totally sure why it's doing it three times, I know there is some bad looping, and in general bad coding there.
<momomomomo> Ra__: what exactly are you trying to do?
aapzak has quit [Read error: Connection reset by peer]
<Spooner_> marwinism, First thing is to try to indent correctly.
<momomomomo> marwinism: the next thing is that you're passing 3 arguments. So your loop is running 3 times
k611 has quit [Ping timeout: 276 seconds]
<Ra__> I trying to develop an interface between Ruby and JS library..
<momomomomo> marwinism: You could pass in an array of arguments, or a hash (which would be much better syntactically)
<momomomomo> oops that goes to marwinism
<Spooner_> marwinism, I think you want foo(username, password, email) and get rid of the args.each bit.
heliumsocket has joined #ruby
camilasan has quit [Remote host closed the connection]
<Ra__> momomomomo: I have been through this.. didnt quite get it though..
Ontolog has quit [Remote host closed the connection]
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
<awc737> reactormonk, I'm going to try Rvm
zeade has joined #ruby
<marwinism> Spooner_ and momomomomo, thanks.
<awc737> I just got rvm installed in debian
<awc737> should I apt-get purge ruby rubygems ruby1.9.1 ruby1.9 allthingsruby before I rvm install 1.9.3?
aapzak has joined #ruby
pothibo has joined #ruby
<marwinism> and Spooner_, I told you, it's "bad" code. It's proof of concept here and there in vim. Indenting is for proper coding when i'm serious about it.
<Spooner_> marwinism, If you are serious about people reading it, you might think about formatting it more nicely ;)
<ngcazz> coding is no laughing matter.
devurandom has left #ruby [#ruby]
chandankumar has joined #ruby
<awc737> code so hard mothf0ckas wanna find me
<momomomomo> no problem marwinism
<Hanmac> awc737 you dont need to but you can, but when you install an new ruby version why not 2.0?
ehaliewicz has joined #ruby
vlad_starkov has joined #ruby
<momomomomo> and also marwinism yes, indent your code properly - there are many ruby plugins for vim
<awc737> Hanmac, I didn't know
momomomomo has quit [Quit: momomomomo]
<awc737> is ruby 2 backward compatible with 1.9.3
dhruvasagar has quit [Ping timeout: 255 seconds]
<Hanmac> with a very few exceptions it is
Zai00 has quit [Read error: Connection reset by peer]
bonty_ssh has joined #ruby
<awc737> doesn't rvm allow multiple versions
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
chandankumar has quit [Client Quit]
thetristan has joined #ruby
soulofpeace has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
codecop has joined #ruby
twoism has joined #ruby
<Hanmac> awc737 it does
<pskosinski> Aw, you are using Debian Squeeze, right? :) I remember similar strange problems in Squeeze but in Wheezy everything is ok. And it should be soon released, so maybe worth to upgrade distro…
vlad_starkov has quit [Remote host closed the connection]
dmerrick has quit [Remote host closed the connection]
chandankumar has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
mark_locklear has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
<awc737> I'm using wheezy
jrajav has joined #ruby
<pskosinski> oh :/ than nvm, strange, I have no problems like this
angusiguess has quit [Ping timeout: 255 seconds]
<pskosinski> then *
wsad has joined #ruby
<awc737> well, I just purged ruby and installed using rvm
<awc737> so maybe problems are gone now
heliumsocket has quit [Quit: heliumsocket]
<tommylommykins> hmm
mikalv has joined #ruby
<awc737> hmm
<awc737> different error this time
<tommylommykins> I have an array of things. I want a method to pick any object which satisfies a condition
slainer68 has quit [Remote host closed the connection]
<tommylommykins> does such a method exist? :D
baphled has quit [Ping timeout: 246 seconds]
nightfalcon has joined #ruby
freerobby has quit [Quit: Leaving.]
<pskosinski> Btw. wat is point of #ruby and #ruby-lang, not better to make from #ruby-lang redirect to this channel?
<Hanmac> pskosinski: #ruby-lang is for the developers of ruby itself
<tommylommykins> 1.upto(10).pick_one(&:even?) #=> could return 2 or 4 or 6 or 8 or 10
<pskosinski> Oh… ok
vlad_starkov has joined #ruby
<tommylommykins> any chance this exists but I haven't heard about it?
<tommylommykins> oooh
<awc737> "gem install guard" installed some gems, but gave me different error: http://paste.laravel.com/nqb
<tommylommykins> apparantly have missed it
<tommylommykins> Enumerable#find \o/
chandankumar has quit [Max SendQ exceeded]
yann_ck has quit [Quit: Computer has gone to sleep.]
bonty_ssh has quit [Ping timeout: 245 seconds]
jrn_ has joined #ruby
divout has quit [Quit: Leaving.]
enebo has quit [Quit: enebo]
jpcamara has joined #ruby
<pskosinski> tommylommykins: Or Array.select?
<tommylommykins> pskosinski: I want it to "just give me the first one"
chandankumar has joined #ruby
<havenwood> tommylommykins: [*1..10].keep_if(&:even?).sample
hmarr has quit [Read error: Operation timed out]
<tommylommykins> havenwood: I only want one answer :)
<havenwood> tommylommykins: That only gives you one.
<pskosinski> but random
<havenwood> pskosinski: That is random.
<pskosinski> yeah :p
<havenwood> pskosinski: Well, determinate random. >.>
<pskosinski> <tommylommykins> pskosinski: I want it to "just give me the first one"
nightfalcon has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
<tommylommykins> but it means that I can do the_answer = possibilities.find {condition}, it looks a bit nicer than the_answer = possibilities.select {condition}.first
mengu has quit [Ping timeout: 252 seconds]
ephemerian has quit [Quit: Leaving.]
puppeh has quit [Remote host closed the connection]
<tommylommykins> and it's more efficient, since it should stop after it gets the first result
<Hanmac> also find is faster than select
chandankumar has quit [Client Quit]
jrn has quit [Ping timeout: 252 seconds]
* tommylommykins pats himself for successfully reading the documentation
tylersmith has joined #ruby
<paper_> Hanmac: this is your favorite: collection.lazy.select { |v| blah?(v) }.first
<momomomomo> collection.collect(&:blah?).first
<momomomomo> or
<momomomomo> collection.first.blah
<paper_> momomomomo: different :) the 'lazy' was important
hmarr has joined #ruby
<momomomomo> ah, didn't know you were going specifically for that
<awc737> should rb-inotify give me alerts in Debian? pskosinski you use Debian?
<paper_> momomomomo: yeah, i was just showing you can make 'select' have the perf. characteristics (more or less) of 'find' when you use lazy enumerators
<pskosinski> awc737: Yes, for me it printed quite a lot of messages.
<havenwood> tommylommykins: I'm confused. You want the first even number, or a random even number from the enumerator/array?
<Hanmac> >> 1.upto(Float::INFINITY).lazy.select(&:even?).first
<eval-in> Hanmac => 2 (http://eval.in/15873)
<momomomomo> can still do collection.lazy.select(&:blah?).first
Arzaga has quit [Quit: Computer has gone to sleep.]
<momomomomo> clean it up a bit
<awc737> pskosinski, I mean like, alert notifications
<awc737> desktop notifications
<havenwood> >> 1.upto(Float::INFINITY).select(&:even?).first
<eval-in> havenwood => (http://eval.in/15874)
hamakn has quit [Remote host closed the connection]
<bluefish> Spooner_: thanks for the feedback it was in a module and class I had so the ivars should be ok, i fixed up the other stuff though
Arzaga has joined #ruby
<pskosinski> awarner: Umh. I don't know, I have no desktop notifications, I am using only dwm.
<pskosinski> awc737: : Umh. I don't know, I have no desktop notifications, I am using only dwm.
<pskosinski> I what you mean is what I think that you mean…
<pskosinski> If...
<awc737> if you skip to 3:00
<Hanmac> what about that: paper_
<Hanmac> >> 1.upto(Float::INFINITY).lazy.select(&:even?).find { rand > 0.5 }
<eval-in> Hanmac => 6 (http://eval.in/15875)
stoic_squirrel has joined #ruby
dagobah has quit [Remote host closed the connection]
nomadic has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
chandankumar has joined #ruby
ariedler has quit [Remote host closed the connection]
dmerrick has joined #ruby
<paper_> Hanmac: weird
lkba has joined #ruby
<pskosinski> awc737: I really don't know, I guess that it depends on desktop manager, my have no alerts like this so I can't check…
mahmoudimus has joined #ruby
BadQuanta has quit [Quit: Leaving]
<paper_> Hanmac: does Enumerator::Lazy excite u?
heliumsocket has joined #ruby
thetristan has quit [Quit: thetristan]
<paper_> Hanmac: oh did i show u this cute trick in ruby 2.0 https://gist.github.com/banister/34c7d9e7eb3e925a40e7
<awc737> I want's those alerts, they pretty
<C0deMaver1ck> that's really cool paper_
<Hanmac> paper_ only a little bit, and your code i have seen it before
ColdBlooder has joined #ruby
<Hanmac> paper_: one of my goals for the week is an event system like Obserable ... but in a way that keep the objects dumbable
<paper_> Hanmac: dumable?
<Hanmac> paper_: Marshal.dump able
<paper_> ah ok
wting_ is now known as wting
heliumsocket has quit [Client Quit]
* apeiros should have known paper_ was bani
wsad has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: sk87]
tjbiddle has joined #ruby
heliumsocket has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
lewix has joined #ruby
tjbiddle has quit [Remote host closed the connection]
spike|spiegel has joined #ruby
<Hanmac> apeiros: yeah the "Ban"-Sense was tingleing right? ;P
<apeiros> yeah, he felt bany
tjbiddle has joined #ruby
lewix has quit [Remote host closed the connection]
xjunior has joined #ruby
mercwithamouth has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
lobak has quit [Ping timeout: 248 seconds]
etcetera has quit []
internetishard has joined #ruby
twoism has quit [Read error: Connection reset by peer]
rupee has joined #ruby
twoism has joined #ruby
jeffreylevesque has quit [Remote host closed the connection]
Andromeda has joined #ruby
freerobby has joined #ruby
nga4 has joined #ruby
jkamenik has quit [Quit: Leaving.]
Davey has joined #ruby
<bluefish> I have an excel sheet class, a new class will generate a new workbook and new sheet... if I wanted to add a new sheet to that object and set that sheet as an attribute, with a specific name, how would you do that?
Ra__ has quit [Ping timeout: 245 seconds]
jkamenik has joined #ruby
etcetera has joined #ruby
ShonM has joined #ruby
ngcazz has quit [Ping timeout: 245 seconds]
rdev is now known as rdev5
realDAB has joined #ruby
jeffreylevesque has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
chrishough has quit [Remote host closed the connection]
chrishough has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Kruppe has quit [Remote host closed the connection]
pioz has joined #ruby
browndawg has quit [Quit: Leaving.]
banjara has joined #ruby
beiter has joined #ruby
brianpWins has joined #ruby
Ontolog has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Ontolog_ has joined #ruby
rdev5 is now known as rdev5|work
sambao21 has quit [Quit: Computer has gone to sleep.]
casheew has quit [Read error: Connection reset by peer]
security has joined #ruby
etcetera has quit []
casheew has joined #ruby
Spooner_ has quit [Quit: Leaving]
Arzaga has joined #ruby
<endure> Sure you guys get asked this all the time. Can anyone recomend a good place to start learning Ruby with the aim of moving onto Ruby on Rails later (codecademy's system keeps on crashing on me and can be flakey at best)
<paper_> endure: codeschool is great
benlieb has joined #ruby
<awc737> guard
<awc737> bash: /usr/local/bin/guard: /usr/bin/ruby1.9.1: bad interpreter: No such file or directory
<awc737> what is that crap
ariedler has joined #ruby
megha has quit [Ping timeout: 276 seconds]
security is now known as megha
<awc737> anyway I installed 1.9.3 not 1.9.1
<beaky> is there a nice ruby repl with autocomplete?
<endure> paper_: Thanks, will give them a look
<endure> Anymore suggestions would be great too
pygmael has quit [Quit: --]
<apeiros> beaky: irb and pry both autocomplete
<Hanmac> awc its about API version
* apeiros prefers pry
<beaky> ah
Coolhand has quit [Read error: Connection reset by peer]
<beaky> irb does?
<Hanmac> awc737: but i think the problem is that guard is programmed wrong
<havenwood> +1 Pry
wsad has joined #ruby
thetristan has joined #ruby
<apeiros> beaky: yes, irb does
<beaky> ah
kpshek has quit []
Ontolog has quit [Ping timeout: 256 seconds]
<awc737> Hanmac, or it's not installing to a place RVM knows about?
<Hanmac> awc737: i think that the guard programm is written shitty so it does not work with rvm ruby
marcdel has joined #ruby
<awc737> damnm
fignew has quit [Quit: Leaving]
sepp2k has joined #ruby
Coolhand has joined #ruby
tubbo has left #ruby [#ruby]
<Hanmac> aw737 or the problem is with you that your rvm is not correct configured
<awc737> what to do
martinklepsch has quit [Read error: Connection reset by peer]
Elhu has quit [Quit: Computer has gone to sleep.]
<awc737> Hanmac, that's probably more likely
MistuhKurtz has joined #ruby
buibex has joined #ruby
<Hanmac> ask at #rvm i dont use it
pygmael has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
<beaky> I've tried to autocompete irb, but I only autocomplete my file naes :(
<beaky> names*
RagingDave has joined #ruby
angusiguess has joined #ruby
pygmael has quit [Client Quit]
perlea has quit [Remote host closed the connection]
Arzaga has quit [Quit: Computer has gone to sleep.]
pygmael has joined #ruby
sambao21 has joined #ruby
markalanevans has joined #ruby
sayan has joined #ruby
terryhg has joined #ruby
markalanevans has quit [Read error: Connection reset by peer]
alvaro_o has joined #ruby
markalanevans has joined #ruby
_wsad_ has joined #ruby
xjunior has quit [Remote host closed the connection]
tetsus is now known as firebury
fenak has quit [Ping timeout: 245 seconds]
wsad has quit [Ping timeout: 256 seconds]
<terryhg> Hello all. Does anyone have the time and knowledge to help me solve a binding and eval problem? https://gist.github.com/anonymous/5356622 - why doesn't that work? I'm sure x and y are in dynamic scope when the binding is created.
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
momomomomo has quit [Quit: momomomomo]
tevio has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
KevinSjoberg has joined #ruby
chandankumar has quit [Quit: Leaving]
mrsolo has joined #ruby
tenmilestereo has joined #ruby
sayan has quit [Read error: Connection reset by peer]
arusso_ has quit [Remote host closed the connection]
mark_locklear has joined #ruby
_wsad_ has quit [Ping timeout: 276 seconds]
<peta_> terryhg: where is 'binding' defined/declared?
<terryhg> peta_: in Kernel
<Hanmac> terryhg: def bar is yet another scope and it cant access the foo scope
markalanevans has quit [Quit: markalanevans]
<terryhg> Hanmac: but doesn't bar form a closure? or do only blocks form closure
knapper_tech has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
arusso has joined #ruby
geggam_ has joined #ruby
<Hanmac> i tihnk only blocks, ... and the problem def xyz; def abc;end;end may not work was you thought
mockra has joined #ruby
geggam has quit [Disconnected by services]
chrishough has quit [Quit: chrishough]
chrishough has joined #ruby
geggam has joined #ruby
<terryhg> Hanmac: nested methods don't form closures - wow you learn something every day
anonymuse has joined #ruby
akashj87 has quit [Quit: bye bye]
freerobby has quit [Quit: Leaving.]
<paper_> terryhg: there is an alternative way of defining methods in ruby that are closures
<paper_> define_method / define_singleton_method
mattbl has joined #ruby
<terryhg> paper_: because that takes a block, which does close over the current scope, got it, thanks
mmitchell has quit [Remote host closed the connection]
<paper_> terryhg: fo rizzle my nizzle
Skofo has joined #ruby
sambio has joined #ruby
sambio has quit [Changing host]
sambio has joined #ruby
geggam has quit [Remote host closed the connection]
csaunders has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
geggam_ is now known as geggam
SeySayux has quit [Ping timeout: 252 seconds]
bluefish has quit [Ping timeout: 245 seconds]
Villadelfia has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
dmerrick has quit [Remote host closed the connection]
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
<awc737> ERROR: While executing gem ... (NoMethodError)
<awc737> undefined method `fu_stream_blksize' for #<Gem::Commands::SetupCommand:0x000000029c5c78>
Catbuntu has joined #ruby
mroh has joined #ruby
<mroh> DCC SEND startkeylogger 0 0 0
mroh has quit [Killed (idoru (Spam is off topic on freenode.))]
devyn has quit [Ping timeout: 252 seconds]
Arzaga has joined #ruby
terryhg has quit [Quit: Page closed]
thinkclay has joined #ruby
a_a_g has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
idkazuma has quit [Remote host closed the connection]
enebo has joined #ruby
<apeiros> there are still idiots out there who try that? wow…
mahmoudimus has joined #ruby
<beaky> is ruby harder to learn than C++?
<paper_> beaky: about 50x easier :)
klue has joined #ruby
bryants has joined #ruby
<klue> how does ruby on rails enforce access control to certain pages?
keymone has joined #ruby
Kruppe has joined #ruby
beiter has quit [Quit: beiter]
ToApolytoXaos has joined #ruby
forrest has joined #ruby
<apeiros> klue: #rubyonrails is a better channel for that
<apeiros> and ruby on rails by default does not do any access control
artofraw has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
alvaro_o has quit [Read error: Connection reset by peer]
peta_ has quit [Quit: peta_]
alvaro_o has joined #ruby
alvaro_o has quit [Client Quit]
<klue> apeiros: I see thanks. I'll also go check out that channel
shock_one has joined #ruby
klue has left #ruby [#ruby]
oponder has joined #ruby
tmiller has joined #ruby
realDAB has quit [Quit: realDAB]
estjang has joined #ruby
anderse has joined #ruby
realDAB has joined #ruby
blaxter has quit [Ping timeout: 264 seconds]
heliumsocket has quit [Quit: heliumsocket]
gyre008 has quit [Remote host closed the connection]
kpshek has joined #ruby
pioz has joined #ruby
jkamenik has quit [Quit: Leaving.]
wesside has joined #ruby
c0rn has joined #ruby
dmerrick has joined #ruby
Vivekananda has joined #ruby
<Vivekananda> hey everyone
pcarrier has joined #ruby
jkamenik has joined #ruby
nalaginrut has quit [Ping timeout: 246 seconds]
Zeev__ has quit [Quit: Leaving]
casheew has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
<Astral_> Hi :)
Czupa has joined #ruby
kofno has quit [Remote host closed the connection]
casheew has joined #ruby
hamakn has joined #ruby
BadQuanta has joined #ruby
lewix has joined #ruby
kofno has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
ntzrmtthihu777 has left #ruby [#ruby]
<Vivekananda> howdy I asked a question yesterday missed the answer. I am trying to do this --- I have an array of strings ( 10 strings) named fruits. I do - fruit.each do |x| ; fruits.delete[0] ; fruits.delete[1]; end. What I want to achieve here is 1. delete elements 0 and 1 2. After this iteration I want the .each to go the third index not the second one ie. I want the .each to create only 5 loops in total rather than 10 . How do I d
<Vivekananda> o this ?
lewix has quit [Remote host closed the connection]
kpshek has quit []
ebobby has joined #ruby
cobragoat has joined #ruby
hamakn has quit [Ping timeout: 256 seconds]
TheAscender has joined #ruby
jonahR has quit [Quit: jonahR]
hiyakashi has joined #ruby
shinobi_one has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
k610 has joined #ruby
jrendell has joined #ruby
shinobi_one has quit [Changing host]
shinobi_one has joined #ruby
jrendell has quit [Client Quit]
marwinism has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
jrendell has joined #ruby
cobragoat has quit [Ping timeout: 245 seconds]
angusiguess has quit [Ping timeout: 255 seconds]
ukd1 has joined #ruby
kpshek has joined #ruby
<wuest> Vivek, this seems to be a diminutive version of the problem you're solving. Immediately off the top of my head, you could do (fruits.each_with_index.select{ |x,i| i.even? }).each {|x| fruits.delete_at(0); fruits.delete_at(0)} -- but this probably doesn't solve your real problem
marwinism has joined #ruby
<wuest> Vivekananda, sorry, I failed to tab-complete your name. That was meant for you :)
thetristan has quit [Quit: thetristan]
mmitchell has joined #ruby
codezombie has joined #ruby
codezombie has quit [Client Quit]
jbueza has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
Al___ has quit [Quit: Al___]
timonv has joined #ruby
kornnflake has quit [Ping timeout: 255 seconds]
TheAscender has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
tomsthumb1 has joined #ruby
thetristan has joined #ruby
jpcamara has quit [Quit: Leaving.]
gyre007 has joined #ruby
marwinism has quit [Ping timeout: 256 seconds]
tomsthumb has quit [Ping timeout: 252 seconds]
Faris8 has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
ariedler has quit [Remote host closed the connection]
pioz has quit [Quit: This computer has gone to sleep]
kenneth has joined #ruby
<kenneth> hey all…
<kenneth> given this code: !(v[:opts] || {})[:when].is_a?(Proc) || context.instance_eval(&v[:opts][:when])
marwinism has joined #ruby
adamjleonard is now known as adamjleonard|wor
<kenneth> this raises an ArgumentError (1 for 0) when calling instance_eval with a 0-arity block
<kenneth> inspecting the argument that it's trying to send, it's the `context` object, which is the same as `self` within the block
hiyakashi has quit [Quit: お前は知りすぎた]
realDAB has quit [Quit: realDAB]
<kenneth> i don't understand why that happens… anybody know?
axl_ has joined #ruby
<beaky> hello
<beaky> how do I write a multithreaded application
pcarrier has quit [Quit: Computer has gone to sleep.]
wolcanus has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 240 seconds]
knapper_tech has joined #ruby
bryants has quit [Ping timeout: 264 seconds]
pcarrier has joined #ruby
rotham has joined #ruby
<rotham> add_class = 'btn btn-primary' if action == 'add' else 'btn btn-primary hide' .. thats throwing an error.. any idea why?
lewix has joined #ruby
<heph> beaky: google 'ruby threads'
heph has left #ruby [#ruby]
<Vivekananda> wuest: no problem
<waxjar> rotham, that's not how if statements work
Andromeda has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
<rippa> that's kind of how if works in Forth and Smalltalk
inffcs00 has joined #ruby
<rotham> waxjar: can i do something like that in a single line with slightly different syntax?
<kenneth> rotham: this is ruby not python
<rotham> :P
<rotham> i was about to say im coming form python
<waxjar> rotham, you can use the terniary operator: condition ? true : false
<kenneth> rotham: var = condition ? "yes" : "otherwise"
m8 has joined #ruby
<rotham> thanks
mahmoudimus has quit [Read error: No route to host]
<kenneth> you can also do the much uglier
jkamenik has quit [Quit: Leaving.]
mahmoudimus has joined #ruby
chrishough has quit [Quit: chrishough]
<kenneth> var = if condition; "yes"; else "otherwise"; end
wesside has quit [Quit: Ice cream truck!]
chussenot has joined #ruby
havenwood has quit [Remote host closed the connection]
atno__ has joined #ruby
<Vivekananda> wuest: is that like a for loop inside a for loop . could you tell me what your code does . I could not get it
Tricon has joined #ruby
<rotham> thanks a lot.. i probably would have ended up with 4 lines of code to do the same thing if i figured it out myself :P
tomsthumb1 has quit [Quit: Leaving.]
atno has quit [Remote host closed the connection]
<rippa> it's not like 4 lines is a bad thing
atno__ is now known as atno
baphled has joined #ruby
workmad3 has joined #ruby
pi3r has quit [Quit: Leaving]
cr3 has quit [Quit: leaving]
mityaz has quit [Quit: See ya!]
Neomex has joined #ruby
Neomex has quit [Client Quit]
realDAB has joined #ruby
angusiguess has joined #ruby
<wuest> Vivekananda: I recommend reading up on select; it will explain what you don't get. As I mentioned, I don't recommend ACTUALLY using my suggestion, but it does fit your spec :)
monkegjinni has joined #ruby
zastern has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 264 seconds]
error_code has left #ruby [#ruby]
baphled has quit [Ping timeout: 256 seconds]
F1skr has quit [Quit: WeeChat 0.4.0]
<Vivekananda> wuest: why not using it ?
workmad3 has quit [Ping timeout: 245 seconds]
<wuest> Vivekananda: I used select in my response.
Tricon has quit [Ping timeout: 256 seconds]
thetristan has quit [Quit: thetristan]
chipotle_ has quit [Ping timeout: 252 seconds]
mahmoudimus has quit [Read error: No route to host]
moos3 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
swistak35 has quit [Ping timeout: 246 seconds]
mahmoudimus has joined #ruby
sepp2k has quit [Remote host closed the connection]
chipotle_ has joined #ruby
thetristan has joined #ruby
maletor has joined #ruby
chrishough has joined #ruby
_if is now known as indigenous
mattbl has quit [Quit: This computer has gone to sleep]
indigenous has quit []
Hanmac has quit [Read error: Operation timed out]
BizarreCake has quit [Ping timeout: 276 seconds]
dedicados has joined #ruby
<dedicados> hello, im trying to install ruby on ubuntu, but have this error when i execute the rvm
_if has joined #ruby
<dedicados> root@server:~# source ~/.rvm/scripts/rvm
<dedicados> -bash: /root/.rvm/scripts/rvm: No such file or directory
_if has quit [Client Quit]
brennanMKE has quit [Remote host closed the connection]
_if has joined #ruby
etcetera has joined #ruby
geggam has quit [Remote host closed the connection]
kirun has joined #ruby
tevio has joined #ruby
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
ariedler has joined #ruby
thetristan has quit [Quit: thetristan]
<bean__> ah, why are you root
<bean__> sir.
<bean__> doing things as root = bad idea usually
dhruvasagar has joined #ruby
<nezumi> Youngsters these days, no sense of adventure!
tomsthumb has joined #ruby
<beaky> yolo
gaahrdner has quit [Ping timeout: 256 seconds]
<dedicados> is a new vps for test
<MrZYX> that doesn't change anything about it
Czupa has quit [Ping timeout: 245 seconds]
thetristan has joined #ruby
<dedicados> ok so i dont have to be on root, ok let me change it
<MrZYX> never use root unless you have a special reason for it, "it makes things easier" is invalid
realDAB has quit [Quit: realDAB]
G________ has joined #ruby
baphled has joined #ruby
endzyme has quit [Remote host closed the connection]
pyrac has quit [Quit: pyrac]
wolcanus has joined #ruby
endzyme has joined #ruby
<dedicados> ok
pyrac has joined #ruby
ariedler has quit [Ping timeout: 245 seconds]
thetristan has quit [Client Quit]
Es0teric has joined #ruby
Bish_ is now known as Bish
G________ is now known as RubNoob
workmad3 has joined #ruby
ryannielson has joined #ruby
jkamenik has joined #ruby
maxmanders has joined #ruby
<RubNoob> I installed Faye/Thin in my rails server for pub/sub support, but now, a route that previuosly did not require authentication is returning a 401 error - suggestions?
Hanmac has joined #ruby
Ontolog_ is now known as Ontolog
<MrZYX> RubNoob: #rubyonrails
mattbl has joined #ruby
<RubNoob> MrZYX thanks, I tried there, didn't seem like people were responding in that room
<MrZYX> how long did you wait?
wesside has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
frem has joined #ruby
<Paradox> who wants to see someone being hit by a train http://i.imgur.com/Skwl702.gif
wesside has quit [Client Quit]
a_a_g has quit [Quit: Leaving]
wesside has joined #ruby
etcetera has quit []
mr-rich has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
hiroyuki_ has joined #ruby
<finnomenon> not really Paradox
_maes_ has joined #ruby
vlad_starkov has joined #ruby
rawng has joined #ruby
jonahR has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
io_syl has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
hiroyuki has quit [Ping timeout: 240 seconds]
jpcamara has joined #ruby
etcetera has joined #ruby
Xeago has quit [Remote host closed the connection]
girija has quit [Ping timeout: 264 seconds]
gaahrdner has joined #ruby
_maes_ has quit [Client Quit]
jonathanwallace has joined #ruby
_maes_ has joined #ruby
neku has joined #ruby
mneorr has quit [Remote host closed the connection]
dp has joined #ruby
_maes_ has quit [Client Quit]
<dp> is there a way to say what the include path should be in a rakefile?
_maes_ has joined #ruby
adamjleonard|wor is now known as adamjleonard|brb
stoic_squirrel has joined #ruby
ebobby has left #ruby [#ruby]
slainer68 has joined #ruby
snearch has joined #ruby
_maes_ has quit [Client Quit]
_maes_ has joined #ruby
ariedler has joined #ruby
mockra has quit [Remote host closed the connection]
dp has left #ruby [#ruby]
kristofers has joined #ruby
jeebster has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
peta_ has joined #ruby
heliumsocket has joined #ruby
rsahae has joined #ruby
heliumsocket has quit [Client Quit]
JohnBat26 has quit [Remote host closed the connection]
tomsthumb has quit [Quit: Leaving.]
hmarr has quit []
robbyoconnor has joined #ruby
rdark has quit [Remote host closed the connection]
xormancer has quit [Ping timeout: 252 seconds]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
kpshek has quit []
Catbuntu has quit [Quit: Leaving]
mando_ has quit [Remote host closed the connection]
cobragoat has joined #ruby
RonScagz has joined #ruby
Andromeda has joined #ruby
ph^ has joined #ruby
pyrac has quit [Quit: pyrac]
benzrf has joined #ruby
<benzrf> hello!
<benzrf> I've been reading the poignant guide and there's one point I'm a bit confused on...
<benzrf> what does 'def self.foo' do differently from 'def foo'?
<rsahae> benzrf: hi
<bean__> def self.foo is a class method
<bean__> def foo is an instance method
<rsahae> benzrf: one is an instance method, the other is a class metdo
<rsahae> method
<benzrf> ok
<beaky> how do I becoe better at ruby?
maletor has quit [Quit: Computer has gone to sleep.]
<benzrf> wait...
<bean__> much practice, beaky
<beaky> ah thank
<beaky> s
* beaky goes off to improve his ruby
beaky has left #ruby [#ruby]
<benzrf> is the self.foo syntax a special case, or it a form of a general syntax?
<rsahae> benzrf: it's normal syntax
vlad_starkov has quit [Remote host closed the connection]
<MrZYX> def String.my_method works too
<benzrf> ok
mockra has joined #ruby
dmerrick has quit [Remote host closed the connection]
<MrZYX> self in that context referse to the current class
dhruvasagar has quit [Ping timeout: 245 seconds]
<benzrf> just about to ask that :p
pyrac has joined #ruby
<MrZYX> so class MyClass; def self.foo; expands to class MyClass; def MyClass.foo
vlad_starkov has joined #ruby
<rsahae> self generally refers to the object who's scope you are inside
<benzrf> yeah
kpshek has joined #ruby
<rsahae> in this case, you are inside the instance of the class that you indicated with the "class MyClass"
<benzrf> is setting in the initializer the only way to have defaults for instance variables?
<rsahae> when you define your method
cobragoat has quit [Remote host closed the connection]
<rsahae> so that's how you get the "def self.method" syntax
realDAB has joined #ruby
nightfalcon has joined #ruby
<Paradox> benzrf, generally yes
<Paradox> but its not uncommon to have other fake initializers
<rsahae> I'm not 100% sure about that. My instinct is to say, in general, that may be the better way to do it, but technically, no, you can do it a couple different ways
dhruvasagar has joined #ruby
Andromeda has quit [Ping timeout: 240 seconds]
enebo has quit [Ping timeout: 256 seconds]
<rsahae> agh Paradox beat me to it
<Paradox> like in my snoo gem
<Paradox> i was thinking about making a few different initializers one could use
<Paradox> like .auth
NAYENA has joined #ruby
<Paradox> but decided to make them hash variables on new
<benzrf> snoo gem?
<rsahae> you can also initialize instance variables in any method, it doesn't need to be the constructor
<benzrf> is that a reddit api?
<benzrf> rsahae: ik
atr has joined #ruby
<atr> hi
mark_locklear has quit [Ping timeout: 245 seconds]
<benzrf> hi
<rsahae> hello
enebo has joined #ruby
<Paradox> benzrf, yup
<Paradox> basically
<Paradox> all this is a pleasant side effect of the fact that ruby likes letting you do one thing multiple ways
<Paradox> why ruby doesn't have pdp8
<Paradox> instead we have idiom
<Paradox> which differs from person to person
<atr> hi
<rsahae> atr: hello
<benzrf> pdp8?
ph^ has quit [Ping timeout: 256 seconds]
kpshek has quit []
<atr> how can I unpack a unsigned long hex number. "\xff\xff\xff\xff\xff\x01\x02\x11".unpack('V*')[0] <--- this only gets a int
thetristan has joined #ruby
<atr> 4 bytes
dedicados has quit []
endzyme has quit [Remote host closed the connection]
thetristan has quit [Client Quit]
endzyme has joined #ruby
snorkdude has joined #ruby
tenmilestereo has quit [Quit: Leaving]
kpshek has joined #ruby
freerobby has quit [Quit: Leaving.]
benzrf has left #ruby [":)"]
<rsahae> atr: what are you expecting to get from the unpack?
<rsahae> an unsigned long?
yann_ck has joined #ruby
<rippa> atr: Q | Integer | 64-bit unsigned, native endian (uint64_t)
vlad_sta_ has joined #ruby
yann_ck has quit [Client Quit]
<rsahae> yeah, Q seems to be the trick
<atr> Q rippa yes I've just seen it
<atr> thank you rsahae rippa ;)
nateberkopec has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Quit: Leaving.]
snearch has quit [Quit: Verlassend]
nomenkun has joined #ruby
daed_ has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
daed has joined #ruby
rvmuser has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
matled- has joined #ruby
veinofstars has joined #ruby
rvmuser has quit [Client Quit]
sailias has quit [Ping timeout: 252 seconds]
rsahae has quit [Ping timeout: 245 seconds]
kpshek has quit []
tvw has quit []
foobArrrr has joined #ruby
foobArrr has quit [Ping timeout: 245 seconds]
lessless has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
kiri has quit [Ping timeout: 245 seconds]
matled has quit [Ping timeout: 245 seconds]
matled- is now known as matled
lessless_ has joined #ruby
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
realDAB has quit [Quit: realDAB]
kiri has joined #ruby
rvmuser has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
mando_ has joined #ruby
Burgestrand has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
realDAB has joined #ruby
<dyeske> anyone good with ffi?
Neomex has joined #ruby
robbyoconnor has joined #ruby
vlad_starkov has joined #ruby
Morkel has joined #ruby
etcetera has quit []
mattbl has quit [Quit: This computer has gone to sleep]
rsahae has joined #ruby
Evropi has joined #ruby
rvmuser has quit [Quit: rvmuser]
<Evropi> hi #ruby, do you know if the ruby interpreter can take the encoding from the second line (e.g. # coding:utf-8) if you put a crunchbang (#!) at the first line?
<rsahae> yes
<rsahae> it does
vlad_sta_ has quit [Ping timeout: 256 seconds]
<rsahae> or at least
<rsahae> that's what I have been led to believe
niceguyjames has quit [Quit: Computer has gone to sleep.]
<rsahae> for all my ruby scripts, I put a '#!/usr/bin/env ruby' on the first line
<rsahae> and a '# encoding: UTF-8' on the second line
backjlack has quit [Read error: Connection reset by peer]
<Evropi> all the documentation I've seen so far speaks about the first line unfortunately
ryannielson has left #ruby [#ruby]
<rsahae> I believe James Edward Gray had a blog post on it
rvmuser has joined #ruby
<rsahae> let me try to find it
<Evropi> I dunno how not actually specifying the encoding would impact the script, actually, considering ascii is compatible with utf-8 for its codepoints
maletor has joined #ruby
backjlack has joined #ruby
<Evropi> are there are any members of the ruby core team in here? Or MRI developers otherwise?
k610 has quit [Quit: Leaving]
ariedler has quit [Remote host closed the connection]
<rsahae> hrmm JEGII's blog seems to be down
<rsahae> but I swear he had a whole series of articles on encoding
<rsahae> and one of the small topics he covers is putting the encoding line in your file
<rsahae> and one of his examples shows it on the second line
<rsahae> there must be documentation on it somewhere but I don't know where to find it off the top of my head
rsahae has left #ruby [#ruby]
cearls has joined #ruby
LennyLinux has quit [Remote host closed the connection]
NAYENA has quit []
artofraw has quit [Remote host closed the connection]
mattbl has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Xeago has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
pioz has joined #ruby
monkegjinni has quit [Remote host closed the connection]
kpshek has joined #ruby
nomike has joined #ruby
<nomike> hi
<wuest> Okay, I'll out myself as clueless. When did 'shebang' turn into 'crunchbang?' This isn't the first time I've heard of people referring to it as such.
<nomike> I want to debug a ruby application. On some point there is variable foo containing an instance of some class.
thetristan has joined #ruby
<nomike> If'm in in irb, is there a way to get the documentation of that class instance?
<nomike> I python I would do stuff like "dir(variable)" or "help(variable)"
<atr> is this sintaxis (arr.size-1).downto(0) { | ok ? It works I know but is it there a better way ?
Coolhand has quit [Read error: Connection reset by peer]
<MrZYX> so you want to iterate it in reverse or...?
rvmuser has quit [Quit: who is rvm user ?]
<atr> in reverse yes
mchung has joined #ruby
<MrZYX> arr.reverse.each ?
<paper_> nomike: http://pryrepl.org
rvmuser has joined #ruby
r0bby has joined #ruby
<atr> any different ?
Elhu has joined #ruby
<atr> more efficient one or other ?
<MrZYX> atr: actually there's #reverse_each
Coolhand has joined #ruby
<wuest> atr - reverse_each is nicer to read. I'm not sure if they optimize down to the same, but likely close. reverse_each is probably faster, if anything.
ariedler has joined #ruby
rvmuser has left #ruby [#ruby]
rvmuser has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
cloke_ has joined #ruby
Voodoofish430 has joined #ruby
<atr> MrZYX:, wuest thank you so much
rsahae has joined #ruby
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
Coolhand has quit [Remote host closed the connection]
cloke has quit [Ping timeout: 276 seconds]
cloke_ is now known as cloke
pkrnj has joined #ruby
realDAB has quit [Quit: realDAB]
rvmuser has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rvmuser has joined #ruby
Coolhand has joined #ruby
rsahae has quit [Ping timeout: 256 seconds]
momomomomo has joined #ruby
rvmuser has quit [Client Quit]
rvmuser has joined #ruby
rezzack has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
devyn has joined #ruby
sambao21 has joined #ruby
d2dchat has joined #ruby
Coolhand has quit [Read error: Connection reset by peer]
rvmuser has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sepp2k has joined #ruby
rvmuser has joined #ruby
Seich is now known as seich
wolcanus has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
rvmuser has quit [Client Quit]
rvmuser has joined #ruby
Coolhand has joined #ruby
rvmuser has quit [Client Quit]
rvmuser has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
thone_ has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
Coolhand has quit [Remote host closed the connection]
arya has joined #ruby
workmad3 has joined #ruby
Bry8Star has joined #ruby
ColdBlooder has quit [Quit: Oink]
dhruvasagar has quit [Ping timeout: 264 seconds]
thone has quit [Ping timeout: 245 seconds]
Coolhand has joined #ruby
ctp has joined #ruby
r0bby has quit [Ping timeout: 245 seconds]
stacky has joined #ruby
Andromeda has joined #ruby
piotr__ has joined #ruby
LennyLinux has joined #ruby
snorkdude has quit [Quit: snorkdude]
pyrac has quit [Quit: pyrac]
chxane has quit [Read error: Connection reset by peer]
geekbri has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
stef_204 has joined #ruby
f0ster has joined #ruby
Elhu has joined #ruby
heliumsocket has joined #ruby
chrisja has joined #ruby
catphish has joined #ruby
<catphish> what is the purpose of the thread_safe gem?
zomgbie has quit [Ping timeout: 255 seconds]
jbueza has joined #ruby
knapper_tech has quit [Ping timeout: 245 seconds]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
baphled has quit [Ping timeout: 256 seconds]
djwonk has joined #ruby
Elhu has quit [Client Quit]
<fryguy> catphish: the description of the gem seems pretty straightforward, what do you mean?
<catphish> the description suggests that there are thread safety problems in Array and Hash
<fryguy> catphish: there are
<catphish> i'm concerned as to what those might be
cearls has quit [Remote host closed the connection]
<catphish> is there some description somewhere? i heavily use both structures in threaded apps :(
jekotia has joined #ruby
<fryguy> catphish: what ruby vm are you using?
<fryguy> MRI or something else?
<catphish> oh, MRI is safe
<catphish> yeah I use MRI
<fryguy> the GIL covers you
tomsthumb has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
Elhu has joined #ruby
<catphish> that makes sense, the problem is that those methods use global memory locations internally during operations?
<catphish> i suppose it doesn't matter to me, i was concerned though :)
Coolhand has quit [Remote host closed the connection]
robscomp_ has joined #ruby
robscomputer_ has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
ToApolytoXaos has quit [Quit: Leaving]
Coolhand has joined #ruby
veinofstars has quit [Quit: veinofstars]
anderse has quit [Quit: anderse]
atr has quit [Ping timeout: 256 seconds]
ariedler has quit [Remote host closed the connection]
jdunck has quit [Ping timeout: 256 seconds]
Coolhand has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
memristor has joined #ruby
sambio has quit []
v0n has quit [Ping timeout: 245 seconds]
Coolhand has joined #ruby
jdunck has joined #ruby
ariedler has joined #ruby
poise has joined #ruby
poise has quit [Client Quit]
<kenneth> given this code: !(v[:opts] || {})[:when].is_a?(Proc) || context.instance_eval(&v[:opts][:when])
<kenneth> this raises an ArgumentError (1 for 0) when calling instance_eval with a 0-arity block
<kenneth> inspecting the argument that it's trying to send, it's the `context` object, which is the same as `self` within the block
<kenneth> anybody know what's up?
<paper_> kenneth: lol @ Your code
Nahra has joined #ruby
<paper_> :P
Proshot has quit [Quit: Leaving]
<kenneth> paper_: haha, what about it? not super beautiful, but concise
<paper_> kenneth: it's way too complicated :P you should extract a helper method out of that :)
<paper_> kenneth: anyway, i think you're [:when] is a lambda, not a proc, no?
arya_ has joined #ruby
<kenneth> seriously, you'd make this into a whole method?
<paper_> you can't pass lambdas into to instance_eval if it has 0 arity
<kenneth> oh really wtf?
<kenneth> do i need to .to_proc it or something?
<paper_> kenneth: use instance_exec instead
<paper_> nah
<paper_> just use instance_exec instead
<kenneth> ok
devyn has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
Neomex has quit [Quit: Neomex]
kpshek_ has joined #ruby
devyn has joined #ruby
<kenneth> what's up with that behavior though?
<paper_> kenneth: instance_eval actually yields a parameter
kpshek has quit [Ping timeout: 245 seconds]
kpshek_ is now known as kpshek
<paper_> it's a stupid parameter, but it's yielded none the same
<paper_> and procs/blocks just ignore it
jnoob22 has quit [Remote host closed the connection]
<paper_> but lambdas are very finnicky about arity, so they get angry
<kenneth> ahh!
<kenneth> ok, instance_exec it is. thank you :)
memristor has quit [Read error: Connection reset by peer]
jrn__ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<kenneth> i wish ruby was simpler about lamdbas / procs / blocks… everything should just always be a lambda :)
senayar has quit [Ping timeout: 252 seconds]
<breakingthings> kenneth: blame programming
<canton7> the magic of ruby is *that* you have different return behaviour from blocks/lambdas
<paper_> kenneth: i disagree, i think everything should just me a proc :)
<canton7> that's the real pain with C#/JS/etc
freerobby has joined #ruby
<paper_> i dont think i've ever cared for the strict arity behaviour of lambdas
neku has quit [Read error: Connection reset by peer]
<Evropi> it's about as nice as you can get, I haven't seen any other multi-paradigm language doing it more elegantly
<paper_> or the return behaviour either, which is equivalent to 'next' anyway
neku has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
Coolhand has quit [Remote host closed the connection]
ph^ has joined #ruby
huoxito has quit [Quit: Leaving]
ericmathison has joined #ruby
<canton7> having the ability to return from the caller's scope - that's not something you see elsewhere. That's what sets blocks apart. Lambdas are anonymous methods, and behave as such
arya_ has quit [Ping timeout: 256 seconds]
bryants has joined #ruby
jrn_ has quit [Ping timeout: 245 seconds]
<paper_> i can't think of a situation i'd ever use a lambda over a proc
<paper_> well their syntax is cuter
<paper_> i like ->
roychri has joined #ruby
<canton7> yeah, I don't see them used much myself
<canton7> but I guess it's a completeness thing? :P
dmiller has joined #ruby
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
Burgestrand has quit [Quit: Burgestrand]
nomike has quit [Ping timeout: 245 seconds]
Burgestrand has joined #ruby
zomgbie has joined #ruby
oponder has quit [Remote host closed the connection]
<roychri> Hello, I am looking for a Partner to perform a WASA (Bowling Game from Uncle Bob, part I). Anyone???
ph^ has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
frem has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
kirun has quit [Quit: Client exiting]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
etcetera has joined #ruby
jrn__ has quit [Quit: Verlassend]
tvw has joined #ruby
snorkdude has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
atmosx has joined #ruby
pimp has joined #ruby
tmiller has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
veinofstars has joined #ruby
Spooner has joined #ruby
gyre007 has quit [Remote host closed the connection]
tomsthumb has quit [Quit: Leaving.]
verysoftoiletppr has quit []
nateberkopec has joined #ruby
zomgbie has quit [Ping timeout: 256 seconds]
verysoftoiletppr has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
Ontolog has quit [Read error: Connection reset by peer]
sambio has joined #ruby
sambio has quit [Changing host]
sambio has joined #ruby
interactionjaxsn has joined #ruby
Ontolog has joined #ruby
rudisimo has quit [Quit: Leaving.]
jpcamara has quit [Quit: Leaving.]
matchaw has quit [Ping timeout: 240 seconds]
matchaw has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
Lemtzas has quit [Ping timeout: 252 seconds]
invisime has quit [Quit: Leaving.]
Faris8 has quit [Ping timeout: 264 seconds]
pimp has quit [Quit: leaving]
agarie has joined #ruby
chrishough has quit [Quit: chrishough]
jonahR has quit [Quit: jonahR]
moted has joined #ruby
etcetera has quit [Remote host closed the connection]
thetristan has quit [Quit: thetristan]
etcetera has joined #ruby
Coolhand has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
verysoftoiletppr has quit []
Coolhand has quit [Remote host closed the connection]
stoic_squirrel has joined #ruby
jkamenik has quit [Quit: Leaving.]
etcetera has quit [Remote host closed the connection]
etcetera has joined #ruby
nateberkopec has quit [Quit: Leaving...]
etcetera has quit [Max SendQ exceeded]
Coolhand has joined #ruby
chrishough has joined #ruby
etcetera has joined #ruby
moted has left #ruby [#ruby]
Coolhand has quit [Remote host closed the connection]
etcetera has quit [Max SendQ exceeded]
moted has joined #ruby
mattbl has joined #ruby
_nitti has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
etcetera has joined #ruby
lewix has quit [Read error: Connection reset by peer]
elliot98 has quit [Ping timeout: 264 seconds]
swex has quit [Remote host closed the connection]
Coolhand has joined #ruby
lewix has joined #ruby
mjc_ has left #ruby [#ruby]
havenwood has joined #ruby
elliot98 has joined #ruby
Coolhand has quit [Read error: Connection reset by peer]
etcetera has quit [Client Quit]
elux has quit [Quit: Leaving...]
Coolhand has joined #ruby
m8 has quit [Quit: Sto andando via]
emmanuelux has joined #ruby
Coolhand has quit [Remote host closed the connection]
realDAB has joined #ruby
nateberkopec has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Client Quit]
hmarr has joined #ruby
Coolhand has joined #ruby
asteve has joined #ruby
<asteve> can you return an object from an initialize method?
Coolhand has quit [Read error: Connection reset by peer]
heliumsocket has quit [Quit: heliumsocket]
Evropi has left #ruby ["WeeChat 0.4.0"]
pioz has quit [Quit: This computer has gone to sleep]
pioz has joined #ruby
jonahR has joined #ruby
Es0teric has quit [Read error: Connection reset by peer]
Coolhand has joined #ruby
<Hanmac> asteve you can, but the object will be ignored
interactionjaxsn has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
jeevan_ullas has joined #ruby
<asteve> Hanmac: I have a class inside of a module who's sole purpose is to return a mysql2 client connection
<jeevan_ullas> hi guys
Coolhand has quit [Remote host closed the connection]
keymone has quit [Quit: keymone]
<asteve> how can I avoid creating an instance of that object?
forrest has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
kofno has quit [Remote host closed the connection]
<asteve> is there a way to access the method of a class without creating an object?
nightfalcon has quit [Quit: Lost terminal]
Coolhand has joined #ruby
<jeevan_ullas> is there a way that can tell if a variable is defined
Apathetic has quit [Quit: *booom*]
lmf40 has quit [Remote host closed the connection]
<Hanmac> jeevan_ullas: what kind of variable?
Coolhand has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
daniel_- has quit [Remote host closed the connection]
davetherat has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
frem has joined #ruby
<jeevan_ullas> can you see this line
etcetera has joined #ruby
<jeevan_ullas> it could happen that whatever is "#{service_ruby_name}_service_path" could not be defined
<jeevan_ullas> problem is that, if its not defined or initialized to some value this line fails
Faris8 has joined #ruby
<MrZYX> that's calling a method not a variable
<jeevan_ullas> how can i make sure to handle this problem
Coolhand has joined #ruby
<MrZYX> respond_to?
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
<MrZYX> and send takes string, so need to interpolate into a symbol
daddycat has quit [Read error: Operation timed out]
d2dchat has quit [Remote host closed the connection]
<Hanmac> he meens NO need to interpolate
bean__ has joined #ruby
<MrZYX> er, yeah
samuel02 has quit [Remote host closed the connection]
kofno has joined #ruby
samuel02 has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Neomex has joined #ruby
adamjleonard|brb has quit [Quit: Leaving...]
etcetera has quit [Remote host closed the connection]
jpcamara has joined #ruby
bean__ has quit [Client Quit]
jonahR has quit [Quit: jonahR]
LennyLinux has quit [Remote host closed the connection]
acrussell has quit [Quit: Leaving.]
breakingthings has quit []
etcetera has joined #ruby
postmodern has joined #ruby
gaahrdner has quit [Remote host closed the connection]
asteve has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
atno has quit [Ping timeout: 276 seconds]
asteve has joined #ruby
robscomputer_ has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
gaahrdner has joined #ruby
wesside has joined #ruby
robscomp_ has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 256 seconds]
bryants has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
heliumsocket has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
alanp_ has joined #ruby
alanp has quit [Disconnected by services]
alanp_ is now known as alanp
bonty_ssh has joined #ruby
atmosx has quit [Quit: And so the story goes…]
kofno has joined #ruby
gaahrdner has quit [Ping timeout: 276 seconds]
Tricon has joined #ruby
wesside_ has joined #ruby
cbot_ has quit [Ping timeout: 252 seconds]
mchung has left #ruby [#ruby]
kofno has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
bonty_ssh has quit [Ping timeout: 257 seconds]
n1x has joined #ruby
ph^ has joined #ruby
kornnflake has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
asteve has quit [Quit: Computer has gone to sleep.]
jeebster1 has joined #ruby
jeebster has quit [Ping timeout: 252 seconds]
zomgbie has joined #ruby
rsahae has joined #ruby
kpshek has quit []
MrZYX has quit [Read error: Connection reset by peer]
blacktulip has quit [Remote host closed the connection]
neku has quit [Quit: Leaving...]
ph^ has quit [Ping timeout: 256 seconds]
nazty has quit [Ping timeout: 256 seconds]
h4mz1d has joined #ruby
tootubular has quit [Quit: tootubular]
jerius has quit [Ping timeout: 260 seconds]
rsahae has quit [Client Quit]
jonahR has joined #ruby
d2dchat has joined #ruby
jonahR has quit [Client Quit]
zomgbie has quit [Ping timeout: 264 seconds]
nezumi has quit [Ping timeout: 245 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
atno has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
razibog has quit [Ping timeout: 252 seconds]
solidoodlesuppor has quit [Remote host closed the connection]
jpcamara has quit [Quit: Leaving.]
tealmage has joined #ruby
freerobby has joined #ruby
RORgasm has quit [Remote host closed the connection]
nkr has quit [Quit: Linkinus - http://linkinus.com]
MrZYX|off has joined #ruby
MrZYX|off is now known as MrZYX
bryants has joined #ruby
axl_ has quit [Quit: axl_]
robscomputer_ has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
jpcamara has joined #ruby
cmarques has quit [Ping timeout: 256 seconds]
pitzips has quit [Ping timeout: 256 seconds]
stoic_squirrel has quit [Quit: Computer has gone to sleep.]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
justsee has joined #ruby
justsee has joined #ruby
evenix has quit [Remote host closed the connection]
Skofo has quit [Quit: Leaving]
robscomputer_ has joined #ruby
osvico has quit [Read error: Connection reset by peer]
newUser1234 has quit [Ping timeout: 240 seconds]
h4mz1d has quit [Ping timeout: 264 seconds]
t-mart has quit [Read error: Connection reset by peer]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
anonymuse has quit [Quit: Leaving...]
<jeevan_ullas> ok
Davey has joined #ruby
danneu has joined #ruby
thudson has joined #ruby
theRoUS has quit [Ping timeout: 276 seconds]
_maes_ has joined #ruby
inffcs00 has quit [Remote host closed the connection]
thudson has quit [Client Quit]
mercwithamouth has joined #ruby
matchaw has quit [Remote host closed the connection]
osvico has joined #ruby
<jeevan_ullas> like this -> respond_to?("#{service_ruby_name}_service_path")
<jeevan_ullas> ?
stkowski has quit [Quit: stkowski]
LaPetiteFromage has left #ruby [#ruby]
nazty has joined #ruby
ariedler has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
twoism has quit [Remote host closed the connection]
_maes_ has quit [Client Quit]
MrZYX has quit [Remote host closed the connection]
atmosx has joined #ruby
chussenot has joined #ruby
chussenot has quit [Client Quit]
endzyme has quit [Remote host closed the connection]
etcetera has quit []
endzyme has joined #ruby
frem has quit [Ping timeout: 256 seconds]
MrZYX|off has joined #ruby
jpcamara has quit [Quit: Leaving.]
MrZYX|off is now known as MrZYX
rdev5|work has quit [Quit: Linkinus - http://linkinus.com]
rsahae has joined #ruby
huttan has quit [Read error: Connection reset by peer]
ariedler has joined #ruby
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
gabrielrotbart has joined #ruby
backjlack has quit [Remote host closed the connection]
jerius has joined #ruby
MrZYX has quit [Read error: Connection reset by peer]
LennyLinux has joined #ruby
jlast has quit [Remote host closed the connection]
rsahae has quit [Client Quit]
newUser1234 has joined #ruby
tmiller has joined #ruby
MrZYX|off has joined #ruby
julian-delphiki has joined #ruby
MrZYX|off is now known as MrZYX
rsahae has joined #ruby
Neomex has quit [Quit: Neomex]
stkowski has joined #ruby
chipotle_ has quit [Quit: cya]
snorkdude has quit [Quit: snorkdude]
realDAB has joined #ruby
bean has quit [Ping timeout: 252 seconds]
matchaw has joined #ruby
_nitti has joined #ruby
reset has joined #ruby
bean has joined #ruby
julian-delphiki has quit [Ping timeout: 256 seconds]
hmarr has quit []
pkrnj has joined #ruby
etcetera has joined #ruby
marty_mcfly has joined #ruby
_nitti has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
realDAB has quit [Quit: realDAB]
chendo__ has quit [Quit: Leaving...]
knapper_tech has joined #ruby
chendo_ has left #ruby ["Leaving..."]
lewix has quit [Remote host closed the connection]
SeySayux has joined #ruby
tevio has quit [Remote host closed the connection]
Villadelfia has joined #ruby
realDAB has joined #ruby
unstable has joined #ruby
Proshot has joined #ruby
<unstable> Can I 'break' out of a 10.times iterator? So in the 8th time, if (some true condition), break
mmitchell has quit [Remote host closed the connection]
estjang has left #ruby [#ruby]
ariedler has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 252 seconds]
<MrZYX> unstable: 10.times {|i| break if i == 8 && condition }
sleetdrop has quit [Ping timeout: 240 seconds]
thetristan has joined #ruby
ZachBeta has joined #ruby
crassus is now known as _2abou_samra
<realDAB> MrZYX: actually if i == 7 (the 8th iteration) :-)
<MrZYX> eh, right ;P
sambao21 has quit [Quit: Computer has gone to sleep.]
realDAB has quit [Quit: realDAB]
Kruppe has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
stacky has quit [Ping timeout: 260 seconds]
sleetdrop has joined #ruby
nomenkun has quit [Remote host closed the connection]
robscomputer_ has quit [Remote host closed the connection]
realDAB has joined #ruby
predator117 has joined #ruby
asphxia^^ has quit [Ping timeout: 252 seconds]
LennyLinux has quit [Remote host closed the connection]
<Joel> in ruby how I can a negate a regex inside of the regex itself? In perl you can do [^\s] for example
predator217 has quit [Ping timeout: 252 seconds]
<gf3> That doesn't negate a regex, just that class of characters
<gf3> Also the same works in ruby
<MrZYX> I like \S more for such cases
<atmosx> I know Kung-Fu
daniel_- has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
brianpWins has quit [Quit: brianpWins]
<Joel> MrZYX: so in that case /^\S*$/ ?
<waxjar> \S is the opposite of \s
<MrZYX> if you want to match empty string, yeah
<Joel> MrZYX: also, you should google maps/wikipedia zzyzx :)
stkowski has quit [Quit: stkowski]
zomgbie has joined #ruby
Morkel has quit [Quit: Morkel]
_veer has quit [Ping timeout: 256 seconds]
_bart has quit [Quit: _bart]
zomgbie has quit [Ping timeout: 245 seconds]
adrian- has quit [Quit: Linkinus - http://linkinus.com]
endzyme has quit [Remote host closed the connection]
tevio has joined #ruby
endzyme has joined #ruby
Pierreb has joined #ruby
brianpWins has joined #ruby
Tricon has quit [Ping timeout: 248 seconds]
nomike has joined #ruby
ctp_ has joined #ruby
kofno has joined #ruby
bwwrd has joined #ruby
thetristan has quit [Quit: thetristan]
endzyme has quit [Ping timeout: 245 seconds]
sepp2k has quit [Remote host closed the connection]
jeffreylevesque has quit [Read error: Connection reset by peer]
ctp has quit [Ping timeout: 248 seconds]
idkazuma has joined #ruby
emmanuelux has quit [Remote host closed the connection]
rvmuser has quit [Quit: who is rvm user ?]
kofno has quit [Remote host closed the connection]
<deric_skibotn> Anyone know how I pass --with-ruby-dir to extconf.rb on Windows?
zastern has joined #ruby
jpcamara has joined #ruby
n1x has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
malcolmva has quit [Ping timeout: 252 seconds]
Faris9 has joined #ruby
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
ariedler has joined #ruby
nomike has quit [Ping timeout: 256 seconds]
<kenneth> got another weird lambda problem :/
<kenneth> this time i have
<kenneth> true == obj[field].instance_exec(opts[:with])
Faris8 has quit [Ping timeout: 264 seconds]
<kenneth> throwing a local jump error
markalanevans has joined #ruby
BobuSumisu has joined #ruby
<kenneth> when obj[field] is a hash {field: :val} and opts[:with] is -> { self[:field] == :val }
<zastern> Is there something special about the symbol :c in ruby?
<zastern> In this example code I'm looking at - https://gist.github.com/zacharyalexstern/5359366 - it's not at all obvious what :c is referring to.
<kenneth> i don't get it, everything seems good. i've inspected the values to make sure they're what i think they are
<zastern> oh wait i get it
<zastern> its :c as a position in the alphabet. ok
newUser1234 has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 245 seconds]
etcetera has quit []
jrendell has quit [Ping timeout: 240 seconds]
jeebster has joined #ruby
ehaliewicz has joined #ruby
marty_mcfly has quit [Ping timeout: 264 seconds]
ruckerz has quit [Read error: Connection reset by peer]
ruckerz has joined #ruby
jeebster1 has quit [Ping timeout: 252 seconds]
michaelmartinez has joined #ruby
prime_ has joined #ruby
iphands_ has joined #ruby
deric_skibotn_ has joined #ruby
e-dard has quit [Read error: Operation timed out]
tethra has quit [Read error: Operation timed out]
prime has quit [Read error: Operation timed out]
Nanuq has quit [Read error: Operation timed out]
deric_skibotn has quit [Read error: Connection reset by peer]
Nanuq has joined #ruby
deric_skibotn_ is now known as deric_skibotn
xormancer has joined #ruby
girija has joined #ruby
tethra has joined #ruby
jrendell has joined #ruby
tethra has quit [Changing host]
tethra has joined #ruby
crazed has quit [Read error: Connection reset by peer]
e-dard has joined #ruby
atmosx has quit [Quit: And so the story goes…]
NiteRain has quit [Ping timeout: 260 seconds]
zomgbie has joined #ruby
marty_mcfly has joined #ruby
<swarley> Spooner, is there anywhere on IRC i could ask a quick chingu question?
ZachBeta has quit [Quit: Computer has gone to sleep.]
Dreamer3 has quit [Quit: Leaving...]
n1x has joined #ruby
ZachBeta has joined #ruby
EPIK has joined #ruby
al3xnull has joined #ruby
idkazuma has quit [Remote host closed the connection]
crazed has joined #ruby
al3xnull has quit [Remote host closed the connection]
kofno has joined #ruby
dagnachew has joined #ruby
slainer68 has quit [Remote host closed the connection]
bryants has left #ruby ["Leaving"]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
zomgbie has quit [Ping timeout: 260 seconds]
michaelmartinez has joined #ruby
jbueza has quit [Quit: Leaving.]
jbueza has joined #ruby
enriclluelles has quit [Remote host closed the connection]
newUser1234 has joined #ruby
Animawish has joined #ruby
michaelmartinez has quit [Client Quit]
idkazuma has joined #ruby
michaelmartinez has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
bonty_ssh has joined #ruby
MrZYX is now known as MrZYX|off
gabrielrotbart has joined #ruby
<swarley> Okay, well I'm not sure if there is anyone that uses chingu that is around but I have an issue
pioz has quit [Quit: This computer has gone to sleep]
<swarley> I'm trying to test the button press using the button_down method within a gamestate and checking it against KbEnter but the value of the enter key is being returned as 28 instead of the 156 that it is defined as in Gosu's buttons
hmarr has joined #ruby
xormancer has quit [Quit: ChatZilla 0.9.89 [SeaMonkey 2.17/20130331201755]]
tmiller has quit [Remote host closed the connection]
gabrielrotbart has quit [Ping timeout: 245 seconds]
catphish has quit [Quit: Leaving]
pioz has joined #ruby
aemeredith has joined #ruby
hiroyuki_ has quit [Read error: Connection reset by peer]