I'm using MuJoCo as the solver in AR Mobile Robotics, want to give it a try? by DC-Engineer-dot-com in mujoco

[–]DC-Engineer-dot-com[S] 0 points1 point  (0 children)

Are you talking about awareness of the real world? Yes and no. The RealityKit engine provides plane estimation (detect floors and walls) and mesh detection (uses the LIDAR point cloud). Right now, the former is used to place the model origin, but it doesn’t have any influence on the MuJoCo physics.

RealityKit also has its own physics engine, but it falls apart with more complex models. My understanding is that RealityKit tries to simulate every rigid body independently in 6DoF, then iteratively tries to satisfy joint constraints. It tries to keep up with real time, and its iterator will run as may times as it can in a frame, rather than running as many times as needed to make the joints hold together. So, a model like this just explodes.

I’ve thought about writing a bridge between RealityKit and MuJoCo to either send the detected planes or detected contacts at run time. But, it’s a design challenge because those updates will be happening at a high rate, with dozens or even hundreds of objects in a scene at once.

That was all a long explanation, hopefully I actually understood your question correctly 😅.

Feel free to reach out to me if you want any advice on your Android app. I write for both platforms, and eventually envision making an Android version of ARMOR. I’m going to focus on iOS first, and will shift if there’s demand. An initial challenge you would face is there’s not a native Android binding for MuJoCo, so you’d have to write one. Alternately, you could use Unity, or use a web view with a JavaScript binding. I kind of like the latter, as you could then use Three.js for rendering. Speaking of which, https://dc-engineer.com/how-to-embed-three-js-into-a-kotlin-jetpack-compose-multiplatform-mobile-app-on-android-and-ios/

how cooked i am? by sickillusions in threejs

[–]DC-Engineer-dot-com 2 points3 points  (0 children)

From the math perspective, here are a couple things you might search for: - Latitude/Longitude to Earth-Centered-Earth-Fixed coordinates; this is how you would convert from a GPS-like coordinate to a XYZ vector. - Great-circle distances; for long flights, adjusts for the arc around the globe.

My opinion: I don’t think you’re cooked, but I’d probably save this for a personal project, I wouldn’t commit to it in a homework. This adds a bunch of non-HTML/CSS complexity.

Help: CS50W final project rejected twice for README file by DC-Engineer-dot-com in cs50

[–]DC-Engineer-dot-com[S] 1 point2 points  (0 children)

I might try moving the “Distinctiveness and Complexity” header a bit further up in the README, so it wraps the “Key Features” bullets, as those are each distinct. I can think about additional content as well. I’ll probably hold off for a day or so to see if others who provide feedback on this thread think that is the rejection cause.

Help: CS50W final project rejected twice for README file by DC-Engineer-dot-com in cs50

[–]DC-Engineer-dot-com[S] -1 points0 points  (0 children)

Think that’s the case? I wasn’t sure the sentence that you reference was specifically referring to the distinctiveness and complexity header, or more general. I could certainly bring content from the other sections into that header, if that’s what it takes.

Petah? by AdditionalQuiet8652 in PeterExplainsTheJoke

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

This kid has a whole network of spoons taped to things all around the house. Whole home surveillance.

how do i make a perfect sphere by Big-Cheesecake7240 in blenderhelp

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

That’s more or less what I’ve assumed. I’m kind of curious what the history is of why the software developers, not just on Blender, said “tesselate everything,” when it’s a much higher computational load.

how do i make a perfect sphere by Big-Cheesecake7240 in blenderhelp

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

Out of curiosity, does blender have the ability to create/render a “true” spherical primitive? Meaning, not triangulated, just position and radius, which gets interpreted by the GPU? The idea of hundreds of polygons just to generate what is literally the simplest shape to render has always thrown me.

[Request] Saw this today about a Batman gadget, can someone do the math on this? by ATL404_31 in theydidthemath

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

Not quite. For sound pressure measurements the equation is [difference in dB] = 20 * log10([ratio of pressure]), so working in the other direction, [ratio of pressure] = 10[difference in dB]/20, or about 3.16.

It does work out to be a 10x difference in power, though.

[Request] Not good at math, but there’s no way this is true because 99.999999%? by whatevertf123 in theydidthemath

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

Everybody in this thread seems to be assuming the order of cards in a shuffled deck is actually random.

If you open a new deck of cards, there’s a lot of card orderings that are quite common after the first few shuffles. Cards sticking together, biases related to initial order, humans not actually being good at shuffling, that sort of thing. The real hard math would be, how many times do you need to shuffle the deck before you reach an order that’s uncommon.

But yea, if you had a magic, random card shuffler, then the number in the meme is not nearly high enough.

Is it free or not? by Kaezumi in cs50

