Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

metadata

How to change metadata with ffmpeg/avconv without creating a new file?

August 19, 2023 by Tarik

You can do this with FFmpeg like so: ffmpeg -i input.avi -metadata key=value -codec copy output.avi Example: $ du -h test.mov 27M test.mov $ ffprobe -loglevel quiet -show_format out.mov | grep title # nothing found $ ffmpeg -loglevel quiet -i test.mov -codec copy -metadata title=”My title” out.mov $ du -h out.mov 27M out.mov $ ffprobe … Read more

Categories python Tags command-line, ffmpeg, metadata, python Leave a comment

Does PNG support metadata fields like Author, Camera Model, etc?

August 15, 2023 by Tarik

section 11.3.4.2 of the PNG spec gives a list of pre-defined meta tags (keywords) http://www.w3.org/TR/PNG/#11textinfo you can add as many other meta tags/fields as you would like. as for how, programmatically, that depends on the language you’re using!

Categories png Tags exif, jpeg, metadata, png Leave a comment

EF Mapping and metadata information could not be found for EntityType Error

August 13, 2023 by Tarik

For anyone else dealing with the error, I think it’s worth mentioning some scenarios that I’ve found that cause this (extremely unhelpful) error: Misspelled properties (case-sensitive!) Properties missing in the POCO class Type mismatches between the POCO and entity-type (e.g., int instead of long) Enums in the POCO (EF doesn’t support enums right now as … Read more

Categories entity-framework Tags entity-framework, entity-framework-4, mapping, metadata Leave a comment

Is there any way for the nameof operator to access method parameters (outside of the same method)?

August 10, 2023 by Tarik

No. There is no way to get the parameter names from the outside of the method using nameof. nameof doesn’t work for method parameters if you want the name on the calling side (for the callee it does work obviously). The other methods you mentioned, like reflection, do work. var parameterNames = typeof(Program) .GetMethod(nameof(Program.Main)).GetParameters() .Select(p … Read more

Categories c# Tags c#-6.0, c++, metadata, nameof Leave a comment

Extracting information from PDFs of research papers [closed]

August 9, 2023 by Tarik

I’m only allowed one link per posting so this is it: pdfinfo Linux manual page This might get the title and authors. Look at the bottom of the manual page, and there’s a link to www.foolabs.com/xpdf where the open source for the program can be found, as well as binaries for various platforms. To pull … Read more

Categories pdf Tags extract, metadata, pdf Leave a comment

What is metadata in .NET?

August 7, 2023 by Tarik

Since others already provided great explanatory answers, I’ll just mention how you can view metadata yourself. In your Microsoft SDK directory (most likely variations of C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools) there’s program called ildasm.exe – it’s simple disassembler that allows you to view compiled .NET binaries. You can build very simple console application and use … Read more

Categories c# Tags .net, c++, metadata Leave a comment

Adding attributes into Django Model’s Meta class

July 25, 2023 by Tarik

I don’t know about elegant, but one pragmatic way is: import django.db.models.options as options options.DEFAULT_NAMES = options.DEFAULT_NAMES + (‘schema’,) Obviously, this would break if Django ever added a ‘schema’ attribute of its own. But hey, it’s a thought…you could always pick an attribute name which is less likely to clash.

Categories python Tags django, django-models, metadata, python Leave a comment

How to Check all stored procedure is ok in sql server?

July 24, 2023 by Tarik

I found Cade’s answer useful in formulating my own script for checking objects in a database, so I thought I’d share my script as well: DECLARE @Name nvarchar(1000); DECLARE @Sql nvarchar(1000); DECLARE @Result int; DECLARE ObjectCursor CURSOR FAST_FORWARD FOR SELECT QUOTENAME(SCHEMA_NAME(o.schema_id)) + ‘.’ + QUOTENAME(OBJECT_NAME(o.object_id)) FROM sys.objects o WHERE type_desc IN ( ‘SQL_STORED_PROCEDURE’, ‘SQL_TRIGGER’, ‘SQL_SCALAR_FUNCTION’, … Read more

Categories sql Tags dependencies, metadata, sql, sql-server Leave a comment

What is the Greasemonkey namespace needed for?

June 28, 2023 by Tarik

A namespace is used to avoid naming collisions. If you called your script foobar and someone else did as well, then central repositories would have a hard time telling them apart. Therefore you should provide some URL that you control (i.e. you own it or can administrate it) that basically means “everything with that URL … Read more

Categories namespaces Tags greasemonkey, metadata, namespaces, userscripts Leave a comment

Get metadata from DOI

June 15, 2023 by Tarik

Section 5.4.1 Content Negotiation of the DOI Handbook documents states, “Content negotiation is being implemented by DOI Registration Agencies for their DOI names, specifically to offer value-added metadata representations for users.” According to Section 4 Supported Content Types of the DOI Content Negotiation documentation for http://crosscite.org, “Currently three DOI registration agencies have implemented content negotation … Read more

Categories metadata Tags bibtex, doi, metadata Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page7 Next →

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa