## macro – I want to take image of a dried droplet 12 mm x12 mm

How do I take the image of a 12 mm x 12 mm area without using expensive lenses and camera? I read a lot on using combination of lenses to get images but was unable to understand properly how it works.
I want some simple solution like shown in this video, and I’m trying to get some images that look like those on the left here:

What kind of camera and lenses would I need to get this quality of image?

## webforms – Image change based on menu selection

can somebody help me fixing following issue?
In a webform module, when you choose some item from a dropdown menu (or any kind of menu), based on the selection, a small pictogram will appear next to this menu (like on the picture).

Is there a way how to easily implement this idea to the webform module?

my idea illustrated bellow:

## macro – I want to take image of a dried droplet 12 cm x12 cm

How do I take the image of a 12 cm x 12 cm area without using expensive lenses and camera? I read a lot on using combination of lenses to get images but was unable to understand properly how it works. Please help.

Update: Added dried droplet images for reference.

## ffmpeg – multiple videos in panes, background image – unacceptable rendering speed

In this ongoing saga of me putting together a video, I have one more step I’m trying to add.

My requirements look like this:

In these days of COVID, our choir director is recording a video which is the accompaniment, and then each choir member (at home) is listening to the accompaniment in headphones, singing along, and recording their voice and lovely face as a video. I now want to take all these disparate videos and combine them into one video with all the members in small panes, Brady Bunch style. And of course, each choir member has different hardware so the audio levels are all different and need to be normalized. And of course, one person took the video sideways (portrait instead of landscape) so their video has to be cropped before adding it in.

In addition, I need to define the director’s video as the “master” stream. So let’s say the director has 3 seconds of nonsense at the beginning of her video that doesn’t need to be there. I want to start the final video immediately after that nonsense. Then, if choir member #1 started her video 0.4 seconds after the director, I want to discard the first 2.6 seconds of her video. If choir member #2 completely disregarded the instructions and started his video 4.3 seconds after the director, then I need his pane to just be blank for 1.3 seconds in the final video.

And finally, if some of the videos need cropping so they aren’t the right shape, I get this lovely green color filling in the blank spots. How can I get a background image to show up “behind” the videos?

Based on previous answers and other research, I have this command line:

ffmpeg
-y
-ss 0.2 -i "One.MOV"
-ss 3.2 -i "Two.MOV"
-i "Three.mp4"
-loop 1 -i "Image.jpg"
-filter_complex "
nullsrc=size=1920x1080 (base);
(3:v)scale=0.5:0.5(bg);
(base)(bg) overlay=shortest=1:x=0:y=0 (tmpx);
(0:v) scale=960x540 (clip0);
(0:a)volume=1.7(aud0);
(1:v) crop=1080:1000:0:920,scale=583x540 (clip1);
(1:a)volume=4.8,aresample=async=1:first_pts=0(aud1);
(2:v) scale=960x540 (clip2);
(2:a)volume=1.1,aresample=async=1:first_pts=0(aud2);
(tmpx)(clip0) overlay=shortest=1:x=0:y=0 (tmp0);
(tmp0)(clip1) overlay=shortest=1:x=1148:y=0 (tmp1);
(tmp1)(clip2) overlay=shortest=1:x=0:y=540 (tmp2);
(aud0)(aud1)(aud2)amix=inputs=3(a)
"
-map "(tmp2)"
-map "(a)"
-c:v libx264 d:scansoutput.mkv

Good news: this works! Bad news: running this takes over 10x longer than it did when I didn’t have the still image in the background.

If I take out the “-loop 1”, it runs much faster, but then my entire output is a still image (the background image plus the first frames of each of the input videos).

How can I add the still image in the background and not take such a performance hit?

## Does a cache busting fingerprint in image file names hurt SEO rankings?

It won’t hurt your web page rankings to use those techniques. Your pages will rank in web search just fine even if their assets frequently change URLs.

