Skip to main content

Posts

Showing posts from October, 2022

Tagesablauf 20.Oct.2022

Herzlich willkomen zu meine Tagesablauf. Heute ist Donnerstag und ich habe spät aufgestanden. Ungefähr 7.45. Das war sehr spät. meistens stehe ich um 6.00 auf. ich weiß nicht warum ich spät augestanden war. Dann habe ich zahn geputzt. Dann habe ich ein glass wasser getrinkt und dann direkt mein frühstuck isst. Das frühstuck war sehr lecker. Dann habe unserer garten aufgeraümt. deshalb war ich krank. Um 9 Uhr habe ich Arbeiten angefangen.

Fibonacci Series in Go Lang

This post we will see how to write Fibonacci series through Go Lang. We will use the standard package fmt and the functions within the package. package main import ( "fmt" ) func main() fmt.Println(" Fibonacci number Series Program in Go Language") var totalNumber int // This will read the total numbers to be printed fmt.Scan(&totalNumber) num1 := 0 num2 := 1 fmt.Println(num1) fmt.Println(num2) sum := num1 + num2 //First two numbers are printed initially for startValue:=1;startValue < totalNumber;startValue++ fmt.Println(sum) num1 = num2 num2 = sum sum = num1 + num2 You can find more go Lang programs here https://github.com/enstenr/go-repo/tree/main/go-lang-learning

Creating Dynamic resizable array in Go Lang

If you are coming from Java or .net background, you must be familiar with the fact that collection framework are the backbone and handy for us. You must be wondering that there is no collection framework in Go Lang and wondering how to do the same process which you have been doing in other language. Resizable arrays are there for rescue. package main import "fmt" func main() myArr:=[]string myArr=append(myArr,"Rajesh") myArr=append(myArr,"Iswarya","Nishesha","Vishwesh") fmt.Println(myArr) Initially we declare an empty array of String Then we append the values as we need and there we go Official Documentation says as below

Understanding For Loop in Go Lang

Lets dig straight to the topic. For loops can be formed in below way which is straightforward like any other language package main import "fmt" func main() for startvalue:=0;startvalue<10;startvalue++ fmt.Print( startvalue) and when iterating over array in for loop we get two return values. the index and the actual value. package main import "fmt" func main() nums:=[]int641,2,3,4,5,6,7,8,9,10,11 for i, num := range nums // i is the index and num is the value from the array , if we are not bothered about the index then we can give like for _, num := range nums fmt.Println("index:", i,num)

Changing the Background color in Pycharm

Default Theme pycharm comes up is Dracula and is a dark theme. But sometimes we need a light theme to work, eg when we work outside in light, the dark theme may not be suitable. To change the theme, follow as below: Go to File-> Settings-> Appeareance ( Shortcut : in Ubuntu -> Ctr + Alt + S You can also play with the settings and customize the window as you need.

Journey of a Man from Tanjore Village to Pondicherry

To my knowledge, the Story began with Sri Ram who was an Advocate in British period. His Mother was Sita and His wife was Rukmini. Thats the only information i know and he was my super Grandfather. His son Ramurthy was a Pharmacist as per what i heard from my Uncle. I do not have photo and have not seen my Grand or Great Grandfather. My Grandfather Ramurthy and Grandmother Rajalakshmi had 3 Sons and one Daughter and were Living in RajaMannargudi. The Three sons were Subramanian Born in 1946 April 21, Ramachandran & Ganesan and the Daughter was Vimala. I heard that they lived so luxuriously during 1950’s but, Life doesnt show its smooth face to everyone at all times. There will be up’s and downs and that came up in the Life of Ramurthy where he passed away when Subramanian was around 5 years. During early stage of Subramanian, his father Passed away and he was brought up by his Uncle. Subramanian Studied under his Uncle’s guidance. The foundation stone for a new...