HDR effect on Android LG Revolution Camera360 app

Here are a set of enhanced and original picture pairs that show the results of the “HDR (Lite)” effect on the Camera360 Ultimate app on my LG Revolution Android smartphone. This app is available on the Android Market, from mAPPn, Inc

I have not yet taken the time to ascertain what caused the “haze”/”fog” look in the originals. It could be one or more of the following:
1. Dirty lens (not uncommon on phone cameras)
2. Dispersion of light or UV in the lens
3. Diffraction around the edge of the very small lens opening on a camera phone.
4. Dispersion of light or especially UV in the high humidity of New Orleans air, more visible to camera than to the eye.
5. Something else intrinsic to the camera not listed above.

In general the HDR (Lite) effect in this camera app improves the picture, especially with regard to exposure.
Its effect in also enhancing the color saturation is more than I would prefer, and I see some color shifting as well.

Posted in Android, Photography, Tech | Leave a comment

In new affront, authorities say they will bury an Iranian Baha’i as a Muslim – Bahá’í World News Service

In new affront, authorities say they will bury an Iranian Baha’i as a Muslim – Bahá’í World News Service.

Posted in News | Tagged , , | Leave a comment

Comparison of Sound / Audio Recording Applications on Android LG Revolution

Here are some notes i took while comparing the features and audio quality on four Android audio recording applications I just tested on my LG Revolution phone.

The good news is that with a high quality recording app, the microphone on the LG Revolution turns out to be quite good. Mono, of course.

========== Audio Recording Apps

==== High quality voice and music recording

RecForge (Lite/Pro)
	Folder/File selection is on main screen
	By default records to SD Card: G:\RecForge\*.wav, *.mp3  after first installation
	If you navigate elsewhere, it will record there.
	If you quit from the menu and reenter, it will return to where you were located in previous session, and record there unless you cd
	WAV, MP3, or OGG formats
	Sample rates of 8, 11, 22, or 44 kHz
	16b
	Mono/Stereo
	Good capture of highs/sibilants
	Very good quality with either mp3 or wav
	Mono MP3 is 485KB/31sec:  16KB/sec
		Can auto convert WAVs to MP3, optionally deleting WAV
	Lite limits the time of compressed recordings
	Cons: 
	    ~three second load time
	Pros:
	    .WAV capable
	    Folder structure is explicit in the UI.


