Carlos

This user hasn't shared any biographical information


Posts by Carlos

bezierHandles

Drawing Bezier Handles

I keep on getting e-mails on my Bezier code and in between them, how to draw the Bezier Handles.

It is very simple and it is pure trigonometry knowledge to pull it off.

To draw the handle is very easy. Tap or Click where you would like the first anchor point is going to be, then drag towards the desired curvature is achieved. This draws the first handle. (startPt, anchorPt). If it is the first point in the curve, you will have to make sure to check in case yo don’t want to draw the reflection of the handle for the “previous curve segment”. If it is not the first point on the curve, then most likely you will want to draw the reflection of the handle for the next curve section. (A-la Illustrator Pen tool).

It goes something like this.

  • 1st click = startPt
  • endDrag = anchorPt.
  • draw the first part of the handle
  • find the length of the handle using standard distance formula
  • find the arctangent of startPt.x and anchorPt.x over startPt.y and anchorPtr.y
  • set opposite.X to the startPt.x minus the length of the segment multiplying it by the cosine of the arctangent
  • set opposite.Y to the startPt.y minus the length of the segment multiplying it by the sine of the arctangent
  • now draw the second part of the handle.

As an exercise, I will leave it up to you to write the code, but this is basic 101 trig and you should not have any problem drawing the Bezier handle.

Carlos

IMG_5354-460x306

Interview with Lou Esfera from LouEsfera.com

Probablemente mi ultima entrevista como co-foundador and CEO de Ansca, hecha por Lou Esfera en >>

Probably my last interview as co-founder and CEO of Ansca by Lou Esfera here >>

Mil gracias Lou pou una entrevista muy buena.

 

 

Carlos.

There is a revolution coming….

 

“A revolution only lasts fifteen years, a period which coincides with the effectiveness of a generation. Jose Ortega y Gasset.

“There is a revolution coming. It will not be like revolutions of the past. It will originate with the individual and with culture, and it will change the political structure only as its final act. It will not require violence to succeed, and it cannot be successfully resisted by violence.”  Charles A. Reich

And to you I say,  welcome to the mobile revolution, we are in the inchoate stages of the revolution, so join now.

In one of my previous blog post I commented:

The best gift you can give yourself is the gift of going after your dream instead of living someone else’s’ dream.

Go Live the dream, go on a journey, the rewards will outweigh any challenge incurred in the process, and those challenges are the journey’s rewards.

I have gotten quite a number of e-mails, public and non public twitter and facebook messages alike, I have read the post on the Ansca forum. I have been touched. I am the one, who at the end of the day have to truly thank you for believing in me, and my company and product.

But I don’t want to sound trite, repetitious, boring or sound like a scratched LP (for those of you who still remember what those were), and tell you to go on a journey, live your dream, quote Steve, and others, and tell you to start your own company, but what I will tell you something I learned a while still a young lad.

Having left Nicaragua in 1978, during the height of the civil war, being uprooted from my country and landing in Miami, just like thousands of families before mine, seeking refuge, I learned two valuable lesson from my father.

Not knowing what the true meaning of it all was, the war, a new country, a new language, new surroundings, etc… And not understanding any impact this would have on me, one day talking about what was happening with the old man, I was asking him questions in order to understand what it all meant.

It was a long and painful chat with my dad that day, and he summed up the events quite nicely. He said, and it has forever been edge in my brain, I learned that

“They can take everything away from you, except what is between your ears, as long as you have that, you will always land in your two feet”.

Now I don’t want you to get the wrong impression, this is not about me, it is about you. As long as you are able to put thoughts together,  think and learn, why are you still not going after your dream? What do you have to lose?

The other favorite quotation from my dad was best said to me not too long ago.  I was frustrated about work at a big Fortune 500 company, and where I was headed in my career. He happened to have been visiting me in Silicon Valley and he saw that I was very frustrated. Nostrils flaring and a vein on my forehead particularly pulsing. He knew something was off-keel.

He asked me what was wrong, and why was I frustrated. I gave him a very curt answer about my current work conditions, career, and the not so bleak future and that I needed to make some decisions and that I was upset because I was not in control.

He was in his late 70′s. He looked at me, and put his hand on my shoulder, and he asked me if I remember my visits to Guanacastillo, his cotton farm,  the cotton farm where I grew up, and obviously I said of course I do. He then asked me if I remember the color of the cotton fields, and I do,  and I said white. He said, not all the time, you remember white, but there long periods of time when it was brown, and during the drought periods, there were, if at all, maybe a single cotton tree standing up. He then looked at me and said the other thing I learned,

You are in control of your own destiny. When I was working the farm fields of Guanacastillo, I was at the mercy of the weather. Why are you so frustrated, take control, at least, you don’t have the weather to deal with which is unpredictable. You can control and shape your own destiny and future.

