r/StackoverReddit • • Jul 27 '24

Question Can I use Azure data factory to move binary data of file (which is in On premises SQL Sever) to Azure blob as a file?

1 Upvotes

Please suggest other possibilities.


r/StackoverReddit • • Jul 25 '24

C writing keyboard and mouse locker with Golang or C

1 Upvotes

Hey, I want to write a simple application that runs in Windows, listens for a special shortcut key (for example, ctrl+shift+L) to lock the keyboard and mouse (so no one can click with the mouse or type with the keyboard), and waits to receive a special shortcut key to unlock the keyboard and mouse (like ctrl+shift+U). I wrote this app, but the problem is that it is completely blocked and cannot be unlocked. Could you please help me?

With C:

#include <windows.h>
#include <stdio.h>

#define LOCK_HOTKEY_ID 1
#define UNLOCK_HOTKEY_ID 2

BOOL locked = FALSE;
HHOOK hKeyboardHook = NULL;
HHOOK hMouseHook = NULL;
HWND mainWindow = NULL;

// Function declarations
void DisableTaskManager();
void EnableTaskManager();
void UnlockSystem();

void UnlockSystem() {
    if (locked) {
        printf("Unlocking keyboard and mouse\n");
        locked = FALSE;
        EnableTaskManager();
        if (hKeyboardHook) {
            UnhookWindowsHookEx(hKeyboardHook);
            hKeyboardHook = NULL;
        }
        if (hMouseHook) {
            UnhookWindowsHookEx(hMouseHook);
            hMouseHook = NULL;
        }
    }
}

//LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
//{
//    if (nCode == HC_ACTION && wParam == WM_KEYDOWN)
//    {
//        KBDLLHOOKSTRUCT *pKeyBoard = (KBDLLHOOKSTRUCT *)lParam;
//        BOOL ctrlPressed = (GetAsyncKeyState(VK_CONTROL) & 0x8000) != 0;
//        BOOL shiftPressed = (GetAsyncKeyState(VK_SHIFT) & 0x8000) != 0;
//
//        if (ctrlPressed && shiftPressed && pKeyBoard->vkCode == 'U')
//        {
//            UnlockSystem();
//            return 1; // Prevent further processing
//        }
//        if (locked)
//        {
//            return 1; // Discard all other keys
//        }
//    }
//    return CallNextHookEx(hKeyboardHook, nCode, wParam, lParam);
//}

LRESULT CALLBACK LowLevelMouseProc(int nCode, WPARAM wParam, LPARAM lParam)
{
    if (locked)
    {
        return 1; // Discard all mouse events
    }
    return CallNextHookEx(hMouseHook, nCode, wParam, lParam);
}
LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam) {
    if (nCode == HC_ACTION && (wParam == WM_KEYDOWN || wParam == WM_SYSKEYDOWN)) {
        KBDLLHOOKSTRUCT *pKeyBoard = (KBDLLHOOKSTRUCT *)lParam;
        BOOL ctrlPressed = (GetAsyncKeyState(VK_CONTROL) & 0x8000) != 0;
        BOOL shiftPressed = (GetAsyncKeyState(VK_SHIFT) & 0x8000) != 0;

        // Directly check for the unlock shortcut here
        if (ctrlPressed && shiftPressed && pKeyBoard->vkCode == 'U') {
            UnlockSystem();
            return 1; // Prevent further processing of this key press
        }

        if (locked) {
            return 1; // Block all other keys when locked
        }
    }
    return CallNextHookEx(NULL, nCode, wParam, lParam);
}

// Function to disable Task Manager
void DisableTaskManager() {
    HKEY hKey;
    RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", 0, KEY_ALL_ACCESS, &hKey);
    DWORD value = 1;
    RegSetValueEx(hKey, "DisableTaskMgr", 0, REG_DWORD, (const BYTE*)&value, sizeof(value));
    RegCloseKey(hKey);
}

// Function to enable Task Manager
void EnableTaskManager() {
    HKEY hKey;
    RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", 0, KEY_ALL_ACCESS, &hKey);
    DWORD value = 0;
    RegSetValueEx(hKey, "DisableTaskMgr", 0, REG_DWORD, (const BYTE*)&value, sizeof(value));
    RegCloseKey(hKey);
}

LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
    switch (uMsg)
    {
        case WM_HOTKEY:
            if (wParam == LOCK_HOTKEY_ID && !locked)
            {
                printf("Locking keyboard and mouse\n");
                DisableTaskManager();
                locked = TRUE;
                hKeyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, NULL, 0);
                hMouseHook = SetWindowsHookEx(WH_MOUSE_LL, LowLevelMouseProc, NULL, 0);
                if (!hKeyboardHook || !hMouseHook)
                {
                    printf("Failed to set hooks: %d\n", GetLastError());
                }
            }
            else if (wParam == UNLOCK_HOTKEY_ID)
            {
                UnlockSystem();
            }
            break;
        case WM_DESTROY:
            PostQuitMessage(0);
            return 0;
    }
    return DefWindowProc(hwnd, uMsg, wParam, lParam);
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
    // Create a window to receive messages
    WNDCLASS wc = {0};
    wc.lpfnWndProc = WindowProc;
    wc.hInstance = hInstance;
    wc.lpszClassName = "KeyboardMouseLockerClass";
    RegisterClass(&wc);

    HWND hwnd = CreateWindowEx(
        0,
        "KeyboardMouseLockerClass",
        "Keyboard and Mouse Locker",
        WS_OVERLAPPEDWINDOW,
        CW_USEDEFAULT, CW_USEDEFAULT, 400, 300,
        NULL,
        NULL,
        hInstance,
        NULL
    );

    if (hwnd == NULL)
    {
        printf("Failed to create window\n");
        return 1;
    }

    mainWindow = hwnd;

    // Register hotkeys
    if (!RegisterHotKey(hwnd, LOCK_HOTKEY_ID, MOD_CONTROL | MOD_SHIFT, 'K'))
    {
        printf("Failed to register lock hotkey. Error: %d\n", GetLastError());
        printf("Failed to register lock hotkey\n");
        return 1;
    }
    if (!RegisterHotKey(hwnd, UNLOCK_HOTKEY_ID, MOD_CONTROL | MOD_SHIFT, 'P'))
    {
        printf("Failed to register unlock hotkey. Error: %d\n", GetLastError());
        printf("Failed to register unlock hotkey\n");
        return 1;
    }

    printf("Keyboard and Mouse Locker\n");
    printf("Press Ctrl+Shift+L to lock\n");
    printf("Press Ctrl+Shift+U to unlock\n");

    // Message loop
    MSG msg = {0};
    while (GetMessage(&msg, NULL, 0, 0))
    {
        TranslateMessage(&msg);
        DispatchMessage(&msg);
    }

    // Unregister hotkeys
    UnregisterHotKey(hwnd, LOCK_HOTKEY_ID);
    UnregisterHotKey(hwnd, UNLOCK_HOTKEY_ID);

    if (hKeyboardHook)
    {
        UnhookWindowsHookEx(hKeyboardHook);
    }
    if (hMouseHook)
    {
        UnhookWindowsHookEx(hMouseHook);
    }

    return 0;
}

With Golang:

package main

import (
    "fmt"
    "syscall"
    "time"

    "github.com/TheTitanrain/w32"
)

var (
    user32     = syscall.MustLoadDLL("user32.dll")
    blockinput = user32.MustFindProc("BlockInput")
)

type BOOL int32

func BoolToBOOL(value bool) BOOL {
    if value {
        return 1
    }

    return 0
}

func blockInput(fBlockIt bool) bool {
    ret, _, err := blockinput.Call(uintptr(BoolToBOOL(fBlockIt)))
    if err != nil {
        fmt.Println("BlockInput error:", err)
    }
    return ret != 0
}

func main() {
    fmt.Println("Enabling...")
    blockInput(true)
    fmt.Println("Enabled. Try typing or using the mouse. Press Ctrl+Shift+L to unlock.")

    for {
        ctrlPressed := w32.GetAsyncKeyState(w32.VK_CONTROL) & 0x8000 != 0
        shiftPressed := w32.GetAsyncKeyState(w32.VK_SHIFT) & 0x8000 != 0
        lPressed := w32.GetAsyncKeyState('L') & 0x8000 != 0

        if ctrlPressed && shiftPressed && lPressed {
            fmt.Println("Ctrl+Shift+L pressed. Exiting...")
            blockInput(false)
            break
        }

        time.Sleep(120 * time.Second)
        
    }
}

