Wednesday, October 12, 2011

Brainstorming Inspiration

I was just like brainstorming in one of my project and when finally i got the solution I was inspired by this quote "The balance between benefits and defects is much more easily improved by removing defects than increasing benefits". We'll I'm just good at thinking i guess?  harharhar!!

Tuesday, October 11, 2011

Googlebot makes POST requests via AJAX

   Googlebot is constantly evolving to better capture the web’s content. Over the past few years we’ve seen Googlebot submit GET forms and execute JavaScript. But we’ve always taken it for granted that Googlebot would never execute a POST request, nor would any other well-behaved web crawler.

   We were wrong about that. Recently, we started observing Googlebot making POST requests to thumbtack.com. As far as we can tell, such requests have not been openly observed before. These Apache access log excerpts show a few examples:

66.249.71.47 - - [04/Sep/2011:04:53:52 +0000] "POST /act/site/clienterror HTTP/1.1" 200 36 "http://www.thumbtack.com/ma/malden/dog-walking/dog-walking-and-pet-care-services" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

66.249.72.198 - - [25/Sep/2011:04:27:50 +0000] "POST /act/site/clienterror HTTP/1.1" 200 36 "http://www.thumbtack.com/ca/solana-beach/wedding-photographers/photography-cary-pennington-photography" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

66.249.72.207 - - [04/Oct/2011:09:53:08 +0000] "POST /act/site/clienterror HTTP/1.1" 200 36 "http://www.thumbtack.com/tx/san-antonio/painting/residential-commercial-construction-services" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

We’ve verfied the requests are coming from real Google crawler IP addresses:
$ dig -x 66.249.71.47 +short
crawl-66-249-71-47.googlebot.com.
$ dig crawl-66-249-71-47.googlebot.com. +short
66.249.71.47


    The source of the requests is our client-side JavaScript error tracking code, which installs a global JavaScript error handler and attempts to POST to our server when unhandled errors are detected on the client. The requests from Googlebot include traceback information, so it appears the code was genuinely executed and not simply parsed to extract links.

Now, this isn’t necessarily harmful behavior. In discussing request safety, RFC 2616 sec. 9.1.1 states:
The important distinction here is that the user did not request the side-effects, so therefore cannot be held accountable for them.
   In this case, the JavaScript code makes an unprompted POST request upon page load, not resulting from any user action. One might say that the request fits the above definition and is therefore safe, regardless of the request method. We conclude simply that this is a interesting new feature of Googlebot and one that webmasters should be aware of.

Monday, October 10, 2011

