Sass: alternative variable in less
Sass Interpolation of Mixin, Function, and Variable names
Gauss's Law with Moving Charges How can I disable the "Welcome, Name!" banner notification for Game Center? C# How do I click a button by hitting Enter whilst textbox has focus? I'm working with a WinForm app in C#, after I type something in a textbox I want to hit the Enter key but the textbox still has focus (flashing cursor is still in textbox), how can I achieve this? Why is voltage added when batteries are connected in series but not in parallel? As I understand, the different voltage between two object is caused by the total different charged between two object. Thus, the higher extra electron between two opposite charged object, the higher voltage between them, isn't it? So if i have two battery or capacitor connect in parallel, the negative connect to negative, the positive connect to the positive. Caused the charge from each plate to be double. So that's as my expected, it must be double voltage, but ironically why it's out of my expected and the reality is vice-versa? "ImportError: No module named _struct" configuring python-minimal When I run sudo apt-get upgrade, the dpkg error appears and interupts the process.  Error details:  Setting up python-minimal (2.7.3-0ubuntu7.1) ... Traceback (most recent call last):   File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main     "__main__", fname, loader, pkg_name)   File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code     exec code in run_globals   File "/usr/local/lib/python2.7/compileall.py", line 16, in &lt;module&gt;     import struct   File "/usr/local/lib/python2.7/struct.py", line 1, in &lt;module&gt;     from _struct import * ImportError: No module named _struct dpkg: error processing python-minimal (--configure):  subprocess installed post-installation script returned error exit status 255 dpkg: dependency problems prevent configuration of python:  python depends on python-minimal (= 2.7.3-0ubuntu7.1); however:   Package python-minimal is not configured yet.   And this problem leads to a series of dependency problems when processing the following packages:    python  gwibber-service  libgwibber3  libgwibber-gtk3  gwibber  gwibber-service-facebook  gwibber-service-identica  gwibber-service-twitter  python-all  python-dev  python-all-dev  python-apt  python-problem-report  python-apport  python-libxml2  unity-lens-gwibber  unity-scope-video-remote   Finally, nothing I can do for this problem. And several days later, the root directory is full and I even could not uninstall any software because of this problem. Drawing Mechanical Systems in LaTeX I really like CircuiTikZ for drawing diagrams in my LaTeX documents. However I mostly draw mechanical and not electronic systems, which is why I'm looking for some similar way to draw mechanical systems. What I want is something to draw masses, springs, dampers and ground (boundary condition).  are typical examples:     Anybody got some suggestions or am I out of luck? How to render text pixel-perfectly with subpixel antialising with Illustrator? Integrating Knowledge into an existing website Crash or "segmentation fault" when data is copied/scanned/read to an uninitialized pointer I have a Dell XPS 12 running Ubuntu 13.10 and it doesn't appear to find it's wireless.  I have tried the suggestions  but they made no difference  peter@xps:/lib/firmware$ ls -l /lib/firmware/iwlwifi-7260-7.ucode  -rw-r--r-- 1 root root 682892 Aug  4 12:50 /lib/firmware/iwlwifi-7260-7.ucode peter@xps:/lib/firmware$ sudo lshw -c network   *-network UNCLAIMED             description: Network controller        product: Wireless 7260        vendor: Intel Corporation        physical id: 0        bus info: pci@0000:06:00.0        version: 63        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: memory:f7c00000-f7c01fff  peter@xps:~/backports-3.10-2$ grep IWL7260_UCODE_API_MAX drivers/net/wireless/iwlwifi/iwl-7000.c  #define IWL7260_UCODE_API_MAX   7     .ucode_api_max = IWL7260_UCODE_API_MAX,         \ peter@xps:~/backports-3.10-2$ dmesg | grep iwl peter@xps:~/backports-3.10-2$ iwconfig lo        no wireless extensions.  peter@xps:~$ find / -name *7260-6* peter@xps:~$ find / -name *7260-7* /lib/firmware/iwlwifi-7260-7.ucode   peter@xps:~$ dmesg | grep -i -A 20 intel [ 1318.013278] Intel(R) Wireless WiFi driver for Linux, in-tree:d [ 1318.013281] Copyright(c) 2003-2013 Intel Corporation [ 1318.015154] cfg80211: World regulatory domain updated: [ 1318.015157] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 1318.015159] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 1318.015161] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 1318.015162] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 1318.015164] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 1318.015165] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)     What I have found is that it appears to be loading an old version of the firmware but I don't know how or why  peter@xps:/lib/firmware$ modinfo iwlwifi | grep 7260 firmware:       iwlwifi-7260-6.ucode peter@xps:/lib/firmware$ ls *7260-6* ls: cannot access *7260-6*: No such file or directory   Any suggestions of how to get this setup very welcome. How can I read inputs as numbers? For a simple circuit with a battery supplying a voltage $V$ to a capacitor, let us assume that the charge on the capacitor is $Q$. Now, the work done by the battery or the energy supplied is given by the relation:  $$W=QV$$  But the energy stored in the capacitor is given by:  $$U = \tfrac12 QV$$  The value of $Q$ as well as that of $V$ should be the same in both the equations.  Now my question is, where is the other half of the energy that the battery supplied? I often use Cycles' built in Glass BSDF shader to achieve realistic refraction effects, but in many cases, it seems that Cycles' glass caustics creates an unfortunately large number of fireflies (pixels that are abnormally bright relative to their surroundings). In some models of mine, even when I render for 3000 or more samples/pixel, my final image is still covered in fireflies. While I can improve this in many cases by increasing the total amount of light available in the scene, this loses a lot of the potency of the refractive effects I'm looking for, especially in scenes with low light levels.  So my question is, how can I reduce the amount of fireflies while using Cycles' caustics without sacrificing the quality of the refractive effects?  Note: I am aware that Cycles' caustics will perform much better once Cycles has full support for bidirectional path-tracing, but it looks unlikely that that will become , unfortunately. Compiling the following code and got the error of type illegal.  int main() {     // Compilation error - switch expression of type illegal     switch(std::string("raj"))     {     case"sda":     } }   You cannot use string in either switch or case. Why? Is there any solution that works nicely to support logic similar to switch on strings? Where is the Ubuntu file system root directory in Windows Subsystem for Linux and vice versa? I am looking for a way to convert a long string (from a dump), that represents hex values into a byte array.  I couldn't have phrased it better than the person that posted .  But to keep it original, I'll phrase it my own way: suppose I have a string "00A0BF" that I would like interpreted as the  byte[] {0x00,0xA0,0xBf}   what should I do?  I am a Java novice and ended up using BigInteger and watching out for leading hex zeros. But I think it is ugly and I am sure I am missing something simple. Rotating clears selected tags Changing the orientation of your device within the tag selection view while asking a question removes all selected tags and clears the textbox.     Steps to reproduce:     Ask a question (does not happen when editing) Edit tags Enter some text in the box  Select a tag from the suggestion list Repeat the previous two steps as many times as you care to Rotate the device (source / target orientation doesn't matter, just need to change it) All selected tags and text typed in the textbox are gone and must be re-entered   I've reproduced this using version 1.0.63 of the SE app on two devices:     HTC One E8 m2ss (the Hong Kong version) rooted and running stock 5.0.2 ATT Galaxy S3 i747, rooted and sim unlocked, running Slimkat 4.4.2.build.4.1.official ROM on Android 4.4.2 Most efficient way to see if an ArrayList contains an object in Java How do deactivate plymouth boot screen? Lately, booting Ubuntu on my desktop has become seriously slow. We're talking two minutes. It used to take 10-20 seconds. Because of plymouth, I can't see what's going on. I would like to deactivate it, but not really uninstall it. What's the quickest way to do that? I'm using Precise, but I suspect a solution for 11.10 would work just as well. What gear do I need for a newborn photography session? I am an amateur photographer and I have a newborn session coming up for a family friend.   My current gear is:   Canon T5i (crop sensor) Canon 18-55 IS STM Kit lens 85mm f/1.8 lens   I plan on buying a reflector for the shoot and will be using natural light as my light source.  So my question is: is this enough gear to get some nice photos? Should I get another prime lens besides the 85mm? I don't really use the kit lens.  I also have another 8 month old baby shoot coming up and an informal wedding shoot coming up so it would be nice to use the lenses in all situations. I don't need a telephoto at the moment and will probably not use one any time soon.