r/StackoverReddit • • Jul 18 '24

Javascript JavaScript api question

1 Upvotes

Can a GET request have more than one link? I’m using an api that pulls one item per link but I need multiple links from the api for a single function.

Ex.

Xhttp.open(“GET”, “url”, true);

Can I add multiple links to “open” and apply them to the function?

Function ex. Function form results(event) {

If { radioOptionOne.checked && .radioOptionTwo.checked == true) { Response = JSON.parse(xhttp.response); Document.getElementById(“”).innerHTML = response.Title; }

Xhttp.open(“GET”, “url”, true); Xhttp.setRequestHeader (‘api key’, ‘key’);

Xhttp.setRequestHeader (‘api host’, ‘api url’);

Any help would truly be appreciated.


r/StackoverReddit • • Jul 08 '24

Microsoft Possible bug in Google Chrome. Google Chrome incognito mode does have a memory. I didn't think this was possible. Previous login done via incognito mode. Credentials shouldn't be cached. When I typed the URL and pressed enter, I did not need to put in credentials.

1 Upvotes

r/StackoverReddit • • Jul 06 '24

Java Can't edit player's nametag with packets using Protocollib, getting an exception, need help.

1 Upvotes

Hello, I am trying to edit a player's nametag in Minecraft using packets, but I'm getting an exception when I do so. I've looked online and the only other person who seems to have my problem had 0 people respond to their post.

The code I have is this.

String NameJSON = JSONComponentSerializer.json().serialize(Component.text("Testing\nline2")
        .color(NamedTextColor.YELLOW));
PacketContainer TestPacket = GetProtocolManager().createPacket(PacketType.Play.Server.PLAYER_INFO);
ArrayList<PlayerInfoData> Data = new ArrayList<>();
Data.add(new PlayerInfoData(WrappedGameProfile.fromPlayer(GetPlayer()), GetPlayer().getPing(),
        EnumWrappers.NativeGameMode.fromBukkit(GetGameMode()),
        WrappedChatComponent.fromJson(NameJSON)));
TestPacket.getPlayerInfoAction().write(0, EnumWrappers.PlayerInfoAction.UPDATE_DISPLAY_NAME);
TestPacket.getPlayerInfoDataLists().write(0, Data);
GetProtocolManager().sendServerPacket(GetPlayer(), TestPacket);

PacketContainer TestPacket = GetProtocolManager().createPacket(PacketType.Play.Server.PLAYER_INFO);
ArrayList<PlayerInfoData> Data = new ArrayList<>();
Data.add(new PlayerInfoData(WrappedGameProfile.fromPlayer(GetPlayer()), GetPlayer().getPing(),
        EnumWrappers.NativeGameMode.fromBukkit(GetGameMode()),
        WrappedChatComponent.fromJson(NameJSON)));
TestPacket.getPlayerInfoAction().write(0, EnumWrappers.PlayerInfoAction.UPDATE_DISPLAY_NAME);
TestPacket.getPlayerInfoDataLists().write(0, Data);
GetProtocolManager().sendServerPacket(GetPlayer(), TestPacket);

The exception is (sorry for formatting)

(Field index 0 is out of bounds for length 0) Stack trace: ProtocolLib.jar//com.comphenix.protocol.reflect.FieldAccessException.fromFormat(FieldAccessException.java:49) ProtocolLib.jar//com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:318) BSripoff.jar//sus.keiger.bsripoff.game.entity.kit.KitInstance.<init>(KitInstance.java:108) BSripoff.jar//sus.keiger.bsripoff.game.entity.kit.sward.SwardKitInstance.<init>(SwardKitInstance.java:53) BSripoff.jar//sus.keiger.bsripoff.game.entity.kit.sward.SwardKit.CreateInstance(SwardKit.java:43) BSripoff.jar//sus.keiger.bsripoff.game.BasicGameInstance.SetPlayerToInGameState(BasicGameInstance.java:471) BSripoff.jar//sus.keiger.bsripoff.game.BasicGameInstance.AddPlayer(BasicGameInstance.java:660) BSripoff.jar//sus.keiger.bsripoff.command.GameCommand.JoinGame(GameCommand.java:249) BSripoff.jar//sus.keiger.plugincommon.command.CommandNode.ExecuteCommand(CommandNode.java:47) BSripoff.jar//sus.keiger.plugincommon.command.CommandNode.TryPassExecuteToNextNode(CommandNode.java:144) BSripoff.jar//sus.keiger.plugincommon.command.CommandNode.ExecuteCommand(CommandNode.java:43) BSripoff.jar//sus.keiger.plugincommon.command.CommandNode.TryPassExecuteToNextNode(CommandNode.java:144) BSripoff.jar//sus.keiger.plugincommon.command.CommandNode.ExecuteCommand(CommandNode.java:43) BSripoff.jar//sus.keiger.plugincommon.command.CommandNode.TryPassExecuteToNextNode(CommandNode.java:144) BSripoff.jar//sus.keiger.plugincommon.command.CommandNode.ExecuteCommand(CommandNode.java:43) BSripoff.jar//sus.keiger.plugincommon.command.ServerCommand.onCommand(ServerCommand.java:76) org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:91) com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30) net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:103) net.minecraft.commands.Commands.executeCommandInContext(Commands.java:456) net.minecraft.commands.Commands.performCommand(Commands.java:363) net.minecraft.commands.Commands.performCommand(Commands.java:350) net.minecraft.commands.Commands.performCommand(Commands.java:345) net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2282) net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$18(ServerGamePacketListenerImpl.java:2256) net.minecraft.server.TickTask.run(TickTask.java:18) net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1546) net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:195) net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1523) net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1446) net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1412) net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1273) net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:326) java.base/java.lang.Thread.run(Thread.java:1583)

I've tried switching up the player action to player action list, that creates a can't assign to private final field exception. Removing the player action write line also creates the same can't assign to private final field exception. I'm unsure where the problem is. I tried updating to the latest dev build but it made no difference. The exception points to the line

TestPacket.getPlayerInfoAction().write(0, EnumWrappers.PlayerInfoAction.UPDATE_DISPLAY_NAME);

Any help is appreciated.


r/StackoverReddit • • Jun 27 '24

Python How to code a more time efficient 3D rotation script?

Thumbnail self.learnpython
1 Upvotes

r/StackoverReddit • • Jun 23 '24

Python Python - Help to create Dynamic custom PDF Reports based on input results.

Thumbnail self.learnprogramming
1 Upvotes

r/StackoverReddit • • Jun 10 '24

Merit America

1 Upvotes

Any thoughts on merit America?


r/StackoverReddit • • Sep 25 '24

Python Which is the best ide for python

0 Upvotes

r/StackoverReddit • • Sep 08 '24

Question Python or web development

0 Upvotes

what do you guys recommend


r/StackoverReddit • • Sep 06 '24

Python Please recommend the best python course

0 Upvotes

r/StackoverReddit • • Jul 19 '24

Other Code Error while converting .py to .apk with buildozer

0 Upvotes

Hello there,

I was trying to convert my .py file to an .apk file and was getting into some errors. The code below is the code I ran before converting the file. I was doing this from Google Colab

!pip install buildozer

!pip install --upgrade Cython

!sudo apt-get install -y \
    python3-pip \
    build-essential \
    git \
    python3 \
    python3-dev \
    ffmpeg \
    libsdl2-dev \
    libsdl2-image-dev \
    libsdl2-mixer-dev \
    libsdl2-ttf-dev \
    libportmidi-dev \
    libswscale-dev \
    libavformat-dev \
    libavcodec-dev \
    zlib1g-dev

!sudo apt-get install -y \
    libgstreamer1.0 \
    gstreamer1.0-plugins-base \
    gstreamer1.0-plugins-good

!sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev libffi6

!sudo apt-get install libffi-dev
!apt-get update 
!sudo apt-get install libtool
!sudo apt-get install intltool
!sudo apt-get install gtkdoc
!sudo apt-get install gettext
!sudo apt-get install python3.10


!buildozer init

After I was done running these commands, I edited the buildozer.spec file.

So, now when I ran !buildozer -v android debug, this was the log below with the error at the bottom.

[INFO]:    Downloading freetype
[INFO]:    -> directory context /content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/freetype
[DEBUG]:   -> running basename https://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.gz
[DEBUG]:   freetype-2.10.1.tar.gz
[DEBUG]:   Downloading freetype from https://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.gz
[DEBUG]:   -> running rm -f .mark-freetype-2.10.1.tar.gz
[INFO]:    Downloading freetype from https://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.gz
Traceback (most recent call last):
  File "/usr/lib/python3.10/urllib/request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/usr/lib/python3.10/http/client.py", line 1283, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1329, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1278, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1038, in _send_output
    self.send(msg)
  File "/usr/lib/python3.10/http/client.py", line 976, in send
    self.connect()
  File "/usr/lib/python3.10/http/client.py", line 1448, in connect
    super().connect()
  File "/usr/lib/python3.10/http/client.py", line 942, in connect
    self.sock = self._create_connection(
  File "/usr/lib/python3.10/socket.py", line 845, in create_connection
    raise err
  File "/usr/lib/python3.10/socket.py", line 833, in create_connection
    sock.connect(sa)
OSError: [Errno 99] Cannot assign requested address

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1256, in <module>
    main()
  File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
    ToolchainCL()
  File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 685, in __init__
    getattr(self, command)(args)
  File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx,
  File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 482, in build_recipes
    recipe.download_if_necessary()
  File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 352, in download_if_necessary
    self.download()
  File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 402, in download
    self.download_file(self.versioned_url, filename)
  File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 206, in download_file
    urlretrieve(url, target, report_hook)
  File "/usr/lib/python3.10/urllib/request.py", line 241, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 519, in open
    response = self._open(req, data)
  File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/usr/lib/python3.10/urllib/request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 99] Cannot assign requested address>
Download failed: <urlopen error [Errno 99] Cannot assign requested address>; retrying in 1 second(s)...Download failed: <urlopen error [Errno 99] Cannot assign requested address>; retrying in 2 second(s)...Download failed: <urlopen error [Errno 99] Cannot assign requested address>; retrying in 4 second(s)...Download failed: <urlopen error [Errno 99] Cannot assign requested address>; retrying in 8 second(s)...# Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=myapp', '--bootstrap=sdl2', '--requirements=python3,kivy,kivymd,pillow', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
#     SHELL = '/bin/bash'
#     NV_LIBCUBLAS_VERSION = '12.2.5.6-1'
#     NVIDIA_VISIBLE_DEVICES = 'all'
#     COLAB_JUPYTER_TRANSPORT = 'ipc'
#     NV_NVML_DEV_VERSION = '12.2.140-1'
#     NV_CUDNN_PACKAGE_NAME = 'libcudnn8'
#     CGROUP_MEMORY_EVENTS = '/sys/fs/cgroup/memory.events /var/colab/cgroup/jupyter-children/memory.events'
#     NV_LIBNCCL_DEV_PACKAGE = 'libnccl-dev=2.19.3-1+cuda12.2'
#     NV_LIBNCCL_DEV_PACKAGE_VERSION = '2.19.3-1'
#     VM_GCE_METADATA_HOST = '169.254.169.253'
#     HOSTNAME = 'c1bd99cb2287'
#     LANGUAGE = 'en_US'
#     TBE_RUNTIME_ADDR = '172.28.0.1:8011'
#     COLAB_TPU_1VM = ''
#     GCE_METADATA_TIMEOUT = '3'
#     NVIDIA_REQUIRE_CUDA = ('cuda>=12.2 brand=tesla,driver>=470,driver<471 '
 'brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 '
 'brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 '
 'brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 '
 'brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 '
 'brand=titanrtx,driver>=470,driver<471 brand=tesla,driver>=525,driver<526 '
 'brand=unknown,driver>=525,driver<526 brand=nvidia,driver>=525,driver<526 '
 'brand=nvidiartx,driver>=525,driver<526 brand=geforce,driver>=525,driver<526 '
 'brand=geforcertx,driver>=525,driver<526 brand=quadro,driver>=525,driver<526 '
 'brand=quadrortx,driver>=525,driver<526 brand=titan,driver>=525,driver<526 '
 'brand=titanrtx,driver>=525,driver<526')
