diff --git a/cache/like/2023/02/14-60593/webmentions.json b/cache/like/2023/02/14-60593/webmentions.json new file mode 100644 index 00000000..f2ec1d3a --- /dev/null +++ b/cache/like/2023/02/14-60593/webmentions.json @@ -0,0 +1,7 @@ +{ + "lastWmId": null, + "children": [], + "reply-count": 0, + "like-count": 0, + "repost-count": 0 +} \ No newline at end of file diff --git a/cache/reply/2023/02/14-50133/webmentions.json b/cache/reply/2023/02/14-50133/webmentions.json index f2ec1d3a..f73f39ab 100644 --- a/cache/reply/2023/02/14-50133/webmentions.json +++ b/cache/reply/2023/02/14-50133/webmentions.json @@ -1,7 +1,30 @@ { - "lastWmId": null, - "children": [], - "reply-count": 0, + "lastWmId": 1622783, + "children": [ + { + "type": "entry", + "author": { + "type": "card", + "name": "Caroline Reeders", + "photo": "https://webmention.io/avatar/pbs.twimg.com/cfd10ced060f7d3b9e756c1c56be18b040f72b017b6b1e986d91e000a037d1d3.jpg", + "url": "https://twitter.com/CarolineReeders" + }, + "url": "https://twitter.com/CarolineReeders/status/1625509439779340289", + "published": "2023-02-14T14:57:05+00:00", + "wm-received": "2023-02-14T15:01:51Z", + "wm-id": 1622783, + "wm-source": "https://brid.gy/comment/twitter/gijswijs/1625494305359159298/1625509439779340289", + "wm-target": "https://www.gijsvandam.nl/reply/2023/02/14-50133/", + "content": { + "html": "Daarvoor moet je bij De Arbeiderspers zijn.\n\n", + "text": "Daarvoor moet je bij De Arbeiderspers zijn." + }, + "in-reply-to": "https://www.gijsvandam.nl/reply/2023/02/14-50133/", + "wm-property": "in-reply-to", + "wm-private": false + } + ], + "reply-count": 1, "like-count": 0, "repost-count": 0 } \ No newline at end of file diff --git a/feed/2/index.html b/feed/2/index.html index a6e83d20..f10028f0 100644 --- a/feed/2/index.html +++ b/feed/2/index.html @@ -1 +1 @@ -Gijs van Dam
Gijs van Dam
\ No newline at end of file +Gijs van Dam
Gijs van Dam
\ No newline at end of file diff --git a/feed/3/index.html b/feed/3/index.html index bc25d58a..0e7986ae 100644 --- a/feed/3/index.html +++ b/feed/3/index.html @@ -1 +1 @@ -Gijs van Dam
Gijs van Dam
\ No newline at end of file +Gijs van Dam
Gijs van Dam
\ No newline at end of file diff --git a/feed/4/index.html b/feed/4/index.html index 0b6e84ab..a37dbc5d 100644 --- a/feed/4/index.html +++ b/feed/4/index.html @@ -1 +1 @@ -Gijs van Dam
Gijs van Dam
\ No newline at end of file +Gijs van Dam
Gijs van Dam
\ No newline at end of file diff --git a/feed/5/index.html b/feed/5/index.html index 86c71ae0..3d12167b 100644 --- a/feed/5/index.html +++ b/feed/5/index.html @@ -1 +1 @@ -Gijs van Dam
Gijs van Dam
\ No newline at end of file +Gijs van Dam
Gijs van Dam
\ No newline at end of file diff --git a/feed/6/index.html b/feed/6/index.html index 95355255..347c6f3d 100644 --- a/feed/6/index.html +++ b/feed/6/index.html @@ -1,2 +1,2 @@ -Gijs van Dam
Gijs van Dam
\ No newline at end of file diff --git a/replies/index.html b/replies/index.html index c6d65e65..aa61fb39 100644 --- a/replies/index.html +++ b/replies/index.html @@ -1 +1 @@ -Gijs van Dam
Gijs van Dam
\ No newline at end of file +Gijs van Dam
Gijs van Dam
\ No newline at end of file diff --git a/reply/2023/02/14-50133/index.html b/reply/2023/02/14-50133/index.html index 541bb66f..bb5be392 100644 --- a/reply/2023/02/14-50133/index.html +++ b/reply/2023/02/14-50133/index.html @@ -1 +1 @@ -
Gijs van Dam
Gijs van Dam

In reply to: https://twitter.com/CarolineReeders/status/1625403563982700545

Zie ik daar nou het verzameld werk van Paulo Coelho?

\ No newline at end of file +
Gijs van Dam
Gijs van Dam

In reply to: https://twitter.com/CarolineReeders/status/1625403563982700545

Zie ik daar nou het verzameld werk van Paulo Coelho?

\ No newline at end of file diff --git a/rss.xml b/rss.xml index 52e1f01a..e55bb98c 100644 --- a/rss.xml +++ b/rss.xml @@ -1,10 +1,10 @@ -<![CDATA[Gijs van Dam on privacy, programming and crypto research]]>https://www.gijsvandam.nlmetalsmith-feedTue, 14 Feb 2023 14:01:54 GMT<![CDATA[Why does signature half aggregation break adaptor signatures?]]>There is this cool trick you can do with Schnorr signatures. It is called Adaptor Signature (AS). An adaptor signature is an extra signature that, combined with the original signature, allow for revealing a value that was previously hidden. You can use this trick to solve trust problems as they appear in atomic swaps, coin swaps and Discreet Log Contracts (DLCs).

+<![CDATA[Gijs van Dam on privacy, programming and crypto research]]>https://www.gijsvandam.nlmetalsmith-feedFri, 10 Mar 2023 17:21:57 GMT<![CDATA[Why does signature half aggregation break adaptor signatures?]]>There is this cool trick you can do with Schnorr signatures. It is called Adaptor Signature (AS). An adaptor signature is an extra signature that, combined with the original signature, allow for revealing a value that was previously hidden. You can use this trick to solve trust problems as they appear in atomic swaps, coin swaps and Discreet Log Contracts (DLCs).

