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

Archive for the ‘Development’ Category

7 Linux Grep OR, Grep AND, Grep NOT Operator Examples

Posted by jpluimers on 2015/10/31

Question: Can you explain how to use OR, AND and NOT operators in Unix grep command with some examples?

Source: 7 Linux Grep OR, Grep AND, Grep NOT Operator Examples

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

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 »

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 »

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 »

Need to research when build.force files are generated

Posted by jpluimers on 2015/10/21

It’s not reproducible yet, so I need to find out why under some rare circumstances, devenv.exe (the Visual Studio IDE) generated build.force files. Sometimes the build then fails, most of the times it succeeds.

Hopefully this has to to with non-project references.

Research links:

–jeroen

Posted in .NET, Development, Software Development, Visual Studio 2013, Visual Studio and tools | Leave a Comment »

Collection of cool hidden (and not so hidden) features of Git and GitHub:… – via G+ Ilya Grigorik

Posted by jpluimers on 2015/10/20

Thanks Ilya Grigorik for sharing this which I found back recently:

Collection of cool hidden (and not so hidden) features of Git and GitHub.

GitHub Cheat Sheethttp://git.io/sheet

–jeroen

via: Collection of cool hidden (and not so hidden) features of Git and GitHub:….

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

On Teaching Programming | OpenSTEM Pty Ltd

Posted by jpluimers on 2015/10/18

Very interesting read:

Being involved with teaching young students to code, I have come to the tentative conclusion that many coding kids have not actually been taught programming. This has been going on for a while, so some of this cohort are now themselves teaching others. I have noticed that many people doing programming actually lack many of…

–jeroen

Source: On Teaching Programming | OpenSTEM Pty Ltd

Posted in Development, Software Development | Leave a Comment »

How to Increase Font Size in the xcode editor? – Stack Overflow

Posted by jpluimers on 2015/10/17

Brilliant: In only 14 keystrokes you are able to get the Font inspector window!

What happened to Command-Plus and Command-Minus to zoom in/out which about every Mac OS X app support?

–jeroen

via: How to Increase Font Size in the xcode editor? – Stack Overflow

Posted in Development, Software Development, xCode/Mac/iPad/iPhone/iOS/cocoa | Leave a Comment »