« first day (1373 days earlier)      last day (3412 days later) » 

00:11
@OleksandrR. Part of the context is also that his colleagues released a great introductory book on Mathematica just a few months ago. They have a lot of experience teaching Mathematica, and they offer a complementary online course for free.
But completely agree that there is no big downside to writing a book of course. Kudos to him for doing it.
@Pickett oh, I see. I didn't know about this other book. Although I suspect that Wolfram had already made considerable progress with his book by the time the other one was released, unless he writes very quickly. Plus Wolfram's book is free and available online, which may help. I was actually surprised that he decided to write an introductory book since to my mind it doesn't seem the most rewarding thing to do.
00:26
true
01:11
@kale congratulations on your innovation award
@Verbeia got one too!
@Silvia thanks for your NURBS link. but that wiki page doesn't discuss the closed curve.
01:43
@ShutaoTANG The wiki page serves as an introduction, there are more complete books on NURBS, like this one (I'm pretty sure there are many books in Chinese on this topic, too).
Here's a very thorough answer to a question that has 27 upvotes yet it only got four upvotes currently. Please consider voting for it.
@Pickett Voted. Favorited the question, but didn't noticed the answer!
NLP for English is slightly different from that for Chinese. Sad didn't see much discussion on the latter one here :(
btw there are new attempt on the general NLP using CNN, which looks promising.
@Silvia Thank you, I think the author deserves it. I don't know that much about NLP, but I like the potential of it as a technology.
@Silvia I have been reading the classic textbook "The NURBS Book" this year, however, this book just introduces the open curve, doesn't discuss the closed curve. In addition, I also searched the papers that discussed the closed curve, unfortunately, few paper do that work in detal:)
@Pickett I believe the future of AI! One day people will be able to live forever in the cyber space by simply executing a Import[$Me, "Full"] :D
01:57
Yes, that will be nice :)
@ShutaoTANG Did a quick check, I think chap 7 discussed circles and conics, which are closed curve (though not general type). I'll look into your question today later. :)
@ShutaoTANG (Do you have a copiable code?)
@Silvia I used the theory here(see section Theory about generating a close B-spline curve) to generate a closed curve by the control points.
@Silvia About the global B-spline curve interpolation(open curve), please see here
@ShutaoTANG Will check them when having lunch.
@Silvia In addition, jojja give me this suggestion: Its the same linear problem you just add more points to the equation that wraps around the perimeter, same way as contol points do. The idea is described in one of the links in the aswers allready provided by you: It reads plain and clear at the end of this page. Your problem seems more fundamental than that, your most probably having the message lost in translation
@ShutaoTANG Well in that case we can discuss in 中文 :)
02:13
@Silvia 好的,其实我想这个问题好久了,对于用控制点生成闭曲线,我花费了一个月的时间进行各种尝试。然而关于全局闭曲线插值,我很少看到用的资料,有一篇论文捣碎讲解了闭曲‌​线插值,但是我都不知道如何实现(他紧紧讨论节点的选择)。谢谢啦
@Silvia 这个是CATIA的结果
@ShutaoTANG Let's discuss here: chat.stackexchange.com/rooms/30569/…
03:14
@MichaelHale Help me out here...
I know that I can write "He didn't write back"
Is it possible to say "He didn't wrote back"?
And what about "He hasn't written back"?
(or "he hasn't wrote back")
03:28
@halirutan first one and third one are both grammatically correct.
"did" is already in past tense, so no need to put "write" in past tense as well
@J.M. I just wanted to make sure. I know this, but sometimes it's so boring that English has so few possibilities.
With "has", "have", and "had", you use the past participle form, "written", instead of the past tense.
@halirutan I don't know about "few"; there are a lot of verbs with irregular tenses; this can confuse people who don't speak English so much.
@J.M. Yeah, there are some traps, but most of the usual ones are easy to remember.
At least, German is mostly consistent with respect to verb tenses, I believe.
@J.M. Yes, it is a pretty good mapping.
 
3 hours later…
 
