What's the best way to get video metadata from a MP4 file in ASP.Net MVC using C#?

What's the best way to get video metadata from a MP4 file in ASP.Net MVC using C#?

I've been searching on Google and StackOverflow for a good couple of hours. There seems to be a lot of similar questions on StackOverflow but they are all about 3-5 years old.Is using FFMPEG still the best way these days to pull metadata fr

Changing console_script entry point interpreter for packaging

Changing console_script entry point interpreter for packaging

I'm packaging some python packages using a well known third party packaging system, and I'm encountering an issue with the way entry points are created.When I install an entry point on my machine, the entry point will contain a shebang poin

How to script gdb (with python)? Example add breakpoints, run, what breakpoint did we hit?

How to script gdb (with python)? Example add breakpoints, run, what breakpoint did we hit?

I'm trying to create a little unit test with gdb, for a embedded mcu that is controlled by OpenOCD (that gives me control over my target via a gdb server).So I would like to automate this with some scripting of gdb.I would like to write som

CMake: How to create alias for installing different targets?

CMake: How to create alias for installing different targets?

Suppose that I've got the following libraries:add_library(myLib_static STATIC ${SRC_FILES})add_library(myLib SHARED ${SRC_FILES})# installing header filesinstall(FILES ${H_FILES} DESTINATION ${INSTDIRHEADER})# installing binariesinstall(TAR

Using reflection to get all classes of certain base type in dll

Using reflection to get all classes of certain base type in dll

I have a dll that contains a number of classes that all inherit from a CommandBase class. I'm trying to get instances of all of these classes (CommandA, CommandB, CommandC, etc...) using reflection in C# so that I can call a specific method

.NET MySQL Connector Conflicting DbProviderFactories

.NET MySQL Connector Conflicting DbProviderFactories

I'm using the .NET MySQL Connector with Entity Framework 4, and everything worked great but I wanted to package the MySQL client DLL files with my application when deployed on servers so we don't have to worry about installing mysql on each

What are the arguments IN FAVOR of PHP closing tags for PHP only files?

What are the arguments IN FAVOR of PHP closing tags for PHP only files?

The Zend Framework coding standard mentions the following:For files that contain only PHP code, the closing tag ("?>") is never permitted. It is not required by PHP, and omitting it prevents the accidental injection of trailing whitespace i

Error installing yeoman

Error installing yeoman

Installing Yeoman on my OSX machine results in the following error:paulh16$ npm install -g yonpm http GET https://registry.npmjs.org/yonpm http 304 https://registry.npmjs.org/yonpm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/yo'n

Numpy histogram of large arrays

Numpy histogram of large arrays

I have a bunch of csv datasets, about 10Gb in size each. I'd like to generate histograms from their columns. But it seems like the only way to do this in numpy is to first load the entire column into a numpy array and then call numpy.histog

How to run Jasmine tests on Node.js from command line

How to run Jasmine tests on Node.js from command line

How do I run Jasmine tests on Node.js from command line? I have installed jasmine-node via npm and written some tests. I want to run tests inside the spec directory and get results in the terminal, is this possible? 1:EDITIt seems this i

Adding 'install_requires' to setup.py when making a python package

Adding 'install_requires' to setup.py when making a python package

To make a python package, in setup.py, I have the following:setup( name='TowelStuff', version='0.1.0', author='J. Random Hacker', author_email='[email protected]', packages=['towelstuff', 'towelstuff.test'], scripts=['bin/st

How can I create XML from Perl?

How can I create XML from Perl?

I need to create XML in Perl. From what I read, XML::LibXML is great for parsing and using XML that comes from somewhere else. Does anyone have any suggestions for an XML Writer? Is XML::Writer still maintained? Does anyone like/use it?

Unix pipe into ls

Unix pipe into ls

I thought I understood *nix pipes until now... I have an executable called studio which symlinks to my install of Android Studio and I had assumed I could get the linked-to location with which studio | ls -lBut that doesn't work. What it gi

how to use mongoimport with my meteor application database?

how to use mongoimport with my meteor application database?

I'm able to use mongoimport to import csv data into a non-meteor mongodb database, but I can't figure out how to import a csv into my meteor app database.I learned how to run the mongo shell for my meteor app (meteor mongo) but I can't run

Unknown error: Chrome failed to start: exited abnormally

Unknown error: Chrome failed to start: exited abnormally

I am getting this error when I run my tests with selenium using chromedriver.selenium.common.exceptions.WebDriverException: Message: u'unknown error: Chrome failed to start: exited abnormally\n (Driver info: chromedriver=2.9.248316,platfor

How can I find the device uuid's of all connected devices through a command line script?

How can I find the device uuid's of all connected devices through a command line script?

I am running automated tests on iOS devices. I want to not have to always have all devices connected. So I want to find all device id's and then only start the process of building, deploying, and running tests if that device is connected.

Finding the layers and layer sizes for each Docker image

Finding the layers and layer sizes for each Docker image

For research purposes I'm trying to crawl the public Docker registry ( https://registry.hub.docker.com/ ) and find out 1) how many layers an average image has and 2) the sizes of these layers to get an idea of the distribution.However I stu

How to dynamically monitor Java heap size?

How to dynamically monitor Java heap size?

I am trying to monitor the java heap size dynamically. Does anybody know how to get the maxmium memory used in the process of running a piece of codes? Does the Runtime.maxMemory() do the trick? Thanks 1:maxMemory() returns the maximum a

Get application path without using httpcontext. (asp.net)

Get application path without using httpcontext. (asp.net)

How to do it?I don't want to use this:HttpContext.Current.Server.MapPathIs there a similar function that I can call without requiring a httpcontext?For example if a start a thread doing some stuff i cant use the httpcontext, but i still nee

Using two different Python Distributions

Using two different Python Distributions

I currently have continuum analytics' python distribution (called anaconda) downloaded and in use on my computer. My problem is that I want to use virtualenv for a flask project and anaconda flashes a warning that says "virtual env is not

Cropping pages of a .pdf file

Cropping pages of a .pdf file

I was wondering if anyone had any experience in working programmatically with .pdf files. I have a .pdf file and I need to crop every page down to a certain size.After a quick Google search I found the pyPdf library for python but my experi

How can I figure out what is holding on to unfreed objects?

How can I figure out what is holding on to unfreed objects?

One of our programs is sometimes getting an OutOfMemory error on one user's machine, but of course not when I'm testing it. I just ran it with JProfiler (on a 10 day evaluation license because I've never used it before), and filtering on o

Linking using g++ fails searching for -lstdc++

Linking using g++ fails searching for -lstdc++

I'm trying to use someone else's Makefile to complile a very simple c++ library. The makefile is as follows:JNIFLAGS=-O2 -pthread -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linuxall: rm -f ../dist/libUtils.so

Passing a regex substitution as a variable in Perl?

Passing a regex substitution as a variable in Perl?

I need to pass a regex substitution as a variable:sub proc { my $pattern = shift; my $txt = "foo baz"; $txt =~ $pattern;}my $pattern = 's/foo/bar/';proc($pattern);This, of course, doesn't work. I tried eval'ing the substitution:eva

Where is PyGTK for Mac OS X?

Where is PyGTK for Mac OS X?

Is there a binary out there for the current mac os x, python for PyGTK? I work with multiple desktop environments (mac, windows, gnome) and really consider python's lack of cross platform GUI's a problem. Does anyone know where I can find a