ComicalMayhem

joined 3 years ago
 

I followed the directions on SFML's website for installation and usage via CMake. Cloned the git repo and ran cmake -B build cmake --build build. Everything went fine, but when I try to compile the test program with g++, it fails with a few different errors.

Here's the errors:

src/main.cpp: In function ‘int main()’:
src/main.cpp:11:45: error: qualified-id in declaration before ‘event’
   11 |                 while ( const std::optional event = window.pollEvent() )
      |                                             ^~~~~
src/main.cpp:13:30: error: ‘event’ was not declared in this scope
   13 |                         if ( event->is<sf::Event::Closed>() )
      |                              ^~~~~
src/main.cpp:13:59: error: expected primary-expression before ‘)’ token
   13 |                         if ( event->is<sf::Event::Closed>() )
      |                                                           ^

And the main file:

#include <SFML/Graphics.hpp>

int main()
{
	sf::RenderWindow window( sf::VideoMode( { 200, 200 } ), "SFML works!" );
	sf::CircleShape shape( 100.f );
	shape.setFillColor( sf::Color::Green );

	while ( window.isOpen() )
	{
		while ( const std::optional event = window.pollEvent() )
		{
			if ( event->is<sf::Event::Closed>() )
				window.close();
		}

		window.clear();
		window.draw( shape );
		window.display();
	}
}

It should work to my knowledge, I think. I mean, this is straight from SFML's github and tutorial page on their website, so it should be functional as-is once the cmake stuff is handled, right?

EDIT: Figured it out. Had to build the executable from the build folder via make.

 

Ubuntu package libdev-sfml is only up to 2.6. How can I get sfml 3.0 for C++ on my machines? Am I just gonna have to build it from source?

[–] ComicalMayhem@lemmy.world 1 points 6 days ago (1 children)

Genuine question: is that cloak yours and how did you make it?

[–] ComicalMayhem@lemmy.world 2 points 1 week ago (1 children)

*in other places.

As in, in Japan, pointing out a character is sixteen is the same as pointing out a character is 18 in America.

[–] ComicalMayhem@lemmy.world 8 points 1 week ago

If you want fanservice as plot points watch Kill la Kill

[–] ComicalMayhem@lemmy.world 4 points 1 week ago (1 children)

Yeah Hisoka's straight up a pedo. So is Rudius (jobless reincarnation). I actually kind of hated mushoku tensei for the weird romance harem quadrangle thing, like it's just the author's barely disguised fetish.

[–] ComicalMayhem@lemmy.world 35 points 1 week ago (5 children)

To play the devils advocate, 16 is the age of consent in Japan (where these anime are made). Pointing out the character is 16/17 is the equivalent of pointing out they're 18. Whether you agree with that morally is a different issue.

[–] ComicalMayhem@lemmy.world 2 points 1 week ago

Oh wow, that's... I had no idea people recognized me on here. That's news to me.

[–] ComicalMayhem@lemmy.world 8 points 1 week ago (1 children)

That is actually very disheartening to hear since writing is like the one thing I'm moderately ok at

 

Would like to get some things off my chest and yell into a void if possible.

[–] ComicalMayhem@lemmy.world 33 points 1 week ago* (last edited 1 week ago) (9 children)

Holy shit this is fantastic.

I've seen similar posts before with like dark souls bonfires or cutesy photos or cozy fantasy stuff, but this? This is art. It's so visceral, so raw, it's positively dripping with the juices of a reality most people only dream of and yet completely and totally exists in this world. It slaps you upside the head and locks eyes with you, snapping you instantly out of whatever funk, demanding your attention and ordering you to double check your eyes. Yes that is a shotgun, yes they are gesturing to you specifically, and no it isn't a gameplay screenshot or weird meta post or even a meme. There are no filters or edits on this. It's real, realer than most things are on the internet. Someone got dressed, brought their rifle, and took a photo out in the wilderness. That fire? Real. That breakfast? Real. That person probably ate it. Shit, they might have literally shared it with someone. That someone could be you. Not in a "imagine you're in this fictional setting" way but in a "if things were different I could genuinely, actually, be there, in the snowy wood" way, a way that drags you hand and foot into the imagination, into wondering what it's like, to be there. The gentle, non-threatening invitation is starkly contrasted by the weapon in hand, a clear reminder of the possibility and reality of violence, and yet you somehow just know that no harm would ever come to you here. They've accepted you, just as you are, and all that's left is to accept their invitation. Warm eggs. Bacon. Coffee. A simple fire, a real one, not one for show or aesthetics but built for function and warmth. And probably the best conversation you'll ever have in your life.

