« first day (720 days earlier)      last day (2049 days later) » 

1:26 AM
@WolframBlog Oh man... I think I have a deja vu: Wolfram Language; Wolfram Connected Devices; Wolfram|Alpha; Wolfram Data Framework; Wolfram Data Repository; Wolfram Data Science Platform; Wolfram Cloud; Wolfram SystemModeler
I guess someone is trying to mess with the word-frequency in English texts..
Reverse@SortBy[
  Tally@StringSplit[
    Import["http://blog.wolfram.com/2014/01/06/launching-the-wolfram-connected-devices-project/", "HTML"]], Last]
 
2:14 AM
@halirutan omg that code ... can we setup side bets for when they rebrand cdf ... a little too unwolframy at the moment
the wolfram blog has really become unreadable ... I use to love the cool posts on doing neat stuff with mathematica ... now it just makes me angry
 
@Gabriel Yep. Getting sick too.
On the other hand I'm really waiting when all the cool companies come and pay for there place in the Wolfram Best Search Hits Board
 
lol
I am have only really been using Mathematica for about 3 years ... it seems like the company is losing its mind to me. I am unquestionably a fanboy ... but I have never seen such crazy posts/marketing coming from a company. Is it new? Or was I just slow to see it
 
Why do you think Stephen went with WDF as opposed to WML - is i preferable to brand a data format over a markup language?
 
@Gabriel No, hasn't always been that way. There were times when I was proud what a nice looking web page my favorite program has.
 
since we are all "knowledge programmers" now I think markup is a littel to plebian ... knowledge is composed of data!
 
2:20 AM
Now I wished there would be a bit more content.
 
totally. I still love when people other than stephen blog ... the stuff on economic modelling was cool etc. Lately I am just learning to ignore the posts as they make me want to learn a different platform ... and I really love Mathematica ...
Okay looking back and the blog I am overreacting ... I just need to not read stephen's posts. It seems the signal to noise ratio has grown since the whole wolfram language rebranding ... hopefully well settle down after mathematica 10
 
Anyone got a minute and experience with CDF? I'm creating my first CDF and I have something that works in a notebook, however in the CDF I see code where the graphics output should be. I cannot figure out why it breaks when I go from notebook to CDF (using File -> CDF Export -> Standalone -> the entire notebook)?
 
What version of M?
 
@bobthechemist 9.0.0.0
 
@Calle Do you get different behavior when using File -> CDF Preview -> CDF Player vs. Player Pro?
 
2:34 AM
@bobthechemist Good idea, but I get the same.
 
@Calle First, make your Manipulate ready and save everything in the notebook, quit the kernel, maybe close Mathematica and then open Mathematica again.
Without evaluating anything, the dynamic must work.
 
Along these lines I find it is good to export all your maniputes output and then make that the cdf ... otherwise the code is still available, just hidden ... I have had students that click to much get to the code otherwise
 
@halirutan I'm not using Manipulate but Dynamic[...], how do you mean that it should work without evaluating anything?
 
Is it in DynamicModule? I think CDF (regular) only supports manipulate and some uses of DynamicModule
 
@Calle When you reopen Mathematica, don't press any key, just use your Dynamic with the mouse. Does it work?
And you have to use either Manipulate or DynamicModule
 
2:37 AM
@halirutan No, actually after restart it doesn't work anymore :(
@halirutan AH! I just need to do evaluate notebook. I guess I should look into initialization cells or something like that?
 
@Calle The problem is without DynamicModule or Manipulate, you have kernel variables. This doesn't work.
@Calle No, you have to localize it with DynamicModule.
@Calle Can't you post your code to pastebin?
 
Yeah try out a manipulate and restart ... you don't need to evaluate the notebook to use the sliders etc
 
@halirutan Here's the code as it is without DynamicModule: pastebin.com/pe3vLHHT
The dynamic is at the very bottom, last code block.
 
@Calle Where is renderBoard?
 
@halirutan Sorry, they were all in different cells and I missed it: pastebin.com/r45aDVx8
My search for kernel variables is not fruitful. What variables do I need to localize? All those that appear inside Dynamic?
 
2:54 AM
@Calle All functions and everything
 
Replacing your Dynamic with Manipulate and setting SaveDefinitions->True works for me. Needs a bit of GUI tweaking at that point.
 
