Reduce HTTP request

Author: Rockia  |  Category: Web Design

I made a review on my coding style today and I found that I made a big mistake.

I always made a folder called “JS” and “CSS” when I first start scatching a website from blank. And I will put all different .js and .css files insides. For example, if I have 3 pages called “aboutus.php”, “main.php” and “jobs.php” in my website, I will put at least 3 different CSS files into the CSS folder; well, they will be mostly called “aboutus.css”, “main.css” and “jobs.css”. For certain of time, I found this very useful, like when I need to change the style of some elemetns under “main.css”, I can just look under the “main.css” and I don’t have to scroll the whole “css.css”.And ALL of these are stored in the files call “top.php” that will be contained in each pages.

However, I found this is a big problem today. IT INCREASE THE TIMES OF HTTP REQUEST!!!

OK, I guess no one will have the “style” in each different elements nowadays when we are going to write out the whole site. Most people, I will say 99.99%, will have the .css files as external links outside of the page. And example will be:

<link rel="stylesheet" href="css/index.css" media="screen"/>

Actually, when the browser loads this website, and it “sees” this line, it will make a request to the server for this “css/index.css” file. Here the first time. Like I said, if I have 3 different files, the browser will actually make 3 request to the server. This might not sound too bad. However, if I have another 3 .js files there. Then for each page, it will at lease send 6 requests to the server for all these external files before the page <body> tag was load; yes, that means, before you see anything on your screen, the server has 7+ requests already. Plus, there will be some more requests for the images and all different other medias (I will talk about those later on.)

Let’s say, if you only have 1 picture and 2 divs in your page, then your browser will make at lease 10 requests, and 6 of them were made before your page was displayed. And I have 3 pages, if the person is interested in my site and he/she wants to read all of these, then there will be 18 requests before pages’ content was loaded.

If we merge all these .css files into one, and all the .js files into one .js. We can save 2/3 of the requests in this case before the page content is loaded.

About Space Cube computer

Author: Rockia  |  Category: Tech Gadgets
Not kidding!!
Apple’s Macbook Air was said to be the thinnest ans smallest laptop on earth, and Space Cube should? be the smallest desktop in the whole world. 2in by 2in by 2in, that’s, 52 cm bye 52 cm by 52 cm. You can take a look at the picture below form engadget.com .
Of course, you can’t expect it will run some big stuffs there, but a system is a system. You can use RedHat to do lots of things already.
This Space cube is still a bit pricey, but hey, who knows? In the computer field, it changes almost every day. But there is always a trend that the size of computers are getting smaller and smaller but the hardware capacity is higher and higher.
[Source] Engadget.com
The two-inch-square Space Cube computer has apparently been making the rounds in Japan for some time now, but PC Pro has finally managed to sneak one into the UK and, thankfully for us, they’ve decided to share. This one packs a 300MHz NEC VR5701 processor, 64MB of RAM, a 1GB CompactFlash card, and a special version of Red Hat Linux, along with a single USB port, VGA out, built-in Ethernet and, most importantly for its target market, a SpaceWire port, which is used by the likes of NASA and the European Space Agency. Unfortunately for hobbyists that may have gotten their hopes up, while the price was initially estimated to be a reasonable $325, it now looks like it could be demanding upwards of 瞿1,500 (or over $2,700) but the time it’s officially released outside of Japan, although it seems like it will at least actually be sold to the general public.

Psystar responds to Apple suit, will countersue

Author: Rockia  |  Category: Tech Story

Since Apple imported Intel as the “heart” of Macintosh, it’s inevitable that OSX 86 projects will come up and take part of the cake. Psystar is one of the “brave” man to stood up and opened a store to sell PC-Mac to the public.

Things get more interesting now. Apple as the big guy in this case, yet they are not in a sure-win situation. I will keep my eye on this case and look forward to knowing who is the final winer.

To be honest, Apple won’t get anything even if they win. Psystar is an Inc. company and even if he lose, to the worst case, he will declaim bankruptcy and maybe start it somewhere else. Apple can’t do that all the time, one court might take up to 1 year to finish!!!

Second result is that Psystar wins. Apple not only need to pay for huge amounts of fee for court or even for Psystar. What’s more, the whole Apple industry will be shaken and we will see lots of “Macintosh” with the dress of regular PC case will come up to the PC market. And later, no one will ask “What computer do you use? PC or Mac?” Instead, they will ask, “What system do you use? Windows, Mac, or Linux?”

Source (CNET)

PALO ALTO, Calif.–Mac clone maker Psystar plans to file its answer to Apple’s copyright infringement lawsuit Tuesday as well as a countersuit of its own, alleging that Apple engages in anticompetitive business practices.

