« first day (1346 days earlier)      last day (3436 days later) » 

02:35
@MartinJohnHadley I too have the feeling that this wasn't always this way. For me, moving or resizing triggers the evaluation of every, even the simplest Manipulate on Linux.
Have you seen these hilarious front end issues?
Let's say I have a file that is 200 bytes long, how do I split it in half at 100 bytes and write them to separate files in Mathematica?
@William BinaryRead and BinaryWrite?
@halirutan I think I'm almost there if not I'll post a question.
Can this be improved?
stream = OpenRead["test.exe", BinaryFormat -> True];
Do[BinaryWrite["test2.exe", BinaryRead@stream], {104448}];
Close[stream];
Close["test2.exe"]
@halirutan how do I read a file backwards & get the last 1000 bytes for example?
I guess BinaryReadList would improve the code but it wouldn't work backwards I don't think.
02:55
@William Yes, I would use something like
BinaryWrite["output",
 BinaryReadList["input", "Byte", 100]
 ]
@William Reading backwards is not possible for files AFAIK (better to say, there is no random access file pointer).
So what do I read to a temporary file?
@William You could read the whole contents of the file and then you can of course randomly access the data
@William Another way is to just skip bytes
For this you can use FileByteCount to know upfront how many bytes you have in the file.
Then taking the last x bytes is pretty easy
@halirutan Thanks I will probably just read the whole file in for now but it probably won't be as fast as tail -c 100.
@William I really wouldn't do that if the file is a bit larger.
How do you skip bytes then?
03:02
@William @William Just use Skip :-)
That is hilarious that they called it Skip
 
4 hours later…
07:29
0
Q: Does anyone know of another site where people share their MMA development practices and MMA gui building practices?

LupariI am relatively new here. So first - a big thank you to all the posters on MMA SE I have learned from so far. I added a question to Mathematica StackExchange in the hopes of starting a "best practices" page for complex GUI development. The question was put on hold. I inferred from this that t...

07:41
@halirutan
08:14
@Pickett Keyword filtering doesn't work for keywords that have spaces in their names.
08:34
@Szabolcs I know, and unwanted HTML shows up in the description of posts edited after last week's update, and selecting only with examples + most popular doesn't work. I'm fixing all of it this weekend :)
I'm also going to do things to improve SEO.
08:49
@Pickett Bug: spaces should be stripped from the beginning and end of strings. I just added a package and was surprised to see that it's the first in alphabetical order even though it starts with an S. That's because I accidentally put a space at the beginning. I'm not going to remove the space so you can take a look.
ok thanks, I will
@Pickett Idea: 1. have a dedicated SE chatroom for PackageData 2. have an RSS feed of newly added packages (but not edits) 3. the chatroom can be setup to automatically show new items from the RSS feed, generating more attention
@Pickett Ideally googling for "mathematica packages" should bring it up in the first search page
09:03
@Szabolcs Good ideas. I agree with you regarding Google but it's going to take a while to get there I think. I'm starting this week by adding descriptions to keyword filtered archives, replacing the image header with a text header and by writing examples for a few more packages. Another idea is to write a tutorial on how to make packages and perhaps blog post like material because right now the site doesn't have a whole lot of indexable content.
@Pickett Maybe it's not such a bad thing to spell out "Mathematica package" in descriptions sometimes, even though it's obvious that any package is going to be a Mathematica package.
I avoided this so far.
09:21
@Szabolcs I avoid that too, and the days where keyword frequency was very important are gone, but to get it in there a few times more may not be a bad idea.
The big problem of course is that the importance of websites is determined by how many other sites that link to it, so it will be very hard to compete in the short term with MMA.SE and the wolfram.com in the search result.
 
3 hours later…
12:51
0
Q: 12% unanswered: proposal for a possible [partial] solution

Oleksandr R.We still have trouble with unanswered questions, as has been discussed previously. At the moment, the total is 3257 unanswered out of 27476 total questions, or nearly 12%. Regardless of what we do, this situation does not seem to have changed very much with time: always around 10% are unanswered....

 
9 hours later…
22:13
0
Q: Plotting two lines within one Manipulate

Gwen VastineI am in Manipulate[ Plot[f[x] and want to plot a second line. Actually I want to plot a line between two points that are on my original graph (the secant line). I have the points, I have the slope. How can I do this? Thank you for your assistance.


« first day (1346 days earlier)      last day (3436 days later) »