wesside has quit [Quit: I think I heard an ice cream truck..]
tatsuya_o has quit [Ping timeout: 246 seconds]
wesside has joined #ruby
<volty>
try with StringIO.new("test\r\nsecond\r\nthird").foreach { |ln| p ln }
pencilcheck has joined #ruby
`Chris`_ has joined #ruby
taternuts has joined #ruby
<CaptainJet>
That seems to work properly
JaTochNietDan has quit [Quit: Right.]
<CaptainJet>
using each_line, since stringio doesn't have a foreach method
<volty>
ah! :)
kindjal has quit [Quit: Computer has gone to sleep.]
einarj has quit [Ping timeout: 272 seconds]
`Chris` has quit [Ping timeout: 272 seconds]
<volty>
then better check your string, read binary and make sure \r 's are there
<volty>
e.g. your file
<volty>
e.c
<CaptainJet>
the \r's are there, I'l already checked
pen has quit [Ping timeout: 245 seconds]
<CaptainJet>
I will note however, that File.read and File.binread are different in that #read only shows \n but the binread shows the \r\n
tsykoduk is now known as zz_tsykoduk
<volty>
what is the order of \n \r ?
mixel has quit [Quit: mixel]
<CaptainJet>
\r\n
<volty>
and what os?
<CaptainJet>
Windows 7
jonathanwallace has joined #ruby
kreeves has joined #ruby
<volty>
then must be that ruby uses a system call for read and the underlaying win libs strip that /r
<volty>
\r
codeFiend has joined #ruby
freerobby has joined #ruby
<CaptainJet>
ah well
<CaptainJet>
File.open(fn).binmode.each_line
Sc0tty- has quit [Quit: Leaving]
<CaptainJet>
Seems to work
<volty>
nice
<volty>
and you already knew that
tkuchiki has joined #ruby
<CaptainJet>
I didn't know that until right now
<robonerd>
anyone use cramp?
<CaptainJet>
I thought about it when binread worked but read didn't
<CaptainJet>
So I figured I should just read in binary mode instead
lukec has quit [Quit: lukec]
<volty>
ah ok :)
thepumpkin has quit [Remote host closed the connection]
<CaptainJet>
Thank you for rubber ducking for me :D
<volty>
yw
cpruitt has quit [Quit: cpruitt]
ephemerian1 has quit [Quit: Leaving.]
holycrab has quit [Read error: Operation timed out]
holycrab has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
cpruitt has joined #ruby
pothibo has joined #ruby
pragmatism has quit [Quit: Leaving...]
RORgasm has joined #ruby
pwh has joined #ruby
chriskk has joined #ruby
jlast has joined #ruby
danshultz has joined #ruby
|jemc| has joined #ruby
bubbajones has quit [Ping timeout: 256 seconds]
bubbajones has joined #ruby
kitak has quit [Remote host closed the connection]
pothibo has quit [Client Quit]
jlast has quit [Remote host closed the connection]
thepumpkin has joined #ruby
jlast has joined #ruby
frem has quit [Ping timeout: 268 seconds]
binarypl1 has quit [Ping timeout: 272 seconds]
RORgasm has quit [Ping timeout: 245 seconds]
frem has joined #ruby
kitak has joined #ruby
Xuerian has quit [Ping timeout: 268 seconds]
mikepack has joined #ruby
mmitchell has joined #ruby
jonr22 has joined #ruby
cpruitt has quit [Quit: cpruitt]
Xuerian has joined #ruby
thepumpkin has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 246 seconds]
kayloos_ has quit []
cpruitt has joined #ruby
mmitchell has quit [Remote host closed the connection]
falood has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jkhwan has quit [Remote host closed the connection]
<robonerd>
is ruby still going strong? are people launching successful start ups with it?
jkhwan has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
mark06 has joined #ruby
frem has quit [Ping timeout: 264 seconds]
jonr22 has quit [Ping timeout: 245 seconds]
jrhe has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
reset has quit [Ping timeout: 245 seconds]
boboc has joined #ruby
Voodoofish4301 has quit [Quit: Leaving.]
aantix has quit [Quit: aantix]
chriskk has quit [Remote host closed the connection]
<|jemc|>
heh
krainboltgreene has quit [Ping timeout: 245 seconds]
Xaitec has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
<|jemc|>
ruby is a flexible, general purpose language. You're going to have to define your terms to get answers that mean something to you
jkhwan has quit [Ping timeout: 272 seconds]
lyanchih has joined #ruby
earthquake has quit [Quit: earthquake]
krainboltgreene has joined #ruby
coca_rails has joined #ruby
<|jemc|>
(and you still may not still get any meaningful answers from the handful of people idling on IRC who see your question and feel like responding to it)
Domon has quit [Ping timeout: 245 seconds]
goleldar has quit [Remote host closed the connection]
<coca_rails>
Hello room. im new to irc. can you see my message?
<volty>
there's the nasa that is about to enumerate their satellites using ruby , sorry but i lost the urls about it
goleldar has joined #ruby
<sam113101>
coca_rails: I can
<volty>
sam113101: ?
<sam113101>
volty: ?
sailias has joined #ruby
<volty>
to whom you are talking ?
* sam113101
is seeing ghosts
<sam113101>
s-sorry
baroquebobcat has quit [Quit: baroquebobcat]
<coca_rails>
thanks!
<sam113101>
they just seem so real
gyre007 has joined #ruby
jrhe has quit [Quit: jrhe]
<volty>
to me they seem trolling
ffranz has quit [Quit: Leaving]
<coca_rails>
i hope im not being mistaken for a ghost. lol
<coca_rails>
..or a troll
<|jemc|>
a ghost-troll no less
<sam113101>
sorry I just joined in, who is he?
goleldar has quit [Ping timeout: 245 seconds]
<volty>
a wanting to be seen
jkhwan has joined #ruby
<coca_rails>
It's been years since ive been on IRC.. I just wanted to make sure I registered my nick and all that jazz correctly and can now be heard!
havenwood has quit [Remote host closed the connection]
<coca_rails>
Anyways, the reason I'm here is because I'm having a hard time installing rails.
<coca_rails>
I'm looking for some help.
<sam113101>
gem install rails
<volty>
ah! I didn't that type of check even on my first connection on irc :)
<coca_rails>
well.. i'm beyond that. lol
<bnagy>
there are dedicated rails channels - #rubyonrails I think
lukec has joined #ruby
<bnagy>
they seem to change the popular ones every so often
<sam113101>
well do you have any error message? where does it fail?
<sam113101>
you need to provide details
<coca_rails>
yea, they're ignorning me :(
<sam113101>
!details
<sam113101>
!help
<sam113101>
!broken
<coca_rails>
Yes. I will provide details.
<sam113101>
is there no bot in this room?
jlast has joined #ruby
<bnagy>
there's eval-in
cspray has quit [Remote host closed the connection]
`Chris`_ has quit [Read error: Connection reset by peer]
`Chris` has joined #ruby
<DanBoy>
bsd style you should be in the wheel group
<bnagy>
but looks like you 'cast' a localtime to a tz location and it will give you a period, which will either be a DST or a standard zone - eg us EST vs EDT
bean__ has quit [Ping timeout: 272 seconds]
<sam113101>
should it also list wheel?
<coca_rails>
Anyone feel like direct connecting on Teamviewer or something?
dayepa has quit [Quit: dayepa]
<coca_rails>
ill pay $10 paypal for whoever can fix this issue!
<sam113101>
1.. 2.. 3.. get rich!
<coca_rails>
lol
`Chris`_ has joined #ruby
dayepa has joined #ruby
<vpretzel>
Why not just ask the channel for help?
<DanBoy>
use rvm?
tatsuya_o has quit [Ping timeout: 240 seconds]
codeFiend has quit [Quit: codeFiend]
framling_ is now known as framling
<coca_rails>
im afraid its a deeply rooted issue.
<bnagy>
nooooo
<DanBoy>
i dunno i think its best not to mess with the system under mac
<sam113101>
you just need to install dev tools
<DanBoy>
macports + rvm is what i use
<vpretzel>
rvm + homebrew for the win.
<DanBoy>
i forgot what i had to do to set it up
<vpretzel>
Not that rvm is the best solution for all but it works for my projects
x1337807x has joined #ruby
<DanBoy>
install xcode and what not
<coca_rails>
dev tools are installed.
<vpretzel>
Deeply rooted costs more than $10 :-D
nisstyre has quit [Ping timeout: 245 seconds]
narendra has joined #ruby
`Chris` has quit [Ping timeout: 245 seconds]
<DanBoy>
ruby should come installed already in mountain lion
<vpretzel>
......
<vpretzel>
It's installed in damn near every OSX version DanBoy
<vpretzel>
Just not the version that you probably want.
<DanBoy>
so whats the problem again
<coca_rails>
:/
<vpretzel>
Don't know, I don't think coca_rails has said.
<DanBoy>
lol :P
<coca_rails>
lol
pierrebonbon has joined #ruby
<coca_rails>
Permission problems
<DanBoy>
mountain lion has 1.9
<DanBoy>
lion comes with 1.8
<coca_rails>
it wont let me install rails
<vpretzel>
Oh
ninegrid has quit [Ping timeout: 260 seconds]
<vpretzel>
easy peasy coca_rails
<vpretzel>
What system?
<bnagy>
that's some weird paths it's looking for, as well btw
aryatab has joined #ruby
<DanBoy>
for real i would stop messing with system wide ruby and gems and what not, rvm makes it a lot simpler
<coca_rails>
dude ive tried everything i could find online
<coca_rails>
ERROR: While executing gem ... (Gem::FilePermissionError)
<coca_rails>
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
<vpretzel>
Are you using any kind of version manager coca_rails?
<DanBoy>
sudo -s
<coca_rails>
i installed rvm.
<DanBoy>
and chown
<vpretzel>
Did you install rvm as sudo?
<pierrebonbon>
sudo gem install
<coca_rails>
..i dont remember..
<coca_rails>
i dont think i installed as sudo
<vpretzel>
never pierrebonbon... never.
<sam113101>
he's not currently using rvm
<DanBoy>
it comes with sudo
<bnagy>
oh holy hell.. osx ruby is insane. They install a full /usr tree inside the Frameworks crap :D
<coca_rails>
im not currently using rvm though
<coca_rails>
here's what happened
<coca_rails>
the whole story...
ninegrid has joined #ruby
<vpretzel>
Oh boy here we go.
<DanBoy>
ok then if you wanna get all dirty i guess
<DanBoy>
sudo -s
<sam113101>
what's that framework thing?
<coca_rails>
i just bought this mac from a friend last night..was super excited to start working on it
<sam113101>
and the big ass path?
<DanBoy>
and go chown/chmod everything
brianpWins has joined #ruby
<coca_rails>
this morning i deleted his account (after creating my new admin acct)
IceDragon has quit [Quit: Space~~~]
<bnagy>
sam113101: just their odd install location - I guess it's their version of having co-existing rubies, they do similar insanity with Java
<sam113101>
shouldn't he just add himself to the wheel group?
<DanBoy>
osx is weird
<DanBoy>
show us 'id'
nateberkopec has quit [Quit: Leaving...]
devoldmx has joined #ruby
<sam113101>
he's in admin but not wheel
<coca_rails>
id?
<vpretzel>
coca_rails: can I PM you? too much chatter.
<coca_rails>
Sure you can
<bnagy>
imho, ignore all the system shit, install ports, then install via chruby as a normal user
<DanBoy>
same on my box
<DanBoy>
im an admin but not wheel
<DanBoy>
its not traditional bsd i guess
iamjarvo has joined #ruby
<sam113101>
DanBoy: OS X?
<DanBoy>
yes
<DanBoy>
lion
<sam113101>
can you run gem as a normal user?
narendra has left #ruby [#ruby]
<DanBoy>
ya using rvm
<DanBoy>
im not gunna install it system wide and risk messing with the structure of the OS
<coca_rails>
It's weird.
<sam113101>
what about the /usr/bin/gem one?
<DanBoy>
rvm + macports or homebrew
<coca_rails>
I was having problems installing the older version of ruby as well.
<DanBoy>
is what most people do
<DanBoy>
lemme see
<coca_rails>
through some rvm gui tool
<bnagy>
not anymore, based on current sampling data
<coca_rails>
i dont remember the problem anymore.
<coca_rails>
i deleted that whole account out of frustration and created a new account to start everything over
<coca_rails>
but im running into the same issues
<DanBoy>
i have /usr/bin/gem
<bnagy>
rvm is kind of insane
<mark06>
bnagy: that's just the documentation
<DanBoy>
it came with the OS though
<mark06>
bnagy: I asked after trying it
<DanBoy>
and its an old version
<mark06>
bnagy: are you able to figure out how to achieve it from there?
<bnagy>
mark06: what did you try, and what was the result?
<bnagy>
like, I would expect some_period_obj.dst? to work
<bnagy>
based on the docs
<mark06>
bnagy: I tried finding the answer there, I couldn't, how about you
<DanBoy>
bro
<DanBoy>
ok
<DanBoy>
this is your friends box right? you just got it
<mark06>
bnagy: a sec
<DanBoy>
do you care whats on it
<DanBoy>
bring it to the mac store and have them reinstall the entire thing
whunt has quit [Quit: Computer has gone to sleep.]
MrPoT4tO has joined #ruby
<mark06>
vpretzel: where's time
aryatab has joined #ruby
mrpot4to_ has joined #ruby
aryatab has quit [Remote host closed the connection]
<mark06>
Time.now
devoldmx has quit [Ping timeout: 245 seconds]
<vpretzel>
yeah...
<vpretzel>
:)
<bnagy>
mark06: from the very top page, looks like once you Timezone.get, then tz.utc_to_local, you can then period_for_local on that and get a TimezonePeriod
<DanBoy>
ya i'd pick one or the other to use
<bnagy>
mark06: the way I have navigated stuff like this ( with 'interesting' documentation ) before is via irb
<bnagy>
mark06: make heavy use of blah.class and blah.methods until you work out what returns what :<
m00nlight has joined #ruby
<bnagy>
basically, you get a timezone, which is actually a location. Then you call utc_to_local on that object and it converts a UTC to localtime at that location
carif_ has quit [Ping timeout: 246 seconds]
<bnagy>
which can be either a DST identifier or not
<DanBoy>
coca_rails, just reinstall the box, clean it up so its yours
<bnagy>
mark06: standard ruby date / time etcdoesn't know anything about zones, only offsets
<mark06>
bnagy: hmm, I have the input in this format: Wed 2012-12-12 02:04:18 -0300, where -0300 is really random, from anywhere in the globe... I don't get your suggestion well, does adding a tz offset qualifies it as utc still?
<bnagy>
well it all depends on location
<mark06>
bnagy: I was and am using irb to experiment, yes
<DanBoy>
zulu time :P
<bnagy>
I'm in the marshall islands, which is +1200, but no DST it's all MHT. +1200 could also be Wellington
sailias has quit [Ping timeout: 245 seconds]
<bnagy>
but they are DST right now - no way to tell from the offset
cpruitt has quit [Quit: cpruitt]
navyant24 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Remote host closed the connection]
<bnagy>
so basically, without a location and a tzinfo file you have NFI about dst
kaspergr_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
kaspergrubbe has joined #ruby
<bnagy>
all you can usefully get from a pure offset is UTC
<mark06>
I'm confused on the need for conversions between local and utc, what it really means for this sample input? Wed 2012-12-12 02:04:18 -0300... I would classify this as UTC timewith just an offset, right? or is this considered a local time... I don't understand what those methods really mean
pragmatism has joined #ruby
<bnagy>
it is just a moment in time
<mark06>
well will play on irb a bit, as ec
<DanBoy>
the time is green wich mean time right
devoldmx3 has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
<DanBoy>
and the offset is that time plus or minus resulting in your time?
<bnagy>
without a location, as I said a few times, you have no idea how that relates to 'local' time at any given location
saarinen has joined #ruby
<bnagy>
well.. except for countries with no DST :P
dabos has joined #ruby
kitak has quit [Read error: Connection reset by peer]
tjbarber has joined #ruby
devoldmx has joined #ruby
tjbarber has quit [Client Quit]
petey has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
pierrebonbon has quit [Ping timeout: 250 seconds]
navyant24 has quit [Client Quit]
SilverKey has quit [Ping timeout: 272 seconds]
<bnagy>
mark06: take heart, though, you are like the 4336789th person I have seen be confused and annoyed by ruby time handling
<bnagy>
so it's not like it's obvious and you're missing it
nateberkopec has joined #ruby
<DanBoy>
is DateTime part of the stdlib
digital-ghost has quit [Remote host closed the connection]
endash has quit [Quit: endash]
kaspergrubbe has quit [Ping timeout: 264 seconds]
<bnagy>
kinda, it's weird
sbos99 has quit [Ping timeout: 246 seconds]
<bnagy>
if you include it you get extra stuff :/
<DanBoy>
i went over all this in ruby cookbook
<DanBoy>
lot of stuff i lost in my brain
<DanBoy>
but ya people get confused using Time and DateTime
mlpinit has quit [Read error: Connection reset by peer]
araujo has quit [Read error: Connection reset by peer]
<mark06>
bnagy: the implementation is wrong, should not silently accept strings...
<mark06>
bnagy: anyway, this is fine: dt=DateTime.strptime('Weda 2012-12-12 02:04:18 -0300', '%a %Y-%m-%d %H:%M:%S %z')
SilverKey has joined #ruby
adeponte has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
araujo has joined #ruby
<bnagy>
mark06: well then you should patch it or complain to the maintainer, not me, I'm just reading the docs for you
SilverKey has quit [Max SendQ exceeded]
<mark06>
bnagy: but tz.period_for_local(dt).dst? and tz.period_for_utc(dt).dst? are both true, so I'm confused which one is correct to use...
<bnagy>
not that I disagree, btw, it looks retarded and ancient
<bnagy>
mark06: either I'd say
Foredoomed has joined #ruby
SilverKey has joined #ruby
varfoo has joined #ruby
<mark06>
bnagy: ok man, you just sounded like arguing the problem was cause by not following the docs, when it was caused by poor code of them in the first place
<bnagy>
we're talking now about a specific instant in time, at a location
SilverKey has quit [Max SendQ exceeded]
<mark06>
either? I'm more confused now :)
<bnagy>
mark06: it _was_ caused by not following the docs
phantasm66 has quit [Quit: *poof*]
banisterfiend has quit [Read error: Connection reset by peer]
<mark06>
no it wasn't
<bnagy>
I'm looking at them, and you weren't doing what they say
alexw has joined #ruby
<mark06>
right
<alexw>
has anyone used capistrano here?
CincyCurtis has joined #ruby
saarinen has quit [Quit: saarinen]
<bnagy>
All methods in TZInfo that operate on a time can be used with either Time or DateTime instances or with Integer timestamps (i.e. as returned by Time#to_i)
* vpretzel
sheepishly says I have...
<mark06>
which is not an excuse for crappy code, wherever in the world would anyone ignore silently an invalid argument :P
<bnagy>
mark06: anyway, it ignores your 'ruby' timezone which only knows local and utc, afaict
<vpretzel>
A lot of dark dark places mark06
sevenseacat has joined #ruby
Foredoomed has quit [Read error: Connection reset by peer]
<mark06>
vpretzel: heh, I beliebe you
<bnagy>
it's just telling you that your instant in time is in dst at the location you gave it - whether you consider it from the point of view of DST or local, or +0545 in kathmandu
harumph has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<mark06>
is there sense at all on talking about dst in utc?
SilverKey has joined #ruby
<bnagy>
there is no sense talking about DST in ANY ZONE IDENTIFIER
<bnagy>
again
jlast has joined #ruby
<mark06>
I do get dst?, I don't get period_for_local vs. period_for_utc, since I still don't know which one the sample date is classified as
<bnagy>
mark06: when you parse that, you get an instant in time. The SAME instant everywhere in the world
<mark06>
what do you mean zone identifier, 'America/Sao_Paulo' or -0200?
devoldmx3 has joined #ruby
<bnagy>
zone identifiers like EST etc
eka has quit [Quit: Computer has gone to sleep.]
<mark06>
"Returns the TimezonePeriod for the given UTC time"
<bnagy>
or UTC
<mark06>
"Returns the TimezonePeriod for the given local time"
gyre007 has joined #ruby
<DanBoy>
UTC = green which mean time correct
<DanBoy>
wich
<bnagy>
zone identifier is, in fact, probably the wrong term but I don't know what the term for the abbreviations is :)
<vpretzel>
Yes DanBoy
<bnagy>
DanBoy: no
gja has quit [Ping timeout: 264 seconds]
<mark06>
the given is *the same*, which means when I'm using one or another, I'm saying *the same thing* is a *different* thing
<bnagy>
GMT is Greenwich Mean
<vpretzel>
oh damnit bnagy is right.
<DanBoy>
hmm i thought they were the same, my bad
<DanBoy>
army guys call GMT zulu time
nisstyre has joined #ruby
<bnagy>
kinda
fgo has joined #ruby
deception has joined #ruby
<DanBoy>
sounds cool :P
krainboltgreene has quit [Ping timeout: 246 seconds]
krainbol_ has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 245 seconds]
<bnagy>
mark06: Note that the timezone information of the local Time object is ignored (TZInfo will just read the date and time and treat them as if there were in the 'tz' timezone)
<bnagy>
again, not saying I agree with their API, but it's all written down
gyre007 has quit [Ping timeout: 245 seconds]
alvaro_o has quit [Quit: Ex-Chat]
Heero_ has joined #ruby
<mark06>
isn't this just wrong? "Warning: There are local times that have no equivalent UTC times (e.g. in the transition from standard time to daylight savings time)."
<mark06>
it should be there are UTC times that have no equivalent local times...
<Flashmasterson>
what does he mean by 3. of Extra Credit? I'm not sure how it should look in the code, but I've tried several ways and nothing has come out pretty. http://ruby.learncodethehardway.org/book/ex13.html
<mark06>
hmm utc 3am is actually local 1am dst, and utc 2:59am is local 23:59am standard, so right the period 0-1am local won't have an equivalent in utc, but it isn't even valid and the object instance shouldn't really even exist so that we could *ever* look for an equivalent utc time, see?
<bnagy>
I see what you're saying, it's just qwrong :)
tatsuya_o has quit [Ping timeout: 252 seconds]
<mark06>
bnagy: the example sounds odd to me.... but it seems fine if ruby/libs ever allowed creation of such invalid local times...
alexw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonathanwallace has quit [Ping timeout: 245 seconds]
jarm has quit [Ping timeout: 240 seconds]
<mark06>
there may be situations when these objects shall exist, who knows...
<bnagy>
dunno :) but did dst start at 0000 or 0100?
<mark06>
ah if I remove the -0300 it raises PeriodNotFound, how so if "Any timezone information in local is ignored (it is treated as a time in the current timezone)."
<mark06>
bnagy: from 0h to 1h, at 0h clock adjusted 1h forward
<bnagy>
ok - anyway, it's strptime giving you a time you didn't expect, I imagine
<mark06>
for my last question, well period method actually won't see the -0300, strptime will...
<mark06>
right, ...
gsvolt has quit [Remote host closed the connection]
saarinen has joined #ruby
gsvolt has joined #ruby
araujo has quit [Read error: Connection reset by peer]
codeFiend has joined #ruby
araujo has joined #ruby
coca_rails has joined #ruby
<kumatora>
bnagy: thanks!
RORgasm has quit [Ping timeout: 272 seconds]
<kumatora>
trying my hand at some rubygolf
<DanBoy>
pretty good sandbox ;)
gsvolt has quit [Remote host closed the connection]
petey has joined #ruby
gsvolt has joined #ruby
raphaelivan has quit [Quit: Leaving.]
RealMarc has quit [Ping timeout: 272 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<maasha>
The internet really needs a feature where there is an alert message "No, this is not what you are looking for" - or "No, this is not used anymore"
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
<shevy>
well
tatsuya_o has quit [Remote host closed the connection]
<shevy>
sometimes there is a tool x
brennanMKE has joined #ruby
<shevy>
it works but has some shortcomings
<shevy>
so tool y is created
<shevy>
usually y is better than x but not always
tatsuya_o has joined #ruby
<shevy>
now there are some options
<shevy>
you could stick to use the old x... or move to y... or
<shevy>
there is no channel #rdoc but there is a channel #yard with 16 ppl
xxpor has quit [Read error: Connection reset by peer]
* maasha
installs yard
sadleb has quit [Ping timeout: 246 seconds]
TMM has joined #ruby
TMM has quit [Changing host]
TMM has joined #ruby
tomzx_mac has joined #ruby
<maasha>
maybe yard can process rdoc to something fancy
mansi has quit [Ping timeout: 264 seconds]
swingha has joined #ruby
rickmasta has quit [Quit: Leaving...]
mengu has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
JaTochNietDan has joined #ruby
LarsSmit has joined #ruby
camilasan has quit [Remote host closed the connection]
heath has quit [Quit: No Ping reply in 180 seconds.]
nateberkopec has joined #ruby
camilasan has joined #ruby
heath has joined #ruby
mjmac has quit [Ping timeout: 245 seconds]
mjc_ has quit [Ping timeout: 245 seconds]
gyre007 has joined #ruby
yacks has joined #ruby
Czupa has quit [Remote host closed the connection]
Linux_Extremist has joined #ruby
mjmac has joined #ruby
mjc_ has joined #ruby
postmodern has joined #ruby
camilasan has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
camilasan has joined #ruby
pedda has joined #ruby
gyre007 has joined #ruby
nateberkopec has quit [Ping timeout: 246 seconds]
Linux_Extremist has left #ruby [#ruby]
simoz has quit [Ping timeout: 252 seconds]
<shevy>
hehe
<shevy>
you'll end up like me one day
terrellt has quit [Read error: Connection reset by peer]
<shevy>
giving up rdoc :P
trautwein has joined #ruby
codenapper has quit [Read error: Connection reset by peer]
timonv has joined #ruby
trautwein has quit [Read error: Connection reset by peer]
<maasha>
shevy: ok, so I am looking for a ML that is supported by GitHub's wiki and can be used to output fancy usage info using ANSI colors in terminal. Suggestions?
<shevy>
to combine both?
kil0byte has joined #ruby
codenapper has joined #ruby
<shevy>
I dont think there are many who include both goals you need here
<workmad3>
maasha: use markdown, then write a markdown renderer for ANSI codes?
<maasha>
shevy: rdoc is close
<maasha>
workmad3: or use rdoc and write a rdoc renderer?
<workmad3>
maasha: yup, that too
gyre007 has quit [Ping timeout: 245 seconds]
codenapper has quit [Read error: Connection reset by peer]
<maasha>
workmad3: shevy: now I was just wondering if I was reinventing the wheel here :o) - do such a renderer exists already?
blackmesa has joined #ruby
Metal-01 has joined #ruby
adeponte has joined #ruby
<maasha>
workmad3: and the RDoc module have an intriguing .to_ansi method, but I cant fingure out how to parse a file with that RDoc
persand has joined #ruby
platypine has joined #ruby
pyrac has quit [Quit: pyrac]
Clooth has joined #ruby
gyre007 has joined #ruby
xk_id has quit [Quit:
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
adeponte has quit [Ping timeout: 245 seconds]
jrhe has joined #ruby
platypine has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
jbpros has joined #ruby
rickmasta has joined #ruby
theRoUS has quit [Ping timeout: 272 seconds]
Vendethi_ has joined #ruby
OdNairy has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
jbpros has quit [Client Quit]
nikeita has joined #ruby
Alina-malina has quit [Quit: Leaving]
rickmasta has quit [Ping timeout: 245 seconds]
kil0byte has quit [Ping timeout: 245 seconds]
Alina-malina has joined #ruby
derebos has quit [Remote host closed the connection]
yoniPacheko has joined #ruby
<yoniPacheko>
hi there!
fgo has quit [Remote host closed the connection]
joonty has quit [Quit: WeeChat 0.4.1]
mikepack has joined #ruby
joonty has joined #ruby
freerobby has joined #ruby
sjltaylo_ has joined #ruby
VTLob has joined #ruby
funburn has quit [Quit: funburn]
mikepack has quit [Ping timeout: 272 seconds]
freerobby has quit [Ping timeout: 245 seconds]
palms has joined #ruby
sepp2k has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
h_kon has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
mansi has joined #ruby
bluOxigen has joined #ruby
Nenor_ has joined #ruby
`Chris`_ has joined #ruby
Nenor_ has quit [Client Quit]
shredding has joined #ruby
pskosinski has joined #ruby
alexw has joined #ruby
`Chris` has quit [Read error: Connection reset by peer]
dennus has joined #ruby
palms has quit [Ping timeout: 252 seconds]
D4T has joined #ruby
fgo has joined #ruby
tatsuya_o has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
mansi has quit [Ping timeout: 268 seconds]
juo_ is now known as juo
|jemc| has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
nikeita has quit [Ping timeout: 245 seconds]
aagdbl has joined #ruby
sevenseacat has joined #ruby
fred has quit [Ping timeout: 248 seconds]
Bofu2U has joined #ruby
nikeita has joined #ruby
mikecmpbll has joined #ruby
jonathanwallace has joined #ruby
nateberkopec has joined #ruby
danshultz has joined #ruby
h_kon has joined #ruby
AndChat| has joined #ruby
samfisher has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 264 seconds]
gja has quit [Quit: This computer has gone to sleep]
alexw has quit [Read error: Connection reset by peer]
fred has joined #ruby
dhilipsiva has quit [Remote host closed the connection]
alexw has joined #ruby
fred is now known as Guest89003
dhilipsiva has joined #ruby
zipper has quit [Remote host closed the connection]
flower-pot has quit [Quit: leaving]
nikeita has quit [Ping timeout: 272 seconds]
Jetchisel has joined #ruby
jbpros has joined #ruby
yoniPacheko has quit [Remote host closed the connection]
yoniPacheko has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
lkba has joined #ruby
justsee has joined #ruby
yoniPacheko has quit [Read error: Connection reset by peer]
eka has joined #ruby
`Chris` has joined #ruby
zipper has joined #ruby
chickenf_ has quit [Ping timeout: 246 seconds]
`Chris`_ has quit [Ping timeout: 245 seconds]
shredding has quit [Quit: shredding]
`Chris` has quit [Read error: Connection reset by peer]
`Chris` has joined #ruby
Vendethi_ has quit [Remote host closed the connection]
shredding has joined #ruby
mlpinit has joined #ruby
kaldrenon has joined #ruby
AlSquire has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
yoniPacheko has joined #ruby
poikon has joined #ruby
noname001 has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.4.1]
jonathanwallace has joined #ruby
kaldrenon has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
zodiak has quit [Remote host closed the connection]
BizarreCake has joined #ruby
noname001 has joined #ruby
andredurao has joined #ruby
mikepack has joined #ruby
freerobby has joined #ruby
includex has joined #ruby
ldnunes has joined #ruby
andrewvos has quit [Quit: WeeChat 0.3.7]
andrewvos has joined #ruby
kiri has joined #ruby
mikepack has quit [Ping timeout: 246 seconds]
parzo has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 264 seconds]
parzo has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
erry_ has joined #ruby
Astralum has quit [Ping timeout: 260 seconds]
yoniPacheko has quit [Remote host closed the connection]
erry_ has left #ruby [#ruby]
yoniPacheko has joined #ruby
<andredurao>
Hi there! Can anybody help me with some capybara configurations?
VTLob has quit [Quit: VTLob]
<andredurao>
I wish to know in which file I must add the line "Capybara.default_driver = :selenium"
danshultz has quit [Remote host closed the connection]
yoniPacheko has quit [Ping timeout: 268 seconds]
danshultz has joined #ruby
bluenemo has joined #ruby
drumusician has joined #ruby
<sevenseacat>
in your spec_helper/test_helper file
<andredurao>
...I did that
<andredurao>
inside the "class ActiveSupport::TestCase"
<andredurao>
although it didnt worked the way I expected
ybart has quit [Quit: ybart]
<sevenseacat>
im not super familiar with test unit but wherever you specifically configure it, is where it should go
samfisher has quit [Ping timeout: 272 seconds]
jrhe has quit [Quit: jrhe]
`Chris`_ has joined #ruby
shredding has quit [Quit: shredding]
graydot has quit [Quit: graydot]
danshultz has quit [Ping timeout: 256 seconds]
`Chris` has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
brennanMKE has joined #ruby
<andredurao>
me neither here, I'm trying to run a cucumber + capybara simple test but the selenium browser is not running
michael_mbp is now known as zz_michael_mbp
lyanchih has joined #ruby
lyanchih has quit [Client Quit]
lyanchih has joined #ruby
jarto has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
jonathanwallace has quit [Ping timeout: 246 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
brennanMKE has quit [Ping timeout: 245 seconds]
Banistergalaxy has joined #ruby
tkuchiki has joined #ruby
jrhe has joined #ruby
mansi has joined #ruby
kaspergrubbe has joined #ruby
jarto has left #ruby ["Ухожу я от вас (xchat 2.4.5 или старше)"]
wak3r has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
Vendethi_ has joined #ruby
DouweM has quit [Ping timeout: 272 seconds]
sjltaylo_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Banistergalaxy has quit [Ping timeout: 240 seconds]
Jetchisel has quit [Ping timeout: 260 seconds]
k610 has joined #ruby
julweber_ has quit [Remote host closed the connection]
julweber has joined #ruby
nateberkopec has joined #ruby
robbyoconnor has joined #ruby
jonr22 has joined #ruby
zipper has quit [Quit: Lost terminal]
shaunbaker has joined #ruby
mlpinit has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
chriskk has quit [Quit: chriskk]
poikon has joined #ruby
julweber has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
noop has quit [Ping timeout: 252 seconds]
noop has joined #ruby
nfk has joined #ruby
freezey has joined #ruby
guns has quit [Quit: guns]
zz_michael_mbp is now known as michael_mbp
nwertman has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Ping timeout: 272 seconds]
Banistergalaxy has joined #ruby
jonathanwallace has joined #ruby
acoyfellow has joined #ruby
<zzak>
shevy: whats up?
asobrasil has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
xk_id has joined #ruby
Metal-01 has quit [Quit: Leaving]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Jetchisel has joined #ruby
shredding has joined #ruby
AndChat| has joined #ruby
mark_locklear has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 264 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
larissa has joined #ruby
graydot has joined #ruby
nwertman has joined #ruby
mlpinit has joined #ruby
jbpros has quit [Quit: jbpros]
mlpinit has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 240 seconds]
Clooth has joined #ruby
zxq9 has joined #ruby
Bry8Star{T2 has joined #ruby
allaire has joined #ruby
freezey has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.4.1]
nari has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
dzan has joined #ruby
freezey has joined #ruby
jonathanwallace has joined #ruby
aagdbl has joined #ruby
<dzan>
hi, this is probably something stupid but i'm learnign ruby and I don't get why this (minimal example) prints every line with increased indentation: http://paste.debian.net/62921/
aagdbl has quit [Client Quit]
<sevenseacat>
are you talking about the indentation on lines 7-9?
<canton7>
top tip: use `array.each do |item|`, not `for item in array`
soba has quit [Ping timeout: 272 seconds]
pr0ggie has quit [Ping timeout: 252 seconds]
<dzan>
sevenseacat, no i mean the output
ehc has joined #ruby
pdimitrov has quit [Ping timeout: 272 seconds]
<dzan>
canton7, ok i'll change that :)
mikecmpbll has quit [Ping timeout: 245 seconds]
<sevenseacat>
i dont see anything there that would indent the output
pr0ggie has joined #ruby
pdimitrov has joined #ruby
<canton7>
I suspect your terminal's buggered? so it's expecting \r\n, but ruby's only giving it \n
p8952 has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 240 seconds]
mlpinit has joined #ruby
xargoon has quit [Ping timeout: 272 seconds]
aagdbl has joined #ruby
mansi has joined #ruby
hogeo has quit [Remote host closed the connection]
gregj has left #ruby [#ruby]
hogeo has joined #ruby
mlpinit has quit [Remote host closed the connection]
IceDragon has joined #ruby
mlpinit has joined #ruby
user258467 has joined #ruby
<yasu>
tobago, does this work for you? defaults = {foo: 123}; options = {:foo => 456, :bar => "Test"}; defaults.merge options.select { |k, v| defaults.has_key? k }
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
taternuts has joined #ruby
kaspergr_ has joined #ruby
taternuts has quit [Client Quit]
mansi has quit [Ping timeout: 272 seconds]
pushpak has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
<tobago>
yasu, already got it. thank you. :)
krz has quit [Quit: krz]
kaspergrubbe has quit [Ping timeout: 240 seconds]
hogeo has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
Clooth has quit [Read error: Connection reset by peer]
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
Clooth has joined #ruby
cody-- has joined #ruby
apeiros has joined #ruby
michael_mbp is now known as zz_michael_mbp
lyanchih has quit [Quit: lyanchih]
jkamenik has joined #ruby
kaspergrubbe has joined #ruby
sophomorical has quit [Ping timeout: 240 seconds]
gyre007 has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 256 seconds]
tobago has quit [Ping timeout: 240 seconds]
cody-- has quit [Quit: derp]
ZenGuy311 has quit [Ping timeout: 252 seconds]
`Chris` has joined #ruby
ZenGuy311 has joined #ruby
danshultz has joined #ruby
<banisterfiend>
anyone here have experience installing postgres on linux?
<banisterfiend>
specifically ubuntu?
* hoelzro
does
jbpros has joined #ruby
<hoelzro>
not ubuntu, though
sjltaylo_ has quit [Remote host closed the connection]
`Chris`_ has quit [Ping timeout: 272 seconds]
<banisterfiend>
hoelzro oh ok, any idea the best way how to install it on ubuntu?
mansi has joined #ruby
vpretzel has joined #ruby
RORgasm has joined #ruby
ewnd9 has joined #ruby
<hoelzro>
do you care which version you're installing?
varfoo has quit [Ping timeout: 240 seconds]
<sevenseacat>
sudo apt-get install postgresql
<hoelzro>
that was my next suggestion, based on banisterfiend's answer =)
enebo has joined #ruby
peneconleche has joined #ruby
drag00n has joined #ruby
<banisterfiend>
sevenseacat looking at a few websites it seemed the install line was significantly longer than that
<sevenseacat>
nope :)
<banisterfiend>
with about 4-5 different things needing to be installed
<banisterfiend>
cool then :)
mansi has quit [Remote host closed the connection]
SilverKey has quit [Quit: Sleep now]
burlyscudd has joined #ruby
<banisterfiend>
thanks
mansi has joined #ruby
<sevenseacat>
if you're missing dependencies, it will install them too
<sevenseacat>
np :)
RORgasm has quit [Ping timeout: 246 seconds]
snappy has quit [Ping timeout: 260 seconds]
nateberkopec has quit [Quit: Leaving...]
* hoelzro
wonders what guide banisterfiend was reading
snappy has joined #ruby
snappy has joined #ruby
snappy has quit [Changing host]
bline79 has quit [Ping timeout: 245 seconds]
codezomb has joined #ruby
nucatus has joined #ruby
tobago has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
obs has quit [Ping timeout: 245 seconds]
Artsky has joined #ruby
mansi has quit [Ping timeout: 248 seconds]
jezen has joined #ruby
Banistergalaxy has joined #ruby
krawchyk has joined #ruby
pyrac has joined #ruby
hiyosi has joined #ruby
larissa has quit [Ping timeout: 264 seconds]
jbpros has quit [Quit: jbpros]
ct529 has joined #ruby
bugsinlights has quit [Ping timeout: 240 seconds]
AndChat| has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
chrisja has joined #ruby
tobago has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
zz_michael_mbp is now known as michael_mbp
graydot has quit [Ping timeout: 240 seconds]
_zxq9_ has joined #ruby
coderhs has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
Cheos has joined #ruby
zxq9 has quit [Ping timeout: 264 seconds]
varfoo has joined #ruby
samfisher has joined #ruby
samfisher has joined #ruby
samfisher has quit [Changing host]
parzo has quit [Ping timeout: 264 seconds]
falood has quit [Remote host closed the connection]
<ct529>
I am starting to develop in ruby, and I normally use eclipse for development work. What is the recommended eclipse plugin for ruby development? I have googled plenty, but I found too many solutions, and some of the tools do not seem to be under active development.
Clooth has quit [Ping timeout: 246 seconds]
braincrash has quit [Ping timeout: 240 seconds]
graydot has joined #ruby
nateberkopec has joined #ruby
bugsinlights has joined #ruby
<ct529>
any recommendation you can give me?
jerius has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
sailias has joined #ruby
AndChat| has joined #ruby
randomnick_ has joined #ruby
nateberkopec has quit [Client Quit]
peta_ has joined #ruby
sophomorical has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
Metal-01 has joined #ruby
iamjarvo has quit [Ping timeout: 248 seconds]
lxsameer has quit [Quit: Leaving]
obs has joined #ruby
nowthatsamatt has joined #ruby
nfk has quit [Quit: yawn]
iamjarvo has joined #ruby
jrhe has quit [Quit: jrhe]
jlebrech has joined #ruby
geekbri has joined #ruby
nfk has joined #ruby
larissa has joined #ruby
coderhs has joined #ruby
alexw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
Astralum has joined #ruby
JRizzle has joined #ruby
Artsky has left #ruby [#ruby]
jlast has joined #ruby
graydot has quit [Quit: graydot]
mikecmpbll has quit [Ping timeout: 240 seconds]
JRizzle has quit [Client Quit]
bartj3 has quit [Read error: Operation timed out]
bartj3 has joined #ruby
oz has quit [Read error: Connection reset by peer]
oz` has joined #ruby
oz` is now known as oz
mikecmpbll has joined #ruby
<shevy>
ct529 dunno, never used eclipse. not many folks in here do. I think Hanmac is one of those who use eclipse
timonv has quit [Remote host closed the connection]
lyanchih has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
timonv has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
<ct529>
shevy: thanks a lot .... what do you normally use? I would rather not clog the PC with tens of development environments.
wesside has quit [Quit: Computer has gone to sleep.]
graydot has joined #ruby
nucatus has quit [Remote host closed the connection]
<bartj3>
most of the ruby devs use vim/emacs, or if you'd like a bit of an easier editor i'd go with sublime
brennanMKE has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
<shevy>
ct529 right now I use bluefish version 1.0.8
Vendethi_ has quit [Remote host closed the connection]
<shevy>
I think in the future I may switch to sublime, but for now I'll stick to bluefish
<shevy>
ct529 I wouldn't do so either, one editor to rule them all. vim and emacs did not work for me, emacs because I don't need an OS, vim because it interferes with my brain
pwh has joined #ruby
<shevy>
emacs-24.3.tar.xz 34M
freerobby has joined #ruby
<shevy>
vim-7.4.tar.xz 7.3M
<shevy>
bluefish-1.0.7.tar.xz 1.3M
<shevy>
hmmm
<shevy>
let me find eclipse ;)
<bartj3>
:p
user258467 has quit [Remote host closed the connection]
maveonair has joined #ruby
<shevy>
whoa
<shevy>
Eclipse Standard 4.3.1 197 MB
nucatus has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Quit: Leaving.]
<shevy>
this reminds me
Xeago has quit [Remote host closed the connection]
<shevy>
anyone knows the game project "battle for wesnoth"?
tyleretters has joined #ruby
jlast has joined #ruby
yoniPacheko has joined #ruby
maveonair has quit [Client Quit]
maveonair has joined #ruby
<shevy>
it used to be rather ok in size for a long while... somewhat around 20-50MB perhaps
<shevy>
now we have: Wesnoth 1.11.6 380.8MB
<shevy>
and of course you also need boost nowadays ...
brennanMKE has quit [Ping timeout: 241 seconds]
jonr22 has joined #ruby
<sweeper>
shevy: wesnoth is awesome \o
adrian has joined #ruby
adrian has left #ruby [#ruby]
pu22l3r has joined #ruby
user258467 has joined #ruby
<ct529>
shevy: bartj3: .... thanks, sorry a call .... brb!
iamjarvo has quit [Remote host closed the connection]
<robert_>
so I'm trying to recursion with Procs and Module.select(), but I'm not having very much luck figuring out when I'm leaving scopes, lol.
iamjarvo has joined #ruby
blaxter_ is now known as blaxter
jonr22 has quit [Ping timeout: 240 seconds]
<canton7>
robert_, try supplying an example, and saying exactly what's gone wrong
timonv has joined #ruby
sambao21 has joined #ruby
pencilcheck has quit [Remote host closed the connection]
h_kon has quit [Remote host closed the connection]
h_kon has joined #ruby
freezey has joined #ruby
xk_id has quit [Quit:
interactionjaxsn has joined #ruby
<ct529>
shevy: yes, eclipse is pretty large but can be used to develop in different lanagues within the same environment (and run,, compile, debug). IT is farily large and heavy, but quite good.
burlyscudd has joined #ruby
mojjojo has joined #ruby
<shevy>
I like small and beautiful
ffranz has joined #ruby
<shevy>
Hanmac wake up
terrellt has joined #ruby
acoyfellow has quit [Remote host closed the connection]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
nwertman has quit [Remote host closed the connection]
h_kon has quit [Ping timeout: 240 seconds]
pwh has quit []
palms has joined #ruby
<ct529>
shevy: yes, I do understand. I am looking at sublime now, but it is just a normal test editor .... I could use kate. For me the reason to use eclipse is not to proliferate development environments .... eclipse already in use for othe types of development.
samfisher has quit [Read error: Operation timed out]
petey_ has quit [Read error: Operation timed out]
chinychinchin has quit [Read error: Connection reset by peer]
kindjal has joined #ruby
chinychinchin has joined #ruby
maveonair has quit [Ping timeout: 272 seconds]
kindjal has quit [Client Quit]
Cope has joined #ruby
chinychinchin has quit [Read error: Connection reset by peer]
palms has quit [Ping timeout: 246 seconds]
Methylated has joined #ruby
chinychinchin has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<Cope>
quick question: I'm doing some research into concurrency frameworks; as an alternatve to akka/play! in java/scala; What does Ruby offer? If one wants to implement a reactive / actor pattern?
maveonair has joined #ruby
<Cope>
and does using jruby take away some of the threading issues?
<apeiros>
Cope: define "some of the threading issues"
drumsrgr8forn8 has joined #ruby
<apeiros>
Cope: look at celluloid and eventmachine
iamjarvo has quit [Remote host closed the connection]
chinychinchin has quit [Client Quit]
mansi_ has joined #ruby
dennus has quit []
chinychinchin has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
_dv_ has joined #ruby
Xeago has joined #ruby
iamjarvo has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<sorbo_>
what if you don't even know what the string format will be
ananthakumaran has joined #ruby
<canton7>
then how is it supposed parse it?
<canton7>
01/01/2010 is ambiguous
<shevy>
ct529 yeah :)
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has quit [Remote host closed the connection]
deception has joined #ruby
<ct529>
shevy: it was good, I used it in the past .... I will wait for Hanmac
<canton7>
there's a library called chronic which does natural language parsing for dates and times
<canton7>
but it's not perfect
<sorbo_>
that's why I specified American format
<sorbo_>
I understand it would be ambiguous for dates <= 12
<sorbo_>
hm, chronic might be what I'm looking for
adamnbowen has joined #ruby
ct529 has quit [Remote host closed the connection]
ehc has joined #ruby
kindjal has quit [Ping timeout: 248 seconds]
pixelgremlins has joined #ruby
p8952 has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
<_br_>
sorbo_: Date#parse does automatically guess the format. But its probably a bad idea to rely on that.
burlyscudd1 has joined #ruby
mary5030 has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
RORgasm has joined #ruby
mrsolo has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kindjal has joined #ruby
tobago has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
glacius has joined #ruby
nucatus has joined #ruby
dweeb has quit [Quit: Computer has gone to sleep.]
mengu has quit [Remote host closed the connection]
brennanMKE has joined #ruby
mengu has joined #ruby
<sorbo_>
innnnteresting
fredjean has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
ebetancourt has joined #ruby
brennanMKE has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
<apeiros>
it IS a bad idea to rely on that and should only be used as a last resort
<apeiros>
the right way is to have a fixed format and use strptime
<apeiros>
@ sorbo_ & _br_
<apeiros>
and I see canton7 already linked that
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
<sorbo_>
apeiros: good call
<sorbo_>
tough thing is we don't own the data source on this one
shredding has quit [Ping timeout: 272 seconds]
<sorbo_>
and they're inconsistent
<apeiros>
then kick them in the balls
<sorbo_>
_br_: thanks!
<sorbo_>
defaults to european dates though
kobain has joined #ruby
<sorbo_>
I think between that & warnings about not relying on it, we'll roll our own
<sorbo_>
to handle this cas
<sorbo_>
e
petey__ has quit [Remote host closed the connection]
<sorbo_>
apeiros: I would love to deliver a hearty kick to the balls on this one
_dv_ is now known as dv_
<apeiros>
do they at least make it recognizable? or do they randomly switch between mm/dd/yyyy and dd/mm/yyyy?
petey_ has joined #ruby
<sorbo_>
I think I'll have to settle for just cleaning up their mess before we use the date
<sorbo_>
apeiros: the latter
<apeiros>
teh fuck?
lnemo has quit [Quit: Leaving.]
shredding has joined #ruby
<sorbo_>
it's not even always mm/dd/yyyy
<sorbo_>
you can get something like
<apeiros>
that's insane
<sorbo_>
10-Oct-2013
<sorbo_>
you're telling me
<apeiros>
well, Oct is at least unambiguous
<sorbo_>
truth
<apeiros>
if it's unambiguous but multiple formats, then you can use a case/when statement with proper regexen
hyperlink has joined #ruby
<sorbo_>
I think that's what we'll end up doing
<sorbo_>
as long as we can ensure we don't get 04/02/2013 and not know if that's April 2 or February 4
Hanmac has quit [Quit: Leaving.]
<sorbo_>
I think they do provide metadata on the date format we can use, e.g. 'en-US' and 'en-GB'
Creeture has joined #ruby
Hanmac has joined #ruby
<sorbo_>
anyway
<sorbo_>
thanks all
tharindu has quit [Quit: Leaving...]
burlyscudd1 has quit [Quit: Leaving.]
<apeiros>
e.g. case date when /\A\d+-[A-Za-z]+-\d+\z/ then Date.strptime(date, "%d-%B-%Y"); when %r{\A\d\d/\d\d/\d{4}\z/; then Date.strptime(date, "%d/%m/%Y"); when …
mrsolo has quit [Quit: This computer has gone to sleep]
mlpinit has quit [Ping timeout: 246 seconds]
<m0no>
I have [1,2,3,4,5,6] and I want [1,3,5] and [2,4,6] - there must be a neet 1 liner here
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shaunbaker has quit [Ping timeout: 272 seconds]
<apeiros>
m0no: .each_slice(3).to_a
DanBoy has quit [Remote host closed the connection]
<workmad3>
_br_: sounds like someone's cat pissed on a laptop
<|jemc|>
sounds about right for a Dell...
tesuji has quit [Ping timeout: 245 seconds]
sbos99 has quit [Quit: Leaving]
cody-- has joined #ruby
kaspergrubbe has joined #ruby
Vendethi_ has joined #ruby
<hyperlink>
I'm trying to install a gem from a forked github repo and bundler is installing it into a separate directory but when I do bundle install --path= it's not installing it into the specified directory nor is giving me warnings
OdNairy has joined #ruby
zoee has quit [Quit: zoee]
<hyperlink>
bundle is installing it in a bundler/gems directory instead of my gems directory with my local list
blaxter has quit [Quit: foo]
Alina-malina has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
Alina-malina has joined #ruby
nateberkopec has joined #ruby
dkamioka has joined #ruby
larissa has quit [Quit: Leaving]
pskosinski has quit [Quit: Til rivido Idisti!]
sjkaliski has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
`Chris` has quit [Read error: Connection reset by peer]
`Chris` has joined #ruby
dddtest_549a0 has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
lsmola_ has quit [Ping timeout: 246 seconds]
maasha has quit [Quit: Page closed]
pierre1 has joined #ruby
sanav has joined #ruby
wak3r has joined #ruby
Xeago has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
jprovazn has quit [Quit: Leaving]
<sanav>
i download Standard Library API and Core API from http://www.ruby-doc.org/ .I extract the .gz folders and now it has ruby_2_0_stdlib_rdocs without any extension .Now please tell mehow to use them on windows .
iamjarvo has joined #ruby
dweeb has joined #ruby
cyberarm has joined #ruby
amacgregor__ has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
gja has quit [Quit: This computer has gone to sleep]
<_br_>
sanav: You want to install ruby?
rippa has joined #ruby
<sanav>
_br_: want to install API documentation .
cyberarm_ has joined #ruby
cyberarm has quit [Read error: Connection reset by peer]
<_br_>
hyperlink: Are you using rvm or rbenv ?
<hyperlink>
rvm
v0n is now known as v0n|w
<hyperlink>
I just saw I have a .bundle/config and it was overriding there but it's still installing into some bundle directory :(
burlyscudd has joined #ruby
<hyperlink>
like in ruby/2.0.0/gems/bundler/etc
<_br_>
hyperlink: When using rvm, bundler it will install all libs into a separate gemset folder, why do you want to change the default location?
tagrudev has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 246 seconds]
jezen has quit [Remote host closed the connection]
Azulinho has joined #ruby
<sanav>
_br_: understand ?
mgorbach has quit [Read error: Connection reset by peer]
<_br_>
sanav: Doesn't the standard windows ruby installer come with CHM files out of the box?
<hyperlink>
_br_ great question - I am installing a gem from a forked github - I added it to a Gemfile and just did bundle install and it's not listed in my "gem list" command - just trying to get it working
<hyperlink>
_br_ so I figured it wasn't installing into the right directory
emdub has quit [Remote host closed the connection]
TheMoonMaster has quit [Excess Flood]
palms has quit [Ping timeout: 264 seconds]
jbpros has joined #ruby
<_br_>
hyperlink: Well, probably it makes sense to create a fresh gemset for this app via rvm --create ... then you don't need to handle specific install locations because bundler handles it automatically for you
<dzan>
hi, still learning ruby so there might be some strange stuff in here: https://gist.github.com/dzan/f7ebb58c502db44e0c5d but does anyone know why between lines 54-58 'block_end' gets a wrong value? it seems to be to correct one if I only do either block_end or block_start but when I put both after eachother like this I get wrong results
TheMoonMaster has joined #ruby
<hyperlink>
_br_ I'd like to keep it in this gem set as it's project specific - sorry I'm very new to ruby
mikepack has joined #ruby
<hyperlink>
_br_ it's a gem needed for my continuous integration system for objective-c
<hyperlink>
ruby runs that for me pretty much
cyberarm_ has quit [Read error: Connection reset by peer]
<hyperlink>
_br_ thanks but I already have a gemset created for this project it installs it in gemset/bundler/gems -- this would be fine but the command line isn't showing up for me
codeFiend has quit [Quit: codeFiend]
<hyperlink>
I would be fine with linking that up and allowing bundler to install in a different location
<hyperlink>
like the new command from that gem meaning
sayan has joined #ruby
graydot has quit [Quit: graydot]
einarj has quit [Remote host closed the connection]
soulcake has quit [Read error: Connection reset by peer]
k610 has quit [Quit: Leaving]
ReachingFarr has joined #ruby
<_br_>
dzan: Couple of comments. Using global variables is a really bad idea. For commandline parsing you might want to look into e.g. thor gem or optparse. Wrong values problem. Hm, what are you actually trying to achieve here?
Zeeraw has quit [Quit: Computer has gone to sleep.]
<hyperlink>
_br_ I think I might just pull the source down, do a bundle build and infall the gem file locally
OdNairy has quit [Ping timeout: 246 seconds]
soulcake has joined #ruby
tvw has quit [Remote host closed the connection]
<dzan>
_br_, yeah I'll do optparse later just working on the logic first
<dzan>
_br_, I'll remove the global variables
<dzan>
_br_, I'm trying to get the line number of the first comment block start & end
<dzan>
C-style comments
<_br_>
hyperlink: Bundler does that automatically for you, but I'm suspecting you are using different gemsets e.g. local $name vs global gemset resulting in you not "finding" it
kevinykchan has joined #ruby
<_br_>
dzan: So you are trying to write a tokenizer.
tonni has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
minimus has joined #ruby
sayan has quit [Read error: Connection reset by peer]
tvw has joined #ruby
ace_striker has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
nfk has joined #ruby
mengu has quit [Remote host closed the connection]
apeiros has joined #ruby
Fire-Dragon-DoL has joined #ruby
julweber has quit [Remote host closed the connection]
HoneyMaker has joined #ruby
julweber has joined #ruby
jhaals has quit [Ping timeout: 248 seconds]
HoneyMaker has quit [Read error: Connection reset by peer]
jezen_ has quit [Remote host closed the connection]
maveonair has quit [Ping timeout: 264 seconds]
dweeb has quit [Quit: Computer has gone to sleep.]
jezen has joined #ruby
flops has quit [Quit: leaving]
achru has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
tboerger has quit [Ping timeout: 272 seconds]
sorbo_ has left #ruby [#ruby]
julweber has quit [Ping timeout: 264 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
DouweM has joined #ruby
jezen has quit [Read error: No route to host]
cody-- has quit [Quit: derp]
pkrnj has joined #ruby
brtdv has quit []
zz_michael_mbp is now known as michael_mbp
noname001 has quit [Ping timeout: 245 seconds]
ocfx_work has joined #ruby
nucatus has joined #ruby
theoretick has joined #ruby
randomnick_ has quit [Read error: Connection reset by peer]
brtdv has joined #ruby
Xeago has joined #ruby
jkhwan has quit [Remote host closed the connection]
palms has joined #ruby
jkhwan has joined #ruby
brtdv has quit [Client Quit]
allaire has joined #ruby
randomnick_ has joined #ruby
randomnick_ has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Read error: Operation timed out]
einarj has joined #ruby
nucatus has quit [Ping timeout: 240 seconds]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has quit [Ping timeout: 246 seconds]
freezey has quit [Ping timeout: 240 seconds]
ebetancourt has quit [Read error: Connection reset by peer]
allaire has quit [Client Quit]
jkhwan has quit [Ping timeout: 272 seconds]
IceDragon has quit [Ping timeout: 272 seconds]
lyanchih has quit [Ping timeout: 272 seconds]
noop has joined #ruby
jkhwan has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
lmickh has quit [Quit: lmickh]
zipper has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
<_br_>
Yeah, would be nice if Ruby would have some large dedicated companies push it. Like Facebook did with HipHop for PHP.
<shevy>
Hanmac you are too rich!
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
<Hanmac>
shevy: i was buying some hose for outside and inside, some socks, and a few books
sambao21 has quit [Quit: Computer has gone to sleep.]
<coca_rails>
What up noobz
ixti has joined #ruby
pierre1 has quit [Quit: Leaving]
pyrac has joined #ruby
<shevy>
a garden hose?
sepp2k has quit [Quit: Konversation terminated!]
<Hanmac>
nah, some jeans like ones
devoldmx has joined #ruby
Aryasam has joined #ruby
<shevy>
;) hose ... der Wasserschlauch
<shevy>
let me find the eclipse guy here...
<shevy>
ah damn... it was ct529, seems he is gone now
<coca_rails>
Hey room i am thinking about changing my username. tell me what you suggest. 1) rubyonmales 2) lizard_ick 3) slurpee_poo
niklasb has joined #ruby
zipper has quit [Ping timeout: 240 seconds]
boxmein has quit [Ping timeout: 272 seconds]
DanKnox_away is now known as DanKnox
lmickh has joined #ruby
<coca_rails>
paitiently waiting..
timonv has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
jrhe has quit [Quit: jrhe]
timonv has joined #ruby
IceDragon has joined #ruby
dagobah has quit [Remote host closed the connection]
sambao21 has joined #ruby
Mitchellvanw has joined #ruby
alup has quit [Quit: Leaving]
brennanMKE has quit [Ping timeout: 272 seconds]
sarlalian has joined #ruby
<mikecmpbll>
3 plz
randomnick_ has joined #ruby
shemarov has quit [Read error: Connection reset by peer]
Mitchellvanw has quit [Client Quit]
rdnsget has joined #ruby
rdnsget has left #ruby [#ruby]
<coca_rails>
lol ok
<coca_rails>
any others??
nwertman_ has quit [Ping timeout: 245 seconds]
jrhe has joined #ruby
<coca_rails>
slurpee_poo it shall be
<mikecmpbll>
unanimous.
sbos99 has joined #ruby
<coca_rails>
By unanimous decision, coca_rails shall now be known as slurpee_poo!
krawchyk_ has joined #ruby
robbyoconnor has joined #ruby
<workmad3>
coca_rails: it seems more like 1 vote and several hundred abstentions, rather than unanimous decision ;)
timonv has quit [Ping timeout: 248 seconds]
SilverKey has joined #ruby
threesome has joined #ruby
<coca_rails>
The user formerly known as coca_rails: Dear members of the panel I would like to thank you for your input and for helping me start a new life under a new identity.
apeiros has joined #ruby
freezey has joined #ruby
heidi has quit [Quit: Leaving.]
randomnick_ has quit [Read error: Connection reset by peer]
Voodoofish430 has joined #ruby
mmcdaris has joined #ruby
<andrewvos>
1)
<coca_rails>
I promise, that under my new alias, I will behave according to the standards, expectations, and rules set forth by the esteemed members of the ruby channel.
krawchyk has quit [Ping timeout: 240 seconds]
randomnick_ has joined #ruby
camilasan has quit []
rdnsget has joined #ruby
rdnsget has left #ruby [#ruby]
whunt has quit [Quit: Computer has gone to sleep.]
nwertman has joined #ruby
cody-- has joined #ruby
heftig has joined #ruby
Es0teric has joined #ruby
<_br_>
minswan.... minswan...
randomnick_ has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
JohnBat26 has quit [Ping timeout: 245 seconds]
lukec has quit [Quit: lukec]
johnnyfuchs has quit [Quit: Leaving.]
rrichardsr3 has joined #ruby
adeponte has joined #ruby
pwh has joined #ruby
andikr has quit [Remote host closed the connection]
Senjai has joined #ruby
Senjai has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
dkamioka_ is now known as dkamioka
bean has joined #ruby
Astral_ has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
<coca_rails>
Real question here: I'm new to irc so pardon the stupid question. I keep getting this message when trying to send a msg. Can someone help me out? :13:19 <freenode> Error(404): #ruby-lang Cannot send to channel
whunt has joined #ruby
tsykoduk is now known as zz_tsykoduk
Kamuela has joined #ruby
`Chris` has joined #ruby
Clooth has joined #ruby
<canton7>
they have a form of spam protection enabled. register your nickname with nickserv and identify
devoldmx has quit [Read error: Connection reset by peer]
stunthamster has quit [Ping timeout: 245 seconds]
hjvbe8hgqt4kjh98 has quit [Excess Flood]
devoldmx has joined #ruby
aganov has quit [Quit: aganov]
hjvbe8hgqt4kjh98 has joined #ruby
<Kamuela>
right now, when i type ruby, i just get something that kinda hangs
a1ph4g33k has joined #ruby
hjvbe8hgqt4kjh98 has quit [Excess Flood]
nowthatsamatt has joined #ruby
<havenwood>
Kamuela: What is?: command -v ruby
<Kamuela>
when i type ruby --version, i get 1.9.3-p0
hjvbe8hgqt4kjh98 has joined #ruby
hjvbe8hgqt4kjh98 has left #ruby [#ruby]
<a1ph4g33k>
g'morning all.
Creeture has left #ruby [#ruby]
<havenwood>
a1ph4g33k: g'morn
petey_ has joined #ruby
<Kamuela>
havenwood: /usr/local/bin/ruby
<havenwood>
Kamuela: so you're using the apt ruby1.9.1 package.
burlyscudd has joined #ruby
wak3r has quit [Read error: Connection reset by peer]
<havenwood>
Kamuela: You wanna install Ruby 2.0.0-p247?
Stygia has quit [Remote host closed the connection]
zigomir has quit [Quit: zigomir]
<Kamuela>
havenwood: I'm beginning Rails development. I'd prefer to do whatever necessary to maintain little virtual environments like how django/python used virtualenv. I'll install Ruby2 systemwide as well
coderhs has joined #ruby
xk_id has quit [Quit:
BizarreCake has joined #ruby
nucatus has quit [Ping timeout: 246 seconds]
nowthatsamatt has quit [Client Quit]
interactionjaxsn has quit [Remote host closed the connection]
<havenwood>
Kamuela: So you get to choose between chruby/ruby-install, rvm or rbenv/ruby-build. I'd recommend chruby. :)
krawchyk_ has quit [Remote host closed the connection]
Spami has joined #ruby
bozon has joined #ruby
capicue has joined #ruby
krawchyk has joined #ruby
ybart has quit [Quit: ybart]
MrPoT4tO has quit [Read error: Connection reset by peer]
mrpot4to_ has quit [Read error: Connection reset by peer]
nisstyre has joined #ruby
<Kamuela>
by uninstalling ruby1.9 with apt-get purge, ruby --version now says 2.0.0p247 :)
ni291187 has quit [Ping timeout: 272 seconds]
<havenwood>
Kamuela: With chruby installed and sourced in your dotfiles, any Rubies you install to ~/.rubies/ or /opt/rubies/ get auto-detected and you can switch between them and system Ruby like `chruby jruby` or `chruby system` or `chruby ruby-2.0`.
MrPoT4tO has joined #ruby
<bozon>
exit
bozon has quit [Client Quit]
lorundrik has quit [Ping timeout: 245 seconds]
<havenwood>
Kamuela: Now what is your? command -v ruby
<havenwood>
Kamuela: Just curious?
<havenwood>
Kamuela: How'd you install it?
randomnick_ has joined #ruby
lmickh has quit [Quit: lmickh]
<Kamuela>
havenwood: /usr/local/bin/ruby, i installed it from wget souce tarball
<Kamuela>
source not sauce
<havenwood>
hehe
dEPy has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
dEPy has joined #ruby
interactionjaxsn has quit [Ping timeout: 240 seconds]
mrpot4to_ has joined #ruby
<havenwood>
Kamuela: Might wanna double check that RubyGems is working by updating to latest: gem update --system
chriskk has joined #ruby
hd1 has joined #ruby
brennanMKE has joined #ruby
chriskk has quit [Client Quit]
mmcdaris has quit [Quit: mmcdaris]
<havenwood>
Kamuela: (Ship with Ruby but good to keep RubyGems up to date for security and bug fixes, etc.)
<havenwood>
Kamuela: If you have issues, can always install chruby and point it at where you build Ruby, will set all the env vars correctly.
<Kamuela>
havenwood: ah, that required root the gem update
hd1 has left #ruby [#ruby]
<havenwood>
Kamuela: Yeah, all `gem update` and `gem install` will require `sudo` with Ruby installed system wide.
<Kamuela>
havenwood: simply because i want the virtual environment, i'm going to be using chruby by your recommendation. that's immediately next on the todo list
aspires has quit [Quit: sudo making a sandwich]
Marco__ has joined #ruby
Marco__ has left #ruby [#ruby]
brtdv has quit []
tonni has quit [Remote host closed the connection]
<havenwood>
Kamuela: I install Ruby to ~/.rubies/ locally, but on a single user system and i just don't like to sudo before my gem stuffs. :P
interactionjaxsn has joined #ruby
nfk has quit [Ping timeout: 248 seconds]
<Kamuela>
havenwood: how should I install the chruby/ruby-install stack?
brtdv has joined #ruby
nucatus has joined #ruby
dEPy has quit [Ping timeout: 245 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
mmitchell has joined #ruby
mmcdaris has joined #ruby
<havenwood>
Kamuela: Just follow readme install instructions. No formal apt package yet, though chruby has one in the works.
devoldmx has quit [Read error: No route to host]
bricker_ has joined #ruby
<Kamuela>
havenwood: investigating readme now
devoldmx has joined #ruby
lfox has joined #ruby
johnnyfuchs has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
amacgregor__ has quit [Ping timeout: 245 seconds]
mmitchell has quit [Read error: Connection reset by peer]
bricker_ is now known as bricker
mmitchell has joined #ruby
c0rn has joined #ruby
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
blaxter_ has joined #ruby
niklasb has quit [Read error: Operation timed out]
mmitchel_ has joined #ruby
jezen has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
coca_rails has quit [Remote host closed the connection]
devoldmx has joined #ruby
pragmatism has joined #ruby
workmad3 has quit [Read error: Operation timed out]
coca_rails has joined #ruby
theRoUS is now known as theRoUS|afk
mrsolo has quit [Quit: This computer has gone to sleep]
Metal-01 has quit [Quit: Leaving]
niklasb has joined #ruby
shaunbaker has quit [Ping timeout: 272 seconds]
heath has quit [Quit: No Ping reply in 180 seconds.]
mmitchell has quit [Ping timeout: 246 seconds]
heath has joined #ruby
Zai00 has quit [Quit: Zai00]
mmitchel_ has quit [Remote host closed the connection]
randomnick_ has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
tvw has quit []
mmitchell has quit [Remote host closed the connection]
randomnick_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
devoldmx has joined #ruby
coca_rails has quit [Ping timeout: 272 seconds]
<Kamuela>
havenwood: how do i check that chruby just installed?
carraroj has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
pedda has joined #ruby
intuxicated has joined #ruby
pedda has quit [Max SendQ exceeded]
troessner has quit [Quit: Leaving]
kvirani has joined #ruby
iamjarvo has quit [Ping timeout: 256 seconds]
pedda has joined #ruby
<Kamuela>
havenwood: i think i got it, i had to activate its shell first
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
lmickh has joined #ruby
<Kamuela>
i'll brb
Clooth has quit [Quit: Leaving...]
matchaw_ has joined #ruby
geekbri has quit [Remote host closed the connection]
troessner has joined #ruby
ephemerian has quit [Quit: Leaving.]
coca_rails has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
Czupa has joined #ruby
Kamuela has quit [Quit: Leaving]
matchaw has quit [Ping timeout: 256 seconds]
devoldmx has quit [Read error: Connection reset by peer]
g3orge has joined #ruby
devoldmx has joined #ruby
<g3orge>
hi, I install nokogiri with gem install and after successful installation I can't require the module.
geekbri_ has joined #ruby
<g3orge>
I get: libexslt.so.0: cannot open shared object file: No such file or directory - /home/g3orge/.gem/ruby/2.0.0/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.so (LoadError)
brtdv has quit []
drumusician has quit [Ping timeout: 240 seconds]
<g3orge>
the file exists though
noop has quit [Ping timeout: 240 seconds]
randomnick_ has quit [Read error: Connection reset by peer]
tharindu has joined #ruby
Al_ has quit [Quit: Al_]
jamblack has quit [Ping timeout: 246 seconds]
randomnick_ has joined #ruby
dkamioka has quit [Remote host closed the connection]
brennanMKE has joined #ruby
ericmathison has quit [Quit: leaving]
Kamuela has joined #ruby
randomnick_ has quit [Read error: Connection reset by peer]
<Kamuela>
I'm fairly certain that I've installed chruby correctly.
aspires has joined #ruby
<jwest>
g3orge: When you say the file exists, to which file are you referring?
chinychinchin has joined #ruby
<havenwood>
Sry for disappearing, on phone.. Kamuela: Yup, just type `chruby` to check. After initial install you have to either source the dotfile line or restart your shell.
devoldmx has quit [Read error: Connection reset by peer]
jibi has joined #ruby
mikepack has quit [Remote host closed the connection]
devoldmx has joined #ruby
randomnick_ has joined #ruby
<Kamuela>
havenwood: No problem, I was abusing your helpfulness anyway :P. I really appreciate your helping me out though
<apeiros>
shawnjgoff: errr, seriously? I'm not going to search that whole page for the enum you mean…
kaspergrubbe has joined #ruby
<shawnjgoff>
It's Right at the one labeled "Reusable Module Enum"
<shawnjgoff>
It's just a module with constants.
<apeiros>
constants can be listed using the .constants method
<apeiros>
see Module#constants
<_br_>
ah apeiros is too fast for me, wanted to type that just now :)
<shawnjgoff>
Thanks.
jamblack has joined #ruby
<canton7>
there's also Module#const_get, which you can pass a symbol from #constants
Clooth has joined #ruby
EddSeabrook has quit [Read error: Operation timed out]
devoldmx has quit [Read error: Connection reset by peer]
bklane_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
bklane has joined #ruby
burlyscudd has quit [Quit: Leaving.]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pothibo has joined #ruby
dEPy has joined #ruby
kirun has joined #ruby
salientknight has joined #ruby
theRoUS|afk is now known as theRoUS
<salientknight>
hey all
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shawnjgoff>
Tester.constants.map { |k| Tester.const_get k }
bahar has joined #ruby
carlyle has joined #ruby
<shawnjgoff>
Thanks, folks! I got this: Tester.constants.map { |k| Tester.const_get k }
jbpros has quit [Quit: jbpros]
geekbri_ has quit [Remote host closed the connection]
randomnick_ has quit [Read error: Connection reset by peer]
jprovazn has quit [Quit: Odcházím]
heidi has left #ruby [#ruby]
<salientknight>
does anyonw know why a newly created scaffold would throw the error ActiveRecord::RecordNotFound for the index page and Couldn't find Album with id=index
nfk has joined #ruby
vlad_starkov has joined #ruby
<salientknight>
all of the previous scaffolds I have made had worked and now they don't
devoldmx has quit [Read error: Connection reset by peer]
randomnick_ has joined #ruby
<apeiros>
salientknight: because you opened the wrong url
<apeiros>
salientknight: also #rubyonrails
devoldmx has joined #ruby
<salientknight>
thanks apeiros
<apeiros>
wrong url: sounds like you added /index at the end. don't.
vlad_starkov has quit [Remote host closed the connection]
randomnick_ has quit [Read error: Connection reset by peer]
randomnick_ has joined #ruby
dEPy has quit [Read error: Connection reset by peer]
Roa has quit [Ping timeout: 260 seconds]
dEPy has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
<g3orge>
jwest: I meant the one with the absolute file. the .so
gchristensen has joined #ruby
ocfx_ has joined #ruby
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
<gchristensen>
hi, is it really the standard and best practice to have no blank lines at the end of a file? that is counter to what I've always done, and robucop is complaining about it :)
<jwest>
g3orge: nokogiri.so is trying to load libexslt.so.0 and can't find it. You need to install that library.
Roa has joined #ruby
<g3orge>
oh okay, where from?
hd1 has left #ruby [#ruby]
tatsuya_o has quit [Remote host closed the connection]
maveonair has quit [Ping timeout: 240 seconds]
tatsuya_o has joined #ruby
theoretick has joined #ruby
ocfx_work has quit [Ping timeout: 264 seconds]
<jwest>
g3orge: If you're on a Debian/Ubuntu system you can probably find a libxslt1.1 package or something similar which will have the library in it.
<Hanmac>
jwest & g3orge what nokogiri version? the newest one does include the libs itself
devoldmx has quit [Read error: Connection reset by peer]
burlyscudd1 has joined #ruby
devoldmx has joined #ruby
pu22l3r_ has joined #ruby
<jwest>
g3orge: And I'll defer to Hanmac who is more familiar with nokogiri than I am, obviously. :)
burlyscudd has quit [Read error: Connection reset by peer]
dEPy has quit [Quit: Computer has gone to sleep.]
<Hanmac>
there was a big change in the newest 1.6 version ... the 1.5 and prev does depend on the dev packages, 1.6 does ship the libs itself so you not need the dev packs anymore
tatsuya_o has quit [Read error: Operation timed out]
sambao21 has quit [Quit: Computer has gone to sleep.]
dEPy has joined #ruby
<g3orge>
Hanmac: I 'gem install nokogiri' and returned sucessfully
jrhe has joined #ruby
<Hanmac>
then you may have the 1.6 version
achru has quit [Remote host closed the connection]
<g3orge>
probably. I still get an error though
nfk has quit [Quit: yawn]
vlad_starkov has joined #ruby
achru has joined #ruby
<Hanmac>
hm what does "gem list" shows you what nokogiri version you have?
yfeldblum has joined #ruby
mmitchel_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<g3orge>
nokogiri (1.6.0)
mikepack has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
sambao21 has joined #ruby
ocfx_work has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
bean has joined #ruby
skaflem has quit [Quit: Leaving]
pyrac has quit [Quit: pyrac]
RichardBaker has quit [Quit: RichardBaker]
alvaro_o has joined #ruby
pu22l3r_ has quit [Ping timeout: 268 seconds]
mikepack has quit [Remote host closed the connection]
pu22l3r has joined #ruby
snardbafu|ator has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
mikepack has joined #ruby
emdub has joined #ruby
mmitchel_ has joined #ruby
dEPy has quit [Ping timeout: 264 seconds]
mmitchell has quit [Ping timeout: 264 seconds]
<g3orge>
what next?
bklane has quit [Read error: Connection reset by peer]
pwh has quit [Ping timeout: 272 seconds]
bklane has joined #ruby
coca_rails has quit [Remote host closed the connection]
achru has quit [Ping timeout: 272 seconds]
ocfx_ has quit [Ping timeout: 272 seconds]
poikon has quit []
coca_rails has joined #ruby
pwh has joined #ruby
pu22l3r has quit [Remote host closed the connection]
randomnick_ has quit [Read error: Connection reset by peer]
<Hanmac>
g3orge: hm do "gem contents nokogiri | grep nokogiri.so" that should show you the path, then do something like " ldd /usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.0/ext/nokogiri/nokogiri.so"
blackmesa has joined #ruby
BlakeRG has joined #ruby
snardbafu|ator has quit [K-Lined]
devoldmx has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
<Hanmac>
gasp it looks like its not currect installed ... i get something like /usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.0/ports/libxslt/1.1.26/lib/libexslt.so.0
mrsolo has joined #ruby
hiyosi has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
<g3orge>
my path had "2.0.0" and that's my rb version. not 2.1.0 as yours. does that matter?
devoldmx3 has joined #ruby
nfk has joined #ruby
tharindu has quit [Quit: Leaving...]
aspires has joined #ruby
Aryasam has joined #ruby
heidi has joined #ruby
dEPy has quit [Client Quit]
<Hanmac>
hm no it should not (i have 2.1 because i am crazy)
dEPy has joined #ruby
<g3orge>
I installed it (libxslt) with pacman and now it says: WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
<g3orge>
but I think it's working
kaspergrubbe has quit [Remote host closed the connection]
yoniPacheko has joined #ruby
kaspergrubbe has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
<Hanmac>
hm that is currious ... it seems that nokogiri was build against system libs and not the other ...
<Hanmac>
hm try to remove nokogiri gem and install it again (maybe that helps)
devoldmx3 has quit [Read error: Connection reset by peer]
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DrShoggoth has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
jonr22 has joined #ruby
rrichardsr3 has quit [Quit: -- I'm getting very tired --]
hiyosi has quit [Ping timeout: 272 seconds]
RichardBaker has joined #ruby
<g3orge>
I don't know why the libs were not packaged within
whunt has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
kevinykchan has joined #ruby
bassclef has joined #ruby
yfeldblum has joined #ruby
bassclef is now known as Guest45769
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nomenkun has joined #ruby
relix has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
<weeb1e>
Good day everyone
dEPy has joined #ruby
<weeb1e>
I have yet another encoding issue, which came out of no where, with no changes to the third party server or my client
<weeb1e>
I am using JSON.parse(http.response.force_encoding('utf-8')) and getting Exception: 756: unexpected token at '{ "
burlyscudd has quit [Ping timeout: 248 seconds]
<weeb1e>
Those 3 leading chars are part of UTF-8 as far as I understand, so I really have no idea why the exception would be thrown. Does anyone have any ideas?
dEPy has quit [Read error: Connection reset by peer]
<MrZYX>
zipper: therefore Proc.new is a method call that takes a block, converts it into a proc and returns that new proc. That doesn't make the block equal to the proc, like 1 and 1.0 are two different things (integer versus float) representing the same value
<MrZYX>
nemish_: for one part, you use rails as root
<Radar>
nemish_: Yes.
<Radar>
nemish_: Please use Gist instead to post code.
<Hanmac>
nemish_: #rubyonrails
<nemish_>
MrZYX: yeah I have it set in /etc/sysconfig/foreman to use foreman user
Tuxist has quit [Read error: Connection reset by peer]
pu22l3r_ has joined #ruby
<MrZYX>
don't run stuff as root unless you need to
endash_ has quit [Quit: endash_]
cody-- has joined #ruby
<coca_rails>
Radar: When you say more context what do you mean (sorry for the newbie questions)
Macaveli has joined #ruby
<Methylated>
How would I go about profiling an app running on mod_ruby? Is it possible to do so externally, or to have the profiler not overwrite results on every request (aggregate)
pu22l3r_ has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
pu22l3r has joined #ruby
sbos99 has quit [Ping timeout: 272 seconds]
aapzak has quit [Ping timeout: 268 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
aapzak has joined #ruby
Macaveli has joined #ruby
brtdv has joined #ruby
nomenkun has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
Trudko has quit [Read error: Connection reset by peer]
ukd1 has joined #ruby
julweber has quit [Ping timeout: 246 seconds]
<coca_rails>
no output. nothing returned
carlyle has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 268 seconds]
carlyle has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Valesk_ has quit [Ping timeout: 272 seconds]
<coca_rails>
Another question for everyone - I just bought a mac yesterday and im trying to figure out, in Messages app, how to stop making a sound when i send a message. i only want a sound for incoming messages
Macaveli has quit [Remote host closed the connection]
capicue has quit [Quit: Leaving...]
weems has quit [Read error: Connection reset by peer]
<coca_rails>
its annoying..its like great. I know i sent a message. I dont need an audio notification lol
lsmola_ has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
valesk has joined #ruby
ocfx has joined #ruby
kvirani_ has joined #ruby
pedda has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0rn has quit [Read error: Operation timed out]
carlyle has quit [Ping timeout: 245 seconds]
zz_michael_mbp is now known as michael_mbp
jonr22 has joined #ruby
kaldrenon has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaldrenon has joined #ruby
mixel has joined #ruby
c0rn has joined #ruby
predator117 has quit [Ping timeout: 245 seconds]
jamblack has joined #ruby
kvirani has quit [Ping timeout: 272 seconds]
predator117 has joined #ruby
Soda has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
dsferreira has joined #ruby
dddtest_549a0 has quit [Read error: Connection reset by peer]
myth17 has joined #ruby
myth17 has quit [Changing host]
myth17 has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
justsee has joined #ruby
zz_jrhorn424 is now known as jrhorn424
kaldrenon has quit [Ping timeout: 245 seconds]
michael_mbp is now known as zz_michael_mbp
simoz has joined #ruby
failshell has quit []
shanlar- has quit [Quit: Be back later]
mikepack_ has joined #ruby
jamblack has quit [Client Quit]
mrsolo has joined #ruby
ebetancourt has joined #ruby
Shidash has quit [Ping timeout: 246 seconds]
ukd1_ has joined #ruby
Mattx has quit [Ping timeout: 245 seconds]
ukd1_ has quit [Remote host closed the connection]
hiyosi has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
mikepack has quit [Ping timeout: 264 seconds]
TheMoonMaster has quit [Excess Flood]
Mattx has joined #ruby
Mattx has joined #ruby
Mattx has quit [Changing host]
nisstyre has joined #ruby
valesk has quit [Ping timeout: 240 seconds]
mrsolo has quit [Read error: Connection reset by peer]
mikepack_ has quit [Remote host closed the connection]
mrsolo has joined #ruby
TheMoonMaster_ has joined #ruby
mikepack has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
monkegji_ has quit [Remote host closed the connection]
ukd1 has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
freezey has quit [Read error: No route to host]
hiyosi has quit [Read error: Operation timed out]
Aryasam has joined #ruby
freezey has joined #ruby
Zeeraw has joined #ruby
OdNairy has joined #ruby
mikepack has quit [Remote host closed the connection]
OdNairy has quit [Client Quit]
danshultz has quit [Remote host closed the connection]
myth17 has quit [Remote host closed the connection]
danshultz has joined #ruby
carlyle has joined #ruby
myth17 has joined #ruby
funburn has quit [Quit: funburn]
yalue has quit [Quit: Leaving]
gyre007 has quit [Read error: Operation timed out]
monkegjinni has quit [Ping timeout: 264 seconds]
theoretick has quit [Ping timeout: 256 seconds]
Mattx has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
<Mon_Ouie>
If it never outputs even empty lines, then it must be stuck executing something. Does the call to pdf_scrape ever terminate?
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
RichardBaker has quit [Ping timeout: 240 seconds]
Notte has joined #ruby
<jrhorn424>
i have $10 to spend on ebay. what's the ruby book i need? already have pickaxe
Notte has quit [Remote host closed the connection]
weems has joined #ruby
<DanBoy>
you finish pickaxe?
Notte has joined #ruby
danshultz has quit [Ping timeout: 248 seconds]
<coca_rails>
Mon_Ouie: i dont know
<DanBoy>
i dunno i forgot
Notte has quit [Remote host closed the connection]
<DanBoy>
but i did it like
<DanBoy>
some beginning ruby book
<havenwood>
jrhorn424: maybe The Ruby Programming Language
<DanBoy>
then pickaxe
Bry8Star{T2 has quit [Remote host closed the connection]
<DanBoy>
then ruby cookbook front to back
Notte has joined #ruby
Notte has quit [Remote host closed the connection]
Notte_ has joined #ruby
<havenwood>
jrhorn424: with the Sparrow on the cover
<DanBoy>
apparently the ruby programming language i was told to read before pickaxe
v0n|w is now known as v0n
Notte_ has quit [Remote host closed the connection]
<DanBoy>
but that was after i already read it
vlad_starkov has joined #ruby
<DanBoy>
so :P
c0rn has quit [Quit: Computer has gone to sleep.]
Methylated has quit [Quit: Leaving.]
<DanBoy>
pickaxe does a top down approach
RichardBaker has joined #ruby
<DanBoy>
you'll be going over OOP stuff and duck typing philosophy if i remember right
vlad_sta_ has quit [Ping timeout: 246 seconds]
<DanBoy>
then the ruby classes
<DanBoy>
stdlib
adambeynon has joined #ruby
vlad_sta_ has joined #ruby
Bry8Star{T2 has joined #ruby
monkegjinni has joined #ruby
Davey has joined #ruby
navyant24 has quit [Quit: navyant24]
jkamenik has quit [Quit: Leaving.]
yfeldblum has joined #ruby
<jrhorn424>
DanBoy: haven't finished pickaxe yet. it's a dense read.
<jrhorn424>
havenwood: that's what i was thinking. a recipe book might not be bad either.
brtdv has quit []
xk_id has joined #ruby
<DanBoy>
ya its about 500 pages i think
<DanBoy>
thats average
vlad_starkov has quit [Ping timeout: 248 seconds]
<DanBoy>
well
<DanBoy>
for recipes you got
<DanBoy>
ruby cook book
<DanBoy>
and the ruby way which is cook book style
<DanBoy>
both are old though
<DanBoy>
2006 i believe
<DanBoy>
using ruby 1.8
theoretick has joined #ruby
<DanBoy>
so some things have changed but ruby cook book was a good read
jarm has quit [Remote host closed the connection]
<jrhorn424>
DanBoy and havenwood thanks for the suggestions. browsing ToCs now.
kofno has joined #ruby
ace_striker has quit [Ping timeout: 250 seconds]
xk_id has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
Cope has left #ruby [#ruby]
flower-pot has quit [Quit: leaving]
nonamehero has quit [Ping timeout: 245 seconds]
mlpinit has quit [Remote host closed the connection]
Czupa has quit [Read error: Connection reset by peer]
bdscvr has joined #ruby
<coca_rails>
What do you guys think of the book Learn to program by Chris Pine?
stringoO has quit [Quit: stringoO]
shadoi has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Remote host closed the connection]
<havenwood>
coca_rails: I've heard it is great for new programmers, nice way to start Ruby, but I haven't read it.
iamjarvo has joined #ruby
<bdscvr>
hi guys I'm in trouble I have ruby 2.0 via rbenv but when I hit ruby -v it returns with 1.9.3
SHyx0rmZ has joined #ruby
shadoi has joined #ruby
<bdscvr>
I have both rbenv init and path in .zshrc
<bdscvr>
but system ruby overrides rbnev ruby
<DanBoy>
coca_rails, is ruby your first language?
<coca_rails>
Yea. Its my first language. I'm a virgin
asobrasil has quit [Read error: Operation timed out]
<coca_rails>
I'm fine with everything up until methods
<DanBoy>
honestly if you had the time i'd start with C but don't do it
c0rn has joined #ruby
ebetancourt has quit [Read error: Operation timed out]
<coca_rails>
I hear so many different things. i hear C or C++, Java, some people say PHP
<MrZYX>
why start with C? how does C teach the concepts of programming better than any language and ruby in particular?
<bdscvr>
anyone here guys?
interactionjaxsn has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
<coca_rails>
MrZYX: I've heard that starting with a low-level language like that makes things more clearer. I dont know though.
ravster has quit [Quit: Leaving.]
interactionjaxsn has joined #ruby
<MrZYX>
coca_rails: ruby is fine first language, in the end it doesn't matter which you pick, so just stay with what you have
<DanBoy>
because C will build a better foundation
iamjarvo has quit [Read error: Connection reset by peer]
<DanBoy>
understanding pointers
<coca_rails>
MrZYX: Whenever i look at complicated syntax it drives me nuts. I'm sure its just a matter of practice and stuff.
dma_ has quit [Remote host closed the connection]
<DanBoy>
memory management
joonty has quit [Quit: WeeChat 0.3.8]
workmad3 has joined #ruby
<MrZYX>
but that are aspects of how a computer works / how C works
<MrZYX>
not how programming works
<DanBoy>
very true
raphaelivan has quit [Quit: Leaving.]
<coca_rails>
MrZYX: Well, for certain I dont want to jump around. Im definitely comfortable with Ruby.
jonr22 has joined #ruby
<coca_rails>
I do wonder if learning a language like C will make me a better programmer and make learning Ruby and other languages significantly easier and better.
<MrZYX>
it won't
<coca_rails>
I dont know though..i'm new to programming altogether
<DanBoy>
for me it did
<bdscvr>
I wish there were a rbenv channel here on freenode but, anyway. Let's go RVM
<DanBoy>
i did C and UNIX API for like 10 years
<DanBoy>
kernel stuff
<DanBoy>
then i went to learn perl and i shit myself
<MrZYX>
C teaches you how to write more efficient programs. But you need to write them in C then
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
<DanBoy>
because its a high level language
jonr22 has quit [Remote host closed the connection]
<coca_rails>
lol
xk_id has joined #ruby
m8 has quit [Quit: Sto andando via]
jonr22 has joined #ruby
<Mon_Ouie>
Well, having learned a programming language will make learning another language easier — but it will take more time to learn C then Ruby rather than just Ruby
<coca_rails>
Why are java developers in such high demand
<MrZYX>
because there's so much java code already
<DanBoy>
MrZYX, is right, programming concepts can continue to any language really
interactionjaxsn has quit [Ping timeout: 240 seconds]
bdscvr has left #ruby [#ruby]
<MrZYX>
for the same reason fortran programmers are still in demand. or cobol programmers
xk_id has quit [Max SendQ exceeded]
<coca_rails>
Yea, i understand that.
<DanBoy>
my main point was C would get you understanding a lot more
Volsus has joined #ruby
<Mon_Ouie>
I think it's mostly a vicious circle — also possibly related to non-programmers making decisions about what programming language to use and such
<DanBoy>
those are for legacy apps
<DanBoy>
fortan and what not
<coca_rails>
yea. i was in that circle for too long
xk_id has joined #ruby
<MrZYX>
sure. A lot more, that just has nothing to do with programming in itself, which IMO is about abstraction and not about how a computer works
kvirani has joined #ruby
myth17 has quit [Remote host closed the connection]
xk_id has quit [Max SendQ exceeded]
samfisher has quit [Quit: exit error code 434]
kvirani_ has quit [Ping timeout: 272 seconds]
cody-- has quit [Quit: derp]
sailias has quit [Quit: Leaving.]
jonr22 has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Remote host closed the connection]
<coca_rails>
Do you feel like a Ruby developer with say 1 year of experience can learn another language such as Java without much headache
<MrZYX>
in fact I think it's easier to learn a high level language first and then something low level like C, you can then focus on the specifics of a low level language, like memory management etc. without worrying about all the general programming concepts along the way
DonRichie has quit [Quit: Verlassend]
<coca_rails>
I guess you answered my question :)
jkhwan has joined #ruby
pedda has joined #ruby
<DanBoy>
i would think it'd be much harder to do that
<DanBoy>
coming from ruby to C
nonamehero has joined #ruby
<DanBoy>
theres so much more manual work to be done in C that a high level lang would never have to do
freerobby has quit [Quit: Leaving.]
<MrZYX>
hm, I see about 3 types of languages, dynamically typed ones like ruby, statically typed like java or C and functional ones. Learning one of each type is a greater effort, then each subsequent ones becomes a lot easier. Learning your first languages is certainly harder than learning a second of different type though
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
<coca_rails>
Can you tell me the difference between a dynamically typed and statically typed language in simple terms
<MrZYX>
still each new language can show you new concepts you often can apply in your day to day language
<DanBoy>
ya that i agree on
<DanBoy>
and yes you can learn C coming from ruby, but my opinion is it may take some time
devoldmx has joined #ruby
<DanBoy>
you can learn anything you want in the end though
Banistergalaxy has joined #ruby
chinychinchin has joined #ruby
<coca_rails>
I like MrZYX approach. I'm that kind of learner.
mmitchel_ has joined #ruby
<DanBoy>
im not saying go learn C
jkhwan_ has quit [Ping timeout: 272 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MrZYX>
coca_rails: in a statically typed language, each variable has a declared type and can only have this type, same goes for method parameters
<coca_rails>
I would need to start with a language that just gets my feet wet, and then one that requires more effort (for lack of better words)
<DanBoy>
i started C when i was 14, i always liked UNIX internals
shanlar has joined #ruby
<DanBoy>
coca_rails, so in C you want a variable you need to declare its type
<MrZYX>
so in ruby you can do: foo = "string"; foo = 134;, for example in Java if you try String foo = "string"; foo = 123; the second assignment would fail because you can't assign an Integer to a String variable
<coca_rails>
That makes sense now that I think about my time with Java
<DanBoy>
unsigned long length;
<coca_rails>
yea it was something like int num = 123
<MrZYX>
yup
<DanBoy>
also C is a compiled language
<coca_rails>
You know, that does make more sense logically.
<coca_rails>
Youre sort of forced to know the details of whats going on in your program.
<coca_rails>
Whereas with Ruby, it's smart. It assumes correctly.
<coca_rails>
I guess for the most part.
mmitchell has quit [Ping timeout: 240 seconds]
<DanBoy>
in ruby you can array << whatever all day
xk_id has joined #ruby
pkrnj has joined #ruby
<coca_rails>
Yea.
<DanBoy>
in a C app you would have to make sure that array never overflows
<Mon_Ouie>
Well, it's actually implemented differently: it's done in a way that it doesn't need to assume anything
sambao21 has quit [Quit: Computer has gone to sleep.]
capicue has joined #ruby
<coca_rails>
What I really like about ruby is being able to call a method right there on the object.
Volsus has quit [Quit: Leaving]
jlast has quit [Remote host closed the connection]
<coca_rails>
like "boon".reverse
mmitchel_ has quit [Ping timeout: 248 seconds]
pwh has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
<Mon_Ouie>
The bad consequence is that it can't assume anything. Static typing can prevent you from trying to do meaningless operations such as adding a string and an integer (in ruby that error will only be caught at runtime)
ldnunes has joined #ruby
monkegjinni has quit [Remote host closed the connection]
pedda has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DanBoy>
coca_rails, ya boon.reverse
<coca_rails>
lol
<DanBoy>
in C you're gunna loop through the char array and reverse it yourself
kofno has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
<coca_rails>
So in C there's no such thing as a mixed-type array?
<DanBoy>
thats why i said i shit myself when i came from years of nothing but C and i learned perl
zipper has joined #ruby
<coca_rails>
..an array consisting of different types of data
<DanBoy>
well
<Mon_Ouie>
In C it would be very unpractical to implement such an array
<DanBoy>
you have the concept of pointers in C
jrhe has quit [Quit: jrhe]
g3orge has quit [Quit: leaving]
amacgregor__ has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<coca_rails>
Can you give me a brief explanation of what a pointer is please
<Mon_Ouie>
Not impossible, just trickier and more confusing to use
<DanBoy>
is a variable that holds the memory address of another variable
jlast has quit [Read error: Operation timed out]
bugsinlights has quit [Quit: Got Milk?]
jonr22 has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
<coca_rails>
So in C does an array consist only of variables that hold memory addresses of other variables?
carlyle has quit []
<DanBoy>
no
jrhe has joined #ruby
<MrZYX>
hm, I've the feeling "another variable" is kinda the wrong term here, value would be more appropriate IMO
Underbyte has quit [Quit: Leaving...]
<coca_rails>
Ok, so an array contains only pointers, right?
<DanBoy>
well *ptr should be the value
nonamehero has quit [Ping timeout: 245 seconds]
<DanBoy>
ptr itself should be the address
elux has joined #ruby
<coca_rails>
And those pointers point to values of different types.
<coca_rails>
Or am I wrong?
<MrZYX>
in C an array is a pointer and the square brackets are just syntax sugar around *(array+sizeof(*array)*n) or whatever it was, but we're getting into details here :P
<DanBoy>
technically its not a real pointer though
shadoi has quit [Ping timeout: 245 seconds]
<coca_rails>
Yea, i love getting into details lol
<Mon_Ouie>
An array is not a pointer in C, it gets converted to a pointer implicitly though
<DanBoy>
you can make it point to another variable
reset has joined #ruby
<DanBoy>
*can't
<MrZYX>
hmkay, I'll go and blame my C teacher
<DanBoy>
it acts like one for sure on a character buffer
<DanBoy>
but since you can't make it point somewhere else its not a real pointer
<Mon_Ouie>
int foo[3]; sizeof(foo) will be => 3 * sizeof(int)
<Mon_Ouie>
But yes, if you try and do pointer arithmetic on it it will act as a pointer on the first element
<DanBoy>
coca_rails, you actually are in a good spot to learn ruby first
zarubin has joined #ruby
<coca_rails>
will that be acceptable
<Mon_Ouie>
Sure, three is fine
<DanBoy>
lots of people are like "WHERES THE DAMN BRACKETS"
mary5030 has quit [Ping timeout: 245 seconds]
<coca_rails>
sweet.
jkline has quit [Quit: jkline]
<Mon_Ouie>
For practical reasons, avoid having too many parameters, because it gets confusing to have many variables being passed around — but 3 should be alright
<coca_rails>
sorry about the newbie questions
lfox has quit [Quit: ZZZzzz…]
<DanBoy>
what book are you reading?
enebo has quit [Quit: enebo]
<coca_rails>
learn to program by chris pine
<coca_rails>
i guess its good. but its kind of boring
<Mon_Ouie>
Do you have any idea of something you'd like to program?
<coca_rails>
i want something more in-depth if that makes sense.
<coca_rails>
The examples are simple enough for me to understand but they dont go into detail about all the cool stuff you can do.
<Mon_Ouie>
Having a pet project helps to go further once you got the basics
<DanBoy>
gotta start from the bottom up dude
<banisterfiend>
coca_rails for Mon_Ouie 's pet project, he wrote a game development library in C with ruby bindings
pwh_ has joined #ruby
RichardBaker has joined #ruby
<banisterfiend>
;)
lurch_ has left #ruby [#ruby]
<coca_rails>
For example its like here is how you write your own method.. def repeat_boo boo puts boo * 2 end
<coca_rails>
yaay
<coca_rails>
next section.
simoz has quit [Ping timeout: 246 seconds]
simoz has joined #ruby
<coca_rails>
i'm like... umm. okay so I GUESS you can do a lot more?
<coca_rails>
lol
pwh has quit [Ping timeout: 240 seconds]
<DanBoy>
thats as simple as it is tho
baordog has quit [Remote host closed the connection]
<DanBoy>
fuck i forgot which book i started with ruby
<DanBoy>
i think it was beginning ruby
<coca_rails>
i mean..it's too simple though.
<DanBoy>
your functions will get more complex
<DanBoy>
oh
<DanBoy>
i see what you want
<DanBoy>
you want more detailed examples right?
b00stfr3ak has quit [Ping timeout: 264 seconds]
<DanBoy>
from the book
<coca_rails>
Yea, exactly.
<DanBoy>
complex examples
bricker has quit [Read error: Connection reset by peer]
<coca_rails>
I want to read something thats more detailed but not a book thats too fast
c0rn has joined #ruby
MrZYX is now known as MrZYX|off
<coca_rails>
In other words.. if this book were filled with more examples (a bigger book) it would be great.
bradhe has quit [Remote host closed the connection]
<DanBoy>
well you gotta start with basic stuff
<coca_rails>
More examples that gradually introduced more complexity i mean
<coca_rails>
It's right there with Desktop Documents Downloads Dropbox Library Movies Music Pictures Public
<DanBoy>
ok
bigoldrock has quit [Remote host closed the connection]
<DanBoy>
in your terminal cd ~/Projects
jonr22 has quit [Remote host closed the connection]
dagnachew has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
<coca_rails>
havenwood: Makes sense now. thanks
<coca_rails>
DanBoy: done
<DanBoy>
then show me ls -al
derebos has joined #ruby
endash_ has quit [Client Quit]
dagnachew has joined #ruby
<coca_rails>
total 0
<coca_rails>
drwxr-xr-x 2 computer staff 68 Oct 30 19:26 .
<coca_rails>
drwxr-xr-x+ 25 computer staff 850 Oct 30 19:26 ..’
<DanBoy>
and run pwd and lemme see it plz
jalcine has quit [Excess Flood]
pierrebonbon has quit [Quit: Page closed]
|jemc| has quit [Ping timeout: 256 seconds]
<coca_rails>
DanBoy: /Users/computer/Projects
<DanBoy>
ok awesome
tvw has quit [Read error: Operation timed out]
<coca_rails>
awesome!
jlast has joined #ruby
<DanBoy>
now
<DanBoy>
inside your projects directory
<DanBoy>
your almost done :P
<coca_rails>
ok
pr0ggie has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<DanBoy>
mkdir learn_to_program
jbpros has quit [Quit: jbpros]
<DanBoy>
thats the name of the book right
pdimitrov has quit [Ping timeout: 272 seconds]
<coca_rails>
directory created.
<coca_rails>
yep, thats it
pr0ggie has joined #ruby
<derebos>
i'm in a situation i can't write in code, there is foo = :hello, {:go => [{:still => {:close => :HERE}}]} , what is the best way to give a path of where you want to set foo value rather than :HERE inside this hash, hashes will be in this format
<DanBoy>
cd into that new directory
nwertman_ has quit [Ping timeout: 245 seconds]
pdimitrov has joined #ruby
<derebos>
what i want to do is : write a method which take a path of where should set value deeper inside in hash based on path
<derebos>
?
<derebos>
should be generic method
maletor has joined #ruby
benzrf has joined #ruby
kenneth has quit [Quit: kenneth]
<benzrf>
hi, im reading why's poignant guide, and i'm just wondering how next & break work in a block...
<benzrf>
do they raise an exception?
<coca_rails>
ok
<coca_rails>
DanBoy: ok done
<DanBoy>
ok
<coca_rails>
DanBoy: youre the best!
<DanBoy>
now you should setup a file for all your examples
<Eiam>
where do any ruby contractors generally look for their next .. contract?
<DanBoy>
run
<DanBoy>
touch sandbox.rb
<coca_rails>
what does touch do
<DanBoy>
just creates a blank file
fredjean has quit [Quit: Computer has gone to sleep.]
pwh has joined #ruby
<coca_rails>
ok.
<coca_rails>
yea its created but it didnt open it
<benzrf>
excuse me
<coca_rails>
dont know if its supposed to
<DanBoy>
ok now open it in sublime
<benzrf>
but can somebody take a moment to answer me
<benzrf>
>.>
<brisbin>
benzrf: why do you think they raise an exception?
pr0ggie has quit [Ping timeout: 240 seconds]
<benzrf>
idk, how else would they work?
<brisbin>
forgive me, but why do you care? it'd be implementation specific anyway
benwoody has quit [Quit: benwoody]
Aryasam has quit [Ping timeout: 272 seconds]
<benzrf>
I mean in blocks
tonni has joined #ruby
<benzrf>
i.e. if I do 5.times {next if something}
pr0ggie has joined #ruby
pdimitrov has quit [Ping timeout: 272 seconds]
tsykoduk is now known as zz_tsykoduk
<brisbin>
it moves to the next iteration if something is truthy
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
yes...
<benzrf>
how does next work here?
<DanBoy>
lemme know when you open that file in sublime
bigoldrock has joined #ruby
swingha has quit [Ping timeout: 260 seconds]
pdimitrov has joined #ruby
<coca_rails>
Done.
<DanBoy>
ok
<brisbin>
benzrf: you want to know the C it's implemented in?
jbpros has joined #ruby
<banisterfiend>
benzrf they raise a kind of exception i think, but it's internal and hidden from ruby
<benzrf>
brisbin: no
<banisterfiend>
benzrf it's called a catch point iirc
<benzrf>
how does the code in Fixnum#times or whatever tell that you did next
dma has joined #ruby
<benzrf>
banisterfiend: ok thanks
<brisbin>
it doesn't, ruby handles it
<banisterfiend>
benzrf but it's an implementation detail
<banisterfiend>
benzrf there's no form of 'exception' that you ever get to know/care about
<brisbin>
Fixnum#times just handles the iterations
dma is now known as Guest13378
<banisterfiend>
and other ruby implementations might work differently
<benzrf>
so i couldnt write my own iterating thing that notices next or break?
<coca_rails>
DanBoy: I have a question about the rubies i have installed
<DanBoy>
add this at the top of the file
<benzrf>
it's magic basically?
jlast has quit [Ping timeout: 272 seconds]
<DanBoy>
#!/usr/bin/env ruby
<coca_rails>
I'm new to the concept of multiple rubies.. and Im not sure which one I'm using / supposed to use / how to use another one?
<brisbin>
benzrf: for the most part. it's a keyword and ruby handles skipping the iteration
<banisterfiend>
benzrf yes, 'break', 'next', 'return', 'redo', etc are all magic as hell
<DanBoy>
don't worry about that
<brisbin>
Fixnum#times just handles the iterations
<coca_rails>
ok
<coca_rails>
done
<banisterfiend>
benzrf 'break' in particular is really weird
<DanBoy>
ok
<DanBoy>
copy this in
<benzrf>
banisterfiend: I mean though
<banisterfiend>
'next' is easy enough
<benzrf>
you can't tell from ruby code if any were called from a block you ran
<benzrf>
so a block acts in every way as though it in the source?
<banisterfiend>
brisbin yeah it's pretty interesting, basically break/return/next/redo are all head fucks if you think about them outside the context of simple iterators
jalcine has joined #ruby
<benzrf>
ok, so break terminates the calling method
<benzrf>
next terminates the block
<DanBoy>
once you do that your 99% done
<brisbin>
it's also hard to play with this in irb since it seems to behave differently there, at least in my attempts
<benzrf>
return terminates the source method
<benzrf>
w8
<coca_rails>
Ok.
<benzrf>
what if you pass a block out of a method, then try to use it , but it has return?
<benzrf>
mindfuck
<banisterfiend>
brisbin cool kids use pry :)
<banisterfiend>
benzrf interesting question
<brisbin>
same issue there, no?
<coca_rails>
DanBoy: what does it mean now thats its an executable?
<benzrf>
this is why I like python
<benzrf>
>:C
<DanBoy>
you can run it without having to do ruby sandbox.rb
<banisterfiend>
benzrf basically it depends in the frame the block closed over is still on the call stack
<coca_rails>
I understand the concept of executable in windows
<banisterfiend>
if it's still on the call stack it'll return from it
<coca_rails>
so how do i run it?
<benzrf>
banisterfiend: urgh
<banisterfiend>
otherwise it'll raise a LocalJumpError
<benzrf>
ok
<DanBoy>
you run it normally as any other command like ls
<banisterfiend>
benzrf that's a serious edge case though, you won't encounter weird shit like that in practice
<DanBoy>
once you chmod +x sandbox.rb
<DanBoy>
then you can run it like this
<DanBoy>
./sandbox.rb
<benzrf>
hn
<DanBoy>
done
<coca_rails>
whats the ./ mean
<DanBoy>
current directory
<DanBoy>
. is current, .. is previous
<banisterfiend>
benzrf what language do u come from?
<coca_rails>
it wont let me run it.
<coca_rails>
im in the directory
<banisterfiend>
brisbin no, it should work fine in pry (and also IRB i imagine)