« first day (165 days earlier)      last day (4316 days later) » 
00:00 - 20:0020:00 - 00:00

12:46 AM
@Szabolcs As I said, I have some but I'll let people with graphics stuff go first. :)
 
1:04 AM
@SjoerdCdeVries I don't consider it a "pass"; more of "neck-and-neck". If I get a 200-rep buffer, then that would be a "pass"... ;)
 
R.M
@JM In other words, if one person cannot influence the rankings without tripping the script, then you're "ahead" :)
 
Precisely. :)
 
R.M
btw, what happened to Jin... I've never been more anxious to hear something from an SE employee :P
 
You can't rush art, my good man. ;)
(I'd be worried if there's still nothing from him in two weeks...)
 
1:20 AM
@RM I must admit, I had thought that the "I'll work on it over the weekend and hopefully show you something early next week" was very optimistic. It'd take me several weeks (at least) to do a design. True, I'm not a graphic designer or an artistic person in general, but still, I'd hardly blame Jin if it takes him longer than a couple of days.
 
Indeed.
Making things look "just so" takes some effort.
 
R.M
@OleksandrR Heh, I know... I used to do semi-serious graphic design 7-8 years ago, and I can fully relate. This was more the words of an impatient end-user...
I don't have to be rational when on the other side, dammit! :P
2
 
I wonder how much of commissioned art in the old days also had impatient patrons... :)
 
R.M
1:45 AM
@all: We could consider having something like this:
29
Q: Welcome to TeX.SX!

Martin ScharrerWelcome to TeX.SX, the free, community driven Questions and Answers site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Here is some information to help you get started and to make your work with this site a pleasant experience for you and all other users. This site is for ...

 
@OleksandrR I'm not worried - it gives us a bit more notice to do last-minute tidying, not to mention have a few more people over certain rep thresholds.
 
