Ask Your Question

Mike Witt's profile - activity

2023-09-11 09:10:07 +0200 received badge  Famous Question (source)
2023-01-30 04:32:23 +0200 received badge  Famous Question (source)
2021-10-27 15:49:38 +0200 received badge  Notable Question (source)
2021-05-02 18:42:11 +0200 received badge  Nice Answer (source)
2021-02-10 17:37:14 +0200 received badge  Great Question (source)
2021-01-22 00:24:20 +0200 received badge  Nice Question (source)
2020-03-12 05:41:04 +0200 received badge  Famous Question (source)
2019-12-03 17:49:13 +0200 received badge  Popular Question (source)
2018-12-03 17:35:45 +0200 received badge  Popular Question (source)
2018-03-16 17:35:04 +0200 received badge  Famous Question (source)
2017-03-15 08:13:01 +0200 received badge  Notable Question (source)
2017-02-18 08:46:13 +0200 received badge  Nice Answer (source)
2017-02-05 18:50:06 +0200 received badge  Notable Question (source)
2017-02-05 18:50:06 +0200 received badge  Famous Question (source)
2017-02-05 18:50:06 +0200 received badge  Popular Question (source)
2016-07-16 14:28:56 +0200 received badge  Famous Question (source)
2016-05-30 14:15:34 +0200 received badge  Nice Question (source)
2016-05-30 14:13:54 +0200 received badge  Popular Question (source)
2015-09-30 02:39:22 +0200 received badge  Famous Question (source)
2015-06-23 20:37:33 +0200 received badge  Popular Question (source)
2015-02-26 14:31:40 +0200 received badge  Nice Answer (source)
2014-10-04 11:08:45 +0200 received badge  Famous Question (source)
2014-06-29 03:15:06 +0200 marked best answer subs_expr with e^t

Is there a reason why subs_expr() won't work here?

sage: version()
'Sage Version 4.7.2, Release Date: 2011-10-29'
sage: t = var('t')
sage: foo = e^t
sage: foo.subs_expr(e==e.n())
e^t
sage:
2014-06-29 03:15:03 +0200 marked best answer Default worksheet "sort order" in Notebook

Using the notebook interface, when you're looking at a list of worksheets, you can apparently sort them in different ways by clicking on the heading at the top of a column (I guess this is a pretty standard way to do it).

It appears that, by default, the worksheets are sorted by the last edit date. I would like to change the default behaviour to sort by the name of the worksheet instead. I'm particularly interested in making this change WRT published worksheets on my server. Is there any way to do this?

2013-10-31 15:05:47 +0200 received badge  Notable Question (source)
2013-10-05 00:04:56 +0200 received badge  Notable Question (source)
2013-08-18 04:05:51 +0200 received badge  Notable Question (source)
2013-07-18 09:48:36 +0200 received badge  Favorite Question (source)
2013-07-11 20:14:12 +0200 received badge  Good Question (source)
2013-04-20 00:15:36 +0200 received badge  Notable Question (source)
2013-01-21 09:21:40 +0200 received badge  Popular Question (source)
2012-12-28 08:48:15 +0200 received badge  Notable Question (source)
2012-11-01 05:59:29 +0200 received badge  Great Question (source)
2012-11-01 05:03:18 +0200 received badge  Famous Question (source)
2012-10-12 12:38:13 +0200 received badge  Popular Question (source)
2012-09-28 03:11:51 +0200 received badge  Notable Question (source)
2012-03-26 23:11:42 +0200 received badge  Popular Question (source)
2012-03-21 14:46:05 +0200 received badge  Notable Question (source)
2012-02-16 15:04:24 +0200 commented question Arbitrary Precision Physics Calculation

Perhaps it would help if you described one specific problem that you are working on.

2012-02-01 10:45:05 +0200 commented answer How to make my code available

That seems to me like an idea worth considering. The code itself could be in one of the places mentioned in the other answers, but having the discussion about it here could make the process more ... visible(?)

2012-01-30 12:41:58 +0200 answered a question How to make my code available

If the amount of code involved isn't too large, you could publish it as one or more worksheets on sagenb.org. But that's a fairly limited approach. Actually I'm curious too if there is a convenient way to share code other than integrating it into Sage. And, I think the point about getting feedback is an interesting one. There are probably people, knowledgeable in Sage and Python, who might be willing to comment on less experienced people's code. It might be nice to have an established mechanism for this. I would love to take advantage of something like that myself.

2012-01-30 09:41:29 +0200 received badge  Popular Question (source)
2012-01-09 15:10:35 +0200 edited answer html processing delay

To give periodic reports about what my code is doing, I sometimes do something like this:

print('About to start something')
os.system('date')
sys.stdout.flush()
#
# The code that does the thing
#
print('Finished doing something'
os.system('date')
sys.stdout.flush()

The "flush" business makes the output actually happen, rather than getting queued up for later. I think this works in both the command line and the notebook (I mostly use the command line).