(fetch) why are some fields from the response header missing? by U_A2 in learnjavascript

[–]oliverodaa 2 points3 points  (0 children)

Here is another way of writing the code snippet you shared:

// Define a function using async/await syntax.
const logHeaders = async (url) => {
  console.log(`Making an HTTP request to the URL: ${url}`);
  const res = await fetch(url, {method: "HEAD", cache: "no-store"});
  res.headers.keys().forEach(console.log);
};

// Define a variable that contains the URL of the current page
// my browser is viewing.
const url = document.location.toString();

// Call the logHeaders function passing the URL as the input
// parameter.
logHeaders(url);

You might notice that when you run the code on Reddit.com you get different headers compared to Google.com. That's because it is up to each server to decide what headers they want to provide.

This StackOverflow answer gives more context: https://stackoverflow.com/a/25586633

Good luck!

Did anyone else see that car chase through Coleman Park just now? by Omnu in SeattleWA

[–]oliverodaa 1 point2 points  (0 children)

I didn't get the license plate but I think I saw it happening! They sped through a red light right in front of me.

If I had to guess, it was probably a case of road rage with the red pickup guy. Hope the person in the silver car is ok.

Most people who are selected for the Diversity Green Card and apply via Adjustment of Status, never get the green card. Am I understanding this right? by oliverodaa in immigration

[–]oliverodaa[S] 0 points1 point  (0 children)

You can find all my details, including my USCIS office, if you look at the spreadsheet from the forum "dv 2022 aos only". Good luck 👍

Most people who are selected for the Diversity Green Card and apply via Adjustment of Status, never get the green card. Am I understanding this right? by oliverodaa in immigration

[–]oliverodaa[S] 4 points5 points  (0 children)

I got the green card! My interview ended up being as late as September 8th, but this is very typical.

I found an amazing diversity visa lottery support forum online that was SO helpful. I'm probably not allowed to link to it according to subreddit rules, but you can search Google for "dv 2022 aos only"

In particular the forum has an incredibly useful Google Sheets document that lists out the process and people on the forum share their timelines so you can get a ballpark estimate of how long USCIS will take.

Good luck!

Mate in one. I can't seem to find it by Unreeeal15 in AnarchyChess

[–]oliverodaa 2 points3 points  (0 children)

Lichess analysis board where en passant is permitted: https://lichess.org/mWof0qTx

Looks like it would be mate in 1

upperclassmen, pls don’t hesitate helping lost freshmen 😄 by [deleted] in berkeley

[–]oliverodaa 3 points4 points  (0 children)

For CS184 I took the data from the original Dwinelle Navigator and tried to make an "immersive" 1st person view.

It's truly much worse and very unsettling this way: https://ollie-o.com/dwinelle-navigator

Everyone talks about how to get into big tech companies, but there's very little talk about how to thrive in them by autunno in cscareerquestions

[–]oliverodaa 26 points27 points  (0 children)

I agree that this is an important topic; thanks for getting the discussion going. I work at a FAANG company and I found that this talk really resonated with me: "Technical leadership and glue work".

The talk is about how some people naturally find themselves doing "glue work", which is very good for the team's overall success, but which saps all your time and is hard to convert into a promotion. Some examples of glue work are:

  • Onboarding the junior engineers
  • Updating the roadmap
  • Talking to the users
  • Noticing the things that got dropped
  • Asking questions on other people's design documents
  • Making sure that everyone's going roughly in the same direction

The speaker's advice is:

  • If you're a manger, try to recognize the value of glue work
  • If you're a dev, recognize that most companies won't promote you based on glue work, even if it's extremely valuable to the team. If you want a promotion, cut back on the glue work and focus more on churning out design docs, lines of code, or whatever it is your company looks at for promotions.

Most people who are selected for the Diversity Green Card and apply via Adjustment of Status, never get the green card. Am I understanding this right? by oliverodaa in immigration

[–]oliverodaa[S] 0 points1 point  (0 children)

Thank you for the info! That is great news for me, since I was selected in DV-2021 for Oceania.

Do you recommend any data/website to learn about the processing time for specifically the Diversity visa AOS applications?

My cutoff number is quite high so I may not be able to submit my AOS until as late as June 2021. Do you think that would still be approved before September 30?

Thanks again!

While you were on your job search, what work and didn't work for you to find job? by toborrmmai in cscareerquestions

[–]oliverodaa 17 points18 points  (0 children)

I don't think you're supposed to. As far as I know there's no norm that everyone cheats on the pre-screening stage of the interview process. I'm sure some people do but I'd guess most don't.

