The Wiert Corner – irregular stream of stuff

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

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

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

    Join 1,839 other subscribers

Author Archive

It’s actually only “Helvetica” if it comes from the Helvetia region of Europe. Otherwise you have to call it “sparkling Arial”

Posted by jpluimers on 2018/12/24

Check out [WayBackPavel A. Samsonov on Twitter: “It’s actually only “Helvetica” if it comes from the Helvetia region of Europe. Otherwise you have to call it “sparkling Arial””

Too much font goodness:

–jeroen

Read the rest of this entry »

Posted in Font, Fun, Power User | Leave a Comment »

How to Setup Chroot SFTP in Linux (Allow Only SFTP, not SSH)

Posted by jpluimers on 2018/12/24

If you want to setup an account on your system that will be used only to transfer files (and not to ssh to the system), you should setup SFTP Chroot Jail.

This explains how: [WayBack] How to Setup Chroot SFTP in Linux (Allow Only SFTP, not SSH)

Posted in *nix, *nix-tools, Communications Development, Development, Internet protocol suite, Power User, SFTP, SSH, TCP | Leave a Comment »

Dieses sudo-Gehampel unter Debian/Ubuntu nervt. Aber es gibt Abhilfe: alias…

Posted by jpluimers on 2018/12/24

[WayBack] Dieses sudo-Gehampel unter Debian/Ubuntu nervt. Aber es gibt Abhilfe: alias iddqd=’sudo su -‘ – Kristian Köhntopp – Google+

Or maybe this:

iddqd='sudo -i'

–jeroen

PS: “sudo su -” vs “sudo -i”

 

Posted in *nix, Linux, Power User | Leave a Comment »

Reptyr – Forgot to “screen” your ssh session first, and now that long running…

Posted by jpluimers on 2018/12/24

From a while back, but still so cool! It allows you to “recover” the terminal (stdin/stdout/stderr) of a process that was attached to a terminal or ssh session.

Reptyr – Forgot to “screen” your ssh session first, and now that long running thing is stuck?

»reptyr PID will grab the process with id PID and attach it to your current terminal.«

server:~ # zypper install reptyr
...
Retrieving: reptyr-0.3dev_git20120325-7.1.2.x86_64.rpm ...................[done]
(1/1) Installing: reptyr-0.3dev_git20120325-7.1.2 ........................[done]
server:~ # rpm -qi reptyr
...
Summary     : A tool for "re-ptying" programs
Description :
reptyr is a utility for taking an existing running program and
attaching it to a new terminal. Started a long-running process over
ssh, but have to leave and don't want to interrupt it? Just start a
screen, use reptyr to grab it, and then kill the ssh session and head
on home.
Distribution: openSUSE 13.1

Source: [WayBack] Reptyr – Forgot to “screen” your ssh session first, and now that long running thing is stuck?… – Kristian Köhntopp – Google+

It works with tmux too and is supported on many Linux distributions, see for instance [WayBackReptyr – Move A Running Process From One Terminal To Another Without Closing It – OSTechNix.

You can even redirect a pty for gdb usage: [WayBackreptyr(1): new terminal – Linux man page

StackExchange thread: [WayBack] How to recover a shell after a disconnection with these entries:

Originally from 2011 [WayBackreptyr: Attach a running process to a new terminal – Made of Bugs it is still maintained:

GitHub repository [WayBacknelhage/reptyr: Reparent a running program to a new terminal

–jeroen

Posted in *nix, *nix-tools, Linux, openSuSE, Power User, screen, SuSE Linux, tmux | Leave a Comment »

Life after Google+ – Lars Fosdal

Posted by jpluimers on 2018/12/24

I need to find a place to host “The Wiert G+ stream, formerly plus.google.com/+JeroenPluimers“.

Maybe i should do something like Lars is setting up:

I am setting up camp at WordPress.com, and importing my old G+ content there, using the Friends+Me Google+ Export tool. Whether this will be my permanent home, still remains to be seen. If you use …

Source: [WayBackLife after Google+ – Lars Fosdal.

Via: [WayBack1/WayBack2] Life after Google+ WordPress.com (Primary)… – Lars Fosdal – Google+

The good news: Lars started a series of posts describing the process, so the reminder to myself: archive them in a list:

–jeroen

Posted in G+: GooglePlus, History, Power User, SocialMedia | Leave a Comment »

linux – Keeping the fancy sudo warning forever – Super User

Posted by jpluimers on 2018/12/21

Be careful what you do: blindly following Super User can make sudo unavailable: [WayBacklinux – Keeping the fancy sudo warning forever – Super User.

Following the answer archived in the WayBack machine gets you into this situation:

sudo -i
>>> /etc/sudoers.d/privacy: syntax error near line 1 <<<
sudo: parse error in /etc/sudoers.d/privacy near line 1
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

The cause:

I forgot to put a line terminator at the end of the line in the privacy file.

If you do that, then it works fine: add this line INCLUDING A LINE TERMINATOR to /etc/sudoers.d/privacy (any file in that directory will do):

Default lecture=always

Related

–jeroen

Posted in *nix, *nix-tools, Power User | Leave a Comment »

URL query string for searching own GitHub Gists (via: Stack Overflow)

Posted by jpluimers on 2018/12/21

Is there a URL query string for searching own GitHub Gists? – Stack Overflow.

Yes, there is, and search terms search within your gists too:

More search parameters are at https://github.com/random-parts/til/blob/master/github/gist-search-cheatsheet.md

–jeroen

via: https://github.com/isaacs/github/issues/1097

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

How to Force Google Chrome to Use Google.com Instead of Country Specific Version

Posted by jpluimers on 2018/12/21

Steps:

  1. visit this URL once: https://google.com/ncr (to fix google.com as search engine)
  2. define a Google.com search shortcut in chrome://settings/searchEngines

You can use example search shortcuts from Forcing Chrome to use google.com as search engine.

If you forget the first step, then often your search still will go a localised place (except when you are in the USA).

–jeroen

Posted in Google, GoogleSearch, Power User | Leave a Comment »

Google Now launcher replacement?

Posted by jpluimers on 2018/12/21

I missed this earlier this year, but while switching phones found out: Google Now is not available for most devices any more.

So I’ am looking for a replacement that has:

  • 5×5 application/group icons on each home screen page
  • 4 application/group icons on the bottom static row
  • support for Google Search
  • support for Google Assistant voice control

This I totally missed:

–jeroen

Read the rest of this entry »

Posted in Android Devices, LifeHacker, Power User | Leave a Comment »

Do not put IFDEF with relative paths in your .dpr as the Delphi IDE cannot match them in the .dproj

Posted by jpluimers on 2018/12/20

The Delphi IDE manages the .dpr and .dproj files for, trying to keep them in sync.

Some information is duplicated between the two, especially files referenced by relative paths: those files are contained in your project.

This means you cannot do something like this in your .dpr file:

  {$IFDEF DEBUG}
  Debug in '..\..\..\..\Shared\Debug.pas';
  {$ELSE}
  Debug in '..\Debug.pas'
  {$ENDIF}

There is no equivalent for this in the .dproj and it will confuse the IDE which file now actually is or is not inside your project.

Better to leave the file outside of your project, then modify the RELEASE/DEBUG search paths to have the correct one.

Even better is to have just one Debug.pas file containing the changes.

–jeroen

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