Building IT

Making Sense of Information Technology

header image

Future of Mobile Data Networks

February 18th, 2010 · No Comment

Selection of SmartphonesAnything can be communicated via the Internet.  It readily connects everyone to emails, web, television, and voice.  It is where mobile computing’s future lies. The mobile industry seems to be shifting focus to Everything-Over-IP.

Traditionally, a mobile phone is used to communicate voice conversations.   The question now is who needs mobile voice?  Texting has becoming a popular way of doing things in Asia and Europe.  North America is catching up.  Then there’s the popularity of Facebook and Twitter, where Internet connection is required for status updates.  It’s becoming more than just a 1-to-1 communication.  It’s a broadcast of information.

To make Internet capable mobile devices, first the portable technologies have to converge.  Laptops have to be small enough for maximum portability.  Cell phones must be powerful enough to run like computers.  There are plenty of companies like Apple, Toshiba, Dell, and Nokia who are trying to close that gap.

It’s no surprise Apple announced the iPad.  They’re touting it as a reading device, but people know it can be much more.  Its main communication devices are WiFi and 3G.  No voice capability.  However, Apple has also recently allowed VoIP over the 3G network, so apps like Fring or Skype can provide voice calling.  Similarly, AT&T now allows Slingbox, TV anywhere, to go over 3G network to iPhone users (eventually the iPad).  So Apple’s strategy is definitely IP based communication.  Other companies will (or have already) follow suit.

This may sound familiar.  In 1998, there was much hype for Voice-Over-IP (VoIP) in the Telecom industry.  Huge investments were made to lay down fiber optics infrastructure for faster data transfers.  It took a while for that investment to bear fruit, and it looks like the consumers are finally starting to see the benefits.

Interestingly enough, wireless Internet connectivity it not widely available.  But that’s changing, thanks to innovation in wireless technology, such as WiMax or LTE.  It will reach the rural areas where Internet access is scarce.  Also, the price needs to go down in order to make it economically feasible.  Maybe the government should step in?

The direction is to get everyone connected.  Mobile Internet can finally become an integral part of the way people do business and go about their personal lives.  It’s the future of communication – on everyone’s hand.

→ No CommentPosted in Hardware

The Importance of Page Loading Time

November 18th, 2009 · 2 Comments

run_blur

Customers are very fickle when checking out a company’s web site.  Unless they’re desperate, a person browsing a site tend to go quickly from one page to another.  Their attention span is short.  Their time is valuable.  They don’t want to spend too much time waiting for a web page to load.

Companies have spent a substantial amount of money to improve page loading times.  Improvements include upgrading internet connectivity, buying faster computers, reducing web applications RAM usage footprint, or investing on a content delivery network.

What other important reasons to improve web performance?

  • Increase in traffic due to natural business growth, or advertising campaigns.
  • Snappy response times are required when using the latest web browser tools, such as AJAX.
  • Google is planning to rank web pages by their load times.
  • Increase use of videos using embedded Flash, and future HTML5.

There is a cheaper way to improve web site performance: Optimize Content.  It means reducing the use of heavy graphics, Flash files, or client side Javascripts.  It also means reducing HTML and CSS file sizes.  It may seem contradictory, but ultimately, content dictates page loading times and can improve the web browsing experience.

→ 2 CommentsPosted in Business Process · Software

Fun Intel Ads

October 30th, 2009 · No Comment

Intel is an innovator.  They’re the best CPU maker in the world.  Their marketing ads are usually forgettable.  However, the latest Intel ads are actually quite good.  Here are some of my favorites:

Rock Star:

Parties:

Team Players:

Co-workers:

Perks:

Jokes:

→ No CommentPosted in Business Process

Operating System and Web Apps Hacking

September 16th, 2009 · No Comment

A lot can be learned from a hacker (albeit a convicted hacker).  Here are some of his thoughts on OS and web application security:

Securing a system:

I keep my services to a minimum, and I keep them updated. On my Linux box I use custom kernel hardening patches to make memory corruption bugs pretty hard to exploit. OpenSSH is firewalled and only accepts a connection from your ip if you visit a custom port-knocking page on my webserver. Basically the only service listening is apache, without PHP.

