« first day (384 days earlier)      last day (4549 days later) » 

12:01 AM
Vista
Worst Windows OS i've used in years.
 
hehe :)
 
I will be going to Linux as my main OS after January, I think.
I wanted to get a Mac after I had Vista for a week or so.
Someone I built up my pain threshold...
 
Hm I'll suggest one more thing, if you don't mind.
Could you download the jar version?
 
I don't even want to go to Windows 7, though I'll probably run it in a VM. All of my research is done in Ubuntu, so I use Windows for legacy stuff.
I'll try that.
 
Tell me when you do it, so we can continue. :)
 
12:06 AM
Well, that's nifty. It worked.
 
really?! :)
That's good news! :D
 
It is, thanks! Clearly there's some issue in it finding the location of Java, while the OS has no problems. I suppose that's due to registry / file-association info that Windows has.
 
True. :( Registry is a pain.
 
Stuff like this makes me think I should get a Mac. Or switch to Linux, where I feel even more comfortable nuking everything and starting over. :)
Well, for now I'm a happy camper, and I can finish my paper. I'll postpone Java purgatory for later. :)
 
12:11 AM
Many thanks! I really appreciate the help.
 
I'm glad to help. :)
 
 
7 hours later…
7:39 AM
9
Q: Strunk & White and Review Stats

Adam RackisHaving gotten the Strunk & White badge, I can now see my review stats. The trouble is, I see nothing but zeroes both for today, and all. In the past I've clicked through plenty of questions both in the "First Questions" and "First Answers" tabs on StackOverflow.com/review and voted/edited...

Well that's a bit confusing!
 
 
2 hours later…
10:00 AM
@JosephWright Yes, I was wondering about that, too. But it was actually easy to find out.
 
 
6 hours later…
3:40 PM
We should have a Christmas Special. :)
 
4:01 PM
@PauloCereda Well, next month.
I can do a post on Christmas Day, if you like :-) (Or we can set up one to appear automatically)
 
:)
I'll record a Jingle Bells version (I checked, it's public domain). :)
And a new avatar is coming. :)
 
@PauloCereda I'll go copyright it next Monday! :) Then I'll share with you the royalties, provided you send me your credit card number as you'd have done long ago. :)
 
@egreg Oh my. :) And I owe you my credit card number twice!
 
@PauloCereda But with the royalties for Jingle Bells we'll make big money.
 
4:17 PM
@egreg True, we will take over the world! :)
 
4:40 PM
2
Q: How to fully build with Rubber?

Regis da SilvaHow do I do a full build with rubber that does the equivalent of latex foo bibtex foo makeindex -s myindex.ist foo latex foo latex foo dvips foo ps2pdf foo The files I am using are foo.tex myindex.ist

Should I expand my comment to an answer?
 
@PauloCereda Sounds okay
 
@JosephWright I concur
 
Looking at old unanswered questions, I feel like replying to this question
4
Q: PDF with un-copyable text in LuaLaTeX

AzounIn Is it possible to produce a PDF with un-copyable text?, it was suggested the following code to disable the coyable text from a pdf viewer. % pdflatex is required \documentclass{article} \usepackage[resetfonts]{cmap} \usepackage{fancyvrb} \begin{VerbatimOut}{OT1.cmap} %!PS-Adobe-3.0 Resource-C...

by providing a pdf file full of gibberish. Then it's uncopyable, isn't it?
Otherwise, that question will never get answered. That would be sad...
 
4:57 PM
@BrunoLeFloch The CMAP entry for OpenType fonts are inside the font; so unless one is able to find a way to override the resource written in the PDF file when the font is (partially) embedded, I think there's no way. Plus it's a stupid question, as the comments show.
One can defeat DRM on music by playing and recording it; the quality lowers, of course. Text can be retyped quickly without loss of quality, with good proofreading.
 
@JosephWright Done. Thanks. :)
 
@egreg So make that the answer!
 
@egreg No, I mean something like \input yourfavoriteRNG \loop\char\randomint\iftrue\repeat\bye
(with some bells and wistles to avoid looping forever, have spaces at reasonable places, etc.)
 
@BrunoLeFloch This is still "copyable". :)
Typist monkeys?
 
Hey @Bruno! :)
 
