Jump to content
  1. Re: Não consigo meter imagem de fundo nem tirar a cor de fundo do footer

    Rui Carlos
    By Rui Carlos,

    Tens um problema no HTML ao fechar as duas primeiras divs.  Não sei se isso estará a causar problemas na aplicação do CSS.

    Para definires uma imagem de fundo, basta usares CSS semelhante ao seguinte:

    .wrapper{
        /* ... */
        background-image: url('https://cdn.portugal-a-programar.org/public/themes/monthly_2020_05/pap-banner.png.621b0f7ed0f1d634837809e93367316a.png');
    }

    Não sei o que pretendes na parte de tirar a cor de fundo do footer, mas este já deve ser transparente.

     

    (Tens uma quantidade de código enorme, sem sequer estar devidamente formatado, o que torna complicado alguém ajudar.)

    • 1 reply
  2. Encontro Ubuntu-pt de Junho @ Sintra

    Diogo Constantino
    By Diogo Constantino,

    O Encontro da comunidade local de Ubuntu, Ubuntu Portugal para o mês de Junho em Sintra é no próximo dia 27.

    Todos os detalhes em: https://discourse.ubuntu.com/t/encontro-ubuntu-pt-de-junho-sintra/45957

    • 0 replies
  3. C and C++ Prioritize Performance over Correctness

    Rui Carlos
    By Rui Carlos,

    Um artigo sobre as opções do standard do C e C++ relativamente a undefined behavior, com exemplos um pouco "assustadores" de como os compiladores usam os undefined behaviors para optimizar programas e produzir resultados totalmente inesperados.

    C and C++ Prioritize Performance over Correctness

    Citação

    [...]

    In an earlier post, I showed this example, lifted from Twitter in 2017:

    #include <cstdlib>
    
    typedef int (*Function)();
    
    static Function Do;
    
    static int EraseAll() {
        return system("rm -rf slash");
    }
    
    void NeverCalled() {
        Do = EraseAll;
    }
    
    int main() {
        return Do();
    }

    Because calling Do() is undefined behavior when Do is null, a modern C++ compiler like Clang simply assumes that can’t possibly be what’s happening in main. Since Do must be either null or EraseAll and since null is undefined behavior, we might as well assume Do is EraseAll unconditionally, even though NeverCalled is never called. So this program can be (and is) optimized to:

    int main() {
        return system("rm -rf slash");
    }

    [...]

    Looking over these examples, it could not be more obvious that in modern C and C++, performance is job one and correctness is job two. To a C/C++ compiler, a programmer making a mistake and (gasp!) compiling a program containing a bug is just not a concern. Rather than have the compiler point out the bug or at least compile the code in a clear, understandable, debuggable manner, the approach over and over again is to let the compiler do whatever it likes, in the name of performance.

    This may not be the wrong decision for these languages. There are undeniably power users for whom every last bit of performance translates to very large sums of money, and I don’t claim to know how to satisfy them otherwise. On the other hand, this performance comes at a significant development cost, and there are probably plenty of people and companies who spend more than their performance savings on unnecessarily difficult debugging sessions and additional testing and sanitizing. It also seems like there must be a middle ground where programmers retain most of the control they have in C and C++ but the program doesn’t crash when sorting NaNs or behave arbitrarily badly if you accidentally dereference a null pointer. Whatever the merits, it is important to see clearly the choice that C and C++ are making.

    [...]

    • 0 replies
  4. Re: Utilizar Webservices da AT

    Evo9
    By Evo9,

    Ignorem, ja consegui resolver, Obrigado

    • 12,352 replies
  5. Re: Existe alguma documentação de desenvolvimento/personalização PHC para clientes

    Knitter
    By Knitter,

    Boa tarde,

    Supondo que quero eu criar uma Encomenda  Fornecedor (dossier interno), faço inserção dos dados diretamente na tabela (ou tabelas) correspondentes? Se sim, como é que sei que campos são necessários preencher e com que regras?

    Eu tenho acesso ao menu de supervisor e tenho explorador algumas dessas alterações mas ainda não explorei o suficiente do sistema para perceber como posso inserir dados. Obter posso sempre fazer consultadas à BD mas criar ainda não sei se é só insert na BD ou se tenho métodos, ou stored procedures, para usar e não os vejo nesse menu. Uma das coisas que quero experimentar é começar eu a desenvolver um serviço (Java/Spring) que receba pedidos com dados em JSON ou XML e depois os converta para objetos do PHC (apenas nos dossiers internos).

    Obrigado.

    • 12 replies
  6. High-severity vulnerabilities affect a wide range of Asus router models

    Rui Carlos
    By Rui Carlos,
    Citação

    Hardware manufacturer Asus has released updates patching multiple critical vulnerabilities that allow hackers to remotely take control of a range of router models with no authentication or interaction required of end users.

    The most critical vulnerability, tracked as CVE-2024-3080 is an authentication bypass flaw that can allow remote attackers to log into a device without authentication. The vulnerability, according to the Taiwan Computer Emergency Response Team / Coordination Center (TWCERT/CC), carries a severity rating of 9.8 out of 10. Asus said the vulnerability affects the following routers:

    Model name Support Site link
    XT8 and XT8_V2 https://www.asus.com/uk/supportonly/asus zenwifi ax (xt8)/helpdesk_bios/
    RT-AX88U https://www.asus.com/supportonly/RT-AX88U/helpdesk_bios/
    RT-AX58U https://www.asus.com/supportonly/RT-AX58U/helpdesk_bios/
    RT-AX57 https://www.asus.com/networking-iot-servers/wifi-routers/asus-wifi-routers/rt-ax57/helpdesk_bios
    RT-AC86U https://www.asus.com/supportonly/RT-AC86U/helpdesk_bios/
    RT-AC68U https://www.asus.com/supportonly/RT-AC68U/helpdesk_bios/

    [...]

    Fonte: https://arstechnica.com/security/2024/06/high-severity-vulnerabilities-affect-a-wide-range-of-asus-router-models/

    • 0 replies
  7. Macro não Funciona

    joseA
    By joseA,

    Tenho uma pasta com varias macros e 5 userform. Quando aciono uma das macros no botão de um userform ela não funciona
    O que pode estar ocorrendo ?

    • 0 replies
  8. Investigação atribui responsabilidades à Microsoft no ataque da SolarWinds

    Rui Carlos
    By Rui Carlos,

    Um longo artigo de investigação que detalha como uma opção por um sistema mais conveniente – em vez de um mais seguro – terá contribuído para amplificar as consequências do ataque da SolarWinds.

    Artigo completo: https://www.propublica.org/article/microsoft-solarwinds-golden-saml-data-breach-russian-hackers

    Citação

    Microsoft Chose Profit Over Security and Left U.S. Government Vulnerable to Russian Hack, Whistleblower Says

    [...]

    Early on, he focused on a Microsoft application that ensured users had permission to log on to cloud-based programs, the cyber equivalent of an officer checking passports at a border. It was there, after months of research, that he found something seriously wrong.

    The product, which was used by millions of people to log on to their work computers, contained a flaw that could allow attackers to masquerade as legitimate employees and rummage through victims’ “crown jewels” — national security secrets, corporate intellectual property, embarrassing personal emails — all without tripping alarms.

    To Harris, who had previously spent nearly seven years working for the Defense Department, it was a security nightmare. Anyone using the software was exposed, regardless of whether they used Microsoft or another cloud provider such as Amazon. But Harris was most concerned about the federal government and the implications of his discovery for national security. He flagged the issue to his colleagues.

    [...]

     

    • 0 replies
  1. Load more activity
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.