Comment by Schwern on Get git to automatically ignore lines containing a...
Not easily, and I recommend against going down that path. Instead, consider leaving the debugging code in place and turning it on and off with a compile flag or environment variable. Then it will be...
View ArticleComment by Schwern on SQLchemy: caught in a loop between constraint...
What happens if you try the same thing without SQLAlchemy? Just a plain psql client.
View ArticleComment by Schwern on Flaws with Git diff of Jupyter book in Visual Studio Code
It's unclear what you're asking. Perhaps if you provided some screenshots that would help.
View ArticleComment by Schwern on How do I insert all data in one row and insert users...
This question is similar to: SQLite3 database or disk is full / the database disk image is malformed. If you believe it’s different, please edit the question, make it clear how it’s different and/or...
View ArticleComment by Schwern on Get count of each email type PER table
These should likely all be combined into one table. Perhaps ask a question about how to combine them.
View ArticleComment by Schwern on Is there a way to check history of previously cloned...
Could you elaborate on this list? And what you want to trace about them? Are you just asking if Github keeps a log of what you've cloned?
View ArticleComment by Schwern on When do raise_errors_for_deprecations! and...
I think raise_on_warning only applies to RSpec warnings. Confusing. It sets RSpec::Support.warning_notifier which is only used in the internal RSpec method RSpec::Support#warn_with. See this code...
View ArticleComment by Schwern on How to Efficiently Index and Search Arrays with UNNEST...
Move the tags to a join table.
View ArticleComment by Schwern on In Github, how do you determine which branch the...
Neither of those are branches. 3.2.0 is the tag. fc75c67 is the short commit ID.
View ArticleComment by Schwern on How to assign a random number between 1 and 3 for each...
What is the purpose of doing this? There might be a better way.
View ArticleComment by Schwern on Can I remove files and folders from...
What is the intent of this "clean up"?
View ArticleAnswer by Schwern for Installing a github package without setup.py
It is not a Python nor Github package. It's just some code.You download or clone it, install the dependencies manually, and run it.When you run it, you either have to put it in a directory in your...
View ArticleAnswer by Schwern for Can I remove files and folders from...
In general, DO NOT edit the contents of .git/ directly.Those are remote tracking branches. Specifically they track the remote named origin, which is usually where you cloned from.Git is a distributed...
View ArticleComment by Schwern on after git reset last year's github contribution counter...
It's not a git issue. Contact Github support and ask them to rebuild your contribution stats.
View ArticleComment by Schwern on Use one column to group rows and the minimum of another...
pg_dump --schema-only -t BigPaint -t Inspiration <database name> will give create table statements. They're much easier to understand.
View ArticleComment by Schwern on Is there a way to subtract a credit from an aggregate...
You're grouping by chckDate, but don't show it. The issue is likely that chckDate is different. Or that the payees contain subtle differences such as whitespace.
View ArticleComment by Schwern on Callbacks order in Rails
@RichSteinmetz Thanks, I've updated the answer. What do you think?
View ArticleComment by Schwern on ISO 8061 built-in support in RSpec or Minitest
@ArslanAli Thx, I'll have another look.
View ArticleComment by Schwern on Github is not updating after commit
I think you forgot the image.
View ArticleAnswer by Schwern for ISO 8061 built-in support in RSpec or Minitest
If the purpose of the test is to check that the pin_code_sent_at pair has been converted to JSON correctly, you can make this easier with have_attributes. You can test individual keys without having to...
View Article