idkazuma has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
banisterfiend is now known as banister`sleep
nomenkun has quit [Ping timeout: 240 seconds]
guiambros has quit [Ping timeout: 272 seconds]
guiambros has joined #ruby
marr has quit [Ping timeout: 264 seconds]
love_color_text has quit [Remote host closed the connection]
pcarrier has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
__alpaca has joined #ruby
lewix has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
__alpaca has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
robert_ has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
osvico has quit [Ping timeout: 276 seconds]
jesly has joined #ruby
pcarrier has joined #ruby
BSaboia has joined #ruby
rakl has quit [Ping timeout: 272 seconds]
rakl has joined #ruby
robert_ has joined #ruby
IceyEC has quit [Quit: IceyEC]
johnnyfuchs has quit [Remote host closed the connection]
codesoda has quit [Remote host closed the connection]
rezzack has quit [Quit: Leaving.]
jbueza has joined #ruby
d2dchat has joined #ruby
jesly has quit [Quit: Leaving.]
postmodern has joined #ruby
tvw has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
octarine has joined #ruby
mercwithamouth has joined #ruby
codezombie has joined #ruby
neurone-1337 has joined #ruby
johnnyfuchs has joined #ruby
chrishough has quit [Quit: chrishough]
Squarepy has quit [Remote host closed the connection]
kil0byte has joined #ruby
heckyhec has joined #ruby
kil0byte_ has quit [Ping timeout: 268 seconds]
gyre007 has quit [Remote host closed the connection]
Bry8Star has quit [Read error: Connection reset by peer]
Asher has joined #ruby
neurone-1337 has quit [Ping timeout: 258 seconds]
jesly has joined #ruby
Domon has joined #ruby
miso1337 has quit [Quit: afk]
<lewix>
Michael__: dictionary...
<lewix>
Banistergalaxy: a quick quesiton about rails
<lewix>
oh this is the wrong one, banister`sleep
tds has joined #ruby
darrik has quit [Quit: *poof*]
decentrality has quit [Quit: decentrality]
miso1337 has joined #ruby
vlad_starkov has joined #ruby
<peta_>
When I split my object creation (Klass.allocate) from its initialization (klassObj.send :initialize), how can I check if it was really initialized? Does RUby offer some method for that?
<peta_>
like klassObj.initialized?
tracekill has left #ruby [#ruby]
darrik has joined #ruby
jahrichie has joined #ruby
kil0byte has quit [Ping timeout: 258 seconds]
hogeo has joined #ruby
chrishough has joined #ruby
<jahrichie>
hey all
<jahrichie>
any idea what date format this would be? startDate : "1357034400"
<darrik>
jahrichie: unix timestamp?
<jahrichie>
coo
<jahrichie>
i'll check the strf times
<waxjar>
peta_, i believe not
kil0byte has joined #ruby
tommyvyo has joined #ruby
<peta_>
waxjar: okay
vlad_starkov has quit [Ping timeout: 276 seconds]
<peta_>
jahrichie: lol … please dont try to tell me that you've never seen a unix timestamp before?!
djwonk has joined #ruby
<peta_>
;)
<jahrichie>
peta_: i have
<jahrichie>
wasn't sure
<jahrichie>
i thought iso at first
<jahrichie>
obvi i was way off
saskuash has quit [Ping timeout: 252 seconds]
<lewix>
is the rails channel not nearly as lively as this one or is it an impression
<Quadlex>
Lots of people are probably on their way to Railsconf
johnmilton has joined #ruby
<jahrichie>
protland this year
<jahrichie>
right?
osvico has joined #ruby
<jahrichie>
bummed i didnt buy tix
johnnyfuchs has quit [Remote host closed the connection]
<lewix>
In Rails I'm a little bit confused with methods. What methods are shared between the models,test,controllers, and modeld, and which aren't
Michael__ has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 252 seconds]
casheew has quit [Read error: Connection reset by peer]
radic has joined #ruby
bradhe has quit [Remote host closed the connection]
dmiller_ has quit [Remote host closed the connection]
love_color_text has joined #ruby
robustus has joined #ruby
dmiller has quit [Ping timeout: 258 seconds]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
__alpaca has quit [Ping timeout: 272 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
BinaryMstr has quit [Quit: Bye loves see you again soon!]
crash0verride has joined #ruby
pskosinski has quit [Quit: pskosinski]
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
gabrielrotbart has joined #ruby
RORgasm has joined #ruby
kil0byte has quit [Ping timeout: 248 seconds]
love_color_text has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
bsaboia_ has quit [Remote host closed the connection]
BSaboia has quit [Read error: Connection reset by peer]
krz has joined #ruby
Michael__ has joined #ruby
love_color_text has joined #ruby
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
RORgasm has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
sayan has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
Michael__ has quit [Remote host closed the connection]
JimmyNeutron has joined #ruby
Cache_Money has joined #ruby
love_color_text has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
shevy has joined #ruby
ryanf has joined #ruby
rickruby has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
crash0verride has quit [Remote host closed the connection]
ntzrmtthihu777 has joined #ruby
<ntzrmtthihu777>
ello. anyone care to inform me of the version of ruby that ships with ubuntu 12.04? #ubuntu seems non responsice
rickruby has joined #ruby
Hobogrammer has quit [Ping timeout: 268 seconds]
horofox_ has quit [Quit: horofox_]
general__ has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
cooldman224 has quit [Ping timeout: 272 seconds]
Animawish has quit [Quit: Animawish]
vlad_starkov has joined #ruby
jnoob22 has quit [Remote host closed the connection]
Animawish has joined #ruby
peta_ has quit [Quit: peta_]
gyre007 has joined #ruby
jimg has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
JimmyNeutron has quit [Quit: Leaving]
gyre007 has quit [Ping timeout: 240 seconds]
decentrality has joined #ruby
kil0byte_ has joined #ruby
bhaarat has quit [Quit: bhaarat]
sayan has quit [Ping timeout: 256 seconds]
breakingthings has quit []
love_color_text has joined #ruby
nomenkun has joined #ruby
kil0byte has quit [Ping timeout: 260 seconds]
love_color_text has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 256 seconds]
neurone-1337 has joined #ruby
holographic_jap has joined #ruby
holographic_jap has quit [Client Quit]
bhaarat has joined #ruby
jesly has quit [Quit: Leaving.]
MrPoT4tO has joined #ruby
love_color_text has joined #ruby
holographic_jap has joined #ruby
cooldman224 has joined #ruby
sayan has joined #ruby
decentrality has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
neurone-1337 has quit [Ping timeout: 264 seconds]
keyvan has joined #ruby
jahrichie has quit [Quit: Leaving.]
casheew has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
love_color_text has quit [Ping timeout: 256 seconds]
holographic_jap has quit [Quit: Leaving]
jimg has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 255 seconds]
tds has quit [Quit: tds]
Cache_Money has quit [Ping timeout: 246 seconds]
chandankumar has joined #ruby
casheew has joined #ruby
jdunck has joined #ruby
holographic_jap has joined #ruby
codesoda has joined #ruby
tds has joined #ruby
keyvan has quit [Ping timeout: 260 seconds]
kofno has quit [Remote host closed the connection]
jovy88 has quit [Read error: Connection reset by peer]
holographic_jap has quit [Quit: holographic_jap]
rickruby has joined #ruby
jovy88 has joined #ruby
Matip has joined #ruby
sleetdrop has joined #ruby
jblack has quit [Quit: Lost terminal]
Palantir has quit [Ping timeout: 240 seconds]
tds has quit [Quit: tds]
lewix has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
Mattix has quit [Ping timeout: 272 seconds]
neurone-1337 has joined #ruby
idkazuma has quit [Remote host closed the connection]
tds has joined #ruby
d2dchat has quit [Remote host closed the connection]
ntzrmtthihu777 has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
bradhe has joined #ruby
tds has quit [Client Quit]
Cultofmetatron has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
jimg has joined #ruby
chandankumar has quit [Quit: Leaving]
jimg has quit [Remote host closed the connection]
pcarrier has quit [Quit: Computer has gone to sleep.]
jimg has joined #ruby
rippa has joined #ruby
__alpaca has joined #ruby
neurone-1337 has quit [Ping timeout: 256 seconds]
ARCADIVS has joined #ruby
idkazuma has joined #ruby
idkazuma has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
pcarrier has joined #ruby
pcarrier has quit [Client Quit]
symme7ry has joined #ruby
blandflakes has quit [Ping timeout: 258 seconds]
__alpaca has quit [Remote host closed the connection]
blandflakes has joined #ruby
rickruby has joined #ruby
jdunck has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
kil0byte_ has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
neurone-1337 has joined #ruby
arubin has joined #ruby
pcarrier has joined #ruby
DementedInsanity has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
pcarrier has quit [Client Quit]
jaybe has joined #ruby
wedgex has joined #ruby
rickruby has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
neurone-1337 has quit [Ping timeout: 252 seconds]
nomenkun has quit [Ping timeout: 272 seconds]
threesome has joined #ruby
mootpointer has joined #ruby
heckyhec has quit [Quit: Page closed]
eldariof has joined #ruby
<Z_Mass>
Possibly not the right place to ask, but I haven't had much luck on google for this. I'm using ST2, and every time I type 'do' I have to hit enter twice to get to the next line. Is there quick fix for that?
sayan has joined #ruby
ariedler has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
rickruby has joined #ruby
wallerdev has quit [Quit: wallerdev]
cooldman224 has quit [Remote host closed the connection]
brunoro has joined #ruby
chandankumar has joined #ruby
notrin has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
eldariof has quit [Ping timeout: 276 seconds]
intrin has quit [Ping timeout: 255 seconds]
adamjleonard has quit [Quit: Leaving...]
guiambros has quit [Ping timeout: 264 seconds]
splittingred has quit [Quit: splittingred]
guiambros has joined #ruby
freezey has joined #ruby
ckrailo has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
jdunck has quit [Quit: Computer has gone to sleep.]
RORgasm has joined #ruby
idkazuma has joined #ruby
bhaarat has quit [Quit: bhaarat]
pcarrier has joined #ruby
joeybutler1 has joined #ruby
gommo has joined #ruby
RORgasm has quit [Ping timeout: 272 seconds]
idkazuma has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
mockra has joined #ruby
sayan has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
Cache_Money has quit [Client Quit]
tommyvyo has joined #ruby
philcrissman has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
idkazuma has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 276 seconds]
daidoji70 has joined #ruby
daidoji has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
spike|spiegel has quit [Quit: WeeChat 0.4.0]
bothra has quit [Read error: Connection reset by peer]
bothra has joined #ruby
chandankumar has quit [Quit: Leaving]
lunchtime_ has quit [Remote host closed the connection]
spike|spiegel has joined #ruby
rakl has quit [Quit: sleeping]
halfie|bbl is now known as halfie
ananthakumaran has joined #ruby
tagrudev has joined #ruby
timonv has joined #ruby
cptmorgan has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
jdunck has joined #ruby
<cptmorgan>
how would i write a if condition to match multiple values? Like <% if hostname == "hostname01,hostname02" %>
<Mon_Ouie>
Just use an or. if value == a || value == b
divout has quit [Remote host closed the connection]
<cptmorgan>
Mon_Ouie: kinda new to ruby, what do you mean by and or the || statement you wrote. Would that look like ...hostanme == "hostname01" || "hostname02" %>
<Mon_Ouie>
It would look like "if value == a || value == b"
<Mon_Ouie>
You should go back to reading some introduction to Ruby. That would most certainly be mentioned with conditionals, etc.
<AgentWillyWonka>
Mon_Ouie isn't saying match is in true but not or
<AgentWillyWonka>
so instead of || he would be using &&
MrPoT4tO has quit [Remote host closed the connection]
<Mon_Ouie>
value == a && value == b is always false (as long as a and b are different)
noop has joined #ruby
<spike|spiegel>
as long as a != b :)
blacktulip has joined #ruby
<AgentWillyWonka>
there's the condensed version cptmorgan
iMadper has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 252 seconds]
pcarrier has joined #ruby
hemanth has joined #ruby
<hemanth>
>> [1,2,3,4,5,6][1,2,-1]
<eval-in_>
hemanth => /tmp/execpad-c1b4a9b62fb3/source-c1b4a9b62fb3:2:in `[]': wrong number of arguments (3 for 1..2) (ArgumentError) ... (http://eval.in/17934)
<hemanth>
:|
<hemanth>
meow
troessner has joined #ruby
camilasa_ has joined #ruby
jduan1981 has quit [Quit: jduan1981]
gungor has quit [Remote host closed the connection]
sayan has quit [Remote host closed the connection]
gungor has joined #ruby
atno has joined #ruby
camilasa_ has quit [Remote host closed the connection]
chris__ has quit [Remote host closed the connection]
camilasan has quit [Ping timeout: 276 seconds]
io_syl has joined #ruby
chris__ has joined #ruby
icecandy has joined #ruby
idkazuma has joined #ruby
jbpros has joined #ruby
idkazuma has quit [Remote host closed the connection]
ferdev has joined #ruby
chris__ has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
kil0byte has joined #ruby
yshh has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 258 seconds]
ephemerian has joined #ruby
kil0byte has quit [Ping timeout: 258 seconds]
robottinosino has quit [Quit: WeeChat 0.4.0]
Banistergalaxy has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
Targen has joined #ruby
mklappst_ has joined #ruby
elaptics`away is now known as elaptics
echevemaster has quit [Remote host closed the connection]
slainer68 has joined #ruby
noxoc has joined #ruby
haxrbyte_ has quit [Ping timeout: 272 seconds]
haxrbyte has joined #ruby
prime_ has quit [Read error: Connection reset by peer]
prime has joined #ruby
prime has quit [Changing host]
prime has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
tundrax has joined #ruby
RORgasm has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
freeayu__ has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
corehook has joined #ruby
rippa has joined #ruby
<corehook>
hi all guys
<corehook>
i got error when starting script that work with HSM
<corehook>
redis ( LoadError )
Domon has quit [Remote host closed the connection]
<corehook>
how and where i can get redis module ?
<corehook>
gem install redis # dont help
cantonic has quit [Quit: cantonic]
yshh has joined #ruby
<corehook>
sender.rb:5:in `require': no such file to load -- redis (LoadError)
dfdf is now known as _KGBot_
RORgasm has quit [Ping timeout: 272 seconds]
noop_ has joined #ruby
codecop has quit [Remote host closed the connection]
codecop has joined #ruby
noop has quit [Ping timeout: 256 seconds]
pcarrier has quit [Quit: Computer has gone to sleep.]
Zai00 has joined #ruby
codecop has quit [Remote host closed the connection]
pi3r has joined #ruby
codecop has joined #ruby
project2501a has joined #ruby
<project2501a>
if design patterns are easily recognizable, disentable, does that mean that in theory someone could create a code parser that can losely display the code flow? something like a summary of a module or a file.
agarie_ has quit [Remote host closed the connection]
agarie has joined #ruby
agarie has quit [Client Quit]
tundrax has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
cha1tanya has joined #ruby
gungor_ has quit [Remote host closed the connection]
pcarrier has joined #ruby
<keanehsiao>
hi body, how do I display \ between \" \"
<keanehsiao>
I tried \\ but doesn't work
gungor has joined #ruby
vlad_starkov has joined #ruby
codecop has quit [Remote host closed the connection]
<keanehsiao>
oh.. I wann use \ before "d" so it would like \" abc\d \" and I want keep \ before d
<troessner>
project2501a, you mean like ruby2uml?
fixl has joined #ruby
<troessner>
corehook, which rubyversion? rvm set up?
<corehook>
1.8.7
<corehook>
what is rvm ?
tundrax has joined #ruby
_KGBot_ is now known as _helpbot_
vlad_starkov has quit [Ping timeout: 268 seconds]
<corehook>
i am python programmist so dont know all nicety
krz has quit [Quit: krz]
gyre007 has joined #ruby
<corehook>
ok ruby version manager
<corehook>
i must install it ?
atyz has joined #ruby
<Quadlex>
No, you don't have to, but it makes managing different versions of Ruby easier
<corehook>
i see
krz has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
<troessner>
corehook, you need to do require 'rubygems' before requiring redis
chandankumar has joined #ruby
<troessner>
corehook, and you wouldn't need to do that if you wouldnt use a ruby version that is heavily outdated
<troessner>
do yourself a favor and use ruby 2.0
<corehook>
its work!
<corehook>
thx
Hobogrammer_ has quit [Ping timeout: 252 seconds]
<corehook>
1.8.7 is outdated ?
<troessner>
yes, heavily
charliesome has joined #ruby
niceguyjames has joined #ruby
<troessner>
corehook, the core team will even stop supporting it pretty soon. *that* outdated
<troessner>
so better go for 2.0
<troessner>
;)
<corehook>
god bless all you
<corehook>
ok
emergion has joined #ruby
Shrink has quit [Ping timeout: 252 seconds]
love_color_text has joined #ruby
pcarrier has quit [Ping timeout: 256 seconds]
pcarrier has joined #ruby
dnyy has quit [Ping timeout: 264 seconds]
marr has joined #ruby
eka has joined #ruby
PHPanos has joined #ruby
Meeh_afk is now known as Meeh
mklappst_ has quit [Remote host closed the connection]
adambeynon has joined #ruby
bradhe has joined #ruby
pagios has joined #ruby
arya has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 245 seconds]
codecaster has joined #ruby
<codecaster>
Hi there
<codecaster>
lately I'm having issues with bundler and gem commands
<codecaster>
my computer hangs for some seconds when I run bundle install, gem whatever...
<codecaster>
do you know why this might be happening?
nomenkun has joined #ruby
<keanehsiao>
hi body, how do I display \ between \" \", I tried \\ but doesn't work… I wann use \ before "d" so it would like \" abc\d \" and I want keep \ before d
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
Villadelfia has quit [Read error: Operation timed out]
love_color_text has quit [Remote host closed the connection]
SeySayux has joined #ruby
mahmoudimus has quit [Remote host closed the connection]
<ntzrmtthihu777>
hullo. decided to get around to learning irb, question of "require"ing a prewritten script; how would I go about that?
mahmoudimus has joined #ruby
<rippa>
require 'script.rb'
<codecaster>
".rb" is optional
<codecaster>
and usually it's not used
Villadelfia has joined #ruby
backjlack has quit [Read error: Connection reset by peer]
backjlack_ has joined #ruby
<rippa>
I use it to see at a glance which source files are mine
vlad_starkov has quit [Remote host closed the connection]
gommo has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tundrax has quit [Remote host closed the connection]
<ntzrmtthihu777>
mhmm, but how do I use that without having to do the full path? I launch irb in the dir containing the script I wish to require
RagingDave has joined #ruby
dhruvasagar has quit [Ping timeout: 258 seconds]
<ntzrmtthihu777>
regardless of what I try i get cannot infer base path
dhruvasagar has joined #ruby
bakingbread has quit [Ping timeout: 246 seconds]
amarraja has left #ruby [#ruby]
smiler has quit [Ping timeout: 245 seconds]
<ntzrmtthihu777>
nvm, I got it. bit of a shock when requireing my games script launched it XD
<ntzrmtthihu777>
hmm, but require 'zlib' returns false....
iMadper has joined #ruby
persand has quit [Quit: persand]
rdark has quit [Remote host closed the connection]
<LennyLinux>
ntzrmtthihu777: you can use the -r option or, inside the irb: $LOAD_PATH.unshift '.'; require 'my_file'
gungor has quit [Remote host closed the connection]
<LennyLinux>
irb -r./my_file.rb
hamed_r has quit [Remote host closed the connection]
rdark has joined #ruby
givello has joined #ruby
_helpbot_ has quit [Remote host closed the connection]
miso1337 has joined #ruby
<givello>
Hey, I'm new to ruby and using a library called REXML, on linux (ubuntu). However, I can't access the doc of this library using ri, even though I can do it for the core ruby objects and methods. Any idea?
tonini has quit [Remote host closed the connection]
<givello>
iMadper: yeah, that's what I'm doing right now but it's not really handy
<LennyLinux>
Is there any chance you installed the gem with --no-ri or --no-doc option?
bakingbread has joined #ruby
<givello>
LennyLinux: If I remember well I used some ubuntu package, I don't remember using a gem... Now I may be wrong about that
Bry8Star_ has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
Bry8Star_ is now known as Bry8Star
yshh_ has joined #ruby
vlad_sta_ has joined #ruby
<LennyLinux>
Then you could try to look the list of optional packages for that package, maybe you can install the docs, givello.
khismetix has joined #ruby
yshh has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
<givello>
LennyLinux: I'll check to see if I really installed it that way and if I missed a package or two. Do you know where are the ruby docs installed on linux?
dv_ has joined #ruby
salmonax has joined #ruby
DrCode has quit [Remote host closed the connection]
<LennyLinux>
givello: idk, but think a subdir of `which ruby'
salmonax has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 256 seconds]
<givello>
Okay, thanks
Shoobdidoo has quit [Quit: Verlassend]
<csmrfx>
givello: answer is not as simple as that
DrCode has joined #ruby
<csmrfx>
givello: you would do well to open a terminal and try 'locate rdoc'
<csmrfx>
or: locate rdoc | less
idkazuma has joined #ruby
<givello>
csmrfx: Thanks a lot! turns out they are mostly in /usr/lib/ruby/1.8/rdoc and /var/lib/gems/1.8/docs
bluenemo has joined #ruby
bluenemo has joined #ruby
johchri has joined #ruby
persand has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep.]
angusiguess has joined #ruby
yshh_ has quit [Remote host closed the connection]
<LennyLinux>
givello: are you using ruby for work?
<givello>
LennyLinux: You could say that... Why the question?
binaryplease has joined #ruby
tk_ has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
yshh has joined #ruby
condy has joined #ruby
tundrax has joined #ruby
<LennyLinux>
givello: inquisitiveness. Because your nick looks italian and i'd like to know the spread of ruby in Italy's job world
condy has quit [Client Quit]
<givello>
LennyLinux: Haha, I'm not italian though :p It's a play on my family & first name initials
<LennyLinux>
:D
Bry8Star_ has joined #ruby
<givello>
I'm French actually, and I'm making a quick script to generate some xml from another one, and I took this as an opportunity to learn ruby, if you want to know the whole story.
robert___ has joined #ruby
<LennyLinux>
much better than using Java
<givello>
Well, I already learned ruby a bit a few months ago, to be honest, but never really used it
emergion has quit [Quit: Computer has gone to sleep.]
<ntzrmtthihu777>
Armaments 2:9-21
xlab has joined #ruby
<LennyLinux>
lol
Bry8Star has quit [Ping timeout: 276 seconds]
<givello>
For what I'm doing it was more competing with python or perl, I guess, but that's true
cantonic has joined #ruby
<lufi>
whats is your recommended GUI toolkit/library for ruby?
<ntzrmtthihu777>
lufi: I find wxruby to be tricky but powerful
robert_ has quit [Ping timeout: 255 seconds]
<lufi>
hmm ok taking note of that.
<csmrfx>
lufi: you could use any java gui toolkit, too
<lufi>
i was starting too look at shoes
tundrax has quit [Ping timeout: 264 seconds]
<ntzrmtthihu777>
I'm rather impressed with the scholarly accuracy of monty python's holy grail here. thats actuall old hebrew in the vorpal rabbits cave
<ntzrmtthihu777>
proper letters at least. whether or not it says what it says it says idk.
<csmrfx>
lufi: afaik shoes is more an experiment than actual tool
bradhe has joined #ruby
monkegjinni has quit [Remote host closed the connection]
tonini has joined #ruby
monkegjinni has joined #ruby
arya has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Quit: Lost terminal]
dhruvasagar has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
neurone-1337 has joined #ruby
Spooner has joined #ruby
bradhe has quit [Ping timeout: 258 seconds]
johchri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lmf40 has quit [Remote host closed the connection]
codecop has joined #ruby
<whowantstolivefo>
hiya, im trying to figure out ruby fundamentals via ruby koans, i checked at ruby core page also but i still cant figure out whats ` assert and assert_equal and assert_* methods and what work for ?
<ntzrmtthihu777>
correct me if I'm wrong, each is more or less standard ruby, right? as in iterating through an array?
<whowantstolivefo>
i am at that page already, i readed there, just didnt englightment good myself
<csmrfx>
whowantstolivefo: yeah it expects you to require a gem or library
<csmrfx>
perhaps Test::Unit
<csmrfx>
many others provide assert
kirun has joined #ruby
<whowantstolivefo>
csmrfx: ok, stop stuck at here for me, and keep doing , and start learning ruby :)
<whowantstolivefo>
thank you csmrfx~
ARCADIVS has quit [Quit: WeeChat 0.3.8]
filipe has quit [Ping timeout: 252 seconds]
<csmrfx>
whowantstolivefo: also, look into TDD, Test Driven Developement
RORgasm has quit [Ping timeout: 272 seconds]
Neomex has joined #ruby
arya has joined #ruby
hemanth is now known as Guest53260
tundrax has quit [Remote host closed the connection]
pehlert has joined #ruby
Guest53260 has quit [Ping timeout: 245 seconds]
marr has quit [Ping timeout: 268 seconds]
fmcgeough has quit [Quit: fmcgeough]
<tobiasvl>
ntzrmtthihu777: yes, each is very much standard ruby
<tobiasvl>
ntzrmtthihu777: it's the ruby way of iterating/enumerating
foofoobar has joined #ruby
<whowantstolivefo>
csmrfx: i have no too much programming backgrouund and try to learn ruby.. and from almost stratch.. i started and looked many ruby and rails sites, whenever i wanna go deep, i get into stuck at some parts and at #ruby my friends suggessted to me at first learn Ruby basics and fundemantal, after i can pass other subjects with related programming ruby
<ntzrmtthihu777>
tobiasvl: then why does irb not respond to it? is there something I should be requireing but am passing over?
_64k has joined #ruby
noop_ has joined #ruby
jamie_ca_ has joined #ruby
lewix has quit [Remote host closed the connection]
lewix has joined #ruby
johnmilton has quit [Quit: Leaving]
tundrax has joined #ruby
<tobiasvl>
ntzrmtthihu777: respond to it? what do you mean by that? what code are you trying to run?
<ntzrmtthihu777>
its a bit of rubyscript that operates inside of RPG maker's rgss, trying to decode a zlib compressed data file :P
robert___ is now known as robert_
<tobiasvl>
ntzrmtthihu777: but what are you trying to call each on?
<tobiasvl>
it's an instance method that not every class has
<csmrfx>
whowantstolivefo: good on you! and yes, TDD is more about software production methodology
<tobiasvl>
so i'm not sure what you mean by irb not responding to it
Michae___ has quit [Remote host closed the connection]
<ntzrmtthihu777>
within rgss, that is inserted into the games code itself, this works perfectly fine and dumps the contents of the scripts database file into one neat text file quite cleanly.
<tobiasvl>
rgss?
lewix has quit [Ping timeout: 268 seconds]
filipe has joined #ruby
<ntzrmtthihu777>
Ruby Game Scripting System, or somethin like that. forget exactly.
<tobiasvl>
ntzrmtthihu777: so that problem is that on line 12, you get a NoMethodError because input doesn't have an each method?
<tobiasvl>
or am i misunderstanding
jbpros has quit [Quit: jbpros]
_64k has quit [Ping timeout: 258 seconds]
<tobiasvl>
you're not exactly giving a clear problem description :P
<ntzrmtthihu777>
exactly.
<MrZYX>
ntzrmtthihu777: what's the exact error you're getting
<tobiasvl>
ntzrmtthihu777: but what is input? where do you call decode_rx and what are you giving as the second argument?
jnoob22 has joined #ruby
<tobiasvl>
ntzrmtthihu777: you never use script for anything, sure you didn't mean to call script.each?
tonini has joined #ruby
Xeago has quit [Remote host closed the connection]
<ntzrmtthihu777>
NoMethodError: undefined method `each' for "Data/Scripts.rxdata":String from /home/ntzrmtthihu777/.src/RPG-Forge/Default_Game/decode.rb:14:in `decode_rx' from (irb):2 from /home/ntzrmtthihu777/.rvm/rubies/ruby-1.9.3-p392/bin/irb:16:in `<main>'
tonini has joined #ruby
<tobiasvl>
so input is a string
sayan has joined #ruby
<MrZYX>
ntzrmtthihu777: so you're calling .each on a string
<tobiasvl>
what would you thing String#each would do?
<tobiasvl>
think
<tobiasvl>
what behavior were you expecting?
<ntzrmtthihu777>
actually I'm trying to call each on the contents of the file named by the string.
<ntzrmtthihu777>
I may have messed something up, one sec.
<tobiasvl>
okay, and you though ruby would automatically know that's what you were trying to do
<ntzrmtthihu777>
nope. I'm not stupid, but machines are.
<tobiasvl>
hehe
<MrZYX>
script.each then
<ntzrmtthihu777>
actually I think I may have messed up the snippet when I generalized it. one sec.
<ntzrmtthihu777>
yeah, lemme tweak it again. had a derp.
Domon has quit [Remote host closed the connection]
_64k has joined #ruby
<ntzrmtthihu777>
ok, this time it returned nil. lemme examine the file it shoulda produced.
ammar_ has joined #ruby
Neomex has quit [Quit: Neomex]
<ntzrmtthihu777>
and that did it. you have my permission to deride me XD
<ammar_>
hi, i am looking for some source to read and understand modules
<ntzrmtthihu777>
google is your friend :D
<ammar_>
yeah
<ntzrmtthihu777>
quite frankly I learn alot from picking apart existing code, tis fun
<MrZYX>
ammar_: github code search is your friend too
<ammar_>
thats what i am talking about, as i am more interested in learning by example
<ammar_>
thanks
pehlert has quit [Quit: Leaving.]
<ntzrmtthihu777>
MrZYX: close enough.
jbpros has joined #ruby
davetherat has quit [Remote host closed the connection]
<MrZYX>
yeah, I might have messed up the order of arguments of File::write
davetherat has joined #ruby
marr has joined #ruby
<ntzrmtthihu777>
lol
<tobiasvl>
ntzrmtthihu777: and a couple of style conventions: use do/end instead of {} when you have multiline blocks, and make sure to indent your blocks properly
<MrZYX>
well, there are two schools for do/end vs {}, one says use do/end for multline, the other says use {} when the return value of the block matters
<tobiasvl>
really. that sounds absurd imho
mklappst_ has quit [Remote host closed the connection]
<tobiasvl>
the latter one, that is
dnyy has joined #ruby
<lufi>
so i was trying to use sqlite3 .is there a big difference using apt-get vs installing it via gem?
IrishGringo has joined #ruby
peta_ has joined #ruby
<MrZYX>
tobiasvl: foo.map do |bar|\nbar=smth_long_to_do_with_bar(bar)\n bar.to_s\nend.join doesn't look very nice, that's why
Xeago has joined #ruby
forlin has joined #ruby
mklappst_ has joined #ruby
Neomex has joined #ruby
<ntzrmtthihu777>
quite frankly I'm not so much worried about purdy atm, I'm just learning here XD
robbyoconnor has quit [Ping timeout: 252 seconds]
keanehsiao has quit [Quit: keanehsiao]
Neomex has quit [Client Quit]
mklappst_ has quit [Remote host closed the connection]
SAUCYSALAMANDER has quit [Ping timeout: 245 seconds]
<ntzrmtthihu777>
is there a method to learn which version of marshal was used to write an object?
atno has quit [Remote host closed the connection]
corehook has left #ruby [#ruby]
<csmrfx>
lufi: apt-getting sqlite3 will only install it for the OS
kofno has joined #ruby
<csmrfx>
lufi: apt-getting an sqlite3 gem will install bd-layer for ruby, but only for the current ruby
khismetix has quit [Quit: Computer has gone to sleep.]
pehlert has joined #ruby
<lufi>
oh so it means i wont be using sqlite for other things?
atno has joined #ruby
<csmrfx>
lufi: gem installing will install db-layer, possibly only for the current ruby or all
<lufi>
suppose that i use apt-get. how can i use sqlite3? will `require "sqlite3"` will do?
<csmrfx>
lufi: apt-get and rubygems are not 'aware' of each other
filipe has quit [Ping timeout: 272 seconds]
monkegji_ has joined #ruby
<csmrfx>
lufi: if you use apt-get, and apt-get install both ruby and the sqlite gem, all will work fine
<ntzrmtthihu777>
csmrfx: yeah. twas hell getting all of rubysdl to work, for that very reason XD
<MrZYX>
lufi: what package are you actually talking about when you say apt-get?
<lufi>
sqlite3
kil0byte has joined #ruby
<MrZYX>
that will only install the library, not the bindings to ruby
<csmrfx>
My personal recommendation for Debian Ruby users is: * if you can find all the gems you need in apt-get, apt-get install ruby, and gems (fast!)
bradhe has joined #ruby
<ntzrmtthihu777>
lufi: in my experience gems are most interested in lib*-dev stuffs
tonini has quit [Remote host closed the connection]
<csmrfx>
* if not, use RVM
<MrZYX>
that's what the gem is for, making the libraries functions available to ruby
<ntzrmtthihu777>
csmrfx: I just use rvm now :P
jiyinyiyong has joined #ruby
pehlert has left #ruby [#ruby]
justinmcp_ has quit []
francisfish has quit [Remote host closed the connection]
givello has quit [Quit: Page closed]
justinmcp has joined #ruby
<csmrfx>
Also, people tell me newest debians apt-get and gems "play nice" with each other.
backjlack_ has quit [Remote host closed the connection]
<csmrfx>
(Debian Squeeze)
<ntzrmtthihu777>
no clue. xubuntu man myself.
tonini has joined #ruby
<csmrfx>
Same things apply to not-newest Ubuntu's to some extent, afaics
* csmrfx
--> Use RVM ;)
<ntzrmtthihu777>
heh. I use 12.04.2; sticking with it til the next lts
Zai00 has quit [Quit: Zai00]
monkegjinni has quit [Ping timeout: 272 seconds]
io_syl has joined #ruby
Shrink has quit [Ping timeout: 256 seconds]
nplusp has quit [Ping timeout: 264 seconds]
khismetix has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
ehellman has joined #ruby
chandankumar has quit [Quit: Leaving]
eval-in_ has quit [Remote host closed the connection]
eval-in has joined #ruby
<pagios>
how can i accept arguments sent from ajax xmlrequest into sinatra?
<csmrfx>
session vars
<ntzrmtthihu777>
anyone here with a fair amount of wxruby xp willing to tutor me sometime in the near future?
PaulePanter has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
jiyinyiyong has quit [Quit: quit message from jiyinyiyong]
pcboy__ has quit [Ping timeout: 256 seconds]
tonini has quit [Remote host closed the connection]
fermion has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 248 seconds]
krz has quit [Quit: krz]
niklasb has quit [Ping timeout: 264 seconds]
arya has joined #ruby
chandankumar has joined #ruby
_64k has joined #ruby
geekbri has joined #ruby
RurouniJones has joined #ruby
lxsameer has joined #ruby
bhaarat has joined #ruby
banister`sleep has quit [Remote host closed the connection]
icecandy has quit [Remote host closed the connection]
<lxsameer>
hi, when i try to install a gem using --verbose argument of gem, i can see that gem redirect to a lot of hosts, why?
kristofers has joined #ruby
yashshah_ has quit [Ping timeout: 268 seconds]
IrishGringo has quit [Ping timeout: 245 seconds]
haxrbyte_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
divout has quit [Remote host closed the connection]
arya__ has joined #ruby
wallerdev has joined #ruby
ananthakumaran1 has joined #ruby
dhruvasa1ar has joined #ruby
idkazuma has joined #ruby
_Mon_Ouie_ has quit [Ping timeout: 260 seconds]
_Mon_Ouie_ has joined #ruby
<csmrfx>
lxsameer: what do you mean, exactly? pastie?
<lxsameer>
csmrfx: let me
fbernier has joined #ruby
ritek has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Ping timeout: 252 seconds]
<lxsameer>
csmrfx: currently it stalled and i don't know why
<lxsameer>
csmrfx: here is the current ouput hi, when i try to install a gem using --verbose argument of gem, i can see that gem redirect to a lot of hosts, why?
foofoobar has quit [Quit: Computer has gone to sleep.]
cantonic has quit [Quit: cantonic]
maxmanders has quit [Quit: Computer has gone to sleep.]
kleinerdrache has joined #ruby
browndawg1 has quit [Read error: Connection timed out]
browndawg has joined #ruby
<fbernier>
I've got a class method in which I get the callee class using self.class. Sometimes, a block is passed using this method. self.class does not workin in this case. Is there a workaround?
ZachBeta has joined #ruby
thebastl has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
<tobiasvl>
fbernier: can we see the code?
Drakevr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
idkazuma has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
banister`sleep has joined #ruby
_64k has quit [Ping timeout: 240 seconds]
idkazuma has joined #ruby
_64k has joined #ruby
ntzrmtthihu777 has joined #ruby
<ntzrmtthihu777>
question: is there a simple way to write the output of an irb command to a text file?
kofno has joined #ruby
<MrZYX>
ruby -e "code" > textfile
mneorr has quit [Remote host closed the connection]
<MrZYX>
File.write 'textfile', (code).inspect
vlad_starkov has joined #ruby
IceyEC has joined #ruby
nobitanobi has joined #ruby
<nobitanobi>
Which class should I check when loading a YAML file?
noop_ has joined #ruby
<nobitanobi>
I mean, the exception class that I should check if the loading fails
sambao21 has joined #ruby
<MrZYX>
depends on how it fails
<nobitanobi>
just for opening
<nobitanobi>
I mean, if the file does not exist
jgarvey has joined #ruby
<MrZYX>
Errno::ENOENT
<nobitanobi>
mmm, is it possible to know the class once is rescued?
<nobitanobi>
without having to specify?
bhaarat has quit [Quit: bhaarat]
philcrissman has joined #ruby
<MrZYX>
hm?
<MrZYX>
why?
<nobitanobi>
I am wondering if I do a rescue, but I don't know what am I actually rescuing, how can I know the exception that I rescued?
mneorr has joined #ruby
<banister`sleep>
nobitanobi: rescue Blah => ex
<banister`sleep>
it's in 'ex'
<tobiasvl>
ex.class
<nobitanobi>
oh, ok
<nobitanobi>
so I can put Blah randomly there
<nobitanobi>
I thought I needed to put the exact class
<MrZYX>
no
<MrZYX>
you need to
<banister`sleep>
nobitanobi: wtf..
daed has quit [Ping timeout: 272 seconds]
<MrZYX>
please just answer my question on why you think you need to do that
nateberkopec has joined #ruby
<banister`sleep>
Blah is just a placeholder for the exception class you want to rescue (and all its subclasses)
<tobiasvl>
you can just do `rescue => ex`
<MrZYX>
but it's really really bad pratice
<tobiasvl>
in order to catch anything
dustint has joined #ruby
<nobitanobi>
MrZYX, because just imagine that I want to learn which class I am trying to rescue, for the sake of it...
<MrZYX>
it's written in the error message
ezkl has joined #ruby
<tobiasvl>
MrZYX: "the error message" is a vague data structure
nezumi has quit [Ping timeout: 245 seconds]
<MrZYX>
>> File.read("not_me")
<eval-in>
MrZYX => /tmp/execpad-2a830e5b0820/source-2a830e5b0820:2:in `read': No such file or directory - not_me (Errno::ENOENT) ... (http://eval.in/17961)
<tobiasvl>
if he wants to know the exception class cynamically "the error message" is of little use
<MrZYX>
humans are good at parsing vague data structures :P
<MrZYX>
tobiasvl: his use case was to find the error class to rescue, not to dynamically process it
postmodern has quit [Quit: Leaving]
<nobitanobi>
Basically my problem is that I like that raise of that error if the file does not exist, but I want to change the text that it shows to be more explanatory.
leonidlm has joined #ruby
yashshah has joined #ruby
<nobitanobi>
But I feel that "rescuing" the exception and raising it again with another text is a little bit "ugly"
cha1tanya has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Ping timeout: 272 seconds]
tonini_ has joined #ruby
idkazuma has quit [Remote host closed the connection]
<banister`sleep>
nobitanobi: it's fine
idkazuma has joined #ruby
splittingred has joined #ruby
tonini_ has quit [Remote host closed the connection]
bhaarat has joined #ruby
<banister`sleep>
but maybe not raise teh same exception again, but one more specific (provided by your library) that better expresses the type of error
emergion has quit [Quit: Computer has gone to sleep.]
<aedorn>
ntzrmtthihu777: Okay, so you want deconstruction knowledge. So the inspected instance of this RPG::Map object is what you have. That contains variables (as indicated by the values beginning with a '@', such as @data.) Each variable has a value that contains a number, string (enclosed with ""), hash (enclosed with {}), array (enclosed with []) or another instance of a class (#<ClassName>).
* ntzrmtthihu777
takes notes
<MrZYX>
not to forget :symbols :P
cmarques has joined #ruby
<Hanmac>
or the :"sym bols"
<ntzrmtthihu777>
MrZYX: yes, but I don't see any of those in this XD
<ntzrmtthihu777>
Hanmac: sup man
MetaCosm has joined #ruby
MetaCosm has quit [Excess Flood]
wolcanus has joined #ruby
<aedorn>
ntzrmtthihu777: More than likely, for you, what you're most interested in is that @data variable way down at the end which is an array of integers. That seems to be your actual map matrix. A lot of the other stuff is just noise (literally and figuratively, because there's plenty of BGM variables!)
<ntzrmtthihu777>
yes, you saw those too eh?
nga4 has joined #ruby
MetaCosm has joined #ruby
MetaCosm has quit [Excess Flood]
wmoxam has joined #ruby
Targen has quit [Ping timeout: 272 seconds]
<ntzrmtthihu777>
see, like Hanmac, I'm working on a rpg ide, basically. what I'm looking to do is come up with a map format a bit more easily accessible to human beings.
MetaCosm has joined #ruby
MetaCosm has joined #ruby
MetaCosm has quit [Changing host]
sailias has joined #ruby
<aedorn>
So you have a z, x, y sizes (@zsize=3, @ysize=15, @xsize=20), which means you should be able to build a mathematical matrix that's 20x15x3, and the integers will fill that matrix in the order it's given. More than likely, anyway, where each integer is a representation of a tile.
mercwithamouth has joined #ruby
<ntzrmtthihu777>
thats what I thought.
a_a_g has quit [Quit: This computer has gone to sleep]
<ntzrmtthihu777>
could this be written in say an xml file and read into the games code?
mikecmpbll has joined #ruby
wolcanus has quit [Remote host closed the connection]
MetaCosm has quit [Excess Flood]
<aedorn>
If the code supports it, sure. I doubt you'd want XML for that type of data, though.
wolcanus has joined #ruby
<ntzrmtthihu777>
aedorn: why not xml, may I ask?
MetaCosm has joined #ruby
MetaCosm has quit [Excess Flood]
<Hanmac>
ntzrmtthihu777: hm for sample our maker will use this http://www.mapeditor.org/ map format ... (another reason why our maker is not backwards compatible to the enterbrain maker)
<csmrfx>
ntzrmtthihu777: you want yaml
yacks has quit [Ping timeout: 272 seconds]
<aedorn>
XML is going to work okay for all that data until you hit the mapping side, and then it's just going to be really ugly.
<ntzrmtthihu777>
Hanmac: not really looking to be backwards compatable, just familiar
<ntzrmtthihu777>
aedorn: because of the three layers and the nesting headaches?
abhinavmehta has joined #ruby
kil0byte_ has joined #ruby
julian-delphiki has joined #ruby
icecandy has joined #ruby
<aedorn>
ntzrmtthihu777: Exactly. Or you'll end up doing the same thing as that Ruby object, where it's a single array in a scanning order - where item 1 in the array is the upper left corner of the map (more than likely) and the last element is the lower right corner.
shevy2 has quit [Remote host closed the connection]
freerobby has joined #ruby
<ntzrmtthihu777>
like an old raw bitmap where lxw data is not encoded, no?
h8R has joined #ruby
vlad_starkov has joined #ruby
keanehsiao has quit [Quit: keanehsiao]
<csmrfx>
arrays of arrays would drop well into a CSV file, too
<ntzrmtthihu777>
so in theory this takes the first 20x15 items in the array for the first z layer, and the second set as the second z layer, and the final set as the top z layer?
leonid_ has joined #ruby
corehook has quit [Read error: Operation timed out]
kil0byte has quit [Ping timeout: 258 seconds]
MetaCosm has joined #ruby
<abhinavmehta>
Hi to Ruby Community!
<abhinavmehta>
I'm new to Ruby-Land and looking to quickly delve into the platform; Please suggest headstart pointers, not the standard-docs…I'll be reading docs, once I'm good with platform.
bean has quit [Ping timeout: 255 seconds]
<ntzrmtthihu777>
abhinavmehta: best advice to you I can give: read and play
<aedorn>
ntzrmtthihu777: Pretty much
<abhinavmehta>
not just about syntaxes in ruby, but looking something where I can also learn how to set production ready env for ruby
sayan has joined #ruby
leonid__ has joined #ruby
cod3r has joined #ruby
<abhinavmehta>
ntzrmtthihu777: no doubt, thats the approach…but would love to hear more than that.
vlad_sta_ has joined #ruby
<abhinavmehta>
ntzrmtthihu777: BTW thank you! :)
vlad_starkov has quit [Read error: Connection reset by peer]
<ntzrmtthihu777>
aedorn: could I not have data, with a sub header of <param z=1> and the data for layer 1, </param>, then so on for each later?
<ntzrmtthihu777>
*layer?
leonidlm has quit [Ping timeout: 240 seconds]
<Hanmac>
ntzrmtthihu777: with the tmx format you probably could ;P
kfoo_ has joined #ruby
blaxter has quit [Read error: Operation timed out]
<aedorn>
ntzrmtthihu777: No reason you can't. It's just not going to look the greatest is all. It's all preference at that point. Well, preference and performance, but on a 2D mapping system your data format shouldn't be a bottleneck no matter what you do. Not that it can't happen, just should not.
kfoo_ has quit [Quit: Reconnecting]
kfoo_ has joined #ruby
gaahrdner has joined #ruby
freeayu__ has quit [Ping timeout: 252 seconds]
vlad_sta_ has quit [Read error: Connection reset by peer]
<ntzrmtthihu777>
aedorn: now did you look at that paste? you notice the info after the colons, what is that, a random number of some sort?
nari has joined #ruby
codecop has quit [Remote host closed the connection]
leonid_ has quit [Ping timeout: 268 seconds]
<MrZYX>
the object_id iirc
<aedorn>
You mean like this "RPG::AudioFile:0x0000000287b2a0" ?
<ntzrmtthihu777>
aedorn: yeah. its hex, no? but what is the significance, I wonder.
maxmanders has quit [Ping timeout: 256 seconds]
leonid__ has quit [Ping timeout: 260 seconds]
thebastl has joined #ruby
tommyvyo has joined #ruby
cantonic has joined #ruby
chrishunt has quit [Quit: So long...]
mmitchell has joined #ruby
thebastl has quit [Remote host closed the connection]
<MrZYX>
ntzrmtthihu777: actually it's the internal pointer address of that object
<aedorn>
ntzrmtthihu777: You have class names separated by "::", so in that you have a class of AudioFile with a parent class of RPG. The hex value at the end is the memory address.
<ntzrmtthihu777>
MrZYX: izzat so... so in theory I could call object_id of this map instaed of the name?
<ntzrmtthihu777>
mhmm, from the cache I assume...
gaahrdner has quit [Remote host closed the connection]
<aedorn>
and I'm being called to go save the world ... or at least a Linux system. So .. be back.
platzhirsch1 has joined #ruby
bean has joined #ruby
vlad_starkov has joined #ruby
<platzhirsch1>
should I use instance_variable_set or send for setting a property dynamically?
freeayu has joined #ruby
<MrZYX>
if there's a setter, send
<MrZYX>
this way the implementation can change without changing the callers code
robscomputer has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
johchri has joined #ruby
<platzhirsch1>
MrZYX: fair enough
julian-delphiki has quit [Ping timeout: 256 seconds]
wagster has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
uris has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
carloslopes has joined #ruby
adamjleonard has joined #ruby
vlad_sta_ has quit [Read error: No route to host]
timonv has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mockra has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
_nitti has quit [Remote host closed the connection]
<fbernier>
so, I've got a class method defined in a module which is being included in a class. when this method is called, I can get the class where this method was called with "self". But sometimes, this method is called inside a block so now I can't get what I want with "self". Anyone understand my explanation and have a clue how I could solve this?
<ntzrmtthihu777>
Hanmac: that seems to be an interesting idea...
<MrZYX>
that's not executable
<ntzrmtthihu777>
later all.
ntzrmtthihu777 has quit [Quit: leaving]
<fbernier>
so on the first field method call, I get MyModule::AnotherModule::Elements::Document
<fbernier>
and the second, an anonymous class
<whowantstolivefo>
MrZYX: and Hanmac: thanks for good suggestions to me abour learning ruby. last week i look at the fundamentals of ruby and now im doing example by myself with ruby with koans. things getting more clear day by day and i am started to figure out codes and lines
<fbernier>
but instead of the anonymous class I want the same as when it's not called from withing a block
<shevy>
right now I am lucky to not have my system crash
_nitti has joined #ruby
<shevy>
I am using a shit called iceweasel right now
sayan has joined #ruby
rismoney has joined #ruby
dfdf has quit [Remote host closed the connection]
brain_shim has joined #ruby
<peta_>
so fcuking stunned by rspec
tommyvyo has joined #ruby
mantovani has quit [Ping timeout: 264 seconds]
lapidary has joined #ruby
monkegjinni has quit [Ping timeout: 272 seconds]
mantovani has joined #ruby
teddyp1cker has joined #ruby
RurouniJones has quit [Remote host closed the connection]
<peta_>
is there a way to find out if myObj has extended ModuleA ?
sayan has quit [Read error: Connection reset by peer]
<peta_>
(without having to iterate over ModuleAs public methods and checking if myObj contains it)
D4T has joined #ruby
<Mon_Ouie>
myObj.is_a? ModuleA
D4T has quit [Max SendQ exceeded]
tommyvyo has quit [Quit:]
<Mon_Ouie>
Notice it's usually better to either not check at all or (if needed) to check for the method you're going to call
D4T has joined #ruby
wesside has quit [Quit: Ice cream truck!]
Axsuul has joined #ruby
_64k has quit [Ping timeout: 264 seconds]
vlad_sta_ has joined #ruby
thebastl has joined #ruby
mockra has quit [Remote host closed the connection]
uncleBob has joined #ruby
thebastl has quit [Remote host closed the connection]
balr0g has joined #ruby
<keanehsiao>
hi body, how do I display \ between \" \", I tried \\ but doesn't work… I wann use \ before "d" so it would like \" abc\d \" and I want keep \ before d
vlad_st__ has joined #ruby
denbuzze4 has joined #ruby
<uncleBob>
So who the #FCUK is responsible for the +b #FCUKery on #rubyonrails pls..
<MrZYX>
you sound like you want another one for #ruby
thebastl has joined #ruby
vlad_starkov has quit [Read error: No route to host]
<uncleBob>
MrZYZ: no we don't..
<uncleBob>
MrZYX: howzit..
<Hanmac>
... i know why i am not in the rails channel
bradhe has joined #ruby
<uncleBob>
MrZYX: can u sort me out..
<peta_>
Mon_Ouie: ok
<uncleBob>
like remove the ban..
<uncleBob>
pls..
<MrZYX>
no
<uncleBob>
why not..
<MrZYX>
I've no ops there
chrishough has joined #ruby
<uncleBob>
cool..
<MrZYX>
nor do I know anybody who has
<uncleBob>
no probs.. u r the man anyways.. like i told u number of times already right..
ahuman has quit [Quit: No Ping reply in 180 seconds.]
_64k has joined #ruby
cod3r has joined #ruby
<uncleBob>
keanehsiao: ASSK.torserver.net:9001
woolite64_ has joined #ruby
ahuman has joined #ruby
<MrZYX>
uncleBob: why do you think you got the +b?
<uncleBob>
yeah yeah yeah..
<Mon_Ouie>
What's that link?
<uncleBob>
ASSK or try !help
epochwolf has quit [Ping timeout: 258 seconds]
<MrZYX>
because everyone except you is so stupid? including me (being tempted to request a ban for you)?
Tarential has quit [Excess Flood]
<uncleBob>
MrZYX: no u don't..
platzhirsch1 has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
<uncleBob>
MrZYX: we just need help, that's all..
Tarential has joined #ruby
<csmrfx>
locl jo,
mootpointer has quit [Quit: Computer has gone to sleep.]
<csmrfx>
oops
<platzhirsch1>
yaml comes with Ruby, so I cannot add it as gem to my Gemfile, do I still need to "require" it?
<csmrfx>
Meant to say: kick him
monkegjinni has joined #ruby
<uncleBob>
csmrfx: ~FCUK~THAT~SHIT~ pls..
epochwolf has joined #ruby
<Hanmac>
platzhirsch1: yes
uncleBob was kicked from #ruby by Mon_Ouie [Not sure what the link what, but anyway that doesn't sound very legigtimate…]
<Mon_Ouie>
What was it anyway?
jbpros has quit [Quit: jbpros]
<platzhirsch1>
Hanmac: that cannot be circumvented?
<MrZYX>
nothing
jinkle has joined #ruby
<jinkle>
i'm trying to use active_support's monkeypatching of Hash in a lib, but require 'active_support/all' doesn't seem to be enough. still get deep_symbolize_keys not found
<jinkle>
what do i need to do to get this to work?
woolite64 has quit [Ping timeout: 248 seconds]
_helpbot_ has joined #ruby
<Hanmac>
platzhirsch1: no i tihnk you cant
jamesaxl has joined #ruby
<_helpbot_>
Hanmac: u r right bro..
woolite64_ has quit [Ping timeout: 246 seconds]
Shoobdidoo has joined #ruby
<Hanmac>
Mon_Ouie: i think _helpbot_ wants to fool you
sambao21 has joined #ruby
<rismoney>
is there a way to interact with dotnet libraries using ffi or similar gems? I see only win32/unmanaged interaction
* MrZYX
is tempted to get the eliza irc bot online
<Mon_Ouie>
Oh, same person
persand has quit [Quit: persand]
* csmrfx
reboot
maxmanders has quit [Quit: Computer has gone to sleep.]
<_helpbot_>
Mon_Ouie: no he does NAUGHT N0T NAUGHTY NAUGHTY NAUGHTY..
_helpbot_ was kicked from #ruby by Mon_Ouie [_helpbot_]
jinkle has left #ruby [#ruby]
cha1tanya has joined #ruby
threesome has quit [Ping timeout: 252 seconds]
Zai00 has quit [Quit: Zai00]
lxsameer has quit [Quit: Leaving]
sambao21 has quit [Ping timeout: 252 seconds]
pi3r has quit [Ping timeout: 272 seconds]
pitzips has joined #ruby
alup has quit [Quit: Leaving]
wolcanus has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
<csmrfx>
ok, so rubymarkers denote failed tests
<ericwood>
everything scares you, shevy
<wmoxam>
TM is for Mac users, E-editor is for Windows folks, Sublime is cross platform :p
<shevy>
ericwood nah, ruby is ok
<deepy>
I like Sublime a lot
<shevy>
ericwood though some parts of ruby scare me :)
thebastl has joined #ruby
bradhe has quit [Remote host closed the connection]
<ericwood>
metaprogramming scares me sometimes
sambao21 has joined #ruby
<ericwood>
I had this one coworker would would metaprogram in his tests, and it was incromprehensible
<MrZYX>
deepy: run it with --trace
<ericwood>
ugh
<ddd>
shevy: hit https://github.com/ddd/dotfiles/tree/master/vim and see if anything in there interests you. I've a fairly complete vim setup thats easy to use (I don't like a lot of keystrokes sinc ei have to remember them all hehe)
fmcgeough has joined #ruby
<csmrfx>
only thing that scares me is when someone asks me to explain ruby metaclasses
<shevy>
ericwood yeah, my main problem with metaprogramming was that, when I look at the code like six months later, it takes me long to understand what is going on
<ericwood>
csmrfx: the only thing that scares me is you explaining metaclasses ;)
<ddd>
shevy: the only thing I think you might not like is that I use NERDTree for navigation. but thats easily removed.
<csmrfx>
ericwood: you sound sane!
<shevy>
ddd the name alone scares me
<ericwood>
you don't know me well enough
<shevy>
NERDTree
nigelb has joined #ruby
davetherat has quit [Remote host closed the connection]
<ericwood>
NERDTree is great
nigelb has left #ruby [#ruby]
davetherat has joined #ruby
wedgex has quit [Remote host closed the connection]
_nitti has quit [Quit: Leaving.]
wedgex has joined #ruby
k610 has quit [Ping timeout: 248 seconds]
bluOxigen has quit [Ping timeout: 276 seconds]
<ddd>
hehe its just a navigation tool. its pretty decent, or so I think. you can always remove the plugin. just delete the vim/bundle/nerdtree directory, remove the 2-3 nerdtree changes I made in .vimrc, and you should be good
syamajala has joined #ruby
<ddd>
actually you won't have to edit vimrc because you're not using mine
<ericwood>
I highly recommend starting a .vimrc from scratch and using vundle to install plugins
<ericwood>
makes it easy to add/remove them and try them out on the fly
tk_ has quit [Quit: ばいばい]
<ddd>
ericwood: I sort of like vundle. I'm a pathogen and manual vim/bundle/ type personally.
thebastl has quit [Remote host closed the connection]
<ddd>
but thats just me
<ericwood>
I hate manual labor
<ericwood>
when it comes to computers, that is
<ddd>
hehe
mootpointer has joined #ruby
<ericwood>
computer! do work for me!
<ddd>
for me its because i haven't settled on a definitive bundle set yet.
Targen has quit [Quit: No Ping reply in 180 seconds.]
<ericwood>
"shit, I ordered that wrong" --> restart server --> wait --> bang head against desk
<ericwood>
--> repeat
<ddd>
the set i'm using right now is more than fairly good at covering POR and Rails apps, along with gisting and git coverage, so i'm working on refining it a bit.
_64k has quit [Ping timeout: 252 seconds]
<ddd>
i love my jruby over mri, i just wish the spinup time wasn't so long. only really annoying thing i have to complain about thus far
<ericwood>
yeah, pretty much
<ericwood>
also, the RAM requirements are insane...
<csmrfx>
ddd: cant you set up a ruby application server?
<ddd>
oh yeah, especially when bundling
<ddd>
holy shit that was insane
<ericwood>
every once and a while it leaks and I have to killall -9 java
<ddd>
csmrfx: for?
<csmrfx>
ddd for running ruby without jvm startup time
Voodoofish430 has joined #ruby
<ddd>
hmm, not sure. i honestly haven;t looked into that. the spinup time complaint is during development, where it should be expected
_nitti has joined #ruby
<ddd>
i've heard (but never tried) a few things for speeding it up, but mostly things like guard etc. my production site uses jruby and once the initial spinup is done, the site is responsive as hell. its just in development that its a pita
<ericwood>
jvm startup time isn't always the bottleneck, getting the rails stuff up and running for some reason takes longer with jruby...
codezombie has joined #ruby
<ericwood>
I set up drip and it didn't seem to help much
gaahrdner has quit [Remote host closed the connection]
<ddd>
hmm, drip. haven't heard of that one.
<Norrin>
jruby still the only implementation with real threads?
<ddd>
ericwood: if you can kick me a URL, I'll check it out when I get back. gotta go get my dogs some dogfood before they start eating the furniture
<peta_>
I can only imagine that the author wants to allow the calling method to use the returned enumerator exactly like the object it was created from … with just another internal state ...
<peta_>
kind of shorthand function
<MrZYX>
yup, but as said it dynamcially extending stuff should be avoided
<MrZYX>
it wipes the method caches and therefore makes ruby slower
<peta_>
okay
<MrZYX>
so it's fine to do on class definition when ruby boots up
<MrZYX>
but not doing it all the time doing the program
sambao21 has quit [Ping timeout: 264 seconds]
<MrZYX>
*during
<peta_>
then i will just wipe that part out
tylersmith has joined #ruby
AgentWillyWonka has quit [Quit: Leaving...]
jesly has joined #ruby
<jaybe>
hi. creating sites with ruby/jekyll and enjoy the dynamic/static nature, flexibility, and power. would also like to provide commenting but do not wish to use third party services such as Disqus, etc. experience and or recommendations for a self-hosted and contained commenting system that would be secure, appropriate?
freakazoid0223 has joined #ruby
jduan1981 has quit [Quit: jduan1981]
denbuzze4 has quit [Quit: Leaving.]
Shoobdidoo has quit [Quit: Verlassend]
_64k has joined #ruby
<ddd>
ericwood: thanks. will go through it later today. Just read the README for now. (Lots going in IRL in the house so no time to really play yet)
callenb has left #ruby [#ruby]
danslo has quit [Quit: danslo]
enebo has joined #ruby
jesly1 has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
djwonk has quit [Quit: djwonk]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
jesly has quit [Ping timeout: 256 seconds]
execat has joined #ruby
tundrax has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
LaPetiteFromage has joined #ruby
<peta_>
MrZYX: okay, it seems like other parts of the application rely on this crap. An alternative would be to create a custom Enumerator subclass where needed, right?
gaahrdner has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 258 seconds]
mootpointer has quit [Ping timeout: 276 seconds]
marcdel has quit [Quit: marcdel]
xardas has joined #ruby
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
sambao21 has quit [Client Quit]
wolcanus has joined #ruby
bean__ has joined #ruby
<shevy>
I want a RubyOS
noxoc has joined #ruby
mmlac-bv has joined #ruby
mavcunha has joined #ruby
PHPanos has joined #ruby
elaptics is now known as elaptics`away
joeybutler1 has joined #ruby
guitsaru has joined #ruby
neurone-1337 has quit [Ping timeout: 256 seconds]
himsin has joined #ruby
rakl has joined #ruby
chris____ has joined #ruby
<aedorn>
shevy: First ... you need a Ruby shell that can do everything Ruby+console stuff. So... technically you can build the kernel, and then add in the file system the ruby core. Make it so when the kernel boots it loads pry as your shell. Then you have RubyOS. It boots to Ruby, and all you can do is Ruby. Hmmmm... of course you won't be able to update Ruby since its directly attached in your FS that's embedded i
<aedorn>
n the kernel!
yashshah has quit [Ping timeout: 252 seconds]
KellyLSB has joined #ruby
<shevy>
see, it's the little things that make this impossible
<shevy>
there is no great ruby shell as of yet
<MrZYX>
so first step-1: run ruby on ruby. wait...
rickruby has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
<MrZYX>
now I get what they're doing
<aedorn>
I actually got a system to boot like that... so it boots right into Pry! You can't do anything after that. At all. Pretty sure it kernel panics and dies.
jbpros has quit [Quit: jbpros]
<shevy>
hehehe
<aedorn>
It was then that it occurred to me something was missing...
mootpointer has joined #ruby
bitZero_2 has quit [Quit: leaving]
Cultofme_ has joined #ruby
yashshah has joined #ruby
c0rn has joined #ruby
Cultofmetatron has quit [Ping timeout: 252 seconds]
yashshah has quit [Client Quit]
yashshah has joined #ruby
jalalsfs has joined #ruby
mrsolo has joined #ruby
<ccolorado>
Hello, I am having a very hard time trying to install Ruby on rails on my laptop, It seems that rvm is tring to get some files from the web that dont exists. Any idea how can I fix this ? https://gist.github.com/ccolorado/5483088
<shevy>
Hanmac didn't that guy have this very question 3 weeks ago already?
thebastl has joined #ruby
timonv has quit [Remote host closed the connection]
mljsimone has quit [Ping timeout: 258 seconds]
<platzhirsch>
MrZYX: additionally or instead?
<MrZYX>
instead of?
<platzhirsch>
MrZYX: works like a charm, but I had to require both!
elaptics`away is now known as elaptics
<platzhirsch>
sidekiq seems to be a very handy framework, it's just a bit development overhead at the moment launching a seperate database, a seperate process
chandankumar has quit [Quit: Leaving]
<MrZYX>
yup, I always just inline the jobs in the dev env
<MrZYX>
unless I specifically need to test the concurrency
Palantir has joined #ruby
vlad_starkov has joined #ruby
wolcanus has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
Beoran__ has joined #ruby
skum has joined #ruby
skum has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
k610 has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
Beoran_ has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
jovy88 has joined #ruby
bhaarat has quit [Quit: bhaarat]
hogeo_ has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
hogeo has quit [Read error: Connection reset by peer]
ckrailo has quit [Ping timeout: 276 seconds]
Palantir has quit [Ping timeout: 240 seconds]
tundrax has joined #ruby
_Amaan has joined #ruby
_Amaan has quit [Client Quit]
rickruby has quit [Remote host closed the connection]
motto has quit [Read error: Connection reset by peer]
ariedler has joined #ruby
<Rennex>
ruby makes / work as a path separator in windows, so i just use that
<Rennex>
or maybe it's the windows api itself
kofno has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
ariedler has quit [Remote host closed the connection]
ariedler has joined #ruby
<shevy>
yeah
monkegjinni has quit [Remote host closed the connection]
<MrZYX>
I like Pathname
<shevy>
I always thought File.join was necessary to make scripts work on windows too, until I found out that my scripts with the hardcoded / work on windows just as well
<ziggles>
aedorn: is share/ a common structure? I've never seen that.
<aedorn>
share/sounds is the usual Linux path for audio files. Well, specifically /usr/share/sounds, or /usr/local/share/sounds
m8 has quit [Quit: Sto andando via]
casheew has joined #ruby
<shevy>
ziggles linux filesystem is madness
r0bgleeson has quit [Ping timeout: 252 seconds]
<ziggles>
aedorn: oh! perfect. so just to be clear would it be lib/share/sounds or share/sounds ?
<shevy>
ziggles it can not be lib/ because it is not a library
includex has quit [Remote host closed the connection]
<ziggles>
shevy: makes sense.
<ziggles>
cool. thanks a lot guys
<aedorn>
yeah, what he said
spider-mario has quit [Read error: Connection reset by peer]
m8 has joined #ruby
<atmosx>
I'd put it on lib
locriani has quit [Remote host closed the connection]
<shevy>
but try not to understand the linux filesystem, it became recreational, the old hackers are too lazy to type things, so we have stuff like /usr or /home or /boot or /bin or /srv or /sys
<atmosx>
I have mp3 player sitting right on my library
<atmosx>
2 speakers
TMM has joined #ruby
TMM has quit [Changing host]
TMM has joined #ruby
<shevy>
and now, I even have /selinux
<atmosx>
shevy: what distro, fedora?
<shevy>
oh yes also /tmp and /var
ravster has quit [Quit: Leaving.]
<shevy>
atmosx, hmm kanotix right now (this uses debian sid)
<atmosx>
no fedora has the other shit-storm called something shield-or-somethin
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
and /proc and /opt
<atmosx>
kanotix..
cgcardona has joined #ruby
<ziggles>
anyone in the sf bay area just feel an earthquake?
<shevy>
and /etc and /dev too
ckrailo has quit [Ping timeout: 276 seconds]
<shevy>
ziggles in central europe no earthquake right now
<atmosx>
ziggles: no, but you go offline, we'll know.
tenmilestereo has quit [Quit: Leaving]
luckyruby has quit [Remote host closed the connection]
<atmosx>
in eastern europe, neither
<atmosx>
any1 from JP?
<shevy>
I think I experienced only one very minor earthquake ever
<aedorn>
ziggles: It's not an earthquake... it's a nuke from North Korea!
k610 has quit [Ping timeout: 245 seconds]
jerius has quit [Ping timeout: 260 seconds]
<shevy>
do their rockets even fly at all :P
<atmosx>
aedorn: hmm that would be funny
<atmosx>
well not for ziggles
<atmosx>
of course
<shevy>
hahaha
<atmosx>
lol
<ziggles>
atmosx: i think only hawaiians might find it not funny
<shevy>
imagine a world with total disarmament
_nitti has quit [Remote host closed the connection]
luckyruby has joined #ruby
<atmosx>
We could on how many movies will Hollywood made out of it (if there's still a hollywood after a nuc bomb hits california)
<atmosx>
shevy: hm, I can't
<aedorn>
atmosx: There won't be a Hollywood left... but that's okay, because we always have Bollywood!
<shevy>
atmosx why can't you? all it takes is a change in the way how economy works, and direct democracy everywhere
<ziggles>
I'm gonna make like a baby and head out. Thanks again for the help guys
Meeh is now known as Meeh_afk
<atmosx>
shevy: well, I don't see China and France or USA for that matter getting disarmed (voluntarily)
<aedorn>
atmosx: Yes. Loved it. Too bad Hemlock Grove was a disaster of a series, because House of Cards made them look professional, and better than most other crap series out right now.
<shevy>
atmosx well, that way you enter the cycle of who-has-the-best-weapons
<aedorn>
USA - We'd rather die than let our guns go.
ziggles has quit [Remote host closed the connection]
<atmosx>
aedorn: you know the original series is from BBC?
ckrailo has joined #ruby
<atmosx>
the phrase "I can't possibly comment" used by many brittish politicians came out of the BBC series heh
wolcanus_ has joined #ruby
<atmosx>
aedorn: yeah, we figured :-P
wolcanus_ has quit [Remote host closed the connection]
<aedorn>
atmosx: I do. I've seen that one also, but I'll still say the new rendition was just more powerful and driving. It's probably just because of Kevin Spacey, though.
<atmosx>
shevy: he says that they can't even disarm regular blokes in the USA
failshell has quit [Remote host closed the connection]
sambao21 has joined #ruby
<atmosx>
yeah Spacey was more than awesome, he convicned that he was a perfect selfish son of a bitch, as any respectful politician should be
robbyoconnor has quit [Ping timeout: 245 seconds]
Mattix has quit [Ping timeout: 245 seconds]
locriani has joined #ruby
michaelmartinez has joined #ruby
wolcanus has quit [Ping timeout: 245 seconds]
<aedorn>
hmmm... so I started writing an app to scour reviews, and aggregate them together. Yes. I'm rebuilding metacritic, but for cookware. I hate buying crappy pans.
rton has left #ruby [#ruby]
jtharris has quit [Quit: WeeChat 0.4.0]
osvico has quit [Ping timeout: 256 seconds]
akells` has quit [Remote host closed the connection]
emergion has joined #ruby
<aedorn>
So while my friends were having a gun control debate, I was frantically searching for the best iron clad skillet I could find. I feel like I'm winning the argument!
<adamjleonard>
Is there a way to prevent re-assignment to a variable in Ruby?
<adamjleonard>
I'm thinking something like .freeze method, but doesn't allow re-assignment either
breakingthings has quit []
<aedorn>
So not just freezing the value, but making it the only variable that can hold the value at all?
sambao21 has quit [Ping timeout: 248 seconds]
swex_ has quit [Remote host closed the connection]
<Sou|cutter>
adamjleonard: No.
ramblex has quit [Remote host closed the connection]
<adamjleonard>
Sou|cutter: that's what I thought
<Sou|cutter>
adamjleonard: why would you want that?
freerobby has quit [Quit: Leaving.]
tomsthumb has quit [Quit: Leaving.]
<adamjleonard>
Sou|cutter: I don't. Attempting to compare languages to someone and I wasn't sure if there was a magical way to have an immutable variable"
swex has joined #ruby
<adamjleonard>
aedorn: What I was looking for was if I assign foo to "bar" and attempt to assign foo to something else, it would fail. But it's not something that exists in the standard lib
passcod has quit [Ping timeout: 256 seconds]
Amnesia has joined #ruby
<Amnesia>
is anyone over here using vim?
asdfbmnv3451242 has joined #ruby
thone_ has joined #ruby
<Amnesia>
if so, does one of you folks know a smarter alternative to omnicompletion?
freerobby has joined #ruby
<Amnesia>
I've found rsense, but imo it's pretty ridiculous to have to require java in order to have sane autocompletion...
<Sou|cutter>
adamjleonard: well I mean there are consts, but even those are settable. Things can be effectively immutable in ruby if you treat them that way, but actually locking things down is impossible given the nature of the language
DaltonUS has quit [Quit: DaltonUS]
<adamjleonard>
Sou|cutter: Right
noxoc has quit [Quit: noxoc]
<adamjleonard>
Sou|cutter: thanks for responding
<otters>
are there any ruby libraries for modifying FLAC metadata?
DementedInsanity has quit [Ping timeout: 258 seconds]
nplusp has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby
jamesaxl_ has joined #ruby
jduan1981 has joined #ruby
mikepack has quit [Remote host closed the connection]
passcod has joined #ruby
thone has quit [Ping timeout: 272 seconds]
BrindleFly has quit [Quit: BrindleFly]
<slash_nick>
The API i need to talk to doesn't wanna talk back :(
interactionjaxsn has quit [Remote host closed the connection]
<Amnesia>
anyone:)?
Palantir has joined #ruby
passcod has quit [Max SendQ exceeded]
jamesaxl has quit [Ping timeout: 260 seconds]
<slash_nick>
Amnesia: I have never heard of omnicompletion
interactionjaxsn has joined #ruby
IceyEC has quit [Quit: IceyEC]
Mattix has joined #ruby
<Amnesia>
it's autocompletion
passcod has joined #ruby
nikeita has quit [Quit: sleep]
hydrozen has joined #ruby
forrest has quit [Quit: Leaving]
<slash_nick>
Amnesia: naw
Davey has joined #ruby
<slash_nick>
Amnesia: mind if I ask, what are you trying to do?
rickruby has joined #ruby
<aedorn>
adamjleonard: Yeah, made more sense when you said immutable ... heh
<Amnesia>
I'm trying to set up a decent ruby IDE
<Amnesia>
using vim
<adamjleonard>
aedorn: cool :)
lewix has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 245 seconds]
<adamjleonard>
Actually, re-read that. Oh
<adamjleonard>
aedorn: In a language like Scala there are values, which are immutable. You cannot re-assign them to something else.
pskosinski has quit [Remote host closed the connection]
swex_ has joined #ruby
Umren has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
Hobogrammer has quit [Read error: Connection reset by peer]
<Amnesia>
miroatme: doesn't say anything 'bout completion:)
pskosinski has joined #ruby
Hobogrammer has joined #ruby
LaPetiteFromage has left #ruby [#ruby]
nplusp has joined #ruby
rickruby has quit [Remote host closed the connection]
rickruby has joined #ruby
Kruppe has joined #ruby
daniel_- has quit [Quit: WeeChat 0.4.0]
retry has joined #ruby
splittingred has quit [Quit: splittingred]
swex_ has quit [Remote host closed the connection]
<slash_nick>
Amnesia: I must be lucky... I have autocomplete (Ctrl+P when half way through some code), but I don't remember setting it up
<Amnesia>
thats supertab
<Amnesia>
afaik
swex_ has joined #ruby
swex has quit [Ping timeout: 256 seconds]
<aedorn>
adamjleonard: No, I understand that .. when you asked I think I read "variable" as "value". Don't worry, I'm sleep deprived and confused easily by my own thoughts right now!
<adamjleonard>
Haha okay aedorn :)
dmiller has joined #ruby
insel has joined #ruby
jnoob22 has joined #ruby
jduan1981 has quit [Quit: jduan1981]
zastern has quit [Remote host closed the connection]
<miroatme>
that would be vim abbv function
<miroatme>
Amnesia:
<miroatme>
that would be something that you would need to write your self
<miroatme>
unless the internet has done it for you
<insel>
hi, is there a code formater tool for ruby? (like perltidy for perl)
Amnesia has left #ruby [#ruby]
<atmosx>
frmater tool?
<atmosx>
whad does a formater tool do?
<Seus>
i'd guess clean up code indentation, brackets, etc.
tundrax has joined #ruby
<insel>
insert spaces tabs
<insel>
to make it readable
Kruppe has quit [Ping timeout: 252 seconds]
<atmosx>
space tabs are evil
emergion has quit [Quit: Computer has gone to sleep.]
<atmosx>
like vim does with '=' on selected text?
ckrailo has quit [Ping timeout: 276 seconds]
<atmosx>
doesn't add anything to the code though
cyberarm has quit [Quit: Bye]
passcod has quit [Read error: Connection timed out]
ejnahc has joined #ruby
<insel>
if puts "muh" end is transformed in (sorry for flooding)
<insel>
if
ctp has joined #ruby
<ctp>
Hi folks. What's the most performant way to execute JS directly after a HTTP request in Ruby? I know about all the test frameworks like HtmlUnit, Celerity, Capybara + PhantomJS == Poltergeist, CasperJS etc. but they're still test frameworks. What I need is a simple way to execute all JS code which is included in HTML after fetching the URL e.g. by Net::Http. Any ideas?
<insel>
<spacespacespacespace>puts "muh"
<insel>
end
MrZYX is now known as MrZYX|off
ariedler has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
<atmosx>
insel: all editors can do that (I think).
pitzips has quit [Remote host closed the connection]
<atmosx>
you don't need an external tool to do it.