I have installed WineHQ on my Ubuntu. I want to run Balsamiq  ~/Downloads/Balsamiq_Mockups_3$ ls -1 Adobe AIR balsamiq_mockups_3.5.15.swf Balsamiq Mockups 3.exe framework_4.6.0.23201.swf icons META-INF mimetype skins textLayout_2.0.0.232.swf   If I go for   wine Balsamiq Mockups 3.exe wine: cannot find L"C:\\windows\\system32\\Balsamiq.exe"   How to fix this problem?
The shellscript is very simple:  retroarch $* -c /tmp/retroarch/Data/retroarch/gambatte.cfg   ("retroarch" is another shellscript)  If the filename passed contains spaces it fails:  RetroArch [ERROR] :: Could not read ROM file.
How to install Windows 7 after Ubuntu and dual boot? I just installed Ubuntu, a full install removing the prior OS. I was forced to remove  from my  because of the max four partitions already being there. I didn't lose anything, all backed up. However, now I am looking to create another partition and install Windows&nbsp;7 on it.   Do I also need some sort of boot loader that lets me choose which to boot? How do I connect a PS3 Controller with Xperia P? How to draw a border around character in a formula? So far everything I found on the matter of borders only applies to the text mode.  I want to be able to do something like  $x_i = y$   so the result will be like the ordinary "xi = z" formula with the border around "i"?  The common answers seems to be the fbox or boxed commands. Yet they render their argument in the standart mode, unless specified to do otherwise with the specific mode. For example, the following code  \[ x_i, \boxed{x}_i, x_{\boxed{i}}, \boxed{x}_{\boxed{i}} \]   produces two normal xi figures, and another two with an oversized i. How can I drive 12v LEDs from my Arduino Nano? Background I am building a scale RC helicopter and ordered a bunch of 3mm LEDs to give it some nice navigation and strobe lights which I plan to drive with an Arduino Nano. Problem is that I goofed and didn't notice that the LEDs are 12v until they arrived.  I know that the Arduino Nano can accept 12V on pin 30, but I think the voltage output on any of the &quot;D&quot; or &quot;A&quot; pins is always 5v (correct??). Question If the voltage output of the Arduino pins is 5v, then how can I drive the 12v LEDs using the Arduino, or is it impossible? Are $10\times 10$ matrices spanned by powers of a single matrix? I don't know how to answer this question:     Is there a $10 \times 10$ matrix $A$ such that $$M_{10}(\mathbb{F})=\text{span}\{I,A,A^2,\ldots, A^{100}\}\textrm{,}$$ where $M_{10}(\mathbb{F})$ is the vector space of $10 \times 10$ matrices over $\mathbb{F}$?   I think there is a connection to Jordan normal form. Is there a way to detect if a browser window is not currently active? Wilson and Fermat's Theorem Shortcut to open Terminal and run some commands Retrieving minimum width that contains specified fraction of all values I'd like to find the min/max boundaries of a sliding window of minimum size that contains a certain fraction of the total number of elements in an array or collection of numbers.   Example: taking integers to make it easier to explain, say the proportion of elements that we're looking for is 50% on this array:  [1,1,2,3,3,3,3,3,3,4,5,6,7,8,9,10]  The mystery function would return something like ( 2, 4 ), meaning that the minimum value is 2 and the max value is 4 (let's assume it's inclusive and note that these are VALUES, not indices). That little window contains 8 of the 16 values and it's only 2 units wide, the narrowest such window that contains half the number of values.  Note: the quartiles are [1,1,2,3], [3,3,3,3], [3,4,5,6], [7,8,9,10] so they are NOT what I'm looking for.  I can code it...may take some time to get it nice. Hopefully somebody has run across it before. Does it have a name?  Is there an existing method that somebody knows about?  I am interested in Python implementations.   UPDATE:  Thanks to Glen_b who gave the names 'short-half' and 'shortest interval' I was able to come up with this: List all the directories under the current one This may be a stupid or trivial question, but I am new to Ubuntu, and have two unsolved problems (flashplayer doesn't play, and scanner doesn't work - in virgin install 13.04), so I started to search in documentation. In the 13.04 specific web site I was browsing the hardware section, and came across something like this: "Open Dash, and select Disk Utilities".  So what is Dash, and where is Disk Utilities?  The application finder could not find any of those. In terminal the "dash" command seems to invoke some sort of a shell. Get a resource using getResource() How can I add a folder to the launcher for quick access to it. In this particular case I wish to drag it to the launcher. Literature: 'Why' at the beginning of sentences I’m currently reading George Martin’s A Song Of Ice And Fire novels in English. As a non-native speaker (I’m German), I stumbled upon some grammatical constructs that I’ve never seen before, one of them being the Why at beginning of sentences.  Examples:   Tyrion gave the rotting head a second look. Why, it almost looks as if those lips are smiling. Did he use that word? Why, the boy has a singer's soul . . . though if you believe that song, you may well be dimmer than the first Reek.   These kind of sentences are obviously different from sentences like Why is the sky blue?  I’d like to know if that construct is archaic, or could be used in everyday language, and how one could rephrase that kind of sentences. Can it be rephrased at all? To me it seems like the Why is just used to give the sentence a kind of “cynical” taste. Can the "Sacrifice (this card):" activated ability be placed back on the stack? This is a broad question so for simplicity I will use  and .  Scenario 1: Common exchange- creating a baseline.   Player A uses Naturalize on Seal of Fire  Player B Sacrifices SoF in response. SoF is highest on the stack and goes off first.  This leaves Naturalize without a valid target.   Scenario 2: Complicated exchange- Is this legal?   Player B Sacrifices SoF. In response Player A targets it with Naturalize. SoF is on the stack and it's ability has not resolved. Player B (as above) sacrifices SoF in response to the Naturalize.    Can Seal of Fire be placed back on the stack by re-activating its ability, potentially with a new target? Collection was modified; enumeration operation may not execute I can't get to the bottom of this error, because when the debugger is attached, it does not seem to occur.  Collection was modified; enumeration operation may not execute  Below is the code. This is a WCF server in a Windows service. The method NotifySubscribers() is called by the service whenever there is a data event (at random intervals, but not very often - about 800 times per day). When a Windows Forms client subscribes, the subscriber ID is added to the subscribers dictionary, and when the client unsubscribes, it is deleted from the dictionary. The error happens when (or after) a client unsubscribes. It appears that the next time the NotifySubscribers() method is called, the foreach() loop fails with the error in the subject line. The method writes the error into the application log as shown in the code below. When a debugger is attached and a client unsubscribes, the code executes fine. Do you see a problem with this code? Do I need to make the dictionary thread-safe? [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single)] public class SubscriptionServer : ISubscriptionServer {     private static IDictionary&lt;Guid, Subscriber&gt; subscribers;      public SubscriptionServer()     {                     subscribers = new Dictionary&lt;Guid, Subscriber&gt;();     }      public void NotifySubscribers(DataRecord sr)     {         foreach(Subscriber s in subscribers.Values)         {             try             {                 s.Callback.SignalData(sr);             }             catch (Exception e)             {                 DCS.WriteToApplicationLog(e.Message,                    System.Diagnostics.EventLogEntryType.Error);                  UnsubscribeEvent(s.ClientId);             }         }     }          public Guid SubscribeEvent(string clientDescription)     {         Subscriber subscriber = new Subscriber();         subscriber.Callback = OperationContext.Current.                 GetCallbackChannel&lt;IDCSCallback&gt;();          subscribers.Add(subscriber.ClientId, subscriber);                  return subscriber.ClientId;     }      public void UnsubscribeEvent(Guid clientId)     {         try         {             subscribers.Remove(clientId);         }         catch(Exception e)         {             System.Diagnostics.Debug.WriteLine(&quot;Unsubscribe Error &quot; +                      e.Message);         }     } } Why don't metals glow from red to yellow to green to blue etc.? Why only red, then yellow and then white? Shouldn't all wavelengths be emitted one by one as the temperature of the metal increases?   If some metals do glow at with different colours, could you give me examples of such metals and the reason why this happens in specific cases? Let $A$ and $B$ be two real $n\times n$ matrices such that $AB-BA=A$ Prove that $A$ is not invertible and that $A$ is nilpotent.  My attempt is the following. It holds that $AB=(B+I)A$ If $A$ were invertible, $B=A^{-1}(B+I)A$. Taking trace on both sides yields $tr(B)=tr(B)+n$, hence $n=0$, which is a contradiction. I can't prove that $A$ is nilpotent though. Real world use cases of bitwise operators What are some strategies that I can employ to handle a power gamer that constantly outshines the rest of the party? This is a friend of us all and we don't want to boot him, but combat simply isn't fun when the party has nothing to do while he mops up an encounter by himself.