« first day (2288 days earlier)      last day (2186 days later) » 

2:06 AM
Latex animation inside PDF is really cool. I have added about 10 more animations right in the PDF now. No HTML and no CDF. And all in one PDF file. I use Mathematica to generate the frames. Use JPG to keep the size of the PDF small. with over 120 pages and 10 animations, the PDF file is only 20 MB. Here is one page as an example.
I think all the above can also be done using Tikz. But Mathematica is much easier to use to generate the animation and just export the frames, then load the frames into Latex using the Latex animate package.
 
2:47 AM
@Nasser You should post a self-answered question describing your workflow
 
@ChrisK I could. sure. May be later tonight or tomorrow. I had old document that actually describes this process, but need to update it any way.
 
3:00 AM
@ChrisK here is the old document 12000.org/my_notes/Mathematica_animation_into_PDF_using_latex/… everything there should still work. But \usepackage{graphics} should now become \usepackage{graphicx} so what I do now is based on the above.
 
 
3 hours later…
5:43 AM
Can anyone help me figure out why this page won't load on GitHub pages: paclets.github.io/PacletServer/pages/log.html ?
I can view it just fine locally and on a local HTTP server
And it exists in the repo in the right spot: raw.githubusercontent.com/paclets/PacletServer/master/docs/…
 
5:55 AM
@halirutan looks like NPM also has this issue: csoonline.com/article/3214624/security/…
I tried to implement something that makes the Git log viewable, but a) GitHub isn't publishing it for some reason and b) when I merged Szabolc's pull request it seemed to somehow squash the fact that he committed it. I don't know enough about git to know which option to git log gives me the pull requests too.
I'm gonna try to figure out a) now, if anyone can help me with b) I'd appreciate it
Nevermind b) was just one of my ever present bugs. a) is the hard one.
And somehow a) resolved itself too :) We're golden.
@halirutan I added a link to the Change Log on every paclet entry and told people to look at it in the About page (and am currently adding that note to the install page too)
Do you think that'll be enough or should I try for more?
That's what the entry looks like now
 
 
4 hours later…
10:35 AM
Something changed again in how "MultipartElements" can be used to upload a file. Has anyone faced anything strange in 11.3, I'm debugging it now. #dailyfun
 
10:46 AM
@b3m2a1 I'm pretty sure this is the incident I remembered and the reason why I asked how we ensure trust in the packages.
@b3m2a1 I think for the moment, it is perfectly fine. Until we have contributors that want to publish who we don't know, I would not bother with it any more.
 
 
2 hours later…
12:55 PM
@Szabolcs On OSX with 11.3 I have this weird bug. Sometimes after saving a notebook, I cannot get it back to foreground. Indeed, now, I cannot even get focus on it. I click with the mouse in it, the cursor blinks but all my typing goes into the previously selected window.
However, I can use Cmd+Tab to switch to Mathematica and this works..
After I did this once, everything seems normal again.
 
1:32 PM
@Mathe172 I've seen this myself and it doesn't make me very happy. I'll look into it.
 
@JohnFultz Sometimes, it might need some time nevertheless (as in my case when Java methods are looked up). Is it possible to make the typing independent from the lookup and provide completion only when it has finished calculating the entries in the background?
 
@Szabolcs if you're referring to Code cells and manual indentation, I'm well aware that this could be made much better. If you're referring to the auto-indentation provided by Input cells, I don't think I've seen what you're talking about, and a better explanation would help.
@halirutan Even for thousands of symbols, I'm not convinced it should be taking any noticeable time. An appropriate fix may make your request unnecessary. But we'll see.
 
 
1 hour later…
2:41 PM
@JohnFultz @Szabolcs I've seen this mainly when pasting input from a non-Mma source, such as SE. The problem is that the cell created has "\n" for the new lines instead of "\[IndentingNewLine]". Is that what you're talking about, Szabolcs?
 
@JohnFultz I am referring to automatic indentation in Input cells. I thought that the issue was well known. I should have explained better, and identified the precise steps to reproduce it. It turns out that you need to: 1. create several input cells 2. merge them (Cell -> Merge Cells) 3. wrap all the cell contents in a larger expression. Here's a demo animation:
Do you suggest sending a report to support, or is this problem already known?
I run into this so often I don't even notice it anymore. I mechanically delete and re-create the newlines to fix the auto-indentation.
 
It's the same root cause, "\n" instead of "\[IndentingNewLine]" between the merged cells.
 
@MichaelE2 Thanks for identifying the cause!
I had no idea there were multiple kinds of newlines in Mathematica.
But if there are two kinds of newlines, I am not sure how this can be fixed ... the Merge Cells function could of course be made to insert and \[IndentingNewLine] when merging Input cells. But that wouldn't fix the problem when pasting from other sources.
Perhaps a menu item to fix the problem? It would replace the \ns with indenting newlines only if the cell is an Input cell and only in safe locations (i.e. not inside of a string or inline cell).
That fix would be too ugly and too confusing for Mathematica to actually adopt it.
 
3:35 PM
@Szabolcs Something similar:
12
Q: Get tab key to indent a block of code

MurtaIs there some way I can change Mathematica keyboard behavior so I could select a block of text/code, press tab, and the selection would be indented to right? Similarly, I would like shift+tab to produce indenting to the left. If it were possible to get this behavior just for multi-line string te...

 
 
2 hours later…
5:12 PM
posted on April 24, 2018 by Michael Trott

#post-44716 h2 { margin: 2px 0 0 0; font-size: 22px; padding: 12px 0 6px; display: block; float: none; } #post-44716 h3 { color: #333; margin: 5px 0 10px; font-size: 18px; } #post-44716 blockquote { padding: 10px 25px; font-family: Georgia; font-style: italic; font-size: 130%; line-height: 1.4; color: #e26a0f; margin: 0 0 8px; border-top: 1px solid #c3c3c3; [...]

 
 
2 hours later…
7:01 PM
@MichaelE2 @Szabolcs stylesheets from code templates have multiline tab indentation (only right). But I was not advertising it to much as it is not perfect yet and I only use it for code cells.
 
 
1 hour later…
8:30 PM
I'm often surprised how much people can write before they realize it is not working. mathematica.stackexchange.com/q/171860/5478
 
Why doesn't Row[ ..., BaseStyle -> {PageWidth -> Infinity}] stop the row from wrapping? What have I missed?
 
8:45 PM
@Edmund : "PageWidth is an option for output streams and for cells..."
@Edmund So I don't think you can do this for Row unless you change the cell's option. Row is just a RowBox under the hood.
 
@Kuba I will probably have to put it in a pane or panel then
 
@Edmund or Grid.
 
@Kuba Oh yes, Grid. Its been a long day.
 
 
1 hour later…
10:25 PM
Am I being stupid or is this a bug? https://imgur.com/GcfRSbV
That is, Accumulate doesn't appear to work with Quantity?
The Rest[FoldList[Plus, 0, list]] comes from the doc page for Accumulate, which is meant to be "effectively equivalent"
Seems like it's some weird interaction with the Dataset, since Accumulate[Quantity[#, "Percent"] & /@ {10, 10, 10, 20}] works
Also QuantityArray[{10, 10, 10, 20}, "Percent"] // Accumulate works
Ech, ok, it's definitely to do with the Dataset rather than the Quantity. So I suppose I'm not using Accumulate correctly with Dataset, although it really feels like it could work this way.
 

« first day (2288 days earlier)      last day (2186 days later) »