dynamic,video.js,captionsRelated issues-Collection of common programming errors


  • Santosh
    sql oracle dynamic types procedure
    We have created Oracle Table type. And we have created an array of it. This is done as we dont know how many values can come which may be too much for a IN clause in sql query.–Code Snippet —–create or replace TYPE “INPUTCODE” as object (pc varchar2(100) )create or replace TYPE “INPUTCODEARR” IS TABLE OF inputcode;create or replace PROCEDURE “TEST_PROC” (testCodes IN inputcodeArr, timeHorizon IN NUMBER, p_recordset OUT SYS_REFCURSOR) AS var_sqlStmt VARCHAR2(4096); BEGIN var_sqlStmt := ‘s

  • Californicated
    c# .net c#-4.0 dynamic .net-4.0
    I am using dynamic keyword to work with an outside assembly and it works fine as far as accessing it’s methods and primitive type members are concerned. So for example my class dynamically loaded class looks like followig:public class Student {public bool IsGood { get; set; }public StudentType St { get; set; }public University University { get; set; } }I can dynamically load the object from assembly by doing something like:var assembly = Assembly.LoadFrom(“//path”);Type type = assembly.GetType(“

  • Konpon96
    c++ arrays function pointers dynamic
    In main function of my program I’ve created dynamic array with number of elements specified in variable(after calculations array is deleted):cin >> bok;double **macierz; macierz = new double *[bok]; for(int i = 0; i < bok; ++i){macierz[i] = new double[bok]; }Array macierz (matrix in Polish) is used to calculate it’s determinant with another function I’ve written:#include <iostream> #include <conio.h> #include <string> #include <math.h>double determinant(double b[

  • Rachel
    javascript dynamic combobox options
    I have a combo box with one option hard coded. I will add the remaining options dynamicallyCombo box with hard coded option:<select id=”connectionname” class=”connectionname” onchange=”display();”><option>—Select—</option></select>Javascript function to create combo box options dynamically:function showDbDlg(){var newar=new Array();try{var xhrArgs = {url: “./ReadDBDetails”,content: {MODE:”DBNAMES”}, handleAs: “text”,load: function(response) {var dbNames = response.tri

  • julian guppy
    mvc iis dynamic internet-explorer png
    I have a curious problem with IE, IIS 6.0 dynamic PNG files and I am baffled as to how to fix..Snippet from Helper (this returns the URL to the view for requesting the images from my Controller.string url = LinkBuilder.BuildUrlFromExpression(helper.ViewContext.RequestContext, helper.RouteCollection, c => c.FixHeight(ir.Filename, ir.AltText, “FFFFFF”)); url = url.Replace(“&”, “&”); sb.Append(string.Format(“<removed id=\”TheImage\” src=\”{0}\” alt=\”\” />”, url)+Environment.NewLine);Thi

  • user3078422
    arrays bash shell dynamic
    My bash script needs to read values from a properties file and assign them to a number of arrays. The number of arrays is controlled via configuration as well. My current code is as follows:limit=$(sed ‘/^\#/d’ $propertiesFile | grep ‘limit’ | tail -n 1 | cut -d “=” -f2- | sed ‘s/^[[:space:]]*//;s/[[:space:]]*$//’) for (( i = 1 ; i <= $limit ; i++ )) do#properties that define values to be assigned to the arrays are labeled myprop## (e.g. myprop01, myprop02):lookupProperty=myprop$(printf “%.2

  • ollo
    c++ dynamic
    Is it possible to mimic the behavior of dynamic allocation using the following code. For example we do not know the exact number of the integer that are stored in a file and we are going to read the file and then store it in an array called Hello.int x; int n=0; ifstream input(“a.dat”); while (!input.eof()) {input >> x;n++; } input.close();int Hello[n]; cout << “n= ” << n << endl;int i=0; while (!input.eof()) {input >> Hello[i];i++; }

  • nick
    c dynamic
    how can i dynamically create a function in c?I try to summarize my C problem as follows: i have a matrix and i want to be able to use some function to generate its elements function has no arguments hence i define the following : typedef double(function)(unsigned int,unsigned int);/* writes f(x,y) to each element x,y of the matrix*/ void apply(double ** matrix, function * f);now i need to generate constant functions within the code. i thought about creating a nested function and returning its

  • StonedJesus
    c# wpf button dynamic mvvm
    I was working on dynamic generation of labels, buttons and Textbox in my WPF application. Well I was successful in dynamically creating them but I am facing one major issue in it.Xaml:<ListBox x:Name=”myViewChannelList” HorizontalAlignment=”Stretch” Height=”Auto” ItemsSource=”{Binding}” Margin=”0″ VerticalAlignment=”Stretch” Width=”Auto”><ListBox.ItemTemplate><DataTemplate ><Grid><Grid.ColumnDefinitions><ColumnDefinition Width=”170″ /><ColumnDefinition />

  • mkluwe
    oop class dynamic types runtime
    Do you know programming languages where changing the class of an object at runtime is allowed (supported)?Please give a short example regarding the syntax. Give a use case, if you know any. Examples involving duck typing are welcome as well, so do not shy away from mentioning these languages.Update: I figured out that Smalltalk has changeClassTo and become. CLOS can do change-class. I found a paper suggesting to use these mechanisms to implement ‘husk objects’ that are referenced at runtime, but

  • sudobangbang
    html5 video.js
    My VideoJS and HTML5 project is targeting more recent web browsers ( newer versions of FireFox and Chrome ) as well as mobile browsers ( Android2.3+ and IOS4+ ). I want all my videos to autoplay after they are “ready”. I’ve tried doing this a couple ways ( mentioned in methods below ) but noticed that the autoplay only really works in FireFox and Chrome — meaning the mobile browsers just sit and spin. I haven’t gotten as far as debugging the mobile browsers in their native emulators cause i wan

  • user2057148
    asp.net video.js
    I am trying to play videos using video player from videojs.com in visual studio 2012 express.my web form is based on master page. Following is the code for Master Page<head runat=”server”> <meta charset=”utf-8″ /> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″ /> <title><%: Page.Title %> – My ASP.NET Application</title><asp:PlaceHolder runat=”server”><%: Scripts.Render(“~/bundles/modernizr”) %> </asp:PlaceHolder> <we

  • kannan
    video video-streaming video.js
    Is there a way to mouseover/mouseout the video controls on the videojs player at runtime (e.g. myPlayer.on(“mouseover”, myFunc); myPlayer.on(“mouseout”, myFunc);). Any ideas how to do this? Thanks!

  • Cristiano
    video.js
    Using IE everything goes well (i got a mp4 video with priority execution setted on flash). when i try to view my video on chrome all seem to be good too, but in few seconds (not always but often) videojs crashes.This is the log:error:MediaErrorcode:3 What should i do?

  • user2240608
    internet-explorer-9 video.js
    I use this plugin since a while. But now i noticed it doesnt work anymore on IE9 and Chrome. Even on the offcial home page http://videojs.com/ It seems load the only 2 first seconds and then my web browser crashs.Does somebody knows how to fix it ?Thanks.

  • polx
    javascript video.js video-embedding
    videoJS sounds like a cute solution and we almost adopted it but there’s two glitches in my attempts:the first is that on Safari 5.1.7 on MacOSX 10.6.8 (all latest in this row), a click to fast forward (i.e. right of the cursor) freezes Safari: the wait-wheel in rainbow colours keep spinning the second is that the same embedding simply displays nothing on MacOSX 10.7.5 with Safari 6.0.2None of this happens in Chrome or Firefox. And this does not happen on videojs.com.However the code is pretty s

  • GJJ
    html5 html5-video video.js
    I’m creating a simple video page with video.js and I want to show chapter tracks. This is the HTML code, based on the VideoJS documentation here.<!DOCTYPE html> <html><head><script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”></script><link href=”http://vjs.zencdn.net/4.0/video-js.css” rel=”stylesheet”><script src=”http://vjs.zencdn.net/4.0/video.js”></script></head><body><video id=”example

  • Filip Filipovic
    javascript jquery html5-video video.js
    I’ve been searching around for a long time but still haven’t found a valid solution for my problem. I just cant seem to get the video player to enter fullscreen. The API does have many examples but none of them seem to work.The jQuery version included on the page I am currently working on is 1.8.2. Also, I am using parallax-1.1.js and libraries required for it to work properly so that may also be an issue.The client I am working for wants the site to have responsive design, with the ability of t

  • Kate Gregory
    javascript jquery plugins video.js
    I’ve been fooling around with videojs and I’d like to register a plugin for some code that I grabbed over on Github my forked code. I followed the setup directions indicated by original author, however when the script goes to self register I get a javascript error on this line videojs.plugin(‘thumbnails’, function(options) {which gives error Uncaught Reference error : videojs is undefined I referred to the docs for videojs where it’s says to register a plugin using the call vjs.plugin(‘examplePl

  • tk66
    javascript html5 video video.js
    here is part of my code:var myPlayer = document.getElementById(“example_video_1″);if (content==”play()”) {$(‘title’).html(“screen:”+content);myPlayer.play();}if (content==”pause()”) {$(‘title’).html(“screen:”+content);myPlayer.pause();}if (content.indexOf(“src(“)!=-1) {var videoMP4 = content.replace(“src(“,””).replace(“)”,””);myPlayer.src({type: “video/mp4”, src:videoMP4});// {type: “video/webm”, src:videoMP4.replace(“.mp4”, “.webm”)},// {type: “video/ogg”, src:videoMP4.replace(“.mp4”, “.ogv”)}

  • Werner
    floats captions memoir subcaption
    I made an article and insert several subfigures in that as follows:\begin{figure}\centering\begin{subfigure}[b]{0.3\textwidth}\includegraphics[width=\textwidth]{fig6_1}\caption{Increase}\end{subfigure}%\begin{subfigure}[b]{0.3\textwidth}\includegraphics[width=\textwidth]{fig6_2}\caption{Increase}\end{subfigure}\begin{subfigure}[b]{0.3\textwidth}\includegraphics[width=\textwidth]{fig6_3}\caption{Increase}\end{subfigure}\caption{Round} \end{figure}But, when I copy the same code to my thesis file,

  • Lazar Ljubenovic
    floats numbering captions
    How can I assign numbering of theorems to numbering of figures? I have a certain figure and instead of it being called Figure 2.1: Figure for Theorem 2.2, it would be much batter to have it simply named Figure 2.2, so readers don’t get confused.There probably won’t be more than one pictures for a single theorem, but just in case something unexpected happens in my document, is it possible to (either manually or automatic) add (a), (b), etc. after the caption?Alternatively, I wouldn’t mind adding

  • cgnieder
    captions memoir
    I’m trying to modify the defaut figure style with the memoir class.More precisely, I would like to have the Figure X.Y part in bold.To get X.Y in bold isn’t a problem, as the \captionnamefont{\bfseries} does the job.But what about “Figure” ?Note that adding the caption package conflicts with memoir, for those not knowing…

  • Marnix
    captions memoir fontsize
    How do I set the default caption font in a memoir?I tried:\documentclass{memoir} \usepackage[font=small]{caption}But that gives me a warning:Class memoir Warning: You are using the caption package with thememoir (memoir) class. This may cause unexpected or inconsistent(memoir) results if you use any of memoir’s captioning facilities.

  • Neil G
    tables captions
    If I don’t put a caption on my table, I don’t get the “Table 2.2” label underneath it. If I add a blank caption, I get “Table 2.2:”. How do I get rid of the “:”?I am using memoir and threeparttable. Within the threeparttable, I am using a tabular, but I don’t think that matters.

  • lockstep
    spacing floats captions
    I want some vertical space between the table caption and the table, and I am using \vspace{3mm}, which have always worked before. In this document however, the command works for some tables, for others it doesn’t make any difference, and for some it even “crashes” the run, saying Undefined control sequence […] \vspace.An example of one of the table where the command makes no difference.\documentclass[11pt,a4paper]{article}\usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage[utf8]{i

  • Gonzalo Medina
    table-of-contents captions
    I have list of figures page. Some of these figures’ captions have citation. How can I remove the citation from the list of figures page and keep the citation on the normal pages ? Regards::::::::::::::::::::::::: Addendum I am using the following command : \newcommand{\munepsfig}[3][scale=1.0]{%\begin{figure}[!htbp]\centering\vspace{2mm}\includegraphics[#1]{figures/#2.eps}\caption{#3}\label{fig:#2}\end{figure} }Sample Usage:\munepsfig[scale=0.5,angle=90]{barchart}{Population over time}

  • fodder
    dynamic video.js captions
    I’m coding a basic video marquee and one of the key requirements is that the videos need to be able to advance while keeping the player in full screen.Using Video.js (4.1.0) I have been able to get everything work correctly except that I cannot get the captions to change when switching to another video.Either inserting a “track” tag when the player HTML is first created or adding a track to the ‘options’ object when the player is initialized are the only ways I can get the player to display the

  • Joseph Wright
    errors captions siunitx
    I recently installed TeXLive 2011 on my MacBook (running MacOS X 10.6.8) and got the following problem:Example:\documentclass[11pt, a4paper]{scrbook}\usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[TS1, T1]{fontenc} \usepackage{aecompl} \usepackage{textcomp} \usepackage[ngerman]{babel} \usepackage{xspace} \usepackage[tight]{units} \usepackage{varwidth} \usepackage{xcolor} \usepackage{amsmath}\usepackage{siunitx} %\usepackage[round-mode=places, round-integer-to-decimal, round

  • Martin Schröder
    numbering captions
    Now it seems that the captions are numbered from 1,2,3,…… I want it numbered as Figure 2.1, Figure 2.2,… Figure 3.1, …The style file is as follows:\@ifundefined{DeclareOption}{}{% LaTeX2e option \ProvidesPackage{cuthesis}[2003/04/04 \space v 1.2]\DeclareOption{manuscript}{\def\@wantmanuscript{true}} \DeclareOption{standard}{}\DeclareOption{phd}{\def\@phddissertation{true}} \DeclareOption{masters}{}\DeclareOption{nocopy}{\def\@nolibraryrights{true}} \DeclareOption{copy}{}\DeclareOption{n

Web site is in building