Reverse the given number in php
Reverse of number in PHP not showing correct output
Is there a function to extract the extension from a filename? Compare classifiers based on AUROC or accuracy? I have a binary classification problem and I experiment different classifiers on it: I want to compare the classifiers. which one is a better measure AUC or accuracy? And why?  Raondom Forest: AUC: 0.828  Accuracy: 79.6667 %            SVM: AUC: 0.542  Accuracy: 85.6667 % Recently, the titles to some questions have been displaying as "undefined":    "undefined" is replaced with the question's true title upon refreshing the page. Is this a bug? In Days Of Future Past, Quicksilver spends a lot of time playing with electronics.  In his famous tour de force scene in the Pentagon, he specifically puts his headphones on before running around the kitchen.  But why?  Does the music on his Walkman speed up with him as he uses it, or is it still operating at "normal" speed? Or indeed, does any electronic device that he touches speed up? Some time ago, when I installed Ubuntu, I chose a rather stupid username for my account that I do not want to use anymore. How do I change this (including the name of my home directory, and the name in the terminal) without losing settings for applications? How do I keep permissions and my keys for various authentification (e.g. email, SSH, GPG and more)? What settings could possibly get lost if I changed my username? Are there any free/open source alternatives to Adobe After Effects? I've been a illustrator and graphic designer for a number of years and now I'm looking to go more into motion graphics and visual effects. Is there anything that is open source/free (not a demo, education version or trial) that is as complex and feature-rich as Adobe After Effects but for Linux? I've tried Cinlerra, kdenlive, openshot and Blender and whilst they are good at video editing (and 3d modelling in Blender's case) they fall short in effects and compositing features.  I've also tried , but the project recently closed and the last update was quite buggy.  Also,  doesn't work and hasn't been updated in many many years, so don't mention it ;-) Looking out into the universe means looking back in time - how does that work? This is a question that has been gnawing on me for many years now. Back a long time ago, as I recall in reference to a scene in a popular science show on TV, I was asked the following.  The claim is that when you look out into the universe, you see the universe as it appeared at some past time. (This follows from the speed of light being finite, and looking at objects by observing their emitted light or other EM radiation.) The amount of time that one looks backwards is equal to the distance to the observed object in light-distance (so looking at something ten lightyears away means you are observing it as it was ten years ago).  Matter moves at a rate of speed less than the speed of light (it has to, since matter has mass, even if miniscule at the atomic level). So $v_{mass} \lt v_{EM}$ (probably significantly less, since $v_{EM} = c$).  So let's say you're looking at an object $10^{10}$ lightyears away by observing something for which $v=c$. To the observer, that object appears as it was $10^{10}$ years ago. But the Earth is much younger than $10^{10}$ years and we established that matter moves at a slower speed than EM radiation, so wouldn't the radiation that was emitted $10^{10}$ years ago long since have passed Earth's current position?  If, say, $v_{mass} = 0.5 \times c$ (a big assumption, but bear with me for a second), it would seem that the radiation emitted $10^{10}$ years ago would have passed Earth's current position $10^{10} - (0.5 \times 10^{10}) = 5 \times 10^{9}$ years ago, around the time when the solar system was still forming. Setting $v_{mass} = 0.25 \times c$ (which seems more realistic) means the radiation would have passed "us" around $7.5 \times 10^{9}$ years ago. So how could we be observing it now?  I'm not sure I'm posing this question in the best possible way (I'll admit I do find the concept somewhat confusing), and I'm sure that there's a simple explanation for it all. Just what am I missing?  I did find  which seems peripherally related but not quite the same thing. Qmechanic brought up  but that question seems to be about whether it is so, not why it is so. typeof is an operator and a function I was making this recipe: , which was from the old Lincoln Del, one of my mom's favourite places. I mistakenly doubled the sugar, putting in 1/2 a cup instead of a 1/4 of a cup. Given the 2/3 of a cup ketchup, which was Heinz, the soup turned out way, way too sweet.   Is there any way I can rescue this? Auto-incrementing field in feature class using ArcGIS Desktop? So I'm relatively new to ArcGIS and ArcCatalog.  I have created a field name of PROJECTID in a feature class in a Personal Geodatabase.  The data type is TEXT.  This will be a ten digit ID.  The first five characters will be a acronym.  The sixth character will be a digit that represents the type of feature.  It will be a number.  The last four characters will be numbers that should be incremented starting at 0001.    Example:     WATER-1-0001  Screen shot of the field:   So my question is how can I do this in ArcCatalog.  I've seen some Python code that will autoincrement like the following:  rec=[OBJECTID] def autoIncrement(a):   global rec   return "water" + str(a) + "-" +  format(rec, '04d')   Again I'm a newbie when it comes to ArcGIS . Now I am getting an error NameError name 'OBJECTID' is not defined. How to control the mouse in Mac using Python? What would be the easiest way to move the mouse around (and possibly click) using Python on OS X?    This is just for rapid prototyping, it doesn't have to be elegant. It appears that in anticipation of D&amp;D Next Wizards of the Coast has removed much of the Dungeons and Dragons, 3rd Edition Web content. I didn't perform a thorough search to determine if all the content is removed (e.g. I know the Three Dragon Ante Web enhancement  and the Mind's Eye column about psionic tattoos  are both gone--better not to ask why those are my go-to articles), but it all might be.  What's the best way--and by best I mean both legal and convenient--to continue to access this content? My intuition tells me it's a trade off between speed and security, but how did the standardisation process select these three seemingly arbitrary key lengths (namely, AES-128, AES-192, AES-256). Non-Metrizable Topological Spaces How to ask "If you have any problem then ask me" in polite manner How to determine if Javascript object is an event? Suppose there are two face down cards each with a positive real number and with one twice the other. Each card has value equal to its number. You are given one of the cards (with value $x$) and after you have seen it, the dealer offers you an opportunity to swap without anyone having looked at the other card.  If you choose to swap, your expected value should be the same, as you still have a $50\%$ chance of getting the higher card and $50\%$ of getting the lower card.  However, the other card has a $50\%$ chance of being $0.5x$ and a $50\%$ chance of being $2x$. If we keep the card, our expected value is $x$, while if we swap it, then our expected value is: $$0.5(0.5x)+0.5(2x)=1.25x$$ so it seems like it is better to swap. Can anyone explain this apparent contradiction? Sending the output from 'dd' to awk/sed/grep I'm trying to approximate the computer's write speed using dd:  dd if=/dev/urandom of=/dev/null bs=1K count=10000   which gives the following output  10000+0 records in 10000+0 records out 10240000 bytes (10 MB) copied, 0.746313 s, 13.7 MB/s   How can I get the '13.7 MB/s' into a bash variable? I've tried piping the output from dd to progs like awk, sed and grep to no avail.  Ultimately, I'm calling this via os.system(...) from within a python script. If anyone knows of a more direct way to get a similar result inside python I'd be interested in that also. I'm trying to predict how long a file copy will take, based on the file size.  Any help would be greatly appreciated. Can I still use the older Airport Utility 5.5.3 if I install the 6.0 version of Airport Utility? I read this book in the mid-nineties, probably written in the 80s or 90s.  It’s set in the near future, where the world has experienced a sudden glaciation.  Most of the United States and Europe is now covered with ice.  Civilization has collapsed for the most part. The protagonist is a drifter with strange-colored eyes (yellow, I think).  Because of his weird eyes, he’s never really fit in anywhere.  He moves from place to place just trying to survive, but somehow he discovers that the new ice-age did not occur naturally.  It was engineered by extraterrestrials, to make their work easier.  They’re looking for the plans for a super-weapon - a weapon that can cause any star to go nova.  A rival group of aliens hid the plans for this weapon by encoding the information in the human genome millions of years ago.  The marker to identify humans who carry this gene is - you guessed it - yellow-colored eyes.