5:02 PM
@egreg ... I ... guess so, yes :s. Damn, my clever plan is foiled.
@PauloCereda Hi Paulo! Good evening people. (Sorry, I lost my manners in France.)
 
@BrunoLeFloch Don't worry! :) We miss you.
 
@egreg Would a random version of lipsum be worth a package?
 
@BrunoLeFloch Did you see the announcement of kantlipsum?
 
@PauloCereda I'm tempted to try and catch up with all of the chat discussions, but that would be a terrible mistake.
 
@BrunoLeFloch Hello
 
LaTeX3 question: in l3regex, should we mention the fact that conversion of a control sequence adds a space, and also what to do to 'unstring' material?
Also, would you object if we made the unsafe functions internal-only: I'm not keen on encouraging anyone else to use these
 
@JosephWright I'm happy to make the unsafe functions internal only, but some of them are probably used within l3regex, so they should be documented as internal.
@egreg I'm looking at it.
 
@BrunoLeFloch Oh yes, I just meant moving the docs, not removing them
@BrunoLeFloch Did you see the question with the l3regex answer?
 
@JosephWright I guess that the info about the space after control sequences should go to l3str, and just be briefly mentionned in l3regex. It reminds me that I need to be more careful about the catcode of space in the end-result of replacements.
@JosephWright Yes. I read the question a few hours too late to comment usefully.
 
@BrunoLeFloch Yes, l3str would be right. I came on this yesterday, doing some tests for a regex for siunitx
I was trying to match \pi as a digit, where (?:\\pi|1|2| ... ) did not work
 
5:14 PM
@JosephWright We would learn a lot by trying to apply l3regex to something, so it's a good thing that you are doing that. I got side-tracked into writing a proper random number generator, and some arithmetic functions (like factorising expandably, counting divisors, etc).
 
@BrunoLeFloch I want to check performance against the current siunitx approach, but the regex for what counts as a number is very complex. I don't know how to deal with 'either-or' cases, in any case :-(
 
@JosephWright Right, you'd need (?:\\pi\ ?|\d). I'm putting \ ? in case the space is not there (but it should be there, I guess). Note that you can use \d for 0|1|2|3|...|9, and ranges are also useful [1-9] matches the same as 1|2|3|4|5|6|7|8|9, much more efficiently.
@JosephWright What do you mean by either-or cases? Is it not covered by alternatives a|b?
 
@BrunoLeFloch I've discovered something else and I'm writing an answer.
 
Ah, also, I think \regex_set:Nn and \regex_gset:Nn should simply be \regex_const:Nn.
 
@BrunoLeFloch Well, I was working through conversion of user options to regex syntax, so I'd have to do a loop to insert | between each token. (It would have to be \1, ..., in reality.)
 
5:18 PM
 
@BrunoLeFloch const have to be global
 
Related to \pi. :P
I'd call the regex feature as cookiemonster. :)
 
@BrunoLeFloch I mean for example 'if there is a e, it may be followed by either zero or more digits or a single sign and one or more digits'
 
@JosephWright Yes. The whole point of storing a regex is to reuse it. I don't see applications where you want to change the regex and give it the same name. But then I have little experience in applied TeX programming.
 
@BrunoLeFloch I was thinking of the siunitx context. There, I'd want to save a regex based on user input, but would need to change it when options got changed.
 
5:21 PM
@JosephWright e(?:\d*|[+-]\d+) or e(?:[+-]\d)?\d* should do what you describe.
 
So a constant would not be appropriate, but saving would for performance reasons
 
@JosephWright Ok. I guess this qualifies as "fair use".
 
@BrunoLeFloch But that captures the sign and digits in one group - the sign is not a digit, so needs to be in a separate group
Then, of course, the e is optional ...
 
Ok, so what is allowed, and what groups do you need to grab?
e(?:(\d*)|([+-])(\d+)) has three capturing groups: \1 is the digits if there was no sign, \2 is the sign and \3 is the digits if there was a sign.
 
@BrunoLeFloch If I copy "sollicitudin" from the PDF into Emacs, I get ^R^N^K^K^H^B^H^S^T^C^H (only the final n is missing); so it's not so clever a DRM, after all.
 
