on-internet

FFmpeg: Convert HTML 5 Video is NOT Working

I am using FFmpeg to convert a video to .mp4, ,ogg, .webm, so that it may be viewed in all HTML5 capable browsers using the video tag. The problem is that I manage to convert the video to the three required formats, but it does not display the video in the video tag, all I get is Internet Explorer 9: Red cross, Firefox: Grey cross, could it be a problem with the conversion or is it something to do with the way I am adding them to the source of the video tag. Here is what I have done: FFmpeg command line(s): ffmpeg -i test.mp4 test.mp4 ffmpeg -i test.mp4 test.ogg ffmpeg -i test.mp4 test.webm He

Join the discussion →

FFMPEG Convert HTML 5 Video NOT Working

I am using FFMPEG to convert a video to .mp4, ,ogg, .webm so that it may be viewed in all HTML5 capable browsers using the video tag. The problem is that I manage to convert the video to the 3 required formats but it does not display the video in the video tag, all I get is IE9: red cross, Firefox: Grey cross, could it be a problem with the conversion or is it something to do with the way I am adding them to the source of the video tag. Here is what I have done: FFmpeg command line(s): ffmpeg -i test.mp4 test.mp4 ffmpeg -i test.mp4 test.ogg ffmpeg -i test.mp4 test.webm Here is the video tag: <

Join the discussion →

HTML5 block-quote with author

Hi I'm seeing a great number of different ways to implementat blockquote in html but it doesn't seem clear in its documentation how should I properly format a blockquote let's say of a famous quote and metion its author like: In victory, you deserve Champagne, in defeat, you need it. Napoleon Bonaparte What would the correct format of that be in HTML5? Should the author be inside or outside the blockquote tag? Should it be inside the cite attribute? (even knowing the documentation specifies an URI , not author)

Join the discussion →

UML High Level Class Diagram

can somebody please explains what is a high level class diagram. As far as I know class diagram shows the association between the classes but what about high level class diagram??

Join the discussion →

Converting Word to PDF Using SharePoint 2010 Word Automation Services

I have tried to find out the way I can put locks or disable the copy and paste on the PDF file after the conversion. I looked at the ConversionJobSettings properties but I couldn’t be able to accomplish this. Based on what I have read, the sharepoint2010 Word Automation services API provides very limited capability in manipulating the conversion logics but is there any way I can lock down the content so that it cannot be copied? Thank for your help

Join the discussion →

Submit form with AJAX and set input field to readonly

