« first day (2520 days earlier)      last day (1974 days later) » 

1:02 AM
AttachAutocompletionMenu soon coming to a Q/A near you!
It's really a paste menu, but it just looks like the standard stuff
 
 
8 hours later…
9:08 AM
@b3m2a1 make sure to make the question distinct enough or post an answere there mathematica.stackexchange.com/q/164653/5478 if you want.
Looking forward to check that thing :)
 
9:23 AM
@Kuba I struggled to find a good question to ask so I'll just post an answer there when I have the time
 
9:41 AM
Can someone test if SystemDialogInput["FileOpen", "test*.nb"] allows you to restrict the dialog to only files which start with "test" and end with ".nb" (use whatever strings make sense for you)
This 2 year old question suggests it doesn't on mac (which is what I'm using): mathematica.stackexchange.com/questions/105759/…
 
10:04 AM
@KraZug this will filter stuff to only take ".nb":
SystemDialogInput["FileOpen",
 {FileNameJoin@{$HomeDirectory,
    "Desktop"}, {"Notebooks" -> {"test*.nb"}}}
 ]
But I can still select any .nb file
 
Yes, it is easy to restrict file type, but I was trying to restrict the name too
the question I linked to suggested a macOS bug
 
10:50 AM
Can I get PredictorMeasurements to give me R squared for a Predict function that used Method->"LinearRegression"?
 
If you notice that I close too many questions, let me know. Sometimes I feel like I do but there needs to be a bad cop in the team :)
e.g. this one: mathematica.stackexchange.com/q/187757/5478 Should I have waited?
 
 
3 hours later…
1:37 PM
Ah, out "bot" became finally promoted to Robocop: mathematica.stackexchange.com/users/27951/marcob ^^
 
1:58 PM
@Kuba I suppose I don't know whether that many "On Hold" questions get taken back off hold
But I think personally I'm more lenient than the mod team might be. (which is completely fine, I'm no mod :) )
 
@CarlLange I think questions that are back from 'on hold' are in a minority.
 
@Kuba I wonder does it make sense to have a flag that's similar but still allows people to answer.
For instance a working answer to that would only take a few minutes to put together and could be a teaching moment, but at the same time I wouldn't want to put that question at the same level as a really interesting and detailed question
and there are clearly things the OP could do to fix the question in that case :)
 
@CarlLange I hardly ever close off topic questions that have an upvoted answer so you can be quick, ask mods to reopen, edit the question to put it on reopen review queue.
 
@Kuba Gotcha, that's useful to know. This is my only stack exchange I ever contributed to in any real capacity so I don't know all the procedures
@Kuba And by the way I think it's completely fine to have closed that question :)
 
2:30 PM
> [...] Mathematica (which I have used ever since it was first released) can no longer claim monopoly on having simple and elegant tools to explore mathematics and demonstrate concepts. [...]
https://www.quora.com/Should-I-learn-Mathematica-or-Python-to-play-with-math-and-statistics-and-stuff

https://www.desmos.com/calculator/d3bvpv4smw

https://www.desmos.com/about
 
I didn't realise that the rise of Jupyter et al came about because Wolfram's patents on the notebook interface expired. Bit depressing to be honest
(from the Notebooks and CDFs talk at WTC18)
 
 
2 hours later…
4:11 PM
@rhennigan thanks, I'll check it out!
 
@KraZug No way for me (OSX and MMA 11.3)
@b3m2a1 No way to filter this way also. Strange thing, if I remove the dot in "test*.nb" so it becomes "test*nb", then it crashes the whole session (FE+Kernel) !
 
4:28 PM
@SquareOne, thanks. Can you report the crashing as a bug to Wolfram?
 
4:40 PM
@Kuba Imagine trying to implement any of that in the fE with comparable performance...
 
@KraZug ok i'll report.
 
@b3m2a1 Can you help me figure out what the doc centre toolbar is made of? It's ``DockedCells ->
FEPrivate`FrontEndResource["FEExpressions", "HelpViewerToolbar"]``. How do I get the source of that front end resource?
I did this before and I forgot.
I am simply looking to programmatically trigger the Reload button.
Never mind, one can just evaluate it ...
Got it: FrontEndToken[FrontEnd`ButtonNotebook[], "Revert", False]
 
5:01 PM
In general FrontEndResource is just a call to FE`Evaluate@FEPrivate`FrontEndResource[...] and FE`Evaluate is just a call to FrontEnd`Value[...]
If that's helpful
 
5:27 PM
@b3m2a1 Yes, it is.
 
