Archive for June, 2018
Posted by jpluimers on 2018/06/12
If you ever get an error like these in Delphi XE8 and up
[dcc32 Fatal Error] MyProject.dpr(23): F2051 Unit GUITestRunner was compiled with a different version of DUnitX.TestFramework.ITest
[dcc32 Fatal Error] MyProject.dpr(23): F2051 Unit TextTestRunner was compiled with a different version of DUnitX.TestFramework.ITestListener
then you are likely your project is:
- using a DUnit based test project in Delphi
- not having the unit search paths defined
Solution:
- add this directory to your project search path:
$(BDS)\source\DUnit\src
- ensure your project DCU output directory is writable
–jeroen
Posted in Delphi, Development, Software Development | 1 Comment »
Posted by jpluimers on 2018/06/11
Untypable one-character domain names:
- Where do the listings of single character domain names come from?
Artificial intelligence enabled robots. Our sophisticated unicode discovery algorithms use blockchain enabled machine learning to provision containerized solutions within the context of the public cloud. We then use a durable message bus to inject our findings into big data, creating a graph database of unique identifiers. Finally, the results are delivered to the client via the latest in standards compliant TCP transport technology from our custom cluster of machines running a significantly more performant variant of node js.
All the Auction and Aftermarket listings come from GoDaddy.
Source: Weird One Character Domain Superstore! Unicode IDN domains from á.xyz to 🧦.ws!
In reality, the story is not as full of marketing blah, but a lot of fun to read:
WeirdOneCharacterDomainSuperstore.com aka ツ.ws… A web app for weird unicode single character domain names… A weekend project that got out of control…
[WayBack] WeirdOneCharacterDomainSuperstore.com: How I Built This
Via: [WayBack] OR: “Incomprehensible. Untypable. Unicode.”
–jeroen
Posted in Fun | Leave a Comment »
Posted by jpluimers on 2018/06/11
- Connect the volume you want excluded to the Mac, even if Spotlight is currently indexing
- Launch “System Preferences” and click on “Spotlight” followed by the ‘Privacy’ tab
- Drag the drives icon into the Privacy window
Source and more information (including how to do this from the terminal): [WayBack] Stop Spotlight from Indexing Time Machine Backup Volumes & External Drives
–jeroen
Posted in Apple, iMac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, macOS 10.12 Sierra, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »
Posted by jpluimers on 2018/06/08
For my link archive, to get firmware updates installed on my OKI MC342 printer (Mac update fails, Windows update fails, both with “Firmware update failed.”):
download support printer drivers and software utilities for your OKI printers
Source: MC342dn | Drivers & software | OKI UK | Printers & Managed Print Services
[Oki Data] The Firmware Update Utility is used to upload new firmware files to your printer.
Source: Firmware Update | OKI Global
I needed a firmware update because enabling Google Cloud Printing failed.
Source: Cloud Printing | OKI Europe Ltd – Printers, Printing Solutions and Managed Print Services
The reason was error 10a00013 which according to the Cloud Print Manual is “Connection error to the HTTP server (server authentication error). Access the website stored in the Oki Data device (http://(Oki Data device IP address)), and check the imported CA license. Alternatively, update the firmware.”
As the web page didn’t tell me about how to imported CA licenses, I have to update the firmware.
–jeroen
Posted in Hardware, OKI C332, OKI Printers, Power User, Printers | Leave a Comment »
Posted by jpluimers on 2018/06/08
Be sure to read the comments at USB serial converters from FTDI are quite popular – Thomas Mueller (dummzeuch) – Google+ [WayBack] as it tells more about how to set genuine and fake FTDI chips apart (often before buying them, you cannot tell) and how to replace fake ones buy genuine ones.
Getting back to original means de-soldering fake chips, and soldering new genuine chips on the boards.
Fake chips:
- have limited batches of the same serial (although there are ways to reprogram the serial, see links below)
- connecting multiple adapters with the same serial causes trouble
- are mangled by various FTDI drivers (either their PID is reset, or fake-data is inserted in the serial stream)
- have problems operating at higher data rates
Note that the workarounds for these fake chips mean you cannot use more recent chips.
Links from Thomas’s post and other relevant links on the various kinds of genuine/fake and getting fake ones work again
Fake chips can cause you a lot of headaches – and time – sorting out communication problems: [WayBack] esptool-ck, esp8266, and FTDI Bug Hunting – vilimblog
Two years ago, this shoot-out (with results on github) had a great conclusion:
Buy either an adapter with a genuine FTDI chip, or one of the Silicon Labs CP2102 chips.
The FTDI chip is the only one attaining 3M baud rates.
Overview articles:
SiLabs chips seem to be the only without much trouble:
- [WayBack] SiLabs CP210x USB Adapters For The Win – vilimblog
- The “Legacy Utilities” allow you to re-program the serial on any
cp210x device, no matter the chip source:
- Review of a Generic USB RS 232/485/TTL Adapter (“Winners” branded) – YouTube:
- Almost anything with FTDI/Prolific chips that comes from ebay/aliexpress should be assumed to be counterfeit – easy way to test this is to buy 2 and see if their serial numbers match. You don’t really want to waste your time with fake ones, you’ll end up spending more on those if you try to get them for as cheap as possible. Itead sells an adapter for 6.8 USD with genuine FT232RL chips, but they aren’t in as convenient dongle form factor, but might be worth more than your own time replacing fake chips with genuine ones.Although not mentioned here, CH340/1 should generally be avoided, while they work fine for short periods of time, for longer use they seem to be as unreliable as the counterfeit FTDI/Prolific chips on Linux.
I haven’t seen or recognized a fake CP210x chip yet, so my guess would be that these are generally fine no matter where you get them. One big advantage of those is the integrated voltage 3.3V regulator, which can save some space when rolling your own boards.
FTDI related:
Genuine FTDI seems to be the easiest to find:
- The cheapest solution is re-soldering chips:
- Way more expensive, but saves a lot of time are complete adapters
Prolific has similar issues, driver v3.4.25.218 still works with fake chips:
–jeroen
Related posts where I mentioned some of the trouble with FTDI chips:
Read the rest of this entry »
Posted in *nix, Development, Hardware Development, Hardware Interfacing, Legacy Ports: COM, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »
Posted by jpluimers on 2018/06/07
One of the reasons it is so hard to write ARC a compatible source base is that there is no Delphi ARC win32 compiler. So you have to debug your memory issues using the remote debugging capabilities which – besides very slow – are unstable at best.
This is the number 1 reason I have been asking for a Delphi ARC win32 compiler integrated with the native Delphi win32 debugger (in addition to the current Win32 non-ARC compiler). Hopefully [WayBack] A second example of memory usage/leaks on linux using TTask (but only running one at a time) inside a loop will show memory usage increasing depending o… – Andrew Pratt – Google+ will give Embarcadero more motivation to eventually develop one.
This besides the fact that anyone writing for ARC should buy+read [WayBack] Delphi Memory Management eBook for classic and ARC compilers
via [WayBack] I have some questions about Linux & ARC and I’m hoping some experts can share their expertise because I’m not understand the results I’m seeing. For th… – Andrew Pratt – Google+
(see also [WayBack] How to free a component in Android / iOS – Stack Overflow and Delphi ARC: Free versus DisposeOf (via: Ondrej Pokorny – Google+))
–jeroen
Posted in Delphi, Development, Software Development | 3 Comments »
Posted by jpluimers on 2018/06/07
Installing go in one go:
$ brew install go
Updating Homebrew...
...
==> Downloading https://homebrew.bintray.com/bottles/go-1.10.2.sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/48/4823ec642228f0a3746fe490ebd33f935d1c53424638792c20035ce0c3e8281e?__gda__=exp=1525363605~hmac=ff794ae42583750331da7067db58f71993bbe870b5833fc08e79908ed2afcc06&
######################################################################## 100.0%
==> Pouring go-1.10.2.sierra.bottle.tar.gz
==> Caveats
A valid GOPATH is required to use the `go get` command.
If $GOPATH is not specified, $HOME/go will be used by default:
https://golang.org/doc/code.html#GOPATH
You may wish to add the GOROOT-based install location to your PATH:
export PATH=$PATH:/usr/local/opt/go/libexec/bin
==> Summary
🍺 /usr/local/Cellar/go/1.10.2: 8,161 files, 336.8MB
–jeroen
Posted in Development, Go (golang), Software Development | Leave a Comment »