The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,854 other subscribers

Git history in Visual Studio Code

Posted by jpluimers on 2020/11/04

Out of the box, Visual Studio Code does allow you to pull from and commit/push to git repositories, but it has not much more git support.

These two marketplace extensions will help big time:

I like GitLens most as it covers so much more than just git history.

If you only need git history access, then you can use Git History as well.

More information and a better comparison:

–jeroen

Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | Leave a Comment »

Mikrotik Remote Access via Multiple WAN Links | Syed Jahanzaib Personal Blog to Share Knowledge !

Posted by jpluimers on 2020/11/04

Multi-WAN routing always involves marking incoming connections to the replies go out on the same connection: [WayBack] Mikrotik Remote Access via Multiple WAN Links | Syed Jahanzaib Personal Blog to Share Knowledge !

# Mirkotik IP Firewall Mangle Section
/ ip firewall mangle
# Mark traffic coming via WAN-1 link
add chain=input in-interface=WAN1 action=mark-connection new-connection-mark=WAN1_incoming_conn
# Mark traffic coming via WAN-2 link
add chain=input in-interface=WAN2 action=mark-connection new-connection-mark=WAN2_incoming_conn
# Mark traffic routing mark for above marked connection for WAN-1 , so that mikrotik will return traffic via same interface it came in
add chain=output connection-mark=WAN1_incoming_conn action=mark-routing new-routing-mark=to_WAN1
# Mark traffic routing mark for above marked connection for WAN-2, so that mikrotik will return traffic via same interface it came in
add chain=output connection-mark=WAN2_incoming_conn action=mark-routing new-routing-mark=to_WAN2
# Finally Add appropriate routes in ROUTE section
/ ip route
add dst-address=0.0.0.0/0 gateway=1.1.1.2 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=2.2.2.2 routing-mark=to_WAN2 check-gateway=ping

Related:

–jeroen

Posted in Development, Internet, MikroTik, Power User, RouterOS, routers, Scripting, Software Development | Leave a Comment »

Pointers are dangerous – twm’s blog

Posted by jpluimers on 2020/11/04

TL;DR

  1. Do not keep pointers to objects in memory that can be relocated.
  2. SetLength can relocate the memory

[WayBack] Pointers are dangerous – twm’s blog

Via: [WayBack] Pointers can be really helpful, especially they can improve performance and readability, but they are also dangerous. I spent nearly a day tracking down… – Thomas Mueller (dummzeuch) – Google+

–jeroen

Posted in Conference Topics, Conferences, Delphi, Development, Event, Software Development | Leave a Comment »

Plastic SCM blog: Unified diff of a branch

Posted by jpluimers on 2020/11/03

Too bad I bumped into this a long time after having been a regular PlasticSCM user: [Archive.is] Plastic SCM blog: Unified diff of a branch:

Learn how to create a custom action to run a unified diff operation for a Plastic SCM branch.

It is an open source tool called unifiedbranchdiff.exe at github, and seems based on a cm path for getting paths, and cm patch for generating the actual patch, and needing external GNU tools diff and patch (hopefully it also works with more recent versions than the woefully outdated 2007 Win32 versions of [WayBack] DiffUtils 2.8.7 for Windows and [WayBack] Patch 2.5.9 for Windows).

Related:

–jeroen

 

 

Posted in Development, DVCS - Distributed Version Control, PlasticSCM, Software Development, Source Code Management | Leave a Comment »

html – Is it possible to specify a starting number for an ordered list? – Stack Overflow

Posted by jpluimers on 2020/11/03

Since I keep forgetting this has been possible since the introduction of html 5: [WayBack] html – Is it possible to specify a starting number for an ordered list? – Stack Overflow:

If you need the functionality to start an ordered list (OL) at a specific point, you’ll have to specify your doctype as HTML 5; which is:

<!doctype html>

With that doctype, it is valid to set a start attribute on an ordered list. Such as:

<ol start="6">
  <li>Lorem</li>
  <li>Ipsum</li>
  <li>Dolor</li>
</ol>

–jeroen

Posted in Development, HTML, HTML5, Software Development, Web Development | Leave a Comment »

Since Delphi still does not include a TDateTimeHelper: use the one by colini which has tests

Posted by jpluimers on 2020/11/03

