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

[NL] encoding blijft moeilijk, waarom toch? (dit keer in een brief van @xs4all)

Posted by jpluimers on 2015/02/24

Hoe moeilijk kan het toch zijn om je encoding goed te doen.

Deze keer uit een brief van xs4all:

Mojibake encoding probleem

Mojibake encoding probleem

Als je een trema in een brief zet, dan controleer je toch even dat die ook goed op de brief wordt afgedrukt?

Read the rest of this entry »

Posted in Development, Encoding, ISO-8859, Mojibake, Software Development, Unicode, UTF-8, UTF8 | Leave a Comment »

Hack Raspberry Pi – How To Build Apps In C#, WinForms and ASP.NET Using Mono In Pi (via: Amazedsaint’s Tech Journal)

Posted by jpluimers on 2015/02/24

Interesting: Amazedsaint’s Tech Journal: Hack Raspberry Pi – How To Build Apps In C#, WinForms and ASP.NET Using Mono In Pi.

–jeroen

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

Installing the PIXMA mini260 – Canon Europe drivers under Windows 8.1 x64 – trying to say goodbye to Windows XP

Posted by jpluimers on 2015/02/23

Ditching Windows XP meant finding drivers for some older devices.

One of them is a [Archive.is] Canon PIXMA mini260 Photo Inkjet Printer which prints marvellous photos in a borderless way (so no post processing needed).

Installing drivers on Windows 8.1 x64 turned out to be really easy despite the fact that the Canon site does not offer them:  just install the “Windows Vista (64-bit)” drivers from this Canon link: [Wayback] PIXMA mini260 – Canon Europe.

This works as the printer driver model hasn’t changed much since Vista and the Vista drivers do not contain limits on future version numbers (see [Wayback] Getting older Windows drivers to work in Windows 8 for another example).

Now I need to find a way to get my [Archive.is] Olympus Camedia P-400 Digital Color Photo Printer. That is a lot harder: the most recent Windows P-400 Printer > Software Downloads are for Windows XP.

If anyone knows a workaround for this, I might connect this to an XP VM in a walled garden:

Under Windows XP, often the P-400 driver installer didn’t even want to install the USB part of the drivers.

How can I work around this?

Might it be that only the parallel LPTENUM is included in the [Wayback] Windows XP P400N.inf file, unlike the [Wayback] Windows 2000 driver P400N.INF file that contains both [Wayback] LPTENUM and [Wayback] USBPRINT and the [Wayback] P-440 INF file only has USBPRINT?

Other vendors seem to include both in their .INF files like this [Wayback] Dell 3130cn INF file.

–jeroen

via:

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

The way a wiki should work: List of Delphi language features and version in which they were introduced/deprecated – Stack Overflow

Posted by jpluimers on 2015/02/21

This is the way a wiki should work:

List of Delphi language features and version in which they were introduced/deprecated – Stack Overflow.

Thanks Simon Stuart for asking, and many others (especially Johan) for providing the info.

