Jehzlau's Resize Index Javascipt - Old Database Free Broadband Internet By Google! - Old Database W3C XHTML 1.0 Strict to 1.1 - Old Database I have passed! At long last! - Old Database Valid XHTML 1.0 Strict - Old Database Cool Thumbnail Generator - Old Database The Cheapest Webhosting Service on the Planet - Old Database

Friday, April 06, 2007

Jehzlau's Resize Index Javascipt

Sa wakas, nakagawa na rin ako ng javascript for my site. Kasi kelangan ko mag iba yung design to fit in 800x600 screen resolution. Kaya gumawa me ng javascript function para mag load ng ibang CSS pag iba ang screen resolution. Pero actually di pa to perfect. Di ko alam paano e load yung CSS kaya buong index niload ko, tapos sa loob ng index na yun nalang nakalagay yung CSS. Sa CSS kasi lahat ng images ko kaya wala na problem sa pag resize. Kaya yun. Nag isip isip me paano ko gawin na ma view parin ng maganda sa 800x600 screen resolution. Ang base resolution ko kasi ay 1280x1024, and minimum resolution ay yung standard resolution na 1024x768.

Pero paano kung 800x600 na. Pangit din kasi kung mag base ka sa 800x600 unless liquid layout ang CSS mo, yung ma stretch siya. Maganda din naman yun, pero pag marami ka ng images, pwede mo din naman gamitin yung sa The Man in Blue na CSS dependent layout, cool to! check it out here, or yung sa A List Apart na technic nakalimutan ko na, yung pag e resize mo browser mo, mag ra wrap yung image at liliit din, I mean mag auto crop siya, pwede mo siyang ma view kahit sa anong resolution, kahit sa cellphone or sa PDA, astig diba?. update ko nalang tung post ko pag na alala ko. hehehe.

Pero, puro nalang ako pero. Gusto ko kasi gayahin yung sa yahoo.com. Try mo change ang resolution mo to 800x600, mag iiba yung page ng yahoo, mawawala yung scroll bar sa gilid ang lilipat na siya sa gitna. Tapos adjust mo ulit sa normal resolution mo na 1280 or 1024, mag iiba ulit yung page. Kaya yun ang gusto kong mangyari, ganda kasi. E sheshare ko lang yung javascript, alam ko makaluma na to na method, pero ok parin, pero hindi valid XHTML to ha, HTML 4.01 transitional lang siya, pero ok na rin, di naman to magiging index mo, ma reredirect ka sa ibang index na compatible sa resolution mo.

Okey, simulan ko na. Una gumawa ako ng function, nilagay ko nalang ay jehzlau, ehdi sa javascipt eto ang kalalabasan.

