I have just got my new usb wifi dongle and I am trying to get it running on 13.10. lsusb gives me the following:   $ lsusb -v  Bus 002 Device 005: ID 148f:7601 Ralink Technology, Corp.    bDeviceSubClass         0    bDeviceProtocol         0    bMaxPacketSize0        64   idVendor           0x148f Ralink Technology, Corp.   idProduct          0x7601  ...   First thing I have tried was to install the drivers from the cd that was attached to it. There I have found this file 2011_0719_RT3070_RT8070_RT3370_RT5370_RT5372_RT2070_Linux_STA_V2.5.0.3_DPO.bz2 and in the readme there was a note for   ModelName: =========== RT2870 Wireless Lan Linux Driver  ======================================================================= Driver lName: =========== rt2870.o/rt2870.ko   After launching sudo make (sudo because I had an issue with copying to cp cannot create regular file /tftpboot' permission denied), sudo make install now I can  $ sudo modprobe rt5370sta   I also have rt2800usb but it also doesn't work.  Now when I enter the usb dongle I get in syslog  Feb 18 15:53:03 xxx kernel: [  302.509247] usb 2-1.3: new high-speed USB device number 5 using ehci-pci Feb 18 15:53:04 xxx kernel: [  302.969353] usb 2-1.3: New USB device found, idVendor=148f, idProduct=7601 Feb 18 15:53:04 xxx kernel: [  302.969359] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Feb 18 15:53:04 xxx mtp-probe: checking bus 2, device 5: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3" Feb 18 15:53:04 xxx mtp-probe: bus: 2, device: 5 was not an MTP device   I have also tried this  but when I enter ra0 configuration to /etc/network/interfaces then pc won't boot for more than 1-3 minutes and when it boots there's only lo interface loaded.  EDIT  The best part is that most of the link at MediaTek's website (they had a fusion apparently) is non existent   EDIT2   After somehow getting my hands on 3.0.0.4 drivers for mt7601U i get the following in syslog  Feb 18 16:55:26 xxx kernel: [ 1975.959906] rtusb init rt2870 ---&gt; Feb 18 16:55:26 xxx kernel: [ 1975.959913] Error: Driver 'rt2870' is already register ed, aborting...   EDIT3  I somehow got this working but when I launch wpa_supplicant I get the following debug log
I am trying to install a Ralink wifi adapter in Ubuntu Desktop 14.04.  The system is not detecting the wifi.   lsusb lists the device as:  Bus 002 Device 004: ID 148f:7601 Ralink Technology, Corp.  I have the rt2800 USB driver listed in "/etc/modules"; Following some instructions on the web, I tried this command:  echo 148F 7601 | sudo tee /sys/bus/usb/drivers/rt2800usb/new_i  lsmod | grep rt2800 returns the following:  rt2800usb              26581  0  rt2x00usb              20041  1 rt2800usb rt2800lib              83150  1 rt2800usb rt2x00lib              48886  3 rt2x00usb,rt2800lib,rt2800usb mac80211              545990  3 rt2x00lib,rt2x00usb,rt2800lib crc_ccitt              12627  1 rt2800lib
Why is the sample distribution the Exponential distribution Gamma distributed? I'm attempting to make an elevation profile from a DEM in ArcMap using the Interpolate Line tool.  I've done this before, and it has worked great--basically I just draw a line with Interpolate Line, then click Profile Graph to get the elevation profile.  However, for some reason, it's not working now: when I draw out my line, nothing shows up on the map.  I don't get a line, and I can't figure out what I'm doing wrong.  I've searched online for an answer, but to no avail.    Any tips? Linux Bulk/Remote Administration Beside our internal IT infrastructure, we've got around 500 Linux machines hosting our services for the on-line world. They are grouped in a bunch of clusters like Database A-n, Product A-n, NFS, Backoffice and so on. Furthermore, they are administered by an external provider, according to our specifications and requirements.  However, we face a lot of trouble during (web-) software development, roll-out and deploy - especially because the dev- and staging-environments have almost nothing in common with the live systems (I spare out the nasty details..).  Thus, I've tried to create virtual machines, copied the various live-systems as exactly as possible and prepared them to connect to e.g. the development-databases instead of the "real" ones transparently for developers (they aren't root). This works pretty well, but...  I was wondering how one could administer those systems remotely and in bulk? Is there some software family I'm not aware of? Or, at least, some techniques or principles one should be familiar with?  We would provide every developer with a bunch of images to be run locally (VirtualBox). The QA dept. would get virtual clusters (XEN or Hyper-V). If I need to provide an additional server-module, re-route a new database connection or just want to update everything provided by the package manager... how could I possibly do that without being forced to log on to every system and/or ask my colleagues to download and run some fixture-script?  I believe there are plenty of solutions. Well, somehow I'm too stupid to enter the correct keywords into the search engines... Or isn't this issue as trivial as it sounds?  For the record:   Almost all systems are running Debian GNU/Linux 6.x "squeeze" No developer is forced to use a particular OS at his/her workstation The budget is limited, of course, but not too small to buy proprietary software A solution that would involve our aforementioned provider is preferred CAST and IsNumeric Why would the following query return "Error converting data type varchar to bigint"?  Doesn't IsNumeric make the CAST safe?  I've tried every numeric datatype in the cast and get the same "Error converting..." error.  I don't believe the size of the resulting number is a problem because overflow is a different error.  The interesting thing is, in management studio, the results actually show up in the results pane for a split second before the error comes back.  SELECT CAST(myVarcharColumn AS bigint)   FROM myTable   WHERE IsNumeric(myVarcharColumn) = 1 AND myVarcharColumn IS NOT NULL   GROUP BY myVarcharColumn   Any thoughts? Convert a javascript associative array into json object using stringify and vice versa How to vertically align underbraces I am trying to balance underbraces in the equation below, how can I ensure that both underbraces at the same depth?  \begin{equation} y = \underbrace{ \left [ x^2 + r^2 (a^2+\frac{a^{0.3}}{b}) \right]}_\text{growth rate} \times  \underbrace{ C_0}_\text{initial} \end{equation} I have a scenario where I have multiple threads adding to a queue and multiple threads reading from the same queue. If the queue reaches a specific size all threads that are filling the queue will be blocked on add until an item is removed from the queue.  The solution below is what I am using right now and my question is: How can this be improved?  Is there an object that already enables this behavior in the BCL that I should be using?  internal class BlockingCollection&lt;T&gt; : CollectionBase, IEnumerable {     //todo: might be worth changing this into a proper QUEUE      private AutoResetEvent _FullEvent = new AutoResetEvent(false);      internal T this[int i]     {         get { return (T) List[i]; }     }      private int _MaxSize;     internal int MaxSize     {         get { return _MaxSize; }         set         {             _MaxSize = value;             checkSize();         }     }      internal BlockingCollection(int maxSize)     {         MaxSize = maxSize;     }      internal void Add(T item)     {         Trace.WriteLine(string.Format("BlockingCollection add waiting: {0}", Thread.CurrentThread.ManagedThreadId));          _FullEvent.WaitOne();          List.Add(item);          Trace.WriteLine(string.Format("BlockingCollection item added: {0}", Thread.CurrentThread.ManagedThreadId));          checkSize();     }      internal void Remove(T item)     {         lock (List)         {             List.Remove(item);         }          Trace.WriteLine(string.Format("BlockingCollection item removed: {0}", Thread.CurrentThread.ManagedThreadId));     }      protected override void OnRemoveComplete(int index, object value)     {         checkSize();         base.OnRemoveComplete(index, value);     }      internal new IEnumerator GetEnumerator()     {         return List.GetEnumerator();     }      private void checkSize()     {         if (Count &lt; MaxSize)         {             Trace.WriteLine(string.Format("BlockingCollection FullEvent set: {0}", Thread.CurrentThread.ManagedThreadId));             _FullEvent.Set();         }         else         {             Trace.WriteLine(string.Format("BlockingCollection FullEvent reset: {0}", Thread.CurrentThread.ManagedThreadId));             _FullEvent.Reset();         }     } } How can I get the output from Image Trace to be Strokes instead of a Fill? I need to trace picture below to vector.  After tracing it with black and white mode I got result below that I don't like. I would like to have all lines to be in the same constant width.  What tracing strategy I should use to get needed result? The recipe that I used did not call for cornstarch or corn syrup. The result is that they are slightly wet. Can I do anything to dry them up, such as dusting them with corn flour?  I did dredge them in a mixture of confectioners sugar and corn flour; it helped a little, but I think I will find a recipe that has corn starch in it for next time! I'm interested: What is C#'s analog of std::pair in C++? I found System.Web.UI.Pair class, but I'd prefer something template-based.  Thank you! How to partially hide content in beamer latex? Proof by induction that $\sum_{i=1}^n \frac{i}{(i+1)!}=1- \frac{1}{(n+1)!}$ Prove via induction that $\sum_{i=1}^n \frac{i}{(i+1)!}=1- \frac{1}{(n+1)!}$ Having a very difficult time with this proof, have done pages of work but I keep ending up with 1/(k+2).  Not sure when to apply the induction hypothesis and how to get the result $1- \frac{1}{(n+2)!}$.  Please help! thanks guys, youre the greatest! If $A$ is an $n \times n$ matrix and $ A^2 = 0$, then $\text{rank}(A)\le n/2$. Was revising for a Linear Algebra when I came across this question.     "Given a Matrix $A$ over $\mathbb{R}^{n \times n}$, and $A^2 = 0$,   show that rank($A$) $\leq n/2$"   My attempt:  I was thinking of the theorem from Cayley-Hamilton but the matrix is a $n \times n$ matrix hence that's probably invalid.  Is there perhaps a significance of $A^2 = 0$? apart from a special case of the nilpotent matrix? Can regular expressions be used to match nested patterns? Reason for the discreteness arising in quantum mechanics? What is the most essential reason that actually leads to the quantization. I am reading the book on quantum mechanics by Griffiths. The quanta in the infinite potential well for e.g. arise due to the boundary conditions, and the quanta in harmonic oscillator arise due to the commutation relations of the ladder operators, which give energy eigenvalues differing by a multiple of $\hbar$. But what actually is the reason for the discreteness in quantum theory? Which postulate is responsible for that. I tried going backwards, but for me it somehow seems to come magically out of the mathematics. I am new to blender (yes, laugh at the obligatory doughnut) and I when I set up the camera (I use NUM 0 to access the camera and move it into position with &quot;Lock camera to view&quot;) in the viewport it shows as the first attached image, but when I render it the image is further back as shown in the second image. Is this normal behavior or am I missing something? Event handler not working on dynamic content Convert bytes to a string I'm using this code to get standard output from an external program:  &gt;&gt;&gt; from subprocess import * &gt;&gt;&gt; command_stdout = Popen(['ls', '-l'], stdout=PIPE).communicate()[0]   The communicate() method returns an array of bytes:  &gt;&gt;&gt; command_stdout b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   However, I'd like to work with the output as a normal Python string. So that I could print it like this:  &gt;&gt;&gt; print(command_stdout) -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1 -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2   I thought that's what the  method is for, but when I tried it, I got the same byte array again:  &gt;&gt;&gt; binascii.b2a_qp(command_stdout) b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   How do I convert the bytes value back to string? I mean, using the "batteries" instead of doing it manually. And I'd like it to be OK with Python&nbsp;3. How to interpret regression coefficients when response was transformed by the 4th root? I'm using fourth root (1/4) power transformation on my response variable, as a result of heteroscedasticity. But now I'm not sure how to interpret my regression coefficients.   I assume that I would need to take the coefficients to the fourth power when I back-transform (see below regression output). All of the variables are in units of dollar in millions, but I would like to know the change in dollar in billions.    While holding the other independent variable constant, a billion dollar change in fees, on average, leads to a change of 32 (or 32,000 dollars) in collections. I take 0.000075223 * 1000 (to get to billions) ^ 4 = 0.000032. Now do I multiply this number by 1 million or 1 billion (the original unit of the dependent variable is in millions)?  lm(formula = (Collections^(1/4)) ~ Fees + DIR)                   Estimate      Std. Error  t value            Pr(&gt;|t|) (Intercept)   2.094573355     0.112292375   18.653  0.0000000000000151 Fees        **0.000075223   **0.000008411    8.943  0.0000000131878713 DIR           0.000022279     0.000004107    5.425  0.0000221138881913 Do individual rays of light lose energy via the inverse square law?