hawksprite

hawksprite

C# Downloader Class

Recently when handling downloading zip’s from our patch server then extracting them in unity I wrote this downloader class to better handle the process.

I realize that Unity 3D has there WWW class built into there API for this very purpose however if you spend about 10 minutes snooping around the forum about it you’ll quickly see that they haven’t given it much attention as of late and it’s progress capabilities don’t work half the time (Or at all in some cases).

So without further ado here’s the class I’ve made:

Not really much to it.  Probably the more versatile part is the built in Unzip method to make it easy to use with download zip -> extract zip type workflows.

You can easily remove that functionality if you don’t need it, but otherwise you’ll also have to hook your project up with some dependencies found here:

http://dotnetzip.codeplex.com/

The class is pretty self explanatory but i’ll through an example up anyways.

Feel free to do whatever with it, that’s why i’m posting it.

sagansense:


Illustrations by Enkel Dika

via fer1972
sagansense:


Illustrations by Enkel Dika

via fer1972
sagansense:


Illustrations by Enkel Dika

via fer1972
sagansense:


Illustrations by Enkel Dika

via fer1972

Hmm…

I haven’t posted as much on this as I’d like.  It’s turned into more of a “Tumblr” then an actual programming blog like I’d intended.  After seeing this however I’m going to really make sure I don’t let this slip away and actually use it how I wanted to.  We’ll see what happens anyways….

On a side note I realized today that Lifehacker is just like a hitch hiker’s guide to the galaxy. Want to know about digital camera’s when looking to buy one.  Just look them up on Lifehacker and all research is done… Shit yeah.

Also I don’t know if I even need to post this or how tumblr handle’s it but I’ve pointed the domain hawksprite.com at my blog.

iamtherightkirsti:

wow he really hates school
iamtherightkirsti:

wow he really hates school
iamtherightkirsti:

wow he really hates school
iamtherightkirsti:

wow he really hates school

iamtherightkirsti:

wow he really hates school

(via laugh-addict)

sagansense:


Wow! Hubble Snaps Super-Deep View of Universe 
A new set of breathtaking photos reveals a never-before-seen deep view of the universe.
Released as the first “Frontier Fields" view from NASA’s Hubble Space Telescope, the new images mark the deepest-ever observations of a cluster of galaxies. The photos center on Abell 2744, a group of several hundred galaxies found 3.5 billion light-years away from Earth.
Continue Reading

via thenewenlightenmentage
sagansense:


Wow! Hubble Snaps Super-Deep View of Universe 
A new set of breathtaking photos reveals a never-before-seen deep view of the universe.
Released as the first “Frontier Fields" view from NASA’s Hubble Space Telescope, the new images mark the deepest-ever observations of a cluster of galaxies. The photos center on Abell 2744, a group of several hundred galaxies found 3.5 billion light-years away from Earth.
Continue Reading

via thenewenlightenmentage

sagansense:

Wow! Hubble Snaps Super-Deep View of Universe

A new set of breathtaking photos reveals a never-before-seen deep view of the universe.

Released as the first “Frontier Fields" view from NASA’s Hubble Space Telescope, the new images mark the deepest-ever observations of a cluster of galaxies. The photos center on Abell 2744, a group of several hundred galaxies found 3.5 billion light-years away from Earth.

Continue Reading

via thenewenlightenmentage


The Revolution CT scanner can take a complete 3-D scan of an organ in speeds analogous to the shutter speed on a camera. Read more about its development at Fast Co.Exist. 
Source: generalelectric

The Revolution CT scanner can take a complete 3-D scan of an organ in speeds analogous to the shutter speed on a camera. Read more about its development at Fast Co.Exist

Source: generalelectric

(via sagansense)

The thing about programming is that you’ll get to the end of a year and realise that while you spent a lot of the year writing code, you never actually created the things you wanted to at the start of it.

(via thethingaboutprogramming).

Entirely true, often it’s actually a bit depressing how many things you want to do and never seem to be able to find the time to work on.

Why filesystems have loose-coupling and your protocol doesn't

programmingisterrible:

Interfaces are a powerful concept in programming: the idea that you can separate the abstract behaviour from the concrete implementation with a protocol: an agreement on behaviour between components.

Good interfaces can lower cognitive overhead, and encourage code-reuse, but they don’t guarantee…

Unity Light Stage 0.1

I setup a quick Unity light stage, which is basically just a zipped project with a decent light setup and useful scripts for testing assets in unity.  For the most part there isn’t to much interesting going on here, just a camera setup and a useful script for controlling the camera in run time similarly to how it runs in the scene editor.

If you’re looking for a quick unity setup to throw up some assets and play with them this may be a good starting point for you.

Controls:

W/S                            Forward/Reverse
A/D                             Strafe
L Shift                         Speed Up
R Mouse                     View Direction

Download:

https://mega.co.nz/#!1gwwSCCT!eLPCkh0Ea1CiKrNhg6P0gm32bjBigMHrpKqZCoiwoEw