R.M
Also, re: the standard comment templates (I think it was @Verbeia's post), something like this (but modified for our use):
54
Q: Text building blocks

CaramdirThere are some replies that are used quite often. For example, the first reply to many questions is a demand for a minimal example. These replies should typically include a link with additional information. So I thought that it might be useful to collect some standard replies for quick copy&p...

 
@RM it looks like the TeX guys have really thought about their site a lot and made a big effort to have everything formally put in place. We could do a lot worse than emulating them.
2
 
2:08 AM
@OleksandrR Actually, they were very useful in getting this site up and running in the first place; they broke away first despite being a "programming" language. We have a lot to thank them for. Emulating them would be a good step in doing just that as it implies they're doing it right and we have something to learn from them.
 
R.M
2:21 AM
@rcollyer They too went through the same issues (1 and 2, among others)
 
2:52 AM
@RM I'm aware of those questions, and yes the same issues: where do they fit. They're not like us ... yet they are ... but some of their topics obviously don't belong here ... but they don't belong anywhere else either ... I know: ban them outright!
 
 
3 hours later…
5:27 AM
No one's around, so...
Graphics3D[Nest[Function[g3d, (Flatten[Cases[g3d, _Cuboid, Infinity]] /. {x_?NumericQ, y_?NumericQ, z_?NumericQ} :> {x, y, z}/3 - #) & /@ Select[Tuples[2 {-1, 0, 1}/3, {3}], (Count[#, 0] < 2) &]], {Cuboid[{-1, -1, -1}, {1, 1, 1}]}, 4], Boxed -> False]
 
6:07 AM
I think we should find room for this deleted question in our community, even if it is here in this chat room:
If that device really delivers what it promises it will be revolutionary and it could only help the community to be a part of that.
 
6:45 AM
@JM That looks familiar
@MrWizard That looks spiffy. I wonder if it's possible to use is as a controller in Mathematica.
 
7:02 AM
@Heike I think as CHM suggests we should make sure it does. It would be even better if we can have a nice Mathematica app/demonstration at launch time, again assuming this is not vaporware.
This answer needs more attention IMHO:
9
A: ShowLegend values

JensThis question needs two parts to be answered fully: How to extract the range of height values from a ListDensityPlot How to get a legend, because ShowLegend has many problems: e.g., the numerical labels on the color bar are cut off, and it's just plain ugly. So I'll address both points here. ...

@Heike would you please select and post (links) here three answers, your own or otherwise, that you think have not received the attention/votes they deserve?
 
@MrWizard I'll have a look.
 
7:18 AM
@Heike Thanks.
 
@MrWizard On the website it says they won't ship until December 2012/January 2013. I wonder if we can get our hands on their SDK before that.
 
"To tap into the wide range of possible applications, Leap plans to send out over 10,000 early units to developers, starting later this month — along with an SDK that allows programming in Java, C#, C++, and Python for starters. The full consumer release is scheduled to follow around the end of the year or early 2013, with pre-orders taken now for $70 each." (source)
 
@MrWizard Hmm, interesting. Has anyone here signed up for that already?
 
I don't know. That's the point of CHM's (deleted) question. I'm in favor of undeleting it; what do you think?
 
I'm probably not fluent enough in either of those languages to qualify.
@MrWizard It should be visible somewhere but I don't know if meta is the right place.
 
7:24 AM
@Heike Me neither, but I'm sure somebody around here is.
 
@MrWizard Leonid seems to know his way around Java.
 
@Heike Do you think it is a bad example to have it on Meta until we figure out what that place is?
 
@MrWizard I don't think it would do much harm on Meta. Will we have an news/announcement section in our blog? If so we could put it there.
 
@Heike I need to talk to Szabolcs about the blog. I know very little at this time.
 
@RM I think it's a good idea. Why don't you go ahead and start a post? (We can make a copy of the TeX.SE one, slim it down a bit and edit it to be appropiate for this site)
 
7:36 AM
Speaking of... hello Szabolcs. :-)
 
Hi @MrW, I need to leave now unfortunately (people are waiting and compaining...), but just send me an email with your desired blog e-mail address (hidden) and username (visible, but you can change the display name)
 
@MrWizard "That what is deleted by an author should not be whimsically be undeleted by a mod"
 
@SjoerdCdeVries It seems to me he was pressured into deleting it, at least to a degree. Does that not change things a bit?
 
If you equalize "stating an opinion that said question is not meta stuff" to pressuring, yes, then he was pressured.
 
@SjoerdCdeVries Okay, let me try it this way: could you be convinced to change your opinion temporarily until a better place is found for the post? :-)
 
7:50 AM
@mr.wizard I'm quite enthusiastic about this device. Still I think rm was right, be it a bit harsh perhaps.
We can not bend the rules for our own convenience if we want others to be held by them.
 
@SjoerdCdeVries I respect that position, but I also think the rules are made for the benefit of the community, and in this case I wonder if the community would not benefit more from being involved in this (again, assuming it's not a scam or something; I'm honestly a bit skeptical still.)
Anyway, I won't take action in opposition of either you or CHM so it will remain deleted.
 
@MrWizard I'm sure you would be able to morph this into an answerable question. Wouldn't that be the preferred way of doing this?
There must be other ways
 
 
1 hour later…
9:17 AM
@MrWizard I guess the +11 vote for R.M's answer to this Meta question shows that the community thinks you shouldn't be lobbying for votes.
3
Q: Why do excellent answers languish with few votes and what can be done to combat it?

Mr.WizardRepeatedly I have seen good answers, some very good, receive next to no recognition. Sometimes this can be explained by the answer being of such an esoteric nature that few are interested or qualified enough to vote. Other times there is no reasonable explanation that I can see. Take for examp...

 
9:45 AM
@SjoerdCdeVries Are you saying you don't think I should bring up other people's answers that I think deserve another look?
A few times I've referenced my own answers that have low votes, but IIRC it's always in the form of a question because I legitimately want to know if there is a reason for the low vote count.
 
10:21 AM
@MrWizard R.M's answer states "...the problem that I see with actively soliciting for votes like you do (for self or for others)..."
I suggest that you add to the discussion over there if you don't agree with that statement.
 
Hm... okay. I'll have to think about this. I really think some good questions/answers get overlooked; I know I miss some, and I would appreciate being directed to them myself.
 
@mr.wizard That's true, but the argument is that who are we that we decide which questions deserve more attention?. Perhaps a button with a voting system, like the close button, could be used to get a question extra attention? When it reaches 5 votes it will be on the 'featured' page for a day or so?
But that wouldn't help for late answers...
Let's say that for every 1000 rep you get a 'featured' vote, to be used on someone else's answer?
Another mechanism that would help is some way to track new answers to questions you already visited. I don't have time to get back to any question I ever visited, and I don't use the 'active' tab that much, as it is quite distracting. Perhaps you should be able to subscribe to a question and get warned if new answers are added.
 
11:11 AM
@SjoerdCdeVries Interesting suggestions. I was thinking more along the lines of a personal blog listing posts I find of interest. Re: "Perhaps you should be able to subscribe to a question and get warned if new answers are added." Isn't that what the Favorite feature does?
 
11:31 AM
@MrWizard With the favorite feature you don't get a new post notification, do you? It's just a passive list of questions you like.
 
12:23 PM
@SjoerdCdeVries Sorry, I missed your notification. Favorites does show you the questions that have had activity since you last viewed your Favorites list.
 
@MrWizard OK, I stand corrected. I guess I never noticed.
 
12:46 PM
I just find it funny myself. If the site had a level of activity comparable to math.SE or, heaven forbid, SO, then I can excuse the possibility that there are indeed answers that are possibly not getting read by their intended audiences.
Here, however, the activity is relatively modest, so I would assume that if it wasn't voted on, then that's because it was read and found wanting; and since people don't have to explain why they like/don't like a post, there's the rub.
 
@JM I think I probably spend as much time on this site as anyone, yet I keep finding answers if not whole questions that I have missed.
 
I'm guessing you don't look at timestamps much. :)
 
@JM Pardon, what?
 
1:06 PM
@MrWizard I'm guessing you don't go by "x hours ago" in choosing what to read upon opening the front page. :)
 
@JM My normal view is /questions?sort=active and I try to keep up but clearly I don't. Which view are you referring to?
 
I just use the front page, sorted by "active". What I'm talking about is that usually I have a good idea of which stuff I haven't read, just by looking at the time they were posted, since I know around what time I went away from the keyboard.
Probably the only time I've missed questions was during my long breaks, but I believe I've wiped my backlog from that (as well as spreading my votes over old answers over two weeks).
 
1:22 PM
I guess you're just faster at it than I am. Either that or you really need to get outside more. ;-)
 
If you just pick out, say, the first ten items in "active" without regard for timestamps, then you'd certainly miss some things.
@MrWizard I'm away for many hours at a time. :) I just mentally bookmark my on and off times. ;)
So when I see it was updated "three hours ago", and I know I left the computer six or so hours ago, then yes, I should be looking at it...
Also, I've found that stuff posted over the weekend tend to get missed. Why? Don't answer that... ;P
 
Okay, I'm out of here. Have a nice day.
 
See ya. :)
 
