Sometimes you need it. For example, I use HTML 7-bit for a JS encryption/decryption tool that hides data from robots (emails, etc.). And no, DefineEncoding will no convert text to plain ASCII or LaTeX :). Anyway, that’s not the place to talk about this.
Very simple currency converter app using fixer.io API. Unfortunately, to use any sort of conversion, you must pay for the basic subscription but didn’t realize that till it was too late. Alas, it was fun to work with APIs and finally build something in iOS.
This week I made a small control with 6 navigation buttons that you can turn on and off individually. The control has 4 different Styles “Plain, Bicolor, Gradient and None”. You can turn on and off Separators and the Border. You can also set the colors of the icons and the backgrounds. The buttons are drawn in the paint event.
My app for this week is using the Say Salut web-service. The service returns Hello in different languages. The app reads the computers locale, queries the service, parses the json response and displays Hello in the respective language (hopefully :-). That’s all.
Shakespeare-Monkey genetic algorithm
This is simple example of a genetic algorithm programmed in Xojo. The inspiration to this project came from this tutorial series on Youtube. Some background information can be found here. This was only a proof of concept so there is room for code optimisations.
Cleaned up some of the scrolling code and other parts of the code.
Added Sorting On the columns using the Sort by delegate on the backing data array (neat!)
Added “dropdown” choice.
Added a boolean/checkbox input.
workTIMEbreakTIME is a timer that alternates between work and break times so you can focus when you need to, but then take a break at specified intervals. Choose the length of each work and break interval and how many cycles of that you want to do.
This calculator isn’t a duplicate of the original app, but I think it performs all of the same functions, possibly more. You can enter numbers as fractions or as decimals. If you enter as decimal, it will immediately convert to the simplest equivalent fraction. You can also convert fractions back to decimal, and it will give you the exact decimal value, identifying repeating decimals and showing the repeating part.
I had intended this to be last week’s entry, but my logic for the operational state machine was flawed, and it turned into a nightmare. So, I had to redo it.
I can see that a couple more functions (eg., reciprocal) would be useful. So, an upgraded version may possibly be a later entry in the coming weeks.
BTW, in case anyone is wondering, I deliberately excluded scientific functions such as sin, cos, tan, log, exp, for the simple reason that they produce irrational numerical results; i.e., they cannot be expressed exactly as a fraction, which makes them pointless in a calculator that works in exact fractions.