Administrator

[email protected]

Total likes received: 115 | Pubby Cash: 377


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

Have you ever heard of something called "Cython"?

Categories: General, Tech | Pubby Cash Received:  0

It sounds a great deal like Python, and it is. Be that as it may, Python is a deciphered programming language. Various investigations propose that Python is much slower than various assembled programming dialects including C and C++. Numerous software engineers settle on different supersets of Python programming dialects to quicken code execution speed. Cython is a well-known superset of Python. As an accumulated programming language, Cython encourages software engineers to help the execution of code with C-like execution. The engineers can load and utilize the augmentation modules legitimately in the Python code through the import explanation. Essentially, Cython is only a superior variant of Python. This is the reason Cython is better: Since Python is a deciphered programming language, software engineers need mediators to change over Python code into machine code. Each time a software engineer runs a Python program, the code should be parsed and deciphered before execution. Then again, Cython is a gathered programming language. The Cython projects can be executed straightforwardly by the CPU of the hidden PC without utilizing any translator. This enormously speeds up your application just as eliminating CPU utilization....  Read more

Tricky Business...

Categories: General, Tech, Gaming | Pubby Cash Received:  10

Have any of you heard of this Python module called Pygame? Pygame is a cross-platform set of Python modules designed for writing video games. It includes computer graphics and sound libraries designed to be used with the Python programming language. Pygame can be installed on basically any platform, with the most popular being Windows and Mac. It's relatively easy to install on Windows—a simple pip install pygame should do the trick. However, if you have an outdated Mac like me, installing Pygame is a whole other story. Just typing python3 -m pip install -U pygame --user in your outdated Mac machine won't cut it, and that was going to be a problem. I looked for answers in Stack Overflow, Github, Google, but none of them seemed to work. I tried uninstalling Python3 and my current code editor, "PyCharm", but that didn't seem to work either. So from then on, coding with Pygame had to be done on my Windows computer, which isn't always comfortable. Yesterday, I tried to install a new module on my Mac that would allow me to develop mobile apps. I tried, and it didn't work. At the same time, I remembered my previous failed attempt to install Pygame. This time, I carefully inspected every single line in the documentation and scrolled down the download page for further tips on Mac installation until I found an older version of Pygame that might work. I carefully copied python3 -m pip install -U pygame==2.0.0.dev6 --user into the terminal and executed the command. It worked....  Read more

Uggggh!

Categories: General, Tech | Pubby Cash Received:  0

Wouldn't it be great if there was an app that could turn your completed website into a mobile app that could be downloaded in the app store? Sounds fantastic to me, because then I wouldn't have to write all of that additional code just for developing an app. So I Google searched websites that claimed they could "turn my website into a mobile app for free". I went onto a few of the top hits and tried out some of the features. I just provide them with the URL for my website and they do the rest. I could style the thumbnail, the theme, and all of the other decorative arts. After all of that was finished, I clicked the "Create App" button, which to my disappointment brought me to a membership page. It told me that I had to purchase a license or some other gibberish that I had to purchase. I thought, what's the point of putting "free" in the keywords when the website is anything but "free"? This website was a joke, and so were all of the other top websites that offered the service. Instead of wasting my precious time trying to figure out a shortcut to solve this problem, I should now focus more on accomplishing this task myself without the use of those "free" services....  Read more

Is It ’S-Q-L’ or ‘Sequel’?

Categories: General, Tech | Pubby Cash Received:  0

Many coders use this extremely useful tool in their projects. It’s called Structured Query Language, or SQL for short. However, many people still struggle with just how to pronounce the term SQL. Is it “S-Q-L” or is it “sequel”? Now you might not think that this is a big deal (and it isn’t), but to sound more professional and knowledgeable during interviews and other “showing off” moments, you need to know the best pronunciation. The standard says that ‘S-Q-L’ is the appropriate way of speaking SQL. However, many English-speaking database professionals still use the nonstandard pronunciation “sequel.” So which one tops the other? Unfortunately, that’s hard to say, but I will tell you my opinion. So first, we will talk about how to sound intelligent. Let’s say you’re at a conference and a person insults you. Would you just insult them back just by calling them “stupid”, or is there a more sophisticated way of doing this? Of course, there is. When you are certain you have some spectators, you can tell them that they “have no intelligence” or “lack an effective brain” or some other response that sounds longer and uses higher vocabulary. All of these options will surely be more superior to just calling them “stupid”. The better approach of insulting someone back is to lengthen your response so you sound wiser. And the same goes for expressing your understanding of a topic. When someone asks you which coding languages you know, it will sound better by saying that you “have a deep understanding of Hypertext Markup Language, Cascading Style Sheets, JavaScript, and S-Q-L”. This would also be the right time to pronounce SQL as “S-Q-L” because it’s longer to pronounce so you will sound more intelligent. Use “sequel” whenever you’re speaking quickly or just discussing code with your friends. Since there’s no one to impress, “sequel” would be the better option in this case. Personally, though, I prefer to use “sequel” just because it’s easier to say, but that’s just my opinion. ...  Read more

Problem and Solution

Categories: General, Tech | Pubby Cash Received:  0

I came across this problem while I was coding, and it bugged me for a very long time. After the launch of stocks on our website, it is possible to find a loophole when one is purchasing shares of stock. You see, when you purchase a share, the input fields with the stock information are disabled so you can’t modify the price. However, while I was testing the URL for the site, I noticed that a user could just simply change the price of the stock in the URL and instantly get rich if they make each stock one dollar. So this was a serious problem and I got to work right away. Beforehand, I passed the stock price through the URL and used that price in the form. I tried to fix it by hiding the numbers in the URL. That didn’t work. After many attempts, I thought of another method. Why couldn’t I just use the price from the previous page, the page that listed all of the stocks? I queried the dictionary and found the real price and used that in the form. Now even if a sneaky user tried to bypass the price of the stock by changing the URL, once they hit submit, it will show an error because the price in the URL didn’t match the price I had in the dictionary. The important lesson I learned from this experience was to consistently attack a bug in all sorts of perspectives until one worked out. When one try didn’t work, I didn’t give up and thought of a new plan....  Read more

1 ... 5 6 7 ... 10

Daily Deals


MECHANICSBURG WEATHER