TL;DR:
javascript:{h=location.href;open('https://archive.is/?run=1&url='+encodeURIComponent(h));location.href='https://web.archive.org/save/'+(h)}
Posted by jpluimers on 2023/08/22
TL;DR:
javascript:{h=location.href;open('https://archive.is/?run=1&url='+encodeURIComponent(h));location.href='https://web.archive.org/save/'+(h)}
Posted in Bookmarklet, Development, JavaScript/ECMAScript, Power User, Scripting, Software Development, Web Browsers, Web Development | Leave a Comment »
Posted by jpluimers on 2023/08/22
Posted in .NET, Design Patterns, Development, R (statistics/graphics), Software Development | Leave a Comment »
Posted by jpluimers on 2023/08/17
A while ago I wrote about Figuring out the open network connections for processes ran by python, which explained the TL;DR:
pidof python | tr " " "\n" | xargs -r -n 1 lsof -i -a -e /run/user/1001/gvfs -p
Now I needed thread information as well, so below two examples using ps and pstree. I won’t explain the pidof and xargs stuff here as that was already covered in the above blog-post and I found out that ps already has a built-in way to filter on process name.
The ps solution uses the H, -L or -T argument to show the threads:
Posted in *nix, *nix-tools, bash, Development, lsof, Power User, ps, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2023/08/15
This is a follow-up to Bookmarklets for Archive.is and the WayBack Machine to go to the original page.
Archive.is has two kinds of URLs:
You get the first URL both after archiving and when browsing from an archived page to another archived page (if it is not archived you will go the unarchived full page URL).
Posted in archive.is / archive.today, Development, Internet, InternetArchive, JavaScript/ECMAScript, Power User, Scripting, Software Development, WayBack machine | Leave a Comment »
Posted by jpluimers on 2023/08/10
Yesterday, I wrote about Learn to program the gradual way: Welcome to Hedy! and today is the next installment: about numerals.
[Archive] /Fay-lee-nuh/ (@Felienne) | Twitter kind of by surprise discovered that the ten numerical digits of the decimal numeral system used in virtually all programming languages are not the original Arabic forms.
Supporting other forms of decimal numerals will help learning to program when your background is non-English or even using ten systems outside the Arabic numeral realm so common in Latin alphabets. And they are a fun learning exercise for every body too!
Some of the related Tweets on this:
Some more related Wikipedia links:
In the Unicode pages, look for “numeral”, “number”, and “numeric” (or just for “num”).
–jeroen
Posted in Development, Hedy, Learning/Teaching, LifeHacker, Power User, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2023/08/09
Cool way to learn programming in a gradual way which works adults just as well as for kids: [Wayback/Archive] Felienne/hedy
Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
Posted in Development, Hedy, Interactive Tutorials, Learning/Teaching, LifeHacker, Power User, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2023/08/08
Via Jan Gentleman, I learned
Action 1: Try a Windows Key sequence to wake the screen.
If you’re using a device with a keyboard connected to it, select Windows logo key + Ctrl + Shift + B. If you’re in tablet mode, press the volume-up and volume-down buttons simultaneously three times within two seconds. If Windows is responsive, a short beep will sound and the screen will blink or dim while Windows attempts to refresh the screen.
Via:
WIN + CTRL + Shift + B: Tells the computer you’re experiencing a black screen and tries to fix it” / Twitter
Later I found out it also is in Table of keyboard shortcuts – Wikipedia: General shortcuts
Restart Video Driver Windows 10: Ctrl+⇧ Shift+⊞ Win+B[2][3]
Also I learned how people order the modifier keys is varying.
–jeroen
Posted in .NET, Development, Power User, Software Development, Visual Studio and tools, Windows, Windows 10, Windows 11 | Leave a Comment »
Posted by jpluimers on 2023/08/02
For my link archive, the table of contents of [Wayback/Archive/Archive] Searching code – GitHub Docs:
Limitations apply:
Due to the complexity of searching code, there are some restrictions on how searches are performed:
- You must be signed into a user account on GitHub to search for code across all public repositories.
- Code in forks is only searchable if the fork has more stars than the parent repository. Forks with fewer stars than the parent repository are not indexed for code search. To include forks with more stars than their parent in the search results, you will need to add
fork:trueorfork:onlyto your query. For more information, see “Searching in forks.”- Only the default branch is indexed for code search.
- Only files smaller than 384 KB are searchable.
- Only repositories with fewer than 500,000 files are searchable.
- Only repositories that have had activity or have been returned in search results in the last year are searchable.
- Except with
filenamesearches, you must always include at least one search term when searching source code. For example, searching forlanguage:javascriptis not valid, whileamazing language:javascriptis.- At most, search results can show two fragments from the same file, but there may be more results within the file.
- You can’t use the following wildcard characters as part of your search query:
. , : ; / \ ` ' " = * ! ? # $ & + ^ | ~ < > ( ) { } [ ] @. The search will simply ignore these symbols.
There is a truckload of languages supported, though the yaml format of the list is not really human readable: [Wayback/Archive] linguist/languages.yml at master · github/linguist
I’ll try this and see if it works better than Google Search.
Via:
–jeroen
Posted in Development, DVCS - Distributed Version Control, GitHub, Google, GoogleSearch, Power User, Software Development, Source Code Management | Leave a Comment »