Programming :: How To Stream Webpage
Sep 30, 2010I need to stream a webpage to my application and i tried something like this but i get segmentation faults. Is there any example in c and/or gtk that i can peek on.
View 2 RepliesI need to stream a webpage to my application and i tried something like this but i get segmentation faults. Is there any example in c and/or gtk that i can peek on.
View 2 RepliesI'm trying to open a webpage which contains a quicktime stream in firefox 3.6.0 Some of my friends are viewing the stream correctly in ubuntu, but I'm getting this error:
Code:
TotemEmbedded-Message: Viewer state: STOPPED
** (firefox-bin:2302): DEBUG: SetWindow reply
** (firefox-bin:2302): DEBUG: 0xaea95680: "ViewerReady"
[code]....
When sending data over the socket, the sending socket includes 0x00 after each sent byte. I wonder how this can be avoided -- I just want to transfer the data in the tx_buffer as it is.
# ./serv &
[1] 6895
# ./EUG 127.0.0.1
EUG: Data to be transmitted: 0x35 0x32 0x30 0xff 0x03 0x31
EUG: Data - #Bytes transmitted: 6
./serv: Here is the message: '5'
[Code]...
I am trying to extract a web page via Google for processing. I am able to create a proper query and test it using cut/paste into the address bar of my firefox browser.
When I attempt to extract the page with wget:
wget -O - -q "$query"
I do not see the information that is present when I used the browser.
I want to do a "gallery" on a webpage, ie. a series of thumbnails, whhich when clicked, will popup a new window of a bigger image of that same things (with more details about it, etc.). How do I do that? (I think it's soemthing to with "window.popup" in Javascript, but how do I use that? Can I do it with <a href="something" target=new>?)
View 12 Replies View RelatedHow to download a web page using QtNetwork? I then plan on extracting data from it with QRegExp.
View 11 Replies View RelatedThe software Nagios uses .cgi files to show a lot of things.. services, hosts, etc etc. Is there any way to pick up those .cgi files and import them to other web page? how to do it?
View 2 Replies View Relatedwhen the "Submit" button is clicked on a form in the webpage, I'd like the background tiled image to be changed to another one (downloaded from the server, and "activated"), and the logo that I have there also replaced by another one, which will also have to be downloaded from the server.
View 1 Replies View RelatedJust like ContentLink here on LQ itself, how do I popup a little box or something like that, when a particular word is mouseovered on?
View 3 Replies View RelatedHow to put a dotted line around a table on a webpage (CSS)
View 2 Replies View Relatedhow to make a site like this one, LinuxQuestions itself - it puts a thin line around each post, to demarcate it - for the website I'm building, I need exactly this functionality. Do I have to use the "gd" library?
View 5 Replies View RelatedI want to write Bourne-shell script that will be to do finding and replacement in any web page code (.htm file) name of the tied folder in which have been saved pictures, .css, .js and other files. This folder create a web browser when we save web page completely and has so name as web page and has ending '_files'. I have many web pages where name of their folder are incorrect. Of course, my web browser shows these web pages without pictures. I can count amount of web pages in a folder (/path) needed for me.
1) find /path -type f -name "*.htm*" -print | grep -c .htm or find /path -type f -name *.htm | wc -l I can get list of web pages.
2) ls /path *.htm > out-list But I don't know how to assign the value from out-list (2) or result commands from pipeline (1) to a variable. Then I want to do next:
3)
var="1"
# where variable 'list' is an amount of web pages
while [ $var -le $list ]
[code]....
4)assign the 1st (then 2nd , etc. ) value from out-list (2) to variable 'webfile'
sed -n $var,+0p out-spisok
5)find the 1st string value '_files' in the 'webfile' grep -m1 _files $webfile
6)For example, 'abracadabra_files' is an incorrect folder in the 'webfile' I must to know start and end position 'abracadabra' without ending '_files', "cut" name of the incorrect folder and assign it to the variable 'finder' finder = 'abracadabra' BTW, name of a folder before '_files' is between '="' and '_files' in any web page code.
7)foldernew = $webfile (without '.htm')' foldernew' is equal with name of the tied folder without ending '_files' in the folder '/path'
8)find and replace in the 'webfile' and save result in the 'webfile-out'sed s/$finder/$foldernew/g $webfile > $webfile-out
I have a few questions regarding HTML, UNIX and Javascript. I've been tasked with creating a fairly simple webpage that takes a few inputs. Each input must correspond to an argument in a UNIX command running on a server.On a UNIX server we have a script (.ksh) that takes 3 arguments. The result of the script is a data file which is FTP'ed to an external server. Let's forget about the FTP portion for now. I would like to know where I should begin.What I know so far:
1) I will need HTML to create the webpage. Skill level is high
2) I will need Javascript to make my webpage more interactive. Skill level is high.
3) I will need to understand the UNIX environment. Skill level is high.
I'm new to gStreamer and need to determine the bitrate of a stream. Has anyone here worked with this before and does anyone know how to do it?
View 1 Replies View RelatedI'm writing some code to speed up some code writing, basically it produces some code I use in every project. I produce the outputs with fstream filestr;, open a file and write to some data to it. However some code has quote marks that I need to output, however I can't use quote marks.
EG: filestr<<"#include "Header.h""<<endl;I get round this with some awful filestr.put ('"');However I'm sure there must be a straight forward way to do this. Can anyone advise?
I've written a simple web page and I want it to display live stream from one of my IP cameras. I admit I've never been interested in HTML ... How should I go about this? I can see the stream in browser using following link [URL]
View 4 Replies View RelatedI run my own icecast2 server. In the near future it looks like, I will be doing some shows. I would like to beable to change my link, so if I am broadcasting, to go to the stream if not pop a box for my schedule.Now from when I was checking to see if my webcam was up or not, i used this.does anyone know haw to change my code for this? I know when I'm not stream it generates a 404 error, in winamp (on windows)
View 3 Replies View RelatedHow do you list processes, get a process's std(in|out|err) stream, or wait until a process is finished in C?
View 3 Replies View RelatedI have a fallowing ASCII text file:
Code:
Fa0/2 - server1 / testing
Fa0/4 - server2 / production
[code]....
I had some trouble doing this but finally figured it out. Here is a general solution:
Code:
#include <iostream>
using namespace std;
[code]....
I'll just say I am a complete Linux beginner, but I have done vbs, js, php, html web type stuff so I'm not a complete beginner to programming.However I've been trying to learn C and python but it's not making a huge amount of sense.I am wanting to make a simple low level program that copies an image from a mjpeg stream on 192.168.0.1/videostream.cgi for example to a variable then save that variable to a file on my system.I am aware that there are programs out there that would do this but I still want to make my own.
View 1 Replies View RelatedI am having a streaming server Red5 running on localhost. I have a few HTML pages which should be serving those streams.
I read documentation given here [url] and [url]and the swfobject.js and player.swf are on same directory where the test.html page I created is present.
Following is the HTML code
Red5 is working on localhost.
Code:
How could I (using c++ language on linux machine) put media stream (like mpeg4 movie) into the udp packets and send it to other computer in the network?
View 1 Replies View RelatedLet assume that we have the following situation: we have a sound in the speaker systems or in earphones, maybe we play an audio CD, some mp3's or maybe a movie, etc.
All I know is that the sound goes through sound card to speaker system or in earphones, no matter the source.
How can I obtain the audio stream that I hear in speaker system or in earphones?
I would like to write an application that record and analyze the audio stream that I hear in my speaker system or in earphones. My OS is Ubuntu 10.04.
If you have a recommendation like "try to use ALSA", please provide more details like "in alsa-utils you have a class Class_Name, with the following function Funcation1, etc. Try to use the Function5 as in the following example".
I was attempting the pear installation as per the instructions given here:url
I think i got the installation correct.
Then i tried this program
<?php
require_once 'System/Folders.php';
$sf = new System_Folders();
$home = $sf->getHome();
echo "$home
";
?>
and compiled it as follows:-
php spear.php
to get the results as
Warning: require_once(System/Folders.php): failed to open stream: No such file or directory in /var/www/spear.php on line 3
Fatal error: require_once(): Failed opening required 'System/Folders.php' (include_path='.:/opt/ZendFramework/current/library:/usr/share/php5:/usr/share/pear') in /var/www/spear.php on line 3
how should i correctly set the path in /etc/php5/apache2/php.ini
or how correct is my path statement
include_path = ".:/opt/ZendFramework/current/library:/usr/share/php5:/usr/share/pear"
in /etc/php5/apache2/php.ini
This is the code i used, there is no error in execution but no file is bein saved in the working directory. I'm new in java,so just started learning.
public class Hel
{
public static void main(String args[])
throws IOException
[code]....
I am working on a piece of html/php code. With a specific moment of the week, I would like that linux click on the button : RESET
( indicated with
Code:
<INPUT type="submit" name="bsubmit" value="Reset">
[code]....
It seems I might be having an issue that's a non-issue. I am not able to stream/ connect to a stream using vlc.I've looked at a few walk-throughs; I follow the steps and as often as not I get no error messages but cannot connect to a stream.
View 1 Replies View RelatedI have a table full of stuff which I want to print on screen 5 at a time, with a "next" button for the next page - how do I do this?
The list for each page is obtained with a: SELECT NAME FROM table LIMIT $start, 5;
which is simple enough, then I think I need to do a :
SELECT count (*) FROM table ;, and check if there will BE a "next" page, and then generate the link for that at the bottom of the page - how do I do this?
For example this page:I thought it was Flash, but a right click on the image doesn't reveal so.
View 2 Replies View Related