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 August, 2013

Reminiscence of the past: Delphi I/O error 131

Posted by jpluimers on 2013/08/06

I was called by a client that didn’t want to do maintenance on an old Delphi application, but wanted to get dir of an I/O Error 131:

I/O Error 131: ERROR_NEGATIVE_SEEK

MessageText: An attempt was made to move the file pointer before the beginning of the file.

Tough luck: psychic powers told me someone is using an unsigned 32-bit integer to access a file using traditional style Assign/Reset/Seek/Read/Close patterns that Delphi kept as intrinsic routines for Turbo Pascal backward compatibility, and that file has grown over 2 gigabyte in size.

I quickly found an import file had grown over the 2 gigabyte, so this was indeed the case.

The original developers didn’t do the file access using the 64-bit Seek/Position of the TStream descendant TFileStream.

Too bad, as now someone has to dig through the mothballs to find the sources (if they survived 3 different version control system switches), create a working development environment, and fix the bug.

Another instance where technical debt in IT raises its ugly head and the compound interest is really expensive.

–jeroen

via: erikmartin.com – IO Errors in Delphi.

Posted in Conference Topics, Conferences, Delphi, Delphi 5, Development, Event, Software Development, Technical Debt | 14 Comments »

Sprites mods – Hard disk hacking – Intro

Posted by jpluimers on 2013/08/05

Sprites mods – Hard disk hacking – Intro.

Wow.

–jeroen

Posted in Development, Hardware Development, Software Development | Leave a Comment »

How to transfer contacts from Blackberry to Android?

Posted by jpluimers on 2013/08/05

Could not find another way to transfer data off my wife’s BlackBerry 7 to her Google Nexus 4: the below video only only transfers the contacts.

Too bad there is no more Google Sync, so we need to find a way to transfer mail and photos too.

Any ideas?

Note: this works only from BlackBerry to Samsung devices: Easy Phone Sync – Android Apps on Google Play.

–jeroen

▶ How to transfer contacts from Blackberry to Galaxy S4 – YouTube.

Posted in BlacBerry 7, Google, Nexus 4, Power User | 12 Comments »

DefCon-21: ASUS RT-AC66U is vulnerable to SMB Symlink and ACSD hacks, I presume the ASUS RT-N66U is too (via SecurityEvaluators.com)

Posted by jpluimers on 2013/08/05

Since the ASUS RT-AC66U and ASUS RT-N66U are so similar, my guess is that the ASUS RT-N66U is vulnerable too.

–jeroen

via: Hacking and Rooting SOHO Home Routers.

Posted in ASUS RT-N66U, Network-and-equipment, Power User | Tagged: , , | Leave a Comment »

Cool stuff: RFduino – Shrunk down an Arduino to the size of a finger-tip!

Posted by jpluimers on 2013/08/05

Cool:

Shrunk down an Arduino to the size of a finger-tip!

RFduino: A finger-tip sized, Arduino compatible, wireless enabled microcontroller, low cost enough to leave in all of your projects!

Should be combinable with this:

The TiltyIMU is a family of versatile open-source robotic controllers and software to allow anyone to build a self-balancing project.

–jeroen

via:

Posted in Development, Hardware Development | Leave a Comment »

On my research list: Hojoki: Make All Your Cloud Apps Work As One

Posted by jpluimers on 2013/08/05

On my research list: Hojoki: Make All Your Cloud Apps Work As One.

Should read the comments at Flotsam and Jetsam #70.

Posted in Cloud Apps, Internet, Power User | Leave a Comment »

▶ How to pair a desktop or laptop to youtube.com/pair (via: YouTube; uses Opera Mobile Emulator)

Posted by jpluimers on 2013/08/04

Trick via: ▶ How to pair a desktop or laptop to youtube.com/pair – YouTube.

This trick uses the Opera Mobile Emulator.

Note that not all settings work. The Asus Nexus 7 emulator worked, but custom didn’t always work (that would open m.youtube.com as www.youtube.com/?nomobile=1 hence switching off the mobile client).

When following the steps at Pair your mobile device to your TV – YouTube Help, you are directed to m.youtube.com/select_site to select your TV and enter a pairing code.

Usually you need to retry playing a video a few times: my Philips 42PFI7676H-12 didn’t always work at first (maybe playing back streamed video inside the emulator is not supported, but telling Youtube to pass the play request to your TV is), whereas with my Google Nexus 4 it always works.

You can even pair one computer to another: on the computer that emulates the TV, browse to www.youtube.com/leanback.

–jeroen

Posted in Android Devices, Opera, Opera Mobile, Power User, Web Browsers | Leave a Comment »

.NET/C# – InvalidCastException for two Objects of the same type (via: G+/Stack Overflow)

Posted by jpluimers on 2013/08/03

If you ever get something similar to

InvalidCastException: [A]Person cannot be cast to [B]Person.

then you are (or more precise: your process is) probably loading the same assembly twice, but from a different context.

.NET allows that, and for reason (side by side loading, appdomains, etc).

Delphi doesn’t (thanks Warren Postma for noticing). But a mistake you see quite often is that Delphi developers try to load the same Delphi type from both an EXE and a DLL wondering why they don’t match. If you want to spread your types in Delphi, then use BPLs (run-time packages) for that. BPLs are similar to .NET assemblies, but cannot be loaded in memory twice.

–jeroen

via c# – InvalidCastException for two Objects of the same type – Stack Overflow.

Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Software Development, VB.NET, VB.NET 10.0, VB.NET 11.0, VB.NET 8.0, VB.NET 9.0, Visual Studio 11, Visual Studio 2005, Visual Studio 2008, Visual Studio 2010, Visual Studio and tools | Leave a Comment »

The rather cool programming language APL introduced in a 1975 film/video (via G+: Warren Postma)

Posted by jpluimers on 2013/08/03

Thanks Warren Postma post posting this in #Programming to which I added a few context links:

The rather cool programming language APL introduced in a video/film from 1975. Read the rest of this entry »

Posted in APL, Development, Keyboards and Keyboard Shortcuts, Power User, Software Development | Leave a Comment »

Find your lost phone with Android Device Manager | Official Android Blog

Posted by jpluimers on 2013/08/02

Reminder: check this at the end of the month: Find your lost phone with Android Device Manager | Official Android Blog.

Posted in Android Devices, Power User | 1 Comment »