• Home
  • Readings
  • Github
  • MIES
  • TmVal
  • About
Gene Dan's Blog

Category Archives: Uncategorized

No. 96: Project Euler #22 – Three Solutions

14 August, 2013 9:18 PM / Leave a Comment / Gene Dan

I’ve been using R a lot more at work lately, so I have decided to switch languages from VBA to R for my attempts at Project Euler problems. As of today I’ve solved 25 problems, 8 in the last day. I’ve found that R is much more powerful than VBA, especially with respect to handling vectors and arrays via indexing.

Here is the problem as stated:

Using names.txt, (right click and ‘Save Link/Target As…’), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the alphabetical value for each name, multiply this value by its alphabetical position in the list to obtain a name score.

For example, when the list is sorted into alphabetical order, COLIN, which is worth 3 + 15 + 12 + 9 + 14 = 53, is the 938th name in the list. So, COLIN would obtain a score of 938 × 53 = 49714.

What is the total of all the name scores in the file?

The problem asks you to download a file containing a very long list of names, sort the names, and then assign each of the names a score based on their character composition and rank within the list. You are then asked to take the sum of all the scores.

The problem requires you to manipulate a long list of names.

The problem requires you to manipulate a long list of names.

Solution 1

My first solution consists of 15 lines. First, I imported the text file via read.csv() and assigned the sorted values to a vector called names.sorted. I then ran a loop iterating over each of the names, applying the following procedure to each one:

  1. Split the name into a vector of characters
  2. Use the built-in dataset LETTERS which is already indexed from 1-26 to assign a numeric score to each letter that appears in the name. The which function is used to match the characters of each name to the index (the value of which is the same as the score) at which it appears in the dataset LETTERS.
  3. Sum the scores assigned to each letter, and then multiply the sum by the name’s numeric rank in names.sorted. Then append this value to a vector y.

After the loop, the function sum(y) takes the sum of all the values in the vector y, which is the answer to the question.
Here’s the code for the first solution:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
names<-read.csv("names2.csv",stringsAsFactors=FALSE,header=FALSE,na.strings="")
names.v<-as.vector(as.matrix(names))
names.sorted <- sort(names.v)
 
y <- 0
z <- 0
for(i in names.sorted){
  x <- 0
  z <- z+1
  for(j in strsplit(i,c())[[1]]){
    x <- append(x,which(LETTERS==j))
  }
  y <- append(y,sum(x)*z)
}
sum(y)

Solution 2

After solving the problem, I decided to write an alternative solution that would reduce the number of variables declared. I used the function sapply to apply a single function over the entire vector names.score:

1
2
3
4
5
6
names<-read.csv("names2.csv",stringsAsFactors=FALSE,header=FALSE,na.strings="")
names.score<-c()
for(i in sort(as.vector(as.matrix(names)))){
  names.score[i] <- sum(sapply(strsplit(i,c())[[1]],function(x) which(LETTERS==x)))
}
sum(names.score*seq(1:length(names.sorted)))

This method allowed me to remove one of the loops and to remove the variables names.v, y and z.  This reduced the number of lines of code from 15 to 6.

Solution 3

I then found out I could further reduce the solution to just 2 lines of code by using nested sapply() functions over the names variable:

1
2
names <-sort(as.vector(as.matrix(read.csv("names2.csv",stringsAsFactors=FALSE,header=FALSE,na.strings=""))))
sum(sapply(names,function(i)sum(sapply(strsplit(i,c())[[1]],function(x) which(LETTERS==x))))*seq(1:length(names)))

Here, I got rid of the names.score variable and only declared a single variable. The nested sapply() functions are used to first iterate over each element of the vector names, and second, to iterate over each character within those elements of the vector. The sum() function is wrapped around the nested sapply() functions which produces the solution by summing the scores of the individual names.

