Comment by Schwern on How to initalize sql.NullString member in struct type?
Is your intent to make a struct which contains a MyNullString member? Or to make a struct of type MyNullString?
View ArticleComment by Schwern on Why do I get "no such table: "?
Did you actually try to find a table called <tablename>? If not, does the table exist?
View ArticleComment by Schwern on How do you increase the starting memory and allocation...
How have you determined that memory allocation is the issue?
View ArticleAnswer by Schwern for How to initalize sql.NullString member in struct type?
type MyNullString struct { sql.NullString json.Marshaler json.Unmarshaler}That says you have a type MyNullString which is a struct with sql.NullString, json.Marshaler, and json.Unmarshaler embedded...
View ArticleAnswer by Schwern for How do you increase the starting memory and allocation...
Running your benchmarks with Ruby 3.3.3 and JRuby 9.2.14.0 on macOS 14.5 on a 2018 Macbook Pro 2.7 Ghz i7, here's some simple observations by running top while the benchmarks run.JRuby uses a lot more...
View ArticleAnswer by Schwern for Is git merge something like retrofit?
Because you've changed the same block of code in both branches, Git cannot guess your intention. The result will be a merge conflict. This is not an error.Git will leave conflict markers in your code...
View ArticleComment by Schwern on I am setting up an apache/passenger/rails stack on a...
When you run as Apache you're running as a different user with different environment variables. This is often the issue.
View ArticleAnswer by Schwern for Postgres truncating timestamptz value to 3 places?
timestamptz (and all times in postgres) have a resolution of 1 microsecond or 0.000001 seconds.The tool you're using to display query results from Postgres is truncating timestamp values causing...
View ArticleAnswer by Schwern for Amend commit and quickly rebase all the dependencies
In industrial situation when we need to collaborate, I cannot wait for A to merge before working on B. So what I have to do is to put A code up for review, at the same time working on B.It is likely...
View ArticleComment by Schwern on How to use wildcards in parametrized queries?
Show us query, name, and genre and sample data that you think should match. Show us select * from composer to verify there is matching data in the table.
View ArticleComment by Schwern on What does #define do in the Compiler?
@JohnBollinger That is not the implication, it's just the scope of the question.
View ArticleComment by Schwern on What does #define do in the Compiler?
You're emphasizing the fine distinction between an empty list and no list, but it's unclear how that answers the question. You've mentioned a number of times that an empty definition has other uses,...
View ArticleAnswer by Schwern for Select data for the current day
You can't, because there are duplicates. There is no way to tell for sure which is the last one. You could assume the one with the highest ID is the last one, but that assumption is not necessarily...
View ArticleComment by Schwern on Why does the Rust compiler drop unused variables in the...
"Although the way variables are dropped reminds of how data is pushed and popped off a stack, but that should be a red herring." No, that's probably it. Programming languages often store local...
View ArticleCan I set up template inheritance inside a template? (Template Toolkit)
I have to display different medical forms according to which state the user is in. There is also a default form that many of the states share. These medical forms are all written in Template Toolkit...
View ArticleComment by Schwern on How can we migrate from TFVC to GIT, without halting...
Is 10GB the size of the entire repository? Or the size of the checked out files?
View ArticleComment by Schwern on Error using pgloader to migrate from MySQL to Postgres
Try running with --debug and show us the output (edit it into your question).
View ArticleComment by Schwern on INSERT OR UPDATE based on table data in single query
It's easier to understand if you give us your expected results as a table rather than describing them. And it seems like you're duplicating data, a bad practice. Perhaps Table 1 needs a simple primary...
View Article