Programming

Untuck has a programming theard?

Why am I not informed of these things?

1 Like

I did finally get a kudos today. I had a very complicated system/demo I had set up on a few servers and I had to walkthrough a remote team on how to install it. I guess no one from my company had ever successfully walked someone through the installation before. It’s extraordinarily complicated. I didnt know it had never been done but they recognized that in a meeting.

Small thing but jeez just drop those every once in a while and I feel way happier. I always try to give my team kudos when it is earned. It goes a long way IMO

I was wondering why people seem to prefer posting in the 22 one when most of us are here already, sans adios. I like his tech opinions/thoughts/knowledge domain a lot because it is a lot closer to mine. But as a poster in other topics yeeesh. No thanks.

For the first time ever I just had a bug that was mildly annoying (about 20 minutes to find) that happened because the language I’m using (javascript/react) is not strongly typed.

Good you’re on your way to the light side

image

Don’t do it.

2 Likes

At least you don’t have to spin up a Docker container, create a Kubernetes cluster and deploy it like I did for the Go hello…

I’m half-drunk and only kinda skimmed your post, but have you looked at this thread?

This is where I found the answer for a similar problem with the sidebar, and it involves using the plugin API rather than plain javascript.

<script type="text/discourse-plugin" version="0.8">
    api.onPageChange(() =>{
        doStuff();
    });
</script>
1 Like

Intel is one of the biggest clusterfucks of a large company I have had to deal with. It’s just unreal. Obviously cant get into too many details but Ive worked closely with Nvidia and Intel and nvidia is miles and away such an obviously better run company.

I dont think I could ever work for one of these mega corps. It looks and sounds miserable.

Hi,

Really late reply, so no clue if it’s still relevant. Two thoughts:

  1. you shouldn’t bother users with technical warnings/errors. They should only get understandable functional messages. If you get errors that you can’t translate to a functional message, you let the user know what action they can take (eg try again later, contact support, etc).

  2. the database errors are generally very stable, so you can rely on them. Still, I would advise against using the warnings as your primary method of checking a constraint. It’s better to query for it directly, before you initiate the database transaction. Often this is also more user friendly and allows you to give feedback directly after receiving the input. During exception-handling of the transaction itself, you can translate these kind of warnings back to user understandable messages. Even if it’s only a general purpose “oops something went wrong, please try again” kind of message.

What are you getting in the console when it fails?

Have you tried doing this part from that link?

If content is dynamically inserted into a page (such as lazy-loading content or using a pushState technique to navigate between articles) it’s necessary to parse new buttons and widgets using the twttr.widgets.load() function.

I didn’t see it in the snippet.

If it matters, for me on chrome it seems to work every time after 1 refresh (maybe 2 like you said, could it just be a caching thing?), but when it works I’m getting different messages in the console than yours, something about cookies:

edit: nevermind, I didn’t have verbose on, yeah seeing the same thing as you

Do you have this on github somewheres? I don’t know how a discourse project is structured, but it just seems like you need to call the twttr.widget.load() method where the sidebar is marked up (based on the SO answer)

distros?

Centos7

Is that because of personal preference or more because of enterprise security at work? I’ve been rolling U LTS for almost a decade now and I feel locked in at this point. I have Kali on a stick if I get bored but that’s less and less these days as I’m older and set in my ways and unwilling to learn new things.

For work things we target CentOS, and my understanding is it is the most stable/secure distro. I could be way off there. I like its package manager a lot as well.

Ok, if this is the general tech thread, can someone explain to me why Twitter auto-refreshes, and how I can stop it? I’m just sitting here like a normal person, reading a particular tweet and boom the entire list of tweets auto-refreshes and the one I was reading gets bounced down the screen. I’ve been enraged by this forever, but I’m just now taking the time to complain about it formally. I’d like to speak to someone’s manager.

PC

You can probably adblock the request to autorefresh (poll for new data)