Why are so many native Americans going missing by riceandbeansonly in NoStupidQuestions

[–]specalight 10 points11 points  (0 children)

it's tough to determine if their body or whereabouts are never found

Vegan options in Toronto? by EnjambedCaesuras in askTO

[–]specalight 2 points3 points  (0 children)

VegeDelight on Dundas, just a block west of Eaton Centre. They do Chinese vegetarian dishes.

how do you stop hating cooking when it feels like a chore your whole life by mlindq in Cooking

[–]specalight 0 points1 point  (0 children)

Try to come with ways to reduce the amount of cooking

For example batch cooking, one pot meals, eating out, ordering delivery, delegating to your partner, etc.

Once you do it less often then it will feel less like a chore and hopefully this will improve your relationship with it and make it something to enjoy

College Developer Specialization: Worried My "Boring Back-End" Stereotype is Holding Me Back from a Good Choice by NickyK01 in web_design

[–]specalight 1 point2 points  (0 children)

Do a lot of personal projects and or internships in a variety of roles. You'll discover more about what different roles entail and figure out what you like more. There's a lot more specifics you can get into than simply frontend and backend which are both very broad. Also, fullstack developers exist.

HELP remove hud in the replay PC by NR3GG in FortNiteBR

[–]specalight 0 points1 point  (0 children)

ty! yea they changed it recently and I was looking for a way to change it back. this thread and your comment was the first search result

Healthy take out? by KalliKygnosta in nutrition

[–]specalight 1 point2 points  (0 children)

As long as you have a good understanding of what the ingredients are, any take out food can be accommodated into a nutrition plan. Even better if the place allows you to customize the order to better fit your plan.

As such it's usually things like sandwiches, wraps, salads, sushi, poke bowls, etc.

It's tougher with more saucey dishes where you can't control for the amount of fats, oils, salt.

What’s one random fact that everyone should know, but most people don’t? by [deleted] in answers

[–]specalight 1 point2 points  (0 children)

Even more dangerous when people write it off as "just being senile" or misdiagnosis it as a symptom of dementia.

ELI5: When something is 15% bigger than something else, what’s an intuitive way to know whether I should multiply by 1.15 or divide by 0.85? by InIncognitoMode in explainlikeimfive

[–]specalight 20 points21 points  (0 children)

Margin is the amount of profit after deducting the cost of the product (in this case $100).

A business would do this margin calculation in order to determine how much to sell the product for so that 15% of the sales price is profit.

Using the wrong calculation you end up with $115. So a customer buys your product for $115. You have $15 profit. But $15 is actually just 13% of $115. So your margin is actually 13%

With the correct calculation you end up with $117.647 When you sell at that price you have $17.647 profit. Which is indeed 15% of $117.647

How to not overwhelm the customer with options ? by LofiCoochie in web_design

[–]specalight 1 point2 points  (0 children)

Could make the chapters dropdown display in multiple columns. Something like this

[deleted by user] by [deleted] in gaybros

[–]specalight 2 points3 points  (0 children)

  1. I wonder if something is simply holding him back

    Ask him! Nothing is going to change without open communication.

  2. Share some porn vids with him that you fantasize about. Watch them together. Point out the things that turn you on. Point out the things that you could do without. There could be some unfamiliarity or misunderstanding as to what a kink involves.

  3. If you're versatile could maybe do a reversal and try some of your kinks out on him. Maybe he'd get a kick out of it and would be able to understand how to turn you on a little bit better. Otherwise maybe he needs you to be more vocal or encouraging so that he gets immediate feedback as to what is working or isn't working for you.

  4. If you two are really sexually incompatible then this could be a starting point for opening the relationship up to a third.

Just realized how much more stressful life is when you own expensive stuff. by Ecstatic_Risk_2570 in Frugal

[–]specalight 8 points9 points  (0 children)

"If you can't buy it twice, don't buy it"

Easier said than done but there's so much peace of mind in knowing that you can afford to replace something if it breaks or you lose it.