Why do I share this experience with you? because only you, not me, not the weather, only you can take control of your destiny and shape your own future. Nobody is going to do that but you.

I have never returned to Nicaragua since 1979. Why? because for me, I hold the past as a memory, not something I long for. I look for whats ahead, I look for tomorrow and what tomorrow brings, and, how I can shape my future and contribute to society and to individuals.

As humans, we put a man on the moon, we have found cures to some of the world’s worst diseases and much more, in short, as humans, anything is possible. And as individuals, the contributions we make to humanity, can be so rewarding that it is amazing.

But today I thank all of you for being a part of my dream. For letting me live it, experience it and share it with you.

Now, go, join the revolution, take control, shape your future and let me be part of your dream.

Carlos.

 

 

 

The Top Commandment

Don’t be afraid to fail. It is ok to fail. It is actually good that you fail. Failure is an option. Failure is also commonly known as fear, and “We have more to fear than fear itself”, as best quipped by FDR in 1933.

Fear and the thought of  Failure, comes from the expectations set upon us by our society by the one who took second placed. And nobody remembers who lost any Super Bowl. Nobody remembers who came in second. There are no awards for second place. Everyone remembers a winner.

It is in our nature to be winners, to come in first place. First place is best captured by George Patton, the General of WWII during a speech he said to the 6th Armored division: “America loves a winner and will not tolerate a loser. Americans play to win all the time. I wouldn’t give a hoot in Hell for a man who lost and laughed.” Another famous person who captures the essence of winning, is none other than Vince Lombardi.  He took the Packers to five Super Bowls, winning two, and forever his name will be associated with the definition of a “Winner”.

Vince Lombardi said in an speech, “There is no room for second place. There is only one place in my game and that is first place.” And am sure we are surrounded by more quotes than I can put in a blog. Even our former governor, former Mr. Universe, Arnold Schwarzenegger, has his Six Secrets to Success. And he put the fear of fear in his competitors.

So why, in a few words, go from great quotes from amazing individuals on Winning and being Number 1, to embracing failure?

Because entrepreneurship is all about the constant living with this fear of failure, which paralyzes us, which demotivates us, makes us un-safe, which makes us retreat and makes us weak and which keeps us doing the same onerous task day in and day out. But when you peel all the layers of fear, it is not failure we are afraid of, it is the fear of the unknown. That unknown is what we are afraid of and it is our subconscious mind acting up which makes us believe it is failure what we are afraid of.

But let me just say that, that unknown, that uncharted territory, that “black closet”, “dark alley”, is what makes entrepreneurship the essence of the American Dream. Not knowing what is going to happen, how, when, and where, are things that we are faced with and challenged each day of our entrepreneur life. Running a business is complex. There is no school on how to run a business (Facebook 101) and no classes on how to react to situations that may arise out of Murphy’s law. (iPadGate).

And why do I say not to be afraid of failure? and that failure is an option? Well, at least for me,  when I reach 80 years of age, I rather be resting on a hammock over looking the ocean with a smile on my face because I will forever know that “I tried it” instead of asking myself “what if….”. And I hope that you can learn, that the best gift you can give yourself is the gift of going after your dream instead of living someone else’s’ dream. Just like the late Jobs said in his Stanford speech “Don’t be trapped by dogma, which is living with the results of other people’s thinking.”

It is after all, the will, the perseverance, the determination, the chutzpa, the constant challenge, and of those who are not afraid fail, which makes a great entrepreneur.

So stop being afraid of failure. Go start something. You never know. You may like it, and it will forever put a smile in your face.

Thoughts? Questions? Comments?

Carlos.

 

Teens joining race to develop the next chart-topping apps

Making the Smart(er)phone.

Not long ago, during the Bubble Ball apex, I was asked about teens and programming for mobile. Here is the resulting interview in Miami Montage.

All thanks to the exposure we received as a company from then 14-year old Robert Nay, and his Bubble Ball hit which became the number one app on the Appstore. He got all the media attention, we got all the attention as the technology behind the #1 hit. (Bubble Ball).

I wish when I was that age, I had access to the wealth of information that is available today via the web, etc. Instead, my “Google” back them were the bookstores and in the mid 80′s, and back then, books on programming were scant. And if my memory serves me right, the only available magazines that I had subscribed to back there were Apple Cider, Dr. Dobbs and BYTE. And back them, those were hardcore magazines.

Carlos.

 

thepowerof.001

10 Crucial Lessons Learned From Running a Startup

I have gotten a lot of e-mails regarding my Ten Commandments for Entrepreneurs. About nine months ago, I was asked, what lessons have I learned from running my startup and if I could share them. And it got me thinking and the truth is, there are a lot of lessons learned, but not enough time to share, plus given the context, it would have been difficult to articulate via a blog.

