robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
_Kerber0s_ has joined #ruby
narcan has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
InhalingPixels has quit [Ping timeout: 252 seconds]
_Kerber0s_ has quit [Remote host closed the connection]
_Kerber0s_ has joined #ruby
Kerber0s has quit [Ping timeout: 260 seconds]
wjimenez5271 has quit [Ping timeout: 245 seconds]
sevenseacat has joined #ruby
amclain has joined #ruby
wjimenez_ has quit [Ping timeout: 240 seconds]
earthquake has quit [Quit: earthquake]
aspires has quit []
sparrovv has joined #ruby
deric_skibotn has quit [Ping timeout: 260 seconds]
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yetanotherdave has quit [Ping timeout: 246 seconds]
robh71 has joined #ruby
sparrovv has quit [Ping timeout: 245 seconds]
absolutezeroff has joined #ruby
crdprink2 has joined #ruby
crdpink has quit [Ping timeout: 260 seconds]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yetanotherdave has joined #ruby
avita1 has quit [Quit: Leaving.]
pu22l3r has joined #ruby
Inhaling_ has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
mferrier has joined #ruby
rjhunter has joined #ruby
avita1 has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
fsapo has joined #ruby
skolman_ has joined #ruby
InhalingPixels has quit [Ping timeout: 268 seconds]
bmurt has quit []
newmanships has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
mferrier has quit [Ping timeout: 260 seconds]
jmbrown412 has joined #ruby
lemur has joined #ruby
skolman_ has quit [Ping timeout: 255 seconds]
lemur has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
lemur has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
skolman_ has joined #ruby
bmurt has joined #ruby
seamon has quit [Quit: Zzzzzzz]
oo_ has quit [Remote host closed the connection]
rjhunter has quit [Remote host closed the connection]
jmbrown412 has quit [Ping timeout: 268 seconds]
Hobogrammer_ has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
tkuchiki has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
whatasunnyday has quit [Quit: whatasunnyday]
mpistone has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
sonOfRa has quit [Ping timeout: 250 seconds]
ixti has quit [Quit: WeeChat 0.4.3]
Spami has quit [Quit: This computer has gone to sleep]
sonOfRa has joined #ruby
D34DC0D3_ has joined #ruby
D34DC0D3_ has quit [Client Quit]
iteratorP has quit [Read error: Connection reset by peer]
iteratorP has joined #ruby
mockra has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
bmurt has quit []
siwica has quit [Quit: siwica]
bmurt has joined #ruby
mockra has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
moritzschaefer has joined #ruby
mikeg has quit [Remote host closed the connection]
optiz0r has quit [Ping timeout: 245 seconds]
goshdarnyou has joined #ruby
avita1 has quit [Quit: Leaving.]
SilkFox_ has joined #ruby
avita1 has joined #ruby
avita1 has quit [Client Quit]
Cache_Money has joined #ruby
snath has joined #ruby
pu22l3r has joined #ruby
bmurt has quit []
SilkFox_ has quit [Ping timeout: 240 seconds]
choke has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
martin_work has joined #ruby
natevick has joined #ruby
tokik has joined #ruby
DEA7TH has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
pu22l3r has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
martin_work has quit [Ping timeout: 264 seconds]
seamon has joined #ruby
bricker`work has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
Spami has joined #ruby
fsapo has quit [Ping timeout: 276 seconds]
martin_work has joined #ruby
<martin_work>
Hey all, I have an array of objects, I would like to grep though that array for the results of each obj.s method. Is there a better way to do this other then a each loop?
<pontiki>
grep
echooo has joined #ruby
<sevenseacat>
lol
<sevenseacat>
map(&:s)
helpa has quit [Remote host closed the connection]
<sevenseacat>
done
<pontiki>
TADA!! \o/
mferrier has joined #ruby
<martin_work>
thanks
helpa has joined #ruby
<martin_work>
guess i should a looked for that :D
<sevenseacat>
ps. grep does not mean what you think it means
jnoob22 has joined #ruby
Cooler_ has quit [Read error: Connection reset by peer]
tfitts has quit [Remote host closed the connection]
tfitts has joined #ruby
j_mcnally has joined #ruby
j_mcnally has quit [Client Quit]
odlox_ has quit [Ping timeout: 264 seconds]
j_mcnally has joined #ruby
<jnoob22>
Is foreman a good candidate to serve ruby in a production environment (as an alternative to using Apache)?
GriffinHeart has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
mollitz has joined #ruby
<havenwood>
Blizzy: might be worth looking at Atomic and Timers gems
<Blizzy>
ok, another question.
<Blizzy>
would every 1.minute do
<Blizzy>
work?
<czaks>
havenwood: wow, use of @ variables in main context
oo_ has joined #ruby
shaileshg has joined #ruby
<czaks>
i'm curious why you did it this way, is it your own idiom, or something more on the topic?
radic has quit [Disconnected by services]
radic_ has joined #ruby
moritzschaefer has quit [Ping timeout: 276 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
tlarevo has quit [Remote host closed the connection]
pu22l3r has joined #ruby
yetanotherdave has joined #ruby
tlarevo has joined #ruby
hamakn has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
sparrovv has joined #ruby
<ferr>
I would like to write myself a script to check domain whois through http://who.is/whois/domainame Just dont know what should I use, any suggestions?
earthquake has joined #ruby
<pontiki>
ferr: mechanize might be a good start?
natevick has joined #ruby
<pontiki>
though there is the *nix whois(1) command as well
hamakn has joined #ruby
lw has joined #ruby
<ferr>
I'll check it, thanks
<havenwood>
czaks: i just started writing `@mutex = Mutex.new` since i'm used to initializing Mutexes in a Class, then didn't bother to switch to local
pu22l3r has quit [Ping timeout: 276 seconds]
<havenwood>
czaks: not trying to make any grand statement :P
cyberarm has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
bmurt has quit [Ping timeout: 255 seconds]
sparrovv has quit [Ping timeout: 240 seconds]
thumpba has quit [Read error: Connection reset by peer]
thumpba_ has joined #ruby
chipotle has joined #ruby
centrx has quit [Quit: Mead error: Connection reset by beer]
<havenwood>
ferr: i like the HTTP and HTTPClient gems in particular, but Mechanize is neat too
<ferr>
Just great havenwood!
lysw123 has joined #ruby
yeticry has joined #ruby
<havenwood>
ah, scraping, yeah mechanize is really good at that
jerius has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<czaks>
WebDriver anyone? :)
braincrash has joined #ruby
troyready has quit [Ping timeout: 246 seconds]
<zorak>
are there any problem with this?
<zorak>
9 <% if @calculadora.present? do %>
<zorak>
10 <%= @calculadora.extras(n) %>
<zorak>
11 <% end %>
Bumptious has joined #ruby
<zorak>
added to the code and now is tell me that an end is missing
duggiefresh has quit []
mollitz has quit [Ping timeout: 255 seconds]
diegovio1 has joined #ruby
<sevenseacat>
why do you have a `do`?
<havenwood>
#present? <- an invader!
<sevenseacat>
you just worked that out now, after he's been asking about rendering partials all morning? :P
<havenwood>
hehe
<zorak>
invader?
<zorak>
why
<zorak>
im just noob
coreycondardo has left #ruby [#ruby]
diegoviola is now known as Guest92324
Guest92324 has quit [Ping timeout: 260 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
diegovio1 is now known as diegoviola
Sawbones has joined #ruby
<sevenseacat>
you're asking rails-specific questions in a ruby channel, when there are perfectly good rails channels
lysw123 has quit [Ping timeout: 260 seconds]
<zorak>
ahh
<czaks>
nope
<zorak>
haha
<zorak>
yes
<czaks>
it's not rails specific question
<havenwood>
zorak: i was just teasing, no worry
<czaks>
not only rails uses ERB
<havenwood>
zorak: not calling you an invader, just hte method :P
<zorak>
but the rails need login an have to change my nick
<sevenseacat>
no-one mande a mention of erb
<zorak>
and reconnect
<sevenseacat>
the discussion was of #present? which is activesupport
luckyruby has quit [Remote host closed the connection]
<czaks>
sure
zorak is now known as zorak8
zorak8 has quit [Quit: Saliendo]
<czaks>
i actually never wrote any app in fully rails, dunno why, i always picked the elements from rails i liked the most.
zorak8 has joined #ruby
<havenwood>
zorak8: you can cherry pick the method from active_support and get it in regular Ruby easy enough :) require 'active_support/core_ext/object/blank'
<mallu>
if I do f = File.open(file, "w"); f.puts "something" it will overwrite the file
rockdon|away is now known as rockdon_
<sevenseacat>
have you checked the docs on the File class?
thams has joined #ruby
pranny has joined #ruby
absolutezeroff has quit [Ping timeout: 240 seconds]
<mallu>
thats where I got the above statements
<mozzarella>
use 'a' or 'a+' I guess
<mallu>
oh ..... let ,e try that
<sevenseacat>
now read the rest of them
pranny has quit [Client Quit]
<havenwood>
mallu: Use the block format, so `File.open() do |f|` instead of `f = File.open()`.
<mallu>
ok
hamakn has quit [Remote host closed the connection]
<havenwood>
mallu: one advantage it that way the file is self-closing, when the block closes it closes
<mallu>
ok
<havenwood>
mallu: then you can drop the `ensure; f.close; end`s
<mallu>
got it
tkuchiki_ has joined #ruby
p0sixpscl has joined #ruby
p0sixpscl has quit [Max SendQ exceeded]
DrCode has joined #ruby
rockdon_ has quit [Ping timeout: 276 seconds]
mferrier has joined #ruby
shredding has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
sinkensabe has joined #ruby
shredding has quit [Client Quit]
ht__th has joined #ruby
thams_ has joined #ruby
mferrier has quit [Ping timeout: 260 seconds]
yacks has quit [Quit: Leaving]
hamakn has joined #ruby
apxm has joined #ruby
thams has quit [Ping timeout: 246 seconds]
thams_ is now known as thams
wallerdev has quit [Quit: wallerdev]
avita1 has joined #ruby
choke has quit [Ping timeout: 245 seconds]
vinleod has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
linojon has quit [Quit: linojon]
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
rockdon_ has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
SilkFox_ has joined #ruby
pu22l3r has joined #ruby
InhalingPixels has joined #ruby
Kerber0s has joined #ruby
bearish has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
chipotle has quit [Quit: cya]
kyb3r_ has joined #ruby
Cache_Money has joined #ruby
tlarevo has quit [Ping timeout: 255 seconds]
Kislik has joined #ruby
echevemaster has quit [Quit: Leaving]
Macaveli has joined #ruby
rockdon_ has quit [Client Quit]
SilkFox_ has quit [Ping timeout: 246 seconds]
txdv has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
InhalingPixels has quit [Ping timeout: 264 seconds]
tagrudev has joined #ruby
txdv has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
mockra has quit [Remote host closed the connection]
tlarevo has joined #ruby
mockra has joined #ruby
bal has joined #ruby
Cache_Money has quit [Ping timeout: 245 seconds]
zettam_ has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
Soliah has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
dawkirst has joined #ruby
havenwood has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
tkuchiki has joined #ruby
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
fabrice31 has quit [Ping timeout: 268 seconds]
maletor has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Scotteh_ has joined #ruby
thams has quit [Ping timeout: 260 seconds]
Gforce has joined #ruby
GeekOnCoffee has quit [Ping timeout: 264 seconds]
grenierm has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
Scotteh_ has quit [Ping timeout: 245 seconds]
<Gforce>
Hey guys.I'm looking for a lannguage for my scripts.I know python but I kinda don't like the python oop.does any one have the experience with both python and ruby?which one do you prefer?why?
gaussblurinc1 has joined #ruby
hiyosi has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
<sevenseacat>
what dont you like about it?
<Gforce>
the oop syntax.
<mozzarella>
I prefer ruby
linoespinoza has joined #ruby
<Gforce>
you know I like the c++ one more.;)
chipotle has joined #ruby
lw has quit [Quit: s]
_tpavel has joined #ruby
mr-foobar has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
GeekOnCoffee has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
<Gforce>
any idea?
<sevenseacat>
the syntax is fairly similar.
tlarevo has joined #ruby
riotjones has joined #ruby
robh71 has joined #ruby
lemur has quit [Ping timeout: 246 seconds]
GinoMan has quit [Ping timeout: 272 seconds]
<Gforce>
oh no!
<Gforce>
thanks.
thams has joined #ruby
timonv_ has quit [Remote host closed the connection]
shredding has joined #ruby
sigurding has joined #ruby
Gforce has left #ruby [#ruby]
sinkensabe has joined #ruby
shredding has quit [Client Quit]
sparrovv has joined #ruby
Kislik has quit [Quit: Computer has gone to sleep.]
zarul has quit [Ping timeout: 260 seconds]
Kislik has joined #ruby
cirn0 has quit [Quit: Leaving]
gurix has joined #ruby
sinkensabe has quit [Remote host closed the connection]
cirn0 has joined #ruby
sinkensabe has joined #ruby
yacks has joined #ruby
apxm has quit [Ping timeout: 245 seconds]
Kislik has quit [Read error: Connection reset by peer]
pranny has joined #ruby
* sevenseacat
hasn't used python in nearly 10 years
lw has joined #ruby
thams_ has joined #ruby
qualiabyte has quit [Quit: Leaving]
thams has quit [Ping timeout: 272 seconds]
thams_ is now known as thams
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
sayem has quit [Remote host closed the connection]
zarul has joined #ruby
Logomachist has joined #ruby
w09x has joined #ruby
codecop has joined #ruby
mferrier has joined #ruby
toastynerd has quit [Ping timeout: 255 seconds]
Logomachist has quit [Client Quit]
Logomachist has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
havenwood has joined #ruby
mferrier has quit [Ping timeout: 276 seconds]
diegovio1a has joined #ruby
lemur has joined #ruby
mengu has joined #ruby
LekeFly has joined #ruby
<mozzarella>
why can we access class methods with both . and ::, but only :: for class constants?
AlSquirrel has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
We can access all methods with . and ::, that's just how the syntax works
<JazzOderNie>
toretore: ok that explains it, i have 4.8
mferrier has quit [Ping timeout: 272 seconds]
Guest8986 has quit [Max SendQ exceeded]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
<Hanmac>
hmm but imo the gem should be intelligent enough to check if the option is suppported or not if it does use it like that
tlarevo has joined #ruby
<JazzOderNie>
ok so i installed gcc-4.9, did 'export CC=gcc-4.9' and tried installing, still the same error
<JazzOderNie>
how can i check if it is really using 4.9?
jeroenvisser101 has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
<sonOfRa>
if it doesn't check gcc version, it probably doesn't use CC either, but instead just invokes gcc
<Hanmac>
JazzOderNie: while gem install it does ignore the CC setting, because it does only use the same compiler which it did use while compiling ruby ....
tlarevo_ has quit [Ping timeout: 240 seconds]
<JazzOderNie>
Hanmac: oh boy, so i have to compile ruby? because i simply installed the ruby debian package
<Hanmac>
hm i dont know ... imo the redcarpet gem should not make such a shit ... hm i will look at the code
<JazzOderNie>
also, version 2.3.0 is not the current version, so it's surprising it requires the newest gcc version
<Hanmac>
JazzOderNie: does the newest version of redcarpet works with install?
<JazzOderNie>
Hanmac: no, same error
mityaz_ has joined #ruby
havenwood has joined #ruby
zorak8 has quit [Ping timeout: 245 seconds]
mityaz has quit [Ping timeout: 260 seconds]
<Hanmac>
hm then currently i dont know ... but it does look that this fstack-protector-strong does not come from the gem but from ruby or something ...
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
w09x has quit [Remote host closed the connection]
<Hanmac>
JazzOderNie: hm if you do: RbConfig::CONFIG.select {|_,v| v["-fstack-protector-strong"] } in your ruby, does it return something?
CpuID has quit [Remote host closed the connection]
<Hanmac>
:/ ah i knew it ... means that somehow your ruby package is build against the newer compiler but maybe you did not install the newer compiler itself ... :/ or something like that ... curios
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<JazzOderNie>
oh wow.. i'll try removing the debian ruby package and reinstalling it
persand has joined #ruby
mockra has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<Hanmac>
hm yeah that seems to be, hm do reinstall the gcc version too ... hm check if "sudo update-alternatives --list cc" only shows one or something
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
tobago has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 245 seconds]
persand has quit [Quit: persand]
persand has joined #ruby
riotjones has quit [Read error: No route to host]
ptrrr has quit [Ping timeout: 240 seconds]
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
Andriamanitra has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
karupa is now known as zz_karupa
persand has quit [Client Quit]
<JazzOderNie>
Hanmac: ok, so i removed the ruby package but ruby2.1 remains installed... so probably this was installed from source (even though i don't remember doing that)
tylerkern has quit [Quit: Connection closed for inactivity]
tvw has joined #ruby
Andriamanitra has joined #ruby
paul424 has joined #ruby
<paul424>
Is there channel confined to OOP ?
arup_r has quit [Remote host closed the connection]
jeroenvisser101 has joined #ruby
pu22l3r has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
arup_r has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
jheg has joined #ruby
voodoofish1 has joined #ruby
InhalingPixels has joined #ruby
SilkFox_ has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
fella5s has joined #ruby
Xeago has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 240 seconds]
voodoofish has quit [Ping timeout: 260 seconds]
u6aBeWPy has joined #ruby
tobago has joined #ruby
riotjones has joined #ruby
Macaveli has joined #ruby
fella6s has quit [Ping timeout: 240 seconds]
InhalingPixels has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 260 seconds]
sk87 has joined #ruby
patrick99e99 has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
mrmodulo has joined #ruby
havenwood has joined #ruby
sigurding has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
mrmodulo has quit [Remote host closed the connection]
mayank has joined #ruby
Kislik has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<toretore>
julian37: the encoding is only set for the read end
<toretore>
it doesn't make sense to set it for w
ZAJDAN has joined #ruby
Takle has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
InhalingPixels has quit [Ping timeout: 272 seconds]
OffTheRails has joined #ruby
Takle has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Neomex has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
nonks has joined #ruby
narcan has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
frankS2 has quit [Ping timeout: 272 seconds]
andrewcarter has quit [Ping timeout: 272 seconds]
MCDev has joined #ruby
bluOxigen has joined #ruby
l3kn- has quit [Ping timeout: 272 seconds]
dmoe______ has quit [Ping timeout: 272 seconds]
ballPointPenguin has quit [Ping timeout: 272 seconds]
LangeOortjes has joined #ruby
Su7 has joined #ruby
jpic has quit [Ping timeout: 252 seconds]
booboojeebies has quit [Ping timeout: 272 seconds]
Norrin has quit [Ping timeout: 272 seconds]
rotor has quit [Ping timeout: 272 seconds]
GriffinHeart has quit [Remote host closed the connection]
ZAJDAN has left #ruby [#ruby]
callenb_ has quit [Ping timeout: 272 seconds]
RoryHughes_ has quit [Ping timeout: 272 seconds]
glowcoil has quit [Ping timeout: 272 seconds]
cryptoca has quit [Ping timeout: 272 seconds]
tris has quit [Ping timeout: 272 seconds]
zly has quit [Ping timeout: 272 seconds]
jottr has quit [Read error: Connection reset by peer]
frankS2 has joined #ruby
andrewcarter has joined #ruby
Su7_ has quit [Ping timeout: 272 seconds]
comma8 has quit [Ping timeout: 272 seconds]
shredding has quit [Quit: shredding]
ballPointPenguin has joined #ruby
dmoe_______ has joined #ruby
lolmaus has joined #ruby
zly has joined #ruby
jottr has joined #ruby
blueOxigen has quit [Ping timeout: 260 seconds]
glowcoil_ has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
booboojeebies has joined #ruby
GriffinHeart has joined #ruby
lolmaus has quit [Client Quit]
callenb_ has joined #ruby
diegoviola has joined #ruby
lolmaus has joined #ruby
Kerber0s has quit [Remote host closed the connection]
mferrier has joined #ruby
lolmaus has quit [Client Quit]
Kerber0s has joined #ruby
lolmaus has joined #ruby
roryhughes has joined #ruby
cryptoca has joined #ruby
hiyosi has joined #ruby
mferrier has quit [Ping timeout: 240 seconds]
w09x has joined #ruby
Davedo has quit [Ping timeout: 245 seconds]
julian37 has quit [Ping timeout: 264 seconds]
oxbrna has joined #ruby
rotor has joined #ruby
vvfgkg has quit [Ping timeout: 245 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
w09x has quit [Ping timeout: 245 seconds]
tokik has quit [Ping timeout: 246 seconds]
Norrin has joined #ruby
zettam has joined #ruby
hamakn has quit [Remote host closed the connection]
l3kn has joined #ruby
fabrice31 has joined #ruby
tris has joined #ruby
comma8 has joined #ruby
lkba has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
Davedo has joined #ruby
odlox_ has quit [Ping timeout: 260 seconds]
nonks has quit [Ping timeout: 252 seconds]
Scotteh_ has quit [Ping timeout: 252 seconds]
krisquigley has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 245 seconds]
MissionCritical has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
larissa has joined #ruby
Takle has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
<shevy>
we need to think big
* workmad3
thinks about blue whales
GriffinHeart has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
<shevy>
lol
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bogeyd6 has quit [Quit: Leaving]
<shevy>
you and your love affair for extinct species
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
<sonOfRa>
when did blue whales go extinct? :(
<workmad3>
sonOfRa: probably in about 100 years? :)
ldnunes has joined #ruby
hamakn has joined #ruby
<workmad3>
sonOfRa: shevy is from the future... hadn't you realised?
<sonOfRa>
oh
MissionCritical has joined #ruby
<sonOfRa>
that's neat. Is COBOL dead yet?
<workmad3>
cobol is going to outlive us all :(
Lewix has joined #ruby
<sonOfRa>
it's what aliens will find if they find the remains of this planet in a million years
Lewix has quit [Changing host]
Lewix has joined #ruby
<workmad3>
sonOfRa: yeah... and it'll still be churning away calculating someone's payroll ;)
<jheg>
hi all
paul424 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/2014072000]]
Jackneill has quit [Read error: Connection reset by peer]
<jheg>
With constants I see I can reassign them if I choose and I get a warning message - I know constants should be written all in uppercase but is that the only actual difference to a normal variable?
<jheg>
I mean I know when I should use a constant
<jheg>
but just wanted to check that if I should be wary of accidentally reassigning a constant or if it is just not possible
<jheg>
In irb I seem to be able to reassign
<jhass>
jheg: their scope is also different and similar to method lookup instead of variable lookup
<jheg>
Ah OK thanks jhass
<workmad3>
jheg: constants start with a capital letter
sk87 has joined #ruby
<workmad3>
jheg: that's how the interpreter identifies them as a constant
Scotteh_ has joined #ruby
<workmad3>
jheg: but yes, they can be reassigned... also, if you do something like 'SomeConstant = []' then you can use mutating methods on the array... the warning only appears if you reassign the constant, not if you modify the contents (if you want to protect the contents as well, you should probably call .freeze on it)
Kerber0s has quit [Remote host closed the connection]
bearish has quit []
<jheg>
so all in uppercase is not necessary?
<workmad3>
jheg: it's not necessary, but it is conventional
<jheg>
ok great ta
<workmad3>
jheg: CamelCase constants tend to be for classes and modules ;)
<shevy>
sonOfRa the japanese are working on the whales problem
julian37 has joined #ruby
<shevy>
jheg you can also use Object.const_set() - then you should not get a warning
axilla has joined #ruby
fold has quit [Ping timeout: 264 seconds]
<shevy>
jheg the ruby parser looks only for the first character. notice that all classes are constants too. you could call them: class Cat or class CAT
<shevy>
:)
MCDev has quit [Ping timeout: 250 seconds]
<shevy>
class CAT < ANIMAL
<shevy>
haha
<shevy>
cobol in ruby
<workmad3>
shevy: for when you want your class names to really SHOUT
reynscem has joined #ruby
<shevy>
I think the sierra scripting language hat those upcased thingies
<shevy>
in zac mc kraken as well hmm
<jheg>
Thanks shevy not reached classes in the course yet but I'll try to remember this
krisquigley has joined #ruby
JohnBat26 has joined #ruby
Jackneill has joined #ruby
tlarevo_ has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 246 seconds]
<shevy>
classes are very useful
<shevy>
when you wish to reuse code
InhalingPixels has joined #ruby
SilkFox_ has joined #ruby
tlarevo has joined #ruby
<lupine>
well, they can be
<lupine>
sometimes they're a downright obstacle
Hanmac has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
DEA7TH has joined #ruby
rjhunter has joined #ruby
sandelius has joined #ruby
jheg has quit [Quit: jheg]
InhalingPixels has quit [Ping timeout: 245 seconds]
atmosx has joined #ruby
SilkFox_ has quit [Ping timeout: 246 seconds]
chipotle has quit [Quit: cya]
patrick99e99 has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
shevy has quit [Ping timeout: 255 seconds]
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julian37 has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
lsmola has quit [Remote host closed the connection]
SouL_ has joined #ruby
Scotteh_ has quit [Ping timeout: 260 seconds]
patrick99e99 has quit [Ping timeout: 252 seconds]
claymore has joined #ruby
b1nd__ has quit [Ping timeout: 268 seconds]
Sgeo has quit [Read error: Connection reset by peer]
francis36012 has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
xcv has joined #ruby
_justin has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jheg has joined #ruby
_justin has left #ruby [#ruby]
gnash has joined #ruby
sk87 has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
Hanmac has joined #ruby
kaspergrubbe has joined #ruby
Lewix has quit [Remote host closed the connection]
robh71 has joined #ruby
Scotteh_ has joined #ruby
aclearman037 has joined #ruby
InhalingPixels has joined #ruby
cocotton has joined #ruby
mferrier has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
b1nd has joined #ruby
shevy has joined #ruby
<jheg>
would I be correct in saying that constants declared at the upper most level of my program have global scope?
lsmola has joined #ruby
<jhass>
I think they won't resolve inside BasicObject, which globals would
<jhass>
>> FOO = 'bar'; class Bar < BasicObject; def foo; FOO; end; end; Bar.new.foo
<shevy>
jheg yeah they reside in a scope. module Foo; BAR = 'yippie'; end <-- this BAR will only persist in Foo:: namespace, so Foo::BAR to access it usually
<jhass>
since the toplevel namespace is Object and BasicObject is the parent of Object
<jhass>
14:29 <jhass> jheg: else; false; end is equivalent
<jhass>
14:30 <jheg> oh so just didn't need the return ?
ptrrr has quit [Ping timeout: 272 seconds]
ptrrr_ is now known as ptrrr
<jhass>
14:30 <jhass> but if nil skips the branch too
<jhass>
14:30 <jhass> as said, you only need it if it's not the last expression of a method
<jhass>
14:31 <jhass> you can do a do/while loop with begin; code code code; end while condition; and with that save the assignment on line 92
<jhass>
14:32 <jhass> also don't reassign constants in a loop
<jhass>
14:33 <jhass> they should be constant values, so put them at the top of your script
<jhass>
mah, sorry that should've gone to query
hamakn has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ptrrr is now known as ptr
Jackneill has joined #ruby
<jheg>
thanks again
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
sprihodko has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 255 seconds]
SilkFox_ has joined #ruby
User458764 has joined #ruby
xfz has quit [Remote host closed the connection]
catphish has left #ruby ["Leaving"]
mercwithamouth has joined #ruby
SilkFox_ has quit [Ping timeout: 246 seconds]
TorpedoSkyline has joined #ruby
amystephen has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
ferr has joined #ruby
yacks has joined #ruby
bmurt has joined #ruby
TorpedoSkyline has quit [Client Quit]
pablo_ has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
bearish has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
weems|mac has joined #ruby
weems|mac has quit [Changing host]
weems|mac has joined #ruby
bearish has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
earthquake has quit [Quit: earthquake]
Sawbones has joined #ruby
pabloh has quit [Ping timeout: 264 seconds]
Sawbones_ has joined #ruby
iteratorP has joined #ruby
GriffinHeart has joined #ruby
workmad3 has joined #ruby
livingstn has joined #ruby
iteratorP has quit [Read error: Connection reset by peer]
ptierno_ has joined #ruby
iteratorP has joined #ruby
spastorino has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
bearish has quit [Ping timeout: 272 seconds]
rjhunter has quit [Remote host closed the connection]
Deele has quit [Quit: User excited]
yeticry has joined #ruby
_5kg has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
Sawbones has quit [Ping timeout: 268 seconds]
GriffinHeart has quit [Ping timeout: 246 seconds]
iteratorP has quit [Remote host closed the connection]
mferrier has joined #ruby
TorpedoSkyline has joined #ruby
coreycondardo has joined #ruby
fabrice31 has joined #ruby
coreycondardo has quit [Client Quit]
AlexBlom has joined #ruby
chipotle has joined #ruby
hiyosi has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
Akagi201 has quit [Ping timeout: 255 seconds]
mferrier has quit [Ping timeout: 240 seconds]
pabloh has joined #ruby
Hanmac has joined #ruby
MasterPiece has quit [Quit: Leaving]
Jameser has joined #ruby
TaxmanBD is now known as Pancakes
linojon has joined #ruby
Pancakes is now known as ZenPoni
Akagi201 has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
ZenPoni is now known as Pancakes
pablo_ has quit [Ping timeout: 260 seconds]
Sht0 has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
Ankhers has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
timonv_ has joined #ruby
mferrier_ has joined #ruby
Takle has quit [Remote host closed the connection]
enebo has quit [Ping timeout: 255 seconds]
ferr has quit [Remote host closed the connection]
bearish has joined #ruby
dmyers has quit [Ping timeout: 245 seconds]
AlexBlom has quit [Quit: This computer has gone to sleep]
Kerber0s has joined #ruby
arup_r has quit [Remote host closed the connection]
SilkFox has joined #ruby
timonv_ has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
pabloh has quit [Quit: Saliendo]
pabloh has joined #ruby
Channel6 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
echevemaster has joined #ruby
jerius has quit []
Dramors is now known as dramors
dramors has left #ruby [#ruby]
dramors has joined #ruby
TorpedoSkyline has joined #ruby
endash has joined #ruby
freerobby has quit [Quit: Leaving.]
Deele has joined #ruby
Macaveli has joined #ruby
yfeldblum has joined #ruby
axsuul has joined #ruby
AlexBlom has joined #ruby
valner has joined #ruby
banister has joined #ruby
eivindml has joined #ruby
sylvanica has joined #ruby
TorpedoSkyline has quit [Ping timeout: 255 seconds]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
orolo has joined #ruby
Takle has joined #ruby
enebo has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
timonv_ has joined #ruby
banister has quit [Client Quit]
axsuul has quit [Ping timeout: 252 seconds]
User458764 has quit [Ping timeout: 264 seconds]
<shevy>
hmm
<shevy>
know what I was thinking
<shevy>
something like
<shevy>
Cat.new('tom', true)
<shevy>
that is not very useful at all
<shevy>
nobody knows what true is
User458764 has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
cleopatra has quit [Ping timeout: 268 seconds]
jerius has joined #ruby
banister has joined #ruby
mr-foobar has quit [Quit: Leaving...]
unshadow has joined #ruby
gccostabr has joined #ruby
AlexBlom has quit [Quit: This computer has gone to sleep]
pu22l3r has joined #ruby
qmfnp has joined #ruby
<unshadow>
So, I have this "logical" issue, I have a class that initiate an external ruby loop, in this loop I set Process.setsid, I thought this will allow it to run without the need of the parent to stay alive, this is working, I can close the parent without my child dying, my issue now is this: when I log out of my session the loop is killed, why ?
timgauthier has joined #ruby
anarang has quit [Quit: Leaving]
St_Marx has quit [Quit: Ex-Chat]
ZAJDAN has joined #ruby
<eam>
unshadow: what do you mean "close my parent?"
cocotton has quit [Quit: Leaving...]
ZAJDAN has left #ruby [#ruby]
sigurding has joined #ruby
<unshadow>
eam: as in the parent process is killed, and my child process is still running (this is ok, it was what i eanted)
bjornar has quit [Remote host closed the connection]
<eam>
killing a parent process doesn't impact a child process at all, it will just be reparented to init
<eam>
when you log out something special happens to processes related to your login session
<eam>
and they get a signal
clarkk has quit [Remote host closed the connection]
<eam>
there are probably some gems somewhere for daemonizing, just reusing one of those is probably best
pu22l3r has quit [Ping timeout: 255 seconds]
<eam>
but if you'd like to debug this I'm happy to help too
<eam>
are stdout, stdin and sterr still pointing to your login tty after you setsid?
AlexBlom has joined #ruby
_5kg has joined #ruby
<unshadow>
eam: Yes, I still see them on my tty
SilkFox_ has joined #ruby
charliesome has quit [Quit: zzz]
<eam>
you'll want to reopen those to something else (/dev/null?) before calling setsid
<eam>
a double fork can't hurt either
<unshadow>
I know that when I logoff all my procceses get HUP signal, if I'll trp it will that help ?
<eam>
all processes with that controlling terminal get a HUP
<unshadow>
I allready use a double fork , "fork do" to call the loop , and inside the loop I send the setsid
<eam>
you could also be getting a sigpipe
Scripore has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
<eam>
unshadow: if you want to debug this, run your program under strace while you log out and it will tell you exactly what is occuring
<totimkopf>
http://pastebin.com/qk6pRdfk hi, I'm trying to learn big o notation using ruby, am I calculating things correctly, if not what am I doing wrong? Thank you
havenwood has joined #ruby
gurix has quit [Client Quit]
<workmad3>
totimkopf: almost... it's only O(n) in the end though
toastynerd has quit [Remote host closed the connection]
<workmad3>
totimkopf: as O(5n) is still a linear increase, so simplifies down to O(n)
ghostmoth has quit [Ping timeout: 245 seconds]
mr-foobar has joined #ruby
jobewan has joined #ruby
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has quit [Remote host closed the connection]
colli5ion has joined #ruby
<workmad3>
totimkopf: also, because things like +, ==, etc. can be overloaded, you can't assume in the general sense that something like 'e == 1' is O(1) in ruby
timgauthier has joined #ruby
timgauthier has quit [Max SendQ exceeded]
__main__ has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
unshadow has quit [Quit: leaving]
<totimkopf>
workmad3: thanks for your input
ptr has quit [Quit: ptr]
<totimkopf>
workmad3: should I not count the constants for binary operations then?
jeroenvisser101 has joined #ruby
u6aBeWPy has quit [Ping timeout: 268 seconds]
<workmad3>
totimkopf: no... 5 constant-time operations is, in big-O notation, O(1) (constant time)
<workmad3>
totimkopf: not O(5)
pu22l3r has joined #ruby
icebourg has joined #ruby
<totimkopf>
ah ok
<totimkopf>
so the O(1)'s don't get added then :)
<workmad3>
totimkopf: which kinda makes sense... you could easily replace 5 constant time operations with a single constant-time operation that's just 5 times slower ;)
<totimkopf>
interesting
jeroenvi_ has joined #ruby
mockra has joined #ruby
<workmad3>
totimkopf: big-O is intended to abstract away that kind of detail... otherwise you'd need to delve down into ASM and processor architecture to figure out the timings for each CPU-op
mockra_ has joined #ruby
jeroenvisser101 has quit [Read error: Connection reset by peer]
Inhaling_ has joined #ruby
<totimkopf>
workmad3: I see
<workmad3>
totimkopf: after all, multiplication, addition, subtraction and division aren't all 'equal' length operations... but they're generally all classed as O(1) (although you may find they're O(n) in some cases, e.g. if you're dealing with bignums they'll probably scale in time based on the size of the bignum)
gurix has joined #ruby
pu22l3r has quit [Ping timeout: 260 seconds]
<workmad3>
totimkopf: mostly, big-O is an abstraction to get a 'feel' for an algorithm though... so if you were analysing a bignum addition algorithm, you'd care about that... but if you were analysing a sorting algorithm that could take bignums, you'd be fine to assume that the bignums are all 'equivalent' sizes and treat it as O(1)
AlexBlom has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
jottr_ has joined #ruby
mockra has quit [Ping timeout: 272 seconds]
cuppscakes has left #ruby ["Disconnected"]
geggam has joined #ruby
<totimkopf>
workmad3: I think I should start reading 'Introduction to Algorithms' but it seems a bit intimidating :)
SilkFox_ has joined #ruby
<workmad3>
totimkopf: it's also important to take note of special cases when doing a big-O analysis... e.g. quicksort big-O is O(n log n) in average case... but it's O(n^2) in worst case
<eam>
eh, this is ruby. what's an extra n or two between objects
Jameser has quit [Ping timeout: 260 seconds]
aedorn has joined #ruby
sambao21 has joined #ruby
<workmad3>
totimkopf: just delve in :) one of the worst mistakes I make is to think 'I won't understand that' and put off investigating something :)
Takle has quit [Remote host closed the connection]
jusmyth has joined #ruby
gurix has quit [Ping timeout: 245 seconds]
<workmad3>
totimkopf: by the time I finally do, I generally find it wasn't anywhere near as intimidating (although I'm starting to get to knowledge that is harder to understand, but that just means it's more fun to figure out :) )
<eam>
O notation is useful when talking about an algorithm, but not quite so useful in high level abstractions where the algorithm is often obscured
jottr has quit [Ping timeout: 252 seconds]
<eam>
for example, every ruby program has an O(n) cost in terms of object count due to the gc behavior
<eam>
and sometimes quite a bit more
jeroenvi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorak has joined #ruby
<workmad3>
it's also quite important to note that in a lot of practical applications, a 'worse' big-O algorithm can perform much faster because it relies on 'cheaper' operations and the complexity doesn't apply at the scales you need
SilkFox_ has quit [Ping timeout: 260 seconds]
<eam>
one googl is still O(1) :)
Blaze_Boy has joined #ruby
Blaze_Boy has quit [Client Quit]
<totimkopf>
workmad3: hmmm, I don't follow... I thought 'worse' meant not as efficient, that is, not as fast, than 'best'?
fabrice31 has joined #ruby
jeroenvisser101 has joined #ruby
<havenwood>
totimkopf: all the O(1), O(n) stuff is performance art
<workmad3>
totimkopf: say you had an algorithm with time-complexity 100000000000000n, and another with time-complexity 0.000000000001n^2
Takle has joined #ruby
<workmad3>
totimkopf: to big-O, the first is O(n) and the second is O(n^2)
<totimkopf>
ok
<eam>
totimkopf: an algorithm that always takes one million cycles no matter the size of input is O(1). An algorithm that always takes n cycles is O(n). O(n) will be faster than O(1) in this case if n is less than one million
<workmad3>
totimkopf: and with a sufficiently large input, the first would be farster
<workmad3>
*faster
<workmad3>
eam: thanks, that's better than my explanation :)
larissa has quit [Ping timeout: 260 seconds]
sevenseacat has quit [Quit: Leaving.]
<totimkopf>
ah okay, so it depends on the input
bal has quit [Quit: bal]
<eam>
it depends on the details of the constants that O() notation ignores
<eam>
O() is useful for describing the way a function grows in cost as input increases
sk87 has joined #ruby
<totimkopf>
ah, I see
<workmad3>
totimkopf: you can also use big-O to describe other factors, such as memory consumption (space-complexity)
H1d3r1 has joined #ruby
GriffinHeart has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
wjimenez5271 has joined #ruby
Inhaling_ has quit [Remote host closed the connection]
<jhass>
it's also the worst case, you need to take into account how likely it's to hit that case. The average and the worst case can perform quite differently, for example if the algorithm can make optimizations in some cases. So in practice you may choose an algorithm with a bad worst case because it has a way better average case than another one with a better worst case
InhalingPixels has joined #ruby
<workmad3>
jhass: also the best case can be important :)
<jhass>
yeah
<workmad3>
all depends on use
snath has joined #ruby
timgauthier has joined #ruby
<workmad3>
I've heard of a scenario where bubblesort was used, for example... because it has a best-case O(n) (sorted list), so it got used to sort z-buffers in a game, where it was run with a single pass between every frame
<workmad3>
as the buffers mostly didn't change, it ended up sorting them eventually, and it was quick enough to run between frames where other sorting algorithms weren't
sinkensabe has quit [Remote host closed the connection]
gurix has joined #ruby
GriffinHeart has quit [Ping timeout: 276 seconds]
u6aBeWPy has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
jheg has quit [Quit: jheg]
ssvo has joined #ruby
reynscem has quit [Quit: leaving]
maletor has joined #ruby
jmbrown412 has joined #ruby
avita1 has joined #ruby
timonv_ has quit [Ping timeout: 276 seconds]
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zarul has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
_maes_ has joined #ruby
yfeldblum has joined #ruby
tylerkern has joined #ruby
TorpedoSkyline has joined #ruby
ixti has joined #ruby
qwyeth has joined #ruby
zeroNones has joined #ruby
Xeago_ has joined #ruby
mattmcclure has joined #ruby
CaptainJet has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
lw has quit [Quit: s]
chrisja has joined #ruby
zeroNones has quit [Client Quit]
yfeldblum has quit [Ping timeout: 272 seconds]
baroquebobcat has joined #ruby
coderhs has joined #ruby
siwica has joined #ruby
jimmykarily has quit [Ping timeout: 272 seconds]
Phrogz has joined #ruby
momomomomo has quit [Ping timeout: 246 seconds]
wpp has joined #ruby
jeroenvisser101 has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby
<shevy>
test
lemur has joined #ruby
<eam>
failed
jeroenvisser101 has joined #ruby
<Phrogz>
pong?
H1d3r1 is now known as H1d3r
zarul has joined #ruby
<jhass>
peng
mercwithamouth has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
IceDragon has joined #ruby
zeroNones has joined #ruby
gsd has joined #ruby
qba73 has quit []
qualiabyte has joined #ruby
gurix has quit [Quit: gurix]
axsuul has joined #ruby
avita1 has quit [Quit: Leaving.]
lemur has quit [Ping timeout: 268 seconds]
io_syl has joined #ruby
timonv_ has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
timonv^ has joined #ruby
larissa has joined #ruby
wpp has quit [Ping timeout: 260 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
axsuul has quit [Ping timeout: 260 seconds]
n1lo has quit [Ping timeout: 252 seconds]
jottr_ is now known as jottr
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv_ has quit [Ping timeout: 264 seconds]
larissa has quit [Client Quit]
mityaz_ has quit [Quit: Leaving]
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikeg has joined #ruby
<pagios>
hi so i got /sbin/iw dev wlan5 scan | awk '$1=="SSID:"{ssid=$2; next} $1$2$3=="DSParameterset:"{ print ++i")"$4,$5,ssid\n }'` which returns sid=test and channel=1 sid=test2 channel=2 etc... i want to make this result as json but the challengw is to make each sid and channel go into 1 data block to represent 1 entry how can i do that?
bearish has quit [Remote host closed the connection]
<jhass>
though I'd probably strip the awk mess and parse in ruby
Jameser has joined #ruby
Xeago_ has quit [Remote host closed the connection]
gurix has joined #ruby
bearish has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has quit [Ping timeout: 245 seconds]
relix has joined #ruby
<shevy>
hehehe
<shevy>
man pagios
<shevy>
your thoughts are chaotic
ohvlad has quit []
lmickh has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Jameser has quit [Ping timeout: 240 seconds]
visof has quit [Ping timeout: 272 seconds]
<shevy>
audio on linux is no fun :(
bearish has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
<havenwood>
pagios: would be easier to follow if you put code between backticks or separate from your sentences and show Strings as literals with quotes instead of run-on into the sentence
wjimenez_ has joined #ruby
wjimenez5271 has quit [Ping timeout: 255 seconds]
ValicekB has quit [Ping timeout: 255 seconds]
<havenwood>
^ some of that sentence is Strings, but which part, I'll never tell!!
LekeFly has joined #ruby
gurix has quit [Quit: gurix]
<havenwood>
pagios: maybe show the output of `/sbin/iw dev wlan5 scan` and let us take a stab at de-awking ya :P
Takle has quit [Remote host closed the connection]
<shevy>
too_verbose
benzrf|offline is now known as benzrf
ssut_ is now known as ssut
<pagioss>
tx
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
centrx has joined #ruby
kalz has joined #ruby
maZtah_ is now known as maZtah
ggherdov has joined #ruby
skolman has joined #ruby
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
bedouin_ is now known as bedouin
TorpedoSkyline has quit [Client Quit]
yfeldblum has quit [Ping timeout: 255 seconds]
sectionme has quit [Ping timeout: 255 seconds]
wjimenez5271 has quit [Ping timeout: 246 seconds]
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
renier has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
banister_ has joined #ruby
ValicekB has joined #ruby
banister_ has quit [Max SendQ exceeded]
mattmcclure has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
Synthead has joined #ruby
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
io_syl has quit []
zz_LoRdToLsToI has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
icarus has joined #ruby
zeusmns_ is now known as zeusmns
benzrf is now known as benzrf|offline
b1nd has quit [Ping timeout: 260 seconds]
Lewix has quit [Remote host closed the connection]
chth0n has quit [Ping timeout: 276 seconds]
patrick99e99 has joined #ruby
qmfnp_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
b1nd has joined #ruby
LekeFly has joined #ruby
tjr9898 has joined #ruby
hamakn has joined #ruby
Photism has joined #ruby
soheil has joined #ruby
Takle has joined #ruby
cyrinux has quit [Ping timeout: 268 seconds]
intnsity has quit [Ping timeout: 240 seconds]
intnsity has joined #ruby
Takle has quit [Remote host closed the connection]
b1nd has quit [Ping timeout: 240 seconds]
warprobot has joined #ruby
H1d3r has left #ruby [#ruby]
Wolland has quit [Remote host closed the connection]
b1nd has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
deric_skibotn has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
jimms has joined #ruby
xcv has quit [Ping timeout: 260 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopie has joined #ruby
spider-mario has joined #ruby
Kricir has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
mengu has quit []
mikecmpbll has quit [Ping timeout: 260 seconds]
diegoviola has quit [Ping timeout: 246 seconds]
soheil has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
sinkensabe has quit [Remote host closed the connection]
panzi has joined #ruby
jusmyth has joined #ruby
warprobot has quit [Remote host closed the connection]
sinkensabe has joined #ruby
timgauthier has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
<panzi>
I can't find any ruby lib to work with colors that supports alpha channels, operations like getting brightness and changing brightness (and if possible parsing and generating any kind of css color value, like, lightgray, #ffcc00 and rgba(0, 0, 0, 0.5))
wallerdev has quit [Quit: wallerdev]
intnsity has quit [Ping timeout: 240 seconds]
<panzi>
does anyone know such a lib?
Kricir has joined #ruby
<jhass>
compass? :P
intnsity has joined #ruby
<workmad3>
well, sass in general
<panzi>
jhass: yeah but I need to do it in ruby, not compass
ahhMichael has joined #ruby
mozzarella has quit [Quit: Where is this girlfriend the Oracle promised me?]
<panzi>
if I could use whatever classes sass/compass uses for manipulating colors that would be great. but I cant find any documentation on it that
einarj has quit [Remote host closed the connection]
poulet_a has quit [Ping timeout: 264 seconds]
<shevy>
that all sucks but you can see how it originated
<shevy>
"Color is the result of a project merge between color.rb 0.1.0 by Matt Lyon and color-tools 1.3 by Austin Ziegler."
JohnFord has joined #ruby
pu22l3r has joined #ruby
<shevy>
perhaps you will be the guy to create a new project
<shevy>
a merger
<shevy>
:)
sinkensabe has quit [Remote host closed the connection]
mupkoo has quit [Remote host closed the connection]
Sammael has joined #ruby
<panzi>
I have no time for that. I need to implement this *now*
<panzi>
and I won't do any ruby project in my spare time. ruby is not a language I use for fun
fabrice31 has joined #ruby
saarinen has joined #ruby
<wasamasa>
:|
u6aBeWPy has joined #ruby
pu22l3r has quit [Ping timeout: 276 seconds]
nemish has joined #ruby
u6aBeWPy has quit [Max SendQ exceeded]
sailias has quit [Quit: Leaving.]
wjimenez5271 has joined #ruby
JonnieCache has quit [Ping timeout: 240 seconds]
patrick99e99 has quit [Ping timeout: 272 seconds]
u6aBeWPy has joined #ruby
valner has quit [Remote host closed the connection]
valner has joined #ruby
<nemish>
quick ruby syntax help... if foo == 'bar' && something == 'boo' || somethingelse == 'bas' && last == 'yes'... does that work with the OR or does that screw up the &&?
<shevy>
lol
mupkoo has joined #ruby
u6aBeWPy has quit [Max SendQ exceeded]
fabrice31 has quit [Ping timeout: 246 seconds]
<shevy>
I think && and || have the same precedence
nanoyak has joined #ruby
u6aBeWPy has joined #ruby
qmfnp has joined #ruby
<shevy>
that reminds me... I need to store the precedence rule in ruby into a file
<jhass>
no, && has a higher precedence thatn ||
<jhass>
and and or have the same precedence though
SilkFox_ has joined #ruby
<jhass>
nemish: so you need to take care of the precedence so the expression really means what you think it does but syntactical it's valid
<nemish>
so basically i want foo && last && either something or somethingelse... so will this work or will the || cause last or foo to be not required?
<shevy>
hmm that table sucks, let me find another one
andikr has quit [Remote host closed the connection]
Avahey_ has quit [Quit: Connection closed for inactivity]
IanMalcolm has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
cirn0_ has joined #ruby
momomomomo_ has joined #ruby
FDj_ is now known as FDj
<nemish>
right but i'm basically trying to avoid foo and something OR somethingelse and last... i want foo AND last with something or somethingelse
nanoyak has joined #ruby
<nemish>
so would wrapping in () fix that?
JBreit has joined #ruby
<nemish>
so foo == 'bar' && (something == 'value1' || somethingelse == 'value2') && last == 'yes'
zeroNones has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
<centrx>
nemish, Put the logic in methods, not stringing along a long expression
ptrrr has joined #ruby
<centrx>
nemish, foo_bar? && something? && last?
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
SilkFox_ has quit [Ping timeout: 245 seconds]
JBreit has left #ruby [#ruby]
patrick99e99 has joined #ruby
albedoa has quit [Read error: Connection reset by peer]
albedoa has joined #ruby
sectionme has joined #ruby
mkaesz has joined #ruby
<nemish>
centrx: sorry don't really understands methods here in this case... i'm trying to modify existing ruby code... so I'm not a ruby coder at all :(
<shevy>
centrx I think php has some crazy precedence rules
gccostab_ has quit [Read error: Connection reset by peer]
cirn0_ has quit [Ping timeout: 264 seconds]
<nemish>
so basically trying to do: if os_key == 'RedHat' && Facter.value(:operatingsystem) == 'RedHat' || Facter.value(:operatingsystem) == 'CentOS' && Facter.value(:operatingsystemrelease).to_i >= 7
<centrx>
PHP has some crazy { }
_justin has joined #ruby
hellangel7 has joined #ruby
<shevy>
$f = false or true;
RaCx has joined #ruby
_justin has quit [Client Quit]
gccostabr has joined #ruby
<shevy>
hey... that php example looks like ruby... hmm
txdv has quit [Read error: Connection reset by peer]
<workmad3>
sweetgum: I'd recommend using ruby-install rather than ruby-build... ruby-install will install required dependencies via the package manager and dynamically link dependencies (easier to update dependencies without rebuilding ruby)
txdv has joined #ruby
<workmad3>
sweetgum: the issue there seems to be that you haven't installed any C compiler or the standard build toolchain
lw has joined #ruby
djbkd has joined #ruby
thams has joined #ruby
<sweetgum>
dbclick pls
brandon_ has quit [Ping timeout: 240 seconds]
<sweetgum>
workmad: i changed ruby-build to ruby-install, 'ruby-install command not foudn '
<workmad3>
sweetgum: you'd need to install it first
<sweetgum>
shevy: how can i code for ios with linux
<shevy>
I am sure you can VM things
emmesswhy has quit [Quit: This computer has gone to sleep]
fsapo has quit [Remote host closed the connection]
<sweetgum>
oh
<sweetgum>
i don't care to =p
Mon_Ouie has joined #ruby
<sweetgum>
someone should write an xcode for linux tho
<sweetgum>
can't gcc compile objective-c
Inhaling_ has quit [Remote host closed the connection]
<shevy>
I think it can
hiyosi has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
<shevy>
there is a switch to --enable-languages
<sweetgum>
oh
<sweetgum>
which distro do u prefer shevy
redlegion has quit [Ping timeout: 260 seconds]
<sweetgum>
ubuntu is so easy to install...
<shevy>
my current gcc has these: --enable-languages=c,c++,objc,fortran
<shevy>
I compile from source sweetgum
<sweetgum>
that's cool.
<shevy>
with ruby
<sweetgum>
oh
InhalingPixels has joined #ruby
<sweetgum>
do u use a windows manager?
ramblinpeck_ is now known as ramblinpeck
<shevy>
hmm right now I run KDE but usually I use fluxbox. but mostly, I don't care, I just want KDE konsole (or gnome-terminal), and my editor, then I can use ruby, then I am happy. the rest I don't care much, I am more a RubyOS guy without ruby in the OS
<shevy>
the big desktop environments get a lot into my way
AxonetBE has quit [Quit: AxonetBE]
ramblinpeck is now known as ramblinpeck_
<sweetgum>
what is it u do with your computer?
aspires has quit []
<shevy>
hmmm
ldnunes has quit [Quit: Leaving]
<shevy>
most of the time, I have to read pdfs
<shevy>
right now I work through some 300 pages boring shit
<sweetgum>
.
<shevy>
after that, I think I mostly write a bit of ruby, to try and make tasks simpler or easier
<sweetgum>
awsome
<shevy>
about 5 days ago I wrote a "gnome update script"
<sweetgum>
is this your ocuppation?
<shevy>
sweetgum well somewhat... work-related I am supposed to deal with electron microscopy datasets, which is actually pretty boring after a while
<shevy>
most of the GUIs are written in python and C++
pietr0 has joined #ruby
Sawbones_ has quit []
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
absolutezeroff has quit [Quit: Leaving]
<shevy>
I could perhaps compete against python but not against C++ :(
nobitanobi has quit []
<sweetgum>
shevy: what do u do with the data?
aspires has joined #ruby
<sweetgum>
if i get aroudn to writing an OS itll be a minimal computer to run portable executable files specifacllay videogames
Kerber0s has joined #ruby
zorak8 has quit [Ping timeout: 255 seconds]
Kerber0s has quit [Remote host closed the connection]
<shevy>
most of the time right now try to make sense of the generated text files, or try to generate valid text files -> this here is a small one http://pastie.org/pastes/9525228/text it's like a .csv file I guess. there are much longer and more complicated ones, I dread the 60.000 lines ones with about 12 entries per line
<shevy>
writing an OS is a huge undertaking
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
I delegated myself downwards to smaller things
<shevy>
like all GNU coreutil tools in ruby!
<sweetgum>
i suppose not even an os
<sweetgum>
but just a linux compilation that runs portable executables, beyond wines bounds
cajone has left #ruby [#ruby]
cajone has joined #ruby
<shevy>
working on that (perhaps)
<sweetgum>
oh?
ValicekB has quit [Ping timeout: 255 seconds]
<shevy>
well
<shevy>
if gcc can produce such binaries
<shevy>
then ruby can act as a wrapper for this right?
<sweetgum>
yeah gcc can produce portable executables
sectionme has joined #ruby
<sweetgum>
hm... i'm not actaully so familiar with ruby. if you can elaborate?
<sweetgum>
( this is my first time using ruby )
<shevy>
well that depends just on gcc then
<shevy>
I would not know how to do that without gcc
andrewlio has quit [Quit: Leaving.]
<shevy>
gcc has that --enable-multilib switch
bootstrappm has joined #ruby
<shevy>
so for then having both 32 bit and 64 bit things on your computer
<shevy>
wine prefers 32 bit
emmesswhy has joined #ruby
<shevy>
in $HOME/.wine it complains if you did setup as 32 bit but your gcc does not have 64 bit
RaCx has joined #ruby
<shevy>
like on default slackware... which is 64 bit noly
<shevy>
*only
<shevy>
I don't have a comfortable way to separate these yet, it's all rather messy
<shevy>
/usr/lib /usr/lib64 /usr/lib/x86* /usr/lib/i386* I think...
<shevy>
a mess
<sweetgum>
?
<sweetgum>
are you saying, write a wrapper with ruby using gcc
definiv has quit [Quit: leaving]
<sweetgum>
so that my linux can support exe files?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
well you would need a way to run them
sinkensabe has joined #ruby
sectionme has quit [Ping timeout: 272 seconds]
<sweetgum>
yes. that's the part i was talking about.
<shevy>
you want to run them without wine?
<sweetgum>
yea
qwyeth has joined #ruby
<sweetgum>
i want to write a better loader
<shevy>
that would be a massive undertaking
<sweetgum>
it's simple for .net
zorak8 has joined #ruby
<shevy>
how big is .net?
<sweetgum>
and well for older stuff, wouldn't it just be managing the DLL calls a windows program would make by handling the dlls with linux?
<sweetgum>
what do you mean by how big is .net
reset has joined #ruby
whatasunnyday has joined #ruby
<sweetgum>
example: notepad.exe requires interface drawing, keyboard inputs, and not much else...
<sweetgum>
all of these things are in windows dlls
<sweetgum>
if i load a windows dll into linux memory
<sweetgum>
i can make 99% of the calls without trouble doesn't it seem that way?
<sweetgum>
unless its an OS system interrupt ?
charliesome has quit [Quit: zzz]
<whatasunnyday>
Hey, can someone point me to where I can find the source for gem list? I’m having a hard trouble navigating the code for rubygems. :(
qwyeth has quit [Client Quit]
Neomex has quit [Ping timeout: 255 seconds]
phutchins has quit [Remote host closed the connection]
mollitz has joined #ruby
jerius has quit []
agjacome has quit [Quit: leaving]
ValicekB has joined #ruby
kristofferR has joined #ruby
qhartman has joined #ruby
ghr has joined #ruby
<sweetgum>
...
aspires has quit []
sylvanica has joined #ruby
siwica1 has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
ValicekB has quit [Ping timeout: 264 seconds]
<havenwood>
sweetgum: bump to 10.9 if you can, it's almost 10.10 time :P
ghr has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
<sweetgum>
k
sparrovv has quit [Remote host closed the connection]
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
b1nd has quit [Ping timeout: 245 seconds]
AlexBlom has quit [Quit: This computer has gone to sleep]
dc_ has quit [Ping timeout: 245 seconds]
xcv has quit [Remote host closed the connection]
reset has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
<shevy>
sweetgum well you brought the example of .net but I remember I usually have to download a lot of stuff before .net works
Neomex has joined #ruby
WildBamboo-Josh has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 246 seconds]
Azure has quit [Quit: Blue Sky Fish]
lynxbat has joined #ruby
lynxbat has quit [Max SendQ exceeded]
Kricir has quit [Remote host closed the connection]
aspires has joined #ruby
pu22l3r has joined #ruby
lynxbat has joined #ruby
Kricir has joined #ruby
axsuul_ has joined #ruby
b1nd has joined #ruby
mary5030 has quit [Remote host closed the connection]
<sweetgum>
yea
ValicekB has joined #ruby
doodlehaus has quit [Remote host closed the connection]
necro has joined #ruby
<necro>
I am trying to install "Rspec" as I am doing a ruby tutorial and am getting this error message : you don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory. -- How do I access this directory, how do I change it's permissions?
jay_ is now known as rubyonrailed
tvw has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
WildBamboo-Josh has joined #ruby
Scotteh_ has quit [Read error: Connection reset by peer]
lynxbat has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewbredow has joined #ruby
lw_ has quit [Ping timeout: 272 seconds]
nevans has joined #ruby
dc__ has quit [Remote host closed the connection]
qhartman has quit [Quit: Ex-Chat]
jamo_ is now known as Jamo
lynxbat has joined #ruby
SilkFox_ has quit [Ping timeout: 252 seconds]
M-Technic has joined #ruby
deric_skibotn has quit [Ping timeout: 240 seconds]
pranny has joined #ruby
<necro>
Ok I downloaded rspec but this warning appeared: WARNING: You don't have /Users/dianatourjee/.gem/ruby/2.0.0/bin in your PATH, gem executables will not run.
selasi has joined #ruby
<selasi>
I'm used to using 'next if' within a block in perl
jerius has joined #ruby
<selasi>
is that the preferred way to short circuit a block in ruby?
deric_skibotn has joined #ruby
CpuID has joined #ruby
britneywright has joined #ruby
earthquake has joined #ruby
<jhass>
necro: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
<necro>
oh thank you, my bad
ValicekB has joined #ruby
<jhass>
selasi: well, kinda, it's a rare need in ruby though
hiyosi has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
pranny has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
jgrevich_ has joined #ruby
jgrevich_ has quit [Client Quit]
jgrevich has quit [Read error: Connection reset by peer]
sylvanica has quit [Ping timeout: 272 seconds]
j_mcnally has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
DadoCe has joined #ruby
nfk has quit [Quit: yawn]
whatasunnyday has joined #ruby
sambao21 has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
blackmesa has quit [Quit: WeeChat 1.0]
x1337807x has joined #ruby
fabrice31 has joined #ruby
riotjone_ has joined #ruby
jobewan has quit [Quit: Leaving]
rockdon|away is now known as rockdon_
riotjones has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 268 seconds]
DadoCe has quit [Remote host closed the connection]
MitchM has quit [Read error: Connection reset by peer]
sectionme has joined #ruby
MCDev has joined #ruby
Kislik has quit [Quit: Computer has gone to sleep.]
geggam has quit [Quit: commute]
blackmesa has joined #ruby
Kislik has joined #ruby
motto has quit [Quit: Sto andando via]
GhettoJava has quit [Quit: Leaving]
iceden has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
jack_rabbit has quit [Ping timeout: 272 seconds]
Lewix has quit [Read error: Connection reset by peer]
sectionme has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
earthquake has quit [Quit: earthquake]
albedoa has quit [Ping timeout: 240 seconds]
Kislik has quit [Ping timeout: 272 seconds]
<shevy>
selasi often you can use .reject or .select before doing your block-processing
pietr0 has quit [Quit: pietr0]
blackmes1 has joined #ruby
pietr0 has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
nanoyak has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 245 seconds]
blackmes1 has quit [Client Quit]
coderhs has quit [Ping timeout: 260 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
jerius has quit []
ghr has joined #ruby
n_blownapart has joined #ruby
Wolland has joined #ruby
sambao21 has joined #ruby
jonr22 has joined #ruby
sambao21 has quit [Client Quit]
tiguser_ has quit [Ping timeout: 255 seconds]
britneywright has joined #ruby
sylvanica has joined #ruby
mary5030 has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
blackmesa has quit [Client Quit]
kirun has quit [Quit: Client exiting]
Scripore has joined #ruby
necro has quit [Ping timeout: 246 seconds]
treehug88 has quit []
sylvanica is now known as slester
gccostabr has joined #ruby
iceden has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
dapadoupas has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
earthquake has joined #ruby
gccostabr has quit [Client Quit]
blackmesa has joined #ruby
pietr0 has quit [Quit: pietr0]
sivoais has quit [Ping timeout: 240 seconds]
TheTopBloke has quit [Ping timeout: 276 seconds]
seamon has quit [Quit: Zzzzzzz]
narcan has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
sectionme has joined #ruby
CpuID has quit [Read error: Connection reset by peer]
jonr22 has quit [Ping timeout: 268 seconds]
pietr0 has joined #ruby
seamon has joined #ruby
sweetgum has quit [Remote host closed the connection]
shevy has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 276 seconds]
sectionme has quit [Ping timeout: 245 seconds]
Avahey_ has joined #ruby
doug1 has joined #ruby
mobiGeek10 has joined #ruby
mobiGeek9 has quit [Ping timeout: 240 seconds]
Inhaling_ has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
CpuID has joined #ruby
AlexBlom has joined #ruby
thumpba has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
Jake232 has joined #ruby
lw has joined #ruby
brandon_1 has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
Guest10538 has joined #ruby
Guest10538 has quit [Changing host]
Lewix has quit [Read error: Connection reset by peer]
<greenride>
Using the ruby debugger, is there any way to examine blocks that are passed into methods via &block?
<workmad3>
greenride: examine in what sense?
britneywright has joined #ruby
<havenwood>
poke with stick
heyts has quit [Ping timeout: 272 seconds]
seamon has joined #ruby
<workmad3>
well, you can poke them
<greenride>
workmad3: print out the block
Kislik has joined #ruby
<greenride>
I'm probably asking too much
project2501a has quit [Ping timeout: 245 seconds]
<greenride>
by print... I mean print out the block's code.
icarus has quit [Remote host closed the connection]
ghr has joined #ruby
<workmad3>
greenride: pry might be able to do that... but it would do so by being 'clever' and looking at block.source_location before slurping the code out of the file to display
aspires has quit []
<workmad3>
greenride: ruby's introspection capabilities don't extend to recovering the source code though
<wasamasa>
time to write a ruby vm that keeps track of the unrecovered source code
pietr0 has joined #ruby
OffTheRails has quit [Ping timeout: 260 seconds]
<workmad3>
wasamasa: wouldn't surprise me if rubinius can achive it :)
<wasamasa>
workmad3: mhh
pietr0 has quit [Client Quit]
<wasamasa>
workmad3: a debug switch that makes it use twice as much ram, but gives you moar info
Kislik has quit [Ping timeout: 240 seconds]
<wasamasa>
workmad3: that sounds pretty reasonable to me
<havenwood>
marshalling a proc
MCDev has quit [Ping timeout: 250 seconds]
snath has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
sparrovv has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
phoo1234567 has quit [Quit: Leaving]
definiv has quit [Quit: leaving]
<havenwood>
human readable style >.>
kavinder has quit [Remote host closed the connection]
<havenwood>
anyone going to RubyConf?
<pipework>
o/
<havenwood>
\o
nanoyak has quit [Read error: Connection reset by peer]
sparrovv has quit [Ping timeout: 264 seconds]
<havenwood>
pipework: are you left handed?
<havenwood>
pipework: j/k :P
n_blownapart has quit []
<pipework>
havenwood: I am.
<havenwood>
pipework: :O
Sht0 has quit [Ping timeout: 276 seconds]
<pipework>
left hand is best hand
pu22l3r has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
<centrx>
RubyConf 2014 is dedicated to providing a harassment-free conference experience for everyone, regardless of ..., body size, ....
<havenwood>
centrx: whew, i'm good then
seamon has quit [Quit: Zzzzzzz]
Bumptious has joined #ruby
marr has quit []
sectionme has joined #ruby
anshin has joined #ruby
nanoyak has joined #ruby
<wallerdev>
too many left handed techies
<havenwood>
pipework: see you there! :)
<pipework>
havenwood: Well, chances are we will, but will you know who I am if you did see me?
<havenwood>
pipework: nope, would you me?
<pipework>
(Just look for an asshole.)
<pipework>
havenwood: yes, if you wear your name badge.
<pipework>
Shannon Skipper, rite
<whatasunnyday>
How good is the showing of #ruby at ruby conf?
matchaw has quit [Quit: No Ping reply in 180 seconds.]
<havenwood>
mmm, i meant to put my company as havenwood, but yeah i did Shannon Skipper
<havenwood>
so i'm Shannon Skipper, Shannon Skipper >.>
hamakn has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
matchaw has joined #ruby
thumpba has joined #ruby
<whatasunnyday>
last name Shannon Skipper, first name… Shannon Skipper
<havenwood>
Skipper on the river Shannon
mary5030 has quit [Remote host closed the connection]
<havenwood>
there are many...
hamakn has quit [Remote host closed the connection]
hiyosi has joined #ruby
<havenwood>
but this is mine.
<havenwood>
name me anything but Sue!
<pipework>
havenwood: SHA-nnon.
<wallerdev>
last time i went to a ruby conf i felt like more than half the people there didnt know irc existed lol
bogeyd6 has joined #ruby
sectionme has quit [Ping timeout: 276 seconds]
seamon has joined #ruby
<pipework>
This'll be my first large ruby conference.
* wasamasa
got notified of a railscamp
<havenwood>
pipework: :D
<wasamasa>
I'm not sure what to think of this
<wallerdev>
wheres rubyconf anyway
<havenwood>
wallerdev: San Diego
paolo has joined #ruby
<wallerdev>
oh cool
<wallerdev>
you guys should check out legoland
<wallerdev>
lol
siwica1 has quit [Quit: siwica1]
snath has joined #ruby
<centrx>
it's better than that damned zoo
nanoyak has quit [Quit: Computer has gone to sleep.]
jmbrown412 has quit [Read error: Connection reset by peer]
<pipework>
Where is San Diego anyways?
<wallerdev>
or disneyland is pretty close too
<wallerdev>
socal
jmbrown412 has joined #ruby
<havenwood>
pipework: head south in california until you hit mexico then backup one step
<pipework>
Where is Earth anyways?
<havenwood>
pipework: otherwise known as the place of my birth
rubyonrailed has quit [Remote host closed the connection]
mrommelf has joined #ruby
paolo has left #ruby ["Leaving"]
seamon has quit [Client Quit]
banjara has quit [Quit: Leaving.]
<havenwood>
whatasunnyday: it gets bigger every year
<wallerdev>
san diego is cool, never been to the downtown area though
<wallerdev>
just the surrounding area
lw has joined #ruby
<wallerdev>
up to LA
<pipework>
havenwood: Do you booze it up?
seamon has joined #ruby
<whatasunnyday>
skip the zoo and lego land and just hang out at the beach
<centrx>
LA is a volcanic ash-hole, worse than PHP
seitensei has joined #ruby
<whatasunnyday>
it’ll be nice only for a few more weeks!
<havenwood>
pipework: admittedly, yeah
larissa has joined #ruby
<havenwood>
guilty
<havenwood>
fun to actually get to hang out in person with Rubyists!