Kamil, our CTO has shared with us his knowledge of RSpec! The title of the presentation is "Speed up rspec tests - part 1". Stay tuned for the next part!
Puppet At Twitter - Puppet Camp Silicon ValleyPuppet
This document provides an overview of Puppet's workflow and infrastructure at Twitter. It discusses their use of version control, code review, style guides, ENC, Puppet masters, modules, and agent workflow. The key branches are head for development, testing for deployments, and production which hosts 99% of systems. Changes are cherry-picked through the branches after code review.
This document contains PowerShell code to modify the email addresses of linked mailboxes in Exchange. It imports the Exchange module, clears variables, defines credentials and log file paths, gets an array of all linked mailboxes, and then uses a for loop to iterate through each mailbox object and call Set-ADUser to update the email address attribute of each corresponding user object in Active Directory.
Introduction to unit testing in general and to unit testing with RSpec. Described unit testing in general, basic terms and RSpec components, best practices.
Talk I gave to Austin All Girl Hacknite. We installed rails and built the app step by step. We had alot of brand new to rails ladies and we had fun making this simple app
Mule esb - How to use Idempotent Filters in 5 minutesGennaro Spagnoli
This document discusses how to use an idempotent filter in Mule ESB to ensure unique messages are received by a service. It explains setting up an HTTP inbound endpoint to trigger a flow, then using an expression filter configured to allow messages to pass only if the expression evaluates to true once, such as a unique name parameter. The document tests sending a message with the same name parameter twice to demonstrate the filter will only allow the first unique message to pass through successfully.
Testing the Grails Spring Security PluginsBurt Beckwith
The document discusses different types of tests that can be used to test the Grails Spring Security plugin: unit tests, integration tests, and functional tests. It explains that unit and integration tests are not ideal because they do not test against a real filter chain. Functional tests are recommended as they make real requests against a properly configured web server, allowing testing of authentication, authorization, and full configuration. The document provides details on using the Grails functional test plugin to write and run functional tests against a Grails application secured by Spring Security.
chef is an automation tool that describe your infrastructure with code. The purpose of cookbook is automation the system configuration. Cookbook created on the workstation and uploaded to the chef server. Then testing the cookbook by using opennebula. Test kitchen is test hardness tool o execute your configured code on one or more platforms in isolation. Then install the test kitchen and opennebula driver.finally run the cookbook.
React performance best practices include using the react-addons-perf module to measure wasted renders, avoiding direct state/prop mutations, ensuring connected components only re-render when needed, and using immutability to prevent unnecessary re-renders when data changes. Potential issues are components re-rendering even when props haven't changed, large portions of the tree re-rendering unnecessarily, and binding functions incorrectly.
Puppet At Twitter - Puppet Camp Silicon ValleyPuppet
This document provides an overview of Puppet's workflow and infrastructure at Twitter. It discusses their use of version control, code review, style guides, ENC, Puppet masters, modules, and agent workflow. The key branches are head for development, testing for deployments, and production which hosts 99% of systems. Changes are cherry-picked through the branches after code review.
This document contains PowerShell code to modify the email addresses of linked mailboxes in Exchange. It imports the Exchange module, clears variables, defines credentials and log file paths, gets an array of all linked mailboxes, and then uses a for loop to iterate through each mailbox object and call Set-ADUser to update the email address attribute of each corresponding user object in Active Directory.
Introduction to unit testing in general and to unit testing with RSpec. Described unit testing in general, basic terms and RSpec components, best practices.
Talk I gave to Austin All Girl Hacknite. We installed rails and built the app step by step. We had alot of brand new to rails ladies and we had fun making this simple app
Mule esb - How to use Idempotent Filters in 5 minutesGennaro Spagnoli
This document discusses how to use an idempotent filter in Mule ESB to ensure unique messages are received by a service. It explains setting up an HTTP inbound endpoint to trigger a flow, then using an expression filter configured to allow messages to pass only if the expression evaluates to true once, such as a unique name parameter. The document tests sending a message with the same name parameter twice to demonstrate the filter will only allow the first unique message to pass through successfully.
Testing the Grails Spring Security PluginsBurt Beckwith
The document discusses different types of tests that can be used to test the Grails Spring Security plugin: unit tests, integration tests, and functional tests. It explains that unit and integration tests are not ideal because they do not test against a real filter chain. Functional tests are recommended as they make real requests against a properly configured web server, allowing testing of authentication, authorization, and full configuration. The document provides details on using the Grails functional test plugin to write and run functional tests against a Grails application secured by Spring Security.
chef is an automation tool that describe your infrastructure with code. The purpose of cookbook is automation the system configuration. Cookbook created on the workstation and uploaded to the chef server. Then testing the cookbook by using opennebula. Test kitchen is test hardness tool o execute your configured code on one or more platforms in isolation. Then install the test kitchen and opennebula driver.finally run the cookbook.
React performance best practices include using the react-addons-perf module to measure wasted renders, avoiding direct state/prop mutations, ensuring connected components only re-render when needed, and using immutability to prevent unnecessary re-renders when data changes. Potential issues are components re-rendering even when props haven't changed, large portions of the tree re-rendering unnecessarily, and binding functions incorrectly.
From Web Developer to Hardware Developeralexshenoy
This document discusses various topics related to embedded systems development including:
1. How embedded systems work differently than web applications by using interrupt handlers and event loops instead of blocking code to handle inputs and asynchronous operations.
2. Challenges with testing embedded code including the need to mock hardware and test in a simulated environment rather than on the actual target hardware.
3. Best practices for embedded development like using frameworks to avoid "training wheels" code, following test-driven development processes, and handling memory constraints.
.NET Conf 2018: Build Great Libraries using .NET StandardImmo Landwerth
Description
Want to create great .NET class libraries? Confused about .NET Standard, .NET Core, and .NET Framework? Watch this talk to learn how you can easily support multiple platforms with .NET Standard and no compromises, thanks to via multi-targeting. We'll also cover the other aspects, such as versioning, strong naming, and binding redirects.
The Dog Ate My Deployment - Symfony Usergroup Cologne July 2013D
This document discusses best practices for deploying software projects. It outlines five rules: 1) implement deployment from the beginning, 2) automate everything, 3) test quality, 4) create deployable artifacts, and 5) run deployments with one invocation. Specific recommendations include using Puppet for configuration, building testable artifacts, choosing a deployment tool like Fabric or Capistrano, and automating the entire deployment process.
The Dog Ate My Deployment - PHP Uncoference September 2013D
This document discusses best practices for continuous deployment of software projects. It outlines five rules: 1) implement deployment from the beginning, 2) automate everything using tools like Puppet, 3) test quality using tools like Jenkins, 4) create reusable deployable artifacts, and 5) run deployments with a single command using tools like Fabric. Specific techniques are recommended, like using Ant build files, promoting builds through stages like testing and staging, storing artifacts in S3, and keeping deployment configurations with code. The goal is to enable continuous integration and deployment of changes to production with minimal manual steps.
Dennis Benkert - The Dog Ate My Deployment - Symfony Usergroup Berlin March ...D
This document discusses how to establish a continuous delivery pipeline through automation of builds, tests, and deployments. It recommends automating builds with every commit, testing every commit, and ensuring every commit can be deployed. Continuous integration is key to achieving reliability. The document provides recommendations for tools like Jenkins, Ant, PHPUnit, and deployment tools to help set up an automated continuous delivery pipeline.
This document demonstrates how to create a synchronous service in Oracle BPEL PM that performs basic math operations of addition, subtraction and division. It shows how to implement individual scopes for each operation, add compensation handlers, and handle exceptions using catch blocks. The full process includes starting servers, creating the service, building out the BPEL process with assign, scope and compensate activities, configuring exception handling, deploying and testing the service.
This document discusses new features in Eclipse 4 for developers, including using CSS in RCP applications, modeling the workbench and renderer with services, dependency injection with annotations instead of overriding classes, using the event broker for communication between components, and a compatibility layer for migrating Eclipse 3 plug-ins to Eclipse 4.
Ajax pagination will do the same functionality of pagination without refreshing the page. It call the action through jQuery to display the results per page. This example demonstrates the implementation of ajax pagination in Rails3.
The document discusses RSpec, a behavior-driven development framework for Ruby. It provides two frameworks: a story framework for describing application-level behavior and a spec framework for describing object-level behavior. The document then discusses testing Rails applications, including testing models and controllers. It provides an example of generating a model, migration, and test for a Book model.
This document provides instructions for several labs on testing a timeclock application using Ruby. It discusses exploring the timeclock interface by making mistakes, testing command results using an assert_equal function, using the Test::Unit framework for testing, working with arrays and hashes, and testing the timeclock application's web services interface.
This document provides instructions for several labs on testing a timeclock application using Ruby. It begins by having the student experiment with making mistakes using the timeclock commands to learn how errors are handled. It then guides them through setting up a testing framework using assertions and the Test::Unit library. Finally, it instructs them to write tests for the timeclock application's web services interface by checking that jobs are started, paused, stopped correctly and have the expected effects.
Performance testing using Jmeter for apps which needs authenticationJay Jha
The document provides an overview of performance testing using JMeter. It discusses different types of performance testing like load testing, stress testing, and spike testing. It then describes how to install and configure JMeter, including downloading JMeter, installing Java, adding HTTP requests, CSV data sets, listeners, and more. The document walks through recording a test plan in JMeter and provides an example of comparing the performance of an application under 5 users versus 50 users.
The document discusses what tests are in Rails and how to write them. It explains that tests should validate functionality, set up data using factories, perform an action, and make an assertion. Tests can be written for models, controllers, and views using RSpec. When tests run, any fixture data is reset, "let" blocks are run for setup, the test method is executed, and teardown blocks are run. Tests can be run using the 'guard' or 'rspec' commands.
Serverless in production, an experience report (LNUG)Yan Cui
AWS Lambda has changed the way we deploy and run software, but this new serverless paradigm has created new challenges to old problems - how do you test a cloud-hosted function locally? How do you monitor them? What about logging and config management? And how do we start migrating from existing architectures?
In this talk Yan and Scott will discuss solutions to these challenges by drawing from real-world experience running Lambda in production and migrating from an existing monolithic architecture.
Watch Re-runs on your SQL Server with RML Utilitiesdpcobb
RML Utilities provide command line tools and interactive reports enabling you to:
Take SQL trace files (captured with SQL Profiler, sp_trace or extended events in SQL 2012+),
Process them into replayable RML files (using readtrace.exe),
Play them back in a different SQL environment (using ostress.exe),
And compare the performance at a granular level (using reporter.exe or custom queries).
The document discusses testing legacy Rails applications. It provides steps to get testing set up on a legacy Rails app, including creating a test database, running migrations, and getting Rake tasks to run tests. It emphasizes starting with one test at a time, finding and fixing bugs, and refactoring code. Examples are given of writing a model test based on application logs and fixing a failure by updating code. The document stresses treating methods as isolated boxes and only testing one thing at a time to incrementally add tests to a legacy codebase.
The document discusses RSpec, a behavior-driven development (BDD) framework for testing Ruby code. It describes how RSpec allows writing tests in a natural language style using "should" statements. Examples are provided for different types of RSpec tests, including model, controller, and view tests. Shared examples, custom matchers, and integration with Cucumber for writing tests in a storytelling format are also covered. The document concludes with information on installing and running RSpec and generating reports from test results.
Serverless in Production, an experience report (cloudXchange)Yan Cui
This document provides advice on preparing serverless applications for production based on the author's experience deploying 170 Lambda functions to production. It covers important areas to consider like testing at the unit, integration, and acceptance levels; setting up CI/CD pipelines; monitoring, logging, and alerting; distributed tracing; security; and configuration management. The author emphasizes the importance of testing end-to-end without mocking external services, setting up production-ready monitoring and metrics dashboards, and choosing deployment frameworks that are tried and tested.
AWS Lambda has changed the way we deploy and run software, but this new serverless paradigm has created new challenges to old problems - how do you test a cloud-hosted function locally? How do you monitor them? What about logging and config management? And how do we start migrating from existing architectures?
In this talk Yan will discuss solutions to these challenges by drawing from real-world experience running Lambda in production and migrating from an existing monolithic architecture.
Serverless in production, an experience report (Going Serverless, 28 Feb 2018)Domas Lasauskas
This document discusses best practices for preparing serverless applications on AWS Lambda for production. It describes the author's experience deploying 170 Lambda functions and 1.2GB of code into production with a 95% cost savings compared to EC2. Key practices covered include testing, monitoring, logging, distributed tracing, CI/CD pipelines, configuration management, and security. The author advocates for building on principles over tools and shares several tools for serverless development.
From Web Developer to Hardware Developeralexshenoy
This document discusses various topics related to embedded systems development including:
1. How embedded systems work differently than web applications by using interrupt handlers and event loops instead of blocking code to handle inputs and asynchronous operations.
2. Challenges with testing embedded code including the need to mock hardware and test in a simulated environment rather than on the actual target hardware.
3. Best practices for embedded development like using frameworks to avoid "training wheels" code, following test-driven development processes, and handling memory constraints.
.NET Conf 2018: Build Great Libraries using .NET StandardImmo Landwerth
Description
Want to create great .NET class libraries? Confused about .NET Standard, .NET Core, and .NET Framework? Watch this talk to learn how you can easily support multiple platforms with .NET Standard and no compromises, thanks to via multi-targeting. We'll also cover the other aspects, such as versioning, strong naming, and binding redirects.
The Dog Ate My Deployment - Symfony Usergroup Cologne July 2013D
This document discusses best practices for deploying software projects. It outlines five rules: 1) implement deployment from the beginning, 2) automate everything, 3) test quality, 4) create deployable artifacts, and 5) run deployments with one invocation. Specific recommendations include using Puppet for configuration, building testable artifacts, choosing a deployment tool like Fabric or Capistrano, and automating the entire deployment process.
The Dog Ate My Deployment - PHP Uncoference September 2013D
This document discusses best practices for continuous deployment of software projects. It outlines five rules: 1) implement deployment from the beginning, 2) automate everything using tools like Puppet, 3) test quality using tools like Jenkins, 4) create reusable deployable artifacts, and 5) run deployments with a single command using tools like Fabric. Specific techniques are recommended, like using Ant build files, promoting builds through stages like testing and staging, storing artifacts in S3, and keeping deployment configurations with code. The goal is to enable continuous integration and deployment of changes to production with minimal manual steps.
Dennis Benkert - The Dog Ate My Deployment - Symfony Usergroup Berlin March ...D
This document discusses how to establish a continuous delivery pipeline through automation of builds, tests, and deployments. It recommends automating builds with every commit, testing every commit, and ensuring every commit can be deployed. Continuous integration is key to achieving reliability. The document provides recommendations for tools like Jenkins, Ant, PHPUnit, and deployment tools to help set up an automated continuous delivery pipeline.
This document demonstrates how to create a synchronous service in Oracle BPEL PM that performs basic math operations of addition, subtraction and division. It shows how to implement individual scopes for each operation, add compensation handlers, and handle exceptions using catch blocks. The full process includes starting servers, creating the service, building out the BPEL process with assign, scope and compensate activities, configuring exception handling, deploying and testing the service.
This document discusses new features in Eclipse 4 for developers, including using CSS in RCP applications, modeling the workbench and renderer with services, dependency injection with annotations instead of overriding classes, using the event broker for communication between components, and a compatibility layer for migrating Eclipse 3 plug-ins to Eclipse 4.
Ajax pagination will do the same functionality of pagination without refreshing the page. It call the action through jQuery to display the results per page. This example demonstrates the implementation of ajax pagination in Rails3.
The document discusses RSpec, a behavior-driven development framework for Ruby. It provides two frameworks: a story framework for describing application-level behavior and a spec framework for describing object-level behavior. The document then discusses testing Rails applications, including testing models and controllers. It provides an example of generating a model, migration, and test for a Book model.
This document provides instructions for several labs on testing a timeclock application using Ruby. It discusses exploring the timeclock interface by making mistakes, testing command results using an assert_equal function, using the Test::Unit framework for testing, working with arrays and hashes, and testing the timeclock application's web services interface.
This document provides instructions for several labs on testing a timeclock application using Ruby. It begins by having the student experiment with making mistakes using the timeclock commands to learn how errors are handled. It then guides them through setting up a testing framework using assertions and the Test::Unit library. Finally, it instructs them to write tests for the timeclock application's web services interface by checking that jobs are started, paused, stopped correctly and have the expected effects.
Performance testing using Jmeter for apps which needs authenticationJay Jha
The document provides an overview of performance testing using JMeter. It discusses different types of performance testing like load testing, stress testing, and spike testing. It then describes how to install and configure JMeter, including downloading JMeter, installing Java, adding HTTP requests, CSV data sets, listeners, and more. The document walks through recording a test plan in JMeter and provides an example of comparing the performance of an application under 5 users versus 50 users.
The document discusses what tests are in Rails and how to write them. It explains that tests should validate functionality, set up data using factories, perform an action, and make an assertion. Tests can be written for models, controllers, and views using RSpec. When tests run, any fixture data is reset, "let" blocks are run for setup, the test method is executed, and teardown blocks are run. Tests can be run using the 'guard' or 'rspec' commands.
Serverless in production, an experience report (LNUG)Yan Cui
AWS Lambda has changed the way we deploy and run software, but this new serverless paradigm has created new challenges to old problems - how do you test a cloud-hosted function locally? How do you monitor them? What about logging and config management? And how do we start migrating from existing architectures?
In this talk Yan and Scott will discuss solutions to these challenges by drawing from real-world experience running Lambda in production and migrating from an existing monolithic architecture.
Watch Re-runs on your SQL Server with RML Utilitiesdpcobb
RML Utilities provide command line tools and interactive reports enabling you to:
Take SQL trace files (captured with SQL Profiler, sp_trace or extended events in SQL 2012+),
Process them into replayable RML files (using readtrace.exe),
Play them back in a different SQL environment (using ostress.exe),
And compare the performance at a granular level (using reporter.exe or custom queries).
The document discusses testing legacy Rails applications. It provides steps to get testing set up on a legacy Rails app, including creating a test database, running migrations, and getting Rake tasks to run tests. It emphasizes starting with one test at a time, finding and fixing bugs, and refactoring code. Examples are given of writing a model test based on application logs and fixing a failure by updating code. The document stresses treating methods as isolated boxes and only testing one thing at a time to incrementally add tests to a legacy codebase.
The document discusses RSpec, a behavior-driven development (BDD) framework for testing Ruby code. It describes how RSpec allows writing tests in a natural language style using "should" statements. Examples are provided for different types of RSpec tests, including model, controller, and view tests. Shared examples, custom matchers, and integration with Cucumber for writing tests in a storytelling format are also covered. The document concludes with information on installing and running RSpec and generating reports from test results.
Serverless in Production, an experience report (cloudXchange)Yan Cui
This document provides advice on preparing serverless applications for production based on the author's experience deploying 170 Lambda functions to production. It covers important areas to consider like testing at the unit, integration, and acceptance levels; setting up CI/CD pipelines; monitoring, logging, and alerting; distributed tracing; security; and configuration management. The author emphasizes the importance of testing end-to-end without mocking external services, setting up production-ready monitoring and metrics dashboards, and choosing deployment frameworks that are tried and tested.
AWS Lambda has changed the way we deploy and run software, but this new serverless paradigm has created new challenges to old problems - how do you test a cloud-hosted function locally? How do you monitor them? What about logging and config management? And how do we start migrating from existing architectures?
In this talk Yan will discuss solutions to these challenges by drawing from real-world experience running Lambda in production and migrating from an existing monolithic architecture.
Serverless in production, an experience report (Going Serverless, 28 Feb 2018)Domas Lasauskas
This document discusses best practices for preparing serverless applications on AWS Lambda for production. It describes the author's experience deploying 170 Lambda functions and 1.2GB of code into production with a 95% cost savings compared to EC2. Key practices covered include testing, monitoring, logging, distributed tracing, CI/CD pipelines, configuration management, and security. The author advocates for building on principles over tools and shares several tools for serverless development.
In this talk that I gave at RailsWayCon I talk about practices that help to maintain readable, fast and simple test. I also show some examples where hard tests point to design issues. In the last part i introduced some tool that may help to maintain a good test suite.
Ansible can be used for testing infrastructure, applications, and functionality. It provides modules like assert and wait_for that allow validating conditions and waiting for resources. Ansible roles, loops, and tags can structure test cases. Rolling deployments can integrate testing by deploying, validating, and adding instances behind a load balancer. While Ansible configures declaratively, additional steps like assertions allow verifying functionality before continuing.
Unit testing with RSpec is a tool for testing Ruby code using a behavior-driven development approach. RSpec allows writing unit tests to test models, controllers, helpers and other code. Writing unit tests brings advantages like confidence in deploying code, documenting how code works, and catching errors. RSpec provides features for testing including describing test contexts and expectations, factories for test data, mocking and stubbing, and spying on method calls.
Test-driven development (TDD) is a software development process where developers first write automated tests that define desired improvements or new functions. They then write code to pass those tests and refactor the new code to acceptable standards. TDD involves writing unit tests, integration tests, and acceptance tests using tools like JUnit, FitNesse, and Cucumber. Practicing TDD can provide benefits like improved code quality, reduced bugs, and increased developer productivity.
The document discusses UI testing techniques for handling complex user interfaces at scale. It provides an overview of different types of tests like unit tests, integration tests, and end-to-end tests. Unit tests allow testing small pieces of functionality in isolation while integration tests verify behavior of small units together. End-to-end tests focus on real user scenarios. The document also covers tools for testing like test runners, assertion libraries, spies, and DOM mocking. It emphasizes writing tests first before coding to catch bugs early (test-driven development). Overall, the document aims to help developers understand options for testing complex UIs at scale.
"How to start the app development project?" It is one of the most frequently asked questions. In fact, there are 9 steps you need to go through. A few of them:
✅ identify your target group,
✅ setting up the budget,
✅ consider monetization strategy.
Check the presentation and discover the recipe for a successful beginning of the software development process.
Digitize your vision with All Inclusive Development!
https://railwaymen.org/
Railwaymen is a team of professionals engaged in software development, delivering the most innovative solutions to clients all over the world. We focus on building functional, well-designed, fully-tested web and mobile applications.
Last year we were recognized as Global Leader and Top Ruby on Rails Developers from around the world by Clutch. Since 2015 Railwaymen is recognized as Top Developers in Poland.
Book your free tech & business analysis with our experts and Meet us at Mobile World Congress 2018: https://railwaymen.org/events/mwc
We are an enthusiastic team of talented and detail-oriented technology experts who are committed to building software that is as smart as it is functional. We specialize in the newest IT technologies, such as Ruby on Rails for web development, both iOS (Swift) and Android (Java) for mobile app development.
Our mission is to deliver the most innovative solutions to clients all over the world. Most of our clients are located in the United States, the others are from Canada, Australia and European countries. We are also open for new markets, thought we want to expand globally. We provide support at every stage of the project for enterprises and startups.
Since 2015 we are among Top Poland Developers and we were recently recognized as Emerging Polish Web and Software Developers by respectable platform: Clutch.co. Railwaymen is also among Top 10 Ruby on Rails Development Companies.
Our goal is to increase our recognition developing the best quality web and mobile applications, using IoT technology (Internet of Things), AI (Artificial Intelligence) and beacons.
We are an enthusiastic team of talented and detail-oriented technology experts who are committed to building software that is as smart as it is functional. We specialize in the newest IT technologies, such as Ruby on Rails for web development, both iOS (Swift) and Android (Java) for mobile app development.
Our mission is to deliver the most innovative solutions to clients all over the world. Most of our clients are located in the United States, the others are from Canada, Australia and European countries. We are also open for new markets, thought we want to expand globally.
We provide support at every stage of the project for enterprises and startups. Since 2015 we are among Top Poland Developers and we were recently recognized as Emerging Polish Web and Software Developers by respectable platform: Clutch.co. Railwaymen is also among Top 10 Ruby on Rails Development Companies.
Our goal is to increase our recognition, developing the best quality web and mobile applications, using IoT technology (Internet of Things), AI (Artificial Intelligence) and beacons.
Will it pass or not? - A few words about automationRailwaymen
Another great presentation behind us. Bartek, our QA Master prepared a few words about automation. Based on a few sample tests described by the client, he prepared automated tests performed on all supported browsers. After passing such a set of test cases, a report is generated in which we have full statistics.
This document discusses using the AASM gem to implement finite state machines in Ruby. It shows how to define a state machine on a service object called AccountManager to manage the step-by-step creation of an Account model. The AccountManager handles validation and state transitions between steps 1, 2, 3 and finished. This separates the state machine logic from the Account model for better structure, maintenance and testability compared to defining the state machine directly on the Account model.
Railwaymen helps startups with complex mobile app development and our talents specialize in iOS (Swift) / Android technologies. We are based in Cracow (Poland- renowned for its quality coders) and we have the resources to make your company growth as streamlined as possible.
Examples of our work you can see here: http://railwaymen.org/portfolio
The evil scientist - Railwaymen DevDay vol.1Railwaymen
The evil scientist - Railwaymen DevDay vol.1
The Evil Scientist plans to flood our dev machines with large JSON files. His intentions remain unknown, but probably he's crazy on benchmarks.
Smartwatch - something more than an additional screen for notifications?Railwaymen
The creation of two simplified client applications responsible for immediate communication between the waiters and the kitchen at the restaurant using a smartwatch.
Smartwatch - jednak coś więcej niż dodatkowy ekran na notyfikacje?Railwaymen
Stworzenie dwóch uproszczonych aplikacji klienckich odpowiadających za natychmiastową komunikację pomiędzy kelnerami a kuchnią w restauracji na przykładzie smartwatchy wykorzystywanych w systemie POSbistro.
RoR Workshop - Web applications hacking - Ruby on Rails exampleRailwaymen
Web Applications Hacking – Ruby on Rails example. Attack web applications by using SQL attacks, CSRF, XSS. You will learn how to extract information by generating API json / xml and how to use cookies to code injection.
Measures in SQL (SIGMOD 2024, Santiago, Chile)Julian Hyde
SQL has attained widespread adoption, but Business Intelligence tools still use their own higher level languages based upon a multidimensional paradigm. Composable calculations are what is missing from SQL, and we propose a new kind of column, called a measure, that attaches a calculation to a table. Like regular tables, tables with measures are composable and closed when used in queries.
SQL-with-measures has the power, conciseness and reusability of multidimensional languages but retains SQL semantics. Measure invocations can be expanded in place to simple, clear SQL.
To define the evaluation semantics for measures, we introduce context-sensitive expressions (a way to evaluate multidimensional expressions that is consistent with existing SQL semantics), a concept called evaluation context, and several operations for setting and modifying the evaluation context.
A talk at SIGMOD, June 9–15, 2024, Santiago, Chile
Authors: Julian Hyde (Google) and John Fremlin (Google)
https://doi.org/10.1145/3626246.3653374
E-commerce Development Services- Hornet DynamicsHornet Dynamics
For any business hoping to succeed in the digital age, having a strong online presence is crucial. We offer Ecommerce Development Services that are customized according to your business requirements and client preferences, enabling you to create a dynamic, safe, and user-friendly online store.
Most important New features of Oracle 23c for DBAs and Developers. You can get more idea from my youtube channel video from https://youtu.be/XvL5WtaC20A
Zoom is a comprehensive platform designed to connect individuals and teams efficiently. With its user-friendly interface and powerful features, Zoom has become a go-to solution for virtual communication and collaboration. It offers a range of tools, including virtual meetings, team chat, VoIP phone systems, online whiteboards, and AI companions, to streamline workflows and enhance productivity.
Flutter is a popular open source, cross-platform framework developed by Google. In this webinar we'll explore Flutter and its architecture, delve into the Flutter Embedder and Flutter’s Dart language, discover how to leverage Flutter for embedded device development, learn about Automotive Grade Linux (AGL) and its consortium and understand the rationale behind AGL's choice of Flutter for next-gen IVI systems. Don’t miss this opportunity to discover whether Flutter is right for your project.
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Łukasz Chruściel
No one wants their application to drag like a car stuck in the slow lane! Yet it’s all too common to encounter bumpy, pothole-filled solutions that slow the speed of any application. Symfony apps are not an exception.
In this talk, I will take you for a spin around the performance racetrack. We’ll explore common pitfalls - those hidden potholes on your application that can cause unexpected slowdowns. Learn how to spot these performance bumps early, and more importantly, how to navigate around them to keep your application running at top speed.
We will focus in particular on tuning your engine at the application level, making the right adjustments to ensure that your system responds like a well-oiled, high-performance race car.
Microservice Teams - How the cloud changes the way we workSven Peters
A lot of technical challenges and complexity come with building a cloud-native and distributed architecture. The way we develop backend software has fundamentally changed in the last ten years. Managing a microservices architecture demands a lot of us to ensure observability and operational resiliency. But did you also change the way you run your development teams?
Sven will talk about Atlassian’s journey from a monolith to a multi-tenanted architecture and how it affected the way the engineering teams work. You will learn how we shifted to service ownership, moved to more autonomous teams (and its challenges), and established platform and enablement teams.
When it is all about ERP solutions, companies typically meet their needs with common ERP solutions like SAP, Oracle, and Microsoft Dynamics. These big players have demonstrated that ERP systems can be either simple or highly comprehensive. This remains true today, but there are new factors to consider, including a promising new contender in the market that’s Odoo. This blog compares Odoo ERP with traditional ERP systems and explains why many companies now see Odoo ERP as the best choice.
What are ERP Systems?
An ERP, or Enterprise Resource Planning, system provides your company with valuable information to help you make better decisions and boost your ROI. You should choose an ERP system based on your company’s specific needs. For instance, if you run a manufacturing or retail business, you will need an ERP system that efficiently manages inventory. A consulting firm, on the other hand, would benefit from an ERP system that enhances daily operations. Similarly, eCommerce stores would select an ERP system tailored to their needs.
Because different businesses have different requirements, ERP system functionalities can vary. Among the various ERP systems available, Odoo ERP is considered one of the best in the ERp market with more than 12 million global users today.
Odoo is an open-source ERP system initially designed for small to medium-sized businesses but now suitable for a wide range of companies. Odoo offers a scalable and configurable point-of-sale management solution and allows you to create customised modules for specific industries. Odoo is gaining more popularity because it is built in a way that allows easy customisation, has a user-friendly interface, and is affordable. Here, you will cover the main differences and get to know why Odoo is gaining attention despite the many other ERP systems available in the market.
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j
Dr. Jesús Barrasa, Head of Solutions Architecture for EMEA, Neo4j
Découvrez les dernières innovations de Neo4j, et notamment les dernières intégrations cloud et les améliorations produits qui font de Neo4j un choix essentiel pour les développeurs qui créent des applications avec des données interconnectées et de l’IA générative.
Using Query Store in Azure PostgreSQL to Understand Query PerformanceGrant Fritchey
Microsoft has added an excellent new extension in PostgreSQL on their Azure Platform. This session, presented at Posette 2024, covers what Query Store is and the types of information you can get out of it.
Artificia Intellicence and XPath Extension FunctionsOctavian Nadolu
The purpose of this presentation is to provide an overview of how you can use AI from XSLT, XQuery, Schematron, or XML Refactoring operations, the potential benefits of using AI, and some of the challenges we face.
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...XfilesPro
Wondering how X-Sign gained popularity in a quick time span? This eSign functionality of XfilesPro DocuPrime has many advancements to offer for Salesforce users. Explore them now!
Mobile App Development Company In Noida | Drona InfotechDrona Infotech
Drona Infotech is a premier mobile app development company in Noida, providing cutting-edge solutions for businesses.
Visit Us For : https://www.dronainfotech.com/mobile-application-development/
UI5con 2024 - Bring Your Own Design SystemPeter Muessig
How do you combine the OpenUI5/SAPUI5 programming model with a design system that makes its controls available as Web Components? Since OpenUI5/SAPUI5 1.120, the framework supports the integration of any Web Components. This makes it possible, for example, to natively embed own Web Components of your design system which are created with Stencil. The integration embeds the Web Components in a way that they can be used naturally in XMLViews, like with standard UI5 controls, and can be bound with data binding. Learn how you can also make use of the Web Components base class in OpenUI5/SAPUI5 to also integrate your Web Components and get inspired by the solution to generate a custom UI5 library providing the Web Components control wrappers for the native ones.
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j
Dr. Jesús Barrasa, Head of Solutions Architecture for EMEA, Neo4j
Découvrez les dernières innovations de Neo4j, et notamment les dernières intégrations cloud et les améliorations produits qui font de Neo4j un choix essentiel pour les développeurs qui créent des applications avec des données interconnectées et de l’IA générative.
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesQuickdice ERP
Explore the seamless transition to e-invoicing with this comprehensive guide tailored for Saudi Arabian businesses. Navigate the process effortlessly with step-by-step instructions designed to streamline implementation and enhance efficiency.
2. EXAMPLE FEATURE SPEC
describe 'Lists', type: :feature, js: true do
before do
# time consuming setup which takes about 6s
end
# each it takes about 1 second
it 'should be able to browse lists' do
end
it 'should be able to edit a list' do
end
it 'should be able to add companies to list' do
end
it 'should be able to remove companies from list' do
end
it 'should be able to delete a list' do
end
end
3. HOW LONG IT TAKES ?
rspec spec/features/lists_spec.rb
.....
Finished in 35.34 seconds (files took 9.99 seconds to load)
5 examples, 0 failures
4. HOW TO SPEED UP ?
We can combine all tests cases into one so that before
hook will execute only once.
describe 'Lists', type: :feature, js: true do
before do
# time consuming setup which takes about 6s
end
it "should be able to manage lists" do
#should be able to edit a list
...
#should be able to add companies to list
...
#should be able to remove companies from list
...
#should be able to delete a list
...
end
end
5. WE CAN DO IT BETTER!
Use aggregate_failures from rspec
require 'spec_helper'
describe 'Lists', type: :feature, js: true do
before do
# time consuming setup which takes about 6s
end
it 'should be able to manage lists' do
aggregate_failures 'should be able to browse lists' do
end
aggregate_failures 'should be able to edit a list' do
end
aggregate_failures 'should be able to add companies to list' do
end
aggregate_failures 'should be able to remove companies from list' do
end
aggregate_failures 'should be able to delete a list' do
end
end
end
6. HOW LONG IT TAKES ?
rspec spec/features/lists_spec.rb
.
Finished in 11.23 seconds (files took 9.99 seconds to load)
1 example, 0 failures
7. PROS & CONS
Tests runs 3x times faster
Tests becomes dependant on each other
8. WHAT HAPPENS WHEN
SOME TEST FAILS ?
By default all next aggregate_failures within block
will not execute
We can change this by adding aggregate_failures
metadata and then all aggregate_failures will be
executed and rspec will report all errors.
9. WHAT ABOUT
CONTROLLERS ?
describe CompanyOfficesController, type: :controller do
describe '#create' do
it 'validates params' do
sign_in user
post :create, name: ''
expect(response).to render_template('new')
expect(flash[:error]).not_to be_nil
end
it 'creates record when params are valid' do
sign_in user
expect do
post :create, name: 'My office'
end.to change(CompanyOffice, :count).by 1
end
it 'creates record when params are valid and redirect to index' do
sign_in user
post :create, name: 'My office'
expect(response).to redirect_to(company_offices_path)
end
end
end
10. USING
AGGREGATE_FAILURES
describe CompanyOfficesController, type: :controller do
describe '#create' do
it 'creates office' do
sign_in user
aggregate_failures 'validates params' do
post :create, name: ''
expect(response).to render_template('new')
expect(flash[:error]).not_to be_nil
end
aggregate_failures 'creates record when params are valid and redirect' do
expect do
post :create, name: 'My office'
end.to change(CompanyOffice, :count).by 1
expect(response).to redirect_to(company_offices_path)
end
end
end
end
11. SUMMARY
I encourage to use this for all features specs and some
controller specs which uses the same setup.
Questions ?