slainer68 has quit [Remote host closed the connection]
chrishunt has quit [Ping timeout: 260 seconds]
<bairui>
bin/binary/command are too specific (my fault on the git example). the 'system' may equally well be db query or uri fetch or simply represent an arbitrary tree of text files. but thanks for making me think more about my boundaries. hmm... target...
<blazes816>
in that case target's looking better
<blazes816>
what does your tool do with this input?
<bairui>
i'm rolling client around on my tongue for this now...
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
alienven1m has quit [Ping timeout: 244 seconds]
<bairui>
i am attempting to build a fault localisation tool using binary search (partitioning, more like it)
lggr has joined #ruby
<bairui>
so, an invocation would look something like: bisectly --target=vim f-command-broken.vim
zmo_ has quit [Quit: Leaving]
<blazes816>
in that case I would go with target for sure. i personally like the term haystack for an object that is being searched, but target sounds a bit more formal
<blazes816>
bisectly is an awesome name btw
<bairui>
thanks :)
<bairui>
i have a logo for it, and pseudocode... i just need to pull my finger out and turn it into ruby now :)
<swarley>
it doesnt even boot, because i got busy writing the std lib
AlbireoX has quit [Remote host closed the connection]
<swarley>
well, it boots
<swarley>
just it does nothing
<kiyoura>
beautiful code ;)
<swarley>
did give me a nice excuse to use my todo gem
AlbireoX has joined #ruby
<swarley>
sarcasm? :p
<kiyoura>
your 8-width tabs oddly makes it more readable
<kiyoura>
lol
<swarley>
lol, that was before i created my .vimrc
weeb1e has joined #ruby
<swarley>
oh god, my WHAT THE HELL IS GCC DOING?!? code is in there
AlbireoX`Laptop has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
fixl has joined #ruby
ryanf has joined #ruby
<swarley>
I also have a C++ version
werdnativ has quit [Ping timeout: 245 seconds]
<swarley>
but i'm not as happy with that one
Takehiro has quit [Remote host closed the connection]
lggr has joined #ruby
linoj has quit [Quit: linoj]
bradhe has quit [Read error: Operation timed out]
psyl0n has quit [Quit: psyl0n]
dmiller has joined #ruby
bricker has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
dmiller_ has quit [Ping timeout: 240 seconds]
swarley has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
xbayrockx has quit [Ping timeout: 265 seconds]
parzorep has joined #ruby
rakl has quit [Quit: sleeping]
ryanf_ has joined #ruby
xbayrockx has joined #ruby
nandos has joined #ruby
Spooner has quit [Ping timeout: 245 seconds]
ryanf has quit [Ping timeout: 255 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
nandos has quit [Remote host closed the connection]
skaczor has quit [Ping timeout: 260 seconds]
yshh has joined #ruby
BMF has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
quest88 has joined #ruby
mohits has joined #ruby
c0rn_ has joined #ruby
lggr has joined #ruby
rburton- has joined #ruby
jenrzzz has joined #ruby
yourmysin_ has joined #ruby
hsbt is now known as hsbt_away
yourmysin has quit [Ping timeout: 246 seconds]
mohits has quit [Client Quit]
starship has joined #ruby
starship has quit [Changing host]
starship has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Tarential has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
ntfox has joined #ruby
<ntfox>
Hi guys, does any have experience with goliath? Do you know, how to make work goliath with mongoid(moped) ?
lggr has joined #ruby
alek_b has quit [Remote host closed the connection]
<ntfox>
Does anyone have exp with goliath?
n_blownapart has joined #ruby
davidcelis has quit [Quit: K-Lined.]
<n_blownapart>
hi still confused about these regex examples with 2 captures; the special characters on line 7 and what is going on generally. thanks. http://pastie.org/4906423
miso1337 has joined #ruby
<n_blownapart>
what is going on particularly on line 7 ^^
lggr has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
werdnativ has joined #ruby
ZenGuy311 has quit [Ping timeout: 246 seconds]
<kiyoura>
n_blownapart, is that like the irb prompt or something?
lggr has joined #ruby
<n_blownapart>
I guess kiyoura ... I think it will run from a file too. but I'm confused about the code itself.
<kiyoura>
ive been wondering how people are debugging ruby that way
JonnieCache has joined #ruby
slainer68 has joined #ruby
<n_blownapart>
but kiyoura do you know how the \\1 \\1 $1, $2 notation works in the arguments and beyond? (i.e. within the brackets.)
<kiyoura>
n_blownapart, \\1 and $1 notation aren't interchangeable?
codeFiend has joined #ruby
starship has quit [Ping timeout: 255 seconds]
<kiyoura>
im fairly sure ruby only accepts the latter
<kiyoura>
besides that im not really sure
jenrzzz has quit [Ping timeout: 255 seconds]
BMF has quit [Remote host closed the connection]
yellow5 has quit [Ping timeout: 272 seconds]
Norrin has quit [Ping timeout: 246 seconds]
yshh has quit [Remote host closed the connection]
<n_blownapart>
thanks kiyoura
n_blownapart has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 240 seconds]
levicole has quit [Ping timeout: 256 seconds]
hackeron_ has quit [Ping timeout: 240 seconds]
<profx_>
hi guys
slainer68 has quit [Ping timeout: 255 seconds]
<profx_>
as you know, a bunch of people are doing a RonRs Berkeley course
<kiyoura>
profx_, you may want #rails
jord has quit [Ping timeout: 246 seconds]
<profx_>
im just having a little issue with understanding true/false, 0/not 0
codeFiend is now known as aeontech
verto is now known as verto|off
<profx_>
kiyoura: actually, no, I don't
hackeron has joined #ruby
<kiyoura>
just making sure
<profx_>
the def is to return true
<profx_>
i use a comparator and have 0 returned, if they are equal
<profx_>
so I was -trying- to code my def to give the expected result
<profx_>
if result == 0 return "true" else return "false" end
lggr has joined #ruby
<AndChat|>
Kiyoura maori?
<kiyoura>
hmm?
adeponte has quit [Remote host closed the connection]
<profx_>
when I run the first test on the def, i get the incorrect result
adeponte has joined #ruby
<kiyoura>
profx_, '', 0, nil, false, etc all evaluate to 'false'
<AndChat|>
Kiyours your name means hello in maori
Norrin has joined #ruby
levicole has joined #ruby
yellow5 has joined #ruby
<kiyoura>
if you know what you're expecting exactly use ===
<AndChat|>
Kiyoura yeah it it's, ruby is not php:)
<kiyoura>
AndChat|, yes, ruby is defined per each object
<profx_>
can someone answer my question then ?
<AndChat|>
Kiyoura that example shows nothing of semantics of ===
<kiyoura>
hmm AndChat| seems your right :/
<AndChat|>
Kiyoura you mean equal?
adeponte has quit [Ping timeout: 240 seconds]
<AndChat|>
Kiyoura yep:)
<kiyoura>
interesting
joeycarmello has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
<AndChat|>
Kiyoura,Buy a book
pen has joined #ruby
<kiyoura>
AndChat|, lol i was just mixed up with php for a sec :p
<ntfox>
What irc client do you use, guys?
<AndChat|>
Yeah
<AndChat|>
BUT to learn subtleties like this,a book is best kiyoura
Takehiro has quit [Remote host closed the connection]
<kiyoura>
AndChat|, i have one lol guess i should go over it again :p
ZenGuy311 has joined #ruby
<profx_>
anyone else then ?
lggr has joined #ruby
seanyo has quit [Ping timeout: 245 seconds]
leprkhn has quit [Quit: Leaving]
Takehiro has joined #ruby
Monie has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
zeromodu_ has quit [Ping timeout: 240 seconds]
zeromodulus has joined #ruby
adeponte has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
havenn has joined #ruby
dmiller has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
vitor-br has joined #ruby
SCommette has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
frogstarr78 has quit [Remote host closed the connection]
thismax has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
frogstarr78 has joined #ruby
davidcelis has joined #ruby
xopherg has joined #ruby
xopherg has quit [Client Quit]
lggr has joined #ruby
SCommette has quit [Quit: SCommette]
mercwithamouth has quit [Ping timeout: 246 seconds]
JonnieCache has quit [Ping timeout: 272 seconds]
swarley has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
SCommette has joined #ruby
lggr has joined #ruby
emergion has joined #ruby
quazimodo has quit [Ping timeout: 245 seconds]
raul782 has joined #ruby
Bosma has joined #ruby
felipec has left #ruby ["Leaving"]
AlbireoX`Laptop has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 245 seconds]
AlbireoX has joined #ruby
evaryont has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
<evaryont>
hello #ruby! I'm looking into static web site/blog engines. I know of Jekyll, but it seems dead/stale. Anyone know of some other awesome static engines?
lggr has joined #ruby
GarethAdams has joined #ruby
AlbireoX has quit [Read error: Operation timed out]
love_color_text has quit [Remote host closed the connection]
<ryanf_>
I like middleman, not sure if it's what you're looking for though
c0rn_ has joined #ruby
aeontech has quit [Ping timeout: 245 seconds]
connor_ has joined #ruby
codeFiend has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
c0rn_ has quit [Quit: Computer has gone to sleep.]
nilg has quit [Read error: Operation timed out]
<evaryont>
nah
slainer68 has quit [Ping timeout: 272 seconds]
connor_ has quit [Remote host closed the connection]
<evaryont>
ryanf_: I'm looking for an alternative to jekyll, middleman acts more like a Sinatra/Guard blend :)
Banistergalaxy has quit [Ping timeout: 240 seconds]
<evaryont>
or not
AndChat| has quit [Ping timeout: 260 seconds]
<evaryont>
it seems I didn't realize exactly what it does
lggr has quit [Ping timeout: 245 seconds]
<ryanf_>
yeah, middleman is definitely less batteries-included than jekyll I think
<profx_>
if palindrome? test_str receives "false", would that equate to ?
<ryanf_>
pardon?
icole has joined #ruby
bradhe has joined #ruby
lggr has joined #ruby
<profx_>
palindrome's def should return false, because the test_str is not one. if the def 'returns "false"', what would 'if palindrome? test_str' equate to ?
ryanf_ is now known as ryanf
SCommette has quit [Quit: SCommette]
adeponte has quit [Remote host closed the connection]
swarley has quit [Ping timeout: 255 seconds]
adeponte has joined #ruby
ryanf_ has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
yaymukund has quit [Ping timeout: 246 seconds]
<evaryont>
profx_: if palindrome? test_str == if(palindrome?(test_str)), and the return result of "false" (a string containing the letters 'f', 'a', 'l', 's', 'e') will result in boolean true, since all strings in ruby are truthy
<profx_>
so is "false" a string, rather than a booelean ?
raul782 has quit [Ping timeout: 245 seconds]
advorak has joined #ruby
ninegrid has quit [Ping timeout: 240 seconds]
<evaryont>
it depends... if your code has `return "false"`, that is a string. if it has `return false`, that is a boolean. Ruby doesn't do magic string interpretation, converting a string of "false" to be the same as false.
<profx_>
ok, thats clear for me
lggr has quit [Ping timeout: 260 seconds]
<evaryont>
profx_: it comes down to: Are you using quotes?
<profx_>
now, I am doing a comparitor, using <=>
bigmcq77 has joined #ruby
ninegrid has joined #ruby
<profx_>
yes, I -had- quotes around it, now I won't
<evaryont>
heh
<profx_>
the comparior returns 0, for a success
ryanf has quit [Ping timeout: 260 seconds]
<profx_>
but the result they are expecting from the def is true or false
ryanf_ is now known as ryanf
<profx_>
i added in, if result == 0 return true else return false end
adeponte has quit [Ping timeout: 272 seconds]
<profx_>
to determine if the string is a palindrome, I reverse the original string and <=> compare them
<profx_>
am I way off mark ?
lggr has joined #ruby
akemEikko has quit [Ping timeout: 272 seconds]
justinmcp has quit [Remote host closed the connection]
love_color_text_ has quit [Remote host closed the connection]
<heftig>
profx_: all you really need is a return str == str.reverse
bradhe has quit [Read error: Connection reset by peer]
jhubert has joined #ruby
<profx_>
and that returns true/false ?
<heftig>
yes
<profx_>
whereas the <=> would do 0 or +/- value
<heftig>
yes
adeponte has joined #ruby
<profx_>
ok, perfect
bradleyprice has joined #ruby
<profx_>
thanks
SCommette has joined #ruby
kil0byte has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
advorak has quit [Quit: This computer has gone to sleep]
irleif has quit [Ping timeout: 240 seconds]
kil0byte has joined #ruby
lggr has joined #ruby
Takehiro has quit [Remote host closed the connection]
irleif has joined #ruby
Takehiro has joined #ruby
nari has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 260 seconds]
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
roadt has joined #ruby
lggr has joined #ruby
Banistergalaxy has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
AndChat| has joined #ruby
ericmathison has joined #ruby
AndChat- has quit [Ping timeout: 240 seconds]
adeponte has quit [Ping timeout: 252 seconds]
quazimodo has joined #ruby
AndChat- has joined #ruby
yxhuvud has joined #ruby
SCommette has quit [Quit: SCommette]
Quadrant has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
dmiller has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
answer_42 has joined #ruby
AndChat- has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
AndChat| has quit [Ping timeout: 252 seconds]
bradleyprice has quit [Remote host closed the connection]
lggr has joined #ruby
havenn has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
irleif has joined #ruby
charliesome has joined #ruby
joeycarmello has joined #ruby
Araxia has quit [Quit: Araxia]
lggr has quit [Ping timeout: 245 seconds]
swarley has joined #ruby
joeycarmello has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
daniel_hinojosa has quit [Ping timeout: 255 seconds]
havenn has joined #ruby
slainer68 has joined #ruby
thismax has quit [Quit: leaving]
chendo_ has joined #ruby
mahmoudimus has joined #ruby
joofsh has quit [Remote host closed the connection]
jrp has joined #ruby
<jrp>
hello, Im trying to figure out how to verify a message with a public key
<jrp>
but im not having much luck
<jrp>
I have a pem encoded pubkey, and a message, but it seems like OpenSSL::PKey.verify requires a private key, which obviously i dont have
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
slainer68 has quit [Ping timeout: 245 seconds]
ryanf has quit [Quit: broken pipes |||]
frogstarr78 has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
dmiller has joined #ruby
rTypo has joined #ruby
bricker_ has joined #ruby
bricker_ has quit [K-Lined]
ryanf has joined #ruby
frogstarr78 has joined #ruby
araujo has quit [Quit: Leaving]
lggr has quit [Ping timeout: 245 seconds]
bricker has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
Bosma has quit [Ping timeout: 255 seconds]
ananthakumaran has joined #ruby
freezway has quit [Ping timeout: 248 seconds]
dmiller has quit [Remote host closed the connection]
jrp has left #ruby [#ruby]
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
jmampost has joined #ruby
fantazo_ has joined #ruby
lggr has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
swarley has quit [Ping timeout: 246 seconds]
Morkel has joined #ruby
icole has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 246 seconds]
icole has joined #ruby
mucker has joined #ruby
SCommette has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
lggr has joined #ruby
snorkdude has joined #ruby
werdnativ has quit [Quit: werdnativ]
darutoko- has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
nyrb has quit [Remote host closed the connection]
werdnativ has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
knite has joined #ruby
love_color_text has joined #ruby
arturaz has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
reset has quit [Ping timeout: 245 seconds]
und3f has joined #ruby
<darutoko->
I want to get from hash a new hash with 'true' values, doing this: h = hh.each.{|k,v| k => true} but it does not working, how to do it right?
JonnieCache has joined #ruby
parzorep has quit [Quit: parzorep]
rubious has joined #ruby
slainer68 has joined #ruby
thone_ has joined #ruby
AlbireoX has joined #ruby
biesiad has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
thone has quit [Ping timeout: 240 seconds]
JonnieCache has quit [Ping timeout: 248 seconds]
slainer68 has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
kzrl has quit [Ping timeout: 246 seconds]
manizzle has joined #ruby
advorak has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
yaymukund has joined #ruby
parzorep has joined #ruby
jmampost has quit [Ping timeout: 248 seconds]
havenn has quit [Remote host closed the connection]
Hsparks has joined #ruby
Hsparks has quit [Remote host closed the connection]
emergion has joined #ruby
adeponte has joined #ruby
Hsparks has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
Morkel has quit [Quit: Morkel]
und3f has quit [Ping timeout: 245 seconds]
quest88 has quit [Quit: quest88]
cardoni has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
advorak has quit [Quit: This computer has gone to sleep]
icole has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
kzrl has joined #ruby
Banistergalaxy has joined #ruby
advorak has joined #ruby
lggr has joined #ruby
Erfankam has joined #ruby
advorak has quit [Read error: Connection reset by peer]
advorak has joined #ruby
ZubKonst_ has joined #ruby
ZubKonst has quit [Read error: Connection reset by peer]
rabidpraxis has quit [Remote host closed the connection]
lggr has joined #ruby
JonnieCache has quit [Ping timeout: 248 seconds]
zenformatics has joined #ruby
Solnse has joined #ruby
Erfankam has quit [Remote host closed the connection]
dangerousdave has joined #ruby
tjbiddle has joined #ruby
jimgg has left #ruby [#ruby]
Jellyg00se has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
araujo has joined #ruby
hbpoison has joined #ruby
raluxgaza has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
anderse has joined #ruby
samphippen has joined #ruby
ForevernadeAFK has quit [Ping timeout: 252 seconds]
araujo has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 255 seconds]
araujo has joined #ruby
Virunga has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
Virunga has joined #ruby
Virunga has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
hbpoison has joined #ruby
lggr has joined #ruby
ZubKonst has joined #ruby
ZubKonst_ has quit [Ping timeout: 245 seconds]
samuel02 has joined #ruby
<Dwarf>
Simple question:
<Dwarf>
In an if statement, how would one do something along the lines of if (var1 == 1 || var2 == 2)
<Dwarf>
Is that valid?
<Dwarf>
Or rather, if (var1 == 1 && var2 == 2)
<Dwarf>
Because I read somewhere that it will execute things instead
lggr has quit [Ping timeout: 246 seconds]
kjellski has joined #ruby
lggr has joined #ruby
frogprince_mac has joined #ruby
rabidpraxis has joined #ruby
rakl has quit [Quit: sleeping]
emergion has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
akem has quit [Ping timeout: 245 seconds]
rabidpraxis has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
Cache_Money has quit [Ping timeout: 255 seconds]
miso1337 has quit [Quit: afk]
icole has joined #ruby
akem has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
<Dwarf>
How would I go about doing something like arrayindex = array.count -1
jamesaxl has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
x0F__ has joined #ruby
x0F__ is now known as x0F
lggr has quit [Ping timeout: 272 seconds]
icole has quit [Ping timeout: 244 seconds]
mneorr has quit [Ping timeout: 246 seconds]
x0F_ has quit [Ping timeout: 248 seconds]
niklasb has joined #ruby
lggr has joined #ruby
justinmcp has joined #ruby
wez has joined #ruby
jamesaxl has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
vitor-br has quit [Ping timeout: 245 seconds]
<Hanmac>
Dwarf why do you need the arrayindex?
frederic has joined #ruby
lggr has joined #ruby
kjellski has quit [Quit: This computer has gone to sleep]
adeponte has quit [Remote host closed the connection]
anirudh24seven has quit [Ping timeout: 276 seconds]
mucker has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
Solnse has quit [Ping timeout: 248 seconds]
niklasb has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
a_a_g has joined #ruby
zeromodulus has quit [Ping timeout: 240 seconds]
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
cardoni has quit [Quit: cardoni]
akem has quit [Excess Flood]
akem has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
zeromodulus has joined #ruby
lggr has joined #ruby
timonv has joined #ruby
Morkel has joined #ruby
zeromodulus has quit [Ping timeout: 260 seconds]
hamed_r has joined #ruby
mneorr has joined #ruby
anirudh24seven has joined #ruby
prtksxna has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
theRoUS has joined #ruby
negev has joined #ruby
Iszak has quit [Read error: Connection reset by peer]
justinmcp has quit [Remote host closed the connection]
<negev>
hi, can anyone point me at a very simple ORM written in Ruby? ideally something small and lightweight, a single file library, that i can easy extend to work with a different database backend
lggr has joined #ruby
timonv has quit [Remote host closed the connection]
nemesit has joined #ruby
nemesit has quit [Client Quit]
zeromodulus has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
anderse has quit [Quit: anderse]
lggr has quit [Ping timeout: 240 seconds]
negev has left #ruby [#ruby]
anirudh24seven has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
arietis has joined #ruby
davidcelis has quit [Ping timeout: 245 seconds]
* Kovensky
prefers to just use datamapper
<Kovensky>
automigration is just too nice :>
zeromodulus has quit [Ping timeout: 272 seconds]
icole has joined #ruby
Takehiro has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
snearch has joined #ruby
lggr has joined #ruby
hamed_r has quit [Ping timeout: 256 seconds]
icole has quit [Ping timeout: 252 seconds]
wez has quit [Ping timeout: 245 seconds]
cakehero has joined #ruby
wez has joined #ruby
und3f has quit [Quit: Leaving.]
mneorr has quit [Remote host closed the connection]
cakehero has quit [Client Quit]
wez has quit [Client Quit]
cakehero has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
Virunga has joined #ruby
kirun has joined #ruby
a_a_g has quit [Quit: Leaving.]
cakehero has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 252 seconds]
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
freeayu has quit [Ping timeout: 256 seconds]
anderse has joined #ruby
JonnieCache has joined #ruby
lggr has joined #ruby
Takehiro has joined #ruby
cakehero has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
haxrbyte has joined #ruby
verto|off is now known as verto
freeayu has joined #ruby
JonnieCache has quit [Read error: Operation timed out]
lggr has quit [Ping timeout: 252 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
tandy80 has joined #ruby
tandy80 has left #ruby [#ruby]
lggr has joined #ruby
clj_newb has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
_bart has joined #ruby
zeromodu_ has joined #ruby
timonv has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
zeromodu_ has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
freeayu has left #ruby ["离开"]
hamed_r has joined #ruby
bluenemo_ has joined #ruby
A124 has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 240 seconds]
Rydefalk has joined #ruby
lggr has joined #ruby
fphilipe has joined #ruby
Iszak has quit [Remote host closed the connection]
zeromodu_ has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
akem has quit [Read error: Connection reset by peer]
icole has joined #ruby
miphe has quit [Remote host closed the connection]
akem has joined #ruby
lggr has joined #ruby
roadt has quit [Ping timeout: 245 seconds]
zeromodu_ has quit [Ping timeout: 245 seconds]
Morkel has quit [Quit: Morkel]
mucker has quit [Ping timeout: 260 seconds]
icole has quit [Ping timeout: 248 seconds]
Axsuul has quit [Ping timeout: 276 seconds]
mucker has joined #ruby
dpk has joined #ruby
raluxgaza has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
starship has joined #ruby
_bart has quit [Quit: _bart]
_bart has joined #ruby
nicoulaj has joined #ruby
_bart has left #ruby [#ruby]
A124 has quit [Quit: Leaving.]
lggr has joined #ruby
A124 has joined #ruby
roadt has joined #ruby
<sakh_>
can i define a local variable in ruby that has the same name as an already existing method?
fixl has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<sakh_>
if var local var "abc" when I already have a method "abd(x)"
<sakh_>
"abc(x)"
sakh_ is now known as sakh
<shevy>
sakh, ruby will try to find out what you mean first
<shevy>
it has some rules for that. I think a method name can never be on the left of an assignment
<shevy>
foo() = x
<shevy>
ruby would scream that this is invalid
<shevy>
whereas
<shevy>
x = foo()
<shevy>
should work
<shevy>
as should
<shevy>
foo = foo()
krz has joined #ruby
<sakh>
mmm kk ty
<shevy>
guys... if I have a string like x = "abcDef" ... is there a way to make this "AbcDef"?
<shevy>
.capitalize unfortunately downcases everything else, and upcases the first character
lggr has quit [Ping timeout: 252 seconds]
<shevy>
right now I use foo[0,1] = foo[0,1].upcase but that sucks
zeromodulus has joined #ruby
<sakh>
camelize?
<sakh>
i think something like this exists
<canton7>
sounds like an activesupport thing?
<shevy>
hmm I dont want to use extensions, if possible. my experience was that I had to carry them with my projects
<shevy>
I'll use the ugly foo[0,1] thing then :\
lggr has joined #ruby
hbpoison has joined #ruby
NuclearL1cifer has joined #ruby
<NuclearL1cifer>
greetings..
<canton7>
shevy, you can do foo[0] = foo[0].upcase, and shave a few chars :)
timonv has quit [Remote host closed the connection]
zeromodulus has quit [Ping timeout: 256 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
hotovson_ has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 255 seconds]
mercwithamouth has joined #ruby
<shevy>
yeah
prtksxna has quit [Ping timeout: 255 seconds]
bluenemo_ has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
<shevy>
but .capitalize on a string is so much nicer :)
<shevy>
I used to have a method called .my_cap
<shevy>
just so that it capitalizes the first character... until I got tired of carrying it into my projects
<shevy>
hmm
dinamicex1 has joined #ruby
<shevy>
isn't there a way for a one liner?
lggr has quit [Ping timeout: 246 seconds]
<shevy>
like "work on this string that has its first character upcased, then continue with other stuff"
sandGorgon has joined #ruby
rakunHo has quit [Remote host closed the connection]
<dinamicex1>
Hi! Does someone know a Ruby online problem solving competition that is still active? I heard of RPCFN but there were no contests since 2010.
<sakh>
y
<matti>
;]
<sakh>
its called "install ruby-debug19 on my machine"
lggr has joined #ruby
hbpoison has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
kiyoura has joined #ruby
vectorshelve has joined #ruby
lggr has joined #ruby
arturaz has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
kjellski has joined #ruby
iamjarvo has joined #ruby
mercwithamouth has quit [Ping timeout: 244 seconds]
gmci has joined #ruby
banisterfiend has joined #ruby
<banisterfiend>
anyone here got ruby 1.8 ?
lggr has quit [Ping timeout: 246 seconds]
pyreal has quit [Quit: pyreal]
nemesit has joined #ruby
<Hanmac>
1.8 is so totally last century ... you are not up-to-date :P
pmros has joined #ruby
hsbt has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
<pmros>
hi!
<banisterfiend>
pmros: sup
hsbt has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<shevy>
1.8 was the sweet times
<shevy>
1.9 is the rails-ruby
<shevy>
2.0 will be called railsy
<shevy>
railsy foo.ry
<vectorshelve>
hoe can write a method using this regex to check if the input is 10 digit or not using regex https://gist.github.com/3884581
<matti>
Nobody!
pmros has quit [Ping timeout: 272 seconds]
pmros has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
hsbt has quit [Ping timeout: 252 seconds]
zmo_ has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
hamed_r has quit [Quit: Leaving]
lggr has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
morozovm has joined #ruby
icole has joined #ruby
<Hanmac>
vectorshelve you need to learn to do it your self ... but i help a little bit... i would recomend this regex: /\A\+?[0-9]{10}\Z/
<matti>
vectorshelve: ...
seoaqua has joined #ruby
hsbt has quit [Ping timeout: 248 seconds]
<vectorshelve>
Hanmac: thanks mate.. I think String.match /\A\+?[0-9]{10}\Z/ should work :)
<matti>
[0-9] is so ...
<matti>
Hanmac: \d
<matti>
;d
prtksxna has joined #ruby
<matti>
vectorshelve: Use Rubular for poking rx'es.
<Hanmac>
matti you could use [[:digit:]] too
icole has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 252 seconds]
<matti>
Hanmac: NO! That smells like Bash / POSIX.
<vectorshelve>
Hanmac: it works... but for "111111111\".match /\A\+?[0-9]{10}\Z/ SyntaxError: (irb):11: syntax error, unexpected tINTEGER, expecting $end "111111111\".match /\A\+?[0-9]{10}\Z/
<matti>
vectorshelve: \" ?
<vectorshelve>
matti: was just trying giving diff values to string.. to cross check regex
<matti>
vectorshelve: You escaped "
<canton7>
but why the backslash before the quote?
<vectorshelve>
matti: all it should have is 10digits.. and regex should find it :)
<vectorshelve>
matti: backslash before quote was intentional to see if something could break and it did.. got error..
<Hanmac>
matti the difference is that /[[:digit:]]/.match("\u06F2") returns not-nil
<matti>
vectorshelve: You should read 101 for Ruby development too.
<matti>
Hanmac: Cheeky monkey you.
lggr has joined #ruby
<vectorshelve>
matti: I hope you understood what I was trying to do... check all possible wierd combinations.. I need to use this regex to validate my input :)
<matti>
vectorshelve: \" has nothing to do with with regular expression.
<matti>
vectorshelve: Its a syntax error.
<matti>
vectorshelve: '12345"' is a different kettle of fish.
Virunga has quit [Remote host closed the connection]
<canton7>
vectorshelve, the problem is that you're not even defining your input. the backslash means that your input definition is, in fact, a syntax error
<matti>
vectorshelve: Or "12345\""
<matti>
canton7: He has no idea what is he doing ;d
<vectorshelve>
canton7: matti what if really the input is "111111111\" thats my question
<canton7>
I gathered :P
<canton7>
vectorshelve, the '"1111111\"'.match(...)
<matti>
vectorshelve: That is fine.
<canton7>
*then
<matti>
vectorshelve: Your approach to testing it is wrong.
<matti>
vectorshelve: You have introduced a syntax error while testing invalidating your test predicate.
mercwithamouth has joined #ruby
Virunga has joined #ruby
clj_newb has quit [Ping timeout: 240 seconds]
<matti>
vectorshelve: "a12345" or "12345a" or "12a345" would do it too.
<matti>
vectorshelve: IIRC, class self << xxx is not a valid syntax?
<matti>
Unless its Ruby 3.0 ;d
stwzea has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
Virunga has quit [Read error: Connection reset by peer]
Virunga_ has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
sambio has joined #ruby
monkegjinni has joined #ruby
lggr has joined #ruby
kaawee has joined #ruby
hsbt is now known as hsbt_away
iamjarvo has joined #ruby
clj_newb has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<Hanmac>
matti i have seen a guy that replaces all { ... } blocks with do ... end blocks, and then he wonder why the code is not working :P
lggr has quit [Ping timeout: 260 seconds]
forced_request has quit [Remote host closed the connection]
<matti>
;p
<matti>
Hanmac: I guess some bad memory inprint from his time with Pascal ;d
<Hanmac>
{ ... } and do ... end are similar but sometimes are not interchangeable
vectorshelve has quit [Ping timeout: 245 seconds]
<matti>
Indeed.
hbpoison has quit [Ping timeout: 246 seconds]
<matti>
They bind differently from lexical point of view.
<matti>
But this is like 101 Ruby.
wpaulson has joined #ruby
<matti>
;/
<matti>
We want 102 Ruby problems.
<matti>
And 201 ...
lggr has joined #ruby
<matti>
Eh, being jobless is so great.
<matti>
I have so much time!
<profx_>
hey guys, im using Terminal in OSX, when I run irb, and I am at the bottom of the terminal, it keeps filling the bottom of the window, and makes a mess, strings printed on two or more lines show on a single line, up arrow makes the output a mess, etc
<matti>
profx_: Try to use this with iTerm2
<matti>
profx_: There might be problem / issue with Readline (or lack of it).
<matti>
OS X is only for buying music on iTunes.
<matti>
When will people realise that ;p
<matti>
Like Windows is just for games.
hbpoison has joined #ruby
<profx_>
well, that won't work, I don't 'buy' music
<Hanmac>
for what else do you need OSX?
<profx_>
ill try iterm2, thanks matti
<matti>
;]
<matti>
Hanmac: Hahah
sailias has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
n1x has joined #ruby
<profx_>
music media center, sync idevices, import photos, web browsing, run upto 8 VMs using VMWare Fusion, telephone calls across North America, and movie trailers
gmci has quit [Read error: No route to host]
<matti>
Um.
<matti>
profx_: And all that after you sepnt 2000 $$$
<matti>
;d
<profx_>
over $2000
<matti>
There you go ;]
<profx_>
are you a banker ?
<matti>
No.
lggr has quit [Ping timeout: 260 seconds]
<profx_>
there YOU go
* matti
<- Linux user
wpaulson_ has joined #ruby
wpaulson has quit [Read error: Connection reset by peer]
wpaulson_ is now known as wpaulson
soulcake has quit [Read error: Connection reset by peer]
gmci has joined #ruby
miphe has joined #ruby
<matti>
profx_: I cannot spent $2000 or over, I am too busy compiling latest kernel!
<matti>
;d
wpaulson has quit [Client Quit]
<profx_>
obvious you are bored as well.
lggr has joined #ruby
<matti>
I am still couting times when I closed my terminal with Apple-Q by accident ;/
anirudh24seven has joined #ruby
<matti>
profx_: Its 3rd day of me being jobless ;d
<matti>
profx_: So I am enjoying myself ;]
<profx_>
apple-K does not cut a line in nano FYI
<Hanmac>
i am currently jobless too so i have time to write bindings for 3D-engines ...
<matti>
nano?
<matti>
VIm <3
* matti
puts profx_ on fire
akem has quit [Read error: Connection reset by peer]
<matti>
profx_: :)
<matti>
Hanmac: I just cooked dinner, want a bite of profx_?
JonnieCache has joined #ruby
<matti>
;]
* profx_
has dragon ancestry, walks out of this fire
<matti>
wb JonnieCache
<Hanmac>
who needs output? i can type without monitor :D
negev has joined #ruby
<matti>
Hanmac: LOL
<matti>
profx_: :)
<matti>
profx_: So, you are now super-heated.
<matti>
profx_: If I trhrow a super-cold water on you,will physics do the rest?
<profx_>
ok, so ! is destructive, i am going words.downcase.chats.sort.join
noxoc has joined #ruby
<profx_>
can I place these back into words, using a bang?
<canton7>
profx_, not necessarily destructive. when there are two methods with do very similar things, often the one that does the least expected thing has the bang suffix
banisterfiend has quit [Read error: Connection reset by peer]
akem has joined #ruby
chussenot has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
jamjam has joined #ruby
slainer68 has joined #ruby
rabidpraxis has joined #ruby
<negev>
thanks :)
jeffreybaird has joined #ruby
lggr has joined #ruby
sambio has quit [Ping timeout: 240 seconds]
yshh has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
uris_ has joined #ruby
<clj_newb>
Hi, is there any way to free open resources at exit? For example a process spawned
<waxjar>
ruby is garbage collected, so it does that on its own
gmurphey has joined #ruby
<clj_newb>
then should I implement the 'finalize' method (referring to java) to close that process?
<Mon_Ouie>
Not for everything, e.g. ruby -e 'Process.spawn "sleep 1; echo foo"'
<Mon_Ouie>
Use an ensure block or, if you really need to, Kernel#at_exit to kill the process
anirudh24seven has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010235040]]
<clj_newb>
thanks Mon_Ouie and waxjar
lggr has quit [Ping timeout: 260 seconds]
_bart has joined #ruby
parzorep has joined #ruby
sambio has joined #ruby
lggr has joined #ruby
codeFiend has quit [Read error: Connection reset by peer]
rTypo has joined #ruby
<clj_newb>
Is there like an ensure but for the program?
<Hanmac>
just add begin and end
kjellski has joined #ruby
<clj_newb>
well I was thinking more of a hook on exit
n1x has quit [Quit: Ex-Chat]
<waxjar>
at_exit takes a block that's executed when the program exits, with trap you can "catch" certain signals (e.g. kills, interrupt, etc) and do stuff before it the program exits
jeffreybaird has quit [Quit: jeffreybaird]
<waxjar>
i never know when to use which one, but that should be enough to let google do its magic :P
sambio has quit []
sambio has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Ivo has joined #ruby
one8zero has joined #ruby
<matti>
Mon_Ouie: ;]
hbpoison has quit [Ping timeout: 246 seconds]
<Hanmac>
waxjar and then the program catchs both SIGTERM and SIGKILL :P
<waxjar>
with at_exit you mean?
emmanuelux has joined #ruby
codeFiend has joined #ruby
<matti>
Hanmac: You cannot catch SIGKILL ;p
<Hanmac>
good to know :P
<matti>
;p
lggr has joined #ruby
<matti>
Hanmac: STOP and KILL are one among few significant ones, that you cannot really intercept, like you would do with INT and TERM sometimes.
kjellski has quit [Quit: This computer has gone to sleep]
<matti>
Travils green. Mission successful.
codeFiend has quit [Client Quit]
roadt has quit [Ping timeout: 255 seconds]
pmros has joined #ruby
sambio has quit []
sambio has joined #ruby
sambio has quit [Remote host closed the connection]
manizzle has quit [Ping timeout: 245 seconds]
sambio has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
sambio has quit [Client Quit]
sambio has joined #ruby
icole has joined #ruby
lggr has joined #ruby
gmci has quit [Read error: No route to host]
hsbt_away is now known as hsbt
fphilipe has quit [Remote host closed the connection]
fantazo_ has quit [Ping timeout: 260 seconds]
fphilipe has joined #ruby
icole has quit [Ping timeout: 244 seconds]
gmci has joined #ruby
fantazo has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
hsbt has quit [Ping timeout: 245 seconds]
prtksxna_ has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
seanyo has joined #ruby
prtksxna has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
parzorep has quit [Quit: parzorep]
sterNiX has joined #ruby
nixon has joined #ruby
<nixon>
Hello everyone!
* nixon
slaps `heliar_ around a bit with a large trout
<Dwarf>
Hanmac: I want to have a string but want to remove the first two words, so I exploded it with the space as delimiter
<Dwarf>
I don't know if that's the smartest thing to do tho
snorkdude has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
F1skr has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
<nixon>
somebody can recommend books for the beginner ... Of course I can look myself, but I want to hear what books you yourself have helped
codeFiend has joined #ruby
lggr has joined #ruby
timonv has joined #ruby
<Spooner>
nixon: New to programming or new to Ruby?
zeromodulus has joined #ruby
hotovson has joined #ruby
hsbt_away has joined #ruby
<Hanmac>
Dwarf: s="this is a string"; s[/\b(\w+\s?){2}\b/]=""; s #=>"a string"
<Hanmac>
it may not work perfect
<Dwarf>
Regex ;_;
irleif has joined #ruby
<Dwarf>
Is there an easier to do and easier to understand method?
<Dwarf>
I don't like having parts of my code that I don't understand
<waxjar>
still on the irc bot dwarf?
<Hanmac>
hm it seems that /\b(\w+\W?){2}/ is better
<Dwarf>
Sure thing waxjar
<nixon>
I am a student at the university in the first year ... but now i am studying javascript could you advise where it is better to start to learn ruby
codeFiend has quit [Client Quit]
<waxjar>
aye. best thing to do is just split the string imo
slainer68 has quit [Remote host closed the connection]
<Dwarf>
Like I used to do?
snorkdude has quit [Remote host closed the connection]
<Dwarf>
And then pop the first two out of the array, then join them with spaces again?
<Hanmac>
waxjar and what do you use for split?
hbpoison has joined #ruby
<matti>
nixon: Start writing code ;)
<Hanmac>
and what about "this is, a string" ?
zmo_ has quit [Ping timeout: 255 seconds]
<matti>
Hanmac: Pesky comma ;p
<waxjar>
that's the hard part, the prefixes are optional
lggr has quit [Ping timeout: 246 seconds]
<waxjar>
if you were to just pop off the first two, you might take a param of that's of interest to you
<Dwarf>
Could you elaborate?
<Dwarf>
I'm mainly looking to get rid of the "nick!ident@host PRIVMSG #chan" part
<Dwarf>
first three then I guess
<waxjar>
in that case you're looking for the trail, splitting on ":" would do the trick
monkegjinni has joined #ruby
<Dwarf>
Oh right
<Dwarf>
That's very smart indeed
lggr has joined #ruby
<Dwarf>
But what if
<Dwarf>
People were to use multiple :'s
<Dwarf>
Or would I split it then pop of the first one and then join it
<Dwarf>
Yea that would work
<waxjar>
keep in mind that messages might start with a : too. if that's the case, max it to 3 instead of two
<matti>
Dwarf: Over-engineering is a root of evil ;]
<Dwarf>
True dat
<waxjar>
message.split(':', 2 || 3).last
hbpoison has quit [Ping timeout: 245 seconds]
krz has quit [Quit: krz]
<waxjar>
where 2 or 3 depends on wether the message starts with : or not
morozovm has quit [Read error: Connection reset by peer]
FifthWall has joined #ruby
morozovm has joined #ruby
monkegjinni has quit [Ping timeout: 246 seconds]
noxoc1 has joined #ruby
kiyoura has quit [Quit: Leaving]
<Dwarf>
Heh waxjar, for some reason it spouts out the whole string
<Dwarf>
[ 5:48 PM] <#dwarf:Dwarf> Dwarf!jesus@what.have.i.bcome.nl PRIVMSG #dwarf :Hello world
<Dwarf>
But what if someone has an IPv6 address ._.
noxoc has quit [Ping timeout: 240 seconds]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<waxjar>
good point, maybe use a regexp after all :p
rabidpraxis has quit [Remote host closed the connection]
CaptainJet has joined #ruby
F1skr has quit [Ping timeout: 245 seconds]
<Dwarf>
ew
tjbiddle has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
<matti>
lol
<Dwarf>
Isn't it possible to join the array but skipping the first three items? ._.
<matti>
Dwarf: Write FFI to libirssi ;]
lggr has joined #ruby
<Dwarf>
Less abbreviations please
<Dwarf>
This is my first project after all
<matti>
:>
tjbiddle has quit [Client Quit]
anderse has quit [Quit: anderse]
delinquentme has quit [Quit: Leaving]
SuperrMann has joined #ruby
one8zero has quit [Quit: one8zero]
<waxjar>
i guess it'd be ok if that's the only kind of message you analyse, i.e. you're absolutely certain the prefix (dwarf!*@*) isn't left out
rabidpraxis has joined #ruby
horofox has joined #ruby
<Dwarf>
That's what I want to leave out
<matti>
Dwarf: Read RFC for IRC protocol.
<Dwarf>
I know the RFC
mucker has quit [Quit: Lost terminal]
vegardx has joined #ruby
<matti>
Dwarf: OK, so there is a structure that is expected.
<Dwarf>
Yap
<matti>
Dwarf: Find it, and then it will be easy to separate message from it.
mucker has joined #ruby
<matti>
Dwarf: So you would be able to handle : : : : : and other things.
<vegardx>
I'm having a great deal of issues getting things in ruby to work, and no nvm or other version controller is not a solution, it just messes things up even more. When I install a gem for some reason rake does not find it if that makes any sense.
<vegardx>
And google just tells me to setup a proper path, without anything more. What path? where? how? When?
<Dwarf>
Ay
negev has quit [Quit: Lost terminal]
<Dwarf>
I know what the RFC is and I know the specifications
<Dwarf>
But I want to know how to join an array but leave the first three out
<Dwarf>
That's all
<burgestrand>
vegardx: how’d you mess it up?
jerius has joined #ruby
<burgestrand>
vegardx: how did you install ruby?
<waxjar>
array[2..array.size] would work i think
<Hanmac>
array[2..-1]
<vegardx>
burgestrand: I'm using the default version that ships with debian.
lggr has quit [Ping timeout: 246 seconds]
<waxjar>
damn, that's handy to know Hanmac
<burgestrand>
vegardx: version 1.8. It’s begun it’s end of life and will pretty much ignored after summer 2013. Either way, you require rubygems in your Rakefile — because I assume that’s where you require your gem that is missing?
<Hanmac>
vegardx so what does "ruby -v" and "gem env" output?
saschagehlich has joined #ruby
timonv has quit [Remote host closed the connection]
<Hanmac>
you could switch the defaultversion shiped with debian, when you install ruby1.9.1-full and do "update-alternatives --config ruby" & "update-alternatives --config gem"
<vegardx>
that's ubuntu only afaik
<vegardx>
burgestrand: The problem seems to be that rake looks for the gems in a diffrente place, but when i use --trace it tells me that it looks in the correnct path.
<burgestrand>
vegardx: did you require rubygems?
<vegardx>
i did what?
fir_ed has joined #ruby
<Hanmac>
hm no update-alternatives should work on debian too
conor_ireland has joined #ruby
lggr has joined #ruby
<burgestrand>
vegardx: you said you have a Rakefile. Rakefiles are ruby scripts. In ruby 1.8 you need to require rubygems to be able to require gems.
<vegardx>
Hanmac: hm, i'll try that on another box, this redmine installation is too important to just fiddle with it :)
<vegardx>
burgestrand: I have no idea, I'm trying to install redmine, never written a line of ruby before.
<burgestrand>
vegardx: what’s the complete error output?
<burgestrand>
vegardx: you have a Gemfile. In the Gemfile, do you have gem 'inifile' in it?
<vegardx>
burgestrand: where should I have this Gemfile?
<burgestrand>
vegardx: the root of the redmine project.
<vegardx>
Ill check :)
sailias has quit [Quit: Leaving.]
<negev>
nm solved it
<vegardx>
nupe, as this is the requirement of the plugin
<burgestrand>
vegardx: Gemfile is the authorative source of gems your application may require. It’s like an application sandbox kind of thing for libraries.
<vegardx>
aha
<Hanmac>
negev you cant use the Data class its for internal stuff
<burgestrand>
vegardx: when you do "bundle install", you’ll create a Gemfile.lock in the process. This Gemfile.lock lists *all* gems and dependencies your application may use.
<burgestrand>
vegardx: is the inifile gem something you require yourself, or part of some library or plugin?
lggr has quit [Ping timeout: 246 seconds]
fphilipe has joined #ruby
<vegardx>
It's a part of the plugin, not redmine itself
<dagnachewa>
rvm upgrade 1.9.3-p194 1.9.3-p286 complains about signature
<burgestrand>
vegardx: alright. If you grep through the Gemfile.lock, do you see any mention of inifile in there?
jeffreybaird has joined #ruby
<vegardx>
Not before I manually added it to Gemfile
<burgestrand>
vegardx: alright, that is definitely *an* issue then. Might work after you’ve added it to the Gemfile :)
<vegardx>
but the module seems to not work with 1.8.7, as now I get errors that seems to stem for uninitialized constants
<vegardx>
thanks a lot :)
<vegardx>
will have to try out update-alternatives as Hanmac pointed out, but on another system first
<burgestrand>
vegardx: more information about what a Gemfile is, in case you are curious: http://gembundler.com/
lggr has joined #ruby
ddd has quit [Quit: Leaving.]
havenn has joined #ruby
<Hanmac>
update-alternatives cant break anything ... and if its not work, you could switch is back without problems ... the update-alternatives are only redirect links
fphilipe has quit [Remote host closed the connection]
reuf has quit [Ping timeout: 245 seconds]
<vegardx>
I think I should get a gist of how ruby works a little more before messing with a live redmine site :)
icole has joined #ruby
<vegardx>
but thanks
pmros has quit [Quit: Konversation terminated!]
burgestrand1 has joined #ruby
<vegardx>
For some reason 1.9.1 does not show up after installing ruby1.9.1-full
<Spooner>
ruby: It is 1.8 specific in how it works.
quest88 has quit [Client Quit]
rabidpraxis has quit [Remote host closed the connection]
<Spooner>
ruby: It will not work with 1.9 and give you those warnings. Do you really need it?
<Spooner>
ruby: The other problem is in gltail, which is quite another issue.
lledet has joined #ruby
uris_ has quit [Quit: Lost terminal]
ruby has quit [Ping timeout: 276 seconds]
<Spooner>
ruby: Well, gltail uses a version of the opengl gem which is not compatible with 1.9 (not associated with that error, but something else to worry about).
<thmzlt>
Spooner: it's this new version of wordpress
lggr has quit [Ping timeout: 255 seconds]
bluOxigen has joined #ruby
adeponte has quit [Remote host closed the connection]
kzrl has joined #ruby
<vegardx>
thmzlt: Only with more dependencies that Will Break Your System (tm)!
<Algo2>
Anyone know what type of map this is called at the bottom? It shows the earth's dark side over a world map http://time.gov/timezone.cgi?Eastern/d/-5/java
<Algo2>
I haven't seen it anywhere else online
ryanlecompte has quit [Remote host closed the connection]
workmad3 has joined #ruby
<Spooner>
Algo2 : daylight map
Araxia has joined #ruby
lggr has joined #ruby
vectorshelve has quit [Quit: Page closed]
jbw has quit [Ping timeout: 272 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
Nanuq has quit [Quit: Lost terminal]
<Algo2>
Ahh thanks
icole has joined #ruby
kpshek has quit []
Nanuq has joined #ruby
<burgestrand>
vegardx: what does line 33 say in config/environment.rb?
thmzlt has quit [Remote host closed the connection]
<profx_>
i want to create an array that contains the index (of another array), when the string contained in one index is the same as a string in another index
<profx_>
someone point me in the right direct ?
friskd has joined #ruby
Algo2 has left #ruby [#ruby]
friskd has quit [Client Quit]
<Spooner>
profx_ : Don't quite understand. Can you give an example?
hsbt_away is now known as hsbt
<profx_>
sure
arturaz has joined #ruby
<profx_>
['ab','bc','ab'], gives the array [[0,2],[1]]
<burgestrand>
vegardx: looks like there is some configuration missing, not sure where sessionconfig comes from
icole has quit [Ping timeout: 240 seconds]
armenb has joined #ruby
anderse has quit [Quit: anderse]
<vegardx>
burgestrand: hm, I'm upgrading to a newer version of rails, to see if that helps
<shevy>
profx_ what is the logic behind this, why are the values 0 2 and 1 assigned in that way
<vegardx>
and install redmine from source
<Spooner>
shevy : BEcause index 0 and 2 are the same and 1 is unique.
<shevy>
hmm
<shevy>
ah
<shevy>
two times 'ab' right?
mr-rich has joined #ruby
<profx_>
there is a match of 'ab'(0) and 'ad'(2), so I place them in index 0 as an array
<shevy>
did not see that
<shevy>
with a hash that would be even easier :D
kyletcarey has joined #ruby
<profx_>
then continue to the next.... 'bc'
<Spooner>
profx_ : I understand the problem, but I don't understand why you'd need it ;)
<profx_>
Spooner: and I don't understand how to do it, guess we are all here to learn :)
cthulhu2 has joined #ruby
one8zero has joined #ruby
lggr has joined #ruby
slainer68 has joined #ruby
<shevy>
but does it have to be an array? i mean why not a hash? the hash could just count the occurences of 'ab'? or do you really just need the positions in the array, for some awkward reason
<shevy>
what shall the resulting array show in this case?
<shevy>
anagram? is that like a palindrome?
<profx_>
from array1, it would result in: [ [0,2] [1] ], array2: [ [0], [1], [2] ]
<shevy>
Spooner help me out, I have a hard time imagining this hehehe
<profx_>
anagram, is: ask, kas
<shevy>
aha
<profx_>
same letters used in multiple words
<profx_>
so I sort the word alphabetically
thmzlt has joined #ruby
<shevy>
k then palindrome is different... it would be like "otto"
<profx_>
then I want to move over the array, then reference the index of the original
<profx_>
yes, that is a palindrome
<profx_>
abba
<shevy>
yeah
<shevy>
swedish pop group
<profx_>
never heard of them ;)
<shevy>
hmmm
<shevy>
don't you actually need some kind of logic checker, to find out what is an anagram and what is not?
<profx_>
thats what I am doing :D
<shevy>
ok so basically you know what the end result should be (some array with positions)
<profx_>
yep
<shevy>
now you need some kind of method that compares, I think, two words with one another
<shevy>
like foo("abc","ca") or something like that
darutoko- has quit [Quit: Any sufficiently advanced technology is indistinguishable from magic. (Arthur C. Clarke)]
<shevy>
Spooner, show us an algorithm to find the smallest route to an anagram please!
lggr has quit [Ping timeout: 255 seconds]
<shevy>
where are the math guys... I always try and try until things work without thinking
<Spooner>
Well, I have a partial result, but I'm not sure how that helps you do what you want. What is your aim that you need such a result?
harryheintz has joined #ruby
RegEchse has joined #ruby
<shevy>
let me try to speak in pseudo logic... "take each character... work on it... reverse each position... compare... if found match, add it to a list... continue"
<profx_>
i dont require the answer
<profx_>
maybe just a push, really
<Spooner>
a = %w<ab bc ab>; a.uniq.map.with_object([]) {|e| get all indexes of a in e }
<profx_>
ah, so you use uniq
Virunga has joined #ruby
peneconleche has quit [Ping timeout: 240 seconds]
<profx_>
oh, wait, thats your own defined function
<Spooner>
I mean a.uniq.map.with_object([]) {|e| work out an array of all indecies of e in a }
<Spooner>
*indices
elico has joined #ruby
<profx_>
sorry, what is map ?
lggr has joined #ruby
thehustle has joined #ruby
<Spooner>
If you need to know map, you are going to struggle.
<shevy>
profx_ .map applies something on each element of a collection
<ddd>
works under Terminal.app or iTerm2 no problems
<profx_>
gem just sits there, doing nothing
JohnBat26 has joined #ruby
<profx_>
i don't think gem is a native command
<thmzlt>
profx_: you realize you are now completely away from your initial problem, right?
yxhuvud2 has quit [Client Quit]
<Mon_Ouie>
It just needs time to install stuff
yxhuvud has joined #ruby
<Mon_Ouie>
And gem does com with Ruby 1.9
<ddd>
independent of the shell. if you're using RVM, you should install in your ruby's @global gemset, and make sure your shell launches as a login term so that RVM loads. other than that, you work with it like any other gem you would install. absolutely no difference
icooba has joined #ruby
<profx_>
so do I have to enter irb, then use gem ?
<Mon_Ouie>
(although some packagers may think otherwise)
ruby has joined #ruby
<ddd>
nope, you type pry
<ddd>
though you can alias irb='pry'
<Mon_Ouie>
No, gem is a regular command
<profx_>
weird
<ddd>
and you don't run gem from inside irb.
<Spooner>
profx_ : gem is a command that Ruby gives you, to install gems (libraries). It is a CLI command, not Ruby source.
<profx_>
not working here
<ddd>
do you know how to use ruby?
<Mon_Ouie>
Elaborate on "not working"
<profx_>
oh well, I can use the web for documentation
thmzlt has quit [Remote host closed the connection]
<ddd>
iwanttolearnruby.com
<profx_>
everyone coming out of the woodwork now
<Spooner>
If you can't use gems, profx_, then you might as well give up on Ruby. It isn't something you can just not bother with.
ZenGuy311 has quit [Ping timeout: 245 seconds]
<ddd>
ehh, i hang in the pry channel, know the dev team (originally written by banisterfiend) so when I saw you talking about it and needed help i kicked in. more than enough people to get you from here to there
<Spooner>
Sorry, profx_ , I'm giving you a hard time and not really being fair. You do need to learn about using gems in general, even if you don't want to use pry for what I suggested.
JonnieCache has joined #ruby
prtksxna_ has quit [Remote host closed the connection]
<profx_>
Spooner, i don't take your comments personally
<profx_>
i was simply getting back to my question, you took me on a tangent
jenrzzz has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
anderse has quit [Client Quit]
<Spooner>
ruby: Also, I suspect that SIGUP is not supported on Windows, so gltail isn't going to work for that reason too.
<Spooner>
profx_ : Means it returns a boolean result.
Dawne has quit [Ping timeout: 240 seconds]
<profx_>
oh, then how do you call it ?
<Spooner>
It isn't enforced though; it is just a stylistic choice.
<profx_>
obj.something?
<Spooner>
Yeah.
<profx_>
ah, perfect
<profx_>
merci
<Spooner>
e.g. explode unless array.empty?
nateberkopec has joined #ruby
ryanlecompte has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
daniel_-_ has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<Spooner>
profx_ : We generally use empty? where another language would use is_empty()
hsbt is now known as hsbt_away
<profx_>
got it :)
<vegardx>
Does rake have some sort of cache that I'm not aware of?
<vegardx>
I'm getting tons of "/usr/lib/ruby/vendor_ruby/rake/version.rb:2: warning: already initialized constant VERSION
<shevy>
looks as if some file tries to reload version.rb
<Spooner>
Would only happen if it is using #load, not #require, though.
<vegardx>
Ruby really need a "Sysadmin ruby 101"-book, so many things are done in completely mindboggeling strange ways
lggr has joined #ruby
<shevy>
vegardx yeah, ruby is quite complex, I'd wish it would be simpler and more streamlined
frederic has quit [Remote host closed the connection]
<shevy>
then things like @@foo could be destroyed too
<Spooner>
shevy : Roll on Ruby 3.0
<vegardx>
shevy: And don't get me started on all the versions. My god...
vlad_starkov has joined #ruby
<shevy>
hehehe
`brendan has quit [Read error: Connection reset by peer]
<Spooner>
vegardx : There are only 2 real versions. Teh current and the old one (1.9.3 and 1.8.7).
<shevy>
perhaps mruby can stimulate new enthusiasm about ruby
<Spooner>
Oh, all those versions.
<vegardx>
From a non-developer point of view, it's giving me a headacke
<shevy>
well, there were incompatibilities added between 1.8.x and 1.9.x even within the same branch
<Spooner>
You only need to use one version of one Ruby platform.
<vegardx>
Spooner: Yeah, but that's not true at all. In Debian I count 4, and not to mention all the issues with dependencies of gems which has a boarload of versions that are incompatible with each others.
<shevy>
I think ruby-1.9.3-p286 behaves differently compared to 1.9.0 or 1.9.1
<shevy>
ack debian
<vegardx>
The development moves too fast for systems to pick up, and no, installing from source is not always a good alternative.
<shevy>
debian wants to control all software
<Spooner>
vegardx : Find me a language without 100 "versions" as you speak of, and we can continue ;)
<shevy>
so they recommend to use apt-get for gems
<shevy>
and then people come here and ask why they have problems
rabidpraxis has quit [Remote host closed the connection]
one8zero has joined #ruby
<shevy>
:)
<shevy>
(with debian + apt-get)
<Spooner>
shevy But 1.9.0 and 1.9.1 were not widely used. 1.9.2 was the first production-quality 1.9 as far as I'm aware.
<vegardx>
Spooner: Few, but they have proper documentation so you can sit back, read for five minutes and understand that X wont work in Y. With ruby you have to wait for it to crash, do a trace, make sense of the trace, and then realize that you are on the wrong version of GEM X.
<shevy>
vegardx, well... the quality of the different gems varies
vlad_sta_ has joined #ruby
<Spooner>
vegardx : Yeah, we use bundler to avoid that. It shouldn't be an issue in real use.
<shevy>
ack bundler
<vegardx>
It feels like the wrong way to solve the problem
<shevy>
but hey, perhaps one day I will like bundler
akem has joined #ruby
<vegardx>
but that's just me
<Spooner>
I love people who slag off bundler, the only thing that makes anything work. Before it, we were screwed all the time.
<shevy>
vegardx everyone strives for control
<vegardx>
shevy: good to hear :)
vlad_starkov has quit [Ping timeout: 245 seconds]
<shevy>
Oh then I simply point out that I followed the officials rails tutorial with bundler, which did not work for me at all
<vegardx>
Not just me that's lost in all of the different versions that are mutually exlusive to one other
akemEikko has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
<havenn>
I can't ever tell if the bundler gripers and trolls or not.
<shevy>
let's give it a try again, perhaps it works this time :)
Orcris has joined #ruby
akem has quit [Max SendQ exceeded]
pmros has joined #ruby
<havenn>
Sometimes it is really hard to tell with clever trolls. For example, pip has no way to update all packages. It is a package manager... and can't update all its packages.
lggr has quit [Ping timeout: 260 seconds]
akem has joined #ruby
<havenn>
*all installed packages
<shevy>
hmmmm strange
`brendan has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
<shevy>
bundler is not needed when installing rails?
mucker has quit [Quit: leaving]
<shevy>
or is it needed only afterwards .... hmmm
jrajav has joined #ruby
<Spooner>
Installing Rails gem will install deps via gem.
akem has quit [Max SendQ exceeded]
<Spooner>
Rails apps need bundler.
<shevy>
:(
seanyo has joined #ruby
akem has joined #ruby
<shevy>
Hanmac, I am going to ask you about bundler from now on
<shevy>
I even failed earlier, somehow I broke digest/md5 ... time for beer ...
JonnieCache has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
hbpoison has joined #ruby
<Hanmac>
i never used bundler :D
chessguy has quit [Remote host closed the connection]
<shevy>
pmros dunno, most girls don't like programming
<shevy>
it's not exactly an activity you can do together, unlike sightseeing
<RubyPanther>
Pair Programming for Couples
irleif has joined #ruby
bbttxu_ has joined #ruby
<Spaceghostc2c>
shevy: Try fucking off. <3
<matti>
LOL
anderse has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
thomasfedb has quit [Ping timeout: 244 seconds]
cyong has quit [Quit: Leaving.]
gmci has quit [Quit: Computer has gone to sleep.]
<shevy>
that makes more sense than pair programming
tjbiddle has quit [Quit: tjbiddle]
<RubyPanther>
Pair programming with my wife, that means she makes a skype call on my computer while I'm trying to code
lggr has joined #ruby
<Spitfire>
lol
raul782 has joined #ruby
anderse has quit [Quit: anderse]
AlbireoX has joined #ruby
sent-hil has joined #ruby
sent-hil has quit [Remote host closed the connection]
elico has joined #ruby
yaroslav has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
mahmoudimus has joined #ruby
dangerousdave has quit [Quit: Leaving...]
rburton- has joined #ruby
<ddd>
i'd actually like to do some pair programming. did a bit with The Rubyists group, but that was months and months ago. I'd like to do it again. (including skyping for real time deliberating)
lggr has quit [Ping timeout: 276 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Client Quit]
cakehero has joined #ruby
cakehero has quit [Client Quit]
lggr has joined #ruby
jarred has quit [Quit: jarred]
<pmros>
you could share things you love with person you love
<pmros>
it's perfect
<rburton->
pmros speaking about my website ;)
<pmros>
:)
<rburton->
Actually the site I'm building is for that ;)
mikepack has quit [Remote host closed the connection]
adeponte has joined #ruby
vlad_starkov has joined #ruby
marcux has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
h4mz1d has joined #ruby
dblandin has joined #ruby
<Xeago>
anyone here with some gpg knowledge?
<Xeago>
I have an old backup that has/had a private key
bluOxigen has joined #ruby
raul782 has quit [Remote host closed the connection]
apok has joined #ruby
BMF has joined #ruby
lggr has joined #ruby
<Xeago>
is all the information exclusively stored in ~/.gnupg ?
vlad_starkov has quit [Ping timeout: 246 seconds]
dblandin has quit [Client Quit]
<Xeago>
(I am using gpgv2, I did use macgpg2 to create the key)
justinmcp has joined #ruby
<ddd>
Xeago: yeah usually stored in .gnupg/gnupgrc or similar
<ddd>
its all text based for config. and yes if you copy over your .gnupg dir into the existing dir it should all just work
<ddd>
so long as you don't overwrite a similarly named but internally different keyset
mercwithamouth has quit [Ping timeout: 244 seconds]
<Xeago>
that is an ls of ~/.gnupg
<Xeago>
I can't find any key in there
<Xeago>
all is encrypted/binary
<Xeago>
besides conf
<Xeago>
(directory is empty)
<ddd>
stored in secring.gpg and pubring.gpg
anderse has joined #ruby
<ddd>
gpg —list-keys iirc
<ddd>
err --
<ddd>
my client for some reason keeps changing '—' to '-' on me
<ddd>
the ones with the ~ are the backups from the last addition/removal of key(s) you did
joeycarmello has quit [Remote host closed the connection]
<ddd>
run 'gpg —help' and look at how to export keys. you need the key fingerprint and should be able to just extract it.
lggr has quit [Ping timeout: 240 seconds]
<Xeago>
gnupg: stable 1.4.12
<Xeago>
is old right?
<Xeago>
2.+ should be used right?
<Xeago>
I don't have a gpg binary yet
ryanlecompte has joined #ruby
joeycarmello has joined #ruby
v0n has joined #ruby
<ddd>
yeah 2 is fine
adeponte has quit [Remote host closed the connection]
<ddd>
iirc it not only has backwards compatability configurable, it also will convert iirc
<ddd>
don't trust that last bit, thats from memory
apok has quit [Quit: apok]
<Xeago>
I used macgpg2, which uses gpg2
<Xeago>
afaik
h4mz1d has quit [Ping timeout: 246 seconds]
<ddd>
yep
<ddd>
i use gpg2 out of brew
<ddd>
either works
lggr has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<ddd>
same public key infrastructure. both use and push OpenGPG keys
<ddd>
s/keys/key format/
hsbt_away is now known as hsbt
<Xeago>
gpg2 from brew does not set up a symlink it seems
<Xeago>
:O
horofox has quit [Ping timeout: 240 seconds]
gmurphey has quit [Ping timeout: 260 seconds]
<Xeago>
oh it does
<ddd>
brew link gpg2
icooba has quit [Quit: Computer has gone to sleep.]
anderse has quit [Quit: anderse]
ryanlecompte has quit [Remote host closed the connection]
Axsuul has joined #ruby
<ddd>
if the links are fucked just brew unlink gpg2 && brew link gpg2. if they're so totally screwed it can't undo them it usually lists which ones it can't in the error(s)
clj_newb has joined #ruby
<Xeago>
blurgh: .gnupg/gpg.conf:236: invalid auto-key-locate list
arturaz has quit [Remote host closed the connection]
<Xeago>
the line it complains about are equal lol
gmci has joined #ruby
keyvan has quit [Remote host closed the connection]
reuf has quit [Ping timeout: 260 seconds]
<ddd>
yeah, that just started. I just upgraded the version 2.0.19. wonder what thats about
cobragoat has joined #ruby
<ddd>
i think its one of the options passed
<ddd>
the *setting* is valid, but something in the list of options is not
xeronic has quit []
<cobragoat>
any thoughts on the best approach to running 1.9.3 on Precise in a production environment? wondering about rvm, rbenv etc..
thomasfedb has joined #ruby
thomasfedb has joined #ruby
thomasfedb has quit [Changing host]
havenn has quit [Remote host closed the connection]
nicoulaj has quit [Remote host closed the connection]
alecchen has quit [Ping timeout: 265 seconds]
lggr has quit [Ping timeout: 255 seconds]
<Xeago>
I moved the config out of place
<Xeago>
commands work lol
baroquebobcat has joined #ruby
<arturaz_>
cobragoat: go with rbenv
<arturaz_>
Less headaches.
lggr has joined #ruby
<ddd>
what headaches?
<cobragoat>
arturaz_: thanks
<cobragoat>
rvm headaches
<ddd>
it works, installs easily, and manages quite easily
<cobragoat>
or at least while configuring with chef
dblandin has joined #ruby
<Xeago>
requiring sourcing of shellrc/env
baroquebobcat has quit [Client Quit]
Apocalypse has joined #ruby
dinamicex1 has joined #ruby
<ddd>
err? guess you don't use any command completion additions (like bash-completion or git-completion) then
<dinamicex1>
Hi. Can someone explain me why when I declare a function( like attr_accessor) in the class Class then I can run that function inside an instance of the class Class (which is a class itself). Here is an example http://ideone.com/tE7LN
pmros has quit [Quit: Konversation terminated!]
<ddd>
or anything similar, nor source any bash alias files, or .bash_functions files etc
<Xeago>
ddd, rbenv supplies completion for bash and zsh.. ?
<Xeago>
from my experience, stuff in cron had to manually source bash.rc
<ddd>
Xeago: idk, does it? rvm supplies completion, sets up the correct variables, even lets you install ruby-specific pkgs needed for compiling if needed. not that hard
adeponte has quit [Remote host closed the connection]
<ddd>
yes it did
<arturaz_>
Ddd - production script headaches
<arturaz_>
or bash version requirements
<waxjar>
rbenv has completion yeah
<Xeago>
I found rbenv to do less, but but less hackier
<Xeago>
I prefer to use a tool that does 1 thing good
icole has joined #ruby
<arturaz_>
Indeed
<ddd>
arturaz_: please file Issues for what you're finding wrong. We'll fix. Also bash v3.2.x is the minimum which is just fine
<matti>
OK, running valgrind and Ruby was quite a scary experience.
<Xeago>
and use other stuff for the rest
<Xeago>
matti valgrind?
<Xeago>
vagrand?
<Hanmac>
cobragoat you could change the default ruby with update-alternatives
<ddd>
think its bash 3.2.18 and osx and others offer either bash4 or at least bash 3.2.48 so shouldn't be an issue
<ddd>
and Hanmac likes to use just the packages. so many ways :)
<arturaz_>
ddd - rvm stable refused to install on ubuntu 10.04
<cobragoat>
hanmac: thanks. yes I know. I think i'd like to use rvm or rbenv as I really like rvm for development
<ddd>
arturaz_: file a specific bug. We have quite a few people using older versions of ubuntu, debian, freebsd, and sunos. any issues, file, they're usually fixed that day
<arturaz_>
Anyway, after trying rbenv i've learned that i personally prefer it more. Though rvm is still cool :-)
chrishunt has quit [Read error: Connection reset by peer]
<cobragoat>
while we are here.. what servers are you guys using for production? I've tried a few setups but would love to hear some opinions.. however opinionated
<Xeago>
ubuntu lts 10
lggr has quit [Ping timeout: 240 seconds]
<ddd>
now *that* is a valid reason. preference due to active usage patterns.
<ddd>
I like 12.04 personally
<cobragoat>
talkin web and app servers..
kirun has quit [Quit: Client exiting]
bluOxigen has quit [Ping timeout: 248 seconds]
chrishunt has joined #ruby
<cobragoat>
I'm using 12.04 definitely
<Xeago>
atm everything ubuntu lts 10
<Xeago>
there is some rented vm's we use that run centos
<cobragoat>
but wondering about unicorn/phusion apache/nginx etc
<Xeago>
but everything we set up ourselves in prod was 10
<Xeago>
we're migrating to a newer version of ubuntu
<Xeago>
our tests run at lts 12
workmad3 has joined #ruby
<Xeago>
and dev mostly on osx, tho some people use ubuntu, some run a hack of everything
icole has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
<Xeago>
ddd: how would I list private keys?
lggr has joined #ruby
* Xeago
is blind: -K
raul782 has joined #ruby
<ddd>
hehe
<shevy>
lol
alecchen has joined #ruby
rburton- has quit [Read error: Connection reset by peer]
rburton- has joined #ruby
<Xeago>
if I want to increase/reset the expiration date of my key
<Xeago>
I am supposed to make a new key, and then sign it with the old
<Xeago>
and reissue the new key?
mahmoudimus has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Virunga has joined #ruby
<ddd>
gpg —edit-key yourid
<ddd>
help edit
<ddd>
err help expire
vlad_starkov has joined #ruby
alanp_ has joined #ruby
answer_42 has quit [Ping timeout: 260 seconds]
vlad_sta_ has joined #ruby
pac1 has joined #ruby
lggr has joined #ruby
Apocalypse has quit [Remote host closed the connection]
statix_ has quit [Read error: Connection reset by peer]
remaus has joined #ruby
statix_ has joined #ruby
justinmcp has quit [Remote host closed the connection]
alanp has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 255 seconds]
raul782 has quit [Remote host closed the connection]
dinamicex1 has quit [Remote host closed the connection]
arturaz_ has quit [Quit: Bye]
lggr has quit [Ping timeout: 245 seconds]
damagednoob has joined #ruby
Takehiro has quit [Remote host closed the connection]
adeponte has joined #ruby
morozovm has quit [Quit: morozovm]
JonnieCache has joined #ruby
horofox has joined #ruby
lggr has joined #ruby
weasels has joined #ruby
stwzea has quit [Quit: Leaving.]
miphe has joined #ruby
<Xeago>
how large is 30kB for an image in a key in gpg?
thomasfedb has quit [Ping timeout: 244 seconds]
hotovson has quit [Ping timeout: 245 seconds]
otters has quit [Ping timeout: 240 seconds]
jrajav has quit []
moshee has quit []
BMF has quit [Remote host closed the connection]
weasels is now known as otters
thomasfedb has joined #ruby
hotovson has joined #ruby
JonnieCache has quit [Read error: Operation timed out]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Foxandxss has joined #ruby
lggr has joined #ruby
snorkdude has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
adeponte has quit [Remote host closed the connection]
zodiak has quit [Remote host closed the connection]
marcux has quit [Ping timeout: 255 seconds]
dmiller has joined #ruby
somazero has joined #ruby
adeponte has joined #ruby
tommyvyo has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
chessguy has joined #ruby
kyletcarey has quit [Quit: Lost terminal]
damagednoob has quit [Quit: Leaving]
vlad_sta_ has quit [Remote host closed the connection]
lggr has joined #ruby
nemesit has quit [Quit: Leaving...]
tommyvyo has quit [Quit: Computer has gone to sleep.]
irleif has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 245 seconds]
joeycarmello has joined #ruby
lggr has joined #ruby
Solnse has quit [Ping timeout: 248 seconds]
justinmcp has joined #ruby
Takehiro has joined #ruby
joeycarmello has quit [Ping timeout: 245 seconds]
v0n has quit [Ping timeout: 246 seconds]
Virunga has quit [Remote host closed the connection]
CaptainJet has quit []
Apocalypse has joined #ruby
tommyvyo has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
codeFiend has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
Apocalypse has quit [Remote host closed the connection]
uris_ has quit [Quit: Lost terminal]
h4mz1d has joined #ruby
kramutils has quit [Quit: leaving]
jimeh has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 265 seconds]
kzrl has quit [Ping timeout: 240 seconds]
kyletcarey has joined #ruby
lggr has joined #ruby
kzrl has joined #ruby
ryanf_ has joined #ruby
ryanf has quit [Quit: leaving]
ryanf_ is now known as ryanf
miphe has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
lggr has joined #ruby
hsbt has joined #ruby
conor_ireland has joined #ruby
chessguy has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
v0n has joined #ruby
<Spooner>
shadewind: The array in $* is still internally modificable and changing ARGV gives a warning. Not sure how you are using that as a meaningful differentiation.
lggr has quit [Ping timeout: 272 seconds]
bier has joined #ruby
fixl has joined #ruby
<shadewind>
Spooner: it's probably just that I have no idea
lggr has joined #ruby
<shadewind>
Spooner: what's the difference between them? it seems to be that both contain command line arguments
cakehero has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
<Spooner>
shadewind : Everyone would use ARGV rather than the more magic $* is the main difference. Realistically, most people would use an options parser rather than touch either themselves ;)
<Spooner>
It is bloody Perl baggage :/
<shadewind>
Spooner: yeah I figured ARGV is the "proper way"
<Spooner>
$* and the other magics that is.
<shadewind>
and that was actually my first guess about $*
<shadewind>
I haven't used Perl myself but I've heard about all its special variables
<shadewind>
which themselves are baggage from shell scripts, IIRC
<shadewind>
|------------------------| <--- this big
<Spooner>
It is just to stop adding features.
<Spooner>
Yeah, about that.
dpk has quit [Quit: Asleep at the keyboard.]
fixl has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
<conor_ireland>
Spooner: So all other ruby development has to stop for 4 months just to release 2.0? There is no better way to do it? Surely there is?
jrajav has joined #ruby
<Spooner>
conor_ireland : No, it doesn't mean that. It means they won't add new feature bloat from Oct, while they ensure that everything works perfectly.
<Spooner>
It is a completely different branch from any work on 1.9 (and obviously 1.8 isn't going anywhere any more).
<conor_ireland>
Spooner: ok, that makes much more sense
<Spooner>
So if you have any bright ideas, they will have to wait for 2.1 ;)
<conor_ireland>
I am not a ruby developer (although I love the language)
<Spooner>
But based on how quickly we moved to 1.9, I wouldn't worry about 2.0 for a couple of years.
<conor_ireland>
you don't think 2.0 will be on time?
lggr has joined #ruby
<Spooner>
No, I mean that it won't be useable until 2.1 and it won't be production quality until 2.2
<conor_ireland>
Ah
mahmoudimus has quit [Quit: Computer has gone to sleep.]
daniel_-_ has quit [Read error: Operation timed out]
<Spooner>
Though that is maybe a little harsh. I didn't switch to 1.9 until 1.9.2, but some did earlier and there are still plenty still hugging onto 1.8 for dear life ;)
<conor_ireland>
I was taught ruby on 1.8 as 1.9 was thought to be not ready, same thing with python 3 (although that has worse compatibility problems too)
<Spooner>
It is mostly the adoption of compatibility in gems though, rather than the language itself. Until the gems you need work, you can't upgrade.
sterNiX has quit [Ping timeout: 245 seconds]
freeayu has joined #ruby
vlad_starkov has joined #ruby
zii has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
* Spooner
waits for someone who knows what they are talking about to correct him.
dmiller has quit [Remote host closed the connection]
ZenGuy311 has quit [Ping timeout: 245 seconds]
<conor_ireland>
Spooner: I know less than you on Ruby, but that makes sense. Gems are very numerous, and 3rd party so them being upgraded will take a while
lggr has quit [Ping timeout: 265 seconds]
h4mz1d has quit [Ping timeout: 245 seconds]
<conor_ireland>
plus I'd say it is a chicken/egg thing to with devs not bothering to update because people en masse are not using 2.0 which is circular
<Spooner>
Yep.
vlad_starkov has quit [Ping timeout: 260 seconds]
somazero has quit [Quit: Leaving]
zastern has joined #ruby
lggr has joined #ruby
<zastern>
I'm having trouble with something kinda basic - I know that this - input_file = ARGV[0] - means set input_file equal to command line argument, but what does the 0 mean?
joeycarmello has joined #ruby
<Spooner>
zastern : ARGV is just an array.
<zastern>
Spooner: and therefore?
<Spooner>
[0] just means the first element of that array.
<zastern>
oh ok. so if I made it 1, then it would set the var equal to the second command line argument?
<Spooner>
So for "ruby frog.rb cheese peas", ARGV will be ["cheese", "peas"]
<Spooner>
zastern : Obviously, ARGV is likely to be an empty array, [], in irb or online ;)
ryanf_ has joined #ruby
ben_alman has joined #ruby
<zastern>
Spooner: on my current internet connection, tryruby.org takes about 2 seconds to return a result for ARGV.class. I'll stick to irb ;)
<zastern>
Spooner: yes, I understand that lacking arguments, there are not arguments
<zastern>
:P
<Spooner>
Of course, but the time to return is the time to run it in a local Ruby process. Isn't the Internet slowing it down. Yeah, using irb makes more sense if you already have Ruby installed ;)
Tearan has joined #ruby
<zastern>
Spooner: wasn't there something better than irb that people were using now
codeFiend has quit [Quit: codeFiend]
<zastern>
i know it doesnt really matter for a n00b, im just curious
hsbt is now known as hsbt_away
<waxjar>
(pssh, get pry :P)
<Spooner>
zastern : Yes, pry is better, but pushing it to a complete noob is overkill.