Sunday, October 5, 2014

5th day after quit my day job


Okay, so today i wake up late around 12 noon, becoz i was working on my offline retail shop till 3am yesterday, I was promoting my shop using groupon, and so far got 12 sale, the first sale will come today at 9pm, so later i will need to cater for the sale

spending on the offline shop so far
renovation USD28,000
but I only own 20%, so total spend is USD5600


the monthly cost of the offline shop is around USD1500, but since i only own 20%, so my monthly cost for the shop is USD300

we need around 100 sales per month to break even, so it is a very tough business


since i need to update this blog on daily basis, so i better break down all expense per day

normally my monthly expense is around USD1500

offline shop around USD300,
so total monthly spending is around USD1800, if divide by 30 days, so is USD60 per day


just now 8pm to 2am i am serving one group of customer at my offline shop, their total spending is USD74.666
but i only own 20% so is only USD14.8
so can say is 6 hour of work for USD14.8


income for today: USD14.8
expense for today: USD60

now is 3am, i cant think of anything, just go to sleep

Saturday, October 4, 2014

4th day After quiting my job, Publish "timetracker" app for review

Okay, so today i got some event to go out from morning to evening, so i am not doing anything productive,

i reedit my "time tracker" app and republish

(check back 10 August 2014 post on how to publish)

nothing special for today

income: 0
expense: USD20(breakfast, lunch and dinner)


Thursday, October 2, 2014

3rd day after quit my day job

Ok time now is 10:14am, i woke up late due to yesterday night i code till 2am

today planning

morning: beautify my app
afternoon: 3:30pm fix and service car
night: prepare offline shop


ok, so I need to focus on 3 thing to bring some income
1. iphone app
2. ebay store
3. offline shop

update:
iphone app
=========
so I finish my app"timetracker" and submit to ios approval so hopefully within 7 days can be up, I am selling for 0.99 each, expectation is not much, I am 6 years late into the iphone market so I really dont know what to expect

the next stop is to code a new game "life as a programmer" a stupidly boring game, hopefully someone can enjoy


ebay store
========
ok, i have eye on some product i want to sell, so I will buy 20 unit from the wholesaler and try to sell it first

offline shop
=========
ok, for this, i have put my ad on groupon, groupon will take 50% , but to put on groupon you need to give your customer 50% discount

say : discount 50%, only 50% left
groupon take 50%, only 25% left

so to make money you make sure your stuff is cheaper than 25% of the original selling price, say example,
if your product original selling price is $100,
for each item sold in groupon you only get $25, so you make sure your item is cheaper than $25 to make a little profit

so far groupon up for few hour and 0 sale, oh well....darn





income: 0
expense: USD100 (fix and service car)
               USD5 (food)


Unity ongui all image become square and unable to stretch?

While i was programming with unity, suddenly all my image become square and unable to stretch on the ongui label, the solution is click on each of your image, on the right hand side, change the Texture type to "GUI"

Blender tutorial on how to build a clock

Okay, so I need to build an icon for my app, so i need to build a clock

below is the tutorial i found on youtube , i follow step by step



after going through the tutorial, below is my work 

not as good as the tutorial, but i will take it


Wednesday, October 1, 2014

Unity how to save and load game

Say if you want to save and load game you do as below,
let say you have 2 variable, 1 is the arraytimer1 (an array containing float), another variable is a String variable Category1, so first you create two function as below.
Do note by default you can only use PlayerPrefs but if you want to use PlayerPrefsX you need to create a new java script "PlayerPrefsX.js" and you copy paste the code from http://wiki.unity3d.com/index.php/ArrayPrefs2

function saveall()
{

        PlayerPrefsX.SetFloatArray("arraytimer1",arraytimer1);
        PlayerPrefs.SetString("Category1",Category1);
        

}
function loadall()
{

        arraytimer1PlayerPrefsX.GetFloatArray("arraytimer1");

        Category1 = PlayerPrefs.GetString("Category1");
}


To call the function, I would recommend you put the loadall in the function start, meaning when you start your app, it will load all the data into your game, and you only save your game when your application quit , so you put the saveall() in your function OnAPplicationQuit()

function Start () 
{

    loadall();

}

function OnApplicationQuit() 
{
    saveall();
}

Second Day after Quit my job

Ok, so today I wake up a little late, time now is 9:56am

today plan is as below

1. apply internet service for the offline retail shop i have
2. code the iphone app
- finish the saving feature(done)
- beautify the title and word(done)
- test , test, and test to make sure no bug or error(done)
- publish it if can (50%)

3. research what to sell online
- should i build my website then advertise using google adword?
- should i sell on ebay?
- what kind of item i can sell on ebay?

income for today: 0
expense for today: USD300( paying 2 credit card)

my account balance is running very low only USD2500 left, I might need to sell stock soon to get some money to cover the bill

today i work until 2am and still not manage to publish my app, tomorrow I will try to improve the app a bit and publish