#development

1 messages · Page 7 of 1

uneven owl
#

When building your own neural network from scratch, or in game development.

#

This is more often called the Hadamard product.

#

In mathematics, the Hadamard product (also known as the element-wise product, entrywise product: ch. 5  or Schur product) is a binary operation that takes two matrices of the same dimensions and produces another matrix of the same dimension as the operands, where each element i, j is the product of elements i, j of the original two matrices. It ...

peak acorn
#

complicatored!

rancid nimbus
#

I am trying to get a char LCD to load over an i2c GPIO expander. When the system boots it probes the i2c adaptor, but not the HD44780.

#

What could I be missing on the device tree? Should I probe the HD44780 some other way?

hot briar
#

If anyone happens to come here, as I did recently, looking for java help (the basics), I thoroughly recommend this video

#

Maybe someone will find it if they use the search function

hollow basalt
#

or they could search google

hot briar
#

What is wrong with you?

hollow basalt
#

i could say the same to you

silk eagle
#

mom dad stop fighting

misty thorn
#

how #devlogs be lookin

misty thorn
misty thorn
#

pull request gets shot out of big lunga 9000 🛳️ 🐳 die you damn glitch, you made the boss man postpone publish FR 🚀 💥 ☠️

#

publishes video game early and debugging doesn't show any results for a catastrophic failure at launch but publishes anyway

ember sapphire
#

I feel like this persons having schizo moment

hollow basalt
#

Yea spamming

coarse comet
#

You good bro? linuth

silk eagle
#

we're coders we dont get mad at bugs we get revenge by killing them

#

consume bugs to make your product stronger

coarse comet
#

This is peak schizo moment

rotund zinc
tacit ferry
#

Is anyone familiar with the protocols GTFS Real Time and SIRI? What’s the difference between them? They both are used for real time transit data…

peak acorn
#

Why the FUCK would someone mark a class is depricated, update the comment to say "It's advised to stop using this if you can" but not say what to replace it with

ember sapphire
#

your first mistake was using a language with classes trollBaelz

peak acorn
#

boo

hollow basalt
#

woo

hybrid leaf
#

And I can screwed the hottest girl I know while fixing that one hydra of a bug nobody can solve without creating 3 others, plus I did it without disassociating myself from reality and throwing away countless hours just to find a spelling mistake

spring cradle
#

sometimes i read too much documentation and i end up learning how to fix issues i don't have, but want to create for the sake of applying that knowledge

hybrid leaf
spring cradle
#

i keep finding features i have no use case for in docs but sound really cool and i wanna try them

#

like this one generics library in go

silk eagle
#

what

#

it got deleted i dunno if it was mods but I think maybe the development channel wasnt the place to flex your spelling bee prowess

merry sun
midnight wind
#

For a personal website

#

Ideally you want something simple, the KISS principal

#

Keep it simple stupid

hollow basalt
#

Website built like it showcases a luxury brand

ember sapphire
limpid reef
# merry sun I got inspired so decided to make my own personal website (its still under dev, ...
  1. site has a "click to enter" interstitial - these died 15+ years ago.
  2. sites that autoplay audio are immediately blocked on my network.
  3. big 3d dude is extremely distracting and covers text on the page.
  4. users rarely expect to click & HOLD to make a site menu work.
  5. difference in font sizes is too much. (headings too big, text too small.)
  6. one should never have to inform the user they should scroll down.
#

On a positive note, I do like how you're loading the text content into the siteview via JSON. No idea how you've structured the backend, but loading content separately from the view can make things easy to update.

bitter edge
#

@copper ravine will this work

copper ravine
#

I guess for short runs for USB 2.0?

bitter edge
#

i asked ai how I would do this

#

and this is what it said it also said I don't need a micro controller

copper ravine
#

Well, chat gpt3 is certainly confident, even if it's wrong

bitter edge
#

damn

bitter edge
copper ravine
#

I mean, no, but I don't know how far the USB signaling will work over twisted pairs

bitter edge
#

wait what's twisted

copper ravine
#

well that and if you forgot and plugged a live ethernet cable into that usb, it'll blow the ass end out of whatever usb controller is connected to it

#

Ethernet is 4 twisted pairs of copper (for Cat5e, Cat 6 is similar with additional shielding)

bitter edge
copper ravine
#

well, I don't think there's a "fix"... what you're trying to do just might not work well at all

bitter edge
#

I've seen some before

#

except they use cables

copper ravine
#

If you want to run USB over ethernet, then yeah you'll need adapter at each end of the ethernet, and a microcontroller that translates the USB packets to ethernet and back again

inner wraith
#

Dare I ask what your actual goal is? Do you just want a USB to ethernet adapter or do you specifically want to build one yourself?

#

Because they're really cheap

peak acorn
#

Dude 3d modeling for games is fkin hard

merry sun
merry sun
#

I guessed that it looked too fancy + not really accessible
I'll work upon that and probably come with something better
thanks

silver furnace
#

So I pull out my keyboard and I pull out my glock;
I dismount your girl, and I mount (slash) /proc

#

kill dash nine, yeah it's kill dash nine!

#

But if you're creating 3 more bugs by fixing the hydra one, that's not good kekwhat

hybrid leaf
#

Lmao

#

I was just trying to troll the guy flexing

silver furnace
#

So long as the hydra was equally mythical

hybrid leaf
#

I mean

#

I cant say it hasnt happened before

silver furnace
#

Same, but one has to avoid creating those entirely in the first place

#

The only way we'd ever want hydras to exist in reality is along with the (usually equally mythical) hero that can slay them back to myth status

#

There are design patterns whose functionality is mythical; there are ones whose functionality isn't KEKW

#

functionalities aren't*
Dang I need to hit up Grammarly or something. Otherwise I need an editor for every single post on disc...

versed lion
#

anyone got some experience with express js and node

#

I need some advice

versed lion
#

good point

#

I need some advice on if I should split each express route into its own js file and then require them or if it is ok to just leave it as one massive file.

silver furnace
#

One single js file with no line endings trimmed is always the optimal way for the client js

versed lion
#

I am talking about server side

midnight wind
midnight wind
jagged stirrup
silk eagle
#

one day, I wish to see someone ask "Any __ experts around?" to the creator of the programming language and they not be able to answer it because everyone's experience with a language is different and random problems have random answers.

#

massive plot twist

spring cradle
#

KISS

jagged stirrup
silk eagle
#

the creator of a language could say that if they didnt want that behavior smart

rancid nimbus
#

I just learned that when building gtk-webkit it frequently goes above 2G of ram per instance of gcc. This means I need to cut down the amount of jobs it is using to render.

solemn plank
#

Hello! I am working on three main gestures to identify, diagnose, and offer a potential treatment for body-focused repetitive behaviors (BFRBs), which I am exploring along with impulse control disorder.
Those three gestures are:
Lip biting
nail biting
twirling or running fingers through hair

By uploading your photos to the Google Drive link given below while performing those three movements, you can support me in developing an artificial intelligence model for an ICD detection and recommendation system.
https://drive.google.com/drive/folders/1n0TL6NFqGr0YG4Qmx0RZqg0bcrJB6Ksn?usp=sharing

To access the reference poses, click on the link below:
https://docs.google.com/document/d/1P-_D-00akEXkEK9xCv9hLrdZeEzb7Byr5AvFyPQRgO0/edit?usp=sharing

coarse comet
static cave
#

hey, trying to write a function in python, which is given a directory of file (like type ELF), and needs to run it and then output first 16 syscalls, PID and some info that I can easily get with the pid like PPID, memory etc.
I tried using subprocess to run it and then with another to trace it but it needs admin and I think it may also miss the first calls. (also maybe I can like run the strace with some parameters which will give me the process PID and then proceed).

#

not with -fp, just -p.

arctic tusk
#

In Rust, why "Struct async_std::net::TcpStream" does have clone but Struct tokio::net::TcpStream does not have clone?

old urchin
#

anyone knows workarounds for google map marker api? been getting 404 for my GET requests

frank shard
#

Guys is there any way in visual studio in which I can run a .bat file as admin using button1

frank shard
#

No no

coarse comet
#

Oh

frank shard
#

So in the gui there is a button so when i click on it , the program should execute the bat file separately

#

And if possible show the stutus of the bat file

#

@coarse comet can u tell me ?

