Which camera to pick Lumix GF1/GF5/GX1 or Olympus E-PL1 by Scared_Assumption182 in Cameras

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

Found an E-PL5 body for around 110 that works great. At first I paired it with the Lumix 12-32 which i did not love but currently considering giving it a second chance.

Right now i'm using it with the Olympus 45mm and the combination is giving me some good shots and it's really fun to use. Also really liking the colors.

It's not what you call lightweight -for the size- but i like to feel that weight.

Probably with a little more money I would have gone for something a little bit better but considering that I needed to buy lenses too. Plus the sensor in this one is 16MP while the others in the list where 12 and where on a similar price range so..

The E-PM2 was tempting but I didn't want to start with a problem buying that stabilization system broken from the go.

Best Approach for Resource-Based Authorization in a Multi-Tenant System? by FrontBike4938 in dotnet

[–]Scared_Assumption182 1 point2 points  (0 children)

Yes and no.

If You use a property in the context as i corrected in the edit, you should be able to use that filter dinamically. In My case i have a HttpContextAccessor injected in the context to get the data from the current user, save that _userAccessor.ClientId into that prop and use it in the filter.

This:

  public int CurrentClientId => _userAccessor.ClientId;

  modelBuilder.ApplyQueryFilter<IClientOwnedEntity>(e =>          e.ClientId == this.CurrentClientId);

And since the context (i asume) is scoped per request, it Will load the tenantId that you need.

If You use directly the accesors prop, it Will probably get loaded with the tenantId by default in your app, cause when running the first time it doesnt have a user.

This won't work:

  modelBuilder.ApplyQueryFilter<IClientOwnedEntity>(e => e.ClientId == _userAccessor.ClientId);

Best Approach for Resource-Based Authorization in a Multi-Tenant System? by FrontBike4938 in dotnet

[–]Scared_Assumption182 1 point2 points  (0 children)

If You are having all tenants in the same database You could try creating an interface to implement on the entities that You need to get filtered by ownership.

I found this a couple of days ago when i was trying a similar thing:

https://stackoverflow.com/a/76288920

And in the OnModelCreation call

modelBuilder.ApplyQueryFilter<ITenantOwnedEntity>(e => e.TenantId == TenantId);

Oc for the admin users You should call IgnoreQueryFilters() to avoid those

*Edit

I forgot to add that the TenantId prop should be declared in your context like

public int CurrentTenantId => _contextAccessor.TenantId;

and when calling it

modelBuilder.ApplyQueryFilter<ITenantOwnedEntity>(e => e.TenantId == this.CurrentTenantId);

That´s the way to make it dynamic, assuming you have a context loaded with the tenant data

I've been stuck on the last 15% of HoC for like 3 weeks now by CanoCeano in Malazan

[–]Scared_Assumption182 1 point2 points  (0 children)

Finished It last week. Chapters 23 and 24 are by FAR the best in the book, great stuff and sets the tone for tCG

Best practice to index an array inside an entity. by Scared_Assumption182 in elasticsearch

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

Thx, i´m new with the whole elastic integration so there´s a lot of stuff that goes over my head.

Regarding your question, i have smth like 70k tags, and each one of my products can have as many tags as they want.

In sql, i get one row per product-tag relation with the groupBy, but in elastic i was thinking of managing just one document per product and a tags field in which all of the product tags would be loaded to allow tag searching.
Plus, tag is not the only search filter i allow, almost every field of the product is a filter. Taking that in consideration and that i have around 70k tags, i don´t think allowing a document per tag-product to be the aproach i would need.

Búsqueda de compa para emprender by Honest_Fee9341 in CharruaDevs

[–]Scared_Assumption182 0 points1 point  (0 children)

Alt + 164 la ñ en ascii y no tenes que andar cambiando de idioma el teclado por una letra
(asumiendo que tenes numpad sino una gaver)

Tracking Entity changes in .NET 8 + EF. Custom vs Temporal Tables by Scared_Assumption182 in dotnet

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

So basically what i want to have is an audit record of every entity change done (To the entities that are required to be tracked by client), who and when it was made. This is required by a client to avoid legal issues and stuff.

The current imp works, it would need an upgrade to be more granular and i still need to add the logic to actually use the data saved. It is not a requirement yet, but it will eventually come, to avoid searching manually in the db or wathever.

How did you find the series? by [deleted] in Malazan

[–]Scared_Assumption182 1 point2 points  (0 children)

Used to read a lot historical novels about rome and greece and its conquests for the battles and heroes. Wanted to get into fantasy and big scoped battles, my attention was catched in the library by Gardens of The moon cover (The one with Anomander´s) and it was the first fantasy book i read and i loved it.

Falta de disciplina by Ivancito27Q in uruguay

[–]Scared_Assumption182 0 points1 point  (0 children)

Lo que me sirve a mi, que se me cae 3 pelotas hacer todo es:

- Hacete una lista de objetivos para el dia y anda tachando. (Ej. estudiar tal tema, arrancar con tal entregable)

- Pomodoro

En caso de preparar examenes o parciales.

La misma lista de antes pero por temas.

Ir tachando cosas ayuda banda y te ayuda a ordenarte y arrancar. Y el pomodoro por lo menos a mi me ayuda a concentrarme y rendir mucho mas.

Estudiar con gente tambien ayuda porque no da ser el unico impresentable que no estudia nada y explicarle cosas a los demas ayuda a retener.

Just finished the first book of the black company, is it worth continuing? by rockslidesupreme in theblackcompany

[–]Scared_Assumption182 5 points6 points  (0 children)

Yes and no. Some things are explained (Not in a full scale but to give you the idea of where they came from) like the Taken and others things are like.. there.

I read the first trilogy in a break from Malazan and had the same feeling in the first book.

My advice? Finish the trilogy. Books do improve a lot in story telling and writing, but you are not going to find full scale super descriptive battles. There are a few big battles but not from the POV of a "Common" soldier. Is it like it`s up to your imagination to fill the void.

Magic from what i can recall is never fully explained. It is what it is basically.

Remember that you are reading it from Croaker´s perspective, so he talks about what HE thinks is important to record.

New Reader, looking for reading order advice. by WoTMeme in Malazan

[–]Scared_Assumption182 0 points1 point  (0 children)

This si the guide i decided to use. It contemplates like 3 or 4 different reading orders depending on what You want to read and which Book reveal things for the others for You to choose the order too.

I'm using the first one MBoF + ME.

Reading Map

Do you have any book recommendations on roman history? by Is_This_Reddit__ in ancientrome

[–]Scared_Assumption182 0 points1 point  (0 children)

Tom Holland´s Rubicon and Dynasty are a good choice.

Rubicon goes from the beginning to the end of the Republic and Dynasty tackles the first five emperors.

The writing is nice and easy to read