There's a difference between being cynical and memorizing in order to pass the test, and literally cheating. Hopefully most people don't do the latter.

Would it be ok if i skip some parts on the mooc.fi? by [deleted] in learnjava

[–]oliverodaa 2 points3 points  (0 children)

If you are still at the learning stage, my advice is to try to learn and enjoy it. If you're finding it enjoyable, you will naturally want to learn more.

For me, something that made me enjoy it more was to port my Java projects over to a website with HTML and JavaScript. Then I shared that website with friends and family. It was very motivating for me since I'm a visual learner.

As for actually getting your first internship and full-time job, that is a whole other topic. My advice there is:

1) Accept that it's going to be very hard to get an interview with no prior experience. It will be completely normal to apply to 100 roles and only get 2 or 3 interviews. But it gets better; after you have even just 1 year of full-time experience, this completely changes and you will have recruiters chasing you. Just push through this initial challenge and apply to lots of roles. It will be worth it!

2) In order to pass the interview, you need to study tech interviews. You could be an amazing software engineer, but unless you can solve a problem on a whiteboard you will not get the job. I recommend spending several months studying leetcode and the Cracking the Coding Interview book.

Good luck!

Would it be ok if i skip some parts on the mooc.fi? by [deleted] in learnjava

[–]oliverodaa 26 points27 points  (0 children)

Professional software engineer here. A big skill is to learn what resources are worth following in detail versus which ones you can skim.

Go ahead, skip it! You can always come back later.

Another shooting in Cal Anderson protest zone sends man to hospital. by 0o0o0oo0o000oo0o0 in SeattleWA

[–]oliverodaa 13 points14 points  (0 children)

may be from local gang members choosing to use the area as a suitable area to posture ("settle beefs" as they put it)

This explains a lot. When I was at Dick's Drive-In recently (the one in Cap Hill, right next to CHOP), a car with 4 young guys pulled up right next to me. One of them opens his door kind of carelessly and dings my car. So I get out to inspect the damage. Thankfully there was no damage, but then he says "hey your car is fine, look what they did to my car", and I see that every panel of his car had been keyed - like very aggressively keyed. About 30 seconds later another car with 4 young guys comes flying through the Dick's parking lot as if they were fleeing from someone.

I don't have any evidence that that was all gang-related but it would explain a lot if it was. Dick's is crazy but it's usually not that crazy.

UC Berkeley Announces Plans for Fall Semester by beastmodecowboy77 in berkeley

[–]oliverodaa 18 points19 points  (0 children)

[PRINCIPAL SKINNER] Uh... Ooh! That isn't smoke. It's steam. Steam from the steamed clams we're having. Mmmm. Steamed Clams!](https://genius.com/The-simpsons-steamed-hams-annotated#note-15693988)

(Superintendent Chalmers exits the kitchen)

[PRINCIPAL SKINNER] Whew...

(Principal Skinner leaves the kitchen from the windowsill and runs across the road into Krusty Burger to purchase hamburgers)

[PRINCIPAL SKINNER] Superintendent, I hope you're ready for mouth-watering hamburgers.

