Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Feed
All
Post Types
- Rants
- Jokes/Memes
- Questions
- Collabs
- devRant
- Random
- Undefined
Cancel
All
-
A de-addiction and rehabilitation center is a facility designed to help individuals struggling with addiction to substances like drugs, alcohol, or other harmful behaviors. The goal of these centers is to support patients in overcoming their dependencies, restoring their physical and mental health, and helping them reintegrate into society in a healthy, productive manner.4
-
Getting Started with Ruby on Rails: A Beginner's Guide
Introduction
Web development is one the fastest growing tech fields today. There are many different software available to develop web pages and applications. Ruby on Rails is one such software. This blog is perfect for a beginner starting with Ruby on Rails. We have provided an overview of what Ruby on Rails is. We have also explained the key features of RoR. Ruby on Rails tutorial gives a list of the components of the framework which enables learning ruby on rails for beginners. Some essential technical skills to learn as a beginner are also included in it.
What is Ruby on Rails?
Ruby on Rails, also known as RoR or Rails, is a web application development framework. It is written in Ruby programming language. It was first released in July 2004. It simplifies the development process through its modular components.
RoR can be leveraged to create robust, scalable web applications quickly and effectively. It provides high performance abilities and a secure environment. It is open source so it is also cost effective. Moreover, Rails has many different applications throughout various industries.
Features of Ruby on Rails
RoR is a comprehensive framework with many features. These are some of the key features which can be utilized in Rails.
Model-View-Controller Architecture -
The application’s data and logic are represented by the model. The view is in charge of showing the data. The controller handles input and interacts with the model to retrieve data, which it then passes to the view for display.
Active Records -
It is the object-relational mapping (ORM) of Rails. It connects Ruby classes to databases. It also provides a migration feature. Migrations provide a convenient way to alter the database schema over time.
Built-in Testing -
There are many simple testing tools in RoR. It allows users to ensure that their code functions properly. For example, RSpec allows developers to write tests for their applications in an organized manner.
Don’t Repeat Yourself (DRY) - It is a fundamental development concept that aims to reduce redundancy within codebases. It implies that one should avoid duplicating code or logic in multiple places. It increases the readability and efficiency of the code.
Convention over configuration (CoC) - It is a key emphasis of Rails. The platform has sensible defaults that reduce the need for extensive configuration files. This frees up the developer and allows them to focus on writing the core functionality of their applications. Scaffolding
This is a powerful feature since it allows developers to automatically generate basic codes. This code performs various operations, without the need to write everything from scratch. It also sets up routes for an application so that the web pages can be accessed through URLs.
Ruby on Rails Tutorial - Key Components
One needs to be thorough with the various components of Ruby on Rails to get started with it. These are some of the key components of RoR.
ActiveRecord - It is the ORM (Object-Relational Mapping) layer. It connects Ruby classes to database tables.
ActionView - Manages templates and rendering for the user interface. It uses Embedded Ruby (ERB) to create web pages.
ActionController - It manages the incoming web requests for the applications. It processes the input from the user and interacts with the model to retrieve data.
Routing - It links URLs to controller actions. This makes navigation intuitive. It allows developers to define URL patterns and associate them with specific controller actions.
ActiveModel - It provides a shared API for non-persistent objects. This ensures that they behave like ActiveRecord objects.
ActiveSupport - It is a collection of utility classes and standard library extensions that facilitate Rails development. It adds useful methods to core Ruby classes.3 -
Shampoo for women:
1. Nourishing papaya
2. Ipanema sunrise
3. Flourishing silk
Shampoo for men:
1. Auschwitz-Birkenau
2. 2001 Honda Accord
3. Gun5 -
From now on -and until further notice- I'll commit heinous crimes against each and any developer blaming GPT when their code is BAD.
YOU are in the workforce. Not GPT. YOU are responsible for the shit you write.
There is a reason GPT costs 200 bucks per month and you cost at least ten times as much. Own your mistakes, learn to code while you still have time, before the chatbot actually catches up and makes you obsolete.
Sincerely signed: the guy who straight up refuses to install copilot. I'm perfectly capable of introducing my own fair share of bugs, without relying on some autocomplete plugin.9 -
What I learned about C# this weekend:
1. I am shit at C#
2. There is a nice selection of libraries both from Microsoft and third party.
3. I like a lot of the design decisions to not make foot guns. Like you can't use an int as a bool. You must be explicit so you don't have hidden type conversions.
4. WPF isn't terrible, but it took me a bit to figure out how to make sure the front end can see changes by triggering events when a property changes. I knew this was a thing, but it took forever to figure out how. The new terminology for things is tripping me up.
5. I am shit at C#.
So what do I get out of 1.5 days of banging my head against the wall? An https server that simulates a hardware device and exchanges json messages back and forth. It does what my python code is doing now.
I found a nice library for https:
https://github.com/chronoxor/...
I learned quite a bit reading the code from this library.9 -
Someone broke in past weekend in my workplace. We have a separate storage room at the ground floor and that lock was brute forced.
But we have yet to find something that is missing. It's so weird. Was there really nothing of value there that could have been sold?6 -
Your christian mom: Life finds a way! 🤗
Fungi: L̦͙͕̈́͝͠I̳͎͕͋̿̈́F̢̼̞̓͝E̢̳͙͆̔̕ F̦̺̓͝I̝͚̟͊͑͝Ń͙̪͊͝D̪̳̒̾͠S̟͎͖̈́́͆ A̢̺̫̐͋͝ W͍͎̺͛͋̚A̡̝̫̿̽͝Y̫̘͉͐͋̚7 -
Cognito is the dumbest piece of crap ever known to man. Markets itself as a great & easy auth solution to dumbass CTOs who then force the devs to implement it.
I spent a week or so trying to figure out why my token expires immediately after logging in only to find out that they issued me a token that is already revoked.
WHAT THE ACTUAL FUCK COGNITO???? -
It's nice to see people waking up and realizing the fallacies of AI.
Given that I've been against AI since day 1, it's giving me a little superiority complex ngl.18 -
I plainly told the manager responsible for programming that we all use web extensions and there's just no way to effectively prevent programmers from running whatever software they deem necessary, so I'm suggesting to allow them in Windows group policy purely as a matter of efficiency.
It has only just occurred me how much I'm relying on his better judgment not to try and crack down on this.
Wish me and my team luck.rant web extensions organizational blind spots extremely neurotypical behaviour dark reader ublock origin30 -
Realtek fucking sucks on Linux. I wasted two days trying to get their shitty USB WiFi dongle to work, only to find out it doesn't support AP mode with the Linux driver. It works fine on Windows, but not on Linux. Realtek doesn't support their modern USB WiFi chipsets with in-kernel drivers. This is true even though we saw in-kernel support for some Realtek WiFi 5 chipsets in 2023—however, that support was added by a Linux community developer, not Realtek.
Realtek does make non-compliant Linux drivers for many USB chipsets, but they don't publicly release them or accept problem reports. A few vendors post Realtek USB WiFi drivers at irregular intervals, but they’re only available in source code format and must be compiled. These drivers don't keep up with changes in new kernels, so it falls on people like me in the community to maintain them.
Am I a fan of how Realtek supports Linux? Absolutely not.
Users of Realtek’s out-of-kernel drivers often ask why these drivers aren't included in the Linux kernel. The answer is simple: the drivers are not Linux standards-compliant, Realtek doesn’t provide documentation, and creating new drivers would be easier, though it’s a huge task.
While there are Realtek out-of-kernel drivers available, they are not recommended for general Linux users. These drivers are meant for skilled programmers working on embedded systems, not for casual users. Those using desktop distros like Ubuntu, Debian, Manjaro, Fedora, Raspberry Pi OS, or others will find adapters with in-kernel drivers to be more stable, reliable, and feature-rich.
My testing over the past couple of years has shown good results for WPA3 with in-kernel drivers. I’ve tested USB WiFi adapters ranging from N150 to AXE3000, and adapters using Mediatek/Ralink and Atheros chipsets with in-kernel drivers work well with WPA3. Keep in mind that your Linux distro must support WPA3 for it to function properly. As of mid-2022, all distros I use, including Ubuntu 22.04 LTS and later, work well with WPA3.
Most modern out-of-kernel drivers (like Realtek) now support WPA3-SAE, but not all. Realtek has stopped working on most of its WiFi 5 out-of-kernel drivers as of mid-2023, so be careful when purchasing, or you could end up with a dead-end product.4 -
Has anyone moved into A.I. programming from a decently long web dev career. Or maybe you work in AI and you have 2c.
Worried about what comes next. So, I've decided to pivot hard into core math and comp sci like linear, calc, probability, dsa.
Worth it? Naive? I was a calculus tutor way back.7 -
I'm gonna scream the next time I hear a newscaster or some podcaster or some other bloke try to explain "what AI is" by giving some half assed word salad describing (a child's perception of) neural networks.
Fuck, back when the internal combustion engine was invented, did the newsies and radio hosts explained the concept of "explosion" every time they were to talk about engines?4 -
Guys what the hell.
I clicked “update and shut down” and it honestly did it. It didn’t restart and leave my laptop running. It actually really for real genuinely earnestly updated and SHUT DOWN. Microsoft finally figured it out? They finally did it?????7 -
The spam filter bot lost it's downvote privileges, already.
Well, it was fun while it lasted. Sigh.22 -
I think I‘ll bite the bullet and write my own version of SwiftRant (Swift REST API for devRant) with modern concurrency and a clean implementation and without semaphores and force unwraps which cause app crashes.9