purplelilgirl

makes games & other things

1 note

ajdanny asked: first i need to thank to give awesome tutorial for recording voice and playback the audio. now i am doing app like talking tom with use of your code. Voice monitoring,recording and playback also coming good, but in my code i found one small issue like suppose i am saying "hi how are you", it will automatically start recording and stop recording. when i am trying to play the audio means it will say the last two words only. its didn't repeat the any single words. help in this please

Hi,

The reason why the first few seconds are cut off is because it’s in the monitoring sound clip, what I’d do is clip a few seconds of the monitoring sound clip and then combine it with the rest of your recorded sound clip. Did that make sense?

-purplelilgirl

0 notes

7 Little Children

Every night,  the teacher closes the lights and locks up the nursery for the day. After the lights are closed and the nursery is locked, six little children will file out of the two closets in two straight lines. The girls from the closet on the right in one line, and the boys in the closet on the left in the other line. The six little children will take their respective places on the hexagon- shaped table. The girls in one line will seat on the blue seats, while the boys in the other line will seat on the green seats. Six seats for six little children. After the six little children sat down, the closet doors will close.

One day, after the six little children sat down, the closet door on the left did not close properly. Behind the half-opened closet door on the left is a 7th little child.

The 7th little child peeked through the half-opened closet door on the left. He looked at the six little children sitting in the six seats of the hexagon-shaped table. Six seats for six little children, no seat for the 7th little child.   

I’m also taking a class on Skillshare called “Constructing a Story: Advanced Visual Storytelling.” (If you enroll with that link, you’ll also save $10 on your first class!), where are supposed to compose an original story through multiple images. Our first assignment is to come up with a story.

This class in unfortunately not free, but my friend gave me a promo code. So far, it’s okay, I’m still in my first week, so not sure how it goes.

Anyway, Skillshare has a lot of online courses, there are a few that are free and you can always check those out first.

I took “Launch Your Startup Idea for Less than a $1000” that was taught by the CEO and cofounder of Skillshare, that one was okay, he was a very a good speaker and he explained things really well. I’m probably not going to launch my startup anytime soon, but it was still nice to get some tips.

Filed under online class skillshare story storytelling

1 note

I made a collage by cutting out pictures from magazines. I wanted to create an artwork that had a plain background, so the center piece would be empahsized, so I looked for pieces with shades of white and had a lot of textures. Then I drew on the collage with a thin black pen to add details.

I was inspired by Joan Miro’s personages that features a plain textured blue background, so that the audience is immediately drawn to the drawings dead center.

My artwork is entitled “Caged” and it features a bird by the window, trapped in a cage, and outside there are little birds flying free.

The window and the cage symbolizes entrapment and domestication, while the birds flying outside and the white flower represents freedom, while the white texture and the green bird embodies a certain calmness.

I created this artwork, because I wanted to express the feeling of calmness, amidst the cage and the feeling of entrapment.

I’m taking another online class, it’s called Introduction to Art: Concepts and Techniques on Coursera. It’s pretty interesting because I like to draw and I like art, but I’ve never taken a formal course in art, so it’s kind of fun.

And we get assignments, for me it’s just an excuse to cut of pictures from magazines and make “art”.

This week was about Fantastic Art, and we are supposed to create our own Fantastic Art.

If you’re interested in art, you should definitely try it out, like most Coursera courses, it’s free.

Filed under coursera free online class art introduction collage

0 notes

Open in Instagram

I was a little obsessed with trying out different Photo Captioning apps for a while, until I finally settled on Typic, and then deleted the rest.

What does apps (Overgram, Instaquote and Typic) had in common was that at the end of the day, they all let you share your work in Instagram.

image

I’m just gonna write a really short code bit on how to do that.

