Skip to main content
ConvexMartian's user avatar
ConvexMartian's user avatar
ConvexMartian's user avatar
ConvexMartian
  • Member for 11 years, 1 month
  • Last seen more than a month ago
comment
RegionErosion fails with Polygon
Hm, interesting idea, except I'm trying to erode the polygon, which should result in a smaller polygon. In your example, your green polygon has dilated into a larger blue shape. I am not sure that you can use RegionDilation to result in a smaller shape.
comment
RegionErosion fails with Polygon
This returns EmptyRegion[1], the empty subset of R^1. This is surprising because our shapes are 2-dimensional, not 1, so I'd expect EmptyRegion[2] here. I see that RegionEmbeddingDimension returns 2 for the Polygon and the Line you suggested.
awarded
asked
Loading…
comment
Passing control values out of nested Manipulates
Just a note that when I adapted this solution to my image-cropping problem, I encountered a "bug" where TrackingFunction doesn't work with multiple Locators, as described here.
comment
Passing control values out of nested Manipulates
Ah, without HoldRest, the Messages window complains: Set::setraw: Cannot assign to raw object 0.645. Thank you!
comment
Passing control values out of nested Manipulates
Can I ask why the HoldRest is needed in the "updater" function? It still works without it.
comment
Passing control values out of nested Manipulates
WOW, thank you! I didn't know about TrackingFunction. This is great!
accepted
comment
Passing control values out of nested Manipulates
This helps, thank you! One last question: how would you tweak your example to use indexed variables like a[[1]] and a[[2]], instead of a and b, so that I could work with a list?
Loading…
awarded
comment
Importing all parts of a multipart email
@flinty, thanks for digging in to that RFC, I didn't know the difference between multipart/alternative and multipart/mixed. Interestingly, Wolfram Tech Support emails have multipart/alternative MIME types, yet their text/plain and text/html parts are very different. (I filed a support ticket with WRI about that.)
comment
Importing all parts of a multipart email
@LouisB, thanks for pointing that out. Even adding Infinity to Cases, it still only finds the text/html portion only in the Plaintext field, where I would have to parse it out from the rest of the whole email. I was hoping MMA would offer something like ImportString[email, {"EML", {"Multiparts",2} } ] to parse it out for me.
asked
Loading…
answered
Loading…
awarded
awarded
comment
Error: "Cannot set current directory" if directory name starts with tilde "~"
Update: WRI responded: "There is a known issue with using patterns in filenames, and it seems that this is related to the same issue."
comment
Error: "Cannot set current directory" if directory name starts with tilde "~"
@Tim -- Agreed. I'm crawling over some backup directories, and one is a backup of a linux system with user directories of the form ~foo.
1
2 3 4 5
8