when my laptop awake after sleep the WiFi adapter shows cross,and in order to again connect to WiFi i restart my laptop.Is there any thing i would do to get rid-off this thing OR is there any way i can restart my WiFi adapter through CMD.  I tried to update WiFi adapter drivers but no luck.  My WiFi Adapter is Ralink RT3290 802.11bgn Wi-Fi Adapter
Is there a way to enable/disable a wireless network interface via the command line (so I can put it in a bat file)?  When I'm in the office I use a wired connection, but Windows still occasionally bugs me about my wireless connection not being connected (even though I turned off the option for notifying me when there's no connectivity).  I'm guessing the only way to stop it from bugging me is to disable the interface, but I'd rather not have to go into the network settings every time I need to do so.  I'd like to set up a bat file or a shortcut that I can use to enable/disable the wireless (preferably a single one that toggles the current state), and then just set up a keyboard shortcut for that.  I just have no idea how to do so from the command line.
How do I write a cpp macro which expands to include newlines? Determinant of an $n\times n$ complex matrix as an $2n\times 2n$ real determinant If $A$ is an $n\times n$ complex matrix. Is it possible to write $\vert \det A\vert^2$ as a $2n\times 2n$ matrix with blocks containing the real and imaginary parts of $A$?  I remember seeing such a formula, but can not remember where. Any details, (and possibly references) for such a result would be greatly appreciated. Groups with Same Number Of Elements and Subgroups I tried logging in with a Google account, but I got the following error: The use of "were- should- had” at the beginning of sentences instead of “if” Conditionals in English are usually formed by using if with normal word order; but for the three past (subjunctive) forms were, should, and had, it is also possible to express the conditional through subject–auxiliary inversion alone, with no if in the conditional clause.  Does forming conditionals in this manner differ semantically from if-conditionals? Is some aspect of the conditional statement or the conditionality emphasised more in one version than in the other? Or are there differences in how and when they are used? Or are they simply completely interchangeable?  For example:     If I were you, I would try it again   Were I you, I would try it again      If I had seen it, I would have told you   Had I seen it, I would have told you      If you should drink, don’t get behind the wheel   Should you drink, don’t get behind the wheel I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to avoid this step, if possible --- sometimes the conversion from SVG converts the text labels into vectors, and that's annoying. Hence the question:  Is there a way to include SVG diagrams directly without conversion to an intermediate format?  Package suggestions, or instructions for specific LaTeX distribution are welcome. Tips and personal experience on which tools you have found to be working reliably would be also appreciated. How can I find just the *.mp3 files with a recursive command like ls -R *.mp3 in a directory that contains several sub-directories and at the end copy these files in a directory that I choose.  Thanks for your support. Where to start with the Star Wars books? Does C# have an equivalent to JavaScript's encodeURIComponent()? In JavaScript:  encodeURIComponent("©√") == "%C2%A9%E2%88%9A"   Is there an equivalent for C# applications? For escaping HTML characters I used:  txtOut.Text = Regex.Replace(txtIn.Text, @"[\u0080-\uFFFF]",     m =&gt; @"&amp;#" + ((int)m.Value[0]).ToString() + ";");   But I'm not sure how to convert the match to the correct hexadecimal format that JS uses. For example this code:  txtOut.Text = Regex.Replace(txtIn.Text, @"[\u0080-\uFFFF]",     m =&gt; @"%" + String.Format("{0:x}", ((int)m.Value[0])));   Returns "%a9%221a" for "©√" instead of "%C2%A9%E2%88%9A". It looks like I need to split the string up into bytes or something.  Edit: This is for a windows app, the only items available in System.Web are: AspNetHostingPermission, AspNetHostingPermissionAttribute, and AspNetHostingPermissionLevel. How to forbid a specific package to be installed? Parameter Sniffing (or Spoofing) in SQL Server A while ago I had a query that I ran quite a lot for one of my users. It was still being evolved and tweaked but eventually it stablised and ran quite quickly, so we created a stored procedure from it.   So far, so normal.   The stored procedure, though, was dog slow. No material difference between the query and the proc, but the speed change was massive.   [Background, we're running SQL Server 2005.]  A friendly local DBA (who no longer works here) took one look at the stored procedure and said "parameter spoofing!" (Edit: although it seems that it is possibly also known as 'parameter sniffing', which might explain the paucity of Google hits when I tried to search it out.)   We abstracted some of the stored procedure to a second one, wrapped the call to this new inner proc into the pre-existing outer one, called the outer one and, hey presto, it was as quick as the original query.   So, what gives? Can someone explain parameter spoofing?   Bonus credit for    highlighting how to avoid it  suggesting how to recognise possible cause discuss alternative strategies, e.g. stats, indices, keys, for mitigating the situation How do I bake/add material colors onto my UVmap? I looked everywhere from tutorials to documents and either they only talk about texturing or they are doing the tutorial in 'blender render' when I need it in 'cycles render'.   I have a cube that is toon shaded red. And as you can see it is unwrapped to show the map.    Now I would like to add the color that's on the cube onto the map.   As you can see at the bottom of the image that I created a new image called 'untitled'. Now the next step of baking the colors onto the map is where I become lost. Regardless of which 'Bake Type' that I used, I keep getting error messages like: No valid selected objects.  Everything looks selected to me. No, I am not new to Blender but I am new to color baking. Thank you for any help provided; I used a simple cube first before using other models I already created. Can I kill the Golem pre-hardmode? I want wp_link_pages (mutli-page posts) to display the page numbers, the word "previous" before those numbers, and a "next" after those numbers.  It would look like this:  Prev 1, 2, 3, 4 Next  I'm attempting to do this without a plugin.  Here's what I've tried so far, but it isn't working, it is only displaying numbers.  &lt;?php wp_link_pages(array(     'before' =&gt; '&lt;span style="clear:both; display:block"&gt;Pages',      'after'  =&gt; '&lt;/span&gt;',     'next_or_number'=&gt;'number',     'previouspagelink' =&gt; 'previous',     'nextpagelink'=&gt; 'Next' )); ?&gt; As I understand it, electromagnetic waves have two components which are the result of each other, i.e., when a moving electric charge creates a changing magnetic field at point X then a changing electric field is created at point Y and this repeating process is what creates EM waves, so therefore, it requires no medium. Is my understanding correct?  One thing that I'm surprised to know is that light is also called an electromagnetic wave.  Does this include light of any kind, for example: light from a bulb, a tube, and also from the Sun? How do they contain electric and magnetic fields? What is the best term to describe the fact that most users have an initial dislike of any change to a UI even though it may really be net better over time?  Note: Question originally appeared If your visa is on an expired passport but still valid, can you still use it with your new passport, or does the old passport have to have a recent expiration date? If so, how do you transfer your visa to your new passport? Are logs kept for past at jobs? Connection pools being reset with Error: 18056, Severity: 20, State: 46. & Perfmon Counters not showing We are using SQL Authentication (to reduce the number of connection pools) &amp; .NET 4.0 connection strings to connect to SQL Server Enterprise Edition 2012 SP1 on a Windows 2008 R2 Enterprise Server:     Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64)   Oct 19 2012 13:38:57   Copyright (c) Microsoft Corporation   Enterprise Edition (64-bit) on Windows NT 6.1  (Build 7601: Service Pack 1)   We use about 50 servers split into 8 different groups different parts of a website.  Our website is using this SQL Server to log visit tracking data. Over the last few days it has spat out the following messages about the resetting connection pools:     The client was unable to reuse a session with SPID 1327, which had been reset for connection pooling. The failure ID is 46. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.   Error log reads:     Error: 18056, Severity: 20, State: 46.   The client was unable to reuse a session with SPID 959, which had been reset for connection pooling. The failure ID is 46. This error may have been caused by an earlier  operation failing. Check the error logs for failed operations immediately before this error message.   Login failed for user 'xxxx'. Reason: Failed to open the database 'xxxxxxxx' configured in the login object while revalidating the login on the connection. [CLIENT: 10.xx.xx.xxx]   After some digging, I found this document on the CSS blog:  and this one by Aaron Bertrand: . I know the error number is different but the failure ID is the same with a number of the messages are identical).  Failure ID 46 suggests that the login did not have permissions. Our logins default to the master database and the db name is specificied in the connection string.  I wanted to check the number of connection strings pools, etc. and checked all the counters in Perfmon for .Net Data Provider for SqlServer. It only gave me the option of defaultdomain9675 for the instance, so I selected that assuming that is a system generated ID name for our Datacentre network. Unfortunately all of the counters are reading zero. On one of our other main servers the connection pools are hovering around 10 which is what I expected to see on a healthy server with that kind of load.  My question is 3 fold   Can anyone suggest why the Windows 2008 R2 Server is not showing .Net Data Provider for SqlServer? Has anyone experienced this as I obviously believe that the login not having permissions is a red herring ? If different groups of web servers have the same connection string syntax but with slightly different whitespace, would this cause the server to use another connection pool?   Min &amp; max memory settings are 20GB &amp; 58GB respectively. The server is a dedicated database server with 64GB of RAM. I don't think memory is the issue as the box seems to have a decent page lfe expectancy. Auto close is not enabled. The server is always up: this is a 24x7 website with heavy usage. I'm flying to Tokyo. The flight was sold through Finnair. The first leg is operated by American Airlines. The second and final legs are operated by Finnair.  When I checked in online, it said that some airports on my journey (didn't say which one) don't allow mobile boarding passes?? Meaning I will need a physical copy.  Unfortunately I don't have easy access to a printer. Will I still be able to print all my boarding passes at the airport even though I already checked in online?