Apr/100
School School School
I don’t think I did well on that math quiz.
ECS midterm tomorrow. Study study. Randomized algorithms are cool but confusing to prove the time of.
Apr/100
Math quiz tomorrow
Man, I need to do better in math. Rawr.
The quiz should be on switching coordinate planes. Cartesian, polar, and spherical.
dA = dx*dy = r*dr*d(theta)
dV = dx*dy*dz = (rho)^2*cos(phi)*d(rh0)*d(phi)*d(theta)
x = r*cos(theta) = (rho)*sin(phi)*cos(theta)
y = r*sin(theta) = (rho)*sin(phi)*sin(theta)
z = (rho)*cos(phi)
And playing around with triple integral. And center of mass.
M = total mass
X(center) = (1/M)*(integral(f*y*df))
Y(center) = (1/M)*(integral(f*x*df))
Also supposed to know moment of inertia but he said it wasn’t that important.
GO GO THE POWER OF MATH!
Apr/100
Algorithmic Woes
I wish there was a clear-cut way to finding out the recurrence relation of an algorithm. I can’t seem to get it right most of the time. I can solve the relations, but setting them up is hard. Finding the actual primitive to consider as the base is challenging. Doing the step-by-step analysis is all right. Unwrapping is a pain but not because of complexity, but because of how tedious it is.
Midterm this Thursday. Did a lot of reading on linear-time median finding. I don’t like how the Big-5 method is considered linear, but the math works out that it is linear for a certain constant value of actions.
The Master theorem is love.
T(n) = a*T(n/b)+f(n)
Where a >= 1, b > 1, and f(n) is non-negative
case 1: If f(n) = O( n^(log a/log b−ǫ) ), for some ǫ > 0, then T (n) = Big-Theta( n^(logba) ).
case 2: If f(n) = Big-Theta( n^(log a/log b), then T(n) = Big-Theta( n^(log a/log b) * log n)
case 3: If f(n) = Big-Omega( n^(log a/log b + o) ), for o > 0, and a*f(n/b) <= c*f(n) for some c < 1 and for all n greater than some value n’, Then T(n) = Big-Theta( f(n) )
http://www.cs.ucdavis.edu/~gusfield/cs122sp10/mastermethod.pdf
Still working on the homework problem of using random splitters. I need to properly understand analyzing random algorithms and (precise) expected values.
Apr/100
Reading the news
I am confused on why there is so much news about a tornado that struck. I never knew of the city’s existence beforehand. Only 10 people were killed. I guess it should still be recognized though.
Is angry that feds were looking at porn while at work. That’s like me getting money for sleeping.
Is interested in how the bill regarding the nation’s financial regulations will turn out later this week.
Sees a possible problem brewing between Japan-US relations from the still ongoing occupation with US Marine-base in Okinawa.
Apr/100
Adventures in Drupal
So I set up drupal for a website I am maintaining.
1. editing the php files saves a lot of time
2. I hate how you can’t edit the theme within admin (have to change it via shell or ftp)
3. It gets bulky really fast
There are a lot of modules and a lot of modules are built on top of other modules. There are a lot of modules that don’t do what you think they should.
I hate how the name of the user is coupled with the title and such for profile viewing of user/ pages.
To uncouple I had to edit 2 files,
modules/user_list/user_list.module (because I am using the user_list module for viewing all users)
look for “while ($account = db_fetch_object($result)) {” on line 132
Remove the first line of the while loop and insert
$uacta = $account;
profile_load_profile( $uacta );
if ( strlen($uacta->profile_name) > 0 )
{
$uacta->name = $uacta->profile_name;
$users[] = $uacta;
} else
$users[] = $account;
———
modules/user/user.pages.inc
look for “function user_view($account)” on line 162 and insert this into the function:
$uacta = $account;
profile_load_profile( $uacta );
if ( strlen($uacta->profile_name) > 0 )
$account->name = $uacta->profile_name;
This changes the title.
This does not really decouple, just changes the output title. So it doesn’t mess with the rest of the drupal stuff
Apr/100
4th week already?
Last quarter of my freshman year is moving by pretty quickly.
Midterms ahoy! Physics on Friday. Philosophy and ECS midterm next week. Math and History in 2 weeks.
Writing a paper due tomorrow at 1:40. Just doing the work cited, I hope I do kinda okay on it.
Did some more website work.
Got a part time job, 10 hours a week working on the website for a CS research group, Empirical Software engineering.
Worked on a freelance job for 3 hours. $50. Another website gig, just touchup with styling in css and some Jquery. More wordpress.
I don’t like the physics teacher’s method. He doesn’t fully explain what he’s going over in class, he just starts drawing diagrams and writing equations. The TA is really good though. She actually goes through the problem, gives us time to do it, then goes step by step of how she would do it.
The ECS teacher is meh. He just regurgitates. Mostly from the book, but sometimes he gets algorithms elsewhere. I guess it’s the material though. You can’t really teach it any other way.
History is fun, I always doze off during class though. It’s either too cold or too hot in the classroom. And I don’t eat a proper meal before class most of the time.
Philosophy is a kill joy. Questioning everything is just nonsensical.
Math is math. Too early but at least the teacher is good. He makes math seem interesting.