Hacker Newsnew | past | comments | ask | show | jobs | submit | timonoko's commentslogin

Try this:

  (menu-bar-mode -1)
  (setq inhibit-splash-screen t)
  (setq inhibit-startup-echo-area-message t)
  (global-set-key "å" 'hippie-expand)
  (global-set-key "∆" 'toggle-truncate-lines)
  (global-set-key (kbd "<f12>") 'toggle-truncate-lines)
  (xterm-mouse-mode 1)
  (global-set-key (kbd "<mouse-5>") 'scroll-up-command)
  (global-set-key (kbd "<mouse-4>") 'scroll-down-command) ;
  (global-set-key (kbd "<wheel-up>") 'scroll-up-command)
  (global-set-key (kbd "<wheel-down>") 'scroll-down-command) ;
  (setq case-fold-search t)
  (setq-default truncate-lines t)
  (setq sort-fold-case t)
  (autoload 'scad-mode "scad-mode" "A major mode for editing OpenSCAD code." t)
  (add-to-list 'auto-mode-alist '("\\.scad$" . scad-mode))
  (require 'scad-preview)
  (global-set-key (kbd "Å") 'dabbrev-expand)

  (add-hook 'python-mode-hook 'whitespace-mode)
  (setq whitespace-line-column 128)
  (custom-set-faces
   '(default ((t (:background "#000000" :foreground "#ffffff"))))
   '(whitespace-space ((t (:background "black" :foreground "blue"))))
   '(whitespace-tab ((t (:background "black" :foreground "blue"))))
   '(whitespace-newline ((t (:background "black" :foreground "blue"))))
   '(whitespace-empty ((t (:background "black" :foreground "grey50")))))

I have webserver in Termux which is viewed in a watch.

Kinda difficult to explain. But Copilot says:

Provide a single-line weather summary (temperature, wind direction name + degrees, wind speed, symbol text) for use elsewhere (repo name suggests it’s for a clock/display).

https://github.com/timonoko/Supersaa_kelloon


Norway is also particularly Not Suitable for petrol-powered autos.

If you live near Holmenkollen you do not need battery charger at all. With regenerative charging you have already %30 when you are in Oslo and you need only some more charge from Vinmonopolet parking lot to get back home. Basically free energy created from thin air.


Also, many tunnels. Less fumes makes a difference.

Gemini-cli made very good laser cutter methinks. Inkscape drove me nuts. From shape to GCODE directly. SVG considered superfluous.

  https://github.com/timonoko/laser-cutting-contours

Gemini-cli works on termux. I have learned for example that there is TRAP and TIMEOUT commands in BASH.

"Turn the brightness full on entry and normal on exit" seemed unsolvable because I did not know about TRAP.


Bash is becoming more relevant than ever nowadays!

I saw TV first time in 1957. Finland had no TV transmitters, so programs came from Soviet Estonia. I distinctly remember watching romantic Russian film with a catching tune. Perhaps named "Moscow Lights"?

How this is even possible that I remember all this, because I was 4 yrs old?

Gemini knows:

The Film: In the Days of the Spartakiad (1956/1957)

The song "Moscow Nights" was originally written for a documentary film called "In the Days of the Spartakiad" (V dni spartakiady), which chronicled a massive Soviet sports competition.

The Scene: In the film, there is a romantic, quiet scene where athletes are resting in the countryside near Moscow at night.

The Music: The song was sung by Vladimir Troshin. It was intended to be background music, but it was so hauntingly melodic that it became an overnight sensation across the USSR and its neighbors.

The Finnish Connection: In 1957, the song became a massive hit in Finland and Estonia. Since you were watching Estonian TV, you likely saw a version where the dialogue or narration was dubbed into Finnish—a common practice for broadcasts intended for Finnish-speaking audiences across the Gulf of Finland.


Isn't it wild that you are asking 5th (or so) technological miracle that happened in your life time about the first one you remember?

I actually thought that the "Computer" was some kind of abstract construct in 1971. And "programs" were just a method of expressing algorithms in textual manner. Only when we were allowed to have brief interactions with Teletype, did I believe there was actual machine that understands and executes these complex commands. Mind Blown.

I was busy being born that year :)

I easily have many memories from age 4. I think I even remember the first time that I started forming memories. It was a few years before that, I had come out of my room and saw some toys I was playing with the night before. I realized they were at the same spot I left them, which made me realize the world had permanence and my awareness had continuity. I could leave things at a certain spot and they would be there the next day, that I could build things and they would stay that way. I realized I could remember things, in a way like "homo sapiens sapiens" being thinking about thinking, I realized I remember that I could remember.

This is a fascinating post but I don't believe it reflects (most) human memory development, which has a pronounced forgetting phase called 'childhood amnesia'. When your kid starts to talk, it's startling what a two-year-old can remember and can tell you about. And it's kinda heartbreaking when they're 4-5 and you realise that those early memories have faded.

Note that your memories might not be accurate, as your brain may have skightly altered them over the years, over and over. There is generally no way for yourself to know (except for some external proof).

This is not just the case for early childhood memories, but for anything - the more time passes, the less accurate. It's even possible to have completely "made-up" memories, perceived as 100% real, e.g. through suggestive questioning in therapy.


I can relate. I often feel like my earliest memories are now more like memories of memories, and I dimly recall that it wasn’t always like that.

Definitely have some memories from 3 years old - some people claim earlier and I wouldn't doubt that, although it's very rare for memories before 2 to be recalled episodically.

It's also hard to be sure if early memories are actually memories from the actual event or are memories your brain constructed from later hearing people describe the event.

There was one experiment where researchers got a man's family at a holiday gathering of the extended family to start talking about funny things that had happened to family members when they were children. In particular the man's parents and siblings told about a funny incident that happened to the man during his 3rd grade school play.

The man had earlier agreed to participate in some upcoming psychological research but did not yet know the details or been told when the research would start.

Later he was contacted and told the research would be starting soon, and asked to come in an answer some background questions. They asked about early non-academic school activities and he told them about his 3rd grade play and the funny incident that happened, including details that his family had not mentioned.

Unbeknownst to the man the research had actually started earlier and the man's family had agreed to help out. That story about the 3rd grade play that his family told was actually given to them by the researchers. None of his elementary school classes had put on any plays.

This sort of thing can be a real problem. People being questioned about crimes (as witnesses or suspects) can get false memories of the crime if the person questioning them is not careful. Or worse, a questioner could intentionally get them to form false memories that they will later recall on the witness stand.


The memories are probably nothing like how they were at the time, but I vividly remember running away from my parents with my elder sister, getting bullied by an extremely blond girl at day care, and falling and literally eating dirt including that it was salty around 2-3.

But at some point don't you lose the direct memory, and only retain remembering it? Eg I don't know that I directly remember the fight I got in with the neighbor kid at age 4, but I can definitely remember thinking about it for a something we had to write in school around age 8. Or at least I could when I was in high school. That's when I thought about the time I had to write that essay when I was 8. At some point all I remember are the like the layers of subsequent thoughts about the original event, and I don't really access the original event any more, or it's just a stub.

At some point, most memories are like that, to be honest – not just early childhood ones. You could say I consider these are "vivid" because I can recall more details of them than of the average memory.

I have one memory that I can place between late 2 and early 3: my mum telling me I was going to have a brother. When he was born, I was 3 years and 6 months old.

link to "Vladimir Trochin - Moscow nights (1956)" https://youtu.be/fRFScbISKDg?si=UsVHVnlnUnU2SP6v

My first memory of TV (but not my earliest memory by far) was, at age 4, seeing the first Space Shuttle launch. It was live on a little black-and-white set my parents had in their bedroom.

----


Wasnt Germany weirdly anti-nukular already 60 years ago. Where did it came from?

I remember in a train 1971 passing some Nuclear Towers and whole train expressed displeasement at the scenery. Kinda scary actually, because they started staring at me for not joining the crowd.


Gemini knows:

The "Atomtöd" (Atomic Death) Campaign (1950s) Before civil nuclear power even existed, West Germany had a massive "Ban the Bomb" movement. In the late 1950s, the government considered allowing U.S. nuclear warheads on German soil. This sparked the Kampf dem Atomtod (Fight Atomic Death) movement.

The Result: The German public learned to associate the word "nuclear" with total destruction and the Cold War arms race long before they ever saw a power plant.


It would be much funnier, if the Cube was at origo. So indexes are {-1,0,+1}. And thus Cube[0,0,0] is empty, or maybe there is a ball with 6 screw-holes in it.


Nearest nonhuman intelligence seems to be the only one to appreciate this approach. It shortens the code and also search space as it is easier to recognize symmetries.


I just discovered alt-scroll just by accident.

  Desktop Zoom (Xubuntu/Kubuntu): In Xfce (Xubuntu) and KDE (Kubuntu), Alt + Scroll is the default shortcut to zoom in and out of the entire desktop. This is an accessibility feature used to magnify specific parts of the screen.


Also I have "make-icon" to bragg about:

  convert  -size 24x24 -gravity center -background yellow -fill black\
     label:$1 ~/.local/share/icons/$1.png
  file=~/.local/share/applications/$1-noko.desktop
  echo [Desktop Entry] > $file
  echo Name=$1 >> $file
  echo Comment=noko-made >> $file
  echo Exec=$1 >> $file
  echo Terminal=false >> $file
  echo Icon=~/.local/share/icons/$1.png >> $file
  echo Type=Application >> $file


    cat <<EOR > "${file}"
      [Desktop Entry]
      Comment=Bash has heredocs.
    EOR
I think the reason they are confused is that this is entirely out of context.


What exactly do we see here?


A shell injection vulnerability ad soon as somebody copies the same approach somewhere else or trained your LLM on it.

Write correct code by default, always, otherwise it will end up somewhere you care about.

The best way to do that is to avoid shell, as a language that makes writing insecure code the most convenient.

(The original intent looks like it's making a desktop/launch icon, e.g. you might call it with "firefox" as an argument and it would put its logo into an application starter, provided a logo of the correspond name is already in the place the script expects.)


Erh? Bash-reading disability?

make-icon ABCD:

1) Makes a small picture ABCD.png from the first letters of the string "ABCD".

2) Makes ABCD application icon to using the picture ABCD.png.

3) Moving youres pointing device on that icon and pressing appropriate button now executes ABCD.

"convert" is from Imagemagick of course.


Neat! Does someone know a way to implement this in hyprland?


Nobody knows. I wanted preset zoom for watching widescreen movies on laptop. But xev does show anything at alt-scroll.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: