user roles – Recent posts on homepage: different thumbnail based on logged in status and post category

This works well on archive.php but not working on the homepage. For some reason the first statement doesn’t get applied: if a post is in Members category and user is not logged in, it’s supposed to show a default placeholder image, but instead it’s still showing the actual post thumbnail.

<?php if (!is_user_logged_in() && in_category('members')) { ?>
    <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
        <img src="<?php bloginfo('template_directory'); ?>/img/default-login.jpg" alt="<?php the_title(); ?>" />
    </a>
                                
<?php } 
    else if (is_user_logged_in() || !in_category('members')) { ?>                 

        <a href="<?php echo get_permalink($post_item('ID')) ?>">
            <?php echo get_the_post_thumbnail($post_item('ID'), 'news-thumb'); ?>
        </a>
                                    
    <?php } else { ?>
            <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
                <img src="<?php bloginfo('template_directory'); ?>/img/default.jpg" alt="<?php the_title(); ?>" />
            </a>

    <?php } ?>

usability testing – Opinion for several status changes in a list

I would like to collect your opinions on a component within a dashboard.

In this project, invitations are sent to users in different ways to invite them to vote. They can accept to come or not. And give a mandate to someone else to vote in their name.

This list should give a snapshot of who received the invitation and who will come. But the admins should also be able to act and change the status manually.

The stakeholders imagined checkboxes in their description. This did not seem to us as the best approach: risk of error, lack of status. We propose alternatives.

What do you think? Is it difficult to understand or not? Do you have any comments, other more relevant approaches?

A usual thank you very much for your feedbacks, very appreciated :]

enter image description here
enter image description here
enter image description here

amazon web services – AWS ELB Registered targets status on port 80/443 are unhealthy

I followed the exact steps from AWS course Break a Monolith Application into Microservices.
The test case run normally even with a port 80 unhealthy status.

Then I tried to configure a domain name in this test case.

First I test only with port 80, and test case run normally (still, port 80 is unhealthy status, why?)

Then I want to try 443 port. So I requested a certificate on ACM (Amazon Certificate Manager) for my domain.

But it didn’t work anymore. https://example.com show 502 Bad gateway, http://example.com runs normal.

The modifications I did for test HTTPS as follows:

  • The protocol and port (https/443) in Create target group
  • Add https/443 listener in Load Balancer
  • Update Security groups inbound rules for https from everywhere
  • In ECS, I created a new service, Container to load balance section I selected the new target group

I noticed the newly created service is in a repeat “Running-Stop-Pending” state. But have no idea why this happens.

Site workflow to send reminder email to Created By based on status of the item

I want to create site workflow to send a reminder email to created by(emails) when Item created is more than 30 days and choice field called "Status" is "open".

Thanks in advance

What is the status of Bitcoin or other cryptocurrency mining in India?

Fellow Indian and also foreign brothers and sister,
I am looking for some legit answers regarding crypto mining in India. I have read that the Indian government has banned or restricted the imports of ASIC miners. I am going to check the specifics with the DGFT, India. India is also on the verge of closing all the gates to cryptocurrency, call it insecurity or motive to run commercially established banks with crores of investment.
I am highly motivated to start crypto mining but these legalities are causing some hiccups in the process.
I don’t want to break any law of the land called India but still work with cryptocurrency like Bitcoin,Erethreum, Dogecoin, Monero,etc.
Your input will be highly appreciated. I anticipate a good amount of advises from both fellow Indian and foreign miners alike.

wi fi – Wifi WPA Enterprise – In android 11 under ‘Online Certificate Status’, what is the difference between the various options?

Recently I noticed that my Note 10 would no longer associate with my wifi but all other phones would. I have since resolved the issue by rerolling my certificates but cannot get the options ‘Require status for all certificates’ or ‘Require status for untrusted certificates’ to work. ‘Request Status’ does work as well as ‘Don’t validate’

‘Require status for all certificates’ fails with on the freeradius end with –