coarse comet
#

Not sure, never used VS, didn't notice that you meant VS and not VSC, my bad

frank shard
#

It's ok

hollow basalt
#

Ok

bitter edge
#

@copper ravine what do the C1 and C2 pins connect to

#

on a usb c

copper ravine
copper ravine
#

if the resistors are set correctly to not allow too much current (max 100mA without USB negotiation) then sure yeah that will work

bitter edge
#

I was so confident I already ordered them lol

#

just gotta wait for the parts

copper ravine
#

what value resistors are you using?

bitter edge
#

I had to go with 62 because all of the 60 ohm resistors are all preorder

frank shard
rancid nimbus
#

What does that have to do with visual studio? When you click what button it runs the bat as admin? If you right clock on the file you should see a run as an admin option...

#

Usually people show code on stack over surrounding the issue.

keen hound
#

why should I answer it?

frank shard
#

😐

rancid nimbus
#

Questions end in question marks usually. Statements end in periods.

frank shard
#

I know we can run it without any program but i wnat to make a program in which i can see the progress and the selection of actions

frank shard
# bitter edge

But u made it in python , i wanted for visual studio ( windows forum app .net framework

#

C#

copper ravine
# bitter edge

So, that will give you about 25mA per LED, which will be technically too much for un-negotiated power draw (which is max 100mA) buuut it still might work because whatever you plug it into (computer port, charger) might not enforce that max current.

bitter edge
#

do you recommended any other resistors

#

because I just make the resistor fit

copper ravine
#

You can probably get away with 10mA per LED, so 150ohm resistors

bitter edge
#

alr

#

yeah the resistor will probably fit

copper ravine
#

That's... not how you check that

bitter edge
#

it's close enough

#

it has metal things and they can bend

copper ravine
#

You look at the data sheet for the resistor or you select the footprint you need from the electronics website you are buying from

#

Right, so those are likely 1/4W through-hole resistors

copper ravine
#

or maybe 1/8w, I can't remember atm

copper ravine
#

250mW, yeah 1/4W

bitter edge
#

alr

sweet current
#

Even today this 16mm film from 1975 still holds op
https://youtu.be/7hdJQkn8rtA

This is a 16mm film titled "Critical Program Reading"
I applied some color correction as this is very faded. Mostly this worked well but there are some magenta backgrounds that are... intense!

Little information is known about this film. Credits are very incomplete, and there was no information left in the film can. Credits open with "Edutroni...

▶ Play video
rancid rover
#

Made a NeoPixel helmet for snowboarding next year, its super bright and will look dope af at night

#

using a Arduino Uno and a button to rotate through multiple profiles

bitter edge
rancid rover
bitter edge
bitter edge
#

@copper ravine is this good wiring for the D+ and D- pins

rancid nimbus
rancid rover
rancid nimbus
# bitter edge damn and I can barely create a usb led

The timing on the ws2812 is a pain. You end up needing to count clock cycles on the atmega 328p-pu like is in that picture. I think they end up not using the Arduino library due to the time it requires to turn a pin on and off with that. The software can be easier.

rancid rover
#

a smaller board would make it much easier but im happy with the results

rancid nimbus
rancid rover
#

na there is a thick padding layer that goes over all the shit inside

rancid nimbus
#

How much time do you have on the battery?

rancid rover
#

large power bank lasts about 5 hours

rancid nimbus
#

I attempted to use a string of them once and ended up bursting a connector (somehow not melting the wire). I think it was somewhere around 5-10A.

rancid rover
#

yeah they use about 2.5A on max brightness \

#

i got mine on 70% brightness so its like 2A

bitter edge
rancid nimbus
#

The atmega 328p-pu is a microchip part or is now.

bitter edge
rancid nimbus
# bitter edge

You cannot buy significant new quantities years into that future. (Or maybe sooner). It is maybe not that big of an issue. It is probably just a deprecation warning.

bitter edge
#

i wondering how asking if my traces were good enough ended up with this

#

i'm gonna assume they are and gonna go move on with the hundreds of caps and resistors

rancid nimbus
#

It looked ok enough for USB 2.x

#

At least as to my knowledge. First try to get your led stick working.

bitter edge
#

excuse me?

#

Stick?

rancid nimbus
bitter edge
#

i can design smth else in the meantime

rancid nimbus
#

Oh...

bitter edge
rancid nimbus
#

I did. Soldering resistors, LED's, and a USB connector shouldn't take that long...

bitter edge
#

when I get the parts it will take me about 20mins to finish all 25 of them

rancid nimbus
#

I just want you to understand how hard things get to solder when they get more tiny.

bitter edge
#

I've tried to make something before

#

with no experience and it used like these SMALL leds and resistors

#

i failed and I still have one

bitter edge
#

well except the the 4 pins that should be easy to solder

rancid nimbus
#

Those are super tiny.

bitter edge
#

yeah I was using 0201

rancid nimbus
#

Imperial units?

bitter edge
#

i'm not gonna use smth that small unless I need to

rancid nimbus
#

I hope it would be imperial not metric.

bitter edge
#

I have no idea what lcsc uses

rancid nimbus
#

What you want...

bitter edge
#

you can specify which unit it uses ;- ;?

bitter edge
bitter edge
#

who actually
prints yellow circuit boards

ember sapphire
rancid rover
#

they use a ton of power, about 2-4w depending on what color they are displaying

#

sorry A

ember sapphire
#

Amps means nothing without the voltage.

bitter edge
#

Yes

rancid rover
twilit beacon
rancid nimbus
twilit beacon
#

like a raytracer

rancid nimbus
twilit beacon
#

like some square

rancid nimbus
#

Or the Unicode version.

azure summit
#
PROCESS_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFFF)

Uhm do anyone know what the 0xFFFF is for (some places has it as 0xFFF, which I found weird as its not whats given in the documentation), docs list it in the all access, but doesnt seem to say what its for on the microsoft documenationa site "url/win32/procthread/process-security-and-access-rights"?

twilit beacon
#

man this stuff gets more and more intresting and then school just ruins it all

slate frigate
#

@twilit beacon you might get something out of a terminal video player I wrote, hits on some of the same concepts

lilac tartan
#

Roblox development

feral owl
#

I typed ai

#

i shouldve typed it as ay eye and in the second batch in a dif recording it sounded better (also the dude who created this only had mlp voices and im a guy so its hard to voice act them)

stable nacelle
#

help

#

Kotlin: Redeclaration: Room

surreal coral
#

Hello. I had a question relating to an old PlayStation2 FAT that I have. I recently bought a pre-modchipped PS2 as me and friend accidentally killed my original one while attempting to modchip it. The problem is, the pre-modchipped one is from Italy and I live in the US. What I wonder is if it is possible to swap the power supply from my US PlayStation (which the power supply is still working) into the Italian one.

Ping replies are fine, and I can get pictures of the consoles and other information if needed.

jaunty flint
hollow basalt
#

a video

twilit beacon
#

a video

coarse comet
#

Reminds me of rule 110

spring cradle
#

reminds me of rule 86

twilit beacon
#

Does the MYSIS2's installer on windows download ASan? Because after downloading GCC and all the dependencies through MYSIS, it just doesent recognise ASan's commands eg. -fsanitize=address.

tranquil zinc
#

told to come here

nocturne galleon
#

Hey gamers im starting a clothing brand called nts which stands out for not the same can someone help me design a logo thank you!

hollow basalt
#

here ya go

thin sparrow
twilit beacon
umbral saffron
#

quick question, can i replace arduino pin 13 (DIO) with a gpio pin

#

like what i’m asking is do they work the same

tall heart
#

If anyone has experience with clips ai programming language or knows a source to study it from in video format
Please dm me

worldly totem
#

Anyone got a recommendation for a language to learn for mobile apps? I'm considering either react native or kotlin. Which ones would be most practical to learn?

#

I'm a student looking for a project to just expand my progamming knowledge so I want to learn whichever is a good skill to add, whether that's react native, kotlin, flutter etc

bright cedar
modern wigeon
#

nas servers. people always reccomended me freenaz zfs but my friend suggested to me ubuntu server

#

whats the difference?

midnight wind
#

you still would need to setup your storage, freenas has zfs built in, you can do zfs on ubuntu as well

modern wigeon
#

is that possible or not?

midnight wind
#

it's possible on both, but that's not really a NAS thing

