Hacker Newsnew | past | comments | ask | show | jobs | submit | vitomd's commentslogin

Knowing when to use TDD (or any other tool/method) is the difference between a good and a great developer.


People will think twice when investing the time & money in develop an app for the github marketplace as if it succeed, Github could just built the app inside their system. They bought PullPanda which was good for his creator because I think it was less expensive that build that themselves.


> People will think twice when investing the time & money in develop an app for the github marketplace as if it succeed, Github could just built the app inside their system.

That's always a concern with platforms with attached marketplaces (heck, it's even potentially an issue with building apps for OS’s, even if they don't have an attached marketplace—ask Netscape.)


HAND & BRAIN chess

I developed an online version of Hand and Brain Chess to play against a computer. In each move the BRAIN (stockfish engine) will highlight the piece or pieces that are the best move and are the only pieces that you can move. It is your job as the HAND to play the correct move.

http://handandbrainchess.com/

In the original variation 2 players plays together against someone, one say the piece name to move (BRAIN) and the other must move it (HAND). There are some really funny videos online https://www.youtube.com/watch?v=TL2pn1yIs2Y https://www.youtube.com/watch?v=N-fSQAX4wkg


At first I thought this was stupid, but after giving it a try it's addicting. It's great to get instant feedback on a move you aren't sure about.

Edit: Is there a variant of this without limit the piece you can move? Basically I just want the instant feedback without getting told which piece to move.


Yes, I also made this http://tacticalchess.vitomd.com/ that it will alert you when there is a tactical opportunity for you to win material.

Other of my projects http://vitomd.com/blog/projects/


Super fun so far, thank you!

Can someone explain to me why this was called an "excellent move"? https://imgur.com/a/Fyg4PuW I eliminated a night but I feel like the pawn could eliminate my bishop easily. See also the second picture for another (to me) inexplicable situation.


In the first position that pawn can´t take the bishop because then you can move your rook attacking their queen and she is pinned (can´t move because is aligned with the king). The second position you can move the rook, attack the queen, and he must take it. The common value of the pieces are pawn:1, bishop,knight3, rook:5, queen:9 so winning a quen for a rook is an excellent trade.

You can use lichess.com to analyse the moves. Here is the position if you want to take a look https://lichess.org/analysis/standard/r3k2r/pb1pqppp/1ppb4/4... Also You can copy & paste the generated moves of the game (like 1. e4 d5 2. exd5 c6 )to the pgn text area.

If you want to learn more chess https://lichess.org/learn/ it´s a fantastic resource


Oh yes, right. Thank you for your help!


Really cool! But it doesn't seem to be deterministic. I played a "perfect move", took it back, played it again, and it was downgraded to something less than perfect. Also, I took a different move back and was presented different pieces to move. Maybe the engine, given a chance to run longer, updates the list of best moves?


That's interesting, probably a bug in the take back function. There are multiple engine evaluations running in the background at the same time, current evaluation, opponent evaluation and the brain evaluation, so it could be possible that when you take back there is some problem with synchronization


This is really fun!


A security camera outdoors (connected to another webcam outdoor), when there is motion it will send a request to another indoor raspberry (node server) connected to a speaker and will play the sound of an angry dog. The system is working fine for more than a year without breaks. Raspberry is robust.


Interesting. Would you recommend some brand of security cameras that work well for this kind of projects. Where I live the more popular brands are Dahua and Hikvision. Maybe I have to look for a certain communication protocol, rather than for a special brand.


In my case the security camera is also a raspberry pi with the camera module (it could have night vision), connected with a webcam logitech c170 (really cheap) and the motion software to detect movement (https://github.com/Motion-Project).


If its a raspberry pi with a camer amodule, then why is there a need for the webcam? Sorry if I am misunderstanding.


To have 2 cameras. 1 the raspberry pi camera, the other the usb webcam.


I made the exact same thing with a Raspberry Pi in 2013. For the outdoors part I used a motion detector attached to an Electric Imp that uploads the message to the Raspberry Pi indoors, which is connected to speakers.


Learn Stoicism.

My favorite classic is Enchiridion by Epictetus and Letters from a Stoic by Seneca. For a more modern approach: The Antidote: Happiness for People Who Can't Stand Positive Thinking by Burkman

PD:I compiled a list of quotes from the best books http://arandomquote.com/categories/stoic/


Meditations by Roman Emperor Marcus Aurelius is a must read as well. Another addition to your modern approach recommendation of the stoicism theme is Ryan Holiday's Ego is the Enemy.

PS - There's a really captivating lecture on stoicism in the context of the life of Marcus Aurelius https://www.youtube.com/watch?v=5897dMWJiSM


FYI: There is actually a MOOC going on right now called "Stoic Mindfulness & Resilience Training (SMRT)"[0]

[0] https://modernstoicism.com/stoic-mindfulness-and-resilience-...


I saw your twitch channel and also your lessons on youtube, really quality stuff and very instructive. I´m a Software engineer and amateur chess player. I'm intrigued about your project. Is there any website or twitter to follow the development?

I think we need to support this kind of project so our hobby can grow. I like to contribute to the online chess world with some open sources projects http://chesswindmill.com/ it will be awesome if you can check them.


Hey!

Thank you for the kind words! We are currently in stealth mode, but I would love to bring you on board via e-mail. Please shoot an e-mail at the address that is in my profile. My e-mail is currently a bit swamped because I'm organizing a few events this weekend, but I can get back to you early next week. We are a big fan of open source, and in the meantime I will definitely take a look at your open source projects on chesswindmill.


If you like this kind of post, there are many: Why I quit x: https://hn.algolia.com/?query=%22why%20I%20Quit%22&sort=byPo...



I could add another from Seneca: 'For many men, the acquisition of wealth does not end their troubles, it only changes them ' A compilation of some great Stoic quotes http://arandomquote.com/categories/stoic/


It´s a interesting approach. I like to organize my ideas on a different kind of trees. I created Sorter for personal use https://github.com/vitogit/sorter

Seems like https://fictionhub.io/post/story-writing-process/ is not parsing the markdown correctly. There are a couple of ###


I was not aware of that tactic but I had some success with open source projects. For instance I created a Javascript wrapper library for Google Drive API v3 https://github.com/vitogit/gDriveSync.js so the publico are developers that read the code, like the library and then reach me to help them with some javascript project. I don´t create open source project for marketing purposes but I think is a good side effect.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: