Fueling Curiosity, One Insight at a Time
At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.
Mar 15, 2024
When eslint is not working on your repository in local for any reason you can try restarting the ES Lint Server on VS Code, and if the issue is cause cause server is not reading the config from root directory you can set
#javascript #eslint
root: true
in your eslint config file, that should resolve the issue. And to fix all your lint issue in a single commit you can use command npx eslint . --fix
.#javascript #eslint
Vaibhav Yadav
Senior System Analyst
Mar 15, 2024
Rails
1. It first attempts to run
2. If the database does not exist, it falls back to
In summary,
#rails
db:prepare
command follows these steps:1. It first attempts to run
db:migrate
to apply any pending migrations. This step ensures that the database schema is up to date with the latest changes defined in your migration files.2. If the database does not exist, it falls back to
db:setup
to create the database, load the schema, and seed it with initial data. This step is crucial for setting up a new database or ensuring that an existing database is correctly initialized.In summary,
rails db:prepare
is a powerful command for ensuring your database is ready for use in your Rails application#rails
Ayush Srivastava
System Analyst
Mar 14, 2024
The rails plugin command simplifies plugin management. Plugins can be installed by name or their repository URLs. You need to have Git installed if you want to install a plugin from a Git repo.
#rails #gem
$ rails plugin install https://github.com/countries/countries.git
#rails #gem
Ayush Srivastava
System Analyst
Mar 14, 2024
Consumable products does not have certain properties such as
Reason being, storable product needs accurate inventory tracking where as consumable product focuses on purchase and expense records without maintaining detailed inventory levels.
On Hand
& Forecasted
while Storable products has it.Reason being, storable product needs accurate inventory tracking where as consumable product focuses on purchase and expense records without maintaining detailed inventory levels.
satya
Mar 13, 2024
To create products in odoo.
• Navigate to Products > Products
• Click on "New" and fill in the necessary details like product name, sales price, cost, product type and any other relevant information.
• Click on "Save".
And now the product will be available in the Inventory Adjustment for us to add in stock.
#inventory-management #wms #odoo
• Navigate to Products > Products
• Click on "New" and fill in the necessary details like product name, sales price, cost, product type and any other relevant information.
• Click on "Save".
And now the product will be available in the Inventory Adjustment for us to add in stock.
#inventory-management #wms #odoo
Syed Sibtain
System Analyst
Mar 13, 2024
Delivery Order
in Odoo is used for sending goods from warehouse to customer and external parties, to transfer between warehouses use Internal Transfers
in Odoo.#inventory-management #wms #odoo
satya
Mar 12, 2024
If using Podman (instead of Docker for Mac) and trivy for image scanning, trivy expects DOCKER_HOST env variable to be setup for scanning local images and fails unless DOCKER_HOST is pointing to the podman socket.
Fix:
#docker #devops
Fix:
$ export DOCKER_HOST="unix://$(podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}')"
$ trivy image image_name
#docker #devops
Gautam
Director
Mar 2, 2024
atob()
function decodes a string of data which was encoded using Base64 encoding and btoa()
method encodes the datasujay
Mar 1, 2024
•
•
ActiveSupport::TimeZone.all
which likely fetches a list of available time zones supported by the ActiveSupport library in rails.•
Date::ABBR_DAYNAMES
, which is an array containing abbreviated names of the days of the week (e.g., ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]). This array is provided by Ruby's Date class, making it convenient for developers to access the names of the days without manually typing them out.Giritharan
System Analyst
Mar 1, 2024
While exploring a lengthy code file, we often need to see the available properties and methods without diving into their implementation. In VS Code, this is quite easy with "Fold Level 1" functionality. This feature collapses the code to display only the top-level structures, which makes it easier to understand the file's architecture without getting into the details.
To Use Fold Level 1:
1. Open Command Palette:
2. Select
#vs-code, #coding
To Use Fold Level 1:
1. Open Command Palette:
Ctrl+Shift+P
(Windows) or Cmd+Shift+P
(macOS).2. Select
Fold Level 1
: Now, only the main parts of our code will be visible.#vs-code, #coding
Ashwani Kumar Jha
Senior System Analyst
Showing 23 to 25 of 77 results
Ready to Build Something Amazing?
Codemancers can bring your vision to life and help you achieve your goals
- Address
2nd Floor, Zee Plaza,
No. 1678, 27th Main Rd,
Sector 2, HSR Layout,
Bengaluru, Karnataka 560102 - Contact
hello@codemancers.com
+91-9731601276