Who needs PIP?

The only internet access I have at home is through my cell phone, so I have had to download the files I need and transfer them to my computer. For some tutorials, I needed to install pyglet. I can’t use pip because it is broke on my machine and after having to try and upgrade to the latest version to fix it that failed; I figured another way to do it.

I downloaded the zip or tar file for that module and then transferred it to my computer. Unpacking that file to my hard drive, I went to the prompt. I changed directories to the folder which held that modules setup.py file. Typing in the command: python setup.py install and pressing the enter key began the installation. If no errors occurred, I verified it by starting the python shell and then using the help(“modules”) command to see if it is listed. Success!

I hope this helps if your pip tool is broken or you don’t want to install using a wheel (whl) file, but instead use the compressed folder from the download site. Happy coding!


Since the recent passing of my girlfriend and new full-time job, I have regrouped to gather some confidence. I have purchased Qbasic by David I. Schneider and am using the Qb64 compiler.

I know that it is an old programming language and not used very much nowadays, but the concepts of programming are still there. The author uses structured programming, while shunning the unconditional branching of the GOTO statement. My progress is slow, yet I am attempting to get into the habit of touching the code everyday.

I believe that today’s developers are chasing after the “shiniest new technology” and that should not be the goal. Programmers should be learning good practices and solid concepts first. The books, tutorials, etc. should be ones that promote these ideals and the language secondary. If your fundamentals are missing or sloppy, then using the most recent coding dialect won’t help.

I continue to practice my Spanish daily with three apps on my smartphone; in which I recently had to reset. I also contribute to the Quora forum when possible. Here is to renewed pursuits of my coding expedition. Happy coding!

JavaScript, Dom, and the browser

In working with the dom (document object model),  an issue is not addressed in the tutorials that I have been going through recently. Upon using one tutorial which has the external script referenced in the head of the web page, I was receiving an undefined error in the console of the developer tools. The script was not waiting for the web page to completely load or the dom tree to be finished, therefore the error. The fix for my external Javascript file?

  1. A much older fix is to add window.onload=()=> { the original javascript code } in the external javascript file . 
  1. Move the script element from the head section to the bottom of the document before the closing html tag of the web page.
  1. To leave the script element that references the external javascript file in the head section, but add a defer tag to the end of  the opening script tag . This is the preferred method today.

Each of these examples have the affect of making the script wait until the browser window is loaded. It resolved the undefined errors and now I am able to traverse and change elements and attributes using the dom with vanilla javascript. Happy coding!

Life happens

It has been awhile since my last post. I have been busy with helping get my grandfather’s affairs in order. Between the selling of his house, moving his belongings, and his previous hospitalization, among other things; it has been busy. Learning Spanish continues, as well as CSS tutorials. I have been looking at CSS and it is really great. The ability to animate and transform elements is exciting. Adobe Flash used to be the one way to things move around in a browser in a timed progression, but with keyframes. I see that the addition of this new feature has given some of the same functionality to web components on a page.  Though I know there are limitations, I have seen some amazing projects with just HTML and CSS, such as slideshows. The manipulation and presentation of CSS is powerful which will most likely continue to evolve. Until next time, happy coding!

Spanish and programming

For the past ten months, I have been learning Spanish with  flash card and language applications. I have been very pleased with my progress that I could not in my Spanish 1 class that I took several years back. As I have made strides, I can see that learning a programming language is virtually the same.

After learning words to make up a solid base (I have almost 500 at this time) and the syntax of the language has become more clear; I have begun to make contextual sense of sentences that I couldn’t  before. Now I have begun to form my own sentences, whereas before I could only read them. It is still early, but is progressing nicely.

The same could be said of learning a programming language. First, learning the vocabulary (variables, reserved words) and then seeing how they are structured into statements (sentences). Next, the beginning of hopefully writing down the same code that is seen in lessons. I do this with the flash card application by typing out the words in both English and Spanish. The other application previously mentioned has me write or pick the cards to make sentences in either language. Applying similar methods regarding the structure in computer programs leads us to coding literacy as well. Finally, creating original writings (code) will begin to slowly emerge and will improve with practice and continual learning.

I realize that I have a long way to go in Spanish, but am buoyed by the fact that if I can remember approximately 500 words in this foreign language, then I can certainly learn the average 100 words of a computer language that Amy Hirotaka stated  in her article about computer languages, “Computer Science is Not a Foreign Language” Code.org 2014. I see myself becoming a great programmer because of my taking on the challenge of learning a foreign language. Though speaking in Javascript or C is not necessary to converse out loud with the native programmers, I believe that the aptitude to decipher the context of another programmers terse code or the ability to explain what a piece of programming is doing can be helped by my current studies. Talking like a native to get better directions and understanding the writings can lead to better accomplishments! Until next time, continue the journey!

JavaScript Essentials

I have recently been taking several online courses through lynda.com and the current one is Javascript Essentials. The author is very good, but I have had to study the examples a couple of times to understand some of his code choices. The best part of his course is the use of linters. I was unaware of JShint. I have the JSlint plug-in for Notepad++ that I have used and it has JShint linter built-in as well.

I am approaching my learning like a bootcamp, where you get a general overview of the basics in HTML, CSS, and Javascript. I will go back later and try to dig deeper into the depths of these languages.I am also getting into courses for the graphics editor, Gimp, and will be doing one on SQL as well. Next ECMAScript 6! Until next time, keep exploring the jungles of development!

GitHub and mobile

As stated in previous posts, I use my mobile phone for Internet access. To post this blog and recently to get on Github. A problem exists that there doesn’t seem to be a good client for this platform, so I have been going through the mobile browser. When  connected through the mobile site, you can’t take actions like changing your repositories name or download code.

What to do? I made a decision to try the desktop version of the site and was able to rename my repository! I can go to other people’s directories and download their code or upload mine. My guess is that a restriction exists on the mobile portion (probably a permissions issue), but not for the desktop side. If you find yourself stuck in a predicament like mine, then try this workaround. Until next time, keep exploring the jungles of development!