I'm trying to interface RS-422 data to the UART on my MCU (TM4C1294ncpdt) to send it through its ethernet interface.  Can anyone help me with how to convert the RS-422 differential signal to be read by the UART?  circuit schematic or what components do i need to do this?
I need to make a converter to go from RS422 full duplex to my Arduino. I have found lots of different chips which I think can do this, but am slightly confused by the terminology. The RS422 device is a laser distance sensor ().  It has RX+, RX-, TX+, TX-. So I have two lines for input and two lines for output.  I could use two RS485 line drivers to achieve the full duplex comms which I need.  There are a lot of chips to do that.  But then on my Arduino (clone: chipkit max32) would I need to use two UART channels? And then alternate which one I am sending each byte on?  The device uses 4 byte instructions. So if I wanted to send an instruction would I send Serial1(firstByte) then Serial2(secondByte), Serial1(thirdByte), Serial2(fourthByte)?   And then receive data the same way? I feel like I am missing something and can do this on one UART channel but am not sure how.
Regarding the recalc in question rep increase what happens due to the cap? When the recalc runs what happens regarding rep capping on particular days? Say I earned 200 solely from questions on one day, will I earn a further 200 when the recalc runs or will I earn zero?  On a similar note if I got no rep from a question upvote on a day will the recalc give me 10, 5 or 0 rep? Determinant of a specially structured matrix ($a$'s on the diagonal, all other entries equal to $b$) I have the following $n\times n$ matrix:  $$A=\begin{bmatrix} a &amp; b &amp; \ldots &amp; b\\ b &amp; a &amp; \ldots &amp; b\\ \vdots &amp; \vdots &amp; \ddots &amp; \vdots\\ b &amp; b &amp; \ldots &amp; a\end{bmatrix}$$  where $0 &lt; b &lt; a$.  I am interested in the expression for the determinant $\det[A]$ in terms of $a$, $b$ and $n$.  This seems like a trivial problem, as the matrix $A$ has such a nice structure, but my linear algebra skills are pretty rusty and I can't figure it out.  Any help would be appreciated. I'm using NetBeans, trying to change the familiar Java coffee cup icon to a png file that I have saved in a resources directory in the jar file.  I've found many different web pages that claim they have a solution, but so far none of them work.  Here's what I have at the moment (leaving out the try-catch block):  URL url = new URL("com/xyz/resources/camera.png"); Toolkit kit = Toolkit.getDefaultToolkit(); Image img = kit.createImage(url); getFrame().setIconImage(img);   The class that contains this code is in the com.xyz package, if that makes any difference.  That class also extends JFrame.  This code is throwing a MalformedUrlException on the first line.  Anyone have a solution that works? For a vector space $V$ and a linear operator $f : V \to V$, under what conditions does $V = \ker(f) \oplus \operatorname{im}(f)$?  Is it always true, or only in special cases?  Edit: $V$ is finite dimensional. How do spell lists change if the party levels up without taking a long rest? I'm playing in a D&amp;D 5e campaign with a bard and a wizard.  Our most recent session ended while we were in the middle of exploring a dungeon. The DM informed us that we leveled up from 4 to 5.  The wizard and bard were excited to get level 3 spell slots for the first time. They began discussing the level 3 spells they were looking forward to casting at the beginning of the next session. I asked, "Don't you guys need to have a long rest before you can cast new spells, though?"  The bard argued that he doesn't need a long rest, because he learns spells immediately upon leveling up and doesn't need to prepare them.  The wizard argued his "number of spells available" count increased immediately upon leveling up, and it wouldn't make much sense if his actual number of prepared spells stayed the same.  Ultimately, the DM decided that it would be more fun if everyone got access to their new toys at the same time. He permitted the wizard to add a level 3 spell to his prepared spell list.  Who is right? Do bards (and other casters that do not prepare spells) get access to new spells more immediately than wizards (and other casters that prepare spells)?  I looked at , but "Can a mage use his newly gained 2nd-level spell slot?" seems like a separate matter from "Can a mage use a newly gained spell?". Is there a way to find the number of accepted answers you have, other than manually counting each one? I want to do this using the Math.Round function Links in newsletter preview link to YouTube The problem: The links at the bottom of the Stack&nbsp;Exchange newsletter link to a YouTube video instead of the right place on the website. I´m not sure if this is an oversight or a clever hack.  Screenshot: Frying Oil Reuse What are some guidelines or rules with regard to filtering and reusing (vegetable/canola/sunflower) oil that has been used for deep frying?  Is it safe and acceptable under some circumstances to filter and keep oil? If so, does it depend on which foods were fried? How long can the filtered oil for be kept for?  Or, is it never appropriate? If not, are the reasons health or flavour related? or both? Intersection of Adiabatic curves Can paths of two adiabatic process intersect on a plot? This question is for both reversible and irreversible processes. There are some , but they mostly address only for reversible adiabatic processes. Also, I want a physical interpretation of the processes that is, if they don't intersect then why don't and what it would be like, physically for a system. I am a new user for Ubuntu. I downloaded 13.10 yesterday and made a bootable USB with universal USB installer on my Lenovo IdeaPad Z580 laptop which is now using UEFI; everything appeared OK.  When I booted from the LiveUSB I got the choices of trying or installing Ubuntu but both of them keep giving me these error:  [ 1.929082] kernel panic-not syncing vfs unable to mount root fs on unknown-block (0.0)   Please tell me what is going wrong? I'm trying to update my system using apt-get, but it's giving me this error  Err http://bd.archive.ubuntu.com raring Release.gpg          Could not connect to bd.archive.ubuntu.com:80 (116.193.170.18), connection timed out Err http://bd.archive.ubuntu.com raring-updates Release.gpg   Unable to connect to bd.archive.ubuntu.com:http: Err http://bd.archive.ubuntu.com raring-backports Release.gpg   Unable to connect to bd.archive.ubuntu.com:http: Reading package lists... Done W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/raring/Release.gpg  Could not connect to bd.archive.ubuntu.com:80 (116.193.170.18), connection timed out W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/raring-updates/Release.gpg  Unable to connect to bd.archive.ubuntu.com:http: W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/raring-backports/Release.gpg  Unable to connect to bd.archive.ubuntu.com:http: W: Some index files failed to download. They have been ignored, or old ones used instead.   I am not a Ubuntu master but I can understand this is not a computer error. Any clues on how to fix it? Is there a difference between a LED Backlit and LED HD  Display on laptop monitor? or are they the same that is good for the eyes I can't play online. I can only play solo. I have bought Minecraft so it should work fine, but, when I try to connect to a server, it says:  Internal client error: java.net.UnknownHostException: session.minecraft.net   I have tried over 20 different servers and it says the same thing for every single one.   Note: These are not Hamachi servers. I'm attempting a direct connection. How to recover a deleted NTFS partition with data I am on Ubuntu 12.04 64-bits  I accidentally deleted a NTFS 255 GB partition using Gparted, and yes it contains LOTS of important data.  Upon realizing the deletion I haven't yet created any file-system on it. So it still shows Unallocated.    I tried Testdisk , but it shows entire partitions created from the beginning.  This sdb is my secondary drive with Xubuntu and Kubuntu on it. And that 255 GB NTFS  partition was cross platform storage drive.  I am currently in sda with Ubuntu and Win7 in dual boot, which enables me to use it as Safe recovery option rather then Live USB drive.   First ,  should i allocate it to ? file-System for better recovery .  Second , i really need to recover data from this drive so please give me possible  suggestions and proven methods of data recovery.  Third ,does Testdisk requires deleted partition to be allocated for its recovery .  I am currently trying the answer seen here  with Testdisk scanning for partition second time, hoping to recover it.   It looks a duplicate but i can't confirm if the OP got it right. Since my first doubt is to allocate it or not.  If any clarification required please do comment ,i will add it.  Edit: TestDisk deeper search results.      The following partitions can't be recovered:          Partition               Start        End    Size in sectors     &gt;  HPFS - NTFS          22241 107 11 55592   3 27  535777280        FAT32 LBA            274460 158 19 460576 228 16 2989957948  NTFS, 274 GB / 255 GiB &amp; for FAT32 LBA 1530 GB / 1425 GiB So I am asked to find all the isomorphisms between $G = (\mathbb Z_4,+)$ and $H = (U_5,*)$.  I solved it as follows: we will have two isomorphism corresponding to the two generators of $U_5$.  The first isomorphism : $\phi([x]_4)$ = $[2]_5^x$   The second isomorphism is: $\phi([x]_4)$ = $[3]_5^x$   Notice that [2] and [3] are the only generators of $U_5$ one can check it systematically or use the fact that $a^m$ is a generator iff gcd(m,4) = 1.  So I just wanted a verification of my work I showed that they are bijective, well defined, and is a homomorphism. I am using scikit learn  to build a Random Forest classifier.  I have heard that it might be possible to build a single decision tree from a Random  Forest. The suggestion  is that although the decision tree may not be as good a classifier as the Random Forest it may be better than the decision tree you would get by using the standard method.  However I haven't been able to find this method online. Does it exist?     My question is not about extracting one  of the decision trees from a Random Forest. It is asking about a method to construct a new decision tree from the whole Random Forest, perhaps by combining the trees in the Random Forest somehow. I am a Ph.D. dropout with a one year of career gap. I want to return to academia, but now  I have realized that it was perhaps the biggest mistake to take a gap after quitting my Ph.D. The purpose of taking a gap was to work on my communication skills and get a  new perspective on my work and my career in science. This could have been done within a period of 2-3 months but it became one year long because of my own recklessness. I allowed myself to distract from my goal and I started working on my hobby i.e. Painting. I lost myself there and completely lost track of my time. I was really enjoying everything about this new venture. I took it as a challenge to become better at my skills in painting. Eventually, I became the best in my group and got lots of appreciation. But then, I lost my interest while realizing that there was no further challenge and all there was left is to work and work while crafting your art which was never going to be perfect. It made me realize that what I actually love is to take the new challenges and work on myself. To be an artist was never a career option for me, all I wanted was to learn the skills. That's it!   While counting my achievement in science, I  realized that it was an irresponsible thing to take a gap in doing something that has nothing to do with science. Earlier I had a scholarship and a very competitive mind that has led me to get a Ph.D. position in one of the best labs in the country. Now I don't have the scholarship. I want to go back to my world of research where I was accelerating exponentially. I want to tackle the challenges of science with a new perspective and better skills. I want to be productive more than earlier and ready to take all the tough challenges.  But I feel embarrassed about my past mistake. Because of this, I come across as someone who is not sincere about her career. But I can't help it because the truth is that I did behave insincerely by losing track of my time.  I should have been conscious enough to realize the consequences. Now, what do I do? The past has gone and the vision of the present is crying for a better future. How do I make things better like before? What's the difference between Normalization and Standardization? I have this annoying problem in Gmail. Spammers are by-passing the Gmail spam filters and are so clever that I am not able to create a manual filter of my own to block them. They are sending me junk mails from e-mail IDs of the form:  Jewelskart@greatestjewels.in via watchstore.cleanmail.in  Shoppingkart@shoppers.in via watchstore.cleanmail.in   In general,  something@somethingelse.in via watchstore.cleanmail.in   Now, I cant set a filter for each and every mail as they are from different IDs. The common part is the via address which is watchstore.cleanmail.in. But when I try creating a filter with watchstore.cleanmail.in in From field, Gmail doesn't list these emails. In short, the filter is not able to detect via addresses.  Report Spam/Unsubscribe options aren't working.  How can I get rid of these annoying spammers?