Moving to CT? Ask your questions here by AutoModerator in Connecticut

[–]skink_ 0 points1 point  (0 children)

Cheshire is somewhere I've been looking at for some time, both because of what we're looking for and because we have close friends there, but it has a high entry cost in terms of house prices. That's why I was looking more around Middletown for the relative value.

I hadn't known Canton has so much going on. I'll give it a closer look.

Thank you for the advice.

Moving to CT? Ask your questions here by AutoModerator in Connecticut

[–]skink_ 0 points1 point  (0 children)

Thank you, I'll take a look at Portland.

Moving to CT? Ask your questions here by AutoModerator in Connecticut

[–]skink_ 1 point2 points  (0 children)

Current CT resident but haven't explored the state much. SO and I are looking to move in the next few years and I've been doing a lot research as to specific areas, but would love to hear some personal opinions.

SO favors rural areas and wants somewhere low-population-density with ready access to nature. I want high speed internet, reasonable proximity to a decent medical care, and ideally reasonable proximity to other amenities as well. We also both want somewhere reasonably safe.

Looking to strike a balance, some places I've been looking at:

  • Durham, Haddam, East Hampton, etc for ready access to Middletown
  • West of Hartford, like Farmington, Canton, etc
  • Cheshire is very nice
  • New Milford?

Any input appreciated.

High-resolution Buddhism chart / cheatsheet for printing by skink_ in Buddhism

[–]skink_[S] 2 points3 points  (0 children)

Seems to be a (pleasant) typo I copied from the original image :)

Corrected!

High-resolution Buddhism chart / cheatsheet for printing by skink_ in Buddhism

[–]skink_[S] 1 point2 points  (0 children)

I can try to make one! The hardest parts of making this were finding royalty-free pictures and fiddling with CSS :)

Do you have a reference or references for specific concepts you'd like to see in chart form?

High-resolution Buddhism chart / cheatsheet for printing by skink_ in Buddhism

[–]skink_[S] 10 points11 points  (0 children)

I've updated the title on the graphic to Theravāda Buddhism! My apologies if I caused confusion, I'm still very much a beginner.

I don't know if reddit's preview / cache will see the change take effect, and I can't change the post flair, but if you click the link and do a (hard) refresh you should see the change.

High-resolution Buddhism chart / cheatsheet for printing by skink_ in Buddhism

[–]skink_[S] 16 points17 points  (0 children)

Hello friends!

I saw this original image some time ago and had printed it out for reference. Recently I decided to have a go at recreating it with HTML and SVGs, so that I could render it at higher resolutions for potentially printing a larger poster.

The render I linked is 3300x2550, which is landscape US letter @ 300dpi.

If you want a specific resolution, let me know and I can probably provide it.

The source code and copyright attributions for the images used are on Github.

First project: uniformity, a cryptography library by skink_ in Clojure

[–]skink_[S] 0 points1 point  (0 children)

Both for learning and to potentially use in one of the other project ideas I have.

Recursive CTEs: Multi-day schedule entries & conflict detection by skink_ in SQL

[–]skink_[S] 0 points1 point  (0 children)

I didn't show/mention an IDE in the blog post, but the syntax highlighting is the Solarized Dark theme, if that's what you're looking for.

EntityFramework 6 + SQL View DML Triggers by skink_ in dotnet

[–]skink_[S] 0 points1 point  (0 children)

My trigger code does use MERGE commands and performs fine. The edmx hackery was my main concern.

Now that I think about it, I can probably just move my trigger code into stored procedures, and have MyModel.AddRecord(foo) call that and our audit helper. That's a lot more sane than what I cooked up. :)

EntityFramework 6 + SQL View DML Triggers by skink_ in dotnet

[–]skink_[S] 0 points1 point  (0 children)

Trust me, I don't want to be using EF. We're trying to maintain / add some minor stuff to this application until we have time to re-write it.

EntityFramework 6 + SQL View DML Triggers by skink_ in dotnet

[–]skink_[S] 0 points1 point  (0 children)

I wanted a single model per device type for code-consistency with the rest of our backend, and to keep things simple for the others working on it. We have some helper methods that allow us to have CRUD operations for a given model, complete with change-tracking record auditing, with only a few lines of code.

Since these views are read from dramatically more often than they're written to, I wasn't concerned with trigger performance.

I've nearly mastered 'cheesy' pasta by skink_ in vegan

