tcl json output to channel and map/loop items?

Im trying to get output from a websocket to eggdrop tcl script.. the websocket part is working and i get output like this: { “action”: “insert”, “row”: { “id”: 7814727, “name”: “Doom_Squad-Countdown_To_Doomsday_II-WEB-2016-ESG”, “team”: “ESG”, “cat”: “MP3”, “genre”: “”, “url”: “”, “size”: 0, “files”: 0, “preAt”: 1493884429, “nuke”: null } } How can i loop or…

Details

Remove duplicates from list of dictionary using specific keys

So I have a list of dictionary as follow: a = [{‘author’:’John’,’country’:’us’,’gender’:’male’}, {‘author’:’Sean’,’country’:’uk’,’gender’:’male’}, {‘author’:’Sean’,’country’:’russia’,’gender’:’male’}, {‘author’:’Mike’,’country’:’japan’,’gender’:’male’}] So now, only based on the author I want to remove duplicates from this list of dictionary irrespective of other key values. Output should be as follow with entry no. 3 removed. (author is repeated) a = [{‘author’:’John’,’country’:’us’,’gender’:’male’}, {‘author’:’Sean’,’country’:’uk’,’gender’:’male’}, {‘author’:’Mike’,’country’:’japan’,’gender’:’male’}]…

Details

EF Core “InvalidOperationException: Include has been used on non entity queryable” for navigation property even after explicit include

I’ve created a sample project which uses the following packages – GraphQL GraphQL.EntityFramework System.Linq.Dynamic.Core The idea here is to translate the selection done in the GraphQL query and pass that onto EntityFramework in order not to over-fetch columns that are not asked for in the query. For this I’m passing the Select expression in the…

Details

Regex for strings

I have a bunch of strings and need to return substrings from them: const inputs = [ ‘Test: Text – N GTTTsds – Exists’, ‘Test: Text something here – Exist’, ‘Tictactoe foo baz – bar – Exists’, ‘Something still here’, ‘Joe Doe’ ]; const output = []; inputs.forEach(input => { const resp = /(?:Test: )?(.+)(-…

Details

Problem with SSL certificate on Android 4.4: Trust anchor for certification path not found

I do know why but my app on Android 4.4 (HTC 626) couldn’t connect to my site. The problem occurs and from the app using URLConnection and OkHttpClient and when I try to open a site in Chrome (“Connection is not private”). javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. Certificate issued by Sectigo.…

Details