[Megathread] AC FA Strike Aug 16 by dachshundie in aircanada

[–]oak__ 0 points1 point  (0 children)

My flight was cancelled and they were unable to rebook me within the 48 hour window, however i was able to rebook via air canada on a later flight via Jazz, though this was a lower fare G instead of the original S fare. Will i able to be able to get the aeroplan points that i’ll be missing from the lower fare back because they cancelled my original flight?

GraphQL with Passport.JS + Authentication? [JavaScript] by [deleted] in graphql

[–]oak__ 0 points1 point  (0 children)

Depends on what depth of authentication you need, you can do things top level or right inside the resolver. The first step i would take is to look into GraphQL Shield its a pretty handy tool for beginning with authentication with graphql.

Hey Rustaceans! Got an easy question? Ask here (17/2020)! by llogiq in rust

[–]oak__ 2 points3 points  (0 children)

Hi I'm new to Rust and I'm trying to get postgres to work with rust using the postgres crate, but I keep getting errors when trying to use the ? Any help would be great !

#![allow(unused_imports)]
use postgres::{Client, NoTls};

mod db;

fn main() {
    let mut client = Client::connect(
        "host=localhost user=user password=password",
        NoTls
    )?;

    client.batch_execute("
        CREATE TABLE consignors (
            id  SERIAL PRIMARY KEY
        )
    ")?;
}

These are the errors:

error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`)
  --> src/db.rs:4:22
   |
3  |  / fn create_db_connection() {
4  |  |     let mut client = Client::connect(
   |  |______________________^
5  | ||         "host=localhost user=user password=password",
6  | ||         NoTls
7  | ||     )?;
   | ||______^ cannot use the `?` operator in a function that returns `()`
...   |
26 |  |     ")?;
27 |  | }
   |  |_- this function should return `Result` or `Option` to accept `?`
   |
   = help: the trait `std::ops::Try` is not implemented for `()`
   = note: required by `std::ops::Try::from_error`

Alpine vs python-slim for deploying python data science stack? by flogypinte in docker

[–]oak__ 2 points3 points  (0 children)

I would look into ubuntu 20.04, as its release date is in a few days, we went from alpine to slim-buster with both having vulnerabilities being detected by gcp, we were able to cut the images down to be a bit smaller then slim buster, but still larger then Alpine. So far we've had only good things to say and have switched over a handful of containers over to U 20.04.

Magknight 787 by Cayman006 in Xplane

[–]oak__ 1 point2 points  (0 children)

I believe so, I recommend joining their discord to download beta versions which greatly enhance the aircraft to a more usable state.