WP is showing wrong image dimensions

Several times over time I changed sizes of thumbnails WP generate when images are uploaded, always setting bigger size.

Recently I set Thumbnail Width 600px width and Medium size Max Width 1800px. After several hundred images uploaded I realized that I need to set smaller image sizes, I reduced Medium size from 1800px to 1500px for future uploads.

I know that already uploaded images will stay on disk in bigger resolution, and that is fine by me, I do not need to use any plugin to regenerate thumbs again.


Word Press now shows that size for images uploaded before is also 1500px width, even real size is 1800px (for an example it shows 1500px x 1000px for image that is 1800px x 1200px).

I changed few times width of future images in Dashboard > Settings > Media and I figured out that if real dimensions of already uploaded images are bigger than what is now set in Media Settings, WP will say that width of those images is the width that is set in Media Settings, even real dimensions are bigger.

You can see screenshot example here: https://postimg.cc/fScS3WKH

This is code I use to get image and its dimensions.

$  medium_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($  post->ID), 'medium'); // Featured image medium size  // To show image dimensions    echo $  medium_image_url[1]; // Show width echo $  medium_image_url[2]; // Show height 

How to get real image dimension of already uploaded images which dimensions are bigger than one now set in media settings?

Wrong boundary in RegionPlot after RegionUnion

I have defined three regions, Slice1, Slice2 and Slice3.

Slice1 =    Polygon[{{0, 0}, {1, 0}, {1, 1/(Sqrt[3])}, {1/2, Sqrt[3]/2}}]; Slice2 =    Polygon[{{0, 0}, {-1, 0}, {-1, 1/(Sqrt[3])}, {-1/2, Sqrt[3]/2}}]; Slice3 =    Polygon[{{0,       0}, {-1/2, -Sqrt[3]/2}, {0, -2/Sqrt[3]}, {1/2, -Sqrt[3]/2}}];  CombinedSlice = RegionUnion[Slice1, Slice2, Slice3]; RegionPlot[CombinedSlice, AspectRatio -> Automatic] 

When I RegionPlot the combined plot, Slice3 does not have correct boundaries. The boundary shows up correctly when I plot Slice3 individually.

enter image description here

I am using Mathematica 12.0

How can i find wrong word in search box and replace with correct word

I have a search form and Many site users search for the wrong words, I want to replace these wrong words with the right ones so that users can get results faster.

I have been searching for this for several days but unfortunately I did not find any results.

I’m looking for a way if a user types wrong words like this

i love axqple i love vaple i love aple i love applle i love aplle 

Replace the wrong text with Apple.

I have already checked things like the this tutorial and this topic but have not reached a conclusion

I also looked at these cases:

function str replace

find word in variable and replace with another

search string for specific word and replace it

And many more…

Given this explanation, does anyone have a solution, educational content or any tips

Thanks for any help

Are the giant strength scores in the Monster Manual wrong?

The Storm Giant has a STR score of 29. According to the encumbrance rules that means the maximum weight a giant could lift is 435 lb. which really isn’t that much.

To put it in perspective. The Storm giant is 5x taller than a human, at the same proportion and thus has about 25x more mass. An average human male weighs around 180lb. A Storm Giant thus weighs around 4500 lb. So it’s impossible for one Storm Giant to carry another.

Another way of looking at it. A human-scale sword might be around 4ft. long and weigh 3 pounds. However, a sword that’s long enough for a Storm Giant would need to be around 20 ft. long and to maintain its own integrity would need to be about 2 inches thick at its centre and might be a foot wide. A sword like that would weight about 800 lb.

To even be able to wield a sword like that without being encumbered, the Storm Giant would need a minimum STR score of 160.

So in conclusion, Storm Giants must be about the weakest creatures in the Multi-verse on a pound for pound basis 😛

Am I missing some encumbrance rule somewhere that adjusts this based on creature size category?

How to handle wrong application of Spells?

So I am a DM for 2 sessions now (Including a training-montage’esque session 0, so 3 in total) and my group is completely new to DnD. Our Paladin has the Detect Good and Evil spell, and apparently uses it rather as a "Detect if there is something dangerous ahead"-Spell, for example to identify a bunch of herbs which were advertised as antidote.

Now for my question: Should I rather push them into reading the spell description again and advise against using the spell in such a manner, or would it be better practice if I just let them waste the spell like that, until they eventually learn it by themselves?

what wrong am i doing with SOAP request, getting error invalid timeout formats [closed]

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><SecurityHeader xmlns="http://services.medconnect.net/submissionportal"><UserName>2143883</UserName><Password><![CDATA[I3zt!7&W]]></Password></SecurityHeader></soap:Header><soap:Body><SubmitSync xmlns="http://services.medconnect.net/submissionportal"><request><![CDATA[ISA*00*          *00*          *ZZ*EXPEDIUM       *30*204202692      *200904*0419*^*00501*007281118*0*P*:~GS*HS*EXPEDIUM*204202692*20200904*0419*7281119*X*005010X279A1~ST*270*007281120*005010X279A1~BHT*0022*13*7281120*20200904*0419~HL*1**20*1~NM1*PR*2*BCBS OF NORTH CAROLINA*****PI*10383~HL*2*1*21*1~NM1*1P*2*BEAUFORT COUNTY HEALTH DEPARTMENT*****XX*1679576763~REF*TJ*566001521~PRV*PE*PXC*261QP0905X~HL*3*2*22*0~TRN*1*1013076869*9919649646~NM1*IL*1*BROWN*JEAN*M***MI*KBOW1747326401~REF*SY*141117752~DMG*D8*19650504*F~DTP*291*D8*20200904~EQ*30~SE*16*007281120~GE*1*7281119~IEA*1*007281118]]></request><requestFormat>EDI</requestFormat><responseFormat>EDI</responseFormat><synchronousTimeout>00:01:00</synchronousTimeout><submissionTimeout>00:01:00</submissionTimeout></SubmitSync></soap:Body></soap:Envelope>  Response ----------- <faultstring>Invalid Timeout Format: , Valid Format: d.hh:mm:ss, Note: Hours &lt;= 23, Minutes &lt;= 59, Seconds &lt;= 59</faultstring>  please advise on this 

Isometric tiles on wrong positions if the mouse points at a negative world coordinate

I am using this approach:


Basically, you can calculate the iso coordinates based on the screen coordinates. What I am doing is, getting the actual world position the mouse is pointing at using get_mouse_global_position() and convert this position to isometric values.

Then I translate those coordinates back to world space coordinates to actually display the sprite.

Problem is, that when the world coordinates come from a negative position, the tiles get offset by almost an entire tile amount. Here is the relevant code.

The get_coord() function returns the actual world position of the tile used to display the Sprite

func get_coord(pos : Vector2):     var t = Vector2()     var e = screen_to_iso(pos)     t = iso_to_screen(e)     print(pos)     print(e)     print(t)     return t     pass var buildings  func screen_to_iso(pos :Vector2):     var flipx = 0     var flipy = 0     var t = Vector2()     var x_size = size/2     var y_size = size/4     t.x = int((pos.x/x_size) + (pos.y/y_size))/2     t.y = int((pos.y/y_size) - (pos.x/x_size))/2     return t     pass  func iso_to_screen(pos : Vector2):     var t = Vector2()     var x_size = size/2     var y_size = size/4     t = Vector2((pos.x-pos.y)*x_size, (pos.x+pos.y)*y_size)     return t     pass 

I can’t seem to figure out a way