havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
mjora7 has joined #ruby
aryaching has quit [Ping timeout: 268 seconds]
jcao219 has joined #ruby
aryaching has joined #ruby
Cohedrin has joined #ruby
Cohedri__ has quit [Ping timeout: 258 seconds]
Toledo has joined #ruby
Toledo is now known as croberts
paparas has quit [Ping timeout: 260 seconds]
d^sh has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
Cohedri__ has joined #ruby
<Radar> I would hope your colleagues would suggest an alternative rather than just dismissing it.
Cohedrin has quit [Ping timeout: 264 seconds]
jroess has joined #ruby
bairyn has joined #ruby
marr has quit [Remote host closed the connection]
JoshS has joined #ruby
NeoMalachi has quit [Ping timeout: 260 seconds]
cagomez has quit []
gusrub has joined #ruby
eb0t has quit [Quit: WeeChat 1.4]
herbmillerjr has joined #ruby
bronson has quit [Remote host closed the connection]
bataii has joined #ruby
rkellermeyer has joined #ruby
bataii has quit [Client Quit]
Puffball has joined #ruby
Jayson_Virissimo has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
amclain has quit [Quit: Leaving]
mim1k has joined #ruby
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
GodFather_ has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
cdg has quit [Remote host closed the connection]
skade_ has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
tvw has quit [Remote host closed the connection]
brent__ has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
randomguy has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
skade_ has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
Guest96 has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
bronson has joined #ruby
Guest96 has joined #ruby
antib has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
cschneid_ has joined #ruby
User458764 has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
destroy`` has quit [Ping timeout: 245 seconds]
Cohedri__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
d^sh has quit [Ping timeout: 260 seconds]
TreyG has quit [Ping timeout: 268 seconds]
Mia has quit [Read error: Connection reset by peer]
TreyG has joined #ruby
d^sh has joined #ruby
oleo has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
patr0clus has quit [Read error: Connection reset by peer]
patr0clus has joined #ruby
bronson has quit [Remote host closed the connection]
TreyG has quit [Ping timeout: 268 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
marxarelli is now known as marxarelli|afk
Jayson_Virissimo has quit []
Bock has joined #ruby
Bock has quit [Max SendQ exceeded]
Bock has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
patr0clus has quit [Quit: WeeChat 1.4]
bataii has joined #ruby
bataii has quit [Client Quit]
c_nick has joined #ruby
<c_nick> Hi .. I used Ruby 2.3.3 and installed the sqlite3 gem, the gem gets installed but it fails for sqlite3_adapter, i have downloaded the libsqlite3.dll from sqlite3 website and copied it in the C:\WIndows directory. When i try with Ruby 2.0 everything works fine. Even Ruby 2.2.6 does not work
jcao219 has quit [Ping timeout: 260 seconds]
<c_nick> Note: This is on WIndows'
gusrub has quit []
Lucky_ABA has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
VladGh_ has joined #ruby
VladGh has quit [Read error: Connection reset by peer]
t-recx has quit [Quit: t-recx]
brent__ has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
skade_ has joined #ruby
Pumukel has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Quit: Lost terminal]
jenrzzz has joined #ruby
skade_ has quit [Ping timeout: 264 seconds]
Guest96 has quit [Remote host closed the connection]
Azure|dc is now known as Azure
banisterfiend has joined #ruby
gizmore has joined #ruby
Guest96 has joined #ruby
patarr has joined #ruby
cschneid_ has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
<banisterfiend> anone here familiar with oauth 1.0 ?
jcao219 has joined #ruby
codefromhell has quit [Ping timeout: 260 seconds]
jroess has quit [Remote host closed the connection]
libastral has joined #ruby
rkellermeyer has quit [Ping timeout: 240 seconds]
y2mq37 has joined #ruby
iliketurtles has joined #ruby
enterprisey has joined #ruby
Channel6 has joined #ruby
jameser has joined #ruby
grymmjack has quit [Quit: Going offline, see ya! (www.adiirc.com)]
skweek has joined #ruby
genpaku has quit [Remote host closed the connection]
bronson has joined #ruby
genpaku has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 240 seconds]
enterprisey has quit [Quit: Leaving]
haylon has quit [Quit: haylon]
__Yiota has joined #ruby
TreyG has joined #ruby
__Yiota has quit [Client Quit]
mim1k has joined #ruby
bataii has joined #ruby
juiko has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
JeanCarloMachado has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
skade_ has joined #ruby
__Yiota has joined #ruby
TreyG has quit [Ping timeout: 240 seconds]
gaucheph has quit [Quit: Zzzz...]
skade_ has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
destroy`` has joined #ruby
Puffball has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Puffball has joined #ruby
JeanCarloMachado has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
__Yiota has quit [Client Quit]
c_nick has quit [Quit: ciaos]
xall has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
Silthias has joined #ruby
bronson has joined #ruby
Silthias1 has quit [Ping timeout: 268 seconds]
skweek has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
Silthias has quit [Ping timeout: 268 seconds]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
jhack_ has quit [Quit: Leaving]
QpQ4__ has joined #ruby
Silthias has joined #ruby
patarr has joined #ruby
mim1k has joined #ruby
Pumukel has joined #ruby
TreyG has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
patarr has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
skade_ has joined #ruby
perniciouscaffei has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
skade_ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
sp4rrow has joined #ruby
destroy`` has quit [Ping timeout: 245 seconds]
gix has quit [Ping timeout: 240 seconds]
tohuw has joined #ruby
tohuw has joined #ruby
tohuw has quit [Changing host]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
bataii has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
gix has joined #ruby
JeanCarloMachado has joined #ruby
drcode has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
patarr has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
Jayson_Virissimo has joined #ruby
drcode has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
eljimbo has joined #ruby
wheatand has quit [Quit: Leaving.]
Ellimist has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
conta has quit [Read error: Connection reset by peer]
conta has joined #ruby
y2mq37 has quit [Read error: Connection reset by peer]
y2mq37 has joined #ruby
Channel6 has quit [Quit: Leaving]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
enterprisey has joined #ruby
Ellimist has joined #ruby
Guest96 has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
Ellimist has quit [Remote host closed the connection]
Guest96 has joined #ruby
juiko has quit [Remote host closed the connection]
skade_ has joined #ruby
QpQ4__ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
QpQ4 has joined #ruby
mniip has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
skade_ has quit [Ping timeout: 264 seconds]
bronson has quit [Remote host closed the connection]
Jayson_Virissimo has quit []
JeanCarloMachado has joined #ruby
skade_ has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
omarek has joined #ruby
skade_ has quit [Ping timeout: 246 seconds]
Silthias1 has joined #ruby
JeanCarloMachado has joined #ruby
charliesome has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
charliesome has quit [Client Quit]
enterprisey has quit [Remote host closed the connection]
nesoi has joined #ruby
<nesoi> hello, how do I install a local gem file in ruby (on windows if that matters)?
<nesoi> it's actually an update to an existing gem file that I have installed
<baweaver> What have you tried?
JeanCarloMachado has quit [Ping timeout: 240 seconds]
<nesoi> gem install —local ./gemname
Silthias1 has quit [Ping timeout: 240 seconds]
<nesoi> while in the root directory of the gem
<baweaver> and that didn't work?
<nesoi> ERROR: Could not find a valid gem './gem-name' (>=0) in any repository
<baweaver> look at that error
<baweaver> those are two different names
<nesoi> I am not a ruby guy so it isn't informative to me
<nesoi> sorry
<baweaver> gemname vs gem-name
<nesoi> I mistyped
<baweaver> gotcha
<nesoi> it was gem-name in both cases
<baweaver> making sure
<baweaver> gem install --user-install gem_name
<nesoi> not gem-name.gemspec right?
<baweaver> have you built it at all?
<baweaver> gem build gemspec
<baweaver> gem install name-0.0.1.gem
<nesoi> I got it from a repo that has it built already
<nesoi> so there is a .gemspec file there
<baweaver> gem != gemspec
<nesoi> it's a directory with subdirectories bin lib and spec
<baweaver> ?
<nesoi> gem install seems to be searching the internet not looking locally
<nesoi> it came back with alternatives from other repos
Komic_ has quit [Ping timeout: 268 seconds]
<baweaver> gem build gemspec
Pumukel has joined #ruby
<nesoi> I just downloaded the zip file and unzipped it
<nesoi> now am trying to install. it updates a previous version of this gem
<baweaver> gem build ruby-mws.gemspec
<baweaver> make sure to increment the version
JeanCarloMachado has joined #ruby
<nesoi> not sure how to do that
<baweaver> you add one to it
<nesoi> maybe best to uninstall the original gem?
<baweaver> or that
<nesoi> I tried gem build ruby-mws.gemspec and it returned Invalid gemspec in [ruby-mws.gemspec-: no such file or directory - git ls-files
<nesoi> ERROR: error loading gemspec. aborting
<baweaver> read what I just said
<baweaver> gem build ruby-mws.gemspec
<baweaver> do that
<baweaver> exactly that
<nesoi> that's the error message I got doing exactly that
<nesoi> thanks for helping btw
<baweaver> it's because you downloaded it as a zip file
<baweaver> do you know how to use git?
<baweaver> what OS are you on?
wheatley has joined #ruby
<nesoi> windows, but the zip file should be ok no?
<baweaver> Look up how to install Git for your OS
<nesoi> I have git on it
<baweaver> The gemspec is trying to use git
<baweaver> you'll likely have to modify the gemspec file to not do that
<baweaver> Yeah, it's an older gem, one sec, looking for the non-git version
VladGh_ has quit [Ping timeout: 268 seconds]
Pumukel has quit [Ping timeout: 255 seconds]
<baweaver> Dir.glob("**/*") would get all files
<baweaver> for whatever reason git isn't recognized on your box
y2mq37 has quit [Read error: Connection reset by peer]
y2mq37 has joined #ruby
<baweaver> the faster way though is to make git work on there
<baweaver> too many shenanigans some times
rkazak has quit [Quit: Sleep.....ing....]
dionysus69 has joined #ruby
madhatter has quit [Quit: brb]
<nesoi> so what should I do???
madhatter has joined #ruby
<nesoi> can I point gem install to that repo?
<nesoi> hm. yeah 'git' isn't working from the command line
<baweaver> see the specific_install bit
xall has quit [Ping timeout: 268 seconds]
hays_ has joined #ruby
hays_ has joined #ruby
hays_ has quit [Changing host]
<nesoi> right I tried that
<nesoi> or some of it
<nesoi> not sure what to do really
<nesoi> I should be able to install it from the local copy no?
<baweaver> to do that you need git
JeanCarloMachado has quit [Ping timeout: 268 seconds]
<baweaver> otherwise it's not going to build
<baweaver> either that or to replace the git ls-files with something equivalent
<baweaver> like Dir.glob("**/*")
<nesoi> unknown command specific_install
JeanCarloMachado has joined #ruby
<baweaver> the number of stupid things with Windows support for Ruby....
<nesoi> not sure what I would do with that
<nesoi> the previous version is installed though
<nesoi> so it should be possible to install this update
<baweaver> Why not use a more maintained gem like https://github.com/hakanensari/peddler >
<nesoi> I have code that uses this gem and I just need the update
<baweaver> does it have a gemfile?
<baweaver> because you can point to a directory with that
<nesoi> does what have a gemfile?
<baweaver> the code that uses it
<nesoi> there's a Gemfile in this update I'm trying to install
<baweaver> still though, a 4-5+ year old gem with little to no updates is potentially risky
marlinc has quit [Ping timeout: 240 seconds]
<nesoi> it was updated last December
<nesoi> so how do I install it with the Gemfile?
<baweaver> bundle install
VladGh has joined #ruby
<nesoi> ?
jcao219 has joined #ruby
<nesoi> bundle is not recognized as an internal or external command
<baweaver> gem 'gemname', path: 'path'
<baweaver> in the gemfile
<Radar> Did you "gem install bundler" first?
<baweaver> so in command line you can't run bundle?
<Radar> #snipe
<baweaver> !cookie Radar
<baweaver> ...
<baweaver> ?cookie
<ruby[bot]> here's your cookie: 🍪
<nesoi> no, because I didn't know about bundler
<nesoi> so now that I installed bundler?
<baweaver> add that above to your gemfile in your code
<baweaver> also, if possible, I would avoid using Windows for Ruby.
y2mq37 has quit [Ping timeout: 255 seconds]
balazs has quit [Remote host closed the connection]
<baweaver> There are a lot of very interesting quirks.
JeanCarloMachado has quit [Ping timeout: 240 seconds]
<nesoi> ok, so put in the gemfile
<baweaver> Most of the community use Unix-like OS's, meaning they rarely think about Windows users
<nesoi> gem 'gemname', path: 'local path to base directory on the current machine' ?
<baweaver> now if you run `bundle install` it'll grab that
marlinc has joined #ruby
<baweaver> yep
<baweaver> absolute path
<nesoi> I will move it to osx after I get this working
JeanCarloMachado has joined #ruby
<baweaver> Radar wrote an entire guide on that one (that I'm too lazy to google. Help a brother out Radar?)
<Radar> baweaver: I did? You mean how to build a gem?
<baweaver> Ruby OSX
<Radar> Ah.
<baweaver> We should make a command for that already
<nesoi> so put it under gemspec or where?
<baweaver> the line from above? no, Gemfile
<nesoi> within the Gemfile
<nesoi> where should it go?
anisha has joined #ruby
<baweaver> Just put it at the end of the file
<baweaver> make sure you use the gem name and the directory there
<baweaver> and if it's in gemspec remove it.
enterprisey has joined #ruby
<nesoi> there is gemspec
<nesoi> then under that a bunch of gem 'name'
<baweaver> Yeah, add it under those
nadir has quit [Quit: Connection closed for inactivity]
<baweaver> if that gem name is in the gemspec itself though, remove it so it defaults to the Gemfile
<nesoi> it's not
<nesoi> so should I just delete the entire directory under gems which contains the old version or is there a better way to remove it?
<baweaver> no
QpQ4 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<nesoi> no I shouldn't or no there's not a better way?
<baweaver> ...
<baweaver> trying to parse that statement
JeanCarloMachado has quit [Ping timeout: 240 seconds]
<baweaver> why do you think you need to delete that entire directory?
<nesoi> because it may be the same version #
<nesoi> and I don't want it to be confused
<baweaver> bundler keeps things scoped to a directory
enterprisey has quit [Remote host closed the connection]
<baweaver> i.e. if your Gemfile points elsewhere it sources from there
<baweaver> and it'll also take github links
<baweaver> see link above
<nesoi> right, but I don't want two gems with the same name
<nesoi> so I definitely want to get rid of the old version
<baweaver> it won't matter with bundler, leave it be for now
<nesoi> so wait I have to specify it differently in my code?
JeanCarloMachado has joined #ruby
<nesoi> so bundle Gemfile?
<baweaver> just bundle install in that directory
<nesoi> I have a directory containing the unzipped gem
<baweaver> as long as the Gemfile specifies a different path to that gem it'll go there to find it
y2mq37 has joined #ruby
<nesoi> in that directory I should type "bundle install"?
<baweaver> no
<nesoi> or "bundle install Gemfile"?
<baweaver> in your application that's using it
<baweaver> no
<nesoi> all the gems are in the ruby directory now
destroy`` has joined #ruby
Silthias has joined #ruby
<nesoi> none are in the application directory
<baweaver> that has nothing to do with anything we've just been going over
<baweaver> Ok, so from the top then...
<baweaver> Application Foo requires Gem Bar that's local
bataii has joined #ruby
<nesoi> thanks
<baweaver> in the Gemfile of Application Foo you want to edit its Gemfile to point to your local Gem Bar
<nesoi> and which has been working
<nesoi> application foo has no Gemfile
bataii has quit [Client Quit]
<baweaver> Then it needs one
<nesoi> it's just a ruby program
<nesoi> I just want to update this gem as it was
<nesoi> it's under gems in the ruby directory
VladGh has quit [Ping timeout: 260 seconds]
<baweaver> That's irrelevant
<baweaver> forget your gem directory
VladGh has joined #ruby
<baweaver> Make sure your Ruby script is in its own directory, and add a Gemfile to it to make sure it points to that
<nesoi> this has worked fine for years
<nesoi> I just need a new version of this gem to be available
<nesoi> I don't want to make any changes to the existing app
Pumukel has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
bataii has joined #ruby
<foxmask> bonjello
Silthias has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
sp4rrow_ has joined #ruby
sp4rrow has quit [Ping timeout: 268 seconds]
Silthias has joined #ruby
<hays_> is there any hope that ruby will get things like pandas, numpy, scipy, matplotlib, sklearn, etc
JeanCarloMachado has joined #ruby
xall has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
<nesoi> baweaver: I think I got it to work by just copying the entire directory over the old one
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Silthias has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
Silthias has joined #ruby
<nesoi> thanks for the peddler link
JeanCarloMachado has quit [Ping timeout: 240 seconds]
vali has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
sp4rrow_ has quit [Quit: The Internet needs a break and I need a cookie]
duderonomy has joined #ruby
ttilley has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
Ellimist has joined #ruby
Silthias has joined #ruby
interki has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
xall_ has joined #ruby
xall has quit [Ping timeout: 268 seconds]
patarr has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
Silthias has quit [Ping timeout: 264 seconds]
Pumukel has quit [Remote host closed the connection]
last_staff has joined #ruby
JeanCarloMachado has joined #ruby
patarr has quit [Ping timeout: 264 seconds]
Silthias has joined #ruby
valentinul has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
vali has quit [Ping timeout: 255 seconds]
Burgestrand has joined #ruby
wheatley has quit [Ping timeout: 255 seconds]
SteenJobs has joined #ruby
foxmask has quit [Quit: Le free de la passion http://foxmask.trigger-happy.eu]
foxmask has joined #ruby
Silthias has quit [Ping timeout: 268 seconds]
vondruch has joined #ruby
Burgestrand has quit [Client Quit]
yogg-saron has joined #ruby
JeanCarloMachado has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
JeanCarloMachado has joined #ruby
vali has joined #ruby
valentinul has quit [Ping timeout: 260 seconds]
djbkd_ has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
y2mq37 has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Ping timeout: 258 seconds]
xall_ has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
Silthias has joined #ruby
bataii has quit [Quit: Textual IRC Client: www.textualapp.com]
jgnagy_ has quit [Remote host closed the connection]
xall_ has joined #ruby
skweek has joined #ruby
mjora7 has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
jameser has quit [Ping timeout: 268 seconds]
jameser has joined #ruby
Silthias has joined #ruby
grh has joined #ruby
hays_ has quit [Ping timeout: 268 seconds]
jameser has quit [Max SendQ exceeded]
JustJosh has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
jameser has joined #ruby
djbkd_ has quit [Remote host closed the connection]
Silthias has quit [Ping timeout: 240 seconds]
kristofferR has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
mikecmpbll has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Client Quit]
Silthias has joined #ruby
mark_66 has joined #ruby
Pumukel has joined #ruby
<JustJosh> Does anybody have tips for setting up a local environment to contribute to Ruby Core?
<JustJosh> I've only contributed once before, I added Array#prepend and Array#append
andikr has joined #ruby
<JustJosh> But testing changes was a pain, since I had to install from source each time.
Pumukel has quit [Remote host closed the connection]
jeyraof^mbpr has joined #ruby
Pumukel has joined #ruby
blackmesa has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
renchan has joined #ruby
skweek has quit [Ping timeout: 268 seconds]
<KrzaQ> What is the 'Data' constant? I can't use it in my scripts because they yell at me for redefining a constant, but it contains now data
Silthias has quit [Ping timeout: 260 seconds]
<JustJosh> I'm not sure, KrzaQ. I'm curious though. I'm going to look into it real quick.
<al2o3-cr> &ri Data
blackmesa has quit [Ping timeout: 260 seconds]
<KrzaQ> Oh
<KrzaQ> too bad such a common name is restricted like that
blackmesa has joined #ruby
jcao219 has joined #ruby
<herwin> JustJosh: `make` creates an executable that you can use without installing, so something like `make && bin/ruby -I lib/whatever test/test.rb`
<herwin> not sure about the paths
postmodern has quit [Quit: Leaving]
rkellermeyer has joined #ruby
<JustJosh> Thanks, herwin
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
tweezer has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkellermeyer has quit [Ping timeout: 268 seconds]
Silthias has joined #ruby
tweezer has quit [Client Quit]
jameser has joined #ruby
skweek has joined #ruby
<herwin> there might be smarter solutions, but this works and i haven't spent enough time in the mri-source to be bothered by it
jeyraof^mbpr has quit [Quit: Leaving]
<JustJosh> I'll probably just alias what you sent me and stick with that for now.
bronson has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bweston92 has joined #ruby
ddffg has joined #ruby
mikecmpbll has joined #ruby
Silthias has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 258 seconds]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
guardianJ has joined #ruby
JeanCarloMachado has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
perniciouscaffei has joined #ruby
skade_ has joined #ruby
jameser has joined #ruby
TreyG has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
jsrn_ has joined #ruby
TreyG has joined #ruby
flying has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Silthias has quit [Ping timeout: 268 seconds]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
jaruga has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
arch___ has joined #ruby
arch___ has quit [Excess Flood]
arch___ has joined #ruby
arch___ has quit [Excess Flood]
tomphp has joined #ruby
jameser has joined #ruby
arch___ has joined #ruby
interki has quit [Ping timeout: 264 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
TreyG has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
vali has quit [Remote host closed the connection]
vali has joined #ruby
Mia has joined #ruby
BTRE has quit [Quit: Leaving]
tomphp has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nadir has joined #ruby
xenops has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aep has quit [Ping timeout: 240 seconds]
jcao219 has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
jcao219 has joined #ruby
Burgestrand has joined #ruby
aufi has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
marr has joined #ruby
JeanCarloMachado has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
Pumukel has quit [Read error: No route to host]
User458764 has joined #ruby
cgfbee has joined #ruby
Pumukel has joined #ruby
aufi has quit [Ping timeout: 260 seconds]
grh has quit [Remote host closed the connection]
lxsameer has joined #ruby
aupadhye has joined #ruby
Guest96 has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest96 has joined #ruby
jgnagy has joined #ruby
Burgestrand has quit [Quit: Good bye and have a nice day!]
jgnagy has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
pandaant has joined #ruby
rory has joined #ruby
patarr has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 246 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 268 seconds]
jameser has joined #ruby
kegster has quit [Ping timeout: 260 seconds]
rory has left #ruby [#ruby]
kegster has joined #ruby
scrooloose has quit [Quit: WeeChat 1.4]
scrooloose has joined #ruby
hs366 has joined #ruby
antib has joined #ruby
quobo has joined #ruby
mim1k has joined #ruby
hs366 has quit [Client Quit]
<al2o3-cr> why? #<RuntimeError: implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly.>
TreyG has joined #ruby
alif_bae has joined #ruby
cschneid_ has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
antgel has joined #ruby
maattdd has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
last_staff has quit [Quit: last_staff]
last_staff has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
mim1k has quit [Ping timeout: 268 seconds]
rgr has joined #ruby
jameser has joined #ruby
antgel has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
guardianJ has quit [Remote host closed the connection]
JustJosh has quit [Ping timeout: 260 seconds]
guardianJ has joined #ruby
mim1k has joined #ruby
yCrazyEdd has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
yCrazyEdd is now known as CrazyEddy
bronson has quit [Ping timeout: 240 seconds]
romank has joined #ruby
<al2o3-cr> thank crunchie it's friday :)
alif_bae has quit [Ping timeout: 268 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
case_ has joined #ruby
<case_> ASL?
tomphp has joined #ruby
<case_> how do i hacks wit cmd
blackmesa has quit [Ping timeout: 268 seconds]
jamesaxl has joined #ruby
alif_bae has joined #ruby
guardianJ has quit [Remote host closed the connection]
ferr has joined #ruby
guardianJ has joined #ruby
blackmesa has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shuduo_ has joined #ruby
lel- has quit [Ping timeout: 264 seconds]
alif has joined #ruby
shuduo_ has quit [Client Quit]
mim1k has quit [Ping timeout: 240 seconds]
lel has joined #ruby
alif_bae has quit [Read error: Connection reset by peer]
govg has joined #ruby
omarek has quit [Ping timeout: 240 seconds]
Guest96 has quit [Remote host closed the connection]
mim1k has joined #ruby
m1911 has joined #ruby
alif has quit [Ping timeout: 268 seconds]
m1911 has quit [Excess Flood]
tomphp has joined #ruby
Guest96 has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
Guest96 has quit [Remote host closed the connection]
guardianJ has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 264 seconds]
guardianJ has joined #ruby
BSaboia has joined #ruby
Guest96 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Guest96 has quit [Remote host closed the connection]
blackmesa has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest96 has joined #ruby
case_ has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
<al2o3-cr> it must be doing 'Z'.prepend('a').prepend('b').prepend('c') by the number of elements
<al2o3-cr> ^ scrooloose
helpa-bot has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
dn`_ has joined #ruby
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
dn` has quit [Read error: Connection reset by peer]
helpa has quit [Read error: Connection reset by peer]
dn`_ is now known as dn`
mim1k_ is now known as mim1k
nickjj_ has joined #ruby
guardianJ has quit [Read error: Connection reset by peer]
guardianJ has joined #ruby
t-recx has joined #ruby
nickjj has quit [Ping timeout: 240 seconds]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
marxarelli|afk has quit [Ping timeout: 240 seconds]
mortimer has joined #ruby
<mortimer> Hello
<al2o3-cr> o/
<al2o3-cr> %w(a b c).map &'Z'.method(:<<) does the same weird
jameser has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
petruff1 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
loechel has joined #ruby
<mortimer> In one of my app, with big loop (displaying progress of process), printing result to stdout significantly slows whole process
nofxx has joined #ruby
<canton7> how often do you print the progress?
Pumukel has quit [Ping timeout: 240 seconds]
<mortimer> With the speed the proccess, the maximum speed, it's about 1k in second (or even more)
<canton7> yeah, that's going to slow it down :P
<canton7> print to stdout is relatively expensive, in almost any language
<mortimer> ^.^ This is why to my class Progressbar I added option to turn off displaying result :P
<canton7> limit yourself to printing a couple of times a second, or once every N iterations of your loop
patarr has quit [Ping timeout: 268 seconds]
<mortimer> I actually did it, it is pretty obvious step of optimalization
guardianJ has quit [Remote host closed the connection]
guardianJ has joined #ruby
<mortimer> Well, goodbye for now o/
mortimer has quit [Quit: WeeChat 1.6]
tomphp has joined #ruby
nofxx has quit [Ping timeout: 268 seconds]
esObe_ has quit [Remote host closed the connection]
stoffus has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
pandaant has quit [Quit: Lost terminal]
dacod has joined #ruby
mim1k has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
mortimer has joined #ruby
dacod has quit [Client Quit]
ldnunes has joined #ruby
dacod has joined #ruby
dacod has quit [Client Quit]
dacod has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
blackmesa has joined #ruby
bronson has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
synthroi_ has joined #ruby
JoshS has quit [Ping timeout: 240 seconds]
destroy`` has quit [Ping timeout: 245 seconds]
bronson has quit [Ping timeout: 240 seconds]
synthroid has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
Pip_ has joined #ruby
<Pip_> So Matz didn't attend the 2017 RubyConf?
User458764 has joined #ruby
sepp2k has joined #ruby
guardianJ has left #ruby [#ruby]
MrBusiness has quit [Ping timeout: 268 seconds]
charliesome has joined #ruby
loechel has quit [Remote host closed the connection]
Pumukel has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Pip_ has quit [Ping timeout: 240 seconds]
DeeJayh_ has joined #ruby
Pumukel has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
chee has quit [Quit: ZNC - 1.6.0 - http://znc.in]
blackmesa has quit [Ping timeout: 246 seconds]
jcao219 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
omarek has joined #ruby
__Yiota has joined #ruby
minimalism has quit [Quit: minimalism]
Pip_ has joined #ruby
rkellermeyer has joined #ruby
scrooloose has quit [Quit: WeeChat 1.4]
scrooloose has joined #ruby
nertzy2 has quit [Ping timeout: 268 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nertzy2 has joined #ruby
randomguy has joined #ruby
stoffus has quit [Quit: leaving]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Read error: Connection reset by peer]
minimalism has joined #ruby
linetrac1 has joined #ruby
helpa-bot has joined #ruby
DeeJayh_ has quit [Ping timeout: 240 seconds]
arch____ has joined #ruby
jsrn__ has joined #ruby
Pisuke has joined #ruby
Mia has joined #ruby
Pip_ has quit [Ping timeout: 240 seconds]
dn`_ has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa-bot has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa-bot has joined #ruby
genpaku_ has joined #ruby
krandi has joined #ruby
omarek has quit [Ping timeout: 264 seconds]
helpa-bot has quit [Remote host closed the connection]
helpa-bot has joined #ruby
helpa-bot has quit [Remote host closed the connection]
mlehrer_ has joined #ruby
helpa-bot has joined #ruby
jgnagy has joined #ruby
sepp2k has quit [*.net *.split]
ldnunes has quit [*.net *.split]
mortimer has quit [*.net *.split]
helpa has quit [*.net *.split]
dn` has quit [*.net *.split]
Axy has quit [*.net *.split]
d^sh has quit [*.net *.split]
aupadhye has quit [*.net *.split]
arch___ has quit [*.net *.split]
jsrn_ has quit [*.net *.split]
bweston92 has quit [*.net *.split]
andikr has quit [*.net *.split]
mark_66 has quit [*.net *.split]
mniip has quit [*.net *.split]
genpaku has quit [*.net *.split]
iliketurtles has quit [*.net *.split]
Lucky_ABA has quit [*.net *.split]
sparr has quit [*.net *.split]
MyMind has quit [*.net *.split]
al2o3-cr has quit [*.net *.split]
coredump has quit [*.net *.split]
guidos has quit [*.net *.split]
mattwc has quit [*.net *.split]
linetrace has quit [*.net *.split]
toretore has quit [*.net *.split]
mlehrer has quit [*.net *.split]
silverdust has quit [*.net *.split]
genpaku_ is now known as genpaku
dn`_ is now known as dn`
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
ramortegui has joined #ruby
d^sh has joined #ruby
bweston92 has joined #ruby
jameser has joined #ruby
guardianJ has joined #ruby
mim1k has joined #ruby
Pumukel has joined #ruby
synthroid has joined #ruby
Pip has joined #ruby
jgnagy has quit [Ping timeout: 240 seconds]
Pip has quit [Client Quit]
synthroi_ has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: minimalism]
dionysus69 has quit [Ping timeout: 268 seconds]
ldnunes has joined #ruby
mortimer has joined #ruby
aupadhye has joined #ruby
toretore has joined #ruby
al2o3-cr has joined #ruby
sepp2k has joined #ruby
mark_66 has joined #ruby
last_staff has quit [Quit: last_staff]
skweek has quit [Ping timeout: 264 seconds]
minimalism has joined #ruby
mattwc has joined #ruby
silverdust has joined #ruby
guidos has joined #ruby
coredump has joined #ruby
sparr has joined #ruby
sparr has quit [Max SendQ exceeded]
gaucheph has joined #ruby
sparr has joined #ruby
LufyCZ has joined #ruby
eljimbo has quit [Quit: This computer has gone to sleep]
minimalism has quit [Client Quit]
JeanCarloMachado has joined #ruby
<LufyCZ> Hi, Im a beginner, and I would want to ask, how could you tell if a variable is something, and then do something. If the variable is not the something proceed further. WIth this I mean: x = asd (would be gets) if x = asd, do something, if x = dsa, do something else. How could you accomplish this ?
<guardianJ> if-else statements
minimalism has joined #ruby
<LufyCZ> Could you please write a line of code for me ?
MrBusiness has joined #ruby
LukyCZ has joined #ruby
LBRapid has quit [Ping timeout: 240 seconds]
<LukyCZ> Kk will look into it thx
LufyCZ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<mortimer> And if You want to i.e. stop execution of /function/ use "return"
<mortimer> oh, he left
LBRapid has joined #ruby
rippa has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jcao219 has quit [Ping timeout: 246 seconds]
coredump has quit [*.net *.split]
guidos has quit [*.net *.split]
mattwc has quit [*.net *.split]
silverdust has quit [*.net *.split]
mattwc has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
coredump has joined #ruby
guidos has joined #ruby
jrafanie has joined #ruby
esObe_ has joined #ruby
ResidentBiscuit has joined #ruby
TomyLobo2 has quit [Ping timeout: 255 seconds]
jphase_ has joined #ruby
DLSteve has joined #ruby
millerti has joined #ruby
JeanCarloMachado has joined #ruby
esObe_ has quit [Ping timeout: 246 seconds]
jphase has quit [Ping timeout: 240 seconds]
vali has quit [Quit: vali]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcao219 has joined #ruby
alif_bae has joined #ruby
ResidentBiscuit has quit []
anisha has quit [Quit: Leaving]
jrafanie has joined #ruby
_sfiguser has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
petruff1 has quit [Ping timeout: 260 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
petruff1 has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
GinoMan has joined #ruby
alif has joined #ruby
alif has quit [Remote host closed the connection]
alif has joined #ruby
destroy`` has joined #ruby
alif_bae has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
zapata has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
swills has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
Guest96_ has joined #ruby
swills has joined #ruby
Guest96 has quit [Ping timeout: 264 seconds]
SteenJobs has joined #ruby
Pumukel has quit [Remote host closed the connection]
skade_ has quit [Ping timeout: 260 seconds]
charliesome has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
renchan has quit [Quit: Leaving...]
linetrac1 is now known as linetrace
toretore has joined #ruby
chouhoulis has joined #ruby
swills has quit [Ping timeout: 258 seconds]
zapata has joined #ruby
<_sfiguser> is ruby generally equivalent to python ? i mean in both performances/uses ?
<ljarvis> _sfiguser: it depends on what it's doing, but sure
<_sfiguser> ljarvis, i have to do machine learning
choke has joined #ruby
__Yiota has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Silthias has quit [Ping timeout: 255 seconds]
yeticry_ has joined #ruby
GinoMan has quit [Quit: Leaving]
cschneid_ has joined #ruby
Silthias has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
cschneid_ has quit [Ping timeout: 260 seconds]
drcode has joined #ruby
LastWhisper____ has joined #ruby
jcao219 has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
KeyJoo has joined #ruby
randomguy has quit [Quit: Textual IRC Client: www.textualapp.com]
drcode has quit [Client Quit]
rkazak has joined #ruby
Alina-malina has quit [Ping timeout: 255 seconds]
swills has joined #ruby
LufyCZ has joined #ruby
Pumukel has joined #ruby
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drcode has joined #ruby
<LufyCZ> Hi, how can I replace a string, that was put in by the user by a number ? In particular: symbol = + , but I need to make a number out of it so that + = 1. Thanks
rgr_ has joined #ruby
rgr has quit [Ping timeout: 240 seconds]
|RicharD| has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
<mortimer> LufyCZ: You mean something like calculator from user input?
<LufyCZ> #mortimer: Exactly
<mortimer> I put in console: 5 + 2, and get 7 in return?
<mortimer> Do You want it to work with complex expression, or only "number *operation* number" ?
<LufyCZ> I want the calculator to be able to do - + * and /
ResidentBiscuit has joined #ruby
<mortimer> First case is somehow best to write with *eval*
<mortimer> Second case is better to write with something like this:https://paste.ofcode.org/SRErQj8Ts396TZkyrhqLXY
bungoman_ has quit [Ping timeout: 258 seconds]
krandi has quit [Remote host closed the connection]
__Yiota has quit [Ping timeout: 260 seconds]
Alina-malina has joined #ruby
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SteenJobs has quit [Quit: SteenJobs]
al2o3-cr has quit [Read error: Connection reset by peer]
Silthias has quit [Quit: Leaving.]
axyjo has joined #ruby
kirun has joined #ruby
hutch34 has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
SteenJobs has joined #ruby
Silthias has joined #ruby
greenhat has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Client Quit]
d10n-work has joined #ruby
ldnunes has quit [Quit: Leaving]
scrooloose has quit [Quit: WeeChat 1.4]
axyjo has quit [Ping timeout: 268 seconds]
TomyLobo2 has joined #ruby
scrooloose has joined #ruby
scrooloose has quit [Client Quit]
scrooloose has joined #ruby
scrooloose has quit [Client Quit]
scrooloose has joined #ruby
SteenJobs has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scrooloose has quit [Client Quit]
scrooloose has joined #ruby
al2o3-cr has joined #ruby
kegster has quit [Ping timeout: 240 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apparition has joined #ruby
bronson has joined #ruby
erz has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
destroy`` has quit [Ping timeout: 245 seconds]
synthroid has quit [Remote host closed the connection]
itarato has joined #ruby
jusa has joined #ruby
skade_ has joined #ruby
haylon has joined #ruby
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozcanesen has joined #ruby
gaucheph has quit [Quit: Zzzz...]
kegster has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
alif_bae has joined #ruby
Silthias has joined #ruby
flying has quit []
alif has quit [Ping timeout: 240 seconds]
alif has joined #ruby
alif_bae has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
LukyCZ has quit [Quit: Connection closed for inactivity]
<erz> what is ruby anyway?
apparition has joined #ruby
<ytti> A ruby is a pink to blood-red colored gemstone, a variety of the mineral corundum (aluminium oxide).
cschneid_ has joined #ruby
<ytti> HTH
<havenwood> erz: It's a programming language.
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
gaucheph has joined #ruby
<ytti> hmm, i can turn my pepsi cans to ruby by exposing them to oxygen?
<ytti> game changer
_sfiguser has quit [Ping timeout: 240 seconds]
<erz> oh, thanks - seems there is some life here. the pepsi is cool :)
mark_66 has quit [Remote host closed the connection]
HoierM has quit [Ping timeout: 255 seconds]
DeeJayh_ has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
LastWhisper____ has joined #ruby
synthroid has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
bronson has quit [Remote host closed the connection]
eljimbo has joined #ruby
KCmetro has joined #ruby
DeeJayh_ is now known as DeeJayh-L
[Butch] has joined #ruby
omarek has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
_sfiguser has joined #ruby
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
jphase_ has quit []
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
GodFather has joined #ruby
HoierM has joined #ruby
babblebre has joined #ruby
mim1k has joined #ruby
HoierM has quit [Max SendQ exceeded]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
apparition has joined #ruby
apparition has quit [Client Quit]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
gaucheph has quit [Quit: Zzzz...]
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
gusrub has joined #ruby
HoierM has quit [Max SendQ exceeded]
jphase has joined #ruby
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
polishdub has joined #ruby
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
Guest96_ has quit [Remote host closed the connection]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
amclain has joined #ruby
HoierM has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
HoierM has quit [Max SendQ exceeded]
Guest96 has joined #ruby
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
gaucheph has joined #ruby
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
gaucheph has quit [Client Quit]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
eindoofus has joined #ruby
tomphp has joined #ruby
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
Silthias1 has joined #ruby
HoierM has quit [Max SendQ exceeded]
BTRE has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
gusrub has joined #ruby
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
perniciouscaffei has joined #ruby
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
__Yiota has joined #ruby
gusrub has quit [Ping timeout: 240 seconds]
jusa has quit [Ping timeout: 240 seconds]
jsrn__ has quit [Quit: Leaving]
SteenJobs has quit [Quit: SteenJobs]
mim1k has quit [Read error: Connection reset by peer]
mniip has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
nitric has joined #ruby
tomphp has joined #ruby
JoshS has joined #ruby
juggler has joined #ruby
tomphp has quit [Client Quit]
kirun_ has joined #ruby
SteenJobs has joined #ruby
DeeJayh-L has quit [Quit: Leaving]
DeeJayh_ has joined #ruby
DeeJayh_ is now known as DeeJayh-L
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kirun has quit [Ping timeout: 268 seconds]
synthroi_ has joined #ruby
tomphp has joined #ruby
gusrub has joined #ruby
esObe_ has joined #ruby
synthroid has quit [Ping timeout: 268 seconds]
DeeJayh-L_ has joined #ruby
DeeJayh-L_ has quit [Client Quit]
DeeJayh-L has quit [Quit: Leaving]
DeeJayh-L has joined #ruby
DeeJayh-L has quit [Client Quit]
DeeJayh-L has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
jphase_ has joined #ruby
TomyLobo2 has quit [Ping timeout: 260 seconds]
minimalism has quit [Quit: minimalism]
TomyLobo2 has joined #ruby
jphase has quit [Ping timeout: 260 seconds]
ferr has quit [Quit: WeeChat 1.7]
cschneid_ has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
erz has quit [Quit: Konversation terminated!]
blackmesa has joined #ruby
starmix has quit [Quit: WeeChat 1.7.1]
rkazak has quit [Quit: Sleep.....ing....]
guardianJ has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 264 seconds]
bungoman has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
petruff1 has quit [Quit: WeeChat 1.7.1]
lxsameer has quit [Quit: WeeChat 1.7]
Silthias has joined #ruby
petruff has joined #ruby
__Yiota has quit [Ping timeout: 260 seconds]
TreyG has quit [Ping timeout: 260 seconds]
petruff has quit [Ping timeout: 240 seconds]
<haylon> Has anyone used the Mechanize gem? I have some questions about it.
TreyG has joined #ruby
<havenwood> haylon: Ask away! Lot of folk here have used it and some might know the answer.
kies^ has quit [Ping timeout: 240 seconds]
<haylon> I'm trying to convert this Python script that uses its flavor of Mechanize to the Ruby flavor. I see it setting some settings like #set_cookiejar(), #set_handle_equiv() and some other parts, but I didn't see those in the docs, or initalize method for the class, otherwise I'm not looking for the correct words.
jusa has joined #ruby
petruff has joined #ruby
jgnagy has joined #ruby
__Yiota has joined #ruby
esObe_ has joined #ruby
jgnagy has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
TreyG has quit [Ping timeout: 255 seconds]
duderonomy has quit [Ping timeout: 255 seconds]
bitcycle has joined #ruby
jrafanie has joined #ruby
mostlybadfly has joined #ruby
dlitvak has joined #ruby
hutch34 has joined #ruby
gusrub has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
Silthias has left #ruby [#ruby]
eindoofus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nickjj_ is now known as nickjj
gusrub has joined #ruby
User458764 has joined #ruby
kirun has joined #ruby
Mon_Ouie has joined #ruby
kirun_ has quit [Ping timeout: 246 seconds]
kies^ has joined #ruby
TomyLobo has joined #ruby
buzz0763 has quit [Ping timeout: 258 seconds]
grymmjack has joined #ruby
gusrub has quit [Remote host closed the connection]
conta5 has joined #ruby
tomphp has quit [Ping timeout: 268 seconds]
millerti has quit [Ping timeout: 268 seconds]
omarek has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
conta5 is now known as conta2
makerops has joined #ruby
<makerops> how do I change application/xm in rest-client?
xall_ has joined #ruby
<makerops> I tried content_type, accept, default_headers, but it keeps sending application/xml
bronson has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxx has joined #ruby
<haylon> you might have to manually set the header. I think there's an option to set manual headers, and just put in Content-Type: application/xml
gusrub has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 245 seconds]
u0_a170 has joined #ruby
bitcycle has quit [Quit: WeeChat 1.7]
mikecmpbll has joined #ruby
brendan- has joined #ruby
synthroid has joined #ruby
eindoofus has joined #ruby
synthroi_ has quit [Ping timeout: 246 seconds]
xall_ has quit [Ping timeout: 255 seconds]
alif has quit [Ping timeout: 264 seconds]
tomphp has quit [Ping timeout: 255 seconds]
SeepingN has joined #ruby
<makerops> yeah, I tried overriding it in the headers, but I think the default acccfept is getting precedence when apache processes the request
<makerops> im on rest-client 2.0.2
mikecmpbll has quit [Read error: Connection reset by peer]
nofxx has quit [Ping timeout: 260 seconds]
alif has joined #ruby
tomphp has joined #ruby
mikecmpbll has joined #ruby
gusrub has joined #ruby
<LufyCZ> How can I tell the program, that when the user inputs "twelwe" it means 12 ?
cdg has joined #ruby
SteenJobs has quit [Quit: peaceee]
cschneid_ has joined #ruby
Pumukel has quit [Remote host closed the connection]
ahrs has quit [Remote host closed the connection]
dhollinger has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
dhollinger has joined #ruby
gusrub has joined #ruby
chee has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
conta2 has quit [Remote host closed the connection]
<KeyJoo> LufyCZ: use var, & block if
synthroi_ has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LufyCZ> KeyJoo: Uh, I didnt understand almost anything of that.
makerops has quit [Quit: Page closed]
chee has left #ruby ["Textual IRC Client: www.textualapp.com"]
<KeyJoo> well
segy has quit [Quit: ZNC - http://znc.in]
<KeyJoo> read about If-construction(for all languages)
<LufyCZ> Will do, thanks
synthroid has quit [Ping timeout: 240 seconds]
<KeyJoo> but your first step - to mind : What is variable
<KeyJoo> (var)
<LufyCZ> Something that can change during the runtime
Ellimist has quit [Ping timeout: 246 seconds]
<LufyCZ> A string
segy has joined #ruby
qguv has quit [Ping timeout: 260 seconds]
ahrs has joined #ruby
<KeyJoo> LufyCZ: elementery type of var = var['symbol','nunber','string']
<KeyJoo> a = 12
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
segy has quit [Quit: ZNC - http://znc.in]
User458764 has joined #ruby
<LufyCZ> So
<LufyCZ> twelwe = 12 ?
enterprisey has joined #ruby
juggler has quit [Remote host closed the connection]
segy has joined #ruby
<havenwood> LufyCZ: Here are three related gems you might look at: https://github.com/diasks2/ruby-nlp#numbers
bronson has joined #ruby
dcunit3d has joined #ruby
<LufyCZ> havenwood: I dont mean all the numbers, just like 5 of them
davidmichaelkarr has quit [Quit: Connection closed for inactivity]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
<KeyJoo> b = 0
Bock has quit [Read error: Connection reset by peer]
<KeyJoo> input b
<LufyCZ> So when the user inputs b, it will be 0
<KeyJoo> if b = twelve then b = a
<KeyJoo> When user input b, than you put in b = a = 12
<KeyJoo> try it
mjora7 has joined #ruby
patr0clus has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
nobodyzxc has joined #ruby
synthroid has joined #ruby
bronson has quit [Remote host closed the connection]
DeeJayh-L has quit [Ping timeout: 240 seconds]
synthroi_ has quit [Ping timeout: 240 seconds]
<KeyJoo> LufyCZ: in logic-algorithm >> your code = true
nobodyzxc has quit [Quit: leaving]
Pumukel has quit [Remote host closed the connection]
TomyLobo has joined #ruby
tomphp_ has joined #ruby
Pumukel has joined #ruby
TomyLobo2 has quit [Quit: Leaving]
<u0_a170> d
tomphp has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Quit: WeeChat 1.4]
JeanCarloMachado has joined #ruby
nesoi has left #ruby [#ruby]
Pumukel has quit [Ping timeout: 260 seconds]
nofxx has quit [Ping timeout: 255 seconds]
kegster has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
u0_a170 has quit [Quit: leaving]
jusa has quit [Ping timeout: 240 seconds]
mjora7 has left #ruby ["Textual IRC Client: www.textualapp.com"]
planigan has joined #ruby
lxsameer has joined #ruby
friday has quit [Changing host]
friday has joined #ruby
DeeJayh has quit [Quit: Page closed]
<haylon> I think I just don't know what I'm doing with this Mechanize Gem.
PaulCapestany has joined #ruby
User458764 has joined #ruby
petruff has quit [Ping timeout: 240 seconds]
mr_rich101 has quit [Quit: ZNC - http://znc.in]
andrzejku has joined #ruby
mortimer has quit [Quit: WeeChat 1.6]
rkellermeyer has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 240 seconds]
<ddffg> what does this command mean "bundler install --binstubs"
yogg-saron has joined #ruby
last_staff1 has joined #ruby
millerti has joined #ruby
<havenwood> ddffg: Do you know what just `bundler install` means?
<havenwood> ddffg: See: bundle install --help
<havenwood> ddffg: "Creates a directory (defaults to ~/bin) and place any executables from the gem there. These executables run in Bundler's context."
last_staff1 has quit [Client Quit]
<havenwood> "Bundler's context" just means using the exact versions of gems from the Gemfile.lock.
synthroi_ has joined #ruby
<havenwood> ddffg: Ask away if any of that doesn't make sense.
alif_bae has joined #ruby
<ddffg> what is the difference between "bundler" and "bundle"
synthroid has quit [Ping timeout: 240 seconds]
<elomatreb> None, one is an alias for the other (can't remember which way around though)
alif has quit [Ping timeout: 264 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
TomyLobo has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
enterprisey has joined #ruby
TomyLobo has joined #ruby
<havenwood> bundler is a shim for bundle
jackjackdripper has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
Komic_ has joined #ruby
sparr has quit [Changing host]
sparr has joined #ruby
tomphp_ has quit [Ping timeout: 240 seconds]
cyphase has joined #ruby
TreyG has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
patarr_ has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
ddffg has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
romank has joined #ruby
patarr has quit [Ping timeout: 264 seconds]
alif_bae has quit [Ping timeout: 260 seconds]
kirun has quit [Quit: Konversation terminated!]
itarato has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alif_bae has joined #ruby
Jayson_Virissimo has joined #ruby
t-recx has quit [Quit: t-recx]
tomphp has joined #ruby
hobodave has joined #ruby
enterprisey has joined #ruby
KCmetro has quit [Read error: Connection reset by peer]
cfec0b8d has joined #ruby
KCmetro has joined #ruby
LufyCZ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kies^ has quit [Ping timeout: 240 seconds]
alif_bae has quit [Ping timeout: 264 seconds]
tomphp has quit [Ping timeout: 258 seconds]
tomphp has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
hobodave_ has joined #ruby
synthroi_ has quit [Remote host closed the connection]
hobodave has quit [Ping timeout: 258 seconds]
hutch34 has joined #ruby
toretore has quit [Ping timeout: 268 seconds]
itarato has joined #ruby
romank has quit [Read error: Connection reset by peer]
tomphp has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
DeeJayh has joined #ruby
romank has joined #ruby
romank has quit [Read error: Connection reset by peer]
kies^ has joined #ruby
romank has joined #ruby
jcao219 has joined #ruby
romank has quit [Client Quit]
nobodyzxc has joined #ruby
synthroid has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
nobodyzxc has quit [Quit: leaving]
oleo has quit [Quit: irc client terminated!]
toretore has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
rkazak has quit [Quit: Sleep.....ing....]
bronson has joined #ruby
nankyokusei has joined #ruby
ruby-lang590 has joined #ruby
ptx0 has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
ruby-lang590 has quit [Client Quit]
duderonomy has joined #ruby
eljimbo has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
eljimbo has joined #ruby
oleo has joined #ruby
eindoofus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
KCmetro has quit [Quit: Leaving...]
Lucky_ABA has joined #ruby
JeanCarloMachado has joined #ruby
jusa has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
__Yiota has joined #ruby
foli has joined #ruby
yqt has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
oleo has quit [Quit: irc client terminated!]
patr0clus has quit [Read error: Connection reset by peer]
synthroid has quit []
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
patr0clus has joined #ruby
rkazak has joined #ruby
nankyokusei has quit [Remote host closed the connection]
omarek has joined #ruby
omarek has left #ruby [#ruby]
jcao219 has joined #ruby
amperry has joined #ruby
AndrewIsHere has quit []
itarato has quit [Ping timeout: 240 seconds]
<amperry> hi folks, can someone point me in the direction of a quick primer on 'nokogiri'? I'm trying to rewrite some files that all have an '<h2>' element surrounded by two '<br>' elements.
andrzejku has quit [Quit: Textual IRC Client: www.textualapp.com]
vikaton has joined #ruby
oleo has joined #ruby
jgnagy has joined #ruby
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
KeyJoo has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
<amperry> ljarvis: thanks, I'll take a look
toretore has quit [Ping timeout: 240 seconds]
jgnagy has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
mim1k has joined #ruby
cschneid_ has quit [Remote host closed the connection]
<DeeJayh> The number is constantly puts'd after 0, instead of only when it changes
<DeeJayh> Basically I'm trying to get the output to 1;2;3 instead of 1111111111111111;222222222222222222;3333333333333
antgel has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> DeeJayh: Just for future reference, if you name your gist with a .rb extension it'll do nice syntax highlighting and make it easier for us to clone and try.
<DeeJayh> excellent and duely noticed
silverdust has joined #ruby
<DeeJayh> havenwood, updated wit rb ext
silverdust is now known as Guest78044
mim1k has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
bbr has joined #ruby
ptx0 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Klumben has quit [Ping timeout: 245 seconds]
HoierM has joined #ruby
rkellermeyer has joined #ruby
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
<DeeJayh> logically it should be calling as fast as the processor can handle, and as a float, but each iteration it should store the current number of elapsed seconds as an integer (thus cutting off the float and leaving a whole number)
alem0lars has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
<DeeJayh> so change = 0, eventually elapsed will equal 1, so puts elapsed and save change as 1
<DeeJayh> now that change is 1 and elapsed continues to be 1, they shouldn't puts again until elapsed becomes 2
oleo has quit [Quit: irc client terminated!]
__Yiota has quit [Ping timeout: 240 seconds]
<havenwood> DeeJayh: I'd suggest first rewriting your ternary operator as an if statement or case statement.
rkellermeyer has quit [Ping timeout: 240 seconds]
<havenwood> DeeJayh: Note the `else` doesn't happen if the `if` does.
Klumben has joined #ruby
<havenwood> Same with case statements.
<DeeJayh> @havenwood, why does no one in any language like single line if statements? I just got told the same thing for a similar style in python. They work just as well and end in less line of code. Is it a readability issue, or are you saying I'm missing a logical error and might notice it better if I wrote it out instead of one lining it?
<havenwood> And ternary. I don't think the ternary is working the way it was imagined.
<havenwood> DeeJayh: I think you're missing logical errors because of it.
<DeeJayh> kk I will give it a shot
<DeeJayh> I wrote a way more complex one
<DeeJayh> winning_color = winning_number.between?(37,38) ? "Green" : (winning_number.between?(1,9) || winning_number.between?(19,27) ? (winning_parity == "Even" ? "Black" : "Red") : (winning_parity == "Odd" ? "Black" : "Red"))
<DeeJayh> and it works just fine lol
<havenwood> DeeJayh: (As you have it `change = elapsed` only when `change == elapsed`)
<havenwood> So it's a noop.
<DeeJayh> oh, is it considering line 9 as the ending of line 8?
<DeeJayh> I thought you could have blanks in python
<DeeJayh> err
<DeeJayh> Ruby*
<DeeJayh> yea I changed it to change != elapsed ? (puts elapsed) : (puts "Nope") and it just constantly puts Nope
alem0lars has joined #ruby
<DeeJayh> alright, so back to making it an if statement and checking logic
volty has joined #ruby
oleo has joined #ruby
ramortegui has quit [Remote host closed the connection]
__Yiota has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
unixabg_ has left #ruby [#ruby]
perniciouscaffei has joined #ruby
patr0clus has quit [Quit: WeeChat 1.4]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ski7777 has quit [Ping timeout: 246 seconds]
ddffg has joined #ruby
patarr_ has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
hobodave_ has quit [Quit: Computer has gone to sleep.]
eljimbo has quit [Quit: This computer has gone to sleep]
eljimbo has joined #ruby
eljimbo has quit [Client Quit]
eljimbo has joined #ruby
lightstalker has quit [Ping timeout: 240 seconds]
eljimbo has quit [Client Quit]
eljimbo has joined #ruby
eljimbo has quit [Client Quit]
eljimbo has joined #ruby
eljimbo has quit [Client Quit]
lightstalker has joined #ruby
eljimbo has joined #ruby
eljimbo has quit [Client Quit]
bkxd has joined #ruby
oleo has quit [Quit: irc client terminated!]
Pumukel has joined #ruby
raspado has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
ledestin has joined #ruby
jcao219 has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
jamesaxl has quit [Read error: Connection reset by peer]
brent__ has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
enterprisey has joined #ruby
foli has quit [Ping timeout: 240 seconds]
dacod has quit [Quit: Saindo]
alif_bae has joined #ruby
alif_bae has quit [Client Quit]
hutch34 has joined #ruby
Guest96 has quit [Remote host closed the connection]
oleo has joined #ruby
spiette has quit [Quit: :qa!]
Guest96 has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NightMonkey has quit [Quit: ZNC - http://znc.in]
dionysus69 has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
cdg has quit [Remote host closed the connection]
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 240 seconds]
jusa has joined #ruby
minimalism has joined #ruby
m0d has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has quit [Remote host closed the connection]
polishdub has quit [Remote host closed the connection]
m0d has quit [Quit: Textual IRC Client: www.textualapp.com]
dcunit3d has joined #ruby
Mia has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
matherr has joined #ruby
<matherr> hi . Why does this code return 184, instead of 268
<matherr> a = 03+0265 puts a
<Zarthus> Why do you prefix those numbers with a 0?
<matherr> without the trailing zero it gives correct answer. And with 0 too in case of two digit numbers.
<Zarthus> Yeah.
<Zarthus> I *believe* it becomes hex that way, I'm kind of tired so i'll need to confirm
gaucheph has joined #ruby
<Zarthus> it's not hex
<Zarthus> Octal
PaulCapestany has quit [Quit: .]
<matherr> Can you point me to some ruby documentation that tells why it happens?
<matherr> I couldn't find anything anywhere
<Zarthus> The prefixing 0 just means it will become an Octal digit
<Zarthus> the same way 0xFF becomes hex, and 0b11 becomes binary
PaulCapestany has joined #ruby
<Zarthus> it looks like the octal prefix is 0o000
ddffg has quit [Ping timeout: 240 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
<Zarthus> https://ruby-doc.org/core-2.3.0/doc/syntax/literals_rdoc.html#label-Numbers is something I found just out in the loose which should be a decent starting point
<matherr> Is that a small o after first 0?
<Zarthus> it's not very elaborate
<Zarthus> yes, although it is case insensitive
<matherr> But I don't use that in my code. It should still convert into octal?
<matherr> just because of the single 0
<Zarthus> It looks like the default is octal when you start with a 0
<Zarthus> Why are you prefixing it with a 0?
<matherr> I see. Thank you
mim1k has joined #ruby
<matherr> I was trying to experiment with different numbers and noticed that behaviour, and how it only happened with 3 digit numbers
<Zarthus> You can use 0d0023 to properly write your numbers
<matherr> Thank you
<matherr> Have a great day
<Zarthus> You too :)
yqt has quit [Ping timeout: 240 seconds]
oleo has quit [Ping timeout: 260 seconds]
NightMonkey has joined #ruby
__Yiota has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
<matherr> :)
matherr has quit [Quit: Page closed]
mim1k has quit [Ping timeout: 260 seconds]
PaulCapestany has quit [Ping timeout: 260 seconds]
PaulCapestany has joined #ruby
DLSteve has joined #ruby
Jayson_Virissimo has quit []
<DeeJayh> @havenwood, I just ended up needing some kind of noop, my logic was fine, but it was doing what I thought it was and taking line 9 as the ending of line 8, so now I have:
<DeeJayh> change != elapsed ? (puts elapsed) : nil
gaucheph has quit [Quit: Zzzz...]
<DeeJayh> which works perfectly! cheers
patarr has joined #ruby
volty has quit [Quit: Konversation terminated!]
cagomez has quit [Remote host closed the connection]
charliesome has joined #ruby
jcao219 has quit [Ping timeout: 255 seconds]
oleo has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
nitric has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcao219 has joined #ruby
sp4rrow has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
Vivekananda has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Joufflu has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
Komic_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
Qommand0r has quit [Ping timeout: 246 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
cschneid_ has quit [Ping timeout: 240 seconds]
SCHAPiE has quit [Ping timeout: 260 seconds]
auv[work] is now known as auv
_sfiguser has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
Vivekananda has quit [Quit: Leaving]
hutch34 has joined #ruby
SCHAPiE has joined #ruby
_sfiguser has quit [Quit: Leaving]
Qommand0r has joined #ruby
esObe_ has quit [Remote host closed the connection]