[-] Threen@aussie.zone 1 points 3 months ago

Update: The original dev does not remember exactly. However they have said that clientId was originally a VARCHAR, so this may have been checking for both '0' or ''

So an over-engineered workaround to a bad datatype perhaps?

[-] Threen@aussie.zone 3 points 3 months ago

I forgot to mention this is in SQL Server, so SIN operates on radians. So I THINK this can only ever cast to a 0 when clientId is also 0

It certainly doesn't for any of the 100,000 existing rows

[-] Threen@aussie.zone 4 points 3 months ago

The client table has around 100,000 rows each with a unique clientId, none of which are returned from the CAST / ABS / SIN

I think you are right and this is a 'fix' for something lost to time. I am going to talk to the original dev tomorrow to see if they remember what it was for

23
Guess the intent (aussie.zone)
submitted 3 months ago* (last edited 3 months ago) by Threen@aussie.zone to c/sql@programming.dev

I am one of the developers on a very small team and have just found the following query

I would love to hear your ideas for what you think was being attempted here!

SELECT ... FROM client WHERE CAST(ABS(SIN(clientId)) AS BIT) = 0

[-] Threen@aussie.zone 4 points 3 months ago

Thank you so much, I'll check it out!

[-] Threen@aussie.zone 4 points 3 months ago

Absolutely, it's a great read. Could you link the video you watched?

59

I hope some people here enjoy reading these as much as I have

If you know of anything similar, I would love to hear them

35
submitted 3 months ago by Threen@aussie.zone to c/technology@beehaw.org
[-] Threen@aussie.zone 3 points 8 months ago* (last edited 8 months ago)
  1. Soft Skills Engineering - Software engineering advice podcast
  2. If Books Could Kill - Criticising reviews of bestselling books
  3. CoRecursive - Stories about software
[-] Threen@aussie.zone 1 points 1 year ago

Let me make sure I understand first

  1. You are attempting to passwordlessly SSH from Window to a group of servers using Powershell
  2. Something stopped working and you regenerated your Windows SSH keys

i added my private key, and tried to connect

This concerns me, as the server should have the user's public key, not private. Private should be exactly that, private

Is the Powershell user / SSH key the same as the Putty user / SSH key that still works?

When you run the Powershell script, does it give any error messages?

I know with Linux -> Linux SSH you can log verbosely with -v, is that something you can do under Powershell?

Is password auth enabled? Does that still work from Putty, and can you do the same from Powershell?

[-] Threen@aussie.zone 1 points 1 year ago

Also working for me. Lot of 1 stars!

3
Programming Music (somafm.com)

I am a big fan of listening to Drone Zone on SomeFM while programming

Hit me with your favourite streams, albums or artists

1

I fell in love with this album many years ago, I hope someone here will enjoy it too

[-] Threen@aussie.zone 12 points 1 year ago

Not specific to AI, some of the people I work with make me prone to drinking as well

[-] Threen@aussie.zone 1 points 1 year ago

The trick I use is to double-search for it

On your instance, search for the full URL of the original community, then search again for just the community name

So for you:

It is not ideal, but it has worked on my instance every time

[-] Threen@aussie.zone 1 points 1 year ago* (last edited 1 year ago)

So far really good! It has some quirks, and there are some bugs and some teething issue with the large influx of people (specifically on lemmy.ml)

It is a mind-set change working with a different system and the whole instance idea is still very new for me

As an Australian, it was very quiet last night (10ish hours ago), but that will improve as more people join

3
0
view more: next ›

Threen

joined 1 year ago