#

that's an ingest server type of thing

modern wigeon
#

i should probably have it setup to my computer and use the nas as just a backup ig

manic crest
ember sapphire
#
# Instead of doing thing
vnum = vnum+1

# you can do this instead
vnum += 1

# you have to be careful as they are not equivalent in python
# see this video https://www.youtube.com/watch?v=cGveIvwwSq4
manic crest
manic crest
young elbow
manic crest
silk eagle
#

so for example...

jsonData = {}
jsonData["Spotify"] = "5w8=^2^e"
with open("Passwords.json", "a") as outputFile:
    outputFile.write(json.dumps(jsonData))
#

however... that likely wont work with appending the data to a json file

#

one way would be to open the file, use json.loads() to make a dict with the file's contents, add the new password to it, then write it all at once

manic crest
#

Idk what that does but ill look into that and try it if I can, Thx

silk eagle
#

and json.loads():

#

usage would be like

jsonData = json.loads("string") # Hint: The string can be the contents of a json file
manic crest
#

Oh so basically pulling the content adding the new password then overwriting the file content?

manic crest
# silk eagle yeah

Ok makes sense without the code. I'm currently looking it up and I'm running into errors, I'll be done hopefully by tomorrow. Thank you.

hollow basalt
#

Yup yup

jagged stirrup
leaden mango
#

i swear bro how do you guys do this

hollow basalt
#

idk man, we do what we do

coarse comet
leaden mango
#

bruv

#

what should i do to learn

#

java or html

#

what did you guys do

coarse comet
#

Depends what you want to do

slate frigate
#

Golang master race, lol

hollow basalt
#

Assembly

coarse comet
#

Fortran

spring cradle
#

golang is fun

ember sapphire
#

Golang is nice

ember sapphire
# leaden mango java or html

HTML is literally the hyper text markup language similar to markdown for readme on git hub.
Java is a bloated outdated piece of shit.

chrome spire
#

Every time I move it inside of the HTML it all changes positions. I'm not sure if it's the CSS or HTML that's the issue. I'm also not experienced with CSS too well. How do I position it so that the navigation bar is in the top left and the contact is in the center?

#

This is how it should be (except the contact is in the middle)

lament bridge
#

How do website access security keys if for example javascript has no access for it? I mean the browser is definitely have access, but then in what way are they communicating with the websites?

lament bridge
spring cradle
#

if i were to attach like the 8 non-vcc/ground pins + 1 vcc OR gnd pin on a usb c to random digital pins on an arduino, which would be worse, vcc or gnd?

#

assuming the other end of usb c is attached to like a power brick or computer or something

coarse comet
lament bridge
#

@coarse comet Basically, let's say you want to integrate Yubikey on your website, as I Have read Javascript has no access to hardware *which makes sense, but then again, how do they integrate it?

coarse comet
#

Still waiting for my keys to arrive, will look into it more when I get them

lament bridge
#

I was lucky to get two last year too

#

Thanks, will look into it

midnight wind
lament bridge
#

I am basically writing a Windows Live Messenger clone and want to add things like Spotify integration, Yubikey authentication, etc

#

so that is why I was curious

midnight wind
# lament bridge I am basically writing a Windows Live Messenger clone and want to add things lik...
GreenRoots Blog - Tapas Adhikary

API is the acronym for Application Programming Interface which defines interactions between multiple software architecture layers. Programmers carry out complex tasks easily using APIs in software development. Without APIs, a programmer's life would ...

#

Broadcast channel API would be useful for a chat app

lament bridge
#

Yeah,but thats only local, right?

midnight wind
lament bridge
#

Thats true

#

Thank you PresentMonkey

loud storm
#

rnadom question, but is there anyone in this channel that uses/is pretty familiar with cloudflare's platform/offerings (i.e. i guess it would be in a similar way to someone who uses AWS services in their work would have a lot of knowledge about it)

coarse comet
loud storm
#

ha, fair enough, just thought it might have been a bit more prudent to ask before getting deep in the weeds on a few obscure topics that i find myself still getting confused by from time to time

sour crown
#

Will floatplane have an Apple TV app? I’d subscribe if I could watch on the TV

rich storm
#

.<

#

It just means it's private

#

even if u have permissions to join the lock will be there, it has always been like that

#

yes

#

As long as I remember

#

If u don't have access to it, it means the permission to see the channel is there

#

but regardless it will show

#

that was gonna be my next question... if u changed OS or something

loud storm
leaden sorrel
hollow basalt
#

so?

silk eagle
#

is this available on github

rancid nimbus
#

How does this relate to hardware or software development?

bright geode
#

sorry, i must have been half asleep on mobile and clicked the wrong channel xD

nimble sand
#

Is this the place to ask if I have a website question regarding CSP headers?

rancid nimbus
#

I guess so.

hollow basalt
#

Depends

valid fossil
#

Can someone help me with my programming assignment? The program creates a database which then puts a table in there to be use for a to do app

hollow basalt
#

No

rancid nimbus
#

Do it, no. Assist maybe...

valid fossil
#

I'm writing a python todo list that uses SQL but the table not being put into the db file

lament bridge
#

at least give us an error message

#

or log yourself within the function so that you can see where it fails

#

you can also use ChatGPT to assist you

smoky trout
#

How to keyboard hand wiring adding LEDs?

silk eagle
#

that sounds like if you sent a google search as a message

hollow basalt
smoky trout
hollow basalt
#

Whyy not

smoky trout
hollow basalt
#

because you need to actually search

valid fossil
#

So i'm writing a todo lit program in python that uses sqlite. It creates a db file but for some reason won't write the table in the file

#

I have a message saying that writing was successful but opening the file in a db viewer there's no table

hollow basalt
#

Ok

fickle pollen
#

Maybe someone here knows the answer to this: Why are JDK versions up to 19 but consumer JRE versions appear to be stuck on 8?

I just coded a simple program using Java 16 but then I couldn't run it in my console because the latest JRE you can download is only Java 8.

ember sapphire
fickle pollen
#

Actually, I just found a page discussing it finally. It seems like oracle stopped releasing standalone JRE versions after 8. Apparently developers are encouraged to package a runtime with their programs.

ember sapphire
#

or just make them install the SE versions of java like most of them do shrugging

smoky trout
#

Idk where to add LEDs and how to flash the raspberry pi

rancid nimbus
#

What is on the other side?

#

I don't see the LEDs.

mint breach
#

Anyone with react testing knowledge here? I would to understand some testings I am trying to run that are giving me headache with the process

smoky trout
smoky trout
rancid nimbus
#

I have a switch matrix too.

#

It has more on it. I think it has 24 buttons...

smoky trout
#

Any less?

#

*LEDS? or potentiometers?

#

I want to put some of those on

rancid nimbus
#

I have done LEDs and buttons on one matrix before.

smoky trout
#

where to wire LEDs

rancid nimbus
#

You could have the led diodes facing the other direction from the switch diodes so that you can charge theatrix in the reverse direction to control the LEDs. With persistence of vision ou could scan the button matrix and then scan the LEDs many times a second so it appears as if booth are happening at the same time.

smoky trout
rancid nimbus
#

You will need to add resistors to your matrix too.

smoky trout
#

i dont understand a word of that

#

so ill give up with the leds

#

when the raspberry pi is dead

#

never buy anything third party on amazon

#

help, why raspberry pi isnt working

#

its giving voltage but not showing on pc

#

isnt it plug and play?

smoky trout
#

ive been researching for 2 hours man...

#

data vs charging cable?

hollow basalt
#

didn't research

midnight wind
#

oh it's a pico

#

read the docs

smoky trout
#

I did read

hollow basalt
#

Didn't research

lament bridge
#

Didn't research

silk eagle
#

have you tried researching

coarse comet
#

google

smoky trout
smoky trout
#

idk what is problem

#

oih

#

supposed to look like this

#

YOOO

#

SHE WORKS!

#

(diode orientation was wrong)

ember sapphire
#

Please don’t tell me you actually use notepad

smoky trout
#

ofc i do (real)

#

i used notepad for small editing

#

but i have other IDE for big project

smoky trout
#

i goofed it up

#

dont go poking around with a multimeter on a powered board ig

#

nah i think my usb port died 💀

silk eagle
supple hull
#