1:38 PM
bye
@J.M I guess I'm skipping probably like 1/3 of the questions that don't have very interesting titles and a sufficient (whatever that may be) answer count. Life is short and I already spend too many hours/day here. Main problem is that questions are not nicely distributed. When I wake up there's usually a whole string of them (answered and all).
 
@SjoerdCdeVries I thought as much. :) Supposedly, "don't judge a book by its cover", but we only have so much time.
And yes, sometimes, neat questions get asked at most inopportune times.
 
acl
@SjoerdCdeVries @MrWizard I agree with RM's post. I don't think it is up to moderator X, or people chosen by them, or other people, to draw attention to answers they think are underappreciated.
There's the bounty system, with which you can reward answers you think are worthy.
But otherwise no, I don't think anybody should solicit votes or anything for those questions, for the reasons RM said (and others)
 
1:58 PM
I've never felt comfortable about "answer-whoring" myself...
 
@JM Well to defend mr.wiz here, he doesn't do it for himself, and is genuinely worried that good stuff will remain invisible.
 
@SjoerdCdeVries Sure, I can see the good intention. But I've always thought good answers should stand on their own, and we shouldn't have to influence other people's viewing habits.
 
acl
2:17 PM
@SjoerdCdeVries Just to be clear, nobody's accusing him of trying to get votes for himself.
 
