Vue normale

Il y a de nouveaux articles disponibles, cliquez pour rafraîchir la page.
À partir d’avant-hierFlux principal

26 séries lesbiennes à regarder de toute urgence

Par : Aurore Gayte
25 avril 2024 à 10:43

Les lesbiennes doivent être plus visibles dans la vraie vie, mais aussi sur le petit écran. Heureusement, de plus en plus de productions font des lesbiennes et des femmes queers les stars de leurs séries. Voici quelques-unes des meilleures séries disponibles sur des services de streaming en France.

Black – Pour formater votre code Python rapidement et sans douleur

Par : Korben
24 mars 2024 à 09:00

Si vous codez avec vos gros doigts boudinés toute la journée, notamment en Python, il se peut que comme 99% des codeurs, vous ne vous encombriez pas avec le formatage de votre code. Pas le temps, et l’IDE fait le minimum syndical donc ça vaaaaa.

C’est pourquoi aujourd’hui, je vous propose d’aller plus loin grâce à Black, un outil qui automatise la mise en forme de votre code Python pour qu’il soit cohérent, lisible et conforme aux normes établies notamment de PEP 8.

Pour l’installer :

pip install git+https://github.com/psf/black

Il nettoie vos merdes, mets des retours à la ligne dans vos tableaux, les fonctions, les définitions…etc., vous permet de gérer la longueur de vos lignes de code, enlève les retours à la ligne ou les points-virgules en trop, ou encore remplace les single quotes (‘) par des double quotes (« )… Et il y a encore plein d’autres petites améliorations dont vous pourrez consulter la liste ici.

black script.py

Un mode expérimental est également dispo, ce qui vous permettra de voir comment votre code sera formaté dans les prochaines versions.

black --preview script.py

Parmi les prochaines améliorations notables, on peut citer la gestion améliorée des chaînes multilignes dans les appels de fonction, où Black est désormais plus « intelligent » pour éviter d’introduire des sauts de ligne supplémentaires. En effet, avec cette nouvelle fonctionnalité, Black examine le contexte autour de la chaîne multiligne pour décider si elle doit être en ligne ou divisée en plusieurs lignes. Par exemple, lorsqu’une chaîne multiligne est passée à une fonction, Black ne divise la chaîne multiligne que si une ligne est trop longue ou si plusieurs arguments sont passés.

Il est également intéressant de noter les améliorations apportées à la gestion des parenthèses dans les dictionnaires. Désormais, pour dictionnaires avec de longues valeurs, elles sont enveloppées de parenthèses, et les parenthèses inutiles sont supprimées.

Black s’utilise donc en ligne de commande, peut aussi tourner dans un Docker et peut surtout être intégré dans vos process CI/CD pour « corriger » et formater automatiquement tout ce que vous récupérez dans les push sur le Git. Notez qu’une mesure de sécurité ralentit un peu le traitement, puisque Black vérifiera que le code reformaté produit toujours un AST (Abstract Syntax Tree) valide qui est effectivement équivalent à l’original. Si vous vous sentez en mode grosse confiance, vous pouvez utiliser le paramètre --fast pour aller encore plus vite.

Bref, c’est un excellent formateur de code qui s’intègre aussi bien dans Vim que dans Visual Studio Code ou utilisable en ligne de commande à l’ancienne comme on aime.

À découvrir ici.

Merci à Lorenper

NH-D12L chromax.black, Noctua annonce un ventirad double tour compact 100% noir

Par : Pascal
19 mars 2024 à 11:29

Ventirad Noctua NH-D212L chromax.blackNoctua a élargi sa gamme chromax.black avec l’annonce d’une version noire du NH-D12L. Cette robe n’affecte pas les performances.

Cet article NH-D12L chromax.black, Noctua annonce un ventirad double tour compact 100% noir a été publié en premier par GinjFo.

The Pros and Cons of DRAMless SSDs – Should You Use SSDs with HMB?

Par : Rob Andrews
29 janvier 2024 à 18:00

Are DRAM free SSDs Worth Your Money and Your Data?

Solid-State Drives (SSDs) have revolutionized data storage with their speed and reliability. Among these, DRAMless SSDs have carved a niche, offering unique advantages and disadvantages. With the emergence of models like the Samsung 990 EVO, the Phison E31T controller-based SSDs, and the WD Black SN770, the landscape of DRAMless SSDs is expanding. This assessment delves into the pros and cons of DRAMless SSDs, offering an unbiased perspective on their place in the storage market.

What Are the Advantages of DRAMless SSDs?

Choosing to opt for an SSD inside your client desktop or portable system that does not feature it’s own on-board DRAM/Memory actually opens the door to a lot of benefits that extend way beyond just buying an SSD that has a lower price per TB/GB. Here are a whole bunch of benefits to using DRAMless SSDs, like the Samsung 990 EVO, WD Black SN770 and more in 2024 onwards:

Cost-Effectiveness

The absence of DRAM chips in SSDs like the Samsung 990 EVO and WD Black SN770 makes them more affordable, offering solid-state speed at a lower price point. This is due to reduced manufacturing costs, making these drives a budget-friendly option for consumers.