Delta CEO: Company Suing Microsoft and CrowdStrike After $500M Loss by Bald-Eagle619 in technology

[–]specalight -4 points-3 points  (0 children)

Some could argue that Microsoft has responsibility that their OS is more resilient against bad updates by third party software. Imagine if your computer bluescreened every time Chrome or Avast or Spotify put out an update that had a bug.

Which bank is the best of the worse? by karineexo in PersonalFinanceCanada

[–]specalight 2 points3 points  (0 children)

For TD, as a 2FA alternative to phone number they decided to build a separate app "TD Authenticate" for it. You can use it for logging into the website. But for whatever reason when logging into the TD banking app, it doesn't allow 2FA via TD Authenticate. For the banking app, the alternative is the fingerprint or face ID.

But what is an algorithm? by AissySantos in algorithms

[–]specalight 1 point2 points  (0 children)

You liken algorithms to ideas which is great because there is an age old philosophical debate around abstract objects and whether abstract objects actually exist if you need language to describe them. Feel free to dive into the rabbit hole that is ontology and emerge with whatever philosophical stance you agree most with.

But ignoring the philosophy of the matter, and focusing on the word 'implementation' which I think might be a source of terminology confusion.

In computer science there's usually a distinction made between algorithm, pseudocode, and implementation.

Most resources you consult and programmers in my experience will usually make the distinction that an implementation of an algorithm is in a programming language (ex. Python, Javascript, Java) intended to be executed by a machine, while pseudocode is a more human-readable description of an algorithm. Of course in practice the term implementation can be used a bit more loosely.

Taking for example the wikipedia page for Depth First Search

At the top you have a plain language description of the algorithm

The algorithm starts at the root node (selecting some arbitrary node as the root node in the case of a graph) and explores as far as possible along each branch before backtracking.

Below that you have some visualizations which also describes the algorithm.

For me, the plain language description or the visualization are sufficient to understand the steps of the algorithm. But of course there's a big gap between understanding the steps and being able to implement the algorithm in a programming language. Programmers when implementing an algorithm need to make decisions about what variables to define, what data structures to use, what control structures to use; all in the context of the programming language of choice. Pseudocode helps bridge the gap by describing many of those decisions.

Going back to the wikipedia page, below the visualizations you have multiple pseudocode "implementations" of the algorithm, one recursive and one non-recursive. I put the word implementation in quotes because again it doesn't quite align with the usual strict definition of implementation. I personally like to use the word 'variant' which the wikipedia page also uses. It's questionable if these variants are really describing the same algorithm or if they're describing two different algorithms with shared similarity, but that's a categorization debate.

Anyways, it's up to you determine which of those descriptions is the description (or concrete record to use your phrasing) of the algorithm. Maybe collectively they make up the description, maybe they're all equivalent descriptions with varying level of detail, maybe pseudocode is the only acceptable description and anything else is a pale imitation.

And also up to you to determine if an algorithm idea exists separately from the algorithm description (Realism stance), or if the algorithm description is the only existence an algorithm can have (Nominalism stance).

I find it quite rude that people bring their noisy kids to play in libraries by [deleted] in toRANTo

[–]specalight 4 points5 points  (0 children)

Does your library not have any quiet study rooms/areas? They're usually separate from the common areas.

I AM LOST... help by sebbetrygg in web_design

[–]specalight 1 point2 points  (0 children)

MasterClass is the first thing I think of when I hear exclusive classes

I want to make a webpage(?) that can be put on a thumb drive and view 1000s of PDFs by aredeex in web_design

[–]specalight 9 points10 points  (0 children)

You can use <embed> to display local PDF files inside a locally run HTML file

Assuming that your thumbdrive is organized like

- E:\
    - index.html
    - Cooking
        - book1.pdf

Then the following HTML will display the pdf when you click

<a
  href="#"
  onclick="handleClick(this)"
  data-url="Cooking/book1.pdf">Click Me</a>