R.M
@JM I'm curious — is your avatar's shape that of the knife's cutting path for the bagel question?
 
@RM Nope, I plotted out the space curve corresponding to the knife's path, and it isn't a trefoil. A 4-foil, maybe...
 
R.M
Could you post a picture of the path?
(or code)
 
(or both)
 
@RM I'll do both, but I'm rendering something at the moment. You'll have to wait for a bit.
 
R.M
2:26 PM
sure, no problem :)
 
@JM How much time do you spend rendering?
You seem to do quite a bit of it.
 
@rcollyer Depends on the picture.
 
I understand that, I meant as a total time, not per picture.
 
The trefoil in my Gravatar took 40 minutes, since I'm just working from a netbook... :)
 
I usually give up after 5. Even my most involved things, don't take that long.
 
2:28 PM
@rcollyer I suppose about ten to twelve hours on the average, though I always leave my computer rendering something while I'm sleeping...
 
R.M
I'm buying a pimped up laptop soon... Can't wait to try out some crazy graphics crunching and Yu-Sung's CUDA examples
 
@RM I wish I had more things to use that for.
 
@RM CUDA alone is something to drool for...
 
@JM I did that a couple of times with some simulated annealing code I was running which was failing to converge to anything useful, but I digress ...
 
@rcollyer Maybe your function was too wiggly, too steep, or both. ;)
 
R.M
2:30 PM
My current laptop (late 2008 model) has CUDA support... later MBPs didn't have it, until the new one. The downside is that it's low on processing power and memory, so I can run those examples if I set ImageSize -> 50 or maaaybe 100. It's like the goodness of CUDA in a postage stamp
 
(Unless you were using annealing for something other than function optimization.)
 
@JM or just to damned difficult. There were multiple minima that it could find. So, I turned to an alternative. I'd still like to figure out a different way to do the fitting.
@RM my 2010 model has it, but that was the last of them for a while.
 
@rcollyer When in doubt, change basis sets... :D :P
 
@JM I was effectively using that basis set, but I just had the Hamiltonian and the band structure I wanted to fit it to. At issue, a number of bands only incorporate part of the d-orbitals, so the question is how do I fit the eigenvalues to that? Using the Wannier basis, though, is a complete change in method, and starts from the orbitals, themselves, and not a Hamiltonian.
 
Hmm, I was wrong; it seems the knife's path for the bagel slicing isn't even a knot.
 
2:41 PM
Knot good. :P
 
