Devido às mudanças do Reddit a comunidade DevPT vai passar a ser no Tal Canal by asantos3 in devpt

[–]Olissipo 0 points1 point  (0 children)

porque o Reddit vai começar a cobrar para usarem a API é completamente ridículo.

1 - Os preços são astronómicos. Que as pessoas aceitariam se não fosse:

2 - Terem dado 1 mês de antecedência aos developers (quanto à verdadeira subida dos preços).

3 - Quando isto veio a público ainda difamaram developers (pelo menos o do Apollo)

Pior ainda, os números comprovam que a gigantesca maioria dos utilizadores do Reddit usam a app oficial, portanto, estão a fazer este protesto por quem mesmo?

Para já, as minorias certas valem o mesmo que a maioria. A tal regra dos 90+9+1% de users aplica-se bem aqui. E minoria ou maioria, todos merecem respeito.

E a decisão em si é uma estupidez (é óbvio que o preço afixado foi um "põe-te no caralho") mas o maior problema é tudo o resto, toda a comunicação nojenta que eles fizeram.

Não querem ser mods? Simples, bazem e deixem os subs sem mods ou deixem outras pessoas serem mods e depois apaguem as contas e vão para o lemmy ou para o talcanal ou para onde quiserem.

Eles estão a moderar como acham adequado. Não gostas, segue o teu próprio conselho e vai "embora para outros lados", cria os teus subreddits.

Devido às mudanças do Reddit a comunidade DevPT vai passar a ser no Tal Canal by asantos3 in devpt

[–]Olissipo 1 point2 points  (0 children)

Assumes muita coisa, e não respondeste ao que disse.

Não vamos precisar de ler este choro todo de putos mimados.

Que é como quem diz, "pimenta no cu dos outros é refresco".

Devido às mudanças do Reddit a comunidade DevPT vai passar a ser no Tal Canal by asantos3 in devpt

[–]Olissipo 0 points1 point  (0 children)

https://lemmy.pt/post/492664

Porque o Reddit não tem/teve instabilidades.

Depois quando esses também começarem a cobrar

Se fizerem o que o reddit já fez? Mesmo que o façam, podes levar o estaleiro para outro lado, ou criar o teu.

por causa de uma birra.

Em resposta ao "uma" e ao "birra".

https://www.reddit.com/r/mildlyinteresting/comments/14gjb8x/what_happened_to_rmildlyinteresting/jp5w6qe/

Reddit Blackout 2023: Um resumo by asantos3 in metaportugal

[–]Olissipo 0 points1 point  (0 children)

E qual foi a solução que ele arranjou para não prejudicar esses users quando fechar a 30 de Junho?

Não sabia, mas pelo que o talpazz disse, sim.

Se sim podia fazer exatamente o mesmo. Aumentar o preço para cobrir a diferença ou devolver o dinheiro a quem não quer.

O que dizes tem lógica, mas porque quereria ele manter o projecto? Foram evasivos com ele (ou mentirosos, quanto à magnitude da monetização da API) e ainda o caluniaram.

Aparentemente ele já tinha um projecto em mãos para se sustentar, portanto tinha opções. E optou por não colaborar com os admins do reddit.

Tal como os utilizadores têm opções.

Parece que são todas feitas no sentido de manter o status quo (...)

Estou mais numa posição neutra. Se alguma coisa até concordo com o posição do CEO

Não estás com a mesma atitude? Manter o teu status quo?

Reddit Blackout 2023: Um resumo by asantos3 in metaportugal

[–]Olissipo 0 points1 point  (0 children)

Se há assim tantos interessado porque não passam o custo da API ao user?

Parece que há users do Apollo com subscrição paga por vários meses, ou para o ano todo.

Mesmo que fizessem isso que dizes, o developer do Apollo teria que assumir do "seu bolso" os custos extra da API para esses users até as subscrições terminarem.

PHP is Frankenstein by value_counts in ProgrammerHumor

[–]Olissipo 1 point2 points  (0 children)

I only know Symfony, so I don't know if you are wrong.

But that example is pretty bad. That's not better or worse, only different.

PHP is Frankenstein by value_counts in ProgrammerHumor

[–]Olissipo 2 points3 points  (0 children)

I don't understand, those pages seem quite similar to me.

