I am working in my homework where there are a lot of figures.  I have a visual problem with figures which they must only placed inside a specific section, but they are shown in the next section. This is because I have a little text, and LaTeX tries to arrange my paragraphs and text for the best.  Is there any solution for that? I have tried with \hspace and \newpage, but doesn't work. I am working with \documentclass[11pt,a4paper]{article}, maybe I have to use another kind of document for my homework.  Please help me.
Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared?
Are Love Potions legal? Suppose a vibrating fork exerts force to the air particles to compress which leads to the increase of internal energy (heat).This heat or energy given by the fork is given to the next layer of air and in this way, this energy makes sound. But if it was so, it will be isothermal. And Laplace told it was adiabatic. How can it be? I am confused. The heat energy infact is the energy given by the fork. If it is adiabatic, how can the air pass this energy ? Finding Stack Overflow/Exchange users based on geographic area? Is it possible to extend an Indian business visa from India? I'm an Egyptian girl from Cairo. I'm planning a six-month trip to India in December for training purposes, but getting a six-month visa is so hard from my country.  If I can only get 3 months instead of 6 months, is it possible to extend the business visa in India? When Free shipping is available hide other shipping methods except Local pickup in WooCommerce I currently have WooCommerce setup to allow free shipping on orders over a certain amount. However, I also have local pickup available and would like to allow BOTH if over a certain amount. I have the following code to remove the other rates, however it also doesn't keep the local pickup option. function fd_shipping_rates( $rates, $package ) {           $all_free_rates = array();          foreach ( $rates as $rate_id =&gt; $rate ) {         if ( 'free_shipping' === $rate-&gt;method_id ) {              $all_free_rates[ $rate_id ] = $rate;             break;         }     }          if ( empty( $all_free_rates )) {         return $rates;     } else {         return $all_free_rates;     }  } add_filter( 'woocommerce_package_rates', 'fd_shipping_rates', 10, 2 );  Any help regarding this is much appreciated! I am looking for a code solution only as I am looking to minimise unneeded plugins. EDIT: I recently found this article on  website regarding this exact issue. It is generally taught that  function as adjectives modifying a noun (or pronoun).  In a sentence such as:     A major accident occurred on our bus's route to school, making us late for class.   or     The gas tank exploded, sending shrapnel through the air.   are the participle phrases modifying their preceding clauses? (If not, what are they modifying?) Embedding C++ Objects into QML with Context Properties According to Qt5 documentation:  all public slots of C++ classes that inherit from QObject, are accessible from QML Here what I did:  C++  class MyClass : public QObject {     Q_OBJECT  public slots:     void doStuffFromQmlSlot()     {         qDebug() &lt;&lt; Q_FUNC_INFO;     }  public:     MyClass()     {         qDebug() &lt;&lt; Q_FUNC_INFO;     } };   my main.cpp contains:  MyClass myClass; QQmlEngine engine; engine.rootContext()-&gt;setContextProperty( "myclass", &amp;myClass ); QQmlComponent component( &amp;engine, QUrl::fromLocalFile("qml/qtquick-01/main.qml") ); component.create();   QML  import QtQuick 2.0  Rectangle {     width: 360     height: 360     Text {         text: qsTr("Hello World")         anchors.centerIn: parent     }     MouseArea {         anchors.fill: parent         onClicked: {             myclass.doStuffFromQmlSlot();              Qt.quit();         }     } }   Actually the QtCreator seems to recognixe the exposed myclass object into the QML as it enables auto-completion of both class name (myclass) and the public slot doStuffFromQmlSlot(). When I run the application I unfortunately got the following error:  ReferenceError: myclass is not defined  Any clue on what I'm doing wrong? Any other words that use “dis-” as an amplifying prefix? I remember hearing once about the etymology of disgruntled, probably based around a joke about how people can not be gruntled. The explanation given was that there was never a word gruntled, rather the dis‑  in disgruntled is actually a usage of the old prefix where it acts like an amplifier.   Firstly, is this true?  Secondly, are there any other words that use this prefix in this way? How can I use Photoshop to imitate a photo taken with a low-quality camera? How can I create an image in Photoshop that imitates a photo taken with a low-quality phone camera? Examples of qualities I want to simulate:   blurring in some areas caused by a dirty lens low quality exposure handling in the darkroom noise   Some examples: How do I use filenames that start with a dash "-" as command arguments? Flair for Unicode usernames broken We're all familair with this beautiful proof whether or not an irrational number to an irrational power can be rational. It goes something like this:  Take $(\sqrt{2})^{\sqrt{2}}$  If it's rational, then you proved it, if it's irrational, take $((\sqrt{2})^{\sqrt{2}} ){^\sqrt{2}} = 2$ and you've proved it.  I'm wondering if you can raise $\pi$ or $e$ to a certain non-trivial real power to make it rational? And if not, where is the proof that it can't be done?   p.s. - I almost left out the real part, but then I realized that $e^{i\pi} = -1$. Fix for word of power quest bug at Arcwind Point When I picked up the word of power at Arcwind Point, the quest didn't get removed from my quest log. If I select it, the arrow still points to the wall even though there is no word to collect anymore. The monks at High Hrothgar won't give me a new word power quest since they don't realize that I finished this one.  I can see in the Unofficial Elder Scrolls pages that this is a known issue.   My question is now, is there anything I can do about it? I don't want to reload a previous save since I have done much since it happened. I didn't realize until hours afterwards what had happened.   Note: I am on Xbox 360 so the Unofficial Dawnguard Patch is not an option. A friend of mine, native EN speaker, told me that the following is correct written like this:      We met on the 1st of June.   Is that really true? I cannot see any reference that these are used in written text. Accessing the index in 'for' loops? How do I access the index in a for loop like the following?  ints = [8, 23, 45, 12, 78] for i in ints:     print('item #{} = {}'.format(???, i))   I want to get this output:  item #1 = 8 item #2 = 23 item #3 = 45 item #4 = 12 item #5 = 78   When I loop through it using a for loop, how do I access the loop index, from 1 to 5 in this case? Allowing line break at ',' in inline math mode? In the inline math mode ($...$), if the formula is too long, LaTeX will try to break it on operators, e.g.  very long text followed by a very long equation like $a+b+c+d+e+f+g+h+i+j+k+l$ etc   may be rendered as  very long text followed by a very long equation like a+b+c+d+e+f+g+h+i+ j+k+l etc   However, the break won't happen if they are separated by commas, e.g.  very long text followed by a very long equation like $a,b,c,d,e,f,g,h,i,j,k,l$ etc   will overflow the page like  very long text followed by a very long equation like a,b,c,d,e,f,g,h,i,j,k,l etc   How to make LaTeX able to insert line breaks after a comma too? Does Class need to implement IEnumerable to use Foreach This is in C#, I have a class that I am using from some else's DLL. It does not implement IEnumerable but has 2 methods that pass back a IEnumerator. Is there a way I can use a foreach loop on these. The class I am using is sealed. Downgrade nVidia Shield to Android 4.4 KitKat How to install NVIDIA driver in Ubuntu I'm running Ubuntu 13.04 on DELL XPS L501 - Nvidia GeForce GT 420M. I'm using kernel 3.9.0-030900-generic.  All kernel-headers are installed in the system.  and  I've tried the following.   Use apt-get to install nvidia-current (which download 304) &amp;&amp; load using modprobe Use apt-get to install nvidia-310 &amp;&amp; load using modprobe Download nvidia 64-bit driver nvidia-319.23 for 400M series and install Use swat-x repo to install nvidia driver   All of these failed. And I tested it everytime like this   After the module is loaded (checked from lsmod),  restarted lightdm tested from get.webgl.org  (Google-Chrome webgl support is enabled)    Problem faced with nvidia-xconfig   after running nvidia-xconfig (which writes to /etc/X11/xorg.conf), and restarting lightdm, my display res changes to 640x480. and had to remove this file to revert back to old setting Have also tried commenting out those two lines which adjusts Horizontal and Vertical Setting in xorg.conf. That just rectified the resolution. But still I wasn't able to use the graphics card (webgl).   EDIT 1: (nouveau)   Tried rebooting after each installation Removed (purge) all of nouveau* before starting.  Removed one more package (dont remember the exact name though) - xorg-xserver-blah-blah.   EDIT 2: (bitlbee)   I had bitlbee installed before. Removed that too before starting installation. When bitlbee was present, NVIDIA-3.9-x86.run (downloaded from nvidia) was not able to recognize graphics card. But it did when I removed bitlbee. (So I'm assuming here that it should work if graphics driver was installed properly)   EDIT 3: (software-properties-gtk)   sudo software-properties-gtk the Additional drivers tab is always NIL. (before and after installation) (even if the installation was successful)   Have been trying this the whole day, and done it quite a few times. None of them worked.  Need help! Is it the problem with kernel-3.9, that there are no updates for this ? Show that the condition number of an invertible matrix must be at least 1. What matrices have  condition number equal to 1.  If someone could help me with this and give an explanation that would be very helpful. I do not know where to start