apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
adeponte has joined #ruby
bradhe has joined #ruby
thecodethinker has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<thecodethinker> Hello
predator217 has joined #ruby
zackattack_ has joined #ruby
prime has joined #ruby
wf2f has quit [Ping timeout: 250 seconds]
predator117 has quit [Ping timeout: 255 seconds]
nfk has joined #ruby
zackattack_ has quit [Client Quit]
kofno_ has joined #ruby
zackattack has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
vierja has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
Assurbanipal has quit [Remote host closed the connection]
bobdobbs` has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
SolidResolve has quit [Quit: Good bye]
pcarrier_ has joined #ruby
pcarrier_ has quit [Changing host]
pcarrier_ has joined #ruby
tekacs has quit [Ping timeout: 246 seconds]
bobdobbs has quit [Ping timeout: 264 seconds]
<thecodethinker> Are there rubysdl docs in english?
Dwarf has joined #ruby
Spitfire has quit [Ping timeout: 246 seconds]
pcarrier has quit [Ping timeout: 246 seconds]
Guest9026 has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
jpfuentes2 has joined #ruby
postmodern has joined #ruby
io_syl has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
tekacs has joined #ruby
Spitfire has joined #ruby
<thecodethinker> How would someone go about making a C++ library binding for ruby?
axhlf has quit [Remote host closed the connection]
<thecodethinker> C or C++
Guest48982 is now known as mephux
lewix_ has quit [Remote host closed the connection]
brianpWins has joined #ruby
mephux is now known as Guest66225
nazty has quit [Ping timeout: 264 seconds]
lewix has joined #ruby
pdamer has quit [Quit: pdamer]
bradhe has quit [Ping timeout: 256 seconds]
sebastianb has quit [Ping timeout: 246 seconds]
sebastianb has joined #ruby
bradhe has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
mritr_ has joined #ruby
ssvo has quit [Remote host closed the connection]
elkclone has quit [Quit: It's never too late to unplug and run.]
senayar has quit [Quit: Quitte]
lewix has quit [Ping timeout: 264 seconds]
idkazuma_ has quit [Remote host closed the connection]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
hiroyuki has quit [Read error: Connection reset by peer]
emocakes has quit [Quit: emocakes]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
UberNerdGirl has left #ruby [#ruby]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
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]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
adeponte has joined #ruby
nik_-_ has joined #ruby
mercwithamouth has joined #ruby
danneu has joined #ruby
brianpWins has quit [Quit: brianpWins]
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
pdamer has quit [Quit: pdamer]
mritr_ has quit [Ping timeout: 240 seconds]
nycjv321 has joined #ruby
mockra has joined #ruby
<nycjv321> hello can I use & for string comparision when doing evaluation against two arrays?
<nycjv321> ah I think I just figured it out
* nycjv321 facepalms
nomenkun has quit [Ping timeout: 248 seconds]
sebastianb has joined #ruby
apeiros_ has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Ping timeout: 240 seconds]
Myconix has quit [Read error: Connection reset by peer]
miso1337 has joined #ruby
adkron__ has joined #ruby
Domon has joined #ruby
sambao21 has joined #ruby
lewix_ has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
mockra has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Remote host closed the connection]
tjbiddle has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
slainer68 has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
trcm has quit [Ping timeout: 245 seconds]
lewix has quit [Ping timeout: 248 seconds]
tealmage has joined #ruby
dallasm has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
backjlack_ has quit [Remote host closed the connection]
Takehiro has joined #ruby
sambao21 has quit [Ping timeout: 252 seconds]
wf2f has quit []
charliesome has joined #ruby
mojavy has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
sleetdrop has joined #ruby
trcm has joined #ruby
sambao21 has joined #ruby
sleetdro_ has joined #ruby
ttt has joined #ruby
<pedahzur> canton7, Hanmac: Thanks! That's the confirmation I needed.
sleetdrop has quit [Ping timeout: 256 seconds]
toekutr has joined #ruby
pdamer has joined #ruby
Nimsical has joined #ruby
aytch_ is now known as aytch
pdamer has quit [Client Quit]
mritr_ has joined #ruby
generalissimo has joined #ruby
trcm has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
nari has joined #ruby
apeiros_ has joined #ruby
tomo` has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
<tomo`> What's the easiest way to add ',' for price? ex: convert '1000000' to '1,000,000'
<tomo`> philcrissman: thanks!!
<philcrissman> :D
nfk has joined #ruby
<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]
apeiros_ has quit [Ping timeout: 248 seconds]
mneorr has quit [Read error: Operation timed out]
yashshah has joined #ruby
dhruvasagar has joined #ruby
heliumsocket has joined #ruby
mneorr has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
quazimodo has quit [Ping timeout: 245 seconds]
Nuck has quit [Quit: Nuck Off]
Nuck has joined #ruby
a_a_g has quit [Quit: Leaving.]
verysoftoiletppr has joined #ruby
kn330 has quit [Ping timeout: 255 seconds]
h4mz1d has quit [Ping timeout: 248 seconds]
srm` has quit [Ping timeout: 260 seconds]
bricker`1A is now known as bricker`LA
rippa has joined #ruby
etcetera has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
maletor has joined #ruby
pooriaazimi has quit [Quit: pooriaazimi]
pen has joined #ruby
srm` has joined #ruby
danman has quit [Quit: danman]
nomenkun has joined #ruby
girija has joined #ruby
brianpWins has joined #ruby
twoism has quit [Ping timeout: 245 seconds]
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]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
pen has quit [Remote host closed the connection]
adeponte has joined #ruby
Shrink has joined #ruby
pyreal has joined #ruby
iamjarvo has quit [Quit: Leaving.]
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 .
emocakes has joined #ruby
tay11 has joined #ruby
<pedahzur> becom33: See the accepted answer.
subbyyy has quit [Ping timeout: 256 seconds]
<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. :)
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
adeponte has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
robert_ has quit [Ping timeout: 245 seconds]
a_a_g1 has quit [Ping timeout: 264 seconds]
whitedawg has joined #ruby
eAlchemist has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
Hanmac has joined #ruby
<Hanmac> shevy: http://java-0day.com/
klaas has joined #ruby
u- has joined #ruby
jurassic has joined #ruby
klaas has quit [Excess Flood]
klaas has joined #ruby
robert_ has joined #ruby
subbyyy has joined #ruby
Morkel has joined #ruby
emocakes has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 248 seconds]
arietis has joined #ruby
mafolz has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
love_color_text has quit [Remote host closed the connection]
arturaz has joined #ruby
jprovazn has joined #ruby
toekutr has quit [Remote host closed the connection]
io_syl has joined #ruby
mafolz has quit [Remote host closed the connection]
mafolz has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
Astral_ has quit [Read error: Connection reset by peer]
cableray has quit [Quit: cableray]
Astral_ has joined #ruby
ocnam has quit [Quit: Quit: Textual IRC Client: http://www.textualapp.com/]
pedahzur has quit [Ping timeout: 276 seconds]
Caius has quit [Ping timeout: 252 seconds]
subbyyy has quit [Ping timeout: 250 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
dr_bob1 has joined #ruby
emergion has joined #ruby
filipe has joined #ruby
eAlchemist has joined #ruby
Caius has joined #ruby
stkowski has quit [Quit: stkowski]
threesome has quit [Ping timeout: 255 seconds]
vieenay has joined #ruby
braoru has joined #ruby
huoxito has quit [Quit: Leaving]
quazimodo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
piotr has joined #ruby
cronus_ has joined #ruby
cronus_ has quit [Client Quit]
cronus_ has joined #ruby
emocakes has joined #ruby
eAlchemist has quit [Ping timeout: 276 seconds]
jtperreault has quit [Ping timeout: 245 seconds]
Astral_ has quit [Read error: Connection reset by peer]
<Paradox> boiled shoes
Astral_ has joined #ruby
jtperreault has joined #ruby
ryanf has quit [Ping timeout: 248 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
<Hanmac> Paradox: did you see http://java-0day.com/ ? ... look at the CVE link :P
mneorr has joined #ruby
dhruvasa1ar has joined #ruby
ferdev has quit [Quit: ferdev]
ananthakumaran1 has joined #ruby
whitedawg has quit [Quit: Leaving.]
apeiros_ has joined #ruby
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]
<Paradox> oh
<Paradox> lol
<Paradox> hahahaa
<Paradox> stupid gubberment
<Paradox> either using java or php
<Hanmac> so the exploit site was exploited? :D
jbueza has quit [Quit: Leaving.]
<cronus_> :-D
havenwood has joined #ruby
<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?
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Paradox> sort of kind of
mneorr has quit [Read error: Connection timed out]
quazimodo has quit [Ping timeout: 248 seconds]
<Paradox> more like people being grumpy because someone likes using OS X
<cronus_> ah
<Paradox> or rbenv
mneorr has joined #ruby
<cronus_> I rock Gnome 2.0 .... on a 6 year old core 2
<cronus_> whatev
<cronus_> it's cheap :)
trichloronitrome has joined #ruby
<Paradox> i use os x and rbenv because they just work and i've got better things to do than fight with my computer or argue over it
devdazed has joined #ruby
quazimodo has joined #ruby
<cronus_> sometimes you gotta get stuff done despite the crushed unicorn horns
<cronus_> wtf is this gif
<cronus_> "freerange" chickens?
<Paradox> an automatic chicken harvester
<Paradox> yup
<cronus_> fuckyea
* cronus_ saves
<cronus_> I've been using vim so many years it was a natural extension to just use rails.vim
<Paradox> http://vimeo.com/57126054 graphic
emergion has joined #ruby
El_loco has joined #ruby
adeponte has quit [Remote host closed the connection]
hasimo has quit [Remote host closed the connection]
<cronus_> ah the whole hting
aedornm has joined #ruby
<cronus_> i'm going to watch this and then go have nightmares
<cronus_> gotta get up in 4 hours
<cronus_> cya
eAlchemist has joined #ruby
El_loco has quit [Read error: Connection reset by peer]
arietis has joined #ruby
Mattix has quit [Read error: Connection reset by peer]
ferdev has joined #ruby
Mattix has joined #ruby
El_loco has joined #ruby
nomenkun has joined #ruby
ferdev has quit [Read error: Connection reset by peer]
ferdev_ has joined #ruby
verysoftoiletppr has quit []
<vieenay> how to implement function overloading in ruby
whitedawg has joined #ruby
<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.
<Hanmac> hm i dont know i just found http://octodex.github.com/
devdazed has joined #ruby
maxmanders has joined #ruby
<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?
tonini has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
jgrevich has quit [Remote host closed the connection]
eAlchemist has quit [Ping timeout: 248 seconds]
<Hanmac> UnbertKAnt you may not. read there about the file modes: http://ruby-doc.org/core-2.0/IO.html#method-c-new
wallclockbuilder has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
zero7 has joined #ruby
mneorr has quit [Ping timeout: 264 seconds]
<UnbertKant> Thank you very much.
elaptics`away is now known as elaptics
<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]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
k610 has joined #ruby
jurassic has joined #ruby
felipe has joined #ruby
CodeDmitry has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
AndChat| has joined #ruby
timmow has joined #ruby
browndawg has quit [Quit: Leaving.]
<UnbertKant> Because everything just works ^^
Banistergalaxy has quit [Ping timeout: 245 seconds]
realDAB has joined #ruby
butblack has joined #ruby
alup_ has quit [Quit: Leaving]
timmow has quit [Read error: Connection reset by peer]
puppeh has quit [Quit: bb]
<CodeDmitry> I am a perl user, i says hi
alup has joined #ruby
gyre007 has joined #ruby
timmow has joined #ruby
_bart has quit [Ping timeout: 245 seconds]
<csmrfx> hi
yshh has quit [Remote host closed the connection]
<hoelzro> ahoy fellow Perl user =)
<csmrfx> CodeDmitry: welcome, you are now safe, so no worries - none of that perlipidity here.
<hoelzro> "perlipidity"?
<CodeDmitry> Whats perlipidity
daniel_- has joined #ruby
<Hanmac> sound like some kind of illness ...
<Hanmac> maybe something you can get from others :P
<csmrfx> In english, people also call people who suffer of that "cunts"
<CodeDmitry> It better not be an insult to perl, perl is god of .. stuff
tvw has joined #ruby
<csmrfx> well, you may think that if you are afflicted, or hear that from people who suffer from that horrible disease
<csmrfx> 8)
<Hanmac> perl is for when you travel back in time and stuck in the 90ies :D
<CodeDmitry> Perl isnt a disease, Java is
<CodeDmitry> And i know, I spent over 8 years practicing it
<csmrfx> IMO only Lispers get bragging rights for being there first
<CodeDmitry> Lispers exist?
<csmrfx> oh, of course
<CodeDmitry> O_o
whitedawg has quit [Quit: Leaving.]
kofno has quit [Ping timeout: 256 seconds]
<CodeDmitry> I thought they all moved onto haskell, or clojure
<csmrfx> you just dont hear of lispers, they are all unemployed or buried in some university cellar, unable to afford internets
<csmrfx> 8P
emocakes has joined #ruby
<CodeDmitry> So... have any of you succeeded in making a lolcode interpretor yet?
<CodeDmitry> Im still working on mine... slowly
bradhe has joined #ruby
<csmrfx> not familiar with lolcode... is it composed of smilies?
<CodeDmitry> The specifications are online
<CodeDmitry> Many tried
<CodeDmitry> Nobody got a feasible interpretor out yet
<CodeDmitry> Nobody takes the job seriously somewhy
emergion has joined #ruby
eAlchemist has joined #ruby
<Hanmac> CodeDmitry: you could try an http://en.wikipedia.org/wiki/Malbolge interpreter :D
DotMH has joined #ruby
eka has joined #ruby
<CodeDmitry> Isnt Malbolge compiled?
a_a_g has quit [Quit: Leaving.]
slainer68 has quit [Remote host closed the connection]
vieenay has joined #ruby
<Hanmac> hm no its interpreted
<CodeDmitry> Besides,lolcode is far more amusing than code that looks like c++ program error from iostream obfuscated by perl
nazty has joined #ruby
berserkr has joined #ruby
<csmrfx> I am kind of boring, in that I believe all the real world problems are so much more intricate, I only work on them
<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
<csmrfx> >> "whaddya mean?".split("dd")
<eval-in> csmrfx => ["wha", "ya mean?"] (http://eval.in/12408)
slainer68 has joined #ruby
<csmrfx> ^ akam-it
<Hanmac> >> "hello".each_char.each_slice(2).map(&:join)
<eval-in> Hanmac => ["he", "ll", "o"] (http://eval.in/12409)
<CodeDmitry> I wonder what would happen if this channel, python channel, and perl channel got merged
<Hanmac> >> "hello".scan(/.{1,2}/)
<eval-in> Hanmac => ["he", "ll", "o"] (http://eval.in/12410)
<realDAB> >> "Hello".scan(/..?/)
<eval-in> realDAB => ["He", "ll", "o"] (http://eval.in/12411)
<Hanmac> CodeDmitry an new OS would be born :D
kristofers has joined #ruby
blaxter has quit [Ping timeout: 246 seconds]
<csmrfx> CodeDmitry: in my mind, ruby happened when lisp, perl and proto-python combined
<realDAB> csmrfx: don't forget smalltalk :-)
<csmrfx> heh, was just typing "give or take some secret smalltalk fans"
<CodeDmitry> Ill forget smalltalk if i choose to, its a terrible excuse for a language
<akam-it> Thank you!
<csmrfx> CodeDmitry: when I read the blue book, I felt like I wasted all those years on java, that crusty langauge
casheew has quit [Read error: Connection reset by peer]
<csmrfx> *language
<CodeDmitry> Its fundamental ideas are fun but the syntax is ughhh
<Hanmac> Ruby was Influenced by Ada,[1] C++,[1] CLU,[2] Dylan,[2] Eiffel,[1] Lisp,[2] Perl,[2] Python,[2] Smalltalk[2] http://en.wikipedia.org/wiki/Ruby_%28programming_language%29
casheew has joined #ruby
jblack has quit [Ping timeout: 240 seconds]
<CodeDmitry> Funnest part of smalltalk is having to implement it
zomgbie has joined #ruby
<CodeDmitry> I still think syntax could be less frustrating
<csmrfx> you like C-style syntax?
<CodeDmitry> Im used to it :-) but i dont mind haskell syntax nor vb syntax
<CodeDmitry> But smalltalk...
<CodeDmitry> I mean best smalltalk would be a smalltalk that would listen on a dedicated port
<CodeDmitry> And be integrated as a background service
<csmrfx> haha, sounds like java
buscon has joined #ruby
rubynooby has joined #ruby
MrZYX|off is now known as MrZYX
_bart has joined #ruby
NiteRain has joined #ruby
eAlchemist has quit [Ping timeout: 252 seconds]
<CodeDmitry> I like java but i csnt help but feel Systrm.out.println breaks law of demeter
<CodeDmitry> Also, i hate layout managers
zomgbie has quit [Ping timeout: 252 seconds]
<rubynooby> I'm not able to use string.encode('UTF-8') recursively.
<csmrfx> pastie or gist, please
<rubynooby> csmrfx: just a min
<CodeDmitry> Can someone demonstrate writing hello world into a.txt?
<CodeDmitry> Please*
io_syl has quit [Ping timeout: 255 seconds]
<akam-it> is it good script for reverse hex like this
<akam-it> 0x32748704.to_s(16).scan(/.{2}/).reverse.join
<apeiros_> CodeDmitry: File.write('a.txt', 'Hello World!')
<akam-it> or i can do it more easier?
<apeiros_> akam-it: you could probably use pack
<apeiros_> ah, you reverse the whole number, not just change the endianness - nvm then
io_syl has joined #ruby
banisterfiend has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
razibog has quit [Read error: Operation timed out]
jurassic has quit [Quit: jurassic]
<CodeDmitry> Ty apeiros, kinda curious, is there a way to do that without the File class?
<rubynooby> need help? anyone?
moted has quit [Ping timeout: 250 seconds]
<apeiros_> CodeDmitry: I doub that. doesn't make much sense anyway…
<apeiros_> *doubt
<rubynooby> what's wrong with this code chunk?
elaptics is now known as elaptics`away
<apeiros_> rubynooby: why do you think something is wrong?
<apeiros_> (and for the future - that is a *required* part of your problem description)
<rubynooby> it doesn't work
* apeiros_ smacks rubynooby
moted has joined #ruby
<rubynooby> when I do string.encoding.name
<apeiros_> that doesn't tell me anything
miso1337 has joined #ruby
miso1337 has quit [Client Quit]
<CodeDmitry> So ya i was bored so i went into cobol channel and started typing in caps
<apeiros_> if your problem description is "it doesn't work", then my answer is "you have to fix it!" - both useless non-informative phrases.
kofno has joined #ruby
<CodeDmitry> Sadly there is no real people in cobol channel
El_loco has quit [Quit: No Ping reply in 180 seconds.]
erry has quit [Changing host]
erry has joined #ruby
El_loco has joined #ruby
mneorr has joined #ruby
willob has joined #ruby
blaxter has joined #ruby
willob has quit [Max SendQ exceeded]
<CodeDmitry> I wish there was a vpython for ruby
<CodeDmitry> Or perl
devdazed has quit [Ping timeout: 260 seconds]
rubynooby_ has joined #ruby
willob has joined #ruby
rubynooby has quit [Ping timeout: 245 seconds]
beiter has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
daniel_- has quit [Ping timeout: 240 seconds]
<banisterfiend> CodeDmitry: just use blender or something
hemanth has joined #ruby
<rubynooby_> I need help with https://gist.github.com/anonymous/5133373, when I do a[i].encoding.name it still returns 'US-ASCII'
<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
<CodeDmitry> Ascii encoding
<CodeDmitry> 8 b
<CodeDmitry> 8bits per char
codecop has joined #ruby
butblack has quit [Quit: butblack]
razibog has joined #ruby
postmodern has quit [Quit: Leaving]
robbyoconnor has quit [Ping timeout: 264 seconds]
<Hanmac> CodeDmitry: when its only Acsii you can do: str[500] = '?'
_bart has quit [Ping timeout: 264 seconds]
<CodeDmitry> Except i mean using binary file io
HecAtic has joined #ruby
eAlchemist has joined #ruby
<csmrfx> lel
<Hanmac> CodeDmity: look at File::write ... it has an offset parameter
<CodeDmitry> Ty
Astral_ has joined #ruby
razibog has quit [Ping timeout: 264 seconds]
yashshah has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
bradhe has joined #ruby
nomenkun_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
Astral__ has quit [Ping timeout: 264 seconds]
slainer68 has joined #ruby
tonini has quit [Remote host closed the connection]
rubynooby_ has quit [Quit: Page closed]
nomenkun has quit [Ping timeout: 248 seconds]
slainer__ has joined #ruby
cantonic has joined #ruby
slainer6_ has quit [Ping timeout: 260 seconds]
eAlchemist has quit [Ping timeout: 255 seconds]
hemanth has quit [Quit: Leaving]
blaxter has quit [Ping timeout: 246 seconds]
slainer68 has quit [Ping timeout: 264 seconds]
gommo has quit [Remote host closed the connection]
gommo has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
b055cad has joined #ruby
madb055 has quit [Ping timeout: 250 seconds]
samphippen has joined #ruby
dawkirst has joined #ruby
realDAB has quit [Quit: realDAB]
maxmanders has joined #ruby
Domon has quit [Remote host closed the connection]
kofno_ has joined #ruby
welandB has quit [Read error: Connection reset by peer]
statarb3 has quit [Read error: Connection reset by peer]
gyre007 has quit [Read error: Connection reset by peer]
gommo has quit [Ping timeout: 256 seconds]
HecAtic has quit [Ping timeout: 250 seconds]
kofno has quit [Read error: Connection reset by peer]
xpen has quit [Remote host closed the connection]
welandC has joined #ruby
gyre008 has joined #ruby
Proshot has joined #ruby
yshh has joined #ruby
dr_bob1 has quit [Read error: Connection reset by peer]
beiter has quit [Quit: beiter]
Astral_ has joined #ruby
Astral_ has quit [Read error: Connection reset by peer]
dr_bob1 has joined #ruby
gyre008 has quit [Remote host closed the connection]
girija has quit [Ping timeout: 248 seconds]
apod has quit []
girija has joined #ruby
gyre007 has joined #ruby
theRoUS has quit [Ping timeout: 255 seconds]
fire has joined #ruby
kn330 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
kofno_ has quit [Read error: Connection reset by peer]
kofno has joined #ruby
realDAB has joined #ruby
Spooner_ has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
yshh has quit [Ping timeout: 260 seconds]
hybris has joined #ruby
blaxter has joined #ruby
realDAB has quit [Client Quit]
elaptics`away is now known as elaptics
d2dchat has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
skattyadz has quit [Quit: skattyadz]
apod has joined #ruby
grayson has joined #ruby
justsee has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> ping shevy
Emplitz has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
eAlchemist has joined #ruby
swoosh has quit [Quit: Computer has gone to sleep.]
horrror_ has joined #ruby
shuky has quit [Quit: shuky]
shuky has joined #ruby
danneu has quit [Ping timeout: 245 seconds]
cantonic has quit [Quit: cantonic]
vlad_starkov has joined #ruby
horrror has quit [Ping timeout: 248 seconds]
horrror_ is now known as horrror
hogeo has quit [Remote host closed the connection]
D4T has joined #ruby
skattyadz has joined #ruby
<becom33> how can I make a waiting point for a loop ? for a example wait for 2 seconds each 3 times
HecAtic has joined #ruby
<Spooner_> becom33, #sleep
<becom33> I know sleep can be used for wait . but how can I mention for each 3 times in the loop
hbpoison has joined #ruby
<arturaz> becom33, each_with_index + sleep with if?
philcrissman has joined #ruby
chussenot has quit [Quit: chussenot]
<JonnieCache> becom33: sleep if index % 3 == 0
beaky has joined #ruby
<beaky> hello
<beaky> what are the advantages to inheritance?
<JonnieCache> the % operator is your friend
<arturaz> beaky, compared to what?
<beaky> compared to avoiding it in favor of other designs (flatter hierarchy, composition, no inheritance at all, etc.)
<Hanmac> beaky it depends ... some external libs or some internal classes does not like inheritance ... like Integer
<Hanmac> or TrueClass :D
<JonnieCache> composition ftw
<beaky> ah
NiteRain has quit [Ping timeout: 246 seconds]
<becom33> wait lemme try that out
bradhe has joined #ruby
<beaky> it's an exam question :( 'What are the benefits of inheritance? (1 point)'
<csmrfx> beaky: did you ask google?
<csmrfx> did you search on stackoverflow
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
samphippen has joined #ruby
<csmrfx> my succinct answer is: it helps model relationships
<beaky> google says that inheritance is good for record extension, facilitating reuse, enabling polymorphism, etc.
<beaky> oh and it also models 'is-a' relationships for better or wose :D
<Hanmac> beaky ... you can use the methods that are defined in super class for your class
eAlchemist has quit [Ping timeout: 255 seconds]
<csmrfx> lol "record extension"
<beaky> I guess in ruby inheritance is infamous for monkey-patching metaprogramming?
<csmrfx> not really
<Hanmac> beaky but beware ... for sample in C++11 its possible to mark a class as "final" so it forbits inheritance
<csmrfx> rubyists use composition
<csmrfx> mix-ins versus subclasses
horrror has quit [Quit: horrror]
sailias has joined #ruby
<csmrfx> modules versus superclasses, if you will
spychalski has quit [Read error: Operation timed out]
Emplitz has quit [Quit: Leaving]
* csmrfx puts things broadly
spychalski has joined #ruby
<beaky> ah
<Hanmac> i do it depending on the size ... little things are composed, bigger things are inherited
<whitequark> Hanmac: you can actually very well inherit from Integer
<whitequark> just not from Fixnum
sonda has joined #ruby
<beaky> is it possible to mark a class as closed/sealed/final (i.e. non-inheritable) in ruby?
divout has quit [Remote host closed the connection]
<whitequark> beaky: def inherited(*); raise "Do not inherit."; end
<whitequark> *self.inherited
<beaky> lol
<whitequark> other than that, no
<csmrfx> clever!
<banisterfiend> whitequark: isn't inherited called after inheritance takes place thought?
<whitequark> banisterfiend: indeed
<banisterfiend> iti's an after rather than a before hook
ArchBeOS has quit [Client Quit]
<csmrfx> cant you just declare the class in a scope thats "closed"
<whitequark> as lots of other things in ruby, this serves as an annotation, not a restriction
<Hanmac> whitequark for inherited its to late ... the class is allready maked ... :( ... but i make a ticket for that
chussenot has joined #ruby
<whitequark> see also: private & #send
<Hanmac> whitequark: Numeric does have an alloc and an new method ... Integer does have not
<beaky> ag thanks
<whitequark> Hanmac: oh right
<Hanmac> beaky ... you could freeze a class ...
rubynooby has joined #ruby
<beaky> what are the benefits of sealing/freezing/finalizing/closing a class to forbid inheritance?
<csmrfx> banisterfiend cant steal it's ice cream cones?
<whitequark> >> class A; end; A.freeze; class B < A; end; B
<eval-in> whitequark => B (http://eval.in/12419)
<csmrfx> *its
<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]
robustus|Off has joined #ruby
<Hanmac> shevy you mean something like that? http://bugs.ruby-lang.org/issues/8050
sayan has quit [Quit: Leaving]
tomzx_mac has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
Virunga has joined #ruby
cmarques has joined #ruby
eAlchemist has quit [Ping timeout: 248 seconds]
swoosh has joined #ruby
iamjarvo has joined #ruby
_nitti has joined #ruby
Spooner_ has quit [Remote host closed the connection]
heliumsocket has joined #ruby
iamjarvo has quit [Client Quit]
Amnesthesia has joined #ruby
<shevy> hehe
jerius has joined #ruby
jtharris has joined #ruby
pdamer has joined #ruby
<shevy> Hanmac you are almost like a full ruby core team member!
HecAtic has joined #ruby
<shevy> what's with those ugly things man :P
<shevy> I grew up in the days of tom and jerry
DotMH has quit [Quit: DotMH]
<shevy> everything else related to cartoons I don't like!
<shevy> Nyantocat must die ...
browndawg has joined #ruby
Zai00 has joined #ruby
<whitequark> nyantocat is... a tautology
araujo has quit [Remote host closed the connection]
zomgbie has joined #ruby
pepper_chico has joined #ruby
DotMH has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<Hanmac> whitequark did you see something different in the gif? its not the orginal its a "forked" variant :D
DrShoggoth has quit [Ping timeout: 276 seconds]
<Hanmac> shevy githubs octocat is cool :P http://octodex.github.com/
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
happydude has joined #ruby
<whitequark> Hanmac: um?
<happydude> $ rdoc-data --install
<happydude> Your ruby version 2.0.0 is not supported, only 1.8.7, 1.9.2, 1.9.3
<shevy> whitequark what means nyanto?
pepper_chico has joined #ruby
<happydude> what shoudl be done to get documentation working under ruby 2.0/
<whitequark> shevy: "nyan" is basically "meow" in japanese
railsbros_dirk has quit [Ping timeout: 264 seconds]
<Hanmac> happydude on 2.0.0 you dont need rdoc-data ... it should be already there
Lockzi has quit [Ping timeout: 245 seconds]
<happydude> nope
<shevy> hehe
<happydude> $ ri Array
<happydude> Nothing known about Array
sayan has quit [Read error: Connection reset by peer]
pavilionXP has joined #ruby
breakingthings has joined #ruby
<Hanmac> happydude what is your OS and how did you install ruby2.0?
<happydude> any specific option during rvm install to get docs installed?
<happydude> rvm install
<happydude> linux / fedora
shuky has joined #ruby
railsbros_dirk has joined #ruby
gaahrdner has quit [Remote host closed the connection]
akashj87 has quit [Quit: leaving]
zomgbie has quit [Ping timeout: 264 seconds]
nga4 has joined #ruby
whitedawg has quit [Quit: Leaving.]
<Hanmac> happydude you could try to ask at #rvm
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<Hanmac> happydude: https://rvm.io/rubies/docs/ ", RVM does not automatically generate and install each Ruby's ri / rdoc documentation. "
shevy has quit [Ping timeout: 276 seconds]
<happydude> i see
Dwarf has quit [Ping timeout: 256 seconds]
<Hanmac> do "rvm docs generate"
swex_ has joined #ruby
araujo has joined #ruby
girija has quit [Ping timeout: 260 seconds]
companion has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
swex has quit [Ping timeout: 276 seconds]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
hogeo has joined #ruby
emocakes has joined #ruby
tubbo has joined #ruby
Morrolan has quit [Ping timeout: 260 seconds]
sailias1 has joined #ruby
idkazuma has quit [Remote host closed the connection]
dustint has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
companion has joined #ruby
Morrolan has joined #ruby
HecAtic has quit [Ping timeout: 245 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
Virunga has quit [Remote host closed the connection]
<happydude> running it now
end_guy has quit [Ping timeout: 276 seconds]
failshell has joined #ruby
Virunga has joined #ruby
vieenay has left #ruby [#ruby]
emocakes has quit [Quit: emocakes]
pcarrier has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
otherj has quit []
<happydude> Hanmac: still Nothing known about Array
ferdev_ has quit [Quit: ferdev_]
axhlf has quit [Remote host closed the connection]
eAlchemist has joined #ruby
<Hanmac> :( ... run which ri ... maybe it points to the wrong one
<happydude> that command generated a bunch of htmls
shevy has joined #ruby
<happydude> which i don't want
<happydude> what i want and i need is: ri Array
kn330 has quit [Ping timeout: 248 seconds]
kn330 has joined #ruby
Targen has quit [Ping timeout: 255 seconds]
Dwarf has joined #ruby
sayan has joined #ruby
axhlf has joined #ruby
BizarreCake has joined #ruby
elux has quit [Quit: Leaving...]
<csmrfx> happydude: try "ri<tab><tab>"
samphippen has joined #ruby
arturaz has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
ferdev has joined #ruby
mikecmpbll has joined #ruby
zomgbie has joined #ruby
El_loco has joined #ruby
eAlchemist has quit [Ping timeout: 256 seconds]
ananthakumaran1 has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 264 seconds]
neku has joined #ruby
k610 has quit [Ping timeout: 248 seconds]
rippa has quit [Ping timeout: 240 seconds]
whitedawg has joined #ruby
willob has quit [Quit: Leaving.]
jonathanwallace has quit [Ping timeout: 240 seconds]
tomzx_mac has quit [Read error: Operation timed out]
axhlf has quit [Remote host closed the connection]
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
elux has joined #ruby
lewix has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
ferdev has quit [Quit: ferdev]
elux has quit [Read error: Connection reset by peer]
elux_ has joined #ruby
Martin277 has joined #ruby
<Martin277> hi can somebody help regarding Faye server
joshman_ has joined #ruby
HecAtic has joined #ruby
<Martin277> can somebody guide me , how to display total number of active user in a channel
<Martin277> regarding faye
ttt has joined #ruby
axhlf has joined #ruby
railsbros_dirk has quit [Quit: railsbros_dirk]
DaltonUS has joined #ruby
splud has joined #ruby
jjbohn has joined #ruby
ExxKA has joined #ruby
invisime1 has joined #ruby
alanp_ is now known as alanp
R_Macy_ has joined #ruby
R_Macy_ has quit [Max SendQ exceeded]
bricker`LA has quit [Ping timeout: 260 seconds]
R_Macy_ has joined #ruby
<happydude> asking in #rvm but seems like a ghost channel
vereteran has quit [Quit: ZNC - http://znc.in]
jprovazn has quit [Quit: Leaving]
ttt has quit [Ping timeout: 256 seconds]
Targen has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Client Quit]
R_Macy_ is now known as R_Macy
naquad has joined #ruby
<Martin277> any activre user
jtperreault has quit [Ping timeout: 252 seconds]
jprovazn has joined #ruby
rcassidy has joined #ruby
katherinem13 has quit [Ping timeout: 245 seconds]
ArchBeOS has quit [Quit: Leaving]
russfrank has quit [Ping timeout: 260 seconds]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
martxel has quit [Quit: Changing server]
jpfuentes2 has joined #ruby
gaahrdner has joined #ruby
zomgbie has quit [Quit: Lost terminal]
<Hanmac> Martin277 i am active but i havent seen Faye before
evenix has joined #ruby
happydude has quit [Ping timeout: 248 seconds]
filipe has quit [Ping timeout: 248 seconds]
DaniG2k has joined #ruby
DrShoggoth has joined #ruby
<tobiasvl> Martin277: try /names
interactionjaxsn has joined #ruby
<tobiasvl> 15:09:24 | #ruby: Total of 813 nicks [0 ops, 0 halfops, 0 voices, 813 normal]
jtperreault has joined #ruby
<DaniG2k> guys Im trying to install ruby 1.9.3 on Mac Snow Leopard (10.6.8) but am having the hardest time
<DaniG2k> can anyone help me install it plz
<DaniG2k> I think its failing because perhaps I don't have a compiler
bigmac has quit [Ping timeout: 248 seconds]
DaltonUS has quit [Quit: DaltonUS]
martxel has joined #ruby
jacky has quit [Excess Flood]
<tobiasvl> you need xcode
martxel has quit [Client Quit]
martxel has joined #ruby
<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
hbpoison has quit [Ping timeout: 255 seconds]
chendo_ has joined #ruby
Apocalypse has joined #ruby
verto|off is now known as verto
eAlchemist has quit [Ping timeout: 245 seconds]
swistak35 has joined #ruby
guilleiguaran_ has joined #ruby
ananthakumaran has joined #ruby
[Neurotic] has joined #ruby
notbrent_ has joined #ruby
musl has joined #ruby
<MrZYX> cr3: check out http://gembundler.com/
e-dard has joined #ruby
qhartman has joined #ruby
mnaser has joined #ruby
v0n has joined #ruby
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
<cr3> MrZYX: excellent, I'll look for the concept of groups. thanks man!
verto is now known as Guest43354
endzyme has joined #ruby
srm` has joined #ruby
oposomme has joined #ruby
Spaceghostc2c has joined #ruby
d_roge has joined #ruby
forrest has joined #ruby
mercwithamouth has joined #ruby
Amnesthesia has joined #ruby
qwerty_ has joined #ruby
jackyalcine has joined #ruby
<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"
bradhe has quit [Ping timeout: 264 seconds]
C0deMaver1ck is now known as MemeMaster
atyz has quit [Quit: Linkinus - http://linkinus.com]
<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]
<Spooner_> cr3, require 'bundler'; Bundler.require :development
<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]
<nazty> why am i gettin a error
<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
<elliottcable> s/go zsh
rippa has joined #ruby
<Hanmac> ocher:
<Hanmac> >> ([1, 2, 3, 4, 1, 2, 5, 6].each_cons(3).with_index.find {|x,i| x == [1, 2, 5] } || []).last
<eval-in> Hanmac => 4 (http://eval.in/12427)
happydude has quit [Read error: Connection reset by peer]
realDAB has quit [Quit: realDAB]
<pcarrier> Hanmac, ooh that's expensive.
<Hanmac> pcarrier: can you show me why?
<pcarrier> Hanmac, because you create a lot of arrays, then always compare arrays together
<Spooner_> And how did you expect to be doing it?
<pcarrier> Hanmac, instead of scanning until you match the first element, then try the second, then […], which would be much cheaper
<Hanmac> pcarrier: hm no i do not
baroquebobcat has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
El_loco has joined #ruby
<pcarrier> Hanmac, what does each_cons do?
<Hanmac> google it
happydude has joined #ruby
UnbertKant has quit [Remote host closed the connection]
<whitequark> you probably need the Knuth-Morris-Pratt algorithm here
<pcarrier> Hanmac, that was rhetorical.
v1p has quit [Ping timeout: 260 seconds]
a_a_g has quit [Quit: Leaving.]
chrishunt has joined #ruby
<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]
<slopjong> <%= 'selected="selected"' %> outputs selected=&quot;selected&quot;
<slopjong> how to do it correctly?
ssvo_ has joined #ruby
aganov has quit [Remote host closed the connection]
<Hanmac> slopjong: #rubyonrails
<apeiros_> slopjong: rails?
<slopjong> yes
<apeiros_> you want .html_safe. also #rubyonrails as Hanmac pointed out
DotMH has quit [Quit: DotMH]
<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.
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
eAlchemist has quit [Ping timeout: 252 seconds]
nga4 has quit []
<Hanmac> >> 'selected="selected"'.encode(:xml=>:attr)
<eval-in> Hanmac => "\"selected=&quot;selected&quot;\"" (http://eval.in/12429)
<slopjong> ddd, I took it as a friendly notice
<ddd> slopjong: cool :)
<slopjong> Hanmac, thx
<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)
apok has joined #ruby
<apeiros_> Spooner_: index in 1.9 accepts a block
<apeiros_> so you don't need with_index.last etc
baba has joined #ruby
calp has quit [Quit: Lost terminal]
heliumsocket has quit [Quit: heliumsocket]
<pcarrier> and if anybody still cares, pure ruby implementation of String#index for Array: https://gist.github.com/pcarrier/5135288
fire has quit [Ping timeout: 245 seconds]
<csmrfx> yeah? isn't there one in core
<pcarrier> csmrfx, if there is, it's even funnier.
<Spooner_> pcarrier, I just posted an implementation with benchmarks (Which is what matters more).
<apeiros_> ah, find_index
seejohnrun has quit [Quit: leaving]
b055cad has joined #ruby
bean has quit [Ping timeout: 245 seconds]
<Hanmac> ah yeah find_index is better
ozgura has quit [Remote host closed the connection]
<Hanmac> Spooner_ can you test the first one with find_index too?
jbueza has joined #ruby
thibauts has quit [Ping timeout: 276 seconds]
nari has quit [Ping timeout: 264 seconds]
browndawg has quit [Quit: Leaving.]
axl_ has joined #ruby
<Hanmac> i got 0.943704251 compared to 2.173569456 :P
danman has joined #ruby
<pcarrier> user system total real
<pcarrier> arrays 0.920000 0.000000 0.920000 ( 0.926786)
<pcarrier> pierre 0.800000 0.000000 0.800000 ( 0.798791)
<pcarrier> algorithm 1.490000 0.000000 1.490000 ( 1.489436)
splud has joined #ruby
ozgura has joined #ruby
seejohnrun has joined #ruby
<pcarrier> (I only took the long array, long match one)
<Spooner_> I ran it in pry the first time, so the results were skewed, I think.
<pcarrier> I also use pry :)
<pcarrier> well, actually, I run in MRI 2.0.0
thibauts has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
jamesfung14 has joined #ruby
thebastl has quit [Read error: Operation timed out]
hbpoison has joined #ruby
cableray has joined #ruby
<Spooner_> I ran on 1.9.3
v1p has quit [Ping timeout: 245 seconds]
Voodoofish430 has joined #ruby
<Hanmac> hm interesting: with Spooners code i get 0.828340094 "for long creating arrays (better)" and 1.777376749 for "long algorithm"
zigomir has quit [Quit: zigomir]
HecAtic has joined #ruby
jphpsf has quit [Ping timeout: 246 seconds]
<Hanmac> the pierre may be a liiiitle bit faster but more ugler to read
bradhe has quit [Ping timeout: 245 seconds]
<pcarrier> Hanmac, I wasn't going for pretty :)
danman has quit [Read error: Connection reset by peer]
* pcarrier was almost dishonestly optimizing for efficiency without local variables.
danman has joined #ruby
<pcarrier> (you can optimize further by avoiding blocks, but it'd become really nasty)
danneu has joined #ruby
tay1 has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
caveat- has joined #ruby
<Hanmac> pierre is only 0.05s faster i tihnk
classix has quit [Ping timeout: 260 seconds]
mneorr has joined #ruby
maletor has joined #ruby
chrishunt has joined #ruby
horrror has joined #ruby
wallclockbuilder has quit [Read error: Connection reset by peer]
eAlchemist has joined #ruby
bradhe has joined #ruby
wallclockbuilder has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
daig0ro has quit [Quit: Textual IRC Client: www.textualapp.com]
bradhe has joined #ruby
hbpoison has quit [Remote host closed the connection]
Nisstyre has joined #ruby
etcetera has quit []
rtdp has quit [Ping timeout: 256 seconds]
<horrror> is there a way in ruby to work with images in a level where i can add text and shapes to a specific template? such this http://www.go2productions.com/images/go2-workflow-infographic.png
jblack has joined #ruby
<Spooner_> Hanmac pcarrier Even more horror: https://gist.github.com/Spooner/47555cf638ef64679bef
<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
DotMH has joined #ruby
<pcarrier> Spooner_, I use https://github.com/pcarrier/baze/blob/master/bin/suc a few times a day on laaarge amounts of data
<pcarrier> Spooner_, it beats the unix equivalents
<pcarrier> Spooner_, (sort|uniq -c|sort -nr)
<ocher> without using exceptions it is faster
<pcarrier> ocher, sure is. I didn't allow myself local variables :)
phsyckr has joined #ruby
heliumsocket has joined #ruby
sonda has quit [Remote host closed the connection]
<phsyckr> hey everyone
eAlchemist has quit [Ping timeout: 264 seconds]
<hoelzro> ahoy
<phsyckr> any idea of how to avoid having to install the full xcode
Spooner_ has quit [Remote host closed the connection]
<phsyckr> in mac
heliumsocket has quit [Client Quit]
<phsyckr> and able to install rails etc
* hoelzro hides
twoism has joined #ruby
<apeiros_> pcarrier: I think you can just do ARGF.each_line, not sure though. Never used it myself.
jjbohn has quit [Quit: Leaving...]
sandstrom has quit [Remote host closed the connection]
<pcarrier> apeiros_, interesting. will have a look, thanks
HecAtic has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
pcarrier has quit []
jdunck has joined #ruby
jjbohn has joined #ruby
<atmosx> mtgox gem uses API 0 hmm to bad.
joeycarmello has joined #ruby
<atmosx> I'll see if I can modify it to make it use API 1 of mtgox :-/
<ocher> exception version is twice slower compared to the local variable version
<atmosx> it's sferik's gem wow
girija has quit [Remote host closed the connection]
danneu has quit [Ping timeout: 252 seconds]
mneorr has quit [Read error: Connection timed out]
mercwithamouth has joined #ruby
jasond has quit [Ping timeout: 276 seconds]
jgrevich has joined #ruby
apeiros_ has quit [Remote host closed the connection]
girija has joined #ruby
mneorr has joined #ruby
jblack has joined #ruby
adeponte has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
hbpoison has quit [Ping timeout: 245 seconds]
hoelzro is now known as hoelzro|away
nateberkopec has joined #ruby
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
murz has joined #ruby
murz has quit [Client Quit]
Davey has joined #ruby
hbpoison has joined #ruby
emergion has joined #ruby
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
banjara has joined #ruby
<Hanmac> freezey: array.find {|e| e.include?("something")}
kornnflake_zzz is now known as kornnflake
berserkr has joined #ruby
<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]
markalanevans has joined #ruby
eAlchemist has joined #ruby
<froy> freezey, irb(main):001:0> '"test" : "result"' =~ /^(.*?)\s*:.*$/; $1
<froy> => "\"test\""
MehLaptop has joined #ruby
<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.
breakingthings has quit []
<csmrfx> *foo is usually "splat"
mahmoudimus has joined #ruby
hoelzro|away is now known as hoelzro
<marwinism> rcassidy: thanks!
Stilo has joined #ruby
<csmrfx> ^ marwinism ... note that "Where" usually denotes "what class" in context of methods
sepp2k1 has joined #ruby
<Hanmac> csmrfx there is a **opts too :P7
sepp2k has quit [Ping timeout: 248 seconds]
DotMH has quit [Quit: DotMH]
<rcassidy> 1.9 lets you do some cool stuff with splat
<csmrfx> lel
<rcassidy> where is the evalbot when you need it
<rcassidy> >> "ping"
<eval-in> rcassidy => "ping" (http://eval.in/12434)
<rcassidy> nice!
guest34 has joined #ruby
amber_ has joined #ruby
<sam113101> >> 2+2
<eval-in> sam113101 => 4 (http://eval.in/12435)
<csmrfx> >> p *2,3,4
<eval-in> csmrfx => 2
<eval-in> 3
<eval-in> [2, 3, 4] (http://eval.in/12436)
<eval-in> 4
<csmrfx> 8D
<freezey> shevy: i guess i am kind of curious if i can do a array.include?("something").split(",").first
<freezey> that possible?
<csmrfx> potentially very evil way to flood this chan/get eval-in banned
<rcassidy> csmrfx: yes, please don't spam it
<rcassidy> if it's the same as the last one, you can play with it in PM
<sam113101> >> 3.times { puts 'yo' }
<eval-in> sam113101 => yo
<eval-in> yo
<eval-in> yo
<froy> freezey, you can't, because include? returns a boolean
<freezey> ahhh
<csmrfx> rcassidy: technically, eval-in should output all on the same line
<froy> so you can't chain split onto the boolean
<rcassidy> csmrfx: not my bot
<freezey> froy: what would work in that place?
<freezey> maybe .find or .select
<sam113101> >> test = 'wat'
<freezey> to the googles i assume
<eval-in> sam113101 => "wat" (http://eval.in/12438)
<rcassidy> who does own the eval bot? it would be nice if it responded to PM
<sam113101> >> puts test
<eval-in> sam113101 => /tmp/execpad-8737f485ec71/source-8737f485ec71:2:in `test': wrong number of arguments (0 for 2..3) (ArgumentError)
<eval-in> from /tmp/execpad-8737f485ec71/source-8737f485ec71:2:in `<main>' (http://eval.in/12439)
<rcassidy> quit it, please
samphippen has quit [Quit: Computer has gone to sleep.]
<csmrfx> marwinism: ** is just an exponent op
<csmrfx> uh, Hanmac ^
<Hanmac> csmrfx that what they told you to think :P
<csmrfx> what u mean?
<realDAB> csmrfx: in 2.0 it's part of method parameter syntax
<Hanmac> >> [Struct.new(:name,:age) { alias to_hash to_h}.new("abc",10)].map {|**o| o}
<eval-in> Hanmac => [{:name=>"abc", :age=>10}] (http://eval.in/12440)
* csmrfx is still in La-la-land (1.9)
<Hanmac> csmrfx and that is the 1.8 land? hell? :D
amber__ has joined #ruby
<csmrfx> Land of Long Gone?
mrsolo has joined #ruby
<Hanmac> XDD
enebo has quit [Quit: enebo]
rtdp has joined #ruby
pepper_chico has joined #ruby
timonv has quit [Remote host closed the connection]
<sam113101> >> $0
<eval-in> sam113101 => "/tmp/execpad-35cc8b228b00/source-35cc8b228b00" (http://eval.in/12441)
<csmrfx> Land of Long in the Tooth
<csmrfx> oh well, bus time! l8r
eldariof has joined #ruby
<sam113101> >> loop { puts 'someone had to do it' }
<amber__> help with vimpack install error https://gist.github.com/aElizabethU/b7a51ffaa4e39658e2f5
HecAtic has quit [Ping timeout: 240 seconds]
chrishough has quit [Quit: chrishough]
pedahzur has joined #ruby
alex__c2022 has joined #ruby
stkowski has joined #ruby
<sam113101> >> 666.times { puts 'someone had to do it' }
<eval-in> sam113101 => someone had to do it
<eval-in> someone had to do it
<eval-in> someone had to do it
<eval-in> someone had to do it
<eval-in> someone had to do it
<eval-in> someone had to do it
<eval-in> someone had to do it
<eval-in> someone had to do it
<eval-in> someone had to do it
<eval-in> someone had ... (http://eval.in/12443)
<sam113101> not bad
kornnflake_zzz is now known as kornnflake
<JonnieCache> im surprised it does that tbh
girija has left #ruby ["Ex-Chat"]
zeade has joined #ruby
girija has joined #ruby
Xeago has joined #ruby
<rcassidy> i mean, this isn't the first evalbot in this channel
k610 has quit [Ping timeout: 245 seconds]
<sam113101> >> Dir['*']
philcrissman has quit [Remote host closed the connection]
<eval-in> sam113101 => ["output-676a923d8aac", "source-676a923d8aac", "input-676a923d8aac"] (http://eval.in/12444)
<rcassidy> lessons have been learned the hard way :p
<rcassidy> but please don't try to break it in main
<Hanmac> rcassidy but the first one that is Hanmac-proof :D
<rcassidy> it's so annoying
<rcassidy> Hanmac: whose is it?
banisterfiend has quit [Remote host closed the connection]
<JonnieCache> jrajav owns it i think
<JonnieCache> or was that the old one
<rcassidy> dunno if this is his bot mkII or someone else's
<rcassidy> but it's missing PM responses which basically make the bot a spam machine
<Hanmac> the current one is hosted by charliesome but he is not oneline
<rcassidy> that, or i'm addressing it wrong
<rcassidy> s/make/makes
<Hanmac> rcassidy i mean that is the first bot that could not be broken by me or others :P
<JonnieCache> yes the contact email on eval.in is charlie@charliesomerville.com
<rcassidy> Hanmac: i figured :p
<sam113101> >> Dir['/*']
<eval-in> sam113101 => (http://eval.in/12445)
<Hanmac> rcassidy: it was some kind of "survive of the fittest" :P
<rcassidy> ha
Takehiro has quit [Remote host closed the connection]
chrishough has joined #ruby
<rcassidy> how did we break the last one? mucking with ObjectSpace and constructing IO objects we could write with
skum has joined #ruby
<rcassidy> i think
<JonnieCache> >> loop while true
<JonnieCache> was the best one
<Hanmac> sam113101: klick at the link it says "Forbidden access to file `/'" ... so its not possible
<eval-in> JonnieCache => (http://eval.in/12446)
<jrajav> Technically it wasn't so much Hanmac-proof as it was Not-completely-imploding-when-Hanmac-destroyed-it
ephemerian has quit [Quit: Leaving.]
<sam113101> yeah I saw that
<jrajav> I did some clever stuff with processes and resource limitations to isolate and remove misbehaving mini-scripts
<sam113101> it's a shame, really
<sam113101> we should be able to wipe the whole system
<jrajav> And the chroot kept you from messing up the actual system
banisterfiend has joined #ruby
slainer__ has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
<Hanmac> jrajav i think charlie does it in a similar way right?
bricker`LA has quit [Ping timeout: 252 seconds]
Catbuntu has joined #ruby
xbob has joined #ruby
<JonnieCache> yeah its pretty much the same iirc
<jrajav> I dunno
banjara has quit [Quit: Leaving.]
<JonnieCache> i think i remember him saying he tried sandboxing and stuff but like you he found it doesnt work
banjara has joined #ruby
<jrajav> Turns out sandboxing is pretty damn hard.
<jrajav> :P
Vainoharhainen has quit [Ping timeout: 250 seconds]
chiel has joined #ruby
<Hanmac> jrajav i think thats why java have so much problems with that :P
<JonnieCache> i would wager that any language in which you can safely sandbox code within the interpreter is not powerful enough for modern needs
<Hanmac> http://java-0day.com/ << look at "Java-related CVEs" :P
mockra has joined #ruby
`damien has joined #ruby
`damien has quit [Client Quit]
`damien has joined #ruby
aed has joined #ruby
swoosh has quit [Quit: Computer has gone to sleep.]
`damien is now known as damien
sandstrom has joined #ruby
<sandstrom> With rake-pipeline, how can I declare dependencies dynamically? (Similar to `depend_on` in Sprockets)
mulinux has joined #ruby
sk87 has quit [Quit: sk87]
samphippen has joined #ruby
hoelzro is now known as hoelzro|away
caveat- has quit [Ping timeout: 245 seconds]
heftig has quit [Quit: Quitting]
heftig has joined #ruby
zeade has quit [Quit: Leaving.]
stat1x has quit [Remote host closed the connection]
ebobby has joined #ruby
chussenot has joined #ruby
stat1x has joined #ruby
Joel has joined #ruby
LiquidInsect has quit [Ping timeout: 260 seconds]
<Joel> is there an equiv to perl tidy for ruby?
jamesfung14 has quit [Ping timeout: 256 seconds]
damien has quit [Quit: damien]
_nitti has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
Liquid-- has quit [Ping timeout: 240 seconds]
a_a_g has joined #ruby
<_br_> Joel: Probably your editor of choice can do that for you.
<Joel> _br_: heh, no.
<Joel> perltidy fixes problems from "your editor of choice"
sayan has quit [Read error: Connection reset by peer]
mulinux has quit [Quit: mulinux]
mengu__ has quit [Quit: Konversation terminated!]
<_br_> Joel: What kind of problems? See e.g. http://www.arachnoid.com/ruby/rubyBeautifier.html Never used it nor needed such a thing though.
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
<amh345> im trying to write a file using Open3 but im returning a broken pipe error. but when i use the same code except with pgp encryption- it works. https://gist.github.com/anonymous/332a6cab1feb3faf2792
<amh345> this is ruby 1.8.7
<amh345> any ideas why i get the broken pipe error?
carlyle has joined #ruby
<Hanmac> cr3 ubuntu12.10 does have ruby1.9.1 package as default so its "vanilla"
jurassic has joined #ruby
<cr3> matti: aha, the problem seems to be that I had this in my Gemfile: gem 'rake', '~> 0.8.7', :require => false
jjbohn is now known as jjbohn|afk
<cr3> matti: just installing rake, which resulted in version 10.0.3, worked
rosipov has joined #ruby
<cr3> Hanmac: I'll have to test on that version but I'm writing installation instructions for 12.04.1 LTS
Guest123 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
markalanevans_ has joined #ruby
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 ?
<lewix> becom33: js?
<becom33> cli
<becom33> lewix,
spider-mario has joined #ruby
ferdev has quit [Quit: ferdev]
jjbohn|afk is now known as jjbohn
jasond has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
<Hanmac> there is a patent of a progessbar ... http://badpatents.blogspot.com/2011/05/progress-bar.html
<_br_> cr3: Sorry, had some lags and connect issues here with ZNC, never mind my comment.
yacks has quit [Quit: Leaving]
<_br_> Yep, patents are bullshit^Wgreat
carraroj has quit [Quit: Konversation terminated!]
<amh345> anyone have any ideas on that broken pipe error on .write i got? https://gist.github.com/anonymous/332a6cab1feb3faf2792
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
<shevy> what?
<shevy> [1, 2, "apple"].sort_by(&:to_s) # => [1, 2, "apple"]
<shevy> ['cat',1, 2, "apple"].sort_by(&:to_s) # => [1, 2, "apple", "cat"]
<shevy> where from does the 10 come??
<havenwood> norm: How should a word be sorted, where should it go?
<norm> havenwood / Spooner : i'd prefer numbers before characters, but i'm okay with any determinate behavior
<Flex> ahh
<havenwood> Flex: Since there is no instance method (class instance method) or variable load_config, error.
aedorn has joined #ruby
<norm> yeah but that also creates [1, 10, 2, "apple"]
dhruvasagar has quit [Ping timeout: 260 seconds]
<Flex> will try with self.class.load_config
willob has joined #ruby
<shevy> ah
<shevy> you mean as example
<norm> shevy: sorted by to_s, 10 comes before 2 :)
danneu has quit [Ping timeout: 252 seconds]
<shevy> yeah, I get it now, was not sure where 10 came into the scene
e-dard has quit [Ping timeout: 264 seconds]
<shevy> so basically your ordering should have 1,2,3,4,5,6,7,8,9,10,11 etc
<becom33> how can we write a method for somthing for a example color the output puts "color me red".red
rob__ has joined #ruby
<shevy> but how to sort 'a', 'bb', 'ccc' when mixed with numbers?
markalanevans has joined #ruby
chussenot has quit [Quit: chussenot]
<shevy> becom33 term ansicolours
<markalanevans> Is there an easy way to convert a string value of ">" to actually be the greator than operator?
<Caelum> wtf, Set lost select! and Array lost sort_by!
<shevy> print "red bold".red.bold, "\n"
<havenwood> norm: [1, 2, "apple"].sort_by(&:to_i) #=> ["apple", 1, 2]
<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
<becom33> is just a *
<shevy> becom33 if. you. would. look. at. the. page. you. would. see. how.
<shevy> becom33 extend class String
<Virunga> markalanevans: 3.send(">".to_sym, 1)
<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
<shevy> ddd is a master of ruby knowledge
<havenwood> norm: [1, 2, 'apple', 10, 'bees'].partition { |e| e.is_a? Fixnum }.flat_map &:sort
<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.
<Flex> havenwood / Spooner : https://gist.github.com/25071008a548a487612d .Made the change, re deployed and getting a new error :(
<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 ;(
kojul has joined #ruby
slainer68 has joined #ruby
Ontolog has joined #ruby
Spooner has quit [Quit: Leaving]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<havenwood> Hanmac: Did a micro-gem for three proposed new methods on Hash for 2.1.0: https://github.com/havenwood/hashy#readme
Quebert has quit [Quit: Leaving...]
<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)
<tay1> oh ok
<tay1> thanks
thone_ has quit [Ping timeout: 250 seconds]
<shevy> tay1 but u see it is longer
<havenwood> atal421: Stable is good. Definitely double check you've brew installed everything listed under: rvm 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
<atal421> Hanmac: "Error running './Configure darwin64-x86_64-cc etc…." and "Error running 'make', please read /Users/atal421/.rvm/log/ruby-2.0.0-p0/openssl/make.log"
axhlf has joined #ruby
<atal421> havenwood: yeah, i'm on it now. thanks ya'll
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<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)
<atal421> Hanmac: what do you mean? like what?
<shevy> your example of:
<shevy> puts Colorizer.bold(Colorizer.red("Hello"))
<shevy> would become:
<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.
<becom33> shevy, I read it
motto has joined #ruby
<shevy> becom33 good, why did you not like it?
m8 has quit [Ping timeout: 252 seconds]
<Flex> arghhh, havenwood: https://gist.github.com/264300835e5d80165046 < NoMethodError: undefined method `[]' for nil:NilClass
<shevy> you can unpack the .gem and look how he solved it
<rdark> quit
<shevy> it is minimal code
rdark has quit [Quit: leaving]
danneu has quit [Ping timeout: 252 seconds]
<shevy> havenwood I dont think I have heard of chruby... a few months ago
<shevy> RVM I know since a few years
<becom33> shevy, because I have to install that gem
<ddd> rbfu, chruby, rvm, rbenv, to name a few
<shevy> becom33 you can copy the content of that gem into your own .rb files and use that
<havenwood> shevy: chruby is part of a newer pack of minimalist options, and a few of the others have deprecated in its favor (rbfu and ruby-version)
<shevy> becom33 have you ever looked into a .gem before???
<becom33> god no . PLEASE SHOW ME . I DIDNT KNOW THAT
sayan has quit [Ping timeout: 245 seconds]
<ddd> let the beatings commence
sambao21 has joined #ruby
<Flex> lol
<becom33> well I downloaded whats on github once and used the lib without installing the gem
motto has quit [Read error: Connection reset by peer]
jjbohn is now known as jjbohn|afk
<havenwood> Other than rbenv and rvm, I think the only one that hasn't deprecated in favor of chruby is ry.
<Flex> rbenv > rvm
<ddd> now there's one i didn't know of (ry)
<ddd> rbenv < rvm
<Flex> lies ddd
<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
<wrench> what am I installing again?
<shevy> well, I keep a copy of setup.rb around and have it aliased to "r2"
<shevy> where "r2" runs to install a directory for me
<becom33> shevy, ok I think I found it . there is no gem dir in my machine its all in /usr/lib/ruby/1.9.1
<Hanmac> some "gems" are installed in the lib dir, some are installed in shared
<ddd> require File.expand_path("lib/myclass", __FILE__) would work wouldn't it?
<shevy> becom33 I can not believe this :(
<ddd> without having to handcode the full path?
<havenwood> becom33: Debian/Ubuntu?
<shevy> wrench yeah try ddd's way ^^^
workmad3 has quit [Ping timeout: 245 seconds]
<becom33> havenwood, Ubuntu
<wrench> shevy: trying that now
<shevy> ack
<ddd> i forget if the "" are even needed
<shevy> becom33, what shows "gem env" ?
darkc0met has quit [Quit: ZNC - http://znc.in]
<wrench> ddd: still got the load error
<shevy> for GEM PATH entry
<becom33> INSTALLATION DIRECTORY: /var/lib/gems/1.9.1
<shevy> becom33 ok look there
<shevy> cd /var/lib/gems/1.9.1/
<shevy> there is probably cache/ yes?
<Caelum> die!!! is that a ruby function?
<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
<shevy> Hanmac, RbConfig::CONFIG["sitearchdir"] # => "/Programs/Ruby/1.8.7p370/lib/ruby/site_ruby/1.8/i686-linux"
<shevy> give me a few minutes to compile latest 2.x
lewix_ has joined #ruby
<ddd> still updating brew so i can
<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> why not eat a candle
<ninjanoise> Green & Black 85% is amazing...
<Paradox> you'll get less wax
<shevy> Paradox Central Europe/Austria/Vienna
<Paradox> shevy, lucky
<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]
<ddd> sort of like hackers vs crackers
<ddd> wmoxam: ahh yes, quick turn right! you'll confuse em!
Clownz has joined #ruby
<evenix> lewix: lol
<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
<C0deMaver1ck> 0_o
<Flex> argh, stuck, anyone know why this is blowing up?? https://gist.github.com/264300835e5d80165046 < NoMethodError: undefined method `[]' for nil:NilClass
hoelzro|away is now known as hoelzro
Criztian_ has joined #ruby
axtran has joined #ruby
MehLaptop has joined #ruby
stkowski has quit [Quit: stkowski]
ninjanoise has quit [Remote host closed the connection]
Criztian has quit [Ping timeout: 252 seconds]
<Xeago> apeiros_: you watching?
<apeiros_> no, wanted to ask you whether you know a stream which starts from the beginning :)
tay1 has quit [Remote host closed the connection]
Stilo has joined #ruby
tay1 has joined #ruby
<Xeago> no, don't know :<
<Xeago> just know
<Xeago> the show matches
sambao21 has quit [Ping timeout: 245 seconds]
<Xeago> are AWESOME
rezzack has joined #ruby
<Xeago> production quality is also very high
whowantstolivef1 has joined #ruby
<Xeago> (currently on break, between matches)
tay1 has quit [Read error: Connection reset by peer]
tay1 has joined #ruby
sambao21 has joined #ruby
<Xeago> even, the inbetween stuff, from apollo is very cool
<Xeago> showing off some cool quick tutorial stuff
<apeiros_> watching now
<apeiros_> wanted to see from the beginning
<Xeago> been watching from 7,
<Xeago> just after the match of flash vs dno
* apeiros_ jealous
<Xeago> (dno asin don't know)
<apeiros_> but was in spanish course
jrendell has quit [Ping timeout: 255 seconds]
Morkel has joined #ruby
<apeiros_> couldn't skip. already skipped to many
<Xeago> not much to see till the EU launch
<Xeago> spanish?
sheenobu has quit [Quit: sheenobu]
<Xeago> why spanish?
alterpub has joined #ruby
<apeiros_> *too many
<atmosx> hi ppl
<becom33> shevy, u there still ?
<apeiros_> because it should be easy for me to learn
m_3 has quit [Remote host closed the connection]
<Flex> wat you talking about?lol
<apeiros_> also it's the most often spoken language in the world
<Xeago> Flex: sc2 launch event
<shevy> becom33 yeah but soon have to go to get washed etc... to bathroom
<becom33> I'm having a problem with what u mentioned before about unpacking gem and using the code
stefkos has joined #ruby
<stefkos> hey
<Xeago> and from the twitch chat I've seen, the match of flash wasn't as good as stephano vs grubby
<apeiros_> Xeago: why, what language would you learn?
<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
<shevy> becom33 lib/ruby/gems/1.8/cache/clipboard-1.0.1/lib/clipboard/linux.rb
<Xeago> yea :)
<becom33> autoload :Linux, 'clipboard/linux'
<shevy> becom33 why?
<shevy> why not just require
<shevy> well. if a project uses autload
chrishough has quit [Quit: chrishough]
<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???
<Flex> argh, stuck, anyone know why this is blowing up?? https://gist.github.com/264300835e5d80165046 < NoMethodError: undefined method `[]' for nil:NilClass
<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
<becom33> what happend when u open it ?
Flex has quit [Remote host closed the connection]
<Hanmac> atmosx minesweeper? :P
<stefkos> atmosx, same here... in freetime im working on amigaos "clone" MorphOS ->http://www.morphos-team.net/
<mercwithamouth> http://cl.ly/image/322K3L3J0I09 <-- it comes out like this..i know there's a way to get a more structured output
<atmosx> Hanmac: hahah no! :-P
luckyruby has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
<becom33> stefkos, double click and open "AptanaStudio3"
<stefkos> becom33, I created empty ruby project
R_Macy has quit [Quit: Computer has gone to sleep.]
<atmosx> stefkos: can this beused to play old amiga game son it?
pietr0_ is now known as pietr0
<stefkos> becom33, ok go ahead im listening
<becom33> and give it a workspace when the popup comes
<stefkos> atmosx, nope:( for this you must use UAE
<atmosx> UAE?
<becom33> then File > New > Ruby Project
<Hanmac> atmosx i am good in gnome-mine ... you need 15sec to get into the highscore :P
<stefkos> Unix Amiga Emulator
<ddd> united arab emeriates?
<ddd> s/ia/a/
<ddd> heh
Takehiro has quit [Ping timeout: 246 seconds]
chrishough has joined #ruby
<Clownz> VAT
<stefkos> becom33, default project or ruble template?
<Clownz> United arab emulator
ryanf has quit [Ping timeout: 255 seconds]
<becom33> default
<becom33> no ruble
<stefkos> becom33, ok... now "project location" i set location...
<stefkos> name: FirstProject_test
<becom33> go next
<stefkos> dont have next, i can finish or cancel now
whap has joined #ruby
<becom33> finish
wmoxam_ has joined #ruby
<stefkos> done
<becom33> now you should get a folder icon with your project name on the left side bar
jgrevich_ has joined #ruby
<stefkos> in project explorer i have my directory and connections
<becom33> good
Niamkik_ has joined #ruby
<becom33> now
<shevy> I once wanted to write an editor in ruby gnome
patronus1 has joined #ruby
<becom33> stefkos, right click on ur directory GO to "New " > "File"
<stefkos> test.rb ?
<becom33> ok no problem
<stefkos> finish....
krislappy has joined #ruby
krislappy has quit [Changing host]
krislappy has joined #ruby
<stefkos> i have test.rb, i opened it in editor
<becom33> great now do ur stuff there
skogis_ has joined #ruby
bnagy_ has joined #ruby
hbpoison_ has joined #ruby
<julian-d_> god, is this "how to use eclipse 101"
<julian-d_> ?
alex____4 has joined #ruby
kpshek_ has joined #ruby
<julian-d_> overkill if i've ever heard it
<becom33> julian-d_, ha ha
<whap> the doc for safe level says "$SAFE >= 1 Can’t eval tainted strings." why does this work? t = "'bad'"; t.taint; ->{$SAFE=4; eval t}.call
cobragoat has quit [Remote host closed the connection]
<stefkos> becom33, how to compile
<stefkos> ?
ryanf has joined #ruby
<becom33> compile what ?
<ddd> compile?
devyn_ has joined #ruby
<becom33> are you windows ?
<stefkos> yes
<becom33> you on *
<becom33> aww
pedahzur has quit []
geekbri has quit [Remote host closed the connection]
wunz_ has joined #ruby
<becom33> so you want make a EXE from ur ruby project ? like in visual studio
alexhanh_ has joined #ruby
kandinsk1 has joined #ruby
andrewh_ has joined #ruby
chiel_ has joined #ruby
brian-_ has joined #ruby
happosade has joined #ruby
mnemon2 has joined #ruby
kloeri_ has joined #ruby
Sp4rKy_ has joined #ruby
r126l_ has joined #ruby
<stefkos> becom33, yep
<becom33> Ok
<ddd> oh boy
theoros_ has joined #ruby
rdo_ has joined #ruby
<stefkos> becom33, but by using aptana
Bish_ has joined #ruby
<stefkos> i know how to make makefile
carl_zulauf has joined #ruby
greybott has quit [Quit: Leaving.]
<stefkos> dont want to do it by hand
<ddd> there's a ruby compiler?
<stefkos> hmm
<stefkos> its working
<Clownz> i thought ruby is interpeter
teamon has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
<ddd> it is
emergion has joined #ruby
devyn_ has quit [Changing host]
devyn_ has joined #ruby
devyn has quit [Disconnected by services]
<stefkos> well for simple "program"
<ddd> must be something for windows. i don't run windows so :shrug: idk
devyn_ is now known as devyn
<stefkos> message = 'ggg'
<stefkos> puts message
<stefkos> its working
HecAtic has quit [Ping timeout: 256 seconds]
<Clownz> yeah i make my ruby projects on linux
<becom33> stefkos, I'm not sure about compiling u need to talk to some one else about that
<Clownz> easy with vim
<ddd> yeah because its executing ruby and passing your file to it
<stefkos> ddd, thats my first touch with Ruby
Zai00 has joined #ruby
<stefkos> becom33, yep, thx for help
<stefkos> I wonder now how they make plugins for SketchUp
<ddd> ruby doesn't compile into an exe. the IDE passes your file to the ruby intepreter which then interprets your ruby file/script
cobragoat has joined #ruby
<Clownz> then what
<ddd> you don't make ruby EXEs that I know of unless someone's developed something I don't know about (and is completely specific to windows)
<stefkos> ok
alexim has joined #ruby
elaptic`` has joined #ruby
<Clownz> the concept of interpet is like when the interpeter (in general such as python and ruby) change our file/script into machine language?
<stefkos> then it should be quite easy to get plugins from sketchup and understand how they works
Xeago has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 246 seconds]
hbpoison has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 246 seconds]
NiteRain has quit [Ping timeout: 246 seconds]
kpshek has quit [Ping timeout: 246 seconds]
MissionCritical has quit [Ping timeout: 246 seconds]
alex___ has quit [Ping timeout: 246 seconds]
skogis has quit [Ping timeout: 246 seconds]
andrewh has quit [Ping timeout: 246 seconds]
wunz has quit [Ping timeout: 246 seconds]
bnagy has quit [Ping timeout: 246 seconds]
chiel has quit [Ping timeout: 246 seconds]
remi has quit [Ping timeout: 246 seconds]
Bish has quit [Ping timeout: 246 seconds]
kandinski has quit [Ping timeout: 246 seconds]
happosad1 has quit [Ping timeout: 246 seconds]
rdo has quit [Ping timeout: 246 seconds]
Fraeon has quit [Ping timeout: 246 seconds]
r126l has quit [Ping timeout: 246 seconds]
alexhanh has quit [Ping timeout: 246 seconds]
JoeHazzers has quit [Ping timeout: 246 seconds]
brian- has quit [Ping timeout: 246 seconds]
jphpsf has quit [Ping timeout: 246 seconds]
theoros has quit [Ping timeout: 246 seconds]
elaptics`away has quit [Ping timeout: 246 seconds]
krisfremen has quit [Ping timeout: 246 seconds]
carlzulauf has quit [Ping timeout: 246 seconds]
mnemon has quit [Ping timeout: 246 seconds]
Sp4rKy has quit [Ping timeout: 246 seconds]
Niamkik has quit [Ping timeout: 246 seconds]
nricciar has quit [Ping timeout: 246 seconds]
patronus_ has quit [Ping timeout: 246 seconds]
nga4 has quit [Ping timeout: 246 seconds]
kloeri has quit [Read error: Connection reset by peer]
jgrevich_ is now known as jgrevich
kpshek_ is now known as kpshek
sebastianb has quit [*.net *.split]
xbob has quit [Quit: Leaving]
remi has joined #ruby
remi has joined #ruby
remi has quit [Changing host]
NiteRain has joined #ruby
sebastianb has joined #ruby
JoeHazzers has joined #ruby
Fraeon has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
<stefkos> heh
Xeago has joined #ruby
<stefkos> all plugins are in .rb files...
<stefkos> i know eveyrthing now
<stefkos> thx guys
<stefkos> just wonder, whats .rbs?
<shevy> perhaps an idiot who append a s to it
hoelzro is now known as hoelzro|away
<stefkos> nope
<shevy> I only know .rbw
<stefkos> i see binary file
techlife has quit [Ping timeout: 264 seconds]
<stefkos> binary file with RBS1.0P
jlast has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
<stefkos> on first bytes
cupakromer has left #ruby [#ruby]
<Hanmac> stefkos: there are also compiled gems ... they have *.so or *.dll
alex__c2022 has quit [Read error: Connection reset by peer]
wmoxam_ has quit [Quit: leaving]
wmoxam has joined #ruby
alex__c2022 has joined #ruby
slyv has joined #ruby
jerius has joined #ruby
jphpsf has joined #ruby
<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> ruby security problem? or is there something I'm missing? http://pastie.org/6454722
whowantstolivef1 has quit [Ping timeout: 245 seconds]
<atmosx> I can use split and recreate it but seems kinda idiotic
m8 has joined #ruby
timonv has quit [Remote host closed the connection]
gommo has joined #ruby
KenDhia has quit [Ping timeout: 260 seconds]
yashshah has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
berserkr has quit [Read error: Operation timed out]
<julian-d_> whap: what is that attempting to do?
baroquebobcat has joined #ruby
pdamer has quit [Quit: pdamer]
quazimodo has quit [Ping timeout: 264 seconds]
<whap> julian-d_: it evals a string under SAFE level 2 and fails. Then it does again under SAFE level 4 and succeeds
<julian-d_> $SAFE >= 2 means Ruby prohibits the loading of program files from globally writable locations.
<julian-d_> according to what i see.
beneggett has quit [Quit: Computer has gone to sleep.]
wmoxam has quit [Quit: leaving]
quazimodo has joined #ruby
<whap> julian-d_: $SAFE >= 1 Can't eval tainted strings.
atno has quit [Ping timeout: 260 seconds]
wallclockbuilder has joined #ruby
<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
<eval-in> julian-d_ => /tmp/execpad-cde7c68220db/source-cde7c68220db:2:in `<main>': undefined method `to_boolean' for "false":String (NoMethodError) (http://eval.in/12470)
<julian-d_> bah
<julian-d_> w/e
<julian-d_> i can't code today
<Galen> I got it :)
kofno has quit [Remote host closed the connection]
elux_ has quit [Quit: Leaving...]
atno has joined #ruby
Ontolog has quit [Remote host closed the connection]
wallerdev has joined #ruby
freezway has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
rasbonics has joined #ruby
rasbonics has quit [Client Quit]
<Galen> class String; def to_boolean; self == "true"; end; end; "false".to_boolean
<Galen> >> class String; def to_boolean; self == "true"; end; end; "false".to_boolean
<eval-in> Galen => false (http://eval.in/12471)
<Galen> >> "true".to_boolean
<eval-in> Galen => /tmp/execpad-b673896170d8/source-b673896170d8:2:in `<main>': undefined method `to_boolean' for "true":String (NoMethodError) (http://eval.in/12472)
<Galen> >> class String; def to_boolean; self == "true"; end; end; "true".to_boolean
Takehiro has quit [Ping timeout: 240 seconds]
<eval-in> Galen => true (http://eval.in/12473)
skattyadz has joined #ruby
<workmad3> >>class String; def to_boolean; self == "true"; end; end; "fizzbuzz".to_boolean
aapzak has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
<eval-in> workmad3 => false (http://eval.in/12474)
daemoen is now known as mmercer
mmercer is now known as daemoen
_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/}
<eval-in> julian-d_ => /tmp/execpad-64b3b4ab53d1/source-64b3b4ab53d1:2: syntax error, unexpected '='
<eval-in> p ["test", "ruby", "rubinius"].select{|x| x ~= /rub/}
<julian-d_> >>p ["test", "ruby", "rubinius"].select{|x| x =~ /rub/}
<eval-in> julian-d_ => ["ruby", "rubinius"]
<eval-in> ["ruby", "rubinius"] (http://eval.in/12476)
<julian-d_> maxmanders: ^
<apeiros_> grep ;-)
<julian-d_> yeah yeah
<julian-d_> :p
<julian-d_> I always forget about grep
<julian-d_> (in the ruby form)
<apeiros_> many do
dustint has quit [Ping timeout: 245 seconds]
<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/)
<eval-in> apeiros_ => ["this", "is", "awesome"] (http://eval.in/12477)
<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.
jrendell has quit [Quit: jrendell]
<breakingthings> >>whatever = :yo_momma
<eval-in> breakingthings => :yo_momma (http://eval.in/12478)
<breakingthings> cool.
<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:
<banisterfiend> 978 tests, 1420 assertions, 0 failures, 0 errors
<banisterfiend> rake 8.16s user 1.29s system 98% cpu 9.541 total
<banisterfiend> not sure how fast that would run on rspec, but i guess significantly slower
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
Yakko has joined #ruby
atno has quit [Ping timeout: 264 seconds]
tjbiddle has joined #ruby
<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]
<ofcan> banisterfiend: I gisted my code here, can you show how exactly > https://gist.github.com/ofcan/5138537
zeade has quit [Quit: Leaving.]
jbueza has quit [Quit: Leaving.]
tjbiddle_ has joined #ruby
chipotle_ has quit [Quit: cya]
tspike has joined #ruby
chrishough has quit [Quit: chrishough]
chrishough has joined #ruby
b055cad has quit [Ping timeout: 248 seconds]
adkron__ has quit [Ping timeout: 252 seconds]
Spooner has joined #ruby
Es0teric has joined #ruby
kofno has joined #ruby
tjbiddle__ has joined #ruby
tjbiddle has quit [Ping timeout: 260 seconds]
tjbiddle__ is now known as tjbiddle
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
HecAtic has quit [Ping timeout: 256 seconds]
dEPy has quit []
chipotle_ has joined #ruby
splud has quit [Quit: splud]
kojul has quit [Quit: kojul]
splud has joined #ruby
khismeti_ has quit [Quit: Computer has gone to sleep.]
tjbiddle__ has joined #ruby
tjbiddle_ has quit [Ping timeout: 260 seconds]
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
cyong has joined #ruby
<e-dard> ofcan: why don't you keep your cell objects (or references to them, at least) in a datastructure in World
<e-dard> Then checking if there is an existing cell at a position is trivial, because you only need to check for the existence of a Cell object
hiroyuki has joined #ruby
andres833 has joined #ruby
<e-dard> and moving cells around is a case of moving references in the data structure
<banisterfiend> e-dard: world.any? { |v| v.x == @x && v.y == @y }
<banisterfiend> ==x / == y &
<banisterfiend> *
jbueza has joined #ruby
<andres833> hi all
<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).
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<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?
h4mz1d has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
jbueza has joined #ruby
neku has quit [Quit: Linkinus - http://linkinus.com]
_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.
ArchBeOS has joined #ruby
ffranz has quit [Quit: Leaving]
tspike has quit [Ping timeout: 264 seconds]
piotr__ has quit [Ping timeout: 245 seconds]
HecAtic has quit [Ping timeout: 252 seconds]
Vainoharhainen has quit [Quit: Leaving...]
khismetix has quit [Quit: Computer has gone to sleep.]
kirun has quit [Quit: Client exiting]
stkowski has joined #ruby
ofcan has quit [Quit: leaving]
tomzx_mac has joined #ruby
nga4 has quit [Ping timeout: 245 seconds]
stefkos has quit [Ping timeout: 250 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
tspike has joined #ruby
wobblini has quit [Ping timeout: 252 seconds]
AwayLex is now known as Quadlex
lewix has joined #ruby
dol37 has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
lewix has quit [Remote host closed the connection]
<dcope> How can i get the max date?
hasimo has quit [Remote host closed the connection]
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
Hanmac has quit [Ping timeout: 245 seconds]
aaronmcadam has quit [Quit: Leaving...]
danneu has quit [Quit: WeeChat 0.3.8]
harumph has joined #ruby
Stilo has joined #ruby
quazimodo has quit [Remote host closed the connection]
quazimodo has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
gyre007 has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
kpshek has joined #ruby
<banisterfiend> apeiros_: do u like this https://dl.dropbox.com/u/26521875/videos/tampopo_scene.m4v
jpcamara has joined #ruby
HecAtic has joined #ruby
jpcamara_ has quit [Ping timeout: 256 seconds]
hasimo has joined #ruby
cr3 has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
dol37 has left #ruby ["Leaving"]
xardas has quit [Ping timeout: 272 seconds]
hbpoison has joined #ruby
himsin has joined #ruby
tenmilestereo has quit [Quit: Leaving]
<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.]
daniel_- has quit [Read error: No route to host]
jgrevich has quit [Ping timeout: 255 seconds]
yshh has quit [Ping timeout: 255 seconds]
<gf3> thecodethinker: Just… add another file?
<Spooner> thecodethinker, require_relative "path/to/another/file"
sailias has quit [Quit: Leaving.]
<thecodethinker> gf3: how though? I'm new to ruby :3
<thecodethinker> ah
<harumph> thecodethinker - load or require files.
cyberflux has joined #ruby
<thecodethinker> harumph: I guess that's only for classes then
<cr3> aha, I need to specify: --binstubs=/usr/local/bin
<thecodethinker> kind of like C++
<thecodethinker> and C
<banisterfiend> Spooner: have you played with R?
<harumph> right. generally keep classes in their own files and bring them together by loading the files.
<Spooner> banisterfiend, Nope. Never.
<banisterfiend> Spooner: it's very cool
Quebert has quit [Read error: Connection reset by peer]
<banisterfiend> and it has some extremely polished tools
jgrevich has joined #ruby
zeade has joined #ruby
carlyle has joined #ruby
yshh has joined #ruby
sailias has joined #ruby
sailias has quit [Client Quit]