remote control – Keyboard not work Asphalt 8 TV

I have Asphalt 8 on my smart TV and I have a WiFi keyboard for the TV, but the WiFi keyboard does not work for the game. It works for all of the other apps, as far as I know, but does not work for this one app. As this is a car game and I play it heavily, please answer this question before the destruction of my TV remote, with which I am now playing.

c# – No se abre el control de usuario a partir de un menu

Tengo un problema con mi código de WPF la cuestión es que tengo estructurado un menú de la siguiente manera

introducir la descripción de la imagen aquí

El problema radica en los controles de usuario al momento que asigno controles para cada una de las opciones del menú dichos controles no se abren cuando doy clic en aquellos que tienen opciones unicas es decir no tienen un submenú a continuacion dejo el codigo que esta implementado y en donde deberia realizar el cambio o corregir

namespace Menu.Modelo_de_vista{
public class ItemMenu
{
    public ItemMenu(string header, List<SubItem> subItems, PackIconKind icon)
    {
        Header = header;
        SubItems = subItems;
        Icon = icon;
    }

    public ItemMenu(string header, UserControl screen, PackIconKind icon)
    {
        Header = header;
        Screen = screen;
        Icon = icon;
    }

    public string Header { get; private set; }
    public PackIconKind Icon { get; private set; }
    public List<SubItem> SubItems { get; private set; }
    public UserControl Screen { get; private set; }
}}

class subitem

namespace Menu.Modelo_de_vista {
public class SubItem{
    public SubItem(string name, UserControl screen = null)
    {
        Name = name;
        Screen = screen;
    }
    public string Name { get; private set; }
    public UserControl Screen { get; private set; } }}

control de usuario para el menu

 public partial class UserControlMenuItem : UserControl {
    MainWindow _context;
    public UserControlMenuItem(ItemMenu itemMenu, MainWindow context){
        InitializeComponent();
        _context = context;

        ExpanderMenu.Visibility = itemMenu.SubItems == null ? Visibility.Collapsed : Visibility.Visible;
        ListViewItemMenu.Visibility = itemMenu.SubItems == null ? Visibility.Visible : Visibility.Collapsed;
      

        this.DataContext = itemMenu; }

    private void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e) {
        _context.SwitchScreen(((SubItem)((ListView)sender).SelectedItem).Screen);
        
    }
}

}

Formulario main window c#

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();

        DispatcherTimer timer = new DispatcherTimer();
        timer.Interval = TimeSpan.FromSeconds(1);
        timer.Tick += timer_Tick;
        timer.Start();
        LBLFECHA.Content = DateTime.Now.ToString("dddd, dd MMMM yyyy");




        var menuInventarios = new List<SubItem>();
        menuInventarios.Add(new SubItem("Administración de n productos de venta", new Control_de_usuario_inventario_de_productos()));
        menuInventarios.Add(new SubItem("Administración de n artículos de alquiler", new Control_de_usuario_Inventarios()));

        var item0 = new ItemMenu("Inventarios", menuInventarios, PackIconKind.ClipboardCheck);


        ItemMenu item1 = new ItemMenu("Alquileres", new Control_de_usuario_inventario_de_productos() , PackIconKind.Contract);

        ItemMenu item2 = new ItemMenu("Ventas", new Control_de_usuario_ventas(), PackIconKind.CashRegister);

        ItemMenu item3 = new ItemMenu("Gastos", new Control_de_usuario_Inventarios(), PackIconKind.BasketPlus);

        var menuEstudiantes = new List<SubItem>();
        menuEstudiantes.Add(new SubItem("Administración de estudiantes"));
        menuEstudiantes.Add(new SubItem("Lista de estudiantes"));
        var item4 = new ItemMenu("Estudiantes", menuEstudiantes, PackIconKind.AccountEdit);

        var menuReportes = new List<SubItem>();
        menuReportes.Add(new SubItem("Reporte de Ventas"));
        menuReportes.Add(new SubItem("Reporte de Alquileres"));
        menuReportes.Add(new SubItem("Reporte de Aportaciones"));
        menuReportes.Add(new SubItem("Reporte de Gastos"));
        menuReportes.Add(new SubItem("Reporte Total"));
        var item5 = new ItemMenu("Reportes", menuReportes, PackIconKind.FileChart);

        Menu.Children.Add(new UserControlMenuItem(item0, this));
        Menu.Children.Add(new UserControlMenuItem(item1,this));
        Menu.Children.Add(new UserControlMenuItem(item2, this));
        Menu.Children.Add(new UserControlMenuItem(item3, this));
        Menu.Children.Add(new UserControlMenuItem(item4, this));
        Menu.Children.Add(new UserControlMenuItem(item5, this));
    }

Como ya lo mencione para la parte de subitems no existen problemas los controles de usuario se abren normalmente sin embargo cuando no tengo subitems y unicamente la opcion unica empieza a presentarse problemas por que el control de usuario no aparece en mi stack panel.

animation – Unity – How do you have rigged clothing animate with a base model or control multiple SkinnedMeshRenderer with just one?

How do you have rigged clothing animate with a base model?

How do coalesce multiple skinned mesh renderers or have them all be controlled by just one?

Or, do you just have multiple animators for each SkinnedMeshRenderer (and there would be quite a number, for a character with a complex outfit that is modular)?

Mail Server instead Control Panel

Hello,

we currently have two hosting service:

One only for websites is a reseller plan on which I have no problem.
One only for mail … | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1835464&goto=newpost

python – What’s the best way to build a Flask API to control and show the status of a program tool I have built?

