<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">

	<title>Xavablog</title>
	<id>tag:xavier.robin.name,2010-05-28:/en/feed</id>
	<link rel="self" href="http://xavier.robin.name/en/feed" />
	<link rel="alternate" href="http://xavier.robin.name/en/blog"/><!--http://xavier.robin.name/comments for all comments http://xavier.robin.name/comments/path for comments on a specific post, http://xavier.robin.name/tag/(tag) for posts with 'tag'-->
	<updated>2013-03-23T15:00:18.458029000+01:00</updated>
	<sy:updatePeriod>daily</sy:updatePeriod>
	<sy:updateFrequency>2</sy:updateFrequency>
	<link rel="license" type="application/rdf+xml" href="http://creativecommons.org/licenses/by-sa/3.0/rdf" />

	<icon>http://xavier.robin.name/en/img/favicon.ico</icon>

	<author>
		<name>Xavier Robin</name>
		<uri>http://xavier.robin.name/en/contact</uri>
	</author>
	

	<entry xml:lang="en" xml:base="http://xavier.robin.name/en/">
		<title type="html">Transcend class 10 vs. SanDisk Extreme Pro: a real-case scenario</title>
		
			<category term="photo" label="Photo" scheme="http://xavier.robin.name/en/tag/photo" />
		
		<link href="http://xavier.robin.name/en/blog/2012/12/28/transcend-class-10-vs-sandisk-extreme-pro-a-real-case-scenario"/>
		<id>tag:xavier.robin.name,2012-12-28:/blog/2012/12/28/transcend-class-10-vs-sandisk-extreme-pro-a-real-case-scenario</id>
		<published>2012-12-28T18:34:33+01:00</published>
		<updated>2012-12-28T18:34:33+01:00</updated>
		<content type="html">&lt;p&gt;I own a Pentax K-5 with Transcend Class 10 cards (2 x 16 GB + 1 x 64 GB) and I am mostly satisfied with it. However I have been wondering if a better SD card (such as a SanDisk Extreme Pro 95 MB/s) would make a noticeable difference. I mean, it does on the paper in controlled tests. But is it really any better inside the camera? I mean, isn't the limiting factor the camera itself? So I just bought a 8 GB Extreme Pro one and tested the time necessary to write 10 pictures to the card in the camera and display the photo on the screen. This is a rather typical scenario: you shoot and wait to see the result. I also tested a slower SanDisk Class 4 card just for the fun.&lt;/p&gt;

