Quick way to get the current ISO-8601 based week number: What’s the Current Week Number?.
–jeroen
Posted by jpluimers on 2012/08/16
Quick way to get the current ISO-8601 based week number: What’s the Current Week Number?.
–jeroen
Posted in Internet, ISO 8601, Power User | 5 Comments »
Posted by jpluimers on 2012/08/16
If anyone knows a better solution than string search/replace, please let me know:
I’m required to write a tool that can handle the below XML fragment that is not well formed as it contains XML declarations in the middle of the stream.
The company already has these kinds files in use for a long time, so there is no option to change the format.
There is no source code available that does the parsing, and the platform of choice for new tooling is .NET 4 or newer preferably with C#.
This is how the fragments look like: Read the rest of this entry »
Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, C#, C# 2.0, C# 3.0, C# 4.0, Development, Software Development, XML, XML/XSD | Leave a Comment »
Posted by jpluimers on 2012/08/15
A few weeks ago, Bill Karwin did a must watch webinar on the prevention SQL Injection titled “SQL Injection Myths and Fallacies“.
Bill Karwin (twitter, new blog, old blog, Amazon) is famous for much work in the SQL database community, including InterBase/Firebird, mySQL, Oracle and many more.
He also:
Anyway, his webinar is awesome. Be sure to get the slides, watch the replay, and read the questions follow up.
Watching it you’ll get a better understanding of defending against SQL injection.
A few very valuable points he made: Read the rest of this entry »
Posted in .NET, .NET 3.5, .NET 4.5, .NET ORM, ASP.NET, Batch-Files, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C++, Cloud Development, COBOL, CommandLine, Database Development, Delphi, Delphi for PHP, Delphi x64, Delphi XE2, Development, EF Entity Framework, F#, Firebird, FireMonkey, History, InterBase, iSeries, Java, JavaScript/ECMAScript, Jet OLE DB, LINQ, LLBLGen, MEF, Microsoft Surface, Mobile Development, PHP, PowerShell, Prism, Scripting, SharePoint, SilverLight, Software Development, SQL, SQL Server, SQL Server 2000, SQL Server 2005, SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, SQL Server 7, VB.NET, VBS, Visual Studio 11, Visual Studio 2002, Visual Studio 2003, Visual Studio 2005, Visual Studio 2008, Visual Studio 2010, Visual Studio and tools, Web Development, Windows Azure, WinForms, WPF, XAML, xCode/Mac/iPad/iPhone/iOS/cocoa | 1 Comment »
Posted by jpluimers on 2012/08/14
Last week I posted an in depth answer on StackOverflow.com about the memory allocation difference in Delphi and Fortran, or more accurately in two different kinds of languages.
You have:
A very important aspect is the order of for optimized loops. For column major order, the optimum is inside out (as the inner arrays/records are in consecutive memory locations), but for row major order, it is the exact inverse.
One of the consequences is that in Fortran it is a very fast operation to pass an array of inner fields as parameter to a method.
This is what I wrote: Read the rest of this entry »
Posted in Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi for PHP, Delphi x64, Delphi XE, Delphi XE2, Development, Fortran, Software Development | 4 Comments »
Posted by jpluimers on 2012/08/13
I already knew about WinCDEmu, and recently found out there is a portable version of it too:
Portable WinCDEmu is a special build of WinCDEmu that does not need any installation and can be used out-of-the-box.
Having relied on Daemon tools more recently and Nero ImageDrive in the past (back when Nero 5.5 was a great tool and not the bloatware it has become; Nero ImageDrive has been discontinued since Nero 9).
I will probably switch to WinCDEmu for a new install of my development system: it is extremely light, and now portable too. Better than the ever increasing Daemon tools (of which I don’t use the copy protection features, nor the adware ones).
Unless I find a tool that allows me to mount an NTFS folder as if it was the base for an ISO image (and watches that folder for changes, then remounts the image). That would be tremendously useful in a development environment.
If you don’t know WinCDEmu:
WinCDEmu is an open-source CD/DVD/BD emulator – a tool that allows you to mount optical disc mages by simply clicking on them in Windows Explorer
Another tool on the shortlist is ImDisk; this is why:
The ImDisk driver supports forwarding I/O requests to third-party image file format handlers or to services on other computers on the network. This makes it possible to boot a machine with NTFS partitions with a Live-CD and use the included devio tool to let ImDisk on another computer running Windows on the network mount the NTFS partition on the machine with a faulty NTFS partition. This way you can recover information and even run chkdsk on drives on machines where Windows does not boot. There are also instructions about how to use devio under Windows on Claus Valca’s blog.
–jeroen
via:
Posted in Power User, Windows, Windows 7, Windows Vista, Windows XP | 1 Comment »
Posted by jpluimers on 2012/08/12
Emile Nijssen, Dutch student Electronics at the Delft University of Technology wrote an interesting English 8.5W Core i3-based desktop computer abstract of a Dutch series of post getting a Desktop setup running far under 10W.
Though about 2 years old, they are immensely useful as not many people have thoroughly researched all that, and the info is still very applicable on more today’s hardware.
I got there because I was looking for some real world usage of VMP3203 DC/DC converters at 5V output that you can really well priced on DealExtreme (the PDF of the “datasheet” seems offline, but there is a Google cache of it).
If you can read/translate Dutch, this is the series (be sure to read the comments, as those contain about 25% of the info):
He even won a prize of EUR 2500 with this design!
Great work!
–jeroen
Posted in Development, Electronics Development | Leave a Comment »
Posted by jpluimers on 2012/08/10
In my early software developer years, I have been into scaleable fonts, PostScript and PDF very much.
Over the years, I kept an eye on that, and recently I found a few nice PDFs about fonts and designer handwriting:
–jeroen
Posted in About, PDF, Personal, Power User, Typography | Leave a Comment »
Posted by jpluimers on 2012/08/09
A while ago, I needed a way to defer settings to environment variables in a .NET application written in C#.
The easiest way to do this is to keep the same syntax as for expanding environment variables in batch files: use the %ENVIRONMENTVARIABLE% syntax (not the delayed expansion !ENVIRNMENTVARIABLE! syntax).
The reason is that there is a Windows API function ExpandEnvironmentStrings that handles all the expansion magic.
Don’t P/Invoke that function yourself, as there is already a very nice Environment.ExpandEnvironmentVariables wrapper since the .NET framework 1.1 that handles all the gory details for you (like marshalling the strings, making sure that lpDst contains enough space for the expansion).
–jeroen
Posted in .NET, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Software Development | Leave a Comment »