« first day (566 days earlier)      last day (3924 days later) » 

12:20 AM
Fresh Wikicode functionality
 
@MichaelHale Consider using strings instead of symbols for "Salt", "Gypsum", etc. to avoid context pollution
 
Every article is its own context.
WorldEconomy`Production[materials_List,date_] gets data from Salt`Production[date_] etc
 
@MichaelHale Yes, but Salt is actually Global`Salt... you're converting it to a string internally, which can be avoided
 
I had it that way first, but I figured in the screenshot I posted to advertise on Facebook non-programmers might ask why you need the quotes when you don't in something like Wolfram Alpha, so I thought well technically you can do it without them.
 
 
1 hour later…
1:42 AM
You have a facebook group about this?
@MichaelHale
 
No, I just spam my friends, which I'm pretty sure is the intended use of the site.
 
 
2 hours later…
3:41 AM
@Mr.Wizard Just out of curiosity did you ever get change to see if this mathematica.stackexchange.com/q/29779 could modified so that you do something like this runPrivate[Global`a = 1]
The easier way (well the only way I can think of) is having Global`a evaluate to the longer form runPrv`a, but that would require to set the global outside the function and it would require you to keep the context visible (not removed)
 
4:35 AM
@Liam I did see the comment, and I'll give it (more) thought, but I couldn't think of a really good way to handle it.
 
