« first day (916 days earlier)      last day (3556 days later) » 

acl
12:13 AM
@brama I have no idea.
 
12:45 AM
@Rojo This is very unfortunate for you. In Ubuntu I don't have this.
 
 
1 hour later…
1:56 AM
@brama To reduce the cost of reading the last line in a large file, you could jump to an arbitrary position near the end of the file using SetStreamPosition before reading in the lines. e.g. something like this:
Module[{s}
, s = OpenRead[$file]
; First @ CheckAll[
    SetStreamPosition[s, Max[0, FileByteCount[$file] - 1000]]
  ; ReadList[s, String] // Last
  , Close[s]
  ]
]
Here, it is assumed that the maximum line length plus newline sequence is less than 1000 bytes.
If the maximum line length is unknown, or the file encoding contains variable length multibyte characters, then the same principle could be used but there would need to be more trial-and-error processing to find the last line start.
 
 
4 hours later…
5:50 AM
@Mr.Wizard you there?
 
@Taliesin Yes I am. Hello! :-)
Do you have time to talk syntax etc.?
 
Hi.
So, I was typing up a reply but it didn't fit in the comment field anyway. So I'm just going to paste it here.
But maybe this will help: whether associations are atomic or not is entirely up to us. It's not dictated by any implementation detail, just by whether we think it makes obeys the definition (hint: it doesn't).
But I think what you're really saying is that Associations are "NormalQ", i.e. they aren't equivalent to their FullForm in a literal sense. That means that they require special support in almost all kernel-level traversal (e.g. Part, Map) and mutation (e.g. Append) functions. One place they don't yet have this support is the pattern matcher, which is because the pattern matcher is very delicate code and it is quite a big job to add an entirely new class of expression to it.
So, in conclusion, there are two concepts that many people (including us), confuse: AtomQ and NormalQ.
AtomQ means: can I traverse this, or is it atomic?
clearly, Associations are not atomic
But historically, people have used AtomQ to mean something else: is this an ordinary expression, or does it have special traversal semantics?
e.g. SparseArrays
obviously, associations DO have special semantics
so they are not NormalQ
Currently, NormalQ does not actually exist. We've somewhat abused AtomQ to mean, in some cases, NormalQ.
Or rather, AtomQ =~= !NormalQ
 
(Let me know when you're finished. And thank you.)
 
anyway, here's my take, and I'm going to push hard on this because I think I'm right and everyone else is just a bit confused: Association isn't AtomQ, but neither is it NormalQ.
It clearly can be traversed, but it has special traversal semantics that are not 'ordinary FullForm'.
anyway, i'm finsihed
@Mr.Wizard I must go to sleep, now, goodnight!
 
Okay. Thanks! That all makes a lot of sense to me, and yes, from that standpoint I was conflating "Atom" and "Normal" however since the latter a new term (though not a new concept) I only had atomic to choose from.
@TaliesinBeynon I understand. Hopefully soon we can chat. Hopefully I'm not driving you crazy asking. :^)
Good night.
 
6:03 AM
does anyone know what's the advantage of using Association vs a simple Switch?
 
@seismatica Have you seen this?:
43
Q: How to make use of Associations?

Yi WangI have been curious about it for long. Now that Mathematica 10 arrives, I think it's time to ask the question: How the new Association data structure would be used to improve Mathematica programming? There are a few related aspects of this question: (1) How fast is the key-search in Association...

 
no but I will! Thank you..
 
Also, Switch can be pretty slow as it checks each condition sequentially, whereas associations use a hash table that scales better to more values.
 
6:36 AM
any one knows what those small dots over and below the symbols mean? I've seen them before and frogot what they mean and can't find a link now.
The reason I am asking, they produce invalid Latex code with TeXForm. Causes pdflatex to crash. Another bug in TeXForm I suppose.
ok, they are called \Formal, just needed to look at FullForm. Now I can find more about them. I am all set.
 
7:04 AM
@Nasser I'm glad you found your solution. Sorry no one was around to help.
 
@Mr.Wizard I still think this is a bug in TeXForm, but need to ask at the latex forum first to verify if the Latex code generated from the above is valid or not. Currently Latex does not like it. Thanks.
 
 
3 hours later…
10:32 AM
Does anyone know @ubpdqn email address or any other way how to contact this user?
 
10:58 AM
@E.Doroskevic Write a comment to one of his answers and he will be notified about that comment.
Also you may want to adjust your hopes, the idea that anyone here would hand out his email is ridiculous and even when talking to somebody one on one here on StackExchange you are very unlikely to persuade someone to take continue the discussion of email...
 
@Pickett I do not have enough reputation points on mathematica.stackoverflow forum to do so.
 
@E.Doroskevic Sure you do. Since you have an account on Stack Overflow and Android Enthusiasts you will be awarded 100 reputation points upon creating an account for this site.
 
11:13 AM
@Pickett I will look into that just now again and see if I can open an account on Mathematica to get those 100 reputation points you've mentioned. Thank you.
 
 
2 hours later…
12:57 PM
@m_goldberg Are you around by any chance?
@m_goldberg If you have a minute or two then I would appreciate it when you could have a look over these two lists of messages:
https://github.com/halirutan/Mathematica-IntelliJ-Plugin/blob/fix_groupersStructureView/resources/de/halirutan/mathematica/parsing/ParsingBundle.properties
https://github.com/halirutan/Mathematica-IntelliJ-Plugin/blob/fix_groupersStructureView/resources/de/halirutan/mathematica/MathematicaBundle.properties
It's only a list of error/info messages but if you spot a mistake, it would be nice if you ping me in the IDEA chat. I'm about the prepare a new release and since I have now all messages at one place, it can be checked easily.
 
 
3 hours later…
3:59 PM
posted on July 22, 2014 by Wolfram Blog

Photography by Tracy Howl and Paul Clarke Has our newfound massive availability of data improved decisions and lead to better democracy around the world? Most would say, “It’s highly questionable.” Conrad Wolfram’s TEDx UK Parliament talk poses this question and explains how computation can be key to the answer, bridging the divide between availability and [...]

 
4:15 PM
Hi guys, I'm trying to understand how to control the error in the "Projection" NDSolve method. It seems that even if I set AccuracyGoal -> infinity and PrecisionGoal to a large number, it is only giving me ~10 digits of precision in the solution.
I've used a lot of SetPrecision calls to try and set the precision of all the inputs to the same as the WorkingPrecision, which I set to double the PrecisionGoal
 
 
2 hours later…
6:22 PM
how do I plot the following step function such that the value of function between 0-1 is 3, 1-2 is 5,...and 4-5 is 4. a = {3, 5, 7, 1, 4};Plot[a[[Round[n]]], {n, 1, 5}]
 
6:46 PM
@brama Piecewise?
 
7:17 PM
@YvesKlett yes
@YvesKlett but the problem is that it offsets by 0.5. so 0.5 - 1.5 is 3 and so on...
 
 
4 hours later…
11:08 PM
@brama You could try Plot[a[[Floor[n + 1]]], {n, 0, 5}] or DiscretePlot[a[[n + 1]], {n, 0, 4}, ExtentSize -> Right]
Strictly speaking, the first expression accesses one element beyond the end of a, but Plot quietly muffles the associated message.
 

« first day (916 days earlier)      last day (3556 days later) »