Improving loading speed
First, it will ask you to complete the following suggestions.
and if you do what they suggested, you should get an optimized page, something like this...
which I think is cool. Way better if you serve many people and if you reference your SRCs wisely, chances are they don't have to download all those images, and just depend on HTML data. That's how it is designed and the web consortium designed it like that, to provide an easy, yet convenient way to communicate data over internet.
80% before deployment..
I decided to just use on a flat database compared to the MS SQL 2008 DB (which is really small, so stiff that I have to develop an algorithm to just use 100MB of MS SQL DB as a buffer and rely on the physical storage as a database, thru an access file). It works as I expected until I decided to just keep the MS SQL 2008 DB for webservice that I might use in the future (probably for costing ads or review things...).
And URL encoding.. I know I should have, but for some reasons, I didn't (purposely)...
before asking me, please search in google for these words.
生産,seisan,produce, makejapanese sentence patterns |sayinjapanese
and, see the results while putting your attention on the "GREEN URL" part.
if you don't get it, just try making a sitemap with text like that and submit it to google, then try to fetch it as a googlebot. try it. it would be best if you do..
Just a few days more... I hope I can grab my credit/debit soon so I can up this as soon as possible. The worst case scenario is that, all banks will be close until January next year.....
Philippine banks' PayPal codes
BANK NAME | 9 digit bank code |
ALLIED BANKING CORP | 010320013 |
AUSTRALIA NEW ZEALAND | 010700015 |
ASIA UNITED BANK | 011020011 |
BANGKO SENTRAL NG PILIPINAS | 010030015 |
BANGKOK BANK | 010670019 |
BANK OF AMERICA | 010120019 |
BANK OF CHINA | 011140014 |
BANK OF TOKYO | 010460012 |
BANCO DE ORO (& EPCIB) | 010530667 |
BANK OF COMMERCE | 010440016 |
BANK OF THE PHIL ISLANDS | 010040018 |
CHINA BANKING CORP | 010100013 |
CHINA TRUST COMML BANK | 010690015 |
CITIBANK N.A. | 010070017 |
DEVT BANK OF THE PHILS | 010590018 |
DEUTSCHE BANK | 010650013 |
EAST WEST BANK | 010620014 |
EXPORT & INDUSTRY BANK | 010860010 |
FUJI BANK | 010640010 |
HONGKONG AND SHANGHAI BANK | 010060014 |
INTL COMML BANK OF CHINA | 010560019 |
INTL EXCHANGE BANK | 010680012 |
JP MORGAN CHASE BANK | 010720011 |
KOREA EXCHANGE BANK | 010710018 |
INTL NEDERLAND BANK | 010660016 |
LAND BANK OF THE PHILS | 010350025 |
MAYBANK OF THE PHILS | 010220016 |
METROPOLITAN BANK & TRUST CO | 010269996 |
PHIL BANK OF COMMUNICATION | 010110016 |
PHIL TRUST COMPANY | 010090039 |
PHIL NATIONAL BANK | 010080010 |
PRUDENTIAL BANK | 010150018 |
PHIL VETERANS BANK | 010330016 |
RIZAL COMML BANKING CORP | 010280014 |
SECURITY BANK & TRUST CO | 010140015 |
STANDARD CHARTERED BANK | 010050011 |
UNITED COCONUT PLANTERS BANK | 010299995 |
UNION BANK OF THE PHILS | 010419995 |
UNITED OVERSEAS BANK | 010270189 |
source(http://pages.ebay.ph/bankwithdrawal/bank_codes_ph.html)
Access as DB
then I looked at my VAIO P, it is 256GB and the RAM is 2GB, but still it is fit enough for development task. I had a thought of using the 100MB MSSQL 2008 DB space as a buffer and take advantage of the storage space using access DB.
with this, I can deploy the CMS of the website, be a web application or even a windows application. I can make the data model isolated and make a web service to invoke actions that will transfer data from the buffer to the access storage. of course, I need to make several files and I have to be sure to make backups as much as possible since access DB is much prone to be corrupted than SQL DBs.
just a little bit more.. I can't wait but it is also hard to type when your fingers get numb... (I'm starting to hate winter....)
Facebook hijacked?!
Targeting appropriate encoding
Sometimes, just specifying the code below will not save you
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=(yourtarget encoding)">
so, here are the things you must consider, especially for dynamic pages.
1. Check or specify an encoding for your output.
on asp, you can specify codepage = number, example 932 for SHIFT-JIS
2. If not dynamic page, try to save the file in that encoding.
you can edit the page, re-save it, and use the "UTF-8" encoding.
3. specify the html attribute lang.
it will not help much in formatting, but at least help search engine bots to find and
determine the content of your site/application.
4. Check the font.
There are also times that, it is the font family that you're using that prevents the text to be rendered properly. For example,
日本 will be displayed as 日口 when using Copperlate Gothic Light.
5. Encode URL if you're using it as a link.
Since it will be used as a link, it will be passed in URL, and since the URL cannot accept non-ascii characters, there are possibilities of error. There won't be any problems in the SEO since, google can detect and convert them as the original text.
Url encoding will guarantee that a string will be passed correctly.
Another tool from Google. Page Speed Tool
When I first learned my HTML (I was 15 years old, that time), displaying webpages thru frames is just a new thing and almost seen it everywhere. that time, if you understand HTML, you can be a web programmer (and a plus if you know javascript). All you have to do is, put your contents, put links, put images, put "Sorry, this site/section is under construction" sign, put noframes, noscript, etc... you just put everything, as in without consideration of user experience.
But now, if you still use that, it is like you didn't improve yourself for a long time. I don't want to sound mean, but when I see websites done using the Javascript preload method, I can assess their skill. Actually, I don't hate the javascript preload image way , in fact I used it many times, but that was when I was 15 years old, way back 11 years ago. I mean, if they want to pre-load images, just use CSS and preload the images there.
But still, that is like yesterday... I'm just fixing some last minute requirements (my cravings), for a website that I'll upload soon, and I really want to use this new Google Page Speed tool.
Page Speed tool seems to give your site a good diagnostic test and tips.
But in short, the only solution to this is to keep your files , as much as possible , limited.
On my site, I will just use 2 picture for the site layout and the other things will be from database. This technique is called "sprites", and no, before you open your mouth and let your soul go out, let me interrupt you that, this isn't a new technology. In fact, it was really really old, it was done as even earlier than you've seen Street Fighter or even Super Mario your NES (Family Computer).
Since you would minimize bandwidth usage by preventing browsers to download and download files, your site will load faster. If your website loads faster, your contents can be read faster, and (depending on your site) understand what you would like them to know. I know first impression is important, and last impression is lasting, but that is not the case when your page visitor doesn't even know you or in any way curious about you.
Great tool. Don't take my word for it. Use it and decide if your site is slow or not.
Difference between HttpInputFile and HttpPosted file.
Both are classes for uploads, with the first one, available on ASP.NET. But when you deal files , and you have to make ASP.NET controls for every file you need to upload... it will just make your application messy. (Well, ASP.NET is still a drag and drop, even those without solid experience in web development can still use it.).
But, using the HttpPosted file class will make your web app more flexible. All you have to do is to collect all the files posted and add them per posted file. You can also easily convert the stream to byte, and soon landing your database .
Saving Table structure in MS SQL 2008 not permitted
Actions that invoke this behavior involves adding new columns, changing the order of columns, or column data type).
Fortunately, you cna just unset this behavior by checking on Tools menu > Options and Designers then Table & database designers. Just un-check the checkbox "prevent saving changes that require the table to be re-created". and everything should be OK.
Galaxy JS error and redirect loop @ yahoo
and switching to classic view can at least make it usable, good thing they implemented their mail application without relying 100% to javascripts. but, suffers from the above (redirection loop).
is this a sign that yahoo is being hacked or someone just forgot to add ";" to their javascripts?
BUG in CSS 3.0?
What the bug does is that, it will ignore the states you apply on an element. It will remain on the default settings applied to it.
To have that scenario, you must reference your elements in hierarchy by many times. I wrote many CSS rules and access the elements in hierarchy, to get accurate at the cost of writing some element selectors over other.
When I encountered this bug, I tested it in FF (3.5.5) and Google Chrome (3.0.195.27). Both doesn't accept any rules I add, but once I remove some element.
example:
<div class="gray">
<div class="postButtons">
<a href="#" class="postReadMore" >
<span class="left"></span><span class="linkto">READ MORE</span>
</a>
<a href="#" class="postReadOTH" >
<span class="right"></span><span class="linkto">日本語で読む</span>
</a>
</div>
.postReadMore,.postReadOTH
{
float:left;
margin:10px;
}
.postReadMore span.linkto, .postReadOTH span.linkto
{
float:left;
}
.gray .postButtons .postReadMore:hover,.gray .postButtons .postReadOTH:hover
{
border-top:solid 1px #CCC;
border-left:solid 1px #CCC;
border-right:ridge 1px #000;
border-bottom:ridge 1px #000;
}
.gray .postButtons .postReadMore:hover .left
{
width:57px;
height:57px;
background: transparent url(../rchImages/sprites.png) no-repeat scroll -274px -202px;
}
.gray .postButtons .postReadOTH:visited .right
{
background: transparent url(../rchImages/sprites.png) no-repeat scroll -274px -202px;
}
.gray .postButtons .postReadMore:visited .left
{
background: transparent url(../rchImages/sprites.png) no-repeat scroll 0px -202px;
}
.gray .postButtons .postReadOTH:hover .right
{
width:57px;
height:57px;
background: transparent url(../rchImages/sprites.png) no-repeat scroll 0px -202px;
}
A step into Semantic Web - XFN
1. First, if you have a link (anchor), just add an attribute "rel on it.
2. The value of attributes are as follows (reference: http://gmpg.org/xfn/join)
<a href="http://mypartnersite.com/" rel="acquantance met co-worker">text for my co-worker site</a>
relationship category | XFN values |
---|---|
friendship (at most one): | friend acquaintance contact |
physical: | met |
professional: | co-worker colleague |
geographical (at most one): | co-resident neighbor |
family (at most one): | child parent sibling spouse kin |
romantic: | muse crush date sweetheart |
identity: | me |
3. Then, at your head tag, you must reference the XFN profile by adding an attribute "profile" and giving it a value of "http://gmpg.org/xfn/11" . and that's it.
< head profile="http://gmpg.org/xfn/11" >
I'm just thinking that doing this will improve the Web 3.0 - Semantic Web, since it will have something to check whether sites are in what way related or not. That, I'll have to find out and see what happen next. ^_^
Common functions in Web Development
From my previous worked, I'm able to create class libraries that significantly improved the way I develop applications. Because these things doesn't need to be designed again, and just by taking the necessary parameters, all I have to do is to pass these informations, then everything is just like assembling a lego puzzle.
These are few to mention:
1. Mailer - Almost every website needs this. Feedback, comment, suggestions? All of them require mailing functionality. You can use it in your Contact Us sections, or even on your automated things, where you need to spend time sitting in front of PC just to get a track of something. How about tracking that task with a mailer so once it is completed, you'll just be notified with an e-mail? Very convinient, isn't it?
2. Encryption/Decryption - Who wants their data easily readable in ABC. These function needs a couple of parameters , like a few matching code, salt code, encryption algorithm and a few loop and you'll be playing cryptologist in no time. You'll often use this on password forms, and if you want even more, you can even encrypt a whole data table but you have to compensate that security with an extra pain in storage (you'll also make your DB Admin a bit mad). The good thing here is that, your data is safe unless they know the algorithm you use and the parameters involve. Don't play with this unless you know what you are doing. Else it is like putting papers on shredders.
3. Web Functions - GET, POST, Session, Cookies,Form, etc. They are repetitive so writing a class library saves time. I always feel comfort doing AJAX with this library since I don't have to make messy additional codes, but rather just pass a specific variable, and everything will be ajaxified back.
4. Streaming Data - Do you need to output data into tables, excel document or even pdf files? Then you must make a class that will handle all the data stream and perform output stream to each request. Since all data are basically binary streams, you can easily make a class that handle stream data and just perform specific control for each file types (using the mime).
5. String Manipulation - the very basics of programming. add it up with regular expressions and you got a very powerful control class. While this might be basic, this saves me time. Millions of CDR needs to be parsed? No problem? Even a complicated task can be finished within minutes, depending on your computer.
6. Sounds - While this may be rare, doing so won't hurt. How about making a class that can invoke streamed data and output them to human audible sound. Not bad and I find it also interesting. (I just make my VAIO P speak up japanese words whenever I can't read some).
7. Network Related class- Imagine doing socket programming. What needs to be modified here is only a matter of port settings and few output preference. It can be easily done with a parameter that takes a port to open/listen and an output method to use.
And it is called Web Development. It may be hard at first but once you get a grasp of it, doing other things is just a matter of creative thinking and like exploring the back of your hand.
5E0 4L60R1THM - 自分の実験解析
Result after 1 week
I guess the web crawlers are working really hard that they manage to crawl to the site easily. Also, the pages will appear delicious to the bots, since it is catered to provide the information they need in a way they can easily understand
But good thing is that, even if it app.ears smashed in the address bar, it is properly displayed in the results page. So at this rate, the strength of the website can be determined by the amount of useful information provided, of course, made easy by MVC approach.
Recovering of Partition Table Information
Self Generating Contents Website in less than 60 hours
CONTROLLER <======> VIEW
|^
||
||
MODEL<================
Google changed their sitemap format
<urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>
<url>
URL
</url>
<lastmod>DATE</lastmod>
<changefreq>FREQ</changefreq>
</urlset>
To this
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>URL</loc>
<lastmod>DATE</lastmod>
</sitemap>
</sitemapindex>
Windows 7 - How to Enable the Start > Run from Start Menu
Gundam RX78 : Sighted at Odaiba (Japan)
Installing Windows 7 : SUCCESS
First, this is just to prepare for the VAIO Type P that I preordered. It is an owner made, running with Atom 550 (2.0Ghz), 256GB SSD HD, 2GB RAM. I took the Japanese keyboard, because the ENTER key is easier to hit and also, I want to type Japanese characters on my VAIO P as well. I also took the brown one over the typical silver, because the silver keyboard hits hard on fingertips while I feel much better typing on the brown keyboard. I also didn't take the Wireless WAN/GPS since I can live without it. It is binded to NTT Docomo but there are always some way to unlock it.
After few minutes, the Fighting Fish wallpaper shows up!
Google add warning to PRC website as HARMFUL?
Not only that. Once you checked PRC website, the browser will either stop or warn you that the site is not safe and may cause something to your computer. I hope they do something about this even before google or other search engine delete their indexes on search engine results.Result from Firefox
Result from Google Chrome
Result from IE. They even prevent the page from being displayed. I check my internet connection and it is perfectly OK. (In Tokyo, Japan)
Error in PHP when accessing SQL Express
Sony Vaio Type- P - Getting cheaper because of Windows 7?
Slowly killing time: Shibuya
A typical scene at Shibuya, Tokyo.
I always enjoy looking from above, watching busy people crossing the street.
I feel like time moves slowly and very relaxing.
Another apocalypse movie: 2012
Hoping for this to show in nearby theaters.
Finding a picture to fit on… TOKYO
I just realized how hard it is to live alone in Tokyo. I mean all by yourself, having no company to help you with the accommodation, finding job, etc. Consider this scenario. If one would try to find job here, first a shelter is necessary. There's no problem in food as you can just find everything you need in a nearby convenience store if cooking is a hassle and having limited budget. If you still find those convini foods to be expensive, try waiting around 9 – 11pm and the price will surely go down. Usually you can see this kanji引き (biki) preceeded by a number, which means, % discount. So if you see a bentou box with 500 yen tag and with 20%引き, it means you only have to pay 400 yen for it. And if you can see this ,
(hangaku) it means 50% discount or HALF – PRICE. | |
The condition to find yourself an apartment is that, you must have a WORK to start with or you must have a Japanese guarantor, someone who would stand there in case you would run from paying the rent (of course we know we won't do it, but there are different people too and we can't blame the owners). There is an option, but quite expensive. Staying on sakura houses might not be a bad idea. I can have my own room, having shared bathroom, toilet, kitchen, etc with other foreigners. With that amount per month, I can already rent my own apartment, provided I have Japanese guarantor and a present job. The monthly rent is really shocking if you would take Tokyo central places. But might suffer if you have to commute very far. The picture above is taken while I was inside a coffee shop. I was surprised because this pigeon walked from the park all the way to this place, and even waited for the traffic lights too. It walked all the way just to mingle with people in the coffee shop, hoping that they would at least share a part of what they are taking, quite a picture, isn't it. |
My 2nd year in Tokyo
Whew, I almost forgot that it was my second year here in Tokyo, Japan. How time really flies and I couldn't remember the things that happened, as I can still feel things as if they happened yesterday.
I happen to pass by a bridge, and beneath is a cemetery. There is also a water gate next to it, controlled by a sluice gate somewhere. I walked straight and straight, looking a something that I can't even describe, but I feel like I need to go there. Very weird, but it gave me a good exercise walking.
Then on this (I saw some sign, Aobayama, nantoka... something.. I'm getting drowsy since Ihaven't eaten anything and I'M tired and also quite exhausted because of the rain torrents, walking without the umbrella ....). I felt really worried. I looked around and at night time, it seems really dark on these areas. I hope somebody has been there for them, that those who do this act can't do their foolish acts without getting a fight or something..
Making A Web Crawler :
Web Layouts: What differs a Graphics Designer from Web Designer
Akihabara : A glimpse of a tradegy...
Ginza: Back to Feudal Tokyo?
What is this? Am I seeing this right? Am I in Tokyo, year 2009?