via [WayBack] Just was sneaking around YouTube and found this video showing how to use DDetours library to hook Win32 api. – Mahdi Safsafi – Google+
–jeroen
Posted by jpluimers on 2018/09/18
via [WayBack] Just was sneaking around YouTube and found this video showing how to use DDetours library to hook Win32 api. – Mahdi Safsafi – Google+
–jeroen
Posted in Delphi, Development, Software Development | 3 Comments »
Posted by jpluimers on 2018/09/15
Not sure in which changeset this happened, but here is one example:
1:b8:27:eb:1a:b1:ecff:eb:78:a9:4:0:1:0:1:22:6:67:49:b8:27:eb:78:a9:4The first one was marked static in the DHCP server, which means the Raspberry Pi now did get a different IP address.
This messes up a few places that cannot do proper address resolution.
Anyone who knows where this has changed / is configured?
These did not help finding the cause:
As commented by Leen below, this is about
Wicked changed its defaults to use this DHCPv6 compatible RFC4361 client-id in favour of the older RFC2132 client-id. However, this has caused some issues with older DHCPv4 servers and existing setups where the client-id stored by the server is used to assign a (static) address. It is recommended to fix this server-side, but still, wicked provides several ways of addressing this issue
So here are some links:
2018-02-02 - mt@suse.de - version 0.6.44 - dhcp4: use rfc4361 client-id as new default for ethernet on sle15 (fate#323576). It can be also enabled/disabled in wicked-config(5). - client: fixed broken wicked arp utility command (bsc#1078245) - cleanup: add mising/explicit designated field initializers - pkgconfig: fix to request libnl3 instead of libnl1 - dbus: add missing DBUS_ERROR_FAILED type to a dbus_set_error call and enforce formatting input as string when an extension did not returned any error message. - Removed patch included in the source archive [- 0001-wickedd-explicitly-unbind-slaves-on-deletion.patch]
The traditionally used RFC 2132 DHCPv4
client-idon Ethernet is constructed from the hardware type (01for Ethernet) and followed by the hardware address (the MAC address), for example:01:52:54:00:02:c2:67The RFC 4361
client-idstarts with0xff(instead of the hardware type), followed by the DHCPv6 IAID (the interface-address association ID that describes the interface on the machine), followed by the DHCPv6 DUID (client-idwhich identifies the machine).Using the above hardware type-based and hardware address-based DUID (LLT type used by default), the new RFC 4361 DHCPv4
client-idwould be:
- Using the last bytes of the MAC address as the IAID:
ff:00:02:c2:67:00:01:xx:xx:xx:xx:52:54:00:02:c2:67- When the IAID is a simple incremented number:
ff:00:00:00:01:00:01:xx:xx:xx:xx:52:54:00:02:c2:67
–jeroen
Posted in *nix, Hardware Development, Linux, openSuSE, Power User, Raspberry Pi, SuSE Linux, Tumbleweed | 6 Comments »
Posted by jpluimers on 2018/09/13
I laughed when https://www.google.com/#q=visual%20studio%20code%20indent%20settings%20per%20file%20type got me the first link twice (see below screenshot).
But I was glad that that link to [WayBack] visual studio code – How to set per-filetype tab size? – Stack Overflow.
This one:
EditorConfig is a file format and collection of text editor plugins for maintaining consistent coding styles between different editors and IDEs.
In addition, it taught me how to configure the settings.json with md specific settings, which – despite the IDE indicating the JSON is invalid – just works: markdown indentation is now 2 character positions.
"[md]": { "editor.tabSize": 2 }
![]()
The search result:
Posted in .NET, Chrome, Development, Google, GoogleSearch, Power User, Software Development, Visual Studio and tools, vscode Visual Studio Code | Leave a Comment »
Posted by jpluimers on 2018/09/13
If you need cross platform settings storage: [WayBack] chrisrolliston/CCR.PrefsIniFile: TCustomIniFile decendants for Delphi wrapping the Android, iOS and OS X Preferences APIs
Via: [WayBack] In my application I use System.Win.Registry unit file to read or write to Windows Registry. Now that I have added MAC paltform I need an equivalent method to edit the plist file… – Dimitra Ger – Google+
–jeroen
Posted in Delphi, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2018/09/13
Happy Day of the Programmer!
Enjoy this little gem: [Archive.is] Harvey Green’s answer to What are the best examples of software bugs that became features (a.k.a. misbugs)? – Quora
This is from an anecdote by Ken Demarest, one of the original developers who worked on Wing Commander I on the PC…
… we were getting an exception from our EMM386 memory manager when we exited the game. We’d clear the screen and a single line would print out, something like “EMM386 Memory manager error. Blah blah blah.” We had to ship ASAP. So I hex edited the error in the memory manager itself to read “Thank you for playing Wing Commander!”
via many sources that usually forget to mention the full source:
Thanks [Archive.is] Harvey!
Some more links referenced by the above worth browsing on a day like this:
Posted in Development, Software Development | Leave a Comment »
Posted by jpluimers on 2018/09/13
Happy programmers’ day!
Source: roll a dice – Google Search
Inspired by [WayBack] Sure, Google. Sure.
–jeroen
Posted in Algorithms, Development, Fun, Quotes, Software Development | Leave a Comment »
Posted by jpluimers on 2018/09/12
Since I tend to forget what bits and pieces are needed for TIdHTTPWebBrokerBridge, the below code piece from:
The [WayBack] WebReq.WebRequestHandler Function returns a reference to the global [WayBack] TWebRequestHandler object. This object manages all the Web modules in the application, and creates Web request and response objects when the application receives HTTP request messages: TWebRequestHandler keeps a pool of active Web modules. In response to a request from the application, TWebRequestHandler creates a request object and assigns it to one of the active Web modules.
The code below is the Indy counterpart of hooking up a classic WebSnap WebBroker (you could also hook the Web.WebBroker.Application.WebModuleClass to TMyWebModule instead of the WebRequestHandler.WebModuleClass, as Web.WebBroker.Application.WebModuleClass is a TWebApplication which inherits from TWebRequestHandler).
Posted in Conference Topics, Conferences, Delphi, Development, Event, Software Development | Leave a Comment »
Posted by jpluimers on 2018/09/12
States via [WayBack] SERVICE_STATUS structure (Windows)
Value Hex Meaning SERVICE_CONTINUE_PENDING 0x00000005 The service continue is pending. SERVICE_PAUSE_PENDING 0x00000006 The service pause is pending. SERVICE_PAUSED 0x00000007 The service is paused. SERVICE_RUNNING 0x00000004 The service is running. SERVICE_START_PENDING 0x00000002 The service is starting. SERVICE_STOP_PENDING 0x00000003 The service is stopping. SERVICE_STOPPED 0x00000001 The service is not running.
It’s complex as a table, so there are two.
Common transitions:
| From state | To state |
|---|---|
| SERVICE_STOPPED | SERVICE_START_PENDING |
| SERVICE_START_PENDING | SERVICE_RUNNING |
| SERVICE_START_PENDING | SERVICE_STOPPED |
| SERVICE_START_PENDING | SERVICE_STOP_PENDING |
| SERVICE_RUNNING | SERVICE_STOPPED |
| SERVICE_RUNNING | SERVICE_STOP_PENDING |
| SERVICE_STOP_PENDING | SERVICE_STOPPED |
Infrequent transitions:
| From state | To state |
|---|---|
| SERVICE_RUNNING | SERVICE_PAUSE_PENDING |
| SERVICE_RUNNING | SERVICE_PAUSED |
| SERVICE_PAUSE_PENDING | SERVICE_PAUSED |
| SERVICE_PAUSE_PENDING | SERVICE_STOP_PENDING |
| SERVICE_PAUSE_PENDING | SERVICE_STOPPED |
| SERVICE_PAUSED | SERVICE_RUNNING |
| SERVICE_PAUSED | SERVICE_CONTINUE_PENDING |
| SERVICE_PAUSED | SERVICE_STOP_PENDING |
| SERVICE_PAUSED | SERVICE_STOPPED |
| SERVICE_CONTINUE_PENDING | SERVICE_RUNNING |
| SERVICE_CONTINUE_PENDING | SERVICE_STOP_PENDING |
| SERVICE_CONTINUE_PENDING | SERVICE_STOPPED |
Posted in Development, Software Development, Windows Development | Leave a Comment »
Posted by jpluimers on 2018/09/12
Interesting solutions based on the TLama first answer at [WayBack] delphi – How to make a combo box with fulltext search autocomplete support? – Stack Overflow
Via: [WayBack] Nice solution by TLama – Thomas Mueller (dummzeuch) – Google+
–jeroen
Posted in Delphi, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2018/09/11
Schema Central, by [WayBack] Datypic, Inc. (Priscilla Walmsley) is to golden that I quote the whole index page below.
The index refers to XML vocabularies. Each vocabulary page links the corresponding XSD pages. Each XSD page lists documentation, elements, etc. Each element page then documents the element, shows where it is referenced from.
Welcome to Schema Central, an interactive tool to traverse and search XML schemas. Please choose your XML vocabulary of interest to get started. Don’t see the XML vocabulary you use? Ask us to add it.
Core XML Technologies
- XML Schema: 1.0 and 1.1
- XML 1.0
- ISO Schematron
- XLink
- XProc
- XSLT: 1.0 and 2.0
- XInclude
- XForms: 1.0 and 1.1
- XML Catalogs 1.1
Presentation-Oriented Standards
- XHTML 1.0: (strict), (transitional) and (frameset)
- XSL-FO 1.1
- CALS Table Model (Oasis XML Exchange Table Model)
- MathML 2.0 and 3.0
- SVG 1.1
Office/Narrative Document Standards
Business Document Standards
- OAGIS® 9.4.1, 10
- UBL 2.0, 2.1 and 2.2
- StratML
- FpML
- 5.5: Confirmation, Pretrade, Recordkeeping, Reporting, Transparency
- 5.0: Confirmation and Reporting
- XBRL 2.1
NIEM-related Standards
- NIEM: 2.0, 2.1, 3.0, 3.1, 3.2 and 4.0
- LEXS: 3.1.4 and 4.0
- ULEX: 1.0 and 2.0
- N-DEx IA (Incident/Arrest) 2.1
- N-DEx IBP2 (Incarceration/Booking Probation/Parole) 2.1
- ANSI/NIST-ITL 2011
Miscellaneous
Web Services Technologies
- WSDL: 1.1 and 2.0
- SOAP: 1.1 and 1.2
- WS-Addressing 1.0
- WS-AtomicTransaction 1.1/1.2
- WS-BPEL 2.0
- WS-BusinessActivity 1.2
- WS-CDL 1.0
- WS-Coordination 1.2
- WS-Discovery 1.0 and 1.1
- WS-Eventing
- WS-Notification 1.3 (includes WS-BaseNotification, WS-BrokeredNotification and WS-Topics)
- WS-Policy 1.5
- WS-ReliableMessaging 2005 and 1.1/1.2
- WSRF (Resource Framework) 1.2 (includes WS-BaseFaults, WS-Resource, WS-ResourceProperties, WS-ResourceLifetime and WS-ServiceGroup)
Security-Related Technologies
- IC Trusted Data Format (Public version; includes IC-ARH, IC-EDH, IC-ID, IC-TDF, IC-ISM, IC-NTK)
- SAML 2.0
- WS-Security
- WS-SecurityPolicy 1.2 and 1.3
- WS-SecureConversation 1.4
- WS-Trust 1.3 and 1.4
- XML Encryption
- XML Signature
- XACML 2.0 and 3.0
Site developed and hosted by Datypic, Inc.
Please report errors or comments about this site to contrib@functx.com
[WayBack]
If I ever need a long term XML/XSD/XSLT/XQuery hire, this is the “about” information I need:
Datypic provides consulting services and training, specializing in XML, content management and SOA/Web Services architecture and development. We are experts in XML-related technologies such as XML Schema, XSLT and XQuery, and have extensive experience with software development and implementation.
We participate in consulting projects ranging from one day to many months, anywhere in the world. We can arrange to work remotely or at your site, whichever you prefer.
For more information, please read about our services or our company, or contact us as pwalmsley@datypic.com.
Recent news from Priscilla Walmsley
- I recently updated my book XQuery to match the final XQuery 3.1 recommendation. You can read more about it or order it from O’Reilly or Amazon.
- I recently taught a course at the XML Summer School on Refactoring XSLT. Slides are available as a PDF.
- More information about my recent books and articles is available on this site.
–jeroen
Posted in Development, Software Development, XML, XML/XSD, XPath, XSD, XSLT | Leave a Comment »