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 2014

Windows security Token Bloat

Posted by jpluimers on 2014/01/13

This can happen when your Windows Security Token bloat has struck:

… the problem could be minor, or relatively major. You may get weird access denied messages, applications crashing, or strange entries in your event logs. Or worse yet a SID for a group that has a ‘deny permission’ on an object could be dropped into the virtual bit bucket, allowing a user to access a resource they are not supposed to access.

Summary of fixes for token bloat:

  1. Use global or universal groups instead of domain local.
  2. Increase the MaxTokenSize on all computers
  3. Convert security groups to distribution groups if they are only used for email lists.

There is a hard-coded limit of 1,024 SIDs for the Kerberos PAC (privilege attribute certificate)

Kerberos token size still remain to 64k in windows7 / win2008r2.

This is what UWWI did to avoid token bloat: UWWI Token Bloat – IAM – UW Information Technology Wiki.

–jeroen

via:

Posted in Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

Pre-build trick does not work to circumvent [BRCC32 Error] xxx.vrc(1): error creating xxx.res (via: Embarcadero Discussion Forums & StackOverflow)

Posted by jpluimers on 2014/01/10

Ever since around Delphi 2007, it started to use temporary .VRC files to re-build the project .RES file.

It confuses people, and with reason as the only public information about it on the dockwiki seems to be in the Version Info page (though there is more on the other embarcadero sites).

The reason is that parts of the .RES file are no more leading in the process of getting them from your project options to the final binary (EXE/DLL/BPL/…) of your project.

Delphi XE3 for instance can have these resource structures in the .VRC file:

Except for type 24, Delphi XE2 seems to have the same kinds of resource types.

All in all, most if not all of the .RES files are being auto-generated for at least a couple of years now so there is less and less need to put it under version control.

The problem is that if for one reason or the other, your project .RES file becomes readonly, and you get errors like mentioned in Why does a projects res file need to ….

[BRCC32 Error] xxx.vrc(1): error creating xxx.res

.RES in VCS or not?

Read the rest of this entry »

Posted in Conference Topics, Conferences, Delphi, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, Event, QC, Resource Files and Scripts (.res/.rc), Software Development | Leave a Comment »

RaidSonic Icy Box IB-2222SSK, SAS/SATA II Wechselrahmen (20295) in Festplatten & SSDs: Wechselrahmen | heise online Preisvergleich

Posted by jpluimers on 2014/01/10

Interesting to stuff 4 2.5 inch SAS/SATA drives (up to 15mm height) in a 5.25 slot.

RaidSonic Icy Box IB-2222SSK, SAS/SATA II Wechselrahmen (20295) in Festplatten & SSDs: Wechselrahmen | heise online Preisvergleich.

–jeroen

Posted in Uncategorized | Leave a Comment »

*nix networking – lsof: How to tell what process has a specific port open on Linux (via: Server Fault)

Posted by jpluimers on 2014/01/10

I usually used netstat with some grep filter for this, but Brandon Titus showed at StackOverflow that the lsof command is much easier to use:

lsof command should be able to do this just fine. Just use this:

lsof -i :<port_number>
lsof -i udp:<port_number>
lsof -i tcp:<port_number>

and all of the processes should come up.

The lsof commands work on SUSE, Max OS X, CygWin and many other environments.

(update 20160304: added more arguments and links)

Two other commands I use often:

netstat -tulpn | sort

(for connected and listening tcp/udp ports it shows processes and port numbers; see the netstat parameters for more details, note that -u includes udp and -l adds listening sockets)

rpcinfo -p ; rpcinfo -s

(shows the ports used by rpcbind)

Note that one day I’ll learn the iproute2 equivalents (many of which have non descriptive 2 letter names like ip, iw, ss, tc, maybe because iproute2), but as OS X still doesn’t have iproute2, I’m hesitating. Anyway, that day:

–jeroen

via

Posted in *nix, Apple, Cygwin, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, OS X 10.8 Mountain Lion, Power User, SuSE Linux | 1 Comment »

Jessica Taylor – Timeline Photos

Posted by jpluimers on 2014/01/10

Jessica TaylorGo to the Google maps link and click on the double arrows!https://maps.google.com/maps?hl=en&ll=51.492159%2C-0.19092&spn=0.005291%2C0.013937&sll=51.492140%2C-0.193028&layer=c&cid=12502927659667388442&panoid=c9UMhWP_MWm9U0L48xEjYw&cbp=13%2C291.8%2C%2C0%2C18.86&gl=US&t=m&cbll=51.492132%2C-0.192862&z=17

