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!!
Wednesday, October 12, 2011
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)
Pictures: (Lorraine kulang pa mga pictures)
Wednesday, April 13, 2011
HOWTO: Patch & Rebuild a Package asterisk now
HOWTO: Patch & Rebuild a Package
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...
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)
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

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

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!

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!!!!
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!!!!
Subscribe to:
Posts (Atom)