promitheas

joined 2 years ago
[–] [email protected] 2 points 3 days ago* (last edited 3 days ago) (1 children)

The way I understand it is that you dont need the extensions if you use brave (i dont have any of those installed and just use as strict shield settings as I can) but they will support them for as long as possible for those who also want to use the extensions. Brave seems to use a modified version of the chromium engine in their browser which includes the shields.

The only issues ive had so far are with youtube's recent "3 strikes" message, which gets fixed by brave within a couple of days to make yt unable to detect that brave is using (or is itself) an ad blocker.

[–] [email protected] 4 points 3 days ago (4 children)

Brave Shields block ads and trackers by default, and they’re built natively in the Brave browser—no extensions required. Since Shields are patched directly onto the open-source Chromium codebase, they don’t rely on MV2 or MV3.

https://brave.com/blog/brave-shields-manifest-v3/

[–] [email protected] 5 points 4 days ago

Ive read the comments, and I love you as a human so much for helping the kitties (and the way you talk about them is hilarious)!

[–] [email protected] 1 points 4 days ago

Thats good to know! Thanks ill checl it out

[–] [email protected] 1 points 4 days ago

My pleasure! Yes I have osm2gmaps but sadly it doesnt work properly for me when converting gmaps to osm. In those cases it simply creates a link with the coords 0, 0. In reverse however its quite useful, so I dont think there is a need to implement osm2gmaps conversion on my page

[–] [email protected] 1 points 4 days ago

Unfortunately osm2gmaps doesnt correctly convert gmaps links to osm links, at least for me. It simply makes a link with the coordinates being 0, 0. As for Geoshare Im not aware of it

 

Hello everyone!

After getting advice from my previous post in here (https://programming.dev/post/32038961) I've managed to build a super simple web app which converts google maps links to osmand.net links. As can be seen from the page if you visit it, to have it open those links in your mobile application automatically there are a few simple steps you need to go through to allow OsmAnd to open those links by default. It's a one time setup though.

I made it work both on desktop and mobile (it can be installed as a PWA - "Add to home screen").

Something that is quite important to me: it has some screen reader support for visually impaired people. Not being visually impaired myself, I can't know if its actually useful or if the tools I used to test the screen reader support are actually what the blind community use day-to-day. As such, I would really appreciate any feedback regarding (not only) the accessibility for visually impaired people.

Furthermore, please just let me know your thoughts in general and test the crap out of it. Im no web developer so if you find any security holes do let me know, even though its such a simple app that there shouldnt be much.

Also, general feedback is always appreciated!

Link to page: gmaps2osm.de

Link to github: https://github.com/promitheas17j/gmaps2osm

[–] [email protected] 2 points 4 days ago* (last edited 4 days ago) (1 children)

Ok, this is super interesting and a bit of a weird coincidence, because on the page you linked it mentions that they are also a community of the blind and it is really important to me to have my page be accessible to visually impaired people, and I already made some steps into making it screen-reader compatible. I still need feedback from them though because not being blind myself I cant be sure if what I used to test the screen-reading is actually what the blind community uses, nor if it would actually be useful for them!

Do they offer hosting and ssh access? If so, how can I go about setting all that up?

Edit: Looking at their donations page it seems that they may be partly linked to the USA which I want to avoid:

HOW DO I DONATE?

You can send cash (USD, YEN or EUR), cheque or a money order to:

SDF Public Access UNIX System
PO Box 17355
Seattle WA 98127

Even though their server is in Germany if they have any relation to the USA its a shame.

[–] [email protected] 2 points 4 days ago

Yea that would be awesome! Let me get this version up and running, get some feedback for it, particularly from the visually impaired community (I did my best to make it screen-reader compatible but as I'm not visually impaired myself I'm not sure if the tools I set up for testing are the standards, or if what I have currently is even useful to visually impaired people) and then I can for sure work on expanding it!

[–] [email protected] 4 points 4 days ago* (last edited 4 days ago) (2 children)

Thanks. Hetzer seems like its got a good deal (1.76 euro / month max for the lowest tier which should be way more than enough for what I want to do) but when I looked at the scaleway price page I was greeted with several sections like bare metal and compute. Which one should I be looking for to just host a simple webpage? Also, having done a little more research into hosting, I guess I will be going with nginx and gunicorn (correct me please if this is overkill) so I guess having ssh access to the server is necessary. I've got linux experience so thats not a learning curve for me at all.

Edit: Also for hetzer, looking at their most basic tier in more detail, they have this following feature listed:

Symantec Basic SSL Certificate, duration 1 year
You can equip yourself with a free basic SSL certificate simply by going to the "SSL Manager" menu tab in your account on the konsoleH user interface.

The offer only stands if Symantec can supply a free certificate for the domain.

Even though I'm not actually reading any sensitive user data or storing anything, I think having https will inspire confidence and is just generally better to have than not, so how can I make sure that my domain is elligible for the free certificate?

26
submitted 4 days ago* (last edited 4 days ago) by [email protected] to c/[email protected]
 

Hello everyone! I just wrote an extremely simply single-page tool using just HTML and Flask to convert google maps links to Osmand.net links, and I would like to host it somewhere.

I don't need any fancy bells and whistles, as long as it supports Flask as a backend.

Im no web developer, so I haven't actually hosted my own page anywhere before. As such, simplicity of use and setup is quite important. For example if it allows me to also buy the domain in the same platform thats good.

While I use Flask, there is no data being stored. All the flask app does is take the link given by the user, convert it to the osmand.net format, and return it. Super simple!

I looked on buy-european.net and found Infomaniak Web Hosting. I quite like the fact that they use 100% renewable energy to power their servers according to the page above, but I'm not sure if it would be the best option given how inexperienced with all this I am.

Would love to hear your suggestions! Thanks

Edit: Ended up going with hetzner. Site is pretty much set up right now.

gmaps2osm.de

It has some screen-reader support (still need to get it tested by visually impaired people), and is also set up so that you can install it as a PWA on your mobile device (add to home screen).

Here is the github repo: https://github.com/promitheas17j/gmaps2osm

I would really appreciate any feedback from experienced and not so experienced web developers alike :D

[–] [email protected] 2 points 4 days ago (2 children)

I got around this on my device by adding osmand.net as supported links for OsmAnd to open. That way I guess if the app is installed it will open in the app, otherwise open it in the browser. Yes, its a manual step but for now I think its best. Im almost done with my tool also, keep an eye out for when I make a new post with the link ;)

