Archive for June, 2014

[Design] Weekly Challenge – Pin Icon

leave a comment

Yeah, it’s weekly challenge day again ! Today I want to design something looks simple but with some details inside. Again, after searching for a while in Dribbble, I pick two designs out of them and they are all about icons !


Location icon

Yes, they all look simple but there are really some details inside. For the first design, it uses shadow to make the image jump out with a little bit 3D effect. While for the second one, you can notice the designer only use few colors, bold lines to make it flat and clean. So here comes my brainstorming time, is it possible to make a pin icon like the second design and also it still has shadow inside to make it not so boring ?

Instead of starting to open my illustrator at once, there is also another idea hitting my mind. I want to make the pin icon different from the others with some personal ideas. After seeing so many pin icons from Google, I noticed that they all miss an important concept – What happened in the pinned place at that time ? Is it possible to provide information about Geo location and some random screenshots at that place ? If yes, for users, this may be more friendly to use when navigating the online map.

So here comes my design :


Yes, it is a pin icon but with some functionalities I want – a placeholder for images (with 15% opacity), shadows to make it 3D, and  itself – a pin which makes you pin the place you want on the map. And I also make image about the real use case for this pin :


It may look not so clear, so you have to click on the image to check the real size (still compressed, but bigger).

Some Thoughts

From this challenge, I learned some skills about how to put shadow on images and how to make an image mask to showcase part of content you really want. And also, it is important for designers to think more about the real use case of what they designed before turning on illustrator. In this way, you won’t live in your own ivory tower.

That’s it, hope you guys like it and I would keep practicing on the way to design. Can’t wait to accept coming challenge next week, cheeeeers ! 😛


Written by EragonJ

June 21st, 2014 at 1:14 pm

Posted in Design

Tagged with , , , ,

[Git] How to maintain a huge and long-lived branch




Currently I am maintaing a god damn long-lived and huge branch on my local and for me, this is xxxx annoying -_-. Here comes a tip first, please make sure to break down your patch as much as you can. For me, this patch looks kinda independent and tiny enough, but I am wrong in the end.

As you can see, this branch has changed almost 60 files in the codebase and change of LOC has increasing to 5000 ! So, you can definitely guess that there must be so many conflicts happened especially Mozilla/Gaia is such a huge open source project and is contributed by lots of hackers from different timezones in this world. Based on my observations, it can hit more than 5000 LOC changes like features, bugfix … etc per day !

But, this case helps me to get familiar with how to keep your branch up-to-date with main trunk and I already came up with a small SOP to help me on this. In order not to forget this important experience (I don’t think I will forget xD), I would write them down about how I made it.


  • git checkout -b bug-973466-backup-20140619
    • Make sure to backup one copy of your current branch in case of something broken when rebasing. In my case, because I have to keep it up to date with main trunk all the time, it would be better for me to use Date format to make it readable and easy to identify.
  • git checkout bug-973466
    • Jump back to current branch
  • git rebase master
    • Rebase your code onto master to keep updated with it
  • Solve conflicts
    • You will find so many conflicts in this stage, and please don’t be afraid, use github / git diff / vimdiff or anything whatever to make sure there is nothing broken in this stage and both of theirs and ours changes are still there.
    • If you got lost in this stage, just did git rebase --abort to exit the process and there is nothing influenced ! Yeah.
  • If you successfully solve conflicts and nothing is wrong, it’s great ! You are free now !
  • If you found something wrong later after rebasing, it’s too late to recover, that’s why we need a backup ! Just remove your current branch and replace it with backup one, nothing is broken now ! Nice !

Some thoughts

  1. Don’t make your branch huge and try to break it down to smaller parts.
  2. If your current move is danger and hard to recover, always remember to make a backup.

Hope these information helps ! Any idea or feedback is welcome !

Written by EragonJ

June 19th, 2014 at 5:38 pm

Posted in FxOS,Git

Tagged with , , , ,

[Design] Weekly Challenge – Fire and some sketches


Another special day for weekly challenge ! After continuously practicing on drawing and illustrating these few days, I think I am addicted to these stuffs ! I still remember the time when I was still a sophomore  student in the university, I was planing to take double majors on Computer Science and Industrial Design. Haha, but I didn’t take action in the end and still stayed on the CS fields.

After so much passing times, I am curious about the reason why I had such a plan in my mind then. Does it mean I love design ? Not sure, but it may take time to verify hmmmmm

Whatever ! Here comes today’s design challenge, this time I got a plan in my mind that I want to practice sketching and icon-designing, so after scanning dribbble, I found a simple logo here :

Branding | Exploration “Heated Speech”

This time, instead of jumping into illustrator directly, I planed to do a rough sketch on my sketchbook first. (Yes, I bought it few months ago but I didn’t use it to sketch anything haha) This is what I got finally :


Yes, it’s fire with some sharp curves and that’s it ! So after doing this prototyping, I used illustrator to make a real one based on it !


In this logo, I spent so much time on drawing baselines on intersections of curves to make sure I can make the original sketch to real. In addition to this, in order to make it look really real, I realized the color is god damn important. So, I also spent more than half an hour on picking colors for the logo and took other’s works on the internet for references.

From my side, this part may be the most difficult part when designing this logo. I am not good with color so I had no any idea about what color to use ! (You would definitely agree with me when you see my wearings -_-) But as a programmer, we all have to solve problems on our daily jobs, so I decided to use some default linear colors and add some additional colors. Although I still don’t know how to choose, this is a good start for me, isn’t it !? haha

I think that’s all for today’s challenge ! Here comes some random sketches by following some online tutorial on how to draw objects. Hope you guys like it and any feedback and suggestions would be appreciated ! Stay tuned with my next work :)

Random Sketches



My iPhone 4s


Written by EragonJ

June 16th, 2014 at 1:06 am

Posted in Design

Tagged with , , , , ,