For Week W33-2016 C++ project, Fumanchu (Rui Figueira) is working on czrpc : Open Source C++ RPC framework. He has been working as a fulltime game developer since 2007. Before moving to the UK to…
Learn Python - What is the best IDE for it?
What is the best IDE to program in Python? Whenever this question arises in discussion forums around the world, there is almost a civil war among the users. But among the dead, the wounded…
Learn Ruby - How to Write a Switch Statement?
In programming languages, a “switch statement” is a type of control mechanism used to check if the value of a variable or expression exists and what the program should do from that point. In…
Learn Python - How To Convert Integer to String?
Earlier, we saw how to parse a String to an Int or float in Python. Now, we want the opposite. How to do it? In Python, there are two ways to transform any value into…
Learn JavaScript - How To Make Page Redirect Using jQuery
In programming languages, functions are often gathered together in packages and methods ready for use. They are called frameworks and aim to help developers save time to get the expected result. In JavaScript, jQuery is one of these…
Learn Python - How To Check Whether a File Exists?
How to tell if a file exists using Python? To answer this question, we need to know how this programming language “sees” the files. Accessing a file in Python To grant access to your…
Learn Python - How To Call an External Command?
Many times is necessary that Python interacts with the computer’s operating system where it is running. For example, to have information about the hard drive partitions. For this to happen, you must create an…
Within Python, as a programming language, there are different types of variables. At this article, we’ll see a brief explanation about them and show you how to use a global variable inside a function. …
Learn Python - How To Parse String to Float or Int
To transform a string into Int or Float in Python, simply put, can be done using the following lines:
1 2 3 4 5 6 7 |
"57" to int: Int ("57") 57 "23.578" to float: Float ("23578") 23,578 |
These lines work perfectly when you know exactly the origin of your data. At…