Articles of the Week

Pubbies of the Week

How to Use NumPy in Python

Categories: Tech | Pubby Cash Received:  0

Do you know how to use NumPy, or what NumPy even is? NumPy is basically a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays. To use NumPy, you first need to import it, like this. import numpy as np I will now show an example of what you can do with NumPy. First of all, you can do arrays with NumPy. Here is a example. arr = np.array( [[ 1, 2, 3],                 [ 4, 2, 5]] ) This code is basically saying that you are making a array object. After that, you can do some things like getting the size of the array. You can do it like this. print("Size of array: ", arr.size) The output of this would be Size of array: 6. After reading this article, I hope you have a better understanding of NumPy and how it works....  Read more

Should you use Linux?

Categories: General, Tech | Pubby Cash Received:  0

According to Microsoft, there are over one billion devices that run on Windows, and that's no surprise. It's easily compatible with various applications and can be modified to fit your needs. However, there is a less-known operating system that deserves some notice. What I'm talking about is Linux. Most people have a phone but have they seen and understood what's inside the casing. That's what it's like when you use a Windows-powered system. You can download it, install it, and play around with it, but you don't get access to all of the code so it's difficult to understand the software. However, in contrast, Linux is completely an open-source project. You can have a look at the source code of a Linux OS, which is a plus. Additionally, Linux users are less vulnerable to attacks from hackers and other malicious software. It sure isn’t invulnerable, but it is a lot more secure. It is just the way Linux works that makes it a secure operating system. Overall, the process of package management, the concept of repositories, and a couple more features makes it possible for Linux to be more secure than Windows. When you have Windows installed, you'll need to download an antivirus program to keep your computer safe from hackers and malware. And oftentimes, you will be required to purchase a membership or license to continue using the software. On the other hand, Linux does not require the use of such antivirus programs. Of course, a couple of software tools still exist to help you keep your system free from threats, but it is often unnecessary when you have a Linux system. Do you value your privacy? I'm sure you do. That's where Linux takes the stage. Microsoft certainly tries to anonymize the data collected from every user. However, it does not look convincing with Microsoft’s latest Windows 10. It has already received an enormous amount of criticism of how it collects data, what it should collect, and what it should not. Even if you opt-out to send Microsoft information about your data, it is still being collected. Of course, Microsoft will not bother revealing it officially with a press statement, but it surely does. In contrast, Linux would be the perfect solution for a privacy buff. First of all, Linux distributions do not collect much data (or none). Moreover, you will not be needing additional tools to protect your privacy. Now that you know the advantages of using Linux instead of Windows, what do you think? Is Windows still the leader of the systems, or should there be a new election?...  Read more

How to Use the Random Method in Python

Categories: Tech | Pubby Cash Received:  0

The random method in Python is a very useful tool in Python because it has the power to select a random value. In this article, I will try my best to explain how to use the random method. The first thing that you need to know is that you have to import random first to access it. import random I will now provide an example of how to use the random method. Lets say that we want our program to generate a random number from one through five. This is how we can use the random method to do it. import random numbers = [1, 2, 3, 4, 5] print(random.choice(numbers)) This code is saying that numbers is equal to 1, 2, 3, 4, and 5. We are then printing a random number that is in the numbers variable. The output of this program could be 1, 2, 3, 4, or 5. This is because we are choosing a random number. After reading this article, you should have a better understanding about how to use the random method....  Read more

Zotero - A Reference Management Software to Recommend

Categories: Tech | Pubby Cash Received:  10

Endnote and Mendeley are the previous reference management softwares I have used in the past. It was until last month when Zotero was recommended to me. Now I have totally accepted this software. It is recommended to me because it is the only reference management software that supports direct citations when writing in Google Doc. However, its advantages are more than that. The aspects that intrigue me most also include: (1) Incorporated perfectly in Word 2007 on my local machines. The Zotero ribbon appears on the menu bar and is very easy to use. (2) Automatically grabs meta data of articles from web pages and even PDFs. Just need to install a Zotero connector in Google Chrome and right click any web page you would like to save to your reference library. (3) Automatically tries to download the pdf files. If an article is an open-access one, it will succeed. (4) Easy migrate to different computers. What you need to do is the copy the root folder named "Zotero" to the target computer and replace the older folder in the same location. (5) Easy sorting of references. My preferences are: sorting by date added, article publication timeline, first_author's last name, collections on different projects, and tags. It can also sort out duplicate items if that bothers you. (6) Multiple Libraries support. In each library, you can make different collections for different projects. The upper level hierarchy manages your references nicer and cleaner. Last but not least, Zotero is an open-source software. Advanced customization can be done if you know what you are doing. You can read their documentation and forum for more information. ...  Read more

An Online PDF Filling and Signing Tool - Smallpdf

Categories: Tech | Pubby Cash Received:  0

If you would like to edit a PDF file locally by a software installed on your machine, Acrobat is the common software to go. You can also use Photoshop to do advanced editing on PDF. Acrobat reader is free, but Acrobat and Photoshop are not and they are not cheap. If you don't care about your privacy regarding the PDF files you are trying to edit, you could use online PDF editing tools that are available almost everywhere. You need to upload the PDF file to the server and you interact with the server via the web GUI by filling blanks, drawing shapes, and signing names. The server will do the processing and provide you an edited version to download. This process does not rely on any client-end software and is easy to use. The only downside as I can see is the privacy. I cannot name one website that absolutely has no privacy issue, but Smallpdf is the online tool that I use occasionally for online PDF filling and signing. You could try them out on your non-sensitive PDF documents. ...  Read more

1 ... 13 14 15 ... 32

Daily Deals


MECHANICSBURG WEATHER