As you can see, R comes with some neat features that great for condensing your code. However, there are some tradeoffs as the first solution is very easy to read, whereas the last solution may be difficult for people to read, especially if they are not familiar with R. Loops are quite easy to spot in most widely used languages, so someone who knows C++ but not R should be able to read it. In order to understand the last solution, they may have to look up what the sapply() function does. Personally my favorite is the second solution, which I think has a good balance between being compact and being easy to comprehend.

Posted in: Uncategorized / Tagged: Names scores, project euler, project euler 22

#9 Weightlifting

20 August, 2009 11:20 PM / Leave a Comment / Gene Dan

Hello everyone,

I began weightlifting in the fall of 2008, but I didn’t really have a structured program until June. So, I’ve decided to keep a log, but I don’t exactly remember what I did so I’ll start from scratch. In June I started a 5×5 program that I found on stronglifts.com. It consists of two workouts:

Workout A

Squat 5×5
Bench Press 5×5
Barbell Rows 5×5
Dips 3xF
Reverse Crunch 3×12

Workout B

Squat 5×5
Overhead Press 5×5
Deadlift 1×5
Pull-ups/Chin-ups 3xF
Prone Bridges 3×30 sec

So you workout 3 times a week, alternating workouts each day. Each workout you add 5 pounds to each exercise, and you keep doing so until you can’t complete five sets of five reps for an exercise. When that happens, you decrease weight for that specific exercise by 10 percent, but continue to increase weight for all the other exercises. So, I’m supposed to do this “two steps forward, one step backwards” approach until I can squat 1.5 times my weight. If you’re interested, check out stronglifts.com

So I’ll start my log by recording what I did yesterday:

19.August.2009

Workout B

Squat – 100 lbs.
Overhead Press – 60 lbs.
Deadlift – 65 lbs.
Pull-ups – 1:10, 2:7, 3:4, 4:3, 5:3
Prone Bridges – 3×30 sec
Cardio – 45 minutes stationary bike

I was in Houston for this workout so I went to a gym called Pelican gym. The bicycles here seemed a little harder so I was kind of surprised. The gym was alright, it was the only place I could find that offered a short term rate. Usually I go to Gregory Gym at UT, so I only have to pay if I need to put my stuff in a locker. Anyways, the workout went well and I felt pretty good.

21.August.2009

Workout A

Squat – 105 lbs.
Bench Press – 115 lbs.
Barbell Rows – 50 lbs.
Dips – 1:10, 2:9, 3:8, 4:5, 5:3
Reverse Crunch – 1:30, 2:20, 3:20
Cardio – 45 mins. Stationary Bike

Today, I was able to increase weight on every exercise, but on the bench press I had to ask a guy to spot me so I’m probably going to have to deload either the next time, or the time after that. But anyways it’s 115 lbs. and pretty close to my weight of 130. Also, it’s starting to get a little hard on the squats but I was still able to do them. There’s less soreness when I go down so that’s definitely good to know. I’m pretty satisfied with my dip progress so far. Once I hit 3 sets of 10 I’m going to start adding weight, which should be exciting (also makes me look macho!).

24.August.2009

Workout B

Bench Press – 1:120 lbs., 2:120 lbs., 3:120 lbs., 4:110 lbs., 5: 110 lbs., 6: 110 lbs.
Squat – 110 lbs.
Overhead Press – 65 lbs.
Deadlift – 65 lbs.
Pull-ups – 1:10, 2:5, 3:3, 4:7, 5:5
Prone Bridges – 3×35 sec
Cardio – 8 minutes stationary bike

I started the wrong workout today! I realized my mistake after I had finished doing my bench presses. While I was doing them, I was wondering why it was so hard to just do 5 more pounds when I realized that I had just done them the last workout so I must have still been recovering. Anyways, I finished the rest of workout B, all of which was harder because of my mistake. I also could have done 5 more lbs. on the deadlift but I had forgotten that I had done 65 last time. It’s probably that I just moved from Houston to Austin today so I’m probably still getting settled. Anyways, i’m going to deload 10% on the bench press and overhead press next time, and maybe the squats too. Another thing to note is that Gregory Gym just upgraded their stationary bikes, which is exciting because they’re new, but also frustrating because I also have to learn how to use them. Anyways, I switched from a recumbent bike to an upright, and my quads were burning after 8 minutes! I’m going to have to ease my way back to 45 minutes over the next several workouts.

