apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
iasoon has quit [Ping timeout: 272 seconds]
vikaton has joined #ruby
horsecowdog has quit [Remote host closed the connection]
ascarter has joined #ruby
zotherstupidbot has quit [Ping timeout: 246 seconds]
<shevy> lol
zotherstupidguy has quit [Ping timeout: 246 seconds]
MatthewsFace has quit [Remote host closed the connection]
zotherstupidbot has joined #ruby
zotherstupidguy has joined #ruby
RegulationD has quit [Remote host closed the connection]
dopie has joined #ruby
RegulationD has joined #ruby
lidenskap has quit [Remote host closed the connection]
cirn0 has quit [Remote host closed the connection]
kenneth__ has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
iliketurtles has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 258 seconds]
<shevy> man
<shevy> audio on linux is still so much pain
codepete has quit [Quit: Connection closed for inactivity]
iamninja has quit [Read error: Connection reset by peer]
cubesandcode has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
jack_rabbit has joined #ruby
phreakocious has quit [Ping timeout: 272 seconds]
maletor has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
io_syl has quit []
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
phreakocious has joined #ruby
GriffinHeart has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
SouL_|_ has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
SouL_|_ has joined #ruby
GriffinHeart has joined #ruby
fabrice31 has joined #ruby
zacts has joined #ruby
kenneth has joined #ruby
ascarter has joined #ruby
greenbagels has joined #ruby
ta has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
That1Guy has joined #ruby
devoldmx has joined #ruby
jottr has joined #ruby
FernandoBasso has quit [Quit: leaving]
jaequery_ has joined #ruby
segfalt has quit [Quit: segfalt]
kenneth has quit [Read error: Connection reset by peer]
sarlalian has quit [Quit: WeeChat 0.4.2]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenneth has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
cjim_ has joined #ruby
sarlalian has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
jaequery has quit [Ping timeout: 244 seconds]
deric_skibotn has joined #ruby
Joufflu has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has quit [Quit: Leaving.]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
djbkd has quit [Remote host closed the connection]
sdothum has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lidenskap has joined #ruby
rodfersou has quit [Quit: leaving]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
djbkd has joined #ruby
jaequery has quit [Client Quit]
mjuszczak has quit []
GriffinHeart has joined #ruby
GriffinHeart has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
MatthewsFace has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
GriffinHeart has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
GriffinH_ has joined #ruby
jaequery_ has quit [Ping timeout: 252 seconds]
GriffinH_ has quit [Remote host closed the connection]
robustus has joined #ruby
GriffinHeart has joined #ruby
marr has quit [Ping timeout: 255 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
lidenskap has quit [Remote host closed the connection]
<havenwood> DeBot: !hangman gems
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<havenwood> DeBot: e
<DeBot> ␣e␣␣␣␣␣␣␣␣␣e [] 0/12
<demophoon> DeBot: ​a
<havenwood> DeBot: a
<DeBot> ␣e␣␣␣␣a␣␣␣␣e [] 0/12
<demophoon> DeBot: ​n
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> DeBot: n
<DeBot> ␣e␣␣␣␣a␣␣␣␣e [n] 1/12
<demophoon> DeBot: ​m
<havenwood> DeBot: m
<DeBot> ␣em␣␣␣a␣␣␣␣e [n] 1/12
<havenwood> DeBot: rstl
<DeBot> ␣em␣␣ra␣t␣␣e [nsl] 3/12
<demophoon> DeBot: ​g
<havenwood> DeBot: g
<DeBot> gem␣␣ra␣t␣␣e [nsl] 3/12
User458764 has joined #ruby
<havenwood> DeBot: u
<DeBot> gem␣␣ra␣t␣␣e [nslu] 4/12
<havenwood> DeBot: _
<DeBot> gem_␣ra␣t␣␣e [nslu] 4/12
<kinduff> DeBot: o
<DeBot> gem_␣ra␣t␣␣e [nsluo] 5/12
user083 has joined #ruby
<xxneolithicxx> DeBot: c
<DeBot> gem_␣ract␣ce [nsluo] 5/12
<kinduff> DeBot: p
<DeBot> gem_pract␣ce [nsluo] 5/12
<xxneolithicxx> DeBot: i
<DeBot> gem_practice [nsluo] 5/12 You won!
<al2o3-cr> DeBot: i
<kinduff> noice
jgt1 has joined #ruby
<al2o3-cr> ;p
<shevy> that bot gets the channel going
DEA7TH has quit [Ping timeout: 255 seconds]
<havenwood> shevy: gotta meet our character production quota
scripore has quit [Quit: This computer has gone to sleep]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
jgt has quit [Ping timeout: 252 seconds]
scripore has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
longfeet has joined #ruby
SouL_|_ has quit [Ping timeout: 246 seconds]
lictor36 has quit [Read error: Connection reset by peer]
jack_rabbit has quit [Ping timeout: 272 seconds]
SouL_|_ has joined #ruby
vikaton has quit []
tvw has quit [Remote host closed the connection]
<Radar> DeBot: !hangman gems
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<Radar> DeBot: e
<DeBot> ␣␣␣␣␣␣␣␣e␣␣␣e␣␣␣␣␣e␣ [] 0/12
<Radar> DeBot: a
<DeBot> ␣␣␣␣␣␣a␣e␣␣␣e␣␣␣␣␣e␣ [] 0/12
<Radar> DeBot: i
<DeBot> ␣␣␣␣␣␣a␣e␣i␣e␣␣i␣␣e␣ [] 0/12
<Radar> DeBot: r
<DeBot> ␣␣␣␣␣␣a␣e␣i␣e␣␣i␣␣er [] 0/12
<Radar> DeBot: s
<DeBot> ␣␣s␣␣␣a␣e␣i␣e␣␣i␣␣er [] 0/12
<Radar> DeBot: t
<DeBot> ␣␣st␣␣ateti␣e␣␣i␣␣er [] 0/12
<Radar> DeBot: m
<DeBot> ␣␣st␣␣atetime␣␣i␣␣er [] 0/12
<Radar> DeBot: d
<DeBot> ␣␣st␣datetime␣␣i␣␣er [] 0/12
<Radar> DeBot: -
<DeBot> ␣␣st-datetime-␣i␣␣er [] 0/12
<Radar> DeBot: v
<DeBot> ␣␣st-datetime-␣i␣␣er [v] 1/12
<al2o3-cr> DeBot: v
<DeBot> ␣␣st-datetime-␣i␣␣er [v] 1/12
<c-c> DeBot: t
<DeBot> ␣␣st-datetime-␣i␣␣er [v] 1/12
<c-c> DeBot: g
<DeBot> ␣␣st-datetime-␣i␣␣er [vg] 2/12
<Radar> DeBot: o
<DeBot> ␣␣st-datetime-␣i␣␣er [vgo] 3/12
<c-c> DeBot: n
<DeBot> ␣␣st-datetime-␣i␣␣er [vgon] 4/12
<Radar> DeBot: w
<DeBot> ␣␣st-datetime-␣i␣␣er [vgonw] 5/12
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> DeBot: j
<DeBot> j␣st-datetime-␣i␣␣er [vgonw] 5/12
<Radar> DeBot: x
<DeBot> j␣st-datetime-␣i␣␣er [vgonwx] 6/12
<al2o3-cr> DeBot: u
<DeBot> just-datetime-␣i␣␣er [vgonwx] 6/12
<bootstrappm> this game again? hahah
Stalkr_ has quit [Quit: Leaving...]
<al2o3-cr> DeBot: k
<DeBot> just-datetime-␣i␣ker [vgonwx] 6/12
<Radar> DeBot: p
<DeBot> just-datetime-pi␣ker [vgonwx] 6/12
<Radar> DeBot: c
<DeBot> just-datetime-picker [vgonwx] 6/12 You won!
<Radar> :tada
<al2o3-cr> ;p
<c-c> well I'd nver!
kenneth has quit [Read error: Connection reset by peer]
Igorshp has quit [Remote host closed the connection]
ta has quit [Read error: Connection reset by peer]
phutchins has quit [Ping timeout: 240 seconds]
j0n3 has quit [Read error: Connection reset by peer]
<kinduff> DeBot: !hangman gems
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<kinduff> DeBot: a
<DeBot> ␣␣␣a␣␣␣␣␣␣␣ [] 0/12
towski_ has quit [Remote host closed the connection]
<kinduff> DeBot: c
<DeBot> ␣␣␣a␣␣␣c␣␣␣ [] 0/12
<kinduff> DeBot: o
<DeBot> ␣␣␣a␣␣␣c␣␣␣ [o] 1/12
<kinduff> DeBot: _
<DeBot> ␣␣␣a␣␣␣c␣␣␣ [o_] 2/12
<kinduff> crap
<kinduff> DeBot: t
<DeBot> ␣␣ta␣␣␣c␣␣␣ [o_] 2/12
<kinduff> DeBot: m
<DeBot> m␣ta␣␣␣c␣␣␣ [o_] 2/12
<kinduff> DeBot: e
<DeBot> meta␣␣␣c␣e␣ [o_] 2/12
<kinduff> DeBot: -
<DeBot> meta-␣␣c␣e␣ [o_] 2/12
<kinduff> DeBot: r
<DeBot> meta-␣␣c␣er [o_] 2/12
<kinduff> DeBot: parser
<DeBot> meta-p␣c␣er [o_s] 3/12
<kinduff> DeBot: a
<DeBot> meta-p␣c␣er [o_s] 3/12
djbkd has quit [Quit: My people need me...]
<existensil> you already guessed a!
<existensil> jeez
<existensil> :-P
<kinduff> hahaha
<kinduff> lemme play my way
nobitanobi has quit [Remote host closed the connection]
<kinduff> DeBot: u
<DeBot> meta-p␣c␣er [o_su] 4/12
<existensil> DeBot: k
<DeBot> meta-p␣cker [o_su] 4/12
Kiranico has joined #ruby
<kinduff> DeBot: i
<DeBot> meta-picker [o_su] 4/12 You won!
<kinduff> yei
Kiranico has quit [Client Quit]
tjohnson has quit [Quit: Connection closed for inactivity]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<kinduff> DeBot !russianrulette
<kinduff> DeBot: !russian_rulette
That1Guy has joined #ruby
<existensil> *roulette
That1Guy has quit [Client Quit]
<kinduff> DeBot: !russian_roulette
<kinduff> DeBot: !russianroulette
<kinduff> geez
kenneth has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
bayed has quit [Quit: Connection closed for inactivity]
laurentide__ has quit [Ping timeout: 265 seconds]
ascarter has joined #ruby
alderamin has joined #ruby
wallerdev has quit [Quit: wallerdev]
gizmore has joined #ruby
charliesome has joined #ruby
horsecowdog has joined #ruby
segfalt has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
bootstrappm has quit [Read error: Connection reset by peer]
bootstrappm has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
tkuchiki has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
segfalt has quit [Quit: segfalt]
amclain has joined #ruby
lidenskap has joined #ruby
jenrzzz has joined #ruby
io_syl has joined #ruby
cirn0 has joined #ruby
kinduff has quit [Ping timeout: 256 seconds]
avahey has quit [Quit: Connection closed for inactivity]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
rbennacer has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
Agoldfish has quit [Quit: G'Bye]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
zotherstupidbot has quit [Ping timeout: 276 seconds]
zotherstupidbot has joined #ruby
wallerdev has joined #ruby
zotherstupidguy has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
kenneth has joined #ruby
s2013 has joined #ruby
lidenskap has quit [Remote host closed the connection]
HotCoder has quit [Ping timeout: 264 seconds]
veduardo has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
DerisiveLogic has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
longfeet_ has joined #ruby
baweaver has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 265 seconds]
BTRE has joined #ruby
GriffinHeart has joined #ruby
longfeet has quit [Ping timeout: 272 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
baweaver has quit [Ping timeout: 264 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
laurentide has joined #ruby
cirn0 has quit [Remote host closed the connection]
cirn0 has joined #ruby
veduardo has quit [Ping timeout: 272 seconds]
zotherstupidguy has joined #ruby
axisys has quit [Remote host closed the connection]
kobain has joined #ruby
laurentide has quit [Client Quit]
shuber_ has quit [Remote host closed the connection]
laurentide has joined #ruby
nobitanobi has joined #ruby
jack_rabbit has joined #ruby
speaking1ode has joined #ruby
bmurt has joined #ruby
speaking1ode has quit [Client Quit]
laurentide has quit [Client Quit]
rubie has quit [Remote host closed the connection]
ShortyCode has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
gambl0re has joined #ruby
kenneth has joined #ruby
gambl0re has quit [Client Quit]
gambl0re has joined #ruby
gambl0re has quit [Client Quit]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
yh__ has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: This computer has gone to sleep]
arescorpio has joined #ruby
veduardo has joined #ruby
WillAmes has quit [Remote host closed the connection]
WillAmes has joined #ruby
RegulationD has joined #ruby
Kricir has joined #ruby
Hijiri has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
mrsolo has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
versachey has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
Oka has joined #ruby
baweaver has joined #ruby
Hijiri has joined #ruby
icebourg has joined #ruby
rbennacer has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cyberarm has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
bootstrappm has quit [Quit: bootstrappm]
versachey has quit [Ping timeout: 276 seconds]
sdothum has joined #ruby
rbennacer has joined #ruby
swgillespie has joined #ruby
Hijiri has quit [Ping timeout: 256 seconds]
zzing has joined #ruby
ShortyCode has joined #ruby
konsolebox has quit [Quit: Leaving]
ShortyCode has quit [Client Quit]
Sawbones_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
devoldmx has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 255 seconds]
keen________ has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
Evidlo has joined #ruby
Igorshp has joined #ruby
<Evidlo> Anyone know how why I'm getting this versioning issue? http://www.rafb.me/results/r4CpZV60.html
freerobby has quit [Quit: Leaving.]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
keen________ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
tuelz has quit [Ping timeout: 258 seconds]
<centrx> Evidlo, You probably want to run everything with bundle exec, e.g. bundle exec rake db:migrate RAILS_ENV="production"
wallerdev has joined #ruby
charliesome has joined #ruby
konsolebox has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cibs has quit [Ping timeout: 272 seconds]
wolflee has quit [Remote host closed the connection]
wolflee has joined #ruby
cubesandcode has joined #ruby
lele has quit [Ping timeout: 272 seconds]
Sawbones_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
Sawbones has joined #ruby
shock_one has joined #ruby
Channel6 has joined #ruby
finisherr has joined #ruby
cibs has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jgt1 has quit [Ping timeout: 246 seconds]
segfalt has joined #ruby
<Evidlo> centrx: Is there a better way to get all the necessary dependencies than to 'bundle exec rake', figure out what's missing, then manually install and repeat?
neanderslob has quit [Ping timeout: 264 seconds]
Igorshp has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
pontiki has joined #ruby
<pontiki> hi, ruby
shock_one has quit [Ping timeout: 264 seconds]
<centrx> Evidlo, Presumably if you install system versions of gems, and have no conflicting versions of gems
<centrx> Evidlo, Remember the bundle defines which versions of gems to use in your app as well
<centrx> Gemfile
<centrx> I don't see what's wrong with 'bundle exec' though
Hijiri has joined #ruby
commondream has joined #ruby
blazes816 has joined #ruby
<baweaver> 'evening
cirn0 has quit [Remote host closed the connection]
djbkd has joined #ruby
rubie has joined #ruby
rubie has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
rubie has joined #ruby
tcrypt has quit [Ping timeout: 256 seconds]
cubesandcode has quit []
P1RATEZ has quit []
blazes816 has quit [Ping timeout: 246 seconds]
dorei has quit []
shuber_ has joined #ruby
rubie has quit [Remote host closed the connection]
rubie has joined #ruby
finisherr has quit [Quit: finisherr]
rbennacer has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
kobain has quit [Ping timeout: 265 seconds]
cjim_ has quit [Quit: (null)]
macmartine has joined #ruby
shuber_ has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
P1RATEZ has joined #ruby
krz has joined #ruby
devoldmx has joined #ruby
macmartine has quit [Remote host closed the connection]
braincrash has joined #ruby
dopie has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
Sawbones has quit [Remote host closed the connection]
scripore has quit [Remote host closed the connection]
scripore has joined #ruby
Sawbones has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
anytimebutnow has joined #ruby
renanoronfle has joined #ruby
Mia has quit [Ping timeout: 258 seconds]
crack_user has joined #ruby
macmarti_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renanoronfle has quit [Client Quit]
kenneth has joined #ruby
rrichardsr3 has joined #ruby
bruno- has joined #ruby
Sawbones has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 272 seconds]
crack_user has quit [Quit: Leaving.]
P1RATEZ has quit []
Sawbones has joined #ruby
arescorpio has quit [Excess Flood]
cyberarm has quit [Read error: Connection reset by peer]
tuelz has joined #ruby
Sawbones has quit [Remote host closed the connection]
zotherstupidbot has quit [Ping timeout: 264 seconds]
devoldmx has quit [Ping timeout: 258 seconds]
zotherstupidguy has quit [Ping timeout: 256 seconds]
veduardo has quit [Ping timeout: 240 seconds]
tuelz has quit [Ping timeout: 258 seconds]
macmarti_ has quit [Ping timeout: 256 seconds]
commondream has quit [Ping timeout: 272 seconds]
bmurt has quit []
commondream has joined #ruby
wolfleemeta has joined #ruby
lidenskap has joined #ruby
cjim_ has joined #ruby
commondr_ has joined #ruby
wolflee has quit [Ping timeout: 256 seconds]
macmartine has joined #ruby
commondream has quit [Ping timeout: 244 seconds]
Kiranico has joined #ruby
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
baroquebobcat has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
macmartine has quit [Remote host closed the connection]
<Radar> lol so many people try to install Redmine :\
DynamicMetaFlow has joined #ruby
fabrice31 has joined #ruby
commondr_ has quit [Remote host closed the connection]
<baweaver> *cough*Just install Jira already*cough*
<Radar> *cough* just use Trello or GH issues or BitBucket issues
<baweaver> That too
P1RATEZ has joined #ruby
cranq has quit [Ping timeout: 258 seconds]
<sevenseacat> for most purposes, those lightweight solutions are perfectly sufficient
<sevenseacat> but not all
scripore has joined #ruby
<baweaver> I've just been in enough larger companies that Jira is fairly standard.
<sevenseacat> (bot for those, redmine isnt exactly sufficient out of the box either)
<sevenseacat> *but
EllisTAA has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
<baweaver> Admittedly Rails is a bit convoluted to deploy properly
systemd0wn has quit [Ping timeout: 255 seconds]
bplaxco has joined #ruby
scripore has quit [Client Quit]
horsecowdog has quit [Remote host closed the connection]
EllisTAA has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
michael_mbp has quit [Excess Flood]
arup_r has quit [Remote host closed the connection]
cranq has joined #ruby
veduardo has joined #ruby
RegulationD has joined #ruby
michael_mbp has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 256 seconds]
bronson_ has joined #ruby
Nimf has joined #ruby
gusrub has quit [Quit: Leaving]
veduardo has quit [Ping timeout: 245 seconds]
djbkd has quit [Quit: My people need me...]
bronson has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
agent_white has joined #ruby
<agent_white> Evenin' folks
icebourg has quit []
charliesome has quit [Quit: zzz]
kenneth has quit [Read error: Connection reset by peer]
lidenskap has quit [Remote host closed the connection]
kenneth__ has joined #ruby
A205B064 has quit [Ping timeout: 256 seconds]
rrichardsr3 has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Remote host closed the connection]
yh__ has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
agent_white has quit [Ping timeout: 258 seconds]
bluOxigen has joined #ruby
agent_white has joined #ruby
ponga has joined #ruby
diegoviola has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
rawrmonstar has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
jbomo has left #ruby [#ruby]
EllisTAA has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
vivekananda has quit [Ping timeout: 258 seconds]
anytimebutnow has quit [Remote host closed the connection]
Kiranico has quit [Ping timeout: 272 seconds]
kp666 has joined #ruby
tejasmanohar has joined #ruby
<tejasmanohar> join #ror
<tejasmanohar> forgot the /
icebourg has joined #ruby
jayeshsolanki has joined #ruby
wolfleemeta has quit [Remote host closed the connection]
wolfleemeta has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
unclouded has quit [Ping timeout: 252 seconds]
unclouded has joined #ruby
jenrzzz has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
diegoviola has quit [Ping timeout: 265 seconds]
bigmac is now known as i8igmac
tubuliferous has quit [Ping timeout: 250 seconds]
shock_one has joined #ruby
dopie has quit [Quit: Leaving]
icebourg has quit []
mrsolo has joined #ruby
riotjones has joined #ruby
dopie has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
s2013 has joined #ruby
kenneth__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shock_one has quit [Ping timeout: 255 seconds]
tautvydas has joined #ruby
Zamyatin has joined #ruby
riotjones has quit [Ping timeout: 265 seconds]
icebourg has joined #ruby
doertedev has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
GriffinHeart has joined #ruby
rawrmonstar has left #ruby ["Textual IRC Client: www.textualapp.com"]
michaeldeol has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kt2 has joined #ruby
jack_rabbit has quit [Ping timeout: 246 seconds]
jack_rabbit has joined #ruby
Rickmasta has joined #ruby
dopie has left #ruby ["Leaving"]
TheMoonMaster has quit [Ping timeout: 272 seconds]
casadei has quit [Remote host closed the connection]
nobitanobi has joined #ruby
neohunter has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hectortrope has joined #ruby
krz has quit [Ping timeout: 256 seconds]
cosmicexplorer has joined #ruby
io_syl has quit []
kenneth has joined #ruby
balazs has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yh__ has joined #ruby
aganov has joined #ruby
tuelz has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jack_rabbit has quit [Ping timeout: 272 seconds]
wolfleemeta_ has joined #ruby
charliesome has joined #ruby
bruno- has joined #ruby
jack_rabbit has joined #ruby
P1RATEZ has quit []
thiagovsk has quit [Quit: Connection closed for inactivity]
wolfleemeta has quit [Ping timeout: 245 seconds]
tuelz has quit [Ping timeout: 272 seconds]
wolfleemeta_ has quit [Remote host closed the connection]
wolfleemeta_ has joined #ruby
mikecmpbll has quit [Quit: ciao.]
P1RATEZ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
ramfjord has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
SouL_|_ has quit [Ping timeout: 264 seconds]
balazs has joined #ruby
Parker0 has joined #ruby
Parker0 has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has joined #ruby
rippa has joined #ruby
kenneth has joined #ruby
f3lp has quit [Ping timeout: 252 seconds]
MatthewsFace has quit [Remote host closed the connection]
rubie has quit []
zreisman has joined #ruby
rubie has joined #ruby
C1V0 has quit []
<baweaver> Is it bad that I take a great deal of pleasure in taking a massive Java/C++ program and compacting it to a one-liner in Ruby/Scala?
mrdmi_ has quit [Ping timeout: 276 seconds]
<havenwood> baweaver: \o/
<baweaver> 117 lines
<baweaver> https://gist.github.com/baweaver/9964225a7600cf7561cb - Mine is 5 lines of actual code, and only because I'm using decent names for things.
lidenskap has joined #ruby
yaw has joined #ruby
bplaxco has quit [Quit: Leaving]
icebourg has quit []
jack_rabbit has quit [Ping timeout: 240 seconds]
i8igmac has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 276 seconds]
mrdmi_ has joined #ruby
fabrice31 has joined #ruby
djbkd has joined #ruby
<Aeyrix> baweaver: I kind of think the Java method is quite inefficient.
<baweaver> Side note, if anyone has a better way, feel free. That was just me hammering something out in 10-15
fabrice31 has quit [Ping timeout: 245 seconds]
<Aeyrix> idk i think you reached under par for code golf there
<baweaver> The original was one line using names like cs, xs, and as
<baweaver> too much Haskell
<baweaver> bad habits form
<Aeyrix> ;-;
<Aeyrix> No thanks.
ahmetkapikiran has joined #ruby
<baweaver> I jump about languages a lot for amusements sakes
<baweaver> Haskell at least is good to get in a certain mindset of programming
<Aeyrix> I really struggle with finding a place for Haskell.
<baweaver> Shame Ruby doesn't have native TCO though
<baweaver> Primarily financial
<havenwood> baweaver: I patch tco when I compile. Easy enough.
io_syl has joined #ruby
<baweaver> Yeah, you can, just saying I wish it was native from anything
<baweaver> There was some reason, but I'd have to find it again.
GriffinHeart has joined #ruby
<havenwood> baweaver: You have to disable trace to enable tco. Pick your poison.
<Aeyrix> Heh.
<baweaver> Trace being stacktrace or what?
* baweaver is googling about
horsecowdog has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
rikai has quit [Ping timeout: 244 seconds]
<baweaver> Yeah, that was the issue
<baweaver> was reading through instruction sequence
mrdmi_ has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
SOLDIERz has joined #ruby
<Aeyrix> Mhm.
jack_rabbit has joined #ruby
horsecowdog has quit [Ping timeout: 246 seconds]
<baweaver> Ah, GVR mentioned stack trace issues as a problem. Explains Python at least
<flughafen> morning guys
devoldmx has joined #ruby
<Aeyrix> That issue explains the existence of Python?
<flughafen> and gal(s)
<Aeyrix> Yo.
<baweaver> Well, its lack of TCO
* baweaver is mostly asleep by now
<wasamasa> let's refuse making backtraces easy to read by incorporating exception handling into the language
Feyn has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 258 seconds]
mrdmi_ has joined #ruby
RegulationD has joined #ruby
balazs has quit [Ping timeout: 246 seconds]
hectortrope has quit [Quit: WeeChat 0.4.2]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
gaboesquivel has quit [Remote host closed the connection]
jenrzzz has joined #ruby
rikai has joined #ruby
sinequanon has joined #ruby
riotjones has joined #ruby
shuber_ has joined #ruby
commondream has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
Oka has quit [Quit: さようなら]
SouL_|_ has joined #ruby
ahmetkapikiran has joined #ruby
shuber_ has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
commondream has quit [Ping timeout: 258 seconds]
Kiranico has joined #ruby
cjim_ has quit [Quit: (null)]
mrdmi_ has quit [Ping timeout: 256 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
gambl0re has joined #ruby
affenhoden has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
mrdmi_ has joined #ruby
Kiranico has quit [Ping timeout: 256 seconds]
unshadow has joined #ruby
jack_rabbit has quit [Ping timeout: 265 seconds]
amclain has quit [Quit: Leaving]
wolfleemeta__ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
sinequanon has quit []
wolfleemeta_ has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
shock_one has joined #ruby
michael_mbp has quit [Excess Flood]
djellemah has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
Jarboe has quit []
michael_mbp has joined #ruby
ahmetkapikiran has joined #ruby
aswen has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 246 seconds]
A205B064 has joined #ruby
tubuliferous has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
sinequanon has joined #ruby
Hirzu_ has joined #ruby
tubuliferous has quit [Ping timeout: 272 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
woodruffw has quit [Quit: And then he took off.]
s2013 has joined #ruby
Sawbones has joined #ruby
woodruffw has joined #ruby
rubie has quit [*.net *.split]
scruple has quit [*.net *.split]
mrsolow has quit [*.net *.split]
Kharma has quit [*.net *.split]
scottstamp has quit [*.net *.split]
mengu has joined #ruby
mengu has joined #ruby
<zenspider> I love tco
hanmac1 has joined #ruby
woodruffw has quit [Client Quit]
woodruffw has joined #ruby
Hirzu has quit [Ping timeout: 245 seconds]
sinequanon has quit []
<ebonics> zenspider, does ruby actually have tco
doertedev has quit [Quit: leaving]
Sawbones has quit [Ping timeout: 264 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dru` has quit [Ping timeout: 255 seconds]
<zenspider> it's a build option and an option you can pass in when building an instruction sequence
<Obfuscate> baweaver: lambda { |x| x.shift.product *x }.call numbers.map { |n| LETTERS[n-2] }
Channel6 has quit [Quit: Leaving]
sent1nel has joined #ruby
<ebonics> thats pretty sad
<ebonics> java doesnt even jave tco
towski_ has joined #ruby
sent1nel has quit [Remote host closed the connection]
<Aeyrix> jave
<Aeyrix> jive
* baweaver starts poking at Obfuscate's example
<Aeyrix> Go to bed.
fabrice31 has joined #ruby
gagrio has joined #ruby
gagrio has quit [Remote host closed the connection]
exons is now known as ex0ns
rdark has joined #ruby
* Obfuscate begins the teeth-brushing ritual.
krz has joined #ruby
hardlin3r has joined #ruby
* Aeyrix prepares to go home.
zenguy_pc has quit [Ping timeout: 252 seconds]
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
Blaguvest has joined #ruby
zenguy_pc has joined #ruby
ponga has quit [Read error: Connection reset by peer]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
ponga has joined #ruby
abuzze has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
abuzze_ has joined #ruby
sent1nel has joined #ruby
kt2 has quit [Quit: ...]
abuzze has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
<hanmac1> ebonics: what the heck is tco?
<ebonics> hanmac1, tail call optimization
<ebonics> its when the gc will remove objects that are out of scope before the method exits
<ebonics> ie. in recursion
terlar has joined #ruby
codecop has joined #ruby
<hanmac1> ebonics: did you checkout Enumerable#inject?
apakatt has joined #ruby
<ebonics> hanmac1, idk maybe i never get to use ruby
<ebonics> im just here to look pretty
<ebonics> and learn some stuff by listening
abuzze_ has quit [Read error: Connection reset by peer]
ringarin has joined #ruby
abuzze has joined #ruby
<baweaver> >> h, *t = [1,2,3,4,5]; p h
<ruboto> baweaver # => 1 ...check link for more (https://eval.in/368553)
<baweaver> >> h, *t = [1,2,3,4,5]; p t
<ruboto> baweaver # => [2, 3, 4, 5] ...check link for more (https://eval.in/368554)
<baweaver> Still one of my newer favorites
<ebonics> ah cool hanmac1 yeah ive seen that before
<ebonics> tco is actually really necessary in ruby i think
<ebonics> it has a lot of dependence on it
sent1nel has quit [Remote host closed the connection]
shuber_ has joined #ruby
jayeshsolanki has quit [Ping timeout: 258 seconds]
<zenspider> ebonics: that's not tco
baroquebobcat has quit [Ping timeout: 272 seconds]
<ebonics> zenspider, ?
dreinull75 has joined #ruby
wallerdev has quit [Quit: wallerdev]
abuzze has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
<ebonics> what's not tco zenspider
<zenspider> working on it...
spider-mario has quit [Remote host closed the connection]
<zenspider> tco means that when you make a "tail call" ((leaf node) function call that will be the result of the entire function expression) the language will not create an extra stack entry for the new call and replace the current stack item w/ the new. recursion is a subset, tco applies to ANY tail call
stanford_drone has joined #ruby
<dreinull75> I'm using a presenter class to build some strings and numbers. Is there an elegant way to strip all strings originating from that class if String and strftime every date without explicitly calling those methods? Like an initializer but on the other end?
<ebonics> zenspider, i dont think thats true
<ebonics> thats not what my understanding of what tco is anyway, maybe im wrong
<ebonics> i dont see how you can replace the stack
<zenspider> dreinull75: strip? can you describe it differently?
<zenspider> ebonics: the GC isn't involved (or if it is, it is incidental)
<ebonics> a huge argument against bothering with tco in java is that you run out of stack before you run out of heap space
pardusf has quit [Read error: Connection reset by peer]
shuber_ has quit [Ping timeout: 272 seconds]
<dreinull75> zenspider just String#strip on any String that is returned by my Presenter.
<dreinull75> like a post call hook or something.
<zenspider> dreinull75: you want to call it w/o calling it?
<dreinull75> yes
dumdedum has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tuelz has joined #ruby
<ebonics> zenspider, are you saying that that's the definition of tco
<dreinull75> just doing some research if that's a good idea
<ebonics> or just how it is in ruby
<zenspider> ebonics: "replace the stack" is perhaps a bit naive a description
<ebonics> because in java it's the JIT
<zenspider> you basically longjmp to the new call site instead of calling it
<ebonics> but i don't think ruby has a JIT
<zenspider> "If the last thing a routine does before it returns is call another routine, rather than doing a jump-and-add-stack-frame immediately followed by a pop-stack-frame-and-return-to-caller, it should be safe to simply jump to the start of the second routine, letting it re-use the first routine's stack frame (environment)."
baweaver has quit [Remote host closed the connection]
<Obfuscate> ebonics: That's a reasonable description in general. The only thing TCO requires is that the caller's call frame is replaced by the callee's when the call is in tail-context.
fabrice31 has quit [Remote host closed the connection]
<Obfuscate> Hopefully it's not actually longjmp, but the effect is the same. :)
parduse has joined #ruby
fabrice31 has joined #ruby
<zenspider> JIT has nothing (specifically) to do with this.
<ebonics> so you're saying it's built into the ruby runtime
mengu has quit [Ping timeout: 264 seconds]
ahmetkapikiran has joined #ruby
<ebonics> especially for ruby i cant see that being the case
<ebonics> maybe for a compiled language
bluOxigen has left #ruby [#ruby]
<ebonics> but im pretty ignorant overall so maybe youre right :p
<zenspider> what does compiling or jit have to do with it, in your mind?
<ebonics> to do tco i think you need to have to analyze control flow and do a lot of ahead of time analysis
<ebonics> ie. something the runtime wouldnt do
neohunter has joined #ruby
<zenspider> Obfuscate: "Tail call elimination allows procedure calls in tail position to be implemented as efficiently as goto statements"
tuelz has quit [Ping timeout: 250 seconds]
<Obfuscate> zenspider: I am well aware.
scottstamp has joined #ruby
<zenspider> Obfuscate: just basically saying that it is essentially a longjmp (tho hopefully you're not actually coding in C)
rubie has joined #ruby
<ebonics> like how can it be safe to jmp if your method isnt atomic
<Obfuscate> ebonics: It's trivial to determine when TCO can be used. Doing this optimization at runtime is not problematic.
<zenspider> ebonics: you don't need to analyze control flow (separately, at least). you can tell as you're traversing an AST
mrsolow has joined #ruby
fella5s has joined #ruby
<ebonics> i dont know anything about ruby synchronization so yeah
<ebonics> i understand for a single thread it's trivial
gagrio has joined #ruby
devoldmx_ has quit [Remote host closed the connection]
<Obfuscate> zenspider: fwiw, I was simply noting it's not actually a longjmp, which (as someone who works a great deal directly with x86 assembly) is a subtly different thing.
<zenspider> sure. absolutely. and I'm sorry you work in x86 a lot. :P
<ebonics> haha
<zenspider> tho, if you do.... you should help me update wilson!
hanmac has quit [Ping timeout: 256 seconds]
<Obfuscate> I find I enjoy the low-level hackery a bit more, to be honest.
<zenspider> help me do HORRIBLE things in ruby!
<ebonics> Obfuscate, do you work on embedded systems or something
<ebonics> i cant think of any practical reason to still do x86 asm lol
<ebonics> unless its for firmware or something
Kharma has joined #ruby
<zenspider> low-level hackery is one thing. low-level hackery on intel is another...
<agent_white> I haven't coded anything in a month. This conversation is making my head spin... in a good way! :D
<Obfuscate> ebonics: Parsers and compilers, with SIMD on x86 as a primary target.
towski_ has quit [Remote host closed the connection]
<Obfuscate> zenspider: That is... not going to happen. :P
<zenspider> awwwwwww cmon!
<zenspider> you ... chicken?
<ebonics> sooo what you're saying is i shouldn't argue with you about optimization
<agent_white> BAWKBAWK
<zenspider> haha
Hirzu has joined #ruby
<ebonics> my dad would still beat up your dad so it's cool
Hirzu_ has quit [Read error: Connection reset by peer]
<Obfuscate> zenspider: My primary project (NLP-related) saps most of my coding time. I waste the rest on IRC.
<ebonics> god i hate NLP
krz has quit [Ping timeout: 244 seconds]
abuzze has quit [Read error: Connection reset by peer]
<ponga> somebody said nlp?
<zenspider> Obfuscate: that's twice tonight I've felt sorry for you :P
<ddv> NLP?
<ebonics> if i have to use another synset in my life ima just end it
abuzze has joined #ruby
<zenspider> ddv: a unicorn
<Obfuscate> By NLP, I mean natural language processing, and not whatever other horrible things that acronym is unfortunately associated with.
<ebonics> me too
scuey has joined #ruby
<ddv> zenspider: your mom?
<ponga> Obfuscate +1
bronson_ has quit [Remote host closed the connection]
<zenspider> ddv: something like that
<ddv> ok
<ebonics> i was stuck on a project for a couple months doing sentiment analysis
<ebonics> and it was above my head at the time
<ebonics> i just remember being insanely frustrated
vivekananda has joined #ruby
<zenspider> because finding unicorns are frustrating
<zenspider> is
<zenspider> ooooh! neato idea! https://github.com/tonsky/FiraCode
<zenspider> programming font with coding ligatures
<ebonics> o god lol
<apeiros> fancy
<ebonics> still better than brainfuck i guess
io_syl has quit []
<zenspider> I wonder if emacs will render ligatures
simurg has joined #ruby
<Obfuscate> ebonics: I mostly stick to parsing and language analysis (with an aim to improve translation), so for me it's a great deal of experimenting with different algorithms.
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fella5s has quit [Read error: Connection reset by peer]
arietis has joined #ruby
<ebonics> Obfuscate, i think translation was the easiest part. not necessarily translation but it was the easiest technique to do (i forgot what its called) but finding senses through matching corpuses in different languages
<ebonics> i actually enjoyed that part haha
vivekananda has quit [Ping timeout: 255 seconds]
<ebonics> but that's cool Obfuscate, what language(s) do you use for it?
kinduff has quit [Ping timeout: 245 seconds]
<Obfuscate> ebonics: Accurate translation is a problem that even Google struggles with. It's not easy, unless you're merely attempting statistical translation.
<Obfuscate> English, Japanese and Chinese.
<ebonics> Obfuscate, i didn't mean necessarily translation but idk what the term is called
<Obfuscate> Most code is in C++, a DSL backed by LLVM and a little postgres.
<ebonics> Obfuscate, it's when you take an english word in a corpus, then you take a chinese corpus with an "exact match" sense that's been tagged, then translate that back to english
longfeet_ has quit [Ping timeout: 255 seconds]
<ebonics> chinese/whatever :P
<Obfuscate> Defilement? ;)
<agent_white> tomflint: /join #ecf
<agent_white> woops
<agent_white> wrong... everything!
<ebonics> Obfuscate, no it's a legit NLP technique
<ebonics> it's better than a lot of bayesian approaches
<apeiros> zenspider: are you on twitter?
<Aeyrix> Same name.
hanmac has joined #ruby
<apeiros> right. see it. odd, why doesn't twitter client complete it for me?
TigerWolf has quit [Ping timeout: 252 seconds]
<Obfuscate> ebonics: I've read about approaches like that, but don't recall a name for it, and it's not something that interests me.
abuzze_ has joined #ruby
zenspider has quit [Quit: bye]
zenspider has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
xxi has quit [Ping timeout: 240 seconds]
abuzze_ has quit [Client Quit]
<ebonics> Obfuscate, do you work for a big corporation or something?
<zenspider> let's try this again... my client freaked out. not sure if client or proxy
<zenspider> apeiros: aye. @the_zenspider
<apeiros> oh, not @zenspider?
<zenspider> apeiros: no, that's not me... and they never seem to use it except for reading and that's enough for twitter to not give it back to me
wildroman2 has joined #ruby
nfk|laptop has joined #ruby
krz has joined #ruby
kenneth has joined #ruby
<zenspider> (I had it originally, then blew up the account because I deemed twitter only for announcing bowel movements)
CloCkWeRX has quit [Ping timeout: 272 seconds]
<Obfuscate> ebonics: No, not quite. A fairly small operation where analyzing text is the primary work.
<ebonics> Obfuscate, sounds like some HFT shit ;P
P1RATEZ has quit []
<ebonics> that would explain why you use asm :D
<Obfuscate> ebonics: I'm not sure what that acronym is supposed to be, but it's about time for me to sleep...
<zenspider> Obfuscate: wouldn't you rather write it in ruby?!?! wilson!
<ebonics> Obfuscate, high frequency trading
diegoviola has joined #ruby
<ebonics> ive heard of people applying NLP/LSA techniques to it
<ebonics> anyway seeya
<Obfuscate> ebonics: Ah, negative. That might be interesting though.
horsecowdog has joined #ruby
ponga has quit [Quit: Leaving...]
User458764 has joined #ruby
<Obfuscate> zenspider: Too slow. Just dropping AVX alone would be tragic.
<zenspider> I dunno what AVX is, but I don't see how you can say it is too slow. wilson lets you write fast
nfk has joined #ruby
nfk|laptop has quit [Ping timeout: 272 seconds]
SOLDIERz has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> Bonjour
horsecowdog has quit [Ping timeout: 252 seconds]
Juanchito has joined #ruby
Macaveli has joined #ruby
jgt1 has joined #ruby
RegulationD has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Obfuscate> zenspider: There's actually a few reasons to avoid ruby: especially the type system, garbage collection, MRI and threads... but mainly it's that a great deal of the work consists of scanning of large sparse boolean matrices where the cache is a major concern and at this point there's a fairly heavy investment in LLVM.
CloCkWeRX has joined #ruby
doertedev has joined #ruby
Beoran_ has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apakatt has left #ruby ["?"]
* Obfuscate vanishes.
bMalum has joined #ruby
SOLDIERz has quit [Ping timeout: 256 seconds]
nfk has quit [Quit: yawn]
blackmesa has joined #ruby
Beoran has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
DerisiveLogic has quit [Ping timeout: 244 seconds]
benegget_ has joined #ruby
beneggett has quit [Ping timeout: 256 seconds]
CloCkWeRX has quit [Ping timeout: 256 seconds]
arup_r has quit [Remote host closed the connection]
<stanford_drone> Does anyone know C/C++, Computer Vision/Image Processing, Machine Learning, AI, linux systems programming, or electronics? I'm looking for a programmer to join my Startup. We're going to China (manufacturing is there) from July to November. We're a team of 4. We're building a flying computer. A drone that you can play games with and install apps on.
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
cosmicexplorer has quit [Ping timeout: 246 seconds]
<apeiros> zenspider: wilson? isn't that your inline assembler?
P1RATEZ has joined #ruby
<apeiros> stanford_drone: you do realize that this is #ruby, not ##c or (whatever c++' channel is)?
flak has joined #ruby
charliesome has quit [Quit: zzz]
flak is now known as Guest44683
<dtscode> apeiros: Funnily enough, its ##c++
<apeiros> dtscode: oh, right, + is valid in channel names.
<dtscode> stanford_drone: Literally none of those are related to ruby
<apeiros> I tend to think channel names have the same rules as nicknames, but they don't.
<dtscode> At least not directly
<apeiros> you can even have control characters in channel names. silly…
<dtscode> apeiros: Nope. Nicknames are more rigerous
tejasmanohar has left #ruby ["WeeChat 1.1.1"]
<apeiros> dtscode: I know. I just rewrote my irc message parser 2 weeks ago…
ArchRogem has joined #ruby
<dtscode> Nice
<dtscode> I still need to write mine
<apeiros> sadly freenode breaks rfc2812
* apeiros points at that user with nick 7F1AALP94 - which is impossible according to rfc (leading digit)
shuber_ has joined #ruby
<dtscode> Freenode breaks a lot of things ;-;
rippa has quit [Ping timeout: 255 seconds]
<apeiros> what else does it break?
<apeiros> I noticed the welcome message does not contain the full mask, which is against the rfc as far as I understood. never verified that, though.
wildroman2 has quit [Remote host closed the connection]
<dtscode> Uh I actually can't remember off the top of my head. I'm writing a shell in C atm, so my work with the RFC and IRC is a bit rusty
<apeiros> kk
<dtscode> Protip: Don't do anything in c ;-;
<apeiros> heh
<stanford_drone> dtscode, good programmers can use multiple languages.
<ebonics> myth
<adaedra> no, real programmers use butterflies.
<agent_white> dtscode: Get out of my goddamned channels.
<ebonics> i am a god at basic
<dtscode> agent_white: GTFO you noob
shuber_ has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
<agent_white> adaedra: Oh no, you must've been mistaken! Real programmers ARE butterflies.
<dtscode> stanford_drone: It still doesn't really belong here (I'm guessing). And I wouldn't say good programmers can neccesarily use multiple languages
<dtscode> agent_white: Do you like not read XKCD?
<sevenseacat> stanford_drone: we don't really like advertising.
darkf has joined #ruby
<ebonics> not to mention that sounds like the least commercially viable thing in existence
<dtscode> ebonics: You've never gotten the urge to play apps on your drone?
<dtscode> God damn it agent_white
benegget_ has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<ebonics> lol :/
ndrei has quit [Ping timeout: 256 seconds]
ta has joined #ruby
zreisman has quit [Remote host closed the connection]
<stanford_drone> “If I had asked people what they wanted, they would have said faster horses.”
<stanford_drone> ― Henry Ford
einarj has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
<agent_white> Who _doesn't_ want a faster horse?!
<sevenseacat> vroom vroom horsey
<darkf> I sure do, with racestripes
* sevenseacat revs
<ebonics> idk dude like
<ebonics> how are you going to be able to walk and play your video game
* darkf rotates the horse's ears like motorcycle accelerators
<ebonics> does it fly automatically
<darkf> only if it's a pegasus
<darkf> luxury model
<ebonics> im imagining running into walls and shit
<darkf> well, the horse doesn't really want to run into walls
<darkf> trees, though...
<agent_white> As long as it doesn't run into trees. Last time I rode a horse it went into a tree.
<agent_white> ^^
<darkf> might also want to do a mating ritual with other horses so be careful when riding in packs
<apeiros> agent_white: did you ride a blind horse?
<darkf> unless you're a bull rider
<apeiros> agent_white: or was it suicidal? o0
<agent_white> apeiros: Nope! Though I did learn horses do not have a brake pedal.
<darkf> so, welcome to ##cars everyone
<sevenseacat> lol
<darkf> I knew there was a reason we taught cars as examples for OOP
ndrei has joined #ruby
dtscode has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby
tubuliferous has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
<darkf> so does anyone actually use callcc in ruby?
<sevenseacat> never heard of it.
<apeiros> darkf: wasn't that removed in 1.9?
<apeiros> at least in 2.2 it's no longer present.
<darkf> really?
<apeiros> I have. it was fun. bent my mind a bit, tho.
ki0 has joined #ruby
lidenskap has quit [Remote host closed the connection]
<darkf> it's not in Kernel anymore I guess
<apeiros> ah, so they moved it out of core
<ebonics> i personally use html to program my programs
gkra has quit [Ping timeout: 264 seconds]
<darkf> apeiros: what did you use it for, out of curiosity?
<apeiros> darkf: no idea
<darkf> hehe
<apeiros> that's ~10y ago
<darkf> yowza
<apeiros> and like flip-flops, I'd have to think quite hard before using it again :)
<apeiros> hm, not true. I think I'd have less trouble with flip-flops.
<darkf> I attempted to use it last year for some strange abstraction, but it intefered oddly with a C extension I was using so I had to give it up and do something more sane, unfortunately
<darkf> (I think I could have even used generators.)
<apeiros> but interesting that you bring it up
<apeiros> I just read a bit about stackless languages a week or two ago
ta has quit [Remote host closed the connection]
<apeiros> and it said that continuations were one way to implement a stackless language
<darkf> they're pretty nifty
<darkf> well, funny you bring _that_ up
<darkf> yesterday I was thinking about how you can just have programs in CPS and use a trampoline to evaluate continuations
P1RATEZ has quit []
mengu has joined #ruby
mengu has joined #ruby
<apeiros> CPS?
<darkf> continuation-passing style
tubuliferous has quit [Ping timeout: 244 seconds]
<apeiros> ah
bronson has joined #ruby
<darkf> the idea would be that you just return a continuation closure after each statement or whatever and then a trampoline would execute it (which would not grow the stack)
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cassianoleal has quit [Quit: Textual IRC Client: www.textualapp.com]
<unshadow> So, I want to test: a = gets, if a =~ somthing, elsif a =~ somthing_else, else gets again and check
<unshadow> what is the best way to do it ?
cassianoleal has joined #ruby
<darkf> can't you use patterns in switch/case expressions?
<agent_white> while
bruno- has joined #ruby
<apeiros> gotwhatiwant = false: until gotwhatiwant …
<agent_white> ooo
<apeiros> darkf: yes
<apeiros> unshadow: alternatively use something like highline
<darkf> yeah, so switch gets; case /foo/ ...; end
<darkf> in a loop if you must
<apeiros> it deals with "ask user until input fits" patterns iirc.
<ebonics> a = gets: until a =~ something || a =~ something_else
<apeiros> darkf: well, case/when, not switch/case
<unshadow> a = gets until a =~ /(a|b)/i
<darkf> ah, yes
<ebonics> yeah but wanna fight unshadow
<unshadow> nice ideas :) thanks
<unshadow> aperios, what's highline ?
<apeiros> who's aperios?
<unshadow> ....
<unshadow> :)
rubie has quit [Remote host closed the connection]
centrx has joined #ruby
<unshadow> * apeiros
<apeiros> a gem
<darkf> apeiros: anyway I think certain languages (especially functional ones) use this model to evaluate, so I find it interesting. I wonder how tenable it would be to implement such an evaluator in Ruby. :)
<apeiros> protip: use tab completion for nicks
bronson has quit [Ping timeout: 246 seconds]
<unshadow> not in irssi ^^
fella5s has joined #ruby
chthon has joined #ruby
<apeiros> unshadow: I'm pretty sure irssi has tab completion
<unshadow> nm, apperntly working.. thanks
<agent_white> unshadow: ? I use tab completion all the time. I just used it right now.
<unshadow> apeiros:
<apeiros> pebcak :-p
<unshadow> thanks for the tip
<apeiros> yw
<agent_white> Turn it off, then on again!
<ebonics> does anyone use elastic beanstalk
scuey has quit [Ping timeout: 272 seconds]
<ebonics> wtf does it mean when it says health: red and an excalamation mark
<ebonics> it's scaring me but it just stays like that all the time
anisha has joined #ruby
SouL_|_ has quit [Ping timeout: 264 seconds]
lkba_ has quit [Ping timeout: 258 seconds]
<agent_white> shevy: PINGPINGPING
bruno- has quit [Ping timeout: 252 seconds]
CloCkWeRX has joined #ruby
seitensei has quit [Read error: Connection reset by peer]
<agent_white> ebonics: RIP in peace ebonics
<ebonics> agent_white, it's been like that for like a couple weeks i think
<ebonics> so it can't be that critical
<agent_white> ebonics: You're speaking to us from the afterlife. What's it like?
Hounddog has joined #ruby
<ebonics> lol
<apeiros> hmmmmm…
<apeiros> deploy to production = release
<apeiros> deploy to staging = stage
<apeiros> deploy to acceptance = ???
seitensei has joined #ruby
seitensei has joined #ruby
mrsolo has joined #ruby
<adaedra> apeiros: pray
marr has joined #ruby
ahmetkapikiran has joined #ruby
arup_r has joined #ruby
User458764 has joined #ruby
lele has joined #ruby
<sevenseacat> after much umming and ahhing I think I've settled on DejaVu Sans Mono for an editor font
sigurding has joined #ruby
* darkf continues using Consolas or whatever
SouL_|_ has joined #ruby
* adaedra uses Fira Mono
joonty has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
blackmesa has joined #ruby
edwinvdgraaf has joined #ruby
yeticry has quit [Ping timeout: 276 seconds]
blueOxigen has joined #ruby
HotCoder has joined #ruby
dEPy has joined #ruby
<dreinull75> can someone put me on track with Modules inside other modules? Not working: http://fpaste.org/224578/84137143/
* agent_white hugs his Dina
yeticry has joined #ruby
bkxd has joined #ruby
<dreinull75> ok, did include B first, forgot that in that pastie
krz has quit [Ping timeout: 258 seconds]
edwinvdg_ has joined #ruby
avat has joined #ruby
quimrstorres has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 252 seconds]
<apeiros> sevenseacat: I use that one too. I might try that firacode zenspider mentioned.
fabrice31_ has joined #ruby
peteykun has joined #ruby
bMalum has quit [Quit: bMalum]
Igorshp has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
mengu has quit [Remote host closed the connection]
A205B064 has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
bMalum has joined #ruby
simurg has quit [Remote host closed the connection]
tuelz has joined #ruby
dEPy has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
quimrstorres has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
fabrice31_ has quit [Remote host closed the connection]
selu has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
tuelz has quit [Ping timeout: 240 seconds]
hectortrope has joined #ruby
wookiehangover has quit [Ping timeout: 256 seconds]
blueOxigen has quit [Ping timeout: 256 seconds]
wookiehangover has joined #ruby
shuber_ has joined #ruby
andikr has joined #ruby
quimrstorres has quit [Remote host closed the connection]
davedev24_ has quit [Remote host closed the connection]
<hectortrope> Hello Guys anyone here have experience with Haskell?? How do you compare haskell with ruby??
<adaedra> Upi fpm
<adaedra> grmbl
<adaedra> You don't compare languages
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<hectortrope> adaedra: not comparing I just want to learn both so enquiring
<darkf> learn both and decide yourself then
shuber_ has quit [Ping timeout: 265 seconds]
<darkf> they are different beasts
<adaedra> then learn both and see by yourself
<hectortrope> darkf: it take 1+ year to learn Haskel
<adaedra> and ?
<adaedra> it takes time to learn anything
bMalum has quit [Quit: bMalum]
beneggett has joined #ruby
<hectortrope> So I can't differentiate on own i just want to listen to experienced and professionals
<adaedra> and it's never wasted time
<sevenseacat> learn both.
<hectortrope> adaedra: true however listening or asking advise from experts also not a bad thing I guess
<adaedra> Comparaison between languages is subjective and/or dependant to context
<adaedra> Best way to decide if one language is good for you is trying it out
<hectortrope> ok thanks adaedra
shock_one has quit [Remote host closed the connection]
bkxd_ has joined #ruby
shock_one has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
leafybasil has quit [Remote host closed the connection]
wildroman2 has joined #ruby
jmhmccr has quit [Quit: Connection closed for inactivity]
denver has joined #ruby
bluOxigen has joined #ruby
peteykun has quit [Quit: Leaving]
codecop has quit [Remote host closed the connection]
lidenskap has joined #ruby
turtil has quit [Quit: WeeChat 1.1.1]
wildroman2 has quit [Ping timeout: 246 seconds]
shock_one has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 256 seconds]
mandarinkin has joined #ruby
<certainty> hectortrope: learn haskell
ndrei has joined #ruby
ponga has joined #ruby
shock_one has joined #ruby
lidenskap has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
sandelius has joined #ruby
horsecowdog has joined #ruby
sdothum has joined #ruby
<hectortrope> certainty: hi
bruno- has quit [Ping timeout: 265 seconds]
bMalum has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
tautvydas has quit [Remote host closed the connection]
horsecowdog has quit [Ping timeout: 244 seconds]
<certainty> hectortrope: hi
<certainty> also learn ruby :)
<certainty> if i were to start again, i'd learn haskell first
<darkf> yeah, same here
sts has left #ruby [#ruby]
c0m0 has joined #ruby
<darkf> gives you a much better view of the fundamentals and how to structure data/logic
ponga has quit [Quit: Leaving...]
Spami has quit [Quit: This computer has gone to sleep]
xxneolithicxx has quit [Ping timeout: 255 seconds]
RegulationD has joined #ruby
<arup_r> How can I get string from 128-1-ab2f9b77aee1096fd5e4aee89ca89881.jpg to 128-1.jpg ?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pwnz0r has joined #ruby
<apeiros> arup_r: what did you try?
<sevenseacat> i'd have paid more attention in my haskell class at uni.
<arup_r> apeiros: I am still trying --- I tried - (.*)-*.jpg\z ,, not working..
<canton7> arup_r, what do you think '-*.' does?
stanford_drone has quit [Quit: Leaving]
<arup_r> canton7: done http://rubular.com/r/CWTRWZrrDd
<arup_r> I had a mistake
RegulationD has quit [Ping timeout: 245 seconds]
<canton7> ok, why is the {1} there? ;)
withnale_ has joined #ruby
gizless has joined #ruby
<canton7> also, what do you think '.jpg' matches?
<arup_r> typo canton7: (.*)(-.*\.jpg)\z
<hanmac1> arup_r: i did this:
<hanmac1> >> "128-1-ab2f9b77aee1096fd5e4aee89ca89881.jpg".scan(/(\w+-\w+)-\w+(\.\w+)/).join
<ruboto> hanmac1 # => "128-1.jpg" (https://eval.in/368607)
<canton7> that's better ;0
<canton7> * ;)
<arup_r> canton7: which one?
leafybasil has joined #ruby
<canton7> your last one
leafybasil has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 244 seconds]
<hanmac1> canton7: what about my one?
leafybasil has joined #ruby
<canton7> different set of assumptions, also valid :P
ringarin has quit [Read error: Connection reset by peer]
<arup_r> hanmac1: thanks... I am ugly in Regex...
<apeiros> I'd use sub, but that's just me.
<ytti> and without regexp
<ytti> [1] pry(main)> file = '128-1-ab2f9b77aee1096fd5e4aee89ca89881.jpg'
<apeiros> depends on the logic. but you can do it with a regex with 8 chars and an empty string as replacement
<ytti> [2] pry(main)> [file.split('.').first.split('-')[0..1].join('-'), file.split('.').last].join('.')y(main)> plit('.').first.split('-')[0..1].join('-'), file.split('.').last].join('.')
<ytti> => "128-1.jpg"
<ytti> [3] pry(main)>
<apeiros> ytti: lol, awesome
<ytti> that paste looks broken
<ytti> it's not that bad, i swear
bMalum has quit [Quit: bMalum]
<apeiros> .sub(/-\h+(?=\.)/, '')
Spami has joined #ruby
quimrstorres has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<apeiros> if the hex segment is fixed length, you can do it without regex much more efficiently, though.
<apeiros> and given that it is 32 digits, I'd bet it is fixed size.
<apeiros> lunch
sdothum has joined #ruby
atox has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
iamninja has quit [Read error: Connection reset by peer]
krz has joined #ruby
<shevy> apeiros don't fatten up!
iamninja has joined #ruby
kaspernj has joined #ruby
SouL_|_ has quit [Ping timeout: 264 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
davedev24_ has joined #ruby
bkxd has joined #ruby
leafybas_ has joined #ruby
ahmetkapikiran has joined #ruby
<dreinull75> nobody knows how to handle modules?
<rom1504> no nobody
<dreinull75> sad state :)
<shevy> ruby modules?
serivich has joined #ruby
ahmetkapikiran has quit [Client Quit]
<dreinull75> posted a pastie a couple of lines up
<shevy> I woke up 10 minutes ago!
<dreinull75> goodness
<shevy> everything above my screen is ancient history :)
bkxd_ has quit [Ping timeout: 258 seconds]
<dreinull75> good morning then, I'm getting ready for lunch …
<shevy> dreinull75 they reside in different namespaces
GriffinHeart has quit [Remote host closed the connection]
wjimenez5271 has quit [Ping timeout: 264 seconds]
leafybasil has quit [Ping timeout: 244 seconds]
<dreinull75> shevy I want to keep them apart because one is a clean API I'm building and the second provides some helper methods to the first. Right now everything is in one module.
<shevy> also your code can not work from that pastie
<dreinull75> yes, missing the include B
<shevy> f.rb:20:in `<main>': uninitialized constant Original (NameError)
<dreinull75> missed that in the pastie
sevensea_ has joined #ruby
<shevy> you could try to subclass perhaps
sent1nel has joined #ruby
<shevy> this variant would work, in subclass-approach https://gist.github.com/shevegen/14aab600e6878dfee87c
<dreinull75> subclass would work but I'm also trying to educate myself on modules
sevenseacat has quit [Ping timeout: 244 seconds]
<shevy> well they are in a different namespace so they can not be the same
<shevy> include is more like a secret subclass
<shevy> >> module Foo; end; class Bar; include Foo; end; Bar.new.ancestors
<ruboto> shevy # => undefined method `ancestors' for #<Bar:0x410ebf00> (NoMethodError) ...check link for more (https://eval.in/368624)
<shevy> damn
<shevy> >> module Foo; end; class Bar; include Foo; end; Bar.ancestors
<ruboto> shevy # => [Bar, Foo, Object, Kernel, BasicObject] (https://eval.in/368625)
<shevy> there
<shevy> class Bar has the module Foo as part of its ancestor-chain
shuber_ has joined #ruby
<shevy> should be the same when it is a class
<shevy> >> class Foo; end; class Bar < Foo; end; Bar.ancestors
<ruboto> shevy # => [Bar, Foo, Object, Kernel, BasicObject] (https://eval.in/368627)
<shevy> \o/
tubuliferous has joined #ruby
bMalum has quit [Quit: bMalum]
sent1nel has quit [Ping timeout: 250 seconds]
n008f4g_ has joined #ruby
fabrice31_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<dreinull75> ok
fabrice31_ has quit [Remote host closed the connection]
<shevy> I have a question too, for others :)
mary5030 has joined #ruby
<shevy> are these two lines the same?
<shevy> Object.const_defined? :Foo
<shevy> defined? :Foo
shuber_ has quit [Ping timeout: 244 seconds]
<hanmac1> >> defined? :Foo
<ruboto> hanmac1 # => "expression" (https://eval.in/368630)
mengu has joined #ruby
<hanmac1> shevy i think you want defined?(Foo)
serivich has quit [Ping timeout: 272 seconds]
<shevy> damn
fabrice31 has quit [Ping timeout: 240 seconds]
<shevy> ok, so: defined? Foo
tubuliferous has quit [Ping timeout: 272 seconds]
<shevy> but are they the same? I am trying to find out if a custom namespace would be known
bronson has joined #ruby
<shevy> defined? would obviously be shorter than the first variant
<hanmac1> imo shevy you cant trust defined ... specially you cant use parameter with it
<shevy> ok
<shevy> I don't trust it
<shevy> it is a suspicious thing
<adaedra> module Foo; module Bar; end; p defined?(:Bar); p Object.const_defined?(:Bar); end
<adaedra> >> module Foo; module Bar; end; p defined?(:Bar); p Object.const_defined?(:Bar); end
<ruboto> adaedra # => "expression" ...check link for more (https://eval.in/368631)
<adaedra> mmh
<shevy> wat
<shevy> why does the second one not work
<shevy> and return false
sevensea_ has quit [Quit: Me dun like you no more.]
mary5030 has quit [Ping timeout: 256 seconds]
<hanmac1> shevy & adaedra
<hanmac1> >> module Foo; module Bar; end; [defined?(Bar), const_defined?(:Bar)]; end
<ruboto> hanmac1 # => ["constant", true] (https://eval.in/368634)
<apeiros> dreinull75: still nobody?
<adaedra> shevy: because Bar is in Foo, not Object
<dreinull75> apeiros: I might go with this here: https://eval.in/private/90dedb1d913e7f
bronson has quit [Ping timeout: 276 seconds]
Rickmasta has joined #ruby
<apeiros> ok, so somebody
tak1n has quit [Ping timeout: 250 seconds]
sandelius has joined #ruby
<dreinull75> yes, it's early :)
<shevy> adaedra aha
tak1n has joined #ruby
<dreinull75> thank you shevy.
<shevy> \o/
chinmay_dd has quit []
arquebus has joined #ruby
<dreinull75> and I learned about eval.in which I've been looking for but couldn't find.
<dreinull75> in some cases more useful than irb.
<apeiros> every day I'm eval'in
<dreinull75> off to lunch :)
<shevy> hehe
atox has quit [Remote host closed the connection]
lidenskap has joined #ruby
wolfleemeta__ has quit [Remote host closed the connection]
pwattstbd has joined #ruby
jimms has joined #ruby
bMalum has joined #ruby
wolfleemeta__ has joined #ruby
Stalkr_ has joined #ruby
jottr has joined #ruby
atox has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
bruno- has joined #ruby
Pathfinder has joined #ruby
lidenskap has quit [Ping timeout: 246 seconds]
<adaedra> ?pry dreinull75
<ruboto> dreinull75, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
fabrice31 has joined #ruby
konsolebox has quit [Quit: Leaving]
User458764 has joined #ruby
bMalum has quit [Quit: bMalum]
bruno- has quit [Ping timeout: 264 seconds]
arup_r has quit [Ping timeout: 245 seconds]
phutchins has joined #ruby
Stalkr_ has quit [Ping timeout: 276 seconds]
<shevy> what is the best way to convert one specific method in a module
<shevy> to a class method in addition to it. example
<shevy> module Foo; def bar; puts 'hi from bar'; end <-- bar should also be a module method there, but only bar, no other method in said module
<shevy> I forgot one 'end'
<jhass> shevy: module_function
ramfjord has quit [Ping timeout: 245 seconds]
<heftig> shevy: module_function :bar
<shevy> ok lemme try that
<heftig> in recent rubies def returns the method symbol, so you can do module_function def bar
DEA7TH has joined #ruby
doodlehaus has joined #ruby
<shevy> hehe
mengu has quit []
pwnz0r has quit [Remote host closed the connection]
leafybas_ has quit [Remote host closed the connection]
pwnz0r has joined #ruby
leafybasil has joined #ruby
shock_one has quit []
bkxd has quit [Ping timeout: 255 seconds]
serivich has joined #ruby
hectortrope has joined #ruby
pwnz0r has quit [Ping timeout: 265 seconds]
rodfersou has joined #ruby
jimms has quit [Remote host closed the connection]
wolfleemeta___ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
tuelz has joined #ruby
fabrice31 has joined #ruby
qwertme has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wolfleemeta__ has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
Mezjin has quit [Ping timeout: 244 seconds]
jimms has joined #ruby
tuelz has quit [Ping timeout: 244 seconds]
haxrbyte has joined #ruby
jottr has joined #ruby
bruno- has joined #ruby
scripore has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
haxrbyte_ has quit [Ping timeout: 264 seconds]
psy__ has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
chipotle has quit [Quit: cheerio]
segfalt has quit [Quit: segfalt]
jottr has quit [Ping timeout: 272 seconds]
_blizzy_ has quit [Ping timeout: 265 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
trouloulioud_dev has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
bashusr has quit [Ping timeout: 272 seconds]
troulouliou_dev has quit [Ping timeout: 265 seconds]
Guest44683 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> strangely enough, I like to decorate methods post-end style
Pro| has joined #ruby
<shevy> like:
<shevy> def foo
<shevy> end; module_function :foo
<centrx> what a rebel
<Pro|> is there way to run shell commands with user given parameters safely and catch errors
<Pro|> system(cmd, param, param, parma) would work but it doesnt capture errros
<adaedra> What do you mean, capture errors
<adaedra> Process return code or error output ?
<Pro|> error output
<Pro|> like `cmd 2>&1`would do
<adaedra> Use #reopen on $stdout
<shevy> you can append 2>&1 to your cmd too
<Pro|> how? atleast system(cmd, param,param,"2>&1") doesn't work
<adaedra> no, won't work this way
<adaedra> you can merge them into a command line string to use a shell, though
<shevy> Pro| just append to the cmd itself
dseitz has joined #ruby
<adaedra> shevy: what cmd?
<shevy> cmd = 'pkg-config --modversion glib-2.0 2>&1'
greenbagels has quit [Quit: Leaving]
<adaedra> shevy: here he calls system with multiple arguments, not through a string, which doesn't calls a shell but runs the process directly, hence not handling 2>&1
fabrice31_ has joined #ruby
<shevy> yeah, he should just use a string
<Pro|> can not use just a string
<Pro|> but how would i do this with stdout reopn?
<adaedra> stderr reopen
<adaedra> I advise you do it in a fork, though, as it will affect the current process
<adaedra> You reopen stderr to stdout, so both output will be the same (it's what 2>&1 do in shell)
xxtjaxx has quit [Remote host closed the connection]
<dreinull75> adaedra: thanks, I tried pry before but couldn't quite figure it out for my use cases
Pathfinder has quit [Ping timeout: 264 seconds]
<apeiros> not quite sure what's to figure out about pry
<apeiros> you type `pry` instead of `irb`. done.
fabrice31 has quit [Ping timeout: 246 seconds]
<apeiros> (of course, additionally you get binding.pry for within your apps)
<adaedra> wut
<adaedra> ah no
<dreinull75> well, I haven't tried it for agaes
barkerd427 is now known as zz_barkerd427
<dreinull75> I'm a casual dev
horsecowdog has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> and a casual typer!
Hirzu_ has joined #ruby
arquebus has quit [Quit: Konversation disconnected]
Hirzu has quit [Read error: Connection reset by peer]
<dreinull75> not a native if that counts as an excuse
Hirzu has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
<adaedra> not a lot of us are, iirc
horsecowdog has quit [Ping timeout: 258 seconds]
<shevy> dreinull75 I meant that in regards to "agaes", not whether one would be a native english speaker or not ;-)
startupality has joined #ruby
<dreinull75> of course
trouloulioud_dev has quit [Quit: Leaving]
<shevy> it was one reason why I could never adjust to irssi
<dreinull75> the bar is high, nevertheless
vivekananda has joined #ruby
<shevy> I type quickly, make lots of mistakes, and out those things go already! in xchat I have that edit-line here where I can make corrections
<shevy> it was especially awful when pasting multiline stuff through irssi
<shevy> channel overflow
<dreinull75> of already sent messages?
Hirzu_ has quit [Ping timeout: 244 seconds]
leafybas_ has joined #ruby
AlphaAtom has joined #ruby
<dreinull75> I'm quite fond of shout (as long as it works though).
<shevy> dunno what it was, I always ended up channel flooding when I was not careful
lidenskap has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
bronson has joined #ruby
RegulationD has joined #ruby
sankaber has joined #ruby
leafybasil has quit [Ping timeout: 264 seconds]
lidenskap has quit [Ping timeout: 265 seconds]
hectortrope has quit [Quit: WeeChat 0.4.2]
platzhirsch has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<platzhirsch> I forgot how to write short Ruby code. One-liner for a while loop with a start value ?
RegulationD has quit [Ping timeout: 255 seconds]
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
Pathfinder has joined #ruby
<adaedra> each_with_object?
postmodern has quit [Quit: Leaving]
arup_r has joined #ruby
sts has joined #ruby
doublemalt_ has joined #ruby
lotherk has quit [Remote host closed the connection]
<sts> hello folks. I'm trying to write an extension to Capistrano and I'm facing issues with my extension beeing loaded twice. The extension is installed via rubygems.
<arup_r> What is the difference between `__id__` and `object_id` ?
fabrice31_ has quit [Remote host closed the connection]
<sts> Capistrano is automatically trying to load my extension via Kernel#load, but it cannot find the file (because its from a Gem).
fabrice31 has joined #ruby
<Pro|> if i have a array [1,2,3,4,5] how can i call with it a method that requires 5 parameters
<sts> Now when I add a require 'capistrano/xcopy', it will already load my extension, and later on capistrano also tries to load the extension. Thus I end up with it loaded twice.
<sts> Has anyone got an idea about what I could do?
simurg has joined #ruby
arup_r_ has joined #ruby
lotherk has joined #ruby
arup_r_ has quit [Client Quit]
arup_r has quit [Ping timeout: 256 seconds]
nfk has joined #ruby
gregf has joined #ruby
sigurding has quit [Quit: sigurding]
scripore has quit [Quit: This computer has gone to sleep]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
ldnunes has joined #ruby
User458764 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<rdark> sts - rescue a LoadError from the require?
<jhass> Pro|: re system, take a look at the docs, it takes the same arguments as spawn, so a pipe would work. Or you take a look at open3 stdlib
<jhass> Pro|: the second question, with a splat: foo(*array)
gustavn has joined #ruby
dumdedum has quit [Quit: foo]
gustavn has quit [Quit: Leaving]
<sts> rdark: the auther of capistrano already helped me in the other channel. thanks anyways
tubuliferous has joined #ruby
gustavn has joined #ruby
gustavn has quit [Client Quit]
Juanchito has quit [Ping timeout: 256 seconds]
tubuliferous has quit [Ping timeout: 245 seconds]
Juanchito has joined #ruby
jottr has joined #ruby
renanoronfle has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
multiscan has joined #ruby
kurtec has joined #ruby
kurtec has left #ruby [#ruby]
kurtec has joined #ruby
Nimf has quit [Read error: Connection reset by peer]
kurtec has left #ruby [#ruby]
shuber_ has joined #ruby
bMalum has joined #ruby
akfaew has joined #ruby
ta has joined #ruby
bMalum has left #ruby [#ruby]
<akfaew> is there something similar to perl's "fatpacker" available for ruby? i.e. pull in all files that a piece of software 'requires' and put it all into one big self contained file, for easy deployment?
<hanmac1> akfaew: isnt that what gems are for?
denver has quit [Read error: No route to host]
<akfaew> i don't want gems, because i have many different pieces of ruby code on hundereds of machines
<rdark> akfaew: not afaik - ruby has bundler etc, which perl was lacking in anything like that for a long time
<akfaew> i want to be independent of upstream changes
<akfaew> and test once, not with every gem version
_blizzy_ has joined #ruby
<akfaew> i had a look at omnibus, but it seems to do way more than i want. and is also quite difficult to set up
<rdark> akfaew: use bundler with --path vendor/bundle, make sure to use a Gemfile.lock
<rdark> I was for a while distributing some RPM packages using a similar method, so all that was required on the box was ruby + bundler
<akfaew> rdark: how would i use that when deploying a ruby program to 100 servers? i'd need to run bundler as a post-processing part of the package?
shuber_ has quit [Ping timeout: 272 seconds]
<rdark> no - you use bundler as part of your package build process
<akfaew> oh, ok. sounds inviting
<akfaew> thanks, i'll have a look
psy_ has joined #ruby
rhllor has joined #ruby
tuelz has joined #ruby
denver has joined #ruby
but3k4 has joined #ruby
renanoronfle has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has quit [Read error: Connection reset by peer]
rodferso1 has joined #ruby
Rapier- has joined #ruby
banister has joined #ruby
tuelz has quit [Ping timeout: 272 seconds]
withnale_ has quit [Ping timeout: 245 seconds]
jimms_ has joined #ruby
ponga has joined #ruby
qwertme has joined #ruby
zz_barkerd427 is now known as barkerd427
rodfersou has quit [Ping timeout: 272 seconds]
<jhass> akfaew: that'll only work if your target environments are all (exactly) the same as the build environment
guardianx has joined #ruby
tuelz has joined #ruby
jimms has quit [Ping timeout: 272 seconds]
<jhass> akfaew: if that's not the case you'll need bundler on the target environment and use bundle package and the run bundle install --deployment on the target
e1nh4nd3r has quit [Ping timeout: 250 seconds]
pwattstbd has quit [Ping timeout: 264 seconds]
dorei has joined #ruby
Pathfinder has quit [Ping timeout: 244 seconds]
<jhass> bundler has a standalone mode though
dstarh has joined #ruby
<jhass> (that allows you to embed it into your project iirc)
crazydiamond has quit [Remote host closed the connection]
hectortrope has joined #ruby
Caius has quit [Ping timeout: 276 seconds]
_blizzy_ has quit [Ping timeout: 255 seconds]
jordanm has quit [Read error: Connection reset by peer]
jordanm has joined #ruby
<akfaew> yeah that's what i want to achieve somehow
Caius has joined #ruby
kp666 has quit [Remote host closed the connection]
[k- has joined #ruby
freerobby has quit [Quit: Leaving.]
agent_white has quit [Read error: Connection reset by peer]
giuseppesolinas has joined #ruby
giuseppesolinas has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
agent_white has joined #ruby
Feyn has quit [Quit: Leaving]
agent_white has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Leaving.]
sigurding has joined #ruby
ascarter has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
daynaskully has quit [Quit: quit]
bMalum has joined #ruby
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
SouL_|_ has joined #ruby
bMalum has quit [Quit: bMalum]
scripore has joined #ruby
riotjones has quit [Quit: Leaving...]
airdisa has joined #ruby
e1nh4nd3r has joined #ruby
matugm has joined #ruby
matugm has joined #ruby
griffindy has joined #ruby
arietis has joined #ruby
wald0 has quit [Quit: Lost terminal]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
digifiv5e has joined #ruby
SouL_|_ has quit [Read error: Connection reset by peer]
stef204 has joined #ruby
SouL_|_ has joined #ruby
digifiv5e is now known as daynaskully
daynaskully is now known as guyz
guyz is now known as daynaskully
rhllor has quit [Quit: rhllor]
RegulationD has joined #ruby
stef204 has quit [Client Quit]
__chris has joined #ruby
tkuchiki has joined #ruby
sgambino has joined #ruby
startupality has quit [Quit: startupality]
RegulationD has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
bMalum has joined #ruby
tuelz has quit [Ping timeout: 258 seconds]
io_syl has joined #ruby
charliesome has joined #ruby
lolmaus has joined #ruby
zotherstupidguy has joined #ruby
ponga has quit [Quit: Leaving...]
devoldmx has joined #ruby
centrx has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
iamninja has joined #ruby
segfalt has joined #ruby
vt102 has joined #ruby
twistedpixels is now known as zz_twistedpixels
Rickmasta has joined #ruby
shuber_ has joined #ruby
dblessing has joined #ruby
wolfleemeta___ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
wolfleemeta___ has joined #ruby
scripore has joined #ruby
lidenskap has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
Rollabunna has joined #ruby
syath has joined #ruby
jimms has joined #ruby
doodlehaus has joined #ruby
bronson has joined #ruby
Spami has joined #ruby
shuber_ has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
alderamin has quit []
jimms_ has quit [Ping timeout: 252 seconds]
lidenskap has quit [Ping timeout: 245 seconds]
zotherstupidbot has joined #ruby
Rapier- has quit [Quit: (null)]
jerius has joined #ruby
wolfleemeta____ has joined #ruby
quimrstorres has quit [Read error: Connection reset by peer]
Rapier- has joined #ruby
quimrstorres has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gambl0re has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: yawn]
e1nh4nd3r1 has joined #ruby
Hounddog has quit [Remote host closed the connection]
wolfleemeta___ has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
vivekananda has quit [Ping timeout: 265 seconds]
jimms has quit [Remote host closed the connection]
tuelz has joined #ruby
e1nh4nd3r has quit [Ping timeout: 244 seconds]
iwishiwerearobot has joined #ruby
Spami has joined #ruby
superlou has joined #ruby
bmurt has joined #ruby
chinmay_dd has joined #ruby
leafybas_ has joined #ruby
leafybas_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
leafybas_ has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
startupality has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
jayeshsolanki has joined #ruby
shellfu_afk is now known as shellfu
e1nh4nd3r has joined #ruby
ldnunes has quit [Quit: Leaving]
bMalum has quit [Quit: bMalum]
qwertme has joined #ruby
baroquebobcat has joined #ruby
P1RATEZ has joined #ruby
e1nh4nd3r1 has quit [Ping timeout: 265 seconds]
Xiti has joined #ruby
Rollabunna has quit [Quit: Leaving...]
mary5030 has joined #ruby
rodferso1 has quit [Quit: leaving]
rodfersou has joined #ruby
jimms has joined #ruby
ascarter has joined #ruby
bmurt has quit []
scripore has quit [Quit: This computer has gone to sleep]
mary5030 has quit [Ping timeout: 255 seconds]
<iamdevnul> i like UGT
<jhass> oO you read up until that? :D
scripore has joined #ruby
mary5030 has joined #ruby
sent1nel_ has joined #ruby
horsecowdog has joined #ruby
iasoon has joined #ruby
tubuliferous has joined #ruby
einarj has quit [Remote host closed the connection]
IrishGringo has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/20150513174244]]
mrsolo has joined #ruby
hoov has joined #ruby
IrishGringo has joined #ruby
macmartine has joined #ruby
Echo has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
krz has quit [Ping timeout: 272 seconds]
balazs has joined #ruby
decoponio has joined #ruby
gaboesquivel has joined #ruby
bim has joined #ruby
bim is now known as Guest63695
werelivinginthef has joined #ruby
maletor has joined #ruby
Echo has left #ruby [#ruby]
aswen has quit [Quit: WeeChat 1.1.1]
serivichi has joined #ruby
commondream has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
zotherstupidbot has quit [Ping timeout: 246 seconds]
zotherstupidguy has quit [Ping timeout: 250 seconds]
zotherstupidbot has joined #ruby
krz has joined #ruby
zotherstupidguy has joined #ruby
Goldfish has joined #ruby
serivich has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
gaboesquivel has quit []
Goldfish is now known as Guest57831
michael_mbp has quit [Excess Flood]
commondream has quit [Ping timeout: 252 seconds]
Echohn has joined #ruby
kobain has joined #ruby
fmcgeough has joined #ruby
michael_mbp has joined #ruby
bmurt has joined #ruby
zotherstupidbot has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 258 seconds]
zotherstupidbot has joined #ruby
abuzze has joined #ruby
podman has joined #ruby
Guest57831 is now known as Agoldfish
<jhass> >> def foo; yield 1, yield 2; end;
<ruboto> jhass # => /tmp/execpad-54fa534d538e/source-54fa534d538e:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/368715)
<jhass> ruby parser, you disappoint me
insidious has joined #ruby
<ddv> what did you expect would happen anyway
jottr has joined #ruby
bashusr has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
doublemalt_ has quit [Ping timeout: 244 seconds]
arturaz has quit [Ping timeout: 245 seconds]
Cache_Money has joined #ruby
shuber_ has joined #ruby
zotherstupidbot_ has joined #ruby
zotherstupidbot has quit [Ping timeout: 255 seconds]
abuzze has quit [Remote host closed the connection]
zotherstupidguy1 has joined #ruby
Papierkorb has joined #ruby
zotherstupidguy1 has quit [Client Quit]
jottr has quit [Ping timeout: 250 seconds]
krz has quit [Ping timeout: 255 seconds]
Timba-as has joined #ruby
CoaxVex has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Echohn has quit [Remote host closed the connection]
shuber_ has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
<CoaxVex> Has anyone ever seen "The requested address is not valid in its context. - connect(2)" when running gem install?
<CoaxVex> It's on Windows, version 2.4.4 that comes with chef-client
vivekananda has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
sigurding has quit [Quit: sigurding]
multiscan has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zotherstupidbot_ has quit [Remote host closed the connection]
nobitanobi has joined #ruby
gambl0re has joined #ruby
zotherstupidbot_ has joined #ruby
surs has quit [Quit: WeeChat 0.3.7]
_blizzy_ has joined #ruby
[k- has quit [Quit: Lingo: www.lingoirc.com]
juanpaucar has joined #ruby
rbennacer has joined #ruby
aganov has quit [Remote host closed the connection]
fabrice31_ has joined #ruby
umgrosscol has joined #ruby
sigurding has joined #ruby
<hfp> Hey all, I would like to use haml templates in my ruby code. But I'm not using Rails and I don't want to precompile my files from haml to html. How do I turn my haml files to html on the go? This is to be used for Postmark email templates.
<hfp> by on the go I meant on demand
tjohnson has joined #ruby
doublemalt_ has joined #ruby
<adaedra> Haml is a gem with classes, look at their documentation
p8952 has quit [Quit: ZNC - http://znc.in]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra> Or you have Tilt which act as an abstraction level for templating and uses haml
casadei has joined #ruby
Stalkr_ has joined #ruby
<hfp> haha I typed `tilt` in google and thought I was hallucinating because the hwole page is tilted. It's probably an easter egg
<adaedra> yes
<adaedra> there's 'do a barrel roll' to push it further.
fabrice31 has quit [Ping timeout: 250 seconds]
darkf has quit [Quit: Leaving]
synfin has quit [Quit: leaving]
nobitanobi has quit [Remote host closed the connection]
iasoon has quit [Ping timeout: 256 seconds]
banister has joined #ruby
zotherstupidbot_ has quit [Ping timeout: 258 seconds]
ARYAN_NATIONS has joined #ruby
zotherstupidbot_ has joined #ruby
<ARYAN_NATIONS> WPWW 23/16 0/
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
sent1nel_ has quit [Remote host closed the connection]
<jhass> !ban ARYAN_NATIONS
<jhass> !ban ARYAN_NATIONS !T 1d
ARYAN_NATIONS was kicked from #ruby by ChanServ [User is banned from this channel]
marr123 has joined #ruby
marr has quit [Ping timeout: 258 seconds]
tjbiddle has joined #ruby
chipotle has joined #ruby
hanmac1 has quit [Quit: Leaving.]
ki0_ has joined #ruby
ixti has joined #ruby
airdisa has quit []
krz has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
ARYAN__NATIONS has joined #ruby
ldnunes has joined #ruby
edwinvdg_ has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
spyderman4g63 has joined #ruby
ki0_ has quit [Remote host closed the connection]
ki0 has quit [Ping timeout: 265 seconds]
keen________ has quit [Read error: Connection reset by peer]
tcrypt has joined #ruby
charliesome has quit [Quit: zzz]
commondream has joined #ruby
TOTEN_SIE_DIE_JU has joined #ruby
ARYAN__NATIONS has quit [Client Quit]
CoaxVex has left #ruby [#ruby]
TOTEN_SIE_DIE_JU is now known as TOTENSIEDIEJUDEN
RegulationD has joined #ruby
keen________ has joined #ruby
TOTENSIEDIEJUDEN has quit [Client Quit]
ki0 has joined #ruby
DerisiveLogic has joined #ruby
charliesome has joined #ruby
startupality has quit [Quit: startupality]
charliesome has quit [Client Quit]
ki0 has quit [Remote host closed the connection]
startupality has joined #ruby
ki0 has joined #ruby
jcutrell has joined #ruby
<jcutrell> Hey ruby folk.
<jcutrell> I’m looking for a method similar to map,
<jcutrell> where the given enumerable item can be passed into a given method (rather than that method being called on the enumerable item)
<jcutrell> So, for example -
simurg has quit [Remote host closed the connection]
<jcutrell> if I had an array [1,2,3] and I wanted to call something like square(number) (obviously a ridiculous example), I can’t do array.map(&:square) , because that would do 1.square, 2.square, etc - is there a way to do square(1), square(2), etc?
gkra has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
<jcutrell> (Other than an obvious .each)
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shuber_ has joined #ruby
zz_twistedpixels is now known as twistedpixels
snockerton has joined #ruby
juanpaucar has quit [Remote host closed the connection]
<jhass> jcutrell: I'd write it out, but you can do .map(&method(:square))
hardlin3r has quit [Ping timeout: 272 seconds]
haxrbyte has quit [Read error: Connection reset by peer]
<jhass> hardly shorter than {|n| square(n) } and a lot less clear IMO
<jcutrell> Agreed jhass
<jcutrell> Can you tell me what that is doing?
n008f4g_ has quit [Ping timeout: 264 seconds]
<jcutrell> &method(:method_name) - is this converting the reference to the method into a proc?
<jhass> >> def foo; 1; end; method(:foo).to_proc
<ruboto> jhass # => #<Proc:0x4191c60c (lambda)> (https://eval.in/368727)
<jhass> >> def foo; 1; end; method(:foo).to_proc.call
<ruboto> jhass # => 1 (https://eval.in/368728)
maia has joined #ruby
<jhass> & in a method call calls to_proc on its argument and passes the result as a block to the method
mrmargolis has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<jhass> same way &:foo works
<jhass> >> :upcase.to_proc.call("foo")
<ruboto> jhass # => "FOO" (https://eval.in/368729)
balazs has joined #ruby
<tuelz> jhass: I was wondering yesterday why you banned swastika because originally that was a peaceful symbol, now I understand.
tkuchiki has joined #ruby
sent1nel has joined #ruby
<maia> Hello, can someone help me with a regex? I want to remove all numbers surrounded by whitespace from a string (and keep numbers with adjacent alphabetic char)
<jcutrell> jhass: okay, this is starting to make more sense to me.
<jhass> tuelz: yeah, they're of the wrongly interpreting kind
<maia> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub(/(^| )[0-9]+( |$)/, ' ') does not work properly, it keeps a number
<tuelz> maia: the first helpful thing I'll tell you si to visit rubular.com
<tuelz> it's great for playing with ruby regexs
byprdct has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<jcutrell> mala what number is getting left behind?
<ddv> rubular website looks ugly as hell
ndrei has joined #ruby
<tuelz> ddv: who cares, it works swimmingly
pdoherty has joined #ruby
<maia> jcutrell: it returns " only remove2 30 numbers 1surrounded by whitespace "
chinmay_dd has joined #ruby
<jcutrell> Ah. Hm. Yeah, rubular.
<maia> tuelz: thanks for the rubular hint. it seems as if I’m having problems with „overlapping“ matching elements
ascarter has joined #ruby
RegulationD has joined #ruby
Channel6 has joined #ruby
<maia> which leaves me somewhat clueless, other than calling gsub repeatedly
ascarter has quit [Max SendQ exceeded]
<tuelz> maia: \s(\d+)\s will give you a match group that grabs the #'s
RegulationD has quit [Read error: Connection reset by peer]
p8952 has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
ascarter has joined #ruby
tejasmanohar has joined #ruby
<tejasmanohar> ror
RegulationD has joined #ruby
<jhass> it's "roar"
<jcutrell> Heh
* adaedra flees from battle
<maia> tuelz: your suggestion also has problems if two numbers occur after each other with a single whitespace inbetween
Hirzu_ has joined #ruby
juanpaucar has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
sigurding has quit [Quit: sigurding]
iasoon has joined #ruby
dru` has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<maia> gsub seems to process the string by moving right step by step, so whatever was matched once will be skipped instead of rechecked
<tejasmanohar> anyone here used Chartkick before?http://chartkick.com/
<atmosx> I did
<atmosx> twice IIRC (in two projects)
fabrice31_ has quit [Remote host closed the connection]
<adaedra> tejasmanohar: you have a question about it?
SouL_|_ has quit [Read error: Connection reset by peer]
<jhass> maia: maybe just match the whitespace too
<tejasmanohar> i'm trying to do a line graph of the users created per day, and it keeps going downwards during the night time since no users were created. i'd like to jsut have a dot above each day and connect dots from one day to another
<tejasmanohar> do you know if thats possible through the lib?
<jhass> maia: [\d ]+ or [\d\s]+
<tejasmanohar> adaedra: atmosx yeah ^
tubuliferous has joined #ruby
chipotle has quit [Quit: cheerio]
<tejasmanohar> see what i mean about sweaping down during the night? http://i.imgur.com/5r77muG.png
<tejasmanohar> (these are registrations)
<adaedra> tejasmanohar: reject the days without users
bronson has joined #ruby
<tejasmanohar> adaedra: each day has users
Timba-as has quit [Quit: Be back later ...]
<tejasmanohar> ?
<adaedra> s/days/plots/
<atmosx> tejasmanohar: how do you pull the data? can I see the code?
<adaedra> remove the keys that has 0 as values, they will disappear
<havenwood> maia: give a few examples of expected input and desired output?
chinmay_dd has quit [Remote host closed the connection]
<tejasmanohar> the graph swoops down b/w may 19 and may 20 since it goes down in the night then back up
<maia> jhass: i think I need to use (^| ) and ( |$) to also match beginning and end of string, so I can’t add that to the middle, can I?
<tejasmanohar> adaedra: atmosx one sec pulling up code
Hirzu has quit [Ping timeout: 276 seconds]
quimrstorres has quit [Remote host closed the connection]
<tejasmanohar> <%= line_chart User.group_by_day(:created_at).count %> atmosx that is all
<jhass> maia: don't think that'll work, my suggestion doesn't work?
<tejasmanohar> (using groupdate gem)
<havenwood> maia: sounds like positive lookahead and lookbehind to me
<maia> havenwood: input: "123 only remove2 20 30 numbers 1surrounded by whitespace 40" shoud return "only remove2 numbers 1surrounded by whitespace"
sanguisdex has quit [Quit: Leaving.]
<maia> jhass: \s will not match beginning or end of string, which I need.
<jhass> havenwood: was my first intuition too, though they want to replace the whitespace too from the look of things
<maia> btw, thanks for your help. I really appreciate it :)
<jhass> >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub(/(^| )[\d\s]+( |$)/, ' ')
<ruboto> jhass # => " only remove2 numbers 1surrounded by whitespace " (https://eval.in/368735)
<havenwood> >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub /(?<=\s)\d+\s/, ''
<ruboto> havenwood # => "123 only remove2 numbers 1surrounded by whitespace 40" (https://eval.in/368736)
commondream has quit [Remote host closed the connection]
thiagovsk has joined #ruby
banister has joined #ruby
anisha has quit [Quit: Leaving]
<tejasmanohar> atmosx: do you know how id incorporate key 0 logic in this? its just erb
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<tejasmanohar> atmosx: (or is this a bad way to do it) cc adaedra
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
commondream has joined #ruby
bronson has quit [Ping timeout: 272 seconds]
<atmosx> tejasmanohar: nope, I never used ready-made gems... I just created an array or a hash using a helper and feeded chartkick lib.
<jhass> >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub(/(^| )[\d\s]+?( |$)/, ' ')
<ruboto> jhass # => " only remove2 30 numbers 1surrounded by whitespace " (https://eval.in/368737)
<adaedra> logic in the view is discouraged, yes
chipotle has joined #ruby
<jhass> mmh
<tejasmanohar> atmosx: ah alright chartkick.js lib ?
<maia> jhass: your first version might work
bmurt has quit []
sanguisdex has joined #ruby
<jhass> >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub(/(^ ?+| )[\d\s]+?( | ?+$)/, ' ')
<ruboto> jhass # => " only remove2 30 numbers 1surrounded by whitespace " (https://eval.in/368738)
User458764 has joined #ruby
syath has quit [Quit: Leaving]
<tejasmanohar> "Say Goodbye To Timeouts" - maybe i could do it the way right under that heading on the website http://chartkick.com/
<atmosx> tejasmanohar: you could do that also (if youre more familiar with js than ruby) but nope. You don't really have to do anything apart from creating an array with the values you need to display
<atmosx> tejasmanohar: then display it...
<maia> jhass: seems to be tricky, right?
<jhass> unexpectedly, yes :P
gagrio has quit [Ping timeout: 265 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GaryOak_ has joined #ruby
<tejasmanohar> atmosx: ah i see what you mean... so you would do User.group_by_day and then remove days with 0? i dont understand how thatd solve the issue since no days have 0 for me
michaeldeol has joined #ruby
<tuelz> a less elegant soluton would be to just double to whitespace and then use my regex
someword has joined #ruby
<tejasmanohar> could also do a bar graph but meh line graph better for over time amitchellbullard
<tejasmanohar> atmosx:
<atmosx> tejasmanohar: I think it will solve the problem, since writing you custom method you can filter out everything but I'm not sure what you wanna do actually.
<startupality> How can I have an URL which doess devise accept invitation token and then redirects to specific url?
<atmosx> tejasmanohar: displaying a graph with users that were added every day, right?
<adaedra> startupality: If I understand correctly, this is something you may want to discuss in #RubyOnRails
chipotle has quit [Ping timeout: 250 seconds]
<tejasmanohar> atmosx: http://i.imgur.com/5r77muG.png see the points on my graph marked by circles. i wanted to go with straight lines b/w the points
<tejasmanohar> like at different diagonals of course but straight lines from point for day A to day B to day C
<shevy> aaah
<adaedra> aaaaaaaah
<tuelz> startupality: I would think about rephrasing your question there as well, not sure what you're saying :)
<tejasmanohar> no curves in between that show our #s go down in the night
<shevy> adaedra I should hire you to write me some code
<atmosx> tejasmanohar: ah sorry
<atmosx> lol
nobitanobi has joined #ruby
<shevy> adaedra do you have a repository of your code online somewhere?
bootstrappm has joined #ruby
Rollabunna has joined #ruby
<adaedra> shevy: def shevy; puts French.stereotype; end
<tejasmanohar> atmosx: thats not really something to be done via this library i suppose
<tejasmanohar> (in ruby at least)
<bootstrappm> morning all
<shevy> adaedra is this about baguette again?
<atmosx> tejasmanohar: there's no night in the graph
<someword> does anyone have any pointers on how I can refactor the 'get_allergy_list' method https://gist.github.com/anonymous/eafd25256451b62747f8 - I'm thinking it should be smaller and maybe only have 1 way out instead of the guard return at the top. I'm not sure what the next step would be in pulling it apart. TIA
MatthewsFace has joined #ruby
<adaedra> shevy: and my github is not hard to find.
<bootstrappm> accidentally at work an hour early today :/
<shevy> adaedra link?
<havenwood> bootstrappm: g'mornin
<shevy> bootstrappm how can you came too early to work
<shevy> *come
<atmosx> tejasmanohar: In may 14 you had 0 new users..
<adaedra> shevy: adaedra
<startupality> @tuelz ok, it means how can I reformat this link “"users/invitation/accept?invitation_token=XK6c-3tYfRBafX5zxTHR” so that it redirects to specific relative URL after invitation accept?”
<shevy> adaedra I click on it but nothing happens
<atmosx> tejasmanohar: or your DB apparently says so.
<tejasmanohar> oh hm possible actually i was just developing it then
<tejasmanohar> wiped it maybe :P
<tejasmanohar> i misunderstood my own data, sorry atmosx
<atmosx> np
<tejasmanohar> let me do a filter by after date X
<bootstrappm> gf gave me a new watch in my sleep, I asked her the time and set it. In my drowsiness I think I set it wrong ... when I got to work it turns out its an hour early hahaha
<adaedra> startupality: yep, see with #RubyOnRails or devise channel if there is one.
<bootstrappm> someword I'll take a look right now
<tuelz> startupality: you wouldn't modify that link at all, you would modify the code executed when you follow that link.
<adaedra> bootstrappm: one more hour to be productive !
<bootstrappm> you speak the truth! (dance)
<jhass> >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub(/(?:^[\d\s]+| [\d\s]+(?= )| [\d\s]+$)/, '') # maia
<bootstrappm> we have sprint review today too in a few hours so will def make use of it!
<ruboto> jhass # => "only remove2 numbers 1surrounded by whitespace" (https://eval.in/368740)
<GaryOak_> A lot of my methods are one or two lines long and/or database interface code, is it reasonable to write tests for them?
<tuelz> startupality: as adaedra has suggested though, tons of people use devise in #rubyonrails
<jhass> maia: too many edge cases :P
startupality has quit [Read error: Connection reset by peer]
swerter has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
axisys has joined #ruby
startupality has joined #ruby
greylurk has joined #ruby
<maia> jhass: hmm. well my goal is to extract 'real' words from a string (to put them into a dictionary), so I want to remove anything that’s only a number.
greylurk has left #ruby [#ruby]
<maia> jhass: and I’m struggling with a similar problem: removing single letter words from a string
commondream has quit [Remote host closed the connection]
<jhass> maia: uh, so instead of blacklist, why not whitelist?
chipotle has joined #ruby
<tuelz> maia: that's quite a bit different than removing numbers surrounded by spaces :p
blackmesa has quit [Ping timeout: 252 seconds]
commondream has joined #ruby
commondream has quit [Remote host closed the connection]
<maia> hmm. I’d have to think about a regex that whitelists anything that has at least 2 chars and at least one of them is alphabetical.
<Synthbread> is there a Hash method that would do something like this? a = {a: 1, b: 2}; b = a.that_method(:a); (a would then be {b: 2} and b would be {a: 1})
commondream has joined #ruby
<jhass> >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".scan(/[\w\d]+\w[\w\d]*/)
<ruboto> jhass # => ["123", "only", "remove2", "20", "30", "numbers", "1surrounded", "by", "whitespace", "40"] (https://eval.in/368741)
<Synthbread> like a "mutable slice", per se
<jhass> blerg
<Synthbread> I'm doing this in rails, if it matters
rdar has joined #ruby
marr123 is now known as marr
sent1nel has quit [Remote host closed the connection]
pokui_ has joined #ruby
icebourg has joined #ruby
<maia> jhass: add 'e g ' to the string somewhere it you want to make it even more complicated, because /(^| ).( |$)/ fails at that too.
<jhass> >> "123 only remove2 20 30 numbers a 1surrounded by whitespace 40".scan(/\w+\p{Alpha}\w*/) # maia
<ruboto> jhass # => ["only", "remove2", "numbers", "1surrounded", "by", "whitespace"] (https://eval.in/368742)
<adaedra> >> a = {a: 1, b: 2}; b = a.shift
<ruboto> adaedra # => [:a, 1] (https://eval.in/368743)
<adaedra> >> a = {a: 1, b: 2}; b = Hash[a.shift]; [a, b]
<pokui_> hi all, was ARGF (http://ruby-doc.org/core-2.0.0/ARGF.html) deprecated in 2.2.2 ? if so what's the "newly improved" way to do this?
<ruboto> adaedra # => /tmp/execpad-05555cab9182/source-05555cab9182:2: warning: wrong element type Symbol at 0 (expected a ...check link for more (https://eval.in/368744)
<adaedra> >> a = {a: 1, b: 2}; b = Hash[[a.shift]]; [a, b]
<ruboto> adaedra # => [{:b=>2}, {:a=>1}] (https://eval.in/368745)
__chris has quit [Ping timeout: 245 seconds]
<jhass> maia: any case I missed in my last one?
<adaedra> Synthbread: ^
<maia> jhass: oh, that looks good. I’m not yet sure how that regex really works, but it looks promising
<adaedra> (Sorry for the noise everyone, I'd have thought it worked on first case :x )
Juanchito has quit [Quit: Connection closed for inactivity]
DexterLB has joined #ruby
Cache_Money has joined #ruby
<jhass> maia: mh, it'll fail things like a1
<maia> jhass: (plus I’d want to keep it a string, but I could always do a .join(' ') if that makes it easier. poor GC.)
<bootstrappm> someword okay, took a look. I'd say the error check at the top is fine but the recursion is what makes it look convoluted. turn that case / when into an if as there's only one condition and make it iterative
shuber_ has quit [Remote host closed the connection]
<jhass> (single letter followed by number)
commondream has quit [Ping timeout: 265 seconds]
<maia> jhass: hmm, I would want to keep single letters followed by numbers. (use case: some cities use that logic for subway lines)
puppeh has quit [Quit: Leaving...]
Timba-as has joined #ruby
elfuego has joined #ruby
<jhass> maia: I guess I'd just or it to it, /\w+\p{Alpha}\w*|\p{Alpha}\d/
shuber_ has joined #ruby
<elfuego> is there a method on ruby array to alternate items in an array equally e.g. tmp [“male”, “female”]
<tuelz> someword: you seem to be recreating some math operators, too, for instance modulo would get you the remainder
<jhass> elfuego: more examples please
<tuelz> >> 6 % 4
<ruboto> tuelz # => 2 (https://eval.in/368746)
<someword> bootstrappm: first off thanks for the help. Will i end up with an 'else' in my if statement? I'll go read up on iterative and see if i can grok your suggestion.
ndrei has joined #ruby
The_Phoenix has joined #ruby
CloCkWeRX has quit [Remote host closed the connection]
<havenwood> >> ['male', 'female', 'other'].cycle.take 5
<ruboto> havenwood # => ["male", "female", "other", "male", "female"] (https://eval.in/368747)
<bootstrappm> yes your case / when / else will turn just into if / else
<elfuego> jhass: if I call tmp.[the method that alternate] it should produce “male” “female” “male” “female” “male” “female” and so on
speaking1ode has joined #ruby
<havenwood> elfuego: cycle
<bootstrappm> but that might not be a good suggestion once you implement it iteratively, like will have more conditions at that point
<bootstrappm> likely*
The_Phoenix has quit [Max SendQ exceeded]
<someword> tuelz: thanks for the tip i'll read up on modulo!
macmartine has quit [Ping timeout: 255 seconds]
__chris has joined #ruby
<maia> jhass: that looks good. I’ll stick with string.scan(/\w+\p{Alpha}\w*|\p{Alpha}\d/).join(' ') unless I can easily find a way that does not convert to an array inbetween. thanks for your help!
<someword> bootstrappm: thanks again for giving me some direction!
<havenwood> Synthbread: I don't get what your `:a` argument is supposed to mean in your psudo code.
<Synthbread> havenwood: I figured it out: I needed .extract!
<jhass> maia: if you plan to write that to a file, .scan(...) do |word| io << word << " "; end; might be a tad faster
GaryOak_ has quit []
<havenwood> Synthbread: ahhh
sent1nel has joined #ruby
<elfuego> havenwood: thanks
bMalum has joined #ruby
<Synthbread> havenwood: :)
dfockler has joined #ruby
The_Phoenix has joined #ruby
<tuelz> what does a single ampersand do in ruby?
The_Phoenix has quit [Max SendQ exceeded]
<tuelz> >> 6 & 4
<ruboto> tuelz # => 4 (https://eval.in/368748)
<adaedra> binary and
<tuelz> ahh, yes, brainart
<jhass> tuelz: depends on context, a lot
_blizzy_ has quit [Ping timeout: 265 seconds]
<tuelz> jhass: yeah, no the to_proc &
<jhass> with two operands it's a method call
<jhass> >> [1, 2] & [2, 3]
<ruboto> jhass # => [2] (https://eval.in/368749)
<tuelz> oh really...weird
<maia> jhass: no, I actually save that regexd version in the db and/or pass this cleaned string on to other classes. I only split it in a single case, but in most cases I need it as string
ki0_ has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<al2o3-cr> elfuego: could also use ["male", "female"] * n
rubie has joined #ruby
<jhass> for small n
<al2o3-cr> jhass: yeah
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
ki0_ has quit [Remote host closed the connection]
bootstrappm has quit [Ping timeout: 258 seconds]
<elfuego> jhass: it uses a very resource intensive algorithm?
<heftig> it's not lazy
<jhass> it allocates an array of size array.size * n
<heftig> [1,2] * 1000 will create a 2000-element array
The_Phoenix has joined #ruby
ki0 has quit [Ping timeout: 265 seconds]
The_Phoenix has quit [Max SendQ exceeded]
ki0 has joined #ruby
<havenwood> >> [1, 2].cycle.size
<ruboto> havenwood # => Infinity (https://eval.in/368751)
<heftig> >> [1,2].cycle.count
<ruboto> heftig # => (https://eval.in/368752)
tesuji_ has joined #ruby
<heftig> oops.
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
tesuji_ has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
iasoon has quit [Ping timeout: 252 seconds]
ArchRogem has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
devoldmx has joined #ruby
The_Phoenix has joined #ruby
leafybas_ has quit [Ping timeout: 256 seconds]
The_Phoenix has quit [Max SendQ exceeded]
Spami has quit [Quit: This computer has gone to sleep]
ki0_ has joined #ruby
The_Phoenix has joined #ruby
slawrence00 has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
C1V0 has joined #ruby
IrishGringo has quit [Remote host closed the connection]
pokui_ has quit [Ping timeout: 250 seconds]
speaking1ode has quit [Ping timeout: 246 seconds]
jimms has quit [Remote host closed the connection]
djbkd has joined #ruby
someword has quit [Quit: Leaving.]
speaking1ode has joined #ruby
ki0 has quit [Ping timeout: 264 seconds]
casadei has quit [Remote host closed the connection]
tekacs has quit [Quit: Disappearing... *poof*]
macmartine has joined #ruby
tekacs has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
x1337807x has joined #ruby
GriffinHeart has joined #ruby
startupality has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 265 seconds]
Matthews_ has joined #ruby
qwertme has joined #ruby
coolfool has quit [Quit: Connection closed for inactivity]
ddarkpassenger has joined #ruby
coderhs has joined #ruby
segfalt has quit [Quit: segfalt]
startupality has joined #ruby
Spami has joined #ruby
finisherr has joined #ruby
MatthewsFace has quit [Ping timeout: 264 seconds]
HOLOHOAX has joined #ruby
budak-baik has quit [Remote host closed the connection]
<HOLOHOAX> can a for loop be nested inside an if statement?
finisherr has quit [Client Quit]
budak-baik has joined #ruby
<waxjar> HOLOHOAX: we don't use for loops :p
<HOLOHOAX> why not?
<waxjar> we have the each method! :D
<HOLOHOAX> but isn't for each a for loop?
<HOLOHOAX> item.each.do?
<HOLOHOAX> item.each do
<HOLOHOAX> isn't that a loop though?
<waxjar> similar, yes
guardianx has quit [Remote host closed the connection]
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
<HOLOHOAX> how would i do something like "if #{input} includes #{string} " //execute the following code for the number of iterations
sigurding has joined #ruby
finisherr has joined #ruby
jottr has joined #ruby
casadei has joined #ruby
<waxjar> collection.select { |string| string.include?(other_string) }.each { |filtered_strings| ... }
The_Phoenix has quit [Read error: Connection reset by peer]
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Ping timeout: 264 seconds]
<havenwood> HOLOHOAX: for loops leak variables and aren't idiomatic so we just don't use them
<HOLOHOAX> :(
<jhass> I think they meant if input.include? other_string; collection.each do |item| ... end; end; or perhaps N.times do ... end
<HOLOHOAX> can i use javascript with ruby?
<havenwood> HOLOHOAX: You can use any language with any language, no?
mrsolo has joined #ruby
segfalt has joined #ruby
<HOLOHOAX> havenwood: i'm new to programming and a complete retard so i really wouldn't know
<jhass> HOLOHOAX: if you show what you have tried so far, what you want to do might become a bit clearer
rubie has quit [Remote host closed the connection]
<shevy> holohoax is a cool nick
<havenwood> HOLOHOAX: Are you actually trying to do something with Ruby and Javascript or just asking to learn?
The_Phoenix has joined #ruby
superlou has quit [Quit: Leaving]
<HOLOHOAX> i'm using javascript to make a search app
<shevy> HOLOHOAX you can try to write ruby, and have it generate javascript - see "opal" http://opalrb.org/
macmartine has quit [Remote host closed the connection]
haxrbyte has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
The_Phoenix has quit [Max SendQ exceeded]
wjimenez5271 has joined #ruby
joonty has quit [Quit: joonty]
<HOLOHOAX> thanks shevy...
<HOLOHOAX> i'm confused on how it works
ascarter has joined #ruby
kenneth has joined #ruby
The_Phoenix has joined #ruby
avat has quit [Quit: Page closed]
<adaedra> HOLOHOAX: it REALLY depends what you want to do
The_Phoenix has quit [Max SendQ exceeded]
<cassianoleal> given an Array of Hashes, how do I find the hash with the greatest value given an arbitrary key? e.g. from [ { :a => 5 }, { :b => 10 } ], I want to return { :b => 10 }
Cust0sLim3n has quit [Ping timeout: 272 seconds]
<HOLOHOAX> well i would like to make a search thing in javascript because i don't know enough ruby
The_Phoenix has joined #ruby
<adaedra> HOLOHOAX: but how? On a webpage? What will the JS part do? What will the Ruby part do? How will they interract? You don't give enough information
<adaedra> cassianoleal: Hashes are enumerables
The_Phoenix has quit [Max SendQ exceeded]
<HOLOHOAX> basically it's a prompt that keeps going to infinity unless the user types a name that's in the object array or the user hits cancel
budak-baik has quit [Remote host closed the connection]
<jhass> cassianoleal: nested .max_by
<adaedra> nested?
<HOLOHOAX> when the user types a name that's in the list javascript will write to the webpage showing everything inside the object
<adaedra> ah
<jhass> adaedra: their example doesn't need it
chipotle has joined #ruby
<adaedra> HOLOHOAX: so you have a webpage in Javascript, I suppose the ruby part is the backend called by your page ?
<jhass> but I didn't assume actually single element hashes
<HOLOHOAX> adaedra: i was wondering if it would be better to use it in ruby or javascript
<cassianoleal> adaedra, jhass: thanks, I got it :)
<HOLOHOAX> but if i could use ruby for it i'll use ruby
<jhass> HOLOHOAX: are you building a website?
<adaedra> HOLOHOAX: in a browser, you need javascript at the end, as it can only execute it. But with things like opal, you can write your code in Ruby and obtain JavaScript of it.
lele is now known as Guest24
commondream has joined #ruby
ki0_ has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
<HOLOHOAX> adaedra: opal can make for loops?
ki0 has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<adaedra> Opal can do what ruby can do
<havenwood> minus the things it can't do
<jhass> I think we're heading in very wrong direction here
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
That1Guy has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
<jhass> HOLOHOAX: are you building a website?
<HOLOHOAX> yes
<atmosx> Where do I found someone for a quick photoshop job
<shevy> HOLOHOAX it's more for ruby->javascript people; it seems as if you are familiar with javascript? so possibly you'd have to learn ruby first
<atmosx> ?
haxrbyte_ has joined #ruby
The_Phoenix has joined #ruby
<shevy> atmosx HANMAC!!!
<HOLOHOAX> thanks shevy
<adaedra> Photojob
<atmosx> hanmac: ?
<shevy> Jotophob
<atmosx> hanmac: can you isolate 'me' from a pretty complex bg? ... isn't hanmac a ruby prog?
<HOLOHOAX> this is for a fun site it's nothing professional
<HOLOHOAX> i'm not getting paid for this... i'm still a complete retard so i'm not good yet
<adaedra> atmosx: people may be able to do more than one thing
<adaedra> HOLOHOAX: you know ruby?
<jhass> HOLOHOAX: javascript performs best for the code that runs in the browser, ruby performs best for code that runs on your server
<shevy> atmosx I think for some icons or logos, in some of ruby-projects, designers were asked to do something; like the pry logo https://goo.gl/x0muc5
<shevy> hanmac is creative
aryaching has joined #ruby
<shevy> he can program the thing in ruby
<HOLOHOAX> thanks jhass
<HOLOHOAX> adaedra: yes i've taken some ruby courses online
<atmosx> shevy: he is not alive apparently :-)
<adaedra> HE DED
<adaedra> LIEK SO DED
<jhass> HOLOHOAX: you don't mix them into the same program, you write two or more programs that communicate, one in javascript that runs in the browser, one in ruby that runs on the server
djbkd has joined #ruby
haxrbyte has quit [Ping timeout: 255 seconds]
<HOLOHOAX> jhass: that sounds complicated... where can i learn more about this stuff?
baroquebobcat has quit [Quit: baroquebobcat]
<adaedra> HOLOHOAX: you usually learn them separately
<adaedra> Learn some ruby, then learn how to do web applications with it, learn javascript
<jhass> and then you learn a bit about what HTTP is
x1337807x has joined #ruby
<adaedra> How a browser works
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> that said you can write your server program in javascript too, for example using nodejs, it's still a separate program from the one that runs in your browser. And if you had a Ruby program running on your server it would be separate from that too
maletor has quit [Quit: Computer has gone to sleep.]
<adaedra> web development is a complex topic
<adaedra> why do everyone try to start this way >_>
<havenwood> HOLOHOAX: If you want a little magic, try making a little Volt app: http://voltframework.com/
spyderman4g63 has quit []
<adaedra> Yuck
<HOLOHOAX> havenwood: why are there so many frameworks?
<jhass> adaedra: because it's the most intriguing. I got into programming because I wanted to find out how to make these "homepage" things
<havenwood> adaedra: The web is a sick joke... But part of the joke I think is that we're supposed to pretend it's normal and we're okay with it!
livcd has joined #ruby
<adaedra> havenwood: unfortunately
doertedev has quit [Ping timeout: 265 seconds]
C1V0 has quit []
<adaedra> jhass: yes, but it's a so wrong way
<maia> jhass: following up with your suggested regex: scan(/\w+\p{Alpha}\w*|\p{Alpha}\d/) it will split words with a '-', which I don’t want. using scan(/\w+-?\p{Alpha}-?\w*|\p{Alpha}-?\d+/) will work for words with one '-', but not with more.
<tuelz> adaedra: because most of us don't want to be programmers, we want to be problem solvers
<maia> jhass: e.g. "song-contest-euphoria".scan(/\w+-?\p{Alpha}-?\w*|\p{Alpha}-?\d+/) => ["song-contest", "euphoria"]
<dfockler> solving problems is boring, I want to learn new things
chinmay_dd has joined #ruby
<livcd> uhm if i send a SQL query how should i check if it was successful ?
rippa has joined #ruby
<tuelz> dfockler: you're in the minority, not that there is anything wrong with that
<maia> jhass: any idea how to handle - properly?
<adaedra> I want to try things
<jhass> maia: \w is short for [a-zA-Z0-9_], [\w\-] is valid and equivalent to [a-zA-Z0-9_\-]
<adaedra> why do you \ your - ?
<jhass> adaedra: for clarity
bronson has joined #ruby
<adaedra> ._.
<jhass> it's additional knowledge I didn't want to require right now
<HOLOHOAX> after watching the volt video i am now more confused than i was before watching it :(
<dfockler> hehe
<adaedra> HOLOHOAX: it's okay, it's maybe too 'high level'
<adaedra> HOLOHOAX: begin small
matchaw has quit [Ping timeout: 244 seconds]
<HOLOHOAX> adaedra: you mean low level right? this is computer science after all ;)
<tuelz> HOLOHOAX: webdev is tough, but it's about the simplest platform you'll find for solving real problems. I encourage starting with webdev for most people because if you're not excited about what you're building you'll be bored to tears
<adaedra> Eeeeeeeeeeer
<livcd> can i ever be sure that executed sql was successful ?
<jhass> adaedra: I fear you're pretty alone with your opinion there :P
<adaedra> jhass: which one?
<livcd> i do not really care about the data consistency but only if it went through and db threw an error or not
<tuelz> livcd: sure, write tests against the results to confirm they are what you expect.
<jhass> adaedra: that web dev is the devil for newbies
rubie has joined #ruby
<HOLOHOAX> tuelz: webdev as in web development?
<adaedra> it is :@
<tuelz> HOLOHOAX: yup
<livcd> tuelz: well so i guess i have to handle that manually
<jhass> livcd: a sane DBMS will tell you, a sane client for that DBMS will (have a way to) signal it
<dfockler> HTML is simple, CSS is 'simple', JS is 'simple', Webdev is not
<HOLOHOAX> what should i start with i am already signed up on teamtreehouse.com and i already did the rails stuff and front end web stuff on there
<adaedra> Webdev requires you to learn so many thing at the same time
<tuelz> livcd: well a computer can't guess the results you want.
<HOLOHOAX> where should i go from there? like which site or books or what should i do?
<dfockler> HOLOHOAX: depends what you want to accomplish
<livcd> tuelz: i don't care about the consistency of results i just want to know if (true = sql was executed) or (false = something happened)
<tuelz> HOLOHOAX: find a website you think is cool and try to rebuild the simplest version of that website you can imagine.
chthon has quit [Quit: Ex-Chat]
ki0 has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 258 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimms has joined #ruby
bMalum has quit [Quit: bMalum]
<jhass> HOLOHOAX: building something you want to build and learning the part you need the moment you need it is a good approach, though if you have to ask whether you can nest control structures, maybe go back to the ruby course once more
<tuelz> livcd: then jhass has already answered your question, if you want a more specific answer you'll need to give more specifics about your rmdbs
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<maia> jhass: thanks, this did the trick: scan(/[\w\-]+\p{Alpha}-?\w*|\p{Alpha}-?\d+/)
cirn0 has joined #ruby
<HOLOHOAX> jhass: i'll do that!
<livcd> tuelz: the rdbms would be oracle..and a client i imagine a ruby's dbi ?
<jhass> maia: yup, that's what I wanted to steer you to ;)
<HOLOHOAX> i wish programming was easier
<tuelz> livcd: ruby doesn't have an oracle dbi in its stdlib as far as I know.
<maia> jhass: thanks for steering me! ;)
<livcd> tuelz: oh
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Axy has quit [Ping timeout: 255 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass> maia: as a little aside, at the start and the end of a character group, - doesn't need to be escaped, since it can't mean to signal a range, [\w-] is actually the same
<tuelz> livcd: yeah, you'll need to pick out a dbi and then tell us which one you've chosen - like I said, ruby doesn't ship with one
x1337807x has joined #ruby
<jhass> maia: that said it doesn't harm to escape it if that makes it clearer for you
<tuelz> sequel is nice - if you're doing rails activerecord is what you'll be using
<dfockler> Can't say enough great things about the Sequel gem
Jarboe has joined #ruby
<livcd> thx guys
<maia> jhass: the more I try to understand regex, the happier I’m not having learned perl. it can do a lot, but it isn’t really fun. :)
shuber_ has quit [Remote host closed the connection]
<livcd> well be it rails or sinatra
<havenwood> Jeremy Evans' gems are golden.
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> livcd: Roda with Sequel. :)
<tuelz> pakyow with sequel is where the cool kids are at
<havenwood> livcd: http://roda.jeremyevans.net/
<jhass> maia: http://regexcrossword.com/ for a fun way to gain some routine ;)
<havenwood> tuelz: Roda or Lotus with ROM ;P
<maia> oh wow.
cirn0 has quit [Remote host closed the connection]
<livcd> havenwood: oh so that's like sinatra ?
<tuelz> havenwood: or....pakyow with sequel
<tuelz> jhass: regex and fun do not belong in the same sentence :p
cirn0_ has joined #ruby
baweaver has joined #ruby
n008f4g_ has joined #ruby
<havenwood> livcd: Yeah, inspired in part by Sinatra.
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<dfockler> Still hanging out with sinataa
sent1nel has quit [Remote host closed the connection]
<dfockler> sinatra
cirn0_ has quit [Remote host closed the connection]
yuciyuar has joined #ruby
<dudedudeman> i love sinatra!
<dfockler> the singer or the framework?
<adaedra> >_>
<dudedudeman> the framework that pays homage to the singer
<dfockler> It's alright
<dudedudeman> for what it is, it does work
c0m0 has quit [Ping timeout: 264 seconds]
moted has joined #ruby
tejasmanohar has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
mjuszczak has quit [Read error: Connection reset by peer]
tubuliferous_ has joined #ruby
<shevy> for what dudedudeman is, he does work
GriffinHeart has joined #ruby
mjuszczak has joined #ruby
rdark has quit [Quit: leaving]
qwertme has joined #ruby
cajone has joined #ruby
tejasmanohar has joined #ruby
<tuelz> for what I am something something
chinmay_dd has quit []
<jhass> for what I am I accidentally the cat
michaeldeol has joined #ruby
michaeldeol has quit [Remote host closed the connection]
<shevy> lol
shuber_ has joined #ruby
cirn0 has joined #ruby
baroquebobcat has joined #ruby
kedibasi has joined #ruby
commondream has quit [Remote host closed the connection]
kedibasi has quit [Client Quit]
<dfockler> I should learn Rails
<dfockler> so I can get a new job
baweaver has quit [Remote host closed the connection]
<shevy> ewww
commondream has joined #ruby
<c-c> go
cirn0 has quit [Remote host closed the connection]
<dfockler> goku
diegoviola has joined #ruby
Parker0 has joined #ruby
Parker0 has quit [Client Quit]
<livcd> so do you guys have some examples of good sinatra apps ?
macmartine has joined #ruby
fabrice31 has joined #ruby
Zamyatin has joined #ruby
heftig has quit [Remote host closed the connection]
commondream has quit [Ping timeout: 255 seconds]
maia has quit [Quit: maia]
giuseppesolinas has joined #ruby
<dfockler> Not sure how 'good' they are but they are out there
Jackneill has joined #ruby
bMalum has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
<livcd> except a lot of these apps do not work anymore :P
fabrice31 has quit [Ping timeout: 240 seconds]
<shevy> yeah
<shevy> guys
heftig has joined #ruby
<shevy> livecd asked about YOUR examples of working sinatra apps that are also good
<shevy> so show him what you got
haxrbyte has joined #ruby
iliketurtles has joined #ruby
<dfockler> *crickets*
<livcd> so show me what you got!
<dfockler> *crickets*
<livcd> shevy: damn aye!
michaeldeol has joined #ruby
jgt1 has quit [Ping timeout: 265 seconds]
wildroman2 has joined #ruby
ascarter has joined #ruby
User458764 has joined #ruby
<dfockler> I would, but I'm building internal facing stuff :P
ascarter has quit [Client Quit]
Timba-as has quit [Quit: Be back later ...]
bronson has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
wallerdev has joined #ruby
towski_ has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
wildroman2 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
cirn0 has joined #ruby
Igorshp has quit [Remote host closed the connection]
zotherstupidbot_ has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
cirn0 has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 244 seconds]
leafybasil has quit [Remote host closed the connection]
<dreinull75> livcd farhang.im
<dreinull75> I'm building an API for an app that uses a DB. App is closed, DB is open. There are users which I want to use in my API as well but I don't know how the passwords are encrypted. Since I have a user there too I could just try all kinds of hashing methods but maybe someone can help me find out which method might be most successful. One password looks like this: Bj}icd -> slight variation but you get the idea.
bronson has quit [Remote host closed the connection]
j0n3 has joined #ruby
juanpaucar has quit [Remote host closed the connection]
nobitanobi has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
<jokke> i have a very weird problem with rake
juanpaucar has joined #ruby
<jokke> if i run scan_asset_dimensions by itself it works fine
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jokke> if i run import_everything however
<jokke> it hangs at the scan_asset_dimensions task
zacts has quit [Quit: leaving]
<jokke> indefinetely
<jokke> any ideas? i can provide additional code snippets when needed
<dfockler> jokke: you should probably repost that snippet somewhere better
<jokke> dfockler: define better
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dfockler> gist, pastie
<jokke> don't see why that's better..
xxneolithicxx has joined #ruby
<dfockler> well I get an untrusted cert error on the url you gave me
<jokke> but oh well
lkba has joined #ruby
<jokke> problem solved!
enliightenment has quit [Ping timeout: 272 seconds]
<jokke> :)
bMalum has quit [Quit: bMalum]
<jokke> that's probably because your distro/os doesn't trust caCert
<shevy> dreinull75 the above is built with sinatra?
bMalum has joined #ruby
affenhoden has joined #ruby
<shevy> lol
<shevy> I can not copy paste the character from there ->
<shevy> ???
<dreinull75> shevy which character?
<dreinull75> yes, farhang.im is built with sinatra
affenhoden has quit [Client Quit]
jayeshsolanki has quit [Quit: bye!]
commondream has joined #ruby
affenhoden has joined #ruby
<shevy> this is the character for a dog
<shevy> hmm let me screenshot
dstarh has joined #ruby
<dreinull75> sorry, can't follow
jbomo has joined #ruby
x1337807x has joined #ruby
io_syl has quit []
codecop has joined #ruby
<jhass> shevy: didn't patch your stuff for UTF-8 yet?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I don't need a patch, it's working fine
<dreinull75> Hund سَگ
<dreinull75> works fine here
<xxneolithicxx> i got 3 question marks when shevy did it and the actual symbol when you did it
<shevy> then you need to fix your system xxneolithicxx
<HotCoder> hello
<shevy> ohhh a hot coder
<HotCoder> what text editor do you guys/girls use for ruby?
<shevy> bluefish
fmcgeough has quit [Quit: fmcgeough]
<xxneolithicxx> doesnt matter much to me, i dont care what the symbol means lol
<xxneolithicxx> emacs
<dfockler> jokke: can't see anything at a glance, did you try changing the order of those last three task invocations?
<shevy> xxneolithicxx yeah, those characters are so esoteric and exotic. why can't they use latin characters
<dreinull75> shevy I got three ??? as well
<jokke> dfockler: i can't
<dfockler> are they dependent?
juanpaucar has quit [Remote host closed the connection]
<jokke> well i can
<jokke> those last three i can
rubie has quit [Remote host closed the connection]
leafybasil has joined #ruby
<jokke> well actually search index has to be last
bmurt has quit []
sent1nel has joined #ruby
<havenwood> HotCoder: If you're not in the mood to learn emacs or vi give Atom a try: https://atom.io/
diegoviola has quit [Remote host closed the connection]
<dreinull75> shevy that's actually a good question since persian is basically an indo-germanic language and it makes absolutely no linguistic sense to use a semitic charset.
<tejasmanohar> anyone here used splitrb gem
<tejasmanohar> ?
<dreinull75> tried atom yesterday and couldn't move lines, couldn't navigate and felt totally helpless. Back to vim.
<shevy> no idea really. what I find funny is that distinction in persian/arabian/semitic
<tejasmanohar> ive setup two a/b tests on one page- https://gist.github.com/tejasmanohar/6f9390a0410b0c262015
<HotCoder> im in the mood to learn ruby
<HotCoder> im completely new
<tejasmanohar> the second doesnt seem to opearte at all- http://i.imgur.com/ftVYqwX.png
<HotCoder> whats a starter to do?
cirn0 has joined #ruby
<shevy> the worst characters are still the chinese symbols
<tejasmanohar> i've refreshed the page multiple times and gone in multiple sessions - diff browsers, incognito etc
<shevy> or perhaps unicode snowman :-)
<dfockler> HotCoder: what would you like to build?
affenhoden has quit [Remote host closed the connection]
<dreinull75> HotCoder try some sinatra app
<shevy> HotCoder do you mean new to programming altogether - or new to ruby only?
<tejasmanohar> button_color is the one that isnt quite working- see @button_color = ab_test("button_color", 'green', 'orange')
<HotCoder> i just want to learn
<HotCoder> shevy, i've coded in java before
<HotCoder> and node.sj
<tejasmanohar> HotCoder: shevy asks for your background with programming
<HotCoder> node.js
<tejasmanohar> oh ok
lidenskap has joined #ruby
<tejasmanohar> yeah, and that a/b is never activating
lidenskap has quit [Remote host closed the connection]
<shevy> hmm
lidenskap has joined #ruby
Guest24 is now known as lele
User458764 has joined #ruby
<tejasmanohar> HotCoder: ive seen you a couple times in #programming and #node.js i think
<tejasmanohar> :)
finisherr has quit [Quit: finisherr]
<HotCoder> yup thats me
jottr has joined #ruby
<HotCoder> so what text editor should i use for ruby
<tejasmanohar> anyhow yeah if anyone knows whats wrong with my usage of splitrb help would be greatly appreciated
<HotCoder> or should i go IDE
umgrosscol has quit [Quit: Quit]
serivichi has quit [Ping timeout: 255 seconds]
<tejasmanohar> HotCoder: whatever, i dont use an idea
<tejasmanohar> IDE
<shevy> hehe
<shevy> use my idea!
<miah> use whatever you like best
<HotCoder> tejasmanohar, what do u use?
<tejasmanohar> subl
<shevy> I use cats
cirn0 has quit [Remote host closed the connection]
<tejasmanohar> sometimes vim
<miah> i use vim, my coworkers use vim, emacs, sublime, etc
rubie has joined #ruby
<tejasmanohar> mostly subl in vintage mode
<miah> all of our code works the same way though
affenhoden has joined #ruby
<tejasmanohar> yeah ^ that wont help you learn ruby
segfalt has quit [Quit: segfalt]
<miah> because ruby doesnt care which editor you used to write it
someword has joined #ruby
paulcsmith has joined #ruby
cirn0 has joined #ruby
SouL_|_ has joined #ruby
vickleton has joined #ruby
leafybasil has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 240 seconds]
<tejasmanohar> yeah so my variant is not being triggered, <p><%= @button_color %></p> always prints green even after clearing browser data
cirn0 has quit [Remote host closed the connection]
cosmicexplorer has joined #ruby
bMalum has quit [Quit: bMalum]
baroquebobcat has quit [Quit: baroquebobcat]
bootstrappm has joined #ruby
finisherr has joined #ruby
TheCapacitator_ has joined #ruby
jcutrell has quit [Quit: jcutrell]
thumpba_ has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
thumpba has joined #ruby
yaw has joined #ruby
sigurding has quit [Quit: sigurding]
baroquebobcat has joined #ruby
segfalt has joined #ruby
kenneth has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<HotCoder> ok
<HotCoder> sublime ill use
<HotCoder> since im familiar with it more
haxrbyte_ has joined #ruby
commondream has quit [Remote host closed the connection]
<shevy> O_o
<HotCoder> O.O
That1Guy has joined #ruby
haxrbyte has quit [Ping timeout: 244 seconds]
_blizzy_ has joined #ruby
<dfockler> tejasmanohar: if you don't restart the server then the value passed to @button_color won't change
denver has quit [Read error: Connection reset by peer]
GriffinH_ has joined #ruby
abuzze has joined #ruby
<xxneolithicxx> coders and their editors...
Eiam_ has joined #ruby
thumpba_ has joined #ruby
<dfockler> until we get past text based programming, that's what we've got
<xxneolithicxx> im surprised they havent devoted a book to the subject
<shevy> computers simply must become smarter
GriffinHeart has quit [Ping timeout: 265 seconds]
<dfockler> I can imagine smart AI helping developers write code
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
thumpba has quit [Ping timeout: 265 seconds]
io_syl has joined #ruby
<jhass> heuristics based programming, do what the programmer meant to say. could be fun :D
<shevy> well we'd require a really smart AI first
wildroman2 has quit [Remote host closed the connection]
<shevy> I guess it will be only a matter of time
<jhass> dunno, figuring out natural language processing might be enough
segfalt has quit [Quit: segfalt]
doodlehaus has quit [Ping timeout: 240 seconds]
Elevanto has joined #ruby
rbennacer has quit [Remote host closed the connection]
<shevy> babelfish?
<shevy> "japanese good very very yesterday begin to food"
michaeldeol has joined #ruby
<eam> too much ambiguity in natural language
abuzze has quit [Remote host closed the connection]
_xCept has quit [Ping timeout: 272 seconds]
<shevy> couldn't a smart AI resolve the ambiguity?
jottr has joined #ruby
<dfockler> it would need a lot of data
rbennace_ has joined #ruby
<xxneolithicxx> thats what the government is funding IBM's Watson for, we will get there and it will be scary
_xCept has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
kirun has joined #ruby
<xxneolithicxx> when AI sees the natural faults in humanity it will deem us inferior and dangerous
cirn0 has joined #ruby
x1337807x has joined #ruby
Timba-as has joined #ruby
<shevy> yes
<shevy> space odyssee
Rollabunna has quit [Remote host closed the connection]
<shevy> HAL was so evil
<shevy> what a cynical and evil computer
DerisiveLogic has joined #ruby
iasoon has joined #ruby
<shevy> or skynet sending the T1000 terminators to get rid of problematic humans
<shevy> or T100
DerisiveLogic has quit [Remote host closed the connection]
GriffinH_ has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
NuckFiggers has joined #ruby
iasoon has quit [Client Quit]
<tejasmanohar> im having an issue in erb like the following https://gist.github.com/tejasmanohar/f02d27886afc78d8bba0
<tejasmanohar> is there any way this can happen
mjuszczak has quit []
<tejasmanohar> like anything can be thought of to make this happen?
<NuckFiggers> hi people
wildroman2 has joined #ruby
maia has joined #ruby
maia has quit [Client Quit]
<tejasmanohar> the elsif passes and only half of the block's code seems to run O.o shevy
iasoon has joined #ruby
<tejasmanohar> wait nvm didnt mean to tag shevy , sorry
<shevy> oh tag me, I like tags
<NuckFiggers> what is a great place to learn ruby?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iasoon has quit [Client Quit]
<NuckFiggers> i want to learn ruby
<shevy> jhass your divine intervention is requested here
yaw has quit [Ping timeout: 256 seconds]
<xxneolithicxx> i like learning ruby under a desk
<tejasmanohar> sorry shevy :P
<shevy> under a desk???
<xxneolithicxx> he asked what is a great place to learn it lol :-P
HOLOHOAX has quit [Ping timeout: 246 seconds]
iasoon has joined #ruby
<tejasmanohar> but yeah i have an elsif in erb and it passes and then not all of the 2nd line under the elsif runs
<shevy> lol
<tejasmanohar> btu the first does
<tejasmanohar> its really weird..
<shevy> nah xxneolithicxx he is the perma-ban troll
<shevy> he was liked banned 10000x before
<tejasmanohar> asked in RoR but no luck ::\\
<jhass> !mute NuckFiggers
bmurt has joined #ruby
<shevy> I don't know how he can have so much time really, always via webchat
<tejasmanohar> <% elsif @button_color === 'orange' %> passes
<tejasmanohar> <p><%= @button_color %></p> prints <p>orange</p>
<shevy> all those <% make ERB so hard
<tejasmanohar> <input class="signup orange" type="submit" value="Sign Me Up!" /> is printed but WITHOUT the orange
<tejasmanohar> shevy: lol wt
<tejasmanohar> f
jenrzzz has joined #ruby
casadei has quit [Remote host closed the connection]
<shevy> well it is superficial ruby code but with embedded html or?
doublemalt_ has quit [Ping timeout: 246 seconds]
<shevy> or the reverse
<tejasmanohar> shevy: hm it is ruby code embedded in html...?
<tejasmanohar> no question mark
<tejasmanohar> it is ruby code embedded in html
<tejasmanohar> it is RoR app, see controller in file above
bmurt has quit [Client Quit]
<shevy> I opted to just have ruby generate a html string
<xxneolithicxx> ERBs are cool, i use them for populating XML templates
_xCept has quit [Ping timeout: 272 seconds]
arietis1 has joined #ruby
lidenskap has quit [Remote host closed the connection]
<tejasmanohar> so that's the code ^
<tejasmanohar> other one is the gist
<tejasmanohar> **that's the live URL
<tejasmanohar> other one is the code
<tejasmanohar> *gist is the code
* tejasmanohar questions his sanity today
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atmosx has quit [Ping timeout: 276 seconds]
dopie has joined #ruby
<xxneolithicxx> I get signup organge for class unless i dont understand what your problem is
bigkevmcd has quit [Quit: Outta here...]
<tejasmanohar> xxneolithicxx: wait what
arietis has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby
lidenskap has joined #ruby
<tejasmanohar> <input class="signup orange" type="submit" value="Sign Me Up!" /> oh wtf
<xxneolithicxx> CTRL+F5 and refresh your page
<tejasmanohar> it changed i swear
<tejasmanohar> ok yeah thats prob it
jenrzzz has quit [Ping timeout: 244 seconds]
fmcgeough has joined #ruby
NuckFiggers has quit [Ping timeout: 246 seconds]
shellfu has quit [Remote host closed the connection]
<jhass> tejasmanohar: mmh, I didn't see you state that you crossposted
DEA7TH has quit [Ping timeout: 256 seconds]
gusrub has joined #ruby
A205B064 has joined #ruby
platzhirsch has quit [Quit: Leaving.]
iasoon has quit [Quit: WeeChat 1.2]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
iasoon has joined #ruby
soulcake has joined #ruby
sent1nel has quit [Remote host closed the connection]
cirn0 has quit [Remote host closed the connection]
Timba-as has quit [Quit: Lingo: www.lingoirc.com]
<shevy> LET'S PLAY HANGMAN - WITH HIM ON THE CROSS!
haxrbyte_ has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
doodlehaus has joined #ruby
<tejasmanohar> jhass: sorry, i did cancel my question there saying its covered
<dfockler> 4.5 hours left of work X(
<jhass> tejasmanohar: just keep in mind that crosspost is only tolerated if you inform both channels about it and relay help given to either side
sinequanon has joined #ruby
towski_ has joined #ruby
<tejasmanohar> got it
The_Phoenix has quit [Ping timeout: 244 seconds]
gizmore has joined #ruby
baweaver has joined #ruby
<tejasmanohar> xxneolithicxx: not working tho, http://i.imgur.com/wgcoKZo.png
<tejasmanohar> http://4aac1de5.ngrok.io/ if you open this without the query param as much as you want it never shows orange
<tejasmanohar> in incognito etc
lkba has quit [Ping timeout: 265 seconds]
gizless has quit [Ping timeout: 255 seconds]
iasoon has left #ruby ["WeeChat 1.2"]
ramfjord has joined #ruby
<tejasmanohar> this is crazy weird
mrsolo has quit [Quit: This computer has gone to sleep]
io_syl has quit []
<tejasmanohar> xxneolithicxx: see what i mean or no ?
<xxneolithicxx> no because when i add the ?button_color param it works as expected or as coded
<tejasmanohar> dont add ?button_color
<tejasmanohar> that forces it to
<tejasmanohar> if you jsut open the root url and open it in incognito a few times or however many youll never get orange
hoov has quit []
<tejasmanohar> my data shows it http://i.imgur.com/kuluPg7.png
x1337807x has joined #ruby
<tejasmanohar> youll see different variations of my callout media yt vid / iphone if you open different seesssions (incognito)
<tejasmanohar> but no not color
cirn0 has joined #ruby
casadei has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<xxneolithicxx> no idea, i dont use ruby for much dynamic web programming like that (thats why im a backend dev, i hate web programming)
sent1nel has joined #ruby
<tejasmanohar> ah
User458764 has joined #ruby
hololeap has joined #ruby
baweaver has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
jimms_ has joined #ruby
tuelz has quit [Ping timeout: 246 seconds]
jpfuentes2 has joined #ruby
jimms has quit [Read error: Connection reset by peer]
cirn0 has quit [Remote host closed the connection]
cirn0 has joined #ruby
<jpfuentes2> anyone here awesome at debugging running ruby processes? i'm trying to fire up a gdb session on a running server. it's a multi-threaded puma worker. `t a a bt` then a `call rb_backtrace()` segfaults
shuber_ has quit [Remote host closed the connection]
<tejasmanohar> anyhow if someone heres used splitrb please ping me ;)
hsps_ has joined #ruby
cirn0 has quit [Remote host closed the connection]
shuber_ has joined #ruby
noraesae has joined #ruby
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
finisherr has joined #ruby
coderhs has quit [Ping timeout: 258 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
shuber_ has quit [Remote host closed the connection]
pengin has joined #ruby
hardlin3r has joined #ruby
jimms_ has quit [Read error: Connection reset by peer]
jimms has joined #ruby
StevenXL has quit [Quit: leaving]
<dreinull75> encoding horrors
<dreinull75> >>> 132.chr
lolmaus has quit [Quit: Konversation terminated!]
<ruboto> dreinull75 # => /tmp/execpad-8e8fc3aa1fbc/source-8e8fc3aa1fbc:2: syntax error, unexpected '>' ...check link for more (https://eval.in/368815)
<havenwood> UTF-8 ALL THE THINGS \o/
baweaver has joined #ruby
<dreinull75> >> 132.chr
<ruboto> dreinull75 # => "\x84" (https://eval.in/368816)
<dreinull75> how do I get ä?
<havenwood> >> 'ä'.ord
<ruboto> havenwood # => 228 (https://eval.in/368817)
jenrzzz has joined #ruby
deric_skibotn has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
towski_ has quit [Remote host closed the connection]
mjuszczak has joined #ruby
shuber_ has joined #ruby
<dreinull75> havenwood I'm assuming ascii
<havenwood> dreinull75: ;)
<dreinull75> >> 228.chr
<ruboto> dreinull75 # => "\xE4" (https://eval.in/368818)
<shevy> <dreinull75> encoding horrors
<shevy> my word man! \o/
<dreinull75> no better
<shevy> encoding NEVER gets better
<shevy> it only gets worse
j0n3 has quit [Read error: Connection reset by peer]
j0n3 has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
tak1n has quit [Ping timeout: 244 seconds]
Azure has quit [Read error: Connection reset by peer]
tak1n has joined #ruby
Azure has joined #ruby
kadoppe has quit [Ping timeout: 264 seconds]
<dfockler> because everyone does it differently!
kadoppe has joined #ruby
noraesae has quit [Remote host closed the connection]
alexherbo2 has quit [Read error: Connection reset by peer]
tuelz has joined #ruby
OtterCoder has joined #ruby
<havenwood> >> [228].pack 'U'
<ruboto> havenwood # => "ä" (https://eval.in/368820)
segfalt has joined #ruby
horsecowdog has quit [Remote host closed the connection]
<apeiros> "\u00e4"
<apeiros> >> "\u00e4"
<ruboto> apeiros # => "ä" (https://eval.in/368821)
<wallerdev> >> "ä"
<ruboto> wallerdev # => "ä" (https://eval.in/368822)
<havenwood> dreinull75: ^
yeticry has quit [Ping timeout: 256 seconds]
<dreinull75> >> 132.pack('U*')
<ruboto> dreinull75 # => undefined method `pack' for 132:Fixnum (NoMethodError) ...check link for more (https://eval.in/368823)
<havenwood> dreinull75: Array
<dreinull75> >> [132].pack('U*')
<ruboto> dreinull75 # => "\u0084" (https://eval.in/368824)
mjuszczak has quit []
horsecowdog has joined #ruby
<dreinull75> havenwood apeiros that works only outside irb, figured that out too
<jpfuentes2> anyone here awesome at debugging running ruby processes? i'm trying to fire up a gdb session on a running server. it's a multi-threaded puma worker. `t a a bt` then a `call rb_backtrace()` segfaults
<jhass> >> puts 228.chr
<ruboto> jhass # => � ...check link for more (https://eval.in/368825)
<wallerdev> >> [105, 32, 108, 111, 118, 101, 32, 114, 117, 98, 121].pack('C*')
<ruboto> wallerdev # => "i love ruby" (https://eval.in/368826)
yeticry has joined #ruby
mrmargolis has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
mjuszczak has joined #ruby
<jhass> jpfuentes2: can't just spawn a (remote) pry?
mrmargolis has joined #ruby
<apeiros> dreinull75: what do you mean, "works only outside irb"?
<dreinull75> apeiros oh, does work, somehow
<dreinull75> but not the full ascii table. That one only works in my regular terminal runbning it from a file
gusrub has quit [Ping timeout: 245 seconds]
<jpfuentes2> jhass haven't tried/thought about it. is it likely to work in a multi-threaded process?
<apeiros> dreinull75: again, what does "work" mean?
<apeiros> "work" is an utterly useless description. can mean anything and nothing.
<jhass> jpfuentes2: jumping threads won't work afaik, but if you have a point you want to break on it'll work well
<dreinull75> sorry gotta go, bells ringing
<tejasmanohar> >> p 'test'
<ruboto> tejasmanohar # => "test" ...check link for more (https://eval.in/368827)
<jpfuentes2> got it, thanks
<tejasmanohar> oh ok so its here and ##javascript
startupality has joined #ruby
<havenwood> tejasmanohar: hrm?
<shevy> he says where he asks a question
<shevy> jhass made him do so
x1337807x has joined #ruby
<dudedudeman> spreaking of javascript, i have a question regarding it for your rubyists
<havenwood> shevy: ahh, gotcha - thought it was a mystery related to: p 'test'
<shevy> ack
<shevy> a javascript question
<dfockler> dudedudeman: yes ruby isn't javascript
DEA7TH has joined #ruby
<dudedudeman> dammit. i didn't know
<dudedudeman> ha
Oka has joined #ruby
<wallerdev> baweaver: mobowl at 5th and minna today, maybe ill try it :p
<dudedudeman> no, i'm just curious about how you guys learned js. did you start doing ruby work, and learn as you went for the times you needed it? or did you take some dedicated time and work on javascript and only javascript so you could learn it
finisherr has quit [Quit: finisherr]
OtterCoder has quit [Remote host closed the connection]
bhaak has quit [Ping timeout: 256 seconds]
gusrub has joined #ruby
<baweaver> dudedudeman: Thrown into the fire style
bhaak has joined #ruby
Vile` has quit [Ping timeout: 272 seconds]
<wasamasa> dudedudeman: learn it as you go
<baweaver> we need this jquery thing fixed yesterday
<baweaver> and so began the fun
<havenwood> dudedudeman: Humm really loudly, close your eyes and pretend it doesn't exist.
<havenwood> dudedudeman: http://opalrb.org/
<wasamasa> dudedudeman: I started writing greasemonkey scripts
<dudedudeman> LA LA LA LA LA LA
<dudedudeman> like that
<dudedudeman> ?
<havenwood> dudedudeman: yup
<baweaver> I would really spend dedicated time learning it though at some point later.
<baweaver> As much hate as it gets, it's not that bad of a language.
<dudedudeman> and I've looked in to opal. i still think it would be better to at least learn some of hte fundamentals, first... but i'm weird?
vickleton has quit [Quit: Ex-Chat]
startupality has quit [Quit: startupality]
<baweaver> sure, it has warts, but the good parts far and outweigh it
__chris has quit [Quit: This computer has gone to sleep]
<wasamasa> dudedudeman: you'll need to do that for any language compiling to a different one
<dudedudeman> i've got some of it, and my wife got me this sweet book about it for christmas that i love
<wasamasa> dudedudeman: so these are a mixed bag
<havenwood> baweaver: Stockholm syndrome? :P
__chris has joined #ruby
<wasamasa> dudedudeman: see clojure and java for a more popular example
<baweaver> havenwood: No, that's Chef :P
<havenwood> baweaver: hehe
<wasamasa> dudedudeman: you'll need to learn at the very least about the java ecosystem
__chris has quit [Client Quit]
<shevy> beavers only hate one thing in their life
<shevy> trees
<havenwood> wasamasa: hah
<baweaver> Trees and Java
<miah> i agree with chef == stockhold syndrome
Vile` has joined #ruby
<wasamasa> dudedudeman: and that's not nice, no matter what their evangelists keep telling me :P
<dudedudeman> ugh, not want
<baweaver> All management frameworks rely on Stockholme
<miah> but most frameworks are about their dogma
* dudedudeman not want to learn javas. would rather drink javas
<wasamasa> dudedudeman: I'm currently learning clojurescript and practicing js along
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lele is now known as Guest24
<wasamasa> dudedudeman: and it's so sucky to not have proper tools for work
swgillespie has joined #ruby
<wasamasa> dudedudeman: I log stuff into the browser console and get homebrew pseudo-objects I can't decipher
<baweaver> While I dislike Java, I can still use it just as well as much of any coder
vickleton has joined #ruby
blackmesa has joined #ruby
horsecowdog has quit [Remote host closed the connection]
<baweaver> It's kinda like a reverse Stockholme where you become very bitter and resentful towards your captor
<havenwood> baweaver: marriage?
haxrbyte has joined #ruby
<tejasmanohar> looks like some new folks here now,... anyone used splitrb?
<baweaver> Not quite that jaded with it ;)
<baweaver> (though it would help if I were married to know that one)
<baweaver> Nope
finisherr has joined #ruby
<miah> never used splitrb because i dont really rails
baroquebobcat has quit [Quit: baroquebobcat]
<baweaver> Probably better to ask in #RubyOnRails
That1Guy has joined #ruby
Drewch has joined #ruby
michaeldeol has joined #ruby
pwnz0r has joined #ruby
<tejasmanohar> splitrb is allowed in way more than rails
<miah> ok, i dont do much with rack either
<miah> looks interesting if i did though
<miah> are you having a specific problem with splitrb or just taking a survey?
aryaching has quit [Ping timeout: 244 seconds]
juanpaucar has joined #ruby
phutchins has quit [Ping timeout: 258 seconds]
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
towski_ has joined #ruby
juanpaucar has quit [Ping timeout: 276 seconds]
<shevy> hehe
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ilyes512 has joined #ruby
mjuszczak has quit []
rbennace_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
arietis1 has quit [Quit: Leaving.]
mercerist has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
mjuszczak has joined #ruby
hakunin has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
affenhoden has quit [Ping timeout: 250 seconds]
jenrzzz_ has joined #ruby
lidenskap has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
platzhirsch has joined #ruby
Narzew has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
Kricir has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
haxrbyte has quit [Remote host closed the connection]
P1RATEZ has quit [Quit: Eric Schmit poop painting...sold for $1M]
mjuszczak has quit []
baweaver has joined #ruby
finisherr has quit [Quit: finisherr]
ghostmoth has joined #ruby
<dudedudeman> huehue
sandelius has joined #ruby
danman has joined #ruby
finisherr has joined #ruby
<sandelius> is it "ok" to change an object that is created on startup on runtime?
<shevy> change in what way
<apeiros> sandelius: depends on the context
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sandelius> hmm I'll try to gist an example
Channel6 has quit [Remote host closed the connection]
cosmicexplorer has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
ScriptGeek has left #ruby [#ruby]
ziprar has joined #ruby
jimms has quit [Remote host closed the connection]
segfalt has quit [Quit: segfalt]
Rapier- has quit [Quit: (null)]
<Elevanto> If I understood blocks correctly, is this somehow an each method would look?
<Elevanto> For say an array
MasterPiece has joined #ruby
<sandelius> it's just an example. It's thread-saftey that worries me
jbomo has quit [Ping timeout: 252 seconds]
Guest63695 has quit [Remote host closed the connection]
bim has joined #ruby
<apeiros> sandelius: if you have threads, you must synchronize all access to shared state
<dfockler> Elevanto: that's the idea
<weaksauce> Elevanto sorta yeah.
<apeiros> and that's unrelated to modifying data set on startup time
<weaksauce> loop around yield x for each element in the array.
<Elevanto> Oh great I think I get it now, thanks dfockler , weaksauce :)
bim is now known as Guest66798
ArchRogem has joined #ruby
Caldicot has joined #ruby
Caldicot has left #ruby [#ruby]
<apeiros> Elevanto: well, you'd invoke yield once for every element. not just once for the whole array.
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Elevanto> apeiros, Yes of course.
<apeiros> e.g. array's each could be implemented as: def each; size.times do |i| yield(self[i]) end; end
<baweaver> If thread safety is a worry, then just use functional style
krz has quit [Quit: WeeChat 1.0.1]
<apeiros> oh, missing `self` as last statement, since each usually returns self.
<Elevanto> apeiros, So, another block inside each method. Where does this block come from?
<Elevanto> Ahh
<Elevanto> times :D
baroquebobcat has joined #ruby
<apeiros> you pass it to times
platzhirsch has quit [Quit: Leaving.]
<apeiros> it comes from the code you just read ;-)
<baweaver> Depending on your language experience, it's safer to think of blocks as functions in most cases
zotherstupidguy has quit [Ping timeout: 264 seconds]
<baweaver> especially if you started anywhere close to JS
<apeiros> you can do it without a block too
<apeiros> i = 0; while i < size; yield(self[i]); i += 1; end
P1RATEZ has joined #ruby
<baweaver> why not just: self.each
<sandelius> apeiros so it's Mutex#synchronize I'm looking for?
<baweaver> considering that returns an enumerator
zotherstupidguy has joined #ruby
mrsolo has joined #ruby
<Elevanto> baweaver, We are already inside the each method
<Elevanto> apeiros, Yea I see :)
<baweaver> fair point
platzhirsch has joined #ruby
<baweaver> if you're making a collection enumerable, it's normally easier to tack each onto the iterable element
<apeiros> sandelius: yeah, that's one way
gustavn has joined #ruby
<sandelius> apeiros so that what e.g sinatra does here https://github.com/sinatra/sinatra/blob/master/lib/sinatra/base.rb#L1486
rdar has quit [Ping timeout: 256 seconds]
Deas has joined #ruby
casadei has quit [Remote host closed the connection]
<Deas> what is 'foo << { bar: "var" }' called?
ndrei has quit [Ping timeout: 272 seconds]
<Deas> i don't know if im doing anything wrong but that syntax totally just gives error
<weaksauce> what is foo?
<weaksauce> if foo is an array that would add an element to the end of foo.
<havenwood> Deas: And what's the Error? What version of Ruby?
<hfp> How do I do time and date calculations easily in vanilla ruby? RoR has all these fancy methods to add 2 months and 3 hours to a date but Ruby doesn't. What's the best approach?
<tuelz> hfp: probably not the answer you're hoping for, but the best advice I can give for a general question like that is to read ruby Time class
cirn0 has joined #ruby
<tuelz> or did you specifically want to add 2 months and 3 hours?
wildroman2 has joined #ruby
<hfp> tuelz: I did and couldn't find an easy way. `Time.now + 60*60*24*30*5` is not an acceptable way of adding 5 months to a date because some months are 30 days, some are 28, some are 31...
<Deas> havenwood: oh, it needes to be an variable?
lolmaus has joined #ruby
rotcetorptekcop has joined #ruby
rotcetorptekcop has quit [Max SendQ exceeded]
<apeiros> sandelius: yes
mrmargol_ has joined #ruby
<Deas> NameError
<tuelz> hfp: so spcecifically you want to add a month?
<sandelius> apeiros that will lock each request so only one can be processed at a time?
<hfp> tuelz: I'd like to add variable amounts of time, depending on where in the code I am
Rollabunna has joined #ruby
<tuelz> hfp: sounds like you would be best suited to just include activesupport and use their helper methods like advance
RegulationD has quit [Ping timeout: 265 seconds]
<apeiros> sandelius: I didn't read the whole source, but it looks like
Deas has left #ruby ["'nvm found it'"]
<sandelius> apeiros ok thx, that's not what I want :) refactor, refactor.... :)
<havenwood> hfp: how do you decide how long a month is from any given point? like on the last or first day of the month, what's a month from that?
mrmargolis has quit [Ping timeout: 255 seconds]
rotcetorptekcop has joined #ruby
rotcetorptekcop has quit [Excess Flood]
<hfp> havenwood: More like "4 months from today the date will be 22-sep-2015"
<tuelz> what if the last day of that month is 30 and today is 31st?
<hfp> tuelz: That's all the things I'd like to avoid getting into. RoR is great for that, it calculates all the dates automatically
<baweaver> The last thing you want to do is screw with datetime maths unless you have to
Guest37911 has joined #ruby
<tuelz> you could use Time.now.end_of_month and add 1 day to get the next month
bronson has quit [Remote host closed the connection]
<apeiros> sandelius: it's up to you to be more precise with your locking
dopie has quit [Quit: This computer has gone to sleep]
<tuelz> hfp: I agree, that's why I suggest just including whatever you need from activesupport
atmosx has joined #ruby
<hfp> I think I'll use activesupport indeed
Rollabunna has quit [Ping timeout: 265 seconds]
<havenwood> hfp: cherry pick
<tuelz> or don't cherry pick
<tuelz> :p
bronson has joined #ruby
wallerdev has joined #ruby
jgt1 has joined #ruby
michaeldeol has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
gustavn has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
ndrei has joined #ruby
mjuszczak has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<havenwood> hfp: require 'active_support/core_ext/date_time/calculations'; DateTime.now.next_month 4
x1337807x has joined #ruby
<wallerdev> mobowl too busy
<hfp> havenwood: Yes thanks
Guest37911 has quit [Quit: adios amigos]
mjuszcza_ has joined #ruby
wildroman2 has joined #ruby
mjuszczak has quit [Read error: Connection reset by peer]
mjuszcza_ has quit [Read error: Connection reset by peer]
vikaton has joined #ruby
mjuszczak has joined #ruby
baweaver has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mjuszczak has quit [Client Quit]
dopie has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
kaspernj has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
tejasmanohar has quit [Quit: WeeChat 1.1.1]
Eiam_ has joined #ruby
lidenskap has joined #ruby
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
zzing has joined #ruby
danman has quit [Quit: danman]
freerobby has quit [Quit: Leaving.]
danman has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
danman has quit [Client Quit]
Eiam_ has quit [Ping timeout: 256 seconds]
sent1nel has quit [Remote host closed the connection]
cirn0 has quit [Remote host closed the connection]
Guest24 is now known as lele
leafybasil has joined #ruby
Jackneill has quit [Quit: Leaving]
donnel has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
e1nh4nd3r has quit [Quit: Leaving.]
scripore has quit [Quit: This computer has gone to sleep]
bMalum has joined #ruby
cirn0 has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
someword1 has joined #ruby
gambl0re has quit [Ping timeout: 240 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
e1nh4nd3r has joined #ruby
KommandoFreisler has joined #ruby
AlexRussia has quit [Ping timeout: 258 seconds]
someword has quit [Ping timeout: 256 seconds]
mistermocha has quit [Remote host closed the connection]
baweaver has joined #ruby
yalue has quit [Quit: return 0;]
Shidash has quit [Ping timeout: 265 seconds]
Notte has joined #ruby
sinequanon has quit [Remote host closed the connection]
Shidash has joined #ruby
<atmosx> hello
Channel6 has joined #ruby
<dudedudeman> hellow
sinequanon has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rotcetorptekcop has joined #ruby
rotcetorptekcop has quit [Excess Flood]
qwertme has joined #ruby
fibbel has quit [Quit: fibbel]
casadei has joined #ruby
<shevy> hellox
x1337807x has joined #ruby
<adaedra> helloy
djbkd has joined #ruby
<jhass> good morning
<adaedra> test
<weaksauce> hfp 'require active_support/time' would be a more complete way to add in everything time related. and gives you 5.days.from_now
swgillespie has joined #ruby
bronson has joined #ruby
<weaksauce> same with date_time and date
WildBamboo-Josh has quit [Read error: Connection reset by peer]
<jhass> !kick donnel
donnel was kicked from #ruby by ruboto [donnel]
donnel has joined #ruby
<jhass> !ban donnel !T 7d spam
donnel was kicked from #ruby by ChanServ [Banned: spam]
WildBamboo-Josh has joined #ruby
djbkd has quit [Remote host closed the connection]
multi_io has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
snath has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
wildroman2 has quit [Ping timeout: 255 seconds]
multi_io has joined #ruby
snath has left #ruby [#ruby]
codecop has quit [Remote host closed the connection]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cirn0 has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
soulcake has quit [Quit: Quack.]
Akagi201 has joined #ruby
soulcake has joined #ruby
shadoi has quit [Quit: Leaving.]
jimms has joined #ruby
shadoi has joined #ruby
CustosLimen has joined #ruby
juanpaucar has joined #ruby
soulcake has quit [Client Quit]
soulcake has joined #ruby
jerius has quit [Quit: /quit]
jgt1 has quit [Ping timeout: 252 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
juanpaucar has quit [Ping timeout: 258 seconds]
arietis has joined #ruby
arietis has quit [Client Quit]
casadei has quit [Remote host closed the connection]
tubuliferous has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
rotcetorptekcop has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
finisherr has quit [Quit: finisherr]
zotherstupidguy has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lidenskap has quit [Remote host closed the connection]
mistermocha has joined #ruby
arietis has joined #ruby
Mia has quit [Ping timeout: 265 seconds]
finisherr has joined #ruby
arietis has quit [Client Quit]
tubuliferous has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
ldnunes has quit [Quit: Leaving]
Spami has quit [Quit: Leaving]
mrsolo has joined #ruby
ismaelga has joined #ruby
Spami has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
swerter has quit [Quit: WeeChat 1.2]
swerter has joined #ruby
iamninja has joined #ruby
swerter has quit [Client Quit]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
regnartim has joined #ruby
zubov has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Channel6 has quit [Quit: Leaving]
regnartim has quit [Client Quit]
Stalkr_ has quit [Ping timeout: 240 seconds]
Guest66798 has quit []
mercerist has quit [Quit: Computer has gone to sleep.]
mercerist has joined #ruby
mrmargol_ has quit []
lidenskap has joined #ruby
Hijiri has joined #ruby
<xxneolithicxx> random question not ruby related
insidious has quit [Quit: Textual IRC Client: www.textualapp.com]
<xxneolithicxx> are there "package managers" or script managers for bash like pip/gem?
shuber_ has quit [Remote host closed the connection]
swgillespie has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
pengin has quit [Remote host closed the connection]
<shevy> do you mean - these install .sh files?
<shevy> the GNU Sourcemage distribution is completely written in bash I think
pengin has joined #ruby
User458764 has joined #ruby
cirn0 has joined #ruby
tercenya has quit [Read error: Connection reset by peer]
bhaak has quit [Ping timeout: 258 seconds]
<rom1504> xxneolithicxx: apt
tercenya has joined #ruby
<rom1504> but really : bash is crap
<xxneolithicxx> lol no not apt thats not what i mean. Just found bpkg, something like that, i was just curious if there was something like gem/pip for bash
<xxneolithicxx> i normally distribute my bash scripts through rpms so it doesnt matter but was curious
luksaur has quit [Quit: Leaving]
<xxneolithicxx> *for tools
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Azure has quit [Quit: Oops.]
jgt1 has joined #ruby
pengin has quit [Ping timeout: 272 seconds]
<rom1504> /dev/null is the best package manager for bash :)
pwnz0r has quit [Remote host closed the connection]
Azure has joined #ruby
<jgt1> ^^^classic
<adaedra> zsh >
<rom1504> (is there someone that can remember how to write a bash if condition after not doing bash for a few months ?)
<adaedra> if cond; then; fi
<baweaver> Is that a question, or...?
<rom1504> yeah and how do you write cond ?
<baweaver> depends
<adaedra> cond is a command line
<rom1504> how many spaces, = or eq, [ or [[ , ...
<baweaver> [ -z "$var"] for blank
<adaedra> that's not bash syntax, that's test(1) syntax
<baweaver> -eq equals, -lt less than, etc
<xxneolithicxx> -z, and et al are aliases for test command
<baweaver> splitting hairs
Xoro has quit [Read error: Connection reset by peer]
<adaedra> xxneolithicxx: arguments, actally
<adaedra> [ is test
tuelz has quit [Ping timeout: 265 seconds]
<havenwood> man [
<adaedra> man test
* baweaver thinks this is incredibly pedantic
<rom1504> my point is I never write it right the first time
<adaedra> welcome to shell script
Narzew has quit [Ping timeout: 240 seconds]
<xxneolithicxx> how do forget an if statement
phutchins has joined #ruby
<adaedra> rom1504: but now you know the man page to look for !
<xxneolithicxx> i mean even if you get it wrong its hard to get it more than 50% wrong
<havenwood> adaedra: apropos
<adaedra> baweaver: do some fish, I heard they have a different syntax.
<rom1504> yeah but in all other languages I can write a if condition without looking any man
<adaedra> à propos
<havenwood> adaedra: man apropos
<baweaver> rom1504: You get used to it if you do enough of it
<adaedra> I don't need it in bash/zsh
<adaedra> -n, -z, -eq, -ne, -lt, -gt, -lte, -lge, -a, -o
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<xxneolithicxx> if u were talking else if condition thats acceptable, i can never remember if its elseif, elsif, or elif
kstuart has quit [Quit: WeeChat 1.1.1]
pwattstbd has joined #ruby
<shevy> guys
<xxneolithicxx> coder problems
<shevy> let us not taint #ruby with ugly bash syntax
<xxneolithicxx> lol
<shevy> it's madness
<shevy> case
<shevy> esac
werelivinginthef has quit [Remote host closed the connection]
<apeiros> is coder problems a subset of firstworldproblems?
<havenwood> shevy: if fi fo fum
rubie has quit [Remote host closed the connection]
<rom1504> apeiros: indians code
<xxneolithicxx> 3rd world people code
zubov has quit [Ping timeout: 265 seconds]
<shevy> lol havenwood
<xxneolithicxx> bums code, prisoners code
<apeiros> rom1504: I actually don't consider firstworldproblems to be a geographic classification :-/
<adaedra> shevy: actually it's logical and easy to remember
<shevy> nothing is logical there
<rom1504> "third world" is definitely s geographic classification apeiros
<rom1504> *a
<rom1504> ("the developing countries of Asia, Africa, and Latin America.")
<apeiros> rom1504: so is first world. I get that. but I don't take the composite as such.
<xxneolithicxx> i thought it was socio economic
Notte has quit [Remote host closed the connection]
<shevy> rom1504 eh, many "developing" countries are richer than many countries in Europe
mandarinkin has quit [Ping timeout: 246 seconds]
<shevy> funny how discussions go
<shevy> from bash to countries
<rom1504> well I'm not saying the opposite, but that's still the definition of that term
<rom1504> but yeah ok you can give an other definition to "firstworldproblem" ^^
niftylettuce has joined #ruby
<shevy> human being problems
<shevy> staring at java code all day long
<xxneolithicxx> omg dont give me nightmares
<apeiros> I understood "first world problem" to mean "any problem which is not really a problem which has an impact on your quality of life" (with quality being in the range of "existential")
<shevy> IRC problems are firstworldproblems
<weaksauce> first world was democratic states allied with the US during the cold war.
<xxneolithicxx> so what did third world mean in that context
<rom1504> coding definitely has an impact on your quality of life
<weaksauce> unaffiliated
<xxneolithicxx> to me it means social economic living conditions
zubov has joined #ruby
<weaksauce> second was communist/socialist allied with the russians
<rom1504> well not directly I guess
jbomo has joined #ruby
Xoro has joined #ruby
<weaksauce> basically too poor to take a side
RegulationD has joined #ruby
marcellus has left #ruby [#ruby]
<zenspider> can someone with 1.9.3 installed run this and PM me the output? https://gist.github.com/ab3843195b8b328eef10
<adaedra> 19>> puts RUBY_VERSION
<ruboto> adaedra # => 1.9.3 ...check link for more (https://eval.in/368903)
<adaedra> zenspider: use eval.in
<zenspider> cool. thanks
user083 has quit [Quit: leaving]
<apeiros> testing block arg behavior?
<apeiros> didn't it only change from 1.8 to 1.9? or did it change again after 1.9?
<xxneolithicxx> i recall there was inconsistent behavior between ruby and jruby in certain cases too
tercenya_ has joined #ruby
<xxneolithicxx> i think it was with lambda args
<zenspider> sec. I'll have a full map soon
bMalum has quit [Quit: bMalum]
RegulationD has quit [Ping timeout: 250 seconds]
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
atox has quit [Remote host closed the connection]
tercenya has quit [Ping timeout: 244 seconds]
<zenspider> 2 outliers, 3 n/a's
e1nh4nd3r has quit [Quit: Leaving.]
ixti has quit [Ping timeout: 245 seconds]
decoponio has quit [Read error: Connection reset by peer]
affenhoden has joined #ruby
KommandoFreisler has quit [Quit: Page closed]
bronson has quit [Remote host closed the connection]
tuelz has joined #ruby
wallerdev has quit [Quit: wallerdev]
decoponio has joined #ruby
Drewch has quit [Quit: Computer has gone to sleep.]
elfuego has quit [Quit: elfuego]
lala has joined #ruby
<apeiros> zenspider: `(1.8.7) proc || : STRCT` wait what? o0
AntKnee has quit [Quit: Connection closed for inactivity]
<apeiros> oh, interesting. proc { || }.call(0) raises in 1.8.6, but proc { |x| }.call(0,1,2) does not.
<apeiros> yeah, I guess I never used || to express "no arguments"
<adaedra> |void|
<adaedra> sorry.
<apeiros> |*|
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> |void| still issues a warning
<adaedra> No no, for the no-argument.
<adaedra> Like C does.
Cache_Money has quit [Quit: Cache_Money]
<adaedra> :˚
Rollabunna has joined #ruby
<apeiros> hu?
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> int main(void)
mercerist has quit [Quit: Computer has gone to sleep.]
affenhod1n has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
ereslibre has joined #ruby
scripore has joined #ruby
gizmore has quit [Ping timeout: 265 seconds]
<atmosx> middleman is really good
affenhoden has quit [Ping timeout: 265 seconds]
barkerd427 is now known as zz_barkerd427
<adaedra> ?
TheCapacitator_ has quit [Remote host closed the connection]
gizmore has joined #ruby
irobevjodu has joined #ruby
<atmosx> adaedra: Just re-attach the screen, had no idea what you guys were talking about :-P
fmcgeough has quit [Quit: fmcgeough]
<adaedra> k
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 276 seconds]
swgillespie has joined #ruby
beneggett has quit [Quit: (╯°□°)╯︵ ┻━┻) - keep on keeping on]
x1337807x has joined #ruby
blackmesa has joined #ruby
Matthews_ has quit [Ping timeout: 244 seconds]
zubov has quit [Ping timeout: 256 seconds]
shuber_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
fabrice31 has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
ereslibre has joined #ruby
speaking1ode has quit [Ping timeout: 255 seconds]
<dorei> hello
diegoviola has joined #ruby
<dorei> is there a better way for: https://eval.in/368922 ?
<adaedra> that's the point of a module and include/extend, I think
_blizzy_ has quit [Ping timeout: 256 seconds]
<apeiros> dorei: define "better"
<apeiros> ?better
<ruboto> I don't know anything about better
<apeiros> dang
<dorei> apeiros: line 6 looks ugly/lame to me
<zenspider> hah. I think that's a PERFECT answer
<apeiros> heh
<zenspider> dorei: what are you actually trying to accomplish, and why?
<adaedra> ah, I see
<dorei> zenspider: i'm definining a class method and then i want to define an instance method with the same name that at some point calls the class method i defined before
fabrice31 has quit [Ping timeout: 272 seconds]
baweaver has quit [Remote host closed the connection]
sinequanon has quit [Remote host closed the connection]
sinequanon has joined #ruby
giuseppesolinas has joined #ruby
Stalkr_ has joined #ruby
bmurt has joined #ruby
gambl0re has joined #ruby
rrichardsr3 has joined #ruby
wallerdev has joined #ruby
bmurt has quit [Client Quit]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<jhass> ?best
<ruboto> "Best" and "better" are subjective. Try to use a different term.
<jhass> apeiros: maybe we need fact aliases :P
finisherr has quit [Quit: finisherr]
<apeiros> good point. please add it to the todo :D
Deele has quit [Ping timeout: 256 seconds]
pengin has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass> dorei: I think I'd got for self.class.public_send(m)
<jhass> *go
affenhod1n has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
_blizzy_ has joined #ruby
<havenwood> zenspider: commented on your earlier gist run with a few more Rubies, just because I was curious: https://gist.github.com/zenspider/ab3843195b8b328eef10
shuber_ has quit [Remote host closed the connection]
mallu has joined #ruby
affenhoden has joined #ruby
finisherr has joined #ruby
stryek has quit [Remote host closed the connection]
sent1nel has joined #ruby
TheNet has joined #ruby
<TheNet> is Variable part of the stdlib?
xxneolithicxx has quit [Ping timeout: 255 seconds]
<TheNet> possibly as a class
<jhass> doesn't look like it
<dorei> jhass: i think your idea is better than me :)
tuelz has quit [Ping timeout: 258 seconds]
coetry has joined #ruby
<dorei> than mine even
baweaver has joined #ruby
<mallu> Can you please tell me how I can reduce the number of line? https://dpaste.de/bLan
<jhass> mallu: Array#map
<jhass> also make sure to indent
finisherr has quit [Quit: finisherr]
<baweaver> see comment
sent1nel has quit [Ping timeout: 264 seconds]
<dorei> let's say i have a module Amodule and i use it to add class methods into class X (by using extend Amodule in class X), is there a way to have an instance method added too? maybe like using the extended callback and do a define_method there
<baweaver> included do ...
<mallu> jhass: can you give me an example?
<baweaver> >> (1..5).map { |x| x * 2 }
<ruboto> baweaver # => [2, 4, 6, 8, 10] (https://eval.in/368930)
diegoviola has quit [Quit: WeeChat 1.2]
<baweaver> mallu: http://ruby-doc.org/core-2.2.2/Enumerable.html - This is your new best friend
kenndel has quit [Ping timeout: 272 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
Igorshp has quit [Remote host closed the connection]
ismaelga has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<mallu> thank you
<rotcetorptekcop> no worries, mallu
soulcake has quit [Quit: Quack.]
freerobby has quit [Quit: Leaving.]
car has joined #ruby
soulcake has joined #ruby
dopie has quit [Quit: Leaving]
dopie has joined #ruby
phizzbuzz has quit [Remote host closed the connection]
<dorei> is the another way to do this: https://eval.in/368940 ?
<dorei> is there
commondream has joined #ruby
<apeiros> yes. there's always another way.
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
<dopie> I updated it with the concern
icebourg has quit []
soulcake has quit [Client Quit]
<apeiros> dorei: I *really* dislike people adding stuff to the instance on extend, or to the singleton class on include.
<apeiros> dorei: just provide two modules. let the user include + extend
dopie has quit [Client Quit]
soulcake has joined #ruby
<dorei> apeiros: it's for a dsl, it'll make it ugly if the user should use both include/extend
<apeiros> and if you insist on using extended/included hook, *at the very least* clearly document that you're doing so.
havenwood has quit [Ping timeout: 252 seconds]
<apeiros> dorei: adding stuff unexpectedly is ugly in its own right.
juanpaucar has joined #ruby
rotcetorptekcop has quit [Quit: adios amigos]
soulcake has quit [Client Quit]
<apeiros> dorei: i.e., if I do `SomeClass.extend Foo`, I expect SomeClass.singleton_class to change. I do not expect SomeClass to change. Vice versa with SomeClass.include Foo.
commondream has quit [Ping timeout: 240 seconds]
soulcake has joined #ruby
rodfersou has quit [Quit: leaving]
<dorei> apeiros: I generally agree with you, but I think in the case of a dsl, one is prepared to deal with some "magic"
Kiseki has joined #ruby
juanpaucar has quit [Ping timeout: 265 seconds]
moted has quit []
rotcetorptekcop has joined #ruby
tubuliferous has joined #ruby
duncannz has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DerisiveLogic has quit [Ping timeout: 255 seconds]
cirn0 has quit [Remote host closed the connection]
Deele has joined #ruby
Elevanto has quit [Remote host closed the connection]
cirn0 has joined #ruby
bronson has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
<jhass> oh man, rubycoin.org so who of you has some?
<apeiros> nope, not me.
<apeiros> but I don't have neither bitcoins or dogecoins either
cirn0 has quit [Remote host closed the connection]
<adaedra> I have eurocoins
Blaguvest has quit []
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheNet has joined #ruby
phizzbuzz has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 272 seconds]
<adaedra> But is rubycoin better than https://github.com/c-darwin/dcoin ?
<zenspider> ?better
<ruboto> I don't know anything about better
<zenspider> haha. I love that
<baweaver> ?better
<ruboto> I don't know anything about better
<jhass> democracy is a tool of capitalists, didn't you know!
bhaak has joined #ruby
<baweaver> Oh hey, I can get ruboto to answer me now.
<baweaver> helpa still hates me.
<adaedra> I'm looking for the original thread about it in /r/php
<adaedra> /r/lolphp *
<apeiros> helpa is muted in this channel to avoid double invocation
<shevy> haha
<apeiros> it is still in this channel so it can collect logs (useful to radar)
jenrzzz has joined #ruby
<shevy> damn CIA-helpa
<adaedra> NSA*
<baweaver> In NSA America, bot logs you
mary5030 has joined #ruby
DerisiveLogic has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
<adaedra> "There were people commiting sudoku over the bitcoin scandal."
bkxd has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vikaton has quit [Quit: Connection closed for inactivity]
Stalkr^ has joined #ruby
<zenspider> what I wouldn't give to see you guys actually talk about ruby more than once in a rare while...
TheNet has joined #ruby
<apeiros> I prefer people committing bimaru.
<adaedra> we talked about it earlier.
mary5030 has quit [Remote host closed the connection]
<apeiros> zenspider: what's ruby?
mary5030 has joined #ruby
<zenspider> exactly
<apeiros> well, bedtime for me. nighty night!
Stalkr^ has quit [Changing host]
Stalkr^ has joined #ruby
Stalkr_ has quit [Ping timeout: 276 seconds]
Stalkr^ has left #ruby [#ruby]
<adaedra> 'night!
dfockler has quit []
pwattstbd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
macmarti_ has joined #ruby
dfockler has joined #ruby
qwertme has joined #ruby
macmartine has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 256 seconds]
bjeanes has quit [Ping timeout: 276 seconds]
bcavileer has quit [Ping timeout: 265 seconds]
vcoinminer has quit [Ping timeout: 256 seconds]
poikon has quit [Ping timeout: 276 seconds]
firevolt has quit [Ping timeout: 265 seconds]
dfockler has quit [Remote host closed the connection]
MiracleBlue has quit [Ping timeout: 272 seconds]
zzak has quit [Ping timeout: 276 seconds]
skmp has quit [Read error: Connection reset by peer]
bcavileer has joined #ruby
towski_ has quit [Remote host closed the connection]
bjeanes has joined #ruby
jeregrine has quit [Ping timeout: 272 seconds]
firevolt has joined #ruby
Wobbley has quit [Ping timeout: 276 seconds]
poikon has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
MiracleBlue has joined #ruby
zzak has joined #ruby
skmp has joined #ruby
vcoinminer has joined #ruby
TheNet has quit [Ping timeout: 258 seconds]
kirun has quit [Remote host closed the connection]
pwattstbd has joined #ruby
havenwood has joined #ruby
Zamyatin has joined #ruby
lrcezimbra has joined #ruby
DerisiveLogic has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
jeregrine has joined #ruby
bogdanteleaga has quit [Ping timeout: 264 seconds]
someword1 has quit [Quit: Leaving.]
Zamyatin has joined #ruby
Wobbley has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Zamyatin has joined #ruby
mjuszczak has quit []
tuelz has joined #ruby
shuber_ has joined #ruby
bogdanteleaga has joined #ruby
sent1nel has joined #ruby
tuelz has quit [Ping timeout: 250 seconds]
hanmac has quit [Ping timeout: 256 seconds]
mistergibson has quit [Quit: Leaving]
shuber_ has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
snockerton has quit [Quit: Leaving.]
sent1nel has quit [Ping timeout: 255 seconds]
TigerWolf has joined #ruby
phizzbuzz has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 265 seconds]
bkxd has quit [Ping timeout: 272 seconds]
blackmesa has quit [Quit: WeeChat 1.1.1]
Kiseki has left #ruby [#ruby]
WillAmes has quit [Remote host closed the connection]
phizzbuzz has joined #ruby
WillAmes has joined #ruby
TigerWolf has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
commondream has joined #ruby
hanmac has joined #ruby
shuber_ has joined #ruby
lidenskap has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
dru` has quit [Ping timeout: 244 seconds]
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
jimms has quit []
giuseppesolinas has quit [Quit: This computer has gone to sleep]
lidenskap has joined #ruby
xxneolithicxx has joined #ruby
dseitz has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
wallerdev has quit [Ping timeout: 246 seconds]
deric_skibotn has quit [Ping timeout: 240 seconds]