(36) eap: Expiring EAP session with state 0xb8be52eabb005f50
(36) eap: Finished EAP session with state 0xb8be52eabb005f50
(36) eap: Previous EAP request found for state 0xb8be52eabb005f50, released from the list
(36) eap: Peer sent packet with method EAP TLS (13)
(36) eap: Calling submodule eap_tls to process data
(36) eap_tls: Continuing EAP-TLS
(36) eap_tls: (eaptls verify) = ok
(36) eap_tls: Done initial handshake
(36) eap_tls: <<< recv TLS 1.1 (length 0002)
(36) eap_tls: ERROR: TLS Alert read:fatal:internal error
(36) eap_tls: TLS_accept: Need to read more data: error
(36) eap_tls: ERROR: Failed in FUNCTION (SSL_read): error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
(36) eap_tls: TLS – In Handshake Phase
(36) eap_tls: TLS – Application data.
(36) eap_tls: ERROR: TLS failed during operation
(36) eap_tls: ERROR: (eaptls process) = fail
(36) eap: ERROR: Failed continuing EAP TLS (13) session. EAP sub-module failed
(36) eap: Sending EAP Failure (code 4) ID 190 length 4

‘Require status for untrusted’ hangs with android eventually giving up with this on the freeradius end –

(5) eap_tls: (eaptls start) = request
(5) eap: Sending EAP Request (code 1) ID 243 length 6
(5) eap: EAP session adding &reply:State = 0xcff1ecc3cf02e118
(5) (eap) = handled
(5) } # authenticate = handled
(5) Using Post-Auth-Type Challenge
(5) Post-Auth-Type sub-section not found. Ignoring.
(5) # Executing group from file /etc/raddb/sites-enabled/default
(5) Sent Access-Challenge Id 247 from 192.168.45.251:1812 to 192.168.45.37:33524 length 0
(5) EAP-Message = 0x01f300060d20
(5) Message-Authenticator = 0x00000000000000000000000000000000
(5) State = 0xcff1ecc3cf02e118ed54fc1c4b664912
(5) Finished request
Waking up in 4.9 seconds.
(5) Cleaning up request packet ID 247 with timestamp +19
Ready to process requests

What do I need to implement or correct so these two options will work as well?

usa – Temporarily work outside US on H1B visa status?

I have an Indian citizenship and I’m working in the US on a H1B visa. I’ve always wanted to experience the football culture in the Europe as a local. Is it possible to temporarily work in or from Europe for 6-12 months and then return to US to continue previous employment on the same H1B visa?

Or what other alternatives do I have in case I wanted to leave US for a larger than short period and return for work?

reactjs – Unhandled Rejection (Error): Request failed with status code 404 in react

import React, { useEffect, useState } from 'react';
import axios from 'axios';

const Api = () => {
    const (num, setNum) = useState();

    useEffect(() => {
        async function getData() {
            const res = await axios.get(`https://pokeapi.co/api/v2/pokemon/${num}`);
            console.log(res.data.name);
        }
        getData();
    })
    return (
        <>
            <h1>You Choose {num} value</h1>
            <select value={num} onChange={(event) => {
                setNum(event.target.value)
            }}>
                <option value="1">1</option>
                <option value="23">23</option>
                <option value="34">34</option>
                <option value="25">25</option>
                <option value="12">12</option>
                <option value="4">4</option>
                <option value="3">3</option>
                <option value="5">5</option>
                <option value="34">34</option>
                <option value="20">20</option>
            </select>
        </>
    )
}


export default Api;

plugin – Question on support/deprecation status of browser plug-ins (not extensions)

plugin – Question on support/deprecation status of browser plug-ins (not extensions) – Webmasters Stack Exchange

dnd 5e – How to improve my descriptions of the health status of monsters

(We actually play with some other rules, but I think it does not matter here)

