Xah Programing Blog Archive 2022-06
JavaScript edition: the struct and int of comp programing
misc minor updates
- Why Microsoft Windows Sucks
- Windows 10 Flat Design Sucks
- User Interface Design: Windows Dark Theme Problem
- Windows Onscreen Keyboard Sucks
- Windows Taskbar Sucks
- Worst World Clock User interface Design
- Windows User Interface: Switch Window Problem
- Windows User Interface Design: Accidental Hide Windows
- Windows User interface System Sound Sucks
- Windows User interface Appearance Inconsistency
- Windows 10 Still Using Bitmap Font
- Why Windows User Interface Suck
- Windows User Interface Sucks, Multi Way to Do the Same Thing
- Windows Elevation Prompt Idiocy
- Windows Lockscreen Background Image Problem
updated obs. now error:
your current video card driver does not support this NVENC version
12:32:43.916: error: Driver does not support the required nvenc API version. Required: 11.1 Found: 11.0
- C:/Users/xah/AppData/Roaming/obs-studio/logs
currently, revisit the insufferable windows faak Saga of Updating Nvidia Driver

upates.
updates and new
- Git: Commit Files
- Git: Undo Add File
- Git: Undo Commit
- Git: Fix Last Commit Message
- Git: Frequently Asked Questions
- Git: What's HEAD
massive updates and new articles
- PowerShell: Eval Variable, String, ScriptBlock
- PowerShell: Launch App
- PowerShell: Run as Admin
- PowerShell: Clear Command History
updates and new
- JS: Array.from
- JS: Array.of
- JS: Array.isArray
- JS: Array-Like Object to Array
- JS: Apply Array Method to Array-Like Object
updates and new
- JS: Prevent Adding Property
- JS: Object.preventExtensions
- JS: Reflect.preventExtensions
- JS: Object.isExtensible vs Reflect.isExtensible
- JS: Object.isExtensible
- JS: Reflect.isExtensible
- JS: Object.seal
- JS: Object.isSealed
- JS: Object.freeze
- JS: Object.isFrozen
updates and new
now creating a bunch of new articles about JavaScript/DOM What's the difference between. See: JavaScript in Depth
also, lots updates and new on JavaScript
the worst programing language design, yet python write it as a feature Python: Function Argument Default Value Wrong
updates and new
- Python: Map f to List
- Python: Iterator to List
- Python: Iterate Dictionary
- Python: Tuple
- Python: Sets, Union, Intersection
new and updates
massive js dom update.
- JS: DOM Methods
- JS DOM: Get Element by ID, Name, Class etc
- JS: Get Current Script Element
- JS: How to Iterate/Loop HTML Elements
- JS DOM: List, Add, Remove Class Attribute
- JS DOM: Get Element Parent, Child, Sibling
- JS: Create/Clone Node/Element
- JS DOM: Insert, Remove, Replace Element
- JS: insert Adjacent Element
- JS: Insert After an Element
- JS DOM: Node, Node Type, Element
- JS DOM: Node Type
- JS DOM: Node Name
- JS DOM: Node value
- JS DOM: textContent, innerHTML, innerText, nodeValue
- JS DOM: Live Object
- JS DOM: NodeList vs HTMLCollection
- JS DOM: Whitespace Nodes
- JS DOM: History of GetElementsByClassName

misc minor updates
major updates on PowerShell
- PowerShell: Download, Install
- PowerShell: Start PowerShell
- PowerShell: Name Completion
- PowerShell: Case Sensitivity
- Windows Console Keyboard Shortcuts
- Windows Terminal
- PowerShell: List Directories
- PowerShell: Create Directory
- PowerShell: Copy Directory
- PowerShell: Delete Directory
- PowerShell: List Empty Directories
updates
- rando notes. ripgrep
massive updates and rewrite in past days.
- Python Regex re.search
- Python Regex re.match
- Python Regex re.split
- Python Regex re.findall
- Python Regex re.finditer
- Python Regex re.sub
- Python Regex re.subn
- Python Regex re.escape
updates
- 2022-07-24 golang. https://go.dev/doc/go1.16 ioutil package deprecated. moved to io and os packages (although iotuil is still kept to preserve backwards compatability, but is no longer reccomended to use). thanks to βtriangleβ.
- 2022-07-24 generics in golang go1.18 (released 2022-03-15) https://go.dev/doc/go1.18
- Unicode Search π, now you can save search result by bookmarking the url, or share it
- Xah Unicode Blog
- Unicode: Reference Marks β β‘ ΒΆ Β§ β β
- Unicode: Tacks, Turnstiles β£ β’ β₯ β€ β«ͺ β««
- Unicode: Typography Ornaments β β¦ β§
- Unicode: Punctuations β’ β β’
- Unicode: Slash, Solidus / β«½ β«»
- Unicode: Whitespace Representation β₯ β· β£ ΒΆ
Stephen Wolfram interview Bob Metcalfe

