« first day (430 days earlier)      last day (4044 days later) » 

12:00 AM
@acl, @rm-rf , @RolfMertig, @Verbeia Folks, it's the end of the day for me. Will see you all later!
 
@Szabolcs Are you here?
OK, never mind, I tell anyway.
As I wrote in the comment the second kernel uses a different pw-file playerpass. I moved this file and everything seems to work anyway.
But when I tried to start a second Mathematica, it told me that it weren't able to start a kernel due to licencing. This message popped up before the start-screen appeared were all the advertisement and the "New Notebook" buttons are.
@Szabolcs This whole screen looked really destroyed then.
Therefore, either the predictive interface is really started at the very beginning (and not with opening a notebook) or this second kernel is used for much more now.
Anyway, I was not able to kill the second kernel. The moment I killed the process, instantly another kernel was started.
I had had to delete my answer, because at first I accidently killed the wrong kernel (which obviously had the effect of killing predictions).
 
 
12 hours later…
hhh
12:01 PM
How can I do a cylinder without the inside just the border?
 
ParametricPlot3D[{Cos[u], Sin[u], 2 v}, {u, 0, 2 Pi}, {v, 0, 1},
Mesh -> 5, BoundaryStyle -> Black,
PlotStyle -> FaceForm[Red, Yellow]]
 
hhh
ParametricPlot3D[{Cos[\[Theta]], Sin[\[Theta]], z}, {\[Theta], 0,
2 \[Pi]}, {z, -1, 1}, Mesh -> None]
Yes that is right :)
How can I specify the thickness of the border?
I am trying to do rounded top, rounded peak
a bit like half-ball
 
12:17 PM
ParametricPlot3D[{Cos[u], Sin[u], 2 v}, {u, 0, 2 Pi}, {v, 0, 1},
Mesh -> None, BoundaryStyle -> Directive[Black, Thick, Dashed],
PlotStyle -> {FaceForm[Red, Yellow]}, Boxed -> False, Axes -> False]
 
hhh
It does not look thick layer -- there is no way to determine the exterior radius and inside radius?
I am now trying to create a 3D object that is convolution between the models:
 
hhh
12:36 PM
(no idea how to do it)
 
@hhh Sorry, I don't understand what you're trying to do
 
hhh
Head of airplane :)
 
hhh
1:32 PM
yes
@belisarius is this just with cylinder plot?
 
ParametricPlot3D[{Cos[u] Sin[v], Sin[u] Sin[v], 1/3 Cos[v]}, {v, 0,
Pi}, {u, 0, Pi}, Mesh -> None,
BoundaryStyle -> Directive[Black, Thick],
PlotStyle -> {FaceForm[Red, Yellow]}, Boxed -> False, Axes -> False]
 
Hi, bel.
 
