Images in user profile fills width in the iOS app
Inline image alignment issue for app and mobile web
I am interested in finding out how confident my model (say Logistic Regression) is in predicting the label of a new data point. For example, if it is not confident, I better abstain from making a prediction.   Logistic Regression outputs probabilities, which gives you a notion that there is confidence in prediction. But in fact, it is not. $P(y|x)$ being 0.3, doesn't tell me that the model is confident in its prediction or not. All, we can say is that it believes 100% that class A is 0.3 and other class is 0.7.  Can we use confidence intervals of LR as some sort of confidence in prediction? E.g., larger the difference between upper and lower bound for a particular data point, less confident it is, and vice-versa?  If not, how can we build confidence in our prediction? Can anybody guide me to some paper or field of study? Execute Java from command line How to get week number in Python? If I insert a flash drive and try to drag any files onto desktop - nothing happens.  Or from any other folder.  Drag 'n copy only works if you open desktop in nautilus ("show desktop in files").  I already ran the command:  gsettings set org.gnome.nautilus.preferences use-experimental-views false   It didn't help. How to fix this? Attending graduate school at my undergraduate university I've been told by numerous people that (1) my undergraduate university will be disinclined to bring me on as a graduate student, and that (2) it's a bad idea to attend grad school where you completed your undergraduate degree, anyway.  Is that true? If so, why? Installing node with apt-get or downloading the Linux Binaries (.tar.gz) When I dip a paper towel in a cup of water the water gets drawn up due to . How is this reconciled with conservation of energy, as it would seem on the surface that the potential energy of the system has gone up with no work being done? I am looking for an animated series, shown in the 90s. I remember an episode where the boy went into VR and fought a medusa-like monster.  It may be that this was the premise for the whole series: That the children heroes go into VR every time to fight the evil guys.   I am not sure if the whole series were computer-animated but surely there were such elements together with classic animation.  The style of the series was quite dark and cool for teenage boys. Convert string to Title Case with JavaScript Is there a simple way to convert a string to Title Case? E.g. john smith becomes John Smith. I'm not looking for something complicated like , just (hopefully) some kind of one- or two-liner. How can two dates be compared in a shell?  Here is an example of how I would like to use this, though it does not work as-is:  todate=2013-07-18 cond=2013-07-15  if [ $todate -ge $cond ]; then     break fi                              How can I achieve the desired result? How can I read a large text file line by line using Java? Why does no physical energy-momentum tensor exist for the gravitational field? Starting  with the Einstein-Hilbert Lagrangian  $$ L_{EH} = -\frac{1}{2}(R + 2\Lambda)$$  one can formally calculate a gravitational energy-momentum tensor   $$ T_{EH}^{\mu\nu} = -2 \frac{\delta L_{EH}}{\delta g_{\mu\nu}}$$  leading to  $$ T_{EH}^{\mu\nu} = -G_{\mu\nu} + \Lambda g_{\mu\nu} = -(R_{\mu\nu} - \frac{1}{2}g_{\mu\nu}R) + \Lambda g_{\mu\nu}. $$  But then, in the paragraph below Eq. (228) on page 62 of  paper, it is said that this quantity is not a physical quantity and that it is well known that for the gravitational field no (physical) energy-momentum tensor exists.  To me personally, this fact is rather surprising than well known. So can somebody explain to me (mathematically and/or "intuitively") why there is no energy-momentum tensor for the gravitational field? Generate a log of all the installs on a system (whether apt-get/yum/pip/npm/...) I have a Redstone Power loop that connects to a Command Block that is set to kill all entities except for myself (/kill @e[type=!Player]), because I'm building a creative map, but don't want slimes all over the place. Problem is if I want to place an Item Frame than the Command Block kills it.  So, is there anyway to exclude items from getting deleted, or make it so it will only target mobs? Fetch the row which has the Max value for a column Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date. Is it safe to set xp_cmdshell value 1? I need to use xp_cmdshell in one of SQL job.So is it safe to reconfigure xp_cmdshell to 1 or can i set value 1 in the starting of SQL statements and set it back to 0 in the end of SQL Statement ? a 2d planet in the center, where the players will be able to walk on it and also will be affected by center gravity. planet will be static and there won't be any other planets. so;  Is there a way that I can change the gravity position? yes you can adjust gravity via project settings but I want it to be in the middle x,y,z(0,0,0)  I have tried creating my own gravity but it wasn't very useful because objects wouldnt fall, stand on foot and also in contact with another object they would vibrate instead of standing still. (if they stand on the planet they would vibrate)          private void FixedUpdate() {     foreach(GameObject item in grav)     {         Attact(item);     } }  private void Attact(GameObject gmf) {     Rigidbody2D rgg = gmf.GetComponent&lt;Rigidbody2D&gt;();      Vector3 direction = rg2d.position - rgg.position;     float distance = direction.sqrMagnitude;      float forceMag = (10 * rgg.mass) / distance;     Vector3 force = direction.normalized * forceMag * 10;      rgg.AddForce(force); }   I can create a script that will change the gravity by the opposite of the object's position. this does work but I cannot see any way to do it for more than one object. Where to ask Question that can be flagged too broad or opinion based I came across the following question:    This can be easily flagged for too broad or opinion based, but I wonder on which stack-exchange site can one ask answers for such a question? Regular expression to match DNS hostname or IP Address? Does anyone have a regular expression handy that will match any legal DNS hostname or IP address?  It's easy to write one that works 95% of the time, but I'm hoping to get something that's well tested to exactly match the latest RFC specs for DNS hostnames. I am Peruvian, and will study in the Turkish Republic of Northern Cyprus for two years.  As a South American, what problems may I have if I decide to study in the TRNC, as it is recognized only by Turkey?  What if, having been in the TRNC, I decide to travel to the EU (Amsterdam) for summer vacations? Would I encounter any problem entering The Netherlands, a member of EU, after having been in the TRNC?  I have read that many tourists (Russians and Asians for now) are deported mostly because they go from Northern Cyprus to the Republic of Cyprus. Cyprus, a member of the EU, believes that those entering the country from the north are illegal immigrants. Does this rule apply to Cypriot internal issues only, or does it extend throughout the EU? Will it cause problems for my intended travel to Amsterdam?