Forms are inevitable. Forms are hard. Forms with React sometimes even harder. In this talk, we’ll start by exploring best practices to efficiently work with react/redux forms and proceed with building a custom abstraction layer for easier form management.
Forms are inevitable. Forms are hard. Forms with React sometimes even harder. In this talk, we’ll start by exploring best practices to efficiently work with react/redux forms and proceed with building a custom abstraction layer for easier form management.
In the publication I briefly describe what metaclasses are in Python. The writeup is a living item and will be extended with more detail shortly.
Please enjoy and comment.
Presentation given at OSCON 2009 and PostgreSQL West 09. Describes SQL solutions to a selection of object-oriented problems:
- Extensibility
- Polymorphism
- Hierarchies
- Using ORM in MVC application architecture
These slides are excerpted from another presentation, "SQL Antipatterns Strike Back."
This presentation emphasis on How to connect a Play Application with Mysql as database in Scala.Play includes a simple data access layer called Anorm that uses plain SQL to interact with the database and provides an API to parse and transform the resulting datasets.
PyCon SG x Jublia - Building a simple-to-use Database Management toolCrea Very
Jublia is a business matching SaaS solution for the events industry. A common challenge faced by us and this industry is managing different dynamic datasets of participant databases. That’s why we built Jublia DATASYNC - an easy-to-use data management tool via Google Sheets. I will be sharing how you can also build a simple-to-use tools for both techies and non-techies alike to manage databases.
Django web framework ships with very powerful admin interface for site managers. Default interface is generated from model's metadata and can be customized using many hooks. This presentation is about customizing and making admin interface faster and more user friendly.
SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2Dan D'Urso
Accelerated Introduction to SQL Using Microsoft SQL Server Module 2. Covers inner, outer and self joins, correlated and uncorrelated subqueries, unions, aggregate functions, calculated fields and grouping.
OQL querying and indexes with Apache Geode (incubating)Jason Huynh
Slides are from this presentation: https://youtu.be/3XP5O7uBcpM
Overview of OQL querying and indexes in Apache Geode (incubating). Includes common OQL keywords, Geode specific keywords, and describes general features and high level concept of internals of indexing
In the publication I briefly describe what metaclasses are in Python. The writeup is a living item and will be extended with more detail shortly.
Please enjoy and comment.
Presentation given at OSCON 2009 and PostgreSQL West 09. Describes SQL solutions to a selection of object-oriented problems:
- Extensibility
- Polymorphism
- Hierarchies
- Using ORM in MVC application architecture
These slides are excerpted from another presentation, "SQL Antipatterns Strike Back."
This presentation emphasis on How to connect a Play Application with Mysql as database in Scala.Play includes a simple data access layer called Anorm that uses plain SQL to interact with the database and provides an API to parse and transform the resulting datasets.
PyCon SG x Jublia - Building a simple-to-use Database Management toolCrea Very
Jublia is a business matching SaaS solution for the events industry. A common challenge faced by us and this industry is managing different dynamic datasets of participant databases. That’s why we built Jublia DATASYNC - an easy-to-use data management tool via Google Sheets. I will be sharing how you can also build a simple-to-use tools for both techies and non-techies alike to manage databases.
Django web framework ships with very powerful admin interface for site managers. Default interface is generated from model's metadata and can be customized using many hooks. This presentation is about customizing and making admin interface faster and more user friendly.
SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2Dan D'Urso
Accelerated Introduction to SQL Using Microsoft SQL Server Module 2. Covers inner, outer and self joins, correlated and uncorrelated subqueries, unions, aggregate functions, calculated fields and grouping.
OQL querying and indexes with Apache Geode (incubating)Jason Huynh
Slides are from this presentation: https://youtu.be/3XP5O7uBcpM
Overview of OQL querying and indexes in Apache Geode (incubating). Includes common OQL keywords, Geode specific keywords, and describes general features and high level concept of internals of indexing
Data Migrations in the App Engine DatastoreRyan Morlok
Data migration is a core problem when dealing with web frameworks. Rails and Django have their own built-in migration tools to help you manage data, but with Google Cloud Datastore, things are bit more manual. This presentation walks through several techniques and Python examples that leverage deferred tasks or map reduce to keep the data for your app consistent with the state of your code.
MVC Design Pattern in JavaScript by ADMEC Multimedia InstituteRavi Bhadauria
This presentation is one of the best presentations from our study material for our JavaScript Object Oriented workshops which ADMEC conducts every week at the
center.
Presentation / Workshop which will teach you the core patterns, concepts and visualisation options of D3.js (v4). Accompanying exercises can be found here: https://github.com/josdirksen/d3exercises
The primary focus of this presentation is approaching the migration of a large, legacy data store into a new schema built with Django. Includes discussion of how to structure a migration script so that it will run efficiently and scale. Learn how to recognize and evaluate trouble spots.
Also discusses some general tips and tricks for working with data and establishing a productive workflow.
Creating Single Page Web App using Backbone JSAkshay Mathur
This was presented during the workshop on the topic. The complete code of the app that was created during the workshop is available at Github https://github.com/mathurakshay/explore-venues
This is a small introduction to the django framework I did for fellow engineers at Anevia. It touches on many of the major concepts and core features of django and gives a typical workflow built about the example of a minimalist blog engine.
This PPT will help to understand how learning happens in brain. How you can adjust your skill acquisition in the right way so that maximum output is obtained.
Baabtra.com has a solution to provide programming for kids in school. This is based on the CBSE curriculum of India. The main subjects covered are Mathematics and Physics.
99LMS is a mobile based comprehensive enterprise learning environment in which learning processes of a company can be managed and integrated. It ensures employees have the right skills by enabling course content management, providing classroom training and e-learning. Through the APIs, you can develop your resources before they join your company.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Leading Change strategies and insights for effective change management pdf 1.pdf
Session 2 django material for training at baabtra models
1.
2. Models in Django
Courtesy: djangoBook.com
Haris NP
haris@baabtra.com
www.facebook.com/haris.np
9
twitter.com/np_haris
in.linkedin.com/in/harisnp
3. MVC v/s MTV
• Model – Data access layer.
• View – Presentation Layer. What the user sees.
• Controller – Business Logic Layer. This layer
decides which view to use based on the user
input and which model to access.
4. MTV
• M stands for Model
• T stands for Template. This is presentation
layer.
• V stands for View. It is different from the MVC
architecture. It contains the business logic
layer. It access the model and calls the
Template as per the clicks.
5. Connecting to the database
• Settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add
'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'baabtra', # Or path to database file if using sqlite3. This is
the name of the database.
# The following settings are not used with sqlite3:
'USER': 'root',
'PASSWORD': 'itsbaabtra',
'HOST': 'localhost',
# Empty for localhost through
domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '3306',
# Set to empty string for default.
}
}
7. Check the connectivity
• Go to the command prompt
• Traverse to the project folder Type :
python manage.py shell
8. • Type
– from django.db import connection
– cursor = connection.cursor()
If there is no error, then you have configured it
correctly.
9. Project v/s App in Django
• Project: Set of multiple apps with its
configuration.
• App: Set of Django functionality. Apps are
portable and reusable across multiple
projects.
• For starting an app, please use the following
command
python manage.py startapp nameoftheapp
12. • Models
– It is the description of the data in your database.
– It is written in python code.
– It is equivalent to CREATE TABLE. If the table doesn’t
exist, when the project is synched with the database that
you are creating, the tables are created. If you want to
migrate your application from MySQL to Postgres, you
don’t have to rewrite the SQL codes again.
– Since the SQL Codes are written in the python, version
control of database is easy. If there are modifications to
the existing database, it might create out of sync problems.
13. • Sample Model
class Category(models.Model):
category_code=models.CharField(max_length=10)
category_description=models.CharField(max_length=300)
def __unicode__(self):
return self.category_code
class Item(models.Model):
item_name=models.CharField(max_length=200)
item_code=models.CharField(max_length=10)
item_barcode=models.CharField(max_length=20)
item_description=models.CharField(max_length=300)
item_cost=models.FloatField(max_length=10)
item_retail_price=models.FloatField(max_length=10)
item_category_id=models.ForeignKey(Category)
def __unicode__(self):
return self.item_name
class Supplier(models.Model):
supplier_name=models.CharField(max_length=50)
supplier_code=models.CharField(max_length=10)
credit_period=models.CharField(max_length=50)
credit_limit=models.FloatField(max_length=10)
class Purchase_order(models.Model):
supplier_code=models.FloatField(max_length=15)
entry_date=models.DateField()
order_amount=models.FloatField(max_length=10)
net_amount=models.FloatField(max_length=15)
document_type=models.CharField(max_length=20)
class Purchase_items(models.Model):
order_id=models.FloatField(max_length=15)
item_id=models.FloatField(max_length=15)
item_quantity=models.FloatField(max_length=10)
item_rate=models.FloatField(max_length=10)
total_amount=models.FloatField(max_length=15)
14.
15. • Now run the synchDB command using the
following command:
• Run python manage.py validate . This
command validates the model.
• python manage.py syncdb
16.
17. • Basic data access
– Go to python manage.py shell
– Type the following
>>> from baabtramodel.models import Category
>>> obj_category = Category( category_code =
'Elect', category_description ='All kind of electronics
gadgets')
>>> obj_category .save()
Please note that the above code is used for inserting to
database table without foreign key reference
18. • Data is saved in the database. You can verify
by going to the database as shown below.
21. • List the objects
>>> category_list = Category.objects.all()
>>> category_list
It lists all the objects along with the code name.
It
22. • Reason: Copy pasting the model snippet
below
class Category(models.Model):
category_code=models.CharField(max_length=10)
category_description=models.CharField(max_length=300)
def __unicode__(self):
return self.category_code
• The __unicode__(self) is playing the trick. A
__unicode__() method tells Python how to
display the “unicode” representation of an
object. As we have given category_code, we
will get Elect, Cod2 and Cod3 when the
objects are listed.
[<Category: Elect>, <Category:
Cod2>, <Category: cod3>]
23. • You can add multiple strings to a unicode.
def __unicode__(self):
return u'%s %s' %
(self.category_code, self.category_description)
Then it will print both category code and description as
shown below.
24. • Updating data in the database.
>>> obj_category2 = Category( category_code =
'Cod2', category_description ='category desc2')
>>> obj_category2 .save()
>>> obj_category2 .id
7 # Depending upon your entry in the table it
can defer.
25. • From the database
>>> obj_category2.category_code= 'code‘
>>> obj_category2.save()
Again from the database
Please note that cod2 has been changed to ‘code’
26. Selecting data from the database
• Select * from baabtramodel_category can be
achieved by the following code
• Category.objects.all() #where Category is the
class name in the model.
27. • Filtering data
>>> Category.objects.filter(category_code='Elect')
>>>Category.objects.filter(category_code='Elect‘, category_descr
iption=‘All kind of electronics gadgets’)
Now change the criteria as
>>>Category.objects.filter(category_code='Elect', category_descr
iption='All kind of electronics gadget') # doesn’t exist any row in
the table which satisfy the criteria
29. Retrieving single objects
>>> Category.objects.get(id=7)
>>> Category.objects.get(category_code =‘code’)
A query that returns more than two or no records causes an exception
Error:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:Python27libsite-packagesdjangodbmodelsmanager.py", line 143, in
get
return self.get_query_set().get(*args, **kwargs)
File "C:Python27libsite-packagesdjangodbmodelsquery.py", line 407, in g
et
(self.model._meta.object_name, num))
MultipleObjectsReturned: get() returned more than one Category -- it returned 2!
30. Order by and chaining look ups
For descending
>>>Category.objects.filter(category_code__cont
ains ='cod').order_by("category_description")
For ascending
>>>Category.objects.filter(category_code__cont
ains ='cod').order_by(“category_description”)
33. Inserting data in Django to tables with foreign key
reference.
>>> from baabtramodel.models import Item
>>> obj_item = Item( item_name=
'pen', item_code='p', item_barcode
='bc001', item_description ='Used for
writing', item_cost = 10, item_retail_price =15
, item_category_id =1)
34. • Error
• Traceback (most recent call last):
– File “<console>”, line 1, in <module>
– File “C:Python27…. base.py”, line 403, in __init__
• setattr(self, field.name, rel_obj)
– File “C:Python27….related.py”, line 405, in __set__
• Self.field_name, self.field.rel.to._meta.object_name)
– ValueError: Cannot assign “1”: “Item.item_category_id”
must be a “Category” instance.
35. Fix
• Create an instance of the Category.
>>> from baabtramodel.models import Category
>>> category_id = Category.objects.get(id=1)
>>> from baabtramodel.models import Item
>>> obj_item = Item( item_name=
'pen', item_code='p', item_barcode
='bc001', item_description ='Used for writing', item_cost
= 10, item_retail_price =15 , item_category_id
=category_id )
Please note that category_id is an instance and not the
variable inside the object.
40. • The author takes corporate trainings in
Android, Java, JQuery, JavaScript and Python. In case
if your organization needs training, please connect
through www.massbaab.com/baabtra.
• Baabtra provides both online and offline trainings for
candidates who want to learn latest programming
technologies , frameworks like
codeigniter, django, android, iphone app
development
• Baabtra also provides basic training in
SQL, .NET, PHP, Java and Python who wants to start
their career in IT.