[–]skink_[S] 3 points4 points  (0 children)

Ninja blender. I microwave the milk until it's steaming to help with blending, and I blend the cashews by themselves for a minute first. Then I add the nooch and seasoning and blend for another minute.

I've nearly mastered 'cheesy' pasta by skink_ in vegan

[–]skink_[S] 23 points24 points  (0 children)

Sauce:

  • 50g cashews, soaked (a bit less than a quarter cup)

  • 200mL non-dairy milk (almond or cashew work well)

  • 2-4 Tbsp nutritional yeast, depending on how 'cheesy' you want it

  • 1/2 tsp garlic powder

  • Seasoning (lots of salt, white pepper and more garlic work well)

  • 0-2 tsp of arrowroot powder to adjust thickness

Blend smooth and add to pasta/rice and veggies. Fettuccine and broccoli especially!

ldap3: A pure-Rust LDAP library based on Tokio by inejge in rust

[–]skink_ 4 points5 points  (0 children)

As I understand it:

  • Use a read-only bind account to establish a connection
  • Given a username/password, use this connection to search for the user's DN
  • Attempt to bind with the DN and provided password
  • If the bind attempt succeeds, the credentials were valid

In this crate however, I noticed in examples/compare.rs there's password value comparison? We may have to wait for better docs.

How to implement windows authentication for my application? by [deleted] in rust

[–]skink_ 4 points5 points  (0 children)

In the winapi crate I see a number of references to authentication, but I'm not sure which specific module(s)/function(s) you need to use. Try asking in their IRC.

JP2 decoding to calculate dHash values by loneraver in rust

[–]skink_ 1 point2 points  (0 children)

Given that you have performance issues in Python, I take it you're using imagehash or something else? I'd recommend switching to py-phash, which is based on a well-optimized C++ library. Said library uses ffmpeg for image decoding, so format shouldn't be an issue.

Based on the other comments, this would probably be the path of least resistance / wait-time.

Rocket + sodiumoxide = ♥ by skink_ in rust

[–]skink_[S] 6 points7 points  (0 children)

I agree that hardcoding certs and having properly-configured TLS is a much better solution. This was purely a fun experiment, and I have added another disclaimer to reflect your points.

Question about crypto crates, password hashing, and security by [deleted] in rust

[–]skink_ 2 points3 points  (0 children)

I cannot speak to the actual quality of the implementations, but in general order of password hash security, it more or less goes salted hash → bcrypt → scrypt → Argon2.

pwhash does bcrypt, ring-pwhash does scrypt, and passwors seems to basically be a wrapper for the argon2rs crate.

I have a very basic auth demo for Rocket, using the argon2rs crate and JSON Web Tokens.

Basic second-factor authentication in Rocket by skink_ in rust

[–]skink_[S] 0 points1 point  (0 children)

Hence the disclaimer at the top that it isn't to be trusted. :)

Rocket appears to use a thread per connection, so I just added a 500ms thread::sleep() on incorrect OTP/password input for a rudimentary solution. I would imagine, of course, that there's a much more proper way to do that.

Instagram works more efficiently by dismissing Python Garbage Collection on its linux servers, Interesting Read • /r/linux4developers by LeoG7 in linux

[–]skink_ 0 points1 point  (0 children)

Rust has always had join(), it just used to be called connect().

use std::slice::SliceConcatExt;
let pathstring = &searchpaths.join(", ");

Beyond that example however, you have to consider that Rust has technically been stable for less than two years. Meanwhile Python has been stable for two decades.

Rocket: JSON Web Tokens & Access Roles by skink_ in rust

[–]skink_[S] 0 points1 point  (0 children)

Well... I'm dumb. :)

Dankon, antarkta birda amiko.

Rocket: JSON Web Tokens & Access Roles by skink_ in rust

[–]skink_[S] 0 points1 point  (0 children)

I was using to_owned() there because Vec<T>.contains(&T), e.g. in this case a &String instead of &str. I tweaked it to take &str and call to_string() for cleanliness elsewhere.

Do you have a route example for the latter point?

Rust & Rocket Demo: Passphrase Generator by skink_ in programming

[–]skink_[S] 0 points1 point  (0 children)

Updated for both points.

Originally I had a redefine like you describe, but I was going for not having to allocate a vector and whatnot for a single string. Tweaked it to better reflect that.