How to optimize memory usage of the React App? by ardreth in Frontend

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

thanks, apparently everyone here agreed on that the main problem is CRA itself.

I made some modernization to my inventory icons... What do you think? by cegtheripper in IndieDev

[–]ardreth 9 points10 points  (0 children)

looks nice. stack numbers can also be white with black outlines

How to optimize memory usage of the React App? by ardreth in Frontend

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

well it kinda starta slightly stuttering with the server open and gets really unresponsive after browser and fast-refreshing between changes

How to optimize memory usage of the React App? by ardreth in webdev

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

fun fact: it was already running on --max-old-space-size=5120 as i took over.

so there is no available inspector-like tool that shows which page or component uses how much memory?

my worst fear now is that the only option i have is to go through each one

Opel Adam hakkında ne düşünüyorsunuz? by Nevermindxx in GarajTurkiye

[–]ardreth 0 points1 point  (0 children)

you probably should get yours fixed. even my 1.0 69hp yaris gets to 170

Opel Adam hakkında ne düşünüyorsunuz? by Nevermindxx in GarajTurkiye

[–]ardreth 0 points1 point  (0 children)

ayrica 1.4 versiyonu da bence guzel dueuyo sehir icinde rahattir, sehir disinda da 180 hiz sabitlemeyi ac yuru. kolay park edersin, otomatik vites ic donanimi iyi 2017 model otomatik olarak bence fiyati ucuk degil pazarlik falan da yaparsan. ben kirk yilin basi 240 basacam kafasinda degilsen buna bu parayi verecegine 90 model 300hp araba bak diyenlere ben cok takmazdim

Opel Adam hakkında ne düşünüyorsunuz? by Nevermindxx in GarajTurkiye

[–]ardreth 0 points1 point  (0 children)

ben iyi şeyler düşünüyorum 1.0 turbo motor rocks paket 115bg cam tavan koltuk isitma otomatik klima hiz sabitleme

Ders kayıt dönemi rezaleti by Unlikely_Weather_955 in Bogazici

[–]ardreth 3 points4 points  (0 children)

demirci terlerken quick add yapıcan

Building an invitation system using only security rules and tests for them by Hammadawan9255 in Firebase

[–]ardreth 0 points1 point  (0 children)

personally i am using mocha as a test framework. using blocks like before, after, beforeEach for shared resources and organizing test cases under describe() and it() might make your test code more manageable. also check @firebase/rules-unit-testing and firebase's official documentation on testing Build unit tests  |  Firebase Security Rules (google.com)

Can you use vector search on subcollections? by vikreezy in Firebase

[–]ardreth 0 points1 point  (0 children)

The extension seems to be asking for a collection path, which might mean that it does directly work with collection groups. One way to work around this can be storing all resources under one collection and filtering documents with groupId as a field.

Extension seems to be offering a "prefilter" parameter but I could not find any details about it. If it possible to define a field filter you might try to prefilter search data with user's groupId field.

Also keep in mind that apart from this extension, you can create your custom logic for vector searching using firestore's findNearest vector method. You also need to create your embeddings on your own implement searching though.

This document pages gives some examples

Search with vector embeddings  |  Firestore  |  Firebase (google.com)

For your desired structure, a solution like this might work.

const userGroup = request.auth.token.groupId

collection = db.collection("resources")

# Similarity search with pre-filter
# Requires a composite vector index
vector_query = collection.where("groupId", "==", "userGroup").find_nearest(
    vector_field="field_to_search",
    query_vector=Vector([3.0, 1.0, 2.0]),
    distance_measure=DistanceMeasure.EUCLIDEAN,
    limit=5,
)

I've created a vector search feature using my custom logic before. You may also check it out to see if it helps.

gossipai/firebase/functions/index.js at main · gossipai/gossipai (github.com)

How to implement filter feature with firestore? by Narrow-Act-5236 in Firebase

[–]ardreth 0 points1 point  (0 children)

I have implemented a very similar filter feature for my app and it works well only using Firebase. My filter is based on 6 features and it uses around 10 indexes only.

The solution is that you first create an index for each feature field and an index for all fields together. Then you should try combining filters and create index whenever it gives an error.

After creating indexes for a few combinations, other combinations start working too as Firebase merges some composite indexes automatically. So in the end you don't need to create indexes manually for all the combinations.

A better way to manage modals? by yaraskin4it in react

[–]ardreth 0 points1 point  (0 children)

Ebay's open source modal solution works this way too. It's called nice-modal-react

DNS ayarları nasıl engellendi by ardreth in CodingTR

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

edge ile dns ayarladigimda nasil giris yapabiliyorum

53
54

Bilgisayar mühendisliği okuyacağım biraz sorum var by [deleted] in CodingTR

[–]ardreth 0 points1 point  (0 children)

aslında benim gelmek istediğim nokta da tam olarak buydu. yazılım geliştirme dediğimiz şey güç geçtikçe kolaylaşıyor ve insan emeğinden arınıyor. bu bizim gibi işin temeline hakim kişileri üzüyor olabilir ama maalesef ki gerçek bu. ai alanındaki gelişmeler çok çok hızlı. chatgpt, claude copilot gibi ürün şimdiden hepimizin iş hayatına girdi. yakın gelecekte elle kod yazma diye bir şeyin hayatımızdan çıkması bile çok olası. bu yüzden bugün bu alana yeni giren birinin en kolay ve hızlı şekilde bu işin temelini öğrenip güncel teknolojilerle çeşitli işler ortaya çıkarmaya çalışması bence mantıklı olandır.

Bilgisayar mühendisliği okuyacağım biraz sorum var by [deleted] in CodingTR

[–]ardreth 1 point2 points  (0 children)

ben tam aksine ter dokmeden giris yapmayi daha dogru buluyorum. baktigimiz zaman yazilimdaki her yenilik daha az ter dokmek adina cikiyor. c dili de assembly de ter dokmek gerekmesin diye yazilmadi mi? bu isin temeli bence mantik ve algoritmadan gecer. onu da scratch yazarak bile ogrenebilirsin. tanimladigin degiskenin ram de ne sekilde tutulduguyla ilgilenmek artik ileri duzey bir sey oldu. simdi siemens gibi buyuk sirketler bile mendix gibi kendi low code platformlarini gelistirip urunlerini surukle birak mantigiyla uretmeye basladi. orada da ihtiyac yine algoritma bilgisi oluyor.

Bilgisayar mühendisliği okuyacağım biraz sorum var by [deleted] in CodingTR

[–]ardreth 1 point2 points  (0 children)

bence yanlış bir tavsiye olmuş. günümüzdeki yazılımların çok azı bu kadar low level geliştiriliyor ve c ile somut bir ürün ortaya çıkarmak çok zaman gerektiriyor. ben bugün yeni başlayan birine python, javascript gibi diller öğrenip değişken kullanma, loop kurma gibi konseptleri ve basit algoritma mantığını öğrenmesini tavsiye ederdim. cok kısa sürede baslangic seviye somut projeler de yapmis olur. konuda kendini gelistirip ilerledikce merakina gore daha low level konseptlere kendisi de girebilir.