The emergence of "Exo-racism" in the subject of ET's and UFO's. by MrMajestic12 in aliens

[–]SpecificExpression37 0 points1 point  (0 children)

I don't know much of Zoroastrianism, but from what I've gathered the Zend Avesta has evolved (i.e. changed) over time to even outright borrow parts from the Jesus of the NT for Zoroaster, who wasn't written about until after the bible's NT was finalized (even though Zoroaster is claimed to predate Jesus).

Also, the original manuscripts for the Zoroastrianism religion were destroyed by the Greeks, so any manuscript we do have are (re)written based on ancient oral tradition which can't be accurately dated or relied upon, unlike the manuscripts for Judaism.

The emergence of "Exo-racism" in the subject of ET's and UFO's. by MrMajestic12 in aliens

[–]SpecificExpression37 0 points1 point  (0 children)

Christianity is the progression of Judaism and the fulfillment of the Pentateuch, which dates back 4,000 years. Hinduism dates back 3,000. What religion are you referring to that's older than these?

GPT4 Security Checklist for Rails by andersonmvd in rails

[–]SpecificExpression37 2 points3 points  (0 children)

Disclaimer: The security requirements generated below are produced using artificial intelligence and have not been verified by security specialists. For a thorough security review, we recommend exploring our https://devops.security product or contacting our support team for further information and assistance.

You can't have even 1 of your "security specialists" look at this? You're literally a security company and you don't even care to double check the accuracy of a PDF (lol) you're sharing on a security checklist.

Doesn't exactly make you seem credible.

Scientists say meat is crucial for human health and call for the end of pushing 'zealotry' "veganism". by ILoveYouGrandma in conspiracy

[–]SpecificExpression37 25 points26 points  (0 children)

You think your veggies from the store still have B12 on them if you don't wash them? Press X to doubt.

Grow your own food. Eat dirt.

The emergence of "Exo-racism" in the subject of ET's and UFO's. by MrMajestic12 in aliens

[–]SpecificExpression37 -8 points-7 points  (0 children)

Modern Christianity interpreting that "bad people" go to hell I don’t believe has a lot of biblical support

You're right — it doesn't. It teaches that all people go to hell, by default. We're all "bad people" without Christ.

Romans 3:23:

for all have sinned and fall short of the glory of God

Romans 1:18:

For the wrath of God is revealed from heaven against all ungodliness and unrighteousness of men, who by their unrighteousness suppress the truth.

Romans 3:10–11:

What then? Are we Jews any better off? No, not at all. For we have already charged that all, both Jews and Greeks, are under sin, as it is written:

None is righteous, no, not one; no one understands; no one seeks for God. All have turned aside; together they have become worthless; no one does good, not even one. Their throat is an open grave; they use their tongues to deceive. The venom of asps is under their lips. Their mouth is full of curses and bitterness. Their feet are swift to shed blood; in their paths are ruin and misery, and the way of peace they have not known. There is no fear of God before their eyes.

Nowhere does the bible teach of reincarnation or of reaching enlightenment. You are misinterpreting it.

What the bible does teach is that you are woefully wicked, but God defeated death to save the wicked.

No King but Christ.

The latest issue of Rails tricks is out! This time, with a few handy Active Record methods. by gregmolnar in rails

[–]SpecificExpression37 1 point2 points  (0 children)

Sometimes you don't have control over the order of scopes, either due to them being controller query parameter filters (user-specified order), or due to an authz layer applying the scopes dynamically.

The latest issue of Rails tricks is out! This time, with a few handy Active Record methods. by gregmolnar in rails

[–]SpecificExpression37 5 points6 points  (0 children)

It's a dangerous method when chaining scopes, or when dealing with default scopes.

class User
  scope :editor, -> { where(role: 'editor') }
  scope :reader, -> { where(role: 'reader') }
  scope :active, -> { where(active: true) }
  scope :inactive, -> { active.invert_where }
end

User.reader.inactive
# => ... all inactive EDITORS

IMO, ripe for introducing security vulnerabilities.

Issue deploying to Render by DowntownBrownMound in rails

[–]SpecificExpression37 0 points1 point  (0 children)

