Category Archives: Computer Science

Computer Science (CS) and Information Technology (IT) related items will be posted under this category. Topics include, but not limited to, system administration, hardware/software troubleshooting, coding/programming (PHP, HTML, Java, Python, etc) and more.

Removing www from your URL

I finally decided to shut down my home based server for HTTP use for good. Why? With all the school work, I don’t have time to fix issues with the system. It comes with an added benefit of having a site that will be up 99.99%(according to the hosting provider’s uptime guarantee.) unless I make a coding error.

Anyway, while I was transferring data from self hosted server to the new hosting provider, I ran into few issues. One would be the transfer of data from the wordpress self host system to the paid professional service. I am still working on database issues such as my massive collection of multiple choice questions database for University of Calgary courses. Continue reading Removing www from your URL

How to choose a computer based on your needs

When you want to buy a laptop or a desktop, there are many options available in the Canadian market. A lot of Canadians buy several computers within a short period because compared to other countries in Asia and Europe, we have one of the lowest prices in consumer electronics. While it is an advantage, often consumers buy products that far exceed their needs. I will do my best to explain the differences between computers and how to choose one based on your lifestyle. The article is written towards college and university students.

What is the best brand of computers out there?
This is a very common question with no straight forward answer. Performance and durability of the machine will varies depend on the model. For example, high-end HP that goes for ~$2000+ will outperform against a ~500 Asus. But if we were to compare similarly configured laptops, the Asus will be the best brand because they have the lowest failure rate. If we look at the overall failure rates regardless of the price, it is clear that Asus and Toshiba has led the way during the last three years.

Laptop failure rate by manufacturer 2010
Laptop failure rate by manufacturer 2010

Which type of computer should I buy?
Most people buy a laptop because it is portable. But if you go for a unit that is ranked in either end of the laptop spectrum, you will be disappointed. The powerful gaming units are heavy and large. Hence it is not practical to use as a school or work computer unless you are not planning to take it with you.

Laptop failure rate by type 2010
Laptop failure rate by type 2010

While it is important to buy a light weight small laptop for daily use, keep in mind the failure rate of netbooks are higher compared to conventional laptops. Not to worry because the manufactures have noticed this problem and now the netbooks are phased out from the Canadian market. In few months the netbook and laptops will be replaced by a new kid in town; the ultrabooks.

What are ultrabooks?
There are two major problems with netbooks. As you already know from the previous statement, the high failure rate. The other problem is exception to very few netbook with laptop processors, almost all of the netbooks are underpowered for daily tasks. Even the most basic operations such as loading emails can be a problem on a netbook. The processors used in netbooks are cheaper alternatives to regular processors and often the motherboard can only support maximum of 2 GB of RAM. Hence, it is difficult to run about 90% of the Windows applications out there. The solution is ultrabooks; much higher price than that of laptops, but much lighter and faster with a lower failure rate. The average price of a portable computer (aka laptop) will go up in the next few months. The ultrabooks will replace both the netbooks and laptops. Even now, there are ultrabooks that can compete against the fastest laptop out there.

There are problems in ultrabooks too. One is the lack of video memory support. To this day, not a single ultrabook has been released with 1 GB of dedicated video memory. Another problem is that solid sate hard drives (SSD) are very expensive. The manufactures of ultrabooks often limit the storage space to 128 GB or 256 GB at the most. Considering now we have cloud and NAS storage solutions, almost everyone with the access to Internet can avoid running out of storage space. But still, 128 GB may not be enough for power users who install several different high-end programs such as AutoCad. According to experts in consumer electronics market, while the price of SSDs will drop over time, the gap in price between a conventional hard drive and a SSD will not be lowered anytime soon. Hopefully this will change as technology process at this exponential rate.

Conclusion
After all the reading, are you still confused? Well, it is your choice which computer you want to buy. However, it is pointless to buy a racing car in a city where the maximum speed limit is 80 km/hr. If we apply that same principle to portable computers, then you should not spend your money on a high-end computer that you don’t need.

If you are an art or engineering student and you are planning to use graphical software(CAD, video editing, etc), you have to buy a high-end laptop because ultrabooks lacks the dedicated video support.

If you are a science student and most of you courses will be based on programs like MathLab or Geologic, then ultrabooks are the best choice. If you have to use graphical software that require a high-powered graphic card, then again, you will have to go for a laptop.

If you are business or accounting student, look no further than ultrabooks.

If you are buying a computer for your personal use, consider if you want to carry a light ultrabook or a heavy laptop. Consider your travel and software needs before purchasing a computer. If you don’t mind spending the money and you only use the computer for few software, ultrabooks are the best.

Hope this article help you guys out and I will do my best to keep you updated on upcoming new portable computers.

Deleting files over a network

I just ran in to a huge problem. I accidentally deleted a documentary file over the network. The network drive was mapped to my computer and the folder was located on the server hard drives. No matter what back up I had, I deleted the entire documentary by mistake on the network drive and now I can’t find it anyway. This is a huge overlook that still we face in share folders in Microsoft Windows environment. I don’t know Continue reading Deleting files over a network

Website migration and future of the site

Last week was super busy because I got the flu on top of exams and papers as usual. Each year around February to March I get the seasonal flu. I also had to write the Geochemistry midterm II, which is crucial for my success in the geology program. In the midst of my anxiety over the exams and the upcoming draft paper on the analysis paper for the Science 311, I decided to migrate all my data, exception to the Science site, from general PHP database with no CMS (Content Management System) to completely WordPress(WP) based system. I didn’t have to do much other than copying and pasting the data from old files since WP module has been installed and running on my server for the last few months. The old pages are still slowly being phased out. I will keep the old pages until Google decided to take them down from their indexed pages. With this migration, as the site admin my work load has been cut down significantly. The process of adding new information, pages, data, media, modifying existing data, layout, etc is much easier and faster with WP CMS. Since I am still working my degree, I may not update the site often, but I will do my best to come up with new information for the readers. Continue reading Website migration and future of the site

Thank you Google for all the free stuff

When I first started working with HTML, one problem I run in to was in order to create a great user experience I had to import scripts from several different third party service providers. For example, the site visitor data was kept by a one company and the contact form from another. The problem is that these companies that provide such services are asking too much in return from web developers. Not only they forcefully post pop-up ads and other useless materials, but also referral URLs to back to their sites are often open in the same window causing the visitor to exit the site itself. I managed to avoid some of these issues by loading PHP, SQL and Java databases to the server and facilitating packages such as WordPress. For items such as Contact forms now I use my own PHP script that save data on my own server. For visitor logging I created the ip log file code, but it is time consuming to go over millions of IP addresses to analyzing treads and traffic flow to this site. Continue reading Thank you Google for all the free stuff