Virunga has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 264 seconds]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
idkazuma has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
devdazed has joined #ruby
pepper_chico has joined #ruby
mercwithamouth has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
adeponte has quit [Read error: Connection reset by peer]
apeiros_ has quit [Remote host closed the connection]
adeponte has joined #ruby
wallclockbuilder has quit [Remote host closed the connection]
bobdobbs` has quit [Ping timeout: 264 seconds]
wallclockbuilder has joined #ruby
wallclockbuilder has quit [Read error: Connection reset by peer]
wallclockbuilder has joined #ruby
guns has joined #ruby
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
mritr_ has quit [Ping timeout: 240 seconds]
<Spooner>
thecodethinker, Easier to bind C, but both work. You could use Rubygame if you are keen on SDL, though Gosu is another option (and a less horrid API and supported).
<Spooner>
thecodethinker, FFI is the easy way to bind though.
yshh has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 255 seconds]
wallerdev_ has joined #ruby
brandon|_ has joined #ruby
thecodethinker has quit [Ping timeout: 252 seconds]
wedgeV_ has joined #ruby
one` has joined #ruby
backjlack_ has joined #ruby
kenichi_ has joined #ruby
marr123 has joined #ruby
akam__ has joined #ruby
tealmage has joined #ruby
monban_ has joined #ruby
marwinis1 has joined #ruby
noodl_ has joined #ruby
vaicine_ has joined #ruby
new299_ has joined #ruby
prime- has joined #ruby
chiel_ has joined #ruby
Cork- has joined #ruby
mockra has joined #ruby
Stilo has joined #ruby
zmanfx has joined #ruby
charliesome has joined #ruby
csexton- has joined #ruby
butblack has joined #ruby
sduckett_ has joined #ruby
tealmage has quit [Ping timeout: 260 seconds]
cupakrom- has joined #ruby
mneorr has joined #ruby
lewix has joined #ruby
prime has quit [*.net *.split]
otters has quit [*.net *.split]
marr has quit [*.net *.split]
one has quit [*.net *.split]
THEDD has quit [*.net *.split]
eAlchemist has quit [*.net *.split]
wallerdev has quit [*.net *.split]
backjlack has quit [*.net *.split]
cyberflux has quit [*.net *.split]
tomzx_mac has quit [*.net *.split]
aLeSD_ has quit [*.net *.split]
chiel has quit [*.net *.split]
naquad has quit [*.net *.split]
lmx has quit [*.net *.split]
brandon|work has quit [*.net *.split]
Evixion has quit [*.net *.split]
marwinism has quit [*.net *.split]
lupine has quit [*.net *.split]
asobrasil has quit [*.net *.split]
steeve has quit [*.net *.split]
wedgeV has quit [*.net *.split]
akam_ has quit [*.net *.split]
new299 has quit [*.net *.split]
cupakromer has quit [*.net *.split]
Cork has quit [*.net *.split]
vaicine has quit [*.net *.split]
wting has quit [*.net *.split]
u- has quit [*.net *.split]
csexton has quit [*.net *.split]
andredieb has quit [*.net *.split]
klaas has quit [*.net *.split]
kenichi has quit [*.net *.split]
monban has quit [*.net *.split]
noodl has quit [*.net *.split]
goraxe has quit [*.net *.split]
csexton- is now known as csexton
wallerdev_ is now known as wallerdev
vereteran has joined #ruby
THEDD has joined #ruby
wting has joined #ruby
sduckett has quit [Ping timeout: 250 seconds]
mockra has quit [Ping timeout: 245 seconds]
techlife has quit [Ping timeout: 256 seconds]
wallclockbuilder has quit [Ping timeout: 264 seconds]
lupine has joined #ruby
sduckett has joined #ruby
sam113101 has joined #ruby
lewix_ has joined #ruby
zaltekk has left #ruby [#ruby]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
sduckett_ has quit [Ping timeout: 250 seconds]
IceDragon has joined #ruby
hogeo has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
goraxe has joined #ruby
aLeSD_ has joined #ruby
Takehiro has joined #ruby
jjbohn has quit [Quit: Leaving...]
steeve has joined #ruby
lmx has joined #ruby
otters has joined #ruby
lewix has quit [Ping timeout: 276 seconds]
asobrasil has joined #ruby
techlife has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
butblack has quit [Quit: butblack]
mritr_ has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
rubarlion has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
apeiros_ has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
jeremywrowe has quit [Quit: leaving]
jeremywrowe has joined #ruby
jeremywrowe has quit [Changing host]
jeremywrowe has joined #ruby
pepper_chico has joined #ruby
THEDD has quit []
guns has quit [Quit: guns]
mercwithamouth has joined #ruby
sleetdro_ has quit [Remote host closed the connection]
nari has joined #ruby
predator217 has quit [Read error: Operation timed out]
pen has joined #ruby
mritr_ has quit [Ping timeout: 240 seconds]
predator117 has joined #ruby
sambao21 has quit [Ping timeout: 248 seconds]
TheFuzzball has joined #ruby
danneu has quit [Ping timeout: 250 seconds]
butblack has joined #ruby
apeiros_ has quit [Ping timeout: 245 seconds]
niklasb has quit [Ping timeout: 252 seconds]
statarb3 has quit [Ping timeout: 245 seconds]
DrCode has quit [Ping timeout: 276 seconds]
taoru has joined #ruby
taoru has quit [Remote host closed the connection]
BRMatt has quit [Ping timeout: 276 seconds]
yshh has joined #ruby
kofno_ has quit [Remote host closed the connection]
elux has joined #ruby
dallasm has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
TheFuzzball has joined #ruby
DrCode has joined #ruby
nari has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
b055cad is now known as madb055
lewix_ has quit [Ping timeout: 252 seconds]
trcm has joined #ruby
Spooner has quit [Remote host closed the connection]
pdamer has joined #ruby
dhruvasagar has joined #ruby
marr123 has quit []
Davey has joined #ruby
adkron has joined #ruby
adkron_ has joined #ruby
Davey has quit [Client Quit]
mritr_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
cableray has joined #ruby
mkillebr1w is now known as mkillebrew
nomenkun has joined #ruby
apok has joined #ruby
sebastianb has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
jamesfung14 has joined #ruby
apeiros_ has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
<philcrissman>
tomo`: wait, that assumes you're using rails. If not, you can get that by including ActionView
closer has joined #ruby
carloslopes has quit [Remote host closed the connection]
<tomo`>
philcrissman: I use rails but the version is 3.2.7. I gotta upgrade it.
<tomo`>
thanks!
<philcrissman>
tomo`: np. This method should still be there in 3.2.7. Upgrading is always good, though.
pdamer has joined #ruby
<tomo`>
philcrissman: uhm, really?
<tomo`>
philcrissman: I got this error: NoMethodError: undefined method `number_to_currency' for main:Object
<tomo`>
ah, it is defined in the view helper!
<tomo`>
I was trying it on rails console.
<tomo`>
philcrissman: thanks a lot!
<philcrissman>
tomo`: yes... you can include that helper other places if you want...
idkazuma has quit [Remote host closed the connection]
<tomo`>
philcrissman: thanks!
<MrZYX>
tomo`: update asap, 3.2.7 has security issues
<tomo`>
MrZYX: yeah, I will. thanks a lot for your advice.
<philcrissman>
tomo`: you can always test in the console like this: helper.number_to_currency(123456789) #=> "$123,456,789.00"
Shagane has joined #ruby
<tomo`>
philcrissman: works perfect! thanks a lot! love you!
<philcrissman>
lol
<tomo`>
:)
<philcrissman>
um. thanks.
apeiros_ has quit [Ping timeout: 245 seconds]
<tomo`>
BTW, when will be rails 4.0 release?
Shagane has quit [Client Quit]
<philcrissman>
tomo`: not sure. 4.0.0.beta1 is out.
<MrZYX>
I think they aim sometime before the end of this month? dunno, ask #rubyonrails, follow the release blog (which you should do anyway to get notified about the security issues you still have)
<tomo`>
philcrissman: MrZYX: thanks!
yewton has left #ruby ["Leaving..."]
kornnflake is now known as kornnflake_zzz
kofno has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
cantonic has quit [Quit: cantonic]
tvw has quit []
tomo` has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 276 seconds]
__Big0__ has joined #ruby
philcrissman has quit [Remote host closed the connection]
h4mz1d has joined #ruby
jonathanwallace has quit [Ping timeout: 250 seconds]
Nimsical has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
r4stakWhere has joined #ruby
Es0teric has joined #ruby
r4stakWhere has left #ruby [#ruby]
nfk has quit [Quit: yawn]
sleetdro_ is now known as sleetdrop
MrZYX is now known as MrZYX|off
mockra has joined #ruby
joeycarmello has joined #ruby
kofno has joined #ruby
kofno has quit [Read error: Connection reset by peer]
jurassic has quit [Quit: jurassic]
emmanuelux has quit [Remote host closed the connection]
johnnygoodmancpa has joined #ruby
johnnygoodmancpa has left #ruby [#ruby]
apeiros_ has joined #ruby
heliumsocket has joined #ruby
wallerdev has quit [Quit: wallerdev]
mockra has quit [Ping timeout: 255 seconds]
cantonic has joined #ruby
stopbit has quit [Ping timeout: 276 seconds]
forced_request has joined #ruby
mneorr has quit [Ping timeout: 264 seconds]
cobragoat has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
philcrissman has joined #ruby
daniel_- has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
stopbit has joined #ruby
jurassic has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
kirotan has quit [Ping timeout: 248 seconds]
robustus has quit [Ping timeout: 248 seconds]
jamesfung14 has quit [Ping timeout: 255 seconds]
kirotan has joined #ruby
philcrissman has quit [Remote host closed the connection]
butblack has quit [Read error: Connection reset by peer]
pavilionXP has quit [Ping timeout: 248 seconds]
jpfuentes2 has quit [Ping timeout: 248 seconds]
pavilionXP has joined #ruby
nycjv321 has quit [Quit: leaving]
apeiros_ has quit [Ping timeout: 256 seconds]
butblack_ has joined #ruby
robustus has joined #ruby
pavilionXP has quit [Max SendQ exceeded]
butblack_ is now known as butblack
__Big0__ has quit [Remote host closed the connection]
pavilionXP has joined #ruby
averiso has joined #ruby
jonahR has joined #ruby
tommyvyo has quit [Quit:]
davetherat has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
davetherat has joined #ruby
philcrissman has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
philcrissman has quit [Remote host closed the connection]
mritr_ has quit [Quit: Ex-Chat]
mritr__ has joined #ruby
idkazuma has joined #ruby
Nuck has quit [Quit: Nuck Off]
idkazuma has quit [Remote host closed the connection]
Nuck has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
etcetera has joined #ruby
Quebert has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
butblack has quit [Quit: butblack]
macmartine has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
Caelum has quit [Ping timeout: 245 seconds]
tjbiddle has quit [Quit: tjbiddle]
Caelum has joined #ruby
adrian546864 has joined #ruby
mritr__ has quit [Ping timeout: 240 seconds]
mneorr has joined #ruby
adrian546864 has quit [Quit: Ex-Chat]
apeiros_ has joined #ruby
pdamer has quit [Quit: pdamer]
apok has quit [Quit: apok]
mercwithamouth has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
NerdyMe has joined #ruby
chrishunt has joined #ruby
Nom- has quit [Quit: leaving]
NerdyMe is now known as _NerdyMe_
kofno has joined #ruby
one` has quit [Ping timeout: 252 seconds]
Nom- has joined #ruby
apeiros_ has quit [Ping timeout: 255 seconds]
predator117 has quit [Ping timeout: 248 seconds]
predator117 has joined #ruby
nik_-_ has quit [Quit: nik_-_]
nomenkun has joined #ruby
slyv has quit [Quit: Computer has gone to sleep.]
jamesfung14 has joined #ruby
akashj87 has joined #ruby
mritr__ has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
mneorr has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 248 seconds]
jonathanwallace has joined #ruby
pooriaazimi has joined #ruby
mockra has joined #ruby
h4mz1d has quit [Ping timeout: 245 seconds]
one` has joined #ruby
xpen has joined #ruby
jamesfung14 has quit [Ping timeout: 248 seconds]
andredieb has joined #ruby
andredieb has left #ruby [#ruby]
h4mz1d has joined #ruby
adkron__ has quit [Ping timeout: 250 seconds]
mockra has quit [Ping timeout: 250 seconds]
tealmage has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 248 seconds]
etcetera has quit []
mritr_ has joined #ruby
mritr__ has quit [Quit: Ex-Chat]
iamjarvo has joined #ruby
danman has joined #ruby
Takehiro has joined #ruby
h4mz1d has quit [Ping timeout: 256 seconds]
mritr_ has quit [Ping timeout: 240 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
mockra has joined #ruby
cyong has joined #ruby
Evixion has joined #ruby
mritr_ has joined #ruby
jamesfung14 has joined #ruby
hasimo has quit [Remote host closed the connection]
apeiros_ has joined #ruby
justsee has quit [Quit: Leaving...]
sailias has quit [Ping timeout: 248 seconds]
<aedornm>
argh, why does rspec hate me so?!
gommo has joined #ruby
pen has quit [Remote host closed the connection]
mritr_ has quit [Quit: Ex-Chat]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
_NerdyMe_ has quit [Quit: Ex-Chat]
kofno has joined #ruby
apeiros_ has quit [Ping timeout: 260 seconds]
brian___ has quit [Quit: brian___]
emocakes has joined #ruby
mneorr has joined #ruby
hasimo has joined #ruby
emocakes has quit [Client Quit]
adeponte has quit [Remote host closed the connection]
cyberflux has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
mojavy has quit [Read error: Connection reset by peer]
charliesome has quit [Read error: Connection reset by peer]
cyberflux has quit [Client Quit]
idkazuma has joined #ruby
charliesome has joined #ruby
pdtpatrick has quit [Read error: Operation timed out]
adeponte has joined #ruby
pdtpatrick has joined #ruby
Derander_ has quit [Read error: Operation timed out]
a_a_g has joined #ruby
Derander has joined #ruby
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
jamesfung14 has quit [Ping timeout: 248 seconds]
mneorr has quit [Read error: Operation timed out]
chipotle_ has quit [Quit: cya]
io_syl has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
ocnam has joined #ruby
h4mz1d has joined #ruby
jurassic has quit [Quit: jurassic]
jurassic has joined #ruby
vierja has quit [Ping timeout: 252 seconds]
ghotli has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
mockra has quit [Remote host closed the connection]
akam__ has quit [Ping timeout: 248 seconds]
ghotli has left #ruby [#ruby]
feedbackloop_ has quit [Quit: Leaving]
io_syl has quit [Quit: Computer has gone to sleep.]
apok has joined #ruby
apeiros_ has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
Takehiro has joined #ruby
divout has joined #ruby
atno__ has joined #ruby
macmartine has joined #ruby
atno has quit [Ping timeout: 250 seconds]
joeycarmello has quit [Remote host closed the connection]
murz has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
mneorr has quit [Read error: Connection timed out]
yashshah has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
yacks has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
apeiros_ has joined #ruby
R_Macy has quit [Quit: Computer has gone to sleep.]
Davey has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
akashj87 has quit [Ping timeout: 245 seconds]
punchfac_ has quit [Remote host closed the connection]
kofno has joined #ruby
sayan has quit [Read error: Connection reset by peer]
nomadic has quit [Quit: -bye-]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
havenn_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
nomadic has joined #ruby
apeiros_ has quit [Ping timeout: 255 seconds]
eAlchemist has joined #ruby
havenn_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
idkazuma has quit [Remote host closed the connection]
mneorr has quit [Read error: Connection timed out]
mneorr has joined #ruby
cobragoat has quit [Remote host closed the connection]
cobragoat has joined #ruby
jdunck has joined #ruby
mneorr_ has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
hemanth has joined #ruby
etcetera has quit []
devdazed has quit [Ping timeout: 256 seconds]
hashmal has joined #ruby
devdazed has joined #ruby
ARCADIVS has joined #ruby
cobragoat has quit [Ping timeout: 250 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Ping timeout: 276 seconds]
Shrink has quit [Ping timeout: 245 seconds]
mockra has joined #ruby
hbpoison has quit [Ping timeout: 250 seconds]
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
sayan has joined #ruby
mockra has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
heliumsocket has joined #ruby
Nuck has quit [Quit: Nuck Off]
Nuck has joined #ruby
adeponte has quit [Remote host closed the connection]
apeiros_ has joined #ruby
ananthakumaran has joined #ruby
Opettaja_ has joined #ruby
Opettaja has quit [Quit: Leaving]
akashj87 has joined #ruby
eAlchemist has quit [Remote host closed the connection]
girija has quit [Ping timeout: 248 seconds]
akashj87 has quit [Client Quit]
eAlchemist has joined #ruby
mneorr has joined #ruby
apeiros_ has quit [Ping timeout: 248 seconds]
akashj87 has joined #ruby
mikepack has quit [Remote host closed the connection]
mneorr_ has quit [Ping timeout: 255 seconds]
eAlchemist has quit [Ping timeout: 248 seconds]
generalissimo has quit [Remote host closed the connection]
squidBits has quit [Quit: whoops]
quazimodo has joined #ruby
<quazimodo>
yo
<quazimodo>
so i have a .rb script, i wanna run it in pry
<quazimodo>
any ideas?
<havenwood>
require 'script-here-.rb-optional'
<quazimodo>
havenwood: oh. ok to do multiple times?
<havenwood>
quazimodo: load 'script-here'
Davey has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
<quazimodo>
havenwood: weird, wasn't workin before
<quazimodo>
fine now
freezway has quit [Ping timeout: 252 seconds]
ozgura_ has quit [Remote host closed the connection]
girija has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
apeiros_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
akam-it has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
tonini has joined #ruby
IceDragon has quit [Quit: Space~~~]
a_a_g has joined #ruby
waxjar has quit [Ping timeout: 245 seconds]
nonotza has quit [Quit: nonotza]
mneorr has quit [Read error: Connection timed out]
timonv has joined #ruby
waxjar has joined #ruby
mneorr_ has joined #ruby
hbpoison has joined #ruby
apok has quit [Quit: apok]
danneu has quit [Ping timeout: 240 seconds]
jurassic has quit [Quit: jurassic]
quazimodo has quit [Ping timeout: 250 seconds]
love_color_text has joined #ruby
Targen has joined #ruby
quazimodo has joined #ruby
danneu has joined #ruby
tvw has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
cyong has quit [Quit: Leaving.]
nomenkun has joined #ruby
aganov has joined #ruby
kofno has joined #ruby
becom33 has joined #ruby
<becom33>
http://pastebin.com/q1P4hHdi why I getting a demo.rb:13:in `foreach': No such file or directory - me (Errno::ENOENT) even when I have a Exception rescue set ?
cyong has joined #ruby
cyong has quit [Client Quit]
nomenkun has quit [Ping timeout: 248 seconds]
Astral_ has joined #ruby
ozgura has joined #ruby
Astralum has quit [Ping timeout: 256 seconds]
mneorr_ has quit [Read error: Connection timed out]
arietis has joined #ruby
emocakes has joined #ruby
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
mneorr has joined #ruby
* becom33
anyone ?
Shrink has quit [Ping timeout: 256 seconds]
tk_ has joined #ruby
timonv has quit [Remote host closed the connection]
Cork- has quit [Changing host]
Cork- has joined #ruby
Cork- is now known as Cork
jonahR has quit [Quit: jonahR]
<becom33>
no one ?
ozgura has quit [Ping timeout: 252 seconds]
zomgbie has joined #ruby
a_a_g1 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
emocakes has quit [Quit: emocakes]
andikr has joined #ruby
tagrudev has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
a_a_g has quit [Ping timeout: 240 seconds]
pyreal has quit [Read error: Connection reset by peer]
mneorr has quit [Read error: Connection timed out]
<pedahzur>
becom33: I would think it might have something to do with the way Ruby catches Errno errors (or ENOENT errors?) Replacing your 'resuce' with a bare rescue (catch any error) still causes the traceback.
blaxter has joined #ruby
<becom33>
pedahzur, I tried that also doesn't work
puppeh has joined #ruby
<pedahzur>
becom33: Which is what I was saying. Maybe ruby requires another way (other than 'rescue') to catch errors like that.
mneorr has joined #ruby
carraroj has joined #ruby
adeponte has quit [Ping timeout: 248 seconds]
<becom33>
I tried without mentioning the type of the rescue type . still it gives a error .
<tay11>
if i want just the first word of a string can i do this "blah blah blah".split(' ').first ?
<tay11>
is that the best way?
yashshah has joined #ruby
eAlchemist has joined #ruby
lewix_ has quit [Remote host closed the connection]
<pedahzur>
becom33: That looks like it will work for you. Hope that helps. I'm out for the night.
<becom33>
pedahzur, it didn't but its fine. u carry on :D
vlad_starkov has joined #ruby
bigkevmcd has joined #ruby
<tay11>
anyone?
quazimodo has quit [Ping timeout: 250 seconds]
dcwu has quit [Quit: Leaving.]
<pedahzur>
becom33: Hmm...didn't work for me either. Sorry, didn't try it out first.
<pedahzur>
tay11: Are there other ways? Did you try them? Did you benchmark them to see if that's the best way? I would say that's certainly a very clear way to do that. I don't know if it's the best way. But until it becomes *the* bottleneck in your code, I'm not sure you need to worry about finding a better way.
Mon_Ouie has quit [Ping timeout: 250 seconds]
mneorr has quit [Remote host closed the connection]
<tay11>
well im learning ruby as well as rails
Axsuul has joined #ruby
<becom33>
pedahzur, that's alright
a_a_g has joined #ruby
jonahR has joined #ruby
<tay11>
for now it works but i wanted to know if there was a better way that someone who has done it before can explain
<tay11>
since you can do the same thing a million diff ways in programming
adeponte has joined #ruby
jonahR has quit [Client Quit]
<pedahzur>
tay11: The best way is the way that works, until a better way is needed or found. :)
ananthakumaran has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
UnbertKant has joined #ruby
<UnbertKant>
Hey there!
<UnbertKant>
I'm on ruby 1.8 and some files I read (UTF-8) have a BOM at the beginning and some don't. This means those files start with the bytes EF,BB,BF and I don't know how to get rid of them (I'm a ruby beginner)
Honeycomb has joined #ruby
Clownz has joined #ruby
<UnbertKant>
When I read the lines from the files, line.include? "\xEF\xBB\xBF" is false, but the BOM is definitely there. I found a solution online that I didn't understand that uses force_encoding, but I don't have that in ruby 1.8
<UnbertKant>
So how do I read a UTF-8 file and ignore BOM?
jimeh has joined #ruby
<Paradox>
Hanmac, the one that links to oracle?
aedornm has quit [Ping timeout: 248 seconds]
jdunck has quit [Quit: Computer has gone to sleep.]
<Hanmac>
Paradox no its not, but its funny that the CVE site is offline :D ... (since the java-0day page was hosted? :P)
bradhe has quit [Remote host closed the connection]
<Hanmac>
UnbertKant with 1.8 you cant trust string encoding
<Paradox>
course
<Paradox>
CIA gets all the fun jerbs
<cronus_>
werd
<cronus_>
I like this line... "All applicants must successfully complete a thorough medical and psychological exam, a polygraph interview and an extensive background investigation. US citizenship is required.".... so tell us, have you ever used emacs?
jensnorr has joined #ruby
backjlack has joined #ruby
<Paradox>
emacs is for terrorists
<cronus_>
:)
<Zelest>
quote of the day
<cronus_>
is there a bot for that?
trichloronitrome has quit [Ping timeout: 260 seconds]
<cronus_>
!addquote < Paradox> emacs is for terrorists
<cronus_>
nope
<Zelest>
hehe
<cronus_>
I'm new hurr.... defecting from efnet after 17 years
<Paradox>
watch as a shitstorm gets stirred up in #rubyonrails because i cross-posted that line there
heliumsocket has quit [Quit: heliumsocket]
lkba has quit [Ping timeout: 240 seconds]
<cronus_>
efnet is dead :(
<cronus_>
lol
devdazed has quit [Ping timeout: 276 seconds]
<Paradox>
its been very shitstormy lately
<cronus_>
bunch of Zed Shaw's whining about nobody liking them?
<Hanmac>
vieenay: you cant without third-party software, because in 99% of the cases you dont need overloading
mercwithamouth has quit [Ping timeout: 248 seconds]
cantonic_ has joined #ruby
<UnbertKant>
How does reading a file behave if sometimes you have CRLF and sometimes you only have LF at the end of each line? It seems that for some files I have the problem that it reads multiple lines at once and I wonder why that could be (the files are horribly formatted)
devdazed has quit [Ping timeout: 250 seconds]
<Hanmac>
UnbertKant: ruby does convert the line endings ... you need to open it in "rb" mode
puppeh has quit [Read error: Connection reset by peer]
alup_ has quit [Read error: Connection reset by peer]
HecAtic has joined #ruby
HecAtic has quit [Client Quit]
puppeh has joined #ruby
alup_ has joined #ruby
HecAtic has joined #ruby
<Paradox>
Hanmac, you ever use the nyancat rspec formatter
<Paradox>
the one with sound
<UnbertKant>
Never mind, I made a mistake in my code.
<UnbertKant>
But I don't use "rb" mode, I don't know what that is. I just call chomp! on each read line to remove LF/CRLF at the end. Do I still need "rb" mode?
<UnbertKant>
Now I get broken characters in my logs because I log some strings abbreviated like output[0..40]. This just logs the first 40 bytes and if there's a multibyte character at the cut off I get broken UTF-8. Is there a solution for ruby 1.8 or is the only way to use 1.9, where unicode works?
emergion has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
<Paradox>
why do you need 1.8
<Paradox>
its like using windows 2000
<Clownz>
some gems give u headache in 1.9
<Paradox>
they shouldnt
<Paradox>
considering 1.9 came out in like 2007
Al_ has joined #ruby
<sonne>
agree with Paradox
<sonne>
also, shouldn't 1.8 be EOL soon-ish?
<Paradox>
it is
<Paradox>
2.0 marks the EOL of 1.8
bradhe has joined #ruby
<sonne>
there :0
<sonne>
:)
whitedawg has quit [Ping timeout: 245 seconds]
<sonne>
i missed 2.0 coming out actually
<UnbertKant>
Well, it's a corporate environment where we use Ubuntu LTS which doesn't like newer ruby.
<Hanmac>
i will laugth about everyone that uses ruby1.8 after June
<UnbertKant>
But I guess I should just switch to the newest ruby and write scripts that can't be run on other computers because that won't happen anyways.
<Hanmac>
UnbertKant even LTS Ubuntu should have ruby1.9.1 packages too
browndawg has joined #ruby
zomgbie has quit [Ping timeout: 248 seconds]
<Paradox>
the only major os that still ships with 1.8 is OS X
<UnbertKant>
Well, it's not the regular LTS, it's a modified corporate LTS.
ozgura has joined #ruby
<UnbertKant>
I fixed the string[0..30] problem with this hilarious code:
<Paradox>
and i think thats cause apple wikis or whatever run on rails 2
<UnbertKant>
if(abrev.length > 0 )
<UnbertKant>
end
<UnbertKant>
while (abrev[-1] & 128) != 0
<UnbertKant>
abrev.chop!
<UnbertKant>
end
<Paradox>
lrn2pastebin
<UnbertKant>
And I'm done for the day...
zomgbie has joined #ruby
<Hanmac>
Paradox: apple users deserved that pain :P
<UnbertKant>
Oh, I know about pastebin, I'm just not convinced that it's useful for very short pieces of code. But I'm willing to listen to any objections to my view on that :)
<Paradox>
Hanmac, nah, theres no pain unless you're dumb enough not to install
<sonne>
not to install what?
<Paradox>
homebrew
<sonne>
ah, do you like it?
vlad_starkov has joined #ruby
<Paradox>
UnbertKant, spamming
<Paradox>
UnbertKant, the channel
<Paradox>
UnbertKant, annoying, see?
<Paradox>
UnbertKant, is tremendously
<Paradox>
yes
<Paradox>
i do sonne
jensnorr has left #ruby [#ruby]
atyz has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
hasimo has joined #ruby
<UnbertKant>
No, I don't see it, since I personally don't see these few lines as annoying. But I'd agree to use pastebin in the future if other people find 5 line pastes unbearable (even if I personally don't have a problem with those).
<Paradox>
the topic says more than 3
<Paradox>
so
<sonne>
Paradox, ever tried it on a multiuser box?
<Paradox>
sonne, yup, works fine
one` has quit [Ping timeout: 252 seconds]
<sonne>
everything was broken on my mac
<UnbertKant>
Yes, I'll behave from now on. No more pastes >3 lines :)
<Paradox>
just gotta derp with the paths a bit
<UnbertKant>
Sorry for that!
<sonne>
yeah... it's nightmarish, specially if you don't update often
<sonne>
macports instead was a lot more reliable
<Paradox>
i dont like macports because i hate how slow it is
<sonne>
what kind of slow? you mean the compiles?
threesome has joined #ruby
timonv has quit [Remote host closed the connection]
zigomir has joined #ruby
<Paradox>
yes
nomenkun has quit [Ping timeout: 240 seconds]
atno__ has quit [Ping timeout: 245 seconds]
mulinux has joined #ruby
<Paradox>
i got tired of my updates taking an hour on a beefy mac
<sonne>
doesn't homebrew also compile stuff/
<sonne>
?
hoelzro|away is now known as hoelzro
cantonic has quit [Quit: cantonic]
tonini has joined #ruby
mulinux has quit [Client Quit]
nomenkun has joined #ruby
<Paradox>
depends
<Paradox>
it tries to find a native if it can
trichloronitrome has quit [Ping timeout: 252 seconds]
mulinux has joined #ruby
<sonne>
macports does the same afaik
obs has joined #ruby
<Paradox>
i need to go to bed
nomenkun_ has joined #ruby
<Paradox>
so good night
<sonne>
night
sk87 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
sleetdrop has quit []
Astralum has joined #ruby
apod has joined #ruby
Astral__ has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
emocakes has quit [Quit: emocakes]
trichloronitrome has joined #ruby
blacktulip has joined #ruby
Axsuul has quit [Ping timeout: 256 seconds]
razibog has joined #ruby
zomgbie has quit [Ping timeout: 255 seconds]
senayar has joined #ruby
Astral_ has quit [Ping timeout: 264 seconds]
chussenot has joined #ruby
blacktulip has quit [Remote host closed the connection]
adambeynon has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
eAlchemist has joined #ruby
blacktulip has joined #ruby
obs has quit [Quit: Konversation terminated!]
razibog has quit [Read error: Connection reset by peer]
razibog has joined #ruby
havenwood has quit [Remote host closed the connection]
arietis has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
idkazuma has joined #ruby
yashshah has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
obs has joined #ruby
tvw has quit []
zomgbie has joined #ruby
xpen has quit [Read error: Connection reset by peer]
tay11 has quit [Ping timeout: 264 seconds]
wallclockbuilder has quit [Remote host closed the connection]
eka has joined #ruby
axhlf has joined #ruby
seich- has quit [Ping timeout: 276 seconds]
akashj87 has quit [Ping timeout: 248 seconds]
thebastl has joined #ruby
eAlchemist has quit [Ping timeout: 264 seconds]
hasimo has quit [Remote host closed the connection]
nomenkun_ has quit [Read error: Connection reset by peer]
<hemanth>
Why so silent?
kofno has joined #ruby
eka has quit [Client Quit]
marr has joined #ruby
nomenkun has joined #ruby
niklasb has joined #ruby
hasimo has joined #ruby
jurassic has quit [Quit: jurassic]
El_loco has quit [Ping timeout: 245 seconds]
schaerli has joined #ruby
reset has quit [Quit: Leaving...]
zomgbie has quit [Ping timeout: 248 seconds]
xpen has joined #ruby
akashj87 has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
ephemerian has joined #ruby
Vainoharhainen has joined #ruby
mark9 has joined #ruby
HecAtic has quit [Quit: Àá¼ö]
rdark has joined #ruby
emergion has joined #ruby
jellosea_ has joined #ruby
nomenkun has joined #ruby
bradhe has joined #ruby
apod has quit [Ping timeout: 260 seconds]
thecodethinker has joined #ruby
mark9 has left #ruby [#ruby]
adeponte has joined #ruby
axhlf has quit [Remote host closed the connection]
apod has joined #ruby
Beoran__ has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
seich- has joined #ruby
ozgura has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
jurassic has joined #ruby
horrror has joined #ruby
ozgura has joined #ruby
axhlf has joined #ruby
adeponte has quit [Ping timeout: 260 seconds]
Beoran_ has quit [Ping timeout: 260 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
mercwithamouth has joined #ruby
cantonic has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
eAlchemist has joined #ruby
timonv has joined #ruby
BRMatt has joined #ruby
mneorr has joined #ruby
pskosinski has joined #ruby
jblack has joined #ruby
swoosh has joined #ruby
El_loco has joined #ruby
slainer68 has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
razibog has quit [Quit: Leaving.]
razibog has joined #ruby
Elhu has joined #ruby
butblack has joined #ruby
whitedawg has joined #ruby
butblack has quit [Client Quit]
csmrfx has joined #ruby
cantonic has quit [Quit: cantonic]
razibog has quit [Remote host closed the connection]
Elhu has quit [Client Quit]
razibog has joined #ruby
vieenay has quit [Quit: Leaving.]
ozgura has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 276 seconds]
miso1337 has quit [Quit: afk]
eAlchemist has quit [Ping timeout: 240 seconds]
skattyadz has joined #ruby
jurassic has quit [Quit: jurassic]
dhruvasa1ar is now known as dhruvasagar
Apocalypse has quit [Read error: Operation timed out]
nfk has joined #ruby
fermion has joined #ruby
ryanh has quit [Ping timeout: 256 seconds]
ryanh has joined #ruby
thecodethinker has quit [Ping timeout: 245 seconds]
duosrx has joined #ruby
coaster has quit [Ping timeout: 272 seconds]
coaster has joined #ruby
Apocalypse has joined #ruby
idkazuma has quit [Remote host closed the connection]
sulaco_ has quit [Read error: Connection reset by peer]
<akam-it>
Hello, how to split by 2 chars (i.e. "hello.split -> ["he", "ll","o"]), please?
hbpoison has quit [Ping timeout: 245 seconds]
<CodeDmitry>
Substr.
<csmrfx>
in #javascript, their favourite is brainfuck, which I also find well worth the waste of time, just that I can find even better waste of *my* time
<CodeDmitry>
I prefer wasting my time with nasm assembly
<CodeDmitry>
Blender is a pain for physics simulations
<Hanmac>
rubynooby_ because you creaté new strings, and does not alter the current ones
devdazed has joined #ruby
slainer6_ has joined #ruby
<rubynooby_>
Hanmac: ah, would gsub work?
mneorr has quit [Ping timeout: 248 seconds]
<Hanmac>
rubynooby_ there are two methods: "encode" and "encode!" ... find the difference
<rubynooby_>
okay
ozgura has joined #ruby
nari has joined #ruby
<CodeDmitry>
How hard is it in ruby to set 500th byte in the file a.txt to '?'
slainer68 has quit [Ping timeout: 264 seconds]
Honeycomb has quit [Quit: Leaving.]
<csmrfx>
CodeDmitry: is Blender pain cause it uses python?
<csmrfx>
lel
<csmrfx>
CodeDmitry: hardly hard
<CodeDmitry>
No im not talking about blender,i love blender
emocakes has quit [Quit: emocakes]
<CodeDmitry>
I just find vpython amazing for physics simulations
gaahrdner has joined #ruby
<Hanmac>
"CodeDmitry: How hard is it in ruby to set 500th byte in the file a.txt to '?'" its possible, but its not so nice, because you need to take care about the encoding
<Hanmac>
hm nothing ... it was only an idea to prevent changings
<Hanmac>
or changelings :P
<rubynooby>
If I use madeleine with classifier, do I have to train the classifier every time I execute the script or I can use the snapshot file generated by madeleine?
<Hanmac>
but with enough evil you can unfreeze objects ...
<beaky>
wow thanks
<csmrfx>
madeleine the persistence solution?
<rubynooby>
csmrfx: yes
cantonic has joined #ruby
* csmrfx
doesn't actually know the answer
whitedawg has joined #ruby
kofno has quit [Remote host closed the connection]
<rubynooby>
csmrfx: thanks
beaky has left #ruby [#ruby]
geekbri has joined #ruby
HecAtic has quit [Ping timeout: 245 seconds]
<csmrfx>
rubynooby: cant you use either?
* csmrfx
pre-supposes Classifier is in the gem-mix
<rubynooby>
csmrfx: sorry? I don't want to train the classifier everytime I execute a script. I was wondering if I can use the snapshot
<csmrfx>
I dont see why not
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<csmrfx>
whats the point of having persistence if it doesn't persist what you needed
<rubynooby>
exactly
<rubynooby>
I don't have any idea how I'd do that
<rubynooby>
i.e. use the snapshot
mark_locklear has joined #ruby
yashshah has quit [Ping timeout: 264 seconds]
fugetsu has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
chussenot has quit [Quit: chussenot]
tonini has joined #ruby
rubynooby has quit []
emergion has quit [Quit: Computer has gone to sleep.]
murz has quit [Quit: Leaving...]
malkomalko has joined #ruby
a_a_g has joined #ruby
kofno has joined #ruby
tonini has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 276 seconds]
tonini has joined #ruby
fugetsu has quit [Quit: WeeChat 0.4.0]
gaahrdner has quit [Remote host closed the connection]
mneorr has joined #ruby
gaahrdner has joined #ruby
gaahrdner has quit [Read error: Connection reset by peer]
gaahrdner has joined #ruby
V8Energy has quit [Ping timeout: 245 seconds]
Guedes_out is now known as Guedes
eAlchemist has joined #ruby
apod has quit []
mneorr has quit [Ping timeout: 252 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
El_loco has quit [Ping timeout: 264 seconds]
miso1337 has joined #ruby
xpen has joined #ruby
jonathanwallace has joined #ruby
maxmanders has quit [Ping timeout: 248 seconds]
cantonic has quit [Quit: cantonic]
johnnygoodmancpa has joined #ruby
railsbros_dirk has joined #ruby
miso1337 has quit [Quit: afk]
maxmanders has joined #ruby
pavilionXP has quit [Ping timeout: 240 seconds]
HecAtic has joined #ruby
subbyyy has joined #ruby
pdamer has joined #ruby
eAlchemist has quit [Ping timeout: 245 seconds]
skattyadz has quit [Quit: skattyadz]
El_loco has joined #ruby
realDAB has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
yshh has joined #ruby
jpcamara has joined #ruby
jpcamara has quit [Client Quit]
jpcamara has joined #ruby
daniel_- has joined #ruby
chussenot has joined #ruby
lkba has joined #ruby
bradhe has joined #ruby
Clownz has quit [Quit: leaving]
beiter has joined #ruby
subbyyy has quit [Quit: none 0.3.9.2]
forced_request has quit [Remote host closed the connection]
mulinux has quit [Quit: mulinux]
mohits has quit [Ping timeout: 248 seconds]
apod has joined #ruby
sailias has quit [Quit: Leaving.]
eka has joined #ruby
otherj has joined #ruby
skattyadz has joined #ruby
pdamer has quit [Quit: pdamer]
yfeldblum has quit [Ping timeout: 248 seconds]
HecAtic has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 250 seconds]
ttt has quit [Remote host closed the connection]
danneu has joined #ruby
johnnygoodmancp1 has joined #ruby
Blaze_Boy has joined #ruby
johnnygoodmancp1 has left #ruby [#ruby]
johnnygoodmancpa has quit [Ping timeout: 276 seconds]
grayson has quit [Quit: Computer has gone to sleep.]
moos3 has joined #ruby
danneu has quit [Ping timeout: 240 seconds]
Rix has quit [Ping timeout: 245 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
El_loco has quit [Ping timeout: 245 seconds]
yalue has joined #ruby
idkazuma has joined #ruby
railsbros_dirk has quit [Ping timeout: 260 seconds]
railsbros_dirk_ has joined #ruby
rippa has joined #ruby
Amnesthesia has joined #ruby
eAlchemist has joined #ruby
shuky has quit [Quit: shuky]
chussenot has quit [Quit: chussenot]
bradhe has quit [Ping timeout: 259 seconds]
dEPy has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
railsbros_dirk_ has quit [Ping timeout: 248 seconds]
railsbros_dirk has joined #ruby
mmitchell has joined #ruby
chiel_ has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
d2dchat has joined #ruby
<shevy>
Hanmac heya
<shevy>
Hanmac you write a lot of things to the core team, with your bug reports for ruby etc... :P
robustus has quit [Ping timeout: 276 seconds]
Amnesthesia has quit [Read error: Operation timed out]
<tobiasvl>
(i found that link on the ruby website, btw, under download -> mac os x)
katherinem13 has joined #ruby
<DaniG2k>
ok ill try it out, thanks
<tobiasvl>
good luck
russfrank has joined #ruby
beiter has quit [Read error: Connection reset by peer]
beiter has joined #ruby
<tobiasvl>
you can also try installing it with homebrew (package manager for os x). just google "homebrew ruby"
jprovazn has quit [Ping timeout: 260 seconds]
Martin277 has quit [Quit: irc2go]
bradhe has joined #ruby
whitedawg has quit [Quit: Leaving.]
HecAtic has quit [Ping timeout: 260 seconds]
pcarrier has quit []
DaniG2k has quit [Quit: DaniG2k]
<lectrick>
or RVM (Ruby Version Manager)
tjbiddle has joined #ruby
<tobiasvl>
perhaps the topic should contain something about #rubyonrails ... Martin277 just queried me with a question about some rails stuff, and he's not the first person to ask rails-specific questions here
pcarrier has joined #ruby
eAlchemist has joined #ruby
Rix has joined #ruby
ferdev has joined #ruby
hasimo has quit [Remote host closed the connection]
filipe has joined #ruby
generalissimo has joined #ruby
F1skr has joined #ruby
blaxter has quit [Quit: foo]
__Big0__ has joined #ruby
hogeo has quit [Remote host closed the connection]
breakingthings has quit []
v1p has joined #ruby
El_loco has quit [Ping timeout: 264 seconds]
lewix has quit [Read error: Connection reset by peer]
lewix has joined #ruby
shuky has quit [Quit: shuky]
cr3 has joined #ruby
jprovazn has joined #ruby
<cr3>
is there an appropriate way to define development dependencies so that they can be installed nicely, instead of having to read the documentation or encounter errors one after the other?
<MrZYX>
bundler
<Hanmac>
cr3 depends ... you can require other gems, but you cant nicely force other stuff installed ...
awarner has joined #ruby
Neomex has joined #ruby
<cr3>
MrZYX: that's what I'm thinking, but where do I specify development dependencies?
El_loco has joined #ruby
<MrZYX>
we're only talking about gems, right?
v1p has quit [Ping timeout: 248 seconds]
<Hanmac>
cr3 what dependecs do you mean? gems or other distri packages?
enebo has joined #ruby
<cr3>
MrZYX: yep, I currently have documentation saying to run: gem install net-ssh... but that sucks :(
sayan has quit [Read error: Connection reset by peer]
Spooner_ has joined #ruby
Apocalypse has quit [*.net *.split]
tagrudev has quit [*.net *.split]
srm` has quit [*.net *.split]
Caelum has quit [*.net *.split]
marwinis1 has quit [*.net *.split]
wedgeV_ has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
csexton has quit [*.net *.split]
averiso has quit [*.net *.split]
stopbit has quit [*.net *.split]
mnaser has quit [*.net *.split]
hackeron has quit [*.net *.split]
aapzak has quit [*.net *.split]
wormwood has quit [*.net *.split]
chendo_ has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
musl has quit [*.net *.split]
nick_h has quit [*.net *.split]
notbrent_ has quit [*.net *.split]
guilleiguaran_ has quit [*.net *.split]
flowerhack has quit [*.net *.split]
[Neurotic] has quit [*.net *.split]
qhartman has quit [*.net *.split]
rwz has quit [*.net *.split]
canton7 has quit [*.net *.split]
swistak35 has quit [*.net *.split]
mvangala has quit [*.net *.split]
mtfk has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
Hien has quit [*.net *.split]
e-dard has quit [*.net *.split]
verto|off has quit [*.net *.split]
dominikh has quit [*.net *.split]
arusso has quit [*.net *.split]
Spaceghostc2c has quit [*.net *.split]
d_roge has quit [*.net *.split]
akashj87 has joined #ruby
tobiasvl has joined #ruby
mtfk has joined #ruby
nick_h has joined #ruby
marwinism has joined #ruby
ffranz has joined #ruby
Caelum has joined #ruby
Gadgetoid has joined #ruby
stopbit has joined #ruby
wedgeV has joined #ruby
arusso has joined #ruby
hackeron has joined #ruby
arusso has quit [Changing host]
arusso has joined #ruby
csexton has joined #ruby
wormwood has joined #ruby
aapzak has joined #ruby
Hien has joined #ruby
Amnesthesia has quit [Excess Flood]
verto|off has joined #ruby
rwz has joined #ruby
tagrudev has joined #ruby
dominikh has joined #ruby
flowerhack has joined #ruby
averiso has joined #ruby
<MrZYX>
cr3: bundler has a nice groups feature, you can put your dependencies in groups and specify which groups should not be installed so you don't have to install them in your production setup for example
<JonnieCache>
how did we migrate applications between environments before bundler?
<JonnieCache>
badly and painfully i seem to remember
<JonnieCache>
seems like so long ago but it was like a year or something haha
v1p has joined #ruby
ffranz1 has joined #ruby
<Hanmac>
shevy did you notic that they plan an new "Age of Empires 2"? it should be in HD ... but it needs Steam and it does not have LAN-Network anymore ...
El_loco has quit [Ping timeout: 248 seconds]
becom33 has quit [Ping timeout: 245 seconds]
<csmrfx>
JonnieCache: you tested, if it broke, you tried to install dependencies
<JonnieCache>
yeah it sucked hard
<csmrfx>
ruby has bundler
beiter has quit [Quit: beiter]
<csmrfx>
many other things dont even have things like "gems"
<JonnieCache>
i remember a lot of `gem list | sed blahblahblahblah`
etcetera has joined #ruby
<csmrfx>
haha, in tests or rakes or where?
ralphvdh has joined #ruby
philcrissman has quit [Remote host closed the connection]
<JonnieCache>
no just manually, trying to get deps to line up
ffranz has quit [Ping timeout: 252 seconds]
NiteRain has joined #ruby
jlast has joined #ruby
<cr3>
MrZYX: I've noticed that some Gemfiles just call gemspec which reads a project.gemspec file. why have both a Gemfile and .gemspec?
<JonnieCache>
running those commands on different boxes to compare installed versions
<JonnieCache>
cr3: when youre actually developing a gem
xpen has quit [Remote host closed the connection]
<Hanmac>
cr3: gemspec are for rake and others Gemfile are for bundler
<JonnieCache>
rubygems, not rake
<Hanmac>
oh ok
<Spooner_>
cr3, It means it is a gem. You use the Gemfile for development and the gemspec for the gem itself. No point replicating the data, so Bundler allows you to read from the spec.
xpen has joined #ruby
jerius has quit [Ping timeout: 248 seconds]
<cr3>
Hanmac: cool, I happen to have an elaborate Rakefile, it would be nice for it to make use of the .gemspec file!
daig0ro has joined #ruby
fumbe has quit [Ping timeout: 272 seconds]
<MrZYX>
Hanmac hf :P
anachronistic has joined #ruby
happydude has joined #ruby
HecAtic has joined #ruby
sambao21 has joined #ruby
nga4 has quit []
ffranz1 is now known as ffranz
MemeMaster is now known as C0deMaver1ck
dawkirst has quit [Read error: Connection reset by peer]
blacktul_ has joined #ruby
blacktulip has quit [Ping timeout: 252 seconds]
<shevy>
Hanmac no idea, I kinda stopped playing games some years ago
xpen_ has joined #ruby
oposomme has quit [Quit: Leaving...]
dawkirst has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
calp has joined #ruby
becom33 has joined #ruby
becom33 has quit [Changing host]
becom33 has joined #ruby
qwerty_ has quit [Ping timeout: 252 seconds]
<Hanmac>
hm i think i should look at rubygems what is the biggest gem they have, and what has the biggest "grow"
xpen_ has quit [Remote host closed the connection]
xpen has quit [Ping timeout: 260 seconds]
xpen_ has joined #ruby
ddd has joined #ruby
qwerty_ has joined #ruby
xpen has joined #ruby
<cr3>
is there an example of calling bundler on a Gemfile from a Rakefile task?
v1p has quit [Read error: Operation timed out]
tjbiddle_ has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
El_loco has joined #ruby
chussenot has joined #ruby
fumbe has joined #ruby
<MrZYX>
cr3: what do you really want? load all gems specified in the Gemfile?
<Spooner_>
cr3, The Gemfile just has "gemspec" in it and it will do it for you. Just use bundler as normal from your rakefile.
xpen_ has quit [Ping timeout: 248 seconds]
<Hanmac>
my gems currently uses rake but no bundler
gyre008 has joined #ruby
gyre007 has quit [Ping timeout: 252 seconds]
alex__c2022 has joined #ruby
<cr3>
MrZYX: I just mean that if I have a check task, in my Rakefile, for testing then it would be nice for that task to invoke the :development or :test group in my Gemfile
lewix has quit [Remote host closed the connection]
<MrZYX>
did you read the last page I linked you?
adkron__ has joined #ruby
tjbiddle has quit [Ping timeout: 255 seconds]
tjbiddle_ is now known as tjbiddle
<cr3>
Spooner_: I'm not sure how to use bundler as normal from my rakefile, do you just mean system "gem build bundler.gemspec"?
mvangala has joined #ruby
<Spooner_>
cr3, If you have a gemspec, you usually just have :default and :development groups, since those are the only types supported in a gemspec.
Amnesthesia has quit [Remote host closed the connection]
ozgura has quit [Remote host closed the connection]
<MrZYX>
Spooner_: I don't think he's building a gem, lets drop the gemspec talk
<nazty>
hey
<nazty>
in `<top (required)>': private method `dir' called for "k:/videos/":String (NoMethodError)
hbpoison has joined #ruby
<cr3>
MrZYX: I might've gotten over excited, I only read the top of the last page you linked me. sorry about that, I'm try to reload it but it's taking a while. sorry about that :(
<Spooner_>
MrZYX, cr3 is the one who said there was a gemspec to use via bundler.
gyre007 has joined #ruby
<Spooner_>
But yes, reading the documentation can _really_ help, cr3 ;)
<MrZYX>
he said he saw that somewhere and wondered what it's about
<cr3>
Spooner_: sorry, I'm a bit confused at this point but I think MrZYX is right. I'm mostly concerned about the development environment at this point rather than building a gem
eAlchemist has joined #ruby
<Hanmac>
nazty and where is your question?
wmoxam has joined #ruby
* Hanmac
is building gems with Coal, Pressure and Time :P
<Spooner_>
Hanmac, I think the question is "Is anyone here telepathic?" ;)
tk_ has quit [Quit: ばいばい]
joshman_ has quit [Read error: Operation timed out]
<cr3>
Hanmac: interesting, how are gems different from diamonds then?
<nazty>
lscmp.rb:18:in `<main>': private method `dir' called for "k:/videos/*":String (NoMethodError)
<Spooner_>
nazty, Because you are calling a method on those strings that is a global method (not on String).
gyre008 has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
<nazty>
i dont understand
* cr3
could just look it up on wikipedia
<Spooner_>
You should be calling dir(dir_1), not dir_1.dir
<nazty>
so make that method part of class string
<MrZYX>
Hanmac bundler just gives some convience rake tasks for gem building, probably almost like what you got already ;)
<nazty>
ohhh
HecAtic has quit [Ping timeout: 252 seconds]
<nazty>
dir_1. is for class stuff
jprovazn has quit [Quit: Leaving]
<Hanmac>
MrZYX i used Rake, it works fine too
<Spooner_>
Yes, . calls a method on the object.
geggam_wk has joined #ruby
joshman_ has joined #ruby
bradhe has joined #ruby
mikepack has joined #ruby
shuky has joined #ruby
nga4 has joined #ruby
<nazty>
Spooner will results be different if i list1 - list2\
<nazty>
than list2 - list1
<Hanmac>
nazty yes
<Spooner_>
nazty, What do you think?
AlSquire has left #ruby ["Quitte"]
br4ndon has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
v1p has joined #ruby
El_loco has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
jackyalcine is now known as jacky
ananthakumaran has joined #ruby
sayan has joined #ruby
dmerrick has joined #ruby
ozgura has joined #ruby
uris has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
kpshek has joined #ruby
ocher has joined #ruby
AlSquire has joined #ruby
jgarvey has joined #ruby
eAlchemist has quit [Ping timeout: 250 seconds]
Neomex has quit [Quit: Neomex]
<nazty>
does ruby support multiple variable sets on one lie
<nazty>
like (v1, v2) = a1, a2
<Spooner_>
nazty, Why not try it in irb/pry? (And yes, it does).
<nazty>
i can find it in the pickaxe
<Spooner_>
Though sans parenthesis.
<ocher>
hi. is there any nice way of getting index of a group of elements from an array? example: [1, 2, 3, 4, 1, 2, 5, 6].index_subarray(1, 2, 5) => 4
<rcassidy>
anyone intimately familiar with eventmachine? :D
<Spooner_>
pcarrier, Are you writing a time-critical application? Because although that code isn't efficient, it is good Ruby code.
<pcarrier>
Spooner_, I'm not writing anything.
<Spooner_>
pcarrier, And/or using massive arrays?
<pcarrier>
Spooner_, and I didn't say it was bad Ruby code. I was saying exactly what you said: not efficient.
andikr has quit [Remote host closed the connection]
<pcarrier>
Spooner_, I didn't ask the question. I just thought it should be mentioned that it's not efficient.
<Hanmac>
pcarrier try to count how many arrays are created ... they are ~4
<Hanmac>
or ~5
<Spooner_>
Yes, but given the example code, it is about a nanosecond slower (if any) than a complex algorithm. If you are using truly massive arrays, then it will get slower ;)
<Hanmac>
pcarrier you dont understand Enumerator, right?
interactionjaxsn has quit [Remote host closed the connection]
xpen has quit [Remote host closed the connection]
tommyvyo has joined #ruby
threesome has joined #ruby
tommyvyo has quit [Remote host closed the connection]
xpen has joined #ruby
qwerty_ has quit [Ping timeout: 260 seconds]
end_guy has joined #ruby
<pcarrier>
Hanmac, %w[a].each_cons(1) do |i| puts i.class end
<pcarrier>
Array
ckrailo has joined #ruby
<pcarrier>
Hanmac, you were saying?
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
girija has joined #ruby
xpen_ has joined #ruby
<Hanmac>
pcarrier the sample code does create only 5-6 arrays, (x2 if the == [] is not removed from the loop)
whitedawg has joined #ruby
v1p has joined #ruby
xpen_ has quit [Remote host closed the connection]
El_loco has quit [Ping timeout: 272 seconds]
nouitfvf has quit [Quit: happy chatting]
<Hanmac>
pcarrier its because find breaks the loops if it finds an element, so it does not care how big the starting array is
<pcarrier>
Hanmac, the sample code is with a small array creates few arrays, indeed.
<pcarrier>
Hanmac, yeah, that's O(n) where n is the number of elements to scan before finding a result.
threesome has quit [Max SendQ exceeded]
<pcarrier>
Hanmac, best case 1, worst case n, etc.
interactionjaxsn has joined #ruby
xpen has quit [Ping timeout: 246 seconds]
<pcarrier>
Hanmac, not the point. an efficient implementation doesn't allocate so many arrays and does not do array comparison, which is somewhat costly.
atno has joined #ruby
happydude has quit [Quit: Leaving]
dhruvasagar has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
threesome has joined #ruby
<Spooner_>
Is array comparison (which is implemented in C) any slower than comparing arrays manually? I really doubt it.
jmorton has joined #ruby
browndawg has quit [Quit: Leaving.]
<hoelzro>
measure twice, cut once ;)
<cr3>
in a rake task, should require go outside the task or inside it?
browndawg has joined #ruby
jjbohn has quit [Quit: Leaving...]
<pcarrier>
yeah right. your implementation is efficient. you should put it in a textbook. I don't need more condescending remarks, I'll leave it there.
HecAtic has joined #ruby
breakingthings has joined #ruby
_br_ has quit [Excess Flood]
<Spooner_>
If loading the gem would be expensive and is only needed for a single task, then you _could_ do it inside the task (since then it wouldn't be needed every time you ran rake).
Lockzi has joined #ruby
<hoelzro>
pcarrier: if that was in response to me, I was simply commented on Spooner_'s remark
threesome has quit [Max SendQ exceeded]
rtdp has joined #ruby
happydude has joined #ruby
<pcarrier>
hoelzro, it wasn't
<hoelzro>
oh, ok =)
<hoelzro>
I don't want to rock any boats
threesome has joined #ruby
El_loco has joined #ruby
<Hanmac>
pcarrier: my method creates 2*n + 2 arrays where n is the positon of the to searched subary ... but it does not care, my function should be faster
v1p has quit [Ping timeout: 250 seconds]
AndChat| has quit [Ping timeout: 245 seconds]
<pcarrier>
Hanmac, "faster" than?
<apeiros_>
pcarrier, Spooner_ - in case nobody said it yet, ruby uses COW array slicing
<apeiros_>
so even with big arrays the overhead isn't *that* big
berserkr has quit [Quit: Leaving.]
<apeiros_>
i.e., it should be linear
hasimo has joined #ruby
<apeiros_>
meh, constant actually, since the algorithm as a whole is linear
Banistergalaxy has joined #ruby
chrishough has joined #ruby
jjbohn has joined #ruby
rtdp has quit [Client Quit]
<pcarrier>
the algorithm is O(n*m) on average, where n and m are the size of each array, assuming a random position of the subarray in the big array.
<pcarrier>
which is obviously a wrong assumption in most cases.
<Hanmac>
apeiros_ how did you like my code line? and how would you write it better?
jjbohn has quit [Client Quit]
Guest__ has joined #ruby
<apeiros_>
pcarrier: unless m is dynamic, that's O(n)
danman has joined #ruby
tonini has quit [Remote host closed the connection]
<apeiros_>
Hanmac: I liked it
* Hanmac
gets Fame
<banisterfiend>
pcarrier: i dont know why you're dwelling so much on a little piece of throwaway code someone wrote in 30 seconds, it probably is inefficient as he just threw it out there. Your fixation on it is weird. Rather than babbling, do it better. or stfu
<apeiros_>
and I doubt there's many cases where it'd be worth it to rewrite it for performance
<pcarrier>
apeiros_, unless n in dynamic, that's O(1).
Guest__ is now known as Guest123
skattyadz has quit [Quit: skattyadz]
<Hanmac>
pcarrier show us how YOU would write it better
<apeiros_>
pcarrier: -.-
rtdp has joined #ruby
hiroyuki has joined #ruby
hasimo has quit [Ping timeout: 245 seconds]
<pcarrier>
banisterfiend, I just said it was inefficient. then it's been a discussion, where both parties keep talking, not one asshole being obsessed.
danman has quit [Client Quit]
<apeiros_>
pcarrier: I mean I'd assume that in whatever use-case you have, the compared sub-arrays will always have the same length. whereas the "base"-array will vary in length
<apeiros_>
ergo O(n), the m becomes a constant factor
<ddd>
actually you did turn it to asshole being condescending with the "I don't need more condescending remarks" and your commentary from where I sit is definitely obsessive
<banisterfiend>
pcarrier: really not how it looks, anyway, why don't you contribute your own code?
blaxter has joined #ruby
eAlchemist has joined #ruby
_br_ has joined #ruby
<apeiros_>
pcarrier: please, keep the language proper. thanks. no need to become insulting.
hiroyuki has quit [Read error: Connection reset by peer]
buscon has quit [Quit: Leaving]
<pcarrier>
apeiros_, in that context, I'm referring to myself.
anderse has joined #ruby
razibog has joined #ruby
v1p has joined #ruby
El_loco has quit [Ping timeout: 240 seconds]
<Hanmac>
thats a Circular reference :P and you trapped yourself in a loop :D
oposomme has joined #ruby
<ddd>
round and round and round he goes goes. where he'll stop, nobody knows!
mlr has joined #ruby
<apeiros_>
:-/
braoru has quit [Remote host closed the connection]
* apeiros_
didn't want to contribute to the tone going down, my apologies.
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
splud has quit [Quit: splud]
Liquid-- has joined #ruby
<pcarrier>
apeiros_, (notice how this is not about this particular problem?) you can always take any factor and say it's constant because you know it already, and always end up claiming your algorithm is O(1).
Blaze_Boy has quit [Read error: Connection reset by peer]
<apeiros_>
pcarrier: that's misconstruing how O notation works
<pcarrier>
apeiros_, but when this factor is affected by a parameter of your algorithm, that reads somewhat weird.
jurassic has joined #ruby
<apeiros_>
no problem could ever be expressed sensibly in O if you'd not accept certain parts to be constant
wallclockbuilder has joined #ruby
tcstar has joined #ruby
<apeiros_>
take hashing - of course hashing a longer key is more complex, yet it is accepted practice to consider it constant
ssvo has joined #ruby
slopjong has joined #ruby
tagrudev has quit [Remote host closed the connection]
<Hanmac>
we are not responsible for rails questions
<pcarrier>
apeiros_, and things like "If the length of W[] is n, then the worst case performance is O(k⋅n).'
etcetera has quit [Ping timeout: 252 seconds]
<slopjong>
Hanmac, I understand, I'm new to ruby
ssvo has quit [Client Quit]
<pcarrier>
apeiros_, (which, with the naive each_cons implementation instead of KMP, happens to be the average case instead of worst case)
ssvo_ has left #ruby [#ruby]
HecAtic has quit [Ping timeout: 245 seconds]
anonymuse has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
<apeiros_>
pcarrier: again, I don't say the logic behind what you say is wrong. I say you're misconstruing the context. anyway, I don't think you're interested in a viewpoint that differs from yours.
<ddd>
slopjong: just to define it so you know for the future, this channel covers the ruby language itself, sans any frameworks and stuff. Most of the frameworks like Rails have their own channels.
philcrissman has joined #ruby
<ddd>
slopjong: just a friendly FYI :-)
ssvo has joined #ruby
etcetera has joined #ruby
huoxito has joined #ruby
<apeiros_>
any question is fine. but you might get rerouted to a channel which is better suited for your question.
Mon_Ouie has joined #ruby
<apeiros_>
sometimes people get a bit annoyed because the better suited channel is considered to be obvious.
dustint has quit [Remote host closed the connection]
<ddd>
agreed. some in here get annoyed because its rails. purist action, but they have a valid point in context of the channel's purpose.
<geggam_wk>
nerds like to argue technical things in an annoying fashion
<ddd>
hehe
<Hanmac>
ups it may masq to much
oposomme has quit [Quit: Leaving...]
tylersmith has joined #ruby
* apeiros_
prefers to annoy by arguing in a technical fashion
railsbros_dirk has joined #ruby
* shevy
prefers to annoy just anyway
bradhe has joined #ruby
arturaz has joined #ruby
<geggam_wk>
nerds
k610 has joined #ruby
<whitequark>
you keep using that word...
<shevy>
he will marry a nerd
<ddd>
nerds, geeks, all the same until you start judging the social skill levels :)
<csmrfx>
maybe we need !rails => "For rails info, see #whateverrailschan"
<geggam_wk>
i have been married 3 times
<shevy>
you nerd!
<geggam_wk>
my social skills suck
<whitequark>
oh right, #ruby
* csmrfx
thinks marriage is for nerds
<ddd>
csmrfx: naa, people 'keyword' channels these days like google.
<whitequark>
why am I here at all?..
whitequark has left #ruby [#ruby]
<ddd>
you are?
<shevy>
because you are a nerd
<ddd>
I thought you were a figment of our collective imagination
<apeiros_>
whitequark got lost on the way to #ruby-lang :)
<ddd>
doh!
beiter has joined #ruby
<geggam_wk>
no more ball.. now what do we do ?
<shevy>
hmm I am going to lurk there again, to see how active it is...
* Hanmac
does not care about social skills ... he used the skill points for more important stuff :P
<shevy>
but 368 vs 848 people, that seems like a huge difference :(
<ddd>
subliminal D&D referencing. Extra points!
<Hanmac>
shevy thats 152 to less
jjbohn has joined #ruby
dustint has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
nga4 has joined #ruby
seejohnrun has joined #ruby
heftig has joined #ruby
b055cad has quit [Ping timeout: 248 seconds]
<shevy>
152 less?
julian-delphiki has joined #ruby
<Spooner_>
To dig up the dead a bit, I benchmarked (and yes, feel free to suggest faster algorithms, but both are "Rubyish" methods one creating arrays and one not): https://gist.github.com/Spooner/47555cf638ef64679bef
sandstrom has joined #ruby
atmosx has joined #ruby
<Hanmac>
shevy 145 missing
mercwithamouth has joined #ruby
<sandstrom>
With rake-pipeline, how can I declare dependencies dynamically? (Similar to `depend_on` in Sprockets)
<Hanmac>
Spooner_ and the next step is using the inline C gem :D
<Spooner_>
Oh yeah ;)
schaerli has quit [Remote host closed the connection]
danman has quit [Quit: danman]
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
<Spooner_>
I ran it in 2.0 that time, in case it matters.
bradhe has quit [Ping timeout: 250 seconds]
mr-rich has joined #ruby
<Hanmac>
i think my find_sub_3 is also beauty and also fast enough ...
markalanevans has quit [Quit: markalanevans]
zeade has joined #ruby
<Spooner_>
Actually, the test isn't brilliant, since the match is 30 but never gets anywhere in it. Really, it should be failing at 29 (which might make auto vs manual array comparison differences more apparent).
<Spooner_>
But I think I've done enough.
<kalleth>
horrror: so you need tweening on text round circles, basically
<kalleth>
horrror: sec *googles*
danman has joined #ruby
<Hanmac>
i tested the code with 2.1 and my find_sub3 still gets 3rd place
<pcarrier>
Spooner_, yup.
lewix has quit [Remote host closed the connection]
<pcarrier>
Spooner_, now take a truly random sequence of DNA
hbpoison has joined #ruby
<pcarrier>
Spooner_, something like 100 000 paris, and scan for something of 10, 20 pairs
railsbros_dirk has quit [Ping timeout: 252 seconds]
<pcarrier>
Spooner_, :D
<kalleth>
horrror: i think it's possible using distortion on the image, but it'll be horrendously complex
<Spooner_>
Sounds like the sort of number crunching application that Ruby excels at :D
<horrror>
k
<JonnieCache>
lol
horrror has quit [Quit: horrror]
<kalleth>
horrror: effectively (using rmagick) you'd create an image for each 'text' object
<kalleth>
gnjdfksh
<kalleth>
I WASNT FINISHED
bricker`LA has joined #ruby
<pcarrier>
Spooner_, which the numbers I gave, it's actually not that painful. I'd still use ruby :)
jphpsf has joined #ruby
jblack has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<Spooner_>
pcarrier I'd consider using ugly #5 in that case if I didn't want to be there for the rest of the week :D
hakunin has quit [Read error: Connection reset by peer]
heliumsocket has joined #ruby
macmartine has joined #ruby
jurassic has quit [Quit: jurassic]
Hanmac has joined #ruby
CodeDmitry has quit [Ping timeout: 245 seconds]
<JonnieCache>
phsyckr: ive had success just downloading the command line developer tools from apple
<JonnieCache>
managed to compile ruby and all the other stuff i need so far anyway
pedda has joined #ruby
hakunin has joined #ruby
carloslopes has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
j^2 has joined #ruby
freezey has joined #ruby
ralphvdh has left #ruby [#ruby]
niklasb has joined #ruby
<becom33>
http://pastebin.com/6VDSt0L9 index turns nil . is this not the way to do a loop count in a each loop ?
danneu has joined #ruby
<tylersmith>
becom33: each_with_index
mercwithamouth has quit [Ping timeout: 260 seconds]
<freezey>
if I did something like [something1 something2 something3 something4].include?("something") and i wanted to split it and only print the 1st return how could i do that? i figured something like [something1 something2 something3 something4].include?("something").split(",").first
axhlf has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
<freezey>
but it doesnt return the respected results
<freezey>
Hanmac: yeah but say i wanted to split those results
<freezey>
so
<freezey>
hm
mercwithamouth has joined #ruby
apok has quit [Quit: apok]
io_syl has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
<becom33>
tylersmith, thanks dor that
ozgura has quit [Remote host closed the connection]
<tylersmith>
np
<freezey>
so the results normally look something like "test" : "result" where the result is 2 sections i just want to grab test from the results of test : result
skattyadz has joined #ruby
jellosea_ has quit [Ping timeout: 255 seconds]
threesome has quit [Ping timeout: 245 seconds]
<froy>
freezey, is this a string you're talking about?
<becom33>
http://pastebin.com/6VDSt0L9 hmm I don't think this is the way to do this properly I get a pause in the beginning and after 3 loops (if I say pause after 3 loops) it will pause and again in the next round of loop also it will pause
<becom33>
help
Zai00 has quit [Read error: Connection reset by peer]
<freezey>
yeah so.. my results from a datasearch will bring back things like "something" : "value" , "something2" : "value2".. so how i did it was array.find { | som, val | val.include?("match") this spits out the "something" : "value" and i want to just have it spit out "something"
<freezey>
so i was looking to split it
<freezey>
ah so grab it out like that
<freezey>
figured
xardas has joined #ruby
kornnflake is now known as kornnflake_zzz
HecAtic has joined #ruby
<freezey>
froy: so i guess i am wondering howto chain it together
<freezey>
to have it pull those results from the array.find
<freezey>
after an include
<freezey>
to see if what i am searching for exists
<froy>
freezey, is it a giant comma-delimited list?
jrajav has joined #ruby
<freezey>
yeah let me get the exact results out 1 sec
phsyckr has quit [Quit: phsyckr]
Zai00 has joined #ruby
filipe has quit [Remote host closed the connection]
bigoldrock has joined #ruby
eAlchemist has quit [Read error: Connection reset by peer]
<freezey>
so running this array.find { | som, val | val.include?("match") will return ["test", "result"] and i want to just grab "test"
rupee has joined #ruby
eAlchemist has joined #ruby
zeade has quit [Quit: Leaving.]
cha1tanya has joined #ruby
realDAB has joined #ruby
<becom33>
http://pastebin.com/6VDSt0L9 hmm I don't think this is the way to do this properly I get a pause in the beginning and after 3 loops (if I say pause after 3 loops) it will pause and again in the next round of loop also it will pause
<froy>
freezey, it'd probably be easiest to convert it to a hash
<freezey>
froy: is there a dirty way to just get it to spit out "test"
eAlchemist has quit [Read error: Connection reset by peer]
cableray has quit [Ping timeout: 245 seconds]
<shevy>
freezey if it is always the same you could just return the first element
<froy>
freezey, this is probably more than a one-step process. you need to first separate each key-value record in the comma delimited list, then you have to select which key you want and return it.
eAlchemist has joined #ruby
tommyvyo has joined #ruby
<freezey>
froy: the list now currently returns comma delimited
<freezey>
and they are keys
<marwinism>
I just tripped over a method to_json(*a), what is the (*a)? Is it something special (point me in a direction googlewise), or is it just that it takes any given number of arguments?
<freezey>
so |som, val| i just want to return the som based off the val
<shevy>
freezey, %w( cat dog horse ).select {|x| x =~ /o/} # => ["dog", "horse"]
senayar has quit [Read error: Operation timed out]
<shevy>
freezey, %w( cat dog horse ).find {|x| x =~ /o/} # => "dog"
<atmosx>
I'm using File.write to write an output to a file at ~/ .. when I'm reading the file using 'cat' I get this MtGox: 17:04 BTC 1:36.98 EUR% <-- notice the '%' in the end… anyone knows why this is ? It's like if the extra char is written in the end for some reason.
<freezey>
shevy: ok cool i see whta your saying.. but how would i return the som based off the val
<shevy>
just change the condition inside the {}
<atmosx>
ah needs a \n
<csmrfx>
marwinism: wherecha find that method
<rcassidy>
marwinism: yes, it's arbitrary number of args. they get put in an array.
hashmal has quit [Quit: Computer has gone to sleep.]
<Joel>
_br_: I take it you've never worked with more than one developer :P
pepper_chico has quit [Quit: Computer has gone to sleep.]
<_br_>
Joel: Here? Many actually but we do heavy code review and people are "encouraged" to follow the existing style.
<Joel>
_br_: now imagine if you could enforce the style at code commit time.
zeade has joined #ruby
<_br_>
Joel: There are scripts for this, but that doesn't really work well except if you craft it yourself. Since _your_ style is probably somewhat specific.
<Joel>
again, something perl tidy handles perfectly, which is why I was asking if there was an equiv for ruby.
<_br_>
Joel: Google tries to enforce it but its just a mess of regex'es written in python.
HecAtic has joined #ruby
<_br_>
Perfectly? I doubt it.
<Joel>
doubt all you want.
akashj87 has quit [Quit: leaving]
IrishGringo has joined #ruby
kornnflake is now known as kornnflake_zzz
philcrissman has joined #ruby
jerius has joined #ruby
<JonnieCache>
that rubybeautifier thing works well
seejohnrun has left #ruby [#ruby]
<JonnieCache>
i have it as a plugin in sublime, its useful ocassionally
<Hanmac>
Joel what does tidy do?
<Joel>
JonnieCache: good to know, thanks!
whitedawg has quit [Quit: Leaving.]
breakingthings has joined #ruby
mercwithamouth has joined #ruby
skum has quit [Quit: Leaving...]
alvaro_o has joined #ruby
akashj87 has joined #ruby
tommyvyo has quit [Quit:]
hybris has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
k610 has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
johnnygoodmancpa has joined #ruby
jerius has quit []
macmartine has quit [Quit: Computer has gone to sleep.]
johnnygoodmancpa has left #ruby [#ruby]
ozgura has joined #ruby
classix has joined #ruby
brianpWins has quit [Quit: brianpWins]
enebo has joined #ruby
bradhe has quit [Remote host closed the connection]
sayan has joined #ruby
stkowski has quit [Quit: stkowski]
Astral_ has quit [Ping timeout: 264 seconds]
jurassic has joined #ruby
ExxKA has quit [Quit: Leaving]
jurassic has quit [Client Quit]
obs has quit [Quit: Konversation terminated!]
sambao21 has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
HecAtic has quit [Ping timeout: 272 seconds]
fermion has quit [Ping timeout: 250 seconds]
zeade has quit [Quit: Leaving.]
stkowski has joined #ruby
zeade has joined #ruby
sambao21 has quit [Client Quit]
io_syl has quit [Quit: Computer has gone to sleep.]
fermion has joined #ruby
yashshah has joined #ruby
Axsuul has joined #ruby
jpcamara_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
jpcamara has quit [Ping timeout: 252 seconds]
fermion has quit [Client Quit]
<cr3>
anyone happen to know if there's a way for gem packages to install bin files under /usr/bin instead of /var/lib/ruby1.8... on ubuntu?
sheenobu has joined #ruby
cha1tanya has quit [Read error: Connection reset by peer]
<matti>
cr3: There should be a symbolic link in under /usr/bin etc poiting back to the binary inside gem.
soumoo has joined #ruby
mneorr has quit [Remote host closed the connection]
<cr3>
matti: that would be wonderful, but I installed rake from gem and I don't see a symlink :(
<soumoo>
I am trying to setup a script where I can auto login to my various cPanel accounts. I want to use the saved username and password in the DB to login in a new browser tab
<soumoo>
Isn't I have use curl ?
* cr3
tries to uninstall and install rake again, just in case
apok has joined #ruby
<matti>
cr3: User install?
<Hanmac>
cr3 use ruby1.9.1 under ubuntu
blacktul_ has quit [Read error: Connection reset by peer]
<cr3>
matti: reinstalling worked for some reason, I was looking under /usr/bin and /usr/local/bin where rake wasn't available before. it now appeared under /usr/local/bin which is fine
amh345 has joined #ruby
<cr3>
Hanmac: I'm trying to use ubuntu as vanilla as possible
markalanevans has quit [Read error: Operation timed out]
markalanevans_ is now known as markalanevans
_br_ has quit [Excess Flood]
classix has quit [Quit: leaving]
markalanevans has quit [Client Quit]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
classix has joined #ruby
havenwood has joined #ruby
_br_ has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
julian-d_ has joined #ruby
jrendell has joined #ruby
Xeago has joined #ruby
<_br_>
cr3: You probably don't want that because it messes up your separation of system bin's and gem based bin's. Why don't you just adjust your $PATH ?
pepper_chico has joined #ruby
apod has quit []
<Hanmac>
exist an irc option to know the max of users an channel had?
blacktulip has joined #ruby
m8 has joined #ruby
<lewix>
not had
<lewix>
but have
berserkr has quit [Ping timeout: 272 seconds]
<guest34>
hello, when I use eventmachine, how can I use any code that evals *before* calling the e.m. handler?
<lewix>
not an
<lewix>
but a
<lewix>
Hanmac: just teasing
<cr3>
_br_: the gem created a file under /usr/local/bin for me though, I didn't do anything
dr_bob1 has left #ruby [#ruby]
<Hanmac>
lewix i looked if the #ruby channel did broke the 1000-mark
<lewix>
Hanmac: did it
<Hanmac>
:P
<becom33>
anyone knows a good way of doing a progress bar without a gem ?
Davey has quit [Quit: Computer has gone to sleep.]
<Hanmac>
_br_ if i could travel back in time i would shot the person how invented "patents"
<havenwood>
^
tjbiddle_ has joined #ruby
<rcassidy>
patents and IP were originally made to foster creativity, it's later interpretations of the law and extension of copyright lengths that have made it FUBAR
rosipov has left #ruby [#ruby]
<rcassidy>
ip being intellectual property of course
<_br_>
Hanmac: Well, maybe not. Origially, patents were only valid for very short periods of time allowing the inventor some short superiority over others. Then it would quickly expire and we moved on. Nowadays thanks to many efforts of corporations patents are a cancer valid up to 150 years
dannluciano has joined #ruby
<rcassidy>
_br_ highfive
<Caelum>
I just updated my ruby from macports and it seems Set.select! is gone
reset has joined #ruby
<_br_>
rcassidy: :)
<banisterfiend>
Caelum: dont use macports, use rvm/rbenv/chruby
<becom33>
Hanmac, what do u suggest how can I show a process in a loop without outputting every result
<havenwood>
Copyright used to only cover PRINTING of others written works. You could handwrite as many copies as you wanted. Equally importantly, derivative works weren't covered.
<Caelum>
btw, what is the command to get ruby docs on the command line
newUser1234 has joined #ruby
<havenwood>
Caelum: ri
HecAtic has joined #ruby
<havenwood>
Caelum: Curious why you use Macports not Homebrew?
<Caelum>
havenwood: wonderful, thank you
Takehiro has joined #ruby
timmow has quit [Remote host closed the connection]
<Caelum>
havenwood: just because I've been using it for the past 2 years, and the ports are better generally
emmanuelux has joined #ruby
<havenwood>
Caelum: ahh
tjbiddle has quit [Ping timeout: 260 seconds]
tjbiddle_ is now known as tjbiddle
generalissimo has joined #ruby
Adys has quit [Read error: Connection reset by peer]
F1skr has quit [Quit: WeeChat 0.4.0]
Adys has joined #ruby
Flex has joined #ruby
yashshah has quit [Quit: Konversation terminated!]
Spooner has joined #ruby
Morkel has quit [Quit: Morkel]
<Flex>
hey guys, canyone help me with this? https://gist.github.com/92c060e577033f370ea7 , am getting "NameError: undefined local variable or method `load_config' for #<StatsdWrapper:0x000000047c2168>"
girija has quit [Ping timeout: 246 seconds]
<Caelum>
so what should I replace set_var.select! with
mneorr has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
guest34 has quit [Quit: leaving]
Takehiro has quit [Ping timeout: 272 seconds]
berserkr has joined #ruby
norm has joined #ruby
<Spooner>
Flex, load_config is a class method, so you need to do self.class.load_config (though I can't see why it is a class method really, since it is a singleton).
LouisRoR has joined #ruby
<havenwood>
Flex: self.load_config is a class method, but you're calling instance method
_nitti has joined #ruby
<Spooner>
norm, How do you want them to be sorted?
<Spooner>
norm, One option might be array.sort_by(&:to_s)
<Flex>
thx havenwood / Spooner
postmodern has joined #ruby
khismetix has joined #ruby
anachronistic has left #ruby [#ruby]
<norm>
i've got an array of both strings and integers ([1, 2, "apple"], 3, 4). calling .sort complains that ruby cannot compare numbers with integers. is there a right way around this?
<norm>
havenwood / Spooner : or i'm okay specifying a behavior
<becom33>
no shevy thats not Im asking I'm asking what if we wanna write or own method to do that
<Caelum>
oh, my ruby reverted to 1.8
<shevy>
becom33 look at the page, it shows you how. it made a module
<Caelum>
that explains it
<rob__>
hi! I wonder if anyone can give me some advice: I'm taking some command line arguments and I need to pass them to another program using system() however I'm worried that someone may pass a harmful variable (e.g: `rm -rf /`), is there any way to prevent this?
<becom33>
normal methods won't passs paramters from somthing.red <= red in the method
<norm>
havenwood: that won't sort the strings correctly, "apple".to_s == 0
<Spooner>
Flex That is true - oops. Consider: array.sort_by {|e| e.is_a?(Integer) ? ("%099d" % e): e }
<shevy>
becom33 it is not magic, they simply extend class String
<shevy>
becom33 look at the paaaaage!!!
<Spooner>
Assuming you have no numbers with more than 99 digits, of course ;)
<Flex>
eh? not me my friend
<havenwood>
norm: Oh, strings should be alphabetically sorted? kk
niklasb has quit [Ping timeout: 260 seconds]
icole has joined #ruby
e-dard has joined #ruby
<becom33>
shevy, color is example I asksed . what If I wanna bold the text or do somthing else
<shevy>
class String; def bold; 'blablabla'; end; end
<markalanevans>
Virunga: will try that now.
MehLaptop has quit [Remote host closed the connection]
<shevy>
off topic question... anyone of you putting bread into the fridge? like where the water freezes?
<markalanevans>
Virunga: what is "3" in your examople?
Al_ has quit [Quit: Al_]
<Spooner>
It is the number 3 ;)
<Spooner>
That is the same as writing 3 > 1
canton7 has joined #ruby
<markalanevans>
Hmm.
<markalanevans>
Ok. Let me play w/ that.
c0rn has joined #ruby
<canton7>
Hanmac, I didn't say there weren't backwards incompatibilities, just that there aren't *that* many
<markalanevans>
I have fields in a DB that hold the >, >=, <, <= operators so I'm trying to reduce the # of if statements
<markalanevans>
That should do what i need.
<Caelum>
the macports ruby19 port just switched from a nosuffix variant to ruby_select, just a warning for anyone using it
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
hashmal has joined #ruby
<Hanmac>
canton7 when did i say that?
danneu has joined #ruby
<Spooner>
markalanevans, You can also just do 3.send(">", 1) (the symbol is normal usage, but it is happy with regular strings too).
jmeeuwen has joined #ruby
<markalanevans>
Spooner: ok. Cool!
<canton7>
Hanmac, somewhere deep in my scrollback. Someone was asking about whether his ruby 1.9 book would allow him to write/maintain 1.8 apps
rcassidy has quit [Ping timeout: 276 seconds]
HecAtic has quit [Ping timeout: 252 seconds]
atal421 has joined #ruby
kirun has joined #ruby
<shevy>
you can!
<Spooner>
rob__, If it is coming from the command line, it won't matter if they put in dodgy stuff unless the CLI script runs with a different permissions (e.g root). You have to worry about inputs for web apps or network apps, because the input is coming entirely from outside.
<shevy>
my code works on both 1.8 and 1.9!
Virunga has quit [Remote host closed the connection]
<rob__>
Spooner: it is
<rob__>
Spooner: coming from outside
rcassidy has joined #ruby
<atal421>
anyone know what the [] (brackets) mean when doing "rvm list known"?
baroquebobcat has quit [Quit: baroquebobcat]
<atal421>
so two types of results are:
<atal421>
1.9.3-p385 and 1.9.3-[p392]
<ddd>
it means its the current version that rvm knows about
<atal421>
why the brackets around 392?
<ddd>
eg the lastest version
<Spooner>
rob__, It isn't (in the way I am suggesting). You can't hack a script that you could write and run yourself ;)
<marwinism>
I hade this neat little JSON parser going, and then I added more fields to the database, and updated everything accordingly, suddenly webrick tells me this: "Can't convert nil into String" file: common.rb location: initialize line: 148 - Anyone in the top of their heads know what this could be? Or else i'll get back later so I can prepare some code.
<Hanmac>
my ruby gems works with 1.9 and 2.0, my C gems works with 1.8.7,1.9, 2.0 .... but not with 1.8.6
<ddd>
means thats the latest patchlevel for 1.9.3 that rvm knows about
<rob__>
Spooner: the variables are coming from a webapp that im passing as args to a script
<ddd>
when you next do an rvm get master or rvm get stable that will update as new releases of each ruby version comes out
<canton7>
marwinism, the standard json parser?
jmorton has quit [Remote host closed the connection]
<havenwood>
norm: #=> [1, 2, 10, "apple", "bees"]
<marwinism>
canton7: yes sir!
<norm>
havenwood: hmm
eldariof has quit [Read error: Connection reset by peer]
<havenwood>
norm: numbers sorted first, then letters :)
<atal421>
ddd: for some reason i thought it had something to do with compiling rubies? like, rvm would send you a known package or you'd have to do it yourself if within brackets… am i just making this up?
<norm>
havenwood: i'm working on passing a proc to sort()
<norm>
havenwood: but, yes, that would work
<ddd>
you're just making it up
soumoo has quit [Quit: Leaving]
<atal421>
ddd: lol
<ddd>
it specifically means its the lastest patch level that rvm knows of
tcstar has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
jamesfung14 has joined #ruby
<canton7>
marwinism, without more info it's impossible to say what's failing i'm afraid
marr has quit [Ping timeout: 276 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
<Spooner>
rob__, I'd say it is the web-app's responsiblilty to be safe in that case (you said it was a cli app, not a web app initially, which was why I was saying validation was not so important). Validating rather depends what you want to allow.
<atal421>
ddd: it seems weird to have to distinguish it like that because rvm gives you the list in order, so obviously the lower on the list the more recent and therefore wouldn't need the brackets to distinguish it
<rob__>
Spooner: ok, thanks
<Spooner>
rob__, Generally, best to pass it through a regexp.
<ddd>
and the pair at the beginning of each version line is to deliniate whats being installed when you do something like rvm install 1.9.3
amber__ has quit [Remote host closed the connection]
amber_ has quit [Remote host closed the connection]
ferdev has joined #ruby
<marwinism>
canton7: I know, it was a faaaaar fetched try! xD I'll prepare some code then and get back to you guys! Thanks anyways!
<ddd>
ruby (or more specifically MRI ruby) is what is installed when you don't add like macruby or jruby at the beginning
ryanf has joined #ruby
<atal421>
ddd: what do you mean "pair at the beginning"?
<ddd>
[ruby] refers to MRI ruby
<Spooner>
Flex, No, you use self.class.load_config when you call it. self.load_config when you define it.
<atal421>
ddd: ohh, gotcha
squidBits has joined #ruby
<Flex>
ahhh gotcha
<canton7>
marwinism, something was expecting a string and got nil... fraid there's not much more to say at this point!
alexim has joined #ruby
<Spooner>
Flex, However, I don't see any reason for it to be a class method. Just make it an instance method.
<atal421>
ddd: so if i don't' add anything it'll assume MRI
eldariof has joined #ruby
<atal421>
otherwise i have to declare jruby or whatever
<ddd>
look at rvm list known. notice *only* MRI ruby has the brackets around the beginning name. its to clearly deliniate that MRI is the default for rvm, and that when you rvm install ruby-1.9.3 or rvm install 1.9.3 its MRI that will be installed
<ddd>
yes
<atal421>
makes sense
duosrx has quit [Remote host closed the connection]
<ddd>
exactly
<rob__>
Spooner: ok, thanks for the advice!
<atal421>
ddd: awesome!
Davey has joined #ruby
<marwinism>
canton7: but it's json! *sigh* perhaps i'll have to look at it when my brain is working again ^^
<atal421>
guess i'm going to install 2.0.0
<ddd>
its done for all lines so that someone parsing the output (in say a script) can look for the initial pair of [] to get MRI without having to do anything funky
<Spooner>
havenwood, Your partition/flat_map is so much better than my cruddy attempt *grumbles*
realDAB has quit [Quit: realDAB]
<canton7>
marwinism, but it's being parsed! if you can grab the original json, and the name of the field going foo-y, it'll probably be obvious
<Hanmac>
pah 2.0.0 is so twenty minutes before ... 2.1dev rocks :P
<havenwood>
Spooner: Amg, I got something right! Wooooot! :D
rob__ has left #ruby [#ruby]
amh345 has quit [Quit: amh345]
<havenwood>
Hanmac: What's new in 2.1 so far?
<marwinism>
canton7: hmm, you have a point! I'll do some debugging and see if I can find the bastard! Thanks again!
Zai00 has quit [Quit: Zai00]
<Hanmac>
2.0.0 have a little tiny bugs ...
srid has left #ruby [#ruby]
<Spooner>
Hanmac, That is a shame. 2.0.0 was an opportunity to put really massive bugs in ;(
<havenwood>
^ Think map_pair, map_value, map_key are worth having?
<Ontolog>
Having a bizarre experience. I was using Array#group_by! which I swear I viewed the docs for on ruby-core-1.9.3. Today I come in and it raises an exception, saying this method is undefined. Now I can't find the docs for it. Anyone know about Array#group_by! ??
<norm>
when making a recursive Proc object, I know the Proc can refer to itself by name. is there some other, less brittle, way?
maxmanders has joined #ruby
<Hanmac>
Ontolog group_by! is not possible
<havenwood>
Ontolog: Hrmm, Array#group_by without the bang?
<Ontolog>
lol the code was working for a while and i read the docs
chimkan_ has joined #ruby
<Ontolog>
hmm
<Ontolog>
maybe imthinking of sort_by!
<Ontolog>
making myself crazy
mpfundstein has joined #ruby
chimkan_ has quit [Client Quit]
dannluciano has quit [Quit: dannluciano]
<shevy>
Ontolog never trust your memory
<shevy>
always write down things into files :)
realDAB has joined #ruby
brad[] has quit [Ping timeout: 264 seconds]
<Ontolog>
lol
<Ontolog>
i guess not
averiso has quit [Ping timeout: 255 seconds]
<tay1>
whats the difference between blah: and :blah ?
Eldariof-ru has joined #ruby
reset has quit [Read error: Operation timed out]
<a_a_g>
tay1: {blah: "foo"} is the same as {:blah => "foo"}
<Hanmac>
shevy ... so Onto gets a memory corruption? he maybe used C for his Brain where he should not :P
vasuvi has joined #ruby
<Hanmac>
tay1 the diff is that the blah: only works for symbols
<a_a_g>
its only a shorthand while defining Hash literals
<ddd>
and doiesn't work for 1.8
Targen has quit [Ping timeout: 250 seconds]
Flex has quit [Remote host closed the connection]
<ddd>
unless they've backported that and i don't know that
ananthakumaran has quit [Quit: Leaving.]
<tay1>
oh
thone has joined #ruby
<tay1>
so its more of a preference right?
<Hanmac>
ddd they are not
<atal421>
ok
<ddd>
i didn';t think so. didn't see anything on any of the MLs tha they were
<a_a_g>
tay1: not if you are using 1.8 or earlier, as ddd pointed out
<atal421>
doing "rvm install 2.0.0" failed-ish
<atal421>
a quick google search shows it's not that easy
<ddd>
you'll have to hit #rvm for that
<atal421>
not cool!
<shevy>
tay1 it's a bit of a shortcut
brad[] has joined #ruby
<tay1>
im using 1.9
<shevy>
tay1 compare the amount of characters used
eldariof has quit [Ping timeout: 248 seconds]
<Hanmac>
atal421 1) what OS?, 2) what error?
<ddd>
though it works fine for me here, both using binary installs and source installs
<havenwood>
atal421: Did you install the dependencies listed under `rvm requirements`?
<shevy>
tay1 repeat this 1000x times and you can see that the blah: variant is shorter
<a_a_g>
tay1: then its preference
BizarreCake has quit [Ping timeout: 250 seconds]
<havenwood>
atal421: Just an aside, but make sure you have latest RVM: rvm get latest
<tay1>
oh ok
<atal421>
had to brew install openssl
<a_a_g>
i sometimes prefer writing it the old style, just to avoid this discussion on our internal irc :)
<atal421>
i did rvm get stable
<Hanmac>
ah .. osx shit again
<shevy>
I always stick to the old style
<ddd>
rvm requirements
<tay1>
old style = blah: "blah" ?
<shevy>
no
<a_a_g>
no, thats the new style
<tay1>
:blah => "blah" ?
<atal421>
Hanmac: a few error, let me see
<shevy>
{:blah => "foo"}
<ddd>
install everything it says and each ruby will install (provided you met that specific ruby's listed requirements)
<becom33>
http://pastebin.com/FgfWqX0F in here I get three outputs . for color, bold and pure output . but I wanna use the options if the option color and if the option bold and if the option bold and color do the both in the output
<shevy>
becom33 and where is it where you use all three outputs?
beneggett has joined #ruby
<atal421>
whoa! a ton of requirements
<havenwood>
atal421: I'd say just brew em, but if you have problems RVM provides a backup method, e.g., for openssl: rvm pkg install openssl
DrShoggoth has quit [Quit: Leaving]
<ddd>
no more so than installing *without* rvm
a_a_g has quit [Quit: Leaving.]
<ddd>
those are ruby's requirements, regardless of management nor not
<becom33>
I havnt mention it here
<ddd>
s/nor/or/
<havenwood>
ddd: A tad moreso. :P
<atal421>
fair points
yashshah has joined #ruby
<Caelum>
so 2.0 is stable now?
<atal421>
so if i do, brew install x, and i already have x installed… what does that do?
<havenwood>
Caelum: Yes.
icco has joined #ruby
<becom33>
shevy, can do this puts Colorizer.bold(Colorizer.red("Hello"))
<havenwood>
atal421: Nothing. Exits with error.
apod has joined #ruby
apod has quit [Client Quit]
<shevy>
becom33 sure why not?
<atal421>
havenwood: sweet, brew install everything, coming up
cantonic has joined #ruby
<shevy>
becom33 the inner method returns something, which the outer method uses as its input
<becom33>
I know its stupid looking
<Hanmac>
atal421 use a better system :P
enebo has quit [Quit: enebo]
<shevy>
becom33 you just need to use the correct escape codes
<ddd>
havenwood: no, the requirements are whats required to build the other sources. eg to build this or that requirement if you did it from source. so what its installing is the required compiler(s), headers, libraries needed either by ruby itself or one of its own requirements (eg some lib needs this lib so its an added requirement)
<Caelum>
just installed 2.0 from macports, took me 3 seconds
<havenwood>
ddd: Maybe my memory is faulty, but I recall packages that are not required by Ruby. Likely to facilitate install, but not dependencies of Ruby.
failshell has quit [Remote host closed the connection]
<shevy>
puts Colorizer.bold("\e[#31mHello\e[0m"))
<shevy>
yikes, one ) too many
<shevy>
anyway, this then becomes:
HecAtic has joined #ruby
<ddd>
havenwood: thats what i was meaning. some of the dependencies of ruby, have dependencies of their own. something most likely that would have been previously taken care of
<atal421>
i'm noticing in the install there's apple-gcc42… will that screw with Xcode? or the gcc i got through there?
wrench has joined #ruby
<shevy>
puts "\e[1m\e[#31mHello\e[0m\e[0m"
<shevy>
hmm
<shevy>
did I forget something there...
<havenwood>
ddd: Thinks like curl are what i'm thinking, not required by Ruby but used by RVM. Lemme actually check dependencies so I'm not making stuff up. >.>
<shevy>
something was wrong with the #31m
<ddd>
mostly the reason for such a high package count is because (like for debian and for most of the OSX port managers) many of the packages are split up retardedly
Zolo has joined #ruby
workmad3 has joined #ruby
<shevy>
ddd hehehe I like it... "split up retardedly"
<shevy>
it is all for a greater good :>
<Caelum>
atal421: not likely
timonv has joined #ruby
<ddd>
havenwood: well, those are pre-install requirements. hasn't anything to do with rvm requirements output
<havenwood>
ddd: At least with chruby, the list seemed shorter: openssl readline libyaml gdbm libffi
<ddd>
those are required to even install rvm (curl, wget, git, etc)
<wrench>
I'm trying to require a class using a relative path like: require '../lib/myclass.rb' This throws a load error. Any ideas on how to fix?
<shevy>
ack... rvm requires git???
<Caelum>
oh no, git
<ddd>
mo0st systems alrady have those, unless minimalistic installs were originally done for the box in question
<havenwood>
shevy: Yeah, but who doesn't have git installed. :P
freezey has quit [Remote host closed the connection]
<ddd>
shevy: no, thats for rvm to install git'd versions (like dev versions)
<becom33>
shevy, ok point ?
<ddd>
but its not required for *rvm* to install. that just needs curl and bash
<shevy>
havenwood can be, sure, but I mean for normal C ruby tarball you can just compile without git, I did not know that rvm requires it
<havenwood>
shevy: ahh, yeah
<ddd>
shevy: because it pulls from the repos
<shevy>
becom33 point is - does it work?
<havenwood>
shevy: chruby ftw :D
<ddd>
its only for the -head versions
<shevy>
becom33 those ansi escapes are just STRINGS!!!
<becom33>
shevy, so ur suggesting to use a gem ?
<Caelum>
let's write a ruby compiler in bourne shell and awk, it will be even slower than 1.8
<shevy>
so when you want "bold red", it is all strings
<ddd>
quicker and less work than grabbing the tarball for head, unpacking, etc
<shevy>
becom33 I do not care. I gave you a link to a webpage. you said you dont want it. why should I recommend you anything else :P
Flex has joined #ruby
<havenwood>
Tradeoffs between do-it-yourself and having a tool be smart. RVM is smart, but complicated. While chruby is stupid, but simple.
<shevy>
becom33 this is the content of term-ansicolor gem
<Flex>
rvm makes changes to cd?!?! why would anything do that?
<ddd>
oh christ
* Hanmac
uses neigher rbenv nor rvm nor chruby
<havenwood>
Flex: FUD
<ddd>
dude, go blow it out your ass
<shevy>
becom33 if you want to unpack a gem, do this: gem unpack *.gem
<becom33>
shevy, so how can I get it ?
<shevy>
becom33 gem install term-ansicolor
hashmal has quit [Quit: Computer has gone to sleep.]
<becom33>
ok let me try that
jjbohn|afk is now known as jjbohn
<shevy>
becom33 then go to the directory where it was installed
<shevy>
on my system for 1.8 it is:
<shevy>
cd /Programs/Ruby/Current/lib/ruby/gems/1.8/cache/
<shevy>
on default ruby, it will be /usr/lib/ruby/gems/ <----- look here
<becom33>
how to unpack a gem which is already installed /
<becom33>
?
<shevy>
becom33 go to that directory
<Hanmac>
gem contents
mneorr_ has joined #ruby
<atal421>
why would i use rbenv over rvm?
mneorr has quit [Read error: Connection reset by peer]
<shevy>
becom33 all gems you installed will be there
<atal421>
(FIGHT!!!!)
<shevy>
atal421 because you are too dumb to compile on your own? :)
<shevy>
I dunno, rvm is bigger
<shevy>
it probably is more helpful when you make coffee
<havenwood>
atal421: rbenv shims can be a pain, imho
<ddd>
atal421: he's spewing FUD that was dispelled a *long* time ago. shows he's recent to the ruby manager world, and doing like most lemmings. regurgitation
<wrench>
I'm trying to require a class using a relative path like: require '../lib/myclass.rb' This throws a load error. Any ideas on how to fix?
<havenwood>
atal421: I'd prefer correctly setting environment variable to select Ruby rather than shims, hence chruby.
<havenwood>
atal421: Others prefer shims, for their own reasons.
<shevy>
wrench several ways. the one I prefer is to install into ruby SITEDIR
failshell has joined #ruby
<shevy>
I mean, like a project
<ddd>
yeah chruby distills a lot of the extras that rvm does, and reduces it to rvm's core behavior. setting env vars to select different rubies.
<shevy>
if the name is "my_cool_project" then it may have a directory "my_cool_project/"
<ddd>
rvm just does a LOT more stuff, and not everyone needs those extra capabilities
<atal421>
so… i need to read about shims in order to form an opinion? is that the line right there? that's the deal breaker for some?
<shevy>
and then the files usually can be required like: require 'my_cool_project/lib/myclass.rb'
<ddd>
atal421: pretty much
<Hanmac>
wrench require_realative
<ddd>
if you're going to do comparing you need to know where they differ and why
<shevy>
with my way you dont need require_relative!
<wrench>
shevy: ah nice -- gonna give that a try
<shevy>
die require_relative, die!!!
<shevy>
LONG LIVE GOOD OLD REQUIRE ALONE
<atal421>
back to google i go, thanks
<havenwood>
ddd: That is one thing I like about chruby, its rvm roots. Happens to be just the stuff I want. :)
<shevy>
btw Hanmac you misspelled it hahahahaha ;)
<Hanmac>
i do not care:P
<ddd>
yep. i've a place for chruby in the heart. distills a lot of the extra. theres definitely a place for minimalistic as well as full featured
<becom33>
/usr/lib/ruby/1.9.1/rubygems is that path correct ?
<shevy>
I used to have "def intialize" and wondered why it did not work
<shevy>
becom33 no it is not!
<ddd>
i still use rvm by default, but if i was to switch off, i'd probably change to chruby
<shevy>
there /usr/lib/ruby/gems/cache/
<shevy>
wait
<wrench>
shevy: still getting the load error using "require <projdir>/lib/myclass.rb"
<shevy>
there /usr/lib/ruby/gems/1.9.1/cache/
<shevy>
wrench yeah, drawback is you must install it
<shevy>
I use setup.rb for this
<wrench>
ah ok -- is it a gem?
<becom33>
shevy, there is no "gems" in /usr/lib/ruby
<shevy>
becom33 what
<shevy>
becom33 what is inside /usr/lib/ruby/ ?
<becom33>
this are my dirs 1.8 1.9.1 vendor_ruby
HecAtic has quit [Ping timeout: 257 seconds]
<shevy>
wrench well setup.rb is the way to install things before gem came around
<ddd>
from the directory that file is in, require File.expand_path('../lib/myfile', __FILE__)
<shevy>
Caelum lol sadly no... but I think there is fail()
<havenwood>
becom33: GEM_HOME is the default repository location for gem installation. GEM_PATH is colon-separated list of gem repository directories.
robert_ has quit [Read error: Connection reset by peer]
<shevy>
Caelum and you can have only one !
<shevy>
:(
<becom33>
there are dirs
<shevy>
die!() would work
apeiros_ has joined #ruby
<shevy>
die! 'perl' && die!
<ddd>
add that to the file doing the loading, and it should find it fine. works here on a fast directory creation/setup
<havenwood>
becom33: echo $GEM_HOME; #or from ruby; puts ENV['GEM_HOME]
LouisRoR has quit [Ping timeout: 264 seconds]
<ddd>
used in Rakefile all the time
<havenwood>
'
<shevy>
you forgot a '
<shevy>
:D
<havenwood>
shevy: I know, was trying to figure out how to fix it. PANIC!@!
<shevy>
hehe
<shevy>
I love nitpicking
<becom33>
havenwood, I don't get anyout
<ddd>
hey sometimes nitpicking fixes things :)
<shevy>
becom33, no just find cache/ dir
<shevy>
you wrote "there are dirs" but what dirs :P
<shevy>
I hate ubuntu...
<Hanmac>
shevy: info: some gems are installed with ruby itself: like rdoc is in "/usr/local/lib/ruby/2.1.0/" the C-ext of psych is in "/usr/local/lib/x86_64-linux/ruby/2.1.0/" ...
<shevy>
yes
<shevy>
I hate it very much so
<becom33>
shevy, /var/lib/gems/1.9.1/cache
<shevy>
why does it use /usr/local !!!
<havenwood>
becom33: A tool like chruby will set those for you, but I think there is an apt-get option for selecting your Ruby.
<shevy>
ok becom33 is term-ansicolor there?
<havenwood>
Hanmac: ^ what is the apt-get way to set Ruby?
<Hanmac>
shevy because i comiled it itself ... thats why its in /usr/local
<shevy>
ah ok
<ddd>
actually its update-alternatives
<shevy>
then I can not blame ubuntu
<shevy>
but I can blame Hanmac
<shevy>
:)
<havenwood>
That's what I was trying to think of, update-alternatives
<ddd>
apt-get install the different rubies you want that have packages, and you use update-alternatives to change the default
<Hanmac>
havenwood: install ruby1.9.1-full and then use update-alternatives --config ruby
<apeiros_>
Xeago: ping
<shevy>
how old is update-alternative? I dont think it was there ~5 years ago...
Eldariof-ru has quit []
vasuvi has left #ruby ["Leaving"]
<becom33>
shevy, yes
<shevy>
becom33 \o/ now you know where all your gems can be found!
<becom33>
I guess yes
<ddd>
i don't remember. its been so many years i forget how long update-alternatives has been around
<shevy>
unpack it via gem unpack ter*.gem
<becom33>
now how can I unpack it again
<ddd>
longer than 5 years though i think
<Hanmac>
shevy i compiled it with --enable-multiarch, thats why the paths are different
<ddd>
woody had it iirc. its it older than 5?
<shevy>
becom33 all via "gem" command, it has subset commands. unpack is one subset
<becom33>
ok its unpacked
<ddd>
err isn't it
<shevy>
ddd I think so, yeah. woody was the first I used I think
<shevy>
then came sarge right?
<ddd>
yeah
<shevy>
damn that is old man...
<shevy>
we have 2013
<ddd>
been a long time, thats for sure
<becom33>
shevy, now what ?
<shevy>
"Debian GNU/Linux 3.0 (a.k.a. woody) was released on 19th of July, 2002."
<aedorn>
webrick doesn't like to shut itself down
<ddd>
damn, 10 years
<shevy>
becom33 I dunno. you can find the .rb file there
<shevy>
becom33 just look at how he solved it, he was minimalistic
<shevy>
it is inside lib/ directory, always
<ddd>
find ./ -name *somefile*
<ddd>
or if you know the whole name s/*somefile*/thatname/
<shevy>
Hanmac cool, I never used --enable-multiarch so far
<becom33>
shevy, /var/lib/gems/1.9.1/cache/term-ansicolor-1.1.1/lib/term$ in there there is one folder and a one ruby file named ansicolor
francisfish has quit [Ping timeout: 252 seconds]
ninjanoise has joined #ruby
brianpWins has joined #ruby
<ninjanoise>
Howdy
<ninjanoise>
anyone have a good example of breaking a ruby app into small method chunks
<shevy>
becom33 yeah that is it
<shevy>
it is just one .rb file
<shevy>
you could copy that
<shevy>
then you wont have to install a gem :P
havenwood has quit [Remote host closed the connection]
<shevy>
ninjanoise you are a ninja
<shevy>
I can not trust ninjas
<ddd>
especially ones that make noise
<shevy>
lol
<shevy>
incompetent ninja
<shevy>
they used to sneak and like stealth
<shevy>
then came the hollywood ninja
<ddd>
punishable by an asswhoopin by Chuck Norris
<Hanmac>
shevy it has a difference for the archdepent dirs, like RbConfig::CONFIG["sitearchdir"] is "/usr/local/lib/x86_64-linux/ruby/site_ruby/2.1.0" for me, what is yours?
<ninjanoise>
shevy, it's not noisyninja
<ninjanoise>
lol
<shevy>
ninjanoise if the "ruby app" is complicated, it may not be simple to turn it into small methods
<shevy>
it may be easier to do so from the very beginning, like write tiny methods, and build from bottom-to-top that way
<ninjanoise>
@shevy That's what I'm working on (I'm a ruby n00b) just wondering what the "best practice" is for creating clean code. Trying to get started right
<shevy>
oh dear
<Hanmac>
shevy its the position of the "arch" part of the Path, with --enable multiarch its different ... it also installs the libruby stuff in other arch depend dirs
emocakes has joined #ruby
<shevy>
that is awful ninjanoise
<ninjanoise>
haha
<ninjanoise>
why's that
<ninjanoise>
looking for input so .. :)
<shevy>
well alright
<shevy>
you want to simplify only one method there right?
<ninjanoise>
it works that's what made me happy but I know it's not too clean
<shevy>
well
<shevy>
if it works... then I wonder if your really want to invest time just making it cleaner
uris has quit [Ping timeout: 250 seconds]
<shevy>
see the first part
<shevy>
10 lines through:
<shevy>
conn = PG.connect(:dbname => 'hn_diff')
<shevy>
conn.prepare('comments_content', 'select comments from comments where pass_n = $1 and id = $2')
<shevy>
this all just seems to query the database
<ninjanoise>
right
<shevy>
you could put that into a separate method at least
<ninjanoise>
alright
<shevy>
you need to give those methods a name
<shevy>
def initialize_database
<shevy>
or something like that...
blaxter has quit [Quit: foo]
<ninjanoise>
alright and that method would set up all the DB query stuff..
<shevy>
so that it works, you could turn all conn to @conn
<shevy>
well see
lewix has quit [Ping timeout: 256 seconds]
<shevy>
ninjanoise, one reasoning for using separate methods is that you break up the tasks into logical subtasks
elaptics is now known as elaptics`away
<ninjanoise>
right
<shevy>
so then your eyes just scan through some method calls
<shevy>
and hopefully those methods make sense
<shevy>
I mean
<shevy>
def hn_diff(hn_id)
<ddd>
and yes, yolu can overdo it breaking things into methods
<shevy>
I have no idea what hn_ is
<aedorn>
Okay, so I'm starting a webrick server via ruby -rwebrick -e 'WEBrick::HTTPServer.new(:Port=>5080,:DocumentRoot=>"/usr/share/testbench/firmware").start' , and it refuses to exit from ctrl-c.. I have to kill it. =\
<ddd>
err you
cobragoat has joined #ruby
<shevy>
ninjanoise it is MUCH easier to get a clean design from scratch
geggam_wk has quit [Remote host closed the connection]
<Paradox>
ah #ruby
<Paradox>
friendly channel :)
imami|afk is now known as banseljaj
<ninjanoise>
shevy agreed I started out just trying to get it working flailing about :)
<julian-d_>
aedorn: try control-d?
geggam_wk has joined #ruby
classix has quit [Ping timeout: 252 seconds]
<shevy>
aedorn bang your head against the monitor
<ddd>
i've developed such an addiction to chocolate
<shevy>
ddd I can assure you this is BAD
niklasb has joined #ruby
<ddd>
i can assurde you you are correct, both for my health AND my wallet hehe
<ddd>
s/urde/ure/
<Paradox>
shevy, adorn!(against: :monitor
<Paradox>
)
<aedorn>
shevy: I have been... it's not stopping.
<shevy>
ddd I tried to contain it by selecting what to buy... I still eat chocolate but I try to buy only high quality (expensive though), and if so as little as possible against my addiction
<shevy>
ddd that way at least I dont have to buy junk chocolate anymore
Virunga has joined #ruby
<ddd>
hehe, I devour Hershey chocolate bars like nothing
<Paradox>
shevy, where do you live
hbpoison has quit [Ping timeout: 245 seconds]
<Paradox>
ew hershey
<shevy>
a friend of mine manages to not eat any sweets :(
<Paradox>
you get access to a country made of choclateers
<shevy>
ddd hmm dont know if I know hershey chocolate
<Paradox>
aka switzerland
emocakes has quit [Quit: emocakes]
<ddd>
because for over the counter cheapy chocolate hershe rocks. better than nestle
<Paradox>
shevy, its awful
<Paradox>
they make "milk" chocolate
<Paradox>
which is like 42% wax
<shevy>
there once was original cacao beans chocolate, in single, thin chocolate bars
hbpoison has joined #ruby
<Paradox>
less than 10% cacao
<ddd>
oh geez
<shevy>
hehe
<apeiros_>
o0
<shevy>
real cacao is so bitter :(
<apeiros_>
Paradox: lies…
<Paradox>
i know
<Paradox>
but i love me some 90% cacao lindt
classix has joined #ruby
<shevy>
Paradox, apeiros_ is from the country of CHOCOLATE ;)
adamnbowen has joined #ruby
<shevy>
they built chocolate mountains to defend their home
<Paradox>
apeiros_, hershey isnt from switzerland
<ddd>
its made from milk chocolate whose ingredients are milk, chocolate, cocoa butter, lactose, milk fat, vanillin and an emulsifier
<Paradox>
its from like kansas or something
<Paradox>
ddd, and confectioners wax
<apeiros_>
Paradox: ah, misread you then
<Paradox>
they are significantly different
<shevy>
ddd yeah man this is an ENERGY bomb ... it's how I used to get fat... too much chocolate, too much sitting...
lewix_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
<Paradox>
switzerland has french and germans and mountains and skiing
<Paradox>
kansas has corn and rednecks and flat and pig wrestling
<ddd>
which is one of the lowest count ingredients
jurassic has quit [Quit: jurassic]
<apeiros_>
and italian and rumantsch…
<shevy>
now I am at 198 pounds, which is still a bit too much but ok, still "losing" more though
<lewix>
Paradox: and best chocolate
<Paradox>
lucky
<Paradox>
i'm 120
<Paradox>
and thats up from what i was earlier this year
<Paradox>
at 113
<shevy>
pfffft 120 pounds? are you a skeleton?
<lewix>
what a paradox
<apeiros_>
extremes…
<ddd>
42 and 182 lbs.
<Paradox>
shevy, practically
tay1 has quit [Ping timeout: 260 seconds]
<Paradox>
6'3"
<Paradox>
i have a metabolic disorder
<ddd>
(i flux between 175 and 182)
<shevy>
Paradox nah that is not possible
<shevy>
well actually
<shevy>
it may be possible for a very very very few people
<Paradox>
my resting temperature is 100º
<Paradox>
so
<Paradox>
used to get out of school with that
<Paradox>
lol
HecAtic has joined #ruby
<ddd>
mm, school. best thing that can happent o a man next to sex
<ddd>
err happen to
<Paradox>
nah
<Paradox>
i honestly feel like i've wasted the past few years by going to school
<Paradox>
but ill probably feel differently in 10 years
<lewix>
Paradox: same here
<Paradox>
but i've had to turn down 120k jobs
<Paradox>
not one hundred and twenty thousand individual jobs
<lewix>
Paradox: 120k jobs? what kind of jobs
yashshah has quit [Read error: Connection reset by peer]
<Paradox>
but jobs that would pay $120k
<shevy>
lol
sandstrom has quit [Remote host closed the connection]
<atal421>
why did you turn them down?
<lewix>
Paradox: like..
realDAB has quit [Quit: realDAB]
<wmoxam>
Paradox: in SF?
<shevy>
like SEX SLAVE
<Paradox>
wmoxam, in SLC and SF
<Paradox>
yes
<lewix>
Paradox: computer related?
<Paradox>
rails
yashshah has joined #ruby
<atal421>
why did you turn them down?
<wmoxam>
yeah, nuts
<Paradox>
they wanted full time
<atal421>
lol
<Paradox>
and i didnt have a car or means to get there
<ddd>
i've turned down several 100-120k jobs. almost all of them due to moving (either completely across the country or TO another country)
<lewix>
Paradox: duh
<Paradox>
and i promised my parents that i would finish school if they'd pay
<Paradox>
so here i am
<shevy>
man, a car
<shevy>
just rent one
<lewix>
sheesh
* apeiros_
loves his 20min door-to-door job :)
<Paradox>
shevy, i dont have two nickles to rub together
<atal421>
Paradox: good choice… you don't have to move anywhere these days!
<lewix>
they pay that well?
threesome has joined #ruby
wallclockbuilder has quit [Remote host closed the connection]
<ddd>
i am *not* moving back to cali. *ever*
<apeiros_>
and that without having to even drive a car :D
<lewix>
Paradox: let me see your resume
<shevy>
ddd why not? it's the only place in the USA that would interest me
<Paradox>
lewix, you can see my portfolio
<atal421>
companies are sort of dumb, they want you to move there so that you can be distracted by coworkers!
<Paradox>
paradox.gd
<Hanmac>
apeiros_ selling vacuum-cleaners?
<ddd>
and I don't want to move permanently to Germany
<ddd>
shevy: I like it here in Kentucky
<shevy>
hahaha me neither
senayar has joined #ruby
<shevy>
too many germans in germany
skattyadz has quit [Quit: skattyadz]
<shevy>
:>
<ddd>
heh
<Paradox>
but i dont hand out my resumé all over the internet
<Paradox>
because its got some important phone numbers on it
<Paradox>
alexis ohanian, steve huffman, etc
rcassidy has quit [Quit: leaving]
<atal421>
your resume has someone else's phone number on it?
<Hanmac>
shevy depends ... in some spaces in Berlin germans are a "minority" :P
<Paradox>
in the contacts section
<Paradox>
yes
<apeiros_>
Hanmac: door-to-door means from my door to the door of my work-place. not traveling around from door to door :-p
<atal421>
why?
<atal421>
Paradox: how does that make sense?
<Paradox>
atal421, well considering its gotten me good offers
<Paradox>
it doesnt have to
<ddd>
better than France, man. *Most* french I've meet are stuck up. Not all, just the vast majority. Almost as bad as Quebecians. (Lord, save me from Quebec, unless GSP is there hehe)
<Paradox>
now, i've gotta go get a haircut
<Paradox>
lol
<atal421>
Paradox: clearly
<atal421>
Paradox: unless you count a section called "references" on your resume
<atal421>
Paradox: but that shouldn't be on your resume either
<Paradox>
yeah
<lewix>
ddd: hahaha
<Hanmac>
apeiros_ ... at the begining i was travelign from Dresden to Niesky without a Car .... thats ~3h for one way ... and 3h back too
<Paradox>
well, i made it when i was younger
<ddd>
References: Available upon request
<lewix>
ddd: where are you from
<atal421>
Paradox: so it's like "i know this guy, give me a job"
<apeiros_>
Hanmac: ouch
<Paradox>
and the guide i followed at the time said add references
<Paradox>
so i did
<lewix>
ddd: I totally agree with what you said between
<Paradox>
and i've not changed it since, its sort of grown
<Paradox>
i do have a YAML variant of my resume
<Paradox>
which i send to geekier bosse
<Paradox>
s
<Paradox>
and they usually love it
<Hanmac>
apeiros_ now i am ca <10min away from my work in a hotel-like
<lewix>
Paradox: like we need to know that. showing off much?
<wmoxam>
*Most* french I've met have been friendly
<ddd>
lewix: Originally from Mass, USA. Raised all over the US and the world (military brat), but recently was living in Port Elgin, Ontario (Mom is married to a Canadian so was living up there helping her with my step-dad)
<wmoxam>
good people
marr has joined #ruby
<Paradox>
dont hate the french
<Paradox>
they make good wine
<lewix>
wmoxam: you didn't meet enough then
<ddd>
wmoxam: I don't hate them. I just think they're stuck up
* wmoxam
shrugs
tjbiddle_ has joined #ruby
<ddd>
difference
<wmoxam>
I've met a few
<shevy>
Hanmac in vienna too :P
<ddd>
err Paradox even
nomenkun has joined #ruby
<lewix>
ddd: my family lives in Ontario =)
<wmoxam>
ddd: define "stuck up"
Catbuntu has quit [Quit: Leaving]
<atal421>
so, do famous people put other famous peoples info on their resumes?
<lewix>
wmoxam: take that from someone who met his share
<shevy>
Hanmac well, some towns are awful... I hated Düsseldorf... Chemnitz was also awful.... dresden was beautiful though, and so was nürnberg... berlin was big but I dunno, perhaps I was in the wrong places, it was not awesome... münchen is ok, hamburg is also ok
<wmoxam>
lewix: I've met my share too ;)
<ninjanoise>
Paradox: W....T...F
<lewix>
wmoxam: I attended french schools
<Paradox>
a chicken vacuum
<wmoxam>
mostly Quebecers
<ddd>
wmoxam: pompous, look down their nose at you, especially if they know you are American born, act superior.
<aedorn>
mmmm chicken
<shevy>
Hanmac oh and Frankfurt I HATE Frankfurt... this is like a corporate banksters-only town...
<wmoxam>
ddd: so, like Americans?
<Paradox>
from Unser Taglich Brot
<Paradox>
good movie
<ddd>
think its probably more an American vs French thing
tay1 has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
<ddd>
wmoxam: worse, if thats possible
<wmoxam>
ddd: I doubt it is
<wmoxam>
:p
<ddd>
heh, it is
<lewix>
ddd: not true
<aedorn>
ddd: In Ontario?
atal421 has quit [Quit: atal421]
<lewix>
ddd: they're like that with everybody
<shevy>
waaah
<Paradox>
whats everyone's take on chinese
<ddd>
aedorn: no
<lewix>
ddd: americans are so sensitive gosh
<shevy>
isn't Ontario the home of the polar bears?
<Hanmac>
shevy in berlin you need a turk-directory if you get lost
<aedorn>
oh
<Paradox>
i dont want to sound racist, but all the ones at my university are assholes
<lewix>
always think they're the center of the world
<Paradox>
the exchange students that is
<shevy>
Hanmac hey, I know that from vienna too hahaha ;)
<ddd>
lewix: lol
<Paradox>
smoke in doorways, walkways, everywhere
<wmoxam>
shevy: yes, in the northern reaches of the province
<Paradox>
chitter all the time at the top of their lungs
<Paradox>
lol
<ddd>
lewix: americans are definitely not known for being laid back.,
tay1 has quit [Read error: Connection reset by peer]
<ddd>
one thing i loved about Canada, almost to a person everyone was so laid back.
<shevy>
ddd right, but swear words must be censored... :P
<ddd>
calming
tay1 has joined #ruby
<shevy>
what I hate about canada is the weather
<ddd>
shevy: lol
HecAtic has quit [Ping timeout: 245 seconds]
<lewix>
ddd: yea cause everytime i hear americans complaining about french they think the animosity is only towards them
<Paradox>
i hate the smugness of canadians
<Paradox>
but maybe thats because i browse reddit
<lewix>
ddd: yes we are
<aedorn>
I found people in Quebec to be a bit stuck up... and people in Nova Scotia to be like the nicest people on earth mostly
<wmoxam>
Paradox: me too
tay1 has quit [Read error: Connection reset by peer]
banseljaj is now known as imami|afk
<lewix>
Paradox: define smugness
<shevy>
but this is why I imagine california to be great... the weather!!!
<Paradox>
and reddit is covered in "AS A CANADIAN IM BETTER THAN AN AMERICAN BECAUSE IM FROM CANADA"
c0rn has quit [Ping timeout: 260 seconds]
<ddd>
quebecians definitely are a breed unto themselves
tay1 has joined #ruby
<Paradox>
shevy, lol bay area weather
<Paradox>
its consistent, to say the least
<lewix>
aedorn: blame it on the french
<Paradox>
and if you like 60º and fog
<ddd>
and their French Only movement.. radical how far they'll go
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
<Paradox>
san fran is perfect for you
<aedorn>
lewix: The real french don't like them either
<lewix>
ok ruby question
<shevy>
Paradox haha... dont like the fog that much
<GeekOnCoffee>
aedorn: ditto… people in NS and PEI were great, Quebec not so much
<Paradox>
shevy, eh, stay in the south bay then
<ddd>
PEI rocks!
<shevy>
Paradox if I want fog, I could stay in london :P
<Paradox>
sunnyvale
tay1 has quit [Read error: Connection reset by peer]
<Paradox>
full of friendly indians
<shevy>
but the food is awful in the UK
<Paradox>
lol
<lewix>
do they have a regex channel
<Paradox>
you dont like boiled shoe?
tay1 has joined #ruby
<wmoxam>
Paradox: yeah, that's an annoying attitude, but it is a counterreaction from the "USA! USA! USA!" that comes through traditional media 24/7
<shevy>
lol
<Hanmac>
canada and america wants to revive ACTA ... i thought necromancy was forbidden ...
<shevy>
the only thing the UK have going is monty python
<Paradox>
wmoxam, i dont watch traditional media so i dont get that
reset has joined #ruby
<ddd>
love my some Monty!
<aedorn>
as far as laid back ... Hawaii. Those islands just change you
tay1 has quit [Read error: Connection reset by peer]
<Paradox>
nah
Mattix has quit [Ping timeout: 245 seconds]
<Paradox>
tahiti
<ddd>
yeah I've quit watching most american based news channels
beneggett has quit [Ping timeout: 272 seconds]
<shevy>
Hanmac and it happens in europe too, so... but yeah, I was surprised that canada was leading this latest new charge
<wmoxam>
Paradox: you don't watch movies?
<Paradox>
wmoxam, rarely
stkowski has quit [Quit: stkowski]
<shevy>
most movies are really bad
<wmoxam>
Paradox: they play 'Independance Day' up here pretty regularily
tay1 has joined #ruby
<Paradox>
usually i watch independent shit because, according to my friends, im a huge fucking hipster
c0rn has joined #ruby
* Paradox
looks down
<Paradox>
god damn it
<Paradox>
im wearing a bundler T-shirt
<Paradox>
yep
<shevy>
ddd you dont like FOX news anymore? :(
workmad3 has joined #ruby
<Paradox>
im a hipster :(
<ddd>
I mean I do watch BBC America but I also watch Democracy Now, Aljezeera English, and a bunch of others. Quite a few non mainstream, and most (except Democracy Now) not based in the US
tay1 has quit [Read error: Connection reset by peer]
<ddd>
shevy: I never did
<wmoxam>
Paradox: no you're not, you just called yourself one
<Hanmac>
shevy i think they are puppeted and america is pulling the strings
<Paradox>
wmoxam, oh good
<Paradox>
thank you
beneggett has joined #ruby
greybott has joined #ruby
<ddd>
FOX is consistently voted the least trustworthy news outlet in the US
<Paradox>
i try telling my friends im not one
tay1 has joined #ruby
<shevy>
I watched democracy now a few times... stopped with aljazeera after they kept on hyping arab spring crap
<Paradox>
but they insist i am :(
<wmoxam>
Paradox: besides real hipsters were hipsters before it was cool
<wmoxam>
like 2002
ArchBeOS is now known as ArchBeOS-Dead
ArchBeOS-Dead has left #ruby ["Leaving"]
stkowski has joined #ruby
<ddd>
shevy: well for the arabs that was a HUGE deal
<aedorn>
I love Fox news... they give so much material to The Daily Show.
<shevy>
ddd hehe yeah but people still watch it! I think they are addicted to drama
<Paradox>
not my fault i like cut copy and american apparel t-shirts and android and headphones and ruby
havenwood has joined #ruby
<Paradox>
thats what i do
tay1 has quit [Read error: Connection reset by peer]
<ddd>
shevy: probably because they can without guns to the head
<Paradox>
im too poor to be a hipster anyway
gaahrdner has quit [Remote host closed the connection]
<shevy>
ddd :(
<wmoxam>
Paradox: yeah, none of that is hipster dude
<wmoxam>
:p
happydude has quit [Quit: Leaving]
tay1 has joined #ruby
<lewix>
$:.map {|s|RbConfig::CONFIG.key(s)}
<Paradox>
wmoxam, good
<lewix>
oops sorry it was meant for irb
<wmoxam>
Ruby == mainstream. Android == largest phone OS marketshare
<Paradox>
finally someone who says im not something im not
<shevy>
$: looks so ugly
<lewix>
evenix: working hard?
<Paradox>
anyway
<ddd>
don't know if i'm hipster, i just like my jeans, t-shirts, boots, and baseball style caps.
<Paradox>
i really gotta go
tay1 has quit [Read error: Connection reset by peer]
<Paradox>
ddd, baseball caps arent hipster at all
mlr has left #ruby [#ruby]
<shevy>
ddd a cap as well?
<ddd>
boots mainly because i like hiking
<Paradox>
sort of the opposite
<Paradox>
in merika
<ddd>
shevy: i'm rarely without one outside
<Paradox>
baseball caps = redneck
<shevy>
hehe
<ddd>
Paradox: hah as if
tay1 has joined #ruby
<Paradox>
cya guys
<wmoxam>
hipster is just a) a marketing strategy (b) a recptical for hate and smugness. Kinda like what 'hippy' became
<wmoxam>
"fuckin' hippie crap"
<ddd>
depends on the cap. if its NAPA, an auto parts store, truck stop/truck monster rally, or similar, oh yeah. definitely redneck :)
matled has joined #ruby
<wmoxam>
ddd: + NASCAR
<ddd>
yeah i've a couple friends that are hippies and MAn are they tipshit over the hijacking of 'hippy'
mpfundstein has quit [Remote host closed the connection]
<evenix>
lewix: creaing a Jira bot/script .. they have a shitty api
<evenix>
creating*
<ddd>
ok kids are home. time to play dad for awhile
Criztian has joined #ruby
<aedorn>
Hmmm... so killing a thread that webrick is started in doesn't kill webrick, but the thread does get marked as dead. That's just strange to me.
* C0deMaver1ck
was just given push access to a gem he sent a single pull request too
<becom33>
shevy, well the problem is I'm using this gem called clipboard
<shevy>
becom33 no. (1) did you manage to unpack the gem? yes/no. answer: yes
<becom33>
yes
<Xeago>
japanese, korean, anything that helps me watch anime :)
<apeiros_>
Xeago: it's even on just plain twich.tv :D
cupakrom- has left #ruby [#ruby]
<apeiros_>
Xeago: well, japanese is on my list
<shevy>
if you managed to unpack, you dont have a problem with unpack. ok, now what remains is, you may have a problem using the code
<shevy>
what is the problem
<becom33>
so copied the clipboard folder also
<apeiros_>
but wanted to get into the habit of learning again first with an easier language :)
<shevy>
gem clipboard - I dont know that gem.
<stefkos>
what IDE is the best to use with Ruby?
<apeiros_>
Xeago: oh wow, lots of women in the audience, amazing
<Clownz>
fim
<atmosx>
stefkos: vim
<shevy>
stefkos you dont really need an IDE. ruby is simple
<Clownz>
fim
cupakromer has joined #ruby
<Clownz>
vim
<shevy>
lol
<shevy>
fim!!!
<Xeago>
apeiros_: yea, crowd is awesome!
<apeiros_>
bling?
<stefkos>
well i know
<Clownz>
STAHP
<shevy>
bling *.rb
<ddd>
if you *must* use an IDE, then RubyMine. But there's no real need for an IDE with Ruby. Its pretty dead simple
<stefkos>
but if i want to?
<stefkos>
im newbie in Ruby
<becom33>
but still its have a problem getting source trough the clipboard folder
<shevy>
stefkos then most IDEs will suck hahaha :D
<stefkos>
know c,c++,java,asm
<apeiros_>
Xeago: well, my wife asked where the next world championship will be held - she wants to go there with me :D
<shevy>
stefkos Hanmac uses eclipse I think
<Xeago>
stefkos: I found it easier to start in vim/textmate
<atmosx>
stefkos: vim + project plugin
<becom33>
`const_get': cannot load such file -- clipboard/linux
<stefkos>
but need it to do SketchUp plugins
<Xeago>
than to learn an IDE
<atmosx>
+ a bunch of other plugins
<apeiros_>
haven't gotten her to play yet, but she watches replays with me at times
<Xeago>
oh cool!
<stefkos>
thx guys
<becom33>
both file clipboard.rb and clipboard folder are in the same directory
<stefkos>
will check
<shevy>
stefkos try sublime perhaps. I use bluefish v1.0.7 but it's too old now... I try to switch, but the different editors/IDEs all have good parts, but also bad parts...
<ddd>
an IDE pretty much just gives you the ability to have Help on standby, ability to refactor more easily, and things like code folding (which vim can do with addons quite well too), and jumping from definition to definition etc (which vim can also do)
<Xeago>
if she wants someone to practice with, my girlfriend also wants to play, (has no sc2 yet tho), she kinda onebases, and 1 of each production thingy
<Hanmac>
sefkos: pure ruby or rails?
<atmosx>
...
<stefkos>
shevy, just tryed aptana, but im getting some errors
<Xeago>
she doesn't get supply blocked as much as I do tho :P
<stefkos>
pure now
m8 has joined #ruby
<apeiros_>
Xeago: ^^
<stefkos>
maybe later rails
<apeiros_>
Xeago: I'll tell her. but she's probably too much in her studies anyway.
<atmosx>
ddd: trying to compare any ide with what vim + plugins can do is dead end: vim can do *more*
<shevy>
becom33 those are the file names
<shevy>
becom33 you dont have to literally copy the names
<becom33>
shevy, I know
<ddd>
atmosx: I disagree. I've used vim for years, and RubyMine alone does what it can do plus some
<becom33>
no it needs those files :/
<julian-d_>
vim is the bestest.
<apeiros_>
Xeago: but would be awesome if we got them to play together :D
<atmosx>
ddd: does RubyMine understand haml, slim, etc? have snippets for all of them?
<shevy>
KILL THAT PROJECT
<Clownz>
people fear of vim because its unique ways of doing stuff. but once u get the hang of it then its all fun
<apeiros_>
Xeago: it hasn't been announced where this years world championship will be held, no?
<ddd>
vim is just very minimalistic on memory, graphical look, etc. Most IDEs come preconfigured for all the things you have to add plugin after plugin to vim to do
<shevy>
vim messes your brain up like a drug
<Hanmac>
becom33 what is your ruby version?
<Clownz>
loll
<Xeago>
apeiros_: don't think so, than again I don't follow announcements that much
rtdp has quit [Ping timeout: 245 seconds]
<becom33>
Hanmac, ruby 1.9.3p0
<Xeago>
I only lurk strategy on TL and elitistjerks
<Flex>
now now, this is all very well.....................but can anyone help with my problem? ^^^^ ? :)
<ddd>
atmosx: vim doesn't either without adding tons of plugins,a nd the snippets package is still very minimalistic, and yes, RM understand haml, css, etc
<Hanmac>
stefkos: eclipse is good but it does not support ruby1.9 syntax ... but its useful when you write C(++) exitensions
<becom33>
shevy, is vim good
<shevy>
Flex what was your problem?
LouisRoR has joined #ruby
<apeiros_>
I do. I was a bit sad I didn't go to beijing '12 :-(
<atmosx>
ddd: nope, just 2 bundles and you're all setup.
<Clownz>
hmmm................................................. what problem???
<ddd>
nor is the snippets file very up to date either
<shevy>
becom33 the core is good, yes. but it takes 10000 years to master it. so I gave up
<becom33>
I kinda don't like vim . not much user friendly
<atmosx>
ddd: you don't need "tons" it's really easy.
<ddd>
atmosx: hardly
<Flex>
sorry for repost :/
<shevy>
Flex ok you have a nil object there
<atmosx>
ddd: okay we have different definitions for easy/hard then
<stefkos>
Hanmac, I see that I have ruby 193
<Clownz>
Flex, maybe it returns null or something
<stefkos>
on windows
Takehiro has joined #ruby
<becom33>
I use aptana IDE
<becom33>
its good
<atmosx>
stefkos: you want to write ruby code on windows?
<Flex>
but it shouldnt
<Flex>
lol
<shevy>
Flex config is nil, right?
<becom33>
customized Eclipse
alexim has quit [Quit: sleep]
<stefkos>
becom33, i have ut but im getting error: You must pass in the path to the file to launch.
<Clownz>
Flex, analyze your variables
<Flex>
no config is there
<stefkos>
atmosx, i have only this at home on x86
<atmosx>
I see
<stefkos>
atmosx, rest my machines are powerpc ones:)
<becom33>
stefkos, are you talking about the project path ?
<atmosx>
ppc ones? hm
<shevy>
Flex well, something is wrong with config
<stefkos>
2 PowerBooks
<stefkos>
Pegasos2
<atmosx>
I think rvm does not compile on ppc
HecAtic has joined #ruby
<stefkos>
Efika, Amiga with ppc
jrendell has joined #ruby
<becom33>
yes u need to give a workspace path to work with the IDE
<Hanmac>
stefkos: you nomaly should not have a problem with eclipse ... but each other editor with syntax highlight should be good enough
<atmosx>
running linux or osx?
<shevy>
Flex you must check if config is ok before assigning or using [] on it
<stefkos>
becom33, yep
joshua1983 has joined #ruby
<Flex>
hokay
<stefkos>
atmosx, MorphOS , linux or amigaos:)
<becom33>
stefkos, so give it a workspace path
mpfundstein has joined #ruby
<atmosx>
stefkos: amigaOS? you're cool :D
mercwithamouth has joined #ruby
joshua1983 has quit [Client Quit]
m_3 has joined #ruby
<atmosx>
stefkos: do you play SWOS?
<ddd>
atmosx: to get the same functionality out of vim that I get with Rubymine I have to add roughly 30 plugins (ranging vrom vim-vroom to vim-rails to YankRing, to nerdtree, etc)
<stefkos>
Hanmac, dont care about highlighthing ...
<ddd>
s/vrom/from/
<stefkos>
atmosx, from time to time
DrShoggoth has joined #ruby
ebobby has quit [Ping timeout: 260 seconds]
<stefkos>
becom33, how?
<atmosx>
ddd: k
<atmosx>
stefkos: cool, it's my all time fav game
<mercwithamouth>
does anyone know of a way to print xml out nicely? opposed to craziness...i'm using nokogiri
<stefkos>
.rbs files are "scrambled". You can get the scrambler.exe from Google by signing a NDA. It is a Google-proprietary format that does not work outside of SketchUp.
mneorr has joined #ruby
mneorr_ has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
ebobby has joined #ruby
macmartine has joined #ruby
becom33 has quit [Ping timeout: 252 seconds]
nricciar has joined #ruby
nga4 has joined #ruby
techlife has joined #ruby
chussenot has joined #ruby
motto has joined #ruby
mockra_ has joined #ruby
<shevy>
lol
Mission-Critical has joined #ruby
m8 has quit [Ping timeout: 240 seconds]
<shevy>
google is evil
<Hanmac>
stefkos i dont think they have somethign todo with ruby
<shevy>
go sign your soul under that contract
<stefkos>
yep I see
axl_ has quit [Quit: axl_]
<gf3>
Google backwards actually spells "murder"
hbpoison_ has quit [Ping timeout: 252 seconds]
<gf3>
So yeah
<shevy>
that rocks gf3 :)
<stefkos>
dont like them too
<shevy>
they have gotten too big now
KenDhia has joined #ruby
forced_request has joined #ruby
<stefkos>
and doing a lot of shit like Android
<tubbo>
botz
mockra has quit [Ping timeout: 264 seconds]
alex__c2022 has quit [Read error: Connection reset by peer]
alex__c2022 has joined #ruby
jean-louis has joined #ruby
io_syl has joined #ruby
<macmartine>
I'm trying to create a regex that find digits that are not preceded buy 'up '. This is what feels should be right not it matches any digits /(?!up )\d+/
alex__c2022 has quit [Client Quit]
hbpoison has joined #ruby
<macmartine>
*by, not 'buy' :)
alex__c2022 has joined #ruby
razibog has quit [Ping timeout: 272 seconds]
v0n has quit [Ping timeout: 264 seconds]
sailias1 has quit [Ping timeout: 248 seconds]
<macmartine>
nevermind (?<!up )\d+
* stefkos
will play with ruby a while on second screen
motto has quit [Quit: Sto andando via]
kloeri_ is now known as kloeri
<atmosx>
is there any quick/easy way to handle european time format with Time.new?
<whap>
julian-d_: so I get what's expected at level 2
Mission-Critical is now known as MissionCritical
<julian-d_>
>=1 Ruby disallows the use of tainted data by potentially dangerous operations.
Vektur has joined #ruby
<whap>
but then I drop to 4 and it works!
beneggett has joined #ruby
<julian-d_>
you're inside of the rescue block, so I'm not sure how it's supposed to work in there
<whap>
julian-d_: pull it out of the rescue. same behaviour
<martxel>
/join #python
hms has joined #ruby
<martxel>
(sorry)
mark_locklear has quit [Read error: Operation timed out]
hms has left #ruby [#ruby]
baroquebobcat_ has joined #ruby
<Clownz>
is it me or its easy to see some peoples ip here?
yashshah has quit [Ping timeout: 260 seconds]
HecAtic has joined #ruby
baroquebobcat has quit [Ping timeout: 250 seconds]
baroquebobcat_ is now known as baroquebobcat
akashj87 has quit [Ping timeout: 272 seconds]
Guest66225 is now known as mephux
mephux has quit [Changing host]
mephux has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
squidBits has quit [Quit: whoops]
tvw has quit [Ping timeout: 272 seconds]
uris has joined #ruby
whap has quit [Remote host closed the connection]
invisime1 has quit [Quit: Leaving.]
mneorr has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
tjbiddle_ has joined #ruby
mneorr has joined #ruby
Quadlex is now known as AwayLex
Zolo has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 256 seconds]
chipotle_ has joined #ruby
mrsolo has joined #ruby
berserkr has joined #ruby
HecAtic has quit [Ping timeout: 260 seconds]
hashmal has joined #ruby
lewix has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 272 seconds]
tjbiddle_ is now known as tjbiddle
Galen has joined #ruby
<Joel>
Clownz: ?
chrishunt has quit [Read error: Connection reset by peer]
sepp2k1 has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 260 seconds]
chrishunt has joined #ruby
<Galen>
Hey all, anyone used RestClient to handle boolean responses from an API? On a web interface I get boolean, but RestClient keeps giving me strings.
<julian-d_>
Clownz: you can often see people's IPs on IRC networks
<julian-d_>
it's not really a problem
<julian-d_>
unless you're doing something illegal
<julian-d_>
Galen: as in "True" or "False"
<julian-d_>
?
<julian-d_>
as strings?
<Galen>
julian-d, yeah, I'm getting "true" back instead of True
<julian-d_>
but the web interfaces gives that back as "True"
<julian-d_>
?
<Galen>
The API is sending True
<Galen>
or true, really
<julian-d_>
Well, either way that is probably a string
<julian-d_>
since your API has no idea that you're wanting it to be boolean
<Galen>
api says it'll send a boolean
<julian-d_>
that doesn't mean anything
<julian-d_>
it likely just sends a string of true or false.
<julian-d_>
and that is considered "boolean"
jdunck has joined #ruby
<Galen>
ah, fair
mneorr has joined #ruby
dangerousdave has joined #ruby
<Galen>
Ok, I'll process it myself then :) thanks!
<julian-d_>
so, you'd probably want to coerce that into a boolean
<Galen>
def to_boolean(string); string == "true"; end <-- something like that
<Galen>
?
<julian-d_>
>> class String; def to_boolean; string == "true"; end; end; p "false".to_boolean
<eval-in>
julian-d_ => /tmp/execpad-613d1912a64e/source-613d1912a64e:2:in `to_boolean': undefined local variable or method `string' for "false":String (NameError)
<eval-in>
from /tmp/execpad-613d1912a64e/source-613d1912a64e:2:in `<main>' (http://eval.in/12468)
<julian-d_>
>> class String; def to_boolean(string); string == "true"; end; end; p "false".to_boolean
<eval-in>
julian-d_ => /tmp/execpad-016647c75811/source-016647c75811:2:in `to_boolean': wrong number of arguments (0 for 1) (ArgumentError)
<eval-in>
from /tmp/execpad-016647c75811/source-016647c75811:2:in `<main>' (http://eval.in/12469)
<Galen>
ah, yeah, extend String. Makes sense
Takehiro has joined #ruby
<Galen>
thanks for the help!
tenmilestereo has joined #ruby
<julian-d_>
>> class String; def self.to_boolean; self == "true"; end; end; p "false".to_boolean
_nitti has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
jrajav has joined #ruby
El_loco has joined #ruby
<maxmanders>
I have an array of strings, and for values in that array that match a regex, I want to add those values to a separate hash; what would be the idiomatic Ruby way of achieving this?
aapzak has joined #ruby
Alecs has joined #ruby
arturaz has quit [Read error: Operation timed out]
phantasm66 has quit [Quit: *sleeeep….]
tspike has joined #ruby
MrZYX|off is now known as MrZYX
piotr__ has joined #ruby
piotr has quit [Ping timeout: 248 seconds]
<apeiros_>
maxmanders: got some code to show of what you tried so far?
Ontolog has joined #ruby
BleepBloop has joined #ruby
chussenot has quit [Quit: chussenot]
BleepBloop has left #ruby [#ruby]
failshell has quit [Remote host closed the connection]
jerius has quit []
jgarvey has quit [Quit: Leaving]
darkc0met has joined #ruby
philcrissman has quit [Remote host closed the connection]
fixl has joined #ruby
Galen has quit [Quit: Page closed]
<julian-d_>
>>p ["test", "ruby", "rubinius"].select{|x| x ~= /rub/}
<maxmanders>
I thought about using select - still learning - thought select was just for returning a subset of an array (versus map) - at the moment I was just going to do Array.each… and use if val =~ /regex/ ...
newUser1234 has quit [Remote host closed the connection]
j^2 has quit [Ping timeout: 255 seconds]
yalue has quit [Quit: Leaving]
Davey has quit [Quit: Computer has gone to sleep.]
<maxmanders>
Thanks folks - food for thought :-D
HecAtic has joined #ruby
aaronmcadam has joined #ruby
<apeiros_>
btw. julian-d_ - eval-in got improved. you no longer need to print
<apeiros_>
>> %w[hello world this is awesome].grep(/s/)
<maxmanders>
Grep looks to be just what I was after! I'm sure it's the same of any new language, and so far I'm *loving* Ruby, that the steepest part of the learning curve is learning the methods available to the various language objects.
<breakingthings>
and there I go highlighting c-o-o-l again.
spider-mario has quit [Remote host closed the connection]
<Clownz>
yo mama is so fat that her .size will cause a buffer overflow
mephux has quit [Ping timeout: 276 seconds]
<julian-d_>
oh, nice, apeiros_
<breakingthings>
apeiros_: is evali's source opens?
<apeiros_>
breakingthings: not mine
<apeiros_>
ask charliesome
MehLaptop has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
V8Energy has joined #ruby
breakingthings has quit []
<e-dard>
Is it possible to have a multi-line string in Ruby where the start of a new line is not the first column of the file?
carlyle has quit [Remote host closed the connection]
ofcan has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
welandB has joined #ruby
welandC has quit [Ping timeout: 264 seconds]
<e-dard>
When you're indented a few levels and I use a %Q() notation each newline has many spaces preceding the first character (because I'm indenting the string to match the format of the code)
jjbohn has quit [Quit: Leaving...]
wallcloc_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
atmosx has quit [Quit: And so the story goes…]
nga4 has quit [Ping timeout: 246 seconds]
robbsan has joined #ruby
evenix has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
cobragoat has quit [Remote host closed the connection]
<robbsan>
Will ruby 2 have reasonable "block commenting"? Something other than =begin =end?
cobragoat has joined #ruby
jjbohn has joined #ruby
HecAtic has quit [Ping timeout: 256 seconds]
<apeiros_>
robbsan: ruby 2 is already out
<apeiros_>
and it still has the same reasonable block commenting it had before: multiple #
wallclockbuilder has quit [Ping timeout: 252 seconds]
khismeti_ has joined #ruby
<apeiros_>
which any sane editor will do for you
cobragoat has quit [Read error: Connection reset by peer]
cobragoat has joined #ruby
kn330 has quit [Ping timeout: 248 seconds]
matchaw has quit [Ping timeout: 260 seconds]
Quebert has joined #ruby
<robbsan>
if you want to have a block of text, you have to use =begin with =end... multiple # have to be on every line.
<robbsan>
that's unreasonable.
<banisterfiend>
robbsan: your editor should comment it for u
<banisterfiend>
select region --> comment
<robbsan>
sure...
<banisterfiend>
it inserts the #
<robbsan>
do it all the time.
<banisterfiend>
well, i've never needed anything other than that
atno has quit [Read error: Connection reset by peer]
<robbsan>
but again, why not have a normal construct that exists in every other language.
<banisterfiend>
robbsan: well, why not just put it in a string?
tjbiddle has quit [Ping timeout: 252 seconds]
<banisterfiend>
%{
atno has joined #ruby
<banisterfiend>
code i want to comment
tjbiddle__ has joined #ruby
<banisterfiend>
}
<banisterfiend>
that works
<apeiros_>
robbsan: "every other language" - I think you don't know as many languages as you think :-p
forrest has quit [Quit: Leaving]
kn330 has joined #ruby
<havenwood>
robbsan: #'s seem nice to look at, and who wants to encourage wall-of-text comments?
cmarques has quit [Ping timeout: 240 seconds]
<apeiros_>
yeah, they could even drop =begin/=end
<robbsan>
why have =begin and = end?
<apeiros_>
it's barely ever used
<apeiros_>
# is fine
<havenwood>
robbsan: So you *can* do it if you must, but to discourage its use.
<banisterfiend>
robbsan: python doesn't support block comments (apparently, just looked it up)
<robbsan>
it's very 70's, fortran 77 style
<apeiros_>
what I'd much more prefer was a proper documentation string, which would be part of the regular AST
jonathanwallace has joined #ruby
<robbsan>
Not really a fan of python either.
<apeiros_>
could be as simple as start with ##
beiter has quit [Quit: beiter]
<robbsan>
actually, I like ruby a lot...
<banisterfiend>
robbsan: and the perl way seems the same as ruby
atno has quit [Read error: Connection reset by peer]
<banisterfiend>
robbsan: well just put the 'comment' in a multiline string, using %{ }
<banisterfiend>
or a heredoc, if u prefer that
<Caelum>
rvm is awesome
danneu has joined #ruby
<robbsan>
hmm, never tried the %{} thing....
atno has joined #ruby
<Xeago>
banisterfiend: I'd say the ruby way seems like the perl way
<apeiros_>
meh @ %{}
<apeiros_>
I mean, meh @ %{} for "comments"
yfeldblum has joined #ruby
<Caelum>
which came first, rvm or perlbrew?
hbpoison has quit [Ping timeout: 264 seconds]
<robbsan>
why not have something like #/* and */#
tjbiddle_ has quit [Ping timeout: 272 seconds]
hbpoison has joined #ruby
El_loco has quit [Ping timeout: 245 seconds]
<robbsan>
okay, Ill get off it, just an old C guy trying to write some ruby...
<havenwood>
robbsan: Then people would use that, and comments would get bigger and uglier.
<havenwood>
:P
<apeiros_>
robbsan: it doesn't really add value
<havenwood>
robbsan: Honestly though, my best guess for why they aren't implemented thusly is a desire to discourage overuse.
<aedorn>
I like people coming from pthon doing """ """ comments
<apeiros_>
only to people who code with magnetic needles and a steady hand
<e-dard>
banisterfiend: Python does support block comments, using the triple quote syntax """ foo """
<aedorn>
I can't even type Python anymore.
<robbsan>
I guess, I found it useful for comments in code... never bought into the code comments itself stuff.
<e-dard>
banisterfiend: however, they have a specific use, and that's not for commenting arbitrary code.. :)
dmoctezuma has quit [Remote host closed the connection]
<banisterfiend>
e-dard: that's a string, not a comment afaik
<apeiros_>
robbsan: well, API docs != in-code docs
<e-dard>
banisterfiend: no. When it's not a doctoring it's ignored (like a comment)
<apeiros_>
I think in-code docs/comments are largely unnecessary with good ruby code
toekutr has joined #ruby
<banisterfiend>
e-dard: seems you're right
<aedorn>
I like to have my comments to code ratio at 77:1
<banisterfiend>
i used to be pro comments, but im now more or less anti them
<robbsan>
lol
* e-dard
takes Pythonista hat off and puts Ruby shower cap on.
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
<banisterfiend>
they get out of date very quickly, they're difficult to maintain among constant refactoring
<havenwood>
aedorn: # WHEREFORE, PREMISES CONSIDERED, programmer cometh now to describe the preceding one line of code. Let us begin, Chapter 1:
<banisterfiend>
and if the code is good it shoudl speak for itself anyway
<robbsan>
then take out the =begin =end, go all the way, or give me a reasonable block comment syntax
<aedorn>
havenwood: ... you've been reading my stuff!
<robbsan>
don't languish in fortran 77 land
<havenwood>
So much nicer to have no comments than wrong comments.
<robbsan>
:)
<apeiros_>
robbsan:
<apeiros_>
23:08 apeiros_: yeah, they could even drop =begin/=end
<apeiros_>
23:08 apeiros_: it's barely ever used
<apeiros_>
you'll not see much =begin/=end in ruby code
andres833 has joined #ruby
<havenwood>
robbsan: Specs are the new comments. :P
<apeiros_>
or unit tests :)
<robbsan>
true, I agree with that one
atno has quit [Read error: Connection reset by peer]
<robbsan>
cukes.
<apeiros_>
they're much better wrt refactoring too
lele has quit [Ping timeout: 256 seconds]
<havenwood>
That is my one rule, never use tools named after vegetables.
<apeiros_>
or changes in general
<aedorn>
hmmm, I think that's true. I spent most of last week and this weekend just redoing rspec examples in one project and unit tests in another.
atno has joined #ruby
<apeiros_>
havenwood: soooo you use steak? :D
moos3 has quit [Quit: Computer has gone to sleep.]
<havenwood>
apeiros_: Or bacon! Minitest::EggsBenedict!
lele has joined #ruby
Joel has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931]]
<havenwood>
Okay, last one is a lie. I do like the colors from Minitest::Pride though.
cantonic has quit [Quit: cantonic]
__Big0__ has quit [Remote host closed the connection]
<havenwood>
banisterfiend: Saw that Pry uses bacon. Prefer it to minitest? Seems very nice.
julian-d_ has quit [Quit: Computer has gone to sleep.]
<banisterfiend>
havenwood: i prefer the #should thing, and i also think bacon is *slightly* faster :)
<apeiros_>
havenwood: now I'm hungry :(
<banisterfiend>
i dont know if this is particularly fast but:
<ofcan>
Hi guys! I come from Rails and am implementing Game of Life in Ruby and have a question. I initialize the Cell object with x and y coordinates. How to make it so that there cannot be 2 cells at one spot at the same time?
cr3 has quit [Quit: leaving]
LouisRoR has quit [Ping timeout: 256 seconds]
<e-dard>
In terms of testing methods that take paths as arguments and read files, is the normal idiom in Ruby create test files on the file system?
<e-dard>
Or is it common to mock out File.read?
<banisterfiend>
ofcan: just curious, how long have you been programming rails? :)
codecop has quit [Quit: Išeinu]
emergion has joined #ruby
<ofcan>
banisterfiend: 7ish months or so:)
pcarrier has joined #ruby
andres833 has quit [Quit: Saliendo]
<e-dard>
ofcan: you know Rails is a framework right? What relevance does it have to your question?
<apeiros_>
e-dard: theoretically, mock out everything that isn't the unit under test. in practice, just mock out things which introduce a lot of complexity into the test system
jjbohn is now known as jjbohn|afk
<ofcan>
e-dard: none whatsoever. :) ok, so how do i make sure i cant initialize 2 Cell objects at the same spot?
<apeiros_>
oh, also s/mock/stub/
tjbiddle__ has quit [Ping timeout: 272 seconds]
sambao21 has quit [Ping timeout: 272 seconds]
slopjong has quit [Remote host closed the connection]
<e-dard>
apeiros_: OK, understood.
davetherat has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
davetherat has joined #ruby
idkazuma has joined #ruby
geggam_wk has quit [Remote host closed the connection]
<banisterfiend>
ofcan: iterate over your stores cells colleciton and check
<banisterfiend>
sotred
<banisterfiend>
stored
Vainoharhainen has joined #ruby
<Xeago>
apeiros_: play some hots soon?
Morkel has quit [Quit: Morkel]
<apeiros_>
soon!
<ofcan>
banisterfiend: ok, but at what point do i do that in the initialize method?
<apeiros_>
any time now my workload will be done
<Xeago>
aight
<Xeago>
the later, the more practice I will get
<Xeago>
haven't touched hots yet
anderse has quit [Quit: anderse]
nateberkopec has quit [Quit: Leaving...]
<Xeago>
today and IEM showed immortalsentry based stuff is still strong :)
<Xeago>
I dislike terran tho
HecAtic has joined #ruby
blacktulip has quit [Remote host closed the connection]
Takehiro has joined #ruby
<Xeago>
zealotarchon melts to hellbat thor
<apeiros_>
also I decided to drop my prerequirement
<Xeago>
:OOO
<Xeago>
wAAT
<apeiros_>
after all, I did my taxes 6months early
<apeiros_>
getting my computer now :D
<Xeago>
fine
<Xeago>
:P
<Xeago>
jsut wanna play now xD
<Xeago>
you tease me as good as my gf
<banisterfiend>
ofcan: you probably want a factory method that's responsible for checking that stuff
<apeiros_>
zerg is weak in HOTS :(
linguini has joined #ruby
<apeiros_>
Xeago: Saturday? 4h HOTS? :)
emergion has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
<Xeago>
that is like a week away
<Xeago>
will ask my gf
<Xeago>
ahh, totally forgot it was monday
chussenot has joined #ruby
* Xeago
is not occupied and thusly looses track of time
theRoUS has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
atno has joined #ruby
<Xeago>
thought it was weekend'ish
dangerousdave has quit [Quit: Leaving...]
alex__c2022 has quit [Quit: alex__c2022]
<ofcan>
banisterfiend: hmmm... how do you do validations in ruby anyway? Googling reveals Rails stuff...
<banisterfiend>
^ proof rails rots the brain :P
<banisterfiend>
jk
<ofcan>
banisterfiend: :)
tommylommykins has quit [Remote host closed the connection]
<banisterfiend>
ofcan: you just 'validate' it yourself, you iterate over the collection of cells and check there's none with the x, y you choose
tspike has quit [Ping timeout: 264 seconds]
<banisterfiend>
if there is one, then you choose another one, and check again
kornnflake_zzz is now known as kornnflake
<banisterfiend>
but there's more efficient ways of doing this, im sure
Takehiro has quit [Ping timeout: 260 seconds]
<banisterfiend>
depending on how you store oyur data
aed has quit []
willob has quit [Quit: Leaving.]
Alecs is now known as [Alecs]
[Alecs] has quit [Remote host closed the connection]
<andres833>
some person that like work in colombia project?
kofno has quit [Ping timeout: 260 seconds]
nari has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle__ is now known as tjbiddle
alterpub has quit [Remote host closed the connection]
<e-dard>
banisterfiend: well I was thinking more something that has a constant time lookup, e.g., a hash in a hash
<Spooner>
You can hash via an array: world[[x, y]]
<banisterfiend>
e-dard: tbh, the problem you're asking to solve is so (conceptually) simple, that if you can't solve it you shouldn't be caring about O(n) vs O(1) just yet ;)
cyong has quit [Ping timeout: 245 seconds]
_nitti has joined #ruby
R_Macy_ has joined #ruby
<e-dard>
I'm not asking anything!
hasimo has joined #ruby
kpshek has quit []
<banisterfiend>
e-dard: ah, ofcan sorry
tjbiddle_ has joined #ruby
<banisterfiend>
wrong guy
<banisterfiend>
anyway, get it working first, then later on think about making it fast
berserkr has quit [Quit: Leaving.]
pepper_chico has joined #ruby
<e-dard>
Spooner: that's the ticket! (we can't do that in Python as lists are mutable).
<Spooner>
No, you can do it in Python, because you can use a tuple with a dict: world[(x, y)]
<banisterfiend>
Spooner: anything you like about python, say a feature you wish ruby had
<Spooner>
banisterfiend, List comprehension.
<Spooner>
(and I know it is easy to emulate in Ruby).
<swarley>
i love list comprehensions
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
beneggett has joined #ruby
tjbiddle_ has joined #ruby
<swarley>
[x | x <- 1..10, x % 2 == 0]
<Spooner>
And tuples (we have implicit tuples in Ruby, but we can't have explicit ones).
<swarley>
[2, 4, 6, 8, 10]
<swarley>
i wish ruby had an explicit type system
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
chipotle_ has quit [Quit: cya]
<swarley>
def herp(String foo) ... end
cyong has joined #ruby
<Spooner>
That is Haskell. Not as pretty in Python, but still niceish: [x for x in range(1, 11) if x % 2 == 0]
<swarley>
yeah i know it's haskell, but it's still a comprehension :p
mpfundstein has quit [Remote host closed the connection]
jjbohn|afk has quit [Quit: Leaving...]
kornnflake is now known as kornnflake_zzz
<Spooner>
Oh, and speaking of which, I'd really like open ranges (e.g. being able to say just 1.. and mean 1..infinity).
zeade has joined #ruby
zeade has quit [Client Quit]
<Spooner>
swarley, I know you know it is Haskell, but not everyone might as we were just on Python.
tjbiddle has quit [Ping timeout: 245 seconds]
tjbiddle_ is now known as tjbiddle
<Spooner>
banisterfiend, Probably more things in Ruby I'd like in Python though ;)
adeponte has quit [Read error: Connection reset by peer]
<e-dard>
Spooner, sorry I don't know what I was thinking, or saying in fact. :-S
alanp_ has joined #ruby
chipotle_ has joined #ruby
adeponte has joined #ruby
sailias has joined #ruby
alanp has quit [Disconnected by services]
alanp_ is now known as alanp
khismeti_ has joined #ruby
<swarley>
Oh, yeah but to have 1..Inf ruby would have to be purely lazy
jbueza has quit [Quit: Leaving.]
<Spooner>
e-dard, You were right. You can't use a list to index a dict. Ironically, hashes need to be explicitly rehashed if you change any of the mutable keys, so it isn't any different. Ruby just lets you get away with murder :D
<bricker`work>
So where's a good place to host RDoc pages? rdoc.info is okay, are there alternatives?
_nitti has quit [Remote host closed the connection]
khismetix has quit [Ping timeout: 240 seconds]
khismeti_ is now known as khismetix
danman has quit [Quit: danman]
araujo has quit [Ping timeout: 260 seconds]
mneorr has quit [Remote host closed the connection]
feedbackloop has joined #ruby
_nitti has joined #ruby
chipotle_ has quit [Client Quit]
kofno has joined #ruby
kofno has quit [Remote host closed the connection]
m8 has quit [Read error: Connection reset by peer]
anonymuse has quit [Quit: Leaving...]
<banisterfiend>
Spooner: what's the point of tuples? what's the advatnage over just using an n-element array?
k610 has quit [Ping timeout: 256 seconds]
_nitti has quit [Remote host closed the connection]
<Spooner>
banisterfiend, A tuple is a "frozen" array that basically all you can do with is index. We have tuples implicity, but I think they are called lists in Ruby, e.g. in a, b = 1, 2
moos3 has joined #ruby
<banisterfiend>
Spooner: i know, but what's the point of them. Why would i want one over just using an array?
<Spooner>
banisterfiend, As mentioned, they are a better fit for use as a key in a dict (that is, a Python Hash) since they are immutable.
jacky has quit [Excess Flood]
kornnflake_zzz is now known as kornnflake
<banisterfiend>
that seems like something not so useful, any more common/useful examples?
HecAtic has joined #ruby
alexim has quit [Ping timeout: 245 seconds]
wobblini has joined #ruby
adamnbowen has quit [Read error: Operation timed out]
Guest85400 has joined #ruby
Guest85400 is now known as jacky
jacky has quit [Changing host]
jacky has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
tcstar has quit [Remote host closed the connection]
<Spooner>
banisterfiend, I'm not enough of a Pythonista to give more usages.
Clownz has quit [Remote host closed the connection]
<banisterfiend>
np
samphippen has joined #ruby
<aedorn>
they're really just there for optimization
<Spooner>
Yes, but what do they optimise? Memory, speed? or just "safer"?
<aedorn>
All the above
johnnygoodmancpa has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
<aedorn>
You can't modify them, they're faster to create than lists or dictionaries, and use sequential memory locations since it can only be defined once.
johnnygoodmancpa has left #ruby [#ruby]
bubbajones has joined #ruby
nga4 has joined #ruby
bubbajoness has joined #ruby
bubbajoness has quit [Client Quit]
<Spooner>
I do use them every time I don't need an actual list (In Python). For me, it is more about intention being clear.
ArchBeOS has quit [Read error: No route to host]
<banisterfiend>
Spooner: does it support the same set of methods? (except the mutators)
Davey has joined #ruby
<Spooner>
banisterfiend, You can index and iterate with them.
<cr3>
hi folks, I installed a bunch of gems with bundle install and nothing appeared under /usr/local/bin. I did gem uninstall rake, for example, and then gem install rake which created /usr/local/bin/rake. why is bundle install doing something different?
thecodethinker has joined #ruby
<thecodethinker>
How do I make a ruby project with more than just one file?
hashmal has quit [Quit: Computer has gone to sleep.]
h4mz1d has quit [Ping timeout: 255 seconds]
bdrewery has joined #ruby
<bdrewery>
Is there an 1.8 EOL announcement?
Yakko has quit [Remote host closed the connection]
jimeh has quit [Quit: Computer has gone to sleep.]