hhh
1:56 PM
I am soon doing my plan but some odd errs in exporting
Export[StringJoin["~/Desktop/",#,".stl"],#,"stl"]&\@plane <-- what is wrong with this?
where plane=[wings,body, middle]
I solved like this:
Export["/Users/xyz/Workspace/uav/wings.stl", wings, "stl"]
Export["/Users/xyz/Workspace/uav/body.stl", body, "stl"]
Export["/Users/xyz/Workspace/uav/middle.stl", middle, "stl"]
It is not elegant but it works...
 
2:26 PM
Welcome back @J.M.
 
Don't furl out the welcome banners yet, I'm only here for a few hours... :|
Hi, rm. :)
 
@J.M. lol, going back into hiding soon?
 
Not so much "hiding" as "working", actually...
 
Well, we like to think you're living in the jungles of Philippines =)
Everything ok at your end?
 
@rm-rf Heh, I wouldn't mind living in the jungle if the cell sites weren't sabotaged every so often in remote areas... ;P
 
2:30 PM
@rm-rf Where it is at least warmer than where I'm!
 
@rm-rf I'm still in one piece; that should count for something.
 
@J.M. Hi btw.
 
@halirutan Hi hal, I see from the archives that you were looking for me a few days ago...
 
@J.M. While I don't mind you taking some time off, I was a bit afraid something happened.
When you are OK, I'm happy.
@J.M. Although, we really miss you being around here!
 
@halirutan Well, unfortunately for me, my time off is not exactly up to me; more of extenuating circumstances. At least I got free again today...
@halirutan Why, don't rm, Verbeia, and Wiz have my irresistible charm? ;)
 
2:34 PM
@J.M. Hehe.. It's mostly @rm-rf on who you can count on.
Verbeia is rarely here and MrWiz very often when I'm sleeping I guess.
 
Then, I'll take the opportunity to thank rm for picking up the slack in my absence...
 
@J.M. Are you mostly outside when you do what you do at the moment? And, is it warm, I mean over say 25degC?
@rm-rf Since when do we have advertisement in chat?
 
@halirutan what advertisement?
 
@rm-rf This flickering banner thing.
 
whoa... didn't know. I use adblock anyway
 
2:40 PM
@halirutan Well, it's 30 in the city, and 40 or so in the province...
 
@rm-rf I would swear it wasn't there yesterday.
 
@halirutan That's screwed up... anything on meta.SO about this?
 
@J.M. It's -6 and very windy here.
 
@halirutan Hold on, trying to find out...
 
I need summer.
 
2:41 PM
@halirutan Brr.
 
@rm-rf I restarted my browser (Linux) and now it's gone. Maybe my flashplayer screwed it up.
 
Hmm... they don't use flash for these sites.
Folks suspect malware in your browser (not an official response)
 
@rm-rf In Linux everything is different. I had e.g. times when a youtube vid was overlayed with another browser tab. Maybe something went wrong.
 
@halirutan How does it look on a different browser?
 
Also, another reason why that's NOT an SE ad is because it's the kind designed to lure you to click on it... SE ads are usually in-house ads, meaning links to other sites/questions (the real ads are only on SO, and are programming related)
 
2:50 PM
@J.M. It's now gone and I can't reproduce the ad :-)
 
Hey @J.M.
Welcome back
 
@Szabolcs Hi! No, not yet exactly back, I'll be away again in a few hours...
 
@J.M. Hi! Welcome not-back, then!
Is this one worth for migration?
1
Q: Mathematica averaging a big list of large images

user1843797I have a list of several hundred images, and I want to average the list to get a single image. Each image is 12bit TIFF with 2048*2048 pixels, and I am using the following to do the job: result=Mean[Map[ImageData[Import[#]]&,imagelist]]; The problem is that the data becomes huge. I tried t...

 
3:09 PM
@belisarius I think so, yes...
 
@J.M. Ok, flagging
 
acl
3:27 PM
@halirutan he, -4 and no wind at all here. think I'll go out for a picknick, then
 
 
2 hours later…
hhh
5:00 PM
How can I plot this with newer Mathematica?
ComplexMapPlot[z + 1/z, z, {Circle[{0.25, 0}, 1.25]}]
How can I do complex plotting with mathematica?
 
you already got your 4 d monitor ?
mh anywhere in my code must be a mistake
 
5:54 PM
@J.M.: hey there!
 
i wonder why mathematica doesn't make what i expect
 
@J.M.: such a two dimensional avatar
 
@robjohn Hi rob. Sorry, not officially back yet. I will be away in a few hours...
 
@J.M. Be well. I just saw your comment on my question, so I dropped in to see if you were still around.
 
Thanks for the kind thoughts. :)
 
 
1 hour later…
acl
7:05 PM
can you do a little for me please? — Math.f 1 min ago
he
 
not Mr.Nice anymore @acl? ;)
Submitted your paper, I guess?
 
Paper?
 
@J.M. @acl Was trying to procrastinate putting the finishing touches on a paper and as a result was spending a lot of time in chat, being extraordinarily patient with some folks... nothing wrong with that, but a couple more days and he'd have attained "Tibetian Monk" status :P
 
acl
@rm-rf not yet :)
 
@acl You're not usually that generous? :P
 
acl
7:20 PM
@rm-rf actually, it's two papers finishing simultaneously. now, as the end of a paper approaches, the rate of progress decreases as 1/d with distance from end. but if it's more than one paper, then it's also 1/n, with n the number of papers. so overall now I am 1/2d with d a small number (which in addition does not change fast)
see, now I am even inventing theories of procrastination to avoid typing...
 
@acl You make progress only when it comes a full circle and you work on your paper to avoid doing the chain of N things that you tried to do to avoid working on your paper :)
 
