A short course I had few weeks ago that I wanted to share with you. All the MySQL issues from basics to experts: tuning, ERD, DDL, DML, Backup, Security
Maven 2 is a powerful tool that promotes convention over configuration and you need to
integrate it into one of the popular integrated development environments (IDEs) called
eclipse to make your work easier, thus increasing your productivity and project quality. This
tutorial provides an example of how to make Maven and Eclipse collaborate. Also covers the
popular JSF Web framework.
This document summarizes the JavaFX ecosystem, including popular layout managers, widgets, controls, UI libraries, testing frameworks, application frameworks, IDE plugins, and other utilities. MigLayout, Medusa, RichTextFX, ControlsFX, JFoenix, BootstrapFX, FontawesomeFX, Ikonli, TestFX, Afterburner.fx, MvvmFX, Griffon, e(fx)clipse, AnchorFX, ReactFX, and GroovyFX are some of the key libraries and tools mentioned for building JavaFX applications. The document provides an overview of the options available to developers for building desktop and mobile user interfaces with JavaFX.
WP-CLI is the official command line tool for interacting with and managing your WordPress sites. Learn to use it to speed up maintenance and deployment tasks, and to aid in theme and plugin development.
Spring Boot is a framework for creating stand-alone, production-grade Spring-based applications that can be started using java -jar without requiring any traditional application servers. It is designed to get developers up and running as quickly as possible with minimal configuration. Some key features of Spring Boot include automatic configuration, starter dependencies to simplify dependency management, embedded HTTP servers, security, metrics, health checks and externalized configuration. The document then provides examples of building a basic RESTful web service with Spring Boot using common HTTP methods like GET, POST, PUT, DELETE and handling requests and responses.
This document discusses big data challenges and opportunities. It provides examples of companies like Moovit and MediSafe that are addressing opportunities in transportation and healthcare using big data. It also discusses enabling technologies for big data like mobile, cloud, and the commoditization of IT. Finally, it discusses scaling data and analytics using technologies like Redis, MongoDB, Elasticsearch, Spark, and Cassandra.
Spring Boot & WebSocket presentation covers:
1. An introduction to Spring Boot and its advantages over traditional Spring configurations. Spring Boot aims to provide a faster development experience with less configuration.
2. Examples of integrating common features into Spring Boot applications like Tomcat, JSP, MySQL, security, and logging. Spring Boot plugins simplify adding these features.
3. A demonstration of using WebSocket, SockJS, and STOMP with Spring Boot for real-time client-server communication. Server-side configurations and client-side JavaScript/Java code are shown.
4. Sequence diagrams illustrate use cases for WebSocket with SockJS and STOMP to send messages to subscribers from the server and between clients.
Open mic ibm connections and ibm verse on premise integration 1sreeJk
This document discusses integrating IBM Connections and IBM Verse on premise. It provides prerequisites for integration such as required software versions. It describes modifying IBM HTTP Server and Domino server configurations to enable single sign-on and sharing of user profiles between systems. Instructions are given for adding a link to IBM Verse in the IBM Connections "Apps" menu. A demo is planned to show the integrated experience working.
Ajax is a method of employing JavaScript, DHTML, and the XMLHttp behaviour in the
browser to provide truly dynamic content on a Web page without a page refresh. There are
quantifiable benefits to be realized for end users and businesses, which include improved
usability and faster applications. In this tutorial I will look at a simple example using Ajax4JSF
with JSF, Facelets, Maven2 and Eclipse.
These are the slides for a talk I held at EuroPython 2017 in Rimini.
The talk is also on YouTube: https://youtu.be/Zzt5Z_fZcW0?t=2h9m40s
This document contains code for a Spring Boot application that implements:
1. A controller to handle requests and return model and view objects for rendering thymeleaf templates.
2. Thymeleaf templates for the index and list pages that display model attribute values.
3. A service interface and implementation to retrieve sample data via DI.
4. A rest controller to return a hello message from an API.
5. jQuery code to call and display the REST API response on the index page.
The application demonstrates basic Spring Boot features like controllers, thymeleaf templates, dependency injection, and building a RESTful API.
The document discusses CodeIgniter, an open source PHP MVC framework, and provides information about CodeIgniter features such as controllers, models, views, helpers, libraries, and working with databases using CodeIgniter's active record functions. It also covers topics like installing CodeIgniter, creating controllers and models, and loading views, helpers, and libraries.
WP-CLI is the official command line tool for interacting with and managing your WordPress sites. Learn to use it to speed up maintenance and deployment tasks, and to aid in theme and plugin development.
PHP SA 2014 - Releasing Your Open Source Projectxsist10
The document provides guidance on releasing open source projects. It discusses security, hosting, managing source code, package management, design patterns, testing, and resources. The key recommendations are to focus on security, use GitHub for hosting, manage versions with SemVer, use Composer for dependencies, implement common design patterns, write unit tests with at least 80% coverage, and wrap resources to allow for mocking in tests.
How to improve your workflows via SSH gateway. Experts at WP Engine help you learn about how WordPress developers can make their work more efficient using WP-CLI via SSH gateway to improve workflows.
On-demand webinar: https://hs.wpengine.com/webinar-improve-workflows-SSH-gateway
Martin Aspeli Extending And Customising Plone 3Vincenzo Barone
This document discusses customizing and extending Plone 3 using buildout, eggs, GenericSetup profiles, and testing. Key points include:
1) Using buildout to manage dependencies and custom packages, including developing packages locally.
2) Creating a "policy product" that installs all customizations and dependencies in one step.
3) Customizing Plone through GenericSetup profiles using XML configuration files and custom import steps.
4) Writing tests to ensure customizations are properly installed and configured.
5) Customizing visual components like skins, views, and resources using layers and browser resources. Thorough testing and source control are emphasized.
BaláZs Ree Introduction To Kss, Kinetic Style SheetsVincenzo Barone
KSS, Kinetic Style Sheets, is a framework that enables developers to create rich (AJAX) user interfaces without knowing javascript at all. KSS itself is by default included with Plone3 and is also usable with Zope3. In the future we plan to make it available for other pythonic and non-pythonic platforms as well. During the demonstration we give a step by step introduction to adding dynamic behaviour to your browser page by the KSS stylesheet and server side only python code. We also introduce the setup and debugging skills needed to add dynamicity to your application. The targeted audience for the demo are Plone developers and integrators, familiar with server side Plone scripting. A basic knowledge of HTML and CSS is also needed. As a result you will get an introduction to the usage of KSS. Knowledge of javascript is not needed for attending the demonstration.
This document provides an overview and introduction to web components. It discusses the key aspects of web components including custom elements, HTML imports, shadow DOM, and templates. It also shows how web components allow building reusable custom elements that encapsulate their styles and functionality independently of the page they are used in. The document demonstrates how to define and register a custom element for displaying activity cards and use templates and shadow DOM to encapsulate its implementation.
Node JS Express : Steps to Create Restful Web AppEdureka!
Node.js uses JavaScript - a language known to millions of developers worldwide - thus giving it a much lower learning curve even for complete beginners. Using Node.js you can build simple Command Line programs or complex enterprise level web applications with equal ease. Node.js is an event-driven, server-side, asynchronous development platform with lightning speed execution. It is open source and cross-platform, running on OS X, Linux and Windows. It also has an open source community that produces amazing modules available for use in your project for additional functionalities. Node.js helps you to code the most complex functionalities in just a few lines of code. The topics covered in the presentation are :
1. Understanding NodeJS Express
2. Creating Restful Web App
3. What is NPM
4.Templates in Express
The document provides instructions for setting up a basic business process management system (BPMS) using Ruby on Rails and open source components. It describes registering various participants like XForms, SPS, and WNS to handle tasks in a sample EO-1 satellite tasking workflow. It also explains how to execute the workflow by launching it from a Rails controller and view, and includes code snippets for setting up the workflow engine and defining participants.
This document discusses using JDBC with Spring Boot to access relational data. It shows how to use the Spring JdbcTemplate to execute SQL queries and updates. The example sets up a Spring Boot project with H2 database dependency, defines a Customer entity, inserts sample customer data using JdbcTemplate.update(), and queries for a customer record using JdbcTemplate.query() with BeanPropertyRowMapper to map the result to a Customer object. Running mvn spring-boot:run executes this code to interact with the in-memory H2 database using JDBC through the Spring framework.
The document discusses browser caching and issues that can arise in the relationship between caching and HTTP, such as privacy concerns from cached content, inconsistencies in how different browsers implement caching, and challenges with cache invalidation when content is updated. It proposes approaches to address these issues through techniques like fixing bugs, properly sizing caches, improving cache replacement algorithms, and developing standards for linked cache invalidation using HTTP link headers.
This talk is about how to build a cluster to run a python or ruby (ruby on rails) application. We'll have a look at how the procedure of building such a cluster could look like and what you should take into consideration.
We'll look at issues like: datacenter, networking, load balancing, storage, database replication, ....
This document summarizes techniques for optimizing WordPress development. It discusses using integrated development environments (IDEs) for code completion and debugging. It also covers the WordPress Codex as the primary resource for documentation and coding standards. Additional topics include using WPShell for testing, caching pages with plugins like Batcache, and debugging with functions like var_dump(), error_log(), and XDebug. The goal is to help WordPress developers work more efficiently through best practices for tools, documentation, coding standards, and debugging.
Godefroid Chapelle Ajax With Plone 3 Kss Development PatternsVincenzo Barone
This document discusses Kinetic Style Sheets (KSS), an Ajax framework that uses kinetic stylesheets for event binding and DOM manipulation on the client-side while keeping business logic on the server-side. It outlines the goals of ensuring accessibility and using minimal JavaScript. It describes the design of using kinetic stylesheets, a generic client-side engine for handling events and HTML snippets, and a simple server-side API. It also covers development and testing patterns for KSS.
Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)Andreas Koop
1) The document discusses best practices for deploying applications on WebLogic Server. It addresses challenges like managing multiple applications and versions.
2) It provides strategies and tools for deployment including using the Deployer, Ant, Maven, and WLST scripts. It recommends planning deployments to clusters from the start.
3) The document discusses considerations for production redeployments like handling versioning, retire timeouts, and maintaining session state during redeployments. It also notes some pain points like managing custom configuration data and security policies.
This is a CakePHP plugin for admin dashboards. It's fully acl controlled. More info on http://www.luisfred.com.br/cakephp-administrativo-acl/
This document discusses Spring Boot and how to leverage its features to simplify development. Some key points:
- Spring Boot aims to make development easier by making opinionated choices for developers and handling configuration automatically.
- Autoconfiguration allows Spring Boot to automatically configure applications based on dependencies without requiring explicit configuration.
- Conventions like starter dependencies and property files allow Spring Boot to further simplify setup.
- Features like embedded servers and default configurations handle much of the boilerplate code typically associated with Spring projects.
- Techniques like profiles, conditions, and meta-annotations give developers control over configurations while leveraging Spring Boot's defaults.
This talk introduces Spring's REST stack - Spring MVC, Spring HATEOAS, Spring Data REST, Spring Security OAuth and Spring Social - while refining an API to move higher up the Richardson maturity model
These are the slides for a talk I held at EuroPython 2017 in Rimini.
The talk is also on YouTube: https://youtu.be/Zzt5Z_fZcW0?t=2h9m40s
This document contains code for a Spring Boot application that implements:
1. A controller to handle requests and return model and view objects for rendering thymeleaf templates.
2. Thymeleaf templates for the index and list pages that display model attribute values.
3. A service interface and implementation to retrieve sample data via DI.
4. A rest controller to return a hello message from an API.
5. jQuery code to call and display the REST API response on the index page.
The application demonstrates basic Spring Boot features like controllers, thymeleaf templates, dependency injection, and building a RESTful API.
The document discusses CodeIgniter, an open source PHP MVC framework, and provides information about CodeIgniter features such as controllers, models, views, helpers, libraries, and working with databases using CodeIgniter's active record functions. It also covers topics like installing CodeIgniter, creating controllers and models, and loading views, helpers, and libraries.
WP-CLI is the official command line tool for interacting with and managing your WordPress sites. Learn to use it to speed up maintenance and deployment tasks, and to aid in theme and plugin development.
PHP SA 2014 - Releasing Your Open Source Projectxsist10
The document provides guidance on releasing open source projects. It discusses security, hosting, managing source code, package management, design patterns, testing, and resources. The key recommendations are to focus on security, use GitHub for hosting, manage versions with SemVer, use Composer for dependencies, implement common design patterns, write unit tests with at least 80% coverage, and wrap resources to allow for mocking in tests.
How to improve your workflows via SSH gateway. Experts at WP Engine help you learn about how WordPress developers can make their work more efficient using WP-CLI via SSH gateway to improve workflows.
On-demand webinar: https://hs.wpengine.com/webinar-improve-workflows-SSH-gateway
Martin Aspeli Extending And Customising Plone 3Vincenzo Barone
This document discusses customizing and extending Plone 3 using buildout, eggs, GenericSetup profiles, and testing. Key points include:
1) Using buildout to manage dependencies and custom packages, including developing packages locally.
2) Creating a "policy product" that installs all customizations and dependencies in one step.
3) Customizing Plone through GenericSetup profiles using XML configuration files and custom import steps.
4) Writing tests to ensure customizations are properly installed and configured.
5) Customizing visual components like skins, views, and resources using layers and browser resources. Thorough testing and source control are emphasized.
BaláZs Ree Introduction To Kss, Kinetic Style SheetsVincenzo Barone
KSS, Kinetic Style Sheets, is a framework that enables developers to create rich (AJAX) user interfaces without knowing javascript at all. KSS itself is by default included with Plone3 and is also usable with Zope3. In the future we plan to make it available for other pythonic and non-pythonic platforms as well. During the demonstration we give a step by step introduction to adding dynamic behaviour to your browser page by the KSS stylesheet and server side only python code. We also introduce the setup and debugging skills needed to add dynamicity to your application. The targeted audience for the demo are Plone developers and integrators, familiar with server side Plone scripting. A basic knowledge of HTML and CSS is also needed. As a result you will get an introduction to the usage of KSS. Knowledge of javascript is not needed for attending the demonstration.
This document provides an overview and introduction to web components. It discusses the key aspects of web components including custom elements, HTML imports, shadow DOM, and templates. It also shows how web components allow building reusable custom elements that encapsulate their styles and functionality independently of the page they are used in. The document demonstrates how to define and register a custom element for displaying activity cards and use templates and shadow DOM to encapsulate its implementation.
Node JS Express : Steps to Create Restful Web AppEdureka!
Node.js uses JavaScript - a language known to millions of developers worldwide - thus giving it a much lower learning curve even for complete beginners. Using Node.js you can build simple Command Line programs or complex enterprise level web applications with equal ease. Node.js is an event-driven, server-side, asynchronous development platform with lightning speed execution. It is open source and cross-platform, running on OS X, Linux and Windows. It also has an open source community that produces amazing modules available for use in your project for additional functionalities. Node.js helps you to code the most complex functionalities in just a few lines of code. The topics covered in the presentation are :
1. Understanding NodeJS Express
2. Creating Restful Web App
3. What is NPM
4.Templates in Express
The document provides instructions for setting up a basic business process management system (BPMS) using Ruby on Rails and open source components. It describes registering various participants like XForms, SPS, and WNS to handle tasks in a sample EO-1 satellite tasking workflow. It also explains how to execute the workflow by launching it from a Rails controller and view, and includes code snippets for setting up the workflow engine and defining participants.
This document discusses using JDBC with Spring Boot to access relational data. It shows how to use the Spring JdbcTemplate to execute SQL queries and updates. The example sets up a Spring Boot project with H2 database dependency, defines a Customer entity, inserts sample customer data using JdbcTemplate.update(), and queries for a customer record using JdbcTemplate.query() with BeanPropertyRowMapper to map the result to a Customer object. Running mvn spring-boot:run executes this code to interact with the in-memory H2 database using JDBC through the Spring framework.
The document discusses browser caching and issues that can arise in the relationship between caching and HTTP, such as privacy concerns from cached content, inconsistencies in how different browsers implement caching, and challenges with cache invalidation when content is updated. It proposes approaches to address these issues through techniques like fixing bugs, properly sizing caches, improving cache replacement algorithms, and developing standards for linked cache invalidation using HTTP link headers.
This talk is about how to build a cluster to run a python or ruby (ruby on rails) application. We'll have a look at how the procedure of building such a cluster could look like and what you should take into consideration.
We'll look at issues like: datacenter, networking, load balancing, storage, database replication, ....
This document summarizes techniques for optimizing WordPress development. It discusses using integrated development environments (IDEs) for code completion and debugging. It also covers the WordPress Codex as the primary resource for documentation and coding standards. Additional topics include using WPShell for testing, caching pages with plugins like Batcache, and debugging with functions like var_dump(), error_log(), and XDebug. The goal is to help WordPress developers work more efficiently through best practices for tools, documentation, coding standards, and debugging.
Godefroid Chapelle Ajax With Plone 3 Kss Development PatternsVincenzo Barone
This document discusses Kinetic Style Sheets (KSS), an Ajax framework that uses kinetic stylesheets for event binding and DOM manipulation on the client-side while keeping business logic on the server-side. It outlines the goals of ensuring accessibility and using minimal JavaScript. It describes the design of using kinetic stylesheets, a generic client-side engine for handling events and HTML snippets, and a simple server-side API. It also covers development and testing patterns for KSS.
Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)Andreas Koop
1) The document discusses best practices for deploying applications on WebLogic Server. It addresses challenges like managing multiple applications and versions.
2) It provides strategies and tools for deployment including using the Deployer, Ant, Maven, and WLST scripts. It recommends planning deployments to clusters from the start.
3) The document discusses considerations for production redeployments like handling versioning, retire timeouts, and maintaining session state during redeployments. It also notes some pain points like managing custom configuration data and security policies.
This is a CakePHP plugin for admin dashboards. It's fully acl controlled. More info on http://www.luisfred.com.br/cakephp-administrativo-acl/
This document discusses Spring Boot and how to leverage its features to simplify development. Some key points:
- Spring Boot aims to make development easier by making opinionated choices for developers and handling configuration automatically.
- Autoconfiguration allows Spring Boot to automatically configure applications based on dependencies without requiring explicit configuration.
- Conventions like starter dependencies and property files allow Spring Boot to further simplify setup.
- Features like embedded servers and default configurations handle much of the boilerplate code typically associated with Spring projects.
- Techniques like profiles, conditions, and meta-annotations give developers control over configurations while leveraging Spring Boot's defaults.
This talk introduces Spring's REST stack - Spring MVC, Spring HATEOAS, Spring Data REST, Spring Security OAuth and Spring Social - while refining an API to move higher up the Richardson maturity model
El Racing de Santander visitó al Athletic Club de Bilbao en un partido de la liga española. A pesar de ir perdiendo, el Racing logró empatar gracias a un gol de Pineda. Cuando parecía que el partido terminaría empatado, Radchenko anotó un espectacular gol de vaselina en el minuto 88 que le dio la victoria al Racing, provocando un profundo silencio en el estadio de San Mamés. El autor reflexiona que este silencio hizo comprender por qué el estadio es conocido como "la catedral".
El penalti en dos tiempos de samuel lamarcaLola Arroyo
El artículo habla sobre un kiosko llamado Kiosko y Más que publica un periódico local llamado El Diario Montañés. El kiosko ofrece acceso digital al periódico a través de su sitio web para que los lectores puedan leer las noticias en línea.
The document announces an internal IBM photo contest celebrating IBM's 100th anniversary in 2011. Employees are invited to submit up to 3 photos reflecting IBM's history, values, people, or technology by January 14th. From January 20-27th, employees can vote for their favorite photos online. The 9 grand prize winners will be announced on January 31st, receiving prizes and having their photos used for communications.
The document summarizes several design projects completed by Ivan Areyna's portfolio, including:
1. The branding and packaging design for M'üi, a new line of Mexican teas, flavored waters, and juices.
2. The redesign of the websites for Capital Media Corporation, a large media group with newspapers, radio stations, and TV networks.
3. The interior kitchen design called Kuche Kitchen featuring modern technology for an upscale clientele.
4. The product design of El Guateque, a tortilla warmer inspired by Mexican culture and tradition.
As consequências da ascensão de donald trump ao poder nos estados unidosFernando Alcoforado
Donald Trump apresenta sua campanha para a presidência dos Estados Unidos baseada na defesa da lei e da ordem na qual deixam evidenciados seus traços de personalidade autoritária. Trump apresentou uma lógica de gladiador. Tudo gira em torno da conquista, da supremacia dos Estados Unidos. Trump propõe construir um muro entre os Estados Unidos e o México para impedir a entrada de latino-americanos, proibir a entrada de muçulmanos no país e isolar os Estados Unidos do mundo. Durante décadas, o Partido Republicano representou, no exterior, uma ordem internacional voltada para o futuro liderada pelos Estados Unidos, e, em casa, o capitalismo democrático com pequena intervenção do governo na economia. Trump dizima isso e outras coisas que os republicanos defendiam e representavam.
El artículo habla sobre la apertura de un nuevo supermercado en Santander. El supermercado ofrece productos frescos y de calidad a precios bajos. Además, el supermercado crea puestos de trabajo para la comunidad local.
Este artículo discute el cambio de las programaciones didácticas a las unidades didácticas para incorporar las competencias básicas y concretar las tareas. Explica que las unidades didácticas son herramientas clave para promover el desarrollo de competencias básicas en cada grupo de estudiantes de acuerdo con el proyecto educativo de la escuela. También repasa los diferentes niveles de planificación curricular e identifica a las unidades didácticas como el documento que enlaza las propuestas generales de la escuela con el trabajo
El documento explica que la Pascua tiene significados diferentes para los judíos y cristianos. Para los judíos, conmemora la liberación de Egipto y la salvación de Dios de la primera plaga, mientras que para los cristianos incluye la última cena, muerte y resurrección de Cristo, quien se sacrificó como el cordero de Dios para salvar a la humanidad del pecado.
Web Systems Architecture by Moshe KaplanMoshe Kaplan
If you are planning a large scale web site, or consider how to take you site to the next level, you should have participated in this workshop. Feel free to connect for further details.
Web systems architecture, Performance and MoreMoshe Kaplan
The document appears to be a presentation on web systems architecture and performance analysis. It discusses various topics related to web performance such as the network effect, caching strategies, data storage options, system monitoring, and techniques for keeping systems available and scaling effectively. The presentation contains over 60 slides and provides analysis, examples, and recommendations on improving web performance.
An introduction to MongoDB: Why should you choose, and how will you migrate to it? What you should consider and What to learn? Syntax, highlights and more
Testing Like a Pro - Chef Infrastructure TestingTim Smith
Automated infrastructure allows us to move fast, but moving fast is scary without proper testing. Where to start though? The state of the art in Chef cookbook testing has changed rapidly in the last few years with the introduction of new and improved tools and much of what you’ll find in web searches is often outdated.
In this presentation I’ll give an overview of the available tools for testing and techniques to avoid busy work in your testing. We’ll cover cookbook linting, unit testing, and integration testing using Cookstyle, ChefSpec, and Test Kitchen / InSpec. We’ll also cover wiring up your testing in Travis CI to perform full integration tests on every PR.
STSADM Automating SharePoint Administration - Tech Ed South East Asia 2008 wi...Joel Oleson
Automating SharePoint Administration with the built in tools in the box. Tips, tricks, and a lot of information you can't find elsewhere. Kudos to Todd Klindt for a few slides. Majority of deck and presentation by Joel Oleson
The document discusses stored procedures and cursors in SQL. It defines stored procedures as reusable blocks of SQL code that can be called multiple times with different input parameters to perform repetitive tasks. Cursors allow row-by-row processing of result sets. The document provides examples of creating stored procedures and using cursors to iterate through rows retrieved from a database table. It also lists advantages of stored procedures like modular programming, faster execution, reduced network traffic, and better security.
Brief introduction into SQL injection attack scenariosPayampardaz
This document discusses SQL injection vulnerabilities and techniques. It explains how web applications interact with databases by passing user-input as parameters in SQL queries. SQL injection occurs when user-input containing SQL code is not sanitized. The document outlines various SQL injection payloads and techniques, such as terminating strings, commenting queries, accessing stored procedures and server variables. It also provides recommendations for secure coding practices and database hardening.
Setup MySQL is simple, it becomes more simple and easy via puppet. With puppetlabs-mysql, you can take what was once a complex to manage, streamline into far simpler. Puppetlabs-mysql module, lets you both configure and manage your MySQL installation, plus manage MySQL resources such as users, grants, and databases.
In this post, it will shows you how to easily setup MySQL server using puppet, as well as demonstrate how to quickly deploy a simple MySQL client.
This document contains notes from a meeting on web application security. It discusses several common vulnerabilities like SQL injection, cross-site scripting (XSS), and clickjacking. It provides examples of how these vulnerabilities can occur and ways to prevent them, such as sanitizing user input, enabling CSRF protection middleware, and using the X-Frame-Options header. Keywords discussed include MySQL, Docker, Kubernetes, Ansible, and various attack vectors like CSRF, XSS, SQL injection, and clickjacking. The document aims to educate on security best practices for Python and Django web applications.
MySQL is a relational database management system that was created to be fast, reliable, and easy to use. It supports multiple platforms and can be downloaded and installed for free. Basic commands for MySQL include CREATE, SELECT, DELETE, INSERT, UPDATE, and DROP to manage tables and data.
2017 OWASP SanFran March Meetup - Hacking SQL Server on Scale with PowerShellScott Sutherland
This presentation will provide an overview of common SQL Server discovery, privilege escalation, persistence, and data targeting techniques. Techniques will be shared for escalating privileges on SQL Server and associated Active Directory domains. Finally I’ll show how PowerShell automation can be used to execute the SQL Server attacks on scale with PowerUpSQL. All scripts demonstrated during the presentation are available on GitHub. This should be useful to penetration testers and system administrators trying to gain a better understanding of their SQL Server attack surface and how it can be exploited.
Sections Updated for OWASP Meeting:
- SQL Server Link Crawling
- UNC path injection targets
- Command execution details
SQLMAP is an open source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers.
Behavior Driven Development and Automation Testing Using CucumberKMS Technology
This document discusses behavior-driven development (BDD) and automation testing using Cucumber. It begins with an example of a Cucumber scenario for logging into a system. It then demonstrates an automation test case written in Java and discusses how Cucumber executes scenarios. The rest of the document outlines an agenda to discuss BDD, Cucumber automation, developing a Cucumber framework, and the pros and cons of BDD and Cucumber.
This document provides an overview and agenda for a presentation on MySQL best practices for DBAs and developers. The presentation covers essential MySQL configuration practices like server SQL mode and storage engines. It also discusses improving SQL, user security, schema optimizations, instrumentation, and monitoring. Specific topics include comment SQL, formatting SQL, future proofing SQL, and analyzing SQL. The document provides examples and recommendations for each topic.
Summary of the MySQL 8.0.19 new features, released on January 13th, 2020.
==
== Highlights
==
* InnoDB ReplicaSet
* SQL Improvements
=> Table Value Constructors
=> LIMIT in recursive CTE
=> ALTER TABLE… DROP/ALTER CONSTRAINT
=> More information to Duplicate Key Error
* Account Management Enhancements
* Time zone offset for Timestamp & Datetime
* Information Schema views for SQL Roles
* MySQL Document Store Enhancements
* MySQL Shell Enhancements
* MySQL Router Enhancements
* MySQL InnoDB Cluster Enhancements
* MySQL Replication Enhancements
* MySQL NDB Cluster Enhancements
* MySQL Enterprise New Features
* Thanks to the Contributors
10 things every developer should know about their database to run word press ...Otto Kekäläinen
Talk from WordCamp Barcelona 2018
https://2018.barcelona.wordcamp.org/session/10-things-every-developer-should-know-about-their-database-to-run-wordpress-optimally/
The database is perhaps the most important piece of your infrastructure. The database contains all your important e-commerce data and must be kept secured. The database performance often defines the overall performance of your WordPress site. In this talk I the most important things every WordPress developer should know about MariaDB/MySQL to be able to build and operate their site optimally.
This document discusses various profiling tools that can be used to analyze MySQL performance, including Oprofile, perf, pt-pmp, and the MySQL Performance Schema. It provides examples of how these tools have been used to identify and resolve specific MySQL performance bugs. While the Performance Schema is useful, it does not always provide sufficient detail and other system-wide profilers like Oprofile and perf are still needed in some cases to pinpoint performance issues.
The document discusses integrating C/C++ code with Python and Spark. It describes compiling C/C++ code to an executable, copying the executable to nodes in a Spark cluster, and using the pipe method to run the executable on a Spark RDD in parallel. The general concept of PySpark internals is also briefly mentioned.
The document discusses big data challenges and opportunities. It provides examples of companies like Moovit and MediSafe that are addressing opportunities in transportation and healthcare. It also discusses how technologies like mobile, cloud, and the commoditization of IT have enabled big data. The document outlines some assumptions about relational databases that may no longer apply and how NoSQL databases can provide faster, cheaper solutions for modern data and analytics needs.
This document provides an introduction to Python programming. It discusses key Python concepts like variables, numbers, strings, lists, tuples, dictionaries, functions, if/else statements, loops, classes and exceptions. It also covers Python integration, testing and preparing for Spark. The document is presented by Moshe Kaplan and includes his contact information.
Redis training for java software engineersMoshe Kaplan
This document discusses Redis, an open source in-memory data structure store. It begins with an introduction to Redis and its author, then covers Redis data types, key design, common operations like sets, lists, hashes and more advanced features like transactions, security and persistence. The goal is to introduce Java software engineers to using Redis for caching, queues and more.
MongoDB training for java software engineersMoshe Kaplan
This document discusses MongoDB and its usage for Java software engineers. It begins with an introduction to MongoDB and discusses how it provides a document-oriented database that scales well for applications. Several examples of companies using MongoDB are also provided, such as Moovit and MediSafe. The document then covers various topics related to using MongoDB such as installation, querying data, data modeling differences from relational databases, migration from SQL to MongoDB, and challenges of MongoDB's schemaless design.
This week I had a session w/ one the Israeli largest Telcos, regarding BillRun!, their new billing solution: an open source billing solution that is based on MongoDB. We covered in this 3 days course: 1) NoSQL background, 2) MongoDB introduction and setup; 3) NoSQL Data Model; 4) NoSQL query language and aggregation framework; 5) Performance tuning; 6) Operations: backup, restore, monitoring and security and 7) HA and scale using Replica set and Sharding
This document provides an overview of MongoDB, a popular NoSQL database. It discusses key features of MongoDB like its schemaless and document-oriented data model. It also covers how MongoDB supports high availability through replica sets and horizontal scaling through sharding. The document aims to help developers understand how MongoDB works and when it may be suitable for different use cases.
The document discusses strategies for big data and high performance systems. It covers topics like in-memory databases, NoSQL databases like MongoDB and Cassandra, Hadoop and MapReduce, column-oriented databases, and sharding. It provides examples of how these technologies can be used to solve challenges like scalability, availability, and analyzing large datasets. Horizontal and vertical sharding techniques are explained for distributing data across multiple servers.
The VP R&D Open Seminar on Project Management, SCRUM, Agile and Continuous De...Moshe Kaplan
The document summarizes a presentation on software project management tips and best practices. It discusses classic project management techniques as well as more modern agile and continuous deployment approaches. Key topics covered include using sprints and user stories in agile development, implementing test-driven development, version control, continuous integration and deployment, and monitoring software in production. The goal is to provide guidance on how to successfully develop software projects and continuously deliver value to customers.
This document summarizes and compares several solutions for multi-master replication in MySQL databases: Native MySQL replication, MySQL Cluster (NDB), Galera, and Tungsten. Native MySQL replication supports only limited topologies and has asynchronous replication. MySQL Cluster allows synchronous replication across two data centers but is limited to in-memory tables. Galera provides synchronous, row-based replication across multiple masters with automatic conflict resolution. Tungsten allows asynchronous multi-master replication to different database systems and automatic failover.
The document discusses MongoDB performance optimization strategies presented by Moshe Kaplan at a VP R&D Open Seminar. It covers topics like sharding, in-memory databases, MapReduce, profiling, indexes, server stats, schema design, and locking in MongoDB. Slides include information on tuning configuration parameters, analyzing profiling results, explain plans, index management, and database stats.
When should you use cache and when not. Is memcached fit your needs? Should you use Read Through? How to overcome Geo Loadbalancing and invalidation. Another great presentation by Moshe Kaplan
Expert Days: The VP R&D Open Seminar: Project ManagementMoshe Kaplan
All you wanted to know regarding product development, Classic Project Management, SCRUM, Agile, Continuous Deployment, Minimum Viable Product and how to build a winning team
Expert Days 2011: The VP R&D Open Seminar: Systems Performance Seminar Moshe Kaplan
As technical leader you face a challenge: more traffic, more users, more connected systems and more features. The results can be lack of system performance. If you want to be ready for the day of doom, if you want to solve issues before business will get mad or just want to be the hero of the day, this is the workshop for you. In this workshop we'll cover all aspects of modern web systems and will analyze all the things that can go wrong. More important we will understand what is a clutter and what should be taken care of using a set of simple tools and steps. Among the covered items in this workshop: databases, your code, application servers, web servers, system aspects, storages, network and even the browser.
How MySQL become an Internet standard? based on a presentation I gave at the Database2011 conference: Who uses MySQL? (everyone inc. Facebook, Twitter and Google), What are MySQL limitations? (multi threading, INSERTS, SELECTS), How the big boys solved these issues? (Sharding, Partitioning), What are the pros and cons for each Sharding strategy? (Vertical, Horizonal: directory based, static hashing, signature based), How to implement Sharding from an applicative view? How to take care of reporting? What are the emerging solutions in this field? (Gizzard, ScaleBase, Xeround and Akibian)
This document discusses best practices for cloud computing. It recommends starting fast by playing it safe with architecture and using small instances to minimize costs. It suggests scaling out over time and considering options like sharding or in-memory databases. The document also advises defining an exit strategy and preparing for downtime, upgrades, and both SQL and NoSQL solutions. Overall, it encourages growing systems infinitely while managing risks, getting user feedback, and starting up engines to move ahead.
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfSoftware Company
Explore the benefits and features of advanced logistics management software for businesses in Riyadh. This guide delves into the latest technologies, from real-time tracking and route optimization to warehouse management and inventory control, helping businesses streamline their logistics operations and reduce costs. Learn how implementing the right software solution can enhance efficiency, improve customer satisfaction, and provide a competitive edge in the growing logistics sector of Riyadh.
Book industry standards are evolving rapidly. In the first part of this session, we’ll share an overview of key developments from 2024 and the early months of 2025. Then, BookNet’s resident standards expert, Tom Richardson, and CEO, Lauren Stewart, have a forward-looking conversation about what’s next.
Link to recording, presentation slides, and accompanying resource: https://bnctechforum.ca/sessions/standardsgoals-for-2025-standards-certification-roundup/
Presented by BookNet Canada on May 6, 2025 with support from the Department of Canadian Heritage.
AI and Data Privacy in 2025: Global TrendsInData Labs
In this infographic, we explore how businesses can implement effective governance frameworks to address AI data privacy. Understanding it is crucial for developing effective strategies that ensure compliance, safeguard customer trust, and leverage AI responsibly. Equip yourself with insights that can drive informed decision-making and position your organization for success in the future of data privacy.
This infographic contains:
-AI and data privacy: Key findings
-Statistics on AI data privacy in the today’s world
-Tips on how to overcome data privacy challenges
-Benefits of AI data security investments.
Keep up-to-date on how AI is reshaping privacy standards and what this entails for both individuals and organizations.
Artificial Intelligence is providing benefits in many areas of work within the heritage sector, from image analysis, to ideas generation, and new research tools. However, it is more critical than ever for people, with analogue intelligence, to ensure the integrity and ethical use of AI. Including real people can improve the use of AI by identifying potential biases, cross-checking results, refining workflows, and providing contextual relevance to AI-driven results.
News about the impact of AI often paints a rosy picture. In practice, there are many potential pitfalls. This presentation discusses these issues and looks at the role of analogue intelligence and analogue interfaces in providing the best results to our audiences. How do we deal with factually incorrect results? How do we get content generated that better reflects the diversity of our communities? What roles are there for physical, in-person experiences in the digital world?
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxshyamraj55
We’re bringing the TDX energy to our community with 2 power-packed sessions:
🛠️ Workshop: MuleSoft for Agentforce
Explore the new version of our hands-on workshop featuring the latest Topic Center and API Catalog updates.
📄 Talk: Power Up Document Processing
Dive into smart automation with MuleSoft IDP, NLP, and Einstein AI for intelligent document workflows.
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...SOFTTECHHUB
I started my online journey with several hosting services before stumbling upon Ai EngineHost. At first, the idea of paying one fee and getting lifetime access seemed too good to pass up. The platform is built on reliable US-based servers, ensuring your projects run at high speeds and remain safe. Let me take you step by step through its benefits and features as I explain why this hosting solution is a perfect fit for digital entrepreneurs.
This is the keynote of the Into the Box conference, highlighting the release of the BoxLang JVM language, its key enhancements, and its vision for the future.
Spark is a powerhouse for large datasets, but when it comes to smaller data workloads, its overhead can sometimes slow things down. What if you could achieve high performance and efficiency without the need for Spark?
At S&P Global Commodity Insights, having a complete view of global energy and commodities markets enables customers to make data-driven decisions with confidence and create long-term, sustainable value. 🌍
Explore delta-rs + CDC and how these open-source innovations power lightweight, high-performance data applications beyond Spark! 🚀
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungenpanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-nomad-web-best-practices-und-verwaltung-von-multiuser-umgebungen/
HCL Nomad Web wird als die nächste Generation des HCL Notes-Clients gefeiert und bietet zahlreiche Vorteile, wie die Beseitigung des Bedarfs an Paketierung, Verteilung und Installation. Nomad Web-Client-Updates werden “automatisch” im Hintergrund installiert, was den administrativen Aufwand im Vergleich zu traditionellen HCL Notes-Clients erheblich reduziert. Allerdings stellt die Fehlerbehebung in Nomad Web im Vergleich zum Notes-Client einzigartige Herausforderungen dar.
Begleiten Sie Christoph und Marc, während sie demonstrieren, wie der Fehlerbehebungsprozess in HCL Nomad Web vereinfacht werden kann, um eine reibungslose und effiziente Benutzererfahrung zu gewährleisten.
In diesem Webinar werden wir effektive Strategien zur Diagnose und Lösung häufiger Probleme in HCL Nomad Web untersuchen, einschließlich
- Zugriff auf die Konsole
- Auffinden und Interpretieren von Protokolldateien
- Zugriff auf den Datenordner im Cache des Browsers (unter Verwendung von OPFS)
- Verständnis der Unterschiede zwischen Einzel- und Mehrbenutzerszenarien
- Nutzung der Client Clocking-Funktion
TrsLabs - Fintech Product & Business ConsultingTrs Labs
Hybrid Growth Mandate Model with TrsLabs
Strategic Investments, Inorganic Growth, Business Model Pivoting are critical activities that business don't do/change everyday. In cases like this, it may benefit your business to choose a temporary external consultant.
An unbiased plan driven by clearcut deliverables, market dynamics and without the influence of your internal office equations empower business leaders to make right choices.
Getting things done within a budget within a timeframe is key to Growing Business - No matter whether you are a start-up or a big company
Talk to us & Unlock the competitive advantage
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Impelsys Inc.
Impelsys provided a robust testing solution, leveraging a risk-based and requirement-mapped approach to validate ICU Connect and CritiXpert. A well-defined test suite was developed to assess data communication, clinical data collection, transformation, and visualization across integrated devices.
Role of Data Annotation Services in AI-Powered ManufacturingAndrew Leo
From predictive maintenance to robotic automation, AI is driving the future of manufacturing. But without high-quality annotated data, even the smartest models fall short.
Discover how data annotation services are powering accuracy, safety, and efficiency in AI-driven manufacturing systems.
Precision in data labeling = Precision on the production floor.
Generative Artificial Intelligence (GenAI) in BusinessDr. Tathagat Varma
My talk for the Indian School of Business (ISB) Emerging Leaders Program Cohort 9. In this talk, I discussed key issues around adoption of GenAI in business - benefits, opportunities and limitations. I also discussed how my research on Theory of Cognitive Chasms helps address some of these issues
Technology Trends in 2025: AI and Big Data AnalyticsInData Labs
At InData Labs, we have been keeping an ear to the ground, looking out for AI-enabled digital transformation trends coming our way in 2025. Our report will provide a look into the technology landscape of the future, including:
-Artificial Intelligence Market Overview
-Strategies for AI Adoption in 2025
-Anticipated drivers of AI adoption and transformative technologies
-Benefits of AI and Big data for your business
-Tips on how to prepare your business for innovation
-AI and data privacy: Strategies for securing data privacy in AI models, etc.
Download your free copy nowand implement the key findings to improve your business.
How Can I use the AI Hype in my Business Context?Daniel Lehner
𝙄𝙨 𝘼𝙄 𝙟𝙪𝙨𝙩 𝙝𝙮𝙥𝙚? 𝙊𝙧 𝙞𝙨 𝙞𝙩 𝙩𝙝𝙚 𝙜𝙖𝙢𝙚 𝙘𝙝𝙖𝙣𝙜𝙚𝙧 𝙮𝙤𝙪𝙧 𝙗𝙪𝙨𝙞𝙣𝙚𝙨𝙨 𝙣𝙚𝙚𝙙𝙨?
Everyone’s talking about AI but is anyone really using it to create real value?
Most companies want to leverage AI. Few know 𝗵𝗼𝘄.
✅ What exactly should you ask to find real AI opportunities?
✅ Which AI techniques actually fit your business?
✅ Is your data even ready for AI?
If you’re not sure, you’re not alone. This is a condensed version of the slides I presented at a Linkedin webinar for Tecnovy on 28.04.2025.
How Can I use the AI Hype in my Business Context?Daniel Lehner
MySQL crash course by moshe kaplan
1. The VP R&D Open Seminar
MySQL Crash Course
From basics to experts
[email protected]
http://top-performance.blogspot.com
2. The VP R&D Open Seminar
WHY WE CHOSE MYSQL?
http://top-performance.blogspot.com
3. Who is Using MySQL?
3
http://top-performance.blogspot.com
4. Who is Behind MySQL
http://top-performance.blogspot.com
5. What MySQL is Made of?
5
http://top-performance.blogspot.com
http://dev.mysql.com/tech-resources/articles/mysql_5.0_psea1.html
6. MySQL Limitations
50-150M Records/Table
50-5000 SELECT Statements/Second
6
http://top-performance.blogspot.com
7. Why Do I Care?
From 0 to 100 (US mass adaptation)
Phone: 100 yrs
Radio: 40 yrs
TV: 30 yrs
Mobile: 20 yrs
Internet: 10 yrs
Facebook: 2 yrs
7
http://top-performance.blogspot.com
11. What to Install
wget mysql_package
yum –y localinstall mysql_package
The Packages:
Devel+Client+Server
Relevant platform (x86/x64)
Relevant operating system
http://top-performance.blogspot.com
26. Tables Manipulation
SHOW TABLES;
CREATE TABLE users (
id int,
INDEX users_id (id)
);
DROP TABLE users;
ALTER TABLE users ADD INDEX IX_id (id);
ALTER TABLE users DROP INDEX IX_id;
http://top-performance.blogspot.com
27. The VP R&D Open Seminar
SQL: DML
http://top-performance.blogspot.com
28. SELECT
SELECT table.field, table.*
FROM table
WHERE table.field = 123
ORDER BY field1, field2 DESC
http://top-performance.blogspot.com
29. SELECT + Join
SELECT c.*, u.*
FROM classes c
INNER JOIN users u
ON c.teacherId = u.id
http://top-performance.blogspot.com
31. GROUP BY
SELECT gender, count(id)
FROM users
WHERE gender = ‘M’
GROUP BY gender
HAVING count(id) > 10
http://top-performance.blogspot.com
32. UNION
SELECT id
FROM users
WHERE gender = ‘M’
UNION ALL
SELECT id
FROM users
WHERE gender = ‘F’
ORDER BY id;
http://top-performance.blogspot.com
33. UPDATE
UPDATE users
SET gender = ‘M’
WHERE gender IS NULL;
http://top-performance.blogspot.com
34. INSERT
INSERT INTO users (gender)
VALUES (‘M’);
INSERT INTO users (gender)
SELECT gender
FROM users
WHERE gender = ‘M’;
http://top-performance.blogspot.com
35. DELETE
DELETE
FROM users
WHERE gender = ‘M’;
http://top-performance.blogspot.com
36. The VP R&D Open Seminar
MySQL Authentication and Authorization
SECURITY
http://top-performance.blogspot.com
37. Root User
First Time
mysqladmin -u root password NEWPASSWORD
Nth Time
mysqladmin -u root -p'oldpassword' password
newpass
How to enter
Mysql –uuser_name –ppassword –D
database_name
-h host_name/ip -A
http://top-performance.blogspot.com
38. Users Table
mysql> SELECT * FROM mysql.user limit 1G
*************************** 1. row ***************************
Host: localhost
User: root
Password: *4FB5C598BC3FF56E262F863A715F8CB2976A9C69
Select_priv: Y
Insert_priv: Y
Update_priv: Y
Delete_priv: Y
Create_priv: Y
Drop_priv: Y
….
1 row in set (0.00 sec)
http://top-performance.blogspot.com
39. Create a Users and Provide Permissions
-- Create a user w/ password
CREATE USER 'readonly'@'%' IDENTIFIED BY
‘sakexkas';
-- Grant Permissions
GRANT select ON my_db.* to 'readonly'@'%';
GRANT ALL PRIVILEGES ON *.* to
‘master_user’@’%’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
-- Beware of too complex passwords
http://top-performance.blogspot.com
40. The VP R&D Open Seminar
MYSQL AND LINUX ISSUES
http://top-performance.blogspot.com
41. Built in Linux Security Measures
IP TABLES
sudo /etc/init.d/iptables stop
sudo yum –y remove iptables
Configure the relevant rules
SELinux
sudo echo 0 > /selinux/enforce
vi /etc/selinux/config: SELINUX=enforcing SELINUX=disabled
Files Limit (Table Partitioning)
/etc/security/limits.conf
mysql soft nofile 8192
mysql hard nofile 8192
my.cnf:
open_files_limit = 8192
http://top-performance.blogspot.com
47. Show Status (1)
mysql> show slave statusG
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 10.12.12.167
Master_User: repl
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: master.000094
Read_Master_Log_Pos: 167250867
Relay_Log_File: mysqld-relay-bin.000137
Relay_Log_Pos: 167251010
Relay_Master_Log_File: master.000094
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table: mysql.%,information_schema.%
http://top-performance.blogspot.com
48. Show Status (2)
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 167250867
Relay_Log_Space: 167251310
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 1
1 row in set (0.02 sec)
http://top-performance.blogspot.com
49. Skip
DON’T DO THAT unless you have to!
The Process:
STOP SLAVE;
SET GLOBAL SQL_SLAVE_SKIP_COUNTER =
1;
START SLAVE;
SHOW SLAVE STATUSG
http://top-performance.blogspot.com
50. How to Implement?
Stop a Master and record position
Copy a Master (instance/disk) to a Slave
Start the Master
Change slave server-id
SET MASTER HOST …
START SLAVE
Verify
Or…
http://top-performance.blogspot.co.il/2012/03/how-to-
setup-mysql-replication-in-11.html
http://top-performance.blogspot.com
51. Create a Master/Slave configuration
http://top-performance.blogspot.com
52. The VP R&D Open Seminar
SCALE-ABLE ARCHITECTURES
http://top-performance.blogspot.com
53. Do You Remember?
53
http://top-performance.blogspot.com
61. When Should I Choose NoSQL?
Eventually Consistent
Document Store
Key Value
http://guyharrison.squarespace.com/blog/tag/nosql
61
http://top-performance.blogspot.com
62. Sharding Again
62
http://top-performance.blogspot.com
64. Horizontal Sharding
Static Hashing
Complex growth Mod 10 = 0
Mod 10 = 1
Simple
Mod 10 = 2
Mod 10 = 3
Mod 10 = 4
Mod 10 = 5
Mod 10 = 6
Mod 10 = 7
Mod 10 = 8
Mod 10 = 9
64
http://top-performance.blogspot.com
65. Horizontal Sharding
Key locations are defined in a directory
Simple growth
Directory is SPOF
65
http://top-performance.blogspot.com
66. Horizontal Sharding
Static Hashing with Directory Mapping
Simple Growth
Small Directory still SPOF
Mod 1000 = 4
66
http://top-performance.blogspot.com
67. Horizontal Sharding
Each key signed by DB#
generated on creation
Simple growth
New key generation is SPOF
67
http://top-performance.blogspot.com
83. explain
mysql> explain SELECT COUNT(*), post_type FROM wp_posts GROUP
BY post_type;
+--+-------------+--------+-----+-------------+-----------+-------+----+----+-----------+
|id| select_type |table | type|possible_keys|key |key_len|ref |rows| Extra
+--+-------------+--------+-----+-------------+-----------+-------+----+----+-----------+
|1 | SIMPLE |wp_posts|index|NULL |type_status| 140 |NULL|693 | Using index
+--+-------------+--------+-----+-------------+-----------+-------+----+----+-----------+
1 row in set (0.02 sec)
http://top-performance.blogspot.com
85. RAM Usage Optimization
Preferred: SizeOf(database) < SizeOf(RAM)
innodb_buffer_pool_size
50-70% of your RAM
85
http://top-performance.blogspot.com
86. Do We Utilize the Cache?
SHOW STATUS LIKE 'Qcache%';
Qcache_free_blocks 718
Qcache_free_memory 13004008
Qcache_hits 780759
Qcache_inserts 56292
Qcache_lowmem_prunes 0
Qcache_not_cached 3711
Qcache_queries_in_cache 1715
Qcache_total_blocks 4344
86
http://top-performance.blogspot.com
92. What happens when mysql fails to start…
Create my.cnf
touch /etc/my.cnf
Create the error log
vi /etc/my.cnf
[mysqld]
log-error=/var/lib/mysql/log.err
If the my.cnf is already configured
more /etc/my.cnf | grep –i error
Restart mysql
Find the error
tail –n 50 /var/lib/mysql/log.err
In this case we kill all the mysql proceses
ps –aux | grep –i mysql
sudo kill process_id
http://top-performance.blogspot.com
93. The Bottom Line: Grow ∞
Thank you!
and Keep Performing!
Moshe Kaplan
93
http://top-performance.blogspot.com
Editor's Notes
#2: The Matrix, The Architect Speach http://www.youtube.com/watch?v=mod6xr-lyBc A better w/ titles: http://www.youtube.com/watch?v=K3OXs_5AD2A Second, Kong foo: http://www.youtube.com/watch?v=j82GKTgVDkw Twitter Source: http://www.slideshare.net/Blaine/scaling-twitter
#8: The world is changing more and more fast You have to minimize NRE You must support unexpected demand You must provide top service (people now leaves cell operator after single incident, rather then 5, 10 years ago Firms a vulnerable – Citi worth 20Bill $ instead of 200 Bill a year ago Break and Mortar bookstores 15 years ago and Amazon…. Will it happen again to banks, insurance, real estate agencies… IS YOUR MARKET THE NEXT FOR PENETRATION – Finance? Real Estate?How to win a rival that is not existing yet? http://www.johnmwillis.com/ibm/cloud-computing-and-the-enterprise/ -
#69: Sharded database – OLTP Little/No reporting OLAP – must be implemented for reporting Loads data from sharded DBs Custom mechanism Any commercial