WTF Bites


  • Discourse touched me in a no-no place

    @Tsaukpaetra said in WTF Bites:

    @Benjamin-Hall said in WTF Bites:

    which means that the cached html also includes all the cached css. Which gets cached relatively forever by browsers and the host.

    Encountering something like this with someone's iPhone, which apparently cached one of the dev builds of the site from long enough ago that it's not talking to the API endpoints correctly anymore, and no amount of "pull down to refresh, maybe?" is fixing it.

    Just tell them to buy a new iPhone. 💸



  • @dkf Unfortunately, you cannot do so by placing an ad in your web site.


  • Java Dev

    @Benjamin-Hall said in WTF Bites:

    @Tsaukpaetra said in WTF Bites:

    someone's iPhone

    <there-s-your-problem.gif>. Safari, mobile safari in particular, is super super aggressive about caching things. Mostly things it shouldn't cache ever.

    What about the old ?t=20220805 trick? May not work against aggressive serverside caching, but surely the iphone would reload if the value changes.



  • @PleegWat it's been known to do partial caching of specific elements even when the DOM updates. There are ways to convince it not to, but they're fragile.



  • Been trying to print this 100+ page document.

    First:
    51a8588a-53ef-42ca-8ae2-a5cf2b50c450-image.png

    OK, whatever, convert PDF a few times, and get it down to 17MB (without losing too much of its contents):
    539fa34f-789a-4924-a276-1b3fed9d9b7f-image.png

    [object Object] indeed.



  • @cvi said in WTF Bites:

    [object Object] indeed.

    for (auto i = 0; i < 100; ++i)
        "Print Current Page"
    

    (who needs the 101+ pages...)


  • ♿ (Parody)

    “It’s not in your best interest to work at home,” he said. “I know it’s a hassle to come into the office, but if you’re just sitting in your pajamas in your bedroom, is that the work life you want to live?”

    So maybe don't work in your bedroom in your pajamas? This guy is such a fucking hack.

    “If we don’t feel like we’re part of something important, what’s the point?” he said. “If it’s just a paycheck, then it’s like what have you reduced your life to?”

    I guarantee you that having a commute does not make me feel better in any way and I have no idea why working in a cubicle should make me feel any better about what I'm doing.

    I know people who have tried working from home and they can't focus or whatever and that's fine and I know that your books are all about you overinterpreting some bullshit you found somewhere, but why do you think you know how I feel about anything?



  • @boomzilla said in WTF Bites:

    So maybe don't work in your bedroom in your pajamas?

    No shit. I work in my office in my pajamas.

    I guarantee you that having a commute does not make me feel better in any way and I have no idea why working in acubiclen open office with all hotelling spaces should make me feel any better about what I'm doing.

    Fixed for our office (which is 4mi away from home).

    Now I do admit, it's easier to interact with colleagues in person than over Slack/Zoom.



  • @dcon said in WTF Bites:

    it's easier to interact with colleagues

    82bf1695-a12e-40c5-b826-a012d247248b-image.png


  • ♿ (Parody)

    @dcon said in WTF Bites:

    Now I do admit, it's easier to interact with colleagues in person than over Slack/Zoom.

    I'm pretty happy using Teams (or other IM before). Sometimes it's too easy, as people call me a lot now. Definitely don't need them walking up behind me.



  • @boomzilla said in WTF Bites:

    @dcon said in WTF Bites:

    Now I do admit, it's easier to interact with colleagues in person than over Slack/Zoom.

    I'm pretty happy using Teams (or other IM before). Sometimes it's too easy, as people call me a lot now. Definitely don't need them walking up behind me.

    I always hated that.

    Note I said "easier". You may also remember I've commented elsewhere (no idea which thread), that I'm still working from home. In fact, I got a special dispensation to ignore the "come in at least 3 days a week" thing.


  • ♿ (Parody)

    @dcon currently I'm supposed to stop by and scan my badge at least once every other week to keep the justification for charging for office space for me.


  • Discourse touched me in a no-no place

    @dcon said in WTF Bites:

    Now I do admit, it's easier to interact with colleagues in person than over Slack/Zoom.

    It is but most of the people I need to interact with are based in other offices.

    I like going into the office. Change of scenery, better separation of work/home, it's a bit more social than spending 8 hours on my own.
    I've been going in 2/3 days a week anyway for a while but now there's an "expectation" from the grown ups for people to go in that I suspect might become a mandate if our big expensive offices keep being massively under utilised.


  • Considered Harmful

    @boomzilla pop psychers are not, in fact, deep thinkers. They trawl the ultra-shallow layer, mostly. Best to only listen to those you agree with, if any at all.



  • @loopback0 said in WTF Bites:

    I like going into the office. Change of scenery, better separation of work/home, it's a bit more social than spending 8 hours on my own.

    Mostly the same for me. My workplace is doing one day a week optionally in-office, and lunch is provided as an incentive to come in


  • Discourse touched me in a no-no place

    @loopback0 said in WTF Bites:

    I like going into the office.

    I'd like it more if the trains weren't a disaster zone right now, and I'd be complaining about life a whole lot more if I had to go in. Fortunately, I don't, and the mess that is UK public transport right now is something that I'm only abstractly interested in.


  • Java Dev

    @dkf said in WTF Bites:

    if the trains weren't a disaster zone right now

    And 100 other modern-day British fairytailes?


  • Discourse touched me in a no-no place

    @dkf said in WTF Bites:

    @loopback0 said in WTF Bites:

    I like going into the office.

    I'd like it more if the trains weren't a disaster zone right now, and I'd be complaining about life a whole lot more if I had to go in. Fortunately, I don't, and the mess that is UK public transport right now is something that I'm only abstractly interested in.

    Fortunately I don't need to bother with public transport to get to the office which would take significantly longer than driving.



  • @loopback0 I used to bus to work, because a monthly bus pass was cheaper than parking, and I could read/play games/whatever. Then the Rapid Unscheduled WFH happened and nobody commuted anywhere. Now, as I said before we're in office once a week, and I drive in and pay the daily parking rate. It's cheaper to do that four times a month than the other options (aside from staying home)



  • Visual Studio status, part n+1:

    • Clicked the run button, it built the solution, and... nothing. Just sat there like an idiot with everything grayed out but never actually started running. Tried to exit VS and it showed me this incredibly helpful message:
      cfbbbdd6-f819-48f7-9374-2165fca278a9-image.png
    • After force quitting VS from Task Manager, I was eventually able to get it to run. Then, after closing it I wanted to continue working like normal. Step 1: Navigate to the tab with the file that I wanted to work on. That should be simple enough for an advanced IDE, right? After all, nothing's building, nothing's running, I just need to edit some text.
      da110d76-9c98-4600-ba0d-faa7baa50b45-image.png

    :wtf:



  • @hungrier said in WTF Bites:

    Visual Studio status, part n+1:

    Don't worry. There's a 3.5GB update today (VS2022).



  • @hungrier said in WTF Bites:

    cfbbbdd6-f819-48f7-9374-2165fca278a9-image.png

    787e9f45-9be9-45d0-b2fc-5129e450213f-image.png


  • Discourse touched me in a no-no place

    @hungrier Your post reminds me of how Eclipse gets when something causes all the worker threads to seize. Slaughtering the process and restarting is the only way.



  • @dkf I'd recommend slaughtering the whole Eclipse install and choosing an IDE that actually works instead.


  • Considered Harmful

    @Bulb said in WTF Bites:

    an IDE that actually works

    E_NULL_SET


  • Discourse touched me in a no-no place

    @Bulb said in WTF Bites:

    choosing an IDE that actually works

    When someone suggests that, they usually seem to have a different idea of what "actually works" means to me. I've tried a number of alternatives (including IntelliJ) and they tend to either be too limited or behave really strangely.



  • @Applied-Mediocrity said in WTF Bites:

    @Bulb said in WTF Bites:

    an IDE that actually works

    E_NULL_SET

    Given that java language server is based on Eclipse code I agree, at least for the Java case.

    @dkf said in WTF Bites:

    I still don't understand what IntelliJ does with git, but it does seem very able to get itself wedged and to need fixing with the git command line

    I've learned to use git from command-line and git gui and just use it that way instead of switching between the slightly different ways of the at least five different IDEs I've touched recently.



  • @hungrier Apropos Visual Stupido: I am trying to learn how SQL projects work. I created one, created a table and tried to deploy. Oh, wrong target platform. So I go to the project settings, switch the database and … the project setting dialog works, but can't be closed and clicking anywhere outside it does nothing.


  • Notification Spam Recipient

    @Bulb said in WTF Bites:

    @hungrier Apropos Visual Stupido: I am trying to learn how SQL projects work.

    Badly.

    There, now you know.



  • @MrL I expected so much.

    It looks to me like a bunch of wizards for writing syntactically valid Turd-SQL.


  • Notification Spam Recipient

    @Bulb said in WTF Bites:

    @MrL I expected so much.

    It looks to me like a bunch of wizards for writing syntactically valid Turd-SQL.

    From what I remember - yes.

    You can also try one of two Entity Framework db projects. If you're into self harm that is.



  • @MrL Actually it's Supposed™ to do schema diff, so you can do some changes to the project, then take a database where the previous version is deployed and it shoud generate the update scripts. I am not sure whether it's worth the trouble though.

    Because of course if the change is simple, it is simple, so writing the script isn't that much of a deal, especially if you have to remember the correct workflow to generate it. And if the change is not simple, the automation can't do it anyway, at least not completely—e.g. if you add a non-null column, well, you have to specify how to fill it in anyway.

    So I am thinking to maybe ignore it, set up evolve, yuniql or flyway and just drop in database scripts as they'll need to be applied.


  • ♿ (Parody)

    @Bulb said in WTF Bites:

    I've learned to use git from command-line and git gui and just use it that way instead of switching between the slightly different ways of the at least five different IDEs I've touched recently.

    I have avoided using any graphical source control programs for years and the only regret I have is that it makes moving files around a bit more inconvenient but it's still been a huge net positive in my life.


  • Discourse touched me in a no-no place

    @boomzilla said in WTF Bites:

    I have avoided using any graphical source control programs for years

    Most things aren't much harder on the command line, except for determining commits to do a diff between when those aren't branch tips (and aren't some shorthand that you remember); point-and-gruntclick is absolutely designed for selection. Sometimes when working out how to handle a merge, I need to see how two branches have evolved so that I can work out the intent of changes (e.g., if they're mostly just a reindent then I don't need to be careful about keeping them as I can just apply things to the other side). It doesn't help in the most difficult cases, but it makes a lot more cases not be the most difficult ones...


  • ♿ (Parody)

    @dkf said in WTF Bites:

    @boomzilla said in WTF Bites:

    I have avoided using any graphical source control programs for years

    Most things aren't much harder on the command line, except for determining commits to do a diff between when those aren't branch tips (and aren't some shorthand that you remember); point-and-gruntclick is absolutely designed for selection.

    This was actually a gigantic reason for getting away from GUI tools. Stuff is all buried in trees. Much easier to use the command line to filter out all the junk that I'm not interested in.

    Sometimes when working out how to handle a merge, I need to see how two branches have evolved so that I can work out the intent of changes (e.g., if they're mostly just a reindent then I don't need to be careful about keeping them as I can just apply things to the other side). It doesn't help in the most difficult cases, but it makes a lot more cases not be the most difficult ones...

    Not sure what you mean here in relation to CLI vs GUI version control. All that can be done in your IDE (or whatever tool) separately from issuing the commands to the version control system.


  • Discourse touched me in a no-no place

    @boomzilla I'm too hot to explain it properly right now. It's about selecting which commits to compare when those commits have non-trivial relations to each other, and where you're wanting to know something like "what has happened to these two branches since the last time I synchronized them?". It's also not even a simple three-way diff; they probably will still differ from each other after the last synchronization, but that's background to the current consideration.

    If you show the tree of commits in a history view, you can just pick which things to diff. Easy. Picking things like that is what a GUI is good at. (It'll resolve those into commit IDs when asking the VCS for the differences, but I sure don't go remembering those.)


  • ♿ (Parody)

    @dkf ah, I do have a program that shows me stuff like that in a GUI.



  • @dkf said in WTF Bites:

    @boomzilla said in WTF Bites:

    I have avoided using any graphical source control programs for years

    Most things aren't much harder on the command line, except for determining commits to do a diff between when those aren't branch tips (and aren't some shorthand that you remember); point-and-gruntclick is absolutely designed for selection.

    If you can't get the commit from merge-base, blame or pickaxe, it's what gitk is for. And while the ui produced by tcl/tk is ugly as butt (:tro-pop:), it gets the job done better that what is available in most IDEs. If nothing else then because you still want to start with the relevant parts of history only and that means giving it a commit range and/or path filter on command-line.

    Sometimes when working out how to handle a merge, I need to see how two branches have evolved so that I can work out the intent of changes (e.g., if they're mostly just a reindent then I don't need to be careful about keeping them as I can just apply things to the other side). It doesn't help in the most difficult cases, but it makes a lot more cases not be the most difficult ones...

    I found that straying from strict mechanical following of the 3-way merge algorithm is a sure way to mess up. But if you need to look what the change was, or want to merge in steps and need to pick which ones, then gitk is sure the right tool.


  • BINNED

    @LaoC said in WTF Bites:

    I'm sure I've ranted about HP's infrastructure here, where looking up anything in their documentation will at some point lead to an URL like http://w23iz587.boston.eastcoast.hp.com/extremely/fucking/long/path/u8293978trfughjdg/incompre ensible/shit/?blah=pdf that doesn't work because the machine it refers to died and redundancy, load balancers, and webapps are for wimps.

    Sorry this is late, but think I found the problem. GuyWhoKilledBear's Law is a harsh mistress.


  • Considered Harmful

    @GuyWhoKilledBear hp occurs even earlier in the domain name, tho. I recommend early-twentieth-century sources for further Boston-related prejudices. Of particular interest is The Boston Dictionary, a wonderfully entertaining and wildly inaccurate volume detailing how to know the names for things the people of Boston would do, mostly to, occasionally for, you, if you ever went there.



  • Google's back to begging Apple to support RCS.

    I'd say that :trwtf: is their cohesive messaging strategy, but you have to have one first.



  • @Bulb said in WTF Bites:

    If you can't get the commit from merge-base, blame or pickaxe, it's what gitk is for. And while the ui produced by tcl/tk is ugly as butt (:tro-pop:), it gets the job done better that what is available in most IDEs. If nothing else then because you still want to start with the relevant parts of history only and that means giving it a commit range and/or path filter on command-line.

    tig is, IMHO, much better



  • @Kamil-Podlesak tig isn't part of the standard git install. But thanks for the tip, it might come handy in WSL where I still didn't get around to setting up the X server.


  • BINNED

    @Parody “it’s not about the color of bubbles” they say, after everyone mocked them last time they pulled the full-retard “green bubbles are discrimination” thing.
    Now it’s that “iPhone users get bad texting experience”. And yet it’s, apparently, not the iPhone users texting with android users that do the complaining, but the android users.

    And more great arguments:

    What does that say?

    iPhones make texts with Android phones difficult to read, by using white text on a bright green background.

    :laugh-harder:
    Wait, didn’t you say it’s not about the color?

    Also, suggested articles:

    Why iMessage is actually a failure

    Why Apple’s iMessage is winning: Teens dread the green text bubble


  • ♿ (Parody)

    @topspin said in WTF Bites:

    And yet it’s, apparently, not the iPhone users texting with android users that do the complaining, but the android users.

    Is it? I only notice I've been texting with iPhone users when I get those asinine, "So and so liked your text" responses. Otherwise they all look the same.


  • BINNED

    @boomzilla it’s android.com doing the complaining here. Nobody else gives a shit.



  • @boomzilla said in WTF Bites:

    I get those asinine, "So and so liked your text" responses.

    I never get those. I guess nobody likes my texts. 😿



  • @HardwareGeek said in WTF Bites:

    @boomzilla said in WTF Bites:
    I never get those. I guess nobody likes my texts. 😿

    You need to give @Tsaukpaetra your phone number.


  • Java Dev

    Found in a compliance course:

    Q: Why is foo a bad idea?
    (select all that apply)
    [ ] Reason 1
    [ ] Reason 2
    [ ] Reason 3
    [ ] Reason 4
    [ ] All of the above
    [ ] None of the above

    All 4 reasons apply. The expacted answer was 'All of the above' only.



  • @PleegWat Now, a clever UI designer would have made "All of the above" a toggle for Reason #1 through #4 (and vice versa) but :kneeling_warthog: I guess.


Log in to reply