Skip to main content

Posts

Showing posts from August, 2017

I downloaded and learned how to use Vim (On a basic level)

Having used Atom as my main and only text editor, I never even bothered looking at any other ones. However, a friend of mine-who has way more experience than me in development-showed me a few tests that seemed to suggest that Vim or Sublime Text was the way to go in terms of a text editor. I cant seem to find the tests right now, but the main thing that convinced me to choose a different editor was the data that showed the large amount of memory Atom took up while doing a task. Vim is probably the coolest editor I've seen, hands down. After downloading and launching Vim, I was greeted with this retro, old school screen that I fell in love with immediately. The shortcuts are so weird too! The concept of Vim revolves around never having to touch your mouse to do anything, and that is what makes it stand out the most in my opinion. I've learned how to run code, save files and some other basic commands, but a more detailed blog about Vim will come after I get to play ar...

I learned to compile python code without an IDE (and with the Atom text editor)

For a long time now, I've been wanting to learn how to compile code in Java and Python (the 2 main languages I like to code in) without the use of NetBeans/Eclipse and the Idle IDEs. A software developer friend of mine told me that many devs use text editors in the workplace, and I thought figuring out how to compile and run my code that way would be a cool thing to learn. Compiling code in Java will be for a later blog, but here is how I got python setup: 1) Installing the Atom Text Editor Atom is a free, open source text editor developed by GitHub. I was first introduced to Atom at a high school hackathon I went to, where it was praised for being fully customizable and having a large array of packages to download from (although I learned today that Vim is a better text editor in terms of memory usage). Installing Atom is very simple, and the download link can be found here .  2) Installing the Script Package  Next, I found out that installing the scri...

Showcase and how to get started with a Speech Recognition Bot coded in Java

When I first got into coding, I dreamed about creating my own local version of Siri for my desktop; lying back on my chair and doing things with just my voice was what I always wanted. After coding with Java for over a year, I decided that it was time to learn more than just using JFrame and creating classes. "Zero" is a speech recognition bot I coded using the Sphinx4 voice recognition library in Java and the Selenium Webdriver for Chrome. Although no Siri by any means, the bot can open and close windows, create tabs, open sites etc. using just my voice. The demo for the bot and its commands as of now can be found below: 1) Setting up the voice recognition: Luckily, there is already documentation on how to get started with sphinx4. The Jar Files for this library can be downloaded  here . As you can see, each recognizer should have an Acoustic Model Path, a Dictionary Path and a Language Model Path set. After running the code, I figured out that the recogni...