apeiros changed the topic of #ruby to: Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Xeago has quit [Remote host closed the connection]
ner0x has quit [Quit: Leaving]
Xeago has joined #ruby
funburn has joined #ruby
bricker has quit [Quit: leaving]
rubyracer has quit [Ping timeout: 260 seconds]
solars has quit [Ping timeout: 272 seconds]
chipotle has joined #ruby
mjs2600 has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
byprdct has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
msmith has joined #ruby
danshultz has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
ciwolsey has quit [Remote host closed the connection]
Solnse has quit [Remote host closed the connection]
danshultz has joined #ruby
enebo has quit [Quit: enebo]
yeboot has joined #ruby
bleak2 has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
mavcunha has quit [Quit: Textual IRC Client: www.textualapp.com]
aspires has quit []
agjacome has joined #ruby
Xeago has joined #ruby
hiall has joined #ruby
mary5030 has joined #ruby
vlad_starkov has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
cmoylan has quit [Ping timeout: 272 seconds]
jonah_k has joined #ruby
danshultz has quit [Ping timeout: 260 seconds]
quatron_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
mocfive has joined #ruby
_bart has joined #ruby
nateberkopec has quit [Quit: Leaving...]
jonah_k has quit [Remote host closed the connection]
mansi has joined #ruby
jonah_k_ has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
benzrf has joined #ruby
<benzrf> hey
<benzrf> whatre the hooks for json again?
<centrx> the hooks?
<benzrf> serialization and so one
<benzrf> *on
dponrails has quit [Ping timeout: 245 seconds]
jack_rabbit has joined #ruby
<confounds> stringify
<centrx> Not sure what you mean
Xeago has quit [Ping timeout: 272 seconds]
<benzrf> no, the methods i can define on a class to control how serialization happens
mary5030 has quit [Ping timeout: 260 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<centrx> ah like a callback
<benzrf> right
<benzrf> not js, ruby!
<confounds> oh lol
jonah_k has joined #ruby
<jhass> hm, def as_json iirc
msmith has quit [Remote host closed the connection]
itadder has quit [Remote host closed the connection]
Mapley has joined #ruby
bleak has joined #ruby
Akuma has quit [Read error: Operation timed out]
Virtualize|away has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
virt|work has joined #ruby
joelroa has joined #ruby
monkegjinni has joined #ruby
<centrx> as_json is definitely the one for ActiveSupport JSON
klaut has joined #ruby
samu_ has joined #ruby
<jhass> let's just look what json stdlib adds to core classes: http://rubydoc.info/stdlib/json/BigDecimal
<jhass> it's json_create, as_json and to_json
gengis has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
<samu_> Did the `gem` script, by any chance, got some kind of a ruby-own dns resolver lately?
samu_ is now known as samu
yasushi has quit [Remote host closed the connection]
predator117 has joined #ruby
Aryasam has quit [Ping timeout: 252 seconds]
<YourBestFriend> is there a better way to do array.shuffle.first?
<jhass> array.sample
v0n has quit [Ping timeout: 272 seconds]
<YourBestFriend> thanks bro
<samu> cause I'm getting some weird errors with `gem`, which may really be related to such own resolver.
<YourBestFriend> is it a new method?
fijimunkii has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
<jhass> pretty sure it's at least in 1.9 already
earthquake has joined #ruby
starfox21 has quit [Ping timeout: 260 seconds]
Sirupsen has joined #ruby
lolmaus_ has quit [Read error: Operation timed out]
monkegjinni has quit [Ping timeout: 248 seconds]
Sirupsen has quit [Client Quit]
mansi has quit [Remote host closed the connection]
<rjhunter> YourBestFriend: it was introduced way back in 1.9.1, so it's not really new anymore
predator217 has quit [Ping timeout: 245 seconds]
<benzrf> hmmm
mansi has joined #ruby
klaut has quit [Ping timeout: 260 seconds]
<benzrf> doesnt one of the json methods do unsafe class instantiation or some bullshit like that?
<samu> > p Resolv.getaddress "google.com"
<samu> Errno::EPERM: Operation not permitted - bind(2) for "0.0.0.0" port 34600
jonahR has quit [Quit: jonahR]
anomaly_ has quit [Quit: see you when I see you]
<samu> now that's funny, it used to work in previous ruby versions.
<ddd> samu I think its required you pass the IP outbound now.
joelroa has quit [Ping timeout: 272 seconds]
zellio_ is now known as zellio
virt|work has quit [Quit: Leaving...]
<ddd> iirc, i ran into this myself a couple months back.
<samu> ddd: ok, but... why did ruby wrote own resolver?
dpswireless has joined #ruby
<samu> and why is it so screwed?
<ddd> idk. i have zero to do with ruby core
<havenwood> samu: eval-in bot restriction
<samu> havenwood: cool... but why the hell does it randomize bind port by itself?
<ddd> well, other than no-responsibility discussions
jonahR has joined #ruby
<havenwood> samu: ask charliesome
jonahR has quit [Client Quit]
<samu> well, I'll probably fill a bug report tommorow
<samu> because, yes, this is a implementation bug
mark_locklear has joined #ruby
<havenwood> with eval-in?
<jhass> havenwood: that wasn't eval-in that was his machine
<samu> no, that ruby's own resolver is randomizing bind ports by itself.
pel_daniel has left #ruby [#ruby]
<samu> 01:23 < ddd> samu I think its required you pass the IP outbound now.
freezey has quit [Ping timeout: 252 seconds]
<havenwood> jhass: ahh
<samu> ddd: a word of explanation here - on this machine I have a restricted bind policy.
<samu> You can only bind to a port I allow you to, UNLESS you're binding to autoport, which for this syscall is simply '0'.
<samu> this is a standard feature of my (and some other) operating systems.
rins has quit [Remote host closed the connection]
<samu> practically every udp software uses it.
b00stfr3ak has joined #ruby
<samu> to be honest, it's the first time I see something like this in a production code.
<ddd> ahh lemme guess selinux (or a distrib using the selinux kernel mods)
mansi has quit [Ping timeout: 252 seconds]
<samu> not linux, freebsd actually.
<samu> but anyway, autoport is the standard, randomizing ports by ruby itself - not.
sambao21 has joined #ruby
<ddd> well thats not a default for freebsd (I ran freebsd for years) so its something you enabled. but thats besides the point.
<samu> yeah, it is something I enabled. but that's not the point.
<ddd> so basically you need it to call specifically to port 0 to have the system pick it up and assign a legalized port
kitak has quit [Remote host closed the connection]
postmodern has joined #ruby
<samu> a standard way on practically every unix system is to bind to port 0, which is autoport.
<ddd> yes yes i know i know. moving on
fijimunkii has joined #ruby
<samu> I'll just fill a bug report, and advise my customers not to use latest ruby until it's fixed.
kitak has joined #ruby
dkamioka has joined #ruby
tcopp has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
dingus_khan has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
funburn has quit [Quit: funburn]
Es0teric has joined #ruby
tjr9898 has joined #ruby
dubsteph has joined #ruby
snath has quit [Ping timeout: 245 seconds]
<DaWoop-AFK> MinTTY looks good
DaWoop-AFK is now known as DaWoop
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
<DaWoop> hurr
mojjojo has quit [Quit: mojjojo]
pranny has quit [Read error: Connection reset by peer]
pranny has joined #ruby
prc has quit [Ping timeout: 265 seconds]
pranny has quit [Read error: Connection reset by peer]
pranny has joined #ruby
srji_ has joined #ruby
sassamo has joined #ruby
pranny has quit [Read error: Connection reset by peer]
Red_Onyx has joined #ruby
pranny has joined #ruby
yarou has quit [Remote host closed the connection]
pranny has quit [Read error: Connection reset by peer]
pranny1 has joined #ruby
yarou has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
confounds has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rjhunter> samu: FWIW, it looks like Ruby's Resolv::DNS moved from auto port to Ruby-randomized port to address CVE-2008-1447
yarou has quit [Remote host closed the connection]
mary5030 has joined #ruby
dingus_khan has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
jack_rabbit has quit [Read error: Operation timed out]
srji has quit [Ping timeout: 252 seconds]
s2013_ has quit [Read error: Connection reset by peer]
confounds has joined #ruby
s2013_ has joined #ruby
budrose has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
kindjal has joined #ruby
bandsaw1961 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
v0n has joined #ruby
kitak has quit [Ping timeout: 245 seconds]
b00stfr3ak has quit [Ping timeout: 248 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> samu: how old of a Ruby are you using?
lmickh has quit [Remote host closed the connection]
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
<samu> rjhunter: that doesn't really seem to be a CVE of ruby's concern at all.
<havenwood> rjhunter: interesting, looks like languages pretty much fixed this in 2008
<samu> havenwood: are you asking for my ruby version, or how loong am I using ruby?
casheew_ has joined #ruby
<havenwood> samu: Ruby version.
tkuchiki has joined #ruby
<samu> havenwood: 2.1.0p0
<havenwood> samu: I mean on which does it work as you expected?
weeeems has joined #ruby
axl_ has quit [Quit: axl_]
<samu> havenwood: I have also 1.9 installed here, so I don't really know when it has changed.
f0ster_ has joined #ruby
<samu> I've tried to search in the changelog, but I couldn't find anything, so I'd have to check in every release
<samu> and it worked for me on 1.9.3p429
nateberkopec has joined #ruby
marcgg_ has joined #ruby
jsilver_ has joined #ruby
<havenwood> samu: fixed in 1.8.6-p287 and 1.8.7-p72.
<samu> havenwood: funny then, that I can observe it on 2.1.0 ;)
jnoob22_ has joined #ruby
Vovko_ has joined #ruby
TripTastic has quit [Read error: Connection reset by peer]
mikekellyio has joined #ruby
pignata_ has joined #ruby
Coolhand has joined #ruby
Atww has joined #ruby
vadviktor has joined #ruby
semw is now known as semw|away
eval-in_ has joined #ruby
txdv has quit [Ping timeout: 264 seconds]
banister has joined #ruby
kaichanvong___ has joined #ruby
lolmaus has joined #ruby
jwest1 has joined #ruby
Anarch has joined #ruby
johnmlocklear_ has joined #ruby
txdv has joined #ruby
pierre1__ has joined #ruby
ninegrid has joined #ruby
Mongey has quit [Quit: Mongey]
dawkirst_ has joined #ruby
finges_ has joined #ruby
dorei has quit []
Hobogrammer has quit [Quit: Lost terminal]
pranny1 has quit [Quit: Leaving.]
riking_ has joined #ruby
ada2358_ has joined #ruby
wookiehangover_ has joined #ruby
ihme-TTilus has joined #ruby
urtokk_ has joined #ruby
wald0_ has joined #ruby
Elfix_113 has joined #ruby
yokel_ has joined #ruby
Elfix_113 has quit [Changing host]
Elfix_113 has joined #ruby
yokel_ has quit [Changing host]
yokel_ has joined #ruby
MarcWebe1 has joined #ruby
jsaak has joined #ruby
zellio_ has joined #ruby
d3scala has joined #ruby
skinny_much_ has joined #ruby
wereHams1er has joined #ruby
tommylom1ykins has joined #ruby
bw__ has joined #ruby
pwh has joined #ruby
eyckelbo1m has joined #ruby
jack_rabbit has joined #ruby
soheil_ has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
baroquebobcat has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
byprdct has quit [Read error: Connection reset by peer]
monsieur1 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
cephalostrum has joined #ruby
pranny has joined #ruby
rezonanc_ has joined #ruby
yarou has joined #ruby
SpleezeDos has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
nanoyak has joined #ruby
jhass is now known as jhass|off
v0n has quit [*.net *.split]
mark_locklear has quit [*.net *.split]
jnoob22 has quit [*.net *.split]
chrisseaton has quit [*.net *.split]
Atw has quit [*.net *.split]
grzywacz has quit [*.net *.split]
eyckelboom has quit [*.net *.split]
dawkirst has quit [*.net *.split]
urtokk has quit [*.net *.split]
pierre1_ has quit [*.net *.split]
TTilus has quit [*.net *.split]
endash has quit [*.net *.split]
dideler_work has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
zellio has quit [*.net *.split]
marcgg has quit [*.net *.split]
wald0 has quit [*.net *.split]
Elfix has quit [*.net *.split]
mikekellyio_ has quit [*.net *.split]
Riking has quit [*.net *.split]
Anarch_ has quit [*.net *.split]
pwh_ has quit [*.net *.split]
cephalostrum_ has quit [*.net *.split]
yokel has quit [*.net *.split]
Azulinho has quit [*.net *.split]
Vovko has quit [*.net *.split]
twiceaday has quit [*.net *.split]
rismoney has quit [*.net *.split]
marr has quit [*.net *.split]
jsaak_ has quit [*.net *.split]
vadviktor_ has quit [*.net *.split]
weeems has quit [*.net *.split]
ninegrid_ has quit [*.net *.split]
Kneferilis has quit [*.net *.split]
eval-in has quit [*.net *.split]
lazyguru has quit [*.net *.split]
bhaak has quit [*.net *.split]
monsieurp has quit [*.net *.split]
zerun0_ has quit [*.net *.split]
jwest has quit [*.net *.split]
jsilver has quit [*.net *.split]
Spleeze has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
MarcWeber has quit [*.net *.split]
wereHamster has quit [*.net *.split]
casheew has quit [*.net *.split]
ixti has quit [*.net *.split]
Nyyx has quit [*.net *.split]
skinny_much has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
linduxed has quit [*.net *.split]
phreax has quit [*.net *.split]
bw_ has quit [*.net *.split]
Schmidt has quit [*.net *.split]
descala has quit [*.net *.split]
pignata has quit [*.net *.split]
Zhann has quit [*.net *.split]
rezonanc has quit [*.net *.split]
Port3M5[Work] has quit [*.net *.split]
finges has quit [*.net *.split]
ada2358 has quit [*.net *.split]
DefV has quit [*.net *.split]
niharvey has quit [*.net *.split]
wookiehangover_ is now known as wookiehangover
endash_ is now known as endash
yokel_ is now known as yokel
rezonanc_ is now known as rezonanc
kaichanvong___ is now known as kaichanvong
phreax has joined #ruby
mary5030 has joined #ruby
<apeiros> ah, nice, sublime 3 no longer stutters when the retina monitor is set to virtual 1920x1200
mikekellyio is now known as mikekellyio_
jack_rabbit has quit [Ping timeout: 252 seconds]
sdwrage has joined #ruby
DefV has joined #ruby
Fezzler has joined #ruby
lazyguru has joined #ruby
twiceaday has joined #ruby
Zhann has joined #ruby
bhaak has joined #ruby
<DaWoop> nice
JBreit has joined #ruby
aspires has joined #ruby
bhaak is now known as Guest81856
snath has joined #ruby
mansi has joined #ruby
pcarrier has quit [Ping timeout: 245 seconds]
Olipro has quit [Ping timeout: 246 seconds]
<benzrf> yokel:
<benzrf> *yo
tylersmi_ has quit [Remote host closed the connection]
<benzrf> is there something like json schema for ruby objects
pcarrier has joined #ruby
<benzrf> like, a thing where you predefine hierarchies and conditions for the types of values
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DaWoop has quit [Quit: leaving]
confounds has quit [Quit: Textual IRC Client: www.textualapp.com]
ringaroses has quit [Ping timeout: 252 seconds]
confounds has joined #ruby
<apeiros> benzrf: use enterprise ruby and xsd :D
<apeiros> oh, though that's code in xml, not data :-|
mary5030 has quit [Remote host closed the connection]
axl_ has joined #ruby
JBreit has quit [*.net *.split]
sdwrage has quit [*.net *.split]
Fezzler has quit [*.net *.split]
Zhann has quit [*.net *.split]
lazyguru has quit [*.net *.split]
twiceaday has quit [*.net *.split]
DefV has quit [*.net *.split]
Guest81856 has quit [*.net *.split]
JBreit has joined #ruby
DefV has joined #ruby
twiceaday has joined #ruby
Fezzler has joined #ruby
Guest81856 has joined #ruby
lazyguru has joined #ruby
sdwrage has joined #ruby
Zhann has joined #ruby
kitak has joined #ruby
Port3M5[Work] has joined #ruby
zerun0_ has joined #ruby
ixti has joined #ruby
Schmidt has joined #ruby
Olipro has joined #ruby
<benzrf> enterprise ruby??
JBreit has quit [Read error: Connection reset by peer]
Azulinho has joined #ruby
dideler_work has joined #ruby
mary5030 has joined #ruby
Nyyx has joined #ruby
v0n has joined #ruby
linduxed has joined #ruby
wald0_ has quit [Quit: Lost terminal]
randomnick_ has quit [Ping timeout: 260 seconds]
aantix_ has quit [Quit: aantix_]
jonah_k has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
<apeiros> benzrf: you don't know?!?
tjr9898 has quit [Remote host closed the connection]
robustus has joined #ruby
endash_ has joined #ruby
Celm has quit [Remote host closed the connection]
<benzrf> apeiros: wahaha
<benzrf> is it just a thin layer around RubyParser?
Celm has joined #ruby
<apeiros> probably
PLejeck- has quit [Ping timeout: 265 seconds]
endash_ has quit [Client Quit]
Sc0rp10n has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
Fezzler has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
snowball4242 has joined #ruby
Fezzler has joined #ruby
<benzrf> >I'm sure you're asking yourself, “how much does this enterprise solution cost me?”. Well, like any good enterprise system, it is insanely expensive. This gem will cost you eleventy billion dollars payable to me, now.
<benzrf> omg
snowball4242 has quit [Client Quit]
zellio_ is now known as zellio
JBreit has joined #ruby
<apeiros> table.header? or table.headers?
robustus|Off has quit [Ping timeout: 245 seconds]
Lewix has quit [Remote host closed the connection]
coderdad has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<apeiros> benzrf: oooh, he wrote that entirely wrong. he really meant: like any good enterprise system, it is insanely reasonably priced. This gem will cost you only eleventy billion dollars payable to me, now.
unholycrab is now known as o7
o7 is now known as unholycrab
timonv has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
roolo has quit [Quit: Leaving...]
freezey has joined #ruby
freezey has quit [Remote host closed the connection]
kennym has quit [Remote host closed the connection]
s2013_ has quit [Quit: Leaving]
kevind has quit [Quit: kevind]
PLejeck has joined #ruby
joelroa has joined #ruby
joelroa has quit [Max SendQ exceeded]
mansi has quit [Remote host closed the connection]
joelroa has joined #ruby
joelroa has quit [Max SendQ exceeded]
mansi has joined #ruby
philcrissman has quit [Ping timeout: 248 seconds]
timonv has quit [Ping timeout: 252 seconds]
joelroa has joined #ruby
joelroa has quit [Max SendQ exceeded]
fozworth has joined #ruby
danshultz has joined #ruby
carif has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
dpswireless has quit [Remote host closed the connection]
Xeago has joined #ruby
dpswireless has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
johnmilton has quit [Read error: Connection reset by peer]
danshultz has quit [Ping timeout: 252 seconds]
gilest has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
dpswireless has quit [Ping timeout: 248 seconds]
Wolland has quit [Remote host closed the connection]
ciwolsey has joined #ruby
kevind has joined #ruby
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevind has quit [Client Quit]
itadder has joined #ruby
slyv has joined #ruby
dx7 has joined #ruby
joonty_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
chipotle has joined #ruby
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
joonty has quit [Ping timeout: 260 seconds]
pfg has joined #ruby
evenix has quit [Remote host closed the connection]
Kricir has joined #ruby
Kricir has quit [Remote host closed the connection]
evenix has joined #ruby
PLejeck has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
codeFiend has joined #ruby
<mostlybadfly> just came across this really cool work application that runs natively in chromebook for editing and running test code
<mostlybadfly> collaboration, etc
evenix has quit [Read error: Connection reset by peer]
confounds has quit [Quit: Textual IRC Client: www.textualapp.com]
evenix has joined #ruby
<ciwolsey> mostlybadfly: have you seen http://kobra.io ?
<mostlybadfly> nitrous.io i guess it's just cool that I can play around on my chromebook too
<mostlybadfly> no i haven't
sparrovv has quit [Remote host closed the connection]
<ciwolsey> have a look.. collaborative coding, watch the video at the start.. sign up for the beta.. it starts in a day or so.
<mostlybadfly> cool
mehlah has quit [Quit: Leaving...]
danman has joined #ruby
Hobogrammer has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
ciwolsey has quit [Quit: Leaving]
ciwolsey has joined #ruby
jlebrech has joined #ruby
stryek has joined #ruby
mary5030 has joined #ruby
kcombs has quit [Remote host closed the connection]
bigmac has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
mikecmpb_ has quit [Quit: i've nodded off.]
tonni has quit [Read error: Connection reset by peer]
Mousse_ has quit [Quit: Lingo - http://www.lingoirc.com]
Hobogrammer has quit [Ping timeout: 252 seconds]
tonni has joined #ruby
mansi has joined #ruby
maroloccio has quit [Ping timeout: 252 seconds]
x77686d has quit [Quit: x77686d]
zono has joined #ruby
binaryhat has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
slowcon has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
Hobogrammer has joined #ruby
unholycr1b has joined #ruby
unholycrab has quit [Ping timeout: 245 seconds]
Celm has quit [Remote host closed the connection]
CaptainJet has quit []
Celm has joined #ruby
Kricir has joined #ruby
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oso96_2000 is now known as oso|away
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aryasam has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Kricir has quit [Remote host closed the connection]
zono has quit [Ping timeout: 252 seconds]
aspires has quit [Remote host closed the connection]
aspires has joined #ruby
cj3kim has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
zono has joined #ruby
Aryasam has quit [Ping timeout: 253 seconds]
earthquake has quit [Quit: earthquake]
armyriad has quit [Quit: Leaving]
kreisys has joined #ruby
oso|away is now known as oso96_2000
Akuma has joined #ruby
zB0hs has joined #ruby
johnmlocklear_ has quit [Ping timeout: 265 seconds]
evenix has quit [Remote host closed the connection]
mjs2600 has joined #ruby
evenix has joined #ruby
hornairs has joined #ruby
Voodoofish430 has quit [Ping timeout: 260 seconds]
Voodoofish430 has joined #ruby
fijimunkii has quit [Read error: Connection reset by peer]
<diegoviola> I was sad about the passing of Jim Weirich and don't want to sound disrespectful, but who will maintain Rake now? :(
pwh has quit [Ping timeout: 260 seconds]
razrunelord has quit []
<diegoviola> or continue with his work
Zunonia has joined #ruby
fijimunkii has joined #ruby
pwh has joined #ruby
evenix has quit [Ping timeout: 260 seconds]
mjs2600 has quit [Ping timeout: 265 seconds]
Aryasam has joined #ruby
pico-pete has joined #ruby
amclain has joined #ruby
Es0teric has quit [Ping timeout: 248 seconds]
RoxasShadowRS has quit [Read error: Connection reset by peer]
budrose has joined #ruby
<diegoviola> sorry maybe not the right time to ask that question :(
vlad_starkov has joined #ruby
troyready has quit [Ping timeout: 260 seconds]
x77686d has joined #ruby
mavcunha has joined #ruby
Es0teric has joined #ruby
nathancahill has quit [Quit: nathancahill]
Aryasam_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
rafaelmagu has quit [Quit: Textual IRC Client: www.textualapp.com]
Aryasam has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
[gmi] has quit [Quit: Leaving]
Xiti has joined #ruby
mgberlin has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<YourBestFriend> so, how do you append to a string without recreating a new object, again?
glaksmono_ has joined #ruby
<glaksmono_> if i have object {foo: 1, bar: 2} how do i check if 1 is in the object?
joelroa has joined #ruby
PLejeck has joined #ruby
bigmac has quit [Remote host closed the connection]
mgberlin has quit [Remote host closed the connection]
nathancahill has joined #ruby
Fezzler has quit [Quit: Leaving]
freggles has quit [Remote host closed the connection]
Hanmac has joined #ruby
monkegjinni has joined #ruby
<YourBestFriend> >> x = {foo: 1, bar: 2}; puts x.value?(1)
<eval-in_> YourBestFriend => true ... (https://eval.in/104008)
Aryasam_ has quit [Read error: Connection reset by peer]
dubsteph has quit [Ping timeout: 248 seconds]
<glaksmono_> cool!
<glaksmono_> thanks YourBestFriend
<glaksmono_> you ARE my best friend :)
sambao21 has quit [Quit: Computer has gone to sleep.]
<YourBestFriend> I'm everyone's best friend
msmith has joined #ruby
<pontiki_> PUPPY!!!
slyv has quit [Quit: My Computer has gone to sleep. ZZZzzz…]
tjr9898 has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
<havenwood> diegoviola: drbrain
fozworth has quit [Remote host closed the connection]
<diegoviola> havenwood: i see, thanks
robbyoconnor has joined #ruby
nateberkopec has joined #ruby
Kricir has joined #ruby
mansi has quit [Quit: Leaving...]
joelroa has quit [Ping timeout: 260 seconds]
carif has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 252 seconds]
P1RATEZ has joined #ruby
aspires has quit []
hornairs has quit [Quit: hornairs]
Vovko_ has quit []
<diegoviola> i've just seen that, very nice
retnuh has joined #ruby
<diegoviola> and sad
<pontiki_> someone topic that
Kricir has quit [Remote host closed the connection]
sassamo has quit []
Kricir has joined #ruby
sailias has joined #ruby
gilest has quit [Remote host closed the connection]
P1RATEZ has left #ruby [#ruby]
nateberkopec has quit [Ping timeout: 240 seconds]
TheMoonMaster has quit [Excess Flood]
MattStratton has quit [Quit: Textual IRC Client: www.textualapp.com]
Olipro has quit [Ping timeout: 246 seconds]
kitak has quit [Remote host closed the connection]
axsuul has joined #ruby
kitak has joined #ruby
cj3kim has joined #ruby
mavcunha has quit [Quit: Textual IRC Client: www.textualapp.com]
jobewan has quit [Quit: Leaving]
<diegoviola> something that gives me relief is that it's amazing how many people already passed away but their work lives in free software
TheMoonMaster has joined #ruby
mavcunha has joined #ruby
<diegoviola> and in git repositories, etc
<diegoviola> i think it's pretty amazing
MattStratton has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
TheMoonMaster has quit [Excess Flood]
<pontiki_> better than cvs repositories...
meatherly has joined #ruby
<diegoviola> that's for sure
Voodoofish430 has quit [Quit: Leaving.]
<pontiki_> it might be just me, but github is a rather social network of devs
<pontiki_> i never ever felt that way with sourceforge
cj3kim has quit [Remote host closed the connection]
earthquake has joined #ruby
dx7 has quit [Remote host closed the connection]
TheMoonMaster has joined #ruby
axl_ has quit [Quit: axl_]
dx7 has joined #ruby
x77686d has quit [Quit: x77686d]
gregf has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
mocfive has quit [Ping timeout: 252 seconds]
tjr9898 has quit []
subbyyy has quit [Ping timeout: 260 seconds]
mgberlin has joined #ruby
pranny has quit [Quit: Leaving.]
<benzrf> hey
dx7 has quit [Ping timeout: 252 seconds]
<benzrf> is DRb safe?
<benzrf> that is, if i publically open an object on drb
<benzrf> is that potentially exploitable in any way beyond flaws in the callable methods?
<RubyPanther> sourceforge was always more corporate, so they never even tried adding new features and thinking big. They were just doing what they were doing; providing hosting for OSS projects
<RubyPanther> github showed up with startup culture, and implemented all sorts of features
v0n has quit [Ping timeout: 252 seconds]
<diegoviola> the distributed nature of git might also have helped with that
gregf has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
<diegoviola> sf was cvs/svn only, no?
<centrx> benzrf, If there were a known exploit, I assume it would be fixed.
<pontiki_> it's all the unkonwn exploits we have to worry about late at night....
<centrx> benzrf, On the other hand, some parts of stdlib are rarely used and poorly implemented.
Wolland has joined #ruby
ultraflash3 has quit [Remote host closed the connection]
rjhunter has quit [Remote host closed the connection]
TheMoonMaster has quit [Excess Flood]
FL1SK has quit [Ping timeout: 260 seconds]
danshultz has quit [Remote host closed the connection]
TheMoonMaster has joined #ruby
axl_ has joined #ruby
Celm has quit [Remote host closed the connection]
jonahR has joined #ruby
Kricir has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
binaryhat has quit [Quit: Leaving]
mavcunha has quit [Quit: Computer has gone to sleep.]
nateberkopec has joined #ruby
milhite has joined #ruby
evenix has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
<RubyPanther> github existed before git became popular, svn was still the most common VCS. And svn and git aren't any more/less distributed as they are commonly used. Certainly not in a way that would matter to hosting
budrose has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther> benzrf: DRb is fairly safe for relevant values of safe. It depends how you use it.
omegahm has quit [Ping timeout: 245 seconds]
TheMoonMaster has quit [Excess Flood]
<benzrf> as a public thing open to anybody
nateberkopec has quit [Ping timeout: 240 seconds]
<RubyPanther> Right, but DRb is for primarily for building network app servers, so there is a lot involved in the details of how you design that. Making an app server "safe" for public use is generally not even done, people hide it behind a web interface
retnuh has joined #ruby
<snkcld> if i have an object that implements [], and .each on it yields elements and everything correctly, how would i go about getting the entire array it would yield out?
<snkcld> would i implement .all ?
dingus_khan has joined #ruby
<centrx> snkcld, You could include Enumerable and get all the enumerable methods
codeFiend has quit [Quit: codeFiend]
fijimunkii has quit [Read error: Connection reset by peer]
felixjet has quit [Read error: Connection reset by peer]
budrose has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
TheMoonMaster has joined #ruby
cj3kim has joined #ruby
<centrx> snkcld, Once you have the #each method, all of Enumerable should work for your object
<RubyPanther> Or at least most of it
felixjet has joined #ruby
<centrx> snkcld, Then you can use #to_a
sailias has joined #ruby
<RubyPanther> some things might want #<=> or something
<snkcld> centrx: awesome!
<benzrf> anybody here used vanhguard?
itadder has quit [Remote host closed the connection]
<benzrf> *vanguard
<centrx> valgrind?
<snkcld> ahhh.. centrx actually it looks like i do have each implemented, and i do include Enumerable
<snkcld> but ".all" is not defined
<centrx> to_a
<snkcld> OH
sensen has joined #ruby
evenix has quit [Remote host closed the connection]
<centrx> .all is the Rails method to get all of a model
<snkcld> ahh
evenix has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
evenix has quit [Read error: Connection reset by peer]
timonv has joined #ruby
evenix has joined #ruby
aantix has joined #ruby
nateberkopec has joined #ruby
fijimunkii has joined #ruby
axsuul has quit [Quit: Textual IRC Client: www.textualapp.com]
Zunonia has quit [Quit: Computer has gone to sleep.]
pranny has joined #ruby
omegahm has joined #ruby
gregf has joined #ruby
reset has quit [Ping timeout: 248 seconds]
glaksmono_ has quit [Quit: This computer has gone to sleep]
nateberkopec has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 252 seconds]
tungd has joined #ruby
budrose has quit []
snath has quit [Ping timeout: 265 seconds]
MatthewsFace has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
vlad_starkov has joined #ruby
earthquake has quit [Quit: earthquake]
thumpba has joined #ruby
zeade has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<YourBestFriend> guys
<snkcld> does defining == work if i want to do [object_a, object_b] == [object_c, object_d] ?
<YourBestFriend> GUYS
sski has joined #ruby
<centrx> snkcld, Not sure what you mean. You can define == on an object.
<YourBestFriend> how do I call a function on some object, I have the function name inside a string
<centrx> YourBestFriend, Yes, my best friend?
<centrx> YourBestFriend, object.send(method_name)
<snkcld> sure i have == defined as @id, but i want to check that 2 arrays are equal, where they have these objects
<YourBestFriend> centrx: what about the arguments?
thumpba has quit [Read error: Operation timed out]
arashb has joined #ruby
<centrx> YourBestFriend, object.send(method_name, arg1, arg2)
Wolland has quit [Ping timeout: 260 seconds]
<YourBestFriend> thank you
blandflakes has quit [Quit: Page closed]
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ilyam has quit [Quit: ilyam]
mocfive has joined #ruby
firewater has joined #ruby
<centrx> snkcld, Array#== will use Object#== on each of the objects to check corresponding equality
<firewater> Does anyone know how to check if a key in a hash contrains part of a string? AKA, lets say the "key" equals "string", and you are testing if a key starts with "st". How do you make that true?
sailias has quit [Ping timeout: 260 seconds]
<firewater> How do you test for that, is there a method?
Aryasam has joined #ruby
<YourBestFriend> start_with? or []
<YourBestFriend> or include?
<YourBestFriend> >> 'test'['te']
<eval-in_> YourBestFriend => "te" (https://eval.in/104010)
<YourBestFriend> >> 'test'.start_with('te')
<eval-in_> YourBestFriend => undefined method `start_with' for "test":String (NoMethodError) ... (https://eval.in/104011)
<YourBestFriend> >> 'test'.start_with?('te')
<eval-in_> YourBestFriend => true (https://eval.in/104012)
<YourBestFriend> >> 'test'.include?('te')
<eval-in_> YourBestFriend => true (https://eval.in/104013)
<centrx> >> true
<eval-in_> centrx => true (https://eval.in/104014)
<YourBestFriend> firewater: ^
<benzrf> sup firewater
existensil has quit [Remote host closed the connection]
<firewater> YourBestFriend: I am going to try that, one second.
<firewater> benzrf: Hey, how is it going?
<benzrf> nb =]
<benzrf> so
<benzrf> does ruby have something like json schemas
<benzrf> that i can use to validate the structure of my data
<benzrf> i.e. i can specify declaritively that outputs should be a list of pairs of this long string and numbers
codeFiend has joined #ruby
<firewater> YourBestFriend: Thanks for that btw, still trying ot make this work somehow in my code.
scarolan has quit [Ping timeout: 260 seconds]
alvaro_o has quit [Quit: Ex-Chat]
joelroa has joined #ruby
aantix has quit [Quit: aantix]
pranny has quit [Quit: Leaving.]
<centrx> benzrf, Like a test assertion?
gilest has joined #ruby
<firewater> benzrf: Also was that question directed to me, because I'm not the best to ask that, lol :/.
<benzrf> nah man
MJBrune has joined #ruby
<benzrf> centrx: i mean like json schema o-o
MJBrune has quit [Changing host]
MJBrune has joined #ruby
radic_ has quit [Ping timeout: 248 seconds]
estebistec has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
radic has joined #ruby
joelroa has quit [Read error: Operation timed out]
danman has quit [Quit: danman]
danman has joined #ruby
gilest has quit [Ping timeout: 265 seconds]
ilyam has joined #ruby
monsieur1 is now known as monsieurp
carif has joined #ruby
f0ster_ has quit [Ping timeout: 260 seconds]
Sirupsen has joined #ruby
Zunonia has joined #ruby
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
nateberkopec has joined #ruby
<havenwood> benzrf: did you find json-schema?
<benzrf> yeah
<benzrf> but i dont want to manually convert everything to json and then back
<benzrf> id rather do it in RubyPanther
<benzrf> *ruby
<havenwood> hehe
<benzrf> not to mention that i have some custom validations in mind
mercwithamouth has joined #ruby
<havenwood> so you mean Ruby schema not JSON schema?
<benzrf> yeah
<benzrf> 10:18 < benzrf> does ruby have something like json schemas
<centrx> RubyPanther is a very bizarre version of Ruby
<havenwood> benzrf: Use ROM with axiom-memory-adapter: http://rom-rb.org/
<RubyPanther> http://stuff.rubypanther.com/perl.rb Well, at least it is better than json
gilest has joined #ruby
Zunonia has quit [Ping timeout: 252 seconds]
Virtualize|away has joined #ruby
evenix has quit [Ping timeout: 272 seconds]
<firewater> anyhow, see you all later. See you later benzrf .
<benzrf> cya
gilest has quit [Ping timeout: 265 seconds]
ciwolsey has quit [Remote host closed the connection]
Wolland has joined #ruby
pfg has quit [Quit: Textual IRC Client: www.textualapp.com]
pigzzcanfly has quit [Remote host closed the connection]
chrisramon has joined #ruby
pigzzcanfly has joined #ruby
yasushi has joined #ruby
Wolland has quit [Ping timeout: 252 seconds]
dseitz has joined #ruby
speakingcode has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
Hobogrammer has quit [Ping timeout: 272 seconds]
sepp2k has quit [Read error: Connection reset by peer]
boom__ has quit [Ping timeout: 245 seconds]
angusiguess has quit [Ping timeout: 260 seconds]
subbyyy has joined #ruby
io_syl has quit [Ping timeout: 245 seconds]
firewater has quit [Quit: Page closed]
rjhunter has joined #ruby
mocfive has quit [Ping timeout: 260 seconds]
jonah_k has joined #ruby
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
Hobogrammer has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rjhunter has quit [Ping timeout: 272 seconds]
Red_Onyx has quit [Quit: Leaving]
jglover has joined #ruby
<jglover> does anybody have an elegant way of controller subdomains in sinatra?
Celm has joined #ruby
<jglover> sinatra-subdomain doesn't seem to do the trick unless I hack around with it a bit
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby
mjs2600 has joined #ruby
subbyyy_ has joined #ruby
WillAmes has joined #ruby
jglover has quit [Client Quit]
snath has joined #ruby
braincrash has quit [Quit: bye bye]
subbyyy has quit [Ping timeout: 260 seconds]
Zunonia has joined #ruby
boom__ has joined #ruby
thomasxie has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
mjs2600 has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
koell has quit [Read error: Connection reset by peer]
<snkcld> how can i get Dir.tmpdir to give me a new directory each time? and also, delete the older tmpdir?
vlad_starkov has joined #ruby
mocfive has joined #ruby
jobewan has joined #ruby
<centrx> snkcld, You mean mktmpdir ?
<centrx> snkcld, It looks like if you use a block with mktmpdir it will be deleted when the block ends
Kricir has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
<snkcld> awesome, thanks
chrisramon has quit [Quit: chrisramon]
funburn has joined #ruby
ei1000 has joined #ruby
monkegjinni has joined #ruby
dingus_khan has quit []
msmith has quit [Remote host closed the connection]
xue has joined #ruby
estebistec has quit [Remote host closed the connection]
ei1000 has quit [Remote host closed the connection]
danshultz has joined #ruby
joelroa has joined #ruby
jobewan has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Ping timeout: 252 seconds]
subbyyy has joined #ruby
nobitanobi has joined #ruby
subbyyy_ has quit [Ping timeout: 252 seconds]
jobewan has joined #ruby
GinoMan has joined #ruby
Viridisignis has joined #ruby
michael_lee has joined #ruby
Wolland has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
Salve has quit [Remote host closed the connection]
danman has quit [Quit: danman]
joelroa has quit [Read error: Operation timed out]
Salve has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
yasushi has quit [Remote host closed the connection]
Salve_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
GinoMan has quit [Ping timeout: 248 seconds]
gozali has joined #ruby
subbyyy_ has joined #ruby
thams has quit [Ping timeout: 265 seconds]
Salve has quit [Ping timeout: 260 seconds]
boom__ has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 252 seconds]
michael_lee has quit [Max SendQ exceeded]
Salve_ has quit [Ping timeout: 252 seconds]
michael_lee has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
kenndel_ has quit [Read error: Connection reset by peer]
kenndel_ has joined #ruby
habanany has joined #ruby
[krisbulman] is now known as krisbulman
EricaCat has joined #ruby
<EricaCat> Hey everyone Tonights topic is cars/ shows/ events etc. Check us out live Featuring Renjimus Prime and The Doctor
thams has joined #ruby
decoponio has joined #ruby
coderhs has joined #ruby
EricaCat has quit [Killed (idoru (Spam is off topic on freenode.))]
subbyyy has joined #ruby
<slowcon> what up centrx
<centrx> Greetings and salutations
subbyyy_ has quit [Ping timeout: 252 seconds]
<slowcon> almost friday baby!
<centrx> What day of the week is today?
<centrx> Frigg Day comes soon?
<centrx> Is today Thor's Day?
dukz has joined #ruby
<slowcon> hahaha
super_super has joined #ruby
habanany has quit [Ping timeout: 252 seconds]
<slowcon> so i really think I'm entering the home stretch for the first release of my script
<centrx> Excellent!
<centrx> Are you going to throw a party?
<slowcon> pretty much
Kricir has joined #ruby
Karu is now known as Karunamon
<slowcon> this script will save me probably 8-10 hours a week easy
<stupidystupid> hai guys
yacks has joined #ruby
Viridisignis has quit [Ping timeout: 260 seconds]
BackEndCoder has quit [Read error: Connection reset by peer]
<stupidystupid> im learning ruby on codeadcademy, my code is bugged and i dont understand why
gilest has joined #ruby
<stupidystupid> im actually using codeacademy's own code ... so im not sure if ... i am using the wrong ruby version maybe? or their code is bugged?
Celm has quit [Remote host closed the connection]
<centrx> Tell me more...
<benzrf> >minaswan
<benzrf> LIES
fridim_ has quit [Ping timeout: 260 seconds]
<benzrf> stupidystupid: looks right to me
<centrx> benzrf, Good
<stupidystupid> so when i run that, the case thingy.. works fine if i say variable = "JS" ... but when i write variable = gets and then I type JS, it hits the else statement and outputs "I dont know"
<benzrf> oh wait
<benzrf> it includes the newline
<benzrf> you need to chomp or strip it
<benzrf> [1] pry(main)> gets
<benzrf> foo
<benzrf> => "foo\n"
angusiguess has joined #ruby
<stupidystupid> gets includes a newline?
<benzrf> eyah
<benzrf> &yeah
<benzrf> ugh
<stupidystupid> oh ok. alright i added gets.chomp and that fixed it
<stupidystupid> <3 thanks
timonv has joined #ruby
<centrx> "every organization's goal is to promote diversity, not to do the thing they're created to actually do"
<stupidystupid> so codeacademy's own code was broken. thats embarrassing
Steve445 has joined #ruby
zono has quit [Quit: zono]
habanany has joined #ruby
sski has quit [Remote host closed the connection]
<Steve445> anyone use GitHub or GitLab for Time Tracking? Tracking the amount of time spend on issues or Git commits?
<benzrf> i dont!
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
AlecTaylor has joined #ruby
<AlecTaylor> hi
<Karunamon> •Steve445• Nope - sounds more like a Jira thing
<Karunamon> I know Rubymine will gladly talk to both though and do that for ya
<AlecTaylor> How do I specify in the Gemfile that the version of ruby has to be >= 2.0.0? - Can't find it here: http://bundler.io/v1.5/man/gemfile.5.html
<benzrf> ruby '>= 2.0.0' i think
<Steve445> looking for repos that have come up with solutions. Tagging, keywords, etc. I built the following: https://github.com/StephenOTT/GitHub-Time-Tracking but looking for people who have come up with other solutions. like to include that syntax is worth it
cj3kim has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 252 seconds]
cj3kim has joined #ruby
mocfive has quit [Ping timeout: 248 seconds]
b00stfr3ak has joined #ruby
AlecTaylor has quit [Read error: Connection reset by peer]
gilest has quit [Remote host closed the connection]
io_syl has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
jobewan has quit [Remote host closed the connection]
pigzzcanfly has joined #ruby
AlecTaylor has joined #ruby
* AlecTaylor CPU overheated
<AlecTaylor> That didn't work, I get this error: Your Ruby version is 2.1.0, but your Gemfile specified >= 2.0.0
abk has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
habanany has quit [Ping timeout: 260 seconds]
gilest has joined #ruby
arashb has quit [Ping timeout: 252 seconds]
mocfive has joined #ruby
<centrx> AlecTaylor, Maybe the "ruby" directive has to be an exact version
<AlecTaylor> Well that sucks :(
yfeldblum has quit [Remote host closed the connection]
jobewan has joined #ruby
<benzrf> is it threqual or threequal?
<AlecTaylor> Maybe I'lla dd a line like this to me setup script
<AlecTaylor> sed -e -i Gemfile '/s/ruby \'2.0.0\'/ruby \'2.1.0\'/g'
<centrx> benzrf, That sounds like a good name for the comparison operator <=>
<benzrf> no === is threequal
<benzrf> or threqual o-o
jonahR has quit [Quit: jonahR]
<havenwood> for when a fourquals is just too much
<benzrf> ah, threequal
super_super has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kaptaink1bosh has quit [Quit: leaving]
jlast has joined #ruby
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thesheff17 has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
kitak_ has joined #ruby
yacks has quit [Ping timeout: 260 seconds]
pierre1__ has quit [Quit: Leaving]
fijimunkii has quit [Ping timeout: 260 seconds]
sski has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
pietr0 has quit [Quit: pietr0]
pierre1_ has joined #ruby
geggam has joined #ruby
krisbulman is now known as [krisbulman]
kitak has quit [Ping timeout: 245 seconds]
Celm has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
budrose has joined #ruby
habanany has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
mgberlin has quit [Ping timeout: 248 seconds]
gilest has quit [Remote host closed the connection]
rjhunter has joined #ruby
zB0hs has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
Kricir has joined #ruby
axl_ has quit [Quit: axl_]
sensen has quit [Ping timeout: 248 seconds]
<benzrf> is there a set-xor for lists
thesheff17 has joined #ruby
pigzzcanfly has joined #ruby
habanany has quit [Ping timeout: 248 seconds]
<centrx> "set-xor for lists" ?
tcopp has quit [Ping timeout: 252 seconds]
sensen has joined #ruby
thesheff17 has quit [Max SendQ exceeded]
mary5030 has quit [Remote host closed the connection]
<benzrf> yeah
thesheff17 has joined #ruby
<benzrf> | is set-or for lists
<benzrf> *arrays oops
<benzrf> & is set-and for lists
<benzrf> *ugh arrays
<benzrf> but for some reason ^ is not set-xor for lists!
<centrx> Have you been infected with the Python virus?
<benzrf> no, it is just that everything besides ruby and js call lists lists
<benzrf> and not arrays
<benzrf> lisp, haskell, python, java
Kricir has quit [Ping timeout: 260 seconds]
<RubyPanther> Larry Wall said Haskell is a language by geniuses, for geniuses.
<centrx> I thought Java called them Arrays
sdwrage has joined #ruby
felipe has joined #ruby
<centrx> C calls them arrays
<RubyPanther> Perl distinguishes between lists and arrays
<benzrf> c calls arrays arrays
<centrx> C programmers call arrays arrays
<benzrf> it does not call lists arrays
mary5030 has joined #ruby
<benzrf> ruby, tho, calls lists arrays
<RubyPanther> In Perl you can't call a list an array, but an array is a type of list
<havenwood> benzrf: You mean they call Arrays lists?
mary5030 has quit [Remote host closed the connection]
<benzrf> no, ruby calls lists arrays
<centrx> What do you think is the difference?
<havenwood> benzrf: no ruby calls arrays arrays
<RubyPanther> Ruby has lists. For example, argument lists.
dik_dak has quit [Quit: Leaving]
Aryasam has joined #ruby
Cache_Money has joined #ruby
<centrx> They are arrays. Lisp and Haskell might do something special as functional languages. Python renamed everything to try to be cool. Java calls them arrays I thought.
<RubyPanther> list assignment: a,b,c = 1,2,3
<benzrf> java calls arrays arrays
<benzrf> and lists lists
sparrovv has joined #ruby
<benzrf> it does not call lists arrays and it does not call arrays lists
<RubyPanther> Perl is very literal about lists and arrays, too
<RubyPanther> The problem is that it creates too much opportunity for cleverness.
iamdoo2 has joined #ruby
tonni has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 260 seconds]
Steve445 has quit [Quit: Steve445]
aspires has joined #ruby
AlecTaylor has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<centrx> benzrf, I am not clear on the difference. If an array is only an array if it occupies contiguous memory, that seems an odd distinction for any high level language.
<centrx> benzrf, If an array must only contain objects of the same static data type, that doesn't seem relevant for a dynamic language.
sparrovv has quit [Ping timeout: 252 seconds]
jlast has quit [Remote host closed the connection]
<benzrf> an array is a structure of constant length without insertion or deletion
jonathanwallace has joined #ruby
<benzrf> a list is a more general structure that includes almost any kind of sequence afaik
<benzrf> i think it might require insertion but im not sure
localadmin has joined #ruby
makara has joined #ruby
subbyyy has joined #ruby
yasushi has joined #ruby
Salve has joined #ruby
<centrx> As I recall, C always allowed inserting and deleting from an array with malloc
<centrx> and C99 apparently defines variable-length arrays
kevinykchan has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
yacks has joined #ruby
<benzrf> inserting and deleting from an array with malloc?
sensen has quit [Ping timeout: 272 seconds]
<benzrf> wat
<centrx> and Perl arrays allow insertion and deletion
<benzrf> anyway imo array refers to the concrete data structure as seen in centrx
<benzrf> *C
<benzrf> and if that's meaningless in HLLs, then dont call things in HLLs arrays!
<centrx> So I'd say C and Perl outweight Java and Python
vlad_starkov has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 260 seconds]
<benzrf> C doesn't call lists arrays though
<benzrf> and i dont think perl does?
<centrx> They are called arrays
<centrx> That is the contiguous memory definition
<benzrf> yes.
<benzrf> because thats what an array is
<benzrf> o_O
<centrx> But you said it was the insertion and deletion, not fixed length
<benzrf> what?
Aryasam has joined #ruby
<centrx> "an array is a structure of constant length without insertion or deletion"
<centrx> Not necessary about the memory being contiguous
<centrx> necessarily
yasushi has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
<RubyPanther> "concrete" is not a clear term
<centrx> Wikipedia is really not a good source
<benzrf> why, because it disagrees iwth you?
<benzrf> ;p
<benzrf> 1. a list is an ordered data structure that can have repeatable elements
<benzrf> 2. an array is a kind of list that is implemented with contiguous memory
Aryasam_ has joined #ruby
<centrx> It says right at the top of the "Array data structure" article:
<centrx> "Not to be confused with Array data type."
<benzrf> o i did not see
<benzrf> let me look
<RubyPanther> It redirects, but is covering a linked list
<RubyPanther> "In computer science, an array type is a data type that is meant to describe a collection of elements (values or variables), each selected by one or more indices (identifying keys) that can be computed at run time by the program. "
Salve has quit [Ping timeout: 248 seconds]
<centrx> " In some contexts, such as in Lisp programming, the term list may refer specifically to a linked list rather than an array."
localadmin has quit [Quit: localadmin]
aryaching has joined #ruby
Aryasam_ has quit [Client Quit]
Aryasam has quit [Ping timeout: 260 seconds]
anarang has joined #ruby
angusiguess has joined #ruby
mary5030 has quit [Remote host closed the connection]
aspires has quit []
okinomo has joined #ruby
<centrx> Looks like Delphi/Object Pascal has dynamic-length arrays too
<centrx> More Wikipedia :)
<benzrf> hrmmm
aspires has joined #ruby
gilest has joined #ruby
<centrx> My feeling is "List" has always meant "Linked List" or the syntactic ephemeral list like in a list of method arguments
<centrx> and Java and Python are just silly
geggam has quit [Remote host closed the connection]
<benzrf> objectionnn
<benzrf> uh
<benzrf> ur mom!!
<centrx> My mom has cancer and still was able to beat up your mom
MatthewsFace has quit [Quit: This computer has gone to sleep]
<centrx> I withdraw my previous statement.
carif has quit [Ping timeout: 260 seconds]
angusiguess has quit [Ping timeout: 272 seconds]
rjhunter has quit [Remote host closed the connection]
* centrx is shocked that he agrees with RubyPanther on something
AlexRussia has joined #ruby
gilest has quit [Ping timeout: 265 seconds]
<centrx> Welp, my work at crushing souls and spirits appears to have done its work here.
centrx has left #ruby ["Leaving"]
centrx has joined #ruby
MatthewsFace has joined #ruby
slowcon has quit [Quit: slowcon]
Salve has joined #ruby
<benzrf> hehehe
<benzrf> w/ my ruby text object plugin for vim a ruby block is 'r'
<benzrf> and i just yanked a method
<benzrf> so i typed 'yar'
<benzrf> idk i thought of pirates
Celm has quit []
nobitanobi has quit [Remote host closed the connection]
aspires has quit []
davedev24 has quit []
JasmeetQA has joined #ruby
sensen has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
mjs2600 has joined #ruby
Hobogrammer has joined #ruby
flowerhack is now known as hoypriest
OdNairy has joined #ruby
<centrx> Ahoy matey
AlexRussia has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
krz has joined #ruby
mjs2600 has quit [Ping timeout: 260 seconds]
hermanmunster has joined #ruby
aryaching has quit []
aspires has joined #ruby
jonah_k has quit [Remote host closed the connection]
nisstyre has quit [Quit: WeeChat 0.4.3]
vlad_starkov has joined #ruby
yfeldblum has quit [Remote host closed the connection]
angusiguess has joined #ruby
gengis has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
arashb has joined #ruby
funburn has quit [Quit: funburn]
serp` has joined #ruby
mgberlin has joined #ruby
<pontiki_> avast ye swabs
leslie2 has joined #ruby
dpswireless has joined #ruby
jack_rabbit has joined #ruby
Virtualize|away has quit [Quit: Leaving...]
angusiguess has quit [Ping timeout: 252 seconds]
funburn has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
<havenwood> here's luck 'n a fair wind t' ye
cj3kim has quit [Remote host closed the connection]
<riking_> should I ask all clients to refresh when the admin changes the locale
<riking_> err, I guess this is kinda the wrong channel
marcdel has joined #ruby
nisstyre has joined #ruby
Kricir has joined #ruby
amclain has quit [Quit: Leaving]
codezomb has joined #ruby
aryaching has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
Kricir has quit [Ping timeout: 252 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
rjhunter has joined #ruby
<pontiki_> just amended my scrapers to include ruby tapas and manning books
joelroa has joined #ruby
chipotle has quit [Quit: cya]
nisstyre has joined #ruby
nisstyre has quit [Client Quit]
nisstyre has joined #ruby
venkat has joined #ruby
ultraflash3 has joined #ruby
yacks has quit [Read error: Connection reset by peer]
Xiti has quit [Quit: Leaving]
arashb has quit [Remote host closed the connection]
joelroa has quit [Read error: Operation timed out]
nisstyre has quit [Client Quit]
tagrudev has joined #ruby
coderhs has quit [Ping timeout: 265 seconds]
noop has joined #ruby
nisstyre has joined #ruby
mgberlin has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
sski has joined #ruby
pigzzcan_ has joined #ruby
lsmola has joined #ruby
pigzzcanfly has quit [Ping timeout: 252 seconds]
lsmola has quit [Remote host closed the connection]
lsmola has joined #ruby
leslie2 has left #ruby [#ruby]
jackneill has joined #ruby
budrose has quit [Remote host closed the connection]
firefly20131 has quit [Quit: Leaving.]
marcdel has quit [Ping timeout: 252 seconds]
Skelz0r has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
sski has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
anarang has quit [Quit: Leaving]
sski has joined #ruby
zeade has quit [Quit: Leaving.]
venkat has quit []
roolo has joined #ruby
<benzrf> ok i got fed up with all this waffling about schemas
<benzrf> and i just wrote my own validator
<benzrf> it is used like this:
jprovazn has joined #ruby
yfeldblum has joined #ruby
<centrx> tuple!?
yfeldblum has quit [Remote host closed the connection]
<centrx> array, list, tuple, where does it end!?
funburn has quit [Quit: funburn]
yfeldblum has joined #ruby
<benzrf> :)
<benzrf> in this case tuple just refers to a heterogeneous array of fixed length
<benzrf> i.e. tuple(1, String) would match [1, "foo"]
Ch4rAss has joined #ruby
<benzrf> whereas array_of is for heterogenous arrays of arbitrary length
<benzrf> *homogeneous
timonv has quit [Remote host closed the connection]
riceandbeans has joined #ruby
pigzzcan_ has quit [Remote host closed the connection]
<riceandbeans> anyone heard of padrino and goliath?
<Nyyx> it seems that if I want to use ruby without rails, that is ruby for other applications besides webs, I have to use jruby and leverage java libraries
pigzzcanfly has joined #ruby
<riceandbeans> no
<riceandbeans> don't talk like that
<riceandbeans> there is definitely ruby outside of rails
<Nyyx> I wonder if that is because jruby exists or simply that ruby was never popular for that sort of stuff anyway
<riceandbeans> and jvm is garbage
<Nyyx> I like the jvm
anarang has joined #ruby
<riceandbeans> ruby never caught on as much in the main market because MRI wasn't as fast until YARV
gnephiak has joined #ruby
dukz has quit [Remote host closed the connection]
<riceandbeans> ruby's strength is its elegance and tight community
ultraflash3 has quit [Remote host closed the connection]
rhys has joined #ruby
rjhunter has quit [Remote host closed the connection]
carlyle has joined #ruby
<riceandbeans> why would you like the jvm?
nichtdiebohne has joined #ruby
_5kg has quit [Read error: Connection reset by peer]
<hermanmunster> i first got into ruby because of how disgusting Java was (still is. Saw some today... Ew!)
<riceandbeans> it's a universal security vulnerability at best that leaks like a 70 year old pipe
dukz has joined #ruby
_5kg has joined #ruby
<Nyyx> well there's no tight community around language processing, gnome/linux desktop apps, numerical and scientific computing, etc. in ruby
<riceandbeans> hermanmunster: if we're doing confessions, I used to be a VB programmer many moons ago, that is eww
<Nyyx> and the jvm is fast, the bytecode is easily understandable, it's extremely portable, there are tons of _stable_ java libraries
<hermanmunster> riceandbeans: me too, long long ago
<riceandbeans> Nyyx: portable is a harsh word for java
<riceandbeans> it exposes 0 days on anything it touches
<riceandbeans> I don't even allow java on my systems
<riceandbeans> I'm very anti java
<riceandbeans> anti oracle
<hermanmunster> Nyyx: everytime I go near a java project, some clown (or a bunch of them) have over-engineered it.
<Nyyx> Im not saying java
<Nyyx> I'm saying jvm
<Nyyx> jvm is not java
<hermanmunster> fair point.
<Nyyx> jruby, clojure, and scala may run on jvm alongside java
sawtooth1 has quit [Ping timeout: 260 seconds]
OdNairy has quit []
<riceandbeans> jvm is just a host language masquerading as java in a VM on any OS that supports it
<hermanmunster> put it this way. in my experiments with jruby and clojure I quickly ran into Java
<Nyyx> riceandbeans: there are open implementations of jvm you know
OdNairy has joined #ruby
<hermanmunster> which i really don't like.
sawtooth has joined #ruby
<riceandbeans> to be compatible with jvm code they expose themselves to the same security and memory issues
<hermanmunster> so i just stay away from the JVM wherever possible. Java keeps leaking back at me.
Guest81856 is now known as bhaak
<riceandbeans> Nyyx: if it works for you, I'm happy for you
<hermanmunster> me too :)
larsam has quit [Quit: larsam]
<riceandbeans> I'm the weirdo where I'm at though
<riceandbeans> everyone else around me praises java and jvm, loves mysql
<riceandbeans> I hate java and jvm, I encourage postgresql
<Nyyx> and most of these java exploits are through browser plugins
<riceandbeans> I was a debian guy in a sea of redhat
carlyle has quit [Remote host closed the connection]
<Nyyx> I don't remember the last I've seen anyone used java applets
<Nyyx> soo....
<riceandbeans> Nyyx: and possessing a jvm makes you vulnerable
<riceandbeans> if you don't have a jvm, you are safe
<Nyyx> that's like saying
<riceandbeans> java is a parasite that needs a host
<Nyyx> if you own a computer
<Nyyx> you are vulnerable
<riceandbeans> if you don't grant it a host, it dies
<Nyyx> if you dont have one, you are safe
<hermanmunster> Nyyx: yes, you're right. the applet container is usually the point of entry.
wchun has joined #ruby
<riceandbeans> an OS does not need java
Kricir has joined #ruby
<riceandbeans> but yeah, I've moved to the BSD side now
casheew_ has quit [Read error: Connection reset by peer]
casheew has joined #ruby
leslie2 has joined #ruby
<riceandbeans> Nyyx: any time I've been to a page with an applet I get warnings about how nothing will work because I 'need' java
gja has joined #ruby
<riceandbeans> so I just go elsewhere
sensen has quit [Ping timeout: 248 seconds]
<riceandbeans> to get me someone will need a slighly better attack vector
yacks has joined #ruby
_tickez has quit [Read error: Connection reset by peer]
<Nyyx> I have always had java installed on my computers
<Nyyx> I have never once clicked a java applet or thought I needed to enable it
dukz has quit [Remote host closed the connection]
<Nyyx> they are disabled by default in my browsers
rhys has quit [Ping timeout: 265 seconds]
yeticry has quit [Read error: Connection reset by peer]
dukz has joined #ruby
sensen has joined #ruby
yeticry has joined #ruby
<riceandbeans> you assume java will ever respect your wishes
<riceandbeans> it's built to not do that
dukz_ has joined #ruby
<riceandbeans> it's built to exist as a backdoor into all OSes
<Nyyx> x.x
angusiguess has joined #ruby
dukz has quit [Read error: Connection reset by peer]
* riceandbeans hands Nyyx a tin foil hat
klaut has joined #ruby
aganov has joined #ruby
aspires has quit []
evenix has joined #ruby
havenwood has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 260 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
<shevy> finally a hat for his penis
zono has joined #ruby
evenix has quit [Ping timeout: 248 seconds]
<shevy> people who love java are very suspicious
Salve has quit [Remote host closed the connection]
Salve has joined #ruby
LinuxKorn has joined #ruby
<centrx> I have heard that Java can damage minds
<centrx> Even PHP does not do that, because it is so obviously bogus
dukz_ has quit [Remote host closed the connection]
gilest has joined #ruby
<shevy> hmm
<shevy> PHP is weird
<shevy> I think it is not really a programming language
bbloom has quit [Ping timeout: 265 seconds]
dukz has joined #ruby
<centrx> PHP is an abomination and a scourge on the face of the earth.
<shevy> lately the php devs changed some default in regards to serving errors
riking_ is now known as Riking
Riking has quit [Changing host]
Riking has joined #ruby
bal has joined #ruby
<shevy> someone I know from #emn complained that this now serves "blank pages"
dukz has quit [Read error: Connection reset by peer]
<shevy> and there was no understandable need for the change, so he ranted against the php devs. it was both sad and kind of amusing at the same time
dukz has joined #ruby
<centrx> I have heard horrible things about the PHP devs that you would not tell children
<shevy> are you a little overdramatzing ;)
<Nyyx> shevy: jvm..
foooobear has joined #ruby
dukz_ has joined #ruby
<shevy> Nyyx yeah, jvm is a nice idea
<Nyyx> I don't particularly like java
Salve has quit [Ping timeout: 248 seconds]
<shevy> but you need java for jvm! :(
<Nyyx> no
evenix has joined #ruby
<shevy> no?
<Nyyx> you can use clojure
<Nyyx> or scala
<Nyyx> or jruby
<Nyyx> or groovy
<shevy> hey
joelroa has joined #ruby
<shevy> that needs java
<Nyyx> no?
<shevy> I am pretty sure you can't use jruby without java
<Nyyx> they generate straight to bytecode
lolmaus has quit [Ping timeout: 260 seconds]
evenix has quit [Read error: Connection reset by peer]
<centrx> It is Java bytecode, maybe it is a layer of sanity
evenix has joined #ruby
<shevy> well, if there is the jvm without java then this is a good thing
<benzrf> ima sleep now
<benzrf> good bye
benzrf has left #ruby [#ruby]
<shevy> yes
<shevy> sleep and go away :>
<shevy> benzrf is so hyperactive
<Nyyx> I think I tripped and fell into the looney bin
evenix has quit [Read error: Connection reset by peer]
<shevy> every year a new language, and he abandons the old one
<centrx> #ruby seems to attract flame wars, very high quality flame wars
agjacome has quit [Ping timeout: 265 seconds]
<shevy> we just mention inferior languages
evenix has joined #ruby
<shevy> there is not much to flame here
robbyoconnor has joined #ruby
<shevy> unless you point out that ruby is slow
evenix has quit [Read error: Connection reset by peer]
<Riking> CODE CHALLENGE: Generate an understandable sentence
<Riking> (any language)
gilest has quit [Remote host closed the connection]
cj3kim has joined #ruby
<shevy> Riking likes angry girls.
evenix has joined #ruby
<shevy> put a puts before and this in "" quotes
dukz has quit [Ping timeout: 252 seconds]
<shevy> in java it will probably require 5 additional lines of code
<Riking> Rules: 1. Hard-coding the sentences is not permitted, and nor is reading them directly from a file (i'm looking at you, unclemeat)
evenix has quit [Read error: Connection reset by peer]
<shevy> what exactly means hard coding
evenix has joined #ruby
<shevy> there must be a translation table somewhere to map to the characters
<Riking> Rule 2: You can have any number of word lists
evenix has quit [Read error: Connection reset by peer]
<shevy> how is that not hard coding
<Nyyx> Riking: generate an understandable sentence using what as input?
<Nyyx> random?
<Nyyx> user?
<Riking> yea, no interactive input
evenix has joined #ruby
<Nyyx> so random?
pigzzcanfly has quit [Remote host closed the connection]
<Riking> ... Yea
<Riking> look at the link for real rules
ilyam has quit [Quit: ilyam]
yeboot has quit [Quit: leaving]
dukz_ has quit [Remote host closed the connection]
dukz has joined #ruby
joelroa has quit [Ping timeout: 272 seconds]
gengis has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
<Nyyx> rules arent worded very well
<Riking> I think they assume some of the community consensus on that site
<Riking> like the definition of hardcoded
<Nyyx> it's been 20 mins now waiting for 1.9.3 to install through rvm
<Riking> Why not 2.1.0 :P jk
<centrx> Nyyx, Disable rdoc generation
kevinykchan has joined #ruby
evenix has quit [Ping timeout: 248 seconds]
carlyle has joined #ruby
axl_ has quit [Quit: axl_]
claymore has joined #ruby
evenix has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
barratt has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
thomasxie has quit [Ping timeout: 272 seconds]
m1lt0n has joined #ruby
hoelzro has quit [Ping timeout: 245 seconds]
coderhs has joined #ruby
hoelzro has joined #ruby
DarkFoxDK has quit [Ping timeout: 265 seconds]
carlyle has quit [Ping timeout: 240 seconds]
evenix has quit [Ping timeout: 265 seconds]
evenix has joined #ruby
DarkFoxDK has joined #ruby
firefly2013 has joined #ruby
yarou has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
NovapaX has joined #ruby
axl_ has joined #ruby
joelroa has joined #ruby
evenix has quit [Ping timeout: 252 seconds]
waheedi has quit [Ping timeout: 260 seconds]
evenix has joined #ruby
havenwood has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
<Nyyx> ERROR: Could not find a valid gem 'wxruby' (= 2.0.1), here is why:
<Nyyx> Found wxruby (2.0.1), but was for platforms x86-linux ,x86-mswin32-60 ,universal-darwin-9 ,x86-mingw32
tungd has quit [Ping timeout: 252 seconds]
<Nyyx> for some reason the above wasnt working and I thought I would try 1.9.3 to see if it does
<centrx> Are you running Ruby on MIPS?
mocfive has quit [Remote host closed the connection]
<Nyyx> idk why universal-darwin-9 doesnt work on my mac with mavericks
tungd has joined #ruby
mocfive has joined #ruby
bigkevmcd has quit [Remote host closed the connection]
waheedi has joined #ruby
deadlock has joined #ruby
bigkevmcd has joined #ruby
evenix_ has joined #ruby
evenix has quit [Ping timeout: 248 seconds]
hiall has quit [Quit: hiall]
davidcollom_ is now known as davidcollom
Lewix has quit [Remote host closed the connection]
mocfive has quit [Ping timeout: 252 seconds]
tungd has quit [Ping timeout: 252 seconds]
plotter has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
ephemerian has joined #ruby
evenix_ has quit [Ping timeout: 252 seconds]
certaint1 is now known as certainty
evenix has joined #ruby
pigzzcanfly has joined #ruby
andikr has joined #ruby
grzywacz has joined #ruby
sikor_sxe has joined #ruby
hiall has joined #ruby
dingus_khan has joined #ruby
joelroa_ has joined #ruby
joelroa_ has quit [Max SendQ exceeded]
speakingcode has quit [Ping timeout: 248 seconds]
pierre1_ has quit [Read error: Operation timed out]
joelroa_ has joined #ruby
<Atww> anyone run into " rbenv rehash
<Atww> rbenv: cannot rehash: /usr/local/rbenv/shims/.rbenv-shim exists "
evenix has quit [Ping timeout: 260 seconds]
havenwood has quit [Ping timeout: 252 seconds]
evenix has joined #ruby
zigomir has joined #ruby
joelroa has quit [Ping timeout: 260 seconds]
thomasxie has joined #ruby
speakingcode has joined #ruby
_Andres has joined #ruby
mjs2600 has joined #ruby
Gooder has joined #ruby
carlyle has joined #ruby
evenix has quit [Ping timeout: 252 seconds]
joelroa_ has quit [Ping timeout: 252 seconds]
predator117 has quit [Ping timeout: 260 seconds]
mjs2600 has quit [Ping timeout: 252 seconds]
evenix has joined #ruby
dingus_khan has quit [Remote host closed the connection]
Ch4rAss` has joined #ruby
pagioss has joined #ruby
roolo has quit [Quit: Leaving...]
carlyle has quit [Ping timeout: 240 seconds]
io_syl has quit []
<shevy> not me, I can avoid it by not using rbenv
Ch4rAss has quit [Ping timeout: 252 seconds]
evenix has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
joelroa has joined #ruby
Hobogrammer has joined #ruby
marcdel has joined #ruby
predator117 has joined #ruby
Kricir has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
angusiguess has quit [Ping timeout: 248 seconds]
aryaching has joined #ruby
b00stfr3ak has quit [Read error: Operation timed out]
kyuusenichi has joined #ruby
einarj has joined #ruby
dukz has joined #ruby
<Atww> shevy I think I solved it. It was a write permission issue because the folder was owned by root.
<ceej> is there a way to get the datetime a folder was modified? I know for file it's ctime....
dukz has quit [Remote host closed the connection]
barratt has quit [Ping timeout: 272 seconds]
dukz has joined #ruby
armyriad has joined #ruby
rezzack has quit [Quit: Leaving.]
joelroa has quit [Ping timeout: 260 seconds]
einarj has quit [Ping timeout: 260 seconds]
jhass|off is now known as jhass
pigzzcanfly has quit [Remote host closed the connection]
pigzzcanfly has joined #ruby
meatherly has joined #ruby
<centrx> ceej, A directory is a file
<centrx> in Unix
AxonetBE has joined #ruby
einarj has joined #ruby
barratt has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
_2_LuLy182 has joined #ruby
_2_LuLy182 has quit [Client Quit]
blaxter_ has joined #ruby
meatherly has quit [Ping timeout: 260 seconds]
ocx has joined #ruby
<ocx> hi all what is the difference between these? http://pastie.org/8754715
<ocx> they return different outputs
Fractional has joined #ruby
<Fractional> Hello. Could someone of you look over my map and tile loading methods? I think there is a better way to do this.
<ocx> i understood that map is built on top of each
joelroa has joined #ruby
joelroa has quit [Max SendQ exceeded]
<centrx> ocx, map returns a new array containing the output of the blocks for each element as the elemnets of the new array
joelroa has joined #ruby
<tobiasvl> FINALLY ruby 2.0 on my workstation! Fedora 20 > RHEL 6
<centrx> ocx, each happens to return the old array, but it is never used that way
<ocx> centrx: why does it return the old array
gengis has joined #ruby
SolarSailor has joined #ruby
<centrx> ocx, Each loops through "each" of the elements in the array and does something based on them. It might as well return "nil"
<centrx> ocx, Map _maps_ each element in the old array to new values resulting in a new array
<ocx> centrx: yea so each runs on each element and should increment the value and return to b element no?
Fractional has quit [Remote host closed the connection]
Atww has quit [Ping timeout: 248 seconds]
<centrx> ocx, elt+1 is not an increment
<centrx> ocx, elt+1 simply returns elt+1 without changing elt
<ocx> ok so map captures the return of the block and store in element of b, where as each does no capture the return of the block correct centrx ?
kyuusenichi has quit [Quit: Leaving]
<centrx> right
<ocx> thank you
dingus_khan has joined #ruby
gengis has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
echevemaster has quit [Quit: Leaving]
Wolland has joined #ruby
mikecmpbll has joined #ruby
dingus_khan has quit [Ping timeout: 252 seconds]
aspiers has joined #ruby
joelroa has quit [Read error: Operation timed out]
Wolland has quit [Ping timeout: 252 seconds]
colli5ion has joined #ruby
centrx has quit [Quit: Leaving]
skaflem has joined #ruby
weeeems is now known as weems
wookiehangover has quit [Ping timeout: 252 seconds]
weems has quit [Changing host]
weems has joined #ruby
Penetrator has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
canton7 has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has quit [Quit: i've nodded off.]
chipotle has joined #ruby
pigzzcanfly has joined #ruby
blackmesa has joined #ruby
ocx has quit [Ping timeout: 245 seconds]
cj3kim has quit [Remote host closed the connection]
nvrch has joined #ruby
TripTastic has joined #ruby
deadlock has quit [Ping timeout: 252 seconds]
ultraflash3 has joined #ruby
havenwood has joined #ruby
bandsaw1961 has joined #ruby
JBreit has quit [Ping timeout: 260 seconds]
cj3kim has joined #ruby
camilasan has joined #ruby
TripTastic is now known as JBreit
twason has joined #ruby
asmodlol has joined #ruby
bandsaw1961 has quit [Read error: Operation timed out]
mikecmpbll has joined #ruby
twason has left #ruby [#ruby]
okinomo has quit [Quit: Lost terminal]
ultraflash3 has quit [Ping timeout: 260 seconds]
havenwood has quit [Ping timeout: 272 seconds]
tesuji has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
gengis has joined #ruby
olivier_bK has joined #ruby
intuxicated has joined #ruby
canton7-mac has joined #ruby
carlyle has joined #ruby
klaut has quit [Remote host closed the connection]
marcdel has quit []
roolo has joined #ruby
joonty_ is now known as joonty
poulson has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
popl has joined #ruby
popl has joined #ruby
carlyle has quit [Ping timeout: 240 seconds]
plexus_ has joined #ruby
gengis has quit [Ping timeout: 252 seconds]
Azulinho has quit [Ping timeout: 252 seconds]
ikaros has joined #ruby
angusiguess has joined #ruby
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subbyyy has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
sentinal8473 has joined #ruby
dangerousdave has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
sentinal8473 has quit [Read error: Connection timed out]
Olipro has joined #ruby
claymore has quit [Quit: Leaving]
prc has joined #ruby
workmad3 has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
elaptics`away is now known as elaptics
Kricir has joined #ruby
nhhagen has joined #ruby
GreatSUN has quit [Quit: Page closed]
meatherly has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Matriks has joined #ruby
plexus_ has quit [Ping timeout: 248 seconds]
xjiujiu has joined #ruby
yasushi has joined #ruby
SolarSailor has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
Slavox has quit [Quit: ..Whoops]
asmodlol has quit [Remote host closed the connection]
TMM has joined #ruby
meatherly has quit [Ping timeout: 272 seconds]
joelroa has joined #ruby
Zunonia has quit [Quit: Computer has gone to sleep.]
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderhs has quit [Ping timeout: 272 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yasushi has quit [Remote host closed the connection]
relix has joined #ruby
Jemboh has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
yasushi has joined #ruby
joelroa has quit [Ping timeout: 260 seconds]
plexus_ has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
napcae_ has joined #ruby
sk87 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
napcae_ has quit [Client Quit]
serp` has quit [Quit: serp`]
speakingcode has quit [Ping timeout: 248 seconds]
fdsCI has joined #ruby
fdsCI has left #ruby [#ruby]
mengu has joined #ruby
speakingcode has joined #ruby
Fire-Dragon-DoL has joined #ruby
ocx has joined #ruby
<ocx> every time we have a " " we have a string interpolation and to_s is called?
vlad_starkov has quit [Remote host closed the connection]
bleak has quit [Ping timeout: 272 seconds]
klaut has joined #ruby
vlad_starkov has joined #ruby
<canton7-mac> you mean, with "#{foo}", is foo.to_s called? yes
pi___ has joined #ruby
<ocx> print a also calls a.to_s ?
bluenemo has joined #ruby
ayaz has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<tobiasvl> yes, ocx
<tobiasvl> "Objects that aren’t strings will be converted by calling their to_s method."
Kneferilis has joined #ruby
timonv has quit [Remote host closed the connection]
jackneill has quit [Quit: WeeChat 0.4.3]
sski has quit [Remote host closed the connection]
jackneill has joined #ruby
sski has joined #ruby
Azulinho has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.2]
alexherbo2 has joined #ruby
Findegil has quit [Ping timeout: 248 seconds]
sski has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
Findegil has joined #ruby
nhhagen has quit [Remote host closed the connection]
alexherbo2 has quit [Ping timeout: 265 seconds]
kevinykchan has joined #ruby
srji_ has quit [Quit: leaving]
bobdobbs has joined #ruby
srji has joined #ruby
sski has joined #ruby
phansch has joined #ruby
hiall has quit [Quit: hiall]
cephalostrum has quit [Ping timeout: 252 seconds]
zono has quit [Read error: Connection reset by peer]
torstein has joined #ruby
timonv has joined #ruby
LinuxKorn has quit [Quit: Leaving]
zono has joined #ruby
anfr has joined #ruby
mjs2600 has joined #ruby
dukz_ has joined #ruby
zono has quit [Client Quit]
matti_ has quit [Quit: Reconnecting]
coderhs has joined #ruby
matti_ has joined #ruby
coderhs has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ocx has quit [Ping timeout: 245 seconds]
deadlock has joined #ruby
gozali has quit [Remote host closed the connection]
carlyle has joined #ruby
dukz has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
gengis has joined #ruby
mjs2600 has quit [Ping timeout: 260 seconds]
speakingcode has quit [Ping timeout: 252 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
cephalostrum has joined #ruby
ItSANgo has quit [Quit: Leaving...]
vcoinminer is now known as vcoinminer_rock
vlad_starkov has joined #ruby
ocx has joined #ruby
<ocx> what is the difference between these ? http://pastie.org/8754986 i understand that a method can end with a = why arent they returning the same results?
vcoinminer_rock is now known as vcoinminer
carlyle has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
<tobiasvl> ocx: methods that end in = return the right hand side (the argument)
gengis has quit [Ping timeout: 272 seconds]
<tobiasvl> so that they can be chained like this: x = sum_add = 2
<tobiasvl> ( sum_add=(2) is the same as sum_add = 2 )
<canton7-mac> I suspect it's a bit of magic to save you having to remember the return the value of the RHS when implementing a method which ends in =
<canton7-mac> s/the return/to return
<ocx> so methods ending with = cannot return multiple results
angusiguess has joined #ruby
relix has joined #ruby
felipecvo has joined #ruby
<tobiasvl> ocx: yes it can, if you explicitly return the value
<canton7-mac> If you wrote a method which did that, and I tried to use it in a chain of assignments (see tobiasvl), I'd really hate you :P
<tobiasvl> >> def sum_add=(x); return [x+1,x*2]; end
<eval-in_> tobiasvl => :sum_add= (https://eval.in/104070)
<tobiasvl> >> def sum_add=(x); return [x+1,x*2]; end; sum_add = 2
<eval-in_> tobiasvl => 2 (https://eval.in/104071)
<tobiasvl> >> def sum_add=(x); return [x+1,x*2]; end; sum_add=(2)
<eval-in_> tobiasvl => 2 (https://eval.in/104072)
<tobiasvl> wtf #worksforme
<tobiasvl> no sorry, i called the other method. more coffee for me
lolmaus has joined #ruby
<canton7-mac> if it returns some custom value, it really shouldn't be an assignment ;)
yasushi has quit [Remote host closed the connection]
<certainty> still it's interesting why that happens
cj3kim has quit [Remote host closed the connection]
czardoz has joined #ruby
czardoz has left #ruby [#ruby]
abunchofdollarsi has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
<tobiasvl> it would be horrible if `foo = 2` returned "bar"
<abunchofdollarsi> yaml/marshal neither support serialization of the identity of the object? ie two objects have references to the same third object and this invariant will hold after I unserialize them.
kennym has joined #ruby
mengu has quit [Remote host closed the connection]
kennym has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
ahawkins has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
zeeraw has joined #ruby
grzywacz has quit [Ping timeout: 272 seconds]
shiin has joined #ruby
Kricir has joined #ruby
radic has quit [Ping timeout: 260 seconds]
radic has joined #ruby
thesheff17 has quit [Ping timeout: 260 seconds]
meatherly has joined #ruby
havenwood has quit []
[gmi] has joined #ruby
jack_rabbit has quit [Quit: SIGSEGV (core dumped)]
nhhagen has joined #ruby
jack_rabbit has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
heftig has joined #ruby
pabloh has joined #ruby
dukz_ has quit [Read error: Connection reset by peer]
dukz has joined #ruby
Jeff_D has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
anfr has left #ruby [#ruby]
_root has joined #ruby
kayamm has joined #ruby
<shiin> I want to get into shell scripting with ruby, I write scripts in my day to day work, often less than 200 lines, but Im not happy with /bin/sh|bash|zsh - are there any workflow proposals, frameworks or tools to use? or what to avoid? example projects covering the matter?
gbt has joined #ruby
<shiin> oh, and testing is fun too. I just dont have any experience with behavior driven/specs aside from reading a lot.
meatherly has joined #ruby
kitak_ has quit [Remote host closed the connection]
jzig has quit [Remote host closed the connection]
nhhagen_ has joined #ruby
jzig has joined #ruby
ItSANgo has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
<certainty> tobiasvl: yeah that would be weired and wrong for all sane definitions of assignment, but should it really be impossible?
RoxasShadowRS has joined #ruby
thejoecarroll is now known as thejoecarroll_zz
klaut has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 248 seconds]
dukz has quit []
nhhagen_ has quit [Ping timeout: 252 seconds]
jzig has quit [Ping timeout: 265 seconds]
xbob has joined #ruby
fridim_ has joined #ruby
thejoecarroll_zz is now known as thejoecarroll
randomnick_ has joined #ruby
xBradPittx has quit [Read error: Connection reset by peer]
xue has quit [Quit: Leaving]
xBradPittx has joined #ruby
nhhagen has joined #ruby
Authenticator has quit [Ping timeout: 248 seconds]
gnephiak has quit [Remote host closed the connection]
hamakn_ has quit [Remote host closed the connection]
Kelgors has joined #ruby
xBradPittx has quit [Ping timeout: 272 seconds]
_root has quit [Quit: Leaving]
<jacobat> Is it somehow possible to convert "[1, 2, 3].select{|number| number % 2 == 0}" into "[1, 2, 3].select EvenFilter.new" or something like that?
napcae has joined #ruby
cj3kim has joined #ruby
yfeldblum has joined #ruby
DaniG2k has joined #ruby
AlexRussia has joined #ruby
gnephiak has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
mengu has joined #ruby
cj3kim has joined #ruby
<canton7-mac> jacobat, http://pastie.org/8755089
cj3kim has quit [Read error: Connection reset by peer]
Authenticator has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo has joined #ruby
cj3kim has joined #ruby
LiohAu has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 265 seconds]
cj3kim has quit [Read error: Connection reset by peer]
hiall has joined #ruby
ultraflash3 has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
tvw has joined #ruby
kaliya has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
ultraflash3 has quit [Ping timeout: 252 seconds]
habanany has joined #ruby
xbob has left #ruby ["Leaving"]
gnephiak has quit [Remote host closed the connection]
carlyle has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<apeiros> jacobat, canton7-mac: http://pastie.org/8755132
jack_rabbit has quit [Ping timeout: 260 seconds]
poulson has quit [Read error: Connection reset by peer]
<canton7-mac> apeiros, much nicer!
<apeiros> jacobat, canton7-mac: also worth consideration: http://pastie.org/8755136
<apeiros> canton7-mac: I mainly posted it because that allows to use object state, the module version doesn't
<canton7-mac> true
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
gengis has joined #ruby
habanany has left #ruby [#ruby]
carlyle has quit [Ping timeout: 240 seconds]
obs has joined #ruby
GinoMan has joined #ruby
maoko has joined #ruby
Nigel_ is now known as G
<jacobat> apeiros, canton7-mac: thanks guys! :)
gengis has quit [Ping timeout: 252 seconds]
thomasxie has quit [Ping timeout: 260 seconds]
pigzzcanfly has joined #ruby
poulson has joined #ruby
ringaroses has joined #ruby
<diegoviola> is this Larry Wall? http://imgur.com/NPbbgAu
<diegoviola> why does he looks crazy?
vlad_starkov has joined #ruby
codeFiend has quit [Quit: codeFiend]
<certainty> diegoviola: it is larry wall
<certainty> because he codes in Perl :D
<certainty> *scnr*
<diegoviola> lol
monkegjinni has joined #ruby
makara has quit [Ping timeout: 272 seconds]
shiin has quit [Read error: Connection reset by peer]
pigzzcanfly has quit [Ping timeout: 252 seconds]
kennym has joined #ruby
Jeff_D has quit [Quit: JMP $]
KarolisNo has joined #ruby
<apeiros> sometimes I wish ruby had the same distinction between undefined and null like javascript does
roolo has quit [Quit: Leaving...]
freerobby has joined #ruby
freerobby has quit [Client Quit]
Kricir has joined #ruby
habanany has joined #ruby
<certainty> apeiros: can you give an example?
ringaroses has quit [Quit: Leaving]
monkegjinni has quit [Remote host closed the connection]
<apeiros> certainty: how would you implement Hash#fetch in pure ruby?
monkegjinni has joined #ruby
makara has joined #ruby
<apeiros> regarding the case of {}.fetch(:a) # !> KeyError, and {}.fetch(:a, nil) # => nil
<apeiros> I know how, but it's ugly.
Kricir has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
deadlock has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
Matriks has quit [Remote host closed the connection]
<apeiros> sooooooooo many tests to write :(
<popl> tests are fun!
<certainty> apeiros: so you want a KeyError if you request the value for a key but didn't supply a default?
<popl> :P
monkegjinni has quit [Ping timeout: 260 seconds]
<certainty> *a key that doesn't exist
<apeiros> certainty: correct
meatherly has joined #ruby
ksevelyar has joined #ruby
<apeiros> popl: want to write them for me?
<apeiros> the groundwork is there…
Jemboh has quit [Read error: Connection reset by peer]
black0ut has joined #ruby
black0ut has quit [Excess Flood]
black0ut has joined #ruby
black0ut has quit [Excess Flood]
black0ut has joined #ruby
black0ut has quit [Excess Flood]
<certainty> apeiros: ok it is ugly. You have to pass *args and check if it's empty or has a value that you can default to. Also you have to check if the key exists explicitely.
black0ut has joined #ruby
black0ut has quit [Remote host closed the connection]
michael_lee has quit [Ping timeout: 252 seconds]
<apeiros> certainty: yupp
<apeiros> certainty: and now for calling that method
<apeiros> you can't pass in a variable at all if you want the KeyError behavior
<apeiros> you need *args there too
meatherly has quit [Ping timeout: 260 seconds]
<certainty> apeiros: hmm i think i don't understand that part
roolo has joined #ruby
black0ut has joined #ruby
black0ut has quit [Excess Flood]
zeeraw has quit [Read error: Connection reset by peer]
<certainty> apeiros: nvm. i think i know what you mean
<popl> apeiros: I'm not sure you want me writing Ruby for you; I'd be willing to give it a shot, though.
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
* popl plays with loaded firearms
<popl> :P
<certainty> if there were an undef value you could have a variable that's either undef or a non bottom value and pass that to fetch
<popl> do people still use minitest?
tonni has joined #ruby
<apeiros> popl: yes. I don't, but I should as it seems. I use Test::Unit and its docs say "If you are writing new test code, please use MiniTest instead of Test::Unit."
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nhhagen has quit [Remote host closed the connection]
joelroa has joined #ruby
<certainty> apeiros: i can't remeber finding myself to want something that is equivalent to a KeyError. Do you have a specific case? Why would you want fetch to bottom out when you can have other sane semantics?
koomerang has joined #ruby
<apeiros> certainty: what semantic would you use then to provide a feature like Hash#fetch?
<apeiros> my use case is precisely that of Hash#fetch, just for Table#row, Table#cell and Row#cell
monkegjinni has joined #ruby
JasmeetQA1 has joined #ruby
joelroa_ has joined #ruby
JasmeetQA1 has quit [Client Quit]
JasmeetQA has quit [Ping timeout: 272 seconds]
<popl> I'm always happy to learn new stuff. apeiros, will you be on around this time tomorrow?
<apeiros> popl: not sure, might be hiking. but when I'm not hiking (or before and after, if I go) I'll be online
plexus_ has quit [Read error: Operation timed out]
krz has quit [Quit: WeeChat 0.4.2]
joelroa has quit [Ping timeout: 260 seconds]
<popl> I have to sleep so I can wake up to go to work but I'll definitely/happily write tests/other sundries.
<apeiros> I think latest I'd be around would be ~1900 UTC
<apeiros> nice
<apeiros> I have almost completed tests for TableData::Table
<apeiros> you could e.g. write tests for Column and Row
Deele has quit [Ping timeout: 260 seconds]
<apeiros> I'll push, so you can see the basic test setup
thejoecarroll is now known as thejoecarroll_zz
<popl> sounds good
kennym_ has joined #ruby
kennym has quit [Ping timeout: 260 seconds]
koomerang has quit []
<popl> see you later, then
popl has quit [Quit: Touch the frog.]
freggles has joined #ruby
joelroa_ has quit [Ping timeout: 252 seconds]
Slavox has joined #ruby
thomasxie has joined #ruby
<apeiros> oh
<apeiros> just wanted to say I pushed. well then :)
<certainty> Hash#fetch can't be passed a variable either for the same reason.
monkegjinni has quit [Remote host closed the connection]
<apeiros> certainty: I know. Which is why I wished for undefined
<apeiros> so you can
<apeiros> or could
ksevelyar has quit [Quit: Page closed]
monkegjinni has joined #ruby
evenix has joined #ruby
kate_r has joined #ruby
lolmaus has quit [Ping timeout: 272 seconds]
kate_r has quit [Max SendQ exceeded]
chipotle has quit [Quit: cya]
koell has joined #ruby
makara has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Ping timeout: 252 seconds]
evenix has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
monkegjinni has joined #ruby
mjs2600 has joined #ruby
sensen has quit [Quit: leaving]
<apeiros> certainty: but I'm still curious as to what the saner semantics would be
carlyle has joined #ruby
lolmaus has joined #ruby
kayamm has quit [Ping timeout: 252 seconds]
ilyam has joined #ruby
<certainty> apeiros: like giving the default then. Having an exception is good where you want your entire program to go bottom (unless you have exception handlers). I haven't yet seen this case as you almost always take care of this in real programs. Giving a default is the same as having a Null-type except that you can specify which values represent an instance of that type. Does that make sense?
kayamm has joined #ruby
mjs2600 has quit [Ping timeout: 260 seconds]
habanany has quit [Read error: Operation timed out]
nhhagen has joined #ruby
Jetchisel has joined #ruby
gengis has joined #ruby
<apeiros> certainty: I don't think it makes sense to me
S0da has quit [Remote host closed the connection]
<apeiros> certainty: I'm not sure whether it's also a misunderstanding of the purpose
carlyle has quit [Ping timeout: 240 seconds]
<apeiros> fetch solves two scenarios: a) it asserts that I access an existing key. I.e., I'm sure my program only accesses existing keys, if not, it's a bug and it should raise
<apeiros> and b) I know the key might not exist, and in that case, I want a specific default value (for whatever reason), I.e., it's not a bug.
waheedi has quit [Quit: Waheedi]
mehlah has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gengis has quit [Ping timeout: 252 seconds]
makara has joined #ruby
speakingcode has joined #ruby
Mongey has joined #ruby
Kelgors has quit [Remote host closed the connection]
<certainty> apeiros: yeah right. Maybe my way of thinking is screwed here. I just don't think that it's exceptional for a map to not have a value for a given key
<apeiros> certainty: whether or not it is exceptional depends on your situation
cj3kim has joined #ruby
<certainty> apeiros: you could for example throw another type at this problem. Something like a Table::Undefined class
<apeiros> I could. but that would be even uglier.
Speed has joined #ruby
mavcunha has joined #ruby
thomasxie has quit [Remote host closed the connection]
<apeiros> another alternative would be to have two separate methods
<apeiros> one which doesn't accept a default value and raises
thomasxie has joined #ruby
<apeiros> another which accepts a default value, which itself defaults to nil and never raises
<certainty> i'd like that, but i'm not sure real rubiests would like it. I'm surely none
<apeiros> the problem about that approach is, that ruby set a bad precedence for that.
cj3kim has quit [Read error: Connection reset by peer]
<apeiros> it defaults to not raise and return nil
<apeiros> and provide a second method which still does both.
monkegjinni has quit [Remote host closed the connection]
GinoMan has quit [Ping timeout: 248 seconds]
<certainty> yeah, but it's never too late to fix things :)
<certainty> bbl
Es0teric has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
Kricir has joined #ruby
relix has joined #ruby
monkegjinni has joined #ruby
Virtualize|away has joined #ruby
freerobby has quit [Quit: Leaving.]
Giorgio has joined #ruby
<Giorgio> hello its is possible to make this
<Giorgio> with new ruby hash syntax
<tobiasvl> Giorgio: make what?
<Giorgio> {data: { 'sort-url': 1 }}
stryek has quit [Ping timeout: 260 seconds]
<tobiasvl> ok
Kricir has quit [Ping timeout: 265 seconds]
<Giorgio> sorry laptop freaze
thejoecarroll_zz is now known as thejoecarroll
<tobiasvl> no, the new syntax can only use symbols as keys
pacharanero has joined #ruby
<Giorgio> ahh thank you i know is possible with old
thejoecarroll is now known as thejoecarroll_zz
<Giorgio> but i`m curious about new :)
aep_ is now known as aep
thejoecarroll_zz is now known as thejoecarroll
foooobear has quit [Quit: Computer has gone to sleep.]
<apeiros> the new syntax just allows you to write {:foo => "bar"} as {foo: "bar"} instead
Virtualize|away has quit [Ping timeout: 251 seconds]
<apeiros> and it's no longer really new. this stuff is now what, 6 years old?
meatherly has joined #ruby
foooobear has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
<Giorgio> yes i used new to describe it ;)
<apeiros> it has an additional restriction on what symbols you can write that way. I think it's only ones which satisfy /\A\w+\z/
<Giorgio> foo: 'bar' is newer than hash rocket
thomasxie has joined #ruby
<apeiros> ok
Biohazard has joined #ruby
colli5ion has quit []
Virtualize|away has joined #ruby
yacks has quit [Ping timeout: 265 seconds]
felipecvo has quit [Remote host closed the connection]
IceDragon has joined #ruby
colli5ion has joined #ruby
ilyam has quit [Quit: ilyam]
freerobby has joined #ruby
foooobear has quit [Ping timeout: 252 seconds]
zz_karupanerura is now known as karupanerura
meatherly has quit [Ping timeout: 252 seconds]
Mongey has quit [Quit: Mongey]
supergeek has joined #ruby
kreisys has joined #ruby
habanany has joined #ruby
xBradPittx has joined #ruby
AlSquire has joined #ruby
hiall has quit [Ping timeout: 252 seconds]
karupanerura is now known as zz_karupanerura
<certainty> apeiros: another way is fetch(:non_existing_key) #=> KeyError and fetch(:non_existing_key){ default_value } #=> default_value ... not the prettiest API though, it's just a hack as we have block_given? which is equivalent to block undefined :)
ilyam has joined #ruby
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
intuxicated has quit [Read error: No route to host]
sepp2k has joined #ruby
thejoecarroll is now known as thejoecarroll_zz
pacharanero has quit [Remote host closed the connection]
io_syl has joined #ruby
chipotle has joined #ruby
joelroa has joined #ruby
timonv has joined #ruby
jnoob22_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yeticry has quit [Ping timeout: 252 seconds]
joonty has quit [Quit: WeeChat 0.4.2]
yeticry has joined #ruby
thejoecarroll_zz is now known as thejoecarroll
mjs2600 has joined #ruby
aep has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 260 seconds]
Ch4rAss has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
KarolisNo has quit [Remote host closed the connection]
fridim_ has quit [Ping timeout: 260 seconds]
aep has joined #ruby
<mikecmpbll> i noticed the other day that you can't use "do:" as a key using that notation :o
<apeiros> certainty: fetch does that already
<mikecmpbll> { do: 'something' }
<apeiros> certainty: you can either provide a default value or a default block
joelroa has quit [Ping timeout: 272 seconds]
Kelgors has joined #ruby
<apeiros> $ ruby -e 'p({do: 1})'
<apeiros> {:do=>1}
<apeiros> works just fine mikecmpbll
<mikecmpbll> hmpf.
<mikecmpbll> what ruby version
yalue has joined #ruby
Ch4rAss` has quit [Ping timeout: 252 seconds]
<apeiros> 2.1
<apeiros> works in 1.9 too
<certainty> apeiros: ah, didn't know that. Why not go with that then?
<mikecmpbll> ruby -e 'p({do: 'something'})'
<mikecmpbll> :)
<apeiros> certainty: because fetch provides both ways
<mikecmpbll> must be specific to single quoted strings.
<mikecmpbll> oh wait
<mikecmpbll> ignore me.
<mikecmpbll> load irb and type { do: 1 }
davedev24 has joined #ruby
<mikecmpbll> tell me it's not just me.
ultraflash3 has joined #ruby
noop has quit [Ping timeout: 252 seconds]
<certainty> apeiros: i see. Personally i'd probably drop that compatibility for a way to distingiush between both execution paths clearly. But i'm crazy
<apeiros> irb is not an 100% accurate ruby parser
<mikecmpbll> apeiros: yeah, just an irb error then.
* mikecmpbll shrugs
<apeiros> that's why I did ruby -e ;-)
<apeiros> syntax oddities are best tested in ruby itself instead of irb/pry
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mikecmpbll> indeed.
<certainty> mikecmpbll: if you Ctrl-d out of it it will print it. seems to be a readline thing
<mikecmpbll> yup.
Es0teric has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
<mikecmpbll> on the subject of readline, i used to get command history from previous irb sessons
TheLarkInn has joined #ruby
ultraflash3 has quit [Ping timeout: 252 seconds]
<TheLarkInn> Good morning all!
<mikecmpbll> haven't looked in to it, but i no longer do.
<apeiros> probably messed up your irbrc
Hanmac has quit [Ping timeout: 252 seconds]
<mikecmpbll> oh, i don't have one
KarolisNo has joined #ruby
poulson has quit [Ping timeout: 252 seconds]
tonni has quit [Remote host closed the connection]
johnmlocklear_ has joined #ruby
colli5ion has quit []
johnmlocklear_ has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
carlyle has joined #ruby
TheLarkInn has left #ruby [#ruby]
thejoecarroll is now known as thejoecarroll_zz
poulson has joined #ruby
grzywacz has joined #ruby
S0da has joined #ruby
Kelgors has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby
ilyam has quit [Ping timeout: 272 seconds]
carlyle has quit [Ping timeout: 240 seconds]
djdb has joined #ruby
DaniG2k has quit [Quit: leaving]
plexus_ has joined #ruby
thejoecarroll_zz is now known as thejoecarroll
Mongey has joined #ruby
<mikecmpbll> hm, found an irbrc at /etc/irbrc, irb didn't seem to be taking any notice of it tho.
dangerousdave has joined #ruby
jglover has joined #ruby
<jglover> Does anybody know an elegant way to handle subdomains in Sinatra?
supergeek has quit [Quit: Goodbye, cruel world.]
<mikecmpbll> jglover: what do you mean by handle?
ilyam has joined #ruby
<tobiasvl> mikecmpbll: it probably doesn't read /etc/irbrc by default unless you source it in ~/.irbrc ?
<tobiasvl> if it's anything like bashrc, for example
<mikecmpbll> tobiasvl: eh. you're probably right. i've never looked at it before so i dunno how it was set up when it worked.
<mikecmpbll> it's ok now anyway, i just created a ~/.irbrc
maoko has joined #ruby
colli5ion has joined #ruby
kayamm has quit [Quit: sleep]
marcus has joined #ruby
tkuchiki has joined #ruby
<marcus> I need help. I'm trying to run rackup but I get this error. could not find do_sqlite3-0-10.13 in any of the sources.
<jglover> mikecmpbll: I want to be able to map any subdomain to a specific controller
<jglover> so any time it looks like {subdomain}.domain.com/?{params} I can send it to a specific controller
phutch1ns has quit [Ping timeout: 252 seconds]
<marcus> I need help. I'm trying to run rackup but I get this error. could not find do_sqlite3-0-10.13 in any of the sources.
[krisbulman] is now known as krisbulman
vt102 has joined #ruby
Kelgors has joined #ruby
Kelgors has quit [Client Quit]
Kelgors has joined #ruby
<mikecmpbll> jglover: not sure how you'd do that stock, but: https://github.com/fnando/sinatra-subdomain
<marcus> I need help. I'm trying to run rackup but I get this error. could not find do_sqlite3-0-10.13 in any of the sources.
<jglover> mikecmpbll: I've been trying to work with that, but it doesn't really seem to work correctly. maybe I just have to fiddle with it a bit more
<canton7> marcus, stop spamming the channel. if someone who can help didn't see it the first time, they won't the third
<mikecmpbll> jglover: ah okay, i have no experience with it i'm afraid.
tonni has joined #ruby
randomnick_ has quit [Ping timeout: 260 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
<canton7> marcus, have you installed do_sqlite3?
<jglover> mikecmpbll: no problem. Is there an alternative way to set up subdomains that I'm missing, that wouldn't require setup in ruby? I'm worried that trying to do it through Sinatra is maybe a bit of a hack
<mikecmpbll> jglover: not sure i know what you mean
Kricir has joined #ruby
randomnick_ has joined #ruby
<mikecmpbll> sounds like you want to do different things based on the subdomain? so your app will have to know about that
<jglover> mikecmpbll: in an apache server we can set up sub domains by adding a ServerAlias. I'm wondering if I should be trying to do subdomain configuration elsewhere
<jglover> mikecmpbll:that's a good point.
<mikecmpbll> sure, you can set up different subdomains to go to different apps, or the same app
<mikecmpbll> but if they're going to the same app and you want it to do different things, you have to make that logic in the app.
<jglover> mikecmpbll: hm. ok that's true. Strange that there isn't more documentation about this online. Seems like a popular thing to want to do.
<jglover> i'll keep searching though, thanks
<mikecmpbll> often people will use subdomains for different apps. i don't know specifically how you're intending to use the subdomains so i don't know if it's common
dubsteph has joined #ruby
<marcus> canton7: Yes I have installed it, and I am sorry for spamming
<jglover> mikecmpbll: same app, but different user pages
<mikecmpbll> so like, user1.app.com, user2.app.com?
<jglover> mikecmpbll: exactly
GinoMan has joined #ruby
<mikecmpbll> oh, so you don't really want to do different things, you want to do the same thing but in a different context, so to speak
cj3kim has joined #ruby
Kricir has quit [Ping timeout: 248 seconds]
habanany has quit [Ping timeout: 248 seconds]
<jglover> yep, the userid is going to be a query parameter
mavcunha has quit [Ping timeout: 252 seconds]
webgen has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
chrisseaton has joined #ruby
Mongey has quit [Quit: Mongey]
<mikecmpbll> so the only thing you really need to do is parse the subdomain? i'd probably write some simple rack middleware to do that on every request
IceyEC has joined #ruby
maximski has joined #ruby
<jglover> mikecmpbll: oh alright, i'll give that a shot. thanks a lot
Mongey has joined #ruby
freerobby has quit [Quit: Leaving.]
<mikecmpbll> jglover: http://www.sinatrarb.com/intro.html#Rack%20Middleware
meatherly has joined #ruby
mavcunha has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
Sirupsen has joined #ruby
KarolisNo has quit [Remote host closed the connection]
kindjal has joined #ruby
MattStratton has joined #ruby
KarolisNo has joined #ruby
cj3kim has quit [Ping timeout: 260 seconds]
stryek has joined #ruby
jwest1 is now known as jwest
tacos1de has joined #ruby
<jglover> jwest:hey jwest are you my calculus 3 prof, because I think you are
banister has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
aspiers has quit [Ping timeout: 248 seconds]
alex88 has joined #ruby
<jwest> jglover: Nope. I barely passed Calc 3 when I took it. I'm not even qualified to be your prof.
meatherly has quit [Ping timeout: 252 seconds]
koell has quit [Read error: Connection reset by peer]
intuxicated has joined #ruby
abk has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cya]
kaldrenon has joined #ruby
sailias has joined #ruby
nowthatsamatt has joined #ruby
tcopp has joined #ruby
burlyscudd has joined #ruby
philcrissman has joined #ruby
dkamioka has quit [Remote host closed the connection]
danman has joined #ruby
ilyam has quit [Quit: ilyam]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gmi_ has joined #ruby
sk87 has joined #ruby
marcus has quit [Quit: Page closed]
yfeldblum has joined #ruby
gengis has joined #ruby
scarolan has joined #ruby
chipotle has joined #ruby
gmi_ has quit [Read error: Connection reset by peer]
gmi_ has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blaxter_ has quit [Quit: foo]
[gmi] has quit [Read error: Operation timed out]
jonno11 has joined #ruby
enebo has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
gengis has quit [Ping timeout: 272 seconds]
dblessing has joined #ruby
dangerousdave has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
vpretzel has joined #ruby
jsilver_ has quit [Read error: Connection reset by peer]
jsilver has joined #ruby
StormboyXZ has joined #ruby
gmi_ has quit [Ping timeout: 252 seconds]
<StormboyXZ> Hi
lkba has joined #ruby
lkba has quit [Client Quit]
milhite has joined #ruby
mercwithamouth has joined #ruby
<webgen> hi
vlad_starkov has quit [Remote host closed the connection]
<jglover> Hi
<ddd> jwest hehe I barely passed calc 1
lpvn has quit [Remote host closed the connection]
lkb has joined #ruby
<jglover> calc three was rough to be honest
<jglover> one and two were pretty easy
<jglover> three took me quite a lot of studying
EStormBOT has joined #ruby
Salve has joined #ruby
cj3kim has joined #ruby
InFlames has joined #ruby
<StormboyXZ> EStormBOT is a bot I wrote in ruby :D.
parzo has joined #ruby
retnuh has joined #ruby
<apeiros> weird… I get different exceptions when I run the same code as a test and when I run it in pry
<jglover> are the olympics ruby related? can I ask if anybody is excited for US v Canada?
carlyle has joined #ruby
koell has joined #ruby
lkba has joined #ruby
lkb has quit [Client Quit]
puppeh_ has joined #ruby
ikawnoclast has joined #ruby
cj3kim has quit [Ping timeout: 260 seconds]
msmith has joined #ruby
<toertore> lolympics
freerobby has joined #ruby
jerius has joined #ruby
carlyle has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Quit: Leaving.]
yasushi has joined #ruby
<StormboyXZ> Gosh those join/leaving
<apeiros> wow. much olympics. very sport. so chi.
makara has quit [Ping timeout: 248 seconds]
<jglover> -_-
InFlames has quit [Quit: This computer has gone to sleep]
<toertore> so chi
MattStratton has joined #ruby
<jglover> oh i get it
jobewan has quit [Ping timeout: 252 seconds]
<jglover> mikecmpbll:http://tannerburson.com/2009/01/extracting-subdomains-in-sinatra.html/ this did the trick for me
<toertore> haha because so + chi = sochi, where the olympics are being held!!
<jglover> I'm always really surprised by how popular Doge got
MattStratton has quit [Client Quit]
<apeiros> I'm surprised anybody would buy dogecoins
<toertore> how well it's been ruined by being popular
<jglover> apeiros: I made a bit of money from bit/lite coins
<apeiros> then again, people joined scientology…
<mikecmpbll> jglover: good stuff.
<tobiasvl> jglover: oh i know quite a few bitcoin millionaires actually
<jglover> apeiros: now now, ruby is non-denominational
<jglover> wow i spelled that wrong
<mikecmpbll> no you didn't.
kindjal has quit [Quit: Computer has gone to sleep.]
<jglover> oh never mind
<mikecmpbll> :D
kcombs has joined #ruby
ffranz has joined #ruby
<apeiros> don't get me into denominations…
<jglover> tobiasvl: i'm a bit coin thousand-aire
<jglover> meaning i made slightly over a thousand
<apeiros> "I believe whatever is written in this book! because… somebody wrote it! must be true!"
dx7 has joined #ruby
<toertore> not just somebody
<jglover> -_-
<apeiros> I myself belong to the Brother Grimm religion. Their books describe our origins in a very believable manner.
<toertore> it was dhh
<mikecmpbll> :D
<mikecmpbll> lol toertore.
<jglover> heh
<toertore> "thou shalt not repeat thyself"
<mikecmpbll> :'d
blackmesa has quit [Ping timeout: 252 seconds]
<apeiros> everybody can believe whatever the fuck they want. But I'll take the liberty to ridicule you for believing random shit :-p
gilest has joined #ruby
<StormboyXZ> %echo lol
<EStormBOT> lol
vlad_starkov has joined #ruby
<toertore> %die
<toertore> didn't work
<StormboyXZ> %hit toertore
* EStormBOT slaps toertore around a bit with a shoe!
xjiujiu has quit [Read error: Connection reset by peer]
toertore is now known as toretore
<StormboyXZ> :P
<StormboyXZ> %hit toretore
* EStormBOT calls a Magikarp to slap toretore with its tail!
<jhass> %quit
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass> %leave
<jhass> %part
<StormboyXZ> Nope
<StormboyXZ> xD
<toretore> %stop
<jhass> apeiros: ^ ;P
<StormboyXZ> Those commands aren't there
<StormboyXZ> There is %eqn
<toretore> %eqn
<StormboyXZ> %eqn factorial(20)+2123+sin(20)
<EStormBOT> 2.432902008176642e+18
<jglover> apeiros: nice github. I'm taking a look at your projects.
postmodern has quit [Remote host closed the connection]
<StormboyXZ> @ toretore: type %help lol
<apeiros> jglover: thanks. feel free to. feedback welcome.
<apeiros> jhass: yeah, I'm pondering whether it constitutes as spam
<apeiros> hm, proper english would be without 'as' in that phrase? o0
<jglover> apeiros: why did you fork ruby?
ringaroses has joined #ruby
<apeiros> jglover: because I made patches
<jglover> champion.
<apeiros> na
<apeiros> the ones for which I forked it were just doc patches
Ch4rAss has quit [Quit: "Connection reset by beer"]
<toretore> apeiros: EPT is what CSV should be
<apeiros> I should poke for my StringScanner patches, though. they have neither been accepted nor rejected :-/
codeFiend has joined #ruby
<apeiros> toretore: yeah. when I'm through with housekeeping, that's my current no1 project atm.
<apeiros> writing a nice C based stream parser.
<apeiros> the initial unoptimized draft is already 4x faster at parsing CSV than rubys csv lib :D
<jglover> apeiros: how are you going to parse xls files?
coderdad has joined #ruby
<apeiros> (well, EPT compatible CSV, that is. since CSV is not 100% ept compatible)
sk87 has joined #ruby
<apeiros> jglover: in tabledata?
<jglover> or wait, is that not for C++?
<jglover> yeah
<toretore> csv isn't csv-compatible most of the time
<apeiros> tabledata uses roo/spreadsheet gems
<apeiros> I don't intend on implementing my own xls parser
<apeiros> I value my sanity :)
<jglover> Ah I see, I'm going to keep track of this one
<jglover> good stuff man
Trazira has joined #ruby
Trazira has quit [Client Quit]
<apeiros> jglover: I wrote it for 2 reasons - a) we switched excel gems about 3 times and it was pain adapting to the API, b) we almost exclusively deal with tabular data, and that doesn't warrant the complexity of the current excel gems
freerobby has quit [Ping timeout: 252 seconds]
<jglover> who is we?
<apeiros> at the company
<apeiros> alternatively me, myself and I
<jglover> heh understood
<StormboyXZ> %rand me myself I
<EStormBOT> From a blackhole a random choice pops out: I
<StormboyXZ> Its I
marr has joined #ruby
freerobby has joined #ruby
<jglover> this is bizarre. Sinatra does not handle subdomains
<jglover> i hate that I have to do regex to get it
<apeiros> jglover: sinatra is a rack app, can't you handle it in a middleware and route to different sinatra apps?
kayamm has joined #ruby
<jglover> that's what I'm doing. but there isn't anything built in
zoscoy has joined #ruby
<apeiros> probably sinatra considers it a problem out of its domain
<jglover> I've just started working with ruby a few days ago. I'm just a bit surprised that this isn't "built in" anywhere
Kricir has joined #ruby
maasha has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
KarolisNo has quit [Remote host closed the connection]
<jglover> I'm coming from Node where everything is extremely easy
<apeiros> well, the more stuff you build in, the more complex and unwieldy it becomes.
<toretore> it's built in in a lot of things
<apeiros> bloat
<apeiros> you have to decide what domain of problems you want to solve with one tool
<jglover> Rails is much more than I need for my first project
<jglover> What exactly is Rack?
<apeiros> and rack provides good opportunities to deal with subdomains, so I'm not surprised if it's an informed decision not to handle subdomains at the sinatra level
<jglover> maybe somebody could explain
eka has joined #ruby
<apeiros> jglover: you know DBI?
<apeiros> (database independence)
<jglover> nope
Wolland has joined #ruby
<apeiros> dang :)
<Giorgio> i trying to make this
<apeiros> well, rack is an abstraction layer between your webserver and your webapp
codeFiend has quit [Quit: codeFiend]
<apeiros> it provides a common interface for your webapp, no matter on what webserver you run it
<maasha> Eh? Running unit tests broke my ruby installation? -> https://gist.github.com/maasha/313811da9f917bf71bac
<Giorgio> i use this
Alina-malina has quit [Read error: Connection reset by peer]
<Giorgio> h = Hash[arr.zip arr.each_with_index.map {|a,i| {posstion: i}}]
<Giorgio> it is best solution ?
<jglover> apeiros:oh ok, I actually understand that
anarang has quit [Quit: Leaving]
<jglover> I think I do know what DBI is
<toretore> rack is a standardized http interface: call(env) which returns [status, headers, body]
<toretore> iirc
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jglover> toretore:ah, understood
<toretore> this way you can swap out components as long as they conform to the rack interface
heftig has quit [Ping timeout: 265 seconds]
codeFiend has joined #ruby
<toretore> and a rack middleware is simply a rack app that calls another and then transforms or does something else with the result and returns it
sambao21 has joined #ruby
<apeiros> jglover: yeah, DBI is the same for databases. an abstraction layer between your DB and your code, allowing you to run the same code against different DBs
Kricir has quit [Ping timeout: 252 seconds]
joelroa has joined #ruby
<jglover> I'm going to google how to write rack middleware, it might make more sense
<jhass> or transforms the request before calling the other app. or both
<toretore> does dbi exist for ruby?
<toretore> ah, yeah, i remember now
parzo has quit [Remote host closed the connection]
<apeiros> toretore: various
<toretore> i was angry at AR for not using it
parzo has joined #ruby
<apeiros> toretore: DBI is the concept, not a specific implementation ;-) (and yes, an implementation of it by the name of 'dbi' exists too I think)
dkamioka has joined #ruby
<apeiros> toretore: yeah, I still am.
cj3kim has joined #ruby
<toretore> apeiros: yeah, it all comes back to me now
<apeiros> every f'ing ORM reinventing DBI sucks
<maasha> Disabling simplecov and everything works. How the heck could runnings tests break simplecov installation?
<apeiros> maasha: no idea
<apeiros> maasha: radical isotopes?
jprovazn has quit [Quit: Odcházím]
Azulinho has quit [Ping timeout: 248 seconds]
<toretore> lol
<maasha> apeiros: I shall reinstall simpecov
parzo_ has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
parzo has quit [Read error: Connection reset by peer]
joelroa has quit [Read error: Operation timed out]
timonv has joined #ruby
<jglover> man this new programmer at work is so much smarter than me
<maasha> apeiros: and now it works. how bizarrrrre ...
<dvorak> jglover: lot better than the alternative
<apeiros> indeed
<apeiros> twice, actually
Vovko has joined #ruby
<jglover> I shouldn't compare myself, I'm only 19. He's got a masters and lots of experience
<jglover> but wow is he good
<jglover> I've not seen such pristine testing or understanding
<apeiros> jglover: great opportunity
<toretore> is his keyboard smoking?
<jglover> hahah
<apeiros> I wish zip without block would return an Enumerator
<jglover> good explanation of rack
<toretore> rack is an excellent example of the power of standardization
fantazo has joined #ruby
zachallett has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
maZtah has joined #ruby
v0n has joined #ruby
mengu has quit [Remote host closed the connection]
<apeiros> and normalization
* apeiros ponders the diff between standardization and normalization
jlast has joined #ruby
<StormboyXZ> Google is your friend
Speed has joined #ruby
<jglover> hm not sure where to put middleware
<jglover> in node I just pass it into the anonymous function
<jglover> or javascript rather
cocotton has joined #ruby
dkamioka has quit [Remote host closed the connection]
Alina-malina has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
<jglover> oh i can use this rackup config file
colli5ion has quit []
klaut has joined #ruby
philcrissman has quit [Remote host closed the connection]
<jglover> wtf ruby is awesome
<jglover> how did I never use this before
<apeiros> welcome to our world
<StormboyXZ> Of course Ruby is awesome.
* apeiros fell in love with ruby for a single line of code
* StormboyXZ now hates Python coz of Ruby
jprovazn has joined #ruby
<Tachoh> jglover: what other languages have you used?
<jglover> C++, C, Java, Javascript, PHP, Python the normal ones
<Tachoh> cool
Deele has joined #ruby
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jglover> I've been writing web applications with Node.js for a year or two now, and I felt like that was really great and awesome. But my friend showed me this app he made with Ruby and I figured I should try it. It's pretty great
<jglover> also somebody scolded me on ##programming for not knowing it
zoscoy has quit [Read error: Connection reset by peer]
RoxasShadowRS has quit [Read error: Connection reset by peer]
bogeyd6 has joined #ruby
jonno11 has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
<certainty> apeiros: which line was that?
nhhagen has quit [Remote host closed the connection]
<cocotton> If I have a string abc_def = "a string". Is is possible to concat two string together to get that string value? Something like : string1 = "abc" string2 ="def" puts string1_string2
<apeiros> certainty: by now I forgot. I think it was a simple array.map with a block.
<cocotton> so in the end it would output "a string"
<certainty> apeiros: i see. Makes sense. Blocks are what attracted me the most when i first saw ruby
<jhass> cocotton: the need of this usually means you want to use a hash instead
<apeiros> cocotton: don't abuse lvars as hash
<apeiros> what jhass said
nhhagen has joined #ruby
<cocotton> jhass: I'll go try to find some docs about that :)
<apeiros> strings = {"abc_def" => "a string"}; strings["abc_def"]
<apeiros> and to go from `string1 = "abc" string2 ="def"` to "abc_def": `"#{string1}_#{string2}"`
joelroa has joined #ruby
johnmilton has joined #ruby
bisquickcostanza has joined #ruby
<jhass> or depending on your usecase it might make sense to use a nested hash: strings = {"abc" => {"def" => "a string"}}; strings[string1][string2]
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
tesuji has quit [Ping timeout: 248 seconds]
jprovazn has quit [Quit: Odcházím]
parzo_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
webmaven_ has joined #ruby
koell has quit [Ping timeout: 248 seconds]
parzo has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
webmaven_ is now known as webmaven
danijoo has joined #ruby
nhhagen_ has joined #ruby
sparrovv has joined #ruby
nhhagen has quit [Read error: Operation timed out]
nhhagen_ has quit [Read error: Operation timed out]
ultraflash3 has joined #ruby
geopet has joined #ruby
jonah_k has joined #ruby
parzo has quit [Ping timeout: 252 seconds]
fijimunkii has quit [Ping timeout: 260 seconds]
geopet has quit [Client Quit]
teenwolf has joined #ruby
<webmaven> I am having trouble installing wdm on windows. I have ruby 1.9.3, the correct version of DevKit, and 'gem install wdm' *seems* to work, but I still get "wdm is not recognized as an internal or external command", and 'grunt server' fails as follows "LoadError on line ["199"] of C: cannot load such file -- wdm". Any suggestions?
baordog has joined #ruby
foooobear has joined #ruby
teenwolf has quit [Read error: Connection reset by peer]
<jglover> oh
<jglover> try wdm.bat
geopet has joined #ruby
<jglover> you probably need to set the batch file
diegoviola has quit [Quit: WeeChat 0.4.3]
joelroa has quit [Ping timeout: 260 seconds]
<jglover> and just drop it into C:/Windows/System(32?)
<webmaven> jglover, wdm.bat doesn't seem to exist either.
foooobear has quit [Client Quit]
<jglover> there's the problem
<jglover> link me to the guide you were using
bal1 has joined #ruby
<jglover> i had to do this for a few gems yesterday
<webmaven> guide?
Macaveli has quit [Ping timeout: 265 seconds]
<jglover> sorry, I figured maybe you used a guide to download
tylersmith has joined #ruby
geopet has quit [Client Quit]
ultraflash3 has quit [Ping timeout: 252 seconds]
<jglover> can you find the exe file or anything?
Virtualize|away has quit [Quit: Leaving...]
colli5ion has joined #ruby
<jglover> you just need a path that lets you start it from cmd
<webmaven> There is no exe, either.
geopet has joined #ruby
slowcon has joined #ruby
cj3kim has joined #ruby
<webmaven> This is the page for wdm: https://github.com/Maher4Ever/wdm
<jhass> That gem doesn't ship an executable
bal has quit [Ping timeout: 252 seconds]
<jhass> it's just a library
MattStratton has joined #ruby
dik_dak has joined #ruby
havenwood has joined #ruby
viki has quit [Quit: Connection closed for inactivity]
<jglover> oh
tobias_h has quit [Quit: Connection closed for inactivity]
mikekellyio_ has quit [Quit: Connection closed for inactivity]
<jglover> oh alright
<jglover> how do you alias it then? O giess O
<jglover> I guess I'm out of my element
<jglover> sorry
itamaryu has quit [Quit: Connection closed for inactivity]
wildharvest__ has quit [Quit: Connection closed for inactivity]
pkondzior____ has quit [Quit: Connection closed for inactivity]
<webmaven> jhass, any suggestions for why Compass is failing to find wdm, then?
rudisimo has joined #ruby
<jhass> I never used Ruby on Windows. Or really used windows for a couple of years. So not much beyond checking the output of gem env
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
m1lt0n has quit [Quit: leaving]
<webmaven> jhass, OK, thanks.
sski has quit [Remote host closed the connection]
snath has quit [Ping timeout: 260 seconds]
frem_ has quit [Quit: Connection closed for inactivity]
sski has joined #ruby
cj3kim has quit [Ping timeout: 260 seconds]
enricostn has joined #ruby
<jhass> actually also see if gem list includes it and if gem which wdm returns something
zachallett has quit [Read error: Connection reset by peer]
zachallett has joined #ruby
SpleezeDos is now known as Spleeze
<webmaven> jhass, gem which wdm returns a path to wdm.rb.
<enricostn> hi there, I'm trying to unit test with RSpec a method similar to this one https://gist.github.com/enricostano/9135892
mattmcclure has quit [Quit: Connection closed for inactivity]
aagdbl has quit [Quit: Connection closed for inactivity]
<enricostn> but it fails when I use let(:user) { double('User') }
<enricostn> if I use a real User object it works
<jhass> webmaven: then grunt doesn't use the same ruby version as gem or restricts the load path in some way
<jhass> webmaven: maybe through bundler
<webmaven> Hmm.
<enricostn> I've tried to use target.class instead but then the real User object fails instead
x77686d has joined #ruby
<jhass> enricostn: yes, you can't trick case when statements about the class
Spleeze has quit [Quit: QUIT]
mary5030 has joined #ruby
<jhass> enricostn: you have to use the real class and stub out any harmful / slow actions
<webmaven> jhass, ah, bundle doesn't list wdm!
sski has quit [Ping timeout: 272 seconds]
jonah_k has quit [Remote host closed the connection]
adamnbowen has joined #ruby
<jhass> enricostn: btw your else should probably be a raise ArgumentError
jglover has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has quit [Remote host closed the connection]
Spleeze has joined #ruby
<enricostn> jhass, thanks, yes raise of course
<enricostn> so I cannot use double() there?
lpvn has joined #ruby
fedesilva has joined #ruby
tgkokk has joined #ruby
<jhass> no you can't
lyanchih_ has joined #ruby
<enricostn> ok, thanks
<enricostn> I just don't want to use Factories there
leslie2 has quit [Ping timeout: 272 seconds]
<jhass> case foo when Bar calls Bar === foo which usually is Module#===
kreisys has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
kreisys has quit [Read error: Connection reset by peer]
coderdad has quit [Remote host closed the connection]
andy___ has joined #ruby
andy___ is now known as Guest73622
SCommette has joined #ruby
<dawkirst_> hi, I'm trying to understand something fundamental. I'm reading The RSpec Book, and the authors make a case for doing both Cucumber features and RSpec examples. While I see their rationale, is it actually practical to do both (or asked differently, is it something people actually do)?
stryek has quit [Quit: Leaving]
guest12214 has quit [Quit: Connection closed for inactivity]
kayamm_ has joined #ruby
leslie1 has joined #ruby
budrose has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
culturelabs has quit [Quit: Connection closed for inactivity]
dioms___ has quit [Quit: Connection closed for inactivity]
kayamm has quit [Ping timeout: 252 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
mengu has quit []
mikepack has joined #ruby
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
lpvn has quit [Ping timeout: 264 seconds]
thomasxie has quit [Remote host closed the connection]
lpvn has joined #ruby
JoeTheGuest__ has quit [Quit: Connection closed for inactivity]
joshwines_ has quit [Quit: Connection closed for inactivity]
<jhass> yes, it is something people actually do
hoypriest has quit [Quit: Connection closed for inactivity]
joshualivesay has joined #ruby
Kricir has joined #ruby
blooberr____ has quit [Quit: Connection closed for inactivity]
gilest has quit [Remote host closed the connection]
KarolisNo has joined #ruby
savage-__ has quit [Quit: Connection closed for inactivity]
koell has joined #ruby
dubsteph has quit [Ping timeout: 265 seconds]
dekz__ has quit [Quit: Connection closed for inactivity]
<dawkirst_> jhass, thanks. Most SOs I see ask whether to go RSpec OR Cucumber; I see very little reference to them being used together...or am I simply missing it?
<jhass> one approach is to use rspec for unit testing and cucumber for integration testing, for example together with capybara
Kricir has quit [Ping timeout: 253 seconds]
maximski has quit [Ping timeout: 248 seconds]
coderdad has joined #ruby
KarolisNo has quit [Ping timeout: 252 seconds]
<dawkirst_> jhass, makes sense, I just find it incredibly taxing to do two parallel test environments, just wondering whether it's worth it. I can see how it makes sense for big applications where multiple work on it, but for a small solo project it almost seems overkill (again, I might be missing something here).
jcs222 has quit [Quit: leaving]
mary5030 has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
<certainty> dawkirst_: that said, my experience is that you probably don't want cucumber to do the tests outlined in the book, unless you have actual customers that read your features (or jesus, even write them).
illbyte has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
kindjal has joined #ruby
rayners has joined #ruby
monkegjinni has joined #ruby
mary5030 has quit [Remote host closed the connection]
koell has quit [Ping timeout: 272 seconds]
<dawkirst_> certainty, so Cucumber doesn't have that much application, ever, anywhere?
mary5030 has joined #ruby
mansi has joined #ruby
jfelchner_ has quit [Quit: Connection closed for inactivity]
cj3kim has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<certainty> it has got much attraction in the past. But my experience is that this has somewhat changed now and i think for good reasons
monkegjinni has quit [Read error: Connection reset by peer]
Avahey has quit [Quit: Connection closed for inactivity]
b00stfr3ak has joined #ruby
monkegjinni has joined #ruby
doodlehaus has joined #ruby
<dawkirst_> ah, so I'll take what I read there with a pinch of salt
pallavi_ has quit [Quit: Connection closed for inactivity]
<certainty> i'm not saying that you shouldn't write integration tests, i just say that cucumber may not be what you want most of the time
tgkokk has quit [Ping timeout: 260 seconds]
meatherly has joined #ruby
BRMatt has quit [Quit: Connection closed for inactivity]
csmrfx has joined #ruby
<dawkirst_> makes sense
<enricostn> jhass, what about this https://gist.github.com/enricostano/9135892
<csmrfx> 8)
<certainty> dawkirst_: apart from that the rspec book is a great resource to get into BDD in general
coderdad has quit [Remote host closed the connection]
<dawkirst_> certainty, point taken. thanks.
twiceaday has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
akitada has quit [Quit: Connection closed for inactivity]
rndstr has quit [Quit: Connection closed for inactivity]
twiceaday has joined #ruby
<yeticry> Hello, The Magister of jewel.
EStormBOT has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 264 seconds]
petey_ has joined #ruby
chihhsin_cloud has joined #ruby
cocotton has quit [Quit: Page closed]
niftylettuce_ has quit [Quit: Connection closed for inactivity]
IceDragon has quit [Quit: Space~~~]
Xiti has joined #ruby
randym_ has quit [Quit: Connection closed for inactivity]
tommyvyo_ has quit [Quit: Connection closed for inactivity]
ziyadb_ has quit [Quit: Connection closed for inactivity]
hamakn has joined #ruby
<jhass> enricostn: don't let your application logic be defined by your test logic. This doesn't look very nice to me and actually prevents subclassing User
nhhagen has joined #ruby
moeSeth_ has quit [Quit: Connection closed for inactivity]
__class__ has quit [Ping timeout: 248 seconds]
meatherly has quit [Ping timeout: 272 seconds]
tagrudev has quit [Quit: Me = Awesome]
bluehavana_ has quit [Quit: Connection closed for inactivity]
hamakn has quit [Remote host closed the connection]
cocotton has joined #ruby
TheDeadSerious__ has quit [Quit: Connection closed for inactivity]
dnyy has quit [Quit: Connection closed for inactivity]
MatthewsFace has joined #ruby
<enricostn> jhass, mh yeah I know. I didn't understand your suggestion btw
caveat- has quit [Ping timeout: 245 seconds]
percival has quit [Quit: Connection closed for inactivity]
IceDragon has joined #ruby
<cocotton> Got another little question. I got this code in which there's a 2d array. array1 = [array11, array12, array13]. If I loop on array1 (array1.each do |array|), is it possible to only output the array name? Like : array1.each do |array|; puts array.name; end
<apeiros> cocotton: arrays don't have names
koell has joined #ruby
<apeiros> assigning an object to a variable doesn't make them get a name (with the sole exception of module/classes assigned to a constant for the first time)
<jhass> enricostn: you could do something like target = User.new; foo.should_receive(do_this_to).with(target); foo.author(target) or target = User.new; target.stub(:harmful_or_slow_that_do_this_to_calls).and_return(blub); foo.author(target)
<certainty> variable names are important for programmers not for programs, at least in ruby
<jhass> cocotton: still sounds like you want a Hash ;)
hamakn has joined #ruby
caveat- has joined #ruby
chihhsin has quit [Quit: leaving]
mary5030_ has joined #ruby
mikepack has quit [Remote host closed the connection]
<cocotton> jhass: You must be right once more, I'm really not used to Hash, but they are awesome. One day my mind will jump to them quick ;)
<csmrfx> cocotton: try doing array.inspect or array.methods in that loop
thams has quit [Quit: thams]
mikepack has joined #ruby
mjs2600 has quit [Ping timeout: 252 seconds]
phutch1ns has joined #ruby
acrussell has joined #ruby
petey_ has quit [Remote host closed the connection]
MplsGreg has joined #ruby
__class__ has joined #ruby
danijoo has quit [Quit: Leaving...]
<webmaven> jhass, I've added wdm into the Gemfile.lock, but I am still getting the same error, even though bundler now says that it is using wdm. :-(
petey_ has joined #ruby
xerox357 has joined #ruby
<jhass> webmaven: you don't edit Gemfile.lock only bundler does. You only edit Gemfile
mjs2600 has joined #ruby
chihhsin has joined #ruby
yfeldblum has joined #ruby
koell has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 265 seconds]
hamakn has quit [Ping timeout: 260 seconds]
petey_ has quit [Read error: Connection reset by peer]
petey_ has joined #ruby
cmoylan has joined #ruby
IceDragon has quit [Read error: No route to host]
mikepack has quit [Ping timeout: 265 seconds]
bal1 has quit [Quit: bal1]
joelroa has joined #ruby
joelroa has quit [Max SendQ exceeded]
Uranio has joined #ruby
<cocotton> jhass: Yep, the hash once more did the trick. Hashes ftw!
joelroa has joined #ruby
<webmaven> jhass, OK, I added wdm into the Gemfile, and removed it from Gemfile.lock. What is the next step?
<jhass> run bundle
prc has quit [Ping timeout: 252 seconds]
mgberlin has joined #ruby
<webmaven> jhass, it gave me a list of gems it is using, but wdm is not one of them.
droptone has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
<jhass> maybe you added it to a group you were previously excluding?
<jhass> check .bundle/config
<droptone> question: I'm trying to interact with an API via RestClient. The API is simple and with curl all I have to do is specify the base URL and -u MYAPIKEY: and it works perfectly. The problem is, with RestClient, the :authorization field isn't working right
jobewan has joined #ruby
monkegjinni has quit [Remote host closed the connection]
lmickh has joined #ruby
philcrissman has joined #ruby
<droptone> I keep getting 401 unauthorized. How can I set the parameters of RestClient to pass the API key just like curl -u?
nvrch has quit [Quit: nvrch]
monkegjinni has joined #ruby
<webmaven> jhass, oh, that is strange, the line I added to the GemFile is missing...
sski has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<webmaven> grunt must be generating the Gemfile...
davidcollom is now known as davidcollom_
tgkokk has joined #ruby
IceDragon has joined #ruby
xerox357 has quit [Quit: Leaving...]
sailias has quit [Quit: Leaving.]
monkegjinni has quit [Read error: Operation timed out]
shtirlic has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
sailias has joined #ruby
sailias has quit [Remote host closed the connection]
xerox357 has joined #ruby
apocalyptic_ab has joined #ruby
aryaching has joined #ruby
shtirlic has joined #ruby
joelroa has quit [Ping timeout: 265 seconds]
philcrissman has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
blackmesa has joined #ruby
sski has quit [Ping timeout: 265 seconds]
mgberlin has quit [Remote host closed the connection]
tgkokk has quit [Ping timeout: 260 seconds]
klaut has quit [Remote host closed the connection]
sk87 has joined #ruby
kevinykchan has joined #ruby
DrShoggoth has joined #ruby
carlyle has joined #ruby
hamakn has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
maximski has joined #ruby
meatherly has joined #ruby
xerox357_ has joined #ruby
hamakn has quit [Remote host closed the connection]
cj3kim has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<slowcon> hows it goin guys
AndChat| has joined #ruby
hamakn has joined #ruby
<certainty> slow :)
<apeiros> slow
<StormboyXZ> slow
<apeiros> certainty: ^5
StormboyXZ has quit [Quit: Leaving]
<certainty> 5
relix has joined #ruby
xerox357 has quit [Read error: Operation timed out]
macabhaird has joined #ruby
failshell has joined #ruby
pioz has joined #ruby
tgkokk has joined #ruby
carlyle has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
Hobogrammer has quit [Ping timeout: 252 seconds]
pioz has quit [Client Quit]
<slowcon> hahahaha
<slowcon> cmon guys its friday!
poguez_ has joined #ruby
<slowcon> any of you guys checkout onedrive? Microsoft's rebranded SkyDrive
<slowcon> 7GB free
<certainty> nope
cj3kim has quit [Ping timeout: 265 seconds]
sparrovv has quit [Remote host closed the connection]
<slowcon> +3 GB when you do a backup. 10GB free cloud storage
<certainty> is that still a microsoft thing?
<certainty> ah yeah, had to scroll all the way down
<slowcon> it looks pretty good now. got the app for my phone yesterday. basically same exact thing as dropbox but with more space
Coolhand is now known as niharvey
burlyscudd has joined #ruby
dkamioka has joined #ruby
einarj has quit [Remote host closed the connection]
<certainty> slowcon: still a microsoft thing :)
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<slowcon> certainty: hahaha
<slowcon> certainty: i was so mad, i had an orig skydrive account way back when
philcrissman has joined #ruby
<slowcon> certainty: the ones that gave 25GB FREE when you signed up
<slowcon> so much space
philcrissman has quit [Remote host closed the connection]
<slowcon> but if you werent active they removed the 25GB and put it down to 7 :(
MatthewsFace has quit [Quit: This computer has gone to sleep]
<certainty> they must be really cool employers though. I wonder why simon peyton jones works for them
<Uranio> droptone: does you use proxy?
philcrissman has joined #ruby
bisquickcostanza has quit [Remote host closed the connection]
mikepack has joined #ruby
aganov has quit [Quit: Leaving]
<certainty> slowcon: aren't you concerned about your content being in the cloude?
<slowcon> certainty: i dont store anything useful, usually just mp3s that i want to sent to a friend or a book i want to read
<Uranio> are you using RestClient.post or RestClient.get?
<slowcon> certainty: over the years ive learned the value of local and frequent backups
Kelgors has quit [Read error: Operation timed out]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<certainty> slowcon: that's a good thing indeed.
AndChat| has quit [Quit: Bye]
<droptone> Uranio: um, no, no proxy
lkba has joined #ruby
<droptone> I just need to know how to translate the curl -u APIKEY: flag to RestClient
<Uranio> so, you are givin RestClient.post url,A_OBJECT_HASH_HERE
cloud|nix has joined #ruby
<Uranio> afeter the "url,THIS" where THIS.class => Hash
<Uranio> is that OK?
snath has joined #ruby
sk87 has joined #ruby
<Uranio> gsub('afeter','after')
klaut has joined #ruby
dpswireless has quit [Remote host closed the connection]
pierre1_ has joined #ruby
<droptone> Uraino, yes, here is the syntax for RestClient currently, which isn't working:
axl_ has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
<Uranio> show
<droptone> @response = RestClient.post(
<droptone> CLAPI_PAIT_URL,
<droptone> { :authorization => 'MYAPIKEY' }
<droptone> )
beond has joined #ruby
<droptone> obviously MYAPIKEY is replaced with my API key
<droptone> but that's not wrking. But if I go curl CLAPI_PAIT_URL -u MYAPIKEY:
MrJoshua has quit [Quit: MrJoshua]
<droptone> where CLAPI_PAIT_URL is the base URL of the API
<droptone> that works
<Uranio> droptone: let me use that's apit doc
<droptone> so I need to translate the -u flag in curl for the API key to RestClient
geggam has joined #ruby
burlyscudd has quit [Quit: Leaving.]
webmaven has left #ruby ["Leaving"]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
tommyvyo_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<Uranio> droptone: try using 'authorization' (AS STRING) instead :authorization
<jhass> droptone: according to docs the second parameter is the post body, so at least you need to add a {} inbetween to make it the third parameter (headers)
Kricir has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 252 seconds]
Cache_Money_ has joined #ruby
terrellt has joined #ruby
chipotle has joined #ruby
mary5030 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rmorello has joined #ruby
<droptone> Uranio: ok, can you please provide an example
<droptone> jhass: interesting, ok
baordog has left #ruby [#ruby]
<droptone> how do I go about filling in some bullshit for the poast body?
<droptone> post*
tylersmith has quit [Remote host closed the connection]
mgberlin has joined #ruby
<jhass> I guess empty hash should do
<jhass> or just empty string?
<jhass> just try a few things
Kricir has quit [Ping timeout: 252 seconds]
<droptone> lol, ok
vlad_starkov has quit [Remote host closed the connection]
carlyle has joined #ruby
marr has quit []
Cache_Money_ has quit [Client Quit]
v0n has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
maximski has quit []
<Uranio> droptone: RestClient.post api_url,{'authorization'=>'kJgT5rdmnHb'}
<droptone> jhass: when I tried inserting @body as an empty hash, it failed with a 500 internal server error
<droptone> Uraino: will give that a shot
<Uranio> droptone: usefull would be see API's doc
MplsGreg has quit [Remote host closed the connection]
Celm has joined #ruby
mark_locklear has quit [Quit: Leaving]
<droptone> still got a 401 unauthorized Uraino
webgen has quit [Read error: Connection reset by peer]
<droptone> thank you for the assistance just the same
<Uranio> what kind out auth it use, a key named 'authorization'
<Uranio> just show the doc API
stkowski has joined #ruby
plexus_ has quit [Ping timeout: 260 seconds]
<droptone> the API doc doesn't say, it just gives examples of how to get it to work in curl
<droptone> which works just fine
msmith has quit [Remote host closed the connection]
<droptone> I just need to translate curl's -u flag to RestClient
<jhass> droptone: so what about empty string?
<jhass> or nil?
<Uranio> droptone: I jsut done that MANY times, can I see the exmaple?
jonah_k has joined #ruby
sambao21 has joined #ruby
<Uranio> droptone: because -u is basic auth, no an key!!!
monkegjinni has joined #ruby
artisangoose has joined #ruby
phansch_ has joined #ruby
<Uranio> droptone: RestClient.post 'http://auth:uJ4Hsf@someplace.com/api/'
jonah_k has quit [Remote host closed the connection]
<Uranio> droptone: RestClient.post 'http://auth:uJ4Hsf@someplace.com/api/',{'some_key'=>'some_value'}
coderdad has joined #ruby
<Uranio> curl --help|grep ' -u'
ffranz has quit [Ping timeout: 272 seconds]
x77686d has quit [Quit: x77686d]
aryaching has quit []
AlSquire has joined #ruby
webgen has joined #ruby
<droptone> Uraino: interesting
<shevy> fascinating
<droptone> so change the base API url to auth:MYAPIKEY@BASEURL?
<Uranio> droptone: my english is not good... put sthis in s translator from spanish
dangerousdave has joined #ruby
<droptone> Uranio: don't sell yourself short, you speak good english
<droptone> at least good enough for me to understand you
larissa has joined #ruby
phansch_ has quit [Read error: Operation timed out]
<shevy> me gato es un perro
ffranz has joined #ruby
<shevy> hmm *mi?
<droptone> mis juevos grandes
<shevy> haha
<shevy> is this big eggs?
Virtualize|away has joined #ruby
<Uranio> better code, this:
<droptone> my balls are big
<droptone> juevos is slang for balls
<shevy> I thought that is eggs... or perhaps it was huevos...
<droptone> it is eggs
<shevy> yay!
<droptone> haha
<droptone> weeee
phansch has quit [Ping timeout: 260 seconds]
<shevy> more than 10 years out of school and I still remember a few words
<shevy> hola que tal
obs has quit [Quit: Konversation terminated!]
chrissiedeist has joined #ruby
<droptone> tu madre es puta en muy mucho calles
<droptone> your mother is a whore on very many streets
<shevy> puta I know but calles?
<Uranio> 'http://authorization:jAJK7J7H',{'key'=>'vale'}
<shevy> aaah yes...
stephenmac7_ has joined #ruby
nhhagen has quit [Remote host closed the connection]
<shevy> Uranio does not want to write in spanish
<droptone> ok, so set the parameter key to the APIKEY?
<Uranio> droptone: tu madre es UNA puta en muchaS calleS (is a better translate)
<shevy> hehe
<droptone> ahh, thank you Uraino
<shevy> man english is so much easier ...
<droptone> haha
<droptone> especially if that's what you know!
tgkokk has quit [Ping timeout: 260 seconds]
<droptone> I hear english is actually a bitch to learn
<droptone> lot of inconsistencies
ciwolsey has joined #ruby
plexus_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
stephenmac7 has quit [Ping timeout: 265 seconds]
<shevy> no I mean really... one article "the"... in spanish... you have to do those declination things... una puta ... un gato... hmm I forgot the third variant...
dpswireless has joined #ruby
<sweeper_> just two
<shevy> and then past tense, past present tense and those accents
<shevy> ok
<sweeper_> verb conjugations are much harder
<shevy> yeah
<Uranio> shevy: la (female thing) el (male thing)
xerox357_ has quit [Remote host closed the connection]
<Uranio> because in spanish object ar also female
<shevy> first year I was quite good, then it got much more difficult and I almost failed
<Uranio> or male
<shevy> huh
<shevy> spanish objects are female?
xerox357 has joined #ruby
<Uranio> some... computer => la computadora
gigetoo has quit [Remote host closed the connection]
<sweeper_> "decistieramos" = we would/should decist in present tense
<shevy> now we know why it is not used in object oriented programming! ;)
<Tachoh> spanish females are objects
<shevy> wow cool
<Tachoh> technically speaking.
<Uranio> Tachoh: not always
<Uranio> car (carro, vehículo) are male
<shevy> la computadora... el matador ... la computadora del matador!
rubyracer has joined #ruby
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
<lpvn> shevy, nouns have two genders in all romance languages
nhhagen_ has joined #ruby
Celm has quit []
<Uranio> killers's computer
<Uranio> :D
<shevy> lpvn but there is it!
<slash_nick> lpvn: not all nouns, right?
<slash_nick> el sol.
<sweeper_> ^ male
gigetoo has joined #ruby
<shevy> la sola
<shevy> haha :D
<Uranio> the alone
<Uranio> (a girl)
<lpvn> slash_nick, I mean that nouns belong to one gender
sweeper_ is now known as sweeper
<slash_nick> lpvn: not all of them :)
<slash_nick> lpvn: amiga, amigo :)
coderdad has quit [Remote host closed the connection]
<Uranio> lpvn: some words have a gender onle
<slash_nick> some one, some both
<sweeper> different nouns
<sweeper> el amigo
<Uranio> but some other have two
<sweeper> la amiga
pigzzcanfly has joined #ruby
<lpvn> slash_nick, some of them don't inflect but all of them belong to one gender
webgen1 has joined #ruby
<Uranio> el agua => tha water (male) but the sea could be "la mar" or "el mar"
<slash_nick> lpvn: okay that i don't know enough to argue with or confirm :)
<sweeper> la mar is iffy
bhaak has quit [Read error: Operation timed out]
<slash_nick> Uranio: interesante
chrissiedeist has quit [Quit: Leaving.]
sambao21 has joined #ruby
<sweeper> only instances I've seen "la mar" has been in song or in proper nouns
<ddd> so not even remotely trying to be gender neutral or gender sensitive. I'm a guy. I think male, when I explain something I use 'he'. So not trying to detract from what I'm trying to say just to find some gender neutrality. let the hearer do it in their own head if its that important to them. the message is important, not whether its male or female in the example role
dpswireless has quit [Ping timeout: 245 seconds]
<ddd> so tired of this gender neutrality bullshit
Mousse_ has joined #ruby
<shevy> she can't drive a car
<jsilver> she couldn't fuck your pussy if you had one
<ddd> he can't either
<jsilver> wai...
coderdad has joined #ruby
<lpvn> ddd, I think that gender is a grammar construct not something exactly sex-related
chrissiedeist has joined #ruby
<Uranio> ddd: but when you speek without he/or she?
<shevy> jsilver hmmmmmm
<ddd> uranio they
<jsilver> shevy: ??
<ddd> done/done
<slash_nick> i thought we were talking about languages
<jsilver> shevy: too bad language?
chrissiedeist has quit [Client Quit]
<jsilver> only joking
<shevy> jsilver it came like out of nowhere!
<sweeper> how many of you guys actually speak spanish?
<jsilver> lol..
<shevy> how is it in japanese? I heard the language is simple in essence
petey_ has quit [Remote host closed the connection]
<shevy> sweeper I used to be able to, a long time ago, at least basic communication
<shevy> I made an insane amount of mistakes in written spanish
v0n has joined #ruby
<jsilver> I know a lot of words
* sweeper grew up in Peru
<Uranio> sweeper: from miame (also miami) to down continent whole almost speak it :D
<shevy> yeah, spanish invasion
petey_ has joined #ruby
Voodoofish430 has joined #ruby
<jsilver> Spanvasion
webgen has quit [Ping timeout: 252 seconds]
<jsilver> which could also be Spanish Evasion
<jsilver> lmao
<slash_nick> sweeper: i hear peru has some of the longest waves in the world
coderdad has quit [Remote host closed the connection]
<Uranio> droptone: RestClient.post 'http://athourization:Hd7uY@yourapiurl.com'
<sweeper> slash_nick: yep, we get a lot of surfers
bluenemo has quit [Remote host closed the connection]
<slash_nick> like, surf one wave for 3-4 minutes kind of long
pkrnj has joined #ruby
monkegjinni has quit [Remote host closed the connection]
aspires has joined #ruby
yfeldblum has joined #ruby
kayamm_ is now known as kayamm
<sweeper> not really my thing tho, it's either Punta Azul or Punta Sal, they have tournaments and stuff
dpswireless has joined #ruby
bhaak has joined #ruby
kevind has joined #ruby
coderdad has joined #ruby
<sweeper> iirc we have long timed waves, nd literally long waves, like a single wave half a mile wide
x77686d has joined #ruby
Sc0rp10n has joined #ruby
GreatSUN has joined #ruby
<shevy> waves scare me
<GreatSUN> rehi
<shevy> hi GreatSUN
<shevy> have you seen SmallMOON lately?
<GreatSUN> does someone of you know how to require wopen3?
<GreatSUN> shevy: nope, sorry
<shevy> what is wopen
<shevy> if it is a gem, first install it, then require should work
<GreatSUN> shevy: kind of extended popen3
<GreatSUN> gem is installed
petey_ has quit [Ping timeout: 265 seconds]
<GreatSUN> but I can't require it
sikor_sxe has quit [Read error: Operation timed out]
<shevy> k, the usualy convention is: name of gem == argument to give to require()
<GreatSUN> i always says no such file to load
<shevy> *usual
tedstriker has joined #ruby
pkrnj has quit [Client Quit]
<shevy> Fetching: wopen3-0.3.gem (100%)
<shevy> Successfully installed wopen3-0.3
<shevy> 1 gem installed
<shevy> require 'wopen3'
<shevy> # => true
fantazo has quit [Ping timeout: 260 seconds]
<shevy> works fine here
<Uranio> droptone: es2en la URL debe ser reescrita, usando los parametros de autenticación, donde los : separan usuario:contraseña y finalmente la "@" contiene el resto de la URL
user258467 has quit [Quit: Quitte]
phansch_ has joined #ruby
<shevy> usando los parametros... use the parameters... right? :D
phansch_ is now known as phansch
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
dpswireless has quit [Ping timeout: 272 seconds]
<Uranio> shevy: neo-germanic lang took word from french (a romcance lang) also spanish is romace lang
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
aryaching has joined #ruby
milhite has joined #ruby
<Uranio> English.parent_class => NeoGermanic
milhite has quit [Max SendQ exceeded]
joelroa has joined #ruby
jonah_k has joined #ruby
<GreatSUN> funny
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
<GreatSUN> shevy: really funny
freerobby has quit [Quit: Leaving.]
petey_ has joined #ruby
<shevy> GreatSUN hmm?
<sweeper> Uranio: with like 9 billion mixin modules
mavcunha has quit [Quit: Computer has gone to sleep.]
<sweeper> require '*'
<Uranio> amost 9 billion of include sentence
milhite has joined #ruby
ultraflash3 has joined #ruby
milhite has quit [Max SendQ exceeded]
<GreatSUN> shevy: after installing twice it is working now
<Uranio> class English < VinkingsLang; include ...
<shevy> GreatSUN hmm well that sounds good
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
marcdel has joined #ruby
mansi has quit [Remote host closed the connection]
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
rm_ has joined #ruby
mansi has joined #ruby
<Uranio> GreatSUN: sorry, this could sound stupid, but, after installed a gem, you must close and run again IRB for use it
<Uranio> in irb
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
mansi has quit [Read error: Connection reset by peer]
<shevy> oh that can also be the case, indeed
phutch1n1 has joined #ruby
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
mansi has joined #ruby
<shevy> a third case could be if you have separate rubies, different prefixes, and rvm AND rbenv! like ddd here! TOTAL ANARCHY
milhite has joined #ruby
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tcopp has quit [Ping timeout: 272 seconds]
cpruitt has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Uranio> OMG!
ahawkins has quit [Remote host closed the connection]
ultraflash3 has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Remote host closed the connection]
davidcollom_ is now known as davidcollom
phutch1ns has quit [Ping timeout: 272 seconds]
olivier_bK has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
coderdad has quit [Remote host closed the connection]
zigomir has quit [Remote host closed the connection]
gbt has quit [Quit: Leaving...]
<GreatSUN> Uranio: I have done this, cause I ended irb and installed gem and afterwards started irb again
<ddd> rofl.
<GreatSUN> but no matter
<ddd> i don't have both. you can't have both installed
<GreatSUN> it works now
GinoMan has quit [Ping timeout: 265 seconds]
<ddd> mutually exclusive ;)
joelroa_ has joined #ruby
<shevy> both which ones
<shevy> ah
<shevy> sorry
<ddd> rvm anbd rbenv together
<shevy> yeah
coderdad has joined #ruby
<shevy> I thought you wrote to GreatSUN :D
<ddd> rvm and chruby you can do but only becuase chruby doesn't pay any attention to rvm
<shevy> and wondered "hey... he could have two rubies... why not..."
mavcunha has joined #ruby
troyready has joined #ruby
<ddd> if you set the GEM_* and RUBY_* and MY_RUBY_* vars you could do it without either of them
<ddd> but you'd have to script the changes
VTLob has joined #ruby
troyready has quit [Read error: Connection reset by peer]
joelroa has quit [Ping timeout: 264 seconds]
<ddd> which would in effect give you a new 'rvm/chruby/rbenv/rbfu' ;)
roolo has quit [Quit: Leaving...]
mavcunha has quit [Client Quit]
<havenwood> ddd: rbfu is going, deprecated in favor of chruby
<havenwood> gone**
marcdel has quit []
<ddd> yeah i heard that but i don't use it so wasn't entirely sure
burlyscudd has quit [Quit: Leaving.]
Giorgio has quit [Ping timeout: 260 seconds]
msmith has joined #ruby
pietr0 has joined #ruby
<havenwood> ruby-version also deprecated in favor of chruby, waiting for rbenv to :P
freerobby has joined #ruby
<havenwood> muahhaha
<Uranio> finally RVM win
<ddd> i mainly use rvm, but occasionally just to keep in touch, i disable rvm's source lines and use chruby. I will NEVER use rbenv. but thats because of sstephenson being such a dick.
<ddd> though i might try it if radar actually does take it over full time
robbyoconnor has joined #ruby
<ddd> uranio I am on the rvm team. another core reason i use it almost exclusively ;) I was far more active with rvm1 than I am with rvm2, but thats due to time constraints i didn't have before
khaase has joined #ruby
serp` has joined #ruby
<ddd> brb, gotta put a rescue dog in the truck so my wife can take him to his adopter! Woot! Gotta love lovable pit bulls
* Uranio buffer overflow while reading long sentences in english
<ddd> uranio i talk out full sentences. i'm not a big one for shorthand
<khaase> anyone experience with testing GC (and thread) related things/finalizers?
<Uranio> yea... be "consice" is a skill
<khaase> ie, running finalizers, see if something gets marked?
<certainty> . o O ( i should dedicate my scheme rake clone to jim )
<khaase> simply triggering GC.start a few times does not work very reliable
cj3kim has joined #ruby
<Uranio> khaase: could be said that "produce" garbage to took garbage Ò_Ó
unholycr1b is now known as unholycrab
unholycrab has quit [Changing host]
unholycrab has joined #ruby
<shevy> yeah
coderdad has quit [Remote host closed the connection]
<shevy> ddd can be damn chatty
Giorgio has joined #ruby
<khaase> Uranio: I am contemplating just having a loop that allocates objects
<chrisseaton> khaase: with most non-reference counting GC algorithms there's no guarantee that a finalizer will ever be run. Can't say for sure about MRI's.
cj3kim has quit [Read error: Connection reset by peer]
<Uranio> khaase: I tried doin a very dirty thing, set all the user and now unused variables to nil ant then GS.start
plexus_ has quit [Ping timeout: 260 seconds]
<Uranio> example, used $varuno and $vardos, and will not use more,
<Uranio> $varuno=$vardos=nil; GS.start
_maes_ has joined #ruby
coderdad has joined #ruby
<Uranio> both stop pointing to an object and I guest that would be facilite the work to the GC
<khaase> Uranio: that won't do it in my example, I don't have a direct reference to the object I want to have GC'd, or at least I think I don't
<khaase> that's kinda what I want to test
lsmola has quit [Ping timeout: 260 seconds]
v0n has quit [Read error: Operation timed out]
SCommette has quit [Quit: SCommette]
* Uranio reading... (1 octet/sec)
webgen1 has quit [Read error: Connection reset by peer]
<Uranio> so... if I understod good, just break the whatever link you have to the object ans then GS.start in the next line
vlad_starkov has joined #ruby
<Uranio> the game is leave object hanged in the nothing, and then call GS -hey you, GC, clean this crap here
mikecmpbll has quit [Quit: i've nodded off.]
<Uranio> but very the crap must be HERE, or CG will generate more crap for search crap
<Uranio> (AFAIK)
<khaase> I don't have any link to the object
<khaase> or at least I assume I don't
<khaase> but this code went to a few iterations
<khaase> it seems to not leak memory
<Uranio> where the objects come from? from a File?
<khaase> but that's kinda not every good
mary5030 has quit [Remote host closed the connection]
sheepman is now known as sheepman|afk
<khaase> I had a typo when setting up the finalizer, and my tests didn't fail, which kinda worries me
<Uranio> let me see... (slow as everything)
mary5030 has joined #ruby
<khaase> this code will potentially have a lot of other ruby projects depend on it, so I don't want to screw this up
msmith has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
troyready has joined #ruby
mjs2600 has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sdwrage has joined #ruby
<Uranio> the fact is, that the Ruby's object system in my opinion, is enough dirty, al that "meta object's game" could be result a a more dirty running APP
Wolland has joined #ruby
dkamioka has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
sheepman|afk is now known as sheepman
camilasan has quit []
<Uranio> I would insert an GS.start in the last line of the def __clearobj__(thread_id) methods
Port3M5[Work] has quit [Remote host closed the connection]
mary5030_ has joined #ruby
razrunelord has joined #ruby
<Uranio> GS.start if @map.delete(thread_id)
budrose has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<khaase> I don't want to control GC manually in the library code
<khaase> also, I don't see how that would help testing the finalizer
<Uranio> ok, so, I miss understanding you, I guest you try to reduce dirty in the code
robbyoconnor has quit [Ping timeout: 252 seconds]
<khaase> do you think that code is dirty?
<shevy> haha
thams has joined #ruby
<shevy> khaase you are dirty°!
bleak has joined #ruby
davidcollom is now known as davidcollom_
<shevy> you have a lot of dirty in your code man
<Uranio> and generate dirty
<shevy> lol
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy> you even generate dirty!
<Uranio> I think taht when you touch the object system, dirty come out
blackmesa has quit [Quit: WeeChat 0.4.2]
<Uranio> in my irrelevant opinion
mary5030 has quit [Ping timeout: 260 seconds]
<Uranio> @map[Thread.current.object_id] || __setobj__(@default.dup)
cloud|nix has quit [Remote host closed the connection]
<Uranio> god save the RAM
tgkokk has joined #ruby
tcopp has joined #ruby
<khaase> Uranio
<khaase> how would you write it less dirty?
dkamioka has joined #ruby
<Uranio> khaase: no idea... simply I do not put my hand in the ruby object system so deep
SHyx0rmZ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Uranio> Garbage System is the under carpet dust in ruby Object system
OdNairy has joined #ruby
<Uranio> (IN MY NOT IMPORTANT OPINION)
<Uranio> DRY ecist only for justify the Garbage problem
<droptone> question: with RestClient, I got the API call to work, but it required me putting the API key at the beginning of the URL followed by the base URL of the API
<Uranio> %s/ecist/exist/
Kricir has joined #ruby
sheepman is now known as sheepman|afk
<droptone> how do I go about inserting two variables seperated by an @ symbol?
<droptone> into the URL call?
<droptone> such as APIKEY @ APIURL
yarou has joined #ruby
<Uranio> khaase: I suggest you reading "Ruby under the miscroscope"
andikr has quit [Remote host closed the connection]
kaliya has quit [Quit: Lost terminal]
<khaase> Uranio: I am well aware of it, thanks
<Uranio> droptone: "user:pass@#{var}/someplace.com"
zz_jrhorn424 has quit [Quit: ZNC - http://znc.in]
<Uranio> where the con comillas dobles " #{YOUR_VAR_HERE} "
barratt has quit [Ping timeout: 260 seconds]
<Uranio> khaase: yourwelcome
canton7-mac has quit [Quit: Leaving]
blackmesa has joined #ruby
<khaase> mkay, someone ping me if anyone has something more constructive
RaCx has joined #ruby
sdwrage has joined #ruby
<droptone> Uraino: so if I wanted to use the two variables APIKEY and APIURL
<droptone> what would the exact RestClient syntax be?
<droptone> if the two variables were seperated by an @
<droptone> so APIKEY@APIURL
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
nhhagen_ has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 252 seconds]
tcopp has quit [Ping timeout: 272 seconds]
<Uranio> droptone: puts "#{APIKEY}@#{ARPIURL}"
<shevy> droptone see
<shevy> you use #{} in a string
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> but you could also do this
ringaroses has quit [Quit: Leaving]
<shevy> puts APIKEY+APIURL
<shevy> prooops
<shevy> puts APIKEY+'@'+APIURL
<shevy> provided that both are strings
<shevy> and exist
pietr0 has quit [Quit: pietr0]
khaase has left #ruby ["Leaving..."]
nateberkopec has joined #ruby
kindjal has joined #ruby
<Uranio> droptone: but APIKEY taste like a constant, better use apikey
<Uranio> downcased
<droptone> Uraino, shevy: thank you
philcrissman has quit [Read error: Operation timed out]
<droptone> ok so wait, damn
<droptone> so if I need to insert an https:// at the beginning
<droptone> is it simply
tymat has joined #ruby
<Uranio> "http://#{APIKEY}@#{ARPIURL}"
arianit has joined #ruby
<droptone> brilliant, thank you
<Uranio> welcome to ruby, the funnies programming lang
<shevy> droptone yes, you can do string manipulation in many ways in ruby
<shevy> string = ''
<Uranio> <<
<shevy> string[0,0] = 'http://'
<shevy> that would prepend
<shevy> and << for appending is simple
Astralum has joined #ruby
thams has quit [Quit: thams]
<shevy> it is very nifty to construct system calls
<Uranio> string.add 'http://'; string.add APIKEY
<shevy> once your string is finished, puts string; system(string)
mikecmpbll has quit [Quit: i've nodded off.]
<Uranio> puts (['http://',APIKEY,'@',APIURL]).join
io_syl has quit [Remote host closed the connection]
ace_striker has joined #ruby
<RubyPanther> Note that "http://" + APIKEY + "@" + "ARPIURL" is 3 methods, and "http://#{APIKEY}@#{ARPIURL}" only has to interpolate 2 times
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
<Uranio> RubyPanther: :D but that is for big boys
Anarch has quit [Ping timeout: 272 seconds]
<RubyPanther> Interpolation is therefore usually better
<shevy> hmm
io_syl has joined #ruby
yasushi has quit [Remote host closed the connection]
<Uranio> RubyPanther: I benchmarked that and is really better
gja has quit [Quit: This computer has gone to sleep]
<shevy> really?
<shevy> do you have that benchmark?
mnemon2 is now known as mnemon
Sawbones has joined #ruby
yasushi has joined #ruby
pietr0 has joined #ruby
<Uranio> shevy: and we forget the C's %s methods
coderdad has quit [Remote host closed the connection]
<RubyPanther> I know because I once claimed interpolation was dirty and ugly and concatenation was better, and they flogged me with benchmarks
<Uranio> shevy: try it you self, I do it with every ruby version
GinoMan has joined #ruby
<Uranio> RubyPanther: dirty to see, cleaned to run
zoscoy has joined #ruby
<RubyPanther> it becomes obvious without a benchmark if you just count method calls
phutch1n1 has quit [Ping timeout: 265 seconds]
poulson has quit [Ping timeout: 248 seconds]
tylersmith has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Uranio> conlusion #1 organized people shall use python
<RubyPanther> foo + bar is better than "#{foo}#{bar}", 1 to 2. "prefix" + foo + "middle" + bar + "postfix" now that is 4 to 2, the interpolation didn't grow
<shevy> Uranio %s is hard to remember for me
coderdad has joined #ruby
<Uranio> shevy: some things like:
<Uranio> puts "esto es una cadena %s" % Time.now.to_s
<RubyPanther> But to clean up interpolation you can always use sprintf :) <3 <3 <3
<shevy> RubyPanther hmm but "" alone also instantiates a new string object right? so "#{foo}#{bar}" should be 3 calls in total
jbueza has joined #ruby
<shevy> Uranio esto es un canadian?
<Uranio> puts "and this is rounded %1d" % Math::PI
mjs2600 has joined #ruby
<RubyPanther> shevy: "" has a special optimization in the parser, and it doesn't add noticable overhead
<Uranio> shevy: chain => cadena (string for us) cadena de caracteres 'character's chain'
<shevy> canadian chains?!
jonah_k_ has joined #ruby
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
yasushi has quit [Ping timeout: 265 seconds]
<shevy> hmm who was that canadian lately here
<shevy> Drwood or something
bigkevmcd has quit [Quit: Ex-Chat]
<Uranio> shevy: their are very cool people, will not "jump" for that
jonah_k has quit [Ping timeout: 265 seconds]
poulson has joined #ruby
lyanchih_ has quit [Ping timeout: 272 seconds]
maasha has quit [Quit: Page closed]
nhhagen has joined #ruby
v0n has joined #ruby
coderdad has quit [Ping timeout: 252 seconds]
Avahey has joined #ruby
philcrissman has joined #ruby
mocfive has joined #ruby
<ddd> well, my typing speed is going to go to shit. the dog just broke my damned R pinkie finger catching it in his leash when he ran under the truck.
fedesilv_ has joined #ruby
carraroj has joined #ruby
<ddd> taped to hell atm. here's to a long assed day it seems
chipotle has quit [Quit: cya]
pierre1_ has quit [Ping timeout: 265 seconds]
retnuh has joined #ruby
Thanatermesis has quit [Read error: Connection reset by peer]
alex88 has quit [Quit: Leaving...]
aloitius_ has joined #ruby
vlad_starkov has joined #ruby
fedesilva has quit [Read error: Connection reset by peer]
fedesilv_ has quit [Remote host closed the connection]
claymore has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
fedesilva has joined #ruby
davidcollom_ is now known as davidcollom
<shevy> hehehe
<shevy> already wondered why you did not respond
<shevy> knocked out by a mini dog!
MplsGreg has joined #ruby
RaCx has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ddd> hah if you consider a pit bull a mini dog
Anarch has joined #ruby
cj3kim has joined #ruby
skaflem has quit [Ping timeout: 252 seconds]
mrsolo has joined #ruby
<Uranio> RubyPanther: RubyVM::InstructionSequence.compile('"a"+Time.now').disassemble
jbueza has joined #ruby
<Uranio> RubyPanther: RubyVM::InstructionSequence.compile('"a #{Time.now}"').disassemble
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
philcrissman has quit [Remote host closed the connection]
mehlah has joined #ruby
enricostn has quit [Remote host closed the connection]
petey_ has quit [Remote host closed the connection]
petey_ has joined #ruby
chihhsin_cloud has joined #ruby
scarolan has quit [Remote host closed the connection]
zz_jrhorn424 has joined #ruby
<Uranio> is a interesting experiment
mikecmpbll has joined #ruby
coderdad has joined #ruby
Czupa has joined #ruby
subbyyy has joined #ruby
<Uranio> is a shime that khaaser is not here
nichtdiebohne has joined #ruby
SCommette has joined #ruby
mehlah has quit [Client Quit]
burlyscudd has joined #ruby
iceden has joined #ruby
Targen has joined #ruby
mansi has quit [Remote host closed the connection]
pel_daniel has joined #ruby
scarolan has joined #ruby
serp` has quit [Quit: serp`]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeade has joined #ruby
<Uranio> RubyPanther: but just the fact is not who methods is more efecient, ruby filosofy do not come with that
petey_ has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
<Uranio> (we are the master, computers are the slaves)
camilasan has joined #ruby
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has quit [Ping timeout: 260 seconds]
mercwithamouth has joined #ruby
x77686d has quit [Quit: x77686d]
jlebrech has quit [Quit: Konversation terminated!]
mansi has joined #ruby
Findegil has quit [Quit: Textual IRC Client: www.textualapp.com]
colli5ion has quit []
budrose has joined #ruby
budrose has quit [Max SendQ exceeded]
mrsolo has quit [Quit: Leaving]
rayners has quit [Remote host closed the connection]
mrsolo has joined #ruby
kevind_ has joined #ruby
Solnse has joined #ruby
slowcon has quit []
blackmesa has quit [Ping timeout: 265 seconds]
RaCx has quit [Ping timeout: 265 seconds]
rayners has joined #ruby
Hobogrammer has joined #ruby
kevind has quit [Ping timeout: 252 seconds]
kevind_ is now known as kevind
TMM has quit [Quit: Ex-Chat]
grzywacz has quit [Ping timeout: 252 seconds]
hostess has quit [Ping timeout: 248 seconds]
Thanatermesis has joined #ruby
nhhagen has quit [Remote host closed the connection]
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
carraroj has quit [Ping timeout: 272 seconds]
pigzzcanfly has quit [Remote host closed the connection]
milhite has joined #ruby
klaut has quit [Remote host closed the connection]
Kricir has joined #ruby
frem_ has joined #ruby
jbueza has joined #ruby
frem_ is now known as frem
hostess has joined #ruby
jbueza has quit [Client Quit]
carraroj has joined #ruby
carraroj has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
rootshift_ has joined #ruby
intuxicated has quit [Read error: Connection reset by peer]
banister has joined #ruby
yarou has quit [Remote host closed the connection]
bleak2 has joined #ruby
bleak has quit [Ping timeout: 272 seconds]
sailias has quit [Remote host closed the connection]
dingus_khan has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jbueza has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
Targen_ has joined #ruby
pranny has joined #ruby
soheil has joined #ruby
jbueza has quit [Client Quit]
Targen has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
timonv has joined #ruby
Mongey has quit [Quit: Mongey]
nhhagen has joined #ruby
hobodave has joined #ruby
skaflem has joined #ruby
oracal has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
MplsGreg has quit [Remote host closed the connection]
evenix has joined #ruby
makara has joined #ruby
agjacome has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
SCommette has quit [Quit: SCommette]
pigzzcanfly has joined #ruby
jonah_k_ is now known as jonah_k
msmith has joined #ruby
ace_striker_ has joined #ruby
ace_striker has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
mehlah has joined #ruby
OdNairy has quit [Read error: Connection reset by peer]
evenix has quit [Ping timeout: 260 seconds]
axl_ has quit [Quit: axl_]
<tubbo> RubyPanther: there's a dev on our team that interpolated like this: "Error: " % [error_message]
<tubbo> :D
<tubbo> turns out "" % String.new == sprintf?
OdNairy has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
<Uranio> Kernel::sprintf
jbueza has joined #ruby
ace_striker_ is now known as ace_striker
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
coderdad has quit [Read error: Connection reset by peer]
coderdad_ has joined #ruby
<apeiros> tubbo: yes, but above interpolation is pointless :)
kidoz has joined #ruby
<RubyPanther> lol
<apeiros> (no placeholder)
carlyle has quit [Remote host closed the connection]
cocotton has quit [Quit: Page closed]
<RubyPanther> errors in yer errors
<apeiros> >> "%{greeting} %{entity}!" % {greeting: 'Hello', entity: 'world'}
poulson has quit [Remote host closed the connection]
<eval-in_> apeiros => "Hello world!" (https://eval.in/104317)
arianit has quit [Read error: Operation timed out]
<RubyPanther> That ain't your daddy's sprintf
<apeiros> nope
abk has joined #ruby
<shevy> hmm
<shevy> that is not very pretty :(
dseitz has joined #ruby
<shevy> one of the scariest hello world examples I have ever seen, come to think about it
dseitz has quit [Max SendQ exceeded]
nhhagen has quit [Remote host closed the connection]
<apeiros> it's prettier when you don't use literals
dseitz has joined #ruby
<apeiros> and then it's very handy and readable
budrose has joined #ruby
<apeiros> "%{salutation}, %{first_name} %{last_name}" is a lot more telling than "%s, %s %s"
cj3kim has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
dubsteph has joined #ruby
x77686d has joined #ruby
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
centrx has joined #ruby
nowthatsamatt has quit [Remote host closed the connection]
dubsteph has quit [Read error: Operation timed out]
sepp2k has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
tcopp has joined #ruby
kennym_ has quit [Remote host closed the connection]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
Cyrus has quit [Quit: Leaving]
Targen_ has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
ikaros has quit [Quit: Ex-Chat]
tymat has quit [Quit: Leaving]
subbyyy has quit [Read error: Operation timed out]
yeticry_ has joined #ruby
carraroj has quit [Ping timeout: 252 seconds]
m104 has joined #ruby
phutch1ns has joined #ruby
p8952 has quit [Quit: Leaving]
<tubbo> apeiros: interesting
pigzzcanfly has quit [Remote host closed the connection]
<tubbo> he's a C developer usually but when he does stuff with ruby i catch him interpolating sprintf-style :)
opter has joined #ruby
<apeiros> I use sprintf all the time. it's comfortable for a couple of situations.
SCommette has joined #ruby
<apeiros> and for simple templates I wouldn't want a heavy-weight like ERB
<RubyPanther> <3 <3 <3 sprintf
tcopp has quit [Ping timeout: 252 seconds]
<opter> Can anyone provide any direction on how to make a POST or GET request with Siteminder Authentication SSO via ruby?
Viridisignis has joined #ruby
yeticry has quit [Ping timeout: 272 seconds]
<Uranio> RubyPanther: Kernel::sprintf ('this is rounded %1d' % Math::PI)
<certainty> <3 format
<RubyPanther> Uranio: >> puts "%.772f" % Math::PI # Ruby can't even make it to the Feynman Point!
mocfive has quit [Ping timeout: 260 seconds]
davidcollom has quit [Remote host closed the connection]
pabloh has quit [Quit: Saliendo]
pfg has joined #ruby
TMM has joined #ruby
aaronmcadam has joined #ruby
davidcollom_ has joined #ruby
davidcollom_ is now known as davidcollom
<apeiros> IEEE754 can't make it to the feynman point…
<apeiros> (but I guess you know that already)
scarolan_ has joined #ruby
<RubyPanther> lol yeah
MplsGreg has joined #ruby
Shidash has joined #ruby
<apeiros> I thought there had been a bigdecimal method to produce an arbitrarily precise π
<RubyPanther> That is why I wrote the pipie gem with PiPie.Feynman
MplsGreg has quit [Remote host closed the connection]
* Eiam guts angular from his projects
<Eiam> fuck this stuff, gives me the sproutcore heebie-jeebies
<dideler_work> in ruby, is there a shorter way to do `if s == 'foo' || s == 'bar'`?
<RubyPanther> and PiPie.π
geggam has quit [Ping timeout: 252 seconds]
<Eiam> %w{bar foo}.include?(s)
<RubyPanther> I only included a million digits though
<apeiros> s =~ /\A(?:foo|bar)\z/
scarolan has quit [Ping timeout: 265 seconds]
<Eiam> apeiros: seriously....
<apeiros> IT'S FAST!
<dideler_work> lol thanks, guess i'll stick with the original, more readable
VTLob has quit [Quit: VTLob]
<Eiam> for the computer. not for anyone trying to read it.
<apeiros> pffft
* apeiros reads like a computer
<certainty> dideler_work: how is that more readable than the #include? version?
<Eiam> uh huh.
<centrx> dideler_work, ['foo', 'bar'].include?(s) is the standard way
<Eiam> dideler_work: pretty sure my version is more standard =)
<apeiros> for 2 elements, I find the || variant reasonably readable
vipinj has joined #ruby
<Eiam> sure, i didn't think his wasn't readable
<apeiros> I wouldn't use the regexp way with literals
<certainty> pff, doesn't scall
<Eiam> he asked for a ruby shorter way
<certainty> scale, even
mib_mib has joined #ruby
bricker has joined #ruby
<RubyPanther> maybe or instead of || too
<apeiros> I would use the regexp with lots of values, though
madb055 has quit [Quit: Konversation terminated!]
<Eiam> yeah, as soon as you want to do 1 more check, the array include works better since you just add the one more word
yarou has joined #ruby
madb055 has joined #ruby
dkamioka has quit [Remote host closed the connection]
<RubyPanther> Humans can read regex because they exist across all languages
solars has joined #ruby
<shevy> lol
lethjakman has joined #ruby
<dideler_work> ok, maybe i'll use include? then. || is more readable to me, coming from other languages. but when in rubyland
xrq```` is now known as xrq
<lethjakman> is there a way with TempFile to delete that file after 10 minutes?
xrq has quit [Changing host]
xrq has joined #ruby
<shevy> lethjakman cool question hmm
<Eiam> dideler_work: I don't think there is anything "wrong" with the ||. *shrug*
<RubyPanther> || and or are used differently in Ruby
waheedi has joined #ruby
<shevy> lethjakman how about: Thread.new { sleep 10*60; remove_bla }.join ?
v0n has quit [Quit: WeeChat 0.4.3]
<centrx> lethjakman, Why?
v0n has joined #ruby
<lethjakman> shevy: hmmm...I suppose I could background that.
<lethjakman> the real problem is I'm trying to figure out in rails how to upload a file, and if the user doesn't crop it within 10 minutes delete it.
<lethjakman> sort of a temporary upload that's onli finalized once we have a cropped image from the.
<certainty> i'd offload those tasks to cron *shrug*
<lethjakman> certainty: yeah...I just don't quite like that solution.
philcrissman has quit [Remote host closed the connection]
<lethjakman> seems like it'd be slow if i got too many images
<centrx> lethjakman, I would set up a rake task that clears old temp files, runs every X minutes
<apeiros> lethjakman: you can also just purge on every upload
<apeiros> i.e. before processing a new upload, delete old ones
fijimunkii has joined #ruby
sailias has quit [Remote host closed the connection]
<certainty> problem with the cron aproach is that it could wipe files that are currently in use, so probably not
<RubyPanther> lethjakman: generally you do a runtime test that will delete it if it is stale, and then do an infrequent (eg, daily) purge of the unused ones
<apeiros> certainty: every approach has to solve that
<RubyPanther> cron can easily delete old files
<certainty> apeiros: it's easier from the ruby side though
jbueza has joined #ruby
koalalla1a is now known as koalallama
<dideler_work> curious why i can't do: .include? s
geggam has joined #ruby
<apeiros> certainty: cron can run ruby…
<dideler_work> i thought parentheses were optional?
<apeiros> in fact, I think all my cron tasks are ruby jobs
<RubyPanther> Here is a script I use to find recent files in big directories: Dir.glob("**/*").find_all{|f|File.file?(f) and ( Time.now - File.ctime(f) ) < ( 3600 * ((ARGV[0] ? ARGV[0].to_i : false) || 24) ) }.sort.each{ |f| puts f}
<lethjakman> centrx: that could delete a file someone is currently working with though.
<apeiros> dideler_work: they are. but precedence matters too. why?
<lethjakman> apeiros: it needs to be done in two uploads
<lethjakman> RubyPanther: hmmm, I do like the daily purge idea...
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
abk has quit [Quit: Leaving]
<lethjakman> there's always the chance someone could try to be malicious though
<lethjakman> constantly upload hundreds of images.
<lethjakman> things are never as easy as I'd like them to be.
<droptone> Can anyone provide any examples of parsing JSON data?
<dideler_work> apeiros: rails gives me an error when i leave out the parenthesis but not when i include them. not a big deal, i'll just leave them in
<certainty> apeiros: i have many too. i was confusing things, i thought that he can delete them once he doesn't need them anymore, but he wanted it timed anyway
sailias has joined #ruby
<apeiros> dideler_work: rails has nothing to do with parens or no parens ;-)
<apeiros> dideler_work: and the reason probably is precedence, as I already mentioned
mehlah has quit [Quit: Linkinus - http://linkinus.com]
<apeiros> `include?(a) && include?(b)` is not the same as `include? a && include? b`, due to &&'s precedence.
<RubyPanther> >> require 'json' ; JSON('{"buckle":"shoe"}')['buckle'] # droptone
<eval-in_> RubyPanther => (https://eval.in/104318)
sdwrage has quit [Quit: This computer has gone to sleep]
Fire-Dragon-DoL has quit [Quit: Leaving.]
roolo has joined #ruby
Mongey has joined #ruby
monkegjinni has joined #ruby
x77686d has quit [Quit: x77686d]
dkamioka has joined #ruby
mocfive has joined #ruby
yfeldblum has joined #ruby
MplsGreg has joined #ruby
echevemaster has joined #ruby
carlyle has joined #ruby
Mongey has quit [Client Quit]
subbyyy has joined #ruby
kayamm has quit [Quit: part]
qubit has left #ruby [#ruby]
awarner has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: Operation timed out]
fmcgeough has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<certainty> i'd probably just find somedir -type f -mtime +1 -delete ... to purge files older than a day.
<RubyPanther> >> [78, 111, 32, 109, 111, 114, 101, 32, 98, 111, 116, 115, 110, 97, 99, 107, 115, 32, 58, 40].map(&:chr).join
<apeiros> RubyPanther: .pack("C*")? :)
decoponio has quit [Quit: Leaving...]
Mongey has joined #ruby
tvw has quit []
aaronmcadam has quit [Ping timeout: 260 seconds]
mehlah has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther> I was trying to obfuscate it, but I guess the bot got mad anyways
<apeiros> ^^
<shevy> no
yarou has quit [Remote host closed the connection]
philcrissman has joined #ruby
<shevy> the bot simply hates panthers
IcyDragon has joined #ruby
MplsGreg has quit [Ping timeout: 252 seconds]
IceDragon has quit [Disconnected by services]
IceDragopn is now known as IceDragon
ultraflash3 has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<droptone> can anyone recommend a tutorial on parsing JSON?
<apeiros> droptone: lulwtf?
<droptone> I'm now successfully pulling JSON data via this API
<RubyPanther> apeiros: pack is the road to perl
<apeiros> droptone: JSON.parse(data) # done
<droptone> and using JSON.parse(@response)
<centrx> Great tutorial
<RubyPanther> That about covers it
<droptone> right, but, as far as actually querying the individual elements, and what can be done with JSON.parse
<Uranio> droptone: diccionario=JSON.parse (RestClient.post ...)
ferr has joined #ruby
<shevy> in a module... def Foo.bar vs. self.bar ... you guys would prefer self.bar right?
<Uranio> diccionarios.class => Hash
<centrx> It creates Ruby objects...
<RubyPanther> There are no json elements in parsed json
subbyyy has quit [Ping timeout: 260 seconds]
sailias has quit [Remote host closed the connection]
<droptone> Uranio: interesting, thank you
subbyyy_ has joined #ruby
<RubyPanther> That is 100% of the reason it gets used :)
Guest___ has joined #ruby
sailias has joined #ruby
<apeiros> droptone: after JSON.parse, you don't have json anymore
<droptone> Ruby: so, I've successfully pulled this JSON data and parsed it, and it returns a series of users with a series of email addresses and other paremters
<RubyPanther> Goes back to _why's post on RedHanded where he pointed out that JSON was YAML, or YAML was JSON, or something
<apeiros> so a *json* tutorial wouldn't get you anywhere
coderdad_ has quit [Remote host closed the connection]
<droptone> so therefore, say I wanted to list all email addresses
<Uranio> RestClient.post apiurl,diccionarios.to_json
ultraflash3 has quit [Read error: Operation timed out]
<apeiros> JSON can contain: String, Float, Array, Hash, nil, true, false
acrussell has quit [Quit: Leaving.]
<Uranio> droptone: the resutl od JSON.parse i a Hash
<apeiros> Uranio: can be an array too
<Uranio> droptone: the result oF JSON.parse iS a Hash
<Uranio> a Ruby object
recurrence has joined #ruby
<droptone> ahh, I see
<droptone> Uranio: thank you
<Uranio> droptone: to me and apieros
<apeiros> tab. completion. srsly guys.
<apeiros> don't type nicks manually if you fail at it
rins has joined #ruby
<RubyPanther> don't tab nicks automatically if you fail at it, either
rootshift_ has joined #ruby
<Uranio> press aTAB and you will see
<apeiros> Rudde: whatever you mean…
<certainty> >> def o(*meths); proc{ |r| meths.reduce(r){ |c,m| c.send(m) } }; end; %w(emmig skCanS).map(&o(:reverse,:downcase)).join " "
<eval-in_> certainty => "gimme snacks" (https://eval.in/104341)
<certainty> bot loves me
sumark has quit [Remote host closed the connection]
<RubyPanther> I kinda like the name apieros though. A lover of APIs.
<shevy> lol
<shevy> apieros rocks
coderdad has joined #ruby
saarinen has joined #ruby
sambao21 has joined #ruby
apeiros is now known as apieros
<shevy> I think that bot has like a blacklist
korzybski has joined #ruby
stryek has joined #ruby
yarou has joined #ruby
apieros is now known as aperios
aperios is now known as apeiros
<shevy> >> add_blacklist :certainty
<eval-in_> shevy => undefined method `add_blacklist' for main:Object (NoMethodError) ... (https://eval.in/104345)
mib_mib has quit [Ping timeout: 245 seconds]
sumark has joined #ruby
<shevy> hmm
sheepman|afk is now known as sheepman
pietr0 has quit [Quit: pietr0]
<apeiros> so, grouped those abberations with my account. now all I need is a bot which runs as apieros and aperios and autosmacks everybody saying it wrong :D
<centrx> >> add_shevy :blacklist
<eval-in_> centrx => undefined method `add_shevy' for main:Object (NoMethodError) ... (https://eval.in/104346)
GinoMan has quit [Read error: Operation timed out]
<shevy> apeiros or you could remove the 'e' from your nick :)
<apeiros> shevy: then it would be wrong.
<Uranio> "piros" sound like fire
<shevy> actually, I did not yet see aperios ... did people really try to use that nick as well?
SCommette has quit [Quit: SCommette]
<shevy> Uranio isn't that more like fuego or something with f*
petey_ has joined #ruby
sheepman is now known as sheepman|afk
einarj has quit [Remote host closed the connection]
f3ttX] has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
pietr0 has joined #ruby
<shevy> hmm got a question
<shevy> in IRB when a method is not existing, I get an error such as this:
<shevy> NameError: undefined local variable or method `foo' for main:Object
<shevy> what would I have to do to pass these errors to a method of my choosing, before I give out that error? define method_missing on class Object would suffice?
MplsGreg has joined #ruby
<RubyPanther> rescue it
jbueza has joined #ruby
<apeiros> method_missing on Object is a long rope to hang yourself with…
<shevy> hmmm
<apeiros> but yes, that would work
<apeiros> rescuing it is certainly the better choice
<apeiros> (if applicable)
<shevy> okay thanks
<droptone> ok, so once I parse the JSON and print it, this is the result: https://gist.github.com/anonymous/e49dea02d8c28da10901
blackmesa has joined #ruby
<droptone> how do I reference those individual objects? such as user.address?
<Uranio> but rescue load a sub-runtime :-/
<droptone> or address_1 rather
pigzzcanfly has joined #ruby
<apeiros> droptone: by learning ruby. sorry.
<centrx> droptone, Look up how to use Arrays and Hashes in Ruby
<apeiros> droptone: {} <-- hash
<apeiros> droptone: [] <-- array
<droptone> right, I'm aware of that
* Uranio we almost writing the program for droptone :D
<apeiros> some_hash[some_key]
<apeiros> some_array[some_index]
itadder has joined #ruby
<apeiros> and in json, all keys will be strings, so: some_hash["some_key"]
<droptone> ahh, I see
<apeiros> droptone: and now fire up irb - or better yet pry, and try around
<droptone> will do, appreciated
<itadder> so what the big deal with regexp in ruby
<apeiros> because really, this channel isn't meant to spoon feed you ruby 101
<centrx> These tutorials are getting better and better
<itadder> apeiros: oh
<Uranio> droptone: IRB is your friend...
<itadder> centrx: which tuorial is that
<droptone> I see, #ruby isn't for learning ruby
<centrx> The apeiros show
<itadder> droptone: #learnruby
<apeiros> droptone: you're misrepresenting what I said
<itadder> or ##learnruby
<itadder> let start that channel
<apeiros> droptone: this is not #yourpersonalrubytutorial
x77686d has joined #ruby
<apeiros> itadder: IMO a great idea
<droptone> lol
<apeiros> (not sarcastic!)
olivier_bK has joined #ruby
<itadder> were it can be a personal ruby channel
<certainty> hard to tell
<itadder> I see why not
evenix has joined #ruby
<apeiros> if there are people, who like to teach other people ruby, more power to them
<apeiros> but IMO, this channel isn't for that
<itadder> I feel irc is not just for chating, its for learnign and teaching
<Uranio> everybody forget how long time their was newb too, and nobody answer their newb questions
<droptone> yes, #ruby is not for teaching ruby
<droptone> understood
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> droptone: seriously, stop being an ass. that's not what I said.
dnyy has joined #ruby
MplsGreg has quit [Ping timeout: 252 seconds]
<droptone> lol
<certainty> #ruby is all about minerals
xbob_ has joined #ruby
<Uranio> droptone: better keep asking you newb question, and constribuite to avoid "channel dead"
<shevy> droptone these strings on one line are hard to read, try to use pp before: require 'pp'; pp your_object, this will give you a properly formatted string, then you can quickly see where the hashes and arrays are, and you can then quickly find the right elements via [] method calls
xbob_ has quit [Read error: Connection reset by peer]
<Uranio> require 'pp'
<shevy> ideally of course, the simpler your data structures the better
<shevy> how you guys can work with those fat json mixed hash/arrays is mysterious to me anyway
xbob_ has joined #ruby
<droptone> shevy: thank you
xbob_ has left #ruby [#ruby]
<apeiros> shevy: they usually have a basic structure
fedesilv_ has joined #ruby
<Uranio> shevy: speaking about "simple see", use JSON.pretty_generate and you will see it better
<shevy> damn... now I am searching for lolcats :(
<certainty> time to hunt something eatable down
<shevy> aha
<shevy> now JSON.pretty_generate sounds nice
* apeiros hands certainty a spear
<apeiros> good luck!
caveat- has quit [Ping timeout: 245 seconds]
<apeiros> bring me some too, please
<shevy> Uranio you made it into my local docu ;)
<certainty> apeiros: thanks. This salad will be scared to death :) i'm a vegetarian
<apeiros> oh, nvm about bringing me some too
* apeiros is scared of salads
Guest___ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Uranio> shevy: or IO.write 'ejemplo.yaml',big_hash.to_yaml and look at it
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cantonic has joined #ruby
<centrx> You can't make friends with salad.
kindjal has joined #ruby
Wolland has quit [Remote host closed the connection]
xbob has joined #ruby
evenix has quit [Remote host closed the connection]
<RubyPanther> In Soviet Russia, salad makes friends with you
tgkokk has quit [Ping timeout: 252 seconds]
<apeiros> yeah, when I'm cornered by salad, I stab it repeatedly with a fork, until it stops staring at me
<shevy> I use yaml a lot Uranio
<Uranio> then put in in a yaml, wrote in a file and read sloooowwwlyyyy
evenix has joined #ruby
<shevy> sure, as long as I can avoid json!
Solnse has quit [Quit: Leaving.]
<RubyPanther> The burrito is the ultimate geek food. You can hide your veggies in there, where you don't have to see them.
aspires has quit []
<certainty> RubyPanther: also burrito == monad
<shevy> what is the burrito again
fedesilva has quit [Read error: Connection reset by peer]
<RubyPanther> lolol
<Uranio> shevy: a mexican food elaborated in USA
<shevy> ah ok
chipotle has joined #ruby
<shevy> we here have more the italian mafia
<shevy> keep the mexican mafia away from here thx :)
ace_striker has quit []
<RubyPanther> like a pita with the top folded over
* certainty &
timonv has joined #ruby
<RubyPanther> and 3-5 food groups inside
<shevy> pain in the ass?
<RubyPanther> no that is PITA
<shevy> aha
aspires has joined #ruby
fedesilv_ has quit [Remote host closed the connection]
<shevy> in PHP it would be indistinguishable
banister has joined #ruby
<centrx> PHP is an abomination and a scourge on the face of the earth.
<RubyPanther> I'm not surprised PHP can't tell its food from its ass
<shevy> you said that already centrx :)
fedesilva has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
<shevy> that's almost bash.org worthy
<Uranio> PHP => poors health promotions
subbyyy_ has quit [Read error: Operation timed out]
<Uranio> shevy: and what about Perl and Lua
<Uranio> ??
<certainty> speaking of php. http://ph7.symisc.net/
<shevy> Uranio well lua has a fairly solid niche
caveat- has joined #ruby
<shevy> the guy who wrote htop also is the core maintainer of luarocks
<centrx> I will keep saying it until PHP is used only by a small remote community of villagers huddling in a cave yearning for the light.
<RubyPanther> If you know the difference between Perl and perl you've never get confused by pita and PITA
<Uranio> generate rand secure string: IO.read('somescript.pl')
<certainty> i saw applications where people claimed to know Pearl. *That* scared me
evenix has quit [Ping timeout: 260 seconds]
<RubyPanther> Perl hasn't been Pearl since the 80s
VTLob has joined #ruby
<RubyPanther> Obviously somebody who never made it to a solstice festival
<Uranio> RubyPanther: xD stable
bjarkih has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
Virtualize|away has quit [Quit: Leaving...]
RaCx has joined #ruby
oracal has quit [Remote host closed the connection]
ciwolsey has quit [Remote host closed the connection]
<shevy> perl
<shevy> who is using that still
tcopp has joined #ruby
<shevy> fossil coders
einarj has joined #ruby
oracal has joined #ruby
billy_ran_away has quit [Ping timeout: 260 seconds]
kayamm has joined #ruby
pontiki_ is now known as pontiki
mikepack has quit [Remote host closed the connection]
<Uranio> my girl-friend radiaclly say something like: "interpreted programs that are not writed in perl, are craps"
mocfive has quit [Ping timeout: 252 seconds]
billy_ran_away has joined #ruby
RaCx has quit [Ping timeout: 264 seconds]
axl_ has quit [Quit: axl_]
<apeiros> Uranio: sounds like your GF is quite dogmatic
<shevy> or old
einarj has quit [Remote host closed the connection]
<pontiki> hey!
<certainty> my wife doesn't even know that there is such a think
<pontiki> :(
yekta has joined #ruby
<shevy> at work, the folks are like +10 years and they all use perl. I am the exotic dude who writes in ruby (but they gave me a windows machine as punishment :( )
<certainty> thing, even
<shevy> *+10 years older
<shevy> i.e. perl hipster generation
<slash_nick> my girlfriend likes the "make me a sandwich" - "no" - "sudo make me a sandwich" joke... that's about as in the know as she is
<pontiki> haha windows machine
burlyscudd has quit [Quit: Leaving.]
<shevy> wow, you must beg for sudo rights with her slash_nick?
tcopp has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
<shevy> pontiki it's not funny! it's sad :(
<certainty> poor shevy
jack_rabbit has joined #ruby
<shevy> but at least there is putty available and I can login to the different servers
<pontiki> neither is being old
Wolland has joined #ruby
<certainty> but hey you can do F# there
<certainty> !
<shevy> haha true pontiki
<shevy> as long as ruby works it is not so bad
koell has joined #ruby
jzig has joined #ruby
<shevy> but the whole infrastructure uses ubuntu or debian, and on the webserver they have only ruby 1.8.7 and on their database server they have only 1.9.3, it kills my mind...
cj3kim has joined #ruby
<lpvn> I don't know why extreme opinions are so popular among programmers
madb055 has quit [Ping timeout: 252 seconds]
<shevy> lpvn: vim rocks, emacs sucks
<Uranio> shevy: must using sudo when you do not give her some thing for expend a wile naked thinking the craps that womans think after you make to her *you know what* at 100%
<lpvn> shevy, lol
<slash_nick> i've been using 1.8.5 lately... i don't think there's any chance they'd let me use rubygems in the environment it (that ruby) lives
<shevy> :(
<certainty> lpvn: because most programmers are opinionated guys generally
axl_ has joined #ruby
<shevy> gem really sucked on 1.8.7
mneorr has joined #ruby
DrCode has joined #ruby
<shevy> the IT guys are like in the basement and lazy as fuck
<pontiki> that's how you all determine you pecking order in the pack
<shevy> and years behind the latest source anywhere
fedesilva has quit [Read error: Connection reset by peer]
<pontiki> rank on each other and make fun of people with less skillz than you
<shevy> pontiki it makes me violent!
<lpvn> certainty, yeah I think the personality of the average programmer promotes this kind of mindset
fedesilva has joined #ruby
<certainty> yupp
benlieb has joined #ruby
<shevy> pontiki girls are scheming, I am more the brute-force-sledgehammer-wielding dude
<shevy> very ANGRY
tubuliferous_ has joined #ruby
edwardly_ has quit [Quit: ZNC - http://znc.in]
<pontiki> i'm willing to bet the IT guys have figured out no one else knows what's needed, and urgent requests are here today, gone tomorrow
<certainty> lpvn: though i don't think that there is something wrong with having strong opinions, as long as they have some ground
<shevy> yeah pontiki
edwardly has joined #ruby
<pontiki> so they're actually operating at peak efficiency and effectiveness
<lpvn> certainty, black and white thinking is harmful in the real world
<centrx> False
coderdad has quit [Remote host closed the connection]
<opter> I'm trying to authenticate with a Siteminder server and don't know where to start. Are there any gems for this? All the code examples I see are in C++ or java
<pontiki> and that's an example of it right there
cj3kim has quit [Ping timeout: 260 seconds]
<centrx> False
<certainty> lpvn: agreed, doesn't mean i do just because i may have strong opinions though
keen_ has left #ruby [#ruby]
<shevy> I am used to compile everything from source at home
<shevy> there is no delay, when something is available, it gets compiled
<likemike_> hi how do i apply a regex to a certain location / position in in the string ?
<Uranio> shevy: dou you know about some lisp programmer?
itadder has quit [Remote host closed the connection]
<shevy> Uranio: I hope they are dead
<Uranio> their think the center of the world
<certainty> shevy: huh? i am a lisp programmer
jzig has quit [Ping timeout: 265 seconds]
burlyscudd has joined #ruby
<shevy> certainty :(
<Uranio> IS ALIVE!
* Uranio reload the guns
<shevy> at least noone is using COBOL here
<certainty> ok so much about strong opinions
<certainty> :)
* slash_nick waits for the COBOL guy
* shevy readies a shotgun
KarolisNo has joined #ruby
<shevy> phew
<shevy> this channel is safe
<shevy> certainty how can you survive the jungle of ((()))'s?
<certainty> you ruby guys are just lispers that need syntax sugar on your ASTs
<Uranio> shevy: is armored
<shevy> I saw scheme
<shevy> it scared me
<slash_nick> shevy: ))<>((
<certainty> shevy: with decent tooling. Also i barely see them. I don't look for parens but for structure
<likemike_> hi how do i apply a regex to a certain location / position in in the string ? <- asking again :-)
<shevy> (define (troll-is-critical? ktroll)
<shevy> (< (kern-char-get-hp ktroll) 5))
<shevy> and that is actually code that works!
<certainty> shevy: looks good
poguez_ has quit [Quit: Connection closed for inactivity]
<Uranio> shevy: the other phatom nightmare is erlang (ejabber)
<apeiros> shevy hopes he's dead?
<Uranio> phantom
chipotle has quit [Quit: cya]
<certainty> most of my stuff on bit bucket is scheme libraries for CHICKEN
yekta has quit [Quit: yekta]
kirun has joined #ruby
<shevy> Uranio dunno, I am always impressed when I read about erlang for getting distributed programming and fault-tolerant programming right as in robust
<certainty> lpvn: how do you mean? Can you try to explain what you want to achieve
<apeiros> certainty: do you mean likemike_?
Wolland has quit [Remote host closed the connection]
<Uranio> shevy: yous like Pascal too
<shevy> apeiros just woke up ;)
<certainty> apeiros: oh yeah, tabcomplet fail
agjacome has quit [Ping timeout: 252 seconds]
<apeiros> likemike_: apply it to string[offset..-1]
agjacome has joined #ruby
<shevy> Uranio I think I had to learn it one year in school
<Uranio> offset=string.index('/')
<shevy> perhaps TurboPascal, I am not sure. it was weird... we did only basic math calculations
<apeiros> likemike_: also, some methods accept an offset param
<RubyPanther> I lost my coffee cup. I tried debugging the problem, but I don't even know where to start.
<certainty> shevy: like really impressed or sarcastically impressed?
<Uranio> shevy: in others dark times, and other countries, peoples must write Delphi programs
<Uranio> (pascal)
<lpvn> certainty, do not take the my name in vain lol
<likemike_> apeiros: certainty umhmm
<certainty> RubyPanther: first try to reproduce it. Can you lose it again?
<RubyPanther> When I was child, growing up in the BBS, we didn't have web sites we had to write DOOR games in pascal
<pontiki> certainty: have you worked with clojure?
<RubyPanther> certainty: Nope :(
Wolland has joined #ruby
Matriks has joined #ruby
<certainty> pontiki: yes to some extend
<shevy> certainty erlang? the basic idea yeah. the syntax not, I dunno, it seems not very elegant at all
<certainty> RubyPanther: you're lost
<pontiki> i just picked up a couple books, am diving in
Mongey has quit [Quit: Mongey]
<certainty> pontiki: it is really an interesting lisp.
caveat- has quit [Ping timeout: 252 seconds]
joelroa_ has quit [Ping timeout: 272 seconds]
<RubyPanther> wait, am I lost, or is the cup lost? this is getting worse
<shevy> pontiki books like ... "ponwiki's quest on a unicorn"?
<certainty> RubyPanther: yeah as usual bugs tend to come in clusters
<shevy> hehe
<shevy> incompetence is aggregated in clusters
mansi has quit [Remote host closed the connection]
tvw has joined #ruby
tubuliferous_ has left #ruby ["Leaving"]
aspires has quit []
tubuliferous has joined #ruby
<RubyPanther> aggravated by lack of caffeine lubricant
mansi has joined #ruby
<pontiki> i think i will like the additions of vectors and hash maps
coder_neo has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<certainty> pontiki: what i particulary like about it are its persistent datastructures. Having efficient immutable types is a great win. Clojure is like a good mixture of scheme and haskell
<pontiki> i'm still getting to that
<tubuliferous> pastie: test
<RubyPanther> Larry Wall says Haskell is a language by geniuses, for geniuses.
<pontiki> i played a tiny bit with it in haskell
<shevy> god RubyPanther
<shevy> Larry Wall was hip in the 1980es
<shevy> come enter the 2010es
mansi has joined #ruby
<certainty> yeah larry wall is crazy
<Uranio> oh! :D haskell, the "interactive but tied arms" lang
<shevy> lol
<RubyPanther> He's no less crazy, Larry Wall lasts forever, like Weird Al
<shevy> the "download 100mb to run haskell" lang
KarolisNo has quit [Remote host closed the connection]
<certainty> shevy: you mean haskell-platform?
<shevy> the ghci yeah
caveat- has joined #ruby
coder_neo has quit [Client Quit]
<RubyPanther> He says it is important to know that about Haskell, in case you have to hire people to maintain something
carlyle has joined #ruby
<RubyPanther> It is not like Java with interchangeable monkeys
<shevy> haskell?
yekta has joined #ruby
GinoMan has joined #ruby
<shevy> I'd rather hire a python guy
<RubyPanther> cheaper, to be sure
<likemike_> Uranio: apeiros umh don't really understand an example you gave me...i want to check if for example....123test34test...0..2 are decimal 3..6 chars..7..8 decimals etc
<shevy> I am sure the haskell coders are damn expensive
<apeiros> likemike_: I don't understand your example
neodon has joined #ruby
<certainty> haskell really is cool. I've only scratched the surface with it though. I have a single active project where it's the primary language
<apeiros> likemike_: please give example in- and output
<likemike_> apeiros: kk
x77686d has quit [Quit: x77686d]
<shevy> ack
<shevy> how do you people have so much time for different language projects
<certainty> more important are the ideas behind haskell, that can be applied to any language
Giorgio has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
<Uranio> certainty: just the ideas, like lisp is for ruby how the greek is for Spanish language
mansi has quit [Ping timeout: 252 seconds]
<pontiki> how do you *not*?
<pontiki> learning is
<certainty> Uranio: i don't know if that analogy is correct since i have no idea about real languages :)
xerox357_ has joined #ruby
iliketurtles has joined #ruby
mansi has joined #ruby
einarj has joined #ruby
xerox357 has quit [Read error: Operation timed out]
<iliketurtles> is it OK/good practice to camelCase a module name?
skaflem has quit [Quit: Leaving]
<Uranio> we recently sopke about lenguistic here, where romance langs come from green and almost all from latin
<certainty> i think every programmer should have at least lanugage from each of the major paradigms under his/her belt
<Uranio> certainty: ^
<RubyPanther> If you already have time for Ruby, C, JS, regex, SQL, 3 types of markup, razzle, sazzle, and dazzle, adding a few lines of LISP should be no problem at all.
<certainty> :)
<certainty> Uranio: ah i see
ilyam has joined #ruby
<Uranio> RubyPanther: lisp blow my heads 5 times, I would like to learn it, but (I((get)missing))
sambao21 has joined #ruby
<certainty> ilyam: have you tested it?
<apeiros> likemike_: you can do that in a single regex. you don't need offsets for that.
<Uranio> and almost all the libreries are the doc out of time
<certainty> bah again tabfail
<Uranio> for exmaple weblocks
<certainty> iliketurtles: have you tested it?
sailias has quit [Quit: Leaving.]
<iliketurtles> certainty: I was just curious
<RubyPanther> Uranio: I mostly agree, but I still have to write my ~/.emacs
<apeiros> likemike_: /\A\d{5}[a-z]{11}…/
<likemike_> apeiros: ah do you have some reference ? i have checked in Programming Ruby 1.9&2.0 but could not find it
<likemike_> aha thanks :D
<certainty> <3 emacs
<Uranio> I think lisp is a very good language, but almost all is abandoned nowdays
<apeiros> that's \A for "begins with", and \d{5} for "5 digits" and [a-z]{11} for "11 characters in a-z"
<Uranio> weblock idea is really interestings, aslo hunchentoot
meatherly has quit [Remote host closed the connection]
<certainty> Uranio: i don't think that's true. See clojure
sailias has joined #ruby
<certainty> also guile to name a scheme in wider use
<Uranio> clojure... let me see
<certainty> also there are still many apps written in CL
<likemike_> apeiros: where i can find a better reference for regexes ?
<certainty> but i wouldn't want to touch it if i can avoid it
<RubyPanther> sawfish window manager is making a comeback, it lets you control your windows using scheme
<apeiros> likemike_: `ri Regexp` in your terminal
rm_ has quit [Remote host closed the connection]
kenneth has joined #ruby
grzywacz has joined #ruby
<apeiros> likemike_: links: http://www.regular-expressions.info rubular.com, debuggex
<RubyPanther> I hate scheme/lisp enough I wrote this abomination instead: https://gist.github.com/rubypanther/56688a2a70a882bafd16
rm_ has joined #ruby
<apeiros> whoops, last one is debuggex.com
chrisseaton has quit []
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jack_rabbit_ has joined #ruby
<likemike_> apeiros: i figured that..thanks :) mate
chrisseaton has joined #ruby
chrisseaton has quit [Client Quit]
chrisseaton has joined #ruby
jonah_k has quit [Remote host closed the connection]
aef_ has quit [Remote host closed the connection]
makara has quit [Ping timeout: 252 seconds]
burlyscudd has quit [Quit: Leaving.]
jason^ has quit [Quit: WeeChat 0.4.3]
Atw has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
<certainty> RubyPanther: you run sawfish?
iliketurtles has quit [Quit: zzzzz…..]
rm_ has quit [Ping timeout: 265 seconds]
<certainty> oddly enough i don't run a windowmanager that runs on scheme/cl but xmonad instead
einarj has quit [Remote host closed the connection]
<Uranio> you two shall try i3
fedesilva has quit [Read error: Connection reset by peer]
<RubyPanther> certainty: No, that code is from a public access internet kiosk I prototyped in 2001
Mongey has joined #ruby
sriehl has joined #ruby
francisfish has joined #ruby
<RubyPanther> I used it to disable user access and put up an "INSERT COIN" type screen, without messing up the running apps
ferr has quit [Quit: Lost terminal]
meatherly has joined #ruby
Mongey has quit [Client Quit]
<RubyPanther> but I did read on the interwebs last month that there is a new version of sawfish, and it is the next re-fad
bjarkih has quit [Quit: bjarkih]
<certainty> Uranio: i3 is a tiled manager too right? like xmonad
<Uranio> certainty: yep...
<RubyPanther> What I want is a window manager controlled by Ruby, that isn't tiled
Shidash has quit [Ping timeout: 265 seconds]
<Uranio> specially for multiple monitors
fedesilva has joined #ruby
danshultz has quit [Remote host closed the connection]
<certainty> RubyPanther: "that isn't tiled" is the hard part. Otherwise wmii would do
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<Atw> RubyPanther Why 'not' tiled?
danshultz has joined #ruby
<Uranio> RubyPanther: i3 could be managed form (I do not remember who protocol) that can be used be any lang
<certainty> Uranio: i haven't tried i3 i'm pretty happy with my xmonad
MplsGreg has joined #ruby
<RubyPanther> I don't want an innovative desktop, I just want a higher quality window manager
<certainty> also <3 plan9
weie has quit [Ping timeout: 260 seconds]
<RubyPanther> I already have 17 xterms arranged in tile pattern, why would I want the window manager to get involved?
danshultz has quit [Remote host closed the connection]
subbyyy has joined #ruby
danshultz has joined #ruby
alexju has joined #ruby
<certainty> pontiki: have you looked at elixir?
alexju has quit [Remote host closed the connection]
<pontiki> not yet
<pontiki> avdi has been blogging about it
alexju has joined #ruby
<pontiki> i will
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<RubyPanther> If I can script the wm, I can put my windows in any sort of pattern desired
yeticry has joined #ruby
mmoretti has joined #ruby
<certainty> 17 xterms? sounds like a job for tmux
<certainty> unless you need to see them all
<RubyPanther> tiling wms is like... java chains
joelroa has joined #ruby
<RubyPanther> I actually only have 5 visible at a time, on a dev shell workspace
<pontiki> i used to do that in smalltalk
<RubyPanther> 3 on a sysadmin workspace, etc
einarj has joined #ruby
x77686d has joined #ruby
MplsGreg has quit [Ping timeout: 265 seconds]
Xuisce1 has joined #ruby
mneorr has quit [Remote host closed the connection]
<certainty> i'm not aware of a wm that is scriptable and not tiling. I haven't looked for it though either
<certainty> scriptable in ruy
yeticry_ has quit [Ping timeout: 252 seconds]
<certainty> ruby
mneorr has joined #ruby
<Uranio> certainty: i3 ipc interface
<Uranio> google ^
rismoney has joined #ruby
<Uranio> aand you will script it in the whatever lang you use
Mongey has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
evenix has joined #ruby
<opter> is entering depression :(
pigzzcanfly has quit [Remote host closed the connection]
<certainty> Uranio: but i3 is tiling isn't it?
<pontiki> RubyPanther: i'ma give that a star :)
pigzzcanfly has joined #ruby
SCommette has joined #ruby
iliketurtles has joined #ruby
nichtdiebohne has joined #ruby
<certainty> ok AUR knows elixir, let's build it
KarolisNo has joined #ruby
<centrx> We can rebuild him!
Mongey has quit [Client Quit]
<jsilver> Fuck you
thesheff17 has joined #ruby
TMM has quit [Ping timeout: 265 seconds]
meatherly has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
mneorr has quit [Ping timeout: 252 seconds]
krisbulman is now known as [krisbulman]
meatherly has joined #ruby
joelroa has quit [Ping timeout: 252 seconds]
gregf has joined #ruby
mikepack has joined #ruby
Mongey has joined #ruby
meatherly has quit [Read error: No route to host]
meatherly has joined #ruby
einarj has quit [Remote host closed the connection]
alvaro_o has joined #ruby
yxhuvud has quit [Quit: Leaving]
<havenwood> jsilver: MINASWAN
meatherly has quit [Remote host closed the connection]
yxhuvud has joined #ruby
<Uranio> centrx: I used more than "tab" windows manager
<Uranio> not a tilling
meatherly has joined #ruby
wmoxam_ is now known as wmoxam
TMM has joined #ruby
TMM has quit [Changing host]
TMM has joined #ruby
wmoxam has quit [Changing host]
wmoxam has joined #ruby
<apeiros> havenwood: BNITCOBG :D (be nice in this channel or be gone)
RaCx has quit [Quit: Computer has gone to sleep.]
<havenwood> apeiros: ;)
KarolisNo has quit [Remote host closed the connection]
<centrx> YAARAIHYBYLLYAPFB
Solnse has joined #ruby
JZTech101 has quit [Read error: Operation timed out]
pigzzcanfly has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 272 seconds]
chrisseaton has quit []
endash has quit [Read error: No route to host]
<jsilver> lmao
opter has left #ruby [#ruby]
JZTech101 has joined #ruby
<jsilver> i wasn't talking to anyone
<jsilver> I was just saying "fuck you"
nanoyak has quit [Quit: Computer has gone to sleep.]
<jsilver> could have been to a computer problem
tcopp has joined #ruby
<apeiros> jsilver: you insulted us all!!!!1!1!!1
<pipework> jsilver: fuck you.
<jsilver> lol
<pipework> Also, hello.
dingus_khan has joined #ruby
hobodave has quit [Read error: Operation timed out]
sdwrage has joined #ruby
<jsilver> pipework: hell(o) sir, and what the fuck is up buddy
mehlah has quit [Quit: Leaving...]
<jsilver> apeiros: yes, but not with the 'fuck you'
<jsilver> ;)
[krisbulman] is now known as krisbulman
hobodave_ has joined #ruby
<pipework> jsilver: Frowning at the quality of code reviews.
<jsilver> pipework: I feel you man
sdwrage has quit [Client Quit]
endash has joined #ruby
evenix has quit [Remote host closed the connection]
<apeiros> jsilver: lol
<havenwood> jsilver: you seemed to be having typing Tourettes earlier :P
<apeiros> jsilver: you serial insulter :-p
<shevy> jsilver gold is better than silver, did you know that?
evenix has joined #ruby
<havenwood> Rubies are rarer than diamonds.
<shevy> diamond disappears if you heat it up a little!
<pipework> Pythons are slimier than rubies.
Mousse_ has quit [Remote host closed the connection]
kn8wolf has joined #ruby
<havenwood> pipework: Pythons are easier to crush under your boot heal than Rubies.
<jsilver> lol
<jsilver> shevy: is not
<jsilver> havenwood: probably was
endash_ has joined #ruby
krisbulman is now known as krisbulman|afk
<shevy> jsilver well more expensive at least
<jsilver> well, yeah, unless you're selling to me
<jsilver> I'll pay twice as much for silver
TMM has quit [Ping timeout: 265 seconds]
<jsilver> :D
<shevy> no, you look like a clever businessman
* pipework may have a new business idea
<jsilver> Throw Pythons at enemies, grab rubies to heal
<shevy> I'll rather deal with some innocous and incompetent in the trade area
<shevy> like pipework
likemike_ has quit [Quit: leaving]
<pipework> havenwood: We should sell jsilver silver
ktosiek_ has joined #ruby
<jsilver> shevy: lol
<jsilver> I pay well for good shilver!!!!!
<pipework> shevy: How's that Ruby OS coming?
Mousse_ has joined #ruby
<jsilver> RubyOS?
Mousse_ has quit [Client Quit]
<shevy> pipework it goes slowly because people like you won't help :(
tcopp has quit [Ping timeout: 252 seconds]
ktosiek has quit [Ping timeout: 260 seconds]
<certainty> Ruby Oz like that magic place
<pipework> shevy: I don't contribute to imaginary projects.
<shevy> pipework I still don't know where you contribute to!
<pipework> shevy: To projects!
<oz> certainty: I'm a magic place?
<shevy> wow, oz is here
<pipework> I'm on the githubs and the rubbygemz
<pontiki> you're no wiz
leslie1 has quit [Ping timeout: 252 seconds]
<shevy> pipework there is no "pipework" at rubygems.org
<certainty> oz: it is, and a cool language
<certainty> :)
<pipework> shevy: So?
leslie1 has joined #ruby
rayners has quit [Remote host closed the connection]
<shevy> pipework so there is no pipework there
<pipework> shevy: And?
<oz> certainty: ah, never got myself to try though. Shame on me.
<shevy> perhaps you have your ruby projects locally
<jsilver> Fuck you
<pontiki> wtheck?
<pipework> shevy: No, I'm on github and rubygems
<certainty> oz: never too late :)
<jsilver> heheheh
<shevy> pipework I told you there is no pipework
chipotle has joined #ruby
<pipework> shevy: And I agreed.
GinoMan has quit [Ping timeout: 252 seconds]
<shevy> pipework no you said you are on rubygems :(
evenix has quit [Ping timeout: 272 seconds]
<pipework> I am
KarolisNo has joined #ruby
xbob has quit []
<shevy> pipework but I told you there is no pipework
<pipework> shevy: And I agreed.
<shevy> no you said you are on rubygems
<pipework> I am
xbob has joined #ruby
* centrx feels a flame war coming on
sdwrage has joined #ruby
sriehl has left #ruby ["Textual IRC Client: www.textualapp.com"]
<certainty> i can use a little heat
<shevy> centrx what is there to flame when he is not there
<pipework> shevy: You are correct that there is no user 'pipework' on rubygems. I, however, am on rubygems.
aspiers has joined #ruby
Shidash has joined #ruby
<shevy> pipework there was no search result
TMM has joined #ruby
<pipework> shevy: You are correct that there is no user 'pipework' on rubygems. I, however, am on rubygems.
<nhmood> shevy: the rubygems search doesn't look for users i think
<shevy> pipework it's as if you did not exist!
<shevy> nhmood can you find him?
<pipework> shevy: There's no user shevy_is_awesome on rubygems either, what's your point?
<shevy> pipework no there is only one shevy
TMM has quit [Read error: Connection reset by peer]
KarolisNo has quit [Remote host closed the connection]
TMM has joined #ruby
<pipework> shevy: And there is only one me. I am on rubygems, however there is no user pipework on rubygems.
sdwrage has quit [Client Quit]
rayners has joined #ruby
<shevy> pipework there is no user shevy on rubygems either :(
solars has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
<pipework> shevy: Probably a good thing. Someone with a nick like that probably doesn't write anything worth publishing, I'd think. <3
KarolisNo has joined #ruby
<shevy> hmm
rayners has quit [Remote host closed the connection]
<shevy> the search functionality actually confuses me
mercwithamouth has quit [Ping timeout: 272 seconds]
<nhmood> shevy: i cannot
<shevy> it's like crippled!
<certainty> i am on rubygems :)
rayners has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
<shevy> hmm
<shevy> serialkiller gem
<certainty> shevy: close serialnumber
end_guy has joined #ruby
<shevy> hehe
<shevy> what does that do? generate serial numbers?
<apeiros> ok, seriously now, Table#headers? or #header?
pkrnj has joined #ruby
benlieb has quit [Quit: benlieb]
rayners has quit [Remote host closed the connection]
<shevy> apeiros probably header, without more context
<apeiros> and, `Table.new has_header: true` or `Table.new has_headers: true`?
Speed has quit [Ping timeout: 260 seconds]
<certainty> shevy: implement serialnumber arithmetic as described in rfc1982
<apeiros> shevy: whether a table has a header (or headers)
<shevy> if it would be singular, then has_header, otherwise probably plural
rayners has joined #ruby
<shevy> apeiros, yeah probably singular... I guess if it has at least one header, that query would be true
<nhmood> for ruby exception handling, is it the right through process to add it in places where i expect an external source to fail
<shevy> and it is one char less :)
<nhmood> ie network failure, disk failure (read/write), ect
Nahra_ has quit [Quit: leaving]
KarolisNo has quit [Remote host closed the connection]
RaCx has joined #ruby
ekarlso has quit [Changing host]
ekarlso has joined #ruby
Guest21723 is now known as daveops
axl_ has quit [Quit: axl_]
mocfive has joined #ruby
KarolisNo has joined #ruby
axl_ has joined #ruby
aspires has joined #ruby
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jcs222 has joined #ruby
interactionjaxsn has joined #ruby
twiceaday has quit [Read error: Operation timed out]
saarinen has quit [Quit: saarinen]
<apeiros> nhmood: sounds right, yes
dingus_khan has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
<aloitius_> Anyone here ever used Bitwise (the gem)?
carlyle_ has joined #ruby
<shevy> don't think I heard of that gem before
bthesorceror has joined #ruby
mary5030_ has quit [Remote host closed the connection]
monkegjinni has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<nhmood> apeiros: would i need to do exception handling on any core ruby methods?
jonah_k has joined #ruby
mary5030 has joined #ruby
<nhmood> apeiros: ie File, or can i expect that they already have done this
<nhmood> apeiros: and they will return false on failure or something
mary5030 has quit [Remote host closed the connection]
Targen has joined #ruby
<shevy> ah
vlad_starkov has joined #ruby
<apeiros> nhmood: no
<shevy> nhmood, yeah you must rescue
mary5030 has joined #ruby
<apeiros> nhmood: failure is handled by exceptions
<certainty> still the file can be gone between your checks any your call to .open
<apeiros> so rubys core methods will raise one, if something is exceptional
<shevy> nhmood for instance when you run a .rb file from a certain dir, and that dir is removed, your script won't work anymore
GinoMan has joined #ruby
<shevy> or actually, not even has to be removed, it could be an USB device that was disconnected
iliketurtles has quit [Quit: zzzzz…..]
<apeiros> personally I moved tests like the ones you showed into the rescue, to provide a more specific error message
SCommette has quit [Quit: SCommette]
carlyle has quit [Ping timeout: 240 seconds]
<apeiros> because as certainty said, testing before and not handling exceptions is prone to errors
mansi has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
aryaching_ has joined #ruby
mansi has joined #ruby
<nhmood> i see, that is a good point
yfeldblum has joined #ruby
<nhmood> wait so ruby core will handle a file not being there gracefully though?
<certainty> nhmood: also beside what already has been said, you may want to design your method in away that it will release the resource when it's done
monkegjinni has quit [Ping timeout: 252 seconds]
<nhmood> aka, lets say i check for the file, its there but gone before i call open
<certainty> that's a common idiom
<nhmood> will File.open return false if it cant open or will it break my app?
<aloitius_> shevy: It manages a bit list. I'm trying to YAML it, and mostly it works, but in my tests I get UTF-8 errors.
<nhmood> certainty: so if following that idiom, does it not make sense to have a get_file method?
mansi has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 265 seconds]
mansi_ has joined #ruby
<certainty> nhmood: depends on what it does
<certainty> currently it only opens the file
<certainty> which implies that there is also a method to close it
<Uranio> oh :D I missed a good talk
saarinen has joined #ruby
camila has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
ultraflash3 has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
<Uranio> File.open filename if File.exist? filename
<Uranio> nhmood: or IO.read filename if File.exist? filename
<certainty> nhmood: for example: f = get_file("somefile); something_that_raises(); close_file(f) ... something_that_raises raises an exception which means you never reach close_file thus leaking the resource
<certainty> that's why File.open accepts a block
fijimunkii has quit [Read error: Connection reset by peer]
opter has joined #ruby
krisbulman|afk is now known as [krisbulman|afk]
<pipework> certainty: That's why `begin; ensure; end`
<certainty> nhmood: wrt to the behavior of .open on exceptional situations like a missing file. It will not return false. It raises an exception in that case
Matriks has quit [Remote host closed the connection]
aspires has quit []
jack_rabbit_ has quit [Quit: Leaving]
aspires has joined #ruby
Shidash has quit [Quit: Leaving.]
<nhmood> I see
<nhmood> so then what is the value of f (= File.open())
<nhmood> nil?
ultraflash3 has quit [Ping timeout: 252 seconds]
<certainty> nhmood: .open either succeeds in which case it returns an instance File or it raises an exception
<certainty> +of
<opter> Are there any wrappers for CA Siteminder authentication?
<Uranio> nhmood: a exception that will stop your program
<Uranio> is the result
mneorr has joined #ruby
mehlah has joined #ruby
GreatSUN has quit [Ping timeout: 245 seconds]
havenwood has quit []
<Uranio> file=if File.exist?(file) then File.open(file) else false end
Sc0rp10n has quit [Remote host closed the connection]
<Uranio> (File.open(file) rescue false)
pigzzcanfly has joined #ruby
Vovko has quit [Remote host closed the connection]
dangerousdave has joined #ruby
<pontiki> please no
<certainty> nhmood: what's the intended semantic of your method?
clamstar has quit [Quit: ZNC - http://znc.in]
Vovko has joined #ruby
geggam has quit [Ping timeout: 252 seconds]
fijimunkii has joined #ruby
<nhmood> essentially it is just a helper for accessing files
<nhmood> i do a lot of file reads (essence of the app)
bricker has quit [Ping timeout: 265 seconds]
<nhmood> so i thought it would make sense to write a get_file
<nhmood> that does the checking for you
bricker has joined #ruby
<nhmood> when i initially wrote it, it was pretty naive and just checked for existence and readability
<nhmood> but didnt have any exception handling in case things go wrong
<nhmood> and im just trying to revisit the code and improve it
<nhmood> so i just wanted to clarify if/where it was necessary and to what extent ruby core deals with these things
<pontiki> do you read and write the files in different ways once you have the file handle?
<nhmood> what do you mean?
Vivekananda has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
MplsGreg has joined #ruby
petey_ has quit [Remote host closed the connection]
subbyyy has joined #ruby
<nhmood> different methods writing to the file?
dingus_khan has joined #ruby
<pontiki> well, for example, you could read the entire contents in at one go, read it into an array of lines, read it a character at a time, read it a block at a time, etc
chrisseaton has joined #ruby
petey has joined #ruby
<nhmood> well for reading its always the entire content in one go
<nhmood> for writing its line by line
phutch1ns has quit [Ping timeout: 264 seconds]
petey has quit [Read error: Connection reset by peer]
<pontiki> so abstracting the reading operation could make sense
petey has joined #ruby
<pontiki> and then it's just something like File.read(file) if File.exists?(file)
Mongey has quit [Quit: Mongey]
jglover has joined #ruby
Vivekananda has joined #ruby
SCommette has joined #ruby
<certainty> def file_get_contents(file); handle_errors{ File.read(file) } end ... php ftw
<pontiki> lol
saarinen has quit [Quit: saarinen]
speakingcode has quit [Ping timeout: 252 seconds]
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
yalue has quit [Quit: Leaving]
randomnick_ has quit [Read error: Operation timed out]
MplsGreg has quit [Ping timeout: 265 seconds]
freerobby has quit [Quit: Leaving.]
jobewan has quit [Quit: Leaving]
kcombs has quit [Remote host closed the connection]
pigzzcanfly has quit [Remote host closed the connection]
<apeiros> certainty: wouldn't you just prepend an @ in php and say "fuck errors"?
dingus_khan has quit [Remote host closed the connection]
jobewan has joined #ruby
<certainty> apeiros: yeah good point. Though *I* wouldn't do it
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<jglover> what are some issues that can arise when using mongo?
Uranio has quit [Quit: WeeChat 0.4.3]
<centrx> PHP is an abomination and a scourge on the face of the earth.
RaCx has quit [Quit: Computer has gone to sleep.]
pigzzcanfly has joined #ruby
<Beoran> Well, some people make great things with PHP , but it's a bit like a "dorodango"
<jglover> Wordpress is in PHP, that's done quite well
<apeiros> Beoran: I'd attribute the great things to the people doing it *despite* php
<Beoran> You can polish a turd, but it's a terrible waste of tim
<apeiros> also the reverse applies too - people do horrible things in ruby :)
rudisimo has quit []
<Beoran> Ruby is already a gem to sue by itself
<Beoran> use even
<jglover> punny
<Beoran> ruby helps you, php hinders you, but the talent of the programmer will of course prevail
sambao21 has quit [Quit: Computer has gone to sleep.]
randomnick_ has joined #ruby
timonv has joined #ruby
disposable2 has joined #ruby
<Beoran> The wise ancient programmers of yore were able to program great things like Unix with just 64k of RAM. Who can equal their brilliance or fathom their thoughts?
chrisseaton has quit []
prc has joined #ruby
jglover has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Beoran> I'm sorry, I'll leave it at that before I start to eulogize Dennis Richie...
SHyx0rmZ has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #ruby
kindjal has joined #ruby
SCommette has quit [Quit: SCommette]
twiceaday has joined #ruby
SHyx0rmZ has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
philcris_ has joined #ruby
dubsteph has joined #ruby
<nhmood> thanks for the help everyone who answered lol
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
<certainty> nhmood: did it help you?
sambao21 has joined #ruby
stryek has quit [Ping timeout: 265 seconds]
pigzzcanfly has quit [Remote host closed the connection]
<nhmood> certainty: yeah i have a better idea of what i should be handling
mutenewt has joined #ruby
tcopp has joined #ruby
<nhmood> and some assumptions i was making before have been cleared up
<certainty> alright
philcrissman has quit [Ping timeout: 265 seconds]
virtualize has quit []
TMM has quit [Ping timeout: 264 seconds]
Exeia has joined #ruby
meatherly has joined #ruby
mrsolo has quit [Quit: Leaving]
Xeago has joined #ruby
SCommette has joined #ruby
Xeago has quit [Remote host closed the connection]
geggam has joined #ruby
dubsteph has quit [Ping timeout: 264 seconds]
wjlafrance has joined #ruby
Hobogrammer has quit [Quit: Lost terminal]
TMM has joined #ruby
nichtdiebohne has joined #ruby
tcopp has quit [Ping timeout: 252 seconds]
<razrunelord> Hey guys, I need to write a ruby script to find all broken links in a website. How will I go about it? I know I need to do a depth first search
m104 has quit [Remote host closed the connection]
<centrx> razrunelord, Use Nokogiri and OpenURI
<centrx> rescue the HTTP Error and record it
<centrx> continue
Giorgio has joined #ruby
<razrunelord> centrx: Thanks
Sawbones has quit []
SirCmpwn has quit [Quit: ZNC - http://znc.in]
<certainty> also you might want to make sure to not escape from your domain while you traverse the graph
f3ttX] has quit [Quit: Lost terminal]
SirCmpwn has joined #ruby
<certainty> unless you want to eventually check the entire interwebs
iaj has quit [Ping timeout: 264 seconds]
<razrunelord> Does nokogiri do a DFS?
<certainty> also don't visit links you already have visited
<certainty> unless you want to get stuck in a cycle
<razrunelord> I will maintain a hash of all the visited links certainty
<centrx> razrunelord, Nokogiri is an XML/HTML parser/selector
<certainty> good good, just checkin
x77686d has joined #ruby
<banister> certainty good good
<banister> razrunelord that sounds like an assignment for school btw
mansi_ has quit [Read error: Connection reset by peer]
<banister> razrunelord so it's very naughty to ask here :)
mansi has joined #ruby
koell has quit [Read error: Connection reset by peer]
<razrunelord> banister: I am just picking people's brains. Just to see how they attack the problem :) Not trying to steal any ideas. I have my own plan of attach
grzywacz has quit [Quit: :wq]
ganesh has joined #ruby
habanany has joined #ruby
<centrx> You cannot "steal" ideas.
ganesh is now known as Guest18602
iaj has joined #ruby
fedesilv_ has joined #ruby
dingus_khan has joined #ruby
<razrunelord> Sorry, english is not my first language.
danman has quit [Quit: danman]
zachallett has quit [Remote host closed the connection]
Vovko has quit [Remote host closed the connection]
opter has quit [Quit: opter]
parzo has joined #ruby
<certainty> dfs, bfs doesn't matter. bfs might find broken links slightly faster
RaCx has joined #ruby
olivier_bK has joined #ruby
SHyx0rmZ has quit [Ping timeout: 252 seconds]
Vovko has joined #ruby
rubyracer has quit [Ping timeout: 272 seconds]
stryek has joined #ruby
fedesilva has quit [Ping timeout: 264 seconds]
<centrx> razrunelord, Okay, in that case I was making a philosophical statement. People do use "steal my idea" a lot.
<certainty> we share ideas :)
opter has joined #ruby
thesheff17 has quit [Read error: Operation timed out]
caveat- has quit [Ping timeout: 245 seconds]
<razrunelord> centrx: got it!
eyckelbo1m is now known as eyckelboom
sailias has quit [Quit: Leaving.]
caveat- has joined #ruby
<jsilver> feck ye
<centrx> You have offended my honor!
mneorr has quit [Remote host closed the connection]
<centrx> jsilver, Duel to the death?
mneorr has joined #ruby
SHyx0rmZ has joined #ruby
bthesorceror has quit [Remote host closed the connection]
Sawbones has joined #ruby
opter has left #ruby [#ruby]
<Sawbones> Hey guys how do I render a partial in my views?
<Sawbones> Also where do I put my partials?
<Sawbones> I have navigation.html.erb
SCommette has quit [Quit: SCommette]
habanany has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
saarinen has joined #ruby
bleak2 is now known as bleak
Vovko has quit [Read error: Connection reset by peer]
MplsGreg has joined #ruby
xrq has quit [Remote host closed the connection]
Vovko has joined #ruby
saarinen has quit [Client Quit]
Vivekananda has quit [Quit: Ex-Chat]
WanderingGlitch has quit [Quit: Glitch out]
froy has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
<jsilver> centrx: I accept
IceyEC has quit [Quit: IceyEC]
Targen has quit [Ping timeout: 253 seconds]
froy has joined #ruby
Alina-malina has joined #ruby
mutenewt has quit [Remote host closed the connection]
jonahR has joined #ruby
VTLob has quit [Quit: VTLob]
KarolisN_ has joined #ruby
SCommette has joined #ruby
gja has joined #ruby
vlad_starkov has joined #ruby
justin_pdx has joined #ruby
froy has quit [Ping timeout: 252 seconds]
SCommette has quit [Client Quit]
kaldrenon has quit [Remote host closed the connection]
InFlames has joined #ruby
DrShoggoth has quit [Quit: Leaving]
KarolisNo has quit [Read error: Connection reset by peer]
DrShoggoth has joined #ruby
postmodern has joined #ruby
thesheff17 has joined #ruby
gja has quit [Client Quit]
kcombs has joined #ruby
mansi has quit [Read error: Connection reset by peer]
Wolland has quit [Remote host closed the connection]
mansi has joined #ruby
Sawbones has quit []
Viridisignis has quit [Quit: Lingo - http://www.lingoirc.com]
habanany has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
george2 has quit [Read error: Connection reset by peer]
dangerousdave has quit []
kn8wolf has quit [Quit: Leaving]
Xuisce1 has quit [Ping timeout: 245 seconds]
rayners has quit [Remote host closed the connection]
joelroa has joined #ruby
mjs2600 has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
mansi has joined #ruby
kitak has joined #ruby
mneorr has joined #ruby
pigzzcanfly has joined #ruby
elaptics is now known as elaptics`away
IceyEC has joined #ruby
habanany has quit [Ping timeout: 260 seconds]
<nhmood> so i have a get_file method, it has exception handling for when i do a File.open, but there are also checks such as File.exists? File.readable?
mansi has quit [Ping timeout: 264 seconds]
<nhmood> how can i test that the exception handling is working
<nhmood> i can test within the method by deleting the file once i pass the first two checks
<nhmood> but in the context of lets say rspec, how would one test this? or would one even bother?
hoypriest has joined #ruby
failshel_ has joined #ruby
<Beoran> just use "raise" to raise your exception yourself, nhmood
mansi has joined #ruby
yarou has quit [Remote host closed the connection]
hobodave_ has quit [Ping timeout: 252 seconds]
mansi has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
budrose has quit [Remote host closed the connection]
yarou has joined #ruby
<nhmood> so i can raise the exception prior to running the method and then the rescue will pick up on that raise?
<nhmood> sorry if i dont understand and sound like an idiot i just started looking at this exception stuff recently
failshell has quit [Ping timeout: 252 seconds]
zachallett has joined #ruby
Guest73622 has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
failshel_ has quit [Ping timeout: 272 seconds]
TripTastic has joined #ruby
gilest has joined #ruby
parzo has quit []
<interactionjaxsn> nhmood: rspec has expectations for errors. expect {thing_that_raises_error}.to raise_error(WhateverError)
gilest has quit [Remote host closed the connection]
gilest has joined #ruby
JBreit has quit [Ping timeout: 272 seconds]
bbloom has joined #ruby
yekta has quit [Quit: yekta]
<razrunelord> OpenURI is failing at redirections centrx `open_loop': redirection forbidden
thesheff17 has quit [Read error: Operation timed out]
<centrx> razrunelord, Is it between HTTP and HTTPS?
<centrx> razrunelord, Google search looks helpful for this
dkamioka has quit [Remote host closed the connection]
<razrunelord> Thanks centrx I want to try and rescue that, can't find the name
wjlafrance has quit [Quit: This computer has gone to sleep]
pigzzcanfly has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
Exeia has quit [Ping timeout: 260 seconds]
jlast has quit [Remote host closed the connection]
jackneill has quit [Ping timeout: 252 seconds]
MplsGreg has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
juo has quit [Read error: Operation timed out]
napcae has quit [Read error: Operation timed out]
terrellt_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
stryek has quit [Ping timeout: 272 seconds]
terrellt has quit [Ping timeout: 272 seconds]
MattStratton has quit [Ping timeout: 264 seconds]
ffranz has quit [Quit: Leaving]
petey has quit [Remote host closed the connection]
jonah_k has quit [Remote host closed the connection]
juo has joined #ruby
terrellt_ is now known as terrellt
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gilest has quit [Remote host closed the connection]
tcopp has joined #ruby
francisfish has joined #ruby
CaptainJet has joined #ruby
pushpak has joined #ruby
gilest has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirun has quit [Quit: Client exiting]
tcopp has quit [Ping timeout: 272 seconds]
stkowski has quit [Ping timeout: 272 seconds]
interactionjaxsn has quit [Remote host closed the connection]
jonah_k has joined #ruby
francisfish has quit [Ping timeout: 252 seconds]
msmith has quit [Remote host closed the connection]
<shevy> anyone of you is using windows?
<shevy> if so, could you run this command in irb and tell me the format of the resulting string perhaps please:
<shevy> resolution = `wmic desktopmonitor get screenheight,screenwidth`
jerius has quit [Ping timeout: 248 seconds]
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jzig has joined #ruby
vpretzel has quit [Quit: Adios!]
RaCx has joined #ruby
RaCx has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
thesheff17 has joined #ruby
Czupa has quit [Remote host closed the connection]
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
napcae has joined #ruby
milhite has joined #ruby
froy has joined #ruby
thesheff17 has quit [Max SendQ exceeded]
kenneth has joined #ruby
thesheff17 has joined #ruby
jobewan has quit [Quit: Leaving]
dorei has joined #ruby
RaCx has joined #ruby
ringaroses has joined #ruby
saarinen has joined #ruby
mary5030 has quit [Remote host closed the connection]
froy has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
jzig has quit [Ping timeout: 252 seconds]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
froy has joined #ruby
mmoretti has quit []
KarolisN_ has quit [Ping timeout: 272 seconds]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
dblessing has quit [Quit: dblessing]
dsferreira has quit [Quit: Leaving]
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
justin_pdx has quit [Quit: justin_pdx]
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
gilest has quit [Remote host closed the connection]
philcris_ has quit [Remote host closed the connection]
nanoyak has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
froy has quit [Ping timeout: 265 seconds]
tvw has quit []
mehlah has quit [Quit: Leaving...]
tvw has joined #ruby
geggam has quit [Quit: weekend]
iliketurtles has quit [Quit: zzzzz…..]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
monkegjinni has joined #ruby
froy has joined #ruby
mehlah has joined #ruby
kitak has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has joined #ruby
bogeyd6 has quit [Ping timeout: 265 seconds]
webgen has joined #ruby
webgen has quit [Read error: Connection reset by peer]
webgen has joined #ruby
zigomir has joined #ruby
monkegjinni has quit [Ping timeout: 260 seconds]
froy has quit [Ping timeout: 265 seconds]
hiall has joined #ruby
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
RaCx has quit [Quit: Computer has gone to sleep.]
ktosiek_ has quit [Ping timeout: 265 seconds]
ultraflash3 has joined #ruby
elaptics is now known as elaptics`away
<RubyPanther> razrunelord: What I did for a broken link checker was use hpricot and drb. And a month of scraper hell.
adamnbowen has quit [Ping timeout: 265 seconds]
meatherly has quit [Remote host closed the connection]
<RubyPanther> The problem seems so simple at first, especially to devs who are used to building clean, compliant websites. And then the nasty reality of the filth that is the web starts to creep in with the bug reports.
f3ttX] has joined #ruby
<RubyPanther> All that nice, simple stuff like openuri gets tossed out to make room for a giant pile of workarounds
<RubyPanther> If you're writing your first link checker, your estimate isn't just off by half; it is off by an order of magnitude.
vlad_starkov has joined #ruby
<pontiki> isn't that sort of like the traveling salesman problem?
<RubyPanther> lol no the traveling salesman problem can be solved entirely by implementing theory.
x77686d has joined #ruby
ultraflash3 has quit [Ping timeout: 264 seconds]
<shevy> why is it a traveling salesman and not a traveling saleswoman pontiki
<centrx> Because that would be stupid
<RubyPanther> Women are smart enough to call first
carlyle_ has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
shime has joined #ruby
<bricker> Is this really the best way to get the filename of a File object? `File.basename(file.path)`... and if you want the extension, `File.extname(File.basename(file.path))` ?
<RubyPanther> traveling salesman is like, "ugga ugga, must... knock... more... doors... today!"
<pontiki> i didn't name it
v0n has quit [Ping timeout: 265 seconds]
<RubyPanther> bricker: for some values of best, sure
mlpinit has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<pontiki> it seems most likely to be portable across file systems
<shevy> bricker can you not do: File.extname file.path
<bricker> shevy: Yeah that's better, thanks
<shevy> try to get the name of the file without extension :)
<soahccc> When I look something up on wikipedia, like TSP, I curse the day(s) where I've slept in math class
<shevy> haha
<shevy> I should have learned more when I was young
Celm has joined #ruby
<shevy> and became a math genius
saarinen has joined #ruby
angusiguess has joined #ruby
<shevy> I'd become rich
<shevy> now, I struggle even with something as simple as statistics
<centrx> Woulda, coulda, shoulda
Sleepee has joined #ruby
<shevy> yeah :(
<pontiki> mathameticians rich?
Wolland has joined #ruby
<soahccc> I always thought what is that for a pile of crap, I never going to need it… If I just had a math prof which happened to be a game programmer :(
<shevy> yeah pontiki
<pontiki> if i could spell...
<shevy> I see it for many local job offerings
SCommette has joined #ruby
<pontiki> who are rich mathematicians?
webgen has quit [Remote host closed the connection]
ringaroses has quit [Ping timeout: 265 seconds]
<pontiki> if you work for someone else, you'll never get rich
<centrx> If only I had picked up that million-dollar bill I saw on the ground...
<pontiki> but maybe that's just a relative thing
<shevy> pontiki don't destroy my illusions :(
<pontiki> was it zimbwabian?
<pontiki> can i destroy your delusions?
<shevy> you can
lkba has quit [Ping timeout: 265 seconds]
MplsGreg has joined #ruby
<shevy> are you so mean however is the more important question
<centrx> I own 100 million Zimbabwean dollars
timonv has joined #ruby
<soahccc> pontiki: word, you're right
chihhsin has quit [Ping timeout: 260 seconds]
mikepack_ has joined #ruby
Burgestrand has joined #ruby
chihhsin has joined #ruby
<pontiki> about what?!?!?! WTAF?!?
fedesilv_ has quit [Ping timeout: 272 seconds]
rins has quit [Remote host closed the connection]
<pontiki> shevy: call it ruthless compassion
AMcP has joined #ruby
Es0teric has joined #ruby
ringaroses has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
<shevy> meantiki :(
MplsGreg has quit [Remote host closed the connection]
ringaroses has quit [Read error: Connection reset by peer]
claymore has quit [Quit: Leaving]
mikepack has quit [Read error: Operation timed out]
timonv has quit [Ping timeout: 272 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
<RubyPanther> studying statistics is worthless
nateberkopec has quit [Quit: Leaving...]
mikepack_ has quit [Ping timeout: 264 seconds]
<Burgestrand> Now this was a long time ago.
<RubyPanther> instead of spending months learning how to wield chalk, you can spend an afternoon learning how to apply existing math functions using software
FL1SK has joined #ruby
jksfolt has joined #ruby
pierre1_ has joined #ruby
InFlames has quit [Quit: This computer has gone to sleep]
Burgestrand has quit [Quit: Burgestrand]
koell has joined #ruby
Burgestrand has joined #ruby
nisstyre has quit [Ping timeout: 245 seconds]
zigomir has quit [Read error: Connection reset by peer]
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
xerox357_ has quit [Remote host closed the connection]
Burgestrand has quit [Client Quit]
Hien has quit [Ping timeout: 265 seconds]
Burgestrand has joined #ruby
failshell has joined #ruby
pigzzcanfly has joined #ruby
Vovko has quit []
nanoyak has joined #ruby
shime_ has joined #ruby
zigomir has joined #ruby
jksfolt has quit [Remote host closed the connection]
fluve has joined #ruby
rjhunter has joined #ruby
kayamm has quit [Quit: part]
dingus_khan has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
petey has quit [Remote host closed the connection]
dingus_khan has joined #ruby
dingus_khan has quit [Remote host closed the connection]
lkba has joined #ruby
yarou has quit [Remote host closed the connection]
pigzzcanfly has quit [Remote host closed the connection]
pigzzcanfly has joined #ruby
shime has quit [Ping timeout: 265 seconds]
bricker has quit [Quit: leaving]
failshell has quit [Ping timeout: 265 seconds]
dik_dak has quit [Quit: Leaving]
SCommette has quit [Quit: SCommette]
clamstar has joined #ruby
dingus_khan has joined #ruby
artisangoose has quit [Quit: Textual IRC Client: www.textualapp.com]
saarinen has quit [Quit: saarinen]
tcopp has joined #ruby
itadder has joined #ruby
AMcP has quit [Remote host closed the connection]
zigomir has quit [Read error: Connection reset by peer]
tcopp has quit [Ping timeout: 260 seconds]
itadder has quit [Ping timeout: 252 seconds]
Beoran has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
zigomir has joined #ruby
danshultz has joined #ruby
stryek has joined #ruby
p8952 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
benzrf has joined #ruby
<benzrf> look wot i made http://bpaste.net/show/181591
b00stfr3ak has quit [Ping timeout: 252 seconds]
<benzrf> like JSON schemas
philcrissman has joined #ruby
<benzrf> but for ruby!
<centrx> *gasp*
* pontiki prints it out and tapes it on the fridge
<xybre> y u do dis
<RubyPanther> uhhh, what is it
<benzrf> a small dsl for making matchers for objects
<benzrf> i.e. you can make a matcher that applies matchers to each method you specify
xbob has quit []
danshultz has quit [Ping timeout: 265 seconds]
<benzrf> or one that verifies that every element of an array matches
<benzrf> or one that specifies a length and matcher for each element of an array
<RubyPanther> It looks like a data torture device
<benzrf> :D
<pontiki> i'm far more interested in what's going on behind the curtain in 'schema'
<benzrf> im writing a cryptocoin and I don't want to cruft up all of the code with doublechecks that the data is correct
<RubyPanther> wait, "applies matchers to each method"
<benzrf> and i have to do checks
<benzrf> since im going to be receiving untrusted data
axl_ has quit [Quit: axl_]
<benzrf> and i dont want typerrors up the wazoo
<benzrf> so i made this
<RubyPanther> It doesn't just murder ducks, it murders everything OO
<benzrf> =D
geopet has quit []
diogolima has joined #ruby
<benzrf> ducks are well and fine when youre not working on arbitrary data from untrusted sources
<RubyPanther> I recommend regexes, or AR-style validations
<benzrf> AR?
diogolima has left #ruby [#ruby]
<RubyPanther> ActiveRecord
<benzrf> regexen do not work on data u pleb
<benzrf> and i dont need no rails bloat
<RubyPanther> they have mixins for using that stuff on non-relational data
<RubyPanther> You don't need the bloat
rjhunter has quit [Ping timeout: 264 seconds]
<benzrf> it's basically just a few classes with custom === and factory methods
<benzrf> plus an instance_eval wrapper
Mousse_ has joined #ruby
<benzrf> g2g bbiab
benzrf is now known as benzrf|afk
<benzrf|afk> :I
zigomir has quit [Remote host closed the connection]
johnmilton has quit [Read error: Connection reset by peer]
thams has joined #ruby
zigomir has joined #ruby
webgen has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
Wolland has quit [Remote host closed the connection]
gilest has joined #ruby
<pontiki> how can regexp *not* work on data...
mwmnj has joined #ruby
zigomir has joined #ruby
oracal has quit [Quit: Leaving]
mercwithamouth has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwmnj> Can anyone point me to an article regarding the currently used versions of ruby and their differences
<RubyPanther> pontiki: maybe it is quantum data
jhass is now known as jhass|off
nisstyre has joined #ruby
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther> mwmnj: There is probably not a lot of that other than reading the release notes or blogs explaining the features of each new version
<bobdobbs> hey guys. I'm new to ruby and was wanting a little help understanding the syntax. I've got this bit of code from a book, and I'm hoping someone can walk me through it from line 3 http://hastebin.com/lokudiqicu.rb
yacks has quit [Ping timeout: 272 seconds]
<RubyPanther> Generally you use whatever is the latest "stable" released version of Ruby, such as 2.1.0
<pontiki> °.°