<dankest>
shevy: gotcha. What do you use Ruby for?
adrianmn1 has quit [Quit: Leaving.]
<shevy>
dankest pretty much everything. i.e. rather than shell scripts, I write ruby scripts. web stuff, I use a mixture of things (but mostly still plain ruby .cgi files). for everything that can be automated, I use ruby
nilg has joined #ruby
JetAway has joined #ruby
<shevy>
config files I keep in yaml usually, then let ruby generate the files I need
<dankest>
shevy: awesome. Ruby is amazing for shell scripting. I loves it so.
<shevy>
it's much easier to read and change
Danny_Joris has joined #ruby
<johnmilton>
im starting to learn ruby because my job is rolling out puppet for everything
<shevy>
than shell scripts are
etcetera has quit [Quit: Computer has gone to sleep.]
<Danny_Joris>
I'm having an error trying to install Jekyll on OSx 10.6. Seems like all the things i find on google are related to upgrading xcode or enabling terminal tools, but I don't have xcode installed.
mahmoudimus has quit [Quit: Computer has gone to sleep.]
nari has joined #ruby
<Danny_Joris>
ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb | mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
sn0wb1rd has quit [Quit: sn0wb1rd]
slainer68 has quit [Ping timeout: 240 seconds]
etcetera has joined #ruby
<Danny_Joris>
10.6.8
rakl has quit [Quit: sleeping]
LouisGB has quit [Ping timeout: 260 seconds]
mahmoudimus has joined #ruby
Juul has quit [Ping timeout: 245 seconds]
alvaro_o has quit [Quit: Ex-Chat]
chrishunt has quit [Quit: Leaving...]
statarb3 has quit [Ping timeout: 268 seconds]
<Danny_Joris>
all answers lead to xcode.. :/
dmiller has quit [Remote host closed the connection]
<johnmilton>
so install xcode
<johnmilton>
its on the dvd
icole has quit [Remote host closed the connection]
<Danny_Joris>
it's kind of unfortunate to have to install a 1.5GB program I won't use in order to install gems, no?
al3xnull has joined #ruby
ossareh has joined #ruby
<johnmilton>
i install xcode as soon as i install os x
<johnmilton>
it has tons of stuff which u may end up using in the future
<johnmilton>
and an awesome ide
Jellyg00se has quit [Remote host closed the connection]
xsbeats has joined #ruby
Hanmac1 has joined #ruby
bradhe has quit [Remote host closed the connection]
_nitti has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
_nitti has quit [Ping timeout: 240 seconds]
Lemtzas is now known as LEMTZAS
punkrawkR has quit [Read error: Connection reset by peer]
cakehero has joined #ruby
ossareh has quit [Ping timeout: 245 seconds]
ZubKonst_ has joined #ruby
swarley has quit [Quit: Leaving]
swarley has joined #ruby
ZubKonst has quit [Ping timeout: 246 seconds]
ryanlecompte has quit [Remote host closed the connection]
diegoviola has quit [Quit: Reconnecting]
diegoviola has joined #ruby
d2dchat has joined #ruby
jekotia has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Read error: Connection reset by peer]
Juul has joined #ruby
jonathanwallace has joined #ruby
chimkan has quit [Quit: chimkan]
adeponte has quit [Remote host closed the connection]
<Danny_Joris>
thanks - people seem to have trouble uninstalling it though and it doesn't seem to work well if xcode is installed. (if I ever want to use it)
<Danny_Joris>
I might just grab the installer cd at work tomorrow.
<Danny_Joris>
still unbelievable xcode (or part of it) is needed to begin with
ckrailo has quit [Quit: Computer has gone to sleep.]
Danny_Joris has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
mikepack has joined #ruby
baroquebobcat has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Ping timeout: 244 seconds]
chrishunt has joined #ruby
Trioke has joined #ruby
tbrock has joined #ruby
arietis has joined #ruby
slainer68 has joined #ruby
dmiller has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
dorei has quit []
Juul has quit [Ping timeout: 245 seconds]
pac1 has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 248 seconds]
adeponte has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
skattyadz has quit [Quit: skattyadz]
dmiller has quit [Ping timeout: 252 seconds]
Ruler_Of_Heaven_ has joined #ruby
pipopopo has quit [Ping timeout: 260 seconds]
ryanf has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
voodoofish430 has quit [Quit: Leaving.]
cakehero has quit [Quit: Computer has gone to sleep.]
jimeh has quit [Quit: Computer has gone to sleep.]
_nitti has joined #ruby
ossareh has quit [Ping timeout: 245 seconds]
Azure has quit [Excess Flood]
capsule_toy has joined #ruby
Azure has joined #ruby
rgrady has joined #ruby
rgrady has left #ruby [#ruby]
_nitti has quit [Ping timeout: 240 seconds]
cakehero has joined #ruby
robbyoconnor has joined #ruby
jojosiao has joined #ruby
mahmoudimus has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
ryanf has quit [Quit: leaving]
tommyvyo has quit [Quit: Computer has gone to sleep.]
Retistic has quit [Quit: Retistic]
Retistic has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
johnmilton has quit [Ping timeout: 244 seconds]
shiin has quit [Quit: Computer has gone to sleep.]
BoomCow has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
gbchaosmaster has joined #ruby
Zolrath has quit []
mascool has quit [Ping timeout: 240 seconds]
skaczor has quit [Read error: Operation timed out]
segmond has joined #ruby
h4mz1d has joined #ruby
al3xnull has quit [Remote host closed the connection]
al3xnull has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
_alejandro has joined #ruby
caleb_io has joined #ruby
johnmilton has joined #ruby
haxrbyte has joined #ruby
jgrevich has quit [Ping timeout: 240 seconds]
Juul has joined #ruby
haxrbyte_ has joined #ruby
areil has joined #ruby
vlad_starkov has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
haxrbyte has quit [Ping timeout: 240 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
caleb_io has quit [Quit: caleb_io]
capsule_toy has quit [Quit: Computer has gone to sleep.]
apok has quit [Quit: apok]
vlad_starkov has quit [Ping timeout: 252 seconds]
etcetera has joined #ruby
tastycakeman has joined #ruby
<tastycakeman>
hallo! what is .gte?
<tastycakeman>
and .lte?
<tastycakeman>
and is a ruby specific method?
ghanima has left #ruby ["PART #ruby-lang :PART #RubyOnRails :PONG :zelazny.freenode.net"]
segmond has left #ruby ["Leaving"]
dmiller has joined #ruby
<havenn>
Anyone have the link for the high performance fork of mruby? Can't find it for the life of me...
johnmilton has quit [Remote host closed the connection]
<gbchaosmaster>
tastycakeman: Sounds like greater than/equal to and less that/equal to methods.
<havenn>
Hanmac1: I think you told me about it, no? HP? mruby?
<havenn>
HP-vowel-here
Juul has quit [Ping timeout: 246 seconds]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
ananthakumaran has joined #ruby
dmiller has quit [Ping timeout: 244 seconds]
<havenn>
Ahh, found it - HPC mruby.
Danny_Joris has joined #ruby
<Danny_Joris>
So i went ahead and tried to install GCC
<Danny_Joris>
still doesn't make my rubygems work
andrewhl has quit [Remote host closed the connection]
<havenn>
Danny_Joris: What platform are you on?
<Danny_Joris>
osx 10.6.8
spike|spiegel has quit [Read error: Connection reset by peer]
<Danny_Joris>
and to uninstall GCC you have to install xcode and uninstall it again?
<Danny_Joris>
I installed GCC because I didn't want to use xcode
<Danny_Joris>
what a mess
<Danny_Joris>
all of this just to install jekyll, lol
<havenn>
Danny_Joris: Do you have Homebrew installed? Worth getting GCC working IMHO, will run into it over and over. Tried?: brew install automake
tjbiddle has quit [Ping timeout: 246 seconds]
becom33 has joined #ruby
<alexshenoy>
hello rubyists
tjbiddle_ has quit [Ping timeout: 240 seconds]
<becom33>
Im trying to get a idea how to create twitter bot with ruby
<becom33>
can anyone helpme with that ?
<havenn>
In Mountain Lion there is a standalone installer. I think that on some older OS X versions you do have to install the latest xcode before command-line-tools, if you want to go the apple-provided route..
<becom33>
shevy, bro you there ?
<alexshenoy>
got a bit of question. I am in the middle of running through rubeque and I'm stuck on one of the problems. It has to do with the method behind addition.
<Danny_Joris>
havenn: installed automake with brew
<Danny_Joris>
didn't help
<alexshenoy>
i searched the api, but can't seem to find any reference
pkrnj has joined #ruby
slamice_ has joined #ruby
<havenn>
Danny_Joris: No errors with?: brew doctor
samphippen has quit [Quit: Computer has gone to sleep.]
<catphish>
It's from denmark
apeiros_ has joined #ruby
bier has joined #ruby
srji has joined #ruby
<catphish>
i really expect it to be ISO 8859
<catphish>
but can't make any sense of it
<catphish>
oh - 0xF80x00F8#LATIN SMALL LETTER O WITH STROKE
malkomalko has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
<catphish>
i think it's just my terminal fooling me into thinking it's invalid
<catphish>
yep!
<catphish>
.force_encoding('ISO-8859-1').encode('UTF-8') works
<catphish>
irb just didn't seem able to do the latter encode automatically
<catphish>
thanks
ssspiff has joined #ruby
sspiff has quit [Ping timeout: 244 seconds]
jord has left #ruby [#ruby]
jackiechan0 has quit [Quit: Sto andando via]
somazero has joined #ruby
dmiller has joined #ruby
pen has joined #ruby
Virunga has joined #ruby
hoelzro|away is now known as hoelzro
dhruvasagar has quit [Read error: Operation timed out]
dmiller has quit [Ping timeout: 246 seconds]
<shevy>
cool
Juul has quit [Ping timeout: 265 seconds]
IRLConor has joined #ruby
[Neurotic] has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
emergion has joined #ruby
Virunga has quit [Remote host closed the connection]
ph^^ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
gyre008 has joined #ruby
srji has quit [Quit: Lost terminal]
<gyre008>
gents...can someone explain to me what I'm doing wrong that the following simple code snippet isn't returning any results while simple curl is ? https://gist.github.com/4117625
emergion has quit [Quit: Computer has gone to sleep.]
jackiechan0 has joined #ruby
bpfh has quit [Ping timeout: 246 seconds]
gcds has quit [Ping timeout: 245 seconds]
Nathandim has quit [Remote host closed the connection]
Nisstyre has quit [Ping timeout: 265 seconds]
slainer68 has joined #ruby
<apeiros_>
gyre008: just guessing - you probably terminate the ruby script before the callback is invoked
samphippen has joined #ruby
<gyre008>
yeah I put EM.stop inside the callback and all works fine...mm...my mistake...stupid copy-paste errors ;)
<gyre008>
cheers apeiros_
zigomir has quit [Quit: Leaving]
arya has quit [Ping timeout: 246 seconds]
somazero has quit [Quit: Leaving]
kirun has joined #ruby
jackiechan0 has quit [Quit: Sto andando via]
arya has joined #ruby
bpfh has joined #ruby
futilegames has joined #ruby
bwlang has joined #ruby
keanehsiao has quit [Quit: keanehsiao]
JustinCampbell has joined #ruby
chussenot has joined #ruby
Nisstyre has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
clocKwize has joined #ruby
zigomir has joined #ruby
arya_ has joined #ruby
malkomalko has quit [Remote host closed the connection]
pcarrier_ has quit []
bwlang has left #ruby [#ruby]
mengu has joined #ruby
arya has quit [Ping timeout: 265 seconds]
ffranz has joined #ruby
jamesaxl has joined #ruby
<Xeago>
how to do secure text entry in ruby?
jeffreybaird has joined #ruby
skaczor has joined #ruby
jxf has joined #ruby
rohit has quit [Quit: Leaving]
fixl has quit [Read error: No route to host]
fixl has joined #ruby
skattyadz has joined #ruby
statarb3 has joined #ruby
arya_ is now known as arya
trevortwining has joined #ruby
Danielpk has joined #ruby
bwlang has joined #ruby
Danielpk has left #ruby [#ruby]
JonnieCache has quit [Quit: Reconnecting]
JonnieCache has joined #ruby
alextheger has left #ruby [#ruby]
dmiller has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
apeiros_ has quit [Remote host closed the connection]
habib has joined #ruby
arya has quit []
arya has joined #ruby
abionic has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
_nitti has joined #ruby
ttt has quit [Remote host closed the connection]
<habib>
hi everyone! what if i installed ruby using RVM? Do i need to install gems some special way? or just gem install ...?
mark_locklear has joined #ruby
ABK has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby
jonathanwallace has joined #ruby
<ddd>
as the rvm site shows in the docs, you just install as normal
<habib>
ah ok thnx.
<ddd>
rvm.io
Guest59734 is now known as dpk
pcarrier has joined #ruby
pcarrier has quit [Max SendQ exceeded]
peter1 has joined #ruby
pcarrier has joined #ruby
jprovazn has quit [Quit: Leaving]
_nitti has quit [Ping timeout: 264 seconds]
apeiros_ has quit [Remote host closed the connection]
<MarcWeber>
line 6: float: should this be float; ?
krawchyk has joined #ruby
<sonne>
how do you change the program name in ruby? $0 = 'foo' doesn't seem to work, the program is not found by tools like killall
<Xeago>
isn't it always going to be called ruby, or whatever executable is used as interpreter?
dr_bob has quit [Quit: Leaving.]
<sonne>
Xeago, well... if i run unicorn, for example, i can 'killall unicorn'
<MarcWeber>
Xeago: on linux you pass the name as argument to exeucv* like functions. It usually is the same as the filename.
<JonnieCache>
sonne: thats because unicorn is run from a file called unicorn
<sonne>
MarcWeber, i think there is a typo...
<sonne>
JonnieCache, well mine is being run from a file called 'a.rb', still 'killall a.rb' doesn't find it, but 'killall ruby' does
<sonne>
MarcWeber, on line 6 you might want to change :float: to :float;
<JonnieCache>
you are still running "ruby a.rb" though, correct?
<sonne>
nope, ./a.rb
<JonnieCache>
hmmm
<sonne>
even in C overwriting argv[0] is not enough, you have to use 'setproctitle' - which ruby doesn't implement... but i wonder how can unicorn and other tools do this trick
<sonne>
ubuntu 12.04, running latest 1.9.3 from rbenv
dr_bob has joined #ruby
ofcan has joined #ruby
<sonne>
also, the thread doesn't mention ruby versions...
<ofcan>
hi guys! I have some experience with Rails, JS, jQ etc, but not much with ruby. I'm trying to implement this > upload a file to my webpage. than upon each change of that file, automatically upload to webpage. how hard is it to implement and where to start? any help is greatly appreciatted!
samuel02 has joined #ruby
<ofcan>
and is it ok to try to implement this with ruby?
Elico has joined #ruby
<sonne>
ofcan, how would you handle the "automatically upload upon each change"?
<ofcan>
sonne: don't know, that's why I ask. Can't I monitor the file somehow, like the times the file changed or something?
<sonne>
i don't think you can, if you're talking about a webapp
<Xeago>
I think he's talking about something he runs locally
c0rn has quit [Quit: Computer has gone to sleep.]
<Xeago>
that detects the changes and then uploads
<sonne>
if the program is supposed to be ran on the client then i guess it shouldn't really be a hassle
<ofcan>
sonne: something similar to git hooks?
<sonne>
i'd go for fuse, might be the easiest way
d34th4ck3r has quit [Ping timeout: 276 seconds]
<sonne>
(if your OS supports it of course)
<hoelzro>
inotify would also work
<hoelzro>
or kqueue/FSEvents
<Xeago>
ofcan: what os?
cakehero has joined #ruby
<ofcan>
Xeago: I am trying to build it regardless of the os
apeiros_ has joined #ruby
<Xeago>
tricky :)
<sonne>
ofcan, you'll have to replicate the monitoring code then.... i don't think there is a solution that works on all platforms
<hoelzro>
unfortunately, monitoring files for changes isn't guaranteed to be implemented by an OS
pcarrier has quit []
<hoelzro>
and in those that it is, it's usually wildly different
<Xeago>
I think the most compatible is something you write yourself from scratch, that compares contents of file every time it accesses it
samphippen has joined #ruby
cakehero has quit [Client Quit]
<hoelzro>
I started a project to do this a while back, it's a difficult problem =)
AndChat| has joined #ruby
<sonne>
aye... maybe a File.mtime in a loop?
jeffreybaird has quit [Quit: jeffreybaird]
<Xeago>
expecting sane users that could do, but how precise is mtime?
<hoelzro>
ofcan: how many files do you need to monitor?
<hoelzro>
Xeago: one second
mikecmpbll has joined #ruby
jeffreybaird has joined #ruby
<ofcan>
hoelzro: preferably many ( prolly 10- 20 )
<Xeago>
also, rsync'ing it forever could work, if you don't care about performance
<Xeago>
rsync will detect changes afaik
joofsh has joined #ruby
<Xeago>
and is like basically everywhere
pcarrier has joined #ruby
<ofcan>
Xeago: would the user have to download something for the rsync to work and monitor the files correctly?
habib has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<sonne>
Xeago, well not really... it's not very easy to get it on windows
<Xeago>
there's cygwin
<Xeago>
kinda easy
tvw has quit [Ping timeout: 246 seconds]
<sonne>
Xeago, relatively... the average joe would never want to even know what cygwin is - depends on the target audience i guess
<sonne>
anyway ofcan, yours looks much like a design issue... you should first figure out how your program would work and then check whether ruby is the best tool for it
samuel02 has quit [Remote host closed the connection]
<ofcan>
yes, the target audience doesn't know anything about computers except bare minimums. all they should do is log to my website, select upload file or folder, select it, and upon each change that file would be uploaded to cloud. thats the idea :)
<Xeago>
what
<Xeago>
from a webapp?
invisime has joined #ruby
<ofcan>
Xeago: that is the ultimate idea. :)
<sonne>
then <sonne> i don't think you can, if you're talking about a webapp
<Xeago>
how'd you regain access? hidden form that saves the paths to files and post/put that over constantly?
pavilionXP has joined #ruby
tommyvyo has joined #ruby
pcarrier has quit [Ping timeout: 244 seconds]
<ofcan>
Xeago: what if they download the client locally.. than it's easy, right?
<Xeago>
kinda
Virunga has joined #ruby
<Xeago>
but are you going to package ruby with the download?
<Xeago>
I would go for several clients doing the same thing depending on platform
pcarrier has joined #ruby
<Xeago>
or you could go java and depend on that, which is bnecoming more uncommon nowadays
gmci has joined #ruby
<sonne>
there's a whole world out there about packaging standalone ruby applications..
<ofcan>
hmmm... so the principle would be this > download the client > select files and folders to monitor > when they change, upload them to my account to cloud
<ofcan>
doable, right?
phantasm66 has quit [Quit: *sleeeeep*]
JonnieCache has quit [Quit: Lost terminal]
JonnieCache has joined #ruby
_alejandro has quit [Remote host closed the connection]
<catphish>
i didn't do the windows and OS X apps personally, i'm told windows was the hardest because there's no notification library (until win 8 anyway)
<catphish>
linux is my area
<catphish>
and i design the protocols
<Xeago>
windows has it within .net but only halfly
Slivka has joined #ruby
<catphish>
interesting project anyway
<Xeago>
requires .net 4.5 thp
<Xeago>
not sure if that is supported on vista
ssspiff has quit [Remote host closed the connection]
<catphish>
people keep asking me to build a dropboxy file upload tool
<catphish>
could probably do it now
<Xeago>
isn't there filethingy.io
Guest92676 has joined #ruby
<catphish>
there was nothing free last time i looked
<catphish>
it's a kinda all-in-one development tool
<catphish>
git / project management
ttt has joined #ruby
<catphish>
sorry, i generally avoid advertising too much here
<Xeago>
no need to be sorry, I like it
<catphish>
it's a good tool
<Xeago>
I could rather thank you, using beebole atm
<Xeago>
not really satisfied with that
jeffreybaird has joined #ruby
jsegura has joined #ruby
<catphish>
tbh time tracking is by far the weakest part of the product
phantasm66 has joined #ruby
<catphish>
we don't have any of the reporting tools they do
<Xeago>
can I link to issue's?
<catphish>
yes
<Xeago>
asin, spend x time on issue 38
<catphish>
and add time from git commits
<Xeago>
sufficient for me :)
<Xeago>
that is just sweet
<JonnieCache>
i use codebase :)
<JonnieCache>
or used to
<JonnieCache>
its good
<catphish>
you can make a commit message like "fix issue 10 [resolved:10] {t:60}"
<catphish>
which updates the issue and add time
<JonnieCache>
thats the thing i miss about it
<Xeago>
hmm, why require [resolved:10]
tomsthumb has joined #ruby
<catphish>
so it knows what ticket to update and what status to apply to it
tobinharris has joined #ruby
<Xeago>
can't that be parsed out of "fix issue 10" ?
<catphish>
nope :)
<brendan->
then you'd be forced to make the commit messages the same
<catphish>
fix issue 10 was just some arbitrary english text
tnk1 has quit [Ping timeout: 246 seconds]
<JonnieCache>
not if you want to stay sane
<brendan->
i like the little template/placeholder
andrewhl has joined #ruby
<catphish>
you could just do "[resolved:10] {t:60}"
ttt has quit [Ping timeout: 276 seconds]
<Xeago>
Hmm, I find myself often committing like that
<catphish>
but your changelog would be boring
<brendan->
"this is a cool commit [resolved:23]"
<brendan->
i like that format better
<Xeago>
and a more detailed explanation on the 3rd-end lines
sailias has joined #ruby
bwlang has joined #ruby
<Xeago>
I honestly dislike, maybe even hate such a commit brendan
<Xeago>
the title line of the commit message tells me less than the [resolved:23] does
phantasm66 has quit [Ping timeout: 252 seconds]
asaaki has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
<Xeago>
"fix issue 10\n\nThere are some very nice bits in the code\n especially file.lang:123-130"
<Xeago>
if that makes a bit of sense
<catphish>
i usually go with "add a validation to prevent customers with blank names [resolved:10] {t:15}"
<catphish>
never used multiline messages personally
asaaki has joined #ruby
<brendan->
my commit messages wouldn't be literally like that, but it'd be "updated index.html to include <marquee> and also added the CSS to style the marquee. [resolved:5]"
<Xeago>
brendan-: that is way more than 72 characters..
<Xeago>
and won't display nicely in git log's..
<brendan->
but you get an idea of what i specify
<Xeago>
I do but the significance of the commit is shady without the [resolved:5]
iamjarvo has quit [Quit: Computer has gone to sleep.]
guy__ has joined #ruby
volta has joined #ruby
<catphish>
it can be cool to go the other way and see all commits that related to an issue
<Xeago>
"When you change, we will change your limits straight away and start your new billing amount from your next renewal date"
<Xeago>
thanks for that
vlad_starkov has joined #ruby
<Xeago>
I dispute services that don't do that
<Xeago>
:)
nomenkun has quit [Ping timeout: 245 seconds]
hotovson_ has quit [Ping timeout: 245 seconds]
<Xeago>
that for me makes it clear that focus isn't on money but on the service
<catphish>
if someone is using the extra resources they will pay for them soon enough
<catphish>
we focus on making things easy where possible
<Xeago>
catphish: yes, you mean that in the recommended git commit format, the 1 liners don't tell as much when focusing on just 1 issue?
dr_bob has quit [Quit: Leaving.]
<Xeago>
I guess it is easier in the code as well, isn't it?
<catphish>
the pro-rated upgrades?
<Xeago>
"the pro-rated upgrades"?
tomsthumb has quit [Quit: Leaving.]
<catphish>
sorry, what's easier in the code?
<Xeago>
not rebilling immediately
dmerrick has joined #ruby
cakehero has joined #ruby
<Xeago>
but at the next monthly billing periodthingy
hotovson has joined #ruby
<catphish>
actually, my team tell me it's changed
<catphish>
because people can now pay for up to a year in advance
<catphish>
if the upgrade would code more than £5 we do charge
<catphish>
better update that!
ToTo has joined #ruby
answer_42 has joined #ruby
piotr__ has joined #ruby
arya has quit [Read error: Connection reset by peer]
piotr_ has quit [Ping timeout: 240 seconds]
<catphish>
we couldn't give people a whole year of upgrade :)
jonathanwallace has quit [Remote host closed the connection]
volta has quit [Remote host closed the connection]
arya has joined #ruby
<Xeago>
yea, seems fair for yearly payments. Monthly payments still have the immediate upgrade stuff?
miss0r has joined #ruby
<catphish>
it's done on value now
<Xeago>
ah ok
<Xeago>
fair aswell :)
_alejandro has joined #ruby
<catphish>
it calculates the difference in plans, times the length of time
<catphish>
and if it's less then £5 then it's free
joofsh has quit [Remote host closed the connection]
joofsh has joined #ruby
<catphish>
there's no point raising invoices for small amounts of money, it's just more unnecessary admin work (mainly for the customers, as ours is automated)
<Xeago>
uhu, totally
cezar has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 245 seconds]
<guy__>
I'm trying to run "bundle install" on a Gemfile, however I'm getting http://pastebin.com/N09zU7Up " syntax error, unexpected ':', expecting $end \r\n gem "grit", git: :"https://github.com/gitlabhq.. " , can anyone hint why ?
x82_nicole has joined #ruby
skattyadz has quit [Quit: skattyadz]
samphippen has quit [Quit: Computer has gone to sleep.]
Goles has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
casheew has quit [Read error: Connection reset by peer]
nomenkun_ has quit [Read error: Connection reset by peer]
<catphish>
JonnieCache: graphs and trees are always good fun, learned more since starting with C
jstew has joined #ruby
nomenkun has joined #ruby
ananthakumaran has joined #ruby
eldariof has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
SCommette has joined #ruby
JohnBat26 has quit [Ping timeout: 260 seconds]
<Uranio>
hi, I have this error from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
<Uranio>
/usr/local/lib/ruby/gems/1.9.1/gems/mail-2.5.2/lib/mail/fields/unstructured_field.rb:149:in `encode!': "\xC3" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
<Uranio>
how could I pass it, I mean, no matter how the character see when come outside
<Uranio>
just for not stop the program
chrishunt has joined #ruby
larissa has quit [Quit: Leaving]
<Xeago>
if the input is truly ascii-8bit, there is no reason it should fail
alex__c2022 has joined #ruby
<Uranio>
well, but fail
<Xeago>
you could rescue but not sure how that would affect the rest of your program
grzywacz has quit [Quit: :wq]
mohanmcgeek has joined #ruby
volta has joined #ruby
arturaz has quit [Remote host closed the connection]
ryannielson has joined #ruby
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ffranz1 has joined #ruby
<Uranio>
begin
<Uranio>
# trata de codificar la pagina
<Uranio>
pagina.encode! Encoding::UTF_8 if pagina.encoding != Encoding::UTF_8
u89 has joined #ruby
<Uranio>
# si falla codificala a la fuerza a como de lugar
<workmad3>
force_encoding just manually sets the encoding attribute doesn't it? it doesn't actually transcode any bytes
<apeiros_>
you have to force_encode it to the source encoding
dnstbr has joined #ruby
<apeiros_>
then encode! it to utf-8
<Uranio>
< Uranio | how could I pass it, I mean, no matter how the character see when come outside>
<apeiros_>
and since you speak italian, I'd say it's 80% windows-latin1 and 20% macroman
ffranz has quit [Ping timeout: 260 seconds]
<workmad3>
Uranio: what you have is (if it's ASCII-8bit) binary data, which means it can have arbitrary byte sequences that don't make sense as UTF-8... if it's not binary data, and really something else, do as apeiros_ said and force the encoding to the *source*, not the target
<apeiros_>
Uranio: base rules of encodings: there is NO reliable way of detecting the encoding automatically.
<apeiros_>
Uranio: which means your source MUST supply the encoding.
<apeiros_>
everything else is just asking for trouble.
cakehero has quit [Quit: Computer has gone to sleep.]
<Uranio>
we know where the accutes are, I the spanish talker see acci?n their see ass acción
jxf has quit [Ping timeout: 246 seconds]
<Uranio>
so, is a bad solution bud... work
<apeiros_>
…
jianxioy has joined #ruby
<Uranio>
I = if
jxf has joined #ruby
* apeiros_
no longer wonders why so many apps handle encoding so crappily
d34th4ck3r has quit [Ping timeout: 245 seconds]
<apeiros_>
about everybody who asks an encoding related question here ends up doing a crap solution anyway…
<Uranio>
apeiros_: I still wondering, casue my need is for a script in the personal usage, no an APP
jianxioy has quit [Client Quit]
<Uranio>
casue = cause
pcarrier has quit []
<apeiros_>
Uranio: coding is habits. you're forming a bad habit. you'll continue to use that bad habit.
<Uranio>
that true
<Uranio>
but codgin is a pain in the butt
banisterfiend has quit [Remote host closed the connection]
<Uranio>
codgin = coding
<apeiros_>
gotta get off, to take my train. will be back in ~30min
<Uranio>
bon voyage :D
<workmad3>
Uranio: coding is only a PITA if you're doing it badly
xorigin has quit [Quit: leaving]
<apeiros_>
well, I can understand that new problems can be PITA
<Uranio>
workmad3: the case of my script, will take some diferent coding everytime is runing, so
<apeiros_>
especially the less control you have over the problem domain
<apeiros_>
anyway, off now :D
<apeiros_>
cya'll
apeiros_ has quit [Remote host closed the connection]
<Xeago>
can't we just live with ascii?
<Xeago>
stupid languages
jianxioy has joined #ruby
<Uranio>
I wonder what the greeks, russian and japanesse think about this bussines
danneu has joined #ruby
r0bby has joined #ruby
cousine has joined #ruby
pcarrier has joined #ruby
kurttt has joined #ruby
jianxioy has quit [Client Quit]
topek has quit [Quit: Leaving.]
h8R has quit [Ping timeout: 245 seconds]
JustinCampbell has left #ruby [#ruby]
rippa has joined #ruby
jamescarr has joined #ruby
<jamescarr>
heya... is there someway to create an object and set all the attributes in one line?
<jamescarr>
like Person.new(name: 'James', age:'too old') ?
<tsou>
Uranio: i think we are the ones who most loved utf-8 :P
<shevy>
jamescarr I think with struct
<workmad3>
tsou: well, the japanese didn't exactly love unicode off the bat :P
<jamescarr>
shevy: do I need to extend / mix it in?
<workmad3>
jamescarr: your syntax ( Person.new(name: "james", age: "too old") ) is fine, just the handling of that in method args is such that you end up with a hash passed to the method, rather than being able to use named arguments directly
LBRapid has joined #ruby
<workmad3>
jamescarr: the initialize method would get a hash {name: "james", age: "too old"} in that example, which you'd then decompose and store appropriately
Drewch has quit [Remote host closed the connection]
ffranz has quit [Ping timeout: 245 seconds]
Drewch_ is now known as Drewch
devdude has joined #ruby
seeingidog__ has quit [Ping timeout: 260 seconds]
BeLucid_ has joined #ruby
ToTo has quit [Quit: Leaving...]
<jamescarr>
how do you access member variables dynamically?
<jamescarr>
in this case, I want to take the hash assign my member vars with it
Drewch has quit [Remote host closed the connection]
<hoelzro>
jamescarr: instance_variable_set or instance_variable_get
BeLucid has quit [Ping timeout: 246 seconds]
monkegji_ has joined #ruby
Drewch has joined #ruby
maesbn has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 246 seconds]
ThaDick has joined #ruby
emptyflask has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<hoelzro>
jamescarr: I personally prefer using accessors
CaptainJet has joined #ruby
<JonnieCache>
the person who comes along to read your code will thank you
<hoelzro>
for the hash initialization style
cezar has joined #ruby
<JonnieCache>
pulling that kind of stunt is just mean
Drewch has quit [Client Quit]
<jamescarr>
hoelzro: I am using those too
rmcafee has quit [Remote host closed the connection]
rmcafee has joined #ruby
mksm has quit [Read error: Operation timed out]
Drewch has joined #ruby
Drewch has quit [Remote host closed the connection]
Drewch has joined #ruby
rodasc has joined #ruby
crodas has quit [Ping timeout: 246 seconds]
aganov has quit [Remote host closed the connection]
justinweiss has quit [Ping timeout: 248 seconds]
apeiros_ has joined #ruby
TheMoonMaster has quit [Ping timeout: 264 seconds]
justinweiss has joined #ruby
mksm has joined #ruby
TheMoonMaster has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
abrongersma has joined #ruby
rodasc has quit [Excess Flood]
banisterfiend has joined #ruby
dakine has joined #ruby
brimil01 has joined #ruby
davidcelis has quit [Quit: K-Lined.]
crodas has joined #ruby
banisterfiend has quit [Remote host closed the connection]
ofcan has quit [Quit: leaving]
seme has joined #ruby
chrishunt has quit [Quit: Leaving...]
atno|AFK is now known as atno
kil0byte has joined #ruby
Mkman has joined #ruby
<seme>
hey guys... I'm trying to develop a command line tool that queries a rest service but I don't want the user to have to enter their username/pass every time they execute the command... is there a good example of how to cache those credentials between each command in a secure way?
tuannat has joined #ruby
mohanmcgeek has quit [Ping timeout: 268 seconds]
tuannat has quit [Max SendQ exceeded]
kil0byte_ has quit [Ping timeout: 240 seconds]
k610 has quit [Ping timeout: 276 seconds]
tuannat has joined #ruby
kil0byte_ has joined #ruby
<JonnieCache>
not really
nomenkun has quit [Read error: Connection reset by peer]
sailias has quit [Ping timeout: 245 seconds]
<JonnieCache>
depends on what you mean by secure
nomenkun has joined #ruby
jamesaxl has quit [Ping timeout: 260 seconds]
<seme>
well I don't want to have them store their username/pass in a config file or pass it as an arg on the command line (gets stored in history)
tjbiddle has joined #ruby
jamesaxl has joined #ruby
kil0byte has quit [Ping timeout: 255 seconds]
jgrevich has joined #ruby
otters has quit [Ping timeout: 260 seconds]
arya has quit [Ping timeout: 255 seconds]
<seme>
so I'm trying to figure out what to do after I prompt them for it (i can make sure nothing visible gets stored in the shell) ... I want to store it in some way between calls...
tjbiddle_ has joined #ruby
timonv has quit [Remote host closed the connection]
johnmilton has joined #ruby
philcrissman has quit [Remote host closed the connection]
|Monie| has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
zigomir has quit [Ping timeout: 244 seconds]
<qubit>
is there a way to accomplish the same thing as the prctl(PR_SET_PDEATHSIG) in C? Basically send a signal to a child process when it's parent dies
tjbiddle has quit [Ping timeout: 245 seconds]
tjbiddle_ is now known as tjbiddle
ryanf has joined #ruby
ryanf has quit [Client Quit]
<JonnieCache>
seme: if you dont want them to have to enter a password again, then you have to store the password in plaintext somewhere
<JonnieCache>
seme: people will be able to find it and steal it
<JonnieCache>
theres no way around that really
<sweet_kid>
seme: use cryptographic algorithms for storing username/password
<hoelzro>
seme: you could use a sort of auth agent
<hoelzro>
like ssh-agent or gpg-agent
<JonnieCache>
hoelzro: hes querying an http api so thats out
<hoelzro>
s/like/similar to/
atno is now known as atno|AFK
Jamone has quit [Ping timeout: 244 seconds]
arya has joined #ruby
shikamaru has quit [Ping timeout: 240 seconds]
Monie has joined #ruby
Morkel has quit [Quit: Morkel]
<seme>
hrm...
chussenot_ has joined #ruby
cardoni has joined #ruby
<seme>
I guess for now I could use keychain on my mac but that will make it less portable
|Monie| has quit [Ping timeout: 255 seconds]
sailias has joined #ruby
shevy has quit [Ping timeout: 260 seconds]
<jamescarr>
argh
<jamescarr>
how do you access instance variables when inside a block?
<apeiros_>
@ivar
<apeiros_>
except if that block is being instance_eval'ed
<apeiros_>
then you'd have to go through an accessor
chussenot has quit [Ping timeout: 240 seconds]
chussenot_ is now known as chussenot
<jamescarr>
I just did 0 = self before the block
<jamescarr>
o = self
codezombie has joined #ruby
jackdanger has joined #ruby
vlad_starkov has joined #ruby
<JonnieCache>
seme: keychain is the closest thing youre doing to get. theyve gone to a lot of cryptographic effort to make it secure, but you can still steal stuff out of it
jsegura has quit [Quit: Leaving]
<JonnieCache>
seme: its a mathematical inevitability
philcrissman has joined #ruby
<JonnieCache>
seme: but probably not that important
dankest has joined #ruby
jackiechan0 has joined #ruby
jackiechan0 has quit [Read error: Connection reset by peer]
<Xeago>
seme: you could use gpg-agent, the gpg-agent will be started when first needed and prompts for password, after that you can freely access the password
cardoni has quit [Quit: cardoni]
tomsthumb has joined #ruby
futilegames has quit [Quit: futilegames]
vlad_sta_ has joined #ruby
benlieb has joined #ruby
benlieb has quit [Quit: benlieb]
<seme>
aah thanks
<seme>
that makes sense
benlieb has joined #ruby
<swarley>
Muwahahahaha, I've hacked load and eval to use Hackage#infiltrate
minijupe has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
<swarley>
now the world shall be able to use weird syntax
cardoni has joined #ruby
minijupe has quit [Client Quit]
benlieb has quit [Client Quit]
benlieb has joined #ruby
hoelzro is now known as hoelzro|away
alvaro_o has joined #ruby
ryanlecompte has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
cakehero has joined #ruby
Monie has quit [Ping timeout: 260 seconds]
tommyvyo has quit [Ping timeout: 265 seconds]
seanyo has quit [Ping timeout: 240 seconds]
c0rn has joined #ruby
arturaz has joined #ruby
shevy has joined #ruby
blazes816 has joined #ruby
aantix has joined #ruby
geggam has joined #ruby
Virunga has quit [Remote host closed the connection]
tommyvyo has joined #ruby
BigO has joined #ruby
davidcelis has joined #ruby
Trioke has quit [Ping timeout: 265 seconds]
Lowl3v3l has joined #ruby
Lowl3v3l has left #ruby [#ruby]
r0bby is now known as robbyoconnor
Trioke has joined #ruby
dnievas has joined #ruby
dekroning has quit [Ping timeout: 268 seconds]
jlast_ has joined #ruby
filipe has quit [Remote host closed the connection]
tommyvyo has quit [Ping timeout: 260 seconds]
matrixise has quit [Ping timeout: 252 seconds]
jlast has quit [Ping timeout: 265 seconds]
seeingidog__ has joined #ruby
tommyvyo has joined #ruby
Floydzy has quit [Quit: Floydzy]
samphippen has joined #ruby
dankest is now known as dankest|away
dmiller has joined #ruby
seeingidog__ has quit [Ping timeout: 255 seconds]
dnievas has left #ruby ["Leaving"]
hoelzro|away is now known as hoelzro
BoomCow has joined #ruby
wallerdev has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
nomenkun has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 252 seconds]
<apeiros_>
proper initialization >> ||= any time
Elico has quit [Quit: elico]
<apeiros_>
counts = Hash.new(0)
the_jeebster has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
rlpowell has joined #ruby
chriss_ has quit [Quit: chriss_]
Elico has joined #ruby
mercwithamouth has joined #ruby
<failshell>
apeiros_: thanks for your enlightment
rlpowell has left #ruby [#ruby]
<failshell>
didnt know i could do that
<failshell>
jackdanger: thanks for your help too :)
sepp2k has joined #ruby
nat2610 has quit [Quit: Leaving.]
nat2610 has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
seme has quit [Ping timeout: 265 seconds]
<Goles>
Anyone here using tmux on mac os x with vim for rails development?
apok has quit [Quit: apok]
dnstbr has quit [Quit: Computer has gone to sleep.]
joel has joined #ruby
<joel>
I'm trying to install librarian gem to windows, but it requires tools like make, etc. Thoughts on how to get it working? :\
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
zz_chrismcg is now known as chrismcg
Banistergalaxy has joined #ruby
arturaz_ has joined #ruby
monkegji_ has quit [Remote host closed the connection]
monkegji_ has joined #ruby
d34th4ck3r has joined #ruby
Monie has quit [Ping timeout: 255 seconds]
Vainoharhainen has quit [Quit: Leaving...]
_bart has quit [Quit: _bart]
jrajav has quit [Quit: I tend to be neutral about apples]
<shevy>
joel no idea. best is to (1) look at the error log and publish it so that others here can help you (most are on mac or linux I guess) (2) you can try to get the coreutils etc... via msys or cygwin
genshu has quit [Quit: Verlassend]
Mkman has joined #ruby
<joel>
devkit.
geggam_ has joined #ruby
<joel>
error log wouldn't help O.o.
<joel>
devkit.
joel has quit [Quit: ChatZilla 0.9.89 [Firefox 14.0.1/20120713134347]]
<shevy>
I have no idea what that means
monkegji_ has quit [Ping timeout: 240 seconds]
geggam has quit [Ping timeout: 246 seconds]
jlast_ has quit [Remote host closed the connection]
arietis has joined #ruby
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
jlast has joined #ruby
cousine has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
samphippen has joined #ruby
seeingidog__ has joined #ruby
timmow has quit [Quit: is having a nap]
emptyflask has quit [Remote host closed the connection]
jackiechan0 has joined #ruby
failshell has quit [Quit: Lost terminal]
tomsthumb has quit [Quit: Leaving.]
sn0wb1rd has joined #ruby
Monie has joined #ruby
Trioke_ has joined #ruby
seeingidog__ has quit [Ping timeout: 240 seconds]
seeingidog__1 has joined #ruby
Trioke has quit [Ping timeout: 264 seconds]
jrist is now known as jrist-afk
cdt has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
bricker has joined #ruby
mascool has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
J-_-L has joined #ruby
volta has quit [Remote host closed the connection]
BrianJ has quit [Quit: BrianJ]
qwerxy has quit [Quit: offski]
crodas has quit [Read error: Operation timed out]
kil0byte has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 268 seconds]
margle has quit [Quit: Computer has gone to sleep.]
crodas has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Eol has joined #ruby
JohnBat26 has joined #ruby
bradhe has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
<Eol>
Anybody have any ideas what might be wrong: Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (no such file to load -- pg) (I've installed both PG and activerecord gems)
banisterfiend has joined #ruby
gyre008 has quit [Remote host closed the connection]
<Cadwallion>
but did you install activerecord-postgresql-adapter?
timonv has quit [Ping timeout: 252 seconds]
tobinharris has quit [Quit: tobinharris]
d34th4ck3r has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
philcrissman has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 260 seconds]
<Eol>
i indeed did
dmiller has joined #ruby
jxf has joined #ruby
seeingidog__1 has quit [Quit: Leaving.]
<Eol>
I read something about "pg" needed to be added to Gemfile? Where is gemfile?
voodoofish430 has joined #ruby
timonv has joined #ruby
philcrissman has joined #ruby
margle has joined #ruby
rakl has joined #ruby
adeponte has quit [Remote host closed the connection]
tommyvyo_ has quit [Read error: Connection reset by peer]
alee- has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
Axsuul has joined #ruby
tommyvyo_ has joined #ruby
nricciar has quit [Read error: Connection reset by peer]
nricciar has joined #ruby
brendan- has quit [Remote host closed the connection]
chrismcg is now known as zz_chrismcg
Virunga has joined #ruby
pyr0commie has joined #ruby
adeponte has joined #ruby
jedediah has joined #ruby
slainer68 has quit [Remote host closed the connection]
jekotia has joined #ruby
pcarrier has quit []
bradhe has joined #ruby
brendan_ has joined #ruby
cardoni has quit [Quit: cardoni]
tintin has joined #ruby
<tintin>
To draw a button/checkbox/textbox , how is it done with ruby?
<apeiros_>
that'd depend entirely on the context
arturaz has quit [Remote host closed the connection]
<tintin>
Like in Java, there is swing/awt
<apeiros_>
you can use swing/awt with ruby
jackiechan0 has quit [Quit: Sto andando via]
chrishunt has quit [Quit: Leaving...]
yshh has quit [Remote host closed the connection]
<tintin>
What ? how?
<apeiros_>
jruby's website has certainly something on it
<apeiros_>
or just google "jruby swing"
<tintin>
I'm talking about ruby not jruby
<apeiros_>
jruby is ruby.
<tintin>
I will not use jruby
<apeiros_>
why?
<tintin>
I will use ruby that is writen in C, not java
<apeiros_>
why?
<tintin>
why not?
<apeiros_>
that's not an answer
<tintin>
Cruby is the original ruby
<tintin>
by mat
<apeiros_>
cruby is now by ko1, does that mean you won't use it anymore either and stick with 1.8?
<tintin>
apeiros_: What do you mean by ko1 ?
<apeiros_>
koichi, the guy behind yarv
<tintin>
So what?
<tintin>
is yarv writen in Java?
<apeiros_>
anyway, if for whatever silly and nonsensical reasons you don't want to use jruby, there's Qt, Tk, Fox, Shoes and probably quite some more GUI frameworks. do yourself a favor and learn to google.
jamesaxl has quit [Ping timeout: 256 seconds]
jamesaxl has joined #ruby
geggam has joined #ruby
Russell^^ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jivD has left #ruby [#ruby]
pcarrier has joined #ruby
geggam_ has quit [Ping timeout: 252 seconds]
chrishunt has joined #ruby
samphippen has joined #ruby
cardoni has joined #ruby
beiter has quit [Quit: beiter]
love_color_text_ has quit [Remote host closed the connection]
love_color_text_ has joined #ruby
love_color_text_ has quit [Changing host]
love_color_text_ has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
carlyle has joined #ruby
pcarrier has quit [Ping timeout: 252 seconds]
ninegrid has quit [Ping timeout: 245 seconds]
tintin has left #ruby [#ruby]
BrianJ has joined #ruby
enroxorz-work has joined #ruby
ninegrid has joined #ruby
mercwithamouth has joined #ruby
icole has joined #ruby
quiyo has joined #ruby
chrishunt has quit [Quit: Leaving...]
yshh has joined #ruby
kil0byte has joined #ruby
dekroning has joined #ruby
hashpuppy has joined #ruby
icole has quit [Remote host closed the connection]
emptyflask has joined #ruby
icole has joined #ruby
amscotti has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
ninegrid has quit [Read error: Operation timed out]
quiyo has left #ruby [#ruby]
pcarrier has joined #ruby
ossareh has joined #ruby
pcarrier has quit [Client Quit]
pcarrier has joined #ruby
jrist-afk is now known as jrist
havenn has joined #ruby
chrishunt has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
d2dchat has quit [Remote host closed the connection]
Guest92676 has quit [Quit: Guest92676]
rippa has quit [Ping timeout: 265 seconds]
tomsthumb has joined #ruby
cascalheira has quit [Quit: Leaving...]
mtree is now known as mtree0
nivoc has quit [Ping timeout: 245 seconds]
emmanuelux has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.9.1]
Iszak has joined #ruby
xnm has quit [Quit: WeeChat 0.3.8]
Goles has quit [Remote host closed the connection]
burgestrand has joined #ruby
timonv_ has joined #ruby
ckrailo has joined #ruby
<flip_digits>
Question: when I don't provide any input at the console #gets returns this "\"\\\"\\\"\"" why is that?
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
clj_newb has joined #ruby
chimkan_ has quit [Quit: chimkan_]
timonv has quit [Ping timeout: 276 seconds]
haxrbyte has joined #ruby
Mon_Ouie has joined #ruby
tjbiddle_ has joined #ruby
xorigin has joined #ruby
mengu has quit [Quit: Konversation terminated!]
tjbiddle has quit [Ping timeout: 255 seconds]
tjbiddle_ is now known as tjbiddle
arturaz_ has quit [Remote host closed the connection]
emptyflask has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
Tuxist has joined #ruby
Tuxist_ has quit [Ping timeout: 276 seconds]
Elhu has joined #ruby
bradhe has joined #ruby
cousine has quit [Remote host closed the connection]
matrixise has joined #ruby
margle has joined #ruby
Xeago has joined #ruby
Tuxist_ has joined #ruby
dnstbr has joined #ruby
reset has joined #ruby
Tuxist has quit [Ping timeout: 260 seconds]
chrishunt has quit [Quit: Leaving...]
hotovson has quit [Remote host closed the connection]
chrishunt has joined #ruby
tjbiddle_ has joined #ruby
chussenot has joined #ruby
Tuxist has joined #ruby
xnm has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Tuxist_ has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Ping timeout: 255 seconds]
tjbiddle_ is now known as tjbiddle
haxrbyte has quit [Ping timeout: 244 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
aldodelgado has joined #ruby
Marius has joined #ruby
cascalheira has joined #ruby
cascalheir has joined #ruby
cezar has joined #ruby
maletor has joined #ruby
ThaDick has quit [Quit: I'm outta here!]
chrishunt has quit [Quit: Leaving...]
ZubKonst has joined #ruby
cascalheira has quit [Ping timeout: 265 seconds]
ZubKonst_ has quit [Ping timeout: 256 seconds]
u89 has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
haxrbyte has joined #ruby
u89 has joined #ruby
Danny_Joris has joined #ruby
Uranio has quit [Quit: WeeChat 0.3.8]
tnk1 has joined #ruby
ghanima has joined #ruby
<Danny_Joris>
havenn: hey just wanted to let you know that I downloaded xcode 3.2.6 today and everything works now. I'll keep xcode installed.
cousine has joined #ruby
<Danny_Joris>
havenn: thank you
Tuxist_ has joined #ruby
<Danny_Joris>
it wasn't on the install dvd so I took it from the apple dev site
Tuxist has quit [Ping timeout: 264 seconds]
<ghanima>
hello all... question when the scan method on a String object and one do a regex search for things between a string
<ghanima>
I am not sure who I would construct something like this
SuperrMann has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Remote host closed the connection]
havenn has quit [Read error: Operation timed out]
aharris6 has joined #ruby
<ghanima>
sorry I am let me restate... I am trying to run the scan method against a String object looking for substring in between a set of characters. Is that possible?
haxrbyte_ has joined #ruby
<reactormonk>
ghanima, maybe split accepts a regexp?
aharris6 has quit [Remote host closed the connection]
atno|AFK is now known as atno
cousine has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 252 seconds]
Monie has quit [Quit: Quit]
jamesaxl has quit [Ping timeout: 264 seconds]
jamesaxl has joined #ruby
danshultz has joined #ruby
danshultz has quit [Remote host closed the connection]
s0ber has quit [Read error: Connection reset by peer]
k610 has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
mybrainis404 has joined #ruby
s0ber has joined #ruby
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
chrishunt has joined #ruby
Guest23569 has quit [Ping timeout: 255 seconds]
theRoUS has quit [Ping timeout: 252 seconds]
havenn has joined #ruby
k610 has quit [Ping timeout: 245 seconds]
aquaranto has quit [Remote host closed the connection]
<havenn>
KarlHungus: You beat me to solving your problem!
timonv_ has quit [Read error: No route to host]
k610 has joined #ruby
<havenn>
But exact same solution. >.>
timonv has joined #ruby
<havenn>
Hash[*] is a good trick.
keymone_ has joined #ruby
nanderoo has quit [Excess Flood]
<KarlHungus>
i'd forgotten thats how the constructor worked for a Hash object
<KarlHungus>
yes. very handy trick
keymone has quit [Ping timeout: 260 seconds]
keymone_ is now known as keymone
workmad3 has quit [Ping timeout: 245 seconds]
nat2610 has joined #ruby
oivoodoo has quit [Remote host closed the connection]
timonv has quit [Read error: No route to host]
Marius is now known as nkts
timonv has joined #ruby
k610 has quit [Ping timeout: 268 seconds]
k610 has joined #ruby
k611 has joined #ruby
Monie has joined #ruby
ryannielson has quit [Quit: ryannielson]
mercwithamouth has joined #ruby
Danny_Joris has quit [Ping timeout: 268 seconds]
Averna has joined #ruby
pcarrier has joined #ruby
pcarrier has quit [Max SendQ exceeded]
k610 has quit [Ping timeout: 240 seconds]
[Neurotic] has joined #ruby
dankest|away is now known as dankest
dmiller has quit [Remote host closed the connection]
pcarrier has joined #ruby
wallerdev has quit [Quit: wallerdev]
pcarrier has quit [Max SendQ exceeded]
k611 has quit [Ping timeout: 240 seconds]
pcarrier has joined #ruby
k610 has joined #ruby
aldodelgado has quit [Quit: aldodelgado]
tomsthumb has quit [Quit: Leaving.]
J-_-L has joined #ruby
<shevy>
time to reinstall
shevy has quit [Quit: ""]
<nateberkopec>
how can I search an array for one of several objects? For example, if ['cat','dog','mouse'], then I need "true" if the array contains 'cat' OR 'mouse'
pavilionXP has joined #ruby
philcrissman has quit [Read error: Connection reset by peer]
dnstbr has quit [Quit: Computer has gone to sleep.]
Averna has quit [Quit: Leaving.]
philcrissman_ has joined #ruby
philcrissman_ has quit [Read error: Connection reset by peer]
bradhe has quit [Read error: Connection reset by peer]
<atmosx>
that's 'and' though not 'or'
<apeiros_>
atmosx: no, same issue
bradhe has joined #ruby
<apeiros_>
'bird' && 'cat' is evaluated *before* it is passed as an argument to Array#include?
k610 has quit [Ping timeout: 256 seconds]
<apeiros_>
ruby can not guess what you want it to do
<apeiros_>
it only does as you tell it. and you tell it to evaluate 'bird' && 'cat', which results in 'cat'
<apeiros_>
and passes the result of that to include?
workmad3 has joined #ruby
<atmosx>
if (arr.inclyde?('cat') || arr.include?('dog')) ?
<apeiros_>
yes, that'd work
<Cadwallion>
fix the typo ofc
<atmosx>
might be slow though, because it will loop 2 times through the entire list (if the list is big)
<atmosx>
nateberkopec: so there you go.
banisterfiend has joined #ruby
pyr0commie has joined #ruby
<nateberkopec>
atmosx: yeah, unfortunately the list of things I'm checking for is probably more like 5 to 10 rather than 2, so I'm just going to use the "&" method
senj has quit []
<atmosx>
nice
<danneu>
yeah i like [1,2,3] & [1,3]
<Cadwallion>
ary.any? { |word| list_of_words.include? word }
<apeiros_>
Cadwallion: slow
havenn has quit [Remote host closed the connection]
<apeiros_>
that's O(n*m), Array#& is O(n+m)
havenn has joined #ruby
<Cadwallion>
apeiros_: I mention speed yesterday and you scoff, and today you're talking about speed? ;)
wendallsan has joined #ruby
<apeiros_>
Cadwallion: you confuse performance & scaling
<atmosx>
O is a function?
CamonZ has joined #ruby
<atmosx>
why everyone in IT (stackoverflow actually) uses O instead of good old math-book-wise f(n*x) ?
<atmosx>
In computer science, big O notation is used to classify algorithms by how they respond (e.g., in their processing time or working space requirements) to changes in input size.
<atmosx>
ooh, this explains a lot!
<apeiros_>
yeah, wp usually has good explanations
J-_-L has quit [Ping timeout: 245 seconds]
<Cadwallion>
apeiros_: you confuse jokes & seriousness. :)
wendallsan has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
<apeiros_>
:-p
<applesarefruits>
question: how do I access this manually: a file has a class method that has actions, as part of a web form, something like def function; action(:get, '/'); render :view..... how do i call this action? if i create an instance of the class and call the function
<bricker>
Is it okay to put includes in the middle of a class?
mark_locklear has quit [Remote host closed the connection]
<bricker>
just for organization
wendallsan has quit [Client Quit]
fantazo has quit [Remote host closed the connection]
<Cadwallion>
bricker: there's no problem with include keyword use in the middle of a class definition
havenn has joined #ruby
<danneu>
think it's better organization to reveal included api at top, tho
<bricker>
Cadwallion: I figured that, I was more concerned with convention
<danneu>
then again, it's ruby
Agis__ has quit [Quit: Agis__]
<Cadwallion>
bricker: conventionally I find includes/extends at the top of class definitions
<swarley>
and the object will just return that value when the method is called
<sent-hil>
swarley: that's almost like rspec's mocks
<mikeliss>
Can somebody explain this to me, or give me a pointer to read about it? Is this a regex in a dict key? I'm not a big ruby user yet. name = value && value[/\A(["'])(.*)\1\Z/, 2] #"
<swarley>
[13] pry(main)> k = Object.new; k.stub(:hello, "world".split(//)); k.hello
<swarley>
=> ["w", "o", "r", "l", "d"]
<swarley>
etc
emergion has joined #ruby
rmcafee has quit [Ping timeout: 276 seconds]
<banisterfiend>
swarley: why not just: k = Object.new; def k.hello; "world".split(//); end
bradhe_ has joined #ruby
<swarley>
banisterfiend; that's all the under code is
hoelzro is now known as hoelzro|away
alvaro_o has quit [Ping timeout: 252 seconds]
<swarley>
def stub(name,value); define_singleton_method(name) {value}; end
emergion has quit [Client Quit]
ner0x has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 276 seconds]
bluOxigen has quit [Ping timeout: 276 seconds]
<swarley>
sent-hil; the reason i'm assuming that doesnt work, is because its defining a stub for the class and not the instance. But I don't know how minitest does it
<havenn_>
RVM will provide the pre-compiled Rubies and Gems, even if you don't use Tokaido. Wycats is working with Mpapis and RVM guys.
andrewhl has quit [Remote host closed the connection]
Goles has quit [*.net *.split]
havenn has quit [*.net *.split]
CamonZ has quit [*.net *.split]
pcarrier has quit [*.net *.split]
enroxorz-work has quit [*.net *.split]
tnk1 has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
_nitti has quit [*.net *.split]
jlast has quit [*.net *.split]
johnmilton has quit [*.net *.split]
voodoofish430 has quit [*.net *.split]
invisime has quit [*.net *.split]
IRLConor has quit [*.net *.split]
clocKwize has quit [*.net *.split]
bier_ has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
radic_ has quit [*.net *.split]
shammancer has quit [*.net *.split]
thomasfedb has quit [*.net *.split]
asuka has quit [*.net *.split]
CodeVision has quit [*.net *.split]
qubit has quit [*.net *.split]
telling has quit [*.net *.split]
goraxe has quit [*.net *.split]
mvangala has quit [*.net *.split]
pcarrier_ is now known as pcarrier
<harushimo>
right
chussenot has quit [Quit: chussenot]
<havenn_>
Ruby and RubyGems will be sooo much more pleasant in OS X.
<harushimo>
I hope so
pogo has quit [Read error: Connection reset by peer]
_alejandro has quit [Read error: Connection reset by peer]
<harushimo>
this is big PIA
<havenn_>
harushimo: Yeah, it is. Will be a big improvement. Soon come!!
pogo has joined #ruby
<harushimo>
if they need testers, let me know
<harushimo>
I don't mind testing stuff out
TheMoonMaster has joined #ruby
mattp_ has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
davidboy has joined #ruby
bjeanes has joined #ruby
miss0r has quit []
hotovson has joined #ruby
<afgeneralist>
Greetings all - I'm looking for a Ruby mentor. I don't have any idea about how to go about finding one, so I'm here asking. Can someone point me in the right direction?
<havenn_>
afgeneralist: Are you looking for a remote mentor, or someone near you?
<havenn_>
afgeneralist: Where are you? What level of Ruby.
<afgeneralist>
I'm in the Silicon Valley area - Mountain View specifically. Online would be okay too
bier_ has joined #ruby
shammancer has joined #ruby
<havenn_>
afgeneralist: Are you a beginner or intermediate Rubyist?
applesarefruits has quit [Ping timeout: 276 seconds]
<afgeneralist>
I'm a novice - have done lots of tutorials. Relatively new to programming in general, but I do work in networking so I understand flow of data and can defend myself programming conversations.
<havenn_>
afgeneralist: There are also quite a few Rubyists who have publicly put it out there that they are willing to pair program.
johnmilton has joined #ruby
<afgeneralist>
Thanks, DDD, for the resources.
<afgeneralist>
Havenn, that would be great. When you say publicly, where do I find this?
atmosx has quit [Read error: Connection reset by peer]
metrix has joined #ruby
<havenn_>
afgeneralist: I don't know of a good compiled list, but I've heard a number of prominent Rubyists put out the offer. Hrmm, there was a RubyRogues episode a while back where they listed some names.
xorigin has quit [Quit: leaving]
iPhoneMRZ has quit [Remote host closed the connection]
<afgeneralist>
Ok. I'll do some searching around.
<metrix>
I have a ruby file that I would like to run a specific command when called from the command line, but if it is required by a different file I don't want the specific code to run.. is there a way to do this?
<bricker>
What's a real-world use-case for Proc#arity ?
gmci has joined #ruby
<bricker>
metrix: You can set a constant in the requiring file and check for that constant.
gmci is now known as Guest47056
<ddd>
afgeneralist: welcome
<metrix>
hmm
<metrix>
ok
<metrix>
thank you!
<Mon_Ouie>
metrix: You can check if the current file was run directly or loaded by comparing __FILE__ and $PROGRAM_NAME
sent-hil has left #ruby [#ruby]
<metrix>
cool :)
linoj has quit [Quit: linoj]
nwertman has joined #ruby
CamonZ has joined #ruby
beiter has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
skattyadz has quit [Quit: skattyadz]
sepp2k has quit [Remote host closed the connection]
Goles_ has quit [Remote host closed the connection]
<JohnTeddy>
apeiros_: So if I write method(blah blah2), if the method is executed as 'method("blah")', how can I have it not output the not enough arguments error.. I want to make it so it does something else instead.
<apeiros_>
JohnTeddy: I meant you write two *distinct* methods
<apeiros_>
if a method does something else, it is not the same method
<apeiros_>
don't put two different responsibilities into the same method. that's bad design.