Skip to main content

Posts

Kubernetes in practice

 Kubernetes in practice  Annotations Kubernetes provide us annotation feature with labels. Annotations are basically words that explanations or comments on something. For example, annotation can be used to write creator's name or contact or about application it running. Labels are meant to hold limited information whereas we can have larger annotation with any resource. Annotations are way to add some extra information to the resource but it cannot be used to group or filter like labels. Overlapping Labels With labels it is easy is to group resources. But what if any label overlap, for example type = frontend is assigned to few pods with app_name_web and env_development type = frontend is assigned to few pods with app_name_web and env_development Name of particular resource will always be unique, what about setting the similar environment as production with in development, QA phase. But what about times when you wan to split objects in separate, non-overlapping groups? We may wan

What is Deep Learning?

 What is Deep Learning?   Deep Learning With representation learning ,Deep learning must be major part of machine learning methods supported artificial neural networks . it's a category of machine learning algorithms and a sub set of machine learning. Deep learning models are supported artificial neural networks (ANN). Artificial Neural Networks (ANN) are computing systems . it's supported a set of connected nodes called artificial neuron. Artificial neuron are elementary units in a man-made Neural Network (ANN). Artificial neuron receives one or more inputs and sums them to supply an output. The sum is skilled a transfer function which take the shape of other non-linear functions. "Deep" word in "deep learning" refers to the amount of layers through which the info is transformed.Different layers may perform different sorts of transformations on their inputs. Signals moves from the primary (input), to the

What is Artificial Narrow Intelligence?

What is Artificial Narrow Intelligence? There are two  sorts of  AI  . ANI (Artificial Narrow Intelligence): There's lot of progress in Artificial Narrow Intelligence like smart speakers, self driving cars, AI  to try to to  web search and AI application in farming and factory. The quick progress in ANI has caused people to conclude  that there is  tons  of progress in AI, which is true. But that has caused people to falsely think that there  could be  tons  of progress in AGI  also  which is  resulting in  some irrational fears about evil clever robots coming over  to require  over humanity anytime now. AGI (Artificial General Intelligence): There is not enough progress in Artificial General intelligence .  It is the goal  to create  AI and do anything  a person's  can do.  AGI is an exciting goal for researchers  to figure  on, but it requires many technological break through before we get there.  It may be decades or  many  years  or maybe  thousands of years away. What is 

What are Rust Loops ?

 What are Rust Loops? DESCRIPTION Loops:  Loops execute a block of code more than once. Types of loops loop while for loop The loop keyword tells Rust to execute a block of code over and  once again  forever or until you explicitly tell it  to prevent . ‘break’ expression can be used to stop the loop and the value is placed after the break expression that we want in return. Example fn main() { loop { println!("again!"); } } Result: again! again! again! again! (and so on …..) Example             fn main() { let mut counter = 0; let result = loop { counter += 1; if counter == 10 { break counter * 2; } }; println!("The result is {}", result); } Result:             Here 20 will be save in the result variable While loop In this type of loop While the condition is true, the loop runs . When the condition ceases to be true, the program calls break, stopping the loop. Example             fn main

What is Control Flow in Rust?

 What is Control Flow in Rust?  Description A control flow is the order in which the piece of program is executed. In control flow we have following expressions: If expression Else expression Else if expression If Expression: If expression permits to branch your code to any condition. If the condition is true then the program in if block will be executed. if  when expression is not true then the program would be passed to further blocks of else if expressions or else expression. The curly brackets which define the program blocks are called arms. Else Expression: Else expression provides the program an alternative block of code to execute when the condition introduced in if block evaluates to false. Else expression comes at last. Example fn main() { let number = 3; if number <5 { println!("condition was true"); } else { println!("condition was false"); } } Result: Condition was true Example fn main() { let number = 7; if number <5 { pri

What are Rust Functions?

  What are Rust Functions? Description The "fn” keyword allows us to declare new functions. Rust   code uses snake case   because the  conventional style for function and variable names. . All letters are lowercase and underscores separate the words in snake case. Example fn main() { println!("Hello, world!"); another_function(); } fn another_function() { println!("Another function."); } Result: Hello, world Another function. Note: The Rust doesn’t care where you define your functions after or before the main function Function Parameters Function parameters are the special variables that are part of a function’s signature. We can provide it with concrete values for those parameters when a function has parameters. Technically, the concrete values are called arguments We can use both i.e parameter or argument in casual conversation. While calling a function, function’s parameter value h as to be set. fn main ( ) {} println!("The value of

Data types in Rust

 Data types in Rust Description Every value in Rust has a unique data type. Rust automatically define primitive data type without explaining it explicitly. Rust surely a statically typed language, which describe that it must know the kinds of all variables at compile time. Data types in RUST: Scalar type A scalar type represents one value. Rust has four primary scalar types. ○ Integer. ○ Floating-point. ○ Boolean. ○ Character Compound type The Compound type can group multiple values into one type. Rust has two primitive compound types. ○ Tuples ○ Arrays Scalar type Integer type Length                                              Signed                                             Unsigned 8-bit                                                        i8                                                          u8 16-bit