C++ :: Make A Terminal For Website And BHXSpectre Recommended Cgi?
Nov 22, 2013
so i want to make a terminal for my website and BHXSpectre recommended cgi (which i love... c++ web design. just one more reason to not use any other language). anyways, im wondering how would i generate the html for the base of the terminal? ie just the window that i will be writing to
View 2 Replies
ADVERTISEMENT
Nov 27, 2014
I've recently refreshed my mac by reinstalling the operating system. Uploaded the previous C and C ++ source scripts I was working with but when I go to compile them through the bash terminal it says command not found? Im not sure whats going because I thought that all the gcc files were already available? What am I messing here.
View 5 Replies
View Related
Jun 29, 2013
I wanted to make the terminal screen bigger in my NCurses program. Let's say if the defaults are 25 LINES and 80 COLS, I want to set them to 40 LINES and 120 COLS.
I've tried resizing all windows, but that did not work, because the actual terminal (console) was not resized. Then I found functions resizeterm and newterm, but they did not work. As far as my understanding goes resizeterm only updates NCurses information with the current configuration, while the window itself is not actually modified.
NCurses man page wrote:The function resizeterm resizes the standard and current windows to the specified dimensions
If I haven't made myself clear ( I sometimes make a mess of things... ), another example would be that I want my program to be fullscreen when I start it. Is this possible? It should be, I found a fullscreen NCurses program once, but the code was too confusing for me to understand.
Having read about things like SIGWINCH, I assume you must define a method for resizing the terminal screen yourself, I don't know where to start?
View 11 Replies
View Related
Jul 2, 2013
I want to hide a terminal appliction or console application without using WinAPI programming or <windows.h> or something like "ShowWindow(hwnd_win,SW_HIDE);
View 19 Replies
View Related
Jan 12, 2015
Taking a OS course and my professor gave us files to reference in a directory located at ~agw/class/os/share/proj3. But when I typed this into the terminal I keep getting a permission denied error message.
[lastname@erdos ~]$ ls
dead.letter Desktop Documents Downloads Music Pictures private Public public_html Templates Videos
[lastname@erdos ~]$ ~agw/class/os/share/proj3
/u/sobolev/agw/class/os/share/proj3: Permission denied.
[lastname@erdos ~]$
I'm not sure what I am doing wrong. Ive opened shared directories for this class before and had no issues.
View 1 Replies
View Related
Dec 9, 2013
Taking a OS course and my professor gave us files to reference in a directory located at ~agw/class/os/share/proj3. But when I typed this into the terminal I keep getting a permission denied error message.
[lastname@erdos ~]$ ls
dead.letter Desktop Documents Downloads Music Pictures private Public public_html Templates Videos
[lastname@erdos ~]$ ~agw/class/os/share/proj3
/u/sobolev/agw/class/os/share/proj3: Permission denied.
[lastname@erdos ~]$
I've opened shared directories for this class before and had no issues.
View 2 Replies
View Related
Feb 17, 2013
I'm generating all ncurses color pairs like this
Code:
void generate_all_color_pairs(){ int foreground;
int background;
int i = 0;
for(foreground=0; foreground<8; foreground++){
for(background=0; background<8; background++){
i++;
[code]....
but according on several sources, some terminals suport more colors.Is there any way to determine how many colors the current terminal supports?
View 3 Replies
View Related
Oct 5, 2014
I am using Xcode to do c++ programming and I have a c++ code, with different input arguments. I want to achieve that in Xcode, I could run multiple simultaneous running of my c++ code. However, the current problem is that once one code finishes, its terminal window automatically closed and I do not have time to look at its result. Thus computer time is wasted. Is there a way to run multiple same c++ code with different arguments input?
View 6 Replies
View Related
Apr 6, 2015
my folder structure looks like this:
Code:
MyProject
| |
header source
| |
Dog.h,Functions.h Functions.cpp, Dog.cpp, main.cpp
How can I compile and run this program (what do I have to type in terminal) - I would like to compile and run it from MyPoject's directory
Code:
cd MyProject
View 14 Replies
View Related
Jun 27, 2014
I have VRP algorithm written in C++, run with command prompt Windows. input (command line) -> VRP.exe -> output (txt file)
Now I want to built a website to run it as SaaS. How to run an exe application(compiled c++) in server used as Saas? What kind of programming do I have to use? Ruby or html5 or others? I don't know how to start.
View 3 Replies
View Related
Jan 18, 2015
how to embed website in c++?
View 1 Replies
View Related
Apr 4, 2014
i am working on class project in which i have to save the tank from canon....imy tank is moving only when i press the moving key.. and after that i see blank screen what should i do to run my process when i am not pressing moving keys....
View 8 Replies
View Related
Nov 14, 2013
I am wondering how can I read a website from a given url in windows ?
View 3 Replies
View Related
Nov 25, 2013
I was wondering if it's possible to push a button on a website programatically. Unfortunately the button link is invisible, otherwise I could simply use the URL it links to. So is there a way to do it in c++ and if so, how?
View 4 Replies
View Related
Mar 25, 2014
I'm successfully publishing an app to my website by publishing locally and then uploading the files but one of the options offered is to publish straight to the web site but I can't find anywhere to enter a user name and password for my web site. I could also do it with ftp but since the option is offered to publish directly to the web site I'd like to try that method. I'm using the Click Once method.
View 5 Replies
View Related
Feb 26, 2015
Any way to interact with websites such as Freelancer or fiverr. I mean when someone posts new topic i'll search in the topic if the name contains keywords like 'programming' then i'll notify the client that there is a new subject he can works on . Is there a way to do this in c#?
View 12 Replies
View Related
May 30, 2014
I have study that create a pipe and set a terminal of this pipe like a stdout of a process is a way to implement inter process comunication, but how can i do it in c++?
View 2 Replies
View Related
Apr 20, 2013
I would like to know an easy way to let my application show in a label, some stats from a website.
View 1 Replies
View Related
Mar 30, 2014
I need a line of code of retrieving data from a live website. I will look around in the mean time. libcurl?
View 1 Replies
View Related
Dec 18, 2014
Basicly I want to make a c++ program which does the following:
1- logs in to 4shared.com with username 'user_example' and password 'password_example'.
2- uploads to the 4shared account a file named 'test_upload.txt' located in 'C: est'
3- downloads a file named 'test_download.txt' from the 4sared account
I user curl 7.39.0 and curlpp 0.7.3
1- how to keep the same session between successive http requests
2- how to make an http request to upload a file
3- how to get the url of a file with specified name on a 4shared account
View 15 Replies
View Related
Apr 2, 2014
I am trying to retrieve information from a website [URL] .... and have written a C code as follows:
Code:
#include <stdlib.h>#include <stdio.h>
#include <string.h>
#include <curl/curl.h>
int main(int argc, char* argv[]) {
/* Exit status to return */
int exitStatus = 0;
[Code] .....
The output of this program should be:
From To
4504111 B0LPF3
4504111 P62993
The first print option [printf("%s", url)] gives the url output as [URL] .... which on being manually pasted in any web-browser gives the correct output but the program fails to give the output.
View 1 Replies
View Related
Aug 1, 2014
I am trying to upload custom values to specific URL and get the result that is given from the web site.
The problem that is occurring is that I don't know how to simulate "press" the input type="button".
Is the value wrong or something
Here is the link(English version)
I use the Bulgarian version but that doesn't matter.
WebClient myWebClient = new WebClient();
myWebClient.Credentials = CredentialCache.DefaultCredentials;
myWebClient.Headers.Add(HttpRequestHeader.UserAgent, "anything");
myWebClient.Proxy = null;
[Code] ....
The problem is that I don't get result, that looks like this.
View 2 Replies
View Related
Aug 28, 2012
I am trying to obtain the values of cookies from a particular website. The problem is, when I run the following code, it only loops through 4 of 10 cookie values present.
Furthermore, the values are turning up as deleted: Reference
HttpWebRequest Request = (HttpWebRequest)WebRequest.Create("http://www.mysite.com");
Request.CookieContainer = new CookieContainer();
HttpWebResponse Response = (HttpWebResponse)Request.GetResponse();
foreach (Cookie cook in Response.Cookies) {
Console.WriteLine("{0} = {1}", cook.Name, cook.Value);
}
Then I came across this code, which states it will loop through every cookie value and obtain its values: Reference
int loop1, loop2;
HttpCookieCollection MyCookieColl;
HttpCookie MyCookie;
MyCookieColl = Request.Cookies;
String[] arr1 = MyCookieColl.AllKeys;
for (loop1 = 0; loop1 < arr1.Length; loop1++) {
MyCookie = MyCookieColl[arr1[loop1]];
String[] arr2 = MyCookie.Values.AllKeys;
}
The problem with the above, I can't seem to find a reference to "Request". I am using the libraries "using System.Net and using System.Web", so I am unsure why Request is not being recognized.
My goal is to retrieve one cookie value so that when a user from my website logs in, my C# application will recognize that user.
View 7 Replies
View Related
Feb 4, 2013
Code:
#include <stdio.h>
main() {
int c, n1;
n1 = 0;
while ((c = getchar()) != EOF)
if (c == '')
++n1;
printf("%d", n1);
}
I have a more complicated program I'm wishing to have display the output, however, to save some time I'm using an example of a shorter version. count the lines in input and display the output in terminal when ./program is executed after compilation. To count and compute lines, words and within arrays.
View 4 Replies
View Related
May 12, 2014
I am trying to open a file and print the contents of the file to the terminal window. It works when I put the file right in the directory with the Solution but not if the file is out on my desktop and I use the full path. Here is the code:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int OpenFile(){
fstream SampleFile;
[Code] .....
View 5 Replies
View Related
Nov 22, 2014
I am using below code to generate mail through C # code
SmtpClient smtp = new SmtpClient("smtp.live.com", 587);
smtp.EnableSsl = true;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new NetworkCredential("XYZ@live.com", "********");
[code] .....
It was working properly offline when i running on my local computer,But I uploading it on server after publishing website it is not working.
View 1 Replies
View Related