Advertising





viernes, 15 de noviembre de 2019

Compress MKV and MP4

Compress MKV (The same for MP4):

ffmpeg -i input.mkv -vf "scale=iw/2:ih/2" half_the_frame_size.mkv
ffmpeg -i input.mkv -vf "scale=iw/3:ih/3" a_third_the_frame_size.mkv
ffmpeg -i input.mkv -vf "scale=iw/4:ih/4" a_fourth_the_frame_size.mkv

sábado, 9 de noviembre de 2019

Inherit a class in Odoo 10, 11 and 12

Inherit a class in Odoo 10, 11 and 12:

Using this file as example:

https://github.com/odoo/odoo/blob/12.0/addons/mail/static/src/js/views/activity/activity_renderer.js

To inherit the class AbstractRenderer is like this:

odoo.define('mail.ActivityRendererInherited', function (require) {
"use strict";

var Abstract = require('mail.ActivityRenderer'); // name of the
                                                                              // Odoo define to inherit
var core = require('web.core');
var field_registry = require('web.field_registry');

var QWeb = core.qweb;
var _t = core._t;

var AbstractRenderer = Abstract.extend({
    /**
     * @private
     * @param {Object} data
     * @returns {jQueryElement} a <tr> element
     */
    function_name: function (data) {
       
    },
});

return {
    ActivityRenderer: ActivityRenderer
};

});

Importante reflexión de Richard Stallman sobre la IA, sobre todo en la Vigilancia Masiva que ejecuta la IA

Importante reflexión de Richard Stallman sobre la IA, sobre todo en la Vigilancia Masiva que ejecuta la IA. Richard Stallman, fundador del m...