mikepack has quit [Remote host closed the connection]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
Voodoofish430 has quit [Quit: Leaving.]
bigmac has quit [Ping timeout: 252 seconds]
brianherman has quit [Quit: Leaving]
devoldmx has joined #ruby
banjara has joined #ruby
lewix has quit [Remote host closed the connection]
lewix has joined #ruby
devoldmx3 has quit [Ping timeout: 264 seconds]
tommyvyo has joined #ruby
kho`kho` has joined #ruby
arya has joined #ruby
jasonkuhrt has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
mocfive has quit [Remote host closed the connection]
Z_Mass has quit [Ping timeout: 252 seconds]
bionhart has quit [Remote host closed the connection]
phipes has quit [Quit: phipes]
dhruvasagar has joined #ruby
ged has quit [Quit: WeeChat 0.4.1]
arya has quit [Ping timeout: 248 seconds]
tjbiddle has joined #ruby
bradhe has joined #ruby
ged has joined #ruby
beilabs has quit [Quit: beilabs]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
c0rn has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
tjbiddle has quit [Client Quit]
thomasle_ has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 264 seconds]
dmiller has quit [Remote host closed the connection]
emmanuelux has quit [Quit: emmanuelux]
ttt has joined #ruby
lewix has quit [Remote host closed the connection]
cofin has joined #ruby
slainer68 has quit [Ping timeout: 276 seconds]
Domon has joined #ruby
sleetdrop has joined #ruby
larissa has joined #ruby
thatRD has quit [Quit: thatRD]
bionhart has joined #ruby
slash_quit has quit [Ping timeout: 276 seconds]
benlieb has quit [Quit: benlieb]
jasonkuhrt has quit [Quit: Leaving...]
<joshu>
hi guys
<joshu>
I have a tricky mail gem problem. I'm receiving an email, creating a new Mail object and trying to change the mail.to header and then delivering using mail.deliver
jonathanwallace has quit [Quit: WeeChat 0.4.0]
Michael__ has quit [Remote host closed the connection]
kho`kho` has left #ruby [#ruby]
jonathanwallace has joined #ruby
foo_ has quit [Read error: Connection reset by peer]
pitzips has joined #ruby
failshell has quit [Remote host closed the connection]
Z_Mass has joined #ruby
zeade has joined #ruby
nezumi has joined #ruby
jimg has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
BSaboia has joined #ruby
Emmanuel_Chanel_ has joined #ruby
pitzips has quit [Quit: Leaving]
Michael__ has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
Michael__ has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
arya has joined #ruby
ivanoats has joined #ruby
zeade has joined #ruby
twoism has quit [Remote host closed the connection]
krz has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
krombr has quit [Quit: krombr]
rondale__ has joined #ruby
Senjai has quit [Ping timeout: 256 seconds]
radic_ has joined #ruby
chipotle has quit [Quit: cya]
bigmac has joined #ruby
Michael__ has quit [Remote host closed the connection]
arya has quit [Ping timeout: 264 seconds]
rickruby has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
radic__ has quit [Ping timeout: 264 seconds]
pu22l3r_ has quit [Remote host closed the connection]
newUser1234 has joined #ruby
phipes has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
takeru_ has joined #ruby
rickruby has quit [Ping timeout: 256 seconds]
rickruby has joined #ruby
bigmac has quit [Ping timeout: 246 seconds]
takeru_ has quit [Ping timeout: 256 seconds]
verma has quit [Remote host closed the connection]
rondale__ has quit [Ping timeout: 256 seconds]
newUser1234 has quit [Remote host closed the connection]
_maes_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
<joshu>
I;m getting this error "incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)"
justsee has quit [Ping timeout: 264 seconds]
cyong has joined #ruby
cherrypeel_ has joined #ruby
fridim_ has quit [Ping timeout: 252 seconds]
ppppaul has joined #ruby
cherrypeel has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
ppppaul has quit [Ping timeout: 256 seconds]
<zeade>
i'm not a ruby wizard, but it looks like you can force encoding to utf-8. that doesn't necessarily mean your data is mapped correctly. your best solution is to know (not guess) the source character encoding and convert from that to utf-8. do everything in utf-8, or be sad.
dmiller has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<bnagy>
most encoding things can be fixed by using the magic encoding comment, checking the encoding of the strings involved with #encoding and then forcing, if required
<bnagy>
you can also try #encode if you don't want to force
DanKnox_away is now known as DanKnox
jasonkuhrt has joined #ruby
mmlac-bv_ has quit [Quit: mmlac-bv_]
dmiller has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 252 seconds]
harrymoreno_ is now known as harrymoreno
ivanoats has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 256 seconds]
timkohrumel has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
kenneth has quit [Quit: kenneth]
cherrypeel_ has quit [Quit: Leaving]
kofno has joined #ruby
io_syl has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
splittingred has joined #ruby
justsee has quit [Ping timeout: 246 seconds]
Senjai has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
k_89 has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
Emmanuel_Chanel has joined #ruby
DanKnox is now known as DanKnox_away
philcris_ has quit [Remote host closed the connection]
fwaokda has quit [Ping timeout: 276 seconds]
obs has joined #ruby
_ffio_ has quit [Read error: Operation timed out]
ttt has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
arya has joined #ruby
nuck has quit [Ping timeout: 256 seconds]
tjbiddle has joined #ruby
nuck has joined #ruby
ttt has joined #ruby
wsterling has joined #ruby
dhruvasagar has joined #ruby
cHarNe2 has quit [Ping timeout: 264 seconds]
butblack has joined #ruby
jbueza has joined #ruby
Jedi_SCT1 has quit [Quit: See ya]
arya has quit [Ping timeout: 248 seconds]
katherin1m13 has joined #ruby
Jedi_SCT1 has joined #ruby
katherin1m13 is now known as katherinem13_
Spooner has quit [Quit: Leaving]
BSaboia has quit [Ping timeout: 256 seconds]
dubdromic has quit [Ping timeout: 276 seconds]
mek_ has quit [Quit: leaving]
butblack has left #ruby [#ruby]
arya has joined #ruby
lyanchih has quit [Quit: lyanchih]
_ffio_ has joined #ruby
lewix has quit [Remote host closed the connection]
phipes has quit [Quit: phipes]
mattlankford has joined #ruby
cyong has quit [Remote host closed the connection]
mattlankford has left #ruby [#ruby]
arubin has joined #ruby
io_syl has joined #ruby
mattlankford has joined #ruby
seejohnrun has quit [Ping timeout: 256 seconds]
<joshu>
bnagy zeade I think I have it working, but will have to do some more testing. ;)
ehaliewicz has joined #ruby
wsterling has quit [Remote host closed the connection]
phipes has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
mattlankford has quit [Client Quit]
lyanchih has joined #ruby
mattlankford has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
banghouse has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
mahmoudimus has quit [Client Quit]
cyong has joined #ruby
takeru has joined #ruby
cyong has quit [Max SendQ exceeded]
cyong has joined #ruby
sambao21 has joined #ruby
bhaak has quit [Ping timeout: 276 seconds]
brunoro has quit [Quit: WeeChat 0.3.8]
mumblerit has quit [Ping timeout: 256 seconds]
Jedi_SCT1 has quit [Quit: See ya]
diadara has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Jedi_SCT1 has joined #ruby
ericboehs has joined #ruby
ivanoats has joined #ruby
<ericboehs>
Having a tough time with spanning a condtional across multiple lines. I thought true ||\<new line> would work.
jcromartie has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 246 seconds]
IrishGringo has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
<cads>
I'm trying to dynamically output today's date as part of a speech script I'm writing. I'd like to build a string that uses natural language to describe the date, like "Today is June the fourth."
starscre_ has joined #ruby
akemrir has quit [Client Quit]
<cads>
or rather, "Today is Tuesday, June 4"
starscreamer has quit [Read error: Connection reset by peer]
marsLantern has quit [Quit: marsLantern]
ocnam has joined #ruby
marsLantern has joined #ruby
<cads>
I'm trying to use Date.strptime, but I can't figure out the date format
dmiller has joined #ruby
Zeeraw has joined #ruby
<cads>
I'm trying Date.strptime(Date.today.to_s, '%d-%m-Y') so far, but this doesn't work.
<kernel_panick>
so.. I put fedora repo in my yum repos list.. and I go crazy
ij has joined #ruby
senayar has quit [Remote host closed the connection]
<BryanWB>
postmodern: tks, i find that site confusing to browse but im probably just dumb. will review it
Astralum has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
<Godd2>
Im trying to install the linkparser gem, but it says it can't and it's blaming the pkg-config gem... Any ideas?
timonv has joined #ruby
<ij>
Why were rubygems created? I mean the package manager part, which has been done by so many other people, that it shouldn't be redone, IMO.
<bnagy>
ij: that is an odd point of view
<bnagy>
which package manager is completely cross platform?
dhruvasa1ar has quit [Ping timeout: 252 seconds]
ananthakumaran1 has quit [Ping timeout: 252 seconds]
harrymoreno has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
<r0bgleeson>
ij: like bnagy said, repackaging for different operating systems sucks, and the entire ruby ecosystem is built on rubygems. it is a massive +1 for ruby.
<airtonix>
postmodern: that looks like a big improvement on the whole situation
<r0bgleeson>
you have to package it as a deb, RPM, what about windows? what about OSX?
<r0bgleeson>
how to install a library from there?
<r0bgleeson>
manually?
<r0bgleeson>
how do i manage dependencies?
<ij>
With a package manager.
<r0bgleeson>
what package manager? windows doesnt have one. neither does OSX. and as a developer, I have to package it for *each* package manager.
<r0bgleeson>
thats a shit solution
gildo has quit [Ping timeout: 256 seconds]
<ellipse>
Bundler can install dependencies now.
<r0bgleeson>
how can I build something like bundler with OS package manager?
<ij>
No, you don't. Forget about system's package manager, it doesn't matter.
<ellipse>
(sort of)
<r0bgleeson>
ij: how don't I?
<r0bgleeson>
ij: tell me how I distribute my library to multiple platforms
<r0bgleeson>
with your solution
<ij>
I was about to.
<r0bgleeson>
go for it
<r0bgleeson>
and no, ruby libraries are not universal either.
<ij>
(I'm not speaking about cross platform, currently — that can be archieved later).
tonini has joined #ruby
<r0bgleeson>
tell me how to achieve it
<ij>
Why couldn't you use existing package manager, that you'd install with, say rvm, but it would be something that already exists. For example pacman or emerge, but run it in userland.
s1n4 has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
<bnagy>
they both do run in userland
robwilliamsuk has joined #ruby
<bnagy>
but cross platform is not an afterthought, it's a hard requirement
<bnagy>
you need to solve that front up
benlieb has quit [Quit: benlieb]
<bnagy>
or stop talking
<Godd2>
ANyone else know how to install the linkparser gem?
akemrir has joined #ruby
<bnagy>
Godd2: try pasting actual error output with gist or pastie etc
<ij>
bnagy, I'm not saying we should use something not-cross-platfor. I'm speaking about interface currently.
harrymoreno has joined #ruby
<r0bgleeson>
you want to re-use an existing package manager but why? you'd need to port it to each platform. rubygems runs where ruby runs.
camilasan has quit [Remote host closed the connection]
<bnagy>
Godd2: but you need to make sure it is installed and working propery - there are docs on the RubyInstaller site
<r0bgleeson>
ij: yeah you could write a layer around it, are you familiar with a Gemfile? it is a manifest that specifies the dependencies for your application, and it enforces a sandbox around those dependencies when your application is loaded (so you can't require something not in the manifest/gemfile, and versions are locked)
pkrzywicki has joined #ruby
<r0bgleeson>
ij: can you imagine doing that with pacman
<Godd2>
"make sure it's working properly". I can install gems and run ruby programs. Is that not enough?
<bnagy>
Godd2: no, it's not.
<ij>
I am familiar, yes.
maverick9 has joined #ruby
<bnagy>
you're trying to build a "native gem" which is a gem that has C source that needs to be compiled
Jackneill has joined #ruby
camilasan has quit [Ping timeout: 252 seconds]
<bnagy>
Godd2: whereas most gems are just ruby. So, you might never have tried to use DevKit before
<ij>
r0bgleeson, Well, apcman would just install packages, linking to those packages shouldn't be too hard from bundler. And you can have sort-of package namespaces, if you point to a different package database.
<ij>
r0bgleeson, I belive it wouldn't be too different.
<Godd2>
oh I see
<r0bgleeson>
ij: yeah that could work, but now you need pacman to run on something that's not arch
<r0bgleeson>
ij: how will you do that
<ij>
r0bgleeson, doable
<ij>
pacman just uses arch pkgs, but it's a completely seperate tool.
<Godd2>
ah, so since I never installed and Devkit, I can't compile native gems
<bnagy>
actually you need it to run on everything that's not arch
<Godd2>
got it. THank you :)
<bnagy>
so good luck porting pacman to, say, java
<bnagy>
and windows
<ij>
Why would you need to do that?
<bnagy>
well gem works with jruby
<ij>
I think you're a bit off.
lkba has quit [Ping timeout: 240 seconds]
harrymoreno has quit [Ping timeout: 252 seconds]
<bnagy>
so your magic "it's all so easy" package manager needs to run everywhere java runs as well
<ij>
gem shouldn't care what's in the packages
<ij>
Your point being: if we use ruby, we need it everywhere, where ruby can run, no less, no more.
<ij>
Valid point, I agree.
cortes has joined #ruby
marr has joined #ruby
harrymoreno has joined #ruby
<bnagy>
for all ruby interpreters
<ij>
Myeah, I still feel like there are too many package managers.
<bnagy>
you're right. You should get all linux distros to standardise on one
cj3kim has joined #ruby
<bnagy>
and come back and fix ruby when you've done that
<ij>
Yea.
<r0bgleeson>
hah
devdazed has quit [Ping timeout: 264 seconds]
<ij>
I liked this convo.
<ij>
Thank you for elaborating.
<ij>
(I hope that's the word.)
lewis has quit [Remote host closed the connection]
harrymoreno_ has joined #ruby
avril14th has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
harrymoreno_ is now known as harrymoreno
jbueza has quit [Quit: Leaving.]
<Godd2>
alright bnagy, I installed the DevKit and did their little json test and it worked, but installing the linkparser gem yielded the same exact error to the letter
girija has quit [Ping timeout: 252 seconds]
ellipse has quit [Read error: Connection reset by peer]
ellipse has joined #ruby
nari has quit [Ping timeout: 240 seconds]
<bnagy>
with platform=ruby right?
<Godd2>
yes
<bnagy>
also for linkparser?
<Godd2>
gem install linkparser --platform=ruby
<bnagy>
ok
<bnagy>
ok well then I don't know :)
ellipse has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby
<Godd2>
lol k thanks for your help anyway :)
cj3kim has quit [Ping timeout: 245 seconds]
ellipse has joined #ruby
<Godd2>
maybe I need to screw around with pointing to headers in the pkg-config gem?
<bnagy>
I use jruby for all windows stuff, because there's no 64 bit mri anyway
<bnagy>
and avoid native gems, for that reason
Iszak has joined #ruby
rdark has joined #ruby
mikecmpbll has joined #ruby
<r0bgleeson>
yeah, jruby seems to work really well on windows
camilasan has joined #ruby
<bnagy>
Godd2: you can read the mkmf.log file it points you at, that might shed some light
banjara has quit [Max SendQ exceeded]
<Godd2>
find_executable: checking for pkg-config... -------------------- no --------------------
harrymoreno has quit [Ping timeout: 264 seconds]
<Godd2>
thats all there is
harrymoreno has joined #ruby
banjara has joined #ruby
<bnagy>
well you could try and gem install it, but it would be odd
monomyth has quit [Read error: Operation timed out]
monomyth has joined #ruby
devdazed has joined #ruby
<Godd2>
pkg-config is installed as a gem already
<Godd2>
do I have to turn it into a binary or something...?
<bnagy>
don't know :/ I always used to do rubyinstaller then devkit etc before I started doing _anything_
ellipse has quit [Read error: Connection reset by peer]
asdf__ has quit [Quit: Page closed]
cortes has quit [Remote host closed the connection]
ellipse has joined #ruby
<bnagy>
but I can't think of anything that would let you compile some native gems but not others
chichou_ has joined #ruby
tk_ has joined #ruby
<r0bgleeson>
bnagy: if rubinius ran on windows would you give it a try?
ellipse has quit [Read error: Connection reset by peer]
elliptical has joined #ruby
<bnagy>
:/ I kind of married jruby this year
<bnagy>
I have a ton of stuff now using java bits
b0oh has joined #ruby
LennyLinux has joined #ruby
cortes has joined #ruby
<bnagy>
also it would need to not just run but have a good FFI implementation
<bnagy>
all my windows work is very low level
elliptical has quit [Read error: Connection reset by peer]
ellipse has joined #ruby
pi3r has joined #ruby
lyanchih has joined #ruby
<r0bgleeson>
bnagy: yeah, there was talk of a windows port a while ago but i don't think there's the manhours or interest behind it right now
jasonkuhrt has joined #ruby
<r0bgleeson>
my brothers are learning ruby on windows and they're using jruby to do it
ellipse has quit [Read error: Connection reset by peer]
<r0bgleeson>
easiest option
<bnagy>
yeah.. tbh there are very few of us writing windows specific code
ellipse has joined #ruby
ellipse has quit [Read error: Connection reset by peer]
<r0bgleeson>
yeah, definitely
<r0bgleeson>
how does ironruby fair?
<bnagy>
dead
<r0bgleeson>
heh
<r0bgleeson>
yeah too bad :(
ellipse has joined #ruby
nari has joined #ruby
ellipse has quit [Read error: Connection reset by peer]
<bnagy>
if it lived I would have at least considered mono etc for xplatform
<bnagy>
but as is - java
<bnagy>
cause ironruby also had nice COM hooks
ellipse has joined #ruby
<r0bgleeson>
i think MS decided on javascript as their dyn lang
nomenkun has joined #ruby
Neomex has joined #ruby
<bnagy>
C#!
chichou_ has quit [Remote host closed the connection]
<r0bgleeson>
doesn't JS have a big role in the new metro stuff?
jasonkuhrt has quit [Ping timeout: 245 seconds]
skasio_ has joined #ruby
<bnagy>
don't know
skasio_ has quit [Client Quit]
bionhart has quit [Remote host closed the connection]
jezi22 has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 264 seconds]
ffio has joined #ruby
_ffio_ has quit [Ping timeout: 264 seconds]
maverick9 has quit [Quit: Leaving]
hamakn has joined #ruby
kil0byte has joined #ruby
Trivol has joined #ruby
DaniG2k has quit [Quit: Leaving.]
<seoaqua>
ellipse, thanks, but i don't quite understand. return value from whom?
<ellipse>
pkill -x -0
jasonkuhrt has quit [Ping timeout: 245 seconds]
<seoaqua>
ellipse, and is there a gem to do this for me? e.g. write a protected /tmp/somthing.lock
paranoidsp has quit [Ping timeout: 252 seconds]
Trivol has left #ruby [#ruby]
harrymoreno has quit [Ping timeout: 256 seconds]
lyanchih_ has quit [Quit: lyanchih_]
<marwinism>
uhm, I'm trying to get several rows from a postgres database, put all of the results in a hash, turn the hash into a json-object, but my brain went kinda afk. - Anyone got anything?
kil0byte_ has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
harrymoreno has joined #ruby
<apeiros>
marwinism: the way you ask makes it sound as if you wanted us to do your work
<Kar->
jmaister: in house bespoke
<apeiros>
if you don't want to come across that way, you'd better state where you're stuck
<Kar->
that answers that :)
lyanchih has joined #ruby
<jmaister>
As I presumed :)
<marwinism>
apeiros: hehe, sure! https://gist.github.com/marwinism/5705293 - Been staring at the screen all day now, not sure what i'm thinking and doing anymore. That's what I got at my lasst try..
<marwinism>
last*
emergion has joined #ruby
mikecmpbll has joined #ruby
rblackwe has joined #ruby
Ortuna has joined #ruby
moos3 has joined #ruby
<apeiros>
marwinism: uff…
<apeiros>
marwinism: if you want all results in a *hash*, you need a key by which to organize the records
<apeiros>
your code is completely broken - you iterate over all rows and only keep the last
monkegjinni has joined #ruby
<apeiros>
and then you iterate over your empty hash (i.e., you do nothing) and do… no idea what
<marwinism>
apeiros: tell me about it ^^
<apeiros>
and puts @hash after a return statement makes no sense either
<apeiros>
s/@hash/hash/
<marwinism>
It's totally random. Just trying to get something out somewhere.
tonini has joined #ruby
<Spooner>
As usual, you need to tell us what you are trying to achieve (not how you think you should implement it).
<apeiros>
ok, can't help with totally random
<apeiros>
well, can: puts rand
<apeiros>
there.
<marwinism>
haha xD
ldnunes has joined #ruby
verto has joined #ruby
<tobiasvl>
there's missing some code here… what's string?
<apeiros>
"all rows" is either an array of rows, or it's a hash of <some key you have to define> => row pairs
Giorgio has quit [Ping timeout: 252 seconds]
<tobiasvl>
also, remember to indent your code correctly ;)
<marwinism>
Well, I'm trying to list out ALL userID's. Need to get them with JSON. Can I go with the same key:different value?
<ellipse>
seoaqua: tmpfile?
<ellipse>
(Sorry, phone.)
Ortuna has quit [Quit: Computer has gone to sleep.]
<tobiasvl>
marwinism: well, you're overwriting @var with every new userid?
fschuindt has quit [Quit: Computer has gone to sleep.]
blaxter_ has joined #ruby
io_syl_ has joined #ruby
sambao21 has joined #ruby
kernel_panick has quit [Quit: Leaving]
io_syl has quit [Read error: Connection reset by peer]
mikewintermute has joined #ruby
bionhart has joined #ruby
sivoais has quit [Read error: Connection reset by peer]
sambao21 has quit [Read error: Operation timed out]
mikewintermute has quit [Client Quit]
guiocavalcanti has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit:]
guiocavalcanti has joined #ruby
tommyvyo has joined #ruby
cmarques has joined #ruby
gildo has joined #ruby
gildo has quit [Read error: Connection reset by peer]
mroth has quit [Quit: Connection closed for inactivity]
sivoais has joined #ruby
kiwnix has joined #ruby
freeayu has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
guiocavalcanti has quit [Ping timeout: 264 seconds]
jjasonclark has joined #ruby
vlad_starkov has joined #ruby
dr_bob has quit [Quit: Leaving.]
harrymoreno_ has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 276 seconds]
girija has joined #ruby
apeiros has joined #ruby
Hanmac has joined #ruby
harrymoreno has joined #ruby
foxiness_ has joined #ruby
sivoais has quit [Ping timeout: 248 seconds]
foxiness has quit [Ping timeout: 251 seconds]
foxiness_ is now known as foxiness
yashshah_ has joined #ruby
Elico has quit [Quit: Elico]
wallerdev has quit [Quit: wallerdev]
JumpMast3r has joined #ruby
DomKM1 has joined #ruby
wallerdev has joined #ruby
defa has joined #ruby
DomKM has quit [Read error: Connection reset by peer]
farn has joined #ruby
dmiller has joined #ruby
oddraisin has quit [Quit: Lost terminal]
vlad_starkov has quit [Ping timeout: 256 seconds]
guiocavalcanti has joined #ruby
oddraisin has joined #ruby
BadDesign has quit [Read error: Connection reset by peer]
guiocavalcanti has quit [Remote host closed the connection]
<defa>
hey folks, I'm very new to ruby. I ran gem install bundler. I got Successfully installed bundler 1.3.5, 1 gem installed. Then I ran bundle install and I got Bundler::GemfileNotFound
bhaak has joined #ruby
sivoais has joined #ruby
lyanchih has quit [Quit: lyanchih]
yashshah has quit [Ping timeout: 276 seconds]
BSaboia has quit [Ping timeout: 264 seconds]
<defa>
what should I do? What am I missing?
jdunck has quit [Quit: Computer has gone to sleep.]
<Spooner>
You need a configuration file, Gemfile, to use Bundler.
stkowski has joined #ruby
<Spooner>
Otherwise bundler doesn't know what to install!
Xeago has joined #ruby
carloslopes has joined #ruby
<defa>
you mean i need to run vi Gemfile?
<Spooner>
What are you actually trying to do with Bundler? Well, that is one way to create a Gemfile. It is just a Ruby source file (plain text).
DaniG2k has quit [Quit: Leaving.]
<defa>
I'm following an instruction on our team's portal so I can get started with the development
mikewintermute has joined #ruby
<defa>
the first instruction is to install Ruby and I have it. Then next was to run gem install bundler
<MrZYX>
so you got an existing project to work with?
<defa>
I have the code now on my home dir
<defa>
i git cloned it
<seitensei>
Yeah, go into the directory
<seitensei>
if there's a gemfile in there, just run the bundle command there
<defa>
I also see a .gem directory under my homedir
<seitensei>
Don't worry about that for now
<defa>
however, I put the code under /users/neil/repos
mahmoudimus has joined #ruby
atyz has quit [Quit: Leaving...]
<Spooner>
No, you bundle install in the application directory, to install all dependencies.
bradhe has joined #ruby
<defa>
yeah, I see a Gemfile in /users/neil/repos
<Spooner>
Gemfile essentially lists dependencies (gem libraries and their versions) for a project, so allowing you to install them all automatically.
<seitensei>
Go there and run the bundle command
saarinen has joined #ruby
<seitensei>
bundle install, and then it should work
<defa>
i opened the Gemfile and I am seeing like 11 lines of code
obs has quit [Quit: Konversation terminated!]
<defa>
ok
mercwithamouth has joined #ruby
<defa>
running it now
<seitensei>
Don't have to open the gemfile
<seitensei>
just run bundle install in the same directory
bionhart has quit [Remote host closed the connection]
corrito has quit [Max SendQ exceeded]
<Spooner>
Oh, the reason, I suspect, that there is a syntax error, is that the Gemfile is for Ruby 1.9+, but you are using the old (pretty much deprecated) 1.8.7 (the syntax changed slightly).
senayar has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<Spooner>
Yeah, some people like RVM, others rbenv and others chruby. All do the same(ish) thing.
robscomputer has quit [Read error: Connection reset by peer]
mikewintermute has joined #ruby
robscomputer_ has quit [Ping timeout: 264 seconds]
mikewintermute has quit [Client Quit]
robscomputer has joined #ruby
<defa>
cool
<seitensei>
You will want to install one or the other if you intend on playing with ruby a lot- manages different versions, so you can easily install different versions of ruby and switch between easily
Giorgio has quit [Read error: Operation timed out]
<Spooner>
Renich, I forgot to actually symbolise the keys there. I'm sure you can guess where to do that ;)
timonv has quit [Remote host closed the connection]
ravster has joined #ruby
<UNIXgod>
interactionjaxsn: !
ybart has joined #ruby
<Renich>
Spooner: yeah, thanks a lot! gotta read that slowly so I can understand
takeru has joined #ruby
<interactionjaxsn>
UNIXgod: is dean a tool?
dhruvasagar has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
<UNIXgod>
interactionjaxsn: lol
* interactionjaxsn
bows to UNIXgod
<Spooner>
Renich, Well, the problem before Ruby 2.0 is that Hash#map creates an array of 2-element arrays, so the Hash[] is converting it back to a Hash. In case that bit wasn't obvious.
Spami has quit [Quit: This computer has gone to sleep]
<Renich>
Spooner: the final version with your recommendations: http://ur1.ca/e6mdk
<zphobic>
Spooner: Oh! What does Ruby 2.0 do?
johnrlive has quit [Remote host closed the connection]
<Spooner>
zphobic, It maps to a new Hash.
aqil has joined #ruby
mikewintermute has joined #ruby
camilasan has quit [Remote host closed the connection]
wolcanus has joined #ruby
<Mon_Ouie>
Really? can't seem to reproduce that
<interactionjaxsn>
Renich: def load(filename) symbolize_keys YAML::load_file( filename ) end
<Spooner>
Renich, Other than to use . rather than :: in those, it seems fine ;)
<zphobic>
Aight, makes sense. I wonder if Array() still turns a hash into an array of 2-element arrays, rather than wrapping it in an array like every other type.
<Mon_Ouie>
Array(…) uses #to_a when available
aqil has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
takeru has quit [Ping timeout: 252 seconds]
mikewintermute has quit [Client Quit]
<Hanmac>
Mon_Ouie: thats the different between select and find_all
<Renich>
Thanks a lot guys; the script seems more ruby-like already! ;=)
<Mon_Ouie>
e.g. Array(1..20) != [1..20]
breadtk_ is now known as breadtk
Zeeraw has quit [Quit: Computer has gone to sleep.]
khushildep has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
harrymoreno has quit [Read error: Operation timed out]
<zphobic>
Mon_Ouie: Ah, you're saying I could just define Hash.to_a to return [hash] rather than [[k,v],[k,v],...].
harrymoreno has joined #ruby
ffranz has quit [Quit: Leaving]
<Spooner>
zphobic, You'd be breaking things if you did that.
<Mon_Ouie>
No, I'm just saying it returns that array because of #to_a
<Mon_Ouie>
It's not a special case
c0rn has joined #ruby
gumtee has quit [Quit: Leaving]
mrsolo has joined #ruby
<Spooner>
I was convinced that Hash#map returned a Hash in the latest version. No idea where I got that idea from...
sepp2k has joined #ruby
<Hanmac>
Spooner: it was the select vs find_all
pinpin404 has joined #ruby
devoldmx3 has quit [Ping timeout: 245 seconds]
<zphobic>
Mon_Ouie: Fair enough. In some of my code I take arbitrary method arguments and use Array() on them, which means I have to special-case Hash as above whenever I use Array().
<Spooner>
Hanmac, Right, OK. How very odd!
<zphobic>
Bad code smell and all that. Maybe I should define a wraparound ArrayEvenForHashes(), heh heh.
<Spooner>
zphobic, Only because you don't want the behaviour of Array() then.
devoldmx has joined #ruby
<Mon_Ouie>
You have the same problem with any class that implements Enumerable really
Cultofmetatron has joined #ruby
<zphobic>
Spooner: But it's *exactly* what I want EXCEPT for hashes.
<zphobic>
OK, Enumerables. I've only run into the problem with hashes.
<Mon_Ouie>
def Array(x); if x.respond_to? :to_a then x.to_a else [x] end; end (plus some typechecks, etc.)
ffranz has joined #ruby
wolcanus has quit [Ping timeout: 252 seconds]
<Mon_Ouie>
If you don't want that, you should write one that actually checks if the object is an Array
c0rn has quit [Client Quit]
<zphobic>
Right. I might just define ArrayWrapper(x); if x.is_a?(Array) ? x : [x]; end
johnrlive has joined #ruby
LennyLinux has joined #ruby
c0rn has joined #ruby
workmad3 has joined #ruby
headius has quit [Quit: headius]
supergiantrobot has quit [Ping timeout: 245 seconds]
atyz has joined #ruby
yann_ck has quit [Quit: Computer has gone to sleep.]
robscomputer_ has joined #ruby
supergiantrobot_ has joined #ruby
DestinyAwaits has quit [Quit: Leaving]
Trynemjoel has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robscomputer has quit [Ping timeout: 248 seconds]
saarinen has joined #ruby
mklappstuhl has joined #ruby
ybart has quit [Quit: ybart]
rupee has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
headius has joined #ruby
mocfive has joined #ruby
ybart has joined #ruby
gyre007 has quit [Remote host closed the connection]
x1337807x has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
mmlac-bv has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
sc4les has joined #ruby
Al_ has quit [Quit: Al_]
<sc4les>
Hi
kil0byte has quit [Remote host closed the connection]
yannis has joined #ruby
niklasb has joined #ruby
Dummies_freelanc has joined #ruby
ybart has quit [Client Quit]
sc4les has quit [Client Quit]
Jedi_SCT1 has quit [Quit: See ya]
rickruby has joined #ruby
jbpros has joined #ruby
gasbakid_ has quit [Quit: Quitte]
Jedi_SCT1 has joined #ruby
<zphobic>
Well... ArrayWrapper(x); if x.is_a?(Array) ? x.dup : [x]; end
<Mon_Ouie>
Notice Array(x).equal? x :p
superscott[8] has joined #ruby
niklasb has quit [Ping timeout: 276 seconds]
kiwnix has quit [Ping timeout: 264 seconds]
jbpros has quit [Read error: Connection reset by peer]
<zphobic>
Oh, so what's the difference between Object and BasicObject in 2.0?
travisjeffery has joined #ruby
<zphobic>
I guess BasicObject has almost no functionality.
jbpros has joined #ruby
girija has joined #ruby
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
jonathanwallace has joined #ruby
beiter has joined #ruby
mikepack has joined #ruby
bamdad has joined #ruby
<Mon_Ouie>
Yes, it has only !=, ==, equal?, !, __send__, __id__, and instance_(eval|exec)
<apeiros>
and constant lookup only works with absolute constants
<apeiros>
(::Array e.g. instead of just Array)
nplusp has quit [Read error: Connection reset by peer]
<alex88>
hi guys, is possible that in yaml "something: _string", becomes just 'string'?
jbpros has quit [Read error: Connection reset by peer]
<zphobic>
Wait, so in which contexts should absolute constants be used, besides constant passing to BasicObject?
Banistergalaxy has quit [Ping timeout: 245 seconds]
<apeiros>
not constant *passing*
razi has quit [Quit: Leaving.]
<apeiros>
constant *use*, within BasicObject
<apeiros>
you never *pass* constants anyway, as you can't pass *variables* in ruby. you always always always only pass objects.
<apeiros>
(and blocks)
wesside has quit [Quit: Ice cream truck!]
Banistergalaxy has joined #ruby
<zphobic>
Sure.
akells` has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
Cultofmetatron has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
elaptics is now known as elaptics`away
jrajav has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
<lectrick>
1) Has anyone written a REST API and 2) how do you communicate versions? (other than the URL versioning scheme, say you have a minor version change that might require web clients of the API to reload?)
danslo has joined #ruby
slainer68 has joined #ruby
alvaro_o has joined #ruby
chrishough has joined #ruby
alecdhuse has quit [Quit: Page closed]
guns has joined #ruby
becom33 has joined #ruby
becom33 has joined #ruby
pskosinski has joined #ruby
mikepack has joined #ruby
workmad3 has joined #ruby
Inoperabled is now known as Inoperable
slainer68 has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 252 seconds]
michaelmartinez has joined #ruby
Inoperable has quit [Excess Flood]
marcgg_ has joined #ruby
yxhuvud2 has joined #ruby
chichou_ has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
adkron_ has joined #ruby
cherrypeel has joined #ruby
mahmoudi_ has joined #ruby
Y_Ichiro_ has joined #ruby
Y_Ichiro_ has joined #ruby
Y_Ichiro_ has quit [Changing host]
banghouse has quit [Remote host closed the connection]
SegFaultAX_ has joined #ruby
riku- has joined #ruby
fumduq- has joined #ruby
mahmoudimus has quit [Ping timeout: 264 seconds]
tobiasvl_ has joined #ruby
huoxito has joined #ruby
pothibo has quit [Quit: pothibo]
kpwz_ has joined #ruby
Caelum_ has joined #ruby
girija has left #ruby ["Ex-Chat"]
cout_ has joined #ruby
sweeper_ has joined #ruby
prophile_ has joined #ruby
dross_ has joined #ruby
classix has quit [Disconnected by services]
girija has joined #ruby
bricker`1ork has joined #ruby
epta_ has joined #ruby
awc737_ has joined #ruby
hoelzro_ has joined #ruby
bricker`1ork is now known as bricker
classix has joined #ruby
ioNull has quit [Ping timeout: 245 seconds]
nplusp has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
LennyLinux has quit [Remote host closed the connection]
Caldrin_ has joined #ruby
avril14th has quit [Excess Flood]
duper_ has joined #ruby
mahmoudimus has joined #ruby
woolite64_ has joined #ruby
chiel_ has joined #ruby
kleinerdrache has joined #ruby
jinie_ has joined #ruby
Retistic has quit [Quit: Retistic]
donkonstante has joined #ruby
k-man_ has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
katherin1m13 has joined #ruby
brian`_ has joined #ruby
ioNull has joined #ruby
jetblack_ has joined #ruby
mahmoudi_ has quit [Ping timeout: 252 seconds]
ioNull has quit [Max SendQ exceeded]
ColKurtz_ has joined #ruby
interactionjaxsn has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
sixtenei1hty has joined #ruby
Caelum has quit [Disconnected by services]
Caelum_ is now known as Caelum
tris has joined #ruby
graydot has quit [Quit: graydot]
Todd has quit [Ping timeout: 245 seconds]
epochwolf|2 has joined #ruby
epochwolf|2 has quit [Changing host]
epochwolf|2 has joined #ruby
jphpsf- has joined #ruby
seich| has joined #ruby
ioNull has joined #ruby
cj3kim has joined #ruby
Inoperable has joined #ruby
SegFaultAX has quit [Ping timeout: 264 seconds]
drastic has quit [Ping timeout: 264 seconds]
jinie has quit [Ping timeout: 264 seconds]
joshu has quit [Ping timeout: 264 seconds]
yxhuvud has quit [Ping timeout: 264 seconds]
marcgg has quit [Ping timeout: 264 seconds]
F1skr has quit [Ping timeout: 264 seconds]
adkron has quit [Ping timeout: 264 seconds]
heidar has quit [Ping timeout: 264 seconds]
SegFaultAX_ is now known as SegFaultAX
jphpsf has quit [Ping timeout: 264 seconds]
kpwz has quit [Ping timeout: 264 seconds]
sweeper has quit [Ping timeout: 264 seconds]
jprovazn has quit [Ping timeout: 264 seconds]
sideshowcoder has quit [Ping timeout: 264 seconds]
<Eiam>
well I'm happy that you and I both said the same thing =)
sambao21 has joined #ruby
girija has joined #ruby
Todd has joined #ruby
Dekade has joined #ruby
fmcgeough has joined #ruby
ishe has quit [Ping timeout: 264 seconds]
jokke has joined #ruby
mrmist has quit [Remote host closed the connection]
ioNull has quit [Max SendQ exceeded]
dayepa has joined #ruby
Apocalypse has joined #ruby
ryan_turner has joined #ruby
mrmist has joined #ruby
jprovazn has joined #ruby
graydot has joined #ruby
aboudreault has joined #ruby
wmoxam_ has joined #ruby
sambao21 has quit [Client Quit]
failshel_ has joined #ruby
interactionjaxsn has quit [Ping timeout: 248 seconds]
jlast has quit [Ping timeout: 248 seconds]
tris has joined #ruby
coreinfo99 has joined #ruby
heidar has joined #ruby
juarlex_ has joined #ruby
twoism_ has joined #ruby
Voodoofish4301 has joined #ruby
sideshowcoder has joined #ruby
slainer68 has joined #ruby
ioNull has joined #ruby
kevinykc_ has joined #ruby
wolcanus has joined #ruby
chandankumar` has quit [Quit: Leaving]
vlad_starkov has joined #ruby
toddWork__ has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
jbueza1 has joined #ruby
Coolhand_ has joined #ruby
jbueza1 has quit [Client Quit]
jayne_ has joined #ruby
harrymoreno_ has joined #ruby
phipes has quit [Write error: Broken pipe]
b0oh has quit [Quit: Leaving.]
AdmiralKosh has joined #ruby
girija has quit [Ping timeout: 252 seconds]
rezzack has joined #ruby
lsone_ has joined #ruby
skasio_ has joined #ruby
Anarch__ has joined #ruby
CaptainK1ots has joined #ruby
casheew_ has joined #ruby
halfie_ has joined #ruby
multi_io_ has joined #ruby
Rennex_ has joined #ruby
arr__ has joined #ruby
oddraisi1 has joined #ruby
angelixd has joined #ruby
Corey_ has joined #ruby
akells` has joined #ruby
Coolhand_ has quit [Changing host]
Coolhand_ has joined #ruby
jamesaxl has quit [Excess Flood]
wereHams1er has joined #ruby
rezzack has quit [Changing host]
rezzack has joined #ruby
Emmanuel_Chanel_ has joined #ruby
bubbajoness has joined #ruby
halfie_ has quit [Changing host]
halfie_ has joined #ruby
moopasta_ has joined #ruby
jaredrhine_ has joined #ruby
monomyth_ has joined #ruby
wting_ has joined #ruby
phipes has joined #ruby
kirun has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
<Eiam>
I've noticed we (internally) have been moving all our stuff away from Rails & Couch etc and moving towards lighter weight Sinatra + Redis, trying to lighten the stack up a bit I guess
kevinykchan has quit [Ping timeout: 252 seconds]
jfelchner has quit [Ping timeout: 252 seconds]
Guest85414_ has quit [Ping timeout: 252 seconds]
Guest85414__ has joined #ruby
sambao21 has joined #ruby
halfie has quit [Ping timeout: 252 seconds]
rcs has quit [Ping timeout: 252 seconds]
drastic has quit [Ping timeout: 252 seconds]
Voodoofish430 has quit [Ping timeout: 252 seconds]
nimor has quit [Ping timeout: 252 seconds]
wmoxam has quit [Ping timeout: 252 seconds]
arr_ has quit [Ping timeout: 252 seconds]
skasio has quit [Ping timeout: 252 seconds]
joast has quit [Ping timeout: 252 seconds]
toddWork_ has quit [Ping timeout: 252 seconds]
guilleiguaran_ has quit [Ping timeout: 252 seconds]
halfie_ is now known as halfie
casheew has quit [Ping timeout: 252 seconds]
lsone has quit [Ping timeout: 252 seconds]
slightair has quit [Ping timeout: 252 seconds]
harrymoreno has quit [Ping timeout: 252 seconds]
prophile_ has quit [Ping timeout: 252 seconds]
jrajav has quit [Ping timeout: 252 seconds]
CaptainKnots has quit [Ping timeout: 252 seconds]
twoism has quit [Ping timeout: 252 seconds]
oddraisin has quit [Ping timeout: 252 seconds]
jbueza has quit [Ping timeout: 252 seconds]
failshell has quit [Ping timeout: 252 seconds]
DonRichie has quit [Ping timeout: 252 seconds]
sumark has quit [Ping timeout: 252 seconds]
jwest has quit [Ping timeout: 252 seconds]
wereHamster has quit [Ping timeout: 252 seconds]
angelixd_ has quit [Ping timeout: 252 seconds]
multi_io has quit [Ping timeout: 252 seconds]
wting has quit [Ping timeout: 252 seconds]
crankycoder has quit [Ping timeout: 252 seconds]
Guest9315 has quit [Ping timeout: 252 seconds]
three18ti has quit [Ping timeout: 252 seconds]
Rennex has quit [Ping timeout: 252 seconds]
Dekade has quit [Ping timeout: 252 seconds]
Anarch has quit [Ping timeout: 252 seconds]
atmosx has quit [Ping timeout: 252 seconds]
juarlex has quit [Ping timeout: 252 seconds]
monomyth has quit [Ping timeout: 252 seconds]
filipe_ has quit [Ping timeout: 252 seconds]
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
Hanmac2 has quit [Ping timeout: 252 seconds]
joonty has quit [Ping timeout: 252 seconds]
vaicine has quit [Ping timeout: 252 seconds]
phite has quit [Ping timeout: 252 seconds]
Coolhand has quit [Ping timeout: 252 seconds]
krnflake has quit [Ping timeout: 252 seconds]
Lemtzas has quit [Ping timeout: 252 seconds]
JMcAfreak has quit [Ping timeout: 252 seconds]
ffranz has quit [Ping timeout: 252 seconds]
BizarreCake has quit [Ping timeout: 252 seconds]
pcboy_ has quit [Ping timeout: 252 seconds]
bubbajones has quit [Ping timeout: 252 seconds]
calmyournerves has quit [Ping timeout: 252 seconds]
RubyPanther has quit [Ping timeout: 252 seconds]
mksm has joined #ruby
kloeri has quit [Remote host closed the connection]
jaredrhine has quit [Read error: Connection reset by peer]
fwaokda has quit [Read error: Connection reset by peer]
crankycoder has joined #ruby
Eiam has quit [Read error: Connection reset by peer]
Corey has quit [Read error: Connection reset by peer]
kloeri_ has joined #ruby
slightair has joined #ruby
<mljsimone>
weeeeeee
joonty has joined #ruby
pcboy_ has joined #ruby
jayne has quit [Read error: Connection reset by peer]
jfelchner has joined #ruby
three18ti has joined #ruby
DonRichie has joined #ruby
Kricir has quit [Remote host closed the connection]
mksm is now known as Guest52325
rezzack has quit [Client Quit]
phipes has quit [Client Quit]
krnflake has joined #ruby
jwest has joined #ruby
jrajav has joined #ruby
calmyournerves has joined #ruby
<becom33>
bots ?
ffranz has joined #ruby
jinie_ is now known as jinie
phite has joined #ruby
someone has joined #ruby
rezzack has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
atmosx has joined #ruby
filipe_ has joined #ruby
Xeago_ has joined #ruby
someone is now known as Guest12807
RORgasm_ has joined #ruby
jwest has quit [Client Quit]
jamesaxl has joined #ruby
drastic has joined #ruby
ixti has joined #ruby
RORgasm has quit [Read error: No buffer space available]
Cultofmetatron has quit [Remote host closed the connection]
jwest has joined #ruby
<defa>
should I reinstall bundler?
dfedde has joined #ruby
notbrent__ is now known as notbrent_
woolite64__ has joined #ruby
<havenwood>
defa: What are you using to switch between Ruby versions? RVM, chruby, rbenv, doing it yourself?
JohnBat26 has joined #ruby
woolite64_ has quit [Ping timeout: 248 seconds]
<defa>
right now, I used rvm
<defa>
i'm actually very new to ruby. I just got this mac yesterday
<defa>
also very new to mac osx
mlue_ is now known as mlue
<havenwood>
defa: Have you installed Homebrew?
snearch has joined #ruby
saarinen has quit [Quit: saarinen]
woolite64_ has joined #ruby
<havenwood>
defa: Just installed RVM?
<defa>
I also installed Homebrew
starscreamer has quit [Remote host closed the connection]
<defa>
and installed ruby from there too
starscreamer has joined #ruby
ddfreyne has joined #ruby
graydot has joined #ruby
<havenwood>
defa: What is the output of: rvm current
<defa>
then when I cd to repos which have a Gemfile, it was weird
<defa>
let me see
carloslopes has quit [Ping timeout: 256 seconds]
<defa>
ruby-1.9.3-p429@rdm-js
c0rn has quit [Quit: Computer has gone to sleep.]
druonysus has joined #ruby
<defa>
that version was installed by rvm
failshel_ is now known as failshell
Alamo777_ has quit [Quit: Leaving]
woolite64 has quit [Ping timeout: 264 seconds]
theRoUS has quit [Ping timeout: 246 seconds]
<defa>
and this, ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.3.0] was installed by homebrew
Zeeraw has quit [Quit: Computer has gone to sleep.]
<defa>
now I need to find the ruby binary that wasinstalled by rvm
fermion has joined #ruby
Cultofmetatron has joined #ruby
Alina-malina has joined #ruby
<defa>
where would it be installed by default?
<MrZYX>
rvm info
woolite64__ has quit [Ping timeout: 260 seconds]
ffio_ has joined #ruby
<defa>
binary is wrong
woolite64 has joined #ruby
<defa>
it's /usr/local/opt/ruby193/bin/ruby
ffio has quit [Ping timeout: 252 seconds]
<defa>
when I execute /usr/local/opt/ruby193/bin/ruby -v, it's reporting the ruby that was installed by homebrew
jbinto_ has joined #ruby
woolite64__ has joined #ruby
<defa>
however, GEM_HOME is /usr/local/rvm/gems/ruby-1.9.3-p429@rdm-js
<MrZYX>
ah, there are your troubles
<MrZYX>
you installed rvm as root
<MrZYX>
very bad idea
fermion has quit [Client Quit]
ravster has joined #ruby
<defa>
oh ok
<defa>
what should I do now
woolite64_ has quit [Ping timeout: 256 seconds]
<MrZYX>
rvm implode
<defa>
ok
Targen has quit [Read error: Connection reset by peer]
<MrZYX>
and install it under your main user
<defa>
got it
atyz has quit [Quit: Leaving...]
<workmad3>
wee, FUD FUD FUD :D
<MrZYX>
and in the future only use root if explicitly told to or you know why it wouldn't work otherwise
<defa>
i will sudo as root then run that command
<defa>
wait, i sudo as root but dvm info won't work anymore
<workmad3>
although yes, don't install RVM as root unless you know what you're doing and know you need it... it's not that it's a bad idea, it's just not the idea you want generally and works differently in a fair few scenarios
<aedorn>
I love fear and doubt. I don't like uncertainty, though.
jrajav has joined #ruby
woolite64_ has joined #ruby
<workmad3>
defa: rvmsudo
sepp2k has joined #ruby
<defa>
k
mklappstuhl has joined #ruby
woolite64_ has quit [Read error: Connection reset by peer]
woolite64 has quit [Ping timeout: 252 seconds]
woolite64_ has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
jbinto_ has quit [Remote host closed the connection]
<MrZYX>
workmad3: I yet have to see a working "Oh installing stuff, lets use sudo"-type RVM installation
mklappstuhl has quit [Remote host closed the connection]
<workmad3>
MrZYX: I use rvm system installs quite often on servers
<MrZYX>
sure, but intentionally
<workmad3>
MrZYX: yeah :)
znouza_ has joined #ruby
woolite64__ has quit [Ping timeout: 240 seconds]
<workmad3>
MrZYX: ah, I get ya... someone thinks 'installing, must use sudo' and it screws them up :)
znouza_ has quit [Client Quit]
woolite64__ has joined #ruby
<MrZYX>
I see that like at least once a week
<workmad3>
MrZYX: you're right... that's where system-wide installs go wrong... when they're unintentional (and I'm a bit tired tonight, so didn't grok what you meant straight away)
<atmosx>
Hey guys I need some help with a begine/rescue clause to log the error in a better manner and maybe exit gracefully: https://gist.github.com/atmosx/5708788 <-- I want the client not to print anytning to the screen and also I'd like for the client to exit at initialize method. If I run it without the begin/rescue I get the error logged in the logfile to the screen but nothing else.
<workmad3>
I've stopped paying a large amount of attention to rvm issues... I use it on servers, and I use chruby locally
<havenwood>
<3 chruby
<atmosx>
hmm
Dummies_freelanc has quit [Ping timeout: 256 seconds]
JZTech101 has joined #ruby
JZTech101 has quit [Max SendQ exceeded]
blaxter_ has quit [Ping timeout: 256 seconds]
NuckingFuts is now known as Nuck
woolite64 has joined #ruby
<aedorn>
atmosx: I'm confused... just exit? I mean.. with exit?
Astral_ has joined #ruby
<workmad3>
abort!!!
<defa>
MrZYX: my environment is clean now
sivoais has joined #ruby
woolite64_ has quit [Ping timeout: 248 seconds]
bradhe has quit [Read error: Connection reset by peer]
<defa>
i also cleaned all my bash_profile and /etc/profile
<atmosx>
aedorn: no the problem is that I call the scrip via… client = Glucose.new(bla, blah); client.run
<defa>
I'm also not logged in as root
wolcanus has quit [Remote host closed the connection]
bradhe has joined #ruby
<atmosx>
defa: bow to me for I am root!
harrymoreno has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
Dummies_freelan1 has joined #ruby
Dummies_freelanc has joined #ruby
<defa>
:)
woolite64 has quit [Read error: Connection reset by peer]
<workmad3>
atmosx: I rootkit your root!
<MrZYX>
defa: cool, now just rerun the rvm install command
<atmosx>
actually I think it goes "Bow before me, for I am root!"
<atmosx>
workmad3: can't touch this.
<atmosx>
lol
harrymoreno has joined #ruby
woolite64__ has quit [Ping timeout: 252 seconds]
<atmosx>
this daft punk new album is 'cute'
woolite64 has joined #ruby
<workmad3>
atmosx: pfft, I didn't need to touch... you had 0-day exploit holes a mile wide
<defa>
MrZYX: I need to install rvm first. It's gone. Remember we executeed rvm implode
Astralum has quit [Ping timeout: 264 seconds]
Dummies_freelanc has left #ruby [#ruby]
druonysus has quit [Read error: Operation timed out]
arya__ has joined #ruby
<MrZYX>
oh I meant that one, sorry for being unclear
<atmosx>
workmad3: oooh, that's evil!
<workmad3>
defa: 'the rvm install command' == the command to run the installer on the website
manutter has joined #ruby
<defa>
MrZYX: this one if I remember correctly, curl -L https://get.rvm.io | bash -s stable --rails
<MrZYX>
yep
<workmad3>
defa: are you using rails?
<defa>
cool
geekbri_ has quit [Remote host closed the connection]
<atmosx>
workmad3: a remote ssh 0day would sweet. Something that doesn't require you to know the user, or logs directly as root no matter what :-P
<aedorn>
atmosx: That doesn't clarify it. If you use exit, (or abort "Error" instead of puts "Error") then it should exit right there and not continue on. Which sounds like what you want.
pothibo has joined #ruby
jonahR has joined #ruby
<defa>
workmad3: i am not sure if we are using rails
<defa>
how do I check?
<atmosx>
aedorn: I'll try it
<workmad3>
defa: if not, then don't use the --rails option (as that installs the rails gem)
<atmosx>
defa: ask
<atmosx>
defa: "Are we using rails?"
woolite64_ has joined #ruby
<workmad3>
defa: I'd get rid of the --rails option then... it's not difficult to install if you are (it's just a gem install, generally done with bundler in a rails project nowadays)
arya_ has quit [Ping timeout: 256 seconds]
<workmad3>
defa: but maybe pass it --ruby instead (to automatically install ruby as part of the rvm install)
woolite64_ has quit [Read error: Connection reset by peer]
<workmad3>
defa: you'll just need to do an 'rvm install <ruby-version>' after it's installed
<MrZYX>
aedorn: windows or archlinux? :P
<defa>
got it
woolite64_ has joined #ruby
sivoais has quit [Ping timeout: 248 seconds]
BadDesign has joined #ruby
<defa>
it was quick honestly. It completed that command in 20 seconds
<aedorn>
MrZYX: Neither.. Sabayon =p
<defa>
i'll install ruby now
cschneid_ is now known as cschneid
viszu has joined #ruby
<defa>
how do i find out which version I can isntalll?
woolite64 has quit [Ping timeout: 276 seconds]
<defa>
i was told to use 1.9.3
nettoweb has joined #ruby
postmodern has joined #ruby
<defa>
rvm install 1.9.3
mklappstuhl has quit [Remote host closed the connection]
<defa>
that one?
<MrZYX>
yup that's fine
jbpros has quit [Quit: jbpros]
<aedorn>
Though I do have 300 something "important updates" waiting for me on my Windows box... like I'm gonna update that.
<nettoweb>
hello folks, I'm using elasticsearch and I tried to serach a word "salmão" and I get this error: JsonParseException[Invalid UTF-8 middle byte 0x72\n at
<defa>
not sure if I should execute the command prior to install
woolite64_ has quit [Read error: Connection reset by peer]
<workmad3>
aedorn: update it... make those viruses battle a little bit for survival, let some natural selection happen!
<defa>
rvm get head and rvm reload
woolite64_ has joined #ruby
<defa>
should I execute that first?
axl_ has joined #ruby
<workmad3>
defa: nah
<workmad3>
defa: you just installed rvm, you don't need to update it ;)
<defa>
cool
<workmad3>
defa: also, only ever do 'rvm get stable' not 'rvm get head' until you're a bit more comfortable with everything
sivoais has joined #ruby
eploko has joined #ruby
ChristianS has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<workmad3>
defa: 'rvm get head' will give you the latest (possibly unstable, potentially buggy) version
ChristianS has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
ChristianS has joined #ruby
<aedorn>
but Windows updates will break Windows... then how am I going to play games? =p
<defa>
got it
<defa>
looks like i need to logoff and relog back in. rvm was not found
<workmad3>
aedorn: in a virtual machine on your mac?
<workmad3>
aedorn: on facebook?
<workmad3>
aedorn: on your PS3/xbox360/wiiU?
<defa>
yup, rvm works now
<defa>
rvm is now install 1.9.3
<aedorn>
games? on facebook? That's just making half my soul die even thinking about it.
<workmad3>
aedorn: :D
<defa>
installing
xardas has joined #ruby
<workmad3>
aedorn: you'll be happy to know that Zynga is in trouble then ;)
xardas has quit [Changing host]
xardas has joined #ruby
<defa>
rvm install will take a long time right? I want to get some food
<aedorn>
I saw that ... I feel kind of bad for the people who worked there, though.
travisjeffery has quit [Ping timeout: 264 seconds]
<aedorn>
That's what happens when the company motto is profit, not innovation or creativity. Everyone will play Farmville (or one of our many Farmville-esque options) and like it!
sr78ger has joined #ruby
suporte85 has quit [Quit: Saindo]
Takehiro has quit [Remote host closed the connection]
bionhart has quit [Remote host closed the connection]
guiocavalcanti has quit [Remote host closed the connection]
krawchyk has quit [Remote host closed the connection]
byprdct has joined #ruby
nhhagen has joined #ruby
x1337807x has joined #ruby
erry_ has joined #ruby
atno has joined #ruby
defaultro_ has quit [Changing host]
defaultro_ has joined #ruby
defaultro_ has joined #ruby
defaultro_ has quit [Changing host]
guiocavalcanti has joined #ruby
<defaultro_>
MrZYX: installation of ruby 1.9.3 was successful
kx has joined #ruby
erry has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
erry_ is now known as erry
cherrypeel_ has quit [Ping timeout: 268 seconds]
seitensei has quit [Ping timeout: 268 seconds]
JohnBat26 has quit [Ping timeout: 268 seconds]
bitZero__ has quit [Ping timeout: 268 seconds]
akells` has joined #ruby
timkohrumel has quit [Ping timeout: 268 seconds]
bitZero__ has joined #ruby
<defaultro_>
i can now run this, gem install bundler
bricker has quit [Ping timeout: 269 seconds]
jpun has joined #ruby
sivoais has joined #ruby
supki has joined #ruby
sixteneighty has joined #ruby
<defaultro_>
running bundle install now
bhaak has joined #ruby
ssvo has joined #ruby
<defaultro_>
no more errors :D
jetblack has joined #ruby
lusory has joined #ruby
monkegjinni has joined #ruby
Nom- has joined #ruby
ivanoats_ has quit [Remote host closed the connection]
kleinerdrache has quit [Quit: Ex-Chat]
guiocavalcanti has quit [Ping timeout: 256 seconds]
Repentinus has joined #ruby
Michae___ has joined #ruby
poga has joined #ruby
monkegji_ has joined #ruby
arya_ has joined #ruby
monkegjinni has quit [Read error: No route to host]
<Repentinus>
/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- syck (LoadError) is pretty much what happens when I try to run anything ruby under my default user. All of the stuff I have tried works fine under any other user. AFAICT, I don't have any manually added Ruby junk in my path and according to which ruby and the Ruby software I've tried refer to the same /usr/
<Repentinus>
bin/name/ under all users. Any ideas how I've screwed up?
kleinerdrache has joined #ruby
sambao21 has joined #ruby
companion has joined #ruby
SirFunk has joined #ruby
tris has joined #ruby
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno_ is now known as harrymoreno
ElderFain has joined #ruby
axl_ has joined #ruby
kalleth has joined #ruby
chichouw has joined #ruby
sideshowcoder has joined #ruby
WhereIsMySpoon has joined #ruby
pothibo has joined #ruby
ffio_ has joined #ruby
jacobw has joined #ruby
wallerdev has joined #ruby
io_syl has joined #ruby
taqutor has joined #ruby
Beoran__ has joined #ruby
ArchBeOS has joined #ruby
tjbiddle has joined #ruby
`MArceLL` has joined #ruby
ericboehs has joined #ruby
nettoweb has joined #ruby
icole has joined #ruby
ELLIOTTCABLE has joined #ruby
zastern has joined #ruby
beiter has joined #ruby
danslo has joined #ruby
billy_ran_away has joined #ruby
Drakevr has joined #ruby
foohey has joined #ruby
dayepa has joined #ruby
jaybe_ has joined #ruby
theoros has joined #ruby
talntid has joined #ruby
thejefflarson__ has joined #ruby
Mekkis has joined #ruby
F1skr has joined #ruby
patricksroberts_ has joined #ruby
nimor has joined #ruby
baroquebobcat has joined #ruby
drPoggs has joined #ruby
gianlucadv has joined #ruby
dr_neek has joined #ruby
[0x1a] has joined #ruby
rmartin has quit [Remote host closed the connection]
nimor has quit [Write error: Broken pipe]
ffio_ has quit [Max SendQ exceeded]
pothibo_ has joined #ruby
pothibo has quit [Write error: Broken pipe]
pothibo_ is now known as pothibo
nhhagen has quit [Read error: No buffer space available]
nhhagen has joined #ruby
jlast_ has quit [Remote host closed the connection]
Repentinus has quit [Read error: Operation timed out]
mklappstuhl has quit [Remote host closed the connection]
viszu has quit [Quit: Leaving.]
cschneid has joined #ruby
sivoais has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
dayepa1 has joined #ruby
ffio_ has joined #ruby
dayepa has quit [Remote host closed the connection]
rezzack1 has left #ruby [#ruby]
Zeeraw has joined #ruby
ntus1017 has quit [Ping timeout: 256 seconds]
bricker has joined #ruby
srji has quit [Ping timeout: 248 seconds]
timonv has quit [Remote host closed the connection]
ntus1017 has joined #ruby
huoxito has quit [Quit: Leaving]
sivoais has joined #ruby
becom33 has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
bricker_ has quit [Read error: Operation timed out]
kil0byte has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
jrajav has joined #ruby
tonini has joined #ruby
miskander has joined #ruby
rezzack has joined #ruby
Naeblis has joined #ruby
ChristianS has quit [Quit: I shouldn't really be here - dircproxy 1.0.5]
Guest85414__ has joined #ruby
sambao21 has joined #ruby
wolcanus has joined #ruby
aspiers has joined #ruby
chid has joined #ruby
Iszak has joined #ruby
randym_ has joined #ruby
sn0wb1rdz_ is now known as sn0wb1rdz
woolite64__ has quit [Ping timeout: 248 seconds]
sivoais has quit [Ping timeout: 256 seconds]
ChristianS has joined #ruby
wolcanus has quit [Ping timeout: 256 seconds]
dwcook has quit [Quit: asdf]
ziyadb has joined #ruby
pyrac has joined #ruby
cj3kim has joined #ruby
<defaultro_>
any ideas folks why .rb files are now associated to Xcode?
pskosinski has joined #ruby
Repentinus has joined #ruby
mklappstuhl has joined #ruby
<sunya7a>
Hi guys, how do I load a an rb file in interactive mode and have the definitions stay in my current namespace after it finishes executing? I've tried require, require_relative, load and autoload and none of them do what I'm looking for
carloslopes has joined #ruby
pyrac has quit [Client Quit]
Xeago_ has quit [Remote host closed the connection]
sivoais has joined #ruby
kleinerdrache has quit [Quit: Ex-Chat]
<Mon_Ouie>
Just eval the code straight away? (it should only matter for local variables though)
Takehiro has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
<Mon_Ouie>
If you're using Pry you can use the play command
<sunya7a>
Mon_Ouie: anything build into the standard irb? I just want to load a class that I wrote in another file and then be able to play around with it in irb
<sunya7a>
when I use load the class is not longer available to me
<sunya7a>
I read that autoload should do what I want...but I'm requiring other files before the class definition and it errors out on those
kenneth has joined #ruby
<atmosx>
sunya7a: If I understand what yhou're saying, it should be easy to load to irb or you didn't implement inheritance correctly
sivoais has quit [Ping timeout: 246 seconds]
<sunya7a>
atmosx: what is the correct way to load the file? with autoload? when I run my main.rb file (this file uses my helper file using require_relative) from just console it runs correctly
harrymoreno_ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<Mon_Ouie>
It should be available. How are you loading it exactly?
carloslopes has quit [Remote host closed the connection]
<sunya7a>
Mon_Ouie: so I open irb...then type load('./main.rb')
miskander has quit [Quit: miskander]
harrymoreno has quit [Ping timeout: 264 seconds]
harrymoreno_ is now known as harrymoreno
<rismoney>
if i have a hash of arrays of hashes... - foo= {"nics"=>[{"pcad01"=>{"mgmt405"=>{"ip"=>"1.2.3.4"}}}, {"pcad02"=>{"mgmt405"=>{"ip"=>"1.2.3.4"}}}]} how can i return just ["pcad01,pcad02"]
srji has joined #ruby
<rismoney>
err ["pcad01","pcad02"]
mixel has joined #ruby
sivoais has joined #ruby
<Mon_Ouie>
And how are you trying to use your class then?
<sunya7a>
Mon_Ouie: i'm simply trying to print out some of its content .. like puts question.inspect
miskander has joined #ruby
<sunya7a>
in main.rb I had question = Question.new ..etc..
<Mon_Ouie>
I think I see what you're doing wrong, but it would be easier to explain with that main.rb file
<sunya7a>
sec
<Mon_Ouie>
Oh, nvm, so it is a local variable
<Mon_Ouie>
just eval File.read("main.rb")
timeout has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
DanKnox_away is now known as DanKnox
ppppaul has left #ruby ["Leaving"]
<defaultro_>
what does fork mean? Does it mean, make another copy?
Asher has quit [Ping timeout: 276 seconds]
<Mon_Ouie>
fork creates a new process
<sunya7a>
Mon_Ouie: no dice...it says 'cannot infer base path' i've given it absolute path and relative path like ~/Rails/main.rb
Asher has joined #ruby
<defaultro_>
k
elaptic`` is now known as elaptics
<Mon_Ouie>
That's because you're using require_relative in that file
saarinen has quit [Quit: saarinen]
<sunya7a>
Mon_Ouie: okay...let me use absolute to that one also
sivoais has quit [Quit: leaving]
<Mon_Ouie>
require_relative only works with load/require/require_relative — there are no ways of cheating that I believe
mixel has quit [Quit: mixel]
jlast_ has joined #ruby
osvico has joined #ruby
srji_ has joined #ruby
ELLIOTTCABLE has quit [Quit: best short-url ever. <http://ell.io/tt>]
benweint has joined #ruby
ELLIOTTCABLE has joined #ruby
<sunya7a>
Mon_Ouie: okay...so that seems to allow me to use eval...but the object is still not available =/
sethetter has joined #ruby
<sethetter>
I want to use sinatra with ruby 1.8.7 and avoid the use of ruby gems. Is this possible? Or easy in any way?
<sunya7a>
Mon_Ouie: thank you sir...I will keep troubleshooting...thanks for the suggestions
<Mon_Ouie>
Oh, right. It creates its own binding. You can trick it by doing question = nil before that and then running the eval command.
<sunya7a>
o.O
<sunya7a>
ok
pu22l3r_ has joined #ruby
JMcAfreak has joined #ruby
<Mon_Ouie>
When you use eval it creates a new scope for local variables. So any variables you create in there are not accessible outside of it.
<tenseiten>
sethetter: yeah
sailias has quit [Ping timeout: 256 seconds]
srji has quit [Ping timeout: 248 seconds]
<Mon_Ouie>
If you define question before using eval, then it will modify the existing question variable instead of creating a new one.
Appineer has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 264 seconds]
jlast_ has quit [Remote host closed the connection]
<sunya7a>
Mon_Ouie: oh wow...yes that did the trick
robscomputer_ has joined #ruby
<sunya7a>
de heck... =( is this intended behavior? feels very hacky ... but i gues it works
vlad_starkov has joined #ruby
robscomputer has quit [Ping timeout: 248 seconds]
<sunya7a>
Mon_Ouie: Thank you very much... i will read up on eval
codecop has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 248 seconds]
<Mon_Ouie>
If it didn't work like that, then variables could be created at runtime, and the compiler needs to distinguish method calls from variable reads from syntax alone
razi has joined #ruby
<Mon_Ouie>
(without having to run the code, that is)
s0ber has quit [Read error: Connection reset by peer]
<sunya7a>
but isn't it somewhat dangerous to presume that same variable name is intended...
sambao21 has joined #ruby
<sunya7a>
if you aren't going to allow variable creation but overwriting then I think bad things may happen
<sunya7a>
bbl
sunya7a has quit [Quit: leaving]
vlad_starkov has quit [Ping timeout: 248 seconds]
kenneth has quit [Quit: kenneth]
s0ber has joined #ruby
mixel has joined #ruby
<Mon_Ouie>
Ah, yes, that is one aspect of ruby that is often criticized — the way variables are often implicitly created
kx has quit [Ping timeout: 240 seconds]
joschi_ is now known as joschi
retry has joined #ruby
danslo has quit [Quit: danslo]
ldnunes has quit [Quit: Leaving]
bamdad has joined #ruby
Takehiro has joined #ruby
teclator has joined #ruby
cpruitt has left #ruby [#ruby]
RORgasm has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
atyz has joined #ruby
<solancer>
platzhirsch, if you are new to ruby then my suggestion is you stop and go learn python instead its much more useful than ruby ever can get..
robscomputer has joined #ruby
mikewintermute has joined #ruby
helvete has joined #ruby
<platzhirsch>
solancer: well, I wouldn't say new. I learned it last summer for my machine learning course and now I try to learn in depth plus Rails, I use it for the implementation of my master thesis
dysinger has quit [Quit: dysinger]
emergion has quit [Quit: Computer has gone to sleep.]
dysinger has joined #ruby
<solancer>
platzhirsch, whats it based on?
atyz has quit [Read error: Connection reset by peer]
bean has joined #ruby
terrellt has joined #ruby
spigot has left #ruby ["c-ya"]
<solancer>
platzhirsch, ruby is best suited for web development and some small scale desktop apps, if you want to do some really high end stuff like scientific stuff then you should go with python
robscomputer_ has quit [Ping timeout: 246 seconds]
davidboy has joined #ruby
mmitchell has quit [Remote host closed the connection]
starscreamer has quit [Ping timeout: 276 seconds]
<solancer>
platzhirsch, or matlab
<solancer>
platzhirsch, *mathlab
solancer was kicked from #ruby by apeiros ["if you are new to ruby then my suggestion is you stop and go learn python instead" wtf?]
<platzhirsch>
solancer: I heard so. But I am now doing mainly a web application and some small computations
Kar- has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
<platzhirsch>
I really choose it for reasons of fun. I liked it for machine learning, because the syntax is very short and concise, which gives a good representation of the actual formula
rgrinberg1 is now known as rgrinberg
jgarvey has quit [Quit: Leaving]
<aedorn>
yeah... why would he tell you go learn Python instead when there's Erlang!? j/k don't kick me. =p
d2dchat has quit [Remote host closed the connection]
<apeiros>
:)
jerius has quit [Read error: Operation timed out]
<apeiros>
I suggest malbolge. nothing else is fun.
kofno has joined #ruby
verto has quit [Read error: Connection reset by peer]
<Bleah>
Personally, I would like to go back to programming in Forth.
<aedorn>
Oh yeah, I'm sold: Malbolge was so difficult to understand when it arrived that it took two years for the first Malbolge program to appear.
<platzhirsch>
so no one suggested Haskell?
<platzhirsch>
Erlang is nice, but Haskell is the Mona Lisa of syntax
<workmad3>
I only know about Malbolge because it was mentioned in an episode of Sherlock :)
sambao21 has joined #ruby
BryanWB has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
<workmad3>
aedorn: I'm personally a fan of the classic Intercal
<workmad3>
aedorn: balancing my pleases is the only way I feel satisfaction
dmiller has joined #ruby
chson has quit [Remote host closed the connection]
<aedorn>
lol
<workmad3>
although for the truly stellar program, Java2k is the way to go
dfedde has quit [Ping timeout: 248 seconds]
helvete has quit [Read error: Connection reset by peer]
<workmad3>
because deterministic code is for wusses
atyz has joined #ruby
kirun has quit [Quit: Client exiting]
sambao21 has quit [Client Quit]
x1337807x has joined #ruby
breakingthings has quit [Quit: breakingthings]
jonathanwallace has quit [Ping timeout: 248 seconds]
generali_ has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
atmosx has quit [Read error: Connection reset by peer]
starscreamer has joined #ruby
mxweas has joined #ruby
takezawa has quit [Remote host closed the connection]
adman65 has quit [Quit: adman65]
wmoxam has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
cyro has joined #ruby
<cyro>
why does `BigDecimal.new(805) / 100 == 8.05` returns false
<cyro>
?
northelks_ has joined #ruby
forrest has quit [Quit: Leaving]
x1337807x has quit [Ping timeout: 246 seconds]
<havenwood>
cyro: Because #<BigDecimal> != 8.05
Kar- has joined #ruby
x1337807x has joined #ruby
krainboltgreene has joined #ruby
m8 has quit [Read error: Connection reset by peer]
atyz has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
pothibo has joined #ruby
tjbiddle_ has joined #ruby
<Mon_Ouie>
I would perform all comparisons in BigDecimal space — because you can represent all floating numbers as BigDecimals, while the reverse is not true.
interactionjaxsn has joined #ruby
druonysus has joined #ruby
druonysus has joined #ruby
jlast has joined #ruby
sambao21 has joined #ruby
katherin1m13 is now known as katherinem13
<cyro>
gotcha
<cyro>
thank you everyone
BlakeRG has quit [Quit: BlakeRG]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
manutter has quit [Read error: Connection reset by peer]
K3dar3 has quit [Read error: Connection reset by peer]
tjbiddle has quit [Ping timeout: 260 seconds]
tjbiddle_ is now known as tjbiddle
K3dar3 has joined #ruby
<jtran>
Mon_Ouie: my apologies i setup that paste wrong. i'm looking for the equivalent of 'blah' in this example http://pastebin.com/dXEyHUwN
<jtran>
the example is in python
manutter has joined #ruby
jerius has quit []
jimeh_ has joined #ruby
interactionjaxsn has quit [Ping timeout: 256 seconds]
pothibo has quit [Quit: pothibo]
zodiak has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
cofin has quit [Quit: cofin]
saarinen has joined #ruby
<jtran>
Mon_Ouie: the issue i have with the ruby equivalent : blah = "#{name} : {age}" is that i cannot reuse blah
<jtran>
in my python example i can reuse blah by interpolating it with a different substitute hash
devoldmx3 has quit [Read error: Connection reset by peer]
takeru has joined #ruby
vlad_starkov has joined #ruby
devoldmx has joined #ruby
KeiKun_ is now known as KeiKun
krawchyk has joined #ruby
geggam has quit [Remote host closed the connection]
ivanoats has joined #ruby
freerobby has quit [Quit: Leaving.]
<Eiam>
If I have a hash like {:attribute => value, :attr2 =>val2} and I want to enumerate through it to modify a class instance variables based on the key => values present.. what am I look for?
<Eiam>
I thought self.send(hash.keys.first,hash.values.first) (obviously this only works for the first value)
<Eiam>
but… no such luck.
<Eiam>
assuming i had an instance variable in the class called @attribute
soukihei has joined #ruby
ihateallofyou is now known as goodbye
razi has quit [Quit: Leaving.]
justsee has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
Cyrus has joined #ruby
<Eiam>
ah, :instance_variable_set
sam113101 has quit [Quit: WeeChat 0.4.0]
MrZYX is now known as MrZYX|off
slash_nick has quit [Ping timeout: 264 seconds]
dmiller has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 246 seconds]
robscomputer_ has joined #ruby
leonid_ has quit [Ping timeout: 245 seconds]
rhys has quit [Quit: Leaving]
sam113101 has joined #ruby
wesside has joined #ruby
krawchyk has quit [Remote host closed the connection]
druonysus has quit [Ping timeout: 252 seconds]
chxane has quit [Quit: Leaving]
devoldmx has joined #ruby
dash_ has quit [Quit: Time to beer :)]
goodbye has quit [Remote host closed the connection]
robscomputer has quit [Ping timeout: 252 seconds]
unstable has left #ruby [#ruby]
mixel has quit [Quit: mixel]
zigomir has quit [Ping timeout: 246 seconds]
<Spooner>
joelteon, bundle gem my_gem (makes a base framework).
djbkd has quit [Quit: Leaving]
<joelteon>
i see
robscomputer_ has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
ariedler has joined #ruby
jbueza has quit [Quit: Leaving.]
elaptics is now known as elaptics`away
krawchyk has joined #ruby
locriani has quit [Remote host closed the connection]
jacktrick has joined #ruby
aetaric has quit [Ping timeout: 240 seconds]
pu22l3r_ has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
pu22l3r_ has quit [Remote host closed the connection]
ericboehs has quit [Ping timeout: 260 seconds]
aetaric has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
saarinen has joined #ruby
<nettoweb>
anyone here already worked with elasticsearch?
pu22l3r has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Ping timeout: 264 seconds]
splittingred has quit [Quit: splittingred]
eddiezane has joined #ruby
wsterling has quit [Remote host closed the connection]
eddiezane has left #ruby ["WeeChat 0.4.1"]
Guest37984 is now known as ned
samuel02 has quit [Remote host closed the connection]
wmoxam has joined #ruby
jbpros has quit [Quit: jbpros]
tomsthumb has joined #ruby
<ariedler>
nettoweb: yes, but I am leaving will be back tomorrow
ariedler has quit [Remote host closed the connection]
predator217 has joined #ruby
freerobby has joined #ruby
toddWork__ has quit [Quit: toddWork__]
sepp2k has quit [Quit: Leaving.]
mxweas has quit [Read error: Connection reset by peer]
osvico has joined #ruby
bamdad has left #ruby [#ruby]
huoxito has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
tjbiddle has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
takeru has quit [Remote host closed the connection]
takeru has joined #ruby
locriani has joined #ruby
dr_neek has joined #ruby
dmiller has joined #ruby
fivethre1o has joined #ruby
Caelum has quit [Read error: Operation timed out]
mksm_ has quit [Read error: Operation timed out]
mxweas has joined #ruby
Caelum has joined #ruby
mksm has joined #ruby
fivethreeo has quit [Read error: Operation timed out]
saarinen has quit [Quit: saarinen]
mrsolo has left #ruby ["Leaving"]
Xeago has quit [Remote host closed the connection]
mksm is now known as Guest92883
alvaro_o has quit [Read error: Operation timed out]
Gugster has joined #ruby
Guga_ has quit [Disconnected by services]
devoldmx has joined #ruby
cofin has quit [Quit: cofin]
rickruby_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<zastern>
I've got a silly ruby question. Still learning (how to program). When I use the URI module, and pass it something like - foo = URI('http://google.com') - it returns something like this - URI::HTTP:0x007f8d49158820 URL:http://google.com>
pietr0_ has quit [Read error: Operation timed out]
devoldmx has joined #ruby
pietr0 has joined #ruby
<zastern>
What does this bit - URI::HTTP:0x007f8d49158820 - actually represent?
<zastern>
A position in memory?
takeru has quit [Ping timeout: 248 seconds]
<havenwood>
zastern: An instance of the URI::HTTP class.
rickruby has quit [Ping timeout: 256 seconds]
<zastern>
mm ok
<zastern>
so it's just tagged with an identifier basically?
tylersmith has joined #ruby
krisfremen has quit [Read error: Connection reset by peer]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
krisfremen has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
kobain has quit [Ping timeout: 256 seconds]
kobain has joined #ruby
<havenwood>
zastern: yup, something of that sort - i don't know details
Dummies_freelan1 has quit [Ping timeout: 256 seconds]
<KeiKun>
guys how can i install icu
<KeiKun>
on windows
<KeiKun>
i already have ruby though
locriani has quit [Read error: Connection reset by peer]
itman_ is now known as itman
Dummies_freelanc has joined #ruby
<havenwood>
KeiKun: gem install icu
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rizzle has joined #ruby
arya_ has joined #ruby
<KeiKun>
havenwood: checking for main() in -licui18n... no
mahmoudimus has quit [Quit: Computer has gone to sleep.]
takeru has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]