acl
@rm-rf in reality, I make progress when I add coauthors
 
Precisely. Once you're sick of procrastinating, you'll procrastinate by doing something that's actually productive...
 
acl
@J.M. yeah because this is the first time I'm procrastinating...
 
@acl I thought it was "too many coauthors spoil the paper"? ;P
 
acl
7:27 PM
@J.M. either I calculate they write, or they calculate, they write :)
so it's fine
anyway any ideas what to do with this?
 
@acl many downvotes but no votes to close.
 
acl
@halirutan yes, that is why I'm asking. also, nobody edited to include code blocks
I'd say close and delete it (it's way too basic)
 
vote vote vote (and edit)
 
acl
@rm-rf I was really asking, does anybody think this is worth editing?
 
7:30 PM
@acl The question is just lame and does show no effort and I assume he is one of the never-show-effort guys.
 
Well, I generally don't edit the crappy and doomed to die anyway... only ones that might be salvaged (but that doesn't mean I won't close/delete a post that I edited)
 
I left something anyway... if he doesn't respond, close the bloody thing.
 
acl
ok good then. now, too localized or not a real q?
 
@acl Give him, say twelve hours. If his lazy ass does nothing, boom.
 
acl
sounds good
 
7:34 PM
Unfortunately, I need to leave now. I'll just leave you guys something I did last year, but forgot to show off:
 
acl
@J.M. good luck until next time then
 
 
@acl I say vote to close now... It's too localized anyway, and it can always be reopened if made substantial. Often people think "later" and it never happens, just adding to the unanswered list
 
(FYI: that was the CMBR mapped onto a truncated icosahedron.)
Well then, see y'all later.
 
btw, @acl @Szabolcs @halirutan @belisarius re: combating unanswered questions, here's a little known SE feature that you can use to remove the localized and unanswered questions — if a Q is >30 days and < 0 votes and has no answers, it will be deleted. So if you see a question where it fits the above criteria and is at 0 votes (e.g., OP never returned/responded), simply downvote it and it'll be gone the next day.
I didn't want to suggest this before or in the main thread because it could potentially be misused by anyone with just 125 rep. So just laying it out here for those that are active/well informed.
 
acl
8:09 PM
> Evaluate only overrides HoldFirst, etc. attributes when it appears directly as the head of the function argument that would otherwise be held.
can't believe I didn't know this...
 
8:44 PM
@acl You probably did, perhaps just in a different form: "Evaluate works only 1 level deep"
 
acl
@rm-rf no, I had no clue
 
Is there any difference in behavior between the postfix/infix/prefix operators? Or is it just about syntactical sugar? For example:
f[x_] := x^2;
(y + z) // f
f[y + z]
f@(y + z)
all give the same result
 
@acl Ah, ok. This is why With is more useful for injecting into held expressions than Evaluate
@AdamDreaver Yes, precedence
f@x + y
x + y // f
f[x + y] + g@x
x + y // f + g@x
 
Ty you rm -rf
 
acl
@AdamDreaver @rm-rf also attributes, eg
y = 3;
Table[y, {y, 1, 4}]
{y, 1, 4} // Table[y, #] &
etc
Table is HoldAll, but in the second case {y,1,3} evaluates to {3,1,4} before HoldAll gets to it
 