You can try it yourself; try plotting {Sin[u] (2 + Cos[u + v]), Cos[u] (2 + Cos[u + v]), Sin[u + v]} /. v-> 0. (using Heike's parametric equation)
(BTW, for comparison purposes, the Menger sponge picture I posted a few hours ago took seven minutes to render.)
 
3:14 PM
@rcollyer my preference in difficult cases is for differential evolution. It is quite computationally expensive (due to a large number of function evaluations), but probably not more so than simulated annealing.
 
@OleksandrR Is there even a Monte Carlo method that doesn't require a lot of function evaluations? ;)
 
@JM well, Nelder-Mead is pretty good I would say. But it tends to get stuck in local minima.
 
(But yeah, differential evolution is nice. The algorithm looks somewhat simpler too.)
@OleksandrR Oh, I don't consider downhill simplex as intrinsically stochastic... ;)
 
@JM okay, fair enough. In practice you usually have to restart it multiple times from random initial positions if you want a good result, but it doesn't have to be done that way. If you don't, then I agree.
 
The way Mathematica uses it, it's "pick a bunch of random starting points, build starting simplices from those random points, and have downhill simplex at them."
@OleksandrR Well, trying different initial conditions is what one would do even if you were using, say, quasi-Newton...
 
3:23 PM
@JM yes, that's the same way I did it in my compiled version. I don't exclude the possibility of wrapping my Nelder-Mead core in a restarting function that looks for a sufficient decrease though.
 
does anyone here know a good resource for learning about Monte Carlo methods?
 
@Heike In general, or for some specific purpose (optimization, cubature, etc.)?
 
Aolooo
 
@JM I'm not sure to be honest. I spoke to someone recently who was solving convective flows using Monte Carlo methods.
So I guess numerical integration.
 
@Heike PDEs, then.
 
3:28 PM
@Rojo Hi
@JM Definitely PDEs.
 
Last I checked, people were becoming biased towards quasi-MC instead of true MC for PDEs.
Most especially the financial types ("quants", they call themselves).
 
I wasn't sure if he solved the PDEs using Monte Carlo, or just used it for tracking particles.
 
Both look plausible...
 
Hi @Heike
Preoccupied on a Sunday?
 
@Rojo I'm always preoccupied.
 
3:43 PM
"If I'm awake, I'm preoccupied." :)
 
And vice versa.
 
acl
4:08 PM
@Heike could you briefly describe what you want to do with it? (so I can work out if my suggestions apply)
 
FWIW: there's a fair amount of "solving PDEs with Monte Carlo" articles where the usual example is Black-Scholes... :D
 
@acl I just want to understand how one would use this method on PDEs. I don't know anything about MC, so I'm basically looking for an introduction.
@JM Isn't Black-Scholes a stochastic version of the heat equation?
 