Maybe I will start a video series. But from the initial question and the exercise on coming up with the lessons learned, I came up with a list of the 10 Crucial Lessons Learned from Running a Startup. Here it is in simple PDF Form. I will follow up shortly with a voice over video articulating each slide.

41hgYr3YJmL._SL500_AA300_

Geometric Data Structures for Computer Graphics

New weekend reading.

 

 

 

 

 

 

 

 

 

 

 

 

 

Get it at Amazon.

Like the book title says, geometric data structures play an important part in CG and this book is an essential book to have in your arsenal with anything having to do with GC. Particular attention in Ch. 7 “Proximity Graphs” in regards to polygonal meshes. Interesting.

Also, “Polygon Mesh Processing”, great book on one of my favorite CG subjects. (Does the fact that you can also ping this site through http://b-splines.com/ tell you anything?)

 

 

 

 

 

 

 

 

 

 

 

 

Also from Amazon.

Carlos.

Inc Magazines chooses our Corona SDK ….

 

Inc Magazine writes an article  on “5 Ways to Make Your App Take Off” and chooses our Corona SDK as the #3 way to make your apps soar.

 

3. Try Corona by Ansca Mobile.

Corona is the world’s No. 1 mobile app development platform and many developers have found that by using it not only do their apps work better, but they get more downloads. That’s because Ansca Mobile has partnered with some review sites and podcasts for apps such as 148apps.com, CrazyMikeApps.com, AppShrink.com, Experimental Game Dev Podcast, and MadDog Podcast.

Another great feature of the Corona platform is that it can quickly publish an app to multiple marketplaces simultaneously: the Apple App Store, Google Play (Android’s new name for its marketplace), Amazon (for the Kindle Fire) and Barnes and Noble (for the Nook Color tablet). And it’s cheap; a yearly subscription is only $349 or $199 if a developer only wants to build to one platform.

Here is the link to the article >>

Grinning from ear to ear.

Carlos.

photo-1

Dinner with Roberto Ierusalimschy

Last night, February 15th, 2012, I had the pleasure of having dinner with the co-creator of the Lua language, Roberto Ierusalimschy. Roberto is a visiting professor at Stanford and is currently teaching a class in programming in Lua. The last time Roberto and I had dinner was in Rio de Janeiro, near PUC University, during the summer of 2010. I was visiting Rio during the World Cup, thought the games were all being played in South Africa, and took time out to meet with Roberto and dine with him.

Back then, at that dinner, we were joined by his wife, daughter and family friends. This time, it was just me and him, and a lot has happened since that dinner. I remember showing him some of the apps that had been created with Corona back then, and last night, I showed him some of the new and immersive games done in Corona. He pretty much wants me to give him a list of the games so he can install them on his iDevice. So, some of you, may get a promo request from me to give to Roberto, so he can install your app on his iDevice. How neat is that.

 

 

Aside from catching up in both the world of Ansca and personal, Roberto is looking forward to meeting Corona developers at a future meetup I plan to put together here at our HQ in Palo Alto. So if you are in the Bay Area, keep an eye out for the invitation to our meetup to meet with Roberto.

Link to Roberto’s page at PUC >> 

Carlos.

 

404514_3327287220212_1209384222_33551294_1886546077_n

Afternoon Coffee with Dr. Brian Barsky.

Yesterday, Monday the 6th of February, I had the pleasure to sit down and enjoy a cup of cappuccino with one of the most influential figures in the field of splines and its used in Computer Graphics and Geometric Modeling. I had coffee with Brian Barsky, co-author of the book “An Introduction to Splines for use in Computer Graphics and Geometric Modeling”.

It was a nice afternoon and could not have asked for a better bay-area day. No clouds, sunny and by the time we met for coffee, the sun had began to set in. The UC Berkeley campus was a block away from where we sitting and by the time we got our drinks the action on the street was happening with students filling up the sidewalk with murmurs about classes, school topics and where to catch dinner and planning for the day ahead.

But inside the coffee shop it was different. It was relatively quiet. And after we got our coffee’s, we sat and managed to chat for about two hours, perhaps a bit longer, on topics ranging from splines, digital/film photography, to mobile devices and its use in medicine, and other technologies that will carry us into the future.

To transcribe the over two hours of talk would do injustice to our chat, but having coffee with one of the giants in a field of computer graphics, which has given us the special effects we see today in movies, and its use in other fields is purely amazing. Dr. Barsky was very effusive, and he glistened while taking about current and future technologies and how we can use those technologies in the mobile world to bring the world closer than what it is now.

Thank you Dr. Barsky for allowing me to enjoy a cup of coffee with you while we talked about “splines” and other topics.

Barsky’s book

To learn more about Dr. Barsky, visit his web site >>

Coincidentally, Dr. Tony DeRose, who is now Research Group Lead at Pixar Animation Studios >> was Dr. Barsky’s PhD. student.

Carlos.