Carousel with Thumbnails in Bootstrap 3.0

Bootstrap 4 (update 2019) A multi-item carousel can be accomplished in several ways as explained here. Another option is to use separate thumbnails to navigate the carousel slides. Bootstrap 3 (original answer) This can be done using the grid inside each carousel item. <div id=”myCarousel” class=”carousel slide”> <div class=”carousel-inner”> <div class=”item active”> <div class=”row”> <div … Read more

HTML : Is there any way to show images in a textarea?

Use a div with contentEditable attribute which acts like a textarea. That’s how wysiwyg editors are created. div { width: 300px; height: 200px; border: 1px solid #ccc; } <div contentEditable=”true”>Type here. You can insert images too <img src=”http://t2.gstatic.com/images?q=tbn:ANd9GcQCze-mfukcuvzKk7Ilj2zQ0CS6PbOkq7ZhRInnNd1Yz3TQzU4e&t=1″ /> </div>

Creating thumbnails from video files with Python

I could not install ffvideo on OSX Sierra so i decided to work with ffmpeg. OSX: brew install ffmpeg Linux: apt-get install ffmpeg Python 3 Code: import subprocess video_input_path=”/your/video.mp4″ img_output_path=”/your/image.jpg” subprocess.call([‘ffmpeg’, ‘-i’, video_input_path, ‘-ss’, ’00:00:00.000′, ‘-vframes’, ‘1’, img_output_path])

How do I get Facebook to show my site’s logo when I paste the link in a post/status/comment?

Try your site in this facebook debugger tool. http://developers.facebook.com/tools/debug It will tell you what is missing.Eg. below in page head <meta property=”og:image” content=”[url to image]” /> <meta property=”og:title” content=”[page name]” /> <meta property=”og:description” content=”[content description]” /> There are different ways depending on how your site is built. Eg. This WordPress plugin creates a link for … Read more

Displaying thumbnail icons 128×128 pixels or larger in a grid in ListView

For update: Set image list color depth in addition to image size (ilist.ColorDepth = ColorDepth.Depth24Bit) WinForms ListView does not have possibility to change icon spacing, however it can be easily done using Win32. You need to send LVM_SETICONSPACING to your ListView (there is a lot of tutorials how to use SendMessage win32 function in .net, … Read more

How do I generate circular thumbnails with PIL?

The easiest way to do it is by using masks. Create a black and white mask with any shape you want. And use putalpha to put that shape as an alpha layer: from PIL import Image, ImageOps mask = Image.open(‘mask.png’).convert(‘L’) im = Image.open(‘image.png’) output = ImageOps.fit(im, mask.size, centering=(0.5, 0.5)) output.putalpha(mask) output.save(‘output.png’) Here is the mask … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)