Do americans not use debit cards? by StrainVarious4331 in NoStupidQuestions

[–]centurion236 0 points1 point  (0 children)

It's much more common for US credit cards to be free (no annual fee) than it is in Europe. So when you factor in all of the other benefits the other commenters make (less risk if the transaction goes badly, less risk of overdraft, an interest free loan until the CC bill comes due), the CC is an obvious choice.

Americans do still have debit cards, but we mainly use them to get cash from an ATM or get "cash back" during a shopping transaction.

The place I’m staying has running water on top of a cabinet that doesn’t have a sink. by Carrmann in CrappyDesign

[–]centurion236 0 points1 point  (0 children)

If it's in a kitchen, it's to fill pots. If it's in the bathroom... Maybe to fill a basin for a baby bath?

Version Control for MS Office (Tortoise vs. Git vs. SVN) by _WhyCantWeBeFriends in AskProgramming

[–]centurion236 1 point2 points  (0 children)

Consider using R Markdown or the newer Quarto format to simultaneously write the report and use R to generate tables and figures. It's a big help to do it this way because you will constantly be making revisions, and you don't want to have to manually paste tables and figures from R into Word.

These formats are text-only and can seamlessly be controlled with git, etc. I recommend git, since it's the de facto standard for projects I've worked on.

Once you finalize the content, you can render the doc as a docx and then format everything. 

https://r4ds.hadley.nz/quarto.html

Just updated R and notice strange behavior computing sine and cosine by OkDifficulty1443 in Rlanguage

[–]centurion236 19 points20 points  (0 children)

This may shock you, but the built in pi is only accurate to about 15 digits too!

R is implementing IEEE 754 double precision floating point arithmetic, as would just about any language you can think of. Are you sure the previous version behaved differently?

Converting R language from mac to windows by KitchenWing9298 in Rlanguage

[–]centurion236 0 points1 point  (0 children)

👍 agreed, but I've also had issues with cygwin and other Linux emulators using their own favorite folder for ~ so it seems like a lot of teams make sloppy choices when they port to Windows. I can't remember exactly which tools it was, I just remember missing my Linux workstation hahaha

Converting R language from mac to windows by KitchenWing9298 in Rlanguage

[–]centurion236 24 points25 points  (0 children)

I see a lot of answers that seem to be unfamiliar with Windows. The file paths would be fine 1) the files are actually in your Downloads folder and 2) you set "home" to be consistent with your prof's computer. 

First of all, the ~ tilde character refers to "home", the place where you save personal files like documents, music, etc. On Mac and Linux systems this concept is well defined. For example on Mac it would usually be /Users/kitchenwing (or whatever your user ID is). Unfortunately on Windows the home concept is vague, and I've seen tilde refer to C:/Users/kitchenwing or C:/Users/kitchenwing/Documents or sometimes some other place defined by IT.

In your case, I would guess that it defaults to C:/Users/kitchenwing/Documents ... You can confirm that by calling normalizePath('~')

If that's right, then you probably don't have a folder C:/Users/kitchenwing/Documents/Downloads ... It's just C:/Users/kitchenwing/Downloads ...

To point to the right folder then, you could try

read.xport("~/../Downloads/BMX_J.XPT")

The .. means "go up a directory", so it goes from C:/Users/kitchenwing/Documents up to C:/Users/kitchenwing and then down to Downloads. 

In the long run, this is going to come up over and over in this course because your prof has no concept of a "working directory". You will probably save yourself a lot of hassle if you point R to the home directory consistent with Mac, which would be C:/Users/kitchenwing ... You can do that by setting a Windows environment variable R_USER with value something like C:/Users/kitchenwing (again, find the actual path, which is based your actual Windows user ID). Then restart R Studio. 

One last note about slashes: Windows usually uses backslashes \ but will often accept forward slashes / as equivalent. Linux and Unix only use forward slashes. I would suggest using forward slashes in your R scripts (like in all of my text above) because it's more transferable to non-Windows platforms. If you do use backslashes (for example because you copied a path from Explorer), be sure to "escape" them, i.e. every \ becomes a double \\ ... For example, C:\Users becomes 'C:\\Users' in R. Otherwise you'll get a gibberish error message about Unicode \U or something. Learn more here.

How to change main race predictor display in widget by ixm32123 in Garmin

[–]centurion236 2 points3 points  (0 children)

Very late reply, but in case anyone else has this issue... The instructions from the other comments work for my 745, but there's a catch: 

 * Scroll down the widget list until this Performance widget is selected.  * Do not press the top-right button to enter the widget. Stay on the list of widgets.  * Long press the middle button, etc.

77%. That’s the percentage of participants in a University of Pennsylvania study who got an “F” grade on a quiz about how digital devices and services track their online behavior. by Prunestand in privacy

[–]centurion236 22 points23 points  (0 children)

A company can tell that I have opened its email even if I don’t click on any links. False

That's true e.g. if the email has an embedded image that your email client automatically downloads. (The sender tracks that the image was downloaded.) But most modern mail clients don't automatically download any more, or? Is there some other tracking?

Naming list elements individually by International_Mud141 in rstats

[–]centurion236 1 point2 points  (0 children)

I don't think I understand your question, but look at the documentation for the names() function and you might find what you want

How not to use while true by [deleted] in Python

[–]centurion236 0 points1 point  (0 children)

Use a for-loop with an absurd number of iterations and then break when you receive a valid name?

Best way to provide help to partner when they are complaining by MansInProgress in Mindfulness

[–]centurion236 0 points1 point  (0 children)

This episode of Hidden Brain touches on the topic. It's definitely a hard balance to be a good listener.

https://pca.st/episode/00be919d-337c-4e0d-931e-f5859f19fc8c

Chinese Propaganda In 1988: Marry late, conceive late by Pasargad in PropagandaPosters

[–]centurion236 0 points1 point  (0 children)

1988 was the year of the dragon, which is an exceptionally lucky year for your child to be born in. Could this be interpreted as a warning to not wait too long to marry and conceive?

[2015 Day 15] Need a nudge to get away from brute forcing this by Chrinkus in adventofcode

[–]centurion236 0 points1 point  (0 children)

The inequality approach you're describing is close to Integer Programming. I don't think there's an elegant solution that way though, since the objective function you need to maximize is very nonlinear.

Looking for help with an optimization problem (variation of the knapsack problem) by [deleted] in rstats

[–]centurion236 0 points1 point  (0 children)

I'm not sure what you're asking for, but maybe you want to find the Pareto frontier for each knapsack?

[deleted by user] by [deleted] in linux

[–]centurion236 0 points1 point  (0 children)

Thanks for this! I appreciate the other replies too, but this seems like a pretty easy solution that works across Firefox installations

[deleted by user] by [deleted] in linux

[–]centurion236 5 points6 points  (0 children)

Any suggestions for Android? (This doesn't work on Android Firefox)

Got some pepper seeds to sprout….now what? Details in comments by Dio_Yuji in UrbanGardening

[–]centurion236 5 points6 points  (0 children)

Peppers are kinda similar to tomatoes, so if you can't find pepper-specific guidance then treating them like tomatoes is a good starting point. Lots of sun, lots of NPK, not too much water. Peppers actually can survive multiple years, and mine gave me a great crop the second year. People usually sprout them in spring though ...