## Are IFRAMEs inherently unable to display file:/// URLs?

Yes, the browser and webserver are on the same machine!

Whenever I try to embed a HTML file from outside of the WWW root in an `iframe`, thus using the `file:///` URL syntax, it is ignored. No error message logged or anything. Just nothing is done whatsoever.

If I change the path from `file:///C:\blablabla.html` to `./blablabla.html`, and put the file in the WWW root, it will display the HTML page in the iframe. So it’s not some kind of fundamental issue with displaying iframes or anything. I have tried both with and without URL-encoding the `C:\...` part.

Are `IFRAME`s inherently unable to display `file:///` URIs, even though the MozDev page mentions no restrictions whatsoever for the `src` attribute? https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe

## Please select a file error

I am facing `Please select a file` error while trying to upload a plugin. My `php.ini` settings are like below

• upload_max_filesize = 20000
• max_file_uploads = 200
• max_execution_time = 300
• max_input_time = 600
• memory_limit = 12800
• post_max_size = 8000

My WordPress Version 5.5.3

## .htaccess — Trailing slash and characters after file extension

I’ve got some weird usability warnings popping up in my search console for pages which don’t actually exist on my site. It looks like someone is creating 100’s of malformed links to my pages.

Here’s the problem.

Say I have `https://example.com/pagename.html`

Someone is creating hundreds of links with random text after the filetype like this: `https://example.com/pagename.html/randomtext`

Strangely, with that malformed URL, part of the page renders, but renders with broken styling for some reason. (Triggering search console warnings for every one of those "pages"). I’m not really sure how or why these broken URLs are rendering at all. My understanding is that this should return a 404 error. But it doesn’t.

So…

I’m trying to solve the problem with .htaccess like this:

``RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/\$   /\$  1 [L,R=301] ``

That sort of works. It removes the trailing slash from `https://example.com/pagename.html/` but it doesn’t fix `https://example.com/pagename.html/randomchars`

How do I get it to ignore all characters following the file type? (except standard GET strings starting with a ?)

## Is it safe to use the Windows “Compress directory to save space” feature on the directory that contains my MySQL general log file?

I have changed MySQL 8 on my Windows 10 development machine to write logfiles (general log and slow queries log) to "E:\mysql logfiles". I’d like to compress this directory using the Windows "Compress Directory to save space" advanced feature in the Windows 10 directory properties to save space (currently my logfile is over 50 GB). I’m wondering though: is this a good idea? Or will this break MySQL in (subtle or not) ways?

## Htaccess Using RewriteMap with a text file

I can’t use link with `*` Example – `http://localhost/photo_gallery/public/show_c.html/color-1*` The requested URL was not found on this server. The others work’s `color-3`, `wood`, etc.

1. generated map – `map.txt`

``title   id color-1* 1 color-1** 2 color-3 3 wood 4 color777 5 color-test 6 ``
2. htaccess

``RewriteRule ^show_c.html/([-\w]+)\$   show_c.php?cat=\$  {catcolors:\$  1} [L] ``
3. httpd.conf

``RewriteMap catcolors "txt:C:\wamp\www\photo_gallery\public\maps\map.txt" ``

My question. Why the link with `*` cannot be used.

## Move CDATA to js file

I would like to move this CDATA from HTML source to custom JS file.

Here’s an example of what I’m talking about:

``<script type="text/javascript"> /* <![CDATA[ */ var cnArgs = {"ajaxUrl":"https:\/\/www.example.com\/wp-admin\/admin-ajax.php","nonce":"de57d13a7a","hideEffect":"fade","position":"bottom","onScroll":"0","onScrollOffset":"100","onClick":"0","cookieName":"cookie_notice_accepted","cookieTime":"2592000","cookieTimeRejected":"2592000","cookiePath":"\/","cookieDomain":"","redirection":"0","cache":"1","refuse":"1","revokeCookies":"0","revokeCookiesOpt":"automatic","secure":"1","coronabarActive":"0"}; /* ]]> */ </script> ``

to…

``<script type="text/javascript" src="cdata.js"></script> ``

Is it possible to do it like that?

## Is it possible to attach oracle database file after clean install

I had an Oracle 10g instance on my Win2008R2 server. Unfortunately, the server crashed and we had to re-install the operating system on C: drive. The oracle files are on other drives except than C.

The other drives (except C) are restored from disk backups. I don’t have dump file, I only have oracle data files such as USERS01.DBF and the oracle control files.

Now I am trying to find a way to install oracle again on the server but I am just wondering about how I can attach the current .DBF files to the new oracle instance? Is this possible? If so, how can I attach the current .DBF files to Oracle?

Currently there is no "OracleService" on services.msc and no listener as well. But previos oracle was installed on F drive so I still have the oracle binaries and data files on F drive.

Really appreciate if you can provide any information on this.

## Like the title says:

How do I edot this texconv "IMGtoBC3.bat" file so it "READS FROM & PRESERVES the directory structure when writing the "resulting" dds files?

I have a large folder/sub-folders with many tiff’s that "have the same file name" divided up into "sets".

These dds files are for custom textures in a unity game, file naming is a forced event, but "sorted/selected" by folder.

I have about 3000 file sets ready to convert and I’m not doing them 1 by 1 in Nvidia tool (I hope) and AMD tool and the game have a MAJOR conflict (its as a no go)

