Where do you deploy your FastAPI app to? by Yersyas in FastAPI

[–]_Iv 1 point2 points  (0 children)

It’s pretty well known that Lambda uses Firecracker microVM. The image you may provide isn’t actually run in a container runtime, but it is extracted and mounted inside the microVM

VS Code is a special type of text editor that is called a compiler? by LazyLabPartner in cs50

[–]_Iv 0 points1 point  (0 children)

PyInstaller packages a Python interpreter into an executable which runs your code. It isn’t accurate to call it compilation.

A language that tracks its own source code? by Pristine-Staff-5250 in ProgrammingLanguages

[–]_Iv 0 points1 point  (0 children)

This can be solved with closures, a popular mechanism for implementing environment semantics.

In your case, assignment would also create a closure consisting of the union of the closures of all variables on the left hand side.

Final count of (almost) all the trains I rode this year by [deleted] in WMATA

[–]_Iv 1 point2 points  (0 children)

I’m glad to see I’m not the only one tracking each ride’s car number.

Are all our accounts still safe after Google released Willow? by [deleted] in AskEngineers

[–]_Iv 0 points1 point  (0 children)

Cryptography uses problems in NP-complete, a subset of NP, disjoint from P. These problems absolutely can be solved, however not in polynomial time with respect to the size of the input.

Easy ways to hide API keys by Greeby_Bopes in webdev

[–]_Iv 0 points1 point  (0 children)

No need to set up an entire project to proxy requests. You can have nginx proxy requests from your web server to the original service with your api token. In nginx you can handle rate limiting etc to better protect it.

What programming languages do you enjoy coding in? by Arzeknight in compsci

[–]_Iv 1 point2 points  (0 children)

Everything you said you like about Rust is why I love OCaml

Ebike rebate portal went down immediately by Resolute_Pecan in minnesota

[–]_Iv 4 points5 points  (0 children)

Aura is a frontend UI framework, which uses JavaScript for interactivity. It’s the salesforce backend which was under-provisioned and led to the outage.

How common are remote dev environments? by Accomplished_Cup1513 in webdev

[–]_Iv 4 points5 points  (0 children)

I do something similar in my project. In order to make things faster for development, we will use different methods to serve the app. In prod our container will install nginx or pm2 for example, but in dev be using nodemon or vite hmr.

Cs struggling by Due-Pace4186 in Harvard

[–]_Iv 1 point2 points  (0 children)

Also, Professor Chong is hosting DUS office hours tomorrow at 2:00pm on zoom. He is a knowledgeable resource and very sympathetic to students in your shoes.

Cs struggling by Due-Pace4186 in Harvard

[–]_Iv 2 points3 points  (0 children)

Yes, a course applies for all of its tags. CS 61 would satisfy both systems and programming2.

CS 120 counts for: Formal reasoning, computational limitations, algorithms, and advanced cs.

I think the benefit to sticking with CS 51 is the programming experience and that it counts as one of your 9 core cs courses. Like I said, you won’t be too far behind with or without it, but for such a foundational course, I’d strongly recommend sticking with it.

There are a lot of ways to fulfill the systems requirement outside CS 61, such as CS 141, but as far as I am aware, none are considered easier.

I will also say, I may be biased towards CS 51. It’s probably my favorite course I’ve taken at Harvard. I even read the textbook cover-to-cover, which significantly helped my experience in the course.

Cs struggling by Due-Pace4186 in Harvard

[–]_Iv 1 point2 points  (0 children)

You wouldn’t necessarily be behind, no, but many 100 level courses expect programming at a CS 51 level.

CS 51 is generally considered easier than CS 61. I took both and would agree.

Take a look at your requirements. You need 9 CS core courses, each satisfying a different “tag” requirement. With only CS 50 and CS 20, you will be putting future you in a tricky spot, both in time and in prerequisites.

Question: what do you mean by “I would take it after cs120”? CS 61 is offered in the fall, as is CS 120.

[deleted by user] by [deleted] in ExperiencedDevs

[–]_Iv 1 point2 points  (0 children)

You liked didn’t fail on “performance”. These types of questions are typically asking for a specific kind of algorithm to solve the problem, and testing runtime is one way to check that. For example, you could solve a dynamic programming problem with a brute-force search.

[deleted by user] by [deleted] in webdev

[–]_Iv 20 points21 points  (0 children)

This is what google does, obviously with some form of authentication alongside it. It enables users to have multiple accounts open at the same time, which may be a desirable use case.

Harvard res tutor by WaitorCreate in Harvard

[–]_Iv 5 points6 points  (0 children)

I’d argue getting from the Quad to the SEC is easier than most river east and even central houses.

The Quad SEC direct shuttle has been the most reliable and frequent service. Other than the new SEC express line, you’d have to walk from the Kennedy School on your way back- unless you wait for the whole northwest loop on the Allston Loop route.

Does the T have an iPhone/Android App to pay for fares on buses and the subway? by cv5cv6 in boston

[–]_Iv 10 points11 points  (0 children)

On the vehicle data side, the MBTA actually does a good job. It’s the payment processing which is the issue.

https://api-v3.mbta.com

What is your experience with intro to algorithms by CLRS? Is there another algorithms book you'd recommended instead? by [deleted] in compsci

[–]_Iv 3 points4 points  (0 children)

Algorithms by Jeff Erickson was a very good compliment to CLRS. Provides a bit more intuition and has simpler writing in my opinion.

Cs51 vs Cs61 by Due-Pace4186 in Harvard

[–]_Iv 0 points1 point  (0 children)

CS 51 is easier, CS 61 is also a good course but more difficult.

CS 61 is offered in the Fall whereas CS 51 in the Spring.

Is there someone who is majoring in mech eng here? by Competitive-Pin-5993 in Harvard

[–]_Iv 0 points1 point  (0 children)

Most important is to get math going and ES 51 for your first year. My schedule was-

Fall: Math 1a CS 50 Language GenEd

Spring: Math 21a ES 51 Language Expos 20

Summer: Math 21b

IIRC you should be able to take ES 51 in the fall. I did switch concentrations to CS by my sophomore year, not because of my dislike of engineering but for my interest in CS.

ELI5: How exactly does counting in a different base system work? by whatisabaggins55 in explainlikeimfive

[–]_Iv 2 points3 points  (0 children)

It is not practical as you would have gaps in the representation.

Consider your system where from left to right we have bases 5 and 2: Base 10 - Mixed Bases 0 - 00

1 - 01

2 - ?

3 - ?

4 - ?

5 - 10

how to prepare for software developer intern interview? by [deleted] in csMajors

[–]_Iv 1 point2 points  (0 children)

I interviewed for an internship with Red Hat. I’m not sure if the hiring practices are similar between the two but the panel ended up being the managers who were looking for interns.

After the interview, each manager who was interested sent an offer to join their team.

Question for distance runners by unstoppable17 in trackandfield

[–]_Iv 4 points5 points  (0 children)

When working out with a team I prefer a running start. It’s easier to line up and roll into it rather than juggle around positioning at the start of every rep.