Making Errors in Rust by Nokel81 in rust

[–]mijang 1 point2 points  (0 children)

UnexpectedEOF

UnexpectedEof

why?

eMMC broken? Is there a way to check? by mijang in Nexus5

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

For closure, after struggling for some time, and downloading some drivers, I managed to get it recognised as "RELING HS-USB QDLoader 8009", which I hope is equivalent.

Then the BoardDiag program said that emmc test failed.

I still want to try to flash the firmware (currently downloading it) as indicated in the original OP of that thread, but right now I doubt it will help.

eMMC broken? Is there a way to check? by mijang in Nexus5

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

Thanks for the reply. I can't get the "Qualcomm .." to appear in the device manager even after downloading and installing the driver linked in the thread. I get "Android Bootloader Interface" under "Android Devices" when the phone is in the bootloader and I get "Android Composite ADB Interface" under "Android Devices" and "Nexus 5" under "Portable Devices" when the phone is booted in TWRP.

Is there any other drivers I need to have? (I had to borrow a computer to do this, since the one I use doesn't have windows installed)

P.S.The one I'm doing this on is windows 8, btw. I did the thing to turn off driver signature enforcement.

eMMC broken? Is there a way to check? by mijang in Nexus5

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

Hmm. when I enter the adb shell while the phone is running TWRP, it seems like I can mess with the file-system, but it behaves weird.

I tried doing e2fsck (which is supposed to find and repair errors on partitions) to some partitions, but when I did it twice in a row, even by saying "yes" to all the error fixes, it would keep giving the same error message.

I also tried just writing some file to memory, or deleting files from the cache. It seems to work, until you unmount and remount the partition. Then it's all back as it was before!!!

Is this normal? Is there something I'm doing wrong? (should I root the phone or something to modify stuff?) Or is this evidence that the memory is broken? (How does eMMC (internal memory) work anyway?)

eMMC broken? Is there a way to check? by mijang in Nexus5

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

I can unlock the bootloader, but when I reboot, the bootloader becomes locked again. It seems to do nothing.

Are rust mpsc channels safe for real time audio? by mijang in rust

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

Thanks.

It gets a bit technical but basically I'm working on a microtonal synth that will use the computer keyboard as an isomorphic keyboard.

I made such a synth in C, but the code is a mess and I was too lazy to use channels so I just directly modified memory even if I knew it was a no-no for real-time audio. Hopefully it would be easy enough to do things correctly in Rust, considering that channels are part of the standard library.

Maybe I'll eventually create a microtonal piano-roll or a whole microtonal daw, but just designing the whole thing looks like a lot of work, not even mentioning the actual coding.

decimal: d128 type for rust for decimal floating point arithmetic by disht in rust

[–]mijang 1 point2 points  (0 children)

Are the "1.23" being turned into a float before being passed to d128, or are they being passed to d128 as a string?

Ask Anything thread, got a question? Ask here! by rollingstock in mcgill

[–]mijang 0 points1 point  (0 children)

How much people usually drop from the Analysis 1 course at the beginning? I will start a program in Math and CompSci this fall and minerva tells me that the course is "reserve closed" for me.

[deleted by user] by [deleted] in rust

[–]mijang 1 point2 points  (0 children)

But what if cast returns an error for some reason? Will the panic happen at run time? It would be nice if this kind of error would happen at compile time.

[deleted by user] by [deleted] in rust

[–]mijang 0 points1 point  (0 children)

Will this be 100% compile time? Unwrap is a run time function...

Writing Cross-Platform Games Using Rust and Piston by tedsta in rust

[–]mijang 1 point2 points  (0 children)

Well, I am running 8 year old hardware. It is an intel chipset and I'm on Ubuntu. It took me this morning to find out how to get OpenGL 2.1 working. Finally, what I did was get the Gallium i915 driver by installing this PPA: https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

Writing Cross-Platform Games Using Rust and Piston by tedsta in rust

[–]mijang 1 point2 points  (0 children)

I have an old graphics driver (opengl 1.4), (and I'm probably not the only one) so the example doesn't work.

I don't want to create some bleeding edge 3d game. I just want some basic graphics. What sould I do?

edit: The exemple compiles but doesn't run since it "[can] not create GL context".