@bobthechemist Thanks, that works for me too. Now if there were just a way to make Manipulate transparent.
(The DynamicModule approach I haven't tried out yet. Variables all over turned red so I stopped...)
 
@Calle Hmm, here everything works but I can no longer set crosses after I quit the kernel
 
@Calle ControllerManipulate - not sure if it works in CDF yet
 
@bobthechemist It works in preview, looks just like I wanted.
 
3:06 AM
@Calle and I can make a standalone CDF that works with the player/chrome...
 
@bobthechemist Awesome, that was my goal :)
I have it working now just like I wanted. Thanks @halirutan and @bobthechemist :)
 
Nice - happy tic-tac-toeing
 
3:28 AM
@halirutan I think their blog/marketing team gets paid by how much they can suck up to SW... they probably all have this tattoo as well, to show their allegiance:
user image
2
 
@rm-rf On the butt.. I mean the tatoo
 
damn that needs to be the official logo ... I could warm up to the new naming scheme if it looked that badass
 
3:52 AM
"Curating the devices of the Internet of Things" ???? Has anyone really been far even as decided to use even go want to do look more like?
3
 
@rm-rf I guess you have fun reading..
 
What I would like to be able to read, is my car's sensors using an ODB II cable. I currently have native software to do it, but I'm too lazy to implement one in mma.
 
4:10 AM
@rm-rf Still here?
 
4:20 AM
@rm-rf Never mind. It's so awesome, I tell you anyway. I have reference resolving for globally defined symbols up and running. This means that (1) all usages of globally defined functions are highlighted while you type, (2) you can always jump to the first place of definition and (3) you can rename them in place and all references get renamed.
Currently, I'm doing the full thing: When I see a symbol, I first check whether it's defined as local Block,.. variable (easy, only going upwards the tree). If it is not locally bound by Block, Table, Compile, RuleDelayed, whatever, then I start from the root of the parsing tree and look at all Set, SetDelayed whether there is a variable defined which is (1) not locally bound and (2) has the same symbol-name as the reference we are searching.
The problem is the caching, because since the usages and the definitions are very likely on a complete different subtree of the AST, I cannot simply cache it and, if something changes, invalidate the subtree under the place of definition. In Module this works perfectly because all usages of a local variable are always below the Module node of the AST.
@rm-rf Want a Kostprobe how it looks if you rename global definition anywhere in the code and then jump to the definition? Real example from the NumericalDifferentialEquationAnalysis` package:
Look on the right side to see the green lines showing all places where the symbol appears. The file is 1065 lines long.
 
4:37 AM
@halirutan wow! that's awesome!
 
@halirutan what is this? Looks amazing
 
 
1 hour later…
6:03 AM
Huh? What kind of a push WRI has with their Wolfram Language?
 
6:57 AM
Is there a version of Cases[] that accepts multiple patterns/replacements? like Cases[{1,2,3,4},{x_?EvenQ->0, x_?OddQ->1}] would give {1,0,1,0}
Aha, Switch[#,...]&/@... will do it :)
Nope... this doesn't allow for delayed patterns :(
 
7:14 AM
I guess WRI wants exposure for Mma (I meant "Wolfram language") on tinkerer crowd more than just through RPi.
 
I wonder if Wolfram Language will be any different from the mathematica programming language
oh, there's a link. and it's not.
The font everywhere is different, but that's about it :)
 
Well, it's available on RPi already at this point (effectively pre-release of Mathematica 10). And it certainly looks like just another incremental upgrade of the Mma kernel. Naming is just marketing IMO.
I wonder if I should write a bug report of it generating unicode glyphs that are not in common unicode, but private region used by Mathematica, if I use it on terminal. And on RPi, I mostly want to use it on terminal.
Say, Distributed is output by default as a glyph that would require using a Mma-specific font on the terminal.
 
Yeah. And other strange symbols like [Wolf]
 
Welll. I do understand some symbols are not present in unicode. I'm not pleased they're not output with their name instead of private-region encoding on UTF-8 terminal.
 
Yeah, this seems like it should be a command-line option to the kernel as is. But I guess it's not
 
 
4 hours later…
11:30 AM
@Gabriel You find information here or here.
 
 
2 hours later…
1:29 PM
@kirma seems a bit strange to me since Quark CPU used in Edison is highly cost-optimized and less powerful even than the Raspberry Pi ARM CPU. So it will have difficulty running Mathematica acceptably.
 
I don't think the Quark has as powerful a gpu as the RPi, which will only add to the troubles, I suspect.
 
@bobthechemist not clear to me if Quark has any GPU at all. Atom has one, but that costs more and uses more power.
 
1:59 PM
@OleksandrR. Yes... unless they sell Edisons literally for 10 USD or so.
Edison has no GPU. It's even unclear what wired interfaces it has. SDIO?
 
@kirma arduino.cc/en/ArduinoCertified/IntelGalileo dev board costs about 50% more than RPi B. But obviously that's much higher than the likely price for future products
@kirma 10 USD is quite a lot for an embedded CPU I would think
 
For embedded SoC, yes. but with RAM, flash, wifi and bluetooth, it's a bit different...
SoC itself costs 1-2 USD at most...
If you consider Edison purely a device to bridge sensors/controls to "cloud" or such with some intermediate Mathematica processing or control simple processes with internet-enabled settings, it might be sufficient for many tasks.
Wired connectivity with that form factor is a mystery though, and Intel avoids showing the other side of it.
 
2:29 PM
@kirma I think Edison is a different product to the Quark SoC. The latter is supposed to be fully synthesizable, so it may be given a GPU and be tightly integrated with the other components before any actual Edison products arrive. I don't know if the form factor shown is supposed to be indicative of products or if it just shows how small the Edison can be
 
Actual products are one thing, but Edison is product in itself. I highly doubt if it even has a framebuffer to speak of, though.
 
Mr.Wizard, I felt you might the following interesting. Internal`PartitionRagged is a function with Attribute ReadProtected. It's code is fully visible (I think), although a bit "obfuscated". I formatted it and it and the DownValues look like this

