Fujitsu S1300i advances document but doesn't scan I'm using a Fujitsu ScanSnap S1300i.  Using sudo as a temporary workaround to minimise any permissions problems:  $ sudo sane-find-scanner found USB scanner (vendor=0x04c5 [FUJITSU], product=0x128d [ScanSnap S1300i]) at libusb:001:004   So I edited /etc/sane.d/epjitsu.conf and added:  firmware /usr/share/sane/epjitsu/1300i_0D12.nal usb 0x04c5 0x128d   and copied 1300i_0D12.nal from a Windows install into /usr/share/sane/epjitsu/. (Actually I copied all the *.nal drivers, just in case it needed one of the others.)  $ sudo scanimage -L device `epjitsu:libusb:001:004' is a FUJITSU ScanSnap S1300i scanner  $ sudo scanimage scanimage: output is not a file, exiting   And running sudo simple-scan, skanlite or gscan2pdf all advance the document feed by a couple of centimeters, but then the feed halts and the fronted returns an I/O error of some kind.  So SANE seems to recognize the scanner and has some basic communication with it (the paper advances a couple of centimeters), but it doesn't scan.  Any suggestions about something I've missed out or how to get a proper scan output?  Additional info  $ scanimage -V scanimage (sane-backends) 1.0.23; backend version 1.0.23 $ sudo skanlite QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave   If I run sudo scanimage -v (I accidentally typed lowercase V when I was trying to obtain the version!) after the document has been advanced a couple of centimeters by sudo skanlite, then the scanimage command forces a complete document feed -- but no scan.
S1300I scanner issues under Ubuntu 16.04 using Sane In theory this scanner does work under Linux and Ubuntu.  I've found this document that I tried to follow.    I install sane, copy firmware, confirm the location in the config etc.  Everything looks good.  Potential problem areas  sudo sane-find-scanner   output:  # sane-find-scanner will now attempt to detect your scanner. If the # result is different from what you expected, first make sure your # scanner is powered up and properly connected to your computer.  found SCSI processor "Marvell 91xx Config 1.01" at /dev/sg5 # Your SCSI scanner was detected. It may or may not be supported by SANE. Try # scanimage -L and read the backend's manpage.  could not fetch string descriptor: Pipe error could not fetch string descriptor: Pipe error found USB scanner (vendor=0x04c5 [FUJITSU], product=0x128d [ScanSnap S1300i]) at    libusb:005:007 could not fetch string descriptor: Pipe error # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage.  # Not checking for parallel port scanners.  # Most Scanners connected to the parallel port or other proprietary ports # can't be detected by this program.   Okay.  So the scanner is detected and listed, it prints a bunch of extra noise that   # scanimage -L  No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages).   Okay, let's verify the firmware files:  ls -lh  /usr/share/sane/epjitsu  total 136K -rw-r----- 1 root root 65K Jan  1 17:49 1300_0C26.nal -rw-r----- 1 root root 65K Jan  1 17:49 300_0C00.nal   Looking at the configuration file: (snippets)  # Fujitsu S300 firmware /usr/share/sane/epjitsu/300_0C00.nal usb 0x04c5 0x1156  # Fujitsu S1300 firmware /usr/share/sane/epjitsu/1300_0C26.nal usb 0x04c5 0x11ed   Last thing I tried was to pull the line from sane-find-scanner and update the config  sane-find-scanner returns a different product ID.   I updated the config file above, restarted the sane service, I ran scanimage -L still, scanner not detected.  For reference I had this working on this same computer under a virtualbox VM.  If I can get it to work under windows that would be ideal.  Any suggestion would be much appreciated.    Update: I revisited the behavior after adding the 1300i firmware and it's still not working but.  Once in a while when I do run this is the output.  If I run it again it'll fail.  scanimage -L device `epjitsu:libusb:005:008' is a FUJITSU ScanSnap S1300i scanner   also sudo gscan2pdf and sudo simple-scan both fail to detect a scanner.  It fails with and without sudo permissions.
Opening files from version 2.8 in 2.79 Two footnotes in a heading, only one is displayed at the end of the page I'm adding two footnotes to a section heading:  \documentclass{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lipsum}  \usepackage[stable]{footmisc}  \usepackage{titlesec}  \begin{document} \section{test \footnote{This is footnote no1.} \footnote{This is footnote no2.} } \lipsum[4] \end{document}   The heading will have both of the footnotes, but at the end of the page only the second is displayed. The problem appears to be \usepackage{titlesec}, because it works fine without it.    Stuff I specified in \usepackage{titlesec}:  \renewcommand\thesection{\arabic{section}}  \renewcommand\thesubsection{\arabic{subsection}}  \renewcommand\thesubsubsection{\arabic{subsubsection}}  \titleformat{\section}[block]{\Large\scshape\centering}{\thesection}{1em}{}  \titleformat{\subsection}[block]{\large\scshape}{\thesection.\thesubsection}{1em}{}  \titleformat{\subsubsection}[block]{\large\scshape}{\thesection.\thesubsection.\thesubsubsection}{1em}{}   Thanks in advance! Awesome symbols and characters in a bash prompt I just ran across a screenshot of someone's terminal:    Is there a list of all of the characters which can be used in a Bash prompt, or can someone get me the character for the star and the right arrow? Statistical significance (p-value) for comparing two classifiers with respect to (mean) ROC AUC, sensitivity and specificity I have a test set of 100 cases and two classifiers.  I generated predictions and computed ROC AUC, sensitivity and specificity for both classifiers.  Question 1: How can I compute p-value to check if one is significantly better than the other with respect to all scores (ROC AUC, sensitivity, specificity)?    Now, for the same test set of 100 cases, I have different and independent feature assignments for each case. This is because my features are fixed but subjective and provided by multiple (5) subjects.  So, I evaluated my two classifiers again for 5 "versions" of my test set and obtained 5 ROC AUCs, 5 sensitivities and 5 specificities for both classifiers. Then, I computed the mean of each performance measure for 5 subjects (mean ROC AUC, mean sensitivity and mean specificity) for both classifiers.  Question 2: How can I compute p-value to check if one is significantly better than the other with respect to mean scores (mean ROC AUC, mean sensitivity, mean specificity)?    Answers with some example python (preferably) or MatLab code are more than welcome. How do I properly clean up Excel interop objects? What kind of components are black blobs on a PCB? In low-cost mass-produced items I often run into black blobs of what looks like resin applied directly on top of something on the PCB. What are these things exactly? I suspect this is some kind of custom IC that is layed out directly on the PCB to save on the plastic  housing/connector pins. Is this correct? If so, what is this technique called?    This is a photograph of the inside of a cheap digital multimeter. The black blob is the only non-basic piece of circuitry present, along with an op-amp (top) and a single bipolar junction transistor. Why was the plan for the Purple Wedding so complicated? Spoilers for A Storm of Swords / Season 4 episode 2 "The Lion and the Rose".  At the Purple Wedding,      Littlefinger and Lady Olenna Tyrell   perform their plan of      poisoning King Joffrey.   A short summary of their plan:  Littlefinger orders Ser Dontos Hollard to give Sansa Stark a beautiful silver hairnet adorned with amethysts. At least some of the amethysts are actually strangler crystals in disguise. Ser Dontos also, still under orders of Littlefinger, urges Sansa to wear the hairnet at the wedding, which she then does. At the wedding, when Lady Olenna greets Sansa, she fusses her hairnet a bit, while secretly taking one of the strangler crystals. Later, during the wedding, Lady Olenna puts the crystal in Joffrey's royal cup, poisoning him.  But why was their plan so complicated? Why couldn't Lady Olenna just bring a strangler crystal with her to the wedding (as suggested in )?  Then they wouldn't depend on Ser Dontos and Sansa who could unknowingly have done something to prevent the success of the plan.  The only reason that I could think of, is Littlefinger and Lady Olenna plan for Sansa (and Tyrion as her husband with her) to take the blame for Joffrey's death.  They put the crystals on her person, so that upon examination it would clearly show that Sansa had the murder weapon on her. But Littlefinger had a plan he did not tell Lady Olenna, namely rescuing Sansa during the chaos ensuing the murder (and thereby leaving Tyrion behind as the only accused).  Is there anything confirming or debunking this theory? If my theory doesn't hold up, is there another explanation for why the plan was so needlessly complicated? Find the MLE of the unknown parameter $\theta$ when $X_1,X_2,...,X_n$ is a sample from the distribution whose density function is: $$f_X(x) = \frac12e^{-|x-\theta|}, -\infty&lt;x&lt;\infty$$ What I did so far: $$\text{maximize }(\frac12)^ne^{-|x_1-\theta|-|x_2-\theta|-...-|x_n-\theta|} \\ \text{thus we want to minimize }|x_1-\theta|+|x_2-\theta|+...+|x_n-\theta|$$ Since $|x_i-\theta|$ is positive for all $i$, we want to solve for $\theta$ so: $$|x_1-\theta|+|x_2-\theta|+...+|x_n-\theta|=0$$ What do I do from here? Plugin or brush for transforming a photo to a fractal in gimp? Folks,  I've been looking all over for a plugin or brush that will help me take a photo and reduce it to that 'electric look' (or fractal?) that i'm seeing in various places. I'd vastly prefer one for Gimp.  Does anyone know how these are being done? I'm seening references to fractalius for photoshop, but what about gimp?  Examples: How to sort a list of strings? What is the best way of creating an alphabetically sorted list in Python? How to reset the terminal properties and preferences? I fooled around with the colors and stuff, in the terminal, and now want to go back to the maroon and white default config of the the terminal. What files do I have to delete? Can the union axiom be weakened? How to urlencode data for curl command? I am trying to write a bash script for testing that takes a parameter and sends it through curl to web site.  I need to url encode the value to make sure that special characters are processed properly.  What is the best way to do this?    Here is my basic script so far:  #!/bin/bash host=${1:?'bad host'} value=$2 shift shift curl -v -d "param=${value}" http://${host}/somepath $@ How soon can I re-apply for a UK visa after getting a refusal? How can I send an email using PHP? Let's say it again, we all make mistakes, and I have just made one.  A brief history: I was doing some stuff on a VPS (Debian) I'm renting, when I noticed some strange behaviour. Using the netstat command I saw an non-authorized connection through SSH. I didn't know what to do, so I decided to close his connection using iptables:  iptables -A INPUT -p tcp --dport ssh -s IP -j DROP   But I am tired, and I wrote  iptables -A INPUT -p tcp --dport ssh -j DROP   and I kicked myself (and everyone else) out...  How do I fix this? The brightness of my laptop is reset to max on every restart. I tried the solution provided at  but had no luck.   This command   cat /sys/class/backlight/acpi_video0/max_brightness   Returns   cat: /sys/class/backlight/acpi_video0/max_brightness: No such file or directory   Then I found that I don't have a folder named acpi_video0, but a folder called intel_backlight:    Every time I increase or decrease the brightness using the brightness control keys, the values in brightness and actual_brightness get updated.  Is there any method I could follow to set the brightness to a fixed value on every boot and vary it as and when I need it using the brightness control keys? How to find all positive integers $n$ such that $(n-1)!+1$ can be written as $n^k$ for some positive integer $k$? How do I build a house for my NPCs? Does $\lim_{n\to\infty}\underset{n}{\underbrace{\cos(\cos(...\cos x))}}$ exist? Possible Duplicate:         Does the following limit exist?  $$\lim_{n\to\infty}\underset{n}{\underbrace{\cos(\cos(...\cos x))}}$$  If yes, find the limit.  If no, please explain why the limit doesn't exist.  I think, the limit exists.  So, I tried to use Squeeze theorem but didn't work.