jquery – Auto next upon clicking image without clicking Next button

Stack Exchange Network

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Schematic image of polyhedral dice

This might be a bit of an unusual question, and I hope that it fits here nonetheless: I am teaching an introductory statistics and probability course, and am currently designing the final exam. In one of the exercises, I am planning to use the concept of polyhedral dice. To account for the small chance that some of the students may not know what polyhedral dice are, I would like to include an example picture that should

  • show some common examples of polyhedral dice, ideally with numbers
  • be in black and white and a computer-generated image (rather than a photo of real dice)
  • be allowed to be used as I intend to do

image stabilization – How much benefit can one expect from a monopod?

I was long a user of monopods out in the field. With the advent of image stabilization lenses, I find I almost never haul it out any more. About the only use case I have for it now is when I’m using my 300/1.4x combo with waterbirds or shorebirds, and even then, I’m most likely to either carry the tripod or go handheld.

I see the use case for monopods in two broad areas: the situation above where you want the ability to reposition quickly but want the added stability, or a similar setup where you’re shooting sports (baseball or football), especially extended sessions where handholding might cause arm fatigue. The third case (locations like museum where a monopod might be allowed and tripod not…) might make sense in certain special cases.

But in general, improvements in lens speed/quality and IS, and carbon fiber tripods reducing weight, have made monopods a niche tool. lighter tripods means I’m not as likely to choose the monopod as a compromise for weight, and remember you can always just put down one leg of a tripod and use it as a funny looking monopod, but you can’t extend the other two legs of a monopod for stability…

In some cases the “string monopod” might be a useful alternative, too. use a bolt in the tripod connector (it’s a 1/4 20, I believe) and attach a string to it that reachers the ground. then stand on the string and pull up to create tension — and it’ll stabilize the camera. I need to experiment more with this, but unless you are using the monopod to avoid arm fatigue, it seems to give you all the benefits of the monopod for stability, at almost no weight and similar stability improvements.

So for me, it’s using IS lenses where possible, and either carrying a tripod or going handheld. monopods just aren’t that useful with modern technology.

Is there a way to add graphics to Show and keep the image “still”?

Let’s say I’m writing a PDF presentation such that on slide 1, I want to show a sphere, and on slide 2 I want to continue showing the same sphere plus a point. I could draw these in Mathematica using

sphere1 = Graphics3D[Sphere[{0, 0, 0}]];
point1 = Graphics3D[Point[{0, 0, 2}]];

and then generate two consecutive graphics, using

g1 = Show[sphere1]
g2 = Show[sphere1, point1]

My problem is that from g1 to g2, the point of view changes, so it looks like the presentation is “shaking” as you move from slide to slide.

Of course in this example, you need more room for the point because it is far from the sphere, so it makes sense.

But my question is this: if I know beforehand all the graphics that I want to include in my Show command, is there a way to keep the image still, i.e., so that the point of view is always the same as the graphics are added one by one?

I tried as a little “hack” to make some graphics transparent with Opacity[0], but then they make white shadows on the graphics below them, so they’re not really invisible.

image quality – Which is the best online store for printing photos in India (with frames etc)

Stack Exchange Network

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Get image URL after image created from canvas and sent to WP uploads with AJAX

Hello there people my people, sorry I’m a PHP newbie and could use some help!

I’m making an image from a canvas element which is being converted from BASE64 into a .PNG and sent to my WP uploads folder using AJAX and the following function in my functions.php:

function canvasUpload(){
    $uploads = wp_upload_dir();
    $img = $_POST('uploadImage');
    $img = str_replace('data:image/png;base64,', '', $img);
    $img = str_replace(' ', '+', $img);
    $data = base64_decode($img);
    $file = $uploads('path')."https://wordpress.stackexchange.com/". uniqid() . '.png';
    $r = file_put_contents($file, $data);
    echo $r ? $file : 'Error saving file';

$.ajax( {
    type: "POST",
    url: ajaxurl,
    data: {
        action: 'canvasUpload',
        uploadImage: data
} ).done(function(o) {


I need to be able to get the URL of the image in my uploads folder after it’s created, so I can use it in my template and access with Javascript. I’m assuming this is created from the $file variable, but I don’t know how to echo it in my template.

Any help much appreciated!

magento2 – Magento 2 set product image role programmatically

Hello and this is my code:

$imgURL = 'path/to/my/image.png';
$fileSystem = $objectManager->create('MagentoFrameworkFilesystem');
$mediaPath = $fileSystem->getDirectoryRead(MagentoFrameworkAppFilesystemDirectoryList::MEDIA)->getAbsolutePath();

$product->addImageToMediaGallery($mediaPath.'catalog/product'.$data('thumbnail_image'),('thumbnail', 'swatch'), false, false);

What I want to achive, is to assign programmatically and image and set it as a thumbnail.
The above code, uploads the image, but it’s role: the thumbnail and swatch are not selected. Not sure why ? See img:
enter image description here

Can you tell me what am i doing wrong ? thank you

graphics – Can a LatticeData image show more than a unit cell?

I have an interactive code for showing the crystallographic in Mathematica.

LatticeData[ Which[Type == "FCC", "FaceCenteredCubic", Type == "BCC", "BodyCenteredCubic", Type == "SC", "SimpleCubic"], "Image"]

However this shows only one unit, which means the planes that don’t fit in the cell won’t be shown. Is there a easy way to show more than one unit cell in the LatticeData image?

Flash player Down unable to upload image

in magento admin dashboard i unable to upload image due to flash player down. Please advise the option for adding of product images.

angular material – Mat Grid Tile stretches the image over its siblings items

i have this code:

<mat-grid-list cols="1" >
      <div>This won't show</div>
      <img mat-card-image src="assets/imresize.jpg" >
      <div>This won't show</div>

the image will overflow the two divs hidding them.
I managed to show on the div but never the two