I have a problem with submitting form with AJAX, print the response string under the form and set the input to readonly. My code: $('#save').click( function(){ var form_data ={ name: $('#name').val(), ajax:'1' }; $.ajax({ url:"page.php", type: 'POST', data: form_data, success: function(data){ $('#form_message').html(data); } }); $('#name').toggleClass('bgcolored'); $('#save').addAttr('readonly'); $('#save').toggleClass("invisible"); return false; } If I delete the row $('#save').addAttr('readonly'); the script works: it send values, catch the response and print it into the div form_message and

Join the discussion →

Javascript print page

Hi I have a survey page(survey.aspx) with question and answers. some of the answers have Radio buttons and check boxes. This page has a print button. When the user clicks on the print button another page(survey_print.aspx) opens up with the print content. I have all the content Radio buttons and check boxes in the print page. But how to show the checked Radio buttons and check boxes in the print page. This has to be done using Javascript or jquery. Any idea how this can be done. Thanks in advance

Join the discussion →

How to check if post exists before trying to delete from Facebook

hope you can help me with a bit of a problem I've encountered. I'm writing a Facebook application where I'm making posts to user walls to update game score using the PHP SDK. What I'm trying to do is delete the old post before posting the new one, and that's no problem. Where the problem starts is if the user has manually deleted the old post beforehand. When that's the case, the user's FB session is dropped and all interaction with the API becomes impossible until the user has gone through FB.login again. The code I'm using is: try { $statusUpdate = $facebook->api('/'.$postID, 'delete'); } ca

Join the discussion →

How to inspect Javascript Objects

How can I inspect an Object in an alert box? Normally alerting an Object just shows an opaque representation like [object Object]. For example: alert(document); // displays "[object HTMLDocument]" But I want to get the properties and methods of the object in the alert box. How can I achieve this functionality, if possible? Or are there any other suggestions? Particularly, I am seeking a solution for a production environment where console.log and Firebug are not available.

Join the discussion →

List users from specific groups

Good morning all, I am currentlycovering my line manager. And I need to modify an existing to VBScript, to pull users from specific groups in AD (Commercial, Finance, HR, IT, Marketing, Operations, and Property): Const ForReading = 1,ForWriting = 2,ForAppending = 8 StartFilename = "AD groups.txt" Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile(StartFilename,ForAppending, True) strDomainName = inputbox("Enter Domain Name","AD Billing","") Set objDomain = GetObject("WinNT://" & strDomainName) For each objDomainObject in objDomain If objDomainObject.c

Join the discussion →

Haskell-like type system in C

I was wondering, is it possible to integrate haskell's powerful type system into a language like C, and still be able to do efficent low level programming?

Join the discussion →

Restore a number from several its remainders (chinese remainder theorem)

I have a long integer number, but it is stored not in decimal form, but as set of remainders. So, I have not the N number, but set of such remainders: r_1 = N % 2147483743 r_2 = N % 2147483713 r_3 = N % 2147483693 r_4 = N % 2147483659 r_5 = N % 2147483647 r_6 = N % 2147483629 I know, that N is less than multiplication of these primes, so chinese remainder theorem does work here ( http://en.wikipedia.org/wiki/Chinese_remainder_theorem ). How can I restore N in decimal, if I have this 6 remainders? The wonderful will be any program to do this (C/C+GMP/C++/perl/java/bc). For example, what minimal

Join the discussion →

What is common way to split string into list with CMAKE?

Imagine I have the following string : set(SEXY_STRING "I love CMake") then I want to obtain SEXY_LIST from SEXY_STRING so I can do list(LENGTH SEXY_LIST len) and len is equal 3. I've found several macros on web, but I really want to know how to do it in "natural" way. This operation seems to be very basic and widely used.

Join the discussion →

is it possible to get a callback when a UITableView reload is done?

I am reloading some cells in my table view. After the reload is done, I want to scroll so that they are visible. I am aware of the scrollToRowAtIndexPath:atScrollPosition: method. But I need to call it after the reload as done, as said reload will change row heights. Here are some related questions, but they don't quite answer my question. UITableView , Scroll to bottom on reload? How to Start UITableView on the Last Cell EDIT -- My reload does not insert or delete any rows. Rather, I am reloading one or more cells to reflect updated information.

Join the discussion →

How do I "UTF-8 encode" my JavaScript files so that Google Chrome can use them in an extension?

I am writing a fairly simple extension for Chrome. The main graphical body of it (the part dealing with html, i.e. the front-end) works fine, but when I try to include a second JavaScript file that uses Jquery's $.ajax() function to return some info from another page to the front-end, Chrome throws the following error and won't let me load the extension: Could not load extension from "Path\to\extension". Could not load file "filename.js" for content script. It isn't UTF-8 encoded. I don't honestly know enough about UTF-8 encoding to be able to tell what would make Chrome say that about my file

Join the discussion →

Valgrind mac os mem leak

Today I installed Valgrind on my Mac OS X 10.6 and tried to test it out. And it turned out to be weird memory leaks in the system. What I did was just create simple c file that get some heap memory and immediately free it. When I ran Valgrind it showed something like this Realfrees-MacBook-Pro:C Realfree$ valgrind --tool=memcheck --leak-check=yes --show-reachable=yes ./a.out ==2621== Memcheck, a memory error detector ==2621== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==2621== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==2621== Command: ./a.out ==262

Join the discussion →

Running a Haskell program on the Android OS

Forenote: This is an extension of the thread started on /r/haskell Lets start with the facts: Android is one awesome Operating System Haskell is the best programming language on the planet Therefore, clearly, combining them would make Android development that much better. So essentially I would just like to know how I can write Haskell programs for the Android OS. My question is: How can I get a Haskell program to execute/run on the Android OS?

Join the discussion →

jaxws-maven-plugin LifecycleExecutionException

This part of my pom.xml: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxws-maven-plugin</artifactId> <executions> <execution> <goals> <goal>wsimport</goal> </goals> <configuration> <verbose>true</verbose> <args> <arg>-b</arg><arg>http://www.w3.org/2001/XMLSchema.xsd</arg> <arg>-b</arg><arg>customization.xjb</arg> <arg>-XtoString</arg> <arg>-Xequals</arg> <arg>-XhashCode</arg> <arg>-Xdebug</arg> </args> <wsdlUrls> <wsdlUrl>src/main/resources/ru/vtsft/wsdl/gis-services.wsdl</wsdlUrl> </wsdlUrls> <packageName>ru.vtsft.generated</packageName> </configuration> </execution> </execution

Join the discussion →

Hibernate cascade save parent and children - parent key not found

I am using Spring, Hibernate and oracle for a project. The database schema was created manually by running sql script. Everything works fine until I encountered a problem with hibernate one-to-many bidirectional cascade save. In the parent class (Product.java) @OneToMany(mappedBy="product", fetch=FetchType.EAGER, cascade={CascadeType.ALL}) public Set<Picture> getPictures() { return pictures; } @Transient public void addPicture(Picture picture) { picture.setProduct(this); pictures.add(picture); } In the child class (Picture.java) @ManyToOne(cascade={CascadeType.ALL}) @JoinColumn(name="lse09lse0

Join the discussion →

Exporting Crystal Report to PDF throws error: Error detected by export DLL: (541)

We have several Crystal Reports (version 8.5) that we run from VB6 and VB.Net. Most of these work just fine to export to PDF, but two reports (out of many) throw this error when exporting to PDF: Error detected by export DLL: (541) The error seems to be an unhandled error in Crystal, and we've tried changing every parameter we can think of with no luck. Any ideas? TIA.

Join the discussion →

Crystal Report viewer- Server has not yet been opened

I Have a vb6 application using crystal report 8.5 and sql server 2005.My issue is that when I print report i get Server has not yet been opened.Here is my code in vb.: Option Explicit Dim ctr As Integer Dim cn As New ADODB.Connection--Provider=SQLOLEDB.1;Password=password;Persist Security Info=True;User ID=user ID;Initial Catalog=database Name;Data Source=server Name Dim crApp As CRAXDRT.Application Dim crReport As CRAXDRT.Report Dim crtable As CRAXDRT.DatabaseTable Private Sub prin_Click() Dim rs As New ADODB.Recordset Set cn = New ADODB.Connection cn.ConnectionString = MDI1.txtado cn.Open Se

Join the discussion →
Older stories