before shooting/slashing or so I offer some approximation of probability (based on the character knowledge and stats) if it is not totally obvious from previous gameplay:

  • It is too far to hit him (=out of range)
  • not sure, if you even can hit him (=near the maximal range, cannot say if in- or out-side for sure, or in range, but terrible conditions – fog, dark etc. – maybe there is not roll, which would hit at all)
  • extremally hard to hit target (it is possible, not probable)
  • good chance to hit
  • it is easy to hit

I usually describe every blow in common terms, both from character view and for vissible effects, so it could be took as a lead, how strong the opponent is and how much damage he took.

Total miss:

  • you did not even reach him (= out of range, or really bad roll when really good roll is required)
  • you missed him terribly bad/cannot even see, where the shoot went (= you must roll much higher number or use much better weapon to even have chance to hit him)
  • wow, you nearly hit him! (= like rolled natural 19 when only natural 20 may hit)
  • you nearly hit him, but in the heat of battle he moved at the last moment and so he evade your blow (= he had luck on his side, used some ability or rolled too much on defence, but basically it looks, like you can hit him next time with the same attack – until it happens each time, so there is something more on him, than you can see)
  • @#$%! Something fall in your eye, so you missed him/you slipped and missed him/you wonder, if your weapon is broken or what/you wonder, how could it happened, that you missed him?/you was sure that you hit him, but then realized, that it was only clothes what was damaged/some feathers went to the air, but there was no resist, so your sword probably did not hit the body(= rolled really bad)

Hit, but obviously no damage done:

  • (you hit his shield/hit his helmet/hit his armor) but it deflected your blow/your blow just slide on his scales (= you basically hit him, but the target is armored enough to not be affected with this attack roll)
  • you thrust your dagger to his eye, but nothing happened except your hand little hurt from the force of your attack/you kicked him so hard you nearly broke your leg, but it doesnot affect him (= you rolled really good, hit him, but it does not any damage, for some other reason like when he is stone statue/have special spell on him/invulnerability to this kind of weapons or something like that)
  • you swing your sword and hit him, but it flow full way thru his body and left no visible damage (= he is illusion or something immaterial or so. Or maybe just big blob of slime or watter form or something like that. Probabelly you need different kind of weapon or attack his caster or try anything else)
  • he jumped away as you passed your blow/he blocked your blow with his sword/he rolled on ground to avoid your blow, but then stand up in one flowing move / he hissed and evade your blow (=he rolled too much on defence, otherwise you would hit him)

Hit and some damage done:

  • you hit him hard and scratched him a little/you cut off a little pice of his slime body, the piece is now soaking to the ground/one of his many tentacles lost few inches, the pice is swirling on ground/he have hard fur and nearly no blood was visible where your sword hit him/you hit him and hear him hissing at you/your blow little wounded him, but it makes him even more furious/your sword cut his robe and hit something under it, he raised his wand and …/you made shallow wound on his body, but nothing serious/you hit good, but it still looks that the batle will be long (= you rolled good, but he is hard oponent, no much damage done)
  • you swing you sword, but it was not so good, as you hoped for, anyway you could scratch him a little/not so good hit, but anything counts/even if you hit him he do not seam to notice it/he laught at your nearly failed attempt to hit him/
  • as you penetrate his deffence, he screamed wildly, but is still trying to stab you/his fur have one more hole, but he is still attacking/he roared his pain on you, but did not mede even step back/you managed to avoid his shield and hit him, he was pushed little back but regained stability and now he attacks/it was not pleasant wound, that you placed on him, but as trained warriror he did not stopped fighting(=you hit him good, but it takes more such hits to finish him)
  • He barely managed to stand on his legs after your furious attack hit him with full power/he is hit again and rolls his long body in pain/his gelatious body is vissibly smaller now and all the place is covered with dying parts of this unholly creature/he got big wound and started to panically run away/to his many open wounds your blow added another one, you wonder, how long he can resist yet/he seams to be bleeding hard, but still somehow manage to oppose you/only his will probabely keeps him standing after your last hit(= yes, there is not much until he will die)

