Posts

Callback Function -> Golang & NodeJS

Image
  Callback : P assing a Function as an Argument GoLang Example Supper Example 1: https://play.golang.org/p/AI8jKiYIKO6 Supper Example 2: Supper Example 3: package main import "fmt" func visit (numbers [] int , callback func ( int )) { for _ , n := range numbers { callback(n) } } func main () { visit ([] int { 1 , 2 , 3 , 4 } , func (n int ) { fmt . Println (n) }) } // callback: passing a func as an argument package main import "fmt" func filter (numbers [] int , callback func ( int ) bool ) [] int { var xs [] int for _ , n := range numbers { if callback(n) { xs = append (xs , n) } } return xs } func main () { xs := filter ([] int { 1 , 2 , 3 , 4 } , func (n int ) bool { return n > 1 }) fmt . Println (xs) // [2 3 4] } package main import ( "fmt" ) func main () { ii := [] int { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } s := sum (ii...) fmt . Println ...

GoLang -- jps sasadara

Image
  Install to the Ubuntu OS https://www.systutorials.com/how-to-install-go-1-13-x-on-ubuntu-18-04/ Guide https://docs.google.com/document/d/1ckYpi6hcRkaBUEk975f54oGsHYHu7GhzOk7-nOrkNxo/edit# Callback : passing a func as an argument Supper Example 1: https://play.golang.org/p/AI8jKiYIKO6 Supper Example 2: Supper Example 3: package main import "fmt" func visit (numbers [] int , callback func ( int )) { for _ , n := range numbers { callback(n) } } func main () { visit ([] int { 1 , 2 , 3 , 4 } , func (n int ) { fmt . Println (n) }) } // callback: passing a func as an argument package main import "fmt" func filter (numbers [] int , callback func ( int ) bool ) [] int { var xs [] int for _ , n := range numbers { if callback(n) { xs = append (xs , n) } } return xs } func main () { xs := filter ([] int { 1 , 2 , 3 , 4 } , func (n int ) bool { return n > 1 }) fmt . Println (xs) // [2 3 4] } ...

How HashMap works internally and more about the collection framework-- JAVA 8

                                            How HashMap works internally  https://www.youtube.com/watch?v=SXfsBDTodpY&t=528s

ELK stack & Jira

Image
              ELK stack                                       https://logz.io/learn/complete-guide-elk-stack/#intro                                       https://www.youtube.com/watch?v=gQ1c1uILyKI =========================================================================           Jira ==>  https://www.youtube.com/watch?v=uM_m6EzMg3k

Java == GoLang == Python == C == PHP == C++ ==JS ==> WHAT ??????

Image
  Eg 1-: Java ==>  Eg 2:-  Java  ==>  Eg3:- Java --> 

View VS Table in Database -> jps sasadara

SQL  >  Data Definition Language (DDL)  >  View A view is a virtual table. A view consists of rows and columns just like a table. The difference between a view and a table is that views are definitions built on top of other tables (or views), and do not hold data themselves. If data is changing in the underlying table, the same change is reflected in the view. A view can be built on top of a single table or multiple tables. It can also be built on top of another view. In the  SQL Create View  page, we will see how a view can be built. Views offer the following advantages: 1. Ease of use : A view hides the complexity of the database tables from end users. Essentially we can think of views as a layer of abstraction on top of the database tables. 2. Space savings : Views take very little space to store, since they do not store actual data. 3. Data security : Views can include only certain columns in the table so that only the non-sensitive columns are in...

My Computer Won't Wake Up From the Sleep Mode

Image
  My Computer Won't Wake Up From the Sleep Mode If your computer isn't turning on properly, it may be stuck in Sleep Mode. Sleep Mode is a power-saving function designed to conserve energy and save wear and tear on your computer system. The monitor and other functions automatically shut down after a set period of inactivity. Once the computer is needed again, it starts back up and recalls all the previously open programs, allowing it to start processing again much faster than a full start-up. Sometimes a computer can get stuck in Sleep Mode and troubleshooting is required. Step 1 Plug your computer into a wall socket if it isn't already. If your batteries are running low, the computer may not have enough power to come out of Sleep Mode. VIDEO OF THE DAY Volume 0% 00:21   Step 2 Push any key on the keyboard. Many computers respond to any activity and come out of Sleep Mode with the push of a key. Step 3 Search your keyboard for a sleep-specific key. It is normally near the t...