jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackyalcine has quit [Quit: Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freezey has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
metamaterial has quit [Remote host closed the connection]
afex has quit [Ping timeout: 265 seconds]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nathancahill has joined #ruby
momomomomo has joined #ruby
Rylee has quit [Ping timeout: 245 seconds]
narcan has joined #ruby
* combusean
kicks centos
bthesorceror has joined #ruby
benzrf is now known as benzrf|offline
Rylee has joined #ruby
bthesorceror has quit [Remote host closed the connection]
<arubin>
Hmm.
ddv has quit [Ping timeout: 245 seconds]
<arubin>
Apparently x ||= 1 is shorthand for x || x = 1.
brandon_1 has quit [Remote host closed the connection]
Rylee has quit [Client Quit]
<arubin>
And not x = x || 1.
mrmargolis has joined #ruby
jonno11 has joined #ruby
seich- is now known as Seich
<arubin>
Is this to avoid an unnecessary assignment?
jackyalcine has joined #ruby
rokob has quit [Remote host closed the connection]
ddv has joined #ruby
Picchioni has joined #ruby
Picchioni has quit [Changing host]
Picchioni has joined #ruby
skysploit has joined #ruby
fgo has quit [Remote host closed the connection]
skysploit has quit [Client Quit]
metamaterial has joined #ruby
blackavr has joined #ruby
metamaterial is now known as fjiofewhaio
fjiofewhaio is now known as metamaterial
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
benzrf|offline is now known as benzrf
<benzrf>
arubin: 'parently
sdwrage has quit [Quit: This computer has gone to sleep]
Rylee has joined #ruby
Picchioni has quit [Ping timeout: 255 seconds]
Picchioni1 has quit [Ping timeout: 265 seconds]
freezey has quit [Remote host closed the connection]
yubrew has joined #ruby
bthesorceror has joined #ruby
fgo has joined #ruby
obs has quit [Quit: Saliendo]
nari has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn_ has quit [Remote host closed the connection]
bthesorceror has quit [Remote host closed the connection]
hamakn has joined #ruby
jcs222 has quit [Quit: leaving]
yubrew has quit [Ping timeout: 276 seconds]
Hobogrammer has joined #ruby
aspires has quit []
fgo has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
ekinmur has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
jddj has joined #ruby
<jddj>
Is anyone in here do programming or IT for a living?
<jddj>
Does*
<jddj>
I have a life decision with a career decision.
<jddj>
Not sure what to do.
<jddj>
Would like some quick advice.
<Seich>
I can try to help you x)
<Seich>
I program for a living
ghr has joined #ruby
<Seich>
x)
<jddj>
Ok, one second.
<jddj>
I'll PM you.
nanoyak has quit [Quit: Computer has gone to sleep.]
chrisja has quit [Quit: leaving]
troyronda has joined #ruby
jackyalcine has quit [Excess Flood]
* arubin
refrained from answering because he feared that result.
jacky has joined #ruby
jacky is now known as jackyalcine
metamaterial has quit [Remote host closed the connection]
jackyalcine is now known as jacky
Spami has quit [Quit: This computer has gone to sleep]
butblack has joined #ruby
fsdldl has joined #ruby
metamaterial has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
blackavr has quit [Quit: blackavr]
psyko666 has joined #ruby
Hobogrammer has quit [Ping timeout: 265 seconds]
noob101 has joined #ruby
hamakn has joined #ruby
alexju has joined #ruby
reset has quit [Ping timeout: 240 seconds]
<noob101>
Hello Ruby community! Noob101 is back!
SHyx0rmZ has joined #ruby
<benzrf>
yello
erikruthven has joined #ruby
estaban_ has joined #ruby
<jddj>
benzrf: Hello.
<jddj>
I'm deciding what to do.
troyronda has quit [Remote host closed the connection]
jjbohn has joined #ruby
Gooder`` has joined #ruby
troyronda has joined #ruby
crzrcn has quit [Quit: Leaving.]
Doppp has quit [Quit: Lost terminal]
browndawg has joined #ruby
supermarin_ has joined #ruby
butblack has left #ruby [#ruby]
estaban has quit [Ping timeout: 258 seconds]
metamaterial is now known as rubydubydoo
<jddj>
What woudl you do if you had a health issue that could come up. Stay where you live and live somewhere you hate? But Have the opportunity to move into a position where the health issue wouldn't be an issue.
<jddj>
VS.
<jddj>
Moving to a city you never lived in.
<jddj>
Lose chance at IT job.
<jddj>
But, have the chance to live somewhere where you can meet people and socialize.
<jddj>
But, could lose you job if health issue comes up.
rubydubydoo is now known as RubyDubyDoo
<noob101>
Hello. This is a Ruby game I worked on for approximately two+ months. I have made many revisions to it and here it is. Can anyone look at it and tell me how well I did? I did this project to practice my programming skills cause I am serious now. URL : http://pastie.org/9102211
evenix has joined #ruby
estaban_ has quit [Ping timeout: 240 seconds]
fsdldl has quit [Read error: Connection reset by peer]
ekinmur has quit []
RubyDubyDoo is now known as metamaterial
estaban has joined #ruby
jjbohn has quit [Ping timeout: 252 seconds]
troyronda has quit [Ping timeout: 252 seconds]
johncjensen has joined #ruby
twiceaday has quit [Ping timeout: 252 seconds]
IceDragon has quit [Ping timeout: 265 seconds]
supermarin_ has quit [Ping timeout: 252 seconds]
skysploit has quit [Quit: This computer has gone to sleep]
bthesorceror has joined #ruby
Doppp has joined #ruby
mozzarella is now known as MOZZARELLA
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
bthesorceror has quit [Remote host closed the connection]
x1337807x has joined #ruby
Slavox|AFK is now known as Slavox
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
metamaterial has quit [Quit: Leaving.]
tum_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
ekinmur has joined #ruby
brandon_ has joined #ruby
eynj has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
endash has quit [Quit: endash]
troyronda has joined #ruby
ekinmur has quit [Client Quit]
MOZZARELLA is now known as mozzarella
metamaterial has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisseaton has quit []
IceDragon has joined #ruby
axisys has joined #ruby
mehlah has quit [Quit: Leaving...]
endash has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
axisys has quit [Changing host]
axisys has joined #ruby
rezzack has joined #ruby
danijoo has joined #ruby
psyko666 has quit [Read error: Connection reset by peer]
mengu has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
Lightsword has joined #ruby
metamaterial has quit [Remote host closed the connection]
metamaterial has joined #ruby
psyko666 has joined #ruby
<shevy>
noob101 it shows that you did not understand simple concepts
troyronda has quit [Remote host closed the connection]
<shevy>
noob101 why do you use this: puts "#{key_help}"
troyronda has joined #ruby
yubrew has joined #ruby
endash has quit [Quit: endash]
goleldar has quit [Remote host closed the connection]
<alpha123>
I was having this problem yesterday, actually. My solution was to rename some things but that doesn't seem applicable here.
<nhmood>
Sure, I'll give that a shot
<nhmood>
looks like no extra calls are needed?
yubrew has joined #ruby
<alpha123>
right, just put it in your Gemfile, bundle install, and require 'dm_noisy_failures'
mrmargolis has quit [Remote host closed the connection]
eynj has left #ruby [#ruby]
<nhmood>
well that is super strange
<nhmood>
so now the #save doesn't return false
<nhmood>
but when I look at @user.tests it is empty
<alpha123>
Right, it should throw an exception
<nhmood>
Nope, no exceptions
yubrew has quit [Ping timeout: 255 seconds]
Lightsword has quit [Ping timeout: 265 seconds]
<nhmood>
whoops, raise_on_save_failure was false
<alpha123>
that shouldn't matter
<alpha123>
dm-noisy-failures disregards that
<alpha123>
Well. My solution was to rename `has n, :modules, 'PramsModule', through: Resource` to `has n, :prams_modules, through: Resource` which should theoretically be the same but aren't
<alpha123>
I was having the exact same problem
larissa has quit [Quit: Leaving]
<alpha123>
I doubt that applies to you, though
troyronda has quit [Ping timeout: 265 seconds]
<nhmood>
yeah i'm surprised this doesnt work since it is a simple has n relationship without a "through" relation or anything
Lightsword has joined #ruby
<nhmood>
so when raise_on_save_failure is true, i get an exception
<alpha123>
Just to confirm, both model files are loaded before you call DataMapper.finalize, right?
<nhmood>
when it is off, it returns true
<nhmood>
I believe so, let me double check
jason__ has quit [Remote host closed the connection]
InfraRuby has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<nhmood>
yeah, both model files are loaded before DataMapper.finalize
echevemaster has quit [Ping timeout: 264 seconds]
<nhmood>
i have this recursive_require that goes through and requires all and I added a print and both test and user are required
<nhmood>
the order that they are required shouldn't matter right?
<alpha123>
right
<alpha123>
*sigh* DataMapper is pretty weird/a bit buggy sometimes. I've had numerous problems with it. :| Hm... can you try adding a :child_key => [:id] to both sides of the relationship?
<nhmood>
and i have DataMapper.finalize then DataMapper.auto_upgrade!
<nhmood>
sure i'll try that
<alpha123>
I usually put DataMapper.auto_upgrade! in a rake task
lukec has joined #ruby
BSaboia has quit [Ping timeout: 255 seconds]
Doppp has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
<nhmood>
after adding the child key it looks like the Test save goes through
<nhmood>
As in when I try pp @test I get #<Test @id=1>
<alpha123>
DataMapper is kind of derpy, but lovable.
<nhmood>
but it doesn't seem like the user is associated
<nhmood>
since before pp @test would give
<nhmood>
#<Test @id=nil @user_id=1>
<nhmood>
and when I try to see what @user.tests is it returns []
<nhmood>
empty
<alpha123>
Does @test.user give anything?
<alpha123>
...oh, dang
supermarin_ has joined #ruby
<alpha123>
Arg, this is annoying. Did you find anything useful through Google?
<nhmood>
interestingly, @test.user returns the correct user
jack_rabbit has joined #ruby
<alpha123>
:|
<nhmood>
lolol what is going on
<nhmood>
is it strange that when i try looking at @user the tests are never even listed as a property? (with and without the :child_key param)
<alpha123>
Nah
<alpha123>
it's a method, not an instance variable
Lightsword has quit [Remote host closed the connection]
<nhmood>
I see
marcdel has joined #ruby
oo_ has quit [Remote host closed the connection]
<alpha123>
hm... let me think here. I can't claim to be a DataMapper expert but I've been wrestling it a lot recently
<nhmood>
I tried looking around online for some simple examples and I'm not really doing anything crazy
supermarin_ has quit [Ping timeout: 252 seconds]
<nhmood>
it seems pretty close to what the datamapper documentation says
<nhmood>
tried googling for what to do when the ValidationErrors are empty but not much
<nhmood>
interestingly, if I do a save! (avoid validations) it goes through fine
<nhmood>
but that doesn't seem like the right approach ha
<alpha123>
No, generally if you have to use save! it's bad
<alpha123>
normally when the validations errors are empty it means saving an associated model failed
<alpha123>
but not always
<nhmood>
is there any way to add a test through user?
<alpha123>
user.tests << @test
<nhmood>
although i don't know how that would help, maybe just bring out any errors that are masked through the association?
<nhmood>
but I guess if the @test doesn't save then that wont help much
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
skysploit has quit [Quit: This computer has gone to sleep]
<alpha123>
Right. Hm, it's odd that it's not throwing an exception. :|
oo_ has joined #ruby
rjhunter has joined #ruby
coderhs has quit [Ping timeout: 276 seconds]
<nhmood>
yeah its very strange
<nhmood>
i tried changing the name around too to make sure test wasnt conflicting with anything
<nhmood>
but that had hte same problems
snuffeluffegus has quit [Remote host closed the connection]
<alpha123>
DataMapper is amazing when it works and really sucky when it doesn't, because figuring out what went wrong in impossible. :P
dik_dak has quit [Quit: Leaving]
<nhmood>
haha i've come to learn the hard way
<alpha123>
I have a pretty complicated setup right now with DataMapper and somehow it's all working and it's awesome, but it took quite some work to get there. :(
locriani has joined #ruby
<alpha123>
Hm... Did @user.tests << @test do anything?
<alpha123>
BTW, protip: test your models in pry or irb, it's much easier
lurch_ has joined #ruby
lurch_ has quit [Client Quit]
FxK has joined #ruby
jjbohn has joined #ruby
Milly_Bays has quit [Quit: Leaving]
<alpha123>
nhmood: Well, I have to go, but good luck. DataMapper can be very annoying, but experiment a lot and you'll get through it. That said, when it works, it's the best ORM, hands-down.
dukz has quit [Remote host closed the connection]
fgo has joined #ruby
FxK has quit [Remote host closed the connection]
FxK has joined #ruby
jjbohn has quit [Ping timeout: 252 seconds]
Celm has quit [Remote host closed the connection]
slowcon has joined #ruby
bluOxigen has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
kies has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
<nhmood>
thanks for the help alpha123 !
linojon has quit [Quit: linojon]
sambao21 has quit [Client Quit]
skysploit has quit [Client Quit]
linojon has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
jeremy_w_rowe has quit [Quit: jeremy_w_rowe]
Lewix has quit [Remote host closed the connection]
servatoo has quit [Remote host closed the connection]
locriani has quit [Ping timeout: 252 seconds]
servatoo has joined #ruby
locriani has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
replay_ has joined #ruby
servatoo has quit [Ping timeout: 252 seconds]
emaxi has quit [Remote host closed the connection]
<crome>
also, entering magic phrases such as 'programming ruby books' or 'ruby ide' does wonders
<agent_white>
^
<crome>
I mean in google
<agent_white>
^^
Gooder`` has quit [Ping timeout: 252 seconds]
<Scnt>
I tried, but I wanted a standard
<agent_white>
Though, you shouldn't need an 'IDE for X language'
<agent_white>
Your IDE/text-editor should be your bread-and-butter for ALL your programming needs.
oo_ has quit [Remote host closed the connection]
<crome>
agent_white: there are plenty of pages with some ongoing discussion about what editors people use
<crome>
its good for a start
<agent_white>
crome: Yeah, but again, it's like asking "what food do you like?" -- So varied.
<Scnt>
Also is it possible to support runtime debugging?
<Scnt>
Eer do any have support?
<agent_white>
Scnt: You should not worry about that if you are still looking about how to run the program.
brucelee_ has joined #ruby
JohnBat26 has joined #ruby
lsmola has joined #ruby
<agent_white>
Figure out what a horse is before figuring out how to make it jump.
<crome>
ew, horses
<agent_white>
How about llamas?
zigomir has quit [Ping timeout: 276 seconds]
<agent_white>
Scnt: Again, don't think about 'support' unless you need it. More than likely, the issue will be PEBCAK.
<Scnt>
Doesn't matter, the ability to see to see what's happening to variables is important.
<Scnt>
Real time
AlexRussia has quit [Read error: Connection reset by peer]
<Scnt>
and doing line by line debugging
<agent_white>
Scnt: http://rubyinstaller.org -- This will answer all your questions about getting it installed.
supermarin_ has quit [Ping timeout: 245 seconds]
<agent_white>
Scnt: Are you familiar with Ruby's REPL, irb?
<agent_white>
Or it's offshoot, pry?
AlexRussia has joined #ruby
<crome>
Scnt: seems like you are used to a language or programming environment and you are trying to see if ruby can be made to work exactly like that
<crome>
its a wrong approach
<agent_white>
^ Getchur hands dirty first! Dirt ain't the same everywhere.
krz has joined #ruby
jprovazn has joined #ruby
<Scnt>
hmm
oo_ has joined #ruby
dukz has quit [Remote host closed the connection]
m00nlight has joined #ruby
<agent_white>
Scnt: Just take one thing atta time.
<agent_white>
Scnt: Namely, you need to have Ruby installed and be able to run ANY Ruby script/program.
<agent_white>
Only THEN can you worry about debugging. And only THEN should you worry about your IDE.
jamto11_ has quit [Remote host closed the connection]
nomenkun has joined #ruby
senayar has joined #ruby
Hanmac has joined #ruby
<agent_white>
Scnt: Besides that, welcome to the land of Ruby! Hope you make sure to stick around in here since there are plently of friendly folks willing to help you out :)
<Scnt>
Thanks
<Scnt>
Truthfully I am trying to decide if I want to learn Ruby
<crome>
you cant really decide before you know something about it
Hanmac1 has quit [Ping timeout: 252 seconds]
<agent_white>
^ This! Gotta be pragmatic about your languages.
<crome>
also, looks like you want to use it for something specific
<agent_white>
Personally, after discovering Ruby's built-in REPL, irb, I was hooked!
<crome>
Scnt: any reason why you picked ruby?
jjbohn has joined #ruby
rkr090 has quit [Quit: Leaving]
<Scnt>
Something different.
fabrice31 has joined #ruby
<crome>
different from what?
mr_snowf1ake has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
dukz has joined #ruby
crzrcn has joined #ruby
jcs222 has quit [Read error: Connection reset by peer]
<Scnt>
C
zigomir has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
<robup>
Hello, quick question, I would like to match a string (test="f00b4r") using a regex only if there's something after the "=" and not only on the "test=" part, any idea?
<crome>
Scnt: if you have more specific questions, feel free to ask, I (and many others here) will be happy to help, but I cant really figure out if you like ruby or python more
<crome>
its up to you
<Scnt>
I know.
<Scnt>
Does ruby have any scientific computing libraries or 3d rendering?
<robup>
in fact this is just a check on an if condition; if there's "test=something" then continue, I just don't want to match if the given string is "test=" and I'll not use the "something" value.
<crome>
I used to use an opengl library but it was quite a while ago
<crome>
I dont know about its current state
Kuda has joined #ruby
xcv_ has joined #ruby
Xeago has joined #ruby
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
emaxi has quit [Ping timeout: 252 seconds]
senayar has quit [Remote host closed the connection]
<robup>
crome: I don't understand your regex (the ?<== part)
senayar has joined #ruby
subraminion has joined #ruby
Biohazard has quit [Ping timeout: 245 seconds]
Biohazard has joined #ruby
helpD has joined #ruby
psyko666 has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peret has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
spacebug has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<b2nary>
anyone here familiar with the ruby gem? it seems i updated, now nothing works. I cant find a replacement for "user_timeline" atleast the client doesnt know it
<atmosx>
fohan: you sue it's not on google's side?
havenwood has quit [Remote host closed the connection]
<fohan>
yep
timonv has joined #ruby
<fohan>
with my txt file, I get a 400 bad request
rdark has joined #ruby
<atmosx>
maybe they have a limit in filesize?
ValicekB has joined #ruby
<fohan>
mmm
<atmosx>
of they read the file file-extensio. trying renaming the file to txt
<atmosx>
to flac
<fohan>
I would be surprised
Celm has joined #ruby
<fohan>
I wrote the same script in python, no problem
<fohan>
I'm trying .flac to .txt ;)
Hanmac1 has joined #ruby
<fohan>
same error
Shidash has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
<fohan>
maybe it is the multipart which is broken
oo_ has joined #ruby
Kuda has quit [Quit: Sleep]
Hanmac has quit [Ping timeout: 240 seconds]
brucelee_ has quit [Ping timeout: 240 seconds]
fannye has joined #ruby
Kuda has joined #ruby
frem_ has quit [Quit: Connection closed for inactivity]
Celm has quit [Ping timeout: 264 seconds]
<fohan>
(my filesize is about 50kb)
havenwood has joined #ruby
himsin has joined #ruby
psyko666 has joined #ruby
kitak_ has joined #ruby
cescalante is now known as ce_afk
Speed has joined #ruby
marcdel has joined #ruby
joonty has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
anarang has quit [Ping timeout: 264 seconds]
Kuda has quit [Quit: Byebye!]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
sk87 has joined #ruby
diegoviola has quit [Remote host closed the connection]
m3nTe has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
Alessy89 has joined #ruby
<Alessy89>
:)
sigurding has joined #ruby
johncjensen has quit [Remote host closed the connection]
Alessy89 has quit [Client Quit]
decoponio has joined #ruby
Alessy89 has joined #ruby
marcdel has quit []
burgess has quit [Quit: ^zzz]
kyb3r_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
timgauthier has joined #ruby
jonno11 has joined #ruby
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
<timgauthier>
ugh slow internet
<timgauthier>
sup?
oo_ has quit [Remote host closed the connection]
<timgauthier>
what? is it slow net or am i really 1 of 2?
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
Guest29803 has joined #ruby
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
Alessy89 has quit [Client Quit]
shevy has joined #ruby
anarang has joined #ruby
havenwood has quit []
joonty has joined #ruby
Guest29803 has left #ruby [#ruby]
mrmargolis has joined #ruby
trautwein has quit [Read error: Connection reset by peer]
codenapper has joined #ruby
<robup>
I have an Array on which I'm actually doing a .map but I would like to [skip the first element (index 0) / start at the index 1] of that Array. Is there a clean way to do that?
armyriad has quit [Quit: Leaving]
lkba has quit [Ping timeout: 264 seconds]
<crome>
array[1..-1].map
<robup>
thanks
subraminion has quit [Quit: Computer has gone to sleep.]
banister has joined #ruby
mrmargolis has quit [Read error: Operation timed out]
codenapper has quit [Ping timeout: 240 seconds]
karupa is now known as zz_karupa
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
sigurding has quit [Ping timeout: 276 seconds]
marcellus has joined #ruby
phansch has joined #ruby
sigurding has joined #ruby
kaspergrubbe has joined #ruby
ktun_ has joined #ruby
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
kitak_ has quit [Read error: Connection reset by peer]
crzrcn has joined #ruby
RaptorJesus has quit [Remote host closed the connection]
ktun has quit [Ping timeout: 276 seconds]
kitak_ has joined #ruby
yubrew has joined #ruby
dukz has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
zoraj has quit [Remote host closed the connection]
zoraj has joined #ruby
Emmanuel_Chanel has joined #ruby
oo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
zoraj has quit [Ping timeout: 265 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
Hanmac has joined #ruby
anaeem1 has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
RubyPanther has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ce_afk is now known as cescalante
nolic has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
Celm has joined #ruby
mikepack has joined #ruby
lolmaus has joined #ruby
zeeraw has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Veejay has joined #ruby
poikon has quit []
<Veejay>
Hi, I'm trying to use Pathname#delete to unlink a file and I'm getting the following error Exception `Errno::ENOTDIR' at /home/dotcloud/git-1b9288b/app/models/static_file.rb:71 - Not a directory - /home/dotcloud/git-1b9288b/size_6_asdasdas68d7_39ad7a6165153c30.jpg
<Veejay>
The documentation specifies that Pathname#delete works on both directories and files, so why is it complaining that the path is not a directory?
<Veejay>
Does it mean that part of the path is not a directory? i.e. that the path might be invalid?
jack_rabbit has quit [Ping timeout: 252 seconds]
compleatang has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 240 seconds]
Celm has quit [Ping timeout: 240 seconds]
<popl>
Veejay: Can you paste your code to the pastebin URL in the topic?
<dcorbin>
I'm using popen3 to feed a password to another process I'm launching when it prompts.. This works fine in cron, and in my IDE, but when I run it at the terminal the underlying process writes "Enter password" to my tty and waits for input. How can I trick it into not realizing it's on a terminal?
<dcorbin>
Frankly, I don't understand how it can tell, since it's given 3 "pipes" for stdin, stdout and stderr that are NOT tied to /dev/tty
Speed has joined #ruby
fgo has quit [Remote host closed the connection]
maximski has joined #ruby
rebelshrug has joined #ruby
aspiers has quit [Quit: WeeChat 0.4.1]
mikepack has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
mehlah has joined #ruby
jackju has quit [Ping timeout: 240 seconds]
Speed has quit [Ping timeout: 265 seconds]
kaspergrubbe has quit [Remote host closed the connection]
ce_afk is now known as cescalante
OliverJAsh has joined #ruby
<OliverJAsh>
on Mac: i've installed rbenv and i am now using an rbenv version of ruby. however, it seems that gem is still using the system version. if i do `which gem` i get `/usr/bin/gem`
<Fractional>
Why am I getting an error from this? unexpected => expecting }
<crome>
because the syntax is not correct
krz has quit [Quit: WeeChat 0.4.3]
Hanmac1 has joined #ruby
<crome>
why do you use Hash.new?
<crome>
just use a hash literal there
anaeem1_ has quit [Ping timeout: 264 seconds]
sente has joined #ruby
qba73 has quit [Read error: Connection reset by peer]
alexju has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
<Fractional>
crome: literal?
relix has joined #ruby
<workmad3>
Fractional: {:a_hash => "literal"}
<crome>
something = { 'a' => 0, 'b' => 1 }
Hanmac has quit [Ping timeout: 240 seconds]
<Fractional>
Oh thank you!
<workmad3>
Fractional: the problem you're having is that Hash.new{} doesn't interpret the {} as a hash... it interprets it as a block... and then the 'code' in that block is invalid
<Fractional>
Workmad3: Thank you! :)
qba73 has joined #ruby
jxf has joined #ruby
Bira has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
joonty has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
anaeem1 has joined #ruby
anaeem1_ has quit [Ping timeout: 276 seconds]
<rdark>
any idea why a Process::UID.change_privilege works, but a Process::GID.change_privilege results in a Errno::EPERM ?
<shevy>
"The JavaScript that Coffee-Script produces is frankly quite ugly. Specifically, it does not reuse temporary variables, so you end up with _len, _len2, _len3 and so on:"
mikepack has quit [Ping timeout: 240 seconds]
<shevy>
Why he did not pick coffeescript: "In the end, though, the biggest factor, and this goes for Coffee-Script as well as coco as well as any other compile-to-js language, is that it alienates possible contributors."
saarinen has quit [Ping timeout: 240 seconds]
phansch has quit [Ping timeout: 264 seconds]
<shevy>
so timgauthier learn from him!
<shevy>
ack timgauthier is not here
freezey has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
sigurding has quit [Read error: Connection reset by peer]
himsin has quit [Quit: himsin]
crzrcn has joined #ruby
robbyoconnor has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Fractional has joined #ruby
sailias has joined #ruby
<Fractional>
tobiasvl: That solution is giving me issues.
einarj has quit [Remote host closed the connection]
Morkel_ has joined #ruby
Morkel has quit [Read error: Connection reset by peer]
Morkel_ is now known as Morkel
sigurding has left #ruby [#ruby]
RaCx has quit [Quit: Computer has gone to sleep.]
marr has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
andy____ has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
tobago has quit [Remote host closed the connection]
RaCx has joined #ruby
Lewix has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
eka has joined #ruby
mary5030 has joined #ruby
servatoo has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
bean has joined #ruby
ghr has joined #ruby
<webgen>
hey guys
alex88_ has joined #ruby
p0wder_ has joined #ruby
<webgen>
I have array = Array.new(5), can u give me a short example on how to insert an int inside?
lmickh has joined #ruby
charliesome has joined #ruby
alex88 has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 276 seconds]
yubrew has joined #ruby
yacks has joined #ruby
lukec has quit [Ping timeout: 276 seconds]
<tobiasvl>
array << int
<tobiasvl>
adds it to the end
Tuxy has quit [Quit: leaving]
<tobiasvl>
array[2] = int
<tobiasvl>
adds it at index 2
<seich>
webgen: array[0] = 1
<seich>
nvm x)
_lazarevsky has joined #ruby
<p0wder_>
I'm doing exercises on codecademy to learn ruby. im at an exercise where I'm pretty sure im correct but it says im not. the objective is: to skip through the range 1 thru 18 and only print the even numbers. Also, use the "next" keyword. here is my code: for i in 0..18 next if i % 2 == 1
andy____ has quit [Quit: Leaving...]
<p0wder_>
puts i
<p0wder_>
end
<webgen>
seich i tried that but its not doing it :S
Kricir has joined #ruby
<_lazarevsky>
hello fellow earthlings
<p0wder_>
can anyone help?
tvw has quit []
<webgen>
p0wder_, i am actually am in same boat lmfo
<tobiasvl>
p0wder_: using a for loop isn't very ruby-like
sdwrage has joined #ruby
<p0wder_>
whats a more common loop for ruby?
<webgen>
p0wder_, do loop do ------ end
tjsousa has joined #ruby
<p0wder_>
k
<tobiasvl>
that's not very ruby-like either :P
<_lazarevsky>
I need to compare two strings
<_lazarevsky>
one I get from the DB and the other from an excel file
<_lazarevsky>
the one returned from the excel file
<webgen>
tobiasvl, i am begginer too :D well what is ruby like then teach us :D
foooobear has joined #ruby
<_lazarevsky>
contains double quotes!!!!
<tobiasvl>
p0wder_ webgen: (1..18).each { |i| next if i % 2 == 1; puts i }
<_lazarevsky>
and other one escapes them
<seich>
wouldn't using 1.upto(18)
<p0wder_>
webgen: your at the same exercise on codecademy?
vpretzel has quit [Remote host closed the connection]
<_lazarevsky>
I need to be able to compare them and see if they're the same string
<_lazarevsky>
I've been stuck on this for some time now.. any help would be greatly appreaciated
vpretzel has joined #ruby
<tobiasvl>
or even better: (1..18).each { |i| next if i.odd?; puts i }
<tobiasvl>
no need to use %
<_lazarevsky>
"Tackles issues when they're discovered even when they're \"not their job\" vs."Tackles issues when they’re discovered even when they’re “not their job”. "
<DefV>
puts i if i.even?
yubrew has quit [Ping timeout: 276 seconds]
<tobiasvl>
DefV: yeah except they had to use next
jrhorn424 is now known as zz_jrhorn424
tagrudev has quit [Remote host closed the connection]
x1337807x has joined #ruby
<DefV>
ic
<p0wder_>
tobiasvl: the error it gave me was: (ruby):1: void value expression
<p0wder_>
next if i % 2 == 1
<p0wder_>
^
<DefV>
silly task
locriani has joined #ruby
xaq has joined #ruby
<webgen>
p0wder_, ye i am on same chapter haha i am one exercise ahead and i am stuck too lmfo
<tobiasvl>
p0wder_: strange. works here
s2013 has joined #ruby
<p0wder_>
haha strange all right
<p0wder_>
where does var i get set equal to the number?
<tobiasvl>
|i|
Bira has quit [Remote host closed the connection]
<p0wder_>
ok
RaCx has quit [Quit: Computer has gone to sleep.]
Slavox is now known as Slavox|AFK
x1337807x has quit [Ping timeout: 240 seconds]
<p0wder_>
tobiasv1: you still have the code the exercise 9/18?
rezzack has quit [Read error: Operation timed out]
RaCx has joined #ruby
sdelmore has quit [Quit: Leaving.]
<p0wder_>
I hate not having completed an exercise before moving forward
<tobiasvl>
(1..18).each { |i| next if i.odd?; puts i }
<tobiasvl>
that didn't work?
sdwrage has quit [Quit: This computer has gone to sleep]
<tobiasvl>
>> (1..18).map { |i| next if i.odd?; i }.compact
<p0wder_>
that totally works. just like my original code. but the error that pops up is that, "It looksl ike your loop doesn't print out the numbers 18 to 0"
Bira has joined #ruby
<tobiasvl>
ah well my range is (1..18)
<tobiasvl>
change it to (0..18) :P
cpruitt has quit [Quit: cpruitt]
jeremy_w_rowe has joined #ruby
jeremy_w_rowe has quit [Client Quit]
rmorello is now known as rmorello|917
<p0wder_>
yup... same damn error
<tobiasvl>
gist it
dangerousdave has joined #ruby
<p0wder_>
im thinking there is an error on codecademy's part
<p0wder_>
i dont use github or gist much. any format i should abide by when posting?
sk87 has joined #ruby
<tobiasvl>
just paste your code
<p0wder_>
k, thanks
aganov has quit [Quit: Leaving]
andy___ has joined #ruby
<tobiasvl>
and then give us the url
chipotle has joined #ruby
danshultz has quit []
jamto11 has joined #ruby
Slavox|AFK is now known as Slavox
<shevy>
hey atmosx know what would be cool? a de-centralized system working with biological information
danshultz has joined #ruby
peret has joined #ruby
fgo has joined #ruby
tacos1de has quit [Remote host closed the connection]
tacos1de has joined #ruby
evenix has joined #ruby
Darryl has joined #ruby
mrevd has joined #ruby
danshultz has quit [Client Quit]
<shevy>
atmosx like you input some sequences and it spits out to you a lot of information based on various different remote (and perhaps local ones as well) database, and then presents this to you in a lot of useful analyzed data
<p0wder_>
your code is great, it works but codecademy is still giving me that error. maybe i need to just move on or get a good ruby book. ??
phansch has joined #ruby
locriani has quit [Ping timeout: 265 seconds]
<webgen>
p0wder_, who knows what codeacad wants ...
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<tobiasvl>
p0wder_: well add the entire exercise text in a comment
<tobiasvl>
we've already had to reverse the range and add 0
<tobiasvl>
let's just see the actual requirements
lw has quit [Quit: s]
jds has quit [Quit: Connection closed for inactivity]
<p0wder_>
k
Bruno_ has joined #ruby
zoraj has quit [Remote host closed the connection]
timgauthier has joined #ruby
<p0wder_>
done
ghr has quit [Ping timeout: 264 seconds]
geggam has joined #ruby
<tobiasvl>
p0wder_: ah, they want you to use a for loop… morons. anyway, replace `puts` with `print` I guess. the former adds a newline but they might want "181614121086420" to be the actual output
jsaak has joined #ruby
<tobiasvl>
if they're idiots
<p0wder_>
ill give it a shot
crzrcn has joined #ruby
<timgauthier>
yo yo
<timgauthier>
who's idiots? I have pitchfork. lets go
<webgen>
lol thats similar problem I had just earlier
<p0wder_>
tho i have used their code and made it print the "correct output"
Asher has quit [Quit: Leaving.]
<tobiasvl>
timgauthier: codecademy might be
<tobiasvl>
not sure yet
<timgauthier>
ah
<timgauthier>
:D
<timgauthier>
sweet
<timgauthier>
so don't pay for a course from them?
<timgauthier>
frick, i hate going for walks here. you always have to go and check yourself for ticks, a 20 minute walk becomes an hour long ordeal because of those fuckers
<tobiasvl>
timgauthier: where do you live?
<p0wder_>
tobiasv1: so there's no confusion, will u put the code you would use onto the gist please? because i'm pretty sure i've done that
<timgauthier>
I'm in a small town in Germany
<tobiasvl>
timgauthier: Night Vale?
<tobiasvl>
ah ok
<timgauthier>
haha :P
Bruno_ has quit [Ping timeout: 264 seconds]
<webgen>
timgauthier, neo nazis bothering u or what ? :D
<timgauthier>
naw, just ticks bro
<timgauthier>
why would you go directly to that webgen ? thats kind of offensive
RaCx has quit [Quit: Computer has gone to sleep.]
lkba has quit [Ping timeout: 252 seconds]
<webgen>
timgauthier, i know, i did it on purpose but just a joke, i have high regard for germans :P
apeiros has quit [Remote host closed the connection]
<p0wder_>
germany is forever shrouded by its past smh.
<p0wder_>
In terms of time, it wasn't very long ago.
<webgen>
ok i ll create a philosophy channel one sek, jk lmfo :D
<timgauthier>
germans have tons and tons of shame about something that many of them had very little ability to stop once it started. and then east germans have that shame plus all the crap done to them under the GDR
<timgauthier>
but eh
<tobiasvl>
DON'T MENTION THE WAR
<timgauthier>
i like to draw pictures
<p0wder_>
YOU DID TOBIA
dukz has joined #ruby
<timgauthier>
ok its not that bad :P
locriani_ is now known as locriani
<p0wder_>
I'm American and I have enough shame for what happened to the Indians. Only they try to cover it up in history books
j416 has joined #ruby
_maes_ has joined #ruby
<p0wder_>
tobiasv1: thanks for the help man. To this point we didn't even learn how to reverse iterate but they expected it
<tobiasvl>
weird
jprovazn is now known as jprovazn_afk
<shevy>
who of you got politics into #ruby
dima__ has joined #ruby
<j416>
o/ can I somehow make #to_json convert my objects to json objects? I tried implementing #to_hash on my class but to no avail :/
<webgen>
anyways i have a on-topic question, 10.times { print " bla "} prints bla 10 times and then int 10 follows at the end, why does int 10 gets printed :S ?
<shevy>
was it webgen
<p0wder_>
are there no kudos or ups on that gist.github
crystal77 has quit [Quit: Computer has gone to sleep.]
<p0wder_>
?
ghr has joined #ruby
ponga has quit [Read error: No route to host]
<j416>
webgen: in irb/pry?
<shevy>
webgen what means "int 10" ?
<tobiasvl>
webgen: it's returned
adamski2600 has joined #ruby
<webgen>
on codeacad
flops has quit [Ping timeout: 240 seconds]
<tobiasvl>
p0wder_: hehe, no sorry
<j416>
webgen: that'll print the result, suffix with semicolon to suppress it
<shevy>
huh what is codeacad
RaCx has quit [Client Quit]
<j416>
(usually)
<shevy>
can't you use irb webgen
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<p0wder_>
thanks again
<crome>
j416: just overwrite the to_json method on your objects
<j416>
crome: for real?
<shevy>
webgen the only real way to "simulate" ruby is to just put the code into a .rb file; you won't see any 10 there
<webgen>
shevy i can, ok i ll check in irb :D ...
tris has joined #ruby
apeiros has quit [Ping timeout: 265 seconds]
<shevy>
\o/
<crome>
j416: depends entirely on what you want to do
<tobiasvl>
webgen: print prints the string, but the block returns 10. return value is not the same as output
<shevy>
irb is sometimes a bit weird, keep that in mind, but 99,9% you will love it webgen
<timgauthier>
shevy i blame you for the war anyhow
flops has joined #ruby
<webgen>
shevy i dont know maybe i shouldnt trust codeacad its just too retarded in things
<happytux>
hi!!
<j416>
crome: I have a simple object that I want to represent as json, just that
p0wder_ has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<keystonelemur>
Pry wins
<shevy>
timgauthier no, we sent the guy away. we do that all the time, remember schwarzenegger
Xeago has quit [Remote host closed the connection]
<webgen>
ye same in irb : :::::: bla bla bla bla bla bla bla bla bla bla => 10
<j416>
crome: the object can be instantiated by MyClass.new(hash) (where hash is the result from JSON.parse)
<keystonelemur>
IRB doesn't have nearly as much power
<timgauthier>
oh yeah.. good point :P
<happytux>
Ant allows parallel mode for FileLists where the file paths are joined with spaces and given to the exec.
<timgauthier>
don't use irb
<timgauthier>
use pry
<shevy>
timgauthier he said he'll be back, but he is not coming back to his home :D
roland has joined #ruby
<happytux>
Can rake do this, too?
<timgauthier>
haha shevy :P
<keystonelemur>
implied block returns, at the end of that there's a 10
<j416>
crome: what I'm trying to do is convert my object to and from json.
blackmesa has joined #ruby
<timgauthier>
he'll make it middle america
<happytux>
The exec allows multiple file paths, I want to pass it all file paths together.
<shevy>
webgen yep, irb returns something by default; if you put into .rb file, you won't have that behaviour
sambao21 has quit [Quit: Computer has gone to sleep.]
<crome>
j416: in that case defining to_json on it works
<webgen>
shevy, kk thanks roger that
<keystonelemur>
You still will, rather it just won't be shown
<shevy>
.rb files are the only true way
mengu has joined #ruby
<j416>
crome: thanks. I'll google a bit and possibly end up doing that.
mengu has quit [Changing host]
mengu has joined #ruby
<keystonelemur>
that's the return value of the function
<timgauthier>
why is my localhost so slow at reloading :(
<keystonelemur>
which IRB will always show
<keystonelemur>
unless you tack a semicolon on the end of the statement
<keystonelemur>
well, at least that works in pry.
kinginky_ has quit [Read error: Connection reset by peer]
kinginky has quit [Read error: Connection reset by peer]
<shevy>
if you tack a semicolon at it in irb
<keystonelemur>
Try REPL development in Pry
<webgen>
timgauthier, which host and webserver do u use? i had problem with windows/apache , was too slow too
<shevy>
it won't do anything in irb :D
<timgauthier>
i'm on mac
dima__ has quit [Ping timeout: 252 seconds]
kinginky__ has quit [Read error: Connection reset by peer]
<timgauthier>
annnnd i'm running webrick i believe
<shevy>
because it thinks there'll be more input
<keystonelemur>
Pry still beats IRB hands down for me.
WishBoy has joined #ruby
<webgen>
keystonelemur, i dont even know whats pry so :S ... :D
<shevy>
people will more likely have irb available
<happytux>
anyone? :(
<keystonelemur>
gem install pry
<keystonelemur>
done
<shevy>
if you have system access
<keystonelemur>
Dir.glob
papercode has quit [Ping timeout: 240 seconds]
<keystonelemur>
or RVM
<webgen>
keystonelemur, only in a necessity :D i dont ache my head with tool floods lol
<shevy>
"One thing to note about Biopython is that it often provides multiple ways of ?doing the same thing.?"
<workmad3>
jacobsmith: they can be longer than ruby programs once you give a fully qualified method name including packages and class :D
<shevy>
"Things have improved in recent releases, but this can still be frustrating as in Python there should ideally be one right way to do something."
<shevy>
"However, this can also be a real benefit because it gives you lots of flexibility and control over the libraries."
<shevy>
I found this hilarious to read :D
<shevy>
he argues in favour of flexibility ;)
apeiros has joined #ruby
ghr has quit [Read error: Connection reset by peer]
<shevy>
webgen in ruby you kinda have to convince matz that something is a good fit for ruby and matz sometimes can not make up his own mind, like early autoload functionality, but perhaps also @@vars
sski has quit [Ping timeout: 240 seconds]
kevind has quit [Ping timeout: 265 seconds]
kevind_ is now known as kevind
ce_afk is now known as cescalante
<webgen>
so is matz still on top of foodchain ? :D
blackavr has joined #ruby
<havenwood>
webgen: benevolent dictator whilst in his corporeal form
lukec has joined #ruby
<webgen>
havenwood, :s
<happytux>
How can I pass the paths of a rake FileList together to a command?
binaryhat has joined #ruby
<happytux>
Do I have to join them myself using an array method or is this implemented?
Hanmac has joined #ruby
<happytux>
The command to invoke supports multiple file paths, so I want to pass them all at once.
xcv_ has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
noop has joined #ruby
himsin has quit [Quit: himsin]
<mikecmpbll>
i think they should put an Object#let method into ruby
locriani has quit [Read error: Connection reset by peer]
<timgauthier>
sec i gotta put it into my other browser
yfeldblum has joined #ruby
<shevy>
GEMA must be destroyed
<shevy>
the odd thing is
<timgauthier>
i don't disagree
<shevy>
the blocking isn't 100%, some videos will always play fine with the same music
timonv_ has quit [Remote host closed the connection]
tvw has joined #ruby
<timgauthier>
yeah
ponga has quit [Ping timeout: 264 seconds]
<timgauthier>
YT doesn't automate it for them i think
echevemaster has joined #ruby
<timgauthier>
tos9 i don't know your question, sorry :S
r0bby has joined #ruby
phoo1234567 has quit [Quit: Leaving]
<timgauthier>
shevy this was the best song of the years, this made me afraid to get shot, so we listened to it really quiet on our tape deck https://www.youtube.com/watch?v=thIVtEOtlWM
<shevy>
why are you so afraid to get shot
<lectrick>
to get shot how? what? you mean like immunized?
BWStearns has joined #ruby
<tos9>
timgauthier: you don't understand the question or you don't know the answer :)?
r0bby_ has joined #ruby
<timgauthier>
both actually, but its cause i'm a noob
workmad3 has quit [Ping timeout: 240 seconds]
<shevy>
tos9 I would help! but I dont use rake so I have no idea
<timgauthier>
this is funny they have the swat guys running around with uzi's in this music video lol
MatthewsFace has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 240 seconds]
compleatang has joined #ruby
<shevy>
I believe all that is shown in a music video
nvrch has quit [Quit: nvrch]
joonty has joined #ruby
claymore has quit [Ping timeout: 276 seconds]
r0bby has quit [Ping timeout: 240 seconds]
<timgauthier>
lectrick where i grew up, i was afraid of legitimately getting shot with bullets.
<tos9>
Ah :)
Hobogrammer has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dunix has quit []
sambao21 has joined #ruby
joonty has quit [Client Quit]
rcoz has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has quit [Remote host closed the connection]
_bart has quit [Quit: leaving]
pushpak has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
webgen has quit [Remote host closed the connection]
RaCx has joined #ruby
deric_skibotn has joined #ruby
<shevy>
timgauthier canada????
<timgauthier>
yes
<shevy>
do you look like a deer
<timgauthier>
we had some mean gangs, north american indians, and asian triad immigrants
psyprus_ has quit [Quit: leaving]
<shevy>
could you possibly be mistaken for a bear
<timgauthier>
:P
<timgauthier>
now, maybe
<shevy>
lol
sambao21 has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Ping timeout: 252 seconds]
senayar_ has quit [Remote host closed the connection]
danshultz has joined #ruby
geggam has joined #ruby
alexanderkyte2 has joined #ruby
<timgauthier>
i'm kind of chubby and furry. :P
peeja has joined #ruby
carlyle has quit [Remote host closed the connection]
<alexanderkyte2>
I'm having a really weird issue. Bundle show 'gemname' is working, but when running a script with ruby ./scriptname.rb, it can't require that file
eka_ has joined #ruby
<timgauthier>
./ is system root...
<alexanderkyte2>
And I can't bundle exec ruby ./scriptname.rb because it needs to access a relative path
<alexanderkyte2>
No, / is system root
<lectrick>
timgauthier: rough neighborhood eh?
<alexanderkyte2>
./ is current directory
<timgauthier>
lectrick quite :P
<lectrick>
brb
toastynerd has quit [Remote host closed the connection]
danshult_ has quit [Ping timeout: 240 seconds]
eka has quit [Ping timeout: 240 seconds]
r0bby_ has quit [Remote host closed the connection]
<timgauthier>
have you tried just without the / ?
claymore has joined #ruby
<alexanderkyte2>
Yes
<timgauthier>
then i'm out of sloppy suggestions
eka has joined #ruby
phoo1234567 has joined #ruby
carlyle has joined #ruby
omosoj has joined #ruby
alex88 has quit [Quit: Leaving...]
eka_ has quit [Ping timeout: 240 seconds]
<timgauthier>
I've got, i've got, i've got a pocket full of sunshine!
mikecmpbll has quit [Quit: i've nodded off.]
kristiandelay has joined #ruby
momomomomo has quit [Quit: momomomomo]
tos9 has left #ruby [#ruby]
crystal77 has joined #ruby
timonv has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
damn those empty pants folks
<shevy>
alexanderkyte2 the bundler experts are on #bundler
<shevy>
except for Hanmac, he is also an expert when it comes to bundler
<shevy>
wake up Hanmac !!!
lkba has joined #ruby
<Hanmac>
appears
eka has quit [Ping timeout: 240 seconds]
<shevy>
lol
jxf has quit [Read error: Operation timed out]
nari has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
eka has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
wmoxam has quit [Changing host]
wmoxam has joined #ruby
anaeem1 has quit [Remote host closed the connection]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
srji has quit [Ping timeout: 252 seconds]
danshultz has quit [Read error: Connection reset by peer]
<havenwood>
bundle update hanmac
danshultz has joined #ruby
fgo has joined #ruby
* Hanmac
is getting very trusty
wallerdev has quit [Quit: wallerdev]
claymore has joined #ruby
compleatang has quit [Remote host closed the connection]
tcstar has joined #ruby
freezey has quit [Remote host closed the connection]
Doppp has joined #ruby
zigomir has quit [Remote host closed the connection]
centrx has joined #ruby
psyko666 has quit [Remote host closed the connection]
Spami has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<shevy>
lol
obs has quit [Quit: Saliendo]
<shevy>
bundle destroy Hanmac
<shevy>
I have an idea
<shevy>
we merge gem with bundle
<shevy>
into
<shevy>
gundle
SCommette has joined #ruby
mr_snowf1ake has joined #ruby
jamto11 has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
saarinen has joined #ruby
lukec has quit [Quit: lukec]
mikecmpbll has joined #ruby
benzrf is now known as benzrf|offline
poguez_ has joined #ruby
srji has joined #ruby
aspires has quit []
benzrf|offline is now known as benzrf
lkba has quit [Ping timeout: 252 seconds]
akonny has joined #ruby
adamski2600 has quit [Quit: leaving]
fflush has joined #ruby
aspires has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
crzrcn has joined #ruby
saarinen has quit [Ping timeout: 276 seconds]
Lewix has joined #ruby
crzrcn has quit [Client Quit]
terrellt has quit [Read error: Connection reset by peer]
blackavr has joined #ruby
jph98 has joined #ruby
terrellt has joined #ruby
crzrcn has joined #ruby
devdazed has quit [Quit: Bye]
rmorello|917 has quit [Ping timeout: 252 seconds]
klaut has quit [Remote host closed the connection]
<happytux>
Can I let rake print the task name for the invoked task?
<happytux>
Ant shows what task is running now.
<shevy>
hey timgauthier I am bored
<happytux>
shevy: ^^
<timgauthier>
shevy i'm trying to see if i can airdrop content from my iPhone to the mac
<shevy>
I am replacing lots of $FOO_BAR variables with $FBAR entries
<timgauthier>
lol
dangerousdave has quit [Read error: Connection reset by peer]
<shevy>
I realized that I am way too lazy to keep on typing the _
<timgauthier>
nice
<timgauthier>
what are you building this time ? also replace and find?
<shevy>
timgauthier you mac users have way too much time playing around
<timgauthier>
tab completion?
<shevy>
haha
Stalkr_ has joined #ruby
<shevy>
I open the files one after the other in my editor and MANUALLY fixing it
<shevy>
and this is very boring
<shevy>
so I turn my brain completely off and go to idle mode
<shevy>
until it is over...
devdazed has joined #ruby
robup has quit [Quit: Page closed]
<happytux>
shevy: You got no IDE with refactoring?
johncjensen has joined #ruby
Xeago has quit [Remote host closed the connection]
johncjensen has quit [Remote host closed the connection]
<Stalkr_>
Is it possible for OptionParser to take multiple variables for a single flag? It could be `--age YEAR MONTH DAY` for example
crzrcn has quit [Quit: Leaving.]
timonv_ has joined #ruby
jonno11 has joined #ruby
<atmosx>
Stalkr_: IIRC yes
<timgauthier>
you can't find and replace across multiple files shevy ? :O
servatoo has quit [Remote host closed the connection]
<atmosx>
Stalkr_: but you don't really need.. these can work as 1 variable --age 141201
servatoo has joined #ruby
<Stalkr_>
atmosx: Do you have any idea how? I am not sure what to google
r0bby_ has joined #ruby
emaxi has quit [Remote host closed the connection]
<Stalkr_>
and yes, I was sure someone would point out it could be done with one argument, it was just an example :-)
kristiandelay has quit [Read error: No route to host]
andy___ has quit [Read error: Connection reset by peer]
emaxi has joined #ruby
fannye has quit [Remote host closed the connection]
<Stalkr_>
Okay, a real example would be a thread on 4chan, and I want to download all images in a thread. So I want two arguments for --download, the board and thread number
andy___ has joined #ruby
cpruitt has joined #ruby
iceden has quit [Ping timeout: 265 seconds]
<Stalkr_>
So what I want to do is `--download BOARD THREAD`
<atmosx>
happytux: Not sure there's a task name there, just put 'task.methods.sort.join(', ')' in your Rakefile to see what methods are available
<atmosx>
bbl
happytux has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cya]
terrellt has quit [Remote host closed the connection]
terrellt has joined #ruby
_djbkd has quit [Remote host closed the connection]
paulfm has quit []
testcore has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
<shevy>
havenwood \o/
<shevy>
havenwood I notice you don't recommend optparse
perldork has joined #ruby
testcore has quit [Quit: BitchX: the original point-and-click interface.]
instantaphex has joined #ruby
terrellt has quit [Remote host closed the connection]
paulfm has joined #ruby
SloggerKhan has joined #ruby
<centrx>
OptionParser works well
happytux has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
terrellt has joined #ruby
jacobsmith has quit [Ping timeout: 240 seconds]
testcore has joined #ruby
<shevy>
centrx how do you require it
<SloggerKhan>
How do you make a symbol instance with the Symbol class? Is using colon-notation the only way?
<centrx>
With PHP?
<shevy>
yes
<jhass>
SloggerKhan: String#to_sym is another
<Matip>
benzrf, just in case, do you know how to undefined all methods at once? to avoid writing a function for each of them
<centrx>
SloggerKhan, You could do Symbol.new but that seems silly
andy__ has joined #ruby
<Matip>
undefine*
<Hanmac>
SloggerKhan: :"abc#{val}def" is anthoer
x1337807x has quit [Ping timeout: 276 seconds]
<shevy>
there is no Symbol.new
jxf has quit [Ping timeout: 265 seconds]
<Matip>
I have the list of methods btw, I guess there's a built in "define_method" or something in ruby
<benzrf>
Matip: use TheClass.instance_methods to get a list
<SloggerKhan>
jhass: That is using the String class. Hanmac: that's colon notation. I was mostly thinking it odd that there's no Symbol.new so far as I can tell
<RubyPanther>
SloggerKhan: you can do it from C with ID2SYM( rb_intern(char*) )
<shevy>
always with the C!
<benzrf>
Matip: u can use alias_method, undef_method, define_method
<benzrf>
among others
aagdbl has quit [Quit: Connection closed for inactivity]
toastynerd has joined #ruby
<benzrf>
^methods on __class__
terrellt has quit [Remote host closed the connection]
johncjensen has joined #ruby
perldork has quit [Remote host closed the connection]
<jhass>
Matip: you'd probably be already done with writing a delegator/decorator using stdlib delegate, just sayin'
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qba73 has quit [Remote host closed the connection]
<RubyPanther>
considering that strings are just character arrays in Ruby, and not already like symbols as in some languages, there is not really much reason not to use String#to_sym
<Matip>
do you have an example? I'm not sure what you mean by delegator/decorator (?)
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<Matip>
jhass
s2013 has quit [Ping timeout: 276 seconds]
terrellt has joined #ruby
fgo has joined #ruby
<SloggerKhan>
Is it possible to add methods to Symbol? I know it's not allowed to add them to symbols themselves for some reason.
kirun has joined #ruby
happytux has quit [Read error: Connection reset by peer]
<RubyPanther>
SloggerKhan: yes
carlyle has quit [Remote host closed the connection]
Speed has joined #ruby
<shevy>
cool
<Hanmac>
SloggerKhan: but you cant define singleton methods on Symbol objects
<centrx>
SloggerKhan, In Ruby, everything is an object, a class instance which descends from class Object
<shevy>
>> x = :yo; def x.bla;puts 'bla'; end; x.bla
<RubyPanther>
"some reason" is that they're not normal objects, they're immediate values, which is a fancy way of saying they're actually C objects with a Ruby wrapper
<shevy>
not everything is an object!
<havenwood>
>> class Symbol; def call *args; method(self).call *args end end; :puts.call 'hi'
<timgauthier>
i like fancy colours (as my site is showing) but i like cleanly rendered text more, which safari does great on a raw pastebin
crystal77 has quit [Quit: Computer has gone to sleep.]
aspires has joined #ruby
testcore has quit [Ping timeout: 272 seconds]
reset has quit [Ping timeout: 240 seconds]
swerter has joined #ruby
<shevy>
hmm require 'foo' is not the same as require 'Foo' right? require would look for foo.rb or Foo.rb
<Matip>
I thought you were being sarcastic u.u
crystal77 has joined #ruby
<timgauthier>
naw Matip
<jhass>
Matip: make fields an instance variable (@fields)
gfunc has joined #ruby
<jhass>
hm, actually not sure if that'll work
paulfm has quit []
<Matip>
nop, it would I think
<Matip>
the problems is that the line with "fields.each" is executed when Foo is evaluated
<Matip>
I mean, when ruby creates the module
<Matip>
but it should be evaluated when Bar includs it
<jhass>
Matip: the more common approach would be module Foo; def define_fields *fields; ...; end; end; class Bar; extend Foo; define_fields :bar, :xux; end;
InfraRuby has joined #ruby
djbkd has quit [Remote host closed the connection]
chrisja has joined #ruby
<centrx>
#rationalize vs #to_r ?
paulfm has joined #ruby
phantasm66 has quit [Quit: *poof*]
<Matip>
I think it wouldn't work either, let me check
kristiandelay has joined #ruby
kristiandelay is now known as subsignal
djbkd has joined #ruby
carraroj has joined #ruby
kaspergrubbe has joined #ruby
omosoj has joined #ruby
phantasm66 has joined #ruby
terrellt has quit [Remote host closed the connection]
timonv has joined #ruby
dkamioka has quit [Remote host closed the connection]
badhatter has quit [Read error: Connection reset by peer]
Zespre has joined #ruby
chihhsin has joined #ruby
terrellt has joined #ruby
swerter has quit [Ping timeout: 252 seconds]
subsignal is now known as SubSignal
<timgauthier>
for all the bad things about germany. pizza.de is awesome
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
donnoc has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
rokob has quit [Remote host closed the connection]
lw has quit [Quit: s]
<jhass>
but if all you do is waiting for 10sec, an alternative would be Time.now-started_at >= duration
crystal77 has joined #ruby
sambao21 has joined #ruby
havenwood has joined #ruby
sambao21 has quit [Client Quit]
jackneill has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
ghr has quit [Client Quit]
srji has quit [Quit: Lost terminal]
<omosoj>
Hey guys, I'm learning rails. So knowing how to work with databases is one of the most important skills, right?
meatherly has quit []
ephemerian has joined #ruby
<havenwood>
omosoj: In Rails that would mean learning ActiveRecord. Checkout #rubyonrails for Rails stuffs.
yfeldblum has joined #ruby
<omosoj>
havenwood, Oops, wrong room.
the_f0ster has quit [Ping timeout: 255 seconds]
Hanmac has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<Nowaker>
do you guys know how to create an rspec matcher that will use another matcher? let's say I want to RSpec::Matchers.define :blah do |blah| ...use Equal matcher here... end
<Nowaker>
this doesn't work: RSpec::Matchers.define :respond do |response_type| Spec::Matchers::BuiltIn::Equal.new(response_type) end
<alpha123>
omosoj: I'd say knowing Ruby really when and knowing how to debug is one of the most important skills....
moritzs has joined #ruby
jamto11_ has joined #ruby
meatherly has joined #ruby
reset has joined #ruby
<omosoj>
alpha123, ok. That's what I thought at first but now that I learn more about databases and ActiveRecord is seems really important. I mean, they're probably both crucial
chipotle has joined #ruby
djbkd has joined #ruby
<alpha123>
Databases (and especially ActiveRecord) aren't all that important actually.
Hobogrammer has quit [Quit: WeeChat 0.4.3]
<alpha123>
You don't technically need them to make a web app. Also, they're usually only a small portion of the code (especially when using ActiveRecord).
Hobogrammer has joined #ruby
<Hanmac>
for a real programmer its not important where the data is coming from or where the data is going to ... only the now is important *zen-mode* ;P
<benzrf>
ommmmmmmmmmmmmmmm
<alpha123>
lol
jamto11_ has quit [Ping timeout: 240 seconds]
* benzrf
zazens
Spami has quit [Quit: Leaving]
<benzrf>
haskell tho
reset has quit [Ping timeout: 252 seconds]
<benzrf>
haskell is the most zen language (that is mainstream)
<benzrf>
so zen
<alpha123>
Nah, Common Lisp is more zen IMO
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<benzrf>
ur mum is more zen
<benzrf>
common lisp isnt functionally pure thoraxe
<benzrf>
*tho
johncjensen has quit [Remote host closed the connection]
<alpha123>
Yeah, but you only have s-exps
<benzrf>
(although macros look sweet as fuck)
<alpha123>
Funnily enough, I've used both Common Lisp and Haskell for non-trivial amounts of time and abandoned both. :P
<benzrf>
yes but in haskell the entire language semantics can be described in terms of function application, name binding, type declarations, and pattern matching
<benzrf>
can u do THAT for CL
<benzrf>
so zen
Spami has joined #ruby
asteros has quit [Quit: asteros]
<alpha123>
...Actually someone did....
sambao21 has joined #ruby
<alpha123>
(Google the Qi language)
<benzrf>
meh
rokob has joined #ruby
foooobear has quit [Quit: Computer has gone to sleep.]
<alpha123>
Haskell is pure though, so I guess it does get the zen award
davedev24 has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 264 seconds]
<benzrf>
b-but muh strong typing
<alpha123>
I never really understood Haskell's type system that well. :(
i_s has quit [Remote host closed the connection]
davedev24 has joined #ruby
djbkd has joined #ruby
<alpha123>
Haskell seems like a really cool language, but I don't think I'm smart enough for it. :P
johncjensen has joined #ruby
<benzrf>
manacit:
<benzrf>
*man
ktosiek has quit [Read error: Connection reset by peer]
<manacit>
sup!
<benzrf>
alpha123: everybody learns like 5 imperative languages, gets used to new ones being the same but different & therefore easy, then tries haskell, it's like learning from the beginning again but they dont expect it, and dismiss it as 'for geniuses
<benzrf>
'
kirun has quit [Quit: Client exiting]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Darryl has quit [Quit: Connection closed for inactivity]
claymore has quit [Ping timeout: 252 seconds]
reset has joined #ruby
puzanov_ has quit [Read error: Connection reset by peer]
<benzrf>
>tfw running eclipse over ssh X tunnelling
<alpha123>
benzrf: It's not that I had trouble with (I'm fine with Erlang and functional JS), it's the type system and monads and gonads (er, wait...) and whatever else there is
Matip has joined #ruby
Matip has quit [Changing host]
Matip has joined #ruby
puzanov_ has joined #ruby
<benzrf>
precisely
<benzrf>
it's entirely new to you even though youre expecting a derivative
<benzrf>
most new things u learn in programming are like x but different, this is entirely separate from almsot anything youve done
<benzrf>
therefore it feels v hard
jhass is now known as jhass|off
mehlah has joined #ruby
<benzrf>
u just gotta play w/ ur monads for a few months and theyll become intuitive
claymore has joined #ruby
<alpha123>
Maybe I'll give it another go. I do like functional programming, I just don't like type systems. :P
<benzrf>
haskell tho
<benzrf>
alpha123: it is fairly simple
<benzrf>
1. a type consists of a set of DATA CONSTUCTORS
<alpha123>
Whenever I got an error I couldn't make head nor tail of it :P
<benzrf>
which are functions/values which can be pattern matched on
<alpha123>
Also I find type systems very confining
<benzrf>
any fully applied data constructor is a value of the type which the data constructor is a member of
<alpha123>
(I guess that's due to JS/Ruby/Common Lisp/Io)
freezey has joined #ruby
<benzrf>
for example, (:) and [] are the data constructors of the type [a]
<benzrf>
[] :: [a]
<myke>
0
bradhe has joined #ruby
<benzrf>
(:) :: a -> [a] -> [a]
<benzrf>
i can say:
<benzrf>
data Foo = Bar | Baz
x77686d has joined #ruby
<benzrf>
this declares 2 data constructors w/ arity 0
<benzrf>
so they're already fully-applied
asteros has joined #ruby
<benzrf>
Bar or Baz are of type Foo
<benzrf>
data Foo = Bar Int | Baz String
yfeldblum has joined #ruby
<benzrf>
this states that Bar has one 'field' of type Int
yalue has quit [Quit: Leaving]
<benzrf>
iow:
razrunelord has joined #ruby
<benzrf>
Bar :: Int -> Foo
Night-hacks has left #ruby [#ruby]
nomenkun has joined #ruby
razrunelord has quit [Remote host closed the connection]
rmorello is now known as rmorello|1334
razrunelord has joined #ruby
<benzrf>
let (Bar foo) = (Bar 3) in putStrLn (show foo)
DouweM has joined #ruby
ascarter has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
AMcP has joined #ruby
noop has quit [Ping timeout: 264 seconds]
AMcP has quit [Remote host closed the connection]
asteros has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
x1337807x has joined #ruby
hostess has quit [Remote host closed the connection]
hostess_ has joined #ruby
xaq has quit [Remote host closed the connection]
hostess_ is now known as hostess
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
djbkd has joined #ruby
sparrovv has quit [Remote host closed the connection]
wjlafrance_ has joined #ruby
maletor has joined #ruby
sparrovv has joined #ruby
yfeldblum has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
hobodave has quit [Quit: Computer has gone to sleep.]
IceDragon has quit [Ping timeout: 265 seconds]
IceDragon has joined #ruby
wjlafrance has quit [Ping timeout: 240 seconds]
mordocai has joined #ruby
hobodave has joined #ruby
zegerjan has quit [Remote host closed the connection]
phantasm66 has quit [Quit: *sleeeep….]
<shevy>
so awful
<shevy>
benzrf, you need a cure
phantasm66 has joined #ruby
MatthewsFace has joined #ruby
<rokob>
haskell has very good type inference so the type system mostly stays out of your way except where it is useful
<momomomomo>
rokob: ok?
compleatang has joined #ruby
<benzrf>
hell yeah it does
<benzrf>
haskell-five >>=
zigomir has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
razrunelord has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<alpha123>
I dunno, I've tried enough statically typed languages (yes, ones with type inference) that I think I've settled on dynamic typing as just being more productive for me.
jamto11 has quit [Read error: Connection reset by peer]
ehc_ has joined #ruby
ehc has quit [Read error: Connection reset by peer]
ehc_ is now known as ehc
ehc has quit [Remote host closed the connection]
jamto11 has joined #ruby
MatthewsFace has quit [Ping timeout: 240 seconds]
shadoi has quit [Ping timeout: 240 seconds]
ged has quit [Quit: WeeChat 0.4.1]
MatthewsFace has joined #ruby
mahlon has quit [Quit: nine foot long outhouse ladle]
<shevy>
haskell is only for esoteric stuff
<benzrf>
alpha123: i dont believe you
johncjensen has quit [Remote host closed the connection]
<benzrf>
what languages have non shitty type inference besides haskell
sdouglas has quit [Remote host closed the connection]
<alpha123>
OCaml's is OK, Scala's works most of the time
InfraRuby has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<alpha123>
OCaml's is actually pretty good, it's just non-polymorphic so you have those operators like +.
<benzrf>
haskell's /always/ works that ive seen of it except for when you use nonspecific typeclass stuff
sdwrage_ has joined #ruby
fgo has joined #ruby
<benzrf>
IME, just writing the types of only top level functions will always be enough
<keystonelemur>
Haskell is actually very useful if you know how to use it properly.
<benzrf>
in fact, usually overkill
xaq has joined #ruby
<keystonelemur>
The problem is the huge learning curve and necessity of monadic logic.
ndrei has joined #ruby
<benzrf>
whats wrong with monads eh
xaq has quit [Remote host closed the connection]
<Nowaker>
then use java, it is so easy to start writing in it
<keystonelemur>
By understanding Monads, you lose all ability to explain them
<Nowaker>
;)
<keystonelemur>
Java is horrid
moritzs has quit [Ping timeout: 265 seconds]
sdwrage has quit [Ping timeout: 265 seconds]
<benzrf>
monads are not so hard
<benzrf>
monads are like burritos, you see
<keystonelemur>
They're not, that's just the running joke
<benzrf>
or maybe bananas
<benzrf>
wait, i mean space suits
klaut has joined #ruby
timonv has joined #ruby
<keystonelemur>
Java will straight up give you nightmares after writing Ruby for long enough
artgoeshere has quit [Quit: I'll see myself out.]
atmosx has quit [Ping timeout: 272 seconds]
s2013 has joined #ruby
<keystonelemur>
probably because so much of it is trying to ad-hoc implement functional concepts
<keystonelemur>
which leads to some really nasty stuff fast.
<benzrf>
yep
fgo has quit [Ping timeout: 252 seconds]
servatoo has quit [Remote host closed the connection]
<keystonelemur>
Java 8 ductapes more support on
cosmin has joined #ruby
<keystonelemur>
but it's just that, duct tape
servatoo has joined #ruby
<keystonelemur>
not a fully featured, useful implementation
<keystonelemur>
If you want functional concepts on Java, bite the bullet and learn Scala
<shevy>
benzrf what do monads and burritos have in common?
<benzrf>
shevy: it's a running gag
<havenwood>
keystonelemur: s/Scala/Clojure
<alpha123>
Scala's like the illegitimate child of Java and ML. It's kind of scary.
<keystonelemur>
Clojure is a bit too far of a jump for most people, that and there's that nasty lisp curse
<alpha123>
Clojure looks great, I'm pretty familiar with Common Lisp
<keystonelemur>
Scala is a well written language
<alpha123>
I just don't like the Java platform.
<havenwood>
:O
<keystonelemur>
Me either
KeiKun has quit [Read error: Connection reset by peer]
<havenwood>
JRuby on Graal \o/
<alpha123>
Common Lisp is actually an excellent language. I'm just more productive in Ruby (and Lua and JavaScript). *shrug*
<keystonelemur>
I like Clojure, I use Lisp, but the Lisp curse is way too real and potent
KeiKun has joined #ruby
<alpha123>
I bet if I used Common Lisp enough I'd be as productive, but you have to reinvent so many things because the quality of CL libraries is generally rather poor.
<keystonelemur>
essentially Lisp makes things so easy that technical issues become social issues, and we know what happens with programmers and social issues.
<alpha123>
"Lisp is so powerful that problems which are technical issues in other programming languages are social issues in Lisp." --> That's beautiful.
<alpha123>
And so... right.
jrochelly has joined #ruby
<alpha123>
Of course, we all know Ruby is an acceptable Lisp. ;)
predator117 has quit [Ping timeout: 255 seconds]
claymore has quit [Quit: Leaving]
<keystonelemur>
Heh, seen that one
nateberkopec has quit [Ping timeout: 240 seconds]
<keystonelemur>
Unless you have one heck of an architect to hold people together, lisp projects will fail
evenix_ has joined #ruby
meatherly has quit [Remote host closed the connection]
atmosx has joined #ruby
St_Marx has joined #ruby
<alpha123>
I still think Lisp could work out. I just don't know why it hasn't yet. :P
<keystonelemur>
the curse
<alpha123>
I don't think the social issues are insurmountable. Far from it.
tvw has quit []
<keystonelemur>
You need a charismatic lead
<keystonelemur>
and most people only think they are
<keystonelemur>
Not a gamble you want to take most times
funburn has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
<keystonelemur>
Scala is safer in that aspect, but Clojure and Lisp will slaughter it if there's a good lead behind it
timgauthier has joined #ruby
dfinly has joined #ruby
<alpha123>
Clojure actually seems to have solved a lot of the social problems, somehow.
shadoi has joined #ruby
<keystonelemur>
JVM helps
pwh has joined #ruby
pwh has quit [Client Quit]
<keystonelemur>
but take a look at the security issues from patchy implementations
<alpha123>
Frankly I think the issue isn't Common Lisp itself so much as the current crop of people who use it -- they're nice folks, generally, but mostly solitary hackers.
aspiers has joined #ruby
<alpha123>
Clojure attracted different people --> different result.
Mongey has quit [Ping timeout: 250 seconds]
<keystonelemur>
hence the lead needed.
<keystonelemur>
It attracted a lot of the same people.
<keystonelemur>
or transformed them into that type.
armstrjare has joined #ruby
<rurban_>
Clojure has proper and efficient threading support, common lisp not really
banister has joined #ruby
<keystonelemur>
If you write in a functional style, that's completely irrelevant.
Sawbones has quit []
<rurban_>
locking hashes drove lisp people to clojure
<alpha123>
You know what would be cool? Someone who ports Common Lisp to, say, the Erlang VM with promises of great concurrency, and releases it under a name without "lisp" in it. :P
<keystonelemur>
Elixir?
evenix_ has quit [Ping timeout: 276 seconds]
<rurban_>
That's stupid. CL is much better than Erlang already
<keystonelemur>
CL has the ability to, rather.
<rurban_>
Elixir overcomes some of Erlangs deficiencies to come closer to Clojure/CL
bthesorceror has joined #ruby
<keystonelemur>
Problem is, people assume CL is a programming language
<keystonelemur>
far far from it
<keystonelemur>
It's a language with the intent of developing languages
<benzrf>
CL looks entirely too gross for m
<benzrf>
me
<rurban_>
It's a world, and very few from outside understand it
<benzrf>
then again i thought the same about ruby o=
gyzmodo has left #ruby [#ruby]
<benzrf>
one of these years maybe ill just jump ship to ST
<benzrf>
pity it has its own cornered off ecosystem
mark_locklear has quit [Ping timeout: 240 seconds]
<benzrf>
maybe ill pioneer some proper integration someday o3o
mikepack has joined #ruby
<alpha123>
How could you think Ruby is gross? :( It's the most beautiful language ever. :P
Guest94817 has joined #ruby
<alpha123>
The syntax is actually what drove me off from Common Lisp.
<alpha123>
*one of the things
<alpha123>
It's a bit of a write-only language.
<benzrf>
well i was put off by the lack of first class funcs
<benzrf>
among other things
<alpha123>
?!
<alpha123>
It has first-class functions
<benzrf>
not in the same sense
moritzs has joined #ruby
<alpha123>
you can pass them around, compose them, define them on the fly, closure, whatever floats your boat
<benzrf>
it has function objects, but regular 'functions' are not universally values
<benzrf>
i.e. methods
<alpha123>
if you're referring to the namespace thing, that's minor and only affects syntax, not semantics
<benzrf>
huh?
<alpha123>
variables and functions are in separate namespaces in common lisp
<benzrf>
oh i was talkin about ruby this whole time :P
<alpha123>
oh lol
<alpha123>
oops >_<
xaq has joined #ruby
<alpha123>
Yes, the functions thing put me off Ruby a bit initially.
<alpha123>
I got over it though. It's still a bit weird.
yfeldblum has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
<benzrf>
nhn
bthesorceror has quit [Remote host closed the connection]
popl has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
<benzrf>
anyway i think i recentlly rly groked macros
Guedes0 has joined #ruby
<benzrf>
and now im sad that they will never be as great in anything non-sexpr (or similar) based
bthesorceror has joined #ruby
_justin has joined #ruby
alexju has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
<benzrf>
i wrote a lisp in haskell a while BackEndCoder
<benzrf>
it had runtime macros & enforced purity
razrunelord has joined #ruby
<benzrf>
well
mahlon has joined #ruby
<benzrf>
enforced in the sense that you can only be impure if you explicitly say so
shadoi has quit [Remote host closed the connection]
johncjensen has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 252 seconds]
zigomir has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
elico has joined #ruby
fgo has joined #ruby
cpruitt has quit [Quit: cpruitt]
sski has quit [Ping timeout: 265 seconds]
<elico>
Any recommendations on a key-value DB?
badabim has quit [Remote host closed the connection]
zmbmartin has quit [Quit: Leaving.]
peret has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
redondos has quit [Excess Flood]
klaut_ has joined #ruby
LiohAu has quit [Ping timeout: 252 seconds]
RubyRonin has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
arubincloud has quit []
klaut_ has quit [Remote host closed the connection]
s2013 has joined #ruby
axisys has quit [Quit: leaving]
mengu has quit [Remote host closed the connection]
cmoneylulz has joined #ruby
northfurr has quit [Quit: northfurr]
<RubyRonin>
greetings all
<RubyRonin>
Does anyone have a proposal template for developing a membership web application?
axisys has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vu1k has quit [Quit: Vu1k]
Vu1k has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
mikepack has joined #ruby
klaut has quit [Ping timeout: 240 seconds]
dapz has joined #ruby
RaptorJesus has quit [Ping timeout: 240 seconds]
agarie has quit [Quit: Leaving...]
freezey_ has joined #ruby
yfeldblum has joined #ruby
RaptorJesus has joined #ruby
pel_daniel has left #ruby [#ruby]
centrx has quit [Quit: All this computer hacking is making me thirsty]
sputnik13 has quit [Ping timeout: 265 seconds]
johncjensen has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
combusean has quit [Ping timeout: 252 seconds]
cmoneylulz has quit [Quit: Leaving]
freezey has quit [Ping timeout: 252 seconds]
johncjensen has quit [Remote host closed the connection]
GaryOak_ has quit [Remote host closed the connection]
combusean has joined #ruby
ehc has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freezey_ has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
hobodave has quit [Quit: Computer has gone to sleep.]
aspires has quit []
crystal77 has quit [Quit: Computer has gone to sleep.]
funburn has joined #ruby
Vu1k has quit [Quit: Vu1k]
treehug8_ has quit []
Vu1k has joined #ruby
rmorello|1334 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
s2013 has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
crucify_me has quit [Remote host closed the connection]
cescalante is now known as ce_afk
SCommette has quit [Quit: SCommette]
wwalker has joined #ruby
sdwrage has joined #ruby
maestrojed has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
testcore has quit [Quit: BitchX-1.3-git -- just do it.]
rmcclellan has joined #ruby
<rmcclellan>
Hi I found you guys on a search for a open source project to contribute to....I am in a competition and I want to do something I'll enjoy and keep working on....also I would love to learn more about Ruby...could you guys help me?
s2013 has joined #ruby
maximski has joined #ruby
mus1cb0x has joined #ruby
instantaphex has joined #ruby
<mus1cb0x>
what is on the modruby.net site? i can't read it
<combusean>
uhh
<rmcclellan>
Its more like a blog
keystonelemur has joined #ruby
<combusean>
why would anyone use mod_ruby anymore?
<combusean>
even passenger is a better alternative
Avahey_ has joined #ruby
Bira has joined #ruby
<mus1cb0x>
where can i read on the changes between 2.1 and 2.0?
<mus1cb0x>
something higher level than the changelog
poguez_ has quit [Quit: Connection closed for inactivity]
<rmcclellan>
Hi I found you guys on a search for a open source project to contribute to....I am in a competition and I want to do something I'll enjoy and keep working on....also I would love to learn more about Ruby...could you guys help me?
instantaphex has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
bradhe has quit [Remote host closed the connection]
badabim has joined #ruby
kevind has quit [Quit: kevind]
yfeldblum has quit [Remote host closed the connection]
zorak has joined #ruby
mikecmpbll has quit [Quit: ciao.]
thomasxie has joined #ruby
<RubyRonin>
Does anyone have a proposal template for developing a membership web application?
<shevy>
rmcclellan you asked that already above
nisstyre has quit [Quit: WeeChat 0.4.3]
dima__ has quit [Remote host closed the connection]
<rmcclellan>
oh sorry
bradhe has joined #ruby
psyko666 has joined #ruby
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
<shevy>
rmcclellan you should be more specific, like: what help do you need precisely
<shevy>
people usually ask a ruby question here, then people can answer it
<shevy>
like "How can I find all .pdf files in a directory?"
<rmcclellan>
oh i see....i want to contribute to the project
<shevy>
Dir[directory_here+'/*.pdf']
<shevy>
contribute how? can you program in C?
jpstokes has quit [Remote host closed the connection]
<shevy>
but beware, their english is often awful, so it might be easier to find non-japanese members of the core team :D
<maestrojed>
We are trying to get a local environment working with some ruby gems. We have a slew of errors. Have followed a ton of posts/tuts. It all started with wanting to use Compass and SASS. Compass errors out, says toolkit can't activate because sass 3.2.19 conflicts with sass 3.3.0.
<shevy>
if not C then there are other ways, there is a team working on documentation (many non-japanese people hahahahaha)
<shevy>
and of course you could directly help matz with mruby
<mus1cb0x>
anyone into crypto currencies like bitcoin?
<shevy>
which will probably one day replace the current ruby
djbkd has quit [Remote host closed the connection]
<shevy>
mus1cb0x not me, it always sounded like a scam
SubSignal has joined #ruby
<rmcclellan>
thanks shevy
djbkd has joined #ruby
crucify_me has joined #ruby
kobain has quit []
yubrew has joined #ruby
yfeldblum has joined #ruby
brunops has joined #ruby
ndrei has quit [Quit: Lost terminal]
SubSignal has quit [Ping timeout: 252 seconds]
<shevy>
I have just determined that slop is better than optparse
nanoyak has quit [Quit: Computer has gone to sleep.]
sdwrage has quit [Quit: This computer has gone to sleep]
keystonelemur has quit [Ping timeout: 264 seconds]
shevy has quit [Ping timeout: 252 seconds]
<maestrojed>
Since I am having trouble with gems. Is this the best channel to ask for help?
nanoyak has joined #ruby
<combusean>
maestrojed, what's your question
<maestrojed>
We are trying to get a local environment working with some ruby gems. We have a slew of errors. Have followed a ton of posts/tuts. It all started with wanting to use Compass and SASS. Compass errors out, says toolkit can't activate because sass 3.2.19 conflicts with sass 3.3.0.
sdwrage has joined #ruby
<maestrojed>
combusean ^
<combusean>
are you locking gem versions of either of those in your Gemfile?
<combusean>
haven't set up sass or used compass
zmbmartin has joined #ruby
chrisja has quit [Quit: leaving]
<maestrojed>
combusean I don't know. I am checking (about locking versions).
zorak is now known as zorak8
<maestrojed>
From what I can tell, SASS 3.3.0 isn't installed
zorak8 has quit [Quit: Saliendo]
<combusean>
are you bundling with this?
zorak8 has joined #ruby
<maestrojed>
In trying to fix this I have tried a number of things which all lead to errors which makes me thinks something more grand or global is wrong
mus1cb0x has left #ruby ["WeeChat 0.4.2"]
<maestrojed>
combusean we tried to use Bundler, but that throws errors too.
razrunelord has joined #ruby
<maestrojed>
combusean I am barely a ruby/gem user. I am a lead tech, troubleshooting this for a coworker because they have thrown up their hands. Sorry if I don't know the direct answers to your questions immediately.
baroquebobcat has quit [Ping timeout: 264 seconds]
<combusean>
run that
<maestrojed>
k
<combusean>
in your root dir
fgo has joined #ruby
crucify_me has quit [Remote host closed the connection]
testcore has quit [Ping timeout: 272 seconds]
zmbmartin has quit [Ping timeout: 240 seconds]
<combusean>
or your project root directory
jamto11 has quit [Remote host closed the connection]
<maestrojed>
combusean ok. at / I get "cat: Gemfile: no such file or directory". Trying the project directory
<combusean>
yeah
<combusean>
sorry, wasn't clear
nfk has quit [Quit: yawn]
jamto11 has joined #ruby
crystal77 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
frode15243 has quit [Ping timeout: 258 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
eka_ has joined #ruby
<combusean>
maestrojed, btw, you're either bundling or you're not, it won't work if you have bundled gems installed and you don't run bundle exec or whatever for the subsequent command like rails s or rails c
<combusean>
maestrojed, is there any reason why you have sass version locked at 3.2.12? compass might be depending on a newer version then that because you don't have that one locked
fgo has quit [Ping timeout: 276 seconds]
<maestrojed>
I knew there was a ruby config file in the project and was going to check that but "bundle" sounds differnet
<maestrojed>
combusean no, glad to change anything and everything.
<combusean>
maestrojed, i highly recommend using a ruby version manager and bundler
<maestrojed>
like bundler?
Morrolan has joined #ruby
<combusean>
well since you have a gemfile, you typically wanna bundle install these things
jxf has quit [Ping timeout: 252 seconds]
<maestrojed>
agreed (well... I agree now :) )
<combusean>
take out the , '3.2.12' from the sass line and run bundle install
lfox has joined #ruby
cluelesss has quit [Ping timeout: 276 seconds]
<combusean>
gem 'sass' # Sass
<combusean>
so it looks like that
jamto11 has quit [Ping timeout: 240 seconds]
armstrjare has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roland has left #ruby [#ruby]
<maestrojed>
ok, calling this dev for his root password......
diegoviola has joined #ruby
FenixFyreX has joined #ruby
FenixFyreX has left #ruby [#ruby]
<combusean>
maestrojed, did the bundle install give you permission denied errors?
danman_ has quit [Quit: danman_]
phoo1234567 has quit [Quit: Leaving]
<maestrojed>
yes. "Your user account isn't allowed to install to the system Rubygems." Then it prompts for a passsword
R33C3 has joined #ruby
<maestrojed>
is that a sign of an issue?
<combusean>
yeah, this is why system ruby always blows
<maestrojed>
Ok, we followed a post/tut in trying to fix this and I think we installed rvm
<combusean>
but you can't do that lightly as whatever your app runs from will have to be in that environment, and that varies across individual needs and systems
<maestrojed>
I see. rVM aka virtual machine
shevy has joined #ruby
<combusean>
~/.rvm is Ruby Version Manager
crucify_me has joined #ruby
<combusean>
i don't know what makes .rVM tho
<benzrf>
holy shit
blackavr has joined #ruby
<combusean>
hi benzrf
<combusean>
what shit is so holy?
ehc has quit [Quit: ehc]
<benzrf>
there's a band called 'netcat' and it's possible to acquire their most recent album as a kernel module that creates a device file that outputs the album