#     NV_LIBCUBLAS_DEV_PACKAGE = 'libcublas-dev-12-2=12.2.5.6-1'
#     NV_NVTX_VERSION = '12.2.140-1'
#     COLAB_JUPYTER_IP = '172.28.0.12'
#     NV_CUDA_CUDART_DEV_VERSION = '12.2.140-1'
#     NV_LIBCUSPARSE_VERSION = '12.1.2.141-1'
#     COLAB_LANGUAGE_SERVER_PROXY_ROOT_URL = 'http://172.28.0.1:8013/'
#     NV_LIBNPP_VERSION = '12.2.1.4-1'
#     NCCL_VERSION = '2.19.3-1'
#     KMP_LISTEN_PORT = '6000'
#     TF_FORCE_GPU_ALLOW_GROWTH = 'true'
#     ENV = '/root/.bashrc'
#     PWD = '/content'
#     COLAB_LANGUAGE_SERVER_PROXY_REQUEST_TIMEOUT = '30s'
#     TBE_EPHEM_CREDS_ADDR = '172.28.0.1:8009'
#     TBE_CREDS_ADDR = '172.28.0.1:8008'
#     NV_CUDNN_PACKAGE = 'libcudnn8=8.9.6.50-1+cuda12.2'
#     NVIDIA_DRIVER_CAPABILITIES = 'compute,utility'
#     COLAB_JUPYTER_TOKEN = ''
#     LAST_FORCED_REBUILD = '20240627'
#     NV_NVPROF_DEV_PACKAGE = 'cuda-nvprof-12-2=12.2.142-1'
#     NV_LIBNPP_PACKAGE = 'libnpp-12-2=12.2.1.4-1'
#     NV_LIBNCCL_DEV_PACKAGE_NAME = 'libnccl-dev'
#     TCLLIBPATH = '/usr/share/tcltk/tcllib1.20'
#     NV_LIBCUBLAS_DEV_VERSION = '12.2.5.6-1'
#     COLAB_KERNEL_MANAGER_PROXY_HOST = '172.28.0.12'
#     NVIDIA_PRODUCT_NAME = 'CUDA'
#     NV_LIBCUBLAS_DEV_PACKAGE_NAME = 'libcublas-dev-12-2'
#     USE_AUTH_EPHEM = '1'
#     NV_CUDA_CUDART_VERSION = '12.2.140-1'
#     COLAB_WARMUP_DEFAULTS = '1'
#     HOME = '/root'
#     LANG = 'en_US.UTF-8'
#     COLUMNS = '100'
#     CUDA_VERSION = '12.2.2'
#     CLOUDSDK_CONFIG = '/content/.config'
#     NV_LIBCUBLAS_PACKAGE = 'libcublas-12-2=12.2.5.6-1'
#     NV_CUDA_NSIGHT_COMPUTE_DEV_PACKAGE = 'cuda-nsight-compute-12-2=12.2.2-1'
#     COLAB_RELEASE_TAG = 'release-colab_20240717-060213_RC00'
#     PYDEVD_USE_FRAME_EVAL = 'NO'
#     KMP_TARGET_PORT = '9000'
#     CLICOLOR = '1'
#     KMP_EXTRA_ARGS = ('--logtostderr --listen_host=172.28.0.12 --target_host=172.28.0.12 '
 '--tunnel_background_save_url=https://colab.research.google.com/tun/m/cc48301118ce562b961b3c22d803539adc1e0c19/m-s-18r1r6d9ifck7 '
 '--tunnel_background_save_delay=10s '
 '--tunnel_periodic_background_save_frequency=30m0s '
 '--enable_output_coalescing=true --output_coalescing_required=true')