We Miss You Daddy.

   Kristine Gloria F. Milo says: Daddy, it's exactly 4 years now since you passed away. I miss everthing about you Dad. Thank you for your words of wisdom and most especially your unending love. I know you will always be there for me through all these times. I love you Daddy. ♥    

   Lorraine Grace F. Milo says: october nnman dad,bkt tuwing gntong buwan nhhrapan ako,last year..gntong buwan dn nun ng matapos ang lahat..hanggang ngayon dad,ntapos ult ang nasimulan ko..hnd ko alam pero pblik blik at paulit ulit ang skt.sb ni mama ako dw dn ang gmgwa ng ikakasakit m,marahil tama..ako nga ang problema..pinagsabihan nko at inwanan ng lahat..wla naniniwala at pilit bumabangon..dady!yakapin m nlng ako at sana dmo ak pgsbhan.aminado ako kasalanan ko.hnhrap ko..at hnd madali..nagmana ako sau..hehe.after 4 yrs dad,andito pa din ako.sory..alam ko hnd ka proud kung nsan man ak ngyn..magulo at pariwara ang buhay ko.pasaway at careless.clumsy pa! darating ang araw na magiging proud ka skn at sana this time maniniwala ka na sa akin..lahat ng pangaral mo hindi ko nakalimutan..nasaan ka man ngayon alam ko masaya ka.at sana tulungan mo ako na maibalik ang tiwala ng lahat lalo na sa mga taong mahal ko..sabi mo nga hindi ganun kadali..aayos nko dad..mskit na kasi..magparamdam ka sa akin wag kay mama.kasi pilit mo inaabot kamay nya sa panaginip..hindi ko kaya dad..aalagaan ko si mama at ang sarili ko pati na cla kuya at ate.panu?gaya ng mga pangarap m skn dati,lahat ng nangyayari ngayon ay may nag aabang na kinabukasan.. sincerely na bumabalik sayo:Ren=) miss ka na namin..i know ur in gud hands..we LOVE you! 

   What about Me and Mama? Well, today is our Father's 4th year death anniversary. It's pretty obvious on the title page right?? Anyways, You've seen my two sisters giving their insights on how we miss our daddy so much. Yesterday, Me Mama and my Sister Lorraine went out for a family bonding(sorry for ate tin she's out of the country working but still we felt your presence together with daddy). A family bonding that we've missed when dad is with us.  A typical Sunday family bonding; Go to Mall, Eat lunch, Coffee, watch movies, shopping(if we have extra why not harharhar) and eat dinner. You see how our family bonds, through Foods harharhar we ate a lot,  i admit that harharhar well sad is; too much food, daddy had diabetic harharhar peace daddy, just making this blog fancy. Well anyways, since dad is not around, i did my out-most best to make my mama happy because honestly, she misses daddy so much(even in her dreams, daddy keep on asking mama to go with him, but my mama says no, simply she wants to stay with us). So, we went to Edsa Shangrila to have a lunch in Kimono Ken restaurant, after eating we had a coffee at Starbucks, thats mama's favorite place simply because she's a coffee addict harharhar, then we watch the movie "No Other Woman" (arg! so much with that movie lets proceed harharhar ) and finally we ate dinner in Davao's best Foods restaurant. After dinner i told mama that if daddy ask you to go with him, tell him THE BIG NO, simply because we want mama to stay and express how we love mama so much.. (Don't worry Daddy we love you as well). Then today we went to church to pray. Overall, the anniversary ended up happy, of course daddy wants us to be happy thats why i make sure, we end the day with a smile.
   Well, honestly i miss daddy. Just like my Sister Tintin says, i also miss daddy's words of wisdom and most especially his unending love. I remember he even punch me in the face when i go home late because of some vices harharhar . whew!!! i guess I'm  the so called prodigal son, well thats my guess, but i was wrong. Daddy makes a way to let me feel that I'm not the prodigal son. whew!!! Daddy we miss you so much but we need to move on. Being the "first born" child, you don't need to worry dad, I'm here to stand as the father of the family. Whatever or No matter   what happens i will PROTECT and LOVE our family. It is not the flesh and blood, but heart which makes us father and son. We Miss You Daddy and We Love You.

P.S.
  Daddy, try to visit me as well and please don't ask mama to go with you! ano ba! harharhar

Pictures: (Lorraine kulang pa mga pictures)















Wednesday, April 13, 2011

HOWTO: Patch & Rebuild a Package asterisk now


HOWTO: Patch & Rebuild a Package

Postby Jerico James Flores Milo
Getting AsteriskNOW to do exactly what you need seems a little tricky at first for developers not familiar with conary. 


How do I recompile <somepackage>??
Where's the source code??
 



AsteriskNOW comes with all the development packages you need in order to get started, like gcc, libstdc++, etc.. 
But where's the source code? 


Short answer, there is none. 


This is because using rPath's technology, developers only need a set of instructions for the computer to follow in 
order to obtain the right results (binaries in this case). 


This is where recipes come in. Recipes tell conary where to get source code, what patches to add, and where to
 put it when its all done. Additionally, it can also specify libraries that it provides or requires in order to be built 
(this is a dream come true for packagers). I'm sure all the RedHat/Debian users all say 'but [RedHat,Debian] can do that' 


Well for anyone thats ever hosed a system by doing an 'apt-get upgrade' or something similar with redhat/yum you
 discover there are inherent problems with those package managers. Mainly due to their 'dumb' behavior, as in pull 
the latest package for that version of distribution. Well those binaries store limited amounts of history of buildtime 
dependencies (normally something libsomething.so.4) and can create problems when something like an api change 
made it into a non-major release of a library. 


This is where Conary is different. In each package, conary stores build & runtime dependency versions; down 
to what version of code, what version of recipe, and what build iteration. Granted it's still linux, but now
 with the ability to drill down to exactly where/when that package and its contents came from, as well as 
where to go for information on its dependencies. 


Now, after all thats out of the way, down to the nitty-gritty...

Making Conary changesets is a little different than making RPMS or debs (although if it makes you feel
 any better, some of the original developers of RPM created Conary) 


In this example will do a more complicated example which demonstrates the more advanced features 
of conary, just for good measure :wink: 


Say I want to add a patch to zaptel, (this requires building against kernel headers,
 hence more involved :o ) 


1. First, you'll need to checkout the recipe 


CODE: SELECT ALL
cd /home/admin/src
cvc co zaptel
cd zaptel




2. Now, place your patch in the dir, edit the recipe and add a line for your patch somewhere
 after the r.addArchive, but before the r.Configure 


CODE: SELECT ALL
r.addPatch('mypatchfile.diff')


NOTE: the patch will need to be generated from the top-level dir of the 
zaptel source (this is normally the case though)




3. Now we'll need to cook the recipe, you may need to specify a different kver 
and leave off the '[zaptel.smp]' if its non-smp


CODE: SELECT ALL
cvc cook --macro 'kver 2.6.17.11-1.1.smp.x86.cmov' zaptel.recipe[zaptel.smp]


This is where the 'complication' comes in. Normally you wouldnt need to supply 
all of these options, but since we need to build against a kernel we have to tell it exactly 
which one, otherwise CRASHBOOMBANG




4a. Now it might barf due to unmet dependencies which you can install with conary


CODE: SELECT ALL
sudo conary update <package>:<component> --resolve


4b. You may need to get the kernel headers too


CODE: SELECT ALL
conary update kernel:build-tree --sync-to-parents


If it builds successfully you'll end up with a <package>-<version>.ccs file, which will 
be in the directory from where you executed the 'cvc cook ..'




5. Finally. install the .ccs file via conary 


CODE: SELECT ALL
sudo conary update zaptel-1.4.0.ccs




Hope this answers most of your questions and best of luck! 8)

