There is no mtimes attribute on webpack5 compiler.watchFileSystem.watcher, how can I get the list of changed files? - webpack-5

webpack4 compiler.watchFileSystem.watcher.mtimes
Obtain the list of changed files and do some follow-up processing. Currently migrating webpack5, it is found that the property mtimes is not available on webpack5.
Is there any alternative property or method for this?

Compiler.modifiedFiles has been added (next to Compiler.removedFiles) to make it easier to reference the changed files.
Compiler.modifiedFiles can help me

Related

How override woocommerce view-order template?

This page: /my-account/view-order/132616/
... is associated with the view-order.php template file under the my account section. I am able to edit this by going directly into the woocommerce plugin dir, but copying the file into /my-child-theme/woocommerce/myaccount/view-order.php does not have any effect. I am able to edit the orders.php template in this manner, but not this one. I haven't been able to find any answers online to this one: why some of these template files can be copied / overwritten and some cannot be? Also, there appears to be limited scope on applying a hook to manipulate the content on this page. What I want to do, is turn the product names listed here into links back to the products in the store. Thanks for any help!
turns out this doesn't satisfy my need since the content I'm trying to manipulate is in the woocommerce_view_order do_action. Now I'm on the hunt for a filter hook.

How to add a new language in Sitecore 8?

I'm working on Sitecore 8 and want to add a new language but Im having a message:
The spell checker dictionary does not exist.
Could you please help me?
All the dictionary files are stored in sitecore\shell\Controls\Rich Text Editor\Dictionaries\ directory.
There is no en-AU dictionary there by default (there are en-UK and en-US dictionaries). You can use one of them I guess. Or you can try google en-AU and use something from the Internet "en-AU.tdf" google search.
I had the same issue. I was able to resolve it by editing the "InvalidItemNameChars" setting temporarily.
Our project had a patch for InvalidItemNameChars like this:
This setting is usually in web.config. If you don't find it there, check "/sitecore/admin/showconfig.aspx" for InvalidItemNameChars.
I had to remove the '-' from the value and create the language. You will not get the error on not selecting the spell checker. You can leave it empty.
Once you are done creating the language add the '-' back to the config (in my case it was a patch config).

Is it possible to edit tag of a file programatically using c++

I want to add/edit the tag of a file programatically using c++.But after seraching for almost 2 days I found nothing.Could you kindly help me whether we can add/edit the tag of a file using c++?
Thanks in advance.
Edit 1:
I want to edit the OS level tag on file/directory.Eg:Each file has its own properties like Title,Subject,Categories and one among this is tags.I want to edit/add the property "Tags".
Thanks tony for suggestion.
Regards,
Ravi
Here's a detailed example about how to access the property values of a file:
http://support.microsoft.com/kb/186898
Here's a shorter example that shows how to write property values:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa380387(v=vs.85).aspx
I don't know about the property Tags (I haven't seen it anywhere), but as you see, it basically is possible to manipulate properties of NTFS files.

Modifying IE's download journal

I'm having problems deleting entried from IE's downloads journal.
So I've found a file which responsible for storing this information. In my case file located here:
AppData%\Microsoft\Windows\IEDownloadHistory\index.dat
You can also obtain its location from registry - the key is HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iedownload and the variable is CachePath. If IE is running this file is locked. It is important for me to modify this file while IE is running because I'm trying to achieve that from a Browser Helper Object.
I also was trying to clean up this list using some of the WinInet methods: FindFirstUrlCacheEntry, FindNextUrlCacheEntry and DeleteUrlCacheEntry - but I'm not quite sure if those what I'm exactly looking for.
Since there are not so many information about this problem I was trying to use everything I've found relative...
Thanks in advance.
You can enumerate this entries using FindFirstUrlCacheEntryEx/FindNextUrlCacheEntryEx with parameters lpszUrlSearchPattern = L"iedownload:" and dwFilter = 0XFFFFFFFF.

Coldfusion CFC Mapping to external directories with CFCs that reference other folders

I've done some poking around and trial and error but I'm not coming up for a solution to this problem I have.
I have a folder structure like this (example)
Application.cfc
Objects\
Object.cfc
Utilities\
Util.cfc
API\
Resources\
index.cfm
Application.cfc
I have one site that points to the API folder (http://api.site.com) and another that points to the overall root (http://site.com)
From Api\Resource\index.cfm. I'm trying to createObject() on Objects\Object.cfc. I set up a mapping, either in CF Admin, or API\Application.cfc with this.mappings["/SiteRoot"] = "C:\wwwroot". Inside the index.cfm I do createObject("component","SiteRoot.Objects.Object"). This correctly access the Object.cfc.
The issue I'm having is that it fails because Object.cfc instantiates the Utilities\Util.cfc just by createObject("component","Utilities.Util"). The error is that Utilities.Util cannot be found.
There are other files in the very bottom root that can obviously call Object.cfc with no problems since it just goes into the Utilities folder naturally.
Any suggestions Or do I really need to just break the API Folder out of this root entirely?
Thanks!
UPDATE
It's not letting me answer my own question just yet but I wanted to post here before others chimed in.
Despite reiniting the application and restarting the application server, once or twice it wasn't working. Then suddenly, it just went and worked as I would have expected. Object.cfc could find Util.cfc correctly based on it's relative path.
I gave upvotes to those who responded as they were perfectly viable alternatives and solutions and would have gone with one of them had this not just started working. Demons, I tell you. Demons.
Thanks!
I think I would change your second create object call (the utilities one) to createObject("SiteRoot.Utilities.Util") ? Making sure that one mapping "governs" the starting point for all the objects no matter where instantiated.
If you really cannot change your code then just create a ColdFusion mapping called Utilities pointed at the Utilities folder.