press ALTA 1999 Nickel/Cobalt Pressure Leaching & Hydrometallurgy Forum : May 11-12, 1999, Rendezvous Observation City Hotel, Perth, Australia / ALTA Metallurgical Services, Melbourne, Australia By prospero.murdoch.edu.au Published On :: Nickel/Cobalt Pressure Leaching & Hydrometallurgy Forum (5th : 1999 : Perth, W.A.) Full Article
press ALTA 1998 Nickel/Cobalt Pressure Leaching & Hydrometallurgy Forum : May 25-27, 1998, Hyatt Regency Hotel, Perth, Australia / ALTA Metallurgical Services, Melbourne, Australia By prospero.murdoch.edu.au Published On :: Nickel/Cobalt Pressure Leaching & Hydrometallurgy Forum (4th : 1998 : Perth, W.A.) Full Article
press ALTA 1997 Nickel/Cobalt Pressure Leaching & Hydrometallurgy Forum : May 19-20, 1997, Hyatt Hotel, Perth, Western Australia By prospero.murdoch.edu.au Published On :: Nickel/Cobalt Pressure Leaching & Hydrometallurgy Forum (1997 : Perth, W.A.) Full Article
press Nickel/Cobalt Pressure Leaching & Hydrometallurgy Forum : May 13-14, 1996, Hyatt Hotel, Perth, Western Australia / organised by ALTA Metallurgical Services By prospero.murdoch.edu.au Published On :: Nickel/Cobalt Pressure Leaching & Hydrometallurgy Forum (1996 : Perth, W.A.) Full Article
press 224 JSJ Cypress.js with Brian Mann By devchat.tv Published On :: Wed, 10 Aug 2016 09:00:00 -0400 Angular Remote Conf and React Remote Conf 03:18 - Brian Mann Introduction Twitter GitHub 03:33 - Cypress.io 04:09 - Selenium 08:56 - Cypress vs Selenium 16:54 - Similarities: Cypress and Protractor 18:22 - Mocking API Data 20:40 - Getting Started with Cypress and The Migration Process 21:54 - Testing 30:31 - Handling Data on the Backend 34:16 - What’s coming next in Cypress? Full Article
press JSJ 256 Wordpress and Wordpress API for JavaScript Developers with Roy Sivan By devchat.tv Published On :: Tue, 04 Apr 2017 06:00:00 -0400 On today's JavaScript Jabber Show, Charles, Aimee, Joe, and Cory discuss Wordpress and Wordpress API for JavaScript Developers with Roy Sivan. Roy is a WordPress (WP) developer at Disney Interactive. He has long been a fan of JavaScript and WP. During a WordCamp, the WP Founder announced the need for WP developers to learn JavaScript. But, what's in WP that developers should be interested about? Tune in to learn! Full Article
press JSJ 311: Securing Express Apps with Helmet.js with Evan Hahn By devchat.tv Published On :: Tue, 01 May 2018 06:00:00 -0400 Panel: Charles Max Wood Special Guests: Evan Hahn In this episode, the JavaScript Jabber panelists discuss securing Express apps with Helmet.js with Evan Hahn. Evan is a developer at Airtable, which is a company that builds spreadsheet applications that are powerful enough that you can make applications with. He has also worked at Braintree, which does payment processing for companies. They talk about what Helmet.js is, when you would want to use it, and why it can help secure your Express apps. They also touch on when you wouldn’t want to use Helmet and the biggest thing that it saves you from in your code. In particular, we dive pretty deep on: Evan intro JavaScript What is Helmet.js? Node and Express Why would you use the approach of Middleware? Helmet is not the only solution Http headers Current maintainer of Helmet.js npm Has added a lot to the project, but is not the original creator Outbound HTTP response headers Helmet doesn’t fully secure your app but it does help secure it How does using Helmet work? Are there instances when you wouldn’t want to use Helmet? No cash middleware Where do you set the configuration options? Top level Helmet module 12 modules What is the biggest thing that Helmet saves you from? Content security policy code And much, much more! Links: Airtable Braintree JavaScript Helmet.js Node Express npm Evan’s Website @EvanHahn Evan’s GitHub Picks: Charles Camera Zoom H6 Shure SM58 DevChat.tv Youtube React Round Up Evan Clojure Fortune Kantaro: The Sweet Tooth Salaryman Full Article
press The Yehud stamp impressions [electronic resource] : a corpus of inscribed impressions from the Persian and Hellenistic periods in Judah / Oded Lipschits and David S. Vanderhooft By prospero.murdoch.edu.au Published On :: Lipschitz, Oded Full Article
press Blood Pressure Patterns in Young Adulthood and Cardiovascular Disease and Mortality in Middle Age By jamanetwork.com Published On :: Wed, 01 Apr 2020 00:00:00 GMT This cohort study assesses whether long-term variability and rate of change of blood pressure from young adulthood to midlife are associated with cardiovascular disease and all-cause mortality by middle age. Full Article
press [ASAP] Molecular Mechanism for the Suppression of Alpha Synuclein Membrane Toxicity by an Unconventional Extracellular Chaperone By feedproxy.google.com Published On :: Fri, 08 May 2020 04:00:00 GMT Journal of the American Chemical SocietyDOI: 10.1021/jacs.0c01894 Full Article
press Cisco Press Releases PM Crash Course with World Renowned Project Management Trainer Rita Mulcahy By www.ciscopress.com Published On :: Wed, 14 Oct 2009 00:00:00 GMT The new book targets IT professionals and helps them get projects back on track using proven, real-world project management tools and techniques. Readers learn how to make an immediate impact on IT projects. Full Article
press Cisco Press Offering Facebook Sweepstakes and Product Discounts for Cisco Live 2011 By www.ciscopress.com Published On :: Mon, 11 Jul 2011 00:00:00 GMT Event Plans Include Enter-To-Win Registration/Travel to Cisco Live 2012 and “Meet the Author Sessions" Full Article
press A novel series of phenolic temozolomide (TMZ) esters with 4 to 5-fold increased potency, compared to TMZ, against glioma cells irrespective of MGMT expression By feeds.rsc.org Published On :: RSC Adv., 2020, 10,17561-17570DOI: 10.1039/D0RA02686G, Paper Open Access   This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.Leroy Shervington, Oliver Ingham, Amal ShervingtonThe standard of care treatment for patients diagnosed with glioblastoma multiforme (GBM) is temozolomide (TMZ).The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
press Lithium metal deposition/dissolution under uniaxial pressure with high-rigidity layered polyethylene separator By feeds.rsc.org Published On :: RSC Adv., 2020, 10,17805-17815DOI: 10.1039/D0RA02788J, Paper Open Access   This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.Shogo Kanamori, Mitsuhiro Matsumoto, Sou Taminato, Daisuke Mori, Yasuo Takeda, Hoe Jin Hah, Takashi Takeuchi, Nobuyuki ImanishiThe use of a high rigidity separator and application of an appropriate amount of pressure are effective approaches to control lithium metal growth and improve its cycle performance.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
press Anatomy of an HTML5 WordPress theme By nicolasgallagher.com Published On :: Fri, 14 Aug 2009 17:00:00 -0700 This site has been written in HTML5 and used to use WordPress to manage the content. I’ll explain why I used HTML5, describe the structure of the theme templates, and show some of the ways I tried to tame WordPress’s tendency to add mess to the source code. As this is my personal site I wanted to experiment with using HTML5, CSS3, and WAI-ARIA. All these documents are currently working drafts and subject to change. However, the web documents and applications of the future are going to be written in HTML5 and I wanted to see the benefits of using it to markup static documents. Using CSS 2.1, let alone the CSS3 selectors and properties that some browser vendors have implemented, has many advantages for controlling the presentation of semantically coded documents. For this reason I am not going to avoid using basic CSS 2.1 selectors just to faithfully reproducing this site’s design in IE6. However, I have tried to accommodate IE 7 and IE 8 users by using an HTML5 enabling script so that the new HTML5 elements can be styled in those browsers if users have Javascript enabled. HTML5 templates I started with a static prototype of this site developed on my local server. WordPress makes it very easy to create your own templates and, therefore, it is no problem to use HTML5. This theme only has 3 main templates: index, single, and archive. There are of course templates for 404s, attachments, comments, etc., but I won’t discuss them as they are all based on the 3 main templates. All the templates include ARIA roles as an accessibility aide. The single.php template has this rough structure: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" href="default.css"> </head> <body> <header role="banner"></header> <nav role="navigation"></nav> <article role="main"> <header> <time datetime="YYYY-MM-DD"></time> <h1></h1> </header> <footer></footer> </article> <nav></nav> <aside role="complementary"></aside> <footer role="contentinfo"> <small></small> </footer> </body> </html> The first line of the document is the HTML5 DOCTYPE. The new <article> element contains the content of each post. The same structure is used for the index.php template except that there are several articles displayed on each page and the ARIA role value of main is not used. In contrast, the archive.php template houses all the article excerpts in a <section> element with the ARIA role of main because the list of archived posts is itself the main content of the document. A clean theme WordPress tends to add classes, elements, and other bits of code in certain places. I haven’t used any of the WordPress functions that add class names to the body and to elements wrapping a post and also wanted to avoid cluttering the source code with any other unnecessary markup. This required a bit of fiddling around with the theme’s functions.php file. I’m not a PHP developer so this might not be pretty! Removing actions from wp_head() WordPress has a hook called wp_head that sits in the header.php of most themes. To avoid it inserting unwanted code into the <head> of the document I used the remove_action function to disable the functions that were responsible. The following code was added to the functions.php file of my theme: // Remove links to the extra feeds (e.g. category feeds) remove_action( 'wp_head', 'feed_links_extra', 3 ); // Remove links to the general feeds (e.g. posts and comments) remove_action( 'wp_head', 'feed_links', 2 ); // Remove link to the RSD service endpoint, EditURI link remove_action( 'wp_head', 'rsd_link' ); // Remove link to the Windows Live Writer manifest file remove_action( 'wp_head', 'wlwmanifest_link' ); // Remove index link remove_action( 'wp_head', 'index_rel_link' ); // Remove prev link remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // Remove start link remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // Display relational links for adjacent posts remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); // Remove XHTML generator showing WP version remove_action( 'wp_head', 'wp_generator' ); Source: WPEngineer.com: Cleanup WordPress Header Removing an empty <span> If you want to create excerpts you can either write them into the excerpt box or use the <--more--> quicktag in the WordPress editor. I just wanted the first paragraph of my posts to be used as the excerpt and so using the in-editor tag was the most practical approach I was aware of. However, when you do this WordPress will insert an empty <span> in the post’s content. This element has an id so that the area following the excerpt can be targeted by “more” or “continue reading” links. I removed both the empty <span> and the jump link by adding the following code to the functions.php file of the theme: // removes empty span function remove_empty_read_more_span($content) { return eregi_replace("(<p><span id="more-[0-9]{1,}"></span></p>)", "", $content); } add_filter('the_content', 'remove_empty_read_more_span'); Source: Ganda Manurung: Remove Empty Span Tag On WordPress // removes url hash to avoid the jump link function remove_more_jump_link($link) { $offset = strpos($link, '#more-'); if ($offset) { $end = strpos($link, '"',$offset); } if ($end) { $link = substr_replace($link, '', $offset, $end-$offset); } return $link; } add_filter('the_content_more_link', 'remove_more_jump_link'); Source: WordPress Codex: Customizing the Read More Displaying images in the excerpt For posts that display nothing but a photograph (yes, they will be shit but I’m hoping it gets me using my camera a bit more often) I wanted the image to show up in the archives. Equally, if the first paragraph of a post contained a link I wanted that to be preserved. The default the_excerpt() template tag doesn’t allow for this so it needed some modifying. I added a new function, which is just a modified version of the core excerpt function, to the functions.php file and then made sure that the template tag executed this function rather than the one contained in the core WordPress files. function improved_trim_excerpt($text) { if ( '' == $text ) { $text = get_the_content(''); $text = strip_shortcodes( $text ); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]&gt;', $text); $text = strip_tags($text, '<p><img><a>'); $excerpt_length = apply_filters('excerpt_length', 55); $words = explode(' ', $text, $excerpt_length + 1); if (count($words) > $excerpt_length) { array_pop($words); array_push($words, '[...]'); $text = implode(' ', $words); $text = force_balance_tags($text); } } return $text; } remove_filter('get_the_excerpt', 'wp_trim_excerpt'); add_filter('get_the_excerpt', 'improved_trim_excerpt'); Source: Aaron Russell: Improving WordPress’ the_excerpt() template tag Conditional next/prev links I prefer not to have empty elements in the markup and so I needed a way to conditionally insert the “Older entries”, “Newer Entries”, etc., links into templates. The solution I’m using here, which isn’t perfect, is to add this to functions.php: function show_posts_nav() { global $wp_query; return ($wp_query->max_num_pages > 1); } Source: Eric Martin: Conditional navigation links in WordPress And then to wrap the navigation markup in the templates with the following: <?php if (show_posts_nav()) : ?> <nav> <ul> <li><?php next_posts_link('« Older Entries') ?></li> <li><?php previous_posts_link('Newer Entries »') ?></li> </ul> </nav> <?php endif; ?> Summary It’s fairly easy to create a simple site with HTML5 and to use WordPress to deliver it. At the moment there are issues with Internet Explorer because you cannot style HTML5 elements unless you use Javascript. However, HTML5 redefines the meaning of certain elements (such as <dl>, which has become a more versatile “description list”) and allows block elements to be wrapped in a link. Therefore, there is still benefit in using the HTML5 DOCTYPE even if you do not make use of the new elements. Further reading HTML5 working draft HTML5 differences from HTML4 Accessible Rich Internet Applications (WAI-ARIA) 1.0 Full Article
press Using HTML5 elements in WordPress post content By nicolasgallagher.com Published On :: Wed, 24 Feb 2010 16:00:00 -0800 Here are two ways to include HTML5 elements in your WordPress post content without WordPress’ wpautop function wrapping them in p tags or littering your code with line breaks. HTML5 has several new elements that you may want to use in your post content to markup document sections, headers, footers, pullquotes, figures, or groups of headings. One way to safely include these elements in your posts is simple; the other way is a bit more complicated. Both ways rely on hand-coding the HTML5 markup in the WordPress editor’s HTML view. If you are adding HTML5 elements to your post content then you should use an HTML5 doctype. Disable wpautop for your theme This is the simple way. Disable the wpautop function so that WordPress makes no attempt to correct your markup and leaves you to hand-code every line of your posts. If you want total control over every line of your HTML then this is the option for you. To disable wpautop entirely add these lines to your theme’s functions.php: remove_filter('the_excerpt', 'wpautop'); remove_filter('the_content', 'wpautop'); However, wpautop is generally quite useful if most of your posts are simple text content and you only occasionally want to include HTML5 elements. Therefore, modifying wpautop to recognise HTML5 elements might be more practical. Modify wpautop to recognise HTML5 elements WordPress’ wpautop is part of the core functions and can be found in this file within your WordPress installation: wp-includes/formatting.php. It controls how and where paragraphs and line breaks are inserted in excerpts and post content. In order to create a modified version of WordPress’ core wpautop function I started off by duplicating it in my theme’s functions.php file. What I’ve experimented with is disabling wpautop and adding a modified copy of it – which includes HTML5 elements in its arrayss – to my theme’s functions.php file. Add the following to your theme’s functions.php file and you’ll be able to use section, article, aside, header, footer, hgroup, figure, details, figcaption, and summary in your post content. (Probably best to try this in a testing environment first!) /* ----------------------------- MODIFIED WPAUTOP - Allow HTML5 block elements in wordpress posts ----------------------------- */ function html5autop($pee, $br = 1) { if ( trim($pee) === '' ) return ''; $pee = $pee . " "; // just to make things a little easier, pad the end $pee = preg_replace('|<br />s*<br />|', " ", $pee); // Space things out a little // *insertion* of section|article|aside|header|footer|hgroup|figure|details|figcaption|summary $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|map|area|blockquote|address|math|style|input|p|h[1-6]|hr|fieldset|legend|section|article|aside|header|footer|hgroup|figure|details|figcaption|summary)'; $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', " $1", $pee); $pee = preg_replace('!(</' . $allblocks . '>)!', "$1 ", $pee); $pee = str_replace(array(" ", " "), " ", $pee); // cross-platform newlines if ( strpos($pee, '<object') !== false ) { $pee = preg_replace('|s*<param([^>]*)>s*|', "<param$1>", $pee); // no pee inside object/embed $pee = preg_replace('|s*</embed>s*|', '</embed>', $pee); } $pee = preg_replace("/ +/", " ", $pee); // take care of duplicates // make paragraphs, including one at the end $pees = preg_split('/ s* /', $pee, -1, PREG_SPLIT_NO_EMPTY); $pee = ''; foreach ( $pees as $tinkle ) $pee .= '<p>' . trim($tinkle, " ") . "</p> "; $pee = preg_replace('|<p>s*</p>|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace // *insertion* of section|article|aside $pee = preg_replace('!<p>([^<]+)</(div|address|form|section|article|aside)>!', "<p>$1</p></$2>", $pee); $pee = preg_replace('!<p>s*(</?' . $allblocks . '[^>]*>)s*</p>!', "$1", $pee); // don't pee all over a tag $pee = preg_replace("|<p>(<li.+?)</p>|", "$1", $pee); // problem with nested lists $pee = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee); $pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee); $pee = preg_replace('!<p>s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee); $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)s*</p>!', "$1", $pee); if ($br) { $pee = preg_replace_callback('/<(script|style).*?</\1>/s', create_function('$matches', 'return str_replace(" ", "<WPPreserveNewline />", $matches[0]);'), $pee); $pee = preg_replace('|(?<!<br />)s* |', "<br /> ", $pee); // optionally make line breaks $pee = str_replace('<WPPreserveNewline />', " ", $pee); } $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)s*<br />!', "$1", $pee); // *insertion* of img|figcaption|summary $pee = preg_replace('!<br />(s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol|img|figcaption|summary)[^>]*>)!', '$1', $pee); if (strpos($pee, '<pre') !== false) $pee = preg_replace_callback('!(<pre[^>]*>)(.*?)</pre>!is', 'clean_pre', $pee ); $pee = preg_replace( "| </p>$|", '</p>', $pee ); return $pee; } // remove the original wpautop function remove_filter('the_excerpt', 'wpautop'); remove_filter('the_content', 'wpautop'); // add our new html5autop function add_filter('the_excerpt', 'html5autop'); add_filter('the_content', 'html5autop'); The results are not absolutely perfect but then neither is the original wpautop function. Certain ways of formatting the code will result in unwanted trailing </p> tags or a missing opening <p> tags. For example, to insert a figure with caption into a post you should avoid adding the figcaption on a new line because an image or link appearing before the figcaption will end up with a trailing </p>. <!-- this turns out ok --> <figure> <a href="#"><img src="image.jpg" alt="" /></a><figcaption>A figure caption for your reading pleasure</figcaption> </figure> <!-- this turns out not so ok --> <figure> <a href="#"><img src="image.jpg" alt="" /></a> <figcaption>A figure caption for your reading pleasure</figcaption> </figure> Another example would be when beginning the contents of an aside with a paragraph. You’ll have to leave a blank line between the opening aside tag and the first paragraph. <aside> This content could be a pullquote or information that is tangentially related to the surrounding content. But to get it wrapped in a paragraph you have to leave those blank lines either side of it before the tags. </aside> Room for improvement Obviously there are still a few issues with this because if you format your post content in certain ways then you can end up with invalid HTML, even if it doesn’t actually affect the rendering of the page. But it seems to be pretty close! Leave a comment or email me if you are using this function and find there that are instances where it breaks down. I ran numerous tests and formatting variations to try and iron out as many problems as possible but it’s unlikely that I tried or spotted everything. Hopefully someone with more PHP and WordPress experience will be able to improve upon what I’ve been experimenting with, or find a simpler and more elegant solution that retains the useful wpautop functionality while allowing for the use of HTML5 elements in posts. Please share anything you find! Full Article
press Custom Tweet Button for WordPress By nicolasgallagher.com Published On :: Thu, 16 Sep 2010 17:00:00 -0700 How to create a custom Tweet Button for WordPress using the bit.ly and Twitter APIs. The HTML and CSS is completely customisable and there is no need for JavaScript. PHP is used to automatically shorten and cache the URL of a post, fetch and cache the number of retweets, and populate the query string parameters in the link to Twitter. The custom Tweet Button at the bottom of this post was created using this method. All the files are available on Github and released under MIT license. The PHP code was heavily influenced by the BackType Tweetcount plugin. How to use You’ll need your own bit.ly account and to be comfortable editing your theme’s functions.php, style.css, and template files. Be sure to make backups before you start making changes. Step 1: Download the Custom Tweet Button for WordPress files from Github. Step 2: Include the custom-tweet-button.php file in your theme’s functions.php file. Step 3: Replace the bit.ly username, bit.ly API key, and Twitter username placeholders in the tweet_button function with your own. Your bit.ly credentials can be found on the “settings” page of your account. Step 4: Add the custom Tweet Button CSS to your theme’s style.css file. Add the tweet.png image in your theme’s image folder. Make sure the image is correctly referenced in the CSS file. Step 5: Call the function tweet_button in your template files (e.g. single.php) at the position(s) in the HTML you’d like the Tweet Button to appear: if (function_exists('tweet_button')) { tweet_button(get_permalink()); } Why make your own Tweet Button? Making your own custom Tweet Button for WordPress has several additional advantages over using Twitter’s own offerings. Full control over the HTML and CSS. Having full control over the HTML and CSS means that you can choose how to present your Tweet Button. I decided to reproduce the horizontal and vertical styles of Twitter’s own button. But any appearance is possible. All click, traffic, and referrer data is stored in your bit.ly account. The URL for any published post is automatically shortened using the bit.ly service. The short URL is then passed to Twitter to ensure you can monitor the click and traffic data in your bit.ly account. The permalink is passed to Twitter in the counturl query string parameter to ensure that it counts the URL that your short URL resolves to. No need for JavaScript or embedded iframes. The Tweet Button works without JavaScript. You have full control over any custom JavaScript enhancements you may wish to include. If you’d prefer Twitter’s share page to open in a pop-up window you can write your own JavaScript handler. Faster page load. No external JavaScript or image files are loaded; both the short URL and retweet counts are cached. Use the short URL and retweet count for other purposes. The short URLs and retweet counts are stored as post meta-data. This makes it easy to display this data anywhere else in a post. The retweet count data could be used for conditional template logic. For example, you could order posts based on the number of retweets, apply custom styles to your most retweeted posts, or display your most tweeted posts in a widget. Easy to add Google Analytics campaign and event tracking. The Tweet Button is simple HTML and you have control over all the information that is sent to Twitter. Therefore, it is possible to use Google Analytics to help answer questions like: are people sharing your posts from the homepage or the post itself? If the Tweet Button is displayed above and below your posts, which gets the most clicks? How long do people take to click the Tweet Button? How many people are visiting my site thanks to links posted on Twitter using the Tweet Button? Approximate the number of retweets for old posts. Before the release of the official Tweet Button, Twitter did not collect data on the number of times a URL was tweeted. This means your older posts may display far fewer retweets than actually occurred. However, there is a workaround. Use a service like Topsy, Backtype, or Tweetmeme to get the number of times your old post was retweeted. The difference between this and the number from Twitter’s APIs is the approximate number of retweets Twitter missed. To correct the retweet count for old posts add the number of missed retweets to a Custom Field called retweet_count_start. How the custom Tweet Button works Once a post is published its permalink URL is shortened using the bit.ly API. The returned URL is permanently cached in the bitly_short_url Custom Field. The short URL is now part of the post’s general meta-data and can be used in contexts other than the Tweet Button. The Twitter API is used to get the number of retweets for the post’s permalink URL. This number, along with the time at which it was requested, is cached in the retweet_cache Custom Field. When the cache interval has passed, an API call is made and the returned number of retweets is checked against the value stored in retweet_cache. If the returned number is greater, the value of retweet_cache is updated. The content of the tweet is automatically created by setting several properties for the http://twitter.com/share URL. The post title makes up the message; the short URL is passed to Twitter as the URL to be displayed in the tweet; the permalink URL is passed to Twitter as the URL to be counted; and your username is declared. $twitter_params = '?text=' . urlencode($title) . '&url=' . urlencode($short_url) . '&counturl=' .urlencode($url). '&via=' . $twitter_via; The default HTML output is very simple and can be fully customised. To display the count number vertically, add the class vcount. <div class="twitter-share vcount> <a class="twitter-button" rel="external nofollow" title="Share this on Twitter" href="http://twitter.com/share?query-string-params" target="_blank">Tweet</a> <a class="twitter-count" href="http://twitter.com/search?q=url>259</a> </div> Further enhancements Please apply any improvements or enhancements for the script against the source repository. Full Article
press Better float containment in IE using CSS expressions By nicolasgallagher.com Published On :: Mon, 25 Apr 2011 17:00:00 -0700 Research into improving the cross-browser consistency of both the “clearfix” and “overflow:hidden” methods of containing floats. The aim is to work around several bugs in IE6 and IE7. This article introduces a new hack (with caveats) that can benefit the “clearfix” methods and the new block formatting context (NBFC) methods (e.g. using overflow:hidden) of containing floats. It’s one outcome of a collaboration between Nicolas Gallagher (that’s me) and Jonathan Neal. If you are not familiar with the history and underlying principles behind methods of containing floats, I recommend that you have a read of Easy clearing (2004), Everything you know about clearfix is wrong (2010), and Clearfix reloaded and overflow:hidden demystified (2010). Consistent float containment methods The code is show below and documented in this GitHub gist. Found an improvement or flaw? Please fork the gist or leave a comment. Micro clearfix hack: Firefox 3.5+, Safari 4+, Chrome, Opera 9+, IE 6+ .cf { /* for IE 6/7 */ *zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif"); /* non-JS fallback */ *zoom: 1; } .cf:before, .cf:after { content: ""; display: table; } .cf:after { clear: both; } Overflow hack (NBFC): Firefox 2+, Safari 2+, Chrome, Opera 9+, IE 6+ .nbfc { overflow: hidden; /* for IE 6/7 */ *zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif"); /* non-JS fallback */ *zoom: 1; } The GitHub gist also contains another variant of the clearfix method for modern browsers (based on Thierry Koblentz’s work). It provides greater visual consistency (avoiding edge-case bugs) for even older versions of Firefox. The only difference from existing float-containment methods is the inclusion of a CSS expression that inserts a clearing line-break in IE 6 and IE 7. Jonathan and I found that it helps to resolve some of the visual rendering differences that exist between these browsers and more modern ones. First I’ll explain what some of those differences are and when they occur. Containing floats in IE 6/7 In IE 6 and IE 7, the most common and robust method of containing floats within an element is to give it “layout” (find out more: On having Layout). Triggering “layout” on an element in IE 6/7 creates a new block formatting context (NBFC). However, certain IE bugs mean that previous float containment methods don’t result in cross-browser consistency. Specifically, this is what to expect in IE 6/7 when creating a NBFC: The top- and bottom-margins of non-floated child elements are contained within the ancestor element that has been given “layout”. (Also expected in other browsers when creating a NBFC) The bottom-margins of any right-floated descendants are contained within the ancestor. (Also expected in other browsers when creating a NBFC) The bottom-margins of any left-floated children are not contained within the ancestor. The margin has no effect on the height of the ancestor and is truncated, having no affect outside of the ancestor either. (IE 6/7 bug) In IE 6, if the right edge of the margin-box of a left-floated child is within 2px of the left edge of the content-box of its NBFC ancestor, the float’s bottom margin reappears and is contained within the parent. (IE 6 bug) Unwanted white-space can appear at the bottom of a float-container. (IE 6/7 bug) There is a lack of consistency between IE 6/7 and other browsers, and between IE 6 and IE 7. Thanks to Matthew Lein for his comment that directed me to this IE 6/7 behaviour. It was also recently mentioned by “Suzy” in a comment on Perishable Press. IE 6/7’s truncation of the bottom-margin of left-floats is not exposed in many of the test-cases used to demonstrate CSS float containment techniques. Using an IE-only CSS expression helps to correct this bug. The CSS expression Including the much maligned <br style="clear:both"> at the bottom of the float-container, as well as creating a NBFC, resolved all these inconsistencies in IE 6/7. Doing so prevents those browsers from collapsing (or truncating) top- and bottom-margins of descendant elements. Jonathan suggested inserting the clearing line-break in IE 6/7 only, using CSS expressions applied to fictional CSS properties. The CSS expression is the result of many iterations, tests, and suggestions. It runs only once, the first time an element receives the associated classname. *zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif"); It is applied to zoom, which is already being used to help contain floats in IE 6/7, and the use of the runtimeStyle object ensures that the expression is replaced once it has been run. The addition of font:0/0 serif prevents the occasional appearance of white-space at the bottom of a float-container. And the * hack ensures that only IE 6 and IE 7 parse the rule. It’s worth noting that IE 6 and IE 7 parse almost any string used as CSS property. An earlier iteration used the entirely fictitious properties “-ms-inject” or “-ie-x” property to exploit this IE behaviour. *-ie-x: expression(this.x||(this.innerHTML+='<br style="clear:both;font:0/0">',this.x=1)); However, this expression is evaluated over and over again. Using runtimeStyle instead avoids this. Sergey Chikuyonok also pointed out that using innerHTML destroys existing HTML elements that may event handlers attached to them. By using document.createElement and appendChild you can insert the new element without removing all the events attached to other descendant elements. Containing floats in more modern browsers There are two popular methods to contain floats in modern browsers. Creating a new block formatting context (as is done in IE 6/7 when hasLayout is triggered) or using a variant of the “clearfix” hack. Creating a NBFC results in an element containing any floated children, and will prevent top- and bottom-margin collapse of non-floated children. When combined with the enhanced IE 6/7 containment method, it results in consistent cross-browser float containment. The other method, known as “clearfix”, traditionally used a single :after pseudo-element to clear floats in a similar fashion to a structural, clearing HTML line-break. However, to prevent the top-margins of non-floats from collapsing into the margins of their float-containing ancestor, you also need to use the :before pseudo-element. This is the approach taken in Thierry Koblentz’s “clearfix reloaded”. In contemporary browsers, the micro clearfix hack is also suitable. The method presented in this article should help improve the results of cross-browser float containment, whether you predominantly use “clearfix” or the NBFC method. The specific limitations of both the “clearfix” and various NBFC methods (as outlined in Thierry’s articles) remain. Problems Using a CSS expression to change the DOM in IE 6/7 creates problems of its own. Obviously, the DOM in IE 6/7 is now different to the DOM in other browsers. This affects any JavaScript DOM manipulation that may depend on :last-child or appending new children. This is still an experimental work-in-progress that is primarily research-driven rather than seeking to become a practical snippet of production code. Any feedback, further testing, and further experimentation from others would be much appreciated. Thanks to these people for contributing improvements: Jonathan Neal, Mathias Bynens, Sergey Chikuyonok, and Thierry Koblentz. Full Article
press Stress less. achieve more [electronic resource] : simple ways to turn pressure into a positive force in your life / Aimee Bernstein By prospero.murdoch.edu.au Published On :: Bernstein, Aimee Full Article
press WordPress [electronic resource] / Jessica Neuman Beck and Matt Beck By prospero.murdoch.edu.au Published On :: Beck, Jessica Neuman Full Article
press JAMA Psychiatry : Testosterone Treatment and Alleviation of Depression in Men By traffic.libsyn.com Published On :: Wed, 14 Nov 2018 16:00:00 +0000 Interview with Andreas Walther, PhD, author of Association of Testosterone Treatment With Alleviation of Depressive Symptoms in Men: A Systematic Review and Meta-analysis Full Article
press JAMA Psychiatry : Effectiveness and Acceptability of CBT Formats in Adults With Depression By traffic.libsyn.com Published On :: Wed, 17 Apr 2019 15:00:00 +0000 Interview with Pim Cuijpers, PhD, author of Effectiveness and Acceptability of Cognitive Behavior Therapy Delivery Formats in Adults With Depression: A Network Meta-analysis Full Article
press JAMA Ophthalmology : Modulation of Cerebro-ocular Hemodynamics and Pressures in a Model of Spaceflight-Associated Neuro-ocular Syndrome By traffic.libsyn.com Published On :: Thu, 18 Apr 2019 15:00:00 +0000 Interview with Jessica Scott, author of Association of Exercise and Swimming Goggles With Modulation of Cerebro-ocular Hemodynamics and Pressures in a Model of Spaceflight-Associated Neuro-ocular Syndrome Full Article
press JAMA Surgery : Arginine Vasopressin Supplementation in Early Traumatic Shock By traffic.libsyn.com Published On :: Wed, 28 Aug 2019 15:00:00 +0000 Interview with Carrie Adelia Sims, MD, PhD, and Patrick M Reilly, MD, authors of Effect of Low-Dose Supplementation of Arginine Vasopressin on Need for Blood Product Transfusions in Patients With Trauma and Hemorrhagic Shock: A Randomized Clinical Trial Full Article
press JAMA Cardiology : Sex Differences in Blood Pressure Trajectories Over the Life Course By traffic.libsyn.com Published On :: Wed, 15 Jan 2020 16:00:00 +0000 Interview with Susan Cheng, MD, MPH, author of Sex Differences in Blood Pressure Trajectories Over the Life Course, and Nanette K. Wenger, MD, author of Adverse Cardiovascular Outcomes for Women—Biology, Bias, or Both? Full Article
press JAMA Internal Medicine : Evaluation of Association Between Gastric Acid Suppression and Risk of Intestinal Colonization With MDROs By traffic.libsyn.com Published On :: Mon, 24 Feb 2020 16:00:00 +0000 Interview with Christina Vandenbroucke-Grauls, MD, PhD, author of Evaluation of the Association Between Gastric Acid Suppression and Risk of Intestinal Colonization With Multidrug-Resistant Microorganisms: A Systematic Review and Meta-analysis, and Todd Campbell Lee, MD MPH, author of Deprescribing Proton Pump Inhibitors: Overcoming Resistance Full Article
press Laurus Labs under pressure, plunges 10% after multiple block deals By www.business-standard.com Published On :: Fri, 08 May 2020 12:57:00 +0530 Till 12:44 pm, a combined 34.4 million equity shares, representing 32.2 per cent of total equity of Laurus Labs, changed hands on the BSE and NSE. Full Article
press How to Create Custom WordPress Editor Blocks in 2020 By deliciousbrains.com Published On :: Wed, 06 May 2020 14:43:24 +0000 Peter Tasker on creating blocks right now: It’s fairly straightforward these days to get set up with the WP CLI ‘scaffold’ command. This command will set up a WordPress theme or plugin with a ‘blocks’ folder that contains the PHP and base CSS and JavaScript required to create a custom block. The only drawback that I noticed is that the JavaScript uses the old ES5 syntax rather than modern ESNext. Modern JavaScript allows us to write more concise … Read article “How to Create Custom WordPress Editor Blocks in 2020” The post How to Create Custom WordPress Editor Blocks in 2020 appeared first on CSS-Tricks. Full Article Article Link gutenberg WordPress blocks
press How to Use Block Variations in WordPress By css-tricks.com Published On :: Wed, 06 May 2020 14:43:36 +0000 WordPress 5.4 was released not so long ago and, along with other improvements and bug fixes, it introduced a feature called Block Variations. I had a chance to use it on one of my recent projects and am so pleasantly surprised with how smart this feature is. I actually think it hasn’t received the attention it deserves, which is why I decided to write this article. What is a Block Variation? Block Variations allow developers to define instances of existing … Read article “How to Use Block Variations in WordPress” The post How to Use Block Variations in WordPress appeared first on CSS-Tricks. Full Article Article gutenberg WordPress WordPress blocks
press High Pressure and Elastic properties of a Guanidinium -formate Hybrid Perovskite By feeds.rsc.org Published On :: Dalton Trans., 2020, Accepted ManuscriptDOI: 10.1039/C9DT04805G, PaperHong-Qiang Gao, Chao Li, Lin-Sui Li, Wen-Juan Wei, Yu-hui Tan, Yun Zhi TangThe high pressure and elastic properties in a hybrid ABX3-type perovskite, [C(NH2)3][Cd(HCOO)3] (CdGF), based on the A-site guest molecular is revealed via combining the high-pressure synchrotron X-ray diffraction experiments with...The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
press Networked press freedom: creating infrastructures for a public right to hear / Mike Ananny By library.mit.edu Published On :: Sun, 28 Jul 2019 10:20:39 EDT Dewey Library - K3255.A958 2018 Full Article
press Copyright's highway: from the printing press to the cloud / Paul Goldstein By library.mit.edu Published On :: Sun, 19 Jan 2020 08:04:55 EST Dewey Library - KF2994.G654 2019 Full Article
press [ASAP] HMW-GS at <italic toggle="yes">Glu-B1</italic> Locus Affects Gluten Quality Possibly Regulated by the Expression of Nitrogen Metabolism Enzymes and Glutenin-Related Genes in Wheat By feedproxy.google.com Published On :: Thu, 30 Apr 2020 04:00:00 GMT Journal of Agricultural and Food ChemistryDOI: 10.1021/acs.jafc.0c00820 Full Article
press [ASAP] Changes in microRNAs Expression Profile of Mimetic Aging Mice Treated with Melanin from <italic toggle="yes">Sepiella japonica</italic> Ink By feedproxy.google.com Published On :: Wed, 06 May 2020 04:00:00 GMT Journal of Agricultural and Food ChemistryDOI: 10.1021/acs.jafc.0c00291 Full Article
press [ASAP] New Findings in the Amino Acid Profile and Gene Expression in Contrasting Durum Wheat Gluten Strength Genotypes during Grain Filling By feedproxy.google.com Published On :: Fri, 08 May 2020 04:00:00 GMT Journal of Agricultural and Food ChemistryDOI: 10.1021/acs.jafc.9b07842 Full Article
press Hydrogen and methane-adsorbing MOF boasts impressive combination of properties By feedproxy.google.com Published On :: 20 Apr 2020 20:16:52 +0000 Aluminum-based sorbent with exceptional gas-storage properties may give clean-burning fuels a transportation boost Full Article
press Hydrogen- and methane-adsorbing MOF boasts impressive combination of properties By feedproxy.google.com Published On :: 23 Apr 2020 04:00:00 +0000 Aluminum-based sorbent with exceptional gas-storage properties may give clean-burning fuels a transportation boost Full Article
press VP Mike Pence's press secretary tests positive for coronavirus By timesofindia.indiatimes.com Published On :: Sat, 09 May 2020 08:00:29 IST President Donald Trump, who publicly identified the affected Pence aide, said he was "not worried" about the virus spreading in the White House. Nonetheless, officials said they were stepping up safety protocols for the complex. Full Article
press US unemployment surges to a Depression-era level of 14.7% By timesofindia.indiatimes.com Published On :: Sat, 09 May 2020 08:04:07 IST The coronavirus crisis has sent U.S. unemployment surging to 14.7%, a level last seen when the country was in the throes of the Depression and President Franklin D. Roosevelt was assuring Americans that the only thing to fear was fear itself. Full Article
press US unemployment surges to a Depression-era level of 14.7% By timesofindia.indiatimes.com Published On :: Sat, 09 May 2020 09:59:03 IST The coronavirus crisis has sent US unemployment surging to 14.7%, a level last seen when the country was in the throes of the Depression and President Franklin D Full Article
press Cytokines, stress, and depression [electronic resource] / edited by Robert Dantzer, Emmanuelle E. Wollman, Raz Yirmiya By darius.uleth.ca Published On :: Boston, MA : Springer US, 1999 Full Article
press High-pressure rheology for quantitative elastohydrodynamics / P.E. Scott Bair By library.mit.edu Published On :: Sun, 27 Oct 2019 07:30:14 EDT Online Resource Full Article
press Urbanization and regional sustainability in South Asia: socio-economic drivers, environmental pressures and policy responses / edited by Sumana Bandyopadhyay, Chitta Ranjan Pathak, Tomaz Ponce Dentinho By library.mit.edu Published On :: Sun, 12 Jan 2020 06:00:02 EST Online Resource Full Article
press Tourism and urban regeneration: processes compressed in time and space / Alberto Amore By library.mit.edu Published On :: Sun, 2 Feb 2020 06:00:01 EST Rotch Library - HT166.A72155 2020 Full Article
press [ASAP] Astragalin Exerted Antidepressant-like Action through SIRT1 Signaling Modulated NLRP3 Inflammasome Deactivation By feedproxy.google.com Published On :: Mon, 04 May 2020 04:00:00 GMT ACS Chemical NeuroscienceDOI: 10.1021/acschemneuro.0c00156 Full Article
press Shale holdings of RIL, GAIL come under pressure amid oil price crash By www.business-standard.com Published On :: Tue, 21 Apr 2020 21:25:00 +0530 Though WTI recovered, investment in alternative fuels like shale has become unviable. Full Article
press Cognitive evolutionary therapy for depression [electronic resource] : therapy manual / Cezar Giosan. By darius.uleth.ca Published On :: Cham : Springer, 2020 Full Article
press Trauma and expressive arts therapy [electronic resource] : brain, body, and imagination in the healing process / Cathy A. Malchiodi. By darius.uleth.ca Published On :: New York : The Guilford Press, [2020] Full Article
press Unveiling the Mechanisms of Lithium Dendrite Suppression by Cationic Polymer Film Induced Solid-Electrolyte Interphase Modification By feeds.rsc.org Published On :: Energy Environ. Sci., 2020, Accepted ManuscriptDOI: 10.1039/D0EE00518E, PaperSeung-Yong Lee, Junyi Shangguan, Judith Alvarado, Sophia Betzler, Stephen J Harris, Marca Doeff, Haimei ZhengIt is crucial to suppress lithium dendrite formation in lithium metal batteries. Formation of good solid-electrolyte interphase (SEI) has been considered to be effective in limiting lithium dendrite growth. However,...The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
press [ASAP] Double-Network Hierarchical-Porous Piezoresistive Nanocomposite Hydrogel Sensors Based on Compressive Cellulosic Hydrogels Deposited with Silver Nanoparticles By feedproxy.google.com Published On :: Mon, 04 May 2020 04:00:00 GMT ACS Sustainable Chemistry & EngineeringDOI: 10.1021/acssuschemeng.0c02035 Full Article