Hi-Q MP3 (Lite)
	MP3, bit rates of 128 (CD), 96, 64, or 32 (voice) kbps
	Records to Recordings folder on SD card
		Internal  G:/Recordings/*.mp3
	.MP3 file/codec (high quality 44kHz sampling available)
	633KB/40sec:   16KB/sec
	Good capture of highs/sibilants
	Very good quality with mp3
	Pros:
	    Instant load time (but dialog for free version must be dismissed)
	    Input gain control (“experimental”)
	Cons:
	     Record button-to-record delay:   about 2 seconds on first recording
	     Doesn’t offer an uncompressed format
	     Little or no control of where recording files are put.


==== Voice recording – low quality, loss of sibilants and highs

Rehearsal Assistant
	Compressed, or WAV
	Records to Internal G:\urbanstew.RehearsalAssistant
	Configural Email default settings
	Projects
	.3GP file/codec
	Some loss of highs/sibilants
	Very small file:   Mono, 68KB/22sec ~= 3KB/sec

VoiceRecorder (Preloaded on my LG Revolution)
	AMR   (use AVS Audio Converter or the like on PC to convert)
	Records to either internal memor or SD card
		SD Card F:/my_sounds/*.amr
	Some added warble/vibrato
	Loss of highs/sibilants
	.AMR file/codec

============ AMR audio info
Source: http://en.wikipedia.org/wiki/Adaptive_Multi-Rate_audio_codec
• Sampling frequency 8 kHz/13-bit (160 samples for 20 ms frames), filtered to 200–3400 Hz.
• The AMR codec uses eight source codecs with bit-rates of 12.2, 10.2, 7.95, 7.40, 6.70, 5.90, 5.15 and 4.75 kbit/s.
• Generates frame length of 95, 103, 118, 134, 148, 159, 204, or 244 bits for bit rates 4.75, 5.15, 5.90, 6.70, 7.40, 7.95, 10.2, or 12.2 kbit/s, respectively
• AMR utilizes Discontinuous Transmission (DTX), with Voice Activity Detection (VAD) and Comfort Noise Generation (CNG) to reduce bandwidth usage during silence periods

Posted in Tech | Tagged , , , | Leave a comment

George Washington and John Adams on the Danger of Political Parties

John Adams, second president of the United States, said, in a letter to Jonathan Jackson on Oct 2, 1789…

There is nothing which I dread so much as a division of the republic into two great parties, each arranged under its leader, and concerting measures in opposition to each other. This, in my humble apprehension, is to be dreaded as the greatest political evil under our Constitution.

Source: http://en.wikiquote.org/wiki/John_Adams

George Washington said, in his Farewell Address of Sept 19, 1796…

I have already intimated to you the danger of Parties in the State… Let me now take a more comprehensive view, and warn you in the most solemn manner against the baneful effects of the Spirit of Party generally.

This spirit, unfortunately, is inseparable from our nature, having its root in the strongest passions of the human Mind. It exists under different shapes in all Governments, more or less stifled, controlled, or repressed; but, in those of the popular form, it is seen in its greatest rankness, and is truly their worst enemy.

The alternate domination of one faction over another, sharpened by the spirit of revenge, natural to party dissension, which in different ages and countries has perpetrated the most horrid enormities, is itself a frightful despotism. But this leads at length to a more formal and permanent despotism. The disorders and miseries which result gradually incline the minds of men to seek security and repose in the absolute power of an individual; and sooner or later the chief of some prevailing faction, more able or more fortunate than his competitors, turns this disposition to the purposes of his own elevation, on the ruins of Public Liberty.

Without looking forward to an extremity of this kind (which nevertheless ought not to be entirely out of sight), the common and continual mischiefs of the spirit of party are sufficient to make it the interest and duty of a wise people to discourage and restrain it.

It serves always to distract the Public Councils and enfeeble the Public administration. It agitates the community with ill-founded jealousies and false alarms, kindles the animosity of one part against another, foments occasionally riot and insurrection. It opens the door to foreign influence and corruption, which finds a facilitated access to the government itself through the channels of party passions. Thus the policy and the will of one country are subjected to the policy and will of another.

There is an opinion that parties in free countries are useful checks upon the Administration of the Government and serve to keep alive the spirit of Liberty. This within certain limits is probably true; and in Governments of a Monarchical cast, Patriotism may look with indulgence, if not with favor, upon the spirit of party. But in those of the popular character, in Governments purely elective, it is a spirit not to be encouraged. From their natural tendency, it is certain there will always be enough of that spirit for every salutary purpose. And there being constant danger of excess, the effort ought to be by force of public opinion, to mitigate and assuage it. A fire not to be quenched, it demands a uniform vigilance to prevent its bursting into a flame, lest, instead of warming, it should consume.

It is important, likewise, that the habits of thinking in a free Country should inspire caution in those entrusted with its administration, to confine themselves within their respective Constitutional spheres, avoiding in the exercise of the Powers of one department to encroach upon another. The spirit of encroachment tends to consolidate the powers of all the departments in one, and thus to create, whatever the form of government, a real despotism. A just estimate of that love of power, and proneness to abuse it, which predominates in the human heart, is sufficient to satisfy us of the truth of this position. The necessity of reciprocal checks in the exercise of political power, by dividing and distributing it into different depositaries, and constituting each the guardian of the public weal against invasions by the others, has been evinced by experiments ancient and modern; some of them in our country and under our own eyes. To preserve them must be as necessary as to institute them. If, in the opinion of the people, the distribution or modification of the Constitutional powers be in any particular wrong, let it be corrected by an amendment in the way which the Constitution designates. But let there be no change by usurpation; for though this, in one instance, may be the instrument of good, it is the customary weapon by which free governments are destroyed. The precedent must always greatly overbalance in permanent evil any partial or transient benefit, which the use can at any time yield.

–George Washington, from the Farewell Address of Sept. 19, 1796 in: The Writings of George Washington, pp. 969-71 (Library of America ed. 1997)

Posted in Governance and Power | Leave a comment

How I set up remote debugging (xdebug) with Netbeans.

This setup allows you to step through php code, including looking at variable values, that’s running on a remote server….

  1. Downloaded and installed JDK (1.6.25)
  2. Downloaded and installed the Netbeans 7.0 PHP bundle
  3. Tried and failed to install xdebug on my 1and1 managed linux server
    1. Logged in using putty to ssh
    2. At the command line, ran “pecl xdebug”
    3. Discovered that I don’t have sufficient rights for PECL operation, and xdebug seems not to be already installed
    4. Installed xdebug on Titan  (Windows XP Pro machine, with a WAMP5 server)
      1. Checked which version of xdebug would be right for my Titan WAMP5 installation, using xdebug wizard, at:
        http://xdebug.org/find-binary.php
      2. Pointed my browser at titan
      3. Clicked on phpinfo
      4. Scraped the webpage, put it into the wizard, which told me to use:
        == php_xdebug-2.1.1-5.2-vc6.dll
      5. Followed the wizard instructions:

i.      Download php_xdebug-2.1.1-5.2-vc6.dll

ii.      Move the downloaded file to c:\wamp\php\ext
iii.      Edit C:\wamp\Apache2\bin\php.ini and add the line:

zend_extension_ts = c:\wamp\php\ext\php_xdebug-2.1.1-5.2-vc6.dll

iv.      Enable xdebug in C:\wamp\Apache2\bin\php.ini

zend_extension_ts = “c:\wamp\php\ext\php_xdebug-2.1.1-5.2-vc6.dll”

[XDebug]

xdebug.remote_enable=1

xdebug.remote_host=”localhost”

xdebug.remote_port=9000

xdebug.remote_handler=dbgp

v.      These settings will enable xdebug, cause it to try to attach to a debug client on the local machine at port 9000 using the DBGp protocol

vi.      Note that these settings do NOT need to be put into the website’s root directory, they affect xdebug for the entire Apache installation.

vii.      Restart the Apache webserver

  1. Installed XDebugClient (xdc.exe) on Titan to test the xdebug installation there locally
    1. Downloaded 1.0 beta5 from http://code.google.com/p/xdebugclient/
    2. Placed it on Titan in Program Files, made a shortcut on taskbar.  (no installer is provided, just put it somewhere and run it)
    3. It’s default is already port 9000.
    4. Created a simple dbgtest.php file in a xdebug-tests subdir of the www doc root of server (/www/xdebug-tests), containing the following code:

<?php

$a=1;

$b=2;

$c=$a+$b;

echo “a+b=$c”;

?>

  1. Started the XDebugClient, set it to Debug-Listen
  2. Pointed my browser at:

http://localhost/xdebug-tests/dbgtest.php?XDEBUG_SESSION_START=mysession.com

  1. The purpose of the parameter is to make xdebug issue a cookie with a longer browser session timeout.
  2. You can change that cookie’s expiration duration (default is 1 hr) using the php.ini setting:

xdebug.remote_cookie_expire_time = 3600

  1. see http://www.xdebug.org/docs/remote#browser_session for more info
  2. Observed the PHP source code appear in XDebugClient
    1. Observed the browser progress bar waiting without progress
    2. Did Debug-Run in the XDebugClient
    3. Observed the browser paint the result of the php code.
    4. Installed XDebugClient on a laptop (Mercury, a different machine than Titan, but on the same LAN segment)
      1. Changed Titan’s apache php.ini file to use the IP address of Mercury

xdebug.remote_host=”localhost”

  1. Repeated steps 7-9 above using a browser and XDebugClient running on Mercury

URL used was: http://titan/xdebug-tests/dbgtest.php?XDEBUG_SESSION_START=mysession.com

  1. Success
  2. Set up FileZilla FTP server on Titan, to support NetBeans ftp access to Titan.
    1. Perhaps another server would have been a better choice to support Internet-debugging, because there is no encrypted format compatible between Filezilla server and NetBeans

i.      Filezilla does FTP and FTP over SSL/TLS, but not SFTP

ii.      NetBeans does FTP and SFTP, but not FTP over SSL/TLS

  1. Set up a PHP project in NetBeans
    1. Set up a project for which the source files were already and only remote, in this case, so netbeans would pull my existing server php files to my dev laptop
    2. Set the source path to c:\websites\titan\www\xdebug-tests
    3. Set  up the connection to the ftp server  (note that Netbeans only does unencrypted ftp or sftp, doesn’t support ftp over ssl/tls, so doesn’t have an encypted solution for filezilla server which doesn’t do sftp)
    4. Set the destination directory to be /www/xdebug-tests
    5. Netbeans pulled my source file dbgtest.php to my local project directory on laptop
    6. I was able to debug that file, step through it, observe variable values, and finish (at which time the page appeared in a browser!), all without timing out!
    7. I created a bit more elaborate test file with a function call, that worked great, too:
    8. dbgtest2.php:

<?php

function foo($x,$y,$lbl){

$s=$x+$y;

echo $lbl.$s;

return true;

}

$a=1;

$b=2;

$c=$a+$b;

$r=foo($a,$b,”a+b=”);

if ($r) {

echo $r;

}

?>

Posted in Tech | Leave a comment

Misguided attempts by the Iranian authorities to prevent Baha’is from receiving education.

The authorities in Iran have raided the homes of Baha’is who are providing alternative education for college students, after expelling students from regular college merely for being Baha’is.   This is part of a misguided effort by the Iranian regime to destroy the foundations of the Baha’i Faith.   The history of religion shows that this never works, attacking a new faith always makes it stronger.  http://news.bahai.org/story/825

Posted in News | Leave a comment

Three years on, Iran’s imprisoned Baha’i leaders symbolize the oppression of a nation

In the United States, some 300 congressional staff, representatives from human rights groups, media personnel and community members, attended a meeting at Washington’s Hart Senate Office building on 12 May, while a worldwide audience logged on to a live webcast of the event.


  • A poster, issued by the United4Iran campaign, showing the total days spent in prison by Iran’s seven Baha’i leaders at the conclusion of their third year. The… »

  • Grammy award-winning musician KC Porter sings his new composition, titled “Yaran” – dedicated to the seven Baha’i leaders – at a reception marking the third… »

  • Mehrzad Mumtahan – a nephew of Baha’i prisoner, Saeid Rezaei – reading a prayer at a special service in the Baha’i House of Worship, Sydney, Australia. The… »

  • The choir of the Sydney Baha’i House of Worship, performed at a special service marking the third anniversary of the arrests of Iran’s seven Baha’i leaders. The… »

The event was hosted by U.S. Senator Mark Kirk, who spoke about a resolution he recently introduced condemning the persecution of the Baha’is.

http://news.bahai.org/story/823

Posted in Baha'i, News | Leave a comment

Remembering the small paintings of Baha’u’llah…

Monday evening Matthew invited me to the Taj Mahal restaurant in Metairie, LA.
It is as good as any Indian restaurant I’ve ever visited.
Thank you, Matthew.

On the wall was a very radiant colorful and beautiful traditional painting of Krishna and his wife Radha, emanating love.

The image was somewhat similar to this one, but large and far more colorful and beautiful:

It raised my spirits so much.

A few minutes into enjoying this, I suddenly remembered something I hadn’t remembered for years:  the small paintings of Baha’u’llah that you see in the archives on pilgrimage, which Bahiyyih Khanum said were a good representation of Him.    In my mind and memory I saw those pictures in a new way last night, connected with the elevated spirit of love for the Manifestation which Krishna has always inspired in me.

Here are the words of Krishna that I remembered there that night…

Whenever dharma decreases,     [dharma means religion, adharma means irreligion]
O Bharata, and then there is
The arising of adharma,
Then do I manifest Myself. (7)

For protection of the righteous
And destruction of the wicked,
For establishing of dharma,
I manifest from age to age. (8)

He who thus knows in its true light,
My divine birth and My action,
Leaving the body, is not born
Again–but he attains to Me. (9)

Freed from attachment, fear, anger–
Absorbed, taking refuge in Me,
Purified by fire of knowledge,
Many have attained My Being. (10)

In whatever way they resort
To Me do I thus reward them.
It is My path which ev’rywhere
All men follow, O Arjuna. (11)

–          Krishna, The Bhagavad Gita (song of the Beloved), Chapter 4, verses 7-11

Posted in Baha'i | Leave a comment

Melissa Martinez – A Beautiful Life

For those who may not have already heard, my dear granddaughter, Melissa Martinez, died late Monday night Dec 27 or early Tuesday morning Dec 28, 2010.

Melissa was a beautiful, sweet, intelligent, responsible and independent young woman of 17 living with her mother, Rebecca Snook, in New Orleans near where we are also living now.

Melissa was a good student, had a job at a local restaurant, and had made many strong and wonderful friendships both in Scotts Valley, California, and in New Orleans.

As we best understand it, Melissa was in a warehouse building in New Orleans on a very cold night, with some artist and musician friends, a building without proper heating, and some of the young adults there had built a fire in a barrel, which apparently led to their asphyxiation by carbon monoxide poisoning before the building then caught fire and was destroyed.

There was a fair amount of incorrect information about the situation and about Melissa in the first few news articles, but that seems to be being corrected now.

A memorial service for Melissa will be held in California on Tuesday January 4th at 4:30 p.m. at Oakwood Chapel 3301 Paul Sweet Road, Santa Cruz, CA 95065. All are welcome to attend. Please spread the word.

A graveside service will be held in New Orleans on Saturday, Jan 8.

If you are friend or family of Melissa and are not already on the email list that Rebecca is using to send out announcements from New Orleans, please let me know and I’ll try to get you onto it.

Rebecca and Melissa Christmas 2010

Posted in News | Leave a comment

Captain Beefheart takes flight to yet another plane Dec 17, 2010

Dear Don,

I read about your passing on Dec 17, and wanted to thank you for your inspiration.

I have many times in many years been touched by your words, your music, your painting — it got me thinking and feeling in different ways.

And if I feel like “One red bean stuck in the bottom of a tin bowl,” you offer me “Hot coffee from a crimped-up can.”

You were one of my can openers, for sure.

You probably never knew it, but I dedicated a piece of music I wrote in 1972 to you, “The Med Rose that Irene”.

RIP Captain!   I’m sure your Peace will be a very busy and creative one.

And say “Hi” to Frank for us.

Hope to visit with you there someday…

http://www.npr.org/blogs/therecord/2010/12/18/132147348/don-van-vliet-known-to-rock-fans-as-captain-beefheart-dies

Captain Beefheart, around the release of his best-known album, 'Trout Mask Replica.' 

Michael Ochs Archives/Getty Images

Captain Beefheart, around the release of his most famous album, ‘Trout Mask Replica.’

 

http://www.rollingstone.com/music/lists/500-greatest-albums-of-all-time-19691231/trout-mask-replica-captain-beefheart-and-his-magic-band-19691231

 

Captain Beefheart and his Magic Band

Captain Beefheart and his Magic Band
courtesy of the artist.
Found at http://www.npr.org/blogs/allsongs/2010/12/20/132171535/captain-beefheart-a-rock-critic-fable

Posted in Arts and Entertainment, News | 2 Comments