HoldPattern[
Internal`PartitionRagged[v_ /; VectorQ[v] || ListQ[v], l_?VectorQ] /;
Length[v] == Total[l]
] :>
MapThread[v[[#1 ;; #2]] &, Module[{a = Accumulate[l]}, {a - l + 1, a}]]

and for higher dimensions

HoldPattern[
Internal`PartitionRagged[
array : _List | _SparseArray, dims : {__List}
 
May I ask a quick question regarding graphics? :) I'm doing what I wish to do but it seems a little bit pushy & I don't think it worth a proper question.
 
sure sure
@Öskå ask away :)
 
2:45 PM
Thanks :)
 
Graphics is not my favorite cup of tea though :P
 
How can I extract the radii from the following disks?
g = Graphics[{Disk[{0, 0}, 1], Red, Disk[{1, 3}, 3]}];
First@Cases[FullForm@g, _[_[args___]] -> {args}]
Cases[%, h_[{_, _}, x_] -> x]
It's more likely a Cases issue :)
 
Oska you don't need FullForm, for one. Let me see
 
Don't need h,h1 either, that was the "old" one
 
@JacobAkkerboom DNE in 7. Pretty sure Mr.W is aware of that though as he references it in his answer.
 
2:48 PM
Cases[g, Disk[, y] :> y, Infinity] does what you want?
 
If you add back the "_" yes :)
 
I knew I was doing something stupidly pushy.., thank you! :)
 
nonono! It was a nice question :)
perfect for chat imo
 
hence my presence here ;o)
I was missing the Infinity, so thanks :)
 
2:51 PM
No problem, and remember, FullForm is just a wrapper!
Cases[FullForm[y], x_ :> x, Infinity, Heads -> True ]
evaluates to {FullForm, y}
 
mhm, FullForm was the only way I found to find back the radii
 
yeah, FullForm is nice for the user, and it effects how things are formatted, but the Kernel only sees it as a wrapper. Replace it by yourSymbol and evaluation will be the same
 
mhm thanks for the tip :) I like this chat :D
 
yay :D
 
Well, I'm off :) Going to trying to move on, thanks once again!
 
3:03 PM
@OleksandrR. yes, I saw that he referenced it :). I'm not sure how he found out the syntax if he does not have version 8, but I figured he probably did not realise the definition was visible and what it was. IMO this shows that it is not some highly optimised C beast, so maybe there is room for a faster answer by me :).
@Öskå cu!
 