&lt;h2&gt;Test setup&lt;/h2&gt;
&lt;p&gt;The Pentax K-5 was fixed on a tripod, aiming at a white paper sheet and manually focused. The mode was set to M, 80 ISO, 1/80s and F/2.8. The “all-manual” settings should eliminate most variations coming from refocusing or different exposure times. The drive mode was set to continuous shooting (Lo), taking about 1.5 image/second.&lt;/p&gt;
&lt;p&gt;With each card, I repeat the following procedure 5 times. I put the card in the camera, turn it on, format the card, and press the trigger until 10 shots are taken. I then start the chronometer as soon as the last shot is taken (&lt;a href=&quot;https://play.google.com/store/apps/details?id=com.remaxer.utility.chronometer&quot;&gt;with the Android App Chronometer by REmaxer&lt;/a&gt;), wait until the last image appears on the screen and stop the chronometer as soon as possible. The resulting images (DNG + JPG) for each shot are about 25 MB, summing up to a total of 250 MB for each test. I should note that the cards were put in the camera in more or less random order, and changed each time (so I didn't do all the test for a card in a row).&lt;/p&gt;

&lt;p&gt;The following 5 cards were tested:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;SanDisk Extreme Pro 8GB Class 10 UHS-I&lt;/li&gt;
	&lt;li&gt;SanDisk Ultra 4GB Class 4&lt;/li&gt;
	&lt;li&gt;2 Transcend 16GB Class 10&lt;/li&gt;
	&lt;li&gt;Transcend 64GB Class 10&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;Results&lt;/h2&gt;

&lt;p class=&quot;imglegende&quot;&gt;&lt;img src=&quot;/files/blog/2012/12/28/Boxplots_edited_500.png&quot;&gt;&lt;span&gt;Time to display the last photo after the last of 10 shots (in seconds). The lower the better.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Unsurprisingly, the class 4 card is the worst. I had to wait more than 13 seconds after the last shot before I could see anything displayed on the screen. It is more than 10 seconds more than with the best cards. Clearly not a good choice.&lt;/p&gt;

&lt;p&gt;Next thing, and still quite unsurprising, the SanDisk Extreme Pro was the fastest card, with an average of 3 seconds between the last shot and its display on screen. This is slightly better than the Transcend Class 10 cards.&lt;/p&gt;

&lt;p&gt;The real surprise came from the Transcend cards. First, the 64 GB was significantly slower than the 16 GB ones, with about 7 seconds required to display the last photo versus only 3.5 &amp;ndash; 4. Probably the controller isn't able to cope with all this space to allocate? Second, the two 16 GB cards performed fairly differently, one being noticeably slower than the other. More precisely, it had a few “outlier” points where it would take up to 5 seconds to display the last shot. I repeated the test several more times and came to the same conclusion: only one of the card displayed this feature. All other cards had much more stable results.&lt;/p&gt;

&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;So, are the more expensive cards really better?&lt;/p&gt;
&lt;p&gt;Well, the first thing we can conclude is that cheap class 4 cards are clearly slower. At least the SanDisk Ultra. Since Transcend class 10 cards are about the same price but much, much faster (even in the worst-case outlier scenario), the latter should be prefered.&lt;/p&gt;

&lt;p&gt;Then, is it worth buying a SanDisk ExtremePro that is 2.5&amp;ndash;3 times more expensive (at the same capacity)? Well, it depends if the 0.5&amp;ndash;1 second gain really means something to you. It may be significant on the field when the action is taking place &lt;em&gt;right now&lt;/em&gt; and you quickly need to check your photos are OK before continuing.&lt;/p&gt;

&lt;p&gt;Several questions remain.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Is the bad Transcend 16 GB an exception or is it a frequent issue? Is it because it's already more than 1.5 years old (and used pretty intensively)?&lt;/li&gt;
	&lt;li&gt;Would I have different results if I tested a second Extreme Pro? And what about 16 GB ones?&lt;/li&gt;
	&lt;li&gt;If I had a 8 GB Transcend, would it be faster than the 16 GB ones (and thus could compete with the Extreme Pro)?&lt;/li&gt;
	&lt;li&gt;I bought the 64 GB card more than a year ago. Did Transcend improve their controller since?&lt;/li&gt;
	&lt;li&gt;How would a 64 GB Extreme Pro perform? Would it have the same controller issues than the Transcend?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As you can see, my testings raise more questions than they solve. For now, I will keep the Extreme Pro in my K-5, with spare Transcends in the bag for when the 8 GB are full (with &amp;gt; 150 photos it shouldn't happen that often). I think this kind of setup is quite efficient: a small, fast card for everyday photos, and big, cheap ones available when more space is needed, at the cost of slightly slower shooting.&lt;/p&gt;</content>
		</entry>

	<entry xml:lang="en" xml:base="http://xavier.robin.name/en/">
		<title type="html">Unifying a new Logitech mouse on Ubuntu 12.10</title>
		
			<category term="ubuntu" label="Ubuntu" scheme="http://xavier.robin.name/en/tag/ubuntu" />
		
		<link href="http://xavier.robin.name/en/blog/2012/12/28/unifying-a-new-logitech-mouse-on-ubuntu-12.10"/>
		<id>tag:xavier.robin.name,2012-12-28:/blog/2012/12/28/unifying-a-new-logitech-mouse-on-ubuntu-12.10</id>
		<published>2012-12-28T14:06:16+01:00</published>
		<updated>2012-12-28T18:36:42+01:00</updated>
		<content type="html">&lt;p&gt;I just received my new Logitech Performance MX mouse. It is a wonderful mouse, one of the rare being big enough to fit comfortably in my hand. Unfortunately, it comes with a &lt;em&gt;Unifying&lt;/em&gt; receiver that is not well supported on Linux. Because I already have an other Unifying Logitech mouse (a small portable M325), I wanted both to be associated with the same receiver (don't want to switch the receiver each time I change my mouse).&lt;/p&gt;
&lt;p&gt;Rather than booting on Windows to pair both mouses, I followed &lt;a href=&quot;http://tycho.ws/blog/2011/12/logitech-unifying-receiver&quot;&gt;Tycho Andersen's instructions to pair new devices in Linux&lt;/a&gt;. I saved the code in a file, compiled it, found that the receiver was on hidraw0 (I have a Logitech Unifying Device. Wireless PID:400a on hidraw1, but it is really the device named &lt;i&gt;Logitech USB Receiver&lt;/i&gt; that you must select), turned off the MX mouse, ran the program, quickly turned the mouse on&amp;hellip; and it works!&lt;/p&gt;
&lt;p&gt;The next step is to &lt;a href=&quot;http://forums.logitech.com/t5/Mice-and-Pointing-Devices/Guide-for-setup-Performance-MX-mouse-on-Linux-with-KDE/td-p/517167&quot;&gt;setup the additional buttons&lt;/a&gt; (and there are quite a few of them).&lt;/p&gt;</content>
		</entry>

	<entry xml:lang="en" xml:base="http://xavier.robin.name/en/">
		<title type="html">pROC 1.5.3 released</title>
		
			<category term="pROC" label="pROC" scheme="http://xavier.robin.name/en/tag/pROC" />
		
		<link href="http://xavier.robin.name/en/blog/2012/08/31/proc-1.5.3-released"/>
		<id>tag:xavier.robin.name,2012-08-31:/blog/2012/08/31/proc-1.5.3-released</id>
		<published>2012-08-31T11:48:50+02:00</published>
		<updated>2012-08-31T11:48:50+02:00</updated>
		<content type="html">&lt;p&gt;I just released a minor revision of pROC, version 1.5.3.&lt;/p&gt;

&lt;p&gt;This version fixes the following bugs:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;AUC specification was lost when &lt;code&gt;roc.test&lt;/code&gt;, &lt;code&gt;cov&lt;/code&gt; or &lt;code&gt;var&lt;/code&gt; was passed an &lt;code&gt;auc&lt;/code&gt;' object.&lt;/li&gt;
	&lt;li&gt;Incorrect computation of &quot;accuracy&quot; in &lt;code&gt;coords&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As usual, you can find the new version &lt;a href=&quot;http://web.expasy.org/pROC/&quot;&gt;on ExPASy&lt;/a&gt; and  &lt;a href=&quot;http://cran.r-project.org/web/packages/pROC&quot;&gt;on the CRAN&lt;/a&gt; (please allow up to a few days before it is available for Windows). To update, type &lt;code&gt;update.packages()&lt;/code&gt; or &lt;code&gt;install.packages(&quot;pROC&quot;)&lt;/code&gt; if you want to update pROC only.&lt;/p&gt; 

</content>
		</entry>

	<entry xml:lang="en" xml:base="http://xavier.robin.name/en/">
		<title type="html">Convert Pentax K-5 AVI video to OGG for wikipedia in Ubuntu Precise Pangolin… with no clicks</title>
		
			<category term="photo" label="Photo" scheme="http://xavier.robin.name/en/tag/photo" />
		
			<category term="ubuntu" label="Ubuntu" scheme="http://xavier.robin.name/en/tag/ubuntu" />
		
		<link href="http://xavier.robin.name/en/blog/2012/08/01/convert-pentax-k-5-avi-video-to-ogg-for-wikipedia-in-ubuntu-precise-pangolin-with-no-clicks"/>
		<id>tag:xavier.robin.name,2012-08-01:/blog/2012/08/01/convert-pentax-k-5-avi-video-to-ogg-for-wikipedia-in-ubuntu-precise-pangolin-with-no-clicks</id>
		<published>2012-08-01T16:34:22+02:00</published>
		<updated>2012-08-01T16:34:22+02:00</updated>
		<content type="html">&lt;p&gt;I captured a video with my Pentax K-5, and I wanted to send it to Wikipedia (in fact, to Wikimedia Commons) where OGG files are required. The conversion can be done very easily under Linux with avconv (previously known as ffmpeg):&lt;/p&gt;

&lt;pre&gt;avconv -i IMGP7212.AVI  -acodec libvorbis -ab 256k -ac 2  -vcodec libtheora -qscale 10 IMGP7212.ogg&lt;/pre&gt;

&lt;p&gt;However, the sound is poor because there are &lt;em&gt;clicks&lt;/em&gt; (or thumps or cracks or whatever you want) every second or so. Apparently it is &lt;a href=&quot;http://www.pentaxforums.com/forums/pentax-k-5/131842-thump-sound-video.html&quot;&gt;frequent issue&lt;/a&gt; that is hardware or software dependent. I get a good sound if I play the video in VLC, apparently the PCM audio is correctly handled. As VLC can convert media files, I used it to get a video with a decent audio.&lt;/p&gt;

&lt;p&gt;Let's go through.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;The first step is to open VLC and select the Media &gt; “Convert / Save” menu. Select your file and click on the “Convert / Save” button.&lt;/li&gt;
	&lt;li&gt;Select the destination file.&lt;/li&gt;
	&lt;li&gt;In the Profile setting, choose “Video – Theora + Flac (OGG)”. You need vorbis audio encoding if you want the sound track to play in Firefox (and probably others), but on my computers the vorbis encoder is broken. We'll care about that later.&lt;/li&gt;
	&lt;li&gt;Click on the “Edit selected profile” button just on the right of the profile.&lt;/li&gt;
	&lt;li&gt;In the Video codec tab, make sure the Video checkbox is checked, “Keep original video track” is unchecked and Theora is selected as codec. Select a good bitrate (you can go up to 5000 or 10000 kb/s if you want a good quality and your video isn't too long. It'll generate a big video file, but not at all as big as the original AVI anyway, and Mediawiki will resize the video itself when it sends it to the web browsers.).&lt;/li&gt;
	&lt;li&gt;Select Frame Rate and Width according to the video options you have set in your K-5. Leave the Scale and Height fields blank (or 0)&lt;/li&gt;
	&lt;li&gt;In the Audio codec tab, make sure the Audio checkbox is checked, “Keep original audio track” is unchecked and the Flac codec is selected. I believe Bitrate is ignored. Channels is 1 but we will switch to 2 later anyway, so put what you want here. Sample Rate is 44100.&lt;/li&gt;
	&lt;li&gt;Click Save.&lt;/li&gt;
	&lt;li&gt;Click Start.&lt;/li&gt;
	&lt;li&gt;Wait.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When the conversion is done in VLC, we switch to a command line to re-encode the audio track in vorbis. We set the vorbis codec (&lt;code&gt;-acodec libvorbis&lt;/code&gt;), with a good bit rate (&lt;code&gt;-acodec libvorbis&lt;/code&gt;) and 2 channels (&lt;code&gt;-ac 2&lt;/code&gt;, apparently avconv cannot deal with only 1). We keep the video track intact (&lt;code&gt;-vcodec copy&lt;/code&gt;).&lt;/p&gt;

&lt;pre&gt;avconv -i IMGP2712.ogg -acodec libvorbis -ab 256k -ac 2 -vcodec copy IMGP2712_vorbis.ogg&lt;/pre&gt;

&lt;p&gt;And that's it! You can now upload your video that doesn't click.&lt;/p&gt;</content>
		</entry>

	<entry xml:lang="en" xml:base="http://xavier.robin.name/en/">
		<title type="html">Gnome vs. Unity</title>
		
			<category term="ubuntu" label="Ubuntu" scheme="http://xavier.robin.name/en/tag/ubuntu" />
		
		<link href="http://xavier.robin.name/en/blog/2012/07/31/gnome-vs.-unity"/>
		<id>tag:xavier.robin.name,2012-07-31:/blog/2012/07/31/gnome-vs.-unity</id>
		<published>2012-07-31T20:59:59+02:00</published>
		<updated>2012-07-31T20:59:59+02:00</updated>
		<content type="html">&lt;p&gt;Until now I was using to the old, stable Lucid and Gnome 2 on all my computers. But I recently &lt;a href=&quot;/fr/blog/2012/07/28/installation-of-ubuntu-linux-12.04-precise-pangolin-on-a-dell-latitude-e6530&quot;&gt;installed Precise on my new Dell Latitude E6530 laptop&lt;/a&gt;. What a shock! How could so much things change in just two years?&lt;/p&gt;

&lt;p&gt;My first impressions with Unity are quite mixed. It is unsettling: no task bar, this dock &lt;em&gt;à la&lt;/em&gt; Mac, these ugly dark colors…&lt;/p&gt;

&lt;p&gt;Clearly it is a good move, I'm already getting used to it. I like the optimization of the vertical space (that gets so scarce and precious with wide screens) with the dock to the side (I had already done so several years ago with Gnome 2's tasks bar on my laptop, only on the right). I love the dash, even though some programs are still missing and &lt;a href=&quot;http://askubuntu.com/questions/67753/how-do-i-add-an-application-to-the-dash&quot;&gt;it is not obvious how to add a command there&lt;/a&gt;. It is wonderful to launch applications without the mouse.&lt;/p&gt;

&lt;p&gt;On the dark side, I don't like the lack of customization (well, in fact it is possible but you have to do a lot of research over the Internet and edit a lot of text files), and I still really miss the task bar (it is tedious to switch between a lot of windows with the launcher). More virtual desktops won't solve the problem, and in addition they are less accessible than they used to be (you need two clicks rather than one, and I couldn't find how to drag and drop windows easily to another desktop, you need to right-click on the title bar and select an action… awfully tedious). The merge of the panel with menu and title bars makes is a bit clumsy and the reaction is quite unpredictable, at least in the beginning. But I think Unity's way is globally more efficient, once you are used to it (and it doesn't get that long).&lt;/p&gt;

&lt;p&gt;Out of pure curiosity, I installed and tested &lt;a href=&quot;http://www.filiwiese.com/installing-gnome-on-ubuntu-12-04-precise-pangolin/&quot;&gt;Gnome 3&lt;/a&gt;. Maybe it could be even better? Its development went quite the same way than Unity: the dash, the launcher (hidden by default), the panel. The activities is a wonderful thing, I wish it would be the same in Unity. But I won't stay with it, next login will be with Unity. Here is why.&lt;p&gt;

&lt;ol&gt;
	&lt;li&gt;Maybe the most striking difference is the use of vertical space. In Unity the title and menu bars are merged with the panel. In Gnome 3 all this stuff takes 55 more pixels, that is 5% of my screen!It could be OK with a large desktop screen, but on a laptop it is definitely an unacceptable waste.&lt;/li&gt;
	&lt;li&gt;Shell extensions sound good, but the website is so slow! Why do we need a remote control over the desktop? I'm suspecting that there are potential security issues too.&lt;/li&gt;
	&lt;li&gt;I don't like the lack of a task bar. I already said that. But the hidden dock makes it even worse. To switch between windows you either need to open the activities and select your window, or to use &lt;kbd&gt;Alt&lt;/kbd&gt; + &lt;kbd&gt;Tab&lt;/kbd&gt;. It is terminally impossible to quickly switch from one window to another when you have more than two windows open on your desktop.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It's a pity, because the activities window is absolutely amazing!&lt;/p&gt;</content>
		</entry>

	<entry xml:lang="en" xml:base="http://xavier.robin.name/en/">
		<title type="html">Installation of Ubuntu Linux (12.04 Precise Pangolin) on a Dell Latitude E6530</title>
		
			<category term="ubuntu" label="Ubuntu" scheme="http://xavier.robin.name/en/tag/ubuntu" />
		
		<link href="http://xavier.robin.name/en/blog/2012/07/28/installation-of-ubuntu-linux-12.04-precise-pangolin-on-a-dell-latitude-e6530"/>
		<id>tag:xavier.robin.name,2012-07-28:/blog/2012/07/28/installation-of-ubuntu-linux-12.04-precise-pangolin-on-a-dell-latitude-e6530</id>
		<published>2012-07-28T21:16:06+02:00</published>
		<updated>2012-12-01T13:48:11+01:00</updated>
		<content type="html">&lt;p&gt;I received a Dell Latitude E6530. It is a beautiful and powerful 15.6' laptop. I took 8GB of RAM, 750GB hard drive, the Intel Core i7-3720QM CPU @ 2.60GHz and an nVidia NVS 5200M. The matte (anti-glare) screen (I took the full HD version (1920x1080)) is really nice and well contrasted with vivid colors and deep blacks for a laptop. Pixels are small, but not that small (140dpi), and you can fit a lot in such a big screen.&lt;/p&gt;

&lt;p class=&quot;illustration&quot;&gt;&lt;a href=&quot;/files/blog/2012/07/28/laptop_merged.jpg&quot; title=&quot;Voir la photo du portable en gros plan&quot;&gt;&lt;img src=&quot;/files/blog/2012/07/28/laptop_merged_small.jpg&quot; alt=&quot;Photo du routeur&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The keyboard has a numeric pad. Not sure it will be really useful (I rarely use it). The effect is to shift the useful keys a bit to the left. Not so comfortable, but it is not too bad and I am already getting used to it.&lt;/p&gt;

&lt;p&gt;As expected from Dell, the laptop is well built and looks robust. It is fast and rather silent, though a bit expensive. It tends to heat a bit, especially on the left side with the fan. It may not be optimal for those who intend to work with it on their lap&amp;hellip;&lt;/p&gt;

&lt;p&gt;The laptop comes with Windows 7 pre-installed. I installed Ubuntu Precise Pangolin in dual boot, from a USB stick. The process was globally successful, even though a few things still doesn't work. Let's go through what I discovered during this process.&lt;/p&gt;


&lt;h2&gt;Disclaimer&lt;/h2&gt;
&lt;p&gt;This post is not a tutorial. It is only a set of notes, aimed at people who know how to use and install Linux.&lt;/p&gt;

&lt;p&gt;You perform the following operations at your own risk. I decline any responsibility for all damage, loss of data or anything else (including, but not limited to, the burning of your computer, house or town, the death of a cat, yourself or any one else, the destruction of the Earth or the universe, etc.) that could result directly, indirectly, or in any other way, from performing the following operations. You are warned!&lt;/p&gt;


&lt;h2&gt;Disabling Optimus&lt;/h2&gt;
&lt;p&gt;Optimus is a wonderful idea&amp;hellip; on the paper! Very shortly: some Intel Cores come with an integrated graphic chip (in this case it is an Intel HD Graphics 4000). The additional nVidia card comes with a system called &lt;em&gt;Optimus&lt;/em&gt; which will enable the nVidia card only when the most demanding applications are running. The rest of the time, the nVidia card is disabled to save power. The Intel chip is sufficient for most applications, and certainly for all compiz effects.&lt;/p&gt;

&lt;p&gt;But unfortunately nVidia does not provide a Linux driver for Optimus. &lt;del datetime=&quot;2012-12-01&quot;&gt;It isn't clear what actually happens. Is it the Intel or the nVidia card that is enabled? I guess the former is true, but I am quite unsure&lt;/del&gt;. To make use of optimus, you need to install &lt;a href=&quot;http://bumblebee-project.org/&quot;&gt;Bumblebee&lt;/a&gt; to enable/disable it on demand. Basically it will run on the Intel chip and start the nVidia card only when you run the &lt;code&gt;optirun&lt;/code&gt; command.&lt;/p&gt;

&lt;p&gt;Until now it all looks fine. The only problem is that this setup (with or without bumblebee) causes random kernel freezes. It even happened me once during the install process (luckily not during partitioning, but I guess that could happen and wipe your hard drive). Apparently it is a &lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/993187&quot;&gt;known bug&lt;/a&gt; of the video driver. Until a fix is available, the solution I found is dramatic: disable optimus altogether and use only the &lt;ins datetime=&quot;2012-12-01&quot;&gt;nVidia card&lt;/ins&gt; &lt;del datetime=&quot;2012-12-01&quot;&gt;Ivybrirdge graphics&lt;/del&gt;. To avoid potentially destructive crashes during the install process (what if it occurs during the partitionning?) I recommend disabling optimus as the very first step. You can always enable it later and run your own tests with a later kernel that may have fixed this issue.&lt;/p&gt;

&lt;p class=&quot;step&quot;&gt;So before you start the install, during the boot, press F12 to get the boot menu. Choose BIOS Setup, then Video &amp;gt; Optimus, uncheck the box and exit. Plug the USB stick and power on. It is probably a safe idea to install the proprietary drivers (&lt;em&gt;nvidia-current&lt;/em&gt; package), unless you want to remain absolutely free.&lt;/p&gt; 

&lt;p&gt;&lt;ins datetime=&quot;2012-12-01&quot;&gt;There was some confusion previously regarding the effect of disabling Optimus. In some older BIOS revisions (probably until A04 or A05) it would disable the Nvidia card and let only the Intel Graphics run. Now (BIOS A07), the Nvidia card is enabled when Optimus is disabled. &lt;em&gt;Nvidia-current&lt;/em&gt; drivers are working. This behavior may change with a future BIOS revision, I have no idea.&lt;/ins&gt;&lt;/p&gt;


&lt;h2&gt;Booting on the USB stick&lt;/h2&gt;

&lt;p&gt;The E6530 won't boot from a plugged USB stick automatically. I selected the boot device manually.&lt;/p&gt;
&lt;p class=&quot;step&quot;&gt;Plug the USB stick. Power on. Press F12 to get the boot menu. The USB Storage Device was not working so I selected the UEFI Generic Flash Disk.&lt;/p&gt; 


&lt;h2&gt;Partitionning&lt;/h2&gt;

&lt;p&gt;The E6530 comes with 3 partitions on the hard drive: &lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;39MiB of FAT16 labelled &quot;DellUtility&quot;&lt;/li&gt;
	&lt;li&gt;752MiB of NTFS labelled &quot;RECOVERY&quot;&lt;/li&gt;
	&lt;li&gt;The remaining is formatted in NTFS and contains Windows 7 (labelled &quot;OS&quot;)&lt;/li&gt;
&lt;/ol&gt;

&lt;p class=&quot;step&quot;&gt;First step: to shrink the Windows partition (I kept 50GiB). It is normally recommended to perform that operation from Windows directly. However I found that I could free only a few GiB, so I did it from gparted in the live Linux.&lt;/p&gt;

&lt;p&gt;Then I secured a small partition for the Linux system, a bit of swap (as much as the RAM plus a bit for safety), and all the rest as a shared partition so the data is available both in Linux and Windows.&lt;/p&gt;

&lt;p class=&quot;step&quot;&gt;The next step was to create an extended partition (you cannot have that many partitions without an extended partition). I then created the following 3 partitions:&lt;/p&gt;
&lt;ol class=&quot;step&quot;&gt;
	&lt;li&gt;I secured 25GiB ext4 for the system (sda5, mounted on &quot;/&quot;). In practice it is more than enough for the system and some files in your home directory (we will put the big data files elsewhere).&lt;/li&gt;
	&lt;li&gt;I created 12GiB of swap on sda6. I have 8GiB of RAM, and as much swap is required if you want to hibernate. There are 4 additional GiB to hibernate under high memory load. Probably useless, but also harmless with a 750GB disk.&lt;/li&gt;
	&lt;li&gt;All the rest (610GiB, sda7) is formatted as NTFS and mounted on /mnt/data.&lt;/li&gt;
	&lt;li&gt;I put the bootloader on the partition mounted on / (here sda5). Anyway it will still boot through the Windows bootloader (we will configure that later).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Do not try to use your big data partition directly for /home. I tried it, and it was a complete failure! The problem is that NTFS doesn't have file permissions. So either all or none of the files are executable. They all have the same owner/group. We will change the default permissions later, but it is not enough and some applications (for instance PulseAudio and Dropbox) won't work correctly.


&lt;h2&gt;First boot&lt;/h2&gt;

&lt;p&gt;I expected to get a Grub menu where I could choose my system. But for some unknown reason I booted in Windows. After some time, I figured out I had to forget about Grub and configure Windows' bootloader instead.&lt;/p&gt;

&lt;p class=&quot;step&quot;&gt;
I downloaded and installed &lt;a href=&quot;http://neosmart.net/EasyBCD/&quot;&gt;EasyBCD&lt;/a&gt; (non-commercial) and set it up &lt;a href=&quot;http://neosmart.net/wiki/display/EBCD/Windows+7&quot;&gt;as instructed&lt;/a&gt; (see also &lt;a href=&quot;http://www.linuxbsdos.com/2012/05/17/how-to-dual-boot-ubuntu-12-04-and-windows-7/2/&quot; title=&quot;More detailed procedure to setup EasyBCD&quot;&gt;this more detailed procedure&lt;/a&gt;).&lt;/p&gt;


&lt;h2&gt;boot-restore&lt;/h2&gt;
&lt;p&gt;At this point, I can boot on linux, but grub was broken and showed a (rather unfriendly) command line.&lt;/p&gt;

&lt;p class=&quot;step&quot;&gt;After a good old Ctrl+Alt+Del, I read &lt;a href=&quot;https://help.ubuntu.com/community/Boot-Repair&quot;&gt;boot-restore&lt;/a&gt;, rebooted from the USB stick, did as instructed, checked a few thinks that made sense on the moment (sorry, didn't note what exactly, all I remember is I didn't restore MBR).&lt;/p&gt;

&lt;p&gt;Reboot and select Linux.&lt;/p&gt;
&lt;p&gt;Welcome in Precise Pangolin!&lt;/p&gt;


&lt;h2&gt;Hide GRUB&lt;/h2&gt;
&lt;p&gt;As we make our choice of OS with Windows bootloader, it is useless to make it again with grub.&lt;/p&gt;

&lt;p class=&quot;step&quot;&gt; So I edited /etc/default/grub and added the following line:&lt;/p&gt;
&lt;pre class=&quot;step&quot;&gt;GRUB_DISABLE_OS_PROBER=true&lt;/pre&gt;
&lt;p class=&quot;step&quot;&gt;To apply: &lt;code&gt;sudo update-grub&lt;/code&gt;.&lt;/p&gt;


&lt;h2&gt;Change the default permissions for /mnt/data&lt;/h2&gt;

&lt;p&gt;By default the NTFS drives are mounted with files owned by root:plugdev (user:group) with write permissions to the group. As the first user is a member of the plugdev group he can write on it. For some reason (that turned out totally useless) I wanted to tweak that to own the files. You can probably disregard the next step.&lt;/p&gt;

&lt;p class=&quot;step&quot;&gt;Open /etc/fstab with root permissions. Find the line containing /mnt/data. Locate the &quot;defaults,umask=007,gid=46&quot; block.I replaced it with &quot;defaults,fmask=133,dmask=022,gid=1000,uid=1000&quot;. Make sure not to include any space.&lt;/p&gt;

&lt;p&gt;What it means:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;fmask=133 is the permission for all files. The syntax is quirk and the number meaning is reversed. Basically you have rw for user, and r for group and others. You can't change individual files.&lt;/li&gt;
	&lt;li&gt;dmask=022 is for directories. They are executable by everyone.&lt;/li&gt;
	&lt;li&gt;gid=1000,uid=1000 is your group and user ids. You can find them in /etc/passwd, just after your user name.&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;Create symbolic links&lt;/h2&gt;

&lt;p&gt;Now I have a big partition where I can write all my data. But I don't want to go to /mnt/data each time. So I created symbolic links that pointed the most important directories in my home to /mnt/data.&lt;/p&gt;

&lt;pre class=&quot;step&quot;&gt;mv Desktop /mnt/data &amp;&amp; ln -s /mnt/data/Desktop .
mv Desktop /mnt/data &amp;&amp; ln -s /mnt/data/Desktop .
mv Documents /mnt/data &amp;&amp; ln -s /mnt/data/Documents .
mv Images /mnt/data &amp;&amp; ln -s /mnt/data/Images .
mv Music /mnt/data &amp;&amp; ln -s /mnt/data/Music .
mv Downloads /mnt/data &amp;&amp; ln -s /mnt/data/Downloads .
mv Videos /mnt/data &amp;&amp; ln -s /mnt/data/Videos .&lt;/pre&gt;

&lt;p&gt;&amp;hellip; and so on. Just repeat this procedure each time a folder grows a bit. You can do the same kind of things in Windows, as explained by &lt;a href=&quot;http://lifehacker.com/5403100/dual+boot-windows-7-and-ubuntu-in-perfect-harmony&quot; title=&quot;Lifehacker: Dual-Boot Windows 7 and Ubuntu in Perfect Harmony&quot;&gt;Lifehacker&lt;/a&gt;.&lt;/p&gt;


&lt;h2&gt;Enabling hibernate mode&lt;/h2&gt;

&lt;p&gt;I followed &lt;a href=&quot;http://askubuntu.com/questions/94754/how-to-enable-hibernation-in-12-04&quot;&gt;Community♦'s instructions on Ask Ubuntu&lt;/a&gt;.&lt;/p&gt;


&lt;h2&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Overall this laptop works really fine. Dell clearly made a laptop that is compatible with Linux. Most issues I described here are in fact dual-boot issues, not Linux issues.&lt;/p&gt;


&lt;p&gt;What works out of the box:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The webcam&lt;/li&gt;
	&lt;li&gt;The sound (both in and out, built-in or through the combo jack)&lt;/li&gt;
	&lt;li&gt;The sound buttons (mute, sound up and down&amp;hellip; but surprisingly they do not operate from the login screen)&lt;/li&gt;
	&lt;li&gt;The external display with VGA plug (either duplicate or extended screen modes).&lt;/li&gt;
	&lt;li&gt;The WiFi and bluetooth&lt;/li&gt;
	&lt;li&gt;The SD slot&lt;/li&gt;
	&lt;li&gt;USB 3.0 (100MB/s large files write to a WD My Book Essential, reaching 120MB/s on sequential writes (whole volume with &lt;code&gt;dd&lt;/code&gt; command), probably limited by the disks themselves).&lt;/li&gt;
	&lt;li&gt;Pretty much everything else&amp;hellip;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;What can be fixed:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Hibernation mode (see above)&lt;/li&gt;
	&lt;li&gt;Kernel freezes (disable Optimus, see above)&lt;/li&gt;
	&lt;li&gt;The touchpad is detected as a generic mouse by default. It works in degraded mode, you can move the cursor and click, but there is no scrolling (some other features are probably missing too). It is a &lt;a href=&quot;https://bugzilla.kernel.org/show_bug.cgi?id=45201&quot;&gt;known bug&lt;/a&gt; which should be fixed in a future kernel. Meanwhile, you can follow &lt;a href=&quot;http://resalxh.wordpress.com/2012/09/18/ubuntu-12-04-lts-x64-the-next-step-getting-touchpad-working/&quot;&gt;resalxh's instructions&lt;/a&gt; to apply a patch and have it work (thanks &lt;a href=&quot;#comment544&quot;&gt;Flix&lt;/a&gt; for the pointer).&lt;/li&gt;
	&lt;li&gt;The backlight is enabled for only 5 seconds, which makes it mostly useless. You can change its intensity with the &lt;kbd&gt;Fn&lt;/kbd&gt; key, but not its duration. It can't be changed in the BIOS either. You have to start in Windows, go to the control panel and change the backlight settings there. I selected 1 minute illumination, which is enough this time (thanks &lt;a href=&quot;#comment544&quot;&gt;Flix&lt;/a&gt; for the pointer). I don't know how this could be done from Linux, but it will do well enough like this.&lt;/li&gt;
	&lt;li&gt;HDMI external display requires X to run the non-free nvidia driver, so Optimus must be disabled. Install and run nvidia-settings to setup the monitor.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;What I couldn't fix yet (by order of importance):&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Intel video driver freezes the kernel.&lt;/li&gt;
	&lt;li&gt;&lt;del datetime=&quot;2012-09-08&quot;&gt;External monitors (plugged on the VGA slot) get the desktop shifted (by the width of the launcher, so no launcher and a small black band at the right).&lt;/del&gt; &lt;ins datetime=&quot;2012-09-08&quot;&gt;In fact this was a monitor configuration issue, which must be adjusted (possibly with an auto-adjust setting).&lt;/ins datetime=&quot;2012-09-08&quot;&gt;&lt;/li&gt;
	&lt;li&gt;&lt;del datetime=&quot;2012-09-08&quot;&gt;Suspend by closing the lid. Works but doesn't wake up properly, I have a black screen with the cursor, I need to switch to a console to restart the X server.&lt;/del&gt; &lt;ins  datetime=&quot;2012-09-08&quot;&gt;Well, somehow this seems to work now, I have no idea why.&lt;/ins&gt;&lt;/li&gt;
	&lt;li&gt;The battery charge indicator significantly underestimates the time remaining to complete the recharge. Discharge times are rather correct. Please note that I didn't check if it was better in Windows.&lt;/li&gt;
	&lt;li&gt;Alt+SysRq keys work only from external (USB) keyboards.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;What wasn't tested:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;eSATA port&lt;/li&gt;
	&lt;li&gt;Docking stations&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;strong&gt;Edit on 2012-08-02&lt;/strong&gt;: apparently once optimus is disabled only the Intel Ivybridge graphics is active, not the nVidia. At least I failed having the nvidia driver operating properly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit on 2012-10-13&lt;/strong&gt;: added the &lt;a href=&quot;http://resalxh.wordpress.com/2012/09/18/ubuntu-12-04-lts-x64-the-next-step-getting-touchpad-working/&quot;&gt;patch&lt;/a&gt; for the touchpad, and it is possible to change the backlight time. Thanks &lt;a href=&quot;#comment544&quot;&gt;Flix&lt;/a&gt; for the pointers.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit on 2012-12-01&lt;/strong&gt;: HDMI + USB 3.0 were tested. HDMI requires Optimus disabled + Nvidia non-free drivers. Install and start nvidia-settings to configure. Also Nvidia card is active when Optimus is disabled in the latest BIOS revision.&lt;/p&gt;</content>
		</entry>

	<entry xml:lang="en" xml:base="http://xavier.robin.name/en/">
		<title type="html">pROC 1.5.1 released</title>
		
			<category term="pROC" label="pROC" scheme="http://xavier.robin.name/en/tag/pROC" />
		
		<link href="http://xavier.robin.name/en/blog/2012/03/09/proc-1.5.1-released"/>
		<id>tag:xavier.robin.name,2012-03-09:/blog/2012/03/09/proc-1.5.1-released</id>
		<published>2012-03-09T11:03:57+01:00</published>
		<updated>2012-03-09T11:03:57+01:00</updated>
		<content type="html">&lt;p&gt;I sent a new minor version of pROC (1.5.1) to the CRAN.&lt;/p&gt;

&lt;p&gt;This version fixes a bug that would make slow down the loading of pROC on computers with many packages. Thanks to Prof Brian Ripley and Glenn Lawyer for the report.&lt;/p&gt;

&lt;p&gt;The new version is available &lt;a href=&quot;http://web.expasy.org/pROC/&quot;&gt;on ExPASy&lt;/a&gt; and  &lt;a href=&quot;http://cran.r-project.org/web/packages/pROC&quot;&gt;on the CRAN&lt;/a&gt;. To update, type &lt;code&gt;update.packages()&lt;/code&gt; or &lt;code&gt;install.packages(&quot;pROC&quot;)&lt;/code&gt; if you want to update pROC only.&lt;/p&gt; 

</content>
		</entry>

	<entry xml:lang="fr" xml:base="http://xavier.robin.name/en/">
		<title type="html">La vie après le pétrole, 7 ans après</title>
		
			<category term="politics" label="Politics" scheme="http://xavier.robin.name/en/tag/politics" />
		
		<link href="http://xavier.robin.name/en/blog/2012/01/28/la-vie-apres-le-petrole-7-ans-apres"/>
		<id>tag:xavier.robin.name,2012-01-28:/blog/2012/01/28/la-vie-apres-le-petrole-7-ans-apres</id>
		<published>2012-01-28T18:43:43+01:00</published>
		<updated>2012-01-28T18:43:43+01:00</updated>
		<content type="html">&lt;p&gt;Il y a près de 7 ans, j'écrivais un article intitulé &lt;a href=&quot;/blog/2005/11/10/la-vie-après-le-pétrole&quot;&gt;La vie après le pétrole&lt;/a&gt;, après la lecture d'un livre du même intitulé.&lt;/p&gt;

&lt;p&gt;7 ans après, que s'est il passé ? Eh bien depuis 2005, la production de pétrole a stagné&amp;nbsp;! C'est en tous cas ce qu'affirme &lt;a href=&quot;http://www.nature.com/nature/journal/v481/n7382/full/481433a.html&quot;&gt;un commentaire dans Nature&lt;/a&gt;, &lt;a href=&quot;http://www.washington.edu/news/articles/commentary-in-nature-can-economy-bear-what-oil-prices-have-in-store&quot; hreflang=&quot;en&quot;&gt;repris par Sandra Hines&lt;/a&gt;. Chiffres à l'appui, on découvre le plateau, la tôle ondulée, les prix qui explosent. &lt;a href=&quot;http://www.lexpress.ch/fr/suisse/petroplus-a-demande-sa-mise-en-faillite-594-377470&quot;&gt;Faillite de Petroplus&lt;/a&gt;, &lt;a href=&quot;http://www.liberation.fr/monde/01012385161-l-europe-impose-un-embargo-petrolier-sans-precedent-a-l-iran&quot;&gt;tensions en Iran&lt;/a&gt;, tous les ingrédients sont réunis pour le plus gros choc pétrolier de l'Histoire, tel que prédit par Jean-Luc Wingert.&lt;/p&gt;

&lt;p&gt;Alors il est vrai que depuis, pas mal de choses ont changé. Les énergies renouvelables ne sont plus une chimère défendue uniquement par les Verts. Nombreux sont ceux qui ont compris que les bénéfices que l'on peut en tirer sont loin d'être uniquement écologiques. Mais le chemin à parcourir pour être totalement indépendant de l'or noir semble encore bien long.&lt;/p&gt;</content>
		</entry>

	<entry xml:lang="en" xml:base="http://xavier.robin.name/en/">
		<title type="html">Switching to Catalyst</title>
		
			<category term="my_site" label="My website" scheme="http://xavier.robin.name/en/tag/my_site" />
		
		<link href="http://xavier.robin.name/en/blog/2012/01/07/switching-to-catalyst"/>
		<id>tag:xavier.robin.name,2012-01-07:/blog/2012/01/07/switching-to-catalyst</id>
		<published>2012-01-07T16:42:10+01:00</published>
		<updated>2012-01-07T16:42:10+01:00</updated>
		<content type="html">&lt;p&gt;It should be rather transparent, but I just switched my website from &lt;a href=&quot;http://xavier.robin.name/blog/2010/06/13/eperl&quot;&gt;ePerl&lt;/a&gt; to &lt;a href=&quot;http://www.catalystframework.org/&quot;&gt;Catalyst&lt;/a&gt;, &lt;a href=&quot;http://xavier.robin.name/blog/2011/01/08/switch-to-catalyst&quot;&gt;as announced before&lt;/a&gt;. The application should be a bit more reliable (less error 500 pages, that is after the initial debugging period).&lt;/p&gt;</content>
		</entry>

	<entry xml:lang="en" xml:base="http://xavier.robin.name/en/">
		<title type="html">pROC 1.5 released</title>
		
			<category term="pROC" label="pROC" scheme="http://xavier.robin.name/en/tag/pROC" />
		
		<link href="http://xavier.robin.name/en/blog/2011/12/12/proc-1.5-released"/>
		<id>tag:xavier.robin.name,2011-12-12:/blog/2011/12/12/proc-1.5-released</id>
		<published>2011-12-12T09:27:08+01:00</published>
		<updated>2011-12-12T09:27:08+01:00</updated>
		<content type="html">
&lt;p&gt;pROC's steady progression goes on with version 1.5. It is avalable for R only. S+ users will need to wait for the upcoming 1.6 release which will introduce power / sample size computations.&lt;/p&gt;

&lt;p&gt;This version introduces four new notable features:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;#pROC_1.5_variance_covariance&quot;&gt;Variance and covariance&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#pROC_1.5_logcondens&quot;&gt;Univariate Log-Concave Density Estimation smoothing&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#pROC_1.5_plot&quot;&gt;Improvements to the plotting function&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#pROC_1.5_coords&quot;&gt;New return values in coords&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;pROC_1.5_variance_covariance&quot;&gt;Variance and covariance&lt;/h2&gt;

&lt;p&gt;It is now possible to compute the variance of a ROC curve, and the covariance of two paired ROC curves.&lt;/p&gt;
&lt;pre&gt;library(pROC)
data(aSAH)
rocobj &amp;lt;- roc(aSAH$outcome, aSAH$s100b)

var(roc1)
var(roc2)
cov(roc1, roc2)&lt;/pre&gt;

&lt;p&gt;Two methods are available: bootstrap, DeLong&lt;sup&gt;&lt;a href=&quot;#ref_delong_note&quot; id=&quot;ref_delong_text&quot; name=&quot;ref_delong_text&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. The bootstrap is the most versatile method. DeLong is faster but works for full AUC only. For more details, see &lt;code&gt;?var.roc&lt;/code&gt; and &lt;code&gt;?cov.roc&lt;/code&gt;.&lt;/p&gt;


&lt;h2 id=&quot;pROC_1.5_logcondens&quot;&gt;Univariate Log-Concave Density Estimation smoothing&lt;/h2&gt;
&lt;p&gt;Until now, three methods were available to smooth a ROC curve: &lt;code&gt;binormal&lt;/code&gt;, &lt;code&gt;density&lt;/code&gt; and &lt;code&gt;fitdistr&lt;/code&gt; (to fit a distribution with &lt;a href=&quot;http://cran.r-project.org/web/packages/MASS/&quot;&gt;MASS&lt;/a&gt;). Now, two new methods are available: &lt;code&gt;logcondens&lt;/code&gt; and &lt;code&gt;logcondens.smooth&lt;/code&gt;. They are based on Duembgen and Rufibach (2011)&lt;sup&gt;&lt;a href=&quot;#ref_duembgen_note&quot; id=&quot;ref_duembgen_text&quot; name=&quot;ref_duembgen_text&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;. You first need to install the &lt;a href=&quot;http://cran.r-project.org/web/packages/logcondens/&quot;&gt;logcondens&lt;/a&gt; package:&lt;/p&gt;

&lt;pre&gt;install.packages(&quot;logcondens&quot;)&lt;/pre&gt;

&lt;p&gt;It doesn't need to be loaded.&lt;/p&gt;

&lt;pre&gt;plot(rocobj)
rs &amp;lt;- smooth(rocobj, method=&quot;binormal&quot;)
plot(rs, add=TRUE, col=&quot;green&quot;)
rs2 &amp;lt;- smooth(rocobj, method=&quot;density&quot;)
plot(rs2, add=TRUE, col=&quot;blue&quot;)
rs3 &amp;lt;- smooth(rocobj, method=&quot;fitdistr&quot;, density=&quot;lognormal&quot;)
plot(rs3, add=TRUE, col=&quot;magenta&quot;)
rs4 &amp;lt;- smooth(rocobj, method=&quot;logcondens&quot;)
plot(rs4, add=TRUE, col=&quot;brown&quot;)
rs5 &amp;lt;- smooth(rocobj, method=&quot;logcondens.smooth&quot;)
plot(rs5, add=TRUE, col=&quot;orange&quot;)
legend(&quot;bottomright&quot;, legend=c(&quot;Empirical&quot;, &quot;Binormal&quot;, &quot;Density&quot;, &quot;Log-normal&quot;,
                               &quot;Log-concave density&quot;, &quot;Smoothed log-concave density&quot;),
       col=c(&quot;black&quot;, &quot;green&quot;, &quot;blue&quot;, &quot;magenta&quot;, &quot;brown&quot;, &quot;orange&quot;), lwd=2)
&lt;/pre&gt; 
 

&lt;h2 id=&quot;pROC_1.5_plot&quot;&gt;Improvements to the plotting function&lt;/h2&gt;

&lt;p&gt;Several users have been bothered by the fact than in pROC (R version), the sensitivity is plotted as decreasing specificity. Most other software plot increasing 1 – specificity on the X axis. The reason is purely historical: only few statistical software can plot an axis in decreasing direction. For instance S+ cannot do it, and pROC's ROC curve are plotted as 1 – specificity there. However it makes absolutely no difference on the ROC curve itself. As it was possible, I decided plot the modern version on R rather than stick to obsolete conventions.&lt;/p&gt;

&lt;p&gt;For those who are disturbed and prefer to stick to obsolete conventions, pROC 1.5 comes with a way to plot increasing 1 – specificity in the R version with the &lt;code&gt;legacy.axes&lt;/code&gt; argument.&lt;/p&gt;

&lt;pre&gt;plot(rocobj, legacy.axes=TRUE)&lt;/pre&gt;

&lt;p&gt;Note that it makes no difference to the coordinates of the plot, and if you want to add some text you still have to think in the &quot;new&quot; way. Consequently, the following will always be plotted to the top left corner of the curve, whatever &lt;code&gt;legacy.axes&lt;/code&gt; you specified:&lt;/p&gt;
&lt;pre&gt;text(1, 1, auc(rocobj), adj=c(0, 1))&lt;/pre&gt;

&lt;h2 id=&quot;pROC_1.5_coords&quot;&gt;New return values in coords&lt;/h2&gt; 


&lt;p&gt;The &lt;code&gt;ret&lt;/code&gt;argument of the &lt;code&gt;coords&lt;/code&gt; function now accepts several new values:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&quot;accuracy&quot;: (sensivity + specificity) / 2&lt;/li&gt;
	&lt;li&gt;&quot;tn&quot;: true positives count&lt;/li&gt;
	&lt;li&gt;&quot;tp&quot;: true negatives count&lt;/li&gt;
	&lt;li&gt;&quot;fn&quot;: false negtives count (positive observations classified as negative by &lt;code&gt;predictor&lt;/code&gt;)&lt;/li&gt;
	&lt;li&gt;&quot;fp&quot;: false positives count (negative observations classified as positive by &lt;code&gt;predictor&lt;/code&gt;)&lt;/li&gt;
	&lt;li&gt;&quot;npv&quot;: negative predictive value, or tn / (tn + fn)&lt;/li&gt;
	&lt;li&gt;&quot;ppv&quot;: positive predictive value, or tp / (tp + fp)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In addition, sensitivity, specificity, npv and ppv can be prefixed with &lt;code&gt;1-&lt;/code&gt; in order to get the opposite value. Finally two additional values are recognized:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&quot;npe&quot;: converted to 1-npv&lt;/li&gt;
	&lt;li&gt;&quot;ppe&quot;: converted to 1-ppv&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is an example. We take the best threshold of the ROC curve &lt;code&gt;rocobj&lt;/code&gt; and display all the parameters of this threshold:&lt;/p&gt; 


&lt;pre&gt;coords(rocobj, &quot;best&quot;, ret=c(&quot;threshold&quot;, &quot;specificity&quot;, &quot;sensitivity&quot;, &quot;accuracy&quot;, &quot;tn&quot;, &quot;tp&quot;, &quot;fn&quot;, &quot;fp&quot;, &quot;npv&quot;, &quot;ppv&quot;, &quot;1-specificity&quot;, &quot;1-sensitivity&quot;, &quot;1-npv&quot;, &quot;1-ppv&quot;))&lt;/pre&gt;

&lt;p&gt;Coords also accepts a new argument: &lt;code&gt;drop&lt;/code&gt; to control the dimension of the return value. If &lt;code&gt;drop&lt;/code&gt; is &lt;code&gt;FALSE&lt;/code&gt;, a matrix will always be returned, even if it contains only one column. This is especially useful to make scripts more reliable.&lt;/p&gt;


&lt;h2&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Here is the full change log:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;New &lt;code&gt;cov&lt;/code&gt; and &lt;code&gt;var&lt;/code&gt; functions&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;coords&lt;/code&gt; accepts new &lt;code&gt;ret&lt;/code&gt; values: &quot;accuracy&quot;, &quot;tn&quot;, &quot;tp&quot;, &quot;fn&quot;, &quot;fp&quot;, &quot;npv&quot;, &quot;ppv&quot;, &quot;1-specificity&quot;, &quot;1-sensitivity&quot;, &quot;1-npv&quot;, &quot;1-ppv&quot;, &quot;npe&quot; and &quot;ppe&quot;&lt;/li&gt;
	&lt;li&gt;New &lt;code&gt;legacy.axes&lt;/code&gt; argument to &lt;code&gt;plot&lt;/code&gt; 1-specificity rather than specificity&lt;/li&gt;
	&lt;li&gt;New &lt;code&gt;axes&lt;/code&gt; argument to turn off the plotting of the axis&lt;/li&gt;
	&lt;li&gt;New &lt;code&gt;logcondens&lt;/code&gt; and &lt;code&gt;logcondens.smooth&lt;/code&gt; (Univariate Log-Concave Density Estimation) smoothing methods&lt;/li&gt;
	&lt;li&gt;New function &lt;code&gt;has.partial.auc&lt;/code&gt; to determine if an AUC is full or partial&lt;/li&gt;
	&lt;li&gt;New argument &lt;code&gt;drop&lt;/code&gt; for &lt;code&gt;coords&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;auc&lt;/code&gt; and &lt;code&gt;multiclass.auc&lt;/code&gt; objects now also have secondary class &lt;code&gt;numeric&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;Updated load call&lt;/li&gt;
	&lt;li&gt;Delong's CI reversed in ROC curves with &lt;code&gt;direction=&quot;&amp;gt;&quot;&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;Delong's CI AUC returned values &amp;gt; 1 or &amp;lt; 0 in some rare cases&lt;/li&gt;
	&lt;li&gt;Minor improvements in documentation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As usual, you can find the new version &lt;a href=&quot;http://web.expasy.org/pROC/&quot;&gt;on ExPASy&lt;/a&gt; and  &lt;a href=&quot;http://cran.r-project.org/web/packages/pROC&quot;&gt;on the CRAN&lt;/a&gt;. To update, type &lt;code&gt;update.packages()&lt;/code&gt; or &lt;code&gt;install.packages(&quot;pROC&quot;)&lt;/code&gt; if you want to update pROC only.&lt;/p&gt; 

&lt;ul class=&quot;notes&quot;&gt;

&lt;li&gt;&lt;a href=&quot;#ref_delong_text&quot; id=&quot;ref_delong_note&quot; name=&quot;ref_delong_note&quot;&gt;1.&lt;/a&gt; Elisabeth R. DeLong, David M. DeLong and Daniel L. Clarke-Pearson (1988) “Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach”. &lt;i&gt;Biometrics&lt;/i&gt; &lt;b&gt;44&lt;/b&gt;, 837–845.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#ref_duembgen_text&quot; id=&quot;ref_duembgen_note&quot; name=&quot;ref_duembgen_note&quot;&gt;2.&lt;/a&gt; Lutz Duembgen, Kaspar Rufibach (2011) “logcondens: Computations
     Related to Univariate Log-Concave Density Estimation”. &lt;i&gt;Journal
     of Statistical Software&lt;/i&gt;, &lt;b&gt;39&lt;/b&gt;, 1–28. URL: &lt;a href=&quot;http://jstatsoft.org/v39/i06&quot;&gt;jstatsoft.org/v39/i06&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

</content>
		</entry>


</feed>