Showing posts with label fast. Show all posts
Showing posts with label fast. Show all posts

2014-12-06

Level Up - Android Dev: The default emulator is horrendously slow, use Genymotion!

Many years back when I built and published my first Android apps, I only tested them on the default emulator provided by Google. And, even now, the default emulator is still too slow for my liking. It doesn't allow me to properly test apps. So, I purchased physical devices so that I would never have to touch the Android emulator again.

Genymotion provides a different take on the Android emulator. I've known about it for at least a year, but never got around to trying it because of my really bad experience with the default emulator. I've always heard that it was much faster than Google's implementation, but I didn't think an Android emulator could ever be fast enough for me compared to my physical devices.

I'm always learning something new, and today was finally time for me to learn more about Genymotion and test just how much better it is.

Results: Excellent! So much of a great experience that I had to write this blog post about it! I should have tried Genymotion when I first heard about it, and this is my message to all Android devs to also try it out now!

Sidenote: I was going to compare the default emulator with the Genymotion emulator side-by-side, but it was taking too long to load for me, whereas Genymotion startup was a breeze of fresh air. It runs without any lag. It runs faster than my old API 17 device.

Another great benefit is that Genymotion provides system images for many of the most popular devices, including Samsung Galaxy, Samsung Note, HTC One, Nexus, and more. And, they have a very convenient plugin for Android Studio to launch the emulator.

TLDR: It's fast. I have to make sure I stress that because I didn't believe how fast it would be. Genymotion's Android emulator is much faster and better experience than the default Android emulator.



Here, I even saved enough time to write a quick walkthrough for getting started. ;)


  1. Go to Genymotion.com, click "Get Genymotion".
  2. Download the free version, you'll have to sign up and confirm your email. (It's quick and it's worth it!)
  3. Install it along with VirtualBox. For Windows users, they can bundle the two together in the download. For other, you'll have to install VirtualBox separately.
  4. If you try to run it now, you might get an error that says "genymotion virtualization engine not found. Unable to load VirtualBox engine". So, just restart your computer and that fixed it for me. Some others had to enable the virtualization feature in the BIOS.
  5. Run! Fast!
  6. Now, you can click run in Android Studio and you will see an option to load the app in the Genymotion emulator that is running.

