Posts

5 harmless ways to kick spam out of your blog

  Have you ever had an e-mail? Well… if it is the case, probably you know spam by experience and you are aware of how annoying could it be. Unfortunately, spam is present in the blogs world too, and doesn’t matter the kind or size of your blog sooner or later you will get some spam trying to bother you; dealing with spam in comments, trackbacks or pingbacks could become a real headache and for those ones that don’t have any experience fighting against because when it’s not treated correctly spam can suck out all the SEO of your block and ruin your blog quality regarding your users perspective or in front of search engines. Because the relevancy that spam has taken into the blog’s world plenty of solutions have been developed, but the problem with most of them is that they are intrusive and could annoy or discourage your legitimate users to submit comments by implementing some sort of real-humans system recognition, like captchas. But no everything is lost! we have made the quest for th

Numbers in Python

  Numbers in Python In Python, there are two types of data that allow us to work with numbers.  These data types are  integers  and  floating-point .  The difference between the two lies in the fact that floating-point numbers support decimals, while integers do not.  Thus, we can say that the number 10 is of the integer type, but that 10.0 is floating-point since it has a decimal (even if this is 0). Operations With numbers, we can perform operations as if Python were a simple calculator.  To begin we have the four basic operations that are: addition (+), subtraction (-), multiplication (*), and division (/). # Basic operations with numbers in Python >>> 1 + 2 3 >>> 3.0 - 2 1.0 >>> 2 * 3 6 >>> 6 / 2 3.0 We can see that the result of an addition, subtraction, or multiplication of two whole numbers is another whole number.  But if one of the numbers is floating-point the result is also floating-point. In the case of division, the data type of the

Getting Started with python

  Python is a very popular programming language. The programmer who masters it has many possibilities and its syntax is the basis of other very popular languages. In order for you to start mastering it, the first thing you should know is precisely that, its basic syntax. If you already have some programming notions, the learning curve will be easier for you. We will try to be as precise as possible so that you can start off on the right foot:   How to get started?  We have 2 ways of programming with Python: • Interactive mode: This mode executes the orders at the moment we indicate them; that is, it carries them out in real-time. In order to work with this mode, you will have to activate the interpreter from the command line. As soon as we have it done, we can do the usual "Hello, World" print test. • Script mode: Interactive mode is the best to start with, but it won't take long for us to realize that we are going to be a little short. Later on, it will be much more prac

Add a shortcode for your PDF documents

  Why use the Google Documents engine to show PDF documents? As you already know, in order to display properly a PDF document you need to have specific proprietary software (like Adobe Reader) installed on your computer. Besides that, the proprietary software doesn’t integrate in a native way with your browser to display PDF documents from the web, as a result, PDF documents on the web take a considerable time to be displayed into the client computer, and in some sad situations no even display at all. All those issues could be fixed using the Google Documents engine to display our PDFs, with the Google Document engine the viewer for our PDF documents will be integrated natively in our browser; it is in that way because the Google Document engine uses only web-based technologies. Plus that, our documents will show quickly, because the documents are converted “on the fly” for the Google Documents engine to be shown as images. How to use the Google Docs engine to show PDFs into our blog?.