####Assumptions
- QGIS installed (if not: http://qgis.com/)
We will use the Electoral District and Polling Division shapefiles found on the Elections Ontario site:
tell application "System Events" | |
tell process "Firefox Nightly" | |
set tmp to value of attribute "AXEnhancedUserInterface" | |
set value of attribute "AXEnhancedUserInterface" to true | |
set returnUrl to value of attribute "AXValue" of text field 1 of combo box 1 of toolbar "Navigation" of UI element 1 of front window | |
set value of attribute "AXEnhancedUserInterface" to tmp | |
return returnUrl | |
end tell | |
end tell |
####Assumptions
We will use the Electoral District and Polling Division shapefiles found on the Elections Ontario site:
default: | |
cc ccsmtp.c -o ccsmtpd -lpthread |
Not all random values are created equal - for security-related code, you need a specific kind of random value.
A summary of this article, if you don't want to read the entire thing:
Math.random()
. There are extremely few cases where Math.random()
is the right answer. Don't use it, unless you've read this entire article, and determined that it's necessary for your case.crypto.getRandomBytes
directly. While it's a CSPRNG, it's easy to bias the result when 'transforming' it, such that the output becomes more predictable.uuid
, specifically the uuid.v4()
method. Avoid node-uuid
- it's not the same package, and doesn't produce reliably secure random values.random-number-csprng
.You should seriously consider reading the entire article, though - it's
// | |
// AsyncSVGImage.swift | |
// AsyncSVGImage | |
// | |
// Created by Erez Hod on 1/21/24. | |
// | |
import Darwin | |
import Foundation | |
import UIKit |
import 'package:bloc/bloc.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
void main() => runApp(BlocProvider<TestBloc>( | |
create: (c) => TestBloc(), | |
child: MyApp(), | |
)); | |
class MyApp extends StatelessWidget { |
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
# curl -sLO https://gist.github.com/caruccio/b9eb86e307ecc293d5b832af8c577605/raw/kubectl-setup.sh && bash -i kubectl-setup.sh | |
mkdir -p ~/bin ~/opt | |
## PATH | |
if ! [[ "$PATH" =~ (^|.*:)(~/bin/?|$HOME/bin/?)(:.*|$) ]]; then | |
echo 'PATH="~/bin:$PATH"' >> ~/.bashrc | |
export PATH="~/bin:$PATH" | |
fi |
***Pi-Mox8 setup on raspberry pi 4b & cm4 | |
***Raspberry PI OS setup | |
***Install raspbian x64 lite on raspberry pi | |
pull the latest copy of Raspberry Pi Imager, from here https://www.raspberrypi.com/software/ and Raspberry PI OS x64 lite based on debian 12 bookworm from here: https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit | |
open imager, click choose os, scroll to the bottom and select custom. open the image "2024-11-19-raspios-bookworm-arm64-lite.img.xz" |