On my desktop and laptop I don’t have any services listening at all.

Public computers:

… I try to avoid public computers. If I really have to log in from an untrusted terminal I use otp authentication.

Modern website’s security:

Not very secure. SQL-injections are everywhere.

Discovering SQL injections vulnerabilities:

I don’t know of any specific papers, SQL injection is such a simple concept so you can pick it up in a matter of hours. The best method of finding them manually is to simply insert ‘ and ” union select(..” at random in parameters and see if things break.

Local source disclosure vulnerabilities:

Yes, sure. You can do a lot with config.php + phpMyAdmin.

What to do in a hacked machine:

1) Find a custom admin interface.

2) Get read access to a db from an SQL-injection.

3) Find tables corresponding to the custom admin interface.

4) Crack the admin password.

5) Log in and upload a new picture, containing PHP.

6) Exploit buggy custom cron-scripts that delete directories in /tmp once a day.

7) Wait for exploit to trigger..

8 ) Infect a binary on an NFS-share.

9) Wait for someone to use the binary..

10) Enjoy access to the main servers.

Something like that ;)

Operating System:

Personally I use Linux. I don’t consider Linux especially secure, just look at the number of local kernel root vulns found in the last year. I do however know that this is because there are so many people auditing Linux every day. I’d rather use an OS that has a few serious public vulns each year than one where the vulns are still there but aren’t found.

If you make a new operating system, how long it takes for someone to exploit vulnerabilities depend on how secure your code is and how much someone would want to exploit it. A local root vulnerability in QNX isn’t as “popular” as one in Linux, so more people are looking at Linux.

Tools used:

Exploits, network scanners, rootkits, google (perhaps the best network scanner).

And a voice recorder. They are essential when hacking banks.

More security holes:

Yes, I’ve written exploits for most types of bugs. Buffer overflows, format strings, int overflows. I have discovered some holes myself. Nowadays the most popular thing to audit is webapps. The age of remote root holes in popular ftpds is gone.

Government computers:

Personally I think that there are government agencies in the US, China, Russia etc. that have already backdoored each other to hell and back.

Stopping a hacker from coming in:

In short, if you have a network that is connected to the internet and someone wants to get in, they will eventually get in. If you are running the latest versions of all possible software you might think you are safe. But what if someone comes along with a 0day, or someone hacks the home computer of one of your administrators?

Tracing a hacker:

I got too comfortable with my setup and thought I was untraceable. It turns out that, given enough incentive, some people will analyze router logs from all over the world for months until they find you.

PHP:

Make sure whatever PHP software you are using is always up to date. PHP stuff has a tendency to be written very poorly. Install some custom hardening patches like Grsec.

… I’m a big fan of Python. It’s much easier to write insecure software in PHP than in Python.

Security Industry:

I think has become less about knowledge and innovation and more about hype. Extreme hype. Everyone wants to make money off their name. Bugs become a commodity that is sold to companies that charge subscription fees for advance notice, etc..

Personally I am a blackhat. I loathe the cesspool of inflated egos that is the computer security industry. Therefore, I would never ever advise them to become “whitehats”. As for a more rewarding way to use their skill and curiosity, I can’t think of a good answer. Hacking into computers is simply the most rewarding experience I have ever had. I don’t see it as a problem if you are hacking big companies or governments for the sake of adventure, you are not out to hurt people.

Just make sure not to make money from your hacking, be it selling out to the security industry or selling botnet-stuff to russians. Both will destroy your passion.

Sysadmins:

I understand that ultimately some admin will have to take care of cleaning up after the breach, but it’s a part of their job. If one of the main reasons not to hack is that some administrator, whose job it is to maintain the servers, has to do his job.. I just don’t see that as a very compelling reason not to hack.

Hacking:

The incentive was the thrill of breaking into something that could sometimes have taken over a month of preparation. Looking at information that you weren’t supposed to be looking at. I suppose it’s the same feeling you get when solving any complex problem. It’s better than sex. I mostly worked alone, and I was not hired for anything.

Operating System hacking preference:

