UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. danfro
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 266
    • Groups 0

    danfro

    @danfro

    In my free time I am coding for the UBports community. To find out more about this great mobile OS check out https://ubports.com If you like my work, you can donate me a coffee here: https://paypal.me/payDanfro

    97
    Reputation
    88
    Profile views
    266
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    danfro Unfollow Follow

    Best posts made by danfro

    • RE: Looking for offline map app

      While we are waiting for PureMaps to provide offline functionality, here some instructions on how to get offline maps for uNav working using downloadosmtiles. I do post this here because I did encounter a few stones on the road to success. 😉

      1. download downloadosmtiles from the left hand menu
      2. extract to a folder on your harddisc, i.e. Downloads/osmtiles
      3. run the script with perl downloadosmtiles.pl --link='http://www.openstreetmap.org/?lat=49.5782&lon=11.0076&zoom=10&layers=B000FTF' --zoom=5:16 --destdir=somewhere/maps
      • of course replace coordninates with your target coordinates, the area seems to depend on the zoom value after the coords
      • replace the path for destdir with another one, default is the current working directory
      • change zoom levels, levels above 16 do take quite some time to download, you can download 5 to 16 first, and only level 17 or above later if you really need it
      1. copy the map-files (foldernames = zoom level i.e. 5) onto your phone i.e. in a folder Documents/uNav_maps
        [zip the map tiles and copy the zip file, that is much faster than copying thousands of files]
      2. in Terminal app run the following commands:
        cd Downloads/uNav_maps
        rsync -avp . ~/.local/share/navigator.costales/maps
        [rsync is faster than cp and gives you progress information]
      3. open up uNav, goto settings, change Modus to offline maps

      EDIT:
      To specify a bounding box for the tiles do be downloaded the command in step 3 needs to look like this:
      perl downloadosmtiles.pl --latitude=47.35371:49.93708 --longitude=7.38281:10.54687 --zoom=5:7 --destdir=somewhere/maps
      edit finished

      Have fun! Don't get lost!

      for lazy guys like me:
      If you do this regularly, you may wish to create yourself a small shell script in your phones home folder called i.e. cpbash.sh. Then only open Terminal and run bash cpmaps.sh. Put the following two lines into the script:
      cd Downloads/uNav_maps
      rsync -avp . ~/.local/share/navigator.costales/maps

      Troubleshooting: (on ubuntu 18.04)
      ... Can't locate Geo/OSM/Tiles.pm in @INC ...

      • open the file downloadosmtiles.pl in a editor
      • before line 6 add the following line: use lib '/Downloads/OSMtiles/Geo-OSM-Tiles-0.04/lib';, replace the path with your download location

      ... Can't locate Geo/OSM/Tiles.pm in @INC ...

      • install YAML.pm by running: sudo apt-get install libyaml-perl

      • you may need to create the folder maps to be like this: ~/.local/share/navigator.costales/maps, then map data wants to be in there in a structure like this (see https://unav.me/offline/) :
        ~/.local/share/navigator.costales/maps/10/
        ~/.local/share/navigator.costales/maps/10/523/
        ~/.local/share/navigator.costales/maps/10/523/331.png

      posted in Support
      danfroD
      danfro
    • tedit development and design discussion

      Hi, I recently took over developing tedit app. I would like to try the forum, to gather some ideas and feedback regarding ongoing development.

      In this thread, I will post questions regarding future design and functionality and let you, the users, comment and ask things. Lets see how this goes. We can always split it up or move discussions elsewhere.

      I would still prefer to have issues and feature requests added in the gitlab repository, but I understand, that not everyone is familiar with gitlab and also that some things are easier to discuss here.

      posted in App Development tedit editor app development features
      danfroD
      danfro
    • RE: On this (US) Thanksgiving...

      He has been mentioned, but many, many, many ... thanks to @bhdouglass master of OpenStore!!! What would we be without our OpenStore? Great work done there - and certainly a lot of time spend.

      Many thanks to everyone working on clickable - I know for sure @bhdouglass and @jonius - who provide a magical and crucial tool for us to create apps.

      Thanks @bhdouglass for asking me to maintain weather app. With your advice and a lot of starting help by @jonius , design guidance from some weeeee helper @CiberSheep I am happy to be able to contribute.

      Also many thanks to all translators like @Anne017 for hours of translating, so others with less knowledge of the English language can enjoy Ubuntu Touch.

      And thanks to everyone else here making up a nice community!

      Edit: I forgot to mention two important contributors: @Krille and @nanu-c . With a lot of time and love they provide apps for matrix and signal. Significant add ons next to Teleports. So man thanks to you too!

      posted in General
      danfroD
      danfro
    • RE: How I'm now using Signal on UT

      @Robipo When I wrote this post, I didn't know, that Github only provides downloadable files for users that are actually logged in to Github.

      So currently you can either log into Github (if you have an account) and download it from there, or use the latest .click I provided in our Telegram QA group.

      I will release Cinny soon in OpenStore (I got the "go ahead" from the old maintainer today.), but a couple of steps need to be done until that is achieved.

      posted in General
      danfroD
      danfro
    • RE: Improve system settings disk usage analyzer

      @mymike It is not only the fresh new design. But being able to delete those items from system settings I would call a breakthrough. Definitely worth appreciation. 👍

      posted in Design
      danfroD
      danfro
    • RE: How to set Desktop Mode off and make it stick?

      @dtarrant I had a look, yes, the app is not using a terminal command (as I thought). It is changing a gsetting.

      gsetting values can be changed via terminal too as described here.

      The schema is "com.canonical.Unity8". The actual setting value is "usageMode". (taken from UT Tweak Tool's code, not checked)

      So in theory something like this run in terminal should work:

      gsettings set com.canonical.Unity8 usage-mode Staged
      gsettings set com.canonical.Unity8 usage-mode Windowed
      gsettings set com.canonical.Unity8 usage-mode Automatic
      

      Havn't tried it though.

      Edit:
      If you wish to do this without terminal but from inside an app, have a look at my ThemeSwitch branch where I implemented a working way of changing a gsetting.

      Edit 2:
      I edited the mispelled commands here too as pointed out by @Pulsar33.Thanks for that.
      Although if it is usage-mode, then I don't know why or how UT Tweak Tool can work, because that is using usageMode. But maybe I overlook something.

      posted in Lenovo Tab M10 X605F/L
      danfroD
      danfro
    • RE: tedit development and design discussion

      @ancientsounds I do understand that this would be very convenient. But to achieve this, the app would need to be unconfined. And I would rather try to avoid that. I wrote some explanations in an issue recently.

      You can share files to import them in tedit. I will (hopefully soon) find time to add content hub export too. Also you can create symlinks to tedit's file folder in other locations, as described in the README. I believe this does provide quite some flexibility to use.

      posted in App Development
      danfroD
      danfro
    • RE: Focal/20.04 is out for quite a while now. You still use Xenial/16.04? I would like to know what stops you from upgrading?

      So to sum up what has been written here so far (what got stuck in my head), the main reasons for not moving to focal are is order of seriousness (and lack of workarounds):

      • stability of focal and
      • too many troubles when migrating from xenial to focal. Either taken from own experience with another device or from discussions.
      • A clean install is the best way to do that, BUT we don't have a good backup solution.
      • This is followed with devices not supporting focal, sure no workaround for that.
      • Apps missing is an issue, but that is sorted easiest and also is due to developers not having moved to focal yet with their devices.

      [edit, I forgot one big reason:]

      • people are just happy on xenial, no need to move on

      With 24.04 knocking at the door (middle of this year planned currently) this is valuable information. I will pass that on to the core dev team.

      Of course this doesn't close this post. 🙂 Its more a summary for others joining new and for myself :smiling_face_with_halo: .

      posted in General
      danfroD
      danfro
    • RE: tedit development and design discussion

      Tedit release v3.4.0 is out. Please head for OpenStore to get the update.

      v3.4.0

      • added: toolbar for quick access to several commands from the menu, reordered some menu entries to match button order
      • added: exit button which checks for unsaved changes, some header redesign related to this
      • added: option to highlight file names of excrypted files in file list
      • improved: excrypted files in file list are now marked with the padlock icon
      • improved: file name in main screen now shows storage path
      • improved: change icon to view passwort for the common eye icon
      • improved: edit file button behaviour and design in file list
      • improved: note on file storage now gives some more information
      • improved: several input fields now get focus when opening the page, thus opening the OSK
      • improved: fix #13 by rephrasing some error messages to be more helpful for the user
      • improved: some buttons with long text are now bigger and use word wrap
      • improved: readability of save dialog button in disabled state
      • removed: string "saved: true/false" since the label color and save button enabled/disabled indicate saved state
      • fixed: top margin at file list page being a bit too small
      • fixed: error in hash calculator where proceed wouldn't work
      • updated: translations, many thanks to all translators!
      posted in App Development
      danfroD
      danfro
    • RE: OP 5 Focal Install

      Just want to share the news here, that on focal devel channel the OP5T now allows installing via system settings. No installer needed anymore. Big thanks to Ratchanan!

      posted in 20.04 Focal Fossa
      danfroD
      danfro

    Latest posts made by danfro

    • RE: How I'm now using Signal on UT

      @rdfrs in addition to what @Moem explained, you can also go to the room with signal bridge bot, there you can type

      • help to get a full list of available commands
      • start-chat PHONENUMBER to start a chat from the bot end, provide the phone number in international format as +1234567890

      And once you have your chats as rooms in Cinny, you can type messages there as with any other room.

      posted in General
      danfroD
      danfro
    • RE: How I'm now using Signal on UT

      @RedXXIII Thanks for reporting back. Good to see it confirmed, that both Cinny's can't "live" next to each other.

      posted in General
      danfroD
      danfro
    • RE: How I'm now using Signal on UT

      @RedXXIII you can only try uninstalling the old one. I don't have both installed. It might be to some of the patches we use, that they register to the same push helper. So it might be worth uninstalling one.

      posted in General
      danfroD
      danfro
    • RE: How I'm now using Signal on UT

      Anyone else here using the tchncs signal bridge and having problems recently? It stopped working for me.

      From reading in their support chat I learned, that might be due to some "federation issues" with tchncs and matrix.org. Whatever that means.

      posted in General
      danfroD
      danfro
    • RE: How I'm now using Signal on UT

      @RedXXIII This must be some system bug, but after installing Cinny-UT, you need to restart your device once. This triggers Cinny being available in system settings under notifications. They should then work without you doing anything.

      posted in General
      danfroD
      danfro
    • RE: How I'm now using Signal on UT

      @Sander Thanks a lot your detailed walkthrough.

      I actually wanted to recommend to everyone using matrix (new users expected here 😉) to set it up in a second device. Why?

      Chats in matrix are mostly encrypted. Those chats are only visible on verified so called sessions. A session is any other matrix client logged in with the same username and homeserver.

      As described by you, one can use a key to verify. But I found that more difficult than with a second device by comparing a few emojis.

      A second device can be any matrix client that supports verification. This can be Cinny or Element on desktop or another phone. But it can also be a web client e.g. cinny web. Just use a different device in case your phone breaks or get lost.

      Regarding Cinny, I am struggling with the terrible last mile fixing some last downloads. I am almost there for releasing. But I guess it will take a few more days...

      posted in General
      danfroD
      danfro
    • RE: How I'm now using Signal on UT

      @Robipo Glad to hear you got it working. Hopefully soon that wouldn't be needed anymore (except for pre-release testing).

      posted in General
      danfroD
      danfro
    • RE: How I'm now using Signal on UT

      @Robipo When I wrote this post, I didn't know, that Github only provides downloadable files for users that are actually logged in to Github.

      So currently you can either log into Github (if you have an account) and download it from there, or use the latest .click I provided in our Telegram QA group.

      I will release Cinny soon in OpenStore (I got the "go ahead" from the old maintainer today.), but a couple of steps need to be done until that is achieved.

      posted in General
      danfroD
      danfro
    • RE: tedit development and design discussion

      @domubpkm I am sorry, I forgot to reply. Sadly so far I haven't found a working solution.

      When setting the TextArea to read-only, we can't navigate in it. So no option. I didn't found time yet to see if some manually added controls allow moving the text in read-only mode.

      I also tried (after your question, could you please open an issue/feature request so I don't forget about that?) to display the file in a webview. I used that successfully when testing something for weather app and webviews allow pinching and dragging and that.
      But for some reason simply instantiating a webview component in the code, not even displaying a file, always crashes tedit (of course no error message that might give a direction where to look at). I am totally lost here why that happens. Many apps use webviews for various purposes.

      posted in App Development
      danfroD
      danfro
    • RE: tedit development and design discussion

      @domubpkm thanks for mentioning this. I mainly use dark theme, so I missed that in abiance. I will try to fix that soon.

      posted in App Development
      danfroD
      danfro