Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)KA
Posts
9
Comments
29
Joined
1 yr. ago
World News @lemmy.ml
kashara @lemmy.zip

NY times has confirmed what Putin has stated multiple times

in regards to the cause of SMO

Cryptocurrency @lemmy.ml
kashara @lemmy.zip

How to swap SOL <-> token / vise versa but on-chain (in a smart contract)? On Raydium or SolDex

How to swap a token for SOL or vise versa** from within** a Solana smart contract? That is, on-chain. How to interract with a router of either Raydium or SolDex? I haven't found any example of this.

  • If US sends weapons to Taiwan pretending that it's for democrasy and freedoms of the island, China now must being to send weapons to the people of Texas for the same reason. People of Texas excerise nothing other than their constituional freedom of speach and self-determination.

    Look at how they're sick of Biden's bloody regime, his nature of a dictator, that they want to break down from the US. Let's help the people of Texas, let's protect democrasy in Texas!

  • Programming @programming.dev
    kashara @lemmy.zip

    A library in a compiled language that calculate MFCC of an audio file?

    In Python one would write:

     undefined
        
    file_name = 'fdsafdsafds.wav'
    audio, sample_rate = librosa.load(file_name, res_type='kaiser_fast') 
    mfccs = librosa.feature.mfcc(y=audio, sr=sample_rate, n_mfcc=40)
    
    
      

    Is there such a library or the one with this functionality in other, compiled languages? in C++, Go, Rust, .NET.... I haven't found any

  • What a terrible and dangerous man the Putin is. He really wants Russia to win the war. The Putin wants Russia to become stronger and better for the russians. Man, can you imagine this? What a strange president.

  • British don't say "but hey". Australians don't. New Zelanders don't. South African don't. They could but they don't. Therefore, "but hey" is fucking, broken american english which they instead call colloquial.

    But hey! It's ok to speak fuckingly broken english.

  • Browsers @lemmy.ml
    kashara @lemmy.zip

    How to change the title and colour of a newly created a TabGroup in an Addon?

    I'm creating a TagGroup and trying to update it:

     undefined
            //background.js
    
        chrome.tabs.group({ tabIds: tabIds}, function (groupId) {
    
          //1
          // chrome.tabGroups.update(groupId, { title: groupTitle });
    
          //2
          // chrome.tabs.update(groupId, { collapsed: true, title: groupTitle });
    
           //3
           chrome.tabGroups.update(groupId, { title: groupTitle, color: "blue", collapsed: true });
    
          //...
    
    
      

    For some reason, none of these functions will set title of a TagGroup, nor collapse the tabs into one.

    How to do it then?

    Networking @programming.dev
    kashara @lemmy.zip

    A custom WireGuard VPN service or client that switches traffic via different servers dynamically

    I want to create a simple web service that'll manage WireGuard VPN servers of mine in defferent locations. It'll work like this: whenever I try to access a site in from certain, pre-defined list, a web service (a) or a local customly-modified VPN client (b) will switch me to a VPN server in a certain location. When I go back to other, normal website, it'll switch me back to the last VPN server.

    How would I go about this? Will it be implemented on the side of the server (a) - web service? Or on the client one (b) -- by a custom VPN client which I'd have to modify to incorporate this functionality?

    Operating System Development @programming.dev
    kashara @lemmy.zip

    Can eBPF be used to modify the list of WiFi networks?

    Can eBPF be used to modify the list of WiFi networks visible to the user via NetworkManager? Hide some of them, add or modify info of the others....

    Or even better, modify it on yet the lower level such that any application that polls the list via system API would receive a modified list.

    The is about eBPF only

    News @lemmy.world
    kashara @lemmy.zip

    But this won't compare to Europe which trolls itself by buying russian gas and oil still, and burning more of coal than ever.

    World News @beehaw.org
    kashara @lemmy.zip

    What bad news? Why? Hasn't UA been winning all along, for 1.5 years?

    World News @lemmy.world
    kashara @lemmy.zip