6:01 PM
I have a grid of coordinates as a nested array, e.g. as comes out of CoordinateBoundsArray. I'd like to take some slice of this array, so take, say, the 5th array and then drop the first element from each coordinate. This is what I currently have:
GridSlice[g_List, n__Integer] :=

 Module[{new = g[[n]], tf = With[{l = 1+Length[{n}]}, #[[l ;;]]] &},
      Map[tf, new, Depth[new] - 2]
      ]
Is it possible to do this faster? Cleaner isn't a worry for me right now, as this is package code that just needs to work well, but not really be read by other people.
Oh huh it definitely must be as that unpacks...
Once more on the topic of I am very dumb...
gSlice[g_List, n__Integer] :=

  g[[n, Sequence @@
     Append[ConstantArray[All, Depth[g] - Length[{n}]],
      1 + Length[{n}] ;;]]];
It's literally just a call in to Part
 
6:38 PM
Guys Take a look this is cool: community.wolfram.com/groups/-/m/t/1569688
 
7:38 PM
@b3m2a1 This was just a quick hack to test the idea, but those are all good points
 
@rhennigan I get that and it's a convenient box structure to have around if you're working with resource functions. You could always package that thing up as a TemplateBox to embed in the ResourceSystemClient and then provide some access mechanism through that.
Presumably they can also attach autocompletion to ResourceFunction directly, too, by using the standard FEPrivate mechanism.
 
Autocompletion of names (and properties) for ResourceFunction is coming soon
 
Sounds good. I figured it probably would.
 
It's definitely still a WIP
and subject to change etc
 
7:54 PM
@rhennigan can you comment on the general turn around for function submission to publication or for hosting these things outside of the cloud? I know you're not explicitly on this, but you seem to have used it.
One use can for this I can see is as a supplement for my current process of putting my functions on GitHub
 
It should be pretty quick, have you submitted any yet?
I think there's currently an issue with some response emails going to spam folders though
@b3m2a1 This type of thing would make a good submission to the function repository
 
8:14 PM
@rhennigan Never submitted anything to either it or the data one. I'll try to add some stuff some day, but for the most part I prefer to make packages instead of functions and so the idea of just giving a single standalone function without easy access to the rest of the code is a little weird to me.
The paclet repository, on the other hand, is something I'd submit to day one (or in the beta if there is one).
 
8:32 PM
I don't think it's documented yet, but you can use "DefinitionNotebook" as the second argument to ResourceFunction to view code. Example: ResourceFunction["CheckMatch", "DefinitionNotebook"]
 
@rhennigan that's how I was looking at yours, but that's still not...great. What I mean is it's useful to be able to use package functions too. Like I define function Pkg`A as my main package function but to do that I write lower-level but still useful functions Pkg`Package`a1, Pkg`Package`a2, ... and those functions a1, a2, can be incredibly handy if A isn't quite what you need but you want to do something like it.
 
A lot of the functions I've submitted are from my personal debugging paclet, so you'll see a lot of overlapping code in the definitions
 
And the thought of making every single one of those functions a ResourceFunction and duplicating all the requisite code for all of them hurts me physically.
It's just disaster after disaster waiting to happen.
 
Yeah that's definitely the type of thing that makes more sense in the paclet repository
 
And that's all of the code I write. Except sometimes I write it as a single .m file.
I try to avoid writing big standalone functions as a big standalone function should almost certainly not stand alone.
The function repository is cute but to my eyes it looks more like a toy rather than a tool.
I'd hazard that most of the people here who write a lot of code that they reuse do so with packages rather than singleton functions.
 
8:49 PM
I think the appeal is the ease of distributing to others. All the functions I've written that I use regularly are sitting in autoloading paclets, but that's not something I can quickly (or easily) give to a beginner user for them to use.
 
@rhennigan I get that, although for that purpose I'd just use GitHub and Get. I can do more faster and more flexibly with GitHub than ResourceFunction.
 
9:17 PM
@rhennigan toys are fun unless you asked santa for a driller, for 5 to 10 consecutive years.
 
@Kuba lol
 
Nice one, isn't it? Considering my English skills :)
 
@rhennigan I do appreciate all the work WRI has put into the function repo and I'm sure it serves its purpose well. Its purpose just isn't the one I care about.
@Kuba I was impressed
 
@rhennigan I like this a lot!
 
@CarlLange Noooooo
 
9:22 PM
@Kuba You don't like cool birds Kuba?
 
It is indeed cool but I won't star it to make a point!
 
@b3m2a1 sometimes I think we should do a survey, maybe what we need is really what 10 folks around here need.
2
 
I personally think the function repo could be uniquely useful in a stack exchange context. Quite often answers to questions are single functions that can be useful in many cases.
And instead of copying and pasting those functions from notebook to notebook, having one place to store them (where they might be improved in future etc) could be handy.
For instance, I have some code to parse well-known-text gis data. I copy and paste that between dozens of notebooks before I can start doing any work. If I could do {ImportWKTString,ExportWKTString} = ResouceFunction["csl/wkt"] that would be less copy-pasting, at least :)
and others could discover and use it, without me having to do any real work
and if a question such as "How do I use WKT data in Mathematica" shows up, I can simply refer to the function repo page.
This is all hypothetical, I haven't actually used it yet. Just my 2c
(I'm extrapolating, I don't know if I can do two functions in one ResourceFunction or anything. I also only have ParseWKT, not exportwkt, but it's a formality)
 
@CarlLange 99% functions here are only the guts. They need error handling and polished definitions etc. They are not production ready, which is fine because it is not the point. If you are fine with that that also means FunRepo can fit you needs which is fine too.
It just does not fit mine or @b3m2a1 's.
 
9:35 PM
Fair enough :)
I agree with you, that makes sense. And I am also looking forward to the paclet repo, for the same reasons as you
And I haven't been using mma long enough to get properly annoyed with how long seemingly obvious features take to deliver :)
 
Paclet repository should exist and I can make use of it. But I wouldn't say I care, I learned to live with GitHub, PackageData.net etc What I need is a set of standard developer tools, robust, cross version compatible, not spread around on WWB MMA GitHub but in one place. Documentation of PacletManager, Internal and other heavily used contexts. Not to mention modern workflows to manage versioned dependencies etc.
I also understand that not everyone needs them but I am not sure current attitude towards serious WL users pays off.
2
 
9:56 PM
@CarlLange If you like that, you might enjoy my masterpiece: ResourceFunction[CloudObject["user:rhennigan/ResourceFunctions/BirdPeek"]][]
 
@Kuba It certainly seems weird that they have such good documentation, except for the things you need to build your own deep functionality
@rhennigan actually laughed out loud
 
I'm definitely going to submit a "BirdStuff" paclet when the paclet repository is available
ResourceFunction[CloudObject["user:rhennigan/ResourceFunctions/BirdFollow"]][]
 

« first day (2520 days earlier)      last day (1974 days later) »