Signature Aggregation (SA) is a way to aggregate multiple signatures into a single signature. The single aggregate signature is smaller (in bytes) than the original signatures combined. It reduces transaction weight, meaning we can have more transactions per block, which is always a good thing. It's like 7zip for transactions. Signature Half Aggregation is a variant of SA that only aggregates half of each signature. It offers less compression, but it has the benefit of not requiring any interaction with the signers, whereas full aggregation does require cooperation of all the signers.

So two cool tricks, but the latter breaks the former when it is used for blockwide signature aggregation. This article explains the math behind it and why SA breaks AS

]]>
https://www.gijsvandam.nl/post/why-does-signature-half-aggregation-break-adaptor-signatureshttps://www.gijsvandam.nl/post/why-does-signature-half-aggregation-break-adaptor-signaturesMon, 04 Apr 2022 00:00:00 GMT
<![CDATA[How do payments in Lightning Network work?]]>Lightning Network is a peer-to-peer payment network that runs on top of the Bitcoin Blockchain. Because it runs on top of the Blockchain it is called a layer-two solution, which groups it together with other solutions that have this property of being built on top of a Blockchain. Layer One is the base layer, where the Blockchain lives. Because of the inherent properties of Layer One, it is impossible to process large amounts of transactions in that layer. The Bitcoin Blockchain can famously process a mere seven transactions per second on average. This constraint was the main impetus for the creation of Layer Two solutions. Lightning Network, being a Layer Two solution, allows for near instant transactions, that can easily scale to millions of transactions per second.

]]>
https://www.gijsvandam.nl/post/how-do-payments-in-lightning-network-workhttps://www.gijsvandam.nl/post/how-do-payments-in-lightning-network-workFri, 11 Mar 2022 00:00:00 GMT
<![CDATA[Image conversion, resizing and compression with WebAssembly]]>Image conversion and resizing for the web can be quite fiddly. Take responsive websites for instance. You want to show a smaller version of your image on smaller devices: You don't need to download a 1080px wide image to show on a 360px wide device, especially since that device is likely constrained in the amount of bandwidth it has. Then again when your website is shown on an ultra HD screen with 3840x2160 resolution 1080 is maybe even too small.

Apart from multiple sizes, you also want to offer multiple formats. Modern browsers support new(er) image formats like webp and avif offer better compression for comparable image quality. Using these formats you can decrease the total download size of your page, while improving the overall experience for the user. But you just can't assume (yet) that all browsers support those newer formats, so you have to provide older formats as a fallback option. All in all the amount of different files you have to offer for just a single image on a web page starts to become quite large and the whole thing becomes, like I said, fiddly.

]]>
https://www.gijsvandam.nl/post/image-conversion-resizing-and-compression-with-webassemblyhttps://www.gijsvandam.nl/post/image-conversion-resizing-and-compression-with-webassemblyWed, 31 Mar 2021 00:00:00 GMT
<![CDATA[Measuring your writing progress with a git word count]]>Writing a scientific paper is hard. Doing your PhD is hard. Writing your thesis is hard. And to make me feel even more miserable I decided to measure my progress by counting the net change in words I achieve throughout each day. I am by no means a productivity guru and I don't know whether word count is a useful indicator for measuring the progress of a paper. That being said, it is a reality check to see how fast my work is progressing. -So without further ado here's the Powershell command that outputs the wordcount for the last 25 days based on git commits.

+So without further ado here's the Powershell command that outputs the wordcount for the last 25 days based on git commits. (For the bash command, see the bottom of this post)

for($i = 0; $i -lt 25; $i++){$j = $i + 1; Write-Host (get-date (get-date).addDays(-$i) -UFormat "%Y%m%d") ((git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"   -- "***.md"| Select-String -Pattern "^\+.*" | Measure-Object -word | select -ExpandProperty Words) - (git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"  -- "***.md"| Select-String -Pattern "^-.*" | Measure-Object -word | select -ExpandProperty Words)) }
]]>
https://www.gijsvandam.nl/post/measuring-your-writing-progress-with-a-git-word-counthttps://www.gijsvandam.nl/post/measuring-your-writing-progress-with-a-git-word-countFri, 26 Feb 2021 00:00:00 GMT
<![CDATA[Pandoc-filter for highlighting to-dos in LaTeX output]]>While writing my papers I try not to get bogged down too much. So if a paragraph doens't flow right I just type TODO: rewrite on the line below it, and continue writing. When I think of something that I shouldn't forget, like an extra analysis to run I just write it down as a todo in the running text of my paper. I also write thoughts on my paper as a todo. Ideas on structure, whether I should maybe rearrange paragraphs or approach a subject differently, it all ends up as a todo in the running text.

When running the VSCode task for converting my paper to PDF (using Pandoc) it puts all the todos into the running text. That's fine by me, it helps as an extra reminder that stuff still needs to happen. But I wanted the todos to be visually different from the running text, so that it stands apart and doesn't confuse people who are reading my draft. That is where my Pandoc filter comes into play.

]]>
https://www.gijsvandam.nl/post/pandoc-filter-for-highlighting-to-dos-in-latex-outputhttps://www.gijsvandam.nl/post/pandoc-filter-for-highlighting-to-dos-in-latex-outputTue, 23 Feb 2021 00:00:00 GMT
<![CDATA[Super easy tip for slide animation with Pandoc and reveal.js]]>I found this super easy alternative way to animate your slides with reveal.js that works out of the box with Markdown and Pandoc. Here is how to do it.

Last week I had to give a progress presentation about the current state of my PhD, and I can whip those up in no time. I use Boilerplate Paper not only for writing my papers, but also for presentations like this.

