Archive for January, 2015
Posted by jpluimers on 2015/01/29
Unit testing has been here for a long time, and so has Unit Testing in Delphi. Below a summary of historic links together with some notes on how the state of affairs changed over the years.
Charlie Calvert
I’ll start with one of the first large Delphi Unit Testing articles was a paper by Charlie Calvert summarizing the state of the art on Delphi Unit Testing in 2004. It is present in the wayback machine as DUnit Talk and on his elvenware.com site.
Note that the elvenwere.com site is sometimes slow or hard to reach. Since his evangelist days at Borland/CodeGear, Charlie has moved through a few evangelist jobs at Falafel and Microsoft and finally went back to his old profession: being a great teacher – this time at Bellevue College – often using script based languages and cloud computing, with less focus on his web-presence.
Many of his IT books (during his writing period, he wrote both as Charles Calvert and Charlie Calvert) are still relevant though.
Posted in Agile, Conference Topics, Conferences, Delphi, Dependency Injection, Design Patterns, Development, Event, FreePascal, History, Inversion of Control / IoC, Pascal, Software Development | 3 Comments »
Posted by jpluimers on 2015/01/28
Thanks Wiebe Elsingae for sharing a link to this:
Test your application with ease
Create REST and SOAP services which mimic your external providers.
Easy to use Create one mock in three secondsMockable is a simple configurable service to mock out RESTful API or SOAP web-services. This online service allows you to quickly define REST API or SOAP endpoints and have them return JSON or XML data.
Maybe the nicest feature: Try now (no sign-up required).
–jeroen
via: Mockable: Quickly create REST and SOAP mocks.
Posted in Communications Development, Development, HTTP, Internet protocol suite, OData, REST, SOAP/WebServices, Software Development, TCP | Leave a Comment »
Posted by jpluimers on 2015/01/28
Figured using Instant Online Crash Analysis that mfefirek.sys is causing a DRIVER_IRQL_NOT_LESS_OR_EQUAL BSOD.
Well done McAfee!
This is what I did:
- As admin, copy %windir%\Minidump\*.dmp %temp%
- Uploaded these to http://www.osronline.com/page.cfm?name=analyze
- Compare the results with Beyond Compare 4 for patterns.
The result for all *.dmp files is a pattern like this:
DRIVER_IRQL_NOT_LESS_OR_EQUAL (d1)
An attempt was made to access a pageable (or completely invalid) address at an
interrupt request level (IRQL) that is too high. This is usually
caused by drivers using improper addresses.
If kernel debugger is available get stack backtrace.
Arguments:
Arg1: 000000000000000d, memory referenced
Arg2: 0000000000000002, IRQL
Arg3: 0000000000000000, value 0 = read operation, 1 = write operation
Arg4: fffff8800....d70, address which referenced memory
Debugging Details:
------------------
TRIAGER: Could not open triage file : e:\dump_analysis\program\triage\modclass.ini, error 2
READ_ADDRESS: GetPointerFromAddress: unable to read from fffff800032..100
GetUlongFromAddress: unable to read from fffff800032..1c0
000000000000000d Nonpaged pool
CURRENT_IRQL: 2
FAULTING_IP:
mfefirek+19d70
fffff880`0.....70 8a400d mov al,byte ptr [rax+0Dh]
–jeroen
via: Instant Online Crash Analysis.
Posted in Power User, Windows, Windows 7 | Leave a Comment »
Posted by jpluimers on 2015/01/28
Thanks Shay Erlichmen for answering this on SO why the Beep function does not bell the speaker any more on x64 systems:
Beep has been removed as a native function from all x64 platforms (so no managed version of course), there is a connect issue that petition to return it.
We use a different trick to discover servers, we remote eject the dvd drive, and the drive with the tray open is the one were looking for :)
Larry Osterman has a great article about this: What’s up with the beep driver in Windows 7.
In the mean time, the connect issue has been removed as well.
The good news however (if your hardware still has an Intel 8254 compatible PIT in the South Bridge connected to a PC speaker):
Ludwig Ertl wrote the BEEPx / BeepXP driver that interfaces to the speaker through the 8254. Note it has a (German) changelog, but you can respond in English.
–jeroen
via: windows – .Net WinForm System Beep on a 64 Bit OS – Stack Overflow.
Posted in Development, Power User, Software Development, Windows, Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista | Leave a Comment »
Posted by jpluimers on 2015/01/27
Thanks Uwe Raabe for sharing
This sounds interesting: http://www.twodesk.com/castalia/thanks.html
</rumours on>
As the page then read:
Castalia for Delphi is not currently available. Thank you for your interest.
Copyright © 2013 Jacob Thurman
–jeroen
via: This sounds interesting: http://www.twodesk.com/castalia/thanks.html.
Posted in Castalia, Delphi, Delphi XE7, Delphi XE8, Development, Software Development | 3 Comments »
Posted by jpluimers on 2015/01/27
A few libraries for writing and/or reading CSV files in .NET:
Most of the above links come from these SO questions:
Together with the links from my previous CSV post If you think CSV is easy; think again that should get everyone going.
–jeroen
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, CSV, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2015/01/26
I remembered about skipping flight legs, so was glad to find back this post where Jan Wildeboer has shared:
“Actually, it’s about ethics in ticket booking” ;-)
Brandon Downey originally shared:
Honestly, given how poorly airlines treat their customers, an argument that “Once you buy a ticket to a destination, you agree to travel all the way there and it would be unethical to do otherwise” is pretty laughable — basically, “it is unethical to find loopholes in our broken business model.” Also, great marketing for skiplagged.com.
United, Orbitz Sue Travel Site Over ‘Hidden City’ Tickets:
United Airlines Inc. and Orbitz Worldwide LLC sued to prevent the travel website Skiplagged.com from helping consumers buy what the companies call improper “hidden city” plane tickets that undercut their sales.
–jeroen
via: Honestly, given how poorly airlines treat their customers, an argument that….
Posted in LifeHacker, Power User | Leave a Comment »
Posted by jpluimers on 2015/01/26
I hadn’t monitored Notepad++ in a very long time, so I was glad that User Thomas Owens mentioned that it can show you the CR and LF codes:
With Notepad++, you can show end-of-line characters. It shows CR and LF, instead of “\r” and “\n”, but it gets the point across. […]
To use Notepad++ for this,
- open the View menu, open the Show Symbols slide out, and
- select either “Show all characters” or “Show end-of-line characters”.
I needed this because many development environments get confused when you have text files using a mix of line-break kinds (in my case LF, CR and CRLF).
–jeroen
via Text Editor which shows \r\n? – Stack Overflow.
Posted in *nix, Apple, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, OS X 10.8 Mountain Lion, Power User, SuSE Linux, Windows | Leave a Comment »