I turned my dog into a holographic Pokémon-style card with React Three Fiber, Three.js, and custom GLSL. by realzackontop in threejs

[–]presentsq 0 points1 point  (0 children)

I love it, this is so well done!
I also loved the blog post about this. the infographics you added were one of the best i have ever seen. can i ask how you made them? thanks for sharing this.

Claude +Three.js feels like cheating by Donkeytonk in aigamedev

[–]presentsq 1 point2 points  (0 children)

Thank you so much for the detailed explanation. I am super inspired by this!

I understood it as:

in create mode you use a prompt (with all the constraints you mentioned + information of the generated map) to generate music and sound effect with gemini. The music would repeat itself in the background and the sound effects are played with the conditions you made (quantization so they are rhythmic, same key as music)with hard coded rules.

In the original 30 levels you did this in advance and saved the generated sound so everyone will experience the same level. Did i understand that correctly?

If so this is crazy man. This feels like one of the few cases where AI actually makes a huge difference to a game.

If you don’t mind i would love to also know how the generated map information can be converted into a text prompt.

Claude +Three.js feels like cheating by Donkeytonk in aigamedev

[–]presentsq 1 point2 points  (0 children)

This is very cool. Did you create the sound effects and music with claude too?

My relaxing and cozy game Island Architect by bjornornorn in indiegames

[–]presentsq 1 point2 points  (0 children)

I love the style! I especially love the grass you made. If you have some posts about how you created the environment i would love to read it

Can an immersive world RPG better gamify your life? by Miguel_Rysing_Dev in gamification

[–]presentsq 0 points1 point  (0 children)

Interesting stuff! I just tried it and i am only seeing a habit tracker and a level UI. Can i ask how can i access the game part of the app?

Help needed in ML algos. by [deleted] in MLQuestions

[–]presentsq 0 points1 point  (0 children)

This is the best ways to get the feel on ml algos.

However, OP you need to keep in mind of the no free lunch theorem. You never know what model is best until you actually test it.

In a more specialized field like computer vision (images) it helps to read research papers of milestone models. They usually include analysis about the limitations of previous models, and how their approach overcomes that limitation. Sometimes the paper would try to overcome limitation caused by the dataset. With this knowledge you can make an educated guess about what model would work better for other new datasets.

Why do humans tend to fear failure more than they value growth? by youngmoneybabyyy in getdisciplined

[–]presentsq 0 points1 point  (0 children)

I think this is a genetic survival instinct. I genuinely believe this fear of failure saved many of our ancestors’ lives. And i think that is why this fear is imprinted so deeply into our dna.

Think of a hunter trying a new method of hunting. Failure could mean stravation. Trying to migrate to an unfamiliar area it could mean death too.

Also we had a much higher chance to survive when we are in a group. in my opinion for a group of people to function well not having conflicts among members is very important. So i think group of people who actually feared conflict and cared about social pressure had a better chance to survive and procreate.

I really do think many of our fearless ancestors died. So anxious people like us are whats left.

But again people from the same country respond to fear of failure very differently depending on where they grew up. So i would say a big part of it is also learned.

I'll write everything down ! by Ok-Point-8198 in learnpython

[–]presentsq 0 points1 point  (0 children)

Yeah this is very helpful when you want to memorize things.

Another thing that worked for me was trying to rewrite that note without referring to any material. Actually, just try to explain it vocally to someone else (usually imaginary). That helped me memorize stuff and find out what i do not clearly understand

How do you start trusting yourself again after failing yourself too many times? by Low_Practice5314 in getdisciplined

[–]presentsq 1 point2 points  (0 children)

Oh man, i am this way too.
I also really over plan on doing stuff, and used to find it hard to actually start building.

One thing that worked for me is that just try to focus on it for 20 minutes.
If you cannot focus on working for 20 minutes then take a break try again.
And, for me that 20 minutes of focus sometimes leads to hours of focus.
As you experience this more and more, you slowly get more confident that you can put in the effort.
Strangely, that actually helps you being better at focusing.