26.August.2009

Workout A

Squat – 115 lbs.
Bench Press – 105 lbs.
Barbell Rows – 55 lbs.
Dips – 1:10, 2:10, 3:10, 4:8, 5:4
Reverse Crunch – 1:30, 2:20, 3:23
Cardio – 45 mins. Stationary Bike

Today I deloaded to 105 lbs. on the bench press, which was moderately difficult because I had also done the exercise on Monday. I was able to add weight to all the other exercises, as expected. I was satisfied with my dips because I finally reached 3 sets of ten, plus two more sets! Now I can start adding weight using a dip belt, which is pretty much a belt with a chain attached to it, with the weight dangling from the chain in between your legs. This will make me look extra-manly at the gym. I managed to squat 115 lbs. with a lot of difficulty, so I’ll probably reach my limit on Friday. Also, today was the first day that I squatted more than I benched, which I expected to happen at some point. Instead of going to Gregory today, I went to the Rec Sports center which happened to have the old bicycles that I’m used to. So, I was able to do the whole 45 mins. on the bike.

28.August.2009

Workout B

Squat – 120 lbs.
Overhead Press – 60 lbs.
Deadlift – 70 lbs.
Chin-ups – 1:10, 2:8, 3:4, 4:4, 5:3
Prone Bridges – 3×35 sec
Cardio – 45 minutes stationary bike

31.August.2009

Workout A

Squat – 125 lbs.
Bench Press – 110 lbs.
Barbell Rows – 60 lbs.
Dips – 1:10, 2:10, 3:10, 4:10, 5:6 – first three sets weighted at 2.5 lbs.
Reverse Crunch – 1:30, 2:25, 3:25
Cardio – 45 mins. Stationary Bike

2.September.2009

Workout B

Squat – 130 lbs.
Overhead Press – 65 lbs.
Deadlift – 75 lbs.
Pull-ups – 5×5, weighted at 2.5 pounds, 6:3, 7:4
Prone Bridges – 3×40 sec
Cardio – 45 minutes stationary bike

Today I reached an important milestone in the fact that I can now squat my own weight! I also started adding weight to my pull-ups, but I couldn’t quite put my chin above the bar on the last couple of reps, so I’ll probably take the weight off and work my way back up next time. Anyways, I’m almost to the point where I can squat with two full plates which is another important milestone.  Today, I reduced the wattage on the stationary bike to give me more power on the squats. I was able to increase weight on all the other exercises, though.

4.September.2009

Workout A

Squat – 135 lbs.
Bench Press – 115 lbs.
Barbell Rows – 65 lbs.
Dips – 5×5 weighted at 5 lbs. 6:6
Reverse Crunch – 1:30, 2:25, 3:27
Cardio – 45 mins. Stationary Bike

6.September.2009

Workout B

Squat – 115 lbs.
Overhead Press – 70 lbs.
Deadlift – 80 lbs.
Chin-ups – 1:10, 2:9, 3:5, 4:4, 5:2
Prone Bridges – 3×45 sec
Cardio – 45 minutes stationary bike

9.September.2009

Workout A

Squat – 120 lbs.
Bench Press – 120 lbs.
Barbell Rows – 80 lbs.
Dips – 5×5 weighted at 7.5 lbs. 6:15
Reverse Crunch – 1:30, 2:25, 3:30
Cardio – 45 mins. Stationary Bike

11.September.2009

Workout B