[–] [email protected] 1 points 5 days ago (4 children)

I think I made some progress using osmand.net links, which is what is copied to my clipboard when I try to share a location from OsmAnd then select Copy. Ill edit my OP with what I found

 

Hello guys, I'm relatively new to OSM but have found it quite useful and feature-rich since I made the switch to a degoogled phone OS. I now have a question about generating OSM compatible links much like google maps has where I can send a friend a sharable link and when they click it it automatically opens their app (or browser if the app cant be found) to the OSM map with the location under a pin so that they can do whatever with it (most usefully is to "Navigate" to it and get directions)

I'm so new to it though that I don't even know if the concept of a "link" which opens the map exists in the context of OSM. If it does though, I would love to know where I can read up on these links' formats so that I can see how I might generate them from lat+long coords through software.

Many thanks in advance!

Edit: In OsmAnd when I want to share a location, I can select Share then Copy. That will put some text along with a link of the following format in my clipboard:

https://osmand.net/map?pin=35.96296%2C-5.50856#10/35.96296/-5.50856

I get the parts up until the #10. What does the #10 mean and why do the coordinates appear 2 times in the link, once before #10 an once after?

[–] [email protected] 2 points 6 days ago* (last edited 6 days ago)

This bot that posts all this stuff unrelated to the community is getting on my nerves. Mods should take action

Just report the post

 

[Solution at end]

Essentially what the title sais.

I want to give this genre a try, but I also want to use mods. Also, Im on Linux so if there are any extra steps I need to do if I install through lutris/steam (as non-steam game) then I would really appreciate your input. The only reason I am currently considering steam as a non-steam game for the install method is just so I dont fragment my games library too much across multiple platforms/apps. If there is any reason not to install it in steam please also let me know.

Much appreciated!!!

[SOLUTION]

Turns out the torrent I found was just a .rar file of the game with the crack file already there. All I had to do was unpack it, then add it through Lutris as a locally installed .exe. I did have to change the runner to proton-ge as the default wine would not start the game. I also had to go into the prefix it created and apply this fix (steamcommunity link) to get it to stop displaying an annoying pop-up message every 30 minutes or so (yet to test it out, but it should work. Will edit again if it doesnt remove the pop-up message).

