Debian Programming :: HTML5 - How To Include Another File
Jun 15, 2013
I am trying to re-write my local web pages in HTML5. My original pages used an include file so that I had a consistent set of links on the top of each page. I used - require("link_list.php");
But this does not seem to be possible in HTML5. I am guessing that there is a way to do this, searching the web suggests object or embed, but these create a new page within my original page, which is not what I want.
View 4 Replies
ADVERTISEMENT
Jul 24, 2013
I have a MySQL database running on my local server, which I currently access via laptop, desktop using HTML/PHP.I want to re-write in HTML5, I have gone through a couple of HTML5 tutorials but cannot figure out the database interface. The best match I can find is Server-Sent Events, is this the best way forward? What about writing to the database? I have found several suggestions using Web SQL database but I don't think this is suitable as my database is also accessed from Python code on the server.
View 5 Replies
View Related
May 30, 2011
I have installed QT on Slackware 13.37 x64 and when I create gui project it works ok, but I need OpenGL.When I add #include <QGLWidget>I get error No such file or directory there is my env
Quote:
CPLUS_INCLUDE_PATH=/usr/lib/qt/include
MANPATH=/usr/local/man:/usr/man:/usr/lib/java/man:/usr/share/texmf/man
KDE_MULTIHEAD=false
HZ=100
[code].....
View 2 Replies
View Related
Jan 28, 2010
i got this error im using turbo c++ 3.0.
View 1 Replies
View Related
Oct 8, 2014
Suppose I have the library code in library.cpp. I found that to include the version information in the .so library, I had to use these command forms:
Code: Select allg++ -Wall -fPIC -c library.cpp
g++ -shared -Wl,-soname,library.so.0 -o liblibrary.so.0.1
The howto then continued to recommend creating symbolic links pointing at the newly compiled library. [URL] ....
The result is, during the booting sequence, I am receiving this error:
Code: Select alllibsystemd-login.so.1: no version information available (required by /usr/bin/dbus-daemon).
The library is the one I am working on.
View 5 Replies
View Related
May 21, 2011
i am a new programer in c i have write a simple app and i have a problem with combiling my program include one header file and 2 c
fun.h
#include<stdio.h>
void f();
/******EOF*******/
fun.c
#include"fun.h"
void f(){
[Code].....
View 6 Replies
View Related
Jan 14, 2011
I can play a sound on my local machine using the following code, but when I upload to a server the same code it does not play. I cannot work out why, the link below gives the code. The multi channel code is here:
[URL]
Code:
<audio id="multiaudio1" src="audio/flute_c_long_01.wav" preload="auto"></audio>
<audio id="multiaudio2" src="audio/piano_chord.wav" preload="auto"></audio>
<audio id="multiaudio3" src="audio/synth_vox.wav" preload="auto"></audio>
<audio id="multiaudio4" src="audio/shimmer.wav" preload="auto"></audio>
[Code].....
View 4 Replies
View Related
Jun 17, 2010
I pretty much code by hand, but I like Quanta Plus and Kate for scripts HTML and simple programming tasks.Quanta (and other editors nvu, bluefish etc) are geared for html 3 and 4 - help files, tag libraries, templates etc. how far Quanta and other IDEs are into HTML5 support?
View 2 Replies
View Related
May 8, 2015
I am using pepperflash and the youtube HTML5 player on Debian Sid, on an amd64 machine. I am having a problem where the video will just black out every so often, like every minute or two, the audio still works and I need to either go forward or backward in the video to get the image back. I have noticed it on youtube videos which I suppose uses the HTML5 player not pepperflash.
View 4 Replies
View Related
Aug 22, 2015
YouTube now automatically serves html5 content if it detects you are using firefox version 40 or above. Unfortunately as a result, all youtube videos are now served to me at 360p resolution, and there is no way to change that on the youtube web page.
Before upgrading firefox, I could watch hd videos using flash. The ability to switch to html5 was also available on [URL] .... But with the later version of firefox, the option to switch back to using flash is no longer there on that page.
When I could view both flash and html5 videos (with the older firefox), I found that html5 played back very poorly. flash, despite being a known resource hog, actually played back better (with no h/w acceleration of flash in linux, I resigned myself to expect to use faster PCs to run flash hd at full screen). Which is a great pity, as we all know flash is disappearing, but it appears I now have an even bigger issue with html5. Where's the hd video?
So how can I get a better html5 experience? My machine is an i3 with GTS250 nVidia running Stretch.
The problem of only getting 360p resolution is probably a bug in firefox. Once I can get hd, I am then uncertain if firefox could handle it.
The advice of setting 'media.mediasource.enabled' in about:config to true to get higher resolutions did not work for me.
When I do that, the [URL] .... says I have:
HTMLVideoElement, WebM VP8 and Media source Extensions support, and
H.264, MSE & H.264 and MSE & WebM VP9 unsupported.
I have hardware acceleration enabled in firefox, and have the OpenH264 Video Codec (Cisco) plugin installed.
Some more info here: [URL] ....
I could switch back to using flash by using a user-agent switcher to fool youtube I have an older firefox, but that is a poor solution.
View 14 Replies
View Related
Apr 19, 2016
I am using chrome Version 50.0.2661.75 (64-bit) running on Debian (Gnome).
I am having the following problem, since yesterday every time I want to play a video (for ex [URL]watch?v=UF8uR6Z6KLc) The music, logo in the video and functions work but the video doesn't play. I reinstalled Chrome, clean all the data, disable all the plugins, I tried as incognito and several other options and it doesn't work, before yesterday it was working (yesterday I updated all Debians packages).
View 4 Replies
View Related
Nov 5, 2015
I noticed that Firefox won't play HTML5 videos, or better said, the sites always return a Flash video instead the HTML5 version. So either I install Flash or I can't play videos.
However, with Iceweasel I don't have this problem. The sites always load with a HTML5 video instead of the Flash version. So no need to install Flash.
I checked plugins, extensions and even the user-agent string to see if there is some indication Iceweasel is using and Firefox don't, but I don't see anything special, so... how is it possible that using Iceweasel the sites load HTML5 video, but using Firefox the sites tend to use Flash?
I know that in Debian there is no need of installing Firefox, but right now I'm trying other distros and that's where I noticed about this problem. Then switched to my Debian installation and installed Firefox, and checked the same happens in Debian. Just for the record, in Windows it doesn't need Flash either.
View 6 Replies
View Related
Sep 15, 2010
I am working on a Linux embedded C++ project. When I do an install, all of the header files are copied into the target at /usr/include/.My question is, why would the target ever need the C++ header files? It seems to me all the target needs is the executables and the library *.so files.I want to remove the installation of header files into the target but I'm afraid I'm missing something.
View 3 Replies
View Related
Feb 27, 2011
I'm learning GTK , and would like to use Codeblocks, and/or KDEvelop, and compile my c files using that, but always get an error about gtk/gtk.h not found, but can't figure out how to add the commands... I normally type gcc -o Program1 main.c `pkg-config --libs --cflags gtk+-2.0` That's a lot to type every time to compile.. Isn't there an easier way, in KDevelop, Monodevelop, and/or Codeblocks to make this step quicker, by adding some sort of I-/usr/include commands, or something?? thanks in advance, =). I looked online for some results, but didn't come across anything handy..
View 1 Replies
View Related
Feb 2, 2011
Basically I have a dir that contains my makefile and another directory inside this called source this holds main source files. External to these I have a couple of dirs common and drives.
In my make file I use
To include the protoypes from the headers in the folders common and drivers used by source, this works fine. However in common and drivers I use a few variables that are set in the source dir. I set these with externs inside the common and driver files. However I'm sure I should be able to set the directory path for source inside my makefile. So say I have inside source hardware.h with prototypes, I set DINCDIR = -I/Source -I../Drivers -I../CommonFiles
Then from a c file inside my common folder I say #include "hardware.h" the file should be able to see hardware.h and it's protoypes. However I get:
Is there some way I can get the extern dirs to see the source dir?
The set out is something like;
View 1 Replies
View Related
Feb 26, 2009
What's the best way to include variables in a string using C,i.e if i want to do the following query in C, how would i do that.How do i build the string variable up in C?
View 1 Replies
View Related
Jul 5, 2010
For gcc, it seems that there are multiple include paths like /usr/include and /usr/src/linux/include. How do I check the current include path for gcc via command line? How do I edit it?
What about for cc?
View 9 Replies
View Related
Mar 12, 2010
I need to include variables in a system() call. This is that I have:
[code]#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
[Code]....
P.S.: I know this is a pointless redundant program, but it's part of a larger project learning process.
View 10 Replies
View Related
May 16, 2010
I am trying to learn how to include common elements on every page. At first I made the mistake of calling it ssi but I do not think that is correct in php5. I downloaded phpb3 to look at and they are not doing it that way. they do it like this.
Code...
Problem is I can not find any articles that explain it. I even looked at the php manual and did not find it. Could someone explain this or point me in the right direction.
View 1 Replies
View Related
Dec 14, 2010
I'm using Eclipse to build a small c++ program using boost.
Code:
#include<iostream>
#include<string>
#include <boost/regex.hpp>
[code]....
I can right click on boost::regex and it takes me to the header file regex_fwd.hpp, but when I go to build it, it gives me the error:
Code:
DescriptionResourcePathLocationType
/usr/include/boost/regex/v4/basic_regex.hpp undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> >
[code]...
View 6 Replies
View Related
Jul 11, 2010
What is the difference between /usr/local/include and /usr/include? When I compile my program, is both /usr/local/include and /usr/include avaliable? Can I copy a file from /usr/local/include to /usr/include?
View 1 Replies
View Related
Jul 8, 2010
I just downloaded the SDL source code. i did compile and make of this code.then i did make install. but i didnt see the files of SDL.h and lib.SDL.*** in /usr/include/ but later i found out that these files are placed in /usr/local/include and /usr/local/lib. how can i specifically install libraries on /usr/include and /usr/lib
View 2 Replies
View Related
Jan 11, 2011
I'm testing HTML5 for the first time, using Firefox (beta) 4.0b8 and SeaMonkey (beta) 2.1b1, and its ignoring some CSS. Specifically, I have problems with the <details> tag. (It is nested in a paragraph...I am using it to provide an in-paragraph definition in hopes it can be toggled.)
Firefox only partly supports <details>. It's not supposed to show anything except the content of <summary>, unless you click on <summary>'s content. Instead, it puts a line break before the content of <details>, splitting the paragraph in two peices (which looks silly), without the "closed/open" functionality.
So I tried using "display:inline" in my CSS, but that gets ignored. Just for fun, I also tried "display:hidden" (also ignored) and "display:none" (obeyed).
SeaMonkey doesn't doesn't do anything special with the content of <display>...but it also ignores the same CSS as Firefox.
The only thing I can do to support semantic design is apply "font-style:italic" to all <details> elements.
Granted, you might ask, "why bother using <details> at all. then?" Well, I would like to have <details> for the browsers that support it, with the "font-style:italic" to degrade the page nicely for those that don't (such as for SeaMonkey).
Does anyone know why "display:inline" and "display:hidden" get ignored?
View 1 Replies
View Related
Apr 5, 2011
I use OpenSuse 11.3, Eclipse Elios for C++. What do I have to do for using boost? I put #include <boost/regex.hpp>, but it can't find the file. What variable do I have to use?
View 3 Replies
View Related
Nov 10, 2010
Code:
grep -r $SEARCHDIR --include="day_$YYYY-$MM-*" -h -o -e PATTERN
The above command does exactly what I want: limit the search of files in $SEARCHDIR to those specified by --include.
I use double quotes rather than single quotes because of the shell variables. I would have thought this would cause the shell to expand the "*" but this doesn't seem to be the case.
View 1 Replies
View Related
Jan 9, 2010
how do you include a string variable as part of a regex in Perl?
View 5 Replies
View Related
Jul 13, 2010
Right now we send notification emails using a velocity template (apache and java), the thing is that the notification engine call the Email.vm file to add all the information and variables. This process only attach the information (text) on the .vm file.
We need to send that email on html. The thing is that if we write the html code on the file, when the .vm file is called that email includes the code not the result of the html.
We have tried adding the headers and everything.
The question is:
Is there some way that we can pre-process the html code and include to that email the result?
Or can we tell the .vm file that it should be handle as html? (like php for example <?php ?>, the <html> and </html> tags doesn't work.
View 1 Replies
View Related
Jun 6, 2011
this should have been a simple task, but for some reason one of my rollovers plain old isn't workingmy html sheet
Code:
<div style="background:#F5F5E9 url('/sites/all/themes/flossmoore1/images/bricks250.png');padding:1px;padding-
[code]....
View 1 Replies
View Related
Jun 24, 2011
I am writing a script that is used to submit a package to testflight from my build system. In order to make the presentation as clear as possible I would like to include some basic HTML in the note section, however, using a < or > causes an error in curl. I have tried different variations of quoting and escaping but have not yet been able to find the solution.
Code:
VERSION_HEADER='<strong>Version: </strong>'
VERSION=`cat $VERSION_NUMBER_FILE`
NOTES+=( "$VERSION_HEADER$VERSION
[Code]...
If I use VERSION_HEADER="'<strong>Version: </strong>'" then the single quotes are submitted.
If I use < or > then those are submitted but the receiving api does not decode them correctly.
Can anyone suggest a way to submit exactly: <strong>Version: </strong>
View 3 Replies
View Related
Dec 16, 2010
I was trying to install usb-modeswitch edora-14 (64 bitt saidCode:usb_modeswitch.c:56:17: fatal errr: usb.h: No such file or directoryWhen I tried to install libusb, it said that it is already installed and is the latest version. But, it still doesn't show usb.h in /usr/include directory.What shall I do to make usb-modeswitch?
View 4 Replies
View Related