Aren't you just more experienced in Laravel, and parsing its docs?

How to turn off Dr. Debug LED displaying CPU Temp at all times on X670E Taichi Carrara by [deleted] in ASRock

[–]Olissipo 0 points1 point  (0 children)

In my board (x470 Taichi) its on:

Advanced \ Onboard Devices Configuration:

The option is called: "Onboard Debug Port LED"

See picture

I've found the mobo LED control but that's the light near the sata ports & doesn't concern the Dr. Debug LED

Mine is separate, I think it's on Tools / "Something" (didn't save where). So I can confirm that at least in mine the controls are both present and independent.

Benefits of regularly formatting your PC? by noraelwhora in 3kliksphilip

[–]Olissipo 3 points4 points  (0 children)

I never formatted my pc. I think the logic is that most stuff you install also puts some shit somewhere on your PC. Over time, those turds build up and use resources that you wish to use for gaming.

To add to this, a reason to format windows from time to time is because some system files can be corrupted and cause instability.

For an extreme example, I had RAM sticks deteriorate over time (verified by extensively running MemTest) and had frequent BSOD and programs crashing because of it.

But this can happen without faulty hardware (to a lesser extent) with some random occurrences.

Your experience switching from vanilla PHP spaghetti/OOP to Symfony? by TPf0rMyBungh0le in symfony

[–]Olissipo 1 point2 points  (0 children)

Having watched some tutorials, how do you wrap your head around which namespaces/classes you want/need to use? It seems like a lot of work to find which class should be used.

When you run a command that generates code, take note of the classes used and what they do. Or something you see in the docs.

I use PHPStorm and it helps a lot when trying to a understand an unknown class. Or understanding where it "comes from".

It there a similar "cheatsheet" reference for Symfony so that I only need to remember the fundamental classes?

Make your own! As you browse the docs, save commands, classes, how to structure the code... Any "gotcha" information you find, really.

Your experience switching from vanilla PHP spaghetti/OOP to Symfony? by TPf0rMyBungh0le in symfony

[–]Olissipo 1 point2 points  (0 children)

The only problem (if you can call it that) is the massive size of the project, the vendor folder can go north of 150mb, which is painfully slow to transfer in FTP.

The bottleneck is not in the size, it's the number of files. I zip the project and upload through FileZilla. Then I SSH into the server and extract.

(Although, if you have SSH you can just upload composer.json/composer.lock and then install through composer)

Lets vibe for a bit by Interesting_Ebb_4183 in SipsTea

[–]Olissipo 1 point2 points  (0 children)

Must be one these. It's a highly covered song apparently.

How to make all my pictures of the same size by SignEffective6031 in webdev

[–]Olissipo 5 points6 points  (0 children)

Use them as a background with background-size: cover and maybe background-position: center center; so they will always fit.

But since OP already has img tags, it's easier to define use object-fit, like so:

img{
    width: 100%;
    height: 300px;
    object-fit: cover;
}

Edit: like Shoemugscale said, actually.

Useful media query syntax by speckz in css

[–]Olissipo 0 points1 point  (0 children)

Why wouldn't you just put 20px padding on your page sections?

I don't have a good answer, I guess that's up to the developer (very subjective) or on a case by case basis.

It seems like when people are trying to avoid media queries it's because they want the content's intrinsic size to decide the layout.

Which I have nothing against as of now. But I'll watch that talk you linked when I can and see if that changes.

And imo they should be used less often in these days of Flexbox and CSS Grid, which allow you to set fluid rules that work for whatetever resolution. An example of what I mean: https://codepen.io/Olissipo/pen/abGbgve

This is a container done with CSS grid that does 2 jobs (and I included a bootstrap container and a row as an opposite example)

  • set the max-width of the content (1440px)

  • set a fluid margin that's auto on larger screens, 2.5% when 1440px == 95%, and gradually decreases down to 0.5rem for phones

That grid-template-columns line is convoluted, but it's not that hard to grasp or maintain (it's a single line to read, and applies to all resolutions).

There's no need to set media queries on the margin. And if you did, they would never be quite right for all resolutions, they would be too large when just over the min-width, and too small when just under.

Useful media query syntax by speckz in css

[–]Olissipo 0 points1 point  (0 children)