1 hour later…
07:56
I don't know why the user give me a downvote.
9
A: Implementation of smoothing splines function

Shutao TANGHere, I will give a Global B-spline Curve Fitting according to the least-squares method. LEAST SQUARES CURVE APPROXIMATION Assume that $p\geq 1, n \geq p$, and $Q_0 , ... , Q_m (m > n)$ are given. We seek a $p$-th degree non-rational curve $$C(u)=\sum_{i=0}^{n}N_{i,p}(u)P_i \quad u \in[0,1] $$...

 
2 hours later…
10:10
@Szabolcs hi, are you around?
10:27
@Kuba Just a little bit ... might leave any minute. Ask!
@Szabolcs Great, can one use StartProcess and Friends to push git repository with interactive password input?
@Szabolcs I'm not able to get "password for: " from the process
I'm not very experienced with process related functions but you can assume I know what to do with git bash
@Kuba Never tried that. But I wouldn't be surprised if it weren't possible. At least on Mac, there's some control of password fields: when you type into a password field, other applications temporarily lose keyboard control (read or write). I have no idea how this might or might not apply to terminals ...
Well, probably it doesn't apply to terminals at all ...
@Szabolcs hmm, every "simple" command works, but after push origin master there is empty string in return
while in command line I get the password request
Sorry, my only experience with RunProcess was with MaTeX. I remember finding some weird bugs and sometimes not being able to read stdout properly. I don't remember the details ... that was with 10.1, I think.
@Szabolcs Ok, thanks anyway
10:58
Anyone else familiar with StartProcess?
:)
 
1 hour later…
12:22
@Kuba Worth a main site question?
When most people don't know the answer, that's often an indicator that it should be a main site question.
@Szabolcs I would love to know the answer but I don't know if I'm able to write a proper question.
I don't know how to name what is missing ;)
@Szabolcs Let me write it and please take a look if I haven't said anything stupid :)
12:36
@Szabolcs
0
Q: Interactive communication with process. How to catch and respond to password request

KubaTitle says it all so let me show it on Git example. Let's say you have your git executable on PATH: KillProcess @ process; process = StartProcess[$SystemShell]; WriteLine[ process, "cd path\\to\\repository\\directory"]; WriteLine[ process, "git push origin master"]; Pause[.1];...

@halirutan Just agreeing with J. M. Your second and fourth examples would sound wrong to a native speaker, but they would understand you.
Although actually I have heard native speakers use the fourth construction.
But that would typically be if you interrupt them to ask a quick question they might say "wrote" instead of "written" there. They wouldn't use it in something published, for example.
13:03
An example of English evolution I find interesting is dropping the "ly" from adverbs sometimes. If you are leaving someone's house I think it is more common to hear "Drive safe!" instead of "Drive safely!" A librarian corrected me on that when leaving a Wikipedia event a few years ago, so it stands out to me.
13:47
Reading S. Wolfram's preface to his new tutorial I increasingly feel he is the Donald Trump of scientific programming. Made his mark in the 80's and can no longer help himself from putting giant, golden W's on everything.
7
14:17
@MichaelHale We have this a lot in Germany. One very common mistake is to use where when it should be when.
When you have a relative clause which indicates a time, they use where. For instance: "Do you remember the time last year, WHERE we were playing football the whole night?".
14:34
@halirutan Interesting. I agree that "when" is more correct, but English speakers will often say "where" as well. I think I remember Steven Pinker discussing this in one of his books. About how it indicates the language speakers view time as a physical line, so they can refer to locations on that line using "where" in some situations.
@MichaelHale There are cases where this is fine too in German, but people tend to misuse it and now we have sentences like "This is the best burger, where exists".
@halirutan Hm, neither "where" nor "when" work in English for that. You would have to say "This is the best burger that has ever existed."
@MichaelHale Exactly the same here.
 