Instagram allows apps to interact with their using different iPhone hooks (http://instagram.com/developer/iphone-hooks).

I’m going to use Document Interaction API.

It’s pretty simple, according to the Instagram developer page, you’d need to save your picture with a “.ig” or a “.igo” extension. And it has to be at least 612 pixels, either in width or height, anything less, won’t be accepted by Instagram.

When your picture is opened in Instagram, it’ll go automatically to the Filter screen. That means there’s no crop option, so better if your picture is a square.

So code bits:

In the .h of your ViewController, declare a UIDocumentInteractionController:

@property (strong, nonatomic) UIDocumentInteractionController *documentInteractionController;

And then set it as a UIDocumentInteractionControllerDelegate, like this:

@interface ComicViewController : UIViewController <UIDocumentInteractionControllerDelegate>

And then in the .m of your View Controller you add a button, or whatever that you want to use to trigger “Open in Instagram” that calls this method:

-(void) openInInstagram
{
    NSString *strImagePath = [[NSHomeDirectory() stringByAppendingPathComponent:@”Documents”] stringByAppendingPathComponent: filename];

    NSURL *url = [NSURL fileURLWithPath: strImagePath];

    self.documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL: url];
    [self.documentInteractionController setDelegate:self];

    NSMutableDictionary *annotationDict = [[NSMutableDictionary alloc] init];

    [annotationDict setValue: @”Instagram Caption” forKey: @”InstagramCaption”];

    self.documentInteractionController.UTI = @”com.instagram.photo”;

    self.documentInteractionController.annotation = [[NSDictionary alloc] initWithDictionary: annotationDict];

    [self.documentInteractionController presentOpenInMenuFromRect: CGRectZero inView: self.view animated: YES];
}

You need to pass an url to your Document Interaction Controller, since my file is saved in the Documents folder of my app, so my url looks like that.

So if you want to open your picture in Instagram and any other app that supports opening image files, simply use the file extension “.ig” for your image, but if you only want to open in Instragram, use “.igo”. Also, the UTI I set in the code above is “com.instagram.photo”, if you want it to be exclusive, use “com.instagram.exclusivegram”

You can set the caption you want to appear in Instagram. You can add hash tags in your caption, that works too.

And that’s it, when you click a button that calls the “openInInstagram” method, you’ll be able to see an action sheet similar to that screenshot.

Filed under instagram ios iphone development open in instagram code tutorial short

0 notes

Thoughts while reading Cocos2d-X by Example Beginner’s Guide Chapters 1 & 2

