iOS 8.0 with TabbarItem in new icon

Leave a comment

1, for general guideline of adding icon into tabbar item, please check up with http://codewithchris.com/ios-tab-bar-app/

2, for how to set the selectedimage in storyboard, please check up with http://stackoverflow.com/questions/21386101/setting-selected-image-in-tab-bar-controller-with-storyboard

take care: here use Key value path mapping for image, instead of setting selectedimage in storyboard

3, for iOS 8.0 compatable icon template, please refer to  https://icons8.com/free-ios-7-icons-in-vector/

4, for generate iOS 8.0 icon by your own, please refer to

5, for how to change tint color in iOS 8.0, still in follow-up

6, navigation bar in storyboard design, see solution http://stackoverflow.com/questions/11083521/no-top-navigation-bar-in-a-tab-bar-controller-application

  • Solution: tabbarcontroller as initial and root controller, embedded for subtabbarcontroller in navigation controller

tabbarcontroller and navigationcontroller in storyboard

[TODO  by orlando, verified in apple officialsite for this in Combined View Controller Interfaces]

7, set title for tabbarcontroller or navigationcontroller, see   http://stackoverflow.com/questions/2040415/uinavigationcontroller-title-is-not-displayed and http://stackoverflow.com/questions/1540718/self-title-sets-navigationcontroller-and-tabbaritems-title-why

briefly speaking,

Every view controller has a navigation item. You are changing the navigation item of the navigation controller… but that will never be seen unless the navigation controller was inside another navigation controller! Instead of
self.navigationController.navigationItem.title = @"hai";

you want

self.navigationItem.title = @"hai";

or, if your navigation item’s title is nil, the navigation controller will use your view controller’s title:

self.title = @"hai";

You should simply set the view title, which is used by both navigation bars and tab bars, unless you want to specify a different title for each of those for some reason.

8, Using Auto Layout in UITableView for dynamic cell layouts & variable row heights, see autolayout theory in stackoverflow.

Hadoop Implementation based on git impelementation

Leave a comment

Installation guideline – http://book.git-scm.com/2_installing_git.html

  1. You’re missing SSL dependencies. Try to install “libssl-dev”.
  2. apt-get install libcurl4-openssl-dev
  3. git tclsh failed; using unoptimized loading => sudo apt-get install gettext

Follow the standard guideline to git configuration

CLR Debugging API

Leave a comment

So in some advanced debugging situation, we have to write code to reflect the current managed variables and stacktrace.

John, Robbins mentioned in <Debugging with .Net 2.0 Application> as follow:

http://blogs.msdn.com/b/frankred/archive/2004/08/04/207976.aspx

http://blogs.msdn.com/b/junfeng/archive/2004/08/08/210666.aspx

http://msdn.microsoft.com/en-us/library/bb384548.aspx

http://www.microsoft.com/downloads/details.aspx?FamilyID=38449A42-6B7A-4E28-80CE-C55645AB1310&displaylang=e&displaylang=en

That’s really extremely excellent!!!

Windows 8 Programming Summary

Leave a comment

As you know, Microsoft release Windows 8 recently. As MSDN Subscriber, you can download the windows 8 developer preview  and install the virtual system[see my previous post about installation of windows 8 on virtualbox].

Basically, windows 8 is really a kind of COM “reimagined” [cited from Matt,Merry’s speech], and Microsoft try to build cross-language[sure ,Application development language in User application space] based on Windows Platform, instead of something tried with MSIL  in virtual system.

For Application developer, the world seems turn back to 10 year ago, when we still keep love with COM[Still remember IUnknown, Dispatcher, the amazing API QueryInterface, and Thread Apartment, etc… Win32 Dll…].

Actually not yet, refer to http://www.iamraf.net/News/deep-diving-winrt-and-metro-style-apps-for-windows description. Now windows application consists of :

  • Metro Application – I’d like to call it Metro Style Applicaiton [I like Raf’s idiom, just a kind of new working style for windows application. The kernel of application still is dispatched to IPC, etc]
  • Classic Desktop Application – tradional windows application style

The core of User space application has been totally changed into COM with metadata. Take Metro application as example, wmahost as service host to invoke DCOM object and generate application with its own resource based on platform API.

As metadata built on platform[not depends on virtual system], the runtime performance has the possibilities to enhance a lot, esp. for language out-of-virtual system. We say, c++ is back, King is back.[I questioned that C++ Extension is a kind of something like Objective-c, similiar].

Please check up with Raf’s description, great*N post, if you want to know the story behind, not satisfy to just work it out.

And if you have time, please check up with Matt’s speech on windows 8 build, great speech.

Thing come back, What do you need to do here for real development preparation? [Perhaps, just take a note for what I have done here.]

  1. Metro application Guide – http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/12057f17-2f6c-422e-836e-47bcb1656a5d
  2. However, if you try to do something with IPackageDebugSettings [win32 API] to enable debug or something different from standard metadata definition of platform COM, you have to install Visual Studio 11 Ultimate developer preview to support both Metro and Desktop application.

By the way, VS2011 Ultimate depends on some components, which are included inside VS2010.[strange ^_^, that’s why it’s pre-developer version]. So take care of that, in case you meet with installation error.

The simplest solution is to install VS2011 side with VS2010, However, the final solution is to check up with installation error, and install missing component separately.

OK, ready, go to Metro application:

  1. http://code.msdn.microsoft.com/windowsapps – Metro application sample, for Application developer, it’s sufficient.
  2. http://blogs.msdn.com/b/b8/ – Windows 8 team blog
  3. My favoriate – http://msdn.microsoft.com/en-us/library/windows/desktop/hh405363 Metro COM Programming interface, amazing!!! you can do a lot of things, Just as Matt has bee done in http://channel9.msdn.com/events/BUILD/BUILD2011/PLAT-875T. amazing and awesome details, I like it, that’s the real world looks like.