1 hour later…
15:40
@halirutan I just skimmed back through some of "The Stuff of Thought". I couldn't find exact discussion of "when" vs "where" quickly, but I found a few other interesting quotes about time in language.
15:55
@MichaelHale On a related note, Pinker doesn't think there is anything wrong with "drive safe," as he explains in The Sense of Style. The main reason is that today's English is a crossover between dialects where adverbs end in -ly, and dialects where some adverbs don't.
"When today's purists reflect on the ones that remain, like those in Drive safe, Go slow, She sure fooled me, He spelled my name wrong, and The Moon is shining bright, they may hallucinate a grammatical error and promulgate prissy alternatives" :D
@MichaelHale That book is probably his best.
I've been meaning to read "Sense of Style" but I was afraid it would be a giant rant against excessive prescriptivism. Most of the interesting things I saw were about exposition and classical style.
16:58
@Gabriel I get your point, but it still feels harsh to lump SW with The Donald. :)
17:12
@Gabriel Does anyone here know other CEOs who write and care about documentation this much? Hell, I know too many developers that think writing documentation is beneath them.
2
@Pickett I'll keep that in mind if I run into the librarian again. Good other examples he mentions. @Searke I follow him on Twitter, so I remember hearing about it, but I haven't checked it out. I read Blank Slate and Stuff of Thought over some college summers and then Better Angels after, but not his newest.
Is this a bug or am I too sleepy to maintain a sane mind?
@Silvia Looks fine to me. I never noticed the "excluding uppercase letters" for "@" in the StringMatchQ docs before. That doesn't affect your example, but I just always assumed it would match "A" too.
@MichaelHale I was introduced to him thru Blank Slate which was required reading for a course I took. Possibly the best linguistics course I took.
17:16
@MichaelHale Thanks! NEVER noticed that @ before!
@Silvia Speak of the Devil. I was just talking about this issue yesterday. StringMatchQ accepts "regex" like strings. Other string functions don't.
And I think I do need some sleep now.
@Searke And then they wonder why not a few people use their products in all the wrong ways. :)
Usually you need to use RegularExpression to create a regex
@Silvia Yeah, I've never used the "@" shortcut before, but I have used the "*" pretty frequently for the functions that accept it.
17:17
@J.M. They = me.
@Searke I think you can use RegularExpression in many string-related functions, no?
Although I'll probably be using "*" less now that they have StringStartsQ.
I'm not sure why they decided to support these mini regexs. It was probably a bad design choice. Not sure what to do about it now though
@MichaelHale Never used any of those * or @ or whatever else :/
@Searke :D Oh well, it's tedious, admittedly.
17:19
@Silvia Yes. RegularExpression is how you should use Regexs.
.. I would honestly prefer to remove support for the mini regex functionality
@Searke Agree.
Actually, asterisks have been used as string wildcards in Mathematica way before RegularExpression[] came along.
since it's only supported by a few functions like StringMatchQ
I'm staring at a line wehre I used it right now. Should probably update it.
but it would break backwards compatibility
17:20
Select[pages, StringMatchQ[#name, "Category:*"] &]
and so getting that done would be ... hard
Ah I remember where I use the *: in FileNames
Either way, you'll find that StringStartsQ , StringContainsQ don't support the use of wildcards like "*" without being wrapped in RegularExpression.
But as I'm on Windows, Everything is always my first choice for finding a file.
If they remove it, I'll probably end up using their ~~___ syntax even if it is more verbose.
But I actually don't know if I've ever used it for something that's not covered by StringStartsQ and StringContainsQ now. Except for all files like Silvia mentioned.
17:23
And more expressive :)
My most frequent use of wildcards in Mathematica: ?*`*compo*
I do hope future mma could have more support on CJK characters.
@J.M. OK that's my case too. Too frequent to remember :)
You can still use Regexs. You just have to use RegularExpression. That shouldn't be too verbose. What's really important is that regexs and normal strings are separate. We aren't bash or perl.
@Searke I'm an old awk hand actually, but alright. :)
The ~~___ syntax is a godsend. I've been saved from regex hell so many times by it. But yes. More verbose. There are downsides.
17:27
@Searke I think read it somewhere on the site that RegularExpression is slower than StringExpression.
Well... the regex evaluation isn't exactly built in... This is documented somewhere. It's some external thing.
@Silvia I remember that also, it's very counterintuitive, since it's supposed to be using PCRE.
@J.M. yes. There we go. That's it.
@J.M. I think RegularExpression will be translate to some internal symbolic form before feeding to the real regex engine, which makes it delayed.
@Silvia Hmm, yes, interpretation overhead. Still, it shouldn't be that much...
17:32
Did a quick look but can't find it, but I remember having seen a function named sth like regexCompiler
@J.M. Probably depends on how many times it has to be interpreted. Doing StringCases across a list probably only once, but Select with a StringMatchQ inside of the filter function is probably re-interpreted every time.
Anyway most of the time I use StringExpression, more intuitive grammar and more expressive, and possibly faster.
I shall go to sleep now. Nice talking to you guys! See you!
Sorry my memory fault. It's not anything about compiling regex, but a translator from StringExpression to regex: Semantic ` PLIDump ` stringExpressionToRegex
18:00
@Searke Unfortunately, he is a CEO, not a developer, not QA, not DR. Let me put it this way, no one cares whether I can cook high-quality steaks, as long as I don't do my job.
18:16
@Pickett Well, I guess it's the same person.
CEO, Owner, God..
19:12
@Searke Are you still around?
If yes, have you any idea about what is going on here? community.wolfram.com/groups/-/m/t/587755?p_p_auth=6IxvyERT See my second post in the thread. Also @halirutan might be interested.
In short, we have packedArray, a big real matrix. Then we have unpackedArray = Developer`FromPackedArray[packedArray].
I have a LibraryLink function that takes an array, makes a copy of it, then returns the copy. I benchmark it when passing packedArray. I get timing t.
The I pass unpackedArray, which will obviously get auto-packed. It's of course much slower, nothing interesting here.
Now I pass packedArray once again and notice that now it takes time 2t.
Why?
@Searke Cleve Moler of Mathworks seems pretty awesome. His blog doesn't need to always be about himself and he has made 2 great online books. I guess I am alone on this, but I just can't take S.Wolframs complete lack of discussing Mathematica as a team effort, or that many, many other systems before and since have similar technology. Maybe it is just grating to my ear.
Hypothesis: for some reason now the kernel makes a copy of packedArray before passing it to the LibraryLink function.
Is this correct? If yes, why would it do this?
I wish Todd Gayley were around ... don't see him post much anymore.
Also @xslittlegrass, please read above. I know you dug deep in LibraryLink.
OK, some other things. @Searke I'm really happy about `DistanceMatrix`: it performs very well. It's the kind of "convenience function" I like to see added. I'm hoping by the time the [[Experimental]] tag is gone it's going to perform even better on large packed arrays.
 
1 hour later…
20:41
@Gabriel I was actually thinking of him when I was typing.
@Szabolcs I'll look at it. But I don't know much about packed arrays and all the random things that unpack them.
@Gabriel It's advertising. Most advertising is awful.
@Szabolcs I'm glad to hear it performs well. I didn't have anything to do with it, but from what I know there was a lot of conversation about how to make it perform well
@Searke One nice thing is that it seems to be optimized for several distance measures. But for Euclidean distances I can still get a several times speedup with LibraryLink + OpenMP, that's why I said I hope it will be sped up even more.
Regardless, it's likely the fastest way to do this computation in pure Mma now, which is exactly how it should be for a builtin like this.
20:56
Huh. Really? That's the case for which I would assume it had already been super well optimised for.
The function has a lot of corner cases
like working with dates
But if you can easily outperform it with OpenMP and LibraryLink on some large data sets, then I would suggest sending in an example?
@Searke To support?
Yeah.
I mean let them know you have an example that you would like the developer to see
I have an example here BTW: community.wolfram.com/groups/-/m/t/585195
This example is specialized for 3D vectors. But I played with it more since then and made a general one (for N-D) vectors which also outperforms it.
Oh well. I'll forward it to the developer then as a suggestion myself
Tech support has to go through a lot of email from many people - some not reasonable.
2
So they (and by they.. I mean myself included when I did this) can have trouble responding to a ticket like this if it isn't clear what is being requested.
@Searke OK, so I should explicitly ask them to forward the example to the developer?
Well, suggest, not request.
21:07
I would say "I would like to file a suggestion. I have some code attached which shows how DistanceMatrix can be improved for Euclidean distances"
otherwise they'll be worried they themselves have to understand your code and probably help you with it somehow, which they may not be able to
Thanks for the advice!
Tech support at wolfram research is the only job where you can get yelled at for not remembering how to do residue calculus over the phone and have to walk someone through debugging some unicode related nightmare over a chat window at the same time.
2
I'll file it eventually. I'll have to remove the use of LTemplate, it would probably just annoy the developers.
@Searke Can you ask for that sort of help through chat? I thought chat was only for sales or dealing with licenses.
Oh you can ask for horrible things using chat. At least you could.
If you have any mercy in your soul you never will.
A typical chat conversation goes something like "Hey, my program doesn't work". Pastes 50 lines of awful code into window
I have never tried phone. I didn't even know it was possible. I don't think it's a good way to do technical support.
Strangely, whenever I wrote an email to The MathWorks tech support (MATLAB), they always called me on the phone ...
21:13
No. People love to read... their code... outloud.. over the phone at you.
I really find it scary that there seem to be so many people with PhDs ending up at WRI tech support ... I google up a few people ...
Very painful memories. Phone is really for having conversations with people who need to get concepts. It's basically for premiere service subscribers.
@Szabolcs Phds, research groups, ... armies...
so many interesting characters
lots of crazy people. People who need help calculating the "true" height of the pyramids
People who are wiling to pay insane amounts of money to get program that plots some index versus the position of some star in the sky
One guy who wrote and called us because Mathworld somehow promotes heliocentrism instead of presenting a balanced view with geocentrism
The most horrifying things you see are programs sent in by engineering Phds where the results are 100% floating point garbage
21:34
I take that back. The worst thing I can remember was a researcher at a pretty prominent institution who having already used the variables "t", "tau", the gothic mini t, the irish script hand for t, and all the other t looking alphabetic characters that exist
proceeded to being using a character from ancient aramaic that looked nearly exactly like tau or something
and the worst part was he was doing econometrics
 
1 hour later…
22:41
127
A: What are the worst notations, in your opinion ?

Richard StanleyThere is a famous anecdote about Barry Mazur coming up with the worst notation possible at a seminar talk in order to annoy Serge Lang. Mazur defined $\Xi$ to be a complex number and considered the quotient of the conjugate of $\Xi$ and $\Xi$: $$\frac{\overline{\Xi}}{\Xi}.$$ This looks even bette...

@Gabriel He's a fun guy. It's also nice that not a few important methods of numerical linear algebra were his stuff.
@Szabolcs Yeah, it is nice. Hopefully it will eventually support all the metrics Mathematica currently has, someday.
@Searke As in, the sort of stuff we'd be closing with swift justice were it asked over here? :)
@Searke I think it's one of those cases where "too little knowledge is dangerous"; they don't realize that "not engineered for specs" applies to numerical methods as much as it does for materials.
23:04
@Searke :) yeah I need to stop reading the marketing stuff ... I am like a flame to the fire. Instead I just need to remember all the fricken cool and smart people I have dealt with in the this community and from Wolfram the company :)
@J.M. yeah I just started reading his blog seriously. I is great. I have learned so much.
@Gabriel If you read his blog entries and his books, you get the impression that he's still having fun with this even after all this time. :)
...and to be frank, there are apparently more people who use, say, the QZ algorithm than the people who use cellular automata. :P
23:52
@J.M. That one is great! I'm sure I'll find a practical application for it soon :)
@belisariusisforth :P

« first day (1373 days earlier)      last day (3412 days later) »