Getting HaxeFlixel up and running on Linux

haxe

Hello, friends.  Today, Sam and I went through the arduous process of getting your Linux environment set up to build Haxeflixel projects.  At this point I have given up bloggin’ forever.  <Insert Sam’s editing here>

Sam – Hi readers, today Ben and I went through the hard work of getting Haxe to work on Linux. To be honest, it was pretty easy once we tried installing it on Ubuntu. Ubuntu already has a PPA, so you can find all your updates via update center. Follow these instructions to get your Haxeflixel build. Later I hope to make a Debian guide.

First we need to install Haxe if you haven’t already.

$ sudo add-apt-repository ppa:eyecreate/haxe
$ sudo apt-get update
$ sudo apt-get install haxe

Next we need to check our haxe version.

$ haxe

As of Feb. 21, 2014 — you’re going to need 3.xx for lime. This is required for HaxeFlixel.

Next you need to install openfl.

$ sudo haxelib install lime
$ haxelib run lime setup
$ sudo lime install openfl
$ sudo haxelib install openfl-tools]
$ sudo haxelib install haxeflixel

Concerning what you need, you can find more information here.

Finally we need to text our first demo to see if it works. Click on the link to download your demo from GitHub.

$ cd [file]
$llime test "[.xml]" linux$ cd [location of file]

If you’re having troubles yet, take out an individual folder (such as FlxInvaders) and “cd” it. Your terminal will then flash a bunch of text at you. This is it compiling. Your result should be this.

flxworkIf this fails, you probably need g++

$ sudo apt-get install g++

Advertisements

Adopt a Sloth Project: Compiling Success, Amelia Joins the Team

Image

It’s week two, and Ben and I have worked on the building for Haxe. Soon to come will be a tutorial on how to get Haxe to run on your favorite Linux machine. As of now, Ben and I are working on compiling, talking about future plans, languages, and working with new builds. Right now we’re researching quite a bit. So don’t be surprised if you see some random tutorials. But besides that, Amelia joined the team last week and is working on a better background for the project. She has designed an alpha version of what she plans to do.

1966846_10153915536245294_2084640161_nWe know now that the resolution for the app is 480×320. This was considered “ideal” by our lead designer Ben (photo at top). The background of the main overworld (where your sloth will be selectable and interacting with other sloths) will be displayed here. In this area you will also be able to move your sloth, go to the sanctuary, and as other game modes are added, newer things will be available here too.

Adopt a Sloth Project: “TeamSloth”

Image

A good friend of mine Ben and I are developing a really neat game called “Adopt a Sloth.” Players will be able to take care of an adoptable sloth in a virtual sloth sanctuary. Every sloth is customized via a randomized algorithm that is inspired by real DNA theory. I’m not going to give away too many secrets, but every sloth should be remarkably different from each other, making each sloth you adopt totally different from anyone else’s. With adoption another main feature will be your sloth’s stats that indicates its hunger, thirst, sleep, “speed,” and beauty. You can increase these stats through breeding and mini-games, which will be implemented in later releases of the game. Your sloth will also grow as time passes. While it grows, more customization options should become available. In the first release, you should be able to adopt your sloth, name it, feed it, and watch it grow into an adult sloth. More features such as adopting your friends (as sloths), sloth boots, RPG elements, various income methods, and mini-games are also in the making but probably won’t be available until the next installment of the published game. More information about the games development will be posted here, so please check back with us later in the year for download information, screen shots, and other goodies.

Don’t Attend Shimer College

Read this at my new blog.
Go here.

If you’re thinking about Shimer College, then reconsider. Here are a few reasons why you shouldn’t attend Shimer College.

1. Shimer College provides a “liberal education” but isn’t in itself “liberal.”

Though we like to create boxes, Shimer doesn’t fit in one. And it is most likely for people to call it a “liberal” school without knowing much about it. Despite being a school that infamously calls itself “dangerously optimistic,” it is not making a political statement but rather an educational goal — creating a society of rational thinkers. Perhaps the politics lie on the hope that people who go through the Shimer curriculum will have the rationale not to misuse it or abuse their education at the expense of society.

2. Shimer College is a terrible place to get a technical degree.

Want to leave Shimer with some immediately employable skills? Perhaps you’re going to have to highlight “communication skills” and “Microsoft Office” on your resume. At Shimer students aren’t given expendable skills but improved facilities. Those who graduate Shimer should not fear needing to ever go back to school simply because Shimer gives students the skills to teach themselves how to do things. The world isn’t made intentionally difficult. New technology follows patterns, and Shimer will teach you how to sort out those patterns.

3. Shimer College is self-sufficient and self-governed, so you get a say in what happens to the school.

Talk about annoying. Who wants to have opinions when it comes to the administration of your school? Who wants to serve on committee boards, attend bi-semester meetings, and assemble with faculty and students and staff to discuss a common interest and goal? Pfh, not me. I’d rather sit back and let the donors figure out my education. Heck if I know anything. All I want to do is get my degree.

4. Shimer College makes you very, very excited to learn new things.

Imagine waking up and wanting to read 40 pages on logic. Who got time for that? Not me. I enjoy the pleasure of the passing moments and never quite understanding why they pass or how things work or why certain people think I’m a certain way due to their social constructions on my ultimate reality. Wait, what did I say? I think I need to recover from reading so much.

