Nikola Brežnjak blog - Tackling software development with a dose of humor
  • Home
  • Daily Thoughts
  • Ionic
  • Stack Overflow
  • Books
  • About me
Home
Daily Thoughts
Ionic
Stack Overflow
Books
About me
  • Home
  • Daily Thoughts
  • Ionic
  • Stack Overflow
  • Books
  • About me
Nikola Brežnjak blog - Tackling software development with a dose of humor
Miscellaneou$

MaxCapacity Training program

For the past 26 weeks I’ve gone through the MaxCapacity program 2 times (2 * 12 weeks + 2 weeks rest time between), and I can tell you that the program is all but easy. I really like it, but no matter what others say – I don’t recommend it for beginners (I did, and it didn’t work out so well). So, if you can’t do like 10 pushups straight, there’s really no sense in trying this workout as it will leave you disappointed.

The app (Android and iOS) is free to download, so this is a review in a way to say thanks to the author Samy Peyret (you can support him by buying his book on Amazon).

So, the main breakdown is pretty simple; you have to exercise only for 16 minutes, 3 times a week for 12 weeks. Honestly, if you don’t have 16 minutes for exercise, then something is seriously wrong, but that’s another topic… Exercises are very well planned and they grow in toughness as the weeks go by. Main idea is that in 3 weeks you do the same set of 4 different exercises on Monday, a different set of 4 exercise on Wednesday and  a different set of 4 exercise on Friday. You rest on Saturday and Sunday.

First week is a 50/10 regime, meaning that you are doing the exercise for 50 seconds and then you rest for 10 seconds – you should log your best (usually the first set) score. Second week is a tabata (20/10) regime, and here you should log your weakest score (usually one of the last sets – here you have 8 sets since the exercise is only 20 seconds long). The twist comes in the third week where you have to beat the time and do the calculated amount of repetitions ([max 1st week score + min 2nd week score] * 3) as fast as you can – and if you can do it below 16 minutes, you Rock.

I logged each and every set (you can download the full excel file: MaxCapacityTrainingLog), and as you can see it turns out that the second time I got to do the exercises, I did them with a whopping 24.32% increase in number of repetitions, so yeah – it works in only 16 minutes 3/week! The 24% increase is the average of all the exercises, some of course vary as you can see in the aforementioned excel file. The biggest advancement I noticed was with the diamond pushups, where I did a 150% increase in number of repetitions for the max count, and 135% in total sum!

So, to sum up – very much thanks to the author for making this a free resource. If you like it, you can support him by buying his book on Amazon.

An example of the first week the first time I went through the program compared to the second time I went through it:

Monday
[table id=1 /]

Wednesday
[table id=2 /]

Friday
[table id=3 /]

Give it a try and hit me back with your numbers and let me know what you think!

App idea alert!: Maybe a good idea would be to make a repository of scores so that one could see where he stacks up between others!?

Miscellaneou$

Overworking and not sleeping is the new badge of honor which will burn you out and then kill you!

An eye opening post from Jason Lengstorf.

After a few days of too little sleep, you’re a drunken zombie. We wouldn’t go to work drunk, so why the hell do we go to work on four hours’ sleep, when we’re more impaired than if we were hammered? To make matters worse, sleeping less than six hours a night may lead to an early death.

If any of these sound familiar or if you can totally relate (like me :/), then something needs to change

Feeling Guilty About Any Time Away from Work — Even Time with Family and Friends

Frequently Working More than 40 Hours a Week

Frequently Sleeping Less than 6 Hours a Night

So, yeah, advancement is good, but not worth it in the long run in terms of sacrificing the time spend with your child, spouse, friends. I’ve read a quote somewhere that goes something like “On his deathbed no man ever wished he spent more time in the office”. I believe balance in all mayor areas of your life is key but, of course, not easily attainable.

The author goes on to say how he managed to work less time, but in turn be more productive.

I know this may sound too idealistic, but at least from time to time – why not give it a try, right?

Stack Overflow

Javascript regex match for string “game_1”

profile for Nikola at Stack Overflow, Q&A for professional and enthusiast programmers
I’m a big fan of Stack Overflow and I tend to contribute regularly (am currently in the top 0.X%). In this category (stackoverflow) of posts I will will be posting my top rated questions and answers. This, btw, is allowed as explained in the meta thread here.

My question was:

I just can’t get this thing to work in javascript. So, I have a text “game_1” without the quotes and now i want to get that number out of it and I tried this:

var idText = "game_1";
re = /game_(.*?)/;
found = idText.match(re);

var ajdi = found[1];
alert( ajdi );

But it doesn’t work – please point out where am I going wrong.

 The answer, by Naltharial, was:

If you’re only matching a number, you may want to try

/game_([0-9]+)/

as your regular expression. That will match at least one number, which seems to be what you need. You entered a regexp that allows for 0 characters (*) and let it select the shortest possible result (?), which may be a problem (and match you 0 characters), depending on the regex engine.

Recent posts

  • Discipline is also a talent
  • Play for the fun of it
  • The importance of failing
  • A fresh start
  • Perseverance

Categories

  • Android (3)
  • Books (114)
    • Programming (22)
  • CodeProject (35)
  • Daily Thoughts (77)
  • Go (3)
  • iOS (5)
  • JavaScript (127)
    • Angular (4)
    • Angular 2 (3)
    • Ionic (61)
    • Ionic2 (2)
    • Ionic3 (8)
    • MEAN (3)
    • NodeJS (27)
    • Phaser (1)
    • React (1)
    • Three.js (1)
    • Vue.js (2)
  • Leadership (1)
  • Meetups (8)
  • Miscellaneou$ (77)
    • Breaking News (8)
    • CodeSchool (2)
    • Hacker Games (3)
    • Pluralsight (7)
    • Projects (2)
    • Sublime Text (2)
  • PHP (6)
  • Quick tips (40)
  • Servers (8)
    • Heroku (1)
    • Linux (3)
  • Stack Overflow (81)
  • Unity3D (9)
  • Windows (8)
    • C# (2)
    • WPF (3)
  • Wordpress (2)

"There's no short-term solution for a long-term result." ~ Greg Plitt

"Everything around you that you call life was made up by people that were no smarter than you." ~ S. Jobs

"Hard work beats talent when talent doesn't work hard." ~ Tim Notke

© since 2016 - Nikola Brežnjak