I swear corporate IT is a sanctum of hell. I'm so glad I don't work at a mega corp but I'm dealing with a very large retailer, and they wanted to put their corporate site behind their secure sign on but since I'm not part of their team and they don't want to give me VPN, I've spent over the course of a few weeks probably 8 hours getting various RSA shits set up.

The end result is comical: on a zoom call, an employee who signed into the corporate network where I gave him all my login credentials. Homey has a fucking spread sheet of various contractor login and passwords.

coarse comet
#

That's just sad whoa

supple hull
timber pine
#

what's wrong with that? I have a text file with all my passwords

#

a .txt file 🙂

#

I have one with all my work accounts passwords as well

midnight wind
ember sapphire
midnight wind
#

Wdym

silk eagle
#

I put all my passwords in a passwords.csv file

#

its on my desktop, next to bank.json and btc.txt

twilit beacon
#

This may be a cope moment but man i LOVE quaternions. Now i spent far less time coding those (with 0 if else statementsPogChomp), they require far less computing than rotation matrices and they actually work

halcyon lintel
#

so how do u implement the try catch in a calculator built in js? im doing it like this but it isnt working

midnight wind
#

So await

halcyon lintel
#

Promises?

humble mirage
#

what is the next instruction you end up at if eval fails, did you check that?

#

because try-catch should just work like this

fast wraith
#

this script of mine keeps going over 32gigs of memory, even over 128 maxing my pagefile and crashing once

#

but unless the crash, how much performance am i leaving by letting windows handle this with the pagefile rather than like manually saving to disk and loading later?

#

could adding a pagefile on a second ssd improve speeds? is windows smart enough to do that?

hollow basalt
#

i think the question first is why does your script need 32gigs

#

if you are already considering manually saving to disk,
then you should probably do that instead of letting the OS page

fast wraith
#

generates every frame of a video, its just a lot of data

#

i have the option in the script to save every image to disk, in which case i can just reread that, but its a lot faster to just keep in memory if it fits

hollow basalt
#

I would advise to save every imagine to disk instead.
since that's how most 3d workflow work

#

3d file -> render img -> video editor

fast wraith
#

i just wonder if the pagefile is much worse than saving everything, i would at least save 32 gigs of disk reads using ram if i did some smart manual solution

#

and could also increase the maximum beyond the size of the page file, but im not sure its worth the effort

#

maybe i should just make the saving to disk part faster somehow instead

hollow basalt
#

Yea that's up to you still.

  • Keeping it in ram is convenient
  • Saving it in disk makes more sense to me
hollow basalt
ember sapphire
umbral saffron
#

if i have three leds and i connect each + leg to a different gpio, can i connect the - to the same gnd pin

midnight wind
#

ground is ground

#

ideally you should be using a breadboard for prototyping

umbral saffron
#

well i connected the pos side directly but all the grounds i’m going to do on a breadboard so i don’t have to solder anything and i don’t need a resistor
thank you so much though

smoky trout
#

so i was playing laser tag right, and it uses infared n stuff, so like, i was thinking, could it be possible to make an infared light machine thing to make a fake laser tag gun to play with and it would be overpowerd? (the guns connect to a main computer to calculate score)

#

theoretically

peak acorn
#

Uhhh I mean yeah probably

floral isle
#

Task 5 (2 pts Extra Credit): A program where the user enters a credit
card balance and the program calculates the interest at a rate of 17%
monthly. Assume the user does not make any payment. Display the
interest due after one month and again after two months.

What should I change about the psuedocode for this assignment?

peak acorn
#

If it compounds, you can't just stack interest like that

fast wraith
#

putting the interest in a variable and then not reusing the variable is a bit odd too

#

totalInterest = (cardBalance * ((interest+1) ** numberOfMonths)) - cardBalance i think? but a loop would be more legible maybe

fast wraith
#

maybe not a loop, but something like

interestMultiplier = interest + 1
compoundedMultiplier = interestMultiplier ** numberOfMonths
totalInterest = (cardBalance * compoundedMultiplier) - cardBalance```
to be explicit
floral isle
#

ok, thanks for the help guys, its an intro to java class so still not very familiar with programming and such sso make mistakes ften

silk eagle
#

although the point of the assignment might be to introduce a use case for loops

#

but code speaks for itself, if it works it works

fast wraith
#

point was probably just to spot the mistake in not compounding

spring cradle
#

how can i ID a pinout like this

#

also anyone know if that second to bottom pin has its pad ripped off?

rancid nimbus
#

Look at the chips on the PCB and use a multimeter to check for connectivity between the pins on the chip and the pins on the pads.

spring cradle
#

search leads to reddit guy also looking for tp pinout

rancid nimbus
#

Sometimes the ending bits of the number on there are for a variant of a part. The large plane on the top and bottom are likely gnd if they are connected. If they are different one could be vcc and the other gnd.

unique kestrel
spring cradle
#

F, the unconfirmed pinout i found says it's NC, which i don't think i need

copper ravine
#

NC = not connected ie not used

spring cradle
#

no luck finding bu21036efv sheets

spring cradle
#

i did find this thoug

bitter edge
peak acorn
#

What is

bitter edge
peak acorn
#

minecraf

bitter edge
peak acorn
#

what did u make

bitter edge
peak acorn
#

the suign editing thing?

bitter edge
peak acorn
#

sign

bitter edge
#

what do you want me to sign?

peak acorn
#

RAAArrrghghh

#

is it a mod or server plugin?

bitter edge
#

plugin

peak acorn
#

nice

bitter edge
hollow basalt
tawny lynx
#

why do iget an error with this?:

fn main()

{
   let _x: [f64; 500] = [0; 500];

   println!("{_x}");
}
#

its rust btw

hidden patrol
tawny lynx
#
error[E0308]: mismatched types
 --> src/main.rs:5:26
  |
5 |    let _x: [f64; 500] = [0; 500];
  |                          ^
  |                          |
  |                          expected `f64`, found integer
  |                          help: use a float literal: `0.0`

error[E0277]: `[f64; 500]` doesn't implement `std::fmt::Display`
 --> src/main.rs:7:15
  |
7 |    println!("{_x}");
  |               ^^ `[f64; 500]` cannot be formatted with the default formatter
  |
  = help: the trait `std::fmt::Display` is not implemented for `[f64; 500]`
  = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
  = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `hello_world` due to 2 previous errors
tawny lynx
peak acorn
tawny lynx
#

well i've fixed the error and now i have a professional spam generator

reef star
midnight wind
bitter edge
#

It said I em developer

bitter edge
#
public class EditSign implements Listener {

    @EventHandler
    public void onSignClick(PlayerInteractEvent e) {
        if (e.getAction() == Action.RIGHT_CLICK_BLOCK && e.getPlayer().isSneaking()) {
            if (e.getClickedBlock().getState() instanceof Sign) {
                Sign sign = (Sign) e.getClickedBlock().getState();
                e.getPlayer().openSign(sign);
            }
        }
    }

}```
peak acorn
#

Now, does it break if two people right click on the same sign? 😈

hidden patrol
# tawny lynx soooo??????

Sorry I laid down and fell back asleep then got busy with other things. But I see someone mentioned the 0.0 which was nice of Rust to tell you needed to be done. Mostly I had you post the error because when asking for help, it is quicker to get answers if you share all the details, not just the code.

silk eagle
#

the semicolon between values in [0; 500]; looks to be the issue with that "doesn't implement std::fmt::Display" error

peak acorn
#

Turn a grid into a grid of equilateral triangles

#

(or in reverse, turn equlateral triangles into squares)

bitter edge
peak acorn
#

the whole space contorts

bitter edge
peak acorn
#

yeah

silk eagle
#

its an optical illusion, they actually dont move at all

peak acorn
#

???/

silk eagle
#

wut

peak acorn
#

they move lmao

bitter edge
#

he means nothing 3d happens

peak acorn
#

it is a skew on the coordinate plane animated

silk eagle
#

no your eyes only think that because its an optical illusion bro trust

bitter edge
#

it moves in 2d

#

the same thing could be replicated with balls

midnight wind
silk eagle
#

you get it

bitter edge
#

anyway

peak acorn
#

goober

peak acorn
#

why is ffmpeg such arcane wizardy

peak acorn
reef star
bitter edge
nimble shore
#

Any ideas on how to fix this issue on spring5 framework using JPA and hibernate

