Aswebb_ has quit [Remote host closed the connection]
sriehl has joined #ruby
predator117 has quit [Ping timeout: 250 seconds]
<sohrab>
qua: it depends on who you ask, but for me its when i run out of ideas. if it's 1 minute then it's one minute. sometimes it's 3 days
workmad3 has quit [Ping timeout: 272 seconds]
ikeike443 has quit [Ping timeout: 252 seconds]
<qua>
sohrab> I guess I lack to training to determine when I've exhausted all of the options I can think of
<qua>
er
<qua>
lack *the
RandyT has joined #ruby
zachrab has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
robustus has quit [Ping timeout: 255 seconds]
dopie has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
aef has quit [Remote host closed the connection]
aef has joined #ruby
robustus|Off has joined #ruby
aef has quit [Remote host closed the connection]
robustus|Off is now known as robustus
aef has joined #ruby
lkba_ has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 255 seconds]
<Devoth>
Is it possible to access a key-value pair in hash by their number?
ponga has joined #ruby
threh has joined #ruby
<apeiros>
Devoth: yes, but you should not.
<apeiros>
hashes are not made for positional access.
nhhagen has joined #ruby
<Devoth>
apeiros: I know, that's why I'm questioning a bit my app's logic
<Devoth>
I have this hash: @@patches = { :header_row => "Header rows", :general_row => "General (break) rows", :time_cell => "Time cells" }
<heftig>
apeiros: out of curiosity, I think the current impl is a linked list with a hash table?
<Devoth>
that I want to present to user as options to choose from, and I want them to just respond with number (instead of writing more)
<apeiros>
heftig: yes, the key/value pairs are in a double linked list
ponga has quit [Ping timeout: 248 seconds]
<apeiros>
heftig: that allows to keep O(1) insertion/deletion
soulcake has quit [Quit: Quack.]
<apeiros>
and O(1) key-lookup of course
<heftig>
well, amortized O(1)
<apeiros>
yes
basiclaser has quit [Quit: Connection closed for inactivity]
<Devoth>
apeiros: that's why I wanted to list hash numbers in the first place
soulcake has joined #ruby
<apeiros>
Devoth: with such a small hash it probably won't matter. one way would be @@patches.to_a[index]
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Devoth>
otherwise I would have to store numbers in the hash (which would probably be silly)
<Devoth>
:)
<Devoth>
thank you :)
<heftig>
or use @@patches.keys for the duration of the prompt
zubov has quit [Quit: Leaving]
Fingel has joined #ruby
<Devoth>
heftig: thanks
dopie has quit [Quit: This computer has gone to sleep]
nhhagen has quit [Ping timeout: 252 seconds]
<heftig>
Devoth: is there a reason you need to have it as a hash at all?
jwinder has quit [Ping timeout: 276 seconds]
<heftig>
If you have an array of arrays [[:header_row, "Header rows"], ...] you can use Array#assoc to look up by first item
<Devoth>
heftig: I will do a lot of things in various places depending on the option chosen, probably including some switch cases, etc and I prefer to pass or react to symbol than number
swgillespie has joined #ruby
<heftig>
with a three-item array it might even be faster than a hash
<heftig>
(not that it would matter much, anyway)
diegoviola has quit [Remote host closed the connection]
<Devoth>
heftig: :)
jottr has quit [Ping timeout: 264 seconds]
Soda has quit [Remote host closed the connection]
freerobby1 has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa>
shevy: like utf-8, the most commonly used one on the internet
<wasamasa>
shevy: because it's compatible with ascii
lukequaint has joined #ruby
<shevy>
UTF-16 is better
<shevy>
it has a higher number
<jhass>
UTF-32 you mean
<wasamasa>
I bet that's what the java folks thought
<jhass>
but that's wasteful
alex88 has quit [Remote host closed the connection]
<shevy>
oh god
<shevy>
java
<shevy>
it's now ranked #1 on TIOBE
<jhass>
UTF-8 can represent all of it
<jhass>
UTF-16 can only represent half
<shevy>
are you saying, the higher the number, the worse it gets?
<wasamasa>
s/worse/more wasteful/
<jhass>
UTF-8 is the most efficient encoding, it can represent all unicode copdepoints while using the fewest bytes per codepoint possible
<jhass>
UTF-16 always uses two bytes, UTF-32 always uses four bytes
<wasamasa>
it's a bit slower/harder to deal with
gazay has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
<wasamasa>
or so the argumentation goes in favour of using utf-16/32 in language implementations for internal encoding
quimrstorres has quit [Remote host closed the connection]
sagittarian has quit [Ping timeout: 252 seconds]
towski_ has joined #ruby
<jhass>
well, you don't really use UTF-16 or UTF-32 internally either, you'd use an array of unsigned 16/32 bit codepoints instead of storing the string encoded in a byte buffer
aryaching has quit [Ping timeout: 240 seconds]
<jhass>
it's a tradeoff between memory footprint and access efficiency, yeah
gazay has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<jhass>
shevy: you didn't answer my question though, why not use Unicode/UTF-8 as default?
mrmargolis has quit [Ping timeout: 272 seconds]
<shevy>
jhass I can't
<jhass>
why not?
<shevy>
I'd have to change everything including my editor
<toertore>
oh no
DEA7TH has joined #ruby
towski_ has quit [Ping timeout: 272 seconds]
<jhass>
I don't even investigate if it's worth using a software if it doesn't have UTF-8 support these days
<toertore>
i didn't have to change anything to switch to utf8
DerisiveLogic has joined #ruby
<shevy>
toertore I guess you don't use german umlauts
DerisiveLogic has quit [Remote host closed the connection]
<jhass>
I do, lots
gemini_cricket_ has joined #ruby
DerisiveLogic has joined #ruby
<toertore>
i was being sarcastic
<shevy>
jhass yeah but you also use sublime
<toertore>
switch = change
aryaching has joined #ruby
<jhass>
shevy: all editors I ever touched supported UTF-8
<elaptics>
jokke: I just tried abbreviations but didn't seem to do anything...
ponga has quit [Remote host closed the connection]
<jokke>
elaptics: so what exactly did you do?
edwinvdgraaf has quit [Remote host closed the connection]
<jokke>
:Abolish widht width
<jokke>
should correct widht to width when you write
<elaptics>
I tried normal vim abbreviations and the abolish commands as per readme - just running them in normal and then switched to insert and wrote the incorrect words but they didn't correct themselves
<jokke>
you need to add at least one char after widht
bkxd has quit [Ping timeout: 248 seconds]
<elaptics>
I did
<jokke>
and nothing happened?
<jokke>
that's weird. using :Abolish works for me
<jokke>
just not in vimrc
<elaptics>
just checking I don't have something preventing in my vimrc
iotouch has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
<elaptics>
works if I use something other than space
jimms has quit [Read error: Connection reset by peer]
jimms_ has joined #ruby
<jokke>
ok... weird
<jokke>
works with space here
<jokke>
so what if you try defining it in your vimrc?
<elaptics>
it maybe something to do with autopairing
<jokke>
hm ok
sevenseacat has joined #ruby
<elaptics>
ah, yeah it was an autoclose plugin causing it
ndrei has quit [Ping timeout: 256 seconds]
<elaptics>
but now that I've removed it Abolish doesn't work from my vimrc only if I add it as a command directly
PaulCapestany has quit [Ping timeout: 256 seconds]
Stalkr^ has quit [Quit: Leaving...]
<elaptics>
jokke: Abolish! works for me
<jokke>
oooh
<jokke>
cool
<jokke>
thanks!
<elaptics>
jokke: also thanks to you - I think I'm now going to start using abbreviations :)
<jokke>
elaptics: win win! :)
edwinvdgraaf has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
<shevy>
whoa
<shevy>
a double win
<shevy>
we are getting very excited here
lxsameer_ has quit [Quit: Leaving]
freddie76 has joined #ruby
<freddie76>
ciao
<freddie76>
!list
freddie76 has left #ruby [#ruby]
baash05 has joined #ruby
thumpba has joined #ruby
TDJACR has quit [Ping timeout: 272 seconds]
lidenskap has joined #ruby
Soda has joined #ruby
jimms_ has quit [Remote host closed the connection]
thumpba has quit [Ping timeout: 240 seconds]
TDJACR has joined #ruby
Brozo has joined #ruby
lidenskap has quit [Ping timeout: 264 seconds]
blizzy has joined #ruby
JDiPierro has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
parduse has quit [Remote host closed the connection]
ponga has joined #ruby
Brozo has quit [Ping timeout: 252 seconds]
_blizzy_ has quit [Ping timeout: 244 seconds]
PaulCapestany has joined #ruby
centrx has joined #ruby
Matachines has joined #ruby
baash05 has quit [Ping timeout: 240 seconds]
parduse has joined #ruby
PaulCape_ has quit [Ping timeout: 255 seconds]
Matachines has quit [Client Quit]
jimms has joined #ruby
RegulationD has joined #ruby
platosha has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
yxhuvud has quit [Remote host closed the connection]
platosha has joined #ruby
tubuliferous has joined #ruby
juanpablo___ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Rollabunna has quit [Quit: Leaving...]
tkuchiki has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
doodlehaus has joined #ruby
claw has quit [Ping timeout: 244 seconds]
vikaton has joined #ruby
lesnik_ has quit [Quit: leaving]
PaulCape_ has joined #ruby
juanpablo___ has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby
User458764 has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
quimrstorres has joined #ruby
PaulCapestany has quit [Ping timeout: 244 seconds]
quimrstorres has quit [Remote host closed the connection]
thatslifeson has joined #ruby
Abhijit has joined #ruby
Abhijit has left #ruby [#ruby]
ndrei has joined #ruby
doodlehaus has quit [Remote host closed the connection]
thatslifeson has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
lessless has joined #ruby
zeleiadi has joined #ruby
relix has joined #ruby
claw has joined #ruby
edwinvdgraaf has joined #ruby
zeleiadi has left #ruby [#ruby]
alex88 has joined #ruby
pwattste has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
davedev24_ has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
iotouch has joined #ruby
lfox has joined #ruby
ndrei has joined #ruby
alex88 has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
mtakkman has joined #ruby
iamninja_ has joined #ruby
rocknrollmarc has joined #ruby
mistergibson has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 276 seconds]
ndrei has joined #ruby
mgberlin has joined #ruby
mistergibson has joined #ruby
blizzy is now known as _blizzy_
serivich has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
quimrstorres has joined #ruby
dfinninger has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
serivich has joined #ruby
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
dfinninger has joined #ruby
workmad3 has joined #ruby
dfinninger has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
dfinninger has joined #ruby
mlev has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 252 seconds]
DerisiveLogic has quit [Ping timeout: 256 seconds]
pwattste has quit [Ping timeout: 245 seconds]
serivich has quit [Ping timeout: 255 seconds]
dfinninger has quit [Ping timeout: 244 seconds]
lolmaus has joined #ruby
Pharaoh2 has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
ascarter has joined #ruby
doertedev has joined #ruby
ascarter has quit [Client Quit]
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
dcarper has joined #ruby
ascarter has joined #ruby
iotouch has quit [Quit: 离开]
mlev has joined #ruby
serivich has joined #ruby
shellfu has joined #ruby
yxhuvud has joined #ruby
PaulCapestany has joined #ruby
greenbagels has joined #ruby
lukequaint has quit [Quit: Bye!]
PaulCape_ has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
shellfu has quit [Remote host closed the connection]
fbidu has joined #ruby
thatslifeson has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 264 seconds]
ryan___ has joined #ruby
dfinninger has joined #ruby
mitchellhenke has joined #ruby
thatslifeson has quit [Ping timeout: 255 seconds]
dfinninger has quit [Remote host closed the connection]
fbidu has quit [Ping timeout: 265 seconds]
ghr has quit [Ping timeout: 256 seconds]
momomomomo has joined #ruby
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
mlev has quit [Read error: Connection reset by peer]
Brozo has joined #ruby
fred1807 has quit [Ping timeout: 248 seconds]
shellfu has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
alex88 has joined #ruby
Brozo has quit [Ping timeout: 256 seconds]
gagrio has quit [Ping timeout: 245 seconds]
PaulCape_ has joined #ruby
ghr has joined #ruby
PaulCapestany has quit [Ping timeout: 248 seconds]
Rollabunna has joined #ruby
Matachines has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
gaussblurinc1 has quit [Quit: Leaving.]
alex88 has quit [Ping timeout: 256 seconds]
sankaber has joined #ruby
perrier has quit [Remote host closed the connection]
audy has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
dfinninger has joined #ruby
fbidu has joined #ruby
joast has quit [Quit: Leaving.]
sankaber has quit [Ping timeout: 250 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
mlev has joined #ruby
ascarter has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
jhass has quit [Quit: Bye]
centrx has quit [Ping timeout: 276 seconds]
crowell_ has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
jhass has joined #ruby
fbidu has quit [Ping timeout: 245 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
crowell has quit [Remote host closed the connection]
ndrei has joined #ruby
crowell_ is now known as crowell
plutonic has quit [Quit: plutonic]
crowell has quit [Changing host]
crowell has joined #ruby
iasoon has quit [Ping timeout: 256 seconds]
dfinninger has quit [Read error: Connection reset by peer]
FernandoBasso has joined #ruby
crowell has quit [Remote host closed the connection]
dfinninger has joined #ruby
crowell has joined #ruby
jottr has joined #ruby
doertedev has quit [Ping timeout: 250 seconds]
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yaw has joined #ruby
crowell_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
lfox has joined #ruby
JDiPierro has quit [Remote host closed the connection]
jwinder has joined #ruby
tubuliferous has joined #ruby
Mon_Ouie has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
idealexit has joined #ruby
centrx has joined #ruby
juanpablo___ has joined #ruby
PaulCapestany has joined #ruby
doertedev has joined #ruby
lfox has quit [Ping timeout: 256 seconds]
pauly_oc has joined #ruby
OrbitalKitten has joined #ruby
tubuliferous has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
juanpablo___ has quit [Ping timeout: 240 seconds]
PaulCape_ has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
roshanavand1 has quit [Ping timeout: 252 seconds]
pauly_oc has quit [Client Quit]
dfinninger has joined #ruby
joast has joined #ruby
dfinninger has quit [Remote host closed the connection]
SouL_|_ has joined #ruby
fbidu has joined #ruby
roshanavand has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 252 seconds]
ki0 has joined #ruby
thecoolguy has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
bruno- is now known as Guest23900
wwwBUKOLAYcom has joined #ruby
crowell has quit [Remote host closed the connection]
havenwood has joined #ruby
crowell has joined #ruby
crowell has quit [Changing host]
crowell has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
Fingel has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
bruno-_ has joined #ruby
Guest23900 has quit [Ping timeout: 244 seconds]
<pipework>
elaptics: As in iabbrev and abbrev?
freerobby has quit [Quit: Leaving.]
crowell has quit [Remote host closed the connection]
bruno-_ has quit [Ping timeout: 244 seconds]
<elaptics>
pipework: yes, that and abolish's extras
bruno-_ has joined #ruby
ki0 has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 252 seconds]
zorak8 has joined #ruby
dfinninger has joined #ruby
shellfu has quit [Remote host closed the connection]
Channel6 has joined #ruby
quimrstorres has joined #ruby
gaussblurinc1 has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
PaulCape_ has joined #ruby
dfinninger has joined #ruby
Filete has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
<duderonomy>
interesting... Glue is like MPW shell, reinvented
PaulCapestany has quit [Ping timeout: 256 seconds]
dfinninger has quit [Read error: Connection reset by peer]
Brozo has joined #ruby
dfinninger has joined #ruby
PaulCape_ has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 256 seconds]
rdark has quit [Quit: leaving]
rdark has joined #ruby
mlev has quit [Read error: Connection reset by peer]
PaulCapestany has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
shevy has joined #ruby
lolmaus has joined #ruby
sagittarian has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
Brozo has quit [Ping timeout: 248 seconds]
doodlehaus has joined #ruby
gkra_ has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dcarper has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus_ has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ki0 has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
icebourg has joined #ruby
mikecmpbll has joined #ruby
User458764 has joined #ruby
OrbitalKitten has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
threh has joined #ruby
sagittarian has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
ascarter has joined #ruby
blizzy has joined #ruby
<hanmac>
shevy: the cats i have at home are very talkactive. one was at the door ... i look down, the cat does look up ... i ask "do you want out?" the cat says: "ya", i ask: "did you ask my mother?" the cat says: "ya", and i ask again: "what did she say?" and the cat says: "na" ;P
doodlehaus has quit [Remote host closed the connection]
dfinninger has quit [Read error: Connection reset by peer]
greenbagels_ has joined #ruby
<shevy>
yeah
<shevy>
cats talk quite a lot
<cats>
I do talk a bit
<shevy>
lol what the...
balazs_ has joined #ruby
dfinninger has joined #ruby
balazs_ has quit [Remote host closed the connection]
platzhirsch has quit [Quit: Leaving.]
PaulCape_ has joined #ruby
<shevy>
there is also a catsoup here
balazs_ has joined #ruby
<hanmac>
shevy one of the cats did call my mother "mama", is she my brother now? ;P
mlev has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
thatslifeson has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
jimms has quit [Read error: Connection reset by peer]
<shevy>
nah
<shevy>
too much fur
<shevy>
too small
<shevy>
and a big long tail
jimms has joined #ruby
<cats>
haha
greenbagels has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
PaulCapestany has quit [Ping timeout: 256 seconds]
dfinninger has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
jimms has quit [Read error: Connection reset by peer]
dfinninger has quit [Read error: Connection reset by peer]
jimms has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
ki0 has quit [Remote host closed the connection]
dfinninger has joined #ruby
juanpablo___ has joined #ruby
greenbagels_ has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
ki0 has joined #ruby
hmsimha has joined #ruby
dfinninger has joined #ruby
juanpablo___ has quit [Ping timeout: 252 seconds]
ki0 has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ki0 has joined #ruby
jimms has quit [Remote host closed the connection]
doertedev has quit [Quit: Lost terminal]
relix has joined #ruby
ghr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dfinninger has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
dfinninger has joined #ruby
griffindy has joined #ruby
fred1807 has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
jwinder has quit [Ping timeout: 272 seconds]
PaulCape_ has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
gaussblurinc1 has joined #ruby
PaulCapestany has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
FernandoBasso has quit [Ping timeout: 255 seconds]
dfinninger has quit [Read error: Connection reset by peer]
dorei has joined #ruby
FernandoBasso has joined #ruby
<shevy>
hanmac why do you we talk about cats
<shevy>
more than ruby
dfinninger has joined #ruby
towski_ has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
FernandoBasso has quit [Read error: Connection reset by peer]
towski_ has quit [Read error: Connection reset by peer]
<shevy>
that should have been "why do we"
thoughnut has joined #ruby
<shevy>
my brain is having another day off again
towski_ has joined #ruby
<shevy>
I am autogenerating SQL statements through ruby right now :(
<thoughnut>
what's the basics for ruby?
<shevy>
depends. you know another programming language already?
<shevy>
thoughnut though, if you actually know another programming language quite well, then you should be able to easily transition into ruby from zero as you go, just using online resources alone, the ruby webforum, the IRC channel here or on #ruby-lang
lidenskap has joined #ruby
<thoughnut>
is #ruby-lang only for ruby lang?\
<shevy>
when I was new to ruby, I bought the pickaxe 2 I think it was it. it was very good. I lateron bought pickaxe 3 too but it was not as useful to me anymore, so I was unsure whether that investment was worth the second time. first time was worth it though
<shevy>
#ruby-lang is the "official" channel
<shevy>
we are the liberal rebels here
ghr has quit [Read error: Connection reset by peer]
garethrees has joined #ruby
towski_ has quit [Ping timeout: 272 seconds]
<shevy>
problem is, some people are only on #ruby, and some only on #ruby-lang, and vice versa. for instance, chris2 and manveru are only on #ruby
<thoughnut>
so I'm in the r8 place
<shevy>
and drbrain
<shevy>
dunno
<shevy>
those were quite influential people
<shevy>
check out #ruby-lang at any rate :D
<thoughnut>
yea for sure
<thoughnut>
:D
<thoughnut>
no thx I'll keep my moneye for now p:
<shevy>
chris2 wrote rack, drbrain was one of the ones that got rubygems started (I think), manveru wrote ramaze (which I think has sort of become inactive when rack + sinatra became more popular)
<thoughnut>
how can I save info on irssi?/
garethrees has quit [Client Quit]
<hanmac>
shevy hm is #ruby-lang more like the republic or more like the imperion? ;P
<thoughnut>
I use this but I'm not used to copy-psting
<shevy>
hanmac dunno. we are more in numbers here
<thoughnut>
so it's republic :P
<shevy>
I guess
<hanmac>
shevy like the clone troops or the droids? ;P
<shevy>
jhass is the rebel leader
<thoughnut>
those are quite well with literals
<shevy>
he suggested to merge both channels
<thoughnut>
not to sound very arrogant
<shevy>
now he is an enemy on #ruby-lang
<thoughnut>
it's impossible
shredding has joined #ruby
<thoughnut>
jhass is a genius he knows what to do, but that's impossible
<shevy>
hehe
<thoughnut>
:D ofc
serivich has quit [Ping timeout: 240 seconds]
<shevy>
perhaps if matz would decide on something
<thoughnut>
let me see that
<shevy>
the thing is, #ruby as name is more logical. it's like with #python
musashi1 has quit [Ping timeout: 250 seconds]
<hanmac>
thoughnut: about learning ruby, did you already have exp in other programming languages?
<shevy>
yeah he wrote that
PaulCapestany has joined #ruby
Rollabunna has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mgberlin has quit [Remote host closed the connection]
jheg has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
<thoughnut>
I'm looking for that article now
ukk has quit [Quit: leaving]
<thoughnut>
brb
OrbitalKitten has joined #ruby
fbidu has quit [Quit: Leaving]
aryaching has quit []
tubuliferous has joined #ruby
The_Phoenix has quit [Ping timeout: 244 seconds]
<thoughnut>
cr
<thoughnut>
crap the book is too expensive
Brozo has joined #ruby
The_Phoenix has joined #ruby
<shevy>
use online resources!
<xxneolithicxx>
which book
PaulCape_ has joined #ruby
<shevy>
I collected a lot of information from different areas
<shevy>
after 2 or 3 weeks you'll have a lot of knowledge stored locally thoughnut
<shevy>
I stored those things in german though - my brain is much faster reading german still ... :\
<thoughnut>
however it works if you get the idea that One of the design philosophies in the Python community is providing one and only one way to do things.
<thoughnut>
shevy mine too :\
<shevy>
\o/
tubuliferous has quit [Ping timeout: 248 seconds]
<thoughnut>
gotta go take a coffee break, my mind goes creepy when I'm having it too fast
PaulCapestany has quit [Ping timeout: 256 seconds]
<thoughnut>
\o/
<shevy>
well ruby has a similar philosophy in one regards
<shevy>
you can pick "the best" philosophy
<thoughnut>
yes ofc
<shevy>
and stick to it
<shevy>
the more-than-one-way is a focus on added flexibility
<thoughnut>
the best philosophy is to have it quick and fast
<gayfag>
the english language is german for stupid people
<xxneolithicxx>
lol
<apeiros>
!kick gayfag we know who you are
gayfag was kicked from #ruby by ruboto [we know who you are]
<apeiros>
first! sorry havenwood
<havenwood>
apeiros: Fast on the draw!
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kyrylo has quit [Ping timeout: 250 seconds]
Matachines has joined #ruby
ni291187 has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
* xxneolithicxx
makes mental note to stear clear of the +o lol
shuber_ has joined #ruby
jheg has quit [Ping timeout: 256 seconds]
tonyhb has quit [Ping timeout: 245 seconds]
<adaedra>
well, he's right on some point, english and german have some common things
FernandoBasso has joined #ruby
yqt has joined #ruby
ni291187 has quit [Remote host closed the connection]
balazs_ has quit [Remote host closed the connection]
<hfp>
Hi all, I have a gem and I setup a :info rake task. But when I go into the gem's path and type `rake my_gem:info`, I get `Don't know how to build task 'my_plugin:info'`. Where do I start my investigation?
<xxneolithicxx>
that could be said of most languages though especially if they come from a latin base
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
hfp: your task is toplevel :info?
<apeiros>
then it's just `rake info`, not `rake my_gem:info`
<adaedra>
xxneolithicxx: go deeper: Germanic languages :)
<hfp>
apeiros: well I have `tasks do namespace :my_gem do ...`
<apeiros>
tasks do?
<hfp>
so I'm assuming it's not top level?
<apeiros>
hfp: stop the riddling and gist the code.
<adaedra>
hfp: you can see available tasks with rake -T
<apeiros>
and that's also a good idea :)
Morkel has joined #ruby
<jhass>
-aT for those that have no description too
<havenwood>
blizzy: many ways to say the same thing!
<pontiki>
blizzy: there's one for Java that's too funny
<blizzy>
havenwood, yep.
juanpablo___ has joined #ruby
<blizzy>
pontiki, FizzBuzzEnterpriseEdition?
<shevy>
pontiki well it depends... I remember, in university lecture, when it was early, and warm in the hall, and many people were, I sort of became dizzy and often fell asleep when the topic was boring. then I would wake up when the others were making noise again, e.g. when they were leaving the hall
Musashi007 has joined #ruby
<shevy>
it was some botany/plant geographic lecture back then
<pontiki>
blizzy: that's the one!! :D
<blizzy>
:D
swgillespie has joined #ruby
RegulationD has joined #ruby
<pontiki>
shevy: that doesn't too torturous at all! :)
<shevy>
I think it depends immensely on the topic itself
<shevy>
biochemistry lectures were always more interesting, but I remember we had tiny wooden chairs that made squeaky and cranky noises at the tiniest movement
<shevy>
was some 1880 lecture hall style :P
PaulCape_ has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
nfk|laptop has joined #ruby
nfk has quit [Remote host closed the connection]
nfk has joined #ruby
dcarper has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nahtnam has quit [Quit: Connection closed for inactivity]
juanpablo___ has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Client Quit]
RegulationD has quit [Ping timeout: 250 seconds]
jheg has quit [Quit: jheg]
dvlwrk has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
C1V0 has joined #ruby
bluOxigen has joined #ruby
blueOxigen has joined #ruby
relix has joined #ruby
relix has quit [Client Quit]
<ght>
Question: I have a Date.parse() call in my method that creates a Date object from a string. Of course, if the string doesn't match the expected format, Date.parse() throws an exception.
<ght>
Is there any way to verify whether or not the string is of a valid format prior to the Date.parse() call, or should I enclose the Date.parse() call in begin / rescue block to handle the potential exception?
mostlybadfly has joined #ruby
PaulCape_ has joined #ruby
Musashi007 has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
User458764 has joined #ruby
PaulCapestany has quit [Ping timeout: 256 seconds]
dfinninger has quit [Remote host closed the connection]
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dreinull75 has joined #ruby
x1337807x has joined #ruby
<dorei>
in a str.sub(a, b), what should be the vaule of a if I dont want any substitution to happen? something like /$^/ maybe
dopie has quit [Quit: This computer has gone to sleep]
tomphp has joined #ruby
<ytti>
i'm almost certain you're doing something wrong earlier if this is requirement
<ytti>
but yeah /$^/ sounds like an impossible regexp
x1337807x has quit [Client Quit]
blizzy is now known as _blizzy_
<pontiki>
i don't think that would work, dorei
thoughnut has quit [Quit: leaving]
x1337807x has joined #ruby
hollywood has quit [Quit: Leaving]
<pontiki>
well, i guess you can make such a RE
Mon_Ouie has quit [Ping timeout: 244 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has quit [Client Quit]
<pontiki>
ght: personally, i'd just rescue from the parse
<pontiki>
ght: otherwise it seems you'd have to write all the same code parse does to figure out if it's valid to pass through to parse
<ght>
Yeah, that's what I'm doing, thank you.
nobitanobi has joined #ruby
<ght>
I just used irb and tested Date.parse() with various invalid parameter types to see what all execptions are thrown and wrote a begin / rescue block around it.
enebo has joined #ruby
<pontiki>
most common i've encountered is when a date is entered in north american format
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby
<ght>
Well these should be formatted correctly, they're from a form attached to a rails model / table.
<ght>
I'm using a seperate ruby app to interact with them, I'm just being anal.
<pontiki>
are they coming from a database?
<ght>
Yes.
<pontiki>
then they should be good
<ght>
It's fine, all is good, thank you.
<ght>
Yes.
jeramy_s has joined #ruby
tomphp has joined #ruby
oetjenj has joined #ruby
Brozo has quit [Remote host closed the connection]
stef204 has joined #ruby
nfk|laptop has quit [Quit: yawn]
Joufflu has quit [Read error: Connection reset by peer]
FernandoBasso has quit [Quit: leaving]
PaulCapestany has joined #ruby
last_staff has joined #ruby
PaulCape_ has quit [Ping timeout: 244 seconds]
thatslifeson has quit [Ping timeout: 244 seconds]
PaulCapestany has quit [Max SendQ exceeded]
tubuliferous has joined #ruby
jasonwebster has joined #ruby
PaulCapestany has joined #ruby
serivich has joined #ruby
jottr has joined #ruby
jasonwebster has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
PaulCapestany has quit [Max SendQ exceeded]
tubuliferous has quit [Ping timeout: 252 seconds]
thatslifeson has joined #ruby
shuber_ has quit [Remote host closed the connection]
shuber_ has joined #ruby
PaulCapestany has joined #ruby
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diegoviola is now known as Guest30877
diego2 is now known as diegoviola
Musashi007 has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
Guest30877 has quit [Ping timeout: 248 seconds]
shinydog has joined #ruby
Rickmasta has joined #ruby
dcarper has quit []
QualityAddict has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
towski_ has joined #ruby
ddarkpassenger has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
shinydog is now known as almostworking
almostworking has left #ruby ["Leaving"]
yaw has joined #ruby
momon has joined #ruby
mrmargolis has quit [Remote host closed the connection]
towski__ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
elaptics is now known as elaptics_away
<momon>
hello
towski_ has quit [Ping timeout: 256 seconds]
serivich has quit [Ping timeout: 272 seconds]
<apeiros>
hi momon
<momon>
how to convert number to an array like 5 to ["1", "2", "3", "4", "5"]
decoponio has quit [Quit: Leaving...]
PaulCape_ has joined #ruby
<jhass>
Array.new(5) {|i| (i+1).to_s }, but depending on why you want that array, you may not even need it