How to do imbalanced classification in deep learning (tensorflow, RNN)?
Class imbalance in Supervised Machine Learning
Desktop icons rearrange after using remote desktop connection I sometimes remote into my desktop PC (1900x1280) from my laptop (1280x900).  When I do, Windows (Vista) on the desktop PC rearranges all my desktop icons.  I could understand this if the RDP session's desktop size was too small to fit them in, but it's not.  I have about 12 icons, which do fit on the laptop's resolution (I've tried).  Why would Windows rearrange them all like this each time? Check for internet connection with Swift This week I've read two news stories about two different camera lenses that can magnify things that are very far away.  The first is the , which is a point-and-shoot camera that costs $600, has an 83x optical superzoom lens ("the same field of view as a 2,000mm lens on a full-frame camera"), and lets you see the craters of the moon.  The second is the , which weighs 36 pounds, costs $180,000, and can take portraits of people a half mile away.  A non-photographer might ask, "Why would somebody spend their life savings on a gigantic telescope of a lens when you could take far away pictures with a handheld camera for 1/300th the price?"  Well, I am basically a non-photographer, and I would like to ask that question. What does the big one give you that the little one doesn't provide? I understand that small changes in lenses can make a big difference in size and price, but this seems to be of a different scale entirely.   What is going on with the optics of the lenses that makes the small one able to be so small and the big one have to be so...big?   I'm trying to get a basic intuition for what makes lenses different, and I realize I don't understand enough about how lenses work to even know how to compare these apples and watermelons. How can I retain HTML form field values in JSP after submitting form to Servlet? Which media player has seek preview with thumbnails? I was looking for a good video player to replace VLC, something that is as good as vlc but has seek preview. I am tired of fast forwarding in vlc  EDIT: I meant seek preview with thumbnails Authenticate to Stack Exchange using GitHub I've seen sign in methods using  as an authentication provider, for example : (AWS Cloud9)        Is it possible to authenticate into Stack Exchange using this method? At the moment there's other methods such as OpenID, Google, Yahoo and Facebook, but it would be interesting to also have the GitHub authentication. Can .exe and .msi files (Windows software) be installed in Ubuntu? Enable External Sharing Programmatically We have a scenario on which we are creating site collections from a provider-hosted app. Some of these site collections will be used by external users. Is there a way from CSOM (server-side) to enable external sharing on the site collection? I haven't found any resources stating whether this is or not doable.  I'm trying to replicate the settings you can specify at the site collections page on the tenant admin site:    Thanks! Question about how to interpret arbitrary elements I have a question about how to interpret arbitrary elements. When we say:  &quot;let $x$ be an arbitrary integer&quot;  &quot;let $x$ be any integer&quot;  &quot;let $x$ be an integer&quot;   at the beginning of proofs, are we saying:  &quot;let the symbol $x$ represent one of the integers, although it is not clear which specific integer the symbol $x$ represents&quot;.  If not, please let me know how I should think about the above statements. Thank you for your time.  Edit: I had a follow up question to the one I asked earlier. What do mathematicians mean by “arbitrary element” or “any element”. I can understand when mathematicians say “let $x$ be $4$” as this means “the symbol $x$ represents $4$”. Could someone please elaborate on why the specific terms “arbitrary” and “any” are used? For $x$ and $\lambda$ complex, if $|x| \gt \frac{1}{2} + \sqrt{\frac{5}{4} + |\lambda|}$ then $|x^2+\lambda| \gt |x| +1$ Define $f(z) = z \ ^ 2 + \lambda$ and $V = \left\{x \in \Bbb C : |x| \gt \frac{1}{2} + \sqrt{\frac{5}{4} + |\lambda|} \right\}$, for some $\lambda \in \Bbb C$.   Then, if $x \in V$ then $|f(x)| \gt |x| +1$.   I tried the following :   Let $x\in V$ then $|f(x)| = |x \  ^ 2 +\lambda | \ge |x |  \ ^ 2 - | \lambda| \gt (\frac{1}{2} + \sqrt{\frac{5}{4} + |\lambda|}) \  ^ 2 - |\lambda| = 1.5 + \sqrt{\frac{5}{4} + |\lambda|} $.  But this doesn't get me anywhere. I had originally coded the program wrongly. Instead of returning the Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 should = only those numbers between 1 &amp; 20), I have written for the program to display all Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 displays = First 20 Fibonacci numbers). I thought I had a sure-fire code. I also do not see why this is happening.  startNumber = int(raw_input("Enter the start number here ")) endNumber = int(raw_input("Enter the end number here "))  def fib(n):     if n &lt; 2:         return n     return fib(n-2) + fib(n-1)  print map(fib, range(startNumber, endNumber))   Someone pointed out in my Part II (which was closed for being a duplicate - ) that I need to pass the startNumber and endNumber through a generator using a while loop. Can someone please point me in the direction on how to do this? Any help is welcome.    I'm a learning programmer and I've run into a bit of a jumble. I am asked to write a program that will compute and display Fibonacci's Sequence by a user inputted start number and end number (ie. startNumber = 20 endNumber = 100 and it will display only the numbers between that range). The trick is to use it inclusively (which I do not know how to do in Python? - I'm assuming this means to use an inclusive range?).  What I have so far is no actual coding but rather:   Write Fib sequence formula to infinite Display startNumber to endNumber only from Fib sequence.   I have no idea where to start and I am asking for ideas or insight into how to write this. I also have tried to write the Fib sequence forumla but I get lost on that as well. I have one script to allow for one user to run. The string calling it from the command line looks like  ./script path/to/folder -a option='value'   When I try to add it to the other commands in Cmnd_Alias line, sudo blames sudoers file for incorrect syntax. How can I set such commands properly? How to include time factor in a mixed model (investigating the interaction between two factors and time)? $x^2$ is congruent to $-1 \bmod p$ In general, how do you solve $x^2$ is congruent to $-1 \bmod p$, where $p$ is an odd prime and $x$ is an integer.  Specifically, I need to solve $x^2\equiv-1 \pmod{29}$ I want to try to convert a string to a Guid, but I don't want to rely on catching exceptions (   for performance reasons - exceptions are expensive for usability reasons - the debugger pops up  for design reasons - the expected is not exceptional   In other words the code:  public static Boolean TryStrToGuid(String s, out Guid value) {     try     {         value = new Guid(s);         return true;     }     catch (FormatException)     {         value = Guid.Empty;         return false;     } }   is not suitable.  I would try using RegEx, but since the guid can be parenthesis wrapped, brace wrapped, none wrapped, makes it hard.   Additionally, I thought certain Guid values are invalid(?)    Update 1   had a good idea to catch only FormatException, rather than all. Changed the question's code sample to include suggestion.    Update 2  Why worry about thrown exceptions? Am I really expecting invalid GUIDs all that often?   The answer is yes. That is why I am using TryStrToGuid - I am expecting bad data.  Example 1 . I might be parsing folder names, checking to see if the text after the final . is a GUID.  c:\Program Files c:\Program Files.old c:\Users c:\Users.old c:\UserManager.{CE7F5AA5-6832-43FE-BAE1-80D14CD8F666} c:\Windows c:\Windows.old   Example 2 I might be running a heavily used web-server wants to check the validity of some posted back data. I don't want invalid data tying up resources 2-3 orders of magnitude higher than it needs to be.  Example 3 I might be parsing a search expression entered by a user.     If they enter GUID's I want to process them specially (such as specifically searching for that object, or highlight and format that specific search term in the response text.)    Update 3 - Performance benchmarks  Test converting 10,000 good Guids, and 10,000 bad Guids.  Catch FormatException:    10,000 good:     63,668 ticks    10,000 bad:   6,435,609 ticks  Regex Pre-Screen with try-catch:    10,000 good:    637,633 ticks    10,000 bad:     717,894 ticks  COM Interop CLSIDFromString    10,000 good:    126,120 ticks    10,000 bad:      23,134 ticks   p.s. I shouldn't have to justify a question. How to replace an old version of Ubuntu with a newer one from USB/DVD? Am I Running as a Service Blender Cycles Bake Not Looking Like Object in Rendered View I have a couch in Blender that looks like this in rendered view.    I baked it with a combined texture and this is what it came out to be.    This is what it looks like added to the mesh.    Why does the view with the baked image not look exactly like the rendered view?  Does it have something to do with my mesh and faces?  This is my mesh.    This has never happened to me before as I baked a couple things before this which came out perfectly. migrating / merging iphone contacts I have an iPhone 6 (with proper iTunes backup) where all of my contacts where, but I bought a new iPhone 7 and had to initialize it as new iPhone, due to several time-related constraints, so now I have a few but new contacts on my new phone, but none of the older ones, but would be the best practice oriented, for just recovering the old contacts from the iTunes backups?  PS: I still have the old iPhone 6, so it could be used as "temporary storage" if needed. The difference between log and ln $$\dfrac{1}{2}\ln(x+7)-(2 \ln x+3 \ln y)$$  Our professor let's us solve this but i do not understand how $\ln$ works. He says it has same properties with $\log$ but i still don't get it. What's the difference of the two?