as for status:

  • he looks fresh and ready to fight/his feathers glows in the sun with breathtaking perfection/he looks as ugly as all of his kind looks/old scars are crossed with some more fresh, his clothes are cut and sewed again too much times, but he moves fast and with his usual agility (=undamaged)
  • nothing important, just scratch here and there/his monstrous body does not show vissible damage/he got some hits, but he fights as usual/there are some smaler wounds, but he does not care/considering how many times you hit him, he should bleed much more, than he does/he laughts and enjoy the fight/his maniacal smile is even wider, comparing to fight start(=some hits, but like 80% good)
  • the fight had took his toll on him, but his sword move as fast as before/there are some wounds, but this does not seem to slower his attacks/he ignores the wounds still, even if some blood is under his feets/he screems a lot, but attacks as much too(=60% HP, would take some time to recover, but still deadly)
  • he tries hard to kill you, but you see, that it is more difficult for him to move so fast/now he does fight for joy, but he went really serious/many of his tentacles are cut off, but even so you have no rest, if you want to survive/this monstrous blob of accid looks boiling and a lot of mud is whirling inside it, but you would not risk to turn your back to him even for split of a second/he is wild and roaring and fights still as if he was not afraid of death, even if there are many wounds all over him/his moves are now much slower and the blood is everywhere, but even so he does not give up(=40%, seriously wounded)
  • even if looking terrible wounded, he still seems to determined not let you pass/you hear his hard breath and his knees are shaking, but his sword is still ready to bite you/you would not believe, that somebody could took this much wound and still fight, but he anyway does/the fight is long, but you are not far from victory/he does not have chance to win, and he should know it now, but he still try hard(=20%, even may die later from his wounds, but still fights)
  • even on the edge of death his bites are strong/he is determined fight to his death/his bleeding is terrible, wounds are wide open and you see some his inner organs, but he still fights somehow/he will rather die than surrender, even in his current state(=on the edge, only few blows from end)

My point is, that I do describe a lot of colors, but do not name exact status, so I do not have to manage its result (like which eye is missing, can he hear with one or none ears, where which would was placed, is he more vulnerable from left or right …), only how much HP he lost and so how much damage should I describe if he survives long enough to meet group again (or if the group searches his dead body after fight)

I use it in both case, when I do some rolls for characters (so players would not know, how successful characters really was, just how this visually affected the enemy) or if players do all rolls and just state the numerical results to me. I do not like to tell them exact numbers, as it makes game much slower and more bean-counting, combo mastering and less interesting.

“But how much HP he has left”

“Your character can ask him”

“@#$%! My character sees it!”

“Ok, roll your perception … wow, good result! So you character thinks, that the enemy is really bad hurt and you probably win soon”

(It allows me also little cheat and make it more interesting – and I cheat more for players, that against them, so they take it usually good and tries more colorfull action, as I usually give them better chance to succeed than with exactly counted but boring plans. And if they play well, then it does not end with them dying and enemy surviving with 1 HP, even if rolls would say so, but they spectacullary win instead and found lot of healing potions in treasure or meet good fairy or something like that – which would not be possible without cheating on GM side and with all numbers on table. Yes, it is Hollywood and two horses can crash to make big fireball with The Hero running just in time away)


Also if there is some sentient enemy, who tries to cheat them, I do not like them to roll against it – they can stte their bonuses and such, but I do the rool for them, to avoid situation like:

“I failed the roll, the prisoner tells me, that he was send by our king, and my character is trusting him, so it must be a lie and he is enemy. I will kill him anyway.”

“I made a good roll, the prisoner tells me, that he was send by our king, and my character is trusting him, so it must be a truth, so I will protect him, even when local baron says, that the prisoner is enemy spy”

Instead I do the roll and tell them, what their characters think.

“Your character trust him, that your king send him. The baron states that he is enemy spy, but I can not trust him, as it is apparently lie”

(regardless which version is true – but usually both prisoner and baron have their own agenda too and nobody tells (or even knows) total truth or total lies, just their version of more/less colored and spiced reality).

So my players are used to vague descriptions in favor of good story.

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123