[–] ComicalMayhem@lemmy.world 50 points 2 weeks ago (23 children)

is this in reference to something Im not aware of?

[–] ComicalMayhem@lemmy.world 11 points 2 weeks ago (2 children)

Why did I think that was an upside down duck at first?

[–] ComicalMayhem@lemmy.world 1 points 2 weeks ago (1 children)

I'm sorry but this is just wrong. From PHB 2014:

You create three glowing darts of magical force. A dart deals 1d4 + 1 force damage to its target.

Each dart deals 1d4 + 1 damage and there are 3 darts, so 3d4 +3 damage.

 

Tons of spam bots coming from this instance. It's kind of ridiculous, something happen?

5
submitted 3 weeks ago* (last edited 3 weeks ago) by ComicalMayhem@lemmy.world to c/homestuck@lemmy.blahaj.zone
 

For various reasons I will not elaborate on, I have been considering what a linked list fetch modus looks like for a sylladex. For those who do not involve themselves in the sacred arts of data structures, a linked list is a type of data structure using nodes and pointers, where each node contains some data, and a pointer pointing to the next node in the list. Generally, there are separate pointers pointing to the first and last node in the list; these aren't nodes themselves, just vague ambigious non-entities that do nothing but reference the first and last nodes (head and tail respectively). There are also doubly linked lists in which each node points to the previous and the next node, and circular linked lists, wherein the last node points back to the first node. An advantage to this type of data structure is that nodes can be placed anywhere in the linked list rather easily. For example, in a singly linked list, node 3 just needs to point to the new node, and the new node to node 4, and suddenly the new node is part of the linked list.

My initial guess is that for a linked list modus, each card is a node. When an item is first picked up, this becomes the head (first node) card, and then subsequent items retrieved follow after the head card. Cards at the head and tail (last node) can be accessed freely, while cards in the middle need to be accessed by using each card before it (forward traversal through the linked list) or after it (backwards traversal through the linked list) in subsequent order. However, new items do not necessarily need to be added at the end or beginning of the list; if there are unused cards, the item can be placed anywhere in the linked list at will without much hassle. if there are no nodes (cards) available and a new item is picked up, the card at the end of the list is ejected.

My only problem with this is that it's essentially just the queuestack type that john makes in act 2 i believe, except with the added mechanic of new items being placed in the middle of the queuestack instead of either the top or bottom. Also, to be really accurate to linked lists, the data (item) in each node (card) doesn't need to be accessed for traversal, just the pointer to the next node. If that's the case for the modus, then it's no different from an array modus, where any item at any position can be retrieved at will. What do you all think?

 

No idea where else to ask this.

I'm trying to get PyGame working on my machine. Installed using sudo apt install python3-pygame and it installs fine, but when I try to run a file that imports pygame, I get a module error telling me there's no module named pygame that exists. Nothing I've looked into online seems to help. I thought, maybe since the file is being run out of my Documents folder and pygame is installed in my root folder, that I'd import pygame directly from the root. I used sys.path.insert(1, '/lib/python3/dist-packages') to insert the folder and then imported pygame, which changed the error to from pygame.base import * # pylint: disable=wildcard-import; lgtm[py/polluting-import]. I have no idea what's going on or how to fix this. Most threads online I see are for Windows, so I'm not sure how much the advice applies to Linux, and the ones that do specify for Linux have conflicting advice or don't make sense to me. I'm just trying to get the damn thing to work.