3:38 PM
@JacobAkkerboom There are many ways to skin a cat, but far fewer ways to skin it fast :)
 
 
1 hour later…
4:41 PM
@MichaelE2 are you around?
The Wizard scolded me yesterday for chatting too much in comments, so I'll ask her
here*
 
@JacobAkkerboom I noticed that you changed the VG question almost entirely (but at least, I can understand this one :D)... it seems to me like the link to SO that you include in your question (and the discussion there) cover all of VG well, don't you think?
 
@rm-rf well, I feel that there are many details that are missing. For example what can go wrong in attempting to overload a function. Furthermore I feel the point is missing that when a function calls itself the call to the function at the lower level does not do the pre and post processing. Points about stability and reasons to use !TrueQ vs a global variable are not discussed. Lastly the question is on SO and not SE, and most of the explanation is done in the comments, which I think is not so
nice :P
I feel there is more to discuss even than that, so I thought let's first discuss this before moving on :)
 
5:22 PM
@JacobAkkerboom Then perhaps you can let the answerers know that your question has changed entirely and they should rephrase their answers and pretend that the first version was never asked :)
They probably won't like it, and I don't really encourage this practice, but since no one seemed to understand the first version and there aren't many answers with many votes, it seems OK to do it in this case. Don't quote me on this in the future though... :)
 
5:50 PM
@rm-rf the only answer was by Mr.Wiz and the only upvote to that question was by me :P. I guess I'm glad you guys didn't find the way to skin the cat fast and I survived the whole ordeal
 
6:13 PM
@Rojo Back again...
 
@JacobAkkerboom Oh... I was referring to your VG question :)
 
@rm-rf huh? So was I :P. Ah yeah but the answer by Rojo was posted later. Ah I see I meant the only upvote for Mr.Wizards answer (not question), oopsy
 
6:35 PM
user image
2
Hey guys what do you think? ;-)
If you have any ideas - let me know or just post there. It'd be awesome.
 
@VitaliyKaurov Nice update - how about changing the style of "o" to random Red/Blue to give the Christmas tree a lighted effect? Blinking?
 
7:02 PM
@bobthechemist thx! I actually tried. I thought they would look like ball ornaments, but it somehow deminitioed recongnazibility of the tree. Maybe someone would come up how to do it right.
 
Hi guys, I'm having an issue with GaussianFilter. I have an 800x800 array I'm importing from a text file. When I run GaussianFilter on this array, it's very very slow (minutes). However, if I just generate a 800x800 array using RandomReal, the same GaussianFilter call takes less than a second. Any ideas what's going on? I tried setting the array to $MachinePrecision and packing it with ToPackedArray, but that didn't improve the speed...
OK, nevermind, I was doing SetPrecision[ ... , $MachinePrecision], with a dollar sign.
I needed to do it without the dollar, as it was converting $MachinePrecision into a float first before passing it to SetPrecision... :-/
 
@bobthechemist i'd love to see folks try different things, not necessarily christmas motives. There is a method of replacing pixels by characters in large images - which i think is less challenging than smaller designs - like:

(\_/)
(='.'=)
(")_(")

which in my opinion is genius. Machine would need AI to come up with this.
 
7:17 PM
@VitaliyKaurov I like the christmas tree, but I feel we have to beat ruby!
 
acl
@rm-rf mine has the port under a cover under the handbrake... You'd have to remove the cover and drive around like that to have real time monitoring. Very annoying.
 
@JacobAkkerboom nice one ;-) i've seen a few around, but never seen code for them
 
7:45 PM
I like collaboratively building up code to celebrate an event. I like doing it before the event even more. @VitaliyKaurov The first tweak I would make to yours is to add more rows of snow so they start at the top of the image. @JacobAkkerboom That's a cool quine. We can definitely beat Ruby though.
 
@JacobAkkerboom someone else posted the definition somewhere and observed that it matched his dynP. I actually thought dynP came first but @rm-rf proved me wrong on that. Anyway, how do you write PartitionRagged using LibraryLink given that you can't return ragged arrays or produce an Internal`Bag using it?
 
Although apparently today is Christmas for Eastern Orthodox observers.
 
Are there M quine examples?
 
I did the basic "Print the following twice, the second time with quotes." exercise once.
 
@OleksandrR. ah I figured making a slightly larger array containing delimiters/seperators between elements that go into the same list, and splitting that larger array with SplitBy[longerArray, delimiter] would be faster than repeatedly using Span, especially when there will be a lot of subsets. I may be wrong though, I should try it out :)
 
