| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 4 months |
| seen | 6 hours ago | |
| stats | profile views | 382 |
|
14h |
comment |
Simple problem about shadow symbols in multi-contexts @HyperGroups: you are welcome, and it is a nice gesture to explicitly thank. On the other hand -- getting answers to questions is the purpose of the site and reputation is the currency :-) |
|
1d |
comment |
Correct behavior of lock file in hsqldb connection @bobthechemist: most other SQL database engines that you can access with DatabaseLink are server based and work completely different, there aren't any files accessable to the client involved so I wouldn't expect such problems for other engines (and that could well be the reason why this wasn't addressed). Exclusions could be the ODBC drivers to access data stored in excel files or access database files via SQL... |
|
1d |
revised |
How safe is the use of Block and Internal`InheritedBlock added 8 characters in body |
|
1d |
revised |
How safe is the use of Block and Internal`InheritedBlock added 8 characters in body |
|
1d |
comment |
Why is StringExpression faster than RegularExpression? I have no time to investigate that more closely, but I think the difference could well come from how the resubstituting of the matches is implemented. If you try the same thing without such substitutions, then the runtime differences are marginal, e.g.: StringCases[textBig, RegularExpression["(?ms)\\(ICD-9-CM .+?\\)"]] vs. StringCases[textBig, Shortest["(ICD-9-CM " ~~ __ ~~ ")"]] seem to be equally fast (or probably slow when compared to pcregrep :-) |
|
1d |
awarded | Nice Question |
|
1d |
comment |
Simple problem about shadow symbols in multi-contexts @LeonidShifrin: please feel free you excellent points to the answer... |
|
1d |
comment |
Simple problem about shadow symbols in multi-contexts @rm-rf: my own I did remember, but don't think this is an (exact) duplicate for either of them. To me it rather seems that the problem might be a candidate for "too localized" as you could argue it's a very unusual (?) "wrong" usage of the package functionality which could be avoided by reading the docs. But that would probably be true for almost every question... |
|
1d |
revised |
How safe is the use of Block and Internal`InheritedBlock added clarifications about PreemptProtect |
|
1d |
asked | How safe is the use of Block and Internal`InheritedBlock |
|
1d |
comment |
Simple problem about shadow symbols in multi-contexts @rcollyer: I made it a community wiki, so pleas add as much as you want... |
|
1d |
comment |
Simple problem about shadow symbols in multi-contexts @rcollyer: question remains: do I type faster or am I better at copy and paste? :-) Thanks anyway... |
|
1d |
comment |
Simple problem about shadow symbols in multi-contexts @rm-rf: I could well imagine that this question has a duplicate, but I don't think the one you mention is one, woudn't you agree... |
|
1d |
answered | Simple problem about shadow symbols in multi-contexts |
|
1d |
comment |
Checking from a preemptive evaluation whether a main evaluation is ongoing I'm very late with this, but isn't that question superfluous: With Method->"Queued", the evaluation is queued to be evaluated using the main link, so there by definition isn't a (-nother) main evaluation running, and mainEvaluationOngoing always returns False, which is correct when interpreted as "is another main evaluation ongoing". Or am I missing something? |
|
1d |
comment |
Correct behavior of lock file in hsqldb connection The interesting fact about HSQL is that it is all java and comes ready to use with Mathematica. It can be used in a serverless mode much like sqlite but also has a server, which also can be started from within Mathematica. Especially for the serverless mode there is no need for any setup, you can just go along and play with the OPs code (for me it complains about the username setting, so you might want to delete that option). You will find that these files are locked after closing the connection (I just have tried on Windows), but that might depend on OS or filesystem in use... |
|
1d |
comment |
How to replace a variable that was assigned a value before ... the reason for all that is that when the preemptive links interupt the queued evaluation they obviously see the current state of those Blocked symbols. This can cause problems which are very hard to detect and debug. I would wish that this simply wouldn't be the case, but probably that would make preemptive evaluations too expensive/complicated or whatever. This should, IMHO, certainly be better documented... |
|
1d |
comment |
How to replace a variable that was assigned a value before I think it is only safe as long as you don't use any Dynamic. As the FrontEnd itself might use these functionalities, it probably is only safe when used without a frontend altogether. Here is an example where you can see the problem: x=5;Dynamic[x -> DateString[], UpdateInterval -> 1] and then, in an extra cell: Internal`InheritedBlock[{Rule}, SetAttributes[Rule, HoldFirst]; Pause[5]]. I would in general be very cautious to change system symbols, even in Block and IneritedBlock, especially when also working with Dynamic... |
|
1d |
revised |
A simple StringCases problem added 530 characters in body |
|
1d |
comment |
A simple StringCases problem @Mr.Wizard: just in case you haven't found it, I just happend to struggle over it: (?ms) switches on "multiline mode" (m) and "match all characters including newlines" (s). I found that here: string patterns for perl users. The ?: does, to my understanding, prevent the match to be assigned to a field like $1. I have no good reference for that at this time... |