File extension validation with python
How to check type of files without extensions in python?
Just received ~70 unsolicited password reset mails from Super User, so abusive... Add a new repository to software sources Can we apply for a Schengen tourist visa while visiting another country on a short-stay visa? We are Indians and will be visiting UK on short-stay visas for about five months.  Can we apply for Schengen tourist visas while we are in London? How do they decide Blu-ray/DVD release date? I think my question is different from .  Some movies' productions release Blu-ray/DVD so early after theatrical release, others will take time. How do they decide for the Blu-ray/DVD release date? Quotient rings of Gaussian integers Are if and whether equivalent in sentences like the ones below?     How to determine if my saddle is too high?   How to determine whether my saddle is too high?         We should check if everything is okay now.   We should check whether everything is okay now. Lightning force:createRecord capture redirect after save Is there a way to use force:createRecord but capture the redirect to the newly created record page that occurs after saving the record? Finally, prevent the redirect from completing?  createRecord : function (component) {     var createRecordEvent = $A.get("e.force:createRecord");     createRecordEvent.setParams({         "entityApiName": "Event__c"     });     createRecordEvent.fire(); } Force a program to run *without* administrator privileges or UAC? Is there any way that I can force a program that normally requires administrator privileges (via UAC) to run without them? (ie: no UAC prompt and no system-wide access.)  Added: Without modifying the executable itself.    In spite of James's answer, I have found a few ways that it can almost be done:   By modifying the executable I can remove the trustInfo entry from the manifest (or the manifest entirely, so I can use an external one), allowing the program to start without UAC. Unfortunately this modifies the executable, so it exits shortly after due to an internal checksum test. By using Process Explorer I can launch it as a Limited User. However this seems to limit it significantly more than I would like (it runs like Protected Mode IE and so can access significantly less than what my standard un-elevated user can). Convert list of ints to one number? File access time not updating in ubuntu 12.04 How to find event listeners on a DOM node when debugging or from the JavaScript code? Converting MultiLinestring to Linestring with PostGIS I have a multiline string and want to convert it to a linestring in order to use some functions that only work with linestrings. I used ST_Dump() and got a collection of my geometries. If I merge them back together, I still get the multilinestring. Should I get the Npoints and combine them together or something, in order to end up with a simple linestring? ST_LineMerge() also does not work on my multilinestring, it returns the same. my example,  MULTILINESTRING((-3.16420835153456 55.9269166007097,-3.164222 55.926918),(-3.1642070167833 55.9269296196706,-3.16421351659546 55.9268662214904),(-3.16421351659546 55.9268662214904,-3.16421636372824 55.9268384509897),(-3.16421636372824 55.9268384509897,-3.16422182573761 55.9267851753802),(-3.16422182573761 55.9267851753802,-3.16422870102352 55.926718114886),(-3.16422870102352 55.926718114886,-3.16423309121073 55.926675293667),(-3.16423309121073 55.926675293667,-3.16423565148822 55.9266503211093),(-3.16423565148822 55.9266503211093,-3.16424103159897 55.9265978443265),(-3.16424103159897 55.9265978443265,-3.16424680776317 55.9265415044985),(-3.16424680776317 55.9265415044985,-3.16425267254583 55.9264843002995),(-3.16425267254583 55.9264843002995,-3.16425541048045 55.9264575949012),(-3.16425541048045 55.9264575949012,-3.16426111146586 55.9264019883556),(-3.16426111146586 55.9264019883556,-3.1642667032531 55.9263474469124),(-3.1642667032531 55.9263474469124,-3.16426957768543 55.9263194101362),(-3.16426957768543 55.9263194101362,-3.16427488261739 55.9262676666359),(-3.16427488261739 55.9262676666359,-3.16428009893088 55.9262167875066),(-3.16428009893088 55.9262167875066,-3.164282741107 55.9261910161221),(-3.1642875546472 55.9261440655823,-3.164282741107 55.9261910161221),(-3.1642875546472 55.9261440655823,-3.16429466890915 55.9260746741522),(-3.16429466890915 55.9260746741522,-3.16430092974527 55.9260136069079),(-3.16430092974527 55.9260136069079,-3.16430822838418 55.9259424170929),(-3.16430822838418 55.9259424170929,-3.16431547242401 55.925871759829),(-3.16431547242401 55.925871759829,-3.16431448732505 55.9258328901507),(-3.16431770120536 55.9257327846001,-3.16431547242401 55.925871759829),(-3.164339 55.925777,-3.16431770120536 55.9257327846001)) Does the Black Panther suit give extra speed? So in Civil War, the Black Panther suit seems to give the suit holder some extra speed, because the guy was running as fast as Bucky and Captain America.  So does it give extra speed? If so, how does that work? double perpendicular symbol (for independence) I found from  that I could use the independence symbol:     \newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}} \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}    I was wondering how this works. Can anybody explain? I don't know the commands mathpalette, rlap, and mkern2mu. I'm building an object detector using HOG features and linear SVM. Some of the regions of the object are more "distinctive" so I would like to give more weight to the features extracted from those regions. (e.g. imagine we want to detect between mugs and glasses, then the most "distinctive" part is the mug's handle)  How could I do this? For sure there should be a more intelligent way than just replicating the features of those "distinctive" regions. Where can I safely store my stuff? Windows 7 Taskbar Icon Highlight Sticks After running Win 7 for some unknown period of time, the taskbar icon highlight starts to stick (video demo here: ). If I restart or kill explorer.exe and relaunch, it goes away.  Any idea what might be causing this? Did Stephen Baxter or Arthur C. Clarke's estate ever comment on continuing "A Time Odyssey"? 2007 book "Firstborn", the third and last book of "" trilogy by Stephen Baxter and Arthur C. Clarke - an "orthoquel" to "2001: A Space Odyssey" - ends with a cliffhanger which obviously implies continuation:      Myra said, “My God.Charlie? ”  Bisesa stared. “Who is ‘we’?”  “We call ourselves the Lastborn. We are at war. We are losing.” She held out her hands. “Please. Come with me now.”  Bisesa and Myra, still hugging each other, reached out their free hands. Their fingertips touched Charlie’s.  A clash of cymbals.   However, sadly, Sir Arthur died in 2008, with no further books forthcoming.  Did Stephen Baxter  or Arthur C. Clarke's estate ever comment on continuing "A Time Odyssey" after 2008?  Wikipedia has no info:     The 2008 Gollancz edition of the most recent book describes itself on the cover as the "Conclusion" of the series, but the plot is not concluded in the book. The immediate threat is averted but the enemy is not defeated, suggesting that further novels in the series were intended. With the death of Clarke, one of the two authors, it is not clear whether these will be written. How to represent it with UNIQUE indexes and foreign keys? "Group" is a group of pupils. "Topic" is a topic of lessons.  To every group corresponds exactly one topic. (So there may be multiple groups per topic.)  To a pupil corresponds multiple groups, but maximum one group per topic.  How to implement this in terms of UNIQUE indexes and foreign keys in MySQL? I tried different options to enable hibernate in Ubuntu 20.04 but nothing is working. How can I enable hibernate option in Ubuntu 20.04?