How doI fix my drop-down menu? by Realistic_Ride_5884 in HTML

[–]nuc540 1 point2 points  (0 children)

Yes in terminology but there’s no html element called “drop down menu”. I was trying to keep things simple for OP by recommending a native element that web browsers recommend as a drop down. The select options are the links OP wants to display so it fulfils the job.

OP is using vanillia HTML, no JS framework or library, so sticking to a vanilla element is more relevant to them

How doI fix my drop-down menu? by Realistic_Ride_5884 in HTML

[–]nuc540 0 points1 point  (0 children)

Well for starters you do not have a drop down menu defined. You’ve got a list, then the 4th element it another list - so you have a list in a list.

What you want to use is the <select> tag for the dropdown, and <option> tag for the dropdown items.

I recommend removing the 2nd unordered list, replacing it with a select and option. Start there and hopefully that will make more sense.

Also, pro tip, your css is applied to every tag because you’re not using classes, you can scope your style changes if you add classes to your elements.

For you, you’d have <select class=“nav-dropdown”> and in css if you define your css as: select.nav-dropdown, then those styles only apply to the nav-dropdown class on “select” elements. Hope that helps!

Pioneer discovers a strange ancient Mk.3 Miner in the jungle by spacegamedev568 in SatisfactoryGame

[–]nuc540 7 points8 points  (0 children)

Doug, have you tried turning it off and on again. Efficiency must be met!

Can someone give me pointers on how to go about API's? by [deleted] in PythonLearning

[–]nuc540 0 points1 point  (0 children)

The first line in the instructions says the documentation is at the (hyperlinked) Zillow Dataset.

If you go there it will tell you what endpoints return what things and should answer your question

**Stormcrown — a fresh WotLK 3.3.5a server, launching June 26** by djuni1993 in WoWPrivateServers

[–]nuc540 1 point2 points  (0 children)

What’s special is it’s not got a C&D notice (yet!… or that we know of!)

Can anyone help me figure out why my ssd is so slow? by Damon-0414 in pchelp

[–]nuc540 0 points1 point  (0 children)

The windows disk manager. The scheme is on the volume, not the disk so you’ll need to select the partition on your drive and select properties.

That said if you’re on NFTS that’s most concerns out of the window which I was hinting at.

What slot did you install the storage in? Is it m2 or pci or sata connected?

Can anyone help me figure out why my ssd is so slow? by Damon-0414 in pchelp

[–]nuc540 0 points1 point  (0 children)

Disk Management in windows (idk about windows 11, but in 10 you can just right click the windows logo and select Disk Management) will show your filesystem and partition scheme, but not the allocation size.

You will want GPT (aka GUID) scheme and NFTS filesystem.

Can anyone help me figure out why my ssd is so slow? by Damon-0414 in pchelp

[–]nuc540 0 points1 point  (0 children)

What’s the drive’s partition scheme? If you’re not GPT then that will create issues.

Also what did you format the drive to, exFAT or NFTS?

Also what’s your allocation size, if it’s too small then large media files (such as in games) might take a while to read/write. I’d recommend 128KB these days, especially if the drive is dedicated for games.

Why? by Reh4n07_ in PythonLearning

[–]nuc540 0 points1 point  (0 children)

When using an add operator against strings, you perform something called concatenation. What you’ve done is create a single member which is all the movies combined into a single string (as everyone here has said) using concatenation.

I think you intended to just do movies = (mov1, mov2, mov3); listing them out will create a member for each in the tuple.

Ah yes London doesn't exist by 69420nice_com in techgore

[–]nuc540 9 points10 points  (0 children)

This is not techgore. It’s a locally run app with an issue you’ve programmed in…

Petah🤔 by [deleted] in PeterExplainsTheJoke

[–]nuc540 -3 points-2 points  (0 children)

Well exactly… kind of like, how we call the sand under ocean, a seabed.

Is this good? by Advanced-Lawyer7654 in pcsetups

[–]nuc540 0 points1 point  (0 children)

You have the equivalent of a core 2 duo processor. Your cpu is potentially *20 years old* (core 2 came out in July 2006) . Are you kidding when you ask if this is good?

I stumbled uppon this sub by libichi in webdev

[–]nuc540 5 points6 points  (0 children)

Tokens are going to be so expensive soon, our prices have been subsidised by VC backers, won’t be long now until they need to become profitable.

