Friday, May 16, 2025

மழலையர் பாடல் - குட்டி புறா

 

குட்டி புறா பறக்குது

 வானில் வட்டம் அடிக்குது

சுட்டி புறா பறக்குது

 வானில் வட்டம் அடிக்குது

Super man, spider man போல பறக்குது, 


குட்டி பாப்பா,  ஓடிவா

சுட்டி பாப்பா,  ஓடிவா

கையை தட்டி  பாடிவா




Saturday, May 10, 2025

Duet

Duet

கல்லை போல இருந்தவன் நானே கற்பூரமா ஆனேனே முல்லை போல இருந்தவன் நானே புல்லு கட்ட ஆனேனே பாக்காத பாக்காத அப்படி என்ன பார்க்காத பார்வையால பார்த்து பார்த்து கட்டி அணைக்க மறக்காத. பூவ போல உன் வனப்பு ஈக்குதடி உன் சிரிப்பு தொட்டு தொட்டு பேசவா  

வேலி நானும் போடவா 



https://youtu.be/HYc4OTst6kI

Tuesday, May 6, 2025

மழலையர் பாடல் - மழை பாடல்


 வண்ண மயில் ஆடுது 

காண மேகங்கள் கூடுது 

வாழ்த்துக் கூறி வானமும் 

வெள்ளி காசு வீசுது.


மண்ணின் மனம் அங்கே பரவுது

குளத்தில் நீரும் நிறையிது

தவளை அங்கே குதிக்குது 

காட்டின் வளம் கொழிக்குது


வண்ண மயில் ஆடுது 

காண மேகங்கள் கூடுது 

வாழ்த்துக் கூறி வானமும் 

வெள்ளி காசு வீசுது.




மழலையர் பாடல் - பிறந்த நாள்

பச்சைக் கிளியே வா வா வா !!

வண்ண மயிலே வா வா வா !!

குட்டி முயலே வா வா வா !!

தாவும் அணிலே வா வா வா !!

 

இன்று எனக்குப் பிறந்தநாள் 

வாழ்த்து கூற வா வா வா  !!


கோடி இன்பம் கூடவே

ஆடி பாடி மகிழலாம் 

துள்ளி குதித்து  அனைவரும்

இந்த நாளை கழிக்கலாம்.


பச்சைக் கிளியே வா வா வா !!

வண்ண மயிலே வா வா வா !!

குட்டி முயலே வா வா வா !!

தாவும் அணிலே வா வா வா !!




Tuesday, April 7, 2020

CMake example

Below Cmake file illustrate "cc -I/usr/include/json-c/ -o Tutorial sample.c -ljson-c"

Create new file and name it as "CMakeLists.txt"
==================================

cmake_minimum_required(VERSION 3.10)

# set the project name
project(Tutorial)
# add the executable
add_executable(Tutorial sample.c)
# add libaries to compile
target_link_libraries(Tutorial json-c)
# add include directories
target_include_directories(Tutorial PRIVATE /usr/include/json-c/)

===================================

Good Practice: 
mkdir build; 
cd build; 
cmake ..
make

Look for executable file: Tutorial in build directory.

Saturday, December 28, 2019

kavithai - 1

ஊரெங்கும் காதல் மழை,
உலர்ந்திருக்க நான் விரும்பவில்லை,
மின்னல் போல் அவள் அழைத்தாள்,
குடையை வைத்து ஏன் மழை மறைத்தாள்.

Tuesday, December 10, 2019

cJSON Tutorial

git clone https://github.com/DaveGamble/cJSON.git
 cd cJSON/
 mkdir build
 cd build/
 cmake ..
 sudo make install
 cd ..
 sudo ln -s /usr/local/lib/libcjson.so /usr/lib/libcjson.so
 sudo ln -s /usr/local/lib/libcjson.so.1 /usr/lib/libcjson.so.1
 sudo ln -s /usr/local/lib/libcjson.so.1.7.12 /usr/lib/libcjson.so.1.7.12
 gcc cJSONTestProgram.c -l cjson
 ./a.out

Planet:
Mars, 6.39e+23 kgs
Moon:
Phobos, 70 kms
Moon:
Deimos, 39 kms
satheesh@skyrdkdev:~/cJSON$ cat cJSONTestProgram.c
//src: https://spacesciencesoftware.wordpress.com/2013/09/10/a-good-way-to-read-json-with-c/
#include stdio.h #include string.h #include cjson/cJSON.h int main(int argc, const char * argv[]) { /*{ "name": "Mars", "mass": 639e21, "moons": [ { "name": "Phobos", "size": 70 }, { "name": "Deimos", "size": 39 } ] }*/ char *strJson = "{\"name\" : \"Mars\",\"mass\":639e21,\"moons\": [{\"name\":\"Phobos\",\"size\":70},{\"name\":\"Deimos\",\"size\":39}]}"; printf("Planet:\n"); // First, parse the whole thing cJSON *root = cJSON_Parse(strJson);
// Let's get some values char *name = cJSON_GetObjectItem(root, "name")->valuestring; double mass = cJSON_GetObjectItem(root, "mass")->valuedouble;
printf("%s, %.2e kgs\n", name, mass); // Note the format! %.2e will print a number with scientific notation and 2 decimals
// Now let's iterate through the moons array cJSON *moons = cJSON_GetObjectItem(root, "moons");
// Get the count int moons_count = cJSON_GetArraySize(moons); int i;
for (i = 0; i < moons_count; i++) { printf("Moon:\n");
// Get the JSON element and then get the values as before cJSON *moon = cJSON_GetArrayItem(moons, i); char *name = cJSON_GetObjectItem(moon, "name")->valuestring; int size = cJSON_GetObjectItem(moon, "size")->valueint; printf("%s, %d kms\n", name, size); } // Finally remember to free the memory! cJSON_Delete(root); return 0; } satheesh@skyrdkdev:~/cJSON$