Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Aug 10, 2018 18:18
@JGreenwell yeah, just MS (apparently the dropbox issue was on Mac too, which is closer to linux in this case I think) has UAC when you need to do one or two things with root. I haven't found a linux equivalent. Apparently the best way is to run a daemon from start-up, but unless I misunderstand daemons (which is very possible), this seems like a waste of resources for something that won't be run frequently.
Aug 10, 2018 18:07
That makes sense, good to know for the future :)
Aug 10, 2018 18:00
@JGreenwell that would work, but under Linux systems apparently even making a dialog to receive a root password is considered bad security (if I understand what I've read elsewhere, wim seems to agree). Otherwise I could probably do that.
Aug 10, 2018 17:59
The program is a normal program presumably installed as an administrator via a package manager of some sort (pip at the moment, but hopefully distribution package managers in the future)
Aug 10, 2018 17:58
@wim Thanks for asking specific questions. I'm sorry I'm having trouble articulating what I need, but I honestly have no clue what would be helpful because I have no experience with this. I'll edit the answer, but here's the quick answer to your question. It needs escalation for disk partitioning and filesystem formatting, once it has done this it's simply a backup program copying files with rsync.
Aug 10, 2018 17:50
@JGreenwell that makes sense. I'm asking this question because I want to do it right. At this time I have the program running as root as GUI, but that's terrible security practice and won't work at all in Wayland. I just have yet to find a good article or tutorial explaining what the alternative is an I'm utterly confused.
Aug 10, 2018 17:47
I shared this in a couple places besides here, if I don't get answer in a couple days I'll make a specific question on StackOverflow using MoxieBall's suggestion. I should be able to use sudo -S so long as I can get the password securely.
Aug 10, 2018 17:46
It's kinda important if linux is to be used by anyone other than power users.
Aug 10, 2018 17:45
At least a more narrow question
Aug 10, 2018 17:45
@MoxieBall that is useful, thanks. Still need a secure way to enter the password via the GUI, but that may be more achievable.
Aug 10, 2018 17:44
I know. That's why I'm looking for a better solution. Are you telling me that without the command line, there is no way to make a GUI administrative program?
Aug 10, 2018 17:41
@wim Do Linux systems have a way to make an admin dialog? My understanding was something like gksudo or pkexec where the best, but those seem to be considered bad practice as well. I have found very little information online about this, hence the low-level questions. Trying to do this in a reasonably secure manner (and avoid the Dropbox phishing issue)
Aug 10, 2018 17:40
@wim So how would something like gparted work then? It inherently needs root access but equally needs a gui. My understanding was the best solution was to make a background service with root permissions and communicate to it from the low-priveliege gui program via dbus and authenticate with policy-kit. But I can't have my users starting the root service with CLI, I need to start that via a GUI too
Aug 10, 2018 17:38
@Kevin yeah, I'll edit the question. I do want the user to input their password, but not even sure how to do that in a secure way
Aug 10, 2018 17:38
@wim that's what I figured, but how to do that in a secure manner? I'm new to this, but my understanding was that GUIs were inherently insecure.
Aug 10, 2018 17:32
Hmm, thought it would give a preview. Anyway looking to start a root service from a GUI in a python application (linking in with dbus)
Aug 10, 2018 17:32
Looking at doing something on unix that I thought some people in this chatroom might know how to do. Anyone have any thoughts? unix.stackexchange.com/questions/460907/…
May 25, 2017 17:34
So I just released a new version of WereSync (https://github.com/DonyorM/weresync). I'd love any feedback you all have to give.

WereSync incrementally clones linux drives, but can do so to a smaller drive and from a running one, unlike anyone existing cloning software (as far as I know). This update gives better support for making the clones bootable, making them more useful. It's written in Python completely (but calls a lot of subprocesses)
May 24, 2017 20:12
Flask is a little bigger than my project :)
May 24, 2017 20:12
@Wayne do you have any guideline for how much you do before you release? Would you release with one majorish feature?
May 24, 2017 20:07
So how does one decide when to release new versions of open source projects? I always feel like my releases are kinda small, but make the project a lot more usable (it's an end-user program in beta)
Feb 17, 2016 01:54
ok I'll look into that. And yes, I'm using linux
Feb 17, 2016 01:51
@tristan thanks
Feb 17, 2016 01:48
I've been working with watchdog (a library) watching for file changes, but it doesn't trigger a move event when the file is moved out of the watched directories. Does anyone know why that is/how to fix it?
Jan 18, 2016 09:29
@RobertGrant Ok thank you!
Jan 18, 2016 09:05
for example if I assigne module1.a =1 in module1, how do I access that in module2 and still have it be 1?
Jan 18, 2016 09:05
quick question: how do I create a variable that presistently stores data that can be accessed acrossed modules
Nov 10, 2015 22:48
@AdamSmith lol. However, I've heard that the blackmail library got into some legal implications
Nov 10, 2015 22:46
hey does anyone here know how to extract cookies from firefox using python?
 

Java

Dedicated to the discussion of the Java programming language a...
Apr 12, 2016 02:30
hey everyone
Sep 16, 2015 21:19
hello, anyone here?
Mar 25, 2015 05:43
okl
Mar 25, 2015 05:40
@Gemtastic
Mar 25, 2015 05:39
0
Q: Serializing DefaultStyledDocuments

DonyorMSo I was trying to serialize some DefaultStyledDocument objects using XMLEncoder. They encode just fine, however when I look at the data, it doesn't encode any actually data, it just gives the class file. I've looked on the internet and saw that many people had trouble with this, but there were n...

Mar 25, 2015 05:39
if you do, could you look at this question?
Mar 25, 2015 05:37
do you know anything about swing/styleddocuments?
Mar 25, 2015 05:30
anyone here?
Mar 25, 2015 05:24
Hello!
Mar 24, 2015 07:05
and default styled documents
Mar 24, 2015 07:05
Hello, if someone has a moment could they took a look at this question about swing: stackoverflow.com/questions/29196207/…
Nov 5, 2014 11:55
Sorry, to be clear, it's in Swing text components
Nov 5, 2014 11:54
Swing
Nov 5, 2014 11:54
Does anyone here have much experience with StyledDocuments?
Nov 5, 2014 11:53
Hey
Aug 28, 2014 09:02
lol
Aug 28, 2014 09:01
First to post on a new hour!
Aug 28, 2014 09:00
I have no idea
Aug 28, 2014 09:00
lol
 

 Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
Mar 2, 2016 09:23
with java swing
Mar 2, 2016 09:23
does anyone here know how to make a JScrollPane's viewport only expand veritcally beyond the visible area