thread_id
stringlengths 6
6
| question
stringlengths 1
16.3k
| comment
stringlengths 1
6.76k
| upvote_ratio
float64 30
396k
| sub
stringclasses 19
values |
---|---|---|---|---|
up3c9q | For example, I used to see games as a goal, as something interesting to build.
But I don't enjoy gaming as much anymore, so that's unfortunately gone.
I'd love it if there were something else that is as satisfying to build. | You know what I do? And what I'm doing right now, sitting at a bar at 6PM when I'm not looking at Reddit? I boot up Xcode on my Macbook, and I start screwing around with the SpriteKit API, where I've got the dimensions of an iPhone display, and I try to make something fun with procedurally-generated and procedurally colored shapes. And then I can apply collision effects, physics, play with boundaries, randomness, all kinds of stuff. And I have to make all of it from scratch. So, about every five minutes, I've made a couple of changes, compile, run, clicky-clicky-clicky, nope, not fun, and then I start iterating on it again.
Yeah, programming while drinking may not be everyone's glass of beer, but I enjoy it. I once made Breakout *by accident*. I don't have a plan, I'm just fiddling around to see if I can find something that's fun. And occasionally I find fun, but it's derivative, so I try and iterate on that, and then I don't find anything fun, and I just start over. I know most people would find this frustrating, but I happen to enjoy it. It's like taking a road trip without a destination. | 50 | LearnProgramming |
up3f9a | Americans, how much a person's race plays into the dating game? | Usually impacts things in a similar way that anything else does, like religion, wealth and so on. Americans are more likely to partner up with someone of their own race, but most wouldn’t rule out someone solely on the basis of their race. | 2,370 | AskAnAmerican |
up3f9a | Americans, how much a person's race plays into the dating game? | Depends, mostly on the race. If its competitive, if they’ve trained and tried their best it doesn’t really matter. They showed the dedication and that is admirable. But if they didn’t train, did poorly, then complained about it; that reflects poorly on the person. If its casual/ for fun, as long as they’re a good sport about it, it doesn’t really matter. Competition should be fun. | 2,100 | AskAnAmerican |
up3f9a | Americans, how much a person's race plays into the dating game? | Common but most people still stay within their own race, interracial relationships are becoming more common. I'm a white male about to marry a black female, my brother is married to a Latina woman, my sis is with a white man. But I don't know many if any families with that much of a mix. Christmas looks like a UN meeting but I love it, not many places in the world you'd see that | 1,340 | AskAnAmerican |
up3oe1 | So the job description lists Python, NumPy, and SQL.
I'm a self learner of Python and basically learnt only what was necessary for me in my projects. I do have basic knowledge of programming but it's been a long time since then so I have to revise. | In the same boat myself and could use some direction. I've been looking at 'Project Euler' and they have some difficult codes to work on that Google suggests trying before their technical interview. It's good practice for taking a problem and learning how to break it down into chunks. | 30 | LearnPython |
up3rs9 | What is the purpose of using the word "my" in classes, methods, etc.? For example, myClass. Does this convention indicate anything? | It's mostly used in examples, where the "my" usually designates code that would be written by the person reading the tutorial, as opposed to code from the library or whatever being discussed. | 180 | AskProgramming |
up3rs9 | What is the purpose of using the word "my" in classes, methods, etc.? For example, myClass. Does this convention indicate anything? | This is mostly common in computer science courses. I don't think I've ever seen this in production code. | 140 | AskProgramming |
up3rs9 | What is the purpose of using the word "my" in classes, methods, etc.? For example, myClass. Does this convention indicate anything? | When you want to demonstrate a technique, there are two approaches.
Use a realistic example with realistic names. This has the advantage of clearly showing the technique in a concrete context which is usually more relatable if the example is well chosen. But it has the drawbacks that it is more work and the background for the realistic example must be known or explained. It has also the risk that the design would be second guessed potentially jeopardizing the goal of exposing the technique.
The alternative is to use artificial examples, with place holder names like foo, fn, myObserver... This avoid the work on irrelevant details and the risk of distraction from the purpose of exposing the technique. But this is less relatable, especially for beginners who can't find relevant examples in their past experience. And there is a risk that some consider consider whatever place holder naming convention you use as a good production one. That's normally not the case. | 70 | AskProgramming |
up3tzu | Wanting to get back into the hunt for more $$ than my current role. Looking for something with tech that's impactful (either to the company's bottom line or externally) and either 100% remote role or has an office near DC/Baltimore.
Companies like Citadel kind of appeal to me because of the fast pace, cool tech that is impactful, and great pay. But I don't think Citadel has an office near DC and doesn't allow 100% remote.
Any suggestions on other companies with a faster pace, potential growth upside, and also pay a lot that might be worth applying for? | > Citadel kind of appeal to me because of the fast pace, cool tech that is impactful
Yes to fast pace, no to cool tech lol. My friends there say that their internal tooling and infra is an absolute shit show. | 90 | CSCareerQuestions |
up3tzu | Wanting to get back into the hunt for more $$ than my current role. Looking for something with tech that's impactful (either to the company's bottom line or externally) and either 100% remote role or has an office near DC/Baltimore.
Companies like Citadel kind of appeal to me because of the fast pace, cool tech that is impactful, and great pay. But I don't think Citadel has an office near DC and doesn't allow 100% remote.
Any suggestions on other companies with a faster pace, potential growth upside, and also pay a lot that might be worth applying for? | A list of high paying companies that offer a lot of remote roles:
* Dropbox
* Slack
* AirBnB
* Twitter (err, oops, not for now :P )
* NVidia
* Coinbase
* Stripe | 50 | CSCareerQuestions |
up3tzu | Wanting to get back into the hunt for more $$ than my current role. Looking for something with tech that's impactful (either to the company's bottom line or externally) and either 100% remote role or has an office near DC/Baltimore.
Companies like Citadel kind of appeal to me because of the fast pace, cool tech that is impactful, and great pay. But I don't think Citadel has an office near DC and doesn't allow 100% remote.
Any suggestions on other companies with a faster pace, potential growth upside, and also pay a lot that might be worth applying for? | I work at a company you described.
It sucks. Super high expectations, and tight deadlines are not fun. | 30 | CSCareerQuestions |
up3xj7 | please someone tell me why does not the loop stop when I write 2 or 10 and instead asks to enter the number again. Thanks in advance
while True:
x = input("Please enter a number: ")
try:
x = int(x)
if x != 2 or x != 10:
print("invalid, try again")
continue
elif x == 2 or x == 10:
print("correct, this is the maximum or minimum number")
break
except:
x = str(x)
if x == "done":
print("Invalid Input")
break
elif x != "done":
print("Invalid input, try again")
continue
largest = 10
l = int(largest)
smallest = 2
s = int(smallest)
print("Maximum is", largest)
print("Minimum is", smallest) | I think it’s that first if statement with the or operator. Make it “and” instead of “or”
Edited for clarity | 30 | LearnPython |
up3xp1 | I was doing exercises on DataCamp and despite successfully completing one, I didn't understand the reason of a part of the code.
# Import numpy as np
import numpy as np
# Store pop as a numpy array: np_pop
np_pop = np.array(pop)
# Double np_pop
np_pop = np_pop * 2
# Update: set s argument to np_pop
plt.scatter(gdp_cap, life_exp, s = np_pop)
# Previous customizations
plt.xscale('log')
plt.xlabel('GDP per Capita [in USD]')
plt.ylabel('Life Expectancy [in years]')
plt.title('World Development in 2007')
plt.xticks([1000, 10000, 100000],['1k', '10k', '100k'])
# Display the plot
plt.show()
In the line 7, it's expected from me to double ny\_pop, as an explanation, it says "Double the values in np\_pop. Because np\_popis a NumPy array, each array element will be doubled.' but i didn't understand anything and the plot shown is kinda different but i couldn't see why. Could anyone explain? | > Because np_popis a NumPy array, each array element will be doubled.'
That is just reminding you of the fact that multiplying by a numpy array works differently than multiplying a python list.
>>> pl_pop = [1,2,3]
>>> pl_pop * 2
[1, 2, 3, 1, 2, 3]
vs
>>> np_pop = np.array([1,2,3])
>>> np_pop * 2
array([2, 4, 6])
So it allows you to scale things. If the pop marker sizes are too small (s= is the marker size argument) , you can increase the size of all of them by multiplying by the whole array. You don't need double it specifically, you can use any number there to set a size that you like
np_pop = np_pop * 8 | 80 | LearnPython |
up44pm | What is the saddest truth about life? | It's not fair at all. | 9,010 | AskReddit |
up44pm | What is the saddest truth about life? | Some of the worst people are the most successful. | 5,290 | AskReddit |
up44pm | What is the saddest truth about life? | Being good doesn't mean good things will happen. Conversely, being bad doesn't mean that bad things will happen to you. There is no universal justice and no karma. | 4,030 | AskReddit |
up4805 | Was there any urbanization in Scandinavia prior to Christianization? | It depends on the definition of the medieval town/ urban space to a certain degree - the very classic study of medieval towns, focusing on its distinct legal and governmental body like that of Henri Pirenne would not certainly admit that there were towns in Vikiing Age Scandinavia, but as I summarized before in: [In what ways were pre-Viking Scandinavians (6th, 7th, 8th centuries) culturally distinct from their 9th century descendants? In the areas of language, religion, economics, military tactics, technology, social structure, etc](https://www.reddit.com/r/AskHistorians/comments/lh1k4w/in_what_ways_were_previking_scandinavians_6th_7th/), a few "trading place" with planned land quarters and somewhat dense settlements including craftspeople like blacksmiths had already been established around the North Sea in course of the 8th century CE.
+++
Biographer Rimbert narrates that Frankish missionary Ansgar (Anskar) worked and built the earliest church in collaboration with the local Scandinavian ruler (governor?) in two of such "trading places", namely Birka in the Mälaren (Central Sweden, west to Stockholm) and Ribe in western Denmark. They had already been "urbanized" by the beginning of the 9th century, so Ansgar the missionary primarily preached town dwellers there, not to rural Scandinavian farmers in the countryside.
Norway also had a Kaupang (Skiringssal) in Vestfold, though its 1st mention in written source dates only backs to the end of the 9th century (now archaeological excavation confirms its older provenance).
References:
* Clarke, Helen & Björn Ambrosiani. *Towns in the Viking Age*. London, 1995.
* Skre, Dagfinn (ed.). *Kaupang in Skiringssal*. Aarhus: Aarhus UP, 2007. | 30 | AskHistorians |
up48bo | I remember learning about how solar sails work, with it being reflective and using the momentum that light has due to its De Broglie’s wavelength and using the law of conservation of momentum to increase its own momentum and hence velocity. My question here is how is the conservation of energy preserved? Does the wavelength of light increase such that the loss in the energy of the photons corresponds to the increase in kinetic energy of the sail? This is all assuming that the sail is perfectly reflective and the photons are not absorbed to become heat energy, although i’m not sure if that’s a flawed assumption. | [removed] | 450 | AskScience |
up48bo | I remember learning about how solar sails work, with it being reflective and using the momentum that light has due to its De Broglie’s wavelength and using the law of conservation of momentum to increase its own momentum and hence velocity. My question here is how is the conservation of energy preserved? Does the wavelength of light increase such that the loss in the energy of the photons corresponds to the increase in kinetic energy of the sail? This is all assuming that the sail is perfectly reflective and the photons are not absorbed to become heat energy, although i’m not sure if that’s a flawed assumption. | If the solar sail is gaining kinetic energy, the photon is losing energy, as you said. Reflected photons would then be redshifted, though by a very small amount. So frequency goes down, wavelength goes up, like you guessed. | 290 | AskScience |
up4cml | Ask away.
even ask me about my personality, what do I often post. Ask me about my hyperfixation, ANYTHING! Even not related to autism, but ask about my personality Too.
Ask even the funniest or weirdest questions you have!
Ask Me ***ANYTHING*** | What’s your personality like? And what do you like? | 60 | AMA |
up4cml | Ask away.
even ask me about my personality, what do I often post. Ask me about my hyperfixation, ANYTHING! Even not related to autism, but ask about my personality Too.
Ask even the funniest or weirdest questions you have!
Ask Me ***ANYTHING*** | Do you have Asperger's syndrome? | 30 | AMA |
up4cml | Ask away.
even ask me about my personality, what do I often post. Ask me about my hyperfixation, ANYTHING! Even not related to autism, but ask about my personality Too.
Ask even the funniest or weirdest questions you have!
Ask Me ***ANYTHING*** | Did people hate you for having it
Cause people did on me | 30 | AMA |
up4e6p | I am lucky enough to have gotten the choice of a few things to do over the summer but I don’t really know what’s best for me in the long run, my goal is to become a software engineer and get solid internships along the way.
One thing I have learned from CsMajors and this sub is that being confident in DS&A and being able to Leetcode is what gets students into quality jobs. Correct me if I'm wrong but that's currently the belief I am following.
**Background:**
I am an international sophomore who has only taken gen Ed’s/ prerequisite courses for CS (calc, physics, etc) and only one intro coding class. Self-taught Python.
**Codepath Intro to Software Engineering + self-teaching ds&a**
12 weeks, mandatory attendance, increase my chance of getting good at leetcode About 6hrs per week + HW + self-taught ds&a time/practice
Pros:
* solidify my understanding of CS concepts, learn some interview stuff & basic data structures (see link)
* Self Learn ds&a for Leetcode =increase the chance of passing OAs = increase the chance of getting a good job
Cons:
* Could be choosing this at the expense of something else
* Don’t actually know if the course is any good
Codepath link: [https://info.codepath.org/intro-to-swe?hsLang=en](https://info.codepath.org/intro-to-swe?hsLang=en)
**Research at F.A.U (Florida Atlantic Uni) with a Professor**
10 weeks, 10 hrs week research minimum + 3credit class per A & B summer
Pros:
* 10 weeks
* Stipend 2900$ (to be finalized) ( $300 after class costs)
* One time Money for class: 500$
* One time Travel expenses 500$
* Work with the professor making your own research (not with a big team)
* Meet CS people (I currently don't really know any due to taking online classes) also not that bothered by it.
Cons:
* Done research last semester and it was horrible (failed to complete it/ bad team)
* Required to take 3 credit classes per summer A & B ( 1200$ per class ish)
* Only 300$ ish profit
**Internship as a Software engineer**
Pros:
* get real-world experience
* Looks great on a resume
* The company seems to align with my ideas
* Never had an internship so it will be the first
* First, offer out of 105 applications
Cons:
* unpaid
* 6 months minimum
* Unknown company name & tiny startup
* Would have to do part-time classes in the coming Fall semester, thus delaying progression in school
* They presumably make little money so unlikely to get offered a paid job but who knows
​
Thanks very much. Posted on CsMajors but didn't get lots of feedback | paid internship > research > unpaid internship > whatever codepath is, imo | 60 | CSCareerQuestions |
up4en8 | Hi all,
I want to start career in IT, I was thinking about getting MCSA however this certification retired. I want to start in 1st line support and progress over the years. What courses, certs do you recommend?
I have pretty good knowledge of systems from Windows 95 to Win 11 that I'm insider. Few years back at school I had a contact with networking (bits of CCNA) win sever 2009 and Active directory but I can't remember anything tbh, I probably would after a while.
Thanks | In my opinion he's in no place to start applying for jobs as no one is likely going to even accept their resume/application or interview them.
If you have nothing, get the A+ certification. That will at least get you past the HR department for some tier 1 helpdesk roles. The trifecta may also help (Net+ and Sec+). Don't mention you have knowledge of Windows 95, there are some things that we may have knowledge of however we don't speak of these things, any operating system before Windows 7 doesn't exist. Learn the modern OS deployments. Once you do that, start learning what you want to do in IT and start narrowing down what you study. Starting at tier 1 and "progressing over the years" has about a thousand different directions it could go. You need to spend time and really focus on what you wanna do.
I don't know what ...from Windows 95 to Win 11 that I'm insider." means.
Start with the basics and work up. Things you used to know but don't remember are now things you don't know. If you start studying them and it comes back to you, fast track yourself through the program but until then, consider yourself an infant in the world of tech. | 30 | ITCareerQuestions |
up4gdf | And which do you enjoy more? | Very.
I didn’t do programming at school but did at a bootcamp.
Experience is I am a front end software engineer at a software-as-a-service medical-tech startup.
On the job you’re working with a team of skilled professionals. The quality of the code, work processes (agile methodology), peer learning etc is higher. Working with people who know what they are doing. Working with people who are mature & professional in their behaviour. This is a good experience.
In a job you are often working on an existing code base, which is huge and complex and when you start you won’t understand most of it. A lot of your time is spent reading the code, having meetings, and making small tweaks that incrementally improve the product.
There will be bugfixes, “tech debt” (things that were done in the past as a quick fix or now ill-favoured way), updating packages, as well as new features. And writing tests, the code needs to be much more robust and resilient and tests are important.
You’ll also spend time on tools and improvement s to the way the team works. Thinking about how to restructure the project, move code out of the codebase into a separate package, tools like storybook to help the design-to-develop process, continuous integration processes, etc.
There are a lot more advanced concepts put into place in a professional environment. Your code has to be a higher level and work with existing code. You use make lots of use of version control (git, branching ) and collaborative tools (GitHub, slack or teams, etc) , your code will be reviewed and discussed and changes requested before being accepted into the main code base.
Things need to be documented - good readme files - so others coming onto the project know how to get it up and running and use it.
You’ll be working alongside specialists in different roles. Product managers, quality assurance, devops, systems engineers, front end and back end engineers, designers etc.
You’ll all be working towards creating something new that is solving a problem in the world. There will be updates from the business about how the company is growing and achieving its goals, how customers are experiencing the product, etc.
There will be team & company celebrations as milestones are met or for team bonding.
Programming outside of a professional setting is more of a hack job. Poor processes, doing things on the fly, starting from scratch, little support or feedback, making everything up as you go, wearing many hats. | 60 | CSCareerQuestions |
up4lvy | The general idea is that height is all related to genetics . Well my Dad is 5’11 , my mom is 5’7 , my sister is 5’8 . Both my grandfathers were 6ft as well as all the men in my extended family. None of the men are shorter than 5’10
However I (Male) at 19 years of age am 5’7 ? | You are literally asking people on Reddit if your adopted
Think about that for a minute | 70 | ask |
up4lvy | The general idea is that height is all related to genetics . Well my Dad is 5’11 , my mom is 5’7 , my sister is 5’8 . Both my grandfathers were 6ft as well as all the men in my extended family. None of the men are shorter than 5’10
However I (Male) at 19 years of age am 5’7 ? | You took your mother's genes, there's nothing to stop a man from having his mother's genes | 40 | ask |
up4m94 | If a nuclear explosion went off, would there be a certain distance in the blast radius that would cook frozen supermarket pizzas to perfection for a brief moment? | Not really. Cooking thoroughly takes time. If the temperature is too high, then you burn the outside but the inside remains cold. Unless a nuclear explosion can create an explosion that remains at a constant temperature of 400° F for about 15 minutes, then the pizza will cook unevenly. | 9,440 | NoStupidQuestions |
up4m94 | If a nuclear explosion went off, would there be a certain distance in the blast radius that would cook frozen supermarket pizzas to perfection for a brief moment? | Finally we get down to serious issues to help us survive the coming apocalypse. | 1,540 | NoStupidQuestions |
up4m94 | If a nuclear explosion went off, would there be a certain distance in the blast radius that would cook frozen supermarket pizzas to perfection for a brief moment? | No, you can't just flash cook a pizza. | 1,370 | NoStupidQuestions |
up4p68 | I currently work as a data engineer (~1 YoE). I was involved in a lot of design endeavors in college and have been interested in working in the frontend space in general (not UX design), so I've been investing time outside of work to build skills in that domain.
I understand that the more pressing problems that FEEs deal with on a daily basis likely have more to do with things like state management or performance optimization, but how valuable is being great at CSS (e.g., complex animations that require lots of CSS transforms over multiple layers) as a FEE in the context of being employable as a frontend eng? Obviously I'm not totally neglecting studying other things solely to dive deeper into CSS, but I was wondering whether being great at CSS is valued among bigger and more prominent companies that may already have a set of default design templates. For example, Google has a pretty standardized design template across most of their products, which makes me think that having just a 'solid' understanding of CSS would already be enough to complete tasks/stories involving UI tweaks.
I am not asking about whether being good at CSS would help me in frontend interviews (already going through LC and BFE.dev), but rather whether it would help me excel on the job more so than if I invested my time in learning other parts of frontend engineering. | Not really, being good at css is seen as a basic requirement. There may be some niche positions where a thorough understanding of specificity or whatever comes in useful, but it's not going to be required of you in a normal position.
What you may find more helpful is being able to debug the css written by backend engineers. :( | 80 | CSCareerQuestions |
up4p68 | I currently work as a data engineer (~1 YoE). I was involved in a lot of design endeavors in college and have been interested in working in the frontend space in general (not UX design), so I've been investing time outside of work to build skills in that domain.
I understand that the more pressing problems that FEEs deal with on a daily basis likely have more to do with things like state management or performance optimization, but how valuable is being great at CSS (e.g., complex animations that require lots of CSS transforms over multiple layers) as a FEE in the context of being employable as a frontend eng? Obviously I'm not totally neglecting studying other things solely to dive deeper into CSS, but I was wondering whether being great at CSS is valued among bigger and more prominent companies that may already have a set of default design templates. For example, Google has a pretty standardized design template across most of their products, which makes me think that having just a 'solid' understanding of CSS would already be enough to complete tasks/stories involving UI tweaks.
I am not asking about whether being good at CSS would help me in frontend interviews (already going through LC and BFE.dev), but rather whether it would help me excel on the job more so than if I invested my time in learning other parts of frontend engineering. | It’s not valued at all, except in some extremely rare situations. Needing to do complex css or animations (which can be handled with css or JavaScript) is rare. On top of that, there are generally open source libraries to handle the more common situations. | 30 | CSCareerQuestions |
up4pfl | Hey all, been working at this place for about a year and 4 months now. Great place, fully remote, decent pay, good benefits, easy schedule. Cant complain too much really, plus they dont monitor us directly so its stress free for the most part.
The only issue is the pay itself. It is certainly on the lower end of the spectrum for a job like this and that is probably because of the 403b benefits we get which are, honestly second to none. That being said, I don't know if I see myself doing this exact work long term. There are people in my social circle who have similar experience as me and make 100-150% more in their salary than I do. Would be nice to try seeing what else is out there.
I'm overall happy but I'm definitely far more satisfied when I expand my horizons and look to better my living situation. I've thought about staying at this place until the 2 year mark then maybe searching around then for a similar remote option with better pay.
__________
When did you move on from your first CS job? Did you just take the leap? How did it work out? There's always more to learn so how did you know it was time to move from one place for another? Just some questions I'd thought I'd play the field on. | Have you tried to negotiate a pay rise at your current job? You skill up a lot in your first years, so I would be expecting you seek a review for promotion/pay rise rather than continue at the rate they hired you at. | 30 | CSCareerQuestions |
up4vou | This thought came to me as I was thinking about photovoltaic materials. You shine a light with at least a certain frequency on a photovoltaic material. The light jostles an electron out of place. The electron then does its jiggling, and then settles back into place for another bit of light to hit it again.
Pyroelectric materials (from what I'm reading) are much like piezoelectrics wherein they require constantly changing load to generate voltage. Is there a subset of pyroelectrics that behave more like photovoltaics where they allow heat to jiggle an electron that we can use, let the electron calm down, and then in that same unchanged environment absorb more heat to rejiggle the electron? | A heat engine needs heat to flow from hot to cold. No such thing without a thermal gradient, so no heat engine.
You can't "let the electron calm down" in a systematic way without a colder reservoir. Extracting energy from heat without a thermal gradient would reduce the entropy of the system. You can't do that. | 90 | AskScience |
up4vu4 | I've switched two employers since the gap. I'm employed now & looking to switch again, level up possibly. How do i make up for my gap? It keeps me up at night
| Create something cool you can discuss during interviews.
If you have a job now, take on more responsibility where you can, to be able to put more about your effectiveness there. | 30 | CSCareerQuestions |
up4y99 | An incredible opportunity has presented itself. It's the right industry, right company, right product, right technologies, right team, and right culture. I knocked the interview out of the park.
**Unfortunately**, the company uses your location to determine your salary range - even though it is a remote position. My city is still classified as low COL, so the offer came in way lower than I was hoping.
How widespread is this practice? Is it the rule or the exception? And, most importantly to me right now, what are the chances I can successfully lobby for a salary significantly above the approved range for my location but well within the budget for this role in the city where the office is located? | I can attest that where I work (Financial Services), it is a standard practice. Same with the previous firm I was at. There are 4 tiers and I live #3 (where #1 has highest COL). It does stink knowing that some of my peers are getting more than me, just because they live in a big city, but I also pay almost $1.50 less per gallon of gas and can buy more house for the money.
If you really want this (and the offer is not ridiculously low), just do your thing and shine. If the company is really as good as you think, you'll prove you are worth it. But if it really concerns you, a good employer should have data to back up why your location is classified as it is. | 50 | CSCareerQuestions |
up5agr | If you die tomorrow what would you regret? | Nothing. I'm dead. | 880 | ask |
up5agr | If you die tomorrow what would you regret? | having saved up all that money instead of using it during my last months to get to experience exciting things. | 240 | ask |
up5agr | If you die tomorrow what would you regret? | Be the reason why my family is crying | 170 | ask |
up5d1y | By intensity I'm referring to (for example) the case when the positive test stripe is very faint when compared to the control stripe. | [This research article](https://onlinelibrary.wiley.com/doi/10.1002/jmv.27186) from the Journal of Medical Virology says, "The intensity of test line color is proportionally correlated with viral load." That said, conceivably a person could take two tests on two different days and see different levels of faintness based on how well they followed the instructions when taking each sample rather than a change in their body's viral load. | 6,930 | AskScience |
up5d1y | By intensity I'm referring to (for example) the case when the positive test stripe is very faint when compared to the control stripe. | From the rapid test manual: The color intensity in the test region may vary depending on the concentration of analytes present in the specimen. Therefore, any shade of color in the test region should be considered positive. | 840 | AskScience |
up5d1y | By intensity I'm referring to (for example) the case when the positive test stripe is very faint when compared to the control stripe. | Anecdote: when I got Covid earlier this year, I did a rapid test every day and I could clearly see the line get fainter and fainter every day until the test was finally negative after 14 days. It was quite interesting to see. | 430 | AskScience |
up5fyw | Title prob should be: "Should I be more patient"
Joined this company about 6 months already. Finished the first project in the first 4 months, and transferred to a new team that is responsible for the internal cli tool. We had a new guy that joined the team yesterday, and I was the person who provided most of the onboarding stuff. He is kinda new to the whole company I guess as he doesn't even have his environment set up properly. He is a contractor just like me.
I was being friendly ( at least I think ) towards him for most parts. Answer questions that might not be straightforward when you google.
There was one question he asked, he was having a hard time installing git as the download page is prohibited by the company, so I told him I installed git through chocolatey. He said he is new to choco, so I said to him, "I think it is pretty straightforward, you can google search it" and I left to work on something else. The next day, he asked in the group chat ( our whole conversation was in a group chat as others might help him as well ) if anyone has "git.exe" and could share it with him.
I felt he kinda just ignored what I said, beyond that, he even pinged me with having git.exe or no question.
I just said, "like what I said, I used chocolatey to install git", and just copy and paste the command that he needs to install git via chocolatey.
I felt disrespected and ignored. On top of that, he called out to our team/tech lead in the standup (after I said 'like what I said...' ) that he needs help with git and wants to have an audio call with the lead. To be clear our team lead assigned me and the other person to help this new guy on board at the beginning.
Should I have been more patient, or was my action right?
Edit: This is the flow of the situation
He asked for help
-> I suggested choco AND mentioned I used choco to install git
-> next day he asked if someone has git.exe downloaded from the download page and pinged me despite I did tell him I know the issue he was facing and I used choco to install git mainly because it is not something I was able to solve
-> I provided the command to install git via choco after I throw that "like I said..."
-> asked the team lead to help him on git during the stand-up.
Throughout the whole process, he did not say what part of choco he does not understand, not even after I gave him the instructions on how to install git via choco
***I am not sure, but it looks like everyone is ignoring the point where I DID give him the exact instructions of how to install git via choco, and he didn't say he encountered an issue while following my steps before asking lead to help him on git. If someone decided not to ask for help on something, isn't it normal to think he either is going smoothly or he thinks he can solve whatever that issue is by himself?
The fundamental mistake is that I asked him to try a google search on how to install git via choco first for an onboarding. I understand that now, I did that based on my onboarding experience, I was only passing the same thing I received from the lead (the links to docs) that later I pass to the new guy. The difference is I solved that git issue by myself, but he needs more help. | “I felt disrespected and ignored”… is completely the wrong attitude to have. You’re making it personal when it isn’t.
There is a problem to be solved. Your colleague is struggling with something. He has come to you for help twice, and has not been able to resolve the issue based on what you said. That doesn’t mean he didn’t try, it means he hasn’t been able to work it out. He’s not going to return a third time when all you did was repeat the same thing; he will seek out help elsewhere from others as he is trying to resolve an issue.
And getting set up with your environment and git is a MAJOR issue. He can’t do his work without it. This isn’t something that can be delayed or deprioritised, it needs to be done ASAP.
If someone asks for help, and you give them an answer, and they return asking for help again: there is no point repeating exactly what you already said as that didn’t help them. You need to explain the solution (or help) in another way. If you can’t help them, forward them on to another colleague to help them instead. | 220 | CSCareerQuestions |
up5fyw | Title prob should be: "Should I be more patient"
Joined this company about 6 months already. Finished the first project in the first 4 months, and transferred to a new team that is responsible for the internal cli tool. We had a new guy that joined the team yesterday, and I was the person who provided most of the onboarding stuff. He is kinda new to the whole company I guess as he doesn't even have his environment set up properly. He is a contractor just like me.
I was being friendly ( at least I think ) towards him for most parts. Answer questions that might not be straightforward when you google.
There was one question he asked, he was having a hard time installing git as the download page is prohibited by the company, so I told him I installed git through chocolatey. He said he is new to choco, so I said to him, "I think it is pretty straightforward, you can google search it" and I left to work on something else. The next day, he asked in the group chat ( our whole conversation was in a group chat as others might help him as well ) if anyone has "git.exe" and could share it with him.
I felt he kinda just ignored what I said, beyond that, he even pinged me with having git.exe or no question.
I just said, "like what I said, I used chocolatey to install git", and just copy and paste the command that he needs to install git via chocolatey.
I felt disrespected and ignored. On top of that, he called out to our team/tech lead in the standup (after I said 'like what I said...' ) that he needs help with git and wants to have an audio call with the lead. To be clear our team lead assigned me and the other person to help this new guy on board at the beginning.
Should I have been more patient, or was my action right?
Edit: This is the flow of the situation
He asked for help
-> I suggested choco AND mentioned I used choco to install git
-> next day he asked if someone has git.exe downloaded from the download page and pinged me despite I did tell him I know the issue he was facing and I used choco to install git mainly because it is not something I was able to solve
-> I provided the command to install git via choco after I throw that "like I said..."
-> asked the team lead to help him on git during the stand-up.
Throughout the whole process, he did not say what part of choco he does not understand, not even after I gave him the instructions on how to install git via choco
***I am not sure, but it looks like everyone is ignoring the point where I DID give him the exact instructions of how to install git via choco, and he didn't say he encountered an issue while following my steps before asking lead to help him on git. If someone decided not to ask for help on something, isn't it normal to think he either is going smoothly or he thinks he can solve whatever that issue is by himself?
The fundamental mistake is that I asked him to try a google search on how to install git via choco first for an onboarding. I understand that now, I did that based on my onboarding experience, I was only passing the same thing I received from the lead (the links to docs) that later I pass to the new guy. The difference is I solved that git issue by myself, but he needs more help. | I'm not a perfect judge of situations like this, but as the new person I'd have felt like the OP was being dismissive and a little rude (partially with the dismissiveness and partially with the whole feeling ignored thing after essentially ignoring the new person's problem). | 80 | CSCareerQuestions |
up5fyw | Title prob should be: "Should I be more patient"
Joined this company about 6 months already. Finished the first project in the first 4 months, and transferred to a new team that is responsible for the internal cli tool. We had a new guy that joined the team yesterday, and I was the person who provided most of the onboarding stuff. He is kinda new to the whole company I guess as he doesn't even have his environment set up properly. He is a contractor just like me.
I was being friendly ( at least I think ) towards him for most parts. Answer questions that might not be straightforward when you google.
There was one question he asked, he was having a hard time installing git as the download page is prohibited by the company, so I told him I installed git through chocolatey. He said he is new to choco, so I said to him, "I think it is pretty straightforward, you can google search it" and I left to work on something else. The next day, he asked in the group chat ( our whole conversation was in a group chat as others might help him as well ) if anyone has "git.exe" and could share it with him.
I felt he kinda just ignored what I said, beyond that, he even pinged me with having git.exe or no question.
I just said, "like what I said, I used chocolatey to install git", and just copy and paste the command that he needs to install git via chocolatey.
I felt disrespected and ignored. On top of that, he called out to our team/tech lead in the standup (after I said 'like what I said...' ) that he needs help with git and wants to have an audio call with the lead. To be clear our team lead assigned me and the other person to help this new guy on board at the beginning.
Should I have been more patient, or was my action right?
Edit: This is the flow of the situation
He asked for help
-> I suggested choco AND mentioned I used choco to install git
-> next day he asked if someone has git.exe downloaded from the download page and pinged me despite I did tell him I know the issue he was facing and I used choco to install git mainly because it is not something I was able to solve
-> I provided the command to install git via choco after I throw that "like I said..."
-> asked the team lead to help him on git during the stand-up.
Throughout the whole process, he did not say what part of choco he does not understand, not even after I gave him the instructions on how to install git via choco
***I am not sure, but it looks like everyone is ignoring the point where I DID give him the exact instructions of how to install git via choco, and he didn't say he encountered an issue while following my steps before asking lead to help him on git. If someone decided not to ask for help on something, isn't it normal to think he either is going smoothly or he thinks he can solve whatever that issue is by himself?
The fundamental mistake is that I asked him to try a google search on how to install git via choco first for an onboarding. I understand that now, I did that based on my onboarding experience, I was only passing the same thing I received from the lead (the links to docs) that later I pass to the new guy. The difference is I solved that git issue by myself, but he needs more help. | The "like I said" was passive aggressive and unnecessary. A more professional response either have been to ping him asking if he tried choco and ran into any issues you could help with. | 80 | CSCareerQuestions |
up5hs2 | I just started my internship this Monday with another intern. We are in training process. The other intern who just graduated from college was completing a module everyday and I am a sophomore student barely completing one module and asking a lot of questions. The technology we are using wasn’t even mentioned during the interview. I am pushing hard to complete modules and learn the technology needed but I feel incompetent. I also get paid during the internship. I am really afraid of getting fired from this internship because this is my first internship and funny thing is If I fail this internship I will also fail a class. Not just that, my bullies will get happy. | They brought you on knowing you were a soph, deep breath, you’re there to learn. Ask the questions, and show growth over the duration and you’ll be just fine. | 200 | CSCareerQuestions |
up5hs2 | I just started my internship this Monday with another intern. We are in training process. The other intern who just graduated from college was completing a module everyday and I am a sophomore student barely completing one module and asking a lot of questions. The technology we are using wasn’t even mentioned during the interview. I am pushing hard to complete modules and learn the technology needed but I feel incompetent. I also get paid during the internship. I am really afraid of getting fired from this internship because this is my first internship and funny thing is If I fail this internship I will also fail a class. Not just that, my bullies will get happy. | You need a new mindset.
You are being paid to learn. That is awesome! You are learning a new technology that is relevant to the workplace. Win!
Other intern may be better than you, because they have more experience, and wouldn’t you hope that in a couple years when you have graduated you will be more skilled than where you are in sophomore year, right?
Other intern is probably also hoping that if they do well in this internship that they might be offered a job. So they are fanging it.
You got to wonder: why are they doing an internship instead of getting a job? I’ll bet they are struggling to finding a job so figured an internship was better than nothing. If they secure a job they might not even complete the internship.
There’s no point comparing apples to oranges. Work out what you want to achieve in this internship for it to be good for you, for you to skills up, get experience, and focus on that. | 100 | CSCareerQuestions |
up5hs2 | I just started my internship this Monday with another intern. We are in training process. The other intern who just graduated from college was completing a module everyday and I am a sophomore student barely completing one module and asking a lot of questions. The technology we are using wasn’t even mentioned during the interview. I am pushing hard to complete modules and learn the technology needed but I feel incompetent. I also get paid during the internship. I am really afraid of getting fired from this internship because this is my first internship and funny thing is If I fail this internship I will also fail a class. Not just that, my bullies will get happy. | This has to be a joke, no adult would actually say his bullies will get happy if he gets fired. | 50 | CSCareerQuestions |
up5jdr | This is my left foot:
https://imgur.com/a/RZbLbyy
First picture is today, 2nd picture was yesterday.
24 M / 6ft / 200 lbs
My other foot is fine. My foot was more numb in the areas that now look like that and had been that way for a few weeks when this happened. No trauma, no itch, doesn't really hurt unless if I actively mess with it. No history of heart issues, blood issues or diabetes. I don't experience numbness in my other appendages. When pressing the afflicted toes, cap refill is good. I don't smoke anymore but I used to be a pack a day smoker 2 years ago. I went to the doctor and they basically didn't know what was going on and said it's a "wait and see" situation.
I added the red dots because a couple months ago they popped up all over my body and stayed heavy like in the picturesfor a few weeks. They didn't itch, they didn't hurt. I had one on an unnamed appendage and I once squeezed that appendage and the red dot went from red to purple. I still have them on my thighs and bottom of my feet but in a much smaller amount.
Am I having blood issues of some kind? | Google chilblains and see if that seems to fit | 130 | AskDocs |
up5ohj | So I recently received an offer for a software engineering internship, but I have a few concerns/questions.
1) I was never asked a single coding question. I had a video interview where I recorded myself answering basic interview questions, and then one with the team leader who just asked general questions to see if I’d fit well with the team.
2) I also no idea what I’d actually be doing. Like what language I’d be working in or anything really. The contract says I’ll have a mentor to help me out to teach me about the job and that I’ll have the opportunity to work on meaningful projects with the team.
3) Even if I knew what I was working on/with, I don’t think I know that much. Self taught some basic stuff and have only taken 2 programming courses. Feel like I’ll get fired for knowing what feels like nothing. The salary also seems more than I think I deserve/am qualified for.
4) Lastly, all I am told is the hourly salary, but not how many hours or what hours I’d be working. I have no idea where to sign on and if I can or am supposed to work 40 hours a week.
Are any of those 4 things weird or something to be concerned about? Should I be asking about them before I sign, or just sign as I’ll just learn about them and it’s expected I’ll be working 40 hours a week? | You can ask them whether it's a full-time (40 hours per week or more) internship.
To the other stuff. They likely expect you to know basically nothing. Especially about their specific tech stack. They also probably haven't decided what you'll do, specifically. That may be up to your "mentor" as they see fit. | 30 | CSCareerQuestions |
up5rf2 | Since it makes up almost none of the galaxy's total mass, I'm wondering if it occupies the exact gravitational center, or if it too orbits that point.
Bonus question, since SagA revolves, is it's equator parallel to the galaxy's plane, or completely off-axis? | No, the central black hole of a galaxy does not represent the 'orbital centre' of a galaxy.
However, due to reasons we don't fully understand it is also pretty much as you say at the centre of the galaxy. I don't think the measurements exist to pinpoint the exact gravitational centre of the galaxy
A common misconception is to think of it like the sun in the middle of the solar system. The SMBH in the middle of a galaxy, as you say, takes up a tiny fraction of the galaxies mass compared to star to its star system.
The actual idea of gravitional binding of galaxies together at the moment is dark matter, combined with the normal matter of the galaxies | 520 | AskScience |
up5rf2 | Since it makes up almost none of the galaxy's total mass, I'm wondering if it occupies the exact gravitational center, or if it too orbits that point.
Bonus question, since SagA revolves, is it's equator parallel to the galaxy's plane, or completely off-axis? | > Bonus question, since SagA revolves, is it's equator parallel to the galaxy's plane, or completely off-axis?
The new results from the EHT provide some of the first good evidence on that question. From other galaxies we know that the supermassive black hole does not have to align with the plane of its host galaxy - based on the angles of the relativistic jets coming off some supermassive black holes. Sgr A* does not have those jets, so it's harder to measure. But the new results indicate that its inclination is no more than 50 degrees.
https://iopscience.iop.org/article/10.3847/2041-8213/ac6674 | 450 | AskScience |
up5tt9 | How did that change compared to how it was when you were younger? | Well, I'm about to get a hip replacement so there's that. But I always laugh when someone asks if something is in walking distance, because I think, "everything is in walking distance if you have enough time."
But it would depend on the tourist attraction. 10 miles for a pristine deserted beach on a crystal blue ocean. 5 miles for the great pyramids. 1 mile to your moms house. (Sorry, I've been on Reddit too long.) | 80 | AskOldPeople |
up5tt9 | How did that change compared to how it was when you were younger? | So I’ve been very sedentary for about five years now. My knees are shot and my hip tends to cut circulation to my thigh if I stand up too long. Well this last January tickets to Europe were dirt cheap and I went to Germany, Paris and Rome. My iPhone showed I walked on average 11 miles per day in Paris and 12 in Rome. I also learned that buying ibuprofen over the counter comes with a stern lecture about over using it. Oh one more thing, everything in Paris is up at least two flights of stairs. | 40 | AskOldPeople |
up5tt9 | How did that change compared to how it was when you were younger? | Unfortunately now, very little. I used to enjoy hiking, walking tours and locating interesting off-the-beaten-trail locations. My walking days are pretty much done. My preference now is a good book and an easily accessible spot to hang in the sun. | 30 | AskOldPeople |
up624l | I have probably started and stopped learning programming a dozen or so times over the years, and each time I learn something new. One thing that has made coming back less enjoyable though, is the grind of having to hear the same basic lesson 1 over and over again.
An example of this is yesterday when I thought I would look into learning C a little bit. The first video I pull up is this guy explaining how compiling a code works, what it means to work with a compiler, the concept of a high level programming language, and the command "printf". He goes into excruciating detail of what it means to have the console print something, and how you can "draw" in the console by having it draw a series of slashes with line breaks.
All of that stuff is good to know if it's your first programming lesson ever, but it's hard to sit through when you've heard the same stuff over and over again.
On the other hand, I feel like experienced programmers are able to jump straight to the manuals of these languages and reference whatever syntax is needed. Never coded in Ruby before? No worries, just look up whether to use a \[, a {, or a ; along with the proper way to store variables, make boolean statements, recall directories, etc, and you're good to go. I'm not there yet either. Or maybe I am and I just need more confidence, I don't know.
Is this a well documented slump in the process? What helped you get over it? | You have to just keep writing code. Once you have written many different programs, the syntax just falls into place. | 1,380 | LearnProgramming |
up624l | I have probably started and stopped learning programming a dozen or so times over the years, and each time I learn something new. One thing that has made coming back less enjoyable though, is the grind of having to hear the same basic lesson 1 over and over again.
An example of this is yesterday when I thought I would look into learning C a little bit. The first video I pull up is this guy explaining how compiling a code works, what it means to work with a compiler, the concept of a high level programming language, and the command "printf". He goes into excruciating detail of what it means to have the console print something, and how you can "draw" in the console by having it draw a series of slashes with line breaks.
All of that stuff is good to know if it's your first programming lesson ever, but it's hard to sit through when you've heard the same stuff over and over again.
On the other hand, I feel like experienced programmers are able to jump straight to the manuals of these languages and reference whatever syntax is needed. Never coded in Ruby before? No worries, just look up whether to use a \[, a {, or a ; along with the proper way to store variables, make boolean statements, recall directories, etc, and you're good to go. I'm not there yet either. Or maybe I am and I just need more confidence, I don't know.
Is this a well documented slump in the process? What helped you get over it? | Seriously one of the main point in learning anything that most tutorial rarely mention is patience. Things can get boring but you'll get through it. Also repetition is worth to do especially if you're still new. | 440 | LearnProgramming |
up624l | I have probably started and stopped learning programming a dozen or so times over the years, and each time I learn something new. One thing that has made coming back less enjoyable though, is the grind of having to hear the same basic lesson 1 over and over again.
An example of this is yesterday when I thought I would look into learning C a little bit. The first video I pull up is this guy explaining how compiling a code works, what it means to work with a compiler, the concept of a high level programming language, and the command "printf". He goes into excruciating detail of what it means to have the console print something, and how you can "draw" in the console by having it draw a series of slashes with line breaks.
All of that stuff is good to know if it's your first programming lesson ever, but it's hard to sit through when you've heard the same stuff over and over again.
On the other hand, I feel like experienced programmers are able to jump straight to the manuals of these languages and reference whatever syntax is needed. Never coded in Ruby before? No worries, just look up whether to use a \[, a {, or a ; along with the proper way to store variables, make boolean statements, recall directories, etc, and you're good to go. I'm not there yet either. Or maybe I am and I just need more confidence, I don't know.
Is this a well documented slump in the process? What helped you get over it? | If you want a structured learning which is also free, try out The Odin Project, it’s a free and open source site that teaches you full stack development. The thing is that you don’t watch videos here, but read only the important articles and get used to writing code by actually writing it and finishing real life projects. It’s tough but it makes you a better programmer! The best thing is that it’s run by the Odin project community and is always being updated.
Let me know if you have any questions | 360 | LearnProgramming |
up636s | Hello everyone... I am trying to learn the new features in C++20 (going through modules right now). I can't get the following code to compile using g++-11.
My code looks like this:
// foo.cc
export module foo;
import <iostream>;
import <vector>;
export namespace foo{
void hello(){
std::vector<int> nums;
std::cout<<"Hello, world\n";
}
}
// ---------------------------
// main.cpp
import foo;
int main(){
foo::hello();
return 0;
}
I am compiling this using g++-11 like this:
$ g++-11 -std=c++20 -fmodules-ts -c -x c++-system-header vector iostream
$ g++-11 -std=c++20 -fmodules-ts -c foo.cc -o foo.o
$ g++-11 -std=c++20 -fmodules-ts -c main.cpp -o main.o
$ g++-11 -std=c++20 -fmodules-ts foo.o main.o -o foo.x
My [foo.cc](https://foo.cc) file compiles fine and produces foo.o and foo.gcm. But compiling main.cpp fails with the following error message:
$ g++-11 -std=c++20 -fmodules-ts -c main.cpp -o main.o
In module imported at main.cc:1:1:
foo: error: failed to read compiled module: Bad file data
foo: note: compiled module file is ‘gcm.cache/foo.gcm’
foo: fatal error: returning to the gate for a mechanical issue
compilation terminated.
What am I doing wrong in my code? The code compiles if I remove the `std::vector<int>` variable from the `hello()` function. | I feel your pain. I tried a few weeks back as well and ran into all kinds of issues when using modules. I reported the bugs I ran into to GCC bug tracker:https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104924
Looks like modules arent fully implemented yet in GCC unfortunately...I'm hoping they finish the implementation soon. Modules, I think, is one of those things that will really put C++ in a much better place as a language and we can say goodbye(no legacy code of course ) to header files in new code we write :). | 30 | cpp_questions |
up66w0 | What happens if the US withdraw from NATO? | China and Russia are extremely happy | 6,230 | AskAnAmerican |
up66w0 | What happens if the US withdraw from NATO? | We won't. | 2,730 | AskAnAmerican |
up66w0 | What happens if the US withdraw from NATO? | US soft power dwindles to near nothing in Europe.
Relations with the EU will strain.
Asian allies will look at us nervously.
China, Russia, Iran, and North Korea will be very happy. | 1,860 | AskAnAmerican |
up67te | Hey, guys, I have this code going that determines the price of the rollercoaster ride but at the end it yields $0 as the bill. What am I doing wrong
print('Welcome to the rollercoaster')
height = int (input('What is your height in cm?: '))
bill = 0
if height >= 120:
print('You can ride the rollercoaster')
age= int(input('How old are you?: '))
if age <= 12:
bill = 5
print('Your bill is $5')
elif age <= 18 :
bill = 7
print ("Your bill is $7")
elif age >= 45 and 55 :
bill = 0
print ("You can ride the rollercoaster free")
else :
print ('Your bill is $12')
wants\_photo = input ("Do you want a photo taken? Y or N")
if wants\_photo == "Y":
bill += 3
print(*f*"Your final bill is $ {bill}")
else :
print('You, need to be a little taller before you can ride') | elif age >= 45 and 55 :
bill = 0
"and 55" evaluates to True. Did you mean
elif age >= 45 and age <= 55:
bill = 0 | 70 | LearnPython |
up68m8 | Going to be taking 1 full gel tab plus about 1/3 of another. Feel free to ask me anything! | not a question just here to say stay safe have fun drink water. happy tripping! | 90 | AMA |
up68m8 | Going to be taking 1 full gel tab plus about 1/3 of another. Feel free to ask me anything! | Is this your first rodeo?
You with anybody? | 40 | AMA |
up68m8 | Going to be taking 1 full gel tab plus about 1/3 of another. Feel free to ask me anything! | what’s your favorite vegetable, and why is it green beans? | 30 | AMA |
up69da | When reusing strings, there's a trick you can do with .format() that I don't know how to do with f-strings. Consider the following:
generic_string = "First word: {0}, Second word: {1}."
print(generic_string.format("hello","world"))
print(generic_string.format("spam","eggs"))
Whenever you want to call up the string with different inputs, you can use .format() to treat it almost like a function. But can the same be done with f-strings? I'd prefer to use the latest and greatest method for string formatting, but I don't see how to do so. | If you want *delayed* formatting, f-string will not work because code in brackets is evaluated immediately when the string is built. You could wrap them but you would loose all the convenience of f strings.
f-strings are good in some cases but not always, it is not the "greatest" method. | 40 | LearnPython |
up69da | When reusing strings, there's a trick you can do with .format() that I don't know how to do with f-strings. Consider the following:
generic_string = "First word: {0}, Second word: {1}."
print(generic_string.format("hello","world"))
print(generic_string.format("spam","eggs"))
Whenever you want to call up the string with different inputs, you can use .format() to treat it almost like a function. But can the same be done with f-strings? I'd prefer to use the latest and greatest method for string formatting, but I don't see how to do so. | Maybe this:
generic_string = lambda x,y: f"First word: {x}, Second word: {y}."
print(generic_string("hello","world"))
print(generic_string("spam","eggs"))
Or this:
generic_string = lambda: f"First word: {first}, Second word: {second}."
first = "hello"
second = "world"
print(generic_string())
first = "spam"
second = "eggs"
print(generic_string()) | 30 | LearnPython |
up6d19 | If you go to a restaurant and order carryout at the counter, do you tip? I didn’t today and it felt a little weird since it was a restaurant, but I don’t tip the folks at fast food places for putting my order in a machine either.
Thoughts? | no. I dont tip.
I tip, waiters who take my order bring it to me and pick up my trays after, food delivery drivers, hair cut lady.
but not if i'm going into a restaurant and buying food for myself to take home. other than taking my order and handing me my food. wtf service was i provided that i should tip extra. | 50 | ask |
up6d19 | If you go to a restaurant and order carryout at the counter, do you tip? I didn’t today and it felt a little weird since it was a restaurant, but I don’t tip the folks at fast food places for putting my order in a machine either.
Thoughts? | That would be like tipping the McDonald's cashier | 40 | ask |
up6d19 | If you go to a restaurant and order carryout at the counter, do you tip? I didn’t today and it felt a little weird since it was a restaurant, but I don’t tip the folks at fast food places for putting my order in a machine either.
Thoughts? | Always always tip! Just tip less with takeout. | 40 | ask |
up6kh5 | title | No.
It's not clear to me, to what specific end, one would do this. Unless you're reaaallllyyy dead-set on working at Square for some reason. | 30 | CSCareerQuestions |
up6nf1 | This app is imo better than all the other social media platforms to learn about things you're interested in and have small interactions with like minded people. But often it seems to be quite empty here except for the bigger subreddits maybe. | because people (especially women) hear about all the negativity reddit provides and want to stay away | 30 | ask |
up6s8t | I'm learning about querying data from APIs with Javascript. I'd like to create my own at some point.
However, a gap in my knowledge is where does the data that appears on the JSON files come from and how is it managed?
My gut instinct is that the data is held in a MySQL database and a serverside language like PHP creates and updates the JSON files periodically (or something similar to this).
Is this correct? | Not exactly. Mostly correct except it isn’t written to a file. There are functions and methods in every language that can convert data of one type to another data type. In this case, it’s converting arrays and objects into a json object. There isn’t a file that is written to, as it would be the same thing, but with longer processing times as the file would have to be opened and read. A large json response could take quite a bit of time to read from a file. Instead the server just responds with the json object generated from the code. | 70 | LearnProgramming |
up6v62 | Hi i am trying to make this so when the volume is turned up it rick rolls them
from playsound import playsound
from pynput.keyboard import Key, Controller
import time
keyboard = Controller()
Code = 1
while 2 > 1:
time.sleep(1)
keyboard.press(Key.media_volume_up)
Code =+ 1
if Code > 5:
print("Laddies and gentlemen we gotem")
playsound('RickRoll.mp3') | How many times you intend your while loop to run? Right now it will loop as long as 2 continues to be greater than 1. | 60 | LearnPython |
up6w8k | Title. | In most cases, people just use a "feature-lite" version of well known apps/websites/tools, like Twitter, Netflix/YouTube, URL Shortener, etc. There are lots of examples like:
* High Scalability's [examples](http://highscalability.com/blog/category/example)
* [Grokking System Design](https://github.com/Jeevan-kumar-Raj/Grokking-System-Design)
* Exponent's [System Design Interviews](https://www.youtube.com/playlist?list=PLrtCHHeadkHptUb0gduz9pxLgvtKWznKj)
* Gaurav Sen's [System Design videos](https://www.youtube.com/playlist?list=PLMCXHnjXnTnvo6alSjVkgxV-VH6EPyvoX)
* Tushar Roy's [System Design videos](https://www.youtube.com/user/tusharroy2525/videos)
* Tech Dummies [System Design videos](https://www.youtube.com/watch?v=mhUQe4BKZXs&list=PLkQkbY7JNJuBoTemzQfjym0sqbOHt5fnV)
* Alex Xu's System Design Interview [website](https://bytebytego.com/courses/system-design-interview/scale-from-zero-to-millions-of-users) (Vol 1/Vol 2 available on Amazon)
You'll see a lot of overlapping examples between all the above links. | 220 | CSCareerQuestions |
up6w8k | Title. | sure I'll make it right now:
Design Dropbox
Design Instagram
Design Twitter
Design SnapChat
Design Google Maps | 110 | CSCareerQuestions |
up6w8k | Title. | Grokking | 30 | CSCareerQuestions |
up72xx | I want to go to a hackathon with 2 other friends who are also cs majors this summer, and we can’t seem to find one that is free and is nearby… What should I do?
How did you find your first hackathon that you went to? | [https://mlh.io/](https://mlh.io/)
I found all the ones I went to here | 30 | CSCareerQuestions |
up76pu | What are some reasons why you got banned, whether temporarily or permanently from a subreddit? | I got permanently banned from r/sustainable for linking a Harvard study that says that GMOs arent bad for you | 60 | ask |
up76pu | What are some reasons why you got banned, whether temporarily or permanently from a subreddit? | I got banned from a leftist sub for calling out a mod for being racist. They were one of those idiots that think you can't be racist to white people. They were saying that racism requires power to oppress, when, in reality, hate towards someone based on skin color is racism. All racism is wrong and it should be called out every time it rears its ugly head. It doesn't matter who it's being used against. | 60 | ask |
up76pu | What are some reasons why you got banned, whether temporarily or permanently from a subreddit? | I joined a subreddit and, without a shadow of doubt, i did not read the rules. I apparently ‘reposted’ a post sometime around 2017 and they just yelled at me for reposting and banned me. Idk, kinda stupid. | 50 | ask |
up77g6 | I try to specialize on being an iOS developer, but one of my friends is trying to learn both because he says that he can earn more money that way. Is that true? | I don’t think it’s super common for a single person to work on both platforms at once; all the mobile teams I’ve heard of split developers by platform.
That’s not to say it’s impossible. I could see a small startup needing someone to do both. | 30 | CSCareerQuestions |
up77g6 | I try to specialize on being an iOS developer, but one of my friends is trying to learn both because he says that he can earn more money that way. Is that true? | If a company has native apps, they will have android devs and iOS devs, not one guy who can kinda do both. | 30 | CSCareerQuestions |
up7b94 | According to Wikipedia (https://en.m.wikipedia.org/wiki/Chimor)
>According to legend, its capital of Chan Chan was founded by Taycanamo, who arrived in the area by sea. | I was really intrigued by this so I thought I’d take a look.
The Wikipedia article doesn’t say that the first king of Chimor came from the *west*, just that he came by sea.
Page 783 of the ‘*Handbook of South American Archaeology*’ contains a short account of these origins:
>A foreign noble named Taycanamo arrived in the Moche Valley, disembarking from a balsa log raft like those from far northern Peru and claiming to be sent by a great lord, from across the sea.
The authors cite ‘Rowe 1948: 28-30’, which is the book ‘*The Kingdom of the Chimor*’ by J.H. Rowe, which also contains a similar passage, translated from a 1604 writing titled ‘*An Anonymous History of Trujillo*’:
>It is not known whence came this… except that he gave them to understand that a great lord… had sent him to govern this land… from across the sea. The yellow powders which he used in his ceremonies and the cotton cloths which he wore to cover his shameful parts are well known in these lands and the balsa of logs is used on the coast of Payta and Tumbez from which it is presumed that this Indian did not come from a very distant region.
As you can see, it seems that Taycamo came by sea from somewhere in northern Peru, close to the lands of the Chimor.
In fact, if we look at the map on page 29 of Rowe’s book, we can see that Payta and Tumbez (where Taycamo’s balsa of logs apparently looks like it came from) is not very far from the kingdom of Chimor, and Taycamo’s ceremonial and clothing style was apparently already familiar to these people.
Unfortunately neither of these sources elaborate on whether they think this account is historically accurate, but if it is true, then it appears that Taycamo traveled a comparatively short distance by sea, rather than coming from the west.
Bibliography:
[Moore, J.D. and Carol, J.M. (2008). Handbook of South American Archaeology, p.738.](https://books.google.co.uk/books?id=5t4I3hFPyfcC&printsec=frontcover&source=gbs_atb#v=onepage&q&f=false)
[Rowe, J.H. (1948). The Kingdom of the Chimor, p.28-29](https://books.google.co.uk/books?id=5t4I3hFPyfcC&printsec=frontcover&source=gbs_atb#v=onepage&q&f=false) | 1,300 | AskHistorians |
up7fhy | What WOULD you wish on your worst enemy? | Permanent Cheeto fingers. Just orange cheese dust getting on everything | 58,050 | AskReddit |
up7fhy | What WOULD you wish on your worst enemy? | Always being hungry two hours after eating no matter how large the meal. Slow internet. Traffic jams no matter the location. Self doubt. Allergies. Favorite shows spoiled.
Nothing major enough to be life altering but constant, low grade inconveniences that wear on your soul every day. | 45,390 | AskReddit |
up7fhy | What WOULD you wish on your worst enemy? | Stubbing and breaking their toe and right as it’s about to be done healing it happens again over and over for the rest of their pitiful time on this hell we call earth | 39,330 | AskReddit |
up7fn8 | As the title states, my parents owned slaves in Nigeria before we moved to Sweden. | You’re just gonna make this troll post and ignore all the questions? | 50 | AMA |
up7fn8 | As the title states, my parents owned slaves in Nigeria before we moved to Sweden. | Is that pretty common in Nigeria and Africa ? What exactly do they do ? House work like maids and cooks ? Manual farming like the old south ? | 30 | AMA |
up7gf5 | What do I say when I approach a girl like how do I get her number | Always from the front. Creeping up behind them will get you in trouble. | 30 | ask |
up7kvh | Does it get harder or is it just brain dead projects all the way through? | Depends on your teachers.
Some are as lazy af and give the same tired ass problem sets year after year and collect a paycheck.
Some are just teaching while the continue their own education and don't really care about the class, just check the box. They are late for class all the time, they rarely grade anything until late in the semester.
Some are just the easy A teachers. They are slow and go over things 900 times and then give you a simple test over it, with tons of bonus and give you 45/50 when half your project doesn't even work right.
Some are that impossible guy that makes you code everything in notepad, and genuinely gives you 10x the information and material as the other teachers. Forces you to learn through 15+ hour problem sets. Tells you the problems on the test beforehand and still has a class average of 38%. | 340 | LearnProgramming |
up7kvh | Does it get harder or is it just brain dead projects all the way through? | My programming teachers basically required you to bulletproof your code, so that was fun. If an ATM program asked for four numbers, you had better make sure that four characters are input, then make sure that all four characters are numbers. If you're doing a Fahrenheit to Celsius calculator and the teacher tells you that it can't go below absolute zero, you have to do that. If you're writing a, "What day of the week was this date?" program, you have to remember that leap years are not necessarily every four years *and* that there was no year zero.
I think that the best thing that came out of my taking college Computer Science classes was having to accomplish the task at hand, rather than just following a tutorial. A tutorial says, "Here's the beginning, here's the end. I don't give a shit if you get it right in between, because you can just go to the next tutorial, regardless of if you don't get it. Better yet, you can just look up the answer and delude yourself into thinking you learned something."
The second best thing that came out of it was meeting people who were as interested in programming as I was, where we'd take our mid-class break and go outside for a cigarette and talk about what we were learning. And then we'd go back in and ask questions of the teacher and say, "So, what happens if we try to allocate so much memory for an array that we run into another sandbox?" And we could get answers for that immediately, and immediately ask follow-up questions.
Not all teachers are shit. Seriously. My favorites were the adjuncts who had day jobs as programmers and they taught night classes for extra money, because they were working in the field every day, so they'd tell you how to write better code, because they had to. The best one I ever had took the section on sorting algorithms exceptionally seriously, because he programmed for high-frequency trading systems, so he knew how every millisecond was an eternity, so he really wanted us to know why and when some sorting algorithms were better than others.
So, just because other people want to slag college teachers because of the shitty experience they may or may not have had doesn't mean they're all garbage. I learned from a guy who worked for AT&T when the nationwide long-distance network went down for eight hours, and he walked us through the offending code, which made us learn and respect the break statement. Some of these people have been around, and they can tell you things that nobody else can. Sometimes they're just anecdotes, and sometimes they're trying to impart really useful information, but what's common with good instructors is that they want to make you better than you are. | 280 | LearnProgramming |
up7kvh | Does it get harder or is it just brain dead projects all the way through? | What year of college are you in? For me the first year/semester the projects are kinda simple but once you move to other classes beyond the intro ones yes it gets alot harder. Of course it also depends on the professor you have.
These courses assume the student has 0 knowledge on programming so they start off with easier projects. | 40 | LearnProgramming |
up7l43 | has the us military developed a nuclear use policy or protocol in the event of a civil war? | I would doubt it. First, the nuclear use policies regarding use of weapons are all designed around the idea of a coherent, unitary executive in the federal government. They are not specific to any particular "enemy" — they are about enabling the President and the Secretary of Defense to create and implement nuclear policies.
The actual "war plans," like the SIOP, are designed around specific foreign enemies in mind. Those are already complex enough; it is hard to imagine how they would develop such a thing for a hypothetical domestic enemy in a hypothetical domestic civil war, the parties of which are anything but clear.
Assuming a continuity of military power and policy, the existing frameworks probably suffice for adapting to any such situations. If one does not assume that (e.g., if one assumes the military itself is fractured by such a thing), then probably all of that is up in the air. I have never seen any indication that any official policies have ever taken this possibility seriously (for good or ill). | 180 | AskHistorians |
up7n21 | I got falsely charged with manslaughter over a meme AMA | How? | 510 | AMA |
up7n21 | I got falsely charged with manslaughter over a meme AMA | This seems very unrealistic. How could any police department or government official think that a meme could count as a murder confession, especially one warranting criminal charges, without any evidence beyond that? I’m sorry if this is the truth and this did happen, but this just isn’t believable to me. | 440 | AMA |
up7n21 | I got falsely charged with manslaughter over a meme AMA | Did you learn anything from the experience? | 130 | AMA |
up7r8d | I’m about halfway through my Comp Sci degree and of course, went and applied for internships this summer. I got a couple offers and finally accepted one that I thought I would learn the most at. This internship was supposed to start next week but I got a call today that due to “budgetary” reasons, the internship was going ti be cancelled. Long story short, I quit my job and decided not to take summer classes for this internship. Obviously, being summer, I don’t see myself finding another internship so I’m just going to enroll back into school to take more classes. The questions I have are 1) how crucial is it for me to have an internship for further job prospects? Should I delay my degree in order to get an internship? And 2) are there jobs that I could do that would look good on my resume when it comes to getting a software dev/engineer position in the future? I apply to Jr level positions all the time but it seems that the biggest limiting favorite is lack of experience. I appreciate any advice through this! | If you’re feeling bold I would call the other companies that gave you offers and let them know you’re other offer fell through, worst case scenario they can’t help you, best case they have a position open. But overall I would say don’t delay your degree for an internship, unless its from a really nice company. Lots of people graduate with no experience and still manage to find 70k jobs right out of college (at least in my region). | 100 | CSCareerQuestions |
up7w72 | What is something you're willing to admit only to a community of total strangers on the internet? | I shat my pants at a concert from a fart. I ended up driving home, showering, changing, then ended up getting back to the concert just as it ended to drive friends back home. When they asked where I was I just told them I lost them in the crowd and that the concert was awesome.
Thankfully I didn't fart in the car on the way home. | 185,380 | AskReddit |
Subsets and Splits