I want to split the 1&amp;90 into 1 and 90 and assign in different variable.  $(document).on("click", "a[name='delete_user_journal']", function (event, element) {      var el = $(element);     event.preventDefault();     var j_id = $(this).attr("href");     alert(j_id); // 1&amp;90 }
I have this string  'john smith~123 Street~Apt 4~New York~NY~12345'   Using JavaScript, what is the fastest way to parse this into  var name = "john smith"; var street= "123 Street"; //etc...
Consider $\mathbb R^{[0,1]}$ the space of all functions from $[0,1]$  to $\mathbb R$  and the cylindrical sigma algebra $\mathcal B$  on it. The question is: how to prove that $C[0,1]\notin \mathcal B$. In an Econometrics - Time Series textbook (Hamilton), I saw the claim, without proof: Consider the sequence $ \psi_j $, then, for $ x &gt; j $, $ \frac1j &gt; \frac1x $, and therefore: $$  \frac1j &gt; \int_{j}^{j+1} \frac1x dx $$ for $x$ &gt; $j$. When I plug in numbers for $j$, I see that this is indeed satisfied. But I'd like to know the intuition behind this or a proof. Bridged adapter in Virtual Box - cannot obtain IP I have virtual box with RHEL installed. My virtual box is running on windows 7 64 -bit. I configured bridged connection, but when I am restarting network interfaces, I receive following error:  Determining IP information for eth1... failed   On Windows XP it works without problems. I disabled Windows Firewall and installed latest Virtual Box, still without success.   NAT is working without any problems. What did I missed?  UPDATE  Ouput of ifconfig -a is:  eth0      Link encap:Ethernet  HWaddr 08:00:27:B6:FC:69           inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0           inet6 addr: fe80::a00:27ff:feb6:fc69/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:430 errors:0 dropped:0 overruns:0 frame:0           TX packets:346 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:36520 (35.6 KiB)  TX bytes:31455 (30.7 KiB)  eth1      Link encap:Ethernet  HWaddr 08:00:27:C3:84:4A           inet6 addr: fe80::a00:27ff:fec3:844a/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:1464 errors:0 dropped:0 overruns:0 frame:0           TX packets:17 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:135419 (132.2 KiB)  TX bytes:4230 (4.1 KiB)  lo        Link encap:Local Loopback           inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:16436  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)   Output of route -n  Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 10.0.2.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0 169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0 0.0.0.0         10.0.2.2        0.0.0.0         UG    0      0        0 eth0   Output of dhclient -v eth1 is:  Listening on LPF/eth1/08:00:27:c3:84:4a Sending on   LPF/eth1/08:00:27:c3:84:4a Sending on   Socket/fallback DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6 (xid=0x6afb6c4c) DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x6afb6c4c) DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15 (xid=0x6afb6c4c) DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 18 (xid=0x6afb6c4c) DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x6afb6c4c) No DHCPOFFERS received. No working leases in persistent database - sleeping.   Moreover the same machine with the same configuration works well on Windows XP. The problem is only on Windows 7. Is it "I" or "me" in "Keep Tom and I/me updated"? I created a presentation using the beamer class with texmaker. Right now it looks like this:    Now I would like to include a jpg where the red circle is located, so basically inside a palette. Can anybody help me how to do that?  The code:  \documentclass[t,compress,10pt,xcolor=dvipsnames]{beamer}  \usepackage{lmodern} \usepackage[labelformat=empty,labelsep=none]{subfig} \usepackage{caption} \usepackage{float} \usepackage{wrapfig}  \newcommand*\oldmacro{}% \let\oldmacro\insertshorttitle%  \renewcommand*\insertshorttitle{%   \oldmacro\hfill%  \insertframenumber\,/\,\inserttotalframenumber}  \definecolor{UniDunkel}{RGB}{73,142,137} \definecolor{UniHell}{RGB}{142,184,182}  \setbeamertemplate{blocks}[rounded][shadow=true] \setbeamercolor{structure}{fg=UniDunkel}  \setbeamercolor{block body}{parent=normal text,use=block title, bg=block title.bg!10!bg} \setbeamercolor{block body alerted}{parent=normal text,use=block title  alerted,bg=block title alerted.bg!10!bg} \setbeamercolor{block body example}{parent=normal text,use=block title  example,bg=block title example.bg!10!bg}  \setbeamercolor*{palette primary}{use=structure,fg=white,bg=UniDunkel!115} \setbeamercolor*{palette secondary}{use=structure, fg=UniHell,  bg=UniHell} \setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=UniDunkel!115} \setbeamercolor*{palette quaternary}{fg=Orange}  \setbeamercolor*{sidebar}{use=structure,bg=structure.fg} \setbeamercolor*{palette sidebar primary}{use=structure,fg=structure.fg!10} \setbeamercolor*{palette sidebar secondary}{fg=white} \setbeamercolor*{palette sidebar quaternary}{fg=white} \setbeamercolor*{titlelike}{parent=palette primary}  \setbeamercolor*{fine separation line}{}  \setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!0!red} \setbeamercolor{block title alerted}{use=alerted text,fg=white,bg=alerted text.fg!0!white} \setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg!0!white}  \useoutertheme{miniframes} \useinnertheme{circles} \setbeamertemplate{footline}[frame number]  \beamertemplatenavigationsymbolsempty  \begin{document}  \section{Section1} \subsection{Subsection1} \frame { \frametitle{Frame1} }  \section{Section2} \subsection{Subsection2} \frame { \frametitle{Frame2} }   \end{document} Let $A$ and $B$ be two matrices which can be multiplied. Then $$\operatorname{rank}(AB) \leq \operatorname{min}(\operatorname{rank}(A), \operatorname{rank}(B)).$$   I proved $\operatorname{rank}(AB) \leq \operatorname{rank}(B)$ by interpreting $AB$ as a composition of linear maps, observing that $\operatorname{ker}(B) \subseteq \operatorname{ker}(AB)$ and using the kernel-image dimension formula. This also provides, in my opinion, a nice interpretation: if non-stable, under subsequent compositions the kernel can only get bigger, and the image can only get smaller, in a sort of loss of information.  How do you manage $\operatorname{rank}(AB) \leq \operatorname{rank}(A)$? Is there a nice interpretation like the previous one? How to escape '$' and '#' in Facelets/EL? How do I customize the date/time display in GNOME Shell's top bar? Time indicator is shown as "%a %H:%M" in the center of the top bar.  How do I move it back to the right where it belongs, and make it include the full date and time ("%Y-%m-%d %s %H:%M")? How can I count unique selections from multiple selections in a drop down list (Excel) I would like to count the number of unique selections from a column that contains multiple selections from a drop down list.  For example, column B3 contains,     Monday, Tuesday, Wednesday   The count function returns a value of 1 instead of 3 - is there any way to count the three days distinctly? Thank you!  Multiple selections from a drop down list was made possible using the VBA code from: How to get from Heathrow Airport to King's Cross, London? My wife and I will be arriving in London via Heathrow Airport (LHR) and are staying at a hotel near King's Cross station. So, we were wondering what the best (which means fastest but also easiest when carrying two large pieces of luggage and two carry-ons) way to get from LHR to King's Cross?  I gather that, with only one changeover, we can take the Tube. However, in the interest of other passengers, we thought it would be best to take a taxi, or maybe a bus?  Thoughts? MSO Review Queue Privileges are Misleading I have been trying to add some boarding passes to wallet. I have downloaded the airline app and logged in. I have tried to "scan the code" as suggested in wallet, but the only code is a QR code and nothing happens when I try to scan. This should be that difficult but I cannot figure it out. Is there an easy way to get this done? Please explain to me how to do it. Thanks. Question Prove that for every integer k≥1, exists a self-complementary graph with 4k vertices half of which are of degree 2k-1 and the other half of degree 2k.  My approach So, I think the easiest way to prove what is asked is by induction. I can prove the base case for k=1, but as far as the inductive step is concerned, I cannot seem to reach a conclusion as to why if the statement holds for n, then it holds for n+1.  Any help would be appreciated. Delete with Join in MySQL Here is the script to create my tables:   CREATE TABLE clients (    client_i INT(11),    PRIMARY KEY (client_id) ); CREATE TABLE projects (    project_id INT(11) UNSIGNED,    client_id INT(11) UNSIGNED,    PRIMARY KEY (project_id) ); CREATE TABLE posts (    post_id INT(11) UNSIGNED,    project_id INT(11) UNSIGNED,    PRIMARY KEY (post_id) );   In my PHP code, when deleting a client, I want to delete all projects posts:  DELETE  FROM posts INNER JOIN projects ON projects.project_id = posts.project_id WHERE projects.client_id = :client_id;   The posts table does not have a foreign key client_id, only project_id. I want to delete the posts in projects that have the passed client_id.  This is not working right now because no posts are deleted. Cancel a vote so that the tally goes back to zero and not minus How to add a custom field to the media screen (image/gallery)? I’m trying to add a custom field to image and gallery edit screen.  I’m aware there are similar questions here, although answers either don’t work with the current version or they add field only to upload screen while I need a field to be visible in all edit screens (see below).  For this, I believe, you’ll have to mess with backbone.js as attachment_fields_to_edit only adds to upload screen.  Adding field with attachment_fields_to_edit    ↑ This is upload image screeen. Here Style is added with attachment_fields_to_edit filter, and my_field is added with ACF plugin.   But they are missing in edit screen in the post    ↑ Click edit on the actual post    ↑ No style &amp; my_field fields!  The question  How to add fields to still have them on the edit screen? Ideally answer will include adding fields to gallery edit screen if it’s a similar process  This question is really important for me so I’ll be adding a 100 rep bounty when it’s available.   Thanks! How do I make a bootable USB from Windows? find $\sum_{k=2}^{\infty}\frac{1}{k^2-1}$ I am stuck with a rather irritating problem I ran into after installing 11.10 on my macbook pro 5,5.  I did a clean install efi booting into the setup using the desktop cd. Upon the first reboot I was presented with the "invalid arch independent ELF magic" and grubs rescue console.  I have read  but the solution is no solution for me since installing grub via live cd only means installing the mbr version and I can't seem to find any manual on how to install grub-efi while booted into the live cd.  So my question is: How can I either edit the grubx64.efi file in my EFI Partition, reinstall grub-efi with a live CD / DVD or use grub rescue commands to fix this issue? Format a date in XML via XSLT