8:55 PM
@acl That's more to do with Function than Table...
For example,
SetAttributes[f, HoldAll]
y = 3;
f@y
y // f
f[#] &@y
y // f[#] &
 
acl
@rm-rf hm, yes I just realized that and am trying to understand why.
guess it gets parsed before evalution
 
Re: this
0
Q: Showing steps Mathematica uses for Resolve[ForAll[...]]

ArtI have a quite complicated function of 2 variables: f[n_, dj_] = (6*(2 - n + dj*(5 + 2*n))*(7 + n + dj*(5 + 2*n))*(-965 + 2*dj^4*(5 + 2*n)^4 + dj^3*(5 + 2*n)^3*(35 + 2*n) - 9*dj^2*(5 + 2*n)^2*(-19 + n + 2*n^2) + dj*(-1 + 2*n)*(5 + 2*n)*(-73 + n*(-26 + 11*n)) - n*(473 + n*(111 + n*...

I don't agree that it's a duplicate. The question is not the most stimulating, but I think it's incorrect to consider it a duplicate of the other one.
 
@acl Yes, the arguments are evaluated first. I realized this only a few months ago
 
acl
@OleksandrR. what do you consider to be the essential difference?
 
May 17 '12 at 4:12, by R.M
ClearAll[f]
SetAttributes[f, HoldFirst]
f[1 + 1]
f[#] &@(1 + 1)
(1 + 1) // f[#] &
(1 + 1)~f~2
 
9:01 PM
@acl the answers to the other question all concern differentiation, which is a completely different problem. Thus I can't see how they can be applicable here.
 
acl
@OleksandrR. OK good point. To be honest, I originally thought the other question was also sort of off-topic (not really off-topic, but the answer really is "no it can't"). We just were excited and lots of people jumped in and wrote all sorts of clever answers.
But as you point out indeed they are specific to differentiation (which in fact wasn't even the point of the question!)
 
@acl not completely sure I agree about it being OT, but as you say, the "answer" is trivial so that these don't constitute particularly good questions
I would probably go for NC (because each instance is unrelated to any other so there is no general answer)
 
I love it when a new user immediately groks the usefulness of closing and removing useless posts:
Post probably useless for the Stack Exchange Community, especially with this title. That does not mean that you have to change the title. It's just that the post should be closed, I think. — andre 6 mins ago
 
acl
@OleksandrR. well, OK you're right, they're not OT. They are well-defined questions, on Mathematica, the actual answer to which is "No.". Then again, "Can Mathematica make coffee" would also be a valid question with this argument :)
 
@acl Also, first day of the site's existence :)
 
9:06 PM
@acl I think it would be a valid question, but not a good one. :)
 
acl
@OleksandrR. a thin line, there :)
@rm-rf oh yes it was
 
@acl It can't? Then what does InstallJava[] do?
 
acl
@rm-rf I have been thinking of what to reply to this since I pressed enter...
 
:)
 
@rm-rf VTC, TL
 
9:13 PM
Thanks, I'll let it sit for a while to accumulate votes...
 
Since the Tom Sawyer meta question it seems more questions of strictly limited usefulness are garnering TL votes. Probably a good thing although I do wonder how much of an effect it will have in the long run since with more 10k (or is it 20k now?) users every day, they will still be visible to a lot of people even when deleted and thus the dilution effect will remain
 
@OleksandrR. they're not actually visible to 10k users unless they have a link to it. So for all practical purposes, that question is hidden away. Within a 30 day period, they can see a link to it in the recently deleted posts in the tools, but not otherwise
Only mods can see deleted posts on user profiles and search with a deleted: 1 operator. I think it's for the best, as otherwise, there'll be a hell lot of clutter
 
@rm-rf When I try to search for question with less than 0 votes, how would I do that?
 
@rm-rf oh, I see. I was only briefly able to see those posts before graduation so I didn't take notice of the criteria for it. Deleted posts being actually deleted is much better, of course.
 
@halirutan That's something that does not exist. You can only search for posts with X votes or more, not less. The way I do it is to sort by votes and jump to the last page and walk backwards :)
@OleksandrR. Since it came up, here's the current tally:
 
9:19 PM
@rm-rf But since we are not able to search for Q older than Y either, my plan was to sort by date ;-)
 
@halirutan I am on the site quite a bit, but in my time zone. I usually look at the chat transcript and then join if I have something to say.
 
Ok, it's huge because of my retina screen
So roughly about 10% of total. Of course, those numbers include self-deleted posts too, but that's more common for answers than questions.
 
@Verbeia Hehe.. You read my msg to JM?
 
Welcome back @J.M. ,,
 
9:21 PM
Not really back fully. He's gone again for a while...
 
@rm-rf so, about 10% of all questions have been deleted so far. Maybe it should be more but that is not too bad overall IMO.
 
@halirutan yes, I saw it in the transcript. Chat is often quiet when I'm around (I live in Australia)
 
@Verbeia I assumed, that many live in different timezones than my own. Although I'm a night-owl and can therefore chat with the US guys/girls sometimes.
 
@OleksandrR. yes, it has decreased (as a % of total posts) these days... it used to be very high when we had an insanely large number of folks with instant delete vote privileges.
 
Incidentally, although I strongly agree with Leonid's sentiment regarding falling average question quality, I also think that the wish to remain indefinitely in an "age of innocence" is not completely realistic. We as a site have now entered adulthood and will have to learn how to deal with it.
 
9:29 PM
Exactly my view as well.
 
@rm-rf I found something. You can specify your search with created:2013-02..2013-03 and can narrow it down to the last month (or whatever you like)
@halirutan Therefore you can specify the date and sort by votes.
 
@halirutan Yes, this is in the new engine. You can read more here:
174
Q: A new search engine for Stack Exchange

Nick CraverAfter the performance problems we have run into with Lucene.NET we've decided to make a change, we're moving the network on to elasticsearch. Here's where to get started: http://stackoverflow.com/search What works: All search operators should be in Many changes below from the old search behav...

 
@rm-rf I found it exactly there ;-)
 
@halirutan btw, it talks about a score operator... hadn't seen that
 
@rm-rf out of interest, how many SO mods are there?
 
9:33 PM
@halirutan Nice!
@OleksandrR. 16
 
@rm-rf Ah, really cool.
 
I read the post when it was posted, but didn't know that they had added new operators in an update
 
@rm-rf okay, thanks. I had been wondering whether they are extremely overworked, which probably is the case given the huge size of SO
 
This would be really cool
@OleksandrR. Yes, very much. On an average day, they get about 500 or so flags. In contrast, in our entire 14 month history, we've had 1.2k flags
 
@rm-rf that's sort of ridiculous, actually. I don't know how they find the time to deal with that sort of workload.
 
9:39 PM
It's a different dynamic – mods only live inside the flag queue, don't have time to answer or edit posts. There is no sense of community; They don't hang around in chat to socialize or discuss stuff, etc. They more or less visit meta only when some hurt fellow posts a rant or some really interesting discussion is happening...
A lot of the flags on SO are easy to handle — i.e., they get so much filth, that just from the snippet shown in the mod panel, it's obvious that it's spam/crap, so they just blast away. On the other hand, they have very complex problems too — strategic downvoting, fraud, heavy sockpuppeting, vote rings, etc. that takes a lot more time to dig through and investigate
 
Sounds like quite an unpleasant job, overall. Going from being an enthusiastic user to someone who is so overwhelmed with crap that they don't have time to participate any more must be a shock.
 
@OleksandrR. It's just unnerving. Been through it (not on SO and by far not so much) and I would never do it again.
I will always stay the small user.
 
@rm-rf I also notice that meta.SO has a rather different content to meta on other sites. It seems to be full of in-jokes and cliquey nonsense that make it hard to see the wood for the trees.
 
@OleksandrR. On the contrary, a lot of them seem to want it, despite knowing fully well what the job entails. I guess if you're a full time software developer, a strong SO cv and moderatorship can be very helpful.
 
@halirutan I was a forum moderator once. I got sick of complaining, unreasonable users and quit the site.
 
9:50 PM
That's a very useful search parameter set.
 
@OleksandrR. meta.so was meant to be the meta site for the trilogy (SO/SF/SU), but then became a network wide meta and SO's support site. There's a lot of talk about cutting down the memes and stuff, but from what I understand, it was a lot worse 3-4 yrs ago (it was basically a meme fest)
 
@rm-rf maybe so. Does SO participation count for anything IRL, do you think? Personally I doubt if someone will be promoted to a management role based on their success at being an SO mod, but maybe things work differently to what I imagine
 
@OleksandrR. Oh yes, it most certainly does; but it varies from tag to tag. If you're active in C#/Java/Javascript/PHP/Ruby/Python/etc., you have a very good chance of getting a good job via careers.so (that's the money maker)
For mathematica/matlab/maple and similar smaller tags, not so much.
 
