Sceptre Monitor Review – Top 3 Monitors

Are you looking for a Sceptre Monitor? You are not able to decide between all the models? In this post I will give a Sceptre Monitor Review and help you choose with your buy.

I am able to give a good reference on the pros and cons of a sceptre monitor, as I have been using them for quite a while. Each of the Sceptre Monitors comes with its up and downs. Don’t worry, in this post I will try to uncover the pros and cons of three of the best sceptre monitors (in my opinion).

Sceptre Monitor Review

Let’s start by talking about the company Sceptre first, is it any good?

Sceptre Monitor Review

Sceptre monitors are made by Sceptre Incorporated, based in California. They are worldwide known by their leading-edge technology on LED, LCD and HDTV monitors and TVs. One example is their CRT technology which they created and developed.

Read more

Difference Mid Tower vs Full Tower PC cases

So, you are building your own PC? That’s is great, I am sure you have considered a lot of things while making your research. And then you have encountered yourself between a Mid Tower vs Full Tower case. In this blog post, I will try to explain the main Pros and Cons of using a Mid Tower Case or a Full Tower Case.

Mid Tower vs Full Tower

To choose a PC case we have to consider many different things: what is the size of the motherboard, will I have an optimal airflow, a reduced noise output… Even lighting to add to our awesome new gamer PC!

And also, we have to think about the size of the case. Should we go for a better-looking mid-tower case and maybe have more internal heating, or should we go for a bigger full tower case and be sure to have space inside the case? Ah, and do not forget the cost of both!

In this blog post I will try to make it easier for you in comparing a mid tower vs full tower cases. We will go through the main important factors to check prior to buying a case.

Read more

Invalid Literal for Int with Base 10 – Python Error

Ever got this python error? invalid literal for int with base 10 Or some sort of this same message? Keep reading to know the solution for this Python error and to master the data types conversions.

Python Error: Invalid Literal for Int with Base 10

In this post, I will explain the solution for the “invalid literal for int” errors on Python. We all know that with python is very handy when converting between different data types easily. From strings to integers, from integers to floats, passing a string to float…

But, what if you want to convert from a string representing a float to an integer?

Well, then python will raise an error saying it can’t! See the example below:

# String with some numbers (float)
strval = "152.569"
intval = int(strval) 
# Output: Traceback (most recent call last):
  File "main.py", line 3, in <module>
	intval = int(strval)
ValueError: invalid literal for int() with base 10: '152.569'

Read more

Python Remove Element from List – pop() and remove()

In this post, I will show you how to remove an element from a list in python. The main function to use is the built-in remove() functionality, del() and pop().

List Remove() Function in Python

The remove() function is as easy as it sounds:

list.remove(item)

The syntax, as you can see, is very easy: we just need to pass the item we want to remove from the list.

The parameter of the remove() function is only the item value in the list:

  • The remove() only takes one item as parameter, the name of the item, and removes it from the list
  • The function will return an error of “ValueError: list.remove(x): x not in list ” if the item is not found in the list.

The remove() function, similarly to other functionalities in python, does not give back any value (it is a method, rather than an actual function).

Read more

How to Git Delete Branch Remote (and locally)

If you use Git as your version control server, it is very probable that you need to delete a remote branch. In this post, I will show you how to delete a branch locally and remotely.

Display local and remote git branches

To delete a local branch, first, we will need to print and display all our branches. We can get that using the command git branch -a, the argument -a. This command will display all available branches in the server:

git branch -a
# This will print our branches as:
# *master
#   testbranch
#   remote/rbranch/master
#   remote/rbranch/testbranch

In the case I showed you above, we have a local branch testbranch and two other remote branches.

Read more

Convert a Byte to String in Python (or vice-versa)

To convert a byte to string in python is pretty easy and straight forward, but it is very important to understand the differences between these two data types (scroll down to the examples to see the code directly).

Converting Bytes to String (Theory)

In python, a byte object is a series of bytes. The python byte object is what our machines (computing machines), can read and what can store (or write).

A String, contrarily to bytes, is an encoded form of bytes that is able to be stored in our machines. This encoding makes us, humans, able to read this representation of bytes in a readable manner.

Encoding of a byte can be done in several ways, the most used ones (and most common) are the ASCII and UTF-8 encoding modes. In Python 3, the default encoding method is UTF-8.

To make it simpler, here is a very simple diagram:

Simple diagram relation between bytes and strings in Python

Read more