@Heike Yes. Yes, it is.
(Sorry I can't help for now; I didn't look much at PDEs when I was dealing with Monte Carlo. I'll ping you if I find something nice in my ref lists...)
 
@JM Thanks
 
Guys, anyone knows how to get the NotebookObject of a notebook's stylesheet?
 
4:30 PM
@Rojo, You mean? Cell[StyleData["Notebook"]]
 
@jmlopez, no
@jmlopez, I mean, just like EvaluationNotebook[] gives you the notebook object of the notebook that started the evaluation
 
oh... So, what happens when you try to set something like: ` Background->CurrentValue[{TaggingRules, "myGreen"}]`?
There I'm not refering to the EvaluationNotebook[] and it works in my case.
@Rojo, forgot to include your name on my last posts.
 
@jmlopez, what happens there is
that in the stylesheet notebook, it will refer to the stylesheet notebook's tagging rules
but in the notebook using the stylesheet, it will refer to that notebook's tagging rules
 
@Rojo Something like Options[Notebooks[][[2]], StyleDefinitions] ?
 
@Heike, I want to access the tagging rules of the external stylesheet from where a notebook gets its style definitions
so I think I need CurrentValue[thatnotebook, {TaggingRules...}]
 
4:37 PM
Any of you guys want to take a crack at formatting this?
 
Anyway, @jmlopez, you're right, it's probably not necessary, but I just got caught in doing it that way
 
@JM, funny...
 
@JM Eeks. I think I might need some crack before editing that.
 
@JM I will . Nobody touch it!
 
@jmlopez if you added the TaggingRules like you suggested, it should work as you said it works for you. So now I'll focus on your last issue, hehe, which is that error message, right?
 
4:39 PM
@belisarius going for the copy editor badge?
 
@Heike Nahhh just philanthropist
 
@Rojo, yup!, that's the last thing to have a complete answer. I already accepted it since it works but it would be nice to have it work without the ugly error message.
 
@belisarius is that the same as masochistic?
 
@Heike That's what I thought, too. :)
 
@jmlopez, that error message appears because the stylesheet notebook wants to format itself according to the style it represents
 
4:40 PM
@Heike almost, but not quite completely unlike etc
 
but the color is not a tagging rule of thaat notebook
so it doesn't konw what color to format it in. If it bothers you, just
run in the stylesheet a cell like this
CurrentValue[EvaluationNotebook[], {TaggingRules, ....}]=the color
once
or edit the stylesheet's tagging rules in the option inspector
 
@Heike That's the knight in sour armor mentality... ;)
 
@JM Ha, I'm not fooled by your tvtropes link.
 
@Heike I know, it wasn't for you. ;) I put it up in case people don't get the reference...
 
@Rojo, wait, so, the taggin rules that I'm defining in Cell[StyleData["Notebook"]] are for the notebook in which I'm putting my content, not the stylesheet. Oh, so that's why you want to be able to refer to the notebook which uses the stylesheet.
 
4:48 PM
@JM Looks like RHall already edited the post
 
@jmlopez, that's right, but it's not too necessary. I just got interested
 
@Rojo, oh no, it is very necessary! lol, I don't want to see those dumb messages and I do not want to be evaluating anything in the stylesheet notebook.
 
I imagine you'll only see those messages when you convert the stylesheet's cell back and from cell expression.
It's an error message saying it doesn't know how to format the cell IN the stylesheet notebook
which only matters if it's open I guess
Are you seing that error somewhere else? @jmlopez?
 
@Rojo, yeah, you only see those messages when you go back and from cell expression.
I do not see it anywhere else.
 
So it shouldn't bother at all, or you could patch it as I explained before
Perhaps a very weird alternative would be to try to make the stylesheet notebook also define its own style
 
4:53 PM
could be, but, sigh*, well, I guess I'll put a simple example just to show how it works.
Or would you put it up in your answer, show how to add the taggin rules
and define two styles, one with red background and one with green.
but you get the colors from the taggin rules of the notebook.
I guess we just need to point out these error messages.
@Rojo...
 
@jmlopez, wait, I'll give it a shot to this last weird idea
 
acl
@Heike then I don't have any references to offer (PDEs, or SDEs, though?)
 
@jmlopez, I'm gonna press enter. Pray my FE survives
 
@Rojo, crossing fingers!
 
acl
@Rojo we're all waiting here with bated breath...
 
4:59 PM
Kinda works! but you should try and let me know
Do this
Open your custom stylesheet
Go to Format->Edit stylesheet, to edit the styles of your stylesheet, hehe
 
@acl Thanks anyway. I'm pretty sure they're PDEs unless there are some stochastic processes involved I'm not aware off.
 
Prepend a cell, copypasting the only one you have there inheriting from privatestylesheetformatting.nb, but changing that stylesheet to the name of your very same custom stylesheet
 
Question, is it possible to set Accuracy of calculations globally ? I am optimizing the equation that has Exp[] & Sin[] in it, and I want all my calculations to have 120 to 200 digits after the decimal point
 
@jmlopez
@acl, haha, you can release your breath now, don't die on me
 
@Rojo, hmm.. Let me try it, I was using a default notebook and not a custom stylesheet.
 
5:04 PM
@newprint SetOptions[]?
 
@jmlopez, the option that surely works is to use a third stylesheet to only store the Cell[StyleData[Notebook], TaggingRules... stuff, and then make both the stylesheet and the stylesheet's style inherit that
thus storing your "parameters" in a totally different file
Seems neat
 
@Rojo, actually, that does look really neat.
 
@JM If I am reading the doc correctly, this sets options per object
 
That way you can create your own theme.
 
@jmlopez, that's right
 
5:07 PM
@Rojo, perfect, I will set it up that way for my package.
 
@JM Mathematica has $MinPrecision, & $MaxPrecision
 
No more going into each cell changing the colors.
 
@jmlopez, as a I con, I think that you can't avoid overriting the TaggingRules of all previous stylesheets you're inheriting from. but the defaults don't have any...
Just remember that for the future
 
@newprint Well, if you're just doing a few optimizations...
 
That's not a con of "this method", but of all of them
 
5:08 PM
@Rojo, yes, I've dealt with the tagging rules last year that I made a function to list them all first, edit them and then storing them again.
Anyway, cool, I think you should write this method in your answer.
Having two styles sheets, one for the theme colors (Definitions) and the other one where you have your structure...
 
Ok, let's write that
 
@newprint basically, no. Precision is primary in Mathematica, not Accuracy.
 
I understand that Precision & Accuracy are two different things
it strange why it would not let you control Accuracy same way as precision
 
@jmlopez, I edited my answer, but haven't tried the method. Hope it works :P
Care to test?
 
@Rojo, will do it right now, I'll report after test.
 
5:17 PM
@newprint well, it uses floating-point numbers internally, not fixed point.
 
@jmlopez, btw, what's your package about?
 
@Rojo, its the applicationMaker I made a year ago. I want to be able to create packages with documentation, so I want to make stylesheets to make it easy to create them. Also, i want to add some libraries to make the writing of MathLink programs easy... :)
a little too ambitious but it is certainly possible with Mathematica.
 
5:31 PM
@Rojo How did you and @WReach manage to simultaneously post and delete the same answer?
 
@Heike, it was too funny
@I posted it when no answer was there, and then both appeared
I deleted mine instantly
then commented on him
and couldn't comment because his answer was deleted
I wrote a comment on RM's answer
then I wanted to write a comment there asking WReach or others to undelete his answer, and I couldn't because RM had deleted his
 
R.M
Well, I think this is the first community undeletion of an answer :)
 