Though just a kind of links and video on channel 9, it’s already a great changes.

So basically for Metro/Desktop application in windows 8 , if you just use the standard platform/C# API, it’s cross-language. based on metaCOM, you can do things you like.

However, for me, the powerful application in windows 8 application, will look like what Raf has done for DebugEnabler[winrt.codeplex.com]. Mix-c++ language programming [Guy, just c++, why mixed?], to bind Windows Platform COM interfaces, STL, WRL together.

And as Charle posted in GoNative9++ facebook, COM interop die! The only thing here is C++ [precisely, C++ Extension, and Portable], Just check up with Herb’s speech in Windows 8 Build conference.

Now C++ world become Clean, Safe, and Fluent. Hmmm, as developer, I don’t want to be lazy, and c++ is a way to keep me.

Windows Phone xaml

Leave a comment

My presentation at //build

http://channel9.msdn.com/Events/BUILD/BUILD2011/APP-831T

Clean internal session for Password in IE[or WebBrowser based on IE]

Leave a comment

http://www.alphatecit.com.au/code-snippets/facebook-c-sdk-multiple-login-problem-resolved/

INTERNET_OPTION_END_BROWSER_SESSION
42

Flushes entries not in use from the password cache on the hard disk drive. Also resets the cache time used when the synchronization mode is once-per-session. No buffer is required for this option. This is used by InternetSetOption.

http://blog.prabir.me/post/Facebook-CSharp-SDK-Writing-your-first-Facebook-Application.aspx

Windows 8 developer preview installation

Leave a comment

As you know, in windows 8 build conference [this 13- 16], Microsoft already unveiled Windows 8 developer version for us.

As I’m developer, so choose Windows Developer Preview with developer tools English, 64-bit (x64), about 5GB size.

  • Virtual system preparation:

Here, I introduce sun’s virtualbox as host, http://www.virtualbox.org/wiki/Downloads with version 4.1.2.

Let’s rock…

1, Create new virtual system

step 1 - Create new virtual system

step 2 - choose Windows 7 (64bit)

Step 3 - Create new virtual disk

Step 4 - Select Virtual Disk Type

Step 6 - Dynamic Disk Type

Step 7 – Create Virtual Disk with Dynamic Max Size

OK

OK, then we have to configure boot ISO and Visualization option [As 64 bit virtual system is required for Windows 8 64bit iso booting.]

And you have to enable your BIOS with Visualization option, if your computer couldn’t support visualization, I’m really sorry for you….

Step 8 - System Configuration

Step 8 - Mount your ISO disk

Step 9 - Select your iso

Step 10 - Rock Guys

2, Logging into your windows 8 system, change your screen resolution to larger than 1024. Then you can develop with your Visual studio 2011, with Grid/New application.

Screen shot for Windows 8

Update your screen resolution

Cheer up with Visual studio 2011

Win8 New UI Philosophy

Leave a comment

http://channel9.msdn.com/Events/BUILD/BUILD2011/BPS-1004

Is it still windows, which we are familiar with? Change is the only constant thing in the varying world.

Impossible is nothing, Yeah, Microsoft learn a lot from Apple, not just learn, but also a kind of re-creation. Wooo… That’s why I keep learning the MacOSX, the new world.

Let’s rock out of bottle.

Disable FQDN for Local Server

Leave a comment

  • If your ABAP PI/Netweaver System hasn’t been maintained into Full qualified Domain Name[FQDN], in bsp application, you will receive the following error, during loading BSP.

The following error text was processed in system : The URL contains no complete domain specification (cnst50059090 instead of cnst50059090.<domain>.<ext>).

  • How-to solve, check up with Notes 1088717, 1124553 and 517484

=> Modification with CX_FQND::CHECK

 METHOD check.

  DATA: lv_host    TYPE string,
        lv_port    TYPE string.  “#EC NEEDED

  lv_host = request->get_header_field( name = ‘host’ ).
  IF lv_host NA ‘.’ OR lv_host CO ‘0123456789.:’.
*{   INSERT         PI6K900003                                        1
  IF lv_host EQ ‘<your host-cnst50059090>:<your port-50200>’ . ” for localhost implementation
    exit. “just quit dummy FQDN check-up
  ENDIF.
*}   INSERT
    IF NOT lv_host CS ‘localhost’.
      SPLIT lv_host AT ‘:’ INTO lv_host lv_port.
      RAISE EXCEPTION TYPE cx_fqdn
        EXPORTING host   = lv_host
                  domain = ‘.<domain>.<ext>’. “#EC NOTEXT recommend security group
    ENDIF.
  ENDIF.

ENDMETHOD.

=> String operation : http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/frameset.htm

http://indradewaji.wordpress.com/2008/03/12/comparation-between-cs-and-ca-on-abap/

iPhone iPad In Action

Leave a comment

Last Friday, I bought one book called <iPhone and iPad in Action>. Just taking a glance at it, with a full-covered topic for iOS SDK.

In order to find the original version of this book, search in CSDN, and attached into my SkyDrive,

Shared with guys, who are interested with iOS development, iPhone_and_iPad_in_Action [I called it iOS in action].

Honestly speaking, it’s just a manual for taking action, regarding system perspective and API in deep, I think programming guideline and <MacOSX_Internals_A_Systems_Approach>, better!!!

Absolutely, know how-to run, I prefer to know how-is-the-behind. 🙂 Hope you like it.

Older Entries

Design a site like this with WordPress.com
Get started