Wednesday, December 14, 2011

Two cool Linux tricks for busy people

English: A screenshot of Ubuntu 11.04 (Natty N...
Image via Wikipedia
There are many undiscovered goodness that is Linux, and often those are hidden behind the graphical user interface, requiring (1) their existence; and (2) how to handle the command-line interface in the shell console.

These tools are standard part of Ubuntu and LinuxMint, the world's third- and fourth-most popular operating systems.

pdftotext
This extracts the textual contents of PDF files as plain-text files.  (It does not work with PDF generated by flat-bed optical scanners, however, so some of the old journal articles do not convert into text files.)


usage: 

> pdftotext source.pdf destination.txt

This also converts PDF into HTML:

> pdftotext -htmlmeta source.pdf destination.html

The manual is at http://linux.die.net/man/1/pdftotext.


ots
You need to read this paper, that article, and those before tomorrow!  Online Text Summarizer (OTS) is an acclaimed piece of software that automatically condenses long texts (from a plain text file).  This works the best with academic and journalistic writings, as well as simple narratives.

> ots --ratio=5 --out=article-summary.txt article.txt

This will generate a file "article-summary.txt" containing a summary of "article.txt" at the length of 5 percent of its original. The "--ratio=" can be anywhere between 1 and 100 (percent in article length).

The manual is at http://libots.sourceforge.net/

ots in action:
This article from The Telegraph was put through the Online Text Summarizer:
http://www.telegraph.co.uk/news/worldnews/asia/china/8954315/Inside-Wukan-the-Chinese-village-that-fought-back.html
(To turn this into a clean PDF, use the PrintFriendly extension for Chromium)


> pdftotext telegraph.co.uk-Inside_Wukan*.pdf wukan.txt
> ots --ratio=5 --out=wukan-sum.txt wukan.txt

And here's the output (now saved as file wukan-sum.txt):


telegraph.co.uk
http://www.telegraph.co.uk/news/worldnews/asia/china/8954315/Inside-Wukan-the-Chinesevillage-that-fought-back.html
 Inside Wukan: the Chinese village that fought back
For the first time on record, the Chinese Communist party has lost all control, with the population of 20,000 in this southern fishing village now in open revolt. “They banged the warning drum and the entire village ran to block the police.”  After a tense two-hour standoff, during which the villagers were hit with tear gas and water cannons, the police retreated, instead setting up the ring of steel around Wukan that is in force today.
Not bad.  Here is another demo of this, now with an academic paper.
The original here is "Pentecostal hermeneutics and first-wave feminism" by Shane Clifton at Southern Cross College in Australia.

01 Pentecostal hermeneutics and first-wave
feminism: Mina Ross Brawner, MD
Shane Clifton
Southern Cross College 
A case study of Pentecostal hermeneutics and first-wave feminism in the life and writing of ‘God’s Gypsy’, Mina Ross Brawner M.D.

In America prominent women such as Aimee Semple McPherson were the exception rather than the rule, and yet in Australia, as Barry Chant notes: ‘the first Pentecostal church was pioneered and pastored by a women, Sarah Jane Lancaster, and over half of the assemblies established prior to 1930 were brought into being by women, and often led by women as well’. Such an experiential paradigm has led commentators to criticise Pentecostals for doing eisegesis (reading their experience into the text), and yet Pentecostals have responded that not only is it impossible to remove experience from the process of reading, but that the experience of the Spirit illuminating the text (or to use Pinnock’s phrase, ‘inspiring the reader’ [14] ) is an essential dimension of charismatic hermeneutics. Her response is noteworthy given Pentecostalism’s tendency to fundamentalist conceptions of the text: ‘Clearly because the translators (again influenced by tradition) could not entertain the thought of a women teaching a man … so they put Aquila’s name first.’ [30] She makes similar criticism of the tendency of Christian tradition to assume that the apostle Junia was male, when ‘Crysostom and Theophylact, who were Greeks, both say Junia was a women.’ [31] These textual comments lead Brawner to a critique of the Christian tradition as a whole, which she says became increasingly oppressive, reaching its low point ‘when it was ruled that women must not draw near to the altar in any ministerial capacity. Of 1 Timothy 2:8-12 she again questions the (male?) translators, suggesting that Paul’s concern was not with the status and role of women in general, and that Paul was not commanding all women to be silent nor preventing them from having authority, but instead critiquing some women for usurping authority from their husbands rather than learning in quietness (not silence). The grass roots, liberative and non-suspicious feminism of Brawner and others has meant that today’s Pentecostal women can challenge the cultural patriarchy that has developed in the movement with a liberative tradition, while enjoying legal rights that are not available to women in other church movements.

Enhanced by Zemanta

0 comments:

Post a Comment

 
;