పోస్ట్‌లు

ఏప్రిల్, 2024లోని పోస్ట్‌లను చూపుతోంది

జీవించివున్నప్పుడు విలువ తెలుసుకో(లే)క తగువులాడి .. ఆ మనిషి గతించాక

జీవించివున్నప్పుడు విలువ తెలుసుకో(లే)క తగువులాడి .. ఆ మనిషి గతించాక 'అయ్యో.. గతంలో ఆ శ్రేయోభిలాషిని అర్థం చేసుకోలేదే..కనీసం మర్యాదగా పలకరించలేదే' అని బాధపడుతుంటారే! ..... 1 బతికి వుండగానె బాగుగ మాట్లాడు; 2 మూతి ముడుచుకొనకు ముందుగానె! 3 యేడ్చి తేని ఫలము యేమి పోయినదన్క? 4 మంచిమాటలాడి  మనిషి(/మనసు) గెల్వు! 4 మంచిమాటలాడు!  మనిషి(/మనసు) గెల్వు!! 4 మంచితనము చేత మనిషి(/మనసు) గెల్వు! (ఆటవెలది)

100% MATLAB prog సుడొకు తయారీ

clc clear all modalu=ceil(rand*9) %to geerate a integer in the range [1, 9] suDoku_v= zeros(9,9); for i=1:3  for j=1:9   tatkal=modalu+(3*(i-1))+j-1;   suDoku_v(i,j)= tatkal;    while(suDoku_v(i,j)>9)     suDoku_v(i,j)=suDoku_v(i,j)-9;   end end end for k=1:3  suDoku_v(3+k,:)=circshift(suDoku_v(k,:),-1);  %left shifting kth row by 1 unit to get (3+k)th row  suDoku_v(6+k,:)=circshift(suDoku_v(k,:),-2); end suDoku_v   https://www.mycompiler.io/new/octave   తెరమీద modalu = 7 suDoku_v = 7 8 9 1 2 3 4 5 6 1 2 3 4 5 6 7 8 9 4 5 6 7 8 9 1 2 3 8 9 1 2 3 4 5 6 7 2 3 4 5 6 7 8 9 1 5 6 7 8 9 1 2 3 4 9 1 2 3 4 5 6 7 8 3 4 5 6 7 8 9 1 2 6 7 8 9 1 2 3 4 5

100% MATLAB OCTAVE prog to get 1098 always ఐకమత్యమే_మహాబలము

clc clear all okaTla=floor(rand*8) %to geerate a integer in the range [0, 7] padula=floor(rand*10) temp=okaTla+2:9 length_temp=length(temp) tatkal=ceil(rand*length_temp) vandala=temp(tatkal) asalu=100*vandala+10*padula+okaTla tiragEsi=100*okaTla+10*padula+vandala teesESaka=asalu-tiragEsi %%k_vandala=(uint8) (floor(teesESaka/100)) k_vandala= (teesESaka-mod(teesESaka,100))/100 k_okaTla=mod(teesESaka,10) k_padula=(teesESaka-k_vandala*100-k_okaTla)/10 tippitE=100*k_okaTla+10*k_padula+k_vandala kalipitE=teesESaka+ tippitE https://www.mycompiler.io/new/octave     తెరమీద okaTla = 2 padula = 0 temp = 4 5 6 7 8 9 length_temp = 6 tatkal = 3 vandala = 6 asalu = 602 tiragEsi = 206 teesESaka = 396 k_vandala = 3 k_okaTla = 6 k_padula = 9 tippitE = 693 kalipitE = 1089

అధర్మం విలయతాండవం చేస్తోంది

