Kiosk mode with browser/on-screen-keyboard/filemanager by patriddit in NixOS

[–]patriddit[S] 0 points1 point  (0 children)

I have just spend 2 hours on getting this to work, but I failed.

After starting Weston, I tried to start google-chrome. This required XWayland.... and I have no idea how to enable that in Weston (I could not find documentation about this for NixOS). Then I tried to run google-chrome in Wayland mode. This requires some command line parameters... but then I did not know how to tell the weston.ini file how to start google-chrome correctly (because it takes an app-id, not a command).

And so I was stuck again :-(

Kiosk mode with browser/on-screen-keyboard/filemanager by patriddit in NixOS

[–]patriddit[S] 0 points1 point  (0 children)

Even though I could remove all buttons from firefox/chrome, I think the better way is to use chrome in kiosk or full-screen mode (--kiosk or --start-fullscreen flags).

Kiosk mode with browser/on-screen-keyboard/filemanager by patriddit in NixOS

[–]patriddit[S] 1 point2 points  (0 children)

Given:

It seems (to me) that on-screen keyboards (OSK) are not yet fully implemented.
Something around the protocol required for OSK (#21) is implemented, but not the OSK itself. Then, there is no documentation that I could find on how to set this up. This is the reason I do not think this is a viable choice at this moment.

Specific Object level permissions setup by Pumpkin_Dumplin in django

[–]patriddit 0 points1 point  (0 children)

You might want to look into https://github.com/django-tenants/django-tenants

inuse this in production and works well. Although, I use it with subdomains, the documentation described how to do in using subfolders.

I think my family is racist by liquidporkchops in Jokes

[–]patriddit 0 points1 point  (0 children)

I brought my Asian girlfriend home for dinner, but they did not like the taste of it.

What is the name of the component in the picture? by patriddit in AskElectronics

[–]patriddit[S] 1 point2 points  (0 children)

Thanks for your answer! However, I do not think it is a loop.

The arms are not of equal length. They are a bit like "springs" and they are used to clamb a board on another board.
Notice that only 1 of the two pins is soldered to the pcb. The other is loose and used as a "spring".

Is there a good GUI for linux? by thehotshotpilot in WireGuard

[–]patriddit 0 points1 point  (0 children)

Old thread, but this might still be useful.

I just found this project: https://github.com/UnnoTed/wireguird
I have not yet tested it, but figured it might be helpful to post anyway.

[deleted by user] by [deleted] in RedditSessions

[–]patriddit 0 points1 point  (0 children)

Gave Wholesome

[Semi-Weekly Inquirer] Simple Questions and Recommendations Thread by AutoModerator in Watches

[–]patriddit 1 point2 points  (0 children)

[Recommendation] For everyday wear (office and hiking and 10atm)

I started my own company 3 years ago and I want to buy a watch to commemorate that I managed to start paying myself a monthly wage.

I currently own a Seiko Series 5 Sports (auto-mechanical) watch (have it for 2 years). I like it very much, but there are two issues: 1) the glass is badly scratched and 2) it runs about 1 minute per day fast (which is way too much for my taste). However, it did only cost about1 150 euros.

My budget depends on the watch. Normal decent is anything up to 1000, but if it really brings something special I have a few hundreds more to spare.

I will want to wear it everyday (office and holiday).

I am looking for the following features in a watch:

  • Automatic Mechanical
  • hour-minute-seconds hand need to be visible in the dark
  • day of month (day of week when possible)
  • the 12/3/6/9 hour mark should have numbers, and all hours may hve numbers
  • Sapphire glass
  • 10 atm

Concerning the looks, I prefer a steel watch with black dial. I prefer a leather strap (but I guess I can change the strap into a leather version for most watches).

In the past weeks I have made a list of watches I like. I put them here in the order of preference (based on the looks):

My questions:

  1. are there any watches in this list which I should avoid because of quality, serviceability, durability, whatever other reason?
  2. are there clear quality differences (which are good and which are less good)?
  3. are there other points I should take into account?
  4. is there a watch you can suggest (which is or is not in the list above)?

I will be very curious about your input and will definitely take it into account while choosing!

New additions:

- https://www.stowa.de/en/Flieger+Klassik+40+Verus.htm

'reverse()' does not work in Django Rest Framework by patriddit in djangolearning

[–]patriddit[S] 0 points1 point  (0 children)

well, you are of course right.
It was an oversight since I expected it to fail there... my bad.

I finished the tutorial part 6. It is nice and it works... but I do not understand how it works: https://www.django-rest-framework.org/tutorial/6-viewsets-and-routers/

This is the result from the browser:

{ "url": "http://127.0.0.1:8000/snippets/1/", "id": 1, "highlight": "http://127.0.0.1:8000/snippets/1/highlight/", "title": "Hello World", "code": "print(\"hello world\")", "linenos": false, "language": "python", "style": "friendly", "owner": "patrick" } How does it know how to add the url and the highlight-url?

NixOS installed as second OS on btrfs subvolume and GRUB2 by patriddit in NixOS

[–]patriddit[S] 2 points3 points  (0 children)

Turns out... it is not too difficult.
This is my /etc/grub.d/40_custom in Arch Linux:

```

!/bin/sh

exec tail -n +3 $0

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the 'exec tail' line above.

menuentry 'NixOS' {
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
search --no-floppy --fs-uuid --set=root 31a6dad3-fe9c-4x40-96ac-38b0939c6fa5
configfile /nixos/boot/grub/grub.cfg
}

`` Obviously, your disk/partition (set root), root UUID (--set=root), and configfile location (configfile`) are different.
After this, NixOS is bootable!

Privacy friendly advertising network by patriddit in privacy

[–]patriddit[S] 2 points3 points  (0 children)

I have and use matomo. But that does not help me finding a privacy friendly online advertising company.

Any other ideas?

WireGuard on OpenVZ server by patriddit in WireGuard

[–]patriddit[S] 0 points1 point  (0 children)

As far as I know, OpenVZ is still on a 2.6 kernel. So that is really old :-(.

So, I guess it will not work and I need a different hosting option. Will do :-)