• Breaking News

    Tuesday, December 7, 2021

    Where can I find MIT’s NEWEST books for CS? learn programming

    Where can I find MIT’s NEWEST books for CS? learn programming


    Where can I find MIT’s NEWEST books for CS?

    Posted: 07 Dec 2021 06:03 AM PST

    I was looking at MIT's catalog of classes for CS, and I used the bookstore to try to see what books are needed for each class for the Spring 2022 term. Unfortunately, the website says there's literally no information available for the material needed? And it's for a lot of the classes.

    I really wanted to use the same material MIT uses to teach myself computer science. I do not like online courses at all. I prefer learning things from books. Where can I find the EXACT books I need for EVERY CS course at MIT?

    EDIT: please note "newest" in the title. MIT opencourseware has textbooks for PREVIOUS school years, which is not what i am looking for. I am looking for the absolute newest textbooks rhey use.

    submitted by /u/ArianaVentiButera
    [link] [comments]

    Learning MATLAB machine learning together

    Posted: 07 Dec 2021 12:35 AM PST

    Hi

    I am about to start a Phd. in vision science, and would like to to see if I can get at least a basic level in machine learning.

    To study it alone sounds to boring, and to take an online course would cost less than an online course but again- doing it with a buddy might be less boring.

    So- who would like to be my buddy to learn together?

    All the best to everyone

    M

    submitted by /u/mendy2021
    [link] [comments]

    Best resources for learning Perl?

    Posted: 07 Dec 2021 06:11 AM PST

    I'll be moving into a position in the next month that will eventually need me to be versed in perl scripting. Any recommended courses or books to help get me started?

    submitted by /u/JackieWaste
    [link] [comments]

    How light is django compared to wordpress?

    Posted: 07 Dec 2021 04:47 AM PST

    Both wp and django have minimun requirements of 512mb ram i have 1ram 1cpu vps and its the only thing i can afford monthly so far. All i need is a 1-3 page site where i can transfer digital products or use it as a payment gateway for a freelance service. Wordpress is easier to use but setting up woocommerce and other plugins wouldn't be possible i guess for a little vps i got. So i was thinking of just coding it myself using django and add some features and integrating payment in the some free web api's in the app directly and not using ecommerce functionality

    submitted by /u/kreate15
    [link] [comments]

    are the udemy Web Developer Bootcamps good ?

    Posted: 07 Dec 2021 04:44 AM PST

    USA here, basically title. courses are on sale for only about 20 bucks right now. also, for those who have taken them, which one do you prefer ? there are two of them one by a guy name colt steel, another a lady angela yu. in addition, do you think these can make you job ready ? also if you have been applying/interviewing, did anyone take these online udemy bootcamps seriously ?

    edit: i know a portfolio is essential.

    submitted by /u/NEETWorkingAtHome
    [link] [comments]

    What can I do(job) with python and R knowledge when I have a post grad degree in psychology

    Posted: 07 Dec 2021 04:41 AM PST

    Trying to combine my interests but I don't know how. Need some good advice. Thank you!

    submitted by /u/simpforalbertcamus
    [link] [comments]

    My local git branch is different from remote, despite it saying that it is up to date.

    Posted: 07 Dec 2021 03:49 AM PST

    Hello,

    My apologies if this is a silly question, but I can't figure it out.

    I'm using git for version control and VSCode as the editor. I'm trying to pull from a github repo, but it tells me: "Already up to date."

    When I open VSCode, I can see that the branch is set to the one which I'm trying to pull from, but I can see that the contents are different from the github repo.

    How can I troubleshoot this?

    submitted by /u/Anxiety_Independent
    [link] [comments]

    Asking for help on PHP Assignment

    Posted: 07 Dec 2021 07:14 AM PST

    Hi, so my friend is taking this programming course and his final is due in a couple of days and she has no idea where to even start with the prompt she has been given so if anyone had any idea how to start that would be great….I left the prompt below

    "Create a functional web program written in PHP that has a business purpose. For example: you might write a program to manage a buisness inventory, or a program to manage college course schedules.

    Your web program must utilize a database (data must be read from and written to a database). The program should be capable of reading data from a user, and then storing the data in a database. It should also be capable of displaying the data stored.

    For full credit your program must use a database, it must be able to display the saved data, and users must be able to add additional data records."

    submitted by /u/Zestyclose-Flan-5329
    [link] [comments]

    Is learning by reading more efficient than watching guided videos?

    Posted: 06 Dec 2021 09:31 PM PST

    I recently stumbled upon a few tools that teach you how to learn better. One phenomenon that I have been observing is that following videos makes me really impatient and efficacy is much lower than just reading resources such as FCF, javascript.info, FullStackOpen etc.

    Also written resources tend to be error free. Its really frustrating when I spend 2 hours building something with the code-along for the author just to scrape everything because they forgot that it doesn't work this way.

    Wonder if anyone observed their own meta-learning insights? If so, what are they?

    One approach that really stroke a chord with me is creating a semantic tree of concepts, dividing into subtopics, creating flash cards for active recall and then trying to implement these sub-topics on my own - such as callback functions for instance.

    Curious about your experience!

    submitted by /u/kirso
    [link] [comments]

    Seeking Programming Friends

    Posted: 07 Dec 2021 06:59 AM PST

    Hi,

    I am about to finish classes I am taking on .Net development. I'm just looking for some programming friends. C#, JavaScript, React, and HTML/CSS are the languages I know now, but I am wanting to learn others. I've tried interacting with my classmates, but they have lives and I do not, haha. I'm not sure how to reach out to other beginner programmers, any groups on Discord? Other Reddit groups?

    submitted by /u/amberdmillios
    [link] [comments]

    DIFF w/ normalization of code between two files

    Posted: 07 Dec 2021 06:59 AM PST

    Is there a DIFF which can normalize code (Java especially, but other languages would be great) before comparing them? I know you can usually ignore whitespace diffs, but I'd also like to ignore stuff like if the curly bracket is placed in a different line, or using the "if (i > 0) doThis();" pattern vs "if (i > 0) { doThis(); }" pattern, comments, or various other things that are stylistic.

    submitted by /u/imkookoo
    [link] [comments]

    [Intro To Prob Solv/Programming C++] How to Properly Return Values From My Functions? Function Not Writing to Text File

    Posted: 07 Dec 2021 06:54 AM PST

    So I sent in this most recent programming assignment to my instructor to see what he thought. I had initially declared my vector as a global, which I know isn't allowed, but I knew it would make the program work. I basically have two questions. This was their criticism of my original code:

    "Functions. They're all void and without parameters. Pass values to functions, and return values from them."

    Okay, so I declared in main. I can't figure out how to return them properly. Also my function to write the vector to a text file is no longer working and I have no idea why. Here is my current code:

    include <iostream>

    include <string>

    include <iomanip>

    include <vector>

    include <algorithm>

    include <fstream>

    using namespace std;

    void showMenu(); void displayMovieList(vector<string>movieList); ofstream exportMovieList(vector<string>);

    int main() {

    vector<string>movieList{}; int menuChoice; int totalNumberOfMovies = 0; string movieTitle; double totalDollarAmount = 0; double averagePriceOfCollection; double declaredValue; cout << "Use this program to keep an inventory of the DVDs and Blu-Ray in your collection: " << endl << endl; showMenu(); cin >> menuChoice; cout << endl; while (menuChoice != 6) { switch (menuChoice) { case 1: { cout << "Please enter the name of the movie you want to add: " << endl; cin.ignore(); getline(cin, movieTitle); cout << endl; cout << "Please enter the declared value of this title: " << endl; cin >> declaredValue; totalDollarAmount += declaredValue; totalNumberOfMovies++; movieList.push_back(movieTitle); cout << endl; showMenu(); cin >> menuChoice; cout << endl; break; } case 2: { displayMovieList(movieList); cout << endl; showMenu(); cin >> menuChoice; break; } case 3: { cout << "The total number of movies in your collection is " << totalNumberOfMovies << endl << endl; cout << "The total dollar amount declared is $" << totalDollarAmount << endl << endl; showMenu(); cin >> menuChoice; break; } case 4: { cout << "The total number of movies in your collection is " << totalNumberOfMovies << endl; averagePriceOfCollection = totalDollarAmount / totalNumberOfMovies; cout << "The average price of your collection is $" << fixed << setprecision(2) << averagePriceOfCollection << endl; showMenu(); cin >> menuChoice; break; } case 5: { exportMovieList(movieList); showMenu(); cin >> menuChoice; break; } default: { cout << "That is not a valid choice. Please try again." << endl << endl; showMenu(); cin >> menuChoice; break; } } } cout << "Thank you for using the DVD inventory program. Have a good day!" << endl; system("pause"); return 0; 

    }

    void showMenu() { cout << "Please make a selection from the menu: " << endl << endl; cout << "1. Add DVD or Blu-Ray" << endl; cout << "2. Display Collection" << endl; cout << "3. Display Total Dollar Amount of Collection" << endl; cout << "4. Display Average Price of Collection" << endl; cout << "5. Export List to Text File" << endl; cout << "6. Exit" << endl << endl; } void displayMovieList(vector<string>movieList) { sort(movieList.begin(), movieList.end()); for (int i = 0; i < movieList.size(); i++) { cout << movieList[i] << endl; } 

    }

    ofstream exportMovieList(vector<string>movieList) { sort(movieList.begin(), movieList.end()); ofstream file; file.open("movieList.txt"); for (int i = 0; i < movieList.size(); i++) { file << movieList[i] << endl; } file.close(); return file; 

    }

    submitted by /u/Foreverchanges1690
    [link] [comments]

    How to send data object to backend? [REACT]

    Posted: 07 Dec 2021 06:50 AM PST

    When i run this it says "Success!" indicating that it works.....

    const submitForm = async (data) => { const timeAddedToData = { ...data, ...{ ['startTime']: startTime, ["endTime"]: endTime } }; axios({ method: 'post', url: 'http://localhost:3001/post', data: timeAddedToData }); console.log(timeAddedToData) axios.post("http://localhost:3001/", timeAddedToData) .then(() => { console.log("Success!") }) } 

    But when I get it here it says undefined...

    app.post("/post", (req, res) => { const usersData = [] axios.get("http://localhost:3000") .then((response) => res.json()) .then(res => usersData.push(res.data)) console.log(req.body) }) 

    So how can I retrieve the object in the backend?

    submitted by /u/thecarrot95
    [link] [comments]

    do you write requirements using scrum or any other agile methodology?

    Posted: 07 Dec 2021 06:45 AM PST

    Hi, I've reading about scrum in software projects and I found people sharing how they work with their teams

    For example, one said that their process was:

    PO writes the business feature, (teach lead) split it to tech PBIs (with implementation ideas), the dev team review and estimate.

    Some use Jira to do this, and others use Trello

    My questions are:

    1. What do you use to keep your user stories or the business features that the PO writes? (like in the example process I explained above )
    2. Is it good to have a document structured with those requirements apart from the user stories written for example using Jira or Trello ?
    3. If the previous answer is yes, what tool or software do you use to write those requirements ?
    4. how do you structurate that document of requirements ? do you include like a description of the project too or any other elements?
    5. Every time you get a new user story or you modifiy your user stories then the document of requirement must be updated. do you have a specific person in the project to do that job ?

    thanks

    submitted by /u/Emiliortg
    [link] [comments]

    ASP.NET 5 MVC Questions

    Posted: 07 Dec 2021 06:38 AM PST

    I've been developing Java desktop apps for a few years now. I'm trying to transition them to the ASP.NET web framework. I've been watching Tim Corey videos and reading the Microsoft documentation. I have a few questions that I can't easily answer.

    1. How can I tell what is going on "behind the scenes" so to speak? If I update my model it automatically updates my .cshtml. If I manually change my .cshtml will my next model update revert these changes back? Are any other folders/file types I create subject to this one file modifies the other action or is it just the default templates?

    2. What files/classes are running on the server vs the client computer? I have an app that updates one database with numerous tables from another database. I'd like these database actions to run on the server so its quicker, how can I ensure the server is taking care of this instead of the client.

    Please list any other resource you think I can benefit from, thanks.

    submitted by /u/13-14_Mustang
    [link] [comments]

    Is there a way to break out of DFS after I reach a certain node

    Posted: 07 Dec 2021 06:33 AM PST

    If I add a "return;" normally that should do it but since it's a depth first search traversal it's not working, it only returns to the step above it. So, is there a way that I can completely break out of a DFS after I reach the node I want to reach. It's not really an exact implementation of dfs since i do wanna visit nodes I visited again but it uses the same recursive concept. Basically I'm trying all the paths from a certain source n to the destination l, obviously this isn't the whole code but it's working fine, I just can't break out of the whole function when n==l. Is the only was out of this as iterative dfs?

    static void DFS(int[][] graph, int n, int l, int min, int[] []cost, int c, boolean b,ArrayList<Integer> arr, ArrayList<Integer> p) { if(n==l) { arr.add(min); p.add(c); b = true; System.out.println(min+" "+c); return; } for(int i = 1;i<graph[n].length;i++) { if(graph[n][i]!=0) { c = c+cost[n][i]; if(min>graph[n][i]) { min = graph[n][i]; } DFS(graph,i,l,min,cost,c,b,arr,p); } } // int[] ar = {min,c}; // return ar; } 
    submitted by /u/Lawliet66
    [link] [comments]

    Help with SQL

    Posted: 07 Dec 2021 06:31 AM PST

    Hi there,

    I have the following question,

    Instructions

    1. Create a table called orders
      and a table called items
      . You decide which fields should be in each table, although make sure the items
      table has a column called price.
    2. There should be a one to many relationship between the orders
      table and the items
      table. An order can have many items, but an item can belong to only one order.
    3. Create a function that returns the total price for a given order.
    4. Bonus :

      1. Create a table called users
        .
      2. There should be a one to many relationship between the users
        table and the orders
        table.
      3. Create a function that returns the total price for a given order of a given user.

    I have the following code, and I am stuck, any help would be great!

    CREATE TABLE items(id SERIAL UNIQUE, item varchar(20),price int, order_number int);

    CREATE TABLE orders(id SERIAL, item1 int, sending_country varchar(20), PRIMARY KEY(id), FOREIGN KEY (item1) REFERENCES items(id));

    ALTER TABLE items ADD FOREIGN KEY (order_number) REFERENCES orders(id);

    SELECT sum(price)

    FROM items

    INNER JOIN orders ON orders.item1 = items.id

    WHERE orders.id = items.order_number;

    CREATE TABLE users(id SERIAL, last_name varchar(20),orders int, PRIMARY KEY (id), FOREIGN KEY (orders) REFERENCES orders(id));

    SELECT sum(price)

    FROM items

    INNER JOIN orders ON orders.item1 = items.id

    INNER JOIN users ON users.orders = orders.id

    WHERE orders.id = items.order_number AND orders.id = users.orders;

    submitted by /u/lurtri
    [link] [comments]

    How do I document a messy process?

    Posted: 07 Dec 2021 06:21 AM PST

    Recently, I joined a new company and was asked to support multiple projects. One of the projects is a mess. It's just a lambda code making a call to an API Gateway and the API in the Gateway would make a call to another off-the-shelf product to fetch some data and do some logic on it. It was built by a contractor and it seemed to me he didn't put much effort into it. There was no documentation or any guides, so now my manager is asking me to document it, but Idk where to start for such a messy code.

    I'm very new at this, so any tips and recommendations are appreciated.

    My current plan is to create a README.md file and list some of these

    1. Intro
    2. Flow
    3. How to test
    submitted by /u/lottery_winner77777
    [link] [comments]

    Trying to create paths recursively from a position?

    Posted: 07 Dec 2021 06:07 AM PST

    Ok, so I have a function that gives me the possible moves I can take on a board of MxM size. For the sake of this post we will name it moves().

    I am trying to build another function that recursively collects all the paths that the piece can take. So for example if I start at (0,0), the function moves((0,0)) returns a list of [(1,2), (2,1)] as possible landing spots. I then want to follow that returned list recursively 7 more times. In this case, starting at (0,0). At the end I would have a list of a list of 8 positions all starting with (0,0).

    Here is my tracking function:

    def follow(point, c=8):

    path = []

    checked = []

    if is_valid(point) and c > 0 and b[point[0]][point[1]]:

    path.append(point)

    for m in moves(point):

    if m not in checked:

    checked.append(m)

    follow(m, c=c-1)

    else:

    return pathr

    eturn checked

    Where am I going wrong?

    submitted by /u/mrabstract29
    [link] [comments]

    No comments:

    Post a Comment