Miami-based Psystar, owned by Rudy Pedraza, will sue Apple under two federal laws designed to discourage monopolies and cartels, the Sherman Antitrust Act and the Clayton Antitrust Act, saying Apple’s tying of the Mac OS to Apple-labeled hardware is “an anticompetitive restrain of trade,” according to attorney Colby Springer of antitrust specialists Carr & Ferrell. Psystar is requesting that the court find Apple’s EULA void, and is asking for unspecified damages.

Springer said his firm has not filed any suits with the Federal Trade Commission or any other government agencies.

The answer and countersuit will be filed Tuesday afternoon in U.S. District Court for Northern California.

Pedraza attended a press conference his lawyers called to present how Psystar will defend its its OpenComputer Mac clone, which has been for sale online since April.

Psystar’s Open Computer, as seen shortly after its unboxing at CNET.

(Credit: CNET News)

Psystar’s attorneys are calling Apple’s allegations of Psystar’s copyright infringement “misinformed and mischaracterized.” Psystar argues that its OpenComputer product is shipped with a fully licensed, unmodified copy of Mac OS X, and that the company has simply “leveraged open source-licensed code including Apple’s OS” to enable a PC to run the Mac operating system.

Pedraza says he wants to make Apple’s Mac OS “more accessible” by offering it on less expensive hardware than Apple.

“My goal is to provide an alternative, not to free the Mac OS,” said Pedraza. “What we want to do is to provide an alternative, an option…It’s not that people don’t want to use Mac OS, many people are open to the idea, but they’re not used to spending an exorbitant amount of money on something that is essentially generic hardware.”

Apple will have 30 days to respond to Pystar’s counter claim, and so far has declined to comment on the case.

Other legal experts say Psystar faces a tough legal challenge in proving Apple has engaged in antitrust behavior by loading its software on its own hardware and thereby allegedly harming consumers and competitors. Psystar’s ability to prevail on the issue of having the latitude to load Apple’s OS on its own hardware, given it has a licensing agreement with the company, may prove an easier road to hoe, legal experts note.

A newcomer to the PC scene, Psystar caused a stir when it first went online selling white box Macs earlier this year. The site went down hours after it opened for business because the company was overwhelmed with orders for the OpenComputer, originally called the OpenMac, which was then changed to its current name. And the site went down several more times as its payment-processing company pulled its services from the Psystar site. Psystar managed to stay shrouded in a bit of mystery for a while, until intrepid gadget blog readers joined the press in fleshing out some details about the company.

Psystar eventually got back online with a new payment-processing service, and it continues to take orders for the OpenComputer and OpenPro Computer. When Apple finally did file suit against Psystar in July, it surprised nearly no one–except perhaps Pedraza. He said he had no contact with Apple before legal papers were filed against his company. Customarily, there is some sort of communication between companies before lawsuits are filed.

For now, Pedraza says it will be “business as usual” at company headquarters. Though he said there was a “slight” downward dip in sales once Apple filed its suit, he plans to go ahead with making servers, and soon, a mobile product, which he said will be “like a notebook.” But he refused to offer more detail.

More to come…

CNET News’ Dawn Kawamoto contributed to this story.

Wireless Connection Failed

Author: LeBokov  |  Category: Tech Support

If your computer says that it has connected to a wireless network but failed to grab an IP address, then it is possible that the wireless security key saved in Windows is messed up. This is very likely the case if your computer were used to connect successfully and all of a sudden it fails, while other computers are connecting fine. Then you may want to try deleting the saved profiles from Windows. To delete the profiles, please follow the steps below, assuming your are using Windows XP:

  1. Go to control panel, and double-click on network connections.
  2. Right click on your Wireless Network Connection icon.
  3. Click on Properties.
  4. Click on the Wireless Networks tab
  5. In the Preferred Networks section, you should see a list of saved profiles. Select the one that is not working and click Remove.
  6. Click OK to close the box.

Now, if you try to connect to your wireless network again, you should be asked to enter the wireless key. Make sure you enter it correctly and you should be able to connect. Please note that the above steps assume that you are using Windows’ default wireless utility.

Removing Wireless Network Profiles

Removing Wireless Network Profiles

Best Buy to sell iPhones soon! [updated]

Author: Alex  |  Category: Tech Story

Best Buy US has said to be the first retail giant to sell the Apple iPhone 3G outside of wireless AT&T & Apple Stores.

Will they adopt this in Best Buy Canada and if so, will Future Shop also get a run on the first to sell iPhone 3G in Canada?. So far there is no word on it, but stay tuned! We will find out.

[UPDATED] BestBuy selling iPhone

BestBuy US officially announced on their website, please take a look at it.

100% Pure CSS menu

Author: Rockia  |  Category: Web Design

http://www.opencube.com/index.asp

Can’t believe such a professional menu can be created by just several simple clicks.

It’s a commercial software, but hey, it’s great. You can go ahead to take a try using the online interface first.

Also they have tons of web effects as well. Check it out, and you don’t want to miss it.

General Virus Removal Instruction III

Author: Ben  |  Category: Tech Support

