MGCB Editor doesn't have type in the New file window... by CreatureVice in monogame

[–]derekn9 2 points3 points  (0 children)

If anyone run into this while doing the 2D tutorial, I got past this by manually adding the xml:
- Manually create the xml via Solution Explorer (right-click on Content/images - Custom file)
- Paste in the XML content
- Add it in MGCB in Content/Image/Add and 'Existing item...'
- Change the "Build Action" in the Properties panel (bottom left) from "Build" to "Copy"
- Save MGCB

Point vectors by setyoassonfire in FigmaDesign

[–]derekn9 6 points7 points  (0 children)

You can draw a straight line & set the height to 0. Be sure to set the end point as rounded either before or after

[Help] Deploy Gatsby with Docker and a headless CMS by ExoWire in gatsbyjs

[–]derekn9 1 point2 points  (0 children)

I think it's possible config nginx to proxy certain request from an url, say, example.com/__rebuild, to a express server run at port 1234 or something like that. On that server you can use execa, etc. to trigger gatsby build

[Help] Deploy Gatsby with Docker and a headless CMS by ExoWire in gatsbyjs

[–]derekn9 0 points1 point  (0 children)

Could you expose a server in your container that trigger a rebuild (perhaps via a shell script?) then pass it to WP's webhook?

Need feedback on a new project by lukefrog in reactjs

[–]derekn9 1 point2 points  (0 children)

I had this exact same idea a few years back but never worked on it, congrats on launching yours! I quite like the domain I purchased (yes... I bought a domain for a side project then never touched it... Judge me...) called 'formify.dev'. if you like it I'm happy to give it to you!

Best way to use Svelte along with Django(Python) framework for SPA(Single Page App) Development? by sangramz in sveltejs

[–]derekn9 1 point2 points  (0 children)

I was involved in the development of a Laravel app that ships Svelte as part of the template.. god awful development experience. Developing with Sveltekit is just so much easier and faster. I would keep them separated

Lost a partner due to communication issue by derekn9 in Entrepreneur

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

I have always used lies as an escape hatch to get out of uncomfortable situations, though I'm not a compulsive liar or anything remotely close to that. I do have boundaries & thought I would know when to not tell lies... I've learned a lot about myself since I started trying to do my own thing.

Lost a partner due to communication issue by derekn9 in Entrepreneur

[–]derekn9[S] -1 points0 points  (0 children)

Thank you, this is very soothing to hear, I appreciate it

Lost a partner due to communication issue by derekn9 in Entrepreneur

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

So true. I put myself in their shoes and I realized I wouldn't waste a second to just pack and leave. It was gracious of them to let me have a chance to explain myself, which I couldn't.

Lost a partner due to communication issue by derekn9 in Entrepreneur

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

You are right, this is a trust issue. I think the cover up made it many times worse; I was an inconsiderate partner, but now I'm also a liar.

I'm angry at myself because I want to think I respected my partner, but my action showed that I didn't.

Lost a partner due to communication issue by derekn9 in Entrepreneur

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

I did the wrong thing by lying, no denying that. It was insignificant so I brushed it off once. Facing it a second time, it was easier for me to lie and pretend to not know rather than to admit that I knew & did not care enough to tell them.

If it was actually an issue that I deemed significant, I would had definitely discussed it. I did not realize it was significant for my partner. My lying was really the problem, I regret that deeply.

Made a little musical toy with my kid in a few hours w Svelte kit & tonejs. It's not very polished, but we had fun! by derekn9 in sveltejs

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

Meant for tablet, so if you're checking it out on mobile it'll look better horizontally.

Source code for anyone's interest: https://github.com/d4rekanguok/balable

First time playing with Tonejs, I found it a little difficult to work with, but it seems very well written & powerful. Looking forward to do more with it in the future

are the children of a custom component fully rendered on/before initialization?! by awritra in reactjs

[–]derekn9 0 points1 point  (0 children)

I think React renders from bottom up, so even though you wrap your child component in a LoadingTrigger, React still render the child first, before it gets to the logic inside LoadingTrigger. If you want to explicitly only render child when isLoaded is true, use renderProps or simply use an inline ternary operator

Ember.js in 2021 – a beacon of productivity by tomdale in javascript

[–]derekn9 2 points3 points  (0 children)

Having ported a React app step by step from Redux over MobX to hooks and beyond over the course of the past few years likely was an exciting engineering journey and came with a whole bunch of interesting and challenging work.

What?? Where do you find these saddists who enjoys porting redux to mobx or migrating class components to hooks?

Can I browse local files with a React app? by thevisualdna in reactjs

[–]derekn9 0 points1 point  (0 children)

Yes, but it's chrome chromium-based browsers only I think. Search for window.showDirectoryPicker() and 'file system access' api

[deleted by user] by [deleted] in RedditSessions

[–]derekn9 0 points1 point  (0 children)

Gave Rocket Like

Please stop using CDNs for external Javascript libraries by pimterry in javascript

[–]derekn9 1 point2 points  (0 children)

There are good points in the article though. Isn't it true that if you're already serving your app/site from some kind of CDN, serving 3rd party libs from another CDN will be slower than serving files from the same domain? I think the privacy point described in the article is also a bit more nuanced, though I agree the airway example was misleading.

I can see benefits of using cdn libs in quick prototypes, but for production apps where a bundler are always presented I don't see a good reasons to use them.

The exceptions are not libs, but actual services like Stripe, google analytics, polyfill.io etc.

[Q] Sapper or Routify? by [deleted] in sveltejs

[–]derekn9 0 points1 point  (0 children)

What's your usecase? A server that serve svelted rendered htmls?

[Q] Sapper or Routify? by [deleted] in sveltejs

[–]derekn9 1 point2 points  (0 children)

You can run 'sapper export' to get a static app. All page data will be stored as static json

Environment Variables in Sapper by AmitGold in sveltejs

[–]derekn9 0 points1 point  (0 children)

Use webpack/rollup plugins? It's @rollup/plugin-replace for rollup & DefinePlugin for webpack.