• Home
  • About
  • Social
    • Twitter
    • LinkedIn
    • Instagram
Starby Four

Vibes|Music|Tech

  • Home
  • About
  • Social
    • Twitter
    • LinkedIn
    • Instagram
  • Home
  • About
  • Social
    • Twitter
    • LinkedIn
    • Instagram

No Widgets found in the Sidebar Alt!

  • Tech

    Random Number Generation–Functions–STRUCTURED PROGRAMMING Course Notes

    May 27, 2021 /

    Random Number Generation rand(); a C++ Standard Library function that generates an unsigned integer between 0 and RAND_MAX (a symbolic constant defined in the <cstdlib> header file). The function prototype for the ‘rand’ function is in <cstdlib>. rand()%6 to produce integers specifically in the range 0 to 5, for a dice-rolling game, for example, we use the modulus operator(%). This is called scaling. The number 6 is called the “scaling factor”. We would then shift the range of numbers produced by adding 1 to our previous result. ex: (1 + rand() % 6 ) srand() the function ‘srand‘ takes an unsigned integer argument and seeds the ‘rand‘ function to produce…

    read more
    Aaron Comments Off on Random Number Generation–Functions–STRUCTURED PROGRAMMING Course Notes

    You May Also Like

    What is a program?–Notes…

    May 21, 2021

    What exactly IS Blockchain? Blockchain Technology Explained [VIDEO]

    January 13, 2021

    How to Get Into Cybersecurity with No Experience [Video]

    December 30, 2020
  • Tech

    Functions–STRUCTURED PROGRAMMING Course Notes

    May 27, 2021 /

    Functions Experience has shown that the best way to develop & maintain a program is to construct it from small, simple pieces or components. This technique is called “divide & conquer”. Declare and use functions to facilitate the design, implementation, operation, and maintenance of large programs. Functions (aka methods, procedures, sub-routines) allow us to modularize a program by separating its tasks into self-contained units. We can use a combination of provided library functions or create out own functions, known as user-defined, or programmer-defined functions. The statements in function bodies are written only once but can be reused from perhaps several locations in a program and are hidden from other functions.…

    read more
    Aaron Comments Off on Functions–STRUCTURED PROGRAMMING Course Notes

    You May Also Like

    Pointers–STRUCTURED PROGRAMMING Course Notes

    May 29, 2021

    What Is a CSIRT vs. CERT vs. CIRT???

    June 8, 2021

    Hackers Add a Backdoor to PHP Source Code; 79% of Websites Use PHP

    March 30, 2021
  • Tech

    Data Members, ‘set’ Functions, & ‘get’ Functions–C++ Notes (C Plus Plus Notes)

    May 26, 2021 /

    Variables declared in a functions body are local variables, and can be used only from the point of their declaration in the function to the immediately following closing right brace (}). When a function terminates, the values of its local variables are lost. A local variable must be declared before it can be used in a function. A local variable cannot be accessed outside the function in which it’s declared. Data members normally are private. Variables or functions declared private are accessible only to member functions of the class in which they’re declared, or to friends of the class. When a program creates (instantiates) an object of a class, its…

    read more
    Aaron Comments Off on Data Members, ‘set’ Functions, & ‘get’ Functions–C++ Notes (C Plus Plus Notes)

    You May Also Like

    Blockchain & Money: Session 21: Post Trade Clearing, Settlement, and Processing, by M.I.T. Sloan School of Management with Professor Gary Gensler

    April 21, 2021

    More C++ Notes…

    June 1, 2021

    Current Events Breakdown: To unlock a terrorist’s iPhone, the FBI turned to an obscure company in Australia; a technique called an “Exploit Chain” was used.

    April 14, 2021
  • Tech

    Functions, & O.O.P.–C++ Notes (C Plus Plus Notes)

    May 25, 2021 /

    Functions Performing a task in a program requires a function! The function hides from its user the complex tasks that it performs. C++ Functions–A function is a block of code which only runs when it is called. Data, known as parameters, can be passed into a function. Functions are used to perform certain tasks, or actions, and they are important for reusing code: Define the code once, and use it many times. C++ provides some pre-defined functions, such as ‘main()‘ which is used to execute code. But you can also create your own functions to perform certain actions. C++ Functions consist of two parts: Declaration–the functions name, return type, and…

    read more
    Aaron Comments Off on Functions, & O.O.P.–C++ Notes (C Plus Plus Notes)

    You May Also Like

    Ruby Programming Language Notes

    May 17, 2021

    Blockchain & Money: Session 5: Blockchain Basics & Transactions, UTXO, & Script Code by M.I.T. Sloan School of Management with Professor Gary Gensler

    April 15, 2021

    Understanding Permissions: Notes: List of Terminal Commands

    May 20, 2021
  • Tech

    More Notes!!! [Ruby Programming Language Notes]

    May 19, 2021 /

    Global Variables–Variable References Lecture $–Use this sign to create a global variable in Ruby. Ex: def say_hello $message = “hello globe” end say_hello p $message # => “hello globe” More Methods! object_id can be used to see what memory location a particular variable points to . ex: variable.object_id => 7018903, or whatever number the computer assigned. Initializing an Array! *(Variable References Lecture) So we know that ‘arr = [ ]‘ will create a new empty array. We can use ‘arr = Array.new()‘ to initialize an array of a certain length by passing the length we want into the parameter (argument). ex: Array.new(3) #a new array with 3 elements => [nil,…

    read more
    Aaron Comments Off on More Notes!!! [Ruby Programming Language Notes]

    You May Also Like

    Blockchain & Money: Session 12: Assessing Use Cases by M.I.T. Sloan School of Management with Professor Gary Gensler

    April 20, 2021

    Windows OS Under the Hood–NETWORKING ESSENTIALS—CompTIA A+ (220-1001) A-PLUS Certification Prep Course Notes

    May 10, 2021

    Learning To Program Is Hard…

    December 30, 2020
  • Tech

    Sorting &Swapping Elements, & Bubble Sort Algorithms!!! [Ruby Programming Language Notes]

    May 19, 2021 /

    Sorting & Swapping Elements, & Bubble Sort Algorithms!!! Algorithm a sequence of actions to take! Sorting Algorithms Swapping Elements Operation: array = [“a”, “b”, “c”, “d”] #let’s swap “a” & “b” temp = array[0]; #save a copy of the first ele array[0] = array[1]; #overwrite the 1st ele with the 2nd ele array[1] = temp; #overwrite the 2nd ele with the 1st ele copy p array # => [“b”, “a”, “c”, “d”] This works but is a bit messy. Ruby has a clean shortcut (that also works in Python!)! array = [“a”, “b”, “c”, “d”] #let’s swap “a” & “b” array[0], array[1] = array[1], array[0] p array # => [“b”,…

    read more
    Aaron Comments Off on Sorting &Swapping Elements, & Bubble Sort Algorithms!!! [Ruby Programming Language Notes]

    You May Also Like

    Blockchain & Money: Session 16: Central Banks and Commercial Banking, Part 2 by M.I.T. Sloan School of Management with Professor Gary Gensler

    April 21, 2021

    Blockchain & Money: Session 15: Central Banks and Commercial Banking, Part 1 by M.I.T. Sloan School of Management with Professor Gary Gensler

    April 20, 2021

    More C++ Notes…

    June 1, 2021
  • Tech

    Symbols!!! [Ruby Programming Language Notes]

    May 19, 2021 /

    Symbols in Ruby Symbols are an additional data type, similar to strings, but different. str = ” “ strings are wrapped in quotes. Symbol = : symbols begin with a colon. Ex: str = “hello # the string sym = :hello # the symbol p str.length # => 5 p sym.length # => 5 p str[1] # => “e” p sym[1] # => “e” p str == sym # => false #Lesson…A string is DIFFERENT from a symbol! Strings are mutable (can be changed, or mutated). Symbols are immutable (can never be changed, or mutated). Because strings are mutable, they are always stored in a new memory location (even if…

    read more
    Aaron Comments Off on Symbols!!! [Ruby Programming Language Notes]

    You May Also Like

    The Visible Computer—CompTIA A+ (220-1001) A-PLUS Certification Prep Course Notes

    May 5, 2021

    Blockchain & Money: Session 6: Smart Contracts & DApps by M.I.T. Sloan School of Management with Professor Gary Gensler

    April 15, 2021

    Sorting &Swapping Elements, & Bubble Sort Algorithms!!! [Ruby Programming Language Notes]

    May 19, 2021
  • Tech

    More Common Enumerable Methods!!! [Ruby Programming Language Notes]

    May 19, 2021 /

    More Common Enumerable’s .all?–return ‘true’ when all elements result in true when passed into the block. Ex: p [2,4,6].all? { |el| el.even? } # =>(returns) true Ex: p [2,3,6].all? { |el| el.even? } # => false .any?–return ‘true’ when at least one element results in true when passed into the block Ex: p [3,4,7].any? { |el| el.even? } # => true Ex: p [3,5,7].any? { |el| el.even? } # => false .none?–return ‘true’ when no elements result in true when passed into the block. Ex: p[1,3,5].none? { |el| el.even? } # => true Ex: p[1,4,5].none? { |el| el.even? } # => false .one?–return ‘true’ when exactly one element results in…

    read more
    Aaron Comments Off on More Common Enumerable Methods!!! [Ruby Programming Language Notes]

    You May Also Like

    Wireless, Virtual, Cloud, & Mobile Networking–Advanced IP Networking–NETWORKING, SECURITY, & MORE ESSENTIALS—CompTIA Network+ (N10-007) NETWORK-PLUS Certification Prep Course Notes

    May 15, 2021

    Mobile Networking–Advanced IP Networking–NETWORKING, SECURITY, & MORE ESSENTIALS—CompTIA Network+ (N10-007) NETWORK-PLUS Certification Prep Course Notes

    May 15, 2021

    Modern Ethernet–The Physical Network–NETWORKING, SECURITY, & MORE ESSENTIALS—CompTIA Network+ (N10-007) NETWORK-PLUS Certification Prep Course Notes

    May 11, 2021
  • Tech

    Array-Giving Enumerables!!! [Ruby Programming Language Notes]

    May 18, 2021 /

    array.map–allows us to take in an array and modify it a certain way. (Returns a new array!) (This can let us skip the step of shoveling a desired result into a new array[].) arr = [“a”, “b”, “c”, “d”] Old way: new_arr = [ ] arr.each { |ele| new_arr << ele.upcase + “!” } print new_arr puts Output: [“A!”, “B!”, “C!”, “D!”] New way with .map: arr = [“a”, “b”, “c”, “d”] #(.map is still an enumerable, so when we call it we have to pass in a block.) #This block accepts the element as well, like .each. new_arr = arr.map { |ele| ele.upcase + “!” } #In the block…

    read more
    Aaron Comments Off on Array-Giving Enumerables!!! [Ruby Programming Language Notes]

    You May Also Like

    ‘Welcome To The Edge!!!’–What Is Edge Computing???

    June 4, 2021

    What is a password manager and why do you need one…

    November 29, 2021

    Blockchain & Money: Session 13: Blockchain Payments, Part 1 by M.I.T. Sloan School of Management with Professor Gary Gensler

    April 20, 2021
  • Tech

    Hashes–Another Data Structure!!! [Ruby Programming Language Notes]

    May 18, 2021 /

    Hashes! (Another data structure) An array allows us to have a single variable, or location, to store & group a lot of data. (Allows for organization!) An array was the first data structure we learned about. [ ]–An array is made up of elements, organized by indices. But sometimes we may need a different organization when building a program. That’s why we have HASHES!!! A hash is made up of values stored by keys. (A key “unlocks” the corresponding value.) { }–curly braces are used to represent a hash in Ruby. (This can be assigned to a variable.) In a hash, data comes in a pair, (a ‘key value’ pair).…

    read more
    Aaron Comments Off on Hashes–Another Data Structure!!! [Ruby Programming Language Notes]

    You May Also Like

    Portable Computing Security & More–NETWORKING, SECURITY, & MORE ESSENTIALS—CompTIA A+ (220-1001) A-PLUS Certification Prep Course Notes

    May 11, 2021

    Hackers Breach Thousands of Security Cameras, Exposing Tesla, Jails, Hospitals…

    March 10, 2021

    Default Arguments–Functions–STRUCTURED PROGRAMMING Course Notes

    May 28, 2021
Newer Posts 

Archives

Categories

More

About

Documentation

Vim

Recent Posts

  • Metaverse security is a thing because security is still a thing…
  • What is a password manager and why do you need one…
  • What Is The Metaverse?
  • FAA Plans Warnings on 5G…What 5G Means for the FAA, FCC and Air-safety…
  • Blockchain & Money: Session 18: , by M.I.T. Sloan School of Management with Professor Gary Gensler

Tags

2020 A+ Bitcoin Blockchain C++ Careers CLI Cloud Coding CompTIA CompTIA A+ CompTIA Network+ Course Notes Covid-19 Crypto Cryptography Cyberattack Cybersecurity Data Structures Definitions Economy Essential Music Functions Learning Life M.I.T. Methods Mobile Music Music Video Networking News Notes NYC Peering Programming Ruby Security Structured Programming TCP/IP Tech Terminal The Internet Video Wireless Networking
© 2026 Starby Four.
Ashe Theme by WP Royal.