emmesswhy has quit [Quit: This computer has gone to sleep]
klmlfl has joined #ruby
bricker`work has quit [Quit: leaving]
ghr has quit [Ping timeout: 255 seconds]
moritzs has quit [Ping timeout: 240 seconds]
manzo has quit [Read error: Connection reset by peer]
bearish has quit [Ping timeout: 250 seconds]
moritzs has joined #ruby
yairgo has quit [Quit: yairgo]
terrellt has quit [Quit: Leaving...]
wombo has quit [Ping timeout: 272 seconds]
Akagi201 has joined #ruby
emmesswhy has joined #ruby
senayar has quit []
marr has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 260 seconds]
tgauthier has joined #ruby
<tgauthier>
shevy how do i reset my nickserv password? :(
DrCode has joined #ruby
<wallerdev>
/msg nickserv help
aspires has quit []
timonv_ has quit [Ping timeout: 240 seconds]
wombo has joined #ruby
mikeg has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
b00stfr3ak has quit [Ping timeout: 260 seconds]
Akagi201 has quit [Ping timeout: 240 seconds]
<hfp>
Hey all, are there any practical way to access i2c devices on a Raspberry Pi using Ruby?
otherj has quit []
icole has quit [Ping timeout: 250 seconds]
mikepack has joined #ruby
sepp2k has joined #ruby
sepp2k1 has quit [Ping timeout: 240 seconds]
ghostmoth has quit [Quit: ghostmoth]
klmlfl has quit [Ping timeout: 240 seconds]
sylvanica has joined #ruby
agrinb has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
mikepack_ has quit [Ping timeout: 246 seconds]
<hfp>
I am using the i2c gem but I am having permission problems. /dev/i2c-1 is only accessible by root. When I `sudo ruby my.rb` then it can't find the gems because they aren't installed for root. Surely there must be a better way?
germanstudent_ has quit [Quit: raus]
Neo-- has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has quit [Ping timeout: 245 seconds]
klmlfl has joined #ruby
germanstudent has joined #ruby
zz_karupa is now known as karupa
spider-mario has quit [Remote host closed the connection]
maniacal_ has joined #ruby
bmurt has quit []
flowerhack has quit [Ping timeout: 250 seconds]
ptierno__ has quit [Quit: leaving]
mikeg has quit [Ping timeout: 255 seconds]
philcrissman has quit [Remote host closed the connection]
GinoMan has joined #ruby
ddv has quit [Ping timeout: 260 seconds]
<aedorn>
hfp: That's going to be a Linux permissions issue... your best bet is to add a udev rule to create a group for the device node, then you can add your user to the group and access it without sudo. Alternatively, depending on how you have Ruby installed, you can keep the environment variables when running sudo
philcrissman has joined #ruby
<aedorn>
or just use root, of course.
<wallerdev>
should be able to find the gems even as sudo unless sudo has a different ruby in its path or something
icarus has quit [Remote host closed the connection]
<havenwood>
hfp: what are you using to switch Rubies?
hooper has quit [Quit: Leaving.]
<havenwood>
hfp: Or are you just using one and setting it up yourself or /usr/local/ or something?
<godd2>
a question mark next to a character or a group will treat it as optional
<maxwax>
Trying..
<godd2>
in your regex you're expecting there to always be a last column, but as you said, there isn't always one
benzrf|offline is now known as benzrf
sindork_ is now known as sindork
sindork has quit [Changing host]
sindork has joined #ruby
<godd2>
also, are there going to be any spaces after the last column?
Kricir has joined #ruby
<maxwax>
sometimes yes, sometimes no? Really what I'm trying to do is avoid bash+awk. With awk, I'd give it a field delimiter and just address things as $1 $2 $3, etc..
<maxwax>
Haven't done this in Ruby, obivously :)(
<godd2>
if there might not be spaces after the last column, then that last little \s+ should be \s*
<godd2>
otherwise you're always expecting at least one space after the last column
kireevco has quit [Quit: Leaving.]
<godd2>
oh and put a caret in the front of your match so it always aligns the match with the match groups
<Lewoco>
Oh it seems to think I'm nested or something.
<godd2>
Lewoco that can happen if the output buffer isn't flushing for some reason, or if you've changed stdout
<godd2>
Lewoco if that doesn't make sense, you probably aren't doing that
timonv_ has quit [Ping timeout: 240 seconds]
<godd2>
If you're in a block it also won't output
doodlehaus has quit [Remote host closed the connection]
Azure has quit [Quit: Blue Sky Fish]
<godd2>
like in a method definition or a lambda or a begin end block
<Lewoco>
godd2, Yeah I think it was the later.
phutchins has quit [Ping timeout: 255 seconds]
<Lewoco>
The last part of the prompt was :2>
<Lewoco>
I typed end a few times and it went back to :0>
<godd2>
taht just looks like a happy little clown to me :0>
hamakn has joined #ruby
sylvanica has quit [Quit: Quitte]
krz has joined #ruby
Azure has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
<godd2>
maxwax I commented on the gist
astav has quit [Quit: astav]
<godd2>
see if changing those last two \s+ to \s* helps
Akagi201 has joined #ruby
emmesswhy has joined #ruby
<maxwax>
godd2: No luck :( ..
<godd2>
maxwax can you make a gist of some of the data you're regexing over?
<maxwax>
godd2: Added a gist comment with what my input file looks like..
klmlfl has joined #ruby
deric_skibotn has quit [Ping timeout: 240 seconds]
goodenough has joined #ruby
Boohbah has joined #ruby
<maxwax>
And noticed I did something slightly differently than you.
Spami has quit [Quit: This computer has gone to sleep]
<maxwax>
And trying again, matching your code exactly.
Akagi201 has quit [Ping timeout: 250 seconds]
cashnguns has joined #ruby
<maxwax>
godd2: Thanks, your code worked.
segv has quit [Ping timeout: 245 seconds]
IceDragon has quit [Quit: Space~~~]
gauravagarwalr has joined #ruby
<godd2>
awesome glad you got it working
chipotle has joined #ruby
<maxwax>
godd2: Trying to push myself to use Ruby more so I can train my eyes on things like this. I figured something like this (the last parens) would be required, but wasn't sure how it would be done.
yetanoth1rdave has quit [Ping timeout: 250 seconds]
lemur has joined #ruby
tectonic has joined #ruby
<godd2>
If you want to be good at regex, I recommend "Mastering Regular Expressions"
lemur_ has joined #ruby
<maxwax>
godd2: When I prototyped this with Rubular, Just one regex brought back numbered captures in the web page.. But here I'm making one long one.. Any comments on that ?
<maxwax>
IOW, Seems like I can prototype in Rubular, but can't just copy directly and move on to writing code.
astav has joined #ruby
<godd2>
In Ruby you can refer to groups after a match with global variables
<godd2>
$1, $2 etc
gauravagarwalr has quit [Remote host closed the connection]
davispuh has quit [Ping timeout: 260 seconds]
klmlfl has quit [Quit: klmlfl]
heyts has joined #ruby
fella7s has joined #ruby
fella6s has quit [Ping timeout: 250 seconds]
lemur has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
end_guy has joined #ruby
sylvanica has joined #ruby
thomasxie has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
sylvanica has quit [Client Quit]
<godd2>
I think $& is the last match or $` and $~. They all do something. But using .match is better because you get back a ruby object and everyone will love you for doing it the ruby way
<maxwax>
This project started in bash -- the part that generates the rpm details list. I want to compare two rpm lists to determine what packages are installed on system A but not B, what's on both but a different version, etc.
<maxwax>
Once I needed a hash table of some sort, I wanted to ditch bash and ruby's wonderful for that.
CaptainJet has quit []
havenwood has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
philcrissman has joined #ruby
Sht0 has quit [Ping timeout: 260 seconds]
thomasxie has left #ruby [#ruby]
<zorak>
hi, nayone here know this method of commenting?
<godd2>
everything below that is now a private method
bmurt has joined #ruby
<zorak>
ok, excelent!
LBRapid has quit [Remote host closed the connection]
<zorak>
thanks :2
<zorak>
:)
sylvanica has quit [Ping timeout: 245 seconds]
<godd2>
zorak: keep in mind that if your code is clean and readable, then you generally don't even have to write comments
echevemaster_ has quit [Quit: Leaving]
echevemaster has joined #ruby
<zorak>
i love that, but this code is a mess :P
bmurt has quit [Ping timeout: 240 seconds]
Photism_ has quit [Quit: Leaving]
SCHAAP137 has quit [Remote host closed the connection]
<zorak>
and i supuse that if im sending my github to recluters have nice commens cant be bad
<maxwax>
godd2: When you write regex, do you comment next to them? Im curious what one might consider 'clean and readable' for a regex :)
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
<godd2>
Using named groups is a great start, cause you're expressly saying what that little bit should be.
<godd2>
When I look at your regex and the code around it, I have a good idea of what it's supposed to do
<pontiki>
maxwax: not to jump on godd2's answer, but commented regexps can be a real boon to future coders (including one's self)
<sevenseacat>
some examples of passing/failing values might help
<hfp>
Ok so I have the I2C going, I just don't know how to talk to it. In Python, you have to write hex to certain bytes to make things happen. AFAIK, I get an IO object that I can mostly manipulate as a file. Anybody got experience with that kind of things?
<godd2>
sevenseacat makes a point that unit tests can help fill a role in documentation here.
<pontiki>
using the x modifier (ignoring white space) let's you spread them out to make comments rather nicely
<maxwax>
pontiki: I like what he said, but I like documenting my code even more.. I seem to be very much in the minority in that regards.
<godd2>
The thing about comments is, they don't change as often as code does
<maxwax>
When I write bash with chained together commands, i try to document what each is doing, too. Partly, I'm lazy when I come back to it later, and partly I want to avoid others making mistakes with my code.
<godd2>
so if your code changes, and NOT changing the comment still makes the new code work, that comment is now a dirty liar
Kricir has joined #ruby
<sevenseacat>
liar liar pants on fire
<pontiki>
that is often the downfall with comments
<maxwax>
godd2: Yeah, but I'm very disciplined about my documentation.. I'll make a pass just to clean it up before pushing up.
<godd2>
and comments tend to be used in the most fragile of places in the codebase
<maxwax>
godd2: But your comment stands regardless: documentation is good, but clean code is *always* the goal.
iamjarvo has joined #ruby
<pontiki>
mainly, i want to see comments that will turn into api documentation, and comments explaining why a particular implementation was used, if it would not be obvious to someone coming a long later to try to change it
<godd2>
I always go for the cycle of 1. describe it, 2. make it work, 3. make it pretty
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
4. make it fast
<zorak>
commented regex is the new black
<godd2>
4. buy more rams
<sevenseacat>
5. make it dead... wait
<zorak>
*download* more rams
<godd2>
hey whoa, don't tie me to an implementation zorak
<maxwax>
godd2: That's a good cycle..
<pontiki>
just go read _Beautiful Code_
GriffinHeart has joined #ruby
<sevenseacat>
i keep meaning to read that
cashnguns has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cirn0 has joined #ruby
sylvanica has joined #ruby
butblack has quit [Quit: butblack]
braincrash has quit [Quit: bye bye]
bashrw has quit [Quit: bashrw]
arup_r has joined #ruby
bradleyp_ has joined #ruby
voodoofish1 has quit [Quit: Leaving.]
chrishough has joined #ruby
voodoofish has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
voodoofish has quit [Client Quit]
voodoofish has joined #ruby
voodoofish has left #ruby [#ruby]
Akagi201 has joined #ruby
patric100e99 has joined #ruby
braincrash has joined #ruby
goodenough has quit []
voodoofish has joined #ruby
mary5030 has joined #ruby
starless has quit [Quit: Leaving]
emocakes has quit [Ping timeout: 240 seconds]
klmlfl has joined #ruby
agrinb has quit [Remote host closed the connection]
Akagi201 has quit [Ping timeout: 264 seconds]
patric100e99 has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
yetanotherdave has joined #ruby
emocakes has joined #ruby
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
Cheezebox has joined #ruby
emocakes has quit [Max SendQ exceeded]
<Lewoco>
Is it possible to monkey patch from within a method?
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
axilla has quit [Ping timeout: 240 seconds]
m_3 has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
klmlfl_ has joined #ruby
Kricir has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 240 seconds]
klmlfl has quit [Quit: klmlfl]
gregf has quit [Quit: WeeChat 0.4.3]
klmlfl_ has quit [Client Quit]
klmlfl has joined #ruby
astav has quit [Quit: astav]
sea_local has joined #ruby
Channel6 has joined #ruby
gregf has joined #ruby
davedev2_ has quit []
emocakes has joined #ruby
zz_rubydiamond is now known as anildigital
<Lewoco>
I think class_eval is my solution.
<Lewoco>
How do I include a file from a gem that is in a subdirectory?
bricker`LA has joined #ruby
kristofferR has joined #ruby
jko_ has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
LBRapid has joined #ruby
LBRapid is now known as Guest3571
Guest3571 has quit [Client Quit]
<Lewoco>
Oh you can just specify a path in require.
austin has joined #ruby
toastynerd has joined #ruby
havenwood has joined #ruby
froggy__ has joined #ruby
bearish has joined #ruby
KnownSyntax has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
froggy_ has quit [Ping timeout: 246 seconds]
sea_local has quit [Remote host closed the connection]
sea_local has joined #ruby
bearish has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
mikesplain has joined #ruby
klmlfl has left #ruby [#ruby]
klmlfl has joined #ruby
agrinb has joined #ruby
<benzrf>
regex is not that good
fold has quit [Ping timeout: 260 seconds]
<benzrf>
parser combinators are generally better
Cache_Money has joined #ruby
tkuchiki_ has joined #ruby
sea_local has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
juz88 has quit []
flowerhack has quit [Remote host closed the connection]
Adran has quit [Excess Flood]
armanghassemi__ has quit [Quit: This computer has gone to sleep]
agrinb has quit [Ping timeout: 240 seconds]
pydave6377 has quit [Ping timeout: 250 seconds]
toastynerd has quit [Remote host closed the connection]
juz88 has joined #ruby
oo_ has joined #ruby
lolmaus has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
germanstudent has quit [Ping timeout: 250 seconds]
Adran has joined #ruby
maletor has joined #ruby
lolmaus has joined #ruby
Alina-malina has joined #ruby
pydave6367 has joined #ruby
GinoMan has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Line has joined #ruby
tkuchiki_ has quit [Ping timeout: 250 seconds]
germanstudent has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<hobo>
so it gives the error at line 19 because of the self i think?
<Hanmac>
yes, just remove "self." and it might work
<hobo>
yeah thanks, was just a weird error that i hadn't seen before
philcrissman has quit [Remote host closed the connection]
<hobo>
can you explain why i dont need the self there?
whyy has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
toastynerd has joined #ruby
philcrissman has joined #ruby
MrL0ngbowman has quit [Ping timeout: 260 seconds]
Sawbones has quit []
<hobo>
i thought the self would make it recursive?
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
bearish has quit [Remote host closed the connection]
philcris_ has joined #ruby
TheTopBloke has joined #ruby
philcrissman has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
kyb3r_ has joined #ruby
tagrudev has joined #ruby
mfmfmfmfmfmf has joined #ruby
<Hanmac>
hobo its already recursive without the self
<hobo>
(im debugging gfs code)
Soliah has quit [Ping timeout: 250 seconds]
Cheezebox has quit [Remote host closed the connection]
bMalum has joined #ruby
bricker`work has joined #ruby
EasyCo has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
DrCode has quit [Ping timeout: 264 seconds]
rotor has joined #ruby
DrCode has joined #ruby
agrinb has joined #ruby
InhalingPixels has quit []
keen______ has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
keen______ has joined #ruby
cirn0 has quit [Remote host closed the connection]
Cheezebox has joined #ruby
AndChat| has quit [Ping timeout: 260 seconds]
Cheezebox has quit [Remote host closed the connection]
cirn0 has joined #ruby
anaeem1_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
w1xz has joined #ruby
tkuchiki_ has joined #ruby
aganov has joined #ruby
lemur has joined #ruby
ramfjord has joined #ruby
Ilyas has joined #ruby
Ilyas has quit [Max SendQ exceeded]
bricker`work has quit [Ping timeout: 250 seconds]
Ilyas has joined #ruby
cirn0 has quit [Ping timeout: 245 seconds]
havenwood has quit []
starkhalo has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
osvico has joined #ruby
ghostmoth has joined #ruby
artmann has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 255 seconds]
pagioss is now known as pagios
fold has joined #ruby
ghostmoth has quit [Client Quit]
artmann has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
anildigital is now known as zz_anildigital
mattmcclure has quit [Quit: Connection closed for inactivity]
sparrovv has joined #ruby
bricker`work has joined #ruby
doodlehaus has joined #ruby
kireevco has quit [Ping timeout: 246 seconds]
dawkirst has joined #ruby
Aranshada|W has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
narcan has joined #ruby
ptrrr has joined #ruby
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
Aranshada|W has joined #ruby
ptrrr has quit [Client Quit]
Xeago has joined #ruby
qpok_ is now known as qpok
doodlehaus has quit [Ping timeout: 260 seconds]
philcris_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 272 seconds]
philcrissman has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
mfmfmfmfmfmf has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
havenwood has joined #ruby
dawkirst has quit [Quit: Leaving...]
yetanotherdave has quit [Remote host closed the connection]
Lewix has joined #ruby
_tpavel has joined #ruby
sinkensabe has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
bricker`work has quit [Ping timeout: 240 seconds]
ramfjord has quit [Quit: Lost terminal]
Cheezebox has joined #ruby
icebourg has joined #ruby
relix has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
pierre1__ has joined #ruby
OffTheRails has joined #ruby
Aaaal has quit [Quit: Aaaal]
Hanmac has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HelperW_ has joined #ruby
gauravagarwalr has joined #ruby
craigp has joined #ruby
bMalum has quit [Quit: bMalum]
skolman has quit [Remote host closed the connection]
Cheezebox has quit [Remote host closed the connection]
Cheezebox has joined #ruby
diegoviola has quit [Remote host closed the connection]
sea_local has quit [Remote host closed the connection]
sea_local has joined #ruby
Cheezebox has quit [Ping timeout: 245 seconds]
icebourg has quit []
eeezkil has joined #ruby
<kenneth>
so what's the concensus these days about what's the best simple testing framework for non-rails stuff?
Macaveli has joined #ruby
sea_local has quit [Ping timeout: 250 seconds]
sea_local has joined #ruby
noop has joined #ruby
<sevenseacat>
well the options are the same
<sevenseacat>
rspec or minitest/testunit, basically
<sevenseacat>
there is no consensus - i prefer rspec, others prefer minitest
alexju has quit [Remote host closed the connection]
m104 has joined #ruby
mityaz has joined #ruby
m104 has quit [Max SendQ exceeded]
mikesplain has joined #ruby
m104 has joined #ruby
jprovazn has joined #ruby
kiri has joined #ruby
charliesome has quit [Quit: zzz]
<shevy>
I prefer testing by cleverness
gaussblurinc1 has joined #ruby
agrinb has joined #ruby
bearish has joined #ruby
<Hanmac>
hm my code are mosty not testable because of GUI stuff, but i prefer testunit over minitest because it does have some more advaced testing methods
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
kiri has quit [Quit: Leaving]
agrinb has quit [Ping timeout: 240 seconds]
mkaesz has joined #ruby
kiri_ has joined #ruby
m104 has quit [Quit: bye]
kiri_ has quit [Client Quit]
HelperW__ has joined #ruby
<gaussblurinc1>
hi!
lidaaa has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
Jackneill has joined #ruby
<gaussblurinc1>
which object method called in `puts "#{object}"`?
<gaussblurinc1>
display?
bearish has quit []
<sevenseacat>
on the object? to_s
<sevenseacat>
...or maybe to_str
<gaussblurinc1>
hmm, to_s or to_str? :)
bearish has joined #ruby
emergion has joined #ruby
lemur has joined #ruby
HelperW_ has quit [Ping timeout: 260 seconds]
<gaussblurinc1>
to_s, yes
fabrice31 has joined #ruby
bayed has joined #ruby
ta has joined #ruby
Ilyas_ has joined #ruby
bearish has quit [Client Quit]
mercerist has joined #ruby
bMalum has joined #ruby
ta has quit [Client Quit]
mercerist has quit [Client Quit]
bearish has joined #ruby
lemur has quit [Ping timeout: 246 seconds]
Ilyas has quit [Ping timeout: 255 seconds]
ta has joined #ruby
timonv_ has joined #ruby
cndiv has quit [Ping timeout: 260 seconds]
siwica has quit [Quit: siwica]
siwica has joined #ruby
Magnus has joined #ruby
sparrovv has quit [Remote host closed the connection]
<Hanmac>
gaussblurinc1: the problem: in 1.9 and before Object#inspect did call Object#to_s ... in 2.0 and later it did not ... which means if you want that "#{o}" and p o does return the same, you need to overwride both #to_s and #inspect
<railsraider>
has anyone had luck uploading to google drive as a service using oauth?
<railsraider>
i get status 200
<railsraider>
but the file is not there
bbloom_ has quit [Ping timeout: 245 seconds]
VBlizzard has quit [Ping timeout: 240 seconds]
<railsraider>
using the google ruby api
qba73 has joined #ruby
arup_r has quit [Remote host closed the connection]
krandi has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Lewoco_ has joined #ruby
niik00 has joined #ruby
zz_anildigital is now known as anildigital
Pharaoh2 has joined #ruby
<niik00>
I everyone. I'm just wondering if someone here has already used the gem listen to track file system events and wrote some specs with that gem ?
<pagios>
ok it works like this but can i use the same variable to map instead of using 2 variables? @video_links = Dir.glob('/var/www/videos/*.mp4') @video_links_base = @video_links.map { |x| File.basename(x) };
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
bbloom has quit [Ping timeout: 260 seconds]
Fractional has joined #ruby
<Fractional>
Is there a way to modify content of a class from a block call?
<Hanmac>
pagios: didnt you already had the problem with the file names a few days ago and didnt we already helped you with that?
ndrei has quit [Ping timeout: 240 seconds]
mockra has quit [Ping timeout: 264 seconds]
hephaestus_rg has quit [Ping timeout: 264 seconds]
<pagios>
correct
<Fractional>
Like you pass a block, performing changes on instance variable @foo. Is there any way to do this?
<Hanmac>
Fractional: hm what is your input and what is your wanted output?
<Fractional>
Hanmac: Let me gist it
<Hanmac>
Fractional: instance_eval or instance_exec ?
<Hanmac>
pagios: ah good that i did loging, i know i have seen that problem before at 22.Aug
koderok has quit [Quit: koderok]
<Hanmac>
Fractional: instance_exec(&@block)
anaeem1__ has quit [Remote host closed the connection]
pierre1__ has quit [Quit: Leaving]
<Fractional>
Hanmac: Thanks, will look into it! :)
W0rmDr1nk has joined #ruby
Aaaal has joined #ruby
Takle_ has joined #ruby
anaeem1_ has joined #ruby
<Fractional>
Hanmac: Exactly what I was looking for. Cheers!
r0bby_ is now known as robbyoconnor
jottr_ has quit [Ping timeout: 246 seconds]
eeezkil has quit [Quit: Leaving.]
Takle has quit [Ping timeout: 260 seconds]
techsethi has quit [Quit: techsethi]
theRoUS has quit [Ping timeout: 250 seconds]
Trieste_ is now known as Trieste
Trieste has quit [Changing host]
Trieste has joined #ruby
mikesplain has joined #ruby
Lewoco_ has quit [Quit: Leaving]
Trieste is now known as Trieste_
theRoUS has joined #ruby
Trieste_ is now known as Trieste
<jheg>
hey folks
schubam has joined #ruby
Aaaal has quit [Quit: Aaaal]
<jheg>
I'm trying to build a game (tic tac toe) and I'm storing the squares into a hash ...
mikesplain has quit [Read error: Connection reset by peer]
pranny has joined #ruby
koderok has joined #ruby
mikesplain has joined #ruby
mengu has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
<jheg>
On the computers go I'd like to check to see if a row,col or diag has two of the opponents marker and assuming the remaining square is empty fill it with its marker
agrinb has joined #ruby
<jheg>
so I created 8 new hashes (row_1, row_2, Col_1 etc)
<jheg>
like so ..
<tobiasvl>
hashes?
<jheg>
# initialize the empty hash that will store the board squares
<jheg>
but when the program passes in a marker in a method I wrote it updates the board_squares hash but that in turn doesn't update the row_1 hash
Pharaoh2 has joined #ruby
<jheg>
how do I update the row_1 as the main hash is updated?
<jheg>
I thought hashes would be best for this tobiasvl
EasyCo has quit [Quit: Connection closed for inactivity]
<tobiasvl>
why are you using hashes instead of nested arrays
<tobiasvl>
seriously
jottr_ has joined #ruby
<jheg>
I thought hashes would be best
mikesplain has quit [Ping timeout: 246 seconds]
agrinb has quit [Ping timeout: 240 seconds]
<Hanmac>
jheg: hm you could for sample use only an long array, that is only shown different for repensending, or use a nested array, hm or you could use a Matrx, but that might be overkill
<jheg>
why would an array be better tobiasvl
<jheg>
?
<tobiasvl>
jheg: well, to turn it around: why did you think a hash would be better? you're just using the hash as an advanced array anyway
<jheg>
hmmm good point
gregf_ has joined #ruby
_lexjm has quit [Read error: No route to host]
<jheg>
thanks Hanmac not sure I really understand what you mean there though repensedning?
<Hanmac>
"representing"
<jheg>
ah OK
<Hanmac>
like [0,1,2,3,4,5,6,7,8] is like this in the data, but printed like that [0,1,2] [3,4,5] [6,7,8]
<jheg>
so how do I get a hash value or an array element to point to the another hash value or array element?
max061 has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
<jheg>
that will work well for use with rows but not sure how I would overcome the issue of diagonals and columns
lemur has joined #ruby
ptrrr has joined #ruby
<jheg>
I was thinking one large hash or array to store all the squares then 8 further arrays or hashes that point to each square in the original larger array
<tobiasvl>
make methods that get the correct squares every time you ask
<jheg>
then I can run conditionals on those
<tobiasvl>
or make a Square class instead of using ints (probably overkill)
mengu has quit [Remote host closed the connection]
<jheg>
hashes would then work better wouldn't it though because I can use the square number as the key
RandyT has joined #ruby
max06 has quit [Ping timeout: 240 seconds]
<jheg>
lemme show you the whole program so far and sorry if the code is crap I'm just learning ...
<jheg>
If i'd used nil it would have meant I had to re write the board each time as the 'x' or 'o' would throw out my board
existensil has quit [Quit: WeeChat 0.4.2]
njs126 has quit [Ping timeout: 260 seconds]
patric100e99 has joined #ruby
bbloom has joined #ruby
<Hanmac>
jheg: hm then you does print it wrong ... like i said dont touch the data with " ", "x" and "o" they are only for the output, not the internal data
njs126 has joined #ruby
bbloom_ has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DrForr has joined #ruby
jheg_ has joined #ruby
kaspertidemann has quit []
rdark has joined #ruby
KnownSyntax_ has joined #ruby
jheg has quit [Ping timeout: 240 seconds]
jheg_ is now known as jheg
<jheg>
sorry got disconnected
bearish_ has joined #ruby
patric100e99 has quit [Ping timeout: 240 seconds]
<jheg>
Hanmac: That would work perfectly to check if there was a winner right?
sevenseacat has quit [Quit: Leaving.]
<jheg>
That is checking to see if all elements in the diag array equal 1?
bearish has quit [Ping timeout: 260 seconds]
bearish__ has joined #ruby
philcrissman has joined #ruby
<Hanmac>
jheg: yes it does, you might change it later for other stuff
KnownSyntax has quit [Ping timeout: 260 seconds]
<jheg>
great stuff thanks again everyone this has been really useful
ItSANgo_ has quit [Ping timeout: 260 seconds]
<Hanmac>
jheg: like let your program select if there is a win:
arup_r has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
<shachar>
Hi , a small and easy question , i have created a class and within that class i have a method , when trying to execute that method i am getting "in `<class:Warehouse>': undefined local variable or method `do_create_int' for Warehouse:Class (NameError)" , please take a look here http://pastebin.com/4EaAsTrZ THANKS
mikesplain has joined #ruby
Takle has joined #ruby
mikesplain has quit [Max SendQ exceeded]
<izzol2_>
hmm how I can check if the "key" is in my hash or not?
agrinb has joined #ruby
<izzol2_>
I'm trying to do this by: test["xxx"].empty? but in the result I have NoMethodError: undefined method `empty?' for nil:NilClass.
<izzol2_>
Which is correct.
brtdv has quit [Ping timeout: 272 seconds]
<izzol2_>
But I need to know if they key is in the hash before that error :)
MCDev has joined #ruby
sk87 has joined #ruby
easier has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
marr has quit [Ping timeout: 272 seconds]
peret has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
groot_ has joined #ruby
gerep has quit [Ping timeout: 255 seconds]
Sgeo_ has quit [Read error: Connection reset by peer]
pranny1 has quit [Quit: Leaving.]
phutchin1 has joined #ruby
narcan has joined #ruby
phutchins has quit [Read error: Connection reset by peer]
<Hanmac>
izzol2_: you are fallen into the rails trap because test["xxx"].empty? would work on rails ... you need to check with test.has_key?["xxx"]
<Hanmac>
i mean with test.has_key?("xxx") first
freerobby has joined #ruby
<Hanmac>
and then maybe depending on the data a !test["xxx"].nil? too
britneywright has joined #ruby
jespada has joined #ruby
osvico has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
whyy has joined #ruby
<izzol2_>
hmm
<izzol2_>
irb(main):025:0* test = {"a"=>1, "b"=>2}
<izzol2_>
=> {"a"=>1, "b"=>2}
<izzol2_>
irb(main):027:0> test["c"].has_key?
<izzol2_>
NoMethodError: undefined method `has_key?' for nil:NilClass
oo_ has quit [Quit: Leaving...]
Takle has joined #ruby
<tobiasvl>
izzol2_: read Hanmac's last line again
sambao21 has joined #ruby
<izzol2_>
ahh
<izzol2_>
right
<izzol2_>
it works with ! and .nil?
<izzol2_>
:)
<Hanmac>
its okay ... its normal that i got ignored by rails users
hellangel7 has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
ndrei has joined #ruby
freerobby has quit [Quit: Leaving.]
oo_ has joined #ruby
<W0rmDr1nk>
hi
<W0rmDr1nk>
so I installed ruby gem for asciidoctor-diagram
<W0rmDr1nk>
as my local user
<W0rmDr1nk>
but where is it installed ?
<pontiki>
gem which asciidoctor-diagram
<poulet_a>
test.has_key? "c"
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<poulet_a>
@izzol2_ : test.has_key? "c"
poulet_a has left #ruby ["Quitte"]
<W0rmDr1nk>
pontiki, thanks
kaspergrubbe_ has quit [Remote host closed the connection]
<W0rmDr1nk>
nvm
<W0rmDr1nk>
got it
ringarin has joined #ruby
<W0rmDr1nk>
ok - so now I run: /home/iwana/.gem/ruby/1.9.1/gems/asciidoctor-1.5.0/bin/asciidoctor domain.asciidoc
<W0rmDr1nk>
but I get error: asciidoctor: WARNING: domain.asciidoc: line 8: invalid style for listing block: plantuml
starkhalo has joined #ruby
dumdedum has quit [Quit: foo]
<W0rmDr1nk>
any ideas ?
<pontiki>
not without having to read the documentation and maybe the code...
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
emocakes has quit []
<canton7>
I'm guessing you're using an invalid style for a listing block?
shachar has quit [Quit: Leaving]
coreycondardo has joined #ruby
linojon has joined #ruby
coreycondardo has quit [Client Quit]
St_Marx has joined #ruby
wildroman2 has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
mkaesz has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 255 seconds]
toretore has joined #ruby
cirn0 has joined #ruby
arup_r has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
sk87 has joined #ruby
mockra has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
kaspergrubbe_ has joined #ruby
SCHAAP137 has joined #ruby
krisquigley has quit [Remote host closed the connection]
ringarin has quit [Quit: Leaving]
yfeldblum has joined #ruby
osvico has joined #ruby
ndrei has joined #ruby
cirn0 has quit [Ping timeout: 240 seconds]
<mostlybadfly>
Buenos días
Trieste has quit [Ping timeout: 250 seconds]
andrewlio has quit [Ping timeout: 246 seconds]
_tpavel has quit [Ping timeout: 272 seconds]
timgauthier has joined #ruby
<timgauthier>
shevy you should throw stones at me, i'm back in Europe
earthquake has joined #ruby
mockra has quit [Ping timeout: 246 seconds]
<W0rmDr1nk>
pontiki, I had to make a custom laucher for asiidoctor-diagram
yfeldblum has quit [Ping timeout: 272 seconds]
gr33n7007h has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
davedev24_ has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
maasha has joined #ruby
mikesplain has joined #ruby
siwica1 has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
Aranshada|W_ has quit [Quit: Aranshada|W_]
Takle has joined #ruby
benvds_ has left #ruby [#ruby]
<maasha>
My UNIX command line pipe emulation in Ruby is prone to being slow to the verge of hanging (and have even crashed Ruby). I suspect something is blocking, but forked processes are a bitch to debug: https://gist.github.com/maasha/68000429844a2d869e43
spastorino has joined #ruby
mikesplain has quit [Ping timeout: 246 seconds]
kil0byte has joined #ruby
krisquigley has joined #ruby
<maasha>
moral support and suggestions are welcome
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gccostabr has joined #ruby
agjacome has quit [Quit: leaving]
linojon has quit [Quit: linojon]
oo_ has quit [Remote host closed the connection]
_tpavel has joined #ruby
linojon has joined #ruby
oo_ has joined #ruby
<jheg>
guys I need to check an array of 3 elements and if it contains 2 elements that contain 'x' and the remaining element contains " " then assign 'o' to the element that contains " "
agrinb has joined #ruby
ItSANgo has quit [Quit: Leaving...]
anaeem1_ has quit [Remote host closed the connection]
<jheg>
I'm guessing I'll need the count method but I'm struggling to figure out who to get the remming element
andrewlio has joined #ruby
philcrissman has joined #ruby
joast has joined #ruby
yalue has joined #ruby
whyy has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 240 seconds]
dumdedum has joined #ruby
tlarevo_ has quit [Ping timeout: 260 seconds]
philcrissman has quit [Ping timeout: 255 seconds]
<pontiki>
can the elements be in any order?
Logico has joined #ruby
chipotle has joined #ruby
<sonOfRa>
What's the canonical way to create a set c from sets a and b, where c contains all elements in a that are not in b?
<Hanmac>
jheg: it does return for which of the lines, all elements that are got from the data array are set to 1
djcp has joined #ruby
Gil has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
Alina-malina has joined #ruby
_tpavel has quit [Ping timeout: 240 seconds]
wu_lmao has joined #ruby
<shevy>
timgauthier cool. why did you not stay in canada?
<timgauthier>
because Germany
wu_lmao has quit [Client Quit]
<shevy>
timgauthier btw random fun "fact" - in austrian (viennese) slang, Canada is "Kanada", and if you split this up into "ka-na-da" this means "ka-na = keiner (nobody)", "da = hier (here)""
gr33n7007h has joined #ruby
<timgauthier>
hehe
<shevy>
so nobody is there in Kanada! :-)
ta has quit [Remote host closed the connection]
<timgauthier>
Kanada is in German
<timgauthier>
and yeah thats a fair assumption
Aranshada|W has joined #ruby
djcp has left #ruby [#ruby]
paulfm has joined #ruby
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
<roobie>
What's the difference between Hash#select and Hash#keep_if ?
zorak has quit [Ping timeout: 240 seconds]
Kabaka has quit [Ping timeout: 272 seconds]
enebo has joined #ruby
<Hanmac>
roobie: Hash#select = new hash, Hash#keep_if = old hash
enebo has quit [Client Quit]
mary5030 has joined #ruby
<Hanmac>
shevy & timgauthier: there are some cities in germany after 18:00 sharp you will see one one on the street ... means at 17:59 you will see persons, and at 18:01 everyone is gone ;p
<shevy>
Hamburg?
enebo has joined #ruby
gccostabr has joined #ruby
schubam has joined #ruby
<timgauthier>
yeah hamburg is like that
banister is now known as banisterfiend
<timgauthier>
you could shoot a zombie film on sunday afternoon in hamburg, literally nothing, its dead quiet too
havenwood has joined #ruby
<shevy>
ewww
<timgauthier>
and you wouldn't need a permit because no one would even see you :P
wildroman2 has quit []
bearish has quit [Ping timeout: 250 seconds]
<timgauthier>
Hamburg sucks though so who cares :P dresdin on sunday afternoon still has people out shopping etc
<timgauthier>
dresden*
marr has joined #ruby
<timgauthier>
leipzig is funny too, looks like a dead industrial city, but you can hear music leaking out of the old factories that have been turned into clubs and bars and theaters and kinos (cinema) and concerts etc
iamjarvo has joined #ruby
<shevy>
Dresden is nice but when I was there many years ago, there were still so many buildings damaged
Sthebig has quit [Ping timeout: 272 seconds]
snath has quit [Remote host closed the connection]
msmith_ has joined #ruby
pandaant has joined #ruby
gtrak has joined #ruby
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
<Hanmac>
timgauthier: ah you from saxony too?
<timgauthier>
i'm in saxony yeah
<wasamasa>
timgauthier: I've heard facebook is stationed in hamburg
Cheezebox has quit [Remote host closed the connection]
<timgauthier>
shevy how many years ago was that? I mean yeah Dresden just started getting so much money lately
* Hanmac
currently near Rossendorf (= near Dresden)
* timgauthier
near Zwichau
<shevy>
timgauthier about ... 8-11 years, more like 11 I think
<Hanmac>
oO inst it "Zwickau" ?
<shevy>
oh have you been to the ugliest town yet timgauthier?
<shevy>
I like medieval-originated towns like Nürnberg (Nuremburg), in northern italy that is even more widespread
<timgauthier>
heh, you can see where the communists stopped.
schubam_ has joined #ruby
schubam has quit [Ping timeout: 255 seconds]
failshell has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
<timgauthier>
thats a crazy thing about east german towns and cities, you can see where communism ended, they would tear down and rebuild the city blocks at a time, and where they stopped you have the ugly block buildings next to the cool german houses
mary5030 has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<shevy>
yeah
qwyeth has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
<timgauthier>
I'm in a town right now, its cute, lots of german farm houses, Zwickau is a ... interesting town
bearish has joined #ruby
astav has joined #ruby
<timgauthier>
its not specifically ugly, but it definitely is a country town, and its pretty vacant, not a ton of work around here so its lots of empty places
rocknrollmarc has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
kalusn has joined #ruby
jheg has quit [Quit: jheg]
Alina-malina has joined #ruby
albedoa has joined #ruby
Sthebig has joined #ruby
andrcmdr has joined #ruby
yeticry has quit [Quit: leaving]
yeticry has joined #ruby
yeticry has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anarang has quit [Quit: Leaving]
jheg has joined #ruby
iamjarvo has joined #ruby
RichardLitt has joined #ruby
timonv_ has quit [Remote host closed the connection]
yeticry has joined #ruby
cout_ is now known as cout
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
arup_r has quit []
Anarch_ is now known as Anarch
cocotton has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 246 seconds]
diegoviola has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
devdazed has joined #ruby
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
momomomomo has joined #ruby
ffranz has joined #ruby
sylvanica has joined #ruby
tkuchiki has quit [Remote host closed the connection]
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
tkuchiki has joined #ruby
gr33n7007h has joined #ruby
jfutbol has joined #ruby
larissa has joined #ruby
charliesome has joined #ruby
devdazed has quit [Ping timeout: 240 seconds]
Miron is now known as Poland
<mikecmpbll>
is there a more idiomatic way of replacing all instances of x in an array with something else than
<mikecmpbll>
>> [1,2,3,1,2,3].map{|i| i == 1 ? 2 : i }
<havenwood>
or i guess more specifically: require 'active_support/core_ext/time/calculations'
jmorgan_ has joined #ruby
_|d0m|_ is now known as _|d0m|__
gigetoo has quit [Ping timeout: 260 seconds]
moritzs has quit [Ping timeout: 260 seconds]
Dev-Gitter has joined #ruby
<crome>
what is the fashionable gui library for ruby nowadays? (if there's any)
<rubynoob>
havenwood: I'm going by the example in Well Grounded Rubyist 2nd edition which only states 'require active_support'
FarlaTux has joined #ruby
PHP4Ever has joined #ruby
_|d0m|__ is now known as __|d0m|__
arup_r has joined #ruby
momomomomo_ has joined #ruby
mikeg has joined #ruby
jimms has joined #ruby
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
yacks has joined #ruby
__|d0m|__ is now known as _|d0m|_
moritzs has joined #ruby
b00stfr3ak has joined #ruby
sectionme has quit [Ping timeout: 264 seconds]
<crome>
rubynoob: it's a bit old
<crome>
active support (and lots of other things) were restructured in rails 3
keen_______ has joined #ruby
<crome>
you can require active_support/all though if you wish
keen______ has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 260 seconds]
wjimene__ has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
<rubynoob>
havenwood: OK, that works but I would have thought a less specific require would include everything below that level?
<havenwood>
2nd edition is 2014 and its example is: require 'active_support/core_ext'
<havenwood>
i think you guys are thinking 1st edition
<rubynoob>
crome: Ah, that would be what I'm looking for. Thanks.
janmuffino has joined #ruby
<crome>
havenwood: right, I googled up the wrong one
<rubynoob>
havenwood: Yes, my mistake but he doesn't specify for the Time examples.
carraroj has joined #ruby
<rubynoob>
havenwood: My mistake, overlooking the extension. Sorry :)
bradleyp_ has quit [Remote host closed the connection]
roobie has quit [Ping timeout: 264 seconds]
bradleyprice has joined #ruby
djbkd has joined #ruby
rubynoob has quit [Quit: BitchX: sanitized for your protection]
kalusn has quit [Remote host closed the connection]
bashrw has quit [Quit: bashrw]
gigetoo has joined #ruby
timonv_ has quit [Remote host closed the connection]
sethetter has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
poulet_a has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
bashrw has joined #ruby
heyts has joined #ruby
cantonic has joined #ruby
RichardLitt has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
sdwrage has joined #ruby
Cheezebox has quit [Remote host closed the connection]
OffTheRails_ has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
gerep has quit [Ping timeout: 245 seconds]
jmorgan_ has quit [Ping timeout: 264 seconds]
jmorgan_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
jmorgan_ has quit [Client Quit]
moritzs has quit [Ping timeout: 246 seconds]
bashrw has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
agjacome has joined #ruby
Magissia has joined #ruby
aspires has joined #ruby
<Magissia>
Hello, i have trouble compiling ruby with Vistual Studio 2013, i know there's a solution using MinGW on Windows, but i would like to know and learn why it failled. I have a u1077 error (exit code 0x2) at the first step (win32\configuration.bat), i think my path is correct but if someone is willing to check with me i won't refuse.
Squarepy has joined #ruby
<Magissia>
From my searches, the 0x2 is about missing file, but the error doesn't show wich file is missing.
chipotle has quit [Quit: cya]
<Hanmac>
crome hm i write my own wxWidgets binding ... it is workable but still not complete ... (but 10x times better than wxRuby)
alex88 has quit [Quit: Leaving...]
gigetoo has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
saarinen has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
koderok has joined #ruby
sectionme has joined #ruby
wallerdev has quit [Quit: wallerdev]
koderok has quit [Client Quit]
gigetoo has joined #ruby
timonv_ has quit [Remote host closed the connection]
anomaly has left #ruby ["Leaving"]
mityaz has quit [Quit: Leaving]
pandaant_ has quit [Remote host closed the connection]
bashrw has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
headius_ is now known as headius
iamjarvo has joined #ruby
ndrei has joined #ruby
momomomomo is now known as momomomomo`away
rezzack1 has quit [Quit: Leaving.]
Zesty has joined #ruby
Kricir has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Client Quit]
skolman has joined #ruby
momomomomo`away has quit [Quit: momomomomo`away]
sylvanica has quit [Quit: sylvanica]
ghr has joined #ruby
Lewix has joined #ruby
lsone has joined #ruby
lmickh has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
Kricir has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Kricir has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
groot_ has joined #ruby
Cheezebox has joined #ruby
jheg has joined #ruby
philcrissman has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
skolman has quit [Remote host closed the connection]
spyderm__ has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
ta has joined #ruby
hooper has joined #ruby
<Hanmac>
crome: yeah i didnt had time for the readme yet ... :/ you can try to play with it if you want (hm you might read the docs of wxWidgets or wxRuby first, or look a bit at the samples)
<havenwood>
i dunno, it might look better in markdown
<Hanmac>
(if the samples does work, i might need to check them again)
hobo has left #ruby [#ruby]
wallerdev has joined #ruby
hellangel7 has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cocotton has quit [Remote host closed the connection]
<Hanmac>
havenwood: "nothing" does look good in any layout-language ;P
j75 has quit [Ping timeout: 250 seconds]
<havenwood>
some nothing is better than other nothing!
kenneth has joined #ruby
<Hanmac>
rubys nothing is better than phps nothing ;P (and does need less lines of code ;P )
hellangel7 has joined #ruby
albedoa has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
pandaant has joined #ruby
sinkensabe has joined #ruby
<crome>
:D
orolo has quit [Quit: This computer has gone to sleep]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
michaeldeol has joined #ruby
lsone has quit [Read error: Connection reset by peer]
W0rmDr1nk has quit [Ping timeout: 260 seconds]
cocotton has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 255 seconds]
lemur has quit [Ping timeout: 240 seconds]
roolo has quit [Quit: Leaving...]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cndiv has joined #ruby
mattp_ has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
<hilmy>
Hanmac i'm currently setup the ticker price : {"ticker":{"high":0.00054989,"low":0.000034,"avg":0.00029194,"lastbuy":0.000035,"lastsell":0.00054989,"buy":0.000035,"sell":0.00054989,"lastprice":0.000035,"updated":1409565600}} how do i wrote the ouput
andrewjanssen has joined #ruby
thomasxie has quit [Ping timeout: 240 seconds]
<hilmy>
example for the high
froggy_ has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
LiohAu has joined #ruby
yetanotherdave has joined #ruby
froggy_ has joined #ruby
<hilmy>
latest_trade = data["ticker"][0]["lastprice"] and my output is {lastest_trade} it's not showing the value
elstif has quit [Quit: Leaving.]
roobie has joined #ruby
gigetoo has joined #ruby
<Lewix>
hello
<groot_>
hilmy: i think the [0] is unnecessary
<Hanmac>
hilmy: remove the [0] because yu do not have an array
<hilmy>
ok i try
wjimenez_ has joined #ruby
pietr0 has quit [Quit: pietr0]
jshultz has joined #ruby
pietr0 has joined #ruby
ghr has joined #ruby
pandaant has quit [Remote host closed the connection]
<hilmy>
umm i think my declaration has an error not the floating :(
aspires has quit []
bthesorceror has quit [Quit: bthesorceror]
momomomomo has joined #ruby
aspires has joined #ruby
lw has joined #ruby
io_syl has joined #ruby
mikespla_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emmesswhy has joined #ruby
Georg3 has joined #ruby
<hilmy>
i try it on eval.in
obs has joined #ruby
mikesplain has joined #ruby
mikesplain has quit [Max SendQ exceeded]
lkba has joined #ruby
mikesplain has joined #ruby
mikesplain has quit [Max SendQ exceeded]
lemur has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikesplain has quit [Read error: Connection reset by peer]
<centrx>
jheg, It's really not clear what you mean
<groot_>
it hink that should do it
kedare has joined #ruby
mikesplain has joined #ruby
gigetoo has joined #ruby
<jheg>
no OK so I am building the game tic tac toe and I am at the stage of giving the computer player some sort of inteligence
<centrx>
jheg, Try creating some classes to represent the things you are working with
pu22l3r has joined #ruby
<centrx>
jheg, really, what does an 8x3 multidimensional array have to do with implementing tic tac toe ?
Pharaoh2 has quit [Remote host closed the connection]
<jheg>
so on the computers go I want to check if 2 of the 3 squares contain the players marker 'x' and the other is ' ' and if so assign the key value pair in the hash with 'o'
philcrissman has quit [Ping timeout: 240 seconds]
<jheg>
I was thinking I could pass all arrays into the hash using the arrays elements as the keys to check if there is a match
<centrx>
line.two_marked?
<hilmy>
the last output is : <TraderCoinInfo> Much error, such 502 Bad Gateway (try again in a minute, Shibe is many sorry) groot_ :(
<jheg>
it works well for checking if all? squares in a line are 'x' or 'o' but cannot figure out how to check if 2 contain 'x' and 1 contains ' '
<jheg>
.two_marked?
<jheg>
^?
Magissia has quit [Remote host closed the connection]
<centrx>
Line.all.each { |line| line.mark_third_square(:o) if line.two_marked? }
IceDragon_ has joined #ruby
arya_ has quit [Ping timeout: 250 seconds]
<centrx>
jheg, I understand if this is an exercise in how to work with basic data structures and algorithms at the array level
<centrx>
jheg, But a proper implementation would be object-oriented and abstract the array mechanisms behind a class
<jheg>
I've not reached OO as yet
<centrx>
jheg, Then you could write a line like the above, so that the the logic of what you are trying to do is built into the object/method naming and object/method structure of the code
<groot_>
hilmy: print the response you got.
ghostmoth has joined #ruby
sinkensabe has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
<jheg>
perhaps I am trying to do too much for current skill set
devdazed has quit [Read error: Connection reset by peer]
<centrx>
jheg, I am just trying to understand what it is doing
robustus has quit [Ping timeout: 250 seconds]
<centrx>
jheg, Now that I know it is tic tac toe, so I thought up an implementation in that form
<centrx>
jheg, Let's see how it work with these data structures
<hilmy>
wait groot_
ghostmoth has quit [Read error: Connection reset by peer]
ghostmoth_ has joined #ruby
reset has joined #ruby
sea_local has quit [Remote host closed the connection]
sea_local has joined #ruby
timonv_ has quit [Remote host closed the connection]
<eam>
it's not possible to create a symbol referencing a class method, is it?
IceDragon_ is now known as IceDragon
wald0 has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OffTheRails_ has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
<eam>
as in I want a symbol for File.exists?
Xeago has quit [Remote host closed the connection]
<IceDragon>
eam: try File.method(:exists?)
<IceDragon>
That will give you a Method object that you can call like a proc
gigetoo has joined #ruby
devdazed has joined #ruby
robustus has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
shenk has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 260 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Quit: Mead error: Connection reset by beer]
sectionme has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
shenk has joined #ruby
agrinb has joined #ruby
bobbytwo has quit []
bobbytwo has joined #ruby
Azulinho has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 264 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
borodin has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
razrunelord has joined #ruby
ldnunes has quit [Quit: Leaving]
Kricir has joined #ruby
gigetoo has joined #ruby
<borodin>
totally a noob here - setting up an rpm build system to grab the latest ruby and build and package a binary. When I grab http://cache.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz I get the latest stable code. But how do I know what major.minor.micro to call this? I mean programatically
<borodin>
i.e. does the package contain a version.txt file within it or something?
shenk has quit [Ping timeout: 255 seconds]
agrinb has quit [Ping timeout: 260 seconds]
razrunelord has quit [Remote host closed the connection]
<avi__>
now just paste your password into the channel..
<avi__>
;)
<mutex_>
I'm using rspec 3
dexkiki has quit [Quit: Page closed]
gigetoo has joined #ruby
<avi__>
Too many uses of deprecated 'Filtering by an `:example_group` subhash'. Pass `--deprecation-out` or set `config.deprecation_stream` to a file for full output.
axsuul_ has quit [Read error: Connection reset by peer]
<mutex_>
yes yes, so I attempted this
<mutex_>
but it didn't work
<avi__>
clear up all your deprecated mess and use --deprecation-out /dev/null
kireevco has joined #ruby
<avi__>
try that
<avi__>
(I have never tried it)
<mutex_>
heh
ryanleesipes has quit [Quit: Leaving]
dj_zubehoer has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mutex_>
avi__: ah ha, it works to /dev/null ;-)
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<avi__>
ah good
philcrissman has joined #ruby
<mutex_>
avi__: now I just have to figure out how to pass it via my rake file
sambao21 has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
pasties has quit [Read error: Connection reset by peer]
<zenspider>
Phrogz: I think I worked it out. had to do with an OOOOLD patch of yours in minitest, but it was mostly just my confusion.
<zenspider>
Sorry for the bother
Lewix has joined #ruby
<mutex_>
avi__: yeah I've been readin this page
timonv_ has joined #ruby
pasties has joined #ruby
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
michaeldeol has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
DEA7TH has quit [Ping timeout: 255 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
ringaring has quit [Quit: Leaving]
dblessing has quit [Quit: dblessing]
sharms has quit [Ping timeout: 240 seconds]
zartoosh has quit [Ping timeout: 260 seconds]
<Phrogz>
zenspider: np :)
cuppscakes has quit [Quit: Whoops, AFK.]
msmith_ has quit [Remote host closed the connection]
bearish has quit [Remote host closed the connection]
Mongey has quit [Read error: Connection reset by peer]
sectionme has joined #ruby
sharms has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
renderfu_ has joined #ruby
Aranshada|W has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
stickpin has joined #ruby
havenwood has quit []
nb_bez__ has quit [Quit: Connection closed for inactivity]
ringarin has joined #ruby
sectionme has quit [Ping timeout: 245 seconds]
renderful has quit [Ping timeout: 272 seconds]
halfdan is now known as sickdan
enebo has quit [Quit: enebo]
Cheezebox has joined #ruby
devdaz___ has quit [Quit: Computer has gone to sleep.]
Ilyas_ has quit [Ping timeout: 246 seconds]
gigetoo has quit [Ping timeout: 250 seconds]
lw has joined #ruby
lw has quit [Client Quit]
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
riotjones has joined #ruby
gigetoo has joined #ruby
Kricir has joined #ruby
momomomomo has quit [Quit: momomomomo]
riotjone_ has quit [Ping timeout: 260 seconds]
nanoyak has quit [Client Quit]
shackleford has quit [Remote host closed the connection]
zartoosh has joined #ruby
Soliah has joined #ruby
stickpin has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 264 seconds]
Kricir has quit [Ping timeout: 250 seconds]
zeroNones has joined #ruby
axsuul has joined #ruby
mary5030 has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zettam has quit [Read error: Connection reset by peer]
Avahey_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
OffTheRails_ has joined #ruby
jobewan has quit [Quit: Leaving]
Peter_ has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 245 seconds]
Aranshada|W has joined #ruby
Nahra has joined #ruby
britneywright has joined #ruby
andrewlio has quit [Remote host closed the connection]
gigetoo has joined #ruby
nanoyak has joined #ruby
Peter_ has joined #ruby
butblack has joined #ruby
Chris-_ has joined #ruby
EasyCo has joined #ruby
Soliah has quit [Ping timeout: 260 seconds]
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
geggam has quit [Ping timeout: 250 seconds]
gsd has joined #ruby
agrinb has joined #ruby
fabrice31 has joined #ruby
gsd has quit [Read error: Connection reset by peer]
Aaaal has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
gsd has joined #ruby
sinkensabe has joined #ruby
DrShoggoth has quit [Quit: Leaving]
Eiam has joined #ruby
Norrin has quit [Quit: ""]
mdeboard has joined #ruby
pandaant has quit [Remote host closed the connection]
advorak has joined #ruby
<mdeboard>
Hi everyone. I'm reading the source for ruby-mode.el and am wondering if anyone here recognizes the string "iuwu-mod" or hsa any guesses about what it means in terms of ruby grammar
OffTheRails_ has quit [Ping timeout: 246 seconds]
gigetoo has joined #ruby
<advorak>
When running a query: User.first, how can I prevent rails from grabbing from the sql query cache for that query?
cndiv has joined #ruby
<shevy>
#rubyonrails
IceDragon_ has quit [Quit: Space~~~]
<shevy>
we here know nothing about rails
Chris-_ has quit [Ping timeout: 250 seconds]
<advorak>
sorry
<advorak>
I was in the wrong tab, shevy ;-)
fabrice31 has quit [Ping timeout: 240 seconds]
<shevy>
\o/
TheTopBloke has joined #ruby
treehug88 has quit []
sinkensabe has quit [Ping timeout: 245 seconds]
dj_zubehoer has quit [Remote host closed the connection]
Norrin has joined #ruby
icole has joined #ruby
JBreit has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renderful has joined #ruby
Soliah has joined #ruby
dopie has quit [Quit: Leaving]
sylvanica has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
gigetoo has quit [Read error: Connection reset by peer]
renderfu_ has quit [Ping timeout: 250 seconds]
orolo has quit [Quit: This computer has gone to sleep]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sleepee has joined #ruby
kireevco has left #ruby [#ruby]
GhettoJava has quit [Quit: This computer has gone to sleep]