apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
claptor has joined #ruby
adamjleonard has quit [Quit: Leaving...]
adriancb has joined #ruby
tesuji_ has joined #ruby
tesuji has quit [Ping timeout: 264 seconds]
Cust0sL1men has joined #ruby
bradleyprice has quit [Remote host closed the connection]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* gkra wants to cry now
<gkra> here i am about to release a new gem
Limix has quit [Quit: Limix]
<gkra> and *now* I discover there's already something with that name
<gkra> I'd *swear* I searched before I renamed my project, too. :(
ghr has joined #ruby
bim has quit [Remote host closed the connection]
bim has joined #ruby
<apeiros> gkra: yeah, that's annoying.
<apeiros> been there too.
<apeiros> didn't exist. implemented my stuff. wanted to release ~10 days later. name taken.
<gkra> so my thing's called vaquero
bim has quit [Remote host closed the connection]
<gkra> it's at vaquero.io
<gkra> got everything set up
<gkra> finally back from chefconf and want to publish the gem
<sweeper> yeehaw?
<gkra> and oh, there's already one named "vaquero"
<gkra> so I guess i rename mine "vaquero-io"?
<sweeper> or pick a descriptive name instead of trying to be cool :3
<gkra> it's certainly taken the wind out of my sails
<sweeper> unless you've developed a gem to allow argentinian cattlemen manage low-level disk access
<gkra> though that *would* be cool
Ellis has quit [Quit: Ellis]
Ellis has joined #ruby
Ellis has left #ruby [#ruby]
msnyon has quit [Ping timeout: 264 seconds]
msnyon has joined #ruby
<gkra> argentinian cattlemen need cloud services too, don't they?
ghr has quit [Ping timeout: 250 seconds]
brainslug has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
riotjones has joined #ruby
Cadillactica has quit [Quit: Cadillactica]
Stalkr has quit [Quit: Leaving...]
msnyon has quit [Ping timeout: 252 seconds]
netroby has joined #ruby
Azure has joined #ruby
jlast has joined #ruby
quintinadam has quit []
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
ki0 has joined #ruby
riotjones has quit [Ping timeout: 248 seconds]
CustosL1m3n has joined #ruby
Cust0sLim3n has joined #ruby
Megtastique has quit []
jlast has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
webguynow has joined #ruby
Cust0sL1men has quit [Ping timeout: 252 seconds]
CustosLimen has quit [Ping timeout: 248 seconds]
Cadillactica has joined #ruby
ki0 has quit [Ping timeout: 256 seconds]
duncannz has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
cpt_yossarian has quit [Remote host closed the connection]
amdbcg has joined #ruby
amdbcg1 has quit [Read error: Connection reset by peer]
CorpusCallosum has joined #ruby
Megtastique has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
cpt_yossarian has joined #ruby
milesmatthias has joined #ruby
dixie__ has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
dixie__ has joined #ruby
amdbcg has quit [Ping timeout: 265 seconds]
robustus has joined #ruby
JDiPierro has quit [Remote host closed the connection]
jimms has joined #ruby
milesmatthias has quit [Ping timeout: 256 seconds]
kies has quit [Remote host closed the connection]
avahey has quit [Quit: Connection closed for inactivity]
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
hpoydar has joined #ruby
overcrush has joined #ruby
krisquigley has joined #ruby
jimms has quit [Remote host closed the connection]
tesuji_ has quit [Ping timeout: 256 seconds]
tesuji has joined #ruby
jeramy_s has joined #ruby
doodlehaus has quit [Remote host closed the connection]
markholmes has quit [Quit: So it goes.]
overcrush has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
krisquigley has quit [Ping timeout: 252 seconds]
Soda has quit [Remote host closed the connection]
lennae has joined #ruby
yh has quit [Ping timeout: 264 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
tesuji has quit [Ping timeout: 248 seconds]
<jhass> ?cloud
<ruboto> other peoples computers
RegulationD has joined #ruby
tesuji has joined #ruby
Pupeno has joined #ruby
steven43126 has joined #ruby
BTRE has joined #ruby
avahey has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
dixie__ has quit [Ping timeout: 256 seconds]
Pupeno has quit [Ping timeout: 272 seconds]
steven43126 has quit [Ping timeout: 256 seconds]
Adrikei has quit [Remote host closed the connection]
tesuji has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Quit: Leaving...]
bradleyprice has joined #ruby
jamto11 has joined #ruby
JDiPierro has joined #ruby
hpoydar has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
kies has joined #ruby
djellemah_ has joined #ruby
JDiPierro has quit [Ping timeout: 244 seconds]
bradleyprice has quit [Ping timeout: 244 seconds]
bim has joined #ruby
horsecowdog has joined #ruby
<gkra> yup yup
djellemah has quit [Ping timeout: 250 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
horsecowdog has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Remote host closed the connection]
bim has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
arescorpio has joined #ruby
bim has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
davispuh has quit [Remote host closed the connection]
Megtastique has quit []
milesmatthias has joined #ruby
jlast has joined #ruby
brainslug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mroach has quit [Quit: mroach]
bruno- has joined #ruby
yh has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
milesmatthias has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
Coraline_ZzZz is now known as Coraline
yh has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 255 seconds]
AlphaTech is now known as zz_AlphaTech
tubuliferous_ has quit [Ping timeout: 255 seconds]
Joufflu has quit [Ping timeout: 256 seconds]
bayed has quit [Quit: Connection closed for inactivity]
teddyp1cker has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
milesmatthias has joined #ruby
rkmylo_ has joined #ruby
markholmes has joined #ruby
teddyp1cker has quit [Ping timeout: 248 seconds]
eshy has quit [Ping timeout: 255 seconds]
milesmatthias has quit [Client Quit]
overcrush has joined #ruby
eshy has joined #ruby
Sawbones_ has joined #ruby
adriancb has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
overcrush has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
rkmylo_ has quit []
sevvie has joined #ruby
rkmylo has joined #ruby
amdbcg has joined #ruby
rkmylo has quit [Client Quit]
rkmylo has joined #ruby
greenbagels has joined #ruby
rkmylo has quit [Client Quit]
jenrzzz_ has quit [Ping timeout: 255 seconds]
bim has quit [Remote host closed the connection]
adriancb has joined #ruby
Musashi007 has joined #ruby
Cadillactica has quit [Quit: Cadillactica]
steven43126 has joined #ruby
adriancb has quit [Ping timeout: 256 seconds]
Sawbones_ has quit [Remote host closed the connection]
Sawbones_ has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
steven43126 has quit [Ping timeout: 252 seconds]
Sawbones_ has quit [Ping timeout: 256 seconds]
sevvie has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
lessless has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
caconym has joined #ruby
Axy has quit [Read error: Connection reset by peer]
bim has joined #ruby
bim has quit [Read error: Connection reset by peer]
bim has joined #ruby
dx7 has joined #ruby
anomaly__ has joined #ruby
Cache_Money has joined #ruby
bim has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
anomaly_ has quit [Ping timeout: 256 seconds]
bim has joined #ruby
freerobby has joined #ruby
Megtastique has joined #ruby
x77686d has quit [Quit: x77686d]
Musashi007 has quit [Quit: Musashi007]
caconym is now known as tealc
tealc is now known as caconym
sarmiena_ has joined #ruby
Megtastique has quit [Client Quit]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mroach has joined #ruby
sevvie has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
dx7 has quit [Remote host closed the connection]
anomaly__ has quit [Ping timeout: 265 seconds]
mroach has quit [Ping timeout: 272 seconds]
jgorak has quit [Remote host closed the connection]
jenrzzz has joined #ruby
zz_AlphaTech is now known as AlphaTech
anomaly__ has joined #ruby
caconym has left #ruby [#ruby]
bim has quit [Remote host closed the connection]
emdub has quit [Quit: .]
jlast has joined #ruby
emdub has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
red_horned_rihno has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 265 seconds]
sarmiena_ has quit [Quit: sarmiena_]
krisquigley has joined #ruby
lennae has quit [Ping timeout: 244 seconds]
lennae has joined #ruby
mroach has joined #ruby
sevvie has joined #ruby
diegoviola has joined #ruby
krisquigley has quit [Ping timeout: 252 seconds]
sevvie has quit [Ping timeout: 252 seconds]
bradleyprice has joined #ruby
edwardly has quit [Max SendQ exceeded]
mroach has quit [Ping timeout: 272 seconds]
x1337807x has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
overcrush has joined #ruby
red_horned_rihno has joined #ruby
RegulationD has joined #ruby
A205B064 has quit [Ping timeout: 256 seconds]
overcrush has quit [Ping timeout: 248 seconds]
freerobby has quit [Quit: Leaving.]
RegulationD has quit [Ping timeout: 264 seconds]
jack_rabbit has joined #ruby
jordsmi has quit [Quit: Connection closed for inactivity]
Limix has joined #ruby
palms has joined #ruby
jenrzzz has joined #ruby
jlast has joined #ruby
mroach has joined #ruby
adriancb has joined #ruby
steven43126 has joined #ruby
quietone has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
tus has quit []
steven43126 has quit [Ping timeout: 245 seconds]
avahey has quit [Quit: Connection closed for inactivity]
mroach has quit [Ping timeout: 272 seconds]
sevenseacat has joined #ruby
horsecowdog has joined #ruby
Sawbones_ has joined #ruby
jack_rabbit has quit [Ping timeout: 255 seconds]
horsecowdog has quit [Ping timeout: 264 seconds]
braincra- has quit [Quit: bye bye]
Sawbones_ has quit [Remote host closed the connection]
sevvie has joined #ruby
sarmiena_ has joined #ruby
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
razieliyo has quit [Remote host closed the connection]
mroach has joined #ruby
a5i has joined #ruby
braincrash has joined #ruby
claptor has quit [Quit: this channel is bakas]
sevvie has quit [Ping timeout: 245 seconds]
zacts has joined #ruby
brainslug has joined #ruby
claptor has joined #ruby
doodlehaus has joined #ruby
tubuliferous_ has joined #ruby
Sawbones_ has joined #ruby
doodlehaus has quit [Ping timeout: 248 seconds]
amdbcg has quit [Ping timeout: 265 seconds]
AlphaTech has quit [Changing host]
AlphaTech has joined #ruby
jlast has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
tubuliferous_ has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
_blizzy_ has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
havenn has quit [Ping timeout: 255 seconds]
jlast has quit [Ping timeout: 265 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jamto11 has quit [Remote host closed the connection]
icebourg has joined #ruby
Limix has quit [Quit: Limix]
sevenseacat has joined #ruby
dorei has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teddyp1cker has joined #ruby
jamto11 has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
jerius has joined #ruby
teddyp1cker has quit [Ping timeout: 250 seconds]
jerius has quit [Client Quit]
cyberarm has quit [Quit: Leaving]
ponga has joined #ruby
overcrush has joined #ruby
x77686d has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jerematic has joined #ruby
jerematic has quit [Read error: Connection reset by peer]
jerematic has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
cyberarm has joined #ruby
Sawbones_ has joined #ruby
steven43126 has joined #ruby
jeramy_s has joined #ruby
musl has quit [Ping timeout: 244 seconds]
jack_rabbit has joined #ruby
steven43126 has quit [Ping timeout: 245 seconds]
netroby has quit [Remote host closed the connection]
netroby has joined #ruby
cyberarm has quit [Read error: Connection reset by peer]
jerematic has quit [Remote host closed the connection]
hpoydar has joined #ruby
LudicrousMango has joined #ruby
hpoydar_ has joined #ruby
JDiPierro has joined #ruby
pdtpatrick has joined #ruby
iliketurtles has joined #ruby
JDiPierro has quit [Remote host closed the connection]
JDiPierro has joined #ruby
hpoydar has quit [Ping timeout: 265 seconds]
DerisiveLogic has quit [Remote host closed the connection]
hpoydar_ has quit [Ping timeout: 265 seconds]
duncannz has joined #ruby
pdtpatrick has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
tpimtts has joined #ruby
JDiPierro has quit [Ping timeout: 248 seconds]
Jnco has joined #ruby
krisquigley has joined #ruby
<Jnco> Hiii.... I know this is ruby but can someone help me with this rake task ;)
meschi has quit [Ping timeout: 264 seconds]
<Jnco> I'm just wondering how I can run this manually on sql database itself using workbench and not from rake, http://pastebin.com/hPseNgJQ
jlast has joined #ruby
charliesome has quit [Quit: zzz]
musl has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
palms has quit [Ping timeout: 272 seconds]
lkba_ has joined #ruby
freerobby has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
DerisiveLogic has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
sarmiena_ has quit [Quit: sarmiena_]
A205B064 has joined #ruby
charliesome has joined #ruby
RegulationD has joined #ruby
adamjleonard has joined #ruby
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
plutonic has joined #ruby
Karpuragauram has quit [Ping timeout: 245 seconds]
RegulationD has quit [Ping timeout: 245 seconds]
bradleyprice has quit [Remote host closed the connection]
brainslug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jack_rabbit has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
Akagi201_ has joined #ruby
icebourg has quit []
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Akagi201 has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
horsecowdog has joined #ruby
charliesome_ has joined #ruby
beneggett has quit [Client Quit]
charliesome has quit [Ping timeout: 256 seconds]
lavros has joined #ruby
Coraline is now known as Coraline_ZzZz
Joufflu has joined #ruby
horsecowdog has quit [Ping timeout: 272 seconds]
Joufflu_ has joined #ruby
steven43126 has joined #ruby
Joufflu__ has joined #ruby
Joufflu__ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
charliesome_ has quit [Ping timeout: 256 seconds]
Joufflu has quit [Ping timeout: 265 seconds]
Joufflu_ has quit [Ping timeout: 265 seconds]
steven43126 has quit [Ping timeout: 256 seconds]
quietone has left #ruby ["Leaving"]
ramfjord has joined #ruby
red_horned_rihno has quit [Ping timeout: 252 seconds]
DerisiveLogic has quit [Remote host closed the connection]
jeramy_s has quit [Quit: Peace out!]
DerisiveLogic has joined #ruby
bruno- has joined #ruby
Sawbones_ has quit []
jgorak has joined #ruby
sevvie has quit [Remote host closed the connection]
sevvie has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
tubuliferous_ has joined #ruby
paradisaeidae has joined #ruby
mleung has joined #ruby
lemur has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
lennae has quit [Ping timeout: 252 seconds]
tubuliferous_ has quit [Ping timeout: 252 seconds]
red_horned_rihno has joined #ruby
towski_ has joined #ruby
doodlehaus has joined #ruby
zacts has joined #ruby
kblake has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0/20150326190726]]
claptor has quit [Quit: this channel is bakas]
doodlehaus has quit [Ping timeout: 246 seconds]
claptor has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
jlast has joined #ruby
Sawbones_ has joined #ruby
bim has joined #ruby
lemur has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 248 seconds]
sevvie has joined #ruby
lxsameer has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
LudicrousMango has quit [Ping timeout: 246 seconds]
Sawbones_ has quit [Remote host closed the connection]
Filete has quit [Quit: Textual IRC Client: www.textualapp.com]
robbyoconnor has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
bim has quit [Ping timeout: 248 seconds]
LudicrousMango has joined #ruby
kblake has quit [Remote host closed the connection]
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
Sawbones_ has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
starless has quit [Quit: Leaving]
starless has joined #ruby
starless has quit [Remote host closed the connection]
panga has quit [Remote host closed the connection]
musashi1 has quit [Ping timeout: 248 seconds]
teddyp1cker has quit [Ping timeout: 244 seconds]
beneggett has joined #ruby
mleung has quit [Quit: mleung]
a5i has quit [Quit: Connection closed for inactivity]
Cork has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jnco has quit [Quit: Jnco]
teddyp1cker has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 256 seconds]
dx7 has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
steven43126 has joined #ruby
DerisiveLogic has joined #ruby
browndawg has joined #ruby
robbyoconnor has joined #ruby
steven43126 has quit [Ping timeout: 250 seconds]
robbyoconnor has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
RegulationD has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
Hijiri has quit [Quit: WeeChat 1.0.1]
krisquigley has joined #ruby
Hijiri has joined #ruby
chinmay_dd has joined #ruby
visof has joined #ruby
Sawbones_ has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 252 seconds]
longfeet has joined #ruby
roolo has joined #ruby
agrinb has joined #ruby
dx7 has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
teddyp1cker has joined #ruby
AlphaTech is now known as zz_AlphaTech
agrinb has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
<wasamasa> a
<ProteusX> bsolutely.
rippa has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
hmsimha has joined #ruby
riotjones has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
arescorpio has quit [Excess Flood]
riotjones has quit [Ping timeout: 264 seconds]
Azure has quit [Quit: My MBP went to sleep.]
horsecowdog has joined #ruby
<atmosx> Good morning everyone
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
horsecowdog has quit [Ping timeout: 248 seconds]
<ProteusX> good morning atmosx
Mx[dot]Brevity has joined #ruby
Sawbones_ has joined #ruby
Akagi201_ has quit []
anomaly_ has joined #ruby
bluOxigen has joined #ruby
anomaly__ has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
Dusti[n] has joined #ruby
steven43126 has joined #ruby
amclain has quit [Quit: Leaving]
Dusti[n] has left #ruby [#ruby]
JDiPierro has joined #ruby
tubuliferous_ has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
steven43126 has quit [Ping timeout: 256 seconds]
JDiPierro has quit [Ping timeout: 264 seconds]
tubuliferous_ has quit [Ping timeout: 244 seconds]
red_horned_rihno has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
agent_white has joined #ruby
<agent_white> Evenin/moin
Sawbones_ has quit [Remote host closed the connection]
josephleon has quit [Quit: Leaving...]
dj_zubehoer has joined #ruby
tpimtts is now known as tpimtts_away
<atmosx> bbl
codecop has joined #ruby
browndawg has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
Sawbones_ has joined #ruby
red_horned_rihno has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
sevenseacat has quit [Remote host closed the connection]
sevenseacat has joined #ruby
DeathCode has joined #ruby
<DeathCode> hey guys
jenrzzz has joined #ruby
adamjleonard has quit [Quit: Leaving...]
<DeathCode> anybody here?
doodlehaus has joined #ruby
Pharaoh2 has joined #ruby
djellemah has joined #ruby
charliesome has quit [Ping timeout: 256 seconds]
<agent_white> NOPE
<agent_white> All died in a fire
djellemah_ has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby
kreeves has quit [Ping timeout: 265 seconds]
doodlehaus has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
Sembei has quit [Ping timeout: 256 seconds]
adamjleonard has joined #ruby
Cache_Money has joined #ruby
jlast has joined #ruby
ponga has joined #ruby
browndawg has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
longfeet has quit [Quit: Leaving]
jlast has quit [Ping timeout: 256 seconds]
Cache_Money has quit [Quit: Cache_Money]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sawbones_ has quit [Remote host closed the connection]
unshadow has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
<unshadow> So, I have a ruby program which I know some part of it (not sure which) is eating large amount of RAM and CPU, what tools are there to monitor\debug those sort of things ?
LudicrousMango has quit [Remote host closed the connection]
<DeathCode> guys anybody here?
<DeathCode> can someone answer my question
<DeathCode> how dont java coders get laid?
lavros has quit [Quit: leaving]
lavros has joined #ruby
<DeathCode> why dont java coders get laid?
<agent_white> Why do you think they don't?
adamjleonard has quit [Quit: Leaving...]
LudicrousMango has joined #ruby
<DeathCode> because they treat women like objects
<agent_white> budumTISH
<DeathCode> hehe :)
<DeathCode> why do ruby coders not get laid?
piotrj has joined #ruby
<DeathCode> because they are condescending as fuck
jenrzzz has joined #ruby
<agent_white> That would be mildly funny if it was even mildly true.
adamjleonard has joined #ruby
<sevenseacat> ...
<sevenseacat> not again.
jenrzzz has quit [Ping timeout: 245 seconds]
* agent_white hugs sevenseacat
<agent_white> sevenseacat: How are you today? :)
<sevenseacat> busy!
<sevenseacat> trying to finish off this book this weekend
<agent_white> Good! Well maybe not! But maybe yes! :D
JoshGlzBrk has joined #ruby
<agent_white> sevenseacat: r4ia-deadtree edition coming soon?!
<sevenseacat> soon might be a couple of months depending on manning, but yeah
<sevenseacat> i dont know how long it will take them to do their thing
<agent_white> :D
<agent_white> Can we request signatures from you authors?
<sevenseacat> lol
RegulationD has joined #ruby
<agent_white> No joke :) I think it'd be fun to have my first ruby book signed!
<sevenseacat> if we ever meet at a conf or something, ill sign it for you :P
<agent_white> "for agent_white: because you made me do this."
<agent_white> Well then it's settled! I"
<agent_white> I'm off to Australia!
<sevenseacat> \o/
* agent_white dances
Takle has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
vivekananda has quit [Quit: Leaving]
<agent_white> Did eval-in die for good?
<sevenseacat> yep, we have a new robot overlord now. meet ruboto.
<agent_white> Are we allowed to see his insides?
<sevenseacat> >> "hello, agent_white"
<ruboto> sevenseacat # => "hello, agent_white" (https://eval.in/308635)
steven43126 has joined #ruby
<agent_white> \o allo ruboto
RegulationD has quit [Ping timeout: 255 seconds]
krisquigley has joined #ruby
Mekkis has quit [Quit: ZNC - http://znc.in]
steven43126 has quit [Ping timeout: 265 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gadgetoid has quit [Ping timeout: 245 seconds]
Mekkis has joined #ruby
Gadgetoid has joined #ruby
leafybasil has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 250 seconds]
krisquigley has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
patrick99e99 has joined #ruby
f3lp has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
mlev has joined #ruby
<mlev> Hello everyone! is anyone here have knowledge or experience about any kind of VMware API? (such as rbvmomoi?)
<agent_white> !ask
<agent_white> D:
adamjleonard has quit [Quit: Leaving...]
<agent_white> mlev: Best to ask your question instead of running a poll.
<mlev> ;) cheers thanks :) I am trying to export my VMware network settings/info... and I can't nail it how :)
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<agent_white> mlev: Sounds like an OS-specific issue rather than a ruby issue.
agrinb has joined #ruby
Guest24 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 245 seconds]
<mlev> indeed. but anyway I was just wondering maybe some one here also have done it and can share it with me :)
<agent_white> mlev: Fair enough. Though I'd recommend your OS's channel or #vmware instead!
beneggett has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
<mlev> agent_white: fair enough. thanks. I am trying now as we speak. If anyone still that know hows and can share: I will be very happy! :)
<riceandbeans> can someone please explain to me what the hell winter is coming means
Darryl___ has joined #ruby
beneggett has quit [Client Quit]
blackmesa has joined #ruby
<mlev> well that Is not an OS issue nor Ruby one :D
<mlev> riceandbeans: It's a Game of Thrones quote
<riceandbeans> mlev: I know, but I don't understand, they keep saying it
<riceandbeans> like 'who is john galt?'
gkra has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
jheg has joined #ruby
<mlev> riceandbeans: Just watch the show/read the book. my best advise ;)
horsecowdog has joined #ruby
f3lp has joined #ruby
tesuji has joined #ruby
kblake has joined #ruby
<sevenseacat> read the books.
jlast has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Remote host closed the connection]
horsecowdog has quit [Ping timeout: 265 seconds]
Rollabunna has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
kblake has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 244 seconds]
towski_ has quit [Remote host closed the connection]
dj_zubehoer has quit []
ackpacket has joined #ruby
<ackpacket> has_many :employees, -> { joins(:address) } Can someone explain this syntax to me? What does the -> signify?
<sevenseacat> aa lambda.
<ackpacket> I thought a block was a lambda?
<wasamasa> nope
<wasamasa> it's a closure!
<ackpacket> hmm
<wasamasa> which is a lambda with an environment
<ackpacket> Ah
<wasamasa> you see, outside the block's context, it wouldn't work
<ackpacket> kk, good with that explanation
<ackpacket> I'm still troubled by poetry mode at times though
<sevenseacat> poetry mode?
<ackpacket> Where parens are left off
<sevenseacat> I SEE
<sevenseacat> oops caps
Mia has joined #ruby
Mia has joined #ruby
<wasamasa> lol
<ackpacket> I've seen has_many :employees, :something => value, :foo => :bar
<sevenseacat> thats how i would write it
<ackpacket> And I take it that means has_many is a method called with 2 arguments
<ackpacket> 1 is the :employee symbol, the other is a hash
<ackpacket> is that right?
<sevenseacat> yep.
<ackpacket> then how are they calling has_many :employees, -> { joins(:address) }, if the second argument is a lambda?
<sevenseacat> have you checked the api docs for has_many?
DerisiveLogic has quit [Ping timeout: 248 seconds]
<ackpacket> That's where I saw the example
<ackpacket> What am I looking for exactly?
agrinb has joined #ruby
<sevenseacat> rails probably changes the order of the params in the different cases
<ackpacket> lol a what?
<sevenseacat> by reassigning them around
<ackpacket> hmmm
psmolen has quit [Ping timeout: 256 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ackpacket> So when someone does has_many :employees, :foo => :bar, :zib => :zeb, It examines the second "thing" separated by the commas, determines it's not a lambda, and assumes I elected not to provide any scope?
<sevenseacat> likely so.
<sevenseacat> dig through the code if you're really determined to find out, and keep discussions in the right channels - this isnt it.
tubuliferous_ has joined #ruby
<ackpacket> Sorry, thought it was a syntax issue
<ackpacket> Is the "I'll try my best to make sense of whatever order you provide arguments in" a strictly rails issue?
<sevenseacat> you cant provide things in any order. if you provide the options then the scope, it wont work.
agrinb has quit [Ping timeout: 265 seconds]
<jhass> mh, a lambda closures too
unshadow has quit [Quit: leaving]
psmolen has joined #ruby
mlev has left #ruby [#ruby]
mlev has joined #ruby
Pharaoh2 has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
piotrj has quit [Remote host closed the connection]
sevvie has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
f3lp has quit [Ping timeout: 256 seconds]
iamninja has joined #ruby
steven43126 has joined #ruby
ponga has quit [Remote host closed the connection]
relix has joined #ruby
piotrj has joined #ruby
Sembei has joined #ruby
steven43126 has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
kirun has joined #ruby
Slarticus has joined #ruby
gkra has joined #ruby
Akagi201 has joined #ruby
leafybasil has joined #ruby
neanderslob_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
A205B064 has quit [Ping timeout: 272 seconds]
leafybasil has quit [Ping timeout: 250 seconds]
Stalkr has joined #ruby
exadeci has joined #ruby
Takle has quit [Remote host closed the connection]
aswen has joined #ruby
overcrush has quit [Remote host closed the connection]
doodlehaus has joined #ruby
jeromelanteri has quit [Ping timeout: 252 seconds]
Stalkr^ has joined #ruby
jenrzzz has joined #ruby
doodlehaus has quit [Ping timeout: 252 seconds]
Slarticus has quit [Quit: Page closed]
Stalkr has quit [Ping timeout: 244 seconds]
red_horned_rihno has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
relix has joined #ruby
ponga has joined #ruby
sevvie has quit [Ping timeout: 265 seconds]
BTRE has quit [Quit: Leaving]
sevvie has joined #ruby
relix has quit [Client Quit]
jlast has quit [Ping timeout: 256 seconds]
lessless has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
lordkryss has joined #ruby
jimms has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
agrinb has joined #ruby
overcrush has joined #ruby
Takle has joined #ruby
overcrush has quit [Read error: Connection reset by peer]
edwinvdg_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
overcrush has joined #ruby
red_horned_rihno has joined #ruby
jeromelanteri has joined #ruby
charliesome has joined #ruby
edwinvdgraaf has joined #ruby
RegulationD has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
relix has joined #ruby
overcrush has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 245 seconds]
jimms has quit [Remote host closed the connection]
krisquigley has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
bim has joined #ruby
edwinvdgraaf has joined #ruby
piotrj has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
overcrush has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
<apeiros> >> puts "ä"
<apeiros> d'oh
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
steven43126 has joined #ruby
edwinvdg_ has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
red_horned_rihno has quit [Ping timeout: 250 seconds]
chinmay_dd has quit [Quit: Leaving]
bruno- has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
<apeiros> sooo, finally we have
<apeiros> >> puts "ä"
<ruboto> apeiros # => ä ...check link for more (https://eval.in/308647)
<apeiros> working :)
steven43126 has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
panga has joined #ruby
<apeiros> thanks charliesome for fixing this :)
ponga has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 264 seconds]
<DeathCode> hey guys
<DeathCode> is it better to run ruby on windows or ruby on linux
<DeathCode> ruby on rails i mean
edwinvdg_ has quit [Remote host closed the connection]
<apeiros> DeathCode: you'll probably run into less problems and get easier help with ruby on linux than with ruby on windows
<jhass> yeah, more people test their stuff against linux/os x compared to windows in the ruby community
<DeathCode> awesome
<DeathCode> thanks guys
<DeathCode> i should just go dual
timonv1 has joined #ruby
<jhass> starting out with a VM is okay if you're new
timonv has quit [Read error: Connection reset by peer]
<DeathCode> what was VM again
<DeathCode> Virtual mode?
aswen has quit [Ping timeout: 248 seconds]
<apeiros> virtual machine
<DeathCode> yes thanks
<apeiros> see virtualbox and others
edwinvdgraaf has joined #ruby
pico-pete has joined #ruby
<sevenseacat> oh wow
relix has joined #ruby
BTRE has joined #ruby
roshanavand has joined #ruby
valkyrka has joined #ruby
BTRE has quit [Ping timeout: 245 seconds]
horsecowdog has joined #ruby
jimms has joined #ruby
ki0 has joined #ruby
bim has quit [Remote host closed the connection]
roshanav1 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
horsecowdog has quit [Ping timeout: 244 seconds]
<apeiros> wow?
roshanavand has quit [Ping timeout: 248 seconds]
Zai00 has joined #ruby
<jhass> World of Warcraft
<agent_white> World of Wonder
<agent_white> Due to friends wondering what happened to you.
red_horned_rihno has joined #ruby
bonhoeffer has joined #ruby
visof has quit [Remote host closed the connection]
red_horned_rihno has quit [Max SendQ exceeded]
visof has joined #ruby
<nickjj> DeathCode, is your computer somewhat modern? what's the specs?
<DeathCode> mines pretty good
<DeathCode> windows 7. 8 gigs ram
<nickjj> is it an i5/i7?
<DeathCode> 2.8 GHz
<DeathCode> i5
red_horned_rihno has joined #ruby
<DeathCode> its ok
<DeathCode> not good
<DeathCode> def not great
jlast has joined #ruby
<nickjj> you may want to consider using vmware (the free version)
<sevenseacat> virtualbox is fine.
charliesome has quit [Quit: zzz]
<jhass> ^
<DeathCode> need to learn html too apparently :(
<nickjj> with unity mode it's like running both linux and windows at the same time
<jhass> should easily take alloting 2GB to the VM
<sevenseacat> DeathCode: for rails apps, you need to learn a lot more than that.
<DeathCode> ye no shit
<apeiros> add in css & js
<nickjj> i've used both virtualbox and vmware for years, vmware's support for seamless mode/dual monitors/general "it just works" is much better
<DeathCode> so much to learn so little time
BTRE has joined #ruby
agrinb has joined #ruby
<sevenseacat> i hope you put aside a good year or two, given how far you've gotten in a week or two.
bonhoeffer has quit [Ping timeout: 252 seconds]
jimms has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
jlast has quit [Ping timeout: 265 seconds]
<DeathCode> ye i should
tubuliferous_ has joined #ruby
Sawbone__ has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
Darryl___ has quit [Quit: Connection closed for inactivity]
Azure has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Sawbone__ has quit [Ping timeout: 244 seconds]
tubuliferous_ has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
yh has joined #ruby
jeromelanteri has quit [Ping timeout: 252 seconds]
leafybasil has joined #ruby
ki0 has quit [Remote host closed the connection]
<avril14th> holy cow, you guys are also all in on sundays!
<apeiros> avril14th: the last two days have also been sunday
sevvie has quit [Ping timeout: 248 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
<avril14th> you seem to live in a wonderful timezone
naftilos76 has joined #ruby
<apeiros> I live in the timezone were we celebrate zombies
<apeiros> though our zombie didn't crave brains - according to the books at least
sevvie has joined #ruby
<avril14th> they go right for the souls
bim has joined #ruby
axisys has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
<DeathCode> good night guys
rocknrollmarc has quit [Max SendQ exceeded]
DeathCode has left #ruby [#ruby]
ki0 has joined #ruby
chipotle has quit [Ping timeout: 272 seconds]
patrick99e99 has quit [Ping timeout: 265 seconds]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
patrick99e99 has joined #ruby
rocknrollmarc has joined #ruby
chipotle has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
timonv1 has quit [Ping timeout: 264 seconds]
<apeiros> oh, ruby 2.2 finally also tells you where the previous definition of a constant was with a "constant already defined" warning
stef204 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bim has quit [Remote host closed the connection]
nfk has joined #ruby
jeromelanteri has joined #ruby
Jackneill has joined #ruby
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
bim has joined #ruby
teddyp1cker has quit []
doodlehaus has joined #ruby
piotrj has joined #ruby
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bim has quit [Remote host closed the connection]
piotrj has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
jefus__ has joined #ruby
<apeiros> damit, it's difficult to find a word which is not in the top10k passwords list
relix has joined #ruby
_blizzy_ has joined #ruby
<apeiros> computers to the rescue…
red_horned_rihno has quit [Remote host closed the connection]
sevenseacat has joined #ruby
<jhass> apeiros: I'd expect switzerdütsch (how do you even spell that correctly?) to have plenty of words to choose from
<apeiros> there's no official spelling. I'd write it schwitzerdütsch
<apeiros> but I've also seen schwyzerdütsch and other spellings :)
<apeiros> but I need a word which is in the english dictionary, but no part of it in the top10k dictionary
jheg has quit [Quit: jheg]
jefus_ has quit [Ping timeout: 248 seconds]
<apeiros> apparently "abave" works :D
* jhass submits that to some dictionary
Zai00_ has joined #ruby
Zai00 has quit [Ping timeout: 248 seconds]
Zai00_ is now known as Zai00
<apeiros> it's in /usr/share/dict/web2
<apeiros> no idea what it means
<jhass> well, password list
<apeiros> ah
oo_ has joined #ruby
lkba has joined #ruby
<apeiros> anyway, password strength validator works now. including convenience methods which return a color, :bad, :low, :acceptable, :good, or a float (0-Inf, where anything >10 is excellent)
<apeiros> I think that should cover all the bases :D
sevenseacat has quit [Ping timeout: 256 seconds]
<jhass> no, please return a random insult of the form "Your grandma used a similar strong password, it was %{word}" with word being replaced by a random sample of the top 20 passwords
xenokiller has joined #ruby
<apeiros> hm, but that it uses 100MB RSS is not nice
<jhass> time for some crystal :P
<apeiros> the two dicts are represented by two (large) regex
<nickjj> i once wrote a password strength validator in js
lkba_ has joined #ruby
<apeiros> I think those require that much memory
<nickjj> it was about 5 lines of code and taunted you if it was less than 10 chars
<apeiros> ok, I think by default I'll only use the top10k dict
<apeiros> 2MB instead of 100MB
<apeiros> nickjj: lol
<nickjj> but to be fair, it also encouraged you as you had > 12 > 16 > 20 chars
valkyrka has quit [Ping timeout: 248 seconds]
lkba has quit [Ping timeout: 255 seconds]
<apeiros> jhass: I'm pretty sure with some clever algorithmic & datastructural whizzbang I could make it use much less memory in ruby too. but I don't feel like spending the required time.
<jhass> ;)
<apeiros> right now all I did was generate a large regex, which is basically all words |'ed in a single regex, ordered so that longest word matches first
<jhass> I think I'd like to write the pastebin.com insulter btw, any wishes for that?
<apeiros> you mean what helpa did? I'd prefer it not be insulting.
<jhass> eh, you know how I mean that ;P
<apeiros> poor pastebin users have no idea of the wrongness of their ways…
<apeiros> well, helpa's code is fine. I can link you the pull request for #ruby's addition
<jhass> like do we want to change the message on a second paste, do we want to persist that across restarts, do we want to include other services
<apeiros> icing on the cake would be automatic re-gisting
<jhass> oh, that's an interesting idea
<apeiros> yeah, with re-gisting I think I'd change the message indeed.
agrinb has joined #ruby
<jhass> would make it harder to support multiple services though
<apeiros> first time, gentle "people here prefer gist, I took the liberty to gist it for you here [link]. blabl reasons"
<apeiros> second time no regist, and a "people might choose not to help you because of pastebin.com"
<apeiros> and >2, no message anymore
senayar has quit [Remote host closed the connection]
<apeiros> it's fine if re-gisting only happens for pastebin. biggest offenders first.
<apeiros> people can always make pull requests (ok, yes, I know, I'd have to make the source accessible for that)
ackpacket has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
<jhass> pastebin.com and irccloud.com are my biggest offenders, anything else?
senayar has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
<apeiros> none annoyed me enough for me to remember :)
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
jlast has joined #ruby
senayar has quit [Remote host closed the connection]
RegulationD has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
sdothum has joined #ruby
oo_ has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
<jhass> alright, in memory offenders list or shall I make a new table?
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
sankaber has joined #ruby
<apeiros> while in-memory is sufficient - do make a table. I'd love to query for those things :)
ki0 has quit [Remote host closed the connection]
<jhass> cool
senayar has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
<apeiros> I'll do an update of the website & bot today or tomorrow
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
sevenseacat has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
krisquigley has joined #ruby
senayar has quit [Remote host closed the connection]
relix has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
steven43126 has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
relix has quit [Client Quit]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
senayar has quit [Remote host closed the connection]
arup_r has joined #ruby
Akagi201_ has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
<FernandoBasso> Where do I find documentation on specific language commans like `unless`?
panga has quit [Quit: Leaving...]
<FernandoBasso> I've been takinga look at those "New to Ruby" links here http://ruby-doc.org/core-2.2.1/
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
Akagi201 has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
Nahra has joined #ruby
senayar has quit [Remote host closed the connection]
<sevenseacat> ruby has no formal language specification
<sevenseacat> so... google? :)
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
<jhass> actually there's some stuff these days, check the Files section on http://ruby-doc.org/core-2.2.1/
<apeiros> sevenseacat: ruby is even iso certified ;-)
<sevenseacat> oh really?
<sevenseacat> til
<rippa> https://www.google.ru/search?q=site:ruby-doc.org+unless
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
jheg has joined #ruby
<FernandoBasso> I find that kind of shocking.
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
* arup_r watching.......
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
Contigi has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
yh has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
<FernandoBasso> At least ruby is so largely used that it is not hard to find tips and tutorials.
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
serivich has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
horsecowdog has joined #ruby
senayar has quit [Remote host closed the connection]
<arup_r> can I benchmark a ruby script file ?
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
visof has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
piotrj has joined #ruby
visof has joined #ruby
dseitz has joined #ruby
horsecowdog has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
ley has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
hpoydar has joined #ruby
<ley> hello rubist? may i ask the best way to store user settings/preference
<arup_r> ley: yaml
<arup_r> because Rails does this
valkyrka has joined #ruby
bim has joined #ruby
agrinb has joined #ruby
<FernandoBasso> I just saw that UltiSnips inserts the options -wKU in the shebang line. I tried reading `man ruby`, and it talks about the KANJI encoding, etc. I could not understand much of it. Can someone help to clarify?
tubuliferous_ has joined #ruby
sankaber has joined #ruby
<sevenseacat> what
<FernandoBasso> #!/usr/bin/env ruby -wKU
agrinb has quit [Ping timeout: 256 seconds]
<FernandoBasso> -w is warnings, and K and U are about encodings, it seems.
<FernandoBasso> By reading the man page it seems in my case I should set -KuU, and not just KU.
turtil has joined #ruby
<sevenseacat> U is utf-8, correct
piotrj has quit [Remote host closed the connection]
ley has quit [Quit: Ex-Chat]
ponga has joined #ruby
<sevenseacat> i cant see u in the list
<FernandoBasso> Since K (without u, s, n, or e) will default for KANJI.
valkyrka has quit [Ping timeout: 264 seconds]
<FernandoBasso> I say u in man ruby in the `-K kcode` section.
linduxed has quit [Ping timeout: 272 seconds]
<sevenseacat> ah hah
<FernandoBasso> s/say/saw/
tubuliferous_ has quit [Ping timeout: 255 seconds]
bradleyprice has joined #ruby
jlast has joined #ruby
hpoydar has quit [Remote host closed the connection]
<adaedra> Hi
<arup_r> I have this file on top #!/usr/bin/env ruby .. still I need to run the file using `ruby <file.rb>`... why ?
<adaedra> has it the executable bit?
<sevenseacat> arup_r: because the file isnt marked as executable
<arup_r> yes
<arup_r> no I made it sevenseacat
<sevenseacat> show us
<FernandoBasso> If it is executable already, do ./program.rb
<adaedra> how do you try to execute it, arup_r
hpoydar has joined #ruby
Megtastique has joined #ruby
<arup_r> adaedra: why ./program.rb is needed... ? not only program.rb
<arup_r> adaedra: although your trick worked
<FernandoBasso> Not a trick.
<FernandoBasso> And because . isn't in your PATH.
<adaedra> because if you want it to respond to ’program.rb’ alone, you need to have the containing folder in your PATH.
<arup_r> yes yes
<FernandoBasso> Do export PATH="{$PATH}:." and you can probably run it just by typing program.rb.
<arup_r> I forgot that
jlast has quit [Ping timeout: 255 seconds]
<arup_r> FernandoBasso: yes,,, right
<arup_r> thanks all
<FernandoBasso> It is ${PATH}, actually, not {$PATH}.
<adaedra> If you want to make it callable from everywhere, look how to make a gem of your thing
<arup_r> FernandoBasso: but your previous trick worked too
<sevenseacat> theres no tricks here.
<FernandoBasso> Yeah, I would just go with that first option for local testing.
<arup_r> sevenseacat: I meant suggestion... ;)
<FernandoBasso> Instead of messing with PATH.
<adaedra> You could go with modifying PATH (But no .), but having a gem is the better solution for that.
<adaedra> Since gem path is (theorically) already in $PATH.
towski_ has joined #ruby
<arup_r> ok thanks all
<FernandoBasso> You are most welcome.
turtil has quit [Remote host closed the connection]
turtil has joined #ruby
Mark-6ma has joined #ruby
psy_ has quit [Remote host closed the connection]
towski_ has quit [Ping timeout: 250 seconds]
<arup_r> need some suggestions although..
<arup_r> I read algorithms in my college life.. which is now almost 5 years... Now I forgot all the topics I read about algorithms... So I thought I'll relearn..
<arup_r> As I do know only Ruby... currently.. I forgot C also.. so will it be a good idea to learn Algorithms using Ruby ?
<arup_r> advices please
<adaedra> Algorithms are a complex and complete topic on its own, and rarely linked to the langage
<adaedra> Read about them online, experiment
RegulationD has joined #ruby
<arup_r> yes,,
<arup_r> so I can use Ruby .. right ?
<avril14th> yes, ruby is finy-fine for algo coding
<arup_r> avril14th: 0/
hpoydar has quit [Remote host closed the connection]
<arup_r> avril14th: finy-fine means ?
<avril14th> means good
<arup_r> ohh! :)
agrinb has joined #ruby
keen____ has quit [Read error: Connection reset by peer]
tier has joined #ruby
lessless has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
<arup_r> avril14th: past I remember when I use C while learning algo.. I used to use too many `for` loops... So my new one looks like I am cheating with theory.. https://github.com/aruprakshit/algorithm_problems/blob/master/stable_matching.rb
<arup_r> I used too many Ruby methods
<avril14th> what's wrong with using ruby methods?
<avril14th> isn't that the point?
<arup_r> But as you guys said.. there is no harm ... I will happily use Ruby in my learning of Algorithm ..
keen____ has joined #ruby
<arup_r> avril14th: I don't know.. I just felt so..
DEA7TH has joined #ruby
<arup_r> But my feeling was incorrect I feel it correctly now
<avril14th> as long as the feeling is here...
<arup_r> humm
phale has joined #ruby
<phale> on an unrelated topic, http://www.speedtest.net/my-result/4266851608
<adaedra> I hate you
<phale> why :(
<phale> i haven't been on here for a while
tesuji has quit [Ping timeout: 250 seconds]
lessless has quit [Max SendQ exceeded]
<phale> oh sorry
<phale> i'll try to slow my internet down next time
<adaedra> :’(
pie_ has joined #ruby
<pie_> hey guys, i dont use ruby but i need to reverse engineer some black box stuff, is there a way to get elapsed nanoseconds since epoch or somesuch?
<avril14th> pie_: yes
<pie_> avril14th: can you please link me some documentation? i dont know what to look for
sevvie has quit [Ping timeout: 255 seconds]
<pie_> thanks
Pharaoh2_ has quit [Read error: Connection reset by peer]
<phale> hi i want to know why rvm is annoying
<phale> it's kinda gay
tier has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
<avril14th> pie_: watch out for the ruby version you are running though. Things change if you are on an old ruby
<adaedra> avril14th: fiber?
<avril14th> adaedra: yes
<adaedra> Je te hais
<avril14th> ligne pro du bureau
* adaedra goes sobbing in a corner while looking at YouTube’s wheel spinning
<phale> You see, I also hate rubygems
<phale> It's kinda weird and unflexible
<avril14th> phale: fix them both, we'll all be happier
<phale> I'm not going to fix something beyond repair
* avril14th wonders what could be wrong with those though
<sevenseacat> whats wrong with rubygems
<sevenseacat> concur about rvm
<phale> I want the files to be on my system somewhere, not on some "gem" as you call it
<phale> of the ruby programs/libraries
<sevenseacat> they are>
<phale> what
<phale> oh god
shazaum has joined #ruby
<sevenseacat> what exactly id the problem
<sevenseacat> is even
jerius has joined #ruby
<adaedra> is odd
<phale> is 0 even or odd
<sevenseacat> >> 0.even?
<ruboto> sevenseacat # => true (https://eval.in/308661)
<phale> right
<sevenseacat> there you go.
<phale> >> 0.odd?
turtil has quit [Quit: WeeChat 1.1.1]
<ruboto> phale # => false (https://eval.in/308662)
<phale> >> -1.even?
<ruboto> phale # => false (https://eval.in/308663)
<phale> interesting
<phale> wait... ruboto?
<phale> woah, things have changed
<apeiros> phale: it's just the start.
sevvie has joined #ruby
<phale> where's eval-in
turtil has joined #ruby
<apeiros> gone.
<adaedra> FOREVER.
<apeiros> ever… ever… ever…
<phale> aw
<adaedra> eval-in is kill
<phale> he dieded?
<adaedra> like so ded
browndawg has quit [Ping timeout: 244 seconds]
<phale> is [16, 16] an array substring or
<phale> [16..16]
pandaant has joined #ruby
<adaedra> both are
<phale> so they're the same
<adaedra> >> Array.new(64) { ’a’ }.join()[16, 16]
<ruboto> adaedra # => (NilClass) ...check link for more (https://eval.in/308664)
<jhass> phale: nope
<adaedra> >> Array.new(64) { ’a’ }.join()[16..16]
<ruboto> adaedra # => (NilClass) ...check link for more (https://eval.in/308665)
<adaedra> uhm
<phale> i just dont know what to use then
<phale> my class told me to use a substring of 16 and 16
<jhass> phale: it's Array#[index, length] and Array#[start_index..end_index]
<adaedra> >> Array.new(64) { %(a) }.join()[16..16]
<ruboto> adaedra # => "a" (https://eval.in/308666)
<adaedra> >> Array.new(64) { %(a) }.join()[16,16]
<ruboto> adaedra # => "aaaaaaaaaaaaaaaa" (https://eval.in/308667)
<adaedra> here ya go
<phale> jhass: the latter is what I want then
<apeiros> "a"*16
<apeiros> >> "a"*16
<ruboto> apeiros # => "aaaaaaaaaaaaaaaa" (https://eval.in/308668)
<phale> the only problem is that my md5 hash is really short
<phale> not sure why
<adaedra> thanks apeiros, I forgot that
<jhass> >> "☃" * 16 # snowman party
<ruboto> jhass # => "☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃" (https://eval.in/308669)
<apeiros> that works now! :D
<arup_r> spider in IRC..
<arup_r> omg!
<phale> My MD5 hash has to be 32 characters in length but it's not
<phale> why does this happen?
<arup_r> phale: show the code.
<phale> alright
<jhass> !addfact code We can't help you without your code, please post it to https://gist.github.com
<ruboto> jhass, I will remember that code is We can't help you without your code, please post it to https://gist.github.com
<apeiros> phale: you might want to provide a usable amount of information
<apeiros> phale: otherwise the answer is: because you do it wrong.
<phale> it's a bot if you want to know
<phale> the protocol works so that a null character is appended at the end of every line, or else the packet will be filtered
<apeiros> I think we told you about hash[16..16] already?
<phale> i know
<phale> i just want to know why it's so short
<jhass> >> ("☃"*20)[16..16]
<ruboto> jhass # => "☃" (https://eval.in/308670)
<apeiros> because you do hash[16..16]?
<phale> hm
guest22344 has joined #ruby
<phale> i'll do [16, 16] then
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0.4/2015032000]]
<phale> this seems to work
<adaedra> phale: you see the difference between the two?
<phale> yeah
<phale> .. is a range
<apeiros> that's one part of the reason, yes
<apeiros> the other is what a range means to String#[]
govg has quit [Remote host closed the connection]
<adaedra> technically, both take a range, but exprimed differently
<guest22344> hello
<adaedra> hi
<guest22344> i never programmed in ruby but just kinda of curious
<phale> now I get a "password wrong" error
<phale> i must be doing something wrong with the protocol
rocknrollmarc has joined #ruby
<pie_> avril14th: ah...
<adaedra> guest22344: so, you have a question, or you just come to see us discuss?
<guest22344> just to see a bit
<guest22344> tourist like:)
<adaedra> okay, enjoy your stay
krisquigley has joined #ruby
DerisiveLogic has joined #ruby
hpoydar has joined #ruby
browndawg has joined #ruby
hgl has quit [Read error: Connection reset by peer]
visof has quit [Quit: Lost terminal]
hpoydar has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 248 seconds]
<apeiros> guest22344: then enjoy your stay :)
jlast has joined #ruby
DerisiveLogic has quit [Ping timeout: 265 seconds]
<guest22344> thx very much
jerius has quit [Quit: /quit]
hpoydar has joined #ruby
hgl has joined #ruby
<avril14th> pie_: the website I gave you has all the docs for all the versions
<phale> why wont my ruby program start
<jhass> because it's broken
<phale> it started earlier but now it wont start
<phale> no it's not it worked
<jhass> "worked", past tense
<avril14th> I bet 1000$ on jhass, go man go! the guy is wrong!
<adaedra> :D
<phale> yeah but
<phale> I didn't even edit the code
<phale> and it wont start
<jhass> well, then fix it
<phale> how can i fix it if it's not even broken
jlast has quit [Ping timeout: 256 seconds]
piotrj has joined #ruby
<jhass> it is broken
<jhass> it doesn't start so it's broken
bruno- has joined #ruby
<phale> if I do ^C
<apeiros> have I ever told you how much I love those puzzle BNFs found in RFCs?
<phale> it tells me that it stops at TCPSocket#open
<apeiros> where token definitions are spread across the whole document, for you to find…
<phale> maybe it can't connect to the server?
bruno- is now known as Guest76392
<apeiros> scavenger hunt…
<jhass> phale: maybe
<phale> i was right
<apeiros> phale: if you want help, then really, you must provide actually usable information. "it won't start" *is not*
<phale> i know
<apeiros> then do better if you already know.
roshanav1 has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
piotrj has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
Guest76392 has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
<pie_> avril14th: if a file upload page saved files under a name with an md5 hash, how would you do it?
Aswebb_ has joined #ruby
<pie_> in my case the hashes change even if i upload the same file, so its probably time variant
<pie_> well either that or it counts collisions :/
<avril14th> pie_: gist of code?
<phale> touch $(md5checksum file.rb)
<pie_> i got nothing
<avril14th> pie_: I do that and use SecureRandom to generate random file names
<phale> c:
<pie_> its what im trying to figure out
Aswebb_ has quit [Client Quit]
Aswebb_ has joined #ruby
<phale> my apologies
<avril14th> pie_: you don't have access to the code?
<phale> touch $(md5sum file)
<avril14th> I mean, what do you want to reverse engineering a script? :)
<avril14th> +for
<phale> touch $(md5sum file) < file
<pie_> i want to see if i can try generating valid hashes myself, though it probably has a user id field as well, so i probably wont be able to since that is a hash as well
<phale> what exactly do you want
<avril14th> well indeed
<phale> an upload that saves the file with its name the md5 sum of the file?
<avril14th> reverse engineering of hashs / randoms / id generators is not easy
<phale> that can be done with sh
<avril14th> phale: the guy said it was time variant
<pie_> avril14th: its not the hash itself that is the issue, its the scheme used to generate it
<phale> avril14th: % pid
<pie_> so basically md5(X) and i want to figure out the X
<phale> you can't it's one way
<pie_> well if we assume that its userid + time then i can take a valid user id, and brute force the time field
<pie_> is time is seconds since epoch its easy, if its nanoseconds it takes a little longer
<phale> you dont bruteforce md5
<phale> you need a supercomputer
<pie_> so basically i need to brute force variant fields and brute force the order
<apeiros> phale: you're a decade late
<phale> i am?
<apeiros> phale: md5 are easy to crack.
<phale> oh :(
<adaedra> md5 is known to be insecure
<pie_> phale: there are 1 billion nanoseconds in a second if i know the time to second certainty there are only 1 billion values to try
<phale> only
<phale> "only"
meschi has joined #ruby
<pie_> idk how fast python does md5, but if you can do 1 million in a second it takes 1000 seconds to brute the space of a second
Mark-6ma has quit [Quit: -]
<pie_> ofc that can take a while if you have a lot of schemes to try since that multiplies it
<pie_> and you have to take latency and stuff into account so you probably have to try a several second window, also hope for small clock drift on the remote server
<pie_> the bottom line is i want to restrict the hash space as much as i can, then find the scheme, after i have the scheme maybe i can generate valid hashes with good probability
<pie_> its a numbers game :P
govg has joined #ruby
horsecowdog has joined #ruby
<jhass> pie_: are you even sure it's a md5 hash? might just be a random value
enebo has joined #ruby
<pie_> jhass: no im not sure tbh
<pie_> which sucks
<pie_> the width matches
<phale> pie_: does it have 32 characters
<jhass> as implementor when I don't want my files to be enumerated but still publicly accessible, I'd chose random filenames + rate limiting
Darryl___ has joined #ruby
endash has quit [Quit: endash]
chipotle has quit [Read error: Connection reset by peer]
<pie_> phale: yep
<jhass> >> require "securerandom"; SecureRandom.hex(16)
<ruboto> jhass # => "c09b9e9e94f416eb28d61588c2656bc6" (https://eval.in/308674)
chipotle has joined #ruby
<apeiros> hurray, Resolv is not IDN capable :(
<pie_> jhass: well that case would suck for me :P
senayar has quit [Remote host closed the connection]
<pie_> that would be the best for the implementor
<phale> pie_: then it's correct
<phale> all md5 hashes have 32 characters i think
endash has joined #ruby
<jhass> phale: when hex encoded
<pie_> its funny because i want to be able to do this, but the better they implemented their backend, the better. so i guess im happy either way, but happier in the latter case
<phale> jhass: yeah
horsecowdog has quit [Ping timeout: 250 seconds]
hpoydar has quit [Remote host closed the connection]
<jhass> but as I just demonstrated a 16 byte long hex encoded value doesn't have to be a md5 hash
<pie_> ^
<apeiros> a 16 byte long hex isn't an md5 hash. md5 hash is 16byte, which is 32byte in hex.
<pie_> and since on this scale a hash function should be indistinguishable from random data, there is really no way to devide
<apeiros> (it may be a slice from an md5, but a slice from an md5 is not an md5)
<pie_> apeiros: then just SecureRandom.hex(32)
<apeiros> pie_: that results in 64 hex digits ;-)
<pie_> uh ok xD
<apeiros> SecureRandom.hex(8) gets you 16 hex digits
<pie_> bottom line is i have a value like 79229ac99072803311b4310e48bd9568
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
<phale> is digest/md5 the de facto way of converting a string to md5?
LJT has joined #ruby
<apeiros> yes
<phale> okay
<apeiros> it's "de facto standard" btw. ;-)
<phale> strange
<phale> my md5 changes every time i launch the program
<phale> the md5 hash can't be different though since it's stored in a database
<apeiros> "de facto" alone only means "following from the facts / as per the facts"
<phale> apeiros: why does it change ??
<apeiros> phale: you're - again - not providing any useful information to help you.
<phale> alright
<pie_> given an integer, how would you ruby guys hash it?
<pie_> or does ruby handle casting it immediately
<apeiros> pie_: depends on your requirements
<apeiros> what do you hash it for?
gusto has joined #ruby
<phale> When I run my ruby program, given no arguments to it, my program will generate a MD5 hash based on the password on a constant named PASSWORD, The only problem with this is that the hash is stored in a database, and it is forbidden for it to change.
<pie_> still the same scenario, ive got no clue, this would be the nanoseconds since epoch thing(i basically just multiplied seconds by a billion)
<phale> It will change every time the program is run
<apeiros> phale: make a minimal code example demonstrating your problem
<apeiros> phale: and put that code example on gist.github.com
xenokiller has quit [Ping timeout: 248 seconds]
mgorbach has quit [Read error: Connection reset by peer]
<pie_> then öagain i should still check the docs
* pie_ reads docs
<apeiros> pie_: I'm sorry, I'm not going to read the backlog and search for your use-case.
<adaedra> öagain
<phale> >> require 'digest/md5'; hash = Digest::MD5.hexdigest("password"); hash = hash[16, 16] + hash[0, 16]; puts hash
<ruboto> phale # => 1d8327deb882cf995f4dcc3b5aa765d6 ...check link for more (https://eval.in/308675)
<phale> this is exactly what i'm doing
mgorbach has joined #ruby
<pie_> apeiros: ah ok, sorry, i thought you saw it, im trying to figure out how a black box is generating md5 hashes(presumably)
<adaedra> >> require 'digest/md5'; hash = Digest::MD5.hexdigest("password"); hash = hash[16, 16] + hash[0, 16]; puts hash
DexterLB has quit [Read error: Connection reset by peer]
<ruboto> adaedra # => 1d8327deb882cf995f4dcc3b5aa765d6 ...check link for more (https://eval.in/308680)
<pie_> and it seems to be time variant
<adaedra> see, same hash.
<phale> that's erratic
<adaedra> so it’s not what you’re doing.
<apeiros> phale: I run `ruby -e 'require "digest/md5"; hash = Digest::MD5.hexdigest("password"); hash = hash[16, 16] + hash[0, 16]; puts hash'` multiple times. I always get the same hash.
<phale> okay, can I give the full code then
agent_white has quit [Quit: night]
<adaedra> yes, please.
tubuliferous_ has joined #ruby
<phale> I think the problem is with loginhash and encrypt combined.
<apeiros> pie_: so you have a black box where you provide input and the box generates a (presumably md5) hash from your input and returns that?
<apeiros> pie_: and you want to figure out the algorithm it uses to generate that hash from your input?
<pie_> yep
zarubin_ has joined #ruby
<apeiros> pie_: and the hash changes for the same input?
<pie_> yep
hpoydar has joined #ruby
<apeiros> good luck then :-)
<pie_> ;P yep
<pie_> ill probably give up sooner or later
hpoydar has quit [Remote host closed the connection]
<apeiros> could be a RNG, could be Time, could be a database ID
<pie_> could be anything :/
* pie_ scratches head
<apeiros> the amount of time you'd have to spend to rule db ID and time out is significant. and if you rule them out you end up with RNG which you're unlikely to be able to predict.
<phale> I mean this program could be correct and i'm thinking incorrectly.
<pie_> actually that rng idea doesnt sound half bad
DeBot has quit [Ping timeout: 272 seconds]
<pie_> and in that case it is true that nothing can be done
<pie_> yeah the tim ein transit is annoying
<apeiros> phale: ensure that you're really always passing the same value to encrypt
<apeiros> phale: because I doubt you do
<phale> the random key is random.
<phale> that's probably why it changes when combined with the hash
DexterLB has joined #ruby
freerobby has joined #ruby
<apeiros> phale: well, we're back - again - at you having to properly specify your problem.
chishiki has quit [Changing host]
chishiki has joined #ruby
<pie_> phale: well if you change the input the output is going to change...
<apeiros> as I understand you, you claim that encrypt returns different values for the same input
<pie_> thats the point of a hash function
<phale> apeiros, loginhash
chishiki has quit [Quit: WeeChat 1.1.1]
stef204 has joined #ruby
<phale> not encrypt
<phale> sorry
<apeiros> phale: …
chishiki has joined #ruby
chishiki has quit [Changing host]
chishiki has joined #ruby
<apeiros> phale: you say rndk changes, so *your input changes*
<sevenseacat> so, how do i use send_file on heroku to send a file uploaded to s3
<phale> You see, the random key is gotten from input from the server and stored into $key
<apeiros> of course it'll have different ouptut
<phale> Yeah, but this is how the protocol works
<apeiros> *output
tubuliferous_ has quit [Ping timeout: 265 seconds]
<apeiros> sevenseacat: #rubyonrails ?
<sevenseacat> grr wrong one
<sevenseacat> sry
<apeiros> :-D
mroach has quit [Quit: mroach]
<apeiros> yeah, it's rare that there's more traffic here than there. easy to confuse under those conditions ;-p
<phale> but apeiros, this is how the protocol works
<pie_> apeiros: maybe they will reply to my email xD
<apeiros> but phale, your code works as expected
<phale> right
<phale> except it generates the wrong hash
<apeiros> then either you misunderstand the protocol or you implemented it wrongly.
<phale> could be
<phale> a small mistake makes all the difference in a program
Notte has joined #ruby
<endash> “for want of a goto fail”
yh has joined #ruby
jgorak has quit [Remote host closed the connection]
netroby has quit [Quit: Leaving]
last_staff has joined #ruby
renier has joined #ruby
plutonic has quit [Quit: plutonic]
Soda has joined #ruby
renier_ has quit [Ping timeout: 264 seconds]
_blizzy_ has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cheerio]
sevvie has quit [Ping timeout: 252 seconds]
renier_ has joined #ruby
jlast has joined #ruby
relix has joined #ruby
renier has quit [Ping timeout: 255 seconds]
zz_AlphaTech is now known as AlphaTech
renier has joined #ruby
RegulationD has joined #ruby
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
renier_ has quit [Ping timeout: 248 seconds]
jlast has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
lxsameer has quit [Quit: Leaving]
rocknrollmarc has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
renier_ has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
renier has quit [Ping timeout: 248 seconds]
Musashi007 has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
jgorak has joined #ruby
renier has joined #ruby
renier_ has quit [Ping timeout: 244 seconds]
timonv1 has joined #ruby
willharrison has joined #ruby
avril14th has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
last_staff has quit [Read error: Connection reset by peer]
bigmac_ has joined #ruby
freerobby has quit [Quit: Leaving.]
MasterPiece has joined #ruby
bigmac has quit [Ping timeout: 265 seconds]
zarubin_ has quit [Remote host closed the connection]
zarubin_ has joined #ruby
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
<phale> lol
<phale> turns out I was using a wrong salt
* phale facepalms
inavele has joined #ruby
mroach has joined #ruby
zarubin_ has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
senayar has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
LudicrousMango has quit [Remote host closed the connection]
freerobby1 has joined #ruby
horsecowdog has joined #ruby
freerobby1 has quit [Client Quit]
guest22344 is now known as salamonese
jamto11 has joined #ruby
timonv1 has quit [Ping timeout: 252 seconds]
senayar has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
Musashi007 has quit [Quit: Musashi007]
doodlehaus has joined #ruby
Sawbones has joined #ruby
zarubin_ has joined #ruby
senayar has joined #ruby
Sawbones has quit [Remote host closed the connection]
meschiv2 has joined #ruby
stef204 has quit [Remote host closed the connection]
stef204 has joined #ruby
krisquigley has joined #ruby
meschi has quit [Ping timeout: 264 seconds]
ki0 has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
zarubin_ has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 252 seconds]
Coraline_ZzZz is now known as Coraline
blackmesa has joined #ruby
Contigi has joined #ruby
renier_ has joined #ruby
stef204 has quit [Remote host closed the connection]
renier has quit [Ping timeout: 250 seconds]
mleung has joined #ruby
stef204 has joined #ruby
<apeiros> seriously, fuck the asshole who wrote the mail address ABNF. `quoted-pair = ("\" (VCHAR / WSP)) / obs-qp` - goes through 8 tokens and resolves to actually be "\" %x00-7f
bradleyprice has quit [Remote host closed the connection]
Tuxero has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
salamonese has quit [Ping timeout: 265 seconds]
<apeiros> and of course the syntax is recursive… a comment can contain a comment…
Notte has quit [Remote host closed the connection]
<apeiros> good thing I won't accept comments. otherwise that'd mean good bye to regex for parsing this.
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<phale> i hate when the server stops responding to my requests after i've tested 90 of them on it
sevvie has joined #ruby
serivich has quit [Ping timeout: 272 seconds]
<ytti> apeiros, really often people who write standards are no longer operationally active, and in some times never were
<ytti> so lot of times things like header formats are completely misguided to anyone who has slightest operational experience
<apeiros> ytti: I understand that. doesn't lessen my urge to hit that guy with a bat. :)
jlast has joined #ruby
_ixti_ has joined #ruby
chridal has joined #ruby
<ytti> but i have no idea how to fix this, i know i don't have the patience needed to watch through all the politics to get standard done
<chridal> Anyone in here use Tmux and Minitest? For some reason minitest is coloring my status line, and I can't find out how to turn it off...
Zamyatin has joined #ruby
serivich has joined #ruby
<apeiros> ytti: well, theoretically an RFC is a "request for comments"
<apeiros> maybe I should send an email - i.e., a comment
freerobby has joined #ruby
<apeiros> "simplify this the fuck down"
<apeiros> + "here's how:"
m8 has joined #ruby
<phale> here's what I do in my Ruby code, first I write a non-oop version of it then transfer it to an OOP version
<phale> anyone here do the same?
<apeiros> phale: no. I think, live and breath OO.
<phale> okay.
<apeiros> but I'm in this business for over 2 decades.
jlast has quit [Ping timeout: 245 seconds]
<sevenseacat> phale: definitely not.
<ytti> phale, why would you do that?
<sevenseacat> its doing twice as much work, and you'll end up with shittier code.
<phale> not sure
<ytti> and which paradigm do you use?
<ytti> ruby isn't very functional
<ytti> maybe you could do imperative on it
<apeiros> OO & imperative are orthogonal concepts
<apeiros> I'd say most OO is imperative.
<apeiros> as is functional
<phale> data-driven
Channel6 has joined #ruby
<apeiros> the only other paradigm in the same axis as imperative I know about is declarative. examples for that are prolog, sql
Soda has quit [Remote host closed the connection]
<sevenseacat> prolog did my brain in at uni
<apeiros> yeah, I found it quite annoying too :)
<apeiros> has its bright sides, though.
<apeiros> but I'm a control freak, so I don't like declarative programming.
<sevenseacat> then again, everything did my brain in at uni
<chridal> It is definitely uncomfortable, being a control freak myself.
<phale> i love data-driven programming
<phale> complex data over complex procedures
xploshioon has joined #ruby
<apeiros> any time my sql queries reach >10 lines, I remember that I dislike declarative programming :-/
kreeves has joined #ruby
xploshioon has quit [Client Quit]
<apeiros> (or any time my queries take >1ms)
kobain has joined #ruby
<apeiros> note, query time only. not data transfer.
<sevenseacat> i did c, hated it... did java, hated it... did prolog, hated it.... actually the little bit of haskell i did was fun
<chridal> sevenseacat: Why did you hate C, if I may ask?
<sevenseacat> two words - memory management
<chridal> two letters - ok
<chridal> :-)
<adaedra> strengh and weakness
<sevenseacat> :P
<ytti> pure functional languages seem hard time breaking into commercial world as well as being your go-to language
<ytti> i know there are opposite datapoints, but those seen minority
hanmac has quit [Ping timeout: 265 seconds]
<ytti> the code probably would be less buggy in pure functional language
<chridal> Yes I was actually about to get into haskell, clojure or the likes, but it doesn't seem like it has been embraced too much by the commercial world yet
<phale> you hated C?
<phale> what the hell
<phale> memory management doesn't even occur a lot when it comes to C unless you're programming in the wrong way
Sawbones has joined #ruby
<sevenseacat> what
<sevenseacat> are you smoking
<ytti> producing secure and bug-free C code seeems almost impossible to humans
<ytti> i see people lot smarter than me failing at it constantly
<ytti> so i don't feel motivated even to put effort in it
<adaedra> bug-free code seems impossible in every language
<phale> are you talking about memory allocation
<adaedra> that’s why we have things like testing
claptor has quit [Quit: this channel is bakas]
<ytti> i hope rust to become the next systems programming language
<ytti> much more compile time guarantees than c
<sevenseacat> i have zero desire to go back to low-level programming
<phale> ytti: nice meme
<adaedra> ah, rust.
LudicrousMango has joined #ruby
<chridal> how powerful is rust compared to C?
<ytti> define powerful?
<chridal> ambigious much.
<chridal> :-)
<adaedra> it can do what C can do.
adriancb has quit [Ping timeout: 256 seconds]
<ytti> i does not have GC or VM, so technically there is no overhead
<chridal> adaedra: Exactly what I wanted to know.
<ytti> while i see it more competitor to C++ than C, I still think it could replace C
<sevenseacat> i thought go was supposed to be the next great low-level thing
mleung has quit [Quit: mleung]
<ytti> nah
<chridal> That sounds really beautiful to me. If Rust is seen as a competitor to C++, but can replace C.
<ytti> go has great ecosystem, good libraries, good community
<chridal> but?
<phale> let's get this straight, you hated java and C but loved haskell?
<sevenseacat> yep.
<phale> >>##programming
<ruboto> phale # => nil (https://eval.in/308685)
<phale> go there
<ytti> but it's GC'd, which already excludes it from being low-level
<sevenseacat> i like high-level things.
<ytti> i also feel go isn't doing 'enough' it's pretty conservative and lacks lot of what people consider stables of modern languages
<chridal> sevenseacat: Do you like control? Although high-level is nice, there is something beautiful about knowing everything that is running from the bottom up.
<adaedra> Rust is nice, but difficult to handle
<ytti> rust seems more ambitious
serivich has quit [Ping timeout: 272 seconds]
Sawbones has quit [Remote host closed the connection]
<apeiros> *sob*, reading through the email ABNF and mapping it to ruby code reminds me that shit like "hello world!"@example.com is a valid email address.
<phale> apeiros: where can i create invalid emails
<apeiros> I wonder how many MTAs accept that
<apeiros> phale: I'm not sure your question makes any actual sense
<phale> like
<phale> 8"v\ŧ]„@"@email.com
<adaedra> This is valid?
<phale> no
<sevenseacat> probably
<adaedra> let’s ask the pro, apeiros
doodlehaus has quit [Remote host closed the connection]
adriancb has joined #ruby
icebourg has joined #ruby
<phale> apeiros has an anagram of pro in his name
bradleyprice has joined #ruby
icebourg has quit [Max SendQ exceeded]
<phale> a[p]ei[r][o]s
<apeiros> phale: while I'm not an ABNF evaluating machine - I'd say no, it's not valid
<shevy> hehe
icebourg has joined #ruby
<apeiros> then again, I'm now reading an extension which allows beyond-ascii local part.
<shevy> apieros is very pro
Sawbones has joined #ruby
<adaedra> é_è@example.org
<shevy> hmm perhaps the ruby-community site should also feature channel highlights
<shevy> like "greatest questions": "<phale> where can i create invalid emails"
Sawbones has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 252 seconds]
<shevy> or best replies "<sevenseacat> what are you smoking"
* sevenseacat curtsies
<shevy> hehehe
<apeiros> shevy: fork, add, make a pull request
bonhoeffer has joined #ruby
hanmac has joined #ruby
icebourg has quit [Client Quit]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradleyprice has quit [Ping timeout: 264 seconds]
linduxed has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
tubuliferous_ has joined #ruby
Sawbones has joined #ruby
linduxed has quit [Client Quit]
linduxed has joined #ruby
DigitallyBorn has joined #ruby
raja_r has joined #ruby
<raja_r> #java
tubuliferous_ has quit [Ping timeout: 246 seconds]
<raja_r> best place to learn ruby
<jhass> I'm bored
<jhass> raja_r: how so?
jamto11 has quit []
<chridal> haha. I love how the topic in #java says: "... and Javascript all have their own channel"
relix has joined #ruby
<DigitallyBorn> Is it possible to configure omniauth so I can reuse the facebook provider to expose a 2nd set of endpoints that use a different app id/secret?
<chridal> How many people do you think joins #java and is hoping to get help with JQuery :-D
<Coraline> I think it's understandable that new people don't understand the distinction actually.
Pharaoh2 has quit [Quit: Byebye]
<raja_r> in jquery and java
<raja_r> yes maybe
<Coraline> The naming of Javascript was a deliberate attempt to ride on Java's coattails
<Coraline> So mission accomplished
<jhass> source?
<Coraline> Memory
<raja_r> javascript is entirely different#caroline
<DigitallyBorn> Coraline: I do, too. I mean, it was named to be complimentary to Java
<Coraline> raja_r: I know that. I'm saying it's understandable that a newbie doesn't.
psy_ has joined #ruby
<DigitallyBorn> It was Mocha ... then something else, I think
<raja_r> yes it was named so that people are attracted to it
Pharaoh2 has joined #ruby
sevenseacat has quit [Quit: Textual IRC Client: www.textualapp.com]
<Coraline> I mean as catchy a name as ECMAscript is...
<raja_r> yeah source#jhass
Takle has quit [Remote host closed the connection]
<raja_r> what does coraline mean
Takle has joined #ruby
linduxed has quit [Quit: WeeChat 1.1.1]
<Coraline> Coraline is my name.
<DigitallyBorn> Nailed it
<raja_r> there is a movie named coraline too right
<Coraline> Yes.
<jhass> http://stackoverflow.com/a/2018747/2199687 there' actually a source
<jhass> took 1 min to google
linduxed has joined #ruby
pandaant has quit [Remote host closed the connection]
stamy has joined #ruby
doodlehaus has joined #ruby
sevvie has joined #ruby
<stamy> I have this code to parse serial port, and I want to put a timestamp on each batch (serial output reapeats every second, it's arduino data)
<stamy> however, my timestamp stays the same forever
<raja_r> rails for zombies
<raja_r> what is github
<jhass> stamy: Time.new without arguments is the same as Time.now
<DigitallyBorn> th so I can reuse the facebook provider to expose a 2nd set of endpoints that use a different app id/secret?
<DigitallyBorn> oops
<DigitallyBorn> Wrong window
<jhass> stamy: the Time object returned represents a specific point in time, it's not a factory for arbitrary times or so
RegulationD has joined #ruby
<stamy> jhass: ok, but i still want the time updated each line
<jhass> so use a different time
<jhass> and not the same one over and over again
meschi__ has joined #ruby
<stamy> jhass: got it, thanks
raja_r has left #ruby [#ruby]
<stamy> jhass: my last line from each repeating batch is "--------------". how can I put the timestamp not for each line but only after this line?
<jhass> with an if condition detecting that line
bruno- has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
bonhoeffer has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
meschiv2 has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 246 seconds]
bonhoeffer has quit [Client Quit]
<stamy> jhass: if message == "----------" puts Time.now
<stamy> doesn't work...
<jhass> then message isn't exactly "--------"
<jhass> inspect what it is with p(message)
piotrj has joined #ruby
ramfjord has joined #ruby
rocknrollmarc has joined #ruby
phale has left #ruby ["Leaving"]
DerisiveLogic has joined #ruby
bruno- has joined #ruby
serivich has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_hollywood has joined #ruby
Sawbones has quit [Remote host closed the connection]
rocknrollmarc has quit [Ping timeout: 245 seconds]
brainslug has joined #ruby
mleung has joined #ruby
Megtastique has quit []
havenwood has joined #ruby
piotrj has quit [Remote host closed the connection]
Vivex_ has joined #ruby
piotrj has joined #ruby
Sawbones has joined #ruby
reinaldob has joined #ruby
edwinvdgraaf has joined #ruby
gregf1 has quit [Quit: WeeChat 1.0.1]
Vivex has quit [Ping timeout: 244 seconds]
Pharaoh2_ has joined #ruby
Pharaoh2 has quit [Disconnected by services]
horsecowdog has quit [Remote host closed the connection]
sevvie has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
wicope has joined #ruby
wicope has quit [Max SendQ exceeded]
wicope has joined #ruby
amclain has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
bim has quit [Remote host closed the connection]
nszceta has joined #ruby
serivich has quit [Ping timeout: 272 seconds]
<stamy> jhass: I have an if statement that sends an e-mail upon finding "ALERT", but I don't want it to send each time the line gets printed in serial. I can do a sleep(5.minutes) but I woul like another idea if possible
<stamy> also would be nice to limit the e-mails to a few within few hours, for false-positive scenarios
<Coraline> stamy: do you have event models?
<stamy> no...
<stamy> very noob in ruby
<jhass> stamy: save Time.now into a variable when sending the mail, when checking whether to send check whether enough time elapsed
<Coraline> That's what I would do. Attach different behaviors to each type of object.
<Coraline> .: each type of event
<jhass> Time.now-last_email_sent_at > 5*60
<stamy> ok. thank you guys
f3lp has joined #ruby
LJT has quit [Quit: Sleeping...]
Channel6 has quit [Quit: Leaving]
brainslug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
LudicrousMango has quit [Remote host closed the connection]
LudicrousMango has joined #ruby
doodlehaus has quit [Remote host closed the connection]
shazaum has quit [Quit: This computer has gone to sleep]
krisquigley has joined #ruby
Sawbones has joined #ruby
gregf1 has joined #ruby
Sawbones has quit [Remote host closed the connection]
LudicrousMango has quit [Ping timeout: 246 seconds]
Sawbones has joined #ruby
browndawg has quit [Quit: Leaving.]
<shevy> GNU recreated yaml! http://www.gnu.org/software/recutils/
krisquigley has quit [Ping timeout: 256 seconds]
<shevy> with such a lovely syntax
<shevy> %auto: CreatedAt
<shevy> Does this not excite you into wanting to try out this more powerful variant of yaml?
<jhass> no
reinaldob has quit [Remote host closed the connection]
<shevy> hehe
ramfjord has joined #ruby
AlphaAtom has joined #ruby
bim has joined #ruby
_blizzy_ has joined #ruby
zarubin_ has joined #ruby
hpoydar has joined #ruby
<wasamasa> why is the logo two turtles copulating
<wasamasa> what's wrong with these neckbears
<wasamasa> *neckbeards
hpoydar has quit [Read error: Connection reset by peer]
<shevy> lol
hpoydar has joined #ruby
<shevy> they just like turtles
<shevy> and this is the way to go for more turtles
adriancb has quit [Remote host closed the connection]
zarubin_ has quit [Ping timeout: 246 seconds]
hpoydar has quit [Ping timeout: 265 seconds]
bim has quit [Remote host closed the connection]
adamjleonard has joined #ruby
overcrush has quit [Remote host closed the connection]
aswen has joined #ruby
overcrush has joined #ruby
icebourg has joined #ruby
bim has joined #ruby
Zarthus has quit [Quit: This night will fall like any other, daylight subsides and shadows crawl.]
Zarthus has joined #ruby
Zarthus has quit [Client Quit]
Zarthus has joined #ruby
nszceta has quit [Read error: Connection reset by peer]
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
MasterPiece has quit [Quit: Leaving]
nszceta has joined #ruby
phale has joined #ruby
phale has left #ruby ["Leaving"]
mleung has quit [Quit: mleung]
ponga has quit [Quit: Leaving...]
yxhuvvd has quit [Ping timeout: 272 seconds]
icebourg has quit []
sevvie has quit [Ping timeout: 252 seconds]
Sawbones has quit [Read error: Connection reset by peer]
dling` has joined #ruby
bim has quit [Disconnected by services]
Sawbones has joined #ruby
bim_ has joined #ruby
reinaldob has joined #ruby
zarubin_ has joined #ruby
LJT has joined #ruby
RegulationD has joined #ruby
dling has quit [Ping timeout: 265 seconds]
dx7 has joined #ruby
kaleido has joined #ruby
bim_ has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
yxhuvvd has joined #ruby
x77686d has joined #ruby
bim_ has joined #ruby
cocotton has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
davedev24_ has quit [Ping timeout: 264 seconds]
stamy has quit [Ping timeout: 245 seconds]
cocotton has quit [Remote host closed the connection]
davedev24_ has joined #ruby
stef204 has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
sevvie has joined #ruby
stef204 has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
tus has joined #ruby
yh has quit [Ping timeout: 255 seconds]
tubuliferous_ has joined #ruby
iamjarvo has joined #ruby
bim_ has quit [Remote host closed the connection]
DigitallyBorn has quit [Ping timeout: 272 seconds]
tubuliferous_ has quit [Ping timeout: 245 seconds]
mroach has quit [Quit: mroach]
overcrush has quit [Remote host closed the connection]
elaptics_away is now known as elaptics
overcrush has joined #ruby
vegardx has quit [Ping timeout: 252 seconds]
overcrush has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stamy has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
yeticry has quit [Ping timeout: 265 seconds]
j416 has quit [Ping timeout: 245 seconds]
patrick99e99 has joined #ruby
mrbond has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
yeticry has joined #ruby
jolg42 has joined #ruby
ki0 has quit [Remote host closed the connection]
DexterLB has quit [Quit: So long and thanks for all the fish]
j416 has joined #ruby
bonhoeffer has joined #ruby
bim_ has joined #ruby
icebourg has joined #ruby
f3lp has quit [Ping timeout: 244 seconds]
icebourg has quit [Client Quit]
mrbond has quit [Quit: mrbond]
anomaly__ has joined #ruby
Zarthus has quit [Quit: This night will fall like any other, daylight subsides and shadows crawl.]
anomaly_ has quit [Ping timeout: 256 seconds]
Zarthus has joined #ruby
stamy has quit [Quit: exit error code 434]
Joufflu has joined #ruby
adriancb has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
iamjarvo has joined #ruby
yh has joined #ruby
Soda has joined #ruby
Coraline is now known as Coraline_ZzZz
bim_ has quit [Remote host closed the connection]
tpimtts_away is now known as tpimtts
blackmesa has joined #ruby
m8 has quit [Quit: Sto andando via]
freerobby has quit [Quit: Leaving.]
Pharaoh2_ is now known as Pharaoh2
sevvie has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
nateberkopec has joined #ruby
jheg has joined #ruby
x77686d has quit [Quit: x77686d]
<atmosx> aloha
bradleyprice has joined #ruby
<chridal> That's so groce. Ruby in default PHP scheme...
sevvie has joined #ruby
ianfleeton has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
bim_ has joined #ruby
rkmylo has joined #ruby
ianfleeton has quit [Remote host closed the connection]
rkmylo has quit [Client Quit]
<havenwood> atmosx: aloha
<atmosx> havenwood: :-)
RegulationD has joined #ruby
sevvie has quit [Ping timeout: 248 seconds]
ianfleeton has joined #ruby
<hanmac> chridal: i think the author should look at Enumerable methods like select and any to make that better imo
A205B064 has joined #ruby
mrbond has joined #ruby
<chridal> hanmac: I'm going to do an implementation of prime-factorizations now, as it doesn't seem the std library has it.
<chridal> I'll have a look at select for it.
ianfleeton has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<atmosx> chridal: As Marcus de Sautoy said, Prime Factorization is *hard*. Basically, if Gauss couldn't do it, we're safe enough to use it virtually everywhere (referring to encryption).
<chridal> atmosx: Oh, so that is why the std library doesn't include an implementation of it. Thanks for telling me, because I am really just trying to solve a puzzle from exercism.io
bonhoeffer has quit [Quit: bonhoeffer]
<atmosx> chridal: Nope, I don't think the ruby std library has anything to do with it. You can write a module to implement some sort of factorization. What I'm saying is that either you solve the Riemann Hypothesis or your implementation will be awfully slow (independently of any programming language) for any real world applications other then solving puzzles by factorizing small numbers.
<hanmac> chridal: hm is 5605927 a prime? because of:
<hanmac> >> require "prime"; Prime.prime_division(5605927)
<ruboto> hanmac # => [[5605927, 1]] (https://eval.in/308695)
enebo has quit [Quit: enebo]
jenrzzz has joined #ruby
bonhoeffer has joined #ruby
<chridal> aha! Well, it doesn't need to be fast. It just needs to get the job done.
<havenwood> chridal: require 'prime'; N = 5_605_927; puts N.prime? ? "#{N} is prime" : "the prime factors of #{N} are\n#{N.prime_division.uniq.sort.join "\n"}"
<atmosx> >> require 'prime'; Prime.prime?(170141183460469231731687303715884105727)
<ruboto> atmosx # => (https://eval.in/308696)
* atmosx hopes it doesn't crash
aswen has joined #ruby
<atmosx> that was fast
Sembei has quit [Ping timeout: 250 seconds]
<chridal> havenwood: Oh, so prime_division actually does the factorization for you?
krisquigley has joined #ruby
<atmosx> chridal: yes
rocknrollmarc has joined #ruby
sevvie has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
nszceta has quit [Read error: Connection reset by peer]
nszceta_ has joined #ruby
<havenwood> chridal: yeah, my script is a bit off though since i forgot it returns Arrays
rocknrollmarc has joined #ruby
quimrstorres has joined #ruby
User458764 has joined #ruby
<chridal> Thanks. You guys just saved me a lot of time.
<havenwood> >> require 'prime'; 5_605_926.prime_division.map &:first
<ruboto> havenwood # => [2, 3, 277, 3373] (https://eval.in/308697)
phale has joined #ruby
<phale> can i program a 3d mmorpg in ruby
<chridal> phale: It wouldn't be awfully fast
<phale> oh then im goign to give up and cry lol
<chridal> I mean, it wouldn't perform well, comparing it to writing it in a different language, like say C++ or Java
<hanmac> chridal: if he uses some underlying lib for the rendering stuff like sfml or others it might be even possible
<phale> wait so you're saying it's impossible at this point?
<chridal> Is it impossible though? Isn't there some implementation of OpenGL for Ruby?
<phale> there's a wrapper
<atmosx> >> require 'prime'; require 'benchmark'; t = Benchmark.realtime {Prime.prime_division(170141183460469231731687303715884105727)}; printf("Time required: %.6f\n", t);
<hanmac> phale: its not impossible but i would say it does require bindings for some higher libs
<ruboto> atmosx # => (https://eval.in/308698)
<phale> Ruby is the only language i'm good at
krisquigley has quit [Ping timeout: 250 seconds]
<phale> and sed, bash and awk
overcrush has joined #ruby
<chridal> phale: This might sound odd, but the easiest would probably be to do it in Java then
<phale> oh
charliesome has quit [Quit: zzz]
<hanmac> phale: or search for bindings for some c++ libs like ogre
<chridal> I mean, Java isn't *great* for game dev, but it runs Minecraft.
<phale> hanmac: i was going for sdl and opengl
<chridal> It's got a friendly syntax, and is easy to learn.
<chridal> Or go for the bindings, yes.
<hanmac> sdl and opengl are good, but imo i would prefer to put as much stuff as possible into bindings specially if they can do some higher rendering stuff like ogre of sfml
piotrj has quit [Ping timeout: 256 seconds]
phale has quit [Quit: Leaving]
bonhoeffer has quit [Quit: bonhoeffer]
sevvie has quit [Ping timeout: 256 seconds]
Asher has quit [Quit: Leaving.]
<chridal> I guess it would be possible to do it with as well, tho.
<chridal> I know Notch of Mojang was doing some 3D roleplaying game in dart at some point
<chridal> Oh, he left.
<chridal> with dart as well, tho ***
<hanmac> hm that reminds me i need to work on my ogre binding again if possible ...
overcrush has quit [Ping timeout: 245 seconds]
<anomaly__> Minecraft has its own tweaked implementation of Java now that is baked in. performance increases and such seem well.
<chridal> oh, what do they tweak
<chridal> ?
<atmosx> running prime fact. of 170141183460469231731687303715884105727 made my cpu go crazy hehe
<anomaly__> saw a fellow run it off a raspberry pi. graphics was low but it was fluid
elaptics is now known as elaptics_away
<chridal> hm, how would they actually 'change' java tho?
<atmosx> anomaly__: new RPi or the old model?
jenrzzz has quit [Ping timeout: 255 seconds]
<anomaly__> atmosx 2. not anything older. more a proof of concept with said tweaks in place.
patrick99e99 has quit [Ping timeout: 246 seconds]
<Hijiri> so minecraft is optimized for windows?
jenrzzz has joined #ruby
<hanmac> every "goodbye" to oracle is one not enough ;P
patrick99e99 has joined #ruby
tuxdna_ has joined #ruby
tuxdna has joined #ruby
c355E3B has joined #ruby
<anomaly__> Hijiri, the raspberry pi runs linux. same tweaks applied there.
tuxdna has quit [Client Quit]
tuxdna_ has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sembei has joined #ruby
<atmosx> I have a RPi 2 here, and don't really know what to do with it
<atmosx> I might just install raspbian and use it as a computer.
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
chridal has quit [Ping timeout: 256 seconds]
dx7 has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
<havenwood> atmosx: Have you tried the wolfram language on it? It was too slow to be usable on a rev b. I'm curious how it runs on a 2!
jenrzzz has quit [Ping timeout: 245 seconds]
<atmosx> havenwood: nope
timonv1 has joined #ruby
<havenwood> free just on a pi: https://www.wolfram.com/raspberry-pi/
chridal has joined #ruby
<atmosx> havenwood: yeah, that' sinteresting. But what kind of things you could do with wolfram?
<atmosx> data manipulation
<havenwood> atmosx: here're some examples: https://www.wolfram.com/language/gallery/
Azure has joined #ruby
<atmosx> wow all these are super interesting thanks havenwood
bonhoeffer has quit [Read error: Connection reset by peer]
bonhoeffer has joined #ruby
cocotton has joined #ruby
<atmosx> havenwood: you pass data via code to the wolfram cloud and returns rnesults?
Soda has quit [Remote host closed the connection]
freerobby has joined #ruby
iliketurtles has joined #ruby
<atmosx> havenwood: what I don't understand is... the computation for this data takes palce in the RPi or the RPi sends requests to their private API and gets the results?
<atmosx> I think the later by looking at some code samples
<atmosx> I wonder if you could combine this with some betting algorithm.
<atmosx> brb
cefkamcau has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
cocotton_ has joined #ruby
tcrypt has joined #ruby
eshiffob has quit [Ping timeout: 246 seconds]
jimms has joined #ruby
cocotton has quit [Ping timeout: 246 seconds]
piotrj has joined #ruby
Coraline_ZzZz is now known as Coraline
JoshGlzBrk has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
Cache_Money has joined #ruby
freerobby has quit [Quit: Leaving.]
cocotton_ has quit [Ping timeout: 264 seconds]
patrick99e99 has quit [Ping timeout: 250 seconds]
patrick99e99 has joined #ruby
bonhoeffer has joined #ruby
dseitz has joined #ruby
rocknrollmarc has quit [Ping timeout: 244 seconds]
tubuliferous_ has joined #ruby
chridal has quit [Ping timeout: 245 seconds]
nszceta_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iliketurtles has quit [Quit: zzzzz…..]
FernandoBasso has quit [Ping timeout: 265 seconds]
tubuliferous_ has quit [Ping timeout: 264 seconds]
bonhoeffer has quit [Read error: Connection reset by peer]
bonhoeffer has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
dx7 has joined #ruby
adamjleonard has quit [Quit: Leaving...]
chridal has joined #ruby
bonhoeffer has quit [Client Quit]
amdbcg has joined #ruby
DigitallyBorn has joined #ruby
DigitallyBorn is now known as Guest53747
kiri has quit [Remote host closed the connection]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
Guest53747 has quit [Ping timeout: 265 seconds]
bonhoeffer has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rvchangue has quit [Ping timeout: 246 seconds]
lavros has quit [Quit: leaving]
adriancb has quit [Remote host closed the connection]
bluOxigen has quit [Remote host closed the connection]
bluOxigen has joined #ruby
bonhoeffer has quit [Client Quit]
DexterLB has joined #ruby
patrick99e99 has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
jimms has quit [Remote host closed the connection]
kyrylo has quit [Ping timeout: 245 seconds]
patrick99e99 has joined #ruby
iliketurtles has joined #ruby
bluOxigen has quit [Remote host closed the connection]
bluOxigen has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
hmnhf has joined #ruby
hmnhf has quit [Client Quit]
_hollywood has quit [Ping timeout: 255 seconds]
bonhoeffer has joined #ruby
havenwood has quit []
_hollywood has joined #ruby
meschi has joined #ruby
meschi has quit [Client Quit]
dx7 has quit [Remote host closed the connection]
meschi__ is now known as meschi
meschi is now known as asdfasdfasdf
Sawbones has joined #ruby
asdfasdfasdf is now known as meschi
<apeiros> so, fuck everybody who says email validation is not possible. rfc compliant validation, with some volitional exceptions (no comments in emails - which are valid by spec).
RegulationD has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
<apeiros> including addresses containing utf-8
LJT has quit [Quit: Quiting...]
rvchangue has joined #ruby
quimrstorres has quit [Remote host closed the connection]
LJT has joined #ruby
<adaedra> I don’t think anyone say it’s not possible
DigitallyBrn has joined #ruby
<adaedra> It’s just hard
c0mrade has joined #ruby
<c0mrade> So....
<apeiros> so hard, it took me all of ~1h of work
<c0mrade> WriteLn.Console("Hello");
<apeiros> back to watching tv, ads are over :)
<c0mrade> Anyone interested in free hosting on a home server? I give up to 2.5GB of RAM and 200GB of HDD. The virtualization I use is VMware and Hyper-V so if your OS is Linux, kernel if fully cutomizable with full root access :P
RegulationD has quit [Ping timeout: 250 seconds]
jgorak has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
chridal has quit [Quit: WeeChat 1.1.1]
chridal has joined #ruby
<shevy> class << $stdout
<shevy> reading other people's ruby code is full of surprises
quimrstorres has joined #ruby
riotjones has joined #ruby
User458764 has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
c355E3B has quit [Quit: Leaving]
User458764 has joined #ruby
jimms has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
Soda has joined #ruby
jimms has quit [Read error: Connection reset by peer]
Sawbones has quit [Remote host closed the connection]
jimms_ has joined #ruby
<shevy> that extends $stdout right?
FernandoBasso has joined #ruby
_ixti_ has quit [Ping timeout: 248 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> class << $stdout; def write
tjbiddle has joined #ruby
<shevy> I guess this could be rewritten like so?
<shevy> def $stdout.write
relix has joined #ruby
chridal has quit [Quit: WeeChat 1.1.1]
<shevy> the guy who wrote that is kind of funny
<shevy> "NOTICE: It is NOT recommended to install by RubyGems, because 'require "rubygems"' is too heavy operation for CGI program."
chridal has joined #ruby
<canton7> probably valid :P
nmalacarne has joined #ruby
<shevy> we could use C for .cgi !
Channel6 has joined #ruby
JDiPierro has joined #ruby
reinaldob has joined #ruby
colorisco has joined #ruby
_hollywood has quit [Quit: Leaving]
<shevy> what would be different if I'd use this
bonhoeffer has joined #ruby
<shevy> class << STDOUT; def write
krisquigley has joined #ruby
timonv1 has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
reinaldob has quit [Ping timeout: 264 seconds]
<c0mrade> shevy: Why is that?
<shevy> c0mrade no it is a question, I assume it would be different
<shevy> understanding code written by other people can be quite frustrating
krisquigley has quit [Ping timeout: 252 seconds]
greenride has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
vdamewood has joined #ruby
soulcake has quit [Quit: Quack.]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
Musashi007 has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dx7 has joined #ruby
PhaseCode has joined #ruby
DigitallyBrn has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
duncannz has joined #ruby
overcrush has joined #ruby
<PhaseCode> Hi guys, I have kind of a complex situation that I'm having trouble. I have two fields start_date and end_date of type DateTime, which store start/end dates. For example Feb 26th 5PM and Feb 27th 8AM, but I want to do reoccuring daily, ie if its Feb 29th 1AM it should fall into that range if its reoccuring daily
duncannz has quit [Max SendQ exceeded]
iliketurtles has quit [Quit: zzzzz…..]
jack_rabbit has joined #ruby
duncannz has joined #ruby
doodlehaus has joined #ruby
Soda has quit [Remote host closed the connection]
<djellemah> >> STDOUT.object_id == $stdout.object_id
<ruboto> djellemah # => true (https://eval.in/308710)
<apeiros> PhaseCode: and your problem is?
bruno- has quit [Quit: Lost terminal]
<apeiros> djellemah: if you don't have a question for which this code serves as demonstration, then please use your own pry/irb.
nmalacarne has quit [Read error: Connection reset by peer]
jimms_ has quit [Read error: Connection reset by peer]
<PhaseCode> apeiros: How would I determine if 1AM falls between 5PM and 8AM
<djellemah> apeiros: see shevy's question
overcrush has quit [Ping timeout: 272 seconds]
<apeiros> PhaseCode: date/time has comparison methods
<apeiros> PhaseCode: see Comparable
jimms has joined #ruby
bruno- has joined #ruby
codecop has quit [Remote host closed the connection]
<greenride> Ruby coding/style/design pattern question: If one is creating one hash from another (with different key names) and making several small decisions along the way based on whether some entries in the original hash are nil, what is the best way to handle such a task?
naftilos76 has quit [Remote host closed the connection]
jimms has quit [Read error: Connection reset by peer]
<apeiros> greenride: depends on specifics. with the given description, I'd probably use .map + .to_h
jimms has joined #ruby
<apeiros> djellemah: ok
ghr has quit [Ping timeout: 245 seconds]
Darryl___ has quit [Quit: Connection closed for inactivity]
dogweather has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
dixie__ has joined #ruby
jenrzzz has joined #ruby
<greenride> apeiros: I asked the question poorly. I'm refactoring a method over 100 lines. The method creates one hash from another. The hash has about 20 fields. The method renames keys, sets some values, and chooses values based on whether some values in the original hash are nil.
soulcake has joined #ruby
<apeiros> greenride: that's still the same vague, so I wouldn't change my response.
iliketurtles has joined #ruby
Channel6 has quit [Quit: Leaving]
<apeiros> with a fixed number of fields, I'd probably just use a hash literal
_ixti_ has joined #ruby
Nahra has quit [Remote host closed the connection]
<greenride> In the xml world, there is xslt. Does something like this exist for Ruby hashes?
vt102 has quit [Remote host closed the connection]
<apeiros> that sounds like serious overkill. maybe such a thing exists, I wouldn't know it.
DeathCode has joined #ruby
tcrypt has quit [Remote host closed the connection]
<DeathCode> hey guys
<DeathCode> why do java coders not get laid?
steven43126 has quit [Ping timeout: 248 seconds]
<inavele> with differents keys? :S
<DeathCode> because they treat women like objects
<DeathCode> hahahah
<DeathCode> get it?
<inavele> LoL
<Coraline> That's... not really funny?
c0mrade has quit []
<DeathCode> oh no?
max96at|off has quit [Ping timeout: 246 seconds]
nszceta has joined #ruby
<DeathCode> oh i thought i was funny :(
<inavele> sounds funny relax :D
AlphaTech has quit [Ping timeout: 265 seconds]
<DeathCode> oh you liked it ?
<DeathCode> :)
<inavele> yeap
<greenride> DeathCode: Why do Ruby programmers not get laid?
momomomomo has joined #ruby
<wasamasa> lol
<djellemah> greenride: The closest I've found is this, and it's not very close: http://kschiess.github.io/parslet/transform.html
<greenride> because they're always thinking about self.
<DeathCode> greenride:because they are condescending as fuck
<DeathCode> ohh
<DeathCode> ok
<wasamasa> apeiros: free this guy
<DeathCode> free my niggas in prison
<wasamasa> apeiros: let the garbage collector loose
adriancb has joined #ruby
<apeiros> !ban DeathCode !P 3d good bye
DeathCode was kicked from #ruby by ChanServ [Banned: 3d good bye]
AlphaTech has joined #ruby
<Coraline> You beat me to it.
<adaedra> thank you.
<apeiros> hm
<wasamasa> thanks
<apeiros> hm, that code is obviously still buggy
adriancb has quit [Remote host closed the connection]
benlieb_ has joined #ruby
<Coraline> I like to think of it as a three-dimensional kick
lele has joined #ruby
<wasamasa> the regulars, the op and the chanserv?
<shevy> :>
agent_white has joined #ruby
<workmad3> wasamasa: or nick, hostname and IP
lele is now known as Guest24
<wasamasa> workmad3: the holy trinity
<shevy> what would IRC be without those people
<Coraline> ...tolerable?
<adaedra> a better place
<wasamasa> shevy: reminds me that I got a pretty infamous one permabanned after being randomly granted +o
<apeiros> I concur with adaedra
<djellemah> nobody's completely useless, they can always serve as a bad example
<wasamasa> well
<greenride> Coraline: Was I out of line as well?
<wasamasa> it becomes bothersome if they start harassing everyone
Sawbones has joined #ruby
dixie__ has quit [Remote host closed the connection]
<wasamasa> greenride: well, you've been not doing that for weeks, have you
<workmad3> greenride: no, you were just making a joke... you didn't get onto personal attacks or racial language
<apeiros> deathcode has been a nuisance since they first joined. I think they actually intended to test the limits.
<shevy> can someone explain this...
<Coraline> greenride: before I write something I ask myself if I would want someone who was in-channel for the first time to think that that was the way people always talked.
<shevy> def $stdout.write(*args)
<shevy> super(*args)
<shevy> both times * is used?
<workmad3> Coraline: same... and then I hit return anyway :P
<shevy> lol workmad3
JDiPierro has quit [Remote host closed the connection]
<shevy> #ruby is full of rich characters
<adaedra> rich?
<adaedra> ok everyone, this is a hold-up
<Coraline> sleep(5)
<agent_white> \o/
jolg42 has quit [Quit: ZZZzzz…]
<djellemah> shevy: the second *args looks redundant to me, should be able to just say super
jonr22 has joined #ruby
RegulationD has joined #ruby
<shevy> djellemah yeah that was what I was thinking too, I am trying to understand why the guy used that
<shevy> but if you support my gut feeling then all the better, AWAY with the second * \o/
<greenride> Coraline: Fair enough... A part of my mind was thinking it was inappropriate before hitting enter... but I did it anyways. Then, he started getting worse and off-topic.
<Coraline> greenride: no worries
tubuliferous_ has joined #ruby
Sawbones has quit [Ping timeout: 250 seconds]
<shevy> he even used a () there
<shevy> ModRubyExceptionPrinter.new().handle(error)
<Coraline> Guessing that the person came from another language recently?
<djellemah> I wonder if ruboto will die if I do this: def $stdout.write(*args); super; end; $stdout.write "oops\n"
<shevy> hmm damn
<adaedra> the code is available online, so you could run one instance yourself and test
<djellemah> adaedra: where?
<greenride> djellemah: I'm looking at the parslet link. This might be exactly what I need. I wasn't exactly looking for an xslt equivalent but didn't know how else to ask the question.
<jidar> anybody help me with some erb? I'm having a problem with the way .map { |x| 'text' + x.strip }.join is working, because the join doesn't seem to be including the text after the map variable - https://gist.github.com/38daa9c134d2bbf419cf thanks
<adaedra> djellemah: see with apeiros
<apeiros> djellemah: tries to break the bot are bannable offense.
<jidar> the real curious thing is, I can prove the design works the same in straight ruby, see example in gist.
<djellemah> apeiros: That's why I didn't >> yet ;-)
workmad3 has quit [Ping timeout: 255 seconds]
<apeiros> djellemah: if all you want is break it, then you better don't :)
<djellemah> apeiros: igzakly
c355E3B has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
<apeiros> djellemah: ¿que?
<adaedra> Quoi ?
Musashi007 has quit [Quit: Musashi007]
<djellemah> just say it aloud
tubuliferous_ has quit [Ping timeout: 272 seconds]
<shevy> QUOI
wicope has quit [Read error: Connection reset by peer]
<adaedra> ahah :D
<djellemah> igzakly = phonetic for exactly
max96at|off has joined #ruby
<agent_white> Holyhangoverbatman
prasselpikachu has quit [Quit: ZNC - http://znc.in]
kirun has quit [Quit: Client exiting]
max96at|off is now known as max96at
<adaedra> wrong, it’s /ɪɡˈzæk(t)li/
<shevy> I dislike that, in order to use $ERROR_INFO, one has to require 'English'
<djellemah> adaedra: um, precisely. But the p is silent, as in swimming.
<adaedra> .
* djellemah will just stop trying to be witty now.
prasselpikachu has joined #ruby
jolg42 has joined #ruby
<shevy> lol
<shevy> I really need to start collecting quotes from #ruby
<PhaseCode> apeiros: You still here?
<apeiros> PhaseCode: partially
<apeiros> PhaseCode: just ask the channel
<Coraline> jidar: try "--enable=#{r.strip}" and see if that makes a difference?
<PhaseCode> apeiros: Okay :) Thanks!
<shevy> <wasamasa> why is the logo two turtles copulating. what's wrong with these neckbears (neckbeards)
JDiPierro has joined #ruby
<shevy> "<sevenseacat> what are you smoking"
<shevy> "<phale> where can i create invalid emails"
<PhaseCode> Hi guys, I have kind of a complex situation that I'm having trouble. I have two fields start_date and end_date of type DateTime, which store start/end dates. For example Feb 26th 5PM and Feb 27th 8AM, but I want to do reoccuring daily, ie if its Feb 29th 1AM it should fall into that range if its reoccuring daily and the two dates cross the date boundry.
<shevy> ok that is! I shall try my luck at the issue request at github for funny IRC quotes!
hfp_work has quit [Ping timeout: 250 seconds]
hfp has quit [Ping timeout: 255 seconds]
<adaedra> good luck
<wasamasa> shevy: like !grab on #archlinux?
<adaedra> !grab
<wasamasa> shevy: or more like what bucket on #xkcd does?
<shevy> what is !grab doing?
<adaedra> I have some quotes saved by archlinux’s bot
pandaant has joined #ruby
<adaedra> shevy: quotes last message
<wasamasa> shevy: it stores the last thing someone wrote in its db
<shevy> ah you mean like the bot stores those thingies
<wasamasa> shevy: you can retrieve it later
adriancb has joined #ruby
<wasamasa> shevy: on #xkcd you can store more than one such message by using regex carefully, it even works for things that weren't the last message in a conversation
<jidar> Coraline: I can try that
* djellemah gets temporal dissonance trying to figure out what PhaseCode is asking.
towski__ has joined #ruby
<PhaseCode> :(
vdamewood has quit [Quit: Computer has gone to sleep.]
<PhaseCode> Let me try and re-explain
<shevy> I see I see
turtil has quit [Quit: WeeChat 1.1.1]
<greenride> djellemah: I looked at parslet more carefully. I am looking for a way to parse and transform data, but it is not quite what I need. I'm looking for a gem that is designed to transform data. A DSL for this purpose would probably look a bit different from a parser/transformer used as a compiler.
turtil has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
<PhaseCode> In my database I have two fields that are datetimes, from_date and to_date, and a third field which sets if its a reoccuring event. For example if I set from_date = Feb 27th 5PM and to_date = Feb 28th 8AM amd it is a reoccuring event, everyday between 5PM and 8AM it should happen. So I'm trying to say is if Time.now.utc is between 5pm and 8am please do xyz
<djellemah> greenride: yeah, like I said it's not all that close. I'd be interested to hear if you find something that does what you're after, cos I've needed that before.
<PhaseCode> If its not reoccuring it doesn't matter, we just strictly compare the two dates
jenrzzz has quit [Ping timeout: 246 seconds]
<jhass> shevy: you may join #ruby-community btw ;)
<shevy> yeah give me a moment anyway, I have to finish that thingy from that other guy... written in 2008... that's soon 10 years of ruby code :\
quimrstorres has quit [Ping timeout: 264 seconds]
<shevy> I also forgot to buy beer yesterday...
<PhaseCode> djellemah: Does that clear it up a bit?
quimrstorres has joined #ruby
<shevy> another part that he used is: at_exit
<shevy> and that actually scares me
Zai00 has quit [Quit: Zai00]
musashi1 has joined #ruby
<shevy> I guess if anyone requires something like that, at_exit will always trigger right? so like if you write:
<djellemah> PhaseCode: Somewhat. Are you wanting to construct a db query for that?
JDiPierro has quit [Remote host closed the connection]
<shevy> at_exit { puts 'BYE MAN!!!' }
<shevy> it is always invoked right?
<greenride> djellemah: Totally. Transforming and Parsing data always makes my methods ugly. It's hard to keep cyclomatic complexity and flog score low when doing this type of thing is a real world application.
vdamewood has joined #ruby
towski__ has quit [Ping timeout: 252 seconds]
<greenride> djellemah: Closest thing I found is trash, which is included in the hashie gem. It is not as full featured as I would like though.
<PhaseCode> djellemah: Negative, I'm just trying to see if the time right now falls between the two dates. So here's a good example: from_date = "2015-04-03 20:23:42" to_date = "2015-04-04 08:23:42" and my current time is 2015-04-05 21:48:19 UTC, which would fall between those two times
MatthewsFace has joined #ruby
<djellemah> greenride: sometimes, ugly problems need ugly code.
<shevy> yeah
<adaedra> PhaseCode: a < Time.now && Time.now < b ?
<shevy> that's how PHP became popular
<apeiros> if <= in each place is an option: a.between?(b,c)
<djellemah> PhaseCode: from_date = Date.parse("2015-04-03 20:23:42"); to_date = Date.parse("2015-04-04 08:23:42"); (from_date..to_date) === Time.now.utc
max96at has quit [Ping timeout: 264 seconds]
<apeiros> grah, why won't people stop using .parse?
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
mrbond has quit [Quit: mrbond]
<apeiros> .parse is a stop-gap, a fill-in. it's "hey ruby, try to figure out which date is in here because I've no idea"
<zenspider> because it is convenient. seems obvious.
<djellemah> apeiros: go on,
<apeiros> strptime
<apeiros> if you know the format
<djellemah> 'ave a cuppa. Do you no end o' good
<jidar> Coraline: produces the same output, oddly enough.
Megtastique has joined #ruby
<apeiros> and since I think 2.1, strptime is even crazy fast.
<apeiros> zenspider: yeah, unreliable results are also a job security device… so two for one I guess.
<PhaseCode> adaedra: I'm not tying to compare the actual dates, just times
<djellemah> greenride: thanks, I'll check out trash
<adaedra> ah
<PhaseCode> djellemah: Returns false, since it's trying to compare full dates not times :(
<jidar> anybody help me with some erb? I'm having a problem with the way .map { |x| 'text' + x.strip }.join is working, because the join doesn't seem to be including the text after the map variable - https://gist.github.com/7c5b7f6665e9f75368d1 added some more output
vdamewood has quit [Quit: Computer has gone to sleep.]
<Coraline> jidar: try putting the same input in irb. That will eliminate erb as a variable.
<greenride> djellemah: Maybe... The xslt approach is elegant in some ways. I feel like I shouldn't have to write code like... `if payment && payment[:billing_address] && payment[:billing_address][:first_name]`.
<djellemah> PhaseCode: Maybe DateTime.now ?
<jidar> Coraline: works fine, > "rhel-7-server-openstack-6.0-rpms,rhel-7-server-openstack-6.0-installer-rpms,rhel-7-server-rh-common-rpms".split(',').map { |r| '--enable=' + r.strip }.join(' ')
<jidar> I feel like it's something goofy with how erb works
<Coraline> jidar: well, that is weird. Try building your string in the controller?
MatthewsFace has quit [Remote host closed the connection]
<PhaseCode> djellemah: Same thing :(, the thing that makes this so hard is we don't care about the date, just the time.
max96at|off has joined #ruby
<jidar> Coraline: yea, the way I worked around it for now was by parsing it out manually and throwing the string into the template itself
existensil has quit [Quit: WeeChat 0.4.2]
MatthewsFace has joined #ruby
<Coraline> PhaseCode: why not store the time then?
v0id has joined #ruby
max96at|off is now known as max96at
<PhaseCode> Coraline: What do you mean? I store the full datetime?
<Coraline> Denormalization can be useful sometimes.
doodlehaus has quit [Remote host closed the connection]
<Coraline> PhaseCode: do the math on the write to extract the time and write that, as opposed to doing math on the query?
<Coraline> Like you can grab the hour if that's what you care about.
musashi1 has quit [Ping timeout: 265 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
existensil has joined #ruby
<Coraline> Unless I'm misunderstanding you.
<PhaseCode> Coraline: Correct, the problem is when you cross the 24 hour window. So if you say from 22:00 to 08:00 then how do you find out if you are part of that window?
chridal has quit [Ping timeout: 264 seconds]
<PhaseCode> from = 22:00 to = 0800, now = 0100
<PhaseCode> now is between those two times
<djellemah> greenride: gem 'fastandand' - payment.andand[:billing_address].andand[:first_name] is slightly nicer.
decoponio has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
<zenspider> my god... stop using andand
<zenspider> that is, by far, the worst thing to ever come from my libraries
MatthewsFace has quit [Ping timeout: 252 seconds]
<apeiros> zenspider: are you sure? didn't you also patch NilClass to silently drop method_missing exceptions? :)
<djellemah> zenspider: hah. karma. What do you use?
<PhaseCode> Coraline & djellemah: Does that help? I suck at explaining complex problems like this
dogweather has quit [Remote host closed the connection]
<Coraline> apeiros: at least it changes the error message, which is an important part of debugging. Erm.
<Coraline> Also, hi zenspider
<zenspider> apeiros: hey. I _like_ objective-c! I think that is a fine pattern, but it only works if everyone uses it
<apeiros> zenspider: correct
quimrsto_ has joined #ruby
* zenspider waves to Coraline
momomomomo has quit [Quit: momomomomo]
<adaedra> ”I _like_ objective-c!”
<adaedra> this is not something I see often
<Coraline> Every language has something to teach.
<shevy> COBOL
<greenride> zenspider: I'm interested in the answer to djellemah's question as well.
quimrstorres has quit [Ping timeout: 244 seconds]
<shevy> they all wanna get a peek at zenspider
<shevy> greenride he may now be using .andandand
riotjones has joined #ruby
<djellemah> PhaseCode: I have an idea, but I need to ask pry
<Coraline> COBOL was very important. We probably owe the existence of every modern language to COBOL.
sevvie has joined #ruby
<PhaseCode> djellemah: Okay :) Thank you so much!!
<greenride> shevy: lol... andand is such an awful name... I'm still thinking through the actual design pattern...
<shevy> andwhat
<shevy> andwhatthen
<adaedra> whatwhat
<zenspider> djellemah/greenride: I use the simplest code that could possibly work... with the absolute minimum of clevar. That immediately rejects andand and its ilk
<djellemah> greenride: call it a moonad
max96at has quit [Ping timeout: 252 seconds]
_ixti_ is now known as ixti
<zenspider> andand is a design smell. a really BAD design smell.
reinaldob has joined #ruby
willharrison has joined #ruby
DLSteve has joined #ruby
<jhass> making a gem in order to have something to blame people for using it
<jhass> nice move
<greenride> zenspider: The initial problem was creating one hash from another... within that transformation, stuff like this crops up: `if payment && payment[:billing_address] && payment[:billing_address][:first_name]`. How do you deal with it?
max96at|off has joined #ruby
max96at|off is now known as max96at
doodlehaus has joined #ruby
<Coraline> Transformation object?
JoshGlzBrk has joined #ruby
<zenspider> jhass: I didn't write it. dope.
riotjones has quit [Ping timeout: 256 seconds]
<zenspider> I don't structure my code like that. again... nil checks are a design smell.
jack_rabbit has quit [Ping timeout: 256 seconds]
<jhass> misread "that is, by far, the worst thing to ever come from my libraries" then I guess ;) tbh I only skimmed backlog
iliketurtles has quit [Quit: zzzzz…..]
<greenride> Coraline: Transformation object?
<greenride> What do you mean?
pico-pete has quit [Ping timeout: 245 seconds]
<Coraline> greenride: depending on how much of a pain it is, I might pass the hash to an object that does the mapping?
<Coraline> Testable at least that way
sevvie has quit [Ping timeout: 248 seconds]
<Coraline> With methods for executing the transformations on a per-field basis, maybe
<zenspider> 'if a && a.b && a.b.c' is really no different than 'if a.b.c' and that is a violation of demeter. use null objects or transformations or just structure your shit right.
pico-pete has joined #ruby
<zenspider> eg, params should be unpacked immediately and not passed around / used
<adaedra> er
reinaldob has quit [Ping timeout: 244 seconds]
Notte has joined #ruby
<adaedra> if a.b.c will throw if a is nil
<greenride> zenspider: It's a demeter violation only if you're going from object to object.
<zenspider> adaedra: you're missing the point.
<greenride> zenspider: If it's all intra-object, is that a demeter violation?
<zenspider> greenride: nope. you're reaching into someone else's pocket
<djellemah> PhaseCode: Something like this Time.parse('12:00',from_date.to_date). Basically you put Time.now into the date of from_date. I think that will work.
kreeves has quit [Ping timeout: 272 seconds]
Aswebb_ has quit []
<djellemah> apeiros will be glad to know that also works with strptime
<greenride> zenspider: Let's say you get a monstrous hash from a 3rd party api, to where do you unpack the hash? And, how do you avoid nil checks?
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<djellemah> zenspider: how about a.b.c rescue nil ?
* djellemah ducks
hfp has joined #ruby
<greenride> djellemah: Will you do that for every field?
<greenride> You'll have methods with 20 or 30 rescue nils?
hfp_work has joined #ruby
* djellemah waves the "I'm kidding" flag
<zenspider> greenride: go read everything Coraline said above
<zenspider> that
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Client Quit]
FreeDome has joined #ruby
<djellemah> adioth amoebath. Gotta go.
<greenride> zenspider: Coraline suggested breaking down into multiple methods on a per-field basis. Is that what you're referring to?
<greenride> zenspider: And, this inside a transformation object.
quimrstorres has joined #ruby
<greenride> zenspider: And, that transformation object could use a proxy pattern with an underlying trashie (from hashie)?
reinaldob has joined #ruby
quimrsto_ has quit [Ping timeout: 246 seconds]
<zenspider> I said "no clevar" so hashie is out.
FreeDome has quit [Excess Flood]
piotrj has quit [Remote host closed the connection]
tcrypt has joined #ruby
piotrj has joined #ruby
Sawbones has joined #ruby
jack_rabbit has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
_blizzy_ is now known as polar_bear
polar_bear is now known as _blizzy_
krisquigley has joined #ruby
reinaldob has quit [Ping timeout: 244 seconds]
tcrypt has quit [Ping timeout: 252 seconds]
sevvie has joined #ruby
adriancb has quit [Remote host closed the connection]
dx7 has quit [Remote host closed the connection]
pcp135 has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
adriancb has joined #ruby
<greenride> zenspider: Thanks
benlieb_ has quit [Quit: benlieb_]
vdamewood has joined #ruby
<zenspider> schlepping around big hashes of shit is basically avoiding proper OO design entirely
Sawbones has quit [Remote host closed the connection]
<Coraline> ^^
<woop> xposting from #RoR to see if this channel might be able to advise me
<woop> howdy - I've got an API I'm in the process of revamping, and an idea put forward was to put the old one at something like "mysite.com/api/v1" and the new one at "mysite.com/api/v2" with the v2 api using all of v1's routes pointing to v1's controllers
<woop> the idea is to have the v2 api present all of the relevant functionality right away as I replace the parts that need to be replaced
<woop> is there some easy way to do this in rails' routes.rb, and is this even a good idea to do?
<woop> thanks for any advise
adriancb has quit [Ping timeout: 265 seconds]
<zenspider> "easy way to do this in rails' routes.rb" == learn your editor better?
<zenspider> otherwise, I'm not getting the question.
enterprisedc has quit [Remote host closed the connection]
<zenspider> sounds like 5-10 minutes max with emacs + macros
<zenspider> I'd assume roughly the same with vim
steven43126 has joined #ruby
<woop> I guess that'd be one way about it
<woop> was just wondering if there was rails magic for it
<woop> but having explicit routes is easy to reason about
<zenspider> there might be... but in my world, magic is bad.
<woop> or if I could just make a dispatcher controller that sends the requests to nonexistent routes through the v1 API's routes before 404'ing
iraszl_ has joined #ruby
zarubin_ has quit [Remote host closed the connection]
<zenspider> because that's a _great_ idea
Sawbones has joined #ruby
<woop> oh, fine
<woop> you're right: that's a terrible idea.
<woop> fastest way would probably just be to run "rake routes" through grep/sed or awk to generate the new routes and drop them in
<woop> if I were to go with the explicit routes
<Coraline> That sounds fragile.
<zenspider> is "fastest" best?
steven43126 has quit [Ping timeout: 256 seconds]
anskeit has joined #ruby
<woop> if there aren't too many downsides to it, sometimes the answer is yes
<woop> since I'm not talking about programmatically generating routes on request but just this one time
<iraszl_> Folks, noob here. Can i some get a direction on how to achieve a “hello, world!” on ruby on osx within the browser? I managed to do it in Terminal, but I don’t understand how do I run an .rb script for it to appear in the browser. Thanks!
<zenspider> iraszl_: have you done any other programming before?
<iraszl_> yes, only php
<woop> iraszl_: you need some sort of server running on your machine that responds to browser requests
zzing has joined #ruby
<woop> PHP needs you to set up apache+mod_php or some other sort of server before you can play
<iraszl_> yes, i have MAMP
<iraszl_> i can run php code
<woop> rails is the popular way to get that ruby to talk to web browsers
<iraszl_> ah, so that’s where rails comes in… :)
<jhass> iraszl_: well, we can start easier
<zenspider> I would bypass all the config shit and cheat using something like heroku
<jhass> run gem install sinatra and try http://www.sinatrarb.com/
<zenspider> let someone else set everything up
<zenspider> that's a step by step tutorial
<jhass> I still vote for mine, still least setup to a hello world in the browser
<bradland> heroku is great when you're ready to deploy, but for local development, i'm not sure how it helps
<iraszl_> ok, thanks guys, I get the idea now…
<iraszl_> have a great day!
<jhass> gem install sinatra; safe front page example to a file, run it & done
<zenspider> for starters, I don't believe that edit/save/reload is a good development process
netroby has joined #ruby
<woop> it's quick, at least
<bradland> nor do i
<bradland> but it's nice to be able to load up a copy of your app in a dev environment
<zenspider> woop: again, is faster better?
<woop> sometimes
<zenspider> in this case, I don't believe the development cycle is actually that quick
<woop> sometimes, it means you go through more solutions in the same amount of time
<woop> what would you prefer?
<zenspider> it's a fucking waste of time watching someone flip back and forth reloading poking tweaking saving flipping reloading poking tweaking
<woop> it's good for front-end work, at least
<bradland> even if you adopt a TDD approach, having a local dev copy of your app allows you to develop things that aren't a fit for TDD
<bradland> like your CSS rendering, etc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roolo has quit [Remote host closed the connection]
<zenspider> CSS is someone else's job.
<woop> I generally don't get to the edit/save/reload workflow until I've got tests built around a fewature
<zenspider> that's not code imo
Sawbones has quit [Remote host closed the connection]
<bradland> ok, so it's clear you just want to be right
<woop> don't we all?
<woop> I'd also like to be right by changing what I'm doing, too
<zenspider> woop: hah. an ad started up with some warfare movie and I didn't realize it was an ad
<zenspider> thought it was someone's opinion of CSS :)
<woop> just a coincidence that the band is called CSS
<zenspider> bradland: whatever dude
<bradland> you're taking some fundamentalist stance about app development
<bradland> whatever yourself
<woop> lol
sankaber has joined #ruby
jheg has quit [Quit: jheg]
nfk has quit [Quit: yawn]
<anskeit> hey. i could need some help with a little json problem. im trying to get the id from json like this: http://pastebin.com/KSuDQfad the problem is, that the "name" in the first row is always different. how could i do this?
<zenspider> it's a hash, so you can ask for the keys
zarubin_ has joined #ruby
overcrush has joined #ruby
<zenspider> or just map past it: json.map { |_,v| v["id"] }
<zenspider> (might be clearer with json.values.map...)
Soda has joined #ruby
jimms has quit [Ping timeout: 255 seconds]
sevvie has quit [Ping timeout: 253 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sankaber has quit [Ping timeout: 254 seconds]
Notte has quit [Remote host closed the connection]
<anskeit> thanks. that helped me alot!
zarubin_ has quit [Ping timeout: 252 seconds]
<zenspider> no prob
senayar has quit [Remote host closed the connection]
Zai00 has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> huh? what the heck is resolve-replace?
willharrison has joined #ruby
jefus_ has joined #ruby
<zenspider> apeiros: ?
<zenspider> someone finally got fed up with resolv.rb ?
<apeiros> it's listed in ruby-doc.org
<apeiros> I have no idea what it is
pdtpatrick has joined #ruby
<zenspider> it's in trunk
<zenspider> and apparently goes back to at least 1.9.3-p0
pdtpatrick has quit [Client Quit]
RegulationD has joined #ruby
jefus__ has quit [Ping timeout: 244 seconds]
benlieb_ has joined #ruby
sevvie has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
yh has quit [Ping timeout: 248 seconds]
Channel6 has joined #ruby
patrick99e99 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
JDiPierro has joined #ruby
tubuliferous_ has joined #ruby
nszceta has quit [Quit: Textual IRC Client: www.textualapp.com]
yh has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
Joufflu has quit [Read error: Connection reset by peer]
zarubin_ has joined #ruby
bim_ has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
Coraline is now known as Coraline_ZzZz
jolg42 has quit [Quit: ZZZzzz…]
adriancb has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
felltir has joined #ruby
quimrstorres has joined #ruby
_1_midoo2 has joined #ruby
<_1_midoo2> hi
<apeiros> hi _1_midoo2, welcome to the ruby programming language channel
<_1_midoo2> okay
KnownSyntax has joined #ruby
_1_midoo2 has quit [Remote host closed the connection]
<FernandoBasso> Can I do something like this?
zarubin_ has quit [Ping timeout: 256 seconds]
<FernandoBasso> return false unless (a.is_a Integer && b.is_a? Integer) ?
<zenspider> did you try?
<FernandoBasso> Yes, and got unexpected tCONSTANT, expectingsyntax error, unexpected tCONSTANT, expecting ')'
<FernandoBasso> Oh, dear.
<FernandoBasso> My paste was messed up. Sorry.
<zenspider> we got it
bim has joined #ruby
<apeiros> FernandoBasso: you'll want to add parens
<zenspider> needs more parens: ruby -cwe 'return false unless (a.is_a?(Integer) && b.is_a?(Integer))'
<zenspider>
<apeiros> FernandoBasso: or use `and`, but personally, I prefer parens
<FernandoBasso> So, it was a precedence problem?
iraszl_ has quit [Quit: iraszl_]
reinaldob has joined #ruby
<zenspider> personally I like: `return false unless a.is_a? Integer and b.is_a? Integer`
<zenspider> but I wouldn't write that. I'd raise ArgumentError on each one individually
<zenspider> which takes care of the precedence problem :)
havenwood has joined #ruby
<apeiros> FernandoBasso: yes. precedence problem.
<FernandoBasso> Indeed. I'm just getting started with Ruby, and have no idea yet on best practices on handling invalid stuff.
krainboltgreene has joined #ruby
DrShoggoth has quit [Ping timeout: 246 seconds]
gkra has quit [Ping timeout: 265 seconds]
gkra has joined #ruby
DrShoggoth has joined #ruby
anskeit has quit []
inavele has quit [Ping timeout: 256 seconds]
gsd has joined #ruby
reinaldob has quit [Ping timeout: 264 seconds]
FernandoBasso has quit [Quit: Read and ZzzZZ]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb_ has quit [Quit: benlieb_]
serivich has joined #ruby
pie_ has quit [Ping timeout: 255 seconds]
<apeiros> wth? Resolv::DNS can resolve invalid domains? I tried "apeiros..me" and it worked?!?
<zenspider> hahaha
<zenspider> what'd it resolve to?
<zenspider> does it just over-normalize first?
<apeiros> it resolved the same as "apeiros.me"
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> seems to not care about how many dots are in the domain
<apeiros> ".....apeiros.....me" still works
steven43126 has joined #ruby
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
piotrj has quit [Ping timeout: 256 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb_ has joined #ruby
<zenspider> that's fantastic. I'll bookmark that :P
<apeiros> I wonder what other normalizations it performs…
<eam> that looks pretty broken
steven43126 has quit [Ping timeout: 255 seconds]
bonhoeffer has joined #ruby
<zenspider> you mean pretty AWESOME
<eam> same thing!
kreeves has joined #ruby
<zenspider> arg.scan(/[^\.]+/) {labels << Str.new($&)}
<zenspider> haha
kreeves has quit [Changing host]
kreeves has joined #ruby
<apeiros> it's so fantastic, my hair spontaneously caught fire!
<zenspider> (line 1166 btw)
<apeiros> zenspider: nice find
<apeiros> so there *is* a chance that's the only "normalization"
<zenspider> well... there's 2856 other lines of code.... sooo...
<apeiros> 1:2856
<apeiros> that's a good chance
<apeiros> much better than winning the lottery.
<eam> am I reading this right in that it doesn't distinguish between FQDN and not?
<eam> that could potentially be a vulnerability
inavele has joined #ruby
<apeiros> you mean terminal . ?
<eam> yeah
<apeiros> seems like
aswen has quit [Ping timeout: 248 seconds]
bruno- has quit [Read error: Connection reset by peer]
bruno-_ has joined #ruby
<zenspider> the code is really hard to trace through
<apeiros> yeah, and it's 0200 here. I'm going to bed. good night :)
<apeiros> and thanks zenspider for unearthing that scan line
<zenspider> it might not be the right one
<zenspider> what call are you making top level?
<zenspider> getaddress?
riotjones has joined #ruby
<eam> I'm lost in IPv6::Regex hooo boy
<eam> wonder why this isn't using libc
<zenspider> nope, I think that is it
<zenspider> ruby --disable-gems -rresolv -rtracer -e 'p Resolv.getaddress ARGV.shift' apeiros..me | sed 's%/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/%%' | grep resolv
<zenspider> about 1/3rd down
keen_____ has joined #ruby