If all my previous tutorials were not working for you, it is the time for you to read this tutorial.

Tool: Explorer,? Google

After you have go over the previous two tutorial, keep the setting, and restart your computer to safe mode.

In order to remove the virus manually, you will have to manually locate the virus.? How? By using explorer where you usually use it to manage your files.? Virus were usually located in the c:/windows/system32 folder.? Once you are inside that folder, locate the menu bar. Click tool -> Folder Options -> View Tab, then select Show Hidden Files, and uncheck the hide protected operating system files, and finally click OK.? And you will see all files and folders in your system32 folder include all virus and system files.? Next,? click “view” on the menu bar and select detail, then you will see more information about each file in your explorer.? We will see the column of “Date Modified”, which shows the last date that this file or folder had been modified.? We will also need to add one more column for further information.? Right click on the column header, and select “Date Created”, which shows the create date of all the files and folders.? Finally, click on the “Date Created” header to sort the file listing in descending order of Date Created (from Recent to elder).

Now you have everything you have to locate the virus. Let’s get start.

On the top portion of the list, you will see the most recent files had be added to your system32 folders.? They will be the suspicious files that you will have to go over.? Why? Because your system folder shouldn’t be touched frequently since the first day your system was installed to your computer.?? If, for example, you suspect your computer was infected last week, you can go over the files which were created around last week.? Usually the virus will try to name themself with random names, therefore, if you see some files’ name were weird, and was created recently, then you can try to google this file to determine the safety of the file. If you cannot find any information about that file, or google reports that it is a virus, you can write down the file names.? After you go over the list, you can start to delete those files which you have just written down.? And remember to empty your recycle bin.

After you finish deleting all the files you had written down, try to restart your computer and scan your computer again with your anti-virus program.

If you are having trouble to delete those files, you may want to wait for my next tutorial which I will post on next week.

Thank you

General Virus Removal Instruction II

Author: Ben  |  Category: Tech Support

Tools: CCleaner, Explorer

Record from the last Instruction (http://www.simpleclix.net/2008/08/general-virus-removal-instruction-i/).

I assume that you had finished running your virus scan in the normal mode. ?If the scanning result is clear, you are done. ?However, if the virus showing up on your scan report again, you will properly need to follow the following instructions to manually remove the virus since the virus came back again.

Generally, there must be some helper programs (which are not detected by the scanner) inside your system to download and reinstall the virus again after your system restart. ?Therefore, we will have to kill all those helpers. ?The first step is to download and install CCleaner to clean up your system garbages because some of the virus may be still inside your system as temporary files. ?After running the CCleaner, now you will have to clean the files inside the prefetch folder (c:/windows/prefetch). ATTENTION, DELETE ALL THE FILES INSIDE THE prefetch FOLDER EXCEPT THE FILE CALLED “layout.ini”. If you delete “layout.ini”, your system maybe crashes or runs very slow. ?

?

After you clean up all the junk files from your computer, I highly recommend you to flush the DNS cache by using the command “ipconfig /flushdns” in the console because the virus may tweak the DNS record to redirect your system to download virus from the internet. ?After all, you will have to restart your computer back to the safe mode, and run your virus scanner again. ?Hopefully, you will get a clear report after the scan and removal. ?Again, after you scan your system under the safe mode, it is important to run the scanner again under the normal mode.

If your scanner reports clear, then you are done. ?However, if the report still shows up the virus, you will have to manually locate the location of the virus files, which will take a lot of time. ?I will further discuss the instruction on my next tutorial.

?

Hope you will have a healthy system.

Thinking from “Domain for sell”

Author: Rockia  |  Category: Web Story

The flame of 2008 Beijing Olympics was lighten up this morning. Yet when I browsed eBay, I found something very interesting. This eSeller bought the domain of 2012 London Olympics and put it on eBay for sale.

All I can say is, “WoW, the price is so high.” However, it gave me an idea that web design is not just about technology. Most of the time, creativity is from the things around us.

Even though this is just for the domain, but hey, who knows. Maybe someone will design an Olympics website for London and then sell it to England for better price than the domain?

Reference Link from eBay:

Olympics Domain for sell

BestBuy.ca gets a makeover

Author: Alex  |  Category: Tech Story
Best Buy's for Business!

Best Buy's for Business!

It has been almost 6 years since the first Best Buy store was launched in Canada. Now their E-commerce site rolled out a new user interface with multitude of changes. First and foremost, when you get into the main website, their heiarchy drop-down menus are much easier to manuever and easier to find what you need.

On the product page, they scrapped out the entire look and redesigned their informations in tabbed form and has now allowed customer feedback to their website; allowing people to give their personal suggestions and thoughts about the product.

Now with larger product images, it provides multi-angled product shots to give the customer a better shopping experience.

Rumour tells that the video game section will expand dramatically, teaming up with gamespot offering in-game screenshots, videos, compatible accessories tabs. Check it out!