బతికి వుండగానే న్యాయము గెలిచేది చూడగలమా అనిపిస్తుంది జరిగిన జరుగుతున్న ఘటనలు చూస్తుంటే.. న్యాయస్థానాల్లో  రక్షకభట వ్యవస్థలోని వారిలో చాలావరకు తమకు అనుకూలమైన విధంగా పనిచేసుకుంటూ జన సామాన్యానికి ఇబ్బందులు కల్పిస్తున్నారని ఇంతవరకు ఉన్న అనుభవాలు చాటుతున్నాయి.  1)  తెలుగు ప్రాంత సమైక్యతను కోరిన సామాన్య ప్రజలను పోలీసులు పారా మిలటరీ దళాలవారు అడ్డుకున్నప్పుడు అలా అడ్డుకున్న (=యూనిఫాం వేసుకున్న) వాళ్ళ దేశభక్తి తేలిపోయింది.  తెలుగునేల ఒకటిగా ఉండేలా తీర్పు ఇవ్వండి అని వ్యాజ్యం దాఖలు చేయచూస్తే కనీసం వ్యాజ్యం స్వీకరించటానికి కూడా పేరు గొప్ప సర్వోన్నతన్యాయస్థానానికి చేత కాలేదు.. వీరా దేశ సమైక్యతను కాపాడేది? తమకు కావాల్సిన అంశాల్లోనేమో.. సర్వాధికారాలు తమకు ఉన్నట్టు తాము గీచిన గీతను దాటరాదని చెప్పే కోర్టులు ప్రజలకు ఇబ్బంది కలుగుతున్న పలు అంశాల్లో తమకేం పట్టనట్టు/ తాము ఫలానా వాటిల్లో ఆదేశాలు ఇవ్వటానికి కుదరదు అని భళేగా తప్పించుకుంటారే! అప్పుడప్పుడు  కొందరు నిజాయితీగా ధర్మోద్ధరణకు పాటుపడుతున్న దాఖలాలు కన్పిస్తుంటాయి  2) దురుద్దేశ పూర్వకంగా ఒకరు ఒకేసారి నాలుగు+ వేర్వేరు కవర్లలో ఉత్తరాలు ఒకే చిరునామాకు పం

100% matlab prog to stop printing sequence on or before printing 8 numbers

కొన్నిసార్లు 4,2,1 pattern రావటానికి చాలా steps అవసరం కావచ్చు. But if we want to stop after printing just first 8 numbers even if 4,2,1 pattern has  not come by then.. we can use the following p=4+ceil(rand*20) %choosing a integer between & including 5 and  24  count=0; temp=0; while(count<2 && temp<7) %% after few recurrences of the pattern 4,2,1 we wish to stop  if (mod(p,2)==0)   p=p/2  else   p=3*p+1  end  if(p==1)   count=count+1;  end  temp=temp+1; end ఔట్పుట్ Output: p =  22 p =  11 p =  34 p =  17 p =  52 p =  26 p =  13 p =  40

100% matlab code .. optimised to get 4,2,1 pattern

%Can be optimised as follows p=4+ceil(rand*20) %choosing a integer between & including 5 and  24  count=0; while(count<3) %% after few recurrences of the pattern 4,2,1 we wish to stop  if (mod(p,2)==0)   p=p/2  else   p=3*p+1  end  if(p==1)   count=count+1;  end end disp('lets stop now as we noticed it is giving 4,2,1 sequence as a loop') ఔట్పుట్ Output: p =  23 p =  70 p =  35 p =  106 p =  53 p =  160 p =  80 p =  40 p =  20 p =  10 p =  5 p =  16 p =  8 p =  4 p =  2 p =  1 p =  4 p =  2 p =  1 p =  4 p =  2 p =  1 lets stop now as we noticed it is giving 4,2,1 sequence as a loop created just now Octave Online

100% matlab prog to get special pattern 4,2,1

p=4+ceil(rand*20) %choosing a integer between & including 5 and  24  if (mod(p,2)==0)  p=p/2 else p=3*p+1 end count=0; while(count<=3) %% after few recurrences of the pattern 4,2,1 we wish to stop  if (mod(p,2)==0)   p=p/2  else   p=3*p+1  end  if(p==1)   count=count+1;  end end disp('lets stop now as we noticed it is giving 4,2,1 sequence as a loop') ---- తెరమీద   Output: p = 20 p = 10 p = 5 p = 16 p = 8 p = 4 p = 2 p = 1 p = 4 p = 2 p = 1 p = 4 p = 2 p = 1 p = 4 p = 2 p = 1 lets stop now as we noticed it is giving 4,2,1 sequence as a loo https://onecompiler.com/octave/42b8x7fge  ఐఐటీ మద్రాస్ లో 2024 మార్చి నెల మొదట్లో జరిగిన open house లో maths dept విద్యార్థుల వద్ద  నేర్చుకున్న  గణిత చమత్కారమును ఇలా octave/ matlab ప్రోగ్రాం వ్రాసితిని. ఈ లెక్క వివరణ కోసం https://youtu.be/wIu0GHYyE4Q (05:34) చూడవచ్చు   

హనుమజ్జయంతి సందర్భముగా ఆలయానికి

హనుమజ్జయంతి సందర్భముగా ఆలయానికి వెళ్ళు అని చెప్పుటే కాకుండా.. ఓ రెండు మామిడి పండ్లు కొని అక్కడ ఇవ్వు అని నాతో అనగా..  గుడి (~19:40)కి వెళ్ళి అక్కడే వ్రాసిన తేటగీతి పద్యమిది 1 ఫలములొసగనా? అవికాక పద్యములన? 2 నీకు యేవినచ్చు యిపుడె నిజము బల్కు 2 నీకు యేవినచ్చునొ యిప్డె నిజము పలుకు 3 ఆంజనేయ నినుమదిని అనవరతము 4 తలతునని లోకులింకను తెలియరైరి!