Squat – 125 lbs.
Overhead Press – 75 lbs.
Deadlift – 85 lbs.
Pull-ups – 5×5 weighted at 2.5 lbs. 6:5
Prone Bridges – 3×50 sec
Cardio – 11 minutes stationary bike

14.September.2009

Workout A

Squat – 130 lbs.
Bench Press – 110 lbs.
Barbell Rows – 75 lbs.
Dips – 5×5 weighted at 10 lbs. 6:17
Reverse Crunch – 1:30, 2:30, 3:25
Cardio – 45 mins. Stationary Bike

16.September.2009

Workout B

Squat – 135 lbs.
Overhead Press – 3×5 at 80 lbs. 2xF
Deadlift – 90 lbs.
Chin-ups – 5×5 weighted at 2.5 lbs. 6:2
Prone Bridges – 3×55 sec
Cardio – 45 minutes stationary bike

18.September.2009

Workout A

Squat – 125 lbs.
Bench Press – 115 lbs.
Barbell Rows – 80 lbs.
Dips – 5×5 weighted at 12.5 lbs. 6:18
Reverse Crunch – 1:30, 2:30, 3:30
Cardio – 45 mins. Stationary Bike

21.September.2009

Workout B

Squat – 130 lbs.
Overhead Press – 70 lbs.
Deadlift – 95 lbs.
Pull-ups – 1:10, 2:10, 3:4, 4:4, 5:3
Prone Bridges – 3×60 sec
Cardio – 45 minutes stationary bike

23.September.2009

Workout A

Squat – 135 lbs.
Bench Press – 120 lbs.
Barbell Rows – 85 lbs.
Dips – 5×5 weighted at 15 lbs. 6:14
Reverse Crunch – 1:30, 2:30, 3:20
Cardio – 45 mins. Stationary Bike

25.September.2009

Workout B

Squat – 140 lbs.
Overhead Press – 75 lbs.
Deadlift – 100 lbs.
Chin-ups – 1:10, 2:10, 3:7, 4:3
Prone Bridges – 3×60 sec
Cardio – 45 minutes stationary bike

28.September.2009

Workout A

Squat – 145 lbs.
Bench Press – 115 lbs.
Barbell Rows – 90 lbs.
Dips – 1:10, 5×5 weighted at 17.5 lbs.
Reverse Crunch – 1:30, 2:30, 3:30
Cardio – 45 mins. Stationary Bike

30.September.2009

Workout B

Squat – 135 lbs.
Overhead Press – 3×5 80 lbs., 4:3 80 lbs., 1×5 50 lbs.
Deadlift – 105 lbs.
Chin-ups – 5×5 2.5 lbs. 6:5
Prone Bridges – 3×60 sec
Cardio – 45 minutes stationary bike

2.October.2009

Workout A

Squat – 140 lbs.
Bench Press – 120 lbs.
Barbell Rows – 95 lbs.
Dips – 1:5, 5×5 weighted at 20 lbs.
Reverse Crunch – 1:30, 2:30, 3:30
Cardio – 45 mins. Stationary Bike

5.October.2009

Workout B

Squat – 145 lbs.
Overhead Press – 70 lbs.
Deadlift – 110 lbs.
Pull-ups – 5×5 2.5 lbs. 6:3
Prone Bridges – 3×60 sec
Cardio – 45 minutes stationary bike

7.October.2009

Workout A

Squat – 150 lbs.
Bench Press – 125 lbs.
Barbell Rows – 85 lbs.
Dips – 1:5, 5×5 weighted at 22.5 lbs.
Reverse Crunch – 1:30, 2:30, 3:35
Cardio – 45 mins. Stationary Bike

9.October.2009

Workout B

Squat – 135 lbs.
Overhead Press – 75 lbs.
Deadlift – 115 lbs.
Pull-ups – 5×5 5 lbs. 6:3
Prone Bridges – 3×60 sec
Cardio – 45 minutes stationary bike

12.October.2009

Workout A

