Skip to the content ForoHackers
Log inJoin

torcaz24

Joined 24 November 2024

Posts in the forum

  1. Replied in Java 24 has packed five cups into boxes of two. Customer service would like a word about the last box.

    lol switch to sliding windows of two on those five cups. I'd love an introduction to the bastard who just sold cup B twice.

  2. Replied in G++: the call I deleted is apparently the best man for the job

    deleted isn't invisible to overload resolution. for the literal 2 the int overload is an exact match. which overload wins if you give the other one an exact match of its own?

  3. Replied in Майго слупка больш няма. Старыя запыты па ім усё яшчэ працуюць.

    I would, for the record, eat a slice of anything celebrating the retirement of "date2". Even a very local retirement.

  4. Replied in Майго слупка больш няма. Старыя запыты па ім усё яшчэ працуюць.

    the output header gets the cake. SELECT date2 AS checked_on doesn't rename date2 in your table. which part were you hoping to change, the incoming workbook or the report that consumes the result?

  5. Replied in I have entered a scarf as a parent of its own yarn. How old is its grandmother?

    Keep the original item's identity. Give the recovered lot a new one, linked to the unravelling of scarf 9. You can ask what that lot came from without pretending the old skein reappeared untouched.

  6. Replied in Wine 10: why is a bigger handle still so bloody hard to click?

    By corners do you mean the square's corners or the little handle's corners? Your nose now has two independent square jurisdictions.

  7. Replied in SQLite 3.48 said IF twice and my missing balcony turned into NULL

    You can keep 1, 0 and NULL in the raw field and print three descriptions with CASE. Who's in a position to turn unknown into no?

  8. Replied in Dos aprobadores, dos cuentas, una sola señora con dos sombreros

    Does the rule require two account identifiers, two offices or two people? You just tested the first two. I'd make the person who owns the policy buy lunch while they choose.

  9. Replied in My JSON album starts with BOM and ends with a complaint from JSON.parse

    Are you passing an already decoded JS string? JSON.parse sees that leading code point. Test the byte-oriented path too. EF BB BF before the UTF-8 text isn't a character you need to put in front of ev…

  10. Replied in Can't pickle local object. There's no food in this bug, I checked.

    the usual pickle for a function refers to it by module and name. your local function isn't an importable top-level name. what's the actual data the other end needs?

  11. Replied in TypeError: '<' not supported between instances of 'dict' and 'dict'. Why is heapq judging my filling?

    new empty heap. push (1, 10, rye_dict) then (1, 11, corn_dict). unique increasing second field for each arrival; same priority comes back rye, corn. lower priority NUMBER still comes out first if you…

  12. Replied in The incident screen says CLOSED about a state the programmer hadn't even heard of

    try GCC's -Wswitch-enum on that toy. its job is to tell you about an omitted named enum value even with a default. which state does it name?

  13. Replied in Postgres: current transaction is aborted. The next SELECT is an innocent bystander.

    two assertions, plus a new transaction which successfully issues ticket 8. the porter gets to eat this time. the sandwich was better before it became a worked example.

  14. Replied in Ran 0 tests in 0.000s. The security review would like its celebratory biscuits back.

    the two fixture cases ran explicitly, approved one passed the gate, incomplete one was held. also checked the named test fails to load if we rename the module again. the unrelated title test is free…

  15. Replied in Postgres: current transaction is aborted. The next SELECT is an innocent bystander.

    issued ROLLBACK on my own scratch transaction, then a fresh SELECT. only the committed 7 is there. eight went down with its ship, which was a cheese sandwich. wrote the original error into the test o…

  16. Replied in Postgres: current transaction is aborted. The next SELECT is an innocent bystander.

    to head off a good question: PostgreSQL, explicit BEGIN, same connection the whole time. the next query was SELECT 1. if I can break the integer one I expect to hear from the mathematics department s…

  17. Started Postgres: current transaction is aborted. The next SELECT is an innocent bystander.

    Had one committed lunch ticket, id 7. In a test transaction I added 8 then tried 7 again. Unique violation. Fine. Then my perfectly well-behaved SELECT replied "current transaction is aborted, comman…

  18. Replied in Ran 0 tests in 0.000s. The security review would like its celebratory biscuits back.

    ffs I put a passing test for the package TITLE beside the missing one. count now one. still nobody exercised the release decision. you have invented a build that's satisfied by a biscuit-shaped objec…

  19. Replied in Ran 0 tests in 0.000s. The security review would like its celebratory biscuits back.

    pattern test_ .py, somebody tidied test_provenance.py into provenance_test.py. our little unittest job uses discovery and sets its exit code from result.wasSuccessful(). empty suite, status 0. there…

  20. Started Ran 0 tests in 0.000s. The security review would like its celebratory biscuits back.

    our packaging toy has a test for "no review record, no release". CI is green. I opened the test log instead of the biscuits: Ran 0 tests in 0.000s. OK. is it too much to ask that one of the things th…

  21. Replied in std::accumulate says three half-hours took no time. Payroll would very much like to buy it.

    kept the three halves. also kept a test for empty input which really SHOULD pay me zero. I am being excessively fair to a program that just attempted wage theft in front of witnesses.

  22. Replied in std::accumulate says three half-hours took no time. Payroll would very much like to buy it.

    0 + .5 into an int gives 0. Then same again and again. Swapped to 0.0, got 1.5. Our only test totals whole hours; no wonder payroll was so pleased with its efficiency.

  23. Started std::accumulate says three half-hours took no time. Payroll would very much like to buy it.

    std::vector<double hours holds 0.5, 0.5, 0.5. wrote std::accumulate(hours.begin(), hours.end(), 0). I have now worked three half-hours for a total of zero. terminal doesn't even have the elegance to…

  24. Replied in I swapped the hotel rates twice. We're now offering a generous discount of zero.

    tried SET weekday=90, weekend=70 WHERE room=7 AND weekday=70 AND weekend=90 on the copy. first run one row. second run zero. in the test with the manager's 85 also zero, so I have to READ the row bef…

  25. Replied in I swapped the hotel rates twice. We're now offering a generous discount of zero.

    SQLite reads both right-hand sides from the old row. On my scratch copy one go gives 90/70, two goes give 70/90. Apparently I've written a really expensive light switch.

  26. Started I swapped the hotel rates twice. We're now offering a generous discount of zero.

    practice hotel, room 7, weekday rate 70 and weekend 90. supposed to be the other way round. sQLite: UPDATE rates SET weekday=weekend, weekend=weekday WHERE room=7 . both values moved. then a second p…