User contributions for PeterHarding
Jump to navigation
Jump to search
- 19:41, 5 June 2022 diff hist −1 Using Python datetime with Timezones
- 19:38, 5 June 2022 diff hist +425 Using Python datetime with Timezones
- 19:31, 5 June 2022 diff hist +1,579 Using Python datetime with Timezones
- 09:23, 5 June 2022 diff hist +84 Using Python datetime with Timezones
- 09:19, 5 June 2022 diff hist +24 Using Python datetime with Timezones
- 09:18, 5 June 2022 diff hist +473 N Using Python datetime with Timezones Created page with " =Explicit Numerical Offsets from UTC= <pre> from datetime import datetime, timezone dt = datetime.now() # This is a naive datetime value print(dt.isoformat()) print(dt.tzinfo) # Cast this as UTC dt = dt.replace(tzinfo=timezone.utc) # Define the offset offset = "+1000" # Convert as so... tz_aware_dt = dt.astimezone(datetime.strptime(offset, "%z").tzinfo) print(tz_aware_dt.isoformat()) </pre> Category:Python Category:datetime Category:EXamples"
- 18:55, 7 May 2022 diff hist +37 N Category:FastAPI Created page with "FastAPI link, notes and references..." current
- 18:55, 7 May 2022 diff hist +51 N FastApi Created page with "FastAPI Category:FastAPI Category:Python" current
- 18:54, 7 May 2022 diff hist +37 N Category:Containers Created page with "Container links, notes and references" current
- 18:54, 7 May 2022 diff hist +28 Kubernetes
- 18:52, 7 May 2022 diff hist +79 N Kubernetes Created page with "=Kubenetes= Category:Kubenetes Category:Docker category:Containers"
- 12:40, 7 May 2022 diff hist −1 Using Okta with FastAPI current
- 12:39, 7 May 2022 diff hist +4,684 N Using Okta with FastAPI Created page with " <pre> # ----------------------------------------------------------------------------- # Okta Login # ----------------------------------------------------------------------------- okta_config = { "auth_uri": "https://dev-xxxx.okta.com/oauth2/default/v1/authorize", "client_id": "xxxx", "client_secret": "xxxx-", "redirect_uri": "http://127.0.0.1:8000/authorization-code/callback", "issuer": "https://dev-xxxx.okta.com/oauth2/default", "token_uri": "https://dev-..."
- 11:57, 7 May 2022 diff hist +41 N Category:Kubernetes Created page with "Kubernetes links, notes and references..." current
- 11:57, 7 May 2022 diff hist +49 N Kubernetes Notes Created page with "* https://kubernetes.io/ Category:Kubernetes" current
- 11:56, 7 May 2022 diff hist +1 Main Page →Some Areas of Interest current
- 11:56, 7 May 2022 diff hist +30 Main Page →Some Areas of Interest
- 11:29, 7 May 2022 diff hist +39 N Category:FastApi Created page with "FastApi links, notes and refereences..." current
- 11:28, 7 May 2022 diff hist +2,461 N FastAPI Sessions Created page with "Not sure where this came from - shoul dhave captured the link. <pre> # ============================================================================= # Session setup # ----------------------------------------------------------------------------- class SessionData(BaseModel): username: str cookie_params = CookieParameters() # Uses UUID cookie = SessionCookie( cookie_name="cookie", identifier="general_verifier", auto_error=True, secret_key="DONOTUSE..." current
- 11:55, 26 March 2022 diff hist +136 N 3D Imaging Notes Created page with " * https://www.codeproject.com/Articles/1182854/D-Face-Viewer-and-Matcher Category:Imaging Category:3D Category:Development" current
- 11:51, 26 March 2022 diff hist +16 React Notes current
- 11:51, 26 March 2022 diff hist +60 React Notes
- 11:48, 26 March 2022 diff hist +2 React Notes
- 11:48, 26 March 2022 diff hist +1 React Notes
- 11:47, 26 March 2022 diff hist +150 React Notes
- 07:42, 28 February 2022 diff hist +160 N Useful iOS Articles Created page with " * https://sarunw.com/posts/new-way-to-style-uibutton-in-ios15/ * https://mongodb.com/developer/how-to/realm-ios15-swiftui Category:IOS Category:Apple" current
- 11:52, 17 February 2022 diff hist +129 SwiftUI Menus current
- 07:00, 17 February 2022 diff hist −35 SwiftUI Menus
- 06:59, 17 February 2022 diff hist +31 SwiftUI Menus
- 06:58, 17 February 2022 diff hist +59 SwiftUI Menus
- 06:57, 17 February 2022 diff hist +3,553 SwiftUI Menus
- 06:05, 17 February 2022 diff hist +458 N SwiftUI Menus Created page with "=Links= * https://stackoverflow.com/questions/57241409/is-there-a-way-to-open-a-contextmenu-in-swiftui-with-a-normal-touch * https://stackoverflow.com/questions/69822148/how-..."
- 06:03, 17 February 2022 diff hist +20 XCode Notes current
- 06:01, 17 February 2022 diff hist +50 XCode Notes
- 06:01, 17 February 2022 diff hist −50 XCode Notes
- 05:59, 17 February 2022 diff hist +44 XCode Notes
- 05:59, 17 February 2022 diff hist −195 XCode Notes
- 05:57, 17 February 2022 diff hist +38 N Category:SwiftUI Created page with "SwiftUI notes, links and references..." current
- 05:57, 17 February 2022 diff hist +47 N SwiftUI Notes Created page with "=Links= Category:SwiftUI Category:IOS" current
- 05:56, 17 February 2022 diff hist +74 UNIX Philosophy current
- 05:55, 17 February 2022 diff hist +152 N UNIX Philosophy Created page with "Found this really interesting link yesterday - https://homepage.cs.uri.edu/~thenry/resources/unix_art/index.html Category:UNIX Category:History"
- 07:16, 7 February 2022 diff hist +148 N Wireless Notes Created page with " =Links= * https://globe.adsbexchange.com/ * https://opencpn.org/OpenCPN/info/downloads.html * https://store.uputronics.com/ Category:Security" current
- 07:14, 7 February 2022 diff hist +47 N Category:NLTK Created page with "Natural Lannguge links, references and notes..." current
- 07:13, 7 February 2022 diff hist +52 N Using NLTK Created page with " =Links= * https://www.nltk.org/ Category:NLTK" current
- 07:12, 7 February 2022 diff hist +1,085 N Python Web Server Created page with "=Simple= <pre> # Python 3 server example from http.server import BaseHTTPRequestHandler, HTTPServer import time hostName = "localhost" serverPort = 8080 class MyServer(Base..." current
- 22:19, 31 January 2022 diff hist +53 GitLab CI/CD current
- 22:18, 31 January 2022 diff hist +166 GitLab CI/CD
- 22:17, 31 January 2022 diff hist +63 GitLab CI/CD
- 22:16, 31 January 2022 diff hist +44 GitLab CI/CD
- 22:15, 31 January 2022 diff hist +43 GitLab CI/CD