The dongle itself is sending out data using 802.11a (5 GHz WiFi) with OFDM and 6 Mbit/s data rate:
Radiotap Header v0, Length 38
Header revision: 0
Header pad: 0
Header length: 38
Present flags
trait Trait: AsTrait { | |
fn get_answer(&self) -> i32; | |
} | |
struct S; | |
impl Trait for S { | |
fn get_answer(&self) -> i32 { 42 } | |
} |
See https://github.com/whitequark/rainbowth and https://github.com/whitequark/rainbowth/blob/master/Setup-Instructions.md for detailed installation instructions.
# This is from https://github.com/vector-of-bool/pitchfork/blob/develop/cmake/FindFilesystem.cmake | |
include(CMakePushCheckState) | |
include(CheckIncludeFileCXX) | |
include(CheckCXXSourceCompiles) | |
cmake_push_check_state(RESET) | |
set(CMAKE_CXX_STANDARD 17) | |
set(have_fs FALSE) |
For purposes of using fabric.io crashlytics or some other debugging needs, you might need to use version of Chat SDK with debug symbols.
Switching to it is easy:
Where you previously had a line implementation 'com.twilio:chat-android:4.0.2'
similar to here
you should just replace chat-android
with chat-android-with-symbols
, the full line would look like:
implementation 'com.twilio:chat-android-with-symbols:4.0.2'
#![feature(result_map_or_else)] | |
extern crate serde; // 1.0.84 | |
extern crate serde_derive; // 1.0.84 | |
extern crate serde_json; // 1.0.34 | |
use serde::Serialize; | |
#[derive(Debug, Serialize)] | |
#[serde(tag = "status", content = "result")] |
Quite a lot of different people have been on the same trail of thought. Gary Bernhardt's formulation of a "functional core, imperative shell" seems to be the most voiced.
"Imperative shell" that wraps and uses your "functional core".. The result of this is that the shell has fewer paths, but more dependencies. The core contains no dependencies, but encapsulates the different logic paths. So we’re encapsulating dependencies on one side, and business logic on the other side. Or put another way, the way to figure out the separation is by doing as much as you can without mutation, and then encapsulating the mutation separately. Functional core — Many fast unit tests. Imperative shell — Few integration tests
class utf8_text_view { | |
const char *text; | |
size_t bytes_count; | |
public: | |
friend class iterator; | |
class iterator { | |
const utf8_text_view &parent; | |
size_t offset; | |
public: |
// From https://pastebin.com/m8JMuTWz | |
extern crate pnet; | |
// use getopts::Options; | |
use std::env; | |
use std::net::{IpAddr, Ipv4Addr}; | |
use std::str::FromStr; | |
use pnet::transport::TransportChannelType::Layer4; | |
use pnet::transport::TransportProtocol::Ipv4; | |
use pnet::transport::{transport_channel, ipv4_packet_iter}; |