diff --git a/sitemap.xml b/sitemap.xml index 79490179..55563599 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -https://www.gijsvandam.nlweekly0.5https://www.gijsvandam.nl/posts/2/weekly0.5https://www.gijsvandam.nl/reposts/weekly0.5https://www.gijsvandam.nl/likes/weekly0.5https://www.gijsvandam.nl/likes/2/weekly0.5https://www.gijsvandam.nl/replies/weekly0.5https://www.gijsvandam.nl/replies/2/weekly0.5https://www.gijsvandam.nl/photos/weekly0.5https://www.gijsvandam.nl/notes/weekly0.5https://www.gijsvandam.nl/notes/2/weekly0.5https://www.gijsvandam.nl/feed/weekly0.5https://www.gijsvandam.nl/feed/2/weekly0.5https://www.gijsvandam.nl/feed/3/weekly0.5https://www.gijsvandam.nl/feed/4/weekly0.5https://www.gijsvandam.nl/feed/5/weekly0.5https://www.gijsvandam.nl/feed/6/weekly0.5https://www.gijsvandam.nl/home/weekly0.5https://www.gijsvandam.nl/about/weekly0.5https://www.gijsvandam.nl/contact/weekly0.5https://www.gijsvandam.nl/now/weekly0.5https://www.gijsvandam.nl/open-source/weekly0.5https://www.gijsvandam.nl/research/weekly0.5https://www.gijsvandam.nl/resume/weekly0.5https://www.gijsvandam.nl/pages/tags/weekly0.5https://www.gijsvandam.nl/ventures/weekly0.5https://www.gijsvandam.nl/post/building-bitcoin-core-on-windows-10/weekly0.5https://www.gijsvandam.nl/post/debugging-lnd-while-running-a-local-cluster/weekly0.5https://www.gijsvandam.nl/post/how-do-payments-in-lightning-network-work/weekly0.5https://www.gijsvandam.nl/post/image-conversion-resizing-and-compression-with-webassembly/weekly0.5https://www.gijsvandam.nl/post/measuring-your-writing-progress-with-a-git-word-count/weekly0.5https://www.gijsvandam.nl/post/pandoc-filter-for-highlighting-to-dos-in-latex-output/weekly0.5https://www.gijsvandam.nl/post/super-easy-tip-for-slide-animation-with-pandoc-and-reveal.js/weekly0.5https://www.gijsvandam.nl/post/running-c-lightning-in-simverse-with-plugins/weekly0.5https://www.gijsvandam.nl/post/ssh-keybased-authentication-windows-to-linux/weekly0.5https://www.gijsvandam.nl/post/why-does-signature-half-aggregation-break-adaptor-signatures/weekly0.5https://www.gijsvandam.nl/like/2022/02/17-33492/weekly0.5https://www.gijsvandam.nl/like/2022/03/29-44443/weekly0.5https://www.gijsvandam.nl/like/2022/03/29-45901/weekly0.5https://www.gijsvandam.nl/like/2022/03/30-14429/weekly0.5https://www.gijsvandam.nl/like/2022/03/30-18850/weekly0.5https://www.gijsvandam.nl/like/2022/03/30-22753/weekly0.5https://www.gijsvandam.nl/like/2022/03/30-48948/weekly0.5https://www.gijsvandam.nl/like/2022/03/30-6154/weekly0.5https://www.gijsvandam.nl/like/2022/04/08-9133/weekly0.5https://www.gijsvandam.nl/like/2022/04/12-15596/weekly0.5https://www.gijsvandam.nl/like/2022/04/15-31324/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-21401/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-24063/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-6738/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-6753/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-6825/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-6831/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-6887/weekly0.5https://www.gijsvandam.nl/like/2022/05/14-14339/weekly0.5https://www.gijsvandam.nl/like/2022/05/17-10058/weekly0.5https://www.gijsvandam.nl/like/2022/05/18-30142/weekly0.5https://www.gijsvandam.nl/like/2022/06/09-34557/weekly0.5https://www.gijsvandam.nl/like/2022/06/16-13146/weekly0.5https://www.gijsvandam.nl/like/2022/06/17-10319/weekly0.5https://www.gijsvandam.nl/like/2022/06/22-5473/weekly0.5https://www.gijsvandam.nl/like/2022/06/22-6467/weekly0.5https://www.gijsvandam.nl/like/2022/06/27-24909/weekly0.5https://www.gijsvandam.nl/like/2022/10/19-4968/weekly0.5https://www.gijsvandam.nl/like/2022/11/09-31008/weekly0.5https://www.gijsvandam.nl/like/2022/12/09-5106/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-27171/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-29847/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-30403/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-32251/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-32499/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-33268/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-34237/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-35473/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-44835/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-47823/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-3748/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-3809/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-3840/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-4984/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-5040/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-5062/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-6459/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-7572/weekly0.5https://www.gijsvandam.nl/note/2022/02/17-17647/weekly0.5https://www.gijsvandam.nl/note/2022/02/25-5777/weekly0.5https://www.gijsvandam.nl/note/2022/03/02-30920/weekly0.5https://www.gijsvandam.nl/note/2022/03/02-5366/weekly0.5https://www.gijsvandam.nl/note/2022/03/15-8786/weekly0.5https://www.gijsvandam.nl/note/2022/03/24-25322/weekly0.5https://www.gijsvandam.nl/note/2022/04/27-9088/weekly0.5https://www.gijsvandam.nl/note/2022/06/21-7056/weekly0.5https://www.gijsvandam.nl/note/2022/08/30-11361/weekly0.5https://www.gijsvandam.nl/note/2022/10/21-26894/weekly0.5https://www.gijsvandam.nl/note/2022/11/09-1939/weekly0.5https://www.gijsvandam.nl/photo/2022/02/16-3950/weekly0.5https://www.gijsvandam.nl/photo/2022/02/16-4222/weekly0.5https://www.gijsvandam.nl/photo/2022/02/17-18628/weekly0.5https://www.gijsvandam.nl/photo/2022/02/17-29992/weekly0.5https://www.gijsvandam.nl/photo/2022/02/17-30933/weekly0.5https://www.gijsvandam.nl/photo/2022/02/17-33011/weekly0.5https://www.gijsvandam.nl/photo/2022/02/18-57744/weekly0.5https://www.gijsvandam.nl/photo/2022/02/22-49012/weekly0.5https://www.gijsvandam.nl/photo/2022/02/28-27104/weekly0.5https://www.gijsvandam.nl/photo/2022/03/29-24484/weekly0.5https://www.gijsvandam.nl/photo/2022/03/31-13008/weekly0.5https://www.gijsvandam.nl/photo/2022/04/01-6960/weekly0.5https://www.gijsvandam.nl/photo/2022/04/08-11189/weekly0.5https://www.gijsvandam.nl/photo/2022/05/17-51349/weekly0.5https://www.gijsvandam.nl/photo/2022/06/15-10659/weekly0.5https://www.gijsvandam.nl/photo/2022/09/19-11320/weekly0.5https://www.gijsvandam.nl/reply/2022/02/22-51488/weekly0.5https://www.gijsvandam.nl/reply/2022/02/23-25550/weekly0.5https://www.gijsvandam.nl/reply/2022/02/23-6487/weekly0.5https://www.gijsvandam.nl/reply/2022/03/14-3524/weekly0.5https://www.gijsvandam.nl/reply/2022/03/15-27609/weekly0.5https://www.gijsvandam.nl/reply/2022/03/18-6287/weekly0.5https://www.gijsvandam.nl/reply/2022/03/19-19572/weekly0.5https://www.gijsvandam.nl/reply/2022/03/19-20011/weekly0.5https://www.gijsvandam.nl/reply/2022/03/24-25808/weekly0.5https://www.gijsvandam.nl/reply/2022/03/29-47144/weekly0.5https://www.gijsvandam.nl/reply/2022/03/31-9522/weekly0.5https://www.gijsvandam.nl/reply/2022/04/04-4837/weekly0.5https://www.gijsvandam.nl/reply/2022/04/08-10065/weekly0.5https://www.gijsvandam.nl/reply/2022/04/08-9393/weekly0.5https://www.gijsvandam.nl/reply/2022/04/15-30405/weekly0.5https://www.gijsvandam.nl/reply/2022/04/27-10399/weekly0.5https://www.gijsvandam.nl/reply/2022/04/27-11023/weekly0.5https://www.gijsvandam.nl/reply/2022/04/27-11235/weekly0.5https://www.gijsvandam.nl/reply/2022/04/27-9426/weekly0.5https://www.gijsvandam.nl/reply/2022/04/27-9703/weekly0.5https://www.gijsvandam.nl/reply/2022/05/17-7736/weekly0.5https://www.gijsvandam.nl/reply/2022/05/17-9592/weekly0.5https://www.gijsvandam.nl/reply/2022/05/18-31162/weekly0.5https://www.gijsvandam.nl/reply/2022/05/18-6225/weekly0.5https://www.gijsvandam.nl/reply/2022/05/18-6490/weekly0.5https://www.gijsvandam.nl/reply/2022/06/16-36570/weekly0.5https://www.gijsvandam.nl/reply/2022/06/16-36787/weekly0.5https://www.gijsvandam.nl/reply/2022/06/17-32419/weekly0.5https://www.gijsvandam.nl/reply/2022/06/20-41110/weekly0.5https://www.gijsvandam.nl/reply/2022/06/22-4825/weekly0.5https://www.gijsvandam.nl/reply/2022/06/22-5125/weekly0.5https://www.gijsvandam.nl/reply/2022/06/22-5638/weekly0.5https://www.gijsvandam.nl/reply/2022/09/08-32881/weekly0.5https://www.gijsvandam.nl/reply/2022/10/19-4868/weekly0.5https://www.gijsvandam.nl/reply/2022/10/19-5621/weekly0.5https://www.gijsvandam.nl/reply/2022/10/25-35503/weekly0.5https://www.gijsvandam.nl/reply/2022/10/25-35544/weekly0.5https://www.gijsvandam.nl/reply/2022/10/28-1945/weekly0.5https://www.gijsvandam.nl/reply/2022/11/09-2109/weekly0.5https://www.gijsvandam.nl/reply/2023/02/08-31285/weekly0.5https://www.gijsvandam.nl/reply/2023/02/09-38481/weekly0.5https://www.gijsvandam.nl/reply/2023/02/09-39298/weekly0.5https://www.gijsvandam.nl/reply/2023/02/09-39685/weekly0.5https://www.gijsvandam.nl/reply/2023/02/14-50133/weekly0.5https://www.gijsvandam.nl/repost/2022/02/18-30270/weekly0.5https://www.gijsvandam.nl/repost/2022/02/18-30288/weekly0.5https://www.gijsvandam.nl/repost/2022/03/03-amazing/weekly0.5https://www.gijsvandam.nl/repost/2022/03/07-49678/weekly0.5https://www.gijsvandam.nl/repost/2022/04/01-2436/weekly0.5https://www.gijsvandam.nl/repost/2022/05/13-24864/weekly0.5https://www.gijsvandam.nl/repost/2022/05/13-45624/weekly0.5https://www.gijsvandam.nl/repost/2022/05/27-19753/weekly0.5https://www.gijsvandam.nl/repost/2022/06/09-24377/weekly0.5https://www.gijsvandam.nl/repost/2022/06/13-46841/weekly0.5https://www.gijsvandam.nl/repost/2022/06/16-3920/weekly0.5https://www.gijsvandam.nl/topics/bitcoin/weekly0.5https://www.gijsvandam.nl/topics/windows-10/weekly0.5https://www.gijsvandam.nl/topics/lnd/weekly0.5https://www.gijsvandam.nl/topics/simverse/weekly0.5https://www.gijsvandam.nl/topics/vscode/weekly0.5https://www.gijsvandam.nl/topics/cryptography/weekly0.5https://www.gijsvandam.nl/topics/lightning-network/weekly0.5https://www.gijsvandam.nl/topics/webassembly/weekly0.5https://www.gijsvandam.nl/topics/janos/weekly0.5https://www.gijsvandam.nl/topics/boilerplate-paper/weekly0.5https://www.gijsvandam.nl/topics/powershell/weekly0.5https://www.gijsvandam.nl/topics/git/weekly0.5https://www.gijsvandam.nl/topics/pandoc/weekly0.5https://www.gijsvandam.nl/topics/lua/weekly0.5https://www.gijsvandam.nl/topics/latex/weekly0.5https://www.gijsvandam.nl/topics/revealjs/weekly0.5https://www.gijsvandam.nl/topics/c-lightning/weekly0.5https://www.gijsvandam.nl/topics/ssh/weekly0.5https://www.gijsvandam.nl/topics/indieweb/weekly0.5https://www.gijsvandam.nl/topics/test1/weekly0.5https://www.gijsvandam.nl/topics/test2/weekly0.5https://www.gijsvandam.nl/topics/science/weekly0.5https://www.gijsvandam.nl/topics/crypto/weekly0.5 \ No newline at end of file +https://www.gijsvandam.nlweekly0.5https://www.gijsvandam.nl/posts/2/weekly0.5https://www.gijsvandam.nl/reposts/weekly0.5https://www.gijsvandam.nl/likes/weekly0.5https://www.gijsvandam.nl/likes/2/weekly0.5https://www.gijsvandam.nl/replies/weekly0.5https://www.gijsvandam.nl/replies/2/weekly0.5https://www.gijsvandam.nl/photos/weekly0.5https://www.gijsvandam.nl/notes/weekly0.5https://www.gijsvandam.nl/notes/2/weekly0.5https://www.gijsvandam.nl/feed/weekly0.5https://www.gijsvandam.nl/feed/2/weekly0.5https://www.gijsvandam.nl/feed/3/weekly0.5https://www.gijsvandam.nl/feed/4/weekly0.5https://www.gijsvandam.nl/feed/5/weekly0.5https://www.gijsvandam.nl/feed/6/weekly0.5https://www.gijsvandam.nl/home/weekly0.5https://www.gijsvandam.nl/about/weekly0.5https://www.gijsvandam.nl/contact/weekly0.5https://www.gijsvandam.nl/now/weekly0.5https://www.gijsvandam.nl/open-source/weekly0.5https://www.gijsvandam.nl/research/weekly0.5https://www.gijsvandam.nl/resume/weekly0.5https://www.gijsvandam.nl/pages/tags/weekly0.5https://www.gijsvandam.nl/ventures/weekly0.5https://www.gijsvandam.nl/post/building-bitcoin-core-on-windows-10/weekly0.5https://www.gijsvandam.nl/post/debugging-lnd-while-running-a-local-cluster/weekly0.5https://www.gijsvandam.nl/post/how-do-payments-in-lightning-network-work/weekly0.5https://www.gijsvandam.nl/post/image-conversion-resizing-and-compression-with-webassembly/weekly0.5https://www.gijsvandam.nl/post/measuring-your-writing-progress-with-a-git-word-count/weekly0.5https://www.gijsvandam.nl/post/pandoc-filter-for-highlighting-to-dos-in-latex-output/weekly0.5https://www.gijsvandam.nl/post/super-easy-tip-for-slide-animation-with-pandoc-and-reveal.js/weekly0.5https://www.gijsvandam.nl/post/running-c-lightning-in-simverse-with-plugins/weekly0.5https://www.gijsvandam.nl/post/ssh-keybased-authentication-windows-to-linux/weekly0.5https://www.gijsvandam.nl/post/why-does-signature-half-aggregation-break-adaptor-signatures/weekly0.5https://www.gijsvandam.nl/like/2022/02/17-33492/weekly0.5https://www.gijsvandam.nl/like/2022/03/29-44443/weekly0.5https://www.gijsvandam.nl/like/2022/03/29-45901/weekly0.5https://www.gijsvandam.nl/like/2022/03/30-14429/weekly0.5https://www.gijsvandam.nl/like/2022/03/30-18850/weekly0.5https://www.gijsvandam.nl/like/2022/03/30-22753/weekly0.5https://www.gijsvandam.nl/like/2022/03/30-48948/weekly0.5https://www.gijsvandam.nl/like/2022/03/30-6154/weekly0.5https://www.gijsvandam.nl/like/2022/04/08-9133/weekly0.5https://www.gijsvandam.nl/like/2022/04/12-15596/weekly0.5https://www.gijsvandam.nl/like/2022/04/15-31324/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-21401/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-24063/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-6738/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-6753/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-6825/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-6831/weekly0.5https://www.gijsvandam.nl/like/2022/05/13-6887/weekly0.5https://www.gijsvandam.nl/like/2022/05/14-14339/weekly0.5https://www.gijsvandam.nl/like/2022/05/17-10058/weekly0.5https://www.gijsvandam.nl/like/2022/05/18-30142/weekly0.5https://www.gijsvandam.nl/like/2022/06/09-34557/weekly0.5https://www.gijsvandam.nl/like/2022/06/16-13146/weekly0.5https://www.gijsvandam.nl/like/2022/06/17-10319/weekly0.5https://www.gijsvandam.nl/like/2022/06/22-5473/weekly0.5https://www.gijsvandam.nl/like/2022/06/22-6467/weekly0.5https://www.gijsvandam.nl/like/2022/06/27-24909/weekly0.5https://www.gijsvandam.nl/like/2022/10/19-4968/weekly0.5https://www.gijsvandam.nl/like/2022/11/09-31008/weekly0.5https://www.gijsvandam.nl/like/2022/12/09-5106/weekly0.5https://www.gijsvandam.nl/like/2023/02/14-60593/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-27171/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-29847/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-30403/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-32251/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-32499/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-33268/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-34237/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-35473/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-44835/weekly0.5https://www.gijsvandam.nl/note/2022/02/15-47823/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-3748/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-3809/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-3840/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-4984/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-5040/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-5062/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-6459/weekly0.5https://www.gijsvandam.nl/note/2022/02/16-7572/weekly0.5https://www.gijsvandam.nl/note/2022/02/17-17647/weekly0.5https://www.gijsvandam.nl/note/2022/02/25-5777/weekly0.5https://www.gijsvandam.nl/note/2022/03/02-30920/weekly0.5https://www.gijsvandam.nl/note/2022/03/02-5366/weekly0.5https://www.gijsvandam.nl/note/2022/03/15-8786/weekly0.5https://www.gijsvandam.nl/note/2022/03/24-25322/weekly0.5https://www.gijsvandam.nl/note/2022/04/27-9088/weekly0.5https://www.gijsvandam.nl/note/2022/06/21-7056/weekly0.5https://www.gijsvandam.nl/note/2022/08/30-11361/weekly0.5https://www.gijsvandam.nl/note/2022/10/21-26894/weekly0.5https://www.gijsvandam.nl/note/2022/11/09-1939/weekly0.5https://www.gijsvandam.nl/photo/2022/02/16-3950/weekly0.5https://www.gijsvandam.nl/photo/2022/02/16-4222/weekly0.5https://www.gijsvandam.nl/photo/2022/02/17-18628/weekly0.5https://www.gijsvandam.nl/photo/2022/02/17-29992/weekly0.5https://www.gijsvandam.nl/photo/2022/02/17-30933/weekly0.5https://www.gijsvandam.nl/photo/2022/02/17-33011/weekly0.5https://www.gijsvandam.nl/photo/2022/02/18-57744/weekly0.5https://www.gijsvandam.nl/photo/2022/02/22-49012/weekly0.5https://www.gijsvandam.nl/photo/2022/02/28-27104/weekly0.5https://www.gijsvandam.nl/photo/2022/03/29-24484/weekly0.5https://www.gijsvandam.nl/photo/2022/03/31-13008/weekly0.5https://www.gijsvandam.nl/photo/2022/04/01-6960/weekly0.5https://www.gijsvandam.nl/photo/2022/04/08-11189/weekly0.5https://www.gijsvandam.nl/photo/2022/05/17-51349/weekly0.5https://www.gijsvandam.nl/photo/2022/06/15-10659/weekly0.5https://www.gijsvandam.nl/photo/2022/09/19-11320/weekly0.5https://www.gijsvandam.nl/reply/2022/02/22-51488/weekly0.5https://www.gijsvandam.nl/reply/2022/02/23-25550/weekly0.5https://www.gijsvandam.nl/reply/2022/02/23-6487/weekly0.5https://www.gijsvandam.nl/reply/2022/03/14-3524/weekly0.5https://www.gijsvandam.nl/reply/2022/03/15-27609/weekly0.5https://www.gijsvandam.nl/reply/2022/03/18-6287/weekly0.5https://www.gijsvandam.nl/reply/2022/03/19-19572/weekly0.5https://www.gijsvandam.nl/reply/2022/03/19-20011/weekly0.5https://www.gijsvandam.nl/reply/2022/03/24-25808/weekly0.5https://www.gijsvandam.nl/reply/2022/03/29-47144/weekly0.5https://www.gijsvandam.nl/reply/2022/03/31-9522/weekly0.5https://www.gijsvandam.nl/reply/2022/04/04-4837/weekly0.5https://www.gijsvandam.nl/reply/2022/04/08-10065/weekly0.5https://www.gijsvandam.nl/reply/2022/04/08-9393/weekly0.5https://www.gijsvandam.nl/reply/2022/04/15-30405/weekly0.5https://www.gijsvandam.nl/reply/2022/04/27-10399/weekly0.5https://www.gijsvandam.nl/reply/2022/04/27-11023/weekly0.5https://www.gijsvandam.nl/reply/2022/04/27-11235/weekly0.5https://www.gijsvandam.nl/reply/2022/04/27-9426/weekly0.5https://www.gijsvandam.nl/reply/2022/04/27-9703/weekly0.5https://www.gijsvandam.nl/reply/2022/05/17-7736/weekly0.5https://www.gijsvandam.nl/reply/2022/05/17-9592/weekly0.5https://www.gijsvandam.nl/reply/2022/05/18-31162/weekly0.5https://www.gijsvandam.nl/reply/2022/05/18-6225/weekly0.5https://www.gijsvandam.nl/reply/2022/05/18-6490/weekly0.5https://www.gijsvandam.nl/reply/2022/06/16-36570/weekly0.5https://www.gijsvandam.nl/reply/2022/06/16-36787/weekly0.5https://www.gijsvandam.nl/reply/2022/06/17-32419/weekly0.5https://www.gijsvandam.nl/reply/2022/06/20-41110/weekly0.5https://www.gijsvandam.nl/reply/2022/06/22-4825/weekly0.5https://www.gijsvandam.nl/reply/2022/06/22-5125/weekly0.5https://www.gijsvandam.nl/reply/2022/06/22-5638/weekly0.5https://www.gijsvandam.nl/reply/2022/09/08-32881/weekly0.5https://www.gijsvandam.nl/reply/2022/10/19-4868/weekly0.5https://www.gijsvandam.nl/reply/2022/10/19-5621/weekly0.5https://www.gijsvandam.nl/reply/2022/10/25-35503/weekly0.5https://www.gijsvandam.nl/reply/2022/10/25-35544/weekly0.5https://www.gijsvandam.nl/reply/2022/10/28-1945/weekly0.5https://www.gijsvandam.nl/reply/2022/11/09-2109/weekly0.5https://www.gijsvandam.nl/reply/2023/02/08-31285/weekly0.5https://www.gijsvandam.nl/reply/2023/02/09-38481/weekly0.5https://www.gijsvandam.nl/reply/2023/02/09-39298/weekly0.5https://www.gijsvandam.nl/reply/2023/02/09-39685/weekly0.5https://www.gijsvandam.nl/reply/2023/02/14-50133/weekly0.5https://www.gijsvandam.nl/repost/2022/02/18-30270/weekly0.5https://www.gijsvandam.nl/repost/2022/02/18-30288/weekly0.5https://www.gijsvandam.nl/repost/2022/03/03-amazing/weekly0.5https://www.gijsvandam.nl/repost/2022/03/07-49678/weekly0.5https://www.gijsvandam.nl/repost/2022/04/01-2436/weekly0.5https://www.gijsvandam.nl/repost/2022/05/13-24864/weekly0.5https://www.gijsvandam.nl/repost/2022/05/13-45624/weekly0.5https://www.gijsvandam.nl/repost/2022/05/27-19753/weekly0.5https://www.gijsvandam.nl/repost/2022/06/09-24377/weekly0.5https://www.gijsvandam.nl/repost/2022/06/13-46841/weekly0.5https://www.gijsvandam.nl/repost/2022/06/16-3920/weekly0.5https://www.gijsvandam.nl/topics/bitcoin/weekly0.5https://www.gijsvandam.nl/topics/windows-10/weekly0.5https://www.gijsvandam.nl/topics/lnd/weekly0.5https://www.gijsvandam.nl/topics/simverse/weekly0.5https://www.gijsvandam.nl/topics/vscode/weekly0.5https://www.gijsvandam.nl/topics/cryptography/weekly0.5https://www.gijsvandam.nl/topics/lightning-network/weekly0.5https://www.gijsvandam.nl/topics/webassembly/weekly0.5https://www.gijsvandam.nl/topics/janos/weekly0.5https://www.gijsvandam.nl/topics/boilerplate-paper/weekly0.5https://www.gijsvandam.nl/topics/powershell/weekly0.5https://www.gijsvandam.nl/topics/git/weekly0.5https://www.gijsvandam.nl/topics/bash/weekly0.5https://www.gijsvandam.nl/topics/pandoc/weekly0.5https://www.gijsvandam.nl/topics/lua/weekly0.5https://www.gijsvandam.nl/topics/latex/weekly0.5https://www.gijsvandam.nl/topics/revealjs/weekly0.5https://www.gijsvandam.nl/topics/c-lightning/weekly0.5https://www.gijsvandam.nl/topics/ssh/weekly0.5https://www.gijsvandam.nl/topics/indieweb/weekly0.5https://www.gijsvandam.nl/topics/test1/weekly0.5https://www.gijsvandam.nl/topics/test2/weekly0.5https://www.gijsvandam.nl/topics/science/weekly0.5https://www.gijsvandam.nl/topics/crypto/weekly0.5 \ No newline at end of file diff --git a/topics/bash/index.html b/topics/bash/index.html new file mode 100644 index 00000000..d79469e3 --- /dev/null +++ b/topics/bash/index.html @@ -0,0 +1 @@ +Posts for bash
Gijs van Dam
  • Measuring your writing progress with a git word count

    5 minute read

    Writing a scientific paper is hard. Doing your PhD is hard. Writing your thesis is hard. And to make me feel even more miserable I decided to measure my progress by counting the net change in words I achieve throughout each day. I am by no means a productivity guru and I don't know whether word count is a useful indicator for measuring the progress of a paper. That being said, it is a reality check to see how fast my work is progressing. So without further ado here's the Powershell command that outputs the wordcount for the last 25 days based on git commits. (For the bash command, see the bottom of this post)

    for($i = 0; $i -lt 25; $i++){$j = $i + 1; Write-Host (get-date (get-date).addDays(-$i) -UFormat "%Y%m%d") ((git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"   -- "***.md"| Select-String -Pattern "^\+.*" | Measure-Object -word | select -ExpandProperty Words) - (git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"  -- "***.md"| Select-String -Pattern "^-.*" | Measure-Object -word | select -ExpandProperty Words)) }
