~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/mobroute-ci

Last active a month ago

~mil/mobroute-devel

Last active a month ago

~mil/sxmo-devel

Last active a month ago

~mil/sxmo-user

Last active 2 months ago

~mil/sxmo-announce

Last active 2 months ago

~mil/mepo-devel

Last active 2 months ago

~mil/tlml-dev

Last active 1 year, 11 months ago

~mil/framebufferphone-devel

Last active 2 years ago

~mil/foo

Last active 4 years ago
View more

Recent activity

Re: [PATCH transito v2] Use git-describe to generate version string a month 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 a month 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 a month 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 a month 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 a month 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 a month 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

Re: [PATCH transito 1/2] Use fmt.Errorf to format errors a month ago

From Miles Alan to ~mil/mobroute-devel

On Sat, Dec 28, 2024, at 12:10 PM, Hugo Osvaldo Barrera wrote:
> No need to use fmt.Sprintf; the error constructor can format error
> itself.
> ---
>  src/uipages/pagepois/integrations/mobsql_bbox.go | 3 +--
>  src/uipages/pageroute/widgetRowActionButtons.go  | 6 ++----
>  2 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/src/uipages/pagepois/integrations/mobsql_bbox.go 
> b/src/uipages/pagepois/integrations/mobsql_bbox.go
> index 9aa8c43..af0afb1 100644
> --- a/src/uipages/pagepois/integrations/mobsql_bbox.go
> +++ b/src/uipages/pagepois/integrations/mobsql_bbox.go
> @@ -1,7 +1,6 @@

Re: [PATCH transito] Don't add duplicate favourites a month ago

From Miles Alan to ~mil/mobroute-devel

On Sat, Dec 28, 2024, at 12:20 PM, Hugo Osvaldo Barrera wrote:
> Fixes: https://todo.sr.ht/~mil/mobroute-tickets/108
> ---
>  src/uipages/pagestops/pagesearchselected.go | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/src/uipages/pagestops/pagesearchselected.go 
> b/src/uipages/pagestops/pagesearchselected.go
> index 3c49d82..a0b5d3d 100644
> --- a/src/uipages/pagestops/pagesearchselected.go
> +++ b/src/uipages/pagestops/pagesearchselected.go
> @@ -116,7 +116,16 @@ func (widget *PageStops) 
> eventhandlersSearchWidgetsSelected(gtx layout.Context,
>  	}

Re: [PATCH] Fix Nominatim search non-latin queries 2 months ago

From Miles Alan to ~mil/mepo-devel

On Sun, Nov 17, 2024, at 6:25 PM, Dimitri Kaparis wrote:
> Submitting query to Nominatim with non-latin characters fails and no
> results are displayed. Using the data-urlencode option of curl encodes
> the query properly.
> ---
>  scripts/mepo_ui_menu_reposition_nominatim.sh | 2 +-
>  scripts/mepo_ui_menu_search_nominatim.sh     | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Thanks, applied!

Re: Add GTFS feed below? How? 3 months ago

From Miles Alan to ~mil/mobroute-devel

On Wed, Nov 6, 2024, at 3:56 PM, Matěj Cepl wrote:
> On Wed Nov 6, 2024 at 9:19 PM CET, Miles Alan wrote:
>> Thanks for flagging this - seems there was a bug in the logic for
>> computing crossfeed transfers on Transito. Has been resolved in 0.8.2,
>> new APK is on CI.
>>
>> Regarding 767/860: 767 had a data ingest regression which I've also
>> addressed with 0.8.2, working fine in my limited testing currently. As
>> for 860, that looks like an out-of-date feed (should likely be flagged
>> to mobility-database-catalogs) - daterange for that feed is 2023-10-26
>> → 2023-11-06. Dateranges are now shown for loaded feeds in the UI.
>
> I have two pieces of news:
>