« first day (473 days earlier)      last day (4020 days later) » 

12:11 AM
Hey @halirutan, are you around?
I sent you an email.
 
@Szabolcs Saw it.
 
@halirutan I have 1 bug (possible?) report — sometimes, doc completion only picks up the first letter (this might be the case if a single letter symbol for the first letter exists)
 
@Szabolcs I have to look whether it is necessary to tell the plugin what tokens I use for strings.
The the injection could work.
@rm-rf Can you give an example I can reproduce?
 
12:27 AM
For instance, type foo Integrate| and with the cursor at |, press Ctrl-J
 
@rm-rf Let me check this.
 
Don't break the flow of typing... if you click elsewhere and then return to Integrate, then it works
@halirutan btw, re: the vim keybindings, all one needs to do is to go in the settings and unset Ctrl-J and rebind it to quick docs
(In case someone else pings you with the same question)
 
@rm-rf Yes I see. It seems I have to update the parse tree before extracting the text.
@rm-rf You could create an issue in the issue tracker for further reference and give the solution.
 
@halirutan So that is separate from your github repo, right?
What is the distinction and which one has the main development?
 
@rm-rf @Szabolcs I'll write the answer to the M.SE question first giving some screenshots etc and providing a central list of all information: GitHub repo, Bug Tracker, Jetbrains repo, etc
@rm-rf The code repository is on GitHub, but I use the issue tracker from jetbrains because it is quite powerful.
 
hhh
12:36 AM
@amr You mean something like this Row["Hello, what is it?" , LongRightArrow[1, 2]]? Or did you mean GraphicsRow[...]? You cannot use them to label something with arrow let say on top of sphere?
 
@halirutan Ok, so at any point, the code in github will be the up to date, right?
 
@rm-rf And it can incorporate with GitHub meaning, when I fix a bug giving the tracker-id in the git comment when pushing it to the repo, then YouTrack sees this and marks the bug automatically as fixed.
@rm-rf Yes.
 
I've been going through the files, trying to make sense of a few things and seeing if there are little pockets where you have something unfinished and is within my reach to contribute
It seems like I'll also have to familiarize with IJ's API
 
@rm-rf Yes, there are a lot of stubs or unfinished things that I just wrote to test it.
 
@halirutan This is available even in github
 
12:39 AM
@rm-rf I know but I still like the bugtracker more
Just wanted to say that it is as easy as with the Github tracker
@rm-rf One example is: you can create a Mathetmatica project already, but it does not create the usual Applications file structure with Kernel, etc..
@rm-rf Or you can create a Mathematica SDK which parses an installation, finds its version number, JLink.jar and all AddOns packages.. but does nothing ;-)
 
12:58 AM
@halirutan Yes, I saw that :) Where should those definitions go in the plugin? Also, does your plugin follow some documented IJ plugin design guidelines or is it freestyle?
 
@rm-rf I have to decide this stuff. Idea has some code-style guidelines but they are not followed consistently.
 
1:25 AM
@rm-rf Still around?
 
amr
1:44 AM
@hhh no i mean
"blah \[LongRightArrow]"
if you create your own special arrow or whatever with Graphics, you can do
Row[{"blah  ", Graphics[blah blah]}]
 
hhh
Row[{"blah ", Sphere[]}] <--- like this? Cannot see what you mean.
wait Graphics is only for 2D so this does not hence work, not Graphics object
no...wait...sphere is one dimensional with only radius. Now not sure about the term dimension.
No, Mathematica uses graphical definition for the dimension. So Sphere is 3dimensional thing, returning Graphics3D object.
So something like Row[{"blah", circle[]}] should work, testing...
 
2:05 AM
@hhh Sphere[] does not return a Graphics3D object.
 
hhh
Sphere renders as a sphere in Graphics3D. ?
What does this mean?
 
Yes.
Sphere is a graphics directive which can be used inside Graphics3D
 
hhh
I see, easy to misunderstand things in manuals...thank you!
 
@hhh And something like this should work because there is no Graphics object
Row[{"blah", Graphics@Circle[]}]
 
hhh
I need to somehow align the text by creating a white-box where to put the "Smiles to" text to its bottom, thinking...
Text is a graphics primitive that displays the textual form of expr centered at the point specified by coords.
.this means that Text is not graphics object?
 
2:17 AM
@hhh You can use Text inside Graphics
But normal strings are not graphics, no
 
hhh
 
