diff --git a/2023/05/16/RDStutorial.html b/2023/05/16/RDStutorial.html index 38636af..3cde2ae 100755 --- a/2023/05/16/RDStutorial.html +++ b/2023/05/16/RDStutorial.html @@ -100,7 +100,37 @@

RDS Tutorial

-

What is RDS?

Rather than having a database stored on a local file, the RDS database is stored on the cloud.

+

What is RDS?

Simple Definition: Rather than having a database stored on a local file, the RDS database is stored on the cloud.

+

Further Research/More Information:

+ +
diff --git a/assets/css/style.css.map b/assets/css/style.css.map index f257803..86e28a9 100755 --- a/assets/css/style.css.map +++ b/assets/css/style.css.map @@ -3,12 +3,12 @@ "file": "style.css", "sources": [ "style.scss", - "../../tmp/jekyll-remote-theme-20230517-1-lhr8sp/_sass/minima/skins/classic.scss", - "../../tmp/jekyll-remote-theme-20230517-1-lhr8sp/_sass/minima/skins/auto.scss", - "../../tmp/jekyll-remote-theme-20230517-1-lhr8sp/_sass/minima/initialize.scss", + "../../tmp/jekyll-remote-theme-20230524-1-etq8pi/_sass/minima/skins/classic.scss", + "../../tmp/jekyll-remote-theme-20230524-1-etq8pi/_sass/minima/skins/auto.scss", + "../../tmp/jekyll-remote-theme-20230524-1-etq8pi/_sass/minima/initialize.scss", "_sass/minima/custom-variables.scss", - "../../tmp/jekyll-remote-theme-20230517-1-lhr8sp/_sass/minima/_base.scss", - "../../tmp/jekyll-remote-theme-20230517-1-lhr8sp/_sass/minima/_layout.scss", + "../../tmp/jekyll-remote-theme-20230524-1-etq8pi/_sass/minima/_base.scss", + "../../tmp/jekyll-remote-theme-20230524-1-etq8pi/_sass/minima/_layout.scss", "_sass/minima/custom-styles.scss", "_sass/minima/fastpages-styles.scss", "_sass/minima/fastpages-dracula-highlight.scss" diff --git a/assets/js/search-data.json b/assets/js/search-data.json index 7ad92e6..97111f6 100755 --- a/assets/js/search-data.json +++ b/assets/js/search-data.json @@ -4,9 +4,9 @@ "post0": { "title": "Test Corrections", "content": "Overall Reflection . I got a 34/40. I'm not too disappointed with my score, and this was a good opportunity to gauge what I already know and what I need to work on. . Question 1 . public static int myster(int[] arr) { int x = 0; for (int k=0; k<arr.length; k=k+2) { x = x + arr[k]; } return x; } . Assume that the array nums has been declared and initialized as follows. . int [ ] nums = { 3, 6, 1, 0, 1, 4, 2}; . What value will be returned as a result of the call mystery(nums) ? . My Answer . B) 6 . Actual Answer . C) 7 . The for loop initializes k at 0. It will increment by 2 until it is greater than or equal to arr.length. k will take on the values of 0, 2, 3, and 6 until the loop stops. The loops will continue iterating until k is 6, at which x+arr[k] is 7. . Question 10 . private int[] data; public int seqSearchRec(int target) { return seqSearchRecHelper(target, data.length -1); } private int seqSearchRecHelper (int target, int last) { // Line 1 if (data[last] == target) { return last; } else { return seqSearchRecHelper(target, last-1)l } } . Consider the following instance variable and methods. You may assume that data has been initialized with length > 0. The methods are intended to return the index of an array element equal to target, or -1 if no such element exists. . For which of the following test cases will the call seqSearchRec(5) always result in an error? . I. data contains only one element. . II. data does not contain the value 5. . III. data contains the value 5 multiple times. . My Answer . C) III Only . Actual Answer . B) II Only . If the data does not contain the value of 5, an ArrayIndexOutOfBoundsException will be thrown. Since there is no 5, the loop will eventually come to data[-1]. . Question 12 . public String mystery(String input) { String output = ""; for(int k=1; k < input.length(); k = k+2) { output += input.substring(k, k+1); } return output; } . What is returned as a result of he call mystery("computer")? . My Answer . E) Nothing is returned because IndexOutOfBoundsException is thrown . Actual Answer . C) "optr" . The loops starts at k=1, and k is incremented by 2. This means that every other letter is inputted: "o" "p" "t" . Question 15 . Consider the following method, isSorted, which is inteded to return true if an array of integers is sorted in nondecreasing order and to return false otherwise. . public static boolean isSorted(int[] data) { / * missing code * / } . Which of the following can be used to replace /missing code/ so that isSorted will work as inteded? . My Answer . D) I and II only . Actual Answer . A) I only . I is the only correct answer. It starts at the second value of the array, then checks if the previous values are greater. If not, the array is not increasing, and false should be returned. . Question 16 . Consider the following incomplete method that is intended to return an array that contains the contents of its first array parameter followed by the contents of its second array parameter. . public static int[] append(int[] a1, int[] a2) { int[] result = new int[a1.length + a2.length]; for(int j = 0; j < a1.length; j++) { result[j] = a1[j]; } for(int k = 0; k < a2.length; k++) { result[/ * index * /] = a2[k]; } return result; } . Which of the following expressions can be used to replace / index / so that append will work as intended? . My Answer . C) k + a1.length - 1 . Actual Answer . D) k + a1.length . Since the loop already starts at k=0, the second array will start at k + a1.length . Question 21 . Consider the following method, which is intended to return the element of a 2-dimensional array that is closest in value to a specified number, val. . public double findCloset(double[][] mat, double val) { double answer = mat[0][0]; double minDiff = Math.abs(answer - val); for(double[] row : mat) { for(double num : row) { if(/ * missing code */) { answer = num; minDiff = Math.abs(num - val); } } } return answer; } . Which of the following could be used to replace / missing code / so that findClosest will work as intended? . My Answer . B) Math.abs(num-minDiff) < minDiff . Actual Answer . D) Math.abs(num-val) < minDiff . Math.abs() is used to find the distance. The smallest difference between the number and the given value should be set to minDiff. .", - "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/test-corrections.html", - "relUrl": "/jupyter/2023/05/16/test-corrections.html", - "date": " • May 16, 2023" + "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/test-corrections.html", + "relUrl": "/jupyter/2023/05/23/test-corrections.html", + "date": " • May 23, 2023" } @@ -15,9 +15,9 @@ ,"post1": { "title": "Group Lesson Homework Assignments", "content": "Unit 1 Primitives - Grade Calculator . import java.util.Scanner; public class PrimitivesCalculator { public static void main(String[] args) { Scanner input; boolean separateCategory; float currentGrade; float desiredGrade; float percentOfFinal; input = new Scanner(System.in); System.out.print("Do you want separate categories? "); separateCategory = input.nextBoolean(); System.out.println(separateCategory); if(separateCategory == true) { System.out.print("Enter current grade? "); currentGrade = input.nextInt(); System.out.println(currentGrade); System.out.print("Enter desired grade? "); desiredGrade = input.nextInt(); System.out.println(desiredGrade); System.out.print("Enter percent of grade that is final? "); percentOfFinal = input.nextFloat(); System.out.println(percentOfFinal); input.close(); float gradeNeeded = (desiredGrade - currentGrade * (1-percentOfFinal))/percentOfFinal; System.out.println(gradeNeeded); } } } . Unit 2 - Using Objects . 2021 Practice FRQ Question 1 . a) . public class WordMatch { /** The secret string. */ private String secret; /** Constructs a WordMatch object with the given secret string of lowercase letters. */ public WordMatch(String word) { /* implementation not shown */ } /** Returns a score for guess, as described in part (a). * Precondition: 0 < guess.length() <= secret.length() */ public int scoreGuess(String guess) { int result = 0; for (int a = 0; a < secret.length(); a++) { if(secret.substring(a).indexOf(guess) == 0) { result++; } } return result * guess.length() * guess.length(); } } . b) . // public int scoreGuess(String guess) // { /* to be implemented in part (a) */ } /** Returns the better of two guesses, as determined by scoreGuess and the rules for a * tie-breaker that are described in part (b). * Precondition: guess1 and guess2 contain all lowercase letters. * guess1 is not the same as guess2. */ public String findBetterGuess(String guess1, String guess2) { if(scoreGuess(guess1)>scoreGuess(guess2)) { return guess1; } if(scoreGuess(guess2) > scoreGuess(guess1)) { return guess2; } if(guess1.compareTo(guess2) > 0 ) { return guess1; } return guess2; } . Unit 3 - Boolean Expressions and If Statements . Completed as team - link to Meena's blog post. . Unit 4 - Iteration . Completed as team - link to Pranavi's blog post. . Caesar Cipher: . public class CaesarCipher { public static void main(String[] args) { String[] letters = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}; String message1 = "Kfzb gly!"; String message2 = "zlab zlab zlab"; String message3 = "prmbozxifcoxdfifpqfzbumfxifalzflrp"; } } . Unit 5 - Writing Classes . 2019 FRQ 2: StepTracker Class . public class StepTracker { // accessing and showing our private instance variables private int totalSteps; private int minimumSteps; private int daysActive; private int days; // constructor with the parameter public StepTracker(int least){ minimumSteps = least; totalSteps = 0; // values to initialize variables daysActive = 0; days = 0; } //added the dailySteps method as the "AddDailySteps" public void AddDailySteps(int steps){ totalSteps += steps; //shows active days and the incremental counting days++; if (steps >= minSteps){ daysActive++; // updates the other instance variables } } //the activeDays method public int getdaysActive(){ // declared and implemented into program return days; } public double avgSteps(){ if (days == 0){ return 0.0; } else{ //returns the calculated double of the average number of steps walked return (double) totalSteps / days; } } } .", - "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/group-lesson-homework.html", - "relUrl": "/jupyter/2023/05/16/group-lesson-homework.html", - "date": " • May 16, 2023" + "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/group-lesson-homework.html", + "relUrl": "/jupyter/2023/05/23/group-lesson-homework.html", + "date": " • May 23, 2023" } @@ -26,9 +26,9 @@ ,"post2": { "title": "Unit 8 - 2D Array HW", "content": "public class TwoDArray { private int[][] array; // constructor to initialize values of array public TwoDArray(int[][] array) { this.array = array; } // reverse rows and print it out public void reverse() { System.out.println("Reversed: "); int[][] newArray = new int[this.array.length][this.array[0].length]; for(int i = this.array.length-1; i >= 0; i--) { for(int j = 0; j<this.array[i].length; j++) { System.out.println(this.array[i][j] + " "); }; }; System.out.println(" "); } // get value at column public void getValue(int row, int column) { System.out.println("Value at (" + row + "," + column + "): " + this.array[row][column]); } // add products of rows public void addProducts() { int sum = 0; for(int i = 0; i<this.array.length; i++) { int product = 1; for(int j = 0; j<this.array[i].length; j++) { product *= array[i][j]; } sum += product; } System.out.println("Sum of products of rows: " + sum); } // tester method public static void main(String [] args) { int[][] newArray = {{0, 1}, {2, 3}}; TwoDArray array = new TwoDArray(newArray); array.getValue(0,1); array.reverse(); array.addProducts(); } } TwoDArray.main(null); . Value at (0,1): 1 Reversed: 2 3 0 1 Sum of products of rows: 6 .", - "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/darray-hw.html", - "relUrl": "/jupyter/2023/05/16/darray-hw.html", - "date": " • May 16, 2023" + "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/darray-hw.html", + "relUrl": "/jupyter/2023/05/23/darray-hw.html", + "date": " • May 23, 2023" } @@ -37,9 +37,9 @@ ,"post3": { "title": "52 Question Quiz Corrections", "content": "Q1 2D array bounds error . Topic 8.1, 8.2 Consider the following code segment. int[][] anArray = new int[10][8]; for (int j = 0; j < 8; j++) { for (int k = 0; k < 10; k++) { anArray[j][k] = 5; } } The code segment causes an ArrayIndexOutOfBoundsException to be thrown. How many elements in anArray will be set to 5 before the exception is thrown? We answered 64 but this would not thrown an ArrayIndexOutOfBoundsException. Instead, 8 elements in anArray will be set to 5 before an exception is thrown since anArray has 8 columns, numbered 0 through 7, inclusive. . Q3 2D array with multi-way selection . 2.B Topic 8.2 (Traversing 2D Arrays) Consider the following code segment. What are the contents of mat after the code segment has been executed? The correct answer would be D since the array created is 3 rows and 4 columns, not the other way around. . Q7 combine method . 2.C Topic 2.7, 4.3 Consider the following method. / Precondition: Strings one and two have the same length. */ public static String combine(String one, String two) { String res = ""; for (int k = 0; k < one.length(); k++) { if (one.substring(k, k + 1).equals(two.substring(k, k + 1))) { res += one.substring(k, k + 1); } else { res += "0"; } } return res; }What is returned as a result of the call combine("10110", "01100") ?** 00101 is incorrect since this would be the result if the method call was combine("10111", "01101"). Instead, the right answer is 00100 since the combine method compares corresponding substrings of length 1 from input strings one and two. If the substrings are the same, the substring is appended to res or else "0" is appended to res. . Q9 compSci substring . 2.C Topic 2.7 . Consider the following code segment. String str = "CompSci"; System.out.println(str.substring(0, 3)); int num = str.length(); What is the value of num when the code segment is executed? str.length would give you the length of the string str, not the substring printed out so value of num is 7 not 3. . Q10 concat 0s and 8s . Consider the following code segment. . String str = "0"; str += str + 0 + 8; System.out.println(str); . We answered that nothing is printed because you can't add ints to strings. However, the ints are interpreted as strings, so "0008" would be printed. . Q11 concat one two zee . Consider the following code segment. . int one = 1; int two = 2; String zee = "Z"; System.out.println(one + two + zee); . What is printed as a result of executing the code segment? . We answered "12Z" because we thought the integers would be concatenated together much like strings are. However, the ints are actually added together, so the correct answer is "3Z" . Q12 . Create ArrayList of students, and add "Alex", "Bob", and "Carl" to them. Then, iterate over the array and set each value to alex. The print each value in the array. . We answered that nothing is printed because the first print statement will cause a runtime exception. However, in the first iteration, the set method will return the value that was originally at the index. During the first print statement, "Alex Bob Carl" will be printed. During the second print statement "Alex Alex Alex" will be printed. . Q13 containsArt method with 3 String parameters . Consider method which woould return true if at least one of the strings contains the substring art. Which would not work as intended. . We answered "darkroom, cartoon, articulate" because it doesn't end with art, meaning that the method will not pick it up. However, "art" doesn't have to be at the end of the string for it to be picked up. "rattrapsimilartoday" won't work because after concatenated, the program will detect an "art" between similar and today, even though none of the words actually contain "art" . Q35: . C is Correct. The code segment iterates over numbers from right-to-left and prints the values that are greater than their index. The element at index 3, which is 5, is greater than 3, so 3 is printed. The element at index 2, which is 4, is greater than 2, so 2 is printed. The element at index 1, which is 2, is greater than 1, so 1 is printed. The element at index 0, which is 0, is not greater than 0, so 0 is not printed. . Q40 . Should be III only. C is correct. . Q43 . C is Correct. The two parameter substring method returns the substring beginning at the first parameter and ending at the second parameter – 1. When word is assigned “compiler” and howFar is assigned 3, the value of word.substring(howFar + 1, word.length()) is “iler”. This is the substring of “compiler” beginning at 3 + 1 or 4 and ending at 8 – 1 or 7. The value of word.substring(0, howFar) is “com”. This is the substring of “compiler” beginning at 0 and ending at 2. The method returns “ilercom”. . Q44 . D is Correct. The method assigns the shortest string that occurs in any element of arr between arr[n] and arr[arr.length - 1], inclusive, to result[n]. The shortest string found between arr[0] and arr[3] is "of", so result[0] is assigned the value "of". The shortest string found between arr[1] and arr[3] is also "of", so result[1] is also assigned the value "of". The same is true for the part of the array that begins at index 2 and ends at index 3, so result[2] is also assigned the value "of". In the last iteration of the outer for loop, there are no values to consider after arr[3], so result[3] is assigned the value "spring". .", - "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/corrections.html", - "relUrl": "/jupyter/2023/05/16/corrections.html", - "date": " • May 16, 2023" + "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/corrections.html", + "relUrl": "/jupyter/2023/05/23/corrections.html", + "date": " • May 23, 2023" } @@ -48,9 +48,9 @@ ,"post4": { "title": "ArrayList", "content": "ArrayList . Source . ArrayList is a resizable array. The size of an array cannot be modified. | You cannot add/remove elements from an array, but this is possible with an ArrayList. | . // initiating an ArrayList import java.util.ArrayList; //import ArrayList class List<String> listings = new ArrayList<String>(); // a List is an interface, and an ArrayList is an instance of the List interface . ArrayList Methods . import java.util.ArrayList; List<String> clothes = new ArrayList<String>(); List<String> objects = new ArrayList<String>(); List<String> listings = new ArrayList<String>(); clothes.add("pe shirt"); // add "pe shirt" to clothes arraylist clothes.add("used prom dress"); clothes.add("shoes"); objects.add("pe lock"); // add "pe lock" to objects arraylist listings.addAll(clothes); listings.addAll(objects); // add objects and clothes arrays to listings System.out.println(listings); // listings has content from both clothes and objects . [pe shirt, used prom dress, shoes, pe lock] . // get first element of the listings ArrayList listings.get(0); System.out.println("original first element: " + listings.get(0)); // change first element of the listing ArrayList listings.set(0, "black jeans"); System.out.println("new first element: " + listings.get(0)); // remove elements from array System.out.println("original arraylist: " + listings); listings.remove(0); System.out.println("first element remove: " + listings); listings.clear(); System.out.println("cleared arraylist: " + listings); . original first element: black jeans new first element: black jeans original arraylist: [black jeans, used prom dress, shoes, pe lock] first element remove: [used prom dress, shoes, pe lock] cleared arraylist: [] .", - "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/arraylist.html", - "relUrl": "/jupyter/2023/05/16/arraylist.html", - "date": " • May 16, 2023" + "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/arraylist.html", + "relUrl": "/jupyter/2023/05/23/arraylist.html", + "date": " • May 23, 2023" } @@ -59,9 +59,9 @@ ,"post5": { "title": "Unit 7 - ArrayList Homework", "content": "ArrayList<Integer> number = new ArrayList<Integer>(); // add numbers to arraylist number.add(1); number.add(2); number.add(7); number.add(5); // find hashcode before being sorted System.out.println("hashCode before: " + number.hashCode()); // sort arraylist in reverse order, swap first and last elements Collections.sort(number, Collections.reverseOrder()); Collections.swap(number, 0, 3); System.out.println(number); //find hashcode after being sorted System.out.println("hasCode after: " + numbers.hashCode()); . hashCode before: 955456 [1, 5, 2, 7] hasCode after: 32 .", - "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/arraylist-hw.html", - "relUrl": "/jupyter/2023/05/16/arraylist-hw.html", - "date": " • May 16, 2023" + "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/arraylist-hw.html", + "relUrl": "/jupyter/2023/05/23/arraylist-hw.html", + "date": " • May 23, 2023" } @@ -70,9 +70,9 @@ ,"post6": { "title": "API", "content": "Basic Syntax . HTTP client sends requests and retrieves a response | A response body will be received if the request is successful | The JSON data from the API can formatted for our needs | . import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://contextualwebsearch-websearch-v1.p.rapidapi.com/api/Search/ImageSearchAPI?q=dream%20face%20reveal&pageNumber=1&pageSize=10&autoCorrect=true")) .header("X-RapidAPI-Key", "ba3cd3168dmsh90f3dc264426f1bp1aa7f3jsne8dc8f45e66c") .header("X-RapidAPI-Host", "contextualwebsearch-websearch-v1.p.rapidapi.com") .method("GET", HttpRequest.BodyPublishers.noBody()) .build(); HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); . {"_type":"images","totalCount":1178,"value":[{"url":"https://editors.dexerto.com/wp-content/uploads/2022/10/02/danny-gonzales-dream-face-reveal.jpg","height":675,"width":1200,"thumbnail":"https://rapidapi.usearch.com/api/thumbnail/get?value=3818080606879595940","thumbnailHeight":126,"thumbnailWidth":224,"base64Encoding":null,"name":"","title":"Dream fans demand Facetime with Danny Gonzalez amid face reveal campaign - Dexerto","provider":{"name":"dexerto","favIcon":"","favIconBase64Encoding":""},"imageWebSearchUrl":"https://usearch.com/search/dream%20face%20reveal/images","webpageUrl":"https://www.dexerto.com/entertainment/dream-fans-demand-facetime-with-danny-gonzales-amid-face-reveal-campaign-1947806/"},{"url":"https://lezeto.s3.us-east-2.amazonaws.com/wp-content/uploads/2021/12/01091052/Dream-Face-Reveal-Drama.jpg","height":432,"width":768,"thumbnail":"https://rapidapi.usearch.com/api/thumbnail/get?value=7108681215082112798","thumbnailHeight":108,"thumbnailWidth":192,"base64Encoding":null,"name":"","title":"The Truth About Dream Face Reveal Drama - Lezeto.com","provider":{"name":"lezeto","favIcon":"","favIconBase64Encoding":""},"imageWebSearchUrl":"https://usearch.com/search/dream%20face%20reveal/images","webpageUrl":"https://www.lezeto.com/the-truth-about-dream-face-reveal-drama/"},{"url":"https://shotoe.com/uploads/news/28/2855/1/2855173-everything-dream-has-said-about-their-face-reveal-plans.jpg","height":319,"width":544,"thumbnail":"https://rapidapi.usearch.com/api/thumbnail/get?value=422798834116271533","thumbnailHeight":119,"thumbnailWidth":202,"base64Encoding":null,"name":"","title":"Everything Dream Has Said About Their 'Face Reveal... Dream Shotoe","provider":{"name":"shotoe","favIcon":"","favIconBase64Encoding":""},"imageWebSearchUrl":"https://usearch.com/search/dream%20face%20reveal/images","webpageUrl":"https://shotoe.com/dream-st_275423/news/everything-dream-has-said-about-their-face-reveal-plans-sn_2855173/"},{"url":"https://www.svg.com/img/gallery/dream-knows-how-he-wants-to-do-a-face-reveal/l-intro-1623261532.jpg","height":900,"width":1600,"thumbnail":"https://rapidapi.usearch.com/api/thumbnail/get?value=8835138760831175764","thumbnailHeight":126,"thumbnailWidth":224,"base64Encoding":null,"name":"","title":"Dream Knows How He Wants To Do A Face Reveal","provider":{"name":"svg","favIcon":"","favIconBase64Encoding":""},"imageWebSearchUrl":"https://usearch.com/search/dream%20face%20reveal/images","webpageUrl":"https://www.svg.com/432967/dream-knows-how-he-wants-to-do-a-face-reveal/"},{"url":"https://static3.gamerantimages.com/wordpress/wp-content/uploads/2021/01/dream-face-reveal.jpg","height":700,"width":1400,"thumbnail":"https://rapidapi.usearch.com/api/thumbnail/get?value=140615080090905572","thumbnailHeight":98,"thumbnailWidth":196,"base64Encoding":null,"name":"","title":"Popular YouTuber Dream Has Been Doxed | Game Rant","provider":{"name":"gamerantimages","favIcon":"","favIconBase64Encoding":""},"imageWebSearchUrl":"https://usearch.com/search/dream%20face%20reveal/images","webpageUrl":"https://gamerant.com/dream-face-reveal-youtube-dox/"},{"url":"https://www.dexerto.com/wp-content/uploads/2022/03/30/dream-face-reveal-when.jpg","height":900,"width":1600,"thumbnail":"https://rapidapi.usearch.com/api/thumbnail/get?value=3063018545565945965","thumbnailHeight":225,"thumbnailWidth":400,"base64Encoding":null,"name":"Dream face reveal teaser","title":"Dream face reveal: Will Dream finally show his face after more teasers? - Dexerto","provider":{"name":"dexerto","favIcon":"","favIconBase64Encoding":""},"imageWebSearchUrl":"https://usearch.com/search/dream%20face%20reveal/images","webpageUrl":"https://www.dexerto.com/entertainment/dream-face-reveal-1794663/"},{"url":"https://staticg.sportskeeda.com/editor/2022/10/30084-16647305086199-1920.jpg","height":1080,"width":1920,"thumbnail":"https://rapidapi.usearch.com/api/thumbnail/get?value=6329458979250092495","thumbnailHeight":135,"thumbnailWidth":240,"base64Encoding":null,"name":"Dream trending on Twitter after teasing an early face reveal (Image via Sportskeeda)","title":" "Proud of Dream " trends on Twitter as fans celebrate journey of Minecraft star before his official face-reveal","provider":{"name":"sportskeeda","favIcon":"","favIconBase64Encoding":""},"imageWebSearchUrl":"https://usearch.com/search/dream%20face%20reveal/images","webpageUrl":"https://www.sportskeeda.com/esports/news-proud-dream-trends-twitter-fans-celebrate-journey-minecraft-star-official-face-reveal"},{"url":"https://famouspeopletoday.com/wp-content/uploads/2021/05/ChrisFix-Net-Worth-Face-Reveal-Real-Name-Biography.jpg","height":805,"width":1210,"thumbnail":"https://rapidapi.usearch.com/api/thumbnail/get?value=6606051994259958598","thumbnailHeight":402,"thumbnailWidth":604,"base64Encoding":null,"name":"","title":"ChrisFix - Net Worth, Face Reveal, Real Name, Biography - Famous People Today","provider":{"name":"famouspeopletoday","favIcon":"","favIconBase64Encoding":""},"imageWebSearchUrl":"https://usearch.com/search/dream%20face%20reveal/images","webpageUrl":"https://famouspeopletoday.com/chrisfix/"},{"url":"https://staticc.sportskeeda.com/editor/2022/10/123da-16647288760781-1920.jpg","height":1081,"width":1920,"thumbnail":"https://rapidapi.usearch.com/api/thumbnail/get?value=362576054151781025","thumbnailHeight":135,"thumbnailWidth":239,"base64Encoding":null,"name":"Minecraft fame Dream teases much-awaited face reveal (Image via Sportskeeda)","title":"Why Dream's face-reveal means so much to Minecraft community","provider":{"name":"sportskeeda","favIcon":"","favIconBase64Encoding":""},"imageWebSearchUrl":"https://usearch.com/search/dream%20face%20reveal/images","webpageUrl":"https://www.sportskeeda.com/esports/why-dream-s-face-reveal-means-much-minecraft-community"},{"url":"https://staticc.sportskeeda.com/editor/2022/10/6c2c4-16647164620710-1920.jpg","height":1081,"width":1920,"thumbnail":"https://rapidapi.usearch.com/api/thumbnail/get?value=27269792429543382","thumbnailHeight":135,"thumbnailWidth":239,"base64Encoding":null,"name":"Popular Minecraft YouTuber Dream has fans riled up as they await his face reveal (Image via Twitter)","title":"Why is 'Dream face reveal' trending on Twitter?","provider":{"name":"sportskeeda","favIcon":"","favIconBase64Encoding":""},"imageWebSearchUrl":"https://usearch.com/search/dream%20face%20reveal/images","webpageUrl":"https://www.sportskeeda.com/esports/why-dream-face-reveal-trending-twitter"}]} . Web Service . We will be using JavaScript in our application for easier compatibility with HTML and CSS. Below is a web service written in JavaScript for a search API. . function ApiRequest() { const http = require("https"); const options = { "method": "GET", "hostname": "contextualwebsearch-websearch-v1.p.rapidapi.com", "port": null, "path": "/api/Search/ImageSearchAPI?q=taylor%20swift&pageNumber=1&pageSize=10&autoCorrect=true", "headers": { "X-RapidAPI-Key": "ba3cd3168dmsh90f3dc264426f1bp1aa7f3jsne8dc8f45e66c", "X-RapidAPI-Host": "contextualwebsearch-websearch-v1.p.rapidapi.com", "useQueryString": true } }; const req = http.request(options, function (res) { let str = ""; res.on("data", function (chunk) { str += chunk; }); res.on("end", function () { parsedData = JSON.parse(str); // print first hit in data console.log(parsedData['value'][0]) }); }); req.end(); } ApiRequest(); . { url: 'http://cache.umusic.com/_sites/_halo/taylorswift/images/meta-image.jpg', height: 630, width: 1200, thumbnail: 'https://rapidapi.usearch.com/api/thumbnail/get?value=1094927124898698511', thumbnailHeight: 157, thumbnailWidth: 299, base64Encoding: null, name: '', title: 'Taylor Swift - Official Website', provider: { name: 'umusic', favIcon: '', favIconBase64Encoding: '' }, imageWebSearchUrl: 'https://usearch.com/search/taylor%20swift/images', webpageUrl: 'https://www.taylorswift.com/' } .", - "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/api.html", - "relUrl": "/jupyter/2023/05/16/api.html", - "date": " • May 16, 2023" + "url": "https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/api.html", + "relUrl": "/jupyter/2023/05/23/api.html", + "date": " • May 23, 2023" } @@ -80,7 +80,7 @@ ,"post7": { "title": "RDS Tutorial", - "content": "What is RDS? . Rather than having a database stored on a local file, the RDS database is stored on the cloud. . Creating the RDS Database Instance . Instructions here . In pom.xml, add the following dependencies: . <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <scope>runtime</scope> </dependency> . In application.properties, add the following configurations: . spring.datasource.url=jdbc:postgresql://<database-endpoint-url>:<port>/<database> spring.datasource.username=YOUR_USERNAME spring.datasource.password=YOUR_PASSWORD spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect spring.jpa.hibernate.ddl-auto=update spring.jpa.hibernate.show-sql=true . Now, the spring application is connected to the RDS database in the cloud. . Using the Database . After setting up the RDS database, you should be able to work with spring as usual. . https://nirajsonawane.github.io/2022/04/18/Spring-Boot-AWS-RDS/ .", + "content": "What is RDS? . Simple Definition: Rather than having a database stored on a local file, the RDS database is stored on the cloud. . Further Research/More Information: . RDS: Relational Database Service a web service provided by Amazon Web Services (AWS) that allows individuals to set up, operate, and scale a database while storing it in the cloud | RDS makes it easy to set up, operate, and scale a MySQL database instance in the case of AP Computer Science at Del Norte High Schools | . | . By using RDS, individuals can offload the administrative tasks of database management . examples: hardware provisioning, software patching, backups, and database scaling, to AW | RDS takes care of the underlying infrastructure allowing more time to work on website features | . | Key Features and Benefits of RDS: . Managed service: AWS manages the infrastructure, database setup, patching, and backups, reducing your administrative burden. | Scalability: RDS allows you to scale your database instance up or down based on a users needs, which ensures efficiency | Security: RDS provides built-in security features, such as encryption at rest and in transit, network isolation, and user access control | Automated software patching: RDS can automatically apply patches and updates to the database software, reducing downtime and ensuring security. | Stores information in the cloud instead of just locally --> can not be easily deleted and ruined | . | . Overall Takeaway: RDS simplifies the process of deploying and managing relational databases, making it a popular choice for many organizations seeking a scalable and reliable database solution in the cloud | . | . Creating the RDS Database Instance . Instructions here . In pom.xml, add the following dependencies: . <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <scope>runtime</scope> </dependency> . In application.properties, add the following configurations: . spring.datasource.url=jdbc:postgresql://<database-endpoint-url>:<port>/<database> spring.datasource.username=YOUR_USERNAME spring.datasource.password=YOUR_PASSWORD spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect spring.jpa.hibernate.ddl-auto=update spring.jpa.hibernate.show-sql=true . Now, the spring application is connected to the RDS database in the cloud. . Using the Database . After setting up the RDS database, you should be able to work with spring as usual. . https://nirajsonawane.github.io/2022/04/18/Spring-Boot-AWS-RDS/ .", "url": "https://mnarayan1.github.io/csa-fastpages/2023/05/16/RDStutorial.html", "relUrl": "/2023/05/16/RDStutorial.html", "date": " • May 16, 2023" diff --git a/categories/index.html b/categories/index.html index cf1246a..ac1baa8 100755 --- a/categories/index.html +++ b/categories/index.html @@ -20,37 +20,37 @@

jupyter

-

Test Corrections • May 16, 2023

+

Test Corrections • May 23, 2023

-

Group Lesson Homework Assignments • May 16, 2023

+

Group Lesson Homework Assignments • May 23, 2023

-

Unit 8 - 2D Array HW • May 16, 2023

+

Unit 8 - 2D Array HW • May 23, 2023

-

52 Question Quiz Corrections • May 16, 2023

+

52 Question Quiz Corrections • May 23, 2023

-

ArrayList • May 16, 2023

+

ArrayList • May 23, 2023

-

Unit 7 - ArrayList Homework • May 16, 2023

+

Unit 7 - ArrayList Homework • May 23, 2023

-

API • May 16, 2023

+

API • May 23, 2023

diff --git a/feed.xml b/feed.xml index f492196..d0051df 100755 --- a/feed.xml +++ b/feed.xml @@ -1 +1 @@ -Jekyll2023-05-17T13:10:16-05:00https://mnarayan1.github.io/csa-fastpages/feed.xmlfastpagesAn easy to use blogging platform with support for Jupyter Notebooks.Test Corrections2023-05-16T00:00:00-05:002023-05-16T00:00:00-05:00https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/test-correctionsGroup Lesson Homework Assignments2023-05-16T00:00:00-05:002023-05-16T00:00:00-05:00https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/group-lesson-homeworkUnit 8 - 2D Array HW2023-05-16T00:00:00-05:002023-05-16T00:00:00-05:00https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/darray-hw52 Question Quiz Corrections2023-05-16T00:00:00-05:002023-05-16T00:00:00-05:00https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/correctionsArrayList2023-05-16T00:00:00-05:002023-05-16T00:00:00-05:00https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/16/arraylist \ No newline at end of file +Jekyll2023-05-24T00:17:39-05:00https://mnarayan1.github.io/csa-fastpages/feed.xmlfastpagesAn easy to use blogging platform with support for Jupyter Notebooks.Test Corrections2023-05-23T00:00:00-05:002023-05-23T00:00:00-05:00https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/test-correctionsGroup Lesson Homework Assignments2023-05-23T00:00:00-05:002023-05-23T00:00:00-05:00https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/group-lesson-homeworkUnit 8 - 2D Array HW2023-05-23T00:00:00-05:002023-05-23T00:00:00-05:00https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/darray-hwAPI2023-05-23T00:00:00-05:002023-05-23T00:00:00-05:00https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/apiArrayList2023-05-23T00:00:00-05:002023-05-23T00:00:00-05:00https://mnarayan1.github.io/csa-fastpages/jupyter/2023/05/23/arraylist \ No newline at end of file diff --git a/index.html b/index.html index 0abde00..2afa2c2 100755 --- a/index.html +++ b/index.html @@ -96,66 +96,66 @@

Posts