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, other public logging is prohibited
mishmash has joined #ruby
bintelli has joined #ruby
vickleton has quit [Ping timeout: 255 seconds]
ADot has joined #ruby
diegoviola has joined #ruby
AlphaAtom has quit [Ping timeout: 276 seconds]
ADot has quit [Client Quit]
AlphaAtom has joined #ruby
Musashi007 has quit [Quit: Musashi007]
dfinninger has quit [Remote host closed the connection]
Ropeney has joined #ruby
willharrison has quit [Max SendQ exceeded]
Akagi201_ has quit [Ping timeout: 244 seconds]
robustus has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
JDiPierro has quit [Remote host closed the connection]
ghr has joined #ruby
jeromelanteri has joined #ruby
robustus has joined #ruby
jeromelanteri has quit [Client Quit]
r0bby_ has joined #ruby
tuelz1 has quit [Ping timeout: 256 seconds]
granthatcher_ has quit []
tuelz1 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
rodfersou has quit [Remote host closed the connection]
jack_rabbit has quit [Ping timeout: 240 seconds]
mrmargolis has joined #ruby
wjimenez5271 has joined #ruby
nobitanobi has joined #ruby
someguy has joined #ruby
ismael has joined #ruby
shevy has quit [Ping timeout: 276 seconds]
ismael is now known as Guest18223
Matachines has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 264 seconds]
Matachines has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ismaelga has quit [Ping timeout: 245 seconds]
CloCkWeRX has joined #ruby
moeabdol has quit [Ping timeout: 272 seconds]
zzing_ has joined #ruby
RegulationD has joined #ruby
zzing has quit [Read error: Connection reset by peer]
<Apocalypse> derp
mary5030 has joined #ruby
gambl0re has left #ruby [#ruby]
Lewix has joined #ruby
rbennacer has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 255 seconds]
zzing has joined #ruby
zzing_ has quit [Ping timeout: 240 seconds]
CamonZ has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
weemsledeux has joined #ruby
websoftwarez has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
gambl0re has joined #ruby
gambl0re has left #ruby [#ruby]
swgillespie has joined #ruby
gambl0re has joined #ruby
gambl0re has quit [Client Quit]
gambl0re has joined #ruby
Channel6 has quit [Quit: Leaving]
Leikila has quit [Quit: Leaving]
bruno- has quit [Ping timeout: 255 seconds]
sent1nel has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 256 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
DynamicMetaFlow has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
four04 has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
<sarid> "OS-independent threading, which allows you to write multi-threaded applications even on operating systems such as DOS"
<sarid> threading on DOS <3
amclain has quit [Quit: Leaving]
<aewffwea> sarid: Is that even possible?
r0bby_ is now known as robbyoconnor
allcentury has joined #ruby
<mozzarella> where did you read that
chipotle has quit [Ping timeout: 264 seconds]
_xCept has joined #ruby
charliesome has joined #ruby
nii236 has joined #ruby
<sarid> aewffwea: it's not possible natively, but since you're using an interpreter, you can simulate it
hewenhong has joined #ruby
<aewffwea> sarid: I still don't think that you can implement threads in DOS
chipotle has joined #ruby
<aewffwea> sarid: You might be able to implement Fibers though
Mon_Ouie has joined #ruby
bjornar has quit [Ping timeout: 272 seconds]
hyperjuice has joined #ruby
<havenwood> aewffwea: You can have green threads in a VM that don't map one-to-one to system threads, a la Ruby 1.8.
<mozzarella> why not? it could have its own scheduler and probably does
<four04> For some reason, my installation of Ruby fails whenever I try to run bundler. It says: "undefined symbol: rb_Digest_SHA1_Init", yet I that symbol exists in the file it's trying to load from.
bjornar has joined #ruby
tectonic has joined #ruby
<four04> Has anyone else had this problem before?
<four04> If so, how did you fix it?
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lidenska_ has quit [Remote host closed the connection]
hyperjuice has quit [Ping timeout: 264 seconds]
hyperjuice has joined #ruby
<havenwood> four04: What OS/distro and how'd you install Ruby?
<sarid> aewffwea: since the interpreter would be the only program running, it's up to it to do so
<Papierkorb> well, you could also get to protected mode, install your IDT, configure the cpu to fire int 0 (or so) every so often, and then you can do scheduling :P
magicien has quit [Ping timeout: 276 seconds]
<four04> havenwood: Fedora, and I've tried multiple different ways of installation, the most recent (and current) is RVM
<four04> Just via `rvm install 2.2.2`
dstarh has joined #ruby
mrmargolis has quit [Remote host closed the connection]
<havenwood> four04: What do you get for?: rvm current
_xCept has quit [Ping timeout: 272 seconds]
<four04> havenwood: ruby-2.2.2
hyperjuice has quit [Client Quit]
hyperjuice has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
<havenwood> four04: Run: rvm requirements
ghr has joined #ruby
<four04> havenwood: Checking requirements for fedora.Requirements installation successful.
<sarid> Papierkorb: well, intel processors do implement hardware-level context switching mechanisms...
<sarid> they're just not used by anyone because they're so slow
<four04> havenwood: I have openssl-devel installed on my system, and, as I said, the symbol exists inside of the shared-object file in that directory
<Papierkorb> sarid: then just stick to ring0 ..
<four04> havenwood: It's just not getting loaded for some reason.
nobitanobi has quit [Remote host closed the connection]
<havenwood> four04: What do you get for `which bundle` and `gem which bundler`?
<havenwood> four04: (Just confirming you've installed the bundler gem with ruby-2.2.2.)
<four04> havenwood: `which bundle` yields `~/.rvm/gems/ruby-2.2.2/bin/bundle`, and `gem which bundler` yields `/home/kristofer/.rvm/gems/ruby-2.2.2/gems/bundler-1.9.6/lib/bundler.rb`
<havenwood> four04: looks good
DerisiveLogic has quit [Remote host closed the connection]
<sarid> Papierkorb: so, in order to use DOS, we need to build an OS ontop and have DOS load it
<havenwood> four04: What's your?: openssl version
<four04> havenwood: `openssl version` yields `OpenSSL 1.0.1k-fips 8 Jan 2015`
<Papierkorb> sarid: Just say that it's nothing big and just a hobby project and see it rise to the olymp of operating systems. "We have gems" or something.
lidenskap has joined #ruby
<four04> havenwood: Full output from `ruby -rdigest/sha1 -e '1'`: https://gist.github.com/rye/cfcda8bb9616d515738c
<sarid> lol
hyperjuice has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 256 seconds]
<sarid> all my projects are hobby projects because as soon as they become professional and all, you have to hire a project manager and that is a sure-fire way to make it fail
Brozo_ has joined #ruby
hyperjuice has joined #ruby
behrz has joined #ruby
<sarid> alright, i need to go off to do something super secret
<four04> havenwood: I'm thinking that it might be something borked related to how something internal is loading that SO, but not sure
<havenwood> four04: I would update your openssl package and reinstall 2.2.2.
nii236 has quit [Ping timeout: 272 seconds]
Guest5450 has quit [Ping timeout: 265 seconds]
<havenwood> four04: sudo yum update openssl-devel
Oka has quit [Quit: さようなら]
<four04> havenwood: Yeah, I've tried that... :) No update seems to be available to openssl, since it's at 1.0.1 and it seems that that's a recent enough version
tectonic has quit []
doodlehaus has quit [Remote host closed the connection]
Akagi201 has joined #ruby
Brozo_ has quit [Client Quit]
Hobogrammer_ has quit [Ping timeout: 256 seconds]
<havenwood> four04: You could `rvm pkg install openssl` but I don't know why that'd be necessary - it should link against your package.
magicien has joined #ruby
mrmargolis has joined #ruby
hyperjuice has quit [Ping timeout: 265 seconds]
<four04> havenwood: I'll give it a try, then reinstall Ruby. Just a moment
mrmargolis has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
Hobogrammer has joined #ruby
Papierkorb has quit [Ping timeout: 250 seconds]
<four04> havenwood: Okay, that installation of openssl just worked, recompiling Ruby...
JDiPierro has joined #ruby
chimche has quit [Quit: Leaving.]
x1337807x has joined #ruby
Hobogrammer_ has joined #ruby
doodlehaus has joined #ruby
AlphaAtom has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 276 seconds]
Hobogrammer has joined #ruby
RegulationD has joined #ruby
davedev24_ has quit []
JDiPierro has quit [Ping timeout: 264 seconds]
Hobogrammer_ has quit [Ping timeout: 246 seconds]
someguy has quit [Quit: This computer has gone to sleep]
doodlehaus has quit [Remote host closed the connection]
SleepDeprived has joined #ruby
AlphaAtom has joined #ruby
barkerd427 is now known as zz_barkerd427
RegulationD has quit [Ping timeout: 255 seconds]
<four04> havenwood: Nope, still get the same error. :/
that1guy has joined #ruby
Musashi007 has joined #ruby
AlphaAtom has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
<xxneolithicxx> its not looking for the lib in a standard OS path so maybe you need the devel version installed so that ruby can compile a local version
paradisaeidae has joined #ruby
endash has quit [Quit: endash]
gambl0re has joined #ruby
juanpablo__ has joined #ruby
charliesome has joined #ruby
ascarter has joined #ruby
Hobogrammer_ has joined #ruby
Hobogrammer has quit [Ping timeout: 250 seconds]
<four04> xxneolithicxx: I've got the development version (v1.0.1) installed locally. For some reason it just seems that the whole digesting thing is not working.
phutchins has quit [Ping timeout: 255 seconds]
lidenskap has quit [Remote host closed the connection]
lidenskap has joined #ruby
<four04> I just tested requiring `digest/md5` and it doesn't work either.
Soda has quit [Remote host closed the connection]
juanpablo__ has quit [Ping timeout: 276 seconds]
Akagi201 has quit [Remote host closed the connection]
that1guy has quit [Quit: This computer has gone to sleep]
Akagi201 has joined #ruby
<four04> Just had an idea: maybe I should rebuild with my C_INCLUDE_PATH, CPLUS_INCLUDE_PATH, LIBRARY_PATH, and PKG_CONFIG_PATH unset.
<four04> I have to relog for that though
<four04> I'll report back shortly
Akagi201_ has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
four04 has quit [Quit: Page closed]
someguy has joined #ruby
nettoweb has joined #ruby
turtil has quit [Quit: WeeChat 1.1.1]
turtil has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
four04 has joined #ruby
<four04> Yeah, that didn't fix it.
keen_____ has joined #ruby
keen____ has quit [Ping timeout: 265 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lidenskap has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chimche has joined #ruby
behrz has quit [Quit: Leaving]
krz has joined #ruby
nobitanobi has joined #ruby
<havenwood> four04: C_INCLUDE_PATH was for sure unset? :O
hewenhong has quit [Remote host closed the connection]
four04 has quit [Ping timeout: 246 seconds]
<havenwood> four04: Just a sanity check, but?: ruby -r openssl -e "puts OpenSSL::OPENSSL_VERSION"
workmad3 has joined #ruby
Hobogrammer_ has quit [Ping timeout: 272 seconds]
Joufflu has quit [Read error: Connection reset by peer]
quazimodo has quit [Remote host closed the connection]
four04 has joined #ruby
<four04> Hmm no, maybe unsetting C_INCLUDE_PATH did work
Musashi007 has quit [Quit: Musashi007]
dc has joined #ruby
tjbiddle has joined #ruby
<four04> havenwood: I think it was something related to this: https://bugs.ruby-lang.org/issues/9641
rgb-one has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<four04> havenwood: And it seems to've been caused by my setting C_INCLUDE_PATH in ~/.profile
<rgb-one> is programming ruby 1.9 freely available?
nobitanobi has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Hobogrammer has joined #ruby
dorei has quit []
dorei has joined #ruby
ghr has joined #ruby
nateberkopec has quit [Quit: Leaving...]
JDiPierro has joined #ruby
dorei has quit [Client Quit]
Hobogrammer has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 256 seconds]
bintelli has quit [Quit: Page closed]
<rgb-one> rom1504: I am referring to the third edition, the one you linked is the fourth
<sevenseacat> why would you want an out of date edition?
nettoweb_ has joined #ruby
Hobogrammer has joined #ruby
someguy has quit [Quit: This computer has gone to sleep]
agent_white has joined #ruby
jobewan has quit [Ping timeout: 250 seconds]
<agent_white> Good evenin
nettoweb has quit [Ping timeout: 264 seconds]
mistermocha has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
that1guy has joined #ruby
four04 has quit [Ping timeout: 246 seconds]
jack_rabbit has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
that1guy has quit [Client Quit]
krz has quit [Quit: WeeChat 1.0.1]
thekodols has joined #ruby
krz has joined #ruby
RegulationD has joined #ruby
someguy has joined #ruby
A205B064 has quit [Ping timeout: 240 seconds]
jefus has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
keen______ has joined #ruby
someguy has quit [Client Quit]
RegulationD has quit [Ping timeout: 255 seconds]
keen_____ has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
softinio has left #ruby [#ruby]
mrmargolis has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
JDiPierro has joined #ruby
krz has joined #ruby
jefus has joined #ruby
diegoviola has quit [Remote host closed the connection]
Vile` has quit [Remote host closed the connection]
sent1nel has joined #ruby
Matachines has quit [Read error: Connection reset by peer]
Matachines has joined #ruby
swgillespie has joined #ruby
someguy has joined #ruby
Matachines has quit [Read error: Connection reset by peer]
Vile` has joined #ruby
JDiPierro has quit [Ping timeout: 272 seconds]
al2o3-cr has joined #ruby
zzing has quit [Ping timeout: 256 seconds]
someguy has quit [Client Quit]
someguy has joined #ruby
sent1nel has quit [Ping timeout: 272 seconds]
jack_rabbit has quit [Ping timeout: 255 seconds]
krz has quit [Ping timeout: 256 seconds]
yaw has quit [Ping timeout: 256 seconds]
someguy has quit [Client Quit]
jenrzzz has quit [Ping timeout: 256 seconds]
zzing has joined #ruby
freerobby has joined #ruby
lidenskap has joined #ruby
avarice has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
zz_barkerd427 is now known as barkerd427
jenrzzz has joined #ruby
lidenskap has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
thekodols has quit [Ping timeout: 250 seconds]
hyperjuice has joined #ruby
mjuszczak has quit []
Rollabunna has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
yh has quit [Ping timeout: 272 seconds]
diegoaguilar has joined #ruby
mary5030 has quit [Remote host closed the connection]
hyperjuice has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
moeabdol has joined #ruby
AlexRussia has joined #ruby
multi_io has quit [Read error: Connection reset by peer]
lidenskap has joined #ruby
ghr has joined #ruby
rgb-one has quit [Remote host closed the connection]
braincrash has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Quit: WeeChat 1.1.1]
moeabdol has quit [Ping timeout: 244 seconds]
multi_io has joined #ruby
nobitanobi has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
CloCkWeRX has joined #ruby
mrmargolis has quit [Remote host closed the connection]
barhum2013 has joined #ruby
krz has joined #ruby
bhuddamonk has joined #ruby
bhuddamonk has quit [Quit: Leaving]
hewenhong has joined #ruby
avarice has quit [Quit: this channel is bakas]
charliesome has quit [Quit: zzz]
bruno- has joined #ruby
mistermocha has joined #ruby
juanpablo__ has joined #ruby
zzing has quit [Read error: Connection reset by peer]
sent1nel has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
zzing has joined #ruby
freerobby has quit [Quit: Leaving.]
mleung has joined #ruby
nobitanobi has quit [Remote host closed the connection]
RegulationD has joined #ruby
juanpablo__ has quit [Ping timeout: 250 seconds]
SleepDeprived has quit [Quit: SleepDeprived]
pontiki has quit [Quit: leaving]
SleepDeprived has joined #ruby
gr33n7007h has joined #ruby
woodruffw has quit [Quit: And then he took off.]
SleepDeprived has quit [Client Quit]
Ropeney has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
Ropeney has joined #ruby
nobitanobi has joined #ruby
jokester has quit [Quit: WeeChat 1.0.1]
icebourg has joined #ruby
mary5030 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
rkazak has quit [Quit: Sleep.....ing....]
gr33n7007h has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
nobitanobi has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
mishmash has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
workmad3 has joined #ruby
nobitanobi has joined #ruby
jokester has joined #ruby
krz has joined #ruby
vim_shimm has joined #ruby
mishmash has joined #ruby
al2o3-cr has joined #ruby
<Eiam_> hmm, is there a way to make things from my rack (def call(env) ) method available in sinatra? for some reason I thought defining something like @user inside of some middleware would pass it along but, its not present when it hits my sinatra route. the middle ware is called however
tuelz1 has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
vim_shimm has quit [Ping timeout: 264 seconds]
hewenhong has quit [Remote host closed the connection]
Guest18223 has quit [Ping timeout: 276 seconds]
ismaelga has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
dfinninger has joined #ruby
jlast has joined #ruby
fedexo has joined #ruby
ramfjord has joined #ruby
dfinninger has quit [Remote host closed the connection]
yh__ has joined #ruby
claw_ has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cheerio]
claw has joined #ruby
<Eiam_> redis rack session
<Eiam_> got it.
jlast has quit [Ping timeout: 265 seconds]
asmodlol has quit [Ping timeout: 264 seconds]
asmodlol has joined #ruby
sn0wb1rd has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.1.1]
ghr has joined #ruby
sn0wb1rd has joined #ruby
claptor has quit [Quit: this channel is bakas]
ghr has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 256 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jack_rabbit has quit [Ping timeout: 252 seconds]
iasoon has quit [Ping timeout: 272 seconds]
CloCkWeRX has quit [Quit: Leaving.]
nobitanobi has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
konsolebox has joined #ruby
zzing has quit [Ping timeout: 272 seconds]
greenbagels has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
zzing has joined #ruby
turtil has quit [Quit: WeeChat 1.1.1]
RegulationD has joined #ruby
lidenskap has quit [Remote host closed the connection]
hewenhong has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
zzing has quit [Read error: Connection reset by peer]
swgillespie has quit [Max SendQ exceeded]
swgillespie has joined #ruby
al2o3-cr has joined #ruby
barhum2013 has quit [Quit: barhum2013]
mleung has quit [Quit: mleung]
moeabdol has joined #ruby
swgillespie has quit [Max SendQ exceeded]
swgillespie has joined #ruby
zzing has joined #ruby
al2o3-cr has quit [Client Quit]
jakolehm has joined #ruby
rgb-one has joined #ruby
CloCkWeRX has joined #ruby
mary5030 has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 250 seconds]
arescorpio has quit [Quit: Leaving.]
al2o3-cr has joined #ruby
zzing has quit [Read error: Connection reset by peer]
that1guy has joined #ruby
Joufflu has joined #ruby
hewenhong has quit [Remote host closed the connection]
astrobunny has joined #ruby
zzing has joined #ruby
ismaelga has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
gr33n7007h is now known as Guest86590
RTG` has quit [Ping timeout: 264 seconds]
al2o3-cr has quit [Ping timeout: 272 seconds]
Spami has joined #ruby
RTG` has joined #ruby
St1gma has joined #ruby
ponga has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
lxsameer has quit [Ping timeout: 240 seconds]
DerisiveLogic has joined #ruby
icebourg has quit []
jenrzzz has joined #ruby
lxsameer has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__lamer__ has joined #ruby
<__lamer__> hello
<__lamer__> hii
<__lamer__> How can I setup my own personal website
<__lamer__> Should I buy vps or heroku?
<Ropeney> amazon free tier?
* sevenseacat watches
<__lamer__> Ropeney: to me??
<Ropeney> yes
<__lamer__> whom ur telling? Ropeney
<__lamer__> Ropeney: I never heard about it. Can you please be clear is it free?
<Ropeney> yes its free
<__lamer__> if free willlit be secure?
<Ropeney> yes its amazon
jenrzzz has quit [Ping timeout: 246 seconds]
<Ropeney> if you secure your vps
<Ropeney> of course
sameerynho has joined #ruby
* Nilium likes Digital Ocean.
<__lamer__> Ropeney: I am not understanding....I don't have a vps and when i asked should I buy vps or heroku u said amazon free tier and again u say vps I am confusd
kp666 has joined #ruby
<Nilium> Nice for budget-y stuff, in particular.
<Ropeney> amazon offer a free tier vps, __lamer__
<Nilium> VPS doesn't really mean anything vs heroku.
<Nilium> That said, I wouldn't use Heroku for anything.
jlast has joined #ruby
<Ropeney> ^ +!
<sevenseacat> i've used it for test sites
bruno- has joined #ruby
Guest86590 has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
<__lamer__> Ropeney: Ropeney I want to have personal blog + pastebin + any other page is it possible with free account of amazon?
<Ropeney> the free account is a low grade vps, you asked about VPS before so i assume you know what can be done with one
<Nilium> Why not just use GitHub Pages and Gist?
<sevenseacat> i love github pages.
<sevenseacat> my blog is there.
<Nilium> Mine isn't, but it's a good option to consider.
lxsameer has quit [Ping timeout: 250 seconds]
juanpablo__ has joined #ruby
Guest86590 has joined #ruby
<Nilium> In unrelated news or tangentionally related because it involves an acronym with the VP prefix, I set up a VPN for all of my machines to communicate across.
hewenhong has joined #ruby
scripore has joined #ruby
hewenhong has quit [Remote host closed the connection]
hewenhong has joined #ruby
<__lamer__> sevenseacat: show me ur blog in github
<__lamer__> I mean github pages
<sevenseacat> __lamer__: it's in a private repo. the public url is http://sevenseacat.net
bruno- has quit [Ping timeout: 256 seconds]
<Nilium> Also put my VPN in FreeBSD because I can now do that on Digital Ocean ಠ_ಠ
lidenskap has joined #ruby
<Nilium> bsd4evar
<Ropeney> bsd4never
riotjones has quit [Ping timeout: 276 seconds]
<Nilium> gtfo
* sevenseacat notices a css bug in blog and fixes it
<Nilium> I'd bet my blog has all sorts of interesting CSS bugs I'll never fix
juanpablo__ has quit [Ping timeout: 240 seconds]
<__lamer__> Nilium: whom ur saying gtfo?
<Nilium> The heathen.
balazs has joined #ruby
that1guy has quit [Ping timeout: 256 seconds]
hewenhon_ has joined #ruby
* sevenseacat wonders what else to put on blog
simpyll has joined #ruby
lidenskap has quit [Remote host closed the connection]
<Nilium> All the stuff I'd want to put on my blog would be work-related, and I can't talk about that.
jlast has quit [Ping timeout: 256 seconds]
<Nilium> I could probably talk about our office's switch to git, but it wouldn't be 100% positive and therefore wouldn't go over well with anyone above me.
<sevenseacat> yeah i had most of a blog post written up at my previous job about upgrading an old app from ruby 1.8.7 to 2.2, and rails 3.0 to rails 3.2, but most of it ended up making the company look bad so it got nixed
<__lamer__> sevenseacat: ur other of some book. Great and Congrats
<__lamer__> Nilium: ok
<sevenseacat> because the code was a clusterfuck
balazs has quit [Ping timeout: 276 seconds]
hewenhong has quit [Ping timeout: 272 seconds]
odin22 has joined #ruby
odin22 has quit [Client Quit]
zzing has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
hewenhon_ has quit [Remote host closed the connection]
hewenhong has joined #ruby
zzing has joined #ruby
hewenhong has quit [Read error: Connection reset by peer]
hewenhong has joined #ruby
chimche has quit [Quit: Leaving.]
<Nilium> All of my code at work is beautiful and great.
RegulationD has joined #ruby
<Nilium> It's just those other people ruining it. ಠ_ಠ
* Nilium rolls his eyes to indicate obvious sarcasm.
mishmash has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> :P
RegulationD has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
hewenhong has quit [Remote host closed the connection]
<sevenseacat> i'm great at writing code to meet the requirements i have right now. not so great at writing code not to fuck up with the requirements i get tomorrow
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
Guest5450 has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
arminius has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
<Nilium> I'm good at writing code in a vacuum, which is thankfully what a lot of my work involves since I can build things that are isolated from the rest of our systems.
<sevenseacat> nice
speaking1ode has joined #ruby
<Nilium> It's once they start interacting that it becomes a real hellstorm, since everything I write is a long-running process and what everyone else writes is PHP. So, communication sucks.
Ropeney has quit [Remote host closed the connection]
<Nilium> *long-running Go process
edwinvdgraaf has quit [Remote host closed the connection]
narcan has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
asmodlol has quit [Ping timeout: 276 seconds]
<sevenseacat> go is one i'm not interested in at all
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hewenhong has joined #ruby
towski__ has joined #ruby
asmodlol has joined #ruby
woodruffw has joined #ruby
Musashi007 has joined #ruby
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
michael_mbp has quit [Excess Flood]
<Nilium> Yeah, it either fills a niche you want or it doesn't.
codecop has joined #ruby
michael_mbp has joined #ruby
riotjones has joined #ruby
last_staff has joined #ruby
casadei_ has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
<Radar> We're using it here and so far there hasn't been a table flipped yet.
<Radar> I used it at my last job too
<Radar> This time we're using it for a user service
<Nilium> I mainly use it for backend stuff, so the focus on error handling, lack of complexity, and concurrency has saved me a lot of pain overall.
<Nilium> Especially since the other language we've been using for that stuff is Javascript via node.js, and that's just unpleasant to deal with.
barhum2013 has joined #ruby
<Nilium> (Wasn't my decision, so I disavow the whole thing.)
casadei_ has quit [Ping timeout: 272 seconds]
KnownSyntax has quit [Quit: Connection closed for inactivity]
aganov has joined #ruby
DexterLB has quit [Ping timeout: 240 seconds]
Joufflu has quit [Read error: Connection reset by peer]
DexterLB has joined #ruby
cibs has joined #ruby
moeabdol has joined #ruby
barhum2013 has quit [Quit: barhum2013]
Mon_Ouie has quit [Ping timeout: 276 seconds]
psy has quit [Quit: Leaving]
psy has joined #ruby
moeabdol has quit [Ping timeout: 245 seconds]
fedexo has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
lkba has joined #ruby
Ropeney has joined #ruby
andikr has joined #ruby
Musashi007 has quit [Quit: Musashi007]
lele has quit [Ping timeout: 256 seconds]
lidenskap has joined #ruby
turtil has joined #ruby
anisha has joined #ruby
havenwood has quit [Remote host closed the connection]
teleporting_kat has joined #ruby
teleporting_kat has quit [Client Quit]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
lidenskap has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
gagrio_ has joined #ruby
arturaz has joined #ruby
gagrio has joined #ruby
fabrice31 has joined #ruby
gagrio_ has quit [Ping timeout: 245 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
ixti has joined #ruby
tectonic has joined #ruby
RegulationD has joined #ruby
Musashi007 has joined #ruby
hewenhong has quit [Ping timeout: 245 seconds]
_ixti_ has quit [Ping timeout: 272 seconds]
The_Phoenix has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Ping timeout: 255 seconds]
pasv_ has quit [Ping timeout: 255 seconds]
paradisaeidae has quit [Ping timeout: 264 seconds]
nux443 has joined #ruby
drager has quit [Ping timeout: 255 seconds]
justinmcp has quit [Ping timeout: 256 seconds]
lidenskap has joined #ruby
nux443 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
SHyx0rmZ has quit [Remote host closed the connection]
gagrio_ has joined #ruby
hewenhong has joined #ruby
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
justinmcp has joined #ruby
vire has joined #ruby
SHyx0rmZ has joined #ruby
nfk|laptop has quit [Quit: yawn]
wolflee_ has joined #ruby
konsolebox has quit [Quit: Leaving]
haxrbyte_ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Spami has quit [Quit: This computer has gone to sleep]
wolflee has quit [Ping timeout: 244 seconds]
Marc___ has joined #ruby
Guest86590 has quit [Ping timeout: 245 seconds]
Marc___ is now known as maaarc
haxrbyte has quit [Ping timeout: 265 seconds]
maaarc has left #ruby [#ruby]
mistermocha has quit [Ping timeout: 276 seconds]
Guest86590 has joined #ruby
juanpablo__ has joined #ruby
c0m0 has joined #ruby
Soda has joined #ruby
Musashi007 has quit [Quit: Musashi007]
juanpablo__ has quit [Ping timeout: 246 seconds]
barhum2013 has joined #ruby
Guest86590 has quit [Ping timeout: 240 seconds]
paradisaeidae has joined #ruby
chimche has joined #ruby
lele has joined #ruby
barhum2013 has quit [Client Quit]
towski__ has quit [Remote host closed the connection]
pasv has joined #ruby
pasv is now known as Guest49049
chimche has quit [Ping timeout: 272 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
KnownSyntax has joined #ruby
edwinvdgraaf has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
aryaching has joined #ruby
doertedev has joined #ruby
TheHodge has joined #ruby
rgb-one has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 265 seconds]
<izzol> moin
<certainty> moin
balazs has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
ph8 has quit [Changing host]
ph8 has joined #ruby
<izzol> When I'm trying to check if [a,b,c,d] is the same as [d,c,b,a] how this algorithm is called? ;-)
<izzol> I forgot the name..
<heftig> sort both
<izzol> no, i know how to do this but I forgot the name of it ;-)
<izzol> d...something
tesuji has joined #ruby
<heftig> you can also use "a - b | b - a" to get a symmetric difference
<heftig> that's probably more expensive, though
balazs has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
Zai00 has joined #ruby
shevy has joined #ruby
<izzol> heftig: ok but I asked about the name of algorithm ;-)
<izzol> I want to read more about it and I forgot the name
<Radar> izzol: intersection
<izzol> Radar: no, it was something else
IceDragon has quit [Quit: ZNC - http://znc.in]
livathinos has joined #ruby
<heftig> well, if you hash the array using a commutative hash function, you can at least get a quicker negative
workmad3 has quit [Ping timeout: 255 seconds]
terlar has joined #ruby
hanmac has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DexterLB has quit [Ping timeout: 240 seconds]
n008f4g_ has joined #ruby
DexterLB has joined #ruby
RegulationD has joined #ruby
drager has joined #ruby
dvlwrk has quit [Ping timeout: 265 seconds]
ta has joined #ruby
tectonic has quit []
Hounddog has joined #ruby
bMalum has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/20150415140819]]
ta_ has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
CloCkWeRX has quit [Quit: Leaving.]
ta has quit [Read error: Connection reset by peer]
Juanchito has joined #ruby
<bMalum> Whats is a best practise way for a Configuration in a ruby gem?
<adaedra> Hi
<certainty> izzol: do tell, once you found out.
atmosx_ has joined #ruby
Luyt_ has joined #ruby
atmosx has quit [Read error: Connection reset by peer]
Luyt has quit [Read error: Connection reset by peer]
lanemeyer has quit [Ping timeout: 256 seconds]
sindork_ has quit [Ping timeout: 256 seconds]
lanemeyer has joined #ruby
sindork has joined #ruby
wldcordeiro_ has joined #ruby
barhum2013 has joined #ruby
<shevy> izzol I usually start the other way - there is a name for an algorithm, I try to remember it, and afterwards, I try to understand what it means
<shevy> like the Levensthein distance
<shevy> hmm *Levenshtein?
Pupeno has joined #ruby
Pupeno has joined #ruby
casadei_ has joined #ruby
dvlwrk has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Stalkr has joined #ruby
casadei_ has quit [Ping timeout: 255 seconds]
Musashi007 has joined #ruby
krz has joined #ruby
moeabdol has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
dvlwrk has quit [Ping timeout: 265 seconds]
Stalkr has quit [Quit: Leaving...]
surs has joined #ruby
livathinos has quit [Ping timeout: 250 seconds]
aryaching_ has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
kyrylo has joined #ruby
surs has quit [Changing host]
surs has joined #ruby
IceDragon has joined #ruby
IceDragon is now known as Guest37907
asmodlol has quit [Ping timeout: 264 seconds]
<shevy> certainty how long does it take you to become "fully ready" after you wake up? In regards to being able to write (bugfree!) code
<certainty> shevy: i can't write bugfree code most of the time
<shevy> hehe
cgrieger has joined #ruby
<certainty> at least not right from the start
<certainty> it takes some iterations
<adaedra> I don't think there is a time you can write absolutely bug-free code
<certainty> yes i was disregarding certain classes of bugs
<adaedra> Your brain *will* fuck up.
asmodlol has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
<certainty> i can however produce code that behaves intentionally most of the time :D
sevenseacat has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
<shevy> adaedra well there are blogs about "the zone"
<adaedra> The danger zone?
<shevy> when you are in "the zone", you are assumed to work better or more efficiently than when you are not "in the zone"
<shevy> the danger zone is when it is time to go to the toilet urgently
<adaedra> Better != Perfect
<certainty> of course i'm talking about non trivial code. Trivial code like sum x y = x + y is left out. Under the assumption that it terminates, it will work correctly
<shevy> now we know how bugs can happen when certainty codes!
<shevy> "it will work correctly"
<shevy> "This dragon is only level 5. What could possibly happen to us?"
chimche has joined #ruby
<certainty> shevy: but to answer your question, it depends on the project but on the bigger projects here it takes 15 - 30 minutes to zone in
<shevy> Anyway, my brain is insanely slow to boot up. I feel dizzy for quite a long while after having awoken.
kyrylo_ has joined #ruby
<shevy> hmm
<certainty> that's not after i woke up
<shevy> certainty any distractions? like listening to music or so?
<certainty> i start working roughly 2 hours after i woke up
<shevy> ok
kyrylo has quit [Ping timeout: 252 seconds]
<certainty> shevy: depends on the problem to solve. If it's hard i can't use distractions. If it's relatively straight forward i like to listen to music
* adaedra look for his headphones
wolflee_ has quit [Remote host closed the connection]
wolflee_ has joined #ruby
chimche has quit [Ping timeout: 245 seconds]
decoponio has joined #ruby
cibs has quit [Read error: Connection reset by peer]
ypasmk has joined #ruby
<ypasmk> hey guys what is the use of the * in ruby …
<shevy> ypasmk well it is hard to define what is best but you can multiply stuff with it
<shevy> >> puts '-' * 10
<ruboto> shevy # => ---------- ...check link for more (https://eval.in/323622)
<certainty> i think he might be referring to the splat operator
<shevy> though you possibly meant another context
<shevy> haha
<shevy> ypasmk: def foo(*input)
<ypasmk> for example I’ve seen in code an array with the variable doc and then something like Hash[*doc[‘variable’].map ….
<shevy> ^^^ now you can call with multiple arguments, or no arguments
<shevy> yeah, that is used to build a quick hash from an array
<shevy> first element becomes a key, second element its hash, third element another key, etc...
<shevy> I mean *value
MXfive has joined #ruby
Pumukel has joined #ruby
<shevy> key,value,key,value :)
einarj has joined #ruby
<shevy> certainty see? I am not yet fully awake
<ypasmk> ok … cool thx
<shevy> \o/
<adaedra> ypasmk: generally, splash (*) is used to expand an array as method arguments
DerisiveLogic has quit [Ping timeout: 256 seconds]
thekodols has joined #ruby
<adaedra> splat*
<certainty> ypasmk: i like to relate it to the kleene operator
cibs has joined #ruby
<ypasmk> thx guys understood …
MatthewsFace has joined #ruby
<certainty> shevy: yeah, how long do you need to boot?
websoftwarez has joined #ruby
weemsledeux has joined #ruby
websoftwarez has quit [Changing host]
websoftwarez has joined #ruby
krzkrz has joined #ruby
<adaedra> ∞ seconds
<shevy> certainty dunno. sometimes it does not take long, sometimes it takes very long
MXfive has quit [Max SendQ exceeded]
<certainty> on average?
<shevy> ohhh... about an hour at least
<certainty> i see
<shevy> perhaps I should jog after I wake up
<certainty> hehe
exadeci has joined #ruby
MXfive has joined #ruby
krz has quit [Ping timeout: 264 seconds]
MatthewsFace has quit [Ping timeout: 250 seconds]
MXfive has quit [Max SendQ exceeded]
kyrylo has joined #ruby
MXfive has joined #ruby
merqlove has joined #ruby
kyrylo_ has quit [Ping timeout: 264 seconds]
bim has joined #ruby
bim is now known as Guest62983
MXfive has quit [Max SendQ exceeded]
hewenhong has quit [Remote host closed the connection]
dc has quit []
terlar has quit [Ping timeout: 272 seconds]
hewenhong has joined #ruby
lidenskap has quit [Remote host closed the connection]
MXfive has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
f3lp has quit [Ping timeout: 245 seconds]
hewenhon_ has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
hewenhong has quit [Ping timeout: 240 seconds]
asmodlol has quit [Ping timeout: 245 seconds]
Pupeno has quit [Quit: Leaving...]
PhantomSpank has joined #ruby
bMalum has quit [Quit: bMalum]
terlar has joined #ruby
asmodlol has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
digitalextremist has quit [Ping timeout: 256 seconds]
ponga has quit [Remote host closed the connection]
alex88 has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
bMalum has joined #ruby
marr has joined #ruby
juanpablo__ has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
vtunka has joined #ruby
colorados has joined #ruby
kyrylo has quit [Remote host closed the connection]
kyrylo has joined #ruby
juanpablo__ has quit [Ping timeout: 255 seconds]
Ropeney has quit [Quit: Leaving...]
digitalextremist has joined #ruby
psyprus has joined #ruby
vtunka has quit [Quit: Leaving]
matcouto has joined #ruby
DEA7TH has joined #ruby
Musashi007 has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
asmodlol has quit [Ping timeout: 264 seconds]
quimrstorres has joined #ruby
workmad3 has joined #ruby
digitalextremist has quit [Ping timeout: 252 seconds]
aryaching_ has quit [Ping timeout: 252 seconds]
quimrstorres has quit [Remote host closed the connection]
tvw has joined #ruby
asmodlol has joined #ruby
Cust0sL1men has joined #ruby
chimche has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
moeabdol has joined #ruby
quimrstorres has joined #ruby
chimche has quit [Ping timeout: 244 seconds]
ponga has joined #ruby
mengu has quit [Remote host closed the connection]
wldcordeiro_ has quit [Ping timeout: 252 seconds]
coderhs has joined #ruby
timonv1 has joined #ruby
MXfive has quit [Quit: Textual IRC Client: www.textualapp.com]
balazs has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
__lamer__ has quit [Quit: Lost terminal]
ixti has quit [Ping timeout: 272 seconds]
jakolehm_ has joined #ruby
asmodlol has quit [Ping timeout: 272 seconds]
balazs has quit [Ping timeout: 250 seconds]
asmodlol has joined #ruby
jakolehm has quit [Ping timeout: 276 seconds]
rodfersou has joined #ruby
Zai00 has quit [Quit: Zai00]
nii236 has joined #ruby
albipri has joined #ruby
<albipri> Hi! What is the best and updated ebay api gem?
<albipri> Hi! What is the most used and updated ebay api gem?
RegulationD has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Tuxified has joined #ruby
Tuxified has left #ruby [#ruby]
Musashi007 has quit [Read error: No route to host]
<certainty> doesn't look too good
livathinos has joined #ruby
jottr_ has joined #ruby
Musashi007 has joined #ruby
<albipri> certainty: Do you have any suggestion? I thought that the “codyfauser/ebay” was the better choise but it’s a bit old… 5 years ago the last commit
<certainty> albipri: nope, i have no experience with these things
RegulationD has quit [Ping timeout: 255 seconds]
<albipri> certainty: Okay.. Thanks anyway
kyrylo has quit [Quit: Konversation terminated!]
ponga has quit [Read error: No route to host]
ponga has joined #ruby
ponga has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
albipri has left #ruby [#ruby]
vickleton has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
ApocalypseMike has joined #ruby
scripore has joined #ruby
ApocalypseMike has quit [Remote host closed the connection]
ypasmk has quit [Quit: ypasmk]
bruno- has joined #ruby
bebijlya has quit [Ping timeout: 246 seconds]
scripore has quit [Client Quit]
michele__ has joined #ruby
hewenhon_ has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection reset by peer]
ta has joined #ruby
bebijlya has joined #ruby
Musashi007 has quit [Quit: Musashi007]
fabrice31 has quit [Remote host closed the connection]
michele__ has quit [Ping timeout: 252 seconds]
yeticry has quit [Ping timeout: 240 seconds]
michele__ has joined #ruby
ypasmk has joined #ruby
yeticry has joined #ruby
chimche has joined #ruby
mengu has joined #ruby
CamonZ has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
tuelz1 has joined #ruby
ypasmk has quit [Quit: ypasmk]
chimche has quit [Ping timeout: 272 seconds]
colorados has quit [Quit: Leaving]
Rickmasta has joined #ruby
lidenskap has joined #ruby
leafybasil has quit [Read error: No route to host]
quimrstorres has quit [Remote host closed the connection]
leafybasil has joined #ruby
aryaching has joined #ruby
michele__ has quit [Quit: michele__]
michele__ has joined #ruby
michele__ has quit [Client Quit]
lidenskap has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
quimrstorres has joined #ruby
pwattste has joined #ruby
narcan has joined #ruby
pwattste has quit [Remote host closed the connection]
narcan has quit [Max SendQ exceeded]
merqlove has quit [Quit: Connection closed for inactivity]
bMalum has quit [Quit: bMalum]
banister has joined #ruby
doodlehaus has joined #ruby
barhum2013 has quit [Quit: barhum2013]
coderhs has joined #ruby
decrypt has quit [Quit: Leaving]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ypasmk has joined #ruby
toretore has joined #ruby
jayeshsolanki has joined #ruby
dorei has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
iotouch has joined #ruby
NinjaOps has joined #ruby
juanpablo__ has joined #ruby
RegulationD has joined #ruby
etqqkoiflwhb has joined #ruby
juanpablo__ has quit [Ping timeout: 272 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch has quit [Quit: Leaving.]
andll has joined #ruby
allcentury has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
iotouch has quit [Quit: This computer has gone to sleep]
chimche has joined #ruby
Astrologos_ has joined #ruby
agent_white has quit [Quit: goodnight]
bluOxigen has joined #ruby
dorei has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
aryaching_ has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
serivich has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
millerti has joined #ruby
MatthewsFace has joined #ruby
j0hnnyk has quit [Remote host closed the connection]
SouL_|_ has joined #ruby
fabrice31 has joined #ruby
MatthewsFace has quit [Ping timeout: 250 seconds]
rodfersou has quit [Quit: leaving]
ghr has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
barkerd427 is now known as zz_barkerd427
lidenskap has joined #ruby
crus has quit [Remote host closed the connection]
crus has joined #ruby
mengu has quit [Remote host closed the connection]
Papierkorb has joined #ruby
asmodlol has quit [Ping timeout: 252 seconds]
jottr_ has joined #ruby
asmodlol has joined #ruby
SouL_|_ has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 256 seconds]
rodfersou has joined #ruby
lidenskap has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
vtunka has joined #ruby
postmodern has quit [Quit: Leaving]
iotouch has joined #ruby
balazs has joined #ruby
gfawcettpq has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
ponga has quit [Quit: Leaving...]
etqqkoiflwhb has quit [Quit: (null)]
balazs has quit [Ping timeout: 272 seconds]
sdothum has joined #ruby
AlphaAtom has joined #ruby
ponga has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
al2o3-cr has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.1.1]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Akagi201 has joined #ruby
al2o3-cr has joined #ruby
Bira has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rollabunna has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Client Quit]
doodlehaus has quit [Remote host closed the connection]
ponga has quit [Quit: Leaving...]
ldnunes has joined #ruby
RegulationD has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
krzkrz has quit [Quit: WeeChat 1.0.1]
<Astrologos_> let's say i have an array ['a', 'b', 'c', 'd'], how could I enumerate it every 2 items? ie to the enumeration should give 'a', 'c'
yeticry has quit [Ping timeout: 252 seconds]
moeabdol has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
yeticry has joined #ruby
andll has quit []
workmad3 has quit [Ping timeout: 264 seconds]
<djellemah> >> %w[a b c d].each_slice(2).map{|i,_| i}
<ruboto> djellemah # => ["a", "c"] (https://eval.in/323821)
moeabdol has quit [Client Quit]
dylannorthrup has quit [Quit: 0.4.3]
asmodlol has quit [Ping timeout: 252 seconds]
Doc_X has joined #ruby
Papierkorb has quit [Ping timeout: 255 seconds]
<Astrologos_> each_slice :)
<Astrologos_> thanx
Lewix has joined #ruby
asmodlol has joined #ruby
avril14th has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
al2o3-cr has joined #ruby
<avril14th> hello there
vtunka has quit [Quit: Leaving]
airdisa has joined #ruby
Rollabunna has joined #ruby
gagrio_ has quit [Ping timeout: 246 seconds]
gagrio has quit [Ping timeout: 240 seconds]
iotouch has quit [Quit: This computer has gone to sleep]
Leef_ has joined #ruby
DerisiveLogic has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
gagrio has joined #ruby
Hounddog has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
vtunka has joined #ruby
weemsledeux has joined #ruby
gfawcettpq has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 276 seconds]
but3k4 has joined #ruby
mengu has quit [Remote host closed the connection]
gfawcettpq has joined #ruby
gfawcettpq has quit [Client Quit]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
gfawcettpq has joined #ruby
weemsledeux has quit [Ping timeout: 256 seconds]
Akagi201 has quit [Ping timeout: 255 seconds]
zz_barkerd427 is now known as barkerd427
turtil has quit [Ping timeout: 240 seconds]
pwattste has joined #ruby
Pupeno has joined #ruby
dANO has joined #ruby
mostlybadfly has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
Astrologos_ has quit []
dorei has joined #ruby
iotouch has joined #ruby
gagrio_ has joined #ruby
ixti has joined #ruby
zlude has quit [Read error: Connection reset by peer]
diegoaguilar has joined #ruby
Hounddog has joined #ruby
ghr has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Lewix has quit []
ghr has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
<dANO> Hi, I created a script in ruby or I get a variable time and after I use the .change function to change this date my problem is that I get an error: undefined method `change 'for 2015-05-04 14 : 09: 44 0200: Time. Should it require "time" at the beginning of my script or something like that to not read this error?
jottr_ has quit [Quit: WeeChat 1.1.1]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ddv> dANO: what is there not to understand? Time doesn't have such a method
astrobunny has joined #ruby
jottr has joined #ruby
<ddv> dANO: ah you are using rails?
<dANO> ddv: I'm sorry, I want to post my message in the RubyOnRails chan
<dANO> Sorry about that
juanpablo__ has joined #ruby
roshanavand_ has joined #ruby
jayeshsolanki has quit [Ping timeout: 272 seconds]
roshanavand_ has quit [Client Quit]
roshanavand has joined #ruby
ypasmk_ has joined #ruby
hewenhong has joined #ruby
ypasmk has quit [Ping timeout: 265 seconds]
ypasmk_ is now known as ypasmk
iotouch has quit [Quit: This computer has gone to sleep]
juanpablo__ has quit [Ping timeout: 264 seconds]
sent1nel has quit [Remote host closed the connection]
iasoon has joined #ruby
charliesome has joined #ruby
bMalum has joined #ruby
Guest5450 has quit [Ping timeout: 272 seconds]
allcentury has joined #ruby
jayeshsolanki has joined #ruby
Papierkorb has joined #ruby
dstarh has joined #ruby
kedare has joined #ruby
vikaton has joined #ruby
failshell has joined #ruby
nateberkopec has joined #ruby
RegulationD has joined #ruby
KnownSyntax has quit [Quit: Connection closed for inactivity]
scripore has joined #ruby
jayeshsolanki has quit [Max SendQ exceeded]
jayeshsolanki has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
Pupeno has quit [Remote host closed the connection]
Papierkorb has quit [Ping timeout: 264 seconds]
Pupeno has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
Pupeno has quit [Remote host closed the connection]
rbennacer has joined #ruby
hewenhong has quit [Remote host closed the connection]
zz_Outlastsheep is now known as Outlastsheep
tuelz1 has quit [Ping timeout: 256 seconds]
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
JDiPierro has joined #ruby
Pupeno has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby
Papierkorb has joined #ruby
JDiPierro has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
sent1nel has joined #ruby
JDiPierro has joined #ruby
mtakkman has joined #ruby
griffindy has joined #ruby
iotouch has joined #ruby
gagrio has quit [Ping timeout: 246 seconds]
dblessing has joined #ruby
jayeshsolanki has quit [Quit: bye!]
gagrio_ has quit [Ping timeout: 256 seconds]
lkba has joined #ruby
barhum2013 has joined #ruby
MatthewsFace has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
sgambino has joined #ruby
gfawcettpq has quit [Remote host closed the connection]
jerius has joined #ruby
lidenskap has joined #ruby
sameerynho has quit [Quit: Leaving]
blackoperat has joined #ruby
barhum2013 has quit [Quit: barhum2013]
Mezjin has joined #ruby
banister has joined #ruby
blackoperat has quit [Client Quit]
n008f4g_ has joined #ruby
c0m0 has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
roshanavand has joined #ruby
tuelz1 has joined #ruby
lavros has joined #ruby
bMalum has quit [Quit: bMalum]
lidenskap has quit [Ping timeout: 272 seconds]
nettoweb has joined #ruby
ismaelga has joined #ruby
c0m0 has joined #ruby
sevenseacat has joined #ruby
barhum2013 has joined #ruby
ghr has joined #ruby
konsolebox has joined #ruby
bMalum has joined #ruby
jlast has joined #ruby
Papierkorb has quit [Ping timeout: 246 seconds]
xamut has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 264 seconds]
mrmargolis has joined #ruby
bMalum has quit [Client Quit]
hewenhong has joined #ruby
Papierkorb has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
jlast has quit [Ping timeout: 265 seconds]
Kellin has quit [Disconnected by services]
scripore has joined #ruby
mtakkman has quit [Read error: Connection reset by peer]
jerematic has joined #ruby
simpyll has quit [Ping timeout: 255 seconds]
konsolebox has quit [Ping timeout: 256 seconds]
Akagi201 has joined #ruby
tesuji has joined #ruby
ndrei has joined #ruby
digitalextremist has joined #ruby
iotouch has quit [Quit: 离开]
Papierkorb has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Rapier- has joined #ruby
jakolehm_ has quit []
jobewan has joined #ruby
govg has joined #ruby
Guest37907 is now known as IceDragon
scripore has joined #ruby
icebourg has joined #ruby
lfox has joined #ruby
Akagi201_ has joined #ruby
SouL_|_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
Spami has joined #ruby
ta has quit [Remote host closed the connection]
Spami has quit [Remote host closed the connection]
dumdedum has quit [Ping timeout: 272 seconds]
jottr has quit [Ping timeout: 272 seconds]
Akagi201 has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
astrobunny has quit [Remote host closed the connection]
moeabdol has joined #ruby
icebourg has quit []
mengu has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
sanguisdex has joined #ruby
Akagi201 has joined #ruby
vim_shimm has joined #ruby
jobewan has quit [Ping timeout: 264 seconds]
dumdedum has joined #ruby
Akagi201_ has quit [Ping timeout: 256 seconds]
t4nk784 has joined #ruby
shellfu has joined #ruby
slash_nick has quit [Read error: Connection reset by peer]
<t4nk784> so what exactly is this? I know this sounds like a dumb question, but I was told this is a good place to start learning or understanding ruby and ruby on rails
shellfu has quit [Remote host closed the connection]
<tobiasvl> learning ruby, yes
<tobiasvl> for rails, #rubyonrails is better
vim_shimm has quit [Ping timeout: 264 seconds]
<t4nk784> gotcha that make sense
treehug88 has joined #ruby
<t4nk784> i started learning ruby on rails but my mind was blown. so i decided grasping ruby better would be best
ahmetkapikiran has joined #ruby
EagleDelta has joined #ruby
<ddv> t4nk784: learn by doing
kp666 has quit [Read error: Connection reset by peer]
hewenhong has quit [Remote host closed the connection]
hewenhong has joined #ruby
paulcsmith has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dudedudeman> Happy Monday to you and yours
<dudedudeman> may your rubies be awesome and your code run straight and true
insidious has joined #ruby
<dudedudeman> i almost said rubles?
Parker0 has joined #ruby
mg^ has quit [Read error: Connection reset by peer]
mrdmi has quit [Read error: Connection reset by peer]
segfalt has quit [Read error: Connection reset by peer]
Parker0 has quit [Client Quit]
mg^^ has joined #ruby
luksaur has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrdmi has joined #ruby
Papierkorb has joined #ruby
segfalt has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
aryaching_ has quit [Ping timeout: 250 seconds]
Bish has quit [Ping timeout: 252 seconds]
jobewan has joined #ruby
websoftwarez has quit [Quit: Leaving]
diegoaguilar has quit [Remote host closed the connection]
Papierkorb has quit [Read error: Connection reset by peer]
Papierkorb has joined #ruby
Vile` has joined #ruby
t4nk784 has quit [Quit: Page closed]
riotjones has quit [Remote host closed the connection]
bMalum has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Perdomo has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
f3lp has joined #ruby
Bish has joined #ruby
rodferso1 has joined #ruby
thatslifeson has joined #ruby
airdisa has quit []
ta has joined #ruby
mishmash has joined #ruby
banister has joined #ruby
shomany has joined #ruby
shomany has left #ruby [#ruby]
lidenskap has joined #ruby
Leef_ has quit [Quit: Leaving]
rodfersou has quit [Ping timeout: 272 seconds]
shellfu has joined #ruby
hewenhon_ has joined #ruby
mary5030 has joined #ruby
TheHodge has joined #ruby
mishmash has quit [Max SendQ exceeded]
psy has quit [Ping timeout: 240 seconds]
mwlang has joined #ruby
mary5030 has quit [Remote host closed the connection]
hewenhong has quit [Ping timeout: 245 seconds]
juanpablo__ has joined #ruby
hewenhon_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
hewenhong has joined #ruby
lidenskap has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
ndrei has joined #ruby
werelivinginthef has joined #ruby
sankaber has joined #ruby
jlast has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
chipotles has joined #ruby
Kricir has joined #ruby
keen_______ has joined #ruby
qwertme has joined #ruby
keen______ has quit [Ping timeout: 240 seconds]
umgrosscol has joined #ruby
werelivinginthef has left #ruby [#ruby]
ghr has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
<adaedra> Why do I use p in pry -_-
<mwlang> Do you take avantage of Ruby’s truthy and falsey evaluations for non-boolean values to enhance code readability? This is something I’ve been re-thinking my position on lately. Traditionally if I know a parameter expects a boolean, that’s what I pass, but last week, I made a slight change to make boolean params optional at the end of the function call and then pass in symbolically named intents like this:
tuelz1 has quit [Ping timeout: 250 seconds]
sankaber has quit [Ping timeout: 250 seconds]
axl_ has joined #ruby
umgrosscol has quit [Remote host closed the connection]
axl_ has quit [Client Quit]
<mwlang> in particular, the line “set_property :roles, :b035, :repeatable, :unique” means, “set the property ‘roles’ to the ‘b035’ xml tag. it is repeatable but should only have unique values”
umgrosscol has joined #ruby
<ytti> i use non-false/nil value as truthy value pretty often
<ytti> i think it's somewhat obvious from context if it helps readability or not
<ytti> i don't subscribe to absolute coding rules
ghr has quit [Ping timeout: 272 seconds]
<mwlang> ytti: I think some of my habits stem from my history as I started with compiled languages long before interpreted languages.
enebo has joined #ruby
<mwlang> what’s hard for me to tell is whether the above construct is in fact more readable to the “uninitiated” who comes behind me to read that code.
woodruffw has quit [Quit: And then he took off.]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<mwlang> on the one hand, if I were passing “true, true” the developer has to look up the implementation of the set_property method to determine why “true, true” On the other hand if I pass “:repeatable, :unique” they may go hunting for those symbols to see what they signify and only later realize they were solely to represent intent in this context.
<ytti> mwlang, i think in your example it greatly enchances readability
<ytti> and i would write it same way
icebourg has joined #ruby
bruno- has joined #ruby
hewenhong has quit [Remote host closed the connection]
rgb-one has joined #ruby
bmurt has joined #ruby
thatslifeson has quit [Remote host closed the connection]
<mwlang> ytti: thanks your feedback.
pandaant has joined #ruby
barhum2013 has quit [Quit: barhum2013]
chipotles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Raverix has joined #ruby
emilkarl has joined #ruby
axl_ has joined #ruby
<Raverix> Hello, I'm getting an error, "Incomplete response received from application" and unfortunately I cannot seem to find a solution that works for me from google, any suggestions would be greatly appreciated. This is a working ruby on rails project that works locally, that I'm trying to get running on a new server. Fresh install of everything, so I have a feeling is a mis configuration issue.
doodlehaus has joined #ruby
<emilkarl> how would you refactor this? http://pastie.org/10139650
<adaedra> Raverix: #RubyOnRails
<Raverix> adaedra: Thank you.
<shevy> mwlang ideally, what I have found, is that the simpler the code is, the easier it will be read for everyone
jottr has joined #ruby
<shevy> take hanmac code - only hanmac can decipher it
<adaedra> emilkarl: iirc, you just want a single array with all the results of .get_items on each element?
<C0deMaver1ck> emilkarl: missions.collect { |mission| mission.get_items }
scripore has quit [Read error: Connection reset by peer]
<emilkarl> yep..
<shevy> in regards to boolean values, I often initialize a variable to nil on startup, and lateron set it to other values; I usually bundle that into a method called reset()
<emilkarl> great thanks C0deMaver1ck
rkazak has joined #ruby
Papierkorb has quit [Ping timeout: 256 seconds]
<emilkarl> will collect return array even if there are no missions?
<mwlang> shevy: I agree. however, I’m questioning whether I’m taking a step towards simpler code or away in my example?
<adaedra> missions.collect(&:get_items) may be shorter
<emilkarl> an empty array.
<shevy> well
rgb-one has quit [Read error: Connection reset by peer]
<shevy> the simplest code is the one that never has to be written :)
agarie has joined #ruby
<emilkarl> lol
ypasmk has quit [Quit: ypasmk]
<mwlang> Raverix: check that you have a config/secrets.yml file in place.
<shevy> mwlang I often feel the same when I look at rails code
<mwlang> Raverix: I often see this one when deploying a rails app the first time on a server.
<shevy> there are so many special things that one has to know ... class Foo; do_this :bla; do_that :ble; make_love :ok; not_war :yippie; end
<C0deMaver1ck> emilkarl: yes
<shevy> yeah. very rails inspired
<shevy> they change ruby!
<Raverix> mwlang: I'll confirm.
<Raverix> mwlang: Thank you
charliesome has quit [Quit: zzz]
<emilkarl> but…concat combines the arrays
<emilkarl> get items returns an array as well
kt2 has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
<mwlang> shevy: yeah, I think I’ve been silently influenced by such forces as Rails and indeed, I’ve been deep in Rails’ bowels the last couple of months.
kt2 has quit [Client Quit]
<emilkarl> so collect doesnt seem to combines all the arrays into one but instead creating one array of multiple arrays.
jottr has quit [Ping timeout: 256 seconds]
<Raverix> mwlang: I definitely do not have a config/secrets.yml... what should be in that file?
tjohnson has joined #ruby
chipotles has joined #ruby
<adaedra> emilkarl: .flatten
<C0deMaver1ck> .fla
<adaedra> will make one big array
<C0deMaver1ck> beat me too it adaedra
<C0deMaver1ck> lol
aryaching has joined #ruby
ta has quit [Remote host closed the connection]
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
chipotle has joined #ruby
<Raverix> mwlang: Looking through it now, I do not have this locally, and it runs, so perhaps it's set up differently?
quimrstorres has quit [Remote host closed the connection]
<adaedra> iirc, default secrets.yml ask you to have your secret key as environment variable in production mode.
<mwlang> Raverix: I don’t think Rails enforces the requirement of the secrets until you run in production mode.
thiagovsk has joined #ruby
gagrio_ has joined #ruby
<mwlang> Raverix: this is actually one of my gripes about Rails in general…stuff that works in development, stops working when you deploy…secrets.yml’s presence is one such issue, asset pipelines not pre-compiling correctly is another.
AlphaAtom has quit []
soulcake has quit [Quit: Quack.]
rodferso1 has quit [Quit: leaving]
MatthewsFace has joined #ruby
soulcake has joined #ruby
vtunka has quit [Quit: Leaving]
Mezjin has quit [Remote host closed the connection]
Papierkorb has joined #ruby
fabrice31 has quit [Remote host closed the connection]
charliesome has joined #ruby
fabrice31 has joined #ruby
AlphaAtom has joined #ruby
n008f4g_ has joined #ruby
bMalum has quit [Quit: bMalum]
vtunka has joined #ruby
quimrstorres has joined #ruby
MatthewsFace has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
arturaz has quit [Ping timeout: 246 seconds]
badhatter has joined #ruby
davedev24_ has joined #ruby
beneggett has joined #ruby
idealexit has joined #ruby
EagleDelta has quit [Read error: Connection reset by peer]
Sirupsen has joined #ruby
Papierkorb has quit [Ping timeout: 256 seconds]
tuelz1 has joined #ruby
thatslifeson has joined #ruby
aganov has quit [Quit: Leaving]
casadei_ has joined #ruby
Oka has joined #ruby
polysics has joined #ruby
polysics has quit [Client Quit]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
roshanavand has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emilkarl has quit [Quit: emilkarl]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
riotjones has joined #ruby
aphprentice has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 256 seconds]
zzing has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
riotjones has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
<Raverix> mwlang: I appreciate the help, I beleive I have it set up right, but the error message hasn't changed.
haxrbyte has joined #ruby
<shevy> mwlang to me rails is still one big mystery :)
bamorim has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
<mwlang> Raverix: restart the server an all that?
<Raverix> my secrets.yml: http://hastebin.com/lufaqowifi.sm
<Raverix> apachectl restart
<Raverix> Is there another restart I should attempt?
haxrbyte has joined #ruby
<mwlang> Raverix: actually, looking at that, you still haven’t supplied the keys to your app.
<Raverix> ?
rdema has quit [Ping timeout: 264 seconds]
haxrbyte has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
metalic has joined #ruby
haxrbyte has joined #ruby
fabrice31_ has joined #ruby
konsolebox has quit [Max SendQ exceeded]
moeabdol has quit [Ping timeout: 246 seconds]
<Raverix> mwlang: in .env I have SECRET_KEY_BASE=[abcdef]
haxrbyte has quit [Remote host closed the connection]
rdema has joined #ruby
konsolebox has joined #ruby
<Raverix> mwlang: Link doesn't work.
<mwlang> Raverix: https://gist.github.com/mwlang/00922bb1d7f68793240d then. Try this file as it is, and once its working, extract the value to environment.
konsolebox has quit [Max SendQ exceeded]
Perdomo_ has joined #ruby
konsolebox has joined #ruby
<mwlang> Raverix: what I saw in your file was that you set the key only on development environment. If the code’s deployed to server, you’re likely running production mode rather than development.
lidenskap has joined #ruby
riotjones has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
konsolebox has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
<Raverix> mwlang: My vhost has this: RailsEnv development
gambl0re has joined #ruby
<mwlang> for now, populating the file directly with the keys in all position and then work your way backwards to a “proper” deployment is the way to go. Also, you can check the nginx or apache logs along with the app’s logs to see what specifically is failing.
<Raverix> mwlang:I've aded your file, and restarted apache, same error.
konsolebox has joined #ruby
<adaedra> is there a method to swap keys and values in a map?
<mwlang> Raverix: time to start digging into the log files then.
<adaedra> s/map/hash/
<mwlang> adaedra: #invert
Bira has quit [Remote host closed the connection]
sevvie has joined #ruby
konsolebox has quit [Max SendQ exceeded]
<adaedra> mwlang <3
ryan_ has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
konsolebox has joined #ruby
freerobby has joined #ruby
charliesome has quit [Quit: zzz]
<adaedra> Raverix: check the logs
<mwlang> Raverix: I’d suggest gisting as that link didn’t work.
<Raverix> adaedra: I am.
Perdomo has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
lidenskap has quit [Ping timeout: 252 seconds]
<Raverix> Does that link work?
n008f4g_ has quit [Ping timeout: 265 seconds]
<mwlang> Yes
konsolebox has quit [Max SendQ exceeded]
insidious has quit [Ping timeout: 256 seconds]
<Raverix> It appears that passenger agent started properly.
konsolebox has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
<mwlang> Raverix: need your development.log for more info
konsolebox has quit [Max SendQ exceeded]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alex88_ has joined #ruby
konsolebox has joined #ruby
<Raverix> mwlang: nonexistant
konsolebox has quit [Max SendQ exceeded]
<mwlang> Raverix: then it seems passenger is not properly hooking into your app.
ta has joined #ruby
konsolebox has joined #ruby
<mwlang> passenger can be configured correctly for apache’s environment, yet still not be configured correctly for your specific app.
rbennacer has quit [Remote host closed the connection]
konsolebox has quit [Max SendQ exceeded]
<mwlang> Raverix: btw, you might get more help in the #rubyonrails channel
nettoweb has joined #ruby
alex88 has quit [Ping timeout: 255 seconds]
konsolebox has joined #ruby
roshanavand has joined #ruby
chrishough has joined #ruby
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
sevvie has quit [Ping timeout: 265 seconds]
moeabdol has joined #ruby
<Raverix> mwlang: Thanks for the tip.
qwertme has joined #ruby
Sirupsen has joined #ruby
moeabdol has quit [Client Quit]
konsolebox has quit [Max SendQ exceeded]
Bira has joined #ruby
a346 has joined #ruby
gagrio_ has quit [Ping timeout: 255 seconds]
konsolebox has joined #ruby
kirun has joined #ruby
Sirupsen has quit [Client Quit]
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
moeabdol has joined #ruby
lidenskap has joined #ruby
konsolebox has quit [Max SendQ exceeded]
insidious has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
konsolebox has joined #ruby
alex88_ is now known as alex88
konsolebox has quit [Max SendQ exceeded]
diegoviola has joined #ruby
konsolebox has joined #ruby
redlegion has joined #ruby
snockerton has joined #ruby
simpyll has joined #ruby
konsolebox has quit [Max SendQ exceeded]
moted has joined #ruby
konsolebox has joined #ruby
einarj has quit [Remote host closed the connection]
tuelz1 is now known as tewls
rkazak has quit [Quit: Sleep.....ing....]
tewls is now known as tuelz
sevvie has joined #ruby
AxonetBE has joined #ruby
konsolebox has quit [Max SendQ exceeded]
jimms has joined #ruby
failshell has quit []
Dwarf has quit [Ping timeout: 265 seconds]
chipotles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotles has joined #ruby
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdg_ has joined #ruby
failshell has joined #ruby
DerisiveLogic has joined #ruby
jph98 has quit [Quit: jph98]
lidenskap has quit [Remote host closed the connection]
ghostmoth has joined #ruby
chipotles has quit [Client Quit]
jottr has joined #ruby
Bira has quit []
AlphaAtom has quit [Quit: AlphaAtom]
someguy has joined #ruby
nii236 has quit [Ping timeout: 255 seconds]
edwinvdgraaf has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
edwinvdg_ has quit [Ping timeout: 272 seconds]
sevvie has quit [Ping timeout: 256 seconds]
Guest49913 has quit [Ping timeout: 252 seconds]
paulcsmith has quit [Ping timeout: 265 seconds]
mistermo_ has joined #ruby
Fingel has joined #ruby
paulcsmith has joined #ruby
Soda has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 255 seconds]
Mohan has joined #ruby
Soda has joined #ruby
rkazak has joined #ruby
uri_ has joined #ruby
Mohan is now known as Guest45159
mjuszczak has joined #ruby
phutchins1 has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
willharrison has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
nobitanobi has joined #ruby
Papierkorb has joined #ruby
nobitanobi has quit [Remote host closed the connection]
cc has joined #ruby
<cc> oh
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> If I have a line that may throw, but I want to just ignore the throw, is suffixing it with `rescue true` acceptable or is there a better way®?
Dopagod has quit [Ping timeout: 256 seconds]
<gambl0re> if i want to run rspec do i put my .rb files in the same folder as the spec_helper file?
<adaedra> yep
<adaedra> this is the test folder that you will pass to rspec
barhum2013 has joined #ruby
bMalum has quit [Ping timeout: 255 seconds]
konsolebox has joined #ruby
casadei_ has quit [Remote host closed the connection]
<gambl0re> i tried that but its still not working.
konsolebox has quit [Max SendQ exceeded]
<jhass> adaedra: well yes, but I think it's an antipattern
qwertme has joined #ruby
dstarh has joined #ruby
konsolebox has joined #ruby
<jhass> modifier-rescue doesn't allow you to specify the type of exceptions that you expect
<gambl0re> home/ricky/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- spec_helper (LoadError)
<jhass> thus you might swallow (and thus hide a bug) ones you don't expect
<gambl0re> followed by a long list of error messages
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
<adaedra> jhass: I don't think String#[]= may throw many things I could miss. You can't pass an error to filter to inline rescue?
<jhass> yeah, you can't
michael_mbp has quit [Excess Flood]
xxneolithicxx has quit [Ping timeout: 255 seconds]
<jhass> but why not guard with if s.size < 123
<jhass> or >= 123 rather
konsolebox has quit [Max SendQ exceeded]
<adaedra> uh?
<jhass> gambl0re: try from the_oden_project/ruby
konsolebox has joined #ruby
<jhass> adaedra: well, which exceptions do you expect from String#[]= ?
<gambl0re> ok
<adaedra> it's not a size problem, rather a regex match
<jhass> then use .sub
<adaedra> oh
<adaedra> derp
cc has quit [Read error: Connection reset by peer]
michael_mbp has joined #ruby
<adaedra> Danke schön jhass
konsolebox has quit [Max SendQ exceeded]
<gambl0re> rspec ruby/spec/lib/zombie_.rb
mleung has joined #ruby
<gambl0re> that was done from the_odin_project and same error message
andikr has quit [Remote host closed the connection]
konsolebox has joined #ruby
RegulationD has quit [Remote host closed the connection]
cc has joined #ruby
konsolebox has quit [Max SendQ exceeded]
<gambl0re> the spec_helper and my ruby files are all in the same /lib directory that i craeated manually.
<jhass> adaedra: small terminology nitpick: since Ruby has throw/catch, saying "may raise" instead of "may throw" is better ;)
<gambl0re> i did a rspec --init and it created a /spec directory automatically for me
rbennacer has joined #ruby
<adaedra> jhass: ah
ta has quit [Remote host closed the connection]
<adaedra> gambl0re: spec_helper and test files should be in this folder then
<jhass> gambl0re: cd ruby, rspec spec/lib/zombie_spec.rb
<jhass> and if that doesn't work remove the lib dir
rbennacer has quit [Remote host closed the connection]
cc has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
<gambl0re> spec_helper and my files should be the spec folder?
bMalum has quit [Client Quit]
<adaedra> the spec folder contains everything test-related
<shevy> hmm array.map! can be used to modify each entry
<shevy> can the same be used for a hash too, but only modify the value?
<gambl0re> this is what i have now.../home/ricky/the_oden_project/ruby/spec
<gambl0re> with my spec_helper and ruby files in the /spec folder
<adaedra> shevy: iirc, Hash#map! doesn't exists.
<adaedra> >> {}.map! {}
<ruboto> adaedra # => undefined method `map!' for {}:Hash (NoMethodError) ...check link for more (https://eval.in/324060)
<shevy> aaah ok
<adaedra> Because Hash#map don't return an hash
<shevy> was wondering whether I was doing something inefficient compared to using arrays
<adaedra> So you can't map a Hash in-place
<gambl0re> folder /lib is deleted..
cc has joined #ruby
diegoaguilar has quit [Quit: Leaving]
<adaedra> The pattern I see the most is hash.each do |k, v| hash[k] = f(v) end, shevy
<shevy> yeah, that felt like the primitive variant :)
<adaedra> gambl0re: can you issue `tree` and gist that to show what's your project structure if it's not too big?
jtdowney has joined #ruby
<gambl0re> oh its working now...
<shevy> isn't there a warning when you do that though? like "don't modify a hash as you are iterating over it"?
<adaedra> Don't think so
cc is now known as ring4
<jhass> shevy: only if you insert new keys or delete ones I think
j_mcnally has joined #ruby
ring4 is now known as ring
<adaedra> yeah, as long as iterator stays valid, it's okay I think
ring is now known as cc
cc is now known as CC
jimms has quit [Remote host closed the connection]
CC is now known as cc
mleung has quit [Remote host closed the connection]
<shevy> ah ok
alex88 has quit []
barhum2013 has quit [Quit: barhum2013]
<adaedra> I leave in less than an hour and the weather is getting worse
Spami has joined #ruby
gluten_hell has joined #ruby
<shevy> that's ok
<shevy> you are in France
<adaedra> and ?
<shevy> you have good wine
<adaedra> Lucky me
<shevy> you have good food - baguette, french cheese
<adaedra> Oh wait, I don't drink alcoohol
<adaedra> *-o
j_mcnally has quit [Client Quit]
<shevy> actually, I know more italian cuisine; italy is closer than france is here
AxonetBE has quit [Quit: AxonetBE]
Axy has joined #ruby
<adaedra> I can have all you say, I'll still be wet for the short journey to the train station
<gambl0re> so all my ruby files has to be together with my spec_helper file??
<gambl0re> and does it have to be in the /spec folder or can i move them to another folder if i want?
Mia has quit [Ping timeout: 240 seconds]
vire has quit [Ping timeout: 245 seconds]
<eam> is it still necessary to avoid modifying a hash while iterating it, after the insert-order change was made?
<adaedra> I guess it's usage to have them in spec folder
slash_nick has quit [Quit: Lost terminal]
rkazak has quit [Ping timeout: 264 seconds]
<adaedra> but you can have subfolders in spec
barhum2013 has joined #ruby
<gambl0re> ok thanks....
<adaedra> but only test files goes in spec – standard code goes in lib/bin/app/...
snockerton has quit [Quit: Leaving.]
<adaedra> lib is preferred, as it's standard and automatically added by spec to load path
xxneolithicxx has joined #ruby
simpyll has quit [Ping timeout: 256 seconds]
snockerton has joined #ruby
<mwlang> gambl0re: you can put your specs anywhere. convention is to put them in the spec folder as that disguishes them from minitest/unitest, etc. which usually go into “test” folder by convention.
mary5030_ has joined #ruby
<jhass> gambl0re: code in lib/my_lib/foo.rb its spec in spec/my_lib/foo_spec.rb
Matachines has joined #ruby
jackjackdripper has joined #ruby
<gambl0re> i get it now...
<mwlang> gambl0re: rake tasks that gome from scaffolded generators generally are already tooled to go hunting for specs in the spec folder, so if you go off the beaten track, you just have to also go modify the tasks and such that call out rspec on those paths.
jimms has joined #ruby
mary5030 has quit [Ping timeout: 276 seconds]
anisha has quit [Quit: Leaving]
serivich has quit [Ping timeout: 272 seconds]
<gambl0re> im trying to follow the rspec tutorial on codeschool and this guy is confusing me..
konsolebox has joined #ruby
rbennacer has joined #ruby
JDiPierro has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
ascarter_ has joined #ruby
kevinfagan_ has quit [Quit: ZNC - http://znc.in]
ag4ve_ has quit [Ping timeout: 248 seconds]
konsolebox has quit [Max SendQ exceeded]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
konsolebox has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
Dwarf has joined #ruby
konsolebox has quit [Max SendQ exceeded]
Axy has quit [Ping timeout: 240 seconds]
rodfersou has quit [Quit: leaving]
konsolebox has joined #ruby
GaryOak_ has joined #ruby
konsolebox has quit [Max SendQ exceeded]
cc has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
konsolebox has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
konsolebox has quit [Max SendQ exceeded]
sohrab has joined #ruby
konsolebox has joined #ruby
bmurt has quit []
snockerton has quit [Quit: Leaving.]
Stalkr has joined #ruby
konsolebox has quit [Max SendQ exceeded]
havenwood has joined #ruby
konsolebox has joined #ruby
ghr has joined #ruby
Hijiri has quit [Ping timeout: 256 seconds]
iwaffles has joined #ruby
konsolebox has quit [Max SendQ exceeded]
vtunka has quit [Quit: Leaving]
GaryOak_ has left #ruby [#ruby]
GaryOak_ has joined #ruby
konsolebox has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tcrypt has joined #ruby
leafybasil has quit [Remote host closed the connection]
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
rbennacer has quit [Remote host closed the connection]
haxrbyte has joined #ruby
konsolebox has quit [Max SendQ exceeded]
Mia has quit [Ping timeout: 244 seconds]
deric_skibotn has joined #ruby
bmurt has joined #ruby
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
sevvie has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
leafybasil has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
jtdowney has joined #ruby
failshell has joined #ruby
<sohrab> i have an app architecture question. we have a rails api on heroku, and want to add a feature that ports tweets to our twitter handle into the app. i'm wondering whether its better to host the twitter api on a separate server, or should be it part of the app?
timonv1 has quit [Ping timeout: 246 seconds]
livathinos has quit []
rgb-one has joined #ruby
metalic has quit [Ping timeout: 265 seconds]
<GaryOak_> sohrab: there's probably a rails plugin that can handle the twitter stream, through rails
sevvie has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
nii236 has joined #ruby
<sohrab> GaryOak_: yeah, i think its possible, but dunno if its a good idea to do it on heroku
<GaryOak_> ooops, I don't have any Heroku experience
JDiPierro has joined #ruby
jottr has joined #ruby
rgb-one has quit [Remote host closed the connection]
LJT has quit [Quit: Sleeping...]
c0m0 has quit [Ping timeout: 244 seconds]
barhum2013 has quit [Quit: barhum2013]
<sohrab> GaryOak_: they have 'dynos' which are temporary instantiations of the app, and i dont know if its a good idea to use streaming on it. idk
j_mcnally has joined #ruby
barhum2013 has joined #ruby
endash has joined #ruby
Stalkr^ has joined #ruby
metalic has joined #ruby
<GaryOak_> I don't see why it would be an issue unless Heroku has network limits, twitter streaming isn't a terrible strain on a network
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
lkba_ has quit [Ping timeout: 256 seconds]
jack_rabbit has joined #ruby
jimms has quit [Remote host closed the connection]
mtakkman has joined #ruby
zorak8 has joined #ruby
allcentury has joined #ruby
Cust0sL1men has quit [Quit: Leaving]
MilesLemis has joined #ruby
willharrison has quit [Ping timeout: 272 seconds]
Stalkr has quit [Ping timeout: 264 seconds]
<MilesLemis> is anyone on?
<xxneolithicxx> no, im quite off
<xxneolithicxx> very off
nii236 has quit [Ping timeout: 276 seconds]
ShortCode has joined #ruby
hsps_ has joined #ruby
<havenwood> sohrab: I think the Heroku way is to use Heroku add-ons for most things: https://addons.heroku.com/
last_staff has quit [Quit: last_staff]
<havenwood> sohrab: So for like following a Twitter stream: https://devcenter.heroku.com/articles/stream
yh__ has quit [Ping timeout: 276 seconds]
konsolebox has joined #ruby
jack_rabbit has quit [Ping timeout: 265 seconds]
MatthewsFace has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
RegulationD has joined #ruby
<havenwood> sohrab: #RubyOnRails is probably a better place for Rails architecture questions.
MatthewsFace has joined #ruby
<havenwood> MilesLemis: hi
coderhs has quit [Ping timeout: 276 seconds]
konsolebox has quit [Max SendQ exceeded]
<MilesLemis> is there a site like codewars for css?
<sohrab> havenwood: thank you! discussing it in ror room right now actually.
roshanavand has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 252 seconds]
troyready has quit [Remote host closed the connection]
speaking1ode has quit [Ping timeout: 256 seconds]
shadoi has joined #ruby
konsolebox has joined #ruby
codecop has quit [Remote host closed the connection]
barhum2013_ has joined #ruby
DapperFox has joined #ruby
troyready has joined #ruby
barhum2013 has quit [Ping timeout: 264 seconds]
barhum2013_ is now known as barhum2013
lavros has quit [Quit: leaving]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qwertme has joined #ruby
jtdowney has joined #ruby
<havenwood> MilesLemis: Maybe codecademy.com or codeschool.com? Try asking in the #css channel.
vim_shimm has joined #ruby
<MilesLemis> i have they don't know but thank you :)
balazs has joined #ruby
jack_rabbit has joined #ruby
benlieb has quit [Quit: Leaving]
<pocketprotector> I have a question. I am trying to write some code that examins a hostname, and based on certain hostname criterea, truths are defined. example "hqrhelwww05" "hq" "rhel" "www".
pwattste has quit [Remote host closed the connection]
Eiam has joined #ruby
paulcsmith has quit [Ping timeout: 265 seconds]
CamonZ has quit [Remote host closed the connection]
<xxneolithicxx> truths = tokens
nobitanobi has joined #ruby
<xxneolithicxx> wheres the question
hectortrope has joined #ruby
<pocketprotector> right now i am using a bunch of if-elsif-else statements that do basic string checking with hostname.include?("hq"). Is there a better way to do this? it looks pretty poor to have a lot of if statements.
<havenwood> pocketprotector: Show a snippet of what you have?
kofione has joined #ruby
<havenwood> pocketprotector: https://gist.github.com/
speakingcode has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
wallerdev has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<xxneolithicxx> sounds like you have make shift server naming standard? we do the same thing at my job except tis well defined. if you know certain tokens follow a pattern its much easier to regex with a few length checks if/else statements.
Guest62983 has quit []
gluten_hell has quit [Quit: Computer has gone to sleep.]
bitrauser has joined #ruby
<bitrauser> hi everyone
<xxneolithicxx> like first two letters might be a datacenter location, followed by two letter os code or something
josh has joined #ruby
<havenwood> bitrauser: hi
jackjackdripper has joined #ruby
josh is now known as Guest1421
barhum2013 has quit [Quit: barhum2013]
iasoon has quit [Ping timeout: 264 seconds]
<pocketprotector> havenwood: let me see if i can retreive it from my home comp.
zorak8 has quit [Quit: Leaving]
mtakkman has quit [Ping timeout: 256 seconds]
barhum2013 has joined #ruby
CorpusCallosum has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Client Quit]
vim_shimm has quit [Ping timeout: 256 seconds]
jackjackdripper has joined #ruby
barhum2013 has quit [Client Quit]
terlar has quit [Ping timeout: 256 seconds]
trans_val has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ag4ve_ has joined #ruby
Limix has joined #ruby
allcentury is now known as help
help is now known as allcentury
nobitanobi has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
bitrauser has quit [Quit: WeeChat 1.1.1]
bmurt has quit []
vdamewood has joined #ruby
wolv has joined #ruby
codecop has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
wldcordeiro_ has joined #ruby
atmosx_ is now known as atmosx
trans_val has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
edwinvdgraaf has joined #ruby
shadoi has quit [Quit: Leaving.]
Matachines has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
dANO has quit []
shadoi has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
Eiam_ has joined #ruby
edwinvdgraaf has joined #ruby
aewffwea has quit [Ping timeout: 248 seconds]
Igorshp has joined #ruby
Dopagod has joined #ruby
einarj has joined #ruby
barhum2013 has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
balazs has quit [Remote host closed the connection]
Igorshp has quit [Read error: Connection reset by peer]
barhum2013 has quit [Client Quit]
phale has joined #ruby
Cust0sL1men has joined #ruby
phale has left #ruby ["Leaving"]
Igorshp has joined #ruby
barhum2013 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
andikr has joined #ruby
barhum2013 has quit [Client Quit]
fabrice31 has joined #ruby
barhum2013 has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby
EagleDelta has joined #ruby
ghr has joined #ruby
Hijiri has joined #ruby
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danman has joined #ruby
<shevy> hmm
<shevy> what is a simple way, to output a Hash in a "sorted" variant, when it is a simple key-> value pair, where value is an integer
edwinvdgraaf has quit [Remote host closed the connection]
<shevy> so like: hash = { :dogs => 1, :cats => 5, :mice => 3 }
ghr has quit [Ping timeout: 265 seconds]
<agarie> sort_by { |_, v| v }.to_h?
MilesLemis is now known as twat
ramfjord has joined #ruby
<agarie> >> { :dogs => 1, :cats => 5, :mice => 3 }.sort_by { |_, v| v }.to_h
<ruboto> agarie # => {:dogs=>1, :mice=>3, :cats=>5} (https://eval.in/324227)
<twat> how come twat is allowed and cunt isn't?
jottr has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
jtdowney has quit [Read error: Connection reset by peer]
jtdowney has joined #ruby
michaeldeol has joined #ruby
<shevy> ah
<shevy> interesting, thanks agarie
aewffwea has joined #ruby
<dudedudeman> agarie: can you shed a little more light on what you're doing inside the brackets? |_.V|v ?
<agarie> sure
<agarie> when you use an enumerable method in hashes, it yields both key and value
diegoviola has quit [Changing host]
diegoviola has joined #ruby
<agarie> in this case, I don't need to use the key, so I use _ instead (it's more of a convention)
<agarie> I could've written it this way: sort_by { |key, value| value }
<dudedudeman> ah!
<dudedudeman> ok, i can follow along with that
xxneolithicxx has joined #ruby
einarj has quit [Remote host closed the connection]
griffindy has quit [Read error: Connection reset by peer]
<agarie> nice :)
<dudedudeman> i appreciate it. because there's many times where if i can think of ways to do something, but there's almost always a cleaner, neater way of doing them
edwinvdgraaf has joined #ruby
Guest5450 has joined #ruby
paulcsmith has joined #ruby
Igorshp has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
<dudedudeman> so it's nice to have someone explain their method of doing something every now and then
<shevy> yeah
Spami has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
<shevy> ruby feels a lot like a filter language
edwinvdgraaf has joined #ruby
<shevy> you have all those various methods from Enumerable and stuff... sort select ... hmm and the others
snockerton has joined #ruby
<dudedudeman> 20 ways to do something, 10 ways to do it quickly, 5 ways to do it neatly
iasoon has joined #ruby
spider-mario has joined #ruby
jtdowney has quit [Quit: Textual IRC Client: www.textualapp.com]
jack_rabbit has quit [Ping timeout: 244 seconds]
<shevy> 1 way the best way
Guest1421 has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
lkba has joined #ruby
DerisiveLogic has quit [Ping timeout: 255 seconds]
<hanmac> shevy an one way Hanmac would do ;P
Hijiri has quit [Ping timeout: 265 seconds]
<shevy> hmm
lidenskap has joined #ruby
<shevy> we have... to_s ... to_a ... to_h ... to_i and to_f
<shevy> did I forget one to_ conversion?
<shevy> *a
fabrice31_ has joined #ruby
Leef_ has joined #ruby
<shevy> did I forget a to_ conversion that is
Leef_ has quit [Remote host closed the connection]
fabrice31 has quit [Read error: Connection reset by peer]
<shevy> if not then we have 5
x1337807x has joined #ruby
<hanmac> shevy to_r and to_c
<shevy> ohhhh
<shevy> what are these
<hanmac> >> [4.to_r, 4.to_c]
<shevy> >> '1'.to_r.class
<ruboto> hanmac # => [(4/1), (4+0i)] (https://eval.in/324260)
<ruboto> shevy # => Rational (https://eval.in/324260)
<shevy> ok Rational I see
<shevy> >> '1'.to_c.class
<ruboto> shevy # => Complex (https://eval.in/324261)
<shevy> and Complex
<shevy> lots of math inspired conversions
ypasmk has joined #ruby
x1337807_ has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/20150417180217]]
<matti> shevy: Ahoy
barhum2013 has quit [Quit: barhum2013]
x1337807_ has quit [Max SendQ exceeded]
x1337807x has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
Hijiri has joined #ruby
<hanmac> shevy there are the log ones too ... like to_ary, to_hash, to_regexp, to_int, to_str, to_float etc
<matti> Ah
<matti> ;D
x1337807x has joined #ruby
<tuelz> in 2020 I'm expecting an idea.to_code
<dudedudeman> i'd totally back that on kickstarter
<tuelz> just waiting on that singularity thing to happen, should be cake after that
someguy has quit [Quit: This computer has gone to sleep]
tomphp has joined #ruby
yh has joined #ruby
gluten_hell has joined #ruby
<dorei> any idea how to tell haml to print something as html comment?
jottr has quit [Ping timeout: 255 seconds]
x1337807x has quit [Ping timeout: 240 seconds]
quimrstorres has quit [Remote host closed the connection]
<dorei> i guess i can't :(
<dorei> using / = expression will output "expression" as an html comment without evaluating :(
<agarie> HAML doesn't use the same syntax as HTML for comments? ugh
thatslifeson has quit [Remote host closed the connection]
<Peetooshock> From stackoverflow: you can escape HTML with :escaped filter.
<agarie> (it's been years since I last read haml)
cgrieger is now known as cgrieger^away
x1337807x has joined #ruby
jimms has joined #ruby
insidious has quit [Ping timeout: 264 seconds]
<shevy> hey matti where have you been?
serivich has joined #ruby
tomphp_ has joined #ruby
<shevy> hanmac the long ones are synonymous? to_h like to_hash? I know that to_str and to_s is not synonymous
someguy has joined #ruby
<dorei> okie, i can just do = "<!-- #{expression} -->"
thatslifeson has joined #ruby
<dorei> maybe i should go back to using erb
metalic has quit [Ping timeout: 272 seconds]
tomphp has quit [Ping timeout: 256 seconds]
poguez_ has joined #ruby
<Peetooshock> no erb please :C haml is love, haml is life
<jhass> s/haml/slim/
AxonetBE has joined #ruby
iasoon has quit [Ping timeout: 240 seconds]
<shevy> haml is love?
<Peetooshock> what's the reason to use smail over haml?
twat is now known as twit
<Peetooshock> slim*
<jhass> less annoying %
edwinvdgraaf has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
<jhass> ~
<jhass> sorry
spider-mario has quit [Ping timeout: 246 seconds]
wolflee__ has joined #ruby
twit is now known as MichaelCruz
apurcell has joined #ruby
baweaver has joined #ruby
MichaelCruz is now known as VarsityCowboy
VarsityCowboy has quit [Quit: Page closed]
<gambl0re> does anybody know what is supposed to be in the actual spec_helper.rb file?
<gambl0re> i have a feeling mine is not right..
speakingcode has quit [Ping timeout: 252 seconds]
<jhass> mainly rspec's configuration
wolflee_ has quit [Ping timeout: 264 seconds]
<jhass> setup of your app to properly behave under the test environment and such
Papierkorb has quit [Ping timeout: 252 seconds]
Papierkorb_ has joined #ruby
<jhass> maybe a helper method or two
<jhass> stuff like that
<gambl0re> yea, mine doesnt have any configuaration in my file.
ndrei has quit [Ping timeout: 255 seconds]
tuelz has quit [Ping timeout: 256 seconds]
<gambl0re> this is my spec_helper file
jenrzzz has joined #ruby
<gambl0re> wtf..
edwinvdgraaf has joined #ruby
<jhass> your spec_helper requires your spec_helper?
<jhass> I think you've overwritten it with a _spec.rb
sum_bits has joined #ruby
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sohrab has quit [Ping timeout: 272 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
fabrice31 has joined #ruby
fabrice31_ has quit [Read error: Connection reset by peer]
gsd has joined #ruby
barkerd427 is now known as zz_barkerd427
sum_bits has quit [Client Quit]
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
serivich has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Read error: Connection reset by peer]
redlegion has quit [Quit: HIGH AS BALLS]
<gambl0re> figured it out...
tuelz has joined #ruby
<gambl0re> im trying to run a rake command but im getting
<gambl0re> home/ricky/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- spec_helper (LoadError)
<jhass> more context
<gambl0re> i tried putting the spec file in the same directory as the spec_helper but then i got this
ghostmoth has quit [Quit: ghostmoth]
workmad3 has quit [Ping timeout: 256 seconds]
<gambl0re> rake aborted!
<gambl0re> No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
redlegion has joined #ruby
<jhass> you're running stuff from the wrong directory again
bmurt has joined #ruby
ypasmk has quit [Quit: ypasmk]
<gambl0re> i put the files all in the same folder that has the spec_helper file
fabrice31 has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
speakingcode has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
baweaver has quit [Remote host closed the connection]
kobain has joined #ruby
<hanmac> shevy hm no the long ones are not equal, they are different like in to_ary and to_a
bricker has joined #ruby
postmodern has joined #ruby
<shevy> :(
<shevy> so much to learn, so much to know
danman_ has joined #ruby
<dudedudeman> and never enough time :(
Peetooshock has quit [Changing host]
Peetooshock has joined #ruby
danman_ has quit [Client Quit]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zz_barkerd427 is now known as barkerd427
danman has quit [Ping timeout: 245 seconds]
konsolebox has quit [Quit: Leaving]
edwinvdgraaf has joined #ruby
<GaryOak_> that's how I feel about programming, you can never learn everything
<hanmac> shevy Regexp.union does try to call to_regexp for sample and that one doesnt have a short form
someguy has quit [Quit: This computer has gone to sleep]
dyce_ is now known as dyce
tvw has quit [Remote host closed the connection]
<dudedudeman> regexp... that's something I've been meaning to ask. regex vs regexp?
<dudedudeman> i'm not quite sure what the differences are
j_mcnally has joined #ruby
someguy has joined #ruby
wolv has quit [Ping timeout: 256 seconds]
<shevy> hanmac I see
ghr has joined #ruby
LJT has joined #ruby
<shevy> dudedudeman I guess both are shortcuts
<shevy> "Regular Expression" should be both Regex and regexp ?
<shevy> I had an exam question lately about a regex in bioinformatics; I only narrowly passed that one :(
a346 has quit [Read error: Connection reset by peer]
<hanmac> shevy just do a TCNWCA, a TheClassNameWithoutCoolAcronym ;P
diegoaguilar_ has joined #ruby
n008f4g_ has joined #ruby
<dudedudeman> huh. so they're literally the same thing
marr has quit [Ping timeout: 244 seconds]
wjimenez_ has joined #ruby
wjimenez_ is now known as wjimenez5271_
<shevy> I have very long class names indeed
qwertme has joined #ruby
Senilinda has joined #ruby
j_mcnally has quit [Ping timeout: 265 seconds]
wjimenez5271_ has quit [Client Quit]
nii236 has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
doertedev has quit [Ping timeout: 245 seconds]
AnonymousWS has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
AnonymousWS has left #ruby [#ruby]
edwinvdgraaf has joined #ruby
Limix has quit [Quit: Limix]
wallerdev_ has joined #ruby
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
j_mcnally has joined #ruby
<agarie> shevy: you work with bioinformatics? :D
ismaelga has quit [Remote host closed the connection]
sohrab has joined #ruby
<dudedudeman> is RubyJS still a good route to go from ruby to javascript? Or is Opal a better option
wallerdev has quit [Ping timeout: 246 seconds]
wallerdev_ is now known as wallerdev
edwinvdg_ has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
deric_skibotn_ has joined #ruby
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deric_skibotn has quit [Read error: Connection reset by peer]
nii236 has quit [Ping timeout: 250 seconds]
<shevy> agarie yeah sort of. but I am awful with maths. What I do know is that the ruby bioinformatics stuff is even worse than perl
deric_skibotn_ is now known as deric_skibotn
phutchins1 has quit [Ping timeout: 244 seconds]
fabrice31_ has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
tubuliferous_ has joined #ruby
<shevy> oh Pjotr
<shevy> he did some stuff with bioruby a while ago
<shevy> hmm SciRuby
<shevy> never heard of it before
Limix has joined #ruby
<havenwood> dudedudeman: The tea leaves say Opal.
Limix has quit [Client Quit]
<shevy> agarie, nope did not read that yet. I assume you must know about that kind of stuff since you mentioned it?
Matachines has joined #ruby
jimms has quit [Remote host closed the connection]
iasoon has joined #ruby
_blizzy_ has joined #ruby
<agarie> not really :P I'm a contributor to SciRuby
<havenwood> dudedudeman: See also: https://github.com/xxuejie/webruby#readme
<agarie> and Pjotr is one of our most active mentors for GSoC
Zekka has quit [Ping timeout: 276 seconds]
<shevy> aha
<agarie> I met him last year in the GSoC Mentor Summit
<shevy> \o/
Zekka has joined #ruby
fabrice31 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
fabrice31_ has quit [Ping timeout: 256 seconds]
<agarie> I currently work for a company in Brazil, but I'm interested in a PhD in the near future
<agarie> and yeah, he contributes to Bioruby as well
<agarie> BioRuby/Python/Perl are under an umbrella org in GSoC iirc
Guest45159 has quit [Ping timeout: 256 seconds]
idealexit has quit [Remote host closed the connection]
spider-mario has joined #ruby
asmodlol has quit [Ping timeout: 246 seconds]
Mohan has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
Mohan is now known as Guest50850
<dudedudeman> havenwood: thank you kindly!
fabrice31 has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
asmodlol has joined #ruby
allcentury has joined #ruby
<atmosx> shevy: I spoke with Pjotr a couple of months ago when I was doing my thesis to take some advise over how to visualize some possible protein combinations IIRC.
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snockerton has quit [Quit: Leaving.]
cgrieger^away is now known as cgrieger
cgrieger is now known as cgrieger^away
cgrieger^away is now known as cgrieger
<shevy> \o/
shadoi has quit [Quit: Leaving.]
<shevy> he is the biomaster of ruby
<shevy> atmosx do you finally have your degree
snockerton has joined #ruby
Zarthus has quit [Quit: This night will fall like any other, daylight subsides and shadows crawl.]
baweaver has joined #ruby
<NinjaOps> we are all made of Stars
Zarthus has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
fabrice31_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
fabrice31 has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
<atmosx> shevy: nope
<atmosx> shevy: I have to wait until Jun 2016 to be able to get the (fucking) degree.
baweaver has quit [Ping timeout: 272 seconds]
asmodlol has quit [Ping timeout: 264 seconds]
mjuszczak has quit []
chipotle has joined #ruby
mrmargolis has quit [Ping timeout: 256 seconds]
diegoaguilar_ has quit [Remote host closed the connection]
asmodlol has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
Rapier- has quit [Ping timeout: 256 seconds]
Rapier- has joined #ruby
Guest5450 has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
ebonics has joined #ruby
DapperFox has quit [Quit: Leaving...]
metalic has joined #ruby
jenrzzz has joined #ruby
<ebonics> i've never really used ruby and i have a ruby application i'd like to use as a web service. i need to interface between php and ruby, possibly via sockets or maybe RPC of some kind? is there some "go to" framework for deploying ruby backend services?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
baweaver has joined #ruby
Guest1421 has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
picasso has joined #ruby
fabrice31 has joined #ruby
trans_val has joined #ruby
yqt has joined #ruby
trans_val has quit [Client Quit]
ascarter has joined #ruby
n008f4g_ has joined #ruby
fabrice3_ has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
fabrice31_ has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
mrmargolis has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
NinjaOps has quit [Remote host closed the connection]
Zarthus has quit [Quit: This night will fall like any other, daylight subsides and shadows crawl.]
<wasamasa> time for phuby on phails!
fabrice31 has joined #ruby
Zarthus has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
freerobby has joined #ruby
Cust0sL1men has quit [Ping timeout: 256 seconds]
tek0011 has joined #ruby
<atmosx> ebonics: ... I can't believe you're asking that question seriously.
<GaryOak_> ebonics: depending on the complexity/security needs you could just run a subcommand
<maxmanders> A question of Gem style/structure: I'm developing some company specific tools for working with AWS. Let's say I have a module structure, e.g. foobar::{ec2,rds...}::backup. I'd like to use Thor to provide a CLI for working with difference services.
fabrice31_ has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
<maxmanders> Let's say I'd execute e.g. foobar ec2 backup scheduler --run or foobar ec2 backup worker --run
fabrice3_ has quit [Ping timeout: 250 seconds]
<tek0011> hey all. I am very new to Ruby, trying to pull some informaiton from registry. Its working, but my only question is how do I set notepadpp back to nil if it doesnt find an entry? https://gist.github.com/anonymous/12461efe50a683113a19
<maxmanders> I'd have a CLI object in the Foobar::Ec2::Backup module; should that extend a base Thor CLI object in Foobar? Hope that makes sense!
jph98 has joined #ruby
yh has quit [Ping timeout: 252 seconds]
<maxmanders> I guess without context - how would I go about structuring a CLI tool that could have different functionality in different modules; given the way Thor works, I'd guess the main bin/ script would exist in the top level module? But how do I go about implementing specific features in a submodule?
<atmosx> tek0011: line 11:=> unless regvalue.empty?
fabrice31_ has quit [Read error: Connection reset by peer]
<tek0011> atmosx: is that wrong?
<atmosx> tek0011: I never use 'and not' but shouldn't be.
yh has joined #ruby
<tek0011> atmosx: Ill try
<atmosx> tek0011: sure
j_mcnally has quit [Ping timeout: 245 seconds]
sargas has joined #ruby
<atmosx> maxmanders: thor is eomthing like optparser?
<ebonics> atmosx, what?
<shevy> atmosx ah ok so soon less than a year to wait :D
<ebonics> what do you mean asking it seriously
<atmosx> ebonics: Rails is the top framework for backend out there, what kind of answer did you expect on a #ruby channel? :-)
<ebonics> atmosx, i thought rails was mostly web shit
<atmosx> shevy: I have to start studying after August.
redjack1964 has joined #ruby
<atmosx> ebonics: oh wait, you said PHP so I thought it was web-based. sorry my bad.
phutchins1 has joined #ruby
asmodlol has quit [Ping timeout: 245 seconds]
<ebonics> atmosx, it is but i'm not running the service with ruby
<tek0011> atmosx: line 11? is that right?
<ebonics> i meman, im not serving pages with ruby
<ebonics> i just need to get some output from a separate ruby application
<atmosx> tek0011: no sorry, it's line 10
<shevy> atmosx what will you start? and for how long?
<shevy> sorry
<shevy> what will you *study
<tek0011> atmosx: I am new enough im still learning syntax. how exactly would that line look?
Kricir has quit [Remote host closed the connection]
<GaryOak_> atmosx: yeah it's an option parser
<atmosx> shevy: 5 subjects for 1 final exam (it's called state-exam). Well 2-3 months.
<shevy> ah cool
<ebonics> GaryOak_, you mean command line or what do you mean subcommand?
<shevy> I hope the topic won't be too boring to learn :)
JoshGlzBrk has joined #ruby
<atmosx> 2 ~ 4-5 hours per day should be enough, but I don't know if I can pull this out so I'm starting from Sept. 1 to have an extra month ahead
Dreamer3 has quit [Quit: Leaving...]
<GaryOak_> ebonics: where the PHP script would call the ruby script and return a result
bklane has joined #ruby
Dreamer3 has joined #ruby
<maxmanders> ebonics: I think I'm doing a terrible job of explaining myself!
<ebonics> GaryOak_, i need it to run separate from the php
ghr has joined #ruby
<atmosx> shevy: it's pharmacology, pharmacognosy, medicinal chemistry (this is one is a killer), social pharmacy and biopharmacy.
<shevy> atmosx yeah; I already know that I did not learn enough for tomorrow, it's my first try though, I get 3 more after that
<shevy> cool
<GaryOak_> ebonics: yeah the PHP would create a new bash shell and run the ruby script
ndrei has joined #ruby
<maxmanders> So, with Thor, you can do e.g. `command subcommand action`, e.g. 'aws ec2 describe-instances'. Each of those options are parsed, and not mapped to a particular module/class.
<ebonics> GaryOak_, that was my worst case scenario hehe
<shevy> will you have to use USCF chimeira plugin? that 3D modelling/viewing thingy
<ebonics> i was hoping there was some framework i could wrap the application in to interface with other services
fabrice3_ has joined #ruby
<GaryOak_> ebonics: oh lol, I didn't know the specifics, but otherwise you would need some server setup like you mentioned IPC
<maxmanders> But let's say I wanted to implement all of my 'ec2' functionality in its own gem - would I write all the code in that gem, require that gem in e.g. a 'aws' gem; and then use Thor with the required gem code?
<atmosx> shevy: haha not me, thankfully.
asmodlol has joined #ruby
<thatslifeson> sure maxmanders
<maxmanders> thatslifeson: thanks for the sanity check ;-)
<thatslifeson> lol, always helps to double check
lidenskap has quit [Remote host closed the connection]
<ebonics> yeah GaryOak_ :P was wondering if there was a framework for that
<ebonics> a "go to" one, rather
ProteusX has quit [Ping timeout: 244 seconds]
<maxmanders> I've written some trivial CLI gems before, but not something as ambitious as I'm planning, with related but disparate functionality in separate gems, all tied together in another gem!
kofione has quit [Quit: Leaving...]
Igorshp has joined #ruby
mrmargol_ has joined #ruby
<ebonics> maxmanders, idk anything about ruby but docker sounds like a good choice for what you want to do
<atmosx> maxmanders: that's not as complicated as you make it sound.
<thatslifeson> ^
AlphaAtom has joined #ruby
<thatslifeson> pretty straight forward
Brozo has joined #ruby
Guest50850 has quit [Read error: Connection reset by peer]
slash_nick has joined #ruby
<atmosx> maxmanders: you don't even need a gem or gems, although a gemfile would be handy... you need a an 'aws-script.rb' and a 'Gemfile' to run bundler on to install the gems in your system... that's about it.
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<atmosx> maxmanders: then you can make a module or class (or not even that if you don't like OO design) and manage your options/modules with optparser or Thor.
<maxmanders> atmosx: thatslifeson: ah, but you're pros I'm sure ;-) I think the key to getting it right is small, testable bits of code that I can use another script as a 'runner' for
ghr has quit [Ping timeout: 272 seconds]
<atmosx> maxmanders: just dive into it and you'll see, it's pretty straight forward.
<thatslifeson> i'm no pro :D
<atmosx> maxmanders: I'm not :-P I suck at programming.
<maxmanders> Can't beat a bit of positive encouragement - thanks!
freerobby has quit [Quit: Leaving.]
<atmosx> haha worry not maxmanders, I'm sure you'll be fine.
tvw has joined #ruby
<GaryOak_> ebonics: there's quite a few 'lightweight' HTTP frameworks you could run to create an API
mrmargolis has quit [Ping timeout: 245 seconds]
avahey has joined #ruby
<ebonics> GaryOak_, i don't really want to use http, i literally just need some damn thing that can accept one packet with some information then execute some code :P
<atmosx> ebonics: could you describe EXACTLY what do you wanna do (and not what do you want to do it).
Mohan__ has joined #ruby
Igorshp has quit [Ping timeout: 272 seconds]
<toretore> ebonics: if you have two processes that need to communicate, they are going to have to agree on a protocol, and that's what you have to figure out first
<wasamasa> ebonics: just execute a subprocess and maybe grab its output
<picasso> Hello all, I'm having an SSL problem with a specific website. I've tried downloading new PEM and CRT files with no luck. The site is https://view-api.box.com/ - maybe it has to do with their cert using deprecated SHA1 signatures? Anyway, I have a test program that you can run to see if it works for you: https://gist.github.com/pix0r/7d3d5d10c4bd1e026a76
<toretore> ebonics: then decide on the transport
<ebonics> wasamasa, yeah i can but i'd like to be able to manage the process
<picasso> ^ if anyone could try running that sample program i'd appreciate it greatly!
<wasamasa> ebonics: signals
<ebonics> toretore, i understand, i just want a framework for ruby RPC
<wasamasa> ebonics: what could possibly go wrong
mwlang has quit [Quit: mwlang]
<toretore> ebonics: how do you know you'll be able to use it from php?
cjim_ has joined #ruby
ProteusX has joined #ruby
<ebonics> toretore, i don't. that's why i'm asking the "go to" because i assume a language like ruby would have some interoperability hehe
<toretore> ebonics: precisely my point
<wasamasa> "go to"?
<wasamasa> are you high on marketing drugs?
<picasso> atmosx: works for you. thanks for checking
<toretore> ebonics: you have to define what sot of interoperability you need first
<ebonics> wasamasa, it's like "spring" for java, or casablanca for c++
<ebonics> most languages have a good framework for such things
<toretore> ebonics: can you interact with those from php?
<atmosx> picasso: I'm on mac, using rvm ruby-2.1.2p95
<ebonics> toretore, yep
<wasamasa> ebonics: these are web frameworks and help you in no way with process intercommunication
<ebonics> with sockets
fabrice3_ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
<toretore> ok, so... sockets?
<atmosx> toretore: you Italian?
<toretore> no
<ebonics> sure
<atmosx> toretore: why not?
<atmosx> :-(
<toretore> just use sockets then
<toretore> italy sucks
<atmosx> ebonics: use sockets
<atmosx> toretore: doesn't everything?
<tek0011> anyone able to help me figure out why if the regvalue isnt empty it complains. warning, I am very new to ruby. like last week. - https://gist.github.com/anonymous/63077bb53ca15d06294e
<ebonics> omfg
FrankD has joined #ruby
<ebonics> this channel is so bad
ebonics has left #ruby ["Leaving"]
<wasamasa> lol
<toretore> lol
towski_ has joined #ruby
<atmosx> wtf?
<wasamasa> how do you spot a great programmer?
<FrankD> Hi, I'm trying to get a console in a browser working -- are there any examples that use Ruby to accomplish this on the server side?
<tek0011> rather why if it is empty, i thought that it would be checking to see if the registry value isnt empty
<wasamasa> simple, they cannot even define their problem precisely
<shevy> you guys scared him away
<atmosx> wasamasa: hm, by the number of buzzwords he is using?!
<toretore> FrankD: be more specific
<wasamasa> also, I was about to link https://github.com/intridea/grape
kofione has joined #ruby
granthatcher has joined #ruby
<shevy> FrankD in javascript it should be use; in pure ruby, not sure... but I think there was _why's old page of interactive ruby in a browser; you can also ask on #opal, the guys should know. it's ruby for the browser there after all
gluten_hell has quit [Quit: Computer has gone to sleep.]
<shevy> erm
<shevy> in javascript it should be *easy
<FrankD> toretore, basically I just need a pipe, using term.js browser-side, so it should decode everything just fine if I send it 'as-is' -- however some things aren't working
gluten_hell has joined #ruby
<shevy> _why had an irb going over the browser, other people have picked up that code... I don't know the name of the projects though
<FrankD> ie I'm not getting a shell prompt, and stty isn't working (ioctl not working) so I can't set/get column/rows of the terminal
<toretore> FrankD: you want to send ruby code from the browser to the server, have the server execute it and send back the result?
<FrankD> toretore, no, sorry, I want to be running bash
j_mcnally has joined #ruby
<FrankD> I need the Ruby server that does lots of other things to be the intermediary
jobewan has quit [Quit: Leaving]
fabrice31_ has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
fabrice31 has quit [Read error: Connection reset by peer]
DerisiveLogic has joined #ruby
<FrankD> sorry, I thought console in a browser was explanatory, I guess it could be interpreted multiple ways :P
j_mcnally has joined #ruby
jack_rabbit has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
<FrankD> but let's say specifically forwarding bash and vt100 terminal sequences
<wasamasa> sounds like a pain to do
<wasamasa> sure nobody else did solve this yet?
<FrankD> I haven't found anything.. there's things out there for node :\
j_mcnally has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
<FrankD> maybe I have to look at termios
<wasamasa> !next
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j_mcnally has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
<FrankD> yea for Python
freerobby has joined #ruby
mrmargol_ has quit [Remote host closed the connection]
gluten_hell has quit [Ping timeout: 256 seconds]
j_mcnally has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
wallerdev has quit [Quit: wallerdev]
<shevy> :(
Senilinda has quit [Ping timeout: 264 seconds]
redjack1964 has quit [Remote host closed the connection]
j_mcnally has joined #ruby
<shevy> linking towards python
j_mcnally has quit [Max SendQ exceeded]
kadoppe has quit [Ping timeout: 264 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> it's not bash, but perhaps you can modify it to have bash run rather than irb
<FrankD> shevy, that's a lot easier since it doesnt have to deal with VT100 stuff
<shevy> hmm
j_mcnally has joined #ruby
bklane has quit [Remote host closed the connection]
<shevy> we need a RubyOS over the browser
mengu has joined #ruby
mengu has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
<atmosx> tek0011: I'm not sure what you're trying to do, or if your approach is semantically correct.
<atmosx> shevy: ... java-script?
<atmosx> :-P
baweaver has quit [Remote host closed the connection]
j_mcnally has joined #ruby
<shevy> naaaah
<shevy> we have opal!
j_mcnally has quit [Max SendQ exceeded]
kadoppe has joined #ruby
<atmosx> yeah apparently opal works... for a lot of people
<atmosx> never tried it though
<atmosx> I'm off to bed :-) night all
<shevy> cya
ta has joined #ruby
j_mcnally has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
j_mcnally has joined #ruby
<agarie> there's a project for interactive Ruby in a browser similar to IPython notebooks: https://github.com/sciruby/iruby
j_mcnally has quit [Max SendQ exceeded]
andikr has quit [Remote host closed the connection]
<agarie> it's very good for presentations in my experience
kraljev11 has joined #ruby
gluten_hell has joined #ruby
Pupeno_ has joined #ruby
Hijiri has quit [Ping timeout: 256 seconds]
Pupeno has quit [Ping timeout: 256 seconds]
<dudedudeman> man. i step away from my desk for one second and all the fun happens
rbennacer has joined #ruby
freerobby has quit [Quit: Leaving.]
j_mcnally has joined #ruby
danman has joined #ruby
<adaedra> too bad
bruno- has quit [Ping timeout: 244 seconds]
Mon_Ouie has joined #ruby
haxrbyte has quit [Remote host closed the connection]
bklane has joined #ruby
Brozo has quit [Remote host closed the connection]
dseitz has joined #ruby
coderkevin has quit [Quit: Connection closed for inactivity]
shadoi has joined #ruby
haxrbyte has joined #ruby
Musashi007 has joined #ruby
nettoweb has joined #ruby
kraljev11 has quit [Quit: kraljev11]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hijiri has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has quit []
haxrbyte has quit [Remote host closed the connection]
AlphaAtom has left #ruby [#ruby]
haxrbyte has joined #ruby
segfalt_ has joined #ruby
fabrice31 has joined #ruby
AlphaAtom has joined #ruby
metalic has quit [Quit: Leaving]
<dudedudeman> i'll get 'em next time
moeabdol has quit [Ping timeout: 255 seconds]
fabrice31_ has quit [Read error: Connection reset by peer]
segfalt has quit [Ping timeout: 264 seconds]
segfalt_ is now known as segfalt
willharrison has joined #ruby
pwattste has joined #ruby
moeabdol has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
codecop has quit [Remote host closed the connection]
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
pandaant has quit [Remote host closed the connection]
Brozo has joined #ruby
_djbkd has joined #ruby
Dopagod has quit [Ping timeout: 245 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
ponga has quit [Quit: Leaving...]
ismaelga has joined #ruby
haxrbyte_ has joined #ruby
ismaelga has quit [Remote host closed the connection]
fabrice31_ has joined #ruby
<Musashi007> what is this line of code doing? exercise_models.map(&:duration).inject :+
fabrice31 has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<apeiros> Musashi007: what parts do you understand? what parts do you have trouble with?
Liothen has quit [Ping timeout: 246 seconds]
Spami has quit [Quit: This computer has gone to sleep]
lidenskap has joined #ruby
j_mcnally has joined #ruby
fabrice31_ has quit [Read error: Connection reset by peer]
<agarie> Musashi007: the syntax `&:duration` is being used to call the method `duration` on each of the objects inside exercise_models
fabrice31 has joined #ruby
<crowell> it sums up all of the durations
haxrbyte has quit [Ping timeout: 272 seconds]
iwaffles has quit [Quit: iwaffles]
<Musashi007> @agarie the part confusing me was that duration is a method
<Musashi007> @agarie thank you
Matachines has quit [Quit: Textual IRC Client: www.textualapp.com]
<Musashi007> first one was to apeiros. sorry
Brozo has quit [Quit: Leaving...]
<agarie> when you ask a question like that, it's usually a good idea to be more specific :)
woodruffw has joined #ruby
<agarie> but don't worry
tomphp has joined #ruby
Soda has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 256 seconds]
asmodlol has quit [Ping timeout: 255 seconds]
Papierkorb_ has quit [Quit: Konversation terminated!]
<Musashi007> apologies
cgrieger is now known as cgrieger^away
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Musashi007> you nailed it actually because that was my lack of understanding - i thought ‘duration’ was an integer variable, not a method
freerobby has joined #ruby
Spami has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
lidenskap has quit [Ping timeout: 256 seconds]
Papierkorb has joined #ruby
Liothen has joined #ruby
davedev24_ has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
mengu has quit [Read error: Connection reset by peer]
nii236 has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
asmodlol has joined #ruby
<agarie> that line is expanded to `exercise_models.map { |exercise_model| exercise_model.duration }.inject { |accumulator, duration| accumulator + duration }`
<gambl0re> how would i get the sum of an array if the array is empty?
moeabdol has quit [Quit: WeeChat 1.1.1]
moeabdol has joined #ruby
bruno- has joined #ruby
jimeh has quit [Ping timeout: 265 seconds]
thesheff17 has quit [Ping timeout: 265 seconds]
alol___ has quit [Ping timeout: 265 seconds]
kofione has quit [Quit: Leaving...]
baweaver has joined #ruby
_chs_ has quit [Ping timeout: 265 seconds]
streaxy has quit [Ping timeout: 265 seconds]
crdpink2 has quit [Read error: Connection reset by peer]
xamut has quit [Ping timeout: 265 seconds]
cbetta has quit [Ping timeout: 265 seconds]
whoojemaflip has quit [Ping timeout: 265 seconds]
crdpink2 has joined #ruby
xamut has joined #ruby
cbetta has joined #ruby
davedev24_ has quit [Ping timeout: 264 seconds]
whoojemaflip has joined #ruby
_chs_ has joined #ruby
alol___ has joined #ruby
thesheff17 has joined #ruby
_chs_ is now known as Guest53865
x1337807x has joined #ruby
streaxy has joined #ruby
<bricker> gambl0re: return 0;
<bricker> (I don't understand what you're asking)
<agarie> me neither
<agarie> but I assume you have an empty array and you want to define its sum
jimeh has joined #ruby
<apeiros> gambl0re: ary.inject(0, :+)
<shevy> gambl0re an empty Array would be this: []
ascarter has joined #ruby
<apeiros> that'll give you 0 as a sume if ary is empty
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> *sum
ghr has joined #ruby
<shevy> >> [].inject(0, :+)
<ruboto> shevy # => 0 (https://eval.in/324625)
<shevy> This is very useful code.
davedev24_ has joined #ruby
chipotle has quit [Quit: cheerio]
<shevy> Why don't we have a .sum() method on class Array btw?
<bricker> shevy: [Object.new, Object.new].sum ?
rgb-one has joined #ruby
yfeldblum has quit [Remote host closed the connection]
snockerton has quit [Ping timeout: 255 seconds]
snockerton1 has joined #ruby
swgillespie has joined #ruby
towski_ has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
jrunning_ has quit [Read error: Connection reset by peer]
HashNuke has quit [Read error: Connection reset by peer]
incomprehensibly has quit [Read error: Connection reset by peer]
alekst_ has quit [Read error: Connection reset by peer]
cardoni has quit [Read error: Connection reset by peer]
<Musashi007> @agarie studying that line. thank you
wallerdev has quit [Client Quit]
vikram_ has quit [Read error: Connection reset by peer]
vikaton has quit [Read error: Connection reset by peer]
pskosinski has quit [Read error: Connection reset by peer]
jmhmccr has quit [Read error: Connection reset by peer]
cstrahan has quit [Read error: Connection reset by peer]
brb3 has quit [Read error: Connection reset by peer]
zipkid has quit [Read error: Connection reset by peer]
akitada has quit [Write error: Connection reset by peer]
rfv has quit [Read error: Connection reset by peer]
thesheff17 has quit [Read error: Connection reset by peer]
mdarby has joined #ruby
towski_ has joined #ruby
sfr^ has quit [Ping timeout: 265 seconds]
Shidash has quit [Ping timeout: 265 seconds]
<agarie> Musashi007: good luck. if there's something strange, just ask!
pwattste has quit [Quit: Textual IRC Client: www.textualapp.com]
snockerton1 has quit [Client Quit]
crdpink has joined #ruby
nii236 has quit [Ping timeout: 246 seconds]
jimeh has quit [Ping timeout: 265 seconds]
psmolen has quit [Ping timeout: 265 seconds]
constantinexvi has quit [Ping timeout: 265 seconds]
cschneid has quit [Ping timeout: 265 seconds]
ghr has quit [Ping timeout: 256 seconds]
bklane has quit [Remote host closed the connection]
Irki has joined #ruby
Ikri has quit [Ping timeout: 265 seconds]
<gambl0re> im running a test script the test is supposed to add the sum of an empty array and equal to 0
wallerdev has joined #ruby
epochwolf has quit [Ping timeout: 265 seconds]
hostess has quit [Ping timeout: 265 seconds]
Xiti` has joined #ruby
^mg^ has joined #ruby
<agarie> ...?
hostess has joined #ruby
cardoni has joined #ruby
<Musashi007> god it’s mind blowing what that line expands to
HashNuke has joined #ruby
brb3 has joined #ruby
mjuszczak has joined #ruby
cstrahan has joined #ruby
psmolen has joined #ruby
sfr^ has joined #ruby
Shidash has joined #ruby
jrunning_ has joined #ruby
crdpink2 has quit [Ping timeout: 265 seconds]
rfv has joined #ruby
<agarie> gambl0re: maybe putting your code in a gist will allow you to express your question more clearly :P
bklane has joined #ruby
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
alekst_ has joined #ruby
incomprehensibly has joined #ruby
marr has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
jimeh has joined #ruby
fabrice31_ has joined #ruby
vikram_ has joined #ruby
pskosinski has joined #ruby
zipkid has joined #ruby
shellfu has quit [Ping timeout: 265 seconds]
thesheff17 has joined #ruby
lidenskap has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mg^^ has quit [Ping timeout: 265 seconds]
Xiti has quit [Ping timeout: 265 seconds]
jmhmccr has joined #ruby
vikaton has joined #ruby
constantinexvi has joined #ruby
<dudedudeman> does anyone know how to find the timestamp of when a particular gem was installed?
fabrice31_ has quit [Read error: Connection reset by peer]
epochwolf has joined #ruby
cschneid has joined #ruby
fabrice31 has joined #ruby
failshell has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
yfeldblum has joined #ruby
lidenskap has joined #ruby
<Musashi007> if I want to only add the duration where type = ‘standing’ would the following work? : https://gist.github.com/anonymous/3cc268512c3f3ece9901
akitada has joined #ruby
Rapier- has quit [Quit: (null)]
Kricir has joined #ruby
granthatcher has quit []
<agarie> yes Musashi007
<agarie> that should do it
vikaton has quit [Client Quit]
vikaton has joined #ruby
<agarie> another way to approach the problem would be to first select the models and then map/inject
moeabdol has quit [Quit: WeeChat 1.1.1]
<weaksauce> gambl0re you aren't returning anything from sum, you shouldn't reuse variable names like that either.
<Musashi007> !!! thank you so much
<Musashi007> which would be more proper?
fabrice31_ has joined #ruby
<agarie> exercise_models.select { |model| model.type == 'standing' }.map { |model| model.duration }.inject { |accumulator, duration| accumulator + duration }
fabrice31 has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
<agarie> it depends -- I prefer the version with select/map/inject because I find it easier to reason about
<agarie> but you might find it harder, or something like that
<weaksauce> gambl0re look up compact and inject and you can do it in one line
<havenwood> Musashi007: If it's multiple things make it plural and for each iteration make it singular of the same subject. Like: numbers.each do |number|
<havenwood> >> [7, 11].each { 'no matter what is here, look at the return value from this statement' }
<ruboto> havenwood # => [7, 11] (https://eval.in/324663)
<havenwood> Musashi007: ^
<gambl0re> i didnt create the code. it's part of a rspec exercise im doing.
<havenwood> Musashi007: So you're currently returning `x` no matter what the `sum` is.
fabrice31 has joined #ruby
<Musashi007> workign on comprehending that
SouL_|_ has quit [Ping timeout: 255 seconds]
<agarie> I think these comments were aimed at gambl0re, not Musashi007 :P
dseitz has quit [Quit: bbl]
nobitanobi has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<agarie> btw, Musashi007, that code won't work if at least one exercise_model has a type != 'standing'
fabrice31_ has quit [Ping timeout: 256 seconds]
<Musashi007> that is undoutedly the case
<havenwood> Oops, yeah I got your gist confused with gambl0re, nvm me.
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qwertme has joined #ruby
platzhirsch has joined #ruby
<Musashi007> roughly 30 % are ‘standing.’ Also, do i have a syntax error there? It’s syntax erroring on the .duration }.inject (the first .)
<bricker> Do you guys think using private methods in an included module is a violation of the privacy methods?
<Musashi007> is that the case beucase if one is not equal to standing then it returns null?
<bricker> Using private methods from the base class, that is
ismaelga has joined #ruby
<Eiam> hmm. am I missing something in the syntax to map the split function over an array? .map(&:split("a"))
<Eiam> only works if its &:split
<apeiros> Eiam: that's not possible
<havenwood> Eiam: map { |s| s.split 'a' }
<Eiam> havenwood: yeah thats the easy one
<apeiros> & is a prefix to an argument
Soda has joined #ruby
<apeiros> and :split("a") is not valid as :split is not a function but a symbol
<bricker> There is an issue open in ruby that proposes a syntax that would allow this
<shevy> ack
<shevy> lemme close the issue!
<Eiam> bricker: that'd be nice
RegulationD has quit [Remote host closed the connection]
cryptarium has joined #ruby
<bricker> Eiam: they make some good points why it's not a perfect idea
failshell has joined #ruby
<havenwood> Eiam: in Crystal-lang on the other hand you can: map &.split("a")
<Eiam> well i like the idea of chaining them
edwinvdg_ has quit [Remote host closed the connection]
<bricker> havenwood: that's the exact syntax that was proposed
<Eiam> never heard of crystal
<havenwood> Eiam: You can use the funkify gem ;) https://github.com/banister/funkify#other-examples
<adaedra> You must me new in here >_>
<havenwood> ahuman_: hehe
<shevy> my brain would explode at map &.split("a")
<Eiam> adaedra: idle'd in here for years, activity goes on & off as my projects demand ruby or don't
<shevy> no wait actually
<shevy> that is just passing an argument right?
<shevy> in this case, I'd have to change my opinion and also support that issue request
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
asmodlol has quit [Ping timeout: 252 seconds]
<shevy> the . there threw me off
<shevy> &.
oz has quit [Ping timeout: 265 seconds]
Brozo has joined #ruby
danman has quit [Quit: danman]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
p8952 has quit [Excess Flood]
asmodlol has joined #ruby
p8952 has joined #ruby
yfeldblu_ has joined #ruby
DerisiveLogic has quit [Ping timeout: 256 seconds]
oz has joined #ruby
matchaw has quit [Ping timeout: 272 seconds]
JDiPierro has quit [Remote host closed the connection]
paulcsmith has quit [Ping timeout: 255 seconds]
Guest1421 has quit [Ping timeout: 256 seconds]
<Eiam> havenwood: haha, im ridiculously tempted
dblessing has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Eiam> havenwood: given the reason im even thinking like this is because of haskell
<havenwood> Eiam: ;)
shadoi has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 265 seconds]
<Eiam> but at a glance it looks like you ahve to add support to each class
workmad3 has joined #ruby
wallerdev has joined #ruby
<Eiam> so, gonna keep it as an interesting thought process, but not for production code
RegulationD has joined #ruby
paulcsmith has joined #ruby
Zai00 has joined #ruby
ldnunes has quit [Quit: Leaving]
fabrice31 has quit [Read error: Connection reset by peer]
failshell has quit [Ping timeout: 265 seconds]
baweaver has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
bklane has quit [Remote host closed the connection]
spider-mario has joined #ruby
fabrice31 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
bklane has joined #ruby
noname1 has quit [Ping timeout: 256 seconds]
bklane has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
bklane has joined #ruby
agarie has quit []
hephaestus_rg has joined #ruby
shellfu has joined #ruby
vdamewood has joined #ruby
EagleDelta has quit [Remote host closed the connection]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest1421 has joined #ruby
nobitanobi has joined #ruby
cranq has quit [Ping timeout: 276 seconds]
vdamewood has quit [Max SendQ exceeded]
vdamewood has joined #ruby
Brozo has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
barkerd427 is now known as zz_barkerd427
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
paulcsmith has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
paulcsmith has quit [Client Quit]
towski__ has joined #ruby
ascarter_ has joined #ruby
mengu has quit []
banister is now known as banisterfiend
vickleton has quit [Quit: Ex-Chat]
Rickmasta has joined #ruby
rbennacer has joined #ruby
noname1 has joined #ruby
fabrice31_ has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
bklane has quit []
jenrzzz has joined #ruby
towski_ has quit [Ping timeout: 256 seconds]
fabrice31_ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
slash_nick has quit [Ping timeout: 240 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tubuliferous_> Hey folks, I want to create a multi-dimensional hash in a loop...
<tubuliferous_> so basically I'm reading through a file and there are two pieces of information that I want to put into a two-dimensional hash...
<tubuliferous_> so every line has a value A and a value B...
gluten_hell has quit [Quit: Lingo - http://www.lingoirc.com]
<tubuliferous_> and I want to create a hash that is something like this...
Juanchito has quit [Quit: Connection closed for inactivity]
rbennacer has quit [Ping timeout: 240 seconds]
<tubuliferous_> this_hash[A][B] = nil
<tubuliferous_> the point is to be able to quickly look up B values in the context of A...
nobitanobi has quit [Remote host closed the connection]
<tubuliferous_> using has_key?
gluten_hell has joined #ruby
zz_barkerd427 is now known as barkerd427
<tubuliferous_> so after the hash is built I would do something like:
<tubuliferous_> <do something> if this_hash[this_A].has_key? this_test_B
asmodlol has quit [Ping timeout: 256 seconds]
allcentury has quit [Ping timeout: 256 seconds]
asmodlol has joined #ruby
cryptarium has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
jackjackdripper has joined #ruby
<eam> tubuliferous_: do you have a specific question about how to do that?
<tubuliferous_> Yes...
doodlehaus has quit [Remote host closed the connection]
<tubuliferous_> How do I construct a two-dimensional hash while reading the values for A and B from a file line-by-line
<tubuliferous_> I don't need to know how to read through the file...
<tubuliferous_> ok, so basically I want to know why this doesn't work:
<Eiam> please gist it
<Eiam> i have a feeling you are about to paste a block to my buffer
<Musashi007> is inject(:+) the same as inject :+
<tubuliferous_> hahaha
<eam> Musashi007: yes
<Musashi007> thx
woodruffw has quit [Quit: And then he took off.]
livinded has joined #ruby
<tubuliferous_> a,b = 1,2; my_hash=Hash.new; my_hash[a][b]=nil
woodruffw has joined #ruby
<livinded> If URI.(un)escape is now deprecated, what is the correct way to do escaping and unescaping of a URI?
mjuszczak has quit []
<weaksauce> tubuliferous_ why?
<eam> tubuliferous_: ruby hashes don't auto-vivify
<tubuliferous_> aha...
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tubuliferous_> I'm going to pretend I understand what "auto-vivify" means while I look it up...
<weaksauce> nil[b]=nil
chrishough has joined #ruby
<weaksauce> that's what's going on when you do my_hash[a]
<weaksauce> but why are you trying to do this?
<tubuliferous_> hmmm...
<eam> tubuliferous_: it means my_hash[a] has a value of nil, so you're doing nil[b] -- some languages (like Perl) will automatically create the sub-hashes
<tubuliferous_> ok...
<tubuliferous_> I see...
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> auto-creation of those nested hashes is called autovivification
<tubuliferous_> so the reason I want to do this...
jerius has quit [Quit: /quit]
<tubuliferous_> Is that I need to very quickly look up values in a particular scope...
<tubuliferous_> So what I'm doing is admittedly kind of stupid, but it should work...
<eam> what you're doing is fine
<tubuliferous_> If you want the gory details...
<tubuliferous_> ok, I'll leave out the gory details =)
<eam> a,b = 1,2; my_hash=Hash.new; my_hash[a] = Hash.new; my_hash[a][b] = nil
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tubuliferous_> sweet
scripore has joined #ruby
<weaksauce> I'd say to do it differently but that's just me
<tubuliferous_> how'd you do it, weaksauce?
<weaksauce> well in eam's case it would overwrite a everytime when you'd want to do something more like my_hash[a] ||= {}
<eam> well, yes, that's just a single-shot example
<weaksauce> the details are probably better abstracted in a class
<weaksauce> i figured eam just wanted to clarify your particular example for tubuliferous_
<tubuliferous_> yeah...but I'm a noob and I'm not really up on class-writing...
Rickmasta has joined #ruby
<weaksauce> class thing; end
<weaksauce> Thing
<weaksauce> Thing.new
<tubuliferous_> right
cranq has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
<tubuliferous_> got it =)
<eam> tubuliferous_: you can modify the Hash defaults to automatically contain nested hashes as well, but the syntax and behavior can be somewhat confusing
<tubuliferous_> Yeah, I'll avoid that, eam
<weaksauce> def scope_lookup(A,B); find_thing_in_db_or_hash_or_cache_or? end
<weaksauce> (a,b)
<weaksauce> ha
tvw has quit []
tvw has joined #ruby
<eam> >> lookup = Hash.new{ |h,k| h[k] = Hash.new(&h.default_proc) }; lookup["auto"]["matically"]["create"][:sub_hashes] = 1; lookup.inspect
<ruboto> eam # => "{\"auto\"=>{\"matically\"=>{\"create\"=>{:sub_hashes=>1}}}}" (https://eval.in/324832)
<tubuliferous_> oooo
duderonomy has quit [Ping timeout: 245 seconds]
asmodlol has quit [Ping timeout: 272 seconds]
mostlybadfly has joined #ruby
asmodlol has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
j_mcnally has joined #ruby
Peetooshock has quit [Remote host closed the connection]
cjim_ has quit [Quit: (null)]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Musashi007> Why am I getting a syntax error on: exercise_models.map { |exercise_model| if(exercise_model.type == "standing") exercise_model.duration }.inject { |accumulator, duration| accumulator + duration }
failshell has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
badhatter has quit [Read error: Connection reset by peer]
<weaksauce> you are missing an end somewhere
AlphaAtom has quit [Ping timeout: 246 seconds]
asmodlol has quit [Ping timeout: 246 seconds]
wldcordeiro__ has joined #ruby
Hijiri has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
DEA7TH has quit [Ping timeout: 240 seconds]
wldcordeiro_ has quit [Ping timeout: 256 seconds]
ag4ve_ has quit [Ping timeout: 248 seconds]
AlphaAtom has joined #ruby
umgrosscol has quit [Quit: Quit]
fabrice31 has quit [Read error: Connection reset by peer]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmodlol has joined #ruby
zorak8 has joined #ruby
icarus has joined #ruby
<Musashi007> I cannot for the life of me see it. maybe i should make the if(exercise_model.type == “standing” exercise_model.duration else nil }
<Musashi007> ?
fabrice31 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
zorak8 has quit [Client Quit]
TheHodge has joined #ruby
hsps_ has quit [Ping timeout: 246 seconds]
snockerton has joined #ruby
<bricker> Musashi007: Ruby isn't like most other languages where you can do single-line if statements
<Musashi007> no?
<havenwood> >> :ok if true
<ruboto> havenwood # => :ok (https://eval.in/324868)
barkerd427 is now known as zz_barkerd427
<bricker> Musashi007: If the if is before the statement, you *must* have an "end"
<bricker> havenwood: you know what I meant :P
<havenwood> bricker: yup
<bricker> Musashi007: anyways, you can use post-if like havenwood suggested
<bricker> or else you need an end
scripore has joined #ruby
scripore has quit [Client Quit]
<bricker> Musashi007: also, you're gonna want a compact in that line of code to get rid of the nils since you're adding with +
crus has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
Guest1421 has quit [Ping timeout: 256 seconds]
zzing has joined #ruby
<Musashi007> reading
axl_ has quit [Quit: axl_]
scripore has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
scripore has quit [Client Quit]
<rgb-one> Is Programming Ruby 1.9 (the Third Edition) free?
tuelz has quit [Ping timeout: 240 seconds]
nii236 has joined #ruby
dseitz has joined #ruby
<shevy> rgb-one hmm don't think so
<Musashi007> exercise_models.map { |exercise_model| if(exercise_model.type == "standing") exercise_model.duration end }.inject { |accumulator, duration| accumulator + duration }
<Musashi007> is what i need, then?
<rgb-one> shevy: That is the 4th edition
riotjone_ has joined #ruby
<gambl0re> what does should repeat (FAILED - 1) when running rspec??
<shevy> aha I see
<havenwood> rgb-one: Why do you want an old edition?
<shevy> looks as if the older one is no longer available from there rgb-one
<bricker> Musashi007: close, you need semi-colons if you really want it on one line like that. It would probably be better to do postif in this case
<gambl0re> what does FAILED -1 mean?
fabrice31_ has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
<rgb-one> havenwood: I am just looking for a free alternative
<havenwood> Musashi007: `if true; :ok end` or `:ok if true`
_djbkd has quit [Remote host closed the connection]
<bricker> gambl0re: The test failed, and it is the (nth) failure
<Musashi007> I want to follow the proper style but i’m working with someone else’s code.. I’ll look up semi colons
<bricker> of the suite
<Musashi007> why is it :ok ?
<bricker> Musashi007: postif would be most idiomatic here
<bricker> Musashi007: that was just an example
<havenwood> Musashi007: Just an example.
<havenwood> :terribly_wrong if true
<havenwood> there.
riotjones has quit [Ping timeout: 276 seconds]
* havenwood runs for the hills.
baweaver has quit [Remote host closed the connection]
<Musashi007> waht is the colon that precedes them though?
Stalkr^ has quit [Quit: Leaving...]
<havenwood> Musashi007: It's a colon. You could use a newline instead.
<havenwood> Semicolon rather.
<havenwood> Musashi007: Oh, the Symbol you mean?
enebo has quit [Quit: enebo]
<Musashi007> yes what is it indicating
<havenwood> >> :ok.class
<ruboto> havenwood # => Symbol (https://eval.in/324899)
<havenwood> Musashi007: It's a Symbol literal. Like stuff between quotes is a String literal.
<Musashi007> ok
<havenwood> >> "ok".to_sym.class
<ruboto> havenwood # => Symbol (https://eval.in/324900)
tuelz has joined #ruby
<havenwood> Musashi007: Nevermind that part, wasn't trying to complicate the example. :P
kobain has quit [Ping timeout: 272 seconds]
<havenwood> >> "ok" if true
<ruboto> havenwood # => "ok" (https://eval.in/324901)
mitchellhenke has quit [Quit: Connection closed for inactivity]
<havenwood> Musashi007: Amended example! ^
quimrstorres has joined #ruby
<Musashi007> haha.. ok
TTilus has quit [Ping timeout: 255 seconds]
FernandoBasso has joined #ruby
swgillespie has joined #ruby
<shevy> havenwood you coding anything interesting lately?
nii236 has quit [Ping timeout: 264 seconds]
<havenwood> shevy: Yeah!
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
zorak8 has joined #ruby
<havenwood> shevy: I have a super sekret project codenamed Ferret. :O
jack_rabbit has quit [Ping timeout: 272 seconds]
<havenwood> shevy: And I'm having fun learning Elixir.
<shevy> hmm Ferret
<shevy> that name inspires confidence
KrzaQ has quit [Read error: Connection reset by peer]
gluten_hell has quit [Quit: Computer has gone to sleep.]
<Musashi007> exercise_models.select { |model| model.type == 'standing' }.map { |model| model.duration }.inject { |accumulator, duration| accumulator + duration } So does this select the models of type standing into a map which sums the duration
baweaver has joined #ruby
<havenwood> Musashi007: there ya go!
KrzaQ has joined #ruby
<Musashi007> god i am _so_ slow
<havenwood> Musashi007: Do you really want to be doing that last #inject or do you mean that to be a #map?
<Musashi007> i need to re-lookup the difference
A205B064 has joined #ruby
Jinkins has joined #ruby
ghr has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Musashi007 has quit [Read error: No route to host]
TTilus has joined #ruby
<havenwood> shevy: Are you working on anything fun?
mistermocha has joined #ruby
musashi has joined #ruby
<shevy> havenwood hmm not sure... actually no, mostly just making small bug fixes; someone on #kde recently told me that KDE konsole also knows italic and underline, so I added that http://shevegen.square7.ch/screenshot.png
<shevy> I am still occupied mostly by rewrites that I never finished :(
<shevy> one day I will no longer have to do any rewrite at all!
Musashi007 has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
_djbkd has joined #ruby
somnium has quit [Ping timeout: 272 seconds]
sankaber has joined #ruby
workmad3 has joined #ruby
fabrice31_ has quit [Ping timeout: 272 seconds]
<GaryOak_> that feel when your multi-threaded ruby app server runs for multiple days under heavy load without memory leaking while keeping the CPU under heavy load
<shevy> you must have a bug
CloCkWeRX has joined #ruby
wallerdev has quit [Quit: wallerdev]
shellfu is now known as shellfu_afk
<GaryOak_> shevy: oh god probably
uri_ has joined #ruby
<shevy> a bug that made things better!
<shevy> a divine heisenbug
<GaryOak_> a reverse bug
<shevy> yeah
<dudedudeman> a gub?
wallerdev has joined #ruby
<shevy> I wonder how people in 100 years will look back at us
Rollabunna has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
someguy has quit [Quit: This computer has gone to sleep]
<dudedudeman> if society will even be around in 100 years?
<shevy> I think so
<GaryOak_> computers will be fundamentally different
<shevy> yeah
kobain has joined #ruby
Rollabunna has joined #ruby
<GaryOak_> like better architecture
<shevy> I wonder if the people will think of us as incompetent
<failshell> dunno if that exists, im looking for a gem that's able to diff 2 text files, while ignoring the N first lines
<shevy> there is this game called civilization
<shevy> I surrounded a tank with my chariot archers!
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjim_ has joined #ruby
gambl0re has quit [Remote host closed the connection]
<GaryOak_> failshell: just google ruby diff gem
<shevy> just because I did not invest into research and spent all the money from trade caravan routes on booze and girls instead
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<GaryOak_> failshell: a bunch of different gems comeup
gambl0re has joined #ruby
that1guy has joined #ruby
tuelz has quit [Read error: Connection reset by peer]
<GaryOak_> shevy: will the internet still exist in 100 years, or will the earth become a dead venuslike planet
bmurt has quit []
tuelz has joined #ruby
<GaryOak_> as all open air becomes hot enough to boil all the moisture into a gas
<shevy> GaryOak_ yeah the internet will be around and more important than today
Jinkins has quit [Quit: This computer has gone to sleep]
qwertme has joined #ruby
<shevy> perhaps there will be more localized subnets to get rid of stupid governments trying to do silly things
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Eiam_> shevy: think of it this way.. how do you think of the idiots from 100 years ago? thinking dumb shit like heroin was a good cure for cocaine addiction and so on? =)
<GaryOak_> something crazy is going to happen that will fundamentally change everything, like distributed finance networks, or that Tesla battery pack thing
<shevy> Eiam_ you mean -100 years from today? in 1915?
<GaryOak_> ruby will still exist
<Eiam> mm hmm
idealexit has joined #ruby
<shevy> Eiam_ I don't know about 100 years ago but I read those letters from Abraham Lincoln, and I thought them to be quite cool - bixby letter http://www.abrahamlincolnonline.org/lincoln/speeches/bixby.htm and the one I even like more, which he never sent though http://www.lettersneversent.com/pages/about/
baweaver has quit [Remote host closed the connection]
<Eiam> shevy: many things that people did 100 years ago we recognize to be pretty stupid. marie curie was messing around with xrays just shy of 100 years ago and did some pretty dumb stuff
<shevy> oh yeah
<Eiam> radium girls? 1917.
<shevy> GaryOak_ I dunno... imagine if some huge breakthrough happens
<Eiam> so im fairly certain in 100 years our great grand children will think we were gibbering morons
<shevy> with programming becoming much simpler even than in ruby, while being insanely much faster
baweaver has joined #ruby
icebourg has quit []
zz_barkerd427 is now known as barkerd427
cjim_ has quit [Quit: (null)]
rgb-one has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
barkerd427 is now known as zz_barkerd427
<GaryOak_> I think the next breakthrough is cheap energy
zz_barkerd427 is now known as barkerd427
<GaryOak_> that's portable and renewable
Irki has quit [Remote host closed the connection]
Ikri has joined #ruby
<shevy> hmm
<shevy> probably
<GaryOak_> like fusion power or something
tek0011 has quit [Ping timeout: 246 seconds]
<shevy> aha
<shevy> I thought you meant small sacle
<shevy> scale
ag4ve_ has joined #ruby
<GaryOak_> You could have small scale fusion plants
<shevy> I am still interested in seeing really intelligent AI
<GaryOak_> Ahh
workmad3 has quit [Ping timeout: 252 seconds]
<shevy> in 100 years that should be doable no?
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Eiam> another note, a lot of societies predictions from 100 years ago were.. really bad.
<GaryOak_> I think that's the next thing, like research bots, that make research much faster
<Eiam> like, way way off. I wouldn't hold my breath =)
turtil has joined #ruby
<GaryOak_> Most predictions forget to factor in politics and religion
<GaryOak_> and the fact that a lot of technological advancement happens because of military conflict
<Eiam_> Yeah nothing like some Unit 731's to really jump technology forward
failshell has quit []
thatslifeson has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hijiri has quit [Ping timeout: 250 seconds]
<GaryOak_> Nowadays it's about business interests first, if they can capitalize off of the tech
<GaryOak_> That's part of why computers took off in the 80's, and why AI will probably flourish
crus has joined #ruby
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Eiam> businesses are just interested in making money
<mozzarella> you guys are wrong about everything
<Eiam> not furthering humanity
x1337807x has joined #ruby
<Eiam> mozzarella: no u
baweaver has quit [Remote host closed the connection]
allcentury has joined #ruby
doodlehaus has joined #ruby
<shevy> mozzarella will exist in 100 years, I am sure about that
<shevy> most food products will probably still exist in 100 years
<shevy> perhaps even Soylent Green
that1guy has quit [Quit: This computer has gone to sleep]
asmodlol has quit [Ping timeout: 252 seconds]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Brozo has joined #ruby
asmodlol has joined #ruby
lidenskap has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
somnium has joined #ruby
<eam> GaryOak_: solar + battery
<GaryOak_> or any other type of energy + battery
mitchellhenke has quit [Client Quit]
<eam> well, other types of energy like coal wouldn't quite be next-gen would tehy
quimrstorres has quit [Remote host closed the connection]
<GaryOak_> but like riding a bike to power your house or something
<havenwood> I've heard rumor that at certain hours if you go outside and look up there'll be a massive fusion generator.
<GaryOak_> WHAT!
kofione has joined #ruby
rgb-one has joined #ruby
<eam> I mean any direction you look there's a massive fusion generator
bamorim has quit [Ping timeout: 256 seconds]
<Eiam> portable, dense, cheap energy.. yeah
<shevy> there will probably be more efficient storage devices, considering the whole notion of miniaturization or however that word is spelled
lidenskap has joined #ruby
lidenskap has quit [Remote host closed the connection]
<shevy> GaryOak_ people are way too lazy to do exercise like that!
lidenskap has joined #ruby
<eam> shevy: well just in the last decade there've been a series of massive improvements in energy storage
<shevy> yeah
<eam> remember back before cheap lithium batteries? NiCAD?
<shevy> we are going down to the molecular level!
mary5030 has joined #ruby
<eam> NiMH, battery memory? Charge for 8 hours use for 30 minutes?
<shevy> YES
jph98 has quit [Quit: jph98]
<shevy> THAT MADE ME ANGRY
<shevy> or even better
<shevy> charge for hours, leave it alone
<shevy> use for 10 minutes!!!
<eam> oh yeah, you gotta charge it 12 hours before using it
<eam> duh
<shevy> especially as it got older and older
scripore has joined #ruby
gambl0re has quit [Remote host closed the connection]
<eam> solar is getting stupid cheap, I might buy an array soon
gambl0re has joined #ruby
mitchellhenke has joined #ruby
mdarby has quit [Read error: Connection reset by peer]
ph8 has quit [Ping timeout: 256 seconds]
<Eiam> if you wait longer, it'll get cheaper!
<Eiam> our names.. so close..
mary5030 has quit [Remote host closed the connection]
magicien has quit [Ping timeout: 276 seconds]
mdarby has joined #ruby
juanpablo__ has quit [Quit: (null)]
juanpablo__ has joined #ruby
<shevy> yeah
<shevy> eiam and eam
juanpablo__ has quit [Read error: Connection reset by peer]
<eam> Eiam: yeah, but as soon as it's cheaper than the utility I'm willing to pull the trigger :)
hephaestus_rg has left #ruby [#ruby]
Deele has quit [Ping timeout: 256 seconds]
nii236 has joined #ruby
gambl0re has quit [Remote host closed the connection]
gambl0re has joined #ruby
mdarby has quit [Read error: Connection reset by peer]
mdarby has joined #ruby
Raverix has quit [Read error: Connection reset by peer]
magicien has joined #ruby
Raverix has joined #ruby
someguy has joined #ruby
Raverix has quit [Read error: Connection reset by peer]
ph8 has joined #ruby
nii236 has quit [Ping timeout: 272 seconds]
Raverix has joined #ruby
spider-mario has quit [Remote host closed the connection]
tcrypt has quit [Remote host closed the connection]
Lucky__ has quit [Quit: Textual IRC Client: www.textualapp.com]
Brozo has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
mitchellhenke has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
mitchellhenke has joined #ruby
beneggett has quit [Ping timeout: 255 seconds]
mdarby has quit [Max SendQ exceeded]
baweaver has joined #ruby
platzhirsch has quit [Quit: Leaving.]
ghr has quit [Ping timeout: 256 seconds]
mdarby has joined #ruby
tuelz has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
simpyll has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
tuelz has joined #ruby
mistermocha has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
Matachines has joined #ruby
toretore has quit [Ping timeout: 276 seconds]
toertore has joined #ruby
kofione has quit [Read error: Connection reset by peer]
someguy has quit [Quit: This computer has gone to sleep]
Brozo has joined #ruby
x1337807x has joined #ruby
thatslifeson has joined #ruby
someguy has joined #ruby
kobain has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
thatslifeson has quit [Read error: Connection reset by peer]
<gambl0re> if i have array = ["hello", "bye"] and i put array[0] it prints "h". how can i make it so that it prints "hello"
thatslifeson has joined #ruby
<Eiam_> > %w{hello bye}.first
<Radar> wat
<Radar> >> array = ["hello", "bye"]; puts array[0]
<ruboto> Radar # => hello ...check link for more (https://eval.in/325065)
<Eiam_> also
<Eiam_> yeah ^ he beat me to it
<Radar> gambl0re: Show us the exact code please. It doesn't output "h" in the above example.
<Eiam_> you sure you don' thave "hello"[0] ?
thatslifeson has quit [Read error: Connection reset by peer]
<Eiam_> (cause that does output 'h')
<gambl0re> puts array[0] will give me "h"
Brozo has quit [Remote host closed the connection]
jtdowney has joined #ruby
thatslifeson has joined #ruby
SHyx0rmZ has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
bruno- has quit [Ping timeout: 252 seconds]
Pupeno has joined #ruby
<Eiam_> gambl0re: Radar just showed that code and it does not give "h". can you please show your code?
thatslif_ has joined #ruby
mjuszczak has joined #ruby
<gambl0re> all i did was ===> array = ["morning","afternoon","evening"]
<Radar> gambl0re: No, you didn't.
<gambl0re> and i want to print out index 0 string
thatslifeson has quit [Ping timeout: 255 seconds]
<gambl0re> ??
<Radar> gambl0re: In an irb session, it that would show "morning" as the return value of array[0]
qwertme has quit [Quit: Textual IRC Client: www.textualapp.com]
<Radar> gambl0re: If you're going to continue to show us bullshit code then we won't give you help.
zzing_ has joined #ruby
zzing has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
mdarby has quit [Ping timeout: 256 seconds]
<gambl0re> this what i did actually..====> x = ["morning afternoon evening"] ===> x.split ====> x[0] ====> then it gave me "m"
gambl0re has quit [Remote host closed the connection]
Matachines has quit [Quit: Textual IRC Client: www.textualapp.com]
MatthewsFace has quit [Remote host closed the connection]
kyrylo has quit [Ping timeout: 256 seconds]
<Eiam> heh, and what you did is not what you said
<Eiam> NoMethodError: undefined method `split' for ["morning afternoon evening"]:Array