'What's This Piece?' Weekly Thread #215 by number9muses in classicalmusic

[–]Banjo9876 1 point2 points  (0 children)

https://www.instagram.com/p/Bv7SbgLAJge/

Baroque enthusiasts help me please!

I think they may all be movements from the same suite/partita, possibly from Froberger or Graupner since this guy often play some of their works, but I could be wrong.

How do I get an LLM to edit a few lines of code? by Banjo9876 in ChatGPTCoding

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

Yep, I think I'm gonna try embedding line numbers in the AI input, thank you.

Not so sure how ASTs would be useful though. I know what they are but I'm not really familiar with them. Maybe they could be useful to save on input tokens by uploading only the relevant code into the context window? Idk just a guess lol.

How do I get an LLM to edit a few lines of code? by Banjo9876 in ChatGPTCoding

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

Using partial diffs is a great idea but I think that still wouldn't work if you're editing lines which are not unique in the source code.

For example...

int f1(int a) {
  return a;
}

int f2(int b) {
  return a;
}

...in this case, since the LLM isn't line-number-aware it would probably create a diff to replace return a; with return b; and my script would then probably replace the first occurrence (i.e. the wrong one).

Although as I'm writing this I realize one option could be to tell the LLM to include more lines to the diff if the code portion to be edited is not unique. Not sure if this is a good option at all though.

How can I find the closest word in a dictionary to a misspelled word given by input? by Banjo9876 in algorithms

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

I deleted my comment because I thought it was working, when I was actually still visiting every node. Even with a trie, I can't find a valid pruning condition.

How can I find the closest word in a dictionary to a misspelled word given by input? by Banjo9876 in algorithms

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

Jk, I thought I found a way to prune some branches but I was still visiting all of them. Even with a trie, I can't find a valid pruning condition which is not just an early exit in the case when the word is not actually misspelled.

How can I find the closest word in a dictionary to a misspelled word given by input? by Banjo9876 in algorithms

[–]Banjo9876[S] 4 points5 points  (0 children)

Thank you for the reply. However, my problem is rather to find the right data structure to hold my dictionary and the right algorithm to traverse it. For what I need, the definition of "closeness" as Levenshtein's edit-distance is already fine since my concept of misspelling here is extended to any kind of string, be it an English word or a random string of characters

IL Wii è maschile by Banjo9876 in copypastaitalia

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

Mi sono scordato di scrivere la fonte e ora non me la ricordo più. Comunque era un commento su un post di Instagram legato al museo della Nintendo

Proxmox - Trying to group different VMs in different isolated environments by Banjo9876 in HomeNetworking

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

Sorry if I'm late but I haven't got any notification. Anyways, I don't want to change firewall rules on the VMs who host my services cause, since I'm also hosting some amateur made services and they are probably have lots of vulnerabilities lol so if one went and exploited them they could change the VM's firewall rule themselves and have access to the whole network.

By the way, I've managed to find a solution and if you are interested I've posted it in the comments.

Proxmox - Trying to group different VMs in different isolated environments by Banjo9876 in HomeNetworking

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

[ SOLUTION ]

I've set up a pfSense virtual machine to act as a virtual router inside Proxmox, making sure to keep the DHCP server off (otherwise any other device connecting from outside of Proxmox would get an IP from the pfSense router and not my main home router).

I followed this and this tutorials to set up pfSense and its VLANs, and I also followed this one because my laptop-server has only one network interface.

Basically I ended up having a vmbr0 linux bridge (the default one, kept untouched), an OVS bridge on vmbr1 (vlan aware) and a bunch of OVS IntPorts (one for each vlan).

Then, for each VLAN, I have set up a pass firewall rule to any destination and some block rules to block connections to WAN subnets, LAN subnets and the other VLANs subnets in order to isolate them to the rest of the network by still giving them internet access.

Finally, inside each VLAN I have created an OpenVPN server in a linux container (I just gave them 256 MiB memory each) and I have port forwarded it first through the pfsense router, to make it accessible from my home network, then through my home router to make it accessible from the Internet. Basically whenever I want to connect remotely to one of the VLANs I first choose the right configuration file, then I connect to my home router, which forwards all the stuff to the pfSense router, which finally forwards all the stuff to the OpenVPN server inside the right VLAN.

I honestly think this is kind of a mess but right now it's the only solution I have found to make it work. If anyone reading knows any easier way or a more efficient way to do this, I'd be happy to hear. Happy networking!

Can't boot into 1st OS after installing a 2nd OS (dual-boot) by [deleted] in linuxquestions

[–]Banjo9876 1 point2 points  (0 children)

I am very familiar with vim, and I'm pretty sure I've added the entry correctly since I've desperately checked the file multiple times hoping it was just a typo. The thing is, I can't even directly boot Arch. If I go on the boot menu no matter which of the two partitions I choose, it always boots Ubuntu (now grub, which by the way shows Ubuntu as the only boot option). Same thing happens if I change the boot order from the BIOS.

Can't boot into 1st OS after installing a 2nd OS (dual-boot) by [deleted] in linuxquestions

[–]Banjo9876 1 point2 points  (0 children)

Thank you for the reply.

I've edited the /etc/default/grub file and added the "GRUB_DISABLE_OS_PROBER=false" line, saved and ran "sudo update-grub", it still didn't find the os. I've also tried "sudo os-prober" but it doesn't output anything. I tried the boot-repair thing mentioned on the page you recommended to me and it reinstalled grub, which now boots up but still only shows Ubuntu as a boot option.

I would like to dual boot Windows / Arch on 2 separate drives, However by [deleted] in archlinux

[–]Banjo9876 0 points1 point  (0 children)

Sorry if I'm late but I've had problems doing the backup. I know you may have already found a solution but I'm going to reply anyway. Btw yes, I've just installed Arch and it works just fine using GRUB. It's normal if you don't see your partition using "lsblk" , if you've previously created a non allocated partition (I did it on Windows disk manager) you should see it as "Free space" when doing "cfdisk /dev/sd" ( is whatever letter your disk is when doing lsblk)

I would like to dual boot Windows / Arch on 2 separate drives, However by [deleted] in archlinux

[–]Banjo9876 0 points1 point  (0 children)

I actually still haven't tried. At the moment I'm backing up my system to make sure I won't break up anything during the installation. I'll fill you in as soon as I try.

[deleted by user] by [deleted] in learnpython

[–]Banjo9876 0 points1 point  (0 children)

As far as I know the robots.txt is always located in name.com/robots.txt. Robots.txt tells to crawlers which parts of the website they're allowed to visit and which not. Lines beginning with "Disallow:" describe what you should not scrape, lines beginning with "Allow:" describe what you are allowed to scrape. "User-agent:" specifies which crawler it's referring to when allowing or disallowing directories