- https://youtu.be/Vti0sCgfXsQ
- A conversation between Bob Metcalfe and Stephen Wolfram at the Wolfram Summer School 2022
- Jul 22, 2022
- Wolfram
updates and new:
massive major updates
- Wolfram Language for Programers
- Wolfram: Print Version
- Wolfram: Comment
- Wolfram: Print
- Wolfram: Shell Tasks Tutorial
- Wolfram: Navigate Directory
- Wolfram: Date Time
- Wolfram: List Files (Walk Directory)
- Wolfram: File Path Functions
updated today. lots work in past days on my JavaScript tutorial and PowerShell.
- PowerShell: Single Quoted String
- PowerShell: String Length
- PowerShell: Write to File
- PowerShell: Print
- PowerShell: List Files
- PowerShell: List Files by Wildcard Name Pattern
- PowerShell: Rename Files, to File Hash String π
- PowerShell Launch File Explorer with Selection
- JS: Determine Type of Object
- JS: Object.prototype.toString
- JS: null
- JS: Array-Like Object
- JS: Array-Like Object to Array
- JS: Get Set Property
- JS: Reflect.set
- JS: Create Property
- JS: Object.defineProperty
- JS: Reflect.deleteProperty
- JS: Reflect.getOwnPropertyDescriptor
- JS: Object.getOwnPropertyDescriptors
programing language documentation problem. What is a reference? Java JavaScript

- here's a interesting documentation problem.
- note that, afaik, the concept of βreferenceβ is not mentioned in js spec.
- (maybe it is. i forgot. but not in a way for programer, only to compiler writer)
- so u have this problem. How do u explain, the fact that array can be assigned to a constant and still can change.
- if u mention βreferenceβ, then u need to explain it.
- but in order to explain βreferenceβ, you have to mention implementation and hardware, such as memory address.
- but these things, are irrelevant to JS the language.
- The solution, seems to be, to add a concept of βreferenceβ to the language, by saying it's just some kinda object ID. Python does this with object ID, and Java does this with an actual value type, the Reference Type.
old blog, updated, or on its own page
- Stackoverflow JavaScript Millennials on Compiler (2014)
- The Overflow of StackOverflow (2014)
- StackOverflow Email Spam (2019)
- Disqus AD Spam (2017)
- Google Plus Now Ghost Town (2017)
more work on WolframLang tutorial for programers. This is a functional form for generating a list, similar to python's list comprehension Wolfram: List. Create (Table)
lots major update and rewrite
updates
- omg, martin fowler, i consider him the biggest crackpot in computing
- him, and larry wall. are the biggest crackpot snakeoil seller
- but larry wall subsided.
- Wolfram: Function major expansion
in Ubuntu Linux, as of , there's a bug that pydoc modules
will crash Python. Use python3
instead. sudo apt-get install python3
.
much more work on Python. Learn Python in a day.
lots update and new pages. re-org nav bar.
updates
now golang tutorial has grouping in nav bar.
massive update


major update
- updated. nested function PowerShell: Define Function
- PowerShell: Profile (init file)
perl in WolframLang style
supreme. Perl: Delete Duplicate Image Files
Perl in wolframlang style. Year 2003. Notable are the functions: combo, reduce, merge, genpair. (not what you think) and using nested list the way you'll not find in industrial code.
Lol, look at this one liner Mathematica style


- used to piss the perlers, and plus, they no understand it.
- overly complex. even i no unstand it now. lol
- not complex in a dumb way. but complex in the sense it follows a 'elegant' and very functional programing and using nested list extensively.
- and follows a strange one-liner style.



Been using dark theme for 5 months now. Conclusion: light theme is actually easier on the eye.
But one particular interesting thing is, bold word are less perceptible when its white text on black. Example: Code where variables are bold, when in dark theme, it's hard to tell if they are bold at all. Similar for for headings with larger font size, such as html h2, h3 headings.
order hash table in tutorial in this order
- map, hashtable, dictionary, association list, in
- Elisp: Hash Table
- JS: Map Tutorial
- Python: Dictionary
- Perl: Hash Table
- Ruby: Hash Table
major updates, lots refinement and new pages. Wolfram Language Tutorial