5. Shimer College will give you inspiration to reach out to your community, no matter where you are, to volunteer and to serve as a human being under your own convictions.

Some people like to accept others under the assumption that they don’t know everything, and so who are they to judge? These people are stupid because we all know there is a solid right and a solid left. Depending on what family you are born into, you’re either a Democrat or a Republican, and there’s no straying. You’re either a whatever or what. There’s no other path! There’s only right or left — wrong or right — black or white.

((And we all know how ridiculous that is.))

Rage Quit: What Is Data — Why Compute It?

Located here:

Located here: Brain Box

The function of a computer is to store input data and process it for an output, which we call information. Input data itself is usually unrecognizable to the user, and so the job of the computer is to process this data (creates understandable information such as graphs and charts — used mostly for the “end user” or yourself) or compile it into basic language (used to create unreadable files that can be stored or read by the machine itself — used mostly in programming).

Then what is “data“? There’s more than one type of data. You have data, and then you have raw data. Raw data can be understood as anything unprocessed — so the results of a computerized test that hasn’t been collected and sorted would be raw data. Field data would be data you can observe in the wild environment but need to record. Experimental data is probably the data you’re most used to from science class. It is testable and measurable because that is how it is designed. Data can then be broken into a few groups, but the two biggest groups seem to be entities and their values. In this article, I’m going to focus on entity-relationship models. In this particular model, an entity isn’t something an English major may identify as a concrete noun, though that’s something we’d love to do. An entity is something that is opposed to a value of an entity (which makes

ragequit_display

This is why we rage quit.

data structuring a pain sometimes). “Philosophy” is an entity, but if it is a “philosophical” “philosophy,” “philosophical” is the attribute of that which is “philosophy” like as to what Aristotle says: an entity is a thing that is in the state of being. Yet not in the literal sense. An entity can be many things, which is both in the abstract and concrete and even an event in time. The difference resides in the structural difference of the model. An entity is that which is not used to describe another entity.

In this model, we see that a Creep is an entity with the attributes: CreepName, HitPoints, Mana, and Attack. It holds two branching relationships: RanInto and IsType. RanInto is connected to Character. This identifies the event when a character runs into Creep. Character also has many attributes that are unique to itself. Character then is connected to Account, which has different attributes specific to an Account and not Character or Creep.

Further reading:
The Entity Relationship Model: Toward a Unified View of Data — Dr. Peter Pin-Shan Chen

Relational Algebra

Computer Science for the English Major (CS for us in Hum.)

credit to: Tri-County College.

Photo credit to: here and here.

“If books were the technological achievements of the past, computers are the technology of the present and Twitter its medium for intellectual banter. Instead of shunning the Kindle, we should embrace it.” ~ Anon.

Computer Science is a mystery to me — the passionate and romantic Humanities major. But then I look at my peers, those who plug in their Macintosh and play their video games on PC and wonder how should they gauge this topic. Is there a topic to gauge? And even so, how do we, as Humanities majors, grasp Computer Science? It’s a science on a machine. There must not be much to it. I can plug it in and use it. Rarely do I need to ask how it works, what does it do, and how can I make it do the things I want.Yet as a supposedly “well-rounded” type of person (because we’re suppose to be “critical thinkers” in our academic field) we rarely look at the ethics, the sciences, and the practical values of a computer.

For example, how does software work? How do you go from a solid piece of hardware to a graphical interface that calculates things and processes text (and if you couldn’t follow that perhaps you might need to touch up on your reading level)? Can these machines be the future of everything that exists today? Could they write novels like we do today? Should we find it humbling that we can write a book but can’t write a program that writes novels for us? Would it be worse or better if we could write a program that could write books? How do we gauge this question without knowing anything about Computer Science? How do we learn about Computer Science as English majors?

There are many ways of answering these questions. The obvious method would be to change our majors to CS or CIS or IS or whatever you want to call it. We can read many, many brilliant scientific journals and books on computing topics such my favorite: Relational Algebra. Or we can try to follow a particular reading list. In the following blog posts, I’m going to try to elevate your knowledge on Computer Science, give you some resources, and try to hold your hand in this scary, scary field of knowledge.

Computer Science like math is a gateway to critical thinking. If more Humanities majors learned it, we get more say in that field. To have more say in the CS field would be an absolute nightmare to the stereotypical scientist. Since we are Humanities majors (gadflies as Socrates said), we should dig deep into this material, so we can understand it, deconstruct it, and eventually create true art and question every bit of it. Computer Science is like math. It is a form, an art, and a science all in one. It is something we can learn and develop and question. Therefore if you are a Humanities major, you should try to learn a science because we need more of you in the realm of sciences. Polarizing yourself from the sciences does not generate intellect but divides it, limiting yourself and the field that is growing rapidly and quickly. To be part of this conversation, to debate ethics in robotics and computing, we must learn about it.

And thus my blog: in the next week I will be posting a “reading” and give you details about what I’ve learned from it. I’ll also give you resources to use to catch up with me and then maybe a few exercises. In the following week, I will first look at the history of computing, then at the hardware, the operating system, and the organization of the machine. Then we’ll look at specific examples and focus on open source — since I don’t want to step on the toes of propriety software (and as an ethical person, you and I should support open source software — for that reason, a lot of this blog will be focused on Debian).