System Specs:System: Kernel: 6.14.0-37-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0 Desktop: Cinnamon v: 6.4.8 tk: GTK v: 3.24.41 wm: Muffin dm: LightDM Distro: Linux Mint 22.1 Xia base: Ubuntu 24.04 noble Machine: Type: Laptop System: HP product: HP Laptop 15-fc0xxx v: N/A serial: Chassis: type: 10 serial: Mobo: HP model: 8B2F v: 52.42 serial: part-nu: 9Q1E9UA#ABA UEFI: AMI v: F.10 date: 12/21/2023 Battery: ID-1: BAT0 charge: 34.3 Wh (100.0%) condition: 34.3/34.3 Wh (100.0%) volts: 12.7 min: 11.2 model: HP Primary serial: status: full CPU: Info: quad core model: AMD Ryzen 5 7520U with Radeon Graphics bits: 64 type: MT MCP arch: Zen 2 rev: 0 cache: L1: 256 KiB L2: 2 MiB L3: 4 MiB Speed (MHz): avg: 3515 high: 4003 min/max: 400/4386 boost: enabled cores: 1: 3987 2: 3988 3: 2457 4: 1831 5: 3973 6: 3902 7: 4003 8: 3985 bogomips: 44717 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm Graphics: Device-1: AMD Mendocino vendor: Hewlett-Packard driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1, Writeback-1 bus-ID: 03:00.0 chip-ID: 1002:1506 temp: 60.0 C Device-2: Chicony HP True Vision HD Camera driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 5-1:2 chip-ID: 04f2:b78f Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X: loaded: amdgpu unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1 Screen-1: 0 s-res: 1366x768 s-dpi: 96 Monitor-1: eDP-1 mapped: eDP model: BOE Display 0x0949 res: 1366x768 dpi: 101 diag: 395mm (15.5") API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi x11: drv: radeonsi inactive: wayland API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.2.8-0ubuntu0.24.04.2 glx-v: 1.4 direct-render: yes renderer: AMD Radeon 610M (radeonsi raphael_mendocino LLVM 20.1.2 DRM 3.61 6.14.0-37-generic) device-ID: 1002:1506 Audio: Device-1: AMD Rembrandt Radeon High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:1640 Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Hewlett-Packard driver: snd_pci_acp6x v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 03:00.5 chip-ID: 1022:15e2 Device-3: AMD Family 17h/19h HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 03:00.6 chip-ID: 1022:15e3 API: ALSA v: k6.14.0-37-generic status: kernel-api Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin Network: Device-1: Realtek RTL8852BE PCIe 802.11ax Wireless Network [1T1R] vendor: Hewlett-Packard driver: rtw89_8852be v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 02:00.0 chip-ID: 10ec:b85b IF: wlp2s0 state: up mac: Bluetooth: Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-2:2 chip-ID: 0bda:b85d Report: hciconfig ID: hci0 rfk-id: 4 state: down bt-service: enabled,running rfk-block: hardware: no software: yes address: Drives: Local Storage: total: 476.94 GiB used: 400.83 GiB (84.0%) ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL4512HBLU-00BH1 size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 serial: temp: 40.9 C Partition: ID-1: / size: 467.89 GiB used: 400.82 GiB (85.7%) fs: ext4 dev: /dev/nvme0n1p2 ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/nvme0n1p1 Swap: ID-1: swap-1 type: file size: 2 GiB used: 1.59 GiB (79.4%) priority: -2 file: /swapfile Sensors: System Temperatures: cpu: 69.9 C mobo: N/A gpu: amdgpu temp: 59.0 C Fan Speeds (rpm): fan-1: 4170 fan-2: 0 Repos: Packages: 3627 pm: dpkg pkgs: 3601 pm: flatpak pkgs: 26 No active apt repos in: /etc/apt/sources.list No active apt repos in: /etc/apt/sources.list.d/amdgpu-proprietary.list Active apt repos in: /etc/apt/sources.list.d/amdgpu.list 1: deb https: //repo.radeon.com/amdgpu/6.2/ubuntu noble main Active apt repos in: /etc/apt/sources.list.d/cappelikan-ppa-jammy.list 1: deb [signed-by=/etc/apt/keyrings/cappelikan-ppa-jammy.gpg] https: //ppa.launchpadcontent.net/cappelikan/ppa/ubuntu jammy main Active apt repos in: /etc/apt/sources.list.d/github-cli.list 1: deb [arch=amd64 signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https: //cli.github.com/packages stable main Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 1: deb [arch=amd64] https: //dl.google.com/linux/chrome/deb/ stable main Active apt repos in: /etc/apt/sources.list.d/mullvad.list 1: deb [signed-by=/usr/share/keyrings/mullvad-keyring.asc arch=amd64] https: //repository.mullvad.net/deb/stable noble main Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 1: deb http: //packages.linuxmint.com xia main upstream import backport 2: deb http: //archive.ubuntu.com/ubuntu noble main restricted universe multiverse 3: deb http: //archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse 4: deb http: //archive.ubuntu.com/ubuntu noble-backports main restricted universe multiverse 5: deb http: //security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse Active apt repos in: /etc/apt/sources.list.d/rocm.list 1: deb [arch=amd64] https: //repo.radeon.com/rocm/apt/6.2 noble main Active apt repos in: /etc/apt/sources.list.d/unit193-encryption-noble.list 1: deb [signed-by=/etc/apt/keyrings/unit193-encryption-noble.gpg] https: //ppa.launchpadcontent.net/unit193/encryption/ubuntu noble main Active apt repos in: /etc/apt/sources.list.d/google-chrome.sources 1: deb [arch=amd64] https: //dl.google.com/linux/chrome-stable/deb/ stable main Active apt repos in: /etc/apt/sources.list.d/megaio.sources 1: deb https: //mega.nz/linux/repo/xUbuntu_24.04/ ./ Info: Memory: total: 8 GiB note: est. available: 7.01 GiB used: 5 GiB (71.4%) Processes: 368 Power: uptime: 16h 43m wakeups: 3 Init: systemd v: 255 target: graphical (5) default: graphical Compilers: gcc: 13.3.0 alt: 11/12 Client: Unknown python3.12 client inxi: 3.3.34

