Administrator

[email protected]

Total likes received: 73 | Pubby Cash: 788


Andy Tang is the creator of Gopubby.com who has a passion for programming and everything related to technology and is skilled in many areas of coding including Python, HTML/CSS, Bootstrap, and SQL. He is experienced with many Python modules including Pygame, Flask, BeautifulSoup, and Kivy. He also has a solid knowledge of Windows, Mac, and Linux/Unix operating systems.

My Articles: 48

Bose wired headphones vs. Sony wireless headphones

Categories: Tech | Pubby Cash Received:  0

These two headphones are both very well designed and built. However, there are both advantages and disadvantages when choosing either one. The Bose wired headphones are the more comfortable one, with soft leather to cover around your ears. It also comes with a noise reduction technology to block outside noise. My only complaint is that it's wired, but other than that, this headset is amazing at doing its job. Sony wireless headphones are also very fancy but in different ways. On the headset, there is a USB-C connector and an audio jack is conveniently included for quick wireless to wired transfer. My complaints with these headphones are that it does not completely cover my ears, so I would consider them on-ear headphones, which are way less comfortable than over-ear headphones. The material used to make this headset is this type of hard, rough plastic, which I don't like. If you want comfort, get the Bose and if you want convenience, get the Bose. Both are worth your money....  Read more

Git and GitHub

Categories: Tech | Pubby Cash Received:  0

When you're collaborating with a team or just working solo on a project, it can get tricky to figure out who did what and what changes were made. Amid this mess, we have GitHub. GitHub is a Git repository hosting service, but it adds many of its features. While Git is a command-line tool, GitHub provides a Web-based graphical interface. It also provides access control and several collaboration features, such as wikis and basic task management tools for every project. In simple terms, it's a place to upload your projects and easily collaborate with other people. Uploading your projects to GitHub is a breeze. But the problem is this: whenever you make a change to any file of your project, you have to re-upload those files. Although you can directly edit the files in GitHub, it's not recommended. Also, think of it like this: when one of the people you're collaborating with finishes with their changes to the project, they also have to update the files of the master project. This often gets irritating when you have to copy and paste the code from your file onto your GitHub project. That's where Git comes in. You can think of Git as a command language, similar to that of the Windows Command Prompt. Real-life projects generally have multiple developers working in parallel. So a version control system like Git is needed to ensure there are no code conflicts between the developers. It's really easy to push your updates to the master project right from your desktop using GitHub Desktop or plain Git. It also tracks the version number of the files so you can see who did what at what time and why they did that. By learning Git, those team projects will be a breeze....  Read more

Discord Bot

Categories: Tech | Pubby Cash Received:  0

Discord is an American proprietary freeware instant messaging and VoIP application and digital distribution platform designed for creating communities ranging from gamers to education and businesses. Discord specializes in text, image, video and audio communication between users in a chat channel. Discord lets you set up a chat room it refers to as a server, to which you can invite people. When you invite someone to the server, they get a link that lets them join it, where they can either text or voice chat with other people using that server. One of the most unique features of Discord is the ability to implement bots in the server, making it more fun for the group and easier for moderation.

These bots are AIs that can perform a number of useful automated tasks on your server, such as welcoming new members, deleting inappropriate messages, and banning misbehaving members. You can program them to add games, videos, music, and other content to your server. Discord bots totally bring more life to the server and holds the group together as a whole. Of course there are already numerous bots out there already, but it's always best to create one ourselves.

We will be using Python to build a basic Discord bot. Install the appropriate packages on your machine first. Then create an app on the Discord Developers website. Inside your app, create a bot and add that to your server. (That's the bot you will control using the Python code.) So far, you've created a bot, but it doesn't know anything yet. You can find many tutorials for a simple communication bot. Here is an example:

import discord
client = discord.Client()
@client.event
async def on_message(message):
    if message.content.find("!hello") != -1:
        await message.channel.send("Hi") # If the user says !hello we will send back hi
client.run(token)


Now that it's working great, it is time to deploy the bot. There are many options out there. You could deploy it yourself (by just running it on your computer). I like to use Heroku. Start by creating a new app on Heroku. Change the buildpack to Python in the settings panel. Now you have to make a 'requirements.txt' file with all the necessary packages for Heroku to install along with a 'Procfile', which includes the instructions to run the bot. Make sure that both of these files are in the same directory as the bot script. Now you have to upload everything to GitHub. Finally, in the Heroku app, choose run from GitHub in the Deploy tab and you're good to go!

...  Read more

What is Visual Basic?

Categories: Tech | Pubby Cash Received:  0

Visual Basic is one of those languages that are widely used but isn't at the top. Visual Basic (VB) is an event-driven programming language and the environment from Microsoft that provides a graphical user interface (GUI) that allows programmers to modify code by simply dragging and dropping objects and defining their behavior and appearance. VB is derived from the BASIC programming language and is considered to be event-driven and object-oriented. So it appears as though it's truly simple to learn and utilize this language, and it is. In numerous novice programming courses, understudies learn Python alongside Visual Basic. VB is a GUI-based advancement instrument that offers a quicker RAD (Rapid Application Development) than most other programming dialects. VB likewise includes a linguistic structure that is more direct than different dialects, a visual situation that is straightforward and high information based availability.

How Visual Basic is Used
The structure of VB is designed to allow programmers to use the environment to write executable files (exe files). The most mainstream kind of Visual Basic being used today is VBA. VBA is an adaptation of Visual Basic that can be utilized to program Microsoft Office applications, for example, Excel and PowerPoint. Typical users engage VBA to make repeated, everyday tasks less monotonous through the use of macros. Macros automate almost any activity—such as performing word and data processing or generating custom charts and tables. For example, a typical user might write a macro that allows them to create and fill a spreadsheet with a single click. Computer professionals use VBA and macros in more entangled manners. Developers will regularly compose macros that can reproduce enormous parts of code or characterize explicit dialects.

Advantages of Visual Basic
VB provides not only a programming language but an integrated development environment (IDE) that has been written and optimized to best support RAD. This permits software engineers to effortlessly construct GUIs and interface them to capacities inside the application. In Python, there is a module called PyQt5 that is utilized to create GUIs. Like Visual Basic, PyQt5 has fundamentally the same as utilization and sentence structure.

...  Read more

1 2 ... 10

Daily Deals


MECHANICSBURG WEATHER