Android NDK console print C/C++ – Chirag Patel

When your Android app has C/C++ code using NDK tools and you want printing output to serial port console, here’s the solution. // change sharing first chmod(“/dev/console”, S_IRWXG | S_IRWXO | S_IRWXU); // open file int serialFd = open(“/dev/console”, O_RDWR | O_NONBLOCK | O_NDELAY | O_NOCTTY | O_APPEND); __android_log_print(ANDROID_LOG_DEBUG, “Serial”, “Serial console fd=%d errno=%d(%s)”, serialFd, अतिरिक्त Read More

Beyond Stephen Hawking – Chirag Patel                                2018 April 01

Beyond Stephen Hawking – Chirag Patel                                2018 April 01 #StephenHawking #DarkMatter #DarkEnergy #BeyondBigBang #BigBang #Upanishad This article is my homage to one of greatest minds of our time – Stephen Hawking. On 2018 March 02, I read a news article on Stephen Hawking (link: Hawking said that he knew what it was before अतिरिक्त Read More

Bhagavatam 1 – Chirag Patel

Bhagavatam Booklet 1 – Chirag Patel   1-1-1   janmaadyasya yatoanvayaaditaratashchvaartheshhvabhijnah svaraaT | tene brahma hryudaa ya aadikavaye muhyanti yatsoorayah || tejo vaarimrudaam yathaa vinimayo yatra trisargoamrushhaa | dhaamnaa svena sadaa nirastakuhakam satyam param dheemahi ||   Meaning:   One who taught the vedas which confuses learned scholars to brahmaa; One who creates, retains and अतिरिक्त Read More

History of Bhagavatam – Chirag Patel

History of Shrimad Bhagavatam – Chirag Patel   naimishhaaraNya (present day Sitapur district in Uttar Pradesh State of India) was the forest where rushi (sage) shaunaka asked narrator suta of bhagavata. It was on the bank of river gomati. There were some 88,000 rushis gathered there.   vyasa rushi wrote bhagavata which is one of अतिरिक्त Read More

Preface to Bhagavatam – Chirag Patel

Preface to Bhagavatam – Chirag Patel Namaste! I was reading The Grand Design by respected Mr Stephen Hawking. He was suggesting that in olden times, philosophy was basis of scientific discoveries. But, in modern times, philosophy has stopped contributing and aligning with scientific discoveries. For recent centuries, philosophy has evolved into theoretical realms. Philosophy is अतिरिक्त Read More

Geography from Purana – Chirag Patel July 02, 2017

Geography from Purana – Chirag Patel July 02, 2017 In ancient puranic texts, we find references to geographical terrains. Also, puranas mention different worlds. Jambu Dvipa – salty ocean Plaksha Dvipa – sugarcane juice ocean Shaalmali Dvipa – alcoholic wine ocean Kusha Dvipa – ghee ocean Kauncha Dvipa – milk ocean Shaaka Dvipa – curd अतिरिक्त Read More