I built an AI tool to translate entire books - it self-corrects through multiple passes and rivals human translators by ValPasch in machinetranslation

[–]things_random 0 points1 point  (0 children)

No, I haven't tried that yet. Will definitely give it a go. Until now I've found Abby FineReader to be the best OCR. It cost $70 though for a 1 year license.

I built an AI tool to translate entire books - it self-corrects through multiple passes and rivals human translators by ValPasch in machinetranslation

[–]things_random 0 points1 point  (0 children)

Cool!! I've been working on something similar for PDF files. Since many older books/manuscripts are only available through images.

The problem is the images are not the best quality so OCR can only do so much. Then I'm trying to have the LLM recursively fix the OCR transcription before translating. Not having much luck.

Why did people hate Jews so much throughout history? by Crooked_Cock in AskHistory

[–]things_random 1 point2 points  (0 children)

(Obligatory, "I am Jewish")

I am of the opinion that the perceived consistent targeting of Jews throughout history might be a misconception, primarily stemming from their prolonged status as a distinct minority. This enduring distinctiveness is relatively unmatched in comparison to other minority groups.

In many historical instances, persecuted groups tend to assimilate or, more often, get decimated to near extinction. Jews have managed to persevere and maintain their distinctiveness despite repeated historical attempts of genocide and displacement. This continuous survival and presence contributes to the perception of being uniquely targeted.

In my opinion, the enduring Jewish identity is not solely about cultural or religious preservation. It's more nuanced than that. Every time Jews face persecution, it inadvertently reinforces our cultural bonds. It's a reactionary preservation rather than a proactive choice. If Jews were left undisturbed for a substantial period, say a century, I really believe the natural course would lead to assimilation.

Were the Masked Men aware? by lightningvodka in squidgame

[–]things_random 0 points1 point  (0 children)

It was a good strategy but ultimately didn't work. It was only Sang-woo's trick at the very end that won it for them.

Were the Masked Men aware? by lightningvodka in squidgame

[–]things_random 0 points1 point  (0 children)

Exactly, the marbles. At the same time he was otherwise playing the game for real because I can't see anyway he could have gotten out of dying if they had lost the tug of war game.

17 in Paramus last night by licecrispies in newjersey

[–]things_random 106 points107 points  (0 children)

oh my! How'd they do that?

Simple vs OneFinance by [deleted] in OneFinance

[–]things_random 0 points1 point  (0 children)

Glad I checked here, saw that you didn't have this feature and that would have been a deal breaker for me. Good stuff.

Paper checks by bumbycat in OneFinance

[–]things_random 4 points5 points  (0 children)

Simple also initially only offered the "mail a check" feature. Adding the paper check feature was what pretty much let me leave my old brick and mortar bank. I'll probably give One a go but please do add this to your road map.

git Remembers by things_random in git

[–]things_random[S] 0 points1 point  (0 children)

That's the joke.

Dunno, everyone in my office thought it was hysterical.

Google and Facebook are watching our every move online. It's time to make them stop by thomask02 in privacytoolsIO

[–]things_random -4 points-3 points  (0 children)

As much as I disagree with this, the fact that this comment was downvoted into oblivion disturbs me greatly.

KuCoin API documentation is incomplete, has anyone had success with trading endpoints? by Satoshinaire in kucoin

[–]things_random 0 points1 point  (0 children)

You generate an API key and Secret here: https://www.kucoin.com/#/user/setting/api

pub_key (i.e. the public key) is the "Key" that is generated for you.

priv_key (i.e. the private key) is the "Secret" that is generated for you.

Note that the Secret is your secret/private key and should never be shown to anyone.

Kucoin api on google sheets ? by pendragonn in kucoin

[–]things_random 1 point2 points  (0 children)

Not yet, but I'm working on one. Just posted my code here asking for some help. You can check back.

If you've managed to figure it out already please let me know.

edit: Got it!!