#

I have this in my properties file
hibernate.dialect=org.hibernate.dialect.MySQL8Dialect

#

With these versions

 <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-entitymanager -->
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>5.6.14.Final</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator -->
        <dependency>
            <groupId>org.hibernate.validator</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>6.2.0.Final</version>
        </dependency>
silk eagle
inner wraith
#

I don't think it counts as a partnership if you happen to use someone's good or service, else my side project business is partnered with Google and Amazon.

peak acorn
#

Do they mean Verifone uses posnow?

stone pumice
#

rate my code

(){ >(<&0) 2>>({<<(<$1)}>$(<&0)) 2>>({<<(<$2)}>$(<&0))} =(<<<'hello ') =(<<<'world!')
peak acorn
#

Unreadable 1/10

stone pumice
# peak acorn Unreadable 1/10

oh my apologies here's some whitespace for your troubles

(){
    >(< &0) \
        2> >({< <(< $1)} > $(< &0)) \
        2> >({< <(< $2)} > $(< &0))
} =(<<<'hello ') =(<<<'world!')
peak acorn
#

Oh that's much better

silk eagle
#

did someone say whitespace?

def main():
                                def main_hello():
                                                        return "hello"
                                def main_world():
                                                                                    return "world"                                    
                                print(main_hello(), main_world())
main()
reef star
stone pumice
#

just configure your tab width to be 4/5 of a space

humble mirage
#

And this is why indentation should always be the tab character

#

So that 2,4,8 per level people can coexist

#

And that crazy people can finally have the editing experience they want

paper herald
#

how did you guys get into programming?

stone pumice
stone pumice
paper herald
#

how did this accident occur?

humble mirage
#

just look at C++ or JS

#

and yes of course follow the team but if you're the lead or input is allowed (like hobbyist collaborating) tab=\t is imo the ethically correct thing to do

#

because it means not messing with other people's ability to read

stone pumice
#

if a difference in indentation width negatively effects your ability to read then perhaps that's something you should work on

#

language designers tend to be relatively intelligent in my experience, regardless of my agreement with their decisions

stone pumice
stone pumice
silk eagle
nocturne galleon
#

not the easiest path but i'm here i guess

#

anyway~ i just learned that a curl handle (or at least one from curl_easy_init()) can't be used between multiple threads at the same time, is there a way to make curl work with multiple threads other than using locking (which would kinda negate the point of threads to begin with if i use the blocking api, maybe there is a non blocking api?)

stone pumice
#

all my concurrency is done in zsh

wind horizon
# paper herald how did this accident occur?

Mostly self taught, reading docs and guides online and some education videos. Once you learn enough to solve most of your own errors you’ll start learning very fast just through self discovery.

silk eagle
#

sometimes it helps to be terrified of asking for help in your early days of programming, cuz you'll figure out how to solve those sneaky issues

nocturne galleon
peak acorn
#

or yeah init on multiple threads

rancid nimbus
#

I hacked together a step counting smartwatch (minus the form factor).

stone pumice
#

just don't use multithreading ez

harsh thistle
#

hey guys i want to make a youtube to mp4 thing in python and i got it but when i try to run it, basic commands like "from library import xyz" are not found

signal cosmos
#

because you dont have the library installed

harsh thistle
#

i do

signal cosmos
#

did you install it with a different version id you have both python2 and python 3 installed

#

also why windows

harsh thistle
#

i have python3.10 and 3.11

signal cosmos
#

thats a problem

harsh thistle
#

great question, i can get a vm up

stone pumice
harsh thistle
#

C:\Users\username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts

#

this should be it no? at least what i saw from the error codes earlier

#

yeah, i have pytube in there

stone pumice
#

i appreciate that you blanked out your username [redacted]

harsh thistle
#

oh lol, i aint aaron anyway

#

i mean i can prove it but like whatever

stone pumice
#

anyways launch a repl session and first try import pytube then if that works try from pytube import xyz

harsh thistle
#

i'll try to get an ubuntu vm up

#

because i even asked chatgpt and searched the whole internet and no solution

stone pumice
harsh thistle
#

so if i tell it to import YouTube (thats what i wanted) then it apparently doesn't exist

stone pumice
#

did you try just import pytube? you had only mentioned the from... syntax

harsh thistle
#

my code goes the following:

from pytube import YouTube
URL = "link"
video = YouTube(URL)
video_streams = video.streams.filter(file_extension = 'mp4').get_by_itag(18)```
#

this is the error now:

#

oh. its self-explanatory

#

should i try replacing
video = YouTube(URL)
with
video = pytube(URL)

stone pumice
#

nope, pytube is the module - if the first line doesn't error, then the equivalent would be video = pytube.YouTube(URL)

#

but given that the example for pytube has from pytube import YouTube and you're on the latest version it's more likely that the import path is incorrect for whatever scope your script is running in

harsh thistle
#

i believe so too because it still has the same problem that it doesnt know where it is

stone pumice
#

which then makes me assume that python defaults to the global path on windows if run however you're running it

harsh thistle
#

that makes sense

stone pumice
#

in which case running pip as administrator should install it globally i believe

harsh thistle
#

that was the problem, pip was not run as administrator

#

but i have to find the video now that i apparently just downloaded

#

ran without errors

stone pumice
#

if unspecified, should be the directory your shell was in when you launched the script

harsh thistle
#

thanks man, appreciate it

peak acorn
#

Simplex noise is so confusing

#

Maybe if anyone knows they can help

This is the summation formula at the end, you run it on each of the simplex vertices. In 2d there are 3 vertices. Using the skew formula, the simplexes are equilateral triangles with a length of ~0.82.

Soo, by hand if I imagine trying to manually solve for this point in blue, with the gradients drawn

#

Also r^2 is defaulted to 0.5
You'd get the distance^2 = 0.82^2 = 0.6, 0.5-0.6 = -0.1, max(0) means that value is 0. So the simplex vertices A and B contribute 0 to the point's value.

So then there's only one point left, the C vertex. And the distance is 0, so 0.5-0 = 0.5. Then ^4 = 0.0625. But then the dot product. Gradient is whatever, delta x delta y is 0 though. Which means that the dot product would also be 0. and the total sum would just be 0 for every pixel that is on top of a vertex?

But obviously this isn't the case, even using my code which has a faulty has system for determining gradients. There obviously aren't 0's on every triangle vertex

#

Soooo i must be wrong somewhere, no idea where tho

stone pumice
#

with an edge length of 0.82, you could expect a pixel of value 0 every 50 vertices on the X axis when Y = 0, for example (assuming the simplexes are tiled with the "base" aligned with the X axis)

#

([0,0], [41,0], [82,0]...)

peak acorn
#

Oh yeah i guess its true that it isnt very often that you'll be exactly on a vertex

stable nacelle
#

java is a beta lanuage

#

learn c

stone pumice
#

java pays the bills

stable nacelle
#

No it doesnt

#

Jk

stone pumice
#

a surprising amount of the internet relies on java

silk eagle
#

some even say that C# wouldnt exist without java

peak acorn
#

My brain splodering at simplex noise

nocturne galleon
#

i wrote some java once

#

some parts were really comfy most of it was hellish

slate frigate
#

Or, you know, some good ol' golang

coarse comet
#

Just use Bash

peak acorn
#

bash script everything yes

silk eagle
#

just do everything manually

spring cradle
#

my friend is not friendly to interpreted languages and im strugglin lol

stable nacelle
#

bro just code in asm

#

anyways i made tictactoe in c

spring cradle
#

same

#

was it fun?

spring cradle
#

can someone explain what llvm does exactly? i am thoroughly confused by everything written

nocturne galleon
sturdy ingot
# spring cradle can someone explain what llvm does exactly? i am thoroughly confused by everythi...

Yeah, as @copper zodiac said. It basically allows you to "easily" implement your own programming language on-top of a very mature ecosystem. All you, as a new language designer/implementer, have to do, is to target LLVM's IR and LLVM (the compiler) will take care of the actual transformation into object code (the parts marked in blue are part of the LLVM project; forgot to mark lld, which is also part of the project, oh well...):

#

For example, the Rust programming language's standard compiler (rustc) uses LLVM behind the scenes, which basically allows the Rust fellows to target (almost) any machine that LLVM understands.

#

LLVM is preferred by many compared to the GNU IR due to both ease and licensing (BSD vs GPL), but that's another story.

spring cradle
#

thanks!

sturdy ingot
#

I should probably add that GHC does not by default go via LLVM, but it has an -llvm option compiled in (at least on *nix systems). At least that holds for GHC 6 and 7, not sure about GHC 8 😄

mellow orbit
#

Thinking of jumping onto FreeCodeCamp or ProjectOdin, I'm reading ProjectOdin prefers Linux, what distro would you guys recommend? I currently have a desktop running Ubuntu for my Docker media server stuff, not sure if I should just stick with Ubuntu or try something else.

hollow basalt
#

Ubuntu

twilit beacon
#

arch

nocturne galleon
#

lfs

rancid nimbus
#

BLFS

nocturne galleon
#

^

twilit beacon
#

arch is also fine

peak acorn
#

Windows 11 Professional Edition

#

With a WSL installation of Ubuntu :)

nocturne galleon
#

3rd's time the charm

#

The best way to nail discord's formatting for a bot is to be dum and use what we already used

nocturne galleon
#

I'm going to make a riot here.

I prefer to organize my module imports by doing the 'import x for the top, from x for the bottom'

stone pumice
#

(organizing imports by hand? what year is this?)

nocturne galleon
#

Tomorrow's update will be finalizing the whole startup sequence (loading the model and some housekeeping), before focusing on the features

#

And maybe moving everything from bot.py so it's much more cleaner.

peak acorn
#

I finally managed to implement simplex noise myself, researching and calculating all the values and whatnot myself

peak acorn
#

So, giving a crack at learning some modern web dev stuff. Anyone got a favorite project idea to implement for doing that?

midnight wind
#

a tool you could find useful, like a file conversion tool?

hollow lake
#

I decided to check out Rust embedded again.
I was blown away at how smooth the tooling was and how much the abstractions help back in 2020, but in 2023 I'm blown away again.

You can now use Rust async code on embedded devices using Embassy.
This? No tasks. Just join on some async functions. No heap allocation needed. You don't even need to provide an array for the stack like a lot of RTOSes do.

nocturne galleon
#

Bootup sequence is done. Mainly to load modules and giving information of the loaded language model, and also delaying startup sequence.

Sequence is interruptible so she wouldn't take user commands during the boot up. Oh and it also changes her status from idle 'playing boot sequence' to online 'listening to user commands'

#

It uses NLP so the NLU model she uses is loaded first, which allows her core functions to be executed prior loading the modules so I just make a global bool variable and some if's to make sure she's not usable until the sequence is finished.

nocturne galleon
#

I spent more time thinking what to code than to code the bot itself.

rancid nimbus
#

Why does Google Chrome not support mathml as well as firefox and other systems that render it to SVG?

exotic thistle
#

Postgres is hilariously shit at visualizing a schema

sturdy ingot
coarse comet
exotic thistle
humble mirage
#

PGAdmin4 is so terrible it's not even funny

#

it's gotten a bit less bad but it's still basically unbearable

rotund zinc
#

Just want to show off my system lockdown script, it's pretty good eyes

#

Dw this won't be used in a malicious piece of software, I'm working on a project that allows owners to give users a restricted access to a machine, it's pretty barebones now.

#

mods pls don't ban me

stone pumice
#

can't believe there's people not using datagrip in 2023

nocturne galleon
#

Watching a .NET tutorial and the instructor has 3 different VS icons, what's the one in the middle?

wary night
#

That's the insiders(nightly) build.

rancid nimbus
#

There is or was a light blue icon for Blend an xaml UI editor.

nocturne galleon
#

Love using it

peak acorn
#

What is it

nocturne galleon
nocturne galleon
nocturne galleon
#

Simple state machine test

#

Context:

  1. "Yahagi" to start the interaction
  2. Saying "Yahagi" again will not redo the whole greeting part
  3. "Nothing for now" or any dismissal words to dismiss her
  4. Saying dismissal words after she's dismissed will not dismiss her, since you're not interacting with her
nocturne galleon
#

When a 40 minute debugging combined with model re-training simply becomes useless just because you forgot to put [ ]:

#

The LLM is now usable. Now what I need to do is to develop more features and also context-based flow.

slender sphinx
#

if a barcode scanner is just a glorified keyboard emulator, can an NFC reader do that in a computer?

#

i'm making an attendance system with the use of NFC hardware

stone pumice
#

?

nocturne galleon
#

I'm feeling naughty so I will be taking some inspiration from ChatGPT, allowing my bot to change variables on runtime.

#

Starting from 'Verbose Answers', which shows the target user, intent, and answer confidence

exotic thistle
#

Barcode readers usually don't work that way anymore either that's a very AS-400 era thing

peak acorn
#

Nerd

#

Where do you learn about barcode reader eras lol??

wild plaza
#

Anyone know how to (or where to find out) create a chrome extension that changes the css colours in a specific URL

stone pumice
slender sphinx
slender sphinx
peak acorn
#

Haha

#

Beeblebeepeebeebop

slender sphinx
#

forgot to mention, we used that for the inventory system

midnight wind
#

the barcode scanner is separate in that it decodes it on device

#

a scanner utilizing a camera is different as it would actually need to decode from a picture input

midnight wind
#

why not just a qr code?, more phones support it vs nfc

slender sphinx
#
  • attendance system is an application-based that will run on pc
  • an "employee" will tap their nfc tag to the scanner
  • beep
  • the "employee" had a time-in/time-out attendance
midnight wind
#

so it's a clock in/out system

slender sphinx
#
  • software starts adding time in the database
slender sphinx
# midnight wind so it's a clock in/out system

yes, something like that
but it has another function not being only just an attendance, it has also a payroll in which it gets calculated based on the employee's attendance, absences, tax rate, and the work rate per hour

midnight wind
#

starts incrementing time?

#

that doesn't sound efficient

slender sphinx
#

no, i mean it records the time the employee just took an attendance and saves it into the database

#

not like it starts a timer and then ends it after the end-shift

midnight wind
#

ah yeah, that makes sense. The way it was worded was weird

slender sphinx
#

sorry, i'm not from the US KEKW

#

that's just the glimpse of my system to be passed at the end of the semester

nocturne galleon
#

Hi guys, I'm looking at installing the following VS workloads, and am just wondering if any of the components they install (IIS, sql server etc) run when VS isn't open? I don't mind the extra storage space they take up, but I'm just concerned that on startup they'd be using up ram and CPU when not in use

stone pumice
nocturne galleon
finite cloak
#

looking to learn HTML but I’m not sure where to start. what would be the best way to go about it?

frail jungle
#

I would like to make a minecraft server can someone tell me how or send a link to a video or tutorial

midnight wind
frail jungle
#

Thanks

nocturne galleon
#

Any Regex Gods here?

stone pumice
stone pumice
nocturne galleon
#

AAAAAAA

stone pumice
#

lmao why

nocturne galleon
#

I am trying to get the next 2 words after getting the matched word

silk eagle
nocturne galleon
#

Yeah

#

Exactly what I need.

stone pumice
#

match the next two words then

silk eagle
#

try Match\s\w+\s\w+

#

(replace Match with whatever word you're wanting to match)

nocturne galleon
#

Lemme try

nocturne galleon
#

Thanks! I was doing some 'on-the-fly' settings change for my bot

#

To make things a bit more easier to use, and enabling chaining commands I decided to use 'to true' or 'to false' as a way to know how that variable should be changed

#

So I can say

'set verbose_answers to true, no_pings to false' and the bot will know that it should set verbose answers to true and no pings to false.

Each command is separated with ' , ', and there's no 'word leaks' since it's hardcoded so it only take 'to true' or 'to false'

nocturne galleon
#

Ohh yeaaahhhh

#

Bot will not change unchanged values now (no_ping defaults to false)

nocturne galleon
stone pumice
nocturne galleon
#

The issue isn't deserialization

#

I'm asking what part of the standard allows that string to be there to begin with

stone pumice
#

a string is an object

nocturne galleon
#

And where does the standard say that? I looked for it

stone pumice
#

are you talking about the ecmascript standard or what exactly?

nocturne galleon
#

ActivityStreams, it's language agnostic

#

Though it's definitely much easier to use in languages without a proper type system, like javascript, because of how many disjunctions and optional arrays there are

stone pumice
#

it's likely written with javascript in mind

#

anyways, in this case it looks to be that Link allows a string

nocturne galleon
#

Probably, but i couldn't find anything specifying that

stone pumice
nocturne galleon
#

Finally I can sleep soundly tonight.

Context:

  1. Variables can change during runtime which is poggers
  2. Correct keywords will be processed, and wrong keywords will be ignored
  3. Non-changed settings will not be shown
#

Need ideas of what kind of things should I say so I can check if it will break the bot

#

When I say the bot I mean the regex

#

The embed is stuck like that because discord does not allow us to define the title of the embed on the bottom of the function

#

Oh I almost forgot

#

She can't do this lol

stone pumice
#

just write a basic language for it

nocturne galleon
#

What

stone pumice
#

like, programming language
you can describe the syntax with BNF then there's a variety of generator tools in order to produce code, I'm sure there's one for python
then it's just implementing the functionality

#

once you're doing contextual parsing like what you're doing this is usually an easier track to go down than regex on a single pass

nocturne galleon
#

I don't trust my code. There's definitely something bound to go wrong

#

My suspicion is correct. Reverting back to normal where you need to specify each variables you want to modify

#

Minimizing user error too because in order to change it, you need to specify the variable by name and what to do with it 'to true' or 'to false', thus users can double and even triple check what they're going to change before they do.

stone pumice
nocturne galleon
stone pumice
#

yeah, the link type on that page is specifically the object version (qualified indirect relationship)

#

whereas just a string URL/IRI can be used for an unqualified direct relationship

coarse comet
#

What do you call these small link images? Usually from old websites

kind summit
nocturne galleon
spring cradle
#

hi nep

nocturne galleon
#

purr~

nocturne galleon
#

ChatGPT got a math module and I am feeling a bit naughty again

twilit beacon
#

can anyone tell me why this always outputs weird numbers? the original textfile has 3 rows and 420 columns of doubles but assigning each value to a certain struct in the array```c
#include <stdio.h>
#define COMPONENTS 3