@RM I would have voted to undelete one of the answers but couldn't decide which one since both had the exact same timestamp.
 
@Heike, but he made TraceView
that's all that matters
and my answer was lazier
This however reminds me of an old answer where I got robbed, haha
 
@Rojo ?
 
5:38 PM
@JM, let me see if I can find it
 
R.M
@JM he got robbed... he doesn't have it anymore
 
Haha
Here it is
19
A: Sequentially numbering a nested list

Yu-Sung ChangI am pretty sure that it is not the best solution but how about this? numbering[x_] := Block[{n = 0}, Replace[x, y_ :> {++n, y}, {-1}]] Some example outputs: In[1]:= numbering[{a, b, {c, d}, e, {f, {g, h}}}] Out[1]= {{1, a}, {2, b}, {{3, c}, {4, d}}, {5, e}, {{6, f}, {{7, g}, {8, h}}}} I...

 
@RM That's the definition, yes. :)
 
@Rojo That wasn't even a close call.
 
@Heike, even yu-sung commented on my answer at the bottom, saying it was the exact same thing
Haha
 
5:49 PM
@Rojo, when you said: "but inheriting from "myStyleParameters.nb"" Cell[StyleData["myStyleParameters.nb"] did you mean Cell[StyleData[StyleDefinitions -> "myStyleParameters.nb"]]?
 
@jmlopez, yes, sorry
 
@Rojo, that's fine, I like the idea very much, but I can't fully make it work.
 
Hum
Ok, let me test it
 
@Rojo, the problem is, well, it works in the sense that it changed the color, but the stylesheet doesn't know about the tagging rules...
@Rojo, so, lets see if we are talking about the same thing. First I created a plain notebook where I will define my tagging rules. I can do this from any notebook with this: `CreateDocument[{
Cell[StyleData[StyleDefinitions -> "Core.nb"]],
Cell[StyleData["Notebook"],
TaggingRules -> {"color" -> GrayLevel[0.5], "height" -> 222}]
}, StyleDefinitions -> "StylesheetFormatting.nb", Editable -> True,
Saveable -> True]`
Then I saved this file in $UserBaseDirectory/SystemFiles/FrontEnd/Stylesheets
 
@jmlopez I just made a minimalistic test
 
5:55 PM
After that we execute this: MathLink`CallFrontEnd[FrontEnd`ResetMenusPacket[{Automatic, Automatic}]]
 
