Onedayitwillmake

NYC Programmer Mario Gonzalez's blog

Onedayitwillmake

This author hasn't added his/her bio.

ios-creating-reusable-uiviews-with-storyboard – Part 2

This has is an updated version of ios-creating-reusable-uiviews-with-storyboard for Xcode 6. TL:DR version: Create a new UIView subclass name it MyView.h/MyView.h Create a new XIB name it MyView.xib In MyView.xib select the File’s Owner and set the class (using the right pane, third tab) to MyView Create an IBOutlet in MyView.h is of the type UIView*, call it contentView In InterfaceBuilder (with MyView.xib open) right-click drag the File’s Owner the root view, and.. Read More

Open two instances of Unity at once

Sometimes you have a project that you’re using as reference, maybe you added some functionality in a previous project or you downloaded a sample project and you are trying to recreate that thing in your new project. It would be great if you could have them both open side by side so you can compare them right? Unfortunately if you try to open Unity by clicking the icon, it will just bring your.. Read More

Create iOS / Android icons from master icon

This is just a simple script that will create your iOS icons from a masterfile. I’m using it on a Unity project (Even though Unity will make the icons for you, the way it resizes the images leaves them appearing jaggy). It works best with a 1024×768 icon as the source #!/bin/bash # Author: Mario Gonzalez # Modified for iOS7 from: https://gist.github.com/jessedc/837916 f=$(pwd)   # App Icon – iPhone iOS7+ sips –resampleWidth 60.. Read More

Using Greensock JS / TweenMax in a Dart application

Once you use Greensock / TweenMax / TweenLite, you don’t really want to use anything else. It’s fast, it’s feature rich, and it works on more browsers than dart itself. This is a quick post on how to use the animation library, it’s surprisingly easy. First import the dart:js library import ‘dart:js’; Next, add dart.interop.js to your HTML after your own apps script tags. Mine looks like this: <script type="application/dart" src="dart/mandala.dart"></script> <script src="packages/browser/dart.js"></script>.. Read More

Placing an AppKit controls over a NSOpenGLView / CinderView

Currently working on an OSX application that requires UI controls to live above a CinderView (Which is a type of NSOpenGLView). Obviously first I tried to simply place the objects above one another in InterfaceBuilder, but that had no effect. The NSOpenGLView always draws above all other content. Next I tried some information someone suggested, with switching to layer-backed views. That crashed my application on startup. Instead what I found that worked, was.. Read More

[iOS] Creating reusable UIViews with Storyboard

I’m a big fan of using Storyboards to act as the glue for your application. It just makes everything much easier, and makes your program feel like a cohesive application instead of a random assortment of UIViewControllers However one problem is that, Storyboards don’t lend themselves to having reusable views. Which I find kind of odd, because it seems common that you would have a view that needs to exist in multiple screens.. Read More

Compiling LESS from a node.js script

LESS is a tool that allows you to write CSS in a programmer friendly way (with variables, and some simple functions), it then converts it to regular CSS for browser friendly consumption. It’s amazingly easy to use, during development you don’t have to change a thing. You simply import your .less file, then under you import ‘less.js’ and it does it’s magic. Eventually you need to preprocess it as part of your build.. Read More

A Little About Digital Audio and Linear PCM

This is from Apple’s documentation on CoreAudio. Since I find wikipedia to be only marginally helpful these days (it actually suffers from TOO much information) I found it explained these concepts so well, I had to quote it for future reference. A Little About Digital Audio and Linear PCM Most Core Audio services use and manipulate audio in linear pulse-code-modulated (linear PCM) format, the most common uncompressed digital audio data format. Digital audio.. Read More

Excellent open-course, from NAND to Tetris

Came across this while I was reading an entry on #ALTDEVBLOGADAY. The entry was part 2 of 9, C / C++ Low Level Curriculum part 2 which is interesting in it’s own right. There was a link to this interesting MIT open course called: From NAND to Tetris, which discussing building an entire computer from first principals. The idea is to work backward, instead of starting at high-level abstraction beginning at the lowest.. Read More

List of programmer shiny things

This is from Andrew Bell’s talk at the EyeO festival. I’m taking it out of context, and in fact he was talking about focusing in on your craft, not being distracted, and finishing projects that you start. “Which of these will you avoid this year, in order to finish your projects?” I think it’s also a good list of interesting technologies to jump into… blasphemy i know. The talk is awesome and worth.. Read More