I want a command block to say something
How To Get Command Blocks Talking in Chat
Using Regular Expressions to Extract a Value in Java I have several strings in the rough form:  [some text] [some number] [some more text]   I want to extract the text in [some number] using the Java Regex classes.  I know roughly what regular expression I want to use (though all suggestions are welcome). What I'm really interested in are the Java calls to take the regex string and use it on the source data to produce the value of [some number].  EDIT: I should add that I'm only interested in a single [some number] (basically, the first instance). The source strings are short and I'm not going to be looking for multiple occurrences of [some number]. I was thinking about writing a partial derivative macro that has a similar syntax to the . ()  The syntax could be like this:   \D{f}{x} expands to \frac{\partial f}{\partial x} \D{f}{x,y} expands to \frac{\partial^2 f}{\partial x\,\partial y} \D{f}{{x,2},y} expands to  \frac{\partial^3 f}{\partial x^2\,\partial y} et cetera for any number of derivatives.   Bonus points for an optional argument so that for instance   \D[subscript]{f}{{x,2},y} expands to f_{xxy}   I looked at the  package but the syntax is a little tedious.  For instance, to get \frac{\partial^3 f}{\partial x^2\,\partial y} with that package I would need to do \md{f}{3}{x}{2}{y}{}.  And it doesn't generalize to three variables.  Before I dive in I thought I'd ask the hive and see what's been done. Remote Desktop Settings Missing I'm trying to setup remote connection to my Windows 10 machine. During the setup I noticed that my installation is missing some settings all the tutorials have. Can anyone tell me why I'm stupid and what I should do? Below you can find a screenshot of what I'm talking about. The first image is how it should be. The second picture is a screenshot on my machine.      Edit: After popular request, my windows version: I have  a  requirement where a future method need to be called from batch apex ,I came across various articles stating that a future method could not be called from the batch. Is there any alternate solutions for that? Can I use virtualbox with a 64 Bit image in a 32 bit host I have Virtualbox 4.1.20 in Ubuntu 12.04 32 Bit (With PAE) and I want to run Ubuntu Server 64 Bit on the Guest. Is this possible?. I ask since I get the following warning:    I want to make sure that there is no option to "emulate" this. I have a 64 bit CPU that supports virtualization. The Intel DZ68DB motherboard with an Intel I7 2600 CPU. Debugging a custom-bib bst file that crashes on book items I created my own bibliography file with custom-bib (makebst), but when I run it with a reference to a book I get:  $ bibtex PhD [...normal output] Database file #1: PhD.bib You can't pop an empty literal stack for entry oecd2001brc while executing---line 1504 of file wdsphd.bst   The only thing on that line is a high-level ITERATE call.   The style was created with these options:  %% merlin.mbs  (with options: `head,exlang,annote,seq-no,nm-rvvc,dt-beg,yr-par,xmth,tit-qq,qx,bt-qq,vol-bf,volp-sp,num-xser,pub-date,isbn,issn,doi,english,pp,ord,url,url-nl,nfss,,{}') %% english.mbs  (with options: `exlang,annote,seq-no,nm-rvvc,dt-beg,yr-par,xmth,tit-qq,qx,bt-qq,vol-bf,volp-sp,num-xser,pub-date,isbn,issn,doi,english,pp,ord,url,url-nl,nfss,,{}') %% merlin.mbs  (with options: `tail,exlang,annote,seq-no,nm-rvvc,dt-beg,yr-par,xmth,tit-qq,qx,bt-qq,vol-bf,volp-sp,num-xser,pub-date,isbn,issn,doi,english,pp,ord,url,url-nl,nfss,,{}')   The code for book items looks like:  FUNCTION {book} { output.bibitem   author empty$     { format.editors "author and editor" output.check     }     { format.authors output.nonnull       crossref missing$         { "author and editor" editor either.or.check }         'skip$       if$     }   if$   format.btitle "title" output.check   crossref missing$     { format.bvolume output       new.block       format.number.series output       new.sentence       format.publisher.address output     }     {       new.block       format.book.crossref output.nonnull     }   if$   format.edition output   format.isbn output   format.doi output   new.block   format.note output   fin.entry   write.url }   And this is the entry:  @book{oecd2001brc,  author = {OECD},  doi = {10.1787/9789264193550-en},  isbn = {9789264186903},  publisher = {OECD Publishing},  title = {{Biological Resource Centres: Underpinning the future of life sciences and biotechnology}},  url = {http://www.oecd-ilibrary.org/science-and-technology/biological-resource-centres\_9789264193550-en},  year = {2001} }   Is there a way to get a better stacktrace from bibtex? What I have now doesn 't really tell me what is going on. If it can be fixed simply, help would also be appreciated. Can you trip as part of a Tome of Battle Maneuver? How do I call legacy PHP files? I am unable to call PHP files inside the Drupal directory. My task is maintaining staff's old pages on the new platform. With pages written on clear HTML, there is no problem: I place files in a folder I created (domain.org/sites/default/files/share/staff_folder).  In sites/default/files/.htaccess I added DirectoryIndex share and now the link to the domain.org/sites/default/files/share/staff_folder/index.html can be used. When I import pages written in PHP, e.g. calling domain.org/sites/default/files/share/staff2_folder/index.php, I get a 403 error:     Forbidden      You don't have permission to access /sites/default/files/share/staff2_folder/index.php on this server.   While /sites/default/files/share/staff2_folder/index.html still works. Reporting Mann-Whitney U-Test without homogenity of variance The Mann-Whitney test requires homogeneity of variance if a median difference is suppossed to be statistically significant.  In case homogenity of variance is not met, but the test is significant:  Which aspects of the test can I report? My chain broke and in a moment of silliness (I was cold wet and slightly annoyed)  I threw the broken one away before thinking about measuring the new one.  Is there a guide to getting the chain length/tension correct ?  It's an 8 speed road bike (Shimano Sora back, double ring front) Why didn't Skynet kill Kyle Reese? Start modal operator from a click in panel I want to start a modal operator by clicking a button in a panel in the properties region. It should then stop when I click somewhere in the 3D viewport. I want to execute some code when I start and finish the operator (see the code below). I tried modifiyng the modal operator template with an execute method to start the modal operator. But the now the context.space_data.type is always &quot;PROPERTIES&quot; because that's where the panel is located, I guess. Is this a bad way of doing what I want? class MY_OPERATOR_OT_click_on_3dview(bpy.types.Operator):          bl_idname = &quot;mesh.click_on_3dview&quot;     bl_label = &quot;Click on 3D&quot;      def modal(self, context, event):                  if context.space_data.type != 'VIEW_3D':             return {'PASS_THROUGH'}                  if event.type in {'MIDDLEMOUSE', 'WHEELUPMOUSE', 'WHEELDOWNMOUSE'}:             # allow navigation             return {'PASS_THROUGH'}         elif event.type == 'LEFTMOUSE':             # DO ALL THE POST-SELECT STUFF             return {'FINISHED'}         elif event.type in {'RIGHTMOUSE', 'ESC'}:             return {'CANCELLED'}          return {'RUNNING_MODAL'}      def execute(self, context):         # DO ALL THE SETUP STUFF           context.window_manager.modal_handler_add(self)              return {'RUNNING_MODAL'}            def cancel(self, context):         print(&quot;CANCEL???&quot;) Change Text Color in Blender Game Engine? I want to change the color of some text in my game. I've tried adding materials, but whenever I press P to play the game, the text stays the same white color. Any ideas? Java Hashmap: How to get key from value? contractive property A topological property $\mathcal{R}$ is contractive if $(X,\tau)$ has property $\mathcal{R}$ and if $\tau^{\prime} \subset \tau$, then (A, $\tau^{\prime}$) has property $\mathcal{R}$.  A topological space is $T_B$ if each compact subset  is closed.  A topological space is called a US-space provided that each convergent sequence has a unique limit.  A topological space is called a C- C-space provided that  the  compact subsets  are precisely the closed sets.     Is property C-C , US contractive,  hereditary?      Is property $T_B$  contractive? Avoiding Error 1325 EsriPyFldr not valid short file name when uninstalling ArcGIS for Desktop? I am trying to uninstall ArcGIS 10.3.1 for Desktop from Windows 7 SP1 using Uninstall a program and I am receiving an error message (pictured below):     Error 1325. EsriPyFldr is not a valid short file name.   The error message dialog appears just after:     Computing space requirements   seems to complete.  If anyone else has encountered this, then have you been able to find a way to get past it and uninstall ArcGIS 10.3.1 for Desktop?  My machine has what I would call a vanilla install of ArcGIS 10.3.1 for Desktop and ArcGIS Pro 1.1.1 so there are Python versions 2.7.8 and 3.4.1 as a result. ArcGIS Earth Beta is also on the machine.     I have made a posting on the same issue to   After running this utility () unsuccessfully (it hung for two hours before I killed it) the error message when trying to uninstall shifted to:     This action is only valid for products that are currently installed     ArcMap 10.3.1 continues to start fine and doing  wmic product where "Vendor like '%Environmental Systems Research Institute%'" get Name, Version, InstallDate, InstallLocation in a DOS window (at the suggestion of @MattWilkie) reports only the presence of Python 3.4.1 for ArcGIS Pro, ArcGIS Pro and ArcGIS Earth on my machine. Mac-like alt-tab replacement for Windows 7? Is there an alt-tab replacement for Windows 7 that works in the same manner as command-tab and command-tick (tilde) on OS X?  Requirements:  1. Completely keyboard-shortcut-based, no mouse action should be necessary.  2. 2 keyboard shortcuts with the following behavior:  a.) alt+tab:       cycles through open applications (NOT windows... applications, meaning even if i have 10 firefox windows open, I only want to see firefox once in the list that comes up when i hit this shortcut)  b.) alt+`:     cycles through WINDOWS that are instances of the currently active application (meaning if firefox is my active window and i hit shortcut2, it will cycle through those 10 firefox windows, while ignoring any other windows from ANY other application).    Update 08:40 5/21: I tried out eidylon's suggestion, TopDesk.  It doesn't provide any of the functionality described here.  Other apps I've already tried:   VistaSwitcher Switcher Dexpot (awesome app, still using, but doesn't do what I want in this case... also looked for plugins but couldn't find one that does it) UltraMon Nvidia nView   update: Unfortunately I still haven't found a solution for this.  update: made this a community wiki in case anyone is ever able to find a solution for this. Where can I ask Android related questions in Stack Exchange? I would like to know where I can ask Android apps and other mobile related questions. Is there a Stack Exchange site for such questions? I understand the reasoning behind the fairly narrow textwidth in a default LaTeX article. 60-80 characters per line and all that. However, I am preparing a document that features many lengthy equations, and it seems silly to me to restrict the equations to fit into the same margins as the text when there's all that whitespace going unused on either side.  I'd like to have equations which are wider than the textwidth do the obvious thing, that is, continue to be centered on the page just like all the other equations, and simply extend into both the left and right margin equally. My equations are unnumbered, so there's no concern about where to put equation numbers.  How might I go about implementing this? How do I install a .deb file via the command line?