If you are trying to get the images to rank in Google image search, then unstable image URLs will be a problem. For ranking the image itself, you should choose a URL that is stable.

You can get around the problems of 404 errors by making sure that old ids get redirected to the current version. In my framework I put a timestamp into the URLs for when the build happened. I’ve found that 301 redirects are great for old timestamps. For future timestamps, 302 redirects work better because you don’t want them to be cached.

## linear algebra – Given \$f:mathbb{R}^m supset U rightarrow mathbb{R}^n\$ differential. Relation of rank of \$f’\$ and the property of image of \$f\$?

Let $$f:mathbb{R}^m supset U rightarrow mathbb{R}^n$$ a differential map, $$U$$ open, and $$a in U$$. Are the followings true:

1. If $$m > n$$ and $$f(U)$$ is open set in $$mathbb{R}^n$$ then $$text{rank}f’_a = n$$?

2. If $$m < n$$ and $$f(U)$$ is open set in $$mathbb{R}^m$$ then $$text{rank}f’_a = m$$?

I don’t how to get information of Jacobian of $$f$$ to know about its rank. I try proof by contradiction as follows:

In 1’s problem, If $$text{rank}f’_a = k < n$$ then $$f'(a):mathbb{R}^mrightarrow mathbb{R}^k$$. We have, when $$hrightarrow 0$$, $$mathbb{R}^n ni f(a + h) – f(a)rightarrow f’_a(h)in mathbb{R}^k$$. But, I don’t see any reason to forbid $$f(a + h) – f(a)in mathbb{R}^n$$ close to a point $$mathbb{R}^k$$. So may be the conclusions are wrong.

If they are wrong, could you give an example?

## php – How to extract base64 image from text in laravel?

How to extract base64 image from text. I tried to use simple html dom library but couldn’t extract it from text. I need to extract each base64 and convert it to an image then save it to public folder.

Code:

\$post = AppPost::find(45);
\$dom = HtmlDomParser::str_get_html( \$post->content );
foreach (\$dom->find('data:image') as \$element) {
dd(\$element);
}
<p style="text-align:right"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to ma</p>

## stereoscopy – How can I view stereoscopic image pairs without a stereoscope?

One of the simplest methods of emulating stereo viewing also requires no special software to view or create: animated GIF. Most full-featured image editors can create animated GIF files from a set of images; some will automate the process more, but it’s simple enough to do manually without undue effort.

This works both with conventional stereo pairs and with multi-image like the Nimslo camera (intended for lenticular stereo prints). The images are pasted into an animated GIF file in a manner that causes them to display for a short time (.2 to .5 seconds per frame works well) in an order that seems to “tilt” the image right to left and back again. The GIF is then set to loop continuously, and any software that can display GIF (which is virtually everything that can view images) will show the image in a way your brain will interpret as 3D.

This works on phones, tablets, desktop or laptop computers, and even smart TVs — anything that can display a GIF.

Alternatively, for printed images, you may be able to train yourself to “free view”. This is a method of viewing stereo pairs without a viewer. It requires fooling your visual system into decoupling focus from convergence, to let you focus close while letting your eyes become parallel, as if viewing a distant object.

There are a number of tricks for this — the simplest is to hold the page with the image with something distant behind it. Look at the distant object, and move the page until the two images overlap (or ideally, fully fuse), then switch your gaze to the fused/overlapped images and let them come into focus without losing fusion. This is actually what a stereo viewer is doing, but the use of lenses makes it much easier.

## cakephp – I’m Beginner I need to update my data inlcude some input field text and have 5 file type image in php

this is my database where my all the data is stored

Whenever i want to update my either single data or either single or multiple pictures from existing record only that part would be updated other data would not be changed
this is my update form

Here is my code updatecode