Also, strangely enough at least for my experience with pirating games, the in-game mod "store" worked perfectly, and I didn't need to manually move files to a mods folder, though I'm sure that would also work just as well.

EDIT 2: The workaround to edit the playtime in the game files worked and I no longer get the pop-up message.

 

Hello once again everyone!

I've made considerable progress on my thesis thanks in part to you guys answering my previous post here. I'm already writing up the report, and have pretty much the entire system programmed through the Arduino.

However, I am still having difficulties figuring out how to initiate/force a disconnect of all BT devices connected to the HM-10 module (this is the one I got). You can refer to the post I made on the arduino forums (link in post) where I also searched for the solution but had no luck, but sadly its been almost 2 weeks and still no answer.

To cut a long story short, I have all the pins of the HM-10 wired except the BRK pin currently, even though I wired that up previously and tried sending LOW-HIGH-LOW and HIGH-LOW-HIGH pulses to try to disconnect. As far as I understand it, what I have is not exactly the HM-10 but an HM-10 mounted on a breakout board(?).

The data sheet on the website I got it from seems to be for the bare HM-10 so its a bit confusing for me. It talks about a specific pin (PIO0) which looks to be wired to a switch, but there is no switch or button on the actual module and that doesn't help me anyway as I want to initiate a disconnect from code.

So how can I make it disconnect from all devices when the user for example selects a certain option from the menu of my system?

As always, I will greatly appreciate any help, and of course if you need any more info let me know and I'll try to provide it.

 

Hello once again everyone!

I've made considerable progress on my thesis thanks in part to you guys answering my previous post here. I'm already writing up the report, and have pretty much the entire system programmed through the Arduino.

However, I am still having difficulties figuring out how to initiate/force a disconnect of all BT devices connected to the HM-10 module (this is the one I got). You can refer to the post I made on the arduino forums (link in post) where I also searched for the solution but had no luck, but sadly its been almost 2 weeks and still no answer.

To cut a long story short, I have all the pins of the HM-10 wired except the BRK pin currently, even though I wired that up previously and tried sending LOW-HIGH-LOW and HIGH-LOW-HIGH pulses to try to disconnect. As far as I understand it, what I have is not exactly the HM-10 but an HM-10 mounted on a breakout board(?).

The data sheet on the website I got it from seems to be for the bare HM-10 so its a bit confusing for me. It talks about a specific pin (PIO0) which looks to be wired to a switch, but there is no switch or button on the actual module and that doesn't help me anyway as I want to initiate a disconnect from code.

So how can I make it disconnect from all devices when the user for example selects a certain option from the menu of my system?

As always, I will greatly appreciate any help, and of course if you need any more info let me know and I'll try to provide it.

 

Hello everyone! I want to write a short script to let me know if there has been more than 3 days since the last full system update whenever I open a terminal (run from .zshrc). Ive got something cobbled together, but sadly it only checks for the last full system update from pacman directly because of the way it looks at the pacman logs.

My question is, how can I make it so that if EITHER pacman directly or yay runs a full system update, it will update something like a persisitent environment variable with a UNIX timestamp?

I've also considered writing a hook to run after pacman fully updates the system since yay runs pacman under the hood anyway, but I can't figure out how to make the hook recognise if it was a successful full system update.

Here is what I have so far:

#!/bin/zsh

last_upgrade_date=$(grep -m 1 'full system upgrade' /var/log/pacman.log | cut -d ' ' -f 1 | tr -d '[]')
last_upgrade_sec=$(date --date="$last_upgrade_date" +%s) # Convert to UNIX timestamp

last_upgrade_sec=$(date -d "$last_upgrade_date" +%s)
now_sec=$(date +%s)

days_since=$(( (now_sec - last_upgrade_sec) / 86400 ))

if (( days_since > 3 )); then
	echo "Days since last update: $days_since day(s)" >> /dev/tty
fi

# Kernel version check
running_kernel=$(uname -r)
installed_kernel=$(pacman -Q linux | awk '{print $2}' | cut -d '-' -f1 | cut -d '.' -f1,2,3)

running_kernel_base=$(echo "$running_kernel" | cut -d '-' -f1)

if [[ "$running_kernel_base" != "$installed_kernel" ]];
then
	echo "Kernel mismatch detected. Reboot recommended." >> /dev/tty
fi

Thanks in advance!

 

Hey guys. I just got a Genesis Thor 300 TKL keyboard which doesnt work from my brother. I've got a Glorious GMMK v1 TKL keyboard. Is it possible to desolder the MX Blue switches from the broken Genesis keyboard and use them in the Glorious keyboard which at least to my knowledge is hotswappable?