Energy Efficiency

DRAMless SSDs, including those with the Phison E31T controller, are known for lower power consumption compared to DRAM SSDs. This feature is particularly beneficial in battery-powered devices, extending their battery life.

Compact and Lightweight Design

The elimination of DRAM chips allows for a more compact form factor. This design aspect is crucial in devices where space is limited, such as ultra-thin laptops or compact embedded systems.

Simplicity and Increased Reliability

Fewer components mean a simpler design, which could lead to increased reliability. DRAMless SSDs, by virtue of their simplicity, might have fewer points of failure compared to their DRAM counterparts.

Security Advantages

The volatile nature of DRAM means it can retain data temporarily. In DRAMless SSDs, like the Samsung 990 EVO, the lack of this component might reduce the risk of data recovery after power loss, enhancing data security.

Suitability for Certain Workloads

For applications that are read-intensive and don’t require high write performance, a DRAMless SSD can be a suitable choice. These drives can handle basic tasks and typical consumer workloads effectively. However, it’s important to note that DRAMless SSDs may have limitations in terms of performance, particularly in write speeds and handling large or intensive workloads, compared to SSDs with dedicated DRAM. As such, their benefits are most realized in specific use cases where the cost and power efficiency are prioritized over peak performance.

What Are the Disadvantages of DRAMless SSDs?

Commonly recognized negatives/disadvantages of SSDs that lack onboard DRAM/Memory are:

Compromised Performance

A major drawback, seen in models like the WD Black SN770, is slower write speeds and increased latency due to the absence of a DRAM cache. This impacts performance, especially in write-intensive tasks.

Limited Multitasking Efficiency

Without a high-speed buffer, DRAMless SSDs struggle with multitasking. This limitation affects their ability to handle multiple simultaneous read/write operations effectively.

Dependency on System Memory

Some DRAMless SSDs, including those using the Phison E31T controller, rely on the system’s RAM (Host Memory Buffer) for data management, which could impact overall system performance, especially in RAM-constrained environments.

Reduced Endurance and Longevity

Continuous write operations directly to NAND can accelerate wear, potentially reducing the SSD’s lifespan. This is a concern in DRAMless SSDs where direct NAND writes are more frequent.

Inadequacy for High-End Tasks

High-performance tasks like gaming or video editing may not be ideally suited for DRAMless SSDs due to their limited speed and multitasking capabilities.

DRAMless SSDs – The Verdict?

In conclusion, DRAMless SSDs like the Samsung 990 EVO, Phison E31T-based drives, and the WD Black SN770 offer a cost-effective and energy-efficient solution for basic storage needs. They are particularly well-suited for devices where space and power consumption are key considerations. However, their reduced performance and endurance make them less ideal for high-performance computing or heavy workloads. These SSDs represent a compromise, balancing affordability and efficiency against top-tier performance, making them a viable option for certain consumer segments but not a one-size-fits-all solution.

Here are Three of the leading DRAMless m.2 NVMes in the SSD market right now:

Samsung 990 EVO Gen 5 SSD – $89 / $159 WD Black SN770 Gen 4 SSD $64 / $129
 
Samsung 990 EVO SSD Review and Benchmark Video WD Black SN770 SSD Review and Benchmark Video

📧 SUBSCRIBE TO OUR NEWSLETTER 🔔
[contact-form-7]
🔒 Join Inner Circle


Get an alert every time something gets added to this specific article!


Want to follow specific category? 📧 Subscribe

This description contains links to Amazon. These links will take you to some of the products mentioned in today's content. As an Amazon Associate, I earn from qualifying purchases. Visit the NASCompares Deal Finder to find the best place to buy this device in your region, based on Service, Support and Reputation - Just Search for your NAS Drive in the Box Below

Need Advice on Data Storage from an Expert?

Finally, for free advice about your setup, just leave a message in the comments below here at NASCompares.com and we will get back to you. Need Help? Where possible (and where appropriate) please provide as much information about your requirements, as then I can arrange the best answer and solution to your needs. Do not worry about your e-mail address being required, it will NOT be used in a mailing list and will NOT be used in any way other than to respond to your enquiry. [contact-form-7] TRY CHAT Terms and Conditions
If you like this service, please consider supporting us. We use affiliate links on the blog allowing NAScompares information and advice service to be free of charge to you.Anything you purchase on the day you click on our links will generate a small commission which isused to run the website. Here is a link for Amazon and B&H.You can also get me a ☕ Ko-fi or old school Paypal. Thanks!To find out more about how to support this advice service check HEREIf you need to fix or configure a NAS, check Fiver Have you thought about helping others with your knowledge? Find Instructions Here  
 
Or support us by using our affiliate links on Amazon UK and Amazon US
    
 
Alternatively, why not ask me on the ASK NASCompares forum, by clicking the button below. This is a community hub that serves as a place that I can answer your question, chew the fat, share new release information and even get corrections posted. I will always get around to answering ALL queries, but as a one-man operation, I cannot promise speed! So by sharing your query in the ASK NASCompares section below, you can get a better range of solutions and suggestions, alongside my own.

☕ WE LOVE COFFEE ☕

 
❌
❌