« first day (472 days earlier)      last day (4009 days later) » 

12:06 AM
@halirutan Hey, sorry about being late with the uploader ...
I'm here.
 
@Szabolcs I don't want to rant about that.
The page for the MATLABLink, is this a private page or is it somehow connected to GitHub?
 
@halirutan Connected to GitHub.
it's on github.io
 
I'm thinking whether I should use the github wiki for dev-documenation..
 
@halirutan I guess that's convenient. The site was done by rm alone, but I think you can put just about anything in github pages.
 
I finally put everything online and even put it on the repo of the idea plugins.
 
12:10 AM
it's not like wordpress.com where you have a complete template, but you're also limited by it. With github pages you actually have to upload the HTML.
 
@Szabolcs No, I mean the Wiki
which has the advantage, that everyone can edit and has a way to suggest features and discuss about directions etc..
 
@halirutan I think that's a convenient way to write docs.
 
OK, basically this was my question. I didn't know about github.io
 
Where are you going to host the jar?
BTW nice icon :-)
 
@Szabolcs Directly at jetbrains here
 
12:13 AM
cool!
 
That mean it can be installed directly from within Idea, right?
 
@Szabolcs yep
But they need to approve it first I guess
 
should I re-download from there to get auto-updates?
 
@Szabolcs Yes, that could be necessary, but I'm not sure.
@Szabolcs OK, I have a question about usability for you:
 
12:15 AM
@halirutan What else are you planning for the plugin? I could suggest features, but I don't know what easy to do.
 
@Szabolcs What would be the next must-have feature in your opinion?
 
@halirutan Well, I don't know about must have, but some useful things: 1. Control-click a symbol to go to its definition (but how do you find the definitions? the FE does have something similar though). 2. reliable refactoring, e.g. rename symbol (or does it work already?) 3. function-dependent warnings about syntax errors (the WB does it and it was quite useful when I was writing unit tests for MATLink)
 