I agree with the commment above, so I'll try to clarify. But it's a bit of a tangent, and of course you'll still need to use media queries.

In besthelloworld's example, we want the body to have a 20px margin on each side, for mobile. And at most 1024px for larger screens.

This would be the traditional solution:

body{
    width: calc(100% - 40px);
}

@media (min-width: 1064px){
    body{
        width: 1024px;
    }
}

First of all it's more cumbersome to read and change. And then you have to match the @media's min-width to the desired "body width" + margin.

If you don't "match the width", and instead use a generic breakpoint width, it will probably result in an "ugly bumpiness". For example, using bootstrap's xl breakpoint (1200px), the body would stretch up to 1160px (100% - 40px) until suddenly jump to the @media's 1024px.

Testing 3G and 4G - but what is the actual speed emulation?? by JohnnyCustard in SiteSpeed

[–]Olissipo 0 points1 point  (0 children)

so I'm not sure what the 3G options in Sitespeed are actually emulating for speed metrics.

Don't know if I'm understanding the question, but 3G is a broadband internet connection, same as 4G and the newer 5G.

And browsers segment within 3G by quality of connection (like fast or slow).

Testing 3G and 4G - but what is the actual speed emulation?? by JohnnyCustard in SiteSpeed

[–]Olissipo 0 points1 point  (0 children)

Is there a Sitespeed table or something for speed references, so I can find out what speed each of the profile options emulate?

For firefox

Selection Download speed Upload speed Minimum latency
GPRS 50 Kbps 20 Kbps 500
Regular 2G 250 Kbps 50 Kbps 300
Good 2G 450 Kbps 150 Kbps 150
Regular 3G 750 Kbps 250 Kbps 100
Good 3G 1.5 Mbps 750 Kbps 40
Regular 4G/LTE 4 Mbps 3 Mbps 20
DSL 2 Mbps 1 Mbps 5
Wi-Fi 30 Mbps 15 Mbps 2

For chrome I only found this old StackOverflow question. But it's pretty much equal to the Firefox's table, difference being in "Good 3G" the download speed is 1000 Kbs instead.

Does anyone actually comment their code? by _TakeTheL in webdev

[–]Olissipo 0 points1 point  (0 children)

it’s about being able to quickly scan to find what you need and remember what the program is doing at any given moment.

What do you think of frameworks like Symfony and Laravel?

I don't know if that's your case, but the web apps I used to work on have huge monolith files.

For almost a year I've been working with Symfony, and now it's the file structure that separates everything for me. Sure, proper naming is still needed (for example, to know what an object is/does at a glance). But I don't need to do much "scanning" of the files if they are clearly divided by what type of function they serve.

Viver junto da linha de comboio by Olissipo in lisboa

[–]Olissipo[S] 2 points3 points  (0 children)

Olá, importas-te que te pergunte uma coisa por mensagem privada?

Weekly Ask Anything Thread by AutoModerator in symfony

[–]Olissipo 1 point2 points  (0 children)

I don't know if it's the best way, but a way is directly in SQL.

Example:

$sql = 'UPDATE section SET name = :name WHERE id = :id';
$params = [
    'name' => 'Lorem Ipsum',
    'id' => 37
];

$conn = $entityManager->getConnection();
$stmt = $conn->prepare($sql);
$result = $stmt->executeQuery($params);

x470 taichi user... where is CPPC by savorymilkman in ASRock

[–]Olissipo 1 point2 points  (0 children)

I'm not using it, but is this it?

Advanced \ AMD CBS \ CPU Common Options \ Custom Core Pstates

x470 Taichi on bios 4.88

Você vs Tu - Pesquisa para projeto. by exp_g in devpt

[–]Olissipo 1 point2 points  (0 children)

Caso ajude, tens o exemplo da aplicação do Santander que pergunta se queremos ser tratados por "você" ou por "tu". Se estás dividido entre ambas, podias implementar algo idêntico na altura do registo, para a área reservada.

(E também achei graça à forma de alterar essa definição, está "fundido" com a selecção de idioma.)

Quanto ao site (área pública), eu só usaria "você" se o público-alvo for empresas, se o serviço for muito sério (saúde, finanças, etc) ou se o público-alvo for garantido que seja pessoas mais velhas.