All Articles
A review of some on-prem software services
I recently came by this picture at r/selfhosted and thought it useful for reviewing which services I use, and more importantly, which services I am missing.
The original post said that he hosted all of these on a single raspberry pi. Regardless of whether that is the case for you, or for me, I think reviewing which services are running, would be useful.
Drupal: how to redirect to a specific page after login
In this article, we'll look at two ways to redirect the user who is logging in, to a specific page in Drupal (version 9.5). First, Thesavvyfew alludes to a code solution that could be utilized:
[FIXED]: Psych::AliasesNotEnabled: Alias parsing was not enabled. To enable it, pass aliases: true to Psych::load or Psych::safe_load
This happens on older versions of ruby and rails.
Solved by downgrading psych:
# Gemfilegem 'psych', '< 4'
[FIXED]: s3fs: could not allow cache directory permission, check permission of cache directories.
The solution is, make sure that the file /etc/fuse.conf has the following line:
user_allow_other
A script to backup Chrome bookmarks
I've used the following script to do this:
A list of one-click deployment providers
As Wasya Co offers one-click deployments of several applications and stacks, it makes sense for us to track our competitors. Nothing is new under the sun, and turn-key web applications (appliances) have existed for quite some time. There are many, many solutions for deploying infrastructure as a service (IaaS, SaaS). Multiple industries support the general Installation & Provisioning specialization. Of note, Docker, which we use extensively in-house, provides "one-click" deployments at scale, and more.
25 Livros de Contabilidade Grátis
Mergulhe no mundo dos números com nossa seleção de livros gratuitos de contabilidade em PDF.
A contabilidade é essencial para a gestão financeira de empresas e organizações, fornecendo a base para tomadas de decisões econômicas informadas.
Desde os fundamentos da contabilidade até as técnicas avançadas, nossa biblioteca digital foi projetada para apoiar estudantes, contadores e profissionais do setor em seu desenvolvimento e prática profissional.
Prefix type of variable after the variable name
This one is pretty easy. Between suffixes (namespaces), roots (what a thing actually is), and suffixes and all that, I like to use a suffix (a word-final thing, something that goes at the end of the word) that denotes the type of the thing (name, variable) being used. It probably sounds more complicated than it really is so here are some clarifying examples.
The following examples are either variable names, or properties of an object, or fields of a model, or methods in a class, or keys in a hash. Hopefully you get the idea.
[FIXED] How to prevent autocomplete in Visual Studio Code, and a few other customizations
If visual code opinionates about what you are typing, and you want it to stop, then perhaps you are looking for this setting:
"editor.acceptSuggestionOnCommitCharacter": falseDon't forget to backup your configuration file ~/.config/Code/User/setttings.json to be able to load it from backup later!
And while I have your attention, let's talk about configuring this text editor.
How to mock fetch and a state change in jest, react
tl;dr: I decided not to do it.
Since Enzyme is obsolete as of React 18, you would use <render /> and not <mount />. Therefore, you don't have a wrapper to manipulate and observe the state of the component being tested.
Furthermore, I'm really only testing the component because it's a best practice, and because of the expectation of future complexity. The state change itself is trivial:
[FIXED] Cannot find module babel-preset-react-app/ node_modules/@babel/runtime/ helpers/interopRequireDefault.js
The solution for me was to clear Jest cache:
./node_modules/jest/bin/jest.js --clearCache
[FIXED] Uncaught PHP Exception EntityStorageException: Invalid address: (to): at SqlContentEntityStorage.php line 815
Seeing this ^ error and currently don't know how to fix it. It happens only on some of my (presumably identically configured) websites. This is happening when a user attempts to post any comment.
Turns out, this was due to a workflow rule that attempted to email the author of a parent-comment and notify them that their comment has been replied to. Since there is no parent comment, there is no email to send a message to, which was causing the error.
[FIXED] Ubuntu Debian apt install issue: Failed to fetch, 404 Not Found
This is a non-obvious error I've observed in my docker containers running symfony on debian 11.
Found the solution on stack overflow. Re-installing the gpg key solved it:
wget https://packages.sury.org/php/apt.gpg apt-key add apt.gpg
What is max pain
Options trading is a complex field filled with various strategies and concepts that can influence the price movement of underlying assets. One such concept that traders often discuss is the "Options Max Pain." Understanding this concept can provide traders with insights into potential market behavior, especially as options expiration approaches. This article will explore what Options Max Pain is, how it's calculated, and its potential implications for traders.