« first day (2413 days earlier)      last day (2369 days later) » 

04:00
Definitely the best (built-in) symbol name in the whole system:
Integrate`aaaaa // Attributes

{Locked, Protected}
Why it's here is anyone's guess:
Integrate`aaaaa // System`Private`HasAnyCodesQ

False
 
5 hours later…
09:05
Is there a practical reason why this happens:
_?f[x]   (*is the same as (_?f)[x], which can be surprisng but fine*)
This though:
_?f : 0 (*is the same as _?(f : 0) *)
Why : binds closer than function syntax in this case.
@Kuba Wow that's terrible and I never knew that happened...
Yes, just got hit by that
I'm guessing its an edge case from wanting strong binding of : but not being careful enough with it.
I see no reason why the precedences are in that order.
I find the second one more intuitive but I already assumed _?foo should be impossible to break
Yeah I thought only like :: had higher precedence
Actually this is odd:
_?f : 0 (*is the same as _?(f:0)*)// FullForm

PatternTest[Blank[],Pattern[f,0]]

Precedence@PatternTest

680.

Precedence@Pattern

150.
By pure precedence I don't see why that should happen
09:12
@b3m2a1 Precedence is made up, or at least not up to date with a parser mathematica.stackexchange.com/questions/30425/…
Oh interesting. That's... annoying.
@Kuba this answer confirms my hunch that the MenuSetup.tr and KeyEventTranslations.tr use the same underlying processing mechanism
Also points to a nice way to edit key events "on the fly" as the MenuSetup.tr can be edited on the fly
@b3m2a1 mhm, otoh you can't put that in a button or custom even't action :( I was told the menu/events system will get an update to be more idiomatic but it was quite long time ago
Yeah this is true. I honestly barely trust when the FE people say "this will be changed to make it better" anymore.
@b3m2a1 more fun (_?f):1 is invalid XD I need to use Optional. There is a question about this but I forgot about that funny thing
The site is literally littered with statements like that (about FE updates, I mean)
09:22
@b3m2a1 yes, unfortunately :(
Oh yeah I ran into that once or twice. Maybe it parses _?f:0 the way it does because it can't parse it otherwise.
@b3m2a1 that is the one I think I thought about: mathematica.stackexchange.com/q/123359/5478
@b3m2a1 @Kuba Yeah, using : for Optional and Pattern was one of the brighter ideas of SW. Completely confusing.
Yeah. : ... : is a nice syntax but it'd have been nicer to do something like : ... = .... although that'd obviously wreak all sorts of hell with metaprogramming
 
2 hours later…
11:09
@Kuba I think editing the Menu directly is better than editing KeyEventTranslations. It's certainly faster. This is an example of that. Is there any reason you can see (beyond impermanence) not to do this?
@b3m2a1 menu is better because it wwill work even if there is no available key binding left.
@Kuba I was thinking of using the Menu as a replacement for KeyEventTranslations. As in I put any and all key bindings there rather than in the .tr file.
@b3m2a1 the downside of both is that, afaic, they can only be run through the preemptive link
Can the KeyEventTranslations bindings be run on the main link?
I don't know if there is an option to make that happen, I am afraid not. That is why I created custom menu for my live templates
Wouldn't be surprised if that is not the case and you can set Method or something :)
11:14
Good to know. That's fine by me anyway. How did you make the menu?
ContextMenu?
11:27
@b3m2a1 attachedCell, because I needed hands on keyboard solution
and for pre v11 I used frameless nb as I had few crashes with AC
Ah so you don't actually need to make use of a Menu expression or anything?
@b3m2a1 yep, you can specify items as association, see readme: github.com/kubaPod/DevTools
@Kuba it turns out you can make a menu item evaluate on the main link if you do two things:
1. set Method->"Queued" 2. set the MenuEvaluator to some value (the most common seems to be Automatic
12:00
Not true forget about it :P
Right, makes sense since dialog windows are prompt from menus. Not sure if I confused menu with key items or I was confused in general.
Is MedianFilter buggy or am I misunderstanding what it should do? Hopefully the latter.
0
Q: Is there something wrong with MedianFilter?

SzabolcsMedianFilter does not give the result I expect, or the result I computed using other methods. Is it buggy? Example: im = ExampleData[{"TestImage", "Sailboat"}]; m1 = MedianFilter[im, 5] Look at the pepper-like pinkish noise at the middle of the image. I'd expect a median filter to give a...

12:32
I'm now sure it's a bug. If you agree, tag it as such.
@Szabolcs I'm wondering if Interleaving on the ImageFilter would have the same salt effect as MedianFilter
 
2 hours later…
14:27
@halirutan. Hilarious, but not just programming books. That style is rampant in all technical writing.
ClearAll[foo]
foo[a_, b_List] := (b /. Key[x_] :> x) -> a

foo[1, {Key["keyName"]}]

(*{x} -> 1*)
It happens because replace get's fault renaming Key[x$_]:>x.

I think it is a bug, or?
15:04
@CarlLange yep, sometimes us programmers feel the same way trying to work through a math or stats textbook
16:01
@kirkus Wrong user I think :) But I agree. But it's also not just technical writing. There's that joke about how to draw an owl - you draw two circles, and then you draw the rest of the owl - that I think can be found in writings on any subject with sufficient depth
16:29
@CarlLange yeah sorry about that! but I've been following this conversation with interest regarding the MathLink hacking, and I'm happy to help out with coding and/or testing, coming from the programming side of things for ~40 years rather than the math/science side.
 
2 hours later…
18:22
@kglr FYI
233
A: Increase close vote weight for gold tag badge holders

Tim PostUpdate: this is now enabled everywhere! The rules are: You can instantly close as a duplicate any question that was originally asked with a tag you have a gold badge for. You can instantly reopen any question closed as a duplicate that was originally asked with a tag you have a gold badge for....

Especially,
> You can instantly reopen any question closed as a duplicate that was originally asked with a tag you have a gold badge for.
And I gave the final re-open vote.
18:43
thank you @halirutan.
 
1 hour later…
 
1 hour later…

« first day (2413 days earlier)      last day (2369 days later) »