typedef struct
{
double x, y, z;
} points;

points point[420];

int main ()
{
FILE *objectfile;
double vertex;
objectfile = fopen ("objectfile.txt", "r");

for (int i = 0; i < 420; i++)
{
for (int k = 0; k < COMPONENTS; k++)
{
fscanf (objectfile, "%lf", &vertex);
if (k == 0)
{
point[i].x = vertex;
}
else if (k == 1)
{
point[i].y = vertex;
}
else if (k == 2)
{
point[i].z = vertex;
}
printf ("%i, %i, %i\n", point[i].x, point[i].y, point[i].z);
}

}

return 0;
}```

again, the textfile looks somewhat like this

0.03847383 0.38363729 0.83736372
0.52674737 0.64638374 8.4846382
etc.```
sage vector
twilit beacon
#

but still, that mistake aside, where am i going wrong with this code?

sage vector
twilit beacon
#

hold up ill run it with the textfile

#

its either insanely high or just 0

#

output:


-536870924, 0, 0
-536870924, -1073741492, 0
-536870924, -1073741492, 536870916
#

input:

-0.94056600332260 -0.11666068434715 -1.58835804462433
-0.94056600332260 -0.09752789884806 -1.58110189437866
-0.94056600332260 -0.08395873010159 -1.56578552722931```
#

these are just the last 3 vertices

sage vector
twilit beacon
#

gad damnit

#

how did i not see i did %i

#

thanks for the help

sage vector
#

😄

nocturne galleon
#

idk if there are any compiler or language architecture people but why is there no jit llvm implementation, also if someone(i’m trying but people that are smarter) would just make a strongly typed language and then inforce access patterns wouldn’t that make a super fast jit language

#

like it would be so cool to have a c# like language that can compile directly in a rust or c++ program without having to do function exports and dll mapping

sturdy ingot
# twilit beacon how did i not see i did %i

Strong recommendation to enable compiler warnings. -Wall would have told you that %i isn't right there:

<source>: In function 'main':
<source>:34:17: warning: format '%i' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
   34 |       printf ("%i, %i, %i\n", point[i].x, point[i].y, point[i].z);
      |                ~^             ~~~~~~~~~~
      |                 |                     |
      |                 int                   double
      |                %f
<source>:34:21: warning: format '%i' expects argument of type 'int', but argument 3 has type 'double' [-Wformat=]
   34 |       printf ("%i, %i, %i\n", point[i].x, point[i].y, point[i].z);
      |                    ~^                     ~~~~~~~~~~
      |                     |                             |
      |                     int                           double
      |                    %f
<source>:34:25: warning: format '%i' expects argument of type 'int', but argument 4 has type 'double' [-Wformat=]
   34 |       printf ("%i, %i, %i\n", point[i].x, point[i].y, point[i].z);
      |                        ~^                             ~~~~~~~~~~
      |                         |                                     |
      |                         int                                   double
      |                        %f
twilit beacon
supple hull
#

I really keep trying to get Chat GPT to be useful. I had a task to query a drupal 9 db post content for some HTML strings. I'm a UX developer so I'm kinda SQL stupid and dislike Drupal passionately. I asked chat gpt to write it and no matter the prompts it couldn't give me an answer to just search the body content for a string. I ended up with a stupid one line query I wrote by just cross referencing tables and fields with Google.

#

It spit out what looked like really nice SQL queries to only have them always to return 0 results. A+

stone pumice
#

also yeah %i lmao

#

using C is a code smell

twilit beacon
coarse comet
twilit beacon
hollow basalt
#

Nice

umbral plinth
#

the menus in the game im making

umbral plinth
twilit beacon
# twilit beacon added "lighting"

yo guys yesterday i posted this "game" i made but i want to make the calculations happen on the gpu, rather than all the rendering mathematics being computed on the cpu. I have been trying to set up, and have already tried making a program in openCL, but i just can not compile it for the love of god
i always get the error code

cannot find -lOpenCL: No such file or directory
collect2.exe: error: ld returned 1 exit status```
i have all the headers there and the gcc compiler commands i have also tweaked, but where did i go wrong here?
brave crest
#

is anyone good to make games that want to have a little project with me

shadow temple
umbral plinth
shadow temple
umbral plinth
#

You're welcome

#

And thank you

#

There's still a lot of work to do

dire steeple
#

ay i have homework due monday and it says make a python project like a simple one for a example for the year 8's and i have no idea what i can do for it and it has to be semi easy for them but i have ZERO idea of what i should do

hollow basalt
#

Me neither

silk eagle
#

although "easy" might be relative (to people that are experienced, I still have to think quite a bit about these ones)

#

or just make a thing that makes a random number and has you guess it until you get it correct

devout iris
#

rand = 4; // chosen by a fair dice roll

silk eagle
#

import random

glossy lotus
#

I’m making a big c++ game, it’s like the modern version of the elder scrolls lol

umbral plinth
sturdy wing
#

i've just started dual booting and playing around with natural language processing models from hugggingface, anyone else here on that journey?

peak acorn
#

Huh. Just learned in minecraft biomes do not determine landscape. It's actually the landscape noise determines which biome. And then all biome does is choose the block palette etc

twilit beacon
#

if it were otherwise it would probably cause a lot of problems in the connectivity, for instance when 2 completely opposite biomes, based on the average height, the higher one could spawn a facade of stone, not to mention the borders are far more "squiggly" and adding the biome blending function, it makes the biome borders far smoother

peak acorn
#

Right it definitely makes sense. I just assumed it was always the other way around and they figured it a way to turn biome maps into perfectly smooth and continuous terrain

wind horizon
#

It’s awesome how popular MC still is considering how old the game is now. I guess the simple graphics with more focus on creativity helped it age well.

inner bridge
#

Can someone help me with my discord bot?

#
    client_id=SPOTIPY_CLIENT_ID,
    client_secret=SPOTIPY_CLIENT_SECRET,
    redirect_uri=SPOTIPY_REDIRECT_URI,
    scope=["user-library-read", "user-read-playback-state", "user-modify-playback-state"],
    username=SPOTIPY_USERNAME
)

sp = spotipy.Spotify(auth_manager=auth_manager)

intents = discord.Intents.all()
bot = commands.Bot(command_prefix='!', intents=intents)

