From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001
From: Nicolas Vigier <boklm@mageia.org>
Date: Sun, 14 Apr 2013 13:46:12 +0000
Subject: Add zarb MLs html archives

---
 zarb-ml/mageia-dev/2012-April/013943.html | 125 ++++++++++++++++++++++++++++++
 1 file changed, 125 insertions(+)
 create mode 100644 zarb-ml/mageia-dev/2012-April/013943.html

(limited to 'zarb-ml/mageia-dev/2012-April/013943.html')

diff --git a/zarb-ml/mageia-dev/2012-April/013943.html b/zarb-ml/mageia-dev/2012-April/013943.html
new file mode 100644
index 000000000..7ba8564ae
--- /dev/null
+++ b/zarb-ml/mageia-dev/2012-April/013943.html
@@ -0,0 +1,125 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+   <TITLE> [Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091)
+   </TITLE>
+   <LINK REL="Index" HREF="index.html" >
+   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B3964%5D%20Fix%20partition%20numbering%20on%0A%20GPT%20%28mga%233091%29&In-Reply-To=%3C4F7EAAB1.4070709%40gmail.com%3E">
+   <META NAME="robots" CONTENT="index,nofollow">
+   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+   <LINK REL="Previous"  HREF="013940.html">
+   <LINK REL="Next"  HREF="013944.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+   <H1>[Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091)</H1>
+    <B>Guillaume Rousse</B> 
+    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B3964%5D%20Fix%20partition%20numbering%20on%0A%20GPT%20%28mga%233091%29&In-Reply-To=%3C4F7EAAB1.4070709%40gmail.com%3E"
+       TITLE="[Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091)">guillomovitch at gmail.com
+       </A><BR>
+    <I>Fri Apr  6 10:34:57 CEST 2012</I>
+    <P><UL>
+        <LI>Previous message: <A HREF="013940.html">[Mageia-dev] [soft-commits] [3964] Fix partition numbering on	GPT (mga#3091)
+</A></li>
+        <LI>Next message: <A HREF="013944.html">[Mageia-dev] [soft-commits] [3964] Fix partition numbering on	GPT (mga#3091)
+</A></li>
+         <LI> <B>Messages sorted by:</B> 
+              <a href="date.html#13943">[ date ]</a>
+              <a href="thread.html#13943">[ thread ]</a>
+              <a href="subject.html#13943">[ subject ]</a>
+              <a href="author.html#13943">[ author ]</a>
+         </LI>
+       </UL>
+    <HR>  
+<!--beginarticle-->
+<PRE>Le 06/04/2012 09:58, Thierry Vignaud a &#233;crit :
+&gt;<i> On 6 April 2012 00:00,&lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at mageia.org</A>&gt;  wrote:
+</I>&gt;&gt;<i> Fix partition numbering on GPT (mga#3091)
+</I>&gt;<i>
+</I>&gt;<i> (...)
+</I>&gt;<i>
+</I>&gt;&gt;<i> @@ -27,9 +28,20 @@
+</I>&gt;&gt;<i>               $p{start} = $5;
+</I>&gt;&gt;<i>               $p{size} = $7;
+</I>&gt;&gt;<i>           }
+</I>&gt;&gt;<i> -        \%p;
+</I>&gt;&gt;<i> +        $p{part_number} =&gt;  \%p;
+</I>&gt;&gt;<i>       } c::get_disk_partitions($hd-&gt;{file});
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> +    my @pt = map {
+</I>&gt;&gt;<i> +	my $part_number = $_;
+</I>&gt;&gt;<i> +	if ($parts{$part_number}) {
+</I>&gt;&gt;<i> +	    $parts{$part_number};
+</I>&gt;&gt;<i> +	} else {
+</I>&gt;&gt;<i> +	    my %p;
+</I>&gt;&gt;<i> +	    $p{part_number} = $part_number;
+</I>&gt;&gt;<i> +	    \%p;
+</I>&gt;<i>
+</I>&gt;<i> This is simpler&amp;  more readable:
+</I>&gt;<i>
+</I>&gt;<i> { part_number =&gt;  $part_number };
+</I>&gt;<i>
+</I>&gt;<i> anyway it would be maybe simpler go one of the way I attach.
+</I>&gt;<i> WDYT?
+</I>I like the 'simpler' adjective when I have to read this stuff at least 3 
+times to get an idea of what it happening... A simple comment wouldn't 
+hurt there.
+
+Anyway, allocating the list content in a single pass seems simpler to 
+understand for me. I'd rather use something as:
+
+# create an exhaustive list including %parts content if existing
+# for given partition number, a default structure otherwise
+my @pt = map {
+         $parts{$_} ? $parts{$_} : { part_number =&gt; $_ }
+     } 1..$nb_primary;
+
+More general remarks:
+
+What about using consistent variable names ? If you have a collection of 
+'something' stored in a hash, why should it suddenly became of 
+collection of 'st' when transfering them into an array ? Or using a 
+consistent format for variables storing numbers, rather than having both 
+nb_foo and bar_number ?
+
+And I don't underestand the interest of using an hash for storing 
+content with numerical indexes only. Especially if you have to convert 
+it to an array at the end...
+
+-- 
+BOFH excuse #79:
+
+Look, buddy:  Windows 3.1 IS A General Protection Fault.
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+    <HR>
+    <P><UL>
+        <!--threads-->
+	<LI>Previous message: <A HREF="013940.html">[Mageia-dev] [soft-commits] [3964] Fix partition numbering on	GPT (mga#3091)
+</A></li>
+	<LI>Next message: <A HREF="013944.html">[Mageia-dev] [soft-commits] [3964] Fix partition numbering on	GPT (mga#3091)
+</A></li>
+         <LI> <B>Messages sorted by:</B> 
+              <a href="date.html#13943">[ date ]</a>
+              <a href="thread.html#13943">[ thread ]</a>
+              <a href="subject.html#13943">[ subject ]</a>
+              <a href="author.html#13943">[ author ]</a>
+         </LI>
+       </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>
-- 
cgit v1.2.1