@OleksandrR. well the developers in our IT department were pretty impressed with my SO/Mma.SE rep... :)
 
Now I just need to find an employer who gives a damn about mma.se rep... preferably someone whose question I didn't close =)
 
9:57 PM
@Verbeia it's certainly impressive given that you're not actually in IT and have other rather important duties to attend to. :) But you have to admit, your SO/SE rep is not going to be considered an important qualification in your line of work, as I suppose is the case for most of us on this site... it's just a hobby. I was wondering if it goes further than that if you are actually working in an IT-related field, and apparently it does...
 
@OleksandrR. you're quite right the SE network rep has no bearing on my actual career. Actually someone has re-proposed Economics on Area 51, and I think it will fail again.
 
@Verbeia it seems to me that people who have something to say about economics usually just set up their own blog. That leaves those who have silly questions to ask and those who can't tell an economic question from a political one
 
before I roll my own, are there built-in ways to do option value type checking?
 
@rm-rf "type"?
 
specific pattern. i.e., MatchQ[value, type] gives true
 
10:05 PM
@OleksandrR. exactly! I would never have wasted my time in the old Econ.SE site. Also, the subject just doesn't lend itself to SE style QA. There are so many people peddling obviously wrong stuff, but an amateur or an "Austrian school" type might accept that crazy answer anyway.
 
