Xah Programing Blog Archive 2023-07
updates.
python zip, blog
print(list(zip([1,2,3], ["a","b","c"]))) # [(1, 'a'), (2, 'b'), (3, 'c')] print(list(zip([1,2,3], ["a","b","c"], ["x","y","z"]))) # [(1, 'a', 'x'), (2, 'b', 'y'), (3, 'c', 'z')]
major update
- PowerShell: Working on Files
- ๐ PowerShell: Open File by Default App
- PowerShell: Launch App
- ๐ PowerShell: Join Files
- ๐ PowerShell: Compare Files (diff)
- ๐ PowerShell: Create New File
- ๐ PowerShell: Create File Symbolic Link, Hard Link, Junction
- ๐ PowerShell: Get File Content
- PowerShell: Show File Attributes
- ๐ PowerShell: Set File Attributes
- ๐ PowerShell: Meaning of File Attributes
- ๐ PowerShell: List Files with Specific Attribute
- ๐ PowerShell: File Attributes Object Type
- ๐ PowerShell: List All Possible File Attribute Values
- PowerShell: Change File Owner/ACL
minor update
- phind chat bot on xah lee
- chatGPT on Xah Lee
lots update
- WolframLang: Pattern Matching
- ๐ WolframLang: Functions that Transform Expression by Rules
- WolframLang: Set, SetDelayed
- WolframLang: Rule, RuleDelayed
- WolframLang: Pattern Syntax
- mixtral chat bot on xah lee
- chatGPT on Xah Lee
Microsoft PowerToys is becoming bloated
- one of the problem i noticed, on my surface pro is that, if i use a mouse to select text, it'll deselect it. then, usually, after i tried again, 3 or 4 times, then finally i am successful.
- it seems, once i push down mouse button, move, release, then somehow something makes a click again so the whole selection is gone.
- this started happening few months ago.
- today, i dig in, and found the cause is powertoys.
- cuz i quit powertoys, this stopped.
- restarting it, seems things r fine.
xtodo review
lots updates
Transliterate Chinese
Amazing. WolframLang can transliterate any language. This feature is not available in the free WolframScript though, apparently. [see WolframScript Tutorial]
Transliterate[ "่ฏ่ฏ็ไธญๆ" ]
lots updates.
massive update, on WolframLang association data structure.
- WolframLang: Association (Key Value List)
- WolframLang: Association, Get Value
- WolframLang: Association, Add Key
- WolframLang: Association, Delete by Key
- WolframLang: Association, Check Key Exist
- WolframLang: Association to List
- WolframLang: Association: Filter
- WolframLang: Association, Misc
On RSS (webfeed) and Blogging
revived and updated all my webfeeds for my blogs.
there are 12 of them.
you can find them on xahlee.info and xahlee.org , except on 3 of them, hidden from easy access as filter of the superficial drama seekers.
if you are a blogger, see
- Now let me explain again about the whole webfeed thing, in summary.
- Webfeed aka RSS, Atom, is basically a XML file that collect snippets of news entries. A standard format. The purpose is to allow distribution of news snippets, in a on-going periodic basis.
- now this tech, began in about 1999.
- this tech, is still useful, as a mechanism of distributing snippet of info, aka news, periodically, and worldwide. It is still used as a core mechanism, i think, for all news distribution.
- now, during the blog days, around y2k to 2010, RSS feed became super popular among consumers, namely bloggers and podcasters. You have RSS readers buildin in browsers, eg Firefox, Safari.
- So u can read in one place all the news feeds u subscribed.
- This use of webfeed died, since blogging died and google killed its Google Reader, a feed reader, in 2013. (Google Reader begin in 2005)
- But RSS is still used by some hardcore nerds, in mostly programing community.
- Now, if u r a blogger, especially if u create ur writing on ur own site, RSS has a great purpose, that is, it kinda forces u to write self-contained, complete, blog articles.
- because if u have a RSS, it requires a entry for each now post. When u write a blog, often it began by few sloppy sentences and half-thoughts, that others have a hard time understanding what u r saying. e.g. most posts on twitter r like that. This does not make sense for a RSS entry.
- But if u have RSS, it kinda forces u to complete ur thoughts, ur writings, so u can create a self-contained RSS feed entry.
Asking ChatGPT to Suggest a Tagline for Web Dev Blog
asking chatgpt to suggest a tagline for my webdev blog. Though, the answers it gave lacks sting and poetic quality.
I decided on: โCODING CANCERโ
- Xah Podcast Index, new item on anon and privacy.
- learned a new thing, Radix economy
- important for desiging a computer, what number base to use.
- turns out, 3-based system is most efficient.
Microsoft Windows update problem
- Top Ten Most Serious Software Bugs
- How Did Software Get So Reliable Without Proof?
- Edsger W Dijkstra (EWD) on Programing
- Lambda in Python 3000
- Why Programming Languages Are Hard To Teach ๐บ
- Dynamic vs Static Type System in Programing Languages
- Why I Hate Exceptions
- Meaning of List, Array, Vector, Tuple, Slice, in Programing Languages
- Meaning of Object in Computer Languages
- ELisp: read-from-minibuffer Propels Deep Questions
- Context Dependent Semantic: Python, Lisp setf
- Docstring Convention: Python vs Emacs Lisp
- TCP/IP Tutorial for Beginner
- Xah Programing Blog Archive 2016-09
.chm file, opened by
Microsoftยฎ HTML Help
at
C:/Windows/hh.exe
- WolframLang. Interesting function.
ReverseApplied[f][a,b,c]
- means
f[c, b, a]
- f can be any function you write.
- New in 2020.
- i see, the application are, for changing order for:
- non-communicative multplication functions (in algebra)
- function composition.
- fold left, fold right.
- etc.
- where convention may differ.
- The word abstraction is abstract.
- It's abused especially in programing. Especially those discussing programing or programing languages, e.g. object oriented programing, functional programing.
- Anything is abstraction, and they are the reasons or cause for this and that.
- https://www.youtube.com/watch?v=ENm1q1x4l-o
- Episode 1: An Overview of the Wolfram Compiler
- Wolfram R and D (Tom Wickham-Jones)
- Oct 6, 2023
- WolframLang: List
- WolframLang: Position of an Element
- WolframLang: Get Parts of List
- WolframLang: Delete Element in List
- WolframLang: Change Element in List
- ๐ WolframLang: List Order Functions
- ๐ WolframLang: List Restructure Functions
- ๐ WolframLang: List Combinatorics
- ๐ WolframLang: Check Item Existence in List
- WolframLang: List Join, Union, Intersection, Difference
- reviving Xah Web Dev Blog
machine learning to solve polynomial
- 2023-09-22
- i was wondering how good can the ML get. e.g.
- show ML billions of
- x^n+b x^(n-1) ... = z
- (in text form as shown, not coefficient vectors).
- let's say degree 3. How accurate can ML do this?
- and what if we increase degree to say 10. (the input pair, can text equation with numerical answer, or with symbolic answer.)
- seems this is a good exercise to learn and test ML, since the input with answer can be massively generated.
- maybe more interesting is the case with symbolic solutions?
- WolframLang
FeatureSpacePlot
. - It auto cluster similar things.
- part of machine learning.
- FeatureSpacePlot
- https://twitter.com/xah_lee/status/1708538097536024667
- Wolfram Language in Depth
- massive updates. basically all articles have been improved.
Aza Raskin
Aza Raskin, not a good person. connection with usa deepstate, and obsession of โhelping humanityโ, like the rise of Google Empire, and responsible for the downfall of Firefox user interface since about 2010.
WolframLang is back
- [Launching Version 13.0 of Wolfram Language ๏ผ Mathematica By Stephen Wolfram. At https://writings.stephenwolfram.com/2021/12/launching-version-13-0-of-wolfram-language-mathematica/ ]
hackers, tech geekers, ripgrep
- now dedicated PowerShell search
- PowerShell Tutorial Search
- https://twitter.com/WolframResearch/status/1686097031532564480
- Am a fan of Stephen Wolfram, since about 1993. Studied the guy a lot.
- He's great because:
- Super talented in multiple diverse fields. Accomplished physicist, programer (wrote Mathematica in C), and also innovative businessman.
- Never corrupt, as you hear lots in other successful men or politicians.
- There is some controversy in he being a megalomaniac. But i think in comparison to other scientists or university deans, most are a magnitude worse in their power struggle for money and fame.
- To Catch a Trollโฆ
- a great comedic essay, from 1999.
- You don't see people capable of doing that anymore.
- Extreme zoomer idots grew up with phone.
- https://twitter.com/xah_lee/status/1686083136114102272
- Also, the meaning of troll has mutated over the past 4 decades.
- Originally in 80s, it's among tech nerds about someone cleverly disruptive.
- In 90s it became someone you no like.
- In late 2000s it became someone nasty, devious.
- In 2010s it became rightwing, nazy believer.
- Netiquette Anthropology: Tales of Tech Geekers
- Mostly written in early 2000s.
- thru it, you can get some glimpse of what internet was like, around y2k.
// extreme js functional programing // before for ( let xkey of xsstr.split(/ +/).reduce( (xmap, xstr) => f_map_filter( xmap, (k, v) => (v.indexOf(xstr) !== -1), ), UNICODE_DATA_MAP, ).keys() ) { if (xFoundChars.length <= MAX_RESULT_COUNT) { xFoundChars.push(xkey); } } // after xFoundChars = [ ...(xsstr.split(/ +/).reduce( (xmap, xstr) => f_map_filter( xmap, (k, v) => (v.indexOf(xstr) !== -1), ), UNICODE_DATA_MAP, ).keys()), ];
minor update on my 8 years old clojure tutorial. mostly cleaning up formatting, and separate sections into their own pages.
- Clojure: Basic Syntax
- ๐ Clojure: Comment Syntax
- ๐ Clojure: String
- ๐ Clojure: Numbers
- ๐ Clojure: Boolean
- ๐ Clojure: Variable
- ๐ Clojure: Print
- ๐ Clojure: Flow Control (if then else)
- ๐ Clojure: Loop, Iteration
- ๐ Clojure: Datatype
- ๐ Clojure: Expression Group
- ๐ Clojure: Transactions
- ๐ Clojure: Reader Forms
- git, exemplary of unix tech idiots who dunno what they talking about and dunno how to write, how to think.
- (these people, are typically fanatics of unix, c, cpp.
- and to large extend, includes the python priests)
- for example, try to read the quoted page.
- do you understand it? (most people don't, even 10 years coding experts)
- and i think the doc can be rewritten so people do understand it.
- also, git itself can be designed in a way that is perhaps 50% less complex sans losing feature.