#     NV_LIBNPP_DEV_PACKAGE = 'libnpp-dev-12-2=12.2.1.4-1'
#     COLAB_LANGUAGE_SERVER_PROXY_LSP_DIRS = '/datalab/web/pyright/typeshed-fallback/stdlib,/usr/local/lib/python3.10/dist-packages'
#     NV_LIBCUBLAS_PACKAGE_NAME = 'libcublas-12-2'
#     COLAB_KERNEL_MANAGER_PROXY_PORT = '6000'
#     CLOUDSDK_PYTHON = 'python3'
#     NV_LIBNPP_DEV_VERSION = '12.2.1.4-1'
#     ENABLE_DIRECTORYPREFETCHER = '1'
#     NO_GCE_CHECK = 'False'
#     JPY_PARENT_PID = '90'
#     PYTHONPATH = '/env/python'
#     TERM = 'xterm-color'
#     NV_LIBCUSPARSE_DEV_VERSION = '12.1.2.141-1'
#     GIT_PAGER = 'cat'
#     LIBRARY_PATH = '/usr/local/cuda/lib64/stubs'
#     NV_CUDNN_VERSION = '8.9.6.50'
#     SHLVL = '0'
#     PAGER = 'cat'
#     COLAB_LANGUAGE_SERVER_PROXY = '/usr/colab/bin/language_service'
#     NV_CUDA_LIB_VERSION = '12.2.2-1'
#     NVARCH = 'x86_64'
#     NV_CUDNN_PACKAGE_DEV = 'libcudnn8-dev=8.9.6.50-1+cuda12.2'
#     NV_CUDA_COMPAT_PACKAGE = 'cuda-compat-12-2'
#     MPLBACKEND = 'module://ipykernel.pylab.backend_inline'
#     NV_LIBNCCL_PACKAGE = 'libnccl2=2.19.3-1+cuda12.2'
#     LD_LIBRARY_PATH = '/usr/local/nvidia/lib:/usr/local/nvidia/lib64'
#     COLAB_GPU = ''
#     GCS_READ_CACHE_BLOCK_SIZE_MB = '16'
#     NV_CUDA_NSIGHT_COMPUTE_VERSION = '12.2.2-1'
#     NV_NVPROF_VERSION = '12.2.142-1'
#     LC_ALL = 'en_US.UTF-8'
#     COLAB_FILE_HANDLER_ADDR = 'localhost:3453'
#     PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/opt/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools/node/bin:/tools/google-cloud-sdk/bin'
#     NV_LIBNCCL_PACKAGE_NAME = 'libnccl2'
#     COLAB_DEBUG_ADAPTER_MUX_PATH = '/usr/local/bin/dap_multiplexer'
#     NV_LIBNCCL_PACKAGE_VERSION = '2.19.3-1'
#     PYTHONWARNINGS = 'ignore:::pip._internal.cli.base_command'
#     DEBIAN_FRONTEND = 'noninteractive'
#     COLAB_BACKEND_VERSION = 'next'
#     COLAB_CUSTOMIZE_FOR_VM_TYPE = '1'
#     OLDPWD = '/'
#     _ = '/usr/local/bin/buildozer'
#     PACKAGES_PATH = '/root/.buildozer/android/packages'
#     ANDROIDSDK = '/root/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/root/.buildozer/android/platform/android-ndk-r25b'
#     ANDROIDAPI = '31'
#     ANDROIDMINAPI = '21'
# 
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

If anybody has a solution please let me know.

Thanks in advance,

No_Trick705


r/StackoverReddit • • Jun 21 '24

Question question

0 Upvotes

can anyone tell me what are the ways to earn as a web developers except full time job and freelanceing


r/StackoverReddit • • Sep 21 '24

Question how can I concentrate when I am coding

0 Upvotes

any tips


r/StackoverReddit • • Jul 21 '24

Question How to use --read-from-tcp-port in d8?

0 Upvotes

I'm trying to figure out how to connect to my TCP server from within d8.

V8's d8 has a commandline option --read-from-tcp-port=PORT. See https://github.com/v8/v8/blob/9b9d02b07c231de5046a87ac80d4bbe24a737097/src/d8/d8-posix.cc#L654-L745.

Here's some Python that uses adb in the code. https://github.com/v8/v8/blob/9b9d02b07c231de5046a87ac80d4bbe24a737097/tools/adb-d8.py#L7-L18.

Anybody have experience with using d8's --read-from-tcp-port=PORT from within d8 to connect to the TCP server?