Bonus: How to Install the Genymotion Plugin for Android Studio (and, the first time you click on the installed plugin button, you'll have to add the path to where you installed it. Windows default is "C:\Program Files\Genymobile\Genymotion". Mac default is "/Applications/Genymotion.app")
~ Danial Goodwin ~



2014-02-17

Level Up - Programmer: How To Quickly Setup And Use Git And GitHub

A long time ago, the first time I started trying to learn Git and GitHub, I thought it was an unnecessarily complex process. All I wanted was simple version control and easy collaboration. So, instead of learning Git, I just made everything really modular. For one of my teams, we even just worked in completely different files, and it worked out okay.

But, now, I want to explain the absolute basics on how to start, in order to drastically reduce the learning curve. You can always find more detailed information later. And, you can get started right now!

Assumptions:
- You already know what Git is.
- You are running Windows OS.
- You already have folder/file(s) in mind for added a version control system to or want to do easy collaboration on code projects.
- You want to get started with GitHub.
- You are okay with basic instructions meant for the easiest use of Git/GitHub.

Git
Step 1: Download Git.
- Make sure you have "Git Bash" to be installed also, and you can add it to your [right-click] contextual menu also during the install process. (And/or you can add Git to your Path.)


Step 2: Configure Git.
- Open Git Bash (either right-click in file explorer or find it through search)
- Type the following two lines into the console, and change the red parts to your own information:
git config --global user.name "Your Name"
git config --global user.email "your@email.com"

Step 3: Setup project to work with Git.
- Navigate (using cd) the console to the directory where you want to enable Git.
- Run the following lines to setup the folder to work with Git and "save" all the files in the directory.
git initgit add . 
git commit -m "Initial commit"

And, now you have version control. Just do those last two lines again whenever you want to save a new version. Change the red part to something descriptive of the change.



GitHub
Step 4: Create a GitHub account.
- If this is your first time using GitHub, you will need to create an SSH key. After entering the following, hit enter again to save to default location (your user folder/.ssh).
ssh-keygen -t rsa -C "your@email.com"
- The console tells you where the public key has been saved. Open that file in Notepad++ and save the contents to GitHub.com->Profile->Edit Profile->SSH Keys->Add SSH Key. (Each arrow -> is basically another click.)
- Check for success by running:
ssh git@github.com

Step 5:  Create a new repository (sometimes called a "repo")
- Click the big green button somewhere on GitHub that says "New repository"
- Name the repo and create it.
- On the page you are navigated to, find/copy the "SSH clone URL". This will be used in the next step and looks something like, "git@github.com:danialgoodwin/MyFirstRepoNameHere.git"


Step 6: Pull From GitHub, then Push To GitHub.
- Setup the location that you will push to and pull from. The part in red should be substituted with your info from step 5. (The following should all be on one line.)
git remote add origin git@github.com:andrew8088/Shazam.git
- You always want to "pull" from GitHub before you begin your work because others may have updated the code:
git pull origin master
- Now, you can finally update your code to GitHub!
git push origin master


For more great information and details, please visit:
- Easy Version Control with Git
- Official GitHub site, there should be large buttons wanting to help you further.



~ Danial Goodwin ~



2014-01-03

Dan vs Phases of Matter

Assume for a moment that we don't take for granted everything we learned in school.

Today's post is about the different phases of matter and mainly their reaction of going from one to another.

Coming from a naive perspective, isn't it weird how a liquid state can just go to a gas state in our everyday lives? (E.g. boiling liquid water on a stove) Would it not make more sense if there was more of a gradual change from liquid to gas, rather than just directly? It seems to not be a slow enough change, how science has defined it in classes.

Meme: Liquid going to gas, that escalated quickly.

~ Danial Goodwin ~

ps - This was just the basic version. Eventually, I may have a post about supercritical fluids and degenerate gases.



2013-12-26

Idea: Reusable Fast Food Bags (Problems Solutions, and More)

There is a lot of waste coming from every purchase of fast food - bags, boxes, wrappers, etc.

What if, instead of throwing everything away every time, we could use a reusable bag, just like the trend is starting at grocery stores?

One problem with this is that the bag may get dirty over time from the french fries, grease, and other materials.
Some solutions:
 - Recycle the bag after it has been used so many times.
 - Wash the bag.
 - Have better wrappers for food put inside of bag.
 - Make it a self-cleaning bag. Read more.

The above handles at least the to-go bag.

Another problem is the wrappers and boxes that the main sandwiches/hamburgers go in. Even if they are made out of paper or cardboard, they are still thrown away. So, how do you make a reusable box if it keeps getting dirty/soiled by the sandwich.

Solution: Add a super hydrophobic and/or another non-stick surface to it. Here's one example for superhydrophobic. As for non-stick, I've seen a few videos of ketchup (and more things) not sticking to the insides of bottles or other places with the added non-stick surface.

~ Danial Goodwin ~



2013-01-26

Simply Advanced Unit Converter - 50000 Downloads!

It may not sound like much, but this one app has more downloads than all my other apps combined. Unit converters is a big market and this app has at least two features that don't appear in other unit converters.

This is easily my choice and many others' top choice for unit converters.

Testimonials:

  • "Simply the best And I tried all of them"
  • "Does the job, quickly and cleanly Simple and straight forward interface makes quick conversions a breeze. Enter in your measurement, and all the related units are converted and updated instantly."
  • "Simple but the best No more complications just a simple complete unit converter."
  • "Great Improvement Looks and works great. Love the new logo. Keep it up!"
  • "Look no further Wouldn't even consider any other unit converter after this one."
  • "Powerful & straightforward Just what I needed for metric & temp conversions!"
..and that's just the on the first page. =D

Thank you everybody for supporting the app by giving it five stars!

Link: The best android unit converter in Google Play.

~ Simply Advanced ~



2012-08-26

Military Math

1) In the military, there is a saying:

  • "If you're early, then you're on time. If you're on time, then you're late."
  • "Slow is smooth, smooth is fast."


2) In mathematics, there exists the Transitive Property:
if a = b and b = c,
then a = c

So,

Let a = early
      b = on time
      c = late

Or, you could also try out
          a = slow
          b = smooth
          c = fast

Just saying.. ;]
~ Simply Advanced ~