hi. wondering if anyone might offer some suggestions on a question I asked previously mathematica.stackexchange.com/questions/21927/… ? had thought that the offered duplicate question might help but since I have a Power in my expressions FullForm sadly won't work.
 
@rm-rf I suppose in the old style using ReplaceAll this was sort of automatic. I don't know if there's any alternative available with the post-6 methods.
 
it can be a little frustrating, sometimes feels like you have to hand-hold Mma through each step
 
@Verbeia I think in economics, more than in any other academic discipline AFAIK, there are so many opposed schools of thought with mutually contradictory views (most of which are also constantly at each other's throats) that trying for a single "correct" answer is more or less impossible... almost everything is subjective if you don't limit your scope to one particular school. The same problem seems to have arisen on Islam.SE, actually
 
@OleksandrR. This is what I use right now (basic):
ClearAll@validOptionsQ
validOptionsQ[func_Symbol, opts_, patt_] :=
 With[{o = FilterRules[opts, Options[func]]},
  If[o =!= opts, False,  And @@ (MatchQ[#2, #1] & @@@ (opts /. patt))]]
And to test:
ClearAll@f
Options[f] = {"a" -> 1, "b" -> 2};
validOptionsQ[f, {"a" -> 2, "b" -> a}, {"a" -> _Integer, "b" -> _?NumericQ}]
validOptionsQ[f, {"a" -> 2, "b" -> Pi}, {"a" -> _Integer, "b" -> _?NumericQ}]
 
10:14 PM
@Verbeia I suppose an alternative might be, per Skeptics.SE, to require that every answer contains citations to the literature
 
Anyone have a better way?
 
@bsdz So you are still struggling with the replacement?
 
@halirutan yes. it's tricky as really want to transform a FullForm from Power[x,Times[11,Power[y,z]]] to Power[r, Power[y, Plus[-1, z]]]; where one is taking a factor out of y^z as y*y^(z-1). would be great to automate this stuff.
 
@halirutan @bsdz The solutions on the dupe don't seem to be directly applicable in this case. I'll reopen it, but please rephrase the question to 1) Not ask about structural manipulations (you most definitely need a mathematical approach here) and 2) mention that the solutions in the other question don't work
 
@rm-rf don't know if it's better or not, but:
validOptionsQ[func_Symbol, opts_, patt_] :=
 Cases[FilterRules[opts, Options[func]], patt, {0}] === {opts}
?
 
10:25 PM
@rm-rf I have this functionality implemented in the past, in packages CheckOptions and PackageOptionChecks - although I am not sure that what I did is what you are after. Basically, they auto-generate new function definitions, by parsing function's signatures
 
@rm-rf ok will do
 
@rm-rf @badz I just put a comment with an answer.
 
@rm-rf The packages are here
 
@MichaelE2 It's open now, if you want to flesh it out into a full answer
 
@bsdz But this transformation is not correct in general.
You have seen, that writing down what you said works in this case, yes?
x^(11*y^z) - 1 /. {Power[x, Times[11, Power[y, z]]] ->
   Power[r, Power[y, Plus[-1, z]]]}
 
10:29 PM
@OleksandrR. Nice, but it gives False when you don't pass all the options
@LeonidShifrin Let me download it and look through now...
 
@halirutan no hadn't tried that. didn't realise i can use fullform expressions as transforms. I'm not sure that would work tbh.
 
@bsdz Yes, this is always the first thing to do!
When a replacement does not match, then look at the FullForm if possible
 
@rm-rf true. I wasn't sure if that was part of what you wanted.
 
@halirutan actually that's not what I want to do, that's replacing the whole lhs with a rhs. I was showing the fullforms not of the LHSs I wanted to transform but the expression before and the expression after.
 
@OleksandrR. yeah, basically this tacks on in a function definition as f[x_, o: OptionsPattern[]] /; validOptionsQ[f, o, patt] := ...
 
10:32 PM
@rm-rf okay. I was mainly confused because passing irrelevant options isn't necessarily an error in this situation but you exclude these in your check
 
@bsdz Can you rephrase this or give an example? You don't want to replace e.g. x literally but rather something which is at the place where x is?
 
@rm-rf Look at the accompanying example notebook for PackageOptionChecks, it has some examples
 
@OleksandrR. Yes, I like how Plot warns about invalid options, but some others (I don't remember which) quietly ignore invalid options
 
@halirutan sure. I want to do this x^(11 *y^z) - 1 /. { x^(11*y) -> r } and have Mma return r^(y^(z - 1)) - 1; I think @rm-f might have provided a solution although not sure if that would work on the other expressions I need to apply the same transform too.
 
@rm-rf A section "Changing option-protecting information from outside of the package" in that notebook contains a minimal stand-alone example of how to option-protect a single function. But OptionsPattern[] is not currently supported, only ___?OptionQ. Adding that support shouldn't be hard though.
 
10:40 PM
@bsdz Michael gives a possible solution in the comment. As you see, you have to provide assumptions to the variables because (as I said) this transformation is not true in general.
@halirutan Furthermore, please note that this is not just a simple replacement. You need Simplify to get your z-1 expression. In more complex situations this might not work.
 
@halirutan yes. looks like might work still testing it. thanks for your help.
 
@bsdz No problem. You're welcome.
@bsdz Btw and since you are new: You did it perfectly well. Even when your question was closed as dup come to chat ask nicely for help and show that you made some efforts to find a solution. Anyone is willing to help you then.
 
@LeonidShifrin Yes, that package looks like it does what I intended. I'll probably go with my little function above (a modified version of it) since it's short and works well (and is internal to a package, not for general use), but I got a few good ideas from how you implemented it, which I will steal :)
Thanks!
 
@rm-rf No problem :-) That package represents my skill set 5 years ago though, so it's probably not how I would have done it today.
 
acl
10:59 PM
@bsdz automating it with structural operations will be painful if at all possible (at least if you want something generic)
 
@acl indeed but avoids all sorts of human errors that can come back and bite you later :)
 
acl
@bsdz of course it's desirable, but I at least find that trying to predict how the FullForm looks (for general mathematical expressions) is difficult.
but I'm not used to doing this kind of thing in mathematica, so maybe there are robust ways of doing this
apparently this is the lowest-voted question here! ha
 
@acl but not the worst...
 
acl
@OleksandrR. nowhere near the worst
look at this
oh this was fast...
hm, now I'd like to see the deleted questions... must be some real gems there
 
hhh
I have forgot how functions work in Mathematica and I cannot understand the help, how should I read it?
I cannot see where to put the name of the function
 
11:10 PM
@OleksandrR. Not the worst by a wide margin... I'm sure he got dinged for his comment: "Put some values for r and alpha in my original post and you will get the idea, that's basic math." when asked to make an MWE for his indecipherable question.
 
hhh
"Function is analogous to $\lambda$ in Lisp or Formal Logic"?
 
@acl psst... you have 10k+, and it comes with some privileges ;)
 