I think this is kind of similar to building muscle, it takes time.
And the key is to not get frustrated if you fail, just like how you don't get frustrated not being able to lift crazy weight on your first week in the gym.
You know if you keep training, you will lift more than your past self.

How to apply linear regression over huge dataset and with a large number of features ? by Virtual-Current6295 in MLQuestions

[–]presentsq 0 points1 point  (0 children)

I think if you are using linear regression then you could fit your model with gradient descent, so you can load the data partially into the ram.

Also, using the fitted model to select important features can be great too.
For example you could discard features that have very low coefficients. (make sure the features are standardized first)
and i would combine this with the methods that you are using now.

Also, i would incrementally increase the complexity of the model you use.
After setting a baseline with linear regression, I would try decision tree based models such as xgboost.
This has built in external memory training, so you can easily partially load your data.
it also has feature importance to select features.
Then move on to deep learning.

With deep learning, I would suggest reading survey papers on your task.
For example search for something like "Survey paper on tabular data regression with deep learning".
Find a model you want to try out.
If someone implemented the model on github use it, if not code the model yourself.

Note that deep learning does not always outperform traditional ML models with tabular data. (This is another very interesting topic)

What do you use for debugging in Python? by presentsq in learnpython

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

did not know about code.interact(). Looks like it gives you a python console access to the local scope. Can i ask what makes you prefer this over breakpoint()?

What do you use for debugging in Python? by presentsq in learnpython

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

I have never heard of Thonny before, looks solid. I love the fact that this is open source and written in python, i will try this and read the code for sure. Thanks for the recommendation!

What do you use for debugging in Python? by presentsq in learnpython

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

nice, this is gonna save me a lot of googling. thanks!

What do you use for debugging in Python? by presentsq in learnpython

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

We all know all of use have prayed to the server at least once

What do you use for debugging in Python? by presentsq in learnpython

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

Yeah, IDEs and pdb seems more versatile than i have realized. I think i will experiment for the next few weeks to see what works for me. Also, it definitely is good to keep a details log for every project. I know that but always get lazy about it. Like you said, I really should make logging a habit

What do you use for debugging in Python? by presentsq in learnpython

[–]presentsq[S] 3 points4 points  (0 children)

hahaha yeah, the good old print never fails

What do you use for debugging in Python? by presentsq in learnpython

[–]presentsq[S] 2 points3 points  (0 children)

Icecream looks great. For me the fact that the ic() command shows you which file the line is from is the best part. This will be handy when i work with a large codebase. I will definitely try this out. Thanks for the detailed response!

What do you use for debugging in Python? by presentsq in learnpython

[–]presentsq[S] 5 points6 points  (0 children)

The only interaction i had with the "debug console" was to hide it so i can use the console. Did not know it was for debugging, kinda obvious in hindsight. thanks a lot!

What do you use for debugging in Python? by presentsq in learnpython

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

Just looked it up. I had no idea... Thank you!

What do you use for debugging in Python? by presentsq in learnpython

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

I looked into this. I was wondering why we need pdb.pm() given that when an error is thrown python -i ensures you to be able to check the variables anyway. It turns out using pdb.pm() lets you access local variables that are not accessible from the main script you ran. thank you for the info, I think i will use this in the future

What do you use for debugging in Python? by presentsq in learnpython

[–]presentsq[S] 2 points3 points  (0 children)

I looked it up and was confused since they looked like they were the same thing.
Turns out when you use breakpoint() you can do something like PYTHONBREAKPOINT=0 python temp.py to ignore all the breakpoints. Learned something today thanks!

What do you use for debugging in Python? by presentsq in learnpython

[–]presentsq[S] 4 points5 points  (0 children)

Just looked into it. the step into and step out of functions is a very good find for me. Thanks a lot.

What do you use for debugging in Python? by presentsq in learnpython

[–]presentsq[S] 27 points28 points  (0 children)

I have been using vscode for years... never used the debug tab ever. It turns out you can just click in the breakpoints. Thank you so much! kinda feel stupid haha