rudi's posterous http://constantly.at Most recent posts at rudi's posterous posterous.com Wed, 04 Apr 2012 06:06:00 -0700 Editing LaTeX on your iPad, with some help from Hazel http://constantly.at/editing-latex-on-your-ipad-with-some-help-fro http://constantly.at/editing-latex-on-your-ipad-with-some-help-fro

There is no (La)TeX implementation that runs on the iPad, so it's a bit difficult to edit Latex documents there.  I hacked together a solution involving Dropbox, Hazel and Textastic.  Textastic is not strictly necessary, but it is a nice editor that features Dropbox integration, syntax highlighting for Latex, and pdf previewing (although it will not pick up changes in the pdf file automatically at the moment).  Update: Alexander Blach, the author of Textastic, told me to use Remote Live Preview and navigate to the pdf from the dropbox website. Once you see your pdf, hit Return on the URL one more time so that Textastic remembers it. A little fiddly, but works great once the URL is set.

With this recipe, Latex files can be edited on the iPad and will be converted by a stationary Mac into pdf when they are updated on Dropbox.  The pdf can then be viewed from the Dropbox app, or directly from within your editor if it supports pdf viewing.

First, you create a directory, for example ~/Dropbox/LaTeX and tell Hazel to watch for changes in that directory:

Hazel-latex-dir

Then, set up a rule "Compile latex file" to work with changed .tex files that fulfill certain conditions:

Compile-latex-settings

Now, insert the first script which checks whether the rule should fire.  The pdf should be regenerated whenever the tex file is newer (and also newer than the log file, which will stay around if there was a compilation error previously).

Click on "Edit script" on the "Passes shell script" line, set the shell to /bin/bash in the first line of the dialog box and paste the following into the text area:

PDFFILE=$(basename "$1" .tex).pdf
LOGFILE=$(basename "$1" .tex).log
if [ "$1" -nt "$PDFFILE" -a "$1" -nt "$LOGFILE" ]
then
  exit 0
fi
exit 1
In the same way, insert this script, which runs Latex (and bibtex if necessary, although I have not tested this part) into the dialog popup box on the "Run shell script" line:
set -e
TEXFILE=$1
BASENAME=$(basename "$TEXFILE" .tex)
PDFFILE="$BASENAME.pdf"
pdflatex "$TEXFILE"
if [ "$BASENAME.blg" -nt "$TEXFILE" ]
then
  bibtex "$BASENAME"
  pdflatex "$TEXFILE"
fi
pdflatex "$TEXFILE"
if [ -f "$PDFFILE" ]
then
  rm -f "$BASENAME.aux" "$BASENAME.log" "$BASENAME.toc" "$BASENAME.bbl" "$BASENAME.blg" "$BASENAME.lof" "$BASENAME.idx"
fi

The way this works is that Hazel checks on every change to the tex file whether it is newer than its pdf file, and if yes, re-generates the pdf file and removes any intermediate files.  In case there is an error in the file, the script will abort (because of the "set -e" on the first line), and Hazel will not attempt to run it again (since the log file will stick around) before the tex file is changed again.

Now, as long as my office computer is running, I can edit Latex files on the go, hit "upload" from within Textastic, wait a second or two, switch to Live Preview and see my changes in PDF form. Nice!

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Fri, 09 Mar 2012 03:05:51 -0800 Let us improve your article http://constantly.at/let-us-improve-your-article http://constantly.at/let-us-improve-your-article
On Mar 9, 2012, at 11:00, <articles@journalsconsortium.org> wrote:

Dear Colleague,

We will be glad to help increase the possibility of publishing your articles in reputable journals.

"would be glad"

Most articles sent for publication in scientific journals are often rejected by reviewers and editors because they are not well written in English.

"Most articles ... are often rejected" ... remove "Most"

"because they are not well written in English" - consider "not for scientific reasons, but purely because of deficiencies at the language level."

In
Journals Consortium (JC), we can significantly improve the language and presentation of your articles.

"In Journals Consortium, we can ... " ... "We at Journals Consortium can ..."

We edit your articles to improve the grammar as well as format it to meet the structure and standard of the journal in which you intend to publish.

"We edit your articles ... as well as format it" ... "format them"

