Rambling Talk given at http://2012.oc.wordcamp.org/
Supplemental information at http://mdawaffe.wordpress.com/2012/06/02/wordcamp-oc-restjson-api-talk/
A Quick Trip Down the Rabbit Hole - An Introduction into what the WP-REST-API is and what you can do with it. This is meant as an explanation for a site owner/project lead who wants to learn what this new technology means and for the developer who wants to understand where this will take the WordPress community over the next decade and beyond.
Rambling Talk given at http://2012.oc.wordcamp.org/
Supplemental information at http://mdawaffe.wordpress.com/2012/06/02/wordcamp-oc-restjson-api-talk/
A Quick Trip Down the Rabbit Hole - An Introduction into what the WP-REST-API is and what you can do with it. This is meant as an explanation for a site owner/project lead who wants to learn what this new technology means and for the developer who wants to understand where this will take the WordPress community over the next decade and beyond.
This talk encompasses the idea that each of us can be empowered to use and improve WordPress through beta testing of upcoming releases. The 4.4 release is set to hit Beta 1 just three days before WCPDX, which makes this talk a unique opportunity to educate WordCampers on the value of beta testing, and even to interactively participate in testing the next version of WordPress during the talk. I’ll cover my personal journey and lessons learned in dogfooding WordPress for a living, as well as ways anyone (yes, anyone) can get started testing with little to no barrier to entry.
In this session, Drew will be sharing insight into how a WordPress release happens, including an overview of all the moving parts, teams, organization, and execution. A lot of people have this idea that the core team is solely responsible for new versions of WordPress getting released, which couldn’t be further from the truth – it’s an intricate ballet of multiple contributor teams coming together and executing a broad vision.
He will talk about how a release cycle is structured, how and where the decision-making happens, as well as all of the various contributors and teams that play their own part in a successful release. It’s very much opening the black box of how a release works.
Java is most widely used enterprise application development language. most of new developers get stuck on enterprise application development and maintenance due to lack of fundamentals. this slide walk you through from most fundamentals to advance concepts.
I have contributed since 2009 to WordPress and related projects. I have done some great things for WordPress like rewriting the image manipulation API and leading GlotPress for a long while. But It also lead to some disagreements which had an impact.
Engage 2019: The good, the bad and the ugly: a not so objective view on front...Frank van der Linden
In the front end development world there are 3 dominant players, Angular, ReactJS and VueJs.
Every framework has a strong fan base. And of course lots of pros and cons The best way to learn more about the strengths and weaknesses of the frameworks, I have build the same application with all these frameworks. In this session I will explain my experience with each framework and try to highlight the good the bad and the ugly. Expect to see code
The demo application can be found on GitHub, https://github.com/flinden68/my-events-demo-application
An Overview of the Javascript Ecosystem in 2015. Slides from this talk given at San Diego Javascript on June 2: https://www.youtube.com/watch?v=CGkPsNyI07A
Jenkins is an open source automation server written in Java. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery. It is a server-based system that runs in servlet containers such as Apache Tomcat.
Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...Geoff Varosky
Abstract: “Why am I getting a security error??” “Why does my code work sometimes, but not others?” “I wonder if McDonalds is hiring.” Writing custom code in SharePoint opens up unlimited possibilities but also throws many hurdles in your way that will slow you down if you don’t take them into account. So, before giving up and searching for careers in the fast food industry, equip yourself with the knowledge you need to succeed in writing custom code for SharePoint.
Pour ce second talk de la saison, nous allons nous intéresser à Wordpress et à son usage en tant que plateforme de développement. Cette présentation va vous donner les clés pour adapter votre workflow de développement avec ce CMS et vous permettre d’aller plus loin que son système de blogging de base.
This talk encompasses the idea that each of us can be empowered to use and improve WordPress through beta testing of upcoming releases. The 4.4 release is set to hit Beta 1 just three days before WCPDX, which makes this talk a unique opportunity to educate WordCampers on the value of beta testing, and even to interactively participate in testing the next version of WordPress during the talk. I’ll cover my personal journey and lessons learned in dogfooding WordPress for a living, as well as ways anyone (yes, anyone) can get started testing with little to no barrier to entry.
In this session, Drew will be sharing insight into how a WordPress release happens, including an overview of all the moving parts, teams, organization, and execution. A lot of people have this idea that the core team is solely responsible for new versions of WordPress getting released, which couldn’t be further from the truth – it’s an intricate ballet of multiple contributor teams coming together and executing a broad vision.
He will talk about how a release cycle is structured, how and where the decision-making happens, as well as all of the various contributors and teams that play their own part in a successful release. It’s very much opening the black box of how a release works.
Java is most widely used enterprise application development language. most of new developers get stuck on enterprise application development and maintenance due to lack of fundamentals. this slide walk you through from most fundamentals to advance concepts.
I have contributed since 2009 to WordPress and related projects. I have done some great things for WordPress like rewriting the image manipulation API and leading GlotPress for a long while. But It also lead to some disagreements which had an impact.
Engage 2019: The good, the bad and the ugly: a not so objective view on front...Frank van der Linden
In the front end development world there are 3 dominant players, Angular, ReactJS and VueJs.
Every framework has a strong fan base. And of course lots of pros and cons The best way to learn more about the strengths and weaknesses of the frameworks, I have build the same application with all these frameworks. In this session I will explain my experience with each framework and try to highlight the good the bad and the ugly. Expect to see code
The demo application can be found on GitHub, https://github.com/flinden68/my-events-demo-application
An Overview of the Javascript Ecosystem in 2015. Slides from this talk given at San Diego Javascript on June 2: https://www.youtube.com/watch?v=CGkPsNyI07A
Jenkins is an open source automation server written in Java. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery. It is a server-based system that runs in servlet containers such as Apache Tomcat.
Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...Geoff Varosky
Abstract: “Why am I getting a security error??” “Why does my code work sometimes, but not others?” “I wonder if McDonalds is hiring.” Writing custom code in SharePoint opens up unlimited possibilities but also throws many hurdles in your way that will slow you down if you don’t take them into account. So, before giving up and searching for careers in the fast food industry, equip yourself with the knowledge you need to succeed in writing custom code for SharePoint.
Pour ce second talk de la saison, nous allons nous intéresser à Wordpress et à son usage en tant que plateforme de développement. Cette présentation va vous donner les clés pour adapter votre workflow de développement avec ce CMS et vous permettre d’aller plus loin que son système de blogging de base.
JavaScript Service Worker Design Patterns for Better User Experiencereeder29
Not just for offline, JavaScript Service Workers give your web app a snappy response and predictable behavior. Your web app “feels like an app” to your more-satisfied users and stakeholders.
WP 101 - Local Development - Themes and PluginsJoe Querin
Learn about Local Development Enviroments and WordPress Multisite. Learn how to create a simple plugin or custom theme. Local Development tools are also covered.
Using multi-tenant WordPress to simplify developmentcoderaaron
Do you want to do development on multiple sites with different setups concurrently, but do not have to update core in each install every time a new version is released? Are you developing for a single site environment, but don not want to spin up a new development server for every site so you do not have to worry about multisite quirks?
If you answered yes to either of these questions, a multi-tenant WordPress install is just what you need!
Come learn how I adapted Cliff Seal's talk from WPCampus 2016 into a simple VVV site that allows you to develop for as many sites as you want while still maintaining the flexibility of having a separate directory structure and separate databases (not just tables) and still only have to update plugins/themes/core once for all of your sites.
In introduction to the various SharePoint development techniques in SharePoint 2013, this slide deck will give new SharePoint developers an overview of the options available to them to develop against SharePoint. To view audio of this recording go to the Office Mix version at https://mix.office.com/watch/1bgqd4roxtwpe
Presented by Phase2 Software Architect Tobby Hagler, this session is meant to be a primer to enterprise concepts and how they can be applied to Drupal development.
A modern, high-scale Web site is a composite of decentralized fragments that are assembled on the edge, in just-in-time fashion as the content is being delivered to users. Sometimes, a load-balanced PHP environment just can't serve the traffic you have, but you still want to build it in Drupal.
Drupal is a great Content Management System, and a powerful Development Framework. But the Drupal instance that runs the show is not always the end-all-be-all website that users will ultimately interact with. In a world of web-scale and high-availability, it becomes increasingly important to build your Drupal instance with the bigger picture in mind.
Integration with Varnish, CDNs, and other caching systems help Drupal scale. This also prevents users from ever reaching the "origin", which means all users see the exact same page. If users never interact with Drupal directly, then how can you customize the overall user experience? Also, Web sockets lets you display changing content (sports scores, news updates, stocks) in actual real-time updates.
With ESI, JavaScript/AJAX, Web sockets, and integration with third-party services, it's all possible. It just takes a shift in thinking and how you approach the site build.
This session will explore how to build a Drupal website that will interoperate with other web components, live behind CDNs, and make heavy use of caching layers, yet still maintain a positive custom user experience (complete with "Hello username" links and "your comments" blocks). It will focus on the pitfalls that many Drupal developers never even consider (eg, device detection for mobile), and how to overcome them.
# Internet Security: Safeguarding Your Digital World
In the contemporary digital age, the internet is a cornerstone of our daily lives. It connects us to vast amounts of information, provides platforms for communication, enables commerce, and offers endless entertainment. However, with these conveniences come significant security challenges. Internet security is essential to protect our digital identities, sensitive data, and overall online experience. This comprehensive guide explores the multifaceted world of internet security, providing insights into its importance, common threats, and effective strategies to safeguard your digital world.
## Understanding Internet Security
Internet security encompasses the measures and protocols used to protect information, devices, and networks from unauthorized access, attacks, and damage. It involves a wide range of practices designed to safeguard data confidentiality, integrity, and availability. Effective internet security is crucial for individuals, businesses, and governments alike, as cyber threats continue to evolve in complexity and scale.
### Key Components of Internet Security
1. **Confidentiality**: Ensuring that information is accessible only to those authorized to access it.
2. **Integrity**: Protecting information from being altered or tampered with by unauthorized parties.
3. **Availability**: Ensuring that authorized users have reliable access to information and resources when needed.
## Common Internet Security Threats
Cyber threats are numerous and constantly evolving. Understanding these threats is the first step in protecting against them. Some of the most common internet security threats include:
### Malware
Malware, or malicious software, is designed to harm, exploit, or otherwise compromise a device, network, or service. Common types of malware include:
- **Viruses**: Programs that attach themselves to legitimate software and replicate, spreading to other programs and files.
- **Worms**: Standalone malware that replicates itself to spread to other computers.
- **Trojan Horses**: Malicious software disguised as legitimate software.
- **Ransomware**: Malware that encrypts a user's files and demands a ransom for the decryption key.
- **Spyware**: Software that secretly monitors and collects user information.
### Phishing
Phishing is a social engineering attack that aims to steal sensitive information such as usernames, passwords, and credit card details. Attackers often masquerade as trusted entities in email or other communication channels, tricking victims into providing their information.
### Man-in-the-Middle (MitM) Attacks
MitM attacks occur when an attacker intercepts and potentially alters communication between two parties without their knowledge. This can lead to the unauthorized acquisition of sensitive information.
### Denial-of-Service (DoS) and Distributed Denial-of-Service (DDoS) Attacks
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBrad Spiegel Macon GA
Brad Spiegel Macon GA’s journey exemplifies the profound impact that one individual can have on their community. Through his unwavering dedication to digital inclusion, he’s not only bridging the gap in Macon but also setting an example for others to follow.
1.Wireless Communication System_Wireless communication is a broad term that i...JeyaPerumal1
Wireless communication involves the transmission of information over a distance without the help of wires, cables or any other forms of electrical conductors.
Wireless communication is a broad term that incorporates all procedures and forms of connecting and communicating between two or more devices using a wireless signal through wireless communication technologies and devices.
Features of Wireless Communication
The evolution of wireless technology has brought many advancements with its effective features.
The transmitted distance can be anywhere between a few meters (for example, a television's remote control) and thousands of kilometers (for example, radio communication).
Wireless communication can be used for cellular telephony, wireless access to the internet, wireless home networking, and so on.
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesSanjeev Rampal
Talk presented at Kubernetes Community Day, New York, May 2024.
Technical summary of Multi-Cluster Kubernetes Networking architectures with focus on 4 key topics.
1) Key patterns for Multi-cluster architectures
2) Architectural comparison of several OSS/ CNCF projects to address these patterns
3) Evolution trends for the APIs of these projects
4) Some design recommendations & guidelines for adopting/ deploying these solutions.
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC
Ellisha Heppner, Grant Management Lead, presented an update on APNIC Foundation to the PNG DNS Forum held from 6 to 10 May, 2024 in Port Moresby, Papua New Guinea.
1. WP Rest API, The New
York Times, and The New
WordPress
WordCamp Maine
Portland, Maine - May 16, 2015
2. Scott Taylor
• Core Developer, WordPress
open source project
• Release Lead for 4.4
• Sr. Software Engineer, The
New York Times
• @wonderboymusic on Twitter/
Instagram/Swarm
• I like Music, NYC, and
Mexican food
3. Blogs at The NYTimes
• Multisite
• 200+ blogs over the course
of time
• The 00s were the glory days
for Blogs and WordPress
• The NYT used WordPress
very early
• NYT was an early investor in
Automattic
4. Legacy Blogs Codebase
• Separate from the rest of the codebase (NYT4 is
PHP, but not WordPress)
• Global NYTimes CSS and JS, CSS for all Blogs,
custom CSS per-blog
• A universe that assumed jQuery AND Prototype
were loaded on the page in global scope
7. • Inline HTML from 2008 that assumes Prototype will
still be a thing in 2015, stored in post_content
• Widgets and inline code that add their own version
of jQuery/Prototype, because YOLO
• Even better: widgets/modules from other teams that
use a different version of jQuery … at times there
could be 4 jQuerys on the page (and 4 different
versions at that)
Things Like ….
9. No shared modules
• Code/HTML markup can get out of sync with other
projects regularly: header, footer, navigation
• The CSS and JS files split across multiple SVN
repos - changes to global assets can affect us
without us knowing. Fixing the code requires
scouring through multiple repos.
10. <script src="/js/common.js"></script>
<script src="/js/app/lib/NYTD/0.0.1/tabset.js"></script>
<script src="/js/blogs_v3/nyt_universal/js/common.js"></script>
<script src="/js/blogs_v3/nyt_universal/js/memberTools.js"></script>
<script src="/js/common/screen/modifyNavigationDisplay.js"></script>
<script src="/js/blogs_v3/nyt_universal/tabsetoverlayrevealer.js"></
script>
<script src="/js/common/sharetools/2.0/shareTools.js"></script>
<script src="/js/app/save/crossPlatformSave.js"></script>
<script src="/js/blogs_v3/nyt_universal/js/blogscrnr.js"></script>
Nightmare*
* I took these today from the markup for TMagazine, only
remaining blog on the “old” code/theme (nyt_universal)
11.
12. At the NYT, we don’t use …
• WordPress Comments: There is an entire team that deals with
these for the site globally, in a different system called CRNR
• Media: There is another CMS at the Times, Scoop, which
stores the images, videos, slideshows, etc
• WordPress native post-locking: This only landed in
WordPress core in version 3.6, we have yet to reconcile the
differences
• There is layer for Bylines which is separate from Users:
Our users are employees authenticated via LDAP, most post
authors don’t actually enter the content themselves
13. 2008: Live Blogs at the Times
• A Blog would create a post and check “Start Live
Blogging”
• the updates related to the post were stored in custom
tables in the database
• the APIs for interacting with these tables duplicated tons
of WordPress functionality
• Custom Post Types didn’t exist until WordPress 3.0 (June
2010) - the NYT code was never rewritten to leverage
them (would have required porting the content as well)
14. Live (actual) Blogs:
Dashboards/Dashblogs
• A Live Blog would be its own blog in the network, its own
set of tables
• A special dashboard theme that had hooks to add
custom JS/CSS for each individual blog, without baking
them into the theme
• Making an entirely new site in the network for a 4-hour
event is overkill
• For every 10 or so new blogs that are added, you are
adding 100 new database tables - gross!
15. 2013: The New Frontier
My arrival at the New York Times coincided with
the NYT5 project, already in progress
16.
17.
18.
19. NYT5
• NYT5 “apps” are Git repos that are transformed via
Grunt into a new directory structure. You can’t run
your repo as a website: it has to be built
• Impossible to create a “theme” this time with
shared JS and CSS - CSS is SASS, JS is Require.
• PHP for shared components has Composer
dependencies and uses namespaces - the
directories are expanded via Grunt in accordance
with PSR-0 Autoloading Standard
20. require( [‘jquery’], function ($) {
$(‘#cool-link’).click(...);
} );
require( [‘jquery/1.9’], function ($) {
$(‘#cool-link’).click(...);
} );
require( [‘jquery/2.0’], function ($) {
$(‘#cool-link’).click(...);
} );
Require.js
21. NYT5 Dealbreakers
• We can’t just point at WordPress on every request and
have our code figure out routing. Routing happens in
Apache in NYT5 - most requests get piped to app.php
• Because PHP Namespaces are used, WP has to load
early and outside of them (global scope)
• On the frontend, WP cannot exit prematurely before
hitting the framework, which returns the response to the
server via
SymfonyHttpFoundation
22. $wp_query = new WP_Query();
$GLOBALS[‘wp_query’] = ...
function wp_thing() {
global $wp_query;
. . .
}
GLOBALS
25. NYT5 Advantages
• “shared” modules - we inherit the “shell” of the page,
which includes: navigation, footer, login, etc.
• our nyt5 theme doesn’t need to produce an entire
HTML document, just the “content” portion
• With WP in global scope, all of its code is available even
when we hit the MVC parts of the NYT5 framework.
• WP output is captured via an output buffer on load - it’s
accessible downstream when the app logic is running.
26. • We can use Varnish instead of Batcache
• our [nytmedia] shortcodes can just output
“markers”
• The NYT5 logic for articles already knows to
replace markers with markup from shared modules
• we can lean on code from the NYT5 foundation
and shared repos
28. Bad News for Blogs
• Blogs were duplicating Section Fronts, Columns:
Mark Bittman has column in the paper.
The column also exists on the web as an article.
He contributes to the Diner’s Journal blog.
There is a section front for dining.
He also has his own NYTimes blog. Why?
• Blogs and WordPress were combined in everyone’s
mind. So whenever WordPress was mentioned as a
solution for anything, the response was: aren’t blogs
going away? #dark
32. What if…
• Instead of custom tables and
dupe’d API code, new object
types: events and updates!
• To create a new “Live Blog”: create
an event, then go to a Backbone-
powered screen to add updates
• If WP isn’t desired for the front end,
it could be the backend for
anything that wants a JSON feed
for live event data
• Using custom post types, building
a Live Event UI that looks like the
NYT5 theme would be nominal
33.
34. • Built an admin interface with Backbone to quickly
produce content - which in turn could be read from
JSON feeds
• When saving, the updates post into a service we
have called Invisible City
• Our first real foray into using the REST API
• Our plan was just to be an admin to produce data
via self-service URLs
What we did
35. Live Events, the new Live Blogs:
Complete Rewrite of 2008 code
• nytimes.com/live/{event} and nytimes.com/live/{event}/
{update}
• Brand new admin interface: Backbone app that uses the
WP-API. Constantly updated filterable stream - Backbone
collections that re-fetch on Heartbeat tick
• Custom JSON endpoints that handle processes that need
to happen on save
• Front end served by WordPress for SEO, but data is
received by web socket from Invisible City and rendered
via React
39. Most plugins only handle POST
• WP-API and Backbone speak REST
• REST will send you requests via
PUT, DELETE, POST
40. $hook = add_menu_page( ... );
add_action( “load-$hook”, ‘custom_load’ );
function old_custom_load() {
if ( ‘POST’ !== $_SERVER[‘REQUEST_METHOD’] ) {
return;
}
...
}
function new_custom_load() {
if ( ‘GET’ === $_SERVER[‘REQUEST_METHOD’] ) {
return;
}
...
}
41. HTTP is time-consuming
• It is easy to lose track of how many things are
happening on the ‘save_post’ hook
• Admin needs to be fast
• The front end is typically cached, but page generation
shouldn’t be bogged down by HTTP requests
• Anything which is time-consuming should be
offloaded to a separate “process” or request who
response you don’t need to handle
43. Custom JSON Endpoints for POST
• Use fire-and-forget technique on ‘save_post’,
instead of waiting for responses inline. You can still
log/handle/re-try responses in the separate request.
• Most things that happen on ‘save_post’ only
need to know $post_id for context, the endpoint
handler can call get_post() from there
47. Custom JSON Endpoints for GET
• We do not hit these endpoints on the front-end
• We have a storage mount that is fronted via Varnish
and Akamai
• JSON feeds can show up on the homepage of the
NYT to dynamically render “promos” - these have
to massively scale