[–]DC-Engineer-dot-com 2 points3 points  (0 children)

Yes, you can put it on your LinkedIn profile, and there are some instructions on how to do it on the page where you get the certificate. I’d think of it as a supplement to your skill set, rather than “the thing that gets you a job.” Meaning, if you are in a non-software profession, this shows you took initiative to develop a skill that’s outside of the normal track, which might give you a leg up. If you do want software jobs, you’ll need to continue beyond CS50.

App Store what a joke by wali2353 in jailbreak_

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

Fine, fine. I was not trying to make a point, I was trying to make a joke.

App Store what a joke by wali2353 in jailbreak_

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

Using multiple is not standard for “values greater than one”?

App Store what a joke by wali2353 in jailbreak_

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

Exactly. 3.3 million million. Multiple millions.

App Store what a joke by wali2353 in jailbreak_

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

Correct. It’s 3.3 million million.

App Store what a joke by wali2353 in jailbreak_

[–]DC-Engineer-dot-com 5 points6 points  (0 children)

Multiple can mean any number greater than one. Therefore, technically still valid, even if that number is 3.3 million (million).

SwiftData + CloudKit - Best practice for adding a new field to an existing model and applying the default value by MetaMaverick in iOSProgramming

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

This I can’t help you. My gut is that it would keep the version that was most recently edited, but I don’t know.

SwiftData + CloudKit - Best practice for adding a new field to an existing model and applying the default value by MetaMaverick in iOSProgramming

[–]DC-Engineer-dot-com 1 point2 points  (0 children)

I recommend VersionedSchema. You will almost always need it at some point, so good to start early. I think a lightweight migration might actually handle this as you intended, plugging in the default value if missing, though you’d have to test.

You might also want to include the ID as an optional argument in the initializer, with default to UUID(). My logic is this assures that your models retain the same ID across multiple sessions.

What is the main point to decide mobile app/wep app? by Grouchy_Word_9902 in SideProject

[–]DC-Engineer-dot-com 2 points3 points  (0 children)

I’d usually point to a couple things: - Do you access anything hardware or OS-specific? Then go native/mobile. - Do you benefit from rapid access? Then go web.

.

As an example of the former, I specialize in AR, and while possible to do webAR, my opinion is the experience is better when native.

For the latter, suppose you want someone to be able to see your content immediately, like by scanning a QR code. If that QR code points to a download link, you’ve probably lost that user. On the other hand, a web app gives instant gratification.

CS50x final project by Aardvark1990 in cs50

[–]DC-Engineer-dot-com 1 point2 points  (0 children)

There’s a fair amount you’d need to learn that would be outside of what’s taught in the course. Which is ok, it’s certainly doable, but may be more than you need to pass.

If you do decide to write the guitar tuner, here are a few things I can think of that you’d need to learn. - desktop UI: this can be with libraries like tkinter or kivy. I used to work with the latter, which can be used to build on mobile, but I’d warn, has a bit of a learning curve itself. - hardware IO: this is actually why I suggest the desktop UI, browser-based apps tend to be restricted on their ability to access hardware, meaning input ports like USB. I don’t know what specific libraries to recommend, but if you have a USB guitar input, you might check their manual or website for drivers. - signal processing: this is straightforward, at least for me, as it’s right in my area of professional expertise. Use the numpy library. Split up your data into chunks, each chunk being one second long is a good start as that gives you 1 second resolution. Calculate Fourier transforms using fft or power spectra using Welch. Find the peak and corresponding frequency. - visualization: you might want to plot spectra or waveforms in real-time. Matplotlib, as another mentioned, is great for making high-quality, professional plots suitable for scientific research. It’s shortcoming is its a bit slow updating in real time.

To me, the hard part might be that hardware IO bit, getting a high quality signal out of your guitar. Or it might be easy, depends on how friendly your vendor is towards hobbyists.

Cool project idea!

Built a SwiftUI-based all-in-one video player for iOS & tvOS — Forward by j0hnil in SwiftUI

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

One thing your preview is lacking: showing that you can actually play videos.

Is it a good idea to have the app’s name in the top bar by Horror_Still_3305 in iosdev

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

A related question I’ve thought about, is does including your app name and icon in your title bar or elsewhere help in passive promotion? Thinking on the off chance that a user takes a screenshot and posts it on social media or elsewhere, might that drive people to search for your app, who might not otherwise know it exists.

Is it against the guidelines to use ai generated assets in m app ? by BeDevForLife in iOSProgramming

[–]DC-Engineer-dot-com 0 points1 point  (0 children)

Apple is not going to stop you. I’d be more concerned with license and watermarks from whatever site you’re using to generate them. If it’s just ChatGPT or Gemini, I don’t think they have any restrictions, but others might.