github.com

When I submit the form twice, three times, etc. I get duplicated form field data. Here is the console output of the form data after every submissions. Also all the field values are always an array, even if the input field for that value is a text input field? Not sure if this is another issue or not. Here is my code. Only one JS file and one HTML file... ``` import fs from 'fs'; import http from 'http'; import { formidable as formidablePackage } from 'formidable'; const port = 8080; //Will create horizontal line that will fit the width of the terminal window const horizontalLine = '='.repeat(process.stdout.columns); const formidable = formidablePackage({ allowEmptyFiles: true, minFileSize: 0, }); http .createServer(async (request, response) => { if (request.method === 'POST') { let [formFieldData, formFileData] = await formidable.parse(request); console.log(formFieldData); } response.setHeader('Content-Type', 'text/html'); fs.createReadStream('form.html').pipe(response); }) .listen(port); ``` ``` <form method="post" enctype="multipart/form-data"> <input name="myText" /> <br /> <input type="checkbox" name="myCheckboxGroupA" /> <input type="checkbox" name="myCheckboxGroupA" /> <input type="checkbox" name="myCheckboxGroupA" /> <br /> <input type="file" name="myFileA" /> <br /> <input type="file" name="myFileB" multiple /> <br /> <input type="file" name="myFileC" multiple directory webkitdirectory /> <br /> <input type="submit" /> </form> ``` These are the console logs ``` $ node form.js { myText: [ 'hello world' ], myCheckboxGroupA: [ 'on' ] } { myText: [ 'hello world', 'hello world' ], myCheckboxGroupA: [ 'on', 'on' ] } { myText: [ 'hello world', 'hello world', 'hello world' ], myCheckboxGroupA: [ 'on', 'on', 'on' ] } { myText: [ 'hello world', 'hello world', 'hello world', 'hello world' ], myCheckboxGroupA: [ 'on', 'on', 'on', 'on' ] } ``` These are the console logs I expected ``` $ node form.js { myText: 'hello world' , myCheckboxGroupA: [ 'on' ] } { myText: 'hello world' , myCheckboxGroupA: [ 'on' ] } { myText: 'hello world' , myCheckboxGroupA: [ 'on' ] } { myText: 'hello world' , myCheckboxGroupA: [ 'on' ] } ```

3
0
github.com

I hope this project gets more contributors to help make it as good or better than Newpipe. Written in Dart using Flutter can allow it to be compiled for Android, iOS and desktop

