News for hackers. Stuff that matters.

kirjavascript

Re:How to Code Claude Code in 200 Lines of Code on Thursday January 08, 2026 @03:28PM (#46546013)
Re:SCREAM CIPHER ("ǠĂȦẶAẦ ĂǍÄẴẶȦ") on Saturday September 20, 2025 @02:24PM (#45315893)
here's a JS one liner that handles scream and unscream in one function

  transform=s=>[...s.toUpperCase()].map(s=>(l="BÁGẲLẬQǞVÀCĂHẴMẦRȦWẢDẮIǍNẨSǠXȂEẶJÂOẪTẠYĀFẰKẤPÄUȀZĄ")[l.indexOf(s)^1]||s).join``
Re:CSS Hell on Tuesday April 22, 2025 @09:43PM (#43767951)
transform is forbidden but -webkit-transform seems to work :^)
Re:After 34 Years, Someone Beat Tetris [video] on Tuesday January 02, 2024 @12:01PM (#38843872)
It can and we have achieved Arbitrary Code Execution in NES Tetris.

The setup is horrifyingly complicated and precise though, involving getting some near-impossible scores and entering specific names in the highscore list, then reaching the crash on the same frame that the internal values for random number generation happen to represent a jump instruction to said highscore list (and we get lucky and various registers also happen to contain values we need).

Then from there, there is some bootstrapping before total control is achieved.

Re:6502 back end for LLVM [video] on Sunday November 12, 2023 @09:33AM (#38240382)
I used this to build a NES game in Rust https://github.com/kirjavascript/rust-nes-tmp
Re:2D Rubik's Cube easier to understand on Wednesday November 23, 2022 @06:38AM (#33717943)
here's an image of the keymap: https://cube.garron.us/keyboard_layout/files/heise_simulator...

and an explanation of the notation: https://jperm.net/3x3/moves

Re:2D Rubik's Cube easier to understand on Wednesday November 23, 2022 @05:08AM (#33717268)
another 2D visualisation of the rubiks cube that is popularly used for computer simulation speedsolving is qcube[1]

despite not being able to see all sides of the cube, it's surprisingly easy to solve on, as you essentially see the same stickers that you would in real life.

there is even an IRC based version!

[1] https://mzrg.com/js/qcube-v2.html

I wrote a new page describing how to write quines recently[1], but the quine-relay is really above and beyond

1: https://github.com/kirjavascript/quine-howto

Re:Firefox to Block All 3rd Party Trackers by Default on Friday February 22, 2019 @06:39AM (#19224545)
sure they can, unrequested crypto miners running in the background are malware
Re:Wkhtmltopdf Considered Harmful on Thursday July 19, 2018 @11:49AM (#17567414)
Have been using puppeteer [1] at work as a replacement for wkhtmltopdf with great success.

[1] https://github.com/GoogleChrome/puppeteer

it's actually possible to reduce duplication in this case with the <g> element, see this example;

https://jsfiddle.net/2kc6tqy1/2/

Re:Modern terminal-based text editor on Friday September 29, 2017 @04:48AM (#15363727)
vim has visual find and replace across a whole project

https://github.com/eugen0329/vim-esearch