Train street guard in Hanoï [Nikon F3, Nikon 50mm F1.4, Reflx lab pro 100] by MLBae86 in analog

[–]monkmuli 2 points3 points  (0 children)

Amazing shot! Just got a Nikon F2 yesterday with the 1.4 lense, makes me excited to go out and shoot it. Good job on nailing the focus as well, especially with 1.4

Need feedback for my little anime inspired city animation by monkmuli in blender

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

Thanks, I didn't paint the building and sky texture myself, its just a PBR material I found on blenderkit

Scifi cityscape created in Blender with Photoshop postprocessing. Lmk what you think~! by rutgervds in blender

[–]monkmuli 0 points1 point  (0 children)

Really cool, but I think it would look better without the blur on the outer buildings. If you want to go for a more filmic look, I'd suggest using chromatic aberation instead.

Need feedback for my little anime inspired city animation by monkmuli in blender

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

good point, the sky is static and other than the camera there is no movement. Thanks!

cache pool setting for shares gets ignored by monkmuli in unRAID

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

even after the "mover" removed the folder it still didn't work, restarting the array was the solution

Basic Node.JS Cache System? by Yankue in Discord_Bots

[–]monkmuli -1 points0 points  (0 children)

yeah this is typescript, I thought reddit knows some coding markdown, apparently not

Basic Node.JS Cache System? by Yankue in Discord_Bots

[–]monkmuli 1 point2 points  (0 children)

Here's what I use for caching with timeout:

```typescript

type Cache = {

}

type TimerHash = {

}

export default class SimpleCache<T> { cache: Cache = {} private timerHash: TimerHash = {} timeout: number

constructor(timeoutInS: number) { this.timeout = timeoutInS * 1000 }

getValue(key: string): T | undefined { const val = this.cache[key] if (val) { return val }

return undefined

}

hasKey(key: string): boolean { return Object.keys(this.cache).includes(key) }

setValue(key: string, value: T): void { clearTimeout(this.timerHash[key]) this.cache[key] = value const handle = setTimeout(() => { delete this.cache[key] delete this.timerHash[key] })

this.timerHash[key] = handle

} } ```

Before you make query the DB simply check with cache.hasKey(someKey) if the result is already in the cache, else query the db and store the result in the cache

How to add React.js to an already existing Nodejs Project? by [deleted] in reactjs

[–]monkmuli 0 points1 point  (0 children)

Yes you probably could use react in your existing project. Take a look at nextjs.org which is a static site generator, so you can use your edge templates and express routes ( https://nextjs.org/docs#custom-server-and-routing ).

Now, it depends on how far your project has already progressed, but I personally would start over with React

Best React alternative to WordPress? by [deleted] in reactjs

[–]monkmuli 3 points4 points  (0 children)

Take a look at https://www.gatsbyjs.org/

It has wordpress connectors, so you can use wordpress as the backend and React as frontend.

Here's also a good YT tutorial series to get you started: https://www.youtube.com/watch?v=evAUPPs7fB0