For me it only works if I open the link in an incognito Chrome window.

https://maps.google.com/maps?hl=en&ll=51.492159%2C-0.19092&spn=0.005291%2C0.013937&sll=51.492140%2C-0.193028&layer=c&cid=12502927659667388442&panoid=c9UMhWP_MWm9U0L48xEjYw&cbp=13%2C291.8%2C%2C0%2C18.86&gl=US&t=m&cbll=51.492132%2C-0.192862&z=17

–jeroen

via Jessica Taylor – Timeline Photos.

Posted in About | Leave a Comment »

Copy.com can recover files, not from the web, but from the Windows and Mac UI (via Can I recover deleted files? : Copy)

Posted by jpluimers on 2014/01/09

Didn’t know this was possible in copy.com. In DropBox this is a breeze in the Web interface (full history of all files is accessible) but I always try to be better safe than sorry:

The Windows and Mac OS X user interfaces of the Copy.com tool can undelete files though: Can I recover deleted files? : Copy.

Good to know, as eventually I’m probably going to need this.

–jeroen

Posted in Copy.com, DropBox, Power User, SocialMedia | Leave a Comment »

When two types are not the same: Assembly Load Contexts Subtleties (via: All Your Base Are Belong To Us)

Posted by jpluimers on 2014/01/09

Reading c# – Type.IsSubclassOf does not behave as expected – Stack Overflow, I found this very interesting link via Assembly Load Contexts Subtleties at Sasha Goldshtein’s blog (I love the name of the blog: All Your Base Are Belong To Us).

He explains the reasons for the error message

System.InvalidCastException: Unable to cast object of type ‘Plugin.MyPlugin’ to type ‘Plugin.MyPlugin’.

Actually his blog entry is an abstract of a 200+ page thesis on  that is also recommended reading: Flexible Dynamic Linkin for .NET (by Anders Aaltonen, Alex Buckley and Susan Eisenbach).

–jeroen

via:

Posted in .NET, .NET 3.5, .NET 4.0, .NET 4.5, .NET CF, C#, C# 3.0, C# 4.0, C# 5.0, Development, Software Development | Leave a Comment »

The Self-resetting Raspberry Pi » RasPi.TV

Posted by jpluimers on 2014/01/08

Cool: now you can use a Raspberry Pi to play Watchdog (:

–jeroen

via: The Self-resetting Raspberry Pi » RasPi.TV.

Posted in Development, Hardware Development, Raspberry Pi | Leave a Comment »

Accessing Mac Hard Drives from Windows 7/8: Boot Camp Support Software 5.0.5033

Posted by jpluimers on 2014/01/07

If you want to read  a Mac HFS+ formatted disk from Windows 7/8 then you can use the Boot Camp Support Software 5.0.5033.

It is a large download (about half a gigabyte, uncompressed 800+ megabyte) of which you need only this file:

  • BootCamp5.0.5033.zip\BootCamp\Drivers\Apple\BootCamp.msi

When you want to write HFS+, then MacDrive works fine and has a 5-day fully functional trial (so you can verify really large files transfer fine).

The other way around is built in, but not enabled by default. To have a Mac read and write NTFS volumes, you have to edit your /etc/fstab file as explained in will mountain lion read/write to an…: Apple Support Communities to which I added some hyperlinks. Note there are also NTFSFree and OSXFuse (which is the successor of MacFuse). Read the rest of this entry »

Posted in Apple, Mac, Mac OS X / OS X / MacOS, OS X 10.8 Mountain Lion, Power User, Windows, Windows 7, Windows 8 | Tagged: , , | 1 Comment »

How to downgrade my VM to Hardware Version 8 in Fusion 5 and Workstation 9 (via: SkytapDocs)

Posted by jpluimers on 2014/01/07

Just in case I ever need to do this again: How to downgrade my VM to Hardware Version 8 in Fusion 5 and Workstation 9 – SkytapDocs.

It is easy, and I needed to move a VMware Workstation 9 VM to a machine that had only VMware Fusion 4 installed (various reasons, mainly backward compatibility with some very old Windows VMs that VMware Fusion 6 complains about but which as going to be phased out “real soon now“).

–jeroen

Posted in Fusion, Power User, VMware, VMware Workstation | Leave a Comment »