BONUS points to anyone that could show me this "bat" file using unity’s new tree of "CRUNCH" cmd line dds compressor/encoder. Suggestions of other tools: I have tested over 50 apps, for my needs its: Nvidia, texconv and then crunch in level of quality/support

## HERE IS THE CODE:

``ECHO OFF Setlocal EnableDelayedExpansion  ::Variables SET @FORMAT=BC3_UNORM SET @InputFolder=%~dp0Input_IMG_TO_BC3\ SET @OutputFolder=%~dp0Output_DXT5_BC3\ SET @TEXCONVEXE=%~dp0texconv.exe SET @TEXCONVEXE02=%~dp0texconv.exe :: Check for texconv.exe IF EXIST "%@TEXCONVEXE%" SET @TEXCONVEXE=1 IF "%@TEXCONVEXE%"=="1" GOTO EXESTATE_1  :EXESTATE_0 TITLE - ERROR! texconv.exe not found!!! COLOR 04 ECHO: && ECHO: && ECHO: ECHO                 === ERROR! texconv.exe not found!=== ECHO: ECHO     Install Path: "%~dp0texconv.exe" ECHO: ECHO    The script needs texconv.exe in order to work properly. ECHO: ECHO    Please make sure texconv.exe is in: "%~dp0"  ECHO: && ECHO:  GOTO CONT01   :EXESTATE_1 TITLE - Texconv.exe found!!! COLOR 0A  ECHO: && ECHO: && ECHO: ECHO                 [ texconv.exe Is Installed! ] ECHO: ECHO     "%~dp0texconv.exe" ECHO: GOTO CONT00 :CONT01 ECHO: && ECHO: ECHO        Please copy/move the missing texconv.exe executable to where the script needs it to be and refresh this window. ECHO: :CONT00 IF "%@TEXCONVEXE%"=="1" GOTO START ECHO: && ECHO: && ECHO     [Press any key to refresh the window] && PAUSE>NUL GOTO SetTexConvPath  :START  :: Customize CMD Window TITLE HumanStuff TexConv Batch Directory Script v1.0.2 PROMPT \$  G COLOR 04 CLS  :: Make The Folders IF NOT EXIST "%@InputFolder%" MKDIR "%@InputFolder%" IF NOT EXIST "%@OutputFolder%" MKDIR "%@OutputFolder%"  ::Run TexConv.exe ::-srgb was added because PNG images were getting high contrast colors ::Sorry about the messy code but this was harder to do than it sounds  FOR /R "%@InputFolder%" %%i IN (*.*) DO ( set word=%@OutputFolder% set str=%%~dpi CALL :REPLACESTRING SET @IFOL=!@OSTRING! CALL :MKFOL SET @ISTRING=%%i CALL :TexConv01 )  PAUSE GOTO SCRIPTEND  :MKFOL IF NOT EXIST "%@IFOL%" (     MKDIR "%@IFOL%" ) GOTO SCRIPTEND  :TexConv01 IF NOT "%@LOGO%"=="" SET @LOGO=-nologo "%@TEXCONVEXE02%" %@LOGO% -srgb -nogpu -pow2 -vflip -if triangle -bc u -f %@FORMAT% "%@ISTRING%" -o "%@OSTRING%" -y ECHO: SET @LOGO=  GOTO SCRIPTEND  :REPLACESTRING call set str=%%str:%@InputFolder%=%word%%% set @OSTRING=!str:~0,-1! GOTO SCRIPTEND  :SCRIPTEND $$```$$ ``

## Apply only the css in my style.css file

How can I ensure that for a given WordPress HTML block, it uses just the css I provide in my (large) style.css file. I’ve placed the style.css file in a plugin, it looks good, but WordPress insists on lengthening some of the graphics and squishing others.

Everything looks great when I view the HTML file in a browser outside of WordPress, and I’d hate to have to stick !important on every single attribute and add probably quite a few dozen more.

It looks like the following post helped with my problem:

https://stackoverflow.com/questions/7896536/ordering-wordpress-stylesheets

## Deserialize only some fields from a JSON file

I’m trying to parse a very large JSON string in Unity. I do not need all the fields and I can’t create a class with all the members.

It appears that all examples I have found, including the official docs, always deserialize and map every field to class members, which I cannot do for my application.

I tried creating a class that is similar to the JSON string, meaning that it has some members of the target JSON, just not all of them. But it’s not working as desired: all members of my class are always undefined after deserializing.

Here’s part of the string:

``{     "Robots":[{"CanReset":false,     "CycleTime":123.875,     "Info":null,     "LevelInfo":null,     "Name":"FTF_10033",     "State":0,"     ...     }, ... } ``

So I tried creating these classes:

``[Serializable] public class jsonData {     public Robot[] robots; }  [Serializable] public class Robot {     public string Name = "Unknown AGV"; } ``

And printing the results:

``var jsonString = www.downloadHandler.text; jsonData jsonData_ = JsonUtility.FromJson<jsonData>(jsonString); Debug.Log("Json data: " + jsonData_); Debug.Log("Robots: " + jsonData_.robots); ``

jsonData_ prints `Json data: jsonData_`, and `jsonData_.robots` prints nothing (just `Robots:`).

Is there any way to parse just these particular fields out of the JSON string?

I would be content with something like jsonString["robots"][0]["name"] or something.