if(isset(\$_POST(‘Submit’)))
{

// var_dump(\$_POST);

\$var1 = rand(1111,9999);  // generate random number in \$var1 variable
\$var2 = rand(1111,9999);  // generate random number in \$var2 variable

\$var3 = \$var1.\$var2;  // concatenate \$var1 and \$var2 in \$var3
\$var3 = md5(\$var3);   // convert \$var3 using md5 function and generate 32 characters hex number

\$p_name=\$_POST('p_name');

\$fnm1 = \$_FILES("image1")("name");    // get the image name in \$fnm variable
\$dst1 = "./all_images/".\$var3.\$fnm1;  // storing image path into the {all_images} folder with 32 characters hex number and file name
\$dst_db1 = "all_images/".\$var3.\$fnm1; // storing image path into the database with 32 characters hex number and file name

\$fnm2 = \$_FILES("image2")("name");    // get the image name in \$fnm variable
\$dst2 = "./all_images/".\$var3.\$fnm2;  // storing image path into the {all_images} folder with 32 characters hex number and file name
\$dst_db2 = "all_images/".\$var3.\$fnm2; // storing image path into the database with 32 characters hex number and file name

\$fnm3 = \$_FILES("image3")("name");    // get the image name in \$fnm variable
\$dst3 = "./all_images/".\$var3.\$fnm3;  // storing image path into the {all_images} folder with 32 characters hex number and file name
\$dst_db3= "all_images/".\$var3.\$fnm3; // storing image path into the database with 32 characters hex number and file name

\$fnm4 = \$_FILES("image4")("name");    // get the image name in \$fnm variable
\$dst4 = "./all_images/".\$var3.\$fnm4;  // storing image path into the {all_images} folder with 32 characters hex number and file name
\$dst_db4 = "all_images/".\$var3.\$fnm4; // storing image path into the database with 32 characters hex number and file name

\$fnm5 = \$_FILES("image5")("name");    // get the image name in \$fnm variable
\$dst5 = "./all_images/".\$var3.\$fnm5;  // storing image path into the {all_images} folder with 32 characters hex number and file name
\$dst_db5 = "all_images/".\$var3.\$fnm5; // storing image path into the database with 32 characters hex number and file name

move_uploaded_file(\$_FILES("image1")("tmp_name"),\$dst1);  // move image into the {all_images} folder with 32 characters hex number and image name

\$id=\$_POST('id');
\$p_name=\$_POST('p_name');
\$rooms=\$_POST('rooms');
\$bathrooms=\$_POST('bathrooms');

\$bedrooms=\$_POST('bedrooms');
\$parking=\$_POST('parking');

\$area=\$_POST('area');

\$price=\$_POST('price');
\$region=\$_POST('region');
\$property_type=\$_POST('property_type');

\$userid=\$_POST('userid');
\$statusid=\$_POST('statusid');

\$query=mysqli_query(\$con,"update tbltest1 set id='\$id' ,p_name='\$p_name' , address_desc='\$address_desc', image1='\$dst_db1', image2='\$dst_db2', image3='\$dst_db3', image4='\$dst_db4', image5='\$dst_db5',rooms='\$rooms',bathrooms='\$bathrooms',bedrooms='\$bedrooms',parking='\$parking',area='\$area', price='\$price', region='\$region'
where id='\$id'");

## rom flashing – Help with Nexus 6P bootloop: Couldn’t parse partition size ‘0x’ when trying to flash new image

I need help with my Huawei Nexus 6P.

Because of a bootloop, I was trying to flash a new boot image. I went to the Google download page for factory images and tried using the “flash-all.bat” file. I don’t know how to exactly explain this but, here is the full command prompt line from the flash-all batch file.

Note: It also says my device is corrupt while trying to go into recovery mode.

Finished. Total time: 0.405s
Rebooting into bootloader                          OKAY (  0.108s)
Finished. Total time: 0.113s
Sending 'radio' (48728 KB)                         OKAY (  1.511s)
Finished. Total time: 3.741s
Rebooting into bootloader                          OKAY (  0.007s)
Finished. Total time: 0.009s
--------------------------------------------