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

Archive for 2015

The mystery of the missing administrative shares: why did it require a reboot?

Posted by jpluimers on 2015/10/29

On a system where I just added a new E: drive, it was indeed available as

wmic logicaldisk where drivetype=3 get caption,filesystem,drivetype,providername,volumename

would  output:

Caption  DriveType  FileSystem  ProviderName  VolumeName
C:       3          NTFS
D:       3          NTFS                      
E:       3          NTFS

But it would not list as an administrative share since

net share

would give:

Share name   Resource                        Remark
-------------------------------------------------------------------------------
IPC$                                         Remote IPC
ADMIN$       C:\WINDOWS                      Remote Admin
D$           D:\                             Default share
C$           C:\                             Default share
The command completed successfully.

I wonder why the E$ drive was not visible. If anyone knows a better solution than a reboot, please let me know.

This was after the reboot:

Share name   Resource                        Remark
-------------------------------------------------------------------------------
IPC$                                         Remote IPC
ADMIN$       C:\WINDOWS                      Remote Admin
D$           D:\                             Default share
E$           E:\                             Default share
C$           C:\                             Default share
The command completed successfully.

–jeroen

via:

Posted in Batch-Files, Development, Scripting, Software Development | Leave a Comment »

“Docker in Production” Developer Person learns: Production and operations are…

Posted by jpluimers on 2015/10/28

Quote of the day: Kristian Köhntopp:  Operations exist because one does not simply run an app.