@hhh Read the documentation to Graphics.
It needs to be a list as first argument if you want to give several graphics directives.
 
hhh
I got it working except the Row...trying to create the same picture with Row.
Row is an object that formats with the Subscript[expr, i] arranged in a row, potentially extending over several lines.
(cannot understand this)
 
@hhh It just puts expressions in a row..
be it graphics or something else
 
hhh
What is the expression?
 
2:31 AM
@hhh Everything in Mathematica is an expression, be it 1+1, a, variable or Integrate[f[x],x]..
Therefore, this works:
Row[{Integrate[f[x], x], "Blub", Graphics@Circle[]}]
it formats with the expressions arranged in a row, potentially extending over several lines...
 
hhh
I see! I missed (sign again) curly brackets...thank you.
I have to learn to read manuals correctly, thanks for helping! Have go sleeping...
good night!
 
2:49 AM
@hhh Good night
 
@halirutan Tiny correction: Sphere[] is a primitive, not a directive. Directives modify the appearance of primitives (colors, opacity, etc.)
 
@J.M. English has so few words and I still mix them.
 
@halirutan Can't blame you. English is actually more confusing than German. It's a miracle we still use it anyway.
 
 
5 hours later…
7:37 AM
0
Q: Is there some packages or functions to convert mathematica notebook to stack?

HyperGroupsI mean write questions in mathematica notebook, and save as html, and convert it to markdown or html supported in mathematica stackexchange then published just copy to here. I tried four spaces ,* *, such mark is easy to achieve, are you intrested in the topic: write in Mathematica and Conv...

 
 
1 hour later…
8:44 AM
hi
@Rojo oh very nice to meet you here I got a lil question
 
@DominicMichaelis Hao
 
In your answer here I got the problem it doesn't work in a complete new mathematica session, but only once i already I entered a non canonical unit
 
@DominicMichaelis Oh
Ok, I'll edit
 
Did you try it yourself ?
 
@DominicMichaelis Done :)
Check it now
 
8:49 AM
yeah now it works thanks :)
 
No problem
Thanks for noting the issue
@matheorem you around?
 
oh Quantity of Mathematica is my dead I have absolutely no idea what unit is what, without mathematica i am so lost :D
 
@DominicMichaelis btw, Quantity generally slows things down a lot. So if you're the kind that can keep track of a few units in your head/pencil & paper or convert everything to dimensionless quantities, then I'd highly recommend doing that.
 
9:54 AM
@halirutan are you around?
 
10:22 AM
@rm-rf yes
Hmm, is it really possible that optical illusions are going to be one of my top answers? Embarrassing, I should become a magus.
 