These are quite OK: [WayBack] GitHub – colinj/TDateTimeHelper: Helper record for TDateTime type in [WayBack] DateTimeHelper.pas with DUnitX tests in [WayBackTDateTimeHelper.Tests.pas.

Via: [WayBackDoes Delphi XE 10.2.2 ship with type helpers for TDateTime type? Or do I need to implement my own. – Graeme Geldenhuys – Google+.

It got even promoted at [WayBack] Delphi XE3: Record Helpers for Intrinsic Types.

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »

Searching old Twitter posts

Posted by jpluimers on 2020/11/02

I got a bit tired of scrolling back to a known date for posts (as having a couple of 100 tweets visible really makes browsers slooooooooooooooow), so I wondered if you could limit a date range. Yes you can! There are even more options, and there is even a special search page for that:

You can use all these from the regular search as well as per [WayBack] Find Your Old Tweets: How to See Your First Tweet | WordStream.

A was too lazy to find all the possible keywords myself, so used [WayBack] How to use advanced Twitter search queries (with examples!) | Union Metrics (and a few others I found later) to make this list:

keword/prefix meaning/values
include word or phrase
if it is an account: includes tweets from, mentions and retweets of that account
negate: exclude this word or phrase
@ mentions of an account, but not tweets from it
# hashtag
lang: two-letter ISO 639-1 language code from [WayBack] What languages can I limit report results to? – Union Metrics Help Desk;
might actually be any BCP 47 IETF language tag
near: region (country, city)
within: distance around center of region (at least ##mi for miles and ##km for kilometers are supported)
since: date, including the since date
until: date, excluding the until date
to: reply-tweets to an account (which does not allow an @)
from: tweets from an account (which does not allow an @)
filter: at least recognises filter:links to only returns tweets having links
:( searches for negative attitudes (it recognises many negative emoticons)
:) searches for negative attitudes (it recognises many positive emoticons)
? searches for questions
source: at least recognises source:twitterfeed to only return tweets posted via twitterfeed
OR include multiple words or phrases

 

A few tips of things to avoid:

  • same start/finish dates: that makes the range 0 days and not display any tweets at all
  • too long date range: browsers do not like having many tweets visible at the same time

So this does not work: https://twitter.com/search?l=&q=from%3Ajpluimers%20since%3A2020-01-01%20until%3A2020-01-01&src=typd

But this does: https://twitter.com/search?l=&q=from%3Ajpluimers%20since%3A2020-01-01%20until%3A2020-01-02&src=typd

You can even reclaim your time-line on a specific date: just increase the date by one day: https://twitter.com/search?f=tweets&vertical=default&q=filter%3Afollows%20until%3A2020-01-02%20-filter%3Areplies&src=typd

Three really cool things on that last URL

  • it shows as the “old fashioned” (not mangled by Twitter because of popularity/advertisements/etc) way
  • you can apply it for the current date as well (just remember to add one day!)
  • if you do, it automatically shows if there are updates

Hmm, maybe I should make a redirect that always shows your timeline for today in the non-mangled way (:

Some more links I found during this search:

–jeroen

Read the rest of this entry »

Posted in Power User, SocialMedia, Twitter | Leave a Comment »

Do you like/use the Slate font by OnePlus? Do you prefer it over Roboto? – Quora

Posted by jpluimers on 2020/11/02

No, I do not like the OnePlus Slate font, despite the lower x-height.

Background:

The fonts (images from Wikipedia):

Roboto – Wikipedia

Slate (typeface) – Wikipedia

–jeroen

Read the rest of this entry »

Posted in Android Devices, Font, LifeHacker, OnePlus Five, OnePlus Six, Power User | Leave a Comment »

Ik ben wat verward over de @WoonVeilig site. https://t.co/ui8agTkgM9 heeft het bijvoorbeeld over GATE-03 en GATE-02, maar https://t.co/QswkrlsuZY over ALARM-03 en SMARTHOME-01. Ook heeft SMARTHOME-01 meer accessoires dan ALARM-03. Werken die extra (zoals CO-25) niet op ALARM-03?”

Posted by jpluimers on 2020/11/02

[WayBack] “Ik ben wat verward over de @WoonVeilig site. www.woonveilig.nl/juiste-producten- heeft het bijvoorbeeld over GATE-03 en GATE-02, maar www.woonveilig.nl/klantenservice/handleidingen over ALARM-03 en SMARTHOME-01. Ook heeft SMARTHOME-01 meer accessoires dan ALARM-03. Werken die extra (zoals CO-25) niet op ALARM-03?”

Wat linkjes:

Tweakers.net:

Concurrentie: SmartAlarm; ook met beperking IP-only.

Meer domotica dan concurrentie: HomeWizard.

Over het hoe en waarom:

–jeroen

Read the rest of this entry »

Posted in LifeHacker, Power User, Security | Leave a Comment »

Thread by @doctorow on the RIAA using DMCA section 1201 to ban youtubedl from GitHub

Posted by jpluimers on 2020/10/31

A very interesting thread by @doctorow:

Late last week, the @RIAA sent a legal threat to @Github, claiming that the popular (and absolutely lawful) tool #youtubedl (which allows users to download Youtube videos for offline viewing, e……

Source: [WayBack] Thread by @doctorow on Thread Reader App – Thread Reader App

More on section 1201: [Wayback] Pluralistic: 24 Oct 2020 – Pluralistic: Daily links from Cory Doctorow: RIAA kills youtubedl

There is also a great technical analysis at [Wayback/Archive.is] Analysis of the RIAA claims against youtube-dl · GitHub

This write-up follows the code paths in youtube-dl that get executed when you try to run it based on the claims of RIAA has put forwardThis is a technical analysis, not a legal one.

via

–jeroen

Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, GitHub, Opinions, Power User, Software Development, Source Code Management | Leave a Comment »