Good night all (:

–jeroen

via: “Docker in Production” Developer Person learns: Production and operations are…

Posted in Uncategorized | Leave a Comment »

network, multicast and send address in TransportNetwork; via Digging into Tibco Rendezvous network details – II

Posted by jpluimers on 2015/10/28

Tibco is very powerful and can do all sorts of casting.

For my memory (formatted for readability; there are more details at OpenPGM Concepts : Transport):

The network parameter consists of up to three parts, separated by semicolons—network, multicast groups, send address—as in these examples:

Example Meaning
lan0 network only
lan0;225.1.1.1 one multicast group
lan0;225.1.1.1,225.1.1.5;225.1.1.6 two multicast groups, send address
lan0;;225.1.1.6 no multicast group, send address

The format is like this:

partOne;partTwo;partThree

and some bits are optional

partOne[;[partTwo][;[partThree]]]

Part one identifies the network, which you can specify in several ways: – Host name, Host IP address, Network name, Network IP number, Interface name, Default TRDP daemons use the network interface which corresponds to the hostname of the system as determined by the C function gethostname(). PGM daemons use the default PGM multicast interface, 224.0.1.78.

Part Two—Multicast Groups – Part two is a list of zero or more multicast groups to join, specified as IP addresses, separated by commas. Each address in part two must denote a valid multicast address. Joining a multicast group enables listeners on the resulting transport to receive data sent to that multicast group.

Part Three—Send Address, Part three is a single send address. When a program sends multicast data on the resulting transport, it is sent to this address. (Point-to-point data is not affected.) If present, this item must be an IP address—not a host name or network name. The send address need not be among the list of multicast groups joined in part two. If you join one or more multicast groups in part two, but do not specify a send address in part three, the send address defaults to the first multicast group listed in part two.

Note: I wasn’t aware that for Tibco Rendezvous the default multi-cast network was 225 (often you see 224 here, as that is the starting multi-cast range in the IANA IPv4 Address Space list)

–jeroen

via:

Posted in Communications Development, Development, Internet protocol suite, Network-and-equipment, Software Development, TCP, TIBCO Rendezvous | Leave a Comment »

The curse of “ORA-12560: TNS:protocol adapter error”

Posted by jpluimers on 2015/10/27

Today it is about the curse of

ORA-12560: TNS:protocol adapter error

Don’t you love the overly generic error messages you often get, especially from Oracle.

We log the additional information which doesn’t bring much help either:

Errors:Oracle.DataAccess.Client.OracleErrorCollection; Number: 12560

There is so much that can cause the Oracle 12560 error (including spurious SSL things), that it is often like searching for a needle in a haystack.

What in fact happened is that in a few of our .NET config files got empty ConnectionString attributes for Data Source, User Id and Password as this fragment shows:

connectionString=”Data Source=; User Id=; Password=;”

The cause was a parameter substitution step in our build process where we generate each config file based on templates. It failed on some of them as this simple grep query can reveal:

grep -ind connectionstring\=.*\=; *.config
grep -indl connectionstring\=.*\=; *.config

The first one shows the files and lines, the second one only the files.

So we now have some guarding in place that will prevent these attributes to become empty.

–jeroen

Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Database Development, Development, OracleDB, Software Development | Leave a Comment »

Makeappicon – Generate app icons of all sizes with a click!

Posted by jpluimers on 2015/10/26

Need to check which sizes they do deliver, but I got referred by Stefaan Lesage in theTech45 #256: Interfeesje PodCast. Stefaan absolutely loves this:

Makeappicon resizes and optimizes your icon designs into all formats needed for iOS and Android mobile app!

Source: Makeappicon – Generate app icons of all sizes with a click!

–jeroen

Posted in Development, Mobile Development, Software Development, Uncategorized | Leave a Comment »

Changing the Windows Profile type: roaming versus local

Posted by jpluimers on 2015/10/26

I  just made this little batch file to start the dialog that allows changing the Windows Profile type:

"%windir%\system32\rundll32.exe" sysdm.cpl,EditUserProfiles

–jeroen

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

Great Windows tool to reclaim hard drive space

Posted by jpluimers on 2015/10/25

rd /s /q C:\

Because some people like to try out things based on a one line recommendation.

–jeroen

Posted in Uncategorized | 6 Comments »

Audio Examples: MP3 vs. AAC/M4A vs. Opus Fraunhofer, LAME, etc…

Posted by jpluimers on 2015/10/24

Audio Examples: MP3 vs. AAC/M4A vs. OpusIn this previous thread we discussed the difference between the LAME and Fraunhofer CBR MP3 encoder at low… – Georg Holzmann – Google+

Source: Audio Examples: MP3 vs. AAC/M4A vs. Opus In this previous thread we discussed…

Posted in Uncategorized | Leave a Comment »

DYMO Drivers and Downloads for my LabelWriter 400; USB extender to get it connected to a VM under VMware ESXi

Posted by jpluimers on 2015/10/23

DYMO Drivers and Downloads has the Windows drivers for my LabelWriter 400:

I’ve had this LabelWriter for a long time, but I retired my physical Windows XP PCs a while ago so I needed to get it connected to a Windows VM on my ESXi rig.

The rig and printer are almost 10 metre apart (bruto distance through cable ducts) which is beyond the maximum USB distance of about 5 metre. A repeater or Active Cable can get around that limitation. Basically these repeaters are bus powered 1-port hubs. I already had good experience with a 5 metre extender combined with a 7-port external powered USB hub to connect the XP machines to some USB printers in the printer closet (a 5 metre USB cable sometimes would fail; the repeater always worked).

So I bought a 33ft 10M USB 2.0 A Male to A Female Active Extension / Repeater Cable, fed it through the cable ducts and added these devices to my VM:

Now I can print my 36mm x 89mm Dymo 99012 (or compatible) labels again (:

–jeroen

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

Please review your DFM files before you commit to version control

Posted by jpluimers on 2015/10/22

Recently I bumped into it again with one of the more current Delphi XE* versions and Delphi 2007: the IDE changing the DFM files without reason.

This time it was in a multi-team environment with many branches and DFM merge hell.

A few examples of properties and components getting changes:

Warren P suggests to review your DFM changes before committing to version control and I completely agree: it is the only way to ensure they are indeed unwanted changes.

There are some stop-gab things you could try, but these only partially help

–jeroen

via:

Posted in Delphi, Delphi 10 Seattle, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, QC, Software Development | 7 Comments »