~mil

http://milesalan.com

I'm Miles, see my personal website for more info.

I'm the developer of: Sxmo, Mepo, Mobroute, Transito, and some other smaller projects.

My main interest is in Mobile Linux & Mobile FOSS and most of my projects are related to that end.

Feel free to reach out to me on my email on my website - on email I'm most likely to respond. My nick is usually mla on IRC although I don't regularly check IRC currently.

~mil/sxmo-devel

Last active 17 hours ago

~mil/sxmo-announce

~mil/sxmo-user

~mil/mepo-devel

~mil/mobroute-ci

~mil/tlml-dev

~mil/mobroute-devel

~mil/framebufferphone-devel

~mil/foo

View more

Recent activity

Re: Optimize on number of transfers a month ago

From Miles Alan to ~mil/mobroute-devel

On Sat, Apr 26, 2025, at 1:31 PM, Matěj Cepl wrote:
> This time I have a rather long route [1]. I don’t want to argue
> about details of this route, just number of transfers. I would
> say that it is one of the most important variables for me, but I
> haven’t found a way how to say Transito, that it should optimize
> on the lowest number of them (here the obvious alternative way
> is to ride a metro line A from Želivského to Můstek, then switch
> to B for Smíchovské nádraží a use a bus for the rest of the way,
> what mapy.cz generated [2]).
>
> Is there a way?
>
> Best,
>

Mepo - March 2025 Update: 1.3.4 Release / Update to Zig 0.14 & Bugfixes 2 months ago

From Miles Alan to ~mil/mepo-devel

Hi all - welcome to the March 2025 update for Mepo, the fast, simple,
and hackable OSM map viewer for desktop & mobile Linux devices. This
update is just a notification that Mepo 1.3.4 has been released.

In Mepo 1.3.4, notably LN Liberda has once again graciously taken care of
updating the codebase to the latest release of Zig (0.14). Additionally
a few bugfixes from contributors have been applied. Thank you to all
contributors who sent patches included in this release.

Changes in Mepo 1.3.4:
  - Update codebase to build against Zig 0.14 (thanks @LN Liberda)
  - Fix number of fingers in gesture (thanks @Nguyễn Gia Phong)
  - Fix Nominatim search non-latin queries (thanks @Dimitri Kaparis)
  - Use XDG_CACHE_HOME consistently (thanks @Robert Günzler)

Re: [PATCH v2 1/7] Zig 0.14: Here we go again 2 months ago

From Miles Alan to ~mil/mepo-devel

