#ruby - 17 March 2018
« Back 1 day Forward 1 day »
[10:16:04] zenspider: released: path_expander, zenweb, zenweb-template, osx_keychain, rake-remote_task, and hoe
[14:00:26] yashi: Is there a way to modify the command "ruby -run -e httpd . -p 9090" so that it: 1) Serves HTTPS instead of HTTP 2) Asks for a password?
[19:10:11] plutes: hello chaps, I've been trying to start my ruby book, I am running parrot os and have attempted to install netbeans IDE, I have the application and tried to open it with sudo and clicking it, it start to load and stops and closes when it says opening modules. Any of you guys know what else I should install please?
[19:44:12] leotaku: so i do have a little problem that someone here might be able to help me solve: I'd like to run a ruby app that expects certain files in "ruby_dir/lib/ruby/vendor_ruby/version_number/package_name", however I can not access that directory. How do I get ruby to find these files?
[19:55:16] plutes: leotaku, is it puts Dir.entries('ruby_dir/lib/ruby/vendor_number/package_name').inspect
[19:57:04] plutes: im reading from a book I dont know myself says another way is contents = Dir['/Users/larryuleman/*']
[19:58:13] leotaku: plutes: sorry for not understanding, but is that a question? do you want to know what command wants to place the files there, or is that a command i could add for it to find the stuff?
[19:59:20] leotaku: i actually don't programm in ruby myself, so any syntax you give me isn't exactly clear
[20:00:49] leotaku: so if I understand this correctly I would want to path the code to include the files from an arbitrary directory, correct?
[20:00:49] plutes: just trying to reply , its a chapter called accessing Directory Contents. its a way to find the stuff. I dont either but seems like its the way to list that directory your after.
[20:05:10] plutes: leotaku, the book i have in my hand is ruby visual quickstart guide larry ullman, maybe could find a free online copy
[20:18:31] leotaku: plutes: what do you think about replacing the offending "require" statements with "require_relative" and moving the needed files into the directory of the binary?
[20:22:38] plutes: leotaku, way above my level mate I wish i could help a little more but I cant. I struggling getting netbeans working on parrot os, Can I ask what IDE are you using?
[20:25:34] leotaku: plutes: none/vim, as I have said I don't really code any ruby, I am just trying to package a ruby application
[20:28:35] plutes: leotaku, good luck mate seems a slow room hopefully someone with the experience can help you out.
[20:31:34] leotaku: plutes: thanks, good luck with whatever you are trying to do! apprechiate you trying to help
[20:33:50] plutes: leotaku, your welcome bud, have you tried the ruby docs from the website or joined there forum may be on it.
[21:21:44] ruby[bot]: -bb dmitriy_!*@*$#ruby-fix-your-connection *!*@18.104.22.168$#ruby-fix-your-connection
[21:51:01] al2o3-cr: here's a pretty good break down of it; https://juliansimioni.com/blog/deconstructing-fizz-buzz-with-flip-flops-in-ruby/
[22:26:37] phaul: what's evene worse about it is that this p 'wtf' if true .. true results in warning: range literal in condition, but this p 'wtf' if 1==1 .. true does not.
[22:27:37] ruby[bot]: phaul: # => /tmp/execpad-3f5f8b7dd8aa/source-3f5f8b7dd8aa:2: warning: range literal in condition ...check link for more (https://eval.in/973830)