5:24 PM
@BrunoLeFloch Oh goodness, it's complex. Basically everything is optional, but something like 'A comparator (one token) followed by a sign (one token) followed by one or more "digits", a decimal marker (one token), then one or more "digits", then an open-uncertainty token which must be followed ...'
@BrunoLeFloch Ah, useful. I'm not very good at regex construction
 
@PauloCereda :( "You need to upgrade your Adobe Flash Player to watch this video. " (and I don't have administrative priviledges to the computer I'm using)
 
Time for tea: back in a few minutes :-)
 
@PauloCereda Very nice!
 
@egreg Is it a simple Caesar cipher?
 
@BrunoLeFloch Try this link instead, it's an HTML5 version of YouTube: youtube.com/watch?v=tNvEYaGqFB4&html5=True
@egreg He wants some \pi. :)
 
5:30 PM
@BrunoLeFloch No: r := s = r+1, n := o = n+1, l := k = l - 1. But the same code is associated to the same letter throughout the document, I believe. Some letters are actually not "pasteable", but they are there as something invisible. So a very easy to break code.
@PauloCereda Which is delicious indeed!
 
@egreg And how do you apply this transformation?
Ah, sorry, didn't see you had answered. I'll read
 
@BrunoLeFloch Finite state automaton? :)
 
@egreg True! :) "Send me the bill." :P
@egreg Oh my. :)
 
@egreg :) I was thinking more along the lines of "what kind of \special and other trickery do you need", I know how to do simple calculations in TeX (programming an expandable lcg random number generator at the moment).
 
@BrunoLeFloch If you use a CMAP resource in which characters are paired at random, each character will correspond to another uniquely throughout the document, so it's an easily breakable coding anyway: it's just a matter of considering letter frequency and do some guessing. If a text is sufficiently long, it can be decoded fastly.
 
5:42 PM
@JosephWright Enjoy your tea. Not sure what the "comparator" is. For the rest, ([+-]) grabs the sign (add a question mark if the sign is optional). Then (\d+) grabs the one or more digits, and if you want to accept other stuff, you might have to go for (\\pi\ |\d+), or ((?:\\pi\ |\d)+). Then ([.,]?) grabs a period or a comma. In fact, I guess that you want to only allow a decimal part if there is a period or comma, so (?: ([.,]) (\d+) )? For the uncertainty part, (\(\d\d\))? perhaps?
@egreg So I guess the next step in obfuscation is to use tikz (or whatever) to remember the position of each individual character (glyph?) on the page, then produce a pdf with all the characters, but in a (pseudo-)random order.
@PauloCereda That video is great!
 
@BrunoLeFloch But so the PDF will be completely useless and there would be no point in producing it to begin with. :)
 
@BrunoLeFloch Yes, I'd got more or less that far. But then there is the complex part/separated uncertainty and the exponent. I got something working, but it was very hard to read!
 
@egreg It will still be perfectly printable and readable on-screen.
 
(Of course, everything has to be done using [...] as each type of token is flexible)
 
@BrunoLeFloch :)
@JosephWright What tea flavour? :P
 
5:53 PM
@JosephWright You may want to do something like \exp_args:NNx \regex_set:Nn \l_siunitx_regex_tl { \l_siunitx_sign_pattern_str \l_siunitx_mantissa_pattern_str ... } and define each piece separately. Do you think that being able to reuse saved regexes as sub-patterns for another regex would be useful?
 
@BrunoLeFloch I'm not following your reasoning. If the glyphs are reordered "at random" on the page, how can one read the text?
 
@PauloCereda 'tea' = evening meal (my parents are from the north of England - the further north you go, breakfast/dinner/tea becomes more common than breakfast/lunch/dinner)
@BrunoLeFloch Well yes, in the end that would of course be the approach.
 
@JosephWright Ah sorry. :) I always was curious about this "tea time".
 
@JosephWright But is it useful as explicitly precompiled regexes? The underlying code would be easy (I think), but it raises the question of the syntax to use.
 
@BrunoLeFloch I suspect my case is rather unusual, as I have a lot of things to match in a flexible way. Most cases would, I suspect, be less complex. For a pure LaTeX3 siunitx-like module, I think I'd like to have a more basic number parser!
 
6:01 PM
@JosephWright I doubt that we can really avoid having a fancy parser. Users of siunitx have come to expect a lot from its power, it wouldn't be good to drop that in LaTeX3.
 
