“I believe that whatever you do in life, do it well, go above and beyond. Otherwise, why bother?”
– Neda Ghazanfarpour

Archive for January, 2010


23
Jan

Free accommodation gift certificate

18
Jan

I noticed this when I uploaded an entire project files from dev server to production server. Using Web Developer plugin for Firefox, I had a clue to compare the Content-Type from the response header and the one I have in <meta> tags in my HTML.

1
2
3
4
5
6
7
8
9
10
11
12
Date: Wed, 25 Nov 2009 01:32:28 GMT
Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.7 with Suhosin-Patch
X-Powered-By: PHP/5.2.4-2ubuntu5.7
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 6572
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
 
200 OK

And it was really it! Though they both have text/html, they had different character set values. Server responses with ISO-8859-1, but the <meta> instructs the browser to use utf-8, as it is declared in the document.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

And so the second load of page occurs, its sort of trying to correct page encoding on the client-side. In the script I was working, I needed to pass some session values to the next page and clear it on page load, but when it reloads the second time, the session value had been emptied.

Hope it helps.

04
Jan

Regular Holidays

  • New Year’s Day – January 1 (Friday)
  • Maundy Thursday / Good Friday – April 1 / 2 (Thursday / Friday)
  • Araw ng Kagitingan – April 9 (Friday)
  • Labor Day – May 1 (Saturday)
  • Independence Day – June 14 (Monday), moved from June 12
  • National Heroes Day – August 30 (Monday)
  • Bonifacio Day – November 29 (Monday), moved from November 30
  • Christmas Day – December 25 (Saturday)
  • Rizal Day – December 27 (Monday), moved from December 30

Special (non-working) holidays

  • Ninoy Aquino Day – August 23 (Monday), moved from August 21
  • All Saints’ Day – November 1 (Monday)
  • Christmas Eve – December 24 (Friday)
  • New Year’s Eve – December 31 (Friday)

Others

  • 1986 EDSA People Power Revolution anniversary – Special holiday for schools – February 22 (Monday), moved from February 25
  • Eid’l Fitr and Eid’l Adha 2010 – To be announced later
  • Founding Anniversary of Iglesia ni Cristo – July 27, 2010 – Special national working holiday

Source : http://www.pinoymoneytalk.com/philippine-holidays-2008/