SQL so close I can paste it (YAPC::NA::2011 lightning talk)bradoaks
My lightning talk from YAPC 2011 in Asheville, NC
I wanted to log prepared sql statements with their bind variables included in-line. This hack gets me there. It may be useful to you too.
The document outlines the goals and process of building a blog database for incoming information school students. The goals are to pull in RSS feeds to display article snippets and tags, and create a resource for students. Virginia structured the database tables. The team populated the tables by adding and modifying blog feed URLs, retrieving content from feeds, and checking feed formats. They also installed a tag cloud and integrated RSS feeds, tags, and search into the database interface.
This PHP script connects to a MySQL database called "inventario" on a localhost server. It inserts data submitted through a POST request into a "registrar" table, including fields for a patrimonial code, date, area, encargado, hardware, brand, model, and description. If the data is inserted successfully, it displays a message, otherwise it shows any errors.
The document discusses web scraping techniques in PHP, including making HTTP requests using various PHP libraries like cURL and pecl_http, parsing response content using DOM, SimpleXML and XMLReader extensions, and using CSS selectors and regular expressions for data extraction. It also covers best practices like minimizing requests, batching jobs, handling errors, and testing scraping code.
The Art of AngularJS in 2015 - Angular Summit 2015Matt Raible
Presentation from Angular Summit Keynote in September 2015. http://angularsummit.com/conference/boston/2015/09/session?id=34212
AngularJS is one of today's hottest JavaScript MVC Frameworks. In this session, we'll explore many concepts it brings to the world of client-side development: dependency injection, directives, filters, routing and two-way data binding. We'll also look at its recommended testing tools and build systems.
The document discusses various techniques for securing web applications including input filtering, output escaping, preventing SQL injection and cross-site scripting attacks, and protecting against session hijacking. It provides examples of how to filter and sanitize user input, escape output before sending to remote systems, and regenerate session IDs to prevent session fixation attacks.
Best Practices in Plugin Development (WordCamp Seattle)andrewnacin
My talk -- officially named "Y U NO CODE WELL" -- at WordCamp Seattle 2011 on best practices during plugin development. Find the video, as it provides some good context and conversation.
The FamilySearch Reference Client is an open-source implementation of the Family Tree user interface that was developed to:
1) Make it easy for partners to access the FamilySearch tree using an extensible framework
2) Provide reusable components for partners to use
3) Demonstrate how to access the FamilySearch Tree using the Javascript SDK
SQL so close I can paste it (YAPC::NA::2011 lightning talk)bradoaks
My lightning talk from YAPC 2011 in Asheville, NC
I wanted to log prepared sql statements with their bind variables included in-line. This hack gets me there. It may be useful to you too.
The document outlines the goals and process of building a blog database for incoming information school students. The goals are to pull in RSS feeds to display article snippets and tags, and create a resource for students. Virginia structured the database tables. The team populated the tables by adding and modifying blog feed URLs, retrieving content from feeds, and checking feed formats. They also installed a tag cloud and integrated RSS feeds, tags, and search into the database interface.
This PHP script connects to a MySQL database called "inventario" on a localhost server. It inserts data submitted through a POST request into a "registrar" table, including fields for a patrimonial code, date, area, encargado, hardware, brand, model, and description. If the data is inserted successfully, it displays a message, otherwise it shows any errors.
The document discusses web scraping techniques in PHP, including making HTTP requests using various PHP libraries like cURL and pecl_http, parsing response content using DOM, SimpleXML and XMLReader extensions, and using CSS selectors and regular expressions for data extraction. It also covers best practices like minimizing requests, batching jobs, handling errors, and testing scraping code.
The Art of AngularJS in 2015 - Angular Summit 2015Matt Raible
Presentation from Angular Summit Keynote in September 2015. http://angularsummit.com/conference/boston/2015/09/session?id=34212
AngularJS is one of today's hottest JavaScript MVC Frameworks. In this session, we'll explore many concepts it brings to the world of client-side development: dependency injection, directives, filters, routing and two-way data binding. We'll also look at its recommended testing tools and build systems.
The document discusses various techniques for securing web applications including input filtering, output escaping, preventing SQL injection and cross-site scripting attacks, and protecting against session hijacking. It provides examples of how to filter and sanitize user input, escape output before sending to remote systems, and regenerate session IDs to prevent session fixation attacks.
Best Practices in Plugin Development (WordCamp Seattle)andrewnacin
My talk -- officially named "Y U NO CODE WELL" -- at WordCamp Seattle 2011 on best practices during plugin development. Find the video, as it provides some good context and conversation.
The FamilySearch Reference Client is an open-source implementation of the Family Tree user interface that was developed to:
1) Make it easy for partners to access the FamilySearch tree using an extensible framework
2) Provide reusable components for partners to use
3) Demonstrate how to access the FamilySearch Tree using the Javascript SDK
Miniproject on Employee Management using Perl/Database.Sanchit Raut
The project is about employee management system. The language used in this project is Perl and MySql database for storing data with phpMyadmin as database handler.
jQuery: Tips, tricks and hints for better development and PerformanceJonas De Smet
This document provides an overview of a presentation on jQuery tips, tricks, and hints for better development and performance. The presentation covers:
1. What is jQuery and how it simplifies document traversing, event handling, and rapid web development.
2. Ten useful tips for better development, including avoiding flashing content, using Firebug's console, loading jQuery from Google Code, and writing custom filter selectors.
3. Ten performance tips such as using .find() instead of new selectors, giving selectors context, caching jQuery objects, and using event delegation.
The presentation concludes with contact information for the presenter.
You're Doing it Wrong - WordCamp OrlandoChris Scott
The document discusses various ways that developers commonly do things wrong when working with WordPress. It provides examples of wrong code patterns and anti-patterns compared to better right ways of doing things, such as properly validating and escaping user input, using WordPress helper functions and classes instead of globals, enqueueing scripts and styles rather than directly echoing them, and contributing back to the WordPress community.
The document discusses web scraping, including:
1. The basics of web scraping including how it differs from normal web browsing and why it is useful for tasks like data integration.
2. The techniques involved in web scraping including making HTTP requests, parsing responses, and analyzing retrieved data.
3. The libraries and tools available in PHP for performing web scraping tasks like DOM parsing, CSS selection, and regular expressions.
4. Best practices for web scraping such as approximating human behavior, batching requests, and thoroughly testing scrapers.
RESTFUL SERVICES MADE EASY: THE EVE REST API FRAMEWORK - Nicola Iarocci - Co...Codemotion
The document discusses RESTful web services and the Eve framework for building them. It provides an overview of key Eve features like setting up a basic API, connecting to MongoDB, adding validation rules, embedding resources, pagination, filtering, sorting, rate limiting, file storage, and ensuring data integrity. The presentation also covers more advanced topics such as geo-spatial support, authentication, and using Eve with other data stores like SQL and Elasticsearch.
This document provides an overview of software security best practices and common vulnerabilities for Odoo code. It discusses the top 10 risks including injection, broken authentication, sensitive data exposure, XML external entities, broken access control, security misconfiguration, cross-site scripting, insecure deserialization, vulnerable components, and insufficient logging. For each risk, it provides examples of vulnerable code and recommendations for more secure implementations. It emphasizes that the Odoo framework includes mechanisms to prevent many mistakes but knowledge and mindset are also key. The document concludes with recommendations for code reviews to check access control, permissions, templates, evaluations, injections, and cross-site scripting prevention.
Outline
- What Is Selenium
- Why Automates Web Browser
- Automation with Selenium IDE
- Automation with WebDriver
- Page Factory
- Page Object Pattern
- Automation with FluentAutomation
- Selenium Grid
- Selenium Tests in Continuous Integration
- The Reality
- Q & A
Code sample can be downloaded at http://goo.gl/KtyF6r
This document discusses improving website performance. It outlines three pillars of performance: visibility, interactivity, and responsiveness. For each pillar, it recommends books and techniques. Tips include using tools like Firebug and YSlow, delaying initialization, throttling and debouncing events, and profiling code. While optimizations can improve performance, they also increase costs. The document emphasizes establishing a baseline and focusing first on low-hanging fruit before more complex optimizations. It concludes by thanking the sponsors and providing contact information.
Tulsa Techfest 2016 : Pragmatic Governace by Scott MitchellScott Mitchell
How to automate IT governance compliance audits and reduce the high energy/cost of traditional training and overseeing methods of monitoring and managing compliance.
The document discusses how simple web technologies can be used to create powerful tools and APIs by "playing with the web". It provides examples of using cURL and JavaScript to build currency conversion and Twitter APIs. It encourages exploring web pages and APIs through tools like Firebug to find new opportunities and ways to solve problems through creative coding.
No one enjoys using a slow web app, but working out where to start improving can be overwhelming. Ian Grunert, Trello Backend Developer, will step you through using the chrome developer tools, production monitoring and local profiling to investigate slow initial page loads and single page app interactions.
You will learn how Ian identifies and prioritises low-hanging fruit in javascript and CSS page weight, javascript rendering performance, and backend performance improvements. This feeds into communicate wins and educating the wider team using Hipchat and Confluence, and preventing future regressions using Bitbucket Pipelines.
Attendees will learn some fresh ideas on how to sow and cultivate a culture of performance in your engineering team.
Nothing is as frustrated as deploying a new release of your web application to find out functionality you had doesn't work anymore. Of course you have all your unit tests in place and you run them through your CI environment, but nothing prepared you to a failing javascript error or a link that doesn't work anymore. Welcome to User Acceptance testing or UAT. Before you start putting real people in front of your application, create macros and export them as PHPUnit test classes. Then run them in an automated way just like your unit tests and hook them into your CI. In this talk I will show you how easy it is to create Selenium macros that can be converted into PHPUnit scripts and run automatically on different virtual machines (VM's) so you can test all different browsers on a diversity of operating systems.
The document discusses various ways that an Evergreen library system can connect to and exchange data with external services and systems. It covers setting up APIs and protocols like SIP2, Z39.50, and SRU/W to pull in bibliographic and patron data and push data out to discovery interfaces. It also provides examples of integrating book jacket and reviews content from sources like OpenLibrary, Syndetics, and ChiliFresh. Proper planning, data quality, and support for legacy protocols are emphasized.
Creating Operational Redundancy for Effective Web Data MiningJonathan LeBlanc
In this session, we will explore the principles behind building a highly scalable, efficient, and effective web data mining architecture, based on standard semantic principles of data collection. This type of standard collection will allow any company to turn unstructured web data into structurally sound, valuable content.
Some Advanced Tracking in Google Analytics in 5 mins - PhillyJS meet up Nico Miceli
This document discusses various advanced tracking techniques that can be implemented in Google Analytics using JavaScript. It covers setting up asynchronous tracking code, tracking events and custom variables, tracking clicks on external links and form interactions, and using scroll tracking to understand how much of an article users read. Code examples are provided for tracking events, custom variables, tracking clicks on links and form inputs, and scroll tracking to understand readership. Overall, the document explores different ways to gain deeper insights into user behavior on a website through advanced JavaScript-based tracking in Google Analytics.
A half day workshop for local FSB members with one simple aim: we take the geek out of getting seen online. The areas covered include-..
- Why Google is the only real game in town
- SEO in plain English that even your Nan would understand
- Free tools that you really need to know about
- What Google used to like and why that changed
- Your website is your voice online, what is it saying?
- The impact you can make on and off the page for free
- Social media: why you must join the conversation
- Analytics: it's all a waste of time if you can't measure it
This document discusses security issues and options related to PHP programming. It begins by outlining common attack vectors like validation circumvention, code injection, SQL injection, and cross-site scripting. It then provides examples of each attack and recommendations for preventing them, such as validating all user input and escaping special characters when outputting data. The document also introduces tools for analyzing PHP code security like PHPSecAudit and browser developer toolbars. It emphasizes the importance of securing applications from the beginning rather than as an afterthought.
This document outlines the 6 steps to access Google Analytics data through their API:
1. Authenticate by using the ClientLogin API to get an auth token
2. Get your profile ID by making a request to the accounts feed
3. Make requests to the data feed to retrieve analytics data, specifying the profile ID, dimensions, metrics, date range, and other parameters
Being a tweaker modern web performance techniquesChris Love
The document discusses various techniques for improving web performance, including:
- Making fewer HTTP requests by combining scripts, CSS, images and other resources
- Minifying and bundling files to reduce file size
- Compressing content to reduce bandwidth usage
- Caching resources using a content delivery network (CDN)
- Deferring loading of non-critical content
- Optimizing jQuery and JavaScript code to improve speed
- Avoiding unnecessary DOM manipulation for better performance
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.
Miniproject on Employee Management using Perl/Database.Sanchit Raut
The project is about employee management system. The language used in this project is Perl and MySql database for storing data with phpMyadmin as database handler.
jQuery: Tips, tricks and hints for better development and PerformanceJonas De Smet
This document provides an overview of a presentation on jQuery tips, tricks, and hints for better development and performance. The presentation covers:
1. What is jQuery and how it simplifies document traversing, event handling, and rapid web development.
2. Ten useful tips for better development, including avoiding flashing content, using Firebug's console, loading jQuery from Google Code, and writing custom filter selectors.
3. Ten performance tips such as using .find() instead of new selectors, giving selectors context, caching jQuery objects, and using event delegation.
The presentation concludes with contact information for the presenter.
You're Doing it Wrong - WordCamp OrlandoChris Scott
The document discusses various ways that developers commonly do things wrong when working with WordPress. It provides examples of wrong code patterns and anti-patterns compared to better right ways of doing things, such as properly validating and escaping user input, using WordPress helper functions and classes instead of globals, enqueueing scripts and styles rather than directly echoing them, and contributing back to the WordPress community.
The document discusses web scraping, including:
1. The basics of web scraping including how it differs from normal web browsing and why it is useful for tasks like data integration.
2. The techniques involved in web scraping including making HTTP requests, parsing responses, and analyzing retrieved data.
3. The libraries and tools available in PHP for performing web scraping tasks like DOM parsing, CSS selection, and regular expressions.
4. Best practices for web scraping such as approximating human behavior, batching requests, and thoroughly testing scrapers.
RESTFUL SERVICES MADE EASY: THE EVE REST API FRAMEWORK - Nicola Iarocci - Co...Codemotion
The document discusses RESTful web services and the Eve framework for building them. It provides an overview of key Eve features like setting up a basic API, connecting to MongoDB, adding validation rules, embedding resources, pagination, filtering, sorting, rate limiting, file storage, and ensuring data integrity. The presentation also covers more advanced topics such as geo-spatial support, authentication, and using Eve with other data stores like SQL and Elasticsearch.
This document provides an overview of software security best practices and common vulnerabilities for Odoo code. It discusses the top 10 risks including injection, broken authentication, sensitive data exposure, XML external entities, broken access control, security misconfiguration, cross-site scripting, insecure deserialization, vulnerable components, and insufficient logging. For each risk, it provides examples of vulnerable code and recommendations for more secure implementations. It emphasizes that the Odoo framework includes mechanisms to prevent many mistakes but knowledge and mindset are also key. The document concludes with recommendations for code reviews to check access control, permissions, templates, evaluations, injections, and cross-site scripting prevention.
Outline
- What Is Selenium
- Why Automates Web Browser
- Automation with Selenium IDE
- Automation with WebDriver
- Page Factory
- Page Object Pattern
- Automation with FluentAutomation
- Selenium Grid
- Selenium Tests in Continuous Integration
- The Reality
- Q & A
Code sample can be downloaded at http://goo.gl/KtyF6r
This document discusses improving website performance. It outlines three pillars of performance: visibility, interactivity, and responsiveness. For each pillar, it recommends books and techniques. Tips include using tools like Firebug and YSlow, delaying initialization, throttling and debouncing events, and profiling code. While optimizations can improve performance, they also increase costs. The document emphasizes establishing a baseline and focusing first on low-hanging fruit before more complex optimizations. It concludes by thanking the sponsors and providing contact information.
Tulsa Techfest 2016 : Pragmatic Governace by Scott MitchellScott Mitchell
How to automate IT governance compliance audits and reduce the high energy/cost of traditional training and overseeing methods of monitoring and managing compliance.
The document discusses how simple web technologies can be used to create powerful tools and APIs by "playing with the web". It provides examples of using cURL and JavaScript to build currency conversion and Twitter APIs. It encourages exploring web pages and APIs through tools like Firebug to find new opportunities and ways to solve problems through creative coding.
No one enjoys using a slow web app, but working out where to start improving can be overwhelming. Ian Grunert, Trello Backend Developer, will step you through using the chrome developer tools, production monitoring and local profiling to investigate slow initial page loads and single page app interactions.
You will learn how Ian identifies and prioritises low-hanging fruit in javascript and CSS page weight, javascript rendering performance, and backend performance improvements. This feeds into communicate wins and educating the wider team using Hipchat and Confluence, and preventing future regressions using Bitbucket Pipelines.
Attendees will learn some fresh ideas on how to sow and cultivate a culture of performance in your engineering team.
Nothing is as frustrated as deploying a new release of your web application to find out functionality you had doesn't work anymore. Of course you have all your unit tests in place and you run them through your CI environment, but nothing prepared you to a failing javascript error or a link that doesn't work anymore. Welcome to User Acceptance testing or UAT. Before you start putting real people in front of your application, create macros and export them as PHPUnit test classes. Then run them in an automated way just like your unit tests and hook them into your CI. In this talk I will show you how easy it is to create Selenium macros that can be converted into PHPUnit scripts and run automatically on different virtual machines (VM's) so you can test all different browsers on a diversity of operating systems.
The document discusses various ways that an Evergreen library system can connect to and exchange data with external services and systems. It covers setting up APIs and protocols like SIP2, Z39.50, and SRU/W to pull in bibliographic and patron data and push data out to discovery interfaces. It also provides examples of integrating book jacket and reviews content from sources like OpenLibrary, Syndetics, and ChiliFresh. Proper planning, data quality, and support for legacy protocols are emphasized.
Creating Operational Redundancy for Effective Web Data MiningJonathan LeBlanc
In this session, we will explore the principles behind building a highly scalable, efficient, and effective web data mining architecture, based on standard semantic principles of data collection. This type of standard collection will allow any company to turn unstructured web data into structurally sound, valuable content.
Some Advanced Tracking in Google Analytics in 5 mins - PhillyJS meet up Nico Miceli
This document discusses various advanced tracking techniques that can be implemented in Google Analytics using JavaScript. It covers setting up asynchronous tracking code, tracking events and custom variables, tracking clicks on external links and form interactions, and using scroll tracking to understand how much of an article users read. Code examples are provided for tracking events, custom variables, tracking clicks on links and form inputs, and scroll tracking to understand readership. Overall, the document explores different ways to gain deeper insights into user behavior on a website through advanced JavaScript-based tracking in Google Analytics.
A half day workshop for local FSB members with one simple aim: we take the geek out of getting seen online. The areas covered include-..
- Why Google is the only real game in town
- SEO in plain English that even your Nan would understand
- Free tools that you really need to know about
- What Google used to like and why that changed
- Your website is your voice online, what is it saying?
- The impact you can make on and off the page for free
- Social media: why you must join the conversation
- Analytics: it's all a waste of time if you can't measure it
This document discusses security issues and options related to PHP programming. It begins by outlining common attack vectors like validation circumvention, code injection, SQL injection, and cross-site scripting. It then provides examples of each attack and recommendations for preventing them, such as validating all user input and escaping special characters when outputting data. The document also introduces tools for analyzing PHP code security like PHPSecAudit and browser developer toolbars. It emphasizes the importance of securing applications from the beginning rather than as an afterthought.
This document outlines the 6 steps to access Google Analytics data through their API:
1. Authenticate by using the ClientLogin API to get an auth token
2. Get your profile ID by making a request to the accounts feed
3. Make requests to the data feed to retrieve analytics data, specifying the profile ID, dimensions, metrics, date range, and other parameters
Being a tweaker modern web performance techniquesChris Love
The document discusses various techniques for improving web performance, including:
- Making fewer HTTP requests by combining scripts, CSS, images and other resources
- Minifying and bundling files to reduce file size
- Compressing content to reduce bandwidth usage
- Caching resources using a content delivery network (CDN)
- Deferring loading of non-critical content
- Optimizing jQuery and JavaScript code to improve speed
- Avoiding unnecessary DOM manipulation for better performance
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.
Understanding User Behavior with Google Analytics.pdfSEO Article Boost
Unlocking the full potential of Google Analytics is crucial for understanding and optimizing your website’s performance. This guide dives deep into the essential aspects of Google Analytics, from analyzing traffic sources to understanding user demographics and tracking user engagement.
Traffic Sources Analysis:
Discover where your website traffic originates. By examining the Acquisition section, you can identify whether visitors come from organic search, paid campaigns, direct visits, social media, or referral links. This knowledge helps in refining marketing strategies and optimizing resource allocation.
User Demographics Insights:
Gain a comprehensive view of your audience by exploring demographic data in the Audience section. Understand age, gender, and interests to tailor your marketing strategies effectively. Leverage this information to create personalized content and improve user engagement and conversion rates.
Tracking User Engagement:
Learn how to measure user interaction with your site through key metrics like bounce rate, average session duration, and pages per session. Enhance user experience by analyzing engagement metrics and implementing strategies to keep visitors engaged.
Conversion Rate Optimization:
Understand the importance of conversion rates and how to track them using Google Analytics. Set up Goals, analyze conversion funnels, segment your audience, and employ A/B testing to optimize your website for higher conversions. Utilize ecommerce tracking and multi-channel funnels for a detailed view of your sales performance and marketing channel contributions.
Custom Reports and Dashboards:
Create custom reports and dashboards to visualize and interpret data relevant to your business goals. Use advanced filters, segments, and visualization options to gain deeper insights. Incorporate custom dimensions and metrics for tailored data analysis. Integrate external data sources to enrich your analytics and make well-informed decisions.
This guide is designed to help you harness the power of Google Analytics for making data-driven decisions that enhance website performance and achieve your digital marketing objectives. Whether you are looking to improve SEO, refine your social media strategy, or boost conversion rates, understanding and utilizing Google Analytics is essential for your success.
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfFlorence Consulting
Quattordicesimo Meetup di Milano, tenutosi a Milano il 23 Maggio 2024 dalle ore 17:00 alle ore 18:30 in presenza e da remoto.
Abbiamo parlato di come Axpo Italia S.p.A. ha ridotto il technical debt migrando le proprie APIs da Mule 3.9 a Mule 4.4 passando anche da on-premises a CloudHub 1.0.
Discover the benefits of outsourcing SEO to Indiadavidjhones387
"Discover the benefits of outsourcing SEO to India! From cost-effective services and expert professionals to round-the-clock work advantages, learn how your business can achieve digital success with Indian SEO solutions.
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.
4. Why use analytics?
● It’s free
● It’s easy
● For many site searches it doesn’t require
access to server
5. With Analytics
Set up Site Search - Analytics Help
https://support.google.com/analytics/answer/1012264?hl=en
6. What is a Query Parameter?
On a search results page:
http://www.google.com?hl=en&q=mountain+view…
The stuff after “&q” is the parameter
This works for “Get” forms
● <form method=”get”>
7. For forms using the Post http request
method
What about for “post” forms?
● <form method=”post”>
https://support.google.com/analytics/answer/10
12264?hl=en#Post