#development
1 messages · Page 7 of 1
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 ...
complicatored!
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?
If anyone happens to come here, as I did recently, looking for java help (the basics), I thoroughly recommend this video
Java tutorial for beginners - Learn Java, the language behind millions of apps and websites.
🔥 Want to master Java? Get my complete Java mastery bundle: http://bit.ly/2tKoy8C
👍 Subscribe for more Java tutorials like this: https://goo.gl/6PYaGF
📕 Get my FREE #Java cheat sheet: http://bit.ly/2JNlQnw
⭐️ Want to learn more from me? Check out thes...
Maybe someone will find it if they use the search function
or they could search google
What is wrong with you?
i could say the same to you
mom dad stop fighting
https://tenor.com/view/goku-ultra-instinct-gif-24397083 releases hotfix and it doesn't work and publish deadline is less than 6 hours away
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
I feel like this persons having schizo moment
Yea spamming
You good bro? 
we're coders we dont get mad at bugs we get revenge by killing them
consume bugs to make your product stronger
This is peak schizo moment
Wow
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…
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
your first mistake was using a language with classes 
boo
woo
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
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
I feel you, I think the worst thing tho is when I read documentation, not realising it’s describing how to fix my issue
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
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
I got inspired so decided to make my own personal website (its still under dev, just finishing on the design)
https://dev-world-official.web.app/
I would appreciate some feedback
I am a web developer
To be completely honest with you, it's too much
For a personal website
Ideally you want something simple, the KISS principal
Keep it simple stupid
☝️
Website built like it showcases a luxury brand
It runs at like 15fps. Instant turn off
- site has a "click to enter" interstitial - these died 15+ years ago.
- sites that autoplay audio are immediately blocked on my network.
- big 3d dude is extremely distracting and covers text on the page.
- users rarely expect to click & HOLD to make a site menu work.
- difference in font sizes is too much. (headings too big, text too small.)
- 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.
@copper ravine will this work
uh
I guess for short runs for USB 2.0?
yeah
i asked ai how I would do this
and this is what it said it also said I don't need a micro controller
Well, chat gpt3 is certainly confident, even if it's wrong
damn
so I do need a microcontroller?
I mean, no, but I don't know how far the USB signaling will work over twisted pairs
wait what's twisted
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)
;- ; so what do I need to fix on the schematic
well, I don't think there's a "fix"... what you're trying to do just might not work well at all
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
You will spend a lot of time in step 6 :P
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
Dude 3d modeling for games is fkin hard
thank you for the feedback
thank you for the feedback
fair
I guessed that it looked too fancy + not really accessible
I'll work upon that and probably come with something better
thanks
Now that's gangsta
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 
So long as the hydra was equally mythical
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 
functionalities aren't*
Dang I need to hit up Grammarly or something. Otherwise I need an editor for every single post on disc...
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.
One single js file with no line endings trimmed is always the optimal way for the client js
I am talking about server side
best practice is to split them up
I fail to see how this is relevant
https://dontasktoa.sk/ is better
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
just saying this froze my phone
KISS
If you asked me that I'd just say it's a bug in the language because I hacked it together in less than a week
the creator of a language could say that if they didnt want that behavior 
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.
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
3Blue1Brown vibes from that GIF, thanks!
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.
In Rust, why "Struct async_std::net::TcpStream" does have clone but Struct tokio::net::TcpStream does not have clone?
anyone knows workarounds for google map marker api? been getting 404 for my GET requests
Guys is there any way in visual studio in which I can run a .bat file as admin using button1
No no
Oh
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 ?
Not sure, never used VS, didn't notice that you meant VS and not VSC, my bad
It's ok
Ok
I don't know where they need to be connected, but you can get a bit of info about them from this article: https://www.allaboutcircuits.com/technical-articles/introduction-to-usb-type-c-which-pins-power-delivery-data-transfer/
alr and do you think this'll work
if the resistors are set correctly to not allow too much current (max 100mA without USB negotiation) then sure yeah that will work
Yeah I made sure
I was so confident I already ordered them lol
just gotta wait for the parts
what value resistors are you using?
uh 62ohms
I had to go with 62 because all of the 60 ohm resistors are all preorder
Pls someone answer ( https://stackoverflow.com/questions/74944133/running-a-external-bat-file-as-admin )
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.
that is not a question
why should I answer it?
😐
Questions end in question marks usually. Statements end in periods.
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
But u made it in python , i wanted for visual studio ( windows forum app .net framework
C#
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.
You can probably get away with 10mA per LED, so 150ohm resistors
That's... not how you check that
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
1/4W ?
or maybe 1/8w, I can't remember atm
250mW, yeah 1/4W
alr
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...
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
damn and I can barely create a usb led
Adafruit Neopixel’s have amazing documentation and libraries! good fun getting it all working:).
I already made it I just have no idea if it's gonna work lmao ^ gotta wait for parts
ok i answered
@copper ravine is this good wiring for the D+ and D- pins
Could have used a smaller dev board with a more capable chip on it. Or just a smaller board.
i agree, i didnt really wanna buy anything so i just used what i had
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.
a smaller board would make it much easier but im happy with the results
Fair enough. That just looks uncomfortable from a distance.
na there is a thick padding layer that goes over all the shit inside
How much time do you have on the battery?
large power bank lasts about 5 hours
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.
yeah they use about 2.5A on max brightness \
i got mine on 70% brightness so its like 2A
Uh I'm using a microchip chip I got no idea what that one is
The atmega 328p-pu is a microchip part or is now.
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.
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
It looked ok enough for USB 2.x
At least as to my knowledge. First try to get your led stick working.
These
i mean i'm just waiting till I can get the parts i've already got the boards
i can design smth else in the meantime
Oh...
you didn't notice these were real?
I did. Soldering resistors, LED's, and a USB connector shouldn't take that long...
ah
when I get the parts it will take me about 20mins to finish all 25 of them
I just want you to understand how hard things get to solder when they get more tiny.
I know that
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
but atleast these are through hole
well except the the 4 pins that should be easy to solder
yeah I was using 0201
Imperial units?
i'm not gonna use smth that small unless I need to
I hope it would be imperial not metric.
What you want...
also ti likes to use those alot
who actually
prints yellow circuit boards
what watt hour is that battery bank? That seems very short unless you are going full blast with them
they use a ton of power, about 2-4w depending on what color they are displaying
sorry A
Amps means nothing without the voltage.
Not sure if you've seen this, might be fun
Yes
using a USB powerbank didnt think adding voltage was necessary 🙂
happened to leave a bug in my code but the result looks kind of cool so i decided to post
The battery voltage on the cells differ based upon the battery technology and battery banks that support the USP power delivery spec allows for a few different voltage outputs. 5V, 12V, and some other voltage levels.
What is it supposed to do?
Are you using the Braille characters?
You could use the Bralle char set to get more dots. https://interglacial.com/~sburke/braille/table.html
Or the Unicode version.
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"?
seems like a cool idea, but i hardly think ill be able to add it to the program, since middleschool will start and most of my day will just be spent riding the bus to school
man this stuff gets more and more intresting and then school just ruins it all
@twilit beacon you might get something out of a terminal video player I wrote, hits on some of the same concepts
Roblox development
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)
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.
my new AHK github project : https://github.com/XX-Ginning-XX/SabSoftKey
what is this
a video
a video
Reminds me of rule 110
reminds me of rule 86
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.
told to come here
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!
here ya go
The whole point is that you design the clothes...
#development
proceeds to ask for a logo
...
quick question, can i replace arduino pin 13 (DIO) with a gpio pin
like what i’m asking is do they work the same
If anyone has experience with clips ai programming language or knows a source to study it from in video format
Please dm me
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
yes they do
nas servers. people always reccomended me freenaz zfs but my friend suggested to me ubuntu server
whats the difference?
ubuntu is just linux
you still would need to setup your storage, freenas has zfs built in, you can do zfs on ubuntu as well
what im trying to get out of the system is if i plug my sd card in from my camera for it to auto cut and paste to a specific folder.
is that possible or not?
sure
it's possible on both, but that's not really a NAS thing
that's an ingest server type of thing
i should probably have it setup to my computer and use the nas as just a backup ig
I know it's basic but I made it and thought I might as well share it
https://github.com/JordanVL1234/PassGen
Nice, altho i think it could use more descriptive variable names. I have a hard time understanding it at first glance
# 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
Yeah, I get that I took a nap, woke up, and had to analyze my variables thoroughly. 😂
Thank you, I didn't know that was possible. I'm fixing it now.
A little thing, you should create a .gitignore and put Passwords.json in it, it seems to be a sensitive file and should not be in git
Another thing, your json is not standart. A standart json would be:
{
"Spotify":"5w8=^2^e"
}
Sensitive file - I haven't updated any of my passwords and I'm not for a while. I uploaded the file to show how it looks at the moment.
Standard* JSON - I've barely used JSON and am struggling with the python library. As shown in ToDo the "Output (Needs a better format)".
json.dumps():
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
Idk what that does but ill look into that and try it if I can, Thx
and json.loads():
usage would be like
jsonData = json.loads("string") # Hint: The string can be the contents of a json file
Oh so basically pulling the content adding the new password then overwriting the file content?
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.
Yup yup
oh that's cool, starred it
i swear bro how do you guys do this
idk man, we do what we do
No bitches 😔
Depends what you want to do
Golang master race, lol
Assembly
Fortran
golang is fun
Golang is nice
HTML is literally the hyper text markup language similar to markdown for readme on git hub.
Java is a bloated outdated piece of shit.
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)
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?
Why not just use TailwindCSS? It's so easy to setup and you can literally site build with utility classes.
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
What exactly do you mean by access security keys?
@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?
With some U2F library, https://developers.yubico.com/U2F/Libraries/List_of_libraries.html
Still waiting for my keys to arrive, will look into it more when I get them
^ webauthn api
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
I think you'd find this interesting https://blog.greenroots.info/10-lesser-known-web-apis-you-may-want-to-use
Broadcast channel API would be useful for a chat app
Yeah,but thats only local, right?
Yes, but it would allow you to keep messages between tabs in sync
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)
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
Will floatplane have an Apple TV app? I’d subscribe if I could watch on the TV
.<
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
they said no in the past about them having a floatplane apple TV app, or a roku-specific app, etc.
i even offered to make an unofficial roku or apple TV one and then give them control over the repos containing the code, maybe now that linus is going to be trying apple TV he might reconsider. apple TV has been totally fantastic for as long as ive hadd em
Are you using a framework or is this all your own code
so?
is this available on github
How does this relate to hardware or software development?
sorry, i must have been half asleep on mobile and clicked the wrong channel xD
Is this the place to ask if I have a website question regarding CSP headers?
I guess so.
Depends
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
No
Do it, no. Assist maybe...
ahaha now i can be the one posting this for once 
I'm writing a python todo list that uses SQL but the table not being put into the db file
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
How to keyboard hand wiring adding LEDs?
that sounds like if you sent a google search as a message
returned 10 000 results
This isnt google?
Whyy not
Google ain't say nothing lol
because you need to actually search
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
Ok
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.
JDK is a super set of the JRE
as for where to download 17-19, here is the link https://www.oracle.com/java/technologies/downloads/#java18
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.
or just make them install the SE versions of java like most of them do 
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
They arent on
Switches
I have done LEDs and buttons on one matrix before.
where to wire LEDs
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.
You will need to add resistors to your matrix too.
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?
didn't research
not showing on pc
?
oh it's a pico
read the docs
I did read
Didn't research
Didn't research
have you tried researching
i buyed a data cable and works
Ug
idk what is problem
oih
supposed to look like this
YOOO
SHE WORKS!
(diode orientation was wrong)
Please don’t tell me you actually use notepad
ofc i do (real)
i used notepad for small editing
but i have other IDE for big project
i goofed it up
dont go poking around with a multimeter on a powered board ig
nah i think my usb port died 💀
its all fun and games until you hit tab in notepad instead of spamming spaces
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.
That's just sad 
This is the sort of nonsense I've come to expect from a company that employees like 150k people.
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
I hope you are joking
as long as they are not stupid its fine
Wdym
I put all my passwords in a passwords.csv file
its on my desktop, next to bank.json and btc.txt
This may be a cope moment but man i LOVE quaternions. Now i spent far less time coding those (with 0 if else statements
), they require far less computing than rotation matrices and they actually work
so how do u implement the try catch in a calculator built in js? im doing it like this but it isnt working
You need to have promises inside the try pretty sure
So await
Promises?
are you sure it never reaches the catch block?
what is the next instruction you end up at if eval fails, did you check that?
because try-catch should just work like this
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?
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
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
I would advise to save every imagine to disk instead.
since that's how most 3d workflow work
3d file -> render img -> video editor
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
Yea that's up to you still.
- Keeping it in ram is convenient
- Saving it in disk makes more sense to me
you could do it async if you can
For what? Generally you can just pipe instead if that’s the case.
if i have three leds and i connect each + leg to a different gpio, can i connect the - to the same gnd pin
yes
ground is ground
ideally you should be using a breadboard for prototyping
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
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
Uhhh I mean yeah probably
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?
If it compounds, you can't just stack interest like that
change it to 3pts
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
maybe not a loop, but something like
interestMultiplier = interest + 1
compoundedMultiplier = interestMultiplier ** numberOfMonths
totalInterest = (cardBalance * compoundedMultiplier) - cardBalance```
to be explicit
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
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
point was probably just to spot the mistake in not compounding
how can i ID a pinout like this
also anyone know if that second to bottom pin has its pad ripped off?
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.
search leads to reddit guy also looking for tp pinout
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.
that does look like a ripped pad
F, the unconfirmed pinout i found says it's NC, which i don't think i need
NC = not connected ie not used
no luck finding bu21036efv sheets
i did find this thoug
What is
what's
minecraf
what about it
what did u make
you didn't watch the video at all did you
the suign editing thing?
idk what a suign is
sign
what do you want me to sign?
plugin
nice
This tbh
why do iget an error with this?:
fn main()
{
let _x: [f64; 500] = [0; 500];
println!("{_x}");
}
its rust btw
Care to share the error you are getting?
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
soooo??????
I'm not a ruster, but the error says help: use a float literal: "0.0"
and doesn't implement "`std::fmt::Display` --> src/main.rs:7:15". So you probably need to import fmt
well i've fixed the error and now i have a professional spam generator
how did you do that
custom plugin probobly
if you mean code I can show the code
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);
}
}
}
}```
Now, does it break if two people right click on the same sign? 😈
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.
was reading rust documentation cuz I dunno anything about the language, I think the 2nd error is that you're possibly initializing the variable incorrectly?
the semicolon between values in [0; 500]; looks to be the issue with that "doesn't implement std::fmt::Display" error
How magical is this transformation
Turn a grid into a grid of equilateral triangles
(or in reverse, turn equlateral triangles into squares)
positioning gives the illusion but the little thing sstay the same shape they just move
the whole space contorts
yeah
its an optical illusion, they actually dont move at all
???/
wut
they move lmao
he means nothing 3d happens
it is a skew on the coordinate plane animated
no your eyes only think that because its an optical illusion bro trust
I mean ... all graphics are an illusion
you get it
anyway
goober
why is ffmpeg such arcane wizardy
how did you do that
with a custom plugin
no prob
its an array, but yes
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>
variables be variables regardless of data type
lol
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.
Do they mean Verifone uses posnow?
variables be primitives or pointers
rate my code
(){ >(<&0) 2>>({<<(<$1)}>$(<&0)) 2>>({<<(<$2)}>$(<&0))} =(<<<'hello ') =(<<<'world!')
Unreadable 1/10
oh my apologies here's some whitespace for your troubles
(){
>(< &0) \
2> >({< <(< $1)} > $(< &0)) \
2> >({< <(< $2)} > $(< &0))
} =(<<<'hello ') =(<<<'world!')
Oh that's much better
did someone say whitespace?
def main():
def main_hello():
return "hello"
def main_world():
return "world"
print(main_hello(), main_world())
main()
That is so wrong, there should only be one tab instead of five
just configure your tab width to be 4/5 of a space
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
how did you guys get into programming?
indentation should always be whatever the standard for the given language and/or team dictates
unfortunate accident
how did this accident occur?
language designers are idiots
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
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
and I don't mean this to be critical, rather the ability to switch between different standards, styles, etc without being hindered is a vital skill to have
indoctrination from a young age
love me some good ole 1-space indents
modifying minecraft mods
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?)
all my concurrency is done in zsh
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.
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
i mean, other than running curl_easy_init() for every request, which i assume would be horrendously inefficient
make a thread that queues and executes the curl stuff
or yeah init on multiple threads
I hacked together a step counting smartwatch (minus the form factor).
just don't use multithreading ez
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
because you dont have the library installed
did you install it with a different version id you have both python2 and python 3 installed
also why windows
i have python3.10 and 3.11
thats a problem
great question, i can get a vm up
are you running it with python path/to/script.py
if so, python --version will indicate if it's due to a version mismatch
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
i appreciate that you blanked out your username [redacted]
anyways launch a repl session and first try import pytube then if that works try from pytube import xyz
i'll try to get an ubuntu vm up
because i even asked chatgpt and searched the whole internet and no solution
the implication here is that the library has updated such that your script is attempting to import something that doesn't exist
so if i tell it to import YouTube (thats what i wanted) then it apparently doesn't exist
did you try just import pytube? you had only mentioned the from... syntax
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)
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
i believe so too because it still has the same problem that it doesnt know where it is
which then makes me assume that python defaults to the global path on windows if run however you're running it
that makes sense
in which case running pip as administrator should install it globally i believe
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
if unspecified, should be the directory your shell was in when you launched the script
thanks man, appreciate it
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
the total sum for a given pixel will be zero if the vertex has the same integer values, this doesn't mean that every vertex should have zeroes
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]...)
Oh yeah i guess its true that it isnt very often that you'll be exactly on a vertex
java pays the bills
a surprising amount of the internet relies on java
some even say that C# wouldnt exist without java
My brain splodering at simplex noise
Just use Bash
bash script everything yes
just do everything manually
my friend is not friendly to interpreted languages and im strugglin lol
can someone explain what llvm does exactly? i am thoroughly confused by everything written
it's a bunch of tools with different purposes, but the "overall" purpose is to have frontends that compile a language to an intermediate language, and then backends that compile that intermediate language to whatever target you need (different kinds of machine code, wasm, etc)
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.
thanks!
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 😄
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.
Ubuntu is fine
Ubuntu
arch
lfs
BLFS
^
arch is also fine
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
Fedora
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'
(organizing imports by hand? what year is this?)
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.
i disagree.
I finally managed to implement simplex noise myself, researching and calculating all the values and whatnot myself
So, giving a crack at learning some modern web dev stuff. Anyone got a favorite project idea to implement for doing that?
classic todo list?
a tool you could find useful, like a file conversion tool?
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.
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.
I spent more time thinking what to code than to code the bot itself.
Why does Google Chrome not support mathml as well as firefox and other systems that render it to SVG?
Postgres is hilariously shit at visualizing a schema
You just had me realize that I've never used automatic visualization for relational database schemas o.O
Not gonna lie, I really like pgAdmin
me too except for data visualization
PGAdmin4 is so terrible it's not even funny
it's gotten a bit less bad but it's still basically unbearable
Just want to show off my system lockdown script, it's pretty good 
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
can't believe there's people not using datagrip in 2023
Watching a .NET tutorial and the instructor has 3 different VS icons, what's the one in the middle?
That's the insiders(nightly) build.
There is or was a light blue icon for Blend an xaml UI editor.
DataGrip IS the shit
Love using it
What is it
Ooooh, cool
Jetbrains's database IDE
Simple state machine test
Context:
- "Yahagi" to start the interaction
- Saying "Yahagi" again will not redo the whole greeting part
- "Nothing for now" or any dismissal words to dismiss her
- Saying dismissal words after she's dismissed will not dismiss her, since you're not interacting with her
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.
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
?
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
Nfc does not work this way out of the box but obviously the program can still hook into the hardware to read the data on the tag
Barcode readers usually don't work that way anymore either that's a very AS-400 era thing
Anyone know how to (or where to find out) create a chrome extension that changes the css colours in a specific URL
not sure of existing options but this would be simple enough in greasemonkey
which means i need some library from the programming language i use (java) and read the data from the nfc tag
also, wdym about that. this worked last semester
forgot to mention, we used that for the inventory system
no NFC is different
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
how would the attenence system work?
why not just a qr code?, more phones support it vs nfc
- 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
so it's a clock in/out system
- software starts adding time in the database
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
wdym by this
starts incrementing time?
that doesn't sound efficient
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
ah yeah, that makes sense. The way it was worded was weird
sorry, i'm not from the US 
that's just the glimpse of my system to be passed at the end of the semester
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
Nah they won't
whoops, yes indeed
i've seen the GM_ enough time that it's implanted
there's also https://violentmonkey.github.io nowadays
An open source userscript manager.
Link is supposedly a json object that can have properties like any other, so why does Link | Object also allow strings? this also happens in other parts of the standard, i'm confused >.<
https://media.discordapp.net/attachments/184802320565927936/1068980822121648218/image.png
looking to learn HTML but I’m not sure where to start. what would be the best way to go about it?
I would like to make a minecraft server can someone tell me how or send a link to a video or tutorial
We are setup.md, a community focused around documenting the important parts of Minecraft server administration and ensuring everything can be found in one single place.
Thanks
Any Regex Gods here?
because everything is an object
well I try not to describe myself like that
AAAAAAA
lmao why
I am trying to get the next 2 words after getting the matched word
like "word match word1 word2 word3"?
match the next two words then
Lemme try
print(re.search('(?<=verbose_answers )(\w+\s\w+)', sentence).group(1))
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'
Ohh yeaaahhhh
Bot will not change unchanged values now (no_ping defaults to false)
Please elaborate
for which language specifically
The issue isn't deserialization
I'm asking what part of the standard allows that string to be there to begin with
a string is an object
And where does the standard say that? I looked for it
are you talking about the ecmascript standard or what exactly?
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
it's likely written with javascript in mind
anyways, in this case it looks to be that Link allows a string
Probably, but i couldn't find anything specifying that
check the definition for Link, it doesn't really say it directly but it can be inferred
Finally I can sleep soundly tonight.
Context:
- Variables can change during runtime which is poggers
- Correct keywords will be processed, and wrong keywords will be ignored
- 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
just write a basic language for it
What
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
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.
not really sure where you're looking, I had just glanced at https://www.w3.org/TR/activitystreams-core/#link
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
What do you call these small link images? Usually from old websites
Oh hi nep
forum badges?
hewo :3
hi nep
purr~
ChatGPT got a math module and I am feeling a bit naughty again
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.```
So it is more like 420 rows and 3 columns?
ah yeah, my bad, mixed those 2 up
but still, that mistake aside, where am i going wrong with this code?
What do you define as "weird numbers" in?
can anyone tell me why this always outputs weird numbers?
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
Can you try:
printf ("%f, %f, %f\n", point[i].x, point[i].y, point[i].z);
😄
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
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
thx, ill add that to gcc
me: i want to Doom 1
mom: no we have Doom 1 at home
the Doom 1 at home:
did you code that?
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+
pointers
also yeah %i lmao
using C is a code smell
yeah, about 120 lines
Very cool
added "lighting"
Nice
the menus in the game im making
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?
is anyone good to make games that want to have a little project with me
i cant believe i actually just spent 20 mins playing this lol
Did you enjoy it :)
its very good :)))) kept me amused haha
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
Me neither
when in doubt, steal an idea from Leetcode:
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
rand = 4; // chosen by a fair dice roll
import random
I’m making a big c++ game, it’s like the modern version of the elder scrolls lol
i've just started dual booting and playing around with natural language processing models from hugggingface, anyone else here on that journey?
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
makes sense, the pseudo-randomly constructed world decides biomes in order to make the "borders" between the different biomes seem more "natural"
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
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
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.
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
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
Been doing nlp for the last few years in grad school, just graduated, but the space is super hot right now so many cool things you can do with large language models 🚀
Enjoy the learning 😊
Thank you!! There is a group building an open source ChatGPT - open source has gotta win here
I assume you can just print(track) and see what values there are.
or, if track is super long:
import json
with open("output.json", "r") as outputFile:
outputFile.write(json.dumps(track, indent=4))
Okay thanks
^
Can I have the code to put on my web server?
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
I just want the open source one. I can wait years
Do a search for "LAION Open Assistant"
Ok
Can you still send me the code when you're done
What's code...
It's on GitHub no?
Is it possible to make an android app to change the look of emojis on the phone?
Unless you can change fonts, probably not.
I can try
If you would like to make a proof of concept that would be nice (I wouldnt know where to start)
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 ...
I am pretty sure a bit field can have multiple bits active at any given time (or at least this is how I have always seen it implemented)
Bit flags can definitely have multiple set
yea that seems to be the only difference as far as i can tell right? onehot encoding is just bit fields with restrictions? (which is why i said "specific version")
Basically
Electrically I suspect there is a good reason for a hot bit implementation (such as multiplexing)
seems very "buzzword"-ey
Well be careful, they are strictly speaking the same thing.
You can implement hot bit multiplexing in software via GPIOs for example
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
.
.
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)```
did you misspell decrypted in the path name too
Oh my god
Yes your god
I NEED HELP
i need devs
to make an engine
im a designer not a dev
i need my own engine not unreal
😂
guys what the hell, he just needs a free game engine made from scratch
What’s wrong with unreal?
There are also tons and tons of engines out there for various types of games
He wants a real one
Sometimes... the wheel ain't invented enough.
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)
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
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/iptables_module.html Docs indicate that it should support state though
https://unix.stackexchange.com/questions/108169/what-is-the-difference-between-m-conntrack-ctstate-and-m-state-state
quick search shows that ctstate in this scenario might be NEW?
Quick sanity check - no typos in your chain reference? I'm reading the docs as if chain is the key to lookup a rule
you can have multiple rules per chain
Ah, of course
Okay thanks i'll try that
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```
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
unity
unreal
i think they said not unreal
Yeah bro you don't need a custom game engine if you're a small time designer...
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
Hmm, trying out for help on #networking
private certificate from like, cloudflare? or something more like lets encrypt?
from cloudflare, but the topic is now continued on #networking
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'
i think this is complicated for me at the moment, i only need to install certificates from cf and i got it working
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 😄
POV: you just deleted node_modules
POV you just deleted selenium's tmp files
What did you expect by putting a black hole in the trash?
I made a media center
What's the story behind this? Why did you need to send this as a photo?
It is a mission briefing
why's my therapist on a mission briefing
It's a target for pickup
research for military, development and gaming purposes
also morality and Catholic virtue.
Roblox? I mean never tried it, but that's what I've understood it can be used for... non-devs making games
prepare to dump millions of dollars for that
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?
Don't think there is such thing available, you can design your own though
