Archive for October, 2015
Posted by jpluimers on 2015/10/17
Brilliant: In only 14 keystrokes you are able to get the Font inspector window!
What happened to Command-Plus and Command-Minus to zoom in/out which about every Mac OS X app support?
–jeroen
via: How to Increase Font Size in the xcode editor? – Stack Overflow
Posted in Development, Software Development, xCode/Mac/iPad/iPhone/iOS/cocoa | Leave a Comment »
Posted by jpluimers on 2015/10/16
Interesting: this works through an on-line service that monitors up to 2 servers for free (including protocols like HTTP, SMTP and PING).
You can get reports at either through:
I’m using this to monitor my boxes at home.
A demo video is below.
–jeroen
Read the rest of this entry »
Posted in *nix, Communications Development, Development, HTTP, Internet protocol suite, Power User, SMTP, TCP | Leave a Comment »
Posted by jpluimers on 2015/10/15
LOL:
The if syntax of your script was a bit…well, iffy.
Indeed it is:
#!/bin/bash
#toggle AppleShowAllFiles
current_value=$(defaults read com.apple.finder AppleShowAllFiles)
if [ $current_value = "TRUE" ]
then
defaults write com.apple.finder AppleShowAllFiles FALSE
else
defaults write com.apple.finder AppleShowAllFiles TRUE
fi
killall Finder
Even the alternative if statement is:
if [[ $(defaults read com.apple.finder AppleShowAllFiles) == TRUE ]]
–jeroen
via osx – Toggle AppleShowAllFiles with a simple bash script? – Stack Overflow.
Posted in Apple, bash, Development, 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, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2015/10/13
So I won’t forget:
Even though this does not work on most USA T-Shirt sites, it works on this Dutch one: T-Shirt Ontwerpen – t-shirt zelf ontwerpen | Spreadshirt.
–jeroen
PS:
Read the rest of this entry »
Posted in ASCII, Development, Encoding, Software Development, Unicode | Leave a Comment »
Posted by jpluimers on 2015/10/12
Interesting: site:www.e-reading.link/bookreader.php – Google Search.
Likely highly illegal, but it has a lot of things in PDF that I already have on paper of stuff that is hard to get otherwise.
–jeroen
Posted in LifeHacker, PDF, Power User | Leave a Comment »
Posted by jpluimers on 2015/10/09
When you’re not a frequent iTunes user, and recycle computer systems, then every once in a while you will get you in to a situation where you have Music on your iPod, but not on your PC any more.
Whereas iTunes is great at putting music on an iPod, it cannot get it back.
There are numerous paid tools to get the music from your iPod, but doing it manually is not that hard. Below are a few links to get you started, but they all come down to this:
- Your iPod has a hidden folder called iPod_Control in the root
- Inside the iPod_Control folder is a folder called Music
- Inside the Music folder, there are folders named with letters and numbers like F00
- Each numbered folder has media (music, video or even photos!) files with a strangely encoded name like B00N.mp3 or 3DUN.m4v with supported media extensions including mp3 m4a m4p jpg gif tif m4v mov.
- The media files contain meta data with song, artist, album, etc.
The steps to copy them back
- Do not erase your iPod when opening it in iTunes!
- Ensure you can mount your iPod as a disk (the “enable disk use” option in iTunes)
- Mount your iPod as a disk in Mac or PC
- Ensure you can view the hidden files
- Copy the Music folder including all subfolders to your Mac or PC
- Unhide the Music folder and all
Music and Music/F* folders inside it using this chflags trick from Unhiding Unix Directories | Apple Support Communities:
chflags nohidden Music
chflags nohidden Music/F*
- Add these to your iTunes library and have iTunes re-generate the correct filenames from the meta-data
Some links explaining this in more detail:
–jeroen
Posted in Apple, iPod, iTunes, 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, MacMini, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9 | 2 Comments »
Posted by jpluimers on 2015/10/08
Here is a list of books that I think any serious Delphi developer should have or have read:
- Julian Bucknall: The Tomes Of Delphi Algorithms And Data Structures (paperback, kindle)
- Still a classic, focussing on the why and how of algorithms. Lots of it apply even outside the Delphi field.
- Nick Hodges: Coding in Delphi (paperback, kindle/PDF)
- Want to learn about the newest Delphi language features? Then this book is for you. If not and still using a Delphi XE* version, then you should consider a new job.
- Danny Thorpe: Delphi Component Design (paperback; no eBook)
- Despite its age, it is still current: it shows you how and why many designs in the RTL are they way they are. More importantly it shows how to use these designs in your code. Even the most advanced Delphi programmers can learn a thing or two here. Many of the new RTL/VCL/FMX developers can learn far more from it.
- Daniele Teti: Delphi Cookbook (paperback, eBook)
- Even though it is relatively young, it is a classic example of a good how-to book with many inspiring examples on how to get a variety of things done in both regular and mobile applications.
- Cary Jensen: Delphi in Depth: ClientDataSets 2nd Edition (paperback, PDF)
- Although ClientDataSet is rapidly becoming obsolete in newer Delphi versions, old Delphi code benefits from ClientDataSets a lot: definitely recommended if you have to maintain an existing codebase.
- Marco Cantù: Essential Pascal (paperback, PDF not available any more since Marco started working for Embarcadero)
- Chris Rolliston: Delphi XE2 Foundations (paperback, kindle parts 1/2/3)
- It covers language and non-visual things well so it is pretty version agnostic.
- Ray Lischner: Delphi in a Nutshell (paperback, kindle)
- It still covers the best Object Pascal language description on paper (sans modern language features like generics and anonymous methods.
There are many other Delphi books out, but most are either version specific, bound to a narrow area of topics, outdated or not well written.
–jeroen
Posted in Uncategorized | 1 Comment »
Posted by jpluimers on 2015/10/07
A long time ago, there was an interesting discussion here: I was wondering, that what is the closest value to the Zero floating point can have.
Recently I needed to do some calculations on series where getting close to zero could become a problem.
- Math seems to have an Epsilon of 1E-12.
- Sytem.Types has Epsilon of 1E-30 and Epsilon2 of 1E-40.
- XE4+ FMX has IsEssentiallyZero and IsNotEssentiallyZero for Single values.
In practice it depends a lot on what you are doing. Sometimes absolute Epsilons are best, but at other times relative difference is much more applicable.
Then there is also a Machine Epsilon: a way to derive an Epsilon from a data type that works in all languages and platforms.
–jeroen
Posted in .NET, Algorithms, C, C#, C++, Delphi, Development, Floating point handling, Software Development | 1 Comment »