I have object and there are some elements i don't want them (ex: 'id'), there is any way to exclude this elements from object in type script.
Say I create an object as follows: let myObject = {   &quot;ircEvent&quot;: &quot;PRIVMSG&quot;,   &quot;method&quot;: &quot;newURI&quot;,   &quot;regex&quot;: &quot;^http://.*&quot; };  How should I remove the property regex to end up with new myObject as follows? let myObject = {   &quot;ircEvent&quot;: &quot;PRIVMSG&quot;,   &quot;method&quot;: &quot;newURI&quot; };
How can I draw outlines around 3D models? How can I draw outlines around 3D models? I'm referring to something like the effects in a recent Pokemon game, which appear to have a single-pixel outline around them: had declared the sentence below as follow: 1) STAR TURN, 2) BEST LINES.      I wish Bernard Cribbins was my grandad. Perhaps he would be willing to   adopt?     Rattigan: “If only that was possible.” The Doctor: “If only that were   possible. Conditional clause.”    Is 'was' after 'I wish', 'if only' and 'if' (in conditional clauses) colloquial?  Does it be used in formal speech and writing? How do I delete a file whose name begins with "-" (hyphen a.k.a. dash or minus)? How do you remove a file whose filename begins with a dash (hyphen or minus) -?  I'm ssh'd into a remote OSX server and I have this file in my directory:  tohru:~ $ ls -l total 8 -rw-r--r--    1 me  staff  1352 Aug 18 14:33 --help ...   How in the world can I delete --help from a CLI?  This issue is something that I come across in different forms on occasion, these files are easy to create, but hard to get rid of.  I have tried using backslash  rm \-\-help   I have tried quotes  rm "--help"   How do I prevent the minus (dash or hyphen) character to be interpreted as an option? Is it possible to have connecting loop lines (like algorithm2e) in algorithmic? Binary Search in Array How would I implement a binary search using just an array? How to make the tick thickness as the axis line? I am trying to make the thickness of the ticks equal to the axis line thickness. That is what I have so far:  \documentclass{article}   \usepackage{pgfplots}  \pgfplotsset{compat=1.5}   \begin{document}     \begin{tikzpicture}     \begin{axis}[         xlabel=Binding Energy (eV),         ylabel=Intensity (a.\,u.),         xtick pos=left,         x dir= reverse,         ytick = \empty,         every x tick/.style={color=black, thin},         tick align=outside,         xlabel near ticks,         ylabel near ticks,         xmin = 96,         xmax = 108     ]         %\addplot[mark=none] table[x=BE,y=cnts] {si2p.txt};         % This data looks similar:         \addplot[mark=none, smooth] table[x=BE,y=cnts] {             BE      cnts             95      1             98      1             99      10             99.5    5             100 6             101 2             108 2         };      \end{axis}     \end{tikzpicture} \end{document}     But if you take a closer look on the ticks on the outside, you'll see that they are somehow clipped or a least thinner. They are also black so the style seems to work for them.    Is this a bug or can I change the clipping region? And as a second question: is thin the correct value for the thickness? ffmpeg working from command line in Terminal but not in an Automator shell script! I have just compiled my own copy of ffmpeg on my system and it's located in the following path:  /opt/local/bin/ffmpeg   When I run the following command in Terminal.app, it runs smooth:  ffmpeg -i /Users/Amit/Documents/input.avi -c:v copy -c:a aac -b:a 384k -strict -2 /Users/Amit/Documents/output.m4v   However, a similar command run as a shell-script in an Automator service fails:  for f in "$@" do     ffmpeg -i "$f" -c:v copy -c:a aac -b:a 384k -strict -2 "${f%.*}.m4v" done   Up until now, I had a pre-compiled build of ffmpeg on my system located at:  /Applications/Scriptlets/   And my Automator shell-script had the full path (/Applications/Scriptlets/ffmpeg) instead of just ffmpeg; and it worked fine. However, today I decided to compile a fresh copy of ffmpeg using MacPorts and removed the earlier version from my Applications/Scriptlets folder. Now, this ffmpeg works fine in Terminal but gives an error whenever I try running it from a shell-script inside of an Automator workflow. Am I doing something wrong here? Please help! I've taken some stock photography of lots of clear bottles, and now want to remove the background (which is white-ish, because at a pinch I could leave it...) so that the bottle becomes transparent with highlighting.  My bottles are clear with different colored liquids with multiple refraction and reflection surfaces.  I am looking for a background color subtraction effect that will allow me to get to transparent (hopefully with some sort of effect/opacity slider).  Ideas that I can't pull off yet:   Combine layer with a color fill layer (keyed off the "transparent color") in some manner to produce some output that could be used as the starting point of a layer mask Same layer combination as above, but somehow translating "pure white" to transparency.   Notes for what doesn't work (Photoshop terminology):   "Color Range" and delete (fuzzy select, but not graded/alpha) - results in harsh lines and only leaves the pure white and dark highlights and shadow refractions/reflections Magic wand selections for the same reason "Background Eraser" because although it is able to only subtract a certain color and leave "the rest", it (like all tolerance based tools) eventually hits a colour slightly outside of the range that it just won't touch.   I'll add more if I can remember what I've found bread that does not get moldy How can a bread have an expiration date of one year into the future?? The bread in questions is Deutsche Küche rye bread (from Aldi).  Yes, it is a dense bread, but it is not dry like a cracker, so there seems to be enough moisture for mold to grow.  There are no preservatives.  Edit (pictures added): iOS: Your passcode is required to enable Touch ID Occasionally, when unlocking my iPhone or iPad, I get the following message:     Your passcode is required to enable Touch ID   Now this is not after a number of failed attempts or turning the device off. The device was used within the last 12 hours. Two of the devices are less than 2 months old, and one is a year old. Everything is up to date. It appears to be happening more-or-less at random.  Does anybody know why this message might appear? What's "Another Way In"? There's a new achievement and I'm stumped as to how to get it:     Start a game without breaking the laboratory wall   I assume it has something to do with the new Gadgets but none of them sound like they'd help. How do I get this achievement? I'm trying to find an alternative to the standard tombstone qed symbol for more informal papers. I initially thought of an empty square with Pub written inside, but what would actually be better would be a small beer mug symbol. (much like the one found in this set of icons )  Unfortunately there doesn't seem to such a symbol in the comprehensive latex symbol list (although many funny symbols can be found there). Has anyone thought about this? Is there any quick-and-dirty solution? Term or phrase describing action occuring when not watching I am trying to create a stacked bar chart above a table, basically identical to the one below.    I have found similar posts such as:   However, my experience is very limited to simple tables and I am struggling to modify this to suit my needs.  Any ideas on how I can achieve such a graph?  Thanks! Sync folder with Android device I would like to have a folder with all my music which is automatically synced on my Android device (Wifi only, plugged in only, like in SugarSync). Is there any hope for this feature to be implemented in the near future.  This would actually make me pay for U1. Is there is any reason to make the permissions on an overridden C++ virtual function different from the base class?  Is there any danger in doing so?  For example:  class base {     public:         virtual int foo(double) = 0; }  class child : public base {     private:         virtual int foo(double); }   The  says that it is a bad idea, but doesn't say why.  I have seen this idiom in some code and I believe that the author was attempting to make the class final, based on an assumption that it is not possible to override a private member function.  However,  shows an example of overriding private functions.  Of course  recommends against doing so.  My concrete questions:   Is there any technical problem with using a different permission for virtual methods in derived classes vs base class? Is there any legitimate reason to do so? For $0 < x < \pi/2 $, prove that $x + \frac{x^{3}}{3} <\tan x $ I proved as follows:  Let $f(x) = \tan x -  x - \frac{x^{3}}{3}.$ Then $f '(x) = \sec^{2}x - 1 - x^{2}$ and $f''(x) = 2\sec^{2}x\tan x-x &gt; \tan x - x,$ since $\\tan x &gt; x,$ $f''(x) &gt; 0$ so $f'(x)$ is increasing. Since $f '(0) = 0,$ $f '(x) &gt; 0$ for all $x \in (0, \frac{\pi}{2}).$ So $f(x)$ is increasing. since $f(0) = 0,$ $f(x) &gt; 0$ for all $x \in (0, \frac{\pi}{2}).$  But my proof seems complex. Is there any simpler way to prove this? looks like someone got happy with the CSS - you can now no longer tell what tab is active, e.g. answer tabs:        Even if you hover over an option - it wont show you what tab is currently selected - it only shows you what tab you are currently hovering over: How to install qt 4.8 from repository? Should you set all the objects to null (Nothing in VB.NET) once you have finished with them?   I understand that in .NET it is essential to dispose of any instances of objects that implement the IDisposable interface to release some resources although the object can still be something after it is disposed (hence the isDisposed property in forms), so I assume it can still reside in memory or at least in part?  I also know that when an object goes out of scope it is then marked for collection ready for the next pass of the garbage collector (although this may take time).  So with this in mind will setting it to null speed up the system releasing the memory as it does not have to work out that it is no longer in scope and are they any bad side effects?  MSDN articles never do this in examples and currently I do this as I cannot  see the harm. However I have come across a mixture of opinions so any comments are useful.