home
lars.st0ne.at
Linux And Related Stuff
[BLOG] |ARCHIVE| |TAG MAP| |OTHER STUFF| |ME|
  • efi partition on software raid 1


    #centos #efi #mdadm #mirror #raid #rhel #uefi

    The CentOS6/RHEL6 installer does not allow to put the efi partition (/boot/efi) on a md device. And there is a pretty good reason for that:

    The UEFI firmwares does only recognize FAT12/16/32 filesystems! In this early boot state, the md device is not available.
    If you try it anyway (CentOS6), you will get an error, saying "You have not created a /boot/efi partition", like this:

    noefi

    ... read more
    Mar 18 2015 16:38
    by st0ne
    ? hits
    • comment @Twitter
    • share on Twitter
  • html5 video in IE11 - size does matter


    #adb #ffmpeg #ffprobe #firefox #html #html5 #ie11

    I thought my plan is pretty straightforward. Take a screencast from my nexus4 with adb, upload it to my webserver and embed it into a html5 video tag.

    But it took me about 7 hours to get the video (a perfectly valid mp4) working in Internet Exporer 11.

    creating the video:

    $ adb shell screenrecord /sdcard/test.mp4
    $ adb pull /sdcard/test.mp4 .                                                                
    140 KB/s (6001 bytes in 0.041s)
    [steininr:~]↥ $ ffprobe test.mp4 
    ...
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x199e700] decoding for stream 0 failed
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 0
        compatible_brands: isom3gp4
        creation_time   : 2014-05-23 09:04:25
      Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
        Stream #0:0(eng): Video: h264 (Baseline ... 768x1280, DAR 3:5 ...
        Metadata:
          creation_time   : 2014-05-23 09:04:25
          handler_name    : VideoHandle
    

    ... read more
    May 23 2014 08:51
    by st0ne
    ? hits
    • comment @Twitter
    • share on Twitter
  • manage iso images on vsphere datastore using curl


    #curl #vmware #vshpere

    See below a easy method to manage (upload/download/delete) iso images on a VMWare datacenter datastore using curl.

    upload file:

    curl -k --user 'mydomain.local\myusername:supersecret' \
    --data-binary @./image.iso -X PUT \
    "https://vcenter/folder/customdir/image.iso?dcPath=MYDATACENTER&dsName=mydatastore"

    ... read more
    Apr 07 2014 12:54
    by st0ne
    ? hits
    • comment @Twitter
    • share on Twitter
  • boost python regex expand performance


    #python #regex

    Yesterday while playing around with pythons regex library re, i came across the expand function of the Match-Object class. It uses a handy template syntax supporting named backreferences to capturing groups.

    Example:

    $ python
    >>> import re
    >>> re.match("(?P<fst>.*?) (?P<snd>.*)", "a b").expand( "\g<snd> \g<fst>" )
    'b a'
    

    ... "\g<fst>" expands to the first capturing group ...

    ... "\g<snd>" expands to the second capturing group ...


    ... read more
    Dec 17 2013 12:26
    by st0ne
    ? hits
    • comment @Twitter
    • share on Twitter
©2012 Robert Steininger aka st0ne
CC-BY-SA