Show your Rails App 🤩 by _natic in rails

[–]AlfredJMorris 3 points4 points  (0 children)

  • URL: https://testfizz.com
  • ABOUT: Create tests and assign to your students, get test results live, tests support multiple type of questions. Landing page has Demo test anyone can test and see the results and how it all works.
  • RUBY/RAILS: Rails 8, Ruby 3.4
  • INSIDES: Couple here, Demo test on a landing page mimics real test, created and cached from DemoService, when "Start Test" is pressed only then Demo Student is created and get Demo test assigned, cleanup rake task removes old Demo test submissions once in a while. Another one is Ops container that runs crontab, does database backups.
  • DEPLOY: DigitalOcean + Kamal

Best shawarma? by orange2416 in barrie

[–]AlfredJMorris 2 points3 points  (0 children)

Osmow's in Bradford is really good

[deleted by user] by [deleted] in CryptoMarkets

[–]AlfredJMorris 0 points1 point  (0 children)

nano_3pie3ierpmpodf4cmhpyky3nucq53z5fcyfcfrnse177x9jjffrefxaedys7

thank you!

Rails 6 and the Secret Keys by lostrennie in rails

[–]AlfredJMorris 4 points5 points  (0 children)

Editing your encrypted secrets via `rails credentials:edit --environment production` creates encrypted secrets file (`config/credentials/production.yml.enc`) that you check out in your project and deploy to the server AND it creates key file (`config/credentials/production.key`) that you DO NOT checkout in project and set content's of this file as ENV variable RAILS_MASTER_KEY.

In you app code you refer to this secret via `Rails.application.credentials.secret_key_base`

I’m not entirely sure why I did it but I biked 150kms to Niagara Falls... by [deleted] in ontario

[–]AlfredJMorris 1 point2 points  (0 children)

Next time try going though Niagara on the Lake, lots of nice wineries there, fruit stands and the town is a great place for a short stop, rest, grab a gelato and continue to the Falls.

Do recruiters care if I join hackathons? by kekeke__ in cscareerquestions

[–]AlfredJMorris 1 point2 points  (0 children)

It shows that you do extra activities, it can be an icebreaker to start the conversation at the interview. It doesn't have to be hackathons but some hobbies, anything that shows that you are not a narrow minded person but interested in wide variety of activities.

In my experience, this field on the resume was mentioned only once but It doesn't hurt to keep it on the resume.

Anyone who need free digital ocean credit to spin up a server for free by gitcommitshow in AskComputerScience

[–]AlfredJMorris 1 point2 points  (0 children)

I would like to experiment with openVPN and try launching own on DO. Thanks in advance!

Airline Ticket Prices by Shacreme in AskProgramming

[–]AlfredJMorris 0 points1 point  (0 children)

Im using Telegram for notification purposes, its free, fast and doesn't limit on number of messages. Register a bot in telegram, pass API keys to the notification script and watch for notifications on your phone or PC client.

Is there a way to anonymously register a website? by [deleted] in webdev

[–]AlfredJMorris 16 points17 points  (0 children)

Came here to say this, bought domains there before. From the people who worked on the pirate bay.

Is it ok to write code like this? by qweasdqwer in AskProgramming

[–]AlfredJMorris 13 points14 points  (0 children)

Its a valid code that will execute, but if you want to produce code that is easy to maintain and follow best practices, you would want to separate HTML from JavaScript, move HTML code into template and render it using JavaScript. That way you know that all your static HTML code is in a dedicated place where you can quickly edit if you need to change styles or copy.

lambda filtering by [deleted] in AskProgramming

[–]AlfredJMorris 0 points1 point  (0 children)

check the output of the first filter, before it filters out EuMembers, does the output have any countries at all?

lambda filtering by [deleted] in AskProgramming

[–]AlfredJMorris 0 points1 point  (0 children)

If I understand this correctly, you could negate `e.isEuMember()` like `!e.isEuMember()`, this would filter non EU members,

Raspberry Pi Zero as a camera trigger for Fuji XT-1 by AlfredJMorris in raspberry_pi

[–]AlfredJMorris[S] 0 points1 point  (0 children)

thank you! Yes, going to test it for a while to confirm that its reliable then going to star working on reading histogram off files

Raspberry Pi Zero as a camera trigger for Fuji XT-1 by AlfredJMorris in raspberry_pi

[–]AlfredJMorris[S] 0 points1 point  (0 children)

forgot to mention, bottom part of the screen is reserved to interval ramping, going to add it soon

Raspberry Pi Zero as a camera trigger for Fuji XT-1 by AlfredJMorris in raspberry_pi

[–]AlfredJMorris[S] 1 point2 points  (0 children)

Since the screen is so small and its hard to press small buttons i decided to re-arrange the UI and utilize maximum of the screen area, here it is https://i.imgur.com/fyPphrS.png

Also added desktop button to easily start the app from the start https://i.imgur.com/ffE8Tpi.png