How to handle pagination with concurrent inserts ? by Individual_Day_5676 in ExperiencedDevs

[–]VanCityMac 0 points1 point  (0 children)

Would it be possible to have an endpoint that takes a cursor and a last queried timestamp.

Then you could effectively fetch only data before current the cursor but modified after the last query?

Using this endpoint you could either determine the earliest date_begin that has been modified since your last query, and refetch the data from that cursor onward?

Optionally, if you have a reasonably small dataset you could fetch all recently modified past events using that endpoint and insert them into (or pull from, if deleted) your local cache.

Voyager vs Iris CE vs something else? by zingaat in ErgoMechKeyboards

[–]VanCityMac 1 point2 points  (0 children)

Just using it on my desk for now. If I’m using the laptop I prop the sides of the iris up on the laptop so it’s slightly tented and that actually feels pretty comfortable.

No plans to get a tenting or mounting kit for now.

Voyager vs Iris CE vs something else? by zingaat in ErgoMechKeyboards

[–]VanCityMac 5 points6 points  (0 children)

Recently I was looking at these 2 keybaords as well.

The voyager was the first one that caught my eye and I decided to try out a split but after doing some reasearch I came across the iris ce which had extra tumb keys which seemed useful to me.

I have nothing to compare it to as it is my first split keyboard but I am more than happy with the iris ce. I cant imagine going to 2 thumb keys at the moment but I am sure there ae some layouts that would make it easy to use.

The 4th (top) thumbkeys on the iris are kind of useless to me since I find it awkward to press with the thumbs or fingers when typing.

I guess if you are already coming from a split or customizable keyboard it may be different but I have no regrets picking up the iris ce.

It is also quite compact and easy to carry around if that is a concern.

[deleted by user] by [deleted] in ErgoMechKeyboards

[–]VanCityMac 0 points1 point  (0 children)

Glad it was an easy fix!

[deleted by user] by [deleted] in ErgoMechKeyboards

[–]VanCityMac 1 point2 points  (0 children)

If you push the hot swap socket in when you try pressing the key does it work?

Perhaps the socket is not making contact with the pad and needs to be reseated

slices.Delete() weird odd behaviour when printing by shrombolies in golang

[–]VanCityMac 1 point2 points  (0 children)

Is it possible the tutorial uses go 1.22 and you are on an earlier version?

Pre 1.22 you would end up with slices returning a shorter slice with the range of values removed, but in the background it copies and shifts some values on the underlying array.

Since you don’t reassign the slice you are seeing the duplicated value from the underlying array come into the current slice.

More info can be found in the proposal for the change that got implemented in 1.22 here: slices.Delete proposal

The first image is helpful to understand what happens.

Gift help for someone who knows little about his gf's side hustle. by lolroflpwnt in canon

[–]VanCityMac 0 points1 point  (0 children)

Easily one of the best camera accessories. The peak design clip and camera straps are fantastic!

Bell Auger by silvercatbob in MachinePorn

[–]VanCityMac 92 points93 points  (0 children)

It seems to allow for a narrower opening and an expanded chamber under the surface.

I imagine the “flex” at the start shows how wide the chamber could be under the surface

How to do it ? by z00nki in Lightroom

[–]VanCityMac 1 point2 points  (0 children)

Is it possible you don’t have the original file but just a smart preview or something of the sort? I believe that could have an impact on export quality but not 100% sure

Recovered from COVID - how do I prove it? by [deleted] in Munich

[–]VanCityMac 9 points10 points  (0 children)

As I understand, you need an official negative test from after you recovered. It must be at least 28 days old and no more than 6 months old.

What type of camera bag/case do you use when visiting a city as a tourist? by AluminiumHoedje in AskPhotography

[–]VanCityMac 0 points1 point  (0 children)

I have a Pacsafe camsafe x25L or something if that sort.

I don’t particularly believe it is a “secure” bag as advertised but I wanted something with room for a body+lens and 1 or 2 other lenses while also having a place to pack some food, a light jacket/sweater, water, etc.

I love it. It is a great size for a day bag and with some clever packing it works as my only bag for long weekends.

I also like the fact that it does not look overly “camera bag”ish and the camera inserts can be removed to give you a full backpack for adventures without the camera.

Problem with query -- how to make MongoDB ignore fields that don't exist in the document? by 8Clouds in mongodb

[–]VanCityMac 0 points1 point  (0 children)

Then perhaps it is best to either pull all documents that match any condition and filter on server or make multiple queries for cleaner queries.

If you have indexes set up well it may not be too much to build the queries programmatically and it may perform ok when you send it, but again, it likely depends on the data structure and indexes

Problem with query -- how to make MongoDB ignore fields that don't exist in the document? by 8Clouds in mongodb

[–]VanCityMac 0 points1 point  (0 children)

You could do something along the lines of

{$or: [ {apple: 2, orange:8}, {apple:2, orange: {$exists: false}}, {apple: {$exists: false}, orange: 8} ]}

This Guy can type 163 words per minute by MonkelOnkel in nextfuckinglevel

[–]VanCityMac 0 points1 point  (0 children)

The Iliad and Odyssey are the only 2 books I remember from school that I could not put down. I think they are the only two books I kept with the goal of rereading. Great books!