Is there a way to play YouTube videos in the background?
How do I play a YouTube video in the background on my iPad?
Enable F1-F12 keys without Fn on Lenovo Ideapad S400u With slapd.conf you could globally disable anonymous binding and require authentication with the following static directives:  disallow bind_anon require authc   How can I achieve the same global settings, but using the new cn=config live configuration method? Sci Fi action movie where an elite group of people control business through a game they play online Mental estimate for tangent of an angle (from $0$ to $90$ degrees) Shower at Heathrow during layover in Terminal 5 Reading the  questions here, I am not too hopeful, but this is the perfect site to find the answer if it does exist:  Facts:   I arrive at T5 (British Airways) at 08:30, depart at 11:40 from T5 (British Airways) to another country. No time once I reach final destination to shower, Leave straight from work to catch the first leg. US citizen + passport, only final destination visa (currently)   Desire:  I want to shower - 10 mins is plenty.  Assume money is no object (pay for lounge access, cabs etc), but I'd rather not buy full ticket if I can avoid it.  P.S. It's a wedding, so I REALLY want to shower before haha.  EDIT: My plan so far (which doesn't work because it's after Security):   Travel from  Use    UPDATE:  I followed G &amp; Doc's advice and walked over to the Sofitel Hotel (Immigration + walk ~20-25 min total) showered there for £25 and walked back through Security with plenty of time to spare.  Thank you all for your help! Lets say that I have a directory with the following files (among others):  touch doc-mike.txt doc-jane.txt doc-susan.txt   I can do something in a script with those files using a construct like:  for fname in doc-*.txt; do     echo input: ${fname} done   But if I want to get the substring of the filename that matches the wildcard I have to jump through some ugly hoops:  for fname in doc-*.txt; do     wildcard=${fname#doc-}     wildcard=${wildcard%.txt}      echo input: ${fname} output: output-${wildcard}.results done   That works:  input: doc-jane.txt output: output-jane.results input: doc-mike.txt output: output-mike.results input: doc-susan.txt output: output-susan.results   but I feel like there has to be a better/easier way to get the substring that matches the "*" glob wildcard This question attempts to collect a community-maintained list of quality books on the  programming language, targeted at various skill levels.  C is a complex programming language that is difficult to pick up on-the-go by reading online tutorials. A comprehensive book is often the best way to learn the language, and finding a good book is the first step. It is important to avoid badly-written books, and even more importantly, books that contain serious technical errors.  Please suggest edits to the accepted answer to add quality books, with an approximate skill level and a short blurb/description about each book. (Note that the question is locked, so no new answers will be accepted. A single answer is being maintained with the list)  Feel free to debate book choices, quality, headings, summaries, skill levels, and anything else you see that is wrong. Books that are deemed satisfactory by the C community here will stick around on the list; the rest will be regularly removed.  For books that have reviews by the Association of C and C++ Users (ACCU), a link to those reviews should be added along with the book.  See also:   Other C-related resources in the   A similar list for :      This question was discussed on  as part of the .The consensus was to keep it undeleted and actively maintained. How can I add a bookmark in my nautilus folder explorer Forgotten the pattern and phone not showing the "forgot pattern" button. I upgraded my Moto G2 to Android Lollipop using over-the-air upgrade. It was awesome but I set a pattern lock which I forgot. Usually after 5 wrong attempts it shows the "forgot password" button but it is not showing that button even after 100 wrong attempts. How to unlock the phone? Continued fractions Why is my dual-core CPU recognized as a quad-core one? My processor is an . As you can see, it's 2 cores and 4 threads.  Although, both Ubuntu 11.04 and Windows 7 seem to think it's a quad-core CPU:      Why is this? Is it because there are 2 threads per core, dividing the CPU in 4 processing units? How many roots have a complex number with irrational exponent? If a rational exponent on a complex number $z^q$ is the representation of a finite number of roots, then if the exponent is irrational this mean that there is infinite countable roots?  If this is the case... the cardinality of the number of roots is the same for any irrational exponent? Thanks in advance.  NOTE: there are different questions about irrational exponents but no one answer what Im searching so please dont mark this as repeated. I have a ListBox DataTemplate in WPF. I want one item to be tight against the left side of the ListBox and another item to be tight against the right side, but I can't figure out how to do this.  So far I have a Grid with three columns, the left and right ones have content and the center is a placeholder with it's width set to "*". Where am I going wrong?  Here is the code:  &lt;DataTemplate x:Key="SmallCustomerListItem"&gt;     &lt;Grid HorizontalAlignment="Stretch"&gt;         &lt;Grid.RowDefinitions&gt;             &lt;RowDefinition/&gt;         &lt;/Grid.RowDefinitions&gt;         &lt;Grid.ColumnDefinitions&gt;             &lt;ColumnDefinition/&gt;             &lt;ColumnDefinition Width="*"/&gt;             &lt;ColumnDefinition/&gt;         &lt;/Grid.ColumnDefinitions&gt;         &lt;WrapPanel HorizontalAlignment="Stretch" Margin="0"&gt;             &lt;!--Some content here--&gt;             &lt;TextBlock Text="{Binding Path=LastName}" TextWrapping="Wrap" FontSize="24"/&gt;             &lt;TextBlock Text=", " TextWrapping="Wrap" FontSize="24"/&gt;             &lt;TextBlock Text="{Binding Path=FirstName}" TextWrapping="Wrap" FontSize="24"/&gt;          &lt;/WrapPanel&gt;         &lt;ListBox ItemsSource="{Binding Path=PhoneNumbers}" Grid.Column="2" d:DesignWidth="100" d:DesignHeight="50"      Margin="8,0" Background="Transparent" BorderBrush="Transparent" IsHitTestVisible="False" HorizontalAlignment="Stretch"/&gt;     &lt;/Grid&gt; &lt;/DataTemplate&gt; What is the la command? I just mistyped ls as la. Without noticing, I ran it:  tim@Hairy:~$ la detection.sh   output-2.jpg  output-4.jpg  output-6.jpg  output-8.jpg Test1.pdf output-1.jpg   output-3.jpg  output-5.jpg  output-7.jpg  output-9.jpg          tim@Hairy:~$ ls detection.sh   output-2.jpg  output-4.jpg  output-6.jpg  output-8.jpg Test1.pdf output-1.jpg   output-3.jpg  output-5.jpg  output-7.jpg  output-9.jpg    What's the difference between ls and la? Creating Digital Terrain Model from Digital Elevation Model using ArcGIS for Desktop? I have a DEM and I want to create a DTM from that DEM. Is it possible to do this in ArcGIS? If every compact set is closed, then is the space Hausdorff? Problem  sudo notify-send Test "Hello World"   Displays a notification as expected.  notify-send Test "Hello World"   Does not display a notification.  Further information  Ubuntu version 16.04.  The notifications appear to use notify-osd instead of notification-daemon. Running notify-send appears to launch a notify-osd process under the user that ran notify-send. I'm not sure what dbus is.   No error messages  There are no errors in the syslog. When I run the following code no error messages occur.   #include &lt;libnotify/notify.h&gt; #include &lt;stdio.h&gt; int main() {     gboolean x = notify_init ("Hello world!");     printf( "notify_init: %d\n", x );     NotifyNotification * Hello = notify_notification_new ("Hello world", "This is an example notification.", "dialog-information");     GError *err = NULL;     x = notify_notification_show (Hello, &amp;err);     printf( "notify_notification_show: %d\n", x );     if(err != NULL) {         printf("Error detected!\n");         printf("Error message:%s\n", err-&gt;message);     }     else {         printf("No error detected.\n");     }     g_object_unref(G_OBJECT(Hello));     notify_uninit();     return 0; }   I do not know what I'm doing. Thanks for the help.  Python Notify  In the past, I've used a python program that has working notifications. I tested a hello world notification and it works without sudo!   #!/usr/bin/env python # -*- coding: utf-8 -*- import gi gi.require_version('Notify', '0.7') from gi.repository import Notify  Notify.init("test") n = Notify.Notification.new('test', 'test2') n.set_urgency(Notify.Urgency.CRITICAL)     n.show()   Code from   I am not sure why this works. The python Notify is just wrapping the library used in the C example. I'd prefer not to use python but will if I must.  Edit  The problem occurred again. Resolved by adding urgency critical. Will Stack Exchange 2.0 websites stay free of ads for the next 2 years? I had applied for a PLAB (Doctors) Visa for the UK to appear in PLAB test. I got refused on the basis of two recent large deposits in the bank statement I provided (my mothers). In reality, these are my own savings which I had deposited in her account to make it more strong. The only objection I got was that I must provide evidence for the source of these deposits. Other than this, I have previously travelled to the UK and USA as well as other parts of the world and my travel history is fine. Can someone please advise on how to proceed and re-apply? I know there is a difference between assert and verify in Junit; the assert results in a runtime exception, causing test method execution to abort. To overcome this problem, we can have verify which will make test case fail, but allowing test execution to proceed rather than getting aborted.  I doubt there is any such built in approach in testNG. I do understand that best practices say, there should not be multiple asserts in same test case.  But, in practical world, we do come across scenarios where we need to have multiple checkpoints in one test case and we don't want our test method to abort because of one check point failure (test execution should proceed despite failure).  How can we use a soft assert mechanism, similar to verify, which will not abort test method when there is a checkpoint failure.  Example:  @Test(dataProvider = "getMailUrl") public void testMail(email,subject); Assert.assertFalse(subject.isEmpty);//1st checkpoint Assert.assertNotNull(email); //2nd checkpoint Assert.assertEquals(email, "feedback@yoursite.com"); //3rd checkpoint   Now, I want test execution to proceed, even if the 1st checkpoint (validation of subject being not empty) fails. Definitely we will be not be using assert (hard assert). We will need concept of soft assert similar to verify (facilitated by Junit).   I understand, we have to build a customListener implementing TestNG interfaces or extending existing listeners such as TestListenerAdapter. I am still struggling - how can we do this?