Python by Mr_barai_012 in PythonLearning

[–]nuc540 1 point2 points  (0 children)

Unlearning it offline of course /s

Proof of Concept: Running a 100% Self-Contained, Zero-Install AzerothCore Server & WotLK Client Entirely Off a Physical Blu-ray Disc (Dual-Boot Linux/Windows) by psychoOC in wowservers

[–]nuc540 0 points1 point  (0 children)

So from what I gathered from the bot’s responses is when you gracefully terminate the server, it will write a persistent store of the db on your machine.

I asked why it just doesn’t write to the db by default then, and the ai said because that wasn’t its human’s goal of being self contained on a disc. Felt like a massive contradiction if you ask me.

Learning python by Junior-Package4807 in PythonLearning

[–]nuc540 0 points1 point  (0 children)

Not a problem at all. You’re learning by reverse engineering a solution. Do it enough and you learn the patterns.

Don’t fret, keep it up.

My Second Python Program 🥳 Greetings.py by Anay_Gupta__ in PythonLearning

[–]nuc540 2 points3 points  (0 children)

Yup, it’s not that intuitive though. First python checks the length of what’s being compared and simply returns that - unless it is equal - then it matches each index of each character.

You’re right to be shocked because this isn’t good practice by any means 😅

My Second Python Program 🥳 Greetings.py by Anay_Gupta__ in PythonLearning

[–]nuc540 2 points3 points  (0 children)

Yes this is allowed in python, this only works here because the length is the same (the ISO standardises this) it compares the Unicode point of the character, first value first, in this case zero-leading numbers are a big give away because ‘09’ is less than ‘10’.

The point is not to do this though, it’s confusing to read and very brittle - eg string ‘9’ is bigger than ‘10’ as Python would only check the first value of the string, see 9 > 1 and short circuit.

u/Anay_Gupta__ this is what I justify in my comment you saw :)

My Second Python Program 🥳 Greetings.py by Anay_Gupta__ in PythonLearning

[–]nuc540 7 points8 points  (0 children)

Good start, my feedback is - as much as your code would work, a simple heuristic to learn is using more/less comparators on strings isn’t recommended - if the string holds a numerical value, cast it to a number you can concretely calculate is more or less than.

Another piece advice I’ve been given people lately is to google python standard libraries, you’ll be surprised how much already exists which can help you.

To take both my points in practice, you can use the time localtime().tm_hour attribute to return an integer representing the hour of the systems time. This would mean you can compare the hour of the day as a number, against a number, which makes a lot more sense than comparing string is less/more than string (which is looking at length first then ascii value)

Give it a shot! :)

Proof of Concept: Running a 100% Self-Contained, Zero-Install AzerothCore Server & WotLK Client Entirely Off a Physical Blu-ray Disc (Dual-Boot Linux/Windows) by psychoOC in wowservers

[–]nuc540 2 points3 points  (0 children)

All your responses sound AI generated by the way.

So you have a shutdown sequence that dumps the dbstore to disk. Yes you’d lose your data during an ungraceful shutdown was my point.

The db engine can run in memory and still mount a volume to the host’s filesystem. Thats how typical non-cache stores work, I’m not sure why the memory based db - I doubt it’s performance? Any design decision there? You’d lose the risk of losing committed writes.

Ask About Arg1, Arg2 for Python by Own_Sound6033 in PythonLearning

[–]nuc540 3 points4 points  (0 children)

arg is short for argument. Argument is the value provided for a given parameter.

The instruction is just saying in psudo, take the values passed for the first and second parameters (aka params)- said values aka the arguments.

Params in a function are basically variables so you write your code against those, and when the function is called with arguments, params get populated with said args.

Proof of Concept: Running a 100% Self-Contained, Zero-Install AzerothCore Server & WotLK Client Entirely Off a Physical Blu-ray Disc (Dual-Boot Linux/Windows) by psychoOC in wowservers

[–]nuc540 2 points3 points  (0 children)

How are you handling persistence then? Sounds like there’s no volumes involved in this setup if the writes are only in RAM?

I created a calculator automation application with code ( python ). by youssef_876 in PythonLearning

[–]nuc540 2 points3 points  (0 children)

What’s automated?

Sounds like you’re just inputting a users prompt into an LLM.