Blog Site map
Works Profile



Endorse endavid on Coderwall

[Valid RSS]

This page is the latest incarnation of my official website. It’s a compendium of things I have published and other stuff I made during my spare time.

In this blog, I will keep track of the updates of this site. If you are interested, just subscribe to the RSS feed.


Prettify code bits in this blog
Sun, 30 Mar 2014 13:05:34 +0100
As you may have noticed, I've been trying to update this site a bit this weekend. Apart from drawing some simple emoticons , I also added the "share" buttons, and added more quotes to the top banner.

Today, I have added Prettify, so in case I want to post bits of code, they should be nicely formatted. Here's a test,

/**
 * @return a point sample of a Spherical Harmonic basis function
 *  l is the band, range [0..N]
 *  m in the range [-l..l]
 *  theta in the range [0..Pi]
 *  phi in the range [0..2*Pi]
 */
double SphericalHarmonics::SH(int l, int m, double theta, double phi)
{

    const double sqrt2 = sqrt(2.0);
    if(m==0) return K(l,0)*P(l,m,cos(theta));
    else if(m>0) return sqrt2*K(l,m)*cos(m*phi)*P(l,m,cos(theta));
    else return sqrt2*K(l,-m)*sin(-m*phi)*P(l,-m,cos(theta));
}
This code, by the way, is part of my Harmoniker app that you can find in github.

 
Twitter share button added
Sat, 29 Mar 2014 15:30:57 +0000
Apart from adding a Tweet button to posts, I also fixed (I believe) the problem of the previewed text when sharing in Facebook (and Google+?). I had to rewrite the blog parser completely, so now I can change the meta attributes of the generated page. Let's see how it goes... (Facebook scrapes your page every 24 hours to ensure the properties are up to date. So I guess I'll have to wait)

 
Share in Facebook or Google Plus
Sat, 29 Mar 2014 09:22:52 +0900
I added +1 and Like buttons to every post, so at least even if I don't have comments in this site, people can share it and comment in their favorite social network. Not that I post much here anyway ...

The only problem I have so far is that the contents of what you share don't seem to preview properly in either Facebook or Google Plus. They don't show the text of this post :( Perhaps they don't like PHP? I also tried adding a meta name="description", but it failed as well

 
Happy New Year 2014!
Sun, 05 Jan 2014 09:37:29 +0900
Happy new year! The year of the horse in Japan!
I start the year with problems with the app store. I forgot to renew my dev membership, so Snake on a Sphere was removed from the app store. I just renewed my membership today, so hopefully the game should be back online soon.

 

Previous year