119 liens privés
Microsoft recommends to uninstall our latest version. Apparentlyl, there were fixes, but those introduce more bugs...
Beyond fixing ? ;-p
Bundler behavior changed.
A great change, probably the one change I was expecting.
Quick, local file server
`
$ caddy file-server
`
Public file server over HTTPS
`
$ caddy file-server --domain example.com
`
HTTPS reverse proxy
`
$ caddy reverse-proxy --from example.com --to localhost:9000
`
Run server with Caddyfile in working directory (if present)
`
$ caddy run
`
create a tunnel , route traffic to your computer.
Ngrok exposes local servers behind NATs and firewalls to the public internet over secure tunnels.
Example output :
Url Description https://wallabag.e-jambon.com # Wallabag ## What's it about Read it later ## What' inside ...
Has many options, it's just great.
From csv to markdown, xml, html, yaml, ruby, latex...etc etc.
This one goes instantly in my bookmark !
The extension allows you to copy selected text on a page as Markdown with support for features including the following
Ability to copy links, images, and selected text as Markdown.
Linked images, will have options to individually select link or images.
Formatted text such as italic, bold, strike-through, and inline code.
Unordered and ordered lists, with task lists support.
Tables, with respect to GFM.
Fenced code blocks, with language detection using info strings.
Given how much I use markdown everyday, I just can't live without it.
As I mention often, markdown is my goto format when I write docs.
This online tool converts from excell/openoffice and such to markdown.
It has some limitations (for example in number of columns or lines)
I wish it was open sourced : I would host my own copy...
tiple computers by physically turning a dial on the box to switch the machine you're controlling at any given moment. Barrier does this in software, allowing you to tell it which machine to control by moving your mouse to the edge of the screen, or by using a keypress to switch focus to a different system.
Check End of Life, Support Schedule, and release timelines for ....
Really very usefull.
In other terms :
a = 2
=> 2
Assignment can be used in a condition :
example = "lorem ipsum"
if (my_var = example.length) > 10
my_var/2
else
myvar * 2
end
Un autre outil pour transformer des pages web en document partageable.
Dispose d'une api documentée
Permet d'utiliser un "snippet" dans le browser pour appeler directement l'api depuis la page en cours) -- super pratique.
Un système de paiement qui rend les transactions en ligne privées, rapides et faciles.
- Paiements sans enregistrer de compte
- protection des données par défaut
- Fraude impossible par conception
- Ce n'est pas une monnaie !
- Permet aux communautés d'avoir leur propre infrastructure de paiement
- logiciel libre
A évaluer sous tous les prétextes !
I restart local database (postgres in a docker container) and then my server bundle exec bin/rails s
After that I go to the console with bundle exec bin/rails c
(or bin/rails c
or bundle exec rails c
),
being in the project root folder.
Sometimes (not sure exactly why yet), environment get messed up.
When trying a request such as : User.count
I get a weird error.
could not connect to server: No such file or directory (ActiveRecord::ConnectionNotEstablished)
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
While the server is running locally and could connect to the database.
It happens the console explicitly starts with the following announcement :
Running via Spring preloader in process 1720240
Hey ! That's a good hint.
Of course, I did disregard it completly for a couple hours -- more than once.
The solution is so often related though. You reload the database and the server,
under spring preloader's feet.
spring prelaoder is so lost ! Let's restart it too.
Solution :
spring stop
bin/rails console
and voilà ! It works again.
Edit 2022-01-23 :
Beware, in the new console, if you do User
and get this answer :
User (call 'User.connection' to establish a connection)
Solution is very simple : User.last
and there you go. Connexion established, problem solved
I restart local database (postgres in a docker container) and then my server bundle exec bin/rails s
After that I go to the console with bundle exec bin/rails c
(or bin/rails c
or bundle exec rails c
),
being in the project root folder.
Sometimes (not sure exactly why yet), environment get messed up.
When trying a request such as : User.count
I get a weird error.
could not connect to server: No such file or directory (ActiveRecord::ConnectionNotEstablished)
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
While the server is running locally and could connect to the database.
It happens the console explicitly starts with the following announcement :
Running via Spring preloader in process 1720240
Hey ! That's a good hint.
Of course, I did disregard it completly for a couple hours more than once.
The solution is so often related though. You reload the database and the server,
under spring preloader's feet.
spring prelaoder is so lost ! Let's restart it too.
Solution :
spring stop
bin/rails console
and voilà ! It works again.
Notez bien mes mots : TOTAL BULLSHIT.
Raz le bol des gourous obscurantistes qui racontent ce genre de merde depuis quelques années.
Voilà bien un truc qui m'agace depuis un bail.
- Les "apprenez en 20 minutes"
- Les "devenez programmeur en 3 semaines"
- L'informatique "no code"
- L'IA va remplacer l'homme
La création, sans effort, ça n'a que très peu d'intérêt, ça n'est ni satisfaisant, ni éducatif. Du moins pas plus que n'importe quel acte banal comme "faire caca".
Alors certes, «il a dû être drôlement fier de lui, le premier homme qui a fait caca », c'est amusant. Mais de là à en faire son commerce, c'est purement et simplement de l'ordre de l'obscurantisme, du charlatanisme ou du maraboutisme.
Files is a good alternative to windows 'explorer', which does not even have tabs.
Just a great resource
match command-line arguments to their help text
Simple to use :
- Read csv using headers to name symbols
- Parse table like each row is a hash where each column header is a symbol's name.
- do whatever you want with value.
Example :
require 'smarter_csv'
# Class CodePostaux
class CodePostaux
attr_accessor :csv_file_path, :cp_hash
def initialize(csv_file_path)
@csv_file_path = csv_file_path
@cp_hash = Hash.new
end
def read_csv
SmarterCSV.process(@csv_file_path, {col_sep: ';'})
end
end
output = File.open('./test/minitest/fixtures/code_postaux_provisioning.rb', 'w')
codes_postaux.each do |value|
output.write("PostCode.create(code: '#{value[:code_postal]} #{value[:nom_commune]}')\n")
end
output.close
I'm not recommending Google Chrome.
This "comic" though is an interesting presentation.