\ No newline at end of file diff --git a/topics/boilerplate-paper/index.html b/topics/boilerplate-paper/index.html index 7b537acc..6915a9fc 100644 --- a/topics/boilerplate-paper/index.html +++ b/topics/boilerplate-paper/index.html @@ -1 +1 @@ -Posts for boilerplate paper
Gijs van Dam
  • Measuring your writing progress with a git word count

    5 minute read

    Writing a scientific paper is hard. Doing your PhD is hard. Writing your thesis is hard. And to make me feel even more miserable I decided to measure my progress by counting the net change in words I achieve throughout each day. I am by no means a productivity guru and I don't know whether word count is a useful indicator for measuring the progress of a paper. That being said, it is a reality check to see how fast my work is progressing. So without further ado here's the Powershell command that outputs the wordcount for the last 25 days based on git commits.

    for($i = 0; $i -lt 25; $i++){$j = $i + 1; Write-Host (get-date (get-date).addDays(-$i) -UFormat "%Y%m%d") ((git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"   -- "***.md"| Select-String -Pattern "^\+.*" | Measure-Object -word | select -ExpandProperty Words) - (git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"  -- "***.md"| Select-String -Pattern "^-.*" | Measure-Object -word | select -ExpandProperty Words)) }
  • Pandoc-filter for highlighting to-dos in LaTeX output

    2 minute read

    While writing my papers I try not to get bogged down too much. So if a paragraph doens't flow right I just type TODO: rewrite on the line below it, and continue writing. When I think of something that I shouldn't forget, like an extra analysis to run I just write it down as a todo in the running text of my paper. I also write thoughts on my paper as a todo. Ideas on structure, whether I should maybe rearrange paragraphs or approach a subject differently, it all ends up as a todo in the running text.

    When running the VSCode task for converting my paper to PDF (using Pandoc) it puts all the todos into the running text. That's fine by me, it helps as an extra reminder that stuff still needs to happen. But I wanted the todos to be visually different from the running text, so that it stands apart and doesn't confuse people who are reading my draft. That is where my Pandoc filter comes into play.

  • Super easy tip for slide animation with Pandoc and reveal.js

    2 minute read

    I found this super easy alternative way to animate your slides with reveal.js that works out of the box with Markdown and Pandoc. Here is how to do it.

    Last week I had to give a progress presentation about the current state of my PhD, and I can whip those up in no time. I use Boilerplate Paper not only for writing my papers, but also for presentations like this.

    I write the presentation in Markdown and then convert it to reveal.js. But sometimes you want something else than the default sliding transition that reveal.js provides.

