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,854 other subscribers

Archive for 2018

windows – How to list all files in directory/subdirectory without path name CMD? – Stack Overflow

Posted by jpluimers on 2018/07/30

I needed all .dproj files in all subdirectories, but only their filenames without any directory names.

With directory names, this is easy:

dir /s /b *.dproj

The answers at [WayBack] windows – How to list all files in directory/subdirectory without path name CMD? – Stack Overflow give the below kind of output.

[WayBack] forfiles embeds all filenames within quotes:

forfiles /m *.dproj /s

"Foo.dproj"
"Bar.dproj"

A more convoluted [WayBack] for loop gives them without quotes where n stands for name and x for extension including .:

for /r %a in (*.dproj) do @echo %~nxa
Foo.dproj
Bar.dproj

–jeroen

Posted in Batch-Files, CommandLine, Development, Power User, Scripting, Software Development, Windows | Leave a Comment »

sosumi – because letitbeep was too obvious – apple Macintosh history

Posted by jpluimers on 2018/07/30

Back in the days, Apple and The Beatles were in a heated fight as Apple was not supposed to do anything resembling music in their systems.

So when sounds needed to be made, they could not be named by words having to do with music.

The legal team in Apple – known for lack of humor – was scrutinizing sources and documents on names that would be inappropriate.

Jim Reekes came up with letitbeep for one of the warning sounds, but that was too obvious, so he said sosumi, pretended it to be a Japanese word and named the sound just like that.

I learned from it through one of the RetroMacCast videos below. Then I found the page Sosumi – Wikipedia. So I guess I’ll be never to old to learn (:

–jeroen

Read the rest of this entry »

Posted in Apple, Classic Macintosh, History, Power User | Leave a Comment »

A cheat-sheet for password crackers

Posted by jpluimers on 2018/07/30

Interesting: [WayBackA cheat-sheet for password crackers

Via: [WayBackJoe C. Hecht – Google+

–jeroen

Posted in *nix, *nix-tools, Hashing, md5, Power User, Security, SHA, SHA-256, SHA-512 | Leave a Comment »

Sonic Pi

Posted by jpluimers on 2018/07/29

https://plus.google.com/+JeroenPluimers/posts/81xPrhbMu65

https://plus.google.com/+JeroenPluimers/posts/Rs8YwyXQXke

Posted in Uncategorized | Leave a Comment »

Going to test some USB 3 gigabit ethernet adapters based on Realtek RTL8153 and Asix AX88179 chips

Posted by jpluimers on 2018/07/27

Later on, I might add a USB31000S in the mix, but I will do some initial testing with USB 3 gigabit ethernet adapters based on Realtek RTL8153 and Asix AX88179 chips.

Things I will focus on with my Retina MacBook Pro 2015 model are:

  • CPU usage
  • Throughput
  • Duration between reconnect on USB after suspend, and renewing the DHCP lease
  • Promiscuous mode capabilities

Some links for my references:

A first impression from the above links is that for Realtek chipset based devices, drivers are more readily included in operating systems, and these chipsets are better at VLAN handling.

–jeroen

Posted in Ethernet, LifeHacker, Network-and-equipment, Power User, USB, USB, USB-C | Leave a Comment »

DISM fix for Windows 8.1 high CPU usage of TiWorker.exe

Posted by jpluimers on 2018/07/27

This worked for Windows 8.1 as well: Trying fix for Windows 8 high CPU usage of TiWorker.exe (via: bit-tech.net) « The Wiert Corner – irregular stream of stuff

DISM /online /cleanup-image /restorehealth

 

After more than one hour of running, it:

  • freed up more than a gigabyte of disk space. Which on an SSD based VM is a lot.
  • solved the huge memory footprint of TiWorker.exe on the right.

–jeroen

Posted in Power User, Windows, Windows 8, Windows 8.1 | Leave a Comment »

Merry SysMas!

Posted by jpluimers on 2018/07/27

For all you SysAdmin’s: happy SysAdmin Day | System Administrator Appreciation Day.

For all others: please show some appreciation for your SysAdmins today. They are the ones keeping your business running. The less visible they are, the better they do their work.

Gifts are always welcome with them, but you can also appreciate SysAdmins by trying this:

And for the SysAdmins: have a laugh:

Read the rest of this entry »

Posted in Power User | Leave a Comment »

The Plastic equivalent of .gitignore is ignore.conf

Posted by jpluimers on 2018/07/26

A while ago, I landed a place using Plastic SCM, so I had to adopt some idiom from the git world.

The [WayBack] .gitignore equivalent in Pastic SCM is ignore.conf. Here are some links to documentation on it:

There is another file with a similar, but deceptively different name and behaviour: hidden_changes.conf. There ignore.conf ignores changes, hidden_changes.conf completely hides them. I am still not sure what subtleties are involved in the difference between “ignore” and “hide”, as the documentation is confusing and hidden_changes.conf can also appear in the root of a repository:

hidden_changes.conf Contains the paths of the controlled files to hide from the Pending changes view. The hidden changes are controlled items that can be changed but the user doesn’t want them to appear by default on the Pending changes view.

This config file is located in the plastic4 directory (under $HOME/.plastic4 on Linux/Mac systems or C:\Users\user\AppData\Local\plastic4 on Windows), in the root directory of the workspace, or in the plastic-global-config repository so that all clients have the same settings by default.

Learn about how to configure the hidden changes list.

ignore.conf Contains the paths of the private files to be ignored in the Pending changes view. The ignored files are files that you have no intention of placing under source control.

This config file is placed at the root directory of the workspace, or in the plastic-global-config repository so that all clients have the same settings by default.

Learn about how to configure the ignored list.

These configuration files are supported:

Important: These are the files that can be globally configured:

So I based mine on Tortoise SVN Global Ignore Pattern for Delphi and Visual Studio containing at least these:

*.identcache
*.local
*.dcu
*.rsm
*.bak
*.~*
*.tvsconfig
__history
__recovery
ModelSupport_*

–jeroen

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

Quickly generate queries for all non-system tables in your database in Firebird or InterBase

Posted by jpluimers on 2018/07/26

Change at will:

  select 'select * from ' || r.rdb$relation_name as query
    from rdb$relations r
   where 1=1
     and r.rdb$system_flag <> 1 -- no system relations
     and r.rdb$view_source is null -- only tables
order by r.rdb$relation_name

For the EMPLOYEE demo database, this results in:

select * from COUNTRY
select * from CUSTOMER
select * from DEPARTMENT
select * from EMPLOYEE
select * from EMPLOYEE_PROJECT
select * from JOB
select * from PROJECT
select * from PROJ_DEPT_BUDGET
select * from SALARY_HISTORY
select * from SALES 

–jeroen

Posted in Database Development, Development, Firebird, InterBase, Software Development | Leave a Comment »

Reminder to self: adopt the below code to do $(…) expansion like the Delphi IDE does

Posted by jpluimers on 2018/07/26

The below code expands %…% for environment variables and $(…) for CSIDL values.

Someday I will find time to convert it to something that does expansion like the $(…) one from the Delphi IDE.

  • ConfigExpanderUnit
  • CSIDLsUnit

References:

–jeroen

Read the rest of this entry »

Posted in Uncategorized | Leave a Comment »