My preferred stress relief technique is woodworking.
I can drive Adafruit PWM hat from C#!
I converted Adafruit python code (Adafruit_PWM_Servo_Driver.py) to C# and it works!
I got tired of flipping food I cook with chopsticks. I do not trust plastic spatulas and I do not want to use metal ones on my ceramic pan surface. I can probably buy a wooden spatula, but why not make my own?
Here it is:
No, I’m not going to buy an elephant!
No, this is NOT an elephant toilet!
How do you achieve the World Domination without a descent Doomsday Device?
Sadly (or maybe fortunately), there are no Doomsday Devices in stores
(even in ATF Bureau regulated ones)
That’s fine, I built one from scratch for Halloween.
Here is how it looks in real life:
Here is how it looks:
How to fix a crossbow with a domino:
What is cool about it? It is really hard to beat. Computer is really smart! (Well, of course, it is very dumb. However, I know a trick or two to make it look smart)
Why did I make it? I’m teaching Xenia to program, and this is what we practice on.
This project was quick and easy, yet the result is so much fun!
All I needed is 4 x wooden blocks, 2 x 3/4″ steele pipes, 4 pipe hangers and 8 screws. That’s it!
How to create sprite animation on a web page?
Well, there are definitely multiple ways of doing it.
How about being cool?
What do the cool dudes do nowadays?
They write in HTML5 with libraries like KineticJS.
Kinetic provides a quick and easy interface for showing animation.
But there is one problem. It reads all sprites from a single image. Figuring out sprite coordinates is way too boring.
I have a good news for you: I wrote a software to automate it!
Here is the software:
Here are animation example I made with it (art is not mine, I borrowed it from Xenia’s school homework guidelines – perhaps, it came from some book):
How do you make yours?
- Draw sprites in a single image and store the image as png or jpg. Sorry, my application only supports up to 9 sprites. You are welcome to modify it.
- Start the application
- Push “Load Images” button and load your image. It shall be visible on a screen.
- With the left slider, set total number of your sprites.
- With the right slider, choose sprites one-by-one. With the left mouse button, drag blue rectangle to frame the first sprite. Use right mouse button + mouse move to resize the box. Sorry, I use same size for all frames. Rationale: I’m too lazy to resize each individual sprite.
- Repeat for all frames: select frame with the right slider and move blue rectangle to frame it.
- Push Save button to save the result
- Unpack “web package”, copy your image to folder walkcycle_4, then in that folder open walkcycle.htm and replace lines like x: 214.666666666667, y: 30.6666666666667, width: 138.666666666667, height: 144.666666666667 with the data you generated and saved.
- Change image file name at the end of walkcycle.htm with your image.
- Open walkcycle.htm in a browser. It might ask you whether you allow content to be executed. Allow it. Push “Start” button and enjoy.
Sadly, it does not work in Opera. But it works in Google Chrome, Mozilla and IE on my machine.