\ No newline at end of file +Posts for boilerplate paper
Gijs van Dam
  • Measuring your writing progress with a git word count

    5 minute read

    Writing a scientific paper is hard. Doing your PhD is hard. Writing your thesis is hard. And to make me feel even more miserable I decided to measure my progress by counting the net change in words I achieve throughout each day. I am by no means a productivity guru and I don't know whether word count is a useful indicator for measuring the progress of a paper. That being said, it is a reality check to see how fast my work is progressing. So without further ado here's the Powershell command that outputs the wordcount for the last 25 days based on git commits. (For the bash command, see the bottom of this post)

    for($i = 0; $i -lt 25; $i++){$j = $i + 1; Write-Host (get-date (get-date).addDays(-$i) -UFormat "%Y%m%d") ((git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"   -- "***.md"| Select-String -Pattern "^\+.*" | Measure-Object -word | select -ExpandProperty Words) - (git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"  -- "***.md"| Select-String -Pattern "^-.*" | Measure-Object -word | select -ExpandProperty Words)) }
  • Pandoc-filter for highlighting to-dos in LaTeX output

    2 minute read

    While writing my papers I try not to get bogged down too much. So if a paragraph doens't flow right I just type TODO: rewrite on the line below it, and continue writing. When I think of something that I shouldn't forget, like an extra analysis to run I just write it down as a todo in the running text of my paper. I also write thoughts on my paper as a todo. Ideas on structure, whether I should maybe rearrange paragraphs or approach a subject differently, it all ends up as a todo in the running text.

    When running the VSCode task for converting my paper to PDF (using Pandoc) it puts all the todos into the running text. That's fine by me, it helps as an extra reminder that stuff still needs to happen. But I wanted the todos to be visually different from the running text, so that it stands apart and doesn't confuse people who are reading my draft. That is where my Pandoc filter comes into play.

  • Super easy tip for slide animation with Pandoc and reveal.js

    2 minute read

    I found this super easy alternative way to animate your slides with reveal.js that works out of the box with Markdown and Pandoc. Here is how to do it.

    Last week I had to give a progress presentation about the current state of my PhD, and I can whip those up in no time. I use Boilerplate Paper not only for writing my papers, but also for presentations like this.

    I write the presentation in Markdown and then convert it to reveal.js. But sometimes you want something else than the default sliding transition that reveal.js provides.