@PauloCereda Other things to eat!
(No pie, I'm afraid)
 
@JosephWright haha epic! :)
I like the look when the monster is eating the Empire State Building. :)
 
@JosephWright I can't find any analog of "calling another regex" in the pcre syntax, so if you don't need it, let's not add that possibility. I still need to sort out the {...} quantifier properly. Probably over the weekend.
 
@BrunoLeFloch I'm happy as we are for the moment
 
6:18 PM
I hate "! Arithmetic overflow."
 
7:04 PM
@BrunoLeFloch Extend TeX to 64 bit. :)
Or 256, why put so strict a limit? :)
We might be able to print on 10^68 meter long pages. :)
 
@egreg That should be enough :). I'm just trying to make my macros robust against spurious overflows.
I have an RNG producing numbers from -(2^{31}-1) to +(2^{31}-1), and I'm trying to produce uniform random integers in arbitrary ranges without throwing away too many.
 
@BrunoLeFloch Just joking, of course. But the radio is broadcasting Bruckner and I need something fun to do. :(
 
@egreg What's wrong with Bruckner?
 
@JosephWright Noooooo. You've opened a can of worms here, Joseph. Good thing @GonzaloMedina isn't here too.
 
@JosephWright It's one of the most boring piece of music I've ever heard. Unbearable.
 
7:12 PM
@egreg Each unto his own :-)
 
@egreg Although, admittedly I'm with you on this one.
 
@JosephWright Happily they're broadcasting only one movement of the 7th symphony and it's almost over. :)
@BrunoLeFloch Do we really need so big an interval?
 
@egreg Well, really, I'm producing numbers in the [0,65535] range first, then it's just a matter of reorganizing them for any interval (and TeX knows numbers of magnitude up to 2^{31}-1).
One problem is that for very large intervals, computing the length of the interval overflows.
 
@BrunoLeFloch For randomizing exam questions this should be enough.
 
@egreg :D
What if you're a mad teacher with billions of questions??
 
7:18 PM
Spanish flea always saves the day. :P
 
What if the Chinese government chooses to use LaTeX3 to randomize its citizens (whatever that would mean)?
2
It has practical applications.
 
I like to generate billions of numbers.
Mainly because I can. :D
 
@BrunoLeFloch I like the idea of 'randomizing citizens'!
 
Now enters my new paper! Identifying people through an adaptive data mining. :P
 
@PauloCereda Well, it might take a little bit long. If you want one billion raw numbers in the range [0,65535], that should take two-three days. (And the period of 2^{32} is large enough that it won't have looped over --- yet.)
 
7:22 PM
Any Postscript expert here? I have the following code adapted from the typearea package to set the page size of single pages:
        \special{ps::%
            \@percentchar\@percentchar PageBoundingBox: 0 0 \@tempa\space\@tempb^^J%
            \@percentchar\@percentchar HiResPageBoundingBox: 0 0 \@tempc\space\@tempd^^J%
            \@percentchar\@percentchar BeginPageSetup^^J%
            << /PageSize [\@tempc\space\@tempd]
            >> setpagedevice^^J%<<
            0 0 bop^^J%
            \@percentchar\@percentchar EndPageSetup}%
Where \@tempa and \@tempb is the width and height as rounded up integers.
and \@tempc and \@tempc the same but as floats.
I'm not sure of /PageSize must have integer values or allows for floats?
 
@BrunoLeFloch In my last experiment, I left a code running. It was taking a while, so I decided to calculate how much time it should take: something between 10 million years. I gave up. :P
 
Floats work fine using dvps+ps2pdf.
@PauloCereda Yes, I once had the same.
 
@MartinScharrer Did you look at the intermediate ps file? (dunno anything about ps, just trying)
 
@BrunoLeFloch Well, the PS file has the above code in it, the \special just passes it along.
 
@MartinScharrer With or without floats?
 
7:26 PM
With floats (floating point numbers, I mean)
Like I wrote: \@tempc and \@tempd are floats.
 
I guess I don't understand what your question is, then.
 
@BrunoLeFloch Sorry, my question is if floats are official ok in the /PageSize [\@tempc\space\@tempd] line
or if these values must be integers.
Floats work for me, but some other PS->PDF tool might not like them if they are not standard compatible.
 
@MartinScharrer I've never delved into ps, sorry.
 
@BrunoLeFloch No problem. The integer-only support for the earlier PS standards is annoying.
At least there is now HiResPageBoundingBox, but /PageSize seems to be more important.
 
7:31 PM
Does anybody want ice cream? :)
 