I almost exclusively hacked *NIX machines. Mostly Linux and Solaris, but also a lot of IRIX/HP-(S)UX/AIX. I would however definitely say that it is easier to hack a Windows PC, given their history of remote “root” vulnerabilities in default services.

OpenBSD is not secure at all. At least they changed the text on their front page to “Only two remote holes in the default install, in a heck of a long time!”. There’s a reason Theo DeRaadt has been hacked a number of times, his ego is enormously inflated. OpenBSD is 10 years behind grsec for example.

The most important part is the anti-exploitation techniques like ASLR, PIE, etc. What I meant to say was that GRsec has always been in the forefront when it comes to those. GRSec, RBAC and SELinux also have MAC capabilities but these are extremely rarely used correctly and to their full extent, since they are so hard to configure right.

→ No CommentPosted in Software

IE6 Still Lingering

June 16th, 2009 · No Comment

W3CSchools has stats for IE6 usage at about 15%, as of May 2009.  IE6 in Enterprise environment is still being used,

It’s steadily dropping because of the wide acceptance of Firefox, and Corporations are proactively upgrading to IE7 or IE8.   This number will change dramatically when Enterprise favors Windows 7 as the new standard for productivity machines.

Some websites have already taken steps to prevent IE6 from loading their site.  I can only applaud their efforts.

IE6 Denial Image

IE6 Denial Image

→ No CommentPosted in Software

Managing Priorities

May 14th, 2009 · No Comment

Railroad Switch

As IT personnel, it’s my job to help business-driven projects.  My support tasks generally take priority over my long term IT projects.  There are techniques to manage the priorities of these projects, and get them done.  Here are some ways to do it:

  1. Say When:
    1. Clarify how much time is needed.
    2. Determine if it can be handled now.   If not, make it known to others.
    3. If it can wait, then suggest an agreeable time.
  2. Learn More:
    1. Do quick impact analysis.
    2. Work with the requester for the results and standards required.
    3. Ask for additional learning material.
  3. Ask for help:
    1. Determine how the support requests fits into the bigger picture.
    2. Agree on roles and responsibilities from the people involved.
    3. Focus on required resources.
    4. Understand the task required.
    5. Get a completion date.  If not clear, then suggest times for status updates.

In every step, it helps to listen carefully, be polite, and be sensitive to the needs of others.

Contrary to popular opinions, IT is not entirely a lonesome job.  It gets easier to handle when I have the help of my colleagues.

Business may have unending projects.  It helps tremendously if I can prioritize them, according to the time and resources at my disposal.  Knowing what, when, and who are the keys to success.   The how will be answered eventually.  Asking why is counter-productive.

→ No CommentPosted in The Job

Google Data Center Efficiency

April 9th, 2009 · No Comment

Google is leading the way in “Green IT” initiative when they started, in 2005, making their massive data center infrastructure as efficient as possible.  Their approach is definitely radical and unorthodox.  First using 12V batteries for each machine.  Then, using AAA shipping containers to house the numerous servers.  Google is an engineering company so obvioiusly they’re obsessed with making tiny improvements in every little corner of the data center.  It’s awesome.

Google did patent the setup, so it won’t take long before other data centers converts to it.  It’s a win-win situation for everyone.

Intro video:

Google summit videos:

Part 1:

Part 2:

Part 3:

More info on Google’s Blog.

→ No CommentPosted in Hardware

URL Rewrite Examples

March 24th, 2009 · 2 Comments

Rewrite Right - Flickr PhotoOne of the most common Webmaster task is to use mod_rewrite Apache module.  It’s a flexible and efficient way to redirect URLs.  It is useful to redirect non-functional URLs, moving domain names or renaming directories.

Below is a list of some of the frequently used mod_rewrites.

Note the [R=301] entries for 301 Permanent Redirect directive on the rules.  It’s a popular use to preserve SEO rankings of an older site that has been moved to a new one.

Simple redirect:

RewriteRule ^/sub/dir/home.html$ /sub/dir2/page.html [R=301,L]

