« first day (110 days earlier)      last day (4384 days later) » 

12:21 AM
@Verbeia removed all but the "pertinent" ones of mine.
 
1:14 AM
@MrWizard Incidentally, DensityPlot has the Evaluated option, also, but it is set to SystemPrivate`$Evaluated`, which of course is set to Automatic.
 
1:25 AM
@Verbeia I think I'll leave mine in place. I always considered it a good welcome reminder ... if you don't mind.
 
1:42 AM
@belisarius I didn't mean yours - those welcomes are really useful and I think they have been one of the things that have helped expand the community. But the stuff about his registration is all superseded now.
 
2:00 AM
Anyone here at the moment?
Found an odd behaviour and wondering what others think of it.
Given:
f1 = Function[{x}, x];
With[{cf = Compile[{{x, _Real, 0}}, x]},
  f2 = cf;
  f3 = Function[{x}, cf[x]];
  ];
and
ClearAll[g];
g[f : _Function | _CompiledFunction] := (Print["memoized"]; g[f] = f)
we have:
g[f1]; g[f1]

memoized
Function[{x}, x]
as you'd expect. However,
g[f2]; g[f2]
gives:
memoized
memoized
CompiledFunction[{x},x,-CompiledCode-]
Memoization didn't work!
We can fix it using:
ClearAll[g];
g[f : _Function | _CompiledFunction] := (Print["memoized"]; g[Verbatim[f]] = f)
(Note the added Verbatim.)
I take this to mean that CompiledFunction is another object with internal state not represented by its FullForm. Any other views on this?
(Incidentally behaviour is the same for f2 and f3.)
Hello, @Vitaliy; @MrWizard -- any thoughts on that? Are there any other functions like this? LibraryFunction; maybe Graph?
 
2:28 AM
@yoda I LOVE your link to the medical paper! I spent some time helping physicians to publish, but that one is a real perl
@yoda BTW It took me almost a week to convince a research group that doing statistics out of three cases is rather unconvincing
 
@Oleksandr sorry, I'm a bit tired and hungry at the moment. I'll take a look at this later.
 
@MrWizard not to worry; don't feel obliged. I just found this behaviour unexpected and had wondered whether others felt similarly or had run across it before.
 
@belisarius ha, very true!
I was at this conference and talking to a chap about his poster... he was telling me about his product (sensory aids) that worked much better than his competitors. He told me that his had a 75% success rate, whereas his competitors had only 33%...
Those nice numbers made me pause. Poking further, the guy explained that his "statistical results" were from a sample size of 4 and he took the numbers for his competitor's from another study with a sample size of 3!
 
3:05 AM
@yoda I'm impressed.
A friend of mine took over her surgeon's statistics because he did not have a clue.
 
 
9 hours later…
11:42 AM
@OleksandrR This is an expected behavior (at least I expected it). The thing is that, when you look at the FullForm of your compiled function, you will see `CompiledFunction[{8, 8., 5468}, {_Real},
{{3, 0, 0}, {3, 0, 0}}, {}, {0, 0, 1, 0, 0},
{{1}}, Function[{x}, x], Evaluate]`. This contains a type specification _Real, which happens to be a pattern. Therefore, your (memoized) pattern does not match,
@OleksandrR just as this does not match: MatchQ[_Real, _Real]. Thus, you need Verbatim, which is useful in exactly such cases. I used memoization of compiled functions before, and was also puzzled at the time.
 
11:58 AM
1
Q: Extending the Mathematica highlighter to gist and github

AjasjaI hope this is not too off topic, but does somebody know, how hard it would be to extend the current Mathematica syntax highlighter to work on gists and github in general? Or perhaps we should just contact github and ask them to add yet another language syntax highlighter? They have Matlab, so w...

 
 
2 hours later…
1:47 PM
@halirutan Regarding the syntax highlighter breakage: did you notice that the version on the site has been "compacted" by stripping out whitespace and newlines? Is there a chance that has broken something?
 
2:42 PM
@Szabolcs @Szabolcs are you online?
 
3:01 PM
@halirutan in half an hour I'll be here
 
3:38 PM
Hello; so that I don't repeat the same mistake next time, could you please let me know why my bounty seem to attract so little attention (well none at all in fact !)? Cheers
I could imagine it is because it requires skills involving web queries rather than mathematica. It seemed nontheless to me it was a challenge of very broad interest to people using mathematica to solve formal but practical problems
 
@Szabolcs I have not really an idea, what happens and I cannot reproduce this behavior here at home. If you look at the css-types of the wrong y before the _ you see, that it is marked as pln which means PLAIN. I use plain only for whitespaces and variable-names other then keywords. The pattern for variables comes later as the pattern for patterns and I really don't know, why the pattern-pattern shouldn't match. Since it worked in the script and here on my machine, maybe we are
searching for the wrong kind of bug/mistake. Is there a possibility to see the stripped lang-mma.js?
 