@halirutan I know Szabolcs asked you for identifying System` functions (I'd like that too!), but is it also possible to get finer grained syntax objects so as to be able to customize (and perhaps useful for other things)?
 
@rm-rf Can you give a specific example?
 
For instance, instead of identifying the __ in foo__Head as an operator and foo and Head as symbols, it would be nice to consider foo__Head as a single atomic unit (or maybe not necessarily atomic) "pattern"
 
@rm-rf It is parsed into the abstract syntax tree Blank[Symbol[foo], PsiElement["Blank"], Symbol[Head]]!
Have you installed the PsiViewer already?
 
@halirutan Yes, but Editors>Colors & Fonts>Mathematica lists only a few objects that I can customize
Or is there some way to do it, but I don't know how?
 
10:35 AM
Ah, so you speak about highlighting?
 
Yes
Sorry, that's what I meant by "customize"... I realize that wasn't very descriptive
 
@rm-rf Currently, only the lexer tokens are highlighted. All the fancy highlighting is still missing but will be added.
 
ok
 
And to answer your question, yes, there will be a more fine grained highlighter.
 
great! Can't wait for it :)
 
10:37 AM
This highlighter runs through the AST and markes all the fancy stuff, e.g. the patterns.
 
btw, did you write a custom AST building code or does IDEA have tools that generate it on the fly?
 
@rm-rf Idea provides me with the building tools and I have to use them during parsing and build the tree.
@rm-rf Do you have the code available?
 
@halirutan Yes
 
Look for instance at Mathematica_IDEA_plugin/src/de/halirutan/mathematica/parsing/prattParser/parsel‌​ets/BlankParselet.java
This small parselet parses things like foo_blub
We get left which is the left operand which is already parsed: "foo" in this case.
Then I call
PsiBuilder.Marker blankMark = left.getMark().precede();
 
Thanks! Will go through it (I can follow the code a bit now)
 
10:43 AM
to get a mark before the foo because the whole subtree I like to parse now is [foo,Blank,blub]
@rm-rf I will write a detailed documentation for possible collaborators where to start and how things work in principal.
 
@halirutan That would be very helpful
Since you have the parser implemented fully, the rest of the functionality should be easy to add on, given enough dev time
 
@rm-rf Right.
Because the rest is to think about how you get/mark/change things with the help of the parse tree.
 
alright, I gotta go sleep now... it's almost 4am
goodnight @halirutan
 
@rm-rf Good night rm.
 
 
8 hours later…
7:06 PM
I love this comment :)
The result _(to his problem!)_ looks really messy. I could not interpret it. Can you give me the solution?
Ha!
 
7:35 PM
From here, BTW
3
Q: solving a cubic equation

upaudelI need to find the minimum $r$ and the maximum $k$ of the following cubic equation for which there does not exist three distinct real roots. $rx^3-rkx^2+(r+k)x-rk=0$. Is it possible to find such $r$ and $k$ analytically? Or if you can provide me help using mathematica, that would be fine too.Th...

 
 
2 hours later…
9:38 PM
@belisarius we should have an unofficial "Best of" collection with these gems... too many good ones go to die when deleted
 
10:00 PM
@rm-rf Some time ago I asked on SO for some kind of museum for the reversal badge, as the answers that got the badge also get deleted a few days after that.
refused, of course
 
@belisarius well, the museum does exist... kind of.
 
@rm-rf Nah, it doesn't. When a Q is deleted you don't receive the badge again, so many of them aren't recorded in that list
 
@belisarius No, that behaviour was changed long ago... now you get the second badge even if the previous one was deleted
 
@rm-rf really? I didn't get the reversal badge two times in a row due to deletions. Damn!
And I love that badge :D
 
@belisarius If it's deleted before it hits -5 (or you don't get +20), then you don't get it of course...
I'm not sure if they fixed the old behaviour retroactively (probably not)
@belisarius Hmm... so that's why you put effort into crappy questions here :P
 
10:10 PM
16
Q: The Lost Worlds of the Reversal Badge

belisariusI love the gold Reversal Badge An outstanding answer to a bad question is something not seen on a daily basis. I enjoyed reading those answers, and I was even able to provide one. But the questions are awful, and SO is a Q&A site ... so they are getting deleted. Sixty-four badges...

 
@belisarius yes, I'm aware of this
 
Hello everyone, happy Sunday!
 
@rm-rf Nope, for earning a reversal badge, the site's audience must be huge
Sunday night blues is an acute condition, mostly affecting nine-to-five workers and students. This condition is characterized by anxiety about the week ahead and a sense of helplessness and depression. It most often occurs on Sunday afternoons and evenings. It is also referred to as "school bus blues" or "Sunday night depression". See also * Seasonal Affective Disorder External links * [http://bostonworks.boston.com/globe/articles/111603_sunday.html Anxious workers suffer Sunday-night syndrome] - Article in the Boston Globe * [http://seattletimes.nwsource.com/html/health/2002589860_heal...
 
@belisarius Heh, I know... just kidding :)
Although, I believe acl is pretty close to one... he just wasn't lucky enough to hit +20 (or the question -5)
The question wasn't actually a bad one, but the OP was kinda being a dick...
 
@rm-rf Is the Q still alive?
I may help :D
 
10:14 PM
@belisarius here you go
 
@rm-rf I did my best :)
 
:)
@belisarius I'm more fond of the populist badge...
 
@rm-rf That one is good too
 
I have 2 here and am actually just 1 vote away from a third, but I don't think I deserve for the third one (although, my answer was valid and good before the OP changed the question drastically and placed a bounty for the new question -- I hate it when they do that)
 
@rm-rf I have one on So
32
A: Code Golf: Conway's Game of Life

belisarius Mathematica - 179 163 154 151 chars a = {2, 2, 2}; s = Export["out.txt", CellularAutomaton[{224, {2, {a, {2, 1, 2}, a}}, {1,1}}, (ReadList[#1, Byte, RecordLists → 2>1] - 46)/ 42, #2]〚#2〛 /. {0 → ".", 1 → "X"}, "Table"] & Spaces added for readability ...

 
11:20 PM
WTF they have an error in the doc of the GitHub Wiki which took me 10 min to find out..
 

« first day (473 days earlier)      last day (4020 days later) »