7:52 PM
@JacobAkkerboom difficult to make a universal delimiter in a packed array though unless you choose some invalid value like NaN, but then Mma can't understand it
 
@bobthechemist
http://mathematica.stackexchange.com/q/6104/13
@MichaelHale more snow ;-)
 
@OleksandrR. yeah, thats true. I suppose I can make a few versions, or a version where you can specify a delimiter. I suppose that I would always program it in such a way that there are a upper and a lower limit to the size of an integer. Taking the smallest integer in C should not make the code much less safe, as it will fail anyway if the input is too small. I was especially thinking of making a faster equivalent of FactorInteger/@Range[n], where you can always choose 0 (or even 1)
 
@JacobAkkerboom I also just realised you have to copy the whole array twice, once to add the delimiter, and once to make the split version. For direct splitting with Part there should only be a need to copy it once fully
 
@VitaliyKaurov My area avoided snow during the big freeze, but a few minutes ago my dad asked if I could look up all of the times it had been colder than last night in the past 23 years. Getting to do a live Mathematica demo is as rare and exciting for me as snow.
 
8:14 PM
@OleksandrR. yeah I guess it is far from ideal. Still I think I will give it a shot :)
 
I think this is the canonical Mathematica quine: With[{a = FromCharacterCode@34},
Print[# <> a <> # <>
a]] &@"With[{a=FromCharacterCode@34},Print[#<>a<>#<>a]]&@"
Or the canonical quine in Mathematica I mean.
 
Hrm. I've run into another speed snag with GaussianFilter, this time with a 2000x2000 array, kernel size of 20. Any suggestions?
 
Again, running the same thing on a 2000x2000 array seems to run perfectly fast
er, 2000x2000 RandomReal
 
@Guillochon Most likely it's either using an unpacked array (or there's some unpacking) or it's trying to compute it symbolically. Try using N to force it to machine precision.
 
8:28 PM
@rm-rf So I did data = N[data], and it's still just as slow.
I also tried SetPrecision[data, MachinePrecision]
and ToPackedArray[data]
Not sure what else to try
 
@Guillochon Well, I can't say anything more... if you post your matrix + code to pastebin, I'll give it a try
 
@rm-rf data is here: goo.gl/PYdQWx, notebook here: goo.gl/0egi2u
 
8:45 PM
@rm-rf Is the final [] included just so Trace shows something?
 
@rm-rf I'm just not sure why the array would not be packed and at machineprecision...
 
9:06 PM
@VitaliyKaurov @MichaelHale @rm-rf Thanks - was unaware of quines before this discussion.
 
@Guillochon That's strange... I have no idea why. Your data also seems to crash my kernel if I try to do an eigendecomposition, even though my machine can easily handle 2000x2000 matrices.
 
@rm-rf So I think it has something to do with the HDF5 file being GZIP'd
@rm -rf When I tried loading a dataset without GZIP compression, it's fast again
@rm-rf Mathematica must be storing the data differently internally, for some reason
 
@Guillochon Huh... that's weird. Well, on the surface, it looks like your data is all machine precision numbers + packed, which should not have such a slow performance. Perhaps someone with more spelunking skills can look into this.
@Guillochon Ok, so at least you have a work around for now... :)
 
@rm-rf Yeah, but unfortunately the datafiles are about 5 times bigger when not GZIP'd. Oh well.
 
uh oh.
 
10:04 PM
@bobthechemist I actually didn't hear of a use for them until last month when I was reading a book about computational complexity theory, and it said that you need to know that quines exist so that you don't have to make a fundamental distinction between programs that do and don't have access to their own source code in proofs.
 
10:17 PM
@rm-rf I understand the semantics now. Although it is interesting as they say in the comments that the copy and paste shows the [] aren't included in the string output.
@VitaliyKaurov I guess I wouldn't pass your Turing test. I'm trying to think of an original cartoon ASCII animal, but I think I would just repeat something I've already seen.
 
10:38 PM
Although in defense of the potential of machines, I think a huge number of brain clock cycles have gone into solidifying the emoticon grammar over the years.
 
11:28 PM
@MichaelHale sorry , in and out here... no worries Michael, anything would suffice ;-)
 

« first day (720 days earlier)      last day (2049 days later) »