Squat – 140 lbs.
Bench Press – 115 lbs.
Barbell Rows – 90 lbs.
Dips – 1:5, 5×5 weighted at 25 lbs.
Reverse Crunch – 1:30, 2:30, 3:35
Cardio – 45 mins. Stationary Bike

14.October.2009

Workout B

Squat – 145 lbs.
Overhead Press – 5×4 80 lbs.
Deadlift – 120 lbs.
Chin-ups – 5×5 5 lbs. 6:3
Prone Bridges – 3×60 sec
Cardio – 45 minutes stationary bike

16.October.2009

Workout A

Squat – 150 lbs.
Bench Press – 120 lbs.
Barbell Rows – 95 lbs.
Dips – 1:5, 5×5 weighted at 27.5 lbs.
Reverse Crunch – 1:30, 2:30, 3:35
Cardio – 45 mins. Stationary Bike

19.October.2009

Workout B

Squat – 155 lbs.
Overhead Press – 70 lbs.
Deadlift – 125 lbs.
Pull-ups – 5×5 7.5 lbs. 6:3
Prone Bridges – 3×60 sec
Cardio – 45 minutes stationary bike

21.October.2009

Workout A

Squat – 140 lbs.
Bench Press – 5×4 125 lbs.
Barbell Rows – 85 lbs.
Dips – 1:5, 5×5 weighted at 30lbs.
Reverse Crunch – 1:30, 2:30, 3:35
Cardio – 45 mins. Stationary Bike

23.October.2009

Workout B

Squat – 145 lbs.
Overhead Press – 75 lbs.
Deadlift – 130 lbs.
Chin-ups – 5×5 7.5 lbs. 6:4
Prone Bridges – 3×60 sec
Cardio – 45 minutes stationary bike

26.October.2009

Workout A

Squat – 150 lbs.
Bench Press – 115 lbs.
Barbell Rows – 90 lbs.
Dips – 1:5, 5×5 weighted at 32.5 lbs.
Reverse Crunch – 1:30, 2:35, 3:20
Cardio – 45 mins. Stationary Bike

28.October.2009

Workout B

Squat – 155 lbs.
Overhead Press – 5×4 80 lbs.
Deadlift – 135 lbs.
Pull-ups – 5×5 10 lbs.
Prone Bridges – 3×60 sec
Cardio – 45 minutes stationary bike

31.October.2009

Workout A

Squat – 160 lbs.
Bench Press – 5×4 120 lbs.
Barbell Rows – 95 lbs.
Dips – 1:5, 5×5 weighted at 35 lbs.
Reverse Crunch – 1:30, 2:35, 3:30
Cardio – 73 min. Road bike, 10 min. Jogging

2.November.2009

Workout B

Squat – 145 lbs.
Overhead Press – 70 lbs.
Deadlift – 140 lbs.
Chin-ups – 5×5 10 lbs.
Prone Bridges – 3×60 sec
Cardio – 45 minutes stationary bike

4.November.2009

Workout A

Squat – 150 lbs.
Bench Press – 115 lbs.
Barbell Rows – 100 lbs.
Dips – 1:5, 5×5 weighted at 25 lbs.
Reverse Crunch – 1:30, 2:35, 3:40
Cardio – 45 minutes stationary bike

6.November.2009

Workout B

Squat – 155 lbs.
Overhead Press – 75 lbs.
Deadlift – 145 lbs.
Pull-ups – 5×4, 1×3 12.5 lbs.
Prone Bridges – 3×30 sec, weighted at 25 lbs.
Cardio – 45 minutes stationary bike

9.November.2009

Workout A

Squat – 160 lbs.
Bench Press – 120 lbs.
Barbell Rows – 105 lbs.
Dips –  27.5 lbs.
Reverse Crunch – 1:35, 2:35, 3:40
Cardio – 45 minutes stationary bike, 10 minutes jogging

11.November.2009

Workout B

