On my website I have a form that is send to me by e-mail once filled out. The form mails with its own email address but has a Reply-to to the people who have filled out the form.  In Postfix I want to correct this to replace the From-address with the Reply-to address. I use this syntax in header_checks:  if !/^From:.*(form@domain1.com|form@domain2.com)/    /^Reply-To:(.*)/ REPLACE From:$1  endif   But it does not work. What do I do wrong?
I want to change the Message-ID header or better yet, discard it. I know everyone is going to ask "Why would you want to do that?" because I know it sounds weird to even write it.  Well I am developing a system that saves an incoming e-mail in EML format, changes it and sends it to the user, at some point the user can request to have the original EML sent to him/her. The issue is that when I re-send the EML it has the same Message-ID header which causes exchange servers to drop the re-send.  Of course I am hoping there is some option through postfix to do this, otherwise I will need to parse and change the EML but I rather not do that.  I tried to do this with "header_checks" and it works BUT I need to be able to do this conditionally, meaning only on a specific occasion, which I can identify by looking at the other headers, I want to remove the Message-ID.
I'm looking to book flights from) Philadelphia (PHL) to Detroit (DTW). Direct flights are quite expensive. I noticed, in expanding a search to surrounding airports, that I can book from Allentown (ABE) to Detroit for far less, and the connection is through Philadelphia.  Can I book this flight but board in Philadelphia? I'll be traveling with carry-on luggage only, so on the return, it's obviously no problem. But would I be allowed through security and on to the plane in PHL with out having flown from Allentown? I want to exclude certain local folders with Google Drive but I *keep* them on the computer Using Google Drive on Windows (although I think the same question applies to OS/X) I want to exclude certain local folders but keep them on the computer.  When I go to Drive preferences and deselect specific folders, it wants to remove them from the local PC and keep them only in the cloud.  This doesn't work for me.  I feel like I could do this in earlier versions of the Google Drive client but I cannot recall for sure.  Is this possible? Linux command line. Move all files and directories in directory, except some files and directories Why was Sirius ever convicted? Sirius himself says at some point in Goblet of Fire that Crouch pushed through legislation to have him convicted and thrown in Azkaban without a trial.  There seems to be a general consensus, specifically voiced by Fudge but also implicit in Crouch pushing through this legislation, that Sirius was considered one of Voldemort’s innermost, most dangerous, and most trusted right hands. Easily as inner-circle as the Lestranges, for example.  It seems quite unlikely to me that someone so close to Voldemort should not be a Death Eater—apart from Fenrir Greyback (who I would think is much less inner-circle), I do not recall hearing of any of Voldemort’s important servants not being Death Eaters.  As far as canon describes, all Death Eaters have the Dark Mark magic-tattooed on their arm, to be used as a way for Voldemort to summon them to him. Considering that Karkaroff, who had definitely burnt all his Death Eater bridges, still had the Dark Mark, I am assuming that getting rid of the Mark is not possible: once it’s on, it stays on.  Yet, as Hermione points out in Order of the Phoenix (ch. 16, “In the Hog’s Head”), Sirius does not have the Dark Mark.  So why was he so swiftly convicted and locked up? I mean, I know they were eager to be seen to be doing something (as Fudge keeps pointing out is his excuse for most of the miscarriages of justice he commits)… but seriously, did no one think to check if Sirius actually had a Dark Mark on his arm or not? Did the Ministry of Magic not even know at the time that all Death Eaters had the Mark? Or were they just happy to accept—without the scrutiny of a full trial—that a non-Death Eater would commit mass murder for a Voldemort who was presumed defeated? How to make Arduino (Snap) access serial port /dev/ttyUSB0 (or /dev/ttyACM0)? I have Ubuntu 18.04 LTS installed.  I installed Arduino IDE v1.8.5 as a snap with  snap install arduino-mhall119   I have added my user to dial-out group and rebooted:  sudo usermod -a -G dialout $USER  $ groups  username adm dialout cdrom sudo dip plugdev lpadmin sambashare   I connected my Arduino Nano to the laptop, it is detected on port /dev/ttyUSB0 (ch341-uart).  $ ls /dev/ttyUSB0 -al crw-rw---- 1 root dialout 188, 0 авг 13 11:59 /dev/ttyUSB0   I tried to upload the simpliest Blink sketch and get the following errors in the terminal:  $ arduino-mhall119.arduino    avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied   Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.**   Also I have installed arduino 1.8.5 with umake - it can access serial port in usual way.  Note: we already have  here, but the solution was to use , not fix for the Snap.  So my question is: How to make Arduino (Snap) access serial port /dev/ttyUSB0 (or /dev/ttyACM0)?  Update: connecting serial-port to the snap fails with the following message  $ snap connect arduino-mhall119:serial-port  error: snap "core" has no "serial-port" interface slots   Current interfaces are:  $ snap interfaces | grep arduino :home                            arduino-mhall119,gedit,organize-my-files,vlc :network                         arduino-mhall119,gedit,organize-my-files,pulsemixer,vlc :unity7                          arduino-mhall119,gedit,organize-my-files,vlc :x11                             arduino-mhall119,organize-my-files,pulsemixer,vlc -                                arduino-mhall119:serial-port   Changing permissions of serial port to 777 with sudo chmod 777 /dev/ttyUSB0 does not help.  The following do not work too (because of syntax errors):  $ sudo snap connect arduino-mhall119:arduino error: snap "arduino-mhall119" has no plug named "arduino"  $ snap connect arduino-mhall119:/dev/ttyUSB0 error: snap "arduino-mhall119" has no plug named "/dev/ttyUSB0"  $ snap connect arduino-mhall119 error: cannot resolve connection, plug snap name is empty   Information about YAML-manifest:  $ ls -l /snap/arduino-mhall119/current/meta/snap.yaml -rw-r--r-- 1 root root 353 июл 28 00:20 /snap/arduino-mhall119/current/meta/snap.yaml  $ cat /snap/arduino-mhall119/current/meta/snap.yaml |grep -A 12 slots  $ cat /snap/arduino-mhall119/current/meta/snap.yaml |grep -A 5 plug     plugs:     - x11     - unity7     - home     - network     - serial-port Strange character when using listings package I'm seeing an odd character like a very flat U, where there should be a space, with the listings package. See example below. Does anyone have any idea why this is happening, or how to get rid or work around it?  \documentclass{standalone} \usepackage{underscore} \usepackage{listings} \usepackage[usenames,dvipsnames, rgb, svgnames, x11names]{xcolor} % Text layout \topmargin 0.0cm \oddsidemargin 0.5cm \evensidemargin 0.5cm \textwidth 16cm \textheight 21cm  \lstnewenvironment{cmd}[1][]{%   \lstset{language=sh, backgroundcolor=\color{LightSteelBlue1}, #1}} {}  \begin{document} \begin{cmd}[caption=Configuration file section including filters] [affy6] [...]     [[hapmap]]     phenofiles = "data/Hapmap6.0/Pheno/hapmappheno_909.csv",     genofile = "/data/snppy/Hapmap6.0/Geno/birdseed-v2.calls.txt"     anno_filter = "chromosome = 5"     idlink_filter = "studyid = 'CEU'"     some_other_stuff = "foo = bar" \end{cmd} \end{document} What are your thoughts on writing your text in images?  I'm not saying throughout the whole website... But in certain key locations like image carousels. And I'm not talking about the special cases where you have font types that browsers can't render. I'm talking about text that uses standard fonts and is not too big (3/4 bullets).  Should I embed the text in the images that compose the carousel? Or should I apply the text to the images as "real text" HTML?  What are the advantages/ disadvantages of using text in an image? Installed 14.04 on a non-PAE (Pentium-M), but now I can't update ("This kernel does not support a non-PAE CPU.") Here is what I'm looking at. This isn't my computer. I repair PC's and I had an end user with this low powered laptop running XP so I decided to let him try out lubuntu. The install went smoothly with the non-PAE boot switch, but now I can't update anything. I'd rather not have to format and start over since he's spent time configuring his system. Any tips would be appreciated. I tried sudo apt-get clean, sudo apt-get install -f, sudo apt-get update. No go.  Also his touchpad stopped working, the wireless stopped working, the keyboard works in firefox but not chrome, and in firefox the address bar sometimes turns black and gray for some reason. I was hoping the update would help address some of this stuff.  Here's the message I get trying to update:  Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-proposed/main linux-image-3.13.0-26-generic i386 3.13.0-26.48 [14.6 MB] Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-3.13.0-24-generic i386 3.13.0-24.47 [14.6 MB] Fetched 29.2 MB in 2min 19s (208 kB/s)                                          (Reading database ... 169286 files and directories currently installed.) Preparing to unpack .../linux-image-3.13.0-26-generic_3.13.0-26.48_i386.deb ... This kernel does not support a non-PAE CPU. dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-26-generic_3.13.0-26.48_i386.deb (--unpack):  subprocess new pre-installation script returned error exit status 1 Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-26-generic /boot/vmlinuz-3.13.0-26-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-26-generic /boot/vmlinuz-3.13.0-26-generic Preparing to unpack .../linux-image-3.13.0-24-generic_3.13.0-24.47_i386.deb ... This kernel does not support a non-PAE CPU. dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-24-generic_3.13.0-24.47_i386.deb (--unpack):  subprocess new pre-installation script returned error exit status 1 Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic Errors were encountered while processing:  /var/cache/apt/archives/linux-image-3.13.0-26-generic_3.13.0-26.48_i386.deb  /var/cache/apt/archives/linux-image-3.13.0-24-generic_3.13.0-24.47_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) MiKTeX: Two things did not succeed I installed a new hard drive on my computer this summer and I'm trying to install MiKTeX on it now. There were no problems when I was using my old hard drive. My OS is Windows 8.1. I'm trying to compile the following very basic file with pdfLaTeX:  \documentclass{article} \begin{document}   hi   \end{document}   Here's the first error I get:  Sorry, but "MiKTeX Configuration Utility" did not succeed.     The log file hopefully contains the information to get MiKTeX going again:   C:/Users/Tyler/AppData/Local/MiKTeX/2.9/miktex/log/initexmf.log  You may want to visit the MiKTeX project page (http://miktex.org), if you need help.   With the following errors in the log:  2015-09-03 22:23:51,625-0400 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9 64-bit)    2015-09-03 22:23:51,631-0400 FATAL initexmf - Windows API error 32: The process cannot access the file because it is being used by another process. 2015-09-03 22:23:51,631-0400 FATAL initexmf - Info: C:\Users\Tyler\AppData\Local\MiKTeX\2.9\miktex/data/le\1e0c0e04cb3be262fbb8e6e7ace14b67.fndb 2015-09-03 22:23:51,631-0400 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp 2015-09-03 22:23:51,631-0400 FATAL initexmf - Line: 520   The second error:  Sorry, but C:\Program Files\MiKTeX 2.9\miktex\bin\x64\miktex-pdftex.exe did not succeed. The log file hopefully contains the information to get MiKTeX going again:   C:/Users/Tyler/AppData/Local/MiKTeX/2.9/miktex/log/miktex-pdftex.log  You may want to visit the MiKTeX project page (http://miktex.org), if you need help.   with the following errors in the log:  2015-09-03 22:16:18,715-0400 INFO  miktex-pdftex - running 'initexmf --quiet --update-fndb' to refresh the file name database 2015-09-03 22:16:18,746-0400 FATAL miktex-pdftex - The operation failed for some reason. 2015-09-03 22:16:18,746-0400 FATAL miktex-pdftex - Info: C:\Program Files\MiKTeX 2.9\miktex\bin\x64\initexmf.exe 2015-09-03 22:16:18,746-0400 FATAL miktex-pdftex - Source: Libraries\MiKTeX\Core\Process.cpp 2015-09-03 22:16:18,746-0400 FATAL miktex-pdftex - Line: 290   Things I've tried:   Uninstalling and reinstalling MiKTeX Downloading all packages whose name starts with miktex (which is a solution that worked for someone else in a different thread) Having nothing open but TeXworks when trying to compile Looking for processes that may be related to MiKTeX in the task manager (I didn't find any)   How can I stop these errors? I apologize if my formatting is bad; this is my first stackexchange question. Thank you for your help. Understanding p-value I know that there are lots of materials explaining p-value. However the concept is not easy to grasp firmly without further clarification.  Here is the definition of p-value from Wikipedia:     The p-value is the probability of obtaining a test statistic at least   as extreme as the one that was actually observed, assuming that the   null hypothesis is true. ()   My first question pertains to the expression "at least as extreme as the one that was actually observed." My understanding of the logic underlying the use of p-value is the following: If the p-value is small, it's unlikely that the observation occurred assuming the null hypothesis and we may need an alternative hypothesis to explain the observation. If the p-value is not so small, it is likely that the observation occurred only assuming the null hypothesis and the alternative hypothesis is not necessary to explain the observation. So if someone wants to insist on a hypothesis he/she has to show that the p-value of the null hypothesis is very small. With this view in mind, my understanding of the ambiguous expression is that p-value is $\min[P(X&lt;x),P(x&lt;X)]$, if the PDF of the statistic is unimodal, where $X$ is the test statistic and $x$ is its value obtained from the observation. Is this right? If it is right, is it still applicable to use the bimodal PDF of the statistic? If two peaks of the PDF are separated well and the observed value is somewhere in the low probability density region between the two peaks, which interval does the p-value give the probability of?  The second question is about another definition of p-value from Wolfram MathWorld:     The probability that a variate would assume a value greater than or   equal to the observed value strictly by chance.   ()   I understood that the phrase "strictly by chance" should be interpreted as "assuming a null hypothesis". Is that right?  The third question regards the use of "null hypothesis". Let's assume that someone wants to insist that a coin is fair. He expresses the hypothesis as that relative frequency of heads is 0.5. Then the null hypothesis is "relative frequency of heads is not 0.5." In this case, whereas calculating the p-value of the null hypothesis is difficult, the calculation is easy for the alternative hypothesis. Of course the problem can be resolved by interchanging the role of the two hypotheses. My question is that rejection or acceptance based directly on the p-value of the original alternative hypothesis (without introducing the null hypothesis) is whether it is OK or not. If it is not OK, what is usual workaround for such difficulties when calculating the p-value of a null hypothesis?     I posted a new  that is more clarified based on the discussion in this thread. What is the ideal way to handle data pins D+ and D- on a USB power adapter to be compatible with fast charging on devices? Today I open my SO account like I always do. But the UI of menus has changed. I am not able to see the chat tab, the logout link or the privileges link. Are they missing or moved somewhere else?  Changed UI: Does Windows log programs that have been run/called? Is my MAC address public when browsing the Internet? Find all $x$ such that $x^6 = (x+1)^6$. $x^y = y^x$ for integers $x$ and $y$ Is taking the CUA (certified Usability analyst) certification worth it? I see a lot of people taking this  nowadays and I wonder if its actually worth it and how is it received by the industry and does it really help in bringing you up to speed with UX and usability best practices. Can anyone who has taken the exam before provide inputs on its benefits and also its cons if any.  I did see the question  and David's answer did mention that he found it useful but I would like to get more context in what sense people might find it useful and how it could potentially supplement or enhance a career. Determining size of grid cells created by vector grid tool of QGIS? I am working with QGIS 1.8.0 and Im making a vector grid on a map. Does someone know how big are the squares if the grid settings look like in the picture? What are the differences between combat damage, direct damage, and loss of life? I just bought a new MTB and am planning to change my previous MTB into a Road Bike.   How do I do it? What kind of parts do I need to change or add or remove?  I am not looking to for a full conversion into specialised road bike. But like the answers are suggesting, I am looking for a bridge between commuter or road bike. My majors concerns to be met are:   Should be fast enough to compete with road racers over short distance Should be light as a road  Should be as close as possible in as cheap as possible.