hhh
Suppose statement such as $(\lambda x y . (x y +)) (3) (2)$, now with beta-reduction -- I get 3+2=5 -- is this what the docs mean by function?
 
acl
@rm-rf but can I search for them? apparently not... probably for the best, I'd waste hours laughing at them
 
@acl no, I was hinting that you could delete them ;)
 
acl
11:12 PM
@rm-rf he, yes
 
@acl here's one on acid, another gem here (although, these fall in the Lena category than truly funny)
 
acl
@rm-rf ha
 
@acl I have difficulty deciding whether the one with the OP asking why his keygenned kernel didn't work is the worst, or if the award should be given to one of the several questions where the OP presents some unintelligible problem statement and expects all the work to be done for them
 
acl
@OleksandrR. I think there are other candidates too
@rm-rf LSD is bad...
@rm-rf LOL
 
@rm-rf this OP seems to have eaten too many blanched almonds
 
11:17 PM
@rm-rf The Q which is on acid is nothing compared to the guy who asked it...
 
@acl Well, there was one that was basically: "I'm new to mma and was asked to make a complex simulation on the dynamics of interaction between organizations. Here are my parameters, how do I do it?"
 
@halirutan I can't see the user's name on this question. Was the user deleted? Because we have a current user of the same name...
 
@OleksandrR. You can't see it because the trick I showed you doesn't allow you to see it... just the contents.
 