I’ve developed a backend project using Python. It collects data from different sources, process the data and then perform actions with it (for example, store relevant info in a database). To execute it, I just do “python main.py” and it starts the daemon process.

Now I want to add a Flask API in order to interact with this collector: start/stop the collection, see the state of each component, add/remove components… What is the best approach to do it? I can’t just add Flask app object and routes to the same project, because when I deploy the Api using gunicorn with several workers it runs several instances of the collector.

For example: I have in the collector a object called “GlobalManager” that is in charge of creating, deleting, starting and stoping the collector’s components. Obviously, there is only one instance of this GlobalManager, so I can’t include it in a project with Flask, because if I run it with Gunicorn, it starts several instances of the GlobalManager.

Should I code the API in a separate project and the communicate both the API and the collector through some tool?

making a server management system / control panel

I’m making an open source server management system. I’m starting to make progress on it, so I’d like to share and see if anyone is intereste… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1835158&goto=newpost

version control – How to setup our codebase for efficient code sharing and development?

Our situation

At first, our company had 1 product. Custom hardware with firmware we wrote ourselves.

Now more projects are starting to be added. Many can reuse most of the components of our first product, but of course the business logic is different. Also the hardware could change, and the remote device monitoring interfaces, as the sensors and available data could change.

Now we are looking at how to structure and manage our codebase. Currently we are leaning towards making a repository that will include all the non-project-specific firmware code. This includes battery management, remote device management skeleton, hardware drivers, etc. Everything that the different projects may share. This way, fixes and new features for these modules only need to be committed once.

Furthermore, we would create repositories per project, where the project-specific code is stored.

I think this is called multi-repo.

My thoughts

  1. Project setup and management becomes harder (it would e.g. perhaps need a script to get the right version of the non-project-specific repo)
  2. Each project can have its own rules (branching strategy
  3. We would have to setup CI for each extra repo (build validation, code style, policies)
  4. Because of 1-3, would monorepo be better? Won’t build validation and such become a lot harder because not all code is meant to be together (e.g. different projects)? How do we keep our freelancers out of the code they don’t need?
  5. Are there other (better) alternatives in our case?

game controllers – Using Android phone to control a raspberry pi nintendo 64 emulator

Say I make a nintendo 64 emulator on a raspberry pi 4, and I want to use my phone as a wireless controller ether over bluetooth or WiFi.

I doubt that any Android software would have support for linux, let alone support an N64 emulator.

So what would be the best course of action here, make a python translator that catches the signal sent by the phone, reads it, then simulates button presses on the raspberry? If anyone has a better solution, please let me know!

Oracle Enterprise Manager Cloud Control 13.4 – Package Deployment Stuck

We upgraded our Cloud Control from 13.3 to 13.4.

I passed as well this step with “Simple Installation” choice, using SYSMAN.

I have a user named as CCUSER1.

When I want to skip this page with “Simple Installation” choice, using CCUSER1.

enter image description here

It stucks on like this:

Image2

Sometimes it finish with “Succeeded” state but when I refresh the page or to display “SQL Monitoring” page, the same page (Package Deployment) appears.

How can I solve this?

Regards,

version control – Why is everyone recommending the imperative form for GIT commit messages?

Pretty much all guides labeled similar to “How to write a good GIT commit messages” suggest to use the imperative form.

What is the reasoning behind it? In 9 out of 10 cases, the only argument presented is “Use imperative as that’s what the GIT implementation itself does for auto-generated messages“.

Yet how is that even a valid argument? If GIT was doing it wrong – for whatever reason – everyone else has to do do it wrong as well? Maybe the authors of GIT just thought that this makes sense for auto generated messages. Where is said it also makes sense for messages written by programmers? Maybe imperative form was supposed to make auto generated messages easier distinguishable from those that aren’t? Has anyone even considered that?

And in 1 out of 10 cases, there is also the argument “Use imperative as pretty much everyone else is also doing so“, yet this is even less a valid argument. Appeal to tradition is never a valid argument if not backed up by other arguments.

To quote Bertrand Russell:

Even if everyone agrees, everyone can be wrong.

The only alternative argument I found in one of the guides came from K. Hoodlet and it said:

I use imperative because it tells me what that commit accomplishes, not what the developer has done.

But even that seems to be no argument for imperative. If I fixed bug #1234 with a commit, using the past form would be:

Fixed bug #1234

the imperative form would be:

Fix bug #1234

but the form that tells me what that commit accomplishes would be:

Fixes bug #1234

as that is what it accomplishes, it “fixes bug #1234”.

I understand that the past form only makes sense if you look at the backlog to be the history of things that happened in the past. However, this is not always true, as you may currently be on an alternative, parallel branch, in which case these messages don’t describe the past but an alternative presence. Also you may be on the same branch but haven’t pulled these commits so far, in which case these messages describe the future (changes that will happen once you pull them in). So using past tense probably really makes little sense.

But if the message is all about knowing what a change does, imperative makes no sense either. Imperative would only be meaningful if you had to type the message to make GIT pull it, as then you could see it as command to make GIT do something (think of git "fix bug #1234"), which is not how you use GIT.

The way you use GIT (or any other VCS) is to tell it apply (pull) a couple of changes and you probably want to know what these changes do prior to applying them, so that’s what the commit message is good for. And in that case, it just makes much more sense to describe what a commit is doing, no what you have done, not formulating orders, just describe the commit as

This commit

  • Fixes bug #1234
  • Adds an auto-sync feature
  • Removes legacy file storage API

So is there any other argument for imperative form that I’m missing so far? Is there any meaningful argument against just writing down in presence tense what the commit does as shown above?