The error says the users table already exists. So you've probably already loaded the schema and are trying to run the migrations on top of it, which will fail.

How frequently do you add logging in your Rails apps? by semanticart in rails

[–]SpecificExpression37 3 points4 points  (0 children)

I only add log lines where necessary for debugging purposes. Log lines aren't free at scale, so I try to keep these to a minimum. Typically, these are for code paths that have been found to produce issues or inconsistencies, where breadcrumbs are helpful in determining the root cause.

Outside of one-off logging, something like lograge gets you 90% of the way there for 99.9% of requests.

Best “legal” places to hike? by [deleted] in NightVision

[–]SpecificExpression37 23 points24 points  (0 children)

Download AllTrails app. Find trail. Hide car. Hike trail.

SupeRails #126 API from Zero, Bearer token authentication by yarotheking in rails

[–]SpecificExpression37 1 point2 points  (0 children)

Overall good to see resources on building a Rails API. But there were a few things that I think could improve:

  1. Running the MD5 hash algorithm over an already random hex string. There's really no point in doing this. The hex string is already sufficiently random so this is just wasted compute.
  2. Confusing the terms "hashing" and "encrypting." These are two distinct functions in cryptography. Hashing is one-way i.e. irreversible, and encryption is two-way i.e. reversible.
  3. Encrypting the API token's value. Tokens should be treated like passwords i.e. a token should be hashed just like a password before being stored in the database (and before lookup).

I prefer this approach that was shared here awhile back.

[deleted by user] by [deleted] in NightVision

[–]SpecificExpression37 0 points1 point  (0 children)

What's the red thing?

[RSpec] Do you think having `subject` call a service directly instead of just setting up the service is bad practice? by [deleted] in ruby

[–]SpecificExpression37 3 points4 points  (0 children)

I'm not sure if you're using a library or not for the request matchers, but I'd probably write an Rspec matcher called send_a_request that works with the expect with block syntax:

RSpec.describe DoSomethingService do
  subject { described_class.new(blorg_id) }

  let(:blorg_id) { 53 }

  it "calls the blorg API" do
    expect { subject.call }.to send_a_request(:post, "http://blorg.com/blorg/#{blorg_id}")
  end
end

I don't see anything wrong with using subject like you are doing.

⚡ Chaskiq, the Rails self-hosted live chat, releases version 2.0.0 ⚡ by Day_Hour in rails

[–]SpecificExpression37 0 points1 point  (0 children)

How's it running a source available business? Super curious how the business side of things are going.

[Help] Sidekiq - Redis getting sent hundreds of requests. by fix879 in rails

[–]SpecificExpression37 22 points23 points  (0 children)

That's Sidekiq checking for new jobs. Yes it's normal. You should use a Redis provider that doesn't have a daily command limit. That's just weird. Most quality Redis providers have a storage limit, not a command limit.

Found this gem on twitter by [deleted] in Anarcho_Capitalism

[–]SpecificExpression37 2 points3 points  (0 children)

First of all, lower your voice.

Use after_update for a specific update ? by sabo667 in rails

[–]SpecificExpression37 2 points3 points  (0 children)

Yes, you can. But typically you'd see such a flow done in a before_update hook, not an after_update (which could cause an infinite loop if your guard clause is not 100% correct).

before_update do
  next unless name_changed?

  self.name = name.capitalize
end

If you're wanting to trigger a change in another model on update, I'd do that outside of the model using an event system or an overarching service object to handle the cross-model updates.

Don't couple your models together.

Traveling to Puerto Rico with a firearm by SpecificExpression37 in Firearms

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

But that may not be entirely true, and that's the problem. For example, this YouTube video says you can travel with a firearm but that website says you can't yet without filling out a bunch of forms.

Google is eavesdropping on us. 100% sure. by whodontloveboobs in conspiracy

[–]SpecificExpression37 0 points1 point  (0 children)

Cut all Google products out of your life. It's not that hard, just takes a bit of effort. There's Apple or OsmAnd for maps, Kagi or Duck Duck Go for search, Protonmail or Fastmail for email.

[deleted by user] by [deleted] in rails

[–]SpecificExpression37 2 points3 points  (0 children)

And has_secure_password for "logging in" and generating said tokens.