Why is VirusTotal “unable to process file type” for files packed with Mpress?

Packed an AutoHotkey script with ahk2exe using MPress, got 13 hits on the VirusTotal online scan for the zipped result. Packed the same script with the same ahk2exe without MPress and got just 6 hits on the zipped result. Zip performed with identical 7z defaults in both cases.

Some of the virus agents associated with red flags in the first scan now come up as “Unable to process file type” in the second report. Why is this?

WordPress Admin Page Slow. Customer Post Type is the slowest

The admin page loads slowly ever since adding Custom Post types. I’ve added them using CPT UI and Custom Fields plugins in WordPress. Whenever you click on the Custom post type from the sidebar it takes 8.74s to load. With one of the queries showing as “slow” according to debug bar plugin. See screenshot.

Context: I’ve created a site that hosts advertiser listings. We have about 700 advertisers with 20 fields.

How would one fix these load times? Does someone notice anything odd in the query?

Screenshot of debug bar details

Disable Fields in Custom Meta Boxes inside Custom Post Type

I want to create an Options page for my plugin.

I have two custom post types. Both habe metaboxes with fields inside. They are perfectly saving now (thanks to you guys on stackexchange).

Now, I want to create an Options Page (already done) and want to allow the admin to disable or enable every single field of every metabox

For example

Post Type: np-food Metabox: nutrition-info fields: energy_kcal, energy_kilojoule, etc

Optionspage:

Enable energy_kcal yes/no dropdown Enable energy_kilojoule yes/no dropdown

Saving removes them if disabled and let them appear if enabled.

Glad for any help 🙂

Have a great Day

Buddy

When is subtyping of accumulative type universes useful?

AFAIK, accumulative type universe(Type^0: Type^1: Type^2: ...) was introduced to avoid inconsistency caused by Type: Type.

But some functional language(e.g. Idris) also allows subtyping of these type universes(x: Type^n then also x: Type^n+1). From my understanding, this is not mandatory to solve the inconsistency. So it leads me to guess there should be some advantages from this redundant subtyping rule.

When is subtyping of accumulative type universes useful?

Pin the 4th Post On The Archive Page Of A Custom Post Type

I’m building a custom theme and would like to pin the 4th post on an archive page for a custom post type. How would I go about doing this? When you Google this subject it is just a sea of articles about how to pin the 1st post. The reason for wanting to pin the fourth post is because it is going to contain an advertisement / sponsored link.

Obviously I wish to pin it so it stays in fourth place not pin that post to the top of the page.

I have been using the WP_Query() function on the archive page itself in case it is possible with this function (I can’t see that it is though).

Many thanks in advance for any pointers / advice.

Emily

How do I make a Roll20 macro that prompts the user for a save type once, and then outputs the save as though you clicked it on the character sheet?

How do I make a macro for Roll20 that will prompt the user for a save type once, and then roll a save for the chosen ability and output it in a format that matches the format of if they clicked it on the character sheet?

I have the following macro kindly provided by MikeQ in answer to this question – How do I make this Roll20 macro for saving throws work while only asking for the type once? – but the format isn’t the same:

@{selected|token_name} rolls a ?{Save |STR,[[1d20+@{selected|strength_save_bonus}]]/[[1d20+@{selected|strength_save_bonus}]] for a strength |DEX,[[1d20+@{selected|dexterity_save_bonus}]]/[[1d20+@{selected|dexterity_save_bonus}]] for a dexterity |CON,[[1d20+@{selected|constitution_save_bonus}]]/[[1d20+@{selected|constitution_save_bonus}]] for a constitution |INT,[[1d20+@{selected|intelligence_save_bonus}]]/[[1d20+@{selected|intelligence_save_bonus}]] for an intelligence |WIS,[[1d20+@{selected|wisdom_save_bonus}]]/[[1d20+@{selected|wisdom_save_bonus}]] for a wisdom |CHA,[[1d20+@{selected|charisma_save_bonus}]]/[[1d20+@{selected|charisma_save_bonus}]] for a charisma } save! 

It yields output of “[character name] rolls a [1d20+mod]/[1d20+mod] for a [type] save!” in the chat.

How to determine the type of alias analysis required?

Attached is a homework question whether content-sensitive and/or flow-sensitive analysis is required to see which values src can point to. And it gives the definitions of the content-sensitive and flow-sensitive analysis, but how do you interpret whether it is content-sensitive (result depending on calling stack) or content insensitive (result not depending on calling stack) and flow sensitive (looking at every point in the program) and flow insensitive (looking at any point in the program execution) ?

AliasAnalysis