I hope that helped a bit and wish you good luck in your business endeavours.  Please refrain from sending me further unsolicited emails.

Rudolf Schlatte

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Mon, 06 Feb 2012 00:22:00 -0800 Untitled http://constantly.at/99131561 http://constantly.at/99131561
But no one likes to see the consequences of abstract philosophy played out in a submerged Nissan, so I'll just offer you some advice.  Rageful narcissists are the most violent not when they are insulted or attacked or hated but when they are abandoned to objective reality, the one that doesn't comply with their mirroring demands.  Such a person invariably is backed by an enslaved God, which means all things are possible.

If you do manage to leave, don't look back.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Mon, 06 Feb 2012 00:19:00 -0800 The Last Psychiatrist: Another Honor Killing That Isn't About Honor, And Even Less About Nietzsche http://constantly.at/the-last-psychiatrist-another-honor-killing-t http://constantly.at/the-last-psychiatrist-another-honor-killing-t
The post-modern twist is that we didn't kill God after all: we enslaved him. Instead of completely abandoning God or taking a leap of faith back to the "mystery" of God; instead of those opposite choices, God has been kept around as a manservant to the Id.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Sun, 05 Feb 2012 03:53:00 -0800 Untitled http://constantly.at/98284807 http://constantly.at/98284807
I remember what it’s like to realise you have something, that it genuinely can work, that you’ve found a gap; what it’s like to go beyond knocking ideas round a table to someone begrudgingly agreeing to funding, to the gut-bursting thrill that it’s actually happening. It’s not greed. It’s practical creativity brought on by ubiquitous, connected technology and the decline – for good or no – of the old business world of manufacturing, of discs and old skool mentality. The people we’ve met in Finland are just guys with ideas and they want to make them work. They don’t want “a boss” or “a job”: jobs aren’t safe any more. It’s wanting to be free, to have a future. The Finnish start-up scene is a microcosmic view of the global games trade, of the collapse of triple-A for anything other than the biggest developers and the explosion in mobile, browser and tablet.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Wed, 01 Feb 2012 12:20:00 -0800 A favour from Goliath - The Bookish Blog http://constantly.at/a-favour-from-goliath-the-bookish-blog http://constantly.at/a-favour-from-goliath-the-bookish-blog
arbitrary executable code is arbitrary

On ebooks and microformats

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Sun, 27 Nov 2011 05:22:52 -0800 Edvard Munch's "The Scream" reinterpreted as espresso macchiato http://constantly.at/edvard-munchs-the-scream-reinterpreted-as-esp http://constantly.at/edvard-munchs-the-scream-reinterpreted-as-esp
Photo

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Mon, 14 Nov 2011 06:55:58 -0800 Heavy fog ... someone switched of the nice landscape http://constantly.at/heavy-fog-someone-switched-of-the-nice-landsc http://constantly.at/heavy-fog-someone-switched-of-the-nice-landsc
My_hipstaprint_0

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Sun, 09 Oct 2011 03:38:00 -0700 Untitled http://constantly.at/74739284 http://constantly.at/74739284 Now reading: "The Drama of the Gifted Child", Alice Miller

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Fri, 23 Sep 2011 07:59:33 -0700 Exactly the same shape, just turned inside-out http://constantly.at/exactly-the-same-shape-just-turned-inside-out http://constantly.at/exactly-the-same-shape-just-turned-inside-out
Photo

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Fri, 16 Sep 2011 06:25:57 -0700 Getting a bit obsessed with paper folding ... http://constantly.at/getting-a-bit-obsessed-with-paper-folding http://constantly.at/getting-a-bit-obsessed-with-paper-folding
Photo

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Sun, 04 Sep 2011 08:51:51 -0700 The old couple http://constantly.at/the-old-couple http://constantly.at/the-old-couple
Photo

They looked quirky and charming, like in a sketch written by Loriot. She: "This place is so nice! And I like this coffee a lot, it's delicious!" He: "It's the same coffee you have every day!" She: "... Has it stopped raining? Yes? Perhaps the sun will come out later, that would be so nice!" He: "No it won't, I checked the weather report."
... at which point I became annoyed with him, for always putting down his partner. He even managed to pay for their coffee in a patronizing way. So sad to waste one's remaining years like this!

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Thu, 18 Aug 2011 01:23:22 -0700 Untitled http://constantly.at/66076019 http://constantly.at/66076019 Just realized: Google+ is the new Usenet (the pre-warez one)

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Thu, 11 Aug 2011 10:45:39 -0700 Late-summer fjord sunset http://constantly.at/late-summer-fjord-sunset http://constantly.at/late-summer-fjord-sunset
Photo

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Tue, 09 Aug 2011 06:07:45 -0700 Heavy rain over the fjord http://constantly.at/heavy-rain-over-the-fjord http://constantly.at/heavy-rain-over-the-fjord
Hdr

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Mon, 25 Jul 2011 11:40:00 -0700 Oslo, today http://constantly.at/62468882 http://constantly.at/62468882

Dear friends,

Last week in the office, in a day of bad weather during a week of bad weather, I heard a thundercrack while on the phone.  I remember thinking "this is strange, thunder this short is usually louder because it must be near."  In fact, it was some kilometers away, in the town center, where a car bomb wrecked the government quarter.

One of our PhD students was in the library and saw the blast; he phoned us, a bit later, and was so shaken that he spoke a mixture of English and Indonesian.  I remember thinking, "please, let it not be a bomb, and if it is, let it not be these fundamentalists because otherwise Muslims the world over will have hell to pay again and they've suffered enough already."  We chatted a bit in the office, unaware that the real horror was happening elsewhere, right then.

During the weekend facebook invitations to come into the city center flew around, first telling people to come for a candlelight procession and then, superseding that, to bring roses.  I do not know whether there was any official organization going on, but people would have come anyway.  There certainly was no crowd control or designated route; people came to the city center and, perhaps, went to the general area of the mayor's building.  Everyone had roses.

Img_0946

There must have been a sound system and some preparation, because at one point I heard a trumpet play three or four notes, in the manner of a speaker saying "Test, 1 2 3 ..." into the microphone.  The streets were full of people, talking among themselves, looking for friends.  The atmosphere was relaxed and quiet, if a little subdued.

Then, within two seconds, everybody was quiet and holding their roses in the air.  It was like an inverted cheer, the crowd standing silent, awake and present.

Img_0949

After some minutes, someone spoke on the sound system, saying that due to the number of people, the procession would be cancelled, and asking for understanding.

There was no further speech, and the trumpet player went home without playing the sad song he must have rehearsed.  But that did not matter at all -- we were there to pay our respects, not to be entertained or spoken too.  After some more minutes, the crowd started moving; I went along, saw some camera teams and about 100,000 people.  The crowd was patriotic in a very Norwegian way -- I saw perhaps five flags -- everyone knew what we were here for anyway so there was no need for insecure flag-waving.

Img_0953

As for what's-his-name himself -- he tried to unite the European people behind a common goal, and from what I saw today, he certainly succeeded, albeit in a way that he had not foreseen in the delusional, self-aggrandizing stories he told himself about himself.  I wish he could have been there to see it.

A wake or funeral procession is there to help people come to terms with someone's passing, to bring closure and to help living in a changed world.  This, today was not a funeral procession for Norway -- it brought closure for me, and I think helped everyone to live in a world that has not changed, where the shared values of people living together endure and are reaffirmed.

And it feels good living in a place where people react in this way.

 

 

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Sat, 23 Jul 2011 11:40:04 -0700 The naked pear http://constantly.at/the-naked-pear http://constantly.at/the-naked-pear
Photo

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Fri, 22 Jul 2011 02:15:01 -0700 I'd rather be Tom Bombadil than Gandalf. http://constantly.at/id-rather-be-tom-bombadil-than-gandalf http://constantly.at/id-rather-be-tom-bombadil-than-gandalf That is all.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Wed, 20 Jul 2011 05:24:29 -0700 Inception Amsterdam http://constantly.at/inception-amsterdam http://constantly.at/inception-amsterdam
Image

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte
Thu, 14 Jul 2011 01:46:20 -0700 My stapler has arrived!! http://constantly.at/my-stapler-has-arrived http://constantly.at/my-stapler-has-arrived
Photo

booklet booklet booklet ...

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/688896/RudiSchlatte.jpg http://posterous.com/users/4weh0Ql2GAi5 Rudi Schlatte rudi Rudi Schlatte