696 karma · joined September 5, 2020
It's a compromise, but one that works well (for me). Basically IBM Plex but with m, M, w, and W being 50% wider than all the other characters.
Sounds odd, but is very legible and usually fine depending upon the context of its use.
[1] https://ia.net/topics/in-search-of-the-perfect-writing-font
Nothing. I'd be too busy celebrating.
(Even though I'd likely be out of work.)
It also only applies going forward, so the default opt-in means they've already taken what they want before we get a chance to say no. Though to be fair I never expected otherwise.
https://idpf.org/epub/30/spec/epub30-publications.html#sec-metadata-elem> Pick was originally implemented as the Generalized Information Retrieval Language System (GIRLS)
As an aside, though, I really enjoyed working on a Pick system a few decades back.
I've been using an 8GB M1 for a couple of years, including for development with C#, Go, Python, and Rails. I've had triple-figures of browser tabs open, Office 2019 Mac, Affinity Designer, and more all running at once. And never in all those years have I experienced sluggishness or slowdown either in-app or during switching.
I don't doubt your experience, this is simply to say that not all observed behaviours can be assumed to be generally applicable.
Maybe it's great in the US, I don't know, but it far from sucks in Europe. Amongst other things for returns policies you have a guaranteed 14 day return period for online orders even if there's no issues. Plus there's a minimum 2 years warranty, and a few years more if there's a reasonable expectation for the item in question to last longer. I'm not seeing the issue.
I offered a technically correct warning for a single case, and also specifically said I wasn't commenting on whether that auth method should be used or not.
I'm not required to offer a security tutorial, but yes it's true that storing anything, even hashes, is a security risk. So if it helps any other readers they can somewhat mitigate dictionary attacks by using salts and possibly peppers.
Without specifically commenting on the relative merits of all the auth options being mentioned in the thread, I do feel it worth pointing out that "if you accept id+password" you definitely should not be storing them. And neither should someone else on your behalf.
Using one-way cryptographic hashes of passwords is well documented and nobody should have the "hoard of stored treasure, other people’s passwords" even with id+password as the auth mechanism.
I've got a variant of this on my own blog [1]. Full site contents generated automatically from (and grouped by) the content's tags.
To avoid the appearance of self-promotion, I'll balance this with an up-front warning that the actual content makes the opportunity cost of visiting debatable unless you're really curious ...
- Accessibility -> Display & Text Size -> Colour Filters -> Greyscale switches it on. It also sets the default colour filter which is helpful because ...
- Accessibility -> Accessibility Shortcut -> Colour Filters means you can then triple-press the Home button (on an SE) to toggle that setting at any time
As various studies have suggested in the past, I do find I use it less in greyscale.
- Rectangle for window management (I appreciate you have Magnet and tastes differ)
- MarkEdit is an excellent (free) Markdown editor
- Highland 2 (not free) for more long-form Markdown writing as it can handle normal Markdown files and feels more polished than similar tools (especially the document map)
- VLC as I watch a lot of box sets and it's better than the Apple options
- SourceTree for source control (not as good as Git Extentions on Windows but more to my tastes than the VS Code plugins, Fork, or GitKraken for example)
- BitWarden as I'm cross-platform so don't want to rely on the Apple Keychain
- Authy for two-factor authentication - not the Google, Microsoft, or similar option as I don't want to be tied to a tech giant account that can get switched off
- PCloud (with encryption and a mapped drive) for the same cross-platform reason, plus again I don't want my backups tied to a tech giant account that can get switched off
- PGAdmin 4 for database management during development
- Keka for handling archives/zips as it usually handles files fine when Apple's archiver won't (eg some EPUBs when renamed to zip)
- Fastmail for being able to manage multiple custom domain emails, aliases, and even nameservers from a single (paid) user account (I'm aware it isn't a Mac app but I do often use Outlook from Office 2019 to access it despite the excellent web site)
As per the question I've ignored error conditions, but using the simple expedient in this case of positioning the 3x3's top left within the first 8x8 not the full 10x10.
Example output is underneath.
// Make and fill the grid.
var r = new Random();
var grid = new int[10, 10];
for (var y = 0; y < 10; y++)
for (var x = 0; x < 10; x++)
grid[x, y] = r.Next(10);
// Draw the grid for reference.
Console.WriteLine();
Console.WriteLine(" 0 1 2 3 4 5 6 7 8 9");
Console.WriteLine();
for (var y = 0; y < 10; y++)
{
Console.Write($"{y} ");
for (var x = 0; x < 10; x++)
Console.Write(grid[x, y] + " ");
Console.WriteLine();
}
Console.WriteLine();
// Random starting point and target.
var tlx = r.Next(8);
var tly = r.Next(8);
var target = r.Next(10);
// Extract the 3x3 sub-grid and "[ ]" any matches.
Console.WriteLine($"Looking for {target} in 3x3 grid at {tlx},{tly}");
Console.WriteLine();
for (var dy = 0; dy < 3; dy++)
{
for (var dx = 0; dx < 3; dx++)
{
var ax = tlx + dx;
var ay = tly + dy;
var v = grid[ax, ay];
if (v == target) Console.Write($"[{v}]");
else Console.Write($" {v} ");
}
Console.WriteLine();
}
Console.WriteLine();
Example output: 0 1 2 3 4 5 6 7 8 9
0 1 2 5 4 1 8 0 2 8 5
1 4 2 2 5 8 4 4 0 4 8
2 7 1 8 2 5 6 3 6 3 6
3 8 7 3 2 4 6 5 9 6 2
4 6 3 4 2 9 7 4 7 6 1
5 1 4 2 3 8 3 2 4 3 3
6 0 6 6 5 1 4 7 3 4 9
7 2 0 6 9 9 9 3 9 1 7
8 1 6 5 8 3 8 9 8 3 4
9 0 8 7 9 5 4 0 7 0 3
Looking for 5 in 3x3 grid at 2,6
6 [5] 1
6 9 9
[5] 8 3
As others have said elsewhere this could use a one-dimensional array but as we know upfront what the constraints are I've gone for the clarity of the two-dimensional. This is said to be the very first mistake everyone makes in graphics programming - but nothing in the question says it is for use in graphics, so being an interview question I went for clarity.Similarly there's the possible use of a ternary, less memory allocation, and tighter code, but again in this situation I'd go for readability.
There may also be edge cases not covered; this was a 10 minute hack (as it looked fun) and isn't exhaustively tested.
This is true.
A fair while back I left database and dev work for a few years. Tried my hand at kitchen design and sales, loading trucks, ISP tech support, chicken farming, builder's merchant sales counter, call centre night manager, farm labourer, collections agent, and more.
Loved it all, but my motivation was to experiment to see if the tech world was just my default or something I truly enjoyed. Turned out it was the latter so I returned to it.
Initially I was down about 20% on salary on my return to the industry, but a couple of years sorted that out and early employers seemed to appreciate the more rounded real-world experience.
Cathartic. Though I wouldn't do it again now I have a wife, mortgage, and dog to support.
> you have to deal with all the small slowdown from constant swapping
That just doesn't happen. As I responded to another post, though, I don't do Docker or LLMs on the M1 otherwise you'd probably be right.
> Unless you stick to a very small amounts of apps and very small amounts of tabs at the same time
It's really common to have approaching 50+ tabs open at once. And using Word is often accompanied by VS Code, Excel, Affinity Designer, DotNet, Python, and others due to the nature of what I'm doing. No slowdown.
> maybe you are emotionally attached
I am emotionally attached to the device. Though as a long-time Mac, Windows, and Linux user I'm neither blinkered nor tribal - the attachment is driven by the experience and not the other way around.
> maybe the various advantages of the Mac make you ignore the serious limitations that come with it
There are indeed limitations. 8GB is too small. The fact that for what I do it has no impact doesn't mean I don't see that.
> you can deal with the 8GB Apple Silicon devices you are very likely to be well served by a much cheaper device anyway (like half as cheap)
I already have better Windows laptops than that, and I know that going for a Windows laptop that's half as cheap as the entry level Air would be nothing like as nice because the more expensive ones already aren't (the Lenovo was dearer than the Air).
---
To conclude, you have to use the right tool for the job. If the nature of the task intrinsically needs lots of RAM then 8GB is not good enough. But when it is enough it runs rings around equivalent (and often 'better') Windows machines.
That said you're right about lots of RAM in that I wouldn't bother using the 8GB M1 Air for Docker or running LLMs (it can run SD for images though, but very slowly). Partly that's why I have the Lenovo. You need to pick the right machine for the job at hand.
There was. I bought (and used) it twice back in the day.
It was fast, simple, clean, modular (as you'd expect), and the IDE was the best IDE ever - in relation to its power/performance vs the machines it ran on at the time, obviously, not in absolute terms.
For the Pascal influence you only need to look at the career of Anders Hejlsberg of C# and TypeScript fame. Plus Free Pascal and Lazarus are (arguably) the best modern-day cross platform native desktop software development tools (like an open source cross-platform Delphi).
I got the base model M1 Air a couple of years back and whilst I don't do much gaming I do do C#, Python, Go, Rails, local Postgres, and more. I also have a (new last year) Lenovo 13th gen i7 with 16GB RAM running Windows 11 and the performance with the same load is night and day - the M1 walks all over it whilst easily lasting 10hrs+.
Note that I'm not a fanboy; I run both by choice. Also both iPhone and Android.
The Windows laptop often gets sluggish and hot. The M1 never slows down and stays cold. There's just no comparison (though the Air keyboard remains poor).
I don't much care about the technical details, and I know 8GB isn't a lot. I care about the experience and the underspecced Mac wins.
- The Extended Circle - an Anthology of Humane Thought by Jon Wynne Tyson
- Letters from the Desert by Carlo Carretto
I'm one amongst many using Net on other systems (Mac & Linux) as well as Windows. Larger enterprises which use VS on Windows often deploy the results onto Linux servers too (especially with microservices), which is hardly being hostile.
Though to address the issue of GUIs in Net-land, I've given up as nothing since WinForms (and possibly WPF) has lasted. They are 'supported' in many cases, but it always feels half-hearted or half-dead.
I usually have a lot of files but most of them are single to tens of megs at most, so it works for me and I've never had the sync issues and upload failures you describe despite using it for years.
But my experience with other providers means I don't question your own experience here at all, and maybe others thinking of trying them out should consider which of our use cases more closely matches theirs and proceed with appropriate caution.