On Mon, Mar 10, 2025, at 11:08 AM, LN Liberda wrote:
> ---
>  src/main.zig | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/main.zig b/src/main.zig
> index c6fafbb..39ea01d 100644
> --- a/src/main.zig
> +++ b/src/main.zig
> @@ -12,8 +12,8 @@ const utildbg = @import("./util/utildbg.zig");
>  pub fn main() !void {
>      comptime {
>          const v = builtin.zig_version;
> -        if (v.major != 0 or v.minor != 13)

Re: [PATCH mepo] Fix number of fingers in gesture 2 months ago

From Miles Alan to ~mil/mepo-devel

On Thu, Mar 6, 2025, at 12:58 AM, Nguyễn Gia Phong wrote:
> Fixes: 32353e0130598 ("Pass number of fingers for bind_gesture")
> ---
>  src/Mepo.zig | 44 ++++++++++++++++++--------------------------
>  1 file changed, 18 insertions(+), 26 deletions(-)

Thanks for catching this fix & sending. Applied

Re: [PATCH transito v2] Use git-describe to generate version string 5 months ago

From Miles Alan to ~mil/mobroute-devel

On Wed, Jan 8, 2025, at 8:50 PM, Hugo Osvaldo Barrera wrote:
> Add /build.sh to .gitattributes. This tells git use the output of
> git-describe as a replacement for the following string:
>
>     $Format:%(describe)$
>
> In build.sh, if this placeholder text has been replacement (and no
> longer contains the word Format), use that replacement as an application
> version. This shall be the behaviour when building for source tarballs
> (e.g.: downstream packaging releases).
>
> If the placeholder string has not been modified, then use the output of
> git-describe as a version string. For tags, this value shall match the
> current tag. For non-tags, this value shall be the tag, plus a number

Re: [PATCH transito] Use git-describe to generate version string 5 months ago

From Miles Alan to ~mil/mobroute-devel

On Wed, Jan 1, 2025, at 4:46 PM, Hugo Osvaldo Barrera wrote:
> Add /build.sh to .gitattributes. This tells git use the output of
> git-describe as a replacement for the following string:
>
>     $Format:%(describe)$
>
> In build.sh, if this placeholder text has been replacement (and no
> longer contains the word Format), use that replacement as an application
> version. This shall be the behaviour when building for source tarballs
> (e.g.: downstream packaging releases).
>
> If the placeholder string has not been modified, then use the output of
> git-describe as a version string. For tags, this value shall match the
> current tag. For non-tags, this value shall be the tag, plus a number

Re: [PATCH transito] Show error on empty departure time 5 months ago

From Miles Alan to ~mil/mobroute-devel

On Fri, Jan 3, 2025, at 4:17 PM, Hugo Osvaldo Barrera wrote:
> When SCHEDULE_DEPART_AT is selected, the explicitly provided time should
> be used. An empty text field no longer represents "Now" (this was only
> true in a previous iteration). An empty fields means that the user has
> not provided valid input, and we need to show an error.
> ---
> Most of the changes are just whitespace (due to reduced indentation).
> Probably easier to visualise with `git show -w`.
>  .../pageroute/widgetRowActionButtons.go       | 27 +++++++++----------
>  1 file changed, 13 insertions(+), 14 deletions(-)

Thanks for catching this & sending. Applied

Re: [PATCH transito 1/2] Implement UI for picking a departure time 5 months ago

From Miles Alan to ~mil/mobroute-devel

On Mon, Dec 30, 2024, at 8:40 AM, Hugo Osvaldo Barrera wrote:
> Allow picking a departure time, so as to plan trips for later today or
> this week. The current date picker is oriented around "trips soon", and
> not for planning bus trip in 4 months. Perhaps the date field could
> become editable in a v2.
>
> When typing a departure time, the colon is inserted automatically. This
> often takes a fraction of a second to render, which looks quirky. At
> this time, I believe that we'd need to implement a custom TimeTextEdit
> widget to work around this.
>
> Fixes: https://todo.sr.ht/~mil/mobroute-tickets/46
> ---
>  src/uipages/pageroute/pageroute.go            |  19 +-

Re: [PATCH transito] Draft: Implement UI for picking a departure time 5 months ago

From Miles Alan to ~mil/mobroute-devel

Hi Hugo,

It's good to see this come through and this is a great first stab. Thank
you for your work on this - I think this will be a very valuable feature
to have once merged. From testing all works on my end functionally
- just the minor details you mentioned left to take care of. Some notes
inline below.

On Sat, Dec 28, 2024, at 12:09 PM, Hugo Osvaldo Barrera wrote:
> The current implementation represents this by keeping the "Departure"
> field empty. I'm not happy with this solution; it does not make it
> evident to end-users that they can type something like "15:04" into the
> text field.
>

Mobroute - December 2024 Update: 0.9 Release / Improved Documentation & GTFS Agency Updates 5 months ago

From Miles Alan to ~mil/mobroute-devel

Hi all - welcome to the December 2024 update for Mobroute covering the
releases of: Mobroute 0.9, Mobsql 0.9, and Transito 0.9.

This release cycle was focused largely on documentation updates & the
major large piece of news to note is there is a new central documentation
website which covers documentation for all three subprojects (e.g. for
Mobsql, Mobroute, and Transito).

The new documentation website is available at:
https://mr.lrdu.org

Other then documentation updates, Mobsql & Mobroute now have the ability
to customize if GTFS data is pulled from the Mobility Database CI mirror
bucket URLs or directly from agency GTFS URLs. In addition, there are