\ No newline at end of file diff --git a/topics/git/index.html b/topics/git/index.html index 78ce535d..dec1af0d 100644 --- a/topics/git/index.html +++ b/topics/git/index.html @@ -1 +1 @@ -Posts for git
Gijs van Dam
  • Measuring your writing progress with a git word count

    5 minute read

    Writing a scientific paper is hard. Doing your PhD is hard. Writing your thesis is hard. And to make me feel even more miserable I decided to measure my progress by counting the net change in words I achieve throughout each day. I am by no means a productivity guru and I don't know whether word count is a useful indicator for measuring the progress of a paper. That being said, it is a reality check to see how fast my work is progressing. So without further ado here's the Powershell command that outputs the wordcount for the last 25 days based on git commits.

    for($i = 0; $i -lt 25; $i++){$j = $i + 1; Write-Host (get-date (get-date).addDays(-$i) -UFormat "%Y%m%d") ((git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"   -- "***.md"| Select-String -Pattern "^\+.*" | Measure-Object -word | select -ExpandProperty Words) - (git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"  -- "***.md"| Select-String -Pattern "^-.*" | Measure-Object -word | select -ExpandProperty Words)) }
\ No newline at end of file +Posts for git
Gijs van Dam
  • Measuring your writing progress with a git word count

    5 minute read

    Writing a scientific paper is hard. Doing your PhD is hard. Writing your thesis is hard. And to make me feel even more miserable I decided to measure my progress by counting the net change in words I achieve throughout each day. I am by no means a productivity guru and I don't know whether word count is a useful indicator for measuring the progress of a paper. That being said, it is a reality check to see how fast my work is progressing. So without further ado here's the Powershell command that outputs the wordcount for the last 25 days based on git commits. (For the bash command, see the bottom of this post)

    for($i = 0; $i -lt 25; $i++){$j = $i + 1; Write-Host (get-date (get-date).addDays(-$i) -UFormat "%Y%m%d") ((git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"   -- "***.md"| Select-String -Pattern "^\+.*" | Measure-Object -word | select -ExpandProperty Words) - (git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"  -- "***.md"| Select-String -Pattern "^-.*" | Measure-Object -word | select -ExpandProperty Words)) }