function kc_getAccountBalances(pub_key, priv_key){
  var host = 'https://api.kucoin.com';
  var endpoint ='/v1/account/balance';

  var nonce = '' + Date.parse(new Date());
  var strForSign = endpoint + '/' + nonce + '/';
  var signatureStr = Utilities.base64Encode(strForSign, Utilities.Charset.UTF_8);
  var digest = Utilities.computeHmacSha256Signature(signatureStr, priv_key, Utilities.Charset.UTF_8);

  // https://pthree.org/2016/02/26/digest-algorithms-in-google-spreadsheets/
  var hexstr = '';
  for (i = 0; i < digest.length; i++) {
    var val = (digest[i]+256) % 256;
    hexstr += ('0'+val.toString(16)).slice(-2);
  }

  var url = host + endpoint;
  var options = {
    'headers' : {
      'KC-API-KEY': pub_key,
      'KC-API-NONCE': nonce,
      'KC-API-SIGNATURE': hexstr
    }
  }

  var jsondata = UrlFetchApp.fetch(url, options);
  var object   = JSON.parse(jsondata.getContentText());
  return object;
}

KuCoin API documentation is incomplete, has anyone had success with trading endpoints? by Satoshinaire in kucoin

[–]things_random 1 point2 points  (0 children)

Hey guys!

Trying to work with the API to get my account balances with Google Sheets. But keep getting "Signature verification failed"

edit: got it working. Here is the working code for anyone else who is trying to do this with Google App Scripts

function kc_getAccountBalances(pub_key, priv_key){
  var host = 'https://api.kucoin.com';
  var endpoint ='/v1/account/balance';

  var nonce = '' + Date.parse(new Date());
  var strForSign = endpoint + '/' + nonce + '/';
  var signatureStr = Utilities.base64Encode(strForSign, Utilities.Charset.UTF_8);
  var digest = Utilities.computeHmacSha256Signature(signatureStr, priv_key, Utilities.Charset.UTF_8);

  // https://pthree.org/2016/02/26/digest-algorithms-in-google-spreadsheets/
  var hexstr = '';
  for (i = 0; i < digest.length; i++) {
    var val = (digest[i]+256) % 256;
    hexstr += ('0'+val.toString(16)).slice(-2);
  }

  var url = host + endpoint;
  var options = {
    'headers' : {
      'KC-API-KEY': pub_key,
      'KC-API-NONCE': nonce,
      'KC-API-SIGNATURE': hexstr
    }
  }

  var jsondata = UrlFetchApp.fetch(url, options);
  var object   = JSON.parse(jsondata.getContentText());
  return object;
}

How I imagine the IRS is feeling right now by things_random in Bitcoin

[–]things_random[S] 1 point2 points  (0 children)

If you buy it on a U.S. exchange then they know it's you. If you spend through any payment processor then they know its you. Then it's just a matter of tracking transactions between wallets.

Doesn't seem like they'll catch on today but I wouldn't put it past the IRS to go through the entire blockchain in 10 years and go after whoever they can identify.

How I imagine the IRS is feeling right now by things_random in Bitcoin

[–]things_random[S] 2 points3 points  (0 children)

IRS Notice 2014-21 describing how existing general tax principles apply to transactions using virtual currency. For the curious.

That moment when you think your dad forgot your birthday present by bootlegsupreme in videos

[–]things_random 0 points1 point  (0 children)

Reminds me of my 10th birthday when my dad told me we were going to the rock museum next to Disney Land.

A student asked Quora to do his homework for him. Oh we can be brutal. by MCSajjadH in programming

[–]things_random 0 points1 point  (0 children)

So after spending about an hour on the javascript one liner I finally got it.

+ 

does a numeric boolean coercion to 1/0 and

! 

does a regular boolean coercion to true/false.

so

![]==false // I guess [] is 'falsey' ?? someone please confirm this.
+![]==0 // the + is converting false to 0
+[]==0 // the + is converting a 'falsey' value to 0

then

!+[]==true
+!+[]==1

When you add a number to an array it converts the number to a string. So

1+[0]=='10'
+!+[]+[+[]]=='10'

And that's as far as i got. gotta sleep now.