[Rails] [job] Ruby developer for United Nations associated project

2020-03-15 Thread David Hughes
PlantVillage https://plantvillage.psu.edu/ is an emergency relief tool for 
poor farmers across the world facing the threat of climate change and 
pests. It is run out of Penn State University and is an official tool of 
the United Nations Food and Agricultural Organisation.  Our back end ruby 
platform connects to apps we developed and deployed across 66 countries in 
29 languages. As a non-profit we have had little money todate  so 
outsourced development to a team in India. But this has created significant 
technical debt. 

We now need an experienced, very capable ruby engineer to work as a 
consultant. Ideally +/- 3 hrs EST. You would work would an Android 
developer and two engineers at Penn State and the Indian Team which we 
still engage. 

You would be entering a project that is rapidly building a tool immediately 
required to combat locusts plagues from Kenya to Pakistan and multiple 
other issues. These pests threaten the supply of 19 million people 
immediately. So,  we have a dual need: build tools needed immediately as 
well as repair the technical debt 

This would be a consultancy gig initially but could be transitioned to a 
paid position at Penn State (after a job is created). As a University, we 
have excellent benefits


Please email dhug...@psu.edu with your cv please and cover letter  and 
consultancy rate.

This is a chance to work on a globally important issue affecting hundreds 
of millions of extremely poor farmers around the world 

thanks

david 


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/64c7d07a-2e0e-457b-8593-b00be8d4ba2f%40googlegroups.com.


[Rails] Re: Is it worth switching to Postgresql?

2020-03-15 Thread David Gleba
I also recommend running at least the DB in Docker. That should prevent 
most fiddling if your Mac OS changes. I use Docker for as much as I can. It 
ends up making things easier once you get up to speed with Docker. 

Furthermore, I just use an ubuntu virtual machine running in VirtualBox. 
That way did doesn't matter if you are using a Mac or Windows. The docker 
setup is constant in the ubuntu VM. I use Cyberduck/Filezilla/WinSCP to 
visualize the files and edit them locally with one click on the Mac or 
Windows machine.


On Saturday, March 14, 2020 at 3:45:10 PM UTC-4, San Ji wrote:
>
> No, it isn't.
> If you notice only those 2 downside, you'd better stick with you current 
> choice.
> MySQL 8 has better encoding support, I am assuming you're mentioning about 
> emoji encodings.
> And you can also learn Docker for ease of development to address the other 
> issue you have.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/bf2ae0db-db5c-4c08-b10f-b7f49638f444%40googlegroups.com.


Re: [Rails] Old Rails app from Docker Container - trying to run natively again . .

2020-03-15 Thread Lahiru Himesh Madusanka
You may want to check the Rails+Ruby version of your host then. It's
possible that you're using a newer version of Ruby and your codebase
requires an older version. (Due to the deprecated warning)


Best regards
Lahiru Himesh Madusanka

http://lk.linkedin.com/in/sdglhm
http://eezpal.com
+94.765464998



On Sun, Mar 15, 2020 at 8:47 AM Philip Rhoades  wrote:

> Hassan,
>
>
> On 2020-03-15 11:31, Hassan Schroeder wrote:
> > On Sat, Mar 14, 2020 at 3:52 PM Philip Rhoades 
> > wrote:
> >
> >> Docker crashed and I lost the Rails container so I have to go back to
> >> the original source.
> >
> > I don't know what "lost the Rails container" means. Can't you just
> > rerun the Dockerfile?
>
>
> No.
>
>
> >> Could someone suggest how I could fix the problem seen below? - I
> >> deleted the Gemfile.lock file first.
> >
> > Why?
>
>
> Because leaving the original lock file there caused "bundle install
> --path vendor/bundle" to fail with:
>
> Installing json 1.8.3 with native extensions
> Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
>
>  current directory:
>
> /home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/json-1.8.3/ext/json/ext/generator
> /usr/bin/ruby -I /usr/share/rubygems -r
> ./siteconf20200315-119213-1sg3qup.rb extconf.rb
> creating Makefile
>
> current directory:
>
> /home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/json-1.8.3/ext/json/ext/generator
> make "DESTDIR=" clean
> rm -f
> rm -f generator.so  *.o  *.bak mkmf.log .*.time
>
> current directory:
>
> /home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/json-1.8.3/ext/json/ext/generator
> make "DESTDIR="
> gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I.
> -DJSON_GENERATOR-fPIC -O2 -g -pipe -Wall -Werror=format-security
> -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
> -fstack-protector-strong
> -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fPIC -m64 -o generator.o -c
> generator.c
> generator.c: In function 'generate_json':
> generator.c:861:25: error: 'rb_cFixnum' undeclared (first use in this
> function); did you mean 'mFixnum'?
>861 | } else if (klass == rb_cFixnum) {
>| ^~
>| mFixnum
> generator.c:861:25: note: each undeclared identifier is reported only
> once for each function it appears in
> generator.c:863:25: error: 'rb_cBignum' undeclared (first use in this
> function); did you mean 'mBignum'?
>863 | } else if (klass == rb_cBignum) {
>| ^~
>| mBignum
> make: *** [Makefile:245: generator.o] Error 1
>
> make failed, exit code 2
>
> Gem files will remain installed in
> /home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/json-1.8.3
>
> for inspection.
> Results logged to
>
> /home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-1.8.3/gem_make.out
>
> An error occurred while installing json (1.8.3), and Bundler cannot
> continue.
> Make sure that `gem install json -v '1.8.3' --source
> 'https://rubygems.org/'`  succeeds before
> bundling.
>
> In Gemfile:
>rails was resolved to 4.1.5, which depends on
>  actionmailer was resolved to 4.1.5, which depends on
>actionpack was resolved to 4.1.5, which depends on
>  actionview was resolved to 4.1.5, which depends on
>activesupport was resolved to 4.1.5, which depends on
>  json
>
>
> >> $ ./bin/rails s
> >>
> /home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/activesupport-4.1.5/lib/active_support/core_ext/object/duplicable.rb:82:
> >> warning: BigDecimal.new is deprecated; use BigDecimal() method
> >> instead.
> >> => Booting Puma
> >> => Rails 4.1.5 application starting in development on
> >
> > Did you originally develop this Rails 4.1.5 app using Ruby 2.6.0? Or
> > I guess more exactly have you been running it on that Ruby version
> > successfully?
>
>
> I can't remember what version of Ruby it was - it was from earlier than
> 2015 . . it was running on whatever version of Ruby that was in the
> container - which is gone because the whole docker setup was corrupted .
> . I may have backups on old hard disks but it would take too long to try
> and re-create old OS environment, Docker version etc so I thought the
> best thing to do was just the Rails app running directly on my current
> machine (Linux Fedora 31).
>
> Thanks,
>
> Phil.
> --
> Philip Rhoades
>
> PO Box 896
> Cowra  NSW  2794
> Australia
> E-mail:  p...@pricom.com.au
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to