sabi ko lang.

umpisahan natin sa simpleng tanong na kamusta na kaya ako... well, as of now, I'm all okay.. nothing fancy.. just bouncin around... livin my life like a SHIT SANDWHICH... hhahaha and shit happens, man... hahaha but honestly I'm all okay, been moved and done shit like a dongz... been playing poker in Makati but im not that addict, just curious of what the hell poker is.. yeah.. what the hell, coz you got to play with some big shit ass politicians and bad ass businessman and a drunk old man with a chicksilog on the side... hahahaha.. i was just like what?? simple, and they even ask who I'am.. hahahaha edi sabi ko I'm Jerico James Milo... and they were like OHHHHH OKAY!!!! hahahahaha... taena mo bansot!!! hahaha joke lang... pero honestly magaling silang mag laro.. hahaha natural ako natalo hahaha pero meron isang game na nag ALL-IN ako at nanalo ako hihihihi oh ha... first timer pero nakatalo ako ng isang politician shit sa lipunan hahahaha... syempre nung nakita kong maganda ang card ko agad ako nag ALL-IN at sinabing "MUCK YO! SHIT!" hahahahaha  nagulat sila at sinabing galit ka? i told them sorry hehehe expression lang po ser! hahahaha.. pero syempre at the end natalo ako sa kabuuang laro... and then what? tapos na sa problemang PUSO.. pero tanong ko lang hehehehe kelan kaya muling titibok ang pusong pagod hahahaha oh ha pusong pagod what the hell... nah lets just say, im scouting... pero sana yung seryoso naman Lord. yung wlang sabit at single... hahaha pero nitong mga nakaraang araw merong nagpapasaya sakin pero hindi ko alam kung ano hehehe kaya nga im confuse.. but its okay.. let's see when we cross the bridge hehehe.. hindi ko alam kung ano eh.. pero parang isang miss pakipot.. hehehe YAN!!! pakipot yan ang  isang katangian ng isang girl ang nagugustuhan ko... ika nga sa kanta ng urban flow na miss pakipot, OKay lang sakin kung iyong sasabihin na akoy mayabang o mahangin. but i k now my chance pa ako na makamit ko ang matamis mong OO hahahaha.. What's the use of beauty kung ikaw ay ganyan. Pati ang puso ko ay nahihirapan. Halos araw-araw kitang inaabangan ,Sinusulyapan at napapanaginipan. Hindi ka na maaalis sa aking isipan Para kang si Eba at ako si Adan. Everything I do, I do it for you 'Cause there's no more love than my love for you. Ang pag-ibig ko sa 'yo 'sing bango ng Polo 'Sing tamis ng Milo, 'sing sarap ng Nido
I want you to know ang pag-ibig ko sa 'yo Ang pag-ibig ko sa 'yo sagad hanggang buto... hahahahahahaha CTG kita miss pakipot,suplada at maganda.. ehehehehe wal alang yun lang hahahaha chill lang... so bounce lang.. JAH!!!!

Thursday, December 9, 2010

Meteor Shower and Total Lunar Eclipse to Wow Skywatchers This Month

Meteor Shower and Total Lunar Eclipse to Wow Skywatchers This Month