Squat – 165 lbs.
Overhead Press – 80 lbs.
Deadlift – 150 lbs.
Chin-ups – 5 lbs.
Prone Bridges – 3×30 sec, weighted at 35 lbs.
Cardio – 45 minutes stationary bike, 10 minutes jogging

13.November.2009

Workout A

Squat – 150 lbs.
Bench Press – 4×5, 1×4 125 lbs.
Barbell Rows – 95 lbs.
Dips –  30 lbs.
Reverse Crunch – 1:35, 2:35, 3:10
Cardio – 1 hour road bike

Out of pure boredom I decided that I no longer wish to use the stationary bike at the gym, but rather outside on my bike instead.

16.November.2009

Workout B

Squat – 155 lbs.
Overhead Press – 4×5, 1×4 85 lbs.
Deadlift – 155 lbs.
Pull-ups – 5 lbs.
Prone Bridges – 3×30 sec, weighted at 45 lbs.
Cardio – 45 minutes stationary bike

18.November.2009

Workout A

Squat – 160 lb.
Bench Press – 115 lb.
Barbell Rows – 95 lb.
Dips –  32.5 lb.
Reverse Crunch – 1:35, 2:35, 3:20
Cardio – 45 minutes stationary bike

20.November.2009

Workout B

Squat – 165 lbs.
Overhead Press – 75 lb.
Deadlift – 135 lbs.
Chin-ups – 7.5 lbs.
Prone Bridges – 3×30 sec, weighted at 35 lbs.
Cardio – 50 minutes road bike

21.December.2009

Workout A

Squat – 95 lb.
Bench Press – 95 lb.
Barbell Rows – 75 lb.
Dips –  15 lb.
Reverse Crunch – 1:20, 2:20, 3:20
Cardio – 2 hours road bike

OFFSEASON: alright, so I took a few weeks off here, not exactly voluntary, but I got the Flu so I had to take a while off anyway…I’ve been consistent with weight training since the end of January, but I’ve been to lazy to update my records. By now the main difference is that I’ve moved completely off the stationary bike and have transitioned fully into road cycling, as my knees feel better.

26.March.2010

Workout B

Squat – 155 lbs.
Overhead Press – 75 lb.
Deadlift – 140 lbs.
Chin-ups – 2.5 lbs.
Calf Raises – 90 lbs.
Prone Bridges – 3×60 sec.
Reverse Crunch – 3×20
Cardio – 2.5 hours road bike – 45 miles

14.April.2010

Workout B

Squat – 170 lbs.
Overhead Press – 70 lb.
Deadlift – 160 lbs.
Pull-ups – 7.5 lbs.
Prone Bridges – 3×60 sec.
Reverse Crunch – 3×20
Cardio – 2.5 hours road bike – 40 miles

16.April.2010

Workout A

Squat – 175 lb.
Bench Press – 120 lb.
Barbell Rows – 110 lb.
Dips –  45 lb.
Reverse Crunch – 1:30, 2:35, 3:35
Cardio – 2 hours road bike

Note: It’s been many months since I last updated, and from the end of May to November I had been off and on weightlifting. For the last two and a half months, however, I’ve been pretty consistent so here’s an update. I stopped keeping track of my cardio because I now treat it separately from strength training. I’ve also split the workouts over 6 days so I do two or three exercises per session, depending on the workout. My upper body has been lacking in development but I’ve been reaching new maximums for lower body exercises, probably due to cycling. I suppose when you gain something in one place, you lose it in another. Anyway, I don’t want my upper body to waste away so I’ll continue to work on it.

6.January.2010

Mixed Workout

Bench Press – 115 lb.
Squat – 170 lb.

7.January.2011

Workout A

Barbell Rows – 100 lb.
Dips –  42.5 lb.
Reverse Crunch – 1:25, 2:25, 3:30

9.January.2011

Workout B