\ No newline at end of file diff --git a/topics/powershell/index.html b/topics/powershell/index.html index 4729359d..612c21c7 100644 --- a/topics/powershell/index.html +++ b/topics/powershell/index.html @@ -1 +1 @@ -Posts for powershell
Gijs van Dam
  • Measuring your writing progress with a git word count

    5 minute read

    Writing a scientific paper is hard. Doing your PhD is hard. Writing your thesis is hard. And to make me feel even more miserable I decided to measure my progress by counting the net change in words I achieve throughout each day. I am by no means a productivity guru and I don't know whether word count is a useful indicator for measuring the progress of a paper. That being said, it is a reality check to see how fast my work is progressing. So without further ado here's the Powershell command that outputs the wordcount for the last 25 days based on git commits.

    for($i = 0; $i -lt 25; $i++){$j = $i + 1; Write-Host (get-date (get-date).addDays(-$i) -UFormat "%Y%m%d") ((git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"   -- "***.md"| Select-String -Pattern "^\+.*" | Measure-Object -word | select -ExpandProperty Words) - (git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"  -- "***.md"| Select-String -Pattern "^-.*" | Measure-Object -word | select -ExpandProperty Words)) }
\ No newline at end of file +Posts for powershell
Gijs van Dam
  • Measuring your writing progress with a git word count

    5 minute read

    Writing a scientific paper is hard. Doing your PhD is hard. Writing your thesis is hard. And to make me feel even more miserable I decided to measure my progress by counting the net change in words I achieve throughout each day. I am by no means a productivity guru and I don't know whether word count is a useful indicator for measuring the progress of a paper. That being said, it is a reality check to see how fast my work is progressing. So without further ado here's the Powershell command that outputs the wordcount for the last 25 days based on git commits. (For the bash command, see the bottom of this post)

    for($i = 0; $i -lt 25; $i++){$j = $i + 1; Write-Host (get-date (get-date).addDays(-$i) -UFormat "%Y%m%d") ((git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"   -- "***.md"| Select-String -Pattern "^\+.*" | Measure-Object -word | select -ExpandProperty Words) - (git diff --word-diff=porcelain "@{$j days ago}" "@{$i days ago}"  -- "***.md"| Select-String -Pattern "^-.*" | Measure-Object -word | select -ExpandProperty Words)) }
\ No newline at end of file