Retry Policy in C# for dotnet core
Posted by senseicris in C Sharp, C#, dotnet, Software Development, Software Engineering on January 1, 2019
I just published a new article on Code Project with the full source code. How to create and use a Retry Policy utility class to add some resilience to your dotnet projects. This will help in situations where a temporary network or disk failure might cause a transient error in an app. https://www.codeproject.com/Articles/1273180/Retry-Policy
Gichin Funakoshi historical video
Posted by senseicris in Breaking, Karate, Martial Arts, Tae Kwon Do on February 17, 2017
This is a rare and interesting video about Shotokan Karate and Gichin Funakoshi. Great video for all Karateka.
Sempai Jesus Brick Break
Posted by senseicris in Breaking, Karate, Martial Arts, Tae Kwon Do on August 19, 2014
Short clip of Semapi Jesus destroying a stack of bricks with a knife hand strike. His power is awesome!
Breaking Bricks with Elbow Strike
Posted by senseicris in Breaking, Karate, Tae Kwon Do on August 19, 2014
Here is a short clip of Sensei Juan and Sensei Cris breaking stacks of concrete bricks with an elbow strike.
5 New Brown Belts!
Posted by senseicris in Aikido, Judo, Martial Arts, Tae Kwon Do on October 2, 2012
Congratulations to Isaiah Gutierrez, Alan Juarez, Jesus Juarez, Cris Valenzuela, and Jayden Whitfield on earning their Karate Brown Belt!!! It took many months of preparation and the hard work was worth it. They all killed the test. The judges were very impressed with the students.
Why do I still teach?
Posted by senseicris in Aikido, Judo, Martial Arts, Tae Kwon Do on August 19, 2012
Why do I still teach after 20 years?
At some point we all ask our selves, “Why am I still teaching?” I have guided many students to their black belts, helped them achieve their self-defense goals, and aided their successes at the national level. Neither is the reason.
I have been working with a student affected by certain physical ailments which diminish her coordination and strength. She also has self-esteem issues. She is physically incapable of performing some of the most basic techniques due to her condition. Regardless of her issues I hold her to the same standard as all other students, within reason. She struggled for many weeks to learn her form and earn a Kata patch. Every day after class her father asked if she could perform her poomse to earn the patch. Every day we made corrections to the pattern, stances, hand positions, etc.
Last week she performed her form again and stared at me in suspense as she awaited my response. She performed her form perfectly. I awarded her the patch and her square mouth morphed into a beaming smile. She jumped screaming with joy and pride. She faced her father and in a yelled in a high pitch, “Daddy I got my patch!” That moment is the reason I teach.
She said, “Thank you sensei for giving me the patch”. I made it clear to her she earned the patch through her hard work and determination. I didn’t give her the patch, she earned it. I simply provided the material. She left the gym glowing and walking ten feet tall.
People ask, “When will you stop teaching?” My response, “When my hour of departure arrives.”
jQuery Error 80020101: A fix
Posted by senseicris in HTML, JavaScript, jQuery, Programming on May 19, 2012
I ran into the annoying Could not complete the operation due to error 80020101 bug today. I clearly am not the only one (Google: Could not complete the operation due to error 80020101). This was an old bug in jQuery that was squashed and apparently is back in jQuery 1.7.2 except it isn’t back.
The original bug was related to HTML comments. This was not the cause in my case. It was a query string variable. The fix is simple, take out the query string from the URL.
Change it from this
/Reports.aspx?ReportID=24
to this
/Reports.aspx
EDIT: Alternate Solution
Bruno commented below he this fix was not applicable in his situation. In his case, he needs the querystring. To that end, here is a way to eliminate the issue with a little bit of JavaScript.
You can leave the query string intact and remove it from the webservice URL before making the webservice call with a little bit of javascript. Before calling the webservice, use the following JavaScript to clean the URL and prevent the error
var url = window.location.href.replace(window.location.search, '');
Voilà!
No more Could not complete the operation due to error 80020101
LTRIM RTRIM don’t always work –UDF (UPDATED)
Posted by senseicris in Programming, SQL, TSQL on February 17, 2012
I previously posted on the LTRIM and RTRIM inability to remove certain not printing whitespace characters which can sometimes cause problems. I have updated the SQL page with a User Defined Function (UDF) which can be used in queries or in a stored procedure. I have also included a link to the Code Project article.
New Tae Kwon Do Videos
Posted by senseicris in Martial Arts, Tae Kwon Do on November 25, 2011
I added videos of Tae Kwon Do Kicks.
You can find videos of the forms in the Tae Kwon Do page. Click on the belt color to jump to the rank info and requirements.
LTRIM RTRIM don’t work
Posted by senseicris in Programming, SQL, TSQL on September 29, 2011
LTRIM and RTRIM does not work sometimes if the whitespace character is not actually character ASCII 32. This stumped me for a while. The data entry screen used to enter the information somehow allows users to enter other white space characters other than the regular space from the space bar. It could be related to the system encoding, I don’t know. Here is the code I used to fix the LTRIM and RTRM.