ChatGPT - How Long Till They Realize I’m a Robot?

Image
I tried it first on December 2nd... ...and slowly the meaning of it started to sink in. It's January 1st and as the new year begins, my future has never felt so hazy. It helps me write code. At my new company I'm writing golang, which is new for me, and one day on a whim I think "hmmm maybe ChatGPT will give me some ideas about the library I need to use." Lo-and-behold it knew the library. It wrote example code. It explained each section in just enough detail. I'm excited....It assists my users. I got a question about Dockerfiles in my teams oncall channel. "Hmmm I don't know the answer to this either"....ChatGPT did. It knew the commands to run. It knew details of how it worked. It explained it better and faster than I could have. Now I'm nervous....It writes my code for me. Now I'm hearing how great Github Copilot is - and it's built by OpenAI too...ok I guess I should give it a shot. I install it, and within minutes it'

Deploying a Rails 3.1.1 app to heroku using Ruby 1.9.3 and Ubuntu 11.10

Hello friends. :P

I (FINALLY) got a Rails app working on heroku!  But it took some doing - even the basic template rails app wouldn't work on heroku!  And the getting started walkthrough on the heroku website didn't tell me what to do about the errors.  I'm still not sure if it's my OS that makes this trickier than advertised, or if it's the version of Ruby or Rails that I'm using...or maybe it's heroku's problem?  Oh well.  But here's my setup, and if you've got the same then this tutorial should work for you.  This tutorial assumes you've already setup your heroku account.

Operating System: Ubuntu 11.10
Ruby version : 1.9.3p0
Rails version : 3.1.1
Source control : Git

 First off, if you haven't already, generate a stock app, and enter its directory :

>rails new my_app
>cd my_app

Next, initialize a new Git repository, and add everything to it :

>git init
>git add .
>git commit -am "Initial commit."

now, open up the file called 'Gemfile' in a text editor, and add the following code to the very top of the file:

if RUBY_VERSION =~ /1.9/
   Encoding.default_external = Encoding::UTF_8
   Encoding.default_internal = Encoding::UTF_8
 end

and then add the following code just underneath the word 'end' after the 'group :assets do' section :

group :production do
  gem 'pg'
  gem 'execjs'
  gem 'therubyracer'
end

now save the file, commit it to git, create a heroku app, push it up (and don't forget to run 'heroku rake db:migrate' if you have a database running in your app already) :

>git commit -am "updated Gemfile to work on heroku."
>heroku create
>git push heroku master

Now navigate to the url that heroku gives you, and your app should (finally) be running!  Congrats.

Comments

Popular posts from this blog

ChatGPT - How Long Till They Realize I’m a Robot?

Architectural Characteristics - Transcending Requirements

The Terms that Blind Us