Comments for Angus Thinks… https://www.malcolmhardie.com/weblogs/angus SQLEditor for Mac OS X, Life and general thoughts Wed, 31 Oct 2018 07:39:13 +0000 hourly 1 https://wordpress.org/?v=6.3.1 Comment on Serial Number Systems by Andrew Thomas https://www.malcolmhardie.com/weblogs/angus/2004/09/02/serial-number-systems/comment-page-1/#comment-57664 Wed, 31 Oct 2018 07:39:13 +0000 /?p=61#comment-57664 Is it possible to know the 3 missing Characters? 6I6W-D7BV-NSKB-4###? Made from SPRNG number and converted to Base36 Code. These characters are excluded from being in the code. No (0,7,8,9,A,C,Q,R,S,T,X)

]]>
Comment on Disable “You have new mail” terminal message by Angus Hardie https://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/comment-page-1/#comment-57108 Mon, 01 Oct 2018 00:54:16 +0000 http://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/#comment-57108 In reply to Ryan.

I disagree that it’s stupid, it’s a choice based on the setup.

If you have a user account on a system that receives external mail, it’s probable that there is always new mail in the account, so the notification actually tells you nothing.

This isn’t turning the mail account off, merely the mail notification, which I personally find to be a distraction.

You must find this indication useful, in which case you should presumably leave it on.

]]>
Comment on Disable “You have new mail” terminal message by Ryan https://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/comment-page-1/#comment-55339 Fri, 20 Apr 2018 18:49:43 +0000 http://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/#comment-55339 How many times you log in your system? Once per day max?
A 10 characters single line of text per day is what bothers you?
You receive there important information about what is going on in your system, as cronjobs outputs and others, silencing it is not only pointless but stupid.

]]>
Comment on Disable “You have new mail” terminal message by Sasha https://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/comment-page-1/#comment-54000 Wed, 03 Jan 2018 04:55:59 +0000 http://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/#comment-54000 A lot of Thank you!

]]>
Comment on PHP, trim and the non breaking space by mike Q https://www.malcolmhardie.com/weblogs/angus/2005/08/03/php-trim-and-the-non-breaking-space/comment-page-1/#comment-51355 Tue, 23 May 2017 14:46:03 +0000 http://www.malcolmhardie.com/weblogs/angus/?p=160#comment-51355 // — quick solution to remove utf-8 etc. (urlencode) —
array_walk_recursive($data, function (&$item)
{
$item = trim(preg_replace(‘/[\x00-\x1F\x7F\xA0]/u’, “”, $item));
});

]]>
Comment on Disable “You have new mail” terminal message by Hasanuzzaman shozib https://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/comment-page-1/#comment-48629 Sun, 08 Jan 2017 05:09:20 +0000 http://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/#comment-48629 Thanks

]]>
Comment on PHP, trim and the non breaking space by Buttle Butkus https://www.malcolmhardie.com/weblogs/angus/2005/08/03/php-trim-and-the-non-breaking-space/comment-page-1/#comment-41698 Thu, 04 Jun 2015 03:02:14 +0000 http://www.malcolmhardie.com/weblogs/angus/?p=160#comment-41698 Replace nbsp (non-breaking space) with regular space like so.

$value = preg_replace('~\x{00a0}~siu',' ',$value);

Note that there is a space between the two single quotes after “siu’,” and before “,$value”. You could change that to ” (no space) to remove the nbsp.

]]>
Comment on Change console keyboard layout in debian by Rolf https://www.malcolmhardie.com/weblogs/angus/2006/05/02/change-console-keyboard-layout-in-debian/comment-page-1/#comment-39618 Mon, 27 Apr 2015 10:01:13 +0000 http://www.malcolmhardie.com/weblogs/angus/?p=176#comment-39618 Thanks!
I had a problem with my keys at the console. I had no pipe character (it produced a tilde instead – and the tilde produced an A followed by some form. Sometimes characters would refuse to be deleted from the command line!
All worked well within X, but not at the “proper” Linux console.
This command fixed the mapping, now I can have pipes! I wonder what I should do if my pipe character is broken. It’s a little ridiculous.
But there are still some minor problems with the “proper” linux console, namely in the presentation – weird, gibberish characters being used for ASCII table borders instead of the lines, for example. But the consequences are only cosmetic so far.

]]>
Comment on Change console keyboard layout in debian by Stefan https://www.malcolmhardie.com/weblogs/angus/2006/05/02/change-console-keyboard-layout-in-debian/comment-page-1/#comment-30534 Fri, 25 Apr 2014 12:32:41 +0000 http://www.malcolmhardie.com/weblogs/angus/?p=176#comment-30534 In addition to the comment of djamu:

It is necessary to restart the keyboard-service:

> dpkg-reconfigure keyboard-configuration
> service keyboard-setup restart

See also: Debian Wiki

]]>
Comment on Change console keyboard layout in debian by Marin https://www.malcolmhardie.com/weblogs/angus/2006/05/02/change-console-keyboard-layout-in-debian/comment-page-1/#comment-30531 Thu, 24 Apr 2014 09:18:03 +0000 http://www.malcolmhardie.com/weblogs/angus/?p=176#comment-30531 Thanks a lot! Just what i needed!

]]>