Skywatchers, grab your blankets. December's night sky spectacular will feature the best meteor shower of 2010 as well as the only total lunar eclipse of the year -- sights that should outshine any New Year's Eve fireworks display in terms of sheer wonder.
The massive Geminid meteor shower returns every year, so you'll have more chances if the cold proves too daunting on the night of Dec. 13. But anyone in North America who skips the total lunar eclipse on the night of Dec. 20 will be missing what promises to be the best lunar eclipse show until April 2014.
This year's Geminid meteor shower is expected to be the best display of so-called "shooting stars" of the year and will peak during the overnight hours of Dec. 13 and Dec. 14.
Dazzling Geminid meteor shower
Like most meteor showers, the Geminids will be at their best after midnight (early on the morning of Dec. 14), when the Earth is heading directly into the meteoroid stream. But some will be visible earlier in the night, on the evening of Dec. 13, because the meteors' radiant (where they appear to originate) is nearly circumpolar, so they will stay in view above the horizon all night.
This sky map shows where to look to see the Geminid meteor shower in the direction of the constellation Gemini. Clear dark skies, of course, promise the best viewing conditions.
Anyone venturing outside should dress much more warmly than normal to prepare for a long night vigil while sitting still.
Don't forget to get comfortable: A lawn chair with a reclining back and a blanket or sleeping bag should keep skywatchers snug — no binoculars or telescope are necessary.
Most meteor showers are caused by fragments of old comets scattered along a comet's orbit. When the Earth passes through a comet's orbit, it sweeps up the fragments, which become visible as bright streaks of light in the atmosphere.
The Geminid shower is unique in being associated not with a comet, but with an asteroid called 3200 Phaethon.
The Geminids' radiant is, as the name implies, in the direction of the constellation Gemini, just north of the northernmost of Gemini's two brightest stars, Castor and Pollux. In the early evening of Dec. 13, the radiant is low in the northeast. By 1 a.m. EST, after the date has changed to Dec. 14, the radiant is almost directly overhead. By 6.a.m. EST, when the shower is at its peak in the Eastern Time Zone, the radiant is low in the west.
Moon's holiday treat
The December holiday sky show doesn't end with the Geminid meteor shower. On the nights of Dec. 20 and Dec. 21, parts of four continents will be treated to a total eclipse of the moon — the only one to occur in 2010.
This NASA lunar eclipse chart shows the visibility of the eclipse from different regions around the world.
The last total lunar eclipse occurred on Feb. 20, 2008. While there are two total lunar eclipses in 2011, North American skywatchers will have to wait until April 2014 for one as potentially spectacular as the eclipse occurring this month. [Amazing Total Lunar Eclipse Photos]
Lunar eclipses occur when the moon passes through a point in its orbit in which the Earth is directly between it and the sun. When the moon enters the shadow of Earth, it creates a lunar eclipse. Unlike a solar eclipse, no precautions to protect the eyes are needed.
total lunar eclipse is when the entire moon is completely inside the Earth's shadow. Since the sun's rays are bent by Earth's atmosphere so that some still reach the moon, the moon is still visible in an eclipse. 
Lunar eclipse skywatching tips
For the Western Hemisphere, the eclipse will "officially" begin on Dec. 21 at 12:29 a.m. EST (9:29 p.m. PST on Dec. 20) as the moon begins to enter Earth's outer, or penumbral, shadow. 
As for the Geminid meteor shower, don't forget to dress warm. But you won't be outside all night moongazing. This total lunar eclipse lasts only 72 minutes from start to finish.
But even in clear weather, skywatchers will not notice any changes in the moon's appearance until about 45 minutes into the event, when a slight "smudge," or shading, begins to become evident on the upper left portion of the moon's disk.  
The entire total lunar eclipse will be visible from all of North and South America, the northern and western parts of Europe, and a small part of northeast Asia, including Korea and much of Japan.
Totality will also be visible in its entirety from the North Island of New Zealand and Hawaii. In all, an estimated 1.5 billion people will have an opportunity to enjoy the best part of this lunar show. 
In other parts of the world, only the partial stages of the eclipse will be visible or the eclipse will occur when it's daytime and the moon is not above their local horizon.
Portions of western Africa and central Europe can catch the opening stages of the eclipse before the moon sets below the horizon during the morning hours of Dec. 21, while the eastern third of Asia and central and eastern Australia can catch the closing stages just after moonrise on the evening of Dec. 21. 
December's total lunar eclipse and Geminid meteor shower promise to ring the year 2010 out with a dazzling show, weather permitting, this holiday season. But bundle up and stay warm!
SPACE.com Skywatching columnist Joe Rao and Starry Night Software's Geoff Gaherty contributed to this December skywatching tips report.