Thanks in advance!

 

Hello everyone! First off, I need to mention that my background is in Computer Science (this project is actually for my thesis) and not in Electrical or Computer Engineering. As such, everything I've learned has been largely on my own, within the past few months.

That being said, I would feel more confident if an experienced set of eyes could take a look at my schematic and let me know if anything pops out as wrong/bad practice. Furthermore, with regards to the decoupling capacitor on the DS3231M RTC module (C1 on the schematic) I have a question: Would there be any problem if I use an electrolytic capacitor instead of a ceramic one? I read some stuff about the topic and people recommend using ceramic capacitors most of the time (I think) but others say that there shouldn't be a problem to use an electrolytic capacitor. I'm asking because I've already placed an order for parts, and one of them is this assorted set of electrolytic capacitors.

Please if you notice any mistakes or things that are not done the best way let me know, and try to explain why as simply as you can. As I said, I don't have a background in EE, even though it highly interests me and I want to learn.

Here is the schematic:

Many thanks in advance!

 

Hello once again lovely people.

I am trying to setup bluetooth on my laptop, and Im using blueman as a frontend. I can see the earbuds, can attempt to connect to them, but I get a dunst notification as follows:

(A) Bluetooth Pairing request for:
Fairbuds (20:24:04:08:65:C6)
Confirm value for authentication:
xyzpqr

In the rofi-dunst documentation it mentions symlinking rofi to dmenu which will achieve the same result as calling rofi with the -dmenu flag. I have done that.

As such in my dunstrc file, I have the default line (which should work after symlinking rofi to dmenu):

dmenu = /usr/bin/dmenu -p dunst

However, when I try to connect to the earbuds and click the dunst notification I get the following rofi window:

(Sorry, for some reason while that window was open I could not take a screenshot)

Any ideas how I can connect and authenticate to bluetooth devices?

Thanks in advance!

EDIT: So I just tried again on my laptop (after a restart of course after so many days) and it works. It gave me a dunst prompt with 2 options - confirm or deny. Selecting confirm connected them automatically. Not sure why it needed a restart though as I was refreshing my bspwm after every change I made last time I tried. Anyway, should be all good now.

 

I've been waiting patiently for the FP5 with /e/os to get back in stock (the one with more RAM and storage) and I just got the notification email a couple hours ago that it finally is! However when I tried to check out my cart and enter my address, for some reason my country (Cyprus) was not on the list of available countries. I looked into it a bit further and on the fairphone site they have this:

Lithium-Ion batteries are bound to shipping restrictions as they are regarded as dangerous goods, so we are unable to transport them via air freight. This limits us from certain island destinations. We also avoid air freight entirely for our European deliveries to reduce our carbon impact.

https://support.fairphone.com/hc/en-us/articles/17121765976849-Shipping-Costs

Ok, it might be the case and their hands are tied and they cant do anything about it. But looking on Cyprus' postal service site they have a section dedicated to prohibited items which is as follows:

Cyprus Post does not undertake the handling and transportation of items contained in the UPU List of Prohibited Items valid at the time, such as: radioactive materials, infectious substances, sensitive biological substances, explosives, flammable substances, corrosive material, narcotics, compressed gas and any other article whose transportation is prohibited by the International Air Transport Association (IATA) and the International Civil Aviation Organisation (ICAO). Cyprus Post has the right to check the item using any method or means, including the opening of the package in order to prevent the transportation of prohibited goods.

Items containing lithium batteries cannot be accepted for dispatch using the traditional postal services. They can be sent using the Courier service QuickPost which is provided in cooperation with DHL Cyprus Ltd.

You should also note that every destination country has its own rules regarding the importation of goods. If in doubt, please ask the Service Agent at the Post Office.

https://www.cypruspost.post/en/faq-prohibited-items

That in addition to me having ordered mobile phones from abroad into here before, makes me think there is something else going on that is preventing fairphone from shipping to Cyprus.

I must admit I'm quite annoyed, because we are a member of the European Union and it feels a bit exclusionary to not get the same benefits other countries get.

That being said, does anyone know the true reason for this restriction? Is it actually a mistake on FPs side, or some weird legislation in Cyprus?

This post is half rant, half genuinely wanting to find out what the issue is, thanks for reading this far :)

view more: next ›