apeiros changed the topic of #ruby to: 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 || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<bradland> any thor users? i see that i can `thor install <foo>` to install system-wide, but the docs (that i've seen) don't say where that is
RegulationD has quit [Ping timeout: 265 seconds]
mdibound has quit [Quit: Be back later ...]
<baweaver> The amount of headaches that thing must have caused Valim...
charliesome has joined #ruby
<Radar> bradland: where are you being directed to run thor install?
mdibound has joined #ruby
<baweaver> `which thor` do anything?
pietr0 has quit [Quit: pietr0]
<bradland> Radar: i see references to it here and there
iceden has quit [Read error: Connection reset by peer]
<Radar> bradland: Can you be more specifc?
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
starless has quit [Quit: Leaving]
j0bk has joined #ruby
<bradland> search for 'thor install task.thor'
<Radar> That's a pretty old blog post.
<Radar> I wouldn't trust that any more.
<Radar> bradland: Can we start at the beginning; i.e. what problem you're actually trying to solve?
<bradland> `thor help install` still has content
<baweaver> ....wow, that was 7 years ago wasn't it?
<bradland> my ~bin is looking kind of cluttered these days.
<baweaver> jeez
<bradland> thor looks kind of nice, because i can namespace commands
<bradland> i thought about just wrapping all my garbage up in a gem
<bradland> but i found thor
juanpablo__ has joined #ruby
iamjarvo has joined #ruby
<Radar> bradland: After reading that let me know if you have any more questions.
<bradland> i've built gems
<bradland> reading the thor source now
<Radar> glhf
gregf has quit [Quit: WeeChat 1.0.1]
<baweaver> Radar: glhf?
<bradland> good luck; have fun
<Radar> baweaver: !gg glhf
<helpa> baweaver: http://lmgtfy.com/?q=glhf
<baweaver> ha, well played.
<Radar> thank you
<baweaver> walked into that one.
<bradland> this is pretty cool
<bradland> thor provides an interface for managing a system "cache" of thor tasks
<bradland> so you can add/remove tasks through the thor CLI
_djbkd has joined #ruby
lkba has quit [Read error: Connection reset by peer]
iamjarvo has quit [Client Quit]
wallerdev has joined #ruby
Hijiri has joined #ruby
lkba has joined #ruby
<bradland> the system-wide stuff goes under ~/.thor
<bradland> moar dotfiles!
Sawbones has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<GaryOak_> make a service called dot, that uses a dot file
<GaryOak_> .dot
thumpba has quit [Ping timeout: 265 seconds]
gregf has joined #ruby
juanpablo__ has quit [Ping timeout: 256 seconds]
_maes_ has quit [Ping timeout: 256 seconds]
iliketurtles has quit [Quit: zzzzz…..]
<jhass> I wish more stuff would follow freedesktop conventions
<jhass> all nicely hidden in .config and .local
GaryOak_ has quit [Remote host closed the connection]
jerematic has joined #ruby
<bradland> srsly, respect my homedir for crying out loud
psychopath_mind has joined #ruby
Musashi007 has joined #ruby
razrunelord has quit [Remote host closed the connection]
lioninawhat has joined #ruby
QualityAddict has joined #ruby
crdpink has joined #ruby
jerematic has quit [Ping timeout: 246 seconds]
li0ninawhat has joined #ruby
wldcordeiro has quit [Ping timeout: 256 seconds]
crdpink2 has quit [Ping timeout: 265 seconds]
kblake has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
narcan has joined #ruby
Zai00 has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
lioninawhat has quit [Ping timeout: 265 seconds]
iceden has joined #ruby
pontiki has joined #ruby
jenrzzz has joined #ruby
<pontiki> hi o/
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
dfinninger has joined #ruby
dstarh has joined #ruby
_djbkd has quit [Remote host closed the connection]
yourwebdevguy has quit [Quit: Leaving]
dstarh has quit [Client Quit]
_djbkd has joined #ruby
QualityAddict has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
giuseppesolinas has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
QualityAddict has joined #ruby
Hobogrammer has joined #ruby
iliketurtles has joined #ruby
veduardo has joined #ruby
startupality has joined #ruby
oo_ has joined #ruby
davidhq has joined #ruby
godd2 has joined #ruby
VBlizzard has joined #ruby
luksaur has quit [Quit: Leaving]
Hobogrammer has quit [Read error: Connection reset by peer]
Renich has quit [Quit: leaving]
revoohc has joined #ruby
arrubin has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Ping timeout: 252 seconds]
harfangk has quit [Quit: This computer has gone to sleep]
iliketurtles has quit [Ping timeout: 244 seconds]
redk1nG has joined #ruby
<redk1nG> any one up tonight?
<redk1nG> quick question, let' say I have a string "DEPEND TCPIP NETCARD", and I only want to capture everything after DEPEND... what's a way to do that?
jenrzzz has quit [Ping timeout: 255 seconds]
Joufflu has joined #ruby
<jhass> redk1nG: rubular.com
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<jhass> with a capture group (or a positive lookbehind)
<Radar> >> "DEPEND TCPIP NETCARD".split(" ")[1..-1].join
<eval-in_> Radar => "TCPIPNETCARD" (https://eval.in/299656)
ghostmoth has joined #ruby
<Radar> >> "DEPEND TCPIP NETCARD".split(" ")[1..-1].join(" ")
<eval-in_> Radar => "TCPIP NETCARD" (https://eval.in/299657)
<jhass> heh
<jhass> if we're going that route...
<redk1nG> k
<jhass> >> "DEPEND TCPIP NETCARD".partition(" ").last
<eval-in_> jhass => "TCPIP NETCARD" (https://eval.in/299658)
<jhass> >> "DEPEND TCPIP NETCARD".split(" ", 2).last
<eval-in_> jhass => "TCPIP NETCARD" (https://eval.in/299659)
<redk1nG> nice
j0bk has quit [Quit: Page closed]
bim has quit [Remote host closed the connection]
<redk1nG> thx all
jenrzzz has joined #ruby
kaiZen- has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Sawbones has joined #ruby
rrrutr has quit [Quit: Leaving]
Megtastique has joined #ruby
Megtastique has quit [Client Quit]
sevenseacat has joined #ruby
VBlizzard is now known as _blizzy_
juanpaucar has joined #ruby
jottr has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jokester has quit [Quit: recharge]
deric_skibotn has quit [Ping timeout: 246 seconds]
jespada has quit [Quit: WeeChat 1.1.1]
sankaber has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
startupality has quit [Quit: startupality]
Tuxero has quit [Quit: Tuxero]
startupality has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
startupality has quit [Client Quit]
juanpaucar has quit [Ping timeout: 250 seconds]
deric_skibotn has joined #ruby
aiguu has joined #ruby
troyready has quit [Ping timeout: 264 seconds]
lucianosousa has quit [Quit: lucianosousa]
mleung has quit [Quit: mleung]
mono has joined #ruby
Ankhers has joined #ruby
mono is now known as jokester
bricker has quit [Quit: leaving]
mikecmpbll has quit [Quit: ciao.]
nateberkopec has quit [Quit: Leaving...]
Hijiri has quit [Ping timeout: 256 seconds]
triangles2 has joined #ruby
oo_ has quit [Remote host closed the connection]
DEA7TH has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
oo_ has joined #ruby
triangles has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
marr has quit []
tkuchiki has joined #ruby
triangles2 has quit [Ping timeout: 244 seconds]
sevvie has quit [Ping timeout: 252 seconds]
cajone has quit [Read error: Connection reset by peer]
redk1nG has quit [Quit: BitchX-1.2.1 -- just do it.]
troyready has joined #ruby
jerematic has joined #ruby
sevvie has joined #ruby
ghostpl_ has joined #ruby
martin_work has quit [Quit: martin_work]
iteratorP has joined #ruby
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
cajone has joined #ruby
nii236 has joined #ruby
boshhead has quit [Remote host closed the connection]
nateberkope has joined #ruby
apeiros_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jerematic has quit [Ping timeout: 246 seconds]
ghostpl_ has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
claptor has joined #ruby
Hijiri has joined #ruby
dfinninger has quit [Remote host closed the connection]
nettoweb has joined #ruby
paolooo has joined #ruby
teddyp1cker has quit [Ping timeout: 264 seconds]
veduardo has quit [Ping timeout: 265 seconds]
Sawbones has joined #ruby
postmodern has joined #ruby
<aiguu> hello~
mikeric has quit []
<nii236> yo
mikeric has joined #ruby
nateberkope has quit [Quit: Leaving...]
Hobogrammer has joined #ruby
Sawbones has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
martin_work has joined #ruby
phutchins has joined #ruby
tkuchiki has joined #ruby
jenrzzz has joined #ruby
keen__________85 has joined #ruby
scripore has joined #ruby
wallerdev has quit [Quit: wallerdev]
Matthews_ has quit [Remote host closed the connection]
keen__________84 has quit [Ping timeout: 265 seconds]
robustus has quit [Ping timeout: 255 seconds]
Lucky__ has joined #ruby
robustus has joined #ruby
eat_multi has quit [Ping timeout: 265 seconds]
phutchins has quit [Ping timeout: 252 seconds]
bim has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
bim has quit [Ping timeout: 256 seconds]
frem has quit [Quit: Connection closed for inactivity]
ghostmoth has quit [Quit: ghostmoth]
gr33n7007h has quit [Quit: WeeChat 0.3.8]
Ankhers has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
Hijiri has quit [Ping timeout: 255 seconds]
DerisiveLogic has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
Asher has quit [Quit: Leaving.]
meatherly has joined #ruby
Hijiri has joined #ruby
dfinninger has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
fryguy9 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
fryguy9 has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
Wolland has joined #ruby
Musashi007 has joined #ruby
_djbkd has quit [Quit: My people need me...]
krz has joined #ruby
oo_ has joined #ruby
bruno-_ has quit [Ping timeout: 265 seconds]
deric_skibotn has quit [Ping timeout: 244 seconds]
DavidDudson has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Crazy_Atheist has quit [Ping timeout: 252 seconds]
martin_work has quit [Read error: Connection reset by peer]
kblake has joined #ruby
DavidDud_ has quit [Ping timeout: 252 seconds]
sevvie has quit [Ping timeout: 240 seconds]
pwnz0r has joined #ruby
Crazy_Atheist has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
Vivex_ has joined #ruby
MatthewsFace has joined #ruby
tgunr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
ZeroPivot has joined #ruby
Vivex has quit [Ping timeout: 272 seconds]
Prometheian has quit [Remote host closed the connection]
leafybasil has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
einarj has joined #ruby
Vivex_ has quit [Ping timeout: 246 seconds]
tus has quit []
Sawbones has quit [Ping timeout: 246 seconds]
arescorpio has joined #ruby
DavidDudson has quit [Ping timeout: 265 seconds]
lessless has joined #ruby
sevvie has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
doodlehaus has joined #ruby
nucular11 has quit [Quit: Textual IRC Client: www.textualapp.com]
DavidDudson has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
tcrypt has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
jonr2219 has quit [Remote host closed the connection]
justin_pdx has quit [Quit: justin_pdx]
sevenseacat has left #ruby [#ruby]
sevenseacat has joined #ruby
mikeric has quit []
tkuchiki has joined #ruby
oo__ has joined #ruby
dseitz has joined #ruby
hcnewsom has joined #ruby
doodlehaus has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 256 seconds]
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
krz has quit [Ping timeout: 255 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
paolooo has quit [Ping timeout: 246 seconds]
hcnewsom has quit [Client Quit]
li0ninawhat has quit [Quit: Leaving...]
maximski has joined #ruby
lessless has quit [Ping timeout: 246 seconds]
tubuliferous is now known as Guest92119
jottr has joined #ruby
juanpaucar has joined #ruby
hcnewsom has joined #ruby
lemur has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bim has joined #ruby
maletor has joined #ruby
t_p has joined #ruby
n008f4g_ has quit [Ping timeout: 272 seconds]
veduardo has joined #ruby
kblake has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 264 seconds]
bim has quit [Ping timeout: 244 seconds]
doodlehaus has joined #ruby
juanpaucar has quit [Ping timeout: 272 seconds]
revoohc has quit [Quit: revoohc]
doodlehaus has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
mdibound has quit [Quit: Be back later ...]
krz has joined #ruby
mdibound has joined #ruby
Rayford has joined #ruby
n80 has joined #ruby
Rayford has quit [Client Quit]
Hijiri has quit [Ping timeout: 272 seconds]
wldcordeiro has joined #ruby
pork_clips has joined #ruby
maximski has quit []
_cake has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
Channel6 has joined #ruby
Hirzu has joined #ruby
jerematic has joined #ruby
ghostpl_ has joined #ruby
millerti has joined #ruby
Sawbones has joined #ruby
ki0 has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
Hirzu has quit [Ping timeout: 244 seconds]
adriancb has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
ki0 has quit [Remote host closed the connection]
bruno- has joined #ruby
jerematic has quit [Ping timeout: 265 seconds]
ghostpl_ has quit [Ping timeout: 256 seconds]
patrick99e99 has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
nahtnam has joined #ruby
Musashi007 has joined #ruby
avarice has joined #ruby
yekta has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
bruno- has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Read error: No route to host]
Musashi007 has joined #ruby
davedev24_ has quit []
mitchellhenke has quit [Quit: Computer has gone to sleep.]
mitchellhenke has joined #ruby
ztomz has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mwlang has quit [Quit: mwlang]
checkit has quit [Ping timeout: 250 seconds]
teddyp1cker has joined #ruby
havenwood has joined #ruby
vandemar has quit [Ping timeout: 246 seconds]
dfinninger has joined #ruby
teddyp1cker has quit [Ping timeout: 252 seconds]
vandemar has joined #ruby
mleung has joined #ruby
dfinninger has quit [Remote host closed the connection]
scripore has quit [Read error: Connection reset by peer]
scripore has joined #ruby
bricker has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Limix has joined #ruby
mdibound has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
towski_ has quit [Remote host closed the connection]
VBlizzard has joined #ruby
_blizzy_ has quit [Disconnected by services]
VBlizzard is now known as _blizzy_
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemur has quit [Read error: Connection reset by peer]
veduardo has quit [Ping timeout: 264 seconds]
lemur has joined #ruby
jenrzzz has joined #ruby
amystephen has quit [Quit: amystephen]
VBlizzard has joined #ruby
_blizzy_ has quit [Disconnected by services]
VBlizzard is now known as _blizzy_
kblake has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
VBlizzard has joined #ruby
keen__________86 has joined #ruby
Casperscacion has joined #ruby
krz has quit [Read error: Connection reset by peer]
Casperscacion has left #ruby [#ruby]
_blizzy_ has quit [Disconnected by services]
VBlizzard is now known as _blizzy_
keen__________85 has quit [Ping timeout: 272 seconds]
kblake has quit [Ping timeout: 256 seconds]
brandon has joined #ruby
brandon is now known as Guest82051
oo__ has quit [Remote host closed the connection]
avleen has left #ruby ["WeeChat 1.0.1"]
aiguu has quit [Ping timeout: 244 seconds]
aiguu has joined #ruby
kyb3r_ has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
kyb3r_ has quit [Read error: Connection reset by peer]
Vile` has quit [Remote host closed the connection]
larsam has joined #ruby
kyb3r_ has joined #ruby
jerematic has joined #ruby
Vile` has joined #ruby
adriancb has joined #ruby
kyb3r_ has quit [Client Quit]
oo_ has joined #ruby
bruno- has joined #ruby
nii236 has quit [Ping timeout: 252 seconds]
kyb3r_ has joined #ruby
bruno- is now known as Guest83210
jerematic has quit [Ping timeout: 272 seconds]
braincrash has quit [Quit: bye bye]
adriancb has quit [Ping timeout: 265 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
jottr has joined #ruby
Guest83210 has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
Sawbones has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 265 seconds]
Wolland has quit []
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arrubin has quit [Quit: WeeChat 1.1.1]
akkad has quit [Quit: Emacs must have died]
jonr22 has joined #ruby
DavidDudson has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dreamer3 has quit [Quit: Leaving...]
jonr22 has quit [Ping timeout: 256 seconds]
ismaelga has quit [Remote host closed the connection]
nb_bez___ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
juanpaucar has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Sawbones has joined #ruby
mleung has quit [Quit: mleung]
postmodern has joined #ruby
mleung has joined #ruby
mleung has quit [Client Quit]
juanpaucar has quit [Ping timeout: 245 seconds]
duncannz has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
mitchellhenke has joined #ruby
markholmes has joined #ruby
dfinninger has joined #ruby
coderhs has joined #ruby
agent_white has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
duncan_ has joined #ruby
Parker0 has joined #ruby
dfinninger has quit [Ping timeout: 272 seconds]
scripore has joined #ruby
akkad has joined #ruby
Parker0 has quit [Client Quit]
SOLDIERz has joined #ruby
hcnewsom has quit [Quit: hcnewsom]
avarice has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
Sawbones has quit []
claptor has quit [Ping timeout: 255 seconds]
doodlehaus has joined #ruby
Lucky__ has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
ghostpl_ has joined #ruby
nii236 has joined #ruby
Lucky__ has quit [Read error: Connection reset by peer]
doodlehaus has quit [Ping timeout: 255 seconds]
arescorpio has quit [Excess Flood]
ebbflowgo has joined #ruby
ghostpl_ has quit [Ping timeout: 246 seconds]
tvw has quit [Ping timeout: 250 seconds]
SOLDIERz has quit [Quit: Be back later ...]
Synthbread has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
govg_ has quit [Quit: leaving]
Cache_Money has joined #ruby
Vile` has joined #ruby
Lingo_ has joined #ruby
n80 has quit [Quit: Lost terminal]
<Lingo_> Twilio's gem has a function, messages.create() which takes paramaters that are defined already
pwnz0r has quit [Read error: Connection reset by peer]
Synthbread has quit [Read error: Connection reset by peer]
Synthbean has joined #ruby
<Lingo_> see under "Send SMS" where the funciton takes from, to, body
<Lingo_> how can I write a function that takes parametrs with defined names
pwnz0r has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
astrobunny has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
kappy has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
martinbmadsen has joined #ruby
DavidDudson has joined #ruby
jottr has joined #ruby
<Lingo_> could someone tell me what its called so I can google? not to sure where to start
<weaksauce> Lingo_ named parameters
<Lingo_> weaksauce: thanks!
jottr has quit [Ping timeout: 265 seconds]
mun has joined #ruby
Lingo_ has quit [Quit: (null)]
astrobunny has joined #ruby
Xiti` has joined #ruby
Xiti` has quit [Changing host]
Xiti` has joined #ruby
Musashi007 has quit [Quit: Musashi007]
ndrei has quit [Ping timeout: 252 seconds]
teddyp1cker has joined #ruby
kappy has joined #ruby
ndrei has joined #ruby
Synthbean has quit [Read error: Connection reset by peer]
meatherly has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
Xiti has quit [Ping timeout: 256 seconds]
wldcordeiro has quit [Ping timeout: 265 seconds]
Synthbread has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
t_p has quit [Ping timeout: 264 seconds]
nii236 has quit [Ping timeout: 256 seconds]
hvxgr has quit [Ping timeout: 245 seconds]
varunwachaspati_ has joined #ruby
davedev24_ has joined #ruby
leat1 has joined #ruby
jusmyth has joined #ruby
zorak8 has quit [Ping timeout: 264 seconds]
Channel6 has quit [Quit: Leaving]
nii236 has joined #ruby
ghostpl_ has joined #ruby
Hijiri has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
scripore has quit [Quit: Leaving]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 272 seconds]
krz has joined #ruby
ylluminarious has quit [Quit: Leaving...]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
iterator_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jusmyth has quit [Quit: Leaving.]
arup_r has joined #ruby
<arup_r> Guys... any clever way of doing this ? https://gist.github.com/aruprakshit/4c711d0311a05ae8f9e3
iteratorP has quit [Ping timeout: 252 seconds]
jerematic has joined #ruby
shadoi1 has quit [Quit: Leaving.]
<mozzarella> arup_r: do you also need "subtotal"?
<arup_r> no.. I don't need
<arup_r> mozzarella: I will create some format strings.. that's why I need the calculation
<arup_r> Looking for any better way if possible
<mozzarella> >> "Item Sku Size Colour Qty Subtotal".scan(/\w+\s+/).map { |c| [c.gsub(' ', ''), c.length] }.to_h
<eval-in_> mozzarella => {"Item"=>30, "Sku"=>10, "Size"=>8, "Colour"=>10, "Qty"=>8} (https://eval.in/299734)
<arup_r> mozzarella: wow..
<arup_r> I knew I did dumbest one
<arup_r> can you explain the regex ? I am not good at regex
jerematic has quit [Ping timeout: 240 seconds]
<mozzarella> it selects the words AND the whitespace, then you calculate the length of the whole thing (including the whitespace), only then you remove the whitespace
jeromelanteri has quit [Ping timeout: 245 seconds]
iliketurtles has joined #ruby
<arup_r> ahh! makes sense mozzarella:
<arup_r> thanks
<mozzarella> if you want the subtotal column, just use \s* instead of \s+
<mozzarella> np
<arup_r> mozzarella: I don't need I think.. But nothing wrong to see.. Would you show me ?
<mozzarella> >> "Item Sku Size Colour Qty Subtotal".scan(/\w+\s*/).map { |c| [c.gsub(' ', ''), c.length] }.to_h
<eval-in_> mozzarella => {"Item"=>30, "Sku"=>10, "Size"=>8, "Colour"=>10, "Qty"=>8, "Subtotal"=>8} (https://eval.in/299745)
hvxgr has joined #ruby
<arup_r> again thanks
<arup_r> you made my day!
bim_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
giuseppesolinas has joined #ruby
RegulationD has joined #ruby
teddyp1cker has joined #ruby
bim_ has quit [Ping timeout: 256 seconds]
bricker has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
jeromelanteri has joined #ruby
markholmes has quit [Quit: So it goes.]
jonr22 has joined #ruby
SOLDIERz has joined #ruby
astrobunny has joined #ruby
SOLDIERz_ has joined #ruby
SOLDIERz_ has quit [Client Quit]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 265 seconds]
SOLDIERz_ has joined #ruby
tobago has joined #ruby
claw has quit [Ping timeout: 250 seconds]
wottam has joined #ruby
SOLDIERz has quit [Ping timeout: 256 seconds]
claw has joined #ruby
<arup_r> mozzarella: do you know rails too ?
_Andres has joined #ruby
<mozzarella> yes, but you should probably ask in #RubyOnRails if you have a question
DerisiveLogic has joined #ruby
jusmyth has joined #ruby
jusmyth has quit [Client Quit]
jusmyth has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
DerisiveLogic has quit [Ping timeout: 245 seconds]
iterator_ has quit [Remote host closed the connection]
jt__ has joined #ruby
iteratorP has joined #ruby
dukz has joined #ruby
Spami has joined #ruby
agrinb has quit [Remote host closed the connection]
<arup_r> I did mozzarella:
<arup_r> :)
bluOxigen has joined #ruby
epistrephein has joined #ruby
Morkel has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
Morkel has quit [Client Quit]
towski_ has joined #ruby
coderhs has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
agrinb has joined #ruby
towski_ has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 240 seconds]
dopiee has quit [Ping timeout: 245 seconds]
giuseppesolinas has joined #ruby
lxsameer has joined #ruby
tagrudev has joined #ruby
kaleido_ has joined #ruby
mistermocha has joined #ruby
Beliq has joined #ruby
AlexRussia has joined #ruby
Beliq has quit [Max SendQ exceeded]
doodlehaus has joined #ruby
kaleido has quit [Ping timeout: 264 seconds]
mistermo_ has joined #ruby
<certainty> morning
ayaz has joined #ruby
Hirzu has joined #ruby
Hirzu has quit [Remote host closed the connection]
nb_bez___ has quit [Quit: Connection closed for inactivity]
mistermocha has quit [Ping timeout: 244 seconds]
epistrephein has quit []
ptrrr has joined #ruby
rmoriz has quit [Quit: ZNC - http://znc.in]
doodlehaus has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
varunwachaspati_ has quit [Ping timeout: 252 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
MasterPiece has joined #ruby
hanmac1 has joined #ruby
<hanmac1> shevy!!
<shevy> yo
<shevy> woke up not that long ago myself
<shevy> what's up
<hanmac1> xkcd does have a TerryPtrachett Reference!! http://xkcd.com/1498/ ,P
lkba_ has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
jottr has joined #ruby
vdamewood has joined #ruby
aganov has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
<arup_r> I am not able to do these Spree::Money.new(0, currency: "INR") * 2 giving error undefined method `*' for #<Spree::Money:0x00000106c64ab0> But I need to do these in my calculation https://gist.github.com/aruprakshit/487dbc1241ebd318770d#file-confirm-text-erb-L9
<arup_r> I tried <% grand_total << price * qty %>
last_staff has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
<arup_r> which is not possible
kuda has joined #ruby
polysics has quit [Remote host closed the connection]
nii236 has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
nii236 has joined #ruby
<arup_r> https://github.com/spree/spree/blob/master/core/lib/spree/money.rb using http://rubymoney.github.io/money/ but why not multiplication is possible no idea....
lemur has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<shevy> hanmac1 hehe
<shevy> I loved the orang-utan
<hanmac1> shevy i got a sms from my mother ... Pterry died *crying silent tears*
<arup_r> workaround is -- <% grand_total.concat([price] * qty.to_i) %> :D
giuseppesolinas has quit [Quit: This computer has gone to sleep]
xcombelle has joined #ruby
martinbmadsen has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
wicope has joined #ruby
davedev2_ has quit [Ping timeout: 256 seconds]
blueOxigen has joined #ruby
agrinb has quit [Remote host closed the connection]
sandelius has joined #ruby
agrinb has joined #ruby
sandelius has quit [Max SendQ exceeded]
varunwachaspati_ has joined #ruby
havenwood has quit [Remote host closed the connection]
mog_ has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
sandelius has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
<flughafen> moin alle
<sevenseacat> hallo
<sevenseacat> wilkommen
iteratorP has quit [Remote host closed the connection]
bal has joined #ruby
<flughafen> hallo sevenseacat
giuseppesolinas has joined #ruby
duncan_ has quit [Ping timeout: 246 seconds]
<flughafen> wie gehts dir ;)
Hijiri has quit [Ping timeout: 256 seconds]
<arup_r> flughafen: o/
<flughafen> o|
<sevenseacat> errr.... ich bin gut? *makes up sentences*
bigkevmcd has joined #ruby
Hijiri has joined #ruby
* flughafen is not sure if he's coping to well with his new 60% mech keyboard with blank keycaps
<flughafen> too*
<flughafen> that was also the keyboards fault
<flughafen> keyboard's
<flughafen> sevenseacat: that is a correct sentence. congratulations
<sevenseacat> \o/
<flughafen> arup_r: tell our contentest what she has won
<godd2> Ich hoffe, dass du wie eine Ente ertrinkst.
godemper1r has quit [Ping timeout: 256 seconds]
godemper1r has joined #ruby
<sevenseacat> wat
<flughafen> sevenseacat: he said i hope you drown like a duck
<certainty> flughafen: o/
<sevenseacat> something about a duck drinking
fabrice31 has joined #ruby
<flughafen> oi oi oi certainty
<sevenseacat> close enough
<godd2> ertrinken: to drown
<flughafen> yeah, drinking, drowning, same thing
razrunelord has joined #ruby
<jt__> hi, any idea how to achieve this https://gist.github.com/anonymous/3b40358d3c4ae409f279
charliesome has quit [Quit: zzz]
Spami has quit [Quit: This computer has gone to sleep]
<jt__> I wanted to have non-zero exit status for non 200 response code
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<flughafen> exit(1) ?
<hanmac1> jt__: if you want exit, than use exit
iteratorP has joined #ruby
<jt__> hanmac1, ok, thanks
<certainty> :)
<certainty> what can i say
<flughafen> es gibst ein vanillestange auf mein tisch
<flughafen> mmmhmmm
jud has quit [Quit: Leaving]
<sevenseacat> it gives a... something... on my table?
<flughafen> i have something from the bakery on my desk
jerematic has joined #ruby
jeromelanteri has quit [Ping timeout: 265 seconds]
<certainty> vanilla bean
<certainty> ah wait
<certainty> no
waxjar has quit [Ping timeout: 256 seconds]
<flughafen> a long bready/pastry thing with vanilla in side
<certainty> ich hab mich schon gewundert ob du vanilleschoten ißt
<sevenseacat> would that not be then 'ich habe'? i have?
<certainty> sevenseacat: he's from south german. how would he know how to properly speak german xD
mog_ has quit [Ping timeout: 246 seconds]
<sevenseacat> lol
<flughafen> es gibt can be like "there is"
<sevenseacat> ah hah
<flughafen> northern germans!
george2 has quit [Ping timeout: 250 seconds]
<sevenseacat> this channel is educational
<flughafen> if we were in ruby-au would be talking about vegemite?
<flughafen> or how much kiwis suck?
vivekananda has quit [Read error: Connection reset by peer]
<sevenseacat> we like kiwis, they're like the little sisters you tease mercilessly.
<flughafen> hehe
<sevenseacat> or maybe that was just me.
Limix has quit [Quit: Limix]
waxjar has joined #ruby
adriancb has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<flughafen> do you have a pet wallaby?
* sevenseacat listens to more Rammstein
<sevenseacat> nah
* flughafen listens to more proclaimers
duncan_ has joined #ruby
MasterPiece has quit [Quit: Leaving]
<flughafen> oh wait
<flughafen> they're scottish
jerematic has quit [Ping timeout: 246 seconds]
<flughafen> holy crap
<sevenseacat> yep
* sevenseacat walks 500 miles
<flughafen> men at work is what i meant then
bruno- has joined #ruby
<sevenseacat> :D
DavidDudson has joined #ruby
mog_ has joined #ruby
* flughafen wants a pet kangaroo
adriancb has quit [Ping timeout: 265 seconds]
krz has quit [Ping timeout: 252 seconds]
CasparMelchior has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
roolo has joined #ruby
krz has joined #ruby
krz is now known as Guest58173
kuda has quit [Quit: byebye]
psychopath_mind has quit [Ping timeout: 272 seconds]
george2 has joined #ruby
RegulationD has joined #ruby
<flughafen> sevenseacat: whatcha thinkin about
nahtnam has quit [Quit: Connection closed for inactivity]
<sevenseacat> lol just killin' time on a friday afternoon
<flughafen> oh yeah, it is friday
dmcnabb has joined #ruby
* flughafen is hacking all weekend baby!
<hanmac1> flughafen: why are not finish in berlin? ;P
<flughafen> I dunno hanmac1 , why are not finish in berlin?
kalusn has joined #ruby
jeromelanteri has joined #ruby
<hanmac1> the BER airport in berlin wants more money ... again
yfeldblu_ has joined #ruby
<shevy> lol
<flughafen> haha.
<certainty> mo money mo mony
RegulationD has quit [Ping timeout: 264 seconds]
<shevy> sevenseacat so kiwi vs. aussie is like canadian vs. US american?
<sevenseacat> pretty much
hs366 has joined #ruby
jonr22 has joined #ruby
danjordan has joined #ruby
<flughafen> there was a funny joke about it on the heute show(I think it was) where it was star trek, dubbed, and they said "we need to land, there is the berlin airport finished in 2014, 200 years ago" then they get closer and crash because the airport wasn't done
Synthbread has quit [Remote host closed the connection]
<certainty> muhaha
<flughafen> found it
yfeldblum has quit [Ping timeout: 256 seconds]
surs has joined #ruby
kalusn has quit [Ping timeout: 252 seconds]
surs has quit [Changing host]
surs has joined #ruby
<flughafen> hanmac1: ^^
jonr22 has quit [Ping timeout: 265 seconds]
ptrrr has quit [Quit: ptrrr]
arup_r has quit [Remote host closed the connection]
varunwachaspati_ has quit [Ping timeout: 244 seconds]
juanpaucar has joined #ruby
dmcnabb has quit [Quit: Leaving.]
varunwachaspati_ has joined #ruby
DouweM has joined #ruby
_Andres has joined #ruby
arup_r has joined #ruby
mistermo_ has quit [Ping timeout: 255 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
juanpaucar has quit [Ping timeout: 246 seconds]
harfangk has joined #ruby
hmsimha has joined #ruby
alex88 has joined #ruby
einarj has joined #ruby
a1fa has quit [Quit: Lost terminal]
DouweM has quit [Quit: Leaving...]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
polysics has joined #ruby
freezevee has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
<freezevee> I am experimenting with Sinatra and a weather API. I am writing a very simple app that I've got to fetch weather data every 10 minutes and then display them on a Sinatra erb page. Is that possible ?
amundj has joined #ruby
<freezevee> I mean that when Sinatra runs, is it possible to have a loop on the background running ? Should I look in threads ?
MatthewsFace has quit [Remote host closed the connection]
<flughafen> or you can just make a call every 10 minutes triggered by a request... so, call like "http://localhost/updateweather" doesn't return any html, just ok, which triggers your update, and then have it called by cron something like curl or wget localhost/updateweather"
avril14th has quit [Ping timeout: 240 seconds]
tesuji_ is now known as tesuji
layke has joined #ruby
<freezevee> flughafen: the update on the html is not the problem, as I can refresh manually the page or make it ajax
<freezevee> flughafen: I want to fetch several things, like news, weather etc. every X minutes maybe in a Hash
<freezevee> while Sinatra is running
<freezevee> but inside ruby. I don't want to use javascript to fetch data
TheNumb has quit [Quit: ZNC - http://znc.in]
kalusn has joined #ruby
<flughafen> freezevee: it's not javascript
<flughafen> do something like get '/updateweather' do
TheNumb has joined #ruby
relix has joined #ruby
shaquile has joined #ruby
<freezevee> I am not sure how will this help me
<flughafen> updateweather(function) \n return "ok"
<flughafen> freezevee: you're already retreiving the info ? you have a function that does it?
<freezevee> and then the loop will run inside the updateweather def ?
<flughafen> freezevee: ^^
<freezevee> flughafen: I am retrieving the info but only once in the beginning https://gist.github.com/chrisvel/7688e55ca85b7e89083b
<freezevee> I want to call the function that retrieves the data every 10 minutes
_Andres has quit [Quit: jazz]
rdark has joined #ruby
<freezevee> so I will need to count the time passed, probably in a loop
xcombelle has quit [Ping timeout: 252 seconds]
<sevenseacat> why would you do that in ruby
<flughafen> freezevee: you could spawn a thread or something, but that's not really necessary, write a cron job that calls curl or something
<sevenseacat> ^
<flughafen> just point a url that calls your update weather function
DavidDudson has joined #ruby
<flughafen> then wget localhost/updateweather , and that will trigger your function being called
<freezevee> flughafen: I believe I'm starting to get it
<freezevee> flughafen: so everytime the url is called, it will retrieve the data ?
<flughafen> */10 * * * *
<freezevee> isn't it going to slow down everything until the data are retrieved ?
<flughafen> */10 * * * * /usr/bin/wget http://localhost/updateweather
<freezevee> but that will depend that a separate process will run, in that point a cron job
nii236 has quit [Ping timeout: 265 seconds]
<freezevee> I haven't ever done this before, I am just searching for a proper way to do this
<flughafen> sinatra can handle mutiple requests...
<flughafen> if your function slows your computer down you should re-evaluate what you did
DouweM has joined #ruby
<freezevee> or let's say that I will save the weather data in a database or file
<flughafen> there wont be an issue
<freezevee> Sinatra and the data retrieval process should be separate
Hirzu has joined #ruby
<flughafen> sinatra can handle multiple requests simultaneously
<flughafen> it would be quite a bad web server if it couldn't
<freezevee> the app should get the data and save them every 10 minutes, while Sinatra will be able to show the data every time the user wants
<freezevee> it may be happen asynchronously
<freezevee> I don't want the retrieval process to depend on Sinatra
<freezevee> If I do what you're saying, the data retrieval process will depend on the url call
wottam has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Morkel has joined #ruby
<Hirzu> hi, does anyone have experience with Lotus gem
bim has joined #ruby
agrinb has joined #ruby
layke has quit [Read error: Connection reset by peer]
jottr has joined #ruby
doodlehaus has joined #ruby
tesuji_ has joined #ruby
DouweM has quit [Quit: Leaving...]
tesuji has quit [Ping timeout: 255 seconds]
terlar has joined #ruby
<shevy> when I want to read in only the first line of a file
jenrzzz has joined #ruby
<shevy> without reading the rest
<shevy> what is the simplest way to do that?
<shevy> (Line ends at a \n character)
mun has left #ruby ["My Mac has gone to sleep. ZZZzzz…"]
bim has quit [Ping timeout: 265 seconds]
n008f4g_ has joined #ruby
<shevy> aha
<shevy> File.open('somefile.txt') {|f| f.readline }
agrinb has quit [Ping timeout: 256 seconds]
roolo_ has joined #ruby
<flughafen> shevy: congratulations
wald0 has joined #ruby
<shevy> I don't think I have used .readline before
jottr has quit [Ping timeout: 245 seconds]
Guest58173 has quit [Quit: WeeChat 1.0.1]
<shevy> File.open('somefile.txt', &:readline)
<shevy> :D
krz has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
doodlehaus has quit [Ping timeout: 246 seconds]
<shevy> and now
<shevy> how to read in the last line only?
<adaedra> Hello
<adaedra> Bad method: %x(tail -n1 #{file})
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> is this a method
DavidDudson has joined #ruby
<shevy> looks more like a backtick-like invocation
spider-mario has joined #ruby
<shevy> oh wait
<shevy> you meant this as an answer
<shevy> :)
<shevy> I'd have to depend on an external program
<shevy> .seek is sort of hmm
LJT has joined #ruby
<adaedra> That’s why it’s a *bad* method :)
<adaedra> File.open('/etc/passwd') { |f| f.each_line.to_a.last }
<shevy> can I backwards-seek until I find the first \n ?
<shevy> adaedra yeah but that will read in the whole file or?
<adaedra> it will
<adaedra> and load it all in memory, so not the best one, but already better
unicodeveloper has joined #ruby
<shevy> ok this can't be that hard now can it...
<adaedra> But at least, the method is simple, so it’s ok for small files I guess
<shevy> I'd have to IO seek to the last byte; then left-seek until I find the first \n
<adaedra> so a lot of seek(-1) ?
<shevy> hmmmmm
<adaedra> not sure it’s totally efficient either
<shevy> hehehe
mikecmpbll has joined #ruby
bricker has joined #ruby
elfuego has quit [Quit: elfuego]
shaquile has quit [Ping timeout: 245 seconds]
arup_r has quit [Remote host closed the connection]
nii236 has joined #ruby
Hirzu_ has joined #ruby
shaquile has joined #ruby
<shevy> this looks so much like C
<shevy> it must be fast!
unicodeveloper has quit [Quit: unicodeveloper]
duncan_ has quit [Remote host closed the connection]
alphaatom has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
Hirzu has quit [Ping timeout: 256 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
iteratorP has quit [Remote host closed the connection]
<adaedra> If your concern is performance, do it in C/C++ directly
unicodeveloper has joined #ruby
<shevy> !!!
<shevy> why use ruby!
<adaedra> we trade a bit of performance for a higher level language
mikecmpb_ has joined #ruby
LJT has quit [Quit: Sleeping...]
<shevy> I don't want to
hmsimha has quit [Ping timeout: 252 seconds]
<shevy> I want both
joonty has joined #ruby
<adaedra> needs for extreme performance are usually reduced to some special cases, like embedded and real-time systems anyway
<shevy> I wonder if we could have a C-like language with a Ruby-like syntax
dumdedum has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
<shevy> ok I give up
<adaedra> Anyway, Google has many solutions for your problem
astrobunny has quit [Remote host closed the connection]
<shevy> yeah like 50 lines of code
<godd2> shevy what do you mean by C-like?
<adaedra> no, 1
<shevy> godd2 the speed of C
DouweM has joined #ruby
mikecmpbll has quit [Ping timeout: 246 seconds]
<adaedra> look at Brian Campbell’s answer
<godd2> Well Ruby is written in C so it's as fast as C cause it is C
<godd2> :P
<shevy> adaedra that reads the whole thing into an array
<adaedra> yes, but it’s one line
<adaedra> it’s the ruby way
sevenseacat has quit [Remote host closed the connection]
CustosLimen has joined #ruby
<adaedra> Otherwise, the answer below gives you a library to do that
marr has joined #ruby
jusmyth has quit [Quit: Leaving.]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Wolland has joined #ruby
antgel has joined #ruby
gfawcettpq has quit [Ping timeout: 255 seconds]
selu has joined #ruby
catsoup|away is now known as catsoup
LJT has joined #ruby
chthon has joined #ruby
iteratorP has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
_2_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
freezevee has quit []
<adaedra> shevy: but you know, in most cases, ruby overhead is not really a problem
giuseppesolinas has joined #ruby
razrunelord has quit [Remote host closed the connection]
<shevy> yeah
arup_r has joined #ruby
mikecmpb_ is now known as mikecmpbll
oo_ has quit [Remote host closed the connection]
DouweM has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
jerematic has joined #ruby
_2_ has quit [Remote host closed the connection]
LJT has quit [Ping timeout: 256 seconds]
alphaatom has quit [Quit: Lost terminal]
ki0 has joined #ruby
jerematic has quit [Ping timeout: 240 seconds]
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
MatthewsFace has quit [Ping timeout: 250 seconds]
DouweM has joined #ruby
bim has joined #ruby
Hirzu_ has quit [Ping timeout: 256 seconds]
unicodeveloper has quit [Quit: unicodeveloper]
bim has quit [Remote host closed the connection]
alphaatom has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
shaquile has quit [Ping timeout: 246 seconds]
alphaatom has quit [Client Quit]
shaquile has joined #ruby
lkba has joined #ruby
william3 has joined #ruby
giuseppesolinas has joined #ruby
jimms has joined #ruby
oo_ has joined #ruby
bim has joined #ruby
Spami has joined #ruby
william3 has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
RegulationD has joined #ruby
agrinb has joined #ruby
CasparMelchior has quit [Quit: Leaving]
bim has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
blueOxigen has quit [Ping timeout: 245 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 250 seconds]
jonr22 has quit [Ping timeout: 265 seconds]
iteratorP has quit [Remote host closed the connection]
juanpaucar has joined #ruby
Takle has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
govg has joined #ruby
User458764 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
oo_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
jimms has quit [Ping timeout: 245 seconds]
juanpaucar has quit [Ping timeout: 256 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
oo_ has quit [Ping timeout: 264 seconds]
vtunka has joined #ruby
withnale_ has quit [Remote host closed the connection]
Takle has joined #ruby
iteratorP has joined #ruby
maximski has joined #ruby
bim has joined #ruby
nettoweb has joined #ruby
blackmesa has joined #ruby
bim has quit [Remote host closed the connection]
bim has joined #ruby
harfangk has quit [Quit: 전 이만 갑니다.]
User458764 has quit [Ping timeout: 252 seconds]
toertore has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
User458764 has joined #ruby
toretore has quit [Ping timeout: 255 seconds]
giuseppesolinas has joined #ruby
iteratorP has quit [Remote host closed the connection]
unicodeveloper has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roolo_ has quit [Quit: Leaving...]
unicodeveloper has quit [Quit: unicodeveloper]
roolo has joined #ruby
sandelius has joined #ruby
unicodeveloper has joined #ruby
gfawcettpq has joined #ruby
jottr has joined #ruby
dANO_ has joined #ruby
agrinb has joined #ruby
sankaber has joined #ruby
The_Phoenix has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
unicodeveloper has quit [Quit: unicodeveloper]
agrinb has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
unicodeveloper has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has joined #ruby
oo_ has joined #ruby
xlogic has joined #ruby
sandelius has joined #ruby
Takle has quit [Remote host closed the connection]
bruno- has joined #ruby
phutchins has joined #ruby
nii236 has quit [Quit: WeeChat 1.1.1]
jusmyth has joined #ruby
Dude007 has joined #ruby
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
unicodeveloper has quit [Quit: unicodeveloper]
bruno- has quit [Ping timeout: 250 seconds]
unicodeveloper has joined #ruby
maximski has quit [Read error: Connection reset by peer]
DouweM has joined #ruby
fabrice31 has quit [Remote host closed the connection]
unicodeveloper has quit [Client Quit]
maximski has joined #ruby
lxsameer has quit [Quit: Leaving]
unicodeveloper has joined #ruby
tbon has quit [Remote host closed the connection]
MasterPiece has joined #ruby
jenrzzz has joined #ruby
Takle has joined #ruby
phale has joined #ruby
unicodeveloper has quit [Client Quit]
<phale> "my most recent purchase old black rope, gonna learn how to tie it hang it in my chamber"
<jhass> phale: is that some kind of crappy plugin?
<phale> no im going to kill myself
_cake has joined #ruby
vtunka has quit [Quit: Leaving]
<workmad3> phale: that's somewhat dark for a friday... I'd normally expect that sentiment on a monday
govg has quit [Quit: leaving]
<phale> i see govg everywhere..
sjums has joined #ruby
pork_clips has quit [Ping timeout: 245 seconds]
SOLDIERz_ has quit [Quit: Be back later ...]
timonv has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
unicodeveloper has joined #ruby
<phale> i'm just quoting a song
<phale> dont worry im not that depressed
<phale> yet..
jenrzzz has quit [Ping timeout: 255 seconds]
sdothum has joined #ruby
<workmad3> phale: damn... I was gonna do a video up showing you how to tie a noose ;)
piotrj has joined #ruby
christiandsg has joined #ruby
tvw has joined #ruby
n008f4g_ has joined #ruby
Hirzu has joined #ruby
Spami_ has joined #ruby
Spami has quit [Ping timeout: 256 seconds]
ismaelga has joined #ruby
polysics has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
relix has joined #ruby
Hirzu_ has joined #ruby
DerisiveLogic has joined #ruby
rodfersou has joined #ruby
reinaldob has joined #ruby
<shevy> phale drink a beer first
rmoriz has joined #ruby
startupality has joined #ruby
Hirzu has quit [Ping timeout: 264 seconds]
jerematic has joined #ruby
OrbitalKitten has joined #ruby
charliesome has joined #ruby
_blizzy_ has quit [Ping timeout: 252 seconds]
MatthewsFace has joined #ruby
MasterPiece has quit [Remote host closed the connection]
oo_ has joined #ruby
christiandsg has quit [Quit: Leaving...]
george2 has quit [Ping timeout: 265 seconds]
christiandsg has joined #ruby
<adaedra> I want to bind first two parameters but still be able to call the proc
<adaedra> here, giving the required parameters call the proc
<adaedra> Is it possible?
adriancb has joined #ruby
<phale> no
<adaedra> :(
jerematic has quit [Ping timeout: 246 seconds]
george2 has joined #ruby
MatthewsFace has quit [Ping timeout: 244 seconds]
<phale> ask jhass
hcnewsom has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> adaedra: not optional, you can force it into requiring the third arg with .curry(3)
<jhass> if I got the docs right
Zai00 has joined #ruby
scripore has joined #ruby
adriancb has quit [Ping timeout: 265 seconds]
User458764 has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> Works, except I can’t do c.()
<jhass> that's what I said?
<adaedra> ah, misunderstood then
phale has left #ruby ["now"]
OrbitalKitten has joined #ruby
jusmyth has quit [Quit: Leaving.]
RegulationD has joined #ruby
ta has quit [Quit: Leaving...]
max96at|off is now known as max96at
claw has quit [Ping timeout: 246 seconds]
ta has joined #ruby
agrinb has joined #ruby
lanemeyer has quit [Ping timeout: 256 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claw has joined #ruby
Redsadic has joined #ruby
<Redsadic> hi guys
<Redsadic> question
RegulationD has quit [Ping timeout: 255 seconds]
<Redsadic> everywhere is said that marshal.load could lead to code execution
agrinb has quit [Ping timeout: 255 seconds]
<Redsadic> how can be achieved?
william3 has joined #ruby
jonr22 has joined #ruby
nfk has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DouweM has quit [Read error: No route to host]
Musashi007 has joined #ruby
jottr has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> Redsadic: I think it has a hook?
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
roolo_ has joined #ruby
roolo has quit [Ping timeout: 272 seconds]
<dotix> Hi guys.. how can I send multiple arrays from #gets into Array#zip? [0,0].zip([1,1], [1,2]) => # [[0, 1, 1], [0, 1, 2]] but I get the arys from IO#gets.
<jhass> dotix: String#split ?
<dotix> I there any way I could serialize and deserialize in .zip ?
<dotix> hm
Takle has quit [Remote host closed the connection]
<dotix> and split after what? there is comma inside and outside of ary
Takle has joined #ruby
<Redsadic> jhass: sorry, could you tell me more about this? I suck at ruby internals
sandelius has joined #ruby
<jhass> dotix: you do realize that you made zero specifications about how your input looks like?
<jhass> Redsadic: I think the issue is that Marshal.load determines the type to load from the data, not from the caller
arup_r has quit [Remote host closed the connection]
<jhass> so when you load something, you actually don't know which class you're gonna end up with
zorak8 has joined #ruby
<jhass> so an attacker knowledgeable about your application can trigger a classes _load/marshal_load where you don't expect it to be triggered
ldnunes has joined #ruby
<dotix> Ok jhass, on the first line it will be number of arrays I'll get
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<jhass> and given there are plenty marshallable classes in ruby core and stdlib...
<dotix> and I want to zip all of them into a [0, 0] because I need the sum of first elements in each of them
<dotix> (1..gets.chomp.to_i).each { [0,0].zip(gets.chomp.split.map(&:to_i)) }
nemesit|znc has joined #ruby
<dotix> something like this
<jhass> dotix: "array" is not a standardized input specification, so you're still being vague
doodlehaus has quit [Remote host closed the connection]
<dotix> 2
<dotix> 1 1
<dotix> 1 2
scripore has quit [Quit: This computer has gone to sleep]
<dotix> => [[0, 1, 1], [0, 1, 2]]
<Redsadic> jhass: cool :), thx
<dotix> how bout now?
bruno- has joined #ruby
<Redsadic> jhass: any idea of a class that could let me execute commands via this path?
jt__ has quit [Ping timeout: 265 seconds]
<jhass> dotix: where's the 0 coming from?
mostlybadfly has joined #ruby
giuseppesolinas has joined #ruby
<jhass> anyway Array.new(gets.to_i) { [0, *gets.chomp.split.map(&:to_i)] }
<dotix> because my idea was to use Array#zip you'll need an initial array to call zip on
<dotix> nice..
<jhass> ah so you want just Array.new(gets.to_i) { gets.chomp.split.map(&:to_i) } ?
blackmesa has quit [Quit: WeeChat 1.1.1]
<dotix> no.. the first version
<dotix> 2
<dotix> 0 1
<dotix> 0 3
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dotix> should be [[0, 0], [1,3]]
<dotix> elements from first line and elements of second line
bruno- has quit [Ping timeout: 245 seconds]
<dotix> first column and second column sorry
xlogic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> any guarantees about the number of columns?
<workmad3> dotix: heh, you want to create a column-centrix matrix :)
<workmad3> *centric
<dotix> well there will be always 2 columns
charliesome has quit [Ping timeout: 265 seconds]
<jhass> Array.new(gets.to_i) { gets.chomp.split.map(&:to_i) }.transpose
<dotix> that will do it :)
<dotix> very nice
<dotix> thank you
<workmad3> jhass: wow, didn't know about transpose... that's fun :)
<jhass> it's one of the things you forget about, yeah
<dotix> me neither :) I will have to take a look at your suggestion workmad3
xlogic has joined #ruby
charliesome has joined #ruby
<jhass> I only remembered it because apeiros_ used it yesterday for something
<workmad3> dotix: I wasn't offering a suggestion, just terminology
jenrzzz has joined #ruby
<workmad3> dotix: however, the terminology does then lead to looking for a transpose operation (as a column-centric matrix expressed as an array of arrays would look like the row-centric transpose of the row-centric original... which kinda makes sense if you know some linear algebra and matrix representation stuff :) )
livathinos has joined #ruby
dotix has quit [Read error: Connection reset by peer]
<apeiros> <3 transpose
lxsameer has joined #ruby
<apeiros> rarely useful, but when it's useful, it's quite nice :)
SouL has joined #ruby
lessless has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
jerematic has joined #ruby
<shevy> workmad3 may not be offering a suggestion
<shevy> but perhaps he may offer hot wild sex!
<workmad3> shevy: only to my wife
zorak8 has quit [Ping timeout: 265 seconds]
aswen has joined #ruby
kaspergr1bbe is now known as kaspergrubbe
SOLDIERz_ has joined #ruby
arup_r has joined #ruby
pretodor has joined #ruby
<workmad3> apeiros: if I did more graphics stuff, I could see it being useful a lot... tbh, it's a little odd that a matrix operation is on standard Array :)
<certainty> transpose wifes?
bim has quit [Remote host closed the connection]
<apeiros> workmad3: what operations are not on array?
<certainty> interpose juxtapose
* certainty stops wild associtions
<workmad3> apeiros: well, I somewhat doubt that diagonalising a matrix is on an array ;)
<apeiros> Array is a motley potpourri of all kinds of special purpose methods
shredding has joined #ruby
<workmad3> apeiros: or calculating the matrix inverse, matrix determinant, etc. :)
<jhass> yeah, it's even a hash, never looked at #assoc, #rassoc?
bim has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
<shevy> #socks
<certainty> almost
<apeiros> >> Array.instance_methods(false).size
<eval-in_> apeiros => 91 (https://eval.in/299922)
<apeiros> somehow I expected a 3 digit number there…
<shevy> is this a wat-worthy moment
<workmad3> apeiros: give it a couple more versions ;)
<jhass> well, if you count Enumerable in I guess
pretodor has quit [Client Quit]
<shevy> cool
<shevy> I get 100 as a result
<workmad3> >> RUBY_VERSION
<eval-in_> workmad3 => "2.2.0" (https://eval.in/299923)
<jhass> >> (Array.instance_methods(false) | Enumerable.instance_methods(false)).size
<eval-in_> jhass => 123 (https://eval.in/299924)
bruno- has joined #ruby
<jhass> hah, nice
SOLDIERz_ has quit [Ping timeout: 256 seconds]
<workmad3> apeiros: make a case for being able to do 'ary.hermitian?' :)
Beoran_ has quit [Ping timeout: 245 seconds]
<shevy> certainty are you writing code in ruby?
unicodeveloper has quit [Quit: unicodeveloper]
<adaedra> >> RUBY_PLATFORM
<eval-in_> adaedra => "i686-linux" (https://eval.in/299925)
lkba has joined #ruby
unicodeveloper has joined #ruby
<workmad3> apeiros: it looks like Array gained a new instance method between 2.1 and 2.2 btw... I only get 90 out on 2.1
aclearman037 has joined #ruby
<apeiros> workmad3: have fun hunting ;-D
<adaedra> And only 89 in ruby 2.0.0
<jhass> workmad3: apeiros looks like there's an optimized override for .any? now
<jhass> adaedra: that's .to_h added in 2.1
<adaedra> ok
doodlehaus has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
shredding has quit [Ping timeout: 252 seconds]
Hijiri has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
hcnewsom has quit [Quit: hcnewsom]
deepa has quit [Quit: ZNC - http://znc.in]
Beoran_ has joined #ruby
sgambino has joined #ruby
xlogic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d10n-work has joined #ruby
sinkensabe has joined #ruby
jenrzzz has joined #ruby
agrinb has joined #ruby
SOLDIERz_ has joined #ruby
<shevy> the higher the ruby version
<shevy> the more methods we have!
<shevy> that is proof
<shevy> methods can make babies
millerti has joined #ruby
dEPy has joined #ruby
unicodeveloper has quit [Quit: unicodeveloper]
eat_multi has joined #ruby
eregon_ is now known as eregon
hcnewsom has joined #ruby
hiyosi has joined #ruby
<shevy> >> def do;puts 'hey';end; do()
<eval-in_> shevy => /tmp/execpad-c3dbf846a046/source-c3dbf846a046:2: syntax error, unexpected keyword_do_block, expecting keyword_end ... (https://eval.in/299927)
<shevy> hanmac why does this not work
<godd2> do is a keyword
<jhass> shevy: if methods have babies, what do classes have?
unicodeveloper has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
<shevy> godd2 yeah but I thought the () could give enough indication
<shevy> jhass ancestry!
<godd2> nah keywords are special magical reserved names
WillAmes has quit [Remote host closed the connection]
<godd2> if you find an example where you can name something a keyword, it's probably a bug
christiandsg has quit [Remote host closed the connection]
unicodeveloper has quit [Client Quit]
jenrzzz has quit [Ping timeout: 250 seconds]
<apeiros> >> def do;puts 'hey';end; self.do()
<eval-in_> apeiros => private method `do' called for main:Object (NoMethodError) ... (https://eval.in/299928)
crdpink2 has joined #ruby
<apeiros> ah right, top level methods are private by default
WillAmes has joined #ruby
<apeiros> >> public def do;puts 'hey';end; self.do()
<eval-in_> apeiros => hey ... (https://eval.in/299929)
<shevy> aha
<apeiros> same as with Object#class - you need an explicit receiver.
crdpink has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
tkuchiki has quit [Ping timeout: 265 seconds]
unicodeveloper has joined #ruby
<workmad3> >> define_method :def do; puts "ho"; end; public :def; def
<eval-in_> workmad3 => /tmp/execpad-d8b571fa494e/source-d8b571fa494e:3: formal argument cannot be a constant ... (https://eval.in/299930)
<workmad3> hmm... ok, weird
<certainty> :D
<workmad3> oh, forgot self.def
marr has quit [Ping timeout: 246 seconds]
<workmad3> >> define_method :def do; puts "ho"; end; public :def; self.def
<eval-in_> workmad3 => ho ... (https://eval.in/299931)
<godd2> >> def do; puts 'hey'; end; send :do
<eval-in_> godd2 => hey ... (https://eval.in/299937)
william3 has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 240 seconds]
<godd2> send can take the implicit receiver instead :P
<apeiros> why define_method?
<apeiros> >> public def def; "hi"; end; self.def
<eval-in_> apeiros => "hi" (https://eval.in/299940)
<workmad3> apeiros: good point
<workmad3> godd2: aiui, keywords aren't blacklisted from being variable or method names in the parser... they're just recognised as keywords first in contexts where they're applicable
<godd2> ah ok. I just regard them as off-limits haha
<workmad3> yeah, it's sensible to regard them as off-limits :)
silkfox has joined #ruby
<workmad3> but it's kinda fun that they're only so by convention ;)
lanemeyer has joined #ruby
<workmad3> apeiros: you need to use define_method for some crazy methods though... such as the method ' ', or the method empty string :)
<workmad3> >> define_method " " do; puts "ho"; end; send " "
<eval-in_> workmad3 => ho ... (https://eval.in/299946)
<apeiros> workmad3: I know. see nokogiri. it has a couple of those.
jimms has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> >> define_method "wait wat? why is this possible?" do; puts "ho"; end; send "wait wat? why is this possible?"
<eval-in_> workmad3 => ho ... (https://eval.in/299948)
<godd2> >> define_method :'' do; puts 'hehe'; end; send :''
<eval-in_> godd2 => hehe ... (https://eval.in/299950)
amystephen has joined #ruby
unicodeveloper has quit [Quit: unicodeveloper]
<workmad3> ruby... where if you can slap it in a string, you can name a method after it
<apeiros> actually: if you can slap it into a symbol
<apeiros> which is nowadays less restricted than a couple of versions ago
<jhass> mmh
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> apeiros: given the :"" form, that's pretty much equivalent isn't it? :)
<jhass> >> :"\xCD"
<eval-in_> jhass => /tmp/execpad-18c21e2960a6/source-18c21e2960a6: invalid encoding symbol (EncodingError) (https://eval.in/299952)
<jhass> :(
<apeiros> workmad3: as said, nowadays
<apeiros> 18>> :""
<eval-in_> apeiros => /tmp/execpad-dce247e9edd0/source-dce247e9edd0:2: empty symbol literal (https://eval.in/299953)
<apeiros> not sure whether there are still invalid symbols
<jhass> didn't I just show one?
<apeiros> jhass: encoding related I think
<apeiros> hm… that said… can you actually still change the encoding of a source file?
antgel has quit [Ping timeout: 264 seconds]
hcnewsom has quit [Quit: hcnewsom]
fabrice31 has joined #ruby
hmnhf has joined #ruby
<apeiros> too lazy to try that :D
unicodeveloper has joined #ruby
startupality has quit [Quit: startupality]
antgel has joined #ruby
startupality has joined #ruby
<jhass> yeah, I think it still works
jimms has quit [Ping timeout: 244 seconds]
piotrj has quit []
<jhass> for the shevy's among us that have their source files in ISO 8859
<jhass> >> "\xCD".to_sym
<eval-in_> jhass => invalid encoding symbol (EncodingError) ... (https://eval.in/299964)
<shevy> works for me here!
jeromelanteri has quit [Ping timeout: 246 seconds]
<godd2> 19>> "\xCD".to_sym
<eval-in_> godd2 => :"\xCD" (https://eval.in/299965)
<shevy> the bot rocks
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 272 seconds]
SouL has quit [Ping timeout: 246 seconds]
serivich has joined #ruby
<workmad3> godd2: ah yeah, default source encoding changed from 1.9 to 2.0
rhllor has joined #ruby
piotrj has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
sankaber has joined #ruby
<jhass> >> "\xCD".b.to_sym
<eval-in_> jhass => :"\xCD" (https://eval.in/299968)
<jhass> interesting
<workmad3> >> "\xCD".force_encoding("ISO8859-1").to_sym
<eval-in_> workmad3 => :"\xCD" (https://eval.in/299971)
<certainty> may the force be with you
tesuji_ has quit [Ping timeout: 264 seconds]
<jhass> >> :"foo".encoding
<eval-in_> jhass => #<Encoding:US-ASCII> (https://eval.in/299973)
<phutchins> Ok so back on the binary topic from yesterday... I've converted a binary string to an array, then packed with "C*" which I believe returns a raw s tring with my hex? in it. then i'm doing an unpack to get the data out that i need and having trouble finding the right combo of arguments. The data I need to extract makes up is 4 bytes, 3 bytes, 2 bytes 3 bytes. That is where i'm having trouble. I see that I c
<phutchins> an use directive C for 8 bits, S for 16, etc... but what if i need to pull 3 bytes (24 bits) ? I don't see an option for that
<workmad3> certainty: heh :) that made me think "I want a lightsaber emoji" which, as a result, ended up with me browsing http://rejectedemojis.tumblr.com/
<workmad3> who the hell even proposed an emoji for "Top hat full of pornography"???
revoohc has joined #ruby
<jhass> phutchins: 24bit integers are not really a common thing, that's why I guess
<jhass> is it really a single integer the 3 bytes?
scripore has joined #ruby
doodlehaus has quit [Remote host closed the connection]
User458764 has joined #ruby
spider-mario has quit [Remote host closed the connection]
<phutchins> jhass: yeah i guess so. And yeah, thats how it is being encoded...
unicodeveloper has quit [Quit: unicodeveloper]
<phutchins> jhass: like so (this is javascript of course) var machine3Bytes = BinaryParser.encodeInt(machineId, 24, false);
livathin_ has joined #ruby
<jhass> well, then do it manual, extract a 16 bit integer and a 8 bit integer, shift the 16 bit by 8 bit to to the left and add the 8 bit one
<jhass> phutchins: I still have no idea what BinaryParser does
<phutchins> jhass: ok i figured i'd have to something like that. but was hoping not :).
<godd2> phutchins are the bytes word aligned? you might be able to pull out 2bytes at a time and discard half of the bits in one of them
ych4k3r has joined #ruby
<jhass> phutchins: if you don't need it as an actual Fixnum, you can just a3
dukz has quit [Remote host closed the connection]
unicodeveloper has joined #ruby
jeromelanteri has joined #ruby
<phutchins> jhass: BinaryParser.encodeInt is just encoding an int with the params... Not really important. Just showing how it's 24 bit incoded.
<phutchins> *encoded
<phutchins> godd2: They're all strings of numbers, is that what you mean?
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
<jhass> for all I know the 24 could mean read 24 bits from macineId but encodeInt could always pad it to 32bit one or whatever
<phutchins> jhass: ah cool, let me try a3, that sounds promising
<workmad3> it's that sort of weirdness that makes me wish more people would just use plain text transports rather than binary encodings :)
ohcibi has joined #ruby
joonty has quit [Quit: joonty]
<phutchins> workmad3: yeah :) I hate that i'm even having to do this. being tricky is nto always good practice lol
MatthewsFace has joined #ruby
<jhass> workmad3: but the efficiency!
<jhass> :P
tier has joined #ruby
<jhass> protobuf seems reasonable though
avril14th has joined #ruby
unicodeveloper has quit [Client Quit]
varunwachaspti has joined #ruby
<godd2> phutchins I'm asking how many bits between the beginning of two pieces of information. if each piece of info has 8 padded bits, then you can suck them out 32 bits at a time and discard 8 of them. If each piece of info is actually 24 bits long back to back, then yea youll have to do something like a3
livathinos has quit [Ping timeout: 256 seconds]
<phutchins> godd2: gotcha, let me look into what BinaryParser.encodeInt is dong
varunwachaspti has quit [Client Quit]
varunwachaspati_ has quit [Quit: Leaving]
varunwachaspati has joined #ruby
<workmad3> jhass: screw efficiency, I'll just gzip my requests and responses :P
jespada has joined #ruby
unicodeveloper has joined #ruby
<jhass> but thing of the cute penguins! all that wasted cpu cycles climate change their homes away!
<phutchins> workmad3: for a little background, this is the MongoDB ObjectID. Someone here has changed the BSON library to encode a hash of the hostname into the ID
<jhass> eh, think* even
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<godd2> phutchins what library/gem is this?
<phutchins> workmad3: so to recover that so we can align log entries to hostnames i have to decode the id
<workmad3> phutchins: s/Someone/Some idiot/
<phutchins> godd2: I'm writing a logstash input plugin for mongodb, the code creating the ID is a forked BSON library...
<phutchins> workmad3: I wouldn't necessarily have done it this way... :)
MatthewsFace has quit [Ping timeout: 255 seconds]
unicodeveloper has quit [Client Quit]
Hirzu_ has quit [Remote host closed the connection]
nfk has quit [Remote host closed the connection]
<workmad3> phutchins: s/.../ because I'm not an idiot/ ;)
jerius has joined #ruby
<phutchins> :)
fabrice31 has joined #ruby
aiguu has quit [Ping timeout: 256 seconds]
nfk has joined #ruby
brb3 has joined #ruby
<phutchins> Ok so the code in BinaryParser.encodeInt that does the magic - or (var r = []; data; r[r.length] = String.fromCharCode(data % 256), data = Math.floor(data / 256));
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
<phutchins> Trying to understand what encodeInt is doing...
<jhass> yeah, mixed indentation
scripore has quit [Quit: This computer has gone to sleep]
<jhass> such professionals, I can sense it
sambao21 has joined #ruby
<phutchins> jhass: so this code is just randomly found on the internet. this is not the forked code :)
<phutchins> jhass: I unfortunately can't post all of the code i'm referencing... But this binary_parser lib is the same as the one we use
<phutchins> trying to understand if it is padded or not
<workmad3> phutchins: 'randomly found on the internet' == 'official mongodb github account' in this case, I see
Musashi007 has quit [Quit: Musashi007]
<phutchins> workmad3: the same.. yes. :)
<phutchins> workmad3: random as in not sure what version, if it's a PR, etc...
<phutchins> workmad3: the important part is that the encodeInt code is thet same.
RegulationD has joined #ruby
bim has quit [Remote host closed the connection]
agrinb has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
<godd2> yea it looks like it's not padding
<godd2> for (bits = -(-bits >> 3) - r.length; bits--; r[r.length] = "\0");
<phutchins> So ls like it's returning an ObjectId with 4b, 3b, 2b, 3b which adds up to 12 bytes.
<phutchins> godd2: ok gotcha.
<godd2> so if bits were 24, then it gets set to 3 when divided by 8
yfeldblu_ has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
davedev24_ has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
jonr22 has joined #ruby
shredding has joined #ruby
dblessing has joined #ruby
Azure has quit [Ping timeout: 265 seconds]
HOrangeJewce has joined #ruby
marr has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
enebo has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
oo_ has quit [Remote host closed the connection]
nettoweb has joined #ruby
SOLDIERz_ has quit [Quit: Be back later ...]
bayed has joined #ruby
spicerack has joined #ruby
spicerack has quit [Changing host]
spicerack has joined #ruby
zenith_ has joined #ruby
kedare has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agrinb has joined #ruby
<phutchins> I think I got it. I use aX to get them in to the right size strings, then just use S to unpack those
rsavage has joined #ruby
<phutchins> myid.to_a.pack("C*").unpack("a4 a3 a2 a3")[2].unpack("S")
adriancb has joined #ruby
Hirzu has joined #ruby
<jhass> well, that's the same as Sa
<phutchins> oh :-\
<jhass> or rather you can replace the a2 with S directly
paradoja has joined #ruby
banister has joined #ruby
<phutchins> so instead of two unpacks do ("Sa4 Sa3... ?
banister has quit [Max SendQ exceeded]
<jhass> no
ojacobson has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
<jhass> .unpack("L a3 S a3")
xlogic has joined #ruby
<phutchins> ahhh ok
<jhass> I first thought you pulled out an a3 and converted it into a number
<phutchins> that still leaves the 2nd and 4th elements as strings, not integers
<jhass> well, yes
Hirzu_ has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
<phutchins> jruby-1.7.19 :045 > myid.to_a.pack("C*").unpack("L a3 S a3") => [1073283413, "\x91\x13\x00", 21175, "0\xA2\xB2"]
dumdedum has quit [Quit: foo]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<phutchins> (forgive jruby and horrible version)
Musashi007 has quit [Quit: Musashi007]
<jhass> if you really need them as fixnums (note that's not needing to comparing them for example to Digest::MD5.digest()[0, 3]), you have to do the SC, <<, + dance
frobs has joined #ruby
Hirzu has quit [Ping timeout: 252 seconds]
<shevy> I dance!
tymat has quit [Ping timeout: 245 seconds]
<shevy> phutchins dance with me man
<shevy> phutchins don't dance with jhass, he is writing more crystal code than ruby code these days
SOLDIERz_ has joined #ruby
<jhass> shevy: you're just jealous
<phutchins> lol
<phutchins> I'm trying to convert them to human readable strings that get parsed into an entry in elasticsearch, then used to build visualization in kibana...
rsavage is now known as r3dkinG
joonty has joined #ruby
<jhass> phutchins: H6 then?
IrishGringo has joined #ruby
<jhass> >> "0\xA2\xB2".unpack("H6")
<eval-in_> jhass => ["30a2b2"] (https://eval.in/300025)
Rephiax__ has joined #ruby
tymat has joined #ruby
Azure has joined #ruby
<jhass> btw, what is myid that you call .to_a.pack("C*") on?
Megtastique has joined #ruby
lolmaus has joined #ruby
crueber has joined #ruby
<phutchins> jhass: it's a BSON::ObjectId
<phutchins> jhass: trying H6 now...
werelivinginthef has joined #ruby
Rephiax has quit [Ping timeout: 246 seconds]
shredding has quit [Ping timeout: 240 seconds]
Rephiax__ has quit [Client Quit]
<jhass> phutchins: looks like you can just myid.to_bson.unpack("L H6 S H6") then
unicodeveloper has joined #ruby
livathin_ has quit []
boadie has joined #ruby
<phutchins> jhass: to_bson doesn't work, it's already a bson object id... thats why I was doing to_a, then packing it
<phutchins> jruby-1.7.19 :052 > myid.to_a => [85, 1, 249, 63, 145, 19, 0, 183, 82, 48, 162, 178]
polysics has joined #ruby
<jhass> well, the version I'm looking at would just return the underlying raw string
elfuego has joined #ruby
<jhass> but it also doesn't have a to_a
<phutchins> The 2dn element (starting at 1) should be 5009, and the third should be 21175
RegulationD has joined #ruby
<phutchins> jhass: it does, probably different bson library. I'm using the one from mongo...
vtunka has joined #ruby
arup_r_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
n80 has joined #ruby
<jhass> so what was it, time, machine_id, ?, ?
Takle has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
sambao21 has joined #ruby
<jhass> pid, index apparently
havenwood has joined #ruby
shaquile has quit [Ping timeout: 250 seconds]
boadie has quit [Ping timeout: 265 seconds]
inukshuk has joined #ruby
Soda has joined #ruby
SOLDIERz_ has quit [Quit: Be back later ...]
nettoweb has joined #ruby
<arup_r_> shevy: I'm back here
<shevy> arup_r_ lol
<shevy> you teleport between the channels
<arup_r_> hehehe
shaquile has joined #ruby
keen__________86 has quit [Read error: Connection reset by peer]
<phutchins> jhass: time, machineid, pid, index
<arup_r_> shevy: BTW, why you went there ?
tus has joined #ruby
keen__________86 has joined #ruby
<bweston92> I have an application that has essentially "products" listed by other people for a period of time. When their "product" has expired I want to send them occasional e-mail until they re-list their "product" I don't want to use the MySQL database to store when I last notified them it would just grow to much and look ugly. However I'm debating either making an SQLite database within the current application or making an external application
<bweston92> (daemon) which would store the notifications itself. Which would be best?
Takle has quit [Ping timeout: 245 seconds]
<shevy> arup_r_ I tried to find out if I can have borders less than 1 px size :)
startupality has quit [Quit: startupality]
jefus has quit [Ping timeout: 245 seconds]
<arup_r_> ok
<shevy> the answer was funny though I got it from stackoverflow; sometimes a shadow box can help make things appear smaller
<shevy> border: 1px solid white;
<shevy> box-shadow: 0 1px 0 gray;
piotrj has quit [Quit: Linkinus - http://linkinus.com]
piotrj has joined #ruby
tkuchiki has joined #ruby
roolo_ has quit [Remote host closed the connection]
scripore has joined #ruby
agrinb has joined #ruby
krz has quit [Ping timeout: 264 seconds]
hcnewsom has joined #ruby
ych4k3r_ has joined #ruby
frem_ has joined #ruby
ych4k3r has quit [Ping timeout: 246 seconds]
marr has quit [Ping timeout: 255 seconds]
fryguy9 has joined #ruby
roolo has joined #ruby
juanpablo__ has joined #ruby
Takle has joined #ruby
Ankhers has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> phutchins: so like this? http://paste.mrzyx.de/pdzktczzx
roolo has quit [Remote host closed the connection]
<jhass> er, shift by 8 I guess
uri_ has joined #ruby
tobago has quit [Remote host closed the connection]
<phutchins> jhass: yeah just like that. Whats up with the 0 and 178 tho? I got those too...
epochwolf has quit [Excess Flood]
hgl has quit [Ping timeout: 272 seconds]
Ikri has quit [Quit: No Ping reply in 180 seconds.]
epochwolf has joined #ruby
<jhass> phutchins: that's the 3 byte?!
<jhass> 3rd
Ikri has joined #ruby
nii236 has joined #ruby
<apeiros> you guys still working on that jsonb id?
<jhass> kinda
<jhass> and shift by 16 was right, little endian always confuses me...
hgl has joined #ruby
<phutchins> I need to look little endian :)
serivich has quit [Ping timeout: 255 seconds]
<phutchins> Ok so one is just backwards...
razieliyo has joined #ruby
juanpaucar has joined #ruby
fenak has joined #ruby
kblake has joined #ruby
<jhass> not one
<jhass> S is native endian which is little endian on x86
nucular11 has joined #ruby
nii236 has quit [Ping timeout: 255 seconds]
hcnewsom has quit [Quit: hcnewsom]
HOrangeJewce has quit [Quit: Leaving.]
<r3dkinG> Tonto... tell the Endians to get their Bow and Arrows ready... but Buffalo approaching
tjohnson has joined #ruby
Ibm-irc has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
paulfm has joined #ruby
elfuego_ has joined #ruby
Ikri has quit [Ping timeout: 256 seconds]
dblessing has quit [Ping timeout: 264 seconds]
epochwolf has quit [Ping timeout: 256 seconds]
elfuego has quit [Ping timeout: 256 seconds]
elfuego_ is now known as elfuego
mitchellhenke has joined #ruby
Ikri has joined #ruby
cschneid has joined #ruby
epochwolf has joined #ruby
shaquile has quit [Ping timeout: 272 seconds]
shaquile has joined #ruby
scottstamp has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
Redsadic has left #ruby [#ruby]
nettoweb has joined #ruby
krz has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: Leaving]
scottstamp has joined #ruby
arup_r_ has quit []
relix has joined #ruby
centrx has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 240 seconds]
unicodeveloper has quit [Quit: unicodeveloper]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
serivich has joined #ruby
tvon has quit [Quit: leaving]
Takle has joined #ruby
dukz has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
sandelius has joined #ruby
B1n4r10 has joined #ruby
<a5i> anyone here good with racvk ?
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<a5i> Rack ?
n80 has quit [Quit: n80]
kaleido_ is now known as kaleido
Spami_ has quit [Quit: This computer has gone to sleep]
kaleido has quit [Changing host]
kaleido has joined #ruby
<havenwood> a5i: The monks of Rack.
n80 has joined #ruby
<hoelzro> are they affiliated with the elders of the internet?
<havenwood> A proper subset, I think.
rippa has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
jshultz has joined #ruby
jefus has joined #ruby
aclearman037 has joined #ruby
grr_ has joined #ruby
frem_ is now known as frem
<a5i> Well
<a5i> Could I have multiple instances of :urls => {"/" => 'index.html'}, ?
<a5i> for stati file serving?
serivich has quit [Ping timeout: 252 seconds]
<a5i> static&
Takle has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
<jhass> that seems to lack a ton of context
mog_ has quit [Remote host closed the connection]
avril14th has quit [Remote host closed the connection]
<a5i> :urls => {"/" => 'index.html'},
<a5i> set "/" to index.html
MatthewsFace has joined #ruby
<a5i> Could I add anothe rinstace like
dfinninger has joined #ruby
<a5i> :urls => {"/a" => 'a.html'},
<a5i> along with the first one?
davedev24_ has quit [Ping timeout: 246 seconds]
thumpba has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass> probably, but why not {"/" => "index.html", "/a" => "a.html"} ?
<phutchins> jhass: hey thanks for all of your help with the binary stuff... Really appreciate it.
thumpba has quit [Remote host closed the connection]
<phutchins> And thanks to anyone else that chimed in too :)
unicodeveloper has joined #ruby
<a5i> ill try
bruno- has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
thumpba has joined #ruby
Spami_ has joined #ruby
Spami_ has quit [Client Quit]
davedev24_ has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
MatthewsFace has quit [Ping timeout: 240 seconds]
<a5i> jhass, this is my short file
dfinninger has joined #ruby
<a5i> and I get an error found at @ http://oxidized.0x0x539.net
unicodeveloper has quit [Client Quit]
mikepack has joined #ruby
ojacobson_ has joined #ruby
<jhass> the domain does not resolve
mjuszczak has joined #ruby
<a5i> oops
<a5i> @ jhass ^
<mjuszczak> Is there a reliable place to get CentOS 6 ruby 2.x RPMs? Don't want to use rbenv or rvm.
HOrangeJewce has joined #ruby
ojacobson has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
<shevy> you'd have to ask the centos folks
<jhass> a5i: looks like you have to specify the index option
<jhass> a5i: might be a bug
thumpba_ has joined #ruby
<a5i> hmm
<havenwood> mjuszczak: CentOS is in active denial that this decade is happening.
<mjuszczak> haha.
<shevy> jhass you omit return statements in a method right?
dblessing has joined #ruby
<jhass> shevy: sure
<havenwood> mjuszczak: Can you use Fedora's EPEL?
<mjuszczak> Yes
piotrj has quit [Read error: Connection reset by peer]
<a5i> jhass, can u shed some light o that? :S
<jhass> a5i: trace @index
piotrj has joined #ruby
<mjuszczak> havenwood: but I didn't see ruby 2 in EPEL or IUS
sambao21 has quit [Quit: Computer has gone to sleep.]
zenith_ has quit [Remote host closed the connection]
it0a has joined #ruby
sambao21 has joined #ruby
thumpba has quit [Ping timeout: 256 seconds]
<havenwood> mjuszczak: aha
hs366 has quit [Read error: Connection reset by peer]
makerop has joined #ruby
SOLDIERz_ has joined #ruby
ojacobson has joined #ruby
ojacobson has quit [Client Quit]
jenrzzz has quit [Ping timeout: 245 seconds]
scripore has quit [Quit: This computer has gone to sleep]
grr_ has quit [Remote host closed the connection]
<makerop> im having some trouble with a gem im writing and im not sure where to look
rhllor has quit [Quit: rhllor]
<makerop> i can do a rake build, and generate the gem
fabrice31 has quit [Remote host closed the connection]
<havenwood> mjuszczak: You could build Ruby yourself, but I don't know about an RPM.
<jhass> a5i: https://github.com/rack/rack/commit/11c03debde1e11618b9de21df668129cca6fe720 that should be what turned previous misbehavior into an error
Musashi007 has joined #ruby
<makerop> but when I go to install it, I get a type error
<makerop> it has to do with my spec.executables, but it looks proper
<a5i> hmm :/
<makerop> and when I puts it, the exectuable comes up
fabrice31 has joined #ruby
momomomomo has joined #ruby
scripore has joined #ruby
<jhass> a5i: ideally try to find a minimal reproducer (just a config.ru + rackup) and open an issue
<jhass> it's at minimum a doc bug
ojacobson has joined #ruby
ojacobson_ has quit [Ping timeout: 256 seconds]
<jhass> makerop: is that a question?
<makerop> no, im getting the relevant code on gist
<makerop> i kind of trailed off
kalusn has quit [Remote host closed the connection]
scripore has quit [Client Quit]
SOLDIERz_ has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
scripore has joined #ruby
jonr22 has joined #ruby
shaquile has quit [Quit: leaving]
<makerop> in my gemspec, i puts the executables, and it outputs what I think it should
<makerop> if I remove that line, it works fine
<jhass> makerop: that's not nearly enough to work with
<jhass> use p, not puts to print
<jhass> add the gemspec
<havenwood> mjuszczak: I'd probably just `ruby-install --system ruby 2.2.1` for a /usr/local install (or compile there yourself).
<jhass> and add the output with gem install -V
ghormoon has quit [Quit: ZNC - http://znc.in]
<jhass> or even gem install -V --debug
<jhass> or even gem install -V --debug --backtrace I meant
aryaching has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
<hanmac1> makerop: the regexp doesnt seems to be correct ...
<mjuszczak> havenwood: what package does ruby-install come with?
<mjuszczak> I'm familiar with ruby-build
momomomomo has joined #ruby
ghormoon has joined #ruby
hcnewsom has joined #ruby
<havenwood> mjuszczak: ruby-install doesn't do insane stuff like ruby-build's shipping with its own version of OpenSSL.
gaussblurinc1 has joined #ruby
<havenwood> mjuszczak: It uses `yum` to install the correct packages, or you can tell it not to with `--no-install-deps`.
<shevy> compiling webkitgtk-2.4.7 takes years ...
<jhass> shevy: guess why people use binary distributions
<mjuszczak> Beautiful!
<jhass> shevy: ever tried llvm in debug mode?
<mjuszczak> awesomeee thanks :)
jonr22 has quit [Ping timeout: 272 seconds]
zenith_ has joined #ruby
<shevy> jhass hmm I have not played much with llvm yet so I have not tried any mode really
dukz has quit [Remote host closed the connection]
<jhass> shevy: I mean compiling llvm itself with debug symbols
<jhass> linking takes forever
mleung has joined #ruby
<shevy> aha
GaryOak_ has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
<makerop> hrm
MasterPiece has joined #ruby
<makerop> looks like a discrepancy between 1.9.3 and 2.0 in rubygems
<makerop> im able to intsall the gem with 2.0
<jhass> good, ruby 1.9.3 is EOL anyway
<surs> I'm looking for a dummy collection of multimedia files. wav, ogg, mp3 mp4, etc. is there such a thing?
<jhass> not that a particular rubygems version would be bound to a particular ruby version...
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<adaedra> surs: look for creative commons artwork ?
rhllor has joined #ruby
duggiefresh has joined #ruby
Rayford has joined #ruby
bruno- has joined #ruby
SOLDIERz_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
bigkevmcd has quit [Quit: Outta here...]
Hirzu_ has quit [Quit: Leaving...]
<surs> doesn't matter, I just need to get the file types correctly (indexing of a directory structure
dukz has joined #ruby
piotrj has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
piotrj has joined #ruby
unicodeveloper has joined #ruby
<adaedra> you just need files in a given format ?
einarj has quit [Remote host closed the connection]
<adaedra> grab a video somewhere and convert them using ffmpeg for other formats
sambao21 has quit [Quit: Computer has gone to sleep.]
<adaedra> quick and easy
momomomomo has joined #ruby
lordkryss has joined #ruby
startupality has joined #ruby
chrishough has joined #ruby
leat1 has quit [Ping timeout: 252 seconds]
<shevy> surs if you have one, you should be able to quickly convert into the other
meatherly has joined #ruby
<shevy> here is the best way to start
<shevy> download a .mp4 from youtube
sambao21 has joined #ruby
<shevy> you can use youtube-dl for that: http://rg3.github.com/youtube-dl/
leat1 has joined #ruby
<shevy> just pass it the URL
ebbflowgo has quit [Ping timeout: 255 seconds]
tagrudev has quit [Remote host closed the connection]
<shevy> then you have a .mp4 file locally. now you can convert all sorts of stuff. perhaps this gem works https://rubygems.org/gems/extract_audio - if not no big deal, let me find the ffmpeg command...
<shevy> ffmpeg -y -i "foo.mp4" -acodec copy -vn "bla.aac"
<shevy> from .aac you can convert into .mp3 with lame; lame *aac bla.mp3
<shevy> from .mp3 to you can to .ogg and wave too
mleung has quit [Quit: mleung]
momomomomo has quit [Ping timeout: 256 seconds]
<Rayford> I am using Sintra, and I have a “Secrect Key” that i need to hold for the users session to use for API calls. What is the best/secure way to store this key in the session?
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vtunka has quit [Quit: Leaving]
terlar has quit [Read error: No route to host]
AlexRussia has joined #ruby
gr33n7007h has quit [Quit: WeeChat 0.3.8]
banister has joined #ruby
gr33n7007h has joined #ruby
Ibm-irc has quit []
hanmac1 has quit [Quit: Leaving.]
juanpaucar has quit [Remote host closed the connection]
ghostmoth has joined #ruby
juanpaucar has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has joined #ruby
blueOxigen has joined #ruby
nb_bez___ has joined #ruby
momomomomo has joined #ruby
lemur has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
bal has quit [Quit: bal]
bluOxigen has quit [Ping timeout: 252 seconds]
davidhq has joined #ruby
dmcnabb has joined #ruby
coderhs has joined #ruby
Hobogrammer has joined #ruby
<toertore> Rayford: you mean clients making api calls to your service, or you making 3rd party api calls on behalf of them?
<Rayford> making third party calls
<sweeper> why on earth would you transcode aac -> mp3 -> ogg instead of aac -> mp3? :P
last_staff has quit [Remote host closed the connection]
<Rayford> Basically i have a secret i want to store in the session
<toertore> Rayford: what do you mean by session?
<Rayford> user session
<Rayford> Sinatra Session
renier_ is now known as renier
<toertore> http session?
<Rayford> yes
gaussblurinc1 has quit [Quit: Leaving.]
coderhs has quit [Client Quit]
<toertore> then it depends on how the session is stored
<Rayford> Are you familar with Sinatra?
<toertore> do you have any persistent storage at all?
leat1 has quit [Ping timeout: 264 seconds]
<Rayford> I do, but I do not want to store it there
hmsimha has joined #ruby
<workmad3> Rayford: is the session stored in a cookie or in some server-side storage?
<toertore> Rayford: store it there
<toertore> putting shit in session storage is dumb
bim has joined #ruby
<workmad3> putting lots of data and sensitive data in session storage is dumb anyway
startupality has quit [Quit: startupality]
ndrei has quit [Ping timeout: 264 seconds]
<Rayford> See it better to put that sensitive info into a central repository/storage?
razrunelord has joined #ruby
Spami has joined #ruby
<toertore> yes
SegFaultAX has quit [Excess Flood]
<toertore> if you have any concept of user accounts, then connect it to that
Spami has quit [Client Quit]
SegFaultAX has joined #ruby
<workmad3> Rayford: only let sensitive information travel outside of your own infrastructure if you have absolutely no other choice
bricker has joined #ruby
unicodeveloper has quit [Quit: unicodeveloper]
chipotle has quit [Ping timeout: 264 seconds]
ghostpl_ has quit [Remote host closed the connection]
bal has joined #ruby
bal has quit [Client Quit]
<toertore> to get the secret key into your storage, have each user travel to your datacenter, identify themselves using a previously agreed upon secret handshake and then enter it manually
leat1 has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
terlar has joined #ruby
<workmad3> toertore: heh :)
aswen has quit [Ping timeout: 245 seconds]
pietr0 has joined #ruby
jenrzzz has joined #ruby
Channel6 has joined #ruby
leat1 has quit [Ping timeout: 250 seconds]
einarj has joined #ruby
aganov has quit [Quit: Leaving]
_hollywood has joined #ruby
leat1 has joined #ruby
<shevy> I am looking at old code I wrote. The code looks similar to this: http://pastie.org/10023383
<shevy> my question is - can I get rid of the DATA constant with an @ivar?
jottr has joined #ruby
juanpaucar has joined #ruby
<workmad3> shevy: yes
bweston92 has quit [Quit: Leaving]
marr has joined #ruby
<workmad3> shevy: was that purely so you could do DATA[0] = i, avoiding a warning about re-assigning a constant? :)
juanpaucar has quit [Remote host closed the connection]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
MatthewsFace has joined #ruby
zenith_ has quit [Ping timeout: 244 seconds]
christiandsg has joined #ruby
Tuxero has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Remote host closed the connection]
troyready has quit [Remote host closed the connection]
unicodeveloper has joined #ruby
sinkensabe has joined #ruby
serivich has joined #ruby
leat1 has quit [Ping timeout: 272 seconds]
aiguu has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thiagovsk has joined #ruby
aclearman037 has joined #ruby
MatthewsFace has quit [Ping timeout: 246 seconds]
leat1 has joined #ruby
troyready has joined #ruby
christiandsg has quit [Ping timeout: 252 seconds]
zorak8 has joined #ruby
<Senjai> question, how does Integer() work? I know integer doesn't have a new method. And I've always just used it, but I'm curious
<Senjai> How SomeClass() works
<apeiros> it's Kernel#Integer
<apeiros> it's just a normal method, like require.
<apeiros> the only "oddity" is that it starts with a capital letter and has the same name as a class.
<godd2> Oh THAT'S how that works. I always wondered.
sinkensabe has quit [Ping timeout: 246 seconds]
timonv has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Remote host closed the connection]
leat1 has quit [Ping timeout: 252 seconds]
<godd2> >> class Dog; end; module Kernel; def Dog; Dog.new; end; end; Dog()
<eval-in_> godd2 => #<Dog:0x41887f20> (https://eval.in/300082)
mary5030 has joined #ruby
leat1 has joined #ruby
<godd2> Oh I guess you don't have to go into Kernel, but that's still cool
<apeiros> kernel is just the consistent place to put it
<jhass> another instance you may know is Nokogiri.HTML()
<apeiros> all "global" functions are
jenrzzz has quit [Ping timeout: 255 seconds]
veduardo_ has joined #ruby
veduardo_ has quit [Client Quit]
zenith_ has joined #ruby
lemur has quit [Remote host closed the connection]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
delianides has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
GnuYawk has joined #ruby
deric_skibotn has joined #ruby
aiguu has quit [Ping timeout: 264 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SOLDIERz_ has quit [Quit: Be back later ...]
psychopath_mind has joined #ruby
dseitz has joined #ruby
Limix has joined #ruby
zenith_ has quit [Ping timeout: 246 seconds]
Limix has quit [Client Quit]
danjordan has quit [Quit: danjordan]
werelivinginthef has joined #ruby
<shevy> workmad3 I think so
<shevy> not sure how to disable the warning message
tkuchiki has quit [Read error: Connection reset by peer]
<shevy> it seems to work fine with @
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
livingstn has joined #ruby
<shevy> the changed code works fine http://pastie.org/10023479
ndrei has joined #ruby
Wolland has quit []
<godd2> shevy if you set $VERBOSE to nil, you won't get the warning about an existing constant
unicodeveloper has quit [Ping timeout: 264 seconds]
Notte has joined #ruby
<godd2> though I don't know all the consequences of doing that, so I suggest you research it
<shevy> the problem is that I have to re-set it lateron right?
jenrzzz has joined #ruby
Wulf has joined #ruby
<Wulf> hi
<shevy> hi Wulf the wol
<Wulf> could you please point me at the specifcation what <%= <%- etc. mean in ERB?
<shevy> *wolf
krz has quit [Quit: WeeChat 1.0.1]
<Wulf> shevy: if I'm a wolf, then you're a sheep. That okay with you?
<godd2> shevy well you dont *have* to unless you want what $VERBOSE normally gives you
momomomomo_ has joined #ruby
<godd2> >> $VERBOSE
<eval-in_> godd2 => false (https://eval.in/300085)
MatthewsFace has joined #ruby
<godd2> lemme look it up in the pickaxe book
<jhass> shevy: the instance variable is the correct solution, reassigning a constant is not
piotrj has quit [Remote host closed the connection]
contradictioned_ is now known as contradictioned
<shevy> Wulf I am a shuup
krz has joined #ruby
<shevy> godd2 cool... $VERBOSE defaults to false?
dmcnabb has quit [Quit: Leaving.]
<shevy> huh
<shevy> irb says nil
<shevy> strange... running it from a .rb file it also outputs false
<godd2> shevy yes. if it's nil, you wont get any warnings and if its true youll get extra info during runtime from some libraries. if set to nil, Object#warn wont output either so keep that in mind if you're relying on that
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
<godd2> shevy what version of Ruby did you just run irb in?
jenrzzz has quit [Ping timeout: 250 seconds]
tohsig has joined #ruby
MasterPiece has quit [Quit: Leaving]
<Senjai> apeiros: Thanks for answering :) Just sat down again
<apeiros> Senjai: hm?
delianides has quit [Remote host closed the connection]
<shevy> godd2 ruby 2.2.1p85 (2015-02-26 revision 49769) [i686-linux]
delianides has joined #ruby
ebbflowgo has joined #ruby
<Senjai> apeiros: You answered my question and I didnt say thanks :P
<Senjai> about Integer
<godd2> shevy: that's odd. It should be false by default, not nil
<n80> Hey, can anyone explain to me what happens under the hood when you do something like “Hello #{world}” is to_s just called on world?
<apeiros> Senjai: ah, you're welcome
<shevy> godd2 aaaaaah
<Wulf> jhass: thanks
<hoelzro> n80: let's do an experiment
<shevy> godd2 I think I set it for IRB somewhere
x1337807x has joined #ruby
<shevy> it is false from a pure small .rb file
DerisiveLogic has quit [Ping timeout: 252 seconds]
<godd2> shevy oh lol
x1337807x has quit [Max SendQ exceeded]
<n80> hoelzro: alrighty!
<hoelzro> >> class Test def method_missing(name) name.to_s end end puts "Hello #{Test.new}"
<eval-in_> hoelzro => /tmp/execpad-4668eb98ba54/source-4668eb98ba54:2: syntax error, unexpected keyword_def, expecting '<' or ';' or '\n' ... (https://eval.in/300087)
<hoelzro> grrr
<shevy> I think it was because I require like 200 or so gems in my irbrc and some were annoying me when I ran in warning -w mode
<hoelzro> >> class Test ; def method_missing(name) name.to_s end ; end ; puts "Hello #{Test.new}"
<eval-in_> hoelzro => Hello #<Test:0x40ddbf7c> ... (https://eval.in/300088)
jespada has quit [Ping timeout: 244 seconds]
<hoelzro> hmm, what'd I do wrong?
<shevy> the startup time of my irb is comparable to jvm startup time :D
x1337807x has joined #ruby
Megtastique has quit []
<godd2> shevy if you run ruby with -W0 ruby will set $VERBOSE to nil for you
<shevy> cool
<r3dkinG> 200 gems?
<sweeper> not enough imo
baroquebobcat has joined #ruby
<hoelzro> oh, I see
gaussblurinc1 has joined #ruby
<hoelzro> it probably calls to_s, which Object provides
<hoelzro> >> class Test ; def to_s 'yes!' end ; end ; puts "Hello #{Test.new}"
<eval-in_> hoelzro => /tmp/execpad-be999878da77/source-be999878da77:2: syntax error, unexpected tSTRING_BEG, expecting ';' or '\n' ... (https://eval.in/300090)
<godd2> I think you missed a ; after 'yes!'
<hoelzro> >> class Test ; def to_s 'yes!' ; end ; end ; puts "Hello #{Test.new}"
<eval-in_> hoelzro => /tmp/execpad-ef1ca886fefb/source-ef1ca886fefb:2: syntax error, unexpected tSTRING_BEG, expecting ';' or '\n' ... (https://eval.in/300093)
<hoelzro> eh, whatever
<godd2> and after to_s
<hoelzro> in my irb instance, it *does* invoke to_s
<hoelzro> n80: ^
<n80> hoelzro: cool, thanks! and eval.in is pretty nifty
Stalkr_ has joined #ruby
<hoelzro> no problem!
CustosLimen has quit [Ping timeout: 256 seconds]
delianides has quit [Ping timeout: 252 seconds]
godemper1r has quit [Ping timeout: 250 seconds]
<shevy> r3dkinG yeah something along those lines
<shevy> I require THE WORLD
<r3dkinG> THE WORLD's code
<shevy> though to be honest
<shevy> I think 85% of the gems are useless or I don't really need
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> I just want to have it all ready when I use irb
x1337807x has quit [Client Quit]
<godd2> shevy so just comment them out of your bundle and see if anything breaks
<r3dkinG> chevy, I gotcha :)
<shevy> lazy loading would be cool. like irb starts instantly but also silently continues to load all gems and addons
<hoelzro> isn't that what autoload does?
<r3dkinG> i think the most amout of gems I even included were about 6
shazaum has joined #ruby
godemper1r has joined #ruby
<godd2> hoelzro autoload doesn't load anything til you call it.
<godd2> shevy is saying he wanted stuff to load, just kinda in the background whil he types things out in irb
<hoelzro> ahhhh
<hoelzro> I figured that lazy loading ala autoload would be sufficient for shevy's purposes
<godd2> like if a cashier let you browse the store while they still set up the cash register at opening
lessless has joined #ruby
jeromelanteri has quit [Read error: Connection reset by peer]
<shevy> hoelzro I actually never used autoload. when I read that matz did not like it, I shied away from it :)
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<hoelzro> right, the term "lazy loading" is what led me to think the way I did
Musashi007 has quit [Quit: Musashi007]
arup_r has joined #ruby
<hoelzro> shevy: I think autoloading was probably intended for things like CGI
<wasamasa> autoloading is something for things like emacs
<hoelzro> and because of the action at a distance, it's evil in large systems like a web application
iamjarvo has joined #ruby
<hoelzro> I think that it's ok for something like irb, though
<godd2> rails autoloads nearly everything. but then it's so huge it kinda has to for start times
aiguu has joined #ruby
<jhass> it doesn't actually autoload in prod mode by default iirc
<godd2> I would think it would *not* autoload in dev but autoload by default in prod. But I'm not certain.
<jhass> see link
<godd2> ah there we go
timonv has joined #ruby
enterprisedc has quit [Quit: enterprisedc]
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
ghostpl_ has joined #ruby
juanpaucar has joined #ruby
GnuYawk has quit [Ping timeout: 245 seconds]
RegulationD has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
dANO_ has quit []
Asher has joined #ruby
RTG` has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
dmcnabb has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
shazaum has quit [Quit: Leaving]
RTG` has joined #ruby
pen has joined #ruby
zenith_ has joined #ruby
dmcnabb has quit [Client Quit]
shazaum has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
ghostpl_ has quit [Ping timeout: 256 seconds]
GnuYawk has joined #ruby
serivich has quit [Ping timeout: 255 seconds]
otisZart has joined #ruby
x1337807x has joined #ruby
mrsolo has left #ruby [#ruby]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zenith_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
jonr22 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
Musashi007 has joined #ruby
relix has joined #ruby
sambao21 has joined #ruby
Takle has quit [Remote host closed the connection]
fenak has quit [Ping timeout: 244 seconds]
jonr22 has quit [Ping timeout: 245 seconds]
IrishGringo has quit [Ping timeout: 265 seconds]
<shevy> godd2! you seem to chat too much and code too little!
jenrzzz has quit [Ping timeout: 264 seconds]
speakingcode has joined #ruby
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
bjonnh has joined #ruby
Soda has quit [Read error: Connection reset by peer]
<r3dkinG> chevy: who needs to code when you can use gems? :)
sambao21 has quit [Ping timeout: 256 seconds]
_maes_ has joined #ruby
bjonnh has left #ruby ["WeeChat 1.1.1"]
bjonnh has joined #ruby
Soda has joined #ruby
<bjonnh> Hi. I'm trying to learn how to deploy my app (using docker instances with docker-compose).
<bjonnh> everything works fine
<bjonnh> except that "bundler install" takes ages to complete (even with 12 jobs on a 12 cores machine)
Megtastique has joined #ruby
Synthbread has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bjonnh> is there a way to make that faster, but still be sure that everything is working fine?
<bjonnh> (I could for example keep the bundler cache out of the docker to keep it constant between rebuild of instances)
mistermocha has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
Soda has quit [Read error: Connection reset by peer]
Soda has joined #ruby
wallerdev has joined #ruby
Stalkr_ has joined #ruby
kalusn has joined #ruby
christiandsg has joined #ruby
leat1 has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
mjuszczak has quit []
tjohnson has quit [Quit: Connection closed for inactivity]
fgo has joined #ruby
<hoelzro> bjonnh: could you build an image after installing the dependencies via bundler, and then commit that as an image?
Soda has quit [Read error: Connection reset by peer]
piotrj has joined #ruby
Soda has joined #ruby
<jhass> bjonnh: make sure too use --deployment to speed up resolution for starters, also make sure to use --without and groups to exclude everything you don't need
<jhass> finally maybe have a look at bundle package to reduce download times
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<jhass> if you end up using bundle package also check --local to block out network requests completely
<bjonnh> hoelzro: I could also do that yes, that's true
mjuszczak has joined #ruby
Beliq has joined #ruby
<bjonnh> jhass: network is really fast, its really building that takes time
christiandsg has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
iamjarvo has joined #ruby
<jhass> well, other than reducing the amount of gems to install there's not much you can do ;)
<jhass> except building in a tmpfs I guess
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat1 has joined #ruby
Soda has quit [Read error: Connection reset by peer]
lanemeyer has quit [Ping timeout: 265 seconds]
juanpablo__ has quit [Quit: (null)]
momomomomo has joined #ruby
Soda has joined #ruby
juanpablo__ has joined #ruby
juanpaucar has quit [Remote host closed the connection]
<hoelzro> isn't docker pretty slow at FS stuff?
Synthbread has quit [Quit: Leaving]
Soda has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.0.1]
<hoelzro> I think the new overlayfs storage driver is supposed to really help
Soda has joined #ruby
mikepack has joined #ruby
<bjonnh> hoelzro: doesn't feel that slow ;) Its still faster than doing it in VMs
<bjonnh> at least in my case
<hoelzro> I mean compared to native
<bjonnh> jhass: I think I'll just share the bundler folder for now
Soda has quit [Read error: Connection reset by peer]
<jhass> bjonnh: if you can guarantee same ABI and architecture among the shared stuff...
Soda has joined #ruby
kalusn has quit [Remote host closed the connection]
<bjonnh> jhass: yeah its basically on the same server. Just that I may have a development version and a production version
<bjonnh> but I can give them different folders
Soda has quit [Read error: Connection reset by peer]
<jhass> just saying there's a reason that bundle package exists ;)
<jhass> and that it doesn't just zip up vendor/bundle
mistermocha has quit [Ping timeout: 256 seconds]
<bjonnh> yep, that's why I want to be able whenever I want to build everything from scratch
Soda has joined #ruby
zorak8 has quit [Ping timeout: 252 seconds]
<bjonnh> but also make things faster when I know that nothing changed there
juanpablo__ has quit [Ping timeout: 246 seconds]
adaedra has left #ruby ["be back later"]
zorak8 has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 246 seconds]
joonty has quit [Quit: joonty]
piotrj has quit [Remote host closed the connection]
tcrypt has joined #ruby
zenith_ has joined #ruby
undeadaedra has joined #ruby
doodlehaus has joined #ruby
cpt_yossarian has quit [Ping timeout: 244 seconds]
auraka has joined #ruby
n008f4g_ has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
Channel6 has quit [Quit: Leaving]
dfinninger has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
EllisTAA has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<EllisTAA> hello. i searched the web for “what does all software have in common” i’m trying to find out the building blocks of software and the software process. can anyone recommend a source on this info or suggest a better search
shazaum has quit [Quit: Leaving]
<undeadaedra> bugs
<undeadaedra> they all have bugs.
<undeadaedra> :)
bim has joined #ruby
Aristata has joined #ruby
<bjonnh> +1
tvw has quit []
tvw has joined #ruby
ki0 has quit [Remote host closed the connection]
<Aristata> I am trying to user a method that takes arguments like this: method(variable, variable, :some => :thing), but when I call it like this: method(variable, variable, some_hash_variable) I am getting a syntax error, how do I move forward?
ramfjord has joined #ruby
<jhass> Aristata: show your real code
<Aristata> ok
maximski has quit [Read error: Connection reset by peer]
juanpablo__ has joined #ruby
B1n4r10 has joined #ruby
<undeadaedra> and what does the to_html function looks like ?
jottr has joined #ruby
Notte has quit [Remote host closed the connection]
juanpablo__ has quit [Read error: Connection reset by peer]
<undeadaedra> ah no, it’s url_for that seems to derp
<jhass> Aristata: yes that doesn't, leaving of the {} for the hash is only valid when the hash is the last parameter
juanpablo__ has joined #ruby
RegulationD has joined #ruby
jespada has joined #ruby
B1n4r10 has quit [Max SendQ exceeded]
<jhass> url_for({:controller => controller_name, :action => action_name}, report.to_parameters)
mary5030 has quit [Remote host closed the connection]
<undeadaedra> url_for only takes one argument
Soda has quit [Read error: Connection reset by peer]
<undeadaedra> so you’ll have to merge the options hashes
juanpaucar has joined #ruby
juanpaucar has quit [Remote host closed the connection]
<Aristata> jhass: Ahhh, that makes complete sense, not sure why I didn't spot it
<Aristata> Thanks guys
Soda has joined #ruby
mikecmpbll has joined #ruby
tvw has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
Soda has quit [Read error: Connection reset by peer]
<EllisTAA> undeadaedra: thanks
ndrei has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
juanpablo__ has quit [Client Quit]
rodfersou has quit [Remote host closed the connection]
Soda has quit [Read error: Connection reset by peer]
<undeadaedra> that was mainly a joke, eh
SOLDIERz_ has joined #ruby
Soda has joined #ruby
Aristata has quit [Quit: Leaving.]
rodfersou has joined #ruby
Soda has quit [Read error: Connection reset by peer]
wottam has joined #ruby
Soda has joined #ruby
jenrzzz has joined #ruby
zenith_ has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
scripore has joined #ruby
Soda has quit [Read error: Connection reset by peer]
beginner has joined #ruby
baweaver has joined #ruby
yourwebdevguy has joined #ruby
yourwebdevguy has joined #ruby
Soda has joined #ruby
astrobunny has joined #ruby
Soda has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
Soda has joined #ruby
enterprisedc has joined #ruby
Soda has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has joined #ruby
jobewan has joined #ruby
Takle has quit [Remote host closed the connection]
beginner has quit [Quit: Leaving]
beginner has joined #ruby
beginner has quit [Changing host]
beginner has joined #ruby
niKeITA has joined #ruby
niKeITA has quit [Client Quit]
razrunelord has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex88 has quit []
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostpl_ has joined #ruby
beginner has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
govg has joined #ruby
IrishGringo has joined #ruby
Hijiri has joined #ruby
iliketurtles has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 256 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
ai7 has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
<wasamasa> EllisTAA: it solves a problem
fryguy9 has quit [Quit: Leaving.]
<EllisTAA> wasamasa: i was thinking more along the lines of, there a directory structure, there is configuration, etc
baweaver has quit [Remote host closed the connection]
ai7 has left #ruby ["WeeChat 0.4.3"]
<wasamasa> EllisTAA: nope
ghostpl_ has quit [Ping timeout: 265 seconds]
zenith_ has quit [Remote host closed the connection]
<wasamasa> EllisTAA: read enough code and you'll realize that the majority of it is crap
jenrzzz has quit [Ping timeout: 245 seconds]
juanpablo__ has joined #ruby
phale|afk has joined #ruby
<EllisTAA> if i read and understand all of guides.rubyonrails.org do you think ill know most of rails?
<phale|afk> EllisTAA: #rubyonrails
<phale|afk> for main rails discussion
<EllisTAA> oops
<EllisTAA> ty
tvon has joined #ruby
SOLDIERz_ has quit [Quit: Be back later ...]
unicodeveloper has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
juanpablo__ has quit [Ping timeout: 250 seconds]
unicodeveloper has quit [Client Quit]
banister has joined #ruby
dukz has quit [Remote host closed the connection]
<phale|afk> apeiros_: you should append this to the topic: "|| For Ruby On Rails discussion go to #rubyonrails"
<phale|afk> to avoid ambiguity with ruby and ruby on rails
tjbiddle has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
lilVaratep has joined #ruby
davedev24_ has quit [Ping timeout: 264 seconds]
Pupeno has quit [Quit: Leaving...]
OrbitalKitten has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
tjbiddle has quit [Client Quit]
<ducklobster> I am making a Kernel#system call (for better or worse...) and it is returning nil, which means command execution failed
<ducklobster> I can't seem to see on RDoc how I can further inspect this scenario
fgo has quit [Quit: WeeChat 1.1.1]
<ducklobster> if it returns false you can probe $? for the error status but I don't see anything for when it returns nil
<ducklobster> any ideas?
justin_pdx has joined #ruby
davedev24_ has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
<phale|afk> ducklobster: I have an excellent idea
<phale|afk> Make it not return nil
phale|afk is now known as phale
Musashi007 has joined #ruby
mikepack has quit [Ping timeout: 246 seconds]
frobs has quit [Quit: Konversation terminated!]
EllisTAA has quit [Quit: EllisTAA]
doodlehaus has quit [Ping timeout: 272 seconds]
razrunelord has joined #ruby
razrunelord has quit [Remote host closed the connection]
eat_multi has quit [Ping timeout: 272 seconds]
terlar has quit [Ping timeout: 244 seconds]
EllisTAA has joined #ruby
CustosLimen has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fryguy9 has joined #ruby
roolo has joined #ruby
fandi has joined #ruby
amundj has joined #ruby
fandi has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
DerisiveLogic has joined #ruby
<ducklobster> make the Kernel#system not return nil
<ducklobster> ?
<ducklobster> not sure I follow
jlast has joined #ruby
unicodeveloper has joined #ruby
mikepack has joined #ruby
Rapier- has joined #ruby
<wallerdev> it really depends what command youre running
<wallerdev> you might consider using popen3
<wallerdev> and listening on stderr
<phale> Make the call to Kernel's "system" method not return the value nil.
<wallerdev> for any error messages?
sevvie has quit [Remote host closed the connection]
sevvie has joined #ruby
astrobunny has quit [Remote host closed the connection]
<ducklobster> the Kernel#system call outputs both STDOUT and STDERR (it just doesn't capture them)
<ducklobster> and I am not suppressing them either in the call
<wallerdev> well not all commands output error messages when they dont work
ghostmoth has quit [Quit: ghostmoth]
<wallerdev> you really should mention what command you're trying to run through shelll
Tinfoilhat_ has joined #ruby
<phale> ducklobster: Here's what I think
bradleyprice has quit [Remote host closed the connection]
<phale> It may be an invalid command.
<phale> Post your code?
<phale> at least the call?
<wallerdev> like if you ran system("weriojwerotireiongteirotn") its just gonna return nil haha
<ducklobster> sure, will do
<ducklobster> i should have clarified
mikepack has quit [Read error: Connection reset by peer]
aiguu has quit [Quit: WeeChat 1.1.1]
<ducklobster> this is on and off behavior
ndrei has quit [Ping timeout: 256 seconds]
<ducklobster> it works for the most part
<ducklobster> but ive just seen it display different behavior
<ducklobster> and then i run the command outside of ruby and it works
iliketur_ has joined #ruby
<phale> just post the snippet
<ducklobster> one sec while i grab the line
Takle has joined #ruby
<apeiros> phale: Thank you for your suggestion, but I'm not sure about that
<phale> apeiros: People regularly seem to come here, seeking for rails help or books on rail.
mikepack has joined #ruby
iliketurtles has quit [Ping timeout: 245 seconds]
leat1 has quit [Quit: leat1]
dfinninger has joined #ruby
<shevy> ducklobster what you describe about ffmpeg strikes me as inaccurate
<apeiros_> phale: sure. but I doubt those people read the topic.
<phale> apeiros_: eh your right
<apeiros_> we could make an A/B test :)
hgl has quit [Ping timeout: 245 seconds]
<apeiros_> count occurrences over e.g. a week with and without
<shevy> in general though, I would first build the command-string, and then send it to something like: puts ffmpeg_cmd; result = `#{ffmpeg_cmd}`
<phale> get a bot to do that
chthon has quit [Ping timeout: 245 seconds]
<phale> if irc_chat_message.include? "Rails" count += 1 end
<shevy> you can check beforehand whether a file exists or not, in ruby, through: if File.exist? 'file_here.txt'
razrunelord has joined #ruby
<shevy> ffmpeg is weird about the position of arguments
maximski has joined #ruby
chinmay_dd has joined #ruby
maximski has quit [Max SendQ exceeded]
tskogberg has quit [Ping timeout: 244 seconds]
hgl has joined #ruby
n80 has left #ruby [#ruby]
<ducklobster> shevy: thats probably a better approach, however, seems unrelated to my problem
maximski has joined #ruby
<ducklobster> shevy: that command runs fine *most* of the time and then recently does not
<ducklobster> with no outputs from ffmpeg at all
<phale> ducklobster: what linux
<shevy> my ffmpeg works perfectly fine from ruby
maximski has quit [Max SendQ exceeded]
<shevy> ffmpeg version 2.6 Copyright (c) 2000-2015 the FFmpeg developers
<shevy> built with gcc 4.9.2 (GCC)
<ducklobster> AWS AMI
<phale> what is filename
Guest95782 has joined #ruby
<ducklobster> variable set earlier
<phale> what does that variable contain
<shevy> a filename :D
<phale> right
<ducklobster> yup ;)
<phale> so just like
<phale> filename = "test.txt"
maximski has joined #ruby
tskogberg has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<phale> you have a typo
dfinninger has quit [Ping timeout: 255 seconds]
<phale> hello doesn't exist, simple
<ducklobster> correct
<ducklobster> but that doesnt cause a command failure (return of nil)
<shevy> so what is the full line
<phale> i'm pretty sure system returns nil when STDERR outputs something
<shevy> before you send it
unicodeveloper has quit [Ping timeout: 256 seconds]
<shevy> paste it here
<shevy> without those #{}
<havenwood> ducklobster: Just an aside, but do `system 'ls', '-l'` instead of `system 'ls -l'` so you run the command directly with no shell.
<eam> actually both won't use a shell
dfinninger has joined #ruby
<eam> though the advice to pre-tokenize is still good :D
<ducklobster> havenwood: great tip thanks
<ducklobster> shevy: you mean print the string first and paste it here?
<ducklobster> also:
<shevy> yes ducklobster show the string
<ducklobster> system returns true if the command gives zero exit status, false for non zero exit status. (RDoc)
<phale> ruby is bloated
<ducklobster> echo $? 1
<arup_r> havenwood: need one rvm help
<ducklobster> echo $? => 1*
<ducklobster> gimme a minute for the string
<shevy> puts string; exit
<shevy> you don't need a minute for that!
Rayford has quit [Remote host closed the connection]
<phale> ruby has some methods that you shouldn't "use"
<ducklobster> the thing that initiates this requires hardware :-/
<ducklobster> and no test has been written yet :-x
<phale> but ruby is a rolling release
<ducklobster> shame on me
<phale> i don't see why they dont remove those things and just keep it bloated like that
sevvie has quit [Ping timeout: 265 seconds]
<shevy> phale which methods scare you?
<havenwood> eam: *: system 'ls', '-l', '*'
<arup_r> I am looking for something likw, when I will CD into project directory.. the related gemset and ruby version will be selected automatically.. is this possible ?
doodlehaus has joined #ruby
<jhass> phale: http://semver.org/
<phale> shevy: dunno, i remember there are some methods that are "bad"
<eam> havenwood: yeah, but system "ls -l" won't invoke a shell
<phale> and shouldn't be used
<havenwood> eam: i failed at example
<eam> :D
varunwachaspati has quit [Quit: Leaving]
unicodeveloper has joined #ruby
decoponio has quit [Quit: Leaving...]
<shevy> it's the , havenwood
<shevy> they confuse you
<jhass> arup_r: rvm should do that
<shevy> system 'ls -l *' is so much simpler to type
jenrzzz has joined #ruby
<eam> system 'ls -l *' will invoke a shell
<jhass> arup_r: just have a .ruby-version and a .ruby-gemset file there
<arup_r> npt doing... i need type it every time
<eam> it depends on the characters in the string
tskogberg has quit [Ping timeout: 272 seconds]
<havenwood> arup_r: .ruby-version file for the win
<arup_r> how to set up dude ?
<jhass> arup_r: do you know how to create files?
<havenwood> arup_r: echo 2.2.1 > .ruby-version
<havenwood> arup_r: ^ get what that does?
<arup_r> yes.. jhass ... using cat command
<shevy> dunno why you paste a single line external ;)
<shevy> /bin/ffmpeg -i media/vO-IqwQpsP56LktZF-MJjg.ts -y -acodec copy -vcodec copy media/vO-IqwQpsP56LktZF-MJjg.mp4
<jhass> arup_r: then you know "how to setup dude"
zzing has joined #ruby
<shevy> seems perfectly valid to me if the file exists; you can check before running a command. if ffmpeg randomly chokes on stuff and randomly otherwise works then I'd just compile a newer ffmpeg
<phale> "<zyxwvuts> hey, have you finally accepted that gets.chomp is shit and the people you learn from are hipsters who don't know how to program? ;-"
<shevy> phale hey that is the guy who uses C right?
<phale> yeah
<shevy> phale does he have any projects to showcase?
<jhass> phale: what's up with the passive aggressiveness?
<phale> yes on github
<shevy> ohhh from Australia
pen has quit []
sevvie has joined #ruby
<shevy> cc -Wall -Wextra -pedantic -I/home/daniel/src/termbox/src -I/home/daniel/src/nev/include -DGaptype="unsigned long" -I. -c -o src/gap.o src/gap.c
<eam> what's wrong with gets.chomp?
<shevy> I can't compile his IRC stuff
yfeldblum has joined #ruby
<shevy> perhaps because he has hardcoded paths
<jhass> eam: EOF
<phale> shevy: yeah it's fucked
scripore has joined #ruby
<shevy> I have no /home/daniel here
starless has joined #ruby
<phale> open an issue and tell that to him
<shevy> ok
<havenwood> shevy: I guess that's an issue non-hipsters have.
j416 has quit [Ping timeout: 245 seconds]
<shevy> yeah
<phale> look at his other shit
<phale> seems like nice C to me
<shevy> the hipsters know the basics
zzing has quit [Client Quit]
<shevy> the non-hipsters use hardcoded paths
<jhass> phale: seriously though, what's up with you transporting that shit to this channel all the time?
<havenwood> hipsters know better
maximski has quit []
j416 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<eam> jhass: I mean, what's wrong with that, though?
<phale> jhass: creativity
<jhass> eam: returns nil on EOF
<jhass> phale: ?
<havenwood> chomp not the nil
<eam> yeah but wouldn't you want that?
tskogberg has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
<jhass> eam: ruby -e "gets.chomp" then press Ctrl+D
<eam> jhass: yeah I'm aware
<eam> I don't see the problem though
<havenwood> but rather than writing some nice idiomatic code that uses truthyness to chomp when appropriate, blame hipsters for your problems
yfeldblum has quit [Remote host closed the connection]
<jhass> eam: well, it frequently trips people, gets.chomp is a common pattern
iliketurtles has joined #ruby
<havenwood> calling stuff on nil seems commonplace, period
<eam> so gets.chomp rescue "" if you don't want to handle the exception?
<havenwood> why you no respond, nil!?
<eam> otherwise a raise for an unforseen circumstance seems fine
<jhass> -1 for inline rescue
<eam> blah :)
<eam> inline rescue is fine
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<phale> lol
<jhass> and rescue to handle in general seems like control flow with exceptions to me
<phale> i have to go through all this hassle just to chomp a newline
ndrei has joined #ruby
<havenwood> s = gets && s.chomp
<eam> phale: you do in pretty much every language though
<eam> that's why variables exist
<phale> puts (s ||= '').chomp!
leat has joined #ruby
<jhass> >> ''.chomp!
<eval-in_> jhass => nil (https://eval.in/300115)
sevvie has quit [Ping timeout: 264 seconds]
<havenwood> wheee
<jhass> ^ nope
dopie has joined #ruby
uri_ has quit [Ping timeout: 252 seconds]
<phale> (>> (nil ||= '').chomp!
<phale> oops
<havenwood> nil
gfawcettpq has quit [Ping timeout: 246 seconds]
<phale> >> (nil ||= '').chomp!
<eval-in_> phale => /tmp/execpad-1d97d1459da2/source-1d97d1459da2:2: Can't assign to nil ... (https://eval.in/300116)
<phale> nvm
n008f4g_ has quit [Ping timeout: 264 seconds]
iliketur_ has quit [Ping timeout: 255 seconds]
<eam> a bigger problem imo is \n being hardcoded into stuff such that $/ and $\ don't really work everywhere
<jhass> phale: I still don't understand why you frequently transport that FUD into this channel though
<phale> the same reason you go on this IRC everyday
sevvie has joined #ruby
<phale> and i
<arup_r> havenwood: thanks Dude! This command is helpful --- rvm --ruby-version use 1.9.3@my_apprvm --ruby-version use 1.9.3@my_app
<jhass> phale: let's pretend I don't know it
<arup_r> jhass: &&
<phale> jhass: the reason is; nothing
<phale> there is no reason
OrbitalKitten has joined #ruby
<jhass> phale: may I ask you to stop it then?
chinmay_dd_ has joined #ruby
<jhass> it's very annoying
<phale> apeiros: is it okay'
<havenwood> arup_r: RVM has commands to help automate what would be simple bash commands. Suga.
<arup_r> humm
<arup_r> Now I don't need to type any more Yayy!!1
juanpablo__ has joined #ruby
davedev24_ has quit [Ping timeout: 251 seconds]
davedev24_ has joined #ruby
jottr has joined #ruby
dopie has quit [Remote host closed the connection]
dEPy has quit [Quit: (null)]
kirun has joined #ruby
chinmay_dd has quit [Ping timeout: 255 seconds]
Musashi007 has quit [Quit: Musashi007]
phale has quit [Quit: Leaving]
chinmay_dd_ is now known as chinmay_dd
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpaucar has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 265 seconds]
ghostpl_ has joined #ruby
<jhass> I still can't decide between elaborate troll, socially incompetent or a mixture
<shevy> you can play all roles jhass!
christiandsg has joined #ruby
<havenwood> early on I thought troll, but now... I dunno
<shevy> I think phale is more of a clown
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paulfm has quit [Ping timeout: 244 seconds]
<shevy> not sure how funny
<jhass> mmh, did somebody built something like alis for users? wonder what other channels they're in
<shevy> but jhass chatting with phale, now *that* is funny
paulfm has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
<jhass> havenwood: my favorite is 2015-03-08 16:24:44 phale i've coded in C for 5 years
<shevy> lol
arup_r has quit [Ping timeout: 252 seconds]
christiandsg has quit [Ping timeout: 252 seconds]
Outlastsheep is now known as zz_Outlastsheep
c355E3B has joined #ruby
jlast has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
Takle has quit [Remote host closed the connection]
c355E3B has quit [Client Quit]
ghostpl_ has quit [Ping timeout: 245 seconds]
atomi has quit [Quit: brb]
ptrrr has joined #ruby
rbennacer has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
IrishGringo has quit [Ping timeout: 265 seconds]
atomi has joined #ruby
sambao21 has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
tgunr has joined #ruby
Rapier- has quit [Ping timeout: 252 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest95782 has quit [Ping timeout: 252 seconds]
PaulCapestany has quit [Quit: .]
maximski has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
<bradland> oh man
Rapier- has joined #ruby
PaulCapestany has joined #ruby
razrunelord has quit [Remote host closed the connection]
<bradland> his non-answers about type boundaries were great reading
chinmay_dd has quit [Quit: Leaving]
ismaelga has quit [Remote host closed the connection]
<bradland> <bradland> what's the upper boundary of unsigned long?
<bradland> <phale> i have no idea
maximski has quit [Client Quit]
Notte has joined #ruby
mjuszczak has quit []
nfk|laptop has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
mjuszczak has joined #ruby
Takle has joined #ruby
cpt_yossarian has joined #ruby
jtperreault has quit [Quit: WeeChat 0.4.1]
Notte has quit [Remote host closed the connection]
towski_ has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has quit []
sevvie has joined #ruby
baweaver has joined #ruby
<atmosx> >> '01/12/15'.gsub('/', '-').reverse
<eval-in_> atmosx => "51-21-10" (https://eval.in/300117)
gaussblurinc1 has quit [Quit: Leaving.]
<atmosx> >> '01/12/15'.split('/').reverse.join('-')
<eval-in_> atmosx => "15-12-01" (https://eval.in/300118)
<atmosx> >> '01/12/2015'.split('/').reverse.join('-')
<eval-in_> atmosx => "2015-12-01" (https://eval.in/300119)
adriancb has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
paradoja has left #ruby ["Killed buffer"]
<jhass> atmosx: irb broken?
<atmosx> jhass: I've read today
<atmosx> jhass: nah works fine
<sgambino> oops nm... demo is at 4 not 3:30 ;)
<atmosx> jhass: I was reading this article earlier today, it's awesome really.
<jhass> oh it's an article?
webmstk has joined #ruby
<shevy> better an article than a testicle
wallerdev has quit [Quit: wallerdev]
<atmosx> jhass: well yes, article == post.
Wolland has joined #ruby
<atmosx> jhass: I was referring to the HN post truth to be told, it's a comment but could easily be a post :-)
yfeldblum has joined #ruby
<jhass> I don't read HN and where I got it from didn't reference :)
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
Leaf__ has joined #ruby
blizzy has joined #ruby
Leaf__ is now known as Guest50773
blizzy is now known as _blizzy_
duncannz has joined #ruby
jespada has quit [Ping timeout: 256 seconds]
jespada has joined #ruby
fantazo has joined #ruby
baweaver has joined #ruby
<atmosx> jhass: oh that's too bad, HN has great post-listing IMHO. I like the community there.
<atmosx> also lots of really smart people.
havenwood has quit [Remote host closed the connection]
last_staff has joined #ruby
astrobunny has joined #ruby
<jhass> I'd need to adjust my filter bubble, too much work ;)
thumpba has joined #ruby
<atmosx> jhass: how much time do you spend reading random online stuff?
<atmosx> daily
<jhass> mmh, that's not consistent
leat has quit [Ping timeout: 246 seconds]
<atmosx> I see
<atmosx> gonna grabsomething to eat. bbl
astrobunny has quit [Ping timeout: 264 seconds]
blueOxigen has quit [Ping timeout: 256 seconds]
thumpba_ has quit [Ping timeout: 256 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thumpba has quit [Client Quit]
startupality has joined #ruby
bluOxigen has joined #ruby
Synthbread has joined #ruby
crazydiamond has joined #ruby
josephleon has joined #ruby
leat has joined #ruby
<josephleon> How do I get an invite to #rails?
spider-mario has joined #ruby
<josephleon> is that the main RoR IRC channel?
<jhass> josephleon: the channel is #RubyOnRails and you don't need one
<josephleon> jhass thanks
startupality has quit [Quit: startupality]
zachrab has joined #ruby
asmodlol has joined #ruby
dfinninger has quit [Remote host closed the connection]
gaussblurinc1 has joined #ruby
Guest50773 has quit [Quit: Leaving]
andikr has quit [Remote host closed the connection]
meschi has joined #ruby
jottr has joined #ruby
baykovr has joined #ruby
jespada has quit [Ping timeout: 246 seconds]
dfinninger has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
baweaver has quit [Remote host closed the connection]
baykovr has quit [Client Quit]
nb_bez___ has joined #ruby
xlogic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 252 seconds]
scripore has quit [Quit: This computer has gone to sleep]
nfk|laptop has quit [Quit: yawn]
christiandsg has joined #ruby
scripore has joined #ruby
sambao21 has joined #ruby
baweaver has joined #ruby
<apeiros_> jhass: what have you & phale been talking about before? didn't quite get it from scrollback
<makerop> anyone happen to know what deps Im missing on ubunut, to install json for ruby 2.0?
jespada has joined #ruby
jtperreault has joined #ruby
christiandsg has quit [Ping timeout: 252 seconds]
towski_ has quit [Read error: Connection reset by peer]
<apeiros_> makerop: when you install it, it'll tell you
iamjarvo has joined #ruby
<makerop> Ive done some googling
x1337807x has joined #ruby
<makerop> but I cant find the package I need to install
towski_ has joined #ruby
<jhass> apeiros_: I just asked them to stop copy pasting stupid people from other channels
Synthbread has quit [Ping timeout: 252 seconds]
<jhass> makerop: uh, you seem to lack build-essential ?
jlast_ has quit [Read error: Connection reset by peer]
<makerop> it's there
<makerop> for sure
Dolphi has joined #ruby
<jhass> mmh, yeah, why would it do ./install, that's weird
<apeiros_> jhass: ok, somehow missed that in the logs, but I trust your judgment. if you think a kick is in order, ping me.
werelivinginthef has joined #ruby
<makerop> yea
jlast has joined #ruby
<jhass> apeiros_: nah, it was just the old "authority" thingy, you know
<jhass> when they have no more arguments... ;)
<sweeper> you will respect my authoritah
<apeiros_> sweeper: hi there, cartman
jespada has quit [Ping timeout: 252 seconds]
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
maximski has joined #ruby
<jhass> so sad they only do half the episodes per year now :(
mikepack has quit [Remote host closed the connection]
werelivinginthef has quit [Ping timeout: 244 seconds]
mitchellhenke has quit [Read error: Connection reset by peer]
r3dkinG has quit [Quit: Konversation terminated!]
jespada has joined #ruby
maximski has quit [Client Quit]
unicodeveloper has quit [Quit: unicodeveloper]
mitchellhenke has joined #ruby
mitchellhenke has quit [Client Quit]
towski_ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
wallerdev has joined #ruby
iliketurtles has joined #ruby
bradleyprice has joined #ruby
mistermocha has joined #ruby
yqt has joined #ruby
ponga has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
Tuxero has quit [Quit: Tuxero]
bluOxigen has quit [Ping timeout: 265 seconds]
soulcake has quit [Changing host]
soulcake has joined #ruby
iamninja has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros_> jhass: gotta admit, people who get held up by such trivial problems fascinate me
<apeiros_> "omigosh gets returns the newline too!!! and it's so troublesome!!!" d'uh, just write a method which does not return the newline…
Takle has joined #ruby
mistermocha has quit [Ping timeout: 245 seconds]
SOLDIERz_ has joined #ruby
<apeiros_> I mean, writing that method probably takes less time than all the whining
patrick99e99 has quit [Ping timeout: 255 seconds]
<jhass> apeiros_: maybe, not what annoys me though
dfinninger has quit [Remote host closed the connection]
jespada has quit [Ping timeout: 245 seconds]
<jhass> trying to get a solution through transporting FUD into hear, that does
<jhass> *here
patrick99e99 has joined #ruby
MrRobinhood5 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<jhass> and then that shitty hiding behind someone else's statements through that
mitchellhenke has joined #ruby
wottam has joined #ruby
<pipework> zenspider: What was the language you liked the most right now from your talk?
<pipework> I want to investigate for some fun.
wottam has quit [Client Quit]
EllisTAA has quit [Quit: EllisTAA]
rajeshchawla has joined #ruby
rdark has quit [Quit: leaving]
EllisTAA has joined #ruby
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
<MrRobinhood5> Afternoon all, is this channel for discussion of the Ruby package, or the language itself?
<jhass> "the ruby package", because there's only one...
<jhass> MrRobinhood5: ask away ;)
grr_ has joined #ruby
baroquebobcat has joined #ruby
<MrRobinhood5> Well, I have ruby installed and can run some simple programs, was looking for help for language itself.
pietr0 has quit [Quit: pietr0]
<LiquidInsect> Hey all, I have an... interesting... problem and wonder if there's a way to make a Class do something (say, print to the console or log or whatever I have available) whenever a method is defined on it. Anyone know?
<jhass> MrRobinhood5: still, ask away ;)
<undeadaedra> LiquidInsect: respond_to? ?
<undeadaedra> method_defined? ?
<LiquidInsect> basically I'm inheriting a project where I've already found some metaprogramming crimes against nature and want to see where we're defining or redefining things
<LiquidInsect> undeadaedra: well, that works if you know what you're looking for, right?
<undeadaedra> yes, I misread
<LiquidInsect> hoelzro: that sounds like what I want...
<LiquidInsect> yes! thank you
<hoelzro> Module is a treasure trove of useful methods
<LiquidInsect> this is going to be fun... for certain definitions of fun
<undeadaedra> but what if it redefines method_added, eh? :)
<MrRobinhood5> Is Rails the only way to integrate Ruby language into an web application?
<undeadaedra> No
<undeadaedra> You have smaller frameworks like Sinatra or Cuba
startupality has joined #ruby
<undeadaedra> Or, even lower, Rack
<MrRobinhood5> Are those gems?
jespada has joined #ruby
<LiquidInsect> then I fly out to where the previous programmers and teach them an important lesson about programming for the maintainer
<atmosx> MrRobinhood5: they come as gems yes
<undeadaedra> MrRobinhood5: Yes
beneggett has joined #ruby
<undeadaedra> MrRobinhood5: but look at their home pages to see if it’s what you’re looking for
<undeadaedra> There’s Padrino, too
<shevy> long live ruby!
<undeadaedra> ^^
<shevy> MrRobinhood5 you can use good old .cgi too
ottanta has joined #ruby
<jhass> MrRobinhood5: there are tons of web frameworks for ruby
<ottanta> how do I specify the http GET header in ruby, if I'm using open-uri's open("")
<undeadaedra> ottanta: I don’t think you can, open-uri is basic
<ottanta> undeadaedra then what would I use in its place?
<undeadaedra> you may want something more complete, I think there’s a HTTP module in core library
<undeadaedra> or even more complete like curb
jottr has joined #ruby
<undeadaedra> MrRobinhood5: If you’re looking for ruby gems, https://www.ruby-toolbox.com/ and http://awesome-ruby.com/ are good resources
<MrRobinhood5> jhass, thanks, looking into all those 3 right now. Need something simple and small.
<kaleido> curb is spiffy
<jhass> MrRobinhood5: sinatra is by far the most widespread after rails though
jonr22 has joined #ruby
<atmosx> MrRobinhood5: Sinatra is the most common, but the others are good as well.
<atmosx> MrRobinhood5: you familiar with slim or haml?
<ottanta> you totally can, since you can specify open("http://url-here.com", "User-Agent" => "lawl I'm editing headers 1.0")
<ottanta> with open-uri's open
razrunelord has joined #ruby
<MrRobinhood5> undeadaedra, lookin at ruby toolbox, it doesnt have to be pretty, but do need database.
<jhass> MrRobinhood5: there's no need to tie that to the web framework
<undeadaedra> MrRobinhood5: both links are just repositories of existing libraries, you pick what you need
leat has quit [Ping timeout: 246 seconds]
<jhass> MrRobinhood5: do you want an ORM or just plain access?
<undeadaedra> If you go with sinatra or other of the same kind, you’ll have to bring database management yourself though, but there are also gems for that
Rarikon has joined #ruby
razrunelord has quit [Client Quit]
skmp has joined #ruby
Ankhers has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
josephleon has quit [Quit: Leaving...]
<MrRobinhood5> slim / haml : nope, im just a beginner, but I have a need to complete a project
<MrRobinhood5> no ORM
gaussblurinc1 has quit [Quit: Leaving.]
jaequery has joined #ruby
<jhass> MrRobinhood5: then just run the client library of your DB directly or use a thin abstraction like Sequel
<undeadaedra> Sequel <3
Xoro has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 244 seconds]
<atmosx> sequel is awesome
jlast has quit [Remote host closed the connection]
DerisiveLogic has quit [Read error: Connection reset by peer]
<MrRobinhood5> basis of project: users will use application for ordering clothing, items and authorized quantities will be set, need some sort of authentication, and notifications for myself and users. I will use information to complete ordering on a different system.
<atmosx> MrRobinhood5: what do you wanna build anyway? Rails has everything integrated in sinatra you need to glue everything yourself
<kaleido> or you could use a kv store and go the nosql route but i spose thats a use case decision
jonr22 has quit [Ping timeout: 244 seconds]
<MrRobinhood5> atmosx, looking at sql and it seems pretty simple
<undeadaedra> MrRobinhood5: if you’re beginner, Rails may be an easier path though
<jhass> yeah, don't go "nosql" because "it's the thing now"
<MrRobinhood5> atmosx, *sequel
<atmosx> MrRobinhood5: it was meant to be simple actually
<kaleido> do it because sql limits a lot of agility
<jhass> bullshit
<MrRobinhood5> undeadaedra, rails was my first option, there is a lot of docs ive been reading on it
DerisiveLogic has joined #ruby
<kaleido> sql and sotrage, the killer of almost every multi-DC app
<kaleido> storage rather
<kaleido> "i can fail to another data center, but failing back isnt so easy"
godd2 has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
<undeadaedra> I’m making a web application right now in sequel, and I should stay that it is indeed less easy than with rails
jespada has quit [Ping timeout: 244 seconds]
<kaleido> and when you tell them you want to run multiple DCs at the same time, you tend to get blank stares back
<atmosx> MrRobinhood5: truth to be told, for what you wanna do rails might be a good fit. You'll have a working app in no time.
<undeadaedra> ^
<MrRobinhood5> atmosx, undeadaedra, thanks for the links and advice, gonna go back to work on it now
<undeadaedra> rails + devise for the basis
* jhass yet has to see a description of what they want to do
<undeadaedra> ?
paulfm has quit [Quit: Zzzzz...]
<jhass> oh, nvm
<jhass> too much scrollback :P
mistermocha has joined #ruby
keen__________86 has quit [Ping timeout: 245 seconds]
<atmosx> MrRobinhood5: take a look at this app, has most of the things you need (using Sinatra)... https://github.com/atmosx/metro (encrypted passwords, users, sessions, etc.). Rails offers all that, in a much more secure way right out of the box.
dfinninger has joined #ruby
<jhass> maybe go straight into shopify or spree even?
n0vo has joined #ruby
<n0vo> f
relix has joined #ruby
<jhass> g
n0vo has quit [Client Quit]
<wallerdev> h
starless has quit [Quit: Leaving]
<pipework> no
mistermo_ has joined #ruby
<undeadaedra> ok
<atmosx> jhass: spree is a mess (IMHO). Better use a vanilla rails... he has users (which is easy), he needs to create an 'items' view. Following the rails-4 tutorial online he could be up and running in less than a week and have something 'decent'.
<atmosx> actually maybe even a day (long day) if he can catch up.
aclearman037 has quit [Quit: I'm out!]
ghostpl_ has joined #ruby
<MrRobinhood5> thanks atmosx
josephleon has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weaksauce> atmosx why do you think spree is a mess?
<atmosx> MrRobinhood5: https://www.railstutorial.org/book
jlast has joined #ruby
mistermo_ has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 255 seconds]
<atmosx> weaksauce: I don't see what spree will offer at this point. He will need to study the code which will change things on a code-base he is not familiar with, and then instead of adding what he needs, he will need to modify what he doesn't need.
<atmosx> weaksauce: looks like a much mor etime-consuming task to me
mistermocha has quit [Ping timeout: 252 seconds]
_hollywood has quit [Ping timeout: 252 seconds]
<weaksauce> ok. so not in general then. just this use case you think spree would be a mess then atmosx
jlast_ has joined #ruby
jlast has quit [Read error: Connection reset by peer]
<atmosx> weaksauce: ah yes yes, sorry. I didn't state my thoguhts clearly.
<weaksauce> :)
adriancb has joined #ruby
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
ponga has joined #ruby
Hijiri has joined #ruby
Xoro has joined #ruby
ghostpl_ has quit [Ping timeout: 244 seconds]
sevvie has quit [Ping timeout: 246 seconds]
GnuYawk has quit [Read error: Connection reset by peer]
lordkryss has quit [Quit: Connection closed for inactivity]
Rarikon has quit [Ping timeout: 246 seconds]
cpt_yossarian has quit [Quit: And then he took off.]
webmstk has quit [Ping timeout: 240 seconds]
max96at is now known as max96at|off
eighthbit has joined #ruby
towski_ has joined #ruby
silkfox has quit [Ping timeout: 245 seconds]
grr_ has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
rodfersou has quit [Quit: leaving]
chipotle has joined #ruby
baweaver has quit [Remote host closed the connection]
sevvie has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
_hollywood has joined #ruby
chipotle_ has joined #ruby
naftilos76 has joined #ruby
mistermocha has joined #ruby
unicodeveloper has joined #ruby
fantazo has quit [Quit: Verlassend]
ottanta has quit [Quit: WeeChat 1.1.1]
ottanta has joined #ruby
ottanta has quit [Changing host]
ottanta has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
brb3 has quit [Quit: <.<]
rhllor has quit [Quit: rhllor]
last_staff has quit [Quit: last_staff]
gfawcettpq has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
gaussblurinc1 has joined #ruby
Rarikon has joined #ruby
Xoro has quit [Ping timeout: 264 seconds]
varunwachaspati has joined #ruby
Nahra has joined #ruby
unicodeveloper has quit [Ping timeout: 252 seconds]
patrick99e99 has quit [Ping timeout: 246 seconds]
mistermo_ has joined #ruby
unicodeveloper has joined #ruby
patrick99e99 has joined #ruby
Synthbread has joined #ruby
chipotle_ has quit [Quit: cheerio]
sambao21 has joined #ruby
chipotle has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
revoohc has quit [Quit: revoohc]
fakam has joined #ruby
startupality has quit [Quit: startupality]
<fakam> How do you know whether you are still a beginner or intermediate?
duggiefresh has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
iamjarvo has joined #ruby
Rarikon has quit [Ping timeout: 250 seconds]
<weaksauce> fakam where are you now?
<weaksauce> what have you done?
<ottanta> do you get payed to do it
<jhass> you don't, you just always assume you're a beginner and are probably right with that
ldnunes has quit [Quit: Leaving]
<jhass> ottanta: haha, wish it would be that easy
<weaksauce> ottanta I have seen some really bad programmers that get paid for it :)
<eam> do you get paid to not do it
<jhass> eam: oooh, that's why you no longer do perl
<fakam> Well, I am writing some rails apps. I know about OOP making classes etc
Tinfoilhat_ has quit [Read error: Connection reset by peer]
<jhass> fakam: let's ask differently, what's useful about those two categories?
<jhass> what do you gain from having the answer to that question?
<eam> jhass: ;-)
sevvie has quit [Ping timeout: 252 seconds]
<fakam> Making sure I am moving forward is the gain?
<jhass> do you feel like you don't?
josephleon has quit [Quit: Leaving...]
<fakam> Sometimes
<fakam> and sometimes not
<jhass> okay, there's an easy fix to that
<eam> money is a pretty decent proxy for most things. Not the presense of it, but the magnitude
<weaksauce> welcome to programming. where you can spend a day doing everything and achieve nothing sometimes
<jhass> pull up some project that has code that's at least a year old
<fakam> lol
<jhass> open a second editor with what you're working on
<jhass> put them side by side
sevvie has joined #ruby
<undeadaedra> fakam: are you Yukihiro Matsumoto?
varunwachaspati has quit [Remote host closed the connection]
<jhass> maybe rewrite one of the files of the old project and compare
<weaksauce> is ruby your first language fakam
<undeadaedra> if no, you’re beginner. :p
<weaksauce> and is this project the first rails project?
<fakam> I am pretty new, I started studying ft in Feb
Tuxero has joined #ruby
<weaksauce> yes you are still a beginner
<fakam> No I wish I was Matz lol
<weaksauce> done
<fakam> okay
chrishough has joined #ruby
<fakam> Matz did actually RT my tweet. That was amazing
slackbotgz has quit [Remote host closed the connection]
<jhass> fakam: see, the only thing you'll learn as a professional is to know where your limits are, where to sit down and where to just quickly act
Xoro__ has joined #ruby
<jhass> there's so many stuff out there
Takle has quit [Remote host closed the connection]
slackbotgz has joined #ruby
<jhass> you're always the beginner
<jhass> I can always find something you have no clue of
<fakam> I see.
<eam> jhass: find something for me
unicodeveloper has quit [Ping timeout: 244 seconds]
<jhass> eam: k, sec
<jhass> how does that work
<undeadaedra> ”It doesn't"
<fakam> github.com/iheartkode i made a few rails apps still learning a lot though.
ojacobson has quit [Quit: Leaving...]
<undeadaedra> jhass: indent in this file scares me
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
<eam> jhass: in ruby :(
<eam> that's a pretty good one though
towski_ has quit [Remote host closed the connection]
livingstn has quit []
<jhass> that's not a valid requirement to my assertion eam
nfk has quit [Quit: yawn]
Takle has joined #ruby
<eam> haha ok, I thought we were talking scoped
<eam> I just wanted to see what you came up with
<fakam> I feel like all resource I find just do basics of Ruby.
maletor has joined #ruby
Synthbread has quit [Ping timeout: 252 seconds]
<jhass> mh, no then my point wouldn't work :P
Mives has joined #ruby
<jhass> fakam: hang out here, help people solve their problems, compare your solutions to others given
<jhass> that helped me a lot
jonr22 has joined #ruby
crueber has quit [Quit: Leaving.]
<undeadaedra> ”I’m helping!”
<eam> or just pick a problem you actually need solved, and then learn until you can solve it
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<fakam> I will give that a try.
<makerop> that's how i like to learn new stuff
<makerop> come up with a stupid idea, and a skill you want to learn (tdd, etc)
<jhass> fakam: there's also stuff like exercism.io and codewars.com that provide good resources of comparing your solutions to others
<makerop> and implement the stupid idea
bruno- has quit [Ping timeout: 264 seconds]
Xoro__ has quit [Ping timeout: 246 seconds]
<atmosx> hm, writing tests eludes me, but this RubyContracts thing seems very interesting
<fakam> I was cussing all day yesterday figuring out why when I installed rbenv and did ruby -v it showed 1.9.3 and also many other gem issues lol
<fakam> Thanks Jhass
<atmosx> I mean TDD seems to slow me down incredibly not to mention that most of the times I can't picture exactly what I wanna do.
<fakam> BDD?
<makerop> atmosx, if you solve that let me know
<fakam> What do most Ruby / Rails devs use TDD/BDD?
<atmosx> makerop: solve? blah, I don't wanna solve it.
Musashi007 has joined #ruby
<makerop> i have yet to find a great way to spec out what I want to do
<atmosx> lo
<atmosx> l
<fakam> I am learning RSpec
teddyp1cker has quit [Ping timeout: 252 seconds]
rbennacer has quit [Remote host closed the connection]
<fakam> brb
fakam has left #ruby ["Leaving"]
<atmosx> makerop: In my next 'big' project where bug-catching will be 'required' I'll try to use these http://egonschiele.github.io/contracts.ruby/ instead of rspec/minitest.
iheartkode has joined #ruby
<iheartkode> <- Fakam figured I would make my name I use everywhere else.
<atmosx> makerop: It's very easy to read, and you can disable everything in 'production'. Contracts make the code slower, but not much slower.
<atmosx> oh
baweaver has joined #ruby
Synthbread has joined #ruby
<jhass> iheartkode: you can switch nick without signing in again, just type /nick new_nick ;)
<makerop> i dont think I like contracts
<makerop> I'd rather just use rspec
<makerop> seems like you aren't gaining much, and have to learn a DSL
<iheartkode> Oh haha
<iheartkode> I needed to register anyways with freenode to chat in #rubyonrails
* atmosx radiohead - the bends
nettoweb has joined #ruby
<iheartkode> Any client better than Xchat on Nix?
<atmosx> iheartkode: weechat
<iheartkode> Will check it out
<undeadaedra> ^
Megtastique has quit []
<jhass> iheartkode: oh, you can also have multiple nicks for the same account with the group command to nickserv
<iheartkode> Thanks for being so helpful :)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<undeadaedra> we’re here for that
<jhass> iheartkode: weechat looks ugly in default config though, check http://dev.weechat.org/post/2011/08/28/Beautify-your-WeeChat
<atmosx> iheartkode: made a screenshot the other day for another guy who was looking for a cli client https://atmosx.clarify-it.com/d/g7dafj
<iheartkode> Sweet, Xchat is hard on the eyes
The_Phoenix has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephleon has joined #ruby
cvtsx has quit [Quit: Leaving]
DouweM has joined #ruby
<atmosx> jhass: is that ubuntu-something?
it0a has quit [Quit: WeeChat 1.1.1]
<jhass> no
<undeadaedra> it’s a GNOME 3
benegget_ has joined #ruby
<atmosx> the nicks are cool but the channels on the right, I don't know. I prefer the default bar although it's not practical for more than 9 channels
rajeshchawla has quit [Remote host closed the connection]
<jhass> exactly
dfinninger has quit [Remote host closed the connection]
<atmosx> gnome? the latest?
<jhass> yeah
<jhass> elegance colors theme in the numix style, maximus extension and terminology
mjuszczak has joined #ruby
<atmosx> I see
<atmosx> cool
jottr has joined #ruby
jarjar_prime has quit [Quit: Ready? Set? Go!]
<atmosx> jhass: you write code on vim?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iheartkode> vim is scary lol
<jhass> no, not really, only for adhoc stuff
<jhass> sublime text here
<iheartkode> I did the tutorial but yea not for me.
iamjarvo has joined #ruby
<iheartkode> Atom is my fav
<undeadaedra> vim <3
<makerop> i moved from vim to sublime
<jhass> well, editor is lke desktop environment is like distri is like religion
dfinninger has joined #ruby
<iheartkode> I understand the power of vim and it's speed but it actually slows me down.
<centrx> not if you combine it with LXDE and Shintoism
gr33n7007h has joined #ruby
<iheartkode> Editor religious wars :P
beneggett has quit [Ping timeout: 255 seconds]
<undeadaedra> ahah
<atmosx> vim took over the world twice.
tvw has joined #ruby
<atmosx> lol
<undeadaedra> True story: I switched from emacs to vim because of PHP :x
<atmosx> seriously though, it's incredibly powerful, the amount of plugins are unbelievable.
<atmosx> undeadaedra: you should see a doctor.
slackbotgz has quit [Remote host closed the connection]
<undeadaedra> M-x doctor
<undeadaedra> :p
<atmosx> undeadaedra: both for emacs and php.
<iheartkode> I tried Ruby || Rails dev on windows.. Once
slackbotgz has joined #ruby
<jhass> mmh, I haven't heard centrx's opinion of PHP for quite a while
<undeadaedra> I know someone who did that, iheartkode. Windows + JRuby + Rails.
<Senjai> PHP is bad </end>
<atmosx> iheartkode: I can't work on windows.
<undeadaedra> PHP is shit </end>
<gr33n7007h> PHP stinks
<iheartkode> No, I tried and it's a pain in the arse
<iheartkode> Php is gross
<iheartkode> Was my first language
<iheartkode> I met Ruby and fell in love
<jhass> lol, mime too actually :P
<atmosx> iheartkode: I avoid it like the plague. I lost 25 minutes to change the screensaver on widnows 8.1 it's scary. The only way I can do what I want to do is by reading online tutorials... the way I did back when I was learning how to use linux.
mjuszczak has quit [Client Quit]
<atmosx> not to mention there's no shell (bash/zsh) :-(
josephleon has quit [Quit: Leaving...]
<iheartkode> I have used Linux since Ubuntu 5x
<undeadaedra> what, windows command is not good enough? /s
<atmosx> I see everyone is fond of php.
relix has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
<iheartkode> But I used windows for Photoshop/gaming/other
Xoro has joined #ruby
<Senjai> !g php a fractal of bad design
baweaver has quit [Remote host closed the connection]
<Senjai> ^
<eam> atmosx: bash/zsh work just fine on windows
<atmosx> eam: really? then there is hope.
<iheartkode> php 5.0 the stapled on oop was bad
<gr33n7007h> eam: true
<undeadaedra> atmosx: no, it’s still windows under
<iheartkode> Anyways it's a tool right? :P
<atmosx> undeadaedra: what do you mean windows under?
<eam> atmosx: cygwin has been around for over 20 years
<atmosx> I get zsh but no gnu-utils?
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<atmosx> ah nah... I don't like emulator
<undeadaedra> well, using zsh under windows is still using windows
<atmosx> s
<eam> undeadaedra: sure, and zsh under linux is still using linux
christiandsg has joined #ruby
<undeadaedra> it’s like living in a trash bin, but with golden handles.
doodlehaus has quit [Remote host closed the connection]
<eam> windows has been a POSIX compliant unix since the 90s
jarjar_prime has joined #ruby
<atmosx> no fucking way.
<jhass> do they actually still hold that certification?
<undeadaedra> eam: iirc, they stopped that too.
<eam> jhass: pretty sure they do, I imagine it's needed for various government certifications
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<GaryOak_> centrx: I'm a ruby dev who came from Java and that's how I view it
<iheartkode> I love Zsh but for some reason I couldn't use rbenv it kept saying ruby x.x is not installed even though it was
Wolland has quit [Remote host closed the connection]
<jhass> atmosx: you'd be surprised how vague POSIX actually is
<eam> cygwin is really not bad
<iheartkode> So I went back to bash.
nahtnam has joined #ruby
<atmosx> jhass: I just figure it out.
<atmosx> figured *
<jhass> the amount of "depends on the implementation" is incredible
<eam> you wouldn't want to use it in a high performance environment, but honestly it's decent
Hijiri has quit [Ping timeout: 245 seconds]
yourwebdevguy has quit [Quit: Leaving]
mistermo_ has quit [Read error: Connection reset by peer]
<eam> I have used it in production
<jhass> jokes like readdir
<jhass> returning you a complete useful structure
<jhass> of which only the name field is actually useable
christiandsg has quit [Ping timeout: 252 seconds]
<jhass> and for the rest you need to be lucky enough to run on the right filesystem
<eam> well, that's also true of many linux filesystems
<gr33n7007h> fuck that ruby running c64 here ;p lol
<eam> jhass: even some rather mainstream ones you'll find on various android devices
phutchins has joined #ruby
lanemeyer has joined #ruby
mistermocha has joined #ruby
bruno- has joined #ruby
dopie has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
iheartkode has quit [Quit: Leaving]
iheartkode has joined #ruby
root2 has joined #ruby
root2 has quit [Client Quit]
<iheartkode> I went with Chatzilla since I am in Firefox most of the time
bradleyprice has quit [Remote host closed the connection]
kadoppe has quit [Ping timeout: 264 seconds]
kadoppe has joined #ruby
malcolmva has quit [Ping timeout: 252 seconds]
tohsig has quit [Quit: Textual IRC Client: www.textualapp.com]
gr33n7007h has quit [Ping timeout: 245 seconds]
coderhs has joined #ruby
makerop has quit [Remote host closed the connection]
<atmosx> what music are you ppl listening right now?
<iheartkode> Chillstep
coderhs has quit [Read error: Connection reset by peer]
<iheartkode> You?
DouweM has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
<jhass> spotify artist radio for anomie belle
juanpaucar has quit [Remote host closed the connection]
Hijiri has joined #ruby
<iheartkode> I just started using spotify, and you can listen ad free with adblock plus :P
juanpaucar has joined #ruby
<jhass> in the first 6 months, yeah
<iheartkode> No afk command ?
<jhass> /away don't bother
<iheartkode> ah
<GaryOak_> I listen to the spotify 5 hour energy ads, and sexist new NBC show ads
echevemaster has joined #ruby
<ottanta> most spotify ads are like 'wut'
Rollabunna has quit [Remote host closed the connection]
<atmosx> Radiohead while too bored to launch the browser to see if the changes I made on my views actually took place where they should... lol
<atmosx> I have a spotify subscription too
<atmosx> too bored to download/youtube music
<GaryOak_> I just like to work for 5 hours and then see if anything I did actually worked
josephleon has joined #ruby
<GaryOak_> #5hourenergy
<atmosx> GaryOak_: hm, and what happens when it doesnt?? :-P another 5 hours debugging?
<atmosx> GaryOak_: you do TDD/BDD shit?
<iheartkode> How do I un /away
<gr33n7007h> drove my *shevy* to the levee but the levee was dry
<iheartkode> nm
<GaryOak_> Nah integration testing
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno_ has joined #ruby
baweaver has joined #ruby
<atmosx> iheartkode: just /away
<atmosx> GaryOak_: sounds legit
<GaryOak_> Haha I'm in the awful plumbing stages of coding now
juanpaucar has quit [Ping timeout: 252 seconds]
<undeadaedra> It’s 23:00
<GaryOak_> Give that webservice the results from the call you made to this webservice
jlast_ has quit [Remote host closed the connection]
<undeadaedra> too early to code.
sgambino has quit [Remote host closed the connection]
<gr33n7007h> shevy: have you been hiding in a bunker in berlin?
Pupeno has quit [Ping timeout: 255 seconds]
jerius has quit [Quit: /quit]
<shevy> gr33n7007h hey I am not in berlin
<gr33n7007h> shevy: a lot of magic happens underneath the hood :)
zachrab has quit [Remote host closed the connection]
<shevy> people don't live in berlin
<shevy> they more like, try to survive
<shevy> look at the airport
<shevy> THERE IS NO AIRPORT!
<undeadaedra> Ach ja
<shevy> right hanmac
<gr33n7007h> shevy: shevy shevy ttttt....
<gr33n7007h> shevy: where you from?
<shevy> gr33n7007h vienna
<gr33n7007h> ah, austria
kirun has quit [Quit: Client exiting]
gaussblurinc1 has quit [Quit: Leaving.]
<undeadaedra> Wien is a nice city
<atmosx> actually, I'm ashamed to say that I liked Berlin.
RTG` has quit [Ping timeout: 256 seconds]
<shevy> atmosx you are a sinner!
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> shevy: there's actually a perfectly fine airport, they were just too stupid to execute the already existing plans for extending it and decided to "built" a new one instead
nettoweb has joined #ruby
<shevy> nuremburg is nice, dresden is lovely (though it still looks half-destroyed), hamburg is ok-ish... hannover is ugly, berlin was awful, but Frankfurt was worse, Düsseldorf was worse than Frankfurt and the absolutely worst town was Chemnitz
<atmosx> shevy: lol
<shevy> jhass haha well I think London has two airports too, perhaps it started just like that
<gr33n7007h> jhass: that would be "build"
<atmosx> shevy: ever been in Costanza? or Konstanza however it's called, borders with Switzerland
<atmosx> shevy: london has 4
<shevy> atmosx nope, I was only in switzerland for skiing sometimes
<shevy> cool
<shevy> they solved that better than berlin
<atmosx> shevy: where? I've been in Grindelwald
<atmosx> or Grindenwald
RTG` has joined #ruby
malcolmva has joined #ruby
<atmosx> Swiss girls are ugly an fat. The only pretty one married an Italian singer
<shevy> I don't quite remember the name, it was at a village near the border to Vorarlberg
<atmosx> ah
<atmosx> wasn't Saint Moritz then
<shevy> atmosx didn't she marry someone else?
<atmosx> shevy: yes she did=
<atmosx> shevy: her personal trainer
<undeadaedra> Now in #ruby, which city is the worse.
<bradland> Miami
<bradland> :P
<atmosx> the story is kinda silly. This guy had a personal 'medium', who had a son that was a personal trainer. She managed to get closer to him and appointed her son a personal manager to his wife.
<atmosx> since they had something like 40 years of age diff, the medium's son managed to get into her pants.
<atmosx> anyway
<atmosx> undeadaedra: mine
<undeadaedra> Which one?
<atmosx> undeadaedra: I live in a small town 35k ppl in north-eastern Greece. At the same time is the best (crisis apart): 45 minutes away from sea or snoeboarding, food is supreme and I have a *regular job* which is rare in Greece at the moment.
<atmosx> undeadaedra: ironically enough it's called 'Drama' :-)
<undeadaedra> Doesn’t sounds like ”worse"
riotjon__ has joined #ruby
<atmosx> undeadaedra: nah, truth to be told, I'm working my ass out but I like it.
DouweM has joined #ruby
<undeadaedra> I begin to hate the city I work in
<atmosx> undeadaedra: what city is that?
<GaryOak_> is there a ruby method that can iterate a method on an object and return the modified object?
Wolland has joined #ruby
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<iheartkode> Is it bad to always use attr_accessor compared to making them seperate?
<undeadaedra> atmosx: Paris, France
<atmosx> iheartkode: nah, it's just style
riotjone_ has quit [Ping timeout: 264 seconds]
<atmosx> undeadaedra: wow, doesn't sound bad at all. The center of the city is lovely to say the least.
<shevy> atmosx the name of the location is "Drama"??
<atmosx> undeadaedra: looking forward to go there with my gf. Maybe next year though, this year if there will be any trips will be in Italy... Rome and Sicily.
<iheartkode> Okay, what is a good app to make that utilizes classes and getting real world practice?
<atmosx> shevy: yes
<shevy> haha... you must excel in theater play and rhetorics then :)
<undeadaedra> atmosx: to visit I don’t say. To go to work everyday, it’s bad.
mjuszczak has joined #ruby
hcnewsom has quit [Quit: hcnewsom]
<shevy> too much drama in Drama!
kblake has quit [Ping timeout: 250 seconds]
<atmosx> shevy: hahahah exactly
<shevy> atmosx I wonder how you can live in a small town though
<shevy> I even think that vienna is too small
<iheartkode> What is the population of Vienna?
<undeadaedra> Many.
<undeadaedra> Medium towns are nice.
<lupine> better question. What is the most insane use of Method#receiver that you can think of?
<atmosx> shevy: I live in Milan for 4 years and Brno for another 3.5 ... and I've travelled throughout Europe and China. I can say that both my working envinronment and my houme/living standard is extremely high here.
<iheartkode> I live in San Diego 8th largest city in Murica
<undeadaedra> ’MURICA
<atmosx> shevy: the only negative side that I don't have theatres (which I'd love to have) and international-level events nearby. I have to travel for at least 2 hours to watch a decent concert and even then not *good enough*.
<atmosx> iheartkode: San Diego sounds nice.
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iheartkode> San Diego is very nice, it's rated as best climate.
<shevy> atmosx Milano sounds cool, there was a guy from Milano recruiting for bioruby about 3 years ago; I think it was helios
<iheartkode> It's March and 70+ degrees and sunny
baweaver has quit [Remote host closed the connection]
lucianosousa has joined #ruby
<atmosx> shevy: Milano sucks though, if you are not extremely rich.
catoblepa has joined #ruby
<shevy> hehe
<iheartkode> atmosx: where are you from?
<shevy> iheartkode isn't it awfully hot there?
DouweM has quit [Read error: Connection reset by peer]
<atmosx> and it's not a good city to live or study IMHO. Berlin is orders of magnitude better, Vienna too.
<atmosx> Vienna is amazing actually by all means
<shevy> I think the best climate is in northern italy
<iheartkode> No, not at all it's a very comfortable climate.
Wolland has quit [Ping timeout: 245 seconds]
<atmosx> shevy: I don't wanna disappoint you but you'll hardly find a better *city*.
<shevy> Treviso or further westwards to the Lago Maggiore area
<atmosx> iheartkode: here https://www.google.gr/maps/place/Drama+661+00/@41.1478935,24.1423037,15z/data=!3m1!4b1!4m2!3m1!1s0x14aeaad2941fd87f:0x472ba98a41f258e8?hl=en
<shevy> atmosx :(
ptrrr has quit [Quit: ptrrr]
<iheartkode> I see.
<shevy> atmosx perhaps San Diego!
<iheartkode> Google San Diego, Ca lol
<atmosx> shevy: hahah perhaps perhaps perhaps!
<iheartkode> It's amazing here.
<iheartkode> But expensive.
josephleon has quit [Quit: Leaving...]
<shevy> damn that sounds bad
<atmosx> iheartkode: here it's amazing too. It's not expensive though, but it's hard to get a job too.
<iheartkode> I want to visit Greece one day, it looks nice.
mikepack has joined #ruby
Ridley5 has quit []
<shevy> yeah good tourist place
<shevy> but not a lot of high tech!
<iheartkode> Thing is it's expensive but you get better pay.
<shevy> iheartkode reminds me of switzerland, they have higher costs but higher payment too
<gr33n7007h> lol
<iheartkode> San Diego is silicon valley south :P
asmodchan has joined #ruby
<atmosx> iheartkode: sure, you should.
<undeadaedra> shevy: but switzerland doesn’t really like foreigners, at what I understood
<iheartkode> Yahoo, Apple, HP etc etc have offices here.
<atmosx> Yahoo, Apple, HP have logos floating around on hardware here. lol
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<iheartkode> lol
<undeadaedra> I saw Microsoft offices :o
<atmosx> okay Yahoo! have no logos on hardware lol
naftilos76 has quit [Remote host closed the connection]
<atmosx> s/have/has
<iheartkode> I seen google plex :P
<atmosx> I saw a documentary about Google's offices in Switzerland. They were amazing.
<gr33n7007h> we need a gem bot :) :(
Asher has quit [Quit: Leaving.]
<iheartkode> gem bot would be cool
<iheartkode> Okay I need to grind my Ruby skills.
<undeadaedra> write a gem bot.
<iheartkode> I'm a newb
Channel6 has joined #ruby
asmodlol has quit [Ping timeout: 244 seconds]
<iheartkode> aka beginner
<iheartkode> atmosx: are you on Twitter land?
dfinninger has quit [Remote host closed the connection]
<undeadaedra> the bot part is easy, just use cinch.
<atmosx> iheartkode: @patmatzidis
<iheartkode> I am @iheartkode will send a follow
<gr33n7007h> cinch is goooooood!!
baweaver has joined #ruby
<atmosx> iheartkode: sure, I'll follow back!
<iheartkode> Sweet, the more Rubyist the merrier
gfawcettpq has quit [Read error: Connection reset by peer]
psy_ has quit [Ping timeout: 246 seconds]
Megtastique has joined #ruby
<atmosx> oh there are plenty on twitter.
psy_ has joined #ruby
<iheartkode> Yes check my pinned tweet lol Matz even RT it :)
exadeci has joined #ruby
Musashi007 has quit [Quit: Musashi007]
reinaldob has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
<gr33n7007h> ruby 3.0 is going to be awesome :)
iliketurtles has quit [Read error: Connection reset by peer]
<iheartkode> Concurrency?
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
<gr33n7007h> iheartkode: for definite I think
<iheartkode> Volt: Ruby on the client & server framework :)
<atmosx> iheartkode: cool, I'm off have to wake up early tomorrow Ihave a 5-hours shift.
<atmosx> nigth all.
<iheartkode> Have fun!
<atmosx> ty :-)
<iheartkode> I am off to grind
<undeadaedra> night!
<iheartkode> :goodbye
iheartkode has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/20150224134236]]
scripore has quit [Quit: This computer has gone to sleep]
<undeadaedra> Cool, now we have the exact build of his Firefox.
rajeshchawla has joined #ruby
chishiki has quit [Quit: WeeChat 1.1.1]
iliketurtles has joined #ruby
<shevy> undeadaedra cool just like Austria! :D
jottr has joined #ruby
<undeadaedra> ?
baweaver has quit [Remote host closed the connection]
<GaryOak_> Volt
<shevy> undeadaedra <undeadaedra> shevy: but switzerland doesn’t really like foreigners, at what I understood
<bradland> Austria!?
<bradland> Aren't you jerks responsible for WWI?
<shevy> bradland yeah!
ghostpl_ has joined #ruby
HOrangeJewce has quit [Quit: Leaving.]
<undeadaedra> ok, I take note shevy, I won’t come anymore
<bradland> If your Arch Duke hadn't been galavanting around in that damn horseless carriage, we could have avoided the whole thing!
chishiki has joined #ruby
<shevy> the big mistake was to make an ultimatum
rajeshchawla has quit [Ping timeout: 244 seconds]
<bradland> that whole incident is why i always insist on a horse drawn buggy
<shevy> once they set the "if this does not happen, then that will happen" logical loop hole
<shevy> undeadaedra where do you live?
<undeadaedra> shevy: France
<undeadaedra> or Frankreich, like you call it
scripore has joined #ruby
<undeadaedra> :)
<shevy> aha
<shevy> nah
jottr has quit [Ping timeout: 240 seconds]
<shevy> I prefer to call areas how the people living there call it
MrRobinhood5 has quit [Quit: Leaving]
tier has quit [Remote host closed the connection]
baweaver has joined #ruby
jarjar_prime has quit [Quit: Ready? Set? Go!]
<undeadaedra> Yeah, I do too, unlike we usually do in French.
Dolphi has quit [Read error: Connection reset by peer]
duggiefresh has quit [Read error: Connection reset by peer]
jarjar_prime has joined #ruby
duggiefresh has joined #ruby
jarjar_prime has quit [Client Quit]
Hijiri has quit [Ping timeout: 252 seconds]
sevvie has quit [Ping timeout: 255 seconds]
ghostpl_ has quit [Ping timeout: 264 seconds]
lucianosousa has quit [Quit: lucianosousa]
eat_multi has joined #ruby
jottr has joined #ruby
<bradland> i love when i'm digging aroundin the std-lib and i find something i really should have been using for a long time
<bradland> Pathname
<bradland> "foo".directory? vs File.directory?(foo)
<bradland> i like!
lucianosousa has joined #ruby
dmcnabb has joined #ruby
<undeadaedra> When I started ruby, I had to ”multiply” a string
<undeadaedra> I began to write a function that does that
<undeadaedra> And once done, I learned about String#*
scripore has quit [Quit: This computer has gone to sleep]
dmcnabb has left #ruby [#ruby]
_hollywood has quit [Quit: Leaving]
waxjar has quit [Ping timeout: 265 seconds]
towski_ has joined #ruby
scripore has joined #ruby
towski_ has quit [Remote host closed the connection]
thiagovsk has quit [Quit: Connection closed for inactivity]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpablo__ has quit [Quit: (null)]
juanpablo__ has joined #ruby
RegulationD has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
sankaber has joined #ruby
nettoweb has joined #ruby
baweaver has quit [Remote host closed the connection]
Pupeno_ has joined #ruby
reactormonk has left #ruby ["WeeChat 1.1"]
serivich has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
checkit has joined #ruby
juanpablo__ has quit [Ping timeout: 252 seconds]
catoblepa has quit [Quit: Leaving]
speakingcode has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
Pupeno has quit [Ping timeout: 256 seconds]
blenny has joined #ruby
sevvie has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
Vile` has joined #ruby
aphprentice has quit [Remote host closed the connection]
towski_ has joined #ruby
zachrab has joined #ruby
bradleyprice has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GnuYawk has joined #ruby
duncannz has joined #ruby
<weaksauce> ha
<weaksauce> undeadaedra I find that the stdlib does more than I can imagine it would
serivichi has joined #ruby
<weaksauce> frequently surprised by it. "wait array can do *that*"
<undeadaedra> yeah, stdlib is very complete
baweaver has quit [Remote host closed the connection]
<lupine> a bit too expansive at times, I'd say
<lupine> it includes travesties like gserver
<bradland> is gserver still in the stdlib?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lupine> think so
<undeadaedra> Apprently, still in 2.1.0, yes
<bradland> i don't see it in 2.2
<lupine> hmm, it's in 2.1
<lupine> maybe they're doing the right thing at last
<bradland> the 2nd bullet point is gold
<bradland> lol
serivich has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
<lupine> we actually used it extensively, because it was in stdlib
<lupine> le sigh
<lupine> it's going away
<undeadaedra> Open 3 years ago, closed 7 months ago.
<undeadaedra> Took them time.
<undeadaedra> ”More than 3 years ago”, even.
benegget_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
<lupine> heh, we use XMLRPC::Server in places also
<lupine> from before my time
<weaksauce> wow I was unaware of that one. you'd think that something in stdlib would have *some* quality control
<lupine> yeah, if only
<weaksauce> I mean tests at a bare min
lea has quit [Quit: Page Closed]
scripore has quit [Quit: This computer has gone to sleep]
<weaksauce> have any of you written a parser in ruby?
Wolland has joined #ruby
codecop has quit [Remote host closed the connection]
<bradland> doesn't zenspider maintain an sexp parser written in ruby
Vile` has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
<weaksauce> not sure. I had spoken to him about that a while ago
<weaksauce> can't recall what it was though
teddyp1cker has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
duncannz has quit [Ping timeout: 256 seconds]
<weaksauce> that's just ruby though yeah?
x1337807x has joined #ruby
<bradland> you're thinking of ruby_parser
Vile` has joined #ruby
iheartkode has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
x1337807x has quit [Client Quit]
dfinninger has quit [Remote host closed the connection]
<weaksauce> ah ok. I'll take a look
ych4k3r_ has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
zorak8 has joined #ruby
asmodchan has quit [Read error: Connection reset by peer]
mitchellhenke has joined #ruby
hcnewsom has joined #ruby
mjuszczak has quit []
christiandsg has joined #ruby
<iheartkode> What is the best way to have persistent data in a Ruby app?
<bradland> iheartkode: depends on the data
sankaber has joined #ruby
<bradland> there are all sorts of options
<iheartkode> Say I want to store quotes, users and such simple data.
<weaksauce> sqlite is not a bad way to go
<bradland> sqlite is nice and convenient, but it has some deps that can be tough
<weaksauce> I am curious. like what?
<bradland> well, maybe tough isn't the best word
<iheartkode> What do you suggest bradland
<bradland> namely that you have to have sqlite installed
<bradland> how many records are you storing?
<iheartkode> 10 maybe
<iheartkode> just a small ruby app
<bradland> ok, is this a command line app, or a web app?
<iheartkode> command
<iheartkode> Strictly Ruby for learning.
<bradland> you can use a serializer
<weaksauce> yeah just write it out to a file then
christiandsg has quit [Ping timeout: 252 seconds]
<iheartkode> serializer a gem?
baweaver has joined #ruby
<bradland> a serializer is more of a concept
<bradland> let's say you have a hash
<iheartkode> Okay
<bradland> internally, Ruby implements hashes in C
<bradland> when you serialize a hash, you are taking it from the internal structure, and converting it to something that can be stored and passed around
<iheartkode> I see.
<bradland> examples of serialization formats are YAML and JSON
<bradland> some serialization formats have limitations
<bradland> this iskind of old, but i've read it before: http://www.skorks.com/2010/04/serializing-and-deserializing-objects-with-ruby/
<iheartkode> Okay
<iheartkode> Brad, remember a guy named Mark ages ago that was learning Ruby lol
<bradland> mark from california?
<iheartkode> You met in IRC and sent a pc
<iheartkode> Yes
<bradland> yeah, i remember him
<iheartkode> I got married.
<bradland> you're mark?
<iheartkode> then coding went far away from me lol
<bradland> haha, welcome back dude
<undeadaedra> ”8 files inspected, no offenses detected” – Feels good.
<iheartkode> lol
<iheartkode> Crazy
enebo has quit [Quit: enebo]
<iheartkode> I learned front end dev first now I am doing rails
<iheartkode> If I would have not lost the coding world I would be a dev by now lol
rajeshchawla has joined #ruby
<iheartkode> Life happens
aphprentice has joined #ruby
<iheartkode> How you been bradland ?
ndrei has quit [Ping timeout: 256 seconds]
fryguy9 has quit [Quit: Leaving.]
ndrei has joined #ruby
Musashi007 has quit [Ping timeout: 252 seconds]
GnuYawk has quit [Read error: Connection reset by peer]
rajeshchawla has quit [Ping timeout: 252 seconds]
kblake has joined #ruby
iheartkode has quit [Remote host closed the connection]
Musashi007 has joined #ruby
Musashi007 has quit [Client Quit]
juanpaucar has joined #ruby
wallerdev has quit [Quit: wallerdev]
SOLDIERz_ has quit [Quit: Be back later ...]
jarjar_prime has joined #ruby
nux443 has quit [Ping timeout: 252 seconds]
beneggett has joined #ruby
blackgoat has quit [Ping timeout: 246 seconds]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
tvw has quit []
tvw has joined #ruby
ych4k3r has joined #ruby
mikepack has quit [Remote host closed the connection]
kobain has joined #ruby
beginner has joined #ruby
hcnewsom has quit [Quit: hcnewsom]
Zai00 has quit [Quit: Zai00]
bim has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby