Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have some software that occasionally logs me off automaticly. I want to block this, so I won't be logged off (windows 7). Are there a way to block log off requests using Python? If so, then how and if not; are there any other solutions?
Looks as if there's a possible solution in an MSDN article.
What you'd have to do is write a simple Windows application which handles the WM_QUERYENDSESSION event, and returns FALSE, then, in theory, as long as that application is running, the system won't log you out. It's possible that just leaving open an instance of notepad.exe with an unsaved file in it would achieve the same thing.
It, might, however, cause all other applications to terminate, so, if that's undesirable, you'd have to intercept the call to ExitWindows from softXpand, which is much more complicated.
Some security products like Comodo Internet Security will allow you to run an application in a sandbox, such that you can intercept and deny certain system calls, which might work.
See also: this question.
Related
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 days ago.
Improve this question
Let's say I run multiple Python scripts in one shell, each at the same time or using cron in the same hour, and let's assume each script makes a different HTTP request. Can the OS do the HTTP in an asynchronous way or the computer will wait until one request is finished to start another?
I tried this and apparently worked, but I want to know how.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
This month, I learnt Python. I compiled the code and am able to run it on my laptop. A simple code that asks the user yes/no responses to questions that helps them traverse through a flowchart and end up with a final choice/result.
How do I turn this into a Python Web Application that can be accessed by others over a URL and not be dependent on my laptop to run it?
You need to separate the parts of your app that have its logic from the ones which react to and update window content.
Then you need to rewrite the window management part for the web. From the scratch. Also other parts if they rely on things that are not available in a browser (usually local filesystem access).
It is doable, but not that trivial as web apps have different architecture from desktop apps, there are issues with concurrency, preserving app state, and browser limitations, to name few.
Anything more detailed requires you to describe what it is that your app does and how.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
We're doing a school project creating student databases for teachers, and we'd like to make it more secure by making the folder containing the student files accessible only by the program. Is this possible, or is it unnecessary?
The answer is: It depends ;).
To be more specific: It depends on your operating system and the rights management you are having there.
e.g. on UNIX, you could create dedicated user account which is used to run your programm and allow rw-access to the files/folders only to this user.
On Windows, it will be more difficult.
In general, you should try to get a feeling about how possible attacs might be performed (USB-stick, login via internet / intranet, bribing someone, ...), then consider the likelyhood and perform good countermeasures against this attack.
Personally, I prefer
Backups located at more then one place
Good access logging
threatening with legal actions
And, most important: strong passwords!!!
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm new to web development and going to make a website which responses with data received from request to web-service(facebook for e.g.) and how to choose what is more useful here:
nodejs has an callback model which allows not to wait while gathering data for user from other services (but i've broken my fingers and my brain after trying to make a kind of class in javascript with inheritance and the whole server drops after unhandled error in script)
python is very convinient in working with diff. kinds of data, it's more convinient for me, former C++ developer
yesterday i've read about twisted python that also uses callbacks
Help me please to choose what to use, better - performance, simple code
The callback model might make your code more verbose but WAIT! there is a solution! Check out
waitfor.
Anyway, if it's a personal project then no one is forcing you to use node.js for webapp development.You should go with what makes you more comfortable. If you like developing in python then go for it! :)
why don't you try django; it uses python (which you said is more convenient) and is also very commonly used for web development.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Would like to know how proxy servers work (i.e. generally, how the mechanism works for the request process).
We're trying to understand how to set up a proxy server for our Web application. We need several processes to access the Internet through a proxy server in the internal network. Ideally, we could run custom Python code somewhere inside the proxy - especially before actually executing the request.
This is probably a really basic / dumb question, but now that I know that we should probably use a proxy, I am struggling to understand how they work and how we should incorporate them to our infrastructure.
Thanks very much! Any information on this will be very appreciated!