Squat – 175 lb.
Overhead Press – 75 lb.
Deadlift – 165 lbs.
Pull-ups – 1:5, 2:5, 3:5, 4:5, 5:3
Prone Bridges – 3×60 sec.

24.July.2011

Current Stats as of today:

Squat: 205 lb.
Bench Press: 130 lb.
Overhead Press: 85 lb.
Deadlift: 200 lb.
Dips: 50 lb.
Barbell Rows: 115 lb.
Hang Cleans: 85 lb.
Pull-ups: 5 lb.

 

Posted in: Uncategorized

1 May, 2009 2:06 AM / 1 Comment / Gene Dan

To my musician friends and teachers:

I suppose I should have made this public sooner, but I wasn’t sure about myself then, but I am now. I decided to tag all of you since as musicians, you of all people should have some understanding of what I’m going through. If you’re wondering where I’ve been all this time, you should know that I’ve been spending the semester rehabilitating some injuries that I sustained last year, and again about four months ago. Anyways, beginning sometime around March of 2008, I began to experience pain in both my shoulders along with a nasty grinding noise that accompanied the bowing motion of my arm. I honestly had no idea what was going on since I didn’t even practice that much – around 3 hours/day compared to the 12 hours/day that a few of my friends do. For the time  being, I just thought pain was something that musicians had to live with. I’ve heard that Pinchas Zukerman constantly takes Advil to ameliorate the constant pain that he has. So, I gutted it out for about 9 months until my viola playing deteriorated to an unacceptable level. At the time, my piano playing was still OK, so I called it quits on viola and started focusing on the piano.

Things were going great until I started feeling that weird feeling that I explained in the last post. Indeed,  I did practice the full 3 hours the day after, but I have since forgotten what material I played and how it sounded so I won’t update this blog with that information. Anyways, on that day I simultaneously dislocated the extensor tendons in five of my fingers. So, all of a sudden most of my daily tasks became very uncomfortable, such as typing, cooking, brushing my teeth and so on and so forth, so I decided to see a doctor. I first saw a doctor at the sports medicine clinic at UT, who decided to give me a few blood tests to rule out some common conditions that she suspected me to have. When I got the results back most of them were normal, but I had a speckled pattern of anti-nuclear antibodies, and I had a borderline ANA Titer of 1:40. In otherwords, the tests indicated a presence of abnormal antibodies in my blood. She suspected that I might be showing signs of early Rheumatoid Arthritis, a disease where the body’s immune system attacks it’s own connective tissue, such as tendons, ligaments, and cartilage, which could possibly explain the dislocations in my fingers.

So, I went to a Rheumatologist and she ran some more specific tests for RA and other autoimmune diseases. I remember being scared shitless after seeing the positive result on that last test. Thankfully the more specific tests showed normal levels, so the Rheumatologist concluded that I most likely didn’t have RA or the other diseases she tested me for, to my relief. She did say that the positive ANA Titer did leave me at risk for future autoimmune disorders, so I’d have to keep an eye on that.

About a month ago, I started feeling numbness in both my hands, legs, and face, so the Rheumatologist sent me to a Neurologist who did a nerve conductivity test to make sure my nerves were functioning properly. It was pretty cool I guess – she stuck a bunch of needles in my arms and legs and used a machine to control the movement of my fingers and toes using electrical currents.  So it turns out that I have Ulnar Nerve Entrapment along with Tarsal Tunnel Syndrome, to my surprise. We still have no idea if the numbness has anything to do with the dislocations in my hands so I’m still in the process of seeing doctors to get a diagnosis. Two weeks ago I started having vertigo, which still persistently annoys me.

