FFmpeg: How to convert vertical video with black sides, to video 16:9, with blurred background sides

I solved! ffmpeg -i input.mp4 -lavfi ‘[0:v]scale=ih*16/9:-1,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[bg][0:v]overlay=(W-w)/2:(H-h)/2,crop=h=iw*9/16’ -vb 800K output.webm Input: https://www.youtube.com/watch?v=17uHCHfgs60 Output: http://www.youtube.com/watch?v=CgZsDLfzrTs

Scale background image to wrap content of layout

I had the same problem (I think), and the only solution I could find was this: <RelativeLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” > <View android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:background=”@drawable/some_image” android:layout_alignTop=”@+id/actual_content” android:layout_alignBottom=”@id/actual_content” android:layout_alignLeft=”@id/actual_content” android:layout_alignRight=”@id/actual_content” /> <LinearLayout android:id=”@id/actual_content” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_alignParentTop=”true” > <!– more stuff … –> </LinearLayout> </RelativeLayout>

set background color: Android

Color.parseColor(“#rrggbb”) instead of #rrggbb you should be using hex values 0 to F for rr, gg and bb: e.g. Color.parseColor(“#000000”) or Color.parseColor(“#FFFFFF”) Source From documentation: public static int parseColor (String colorString): Parse the color string, and return the corresponding color-int. If the string cannot be parsed, throws an IllegalArgumentException exception. Supported formats are: #RRGGBB #AARRGGBB … Read more

Test if app did become active from a UILocalNotification

I got the clue to the solution for this from @naveed’s tip on checking the state of the application when the didReceiveNotification method is called. No need to check variables etc when the app resumes from the background. On iOS7 and lower you handle the notifications like this: – (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { if … Read more

onerror event using background: url()

In case myimage.gif isn’t transparent, you could use multiple backgrounds: background: url(‘myimage.gif’), url(‘fallback.gif’); This way fallback.gif will only be visible if myimage.gif isn’t available. Note that fallback.gif may be downloaded even if myimage.gif is available. Alternatively, even though not widely supported, CSS Images 3 introduces the image() notation: background: image(‘myimage.gif’, ‘fallback.gif’); Multiple <image-decl>s can be … Read more

Fixed attachment background image flicker/disappear in chrome when coupled with a css transform

This has been a very common unsolved mystery. Recently I had the same problem, and ‘-webkit-backface-visibility: hidden’, proved to be less than useless (on my ‘fixed’ attached background), since the background just disappeared when it was set. (Additional Info: the reason is that when the background is set as fixed, it is almost similar to … Read more

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