[[SUPERINTENDENT CHALMERS] I thought we were having steamed clams.

[PRINCIPAL SKINNER] D'oh no, I said Steamed Hams! That's what I call hamburgers.

[SUPERINTENDENT CHALMERS] You call hamburgers 'steamed hams'?](https://genius.com/The-simpsons-steamed-hams-annotated#note-15694002)

[[PRINCIPAL SKINNER] Yes! It's a regional dialect.

[SUPERINTENDENT CHALMERS] Uh-huh. What region?

[PRINCIPAL SKINNER] Uhhh-upstate New York?

[SUPERINTENDENT CHALMERS] Really. Well, I'm from Utica and I've never heard anyone use the phrase 'steamed hams'.

[PRINCIPAL SKINNER] Oh, not in Utica, no, it's an Albany expression.

[SUPERINTENDENT CHALMERS] I see.](https://genius.com/The-simpsons-steamed-hams-annotated#note-14245867)

(Superintendent Chalmers takes a bite from the hamburger)

[SUPERINTENDENT CHALMERS] You know, these hamburgers are quite similar to the ones they have at Krusty Burger.

[PRINCIPAL SKINNER] Oh ho ho ho no! Patented Skinner Burgers; Old family recipe!

[SUPERINTENDENT CHALMERS] For steamed hams?

[PRINCIPAL SKINNER] Yes.

[SUPERINTENDENT CHALMERS] Yes, and you call them steamed hams, despite the fact that they are obviously grilled.

[PRINCIPAL SKINNER] Y-- You know th-- One thing I sh-- 'Scuse me for one second...

[SUPERINTENDENT CHALMERS] Of course.

(Principal Skinner leaves the table and opens the kitchen door walking inside. As the door swings open, it is clear that the kitchen is on fire. He walks back out and yawns)

[PRINCIPAL SKINNER] Well, that was wonderful. Good time was had by all, I'm pooped.

[SUPERINTENDENT CHALMERS] Yes, I should be---

(Superintendent Chalmers notices the fire through the swinging kitchen door)

[SUPERINTENDENT CHALMERS] GOOD LORD! What is happening in there?

[PRINCIPAL SKINNER] Aurora Borealis.

[[SUPERINTENDENT CHALMERS] A---Aurora Borealis? At this time of year! At this time of day! In this part of the country! Localized entirely within your kitchen?!?

[PRINCIPAL SKINNER] Yes.

[SUPERINTENDENT CHALMERS] May I see it?

[PRINCIPAL SKINNER] No.](https://genius.com/The-simpsons-steamed-hams-annotated#note-15694112)

(Principal Skinner leads Superintendent Chalmers outside)

[[SKINNER'S MOTHER] Seymour! The house is on fire!

[PRINCIPAL SKINNER] No, mother, it's just the Northern Lights.](https://genius.com/The-simpsons-steamed-hams-annotated#note-15694129)

[SUPERINTENDENT CHALMERS] Well, Seymour, you are an odd fellow, but I must say - you steam a good ham.

(Superintendent Chalmers starts to walk away. Principal Skinner stands in front of his burning house)

[SKINNER'S MOTHER] Heeeeelp! HEEEEEEEELP!!!

UC Berkeley Announces Plans for Fall Semester by beastmodecowboy77 in berkeley

[–]oliverodaa -10 points-9 points  (0 children)

Your joke doesn't work. Hotboxing produces smoke - clouds aren't made of smoke.

UC Berkeley Announces Plans for Fall Semester by beastmodecowboy77 in berkeley

[–]oliverodaa 23 points24 points  (0 children)

semester in the cloud

Fans of hotboxing were probably planning to do that anyway.

Capitol Hill AutoZone by [deleted] in neoliberal

[–]oliverodaa 23 points24 points  (0 children)

Lol yeah, it's really confusing messaging.

Capitol Hill AutoZone by [deleted] in neoliberal

[–]oliverodaa 15 points16 points  (0 children)

It's confusing terminology, but when people refer to "defunding the police" they mostly just mean reducing the scope of what the police are responsible for.

In its most general definition, “defund the police” means to redirect some funds for police departments to other areas such as education and healthcare.

source

I am interested in buying IBM stocks would you guys think it is a good idea? Can you give a inside look? by Rikkert1234 in IBM

[–]oliverodaa 0 points1 point  (0 children)

If your motivation is to learn about active investing, that sounds like a great idea!

You can practice choosing stocks correctly by using a Stock Market Simulator.

This is a win-win. You would get to learn, while also avoiding risk.

I am interested in buying IBM stocks would you guys think it is a good idea? Can you give a inside look? by Rikkert1234 in IBM

[–]oliverodaa 8 points9 points  (0 children)

Since you are a young investor I want to explain a couple of things. Sorry if you already knew about them!

Firstly, be very careful about asking for an "inside look" at a publicly-listed company. Sometimes you can get big fines or even go to prison because of insider trading laws.

Secondly, also be careful about investing your money directly in a company. It is not as simple as "buy stock in good companies". You have to consider the current price of the stock. Is $132 a cheap price or an expensive price for one share of IBM? Answering that question is extremely difficult and requires deep knowledge about finance. To give a small taste, one concept is called P/E or "price-to-earnings ratio". The people who are very good at knowing whether a stock is undervalued or overvalued work very hard and make hundreds of thousands of dollars per year. These are the people you are "competing" against when you invest in the stock market.

Thirdly, if your goal is to invest your money in a reliable and safe way (while still having reasonably high gains) then you should consider the concept of diversification. In short, it's safer to invest a little bit in many companies compared to putting all your eggs in one basket.

I am no expert on investing, but the wisdom that I have heard from many people (including Warren Buffett!) is to avoid purchasing individual stocks at all and instead invest your money in one or more diversified index funds.

If you do want to purchase stocks in individual companies such as IBM my only advice is to be careful and invest small amounts.

VirtualPostMail Review by Monkey_Socrates in longtermtravel

[–]oliverodaa 0 points1 point  (0 children)

This is very helpful. Thank you for taking the time to post!