Packt published a new book on Cocos2d-X, “Cocos2d-X by Example Beginner’s Guide” by Roger Engelbert (http://www.packtpub.com/cocos2d-x-by-example/book)

Cocos2d-X by Example Beginner's Guide

First off, book cover is adorable.


Second, the book’s spiel says no programming knowledge required, oh really now? Anyway, I know Cocos2d, but I don’t know Cocos2dx nor C++, the language for Cocos2dx, so here I go. If I can make some cookie cutter games at the end of this review then…

I’m just going to spurt words while I read the blog and maybe give an overall summary and reviews at the end of this post. You can ignore the italicized parts, those are just random ramblings.

#nowplaying Lana Del Rey’s Young and Beautiful #onloop after watching “The Great Gatsby” last night.

Chapter 1 covers Installation. Installing Cocos2dx and whatnots.

The book assumes that you are on a Mac and you have Xcode, which yeah, I am and iOS dev and all, I have Xcode.

Okay, the book gives pretty clear instructions on where to download Cocos2dx. now, I just need a few minutes to download them.

Cram my Crash Course for Creativity assignment till then.

Okay, the instructions for installing are pretty clear. Although my Terminal had some other suggestions for how to properly install it. Anyway, that’s done. So when I create a new project in Xcode now I’ll be able to see the different Cocos2dx templates, awesome.

Just “built” and run my first Cocos2dx program, okay, the coconut head is silver and blue now. Looks kinda funky like Pepsi Blue.

Anyway, he did a brief run through on how to run the Cocos2dx samples so that we could see all the infinite possibilities, okay not really infinite, but it’s a pretty long list of sample tests.

And then, he says might need to spend some money on additional tools. He recommend and uses four tools.

TexturePacker, although you can also use Zwoptex as a free alternative. TexturePacker’s Andreas Löw actually used to offer (not sure if he still does, try tweeting him) licenses for bloggers. So yah, I have a free copy of TexturePacker.

ParticleDesigner, which will ease the process of making particles. No, I don’t have that. I’ll probably look for some free alternatives, the author didn’t mention or recommend any.

A tool to help build bitmap fonts, he recommended Glyph designer (not free), bmGlyph (cheaper, but yah, still not free) and FontBuilder (yeah, free). According to him “It is not extremely hard to build a Bitmap font by hand, not nearly as hard as building a particle effect from scratch, but doing it once is enough to convince you to get one of these tools fast.” Back in my Cocos2d days I used Hiero (free) and Photoshop (self advertise: blog on How to Make Fancy Labels using Cocos2d http://purplelilgirl.tumblr.com/post/2854271507/how-to-make-fancy-labels-using-cocos2d).

And according to him, no contest cfxr for sound effects. Free!

And we are done with Chapter 1. We installed Cocos2dx, and run a few sample projects and got to know the structure of basic Cocos2dx applications, so on to Chapter 2.

Chapter 2 gives an intro of C++ and Cocos2dx.

“This chapter will be aimed at two types of developers: the original Cocos2d developer who is scared of C++ but won’t admit it to his friends; and the C++ coder who never even heard of Cocos2d and finds Objective-C funny looking.”

I’m the first type, but I’m not afraid to admit that I’m afraid of C++. I am terrified of C++. If you give me an exam in C++, I will (and have, twice) submit an empty exam sheet (surprisingly passed one of those exams, I think the examiner took pity on account of my C++ phobia).

Can you tell that I’m stalling?

First the author goes through the basics of Cocos2d, if you know Cocos2d then you’re good to go. So far…

And then comes the dreaded C++ bits.

He says, “Don’t worry. The C part is easy, the first plus goes by really fast, but that second plus, Oh, boy.” Er… Oh boy…

I like the way the author talks in this book, kind of entertaining in a way.

He said to open your favorite text editor, because he doesn’t want code hinting and autocomplete features to get in the way. What? How did you think I finished a game in XNA without little knowledge in XNA, and completely zero knowledge in C#?! Code hinting and autocomplete, seriously.

My favorite text editor - TextEdit, because it comes bundled with a Mac. if I were on my PC laptop, I’d say Notepad, because that’s bundled there. I used to write websites in Notepad, those were the days… Yah, still stalling.

C++ syntax. Okay, so far, apprehensive.

Instantiation and Memory Management. Two words, no ARC. “so Objective-C developers who have forgotten memory management might have a problem here.” Uh oh.

The rule regarding memory management with C++ is very simple: if you new, you must delete.” Okay, I get that. And it supposedly has some other options and commands that’s similar to Objective C without ARC, okay.

 And then he continues with how to instantiate stuff. Okay, so far so good. And a little about the Cocos2dx equivalent of Objective C stuff. Okay, understood.

And summary. He says, “hopefully non C++ developers have learned that there is nothing to fear”. Um.. so far, not completely convinced, but I think I can manage.

He ends this chapter with “and furthermore Cocos2dx is awesome!” (fan boy) and “So let’s create a game already!”. 

Yes, lets. But maybe I’ll continue reading this tomorrow.

Filed under cocos2dx packt book review thoughts c++ development resource cocos2d ios android

5 notes

A Crash Course for Creativity

Stanford started offering free online courses a while back, and one of the courses they offered is called A Crash in Creativity and it’s by Tina Seelig.

I signed up for it with two of my friends, and every week there are assignments that challenge us to be creative. Although sometimes thinking out of the box, brings the best and worse in us.

I thought I’d share some of the um.. stuff we came up with for the course.

The first assignment was to create a book cover for your autobiography and write a short 100 words or less author bio. I have to admit that I sorta cheated because my NaNoWriMo novel last year an exaggerated version of my autobiography, so i already made a cover then. So here it is:

image
And my short bio, I have to admit coming up with a writeup that’s 100 words or less was a bit challenging. Here it is:

Hello Kitty is a term for Asian women who are seen as harmless and, ideally, as voiceless.

They say cats have nine lives. Hello Kitty is a cat, therefore she has nine lives.

We are different people to different people.

陳曉葦

is born in September in Taiwan.

Hsiao Wei Chen

is raised in Manila, Philippines. She goes to an elite Christian school from kindergarten until high school, where she is expected to get good grades and graduate with honors.

deadpoetz

thinks that she is an artist, because she writes poetry and draws portraits of people from magazine using charcoal.

Hsiao

doesn’t know what she wants to do with her life.

Chii, Misa, Lightning

are characters from comic books and video games. They are also masks that she sometimes wears to escape reality and wield elaborate weapons.

Michelle

is on her 3rd programmer job since graduating with a degree in Computer Science.

purplelilgirl

writes tutorials on programming as if she’s such an expert.

妞妞

is a niece and a granddaughter. She goes to family dinners, where there’s too much food and gossipy aunts who ask about potential husbands.

#9

"All my life, everybody has seen me a certain way. What do you see? "

And then later on in the class we get to form teams. Since I signed up for the class with two of my friends, we decided to just form a group. We didn’t invite anyone else to join our group, because we thought it would be easier to work if it were just us.
I named us Geek Girls, because we are obviously girls, and a little bit geeky.
I took a photo of a pair of pixel glasses that I was supposed to give to my other friend, for our team’s profile picture:
https://s3.amazonaws.com/venture-lab/team/thumb/f3944e848dd17008953f96a7713a7db83098c31e.JPG?1367660784
And then we started having assignments that we had to do as a team, which were kind of fun, because we can throw completely ridiculous ideas at each other. The goal is to be creative and think out of the box, anyway.
The first one is to reframe “chewing gum”, to create as much value as we can. So we decided to just come up with a bunch of ideas for chewing gum, and we created this cheesy infomercial for our fictional product- Swiss Gum : the Multipurpose Chewing Gum. I thought of using a text-to-speech program called xtranormal, because we were too shy to appear on camera.


The next assignment was to create Chindogus, which is the Japanese art of designing “unuseless” inventions.
Each of use came up with our own chindogu, by combining two random objects to create a new object with a whole new purpose. So we created a Prezi (which is like an online Powerpoint) presentation for it: http://prezi.com/gd6nhb_vkjaj/chindogu/?kw=view-gd6nhb_vkjaj&rc=ref-42158477
And for the next one, we have to think of a specific challenge related to Pets and then come up with 100 solutions for it. and then pick one of our favorite solutions and present it.
We decided to come up with solutions to Pet Poop Management. We started our list with normal, achievable ideas and then later on the list, our ideas just got weirder and weirder. At the end of the day, we can’t come up with 100, we ended up with maybe 50, with the last 30 ideas or so popping out the last minute.
We made another cheesy infomercial with xtranormal, because it’s kind of our thing now, and it’s pretty easy to do the the monotonous text-to-speech is just hilarious, well at least I found it hilarious.
This you have to watch the Bear Dogs we picked to star in our infomercial is adorable:

My friend added the other cheesy effects in After Effects.
The course is almost over, with only one more assignment left.
Overall, I enjoyed the course, because I got an opportunity to think really out of the box and get “creative” I guess.

Filed under creativity crash course venture lab tina seelig stanford

0 notes

Maker Faire Taipei 2013

Around February we went to a meetup for Taipei Hackerspace and Maker Faire at the Google offices in Taipei 101.

I have heard about Maker Faire before, but I didn’t know that Taipei had them. Actually they didn’t have them before, and this year is the first Maker Faire in Taipei. We really like the idea of Maker Faire because it’s really all about DIY and making things, because that’s kind of what we do. The organizers told us then that we can apply for a booth, so my sister did.

So we got ourselves a booth, and since it’s a DIY thing, my sister also signed up to teach a beading class.

Last Friday, we went to set up our booth.

Maker Faire took place in Huashan Creative Park, which used to be an old factory, so all the exhibition areas are like abandoned warehouses. it is quite charming.

The booth next to us was adorable.

They call themselves Shepherd and they make furniture out of wood and pipes.

And here’s ours:

We call ourselves House of Small Beauties and we make Flowers of No Purpose.

Our most popular item:

Our beaded QR code, it actually scans.

Our second most popular item, our sign made from bent wires, inspired by the Summer Paradise lyrics music video by Simple Plan and Taka from One OK Rock.

I made these:

My sister’s beading class:

This booth had kids sewing stuffies and other stuff the whole day.

The Maker Faire was more techy than artsy crafty.

There were apps:

Raspberry Pi:

Fruits that make music:

Robots:

More robots:

Ok, a lot of robots. And they fight too! The Robocon RBL competition took place on the second day:

And during breaks, the other robots have unofficial matches, and it’s cute how they let the other little kids control their robots.

There was also an Open Source competition. And this guy made a Miku Desk Live. The projector’s under the table instead of on top.

And of course, there were a lot of 3D printers.

I already saw 3D printers before during the meetup, so I didn’t take pictures of the printers at Maker Faire anymore.

Overall, it was a fun fair. who knew robot fights can be so exciting.

Filed under maker faire taipei robocon