Xeago has quit [Remote host closed the connection]
lchin has joined #ruby
lchin has quit [Client Quit]
LennyLin_ has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
devoldmx has joined #ruby
mercwithamouth has joined #ruby
thetristan has quit [Quit: thetristan]
yshh has quit [Remote host closed the connection]
preyalone has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 276 seconds]
buzzybron has quit []
chipotle has joined #ruby
_veer has quit [Ping timeout: 264 seconds]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
danslo has joined #ruby
filipe has quit [Ping timeout: 256 seconds]
yshh has joined #ruby
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
LennyLinux has joined #ruby
wu_lmao has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
mixel has quit [Quit: mixel]
chatrjr has quit [Quit: Leaving]
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
jkline_ has quit [Quit: jkline_]
thesheff17 has joined #ruby
phantasm66 has quit [Client Quit]
lewix has quit [Remote host closed the connection]
rb-new has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
<rb-new>
i have install ruby in my ubuntu
<rb-new>
i don't now where i write it?
<rb-new>
how to begin it?
<rb-new>
please give me some simple code
<sam113101>
what?
<Senjai>
what?
<xibalba>
in the butt!
<rb-new>
how to begin ruby in ubuntu?
banjara has quit [Quit: Leaving.]
falood has joined #ruby
<sam113101>
ruby test.rb
<sam113101>
here you go
Ortuna has quit [Quit: Computer has gone to sleep.]
eploko has joined #ruby
jnoob22 has quit [Remote host closed the connection]
<rb-new>
no such file or directory
jnoob22 has joined #ruby
<rb-new>
i'm not yet write code
* xibalba
face palms
<Senjai>
rb-new: is english your first language
<rb-new>
now, i'm open gedit blank file. what i must write in this empty file?
<xibalba>
rb-new: puts "hello world"
<rb-new>
senjai.english not my first english
<apeiros>
xibalba: re 'in the butt!' - please stay civil. thanks.
Animawish has joined #ruby
<rb-new>
senjai.i'm sorry about my english
<rb-new>
xibalba.i will try write it,
g0bl1n has quit [Ping timeout: 260 seconds]
Hanmac1 has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ixti has joined #ruby
<rb-new>
xibalba. i have been write puts "hello world" .then?
<xibalba>
then save it to a file
<xibalba>
type on command line : "ruby _file_name_"
<rb-new>
ok
ia___ has quit [Quit: ia___]
<rb-new>
yes. its show that string.
<rb-new>
its good sir
filipe has joined #ruby
<xibalba>
congratualations, your first ruby app
<rb-new>
yes, sir.
jnoob22 has quit [Ping timeout: 256 seconds]
thomasle_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 276 seconds]
<rb-new>
data type, using declaration?
<rb-new>
xibalba. data type, using declaration?
<xibalba>
now you're on your own buddy
<xibalba>
buy a book, search google
<sam113101>
rb-new: what's your first language?
citizensinspace has quit [Quit: citizensinspace]
dhruvasagar has quit [Ping timeout: 264 seconds]
<rb-new>
pasif english
<rb-new>
sir, can give me one reason why we learn ruby?
kinginky has joined #ruby
phipes has joined #ruby
<rb-new>
caused ,as we know that many languages of programmer
<ravster>
I'm using emacs, and I'm able to get the correct indentation when I'm on a line and press TAB. But when I select a bunch of lines and hit TAB it doesn't work. Is there something special I need to do to my ruby-mode that other users do?
<sam113101>
rb-new: what's pasif English? lol
<sam113101>
do you know French, Spanish, German or something?
<kinginky>
hey everyone. doing a project for a client. it requires i run several instances of the application i built. they all have to be run under their own user (ubuntu). i am trying to use god to monitor the processes, but get errors about Gemfile not found, etc. i've tried a system-wide ruby installation and `sudo god` as well as `rvmsudo god` and `rvmsudo bundle exec god`, but all of them fail to function for one reason or another
werdnativ has quit [Ping timeout: 248 seconds]
vespakoen has quit [Quit: Leaving]
phipes has quit [Client Quit]
<kinginky>
any ideas on how i could do this?
phipes has joined #ruby
<rb-new>
i'm using alphabet before,
<kinginky>
let me gist my Godfile, too
<rb-new>
for now want to learn ruby
jcromartie has joined #ruby
<sam113101>
oh boy
Spooner has quit [Remote host closed the connection]
BeegPeeg00 has quit [Remote host closed the connection]
atyz has joined #ruby
r0bglees0n has quit [Ping timeout: 260 seconds]
r0bglees0n has joined #ruby
beneggett has joined #ruby
hogeo has quit [Read error: Connection timed out]
hogeo has joined #ruby
sleetdrop has joined #ruby
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
cj3kim has joined #ruby
AgentWillyWonka has joined #ruby
beilabs has quit [Ping timeout: 264 seconds]
hogeo has quit [Read error: Connection reset by peer]
Nahra has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby
pduin has joined #ruby
hogeo has quit [Remote host closed the connection]
Myconix has joined #ruby
sailias has quit [Quit: Leaving.]
darkapex has joined #ruby
darkapex has joined #ruby
lapinferoce has joined #ruby
osvico has quit [Ping timeout: 264 seconds]
ananthakumaran1 has joined #ruby
vlad_starkov has joined #ruby
Senjai has quit [Remote host closed the connection]
fphilipe has quit [Remote host closed the connection]
joshu has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Ping timeout: 264 seconds]
Nahra has joined #ruby
ia___ has joined #ruby
haxrbyte has joined #ruby
haxrbyte_ has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
nomenkun has quit [Remote host closed the connection]
Eaven has joined #ruby
Jackneill has joined #ruby
beilabs has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
danslo has quit [Ping timeout: 252 seconds]
haxrbyte has quit [Ping timeout: 264 seconds]
persand has quit [Quit: persand]
Emmanuel_Chanel has joined #ruby
hogeo has joined #ruby
dhruvasagar has joined #ruby
blaxter has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
jarjar_prime has joined #ruby
Edward_ has joined #ruby
nari has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
leonidlm has joined #ruby
Zeeraw has joined #ruby
arietis has joined #ruby
huoxito has quit [Quit: Leaving]
Caldrin has joined #ruby
lapinferoce has quit [Read error: Connection reset by peer]
aganov has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
skroon has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
haxrbyte has joined #ruby
matchaw has joined #ruby
khushildep has quit [Quit: khushildep]
haxrbyte_ has quit [Read error: Connection reset by peer]
sie has joined #ruby
ij has quit [Read error: Operation timed out]
ffio has joined #ruby
felixjet has joined #ruby
sideshowcoder has quit [Read error: Operation timed out]
stonevil_ has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
stonevil has joined #ruby
dopie has joined #ruby
<dopie>
hey all
<dopie>
how do i list a filename.to_s ?
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
jprovazn has joined #ruby
noyb has quit [Ping timeout: 260 seconds]
tjbiddle_ has joined #ruby
stonevil has quit [Write error: Connection reset by peer]
stonevil_ has joined #ruby
mjburgess has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
sie has quit [Ping timeout: 264 seconds]
swex has quit [Ping timeout: 264 seconds]
sideshowcoder has joined #ruby
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
Edward_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
timonv has quit [Remote host closed the connection]
eldariof has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Tobarja has joined #ruby
vlad_sta_ has joined #ruby
phasma has quit [Ping timeout: 260 seconds]
vlad_st__ has joined #ruby
<Tobarja>
what would be the most natural way to `return` a string like this from a method? "#{self.begin}#{self.exclude_end? ? '...' : '..'}#{self.end}"
decentrality has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
<Tobarja>
or, if you saw that as the entirety of a method, would you barf? :D
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
jastix has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
stonevil_ has quit [Remote host closed the connection]
vlad_sta_ has quit [Ping timeout: 264 seconds]
freeayu__ has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Eaven has joined #ruby
ybart has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
<buzzybron>
hi i did a gem env on my local machine
swex has joined #ruby
<buzzybron>
and the are two gem paths printed, how do i edit the 2nd gem path?
banjara has quit [Quit: Leaving.]
hogeo has quit [Remote host closed the connection]
<shevy>
hmm
<shevy>
what language shall I combine with ruby?
<Zeeraw>
Depends...
<buzzybron>
combine?
<shevy>
yeah, like ruby + java
<Zeeraw>
Also, yeah, what exactly do you mean with combine?
<shevy>
but I hate java so that is difficult
dfdf has joined #ruby
timonv has joined #ruby
<Zeeraw>
Still, what do you mean with combine?
dchoi has joined #ruby
<shevy>
well, I could combine ruby with cobol but that would not seem too useful and I have only limited time, yet I feel as if I don't learn too much in ruby anymore
arya_ has joined #ruby
pipework has joined #ruby
<Zeeraw>
My question stands.
<buzzybron>
lol
<shevy>
can you just answer?
* Zelest
got something else that stands... :D
<shevy>
omg...
<Zelest>
*ahem*
alexmreis has joined #ruby
<shevy>
Tobarja it is very unusual to use lots of "self." within your class
<Zeeraw>
Wel shevy, what exactly do you mean by combine languages?
<shevy>
"#{self.begin}#{self.exclude_end? " hmmm
<Zeeraw>
For education?
<shevy>
Zeeraw something that I would learn next, but where the time spent learning it is useful
<Zeeraw>
JavaScript.
<shevy>
if I would learn cobol, I dont think it would be worth the tradeoff of learning it (hours spent?)
GeissT_ has joined #ruby
<Zeeraw>
JS is not very fun, but it's very useful.
tonini has joined #ruby
alexmreis has left #ruby [#ruby]
<Zeeraw>
And if you're building actual things with ruby, you're most likely going to run in to quite a lot of JavaScript.
<shevy>
I was afraid of such an answer :(
<shevy>
I hate javascript too... not as much as java though
<Zeeraw>
You could also go learn some C.
<Zeeraw>
It's always good to know how things work closer to the metal.
GeissT has quit [Ping timeout: 256 seconds]
<buzzybron>
whats the convo about
<buzzybron>
i'm lost, what is this combine languages
<Zeeraw>
About what language he should "learn next"
<buzzybron>
ah
<Zeeraw>
combine is the wrong word.
<buzzybron>
i see
jarjar_prime has quit [Quit: Sleep time.]
<buzzybron>
javascript is kinda fun
krombr has joined #ruby
<buzzybron>
python
<hoelzro>
(vote for C)++
<buzzybron>
or some more diff
<buzzybron>
c#
<buzzybron>
java, c, obj c
<Zeeraw>
Actually
<buzzybron>
oh i think obj c is cool
<Zeeraw>
Objective-C
<Zeeraw>
Go
<hoelzro>
Go is...interesting.
<buzzybron>
haven't tried go though
<buzzybron>
i see it similer to python / ruby?
Soliah has quit [Quit: Soliah]
<hoelzro>
Go is a statically typed language with a very pythonic feel (imo)
<buzzybron>
so static typed python? lol
<nightfly>
I often get the feeling that when people say "pythonic" they mean "sane".
<hoelzro>
hmm
<hoelzro>
that's not what I mean when I say it =)
benlieb has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
timmow has joined #ruby
<shevy>
hehe
GeissT_ has quit [Quit: AdiIRC is updating to v1.9.1 Beta Build (290513) 32 Bit]
GeissT has joined #ruby
justsee has quit [Ping timeout: 252 seconds]
miclen has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
alup has quit [Quit: Leaving]
alup has joined #ruby
chandankumar has joined #ruby
ephemerian has joined #ruby
falood has quit [Remote host closed the connection]
Coffers has joined #ruby
benlieb has quit [Quit: benlieb]
beilabs has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
hogeo has joined #ruby
nari has quit [Ping timeout: 264 seconds]
hogeo has quit [Remote host closed the connection]
telling has joined #ruby
telling has joined #ruby
telling has quit [Changing host]
ntus1017 has quit [Remote host closed the connection]
threesome has joined #ruby
igaiga has joined #ruby
<hoelzro>
I think I may need to try Subtle WM
daniel_- has joined #ruby
<hoelzro>
Awesome's config breakage pisses me off too much
dnyy has quit [Ping timeout: 260 seconds]
DaniG2k has joined #ruby
rcsheets has quit [Ping timeout: 260 seconds]
ferdev has quit [Quit: ferdev]
icole has quit [Remote host closed the connection]
slainer68 has joined #ruby
niceguyjames has joined #ruby
SeanTAllen has quit [Ping timeout: 241 seconds]
slainer6_ has joined #ruby
beilabs has joined #ruby
slainer__ has joined #ruby
yeban has quit [Ping timeout: 252 seconds]
SeanTAllen has joined #ruby
jbpros has joined #ruby
octarine has quit [Ping timeout: 252 seconds]
krombr has quit [Remote host closed the connection]
igaiga has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 264 seconds]
slainer6_ has quit [Read error: Operation timed out]
noxoc has joined #ruby
dchoi has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Computer has gone to sleep.]
hogeo has quit [Ping timeout: 276 seconds]
rickruby has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
igaiga has quit [Read error: Connection reset by peer]
darthdeus has joined #ruby
daniel_- has joined #ruby
camilasan has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
robbyoconnor has joined #ruby
slainer6_ has joined #ruby
emergion has joined #ruby
alienvenom has joined #ruby
ttt has quit [Remote host closed the connection]
staafl has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
persand has joined #ruby
Astral__ has quit [Ping timeout: 264 seconds]
decentrality has quit [Quit: decentrality]
pipework has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 245 seconds]
boxmein has joined #ruby
ttt has joined #ruby
arya_ has quit [Ping timeout: 256 seconds]
pipework has joined #ruby
noop has quit [Ping timeout: 276 seconds]
arya has joined #ruby
ntus1017 has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
danslo_ has joined #ruby
danslo has quit [Ping timeout: 256 seconds]
danslo_ is now known as danslo
slainer68 has joined #ruby
monkegjinni has joined #ruby
Cultofmetatron has joined #ruby
slainer6_ has quit [Ping timeout: 252 seconds]
viszu has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
horsey has quit [Quit: leaving]
emergion has quit [Quit: Computer has gone to sleep.]
danslo has quit [Read error: Connection reset by peer]
Jackneill has quit [Remote host closed the connection]
Neomex has joined #ruby
igaiga has joined #ruby
Neomex has quit [Client Quit]
icole has joined #ruby
gyre007 has joined #ruby
LennyLinux has joined #ruby
khushildep has quit [Quit: getting the flock() outta here]
khushildep has joined #ruby
niceguyjames has joined #ruby
cj3kim has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
huttan has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
danslo has joined #ruby
razi has joined #ruby
Zeeraw has quit [Ping timeout: 264 seconds]
noop has joined #ruby
icole has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
viszu has quit [Quit: Leaving.]
cj3kim has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
phasma has joined #ruby
DaniG2k has quit [Quit: Leaving.]
mikewintermute has joined #ruby
machuga|away is now known as machuga
ksmth has joined #ruby
pandawarrior has joined #ruby
pandawarrior has quit [Client Quit]
monkegjinni has quit [Remote host closed the connection]
sayan has joined #ruby
noop has quit [Ping timeout: 262 seconds]
gasbakid has joined #ruby
noop has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
nari has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 264 seconds]
prk has joined #ruby
Zeeraw has joined #ruby
arya has joined #ruby
[[mandrix]] has quit [Ping timeout: 252 seconds]
dash_ has quit [Quit: Time to beer :)]
Alina-malina has joined #ruby
dash_ has joined #ruby
miclen has quit [Ping timeout: 264 seconds]
visof has quit [Quit: Leaving]
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
jurbat has quit [Quit: Computer has gone to sleep.]
buzzybron has left #ruby [#ruby]
lewis has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
atyz has quit [Quit: Leaving...]
cj3kim has quit [Remote host closed the connection]
ArchBeOS has quit [Quit: Leaving]
arya has quit [Ping timeout: 264 seconds]
GeissT has quit [Ping timeout: 260 seconds]
arya has joined #ruby
dfdf has quit [Remote host closed the connection]
Michael__ has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
dnyy has joined #ruby
zeel_ has joined #ruby
ExxKA has joined #ruby
Tobarja has quit [Quit: Leaving.]
Spami has quit [Quit: This computer has gone to sleep]
dfdf has joined #ruby
octarine has joined #ruby
Spooner has joined #ruby
eploko has joined #ruby
yeban has joined #ruby
igaiga has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
bionhart has quit [Remote host closed the connection]
monkegjinni has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
kf8a has joined #ruby
emergion has joined #ruby
rakl has quit [Quit: sleeping]
obs has quit [Quit: Konversation terminated!]
<shevy>
hoelzro that is good isn't it? I mean that you take subtle... it's written in ruby, so it should be better
obs has joined #ruby
<hoelzro>
I don't think that it being written in Ruby guarantees quality...
<hoelzro>
the only problem I have with Awesome is that they break configs so often
monkegjinni has quit [Read error: Connection reset by peer]
<shevy>
Zeeraw I think I'll indeed go with javascript... I dont like it at all, but I find myself constantly use websites, and my whole local knowledgebase is written in ruby and also makes use of www
Al_ has quit [Quit: Al_]
arya has quit [Ping timeout: 256 seconds]
Inoperabled is now known as Inoperable
chandankumar has quit [Ping timeout: 276 seconds]
monkegjinni has joined #ruby
Inoperable is now known as Inoperabled
Xeago has joined #ruby
arya has joined #ruby
Hanmac2 has joined #ruby
eploko_ has joined #ruby
vlad_st__ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
eploko has quit [Ping timeout: 264 seconds]
corehook_ has quit [Ping timeout: 264 seconds]
eploko_ is now known as eploko
gasbakid_ has joined #ruby
corehook_ has joined #ruby
gasbakid has quit [Ping timeout: 264 seconds]
nfk has joined #ruby
gasbakid_ has quit [Quit: Quitte]
browndawg has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
bionhart has joined #ruby
monkegjinni has joined #ruby
joshu has joined #ruby
<joshu>
hi
gasbakid has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
niceguyjames has quit [Quit: Computer has gone to sleep.]
jbpros has quit [Quit: jbpros]
robustus has joined #ruby
arya has quit [Ping timeout: 252 seconds]
joschi_ is now known as joschi
persand has quit [Quit: persand]
northelks has joined #ruby
Naeblis has quit [Ping timeout: 260 seconds]
niftylettuce has quit [Ping timeout: 260 seconds]
`brendan has joined #ruby
persand has joined #ruby
arya has joined #ruby
keanehsiao has joined #ruby
ferdev has quit [Ping timeout: 252 seconds]
Al_ has joined #ruby
Qwak has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
krz has quit [Quit: krz]
matchaw has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby
Astral_ has quit [Ping timeout: 264 seconds]
bobdobbs has joined #ruby
charliesome_ has joined #ruby
Vivekananda has quit [Read error: Operation timed out]
keanehsiao has quit [Ping timeout: 256 seconds]
kf8a has quit [Quit: Computer has gone to sleep.]
decentrality has joined #ruby
monkegjinni has joined #ruby
prk` has quit [Ping timeout: 276 seconds]
<bobdobbs>
I'm running ruby on linux, so I can use sass from the command line. I recently reinstalled ruby. Now, when I issue the commend 'sass', I get " bad interpreter: /usr/bin/ruby1.8: no such file or directory"
Hanmac2 has quit [Read error: Connection reset by peer]
<bobdobbs>
however, if I type 'ruby --version' from the commandline, I get the version.
charliesome_ is now known as charliesome
Hanmac has joined #ruby
<bobdobbs>
How do I tell sass where the ruby binary is?
jokke has quit [Quit: WeeChat 0.4.0]
ExxKA has quit [Quit: This computer has gone to sleep]
falood has joined #ruby
pi3r has joined #ruby
prk has joined #ruby
pagios has joined #ruby
kofno has joined #ruby
<pagios>
hello community, trying to adjust time using ntpdate executed from ruby: fork do `/usr/sbin/ntpdate -s ntp.ubuntu.com` end ; is not changing time any idea? from command line it works fine
falood has quit [Remote host closed the connection]
<shevy>
bobdobbs you probably use debian
miclen has joined #ruby
<shevy>
bobdobbs one fix would be to symlink ruby1.8. to ruby
<bobdobbs>
could to
<bobdobbs>
but that's a dirty
<shevy>
yes
<bobdobbs>
dirty fix
<shevy>
perhaps the sass author is a noob
<bobdobbs>
yeah?
<shevy>
if the ruby1.8 is hardcoded, yes
DaniG2k has left #ruby [#ruby]
<bobdobbs>
(not that I disagree)
<shevy>
if it was somehow autogenerated then it may not be the fault of the author
Loaft has joined #ruby
<bobdobbs>
oh fuck, it is
<shevy>
what OS do you use?
<bobdobbs>
I'm looking at the top of the sass binary now
<bobdobbs>
first line #!/usr/bin/ruby1.8
<shevy>
hehe
<bobdobbs>
*facepalm*
<shevy>
lemme see for myself too ...
redstar1_ has joined #ruby
<shevy>
hmm no
<bobdobbs>
no?
<shevy>
I had it generate for me
<bobdobbs>
what are you seeing?
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
ttt has quit [Remote host closed the connection]
<shevy>
and my shebang is: /Programs/Ruby/1.8.7p370/bin/ruby
<shevy>
which is the correct one for my system, the name of the file in question is "sass"
<bobdobbs>
damnit, I can't remember how I installed sass
<shevy>
I am very sure that this is auto-generated on your system
tonini has joined #ruby
<shevy>
I did "gem install sass"
<bobdobbs>
oh yeah. that's how I did it
<shevy>
sass version sass-3.2.9
<bobdobbs>
maybe I did that before I ripped out ruby and reinstalled it.
<bobdobbs>
damn
<bobdobbs>
wait
<bobdobbs>
I think I updated my gems after I reinstalled ruby
<shevy>
updated how?
<shevy>
debian modified gems
<bobdobbs>
fuuuuuuuu
<bobdobbs>
can't remember how.
atyz has joined #ruby
<bobdobbs>
I only know just enough ruby to get sass running
TheDick has joined #ruby
<pagios>
is this a correct way of running this command d ? `/usr/sbin/ntpdate -s ntp.ubuntu.com &> /tmp/ntp.log` or need to use some " " ?
<shevy>
you always need to have a very clear path ahead, it can be a problem if you mix different ruby versions, different locations, different package managers etc...
<bobdobbs>
but I shouldn't be using a debian version of gems, cos I'm using rbenv
<shevy>
don't know the command ntpdate at all
Vivekananda has joined #ruby
<shevy>
aha perhaps you have several ruby versions bobdobbs
<shevy>
and one gave back /usr/bin/ruby1.8 based on some wrong check
<bobdobbs>
shevy: I'm pretty sure I ripped out everything before I installed via rbenv
<shevy>
not sure, there is also /var/lib on debian-based systems
<shevy>
and /usr/local/*
matchaw has joined #ruby
<bobdobbs>
using ruby2.0, how should I update my gems?
<shevy>
that depends on how you installed it
apeiros_ has joined #ruby
<bobdobbs>
hmmm
<shevy>
I compile everything from source. I usually compile the latest, then check for the gem version in use, and go to rubygems if I must download a new version
<shevy>
rubygems.org/pages/download
predator217 has quit [Ping timeout: 264 seconds]
<bobdobbs>
hmmm
monkegjinni has quit [Read error: Connection reset by peer]
predator117 has joined #ruby
atyz has quit [Ping timeout: 246 seconds]
<pagios>
ok saw source of problem: Error resolving ntp.ubuntu.com: Name or service not known (-2)
<pagios>
even though i am setting up an ip and a namserver before that line
Naeblis has joined #ruby
<pagios>
ping ntp.ubuntu.com works fine from command lein
monkegjinni has joined #ruby
fridim_ has joined #ruby
<bobdobbs>
ok... thinking what my next step is...
apeiros has quit [Ping timeout: 264 seconds]
obs has quit [Quit: Konversation terminated!]
bamdad has quit [Quit: bamdad]
jbpros has joined #ruby
yshh has quit [Remote host closed the connection]
miclen has quit [Ping timeout: 256 seconds]
arya_ has joined #ruby
arya has quit [Ping timeout: 256 seconds]
arya_ is now known as arya
zastern has joined #ruby
mmitchell has joined #ruby
obs has joined #ruby
JustinAiken has joined #ruby
<bobdobbs>
well... 'gem update' appears to be doing something
jbpros_ has joined #ruby
<shevy>
hehe
<shevy>
russian roulette
<bobdobbs>
yeah?
<bobdobbs>
what am I risking?
<shevy>
dunno, let's wait and see what happens :D
<bobdobbs>
damn. sass still wants the old version of ruby
<bobdobbs>
this makes me sad
<shevy>
a warrior must walk fearlessly into a battle
<bobdobbs>
hehe
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
<shevy>
well
<bobdobbs>
this warrior will soon lose his remaining hair
<ChristianS>
shevy: and die
<shevy>
try to find out what "ruby" versions you all have on your system
<shevy>
find / -name ruby
<bobdobbs>
I'm pretty sure I've just got 2.0
<shevy>
should work
<bobdobbs>
ok
kf8a has joined #ruby
<shevy>
no I mean, all "ruby" pointers
<shevy>
you probably have at least one in your HOME directory
<shevy>
and perhaps you have more than one gem version
<bobdobbs>
hmmmm
jbpros has quit [Ping timeout: 252 seconds]
jbpros_ is now known as jbpros
<shevy>
on debian, one may have gem and gem1.8, and sometimes even symlinks into /etc/alternatives/
<bobdobbs>
I'm not doing ruby the debian/ubuntu way
l33 has joined #ruby
<bobdobbs>
too much breakage
rockets has quit [Ping timeout: 276 seconds]
iamjarvo has joined #ruby
<bobdobbs>
too many tears
Vivekananda has quit [Ping timeout: 246 seconds]
k610 has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<bobdobbs>
hmmmm
<k610>
ruby doesn't find a gem when i require a file that requires a gem
mmitchell has quit [Ping timeout: 256 seconds]
<bobdobbs>
well, apparently I've got a metasploit install that I'd forgotten about
zirpu has left #ruby [#ruby]
<bobdobbs>
oh fuck
<bobdobbs>
the ruby executably is being called from a directory called .rvm
<bobdobbs>
damn
niklasb has joined #ruby
<bobdobbs>
I thought I'd torn out rvm
monkegjinni has joined #ruby
<bobdobbs>
but apart from the install in my metasploit directory, it's the only ruby executable that I can see.
devoldmx3 has joined #ruby
ksmth has quit []
yalue has joined #ruby
cjs226 has quit [Ping timeout: 276 seconds]
Mattx has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
devoldmx has quit [Ping timeout: 264 seconds]
mark_locklear has joined #ruby
<bobdobbs>
fuck this confusing shit. I'll just use a symlink
corehook__ has quit [Quit: Leaving]
kf8a has joined #ruby
niceguyjames has joined #ruby
ioNull has quit [Ping timeout: 264 seconds]
Matip has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
ioNull has joined #ruby
<k610>
is it possible that i cannot use require 'agem' once i am using bundler ?
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
rcsheets_ is now known as rcsheets
kf8a has quit [Client Quit]
atno has quit [Ping timeout: 252 seconds]
niklasb has quit [Ping timeout: 264 seconds]
tonini_ has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
obs has quit [Quit: Konversation terminated!]
Alina-malina has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
bobdobbs has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
ferdev has joined #ruby
devoldmx3 has quit [Ping timeout: 252 seconds]
osvico has joined #ruby
monkegjinni has joined #ruby
<r0bglees0n>
wouldn't it be awesome if you could say git.develop.klass.ancestors - git.master.klass.ancestors
tonini has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
monkegjinni has joined #ruby
Caelum has quit [Read error: Operation timed out]
Caelum has joined #ruby
iamjarvo has quit [Quit: Leaving.]
<r0bglees0n>
k610: yup, it is, you can only use gems & their dependencies declared in your gemfile after bundler has been setup.
devoldmx has quit [Read error: Connection reset by peer]
devoldmx3 has joined #ruby
k610 has quit [Read error: Connection reset by peer]
cofin has joined #ruby
k610 has joined #ruby
igaiga has joined #ruby
obs has joined #ruby
monkegji_ has joined #ruby
<k610>
sry some answered me and my client got killed + irclogger doesn't have #ruby
justsee has quit [Ping timeout: 260 seconds]
persand has quit [Quit: persand]
monkegjinni has quit [Ping timeout: 256 seconds]
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
slainer68 has quit []
atno has joined #ruby
slainer68 has joined #ruby
devoldmx3 has quit [Ping timeout: 276 seconds]
hogeo has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
persand has joined #ruby
Guedes0 has joined #ruby
justsee has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
matchaw has quit [Ping timeout: 256 seconds]
ryannielson has joined #ruby
hogeo has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
matchaw has joined #ruby
SeySayux has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
hogeo has quit [Remote host closed the connection]
Villadelfia has quit [Ping timeout: 256 seconds]
noname001 has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegji_ has joined #ruby
arya has quit [Ping timeout: 264 seconds]
drfreeze_ has joined #ruby
jcromartie has joined #ruby
noname001 has joined #ruby
nerocrux has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: No route to host]
Guedes has quit [Disconnected by services]
Guedes0 is now known as Guedes
monkegjinni has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
Guedes0 has joined #ruby
drfreeze has quit [Ping timeout: 260 seconds]
miclen has joined #ruby
arya has joined #ruby
sheeny has joined #ruby
Lubinski has joined #ruby
niceguyjames has quit [Ping timeout: 246 seconds]
<sheeny>
Hi everyone how do I set my ruby version? Im using rbenv and have just installed ruby 2.0.0-p195
<sheeny>
csheen~$ rbenv version 2.0.0-p195 (set by /Users/csheen/.rbenv/version)
<sheeny>
Spooner: I have done that, and I did rbenv rehash
<sheeny>
but ruby -v still says 1.9.2
Lubinski has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
machuga has quit [Excess Flood]
machuga has joined #ruby
machuga has quit [Max SendQ exceeded]
<pagios>
question, how can i overwrite the last 8 lines of a file? test_lines[-1] overwrites the last tine, burt test_lines[-8] does not overwrite it actually appends
atyz has joined #ruby
<pagios>
line*
monkegjinni has quit [Read error: Connection reset by peer]
machuga has joined #ruby
<Spooner>
pagios, test_lines[-8..-1] = whatever
<pagios>
lovely
monkegjinni has joined #ruby
Banistergalaxy has joined #ruby
atyz has quit [Read error: Connection reset by peer]
<pagios>
Files do not need to be closed in ruby right
atyz has joined #ruby
_veer has quit [Ping timeout: 264 seconds]
<Spooner>
They don't if you open them with a block/.
<Spooner>
e.g. File.open("bleh.txt") {|f| } # Is auto-closed for you.
slainer6_ has joined #ruby
<Spooner>
f = File.open("bleh.txt") isn't auto-closed. You need to actually f.close yourself.
breakingthings has joined #ruby
<Spooner>
pagios, Odd, it works fine for me.
geekbri has joined #ruby
F1skr has joined #ruby
<pagios>
/var/www/myapp.rb:73:in `[]=': -8..-1 out of range (RangeError)
iamjarvo has quit [Ping timeout: 276 seconds]
sheeny has quit [Quit: Page closed]
<pagios>
ignore it
<Spooner>
Yeah, if the file is too short, it will fail ;)
jurbat has quit [Ping timeout: 276 seconds]
<Spooner>
Or rather, the Array is too small.
slainer68 has quit [Ping timeout: 276 seconds]
alexwh has joined #ruby
slava_dp has joined #ruby
slainer68 has joined #ruby
fuzzyhorns has joined #ruby
visof has quit [Read error: Connection reset by peer]
<slava_dp>
hey, what's the actual point in having both proc and lambda, apart from some subtle differences?
<Spooner>
joshu, Sure you can't just modify the original mail's from and to and deliver it?
zigomir has quit [Quit: zigomir]
ffio has quit [Ping timeout: 264 seconds]
zigomir has joined #ruby
<joshu>
Spooner I'm not sure..been experimenting with say @mail.to = "new address" which when I do @mail.to_s show's the new TO but not sure about delivering it after that
awc737 has quit [Ping timeout: 240 seconds]
<joshu>
brb
vlad_starkov has quit [Remote host closed the connection]
tk_ has joined #ruby
<Spooner>
I am just guessing. I've only used Pony before (which wraps Mail, I think).
ninegrid has joined #ruby
vlad_starkov has joined #ruby
jbpros has quit [Quit: jbpros]
jerius has joined #ruby
GeissT has joined #ruby
maloik_ is now known as maloik
tomzx_mac has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
Ortuna has joined #ruby
DestinyAwaits has joined #ruby
niftylettuce has joined #ruby
nerocrux has quit [Remote host closed the connection]
DestinyAwaits has quit [Max SendQ exceeded]
ariedler has joined #ruby
DestinyAwaits has joined #ruby
DestinyAwaits has joined #ruby
DestinyAwaits has quit [Changing host]
Kricir has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
Ortuna has quit [Client Quit]
cba has joined #ruby
blaxter has quit [Ping timeout: 260 seconds]
Kricir has joined #ruby
Vivekananda has joined #ruby
devoldmx3 has joined #ruby
sambao21 has joined #ruby
io_syl has joined #ruby
fridim_ has quit [Ping timeout: 264 seconds]
slainer6_ has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
devoldmx3 has quit [Client Quit]
jds_ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
slainer__ has joined #ruby
monkegjinni has quit [Ping timeout: 256 seconds]
Kricir has quit [Ping timeout: 260 seconds]
sambao21 has quit [Client Quit]
devoldmx has joined #ruby
slainer68 has quit [Ping timeout: 276 seconds]
obs has quit [Quit: Konversation terminated!]
slainer6_ has quit [Ping timeout: 256 seconds]
obs has joined #ruby
decentrality has left #ruby [#ruby]
sambao21 has joined #ruby
qkdt has joined #ruby
A124 has joined #ruby
bamdad has joined #ruby
maasha has joined #ruby
codecop has quit [Remote host closed the connection]
failshell has joined #ruby
<qkdt>
Hello i just started ruby and i stumbled upon this: x = { "a" => 1, "b" => 2, "c" => 3 } p x.keys
<apeiros_>
`p obj` does what `puts obj.inspect` does
<apeiros_>
see Kernel#p
nowthatsamatt has joined #ruby
<qkdt>
thank you
<ericwood>
you're welcome
<maasha>
I need to sort a list of files according to the numerical part when the filenames are part text part numerical. I was thinking Schwartzian transformation, but surely ruby have something easier?
<qkdt>
i was confused because x.keys works aswell in irb
dhruvasagar has quit [Ping timeout: 256 seconds]
<joshu>
ok Spooner I'm back
wmoxam has joined #ruby
<apeiros_>
maasha: hm, reminds me that I still have not published that branch in my sorting gem which provides natural sorting
<apeiros_>
(which does exactly that)
<maasha>
apeiros_: I think a saw yours at some point :o)
mmitchell has joined #ruby
<apeiros_>
hm, didn't even push it to github
<apeiros_>
well, won't get it done anytime soon, sorry
Coolhand has quit [Remote host closed the connection]
keanehsiao has joined #ruby
tonini_ has quit [Ping timeout: 248 seconds]
kf8a has joined #ruby
prk has quit [Ping timeout: 276 seconds]
johnjohnson has joined #ruby
kf8a has quit [Write error: Broken pipe]
niceguyjames has joined #ruby
baroquebobcat has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
pcarrier_ has quit [Ping timeout: 264 seconds]
yannis has joined #ruby
chandankumar has quit [Ping timeout: 258 seconds]
haxrbyte has joined #ruby
freerobby has joined #ruby
blaxter has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
freeayu__ has quit [Remote host closed the connection]
chandankumar has joined #ruby
v0n has joined #ruby
Coolhand has joined #ruby
ravster has joined #ruby
falood has joined #ruby
v0n has quit [Client Quit]
yshh has joined #ruby
v0n has joined #ruby
girija has quit [Ping timeout: 252 seconds]
eploko has quit [Quit: Z-z-zzz...]
arya has quit []
freakazoid0223 has joined #ruby
generalissimo has joined #ruby
seich- has quit [Ping timeout: 245 seconds]
visof has joined #ruby
jtharris has joined #ruby
Ortuna has joined #ruby
arya has joined #ruby
thesheff17 has joined #ruby
ntus1017 has joined #ruby
Ortuna has quit [Client Quit]
abstrusenick has joined #ruby
sailias has joined #ruby
mklappstuhl has joined #ruby
atyz has quit [Quit: Leaving...]
BSaboia has joined #ruby
monkegjinni has joined #ruby
jbpros has joined #ruby
johnnyfuchs has joined #ruby
headius has quit [Quit: headius]
pcarrier_ has joined #ruby
staafl has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
seich- has joined #ruby
lyanchih has joined #ruby
freerobby has quit [Quit: Leaving.]
sailias has quit [Ping timeout: 256 seconds]
atyz has joined #ruby
Appineer has joined #ruby
<aedorn>
bonjour
Todd has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
nopper` is now known as nopper
freerobby has joined #ruby
akells` has joined #ruby
monkegjinni has joined #ruby
wesside has joined #ruby
allaire has joined #ruby
kf8a has joined #ruby
Ortuna has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Quit: Lost terminal]
Ortuna has quit [Client Quit]
kobain has joined #ruby
hydrozen has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
bean__ has joined #ruby
eploko has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
ananthakumaran has joined #ruby
niklasb has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
abstrusenick has quit [Quit: abstrusenick]
l33 has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Z_Mass has joined #ruby
jbpros has quit [Quit: jbpros]
jprovazn has quit [Quit: Leaving]
slainer68 has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<joonty>
a question
braoru has quit [Remote host closed the connection]
_Amaan has joined #ruby
<joonty>
would you consider the following to be good or bad practice for initializing an array and populating with a single element?
<joonty>
`numbers = [] << 3`
<clocKwize>
why not numbers = [3]
monkegjinni has joined #ruby
miskander has quit [Quit: miskander]
matchaw has quit [Ping timeout: 256 seconds]
mikewintermute has joined #ruby
<clocKwize>
joonty:
slainer__ has quit [Ping timeout: 252 seconds]
<joonty>
clocKwize: because i'm an idiot
<joonty>
thanks
sailias has joined #ruby
<clocKwize>
lol =]
<joonty>
thought i was doing something wrong :P
cofin has joined #ruby
<clocKwize>
heh
rhys has joined #ruby
jjbohn has joined #ruby
ffranz has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
timkohrumel has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
slainer6_ has joined #ruby
monkegjinni has joined #ruby
daniel_- has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
altamic has joined #ruby
stonevil has joined #ruby
altamic has left #ruby [#ruby]
nettoweb has joined #ruby
noxoc has quit [Quit: noxoc]
Andreo has joined #ruby
pcarrier_ has quit [Quit: Computer has gone to sleep.]
tagrudev has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 246 seconds]
Tobarja has joined #ruby
codecop has joined #ruby
Andreo__ has quit [Read error: Operation timed out]
daniel_- has joined #ruby
devoldmx3 has joined #ruby
miskander has joined #ruby
l33 has joined #ruby
timkohrumel has quit [Ping timeout: 256 seconds]
staafl has quit [Ping timeout: 256 seconds]
Vivekananda has quit [Ping timeout: 246 seconds]
noop has quit [Ping timeout: 252 seconds]
SeySayux has quit [Read error: Connection reset by peer]
Villadelfia has quit [Read error: Connection reset by peer]
miskander has quit [Client Quit]
<aedorn>
I'm not sure how to deal with a manager misrepresenting, on purpose, a product that I built. He doesn't like this particular client we're doing it for, but I feel like him telling them that something works differently than what it really does that it's misrepresenting myself as a developer.
Tobarja has left #ruby [#ruby]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
Villadelfia has joined #ruby
<canton7>
Who's on the line if the client finds out? If it's you, make a fuss. If it's your manager, you can complain to the manager but don't mention a word to the client. That's my view :P
<Todd>
Stake holders shield developers where I work
timkohrumel has joined #ruby
<Todd>
At the end of the day you just need to recognize that developers rarely own the code they write.
<Todd>
Took me a long time to learn that.
alex__c2022 has joined #ruby
SeySayux has joined #ruby
<Todd>
To learn how to not be personally invested in what I do was tough.
miclen has quit [Ping timeout: 256 seconds]
<aedorn>
hmmm.. not be personally invested. I don't know how to do that, either. ;)
<Todd>
Work a ticket. Release a ticket. Grab a new ticket.
<canton7>
Yeah, you're trying to sheild your career. If you're worried, make sure our views are in writing, but keep them internal.
baroquebobcat has quit [Quit: baroquebobcat]
kf8a has quit [Read error: Connection reset by peer]
<aedorn>
I think if I were to remove my vested interest, and let management be the "shield", as it were, and be responsible for when someone finds out things aren't the way he says they are, it would reflect badly upon me for future endeavors. I don't know, though.
<aedorn>
I'm new to business politics on this side of the fence.
sambao21 has quit [Quit: Computer has gone to sleep.]
<aedorn>
I also think I'm more worried about it than normal because the client is a rather prominent name in the world.
<Todd>
Big companies are crud. You can stretch and yell and scream that something is wrong but PO's, PM's and VP's ultimately make their own decisions.
<Todd>
And typically (depending on the structure) they get the blame for things.
_maes_ has joined #ruby
<Todd>
As long as you tell them that what they're saying is wrong they can't then point the finger at you.
whowantstolivefo has quit [Quit: who wants to live forever ?]
jjbohn is now known as jjbohn|afk
<canton7>
You can sheild yourself by putting your thoughts in writing to your manager's manager
Al_ has quit [Quit: Al_]
<Todd>
^^ agreed
tk_ has quit [Quit: ばいばい]
<canton7>
(worded appropriately so it doesn't sound like you're trying to blame your manager)
miskander has joined #ruby
<aedorn>
I thought about that, but then I'm worried that my manager would find out and take it the wrong way. He's a very .... angry person.
<aedorn>
He hasn't exactly done me wrong, though, not up until this point.
rsimecek has joined #ruby
<aedorn>
He's going as far as to make sure I'm out of town when the client comes for onsite acceptance testing. Since I'm a terrible liar. I answer questions impulsively honest - apparently that's not good for business!
ayaz has quit [Quit: Bye!]
<canton7>
have you told him you think he's misrepresenting the product? (in appropriate language)
sambao21 has joined #ruby
<canton7>
yeah, he's right there :P
sambao21 has quit [Client Quit]
cheese1756 has quit [Ping timeout: 248 seconds]
lkba has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
gaahrdner has joined #ruby
<aedorn>
canton7: I have, yep. Luckily I managed to tell him privately and not while I listened to him say it on a conference call. Good thing I wasn't near my desk to unmute my phone...
stonevil has quit [Remote host closed the connection]
rsimecek has quit [Remote host closed the connection]
<canton7>
cool, then you're not going behind him. you can cc him on your email, and make it completely clear you're just covering yourself, and don't necessarily disagree with his approach
Vivekananda has joined #ruby
jjbohn|afk is now known as jjbohn
pduin has quit [Remote host closed the connection]
yairgo has joined #ruby
<aedorn>
hmmm, let me ponder that approach some. Either way, good all around advice guys. Thanks! Glad the first response wasn't just "find a new job"
stonevil has joined #ruby
cheese1756 has joined #ruby
agarie has joined #ruby
cantonic has quit [Quit: cantonic]
ioNull has quit [Quit: Computer has gone to sleep.]
robscomputer has quit [Read error: Connection reset by peer]
io_syl has quit [Client Quit]
io_syl has joined #ruby
miskander has joined #ruby
robscomputer has joined #ruby
bradhe has joined #ruby
ybart has quit [Quit: ybart]
Artheist has quit [Excess Flood]
Voodoofish430 has joined #ruby
akemrir has joined #ruby
falood has quit [Remote host closed the connection]
Artheist has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
maxmanders has joined #ruby
seich- has joined #ruby
falood has joined #ruby
s1n4 has joined #ruby
boxmein has quit [Quit: !]
noname001 has quit [Remote host closed the connection]
s1n4 has quit [Client Quit]
chase-work has joined #ruby
Andreo_ has joined #ruby
jeebster has joined #ruby
maxmanders has quit [Max SendQ exceeded]
zigomir_ has joined #ruby
maxmanders has joined #ruby
obs_ has joined #ruby
obs has quit [Write error: Broken pipe]
dash_ has quit [Quit: Time to beer :)]
jbueza has quit [Quit: Leaving.]
Andreo has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
girija has joined #ruby
codecop has quit [Remote host closed the connection]
miskander has quit [Quit: miskander]
pi3r has quit [Quit: Leaving]
markalanevans has quit [Quit: markalanevans]
blaxter has quit [Quit: KTHXBYE]
senayar has quit [Remote host closed the connection]
codecop has joined #ruby
jlast has quit [Remote host closed the connection]
blaxter has joined #ruby
shadoi has quit [Quit: Leaving.]
jgrevich has joined #ruby
forrest has joined #ruby
miskander has joined #ruby
obs_ is now known as obs
blessYAHU has joined #ruby
falood has quit [Remote host closed the connection]
ExxKA has quit [Quit: This computer has gone to sleep]
<blessYAHU>
Anyone know how to use rake to run mocha.js/casper.js tests?
jlast has joined #ruby
jcromartie has quit [Quit: Computer has gone to sleep.]
rads has joined #ruby
superscott[8] has joined #ruby
bal has joined #ruby
mahmoudimus has joined #ruby
freerobby has quit [Quit: Leaving.]
yairgo has quit [Ping timeout: 276 seconds]
<k610>
can i stop rackup to do Bundle.require my Gemfile ?
johnmilton has joined #ruby
<apeiros_>
mv Gemfile NotAGemfile
_Amaan_ has joined #ruby
<k610>
then i can't do regular bundle install ; bundle update
_Amaan has quit [Ping timeout: 252 seconds]
_Amaan_ is now known as _Amaan
<apeiros_>
maybe you should decide first whether you want or don't want a Gemfile?
<k610>
i choose to drop Bundle.require in favor of Bundle.setup + requires but this one of the issues i ran into
<apeiros_>
ah. your issue isn't that it uses bundler, but that it uses Bundle.require. I see.
<apeiros_>
don't know
yashshah has joined #ruby
mityaz has joined #ruby
<k610>
let say i have some classes that i need from multiple sinatra apps what would be the best way to use those classes from all my sinatra apps ? require '/abs/path/to/my.rb' in each ?
Schuy13r has joined #ruby
monkegji_ has quit [Remote host closed the connection]
<sobering>
I was just wondering if I could get your opinions on that method of authnetication. I'm a bit naiive when it comes to this thing. Like I mentioned, it's my first app so I don't have experience under my belt.
rezzack has joined #ruby
jkline_ has joined #ruby
<havenwood>
sobering: You are hardcoding the usernames and passwords?
<havenwood>
sobering: People don't set their own, they are determined ahead of time?
tonini has quit [Ping timeout: 248 seconds]
<sobering>
Yeah, it's not a multi user app. It's a single user application so registration isn't required
<sobering>
The only user is me.
miclen has quit [Ping timeout: 248 seconds]
jbueza has joined #ruby
hadees has joined #ruby
rippa has joined #ruby
jgrevich_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
huttan has quit [Read error: Connection reset by peer]
whitedawg has left #ruby [#ruby]
huttan has joined #ruby
jgrevich has quit [Ping timeout: 248 seconds]
jgrevich_ is now known as jgrevich
mklappstuhl has quit [Remote host closed the connection]
<jlundy>
shevy: sorry got called away to a meeting
binw__ has joined #ruby
k610 has joined #ruby
DaltonUS has joined #ruby
end_guy has quit [Remote host closed the connection]
<banister`sleep>
anyone here speak fluent chinese?
<jlundy>
thanks for the answers folks
mjburgess has joined #ruby
miclen has joined #ruby
jbpros has joined #ruby
ivanoats has quit [Ping timeout: 256 seconds]
m8 has joined #ruby
ivanoats_ has quit [Remote host closed the connection]
DaltonUS has quit [Client Quit]
Z_Mass has quit [Ping timeout: 260 seconds]
chrishough has joined #ruby
DaltonUS has joined #ruby
binw_ has quit [Ping timeout: 260 seconds]
mark_locklear has quit [Ping timeout: 256 seconds]
ewag has joined #ruby
motto has quit [Max SendQ exceeded]
eaWPq4nU has quit [Ping timeout: 240 seconds]
Zeeraw has joined #ruby
girija has quit [Ping timeout: 260 seconds]
eaWPq4nU has joined #ruby
end_guy has joined #ruby
machuga is now known as machuga|away
AndChat| has joined #ruby
yannis has quit [Quit: Bye!]
Banistergalaxy has quit [Ping timeout: 276 seconds]
miclen has quit [Ping timeout: 248 seconds]
atyz has joined #ruby
bionhart has joined #ruby
hadees has quit [Quit: hadees]
bamdad has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
DanKnox_away is now known as DanKnox
devoldmx has joined #ruby
eldariof has joined #ruby
mattbl has joined #ruby
axl_ has quit [Quit: axl_]
Davey has quit [Quit: Computer has gone to sleep.]
atyz has quit [Ping timeout: 248 seconds]
Michael__ has quit [Remote host closed the connection]
brunoro has quit [Ping timeout: 248 seconds]
jcromartie has joined #ruby
mattbl has quit [Client Quit]
Michael__ has joined #ruby
atmosx has joined #ruby
ravster has joined #ruby
leonidlm has joined #ruby
ewag has quit [Changing host]
ewag has joined #ruby
jcromart_ has joined #ruby
mocfive has joined #ruby
Davey has joined #ruby
failshell has quit [Remote host closed the connection]
machuga|away has quit [Excess Flood]
failshell has joined #ruby
yashshah has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
rae has joined #ruby
machuga has joined #ruby
rae is now known as Guest6182
Guest6182 has left #ruby [#ruby]
jcromartie has quit [Ping timeout: 252 seconds]
bradhe has quit [Remote host closed the connection]
<aedorn>
hmmm.. github is failing me today
pinpin404 has joined #ruby
ivanoats has joined #ruby
motto has joined #ruby
Dummies_freelanc has quit [Quit: Leaving.]
sambao21 has joined #ruby
JZTech101 has joined #ruby
LennyLinux has quit [Remote host closed the connection]
jcromartie has joined #ruby
generalissimo has quit [Read error: Connection reset by peer]
jcromartie has quit [Client Quit]
m8 has quit [Ping timeout: 276 seconds]
alvaro_o has quit [Quit: Ex-Chat]
ColKurtz has joined #ruby
generalissimo has joined #ruby
pr0ton has joined #ruby
<jkline_>
I have multiple versions of rake installed with rvm. How can I select which version I want as default?
<pr0ton>
hey guys i needed some help with the HTTPClient gem. I guess somebody of you used it, I wanted a curl style verbose debug logging (which prints out the request and response as it happens). How do i do that?
jcromartie has joined #ruby
Eiam has quit [Ping timeout: 240 seconds]
jcromart_ has quit [Ping timeout: 248 seconds]
mljsimone has left #ruby ["Leaving..."]
<havenwood>
jkline_: rvm --default use
breakingthings has quit [Quit: breakingthings]
Michael__ has quit [Read error: Connection reset by peer]
mikewintermute has joined #ruby
brotatos has joined #ruby
Michael__ has joined #ruby
mocfive has quit [Remote host closed the connection]
generalissimo has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
ramblex has quit [Read error: Connection reset by peer]
<LiquidInsect>
jkline: you're using rbenv or rvm or soemthing similar, I assume?
niftylettuce has quit [Ping timeout: 256 seconds]
<jkline>
LiquidInsect: I am using rvm, and I'm a noob. I've been having a problem (stack trace after failed test) with rake 10.0.4, which my research suggested was fixed in the latest beta, so I `gem install --version "=10.1.0.beta.3" rake`
sambao21 has joined #ruby
<jkline>
now rake --version is 10.1.0.beta.3 like I expect, except in the directory for the gem I am trying to test (and experienced the bug), where it is still 10.0.4. Doh
vlad_starkov has quit [Read error: Connection reset by peer]
<LiquidInsect>
right. So, rvm sets a ruby version per project (per directory or whereenver it finds a .ruby-version file
vlad_starkov has joined #ruby
icecandy has joined #ruby
<jkline>
LiquidInsect: I don't think I have a .ruby-version file
<LiquidInsect>
rvm can also use something called gemsets, which are a set of gems that are visible to the current ruby you're using
<LiquidInsect>
jkline: .rvmrc maybe?
ToApolytoXaos has quit [Quit: Leaving]
<LiquidInsect>
it's been a while since I used rvm, I don't know what all it uses
<Sou|cutter>
it can use either
<jkline>
I don't think I have a .rvmrc
k610 has quit [Quit: Leaving]
[0x1a] has quit [Ping timeout: 256 seconds]
<LiquidInsect>
but 'rvm info' should tell you which ruby and gemset you're using currently
<jkline>
I have two gemsets (default) and global
<Sou|cutter>
either .rvmrc or the combo of .ruby-version and .ruby-gemset
<LiquidInsect>
and that will probably be different in each of the directories you're talking about
johnnyfuchs1 has joined #ruby
johnnyfuchs1 has quit [Remote host closed the connection]
<LiquidInsect>
if it finds no .rvmrc or .ruby-version in the CWD, it'll go up the directory stack until it finds one
Michael__ has quit [Remote host closed the connection]
Jackneill has quit [Read error: Operation timed out]
<jkline>
ok, i'll search my home directory for .rvmrc files, but I don't think I have any.
<LiquidInsect>
don't bother with that, use 'rvm info'
kofno has quit [Remote host closed the connection]
<jkline>
rvm info is the same in both the "good rake version" and "bad rake version" directories
workmad3 has quit [Read error: Operation timed out]
johnnyfuchs1 has joined #ruby
<jkline>
only diff is the "updated" seconds
kofno has joined #ruby
<LiquidInsect>
and what does it say?
<Sou|cutter>
is your test using bundler somehow, and does bundler specify the older version of rake?
<LiquidInsect>
Sou|cutter: good point, but wouldn't that require using 'bundle exec'?
<LiquidInsect>
unless he has some OTHER thing that sidesteps that
<LiquidInsect>
I know there's a few of those out there
<jkline>
Sou|cutter: yes, I am using Bundler,
* Sou|cutter
nods to LiquidInsect
<LiquidInsect>
jkline: aha
niftylettuce has joined #ruby
<LiquidInsect>
so check your Gemfile and Gemfile.lock in each project
ia___ has joined #ruby
johnnyfuchs has quit [Ping timeout: 276 seconds]
<LiquidInsect>
and look at which versions of rake are defined
devoldmx3 has joined #ruby
<jkline>
LiquidInsect: yes, that is it. I did not know that Gemfile.lock was there, will update it.
jmont has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 248 seconds]
<LiquidInsect>
Set the version of rake that you want in Gemfile and then 'bundle update rake
Zeeraw has joined #ruby
<LiquidInsect>
Gemfile.lock is automatically generated, it's not meant to be messed with
kofno has quit [Ping timeout: 248 seconds]
allaire has quit [Quit: allaire]
postmodern has joined #ruby
<jkline>
Gemfile has only source line, and then "gemspec"
<jkline>
my .gemspec file has spec.add_development_dependency "rake" with no version
<jkline>
I guess I'll put one
<LiquidInsect>
remove it from the gemspec file, your development dependencies should be in the Gemfile
Andreo_ has quit [Ping timeout: 252 seconds]
<LiquidInsect>
in a group named development
ryannielson has quit [Quit: ryannielson]
<LiquidInsect>
if you're going to use bundler, go all in
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
mityaz has quit [Quit: See ya!]
failshell has joined #ruby
<jkline>
what about run time dependencies?
<LiquidInsect>
should be in the default group
<jkline>
and what does "all in" for Bundler imply?
<LiquidInsect>
(which is to say in no group)
<LiquidInsect>
I just mean, if you're going to use bundler, list your dependencies in the Gemfile
<LiquidInsect>
not elsewhere
danslo has joined #ruby
bradhe has joined #ruby
<LiquidInsect>
it's confusing to others working on your project. Obviously you can do whatever you want, but this is how most projects are set up
<LiquidInsect>
but short solution is to list the version of rake you want whereever you're requiring it
<jkline>
My goal is to create a gem and then an rpm from the gem. I don't need all the dependencies bundled into the same file, because each gem will have its own rpm. I don't understand the pros and cons of using a gemspec file vs a Gemfile. Can you please explain or recommend a document?
<LiquidInsect>
bundler wouldn't do that anyway...
Guest52785 has quit [Remote host closed the connection]
<jlundy>
has the tutorial if you want to see the full class
<jlundy>
Operator Overloading section
<Morrolan>
Did you define the accessors?
rhys has joined #ruby
havenwood has quit [Remote host closed the connection]
<Morrolan>
If yes - paste your code on one of the many pastebins. :)
ephemerian has quit [Read error: Operation timed out]
<jlundy>
nope I didnt define an accessor
cj3kim has quit [Remote host closed the connection]
<jlundy>
the code claims it should work as is. I would have expected "other.width" to get the width value from the second object
<Morrolan>
Then the code there is probably at fault. You can use 'attr_reader :width, :height' to define read-only accessors, 'attr_writer :width, height' for write-only accessors, or 'attr_accessor :width, :height' for read- and write-accessors.
<Morrolan>
(You could also define Box#width, Box#width= etc. yourself, but why do that if there's a convenient shortcut. :) )
Eiam has joined #ruby
pcarrier_ has quit [Ping timeout: 246 seconds]
<jlundy>
Morrolan: thanks. I will look up attr_reader
<jlundy>
<-- total ruby noob
monkegjinni has joined #ruby
wargasm has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
Ortuna has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
marcgg has joined #ruby
<jlundy>
created getWidth and getHeight methods and changed his other.width and other.height to use those instead and this makes much more sense now
<jlundy>
thanks. :)
<Morrolan>
That'll work too. :)
poga_ has joined #ruby
<Morrolan>
Though in Ruby most people will simply use 'height' and 'height=' for their accessor methods.
spider-mario has quit [Read error: Connection reset by peer]
<sa1k0>
a = false
<sa1k0>
is a considered a string?
Osc- has quit [Client Quit]
<TTilus>
lectrick: yes, it never got anywhere
fuzzyhorns has quit [Remote host closed the connection]
<TTilus>
sa1k0: ruby is dynamically typed
emergion has joined #ruby
[m]adman has quit [Ping timeout: 256 seconds]
mawueli has joined #ruby
mawueli is now known as Guest4803
<TTilus>
sa1k0: variable (here "a") is mere pointer to value with no type information, value has the type information
<TTilus>
sa1k0: >> false.class
lushious has quit [Quit: "Spending the night in bed with your moms"]
jgarvey has quit [Remote host closed the connection]
<TTilus>
=> FalseClass
randomlogin has joined #ruby
<sa1k0>
hmm
<sa1k0>
Thanks dude
<TTilus>
qkdt: respond_to is a method call
jonathanwallace has quit [Quit: WeeChat 0.4.0]
<qkdt>
TTilus a method from a class? and also what is |format| in that context?
wargasm has joined #ruby
JustinAiken has quit [Quit: Leaving.]
sivoais has quit [Ping timeout: 252 seconds]
<TTilus>
qkdt: a method in the context the code resides
<qkdt>
oh
<TTilus>
s/resides/is executed/
<TTilus>
qkdt: looks like rails controller stuff
<qkdt>
yes i wanted to learn rails but demoted myself to just ruby
<qkdt>
because of these things i can't seem to understand xD
Guest4803 has quit [Remote host closed the connection]
<TTilus>
qkdt: respond_to is an instance method of rails controller class
<qkdt>
and what about |format|
sambao21 has joined #ruby
<TTilus>
qkdt: do ... end is a block, which is a closure, you can think of it as unnamed function
<TTilus>
qkdt: |format| is the parameter list of that function
Xeago_ has joined #ruby
<qkdt>
soof the respond_to
<qkdt>
yea it starts to make sense
niceguyjames has quit [Quit: Computer has gone to sleep.]
<TTilus>
qkdt: so the unnamed function given to respond_to as parameter, takes one parameter
JZTech101 has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
sivoais has joined #ruby
<TTilus>
qkdt: are you familiar with other languages?
<qkdt>
just python
<qkdt>
and a lil bit of C
cjs226 has quit [Quit: cjs226]
ariedler has quit [Remote host closed the connection]
<qkdt>
so |format| is given to respond_to when the anonymous block reaches end?
<randomlogin>
maybe someone can help me: performing a tls handshake i receive that error:
<randomlogin>
"SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: unexpected record (OpenSSL::SSL::SSLError)"
<randomlogin>
what does it mean?
wesside has quit [Quit: Ice cream truck!]
Xeago has quit [Ping timeout: 276 seconds]
<jkline>
qkdt: |format| is the parameter to the unnamed function block
wesside has joined #ruby
Eaven has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
<jkline>
when you pass a block to a function or method you are requested a callback. The function or method, in this case respond_to, will execute your block. Sometimes more than once.
<jkline>
when it calls your block it can pass in arguments just like a normal function, and those arguments are named inside the pipes
interactionjaxsn has quit [Remote host closed the connection]
pipework has joined #ruby
Azulinho has joined #ruby
<qkdt>
jkline i think i understand now, i also red about blocks in a book
interactionjaxsn has joined #ruby
<qkdt>
i will have to go throw it and read about it again because i didn't understand it properly
<qkdt>
thank you for explanation
<jkline>
that happens to me too :)
failshell has quit [Remote host closed the connection]
Michael__ has quit [Remote host closed the connection]
Azulinho has quit [Client Quit]
sivoais has quit [Ping timeout: 240 seconds]
<TTilus>
qkdt: blocks are nice syntax for passing anonymous functions as parameter
<TTilus>
qkdt: ruby has lambda too, in python you would use lambdas and inner functions to achieve things that are done with blocks in ruby
<qkdt>
i see
Azulinho has joined #ruby
sivoais has joined #ruby
interactionjaxsn has quit [Ping timeout: 252 seconds]
snearch has joined #ruby
lucianosousa has joined #ruby
<TTilus>
qkdt: and when you see keyword "yield", thats how you call the anonymous function which you have received as a parameter
forrest has quit [Quit: Leaving]
<qkdt>
yea that is the easy way
<TTilus>
qkdt: you see, ruby allows you to omit block parameter from method parameter list
tonini has joined #ruby
wesside has joined #ruby
Azulinho has quit [Client Quit]
<qkdt>
there is also another way to call the anonymous function
Xeago_ is now known as Xeago
freerobby has quit [Quit: Leaving.]
<TTilus>
qkdt: you can do either def foo; yield; end, or def foo(&block); block.call; end
<qkdt>
exactly
<TTilus>
they are basically the same thing
<qkdt>
yea i wish the books would explain the things i just found out here
<qkdt>
like the fact that |format| for example is just a parameter passed to the anonymous function from the respond_to method
<TTilus>
now there is in fact three ways :)
<qkdt>
xD
<TTilus>
yield, #call and #()
ferdev has joined #ruby
<TTilus>
and new stabby lambda syntax
johnnyfuchs1 has joined #ruby
<TTilus>
->{ 1+1 }.()
<qkdt>
i never fully understood lambdas xD
workmad3 has joined #ruby
<qkdt>
maybe some day
<TTilus>
that ->{ 1+1 } is a function that does not take any arguments, calculates 1+1 and returns the result
Cultofmetatron has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
Azulinho has joined #ruby
kirun has quit [Quit: Client exiting]
<TTilus>
the .() calls the function
timonv has quit [Remote host closed the connection]
<qkdt>
yea it's the second type of block the one which is mostly used for one line code xD
<qkdt>
of course that's not the real reason
<qkdt>
it's because it has higher precedence then the do end block
lewis has quit [Remote host closed the connection]
<TTilus>
there is a difference, { } is a block, ->{ } is lambda
tonini has quit [Ping timeout: 248 seconds]
<qkdt>
oh
<qkdt>
i didn't notice the ->
<TTilus>
that -> is why its called "stabby" ;)
<qkdt>
xD indeed
sivoais has quit [Ping timeout: 248 seconds]
<lectrick>
TTilus: Nice, you wrote that eh
johnnyfuchs has quit [Ping timeout: 248 seconds]
[0x1a] has joined #ruby
graydot has joined #ruby
<TTilus>
lectrick: looooong time ago
graydot has quit [Client Quit]
graydot has joined #ruby
havenwood has joined #ruby
<lectrick>
Point 2: What if Ruby had C-compiled versions of immutable collection classes such as that implemented by Hamster in pure Ruby?
akells` has quit [Remote host closed the connection]
<lectrick>
Point 3: If I override []=, why can't I return whatever I want? Why does Ruby force the assigned value to be returned even if I return something different?
axl_ has quit [Quit: axl_]
Michael__ has joined #ruby
noname001 has joined #ruby
sivoais has joined #ruby
lewis has joined #ruby
<TTilus>
lectrick: it is an invariant in ruby that assignments return rhs
emergion has quit [Quit: Computer has gone to sleep.]
<TTilus>
lectrick: plain design decision
<lectrick>
TTilus: I guess that makes sense given that I can't override pure assignment
jbpros has quit [Quit: jbpros]
<lectrick>
Although that could be pretty powerful
Michael__ has quit [Remote host closed the connection]
wesside has quit [Quit: Computer has gone to sleep.]
Michael__ has joined #ruby
jerius has quit [Read error: Operation timed out]
nezumi has joined #ruby
miskander has quit [Quit: miskander]
DanKnox_away is now known as DanKnox
niceguyjames has joined #ruby
nomenkun has joined #ruby
Inoperable is now known as Inoperabled
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
DaltonUS has quit [Quit: DaltonUS]
lewis has quit [Ping timeout: 276 seconds]
Kar- has quit [Remote host closed the connection]
freeayu has joined #ruby
Michael__ has quit [Ping timeout: 248 seconds]
bamdad has joined #ruby
<TTilus>
lectrick: what would the default implementation of that look like?
freerobby has joined #ruby
Spami has joined #ruby
sivoais has quit [Ping timeout: 276 seconds]
<TTilus>
lectrick: class Object; def =(rhs); ...; end; end
<lectrick>
it is just odd that I can override []= but it doesn't matter what I return, even though that is a method invocation
adkron_ has joined #ruby
<TTilus>
lectrick: i assume you are aware of the fundamental difference between "pure assignment" and []=
devoldmx3 has joined #ruby
codecop has quit [Remote host closed the connection]
Artheist has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
<jkline>
TTilus: I am not. what is the difference?
DanKnox is now known as DanKnox_away
l33 has quit [Remote host closed the connection]
dr0p has quit [Ping timeout: 264 seconds]
<TTilus>
lectrick: it is balancing between surprising method writer by not passing return value and surprising method user by returning something totally unrelated from an expression that looks like an assignment
adkron has quit [Ping timeout: 256 seconds]
devoldmx has quit [Ping timeout: 248 seconds]
<TTilus>
lectrick: surprising method writer was selected to be the least surprise
gaahrdner has joined #ruby
mikepack has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 240 seconds]
jrajav has quit [Quit: I tend to be neutral about apples]
<TTilus>
jkline: a = 1 binds value 1 to name a, it is a core language level construct
banister`sleep has joined #ruby
<TTilus>
jkline: a.b = 1 is syntactic sugar for a.b=(1) which is just another method call
Ortuna has quit [Quit: Computer has gone to sleep.]
zigomir_ has quit [Ping timeout: 276 seconds]
atSetKey has left #ruby ["Leaving..."]
igaiga has joined #ruby
DanKnox_away is now known as DanKnox
<workmad3>
nightfly: well, you can call 'binding' which gives you an object sort of like that
arya has quit [Ping timeout: 248 seconds]
<jkline>
so if a is an object then a = 1 does not call the function = on a?
<banister`sleep>
there is no '=' function in ruby
<jkline>
method?
<banister`sleep>
no
<jkline>
" a.b = 1 is syntactic sugar for a.b=(1) which is just another method call" ?
<banister`sleep>
no
<jkline>
what am I missing?
<banister`sleep>
it's just syntax
<banister`sleep>
it happens at a lower level that method/function invocation
<banister`sleep>
it's like in C
<TTilus>
the difference between a = 1 and a.b = 1
<jkline>
a.b = 1 means "set the value of a.b" right?
sqa_bm_ has joined #ruby
cantonic has quit [Ping timeout: 256 seconds]
<jkline>
so like: teacher.name=TTilus
cantonic_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<jkline>
so teacher.name is a String
<banister`sleep>
jkline: yeah, in that case it is, but that's the b= method, not a raw '='
ravster has left #ruby [#ruby]
<jkline>
aaaah
ariedler has joined #ruby
freeayu has quit [Ping timeout: 276 seconds]
<TTilus>
jkline: but "teacher.name" is not variable name
arya has joined #ruby
<jkline>
ok, see.
<TTilus>
jkline: ruby sees teacher.name=(TTilus)
<workmad3>
jkline: a.b = c is different from a = c
<jkline>
ok, got it.
sivoais has quit [Ping timeout: 248 seconds]
<TTilus>
jkline: where "teacher" and "TTilus" are var names and "name=" method name
<jkline>
you're calling a setter function that happens to have the name "name=" instead of something like "setName" that you might use in some other language
<workmad3>
jkline: pretty much, yes
<jkline>
ok
jbueza has quit [Quit: Leaving.]
crazymykl has quit [Read error: Connection reset by peer]
<jkline>
now I have to go learn mocks
jbueza has joined #ruby
freeayu has joined #ruby
Davey has joined #ruby
mikewintermute_ has joined #ruby
dr0p has joined #ruby
crazymykl has joined #ruby
pskosinski has quit [Remote host closed the connection]
RORgasm_ is now known as RORgasm
mikewintermute has quit [Ping timeout: 252 seconds]
mikewintermute_ is now known as mikewintermute
sivoais has joined #ruby
pkondzior___ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
atyz has joined #ruby
faulkner has quit [Read error: Operation timed out]
headius has quit [Quit: headius]
epochwolf has quit [Read error: Operation timed out]
x13378071 has quit [Read error: Operation timed out]
DomKM has quit [Read error: Connection reset by peer]
emmanuelux has joined #ruby
DomKM has joined #ruby
ahuman has quit [Read error: Operation timed out]
Davey has quit [Client Quit]
passcod has quit [Ping timeout: 240 seconds]
thomasfedb has quit [Ping timeout: 246 seconds]
rcs has quit [Ping timeout: 245 seconds]
splittingred has quit [Quit: splittingred]
awc737 has joined #ruby
pskosinski has joined #ruby
sgharms_ has quit [Read error: Operation timed out]
bmn has quit [Ping timeout: 245 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
ShapeShifter499 has quit [Ping timeout: 240 seconds]
darkapex has quit [Ping timeout: 252 seconds]
SegFaultAX has quit [Ping timeout: 260 seconds]
jjbohn has quit [Quit: Leaving...]
brendal has joined #ruby
arusso has quit [Ping timeout: 240 seconds]
shadoi has quit [Ping timeout: 245 seconds]
d_roge has quit [Ping timeout: 240 seconds]
ahuman has joined #ruby
sgharms has joined #ruby
Tarential has quit [Ping timeout: 264 seconds]
huoxito has joined #ruby
bmn has joined #ruby
Sou|cutter has quit [Ping timeout: 245 seconds]
sivoais has quit [Read error: Connection reset by peer]
rblackwe has quit [Ping timeout: 264 seconds]
shadoi has joined #ruby
faulkner has joined #ruby
wsterling has quit [Remote host closed the connection]
x1337807x has joined #ruby
rcs has joined #ruby
yekta has quit [Quit: yekta]
rblackwe has joined #ruby
arya has joined #ruby
RORgasm has quit [Remote host closed the connection]
gaahrdner has quit [Remote host closed the connection]
yekta_ has joined #ruby
yekta_ has quit [Client Quit]
ahuman has quit [Client Quit]
epochwolf has joined #ruby
ahuman has joined #ruby
akells` has joined #ruby
bamdad has joined #ruby
tjkrusin1ki has joined #ruby
thomasfedb has joined #ruby
razi has joined #ruby
arusso has joined #ruby
<sqa_bm_>
How can I display screen shots for test reporting using rspec formatter? The general rspec formatter does not support screen shot display.
<joshu>
i have a silly question well maybe it's not silly but here goes. is there a relatively easy way to have let's say a template pdf file which gets populated at specific parts by user input.
razi has quit [Client Quit]
<joshu>
For instance the simplest example is a pdf file with one line of text which reads "Hello <name>" <name> is populated all by ruby?
rblackwe has quit [Ping timeout: 252 seconds]
Tarential has joined #ruby
motto has quit [Quit: Sto andando via]
faulkner has quit [Ping timeout: 248 seconds]
wharfrat has joined #ruby
DrForr__ has quit [Ping timeout: 248 seconds]
kpshek has quit []
rblackwe has joined #ruby
bradhe has quit [Remote host closed the connection]
arusso has quit [Changing host]
arusso has joined #ruby
bmn has quit [Ping timeout: 248 seconds]
choobie has quit [Ping timeout: 245 seconds]
v0n has quit [Ping timeout: 256 seconds]
DrForr_ has joined #ruby
<workmad3>
joshu: no, but you can use Prawn to generate a pdf file with ruby
bamdad has quit [Client Quit]
saarinen has quit [Quit: saarinen]
arya has quit [Ping timeout: 248 seconds]
sgharms has quit [Ping timeout: 252 seconds]
digitalcake has joined #ruby
<joshu>
workmad3 would i be able to have a pdf template with prawn and add to it?
<joshu>
workmad3 thinking of a cover page type of thing
<workmad3>
joshu: pdf isn't really something you can 'template' in the sense of having a file and inserting strings into it
Ortuna has joined #ruby
sgharms has joined #ruby
<joshu>
workmad3 ok so prawn would be creating a pdf from scratch
<workmad3>
joshu: yeah
SegFaultAX has joined #ruby
Soulcutter has joined #ruby
<workmad3>
joshu: you could, I suppose, consider your file that generates the pdf with prawn as a 'template'
faulkner has joined #ruby
<workmad3>
joshu: but it's not quite correct to think that way
wmoxam has joined #ruby
<joshu>
workmad3 you mean say the ruby script would have some type of "template" block or similar
digitalcake has quit [Client Quit]
<joshu>
workmad3 not really a template but i see what you mean
<joshu>
hmm
<workmad3>
joshu: no, the ruby script would contain the structure you want to build
<workmad3>
joshu: using the prawn dsl
digitalcake has joined #ruby
<joshu>
workmad3 yeah that's sort of what i meant
bmn has joined #ruby
ntus1017 has quit [Remote host closed the connection]
<apeiros_>
you can also use webkit to convert html to pdf
lucianosousa has quit [Quit: lucianosousa]
<apeiros_>
there's a ruby binding for a headless webkit to do that
<apeiros_>
@ joshu & workmad
<workmad3>
joshu: the issue with attempting to simply 'template' pdf is that the final file contains a lot of layout information which is dependent on the length of strings, the font, etc
<apeiros_>
sadly webkit still does not support a couple of print-relevant css features
includex has quit [Quit: Leaving...]
<workmad3>
apeiros_: I believe you don't get as much control over the output with that though ;)
<apeiros_>
depends
<workmad3>
apeiros_: it's more like a 'here's you page as some form of pdf, take it or leave it'
<apeiros_>
don't know about webkit, we use princexml at work
<apeiros_>
and there it's a) shitloads easier than doing prawn, and b) you get quite a lot of control
generalissimo has quit [Remote host closed the connection]
<joshu>
apeiros_ you create pdfs at work?
<apeiros_>
a couple of dozens, yes
<joshu>
and you use princexml?
<apeiros_>
but as said, we use princexml, which costs ~3k
<joshu>
oh ok
<joshu>
hehe
Hanmac2 has joined #ruby
SegFaultAX has quit [Ping timeout: 240 seconds]
brunoro has quit [Ping timeout: 240 seconds]
<workmad3>
joshu: that's the same solution as I just suggested
<workmad3>
joshu: except that prawnto is an old rails plugin that integrates prawn into the rails 2 render pipeline
bradhe has joined #ruby
<joshu>
workmad3 ok i'm just using plain ruby
<workmad3>
joshu: so you create prawn 'templates' in rails parlance, which are simply ruby scripts using prawn to generate a pdf
<apeiros_>
blerp
wmoxam has quit [Read error: Connection reset by peer]
<apeiros_>
tying pdf generation to controllers was the worst I ever did
emmanuelux has quit [Ping timeout: 276 seconds]
ybart has quit [Quit: ybart]
fuzzyhorns has joined #ruby
arya has joined #ruby
theRoUS has quit [Ping timeout: 276 seconds]
<joshu>
workmad3 so "they've had the ability to import another pdf for use as a "template" per se. " this is about importing an actual pdf file and adding to it?
Hanmac has quit [Ping timeout: 264 seconds]
<joshu>
instead of replacing I can add if that's any different..sorry if i'm going in circles
<workmad3>
joshu: if you read the comments on the first accepted answer you'll see someone saying 'there's no good or easy way to do that'
SegFaultAX has joined #ruby
sqa_bm_ has quit [Read error: Connection reset by peer]
sqa_bm has joined #ruby
<workmad3>
joshu: and it really boils down to pdf being a format for laying things out, so it's not something you can easily create a template for and then 'slot in' values afterwards
<joshu>
workmad3 ok dropping it. i'm googling prawn pdf creation form scratch to see how difficult it is to do something that looks decent
browndawg has joined #ruby
<workmad3>
joshu: prawn is pretty easy to use IMO :)
browndawg has left #ruby [#ruby]
_Amaan has quit [Quit: _Amaan]
<workmad3>
joshu: the other thing you could consider, if you feel a bit masochistic, would be to create a latex template
cofin has quit [Quit: cofin]
<workmad3>
joshu: that's something you *can* template and then insert values into, then generate a pdf from it
wmoxam has joined #ruby
arya has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
<joshu>
workmad3 if you knew the type of shit i deal with on a daily basis…"masochistic" is an understatement :(
d_roge has joined #ruby
tootubular has quit [Quit: tootubular]
<workmad3>
joshu: maybe have a look at latex then ;)
<joshu>
workmad3 haha
<joshu>
workmad3 are you a mac user?
<workmad3>
I am
ShapeShifter499 has joined #ruby
<joshu>
you have pages?
<workmad3>
nope
<joshu>
iwork pages?
yairgo has quit [Ping timeout: 276 seconds]
<joshu>
ok have you seen the templates in pages?
<workmad3>
no
<joshu>
ok
<joshu>
hehe
mocfive has quit [Remote host closed the connection]
rhys has quit [Quit: Leaving]
saarinen has joined #ruby
sqa_bm has quit [Ping timeout: 252 seconds]
<joshu>
the crux is that i have a simple pdf template for use with a fucked up fax online system. that system only excepts…wait for it…doc and rtf. well guess what converting the pdf to those shitty formats looks like crap. furthermore the fax system requires certain tags that get populated and those are not functional when converting
ephemerian has joined #ruby
<workmad3>
right... so rendering a pdf to an image and setting it as the background image in a .doc... no go? :)
devoldmx3 has quit [Ping timeout: 276 seconds]
<joshu>
so being the macgyver i am as apeiros_ already knows what i'm working on…I started to think why don't i just build a system that populates the pdf myself
<Xeago>
joshu: why pdf anyways?
digitalcake has quit [Quit: Leaving.]
<apeiros_>
IME if the template doesn't change often, just recreating it in prawn/html is easier, faster and more reliable
<joshu>
workmad3 hmmm.. what about adding fields on top of that image?
wmoxam has quit [Ping timeout: 248 seconds]
<workmad3>
joshu: you could... it would probably be more horrendous than what you currently have though :P
<joshu>
template is 92.3% always the same…what changes are subject, fax number, from, to, message
<joshu>
Xeago how do you mean?
<apeiros_>
joshu: those can be parametrized too
mocfive has joined #ruby
<joshu>
apeiros_ exactly
<apeiros_>
a change in template is if the layout changes
<Xeago>
what is the requirement to use PDF?
<workmad3>
if the template is pretty simple, just generate it with prawn and use that to stick in the values
<joshu>
i already have that data ;)
<Xeago>
in my experience RTF is quite easy to work with
<joshu>
layout will be same, so templete is a single one only
arya_ has quit []
<joshu>
Xeago I tried RTF but I was not able to recreate the layout so that it looked acceptable…i tried saving directly to RTF, converting from PDF to RTF. but I learnt that there are different RTF "versions" the fax provider only accepts the one you get on windows
emergion has joined #ruby
<joshu>
TextEdit on Mac RTF differs from Windows RTF apparently
willob has joined #ruby
terrellt has quit [Ping timeout: 256 seconds]
<apeiros_>
"standards"
<apeiros_>
<3
<apeiros_>
/sarcasm
<workmad3>
apeiros_: you love standards
<apeiros_>
I love standards. I hate "standards".
tomzx_mac has joined #ruby
arya has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
<apeiros_>
hm, I need a new monitor. back when I bought this one, it wasn't an issue that it only had one input…
gstamp has joined #ruby
whowantstolivefo has quit [Ping timeout: 248 seconds]
<joshu>
if only companies thought about the services they build and offer things would be different but unfortunately very few do
F1skr has quit [Quit: WeeChat 0.4.1]
jlast has quit [Ping timeout: 276 seconds]
xardas has quit [Ping timeout: 276 seconds]
arya has quit [Read error: Connection reset by peer]