This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sqlalchemy import * | |
engine = create_engine('sqlite:///:memory:') | |
metadata = MetaData() | |
table = Table('has_decimal', metadata, | |
Column('id', Integer, primary_key=True), | |
Column('numeric', Numeric(10,3))) | |
metadata.bind = engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@view_config(route_name = 'logout', renderer = 'user_management/logout.mak') | |
def logout(request): | |
"""Logs out the user""" | |
headers = forget(request) | |
request.response.headers = headers | |
return {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I will use the Arduino application as an example, as I encountered this error while doing some projects at home. | |
# I think that this method will work with most Java based apps, but YMMV | |
# I assume you have access to a Unix terminal and basic knowledge of how to use it. | |
# Step 1: get the certificates from the website you have trouble with | |
openssl s_client -showcerts -verify 5 -connect downloads.arduino.cc:443 < /dev/null | |
# This will output a verbose list of a series of certificates (a chain), which is used to establish trust. | |
# Each certificate starts with a BEGIN CERTIFICATE line and ends with an END CERTIFICATE line. These are part of the certificate. |