శ్రీరస్తు.. రామలింగ 18-1-24 (సూరసాని వారి ఆహ్వానము)

చిత్రం
సూరసాని వారి ఆహ్వానము శ్రీరస్తు!   శుభమస్తు!! శ్లో .    శ్రీరామచంద్రః శ్రితపారిజాతః   సమస్త కల్యాణ గుణాభిరామః।         సీతాముఖాంభోరుహ చంచరీకః   నిరంతరం మంగళమాతనోతుః॥ చిరంజీవి రామలింగారెడ్డి   (శ్రీ సూరసాని చెంచిరెడ్డి  - శ్రీమతి నాగరత్తమ్మ గార్ల సుపుత్రుడు ఋజువర్తనుడు) సుగుణవల్లి చిరంజీవి లక్ష్మీ సౌభాగ్యవతి   పుష్ప   ( శ్రీమతి & శ్రీ రమణమ్మ, దప్పిలి వెంకటేశ్వరరెడ్డి గార్ల  నోములపంట ) మనువు స్వస్తిశ్రీ చాంద్రమాన శ్రీ క్రోధినామ సంవత్సర చైత్రమాస శుక్లపక్షం దశమి  తేదీ 18-4-24 గురువారం   దేవతలు, వేదమూర్తులైన ద్విజోత్తములచే నిర్ణయింపబడిన ముహూర్తము 01:18కి ( తెల్లారితే శుక్రవారం ) జరుగును కావున తామెల్లరు విచ్చేసి వధూవరులను ఆశీర్వదించ ప్రార్ధన వేదిక   పోలీసు కళ్యాణ మండపము, తాలూకా రక్షకభట నిలయము వద్ద, ఒంగోలు విందు     రాత్రి 8 గంటలకు గమనిక - ఇది లోక కళ్యాణకారకము కావలె కనుక.. 1. ఆహూతులకు విజ్ఞానప్రదాయకముగా ఉండుటకు పుస్తక ప్రదర్శన, గణితంతో గమ్మత్తులు, శాస్త్ర ప్రయోగాలు ఏర్పాటు చేయబడును. సద్వినియోగం చేసుకొందురుగాక! 2. పదవినోదం, సుడొకు, రూబిక్ క్యూబ్, భాషా సంస్కృతులు_మనదేశ చరిత్రకి సంబం

Bluetooth based home automation

//శాస్త్ర ప్రచారక్volunteer: బ్లూ టూత్ ప్రోగ్రాం char data = 0;                //Variable for storing received data void setup()  {   Serial.begin(9600);         //Sets the data rate in bits per second (baud) for serial data transmission   pinMode(12, OUTPUT);       pinMode(13, OUTPUT);        //Sets digital pin 13 as output pin } void loop() {   if(Serial.available() > 0)  // Send data only when you receive data:   {     data = Serial.read();      //Read the incoming data and store it into variable data     Serial.print(data);        //Print Value inside data in Serial monitor     Serial.print("\n");        //New line      if(data == '4')            //Checks whether value of data is equal to 1       {        digitalWrite(12, HIGH);  //If value is 1 then LED turns ON        digitalWrite(13, HIGH);       }     else if(data == '3')       //Checks whether value of data is equal to 0      {        digitalWrite(12, LOW);   //If value is 0 then LED turns OFF    

Ultrasonic prog अल्ट्रासोनिक for distance measuring/ water level indication

# define echoPin 2 // attach pin D2 Arduino to pin Echo of HC-SR04 #define trigPin 3 //attach pin D3 Arduino to pin Trig of HC-SR04 // defines variables long duration; // variable for the duration of sound wave travel int distance; // variable for the distance measurement void setup() {   pinMode(trigPin, OUTPUT); // Sets the trigPin as an OUTPUT   pinMode(echoPin, INPUT); // Sets the echoPin as an INPUT   Serial.begin(19200); // // Serial Communication    Serial.println("Ultrasonic Sensor HC-SR04 Test"); // print some text in Serial Monitor   Serial.println("with Arduino UNO R3"); } void loop() {   // Clears the trigPin condition   digitalWrite(trigPin, LOW);   delayMicroseconds(2);   // Sets the trigPin HIGH (ACTIVE) for 10 microseconds   digitalWrite(trigPin, HIGH);   delayMicroseconds(10);   digitalWrite(trigPin, LOW);   // Reads the echoPin, returns the sound wave travel time in microseconds   duration = pulseIn(echoPin, HIGH);   // Calculating the distance   d