I have following html that is contained in my webpage.  &lt;div id="flashmessage" class="ok"&gt;      &lt;a class="ico-close"&gt;x&lt;/a&gt;      MY TEXT HERE &lt;/div&gt;   How to extract 'MY TEXT HERE' from this html using jquery?  Note: I intend to convert this flashmessage to fancybox popup.
I would like to get all descendant text nodes of an element, as a jQuery collection. What is the best way to do that?
How to sail downwind faster than the wind? Recently a  set a record for sailing a wind-powered land vehicle directly down wind, and a speed faster than wind speed. Wikipedia has a  talking about it, but it doesn't explain exactly how it works.  I can imagine some configurations, but I don't get how a system could be set up to push forward with a tailwind (when the cart is moving slower than the wind) and push forward with a head wind (when the cart is moving faster than the wind).  Could someone help explain how this is possible? Encrypting a key with the same key, for instance using AES I am new to crypto and trying to understand if it would be insecure to use a cipher such as AES to encrypt a key with the same key. If it is insecure, then why would it be insecure?  Basically, something like this:  encrypt(key, key)   What happens when both key and message are the same (128 bits)?  The obvious question would be why would I want to do that. If I have a secure channel to send the key, why encrypt it? My question is more for understanding. Remove GRUB and keep a Linux system I am writing my thesis and using latex for first time. I would like to modify the the first page of my thesis, as it shows only name of thesis, my name etc. I would like to move all  text little-bit to right-side, just on the first page, without effecting the other pages of thesis. Any idea how can I do it?  \documentclass[a4paper,      12pt,      twoside,      openright,      cleardoublepage=empty,      numbers=noenddot,      appendixprefix,      BCOR1.5cm,      bibliography=totoc      ]{scrbook}   \thispagestyle{empty} \begin{titlepage} \begin{center}  %xyz  \end{center} \end{titlepage} \clearpage How to activate bluetooth device for RTL8723DE? The wireless drivers for the RTL8723DE appeared for downloading and the module is now usable for Wi-Fi.   See   But the bluetooth part of it is yet not supported on Ubuntu. How this can be fixed?  lsusb shows  Bus 001 Device 003: ID 0bda:b009 Realtek Semiconductor Corp.    And usb-devices | awk '/0bda/' RS=  T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=01 Dev#=  3 Spd=12  MxCh= 0 D:  Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1 P:  Vendor=0bda ProdID=b009 Rev=02.00 S:  Manufacturer=Realtek S:  Product=802.11n WLAN Adapter S:  SerialNumber=00e04c000001 C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb Commenting out multiple lines of code, specified by line numbers, using vi or vim I have learned from  that it is possible to use vi/vim to comment out a specified range of line numbers.  For example, suppose I have the following bash script:  #!/bin/bash  This is my very very great script   Now suppose that I want to comment out line numbers 6 through 8 (which contain the words very, very, and great) using the # comment character.  In vi/vim, I can simply type :6,8s/^/# to obtain the following:  #!/bin/bash  This is my #very #very #great script   which comments out lines 6 through 8.  My question is, is it possible to type a similar one liner that will remove the # comment character from lines 6 through 8 (but not any other commented lines in the file)?  Having said this, I realize that there is some debate about whether I am actually using vi or vim.  In practice, I open a file script.sh with the command vi script.sh.  Also, when I type the command which vi, I obtain /usr/bin/vi.  Nevertheless, when I simply type vi and press Enter, I obtain this:  ~                              VIM - Vi IMproved ~ ~                               version 7.2.330 ~                           by Bram Moolenaar et al. ~                 Vim is open source and freely distributable ~ ~                           Sponsor Vim development! ~                type  :help sponsor&lt;Enter&gt;    for information ~ ~                type  :q&lt;Enter&gt;               to exit ~                type  :help&lt;Enter&gt;  or  &lt;F1&gt;  for on-line help ~                type  :help version7&lt;Enter&gt;   for version info   which seems to suggest that I'm actually using vim.  I am accessing a remote Ubuntu Linux cluster using SSH from my PC.  I am not using a Ubuntu Linux GUI. Invariant Subspace of Two Linear Involutions I'd love some help with this practice qualifier problem:  If $A$ and $B$ are two linear operators on a finite dimensional complex vector space $V$ such that $A^2=B^2=I$ then show that $V$ has a one or two dimensional subspace invariant under $A$ and $B$.    Thanks! We have a directory and want to protect that from remove and rename, but we need to be able to rename, remove and create contents. What we can do? Prove that if $b = dk$ where $gcd(m, a) = d$, there are $d$ solutions to $ax \equiv b \mod m$ I know that there exists at least one solution, because $ax \equiv b \mod m \implies ax - b = qm$  Rearranging terms gives $ax - qm = b$, and since $d | a$ and $d | m$, so $d | b$ it can be said that $b \equiv 0 \mod d$.  I implemented Euclid's extended algorithm and have been able to experimentally verify that the claim holds, but I do not see a pattern or how I can begin to show there are exactly $d$ solutions.  def euclid_extended(x, y, i=0):   if y == 0:     print("iteration {0} returns ({1}, {2}, {3}) - base case hit with ({4}, {5})".format(i, x, 1, 0, x, y))     return (x, 1, 0)   else:     (d, a, b) = euclid_extended(y, x % y, i + 1)     print("iteration {0}. ({4}, {5}) =&gt; ({1}, {2}, {3})".format(i, d, b, a - b * (x//y), x, y))     return (d, b, a - b * (x//y)) Ubuntu 16.10 Dual Boot error - 'grub-efi-amd64-signed' package failed to install In a question earlier today () the Op asserts that they would need to change their hub, if they wanted to go from a 10- to 11- speed cassette.  I'm not very clued up on 11-speed systems, was wondering why this is the case? And, presumably, when they say "hub", they mean just the freehub body?    Or do they mean something else/more? Complex number question on proving an inequality. If $|z_1|=1,|z_2|=1$, how can one prove $|1+z_1|+|1+z_2|+|1+z_1z_2|\ge2$ Balloons and lifting gases Hydrogen is the lightest element, so it's cable of lifting the most weight in out atmosphere (probably not the best terminology there, but you get the picture)  Would hot hydrogen (in the same sense as hot air) be able to lift even more mass? Would a higher or lower density of hydrogen in a ballon lift more? If you could have a balloon which had nothing in it (it was a vacuum inside) would that lift more than a hydrogen balloon?  Basically what are the physics to balloons and lifting?  (really not sure what to tag this, so if someone else could that'd be great) How is ISO implemented in digital cameras? If I change the ISO settings on my camera, obviously the gain of the system is increased, amplifying the signal from the sensor. What's not clear to me is where the amplification takes place. I see several possibilities:   In the sensor, by increasing voltage or some other mechanism Via an analog amplifier outside of the sensor Digitally, after the signal has been digitized, but before storing data in the RAW file As a parameter applied solely in creating an image from RAW   If #4 is true, then you could take a 4-stop overexposed RAW picture at ISO 1600, and then in post processing produce a JPEG at ISO 100 that would be the same as if the original photo had been shot at ISO 100.  If #1 or #2 is true, then a RAW file shot at ISO 1600 would actually contain more information about shadows, and an ISO 100 RAW would contain more information about highlights. Changing Date format and appending to original file I have file like this called a.txt:  [2016-03-30T04:51:51.599-04:00]!ER_DEV!Port_Conflict!/u05/app/ [2016-01-20T04:30:21.885-04:00]!ER_DEV!Port_Conflict!/u05/app/   I need to modify it so it looks like:    2016-03-30 04:51:51!ER_DEV!Port_Conflict!/u05/app/   2016-01-20 04:30:21!ER_DEV!Port_Conflict!/u05/app/   i already wrote a command to change [2016-03-30T04:51:51.599-04:00] to 2016-03-30 04:51:51 .but how to append the query output to original file.    awk -F'!' '{print $1}' a.txt | awk -F '[T.]' '{print $1 " " $2}' | awk '{gsub(/\[/,"")}1' How can I prove that if $n$ is even then $n^2$ is even and if $n$ is odd then $n^2$ is odd? Do magic item spells require concentration? Do magic items that cast a magic effect such as a ring of invisibility require the user to maintain concentration as if they had cast the spell?  Is this also the case if the item casting the spell is an artifact?   If the item is intelligent can it concentrate on the spell? I have a file with ANSI colors.  test.txt: \e[0;31mExample\e[0m  I would like to display the content of this file in a terminal, like cat does, but I would like to display the colors as well. How do you left pad an int with zeros when converting to a String in java?  I'm basically looking to pad out integers up to 9999 with leading zeros (e.g. 1 = 0001). How to pass parameters to function in a bash script? I'd like to write a function that I can call from a script with many different variables. For some reasons I'm having a lot of trouble doing this. Examples I've read always just use a global variable but that wouldn't make my code much more readable as far as I can see.  Intended usage example:  #!/bin/bash #myscript.sh var1=$1 var2=$2 var3=$3 var4=$4  add(){ result=$para1 + $para2 }  add $var1 $var2 add $var3 $var4 # end of the script  ./myscript.sh 1 2 3 4   I tried using $1 and such in the function, but then it just takes the global one the whole script was called from. Basically what I'm looking for is something like $1, $2 and so on but in the local context of a function. Like you know, functions work in any proper language.