hongy19’s blog

wifi error for raspberry: brcmfmac: brcmf_set_channel: set chanspec 0x100e fail, reason -52


 

I couldn’t connect to my raspberry pi for several days. Today I conducted a trouble shooting. 

At beginning, I think system is down due to flashcard broken but later I found raspyberry still has ipv4/ipv6 address from home router. I tried to ssh but not successful. I ping the server first, ping is Ok. Then I could ssh server successfully.

it seems i am not the only guy who has this issue, see 

Read more ⟶

python typing check


  • Docstring Linter
  • pydocstyle
  • Style Linter
  • pylint
  • pycodestyle
  • Error Linter:
  • pyflake
  • pylint
  • Complexity Analysis
  • mccabe
  • flake8
  • flake8 = Pyflakes + pycodestyle + mccabe
  • type checker:
  • mypy
  • run it on command line
  • run it with language server, for example: pylsp
  • run it with Jupyter
  • nb-mypy: configure it with ipython configuration or run it with command in jupyter
  • jupyter-lsp + pylsp
  • Language server
  • pyls and pylsp
  • prefer to use pylsp instead of pyls, seelink for detail.
  • difference between different linter tools
Read more ⟶

racket


racket is one of scheme dialect and I want to use racket to learn “the litte schemer”. One of problem I meet is how to load file with scheme code (not racket code) into REPL and run relate function. In guile, it is very simple: guile -l my_function.scm. but in racket, it is little complex.

  • with load (traditional scheme file, no #lang)

 it could work “racket -if <my_function.scm>” but my_function.scm should not start with “#lang racket”. it is same with load function

Read more ⟶