« first day (2194 days earlier)      last day (2300 days later) » 

12:52 AM
Fun find: at around 22:05 in this video wolfram.com/broadcast/video.php?c=104&v=2057 we hear for the first time about WRI actually making a proper paclet repository. Here's to hoping it's designed well.
 
 
5 hours later…
 
2 hours later…
7:32 AM
Does anyone know which version of Mathematica Wolfram Alpha is using? Is it the latest version?
I will go out for a walk now, so I will be away from my keyboard for a while.
 
8:03 AM
@MatsGranvik it's at least 11.2: wolframalpha.com/input/?i=TwoWayRule
(or their data is modern enough at least)
 
8:37 AM
@b3m2a1 Thank you for the answer.
 
 
1 hour later…
9:50 AM
Hi guys, i have a time series of the form {{17-12-2017,0,1},{18-12-2017,0.2}...} which has somewhat a linear trend. When i apply TimeSeriesModelFit i get "Family :ARIMA, ORDER: {0,1,0}".when i run nlm["BestFitParameters"] i get {} and if i run nlm["ParameterTable"] i get a simple line on screen "-", how can i get the slope of the line?
 
 
1 hour later…
11:03 AM
nvm, i was wrong
 
 
11 hours later…
9:57 PM
0
Q: Automatically adjusted ImageSize across a column

KubaButton has this nice property that all Buttons in e.g. a Column will span to the size of the largest one: Column @ Table[Button[i!], {i, 1, 16, 5}] That is not the case in general: Column @ Table[Framed[i!], {i, 1, 16, 5}] Button has ImageSize -> Full but if we set it for Framed it get ...

@b3m2a1 ^, hmm?
 
@Kuba try BoxExpandable -> True it's not perfect, but seems to do okay...
Loses some input text though. Need to figure out why.
 
@b3m2a1 the real use case is with PaneSelector as an additional wrapper.
Column@Table[PaneSelector[{True -> Framed[i!]}, True], {i, 1, 16, 5}]
And it does not seem to be affected.
The really real use case is that I want to have Dynamic Appearance for a column of Buttons but I don't want e.g. `FrontEndResource["FEExpressions","GrayButtonNinePatchAppearance"]` to run back and forth for each button each time condition changes.

So the answer is to have PaneSelector which checks condition and shows already 'burned' button. The point is, only condition check needs to go to the kernel.
But now my buttons are not spanned nicely :)
#dailyFun
 
Yeah looking at
CurrentValue[$FrontEndSession, {StyleDefinitions, "Input",
  PaneSelectorBoxOptions}]
The BoxExpandable isn't there...
Oh here's a fun one: PaneSelectorBoxOptionsTransitionEffect
No idea what it does
 
My suggestion would be to imitate the PaneSelector by adding a Dynamic[CurrentValue["MouseOver"]] type condition to the last element of the Appearance list.
I've seen that one used in some paclet code I think
Adds overhead though
 
10:14 PM
@b3m2a1 it is not only on mouse over, it can be triggered by a state of given variable. I was playing with inserting Dynamic in Appearance but no luck.
 
Hm. Whenever I've had this kind of problem I've basically just given up or set a constrained field size. Consistent content sizing in the FE is unnecessarily difficult.
Can you put the PaneSelector in the Framed and use a Dynamic FrameStyle?
 
Yes, I know, yet I'm trying to squeeze something each time I face it.
Here's more detailed example:
Column@Table[
  Button[i!, FrameMargins -> 5,
   Appearance ->
    Dynamic[If[TrueQ@x,
      FrontEndResource["FEExpressions",
       "GrayButtonNinePatchAppearance"],
      FrontEndResource["FEExpressions",
       "OrangeButtonNinePatchAppearance"]]]]
  , {i, 1, 16, 5}
  ]
Checkbox@Dynamic@x
While this is not much because those appearance rules are only file refs, it is too much for me, and it will be a problem once you put there custom bitmaps.
 
Any chance you could get away with a super minimal nine-patch?
tinyPic =
  ImageCrop@
   Rasterize[
    Framed["", FrameStyle -> Orange, ImageSize -> {5, 5},
     FrameMargins -> 0]];
NinePatchCreate[tinyPic] // Compress

"1:eJxTTMoPSmNhYGAoZgUSnrmJ6alpTCAuB5AISix3LCpKrAwWAHJC84oz0/NSUzzzSlLTU4sskpiBguxQDGL/hwFkNgg0MP5vYIAhRpggkhowG6QLVRBqDoZKnGZi2B4M8plTZQnUTyBeUGlOajEXkOGcn5NfFFyQmJwaDHJ9kLsTmiIeUIAAPVuUk5pYlpmXDpYJKSpNBQCVrZG/"
I guess even that's a full 210 characters...
And you'd need three of those
 
@b3m2a1 I'm going with fixed size, unless a general solution pops up. But I don't count on that.
 
10:31 PM
@Kuba by the way do you have a copy of v10?
I want to know if System`Private`ArgumentsWithRules was in the language by then
 
10:41 PM
@b3m2a1 does not evaluate to anything in 10.4
But attributes are there: {HoldFirst, Protected}
 
@Kuba @Kuba good to know. You use it like SystemPrivateArgumentsWithRules[ColorBalance[a, b, c], {1, 2}, Hold] and it does options checking and returns the arguments and the options.
I want to be certain it was introduced in or before 10 before using it though.
 
11:23 PM
@Channel if anyone can confirm System`Private`ArugmentsWithRules has been around since 10.0 or before, that'd be great (and please comment on this mathematica.stackexchange.com/a/164162/38205)
 

« first day (2194 days earlier)      last day (2300 days later) »