Do you guys think that people will want to use expandably more than a hundred floating point numbers in a row?
 
@BrunoLeFloch Hopefully not!
 
@PauloCereda It's cold enough up here to not be tempted.
@JosephWright Well, I could have a better implementation that wouldn't slow down horribly in those cases, but I'm a little bit too lazy (and hungry, actually).
 
@BrunoLeFloch Thanks.
 
@BrunoLeFloch Maybe:)
 
7:36 PM
Basically, the only way for a given code to produce different results when expanded several times in a row is to abuse the silent assignment of \csname undefined_123\endcsname to \relax, and \ifcsname. Since that change is only one way (you can only go from undefined to \relax), I need to consume one csname per random number. Then I provided a non-expandable "flushing" command.
When producing a random number expandably, I need to know which one it is, and go through every csname that was crookedly defined: \undefined_1, \undefined_2, etc., until \undefined_123, until reaching a non-\relax one (checking with \ifcsname).
 
@BrunoLeFloch What algo do you use to generate the random numbers?
 
Linear feedback shift register
In principle, I could do that "finding what number the random number has" in logarithmic time: check if the 1 flag is defined, then 2, 4, 8, until reaching an undefined one, then dicothomy. That's harder to implement (and then I need to figure out to do the LFSR computations in logarithmic time).
 
@BrunoLeFloch: Now I found partners.adobe.com/public/developer/ps/index_specs.html which seems to be a good resource
 
@YiannisLazarides So, Yiannis, do you really think it is worth it? ☔
@MartinScharrer Ugh. The PS language reference is a 900 page pdf.
 
@BrunoLeFloch: Yes, it the entry of PageSize doesn't mentioned if it should be integers or floats
Which actually doesn't limit it to integers!
 
7:43 PM
@BrunoLeFloch If you check in one of Heiko's packages, he harcoded the fibonacci series, wheareas all of us when starting with TeX, went ahead and programmed it. I think there are easier ways to generate them, for what probably would be good for most applications.
 
@YiannisLazarides You want to hard-code the random numbers? (Sorry, obligatory xkcd link.)
 
@BrunoLeFloch Hehe! 4 sounds like a good random number! No use some simpler method.
 
5
Q: PDF with un-copyable text in LuaLaTeX

AzounIn Is it possible to produce a PDF with un-copyable text?, it was suggested the following code to disable the coyable text from a pdf viewer. % pdflatex is required \documentclass{article} \usepackage[resetfonts]{cmap} \usepackage{fancyvrb} \begin{VerbatimOut}{OT1.cmap} %!PS-Adobe-3.0 Resource-C...

Is it valid to suggest some sort of virtual lemon juice ink?
 
@YiannisLazarides I don't think the chinese governement or @Paulo would be happy: they need billions of random numbers, and they won't believe that all of them were 4.
 
@BrunoLeFloch Calculate pi to any number of digits. Seed by reading the time from pdf to select an offset.
 
7:49 PM
@PauloCereda You'd have to use iTeX* for that.
 
@BrunoLeFloch: Thanks for the chat. I will stick with floats until I hear complaints :-)
 
@YiannisLazarides Well, if you can compute 1 billion digits of pi with TeX in less than a week (or even a year for all that matters), I'll buy you a beer.
 
It is for my standalone package as a self-made preview environment
 
@MartinScharrer Which package of yours is it for?
ok
 
There is some issue with XeLaTeX, TikZ shades and preview.
 
7:51 PM
@BrunoLeFloch You sure the chinese need all these numbers boston.com/bigpicture/2009/10/china_celebrates_60_years.html?
 
Any two of these three work fine, but all three break
I now working on an alternative which boxes the content and selects the page size to the box size. Works very nice and simple with pdflatex, lulatex and xelatex, but latex needs that extra PS stuff.
At least I found it quickly.
 
