joeycarmello has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
Juul has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
carlyle has quit [Remote host closed the connection]
cdehaan has joined #ruby
joeycarmello has joined #ruby
Michael_ has joined #ruby
<cdehaan>
Hello! I'm trying to do a "bundle install," but I keep getting the error Bundler could not find compatible versions for gem "bundler", which is requiring bundler ~> 1.0.0... but that makes no sense since I'm using bundler 1.2.2?
eka has quit [Ping timeout: 244 seconds]
eka has joined #ruby
robbyoconnor has joined #ruby
spursrails has quit [Ping timeout: 255 seconds]
eka has quit [Remote host closed the connection]
pipopopo has quit [Ping timeout: 264 seconds]
xpen has joined #ruby
pipopopo has joined #ruby
jrunning has joined #ruby
xpen has quit [Client Quit]
xpen has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
Michael_ has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
mathie has joined #ruby
swarley has quit [Read error: Connection reset by peer]
FDj has quit [Remote host closed the connection]
FDj has joined #ruby
<waxjar>
ugh, lost a day of work because i thought it was a good idea to start with a fresh git repo. i still had some stuff stashed :(
swarley has joined #ruby
pipopopo has quit [Ping timeout: 260 seconds]
Ruler_Of_Heaven_ has joined #ruby
_nitti has joined #ruby
<the_jeebster>
how is csv parsed with ruby? is each row an array of strings?
spursrails has joined #ruby
<heftig>
check out the CSV class
snorkdude has joined #ruby
mathie has quit [Ping timeout: 252 seconds]
cdehaan has quit [Ping timeout: 245 seconds]
krisfremen has quit [Ping timeout: 246 seconds]
spursrails has quit [Client Quit]
adeponte has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 256 seconds]
ryanf has quit [Ping timeout: 244 seconds]
krisfremen has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
Juul has quit [Ping timeout: 260 seconds]
aeontech has joined #ruby
tommyvyo has joined #ruby
machty has joined #ruby
snorkdude has quit [Quit: snorkdude]
lukeholder has joined #ruby
jrunning has quit [Ping timeout: 264 seconds]
joeycarmello has quit [Remote host closed the connection]
krz has joined #ruby
marknyc has quit []
cj3kim has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
tbrock_ has quit [Quit: Computer has gone to sleep.]
lenovodroid has joined #ruby
charliesome has joined #ruby
iamjarvo_ has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
shtirlic_ has joined #ruby
lampe2_afk is now known as lampe2
ckrailo has quit [Quit: Computer has gone to sleep.]
sn0wb1rd has joined #ruby
<the_jeebster>
heftig: I can't seem to access each index of a CSV row. I'm trying to convert strings to integers but I keep getting a "can't convert string into array error". weird.
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
bakis has joined #ruby
<swarley>
which csv library are you using
joeycarmello has joined #ruby
aeontech has quit [Ping timeout: 246 seconds]
ryanf has joined #ruby
aeontech has joined #ruby
danktamagachi has quit [Ping timeout: 248 seconds]
<Elico>
Anyone worked with non-blocking sockets?
the_jeebster has quit [Quit: Leaving.]
sn0wb1rd has quit [Quit: sn0wb1rd]
ryanlecompte has joined #ruby
h4mz1d has joined #ruby
xyzodiac has joined #ruby
kbeddingfield has joined #ruby
Juul has joined #ruby
Juul has quit [Client Quit]
Juul has joined #ruby
Aiur has quit [Quit: Computer has gone to sleep.]
paladino has joined #ruby
hackerdude has joined #ruby
dankest has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
FDj has quit [Read error: Connection reset by peer]
kbeddingfield has quit [Ping timeout: 246 seconds]
ryanf has quit [Ping timeout: 240 seconds]
ryanlecompte has quit [Ping timeout: 250 seconds]
swarley has quit [Ping timeout: 250 seconds]
phantasm66 has joined #ruby
seanstickle has quit [Quit: seanstickle]
twopoint718 has quit [Quit: leaving]
tbrock_ has joined #ruby
brianpWins has joined #ruby
FDj has joined #ruby
aeontech has quit [Quit: aeontech]
shtirlic_ has quit [Remote host closed the connection]
jrajav has quit [Read error: Connection reset by peer]
Derander has quit [Ping timeout: 260 seconds]
freeayu has quit [Read error: Connection reset by peer]
jrajav has joined #ruby
machty has quit [Quit: machty]
freeayu has joined #ruby
ewag has joined #ruby
tbrock_ has quit [Client Quit]
psino has quit [Quit: .]
fearoffish has quit [Ping timeout: 260 seconds]
Derander has joined #ruby
snorkdude has joined #ruby
wmoxam has joined #ruby
juha_ has quit [Ping timeout: 260 seconds]
cespare has quit [Ping timeout: 260 seconds]
machty has joined #ruby
psino has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
kil0byte has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
Juul has quit [Quit: brb]
fearoffish has joined #ruby
stillEPIK has joined #ruby
hsbt is now known as hsbt_away
hackeron_ has quit [Ping timeout: 260 seconds]
hsbt_away is now known as hsbt
EPIK has quit [Ping timeout: 260 seconds]
frytaz1 has quit [Ping timeout: 260 seconds]
hsbt is now known as hsbt_away
juha_ has joined #ruby
ixx has quit [Ping timeout: 260 seconds]
dqminh has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ixx has joined #ruby
hackeron has joined #ruby
hackeron has quit [Changing host]
hackeron has joined #ruby
ixx is now known as Guest68765
mathie has joined #ruby
hsbt_away is now known as hsbt
paladino has quit [Remote host closed the connection]
pu22l3r has joined #ruby
caleb_io has quit [Quit: caleb_io]
apok has quit [Ping timeout: 246 seconds]
krisfremen has quit [Ping timeout: 246 seconds]
cespare has joined #ruby
mathie has quit [Ping timeout: 260 seconds]
lukeholder has quit [Quit: Computer has gone to sleep.]
Slivka has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
smile has joined #ruby
smile is now known as Guest19599
xyzodiac has joined #ruby
ryanf has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
Guest34355 has quit [Ping timeout: 260 seconds]
mahmoudimus has joined #ruby
gyre007 has joined #ruby
krisfremen has joined #ruby
BigO has joined #ruby
BigO has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Client Quit]
gyre007 has quit [Remote host closed the connection]
frytaz1 has joined #ruby
kbeddingfield has joined #ruby
adeponte has joined #ruby
mahmoudimus has joined #ruby
sn0wb1rd has joined #ruby
machty has quit [Quit: machty]
ryanf has quit [Ping timeout: 260 seconds]
pu22l3r has joined #ruby
alee-_ has quit [Ping timeout: 276 seconds]
pu22l3r has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
machty has joined #ruby
lukeholder has joined #ruby
lenovodroid has quit [Ping timeout: 260 seconds]
alee- has joined #ruby
sn0wb1rd has joined #ruby
sn0wb1rd has quit [Client Quit]
ananthakumaran has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
sn0wb1rd has joined #ruby
radic has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ryanlecompte has joined #ruby
Drager has joined #ruby
joppe has joined #ruby
wmoxam_ has joined #ruby
wmoxam has quit [Quit: leaving]
radic_ has quit [Ping timeout: 250 seconds]
starship has quit [Quit: WeeChat 0.4.0-dev]
cintrikz has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
jgrevich_ has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
hackerdude has quit [Ping timeout: 245 seconds]
lenovodroid has joined #ruby
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
rakl has joined #ruby
ionte has joined #ruby
hackerdude has joined #ruby
<B|aster>
Hey I created a simple test with MiniTest and I got NameError: uninitialized constant MiniTest. I thought MiniTest was included by default with 1.9 ?
ner0x has quit [Quit: Leaving]
ryanf has joined #ruby
FDj has quit [Read error: Connection reset by peer]
machty has quit [Quit: machty]
lenovodroid has quit [Ping timeout: 256 seconds]
brian` has quit []
eka has joined #ruby
Rym has joined #ruby
Bosma has quit [Quit: leaving]
ananthakumaran has quit [Quit: Leaving.]
sn0wb1rd has quit [Quit: sn0wb1rd]
hsbt is now known as hsbt_away
* hemanth
wonders where is VectorS*...
hsbt_away is now known as hsbt
jlwestsr has quit [Ping timeout: 246 seconds]
eka has quit [Ping timeout: 246 seconds]
phantasm66 has quit [Quit: *sleeeeep*]
ryanf has quit [Ping timeout: 244 seconds]
sn0wb1rd has joined #ruby
mneorr has joined #ruby
hackerdude has quit [Remote host closed the connection]
Rym has quit [Quit: Rym]
mathie has joined #ruby
rtd_ has joined #ruby
thefirstdude has joined #ruby
shorne has joined #ruby
aeontech has joined #ruby
_nitti has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
jphpsf has joined #ruby
ABK has joined #ruby
phantasm66 has joined #ruby
mathie has quit [Ping timeout: 248 seconds]
LiquidInsect has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 246 seconds]
hsbt is now known as hsbt_away
Trioke has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
hsbt_away is now known as hsbt
sn0wb1rd has quit [Quit: sn0wb1rd]
hackerdude has joined #ruby
ABK has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
sn0wb1rd has joined #ruby
ABK has joined #ruby
wallerdev has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
slainer68 has quit [Ping timeout: 260 seconds]
ABK has quit [Read error: Connection reset by peer]
joeycarmello has quit [Remote host closed the connection]
danktamagachi has joined #ruby
ryanf has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
d-snp has quit [Ping timeout: 246 seconds]
rohit has joined #ruby
Nowaker has quit [Read error: Operation timed out]
Nowaker has joined #ruby
irving_ has quit [Read error: Operation timed out]
ABK has quit [Read error: Connection reset by peer]
irving has joined #ruby
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
Bootstrapper has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
kbeddingfield has joined #ruby
ABK has quit [Read error: Connection reset by peer]
fir_ed has quit [Ping timeout: 245 seconds]
ABK has joined #ruby
rtd_ has quit [Remote host closed the connection]
rtd_ has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
ryanf has quit [Ping timeout: 264 seconds]
ABK has quit [Read error: Connection reset by peer]
lukeholder has quit [Quit: Computer has gone to sleep.]
lunks has joined #ruby
ABK has joined #ruby
<lunks>
Hey, what is an easy way to make a class behave like static, but use an actual instance? I'm mainly creating an API. i.e. I'd like to call API.method instead of API.new.method, but both should accomplish the same.
<lunks>
It's kind of a singleton, but without needing to fetch the instance everytime.
EyesIsServer has joined #ruby
<dantesun>
lunks: maybe you could try using module+method
<lunks>
dantesun: do you have any links to point me to?
<lunks>
hmm
<lunks>
no, because this would be same as a static class
EyesIsMine has quit [Ping timeout: 264 seconds]
rhys has quit [Quit: Leaving]
caleb_io has joined #ruby
Guest24042 has joined #ruby
mahmoudimus has joined #ruby
SeySayux has quit [Read error: Operation timed out]
Villadelfia has quit [Read error: Operation timed out]
nat2610 has joined #ruby
rippa has joined #ruby
jwang has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
jwang has joined #ruby
SeySayux has joined #ruby
Villadelfia has joined #ruby
Guest24042 has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
lampe2 has quit [Ping timeout: 264 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
snorkdude has quit [Quit: snorkdude]
nemesit has joined #ruby
Niamkik has quit [Quit: Caught sigterm, terminating...]
Niamkik has joined #ruby
joeycarmello has quit [Ping timeout: 256 seconds]
ryanf has joined #ruby
mathie has joined #ruby
stkowski has joined #ruby
stkowski has quit [Client Quit]
<waxjar>
lunks: look up class methods
<lunks>
waxjar: I dont want it to be a singleton
<lunks>
or static
<lunks>
I just want it to silently call new
Slivka has quit [Read error: Connection reset by peer]
<waxjar>
you can have a class method return a new instance?
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
<dqminh>
lunks: self.method_missing
<lunks>
dqminh: hmm nice!
codecop has joined #ruby
ABK has quit [Ping timeout: 256 seconds]
nat2610 has left #ruby [#ruby]
joeycarmello has joined #ruby
rakl has quit [Quit: sleeping]
slainer68 has joined #ruby
pu22l3r has quit [Ping timeout: 248 seconds]
sn0wb1rd has joined #ruby
matrixise has quit [Ping timeout: 260 seconds]
elsifaka has joined #ruby
ryanf has quit [Ping timeout: 255 seconds]
joeycarmello has quit [Remote host closed the connection]
apok has joined #ruby
joeycarmello has joined #ruby
slainer68 has quit [Ping timeout: 255 seconds]
areil has joined #ruby
mercwithamouth has joined #ruby
rtd__ has joined #ruby
jwang has quit [Quit: Leaving]
<RubyPanther>
def self.omg; @@omg ||= self.new ; @@omg.ponies! end
joeycarmello has quit [Ping timeout: 255 seconds]
cirwin has joined #ruby
nemesit has quit [Quit: Leaving...]
rtd_ has quit [Ping timeout: 260 seconds]
margle has joined #ruby
michaelmartinez has joined #ruby
BigO has joined #ruby
tagrudev has joined #ruby
d-snp has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
dqminh_ has joined #ruby
FDj has joined #ruby
dqminh_ has quit [Remote host closed the connection]
chimkan_ has joined #ruby
ABK has joined #ruby
topek has joined #ruby
danktamagachi has quit [Ping timeout: 256 seconds]
dqminh has quit [Ping timeout: 264 seconds]
wargasm has joined #ruby
caleb_io has quit [Quit: caleb_io]
Bootstrapper has joined #ruby
ryanf has joined #ruby
teddfox has joined #ruby
ChampS666 has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
teddfox has left #ruby [#ruby]
djdb has joined #ruby
answer_42 has joined #ruby
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
kil0byte has quit [Ping timeout: 264 seconds]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
atno is now known as atno|Ping
thefirstdude has quit [Quit: Leaving]
hackerdude has quit [Remote host closed the connection]
Eplemosen has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
kbeddingfield has joined #ruby
Jeffferson has joined #ruby
ryanf has quit [Ping timeout: 252 seconds]
starship has joined #ruby
sn0wb1rd has joined #ruby
sn0wb1rd has quit [Client Quit]
FDj has quit [Ping timeout: 240 seconds]
BigO has quit [Remote host closed the connection]
FredLe has joined #ruby
gbchaosmaster has joined #ruby
Niamkik has quit [Quit: Caught sigterm, terminating...]
tonini has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
nemesit has quit [Ping timeout: 246 seconds]
atno is now known as atno|AFK
ebouchut has joined #ruby
jimeh has joined #ruby
mand_ has joined #ruby
kbeddingfield has joined #ruby
Axsuul has quit [Ping timeout: 240 seconds]
randomautomator has quit [Remote host closed the connection]
_nitti has joined #ruby
k610 has joined #ruby
kbeddingfield has quit [Ping timeout: 246 seconds]
everdaniel has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby
Brainix has joined #ruby
vlad_starkov has joined #ruby
blacktulip has joined #ruby
slainer68 has joined #ruby
LouisGB has joined #ruby
_nitti has quit [Ping timeout: 246 seconds]
D4T has joined #ruby
ExxKA has joined #ruby
<witchdoc>
hi all
nemesit has joined #ruby
elaptics`away is now known as elaptics
ryanf has quit [Quit: leaving]
FDj has quit [Read error: Connection reset by peer]
<D4T>
Im writing a class to interact with a third party API, most of the xml I'm sending remains the same for certain tasks. At the moment I'm generating the XML using libxml but I'm wondering what the pros / cons would be in just defining them as strings?
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
elrzn has joined #ruby
cek has joined #ruby
<Paradox>
D4T, if you're generating the same XML, over and over and over and over again
KevinSjoberg has joined #ruby
<Paradox>
you're faster just using string interpolation/concatination
arya_ has quit [Ping timeout: 244 seconds]
<D4T>
Paradox: this is what i was thinking
arya has joined #ruby
<D4T>
theres basically about 30 commands i can send, at the moment I'm generating the XML but it seems a little silly
Vainoharhainen has joined #ruby
elrzn has left #ruby [#ruby]
<D4T>
given nothing in the xml changes
<Paradox>
generate a few
<Paradox>
see whats the same
<Paradox>
use it
x0F has quit [Quit: Leaving]
rdark has joined #ruby
<Paradox>
i mean hel
<Paradox>
even if you generate the middle part
<Paradox>
you can wrap it with the start and end
<D4T>
yeah
<D4T>
just wasn't sure if it was good practice either really. defining lots of long strings in my class
<Paradox>
generally magic strings are frowned upon
* Paradox
but…
<Paradox>
better than generating the same shit over and over again
<D4T>
yeah
<Paradox>
(faster too)
FDj has joined #ruby
<D4T>
ok thats settled then, thanks for your advice :)
<Xeago>
Using CBC-MAC from AES, when given a tag for a message, how many calls to AES have to be done to compute a message that has the last bit flipped of the original message? (key is known)
mneorr has quit [Read error: Connection reset by peer]
<atmosx>
yeah
<Xeago>
and hence multiple user spaces?
<atmosx>
he was watching movies on his tv via hdmi
<atmosx>
yeap
<atmosx>
that's what it might be called, no idea
<Xeago>
yep no problem
<Xeago>
userspace=kernel term
<braoru>
someone here familliar with nginx version of passenger ?
ltsstar has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
<Xeago>
atmosx: it basically fires up another systemuiserver under a new launchd for that user
samphippen has joined #ruby
<braoru>
I'm trying to run a small app from it but can't find why it don't run so well... (running if I lunch it directly from rake..) so I may have a problem with my config :) but its pretty simple ..http://fpaste.org/hOFF/ and the grack repository : http://fpaste.org/JwoB/
<apeiros_>
leshop? like, leshop.ch?
jrajav has joined #ruby
<braoru>
yeah
<apeiros_>
you're interfacing with them or working on that site? :)
<mklappstuhl>
when calling methods of a class within that class is prepending self. considered good or bad? to me it seems to improve readability. how do you do it and why?
Goles has quit [Ping timeout: 246 seconds]
<braoru>
working .. but don't know if its the right expression :P
<apeiros_>
mklappstuhl: I never prepend methods with self
<braoru>
but anyway I can't find why it was so simple to run everything but this little app ...
<apeiros_>
except for those rare cases where syntax (keyword-named methods) makes it necessary (parens would work too)
<braoru>
even my crappy home-made app run well
leifmadsen has joined #ruby
Guest24042 has joined #ruby
<JonnieCache>
mklappstuhl: its a matter of taste
zigomir has joined #ruby
<mklappstuhl>
JonnieCache, apeiros_ I looked through the github style guide and they don't have anything on that
<mklappstuhl>
apeiros_, is there an explicit reason for not doing it?
<apeiros_>
mklappstuhl: class methods are methods, if they have something on methods in general, apply that
<apeiros_>
mklappstuhl: sure, private methods won't work
RiotingPacifist has joined #ruby
linoj_ has joined #ruby
<RiotingPacifist>
How long should the ruby interpreter take to start up on a decent laptop? It looks likes it's hanging but this is the first time I've tried to use ruby?
ExxKA has quit [Quit: This computer has gone to sleep]
<apeiros_>
RiotingPacifist: the interpreter alone? less than 10ms
macabre has joined #ruby
<apeiros_>
ok, less than 25ms :)
<RiotingPacifist>
hmmm ok, is it possible to break ruby by installing gems?
<apeiros_>
ah, I guess 1.9 requiring rubygems takes more time. at least I'm pretty sure 1.8 was faster.
keyvan has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
<RiotingPacifist>
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] just doesn't seem to start
nari has joined #ruby
<RiotingPacifist>
is there a start very verbose, in safe mode flag, --help gave me W but that isn't showing an error
jeffreybaird has joined #ruby
<RiotingPacifist>
ok never mind I was being an idiot, thought I could call ruby directly
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
hamed_r has quit [Ping timeout: 246 seconds]
<JonnieCache>
oh shit yeah youve just started the interpreter and its waiting for code on stdin
carloslopes has quit [Remote host closed the connection]
<helllen>
how can I replace substring with regexp but no case sensitive ?
asobrasil has left #ruby [#ruby]
buibex has joined #ruby
<Xeago>
don't you specify /regex/i?
jeffreybaird has joined #ruby
ExxKA has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
<shevy>
helllen I think if you append the i after the / as Xeago wrote
krawchyk has quit [Ping timeout: 255 seconds]
Uranio has quit [Quit: WeeChat 0.3.8]
berserkr has quit [Quit: Leaving.]
shtirlic_ has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
niklasb has joined #ruby
dnstbr has joined #ruby
<k610>
apeiros_, yes programmatically
odyssey4me has joined #ruby
<apeiros_>
k610: as said, use the doc tools
<apeiros_>
(and no, I don't know their API by heart, you'll have to read the docs)
helllen has quit [Ping timeout: 245 seconds]
seanyo has joined #ruby
ABK has quit [Read error: Connection reset by peer]
odyssey4me has quit [Client Quit]
yshh has joined #ruby
ABK has joined #ruby
thinker_ has joined #ruby
sk87 has joined #ruby
mybrainis404 has joined #ruby
zommi has quit [Quit: Leaving.]
ewag has joined #ruby
vlad_starkov has joined #ruby
invisime1 has joined #ruby
mmitchell has joined #ruby
byennen has joined #ruby
chimkan has joined #ruby
freezway has quit [Ping timeout: 252 seconds]
jprovazn has quit [Quit: Leaving]
Goles has quit [Remote host closed the connection]
oposomme has joined #ruby
x77686d has joined #ruby
invisime has quit [Ping timeout: 260 seconds]
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Xeago>
anyone uses mutt?
<oposomme>
hi I would like to know why when i assign foo, bar = '' bar is not reassign in a loop i havs to force with foo = '' and bar = ''?
tobinharris has joined #ruby
m4rtijn has quit [Remote host closed the connection]
<hoelzro>
oposomme: you mean the statement foo, bar = ''?
<hoelzro>
that code, verbatim?
<oposomme>
hoelzro: yes
<hoelzro>
maybe you should paste some code =)
<oposomme>
ok
Mon_Ouie has joined #ruby
matthewrobbins has joined #ruby
thinker_ has quit [Quit: Leaving]
jlast has joined #ruby
dangerousdave has joined #ruby
helllen has joined #ruby
elsifaka has quit [Quit: Veloma e!]
jdripper has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
_alejandro has joined #ruby
BigO has joined #ruby
<shevy>
oposomme, but you assign only one
<shevy>
foo, bar = '',''
<shevy>
haha
<shevy>
:D
joeycarmello has joined #ruby
<shevy>
kinda hilarious
<shevy>
foo, bar = ''
<shevy>
oops
<shevy>
ah yeah
<shevy>
in the first, two empty string objects. in the second, one empty string object and one nil object.
shiin has joined #ruby
oposomme has quit [Ping timeout: 245 seconds]
braoru has quit [Quit: Leaving]
aeontech has quit [Quit: aeontech]
eldariof has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
tagrudev has quit [Quit: Me = Awesome]
byennen has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
rumba has quit [Ping timeout: 246 seconds]
leifmadsen has quit [Ping timeout: 256 seconds]
aaronmcadam has quit [Ping timeout: 246 seconds]
_nitti has quit [Remote host closed the connection]
tomsthumb has quit [Read error: Connection reset by peer]
shorne has quit [Ping timeout: 256 seconds]
Nisstyre has quit [Ping timeout: 260 seconds]
_nitti has joined #ruby
ryanlecompte has joined #ruby
ProT-0-TypE has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
<shevy>
coding is way too much effort
Bootstrapper has joined #ruby
tobinharris has quit [Quit: tobinharris]
iamjarvo_ has joined #ruby
ulisescab has joined #ruby
nobuoka has joined #ruby
reinaldob has joined #ruby
xyzodiac has joined #ruby
tobinharris has joined #ruby
joeycarmello has quit [Remote host closed the connection]
matrixise has quit [Ping timeout: 260 seconds]
stat1x has joined #ruby
Bootstrapper has quit [Ping timeout: 240 seconds]
leifmadsen has joined #ruby
xclite has joined #ruby
rippa has joined #ruby
blitzrage has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
love_color_text has quit [Ping timeout: 246 seconds]
bartj3 has quit []
love_color_text has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
leifmadsen has quit [Ping timeout: 248 seconds]
ephemerian has joined #ruby
<D4T>
anyone got much experience with the json class?
RiotingPacifist_ has joined #ruby
ottbot has quit [Ping timeout: 260 seconds]
<D4T>
I'm not sure if I'm just going mad…. but it feels like the API I'm interacting with doesn't like the order in which the elements are formatted even though its valid JSON
<D4T>
not sure what to do about it
topek has quit [Quit: Leaving.]
xsbeats_ is now known as xsbeats
RiotingPacifist has quit [Ping timeout: 260 seconds]
RiotingPacifist_ is now known as RiotingPacifist
mmitchel_ has joined #ruby
SCommette has joined #ruby
aeontech has joined #ruby
helllen has left #ruby ["Saliendo"]
codeFiend has joined #ruby
mklappstuhl has joined #ruby
<waxjar>
d4t, what's your question? :)
burgestrand has quit [Quit: Leaving.]
seanyo_ has joined #ruby
seanyo has quit [Ping timeout: 248 seconds]
<D4T>
waxjar: let me provide some examples… two secs
tomsthumb has joined #ruby
mmitchell has quit [Ping timeout: 260 seconds]
chimkan has quit [Quit: chimkan]
byennen has joined #ruby
aeontech has quit [Ping timeout: 264 seconds]
codeFiend is now known as aeontech
<D4T>
waxjar: http://pastie.org/5443160 that shows the example, and what I'm sending using httparty but its throwing up an error and I have no idea why
<D4T>
waxjar: no matter, figured it!
<waxjar>
:)
Morkel has quit [Quit: Morkel]
<D4T>
good ol' pastie.org opened my eyes a little ;)
<waxjar>
id being a String instead of an Integer?
nga4 has joined #ruby
ottbot has joined #ruby
<D4T>
haha thats it smarty pants
<D4T>
:P
seanyo_ has quit [Ping timeout: 248 seconds]
blitzrage has quit [Ping timeout: 240 seconds]
Snugug has joined #ruby
ltsstar has joined #ruby
carlyle has joined #ruby
Cork has quit [Ping timeout: 276 seconds]
<Snugug>
I'm building a gemspec and I'm using Dir.glob to add a bunch of files into the built gem, but I need to change the directories of the files. For example, I need Dir.glob("_text/lib/**/*.*") to be added, but I need it to be added to the gem as lib/**/*.* (aka drop the _test)
<Snugug>
How can I do this?
chimkan_ has joined #ruby
Cork has joined #ruby
maesbn has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
fmcgeough has joined #ruby
thym has joined #ruby
Takehiro has joined #ruby
<JonnieCache>
call .map on the collection and trim the strings in the usual way?
kidoz has joined #ruby
RiotingPacifist_ has joined #ruby
buibex has quit [Remote host closed the connection]
RiotingPacifist has quit [Ping timeout: 260 seconds]
alex__c2022 has joined #ruby
cmo has quit [Quit: Page closed]
shiin has quit [Ping timeout: 244 seconds]
<thym>
Anyone familiar with getting bundle to use debian packages? There's the rubygems-integration package now, but I can't quite get it to go.
havenn has joined #ruby
Uranio has joined #ruby
skattyadz has quit [Quit: skattyadz]
RiotingPacifist has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
RiotingPacifist_ has quit [Ping timeout: 245 seconds]
Takehiro has quit [Remote host closed the connection]
jekotia has joined #ruby
anachronistic has joined #ruby
krawchyk has joined #ruby
davidrhyswhite has quit [Remote host closed the connection]
h4mz1d has joined #ruby
Takehiro has joined #ruby
lufu has joined #ruby
adeponte has joined #ruby
ffranz1 has joined #ruby
Monie has quit [Quit: Quit]
machuga has joined #ruby
mengu has quit [Quit: Konversation terminated!]
<arturaz>
has anybody used mina and know if it can be used for copying local files into the server?
generalissimo has quit [Remote host closed the connection]
morf has quit [Quit: eof]
RiotingPacifist_ has joined #ruby
machuga has left #ruby [#ruby]
adeponte has quit [Remote host closed the connection]
ffranz has quit [Ping timeout: 260 seconds]
seanyo has joined #ruby
LiquidInsect has joined #ruby
dankest has joined #ruby
baroquebobcat has joined #ruby
ffranz1 has quit [Quit: Leaving]
mneorr_ has joined #ruby
RiotingPacifist has quit [Ping timeout: 246 seconds]
RiotingPacifist_ is now known as RiotingPacifist
ffranz has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
poseid has quit [Ping timeout: 245 seconds]
skattyadz has joined #ruby
brianpWins has quit [Quit: brianpWins]
aganov has quit [Remote host closed the connection]
lkba has joined #ruby
apeiros_ has quit [Remote host closed the connection]
a_a_g has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
chimkan_ has quit [Quit: chimkan_]
Bootstrapper has joined #ruby
adeponte has joined #ruby
matrixise has joined #ruby
Snugug has quit [Quit: Snugug]
lufu has quit [Remote host closed the connection]
chimkan has joined #ruby
jrajav has joined #ruby
maz-dev has quit [Ping timeout: 246 seconds]
adeponte has quit [Remote host closed the connection]
maz-dev has joined #ruby
replore_ has joined #ruby
shiin has joined #ruby
joeycarmello has joined #ruby
ExxKA has joined #ruby
davidcelis has quit [Quit: K-Lined.]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
jsmonkey has quit [Quit: Lost terminal]
danneu has left #ruby ["WeeChat 0.3.8"]
havenn has quit [Read error: Connection reset by peer]
Snugug has joined #ruby
havenn has joined #ruby
blazes816 has joined #ruby
h4mz1d has quit [Ping timeout: 245 seconds]
k610 has quit [Ping timeout: 256 seconds]
Neomex has joined #ruby
airstream66 has joined #ruby
cdehaan has joined #ruby
<cdehaan>
Hello! I have bundler and jeweler installed, but when trying to do "bundle install," I'm getting: Bundler could not find compatible versions for gem "bundler":
vlad_starkov has quit [Remote host closed the connection]
robustus has joined #ruby
airstream66 has left #ruby [#ruby]
ProT-0-TypE has quit [Ping timeout: 265 seconds]
Neomex has quit [Client Quit]
yshh has quit [Remote host closed the connection]
lindenle has quit [Quit: Leaving]
philips_ has joined #ruby
generalissimo has joined #ruby
u89 has quit [Remote host closed the connection]
kbeddingfield has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mneorr_ has quit [Remote host closed the connection]
daniel_-_ has joined #ruby
u89 has joined #ruby
ABK has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
mneorr has joined #ruby
Monie has joined #ruby
havenn has joined #ruby
BiHi has quit [Ping timeout: 246 seconds]
nemesit has joined #ruby
mahmoudimus has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
geggam has joined #ruby
apeiros_ has joined #ruby
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
BiHi has joined #ruby
krz has quit [Quit: krz]
mmitchel_ has quit [Remote host closed the connection]
x77686d has quit [Ping timeout: 244 seconds]
x82_nicole has quit [Quit: Computer has gone to sleep.]
x77686d has joined #ruby
dr_bob has quit [Quit: Leaving.]
mmitchell has joined #ruby
havenn has quit [Ping timeout: 260 seconds]
dnstbr has quit [Quit: Computer has gone to sleep.]
cdehaan has quit [Quit: Page closed]
atno has quit [Quit: Leaving]
x82_nicole has joined #ruby
timonv has quit [Remote host closed the connection]
enroxorz-work has joined #ruby
jgarvey has quit [Quit: Leaving]
asobrasil has joined #ruby
dnstbr has joined #ruby
anderse has quit [Quit: anderse]
atno has joined #ruby
scriabin has joined #ruby
<scriabin>
stupid noob question: if you define a variable in one private function, how do you make it visible to another private function in the same class?
jenrzzz has joined #ruby
tommyvyo has joined #ruby
<eka>
scriabin: @myvar
ToTo has quit [Ping timeout: 246 seconds]
<GeekOnCoffee>
scriabin: or message passing
<scriabin>
that's what I did. hmmmm.
<eka>
scriabin: paste your code in any pastebin so we can see
<scriabin>
in application.rb in before_filter I define @start_time, in after_filter I define @end_time and try @end_time - @start_time and it says it can't reference @start_time
<scriabin>
ok just a sec
axl_ has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: sk87]
berserkr has joined #ruby
stkowski has joined #ruby
<eka>
scriabin: ah you are talking about rails?
luki3k5 has joined #ruby
<JonnieCache>
in rails everything is a bit different
<scriabin>
eka yeah rails - sorry I guess I should be in #rubyonrails
<eka>
scriabin: yes :)
<scriabin>
but I *thought* this was a ruby issue
atno has quit [Quit: Leaving]
<enroxorz-work>
i would like to state that i love ruby. after being forced to work with C# for teh past two days I am ready to come back home to the hoarde.
<eka>
scriabin: then let us know ;)
RiotingPacifist_ has joined #ruby
atno has joined #ruby
<JonnieCache>
scriabin: for a start, your variables are called @start_datetime yet they contain Time objects, not DateTime
<scriabin>
eka aww you're a nice chap
<shevy>
enroxorz-work hehehe
chimkan has quit [Quit: chimkan]
<scriabin>
JonnieCache: is it possible that the names of my variables could be affecting scope?
<JonnieCache>
nope
<JonnieCache>
also, youre resetting the variables in the after filter, so the difference will always be zero
<JonnieCache>
scriabin: also you should look into around_filter as it will allow you to achieve what you want with just one filter
u89 has quit [Remote host closed the connection]
Ethan2 has joined #ruby
<JonnieCache>
scriabin: finally, rails already times all its requests for you. look in the development log
undersc0re97 has quit [Ping timeout: 260 seconds]
<enroxorz-work>
shevy: just to scan a string for regex values took 4 lines of code...so inefficient. Time to write a wrapper, I guess...
havenn has joined #ruby
<scriabin>
around_filter - brilliant! thanks so much!
replore_ has quit [Remote host closed the connection]
RiotingPacifist has quit [Ping timeout: 245 seconds]
RiotingPacifist_ is now known as RiotingPacifist
davidcelis has joined #ruby
<scriabin>
JonnieCache: do you know how to get those times, ala 'rails already times all its requests for you'?
replore has joined #ruby
fasta has joined #ruby
axl_ has joined #ruby
<JonnieCache>
if you look in the development server log output, the last line of each request's output includes the times for the view rendering and the db access
mathie has quit [Quit: Bye!]
nobuoka has quit [Quit: Leaving...]
applesarefruits has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
<tables>
i'm tryin to make a ruby script that uses that time_diff
daniel_-_ has joined #ruby
<gp5st>
eka: google? tls-srp is a password based mutual authentication protocol built into tls. i want to use it in an application but nothing seems to support it:(
<tables>
i guess what i want is a ruby hello world
reset has joined #ruby
Aiur has joined #ruby
<davidcelis>
puts "hello world"
dmerrick has joined #ruby
<Xeago>
gp5st: openssl supports it, didn't someone say that in ##crypto?
mneorr has quit [Read error: Connection reset by peer]
<gp5st>
yes it does, that doesn't mean the language bindings do
mneorr has joined #ruby
Guest81846 has quit [Client Quit]
<gp5st>
gnutls also supports it
<Xeago>
what prevents you from writing that yourself?
LBRapid_ has joined #ruby
<Xeago>
that would be a great extension
<gp5st>
it won't be supported nearly wide enough for my application to be useful
mrsolo has quit [Quit: This computer has gone to sleep]
<Xeago>
then code in c if you need it to run on that many platforms
<apeiros_>
eka: I don't care. if somebody wants help, he/she should be thoughtful about how to get it
u89 has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
<apeiros_>
wasting other people's time by not being thoughtful is just outright rude.
<eka>
apeiros_: maybe it's a kid... or someone with a kids mind
kil0byte_ has quit [Remote host closed the connection]
u89 has quit [Remote host closed the connection]
<eka>
apeiros_: apart from that you are right ;)
jlast has quit [Remote host closed the connection]
<apeiros_>
a kid can think too
ABK has quit [Read error: Connection reset by peer]
Trioke has joined #ruby
ABK has joined #ruby
Xeago has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
icole has joined #ruby
Nisstyre-laptop has joined #ruby
voodoofish430 has joined #ruby
Xeago has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
ABK has quit [Read error: Connection reset by peer]
mukul_d has joined #ruby
dankest has joined #ruby
Spaceboy has quit [Read error: Operation timed out]
ABK has joined #ruby
tenmilestereo has joined #ruby
slainer68 has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
hotovson has quit [Remote host closed the connection]
ossareh has joined #ruby
havenn has quit [Remote host closed the connection]
ever_daniel has quit [Remote host closed the connection]
the_jeebster has joined #ruby
havenn has joined #ruby
ql6wlld1 has quit []
juarlex has joined #ruby
Goles has joined #ruby
egn_ has quit [Quit: leaving]
mascool has joined #ruby
Spaceboy has joined #ruby
cakehero has joined #ruby
rhys has quit [Quit: Leaving]
jdripper has quit [Quit: Leaving.]
havenn_ has joined #ruby
havenn has quit [Read error: Operation timed out]
Xeago has joined #ruby
<the_jeebster>
I'm playing with the ruby csv stdlib and I notice that rows are arrays of strings. is there any way to manipulate the string objects? I can't seem to do so by iterating through each row and assigning the value of each item to an integer
Nisstyre-laptop has quit [Quit: Leaving]
roadt has quit [Ping timeout: 256 seconds]
cakehero has quit [Client Quit]
x77686d has joined #ruby
jrist is now known as jrist-afk
<Mon_Ouie>
The left side of an assignment isn't an object or a value, it's a variable (or a special method call, or a constant)
cpruitt has joined #ruby
<Mon_Ouie>
So you're probably just setting a local variable to some value, which has no effect beyond the scope of your loop
ABK has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
<the_jeebster>
so I'm doing something like this...
ABK has joined #ruby
<apeiros_>
(a constant is a variable, despite its name)
ABK has quit [Read error: Connection reset by peer]
<the_jeebster>
CSV.foreach("filename") do |row|
<the_jeebster>
# Rows are arrays of strings
<the_jeebster>
row.each do |val1, val2|
<the_jeebster>
val1 = val1.to_i
<the_jeebster>
print row
<the_jeebster>
val2 = val2.to_i
<the_jeebster>
end
<the_jeebster>
end
ABK has joined #ruby
Xeago has quit [Remote host closed the connection]
* apeiros_
smacks the_jeebster with the topic
<Mon_Ouie>
Use pastie.org for pasting code
<the_jeebster>
k
<Mon_Ouie>
And yes your just setting val1 and val2, it doesn't affect the row object.
<waxjar>
row is still an array the_jeebster, it is never altered
<Mon_Ouie>
I'd probably use Enumerable#map in this case
<the_jeebster>
I was thinking about mapping
chrishunt has joined #ruby
<the_jeebster>
waxjar: but I'm enumerating through each object in the row, no?
<the_jeebster>
so each object in the array
tables has quit [Read error: Connection reset by peer]
<Mon_Ouie>
(map! is closer to modifying row itself, but I doubt it's actually useful, might be faster because it saves the creation of an array)
tables has joined #ruby
<waxjar>
yes, but row still points to the array
krawchyk has quit [Remote host closed the connection]
<waxjar>
the stuff you put between do and end, is what gets called on the objects of the array (one by one)
<the_jeebster>
waxjar: maybe I'm missing something…the way I see it is that I'm iterating through each value of the array
<Mon_Ouie>
val1 = val1.to_i sets the local variable val1 to the return value of val1.to_i. The object that was initially referred to by val1 — the string — however is not changed.
krawchyk has joined #ruby
<waxjar>
you are yes, but the object you're iterating to is val1 in this case, row is just a variable that holds that array
xyzodiac has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie>
And your array still contains a reference to that string, not the integer you got from #to_i
havenn_ has quit [Ping timeout: 264 seconds]
Nisstyre-laptop has joined #ruby
elux has joined #ruby
machty has joined #ruby
lampe2 is now known as lampe2_css_afk
<the_jeebster>
ah, so there's really no way to alter the original object without mapping it?
zigidias_ has quit [Quit: cookies!]
<waxjar>
map! alters the original array
ABK has quit [Read error: Connection reset by peer]
<waxjar>
map returns a new, altered array
<Mon_Ouie>
You can't change the class of an object
<waxjar>
each just iterates over the array
ABK has joined #ruby
<Mon_Ouie>
So you can't turn your string into an integer. You can modify what objects are stored in your array, though.
ABK has quit [Read error: Connection reset by peer]
<the_jeebster>
right, so I performed map! and it looks good
<Mon_Ouie>
#map! is one way to do that, #[]= another
ABK has joined #ruby
x77686d has quit [Quit: x77686d]
verto is now known as verto|off
thinkdevcode has joined #ruby
havenn has joined #ruby
<the_jeebster>
so could I then use row.each to pull out the values of each object in the array and insert them into a range?
<krapplefries>
i want to make a ruby interpreter in flash script
love_col_ has joined #ruby
emptyflask has joined #ruby
<eka>
krapplefries: that's old... ;)
Dan- has joined #ruby
love_color_text has quit [Ping timeout: 246 seconds]
chrishunt has quit [Quit: Leaving...]
mklappstuhl has joined #ruby
<emptyflask>
anyone know how to escape square brackets for yard doc comments? I'd like to have some text in the doc that mentions "user['events']", but it keeps getting replaced by "<a href='events'>user</a>"
Nisstyre-laptop has joined #ruby
havenn has quit [Remote host closed the connection]
<krapplefries>
emptyflask are you sure youre naming the files .html?
Vainoharhainen has quit [Ping timeout: 244 seconds]
ABK has quit [Read error: Connection reset by peer]
Jamone has joined #ruby
ABK has joined #ruby
<emptyflask>
krapplefries: I'm just writing this in ruby comments, with `yard server --reload` running
<krapplefries>
yes
<krapplefries>
is it in the back yard or the front yard?
RiotingPacifist_ has quit [Read error: Connection reset by peer]
<krapplefries>
and how big is your yard?
<krapplefries>
would a pool fit in your yard?
nat2610 has quit [Read error: Connection reset by peer]
nat2610 has joined #ruby
ckrailo has joined #ruby
johnmilton has joined #ruby
<emptyflask>
the back yard, naturally
spike|spiegel has quit [Quit: WeeChat 0.3.9.2]
carlyle_ has joined #ruby
nazty has joined #ruby
dankest has quit [Ping timeout: 264 seconds]
RiotingPacifist has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
carlyle has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Ping timeout: 244 seconds]
Monie has quit [Ping timeout: 244 seconds]
<emptyflask>
the syntax for escaping such stuff with rdoc generation was \user['events'] but that doesn't work with yard
ProT-0-TypE has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
a_a_g has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
berserkr has quit [Quit: Leaving.]
huoxito has joined #ruby
IPGlider has quit []
micsha has quit [Ping timeout: 260 seconds]
<dominikh>
emptyflask: it will depend on the provider (markdown etc) what gets replaced and how to escape it
chrishunt has joined #ruby
tables has quit [Ping timeout: 256 seconds]
<emptyflask>
hmm. this is the first time i've ever used yard, so i assume it's using whatever is default
tables has joined #ruby
Xeago has quit [Remote host closed the connection]
tables has quit [Client Quit]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
volta has quit [Remote host closed the connection]
emmanuelux has joined #ruby
Slivka has joined #ruby
havenn has joined #ruby
claudijd has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
claudijd has left #ruby [#ruby]
RiotingPacifist has quit [Quit: RiotingPacifist]
shevy has joined #ruby
punkrawkR^Home has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
micsha has joined #ruby
brandon|work has quit [Remote host closed the connection]
xyzodiac has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
elkclone has quit [Changing host]
elkclone has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
arturaz has joined #ruby
sterNiX has joined #ruby
sterNiX has quit [Changing host]
sterNiX has joined #ruby
ABK has quit [Read error: Connection reset by peer]
Vainoharhainen has joined #ruby
ABK has joined #ruby
fartcop has quit [Read error: Connection reset by peer]
fartcop has joined #ruby
dmiller has quit [Read error: Operation timed out]
JonnieCache has joined #ruby
dangerousdave has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros_ has joined #ruby
Villadelfia has quit [Remote host closed the connection]
SeySayux has quit [Remote host closed the connection]
emptyflask has quit [Remote host closed the connection]
SeySayux has joined #ruby
Villadelfia has joined #ruby
alexim has quit [Quit: sleep]
love_col_ has quit [Remote host closed the connection]
codeFiend has joined #ruby
leifmadsen has quit [Ping timeout: 260 seconds]
sailias has quit [Read error: Connection reset by peer]
sailias1 has joined #ruby
notfunk has quit [Remote host closed the connection]
cakehero has joined #ruby
notfunk has joined #ruby
codeFiend_ has joined #ruby
jrist-afk is now known as jrist
zigidias has joined #ruby
davidcelis has quit [Quit: K-Lined.]
aeontech has quit [Ping timeout: 246 seconds]
<Aiur>
Anybody used rbenv before? My 'rbenv version' doesn't match 'ruby -v'
Leitz has quit [Quit: ciao!]
kbeddingfield has quit [Remote host closed the connection]
codeFiend has quit [Ping timeout: 246 seconds]
schaerli has joined #ruby
<havenn>
Aiur: Maybe 'rbenv rehash' (something like that?). Not sure, I switched to chruby + ruby-build and never looked back! https://github.com/postmodern/chruby
banisterfiend has joined #ruby
thomas has quit [Read error: Operation timed out]
wchun has quit [Quit: Leaving]
arya has quit [Ping timeout: 244 seconds]
schaerli has quit [Remote host closed the connection]
Snugug has quit [Quit: Snugug]
postmodern has quit [Quit: Leaving]
FredLe has quit [Ping timeout: 260 seconds]
margle has quit [Quit: Computer has gone to sleep.]
<shevy>
more ruby means good things
mikepack has joined #ruby
Jamone has quit [Read error: Connection reset by peer]
FredLe has joined #ruby
Monie has joined #ruby
margle has joined #ruby
arya has joined #ruby
trevortwining has quit [Quit: trevortwining]
Monie has quit [Read error: Connection reset by peer]
pyr0commie has joined #ruby
havenn has quit [Remote host closed the connection]
carloslopes has joined #ruby
keyvan has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
havenn has joined #ruby
carloslopes has joined #ruby
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
himsin has joined #ruby
dmiller has joined #ruby
Guest24042 has quit [Quit: Guest24042]
rippa has quit [Ping timeout: 250 seconds]
Nisstyre-laptop has quit [Ping timeout: 240 seconds]
leifmadsen has joined #ruby
schaerli has joined #ruby
havenn has quit [Ping timeout: 245 seconds]
grzywacz has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
havenn has joined #ruby
senj has quit []
mneorr has quit [Remote host closed the connection]
aniasis has joined #ruby
<aniasis>
hello
<aniasis>
I am attempting to install ruby on my server so that I may run a ruby script from my shell
otters has quit [Ping timeout: 252 seconds]
<aniasis>
but for some reason I am getting errors.
emptyflask has joined #ruby
matthewrobbins has joined #ruby
<shevy>
what errors
<atmosx>
aniasis: what OS? if it's linux what distro?
<havenn>
aniasis: Can you paste a gist of the errors? How are you installing Ruby? OS?
headius has quit [Quit: headius]
lampe2_css_afk is now known as lampe2
xyzodiac has quit [Quit: Computer has gone to sleep.]
<aniasis>
Ubuntu 11.04
schaerli has quit [Remote host closed the connection]
Elico has quit [Remote host closed the connection]
canton7 has quit [Excess Flood]
<aniasis>
havenn, I install Ruby using the apt-get package manager
canton7 has joined #ruby
nat2610 has quit [Quit: Leaving.]
nat2610 has joined #ruby
nat2610 has quit [Client Quit]
jlwestsr has joined #ruby
Beoran_ has joined #ruby
mklappstuhl has quit [Ping timeout: 265 seconds]
rektide has left #ruby [#ruby]
nat2610 has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<havenn>
aniasis: I think the conventional wisdom is to not use the apt-get version. Building from source or using a tool like ruby-build or RVM is a good bet.
kbeddingfield has quit [Ping timeout: 255 seconds]
moted has joined #ruby
ProT-0-TypE has joined #ruby
ltsstar has quit [Quit: ltsstar]
BigO has quit [Remote host closed the connection]
BoomCow has joined #ruby
jds_ has quit [Remote host closed the connection]
lolcathost has joined #ruby
<havenn>
aniasis: Oh, you left... anyway not sure if this works by my attempt at chruby + ruby-build Ubuntu instructions: https://gist.github.com/4156894
ProT-0-TypE has quit [Client Quit]
ProT-0-TypE has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
hderms has quit [Client Quit]
ProT-0-TypE has quit [Client Quit]
BigO has joined #ruby
joofsh has joined #ruby
ProT-0-TypE has joined #ruby
chaplain has quit [Read error: Connection reset by peer]
ProT-0-TypE has quit [Client Quit]
margle has quit [Quit: Computer has gone to sleep.]
chaplain has joined #ruby
havenn has quit [Remote host closed the connection]
hderms has joined #ruby
lolcathost has quit [Ping timeout: 248 seconds]
generalissimo has quit [Remote host closed the connection]
headius has joined #ruby
Virunga has joined #ruby
hderms has quit [Client Quit]
rezzack has quit [Quit: Leaving.]
BigO has quit [Remote host closed the connection]
zigidias has joined #ruby
chimkan has quit [Quit: chimkan]
chussenot has joined #ruby
dmiller has quit [Remote host closed the connection]
LBRapid_ has quit [Quit: Farewell.]
chussenot has quit [Client Quit]
schaerli has joined #ruby
chaplain has quit [Read error: Connection reset by peer]
chaplain has joined #ruby
nanderoo has quit [Quit: Leaving.]
carlyle_ has quit [Remote host closed the connection]
chaplain has quit [Client Quit]
rezzack has joined #ruby
davidcelis has joined #ruby
BigO has joined #ruby
jgarvey has joined #ruby
dermot has quit [Quit: leaving]
carloslopes has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
burgestrand has joined #ruby
jgarvey has quit [Client Quit]
workmad3 has joined #ruby
codeFiend_ has quit [Quit: codeFiend_]
scriabin has quit [Ping timeout: 245 seconds]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
horrror has joined #ruby
horrror is now known as hrr
schaerli has quit [Ping timeout: 260 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
x82_nicole has quit [Quit: Computer has gone to sleep.]
aeontech has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
darthdeus has joined #ruby
Snugug has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
R3dy has joined #ruby
<R3dy>
I've managed to jumble up a string in a program I'm working on and it returns like this "A\x00d\x00m\x00i\x00n\x00i\x00s\x00t\x00r\x00a\x00t\x00o\x00r\x00"
reinaldob has quit [Ping timeout: 265 seconds]
<apeiros_>
you're looking at binary data
<R3dy>
How do I get it to return cleanly with just the ASCII chars
x82_nicole has joined #ruby
h4mz1d has quit [Ping timeout: 264 seconds]
xclite has quit [Remote host closed the connection]
<davidcelis>
Administrator
<davidcelis>
lolol
<R3dy>
right I know what it is
<davidcelis>
wasn't somebody in here yesterday with the same problem
<R3dy>
I just don't want the output to be messy like that
<davidcelis>
but with artist names after extracting from iTunes or some shit
<R3dy>
don't know anything about that
xclite has joined #ruby
<R3dy>
so I should try to unpack it to Hex then?
<R3dy>
i'll try that
<R3dy>
nope
ABK has quit [Quit: Leaving]
krawchyk_ has quit [Remote host closed the connection]
<apeiros_>
R3dy: you're probably looking at utf-16
tbrock has quit [Quit: Leaving]
<apeiros_>
and you should just transcode it to whatever encoding you want. remember though that ascii can't represent all characters of unicode.
AndChat| has joined #ruby
lolcathost has joined #ruby
ltsstar has joined #ruby
[Neurotic] has joined #ruby
carlyle has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 246 seconds]
CharlieSu has quit [Ping timeout: 246 seconds]
<R3dy>
got it thanks
segv- has quit [Quit: segv-]
fourcolors has joined #ruby
monkegjinni has joined #ruby
<fourcolors>
hi, is it possible to create a file that is 2kb big in ruby?
<shevy>
fourcolors yes
<apeiros_>
kb? as in kilobit?
apeiros_ has quit [Remote host closed the connection]
ltsstar has quit [Client Quit]
banjara has joined #ruby
<shevy>
where is he
<shevy>
where did apeiros go
apeiros_ has joined #ruby
<fourcolors>
there he is
<apeiros_>
he went from wireless to wired
<shevy>
fourcolors, I think you can fill in any data you want
FDj has joined #ruby
moted has quit [Remote host closed the connection]
<shevy>
kb is killerboogies apeiros_
<apeiros_>
ah, that
<apeiros_>
no, ruby can't make a 2 killerboogies big file
geekbri has quit [Remote host closed the connection]
jslowe has joined #ruby
u89 has quit [Read error: Connection reset by peer]
Steppen has quit [Ping timeout: 246 seconds]
headius has joined #ruby
kbeddingfield has joined #ruby
emmanuelux has joined #ruby
ChampS666 has joined #ruby
<Cadwallion>
fourcolors: that depends upon the mode you opened the file.
<fourcolors>
I think I can do file.truncate(0)
love_color_text has joined #ruby
danneu has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
kbeddingfield has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
xyzodiac has joined #ruby
jds_ has joined #ruby
x82_nicole has joined #ruby
lolcathost has quit [Ping timeout: 244 seconds]
kbeddingfield has joined #ruby
lolcathost has joined #ruby
hrr has quit [Quit: hrr]
BoomCow has quit [Quit: This computer has gone to sleep]
stephenjudkins has joined #ruby
BoomCow has joined #ruby
gmci has joined #ruby
dmiller has quit [Remote host closed the connection]
gmci is now known as Guest91972
chimkan_ has joined #ruby
workmad3 has joined #ruby
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
keyvan has quit [Remote host closed the connection]
Nisstyre has joined #ruby
jrunning has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
headius has quit [Quit: headius]
BigO has quit [Remote host closed the connection]
bbttxu has quit [Quit: bbttxu]
jenrzzz has joined #ruby
ExxKA has joined #ruby
senj has joined #ruby
wargasm has quit [Ping timeout: 240 seconds]
ExxKA has quit [Client Quit]
linnea has quit [Read error: Operation timed out]
Brainix has joined #ruby
jlast has quit [Read error: Connection reset by peer]
linnea has joined #ruby
jlast has joined #ruby
linnea is now known as Guest24761
_class_ has joined #ruby
geggam has quit [Ping timeout: 244 seconds]
sailias has joined #ruby
__class__ has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
codecop has quit [Quit: Išeinu]
_class_ is now known as __class__
gyre007 has quit [Remote host closed the connection]
zigidias has quit [Ping timeout: 260 seconds]
adeponte has quit [Remote host closed the connection]
apok_ has joined #ruby
adeponte has joined #ruby
joast has quit [Quit: Leaving.]
vasile has joined #ruby
havenn has joined #ruby
apok has quit [Ping timeout: 250 seconds]
apok_ is now known as apok
_nitti has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
<vasile>
I'm a ruby novice trying to install a rails app, and I'm struggling to understand the error: /usr/lib/ruby/vendor_ruby/rails/configuration.rb:8:in `<module:Rails>': Configuration is not a module (TypeError) I pasted the full traceback at http://pastebin.com/ZMeSA3VW). Any pointers would be appreciated.
<havenn>
vasile: Update Ruby then gem install rails, in that order. :P
Russell^^ has quit [Quit: Russell^^]
<vasile>
havenn: I think my rails came from apt-get
<vasile>
(It's a Debian box)
<kapowaz>
is it possible to add a class method via a module?
mercwithamouth has quit [Ping timeout: 264 seconds]
<havenn>
vasile: I just wrote up a Gist earlier today on apt-get install of Ruby through ruby-build and chruby: https://gist.github.com/4156894
tenmilestereo has quit [Quit: Leaving]
<havenn>
vasile: Haven't actually tested it yet. >.> I *might* work?
Monie has quit [Read error: Connection reset by peer]
<vasile>
havenn: I'll look at it now.
<havenn>
vasile: apt-get packages for Ruby are Rails aren't viable, at least not yet.
<havenn>
vasile: If it works, let me know!! :O
<vasile>
havenn: I will indeed.
justinlilly has quit [Ping timeout: 246 seconds]
TheMoonMaster has quit [Ping timeout: 246 seconds]
Monie has joined #ruby
<waxjar>
kapowaz, yes. extend instead of include
arya_ has joined #ruby
fartcop has quit [Ping timeout: 246 seconds]
xybre_ has quit [Ping timeout: 246 seconds]
<havenn>
vasile: chruby is awesome... like 50 lines of shell and you even get Ruby name abbreviations.
mark_locklear has quit [Remote host closed the connection]
<havenn>
vasile: And ruby-build or RVM are the simplest way to build Ruby imho.
<kapowaz>
waxjar: hmm, I was just reading about that — tried it and it doesn't seem to do what I want
justinlilly has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
arya has quit [Ping timeout: 244 seconds]
medik has joined #ruby
xybre has joined #ruby
medik has quit [Excess Flood]
<vasile>
havenn: I don't know what Ruby name abbreviations are. I'm just now coming to the language. But anything that is 50 lines of bash and does cool things is pretty awesome in my book.
<havenn>
vasile: I said that badly. What I mean is fuzzy matching of Rubies by name. (i.e., to install 1.9.3p...: chruby 1.9.3
<vasile>
havenn: ah, got it
<kapowaz>
waxjar: yeah, but a class method? rather than an instance method…
burntbit has joined #ruby
<vasile>
havenn: I hadn't realized it was common to keep multiple Rubies around
<waxjar>
see line 11 :)
mascool_ has joined #ruby
<kapowaz>
waxjar: aha, so you can define it but without the self.method_name syntax inside the module
<kapowaz>
great, thanks :)
<vasile>
havenn: I'm guessing that apt-get should be s/pkgconfig/pkg-config/
brianpWins has quit [Quit: brianpWins]
<havenn>
vasile: My current installed Rubies (see by typing chruby): 1.9.3-p327, 2.0.0-preview1, jruby-1.7.0, maglev-1.1.0-dev, mruby-dev, rbx-2.0.0-rc1
<havenn>
hrmm, I need to install macruby...
tommyvyo has joined #ruby
fartcop has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
emptyflask has joined #ruby
<havenn>
vasile: Yeah, oops!
<vasile>
havenn: Do normal users usually have a lot of those installed?
<waxjar>
i've only got MRI 1.9.3 to be honest
jrist is now known as jrist-afk
jrunning has quit [Quit: leaving]
Guest91972 has quit [Ping timeout: 265 seconds]
mascool has quit [Ping timeout: 265 seconds]
linoj has quit [Quit: linoj]
ner0x has quit [Quit: Leaving]
danneu has quit [Quit: WeeChat 0.3.8]
brandon|work has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<havenn>
vasile: I dunno. I think 1.9.3, 2.0.0, jruby and rbx are all pretty common to see these days. Admittedly, maglev and mruby in particular are less common.
<vasile>
havenn: Hrm. I'm running Rails 3.2.6 and Ruby 1.9.3p194, so I don't think I need to upgrade after all
mneorr has quit [Remote host closed the connection]
schaerli has joined #ruby
<havenn>
RVM and ruby-build let you easily keep up to day.
<havenn>
vasile: Ruby 2.0.0 out in Feb!
<havenn>
rvm or ruby-build, rather
krapplefries has left #ruby [#ruby]
tommyvyo_ has joined #ruby
hadees has joined #ruby
carlyle has quit [Remote host closed the connection]
<havenn>
vasile: P.S. ~ Current Rails is 3.2.9
<havenn>
vasile: gem update
eph3meral has joined #ruby
schaerli has quit [Ping timeout: 245 seconds]
dmiller has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
<vasile>
havenn: That is pulling down a ton of stuff...
<havenn>
vasile: A lot of it is just for compiling gem extensions or ssl support, etc.
<havenn>
vasile: I'm fixing the Gist as I do a Mint install :P
blazes816 has quit [Quit: blazes816]
Virunga has quit [Remote host closed the connection]
<kapowaz>
do ruby modules have anything akin to a constructor for whenever the module is included?
tbrock has joined #ruby
samphippen has joined #ruby
BadProphet has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
Snugug has quit [Quit: Snugug]
<vasile>
havenn: So many versions of ruby! Reminds me of lisp...
elaptics`away is now known as elaptics
phantasm66 has quit [Quit: *sleeeeep*]
pyx has joined #ruby
<vasile>
havenn: I gem installed rails and now have 3.2.9 as well as ruby 1.9.3p194. The problem remains unchanged.
<vasile>
havenn: What's the first step in understanding the traceback?
<vasile>
Is it the case that it's trying to import a thing called Configuration as a module but when ruby looks at it, it's not a module?
<apeiros_>
vasile: sounds like something defines a class Configuration and something else a module Configuration
<apeiros_>
and there can only be one Configuration. either a class or a module, not both
<vasile>
apeiros_: ok, that's interesting. Is there a tool for finding where an identifier is defined?
<apeiros_>
the backtrace tells you where one is being defined
gmci has joined #ruby
<vasile>
apeiros_: I'm afraid I don't know how to get that info from that backtrace.
<apeiros_>
/usr/lib/ruby/vendor_ruby/rails/configuration.rb:8:in `<module:Rails>': Configuration is not a module (TypeError)
<apeiros_>
first line
gmci is now known as Guest65901
<apeiros_>
first line is the last line of code which was executed
<vasile>
Right. So does that mean there's a bug in /usr/lib/ruby/vendor_ruby/rails/configuration.rb?
<vasile>
And how would I find the competing definition?
<havenn>
vasile: A problem on line 8 of that file, a TypeError.
<apeiros_>
it says: in file "/usr/lib/ruby/vendor_ruby/rails/configuration.rb" on line 8, within the context `<module:Rails>' the exception TypeError with message "Configuration is not a module" happened
<havenn>
vasile: That is not Rails 3 though. You either need to bundle, or change your Gemfile or generate a new app, or something. :P
undersc0re97 has quit [Ping timeout: 260 seconds]
katherinem13 is now known as katherinem13_brb
<vasile>
Ok, I understand the error at a superficial level.
mklappstuhl has joined #ruby
<vasile>
havenn: If I installed the latest ruby and rails, why is it still using something that is not rails 3?
ryanlecompte has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
<havenn>
vasile: Did you generate the app with Rails 2?
ryanlecompte has joined #ruby
<havenn>
vasile: Updating your gem doesn't update the app.
<eph3meral>
vasile: there's also #rubyonrails
<havenn>
^
<havenn>
vasile: To remove old gems: gem cleanup
<vasile>
havenn: Ah, ok. Sorry I'm a ruby newb. the words you're writing are starting to make more sense as this conversation goes on.
<vasile>
I'll take my question to #rubyonrails.
<vasile>
I appreciate the help. Thank you very much.
xclite has quit [Remote host closed the connection]
nemesit has joined #ruby
<havenn>
vasile: G'luck!
jrajav has joined #ruby
<vasile>
havenn: Thanks much.
nari has joined #ruby
Averna has joined #ruby
Averna has quit [Client Quit]
xclite has joined #ruby
stkowski has quit [Quit: stkowski]
chimkan_ has quit [Quit: chimkan_]
burntbit has quit [Ping timeout: 245 seconds]
ewag has joined #ruby
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
chimkan has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
jlast has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
matthewrobbins has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
tyfighter has joined #ruby
micsha has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
jeffreybaird has joined #ruby
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
byennen has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
GoGoGarrett has quit [Remote host closed the connection]
alanp_ has joined #ruby
jlast has joined #ruby
Ethan2 has quit [Quit: Leaving]
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
nemesit has quit [Quit: Leaving...]
kaichanvong has joined #ruby
alanp has quit [Ping timeout: 246 seconds]
nat2610 has joined #ruby
ikaros has quit [Quit: Ex-Chat]
emmanuelux has quit [Quit: emmanuelux]
mmitchell has quit [Ping timeout: 264 seconds]
carlyle has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
Monie has quit [Read error: Connection reset by peer]
carlyle has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 245 seconds]
stopbit has quit [Quit: Leaving]
gabrielrotbart has joined #ruby
jds_ has quit [Remote host closed the connection]
FredLe has quit [Quit: Leaving.]
kbeddingfield has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
<voodoofish430>
ahh, that could be useful
ikaros has joined #ruby
anachronistic has quit [Quit: anachronistic]
<mklappstuhl>
heftig, hm, ok. seems wierd
<voodoofish430>
thanks guys!
dross has quit [Ping timeout: 245 seconds]
Goles has quit [Ping timeout: 245 seconds]
<heftig>
mklappstuhl: the only file you're working with here is the zipfile itself
otters has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
<mklappstuhl>
heftig, So how would I use read on that?
<heftig>
its contents aren't files
<mklappstuhl>
I basically want a method that returns one specific file which is inside the zip file so that this file can be saved elsewhere
jenrzzz has quit [Ping timeout: 240 seconds]
<heftig>
ZipInputStream is that
<mklappstuhl>
and I'd like to decouple that as much as possible from the zip-handling etc
jrist-afk is now known as jrist
Michael_ has quit [Remote host closed the connection]
<mklappstuhl>
couldn't I convert such stream into a file? (I guess a File object is always bound to specific file on disc, that might be the problem—did I get this right?)
maz-dev has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Quit: Leaving...]
maz-dev has joined #ruby
<heftig>
mklappstuhl: yes.
<heftig>
(that's the problem)
BoomCow has quit [Quit: This computer has gone to sleep]
SCommette has quit [Quit: SCommette]
R3dy has quit [Ping timeout: 245 seconds]
otters has quit [Ping timeout: 265 seconds]
BoomCow has joined #ruby
trevortwining has joined #ruby
snorkdude has joined #ruby
<mklappstuhl>
heftig, ok, got it. Any advice then how to return the file contents and maybe the original filename? (I described the original problem above)
<mklappstuhl>
I basically want a method that returns one specific file which is inside the zip file so that this file can be saved elsewhere
chimkan has quit [Quit: chimkan]
<heftig>
don't you already know the name?
<heftig>
reading from the input stream will get you the contents
axl_ has quit [Read error: Connection reset by peer]
Goles has joined #ruby
machty has quit [Quit: machty]
fourcolors has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
Michael_ has joined #ruby
Goles_ has quit [Ping timeout: 246 seconds]
axl_ has joined #ruby
<mklappstuhl>
yeah but for saving the file somewhere later on the file name would be good to know the right suffix... at least easier than deriving it from the content I guess
chimkan_ has joined #ruby
buibex has joined #ruby
dagnachew has quit [Quit: Leaving]
Goles_ has joined #ruby
jds_ has joined #ruby
fir_ed has joined #ruby
jlast has quit [Remote host closed the connection]
ChampS666 has quit [Ping timeout: 255 seconds]
Guest19599 has quit [Quit: Leaving]
trevortwining has quit [Quit: trevortwining]
Goles_ has quit [Read error: Connection reset by peer]
Goles has quit [Ping timeout: 245 seconds]
Michael_ has quit [Remote host closed the connection]
emptyflask has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 252 seconds]
jds_ has quit [Ping timeout: 260 seconds]
lolcathost has joined #ruby
lolcathost has quit [Client Quit]
Michael_ has quit [Remote host closed the connection]
Goles_ has quit [Ping timeout: 260 seconds]
kolbe has joined #ruby
g-ram has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<mklappstuhl>
heftig, any advice? :)
<heftig>
mklappstuhl: what are you missing?
greenarrow has quit [Quit: IRC is just multiplayer notepad]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
<kolbe>
is this a reasonable place to ask about Active Record? I'm wondering if there is some way to set a default query timeout (JDBC Statement.setQueryTimeout()) since afaict it's not possible to access the Statement object used by Active Record to do this myself
<kolbe>
hm perhaps #RubyOnRails would be a better channel for this question!
<shevy>
kolbe dont think many people here know active record well
<atmosx>
kolbe: you can ask here for starters and try #rails also
<shevy>
I for example dont know anything about it so I could not help
<mklappstuhl>
heftig, for saving the file somewhere later on the file name would be good to know the right suffix... at least easier than deriving it from the content I guess
<atmosx>
I know it has something to do with rails and they it interacts with mysql (or other db)
<atmosx>
do I win a cookie?
<kolbe>
atmosx: i would gladly give you a cookie!
<shevy>
you win one night with queen merkel from germany!
<atmosx>
nah, I don't like her
eroc has quit [Quit: eroc]
<heftig>
mklappstuhl: what file name?
<atmosx>
can I pick another German girl? There are so many cute out there
keyvan has quit [Read error: Operation timed out]
<mklappstuhl>
heftig, the file name of the file I would be able to access if I simply unzip the archive
<heftig>
mklappstuhl: it can contain many files.
<mklappstuhl>
yes, but as I said I want to give access to one specific file (an image in that case)
<heftig>
so you need to know the name of that file
<shevy>
atmosx no you must pick the ugliest ones, I am sorry :(
<mklappstuhl>
I know that
<heftig>
then what's the problem?
tbrock has quit [Quit: Computer has gone to sleep.]
otters has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]