Whats the purpose of 0R in Sonoff POW I'm designing my own Sonoff with ESP32, with power monitoring capability. Now before I start my own design, I took a look at Sonoff design. In the Sonoff POW the power metering IC has a 0R resistor, while the datasheet of HLW8012 did not have any 0R resistor. The 0R an an SMD 1206 resistor, and I don't quite understand its purpose.  What's the purpose of 0R here?  Moreover, Is the transformer enough to make the Mains isolated from the power supply, or we should go for extra safety and mains isolation stuff?
In HLW8012 where should I connect the reference voltage (GND) In the , the both 33nF capacitors , 1K resistor and 0.1uF capacitor are connected to GND. I'm not sure where should I connect those ends of components marked with GND symbol, (To Live, To Natural or the DC GND). I can't read Chinese, I don't really know what everything mean there.  Live directly connects to the shunt resistor and this means that live is also GND (0 volt reference) for the chip? Should I connect those end of components marked as GND symbol to Live wire?
Questions with no close votes appearing in the close vote queue? I've just been offered the wonderful opportunity to review .        ... but on closer inspection ?        Is this  (e.g I'm assuming this post did previous have a close vote, but has now aged away in ways I don't understand), or should questions with no active close votes be removed from the queue.  p.s. If it's , please expect my  asking for this not to be the case ;). I tried to use xrandr to set 1680x1050 as a new mode to VGA output, but it says:  sudo xrandr --addmode VGA-0 1680 X Error of failed request:  BadMatch (invalid parameter attributes) Major opcode of failed request:  140 (RANDR) Minor opcode of failed request:  18 (RRAddOutputMode) Serial number of failed request:  35 Current serial number in output stream:  36 In shell scripts used for unit testing with dynamic libraries in a directory other than the typical @rpath, I have previously been able to set DYLD_FALLBACK_LIBRARY_PATH to set the directory containing the libraries. Under 10.11.1, bash seems to ignore attempts to set this environment variable:  $ sh -x testscript.sh + DYLD_FALLBACK_LIBRARY_PATH=/Users/something/testinglibs + export DYLD_FALLBACK_LIBRARY_PATH + exec printenv   and DYLD_FALLBACK_LIBRARY_PATH is not present in printenv's output.  Is this a security-related hack in 10.11's shell? I haven't been able to find this change documented in man pages or online. How can I correct this code to get an answer? How to append something to an array? How do I append an object (such as a string or number) to an array in JavaScript? Table of Contents for set of PDF files How to make Table of Contents for a set of PDF files?  Here's my code!  \documentclass{book} \usepackage{pdfpages} \usepackage[pdfauthor={&lt;somename&gt;},pdftitle={&lt;sometitle&gt;},pdftex]{hyperref} \usepackage{fancyhdr} \usepackage{tocloft} \usepackage[margin=0.5in,bottom=0.75in,top=0.75in]{geometry}   \pagestyle{fancy} \renewcommand{\headrulewidth}{0.4pt} \fancyhead[L]{X Y Z} \fancyhead[R]{} \begin{document}  \tableofcontents \newpage  \clearpage \phantomsection \includepdfset{pages=-,pagecommand=\thispagestyle{fancy}} \addcontentsline{toc}{chapter}{SAMPLE PDF 1\\ \textit{description}} \includepdf[pages=-]{template1.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 2\\ \textit{description}} \includepdf[pages=-]{template2.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 3\\ \textit{description}} \includepdf[pages=-]{template3.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 4\\ \textit{description}} \includepdf[pages=-]{template4.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 5\\ \textit{description}} \includepdf[pages=-]{template5.pdf}  \end{document}   Here's the output.    My problem is that the page number is not aligned with the title, it is aligned with the description. Also I'd like to put dots.   My desired output looks like this: How to change default window background color in Windows 10? How many named characters died in Avengers: Infinity War? How many named characters have died       and/or disintegrated      by the end of Avengers: Infinity War. It is difficult to speculate who died on         Xandar and the Asgardian ship.       So restrict it to on-screen deaths only. Chrome unity shortcut acting up Whenever I click on my chrome shortcut I get a new window (as expected) but I also get a new Unity entry with a different icon (one from an iconset I had been using before upgrading to 14.04 - don't really remember the name). The new unity entry does not seem to originate from a correct .desktop entry because all the submenus are missing from it (New incognito window, New Window etc.) and it has a permanent tag '(1) Facebook' no matter the window title (see attached picture).  I have uninstalled and reinstalled chrome in hope that it would help which it did until restart but now I get the same behaviour.  Note that I haven't altered any .desktop files regarding chrome and I can only find one file:  /usr/share/applications/google-chrome.desktop which seems to be correct (with submenus etc.) Very large log files, what should I do? Tips to extend battery life for laptops and notebooks List comprehension with expensive computation Why is there an emission of gamma rays? When a spontaneous radioactive reaction happens, there is an emission of gamma rays (in most cases) What causes this emission? Use of *args and **kwargs the slash (/) after a directory name on shell commands I have a little question here.  If I have two files, say filea and fileb, mv filea fileb would   delete fileb rename filea to fileb   Then if I have two directories, say dira and dirb, mv dira dirb would   move dira into dirb (it will become dirb/dira)   Noting that in both cases there are no notice or message, then this is pretty inconsistent to me. I think mv dira dirb should just overwrite dirb with the contents of dira (or merge the two directories under a directory named dirb).  I remember reading somewhere that a directory name with a slash (like dira/) is treated like a directory, and name with no slash (like dira) is treated like a file (to certain extents, of course). Anyway now I want to make the shell (zsh and possibly bash) respect my notation of a directory by using a slash. Is there a terminal option which enable me to enforce that?  To clarify, here is my desired behaviour:   mv dira dirb results in dirb being overwritten with the contents of dira mv dira dirb/ results in dira being moved into dirb (in dirb/dira)   Has anyone thought the same way as me? Or am I just weird? Currently my bibliography says "Literatur" (german). But I want something completely different there. How can I achieve that? Undercooked beans in chili? I made a bit of a mistake, being a lazy bachelor and inexperienced at cooking.  I was making chili and when it came time to add beans I discovered I didn't have any canned beans.  I did however have some dried beans.  I decided to save time and add these directly to the pot of chili and add some water.  However, after much simmering the beans maintain a certain unpalatable crispness.  I have also read that undercooked beans contain a chemical lectin which can cause stomach discomfort.  I have also read that beans should be soaked, the water discarded to remove the lectin, and then boiled to cook them.  Is there any way to salvage this?  Should I just continue cooking the chili for hours?  Will I have to throw out my potentially delicious chili? ^@ spam in tty (but seems to be system-wide) I recently noticed some weird behavior on my GNU/Linux machine. I've been trying to narrow it down but I am unsure where to go next. My setup uses the following:   i3 gdm arch systemd grub2 pulseaudio 4.13.3-1-ARCH   Here is how it manifests iself:   when trying to resize panes in i3 (alt+right click and hold) the action will be randomly canceled (happens on key presses) alt+dragging windows meets a similar fate booting to tty periodically adds ^@s to the login prompt, I'd estimate them to be ~0.5s intervals in tty I can see those being passed to vim when I open the command bar (:) using a pager like less in tty mode and searching with / will result in  (?) being spammed htop's search (/) is instantly canceled by the periodic keypress  holding a key and trying to have it be repeated (such as holding space) will stop the other occurrences from happening (e.g. only one or two happen) any tooltip (such as chrome tooltips) get instantly closed because of key presses   Here is what I have tried:   tried switching DE temporarily (gnome, cinnamon, xfce) tried killing programs one by one until I was left with a tty session and essentially systemd services + pulseaudio tried booting on an arch livecd - problem does not manifest  overriding grub2 with init=/bin/bash drops me into a shell where the problem does not manifest I have tried pressing all keys to verify it wasn't a hardware problem, however previous steps point to it not being hardware I have made a diff of dmesg, from the init=/bin/bash and the regular boot - the main difference seems to be systemd being started in the regular boot Made a diff of lsmod from init=/bin/bash and regular boot, tried to rmmod modules that seemed related   My system is up to date, I'm not quite sure what other steps I can do to track this down. Any other debugging tips? Recover EXT4 partition I was trying to resize my EXT4 partition and something went wrong. I lost it. The space in once consumed is now being represented as Unallocated. How do I recover the partition? The  doesn't give me much hope, but I'm hoping it's an undocumented (and/or GNU-specific) feature.