Better HN
topnewbestaskshowjobs
Log inSign up

is_taken

72 karma · joined Oct 25, 2022 (4y ago) · 33 submissions

Submissions

1.

Felix "fx" Lindner has died(blog.recurity-labs.com ↗)

133 points · by is_taken · 9mo ago · 35 comments

comment 10mo ago · link · parent

As usually the schematics were available in the manual it was not too hard to add some additional static ram. There were unused address lines available which could be used for chip select.

comment 11mo ago · link · parent

a) Do these inode issues also happen with the supplied (v4) kernel? b) Do these inode issues also happen with a rebuilded kernel which uses the original lib1 and lib2?

I once had strange effects on V6 if lib1 and/or lib2 were rebuild by me.

Should be not hard to test.

comment 1y ago · link · parent

Seems to redirect to some online casino?

comment 2y ago · link · parent

Jetbrain's CLion with the pico sdk. Yeah, that means C.

comment 2y ago · link · parent

If you want to use multiple technologies in a single project you should not run Goland, PhpStorm etc. but IntelliJ with plugins. Then you don't need to switch IDEs.

comment 2y ago · link · parent

You could checkout void and alpine.

comment 2y ago · link · parent

Maybe wrapfs.WithModTime(... should not use time.Now() but get the mod time of the running binary?

comment 2y ago · link · parent

Try this:

  find / -name '*core*'

comment 2y ago · link · parent

Are you sure the memory in this system is ok?

As it dumped core, could be interesting to "gdb it" and get a stackframe.

comment 2y ago · link · parent

Maybe this already helps: https://github.com/tldr-pages/tldr

comment 2y ago · link · parent

Have a look at the Teensy 4.1, it comes with 7936K Flash, 1024K RAM and you can even add up to 2x8Mb PSRAM iirc. Of course it's a bit more expensive but not much.

13.

Go 1.21.6 Released(go.dev ↗)

19 points · by is_taken · 2y ago · 15 comments

comment 3y ago · link · parent

Thanks for this. Actually helpful. Just cleaned my mbp.

Feature request: create a maximized window with as little decorations as possible using a black background so we can clean the display too.

comment 3y ago · link · parent

I use

  - Alfred
  - Cheatsheet
  - Bartender
  - 1Password
  - iTerm2
  - Moom (you could also check Rectangle)
  - Some IDEs from Jetbrains

comment 3y ago · link · parent

A PDP11/40 emulator for the Teensy 4.1 development board.

https://github.com/gounselor/Teensy11

comment 3y ago · link · parent

Other code quality issue encountered on a quick review:

  - use of utils package
  - use of models package
  - naming of receivers (too long)
  - returning empty structs instead of (nil) pointers
  - too much log.Fatal scattered around the code
  - unhandled errors, inconsistent error handling
    sometimes handled twice a la log.Printf(..., err) then    return err
    consider error wrapping here
  - useless use of err2 variables
  - use of Must functions which will panic if fail, transition to err producing fns
  - stuttering (digger.DiggerConfig)
  - naming things ...Impl instead of naming the interface ...er || ..or
    This is done correctly in tf.go, not so good in locking.go

For a complete review i would need more time.

comment 3y ago · link · parent

And i would actually rename cmd/digger/main.go to cmd/digger/digger.go (_test.go too)

Why? If you go build cmd/digger/main.go you end up with main, if renamed you end up with digger. Without using additional -o flags.

Also consider https://goreleaser.com/intro/

comment 3y ago · link · parent

I recommend run a linter against your codebase.

https://golangci-lint.run

https://github.com/go-critic/go-critic

https://github.com/mgechev/revive

comment 3y ago · link · parent

Interesting, but i don't get the difference between str and stur. To me it looks basically the same. Can someone ELI5?

comment 3y ago · link · parent

Stopped after reading that CopySlice example, seems the author is unaware of

https://pkg.go.dev/builtin#copy but yeah let's reinvent that wheel. And an option type too.

comment 3y ago · link · parent

I have the keyboard settings to use F1, F2 as standard fn keys. If i really need the mac functions (not so often) i can press Fn+F1 etc.

comment 3y ago · link · parent

Forgot to mention https://rectangleapp.com

comment 3y ago · link · parent

https://www.mediaatelier.com/CheatSheet/?lang=en

comment 3y ago · link · parent

I agree that iterm2 password manager is great (i use it too).

I just wanted to mention the sudo-fingerprint feature for the local machine in case someone did not know.

comment 3y ago · link · parent

I you want to try Alfred anyway, it has this multi clipboard functionality included.

comment 3y ago · link · parent

On Macs with touch id, you can enable sudo via fingerprint reader for the local machine.

https://apple.stackexchange.com/questions/259093/can-touch-i...

comment 3y ago · link · parent

One could consider using https://github.com/caarlos0/env instead of the hand-woven env var handling.

comment 3y ago · link · parent

Have a look at https://github.com/caarlos0/env

comment 4y ago · link · parent

Why not writing a small wrapper around time.Parse?

  func ParsedTimeOrNil(s string) *time.Time { 
   t1, err := time.Parse(time.RFC3339, s)
   if err != nil {
    return nil
   }
   return &t1  
  }
12