4:24 PM
@Szabolcs, Unfortunately I have to cook now. It seems we have to talk another time.
 
 
2 hours later…
6:19 PM
posted on May 07, 2012 by Wolfram Blog Team

It’s been one year since we launched our Twitter feed for bite-sized Mathematica hints and tips! Thousands of people follow @MathematicaTip to get a new tip every day, Monday through Friday, covering everything from keyboard shortcuts: Instead of using % to refer to the most recent output, try Ctrl+Shift+L (Mac: Cmd+Shift+L) to directly insert the [...]

 
@halirutan I am sorry, my Skype conversation turned out to be much longer than what I expected, and later I also needed to cook.
 
My meal is on the oven right now and the guests are on their way ;-)
 
@halirutan What are you cooking? :-)
 
@Szabolcs, it's called Schweinebraten mit Rotkraut und Kloessen
 
@halirutan Is that your own version (from before), or the photo from the recipe? :-) Looks yummy!
Where's the Rotkraut? :-)
(All I understood without a dictionary was Schweine and Rotkraut---as unlikely as that might be :)
 
6:26 PM
@Szabolcs, I can post a final image later. Currently it's not ready.
This was just a photo from the net
 
So you're the baker in the house?
 
Yep
 
Seems like men took over cooking in this century :-) (same here)
 
Ok, guests arriving
 
Have fun---bye!
I'll try to take a look at the script, just for fun, because I have time now.
But I still don't know any JavaScript ...
 
6:28 PM
I already saw some differences.. I'll check them later.
bye
 
What are kloessen?
 
"dumplings" --- according to Google Translate to Hungarian
 
I just found the wikipedia page
 
and to English as well
though "dumplings" always reminds me of Chinese "jiaozi"
 
I've had those at a hotel in South Tirol once.
They served a five-course dinner where every course consisted of dumplings.
 
6:37 PM
@Heike Kloesse, it's a round thing made of potatoes..
Knödel (singular: der Knödel), or Klöße (singular: der Kloß), are large round poached or boiled potato or bread dumplings, made without yeast. They are typical components of Austrian, German, Hungarian and Czech cuisine, and come in many different forms. They can be made from flour, potatoes, old bread, semolina, etc. In most versions, they are used as a side dish for meat, like roasted meat or stews. But they can also be served as a dessert (e.g., filled with plums, as Zwetschgenknödel) or in a soup. Names and varieties In Hungary, they are called gombóc; in the Czech Republic, knedlí...
 
We have that, usually with cottage cheese or plums inside
rolled in breadcrumbs and a bit of sugar
 
I don't think Dutch cuisine has anything similar.
The only thing we do with potatoes is boiling, mashing, or frying.
 
They also have flour or semolina
I could compare the 'dough' a bit to gnocchi, which you probably know
 
Quick question: does any remember how to prevent shadowing by loading a package into another context other than Global` ?
 
@rcollyer Actually, I didn't even know that was possible
 
6:44 PM
The closest I have is to run $ContextPath = Most@$ContextPath after I loaded the package.
 
@Szabolcs I know gnocchi. I've also had a Hungarian dish once which involved grating some kind of dough over a pot of boiling water.
 
@Szabolcs Experimental` adds a Minimize function which has been annoying me. :|
 
@Heike Those are Spätzle
 
Yes, I know those
 
:4505904 Yes, that looks familiar
 
6:48 PM
 
@Szabolcs Actually, that should be $ContextPath = Rest@$ContextPath, Most removes Global` , and System` if you run it again ... :P
 
@rcollyer You could move Experimental` to the end of the list if you don't want it to overshadow Global`
 
@Heike True, but I don't mind typing Experimental`CompileEvaluate, and removing it from the $ContextPath is exactly what I needed to do.
Now if only what I needed to run faster was actually compilable ... :P
 
Does anyone use Mma on Ubuntu? Did you manage to make it play nice with Unity?
 
Thanks. Gotta run.
 
R.M
7:52 PM
Does anyone know if you can set variables in the front end's init.m, just like you can in the kernel's?
I'm guessing the answer is no, because the FE is loaded before the kernel and the FE won't know what Set is, but I'm curious nevertheless
 
 
3 hours later…
11:15 PM
@LeonidShifrin thanks for that. I feel silly now; I usually look at the InputForm of CompiledFunctions (rather than CompilePrint them) to check whether they compiled completely or not, so I'm very familiar with the FullForm--yet somehow managed to overlook the fact that the arguments are denoted by patterns every time. Oh well... of course this behaviour makes perfect sense now that you've pointed that out, so thanks again.
 

« first day (110 days earlier)      last day (4384 days later) »