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

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.

Related

Is it possible to make a discord js website and how? [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 4 years ago.
Improve this question
Is it possible to make a website that connects to my discord js bot and shows user count?
Yes, it is possible but you are going to have to host it yourself. Typically with these websites, you will have a profile page for all of the servers with your bot in it. You can then modify it on the website and it will store that data in some form that will affect how your bot acts. However, it does look like it requires a lot of research and experience in a couple different languages. I say that anyone can do it with enough time, so I encourage you to try it out. You might learn a thing or two!
Wishing you good luck
-Zaedus
So I found you can use
https://github.com/discordjs/discord.js/blob/6b3bfdd7dede049ba592e94ef1b1acc40a5e37fe/docs/topics/web.md
and
https://github.com/discordjs/discord.js/tree/webpack
to make a website using discord.js but the connection can be controlled in the chrome console like a full eval

Build an interface using only the SDL and the C standard library [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 7 years ago.
Improve this question
I need to make a program using only the C standard library and the SDL. I can't use the Windows API or any other library. I need to use only the C language i.e. no C++, no C# etc.
I have really no idea on how to achieve that since I only know to output to the standard output device (console) and files. So I hope you can give me an example on how to open a window with two buttons (custom built): one to exit and one to perform any task.
To create a window: https://wiki.libsdl.org/SDL_CreateWindow?highlight=%28%5CbCategoryVideo%5Cb%29%7C%28CategoryEnum%29%7C%28CategoryStruct%29
About the buttons, you gotta compare the mouse coords and if the user is clicking on the desired spot to do whatever you want. To get this user input data you gotta use the sdl event handling system. You can learn about it trought sdl's wiki or you check this tutorial http://lazyfoo.net/SDL_tutorials/lesson04/index.php (i'm sure that there are other tutorials out there if you google it).
To draw the buttons to the sccreen you have to use SDL's rendering system.
Your question is not that specific, so that is the best i can do for you.

Build a GUI Application for Windows in C [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 9 years ago.
Improve this question
I'm fairly new to C programming.
My program is running at the console as expected, but now I want to build a really simple Windows GUI application for it, sticking to C (just a window showing some text and a file menu).
So far, I have built everything in a single .c source code and used MinGW gcc in my Windows PC as the compiler.
I just downloaded Visual Studio 2013, but trying to use it was a bit overwhelming. I tried to look for alternatives but I'm confused with all the terminology (IDE, SDK, API etc.) and what I really need to do what I want to.
I'll be really satisfied if you just point something for me to read in order to clear my mind.
Thanks a lot in advance and sorry if this was a bad question.
A very simple GUI application is possible sticking with C and Windows API only.
In short, you have to register your own Window class (RegisterClassEx), then create the window (CreateWindowEx). Note that your window class main element is its (WindowProc) that receive the messages and that you have to implement to act as you want. After that, your C program should run the message pump (PeekMessage and DispatchMessage) for Windows to do its stuff and allow interacting with your window.
See the MSDN documentation for these functions to get help and examples.
YOu can start learning GTK for developing GUI using C language . you can get the same at
http://www.gtk.org/development.php

How to get my HTML code into a published webite [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 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 ??

Where to make source code publically available [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 8 years ago.
Improve this question
I've just finished a mini-project (a graphical 2d silverlight tag cloud) and I've made the source code available on my website as a zip file - but where should I put the code to allow people to find it and evolve it if they wish? codeplex? but I guess this would count as an inactive project?
http://sourceforge.net/
Find and Build
Open Source Software
Google Code is great, free, and easy. It supports subversion.
http://www.codeplex.com/ This is run by Microsoft, which should be a fine match with Silverlight.
I recommend github.
CodeProject is good too.
It depends upon what you plan to do.
If you want to share the code with the world and open it to large cooperation, definitely go github
If you want to setup a nice web site, with a complete community with mailing lists, and a selected number of authorized contributors, go sourceforge.
Alternatively, you could use one of the sourceforge-like : google code, codeplex, savannah, berlios...

Resources