@bot.command()
async def play(ctx, *, song: str):
    results = sp.search(q=song, type="track", limit=1)
    if results["tracks"]["total"] == 0:
        await ctx.send("No songs found with the given name.")
        return

    track = results["tracks"]["items"][0]
    await ctx.send(f"Playing {track['name']} by {track['artists'][0]['name']}")

    # Join the voice channel the user is in
    voice_channel = ctx.author.voice.channel
    voice = await voice_channel.connect()

    # Play the song
    source = discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(track["preview_url"]))
    voice.play(source)

@bot.command()
async def stop(ctx):
    # Disconnect the bot from the voice channel
    voice = ctx.voice_client
    if voice:
        await voice.disconnect()
        await ctx.send("Music stopped.")
    else:
        await ctx.send("The bot is not in a voice channel.")
``` here I am using this discord bot to play music from spotify, But instead I am getting the preview of the music. I know there is that issue of the mode that i have written `preview_url` but I don't know which mode I am supposed to use in order to get the full music. Please help me out
hollow basalt
#

I don't know which mode I am supposed to use in order to get the full music
Play it in your phone then put it next to the mic

minor knoll
sturdy wing
#

Thank you!! There is a group building an open source ChatGPT - open source has gotta win here

silk eagle
#

or, if track is super long:

import json
with open("output.json", "r") as outputFile:
  outputFile.write(json.dumps(track, indent=4))
inner bridge
#

Okay thanks

reef star
sturdy wing
#

Pretty sure it's not published yet (days or weeks? Soon), however there are some other open source large language models you can find and download pretty easy (with a big enough server storage) check out Microsoft GODEL and Facebook/META OPT in the meantime

reef star
sturdy wing
#

Do a search for "LAION Open Assistant"

reef star
#

Ok

reef star
midnight wind
#

What's code...

#

It's on GitHub no?

smoky trout
#

Is it possible to make an android app to change the look of emojis on the phone?

chilly raptor
#

Unless you can change fonts, probably not.

smoky trout
# reef star I can try

If you would like to make a proof of concept that would be nice (I wouldnt know where to start)

stable bough
#

anyone here familiar with something called "One hot encoding": https://en.wikipedia.org/wiki/One-hot ?

In digital circuits and machine learning, a one-hot is a group of bits among which the legal combinations of values are only those with a single high (1) bit and all the others low (0). A similar implementation in which all bits are '1' except one '0' is sometimes called one-cold. In statistics, dummy variables represent a similar technique for ...

#

it's just another name for a specific version of "bit flags" right? i.e. https://en.wikipedia.org/wiki/Bit_field ?

A bit field is a data structure that consists of one or more adjacent bits which have been allocated for specific purposes, so that any single bit or group of bits within the structure can be set or inspected. A bit field is most commonly used to represent integral types of known, fixed bit-width, such as single-bit Booleans.
The meaning of the ...

copper ravine
peak acorn
#

Bit flags can definitely have multiple set

stable bough
copper ravine
#

Basically

stable bough
#

ok..

#

i dislike when people invent new words for old things that already have words

copper ravine
#

Electrically I suspect there is a good reason for a hot bit implementation (such as multiplexing)

stable bough
#

seems very "buzzword"-ey

copper ravine
#

Well be careful, they are strictly speaking the same thing.

#

You can implement hot bit multiplexing in software via GPIOs for example

stable bough
#

Thanks...i learned of the term "one hot encoding" cuz of a learning module about Machine Learning at work i had to do. knowing it's very similar to, if not the same as bit flags with restrictions helpss me understand the pros/cons and basics that they were talking about

mental lynx
#

.

hollow basalt
#

.

rich trail
#

Does anyone have any ideas why this python code would work on one windows pc but not another?
The file paths were adjusted for the second computer. Not sure if maybe theres something Im missing for using glob or shutil??

        app.log.info(f'Moving {file}')
shutil.move(file, csv_moveto)```
silk eagle
#

did you misspell decrypted in the path name too

rich trail
hollow basalt
tribal olive
#

I NEED HELP

#

i need devs

#

to make an engine

#

im a designer not a dev

#

i need my own engine not unreal

peak acorn
#

huh?

#

bestie nobody is gonna make a game engine

hollow basalt
#

😂

twilit beacon
#

guys what the hell, he just needs a free game engine made from scratch

sly marten
#

There are also tons and tons of engines out there for various types of games

hollow basalt
silk eagle
#

Sometimes... the wheel ain't invented enough.

somber dome
#

Any idea on how to remove iptables rules with the ansible module ? I don't know how to "target" a rule

I've done

- name: removeblabla
  iptables:
    chain: mychain
    jump: ACCEPT
    protocol: tcp
    destination_port: 2001:2005
    comment: "the same comment"
    state: absent

If I do iptables -S on the server (+ grep on my rule) I get :
-A mychain -p tcp -m state --state NEW -m tcp --dport 2001:2005 -m comment --comment "the same comment" -j ACCEPT

I don't know what I should do ? Maybe it's because of the "state", but I didn't find a field for that (only for "ctstate")

And yeah I've removed the rule from /etc/sysconfig/iptables (but I absolutely CAN'T restart iptables or load this config)

lofty token
#

State should be what ensures removal, if it already exists

#

But I don't know exactly how the iptables module matches objects

#

It could be that it does not remove rules, you maybe have to "negate" the existing rule to effectivity delete it

#

(Sorry, I've never worked with iptables on ansible before)

#

Not all modules support the absent keyword in a good way, in my experience

spring cradle
lofty token
#

Quick sanity check - no typos in your chain reference? I'm reading the docs as if chain is the key to lookup a rule

spring cradle
#

you can have multiple rules per chain

lofty token
#

Ah, of course

somber dome
#

Doesn't work, well I guess i'll use the good old shelly

shell: iptables -L mychain --line-numbers | grep -i mycomment | cut -d ' ' -f 1 | xargs -n 1 iptables -D mychain```
tribal olive
#

I need the best engine

#

like a really good custom one for my game studio its a paided indever

#

creative for dev's im a designer and im not a dev :L

#

I cant be a dev kek

spring cradle
#

unity

silk eagle
#

unreal

spring cradle
#

i think they said not unreal

peak acorn
#

Yeah bro you don't need a custom game engine if you're a small time designer...

slender sphinx
#

I need help
Since I'm changing my nginx from port 80 to port 443, I need help on how to setup a private certificate on my rpi4 and on Cloudflare

spring cradle
#

private certificate from like, cloudflare? or something more like lets encrypt?

slender sphinx
drowsy elbow
# slender sphinx I need help Since I'm changing my nginx from port 80 to port 443, I need help on...

I use nginx proxy manager with DNS challange. It is very easy to set up, too.
You can even run it on the pi itself. I run all my services on http, but I access them with nginx.
It is all HTTPS traffic between the client and NGINX; after that it is regular http traffic.
Keep that last bit in mind, keep your unencrypted traffic in your LAN, do NOT let it go over WAN, except if it's over encryped vpn or something like that.

#

docker-compose:

version: '3.8'

volumes:
   data:
      driver: local
   letsencrypt:
      driver: local
      
networks:

  reverse-web:
    external: true


services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    hostname: nginx-web

    container_name: nginx
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - data:/data
      - letsencrypt:/etc/letsencrypt
    networks:
      - reverse-web
    environment:
      DISABLE_IPV6: 'true'
slender sphinx
drowsy elbow
#

Ahh, good to hear you got it to work. If you have some questions about reverse proxies, feel free to dm me (my timezone is utc+1).
I do not know everything though, but I got something running at home, and it appears to be working fine for a while now 😄

stone pumice
#

POV: you just deleted node_modules

silk eagle
#

POV you just deleted selenium's tmp files

drowsy elbow
nocturne galleon
misty thorn
nocturne galleon
reef star
#

I made a media center

rancid nimbus
hollow basalt
#

It is a mission briefing

silk eagle
#

why's my therapist on a mission briefing

nocturne galleon
#

It's a target for pickup

#

research for military, development and gaming purposes

#

also morality and Catholic virtue.

sly marten
twilit beacon
strange marlin
#

Hi, I’m looking into working on a Arduino project and there’s a feature I want to add to it that I’m having a difficult time tracking down parts for. Does anyone know a hot swap battery system kit that’s out and available? Similar to the ones that they use in restaurants where they pop out a battery and slot in a new one?

midnight wind