Google Wi-Fi Review

Google Wifi Review

Unlike the traditional method of having one router that supports Wifi for your entire home, Google Wi-Fi uses a mesh Wi-Fi system. The mesh network creates coverage that extends far … Read more

What is Blockchain Technology?

Have you heard of Bitcoin? If you have, you may have heard of blockchain. Bitcoin and blockchain are not the same thing though. Bitcoin does use the blockchain technology. When … 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

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?

Fatal error: Allowed memory size of 33554432 bytes exhausted

Fatal error: Allowed memory size of 33554432 bytes exhausted

For the most part, WordPress is easy to use and you can set up your site in a few hours. This assumes everything works as expected. If things don’t work out as you have expected, then it will take some more troubleshooting to get to the root cause of the problem.