and worked wonders
Let me read what you just wrote
 
really? man, Could describe step by step and maybe even putting up a snapshot?
 
Ok, what I just did wasn't programatic
SystemOpen@$UserBaseDirectory
went into Applications
created a test folder
a FrontEnd/StyleSheets subfolder
I created a new notebook there, opened it
wrote "2", opened the cell expression and changed it to
Cell[StyleData["Notebook"],
TaggingRules->{"color" -> GrayLevel[0.9]}]
Saved as "params.nb"
In the same location, I created "myStyle.nb"
same process to create 2 cells
Cell[StyleData[StyleDefinitions->"params.nb"]]
Cell[StyleData["la"], Background->CurrentValue[{TaggingRules, "color"}]]
Then Format->Edit Stylesheet
and prepended the cell Cell[StyleData[StyleDefinitions -> "params.nb"]]
(actually, I did that last step before the second one, to avoid the error message)
Then I created a new notebook
SetOptions[EvaluationNotebook[], StyleDefinitions -> "myStyle.nb"];
Then I added a cell with style "la"
and worked. Then went to "params.nb" to change the parameter, and everything updated correctly
 
@Rojo, I think I got it... let me try again.
 
@MrWizard Hi Mr Wizard. Are you here now? I still didn't get any emails from you.
 
6:07 PM
@Rojo, got it! :) It really those work wonders.
 
@jmlopez :)
 
@Rojo, well, back to the main bussiness, dealing with the styles...
 
 
2 hours later…
7:41 PM
Hey, anyone around?
 
I am around !!!!
 
Hey @newprint
 
Hi !
how are you
 
By any chance have you not got Workbench?
I'm good, you?!
 
Nope,I don't but I am inclined to buy it(I still haven't bough Mathematica, using trial version that is about to expire)
 
7:47 PM
Nice
 
with my student discount, I will buy a lot cheaper
 
Could you run this? Names["RuntimeTools`Profile"]
 
in Mathematica ?
 
and tell me if it finds the symbol or returns empty
Yeah
 
still going ........
{"RuntimeTools`Profile"}
 
7:49 PM
As I thought. Thanks
I was reading the last blog proposal and got confused
Is it possible that most people think you need workbench to use the profiler when you don't?
 
I would say Worbench is nice option
but you really don't have to have it......
 
Yeah, but... Wait, last check
Turn on the debugger from the menu
 
go it on
 
and run
let's see
f[x_] := x^2
and then Table[f[x], {100000}]; // RuntimeTools`Profile
 
Calls Time Evaluation
1 0.842 Table[f[x],{100000}];
1 0.842 Table[f[x],{100000}]
100000 0.608 f[x]
100000 0.517 f[x_]
200000 0.216 x^2
 
7:53 PM
It works? Opens up a notebook with profiling information?
Well, that's confirmed. Now all that's left is to really check that
there isn't a major confusion around
of people believing you need workbench for that
They'll get happy if they don't know this
 
Maybe you can also help me really quickly
 
Tell me
I'll try to help you as quickly as I can
 
I have function z[x_,y_], and I want to check where the min value lies, if I would search only within -1<x<1 && -1<y<1, with dx,dy = 0.0025
I made double nested for loop
 
(* See, Rojo is helping like a hare *)
 
Haha
Hey @belisarius
 
7:56 PM
@Rojo Hi!
 
@belisarius, please read what I just posted about the profiler and tell me what's going on!!
 
@Rojo Version 8.0.0.0.0.0 here. It does not work
 
Oh, where does it fail?
@newprint, try FindArgMin
but if you wanted to implement it yourself and want me to look at the code, post it
 
hold on, let me find the code.
 
@belisarius, where does it fail?
 
7:59 PM
"Cannot open \!(\"RuntimeTools\")."
 
So Names["RuntimeTools`Profile"] doesn't return anything
 
00:00 - 20:0020:00 - 00:00

« first day (165 days earlier)      last day (4316 days later) »