home.social

#override — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #override, aggregated by home.social.

fetched live
  1. xterm.vt100.translations: #override \
        Ctrl Shift <Key> equal: larger-vt-font() \n\
        Ctrl <Key> minus: smaller-vt-font() \n\
        Ctrl <Key> 0: set-vt-font(d) \n\
        Ctrl Shift <Key> C: copy-selection(CLIPBOARD) \n\
        Ctrl Shift <Key> V: insert-selection(CLIPBOARD)
    

    xterm(1) on #Linux or #BSD doesn’t support easy font resize and CUA copy-paste? uhh.

  2. xterm.vt100.translations: #override \
        Ctrl Shift <Key> equal: larger-vt-font() \n\
        Ctrl <Key> minus: smaller-vt-font() \n\
        Ctrl <Key> 0: set-vt-font(d) \n\
        Ctrl Shift <Key> C: copy-selection(CLIPBOARD) \n\
        Ctrl Shift <Key> V: insert-selection(CLIPBOARD)
    

    xterm(1) on #Linux or #BSD doesn’t support easy font resize and CUA copy-paste? uhh.

  3. Переопределение классов ядра Joomla с помощью плагина на примере MVCFactory

    Разработчики сайтов, веб-мастера, рассматривая Joomla как CMS, чаще всего используют компоненты ядра такими, какие они есть. Но компоненты ядра, обеспечивающие CRUD-ы в Joomla, следует рассматривать ещё и как примеры использования Joomla в качестве фреймворка. Иногда реалии проекта таковы, что требуется внести изменения именно в логику классов ядра Joomla. Я покажу это на нескольких примерах: как исхитрялись раньше и какие возможности появились в современных версиях Joomla. Сразу оговорюсь: речь не о том, чтобы править файлы ядра. Это плохая идея почти всегда. При обновлении Joomla такие изменения будут потеряны, а сопровождать их потом придётся вручную. Речь о другом: как изменить точку создания MVC-классов компонента через плагин и DI-контейнер, не залезая в core-файлы. Ну и приятный бонус - Joomla-археология и немного красивого и ужасного треша из практики 😎

    habr.com/ru/articles/1033646/

    #joomla #joomla_6 #mvcfactory #mvc #override #декоратор #ооп

  4. #TIL that the word OVERRIDE predates computers.

    Reading through #Tolkien's #TheTwoTowers:
    "...leaping back into the saddle, [Aragorn] rode away for some distance eastward, keeping to one side and taking care not to #override the footprints."

    Makes sense; horses/tracking have been around for much longer than computers. One can surmise that modern usage extrapolates on that metaphor of "riding over" old #data to replace it with the footprints of the new. Neat!

    #language #grammar #history #lotr

  5. #TIL that the word OVERRIDE predates computers.

    Reading through #Tolkien's #TheTwoTowers:
    "...leaping back into the saddle, [Aragorn] rode away for some distance eastward, keeping to one side and taking care not to #override the footprints."

    Makes sense; horses/tracking have been around for much longer than computers. One can surmise that modern usage extrapolates on that metaphor of "riding over" old #data to replace it with the footprints of the new. Neat!

    #language #grammar #history #lotr

  6. @cks @davefischer I've usually done this via Xterm keybindings – it has a built-in action to spawn itself, and automatically detects the child shell's cwd.

    XTerm*VT100.translations: #override \n\
    Shift Ctrl <Key>C: copy-selection(CLIPBOARD) \n\
    Shift Ctrl <Key>V: insert-selection(CLIPBOARD) \n\
    Shift Ctrl <Key>N: spawn-new-terminal() \n

  7. @cks @davefischer I've usually done this via Xterm keybindings – it has a built-in action to spawn itself, and automatically detects the child shell's cwd.

    XTerm*VT100.translations: #override \n\
    Shift Ctrl <Key>C: copy-selection(CLIPBOARD) \n\
    Shift Ctrl <Key>V: insert-selection(CLIPBOARD) \n\
    Shift Ctrl <Key>N: spawn-new-terminal() \n

  8. @m3tti

    I got ctrl+shift+c to copy and ctrl+shift+v to paste on OpenBSD's xterm by adding the following to my .Xdefaults/.Xresources:

    ! Custom Key Bindings
    *VT100*translations: #override \n\
    Ctrl Shift <Key>C: copy-selection(SELECT) \n\
    Alt<KeyPress>: string(0x1b) insert() \n\
    Ctrl Shift <Key>V: insert-selection(SELECT)

    Hope it helps!

  9. What is #OOP? The current Object Oriented #Programming has been distracted by #classes, #interfaces, #override, .. and is ignoring its crucial component, namely #object. Claude4 Sonnet and I are developing this new language called Sunya to get rid of all the nuisance and focus on objects. An object is a standalone entity that has attributes and functionalities and that can "emulate" other objects directly. As object is a set of functions with a persistent state. A module is a complex object.

  10. Подмена E-EDID на Windows

    Если вы когда-нибудь, запуская рабочую станцию с операционной системой Windows, обнаруживали, что ваш Full HD монитор показывает лишь изображение с разрешением не более 1024x768 и определяется как «Стандартный не Plug-n-Play монитор», и по какой-то причине вы не имеете возможности переключить монитор на другой видеовход, не поленитесь заглянуть под кат, где я растолкую, как «временно» выкрутиться минимальными усилиями.

    habr.com/ru/articles/908410/

    #Windows #EEDID #dump #hardware #eeprom #override

  11. @beberlei Really curious if all the bugs in the core attribute functionality are now finally fixed. With each of my three attribute-RFCs (#SensitiveParameter, #Override, #Deprecated) I found some more of them 😁

    This time it was named parameters for attributes on internal classes that was broken.

  12. @beberlei Really curious if all the bugs in the core attribute functionality are now finally fixed. With each of my three attribute-RFCs (#SensitiveParameter, #Override, #Deprecated) I found some more of them 😁

    This time it was named parameters for attributes on internal classes that was broken.

  13. CW: Ідентифікатори спеціального призначення в C++

    У C++ окрім ключових слів які завжди означають щось одне є ідентифікатори спеціального призначення які можна використовувати як звичайні ідентифікатори(назви), але у деяких конкретних місцях вони розуміються компілятором як ключове слово.

    Такими словами є final, override, import і module. Ці ідентифікатори можуть використовуватись як назви змінних, констант, функцій, класів/структур чи іншого, але у спеціальних місцях вони набувають властивостей ключового слова.

    import <iostream>;
    
    struct override {
    	int module;
    };
    
    int main() {
    	override final{4};
    	std::cout << final.module << std::endl;
    }
    

    Різні слова можна використовувати у різних місцях. Наприклад слова final, module і import не вийде використовувати у ролі назви класу, структури чи перечислення оскільки тут вони розуміються як ключові слова. Але це тільки у глобальному просторі імен якщо запхати клас у namespace, то все запрацює.

    import <iostream>;
    
    namespace x {
    		struct module {
    				int override;
    		};
    }
    
    int main() {
    		x::module final{4};
    		std::cout << final.override << std::endl;
    }
    

    Але щоб не плутати інших і себе також краще не використовувати їх так.

    #cpp #cxx #final #override #import #module #cpp20 #keywords #namespace #special_identifiers #ключові_слова #спеціальні_ідентифікатори

  14. PHP 8.3 is a major update of the PHP language. In this new release, we have:

    ⌨️ Typed Class Constants
    🏛️ Dynamic Class Content Fetch
    ♻️ A New [#Override] Attribute
    ➕ …and more!

    php.net/releases/8.3/en.php Time to upgrade container image. Happy upgrades!