Ok. If nothing else I think you could/should be able to automate what I posted above as a function call inside the Block element. Then you could export internal values into the Global` context
internal symbols
 
 
2 hours later…
6:51 AM
Hi @Kuba
 
Hello, :)
it does not work on v8 v9
and you are working on v7
as far as I remember
:)
The warning is poping up even with option set to False
 
@Kuba That looked familiar, so I started digging and found this:
2
A: How do I automatically evaluate a cell when a notebook is opened?

Mr.WizardThis is possible, at least in version 7, but as rcollyer supposed there is a Global security option which cannot be set from within the Notebook (automatically, that is). First change the Global option: SetOptions[$FrontEnd, GlobalInitializationCellWarning -> False ] Then in the Notebook yo...

 
Ahh, but it works as Global Preferences while not for Selected Notebook, in contrary to what is written in comments there
 
@Kuba Did SetOptions[$FrontEnd, GlobalInitializationCellWarning -> False ] do what you want? Have you considered the NotebookDynamicExpression alternative posted there too?
 
Manually set in Option Inspector works for Global Preferences but not for Selected Notebook, I'm testing now if I can use information you've provided for single notebook
 
6:59 AM
@Kuba You'll either have to disable security globally or accept a prompt; anything else would be a bad design (bug) and should be corrected.
Let me soften that statement: the NotebookDynamicExpression should run without prompting if the Notebook is in a trusted path.
I guess the Initialization Cells could run if and only if the Notebook is in a trusted path too, but I don't know how to configure that.
 
@Mr.Wizard Thank you. You are right about this, it would be dangerous if that can be set for single notebook
 
I hope you find a solution for your project, whatever it is.
 
I have to accept the global way :) but it is not a problem :)
 
@Kuba If you've got a minute could you read this question and tell me if it makes sense?
0
Q: Mathematica: How to apply function involving elements in a column of a table

user2654929I have a n x m matrix of data. How do I create a function that has a sum that includes elements of each column, such that if I input a value, I would get a 1 x m row (where m > 100)? More specifically, I am computing a discrete fourier transform of the data in each column that should work for a...

 
7:03 AM
I read it twice and I'm still scratching my head; I can't quite figure out what he's asking for.
 
this is some way around
Ok, give me a minute
@Mr.Wizard First thought is that OP is looking for Total /@ Transpose[m], where he want to switch Total with DFT but things which he is writing about it make me less confident about what to think about it
 
@Kuba Okay, sorry to waste your time with it; I'm just going to ignore it. It's off-site anyway. :^)
 
@Mr.Wizard No problem :) thanks about pointing things out about Selected Notebook preferences :)
ok, I have to go back to duties now :) Have a nice day. Or probably, good night since you are in USA :)
 
See you later @Kuba
 
 
6 hours later…
1:01 PM
@Mr.Wizard I think he wants something like dft = Fourier /@ Transpose@matrix, but his DFT formula is wrong. Then the "extension" he seeks would be dft[[All, f+1]] or he could transpose dft.
 
 
2 hours later…
3:21 PM
@sanderws tell me if you are around
 
3:50 PM
hello good people
 
 
4 hours later…
7:44 PM
just curious, why sometimes stackexchange gives +15 points for accepted answer and puts green circle around it, but sometimes it just makes the green circle but the number will be zero inside it instead of +15 ?
 
@Nasser wiki posts don't get any points
 
@rm-rf, what is a "wiki" post? :)
someone just posted a question on M generating bad quality image, but never said how it is bad and in what way. strange. it looks good for me.
 
377
Q: What are "Community Wiki" posts?

Justin StandardSome questions and answers are marked Community Wiki and are owned by a Community Wiki user. Why have Community Wiki posts? How do Community Wiki posts work? How does a post become a Community Wiki post? How can the Community Wiki status be removed from a post? Return to FAQ Index

In your case, it was most probably this:
> The post has been edited ten (10) times by the original owner
 
8:46 PM
How do I create a new style in a shtylesheet based on, say, Input?
if I copy the cell for Input and paste it back, I cannot rename it...
 
9:13 PM
CellPrint@
Cell@StyleData["MyStyle", StyleDefinitions -> StyleData["Input"]] Then copy and paste into the new style sheet. There might be an easier way.
 
any one knows if this question was asked before? not able to find an answer and wanted to post it, thought to check first. I need to change the file name displayed at the top left corner to be full name path. Like this:
I can't find a setting or option, and hard to google this. Should I post this, or already asked?
 
Format->Option inspector, click "Show option values for" "selected notebook", expand "Notebook options", click "Window properties", then change "Window title" to "Full file name"
 
@MichaelHale thanks. I did search the OptionsInspector, but searched for file and file name, so did not find it :)
 
9:38 PM
@MichaelHale Thanks!
Slightly less GUIish than it could be...
 
With DynamicModule are we supposed to localize function arguments? E.g. func[x_]:=DynamicModule[{xarg=x},...]? Does it make any difference?
 
I've just used DynamicModule when I want to preserve state when I restart Mathematica. I just use Module otherwise, but there might be some subtleties.
 
@MarianoSuárez-Alvarez Alternately, go to Format > Edit stylesheet, enter the name of your style, select the new cell and press Cmd-Shift-E (on a mac) and add StyleDefinitions -> StyleData["Input"] as an option to StyleData["mystyle"]
 
@MichaelHale I'm using DynamicModule at the moment, hence my choice of that function over Module. But my question is the same for both, are there any benefits in localizing function arguments?
 
9:55 PM
Oh, not that I can think of. SetDelayed already scopes the variables for you. I just use Module if I'm adding extra explanatory variables that I use within a function definition that aren't already defined as arguments.
 
@Calle yes. That is what I do. DynamicMOdule is a little different. Please read this:
 
@Calle I agree with @MichaelHale, but there is a difference. The value 0.2 will replace all instances of x in the code when func[0.2] is executed, and then the code is evaluated. The value of xarg will replace an instance of xarg only when it is evaluated in the course of evaluating the code.
 
But I do not know why folks use DynamicModules for. I use Manipulate, much simpler. But I only do demos :)
ofcourse Manipulate is DynamicModule, but a wrapper
 
@Nasser To have a fine grained access to what is updated. Sometimes Manipulate isn't enough.
 
@Calle And generally I would say one should use Module unless you have a reason to use DynamicModule (and there are many good reason to use DynamicModule).
@halirutan I would add that Manipulate does many things automatically. Sometimes its choices are not the choices you want and only annoy you.
 
10:00 PM
@MichaelE2 @MichaelE2 @Nasser Thank you kindly for your input. DynamicModule might be overkill, but it works so I'm happy with it.
 
@halirutan Sure. I just have not found a case where I can't control something using Manipulate. but I am just a newbie compared to you, so I am sure I missed something.
I used DynamicModules few times, and found it so confusing. All these explicity Dynamic[this] and Dynamic[that] do not lead to easy to read code.
 
@Nasser Yes, usually Manipulate is so easy, I just work with it, learn to like it.
 
@MichaelE2 @Nasser Yes, I agree with both of you. In most cases Manipulate is perfectly fine.
 
8
Q: Dynamic graphics are less responsive inside a Manipulate

Simon WoodsI have some code which displays a GraphPlot and allows the user to click on any vertex in the graph to display some information about that vertex in a popup window. There is two-way highlighting between the popup and the vertex, so that if the user hovers over either the vertex or the popup windo...

Oops. Dinner time!
 
10:18 PM
Here's my DynamicModule for all the world to see now: mathematica.stackexchange.com/questions/29932/…
:)
 
@Mr.Wizard You here?
@Mr.Wizard I'm no native speaker and I don't know what sounds nice. "Improve your SE Editor"?
 
@Nasser @MichaelE2 @halirutan I find Manipulate horrible and unintuitive. To each his own. But one good reason to use DM is greater flexibility in layout design and control positioning.
 
@MikeHoneychurch Actually all of Dynamics is confusing ) but for me Manipulate is less confusing than DM.
We need more questions here like on the matlab group. How to add a number to a row, and how to remove a column from a matrix and so on. Matlab group is much more fun than here :)
 
10:37 PM
@Nasser i would have thought just about every List question has been asked and answered. Sometimes I suspect duplicates but cannot find them. There seems to be a lot of "homework" type questions from new users lately.
 
We need a question on recursive descent parsers... it's supposedly the most amazing paradigm ever and MMA is supposedly very well suited for it... but the Wikipedia article is quite intricate and well, I don't know how to write a question about that suits the SE format :(
 
@MikeHoneychurch yes. I agree. Actually we need more "engineering" type questions. Matlab has many more of these.
 
@Nasser that is because they dominate the engineering market. Mathematica has a small footprint there.
 
@Nasser what are engineering type of questions?
 
I am afraid that M is drifting to new area, far away from its origins of pure Mathematica and physics and engineering. All this data stores and data collections and such. But what do I know...
@Calle many. PDE's, Finite elements, vibration, DSP, filters, control systems, etc...
Linear systems, stability, structural analysis, modal analysis, numerical analysis, etc..
 
10:42 PM
@Calle You better look into this here.
 
Matlab has many more such questions.
 
@Nasser Alright.
@halirutan Thanks, I will look into the Pratt parser. The link under "external links" seems interesting.
 
@Calle And when you want to see a Mathematica parser using this technique, you know where to find it.
 
:))
 
any one like to do a quick test for me for a small demo? it allows one to select row/column and channel number of an image and show the selection result. It is meant to help someone learn the ImageData matrix layout for an image
if you like to try it, the cdf is here 12000.org/tmp/080613
any problems, anything note clear, please let me know. this is only v1, and still very much beta state.
I need more time.... please ignore message above for now....
 
11:05 PM
@Calle In this answer, there is a reason to use DynamicModule.
 
@halirutan When can we expect the next version? :D
I can't wait to try out local variable highlighting
 
@rm-rf I'm working on it but currently I have a student from Hungary in our house. She wants to learn German and I didn't have much programming time these days.
@rm-rf And sadly enough my wife sent me an email today and told me that family voting is not allowed :-(
 
@MikeHoneychurch Actually I find most of Mma unintuitive. But after I've mastered a few things here and there, other things fall into place. Then it seems intuitive. I pored over the Manipulate/Dynamic tutorials, but Manipulate did not seem that hard, except that it does things that sometimes get in your way. In part that has to do with the kind of programming I was doing before. I wouldn't call Manipulate horrible, but I wouldn't call it intuitive either.
@halirutan Doesn't your wife know German? :)
 
@halirutan Hehe, sorry 'bout that :D
@halirutan Are you like a host for a foreign exchange student or is she your student?
 
@rm-rf She is the daughter of a family we know for long time.
Last year her older sister was here (and as it turned out she is starting to study violin and piano this summer here in our university).
 
11:22 PM
Ah, I see... so you can't really get out of the teaching obligation :P
 
@MichaelE2 It's more or less an insider joke. You need a million reputation or a diamond in front of your name to understand it.
@rm-rf She is beautiful, you know!
 
Then you should be teaching her French, not German :D
 
@rm-rf Oh, I feel a drop of the level ;-)
 
Hehe
 
@halirutan Oh well. :)
 
11:26 PM
@MichaelE2 Ah, sorry, I misunderstood your message. Yep, my wife does know German ;-)
@MichaelE2 @rm-rf BUT, I can speak Szabolcs name now!
@rm-rf The Sza and the lcs part is pretty hard because we don't have something like that in German.
 
@halirutan And here I was thinking that in the US we would say "sawbucks"
 
@MichaelE2 the inflexibility with layout design is a deal breaker for me.
 
@MikeHoneychurch I understand. My ability, and that of many whose products I use, at layout and design are so meagre, I see no reason to fight it. :)
Actually I started out writing "official" demonstrations for my classes, so I learned to "love" it, so to speak.
 
Jan 25 '12 at 11:41, by Szabolcs
@MrWizard
sz pronounced like s in salt
a pronounced like a in what (British received pronunciation, not American)
b - what you expect (b in bee)
o - like o in German or Italian
l - what you expect (like l in light)
cs - like ch in China :-)
 
@rm-rf I think I remember I have seen this too.
 
11:42 PM
Ok, here is the small demo. If someone can just please play it to see if it looks ok. it just shows the ImageData matrix layout for an image... 12000.org/tmp/080613 any problems pls let me know.. still beta
Just select the row/column and channel to see which part of the image that is, and see the 3D matrix to do that.
 
@Nasser If you don't mind my asking — how did you manage to get degrees or study at so many different universities? Were they all study abroads/etc?
 
@rm-rf what many universites? I only went to I think 18 universities. Most of them at night :)
all in the US except England (Liverpool Univ.)
 
!
 
This is a funny question mathematica.stackexchange.com/questions/29984/… and the answer is even more funny !
 
@Nasser PlotJoined used to be a valid option...
 
11:55 PM
@rm-rf no, it is the whole command is wrong. There is no LogLogListPlot command
The answer used the same wrong command :)
 
Aha! Lol... I didn't see that
 

« first day (566 days earlier)      last day (3924 days later) »