Redirect http://domain.com to http://www.domain.com.  This is especially useful for an SSL certificate that’s already registered to www.domain.com name.  Note, the rule captures the query string and redirects with it:

RewriteCond     %{HTTP_HOST}    ^domain.com$      [NC]
RewriteRule     ^(.*)$          http://www.domain.com$1      [R=301,L]

To capture more than one variables in the query string, use the following.

RewriteRule ^([^/]*)/([^/]*)/([^/]*)$  /sub/program.jsp?arg1=$1&arg2=$2&arg3=$3 [L]

For redirects based on the URL’s query string, use QUERY_STRING to capture it for comparison.  Note the destination URL may use spaces if enclosed in quotes.

RewriteCond %{QUERY_STRING} ^id=2234$
RewriteRule ^/sub/dir/product.html$ “/sub/dir3/description.html?prodid=vac pro” [L,R=301]

Redirects can also be conditional.  For example, redirect everything except with a certain keyword.

RewriteCond %{REQUEST_URI} !/sub/dir/important.html$
RewriteRule ^/sub/dir/.*$ /main/dir/home.html [L,R=301]

With the above rule, it’s possible the original URL may have a query string.  To get rid of it, just add “?” to the end of target RewriteRule. For example:

RewriteCond %{REQUEST_URI} !/sub/dir/important.html$
RewriteRule ^/sub/dir/.*$ /main/dir/home.html? [L,R=301]

There are more examples out there.  Writing a comprehensive mod_rewrite guide is a full time job, so this list will continue to grow.  Here are some other useful references:

Photo Credit: Luke Seeley

→ 2 CommentsPosted in Software

Custom 404 Page Using JBOSS

March 6th, 2009 · 2 Comments

Missing PuzzleHaving a custom “page not found”, or 404 page, is an important modification for any website.  It’s used to enhance the user experience by presenting an easy to understand message.

Setting up a user friendly error page is simple enough using Apache web server.  Just modify the line in httpd.conf and point it to a static HTML document:

ErrorDocument 404 /the404_page.html

With JBOSS (or Tomcat-like Java container) application server, it’s slightly trickier.  It has to be handled per web application basis.  The change is done on the web.xml file, with these entries:

<web-app>

<error-page>
<error-code>404</error-code>
<location>/the404_page.html</location>
</error-page>

</web-app>

For the root directory, modify the web.xml in the ./deploy/jboss-web.deployer/ROOT.war/WEB-INF directory.

Testing this setup in Firefox and Opera, the custom 404 page will automatically show up properly.

However, with Internet Explorer, a “The Webpage Cannot Be Found” message comes up instead.  This is a feature of IE to show Microsoft’s version of a “friendlier error message”.  In this case, we want to disable it, so the custom 404 page will show up.  It can be done via Internet Options -> Advanced tab :

Option in IE to Supress Custom 404 Error Page

Update: Microsoft Help & Support site states if the 404 error page is greater than 512 bytes, then IE will not show the friendly message.  So the page size must be a bigger one, not just a simple one liner.

Now that the applications are setup to serve up custom error page, here are some examples of beautiful 404 page designs to improve the user experience.

→ 2 CommentsPosted in Software

Proper Support Tips

February 9th, 2009 · No Comment

Customer ServiceThroughout my years of doing tech support, I learned a few things about doing the job, without driving myself (or the customer) crazy.  Here are a few action plans:

  1. Always stay calm.
  2. Be helpful to customers.  Ninety-nine percent of the time, customers are nicer when they are given options to solve their problems.
  3. Document the issues in an electronic log (such as customer service knowledge base) that are search-able, for future reference.
  4. Stay up-to-date with the company’s products.
  5. Stay current with technology advances and industry standards.
  6. Get along with the other tech support peers.  Hang out with them, share your stories, and vent some frustration with each other.  Group therapy is good therapy. Most importantly, laugh it up together.
  7. Don’t stay at Level 1 tech support too long.  Make it a goal to move up, and handle more challenging questions to keep the job more interesting.

Finally, keep a sense of humor.   At the end of the day, it’s only a job, and life goes on.

Dilbert Comic on Tech Support

→ No CommentPosted in The Job

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.