function jehzlau () {
//### Dito ang mga condition ng javascript }

Yan, tapos lagay mo sa loob yung condition mo sa function. First, dapat e define mo yung variable na gagamitin mo. So: var width tapos anong klaseng width, ehdi ganito na.
var width = screen.width;

after nyan, ilalagay ko na yung condition ko na if screen with is lesser than this ganito ang mangyayari.

var width = screen.width;if (width<1024)location.replace('1/index.php');elselocation.replace('2/index.php');


yun nasa else, yun yung gagamitin mo na index pag ang resolution ay 1024 or higher than 1024. Tapos yung 1 at 2, yan yung folder na pinaglagyan ng image mo (for super duper newbie, hehe). Kaya pag ipag sama sama natin yung functions magiging ganito na:

function jehzlau(){ var width = screen.width;if (width<1024)location.replace('1/index.php');else style="color: rgb(51, 51, 0);">then lagay mo sa baba yun name ng function, para sa body, kaya magiging ganito na siya:

function jehzlau(){ var width = screen.width;if (width<1024)location.replace('1/index.php');else style="color: rgb(0, 0, 0);">Then, lagay mo sa body mo na. onLoad="jehzlau();", Para e execute niya yung function at e detect nya yung resolution mo, lalagyan ko pa to ng sample para makita niyo, para saka na kasi mahal na araw ngayon, at aalis na me, mag coclose na office eh. half day lang kami. Hehe... til next time. :)
P.S.: Don't forget na ilagay mo sa loob ng script tags inside your header tags :), tapos kayo nalang mag indent ng script, sayang kasi space. For questions, leave me a comment. :) Post ko nalang example pag maka lugar next week, or baka bukas. hehe. At edit ko nalang to, magulo kasi, walang code tag dito sa blogger. Amf! huhu

Monday, April 02, 2007

Free Broadband Internet By Google!

Sick of paying for broadband that you have to, well, pay for? Introducing Google TiSP (BETA), our new FREE in-home wireless broadband service. Sign up today and we'll send you your TiSP self-installation kit, which includes setup guide, fiber-optic cable, spindle, wireless router and installation CD. Grabe! Muntik na akong maloko neto, buti nalang nag search2x muna ako tungkol sa TiSP na eto, wala namang ibig sabihin, nabasa ko tuloy sa TechCrunch na pang April Fool's Day lang pala to. Sayang kala ko totoo na yung Free Broadband Internet na to. Hayyy...

I was almost fooled talaga, (fooled ka na talaga Jehzeel, ayaw mo lang aminin). Tingnan niyo, may diagram pa kung paano gumagana ang TiSP ng Google!













Pero, it's really cool parin, kala ko totoo lahat sinasabi ng Google eh, naalala ko April Fool's Day pala kahapon, ngayon ko lang din to nabasa, late ako ng isang araw! waaahh!! Pero astig talaga to, parang totoo. Matatawa ka lang kasi bakit sa Toilet pa ilalagay, ang weird talaga, pero mapapaniwala ka talaga pag nag google ka tapos kinlick mo yung link sa baba ng search engine nila. Hehehe.. Sa palagay ko, more than 75% ng mga Googlers ang napaniwala ng Joke na to. Nice one Google! Happy April Fool's Day sa lahat! ;)

Friday, March 30, 2007

W3C XHTML 1.0 Strict to 1.1

Whew! naging valid din ang page ko sa XHTML 1.0 Strict sa http://dostscholars.com/adec5 na web project ko sa ADEC, yey! Strict kaagad, di na ako dumaan ng Transitional. Dami palang bawal sa Strict DTD. Di pwede gumamit ng onSubmit, attribute na name sa form. Ang lahat ng close tags ay dapat naka slash. Basta ang dami if you try to validate your HTML 4.01 and Convert it to XHTML 1.0 Strict dami ka makikitang pagkakaiba. Yung page ko naayos na, kaso tinanggalan ko ng AJAX Check Username feature. Marami kasi syang ampersand sa code, ayaw ng XHTML. Nung nakapasa na ako sa 1.0, sinubukan ko na mag 1.1. Ayun nakapasa din, isang error lang tapos nakapasa na ang page ko sa XHTML 1.1!!! The Latest Document Type Declaration ng W3C, and I'm proud of it. I have another interoperable Web Page na nagawa! Yes!!! Eto ang results ng validation ko :)















Yan, XHTML 1.1 talaga. Latest Document Type Declaration yan ayun sa W3 Consortium or World Wide Web Consortium. Sila po ang nag seset ng web standards para compatible sa lahat ng browser ang mga pages natin at nagbibigay ng guideliens para makagawa tayo ng isang maganda at error free websites. Para handa na tayong lahat sa future ng Web. May Web 2.0 na, baka someday may Web 3.0 na at hindi na ma view ang ating mga webpages. Buti na yung handa, kaya sa mga gustong mag prepare sa future ng inyong mga alagang web pages, e validate niyo na. Weeeeeeeee!!! Ang saya!
Valid XHTML 1.1
You can check my site if it's really XHTML 1.1 Valid here. Nakuha ko na rin ang XHTML 1.1 icon, syempre meron din me XHTML 1.0 Strict, pero mas maganda tong 1.1 kasi may latest. To know more about this XHTML things, you can click here. That's all for today. BRB soon ^_^

P.S.: For those who are not updated, may XHTML 2.0 na rin, kaso di pa available for validation, nasa draft phase pa siya, for more information about XHTML 2.0 click here.

Thursday, March 29, 2007

I have passed! At long last!

Yey! WohoOOOooo!! Ang saya ko! hehe.. nakapasa ako! yesHH!! San nga ba? sa board exam? Nope, di naman me nag board eh.. sa bar exam? hindi rin... Sa... isang napaka hirap ng certification test? Ahmm.. Hindi rin :) Eh san nga ba? Ehdi sa Web Standards! Hehehe.. Valid na rin ang HTML 4.01 na ginagawa ko para sa ADEC. Yes! tagal ko vinalidate, pero hindi parin valid for XHTML like nung sa MSN. Dami pang errors, 27 errors nakita nya, halo halo kasi eh. Naka integrate na PHP files ko sa index ko. Kaya bumaba ako to HTML 4.01 Transitional, ayun nakapasa, tapos nag try ako pumasok sa Strict DTD. Isang error nalang ang nakita sa index ko. At yung error na yung ay target="_self". Ewan ko ba masyadong strict yung W3 Validator, di ko maintindihan bat invalid yung target sa form ko. I removed that tag, at wala namang nangyari sa log in form ko, ok parin. Kaya nag revalidate ako for Strict DTD, at sabi ng Validator ay:

Result: Passed validation
Address:
http://dostscholars.com/adec3
Modified: (undefined)
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Size: (undefined)
Content-Type: text/htmlEncoding: windows-1252
Doctype: HTML 4.01 Strict

This Page Is Valid HTML 4.01 Strict!

The document located at <http://www.dostscholars.com/adec3/> was checked and found to be valid HTML 4.01 Strict. This means that the resource in question identified itself as "HTML 4.01 Strict" and that we successfully performed a formal validation using an SGML or XML Parser (depending on the markup language used).
To show your readers that you have taken the care to create an interoperable Web page, you may display this icon on any page that validates. Here is the HTML you could use to add this icon to your Web page:

Valid HTML 4.01 Strict

Yun lang po, tagal na me di naka post dahil lang dito. Next part is the dynamic part na. Sana matapos ko na to at makauwi na ng Manila. Hayy... :(
NOTE: Pag e click niyo yung W3 icon sa taas, invalid yan, 100+ errors found, blogspot ko kasi yan, paki change nalang ng dostscholars.com/adec3, yun lang po, talamat :) be right back muna validate ko din kasi CSS ko. hehe.. May walong error, amf!!!
Isa pang Note: Alam ko 90% sa mga readers ko walang paki dito sa post na to, kaya ok lang yun, sa mga taong web standard conscious or compliant lang ang magkaka interest na basahin to. Yung mga taong perfectionist sa Web 2.0. Pero kung la ka paki alam sa Website mo, you don't bother to validate your page, kahit invalid basta website, paki ko ba? Navivisit naman at nakaka pag browse diba? hehe.. cge po babay na :)

Friday, March 23, 2007

Valid XHTML 1.0 Strict

In the world's Top 3 Websites, only Microsoft Network passed the W3C Validator. It is the only valid XHTML 1.0 Strict among rest top sites, like Yahoo and Google. Yahoo has 37 errors while Google has 64 errors. If you don't believe, better check it here. Is it really necessary to pass the Markup Validation Service? I think it's not that important, but for others, it's really necessary to maintain the Web Standards. Our website should have no tables, the layout should only be in CSS, and only plain data should appear in the HTML file.

Tables should only be used in tabular data. So we should not used ImageReady to slice out pages, and spacer.gif should not be used also. We should be familiar with CSS and XHTML, and HTML 4.01. This is the web's future. No colored scrollbars, and IE will be dumped because of supporting such features that doesn't comply with the web standards! Waaaaah!!! Pero ok rin yung web standards. Full support ako sa pag implement ng W3C standards na to, to make bring back to web, parnag FireFox motto. "Bring the Web Back!". Does IE sucks? because more and more, and more developers hates IE. Hayyy... yung friendster ko pa naman di na veview sa FF. Kaya standards are very very important. But why Google and Yahoo does not comply with the standards? Yahoo pa naman ang #1 Website in terms of site traffic, pero they don't comply with the web standards. Tapos yung MSN lang ang nakita kong valid XHTML Strict, pero yung browser ng Microsoft supports colored scrollbars. Dapat nga ba tanggalin ang colored scroll bars? Dapat nga bang mag FireFox? There are so many questions that buggles my mind, and the worst of it, is I can't answer those mysteries, those web mysteries na big deal to me, and small deal to others. hehe yun lang po. Babush ;)

Thursday, March 22, 2007

Cool Thumbnail Generator

This site is so cool! I just wanna share it to you. But, if you already knew this site, then please, don't continue to read the rest of my post. :) In the obscure abstract reasoning of a schizophrenic dilemme, any instances can manipulate unseemingly obsolete crantitionizing facts of a real world. But, for now, let's say, that it would not be easily comprehended by the myriads of people around us. Hehe. Naintindihan niyo ba? Ako hindi. Di wala lang, gumagawa lang ako ng sariling words ko. Only a geek can understand it. Okey???! Let's go back to my topic. The PHP+AJAX Thumbnail Generator! Lagay mo lang URL ng site mo may thumbnail ka na. You can also download it as a Zip File! No Need to press Print Screen, Open Photoshop or Paintbrush, Control+V, Resize, then Save As JPEG, or any format that is suitable to your needs! Eto ayus na, hanep pa, astig pa! OooopS! Wait lang ha copy paste ko muna post ko sa notepad, mahaba haba na din kasi baka biglang mag error ang blogger ma badtrip nanaman ako. *CTRL+A, CTRL+C, Open Notepad, CTRL+V*...

Yan ok na may backup na ako ng post ko. Try niyo nalang tong site na to para matapos na tong munting post ko ngayong araw na to. Basta it's very cool talaga. Try it now na ^_^

Thursday, March 08, 2007

The Cheapest Webhosting Service on the Planet

250 Gigabyte Webspace, 2 Terabyte Bandwidth, Free $700 CoffeeCup Software, Free Domain For Life, Unlimited E-mail Accounts, Unlimited Mail Forwarders, Unlimited MySQL Databases, Almost Everthing is unlimited for only $6.95 or Php 330.00. And, if you upgrade to a business plan the Webspace is UNLIMITED! 4 Free domains for life! Whoa! Nabighani ako dito nung una kong nakita! Grabe sobrang mura! If you'll visit the site, and a newbie in webhosting services you'll probably get scammed! Yes! It's a big old scamming thing! Lunarpages is the most well known fraud webhosting company ayon sa akin, at ayun sa Google, kasi siya ang first sa search results eh. You better check their website, at hahanga ka sa mga "pre-made" testimonials ng clients nila.

They are affordable and reliable... O c'mon reliable? affordable nga! pero scam naman, you'll waste your hard earned money for the very very verrrrrry cheap service na wala ka namang makukuha! hehehe... Here are some of the fake testis from the fake clients that really don't exist:

1. “Lunarpages ROCKS! We got our website up and running in no time. They offer lots of great features with more-than-reasonable prices. Thanks, Lunarpages!”
2. "Lunarpages has been a joy to work with. Especially the representative I have worked with directly. To have an actual person to talk to (particularly in this business) has really meant a lot to me."
3. "...the support center has been so attentive to my needs. I am continually amazed that I get responses the same day I ask the question. You have made me a loyal customer."

Hayyy... galing talaga manloko ng mga manloloko. Better check their website for more information. Nainis lang talaga me sa kanila! grrrRR!!! Beware of Lunarpages Scam it's a big scam, and it's a true scam. Let me say this: "Lunarpages !##$^#$!!!!" hehehe...

For a good and scam-free webhosting service, better check http://marvinsweb.net, http://accuwebhosting.com or http://www.mamboserve.com/ or kung may ma recommend pa kayong honest and affordable webhosting service, you can leave a comment to my blog. hehehe. Yun lang for today. Smile :)