|
May
14 |
|
comment |
Are tuples more efficient than lists in Python? Although the suggestion you can conclude anything from counting ops is misguided, this does show the key difference: constant tuples are stored as such in the bytecode and just referenced when used, whereas lists need to be built at runtime. |
|
May
14 |
|
answered | return value when this code was performing? |
|
May
14 |
|
comment |
How can I prevent users from being able to "force stop" my application on Android? Why do you think interrupting user requests to stop it will make your app secure? |
|
May
13 |
|
comment |
I'm trying to get the correct minutes, and seconds when using integers What part is not working? |
|
May
9 |
|
comment |
How is it possible that kill -9 for a process on Linux has no effect? A good way to see what's going on is to run ps -o pid,wchan 1234 (inserting the relevant pid), and that will tell you which wait channel it's stuck on in the kernel. You can use that in a bug report, or Google it and it may give you a clue what's going on - whether it's stuck in NFS, some other driver, etc.
|
|
May
9 |
|
comment |
How is it possible that kill -9 for a process on Linux has no effect? You may also see things stuck in D because of a kernel bug. |
|
May
9 |
|
revised |
NameError from Python input() function better title and copyedit |
|
May
9 |
|
answered | NameError from Python input() function |
|
May
9 |
|
comment |
Echo program out to file even if a kill the program (linux) I doubt you would be able to measure any difference in performance, except in contrived cases where the program writes a vast number of messages and does little other work. Micro-optimizations that might lose log data (if you forget to flush) and that have no demonstrable benefit are not helpful at all. If you're producing megabytes per second of log output you might have a problem, but that is not typical. |
|
May
9 |
|
comment |
Echo program out to file even if a kill the program (linux) @BasileStarynkevitch and is there any reason for that belief? |
|
May
8 |
|
comment |
How to search item in Ilist and hence display the output? @AbeMiessler hence is fine here, if the OP means "how to search for an item and thereby display it" |
|
May
8 |
|
comment |
Why are typical 401(k) plan fund choices so awful? Aren't the US tax laws such that you'd rather have more fixed-interest income-generating assets in your 401k and growth assets outside of it? It would be a shame if the lack of choice forced you to do the opposite. |
|
May
8 |
|
revised |
Where are Bogleheadian World ETFs or Index funds? remove comment on something now removed from the question |
|
May
8 |
|
comment |
Echo program out to file even if a kill the program (linux) No, it won't be a filesystem issue. Local reads will see everything written to the filesystem, unless the machine crashes in between. |
|
May
8 |
|
answered | Echo program out to file even if a kill the program (linux) |
|
May
5 |
|
comment |
Orthogonal dimensions in Gnucash? Probably needs a less answer-assuming title. |
|
May
5 |
|
comment |
Orthogonal dimensions in Gnucash? You can hide accounts when they're obsolete - typically after the end of the tax year in which they were last active. (They can still be found and un-hidden.) Or, you can create a new book every year and just carry over the still-active accounts. |
|
May
5 |
|
comment |
Quick formatted strings in C++ Better to look at the vsnprintf return value to allocate a right-sized buffer, rather than chopping it off at 512 characters. Or use asprintf on Linux. Also, use gcc-style function attributes so that you still get some type safety on the arguments.
|
|
May
3 |
|
answered | How do timeline items get removed? |
|
May
2 |
|
comment |
How to interpret p-value of Kolmogorov-Smirnov test? This would be better off on the stats stackexchange. |