For each loop with if statement in Java
How do I compare strings in Java?
Find $f$ if $$ f(x)+f\left(\frac{1}{1-x}\right)=x $$ I think, that I have to find x that $f(x) = f\left(\frac{1}{1-x}\right)$ I've tried to put x which make $x = \frac{1}{1 - x}$, but this equation has no roots in real numbers. This question is a bit more subjective, but I'm hoping to get some new perspective.  I'm so used to designing for certain screen size (typically 1024x768) that I find that size to not be a problem.  Expanding the size to 1280x1024 doesn't buy you enough screen real estate to make an appreciable difference, but will give me a little more breathing room.  Basically, I just expand my "grid size" and the same basic design for the slightly smaller screen still works.  However, in the last couple of projects, my clients were all using 1080p (1920x1080) screens and they wanted solutions to use as much of that real estate as possible.  1920 pixels across provides just under twice the width I am used to, and the widescreen makes some of my old go to design approaches not to work as well.  The problem I'm running into is that when presented with so much space, I'm confronted with some major problems.   How many columns should I use?  The wide-format lends itself to a 3 column split with a 2:1:1 split (i.e. the content column bigger than the other two).  However, if I go with three columns what do I do with that extra column? How do I make efficient use of the screen real estate?  There's a temptation to put everything on the screen at once, but too much information actually makes the application harder to use.  White space is important to help make sense of complex information, but too much makes related concepts look too separate. I'm usually working with web applications that have complex data, and visualization and presentation is key to making sense of the raw data.  When your user also has a large screen (at least 24"), some information is out of eyesight and you need to move the pointer a long distance. How do you make sure everything that's needed stays within the visual hot points? Simple sites like blogs actually do better when the width is constrained, which results in a lot of wasted real estate.  I kind of wonder if having the text box and the text preview side by side would be a big benefit for the admin side of that type of screen? (1:1 two-column split).   For your answers, I know almost everything in the design is "it depends".  What I'm looking for is:   General principles you use How your approach to design has changed   I'm finding that I have to retrain myself how to work with this different format.  Every bump in the resolution I've worked through to date has been about 25%: 640 to 800 (25% increase), 800 to 1024 (28% increase), and 1024 to 1280 (25% increase).  However, the jump from 1280 to 1920 is a good 50% increase in space--the equivalent from jumping from 640 straight to 1024.  There was no commonly used middle size to help learn lessons more gradually.    To help focus the question a little bit, I had a project that was somewhat similar to Atlassian JIRA, an issue management system.  There were about six different types of records the client wanted to keep, all of them could potentially be related to each other.  Gathering data wasn't the core problem, although it did play a part.  The more important side of the problem was creating a system which would suggest potential relationships between the records and helped the analysts recognize patterns in the reported incidents.  There were different types of analysts that focused on the different problem domains, and due to the nature of their exploratory type of work, they didn't know what they wanted.  They just knew they had to make sense of a lot of data, draw correlations, and characterize classes of issues.    (Originally asked here: , but told that this might be more appropriate)    For the bounty: Stretch your minds a bit.  The pat answer "Make everything bigger" has a limit to how useful the answer is.  We are talking about users who have to make sense of a lot of data and find relationships between records.  If I simply bump up the size on everything they are going to be very limited in what they can see on the screen--particularly because the vertical is so constrained. How to line up the pieces at the coast near the shipwreck? In The Witness, I was walking along the coast, and I came upon this:    Now, since I've learned      that mazes can be embedded in the environment,   I see the puzzle here, but I just can't get the pieces to line up well enough.  Standing on the couch and walking all around it doesn't seem to get me a       functional maze.   Where do I need to stand to activate the puzzle successfully? Error: could not start the command in Texmaker when I run makeindex I'm trying to create a nomenclature but I'm getting the following error when I run makeindex:     Error: Could not start the command   This error appears even with this basic example:  \documentclass{article} \usepackage[refpage]{nomencl}  \makenomenclature  \begin{document} Example of nomenclature \nomenclature{A}{Area}  \printnomenclature \end{document}   In the Configure Texmaker editor I wrote: makeindex %.nlo -s nomencl.ist -o %.nls in the makeindex slot. Then I run:   PdfLaTeX MakeIndex   And the error appears... I also tried all suggestions , but nothing seems to work.  I have installed MacTex 2012 distribution, Mac OS X 10.7.5 Declare IDisposable for the class or interface? Is it possible to get the progress of an XMLHttpRequest (bytes uploaded, bytes downloaded)?   This would be useful to show a progress bar when the user is uploading a large file. The standard API doesn't seem to support it, but maybe there's some non-standard extension in any of the browsers out there? It seems like a pretty obvious feature to have after all, since the client knows how many bytes were uploaded/downloaded.  note: I'm aware of the "poll the server for progress" alternative (it's what I'm doing right now). the main problem with this (other than the complicated server-side code) is that typically, while uploading a big file, the user's connection is completely hosed, because most ISPs offer poor upstream. So making extra requests is not as responsive as I'd hoped. I was hoping there'd be a way (maybe non-standard) to get this information, which the browser has at all times. Pluralizing abbreviations where the noun is not the last word Evaluate: $$\int_{-\pi/4}^{\pi/4}(\cos(t)+\sqrt{1+t^2}\cos(t)^3\sin(t)^3)dt$$  I have tried substituting $t=\tan(\theta)$ and breaking up the $\cos(t)^3$ using $\cos(t)^2=1-\sin(t)^2$, but I can't figure it out.  This question is #21 from the Math subject GRE form GR1268. My QGIS project has two layers, one layer is retrieved by Google layer plugin which fetches the static Google map image whose CRS is +proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs and another vector layer is a postgis layer whose CRS is +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs.  I digitalized some polygon features from Google Layers and added it to the vector layer. However, QGIS seems do not make the automatic CRS transformation. How can I change its projection?   Thanks Identifying a resistor with a weird band combination Hiding winforms app from taskbar What is the difference between procfs and sysfs? What is the difference between procfs and sysfs?  Why are they made as file systems? As I understand it, proc is just something to store the immediate info regarding the processes running in the system. How do I access my Windows partition? I have Ubuntu 12.04 installed on my HP G62-453 TU Laptop. I cannot access the contents of my hard disk partition E. How can I use a variable in the replacement side of the Perl substitution operator? How to automatically keep user remembered in Devise Is it possible for information to be transmitted faster than light by using a rigid pole? Is it possible for information (like 1 and 0s) to be transmitted faster than light?   For instance, take a rigid pole of several AU in length. Now say you have a person on each end, and one of them starts pulling and pushing on his/her end.   The person on the opposite end should receive the pushes and pulls instantaneously as no particle is making the full journey.  Would this actually work? I am trying to classify using randomForest classification in GEE . However, I always get the error User memory limit exceeded, so I assume the number  of the feature are too large. Nevertheless, I saw many developers can classify even bigger dataset, so I am wondering if there is a better option there? The code can be accessed via  var fire= ee.FeatureCollection('users/spatola/recovery_rf_1712').map(function(feature){     var num = ee.Number.parse(feature.get('CLC_311'));     return feature.set('CLC_311', num);   }) var indices= ['EVI_mean','Dnbr','NBR2_mean','NBR2_min','NBR2_max','EVI_min','EVI_max']; var fire1=  fire.filter(ee.Filter.notNull(indices)); var fire2= fire1.select('Class_R','Dnbr','EVI_max','NBR2_max','imageId') var bands= ['NBR2_max', 'EVI_max']; var classProperty= 'Class_R'; var random= fire2.randomColumn('random'); var split_train= 0.8; var split_test= 0.2; var trainPartition= random.filter(ee.Filter.lt('random',split_train)); var testPartition= random.filter(ee.Filter.gte('random',split_test));  var RFtrained_c= ee.Classifier.smileRandomForest({  numberOfTrees: 100,  minLeafPopulation:2,  seed: 123,  }) .setOutputMode('CLASSIFICATION') .train({     features: trainPartition,     inputProperties: bands,     classProperty: classProperty,     }) print(RFtrained_c); var dict =  RFtrained_c.explain(); var test = testPartition.classify(RFtrained_c) print(test.first()) When I get exceptions, it is often from deep within the call stack.  When this happens, more often than not, the actual offending line of code is hidden from me:  tmp.rb:7:in `t': undefined method `bar' for nil:NilClass (NoMethodError)         from tmp.rb:10:in `s'         from tmp.rb:13:in `r'         from tmp.rb:16:in `q'         from tmp.rb:19:in `p'         from tmp.rb:22:in `o'         from tmp.rb:25:in `n'         from tmp.rb:28:in `m'         from tmp.rb:31:in `l'          ... 8 levels...         from tmp.rb:58:in `c'         from tmp.rb:61:in `b'         from tmp.rb:64:in `a'         from tmp.rb:67   That "... 8 levels..." truncation is causing me a great deal of trouble.  I'm not having much success googling for this one:  How do I tell ruby that I want dumps to include the full stack? Can I use two 7805 ICs in parallel to get double current capacity? I use a 7805 for a project where the circuit needs a higher current (~2.8&nbsp;A) at 5&nbsp;V. So I assume that if I use both ICs in parallel I can increase the maximum current capacity. Would it work? I have some non-Gaussian distributed variable and I need to check if there are significant differences between the values of this variable in 5 different groups.  I have performed Kruskal-Wallis one-way analysis of variance (which came up significant) and after that I had to check which groups were significantly different. Since the groups are kind of sorted (the values of the variable in the first group are supposed to be lower than the values of the variable in the second group which are supposed to be lower than the values of the variable in the third group and so on) I only performed 4 tests:  Group 1 vs Group 2 Group 2 vs Group 3 Group 3 vs Group 4 Group 4 vs Group 5   I have performed this analysis with two different methods. I started by using Dunn's Multiple Comparison Test but nothing came up significant. On the other hand if I use Mann-Whitney test and correct for the number of tests (4) using Bonferroni, 3 tests come up significant.  What does it mean? Which results should I trust?