How to get my HTML code into a published webite [closed] - http-status-code-404

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I feel like this is a simple enough question that it should have already been asked and answered, but I have not seen anything on it in my searches.
I am creating a website for my club at school, and need to publish it/make it live/public, whatever you want to call it. Thusfar it is a simple HMTL-only document, but once I get it up and running I will expand it with CSS and Javascript (as I learn them, haha). So how do I turn this HTML file into a real website? Here is some key info:
The HMTL code is sitting on my desktop in a file (blablabla.html)
I have server space allocated for me, provided by the school. No need to find a domain.
I am familiar with using ssh to visit said server, and I have successively used scp to upload my html file to the server address, but when I navigate to the webpage though Chrome, I get an Object Not Found/404 error.
I'd like to do this the old fashioned way for now, but if there are any reccomendations for web publishing suites on Ubuntu, they are welcome.
So what exactly do I need to do to make it a working webpage? Is there a specific place I need to put the .html file, a specific name it must have? What am I missing?
P.S. For once I do get it working, how do I obtain/upload some MIDI music to give my website that good old fashioned early 90s feel?

yes, try to rename it to index.html if that file is you home page.
At what URL are you trying to reach your website? http://example.com/mysite/ ??? or maybe http://example.com/mysite/blahblah.html ??

Related

What is the best way to store data for Next.js websites? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 days ago.
Improve this question
I'm currently building a website in Next.js and I've gotten to the Blog page which got me thinking about how to handle this page but also whether or not I should approach the rest of the pages differently too. I am just hard-coding all the content (text and images) and I was wondering if there is a better/smarter way to do this? Or should I keep going like this and also hardcode blog posts into my website.
I'm not that experienced so I wouldn't really know how this affects performance or other aspects.
Better or smarter way is very subjective in my opinion. But I will give you some options:
Hardcode it just like the way you do right now. It won't affect performance but you will have to write the code, push it to some version control (if you use one), trigger the build, and make sure it works.
Use Markdown file for every post and have next.js automatically build routes of it. See this tutorial if you wanna take a look. The pros are it's simple (doesn't need a database), and you don't have to write the entire code -- just write the content in a markdown syntax. But you still need to push your changes and trigger the build.
Use headless CMS like Strapi, etc. Personally this is the most convenience way. Write your content, click that Save button, and you're done. But it needs more setup then the other options.
Create your own backend and database setup.
Hope it helps.

How to add Metaplex/Candymachine function to an existing website? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 months ago.
Improve this question
I'm hoping someone can point me in the right direction. I would like to add the Metaplex/candymachine function to an existing website that was originally built to work with metamask. Just trying to save myself from having to redo the website. Thanks
There's no real easy way to do this unfortunately unless you have some prior HTML/CSS/and JS knowledge.
What some people do is take the logic from the CandymachineUI which can be found here CandyMachine.ts which is a type script file and port it over to their own website. You could also attempt to remake the UI calling to these functions and data, or failing that pulling the existing Mint area out the CandymachineUI site (built on React) and attempting to slot that into your existing site. I'd recommend if you took that approach that you swap out the MUI components for div's and your own CSS to save adding MUI to your site adding some bloat (unless your site already uses MUI then you good to go).
Bare in mind you'll also need the supporting dependecies too.
There are also other community built UI's out there but you are going to run into the same issues of porting over all the js/ts to your own site.
I always say it's generally quicker to rebuild a site around an already made mint template than it is to put the mint function into an original.

Using C to output a key on a web page [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is there any way I can use ANSI C to output words onto a web page? Or if I'm completely off, what language (or script) is used to do this sort of stuff?
I wanna try this since I just found a website (virtualpiano), and now I want to make some kind of programming that can read out the "notes" and play it on the virtual piano.
Thanks a bunch!
You should probably look at JavaScript instead. You can write C programs that are run on the web server, and the output from the C program will be the text of the web page, but that is not a very modern way of doing it, and for a thing like a virtual piano you need to run the program on the client, i. e. in the user's web browser, and then JavaScript will be a better choice.
Javascript should have been a better option for you, maybe you might want to check Soundslice, this have something similar to what you need or this SO post creating sheet music with piano or even this github repo abcjs which gives some close to what you're trying to archive.
I hope this helps.

Web application to organize and serve a library of PDF files [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a large library of PDF ebooks, and I'm looking for a web app to host on my site to organize and sort a database of the files, as well as have the ability to annotate them by adding data like publisher, year published, keywords, authors, etc. I have a great hosting provider (WebFaction) with access to all sorts of frameworks, like Drupal, Django, Rails, Node, etc., as well as MySQL and Postgres servers, so the language and back-end aren't that important, although .NET is out.
I've searched all over and just can't seem to find anything that fits the bill, although it seems like someone ought to have open-sourced this before. I'm not interested in services like Mendeley (http://www.mendeley.com) or Scribd, but rather something I can host myself, both to overcome file size limits and privacy issues, but also so I can check out the source and modify it if needed.
You seem to need a document management system.
Check out OpenKM or Nuxeo

Is flat file blog SEO friendly? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to create an online blog using flat file database, but I'm not sure if the posts are going to be indexed by Google. I wanted to use MySQL, but search engines don't see the posts. So I thought maybe flat file db will do the trick, but I'm not sure, can't find any answers online.
I'm also wondering if Google will index my .txt files (the db itself)?
Thank you.
Google will index the web pages your site generates. It doens't know or care whether those pages are backed by a database, a txt file, or just somebody typing really really fast
It doesn't matter to Google what kind of database you use, in fact, it can't tell the difference. The only thing Google gets to see is your public-facing webpages (obviously). If Google indexes your page it follows every link, so if you put links to your .txt files it will index them. However, this is unneccessary and a bad idea at that (you wouldn't want your users to see them).
If you want to be sure Google indexes your page you can submit it to Google yourself.

Resources