132
43
Are CSGO workshop maps not compatible with CS2?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTR
    trymeout
    Now 100%

    Oh yeah sure let’s just have two games that are almost identical, split the efforts of the devs into maintaining them both and releasing consistent updates, split the efforts of the server administrators into maintaining them both, and detract from your concurrent player base from our new game to keep our old game on life support.

    Yall are some crybabies. CS:GO was alive for 10 years, CS2 has been out for 1. It took some time to re-work Dust 2 and add it back into the map pool. I miss agency, I miss cache, but those maps are being reworked and added in over time. It’s a long game scenario here. Give it time and enjoy the free to play game that they sunk a shitload of resources into dramatically improving, that they are going to maintain for at least another decade, just like the last game.

    Wow, you need chill out. Just asking a simple question.

    3
  • In CSGO you could change the difficulty setting for the bots. Can you adjust the difficulty setting for bots in CS2?

    1
    0

    Are CSGO workshop maps not compatible with CS2? Does this mean that the 200+ custom workshop maps I have collected over the years are now no longer playable? I cannot see any workshop maps in the game menu that I have subscribed and downloaded. I even tried to reinstall CS2 on my computer to see if that will fix the problem. I am running CS2 on Ubuntu (Linux)

    5
    9
    github.com

    Upvote the issue on Github if you want to see this feature added into VSCode.

    1
    1
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearVS
    Feature Upvote: Disable Mouse Toggle & Settings - To Help Users Use The Keyboard More To Increase Productivity
    github.com

    Upvote the issue on Github if you want to see this feature added into VSCode.

    0
    0

    I am trying to create a podman compose of NGINX and PHP:FPM. I was able to get NGINX to work on its own using the `docker.io./bitnami/nginx` image. I gotten close I believe to getting the PHP:FPM to work also but due to an issue with NGINX not cooperating with the PHP:FPM. In the logs of the NGINX container, I get this error every time I load *localhost:8080* in the browser... ``` 10.89.4.2 - - [24/Jul/2024:20:18:35 +0000] "GET / HTTP/1.1" 404 47 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0" "-" 2024/07/24 20:18:35 [error] 44#44: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 10.89.4.2, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://10.89.4.3:9000", host: "localhost:8080" ``` And when I load *localhost:8080* in the browser, it displays a blank page which says "File not found.". I am using podman 5.1.2 on Linux Mint 21.3. My goal is to simply NGINX and PHP to work, to be able to have a web server that can use PHP. Any advice would be most appreciated. * * * Directory structure ``` nginx-php/ compose.yml nginx.conf php.dockerfile php.ini www/ public/ ``` *compose.yml* ``` version: '3' networks: app-tier: driver: bridge services: nginx: image: docker.io/bitnami/nginx volumes: - ./nginx.conf:/opt/bitnami/nginx/conf/server_blocks/my_server_block.conf:ro - .:/app/ networks: - app-tier ports: - 8080:8080 php: build: context: . dockerfile: php.dockerfile volumes: - .:/app/ networks: - app-tier ``` *nginx.conf* ``` server { server_name localhost; listen 0.0.0.0:8080; root /app/www/public; index index.php index.html index.htm; autoindex on; location / { try_files $uri $uri/index.php; } location ~ \.php$ { fastcgi_pass php:9000; fastcgi_index index.php; include fastcgi.conf; } } ``` *php.dockerfile* (Will like to get debugging and databases to work later on...) ``` FROM docker.io/bitnami/php-fpm # Install xdebug for nicer error messages and debugging # RUN pecl install xdebug # RUN docker-php-ext-enable xdebug # Install mysqli # RUN docker-php-ext-install mysqli # RUN docker-php-ext-enable mysqli # Install PDO # RUN docker-php-ext-install pdo pdo_mysql ``` *php.ini* (Will like to get debugging and databases to work later on...) ``` [PHP] extension=mysqli extension=pdo_mysql ; xdebug settings for debugging zend_extension=xdebug xdebug.start_with_request = yes xdebug.client_host=xdebug://gateway ```

    2
    0

    I am trying to create a podman compose of NGINX and PHP:FPM. I was able to get NGINX to work on its own using the `docker.io./bitnami/nginx` image. I gotten close I believe to getting the PHP:FPM to work also but due to an issue with NGINX not cooperating with the PHP:FPM. In the logs of the NGINX container, I get this error every time I load *localhost:8080* in the browser... ``` 10.89.4.2 - - [24/Jul/2024:20:18:35 +0000] "GET / HTTP/1.1" 404 47 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0" "-" 2024/07/24 20:18:35 [error] 44#44: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 10.89.4.2, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://10.89.4.3:9000", host: "localhost:8080" ``` And when I load *localhost:8080* in the browser, it displays a blank page which says "File not found.". I am using podman 5.1.2 on Linux Mint 21.3. My goal is to simply NGINX and PHP to work, to be able to have a web server that can use PHP. Any advice would be most appreciated. * * * Directory structure ``` nginx-php/ compose.yml nginx.conf php.dockerfile php.ini www/ public/ ``` *compose.yml* ``` version: '3' networks: app-tier: driver: bridge services: nginx: image: docker.io/bitnami/nginx volumes: - ./nginx.conf:/opt/bitnami/nginx/conf/server_blocks/my_server_block.conf:ro - .:/app/ networks: - app-tier ports: - 8080:8080 php: build: context: . dockerfile: php.dockerfile volumes: - .:/app/ networks: - app-tier ``` *nginx.conf* ``` server { server_name localhost; listen 0.0.0.0:8080; root /app/www/public; index index.php index.html index.htm; autoindex on; location / { try_files $uri $uri/index.php; } location ~ \.php$ { fastcgi_pass php:9000; fastcgi_index index.php; include fastcgi.conf; } } ``` *php.dockerfile* (Will like to get debugging and databases to work later on...) ``` FROM docker.io/bitnami/php-fpm # Install xdebug for nicer error messages and debugging # RUN pecl install xdebug # RUN docker-php-ext-enable xdebug # Install mysqli # RUN docker-php-ext-install mysqli # RUN docker-php-ext-enable mysqli # Install PDO # RUN docker-php-ext-install pdo pdo_mysql ``` *php.ini* (Will like to get debugging and databases to work later on...) ``` [PHP] extension=mysqli extension=pdo_mysql ; xdebug settings for debugging zend_extension=xdebug xdebug.start_with_request = yes xdebug.client_host=xdebug://gateway ```

    2
    0
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLI
    Is it possible to debug a bash script using a debugger in attached mode? For debugging scripts on the host machine and scripts inside a docker container?

    I was able to setup a debugger using a launch mode using Visual Studio Code with the Bash Debug extension. Is it possible to setup the debugger in VSCode to be able to debug a bash script using a attach debug mode? For debugging scripts on the host machine and scripts inside a docker container?

    9
    1

    I was able to setup a debugger using a launch mode using Visual Studio Code with the Bash Debug extension. Is it possible to setup the debugger in VSCode to be able to debug a bash script using a attach debug mode? For debugging scripts on the host machine and scripts inside a docker container?

    6
    3

    I was able to setup a debugger using a launch mode using Visual Studio Code with the Bash Debug extension. Is it possible to setup the debugger in VSCode to be able to debug a bash script using a attach debug mode? For debugging scripts on the host machine and scripts inside a docker container?

    0
    0
    VSCode: Debugging Attached Process does not work
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTR
    trymeout
    Now 100%

    "console": "integratedTerminal" also works! Thank you?

    Do you have a simple setup guide on how to get debugging to work with Go inside a docker container?

    1
  • VSCode: Debugging Attached Process does not work
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTR
    trymeout
    Now 100%

    This solution does with when using a launch request in the config. Thank you

    Do you have a simple guide by chance on how to get debugging to work inside a docker container using VSCode?

    1
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFL
    Jump
    Hoodik - FOSS Self Hostes E2EE Cloud Storage Drive!
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTR
    trymeout
    Now 100%

    Your files are not encrypted at rest on Nextcloud. Hoodik claims that your files are encrypted at rest.

    1
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFL
    Jump
    Hoodik - FOSS Self Hostes E2EE Cloud Storage Drive!
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTR
    trymeout
    Now 100%

    Nextcloud and Owncloud are not E2EE. Hoodik is E2EE.

    Syncthing syncs a folder between 2 or more devices, Hoodik is an E2EE version of Nextcloud

    1
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFL
    Jump
    Hoodik - FOSS Self Hostes E2EE Cloud Storage Drive!
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFL
    Hoodik - FOSS Self Hostes E2EE Cloud Storage Drive!
    https://hoodik.io/

    Just needs a cross platform syncing app

    6
    6

    I made some Go scripts that require user input `fmt.Scanln(&fileName)` during the execution. When I use the Go debugger built into VSCode which is the launch type, it works but there is no way to enter any prompts when your exeuctable asks for a input. With other programming languages like NodeJS and PHP, there is way to run the scripts in "debugging mode" where it will run the code but before it executes the code, it will wait to attach to a debugger on your system and then execute the code. This has always allowed me to use the terminal for inputs in the executable. For example to do this in NodeJS, you will use `node --inspect-brk=0.0.0.0 main.js` instead of `node main.js` and then run the debugger in VSCode to attach it to the executing script. Is there a way to do this with Go? Do I need to set something up to achieve this? I am on Linux Mint and cannot find any commands to run `go run .` but to wait for a debugger to attach to the executable before executing.

    4
    1

    I made some Go scripts that require user input `fmt.Scanln(&fileName)` during the execution. When I use the Go debugger built into VSCode which is the launch type, it works but there is no way to enter any prompts when your exeuctable asks for a input. With other programming languages like NodeJS and PHP, there is way to run the scripts in "debugging mode" where it will run the code but before it executes the code, it will wait to attach to a debugger on your system and then execute the code. This has always allowed me to use the terminal for inputs in the executable. For example to do this in NodeJS, you will use `node --inspect-brk=0.0.0.0 main.js` instead of `node main.js` and then run the debugger in VSCode to attach it to the executing script. Is there a way to do this with Go? Do I need to set something up to achieve this? I am on Linux Mint and cannot find any commands to run `go run .` but to wait for a debugger to attach to the executable before executing.

    5
    6

    I made some Go scripts that require user input `fmt.Scanln(&fileName)` during the execution. When I use the Go debugger built into VSCode which is the launch type, it works but there is no way to enter any prompts when your exeuctable asks for a input. With other programming languages like NodeJS and PHP, there is way to run the scripts in "debugging mode" where it will run the code but before it executes the code, it will wait to attach to a debugger on your system and then execute the code. This has always allowed me to use the terminal for inputs in the executable. For example to do this in NodeJS, you will use `node --inspect-brk=0.0.0.0 main.js` instead of `node main.js` and then run the debugger in VSCode to attach it to the executing script. Is there a way to do this with Go? Do I need to set something up to achieve this? I am on Linux Mint and cannot find any commands to run `go run .` but to wait for a debugger to attach to the executable before executing.

    1
    2
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearNI
    nixos trymeout Now 88%
    Hoe do you self host a nix package repo & install nix packages from 3rd party repos?

    Hoe do you self host a nix package repo & install nix packages from 3rd party repos? Is this even possible. Other package managers allow you to install packages from 3rd party repos such as Flatpaks, apt, F-Droid, Scoop, Winget. And is there any known 3rd party nix package repos?

    7
    6

    When I use the `--sourcemap` argument in the CLI to generate the CSS builds with sourcemaps, when the CSS uses `@include`, it does not update the path and therefore will not work. In the code below, the builds are stored in the *dist* directory, while the CSS source code is stored in the *src* directory. This is my simple code to reproduce this... ``` - src/ - stylesheet.css - dist - my-package.css - my-package.css.map - demo.html - bundle.css - package.json ``` bundle.css ``` @import 'src/stylesheet.css'; ``` demo.html ``` <link rel="stylesheet" href="dist/my-package.css"> ``` package.json ``` { "name": "my-package", "version": "1.0.0", "license": "MIT", "scripts": { "build": "lightningcss --sourcemap bundle.css -o dist/my-package.css" }, "devDependencies": { "lightningcss-cli": "^1.25.1" } } ``` src/stylesheet.css ``` body { background-color: red; } ``` dist/my-package.css output ``` @import "src/stylesheet.css"; /*# sourceMappingURL=dist/my-package.css.map */ ``` What I expected from the dist/my-package.css output ``` @import "../src/stylesheet.css"; /*# sourceMappingURL=dist/my-package.css.map */ ``` Does anyone know why this is the outcome? Any help will be most appreciated.

    6
    0
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    User setting to disable posting, commenting, and voting
    github.com

    To add the following settings for the user in their account settings... - Disable User From Posting - Disable User From Commenting - Disable User From Upvoting/Downvoting Useful setting to enable for users who have two accounts. One account for browsing their feed while another account is used for interacting. These setting will prevent the user from accidently making a post with the wrong account for example

    0
    1
    Since DAI is currently being destroyed
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTR
    trymeout
    Now 100%

    I think stablecoins will always have a centralized point of failure. Weather it is an algorithm, or having the coin backed by the actual asset.

    I think the best stablecoins are backed by the asset 1 to 1 or a little more then 1 to 1. Most stablecoins that do this are token on smart chain contracts which have another vulnerability which is being a smart contract. Smart contracts could contain a vulnerability and if it does have a vulnerability, a new contract will need to be made and users will have to switch their old token to the new tokens. Also censorship is an issue. https://cryptonews.com/news/tether-takes-action-blacklists-validator-address-linked-25-million-mev-bot-drain-heres-what-happened.htm

    And these stablecoins are not private. The only private stablecoin platform out there is Haven but Haven assets are not backed 1 to 1.

    I hope there are plently of stablecoins issued on Zano in the future. Zano allows you to create an asset without creating a smart contract. All assets on Zano are private. I would like to see Tether, USDC and other issue stablecoins on Zano. Trusting the issuers on backing the stablecoin and trusting the issuer to secure their private keys to prevent hackers from inflating the asset will be the only vulnerabilities, but you will have privacy and a censorship resistant stablecoin!

    3
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTR
    Now
    153 82

    trymeout

    lemmy.world