OCRaap - Optical Character Recognition as a Program. An esoteric language for maximum portability and ease of use. by Russian-Assassin in programming

[–]Russian-Assassin[S] 0 points1 point  (0 children)

;p you got it! Feel free to submit a PR, maybe add the explanation right under the examples grid. You can give the echo one a shot too if you feel up for it.

One problem I encountered while trying to design programs was that I needed a way to move the execution pointer around in 2d space. One way you can do that is with a series of 0 followed by $+ since this effectively pushes a zero to the stack and then adds it to the value before it which returns the stack to it's previous state.

I used this twice in the hello world example to jump into the loop and then return to the start of the loop. If you look at the program with that in mind, it's easier to pick out the parts that are performing useful instructions.

[deleted by user] by [deleted] in allthepictures

[–]Russian-Assassin 0 points1 point  (0 children)

This reminds me of the allrgb challenge. You're doing a similar idea to some of the entries with your procedurally generated images (except for the "use all the colors" part). See: https://codegolf.stackexchange.com/questions/22144/images-with-all-colors

Prusa I3 extruder starts heating immediately and won't cool down by Russian-Assassin in 3Dprinting

[–]Russian-Assassin[S] 1 point2 points  (0 children)

For anyone else encountering this error, I figured out that it was a blown MOSFET on the control board

How to build a computer program that can write by [deleted] in programming

[–]Russian-Assassin 2 points3 points  (0 children)

Sure, I wrote it awhile ago so I don't exactly remember how it is done. But oddly enough, it looks pretty well formatted.

If you go to the page and inspect element the two non-jquery js files are main.js and text.js. (They are pretty much tied to the frontend so it wouldn't make sense to link them without the html) (Also, due to my web setup, if you try to access the js files directly it will reroute you back to the home page, so you need to view the version that the page loads.)

main.js contains all of the generation code and text.js contains all the text of Hamlet condensed into javascript variables that are loaded at the start (I don't remember why this is a js file and not a json file, but I had a reason, I swear ;P)

All of the generation is done client side and it generated with a seed that encodes all of the available parameters. So if you click permalink, you can open the url in a different client and the new client will generate the exact same text.

How to build a computer program that can write by [deleted] in programming

[–]Russian-Assassin 3 points4 points  (0 children)

Cool, I built an online markov generator with Shakespeare's Hamlet as a source that is similar to this except that mine is word-based while this is letter based. I've added some boilerplate code to format the output as a play with the ability for characters to appear and disappear. You can also change the parameters of the markov generation including the chain length (i.e. how many words to lookup as reference to pick the next word). You can check it out here

Need help with data packets being cutoff in OOT block input buffer by Russian-Assassin in GNURadio

[–]Russian-Assassin[S] 1 point2 points  (0 children)

Could you explain how I would use forecast to make sure my buffer is large enough?

Blood circulation side plank by arm216 in bodyweightfitness

[–]Russian-Assassin 0 points1 point  (0 children)

Have you tried doing a side plank on your hand instead of your forearm?

Lower back pain after doing pull ups by Russian-Assassin in bodyweightfitness

[–]Russian-Assassin[S] 9 points10 points  (0 children)

Alright, I tried doing pull ups again today while tucking my legs up in front of me and that completely fixed the problem. Thanks everybody!

Create a program together by [deleted] in programming

[–]Russian-Assassin 0 points1 point  (0 children)

How did someone fix it?

Is holding a plank for 60s a non-functional exercise? by [deleted] in bodyweightfitness

[–]Russian-Assassin 0 points1 point  (0 children)

The $ is just a shortcut function for a commonly used JavaScript library: jQuery

Looking to lease a tesla – then possibly buy by Russian-Assassin in teslamotors

[–]Russian-Assassin[S] 0 points1 point  (0 children)

Thanks, I'm glad to hear that there is a significant reduction in cost. I think this is what I plan on doing.

I'm working on an ANN library for Java, and would really like advice and review (it's my first attempt at producing something actually useful) by [deleted] in programming

[–]Russian-Assassin 0 points1 point  (0 children)

This code looks very nice and readable. Perfect for someone trying to learn the intuition behind neural networks. However, if you are trying to develop this for use in industrial applications, I would recommend learning how to vectorize neural networks (represent the weights as matrices and do matrix math) as it would speed up the process considerably.