Concatenate string & list
How would you make a comma-separated string from a list of strings?
Is there a way to export large multi-layered Illustrator file to Photoshop?  When I export with preserve layers and text edit-ability, the complex layers are flattened. I've reorganized my layers to have simple groupings but that's time consuming.  Is there a more effective way of doing this? Or script to automate it? SEO regarding using separate  tags for the logo and website name Is is true &lt;h1&gt; tag should not have more than 1 on every page for SEO?   Every pages on the header, it includes and &lt;h1&gt; tag. Website Name which show an image from logo class, like this:  &lt;div id="header"&gt;   &lt;h1 class="logo"&gt;      &lt;a href="#"&gt;Website Name&lt;/a&gt;   &lt;/h1&gt; &lt;/div&gt;   and I also include &lt;h1&gt; on the contact page, help, etc and article page for example:  &lt;h1&gt;Contact Us&lt;/h1&gt; &lt;h1&gt;Name of the Article Title here&lt;/h1&gt;   On the homepage, it just has one &lt;h1&gt; for the logo Site Name... other pages have 2 &lt;h1&gt; tags How can I run a Minecraft Server on multiple CPU cores? I am working on setting up a Minecraft server on a machine I have at home. This particular machine has two quad-core CPUs running at 2.0Ghz so I would like to take advantage of the number of cores and run a server with 4 or 6 of the cores. My server of choice is CraftBukkit, the latest version of which is craftbukkit-1.4.7-R1.0 and launched with a start-up script of:  "C:\Program Files\Java\jre7\bin\java.exe" -Xms1G -Xmx8G -jar craftbukkit-1.4.7-R1.0.jar"   The  says:     Minecraft servers, as of 1.1.0, can use multiple cores, so now they will not sit idle.   but does not really expand on this.  My questions, then:   Is it possible to set the number of cores the server uses? How do I do it - via start-up options, or other methods? Is it really worth it and would it make that much of a difference with a lot of players? Density of $\mathbb{Q}^n$ in $\mathbb{R}^n$ How to understand intuitively the Stolz-Cesaro Theorem for sequences? How should a family with young children apply for UK visas? List the files accessed by a program WP List Table custom quick edit box - post meta data missing and columns change on submit I have extended class WP_List_Table to create a custom sortable table of posts along with a quick edit box with custom meta boxes.  The meta boxes populate and save but when I click submit the field values disappear and the defaults ( cb, title, tags, cats, etc) which are not even included in my class get added back to the column saved. This throws off the other columns on the page.  The saved custom field values return when the page is refreshed.  It seams like on submit the $post_object is missing.  I'm using a hacked get_inline_data function that includes the meta_values in my quick edit form instead of calling get_inline_data in my class.  My save function for the meta boxes:  add_action( 'save_post', 'save_inline_edit_meta' ); function save_inline_edit_meta( $post_id  ) {     global $pagenow;      if ( $pagenow == 'admin.php' ) {      if ( isset( $_POST[ 'is_quickedit' ] )  &amp;&amp; isset( $_POST[ 'standinghead' ] ) )         update_post_meta( $post_id, '_wnd_standing_head', $_POST[ 'standinghead' ] );      if ( isset( $_POST[ 'is_quickedit' ] )  &amp;&amp; isset( $_POST[ 'headline' ] ) )         update_post_meta( $post_id, '_wnd_alt_title', $_POST[ 'headline' ] );      if ( isset( $_POST[ 'is_quickedit' ] )  &amp;&amp; isset( $_POST[ 'deck' ] ) )         update_post_meta( $post_id, '_wnd_deck', $_POST[ 'deck' ] );     }   return $post_id;  }   My Javascript save function:  save : function(id) {         var params, fields, page = $('.post_status_page').val() || '';          if ( typeof(id) == 'object' )             id = this.getId(id);         $('table.widefat .inline-edit-save .waiting').show();         params = {             action: 'inline-save',             post_ID: id,             post_type: 'post',             edit_date: 'true',             post_status: page         };         fields = $('#edit-'+id+' :input').serialize();         params = fields + '&amp;' + $.param(params);          $.post('admin-ajax.php', params,             function(r) {                 $('table.widefat .inline-edit-save .waiting').hide();                  if (r) {                     if ( -1 != r.indexOf('&lt;tr') ) {                         $(inlineEditPost.what+id).remove();                         $('#edit-'+id).before(r).remove();                         $(inlineEditPost.what+id).hide().fadeIn();                     } else {                         r = r.replace( /&lt;.[^&lt;&gt;]*?&gt;/g, '' );                         $('#edit-'+id+' .inline-edit-save .error').html(r).show();                     }                 } else {                     $('#edit-'+id+' .inline-edit-save .error').html(inlineEditL10n.error).show();                 }             }         , 'html');         return false;     }, $F$ closed and connected then... Let $F\subset X$ be a closed and connected subset of the metric space $(X,d)$ then for every pair of points $a, b\in F$ and each $\epsilon&gt;0$ there are points $a=z_0,z_1,\ldots z_n=b$ in $F$ such that $d(z_{k-1}-z_k)&lt;\epsilon$ for $1\leq k\leq n$.  Is the hypothesis that $F$ is closed needed? Is tipping mandatory at Restaurants and Bars in Germany? In Bavaria, I paid for my drink, I asked her for "Ruckgeld", but only got the integer part of the money back, the rest of it, she kept it for tip! I looked her in the eye and she understood that I wasn't happy with that "initiative", but wouldn't blink an eye!  My company advised me to let it go, mentioning that if I was going to ask for the change, she would swear.  Notice how she didn't return me the correct amount back and then stare at me, demanding for tip, but she would decide for me!  Since, I will be around for a week or so, I was thinking of paying the exact amount of money next time. Will I get in an uncomfortable situation of having the waiter stare at me, demanding a tip? In other words, is tipping mandatory in Germany?    PS: Having experienced the tipping-cruelty in USA, and having tipped generously waiters across the Mediterranean for their supreme behavior, this Saturday night came as a shock, since I had the impression that this awful habit was only a USA-thing (you know, just like the fake audience laughing they have in USA TV series :) ). Getting "'file' is different from the same file on the system" when I attempt to update through synaptic Encountered an error while updating through Synaptic Manager. Subsequent updates gave the error at the bottom of the output. I'm a noob so any help is appreciated.  al@al:~$ sudo apt-get -f upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following NEW packages will be installed:   libjack-jackd2-0:i386 The following packages have been kept back:   linux-headers-generic skype 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 0 B/202 kB of archives. After this operation, 493 kB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 310056 files and directories currently installed.) Unpacking libjack-jackd2-0:i386 (from .../libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb (--unpack):  './usr/share/doc/libjack-jackd2-0/buildinfo.gz' is different from the same file on the system dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Get name of caller function in PHP? Is there a PHP function to find out the name of the caller function in a given function? Intuitive explanation of the tower property of conditional expectation I understand how to define conditional expectation and how to prove that it exists.  Further, I think I understand what conditional expectation means intuitively. I can also prove the tower property, that is if $X$ and $Y$ are random variables (or $Y$ a $\sigma$-field) then we have that  $$\mathbb E[X] = \mathbb{E}[\mathbb E [X | Y]].$$  My question is: What is the intuitive meaning of this? It seems quite puzzling to me.  (I could find similar questions but not this one.) What's the 1 inch square knob sticking out of the wall? How to share worlds between platforms with Minecraft Better Together I have read that with the new "Better Together Update" (BTU) it is now possible to .  However, I am having trouble finding details of how this is supposed to work to determine if it would do what I am hoping it would and therefore whether it is worth my time/money.  I have some saved worlds on Minecraft for XBox One, all done in creative mode.  I am able to import them into what is now just called "Minecraft" which as of the BTU is what is being used to mean the cross-platform version.   Can I now play this same world on my Windows 10 PC?   If I go to the Minecraft web site it offers to sell me the "Java Edition" with the addendum "includes edition for Windows 10".   But from what I have read, anything that has the word "edition" in it isn't the cross platform version.   It's very unclear to me what I would actually be buying here.  If it is possible to open the same world on different platforms, exactly how would I go about doing this?  On the XBox I have to sign in with an outlook.com e-mail address to access my worlds, or my kids' sign-ins to access their worlds, is it the same from the PC? And where would my world be saved?   I have read that XBox saves will be in the cloud, but PC saves will be local, so how can I get a cloud save onto my PC?  And then how can I get it back to the cloud when I am done so I can play it on the console again?  Will there be two copies floating around, making it possible for me to make a backup on my PC?  How will this interact with world editors?  At some point will I be able to start a game on XBox, transfer it to the PC, open it in a world editor, make some changes, and then transfer it back to the XBox? "Yesterday" time specification shown when it was actually the day before yesterday Looking at , I see "asked yesterday" (which I really hate; I'd like to see an exact time specification rather than this vague one, especially in the list of questions). But it was not asked yesterday! When I hover over it to show the exact time, it shows it was actually the day before yesterday!  This snapshot was taken at 2012-03-31 15:00 UTC (plus or minus a few minutes):    Whatever different opinions you may have on the implementation, yesterday is a word with a certain meaning. Redefining it is not a good idea. At least rephrase this as "1 day ago" or something. I know that a perpetual motion machine (a device that produces work without an energy source) would violate several physical laws, the first that comes to mind being the . I also understand that a claim that perpetual motion is possible would probably not be congruent with the scientific method, occum's razor, etc.  What I am interested in is whether there exists some logical and intuitively meaningful (to they lay person) demonstration that perpetual motion is universally impossible, based only on axioms rooted in observable physical phenomena, rather than the obvious reasons why it is merely improbable and incompatible with some of our physical laws.  Certain violations of physical laws, such as travelling faster than the speed of light, can be shown to be unlikely as they would cause paradoxes or logical impossibilities, such as a . In that instance, the axioms needed to establish a paradox (time dilation) are empirically observable, and a counter-claim would require the existence of new paradox-resolving laws that are not established, or the permission of paradoxes which is difficult to imagine.  Conversely, the idea that some invention is impossible on the basis of its violation of a physical law alone is difficult because it requires a .  So, without relying on the assertion that a physical law is omnipresent (e.g. conservation of energy), is there some impossibility or logical paradox that would arise from the existence of a machine that could produce work without indefinitely without an energy source?  Finally, I'm very aware that perpetual motion is a bit of a dirty word and will likely touch a nerve with people, so please take the time to let me know how I can make this question less offensive and avoid the inevitable down-votes. Suppress SSL warnings Ruby -- capitalize first letter of every sentence in a paragraph Display SharePoint Online in an iframe on different domain We would like to display pages from SharePoint Online in an iframe of a Page hosted somewhere else, e.g. in an Azure Web App:  &lt;iframe src="https://site.sharepoint.com/"&gt;&lt;/iframe&gt;   When we do this (in Chrome for example), we get the following error:     Refused to display " ⏎                      Home.aspx" in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.   A Page from SharePoint 2013 (on premise) can be displayed in an iframe from a Page hosted on another domain, if the following control is added to the head of the master page:  &lt;WebPartPages:AllowFraming runat="server" /&gt;   However if this control is not added to the master-page, then we also get the above mentioned error.  As far as I know there is no possibility to adjust the master-page in a SharePoint Online Team Site. Is that correct?   In a Publishing Site you are allowed to adjust the master-page, or even add a new one. But I can't find anything similar in Team Sites.  Does anybody know if it is somehow possible to configure domains which do not fall under the "X-FRAME-OPTIONS: SAMEORIGIN"-policy in a SharePoint Online environment? Or if there is another possibility to display SharePoint Online content in an iframe on a different domain. I checked google, checked the Site settings and checked the Office 365 admin center, but didn't find anything.