@MartinScharrer I've still got a long way to go before looking at graphics/drawing packages in any detail.
 
@BrunoLeFloch Well, I'm just scratching the surface. I learned myself some PostScript years ago (Actually before I learned (La)TeX), that helps a great deal understanding such code
 
@YiannisLazarides Some RNG's tend to exhibit a lattice structure. The chinese probably didn't pick good seeds. (See e.g., random.mat.sbg.ac.at/results/karl/server/node3.html for lattices which appear when using an lcg improperly.)
@MartinScharrer So far, Joseph has done the work on drivers.
 
@BrunoLeFloch He did some good work for the clipping question of mine!
 
7:59 PM
@BrunoLeFloch Most of the driver work comes down to porting existing code, so falls into the area that I'm good at :-)
 
@JosephWright Most of what I do is to bloat LaTeX3 with all sorts of crazy packages, then try to make it faster nevertheless :)
 
@BrunoLeFloch, @JosephWright, @all: If you have interest check out the develop version of standalone: bitbucket.org/martin_scharrer/standalone/raw/tip/standalone.cls
Then use preview=false,box,tikz as class options and add one or more tikzpictures
Like:
\documentclass[preview=false,box=true,tikz,border=0pt]{standalone}

\begin{document}

\begin{tikzpicture}
    \draw (0,0) rectangle (5,6);
    \draw (0,0) -- (5,6);
\end{tikzpicture}

\begin{tikzpicture}
      \shade [left color=blue, right color=green] (0,0) rectangle (5,10);
\end{tikzpicture}

\begin{tikzpicture}[green]
    \draw (0,0) rectangle (6,8);
    \draw (0,0) -- (6,8);
\end{tikzpicture}

\begin{tikzpicture}[red]
    \draw (0,0) rectangle (2,3);
    \draw (0,0) -- (2,3);
\end{tikzpicture}
 
@MartinScharrer :( There is no "tikzpictue" item in my inventory.
@MartinScharrer \o/ Plenty of tikzpictures. Then what should be done?
 
@BrunoLeFloch I wrote "tikzpictures", didn't I?
@BrunoLeFloch You get each automatically on one tight page, but without preview. Works fine with shadings under XeLaTeX
 
@MartinScharrer I just meant that I've never used tikz (actually, that's a lie, I tried to adapt some code once for {TeX}).
Shuck! My RNG appears to be biased.
@MartinScharrer I need to go out and get something to eat. I'll try the standalone class just afterwards.
 
8:22 PM
@BrunoLeFloch Thanks, I'm off as well.
 
 
3 hours later…
10:58 PM
@JosephWright: siunitx v3 will be epic!
 
@PauloCereda I doubt there will be a v3: similar code in a native LaTeX3 form is the nearest I'd expect
 
@JosephWright I see. As far as I see, LaTeX3 is going pretty good. ;)
 
@PauloCereda When the kernel is ready, it will be time to implement the standard classes.
And the main packages, also.
What about big guys like pgf?
 
@egreg Ah, interesting. :)
 
@egreg There is a lot to think about, it's true. This worries me, so I try not to think about it. (If I worry too much about the totality of thee job, then I'll never get anywhere. That's before I worry about the suggestion that we're doing everything wrong and should be writing scripts to parse input into XML, then converting XML to primitives, and only then involving TeX.)
@egreg Several layers there. I'd say the driver/low level drawing stuff might be covered by the team, but not the higher level.
@egreg Assuming we get Frank's database-type idea working, then a LaTeX3 class will be very different from a LaTeX2e one
 
11:15 PM
@JosephWright sorry to ask, but I'm curious: what is this database-type idea?
 
@PauloCereda 'Database' is a misleading working name :-) github.com/latex3/svn-mirror/tree/master/l3trial/l3ldb
The idea is to set up relationships between things, for example to express 'the gap between a section and an subsection should be <size> if no text intervenes' or 'within a minipage, paragraph indentation should be <size>'
 
Ah!
A context-sensitive language implementation and checking.
It sounds challenging.
 
@JosephWright That's very interesting. But I'm always worried about the impact on the greater mass of users: changing syntax for the simple things would mean losing them.
 
It reminds me of my first contact with Lisp. It gave me nightmares.
 

« first day (384 days earlier)      last day (4549 days later) »