<bricker>
benzrf: do you not have ruby installed on your computer?
<benzrf>
yes i do
<benzrf>
but i like spamming
<bricker>
don't we all
sam113101 has quit [Client Quit]
sam113101 has joined #ruby
timonv has joined #ruby
binaryplease has quit [Ping timeout: 248 seconds]
asteros has joined #ruby
mattattaque has joined #ruby
zz_karupanerura is now known as karupanerura
zz_jrhorn424 is now known as jrhorn424
baroquebobcat has joined #ruby
scarolan has quit [Ping timeout: 252 seconds]
jjbohn has joined #ruby
bronson_ has joined #ruby
^Chris^ has quit [Read error: No route to host]
^Chris^ has joined #ruby
freezey has joined #ruby
ngoldman has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv has quit [Ping timeout: 240 seconds]
^Chris^ has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
^Chris^ has joined #ruby
guns has quit [Quit: guns]
kofno has quit [Ping timeout: 244 seconds]
robustus has quit [Ping timeout: 264 seconds]
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
Jetchisel has joined #ruby
Deele has joined #ruby
atrocitas has joined #ruby
thesheff17 has joined #ruby
Ox6abe has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
robustus has joined #ruby
<Kamuela>
DanBoy, asked if ruby had structures
<Kamuela>
anyone know enough rails to answer "can a project be named anything with no problems later on? meaning if i just modified the heck out of a tutorial's sample app, could i deploy that?"
tkuchiki has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
MattStratton has joined #ruby
dkamioka has joined #ruby
<benzrf>
eka has joined #ruby
eka has quit [Client Quit]
johnnyfuchs has joined #ruby
dmyers has quit [Ping timeout: 245 seconds]
tylersmith has quit [Remote host closed the connection]
<Kamuela>
there's gotta still be something leftover from the scaffold that's causing local to be set over and over
FDj has quit [Ping timeout: 272 seconds]
<Kamuela>
I dunno. I don't think it's the scaffold. I think that's just not how activerecord works or something
chomskiii has quit [Read error: Connection reset by peer]
<sevenseacat>
like i said before, if you want to use activerecord attributes, theyre not instance variables
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
EvanR_ has quit [Ping timeout: 240 seconds]
coldmethod1 has quit [Ping timeout: 240 seconds]
<Kamuela>
i'm not sure what you mean by that, which isn't shorthand for not being able to possibly understand your meaning, just that i don't know whether or not you mean to tell me to use active record attributes or to realize that i need code in my controller to do what i'm asking for
kcombs has quit [Remote host closed the connection]
phansch has joined #ruby
<sevenseacat>
i dont know what you just said, but is `local` a field in your database that you are using activerecord to manage?
duggiefresh has joined #ruby
carif has quit [Ping timeout: 244 seconds]
simplyaubs has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
falood has quit [Remote host closed the connection]
OdNairy has joined #ruby
<Kamuela>
sevenseacat, yes. i want it to be created and linked to the URL table. but created once. that's why i went for initialize overload at first if you remember, and then we thought about after_init
<sevenseacat>
right, so @local is not the data you are storing in your dataase
<sevenseacat>
activerecord attributes are not instance variables
<sevenseacat>
replace is with self.attributes[:local]
Mars has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Mars is now known as Guest94183
daxroc has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
<Kamuela>
sevenseacat, so Models can have all kinds of crazy code doing whatever it wants, but only those few attributes matter to its actions upon the database?
mikepack has joined #ruby
<sevenseacat>
again, i dont know what you just said.
chomskiii has joined #ruby
io_syl has joined #ruby
Guest94183 has quit [Ping timeout: 240 seconds]
<Kamuela>
@local is not that data stored in the database, @this, @this_again, @nor_that isn't stored in the database
<sevenseacat>
correct
<Kamuela>
def this_weird function acting upon @this @thisnthat doesn't do anything
<nobitanobi>
Kamuela, what are you trying to do?
<sevenseacat>
the data from the database is in attributes
<Kamuela>
nice
falood has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
mikepack has quit [Ping timeout: 272 seconds]
capicue has joined #ruby
Astralum has joined #ruby
<Kamuela>
so is :local a symbol that represents that string in my database?
<shevy>
Kamuela a symbol is always a symbol
asteros has joined #ruby
<shevy>
Kamuela it can never represent a string object
<sevenseacat>
your field name is `local`. ergo, :local.
<sevenseacat>
'local' might also work, havent tried it.
<Kamuela>
shevy, i think it means something to rails because it's pointing to a spot in a database, I THINK BUT CANNOT KNOW
<shevy>
Kamuela sure, behind the scenes it can do all sorts of conversions
<sevenseacat>
convention over configuration
vlad_starkov has joined #ruby
<Kamuela>
yeah... tell that to all the tutorial writers
jjbohn has joined #ruby
<Kamuela>
they approach things 12 different ways... each
<sevenseacat>
is there actually still a problem?
Dreamer3 has quit [Ping timeout: 246 seconds]
<Kamuela>
yeah most definitely, maybe you assumed that i knew some other way to use self.attribute[:local] but i can't just assign a value to it
<sevenseacat>
yes you can
<Kamuela>
the server breaks in half when i try
mlpinit has joined #ruby
<sevenseacat>
and its attributes, not attribute
<shevy>
Kamuela why do you want to use that
<shevy>
Kamuela I mean you must reason, for all parts that you use here: self.attribute[:local]
<shevy>
I suppose attribute is a method?
rjhunter has joined #ruby
<shevy>
probably returns the ivar @attribute
<shevy>
a hash I guess
<sevenseacat>
also 'the server breaks in half' isnt something i can fix without more information
<shevy>
yeah
<Kamuela>
i don't know what it returns. it's a blackhole. it just takes
happydude has joined #ruby
<bnagy>
HEY U GUISE you know a great place to talk about rails??
<shevy>
Kamuela, nah, it must use ruby language, it can not be complete blackhole, it must at least use valid ruby syntax
<Kamuela>
bnagy, can't do it. i can't do it. too stuffy in there most days
<shevy>
Kamuela you can always debug from within your .rb script(s)
<sevenseacat>
i do, and we were talking there before, but for some reason Kamuela moved here
<Kamuela>
bnagy, will seriously consider shutting up if i'm bringing the stuffy here though :(
vlad_starkov has quit [Remote host closed the connection]
<shevy>
he moved here because we know ruby, unlike #rubyonrails
<sevenseacat>
to continue talking about his rails app
<sevenseacat>
shevy: lol
<sevenseacat>
by all means, i'll let you help him then.
<shevy>
Kamuela when you do self.attribute[:local], what error is displayed to you?
<Kamuela>
i was being dramatic, no error, just no functionality
<Kamuela>
the variable does not set
<shevy>
set
<shevy>
set how or where
jjbohn has quit [Ping timeout: 245 seconds]
<shevy>
I mean, you talk more than you show code ;)
<Kamuela>
save? !
ananthakumaran has quit [Quit: Leaving.]
* Kamuela
goes digging into the MVC connections
vlad_starkov has joined #ruby
mlpinit has quit [Ping timeout: 241 seconds]
<nobitanobi>
Kamuela, what are you trying to accomplish?
<Kamuela>
nobitanobi, a URL shortener
<sevenseacat>
i made a mistake with the code i gave, but oh well
<nobitanobi>
so what is your problem?
<sevenseacat>
guess its because i dont know ruby lolololo
iajrz_ has joined #ruby
<Kamuela>
generating a local URL and saving it to the database
iajrz has quit [Ping timeout: 250 seconds]
iajrz_ is now known as iajrz
<nobitanobi>
ok. Do you already save URLs into the database?
ageis_ has quit [Ping timeout: 244 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<Kamuela>
nobitanobi, I do, Url.remote gets saved just fine
ananthakumaran has joined #ruby
<nobitanobi>
I don't know what Url.remote is
Aqib has joined #ruby
<nobitanobi>
Why don't you show your code? Create a Gist with your code model/controller/ - Whatever that is in the flow that is causing the problem
Aqib has left #ruby ["Konversation terminated!"]
<Kamuela>
nobitanobi, rails g scaffold URL remote:string local:string, that is my code, 95% of it
<bnagy>
and then paste it in #rubyonrails
<bnagy>
ffs
<nobitanobi>
also Kamuela have you considered going to #rubyonrails?
brisbin has quit [Ping timeout: 244 seconds]
ananthakumaran has quit [Client Quit]
<shevy>
Kamuela if you call a method that sets an @ivar, that @ivar is set
<Kamuela>
sevenseacat, what was the mistake?
<sevenseacat>
let shevy figure it out
<Kamuela>
that's unfair! mostly to poor bnagy lol
<sevenseacat>
so why are you still asking rails questions in a non-rails channel then?
<Kamuela>
because i got offered help by 3 people here
<shevy>
I think they only want to send you away, not help you :(
vlad_starkov has quit [Remote host closed the connection]
<sevenseacat>
then let them figure it out
<nobitanobi>
unnacceptabruu!
<Kamuela>
shevy, i think they wanted me to say rails 3 times, and then have the spell of the kingdom automatically cast me away
ryan0x2 has quit [Remote host closed the connection]
<shevy>
you must be more persistent
<Kamuela>
sevenseacat, you are one of the 3
<iajrz>
hey, I'm seeing a method like this: def bla(&arg)
<iajrz>
does the & mean arg _must_ be a block?
<Kamuela>
it's an object reference
<bnagy>
iajrz: yeah pretty much
<Kamuela>
in C, it's an object reference
<shevy>
iajrz it's kinda cheating, it looks like a regular argument but it's a block
ageis has joined #ruby
ageis is now known as Guest30088
<iajrz>
that'd be C++, if it's object
<bnagy>
you can only & blocks procs lambdas etc
<iajrz>
excelent
<iajrz>
so I'm getting this...
<bnagy>
iajrz: it gets weird though - you don't ever have to actually use it :)
<Kamuela>
iajrz, you're right, i meant address of an "object" but in C they weren't objects proper just complex datatypes
<bnagy>
like you can check block_given? and just use yield 'naked', you don't need to blk.call
<iajrz>
aye, Kamuela, it's like a pointer...
merica has joined #ruby
<iajrz>
aye, aye, I saw that earlier in this script
<Kamuela>
iajrz, it's what the pointer is pointed to yes
<bnagy>
ruby is not C
<Kamuela>
ruby is not C
<shevy>
ruby is not C
<iajrz>
lol
<Kamuela>
sigh... rofl on rails i guess
graydot has joined #ruby
aspiers has quit [Ping timeout: 246 seconds]
Deele has quit [Ping timeout: 260 seconds]
<iajrz>
ruby has reassuring syntax
<iajrz>
"rescue", "ensure"
<xybre>
ruby is c
* xybre
reassures iajrz
FDj has joined #ruby
* Kamuela
sets topic "Ruby is basically C"
dhruvasagar has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jlast has joined #ruby
nso95 has joined #ruby
Advocation has joined #ruby
jjbohn has joined #ruby
<xybre>
The whole point of using a high level language is so you don't have to do all the manual crap of a low level language, the conciseness, expressive power, and ability to convey meaning along with you code, rapidly prototype and quickly iterate on ideas.
<shevy>
cool
froy has quit [Remote host closed the connection]
<apeiros>
my ideas quickly iterate on themselves, then they stumble, fall and cry :(
<shevy>
halsbe?
<apeiros>
no, that idea is not yet crying
brisbin has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
<iajrz>
if the idea is young, it can get up and get stronger.
<Kamuela>
xybre, don't forget the endless fun of pointing and laughing at the people who don't yet "get" it
baroquebobcat has joined #ruby
* shevy
points at Kamuela and laughs loudly
<xybre>
I wget it. But I usually curl it. I work out, dontchaknow.
<shevy>
admit it was set up ;)
Dreamer3 has joined #ruby
happydude has quit [Remote host closed the connection]
hogeo has joined #ruby
<Kamuela>
i admit that i will feel that nothing is a "dirty hack" as i proceed through rails
Advocation has quit [Ping timeout: 272 seconds]
daxroc has quit [Ping timeout: 246 seconds]
<Kamuela>
i'll ditch that mindset because the whole thing is a dirtyhack-fest with dirty-hack size comparisons all day everyday
<sevenseacat>
welcome to programming.
timonv has joined #ruby
jjbohn has quit [Ping timeout: 272 seconds]
<shevy>
Kamuela nah, don't build hacks on hacks on hacks
dhruvasagar has quit [Read error: Connection reset by peer]
<Kamuela>
sevenseacat, i dunno, that seems mighty specific to rails
<Kamuela>
maybe something like javascript also or PHP
<sevenseacat>
well theres nothing i can say to that that isnt going to insinuate that you dont know much about programming
<Kamuela>
hell maybe that's just web programming
dhruvasagar has joined #ruby
dkamioka has joined #ruby
<Kamuela>
C++ and the STL didn't result in all that much dirty code
icyleaf has joined #ruby
<shevy>
right. they created boost
<bnagy>
HAHAH
<icyleaf>
hello world
<sevenseacat>
for starters, you're comparing a language/stdlib and a framework
osvico has quit []
<bnagy>
that should be on @ShitHNSays
ananthakumaran has joined #ruby
<iajrz>
STL is technically a framework
<sevenseacat>
not a full-stack one
<Kamuela>
define full-stack
<Kamuela>
that doesn't even make sense
<Kamuela>
when you say full-stack, you're talking about full-stack web delivery
<Kamuela>
STL is full-stack data processing
<sevenseacat>
no shit, given you're whinging about rails
aryaching_ has quit []
lukec has joined #ruby
<Kamuela>
i'm not whining about anything
asteros has quit [Quit: asteros]
<sevenseacat>
why on earth would i be talking about web-related things in the context of rails
<iajrz>
well, I am
<sevenseacat>
i have no idea
<Kamuela>
i just suxxx is all i'm saying mang
<Kamuela>
iajrz, lay it on me
xcess_denied has quit [Quit: Leaving...]
<iajrz>
lol, I was jk
<Kamuela>
iajrz, thanks your jokes made me feel better about myself
<iajrz>
thinking about a lil exercise in the koans
<Kamuela>
whatever 6/324 or whatever it was ended my koans career
xcess_denied has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iajrz>
Kamuela if it makes you feel better, be happy you're not doing JSF
<shevy>
you need to start to embrace ruby without rails
gener1c_ has quit [Remote host closed the connection]
<Kamuela>
shevy, but but but, i wanna be a webstar :(
<shevy>
you are black box fiddling
<Kamuela>
they get the lights, the music, the ladies!
dkamioka has quit [Ping timeout: 244 seconds]
<shevy>
and the money
<iajrz>
why didja stop the koans?
sergicles has quit [Quit: sergicles]
<Kamuela>
iajrz, i can't remember the problem i had, just didn't make sense to me and i gave up
<iajrz>
ah! you'll die debugging javascript some day
<Kamuela>
iajrz, iirc there was a bunch of make this equal to true stuff and then... and then i made something equal true and it was like "nah, u rack disciprine"
<iajrz>
have you been working on code for long?
<Kamuela>
iajrz, on the contrary, i believe i will have the sense and laziness to walk away long before even mid-morning hunger with your javascript problems
gcds has joined #ruby
<iajrz>
ah... well
<iajrz>
I was a contractor for a large telecom company til very recently
<iajrz>
if we'd done that
asteros has joined #ruby
<iajrz>
Weblogic wouldn't have got some nasty issues fixed
icyleaf has quit [Ping timeout: 250 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
nso95 has left #ruby [#ruby]
<iajrz>
and the Lucene guys wouldn't have got some sweet reqs for SOLR
<iajrz>
you're going to find corner cases, odd things, and those are the most rewarding ones to address
<iajrz>
if you run away from that, they come back and bite you in the ass
<iajrz>
how long have you been programming?
lukec has quit [Quit: lukec]
aarkerio has quit [Quit: Verlassend]
<Kamuela>
not long, i stopped when i was 14
timonv has quit [Remote host closed the connection]
<iajrz>
I highly recommend that you do the koans
<iajrz>
and then rubymonk
timonv has joined #ruby
<iajrz>
and if you get stuck or anything
<iajrz>
come here, chill, moan, whine
<iajrz>
and get back into it
rezzack has quit [Ping timeout: 272 seconds]
<iajrz>
the guys here are very friendly.
<iajrz>
(I think you noticed)
<iajrz>
rubymonk ends with a ror introduction
ZenGuy311 has quit [Ping timeout: 244 seconds]
duggiefresh has quit [Ping timeout: 272 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<iajrz>
just a thought: if a hard bug won't die
mattattaque has quit [Read error: Connection reset by peer]
<iajrz>
will you not ship a thousands-of-dollars project?
hogeo has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 245 seconds]
atrocitas has quit [Remote host closed the connection]
mattattaque has joined #ruby
atrocitas has joined #ruby
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
JonahR has quit [Quit: jonahR]
<Kamuela>
hack'd. set the damned thing in the controller
<Kamuela>
i sense a life filled with fat as hell controllers for me
<iajrz>
Kamuela, I asked something up there. If you'd rather not talk about it, let me know :)
<apeiros>
Kamuela, as he's slowly fading to the dark side…
kayloos has joined #ruby
<Kamuela>
apeiros, what's funny is i feel like there's more ruby and less rails magic in the controller than in the model
CreativeEmbassy has joined #ruby
<apeiros>
nonsense. ruby is 100% scientific.
<Kamuela>
apeiros i think the syntax is but rails gets close to DSL
aces1up has joined #ruby
<apeiros>
(don't take me seriously - I just got up and am very tired…)
<aces1up>
i have an ascii-8bit encoded stirng with \u003c type characters..
daxroc has joined #ruby
<aces1up>
how would i convert those to normal chars?
baroquebobcat has joined #ruby
<apeiros>
aces1up: you couldn't
kayloos has quit [Ping timeout: 240 seconds]
<apeiros>
because in ascii-8bit, those are not chars
<sevenseacat>
Kamuela: why, oh why
DonRichie has joined #ruby
hiyosi has joined #ruby
<sevenseacat>
seriously, why
<aces1up>
apeiros i know, can i convert the whole string to utf8 or something to get those characters converted?
<apeiros>
aces1up: the point of an *encoding* is to inform what byte means what char. ascii-8bit only defines chars for the bytes 0x20-0x7f
St_Marx has quit [Remote host closed the connection]
Bry8Star{T2 has quit [Remote host closed the connection]
DanBoy has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
Kabaka has quit [Remote host closed the connection]
hiyosi has quit [*.net *.split]
capicue has quit [*.net *.split]
unRealElite has quit [*.net *.split]
tharindu has quit [*.net *.split]
elcontrastador has quit [*.net *.split]
sayan has quit [*.net *.split]
cburyta has quit [*.net *.split]
Jabberish has quit [*.net *.split]
rickmasta has quit [*.net *.split]
shevy has quit [*.net *.split]
zodiak has quit [*.net *.split]
v0n has quit [*.net *.split]
jbw has quit [*.net *.split]
eval-in has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
Bish_ has quit [*.net *.split]
adamholt has quit [*.net *.split]
ValicekB has quit [*.net *.split]
hakunin has quit [*.net *.split]
tskogberg has quit [*.net *.split]
neaer has quit [*.net *.split]
Rylee has quit [*.net *.split]
queequeg2 has quit [*.net *.split]
pdtpatri1k has quit [*.net *.split]
Tritania- has quit [*.net *.split]
tchebb has quit [*.net *.split]
sweeper has quit [*.net *.split]
wudofyr has quit [*.net *.split]
sindork has quit [*.net *.split]
jmccune has quit [*.net *.split]
TheSpect1e has quit [*.net *.split]
kryptek has quit [*.net *.split]
skinny_much has quit [*.net *.split]
jtperreault has quit [*.net *.split]
elektronaut has quit [*.net *.split]
Lindrian has quit [*.net *.split]
Koshian has quit [*.net *.split]
moshee has quit [*.net *.split]
abstractj has quit [*.net *.split]
justinwe1ss has quit [*.net *.split]
<Kamuela>
booooooom
* apeiros
off, commute
apeiros has quit [Remote host closed the connection]
<Kamuela>
sevenseacat, the top 20 results in my Brain didn't include "rails override setter"
closures999 has joined #ruby
<aces1up>
apeiros dude ok, so how do i just convert it to utf8 or what ever is needed so i can see them?
<bnagy>
aces1up: 'see' what?
<Kamuela>
sevenseacat, the logic of "accessor" doesn't enter my head either when i specifically needed it to be generated once and read only within the model
<sevenseacat>
hell you dont even need to override the setter, just use self.local
kobain has quit []
<sevenseacat>
actually that might not work
<sevenseacat>
meh
valesk has quit [Ping timeout: 240 seconds]
<rjhunter>
aces1up: if you know that the string is actually encoded in, say UTF-8, but it's coming into your code as ascii-8bit, you have an environment issue (or a bug)
gr33n7007h has quit [Read error: Connection reset by peer]
<bnagy>
well not neccessarily
<Kamuela>
it's alright sevenseacat you've probably had a long day of a hundred times more complicated and useful stuff than this no worries
<bnagy>
there are lots of things that will give you ascii-8
apeiros has quit [Ping timeout: 240 seconds]
<Kamuela>
it's just a particular way i'm thinking probably that other people think of in another way
<bnagy>
anything you read at a low level, probably
<bnagy>
you can always .encode or .force_encoding
hogeo has quit [Remote host closed the connection]
<rjhunter>
aces1up: if you're reading from a file using File.open, you can specify the encoding as the mode string
mrsolo has joined #ruby
fysaen has joined #ruby
ValicekB has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Kamuela>
iajrz, ill def take anotht crack at the koand
peterdecroos has joined #ruby
<iajrz>
that'd be healthy.
peterdecroos has quit [Remote host closed the connection]
peterdecroos has joined #ruby
mengu has joined #ruby
<Kamuela>
iajrz, taking a break from rails to do it right now actually. i got to where i couldn't get past
<iajrz>
cool stuff :) I'm still working on koan 187
Spami has joined #ruby
<sevenseacat>
i keep hearing about these koans, I should try them at some point
dhruvasagar has quit [Read error: Connection reset by peer]
<gcds>
hmm I have problem with such thing: I have loop which reads from tcpsocket 4048 bytes to buff and then writes buff to tcpserver and breaks the loop if buff size is smaller than 4048 bytes and it always breaks doesnt matter that there is like 3 times more data to read
dhruvasagar has joined #ruby
leonidlm has joined #ruby
jcf has quit [Client Quit]
Jetchisel has joined #ruby
jcf has joined #ruby
Megtastique has quit []
Blaze_Boy has joined #ruby
ephemerian has joined #ruby
Psi|4ward has left #ruby ["terminated"]
jetblack has joined #ruby
jenenliu has joined #ruby
jenenliu has quit [Remote host closed the connection]
jrhe has left #ruby [#ruby]
jenenliu has joined #ruby
weems has quit [Read error: Connection reset by peer]
<jenenliu>
hi guys, I want to learn ruby, are there some great books for ruby beginners ?
mweshi has quit [Remote host closed the connection]
zipper has joined #ruby
keen___ has joined #ruby
blackmesa has joined #ruby
cek has joined #ruby
<cek>
any knows how t odebug with pry? i'm getting tons of errors with it
keen__ has quit [Ping timeout: 240 seconds]
<cek>
"pry bundle exec script" doesn't work . pry ~/.rvm/gems/ruby-1.9.3-p448@global/bin/bundle exec script " gives me Could not find task "
zipper has quit [Ping timeout: 246 seconds]
yacks has joined #ruby
Hanmac1 is now known as Hanmac
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jrobeson>
cek, i'm not sure but you might have to do something like
sayan has quit [Ping timeout: 244 seconds]
<jrobeson>
pry -e
nfk has quit [Ping timeout: 264 seconds]
<jrobeson>
oh no that's not right
<cek>
width rdebug, I just "rdebug bundle -- exec shit" and it works
<cek>
why can't that be done in pry?
<cek>
why inventing bicycle again
<cek>
i wish my debugger could actually stop on breakpoints i tell him
maasha has joined #ruby
sepp2k has joined #ruby
<jrobeson>
actually yes..
<cek>
i really really don't wish to engage RubyMine's IDE debugger that works *always*
timonv has quit [Remote host closed the connection]
jlast has joined #ruby
<cek>
somehow those guys produce perfect product, polished, unbugged and *working*
timonv has joined #ruby
<jrobeson>
actually it doesn't seem possible..
<jrobeson>
did some googling
<jrobeson>
banisterfiend, you about?
thelorax123 has quit [Remote host closed the connection]
kitak_ has quit [Remote host closed the connection]
<cek>
why does everyone suggest pry. Do they actually debug ruby scripts? do they write code or just "blogging"?
<jrobeson>
because it's a better debugger
zipper has joined #ruby
<jrobeson>
and has all sort sof neat extensions
barratt has joined #ruby
<jrobeson>
and it works way better as a repl than irb
<jrobeson>
lots of reasons
<cek>
i don't need "extensions" . i need GDB: break on instruction / memory/var access, step, continue.
ewnd9 has quit [Ping timeout: 272 seconds]
<jrobeson>
it has that ..
<jrobeson>
stop being such a whiner
<maasha>
I am trying to extend the Math class, but within a module of mine for name space reasons - and this of cause gives an error: https://gist.github.com/maasha/0072c7b442dc913441ab what is the way to resolve this?
timonv_ has joined #ruby
<jrobeson>
the quick fix is just to add require 'pry'; binding.pry! to your script
mrsolo has quit [Quit: This computer has gone to sleep]
timonv has quit [Read error: Connection reset by peer]
<DouweM>
halfie: I don't know if that blogpost is still accurate, but it does describe a situation where something could be required twice
<DouweM>
halfie: and the superclass mismatch isn't the issue here—the issue is the double require which then goes on to cause a superclass mismatch for some reason
<halfie>
this sucks. at least Python got the imports right it seems :-(
<halfie>
DouweM, I see.
<halfie>
makes sense.
guns has quit [Quit: guns]
<DouweM>
halfie: have you read the post correctly? it's not a case of "getting it right", it's just an edge case
<holderbaum>
maasha: Your test-file is prefixed with test_
<DouweM>
halfie: but I agree that it the safeguard should be better. I have no idea whether that 6 year old blogpost is still accurate though
<holderbaum>
maasha: I believe, minitest / TestUnit conventions use a postfix: _test.rb or _spec.rb
<halfie>
DouweM, yes. I grepped for all requires and they all say "require 'openssl'" always.
<holderbaum>
maasha: Perhaps thats the reason for your struggle?
<DouweM>
halfie: strange
mephux has quit [Quit: w0ots...]
<halfie>
DouweM, and metasploit is one of the largest ruby project. it might be the biggest IIRC.
jhaals has quit [Ping timeout: 244 seconds]
mephux has joined #ruby
Hanmac1 has joined #ruby
jhaals has joined #ruby
<DouweM>
perhaps so, but I can't believe they haven't tested it with 2.0. this is probably an issue with another gem
leonidlm has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Hanmac1 is now known as Hanmac
<halfie>
DouweM, things were even more broken some time back. those guys aren't the quickest when it comes to supporting new ruby versions
newbiehacker has quit [Ping timeout: 245 seconds]
Guest7039 has quit [Ping timeout: 248 seconds]
Nilium has joined #ruby
watermel0n has joined #ruby
watermel_ has quit [Ping timeout: 260 seconds]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
Blaze_Boy has joined #ruby
<halfie>
"m = OpenSSL::Digest::Digest.new('sha1')" <== ruby-2.0.0 doesn't like this code. was this code every right? "m = OpenSSL::Digest::SHA1.new" is correct instead, right?
Soda has joined #ruby
Olipro has joined #ruby
kaspergrubbe has joined #ruby
<Hanmac>
halfie: on my system, both works and both returns the same
<Hanmac>
irb(main):001:0> m = OpenSSL::Digest::Digest.new('sha1') => #<OpenSSL::Digest::Digest: da39a3ee5e6b4b0d3255bfef95601890afd80709>
<Hanmac>
irb(main):002:0> m = OpenSSL::Digest::SHA1.new => #<OpenSSL::Digest::SHA1: da39a3ee5e6b4b0d3255bfef95601890afd80709>
<halfie>
Hanmac, building fresh ruby from git.
<mikecmpbll>
you're doing different things
<mikecmpbll>
oh nvm
<halfie>
"OpenSSL::Digest::SHA1.new" works just fine but "OpenSSL::Digest::Digest.new('sha1'" doesn't on Fedora 20's ruby. very very strange.
<halfie>
I need to figure out what we broke in fedora
<mikecmpbll>
halfie: what's the output from OpenSSL::OPENSSL_VERSION
xk_id has joined #ruby
<halfie>
mikecmpbll, => "OpenSSL 1.0.1e 11 Feb 2013"
<mikecmpbll>
and OpenSSL::VERSION ;d
ldnunes has joined #ruby
<halfie>
OpenSSL::VERSION
<halfie>
=> "1.1.0"
<halfie>
jesus, how are both there :S ?
<mikecmpbll>
that's fine
<halfie>
oh, yes, its fine. I mis-read.
Squarepy has joined #ruby
zoee has joined #ruby
<jrobeson>
i had to patch my ruby openssl to get it working in fedora .. although not the system fedora
<DouweM>
And yet OpenSSL::Digest::Digest.new("sha1") isn't working for me? It is for my 1.1.0
<jrobeson>
err not the system ruby.. the ruby via ruby-build
jjbohn has joined #ruby
<DouweM>
eh, *not working for you
<DouweM>
it is working for me
<jrobeson>
ok? and
<halfie>
jrobeson, can you show me your patch?
<DouweM>
jrobeson: I was talking to halfie
agent_white has quit [Quit: gnight]
<jrobeson>
halfie, i should have been more specific about getting it to build.. not this far
<halfie>
DouweM, no. "OpenSSL::Digest::Digest.new("sha1")" does not work on Fedora 20 systems.
<jrobeson>
i wonder when a new ruby patch version is coming out..
<DouweM>
halfie: Huh.
<jrobeson>
ruby 2.0.0 patch level*
carif has joined #ruby
<jrobeson>
halfie, how did you build ruby? or did you just use a package?
<halfie>
jrobeson, I am just using the ruby provided by the distro (Fedora).
<halfie>
currently, I am also building ruby from git to debug the problem
<mikecmpbll>
strange that it doesn't work, but why do you need to do that anyway
workmad3 has joined #ruby
<jrobeson>
ah ok
freezey has joined #ruby
Squarepy has quit [Ping timeout: 272 seconds]
jjbohn has quit [Ping timeout: 260 seconds]
<jrobeson>
halfie, i had to use this patch due to the new openssl used by default.. so if you run into this.. gotta patch it https://bugs.ruby-lang.org/issues/8384
carif has quit [Read error: Connection reset by peer]
<jrobeson>
new openssl in fedora that is* it removed something that ruby expected.. as it's been in most builds for a long time. but recently had some sort of security concern
nobitanobi has joined #ruby
khushildep has joined #ruby
<halfie>
Douglish, confirmed. a fresh ruby from git works just fine.
<halfie>
wondering how Fedora has screwed things up so badly.
<DouweM>
ain't that some shit
wildroman has joined #ruby
atrocitas has quit [Remote host closed the connection]
<halfie>
its terrible. even node.js and scala are broken in fedora :( ..
<halfie>
need to talk some sense into those packagers.
<jrobeson>
i can expect node.js .. since it just appeared in the last release officially.
<jrobeson>
but scala.. that seems weird.. wtf could they have done to it
Squarepy has joined #ruby
<jrobeson>
i'm not used to running into fedora ruby users in the wild
<halfie>
jrobeson, scala + some jline problem. some api differences
<jrobeson>
honestly i just skipped out on the system ruby and went with rbenv + ruby-build
<jrobeson>
chruby + ruby-install might be more preferable to many though
<halfie>
oh, I am used to using rvm? is that ok too?
<jrobeson>
i don't like rvm.. too much magic.. and messin with my cd command and junk
<jrobeson>
but it will work just fine i'm sure
<halfie>
strange. /opt/ruby/bin/gem install bundler <== this fails due to permissions issue with /opt. why doesn't gem trying to install gems in ~/.gem as usual?
krandi has joined #ruby
andikr has quit [Ping timeout: 244 seconds]
ckinni has joined #ruby
decoponio has joined #ruby
leonidlm has quit [Ping timeout: 272 seconds]
<workmad3>
jrobeson: you know that the 'messing with cd command' is completely optional, was turned off by default for quite a while and only turned on again by default again due to popular demand, right?
minos__ has joined #ruby
vlad_starkov has joined #ruby
minos__ has quit [Client Quit]
<workmad3>
halfie: your GEM_HOME environment variable is probably wrong
iajrz_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
AlSquire has joined #ruby
<Olipro>
if I have a String object that is a sequence of bytes read in from a TCP socket, is there a way to "map" that into a structure that I've defined (other than just manipulating it as an array and using unpack)
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
<lupine>
Olipro, there's libraries that do it for you
<lupine>
Packetsomethingoranother?
<lupine>
packetfu
<lupine>
bindata
Olipro was kicked from #ruby by apeiros [if you cross post, you're required to at least tell that in every channel where you cross post. thank you (this is only a kick, not a ban)]
<lupine>
heh
Olipro has joined #ruby
kitak has quit [Ping timeout: 246 seconds]
<iajrz_>
DouweM: you here?
<DouweM>
iajrz_: yessir
<iajrz_>
I need to know
<iajrz_>
do I drop the request
<_br_>
apeiros: He was spamming several channels?
<iajrz_>
or how do I go about it?
<lupine>
Olipro, I've used bindata in the past, and it's not terrible
<lupine>
honestly, I find meta-knobbing about crossposting to be more disruptive than crossposting itself. it's definitely an etiquette breach, it's relatively minor, we can all move on
<apeiros>
as is basic decency
<DouweM>
lupine: yup
<apeiros>
lupine: agreed
<Olipro>
apeiros: I'm trying to discern exactly what cost or inconvenience it's incurring you by my posting in both channels
Soda has quit [Ping timeout: 272 seconds]
<lupine>
bindata is much cooler to talk about
<apeiros>
Olipro: people taking their time trying to answer a question you already got answered elsewhere.
* Olipro
gets back on topic
<workmad3>
lupine: I don't personally care about the cross-posting... it's a bit annoying, especially if the same answers come up in both channels :)
<lupine>
it impedes gestalt, certainly
<apeiros>
Olipro: but since you consider everybody but your time to be free…
<Olipro>
...
<apeiros>
*everbodys
<Olipro>
yes, I absolutely implied that
<workmad3>
apeiros: *everybodies
<apeiros>
gah
<workmad3>
;)
<apeiros>
fuck english :)
<_br_>
MINSWAN... ...
<apeiros>
thanks workmad3
<maasha>
holderbaum: sorry, was away for a while. I will test your suggestion
<workmad3>
lupine: mostly I just take offence to people being wrong
<Hanmac>
Olipro #ruby-lang is register protected
<lupine>
everybodies is not a word
<lupine>
you mean everybody's
<workmad3>
ok, yes
* workmad3
gets offended at himself
Ivo has quit [Read error: Connection reset by peer]
<lupine>
:p
ezkl has quit [Quit: QUIT!]
leonidlm has joined #ruby
<lupine>
anyway, bindata has some weirdnesses and is quite possibly not the best in this class of library
<workmad3>
lupine: of course, that's not getting into the awful grammar of apeiros' phrase :)
<lupine>
anyone know of anything like-but-better?
<Olipro>
what sort of weirdness?
intuxicated has quit [Quit: Leaving]
<apeiros>
lupine: I'll see to handling the issue in a way which avoids the "what?!? but I'm entitled to behaving dickish and you have no clue" discussion afterwards.
<Olipro>
can I only have one endian in the entire class?
<lupine>
Olipro, it can get difficult when the structure of the data you're reading is determined by other data you're reading
<lupine>
no, you can specify endianness per field
Ivo has joined #ruby
tonini_ is now known as tonini
<Olipro>
yeah, I've got that
<Olipro>
*that situation
Asher1 has quit [Quit: Leaving.]
hiyosi has joined #ruby
<lupine>
equivalent-to-backreferences are difficult as well
Soda has joined #ruby
<Olipro>
although I suppose I could work around it by splitting the format up into separate classes
<Olipro>
one for the common header
Asher has joined #ruby
<Olipro>
and then classes for whatever the payload type is indicated by the header
<lupine>
that's what I did for the bitcoin one. you need to start from the smallest primitives and then build up from there
<lupine>
if you look at how I had to handle the "there are two possible formats for this field, depending on the protocol version" bit - AddrFrom31402 class - that sort of illustrates why I'm not very happy with bindata's approach
<Olipro>
does this thing default to native endian?
<lupine>
no idea
<lupine>
if you're not specifying endianness for everything explicitly, you're doing it wrong anyway ^^
xcess_denied has quit [Quit: Leaving...]
<Olipro>
heh, just curiousity :P
jenenliu has quit [Read error: Connection reset by peer]
Asher has quit [Client Quit]
survili has joined #ruby
<lupine>
the documentation was passable, but not great, when I did this
<lupine>
especially around the "choice" method, I had to really struggle to understand what was going on
jprovazn has quit [Ping timeout: 245 seconds]
<lupine>
but, it works. it might even be vaguely performant, for ruby
<holderbaum>
maasha: you should always try to stick with the ruby conventions, it can lead to nontrivial conflicts as soon as you start baking your own stuff :)
hiyosi has quit [Ping timeout: 272 seconds]
graydot has quit [Quit: graydot]
peta_ has joined #ruby
<maasha>
holderbaum: I thought I was.
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has quit [Ping timeout: 246 seconds]
<survili>
hi guys, noob question. when I print exception using puts "#{exception.backtrace}" I get a one ling line... but if I use puts exception.backtrace I get a multiline output just like I want.. my question is why interpolation has such an affect
<survili>
*ling=long
<maasha>
holderbaum: hm, I see other gems with unit tests where the file names start with test_
camilasan has quit [Remote host closed the connection]
<maasha>
holderbaum: to me it seems like SimpleCov is doing something, but it never traverses the module BioPieces, and hence it looks like nothing is tested.
<shredding>
Can I use Net::HTTP.post_form to post a raw post body?
camilasan has joined #ruby
<shredding>
I have this: post_data = Net::HTTP.post_form(URI.parse(target_url), some_string)
<survili>
workmad3: do you mean that .to_s is called for interpolation and default .to_s for arrays doesn't add \n between elements ?
<shredding>
The string is expected to have not params, just the raw body.
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<holderbaum>
maasha: obviously, scov detects your code as present. Do zou use MRI for running zour tests?
jhaals has quit [Ping timeout: 246 seconds]
<maasha>
holderbaum: yup. Ruby 2.0
cascalheira has joined #ruby
allanm has joined #ruby
<maasha>
holderbaum: the documentation of scov is just very rails oriented - and so is anything I can find with google.
sandeepk has quit [Quit: Leaving...]
<holderbaum>
maasha: I am using simplecov in every project, without struggles like that
hamakn has quit [Remote host closed the connection]
jprovazn has joined #ruby
hamakn has joined #ruby
nari has joined #ruby
<workmad3>
survili: yes
danshultz has joined #ruby
supergeek has joined #ruby
<holderbaum>
maasha: your gemspec contains a require 'biopieces', I think bundler loads this file on boot. Effectifely, biosphere gets required before simplecov.
<holderbaum>
maasha: IIRK, this is important to simplecov, that it gets loaded before the actual codebase
<holderbaum>
maasha: change that require to 'biopieces/version' and try again
<survili>
workmad3: thank you, I wonder when ruby encounters interpolation, it doesn't call to_s for it ? and if yes, then I would expect to see same result(without \n), or is puts "smart" and when it sees Array as a parameter it goes over it and adds \n after each element is printed ? btw, for next time, how can I analyze puts code by myself ? how can I find in which .rb file it is implemented ?
<workmad3>
survili: 'puts' isn't very smart
supergeek has quit [Client Quit]
<workmad3>
survili: when you do 'puts "a", "b"' or 'puts ["a", "b"]' it treats them the same, and as though you'd done separate 'puts' calls for each item
err_ok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Ping timeout: 272 seconds]
BizarreCake has joined #ruby
hamakn has quit [Ping timeout: 265 seconds]
<workmad3>
survili: and also "start#{foo}end" is always equivalent to "start" + foo.to_s + "end" in end-result (but the second version has more intermediary strings created :) )
robbyoconnor has joined #ruby
iajrz_ has quit [Read error: Connection reset by peer]
<survili>
workmad3: thank you, it was very useful! :)
iajrz_ has joined #ruby
jjbohn has joined #ruby
<Douglish>
Hello everyone. Is there any rails way how to select a subset of objects inlucding subset of child elements. Example I have albums and each album has songs. I want to select 50 most played songs, order them and return only albums where these songs are and also from this album have asses only to filtered songs. Is there any way how to achive this?
Guest24707 has joined #ruby
xk_id has quit [Quit:
<workmad3>
survili: also, 'puts' is implemented somewhere in core ruby... you'd need to dig through the ruby source code to find it (and it's probably implemented in plain C) :)
Soda has joined #ruby
supergeek has joined #ruby
leonidlm has quit [Ping timeout: 252 seconds]
iajrz_ has quit [Read error: Connection reset by peer]
<iajrz>
people keep giving these guys such names... in java you have an Unsafe class that allows you to directly touch the memory
vlad_starkov has joined #ruby
<yjmsf20>
ey up fellas, I'm running into trouble importing bootstrap-responsive. Rails tells me File to import not found or unreadable: bootstrap-responsive.
jkamenik has quit [Quit: Leaving.]
<banisterfiend>
iajrz evil is a third party library though
<yjmsf20>
all the answers on stack overflow tell me to use @import "bootstrap-responsive";
RaCx has quit [Ping timeout: 272 seconds]
<yjmsf20>
which I am already doing :S
<sevenseacat>
yjmsf20: if you're using bootstrap 3, that file no longer exists.
<sevenseacat>
bootstrap is responsuve by default.
<sevenseacat>
responsive even
<iajrz>
aye... makes me think ruby has lisp-like extensibility
jprovazn has quit [Ping timeout: 244 seconds]
<yjmsf20>
ah OK
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
err_ok has quit [Ping timeout: 260 seconds]
mlpinit has quit [Remote host closed the connection]
iamjarvo has quit [Remote host closed the connection]
jkamenik has joined #ruby
mlpinit has joined #ruby
iamjarvo has joined #ruby
<Hanmac>
" directly touch the memory" ... thats like touching the core of the sun ... with BARE HANDS ;P
leonidlm has joined #ruby
<iajrz>
feel like a superhero when coding in C
<iajrz>
only if you don't get burnt to a crisp
SirFunk has quit [Remote host closed the connection]
<workmad3>
Hanmac: hmm, I wonder what metallic hydrogen would feel like
<iajrz>
huh, sounds like we could get lyrics to a song from these statements
hamakn has joined #ruby
<ccooke>
workmad3: it would feel instant cell death ;-)
h_kon has quit [Remote host closed the connection]
<workmad3>
Hanmac: just read it :)
<cek>
how do I specify .gemrc location for rubygems?
iamjarvo has quit [Ping timeout: 246 seconds]
<cek>
want to change the dfault one for building purposes
atno has quit [Remote host closed the connection]
dev1x has joined #ruby
<dev1x>
hello, is there a way do deny eql? ?
hamakn has joined #ruby
<dev1x>
for instance, if i have eql?(blahblah) and i want all it to work just if the (blahblah) is false
mklappst_ has quit [Remote host closed the connection]
err_ok has joined #ruby
ghr has quit [Remote host closed the connection]
nvrch has joined #ruby
tesuji has quit [Ping timeout: 272 seconds]
emocakes has joined #ruby
cody-- has quit [Quit: derp]
ghr has joined #ruby
shredding has quit [Quit: shredding]
Xeago_ has joined #ruby
visof has quit [Quit: leaving]
Asher has joined #ruby
jprovazn has joined #ruby
derebos has quit [Quit: Leaving]
Xeago has quit [Ping timeout: 245 seconds]
brtdv has quit []
<iajrz>
unless?
<iajrz>
dev1x
<emocakes>
dev1x, unless???
<iajrz>
unless (cond)
<maasha>
holderbaum: sorry was away again (damn meetings!).
<dev1x>
naaahh that doesnt solve, i've fixed it with an if-else condition
d45h has joined #ruby
ValicekB has quit []
<iajrz>
dev1x gist please
<iajrz>
I'd like to see that creature
iamjarvo_ has quit [Remote host closed the connection]
kpshek has quit []
<emocakes>
can we please see dev1x
<emocakes>
im just learning ruby
<iajrz>
afaik, unless(cond) is the same as if(!cond)
<hoelzro>
almost
iamjarvo has joined #ruby
<dev1x>
this is for a chef recipe
<hoelzro>
there's funkiness about if something overloads !
gcds has quit [Quit: gcds]
brtdv has joined #ruby
<maasha>
hoelzro: I dont get the part "change that require to 'biopieces/version'" ?
<maasha>
hoelzro: sorry
<maasha>
holderbaum: I dont get the part "change that require to 'biopieces/version'" ?
OdNairy has joined #ruby
jhaals has joined #ruby
<holderbaum>
maasha: you say "require 'biopieces'" in your gemspec
<maasha>
yup
<holderbaum>
maasha: so everytime the gemspec gets loaded, your entire codebase is loaded too
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maasha>
holderbaum: I see
<holderbaum>
maasha: but you only need the VERSION constant here
<holderbaum>
maasha: I remember, that simplecov needs to be required before the actual code that is to be inspected
merica has quit [Ping timeout: 245 seconds]
<holderbaum>
maasha: and the gemspec gets required by bundler before your actual test-helper with the simplecov init
Rollabunna has quit [Remote host closed the connection]
banister has joined #ruby
sailias has joined #ruby
<maasha>
holderbaum: ok, so I changed the require in gemspec and rerun rake -> the coverage page looks the same
bean__ has joined #ruby
<maasha>
holderbaum: ill put in some print statements to test that SimpleCov is required first
freezey has joined #ruby
xk_id has joined #ruby
<maasha>
holderbaum: unless there is a buffer problem when printing, simplecov is loaded before biopieces
fmcgeough has joined #ruby
Apane has joined #ruby
duggiefresh has joined #ruby
phantasm66 has joined #ruby
drumusician has quit [Ping timeout: 248 seconds]
<holderbaum>
maasha: I'd not go so far and say that there is a buffer issue with puts statements. simplecov gets laoded first, so this is not the source of the bug
<maasha>
holderbaum: but only after changing to: require 'biopieces/version' - so there must be an additional problem?
Bhaveshkumar has joined #ruby
ValicekB has joined #ruby
EvanR_ has joined #ruby
xk_id has quit [Client Quit]
aapzak has quit [Ping timeout: 260 seconds]
<holderbaum>
maasha: perhaps another, yes. I'd definetly stay with the /version require in the gemspec
Bhaveshkumar has quit [Client Quit]
<maasha>
holderbaum: that is fixed now.
spider-mario has joined #ruby
tkuchiki has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
lukec has joined #ruby
CamonZ has joined #ruby
aapzak has joined #ruby
duggiefresh has quit [Client Quit]
<maasha>
hm, what the heck is going on then.
duggiefresh has joined #ruby
banister has joined #ruby
<maasha>
I think I need a minimalistic example
<holderbaum>
maasha: that is always a good idea. Try to add simplecov as an development dependency to your gemspec, btw
sandeepk has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Read error: Connection reset by peer]
<maasha>
holderbaum: what should that do?
jlast has joined #ruby
drag00n has joined #ruby
sayan has joined #ruby
<holderbaum>
maasha: nothing to your problem but it is in fact a development dependency ;)
Guest18577 has joined #ruby
<maasha>
holderbaum: ok. clean-up and conventions are always welcome :o)
xk_id has joined #ruby
hiyosi has quit [Ping timeout: 248 seconds]
EvanR_ has quit [Ping timeout: 260 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
sivoais_ is now known as sivoais
sivoais has quit [Changing host]
sivoais has joined #ruby
mudmaster has quit [Remote host closed the connection]
zoee has quit [Quit: This computer has gone to sleep]
jlast has quit [Ping timeout: 252 seconds]
jleishman has joined #ruby
mudmaste_ has joined #ruby
andikr has joined #ruby
<platzhirsch>
There's not something like require 'module/*' is there...
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<Hanmac>
platzhirsch: nope
ananthakumaran has joined #ruby
<platzhirsch>
Hanmac: the alternative would be to fetch the files and use load or so
<Hanmac>
because ruby cant know in which order the files should be required
xk_id has quit [Quit:
vt102 has joined #ruby
<platzhirsch>
ah ok, that makes sense
shredding has joined #ruby
CalimeroTeknik has quit [Ping timeout: 246 seconds]
<Hanmac>
thats why you mostly also have a "module.rb" file so you can require 'module' and the "module.rb" does handle the order
Guest18577 has quit [Ping timeout: 260 seconds]
dhruvasa1ar has joined #ruby
bamdad has left #ruby [#ruby]
wallerdev has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
Guest24707 has left #ruby [#ruby]
iamjarvo has joined #ruby
CalimeroTeknik has joined #ruby
londerson_ has joined #ruby
<maasha>
holderbaum: are you on Ruby 2.0?
<londerson_>
hello guys anyone cold help me whith this error
<platzhirsch>
Hanmac: oh the last point is important, because currently I do some meta programming by using subclasses to generate fields and other components and I have messed a bit up :)
<holderbaum>
maasha: indeed
xcess_denied has joined #ruby
kcombs has joined #ruby
kpshek has joined #ruby
freezey has quit [Remote host closed the connection]
<Hanmac>
platzhirsch: then you may need to sort the files first, because for sample Dir["*"] does returns the files in the order of the file system
mmitchell has quit [Remote host closed the connection]
zerOnepal has joined #ruby
<platzhirsch>
Hanmac: accidently it works, but if there start to happen dependencies which are not backed by the file system order, I have a problem
leonidlm has quit [Ping timeout: 246 seconds]
coaster has joined #ruby
nism-pi has joined #ruby
khushildep_ has joined #ruby
<Hanmac>
platzhirsch: for one of my project i added require_relative between the internal files so even if i shuffle the file list, and require_all should still work
<zerOnepal>
Greeting everyone, How can I find out the number of parameters appared in a request url ?
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<maasha>
holderbaum: gotit! that was the problem! simplecov needs to be loaded not only before your application code but also before the test/unit - (that was not clear from the docs)
<Grundell>
That is what im trying to work with at the moment
<shevy>
and what do you want to find in it
burlyscudd has joined #ruby
havenwood has joined #ruby
bronson has joined #ruby
sevenseacat has quit [Remote host closed the connection]
<Grundell>
What i want to do is match the Anf. with number (if there is a position) Person (All capital letters) Party (S) / (M)
hiyosi has quit [Ping timeout: 246 seconds]
<Grundell>
And i cant really get it to work the way i want it to...
ananthakumaran has quit [Quit: Leaving.]
<Grundell>
since the Position isn't always there... so how do i make (if position exists else skip )
mikecmpbll has joined #ruby
<maasha>
s/meaningless political statements/philanthropic visions/
<Grundell>
Do you understand or do you want me to try to explain it better ?
<Grundell>
maasha: It's the political party the are working for.
<Grundell>
maasha: haven't added that yet since i cant get the position to work...
momomomomo has quit [Quit: momomomomo]
graydot has quit [Ping timeout: 244 seconds]
billy_ran_away has joined #ruby
<Grundell>
(if you look at match 2) there is position Statsminister. which is correct. but since he is the only one who has a position i need to have some sort of if exists...
atno has quit [Remote host closed the connection]
<billy_ran_away>
a = "hey I'm a string"; b = "this is a string: '#{a}'" #=> "this is a string: 'hey I'm a string'"
atno has joined #ruby
sergicles has quit [Quit: sergicles]
graydot has joined #ruby
<billy_ran_away>
How can I escape that quote ' in the sub string within the interpolation?
<billy_ran_away>
So I get... "this is a string: 'hey I\'m a string'"
<holderbaum>
billy_ran_away: try \\
<lupine>
"hey I\\'m a string"
jjbohn has quit [Quit: Leaving...]
<holderbaum>
it is an escaped escape
<billy_ran_away>
Okay... but how can I have done for me not knowing if or where a has a quote...
<holderbaum>
kinda :D
<billy_ran_away>
a.escaped
<billy_ran_away>
Obviously, a.gsub("'", "\\'") would work...
matchaw has quit [Ping timeout: 245 seconds]
<billy_ran_away>
Just hoping for a more generic catchall method that I hadn't come across yet...
sergicles has joined #ruby
lewis has joined #ruby
lewis has quit [Changing host]
lewis has joined #ruby
<Grundell>
maasha: Do you understand what im trying to achieve?
jjbohn has joined #ruby
four33 has joined #ruby
<four33>
hallo
mrsolo has quit [Quit: This computer has gone to sleep]
Ox6abe has quit [Remote host closed the connection]
karl___ has joined #ruby
mark_locklear has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<maasha>
Grundell: Not quite. You should break the problem down into subproblems.
<karl___>
I've got a file open, and want to use each_line to run through it and puts the line if it does not contain any of several different words. What's the proper way to do the "if line does not contain any of the following" conditional? A bunch of or's just seemed sloppy to me, but I'm not sure how to better phrase the question to get google to answer
<Grundell>
maasha: okay, ill show you what i want to get out at the end of the text string. see if you understand then if that works for you ?
<maasha>
Grundell: first one is Anf number: that would be: ^Anf\.\s+\d+
LexicalScope has quit [Read error: Connection reset by peer]
<Grundell>
maasha: yes
<havenwood>
karl___: ['this', 'that'].all? { |word| 'meh'.include? word }
<maasha>
Grundell: second is name with a possible position - what possible positions are there?
<havenwood>
Grundell: Have any code to Gist? (I arrived late.)
sandeepk has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
<four33>
I've recently decided to start learning Ruby - am I too late to the party? Lots of articles i'm reading are saying things like "Ruby is dying" "Ruby was a fad", etc. et.
<Grundell>
maasha: ass it looks niot
<Grundell>
now **
<havenwood>
four33: You are just on time! :)
<deepy>
four33: I know a lot of non-Ruby developers saying it's already dead and their language is superior and I'd trust them slightly less than the Ruby developers who says it's fine
momomomomo has joined #ruby
<deepy>
But then again, the startup time is driving me insane
<havenwood>
four33: Ruby is thriving... Just got back from RubyConf and never seen it so large with so many sponsors.
<Grundell>
maasha: There are like 125 different positions so id prefer if there is if the position exists in the string..
aspires has quit [Quit: sudo making a sandwich]
<havenwood>
deepy: Are you on JRuby?
aspires has joined #ruby
Spami has joined #ruby
<karl___>
havenwood: neat! thank you
nomenkun has quit [Ping timeout: 244 seconds]
<deepy>
Not quite, I work professionally with Java tohugh :-)
enebo has joined #ruby
<four33>
Yeah... at the same time I see a hell of a lot of Ruby job postings offering exorbitant amounts of money
<maasha>
Grundell: Right. So position is: \s+\w*
<billy_ran_away>
a = "Mc'Dougle"; a.gsub("'", "\\") #=> "Mc\\Dougle"
<havenwood>
four33: It is honestly wildly popular. And I hope stays that way because lovely to use.
<billy_ran_away>
a = "Mc'Dougle"; a.gsub("'", "\\'") #=> "McDougleDougle"
myappleguy has quit [Ping timeout: 272 seconds]
<maasha>
Grundell: hm. nasty
<four33>
Well then, I shall continue to learn!
<billy_ran_away>
a = "Mc'Dougle"; a.gsub("'", "\\\'") #=> "McDougleDougle"
<billy_ran_away>
I just want "Mc\'Dougle"
<four33>
and I will continue to linger here on freenode
<Grundell>
maasha: i know, it's the documents of whats said in the swedish parlament
<deepy>
billy_ran_away: why do you want the ' escaped?
<billy_ran_away>
How the hell do I get that?
wallerdev has joined #ruby
<billy_ran_away>
SQL statement
<maasha>
Grundell: ill play with the rubular
<deepy>
You're doing something wrong if you're escaping SQL
<deepy>
Prepared statements!
<Grundell>
okay
<billy_ran_away>
deepy: For a SOQL statement actually.
m8 has joined #ruby
<Grundell>
maasha: i do the same trying to understand :P
<billy_ran_away>
deepy: Yes I agree, unfortunately I didn't write this code, I've just been asked to solve this one problem...
ExCa|iBuR has quit [Ping timeout: 245 seconds]
<deepy>
Then solve the problem, make it use prepared statements
<billy_ran_away>
deepy: Can you explain what you mean? I'm trying to prepare the statement with string interpolation
<deepy>
You'll spend more time writing a library to do SQL escaping becuase of silly things like ’
Fire-Dragon-DoL has joined #ruby
iajrz_ has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<deepy>
billy_ran_away: are you using a literal prepared statement or are you constructing a statement?
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
myappleguy has joined #ruby
atno has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
<maasha>
Grundell: so that rubular works now for this guy without position
<billy_ran_away>
deepy: Constructing a statement.
bronson has quit [Quit: bronson]
<Grundell>
and the guy with position ?
<deepy>
billy_ran_away: then you're doing it wrong, make a prepared statement, pass the stuff you're doing now as variables
mengu has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
mikepack has joined #ruby
<billy_ran_away>
I know that, but I'm not going to refactor everything that's been written, I'm just trying to fix one specific problem with the quotes. Plus there's no good libs for SOQL
Czupa has quit [Remote host closed the connection]
<maasha>
Grundell: thats there now as a work starting with one capital letter and then one or more lowercase letters.
<deepy>
billy_ran_away: SOQL seems ot have prepared statements though
burlyscudd has quit [Quit: Leaving.]
alexgandy has joined #ruby
burlyscudd has joined #ruby
alexgandy has quit [Client Quit]
<Grundell>
maasha: yes correct
jlast_ has joined #ruby
<deepy>
static queries and bind variables
<Grundell>
That is position.
alexgandy has joined #ruby
jlast_ has quit [Remote host closed the connection]
<billy_ran_away>
deepy: The variables aren't being escaped properly...
<Grundell>
hmm cant seam to get it to work on my rubular maasha...
atno has joined #ruby
<deepy>
billy_ran_away: I don't think you understand the power behind prepared statements
SirFunk has quit [Read error: Connection reset by peer]
alexgandy has quit [Client Quit]
<billy_ran_away>
deepy: I don't think I understand what you mean by prepared statements. But I'd like to.
zoee has quit [Quit: This computer has gone to sleep]
kaspergrubbe has joined #ruby
jjbohn is now known as jjbohn|afk
alexgandy has quit [Remote host closed the connection]
alexgandy has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
SirFunk has joined #ruby
alup has quit [Quit: Leaving]
SirFunk has quit [Read error: Connection reset by peer]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
CreativeEmbassy has quit [Remote host closed the connection]
cafhacker has joined #ruby
<workmad3>
billy_ran_away: with prepared statements, the query and the data are sent separately, so there's no need for anything to escape the variables because there's no way they can be mis-interpreted as SQL commands
DrShoggoth has joined #ruby
<billy_ran_away>
workmad3: Okay thanks, that makes sense.
Solnse has joined #ruby
jlast has joined #ruby
lewis has quit [Remote host closed the connection]
alexgandy has quit [Client Quit]
tharindu has joined #ruby
<workmad3>
deepy: wow, that RoR section there is old :)
<workmad3>
deepy: Rails 3.1+ uses prepared statements when possible btw ;)
vlad_starkov has quit [Remote host closed the connection]
<deepy>
workmad3: I don't know Ruby, or Rails, but I know SQL :-)
Kiba has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
mjs2600_ has joined #ruby
newbiehacker has joined #ruby
digital-ghost has joined #ruby
sputnik13 has joined #ruby
mlpinit_ is now known as mlpinit
heidi has joined #ruby
ahawkins has quit [Quit: leaving]
SirFunk has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanMertz has quit [Ping timeout: 244 seconds]
OdNairy has joined #ruby
Xeago has joined #ruby
SirFunk has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
atno has joined #ruby
Xeago_ has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 244 seconds]
maasha has quit [Quit: Page closed]
elux has quit [Quit: Bye!]
threesome has quit [Ping timeout: 272 seconds]
<billy_ran_away>
deepy: Salesforce doesn't support prepared statements for its REST API, that I can see.
OdNairy has quit [Ping timeout: 260 seconds]
<billy_ran_away>
deepy: Do you off hand know otherwise?
evenix has quit [Remote host closed the connection]
<deepy>
Then unfortunately I don't quite know
jbpros has quit [Quit: jbpros]
evenix has joined #ruby
<deepy>
I work with very different databases
yfeldblum has quit [Remote host closed the connection]
hamakn has joined #ruby
vlad_starkov has joined #ruby
<billy_ran_away>
deepy: Okay thanks for your help though.
yfeldblum has joined #ruby
RaCx has joined #ruby
bronson has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
crashx has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
<evenix>
hi all
iamjarvo has joined #ruby
timonv_ has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
<crashx>
hi
timonv has joined #ruby
ValicekB has quit [Ping timeout: 248 seconds]
<havenwood>
g'morning
freezey has joined #ruby
iamjarvo_ has joined #ruby
Clooth has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
stkowski has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
ggordan has joined #ruby
matchaw_ has joined #ruby
banisterfiend is now known as banisterfiend`
banister is now known as banisterfiend
iamjarv__ has joined #ruby
matchaw has quit [Ping timeout: 252 seconds]
dweeb has joined #ruby
iamjarv__ has quit [Remote host closed the connection]
rickmasta has joined #ruby
weirdpercent has joined #ruby
timonv has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Ping timeout: 278 seconds]
freezey has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
dhruvasagar has joined #ruby
randomnick_ has joined #ruby
<weirdpercent>
I want to use gsub to insert newlines before and after the word Quote and before and after quotation marks with body text like this: http://gist.github.com/weirdpercent/7469705
leonidlm has quit [Ping timeout: 260 seconds]
iamjarvo_ has quit [Ping timeout: 246 seconds]
<weirdpercent>
I don't know how to phrase the replacement to include everything between quotation marks
crashx has quit [Quit: crashx]
ValicekB has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
mercwithamouth has quit [Ping timeout: 244 seconds]
<weirdpercent>
ok so I should use scan to deconstruct it and rebuild it with the match elements?
mikepack has quit [Ping timeout: 246 seconds]
<havenwood>
weirdpercent: I was just using #scan to show you the regex.
leonidlm has joined #ruby
<_br_>
I'm a bit puzzled. I'm here on gentoo, just did a rvm get head ; and trying to install rvm install 2.0.0 ; That all runs fine, but it tries to install a ton of libs I already have on my system... why? Can I turn that off? Installing required packages: net-misc/curl, sys-devel/patch, app-shells/bash, virtual/libiconv, sys-libs/readline, sys-libs/zlib, dev-libs/openssl, net-misc/curl, dev-libs/libyaml, dev-db/sqlite, sys-devel/libtool, s
yfeldblum has joined #ruby
<havenwood>
weirdpercent: I still don't get what your expected output is, so i didn't delve to do that part.
<weirdpercent>
havenwood: ok thank you much
<havenwood>
weirdpercent: If you wanna show expected input (the string) and output (resultant string) i could give it a shot.
Guest7624 has quit [Ping timeout: 248 seconds]
tharindu has quit [Quit: Leaving...]
<weirdpercent>
havenwood: I think I can do it with scan, thanks
wildroma_ has quit [Remote host closed the connection]
shaunbak_ has quit [Remote host closed the connection]
Grundell has quit [Remote host closed the connection]
motto has joined #ruby
achru has quit [Ping timeout: 260 seconds]
froy has joined #ruby
testest has joined #ruby
nobitanobi has quit [Disconnected by services]
Hanmac has quit [Ping timeout: 260 seconds]
Monie has joined #ruby
Blaze_Boy has quit [Read error: Connection reset by peer]
m8 has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
jb41 has joined #ruby
dweeb has quit [Quit: Computer has gone to sleep.]
Advocation has quit [Ping timeout: 272 seconds]
prophile is now known as trolling
ananthakumaran has quit [Ping timeout: 244 seconds]
yjmsf20 has quit [Quit: leaving]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest93411 has quit [Ping timeout: 246 seconds]
pragmatism has joined #ruby
Hanmac1 is now known as Hanmac
brtdv has quit []
tharindu has joined #ruby
dagobah has quit [Remote host closed the connection]
dnyy has joined #ruby
freezey has joined #ruby
daxroc has quit [Quit: Leaving.]
jjbohn is now known as jjbohn|afk
dkamioka has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
pel_daniel has joined #ruby
Xeago has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
jondkinney has joined #ruby
Ox6abe has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
zoee has joined #ruby
maletor has joined #ruby
<jondkinney>
Hi there, I'm passing an argument as a hash to a method where all the keys and values of the argument need to be passed into another method call as individual arguments (aka I can't just pass the hash itself along). What's the best way to extract those keys and values from the hash to pass along as arguments?
<jondkinney>
jb41: so on my hash.flatten question from earlier, I'm double wrong...aka I did read my irb correctly, and flatten disassociates the keys from their values. I need them to stay key value pairs, but just not be inside a hash anymore... it's kinda weird, I know
aspires has joined #ruby
dweeb has quit [Quit: Computer has gone to sleep.]
udon has joined #ruby
duggiefresh has quit [Remote host closed the connection]
aspires has quit [Client Quit]
shredding has quit [Quit: shredding]
Czupa has joined #ruby
ephemerian has quit [Quit: Leaving.]
cburyta_ has joined #ruby
duggiefresh has joined #ruby
<jb41>
so, you want it in array?
noname001__ has quit [Ping timeout: 246 seconds]
camilasan has quit [Ping timeout: 260 seconds]
<waxjar>
jb41: ew, for loops.
Nucc has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 244 seconds]
aspires has joined #ruby
breakingthings has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<jb41>
jondkinney: h.keys + h.values
<jondkinney>
jb41: I don't want it in anything is the problem...
<waxjar>
how about [1,2,3,4,5].size.pred.times { |i| p i }
freezey has quit [Ping timeout: 272 seconds]
zxq9 has joined #ruby
jerius has joined #ruby
noop has joined #ruby
<jondkinney>
jb41: on line 4 of some_controller.rb I have the wkhtmltopdf_options there, and those keys and values need to go into line 26 of the pdf_generator.rb as arguments after the html argument
cburyta has quit [Ping timeout: 272 seconds]
<jb41>
waxjar: it's just each_index ;d
aspires has quit [Client Quit]
kevinykchan has joined #ruby
aspires has joined #ruby
err_ok has joined #ruby
<ehc>
where is += defined in ruby? I'm wondering what it does and calls behind the scences
<jb41>
you've to pass hash with options, or just arguments?
TMM has quit [Quit: Ex-Chat]
jrhorn424 is now known as zz_jrhorn424
tharindu has joined #ruby
ngoldman has quit [Remote host closed the connection]
<jondkinney>
I'm trying to avoid needing to pass each wkhtmltopdf option as an individual parameter to the pdf_generator module's generate_pdf method, but that's how PDFKit wants them
<jondkinney>
So I was trying to take in an options hash, and then just extract it's keys and values to pass into PDFKit.new
<jb41>
extract it to what?
jamesaanderson has joined #ruby
<jb41>
let's say we have hash = {a: '1', b: '2'}
dkamioka has joined #ruby
<jb41>
what you want to have?
jamesaanderson has quit [Client Quit]
<jondkinney>
I want to have a: '1' and b: '2' as arguments to PDFKit.new(html, a: '1', b: '1')
thatchris has joined #ruby
luke_ has joined #ruby
luke_ has quit [Client Quit]
<jondkinney>
b: '2' meant to say above
myappleguy has joined #ruby
<jb41>
ok
jamesaanderson has joined #ruby
duggiefresh has joined #ruby
<jondkinney>
in the context where I'm calling PDFKit.new though, I just have the hash itself, and need to extract it's keys and values I guess?
lukec has quit [Quit: lukec]
jamesaanderson has quit [Client Quit]
zigomir has quit [Quit: zigomir]
JonahR has joined #ruby
shaunbaker has joined #ruby
tharindu has quit [Ping timeout: 248 seconds]
<jb41>
passing just values isn't ok?
<jb41>
I see for the first time such combination
<jb41>
one pair from hash as an argument
<jb41>
:d
elux has joined #ruby
wildroman has joined #ruby
Ox6abe has joined #ruby
dkamioka_ has joined #ruby
barratt has quit [Ping timeout: 259 seconds]
<jb41>
wait a minute
GoodTimes has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jondkinney>
jb41: maybe PDFKit.new is expecting a hash as it's second argument, but just is omitting the curly braces?
joshwines has quit [Quit: Connection closed for inactivity]
<jb41>
h.inject([]) { |m, v| m << {v[0] => v[1]}}
<jb41>
it's array of small hashes
dkamioka has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
<jb41>
*(h.inject([]) { |m, v| m << {v[0] => v[1]}}) will do what you want, I hope
nvrch has quit [Quit: nvrch]
<xibalba>
ruby newb here, but what's the *( .... ) indicate?
momomomomo has quit [Quit: momomomomo]
<xibalba>
reminds me of C pointer syntax
soulcake has quit [Ping timeout: 260 seconds]
<jb41>
xibalba: when you've method like def dupa(a, b, c, d)
sambao21 has quit [Quit: Computer has gone to sleep.]
Tarential has quit [Excess Flood]
<jb41>
you can pass array as argument there dupa(*[1,2,3,4])
Tarential has joined #ruby
<jb41>
I don't know what is correct name for that syntax
simplyaubs has quit [Quit: simplyaubs]
dkamioka_ has quit [Ping timeout: 260 seconds]
<xibalba>
oh ok, reminds me of how you handle ARGV
<xibalba>
im sure ill get to it in a few chapeters
<Hanmac>
jb41: its array splat
sambao21 has joined #ruby
shaunbaker has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 260 seconds]
kaspergrubbe has joined #ruby
<jondkinney>
jb41: So thank you for all the help! I guess it turns out that it can accept an options hash after all
<jondkinney>
even though the docs seemed to indicate named parameters to me
<jondkinney>
idk
freezey has joined #ruby
shaunbaker has joined #ruby
whunt has joined #ruby
heftig has joined #ruby
anderse has joined #ruby
<jb41>
jondkinney: my above answer isn't working?
<jb41>
*(h.inject([]) { |m, v| m << {v[0] => v[1]}})
burlyscudd has joined #ruby
<jb41>
it's not pretty, but it's propably what you want
phansch has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
sambao21 has joined #ruby
burlyscudd has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
awarner has quit [Ping timeout: 272 seconds]
shaunbaker has quit [Ping timeout: 276 seconds]
ghr has quit [Quit: Computer has gone to sleep.]
jhulten has joined #ruby
io_syl has joined #ruby
<roobatube>
I've got a question about looping, if anyone could point me in the right direction: I"ve made a simple hangman game, but I'm having trouble getting in and out of the main loop between games
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
kaspergrubbe has joined #ruby
Shellcat has joined #ruby
thelorax1231 has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
atno has quit [Ping timeout: 272 seconds]
capicue has quit [Quit: Leaving...]
lnormous has joined #ruby
reset has joined #ruby
_jesse_ has quit [Ping timeout: 260 seconds]
kevinykc_ has joined #ruby
bricker`away has quit [Ping timeout: 245 seconds]
kevinykchan has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
bricker`work has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
mklappstuhl has joined #ruby
carlyle has quit [Remote host closed the connection]
dkamioka has joined #ruby
coldmethod has joined #ruby
hiall has joined #ruby
thesheff17 has joined #ruby
thesheff17_ has joined #ruby
zeropx has joined #ruby
Es0teric has joined #ruby
nanoyak has joined #ruby
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
thesheff17_ has joined #ruby
Es0teric has quit [Max SendQ exceeded]
xcess_denied has quit [Quit: Leaving...]
bricker`away has joined #ruby
bricker`work has joined #ruby
thesheff17_ has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
BigBlueBacon has quit []
interactionjaxsn has joined #ruby
phinfonet has joined #ruby
eldariof has joined #ruby
Advocation has joined #ruby
<platzhirsch>
oh my, I think I have gotten the class loading under control now
* platzhirsch
whips Rails
momomomomo has joined #ruby
bricker`away is now known as bricker
leonidlm has quit [Ping timeout: 248 seconds]
bricker`work has quit [Disconnected by services]
tharindu has joined #ruby
agorman has joined #ruby
burlyscudd has joined #ruby
interactionjaxsn has quit [Ping timeout: 260 seconds]
cody-- has joined #ruby
ckinni has joined #ruby
<iliketurtles>
is there ever a case where, in a hash, { id: "foo" } and { "id" => "foo" } can be accessed interchangeably by hash[:foo] and hash["foo"]? as in, if my hash is { "id" => "foo" } can I ever access the value of hash["id"] by calling hash[:id]
Advocation has quit [Ping timeout: 260 seconds]
eldariof has quit [Ping timeout: 246 seconds]
decoponio has quit [Quit: Leaving...]
wildroman has quit [Remote host closed the connection]
DrCode has joined #ruby
DrCode has quit [Remote host closed the connection]
havenwood has joined #ruby
<Hanmac>
iliketurtles: there is a reason why it is not, and Railians still want to replace the current ruby-core code with their way
<iliketurtles>
Hanmac: can you elaborate?
<iliketurtles>
You're saying this is possible in rails, but not in pure ruby?
tharindu has quit [Ping timeout: 244 seconds]
diegoviola has quit [Ping timeout: 248 seconds]
<Eiam>
he's saying rails changed the behavior of a core ruby implementation
<Eiam>
which isn't uncommon, they have fucked me over several times by doing that
_jesse_ has joined #ruby
<iliketurtles>
Eiam: i see -- can you explain, or point me to, the changed behavior of hash in rails? so I can better understand it
* Eiam
staring at Ruby docs saying "hmm, it says this method does this but.. its not doing that.." oh duh, Rails changed how that method works, thanks guys for changing how Hash works.
<four33>
do other languages have things which resemble/function in the same way as symbols in ruby?
<Hanmac>
Eiam: they didnt manage it yet, but they try often enough
shredding has quit [Quit: shredding]
<iliketurtles>
four33: as I understand it, symbols are just strings that are immutable
RaCx has quit [Ping timeout: 244 seconds]
tsykoduk is now known as zz_tsykoduk
<Eiam>
four33: kMyConst = "Hello"; ?
bluenemo has quit [Ping timeout: 246 seconds]
<iliketurtles>
Hanmac: so, Rails has NOT overridden any hash behavior then?
<four33>
Right, but all of the tutorials i've been reading suggest that symbols are somehow "cheaper" in overhead than normal strings
mephux has quit [Ping timeout: 246 seconds]
<Hanmac>
not yet but they did try it
<iliketurtles>
Hanmac: heh.
<Hanmac>
iliketurtles: do you know that Symbols are stick more on you than bad smell? once created only the closing of the ruby interpreter can get rib of them
phansch has joined #ruby
randomnick_ has quit [Read error: Connection reset by peer]
<iliketurtles>
Hanmac: hmm, why is that potentially problematic?
Guest97312 has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<iliketurtles>
that would suggest to me that strings would be cheaper in overhead if its so hard to get rid of a symbol in memory
<Xeago>
*poke* jeekl
<Hanmac>
iliketurtles: it is when symbols are generated automaticlly and/or on user input ...
<Eiam>
like as hash keys =p
mephux has joined #ruby
<iliketurtles>
Hanmac: can you give an example of what you mean? i'm not sure I understand
Nogbit has quit [Ping timeout: 252 seconds]
<Xeago>
parsing user input
<havenwood>
create ALL THE SYMBOLS \o/ (uses all the RAM)
<Xeago>
and turning parts of that into symbols
jcf has quit [Quit: Leaving.]
<Xeago>
repeat that over and over again with multiple inputs
<Xeago>
and see your memory growing
kpshek has quit []
<iliketurtles>
Xeago: using the same symbols? or new symbols each iteration?
<Hanmac>
iliketurtles: 1000.times {|i| :"abc#{i}" } #<< this will create 1000 symbols ... and you cant get rip of them anymore
<Xeago>
iliketurtles: different symbols
<havenwood>
iliketurtles: new symbols, the idea would be a malicious flooding
<Eiam>
iliketurtles: I don't recall the specific example, I was just using an instance method on a core ruby object and it didn't behavior as expected per the Ruby docs, because it was calling the Rails version of the same method
scarolan has quit [Ping timeout: 265 seconds]
<Eiam>
I don't use rails anymore so I don't worry about problems like that
<Hanmac>
but the next time it access the same symbols so there are still 1000 and not 2000 after the second time
Monie has joined #ruby
Lewix has joined #ruby
<iliketurtles>
Hanmac: but it still grows in memory?
randomnick_ has joined #ruby
snuffeluffegus has quit [Remote host closed the connection]
<Hanmac>
iliketurtles: only the first time
<iliketurtles>
Hanmac: OK. this doesn't seem like a bad behavior?
<four33>
immutable means I cannot change its value?
<iliketurtles>
havenwood: makes sense haha
leonidlm has joined #ruby
<iliketurtles>
Hanmac: avoid loops? and userinput? what do you mean?
<iliketurtles>
four33: it exists in memory and cannot be removed without killing the ruby interpreter, as I understand it
<Hanmac>
iliketurtles: i mean using symbols is okay, but do not turn userinput you get from something like gets or other functions into symbols
jjbohn has quit [Quit: Leaving...]
iamjarvo has quit [Remote host closed the connection]
<iliketurtles>
Hanmac: rather store it as an object? i've never seen code where they store user input as a symbol...
jjbohn has joined #ruby
<iliketurtles>
oh wow, ActiveSupport::HashWithIndifferentAccess I always wondered what that was
zz_jrhorn424 is now known as jrhorn424
<Eiam>
iliketurtles: taking in json from an external source?
<iliketurtles>
Eiam: hmm, I see. So it would be better to use strings in this JSON -> Ruby case?
burlyscudd has quit [Quit: Leaving.]
<Eiam>
one of my apps deals with 20-30 megs of json per session easily
DrCode has joined #ruby
ngoldman has joined #ruby
<Eiam>
iliketurtles: It is "Safer" to use strings whenever you are dealing with content that you don't explicitly own/generate/control
alvaro_o has joined #ruby
<iliketurtles>
Eiam: but string are not really less/more memory overhead than symbols?
<Eiam>
iliketurtles: the string overhead goes away when the object goes.
<Eiam>
the symbol does not
jrhorn424 is now known as zz_jrhorn424
<iliketurtles>
"goes" meaning is garbage collected?
<Eiam>
yes
mercwithamouth has quit [Ping timeout: 272 seconds]
<four33>
how does Ruby garbage collection work?
<havenwood>
four33: Depends on the implementation of Ruby.
<Hanmac>
four33: mark-and-sweep (on MRI)
<iliketurtles>
i recall reading of a new GC algorithm in ruby 2
jjbohn has quit [Ping timeout: 246 seconds]
<havenwood>
four33: 2.0.0 added copy-on-write friendly mark-and-sweep, but 2.1.0 switches to generational
<Hanmac>
in ruby2.1+ there are frozen string literals ... which are like a hybrid between string and symbol
<iliketurtles>
bitmap marking?
<havenwood>
iliketurtles: 2.0, yes
<havenwood>
iliketurtles: 1.9 and 2.1, no
<iliketurtles>
Hanmac: what does that mean, frozen string literals?
Nogbit has joined #ruby
<four33>
cause i've heard mark-and-sweep is generally looked down upon?
<iliketurtles>
havenwood: oh weird, they're dropping bitmap marking from 2.1?
<havenwood>
iliketurtles: well, with generational gc you lose CoW friendliness but that is the nature of gcs, tradeoffs
Nogbit has quit [Client Quit]
kirun has joined #ruby
<iliketurtles>
CoW = copy on write?
<havenwood>
iliketurtles: ya
colonolGron has joined #ruby
<havenwood>
Koichi-san did a good talk at RubyConf on 2.1's GC
<iliketurtles>
so why implement bitmap marking for only one major version of ruby and drop it in the next bump
<Hanmac>
iliketurtles: "abc"f does mean: make a string as a literal, but make it frozen ... (frozen sting literals are shared like symbols) that means : "abc".object_id != "abc".object_id but "abc"f.object_id == "abc"f.object_id
anderse has quit [Quit: anderse]
nobitanobi has quit [Read error: Connection reset by peer]
Soda has joined #ruby
<four33>
the lack of semicolons in ruby screws me right up
pixelgremlins has joined #ruby
<iliketurtles>
four33: you can add them and the interpreter will ignore :P
mikepack has quit [Read error: Connection reset by peer]
<havenwood>
iliketurtles: one was a refinement on the status quo, the other took another year to get ready
<iliketurtles>
havenwood: i see
mikepack has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
zz_jrhorn424 is now known as jrhorn424
dangerousdave has joined #ruby
<havenwood>
iliketurtles: nice to have options, with different performance characteristics - but seems like 2.1's default is humming
zoee has quit [Quit: This computer has gone to sleep]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
carlyle has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
interactionjaxsn has joined #ruby
jkhwan has joined #ruby
<iliketurtles>
Hanmac: can you explain what that does? Just carves out a specific chunk in memory for the enumerator rather than letting it grow to infinity?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banisterfiend`>
four33 they're blocks, you'll learn to love them
<banisterfiend`>
four33 it's basically a 'mixin'
zz_jondkinney has joined #ruby
shadoi has joined #ruby
zipper has joined #ruby
<banisterfiend`>
four33 but they have a dual role in ruby, they're used for namespacing as well
zz_jondkinney has left #ruby [#ruby]
<four33>
hmmmm
jibi has quit [Quit: .]
<four33>
I don't think Java has mixins..
<banisterfiend`>
four do u know what a mixin is?
mjs2600_ has quit [Remote host closed the connection]
<four33>
from what i';m reading now it's apparently a class which contains methods from other classes
<four33>
which sounds a little useless to me
bruno- has quit [Ping timeout: 246 seconds]
tharindu has joined #ruby
Mars has joined #ruby
<banisterfiend`>
four33 a mixin is like a class but it can be dynamically mixed into inheritance chains
<banisterfiend`>
it's pretty powerful
Mars is now known as Guest5307
<banisterfiend`>
you can add a whole set of methods to an object on the fly, or share methods among unrelated classes
<four33>
ah, I see
<four33>
sounds like an interface
<platzhirsch>
Modules remind of interfaces in Java, except that they are already implemented
rellin has joined #ruby
<banisterfiend`>
four33 simlar, except modules also contain implementation, not just interface
<platzhirsch>
but in contrast to Java, it's not used as a contract
anderse has quit [Client Quit]
<four33>
why would you want to share methods and not just rewrite them for each?
<platzhirsch>
four33: redundant code
<banisterfiend`>
four33 why would you want to rewrite a bunch of methods that are already implemented somewhere else? seems like a chance to introduce inconsistencies and bugs
<four33>
right, I wouldn't - but is this really the only use for mixins/interfaces/modules, etc.?
<four33>
(just trying to wrap my head around possible uses)
<havenwood>
four33: for humans to help organize stuff
<banisterfiend`>
four33 i told you the other use already
Guest30274 has quit [Quit: Leaving...]
<Hanmac>
about unicode, how was that named again that two strings has the same encoding, the same output but a different byte style? ... like str1 and str2 are not the total the same, but they can be treated the same ? so like "â" can be maked from "a" + "^" ?
mjs2600 has joined #ruby
<four33>
namespacin', right!
<banisterfiend`>
four33 also, that's not just 'any use', that's a tremendous amount of power you can use for a lot of different things
<four33>
I guess i'll fully understand when I encounter their use
<four33>
I've honestly still never used an interface in Java
<iliketurtles>
banisterfiend`: can you give an example of where using a mixin might be useful?
asteros has joined #ruby
<iliketurtles>
a practical example
<banisterfiend`>
iliketurtles Enumerable
momomomomo has joined #ruby
zipper has quit [Quit: leaving]
<MrZYX>
or Comparable
Es0teric has joined #ruby
jkhwan has joined #ruby
<banisterfiend`>
iliketurtles a_hash.any? and an_array.any? { } the methods come from the same place (Enumerable)
ldnunes has quit [Quit: Leaving]
vlad_starkov has joined #ruby
<iliketurtles>
banisterfiend`: you're referring to the .any? method?
tharindu has quit [Ping timeout: 272 seconds]
dnyy has quit [Read error: Connection reset by peer]
<banisterfiend`>
iliketurtles that's just an example of a method that is defined in the Enumeable module but is available on both Hashes and Arrays
<banisterfiend`>
as Enumeralbe is mixed into both classes
dnyy has joined #ruby
<iliketurtles>
banisterfiend`: interesting. i did not know that. so where is .any? actually defined
Hanmac1 has joined #ruby
<banisterfiend`>
iliketurtles omg
<iliketurtles>
sorry
<banisterfiend`>
iliketurtles dude, it's on Enumerable (that's the whole point of this discussion :P)
<iliketurtles>
a little distracted. enumerable module
scarolan has joined #ruby
havenwood has quit [Ping timeout: 268 seconds]
<four33>
so Enumerable defines it, and Comparable inherits/extends it?
<MrZYX>
iliketurtles: four33 you mixin a module into a class
mmitchell has quit [Remote host closed the connection]
<SloggerKhan>
Anyone know something like trello that lets you create groups of tasks with with same due date or create boards by due date or have a really simple 'sprint' functionality? We're looking to just try to keep track of what we want to get done each month and what we do get done, not do all kinds of sprint planning agile stuff but also not have to keep adding due dates to things ad nauseum.
<four33>
so now my class contains the methods of that module, and I can use them without having to rewrite them.
<four33>
right?
sayan has quit [Ping timeout: 260 seconds]
zz_tsykoduk is now known as tsykoduk
nanoyak has quit [Quit: Computer has gone to sleep.]
<MrZYX>
Apane: I guess I'd just sort and split in half
mojjojo has joined #ruby
<MrZYX>
four33: yeah
havenwood has joined #ruby
Solnse has quit [Remote host closed the connection]
<iliketurtles>
so "mixin" is not actually something in ruby, it's something you do WITH a module?
scarolan has quit [Ping timeout: 246 seconds]
nisstyre has quit [Disconnected by services]
nisstyre has joined #ruby
RaCx has joined #ruby
<Apane>
Thanks MrZYX, Tht's great and I agree just not sure how was thinking <=> instead of > but can u show some example code?
<MrZYX>
we often call a module intended to be mixed into a class a mixin, since modules are also often used as namespaces for example
cek has quit [Ping timeout: 245 seconds]
scarolan has joined #ruby
drumusician has quit [Ping timeout: 252 seconds]
aspiers has joined #ruby
mmitchell has joined #ruby
pragmatism has joined #ruby
jhaals has joined #ruby
<iliketurtles>
MrZYX: OK that makes sense
err_ok has joined #ruby
bruno- has joined #ruby
nism-pi has quit [Ping timeout: 248 seconds]
zarubin has quit [Ping timeout: 272 seconds]
<iajrz_>
why can you pass messages with name.send and name.__send__ ??
<four33>
Thanks MrZYX and banisterfiend`
<MrZYX>
Apane: array = [...]; array.sort!; lower = array[0, array.size/2]; upper = array[array.size/2, array.size/2] with some nicer splitting code I can't come up right now
<Hanmac>
iajrz_: maybe because its the only way? ;P
<iajrz_>
o_O I listed two method names
olivier_bK has joined #ruby
<MrZYX>
iajrz_: 1) useful for debugging 2) actually often a valid way to call a method, think a delegator using method_missing for example. Though I prefer #public_send in the later case
aspiers has quit [Ping timeout: 244 seconds]
mmitchell has quit [Ping timeout: 265 seconds]
<iajrz_>
can't he the only way if there are two ways, huh?
carlyle has quit [Remote host closed the connection]
<MrZYX>
#__send__ is defined on BasicObject and #send on Object iirc
ngoldman has quit [Remote host closed the connection]
<iajrz_>
hm... alright, I'll check it out. Darn koans, making me worry
zipper has joined #ruby
Hanmac1 has joined #ruby
<Hanmac1>
MrZYX & Apane: what about: lower, upper = data.each_slice(data.size/2).to_a
asteros has quit [Quit: asteros]
<MrZYX>
right, thanks Hanmac
<Apane>
thanks Hanmac1
<MrZYX>
but now I want a slices method to go on par with #chars etc :P
Hanmac has quit [Ping timeout: 246 seconds]
Hanmac1 is now known as Hanmac
scarolan has quit [Ping timeout: 265 seconds]
mark_locklear has quit [Ping timeout: 248 seconds]
<Hanmac>
MrZYX: first i did try "*lower, *upper = data" but it did not work, it was "unexpected" ;D
tvw has joined #ruby
<MrZYX>
^^
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
scarolan has joined #ruby
<Hanmac>
MrZYX yetAnotherWay
<Hanmac>
>> lower, upper = [*0..100].partition{|i| i < 50}
yfeldblum has quit [Remote host closed the connection]
xk_id has joined #ruby
dweeb_ has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
jhaals has joined #ruby
<four33>
do you peeps know any other languages?
workmad3 has joined #ruby
bahar has joined #ruby
atrocitas has joined #ruby
<havenwood>
four33: most do, Rubyists tend to be polyglots
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
tharindu has joined #ruby
<four33>
I don't know if it's a super great idea, but i'm learning Java already, and have just started on Ruby
<havenwood>
four33: Check out JRuby.
RichardBaker has joined #ruby
achru has quit []
jibi has joined #ruby
<havenwood>
four33: Ruby is nicer than Java, but you can build Java extensions or compile to jars.
iamjarvo has quit [Remote host closed the connection]
SirFunk has quit [Remote host closed the connection]
<four33>
define "nicer"?
zipper has quit [Quit: leaving]
iamjarvo has joined #ruby
<iajrz>
nicer = more like ruby :P
<havenwood>
four33: More elegant, concise, less cruft, more predictable, formable into what you want
scarolan has quit [Ping timeout: 268 seconds]
<four33>
hm
A124 has joined #ruby
<four33>
less readable
<four33>
:P
CorySimmons has joined #ruby
<iajrz>
not necessarily, I daresay...
cpruitt has quit [Quit: cpruitt]
<four33>
maybe I'm just used to Java
<havenwood>
four33: silliness :P Java is only more readable if you learn Java before sanity
<iajrz>
java 8 has closures
<four33>
yeah you never forget your first Hello, world
<iajrz>
no, not when it's so long >_>
agent_white has joined #ruby
<four33>
haha
<havenwood>
four33: Clojure or Ruby are so much nicer than Java, and you can dip down whenever you like.
<MrZYX>
I had to work with a java project recently where basically all arguments and returns types where Object
<havenwood>
Scala and Java are for masochists.
<four33>
People are praising Scala lately
<iajrz>
There are horrendous programmers out there, MrZYX.
<lupine>
I've been writing a lot of C recently
<Hanmac>
havenwood: thats not difficult .,.. nearly everything in nicer than java
Monie has joined #ruby
<lupine>
it's funny how it grows on you
jbpros has joined #ruby
<lupine>
bad C is horrid, bad java is horrid, bad ruby is horrid
iamjarvo has quit [Remote host closed the connection]
<iajrz>
lupine: it's your psyche trying to get adjusted to the pain
<lupine>
no, honestly
<havenwood>
lawl
<terrellt>
Bad ruby is less horrid than bad C.
bronson has joined #ruby
* terrellt
shivers
<iajrz>
bad C is not just horrid, it's cancer.
keen___ has quit [Ping timeout: 246 seconds]
<havenwood>
good C and good Java are horrid
<lupine>
no, goodC is a joy
bahar has quit [Ping timeout: 268 seconds]
<Hanmac>
lupine: i use C-Macros very often in my C++ stuff to generate methods so i can bind them for the ruby methods
<iajrz>
good Java ain't horrid. Unless you're doing web development.
sbos99 has quit [Ping timeout: 246 seconds]
<havenwood>
lupine: joy is relative
johnnyfuchs has joined #ruby
<iajrz>
or UIs in general
<four33>
man this Ruby install is huge
<havenwood>
iajrz: again, horrid is relative
<lupine>
*shrug*
scarolan has joined #ruby
tharindu has quit [Ping timeout: 272 seconds]
<havenwood>
you get used to ugly
<lupine>
if what you're saying is "I dislike working in C", that's fine
<four33>
how do you guys distribute programs - does the user have to know how to install with Homebrew, etc.?
<iajrz>
lol, that was my psyche adjusting to the pain, I guess
<iajrz>
a year too many coding java
<platzhirsch>
workmad3: did you get my memo? :P
<iajrz>
four33: gem ?
<four33>
gem?
asteros has quit [Quit: asteros]
<lupine>
four33, I gave up distributing work's ruby gui application on mac
<iajrz>
guys, am I right? wouldn't ruby gems be the way to distribute ruby thingies?
<lupine>
it's doable until you need C extensions
bahar has joined #ruby
<lupine>
iajrz, gems are for programmers
Czupa has quit [Remote host closed the connection]
<platzhirsch>
iajrz: yes
<lupine>
for a desktop application, you want a dmg, it's what apple users are hot for
<havenwood>
lupine: I'm saying being accustomed to pain is a shame to accept. What is acceptable in programming quickly becomes arcane and bizzare.
yfeldblum has joined #ruby
<four33>
let's say you make a beautiful ruby program which displays pictures of cats, you want to send it to your grandmother to run on her computer - how do?
<lupine>
havenwood, then your assertion is plainly incorrect
SirFunk has joined #ruby
<havenwood>
lupine: COBOL ftw.
<iajrz>
guys, we should be doing scheme
<platzhirsch>
four33: windows, apple, linux?
* iajrz
ducks, as another language war erupts around him
<four33>
you don't know
<havenwood>
lupine: Why have loops, binary octets work for me.
<four33>
she might have told you windows at one point, but you can't remember
<iajrz>
platzhirsch: what's the link of the bomberman MMO clone?
<platzhirsch>
four33: then you host it on a web server and send her the link
<lupine>
you're obviously not going to be reasonable with it
<four33>
she doesn't have the internet, and you have to mail her a USB stick
<platzhirsch>
iajrz: I won't give it out, it's eating all the time you should spent programming Ruby :P
<iajrz>
lol
<havenwood>
lupine: C is C. I Ruby to not C.
cody-- has quit [Quit: derp]
yfeldblu_ has joined #ruby
<iajrz>
mail her an android with the APK installed, four33
<lupine>
havenwood, and I ruby and C
<iajrz>
:P
myappleguy has quit [Ping timeout: 246 seconds]
<iajrz>
platzhirsch: I need to play :'( and if I start playing LoL
<four33>
May as well write it in Java, then
carraroj has joined #ruby
capicue has joined #ruby
<iajrz>
... I don't know what will be of me
<iajrz>
four33: jruby?
tonni_ has joined #ruby
<four33>
an abomination!
<platzhirsch>
four33: then you package it for OS X, Linux and Windows and tell her to try out any of these three
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lupine>
deploying ruby applications on mac, as .app dmg files, is fairly difficult
alekst has joined #ruby
<four33>
this is what i'm wondering
<lupine>
there are a variety of we'll-do-it-for-you frameworks
<four33>
coming from java, it's fairly easy for me to send someone an application
<lupine>
none of them worked for a QtRuby application last I tried
<four33>
I don't know enough about Ruby to know how to do that here
<lupine>
you can deploy a jruby application as a jar file
lethjakman has joined #ruby
<lupine>
this might be the way forward for you
<four33>
let's forget JRuby for the time being
<lethjakman>
hey, I'm trying to use blocks, but I'd like to also be able to pass the text in by hand
<lethjakman>
but I'm getting an unexpected & when refering to the block
<lupine>
for ruby, it's a matter of putting the files in the right places that all the search paths work and stuff, and creating a shortcut where the user can see it
<lethjakman>
anyone know what I'm doing wrong?
eddie has joined #ruby
<havenwood>
lupine: of course good C is good, i just was being silly - but Ruby is a reason in itself imho
danshultz has joined #ruby
tonni has quit [Ping timeout: 252 seconds]
<lupine>
the .app format is very weird, and apple's dynamic linker is braindead
eddie is now known as Guest1895
Guest1895 is now known as another_eddie
<lupine>
pure ruby applications are perfectly doable, though
<four33>
it doesn't sound like it :/
<havenwood>
sure, a couple good examples of MacRuby apps
<somasonic>
anyone got a favourite smtp mail sending lib?
scarolan has joined #ruby
mephux has quit [Ping timeout: 246 seconds]
another_eddie has quit [Client Quit]
<four33>
so i've found one reason Java is better than Ruby
<somasonic>
please enlighten us
mephux has joined #ruby
<shevy>
four33 because it is compiled?
<four33>
I can easily make an application and share it with potential users of the application
mklappstuhl has quit [Remote host closed the connection]
<iajrz>
ease of packaging
nobitanobi has quit [Read error: Connection reset by peer]
SirFunk has quit [Read error: Connection timed out]
<bahar>
asking about RubyMine because I have a script going, and I'm putting an ip address into a variable, and RubyMine is returning the error, "no .<digit> floating literal anymore; put 0 before dot (SyntaxError)" <-- any insight?
SirFunk has joined #ruby
<Lewix>
four33: what about git
Apane has quit [Ping timeout: 244 seconds]
<shevy>
four33 huh, gems are not about "sharing" with users?
nobitanobi has joined #ruby
parduse has quit [Read error: Connection reset by peer]
<iajrz>
bahar: you have a number which is .##
<iajrz>
they ask you to make it be 0.##
IceDragon has joined #ruby
<four33>
shevy: what if the user doesn't know how to install ruby through command line
<bahar>
if i have for example, 192.168.1.0, i should make it 1920.1680.10.1?
<iajrz>
huh
<iajrz>
that's weird
<iajrz>
shouldn't be necessary, no
<bahar>
yeah its weird
<bahar>
it doesnt like the dots in the ip address
<iajrz>
but they're acting as though you're using a float literal
<iajrz>
this is silly, but do you have your quotes?
parduse has joined #ruby
<Hanmac>
bahar: use string
<iajrz>
"192.168.1.0"
keen___ has joined #ruby
<iajrz>
yay! I successfully finished writing the proxy :D
<bahar>
well what i'm using is config.hue_ip = 192.168.1.0
<iajrz>
I love being able to run irb and ask Object.methods
<iajrz>
bahar: make it a string
<bahar>
i should make it config.hue_ip.to_s = 192.168.1.0 or config.hue_ip = "192.168.1.0" ?
<shevy>
four33 ok what other scripting language allows that?
<iajrz>
the second one
Banistergalaxy has quit [Ping timeout: 272 seconds]
dallasm_ has joined #ruby
banas has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0/20131030081700]]
<Hanmac>
or use that ;D IPAddr.new("192.168.1.0")
sambao21 has quit [Quit: Computer has gone to sleep.]
newbiehacker has joined #ruby
sambao21 has joined #ruby
<four33>
shevy: no idea
macmartine has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 244 seconds]
dallasm_ has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby
mjs2600 has joined #ruby
macmartine has joined #ruby
jamblack has quit [Ping timeout: 244 seconds]
nomenkun_ has quit [Remote host closed the connection]
reset has joined #ruby
Jetchisel has joined #ruby
nomenkun has joined #ruby
Apane has joined #ruby
<shevy>
four33 well there is the ruby one click installer on windows
<shevy>
Reach on linux you should be able to simply type the name of the file you want to run, i.e. as absolute path. if the name of your file is foo.rb you simply type "./foo.rb" or "ABSOLUTE/PATH/TO/IT"
<four33>
you've been a great audience
Mars is now known as Guest4553
<Reach>
I don't see how I was whining...
graydot has quit [Ping timeout: 240 seconds]
<four33>
I think he's referring to me
<iajrz>
Actually, no
<iajrz>
we weren't looking for an answer
<iajrz>
it wasn't whining
gr33n7007h has quit [Read error: Operation timed out]
<iajrz>
we were... not being productive
<Reach>
I'm using OSX
<iajrz>
that gets tiresome
<four33>
I was certainly looking for an answer
<shevy>
Reach should work the same on OSX too, OSX is using some modified BSD isn't it? that is also a unix derivative, like linux
<four33>
I think I found three of them, too...
<Reach>
I just want to be more sueful with my programming skills as I gotta look for a job soon
<shevy>
only windows users are really forced to work with the GUI
hiyosi has joined #ruby
<shevy>
like, you can install bash on windows, but the only way you can manage is to have to use the GUI, on linux and osx you can choose
aryaching_ has quit [Ping timeout: 244 seconds]
reset has joined #ruby
evenix has quit [Remote host closed the connection]
<shevy>
perhaps less so on linux... :P
CorySimmons has quit [Quit: Leaving.]
<shevy>
but there are graphical package managers
* Hanmac
prefers cmd for making ... its so much faster
<shevy>
yeah
<iajrz>
shevy: powershell
graydot has joined #ruby
leonidlm has joined #ruby
<iajrz>
actually, there are some headless windows server installs lately, iirc
<shevy>
hmm
Kamuela has joined #ruby
<shevy>
does powershell allow you to install ruby?
<Kamuela>
that's a good question. just got 8.1 up today
<Kamuela>
shevy, how do they implement that? do they require it as a feature of .NET apps or something?
<shevy>
kamuela so rather than treating stuff like on linux "everything is a file", you basically treat it as object-like entity, that can respond to a common set of behaviour
<shevy>
my dream would be to apply audio and video filters that way easily
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
like avisynth scritps do... but right in the shell, integrated
timonv has quit [Ping timeout: 260 seconds]
kcombs has quit [Remote host closed the connection]
<Kamuela>
hmm, is that an NT thing they're working on? does the GUI work on that interface?
<shevy>
kamuela yeah I think you need .NET :(
jrhe has joined #ruby
<shevy>
it used to be called "monad shell"
aryaching has quit [Ping timeout: 264 seconds]
nisstyre has quit [Quit: Leaving]
Guedes0 has joined #ruby
benwoody has joined #ruby
<Kamuela>
I played with C# .NET for a little bit. It was kinda cool
scarolan has quit [Ping timeout: 240 seconds]
<shevy>
I hate that it is locked for windows
Apane has quit [Ping timeout: 265 seconds]
mary5030 has quit [Ping timeout: 272 seconds]
benwoody has quit [Client Quit]
<iajrz>
my life makes no sense now
<iajrz>
no koans to complete
<shevy>
iajrz it's ok, drink a beer
<Kamuela>
iajrz, you finished koans?
<iajrz>
aye, all of the vanilla ones
<iajrz>
they have an extra_credit
<iajrz>
and... a java_interop
<Kamuela>
i promise to work on them once i fix xubuntu
pixelgremlins has quit [Ping timeout: 268 seconds]
<iajrz>
what's up with xubuntu?
drumusician has joined #ruby
<iajrz>
kamuela
jkamenik has quit [Quit: Leaving.]
SHyx0rmZ has joined #ruby
jjbohn has quit [Quit: Leaving...]
Guest4553 has quit [Remote host closed the connection]
<Kamuela>
iajrz, i went to give it more room today
myappleguy has quit [Ping timeout: 260 seconds]
<Kamuela>
it was on the tail end of my drive with only 100GB
Hanmac1 has joined #ruby
<Kamuela>
with windows doing nothing with 600GB
newbiehacker has quit [Quit: Leaving]
<Kamuela>
so went to windows but ended up completely reinstalling 8.1 insead of 8
<Kamuela>
and gave it 100GB, then gparted to push everybody up
<Kamuela>
but windows 8.1 installed a system reserved partition, so my table isn't the same, so i'm grub-fixin
coffeina has quit [Quit: Wychodzi]
<iajrz>
argh. I don't do "windows after linux" gigs because of that
camilasan has quit [Remote host closed the connection]
<iajrz>
good luck with that, I don't know how to do it... because I've always avoided it
zoee has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
Hanmac has quit [Ping timeout: 244 seconds]
<Kamuela>
iajrz, basically i install grub to the linux root /, and tell windows to make that partition active
camilasan has joined #ruby
<Kamuela>
it's not extremely complex, i just screwed something up somewhere
gr33n7007h has joined #ruby
sambao21 has joined #ruby
kcombs has joined #ruby
GoodTimes has quit []
asteros has joined #ruby
Apane has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckinni has joined #ruby
plotter has quit [Read error: Connection reset by peer]
<shevy>
hehe
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
camilasan has quit [Ping timeout: 252 seconds]
<platzhirsch>
Tricky, how do I know if a URI is already encoded? Because running URI.encode twice results in a different URI. Just run URI.decode before URI.encode?
myappleguy has joined #ruby
dnyy_ has joined #ruby
kaldrenon has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rrichardsr3 has quit [Quit: -- I'm out --]
tannerburson has joined #ruby
<platzhirsch>
nevermind, I don't need to encode it, this is the task of the Http library
kaldrenon has joined #ruby
mercwithamouth has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
<shevy>
how could I "alias" (rather, call) from a class method to an instance method?
blahwoop has quit []
jbpros has quit [Quit: jbpros]
jerius has joined #ruby
scarolan has joined #ruby
<PPH>
there's an better way temporarily "clone" an array thant that? the_array.map{|i|i}.each{ |items| do_something_unkind_to_the_initial_array }
jerius has quit [Client Quit]
kaldrenon has quit [Ping timeout: 265 seconds]
tharindu has joined #ruby
mary5030 has joined #ruby
reset has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
<MrZYX>
.dup
asteros has quit [Quit: asteros]
<MrZYX>
note that both are shallow copies
danshultz has quit [Remote host closed the connection]
shterrett has joined #ruby
<shevy>
hmm... calling a class method from within an instance method is trivial... perhaps the opposite way is not possible, in a module
<coldmethod>
PPH: why not this: old = [1], new = old[0..-1]
<coldmethod>
?
danshultz has joined #ruby
larissa has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
<MrZYX>
coldmethod: that's too a shallow copy, so not different from .dup
<platzhirsch>
shevy: class Dummy; include Test; end.new().test
swarmy is now known as lovesmen
<platzhirsch>
not very fine though :P
<PPH>
MrZYX: what do u mean by shallow?
Fire-Dragon-DoL has joined #ruby
thesheff17 has quit [Ping timeout: 272 seconds]
<MrZYX>
they array object is copied, the contained objects aren't
<PPH>
coldmethod: well I'm trying to refactor to have less line of code
Tarential has quit [Excess Flood]
<shevy>
platzhirsch that requires me to include the Module? I want to retain the flexibility to call it standalone, without including the full namespace into a project
atrocitas has quit [Remote host closed the connection]
<MrZYX>
PPH: I'd probably do something like accounts_to_add = accounts.select {...}; accounts_to_add.each do ... end; accounts -= accounts_to_add for that portion
<shevy>
def __; eval 'self.class', caller_binding; end
<four33>
hehe pastie
aryaching has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
dorei has joined #ruby
srji has quit [Ping timeout: 264 seconds]
epichero has joined #ruby
shaunbaker has joined #ruby
shaunbaker has quit [Client Quit]
interactionjaxsn has joined #ruby
<MrZYX>
PPH: actually you probably just could plan.accounts += accounts_to_add
<shevy>
four33 come on man, learn ruby!
<four33>
im at work!!
<bahar>
some of us are :)
<four33>
I am going to! I ordered a book from amazon should have arrived today
<MrZYX>
PPH: or .concat if you care about number of created objects
<shevy>
four33 then learn at home in your free time!
<shevy>
well
<shevy>
a book can only get you started...
<four33>
i'm going to!
<shevy>
you need to go active and write yourself
<PPH>
MrZYX: ok thx
<four33>
I know!
ua has quit [Quit: Leaving]
<four33>
what the hell are you talking about?!
<shevy>
don't be so passive!
<shevy>
publish gems!
zoee has quit [Quit: This computer has gone to sleep]
<four33>
I don't know how to write a single line yet really!
<shevy>
MrZYX are you using rubygems.org?
<shevy>
four33 come on... everyone knows how to write hello world...
<coldmethod>
PPH: shalow copies work fine if array doesn't refer to other objects.. dup is cheaper than clone and doesn't copy any singleton classes
<MrZYX>
shevy: in what way?
<four33>
puts "Hello, world"
<shevy>
MrZYX with a collection of your gems :>
<shevy>
four33 YES
<shevy>
four33 you are now past stage 0
<four33>
you want that in a gem?
platypine has joined #ruby
<platzhirsch>
lol, completely wrong, there is no comma after Hello
<shevy>
four33 no, that gem already exists
<four33>
yes there is
udon has quit [Quit: Leaving]
<MrZYX>
shevy: only got one so far and I'm unhappy with the API so not much to discover ;)
<shevy>
MrZYX ok
<shevy>
platzhirsch are you using rubygems.org?
<four33>
Hello, world. is syntactically correct.
<platzhirsch>
shevy: I am afraid yes
<shevy>
I mean, with your own gems
<shevy>
not searching for other gems
<platzhirsch>
No, I have a gem that I should publish soon
<shevy>
four33 yes, you passed stage 0... next stage would be to make use of conditional checks
<shevy>
if something
<shevy>
# hello world here
<shevy>
else
<shevy>
# end of the world is soon here
<shevy>
end
<platzhirsch>
I think the comma should be removed beforehand, but whatever
<shevy>
world war III will erupt over a comma
sn0wb1rd has quit [Quit: See ya]
interactionjaxsn has quit [Ping timeout: 252 seconds]
<Reach>
damn nazis!
<platzhirsch>
syntactically correct or not. No one speaks like that
<shevy>
right... they should have used the comma as symbol back then...
<shevy>
some people speak
<shevy>
some other people yodel
brtdv has joined #ruby
mark_locklear has quit [Read error: Operation timed out]
<four33>
haha you're arguing against syntax in a programming chat room
watermel0n has quit []
<shevy>
he has a point! syntax is very important
<lupine>
indeed, it can ruin a language
<lupine>
look at poor lisp ;)
<Reach>
t.t
<lupine>
</troll> etc
<shevy>
In perl you must not forget ;
<shevy>
I forgot a ; about every tenth time I saved a perl file
<platzhirsch>
Finally, my accuracy metric does what it should do. Sending HTTP requests to URLs and looking if the expected MIME type complies with the actual MIME type and if it's wrong they get Score 0.0 haha
<shevy>
that was such an annoying error because it wa so useless...
petey has quit [Remote host closed the connection]
<mary5030>
and the previous link is a link to my view from a partial
<Radar>
mary5030: #rubyonrails
platzhirsch has quit [Ping timeout: 246 seconds]
vlad_sta_ has quit [Remote host closed the connection]
myappleguy has quit [Ping timeout: 246 seconds]
VTLob has quit [Quit: VTLob]
Guest86407 is now known as fluffheadsr
<mary5030>
yes i find this place very helpful, and think some of the smarter dudes are here
lmadrigal has joined #ruby
<mary5030>
but will check rails out soon
DanBoy has joined #ruby
<Kamuela>
haha mary5030, Radar is the rails maaastaaa, he'll help you out
drag00n has quit [Ping timeout: 246 seconds]
<Kamuela>
he's calling you to his channel :)
cek has joined #ruby
<DanBoy>
hello everyone
brtdv has quit []
mikepack has quit [Remote host closed the connection]
dnyy has quit [Read error: Connection reset by peer]
danman has quit [Quit: danman]
<shevy>
mary5030 yeah but ruby knowledge. the folks here stink when it comes to rails and javascript
jrhorn424 is now known as zz_jrhorn424
<mary5030>
i am somehow not able to join could be connection
<mary5030>
or not sure
cek has quit [Client Quit]
<volty>
you have to register
<DanBoy>
in #rubyonrails
<DanBoy>
to talk you gotta regis,...
<DanBoy>
what he said :P
<mary5030>
Radar i hear you are a rails master mind taking a look at my stuff
<Radar>
mary5030: Please ask in #RubyOnRails.
maletor has joined #ruby
<Radar>
mary5030: I am personally too busy to look at your app right now but there are other people in that channel that can help you.
<Radar>
Register your name.
<Radar>
./msg nickserv help register
<Radar>
Without the dot
yfeldblu_ has quit [Remote host closed the connection]
mikepack has joined #ruby
<Kamuela>
wish me luck with this cup of buntu
<volty>
/msg nickserv help register
momomomomo has quit [Quit: momomomomo]
<Kamuela>
away we go!
brtdv has joined #ruby
<volty>
(you need just a space in front)
Kamuela has quit [Quit: Leaving]
duggiefresh has quit [Remote host closed the connection]
randomnick_ has quit [Read error: Connection reset by peer]
elux has quit [Quit: Bye!]
Liothen has joined #ruby
<DanBoy>
just a double //
duggiefresh has joined #ruby
<DanBoy>
/blam hello
<volty>
/hello
osvico has joined #ruby
<volty>
//msg
<mary5030>
sweet thanks
four33 has quit [Remote host closed the connection]
<volty>
sweet mary goes on rails
olivier_bK has quit [Ping timeout: 252 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
asteros has joined #ruby
<shevy>
it's a guy
yfeldblu_ has joined #ruby
<DanBoy>
lol
<mary5030>
i am a girl shevy but that shouldnt change anything
<volty>
for small xml files: Builder or Nokogiri::XML::Builder ?
asteros has quit [Client Quit]
<shevy>
mary5030 volty will be nicer now
<volty>
ahahah
<talntid>
oh she's lost
platzhirsch1 has left #ruby [#ruby]
<talntid>
#kitchen!
rezzack has quit [Quit: Leaving.]
<volty>
that's not true -- i'm bad only when I «smell» kinda frustrated souls :)
<shevy>
I am frustrated
dubsteph has quit [Read error: Connection reset by peer]
<shevy>
I am procrastinating
sergicles has quit [Quit: sergicles]
<shevy>
I should continue porting an old module to a new API but I am so lazy :(
<volty>
i do not believe but, anyway: you do not spread it on others
duggiefresh has quit [Ping timeout: 272 seconds]
srji has quit [Ping timeout: 260 seconds]
rezzack has joined #ruby
dubsteph has joined #ruby
<volty>
so Builder or Nokogiri::XML::Builder ? anyone here used/tried both?
aspiers has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
<volty>
any count | report | trace on how many 'girls' use ruby ?
<DanBoy>
i've used builder one time
kaspergrubbe has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rezzack has quit [Ping timeout: 246 seconds]
MrZYX is now known as MrZYX|off
graydot has quit [Quit: graydot]
<volty>
ok, i'll go with nokogiri since i use it for parsing and since i have simple xmls to generate (for now) thx DanBoy: you are extremelly useful :)
rezzack has joined #ruby
<DanBoy>
lol ya
<volty>
no RubyGirls conferences around ?
<DanBoy>
my one liner comment with no info given :P
<DanBoy>
sorry
<DanBoy>
i was gunna say
<DanBoy>
its pretty easy to use
<DanBoy>
pretty straight forward
mary5030 has quit [Remote host closed the connection]
jibi has joined #ruby
mary5030 has joined #ruby
<volty>
i'll try both but first nokogiri, thx
kaspergrubbe has quit [Ping timeout: 252 seconds]
tharindu has joined #ruby
jrhe_ has joined #ruby
jrhe has quit [Read error: Connection reset by peer]
jrhe_ is now known as jrhe
mlpinit has quit [Quit: Leaving...]
awgl has joined #ruby
mrsolo has joined #ruby
kevind_ has joined #ruby
brtdv has quit []
<volty>
btw: for your info and future choice: i have to deal with rss stuff and found «rss» gem to be a nightmare, «rss-simple» a simple state of the art piece of simplicity (get the things done!) for parsing though can not generate (and statet that never will)
<volty>
stated
mary5030 has quit [Ping timeout: 246 seconds]
kaspergrubbe has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
<sam113101>
I like unity's concept, I just think it's poorly implemented right now
mikecmpbll has joined #ruby
<sam113101>
(compiz plugin, bloated)
<Kamuela>
sam113101, i guess it is my opinion. in much the same way i prefer the average woman's face to a horse's ass
mengu has quit [Remote host closed the connection]
<volty>
i prefer many desktops & activities to tiling
<jb41>
only tilling window managers
leonidlm has quit [Ping timeout: 260 seconds]
<Kamuela>
although i will stop there and just agree with anything you've said. i've gotten into far too many arguments with people saying that purple and orange is beautiful and unity is perfect etc
dbck has quit [Client Quit]
<volty>
kde tiles pretty well but i tile just the consoles and my ruby editor // everything else is too big to be tiled
awgl has joined #ruby
mixel has quit [Quit: mixel]
<jb41>
:)
<Kamuela>
volty, i'd probably like KDE if i weren't keen on gtk being primarily how things worked
DonRichie has quit [Quit: Verlassend]
MrZYX|off is now known as MrZYX
drumsrgr_ has quit [Remote host closed the connection]
<DanBoy>
anyone ever tried awesome wm
kevind_ has quit [Quit: kevind_]
tannerburson has quit [Quit: tannerburson]
breakingthings has quit []
<musty>
Yep.
<DanBoy>
how did it go?
macmartine has joined #ruby
<DanBoy>
im using fluxbox now but i've been interested in switching
<awgl>
DanBoy - Yes. Decent, but I prefer OpenBox.
hogeo has quit [Ping timeout: 248 seconds]
<musty>
It went in a manner unrelated to ruby.
<DanBoy>
they claim you can use it without a mouse
<DanBoy>
with hot keys and what not
sn0wb1rd has quit [Quit: See ya]
yfeldblu_ has quit [Remote host closed the connection]
Voodoofish4301 has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
<volty>
i'm a mouse hater and I wrote plenty of scripts to avoid using mouse
yfeldblum has joined #ruby
nowthatsamatt has joined #ruby
<awgl>
There's always RatPoison for taht
Voodoofish4302 has joined #ruby
sn0wb1rd has joined #ruby
Tarential has quit [Excess Flood]
Tarential has joined #ruby
joschi has quit [Read error: Operation timed out]
joschi has joined #ruby
<DanBoy>
im just addicted to the swiping on the mac
<volty>
that's what I wanted: going to install and try awesome wm
srji has quit [Ping timeout: 264 seconds]
sam113101 has quit [Quit: WeeChat 0.4.3-dev]
jamesaanderson has joined #ruby
srji has joined #ruby
<DanBoy>
you can use lua with it
hiall has quit [Quit: hiall]
Voodoofish430 has quit [Ping timeout: 265 seconds]
<volty>
yes, I saw the introductory page, thx
<Kamuela>
brb
Kamuela has quit [Quit: Leaving]
maletor has quit [Quit: Computer has gone to sleep.]
sam113101 has joined #ruby
kirun has quit [Quit: Client exiting]
Voodoofish4301 has quit [Ping timeout: 272 seconds]
Apane has quit [Ping timeout: 260 seconds]
ner0x has joined #ruby
awgl has quit [Quit: Leaving.]
Voodoofish430 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
tvw has quit []
pothibo has joined #ruby
tvw has joined #ruby
<shevy>
volty you are worse than a cat
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercwithamouth has quit [Ping timeout: 260 seconds]
earthquake has quit [Quit: earthquake]
surrealanalysis has joined #ruby
<pothibo>
I'm usually interfacing with rbenv to set all the environment. pacman came with 2.0.0 so I didn't feel the need to install rbenv. However, gem tries to install themselves to /usr/lib/ruby/gems/2.0.0 and I want to change that to $HOME/.gem/ruby/2.0.0 GEM_PATH and GEM_HOME aren't set... where is it ?
lmadrigal has quit [Quit: Computer has gone to sleep.]
Voodoofish4302 has quit [Ping timeout: 260 seconds]
lupine has quit [Quit: If you see this, my dogfood was poisoned]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
kevinykchan has joined #ruby
<heftig>
pothibo: gem or bundler?
<pothibo>
well, both.
<heftig>
gem alone should install into ~/.gem already
<heftig>
for bundler you need to set GEM_HOME
<pothibo>
heftig: damn, you are right
<pothibo>
I had the clue right in front of my face and I couldn't figure it out. :( Sorry for bothering you
einarj has joined #ruby
yfeldblu_ has joined #ruby
mikepack has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
Guest4512 has quit [Read error: Connection reset by peer]
Mars has joined #ruby
bradsmith has quit [Remote host closed the connection]
filipe_ has quit [Remote host closed the connection]
Voodoofish4301 has joined #ruby
bradsmith has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
macmartine has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
wildroman2 has joined #ruby
srji has quit [Ping timeout: 264 seconds]
mojjojo has joined #ruby
<volty>
I install gems with: sudo `which gem` install .... since there's a mess with rights etc // I know that it is not the right way but i'm going to reinstall everything soon
Voodoofish430 has quit [Ping timeout: 264 seconds]
<volty>
(with rbenv )
<pothibo>
volty: wat?
yfeldblum has quit [Ping timeout: 272 seconds]
Bry8Star{T2 has quit [Excess Flood]
cpruitt has quit [Quit: cpruitt]
petey has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 260 seconds]
<volty>
i need them site-wide and I probably didn't setup everything properly
<shevy>
hmm so...
Bry8Star{T2 has joined #ruby
<shevy>
how do you guys solve the following
<shevy>
I have a large project, and I keep a README that lists all its dependencies
<shevy>
now I write a .gemspec, but I want to reference to that file, I guess
zz_michael_mbp is now known as michael_mbp
<shevy>
I noticed that you can get the dependencies of a gem with .dependencies