@Szabolcs Beside the support of local variable names, there is an issue I find annoying: When you type f[x_ it suggests everything after the blank. What would you expect it to do there which helps the most? Do nothing until we see a ? or suggest a /; or or or..
@Szabolcs Let me answer that:
(1) is one of the next things to do. It's called referencing and you find the definitions by walking up the parse tree and looking for :=, = or /: or whatever. Then you know the reference and where/whether it is localized.
 
After x_ I would not suggest anything. Actually I haven't used the plugin a lot yet. I used it for this
 
@Szabolcs (2) This is a hard one, because you have to find reliable all occurrences without destroying variables which are not in the current localization (Module/Block/With)
@halirutan For this I need definitely some ideas from Leonid who could help to make this more robust.
 
12:23 AM
yep ... I wonder if the WB is smart enough for that
 
(3) This is called annotations and ranges from easy to very hard, depending on the check you want to do.
One important annotation (not directly an error) is to highlight localized variables in Function/Block/Module etc
 
The WB isn't smart about (2) either:
 
@Szabolcs We can do something like this definitely better.
I just think there might be hard cases but not those trivial things.
 
But I have not actually used it!
So I'd say don't make a priority.
Just make it possible to have reliable symbol replace: the system should know what is a symbol without me having to tell it (e.g. asd_asd is not a symbol but asd$asd is)
 
@Szabolcs This already works because we parse it.
 
12:29 AM
Sublime Text thinks that asd_asd is a symbol too.
 
ast_asd is currently parsed as Blank[asd,asd] which is not the correct Mathematica expression but a correct parse tree.
 
@halirutan I'd find it useful to have more fine-grained syntax highlighting. E.g. highlight patterns and if possible, highlight built-in symbols. It catches errors.
oops, it froze... with 300% CPU usage
 
@Szabolcs Can you post the code you were writing?
 
I wasn't. I disabled some plugins I wouldn't use, I restarted, it was fine. I switched to the browser, then a minute later switched back and noticed what happened. I'm not saying it was your plugin.
@halirutan I'd like to ask you some basic questions about Idea itself:
 
@Szabolcs Shoot
 
12:37 AM
@halirutan Is Refactor simply not working with Mathematica files? Rename gives me "Rename Symbol Impl and its usage to", but no matter what I type in the text box, nothing happens.
 
@Szabolcs No, I have to implement it first.
 
Or how do I rename a symbol?
 
Because for that, Idea wants to know all references of the symbol to rename everything.
 
oh I see
 
@Szabolcs In Java code just use Shift+F6
 
12:38 AM
Err, hello
 
Sorry
@Rojo Hi Rojo
 
Yes, that's Refactor -> Rename.
@halirutan Can I use code folding?
 
@Szabolcs In Java, yes. In Mathematica this extension needs to be implemented.
 
@halirutan I created a project. It created IGraphR.iml and lots and lots of xml files inside .idea. Are all of these part of the project description and necessary for the system to function?
 
@Szabolcs Let me say a general word about the plugin:
@Szabolcs yes. Don't touch the .idea folder. Just put .idea into your .gitignore
 
12:41 AM
@halirutan What about the .iml?
 
@Szabolcs The iml is the project file which you could put on the repository.
As I understand it the iml is system independend and the .idea contains you local settings.
 
@halirutan Can you do more fine grained syntax highlighting? (What I asked above)
 
@Szabolcs yes, let me reply to that.
@Szabolcs Yes it possible easily. Let's take the patterns as example. What I would have to do is implement an annotator which matches parts of the parse tree. Then you can highlight those parts.
 
@halirutan Bug: Nested comments are not highlighted properly (they're allowing in Mma)
 
@Szabolcs I know.
 
12:45 AM
 
@halirutan This is currently done by the lexer and not the parser. The lexer cannot do that easily.
@Szabolcs Which patterns do you want to highlight for instance? (I assume in green)
Because Mathematica does not highlight f[x_]
 
just x_ is okay
for a start, Blank
plus its name and head
I don't want to highlight ? and what comes after because that may be a more complex piece of code
 
@Szabolcs No problem.
 
I'd also prefer to have built-in symbols highlighted. It catches typos.
But I'm just giving you ideas, not asking you to work :)
 
@Szabolcs Different color?
 
12:50 AM
yes
 
@Szabolcs Do you prefer something?
 
I prefer black for built-in and blue for other things
but I don't have strong feelings about it and I know others prefer the inverse
This would match both the WB and the front end though
 
@Szabolcs You don't use Darcula style?
It's a shame ;-)
Settings -> Appearance -> Theme -> Darcula
And a restart
 
OK ... then it's more difficult :)
 
@Szabolcs You could have a look at Settings -> Editor -> Colors&Fonts
@halirutan To be consistent I reused colors from General and Java.
 
12:56 AM
Do you know how to bring up the inject language thing for a string?
@halirutan that's yourself :)
 
@Szabolcs You mean that strings are parsed differently?
(or parsed at all and not just skipped as string)
 
@halirutan I'll look it up and tell you later :)
We're going to go out for a wwalk with my wife
 
@Szabolcs OK. Have fun.
 
(I can't say 'not now' this time :)
 
@Szabolcs Mine is already sleeping (3:00 am here)
 
1:00 AM
(when I type a comment, after (* a little idea comes up suggesting to "inject a language". I was hoping I could mark R code as such in string. But I'll look it up later. Got to go!)
 
1:11 AM
@halirutan do you have installation instructions somewhere for the IntelliJ plugin?
 
@rm-rf When it is approved by Jetbrains, you can just download it through Idea by using
Settings -> plugins -> Browse repository
The you search for it, klick, restart and that's it.
@rm-rf Want it now?
 
@halirutan Oh, so it's not directly installable from github?
@halirutan Yes, I'd like to try it
 
@rm-rf Can you send me a mail?
@rm-rf No, the github is only the source-code for development
@rm-rf But to deploy it from within idea (once you have set up the plugin-dev environment) is just one click.
 
Ah, I see
@J.M. You here?
 
@rm-rf I am now.
 
1:20 AM
@rm-rf have you send an email?
 
@J.M. Did it work on the older version of MATLAB?
@halirutan yes
 
@rm-rf Tsk, forgot to send an e-mail on that, but I still got the same error.
 
Do you remember which one? Was it a bunch of "non atomic expression" or "not a valid replacement rule"?
 
@rm-rf It was complaining about not being able to find a DLL. I forgot which, but it was different from the libmx.dll from before.
 
'ello everyone. Glad to see others spending their Friday (~night?~) crunching. :)
 
1:25 AM
@J.M. Hmm... so it didn't even launch then.
 
@Ghersic I could pretend that I was already out, got drunk, a lot of girls and I'm now sober again programming ;-) but that would be a lie. I read a good night story to my daughter, watched Expendables 2 with my wife and hmm now I'm programming.
 
A well spent evening, it sounds.
 
@rm-rf Yeah, if I had more time to spend on that computer, I'd try to debug, but I was in that university for only a short time.
 
@Ghersic Yes, not bad so far.
 
@halirutan "Once upon a time, there was a nasty bug threatening all of Daddy's programs..."
 
1:28 AM
@J.M. hey, that's my story!
 
1:45 AM
@rm-rf Hmm, you mail came back. Do you have any quota?
The plugin jar is about 3.5 MB big
 
haha yes.@J.M.
 
@halirutan huh... I didn't know they enforced a limit. And 3.5MB is paltry... Ok, let me try a junk id
 
@rm-rf OK, I sent it.
 
@halirutan Thanks, it's now installed.
 
@rm-rf Fine. You might want to have a look at this:
 
1:59 AM
@halirutan Uhh... sorry for the stupid question, but how do I create a new file/buffer?
(something that always annoys me in Eclipse and the like)
Cmd-N asks for a class name
 
@rm-rf Idea is project-based
Do you have a project open?
 
I have a project open, yes
 
Alt+Insert
Or right-click on the folder where you want to create the file
Alt+1 and you get the project view
with its folder structure
 
Oh ffs!
Thanks, lol
It's very nice, @halirutan :)
 
@rm-rf Still a lot of work to do and I struggle from day to day with the huge intellij open-api.
I know what I want to do and I need days to find out how to include it.
 
2:14 AM
@halirutan Is there any way I can help (without knowing java)?
I'd also be fine with learning it a little to tackle smaller parts of it
 
@rm-rf Indeed there is. We will need a lot of people who have a very detailed idea about how features should work. Example:
Let's say you have a package-file and the parse-tree (which is pretty much the TreeForm). Now you see var1+3 anywhere in the code. Can you determine reliably in which local Module/Block or where var1 was defined?
 
Should be possible by walking up the tree, no?
btw:
 
@rm-rf Yes, but you have to check a lot of things: Was the symbol defined using Set, SetDelayed, TagSet..
In a Module, Block, ...
 
"Errors in the preceding expression"
 
Aehm.. this shouldn't happen
 
2:21 AM
I installed your plugin, followed by IntelliJ Vim. Those are the only two changes I've made to my fresh install
or was it IDEA Vim? One of the two (from the in-app repo)
 
@rm-rf Can you install another plugin?
 
Any plugin ok?
 
Its call PsiViewer
It's in the repo. Just go to Plugins and browse repo
 
@halirutan All's good now. Why was that needed?
 
No, it wasn't but it would have helped to debug the error
 
2:24 AM
Looks like Ctrl-J doesn't work anymore if IDEA Vim is installed
 
If you have some Matheamtica test-code, you can now make right-click and PSI-Viewer -> View whole file
 
"No templates defined in this context"
 
@rm-rf What should that do?
 
@halirutan Doc lookup
 
@rm-rf Are you on OSX?
 
2:27 AM
Yeah
 
@rm-rf And the vim plugin disables the doc-lookup?
 
@halirutan Yes. It worked before I installed the vim plugin
 
Maybe it just set a different shortcut
 
@halirutan That's what I was just looking at... hold on
 
@rm-rf Can you try View -> Quick Documentation instead
 
2:29 AM
@halirutan Nope, disables it
 
@rm-rf Maybe they think real vim users don't need no documentation ;-)
 
@halirutan I don't need documentation for vim, true ;)
 
@rm-rf show-off. :P
 
3:25 AM
@Szabolcs I implemented a stack of states. Nested comments should no longer be a problem
OK. Enough for tonight. Me Needs["Sleep`"]... see you all.
 
@halirutan g'night bald one
 
3:41 AM
@belisarius If you don't mind a sensitive question: how much hair do you have on your head?
 
@J.M. The sensitivity of the question depends more on your intentions than in the answer
 
@belisarius Well, if it discomfits you to answer whether you possess a tonsure, a ponytail, or whatever, then you should certainly refuse to answer. :)
(For my part, my hair has the appearance of salt-and-pepper.)
 
@J.M. I really dislike inverse animistic metaphors. Your hair is a biological byproduct. It can't be nothing near ClNa
 
4:19 AM
 
4:38 AM
 
 
12 hours later…
4:48 PM
@J.M. You around?
 
@belisarius Whaddya need?
 
@J.M. Just a comment
@J.M. Lately several notorious members are posting a lot of answers as comments. You're one of most conspicuous doing that. I'm not sure if that is a good policy ...
 
@belisarius If I could elaborate for everyone's benefit, I'd write a full answer. I'm all for shortness, but I don't quite like dumping bare code or dumb unhashed guesses as answers.
I have an internal standard to maintain.
 
@J.M. But many times your "comment" is enough as an answer, so nobody is going to elaborate
 
@belisarius Any examples on hand?
 
4:56 PM
0
Q: cross product involve Matrix vector

matheoremI want to do cross product involve paulimatix vector $\vec \sigma = \left( {{\sigma _1},{\sigma _2},{\sigma _3}} \right)$, for example, $\vec \sigma \times \left( {1,2,3} \right)$ s:= Table[PauliMatrix[i], {i, 1, 3}]; Cross[s,{1,2,3}] The above code will not work. The only way I can think o...

 
@belisarius I have a good feeling there's a solution that doesn't need Cross[] that I'm just not seeing right now.
Also, it was a trivial rewrite of OP's idea (that he ascribes to the Wizard).
 
5
Q: What's the meaning of existence of Directive?

xzczdSometimes I see code samples in the document or in this site using Directive, but I haven't yet find a case that Directive is necessary for so long. Usually it can be replaced just by List(except for Graphics and Graphics3D, in which Directive can be replaced by Sequence) and the appearance of th...

5
Q: question about Inner

HyperGroupsquestion1: (code 1 something wrong, Why? and how to overcome this to achieve the next code's effect) Inner[RotationTransform,{Pi/4,Pi/4,Pi/4},{{0,0,1},{1,0,0},{0,0,1}},Composition] (code2 it's ok, but seems type too much characters) Inner[RotationTransform,{Pi/4,Pi/4,Pi/4},{xx,yy,zz},Composi...

Of course, you're a free soul ...
sorry, I need to cook something for a ravenous teenager
 
@belisarius My proposal is clearly inferior to kptnw's. :)
 
c u later
 
@belisarius I don't think it answers (my interpretation of) OP's question of "can I live without Directive[]?". Clearly, one can do without it if you're sufficiently determined...
@belisarius see you. Have a good meal!
 
hhh
5:35 PM
I need to vizualise bijection between decimal numbers and 2-by-2 matrices eg 0.01 correspond to [0,0;1,1] matrix.

Is there any simple way to vizualise this?
 
@hhh How do you plan to represent the decimal number corresponding to {{Pi, Pi}, {Pi,Pi}}
?
 
hhh
(Only zeroes and ones allowed in the matrix...)
The vizualisation is so that the vertical axis has the 2nd decimal and the horizontal axis has the first decimal.
 
What is the function's domain?
 
hhh
Not relevant here: you can use any randomly generated ones-and-zeroes. For example,

0.1<--> 0101
0.2<--> 0000
0.3<--> 0110
0.5<--->1000
0.6<--->1111
...
0.9<--->1010
1.0<--->1111
0 could be white and 1 could be black
 
@hhh Why do you think the function's domain is irrelevant?
If you want a bijection, the domain is the first thing to take care of
 
hhh
5:47 PM
Because it is not the puzzle, the puzzle is to vizualise this kind of dat with arbitrary correspondences like above.

sorry it is not a bijection!
 
"I need to vizualise bijection between decimal numbers and 2-by-2 matrices eg 0.01 correspond to [0,0;1,1] matrix. "
 
hhh
Yes? It was a mistake, I realized this is not a bijection. The right word is correspondence: there are pairs having some decimal number and some matrix.
 
@halirutan are you around?
 
@rm-rf morning toad
 
Good morning :)
 
5:49 PM
@belisarius If he's a brain and a toad... "broad"?
 
@J.M. tadpole and brain ... train?
 
@J.M. epic
 
Lol... wolfies? He's not usually insane...
 
@rm-rf perhaps he just needs some money
 
 
1 hour later…
hhh
7:21 PM
pastebin.com/raw.php?i=CaLPhp4M <--- how can I vizualize this kind of data in mathematica? Any easy way to turn it into a matrix?
1,1
0,1

should be {{1,1},{0,1}} in order to use Matrixplot(...data here...)
-
 
@hhh Why not actually look up the documentation, for once?
2
say, something like Import, for instance...
 
7:37 PM
@hhh You already deleted you question about that
 
hhh
but it does not work as expected, I must have wrong type...debugging, close to solving it :)
 
@hhh leave out the "Table"
 
hhh
Nice one, it works! Thank you.
 
hhh
8:14 PM
I need to create custom axises like the tickers and I need to somehow add a grid and add information here and there.

I am not sure whether Mathematica is the easiest to do them, just photoshoping?
When I tried to use ticker for the axis, they become too closely packed -- there must be better command.
Here the plot is from 1 to 40 but I should rename them from 0 until 0.99: x-axis having 2nd decimal and y-axis having 1st decimal
Suppose very simple plot like this: is it possible to overwrite the axis things (4,6,8,10 etc) with something like (0,0.01, 0.02, ...,0.99) -- without actually changing the photo?
 
@hhh Which "photo"?
 
hhh
8:36 PM
The last one: I simplified the earlier problem to simpler one to make it answerable.
 
amr
@hhh here's something that might help:
MatrixPlot[RandomInteger[{0, 1}, {10, 10}],
 FrameTicks -> {
   {{1, "my house"}},
   {{1, "yo house"}, {8, Framed@Column[{
        "ergo, you too far to do anything.\n now look at this plot:",
        Plot[x^2, {x, 0, 1}]}]}},
   {{1, "yo mamma house"}, {2, "B"}},
   {{1, "yo sista house"}}}]
to give you an idea of the flexibility
there is also a similar Mesh option. you just need to use the documentation. F1 is your friend.
 
hhh
9:09 PM
Is it possible to create something like this? I created this with photoshop but now wanting to do it in Mathematica. Is this label and some grid command?
@amr Thank you, I cannot understand one thing with it: is it possible to add a tick over the photo with alpha channel like the above or is it always on the border?
 
@hhh Look, let me be frank with you (for the hundredth time!): If you want to use Mathematica as a serious tool, then buck up and start using the documentation and learning how to use the different options yourself. Don't keep asking one little question after the other in chat/main instead of using the tools already available (you've been doing this for over 6 months now). You can't be playing the "Oh, I'm still a newbie" card for that long.
If you are not interested in learning Mathematica, then please continue to use Photoshop and be done with it.
 
@rm-rf Damn. I was typing the same thing.
@hhh Also, you deleted today a question after it had been downvoted once. Just imagine how the users that had started to answer that one feel towards you now ....
like me, for one
 
hhh
Well, it was bad question -- worth to be downvoted. Only I can say is sorry but I don't want to ask poor questions -- if I understand why it is poor, I let it go and start over.
 
9:27 PM
@hhh Try to think about that in advance and NOT after somebody else started to put his time and effort into answering it
 
@belisarius maybe you shouldn't be putting time and effort into poor questions? ;) :D
(at least, not before editing it first to make it decent/legible/answerable, if possible)
 
@rm-rf Seriously, what I was doing was trying to understand it. Not an easy task by any standard
 
lol, that bad eh?
 
@rm-rf Well, you know. When you find something you can't understand, and you was already exposed to a few clever faculty members, you tend to doubt yourself too
@rm-rf I've a list, and a list of lengths. Is there something that builds me a list of sequential sublists with that lengths? Example follows
f[{a,b,c,d,e},{1,1,3}]
{{a},{b},{c,d,e}}
 
@belisarius Yes, I think Mr.Wizard's dynP is what you need
 
9:36 PM
@rm-rf Yep, it is, thanks
 
Or since you have v9, you could use PartitionRagged
Internal`PartitionRagged[{a, b, c, d, e}, {1, 1, 3}]
 
@rm-rf Hey! that's great!
:)
 
Yeah, it's pretty handy!
 
`PartitionRagged[vec_, lens_] :=
MapThread[vec[[#1 ;; #2]] &,
With[{a = Accumulate[lens]}, {a - lens + 1, a}]]`
@rm-rf The code is in the help for MomentConvert[]
 
@belisarius Heh, that's exactly the built-in implementation :)
 
9:51 PM
@rm-rf I wonder why someone would come to a site devoted to Mathematica programming thinking that the crystallographic or the vulcanolastic jargons will be welcome
 
amr
10:07 PM
@hhh @hhh the easiest way to do that is going to be by combining your own Graphics with the plot. example:
m = MatrixPlot[RandomInteger[{0, 1}, {10, 10}]];
g = Graphics[{
    Rectangle[{2, 2}], Text["A", .5 + {2, 3}],
    Transparent, EdgeForm[Black],
    Rectangle /@ Tuples[Range[{5, 5}, {8, 8}]]
    }];
Show[m, g]
 
hhh
@amr Wow that is very cool! How did you find the Show?
 
amr
@hhh still, this is not magic. you are able to figure out a lot of this yourself. just learn to use the F1 button more often :)
@hhh it's in the documentation
:)
 
hhh
"shows graphics with the specified options added." -- this line does not tell me much, did you understand it from this?
 
amr
that means that you can change the options of the graphics with Show
but it mentions the other usage, which is "Show[g1,g2,...]
shows several graphics combined."
the nice thing is that it uses the same coordinate system for all the graphics
 
hhh
Does the combined means they are on top of each other or can they be side-by-side or anyway?
 
amr
10:13 PM
it puts them on top of each other
 
hhh
(I haven't never really understood when to use label/annotate/show/etc, sometimes you can do the same thing with them)
 
amr
yea. Show is for combining the actual content
like for example, if you have 2 3D plots or graphics, Show will combine them into a single 3D pane
you couldn't do that with Overlay
g1 = Graphics3D[Sphere[]];
g2 = Graphics3D[Cuboid[]];
Show[g1, g2]
@hhh actually i'm surprised the documentation for Show isn't more complete. most of the documentation is very good though.
 
10:42 PM
@belisarius Are you still here?
-1
Q: Calculate variance of random walk?

dabdGiven several discrete random variables such that $p(Z_i=1-2k)=p$, where $k$ is a small real number, and $p(Z_i=-1)=1-p$, a random walk is the sum $X_t = \sum\limits_{i=1}^t Z_i$. The expectation is given by: $$\mathbb{E}[X_t] = \sum\limits_{i=1}^t\mathbb{E}[Z_i] = \sum\limits_{i=1}^tp(1-2k) -(1...

 
@rm-rf Back to a grey brain from a black brain?
 
Not entirely sure why that is off-topic...
@Szabolcs for the weekend, yes :)
 
hhh
(with retina support :P)
@amr thank you for your help!
I created there a tick for "0.99 same as 1.00.", I guess there is some arrow command to make it more elegant pointing to the corner -- well things I know so far. My next goal is to add there density plot with rainbow colours (and more data), will look cool -- but I want to do it :D
 
amr
11:23 PM
@hhh for the arrow, you could use one of the text forms: reference.wolfram.com/mathematica/guide/…
like [LongRightArrow]
these are regular text so you can put them in strings
in the worst case, you could create your own arrow in a Graphics and then just add it with Row
 

« first day (472 days earlier)      last day (4009 days later) »