locriani has quit [Remote host closed the connection]
breakingthings has joined #ruby
yeboot has joined #ruby
hogeo has joined #ruby
<yeboot>
Hey I was just wondering where I can find documentation on embedding ruby into C programs, I'm hoping to use it as a configuration file system and end-scripting
postmodern has joined #ruby
mmitchell has quit [Remote host closed the connection]
xoxo has quit [Client Quit]
xoxo has joined #ruby
hamakn has joined #ruby
dmiller has joined #ruby
<waxjar>
yeboot, i think that's what mruby is
nfk has quit [Quit: yawn]
mootpointer has joined #ruby
jamesfung14 has joined #ruby
breakingthings has quit [Client Quit]
uris has joined #ruby
<yeboot>
I was hoping for documentation on <ruby.h> and the API
huoxito has joined #ruby
<yeboot>
although mruby looks nice, I'll bookmark it
tylersmith has quit [Quit: tylersmith]
zeade has quit [Quit: Leaving.]
mootpointer has quit [Read error: No route to host]
jduan1981 has quit [Ping timeout: 264 seconds]
twoism has quit [Remote host closed the connection]
slainer68 has joined #ruby
cyong has joined #ruby
rickruby has joined #ruby
rakl has joined #ruby
mootpointer has joined #ruby
Kricir has joined #ruby
yshh has quit [Remote host closed the connection]
rsahae has quit [Quit: rsahae]
tds has quit [Quit: tds]
<Kricir>
can someone answer what I assume to be a simple question... %w(bootstrap responsive).each do |file| stylesheets/bootstrap "#{basedir}/ this line is giving me an error on what I believe to be nested directories?
headius has joined #ruby
<waxjar>
you most likely get an error there because that's not valid Ruby :)
wesside has quit [Quit: Computer has gone to sleep.]
jamesaxl has quit [Ping timeout: 245 seconds]
failshell has joined #ruby
<Kricir>
well I didn't copy the entire line...
rsahae has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
<Kricir>
%w(bootstrap responsive).each do |file| stylesheets/bootstrap "#{basedir}/stylesheets/bootstrap/#{file}.scss", :to => "#{file}.scss"
<Kricir>
end
failshell has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
browndawg has quit [Ping timeout: 248 seconds]
girija has quit [Ping timeout: 245 seconds]
AgentWillyWonka has joined #ruby
gyre008 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
_veer has quit [Ping timeout: 245 seconds]
Macaveli has quit [Read error: Connection reset by peer]
icecandy has quit [Remote host closed the connection]
eka has joined #ruby
Zoup has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
icecandy has joined #ruby
browndawg has joined #ruby
<Zoup>
i need to pass a varilable and use it as method name, like class.method where method is a variable, any ideas? how can i declare that method is a varilable?
kil0byte has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
<sebastianb>
Zoup: maybe use send method?
nomenkun has joined #ruby
<sebastianb>
class.send(your_variable) is equal to class.your_variable
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
<Zoup>
sebastianb: perfect, thanks
rakl has joined #ruby
<sebastianb>
:)
az7ar has quit [Remote host closed the connection]
kil0byte_ has quit [Ping timeout: 256 seconds]
icecandy has quit [Ping timeout: 264 seconds]
ph^ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
az7ar has joined #ruby
greenarrow has quit [Ping timeout: 256 seconds]
Spooner has joined #ruby
kil0byte_ has joined #ruby
filipe has quit [Ping timeout: 245 seconds]
LennyLinux has joined #ruby
new299 has quit [Quit: leaving]
Zai00 has quit [Read error: Connection reset by peer]
_veer has quit [Ping timeout: 245 seconds]
ExxKA has joined #ruby
freerobby has joined #ruby
ttt has joined #ruby
greenarrow has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
sumark has quit [Ping timeout: 260 seconds]
az7ar has quit [Remote host closed the connection]
sumark has joined #ruby
v0yager has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 260 seconds]
ttt has quit [Ping timeout: 276 seconds]
v0yager has joined #ruby
echevemaster has quit [Read error: Operation timed out]
girija has joined #ruby
Zai00 has joined #ruby
IPGlider has quit [Ping timeout: 256 seconds]
tms has quit [Quit: Konversation terminated!]
bluOxigen has quit [Ping timeout: 248 seconds]
_veer has quit [Ping timeout: 245 seconds]
`p has quit [Ping timeout: 256 seconds]
Kovensky has quit [Ping timeout: 256 seconds]
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
blandflakes has quit [Ping timeout: 256 seconds]
az7ar has joined #ruby
miso1337 has quit [Quit: afk]
filipe has joined #ruby
Kovensky has joined #ruby
`p has joined #ruby
blandflakes has joined #ruby
bluOxigen has joined #ruby
_veer has quit [Ping timeout: 245 seconds]
tms has joined #ruby
insulator has joined #ruby
kil0byte has joined #ruby
angusiguess has joined #ruby
beiter has joined #ruby
kil0byte_ has quit [Ping timeout: 245 seconds]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
clocKwize has joined #ruby
_veer has joined #ruby
beiter has quit [Quit: beiter]
tonini has quit [Ping timeout: 248 seconds]
blueOxigen has quit [Ping timeout: 256 seconds]
thebastl has quit [Remote host closed the connection]
PHPanos has joined #ruby
_veer has quit [Ping timeout: 245 seconds]
gabrielrotbart has quit [Remote host closed the connection]
ehellman has quit [Quit: ehellman]
MrZYX|off is now known as MrZYX
bluOxigen has joined #ruby
freerobby has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
hamed_r has quit [Quit: Leaving]
unflores has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
jlast has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
_veer has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
_veer has joined #ruby
vlad_sta_ has joined #ruby
aaronmcadam has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
Michae___ has joined #ruby
D4T has joined #ruby
persand has quit [Quit: persand]
vlad_starkov has quit [Ping timeout: 256 seconds]
yshh has quit [Remote host closed the connection]
ferdev has quit [Ping timeout: 252 seconds]
_veer has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
_veer has joined #ruby
mneorr has quit [Remote host closed the connection]
__alpaca has joined #ruby
blueOxigen has quit [Ping timeout: 246 seconds]
brennanMKE has joined #ruby
tundrax has quit [Remote host closed the connection]
alanp_ has joined #ruby
d_roge has quit [Ping timeout: 245 seconds]
ferdev has joined #ruby
tvw has quit [Ping timeout: 276 seconds]
jaimef has quit [Ping timeout: 260 seconds]
alanp has quit [Ping timeout: 260 seconds]
Norrin has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
bricker has quit [Ping timeout: 255 seconds]
_veer has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
SDr has quit [Read error: Connection reset by peer]
ShapeShifter499 has quit [Ping timeout: 264 seconds]
SDr has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
Norrin has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad.]
greenarrow has joined #ruby
thomasfedb has quit [Ping timeout: 252 seconds]
emergion has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
jaimef has joined #ruby
lewix has quit [Read error: Connection reset by peer]
lewix has joined #ruby
_veer has quit [Ping timeout: 245 seconds]
waxjar has quit [Ping timeout: 264 seconds]
forlin has joined #ruby
ttt has joined #ruby
gaahrdner has joined #ruby
az7ar has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Read error: Operation timed out]
freerobby has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Ping timeout: 245 seconds]
Shrink has joined #ruby
blueOxigen has quit [Ping timeout: 245 seconds]
mark_locklear has joined #ruby
dhruvasagar has joined #ruby
blueOxigen has joined #ruby
__alpaca_ has quit [Remote host closed the connection]
tonini has quit [Ping timeout: 248 seconds]
krz has quit [Ping timeout: 272 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
freerobby has quit [Ping timeout: 264 seconds]
sayan has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
__alpaca has joined #ruby
snearch has quit [Quit: Verlassend]
vlad_starkov has quit [Remote host closed the connection]
ph^ has quit [Remote host closed the connection]
jlast has joined #ruby
AlbireoX has joined #ruby
AlbireoX has quit [Remote host closed the connection]
Neomex has joined #ruby
AlbireoX has joined #ruby
Neomex has quit [Client Quit]
bhaarat has quit [Quit: bhaarat]
ph^ has joined #ruby
Neomex has joined #ruby
mercwithamouth has joined #ruby
jnoob22 has quit [Remote host closed the connection]
m8 has joined #ruby
bluOxigen has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
jnoob22 has joined #ruby
niceguyjames has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
blueOxigen has joined #ruby
jnoob22_ has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
jnoob22 has quit [Read error: Connection reset by peer]
eka has joined #ruby
kobain has joined #ruby
_veer has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 272 seconds]
_veer has joined #ruby
felipebalbi has left #ruby [#ruby]
Neomex has quit [Quit: Neomex]
bhaarat has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
_veer has quit [Ping timeout: 245 seconds]
tonini has joined #ruby
huoxito has joined #ruby
niklasb has joined #ruby
a_a_g has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
mikecmpbll has joined #ruby
jonathanwallace has joined #ruby
fermion has joined #ruby
whitedawg has quit [Quit: Leaving.]
jeremy_c_ has joined #ruby
Neomex has joined #ruby
<jeremy_c_>
Anyone know of a ruby code formatter that will reformat line content? For example: person =people [ 20] ---- to person = people[20], not just indentation?
icecandy has quit [Remote host closed the connection]
<Spooner>
I'd just teach people how to write instead ;) (and yeah, you have legacy code you have to work on and it is written by a drunken spider :D).
<ddfreyne>
Oops!
<jeremy_c_>
Spooner: I believe I have tried that already and it just indents lines properly, does not try to reformat the given line.
<ddfreyne>
Spooner: That one is unlikely to work with Ruby 1.9/2.0
<Spooner>
Ah, fair enough.
<jeremy_c_>
Spooner: I am working on dictating portions of code with voice, and sometimes spaces come out due to the natural language processing of speech dictation.
pcarrier has quit [Ping timeout: 255 seconds]
<ddfreyne>
I had the idea of writing a ruby formatter a while back, but it’s unlikely that I’ll have time for it
foofoobar has quit [Ping timeout: 245 seconds]
bean__ has joined #ruby
LennyLinux has quit [Remote host closed the connection]
<jeremy_c_>
Spooner: ddfreyne: For future reference, https://github.com/erniebrodeur/ruby-beautify is the best project I found, far better than the one on arachnoid, still doesn't handle reformatting the content of a line though. There were several instances that the one on arachnoid wouldn't indent properly but the one on github does no problems.
NiteRain has quit [Ping timeout: 245 seconds]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
bean__ has quit [Ping timeout: 256 seconds]
<Spooner>
Thing is that formatting as you require is non-trivial. You'd pretty much have to parse it to AST and write it out again.
invisime has joined #ruby
LennyLinux has joined #ruby
<Spooner>
Though, I suppose, you could write a huge number of special cases with regexps.
<jeremy_c_>
Spooner: yeah, that's what I was hoping already existed. Simple regex's fix simple problems but when you add all the fringe cases, it does get very complex to do that way. AST would be the only real way to go.
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
jonathanwallace has quit [Ping timeout: 268 seconds]
bean__ has joined #ruby
__alpaca has quit [Remote host closed the connection]
freeayu has joined #ruby
<jeremy_c_>
I can write quite a bit now via speech dictation, some things much faster than with the keyboard, other things much slower. Overall, it is still slower, but speed isn't necessarily my goal. Just to use my hands less but still be very productive. I've taken the idea that my voice can assist my hands, not replace them.
LaPetiteFromage has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
LennyLinux has quit [Ping timeout: 272 seconds]
_veer has quit [Ping timeout: 245 seconds]
<Spooner>
I would imagine voice recog does very badly with all the symbols in code.
<Spooner>
Fine for comments, I guess.
<jeremy_c_>
Spooner: it's actually very easy.
_veer has joined #ruby
mljsimone has joined #ruby
<jeremy_c_>
Spooner: in many cases, faster than I can do it. A few macros solves all of those problems, for example, I speak "self dot under get first name" and it inserts "self.get_last_name"... Instead of under, I can give the command camel, GetLastName. or constant GET_LAST_NAME
Zoup has quit [Quit: Lost terminal]
<jeremy_c_>
and you'd be amazed at how fast you can speak and it understand you. You can speed through "self dot get first name"
jlebrech has quit [Ping timeout: 245 seconds]
bluenemo has quit [Quit: Verlassend]
<csmrfx>
What is glowing green and makes sound like "escescescescesc"?
jlebrech has joined #ruby
<jeremy_c_>
Spooner: there are, for sure, things that do cause problems such as weird abbreviations, or libraries that use a lot of non-english words. For that, you can add to the language grammar if it is a library you use frequently, or revert to keying in those names with the keyboard when needed.
splittingred has joined #ruby
<csmrfx>
A: a vimmer using speech recognition
<ariedler>
stupid question: how do you reference the class you are currently running in :)
<csmrfx>
classes are not running
<ariedler>
(aka your in a method, how do I reference the class of that method)
mavcunha has quit [Quit: Computer has gone to sleep.]
jprovazn has quit [Quit: Leaving]
psyprus has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
iyzsong has joined #ruby
generali_ has joined #ruby
momomomomo has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
djwonk has quit [Quit: djwonk]
smckee has joined #ruby
zzHiyori has joined #ruby
shevy has quit [Read error: Operation timed out]
interactionjaxsn has joined #ruby
smckee has quit [Client Quit]
kil0byte has quit [Ping timeout: 246 seconds]
zzHiyori has left #ruby ["Leaving"]
tedstriker has joined #ruby
hiyakashi has joined #ruby
iMadper has joined #ruby
luckyruby has quit [Remote host closed the connection]
tonini has joined #ruby
wolcanus has quit [Remote host closed the connection]
kil0byte has joined #ruby
arturaz has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
banisterfiend has joined #ruby
Banistergalaxy has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
Uranio has joined #ruby
jbpros has joined #ruby
miso1337 has joined #ruby
wolcanus has joined #ruby
Davey has quit [Ping timeout: 256 seconds]
tonini has quit [Ping timeout: 248 seconds]
nari_ has quit [Ping timeout: 240 seconds]
akells` has joined #ruby
osvico has quit [Ping timeout: 264 seconds]
insulator has quit [Ping timeout: 276 seconds]
kfoo_ has quit [Ping timeout: 245 seconds]
bhaarat has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
JMcAfreak has joined #ruby
JMcAfreak has quit [Changing host]
JMcAfreak has joined #ruby
Davey has joined #ruby
banister_ has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep.]
jbpros has quit [Read error: Connection reset by peer]
beasty has quit [Quit: Lost terminal]
dmiller has joined #ruby
givello has joined #ruby
freeayu has quit [Remote host closed the connection]
maxmanders has quit [Read error: Connection reset by peer]
xtristan has joined #ruby
iyzsong has quit [Quit: poweroff]
shevy has joined #ruby
xtristan has quit [Read error: Connection reset by peer]
dmiller has quit [Ping timeout: 245 seconds]
Norrin has quit [Ping timeout: 264 seconds]
<givello>
Hey, I'm kind of a beginner in ruby and I was wondering if it is possible to get a variable out of a closure? Something like: blabla.each do |value| val=value end; val.something (I hope this question makes any sense at all)
<jani>
define val outside the block ?
<banister_>
givello: set it to nil outside the block first
maxmanders has joined #ruby
wesside has joined #ruby
freerobby has quit [Quit: Leaving.]
darkapex has quit [Ping timeout: 245 seconds]
thomasfedb has quit [Ping timeout: 245 seconds]
d_roge has quit [Ping timeout: 256 seconds]
thomasfedb has joined #ruby
aganov has quit [Remote host closed the connection]
ShapeShifter499 has quit [Quit: Something has gone terribly wrong!... Bnc/Znc services restarting in 4...3...2...1...]
<givello>
jani, banister_: I actually tried that but I think I found the mistake, it wasn't yielding anything. Sorry for bothering you!
<horse>
i'm trying to install graylog2 and this is the last (of many) hurdle
momomomomo has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<wald0>
im decided to learn ruby because I want much more powerful possibilities (brainstorming to develop some big extremely modular and dynamic application), but im not decided between two books to read: "the ruby programming language (yukihiro) - 2008" or "programming ruby, third edition updated 1.9.3 - 2010"
<wald0>
anybody that has read/knows both can give me a suggestion ?
_veer has quit [Ping timeout: 272 seconds]
freerobby has quit [Ping timeout: 272 seconds]
justsee has quit [Ping timeout: 245 seconds]
monkegji_ has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
filipe has quit [Ping timeout: 252 seconds]
<fryguy>
wald0: read the second book (the pickaxe one)
dmiller has quit [Remote host closed the connection]
<wald0>
fryguy: thx, i was checking it and looks really good, I was wondering "how much good" should be the official/author's one
Hanmac1 has joined #ruby
MarioEIU has joined #ruby
<Spooner>
horse, Try putting this in the gemfile: source 'https://rubygems.org' # if that doesn't help, then rubygems is probably foobar.
MarioEIU has left #ruby [#ruby]
djwonk has quit [Quit: djwonk]
Hanmac has quit [Ping timeout: 252 seconds]
buscon has quit [Remote host closed the connection]
<kpwz>
is there some straightforward way to ensure that a tempfile created with Tempfile sticks around beyond the lifespan of the ruby process that created it?
Nahra has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
<Spooner>
It isn't a tempfile then, is it?
<wuest>
kpwz, why are you using Tempfile if you don't want a tempfile?
<kpwz>
it's still a tempfile, I just want to be able to use it with another process.
_veer has quit [Ping timeout: 256 seconds]
<kpwz>
after which it can be discarded
<cr3>
how can I get the list of groups a user is member of?
nimor has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<horse>
Spooner: yeah i've already tried that. no joy
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
<kpwz>
I could create a bog standard file, but that requires all sorts of other stuff that I'd rather not waste time implementing, like ensuring I'm not colliding with other existing filenames
vlad_starkov has joined #ruby
<Spooner>
You could install the gems with "gem", but bundler also ensures that when the application runs it has access to the correct gems.
<horse>
i'm behind a firewall but i have my proxy set in the enviromnet. i wondering if there is anyway else it needs to be set when using "bundle install"
<horse>
anywhere*
<MrZYX>
cr3: `id -Gn #{username}`.split(' ')
wolcanus has quit [Remote host closed the connection]
tedstriker has joined #ruby
<cr3>
MrZYX: ugh :(
<shevy>
hehe
akashj87 has joined #ruby
<shevy>
well said :)
<MrZYX>
heh, you could write a parser for /etc/passwd if you want
<shevy>
cr3 did you look at the Etc module?
clocKwize has quit [Quit: clocKwize]
<cr3>
shevy: yeah, all I could find was Etc.group though, for the current user
momomomomo has quit [Ping timeout: 252 seconds]
<shevy>
hmm
pitzips has joined #ruby
<cr3>
shevy: setting effective gid and uid doesn't make a difference
djwonk has joined #ruby
<shevy>
hmmmmm
<MrZYX>
Etc looks horrible
monkegji_ has quit [Remote host closed the connection]
<cr3>
MrZYX: agreed
<shevy>
hehe
<wuest>
kpwz: You could have the creating process make /tmp/#$$-tempfilename, and that'd take care of collisions in most cases, assuming a short lifetime. You could hash the current time with $$ to increase resistance to such issues.
<MrZYX>
I mean you have to call another function to close it again? what are we? C?
Coolhand has joined #ruby
<wuest>
MrZYX: If you're using Etc? Yeah, basically :p
<horse>
spooner - does bundle install just download the gem and place it in a directory or does it do more then that? i have all the gems on another machine so could i just copy them across?
mosez has quit [Quit: Switching back to real life]
tonini has joined #ruby
kil0byte_ has joined #ruby
<shevy>
how about Etc.getgrnam("root")
Bracki has quit [Ping timeout: 240 seconds]
<shevy>
or Etc.getgrent
<Spooner>
bundle install only installs them in the normal location, but it does it all at once and ensures specific versions.
<Hanmac>
shevy: currently i add Mastery + ActorClass (that means that a) Mastery are only active for specific actorclasses and b) that actorclasses are change the mastery grow)
<shevy>
you mentioned a map editor the other day
<shevy>
that looked like a completely separate project
<shevy>
and it seemed as if whoever made it, spent a lot of time doing it too
<Hanmac>
yeah ... http://www.mapeditor.org/ , we will make our own editor but we use ther map format
jamie_ca_ has joined #ruby
Mattix has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
tk_ has quit [Quit: ばいばい]
Mattix has joined #ruby
jamie_ca_ has quit [Client Quit]
jamie_ca_ has joined #ruby
miso1337 has quit [Quit: afk]
monkegjinni has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
johchri has joined #ruby
mpereira has joined #ruby
dmiller_ has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Zolo has joined #ruby
_nitti has quit [Remote host closed the connection]
noop_ has quit [Read error: Connection reset by peer]
stoic_squirrel has quit [Quit: Computer has gone to sleep.]
mark_locklear has joined #ruby
brennanMKE has quit [Remote host closed the connection]
bluOxigen has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
bluOxigen has joined #ruby
jimg has joined #ruby
mattyh88 has joined #ruby
philcrissman has quit [Remote host closed the connection]
<mattyh88>
hey, i'm trying to install capifony with: gem install capifony but i'm getting a "error while executing gem … (type error) can't modify frozen object". What could this be? Thx.
mootpointer has quit [Quit: Computer has gone to sleep.]
krz has quit [Quit: krz]
zodiak has quit [Remote host closed the connection]
brotatos has quit [Quit: WeeChat 0.4.1-dev]
_veer has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
Asher has joined #ruby
geekbri has quit [Remote host closed the connection]
atmosx has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
d2dchat has joined #ruby
ferdev has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
brotatos has joined #ruby
jimg has quit [Ping timeout: 272 seconds]
sambao21 has quit [Client Quit]
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
<spike|spiegel>
bitcycle: from different threads?
tonini has joined #ruby
sepp2k has joined #ruby
mootpointer has joined #ruby
<cbkg11>
I try to install bzip2 and it seems to be installed as a gem, but I get following error message 126: The specified module could not be found. - C:/Ruby193/lib/ruby/gems/1.9.1/gems/bzip2-ruby-0.2.7/lib/bzip2_ext.so
<bitcycle>
spike|spiegel: nope, from the same script/thread. I've got two shell commands that I'd like to be running at the same time.
Dreamer3 has joined #ruby
<spike|spiegel>
too vauge
cgcardona has joined #ruby
<bitcycle>
spike|spiegel: So, I've got a sender and reciever, and a bug where one or both exits with non-zero exit status. I'd like to automate the execution.
jovy88 has quit [Read error: Connection reset by peer]
kfoo_ has joined #ruby
<spike|spiegel>
like umm a pipe?
jovy88 has joined #ruby
<spike|spiegel>
still vague
mercwithamouth has joined #ruby
MrPoT4tO has joined #ruby
mrsolo has joined #ruby
breakingthings has quit []
forrest has joined #ruby
MrPoT4tO has quit [Read error: Connection reset by peer]
backjlack has quit [Remote host closed the connection]
timkohrumel has joined #ruby
Kosmonavt has joined #ruby
alexwh has quit [Ping timeout: 252 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
blueOxigen has joined #ruby
Nautes has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 256 seconds]
billy_ran_away has quit [Read error: Operation timed out]
Davey has quit [Quit: Computer has gone to sleep.]
billy_ran_away has joined #ruby
clocKwize has joined #ruby
one-question has joined #ruby
<shevy>
mattyh88 looks like a bug in capifony
<mattyh88>
shevy: ah
<shevy>
you could extract the .gem
<shevy>
then enter the dir
<shevy>
and try to install
blueOxigen has quit [Ping timeout: 255 seconds]
Kosmonavt has left #ruby ["Leaving"]
<shevy>
but if a project has a bug like this, it's useless, the author is useless too. throw both away :P
Nautes has joined #ruby
<shevy>
to unpack, you could use: gem unpack *.gem
sambao21 has quit [Ping timeout: 276 seconds]
<one-question>
I've run into a serious confusion after using 2 years of ruby. Either the documentation of Hash#select is incorrect, or the way I understand it is. {a:6}.select { |x| x.last > 5 } throws an exception. Apparently, the 'x' is set to just the hash key - not to [key, value] as I would have expected.
aryasam_ has joined #ruby
bluOxigen has joined #ruby
clocKwize has quit [Client Quit]
sleetdrop has quit [Quit: Computer has gone to sleep.]
<shevy>
if it's just one line that is broken, you could use .dup on it, then you won't run into the frozen object problem
dallasm_ has joined #ruby
aryasam has quit [Read error: Connection reset by peer]
<shevy>
one-question, is .select not part of Enumerable instead?
<one-question>
shevy: no, apparently not.
<shevy>
but array has .select as well
bluOxigen has quit [Read error: Connection reset by peer]
<shevy>
and string has .select as well
<one-question>
shevy: so, this still works: {a:6}.find { |x| x.last > 5 }
workmad3 has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
danslo has joined #ruby
<shevy>
anyway
<shevy>
what is the intent of .last > 5
mfletcher has joined #ruby
freerobby has quit [Quit: Leaving.]
pskosinski has quit [Remote host closed the connection]
<shevy>
what is the .last there
sayan has quit [Quit: Leaving]
<one-question>
shevy: well, as I said, I would have expected 'x' to be [key, value]: so 'last' on arrays..
Xeago has quit [Remote host closed the connection]
<shevy>
h.select {|k,v| k > "a"} <-- aha, they are lazy
fizbanthefab is now known as wedgex
<one-question>
shevy: exactly, I read that. But given that ruby automatically matches tuples to arrays automatically, I thought my example should work too - hence the confusion.
hekin has quit [Quit: hekin]
<otters>
yeah Hash#select just changed to returning a Hash
<otters>
basically the equivalent of Hash[some_hash.select{...}]
<shevy>
you lost me man, I don't even know what a tuple is :(
<otters>
a tuple is (a,b)
<otters>
or (a,b,c)
<otters>
or (a,b,c,d)
<otters>
etc.
<otters>
ruby doesn't have tuples, it has heterogeneous lists
<shevy>
you are some wise cuddly otters here
<one-question>
shevy: (k, v) = [3, 4] works.
<shevy>
hmm and a homogeneous list is (a,a) ?
BizarreCake has quit [Remote host closed the connection]
nahiluhmot has quit [Remote host closed the connection]
<otters>
well, the general pattern in other languages is that a list is a homogenous collection of any size
<spike|spiegel>
we in type theory now/
<otters>
and a tuple is a heterogeneous collection of a fixed size
<otters>
but ruby has a tuple of any size
<otters>
or a heterogeneous list
<shevy>
one-question, but so would k, v = [3, 4]
<otters>
whichever you prefer to think of it as
<otters>
shevy: you'd need k, v = *[3, 4]
<otters>
* is the splat operator which performs mysterious magic
brennanMKE has joined #ruby
bigkevmcd has quit [Ping timeout: 240 seconds]
<otters>
you basically just put it in places you have an array and you want naked arguments
<one-question>
otters: I would still have intuitively expected ruby to match the 'x' in my predicate to |k, v| automatically :/ even if it returns a hash.
<otters>
some_method(*[1, 2, 3, 4]) is the same as some_method(1, 2, 3, 4) shevy
vipaca has quit [Quit: Leaving...]
yfeldblum has quit [Ping timeout: 245 seconds]
banister_ has quit [Remote host closed the connection]
<otters>
and def some_method(*args); args; end returns [1,2,3,4] for some_method(1,2,3,4)
<otters>
one-question: pardon?
stkowski has quit [Quit: stkowski]
ossareh has quit [Ping timeout: 252 seconds]
amacleod_ has joined #ruby
twoism_ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
r0bglees0n has joined #ruby
nobitanobi has joined #ruby
elaptics is now known as elaptics`away
twoism_ has quit [Remote host closed the connection]
ukd1_ has joined #ruby
cantonic has joined #ruby
twoism_ has joined #ruby
nahiluhmot has joined #ruby
mfletcher_ has joined #ruby
<one-question>
otters: well, Hash#select returning a hash doesn't preclude pattern matching in the predicate.
<shevy>
the one in 2009 or some such was not as nice
cbkg11 has quit [Ping timeout: 245 seconds]
mootpointer has joined #ruby
danslo has quit [Quit: danslo]
<shevy>
it's a good book though
ritek has quit [Ping timeout: 272 seconds]
<shevy>
and with ruby's generic and often lacking documentation, it needs every help it can get :P
<enthrops>
it's more link a reference, only not as dry
blaxter_ has quit [Ping timeout: 264 seconds]
_Amaan_ has joined #ruby
<ericwood>
idk, ruby docs are great
<ericwood>
python docs annoyed me
ritek has joined #ruby
lewix has quit [Remote host closed the connection]
_Amaan has quit [Ping timeout: 252 seconds]
_Amaan_ is now known as _Amaan
<enthrops>
ericwood: ruby docs are great?!
<ericwood>
why are they not great?
yfeldblum has joined #ruby
<otters>
it must be fun to be zed shaw
<ericwood>
they're comprehensive and tell me what I need to know, often with good examples
<ericwood>
maybe y'all want more out of them
<shevy>
ericwood hmm back in 2004 the ruby docs were not very good, I think in 2013 it has improved quite a lot compared to 2004
akells` has joined #ruby
<peta_>
python docs were most times more helpful than thos of ruby
<enthrops>
ericwood: 1.9 had like complete modules without a word of documentation
<ericwood>
enthrops: maybe those were sections I didn't look at
<shevy>
what I like about the python docs is that you could read them like book
<enthrops>
ericwood: probably
<ericwood>
the python docs were mostly prose and really ahrd to scan
<shevy>
*like a book
<enthrops>
not even gonna mention rails
<ericwood>
I hated that part of the python docs
<ericwood>
like a lot
<shevy>
:)
<ericwood>
railsguides are wonderful
<ericwood>
but they aren't comprehensive
tvw has quit []
<ericwood>
lots of stuff that's poorly documented
<enthrops>
railsguides are all over the place
tomzx_mac has joined #ruby
<enthrops>
once you get past the basic stuff, you really want nicely documented api, and that's something rails devs are not into :)
<otters>
haha, yeah, rails is dead for sure
bean__ has quit [Quit: Computer has gone to sleep.]
<shevy>
someone should take the good parts of rails
<enthrops>
rails is awesome, but they really need to slow down a bit
<shevy>
and start a new webframework
<otters>
I think about 15 people have done that
<enthrops>
and then there will be stuff missing, and people will and then it will be a mess like rails
<ericwood>
sinatra is great for small things
<otters>
rails is the best mess though
<objectivemo>
enthrops: I know how you feel, gave up on docs and started reading the source, it's really fantastically documented
<enthrops>
objectivemo: takes time though
workmad3 has quit [Ping timeout: 246 seconds]
<objectivemo>
enthrops: That's the downside, especially since I am kinda new to ruby as well too
ossareh has joined #ruby
<ericwood>
lotsa source to read through :\
rubyHelpNeeded has joined #ruby
bigkevmcd has joined #ruby
hamakn_ has quit [Remote host closed the connection]
<shevy>
objectivemo what have you done before ruby?
<rubyHelpNeeded>
I need to know if active scaffold in rails works with ie 9.
davidcelis has quit [Excess Flood]
<rubyHelpNeeded>
I have an error where the page loads twice everytime
<shevy>
rubyHelpNeeded most rails experts are on #rubyonrails I think
<ericwood>
#rubyonrails is what you want
<objectivemo>
shevy: sadly the corporate software, .Net languages and Java, so I really suck at web programming and functional/scripting languages
<ericwood>
rubyHelpNeeded: but usually this is because you're not returning at the end of a view
davidcelis has joined #ruby
<shevy>
objectivemo there is more than one way to do it:)
mattbl has quit [Quit: Leaving]
<shevy>
but admittedly, java never interested me
<rubyHelpNeeded>
ericwood:thanks, I'll give that channel a try.
<objectivemo>
shevy: java is meh, C# is awesome, ruby is awesome too
<ericwood>
java upsets me
<ericwood>
it's a good tool for converting XML into stack traces, though
browndawg has quit [Quit: Leaving.]
<rubyHelpNeeded>
ericwood: and also see if I am returning after the end of a view
<shevy>
yeah, ruby is cool. I still need to use something else though one day... either it will be C ... or C# ... or perhaps Go, who knows
<objectivemo>
now that I use methods like map, each, inject, and the active support modules, i don't know how I can go back to any other language too
<objectivemo>
*though
<shevy>
oh god, does java still use XML?
<ericwood>
java <3 XML
<ericwood>
java devs, that is
davidcelis has quit [Excess Flood]
<objectivemo>
java can use JSON too
<objectivemo>
I don't think that is an issue
<ericwood>
of course
<shevy>
well that's an improve
davidcelis has joined #ruby
<objectivemo>
i'll tell you one thing though
<ericwood>
but the joke is that enterprise apps are all about large amounts of XML and java :P
<shevy>
:\
<objectivemo>
nothing in the Java world matches activerecord
<objectivemo>
ericwood: touche
<shevy>
the banks love java
<spike|spiegel>
activerecord sucks
<shevy>
cobol and java
nricciar has joined #ruby
khismeti_ has joined #ruby
<objectivemo>
better than any other ORM in Java
<spike|spiegel>
less code != better.
<shevy>
less code is often really better
<objectivemo>
shevy: They love .NET too, .Net is really good, I really like C#, problem is you are restricted to windows, the platform lets you down
<ericwood>
AR tries to be lots of things to lots of people, so of course it falls short on some things
<ericwood>
I like it, but sometimes there are serious caveats to using it
<objectivemo>
spike|spiegel that is only one way of looking into it
<objectivemo>
performance of NHibernate is atrocious
<spike|spiegel>
nothing beats AR when it comes to not performing
Hanmac has joined #ruby
mootpointer has quit [Ping timeout: 256 seconds]
<objectivemo>
spike|spiegel: What's the alternative for relational databases
<spike|spiegel>
the kidde apps people write don't notice it... start moving real stuff
danslo has joined #ruby
<spike|spiegel>
objectivemo: huh? RBMS is not what I'm bashing.. it's AR.
wargasm has joined #ruby
<spike|spiegel>
D*
Zolo has joined #ruby
<objectivemo>
I meant is their an alternative ORM for relational databases, without going into nosql and keystones as they are obviously faster
<objectivemo>
hope I am posing the question correctly
cgcardona has quit [Quit: cgcardona]
Hanmac1 has quit [Ping timeout: 276 seconds]
<ericwood>
datamapper is supposedly cool
<spike|spiegel>
'obviously faster' LOL
<spike|spiegel>
objectivemo: get real.
<spike|spiegel>
they are faster by lying to you. or only in certain workloads.
<ericwood>
apparently there is no such thing, and spike|spiegel hates all ORMs
<atmosx>
I thought sequel was the std (since it's still activelly developed)
<ericwood>
sequel?
forrest has quit [Quit: Leaving]
<ericwood>
wasn't that an app for viewing MySQL DBs?
<spike|spiegel>
+1 on sequel, the guy does a wonderful job.
<spike|spiegel>
unlike the rails-core
<spike|spiegel>
AR vs sequel ... I pick sequel any given day.
nobitanobi has quit [Ping timeout: 272 seconds]
<atmosx>
ericwood: it's an abstraction layer like datamapper and AR.
pskosinski has joined #ruby
<ericwood>
ah
<shevy>
anyone knows offhand what is $~ ?
sambao21 has joined #ruby
<atmosx>
ericwood: but unlike DM it's activelly developed, I think DM dev stopped DM because he saw no point in continuing since there was sequel around.
<shevy>
res << [c, $~.offset(0)[0]]
rdark has joined #ruby
<shevy>
apparently whatever $~ is, it responds to .offset
<ericwood>
cool, I'll keep that in mind for future projects
<LennyLinux>
shevy: last pattern matching returned value
sambao21 has quit [Client Quit]
<LennyLinux>
a MatchData value
<LennyLinux>
sorry, object
<shevy>
hmm
nwertman_ has joined #ruby
wgosling has joined #ruby
wgosling has left #ruby [#ruby]
sayan has joined #ruby
<LennyLinux>
>> /\d\ =~ '42'; p $~
<eval-in>
LennyLinux => /tmp/execpad-169ba7a653c6/source-169ba7a653c6:2: unterminated regexp meets end of file ... (http://eval.in/18523)
rismoney has quit [Read error: Connection reset by peer]
<LennyLinux>
>> /\d\ =~ '42';
<eval-in>
LennyLinux => /tmp/execpad-1a784e10a040/source-1a784e10a040:2: unterminated regexp meets end of file ... (http://eval.in/18524)
nwertman has quit [Read error: Operation timed out]
dallasm_ has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
cantonic has joined #ruby
danslo has quit [Quit: danslo]
divout has quit [Remote host closed the connection]
dallasm_ has joined #ruby
Astral_ has joined #ruby
yacks has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
pcarrier has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
timkohrumel has quit [Remote host closed the connection]
reset has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
monkegjinni has quit [Remote host closed the connection]
dallasm_ has quit [Read error: Connection reset by peer]
dallasm_ has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
gyre007 has joined #ruby
yannis has joined #ruby
Michael__ has joined #ruby
insulator has joined #ruby
sambao21 has joined #ruby
gyre008 has quit [Ping timeout: 245 seconds]
_nitti has quit [Remote host closed the connection]
Zolo has quit [Remote host closed the connection]
Tricon has quit [Ping timeout: 245 seconds]
_nitti has joined #ruby
rdark has quit [Quit: leaving]
Astral_ has quit [Read error: Connection reset by peer]
bean__ has joined #ruby
Astral_ has joined #ruby
unflores has quit [Ping timeout: 272 seconds]
yalue has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
sambao21 has quit [Ping timeout: 256 seconds]
fantazo has joined #ruby
sailias1 has quit [Ping timeout: 246 seconds]
ebollens has quit [Quit: ebollens]
<Spooner>
shevy because if you do string.scan() { } - it enumerates. If you do string.scan() it generates an array. In this case, it will generate an array to pass to the map unless you to_enum it.
dmiller_ has joined #ruby
xardas has joined #ruby
dmiller_ has quit [Remote host closed the connection]
dmiller_ has joined #ruby
mercwithamouth has quit [Quit: leaving]
krawchyk_ has joined #ruby
markisonfire has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
krawchyk has quit [Ping timeout: 252 seconds]
mootpointer has joined #ruby
wagster has quit [Ping timeout: 252 seconds]
emptynine has joined #ruby
mootpointer has quit [Max SendQ exceeded]
mfletcher has quit [Remote host closed the connection]
bhaarat has quit [Quit: bhaarat]
mootpointer has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
xardas has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0.1/20130409194949]]
sailias has joined #ruby
pi3r has quit [Quit: Leaving]
danslo has joined #ruby
alex__c2022_ has joined #ruby
rsahae has joined #ruby
unflores has joined #ruby
alex__c2022 has quit [Ping timeout: 252 seconds]
alex__c2022_ is now known as alex__c2022
mneorr_ has quit [Remote host closed the connection]
brianpWins has joined #ruby
markisonfire has quit [Quit: markisonfire]
atmosx has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
timkohrumel has joined #ruby
kil0byte has joined #ruby
mattyh88 has quit [Quit: mattyh88]
Opettaja has quit [Ping timeout: 245 seconds]
Opettaja has joined #ruby
unflores has quit [Ping timeout: 272 seconds]
AlbireoX has quit [Remote host closed the connection]
xardas has joined #ruby
timkohrumel has left #ruby [#ruby]
graft has joined #ruby
<graft>
hey, how do i replace all the contents of a string with some other string?
<withnale>
list.group_by{|x| x[:type]}.select{|x| x.size > 1}.flatten is I think what I would need if I used group_by
<Spooner>
Gives exactly the same result as you requested.
<jblack>
I'm making sense on what I'm trying to do here, right? I'm trying to basically redefine a defualt argument to TCPSocket.open, so that I can bind to an interface.
carloslopes has quit [Remote host closed the connection]
ebollens has joined #ruby
<withnale>
doh. sorry. I reread what I wrote and realised thats what I wanted earlier. however, looking at the code I want to reuse some existing code which assumes the list is flat...
<withnale>
my mistake.
stillEPIK has joined #ruby
<Spooner>
I can only help you do what you ask for ;)
<withnale>
yeah. I know <blush>
fmcgeough has quit [Quit: fmcgeough]
EPIK has quit [Ping timeout: 252 seconds]
<withnale>
basically I'm trying to only keep duplicates in the list based on the :key
<Spooner>
Which list is flat? Tell us what you "really" want :P
icecandy_ has quit [Remote host closed the connection]
<Spooner>
Applying select/flatten as you suggest has no effect whatsoever.
davedev24 has quit [Remote host closed the connection]
<linduxed>
to me it makes no sense, since completed? isn't defined in item.rb
brunoro has joined #ruby
<aedorn>
banisterfiend: Enterprise Resource Planning. The idea is to get everyone on the same page, using the same tools, at the same location in order to have a means for management to get oversight over who is doing what. Really it's a stupid term to indicate company wide project management and to spend lots of money on a piece of software that nobody will use after a month.
huoxito has quit [Quit: Leaving]
dmiller_ has quit [Ping timeout: 258 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
mootpointer has joined #ruby
<banisterfiend>
linduxed: it doesnt have to be defined there, so long as it's defined on the Item class
<linduxed>
banisterfiend: well, as you can see on that gist, it isn't
<linduxed>
banisterfiend: at least i don't think it is, maybe it inherits that... somehow
luckyruby has joined #ruby
<banisterfiend>
linduxed: that's not true, it uses methods like "property", in this situation: property :completed, Boolean
davedev24 has joined #ruby
<banisterfiend>
linduxed: without knowing more baout that API, i would assume that a *boolean* property also defines a completed? method to go along with the ordinary property
zz_skinny_much is now known as skinny_much
<banisterfiend>
linduxed: and the way you can confirm that is to look at the defintion of Item.property
<linduxed>
banisterfiend: yeah, that's probably it, i'll have to have a closer look at what DataMapper generates with the "property" keyword
alex__c2022 has joined #ruby
Michae___ has quit [Remote host closed the connection]
<banisterfiend>
linduxed: take a look at it in pry
urbanmonk has joined #ruby
nwertman_ has quit [Read error: Connection reset by peer]
alex__c2022 has quit [Client Quit]
Michae___ has joined #ruby
_nitti has quit [Ping timeout: 276 seconds]
nwertman has joined #ruby
<linduxed>
banisterfiend: i've never used pry, but i know it's a debugging tool of some sort
<banisterfiend>
linduxed: no, not debugging
<banisterfiend>
linduxed: code exploration tool
<linduxed>
banisterfiend: oh
<banisterfiend>
linduxed: it's specificially designed for exploring an API
<banisterfiend>
it has debugging features too, but that's not the emphasis of the tool
<linduxed>
banisterfiend: sounds handy
<banisterfiend>
linduxed: one sec ill show u something
faen has quit [Ping timeout: 252 seconds]
wolcanus has quit [Ping timeout: 256 seconds]
sambao21 has joined #ruby
jimg has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
Liquid-- has joined #ruby
zeade has joined #ruby
lewix has joined #ruby
Michae___ has quit [Remote host closed the connection]
Seich is now known as seich
mark_locklear has quit [Ping timeout: 276 seconds]
Michae___ has joined #ruby
spider-mario has quit [Remote host closed the connection]