is there a way to tag video files independent of any tool
We are in the 21st century and still there is no good way to tag photos and videos? There is always a dependency on some tool... Is there no way to make the file autonomous with respect to its tags?
Video files, for example, are not friendly to tags. some video formats do not allow tagging at all. Some tools keep the meta data in their own external representation and when you copy the original file to some new destination, the meta data of the file in the destination is lost. Also this metadata may only be seen by this proprietary tool and is not seen by other tools (e.g. tagging by Adobe products are not visible/searchable in Windows Explorer)
Is there a universal way to tag any file including video files so that
- searching for files having a certain tag is possible in any tool
- when a file is copied, the tags are transferred with it
- when the file is edited in any tool and re-saved, the tags are not lost...?
do you know?
how many words do you know
See also questions close to this topic
-
WebView2 JS injection returns empty json string
With WebView2 for targeting Windows, I am trying to setup my own context menu. Either by selected text or by underlying element pointed by mouse click.
However, I can't get DOM element by mouse operation or even by byId. I think my JavaScript injection or WebView property setting is something wrong, but not too sure. Can anyone suggest me the resolution?
The version info.
- OS : Windows 10 Pro 21H2 19044.1682
- Visual Studio : Community 2022 17.1.6
- WebView2 : 1.0.1185.39
- Project Property: Target framework=.NET 6.0; Target OS version=10.0.19041.0
Here's the testing code
using Microsoft.Web.WebView2.Core; namespace WinFormsApp1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); HTML(@"C:\temp\test.html"); } public void HTML(string url) { webView21.CoreWebView2InitializationCompleted += WebView2Control_CoreWebView2InitializationCompleted; webView21.Source = new Uri(url); } private void WebView2Control_CoreWebView2InitializationCompleted(object? sender, CoreWebView2InitializationCompletedEventArgs e) { if (!e.IsSuccess) { MessageBox.Show($"WebView2 creation failed, with exception : {e.InitializationException}"); return; } // subscribe to events we are interested in webView21.CoreWebView2.ContextMenuRequested += CoreWebView2_ContextMenuRequested; // user clicked right mouse to show context menu } private async void CoreWebView2_ContextMenuRequested(object? sender, Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuRequestedEventArgs e) { IList<CoreWebView2ContextMenuItem> menuItemList = e.MenuItems; menuItemList.Clear(); // clear default menu items, like prev, next, property //GETTING SELECTED TEXT string text = e.ContextMenuTarget.HasSelection ? e.ContextMenuTarget.SelectionText : ""; // it works if (string.IsNullOrEmpty(text)) // no text selection, then examine DOM { //GET AN UNDERLYING ELEMENT FROM MOUSE POINT var result = await webView21.CoreWebView2.ExecuteScriptAsync($"document.elementFromPoint({e.Location.X},{e.Location.Y})"); //it doesn't work, just returns an empty JSON text (not null) //var result = await webView21.CoreWebView2.ExecuteScriptAsync("function foo(){return 'foo() gets called';}; foo();"); //for testing purpose, it works //var result = await webView21.CoreWebView2.ExecuteScriptAsync("function foo(){return document.getElementById('table-content'};foo();)"); //it returns an empty result } // TO DO // setup menuItem tree based on the result we got //...... //...... e.Handled = true; } } }
-
site only opens in CefSharp
zaakr.net is a site can be opened only in zaakr.exe application or through android(.apk), when opened in browser u been redirected to https://browser.zaakr.net so u download there application, (.exe) file is using cefsharp as a browser so it can access website, from 2 month i could open it from chromium as cefsharp uses chromium, now i can't access website through chromium for some reason idk, i even made a cefsharp browser myself using visual studio nothing worked all the time i been redirected to browser.zaakr.com, i want to access through any browser that have devtools available for a project, note that application zaakr.exe is still using cefsharp even the older version still can access site. i would appreciate any help, sry for any spelling mistakes, thanks.
-
Subprocess $Env:Path python: The filename, directory name, or volume label syntax is incorrect
I am trying to change the windows environment variables, but I am having trouble doing so.
Before I tried to use
os.environ()
I tried out using powershell commands and adding a string to$Env:Path
which worked, but removing it with:$env:Path = ($env:Path.Split(';') | Where-Object -FilterScript {$_ -ne $Remove}) -join ';'
however didn't seem to remove it being my path I want to add
("FFmpeg:C:\Users\user\AppData\"
) and adding it with+= C:/Users/etc..
didn't see, the way to go.Another way I tried to add vars through the Powershell commands was using
SetEnviormentVariable
and it seemed to work fine but once I restarted my PC the entry I made with it was gone.Sadly though all in the end all my powershell commands didn't work with subprocess. Whatever command it was I was using here I got:
PS C:\Users\Me123> python >>> import subprocess >>> subprocess.run("$Env:Path", shell=True) The filename, directory name, or volume label syntax is incorrect. CompletedProcess(args='$Env:Path', returncode=1)
-
Replace keyword with mat-chip in ngx-editor angular 11
I am having an ngx-editor for message compose UI, in the angular 11 application. I have a requirement that users can enter available tags in the editor, which will be replaced by the value when the form submits. I want these tags to be converted to mat-chip (or removable chips), which can be removed if the user clicks backspace. I am looking for suggestions. Thanks.
-
How to filter an array by deleting a tag?
i'm trying to refilter an array but the path to access the choosen parameter seems to be a bit tricky. The full project is supposed to filter on 3 parameters but the other 2 are working.
On click on filter, we're filtering correctly. But on click on the span, i'm suppose to start to filter again for each tag currently displayed.
How to make it works (here if we cancel the filter we're supposed to get both recipes), but how to make it works if more recipes and more tags are applied ?
<button class="btn">Filter</button> <span class="tag">Jus de citron</span>
async function getRecipes() { const response = await ((await fetch("./data.json")).json()) const recipes = response.recipes; console.log(recipes) return ({ recipes: [...recipes] }); }; async function filter() { const { recipes } = await getRecipes() const btn = document.querySelector(".btn"); let filteredRecipes = []; btn.addEventListener("click", () => { //Only click once (no security for example) filteredRecipes.push(recipes.filter(recipe => { recipe.ingredients.filter(({ingredient}) => { if(ingredient.includes("Jus de citron")) return filteredRecipes.push(recipe) }) })) filteredRecipes = filteredRecipes.slice(0, filteredRecipes.length-1) console.log(filteredRecipes) }) } function deleteTag() { const tags = document.querySelectorAll(".tag"); tags.forEach(tag => { tag.addEventListener("click", () => { if(tag.classList.contains("tag")) { //Filter } console.log(filteredRecipes) //Expected output (2 recipes) }) }) } filter() deleteTag()
the datas :
{"recipes": [ { "id": 1, "name" : "Limonade de Coco", "servings" : 1, "ingredients": [ { "ingredient" : "Lait de coco", "quantity" : 400, "unit" : "ml" }, { "ingredient" : "Jus de citron", "quantity" : 2 }, { "ingredient" : "Crème de coco", "quantity" : 2, "unit" : "cuillères à soupe" }, { "ingredient" : "Sucre", "quantity" : 30, "unit" : "grammes" }, { "ingredient": "Glaçons" } ], "time": 10, "description": "Mettre les glaçons à votre goût dans le blender, ajouter le lait, la crème de coco, le jus de 2 citrons et le sucre. Mixer jusqu'à avoir la consistence désirée", "appliance": "Blender", "ustensils": ["cuillère à Soupe", "verres", "presse citron" ] }, { "id": 2, "name" : "Poisson Cru à la tahitienne", "servings": 2, "ingredients": [ { "ingredient" : "Thon Rouge (ou blanc)", "quantity" : 200, "unit" : "grammes" }, { "ingredient" : "Concombre", "quantity" : 1 }, { "ingredient" : "Tomate", "quantity" : 2 }, { "ingredient" : "Carotte", "quantity" : 1 }, { "ingredient" : "Citron Vert", "quantity" : 5 }, { "ingredient" : "Lait de coco", "quantity" : 100, "unit" : "ml" } ], "time": 60, "description": "Découper le thon en dés, mettre dans un plat et recouvrir de jus de citron vert (mieux vaut prendre un plat large et peu profond). Laisser reposer au réfrigérateur au moins 2 heures. (Si possible faites-le le soir pour le lendemain. Après avoir laissé mariner le poisson, coupez le concombre en fines rondelles sans la peau et les tomates en prenant soin de retirer les pépins. Rayer la carotte. Ajouter les légumes au poissons avec le citron cette fois ci dans un Saladier. Ajouter le lait de coco. Pour ajouter un peu plus de saveur vous pouver ajouter 1 à 2 cuillères à soupe de Crème de coco", "appliance": "Saladier", "ustensils": ["presse citron"] } ]}
-
XML: delete unwanted tags but keep text content
I am trying to tidy up a corpus with way too many tags. To do this, I want to filter out/remove the useless tags but keep the text content. I'm quite new at working with xml and neither code I tried works. The corpus looks something like this:
<corpus> <dialogue speaker="A"> <sentence tag1="a" tag2="b"> Hello </sentence> </dialogue> <dialogue speaker="B"> <sentence tag1="cc" tag2= "dd"> How are you </sentence> <sentence tag1="ff" tag2= "e"> today </sentence> </dialogue> <dialogue speaker="A"> <sentence tag1="d" tag2= "bbb"> Great </sentence> <sentence tag1="f" tag2= "dd"> How about you </sentence> </dialogue> <dialogue speaker="B"> <sentence tag1="a" tag2= "dd"> me too </sentence> </dialogue> </corpus>
And the ideal outcome should be:
<corpus> <dialogue speaker="A"> <sentence tag1="a" tag2="b"> Hello </sentence> </dialogue> <dialogue speaker="B"> <sentence tag1="cc" tag2= "dd"> How are you today </sentence> </dialogue> <dialogue speaker="A"> Great How about you </dialogue> <dialogue speaker="B"> <sentence tag1="a" tag2= "dd"> me too </sentence> </dialogue> </corpus>
The first code I tried is this, but it kept giving me an error for
strip_tags()
:f = ET.parse("file.xml") root = f.getroot() def filter_by(f, tag_list): for elem in root.iter('dialogue'): for start in elem.iter('sentence'): print(sentence.attrib) if tag_list in root.findall('.//sentence[@tag1]'): pass else: etree.strip_tags(f, 'sentence') return f filter_by(f, ["a"]) f.write("output.xml")
Since there are more then one tag I need to keep, the other option I tried was this one, but it still gave me an error in the if-statement:
f = ET.parse("file.xml") root = f.getroot() tags_want = ["a", "cc"] for child in root.iter('sentence'): attrib = child.get("tag1") if attrib not in tags_want: etree.strip_tags(f,'sentence') f.write("output.xml")
Can someone help me?
-
I am using adobe after effect 2015 and I got a black screen in mocha ae after importing MP4 file. I have set the both FPS and resolution as same. Why?
I am using adobe after effect 2015 and when I import MP4 file into the mocha AE it gets black. I set the video and composition FPS as same as well as the resolution and i am using I3 5gen computer and on board GPU. Can u tell what is the reason for that.
-
SVG file imported as Vector in Android Studio not converted correctly
I have an image of a dinosaur that I have converted to an SVG from Adobe Illustrator (I did not create this image which may result to may lack of knowledge on what the issue is).
^ [Image is in PNG format because SVG cannot be uploaded, but both formats look identical]
However, whenever I upload this image into Android Studio using the "Configure Vector Asset" tool in the "Resource Manager" most of the image is transparent.
^ [As you can see most of the image is transparent]
I have done extensive research on how to resolve the issue; however, I have not been able to resolve the issue. Although, I believe I have pin pointed the issue which is due to the fact that "The tool supports group elements for translation, scaling, and rotation. Groups do not support an opacity property" (from https://developer.android.com/studio/write/vector-asset-studio#svg).
Unfortunately, even though I may be aware of what the problem is, I am unaware how to solve this issue. Any help would be greatly appreciated. Thank you.
-
Adobe Pdf - Hiding buttons on PNG export
Good Day, I'm creating a form in Adobe and need to use the form exported as an image. However, when exporting, the buttons appear in the output image. I was wondering if there is a way to hide the buttons when exporting the from as an PNG image. Cheers
-
Get final url to scrape metadata
Hi I'm trying to get final url using :metadata_parser and requests libraries to be able to scrape metadata from the site. When not full url provided, I'm recieveng following error: "NotParsableFetchError: Status Code is not 200 | 403 | None". Thanks a lot!
import requests import metadata_parser url1 = "BRIGHTFUTURE.CO.IL" url2 = "Hamonym.com" try: page = metadata_parser.MetadataParser(url1, requests_timeout=10) except (requests.exceptions.MissingSchema, TypeError, metadata_parser.NotParsableFetchError): link = requests.head("http://" + url1, allow_redirects=True, timeout=10) page = metadata_parser.MetadataParser(link.url) print(page.metadata)
-
Alternatives to Codemeta
Are there other standard/specifications that define meta information about a repository besides codemeta? Before committing to the first found option, I'd like to see what others exist or if there's other approaches. Thanks!
Also, if someone with greater experience agrees, I think
codemeta
is definitely a worthy tag. -
Why metadata is not valid "token_uri": null
I've been testing a smart contract using remix with validated metadata that I have used in one of the NFT smart contracts that I deployed on mainnet and everything worked well, but this time when used & deployed the same smart contract with the same metadata structure (using remix), I couldn't see the NFTs that I minted on opensea Testnet.
ipfs://QmNzcydNR1Hh75g8C9FBvhVZe8fiRQJ9YkGwsgvgrRQBQj/eth.json
I've used https://rinkeby-api.opensea.io/ to debug my metadata
I got the error bellow
HTTP 200 OK Allow: OPTIONS, GET Content-Type: application/json Vary: Accept { "valid": true, "token_uri": null, "errors": [] }
-
How to open any application from address bar?
I want to open applications by typing its name on the address bar. It is possible for my Jupyter notebook. jupyter notebook
But I want to make it happen for all other applications as well. Or at least for IntelliJ IDEA and Eclipse. So that I can open and create my java-workspace then and there directly. But it is not working for either IntelliJ or Eclipse. eclipse
-
WIndows Explorer search works in subfolders but not parent folder
In Windows 10, on my local hard drive I've got a parent folder
parent
with child folderchild1
,child2
, etc. Each of of the child folders has files with the extension.docker
.In Windows Explorer, when the current directory is any of the child folders, and I enter
*.docker
into the search field, it returns a list of the files. However, when I navigate up one level, to the parent folder, and run the same search, it's returning nothing. What could explain this, and how can I fix it? -
Application not found fix? (Windows 11)
For a few days now the "open with code" option in the Windows Explorer has not been working for me, everytime I try it, it just says "application not found". Is there anything that I can do to fix this?