Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datafirm has quit [Quit: Computer has gone to sleep.]
<happytux>
jenrzzz: well, basically I am a PHP guy and started with more sophisticated build scripts. The most popular tools out there are ant and rake. But rake seems to be less complicated so I migrate the ant scripts to it.
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<happytux>
lethjakman: some projects are in PHP :)
<happytux>
lethjakman: but I will try ruby out, too
<jenrzzz>
happytux: try to think like make(1) instead of ant. rake is just a more powerful make
<happytux>
jenrzzz: yes, no complicated xml stuff. I started with ant because there were php related examples.
<lethjakman>
happytux: I feel like there should be a good tool written in PHP for stuff like this...
<happytux>
jenrzzz: there is also phing, but I prefer to use a more versatile build tool. Rake seems to be the right tool for this.
<lethjakman>
that just seems weird.
<lethjakman>
not saying anything against rake...I love and use it all the time.
<happytux>
lethjakman: are you using gradle, too?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datafirm has quit [Ping timeout: 255 seconds]
<lethjakman>
no.
<terrellt>
happytux: What do you mean when you say build scripts? DEPLOY scripts?
<benzrf>
sup lethjakman
jottr_ has quit [Ping timeout: 264 seconds]
<debajit>
Newbie Rake q: I have a rake task which look like this: https://gist.github.com/debajit/482a4410be4d98449e62. How do I get it to return the error-value from the system call? (Currently it returns true every time)
jhulten_ has quit [Remote host closed the connection]
<happytux>
terrellt: currently deployment is done using fabric (python based). Rake scripts are used for building (calling the dependency tools, compiling assets and so on).
lw has joined #ruby
<jenrzzz>
debajit: the return code is in $?
Ariadeno has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Nine out of ten l33t h4x0rz prefer it]
<happytux>
I also took a look on capistrano and vlad. Capistrano 3 (rake based) only supports git pulling but in my specific setup I have to git push.
<terrellt>
happytux: What do you mean you have to git push?
<happytux>
cap3 connects over ssh to deployment target (server) and invokes git pull from it
<happytux>
this means that the repository has to be reachable publicly from the deployment target
momomomomo has quit [Quit: momomomomo]
nateberkopec has joined #ruby
<jenrzzz>
happytux: that’s usually the right way to do it
b00stfr3ak has quit [Ping timeout: 240 seconds]
<happytux>
jenrzzz: why is pulling better than pushing the build result?
diegoviola has joined #ruby
Megtastique has joined #ruby
jamto11 has quit [Remote host closed the connection]
<jenrzzz>
happytux: it depends on your VCS workflow, but usually i want to deploy from a “blessed” repository that is the single point of truth
<debajit>
jenrzzz: What I'd like to do is run "rake build sync" and have "sync" not run if "build" fails
Lucky_ has quit [Client Quit]
<debajit>
jenrzzz: I feel i'm overlooking something really obvious here :P
yakko has quit [Ping timeout: 265 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
lukec has quit [Quit: lukec]
yakko has joined #ruby
<debajit>
jenrzzz: Instead of using the system call, if I use backticks, then it works correctly: task :build do
<debajit>
end
<debajit>
`BUILD_SHELL_COMMAND`
nathancahill has joined #ruby
kitak_ has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jenrzzz>
debajit: when do you fail? if BUILD_SHELL_CMD returns nonzero?
<debajit>
jenrzzz: So with the given code (using the system call) — the puts works correctly, which means the error value is captured correctly, however the task doesn't seem to return the same success value
<debajit>
jenrzzz: Correct
thesheff17 has quit [Remote host closed the connection]
i_s has joined #ruby
<jenrzzz>
debajit: system(BUILD_SH_CMD) or fail(‘Build failed’)
thesheff17 has joined #ruby
i_s has quit [Remote host closed the connection]
<debajit>
jenrzzz: Perhaps this is an easier question: How do I return a value from a Rake task?
<jenrzzz>
debajit: you cannot
<debajit>
jenrzzz: When I chain tasks, then how does the next task in the chain pick up the success value?
<debajit>
jenrzzz: ... of the previous task in the chain i mean?
<jenrzzz>
debajit: a task is successful if it doesn’t fail. so call exit or fail or raise an exception if you want it to fail
kitak_ has joined #ruby
<jenrzzz>
debajit: if you use rake’s #sh helper i think it will do that for you
EasyCo has joined #ruby
acl_ has joined #ruby
<debajit>
jenrzzz: Yes, you're right. I believe there isn't really a way to return a value from a task.. (just found some documentation saying something similar as well)
vpretzel has joined #ruby
<debajit>
jenrzzz: What is the sh helper you refer to?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
replay has quit [Ping timeout: 265 seconds]
<debajit>
jenrzzz: Nice :) Thanks a ton :) I think that should work.. trying it out now..
upsell5 has joined #ruby
anomaly_ has joined #ruby
<anomaly_>
I am seeing a lot of books mention 'this is intended for those who already know ruby. not a beginner's book.' so.. what are good fundamental books on learning ruby?
Lucky_ has joined #ruby
<jenrzzz>
anomaly_: do you have experience in any other languages?
sinkensabe has quit [Remote host closed the connection]
Sol has joined #ruby
derek_ has quit [Remote host closed the connection]
Sol has quit [Client Quit]
<anomaly_>
jenrzzz python and php to an intermediate degree. I am not new to programming in general. yet, I am still working on building on my basics on programming.
eka has joined #ruby
sinkensabe has joined #ruby
<jenrzzz>
anomaly_: the pickaxe book (ISBN10 1937785491) is always a good place to start
<agent_white>
Pickaxe is also here: puts "Connecting to #{name}..."
<EasyCo>
Hey guys, I sometimes need to remove (with JS) the readonly attribute on an input field generated with simple_form. The problem is when the form is then submitted and there's a validation error, the form is rerendered with the readonly attribute enabled again. I know this is how it's suppose to work but I'm not sure how to tackle the issue. See my gist for
<jenrzzz>
agent_white: is that the latest version?
<agent_white>
jenrzzz: Not quite sure, I believe so?
john3213 has joined #ruby
replay has joined #ruby
<vim_shim>
anomaly_: http://ruby.bastardsbook.com/ is really good too. Some very practical exercises with webscrapers and db's, as well as data transformation.
<EasyCo>
Any thoughts or help would be appreciated
<jenrzzz>
EasyCo: #RubyonRails is probably a better place for that
<EasyCo>
Oh shit
ktun has joined #ruby
<EasyCo>
Oops
<EasyCo>
Sorry, wrong chat :)
<EasyCo>
My bad
meatherly has quit [Remote host closed the connection]
<anomaly_>
I can see the newest version on Amazon from last year. I would hope the site you listed, agent_white is in fact the new one :)
sinkensabe has quit [Ping timeout: 252 seconds]
torresga has quit [Ping timeout: 258 seconds]
ktun has quit [Client Quit]
<anomaly_>
you have all been very helpful. I intend on using ruby for web development and in general programming. python and php seem to be pushing me in that direction after I saw how beautiful the code is in ruby and rails
<agent_white>
anomaly_: Hmmm I'm not sure sure not.. poking through the preface and it says "This book documents Version 1.6 of Ruby, which was released in September 2000."
livcd has quit [Ping timeout: 258 seconds]
binaryhat has quit [Quit: Leaving]
<jenrzzz>
anomaly_: good luck! it’s not a perfect language but it’s the closest thing i’ve come across
<agent_white>
Either way! Still a good resource... at least it's been on my bookmarks bar for quite awhile now.
sinkensabe has joined #ruby
<anomaly_>
jenrzzz I do not seek an imaginary silver bullet, haha. it does look nice though :)
<acl_>
the "pickaxe" book is the one by Dave Thomas, right?
john3213 has left #ruby [#ruby]
<jenrzzz>
acl_: yeah. the one with the pickaxe on the cover
<agent_white>
Yup!
<EasyCo>
On the Ruby side of things, can you do something like a computed property? i.e send a parameter as a function that will return either true or false?
<acl_>
that pickaxe book had a 4th edition come out June last year (I think)
doodlehaus has quit [Remote host closed the connection]
<agent_white>
anomaly_: Also, you might want to check out Practical Object Oriented Design in Ruby (POODR), by Sandy Metz. I've found it very very helpful.
rrios has joined #ruby
replay_ has joined #ruby
datafirm has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
<abstrakt>
nor is there a concept of negative numbers, at least not in the way(s) that computers represent binary information
<acl_>
abstrakt: i see
nari has quit [Ping timeout: 258 seconds]
sevenseacat has joined #ruby
xiq has quit [Read error: Connection reset by peer]
<Lightsword>
jenrzzz, well, this request will go to hundreds if not thousands of devices at once, isn't EM better at something like that?
afex has quit [Ping timeout: 245 seconds]
<abstrakt>
acl_, negative numbers are usually represented by having a single bit indicate negative/positive, however if you have e.g. an 8 bit integer, and one of those bits represents negative/positive, you can only represent a number half as large as the entire 8 bits
<acl_>
abstrakt: that's certainly a better explanation than some of the books i've read
<abstrakt>
acl_, that's the easy part to understand, floating point numbers, by necessity, must resort to some form of "representing" and this has consequences for calculations
<jenrzzz>
Lightsword: depends on your constraints. but sending hundreds of requests is no big deal regardless of the gem you’re using
oo_ has quit [Remote host closed the connection]
<abstrakt>
most notably, that often times calculations that would be easy/exact in the base 10 world (that is, in normal human pencil and paper problems) come out with small margins of error
<jenrzzz>
Lightsword: i’d say start simple and then parallelize later if you need to
<arrubin>
acl_: Try that code if you wish to explore arbitrary precision.
<acl_>
doing that
<abstrakt>
acl_, in other words, there's something analogous that happens with floating point numbers, though it's more complicated and not as easy to describe as how negative numbers works
<Lightsword>
jenrzzz, I know the request works...at least when I pass a single IP and remove the for loop
<abstrakt>
work*
mrmargolis has quit [Ping timeout: 252 seconds]
Sigma00 has joined #ruby
<Lightsword>
jenrzzz, I think it has something to do with me not using a unique http variable for each request, not sure how I would fix that though
<centrx>
It turns strings into an array, not just any variable
freggles has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<jenrzzz>
Lightsword: read the docs more if you’re gonna use EM. you’re doing a lot of things wrong
dideler|work has quit [Ping timeout: 264 seconds]
<Lightsword>
jenrzzz, should I be using the Multi interface?
<jenrzzz>
Lightsword: you can, but it’s gonna be a lot more complicated than it needs to be
robustus has quit [Ping timeout: 252 seconds]
bMalum_ has quit [Ping timeout: 245 seconds]
selina345 has quit [Quit: Page closed]
robustus has joined #ruby
<jenrzzz>
Lightsword: i still think you should just do it with HTTParty or another simple way to make HTTP requests and be done with it. pretty sure it will be fast enough. if it’s not, you’ll have working code that you can optimize further
<vim_shim>
"Make it work - then make it work fast."
gigetoo has quit [Remote host closed the connection]
<jenrzzz>
dammit, c2 is almost as bad as tvtropes
<arrubin>
But is it web scale?
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky_ has joined #ruby
<jenrzzz>
not as web scaley as mongo
<jenrzzz>
or /dev/null
gigetoo has joined #ruby
<vim_shim>
I'd say I've gotten *much* more value from falling into a c2 hole, than a trope trip. :D
doodlehaus has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
<jenrzzz>
> c2-hole
oo_ has quit [Remote host closed the connection]
<jenrzzz>
> trop trip
<jenrzzz>
vim_shim: do you do drugs? :P
* vim_shim
goes back and erases erroneous comma
Lucky_ has quit [Client Quit]
<jenrzzz>
because i think those are apt analogies
<vim_shim>
jenrzzz: I pity the sad straight jacket life of those who haven't seen they don't exist! ;)
* jenrzzz
does not understand the reference
subbyyy has quit [Ping timeout: 264 seconds]
bijan07077 has joined #ruby
<vim_shim>
A general nod to the more or less universal dissolution of the ego on experiences on a high enough does of psychedelics.
<vim_shim>
*one
<jenrzzz>
ohhh
<jenrzzz>
haven’t seen *that* they don’t exist
<vim_shim>
I kind of piled on the double negatives there.
mercwithamouth has quit [Ping timeout: 255 seconds]
<jenrzzz>
my parser got all fucked up
<vim_shim>
I should have used a better encoding scheme. ;)
<jenrzzz>
yeah dude. tried DMT for the first time last month and haven’t fully come to terms with it yet
* vim_shim
whistles
mrmargolis has joined #ruby
nari has joined #ruby
<vim_shim>
Noice. Closest I've come to that level was with salvia. I'm a mushroom tea aficionado m'self.
aiguu has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<jenrzzz>
i’d describe it as like salvia, but fun
<jenrzzz>
salvia makes me turn into objects and doesn’t give me questions or answers. so not really a fan
acl__ has joined #ruby
<vim_shim>
ya, same here
acl__ has quit [Client Quit]
<vim_shim>
The effects of the edges of my peripheral vision were spectacular tho. I never really contemplated the boundaries of my vision until then.
<debajit>
newbie/style q: In ruby, if I have two functions f(arg) and g(arg) and if a want to call "g(f(arg))" — is it acceptable to say "g f arg" instead? I was wondering what is generally done when one wants to nest functions, and doesn't like using parentheses
<jenrzzz>
whoa
<abstrakt>
cuz like, this all has so much to do with ruby...
nanoyak has quit [Quit: Computer has gone to sleep.]
acl_ has quit [Ping timeout: 240 seconds]
<jenrzzz>
i think an above-average number of rubyists are also into psychedelics
<jenrzzz>
debajit: use parentheses anyways
<debajit>
jenrzzz: Even when not using nested calls?
marcdel has quit []
<debajit>
jenrzzz: Darn, I was just falling in love with not having to use parens with each call :P
<benzrf>
debajit: ignore jenskarlsen
<benzrf>
* jenrzzz
<jenrzzz>
debajit: unless you’re _why and are writing “poetry” you almost always want to use parentheses when passing arguments, and especially with nested calls
<benzrf>
debajit: i usually do 'f g(v)'
<jenrzzz>
yeah that works ^^
<debajit>
I like benzrf's approach :)
charliesome has joined #ruby
<debajit>
for single calls I tend to avoid parens — is that the "ruby" way of doing things?
<jenrzzz>
debajit: i think there is some contention on that point
<benzrf>
debajit: TIMTOWTDI :I
<jenrzzz>
FWIW, rails says “Use MyClass.my_method(my_arg) not my_method( my_arg ) or my_method my_arg.”
<debajit>
jenrzzz: If it saves me typing, and the language fully allows it, why make things more complex?
<jenrzzz>
because code is read orders of magnitude more times than it is written
rm_ has quit [Remote host closed the connection]
<arrubin>
debajit: Are you unable to touch type?
toastynerd has joined #ruby
<debajit>
jenrzzz: Touché :) but for simple calls I think it doesnt get in the way of readability at all
MrWharfsnort has quit [Ping timeout: 245 seconds]
<debajit>
arrubin: Yes, sir
<debajit>
arrubin: I meant, I am able to :)
_reset has joined #ruby
<arrubin>
Saving a few keystrokes just does not seem important.
livcd has joined #ruby
agjacome has joined #ruby
<jenrzzz>
debajit: ruby lets you do lots of things because you’re a responsible adult. but there are always tradeoffs
mjsmith2 has quit [Remote host closed the connection]
doodlehaus has joined #ruby
thomasxie has joined #ruby
<jenrzzz>
bricker can you have easier problems plz
<bricker`LA>
:P
doodlehaus has quit [Remote host closed the connection]
<happytux>
thank people
<happytux>
jenrzzz: thanks
<jenrzzz>
happytux: de nada
<happytux>
There is a Rakefile and I require several gems which contain Rake tasks. Now I got the problem that there is a gem which defines not only tasks I want to use in the Rakefile but also one task (named 'spec') which I want to overwrite / redefine.
maximski has quit []
ascarter has joined #ruby
sdwrage has joined #ruby
<happytux>
Because currently both spec tasks are run, the one from the required gem and the one I defined by myself (and should be used alone).
<happytux>
I have to require that gem because I need all the other tasks.
<omosoj>
Is it possible to use crontab to run ruby scripts?
<centrx>
Is it not possible use crontab to run any kind of script?
Gooder``` has quit [Remote host closed the connection]
<arrubin>
Lightsword: What have you tried so far?
dorei has quit []
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
tyll_ has quit [Ping timeout: 276 seconds]
mjsmith2 has joined #ruby
<Lightsword>
I tried using resp.response_header
<omosoj>
bricker`LA, how do I do that?
<rkazak>
l o peeps.
<Lightsword>
arrubin but I get a no method error
irvingprime has joined #ruby
tyll has joined #ruby
codeFiend has joined #ruby
Es0teric has joined #ruby
hamakn has joined #ruby
<bricker`LA>
omosoj: PATH=$PATH:/path/to/ruby
<Lightsword>
I basically want to get a hash with the IP as the key and the etag as the value
<bricker`LA>
omosoj: or better yet, just point to the ruby bin directly in the command
<bricker`LA>
/usr/bin/ruby script.rb
Gooder has joined #ruby
george2 has joined #ruby
<omosoj>
so: * * * * * cd /home/comp/ruby/scripts && /usr/bin/ruby script.rb
chipotle has joined #ruby
<bricker`LA>
omosoj: try it
<bricker`LA>
omosoj: what's the actualy problem? You just said "it's not working"
<bricker`LA>
actual*
Adran has joined #ruby
<omosoj>
K. It's setup. ... The command shows up when I type crontab -l, but it doesn't run.
<omosoj>
The script checks twitter trends and puts them in a log file.
Es0teric has quit [Ping timeout: 258 seconds]
ixti has quit [Ping timeout: 240 seconds]
<omosoj>
Hmm. Doesn't seem to be working. I'm probably doing something wrong at a very fundamental level. I'm thinking of just calling it quits and using the sleep function.
jwang has joined #ruby
St_Marx has quit [Ping timeout: 272 seconds]
shashank_rs has quit [Ping timeout: 240 seconds]
beneggett has joined #ruby
Es0teric has joined #ruby
chipotle has quit [Quit: cya]
Hobogrammer has joined #ruby
<bricker`LA>
omosoj: are you sure it's not running? How do you know?
<jenrzzz>
omosoj: when do you want the job to run? you didn’t specify a time
<bricker`LA>
jenrzzz: the syntax he has is valid
<jenrzzz>
what’s that supposed to do? run every minute?
<bricker`LA>
omosoj: check your mail on your system (or the mail of whichever user's crontab that is), if there's an error it will tell you
wallerdev has joined #ruby
jamto11 has joined #ruby
St_Marx has joined #ruby
<omosoj>
bricker`LA because it doesn't update the logfile. Also, I put a random puts "Updated" there so that it would write something every time it ran.
bMalum_ has joined #ruby
<bricker`LA>
omosoj: write something where?
lw has joined #ruby
<omosoj>
Heh, hoping that it would write it to the terminal
<bricker`LA>
omosoj: nope
acl_ has joined #ruby
<bricker`LA>
omosoj: where is your ruby binary installed?
upsell5 has quit [Quit: upsell5]
<rkazak>
omosoj: paste the error?
acl_ is now known as isxek
<omosoj>
not sure where it's installed. I'll look.
<omosoj>
rkazak, there's no error. It's just that nothing happens
<bricker`LA>
omosoj: type `which ruby`, that's where you should be pointing in the crontab
<bricker`LA>
omosoj: there's probably an error, you just need to go looking for it, in mail for example
<rkazak>
how about using ‘( command )’ ?
<rkazak>
omosoj: send it all to a subshell…
pu22l3r has quit [Remote host closed the connection]
<omosoj>
sorry i'm a newbie. how do I do that?
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj>
(i adjusted the ruby binary path)
MrWharfsnort has joined #ruby
<bricker`LA>
omosoj: it should work with the fixed path
rostam has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 255 seconds]
<omosoj>
How do I check the mail thing you mentioned?
<omosoj>
rkazak, how do I do that?
bMalum_ has quit [Ping timeout: 265 seconds]
<rkazak>
omosoj: put the command in parentheses ( cd /tmp && /usr/bin/ruby script.rb )
<omosoj>
rkazak, ok, done.
cjsarette has quit [Excess Flood]
<rkazak>
omosoj: if configured cron will send you mail on the status of a background/batch job.
<rkazak>
oh, there is also debugflags… -x test for cron…
nanoyak has quit [Quit: Computer has gone to sleep.]
Lightsword has quit [Ping timeout: 240 seconds]
rostam has joined #ruby
<rkazak>
omosoj: that traces but does not execute....
Megtastique has quit []
Royalb15_1 has quit [Read error: Connection reset by peer]
hornairs has joined #ruby
jeregrine has joined #ruby
nateberkopec has joined #ruby
memorozovm has joined #ruby
livcd has joined #ruby
radic has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
marcdel has joined #ruby
radic has joined #ruby
_justin has joined #ruby
cjsarette has joined #ruby
ffranz has quit [Quit: Leaving]
cjsarette has quit [Max SendQ exceeded]
marcdel_ has joined #ruby
mgomezch has quit [Remote host closed the connection]
n34762 has joined #ruby
irvingprime has quit [Quit: Leaving]
n34762 has left #ruby [#ruby]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
marcdel has quit [Ping timeout: 240 seconds]
livcd has quit [Ping timeout: 255 seconds]
figgleberry has quit [Read error: Connection reset by peer]
railsbro has quit [Quit: Leaving]
figgleberry has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
mrmargol_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
bMalum_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrmargolis has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
irvingprime has joined #ruby
bMalum_ has quit [Ping timeout: 240 seconds]
Guest59042 has quit [Excess Flood]
_justin has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
benzrf is now known as benzrf|offline
server129 has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
_justin has joined #ruby
codeFiend has quit [Quit: codeFiend]
figgleberry has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #ruby
EasyCo has quit [Ping timeout: 245 seconds]
dnyy has quit [Ping timeout: 245 seconds]
andrewstewart has quit [Ping timeout: 245 seconds]
jeregrine has quit [Ping timeout: 245 seconds]
ballPointPenguin has quit [Ping timeout: 245 seconds]
bjeanes has quit [Read error: Connection reset by peer]
Dysruption has joined #ruby
bjeanes_ has joined #ruby
EasyCo has joined #ruby
CJD14__ has quit [Read error: Connection reset by peer]
aspires has quit []
andrewstewart has joined #ruby
dnyy has joined #ruby
vcoinminer___ has quit [Ping timeout: 245 seconds]
CJD14__ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Striki has quit [Ping timeout: 252 seconds]
jeregrine has joined #ruby
aspires has joined #ruby
mrmargol_ has quit [Remote host closed the connection]
vcoinminer___ has joined #ruby
mikepack has joined #ruby
dpswireless has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
dpswireless has quit [Remote host closed the connection]
dpswireless has joined #ruby
irvingprime has quit [Quit: Leaving]
cjsarette has joined #ruby
cjsarette has quit [Excess Flood]
Dysruption has quit [Client Quit]
Striki has joined #ruby
ballPointPenguin has joined #ruby
aspires has quit []
omegahm has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 265 seconds]
livcd has joined #ruby
kpshek has joined #ruby
s2013 has joined #ruby
aspires has joined #ruby
Celm_ has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
Lucky_ has joined #ruby
chipotle has quit [Quit: cya]
datafirm has quit [Quit: Computer has gone to sleep.]
livcd has quit [Ping timeout: 252 seconds]
datafirm has joined #ruby
freerobby has quit [Quit: Leaving.]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kate_r has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Lightsword has joined #ruby
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
beneggett has joined #ruby
braincrash has joined #ruby
Thermo has joined #ruby
datafirm has quit [Ping timeout: 265 seconds]
beneggett has quit [Client Quit]
weaksauce has joined #ruby
_2_iveth2 has joined #ruby
_2_iveth2 has left #ruby [#ruby]
debajit has quit [Quit: Leaving...]
OffTheRails has quit [Ping timeout: 252 seconds]
combusean has quit [Ping timeout: 245 seconds]
debajit has joined #ruby
combusean has joined #ruby
cjsarette has joined #ruby
bMalum_ has joined #ruby
datafirm has joined #ruby
meatherly has quit [Remote host closed the connection]
lw has quit [Quit: s]
aspires has quit []
phinfonet has quit []
aspires has joined #ruby
cescalante is now known as ce_afk
yfeldblum has joined #ruby
bMalum_ has quit [Ping timeout: 258 seconds]
lw has joined #ruby
cjsarette has quit [Excess Flood]
mrgoodcat has quit []
armyriad has quit [Ping timeout: 252 seconds]
subbyyy has joined #ruby
kitak__ has joined #ruby
kitak_ has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 265 seconds]
aspires has quit []
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
_justin has quit [Quit: _justin]
sambao21 has joined #ruby
ce_afk is now known as cescalante
ascarter has joined #ruby
MrWharfsnort has quit [Ping timeout: 245 seconds]
LexicalScope has joined #ruby
memorozovm has quit [Remote host closed the connection]
LexicalScope` has joined #ruby
freerobby has joined #ruby
cjsarette has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
yfeldblu_ has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
LexicalScope` has quit [Ping timeout: 276 seconds]
debajit has quit [Quit: Leaving...]
simoz112 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
krz has joined #ruby
Karunamon has quit [Ping timeout: 264 seconds]
rixius has quit [Quit: No Ping reply in 180 seconds.]
<agent_white>
Ooo...
rixius has joined #ruby
freerobby1 has quit [Ping timeout: 240 seconds]
SegFaultAX has joined #ruby
Karunamon has joined #ruby
bMalum_ has joined #ruby
jamto11 has joined #ruby
hamakn_ has joined #ruby
hamakn_ has quit [Read error: No route to host]
aiguu has quit [Ping timeout: 258 seconds]
pu22l3r has quit [Remote host closed the connection]
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
nathancahill has quit [Quit: nathancahill]
mjsmith2 has quit [Remote host closed the connection]
kalimist has joined #ruby
bMalum_ has quit [Ping timeout: 245 seconds]
jamto11 has quit [Ping timeout: 240 seconds]
codeFiend has joined #ruby
EthanHuntAgain has quit [Quit: Computer has gone to sleep.]
EthanHuntAgain has joined #ruby
jlast has joined #ruby
FiveDeltaSix has joined #ruby
Retroid_ has joined #ruby
Retroid_ is now known as Retroid
dik_dak has quit [Quit: Leaving]
<Retroid>
hey everyone
tacos1de has quit [Ping timeout: 272 seconds]
<jenrzzz>
hi
Atrumx has quit [Ping timeout: 255 seconds]
<Retroid>
I'm just getting started in Ruby, anyone read The Ruby Programming Language (book)?
kalimist has quit [Excess Flood]
<Retroid>
or at least, have it to reference?
<Retroid>
its from 2008 so im wondering if its still a good buy
mikehaas763 has joined #ruby
Connie has quit []
<mikehaas763>
In a typical vagrantfile, there is a line like this: "Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|" Then a bunch of statements are called on 'config' in the block. I'm not a ruby guy. Is this a lambda block or what?
Lightsword has quit [Ping timeout: 240 seconds]
kalimist has joined #ruby
kalimist has quit [Max SendQ exceeded]
lethjakman has joined #ruby
kalimist has joined #ruby
Es0teric has joined #ruby
kalimist has quit [Max SendQ exceeded]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kalimist has joined #ruby
kalimist has quit [Max SendQ exceeded]
Bumptiou_ has joined #ruby
Bumptious has quit [Read error: No route to host]
EthanHuntAgain has quit [Quit: Computer has gone to sleep.]
ascarter has joined #ruby
TripTastic has joined #ruby
Lightsword has joined #ruby
kalimist has joined #ruby
jlast has quit [Remote host closed the connection]
kalimist has quit [Excess Flood]
ccbn has joined #ruby
codeFiend has quit [Ping timeout: 240 seconds]
datafirm has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
<ccbn>
I have a String of data read from a TCP socket. I'm trying to unpack a 3-byte/24-bit big-endian chunk. Currently I'm unpacking it as 3, 8-bit integer with "C3" but it returns 3 values in an array; I would like it to be one 24-bit value in the array
<Retroid>
have you read The Ruby Programming Language?
<jenrzzz>
nah, i started with why’s guide and then winged it with the docs from there
kalimist has joined #ruby
TripTastic is now known as JBreit
<Retroid>
wait, its a cartoon
<Retroid>
I mean, comic
<Retroid>
what
kalimist has quit [Excess Flood]
<jenrzzz>
yeah it’s awesome
kalimist has joined #ruby
<Retroid>
haha, thats great
kalimist has quit [Max SendQ exceeded]
<jenrzzz>
i hope my baby’s first words are “class << self""
codeFiend has joined #ruby
aiguu has joined #ruby
<Retroid>
maybe ill just stick with this guide, and also use the book from the library
<Retroid>
once I can finally get it, 4 people have it on hold
Es0teric has quit [Quit: Computer has gone to sleep.]
<jenrzzz>
ccbn: you could probably do a fancy #inject with a bitwise OR and a bit shift to flatten it
mjsmith2 has joined #ruby
<jenrzzz>
ccbn: why do you want it to be a single value though?
<jenrzzz>
yeah, there are more than enough decent guides free around the net
<Retroid>
mhm, I just like something physical that I can reference
<jenrzzz>
the pickaxe and _why’s are just the standard suggestions due to their impact i guess
<Retroid>
I need 3 monitors
Xeago has joined #ruby
<Retroid>
yeah, unfortunatly my library doesnt have pickaxe (except on reference) and the book store I have a gift card for doesnt have it either
<jenrzzz>
you should write a strongly worded letter
<Retroid>
to be honest, im suprised they have any programming ruby books not on reference
kalimist has joined #ruby
bin_sh has quit [Ping timeout: 276 seconds]
kalimist has quit [Max SendQ exceeded]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjsmith2 has quit [Ping timeout: 240 seconds]
iamayam has quit [Ping timeout: 264 seconds]
<agent_white>
Retroid: Have you checked out Practical Object Oriented Design in Ruby (Sandy Metz) ?
<agent_white>
Very well worth it, if you can grab it.
<Retroid>
yeah, I looked at it briefly, but the name suggested to me that it wouldnt be a good starting place, my oop is only basic
kalimist has joined #ruby
kalimist has quit [Max SendQ exceeded]
<ccbn>
jenrzzz: there are more values in the array on either side (that I want to unpack as separate), otherwise I would just flatten it. I could split it up into 2 or 3 different chunks but it just bothers me
<Retroid>
would you say its a good place to start for ruby agent_white?
ascarter has joined #ruby
bijan07077 has joined #ruby
<jenrzzz>
ccbn: so you want an array of arrays each containing a sing 24-bit value?
<jenrzzz>
single*
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 255 seconds]
kalimist has joined #ruby
<ccbn>
jenrzzz: I said "flatten" but I meant "inject". Maybe this will make more sense, it's my current unpack string: unpack("A4NNCC3A*"), I want to keep everything the same, I just want to grab the "C3" part as one value instead of 3 in the resulting array
Bumptiou_ has quit [Read error: Connection reset by peer]
Bumptious has joined #ruby
yvemath has quit [Excess Flood]
mjsmith2 has joined #ruby
WishBoy has quit [Remote host closed the connection]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
livcd has joined #ruby
Lightsword has quit [Read error: Connection reset by peer]
WishBoy has joined #ruby
iamayam has joined #ruby
mjsmith2_ has joined #ruby
davedev24 has quit [Remote host closed the connection]
yvemath has joined #ruby
Lightsword has joined #ruby
Bumptiou_ has joined #ruby
alexju has joined #ruby
mjsmith__ has joined #ruby
toastynerd has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel has joined #ruby
JBreit has left #ruby ["Leaving"]
sputnik13 has joined #ruby
armyriad has joined #ruby
bjeanes_ is now known as bjeanes
bMalum_ has quit [Ping timeout: 258 seconds]
yvemath has quit [Excess Flood]
ndrei has joined #ruby
sputnik13 has quit [Remote host closed the connection]
jtdowney has joined #ruby
<jenrzzz>
ccbn: this might be weird, but maybe you could unpack it as a 24-bit bitstring (‘B24’) and then call #to_i(2) on it?
jtdowney has quit [Client Quit]
kitak_ has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
mrnugget has joined #ruby
e^0 has quit [Ping timeout: 240 seconds]
HashNuke has joined #ruby
ndrei has quit [Read error: No route to host]
ndrei_ has joined #ruby
maletor has joined #ruby
sputnik13 has joined #ruby
<ccbn>
jenrzzz: I really don't need the integer, I just want to pack and unpack it as one value. This works, I just have to use B24 when I pack it. Thanks for this.
<jenrzzz>
i think that might work even if you pack it with C
<jenrzzz>
it’s just bits
<jenrzzz>
unless it has to do some alignment shi
<jenrzzz>
tt
afex has joined #ruby
yvemath has joined #ruby
Xeago has quit [Remote host closed the connection]
<ccbn>
Packing with "C" gives me error converting String to Integer, but I'm happy with "B24" for both
codeFiend has quit [Quit: codeFiend]
<jenrzzz>
cool
Lightsword_ has joined #ruby
<jenrzzz>
what are you making?
Darryl has joined #ruby
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
Lightsword has quit [Ping timeout: 276 seconds]
Lightsword_ is now known as Lightsword
bijan07077 has quit [Ping timeout: 252 seconds]
bijan07077 has joined #ruby
redondos has quit [Excess Flood]
redondos has joined #ruby
meatherly has quit [Remote host closed the connection]
SOLID000 has quit [Read error: Connection reset by peer]
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
e^0 has joined #ruby
datafirm has joined #ruby
tagrudev has joined #ruby
debajit has joined #ruby
sputnik13 has quit [Ping timeout: 258 seconds]
sputnik1_ has joined #ruby
tobago has joined #ruby
sputnik1_ has quit [Remote host closed the connection]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
datafirm has quit [Ping timeout: 252 seconds]
codeFiend has joined #ruby
bricker`LA has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
afex has quit [Ping timeout: 245 seconds]
doodlehaus has joined #ruby
toastynerd has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 276 seconds]
livcd has joined #ruby
cescalante is now known as ce_afk
doodlehaus has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mrnugget has quit [Read error: Connection reset by peer]
funburn has quit [Ping timeout: 265 seconds]
mrnugget has joined #ruby
agjacome has quit [Quit: leaving]
Lightsword has quit [Ping timeout: 265 seconds]
mrnugget has quit [Read error: Connection reset by peer]
toastynerd has quit [Ping timeout: 252 seconds]
leggo has quit []
Xeago has joined #ruby
abstrakt has quit [Quit: Leaving]
apeiros_ has quit [Remote host closed the connection]
mrnugget has joined #ruby
funburn has joined #ruby
apeiros has joined #ruby
simoz112 has quit [Ping timeout: 240 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
jenrzzz cookies!
skaflem has joined #ruby
<jenrzzz>
ooh what kind?
<shevy>
the one where the brain goes gaga
<shevy>
the wondercookies
mrnugget has quit [Read error: Connection reset by peer]
<jenrzzz>
sweeeet
dseitz has joined #ruby
<jenrzzz>
well i’ve got some serious munchies but i don’t think i should have any
agent_white has joined #ruby
agent_white has left #ruby [#ruby]
ccbn has quit [Quit: Page closed]
mrnugget has joined #ruby
apeiros has quit [Ping timeout: 265 seconds]
bal has joined #ruby
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frosgy has joined #ruby
mrnugget has quit [Read error: Connection reset by peer]
mjsmith2 has joined #ruby
hermanmu_ has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 276 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
nevans has quit [Ping timeout: 245 seconds]
<jenrzzz>
mikehaas763: yeah, that’s pretty much what it is. there are some differences between blocks, procs, and lambdas in ruby but they are all the same concept
frogssgy has quit [Ping timeout: 245 seconds]
nevans has joined #ruby
mrnugget has joined #ruby
lolmaus has joined #ruby
freerobby has joined #ruby
mrnugget has quit [Client Quit]
relix has joined #ruby
mjsmith2 has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
hermanmunster has joined #ruby
ce_afk is now known as cescalante
freerobby has quit [Ping timeout: 276 seconds]
jack_rabbit has quit [Ping timeout: 245 seconds]
tacos1de has joined #ruby
bMalum_ has joined #ruby
jamto11 has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
rshetty has joined #ruby
Macaveli has joined #ruby
bMalum_ has quit [Ping timeout: 240 seconds]
frogssgy has joined #ruby
x1337807x has quit [Client Quit]
jamto11 has quit [Ping timeout: 252 seconds]
cescalante is now known as ce_afk
frosgy has quit [Ping timeout: 255 seconds]
deric_skibotn has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby
Burgestrand has joined #ruby
bMalum_ has joined #ruby
jprovazn has joined #ruby
mengu has joined #ruby
livcd has quit [Write error: Connection reset by peer]
livcd has joined #ruby
Lightsword has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Rahul_Roy has joined #ruby
mikehaas763 has quit [Remote host closed the connection]
noop has joined #ruby
claymore has joined #ruby
bijan07077 has quit [Quit: bijan07077]
semihelix has quit [Ping timeout: 252 seconds]
rain_dj has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
anarang has joined #ruby
isxek has quit [Ping timeout: 258 seconds]
rain_dj has left #ruby [#ruby]
klaut has joined #ruby
isxek has joined #ruby
isxek has quit [Client Quit]
beneggett has joined #ruby
apeiros has joined #ruby
dumdedum has joined #ruby
aganov has joined #ruby
anaeem1 has joined #ruby
arturaz has joined #ruby
Xeago has joined #ruby
alpha123 has quit [Ping timeout: 252 seconds]
anaeem1 has quit [Ping timeout: 240 seconds]
sski has quit [Remote host closed the connection]
meatherly has joined #ruby
alpha123 has joined #ruby
ctp has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
rkazak has left #ruby [#ruby]
rshetty has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
amclain has quit [Quit: Leaving]
meatherly has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
toastynerd has quit []
Fractional has joined #ruby
livcd has quit [Ping timeout: 265 seconds]
ce_afk is now known as cescalante
<Fractional>
Hello, I am getting an rspec error (cannot load such file (filepath)). https://join.me/781-780-045
<Fractional>
Nevermind, solved it. I am so stupid :P
Fractional has quit [Remote host closed the connection]
yvemath has quit [Excess Flood]
zigomir has joined #ruby
rshetty has joined #ruby
Xeago has quit [Remote host closed the connection]
claymore has joined #ruby
debajit has quit [Quit: Leaving...]
lethjakman has quit [Ping timeout: 252 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
alex88 has joined #ruby
Ardenzi has joined #ruby
SegFaultAX has quit [Excess Flood]
mjsmith2 has joined #ruby
j416_ is now known as j416
SegFaultAX has joined #ruby
mjsmith2_ has joined #ruby
kung has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
cescalante is now known as ce_afk
lethjakman has joined #ruby
mjsmith2 has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
omosoj has quit [Quit: Leaving]
mjsmith2_ has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 240 seconds]
mr_rich101 has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 240 seconds]
artgoeshere has quit [Ping timeout: 240 seconds]
artgoeshere has joined #ruby
bMalum_ has quit [Quit: Computer has gone to sleep.]
mengu has quit [Remote host closed the connection]
bMalum_ has joined #ruby
unixpro1970 has joined #ruby
bMalum_ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
bMalum_ has joined #ruby
sinkensabe has joined #ruby
mr_rich101 has joined #ruby
bMalum__ has joined #ruby
bMalum_ has quit [Read error: Connection reset by peer]
livcd has joined #ruby
krzkrz has joined #ruby
spicerack has joined #ruby
senayar has joined #ruby
Rockfordal has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
setra has joined #ruby
mehlah has joined #ruby
sooik has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
[iilliinn] has joined #ruby
oo_ has quit [Remote host closed the connection]
ndrei_ has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
roshanavand has joined #ruby
RaptorJesus is now known as TheMoon
TheMoon is now known as DogeRocket
vt102 has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
<Rockfordal>
anyone know how to get invite to #rails? (i am registered)
<sevenseacat>
#rails doesnt exist
<Rockfordal>
oh lol
DogeRocket is now known as RaptorJesus
ish6614 has quit [Quit: Leaving]
<danijoo>
Rockfordal: #RubyOnRails is the official channel :)
debajit has joined #ruby
sooik has quit [Ping timeout: 265 seconds]
LiohAu has joined #ruby
e^0 has quit [Quit: WeeChat 0.4.3]
setra has quit [Ping timeout: 276 seconds]
Hobogrammer has quit [Ping timeout: 255 seconds]
lethjakman has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
livcd has joined #ruby
Xeago has joined #ruby
datafirm has joined #ruby
debajit has quit [Ping timeout: 276 seconds]
subraminion has joined #ruby
shemerey has joined #ruby
Xeago has quit [Client Quit]
livcd has quit [Ping timeout: 240 seconds]
datafirm has quit [Ping timeout: 252 seconds]
tesuji has joined #ruby
DouweM has quit [Ping timeout: 276 seconds]
jeregrine has quit [Quit: Connection closed for inactivity]
Xeago has joined #ruby
subraminion_ has joined #ruby
unixpro1970 has quit [Quit: Computer has gone to sleep. ZZZzzz…]
<Hanmac>
ari-_-e: "First tries to call Array#to_ary on arg, then Array#to_a."
<tobiasvl>
and THEN [arg]. but that's not documented
<ari-_-e>
yes, how does that explain Array(5) => [5]
marr has joined #ruby
mjsmith2 has joined #ruby
<Hanmac>
what do you want? should it rise a no method error?
<ari-_-e>
Hanmac: as I said, I was just wondering if it was documented
freggles has joined #ruby
<ari-_-e>
apparently it's not
Melpaws has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
<apeiros>
tobiasvl: docpatch!
freerobby has joined #ruby
postmodern has quit [Quit: Leaving]
sevenseacat has joined #ruby
subbyyy has quit [Ping timeout: 276 seconds]
mjsmith2 has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
fantazo has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
ndrei has joined #ruby
<Hanmac>
someday someone else will also make docpatches for my projects ... i mean come one how much can you document for a Color#red attribute? ;P
olivier_bK has joined #ruby
<Hanmac>
even that last sentence was longer than the documentation for this attribute ;D
<tobiasvl>
lol
grzywacz has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
moritzs has joined #ruby
combusean has quit [Ping timeout: 265 seconds]
rm__ has quit [Remote host closed the connection]
einarj has joined #ruby
rm_ has joined #ruby
<Hanmac>
tobiasvl: yeah how many could you write for documenting one color attribute of a Color class?
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
WishBoy has quit [Ping timeout: 258 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
mercerist has joined #ruby
WishBoy has joined #ruby
ghr has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm_ has quit [Ping timeout: 245 seconds]
<ari-_-e>
tobiasvl: even the documentation that exists is confusing - how can you invoke Array#to_ary to Array#to_a on something that's not an Array?
<ari-_-e>
from my reading of MRI, it looks like it's more like it invokes the #to_ary and #to_a methods on the given object and checks if the result is an Array
<DaniG2k>
hmm does RVM not support Ruby 2.1.2 yet or am I doing something wrong?
<ari-_-e>
s/to/or/
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
anarang has quit [Ping timeout: 258 seconds]
bMalum__ has quit [Read error: Connection reset by peer]
bMalum__ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has quit [Ping timeout: 240 seconds]
bMalum__ has quit [Client Quit]
bMalum__ has joined #ruby
<sevenseacat>
does rvm still need to be updated to get the new definitions?
<sevenseacat>
(which is really annoying btw)
WishBoy has quit [Remote host closed the connection]
<apeiros>
Hanmac: type, value range
WishBoy has joined #ruby
<apeiros>
seen docs for color systems where it was nowhere stated whether it was e.g. a float 0.0..1.0, or an uint_8, or uint_16 or even something else
jimbauds has quit [Ping timeout: 240 seconds]
bMalum__ has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 240 seconds]
anarang has joined #ruby
frobrob has joined #ruby
combusean has joined #ruby
kaspergr_ has joined #ruby
joonty has joined #ruby
klaut has quit [Remote host closed the connection]
WishBoy- has joined #ruby
livcd has joined #ruby
askldjuio2 has joined #ruby
_tpavel has joined #ruby
kaspergrubbe has quit [Ping timeout: 252 seconds]
WishBoy has quit [Ping timeout: 265 seconds]
moritzs has joined #ruby
asdklji2 has quit [Ping timeout: 250 seconds]
livcd has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
subraminion_ has quit [Quit: Computer has gone to sleep.]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ta has quit [Quit: Leaving...]
timonv has quit [Remote host closed the connection]
xea_ has quit [Remote host closed the connection]
charliesome has joined #ruby
meatherly has joined #ruby
sk87 has joined #ruby
WishBoy- has quit [Remote host closed the connection]
dbods has joined #ruby
WishBoy has joined #ruby
subraminion_ has joined #ruby
oo_ has quit [Remote host closed the connection]
subraminion_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewlio has joined #ruby
<shevy>
people who have to do something computationally heavy
<shevy>
will use C anyway
<Hanmac>
or write c- bindings ;P
<shevy>
yeah
<shevy>
but never finish them
<shevy>
right hanikazmi
<shevy>
erm
<shevy>
Hanmac!
zorak is now known as zorak8
zorak8 has quit [Quit: Saliendo]
zorak8 has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
rshetty has joined #ruby
<Hanmac>
shevy: hey! i will commit something for rwx again ... (and yeah i have older c-gems still in development) i was stressed that week and ohloh finally did checked my last commit: https://www.ohloh.net/p/rubywx/analyses/latest/languages_summary ... shevy look at this SCORE! ;P
rshetty__ has quit [Read error: Connection reset by peer]
rshetty_ has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<shevy>
Hanmac is it possible to use a wiki on ohloh?
n1x has quit [Ping timeout: 245 seconds]
<shevy>
wow
<shevy>
0.3% XML
JohnnyRun has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
<Hanmac>
shevy what are you looking for? (yeah there is a sample that uses xrc files )
bMalum__ has joined #ruby
thesheff17 has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
marcdel_ has quit [Ping timeout: 258 seconds]
tvw has joined #ruby
ce_afk is now known as cescalante
oo_ has joined #ruby
ghr has joined #ruby
sinkensabe has joined #ruby
<Hanmac>
shevy as far as i know ohloh does not have wiki, but github has
heftig has joined #ruby
memorozovm has quit []
charliesome has joined #ruby
freerobby has joined #ruby
n1x has joined #ruby
AlecTaylor has quit [Ping timeout: 240 seconds]
nvrch has joined #ruby
phoo1234567 has joined #ruby
hgl has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
bMalum__ has quit [Quit: Computer has gone to sleep.]
hgl has joined #ruby
bMalum__ has joined #ruby
EthanHuntAgain has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
combusean has joined #ruby
raspberryfan has quit [Remote host closed the connection]
decoponio has joined #ruby
raspberryfan has joined #ruby
sooik has joined #ruby
bMalum__ has quit [Read error: Connection reset by peer]
bMalum__ has joined #ruby
mehlah has quit [Quit: Leaving...]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
sunya7a has joined #ruby
sunya7a has quit [Client Quit]
sinkensabe has joined #ruby
lkba has joined #ruby
kies has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
bruno- has joined #ruby
freerobby has joined #ruby
aiguu has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
livcd has joined #ruby
chipotle has joined #ruby
mjsmith2 has joined #ruby
sinkensabe has quit [Ping timeout: 240 seconds]
zack` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
aiguu has quit [Ping timeout: 255 seconds]
livcd has quit [Ping timeout: 255 seconds]
cescalante is now known as ce_afk
beef-wellington has quit [Ping timeout: 258 seconds]
Ankhers has quit [Changing host]
Ankhers has joined #ruby
Ankhers has quit [Changing host]
Ankhers has joined #ruby
wald0 has joined #ruby
AlecTaylor has joined #ruby
AlecTaylor has joined #ruby
AlecTaylor has quit [Changing host]
phutchins has joined #ruby
alexju has joined #ruby
jeregrine has joined #ruby
<happytux>
hi
<happytux>
There is a Rakefile and I require several gems which contain Rake tasks. Now I got the problem that there is a gem which defines not only tasks I want to use in the Rakefile but also one task (named 'spec') which I want to overwrite / redefine.
<happytux>
Because currently both spec tasks are run, the one from the required gem and the one I defined by myself (and should be used alone).
aganov has quit [Quit: Leaving]
<happytux>
I have to require that gem because I need all the other tasks.
krz has joined #ruby
Melpaws has quit [Ping timeout: 276 seconds]
<happytux>
So can I either use the gem-name as namespace? Or selectively disable one of both tasks?
sinkensabe has joined #ruby
mary5030 has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
shemerey has joined #ruby
mary5030 has joined #ruby
jle` has quit [Quit: WeeChat 0.4.2]
jle` has joined #ruby
sunya7a has joined #ruby
xcesariox has joined #ruby
ixti has joined #ruby
meatherly has joined #ruby
DouweM has quit [Ping timeout: 240 seconds]
paulfm has quit []
Fraeon has quit [Quit: Lost terminal]
sambao21 has quit [Quit: Computer has gone to sleep.]
oo_ has quit [Remote host closed the connection]
combusean has joined #ruby
cocotton has quit [Remote host closed the connection]
upsell5 has joined #ruby
paulfm has joined #ruby
AlecTaylor has quit [Ping timeout: 255 seconds]
Solnse has joined #ruby
Fraeon has joined #ruby
AlecTaylor has joined #ruby
fieldfirst has joined #ruby
sambao21 has joined #ruby
julian-delphiki has joined #ruby
nateberkopec has joined #ruby
AlecTaylor has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
baweaver has joined #ruby
kevind has joined #ruby
subraminion__ has quit [Quit: Computer has gone to sleep.]
bean has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
DouweM has joined #ruby
mrnugget has joined #ruby
shashank_rs has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
fabrice31 has quit [Remote host closed the connection]
matchaw has quit [Remote host closed the connection]
AlexRussia has joined #ruby
matchaw has joined #ruby
blackmesa has joined #ruby
pu22l3r has joined #ruby
paulfm has quit []
paulfm has joined #ruby
paulfm has quit [Client Quit]
subraminion__ has joined #ruby
subraminion__ has quit [Remote host closed the connection]
<canton7-mac>
Hanmac, I don't like 'unless' with '&&' or '||', especially when '!' gets thrown in
<canton7-mac>
in this specific case it reads cleanly, but often it doesn't
subraminion__ has joined #ruby
beef-wellington has joined #ruby
<benzrf>
i always use english boolean ops unless precedence makes them require parens
Spami has joined #ruby
<canton7-mac>
urgh
tobago has quit [Remote host closed the connection]
<canton7-mac>
never been a fan of that - you're mis-using a keyword because you think it looks nice ;)
rostam has quit [Remote host closed the connection]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
paulfm has joined #ruby
matchaw has joined #ruby
cocotton has joined #ruby
zybil has joined #ruby
<zybil>
hi
combusean has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
<zybil>
I got 1000 files (wav,aac,mp3,aiff,flac) in folder A and I got most of them re-encoded to flac-format in folder B to i.e. "sound.wav.flac". All I wanna find out which files of A are missing in B because they couldn't be re-encoded?
beef-wellington has quit [Ping timeout: 245 seconds]
paulfm has quit [Client Quit]
<canton7-mac>
list all files in A, strip the extensions. same for B. find the difference ;)
tkuchiki has joined #ruby
<canton7-mac>
ask a more specific quesiton about one of those steps if you need to
blackmesa has quit [Ping timeout: 276 seconds]
treehug88 has joined #ruby
cpruitt has joined #ruby
rostam has joined #ruby
vpretzel is now known as vpretzel|920
fieldfirst has quit [Ping timeout: 245 seconds]
paulfm has joined #ruby
downtown has joined #ruby
downtown has left #ruby [#ruby]
tagrudev has quit [Remote host closed the connection]
<happytux>
And this variable inside the class should be assignable from the outside.
ndrei has quit [Ping timeout: 245 seconds]
codeFiend has joined #ruby
<zybil>
since this seems to be too difficult to me I nearly found another solution:
<zybil>
$ gprename / 1. remove all (extra) extensions in B / 2. compare via diff command / $ diff --brief -r dir1 dir2 / 3. re-add all (extra) extensions in B
yubrew has quit []
ctp has joined #ruby
<zybil>
but the problem is that gprename removes all .flac extensions, also if a file is named .flac.flac which alters the results again!!
jlast has quit [Remote host closed the connection]
dstynchula has joined #ruby
dstynchula has quit [Remote host closed the connection]
dik_dak has joined #ruby
beef-wellington has joined #ruby
poppingtonic is now known as Guest81733
<zybil>
thanks canton7 but sorry, too I'm very new to this channel and I have no idea, how to use these scripts, I only can write the correct first line: a = ['1.mp3', '2.aac', '3.wav', '4.aiff', '5.flac', '6.ogg']
<zybil>
but I don't understand the second line (b)
Morkel_ has joined #ruby
<zybil>
why are there two times .flac and why is it 1 and 3 and not 1 and 2?
poppingtonic` is now known as poppingtonic
bal has quit [Quit: bal]
livcd has joined #ruby
aniM has joined #ruby
poppingtonic is now known as Guest9821
omosoj has joined #ruby
<aniM>
I am building my first gem and I am having some issues. Could someone help?
<canton7-mac>
zybil, so 'a' is the list of files in folder A - i.e. which files existed before you tried transcoding them
Guest81733 has quit [Ping timeout: 240 seconds]
eka has joined #ruby
<canton7-mac>
'b' is the list of files in folder B - i.e. the ones which were successfully transcoded to flac
LastWhisper has quit [Ping timeout: 240 seconds]
<aniM>
Basically my gem works fine locally, but when I install it from github I get NameError: uninitialized constant error. I suspect something is wrong with my gemspec.
Guest9821 is now known as poppingtonic`
Morkel has quit [Ping timeout: 276 seconds]
Morkel_ is now known as Morkel
poppingtonic` is now known as poppingtonic
fabrice31 has quit [Remote host closed the connection]
poppingtonic is now known as Guest13705
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest13705 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<zybil>
ok
<happytux>
Hanmac: thanks
<zybil>
understand that
<zybil>
i just installed ruby and ruby-dev
<happytux>
Hanmac: ah, this class concept is different compared to other languages
jlast has joined #ruby
bijan07077 has joined #ruby
s2013 has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
Solnse has quit [Remote host closed the connection]
blackmesa has joined #ruby
fabrice31 has joined #ruby
snath has quit [Ping timeout: 255 seconds]
jokke has quit [Remote host closed the connection]
hgl has quit [Ping timeout: 240 seconds]
andrewcarter has joined #ruby
<andrewcarter>
I've just written my first gem and I'm looking into documentation, it's looking like yard and rdoc are the best two options?
spicerack has joined #ruby
<apeiros>
andrewcarter: yes. yard is IMO the best available.
tesuji has quit [Ping timeout: 258 seconds]
<andrewcarter>
apeiros: that's where I was leaning
<andrewcarter>
apeiros: thanks
sinkensabe has quit [Remote host closed the connection]
thesheff17 has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
Jake232 has joined #ruby
setient has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
<Rylee>
what's the %[ ] syntax for writing out a space-separated array?
<andrewcarter>
for the "data" attribute, what is the class type?
<xabbix>
Trying to replace some strings, all instances of 'root' with 'test' (This is a part of a chef script), can't get it to work for some reason.. any ideas? http://hastebin.com/etuvufaliy.vhdl
andrewjanssen has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
combusean has quit [Ping timeout: 240 seconds]
<zybil>
canton7-mac: but how can I tell where the files lie?
Beoran_ has joined #ruby
AlecTaylor has quit [Quit: Leaving]
lyanchih_ has joined #ruby
jonahR has joined #ruby
failshell has joined #ruby
<r_s_h>
I've got a pretty generic Module::Class setup, with a process method defined within the Class. In my main at the end of the script, I've got ModuleName::ClassName.process(). However, when I try to run, I get in `<main>': undefined method `process' for ModuleName::ClassName:Class (NoMethodError)
<havenwood>
r_s_h: Instantiate your class before you call class instance methods: ModuleName::ClassName.new.process
<Hanmac>
r_s_h you defined an instance method, and trys to call a class_mehtod
codeurge has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<canton7-mac>
zybil, a = Dir['Folder_A/*']
<Hanmac>
havenwood: whats your DoctorWho episode?
claymore has quit [Ping timeout: 240 seconds]
<havenwood>
Hanmac: hmm, dunno, not much further - been busy!
<professor_soap>
I also have a local ubuntu server running
unixpro1970 has joined #ruby
toastynerd has joined #ruby
<professor_soap>
running the Server.rb on the server works fine
toastynerd has quit [Remote host closed the connection]
maletor has joined #ruby
b00stfr3ak has joined #ruby
<professor_soap>
but connecting to the server form my remote computer with TCPSocket.new(server_ip, port), I get CONNECTION REFUSED
wldcordeiro_work has joined #ruby
<zybil>
canton7-mac: I don't wanna know that. In Folder A i.e. there are files sound.1wav, sound2.mp3 and sound3.flac. in folder B there should be all those transcoded files but with the additional extension .flac like: sound1.wav.flac sound2.mp3.flac sound3.flac.flac . 5 files of 1000 files weren't transcoded and I wanna find out which ones these are
<havenwood>
professor_soap: firewall or something?
<canton7-mac>
professor_soap, can you connect from the server to the server?
<canton7-mac>
zybil, ah, you never said that ;) clearly, anyway
Dysruption has joined #ruby
<professor_soap>
I can SSH into the machine without problem
lkba has quit [Read error: Connection reset by peer]
<zybil>
sorry canton7-mac, I tried my best
cpruitt has quit [Quit: cpruitt]
<havenwood>
zybil: so you're currently comparing "sound1.wav" to "sound1"?
ixti has quit [Ping timeout: 265 seconds]
<canton7-mac>
zybil, edit the script appropriately, then. I'm afraid I need to work
<professor_soap>
and access it normally if I, for example run a a website locally on the server on some prtt.
<canton7-mac>
he's currently comparing 'sound1.wav' and 'sound1.flac'
ryanleesipes has joined #ruby
<canton7-mac>
professor_soap, if you put the client script on the server, and run it, what happens?
<havenwood>
canton7-mac: "sound1.wav.flac" to "sound1.flac", no?
<havenwood>
canton7-mac: just from what he just said, heck if I know >.>
<professor_soap>
canton7-mac: one sec, let me check. I _guess_ it should work..
maletor has quit [Client Quit]
<professor_soap>
the script works fine on local machine btw..
<canton7-mac>
havenwood, currently it's 'sound1.wav' to 'sound1.flac'. He wants 'sound1.wav' to 'sound1.wav.flac'
<canton7-mac>
professor_soap, prolly firewall stuff then
<zybil>
havenwood: In folder A is sound1.wav (and other extensions like aiff, flac, mp3, ogg..) transcoded into folder B where they should all have the ending .flac added to there extension before, so soundx.flac.flac can happen, too
<havenwood>
right
<zybil>
no
<zybil>
not right
<havenwood>
zybil: so to compare you only need to strip file ext from the latter
<zybil>
I converted all the files already using soundconverter
<havenwood>
zybil: you're stripping from both, so one is bare and other has one ext, no?
shashank_rs has quit [Ping timeout: 252 seconds]
<zybil>
but some are missing and I wanna know which ones are missing
mercwithamouth has joined #ruby
<havenwood>
zybil: use a REPL and look at you data as you go
<zybil>
without losing my earsight
<havenwood>
zybil: earsight is precious
i_s has joined #ruby
<zybil>
havenwood: I tried that using gprename, but it removes .flac.flac of files which I don't want
cpruitt has joined #ruby
<zybil>
I just want to remove the last .flac extension
shashank_rs has joined #ruby
<zybil>
to compare via the diff-command
cpruitt has quit [Client Quit]
<professor_soap>
Connection refused - connect(2) for "[IP]" port 3000 (Errno::ECONNREFUSED)
<professor_soap>
Hmm...
<professor_soap>
oh
<professor_soap>
sorry
claymore has quit [Ping timeout: 276 seconds]
<zybil>
havenwood: I only need to strip the files from folder B, as they should all have the extra-extension .flac no matter what they had before
<professor_soap>
forgot to change client script to use localhost on the server..
<canton7-mac>
professor_soap, ok, so it prolly is a firewall issue, if 'localhost' works
<happytux>
SO required ruby files are evaluated _after_ evaluating the main ruby file, right? In contrast to import / load where the external ruby file is evaluated immediately, right?
hornairs has quit [Quit: hornairs]
<professor_soap>
but its a clean ubuntu 14.04 server, is there a default fire wall?
<havenwood>
zybil: so what's your output from this?
<benzrf>
jambolina: let me guess, you're picking a first language?
jokke has joined #ruby
shvelo has joined #ruby
phinfonet has joined #ruby
<oz>
jambolina: ruby has rainbows and unicorns.
<havenwood>
jambolina: Programmer happiness.
tkuchiki has quit [Remote host closed the connection]
rizzatti has joined #ruby
ryanlee has joined #ruby
noop has quit [Ping timeout: 258 seconds]
Dysruption has quit [Quit: Dysruption]
jimms has joined #ruby
AlexRussia_ has joined #ruby
_tpavel has quit [Quit: Leaving]
<jambolina>
benzrf: no no I already know quite a few
AlexRussia has quit [Ping timeout: 265 seconds]
<shevy>
jambolina clear and succinct expressions, unless you are incompetent
<havenwood>
jambolina: Name one or two you know. Easier to compare to something concrete.
ryanleesipes has quit [Quit: Leaving]
sski has quit [Ping timeout: 252 seconds]
ryanlee has quit [Client Quit]
<havenwood>
shevy: or unreadable white noise \o/
michael_lee has joined #ruby
<jambolina>
I've been thinking about learning it for quite a while. What do you guys like about it?
tkuchiki has joined #ruby
<shevy>
yeah, incompetence is the root of all evil
<havenwood>
jambolina: What language family are you coming from?
<jambolina>
havenwood: I know python, C++, Java...
<shevy>
did I not already write why I use ruby jambolina ;)
anarang has quit [Quit: Leaving]
claymore has joined #ruby
noocode has joined #ruby
<jambolina>
shevy: sorry, just read it
<shevy>
ok you will rarely have to compare ruby to i.e. c++
<shevy>
or python to java
cpruitt has quit [Quit: cpruitt]
<shevy>
but ruby vs. python, now that is a better way to compare
Shidash has joined #ruby
<shevy>
they have a similar niche
<shevy>
both can be quite readable
beef-wellington has joined #ruby
<shevy>
I don't really think it matters much which one to favour over the other, the biggest difference is the philosophy
ryanlee has joined #ruby
Squarepy has quit [Quit: Leaving]
maestrojed has joined #ruby
<havenwood>
jambolina: So a more complex grammar than Python that allows what I consider more elegant, intuitive, expressive code. Similar to Python in many ways. Less verbose and faster to get things done than C++ or Java.
maletor has joined #ruby
<havenwood>
jambolina: Also JRuby on the JVM in Java land.
<wldcordeiro_work>
I see Ruby and Python as both tools in my arsenal and sometimes one is more appropriate than the other.
<wldcordeiro_work>
Both do different things better than each other.
livcd has joined #ruby
ryanlee has quit [Client Quit]
<jambolina>
wldcordeiro_work: could you give an example?
<havenwood>
wldcordeiro_work: Python is the hammer I don't use because it isn't as nice as my gold-plated Ruby hammer. :P
cpruitt has joined #ruby
Retroid has joined #ruby
<wldcordeiro_work>
jambolina: I primarily do web development with the two so my comparisons might be more of a RoR/Django comparison.
<wldcordeiro_work>
But I try to not let the holy wars affect me lol
<shevy>
wldcordeiro_work how many gems did you write in ruby so far
hamakn_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Hobogrammer has joined #ruby
<wldcordeiro_work>
shevy: I've only written a couple for internal things at my job. But then again I haven't written any pip packages either.
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
<wldcordeiro_work>
It's bikeshedding in the end to get into these arguments about languages.
bakflash has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
benzrf is now known as benzrf|offline
<wldcordeiro_work>
The main things I prefer about Python are syntax related, like accessing class attributes and methods. I find the usage of '.' ':' '::' confusing at times for the different types of access.
<jambolina>
jambolina: I didn't intend start an argument...I'm just interested in what people like/dislike about ruby
kevinykchan has joined #ruby
livcd has quit [Ping timeout: 252 seconds]
<arrubin>
jambolina: That is a good way to start an argument.
<havenwood>
jambolina: Love the language. A downside that they're working on is ruby-core not shipping binaries. So the whole installation thing is a common pain point.
moritzs has quit [Ping timeout: 252 seconds]
<jambolina>
arrubin: I guess so...
narcan has joined #ruby
abra has joined #ruby
<wldcordeiro_work>
arrubin: Especially considering how argumentative programmers can be.
<wldcordeiro_work>
lol
<jambolina>
lol
zigomir has quit [Remote host closed the connection]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
<wldcordeiro_work>
Anyone here have experience with simplecov and rails? I'm having trouble setting it up and it looks like I'm asking too early for the ror channel lol
Es0teric has joined #ruby
ixti has joined #ruby
BWStearns has quit [Ping timeout: 276 seconds]
BWStearns has joined #ruby
s3ri0us has joined #ruby
fieldfirst has quit [Ping timeout: 258 seconds]
<shevy>
wldcordeiro_work hmm. when do you use ':' in ruby?
<jambolina>
thanks for sharing your opinions btw
blackmesa has joined #ruby
s2013 has joined #ruby
<shevy>
jambolina did you talk to yourself above btw? :)
figgleberry has quit [Ping timeout: 252 seconds]
<jambolina>
shevy: yeah....by mistake
<shevy>
hehehe
Soda has quit [Remote host closed the connection]
ascarter has joined #ruby
yfeldblum has joined #ruby
<shevy>
jambolina if you already know python, why are you interested in ruby? I mean they both have really quite the same niche
<jambolina>
shevy: bored i guess
Jake232 has joined #ruby
Es0teric has quit [Ping timeout: 240 seconds]
<jambolina>
shevy: looks interesting though
<havenwood>
foxes and bacon
sambao21 has joined #ruby
<shevy>
jambolina well the philosophy is different
<shevy>
python 2 had:
<shevy>
print "die!\n"
<shevy>
python 3 has:
<jambolina>
brackets
<shevy>
print("die! omg now mandatory parens\n")
<shevy>
ruby has
centrx has joined #ruby
<shevy>
alias e puts; e 'wtf do I care'
<shevy>
hahaha
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
<shevy>
how do you alias in python?
<shevy>
p = print
<shevy>
?
<shevy>
hmm
AlexRussia has joined #ruby
<shevy>
or
<shevy>
p() = print()
<shevy>
?
Es0teric has joined #ruby
<arrubin>
The former I believe.
<happytux>
anyone? :(
<happytux>
SO required ruby files are evaluated _after_ evaluating the main ruby file, right? In contrast to import / load where the external ruby file is evaluated immediately, right?
<shevy>
happytux wat
claymore has quit [Ping timeout: 265 seconds]
dpswireless has joined #ruby
toastynerd has joined #ruby
anaeem1 has joined #ruby
<arrubin>
happytux: If that were the case, how would you be able to use classes and modules from the required file?
sambao21 has quit [Client Quit]
<jambolina>
see ya later guys
jambolina has left #ruby [#ruby]
yfeldblum has quit [Ping timeout: 276 seconds]
timonv has quit [Remote host closed the connection]
mrnugget has quit [Ping timeout: 258 seconds]
timonv has joined #ruby
pahagon has joined #ruby
<shevy>
happytux see, your question is hard to answer for me. for instance
s3ri0us has quit [Quit: Leaving...]
cocotton has quit [Remote host closed the connection]
sambao21 has joined #ruby
<shevy>
happytux, if you do this: def foo; 0 / 0; end
claymore has joined #ruby
<shevy>
in a ruby file, it is fine
<shevy>
happytux, if you do this: 0 / 0
<shevy>
then an error will happen
AlexRussia_ has quit [Ping timeout: 276 seconds]
phutchins has quit [Ping timeout: 276 seconds]
Es0teric has quit [Ping timeout: 240 seconds]
<shevy>
happytux so ruby evaluates at run-time. it will load everything that belongs into the same namespace though, so you can do: class Foo in different .rb files and load them up one after the other just fine
<havenwood>
happytux: For starters there isn't an `import`. While `require` only loads code once, even if required multiple times, `load` will reload the code every time. The norm is to `require` or `require_relative`.
i_s has quit [Remote host closed the connection]
<happytux>
oh
<happytux>
Dir.glob('tasks/rake/**/*.rake').each { |r| import r }
mercwithamouth has quit [Ping timeout: 252 seconds]
<happytux>
This is used to automatically load all rake files in tasks/rake/ into the Rakefile.
<happytux>
However, when require is better and indeed I want to load them only once, I should use require instead of import.
<happytux>
But require and require_relative both fail when loading .rake files
mercerist has quit [Quit: Computer has gone to sleep.]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 255 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<shevy>
I think require_relative is really just a fancified require
sambao21 has quit [Ping timeout: 265 seconds]
<shevy>
so if one fails systematically, the other should fail too!
maletor has quit [Quit: Computer has gone to sleep.]
mallu has joined #ruby
jhass|off is now known as jhass
<r_s_h_>
So when I try to run ruby myscript.rb from Mac OS terminal, it just cats the file instead of executing it. Anyone see this before?
aspires has joined #ruby
kiri has quit [Ping timeout: 240 seconds]
<mallu>
hi, I have a file which contains lot of data. What I'm trying to do is grab blablabala after the word "building_locator":"blablabla"
lethjakman has joined #ruby
mercerist has joined #ruby
sski has quit [Ping timeout: 245 seconds]
Shidash has quit [Quit: Leaving.]
<havenwood>
r_s_h_: How are you running it?
<mallu>
Any help would be greatly appreciated
<r_s_h_>
just navigating to the directory where the file lives, and running “ruby myscript.rb”
<happytux>
shevy, arrubin, havenwood: OK, so I use import now as this addresses the problem with Rake tasks. Now I still got the problem that when I try to assign a variable in main body (which imports), it fails: ModuleSymlink.module_name = test NameError: uninitialized constant ModuleSymlink
bijan07077 has quit [Quit: bijan07077]
jimbauds has joined #ruby
codeFiend has joined #ruby
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
pietr0 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
r_s_h_: Did you perhaps: ruby() { echo "=^.^=" }
aiguu has quit [Ping timeout: 240 seconds]
claymore has quit [Quit: Leaving]
claymore has joined #ruby
bijan07077 has joined #ruby
<havenwood>
r_s_h_: Does this work?: \ruby myscript.rb
<havenwood>
r_s_h_: What do you get for?: command -v ruby
andrewlio has quit [Read error: No route to host]
DouweM has quit [Ping timeout: 265 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
figgleberry has joined #ruby
aley has joined #ruby
<r_s_h_>
won’t let me paste here I guess
<r_s_h_>
but it’s the path to ruby
Burgestrand has quit [Quit: Burgestrand]
<havenwood>
r_s_h_: And no luck with the backslash?
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
franzip has joined #ruby
kate_r has joined #ruby
lurch_ has quit [Quit: lurch_]
toastynerd has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
rizzatti has quit [Quit: Leaving...]
professor_soap has quit [Ping timeout: 276 seconds]
xabbix has quit [Quit: Leaving]
nvrch has quit [Quit: nvrch]
maximski has quit []
wallerdev has joined #ruby
<happytux>
OK, so I use import now as recommended for importing Rake task, importing works. However, in main Rakefile (which imports) a class variable is set (the RakeTask). This fails because this code is evaluated before import, so the class is not there yet and also the variable not.
<happytux>
Seems to be a paradoxical problem, either I use require which causes trouble because of non-delayed execution of loaded RakeTask or import which delays execution but then the class variable cannot be set.
<happytux>
The Rake tasks I use from gems don't got this problem as they are loaded using require.
timonv has joined #ruby
zybil is now known as zybi1
binaryhat has quit [Quit: Leaving]
cescalante is now known as ce_afk
dreamchaser has joined #ruby
dreamchaser has joined #ruby
dreamchaser has quit [Changing host]
dreamchaser has quit [Excess Flood]
DouweM has joined #ruby
jxf has quit [Ping timeout: 255 seconds]
dreamchaser has joined #ruby
dreamchaser has joined #ruby
dreamchaser has quit [Changing host]
tcstar has quit [Quit: Leaving]
sambao21 has joined #ruby
kotk_ has joined #ruby
Spami has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
hamakn has joined #ruby
tcstar has joined #ruby
kotk has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
andikr has quit [Remote host closed the connection]
JasmeetQA1 has quit [Read error: Connection reset by peer]
<happytux>
OK, this could be a solution to my problem.
tcstar has left #ruby [#ruby]
tcstar has joined #ruby
<happytux>
Is there a virtual / method which I can override from Rake::DSL which is called always when a task is called?
skysploit has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
mark_locklear has quit [Ping timeout: 240 seconds]
zybil_ has quit [Remote host closed the connection]
zybi1 has joined #ruby
<happytux>
oh damn, sorry to say this - but in this regard rake sucks.
froy has quit [Remote host closed the connection]
cocotton has joined #ruby
kalimist has quit [Excess Flood]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
aspires has quit []
rm_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
tvw has quit [Client Quit]
aspires has joined #ruby
treehug88 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
freezey has joined #ruby
cjsarette has joined #ruby
mikepack has joined #ruby
ce_afk is now known as cescalante
<mallu>
can someone tell me if there is anyway I can search for a word and capture strings between " "
froy has joined #ruby
cocotton has quit [Ping timeout: 258 seconds]
<centrx>
You'll have to be more specific
Xeago has quit [Remote host closed the connection]
<r_s_h_>
even with the backslash it cats the file. weird.
JoeGaudet has joined #ruby
aiguu has joined #ruby
<mallu>
so i have a file with data .. I want to capture whatever between " " if it find the word building
<mallu>
file has "build"; "bsbdbsfdnf"
beef-wellington has quit [Ping timeout: 240 seconds]
<mallu>
*** "building"
magikfx has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Dude007 has quit [Remote host closed the connection]
<testol>
I just performed an Extract Method, and now I've realised that the extracted method, and the methods only it calls, should be in an Extracted Class -- all I would need to do in the original class is call ExtractedClass.method(parameter) - like a static method
Xeago has joined #ruby
<testol>
But it doesn't feel very rubyish to do that
bbloom has quit [Ping timeout: 252 seconds]
livcd has joined #ruby
<centrx>
mallu, You could use split, not sure what you're doing
beef-wellington has joined #ruby
<testol>
Actually, my initial attempt is ExtractedClass.new(parameter) - and its initializer sets @parameter, which is used by all of its methods (to avoid passing that parameter to each method as an argument)
<mallu>
centrx: ok.. I have to look at that...
deric_skibotn has joined #ruby
papercode has joined #ruby
Macaveli has joined #ruby
elaptics is now known as elaptics`away
canton7-mac has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 276 seconds]
ryanleesipes has joined #ruby
bluOxigen has joined #ruby
cocotton has joined #ruby
ryanleesipes has quit [Client Quit]
ryanleesipes has joined #ruby
cescalante is now known as ce_afk
ryanleesipes has quit [Client Quit]
Valesk has joined #ruby
ryanleesipes has joined #ruby
apeiros has quit [Remote host closed the connection]
mansi has joined #ruby
sgu has joined #ruby
sarandosklikizos has joined #ruby
apeiros has joined #ruby
alex88 has quit [Quit: Leaving...]
ryanleesipes has quit [Client Quit]
<shevy>
happytux I would not know a thing about rake, I dont use it and don't need it; and if it forces me to load up .rb files with any other mechanism than require() or load(), like import(), then I am sure I would never want to use such non-standard libraries
ryanleesipes has joined #ruby
chrisja has joined #ruby
<shevy>
testol if you don't need .new, you could always use a class method. Extracter.extract('foo-1.0.tar.xz')
beef-wellington has quit [Ping timeout: 258 seconds]
<shevy>
testol class methods can be defined like so:
<happytux>
shevy: what build tool are you using? I would take a look at it
<happytux>
shevy: for example a puppet module. The problem is that many puppet module static code coverage tools already provide a rake task or even only a rake task without a possibility to invoke it as binary.
cocotton has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<testol>
shevy: that makes sense. Though without having an instance variable, I'm not sure how I could call each of its constituent methods without giving each the same parameter (duplication) every time
<shevy>
that one I use a lot
mattstratton has joined #ruby
<happytux>
shevy: what kind of tool are you using for building ruby / ruby on rails applications?
<shevy>
happytux my editor
<shevy>
happytux seriously, I thought you need something like rake only when you want to compile .c programs
apeiros has quit [Ping timeout: 240 seconds]
ikaros has quit [Quit: Ex-Chat]
rudisimo has quit [Read error: Connection reset by peer]
<shevy>
testol well; you could use different class methods
<shevy>
testol inside the class method, you could always create a new instance of your class too
ryanleesipes has quit [Client Quit]
lemonsparrow has joined #ruby
<shevy>
testol or you could add more class methods, even if they are cumbersome
<shevy>
like
FiveDeltaSix has quit [Ping timeout: 255 seconds]
jimms has quit [Remote host closed the connection]
<happytux>
shevy: I solved the problem with rake now. I did the following: As 'require' seems to require (lol) a rb file extension, I changed the file extension of the .rake file in question to .rb and this also avoids that the Dir.glob each import thing also imports (loading it twice).
mallu has quit [Quit: Page closed]
<happytux>
As I extend from Rake TaskLib, I can safely require it.
saarinen has joined #ruby
DouweM has quit [Ping timeout: 252 seconds]
omosoj has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
<shevy>
testol I think what helps immensely is when you write down the way(s) you want to call your code
DouweM has joined #ruby
Hobogrammer has joined #ruby
rkj has joined #ruby
timonv has quit [Remote host closed the connection]
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_justin has quit [Ping timeout: 252 seconds]
<testol>
shevy: agreed - ExtractedClass.execute(parameter) is basically all that should be exposed/called -- funnily enough though, it seems creating an object inside the class method would have the same problem
pahagon has quit [Ping timeout: 255 seconds]
Darryl has quit [Quit: Connection closed for inactivity]
<testol>
Inside the clas, rather than method1(param); method2(param); method3(param); -- it would be extracted_class.method1; extracted_class.method2; extracted_clas.method3
ce_afk is now known as cescalante
<testol>
Which just seems to have chosen to duplicate something else, with the addition of an object instantiation
klaut has quit [Remote host closed the connection]
Solnse has joined #ruby
zigomir has joined #ruby
pu22l3r has quit []
AlexRussia has joined #ruby
balrui is now known as ceej
<shevy>
I am not quite following hehe
tyll has quit [Ping timeout: 258 seconds]
<shevy>
I think what confuses me is your way to describe this in an abstract manner
jobewan has joined #ruby
heftig has quit [Quit: Quitting]
<shevy>
method2 method3
<shevy>
if you have a specific example, that does something, perhaps you could put it on gist
freerobby has quit [Quit: Leaving.]
<testol>
shevy: yeah I'm experimenting a bit, I'll gist something in a minute probably :)
pu22l3r has joined #ruby
<shevy>
\o/
<happytux>
When a Ruby class is named 'ModuleSymlink', should its file then named 'module_symlink.rb'?
Soda has joined #ruby
<happytux>
Would this be best practice?
<shevy>
yes
freerobby has joined #ruby
tyll has joined #ruby
<shevy>
ModuleSymlink.rb would look ugly
<shevy>
moduleSymlink.rb would be even worse
ascarter has joined #ruby
freezey has quit [Remote host closed the connection]
<shevy>
MODULESYMLINK.rb is consistent
<shevy>
as is modulesymlink.rb
<shevy>
haha :D
<shevy>
but you get more information when you use the _
<happytux>
right
<Cope>
what's a simple aynchronous job runner that would be suitable for using in a cli app?
<shevy>
I also have not seen MODULE_SYMLINK.RB
<happytux>
shevy: absolutely right, '_' is best. I am still pushing myself not to use something different
<happytux>
I am still used to CamelCase and friends
jhulten has joined #ruby
michaeldeol has joined #ruby
<Cope>
sidekiq looks nice, but what would be the bes way to start sidekiq? just when the command fires?
sambao21 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
rizzatti has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
_justin has joined #ruby
anaeem1 has joined #ruby
phutchins has joined #ruby
unixpro1970 has quit [Quit: Computer has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
danshult_ has quit [Read error: Connection reset by peer]
soulisson has joined #ruby
danshultz has joined #ruby
x1337807x has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
mrmargolis has quit [Read error: Connection reset by peer]
<soulisson>
Hi, i'm starting with Ruby, i would like to know how to reference the current object ?
mrmargolis has joined #ruby
Lucky_ has joined #ruby
<xybre>
soulisson: self?
anaeem1 has quit [Ping timeout: 255 seconds]
miah has quit [Ping timeout: 250 seconds]
mjsmith2 has quit []
codeFiend has quit [Quit: codeFiend]
centrx has quit [Quit: All this computer hacking is making me thirsty]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac>
look how fatal that is ;P
ValicekB has quit [Remote host closed the connection]
ethylomat has joined #ruby
ascarter has joined #ruby
kpshek has joined #ruby
jprovazn has joined #ruby
fieldfirst has quit [Ping timeout: 255 seconds]
arturaz has quit [Remote host closed the connection]
timonv has quit []
fieldfirst has joined #ruby
krzkrz has joined #ruby
DouweM has joined #ruby
carraroj has joined #ruby
JoeGaudet has quit [Quit: Computer has gone to sleep.]
danshultz has quit [Remote host closed the connection]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
timonv has joined #ruby
anaeem1 has joined #ruby
cocotton has joined #ruby
danshultz has joined #ruby
chrisja has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
beef-wellington has joined #ruby
Bumptiou_ has quit [Remote host closed the connection]
ValicekB has joined #ruby
lemonsparrow has quit [Quit: Page closed]
n12 has joined #ruby
sooik has quit [Ping timeout: 252 seconds]
sunya7a has joined #ruby
AlexRussia has joined #ruby
Rainicorn has quit [Quit: Bye]
<xybre>
hahaha
danshultz has quit [Ping timeout: 240 seconds]
cocotton has quit [Ping timeout: 255 seconds]
nathancahill has joined #ruby
jherbst has joined #ruby
timonv has quit []
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_lee has quit [Quit: Ex-Chat]
carraroj has quit [Ping timeout: 252 seconds]
Soda has quit [Remote host closed the connection]
<bricker>
Hanmac: why the downcase! bit? I get what it does, but what object that inherits from Exception would have an all-lowercase name?
<apeiros>
fatal
<shevy>
is there a recommended use when to use Regexp.quote() ?
jprovazn has quit [Quit: Odcházím]
carraroj has joined #ruby
<bricker>
apeiros: oh
<apeiros>
shevy: when you have dynamic input you want to use for a regex and don't want ., *, + etc. to mean their literal value
andrewjanssen has joined #ruby
n12 has quit [Ping timeout: 252 seconds]
mikepack_ has joined #ruby
SegFaultAX has quit [Excess Flood]
sinkensabe has joined #ruby
<bricker>
How do you use fatal? Or is the point of it that you can't?
freerobby1 has quit [Quit: Leaving.]
<bricker>
slash shouldn't
SegFaultAX has joined #ruby
subbyyy has joined #ruby
<apeiros>
you shouldn't
<apeiros>
it's an internal thing
freerobby has joined #ruby
alpha123 has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 240 seconds]
makerops has joined #ruby
<shevy>
fatal :my_ass
<makerops>
hi, i'm having some trouble figuring out how to develop a countdown timer
<shevy>
hmm is fatal even possible to call?
<makerops>
im basically, processing messages, and bucketing them into threads; I want the thread to flush a buffer, if it hasn't received a new pop into the buffer in N seconds
freerobby1 has joined #ruby
<Hanmac>
shevy C-API has a function (rb_fatal), but from ruby side you need ObjectSpace
<shevy>
99.downto(0) { puts 'ack!'; sleep 1 }
<shevy>
Hanmac, cool, so I can use ObjectSpace to access hidden stuff?
<shevy>
>> raise ObjectSpace.each_object(Class).find{|c|c < Exception && !c.name.downcase!}.exception("does not work").class
<apeiros>
shevy: check out some of charliesome's work - you can use other things in 2.0 to get even better hidden stuff
freerobby has quit [Read error: Connection reset by peer]
timonv has joined #ruby
marcdel has joined #ruby
<Hanmac>
apeiros: i still like the evil.rb script with you can unfreeze stuff and more ;P
reset has joined #ruby
figgleberry has quit []
Eiam has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<testol>
Hmm. I'm creating a Sinatra app - various objects are involved. Should I create all of the objects in my app.rb, and call their various methods with each of their parameters; or abstract all the calls and creations behind one class?
<Hanmac>
toretore: my irc-client might can do that
jenskarlsen has joined #ruby
paulfm has quit [Client Quit]
jxf has joined #ruby
reset has quit [Quit: Leaving...]
setra has quit [Ping timeout: 255 seconds]
<shevy>
s2013 they are quick to come to the point!
<atmosx>
toretore: ?
<atmosx>
toretore: seriously?!
ktun has joined #ruby
<atmosx>
I don't think I can DCC via tor, come to think of it.
<s2013>
shevy, :(
momomomomo has joined #ruby
<atmosx>
on the other hand, it's just data, doesn't really need to open close ports, you just need a translator...
snath has joined #ruby
nhmood has quit []
paulfm has joined #ruby
kpshek has joined #ruby
papercode has joined #ruby
<Hanmac>
hm atmosx should i try to send you a test file via irc?
boycey has joined #ruby
<shevy>
man
<shevy>
all that ascii p0rn again
afex has joined #ruby
lolmaus has joined #ruby
<boycey>
anyone having issues with bundler today
<Hanmac>
shevy i think it depends on the background story ;P
franzip has quit [Quit: ...]
Asher has quit [Remote host closed the connection]
<atmosx>
Hanmac: sure,
<Hanmac>
hm ok it doesnt seem to work ..
Asher1 has joined #ruby
<atmosx>
Hanmac: can you try again?
simoz112 has joined #ruby
banisterone has joined #ruby
banisterone has quit [Read error: Connection reset by peer]
jimbauds has quit [Ping timeout: 240 seconds]
<Hanmac>
i added you into my list ... last time (while i did some xdcc) it didnt work without adding to the list
<atmosx>
yeah doesn't work
<atmosx>
wait, let me try
g0bl1n has joined #ruby
simoz113 has joined #ruby
<atmosx>
Hanmac: I'm sending a sample.txt, check out if it works
<Hanmac>
it says i did abort it, but i didnt :/
Azure has quit [Quit: Blue Sky Fish]
<Hanmac>
rty it again
<atmosx>
ok
<atmosx>
just did
<Hanmac>
hm no it says i did abort it again :/
ktun has quit [Ping timeout: 240 seconds]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
aef has joined #ruby
unixpro1970 has quit [Ping timeout: 255 seconds]
simoz112 has quit [Ping timeout: 240 seconds]
workmad3 is now known as wm3|busy
SHyx0rmZ has joined #ruby
<atmosx>
Hanmac: makes sense, we need not to have firewalls in predefined ports and so on. Plus I'm using tor... if you could send me DCC you could find out my IP
s2013_ has joined #ruby
alem0lars has joined #ruby
banisterone has joined #ruby
_justin has quit [Quit: _justin]
<Hanmac>
funny thing is that you use tor, but it seems that you didnt use the ssl server from freenode ;P
combusean has quit [Ping timeout: 265 seconds]
<atmosx>
Hanmac: I don't need too. I'm connected to a TOR address, Freenode has 3. Communication inside the tor network is encrypted.
kate_r has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
g0bl1n has quit [Ping timeout: 245 seconds]
s2013 has quit [Ping timeout: 240 seconds]
bMalum___ has joined #ruby
timonv has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
Bumptious has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
bMalum__ has quit [Ping timeout: 240 seconds]
g0bl1n has joined #ruby
jaake has joined #ruby
<jaake>
hello
g0bl1n has quit [Max SendQ exceeded]
jonahR_ has quit [Quit: ¡Adios amigos, me fui para el carajo!]
Spami has quit [Quit: This computer has gone to sleep]
<wm3|busy>
atmosx: communication from the endpoints won't be though
ktun has joined #ruby
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
cocotton has joined #ruby
mercerist has joined #ruby
eighthbit has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton_ has joined #ruby
benzrf|offline is now known as benzrf
postmodern has joined #ruby
merceris_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercerist has quit [Read error: Connection reset by peer]
nhmood_ has joined #ruby
combusean has joined #ruby
testcore has joined #ruby
danshultz has quit [Remote host closed the connection]
combusean has quit [Client Quit]
combusean has joined #ruby
zigomir has quit [Ping timeout: 258 seconds]
danshultz has joined #ruby
cocotton_ has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
cocotton has joined #ruby
Burgestrand has joined #ruby
vpretzel|1440 has quit [Quit: Adios!]
lambo has joined #ruby
Bira has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aley has left #ruby ["bye"]
<lambo>
exit
lambo has left #ruby [#ruby]
Retroid has quit [Ping timeout: 240 seconds]
rizzatti has quit [Quit: Leaving...]
reset has joined #ruby
reset has quit [Read error: Connection reset by peer]
reset has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
Soda has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
toastynerd has quit [Remote host closed the connection]
<happytux>
I want to soft link directory /var/lib/test to /usr/test/
wald0 has joined #ruby
<happytux>
pontiki: apparently there are two places for ln_, File and FileUtils
<happytux>
pontiki: hm, right, it is FileUtils
<happytux>
pontiki: ok, but that method will symlink somehow the contents of a directory to target?
zxq9 has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zxq9 has joined #ruby
<pontiki>
it works just like the ln -sf unix command
blackmes1 has joined #ruby
<pontiki>
so, yes
RaptorJesus has quit [Remote host closed the connection]
<pontiki>
and if target exists before that command, it will be replaced with the symlink
Ankhers has quit [Remote host closed the connection]
BWStearns has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
BWStearns has joined #ruby
akonny has joined #ruby
BWStearns has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 276 seconds]
anaeem1 has joined #ruby
zxq9 has quit [Remote host closed the connection]
zxq9 has joined #ruby
RaptorJesus has joined #ruby
Ankhers has joined #ruby
fantazo has quit [Ping timeout: 276 seconds]
Melpaws1 has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
internet_user has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
silkfox has joined #ruby
Melpaws has quit [Ping timeout: 252 seconds]
shvelo has joined #ruby
akonny has quit [Ping timeout: 240 seconds]
tubuliferous has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
zxq9 has quit [Remote host closed the connection]
RaptorJesus has quit [Remote host closed the connection]
nanoyak has joined #ruby
zxq9 has joined #ruby
BWStearns has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
xrq` has joined #ruby
beef-wellington has quit [Ping timeout: 252 seconds]
Zenigor has quit [Remote host closed the connection]
simoz114 has joined #ruby
RaptorJesus has joined #ruby
Jake232 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
zxq9 has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
xrq has quit [Ping timeout: 265 seconds]
zxq9 has joined #ruby
simoz113 has quit [Ping timeout: 252 seconds]
bijan07077 has quit [Quit: bijan07077]
silkfox has quit [Ping timeout: 240 seconds]
adasw has joined #ruby
ktun has joined #ruby
zxq9 has quit [Read error: Connection reset by peer]
zxq9 has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
kyb3r_ has joined #ruby
alvaro_o has joined #ruby
deepy has quit [Ping timeout: 250 seconds]
failshell has quit []
Macaveli has joined #ruby
Macaveli has quit [Remote host closed the connection]
yokel has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
Ankhers has quit [Remote host closed the connection]
deepy has joined #ruby
deepy is now known as Guest68568
kaspergrubbe has joined #ruby
ari-_-e has quit [Quit: Leaving]
freezey has quit [Remote host closed the connection]
sunya7a has quit [Remote host closed the connection]
jaake has quit [Ping timeout: 252 seconds]
grzywacz has joined #ruby
wallerdev has joined #ruby
bMalum___ has quit [Quit: Computer has gone to sleep.]
DouweM has joined #ruby
bMalum___ has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
<r_s_h_>
So I have an object called “bucket”, it contains an array of 108 hash objects. I am stepping through this code:
<r_s_h_>
def process_bucket(bucket)
<r_s_h_>
workflow = bucket[0]
<r_s_h_>
bucket.each do |workflow| …
blahwoop has joined #ruby
<blahwoop>
hello
<r_s_h_>
at workflow = bucket[0], workflow is a hash containing 9 items. When I step to bucket.each, bucket is now an empty array. Any ideas how that happened?
sinkensabe has quit [Remote host closed the connection]
funburn has joined #ruby
Macaveli has joined #ruby
bMalum___ has quit [Ping timeout: 240 seconds]
geggam has quit [Remote host closed the connection]
lucas_ has quit [Quit: Saindo]
anaeem1 has quit [Remote host closed the connection]
<blahwoop>
in the initializer method i want to be able to pass in 2 files as an array so i can loop through each to read. i did def initialize(files =[]) but that doesnt work
mengu has quit []
paulfm has joined #ruby
<blahwoop>
what am i doing wrong?
Bumptious has quit [Remote host closed the connection]
freezey has joined #ruby
Bumptious has joined #ruby
Guest68568 has quit [Ping timeout: 240 seconds]
geopet has joined #ruby
Davedo has quit [Ping timeout: 252 seconds]
WillAmes has quit [Ping timeout: 252 seconds]
centrx has joined #ruby
<jhass>
blahwoop: put your whole code at gist.github.com
<toretore>
blahwoop: more code/information
Davedo has joined #ruby
pagioss has quit [Ping timeout: 245 seconds]
<blahwoop>
ok hold on
<jhass>
r_s_h: I think you're misinterpreting something but it's hard to say with that little context
<apeiros>
blahwoop: and elaborate the "doesn't work". because "doesn't work" doesn't tell anything. could be a thousand and one way it could go wrong
ringaring has quit [Quit: Leaving]
pagioss has joined #ruby
weaksauce has quit [Ping timeout: 245 seconds]
<blahwoop>
oh i figured it out i had to use (*files) so it can take more than 1 file
dbods has quit [Read error: Connection reset by peer]
<blahwoop>
sorry about that
dbods has joined #ruby
<toretore>
<insert lession about splat operator>
<apeiros>
blahwoop: well, or you have to actually pass in an array. foo([file1, file2, …])
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore>
which you should prefer over splatting
ktun has joined #ruby
deepa has joined #ruby
deepa is now known as Guest70926
baweaver has quit [Remote host closed the connection]
Bumptious has quit [Ping timeout: 264 seconds]
binaryhat has joined #ruby
<blahwoop>
ok got it thanks
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndChat|102836 has quit [Quit: Bye]
AlexRussia has joined #ruby
banisterone has joined #ruby
BWStearns has quit [Read error: Connection reset by peer]
BWStearns has joined #ruby
dbods has quit [Read error: Connection reset by peer]
BWStearns has quit [Read error: Connection reset by peer]
dbods has joined #ruby
zrl has quit [Ping timeout: 245 seconds]
AndChat|102836 has joined #ruby
weaksauce has joined #ruby
vcoinminer___ has quit [Ping timeout: 245 seconds]
gyre007 has quit [Ping timeout: 245 seconds]
WishBoy has quit [Remote host closed the connection]
maZtah has quit [Ping timeout: 245 seconds]
Lutece has joined #ruby
vcoinminer___ has joined #ruby
WishBoy has joined #ruby
gyre007 has joined #ruby
maZtah has joined #ruby
AndChat-102836 has joined #ruby
Nowaker has quit [Ping timeout: 265 seconds]
zrl has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
marcdel has quit []
alem0lars has quit [Quit: alem0lars]
Nowaker has joined #ruby
pu22l3r has joined #ruby
banisterone has quit [Ping timeout: 240 seconds]
silkfox has joined #ruby
claymore has quit [Quit: Leaving]
ndrei has joined #ruby
dbods has quit [Client Quit]
AndChat-102836 has quit [Read error: Connection reset by peer]
BWStearns has joined #ruby
AndChat|102836 has quit [Read error: No route to host]
banisterone has joined #ruby
AndChat|102836 has joined #ruby
DouweM has quit [Ping timeout: 265 seconds]
magicien has joined #ruby
pu22l3r_ has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
<wallerdev>
i have 2 github stickers, but im not sure where to place them
shemerey has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
<Lutece>
An external hard drive, for irony, natrually
<ryanneufeld>
havenwood: that's a great doc, Thanks!
BraddPitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ryanneufeld>
wallerdev: you've been a great help man, I was frustrated, and now I'm smiling
<ryanneufeld>
you could even say, you've left me satisfied and smiling :p
auxbuss has quit [Client Quit]
<agent_white>
>:| -> <:D
<wallerdev>
smiling cuz youre using ruby instead of python
<ryanneufeld>
no
<wallerdev>
another conversion succesful
<wallerdev>
lol
Mon_Ouie has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 252 seconds]
<ryanneufeld>
PHP $ LYFE
Mon_Ouie has joined #ruby
echevemaster has quit [Client Quit]
yfeldblu_ has quit [Remote host closed the connection]
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
jamto11_ has quit [Remote host closed the connection]
dayepa has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
fantazo has quit [Ping timeout: 258 seconds]
ktun has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
livcd has joined #ruby
AlexRussia has joined #ruby
treehug88 has quit []
mansi has quit [Ping timeout: 240 seconds]
clov3r has quit []
omegahm has joined #ruby
yfeldblum has joined #ruby
kpshek has quit []
pothibo has joined #ruby
livcd has quit [Ping timeout: 255 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has quit [Remote host closed the connection]
ktun has joined #ruby
marcdel has joined #ruby
Arkaniad has joined #ruby
marcdel has quit [Max SendQ exceeded]
marcdel has joined #ruby
alpha123 has joined #ruby
Jnco has joined #ruby
<Jnco>
hi
nfk has quit [Quit: yawn]
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
<Lutece>
o/
dayepa has quit [Ping timeout: 240 seconds]
<centrx>
.oO0
dayepa has joined #ruby
<Jnco>
:) anyone work with CarrierWave?
<shevy>
people make a wave!
<shevy>
\o\
<shevy>
\o/
<Jnco>
:D
<shevy>
\/o/
<shevy>
damn it
<Jnco>
have some strange thing happening, performing a new deployment and things seem to be working on dev2.sortbox.co (production - sortbox.co) , however one segment of the site where I am uploading resumes and rmagick is previewing them, I am seeing a broken image after upload - the file is stored on temp but not uploaded to s3 - trying to get behind this, https://gist.github.com/wudukes/fd56e1e424d75e0896ca
<Lutece>
\o\
<shevy>
I got nudged by a side OR I failed to use leading /
jerrett has joined #ruby
<Lutece>
|o|
<Lutece>
/o/
<shevy>
what is that Lutece
fantazo has joined #ruby
<shevy>
oh
<Lutece>
the transition between a wave to the left and to the right
<shevy>
vertically raised arms
musashi1 has joined #ruby
<Lutece>
my arms only move at 90* angles
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
isxek_ has joined #ruby
lw has joined #ruby
<shevy>
how difficult is puppet to master?
KAO has joined #ruby
isxek_ has quit [Client Quit]
<wallerdev>
master or use?
isxek has quit [Ping timeout: 276 seconds]
<wallerdev>
it takes 10,000 hours to become a master at anything
mdmcaf has joined #ruby
<shevy>
wallerdev hmmm
saarinen has quit [Quit: saarinen]
<shevy>
I just realized that puppet is actually used at the company I intend to start working in ~3 months
<Jnco>
we used puppet at my last job
<Jnco>
people like it but a lot of folks lean to chef too
<wallerdev>
all the same
<Jnco>
not hard to master, the only thing that is hard is if you build for things that arnt designed for puppet
<Jnco>
but since you are a ruby guy
<Jnco>
shouldnt be too hard :)
x1337807x has joined #ruby
<Jnco>
can someone help me find where this thing is error'ing out?
blackmes1 has quit [Ping timeout: 255 seconds]
<Lutece>
Jnco want to pace a trace?
<shevy>
Jnco no real idea looking at that gist
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<Jnco>
yeah
<Jnco>
how to i pace a trace :)
yfeldblum has quit [Remote host closed the connection]
sgu has quit [Ping timeout: 258 seconds]
pu22l3r has joined #ruby
<happytux>
wallerdev / lethjakman: In combination with FileUtils.rm symlink_target, ln_sf works.
<Jnco>
im 2 weeks intro ruby , been thrown into pit of vibers
<happytux>
wallerdev / lethjakman: But of course, then I could use ln_s anway
<Jnco>
ok
<Jnco>
lemme run a trace hmm
<shevy>
wow man
<shevy>
2 weeks into ruby
<wallerdev>
happytux: for what its worth, i noticed that i ended up creating symlinks inside of the symlinked folders when i was cleaning up my files
<shevy>
and already having to run a trace
<shevy>
you are doing something wrong!
<Jnco>
just run ruby -d?
<wallerdev>
not sure if that happened in your situation, but it mightve been following the symlink before creating the symlink haha
<Jnco>
whats the best way :)?
<Lutece>
you should just get it running normally
<Lutece>
when it throws the error
<Jnco>
i dont know where to look, I think I am in in rails log
dayepa has quit [Ping timeout: 240 seconds]
<Jnco>
application/log folder
freerobby has joined #ruby
dayepa has joined #ruby
<Jnco>
im looking at development.log
<Jnco>
hmmm
grzywacz has quit [Ping timeout: 258 seconds]
<happytux>
wallerdev: strange
<happytux>
wallerdev: removal of symlink works, also CLEAN
<happytux>
wallerdev: The symlink was created when performing a default rake clean?
<wallerdev>
rake runs your Rakefile
<wallerdev>
theres no default rake clean
<wallerdev>
its just running whats in your Rakefile
Megtastique has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
mikepack_ has joined #ruby
felixjet_ has quit [Ping timeout: 245 seconds]
gabamnml has joined #ruby
ce_afk is now known as cescalante
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
<gabamnml>
if I need to create a symbol for "Reply-To" would be like?
dayepa has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
merceris_ has quit [Quit: Computer has gone to sleep.]
dik_dak has quit [Quit: Leaving]
dayepa has joined #ruby
mercerist has joined #ruby
Dude007_ has joined #ruby
mikepack_ has quit [Ping timeout: 255 seconds]
Dude007 has quit [Read error: Connection reset by peer]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
having to run `rake` as `rbenv exec bundle exec rake` seems somewhat perverse in the first place
nanoyak has quit [Ping timeout: 265 seconds]
<havenwood>
Jnco: Using latest stable Ruby?
<havenwood>
Jnco: Or another version?
marcdel has quit []
<Jnco>
hi
<Jnco>
im running...
<bricker>
Does anyone know off the top of their heads, if I run a command as sudo, move it into the background, and then exit the shell, will that process continue? I just tried it and it seems to work, but I want to make sure I'm not getting false results.
Zenigor has quit [Remote host closed the connection]
narcan has joined #ruby
livcd has joined #ruby
dayepa has joined #ruby
timonv has joined #ruby
snath has joined #ruby
marcdel has joined #ruby
thesheff17 has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
virtualize has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<GlenK>
Hi. So I have a regular expression that works in rubular. but it's acting wierd when I use it in a function: http://fpaste.org/102293/
<GlenK>
I'm getting nil when there's no match and 1 when there is, as opposed to true or false like I'm expecting.
<centrx>
GlenK, =~ returns the index of the first match I believe
<centrx>
GlenK, So it returns true and false because integers are truthy and nil is falsey
Shidash has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
<centrx>
GlenK, All objects excepts false and nil are truthy
<centrx>
GlenK, So methods that return additional information beyond boolean can still be used as true and false for all purposes
<GlenK>
hmm, guess I'm just an idiot and thought it was the same as !~
<GlenK>
thanks
RaptorJesus has quit [Ping timeout: 272 seconds]
marcdel has quit [Ping timeout: 255 seconds]
banister has joined #ruby
kitak_ has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
kitak has joined #ruby
jlast has joined #ruby
simoz115 has quit [Ping timeout: 265 seconds]
BraddPitt has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
Bumptious has quit [Remote host closed the connection]
michaeldeol has joined #ruby
marcdel has joined #ruby
toastynerd has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 265 seconds]
jottr has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dayepa has quit [Ping timeout: 265 seconds]
ddv has quit [Ping timeout: 245 seconds]
dayepa has joined #ruby
<lethjakman>
hmmm, I'm trying to one line this for a little test function I'm writing in pry like so: define_method 'my_test', { send('puts', 'HELLO') }
Dovid has joined #ruby
<lethjakman>
but I get the error "SyntaxError: unexpected '}', expecting =>"