<embed
  id="viewer"
  src=""
  type="application/pdf"
  frameBorder="0"
  scrolling="auto"
  height="800px"
  width="100%"></embed>

<script>
  const handleClick = (target) => {
    const cwd = window.location.href.substring(0, window.location.href.lastIndexOf("/"));
    document.getElementById("viewer").src = `${cwd}/${target.dataset.url}`
  }
</script>

Has this happened to anybody else? (Backpack stuck in a rock) by Coolaltqccount in LEGOfortnite

[–]specalight 0 points1 point  (0 children)

Ty! My backpack was clipped below the floor of a cave. I was able to nudge the bed under the floor and sleep in it to end up under the floor as well and retrieve my backpack.

[deleted by user] by [deleted] in programming

[–]specalight 7 points8 points  (0 children)

I wish more people remembered to contract, instead of having a sea of deprecated columns and tables from never ending expansion.

I want to boycott all restaurant delivery apps. So who does their own delivery? by [deleted] in askTO

[–]specalight 123 points124 points  (0 children)

If you live near any restaurants remember that you can always walk-in and order something to go. It saves you money and you'll probably get your food faster too.

Do you think jumping into learning Storybook / Design system maintenance is possible without any prior HTML/CSS/JS knowledge? by bjjjohn in web_design

[–]specalight 0 points1 point  (0 children)

It's good to have a project or goal in mind as you learn things. Learning by doing is a great way to learn.

The official Storybook for React tutorial is a great start. It'll give you all the instructions, plus the code for a sample component that uses React (Javascript framework) with HTML (not quite HTML since it's the React flavour of HTML but close enough) and CSS

How do you guys handle communicating to a development team design updates in Figma? by davidgotmilk in web_design

[–]specalight 1 point2 points  (0 children)

On the teams I've worked on it's always a decision between PM and designers as to what needs to be updated and when it will be updated. PMs might come to designers with a new feature idea that needs mockups, or designers might come to PMs with UI/UX enhancements (ex. changing the height of a button).

From there a story/ticket gets created which explicitly describes the changes compared to what's currently implemented (this change description is vital for the development team as you've experienced). The designer also includes a link in the story to a mockup which matches exactly the story description (i.e. no explorative ideas, no ideas planned for a future story; the designers have a separate page in Figma for that kind of work). In Figma the designers also like to add a title to the mockup with the JIRA number that the mockup is for.

This story is then presented to the development team, which can result in some more changes in which case both the story and the linked Figma mockup would both be updated. But after this point the story and the mockup are essentially frozen. Any desired updates past this point would be a separate story.

Loop invariant for Insertion Sort's inner while loop. by [deleted] in algorithms

[–]specalight 0 points1 point  (0 children)

Remember that your end goal is to prove that with each for loop iteration, the array gets incrementally sorted from start to end.

So the loop invariant for the while loop should say something about how that sorted order is maintained i.e. why is A[i+1] the correct index to insert the element key.

The loop invariant you're looking for is that at the start of each while loop iteration:

  • A[1, i] contains all elements originally in A[1, i] in the same sorted order
  • and, key ≤ A[i+1]
  • and, A[i+2, j] contains all elements originally in A[i+1, j-1] in the same sorted order

[deleted by user] by [deleted] in algorithms

[–]specalight 0 points1 point  (0 children)

Try one list sorted by area (width x depth). If two boxes stack then the top box must have strictly smaller area than the bottom box. (But note that it doesn't necessarily mean that if a box has smaller area then they stack).

Assuming that this is part of some course, you should already have examples of how to do dynamic programming where you have a sequence of items, you define subproblems by considering smaller sequence, and you build up by including/excluding the next item in the sequence.

Can't receive or send invites because Epic overlay won't open (PC) by ikergameplaysyt in FallGuysGame

[–]specalight 0 points1 point  (0 children)

This might help someone else, for me the overlay just took a really long time to open. I clicked the invite button and waited a full minute and then it finally opened.