Note the version that is missing (;

–jeroen

Posted in Delphi, Delphi 1, Delphi 2, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Development, Software Development | Leave a Comment »

Visualisation of the 6502; awesome pictures – via: mos6502 – Google+

Posted by jpluimers on 2015/02/21

visual6502 pictures via: mos6502 – Google+.

I’ve edited their post below to embed all the links.

–jeroen

Original post with embedded links and edited for readablity:

This week, a new visualisation of the 6502, upcycled from an old favourite. Xray6502 uses the data from the visual6502 project to animate the flow of data values around the chip in rainbow colours. Wladimir has put the code up on github[1], and shared some animations on the 6502 forums too – see our featured link.

You may know that visual6502 is a transistor-level simulation of the NMOS 6502 for your browser.  We still see it referenced from time to time[2][3], to explore the circuit and to illustrate exact cycle by cycle behaviour of the chip, and also used to teach the workings of microprocessors in universities[4…7].  It first saw daylight when Greg James presented his findings at SIGGRAPH back in 2010[8], but Greg had been tracing the circuit for much of the previous year. Barry and Brian Silverman had been constructing the circuit simulator and the presentation as a web site. Later that year visual6502.org went live, and went through a series of performance improvements, enhancements and a few bug fixes. It now hosts several simulations, a wiki of notes about the 6502, and several other die photos.

Because visual6502 is open source, it’s been used before for related projects: Michael Steil has published perfect6502[9] which is a C port of the simulation.  Elsewhere we find visual2A03[10] which expands the simulation to the CPU chip in the NES. (But note, to save on duplicated effort, this is a real 6502 simulated, not the one with decimal mode ripped out[11] which is actually in the chip.)

Now Wladimir joins in, with this data-tracing visualisation – what can we expect next?  Have you played with your visual6502 today?

via mos6502 – Google+.

Posted in 6502 Assembly, Assembly Language, Development, Power User | Leave a Comment »

One line browser notepad (via: Jose Jesus Perez Aguinaga)

Posted by jpluimers on 2015/02/19

Smart, it works in any modern html5 capable browser:


data:text/html, <html contenteditable>

Be sure to look at the blog post and comments at Jose Jesus Perez Aguinaga : One line browser notepad as they explain why this works, and how to extend it in a couple of really smart way.

–jeroen

via: Jose Jesus Perez Aguinaga : One line browser notepad.

Posted in Chrome, Development, Firefox, HTML, HTML5, Internet Explorer, Opera, Power User, Safari, Software Development, Web Browsers, Web Development | 1 Comment »

Mac OS X: Replicating md5sum Output Format (via: Raam Dev)

Posted by jpluimers on 2015/02/18

Mac OS X has md5, but no md5sum.

I agree with Mac OS X: Replicating md5sum Output Format that the second way of emulating md5 is better than the first one.

So here it is:


#!/bin/bash
/sbin/md5 -r "$@"

view raw

md5sum.bash

hosted with ❤ by GitHub

–jeroen

via: Mac OS X: Replicating md5sum Output Format – Raam Dev

Posted in Apple, bash, Development, Hashing, 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, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, md5, OS X 10.8 Mountain Lion, Power User, Scripting, Security, Software Development | Leave a Comment »

Creating an ICO file from multiple PNG files: IcoFX versus ConvertICO.org

Posted by jpluimers on 2015/02/17

For Windows Vista and up, you need at least these icon resolutions:

  • 16×16
  • 32×32
  • 48×48
  • 256×256

For Windows XP / 2003 Server and earlier, you’d only need the 16×16, 32×32 and 48×48 resolutions, and if you support older video hardware, include them in 24-bit, 8-bit and 4-bit color depth.

For younger versions you might consider adding 20×20, 24×24, 40×40, 64×64 and 128×128 as well to support higher DPI modes.

You need to include and various other sizes for other operating systems.

Getting at them, I usually start with an EPS file, then downscale to the right resolution, and save the resulting files as PNG images, then assemble those together.

A while ago, I had some icons with nice long diagonal line, then I found out the hard way I should not have used ConvertICO.org. I often prefer on-line tools over off-line, especially for actions I rarely do (this is one of them). It saves you from installing software, and on-line sites usually get better over time.

In this case, I shouldn’t have gone online: Just look at the jagged edges in the 200% zoom below: the image on the right is from ConvertICO.org, on the left it is from IcoFX.

What you clearly see is that ConvertICO messes around with the 256×256 image (it doesn’t mess around with the other resolution), but IcoFX doesn’t mess around.

So now I switched to IcoFX. Not on-line, but a great free tool. Read the rest of this entry »

Posted in Development, Power User, Software Development, 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 | 2 Comments »

Windows Alt Key Codes

Posted by jpluimers on 2015/02/16

Brillant!: Windows Alt Key Codes.

The page has both lists of four-digit ALT+#### codes, a how-to, and reference links:

  1. Letters with Accents – (e.g. ó, ò, ñ)
  2. Other Foreign Characters – (e.g. ç, ¿, ß)
  3. Currency Symbols – (e.g. ¢, £, ¥)
  4. Math Symbols – (e.g. ±, °, ÷)
  5. Other Punctuation – (e.g. &, ©, §)
  6. Using the Codes
  7. Other Accents and Symbols: Character Map Other Page
  8. Non-Numeric Accent Codes: Activate International Keyboard Other Page
  9. Links to Other References

–jeroen

Posted in Development, Encoding, Power User, Software Development, Unicode, 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 »

GenerateGroupProjConsoleProject fix for Delphi 2007 – jeroenp / BeSharp.net / commit / f7c23ffe4cb1 — Bitbucket

Posted by jpluimers on 2015/02/15

Talking about Delphi 2007 stuff:

I needed to generate a bunch of groupproj files for Delphi 2007 (I wrote about legacy yesterday), but found out that my GenerateGroupProjConsoleProject was generating too good XML.

So here is the change-set:

Allow generating Delphi 2007 .groupproj files (uses a string search/replace hack as Delphi 2007 uses xmlns=”” which you cannot set manually through the normal IXMLNode ways especially not with ADOM).

TODO: verify if/how the GroupProj.xsd can be adopted to this not so nice XML that Delphi 2007 uses.

–jeroen

via jeroenp / BeSharp.net / commit / f7c23ffe4cb1 — Bitbucket.

Posted in Delphi, Delphi 2007, Development, Software Development | Leave a Comment »