@rm-rf Why can I see it?
 
@halirutan because you have 10k
At 10k you can see all deleted posts if you have a link to it (you just can't search for it)
 
11:23 PM
@rm-rf oh, so I can see the user's name on the other question only because they edited it themselves, then, and so their name shows up in the revision history?
 
@OleksandrR. possibly (most likely explanation)
Yes, I checked. That's why
 
@OleksandrR. When you found a user whose name matches the one on the bottom of the strange site, it's the same user ;-)
 
@halirutan yes, I gathered. :)
 
@OleksandrR. I checked, impossible to upvote you to 10k tonight.
Sorry.
 
@halirutan haha :D I should probably post more answers. But I can see the deleted questions, just not the usernames
 
11:28 PM
thanks, but this is in MATLAB , I want any equation — lana Mar 15 at 14:14
@halirutan @acl If you're having fun with some of the low voted & closed posts, please also vote to delete after you've had a laugh :)
 
@rm-rf I will.
 
acl
@rm-rf haha
 
@halirutan I'm still unsure which page of the site is the most mystifying.
 
@OleksandrR. It's like an accident.. you shouldn't, but just cannot look away, right?
 
acl
@OleksandrR. @halirutan OK, which site?
 
11:41 PM
@OleksandrR. Can you repost the link. I closed the tab already and switched back to real porn ;-)
 
please don't post it again though... as much as their questions here are fun, and their personal site is googleable , it's not fair to them to post it publicly for laughs, especially when they did not make it public here.
 
acl
@rm-rf oh I see; @halirutan don't bother (@rm-rf is right)
OK backtracing, I can see what you're talking about...
 
@halirutan advantage of Opera: can re-open closed windows easily. :)
 
@OleksandrR. Well, @halirutan lives inside the porn mode of Chrome and no browser supports reopen in private browsing mode ;)
 
@rm-rf ah, okay. Yes, true. I only visit Facebook and Youtube in porn mode
 
11:55 PM
@rm-rf further on options: say you have functions f and g that share many options but might have different defaults. You wish to call g inside f, but in this case the default options for g should be overridden by the defaults for f. Can you think of a better way to do that than to give all the options for g explicitly in the call using OptionValue[f, opt]?
Problem is that FilterRules only filters rules given explicitly, not as defaults for a function. OptionValue invokes "magic" to unify explicit options with defaults, but one can only extract individual option values that way, not a complete list of options
 

« first day (430 days earlier)      last day (4044 days later) »