I have a few speculations as to what’s causing all this, but I won’t know for sure until I get a diagnosis from a medical professional. For one thing, I’m a hypermobile person. This helps most musicians, but for some people it causes a lot of pain and difficulty. I can do a lot of things that most people shouldn’t – for example, I can bend all of my fingers backwards and make them touch my forearms. I can do the splits, and so on and so forth. I’ve read that hypermobile people do tend to suffer more from tendon dislocation and nerve entrapment than most people do. So maybe it’s that, but I don’t know. I saw a hand specialist over spring break and he said there was a surgery to correct the dislocations, but if I didn’t root out the cause of the problem, the dislocations would recur and I’d be back where I started. So, my current plans are to see another specialist in May to see if he can give me some insight. He’s the team doctor for the Houston Astros, and I heard he’s good. Pretty neat, huh?

So during the semester, I’ve spent most of my free time going to the gym to improve my muscular strength and stability. I also started doing cardiovascular exercise to improve my fitness as well. So I ended up having a lot of free time since I haven’t been in orchestra and haven’t been practicing. I got around to running about 7 miles/a day and feeling great until I hurt my ankle. I have no idea what that was but there was a lot of pain and grinding noise that came from my left ankle as I walked. So, in the meantime I started using the elliptical to maintain my cardio. I used to think it was a machine for women and unmanly men, but it’s actually harder than it looks. So, after my ankle healed I decided to go for a two mile run and that felt great, so the next day I did three miles, and the day after that I did three miles again. And then, I ended up getting shin splints so it’s been frustrating. My shins feel a lot better now, so I’ll probably go running again, but more gradually this time. Anyways, strength training has been great. I’ve seen good improvement in my shoulders and hands. My shoulders don’t hurt nearly as much as they did before and they’re almost back to normal. My fingers still lock in place but they’ve slowly been regaining their range of motion.

Today I decided to practice for the first time in a long time. I kept my session short – about an hour long, to test the waters. I practiced C-major scales, arpeggios chords, and cadences, along with a little bit of Hanon, and the Bach Polonaise. To my surprise, I still had it memorized. So there wasn’t any pain today, and I felt pretty good. Tomorrow I plan to play too, and I’ll still keep my practice session short. Hopefully, I’ll be able to get going again. Most people don’t know how playing an instrument can vastly improve your memory if you memorize everything you play. Last semester, my memory was so good that I was able to get all A’s without even studying. But this semester hasn’t been so good. I have to actually study and I’m making mistakes on my tests. But my grades are still relatively good.

Anyways, I’m just asking you all for your support and I’m eternally grateful to have had the opportunity to play with all of you when I was healthy. I understand that most people in the world don’t have the opportunity to play classical music, so I know that I should be grateful for the opportunities chance has given me. I miss it a lot though and I hope to get back to practicing soon.

Posted in: Uncategorized

Post Navigation

« Previous 1 2 3

Archives

  • September 2023
  • February 2023
  • January 2023
  • October 2022
  • March 2022
  • February 2022
  • December 2021
  • July 2020
  • June 2020
  • May 2020
  • May 2019
  • April 2019
  • November 2018
  • September 2018
  • August 2018
  • December 2017
  • July 2017
  • March 2017
  • November 2016
  • December 2014
  • November 2014
  • October 2014
  • August 2014
  • July 2014
  • June 2014
  • February 2014
  • December 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • March 2013
  • January 2013
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • January 2011
  • December 2010
  • October 2010
  • September 2010
  • August 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • September 2009
  • August 2009
  • May 2009
  • December 2008

Categories

  • Actuarial
  • Cycling
  • Logs
  • Mathematics
  • MIES
  • Music
  • Uncategorized

Links

Cyclingnews
Jason Lee
Knitted Together
Megan Turley
Shama Cycles
Shama Cycles Blog
South Central Collegiate Cycling Conference
Texas Bicycle Racing Association
Texbiker.net
Tiffany Chan
USA Cycling
VeloNews

Texas Cycling

Cameron Lindsay
Jacob Dodson
Ken Day
Texas Cycling
Texas Cycling Blog
Whitney Schultz
© Copyright 2025 - Gene Dan's Blog
Infinity Theme by DesignCoral / WordPress