Also, as I was typing my system specs, a random website called https://termbin.com/jdpt opened with all my system specs on it. I don't know what this is or how it opened or why, and I'm lowkey scared but it's nifty ig. Anyone know how that opened?

Edit: Oh, also, I have an IDE and I know I can get it to run in the IDE because I had to for a project last semester, but I'm trying to avoid it and work on everything in text editor and from the terminal as a challenge to myself. Also pygame runs like shit through my IDE (Pycharm)

EDIT: Got one solution from a classmate in discord. I installed a virtual environment following this link (provided by lokalhorst below). After, I had to run source venv/bin/activate in the home folder of the project, where venv is the name of the virtual environment I created. This turned my terminal into a... something, I think a virtual environment. Anyways there's now a (venv) at the very start of the terminal entries now, and pygame works fine.

Ideally, I would still like to be able to run it without actually using a virtual environment. Again according to lokalhorst (huge thanks to you btw), running a virtual environment is best practice instead of modifying the OS python install, but I'm not sure if I want to have to run a venv every time I make a project. I'll figure that out later though, maybe at some point make an executable that doesn't require a venv or something. idk, still figuring things out.

 
 

First, I am unable to host. My apartment wifi forbids it and I'm too poor to afford my own wifi.

Is there a good alternative to google docs? Preferably on the cloud, if not then that's fine. I know LibreOffice writer exists but to my knowledge it lacks Doc's document tab thing, which I make extensive use of, and cloud services. I'm trying to get off Google as much as I can, but the cloud hosted aspect of Docs is very useful, both for sharing links to documents quickly and for opening up a document on any of my 3 devices without having to sync or update the documents manually.

 

I'm so fucking tired of clicking on a song and finding out it's the fucking censored version halfway through. It genuinely pisses me off, even if the censors are well done, it still fucks up the flow of the music. Songs should never be censored regardless of the amount of swears and innuendos; they're a form of expression by artists and creators. Oh, what about the kids? Yeah fuck right off. Parent your children better. They're eventually going to learn what curses are anyways.

2
submitted 2 months ago* (last edited 2 months ago) by ComicalMayhem@lemmy.world to c/rwby@sh.itjust.works
 

HYJR for hydrangea and HYJK for hijack.

Context: Two of my friends have OCs born from a different franchise. They once paid me to write a fanfic of their characters and after that those OCs more or less became muses in a way. All 3 of us are RWBY fans to some degree and a conversation came around to a RWBY fan fic of the OCs. All this just to say the character names absolutely do not follow RWBY naming conventions lol. Including my own character, the possible initials are (h,g), (y,b), and (j,m), since last name initials can be used as well. After a lot of thought I came to these two names. Well, I came up with a lot more but these two are the final contenders.

HYJR would reference hydrangeas and match the colors of the team leader, but it's a bit of a stretch to get hydrangea from HYJR.

HYJK sounds very much like hijack and so the connection is obvious, plus it sounds cool, but the word doesn't really call to mind any colors. Then again, 3 of 4 team members don't have colors for names, and the fourth one will have whatever name fits the team name.

5
submitted 3 months ago* (last edited 3 months ago) by ComicalMayhem@lemmy.world to c/nostupidquestions@lemmy.world
 

Noticed a thing happening lately with my YouTube app (patched by Morphe) where after a video plays for a bit, it'll stop on a frame while the audio continues, then resume playing, leaving audio and video desynced. Not sure what's causing it, and no idea where else to ask this since there's no Morphe community and Morphe isn't revanced.

Edit: Pausing and then unpausing the video fixes it temporarily by rushing the video forward, until it happens again shortly after. Length of the pause does not matter. Its technically a workaround but leaves me pausing every like 30 seconds or less.

Restarting the app doesn't work and re-patching the app didn't work. Haven't tested uninstalling and reinstalling from scratch.

Edit 2: Restarting my device seems to have fixed it, can't be 100% the issue won't crop up again since I don't actually know what the issue even was.

view more: next ›