Welcome to TechColleague

TechColleague is the leading authority on everything related to hardware, software, gaming, and much more.

What does “> /dev/null 2>&1” mean?

What does /dev/null mean?

If you work with Unix systems, you may come across some strange commands such as numbers greater than sign and ampersand. To the untrained viewer, these commands may appear gibberish, but in reality, they do mean something meaningful. Their compactness brings about the elegance and beauty of Unix. If you are running a Unix program … Read more

How do I move my Adium settings?

Adium is a great instant messaging client for the Mac OS X. You can use it to connect to other services such as AIM, MSN, Jabber, and Yahoo. If you use many services, it is very convenient to use one client. Unfortunately, it lacks a feature to easily import and export your settings. If you are migrating your Adium client to another Mac, there is no way to do so very easily. However, there is still a way to do it and not lose your settings such as your contacts.

Top 10 Free Android Games to Download This Weekend

Fly Boy Android Game

How is your weekend? Are you having a busy weekend traveling, hiking or surfing? If not and you rather have a relaxing weekend, you can download these Android games.

These games are free and available on the Android Market. They are fun and very addictive. They are downloadable from your Android smartphones. Have fun!

How to Change or Set the MySQL Root Password

How to Change or Set the MySQL Root Password

When you are setting up a database, it comes standard with the sa account that has access to everything. Unless you want to get comprised, you should change it to a difficult password. On some databases such as mySQL, the sa account is called root and it has a blank password.

What is /dev/shm and what is it used for?

What is /dev/shm and what is it used for?

/dev/shm is shared memory. It is offered in Linux as a way for memory to be accessed simultaneously by multiple programs.

shm is also known as tempfs or temporary file storage. On Linux it will appear as a mounted file system that you can access directly. Instead of writing to a permanent storage device such as your hard drive, it writes to virtual memory (i.e., it lives in RAM). Since it is memory, anything written to this file system will be removed the next time you reboot.

Top WordPress Plugins

Top WordPress Plugins

One of the many reasons I like WordPress so much is because of the plugins. There are so many good ones out there. I could have just listed out the good WordPress plugins but that would do a great disservice to my readers. Instead I will include only the top plugins that deserve to be … Read more

OSI Model Layer

The Open Systems Interconnection model (OSI model) by developed by the International Organization for Standardization (ISO) in 1984. OSI reference model is a way of sub-diving network communication and grouping them into logical layers. On each layer, an instance provides the services the instances to the layer above it and requests services to the layer below it.

Find and Replace with SED

Find and Replace with SED

The power of search and replace is prevalent all over Linux. Whether you are using a text editor or on the command line, regular expressions come in handy. When you are using a text editor such as vi, you are probably familiar with the search and replace feature. From the command line, the find and … Read more

How to use *args and **kwargs in Python

Facebooktwitterredditpinterestlinkedintumblr

Are there times when you want to specify a variable argument list in Python?

This is possible by using *args and **kwargs.

The special syntax, *args and **kwargs, in a function definition is used to pass a variable number of arguments to a function.

The single asterisk (*args) is used to pass a non-keyword, variable length argument list. The double asterisk (**kwargs) is used to pass a keyword, variable length argument list.

In this example, a function passes one required argument and three variable arguments.

Read more

Boot to single user mode in Ubuntu 10.04 Lucid Lynx

Boot to single user mode in Ubuntu 10.04 Lucid Lynx

FacebooktwitterredditpinterestlinkedintumblrBoot to single user mode in Ubuntu 10.04 Lucid LynxThere are occasions when the single user mode comes in handy. Take for example last week. I was messing around with iptables and I added to much restriction on my deny rules. As such, I could not log in to the network and get myself authenticated.

At first, it was very disheartening to find out that you locked yourself out of your own system. On the other hand, it becomes a challenge and you find it a valuable experience. What you find is that whatever you may have done with your system, you can fix it and get it back up and running again.

Read more

Python Date and Time

Python Date and Time

Adding a date or time to your program is really easy with Python. All you have to do is import date or import time and then use the available method calls.

Most likely though, you are here because you need something more than that. You probably need to convert epoch seconds to a date format. You may want to know how to get the difference between two dates.

Plugin install stuck at “Unpacking the package”

If you have been using WordPress, you know how easy it is to install a plugin. Just find a plugin and then install it by clicking “Install Now.” If there is a new version for your existing plugin, your WordPress admin panel informs you about the new version.

For some reason, when I upgraded my TinyMCE plugin, it would get stuck at “Unpacking the package” message and then hangs there. It didn’t give me an error message or continue with the upgrade. It was stuck. Now what?

Free Mac Software

Free Mac Software

Let’s face, having a Mac is cool but it will cost you. There are a lot of cool software out there but they are not free. It seems like there are more free software on Linux than on Macs. Does it mean we are stuck paying for software if we are on Macs? No, it doesn’t mean that. There are bags of gold out there (i.e., free Mac software). They are available for you to download but you just have to know where to look.

SSH Port Forwarding and VNC on a Mac

SSH Port Forwarding and VNC on a Mac

Virtual Network Computing (VNC) is a graphical desktop sharing system that makes it possible to remote control one computer from another computer. It uses a client-server model so that a client on one operating system can connect to a server on a different operating system.

One problem with VNC is that the RFB protocol it uses is not encrypted. That is why ssh port forwarding comes to the rescue.

Top Joomla Extensions

Top Joomla Extensions

One of the most powerful features of Joomla is that you can extend the core functionality with downloadable templates, modules, components, plug-ins, and languages. These five types are called extensions. We are going to refer to the top Joomla extensions that you should have when running your site. These extensions may not be installed on … Read more