2015年8月30日日曜日

UI Design

http://www.oracle.com/webfolder/ux/middleware/alta_icon_mobile_design_guide/navigation_icons-navigation_bar.html

http://www.oracle.com/webfolder/ux/mobile/component/button.html

http://bip-lab-adf.blogspot.jp/2013/10/different-shapes-of-button-in-oracle-adf.html

How to change ICON color:
http://www.iconworkshop.cn/xiazai.html

Android DDMS can not find device
1.>> adb nodaemon server
cannot bind 'tcp:5037'

>> netstat -ano
>> tasklist|findstr or taskkill /f /pid

2.>>netstat -a -n -o |findstr "5037"
输出结果:  
TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       5096  
TCP    127.0.0.1:5037         127.0.0.1:51577        ESTABLISHED     5096  
TCP    127.0.0.1:51577        127.0.0.1:5037         ESTABLISHED     43242. 
>>tasklist /v | findstr 5096
>>tadb.exe
>>taskkill /f -pid XXX

2015年8月16日日曜日

Push Notification Doc

Baidu Push Notification Service
http://push.baidu.com/doc/ios/api

Google Push Notification Service
https://docs.pushio.com/API_&_cURL_Information/Platform_Specific_Payloads/GCM_%28Google_Cloud_Messaging%29

Apple Push Notification Service
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html

APNS specific schema  
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW1

Invoking custom Javascript from AMX pages

https://blogs.oracle.com/mobile/entry/invoking_custom_javascript_from_an
Integrating Cordova Plugin with Oracle MAF - Android Calendar Plugin
https://blogs.oracle.com/mobile/entry/integrating_cordova_plugin_with_oracle

2015年8月3日月曜日

SQLite in Oracle MAF

Read more about SQLite in MAF here https://docs.oracle.com/middleware/mobile200/mobile/develop-oepe/oepe-maf-sqlite-db.htm
http://waslleysouza.com.br/en/2015/02/maf-2-0-using-local-database/

Use case
Follow topic show you a couple of things in this post.

1.Create a .db by using a .sql script (when your application starts).
2.How to manage the connection of your SQLite DB.
3.Security regarding the .db
4.Doing operations on your DB (SELECT, INSERT, DELETE and UPDATE)

http://adf4beginners.com/2013/03/adf-mobile-sqlite-in-adf-mobile/

2015年1月9日金曜日

Issue: Install iamsuite on Windows Server 2012

Error info:
Configure Security Store:execute the following command
oracle_common\common\bin\wlst.cmd
@ $ORACLE_HOME\common\tools\configureSecurityStore.py -d
@ $DOMAIN_HOME -c IAM -m create -p <OPSS_SCHEMA_PASSWORD>

Failed to get environment, environ will be empty: (0, u'Failed to execute
comman
d ([\'sh\', \'-c\', \'env\']): java.io.IOException: Cannot run program "sh":
Cre
ateProcess error=2, \x8Ew\x92\u80B3\x82\uA0BD\x83t\x83@\x83')
Problem invoking WLST - Traceback (innermost last):
  File
"C:\Users\Administrator\Desktop\Alice_setup\AliceMdw\Oracle_IDM1\common\t
@ ools\configureSecurityStore.py", line 42, in ?
  File
"C:\Users\ADMINI~1\Desktop\ALICE_~1\AliceMdw\WLSERV~1.3\common\wlst\modul
es\jython-modules.jar\Lib/javaos$py.class", line 256, in __getitem__
  File
"C:\Users\ADMINI~1\Desktop\ALICE_~1\AliceMdw\WLSERV~1.3\common\wlst\modul
es\jython-modules.jar\Lib/UserDict$py.class", line 14, in __getitem__
  File
"C:\Users\ADMINI~1\Desktop\ALICE_~1\AliceMdw\WLSERV~1.3\common\wlst\modul
es\jython-modules.jar\Lib/javaos$py.class", line 256, in __getitem__
  File
"C:\Users\ADMINI~1\Desktop\ALICE_~1\AliceMdw\WLSERV~1.3\common\wlst\modul
es\jython-modules.jar\Lib/UserDict$py.class", line 14, in __getitem__
KeyError: COMMON_COMPONENTS_HOME 


Workaround:
To solve this, we need to patch the jython-modules.jar. we need to go to C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules and add in javashell.py "Windows Server 2012".

For example:
_osTypeMap = (
( "nt", ( 'nt', 'Windows NT', 'Windows NT 4.0', 'WindowsNT',
'Windows 2000', 'Windows 2003', 'Windows XP', 'Windows CE',
'Windows Vista', 'Windows Server 2008', 'Windows 7', 'Windows Server 2012' )),
( "dos", ( 'dos', 'Windows 95', 'Windows 98', 'Windows ME' )),
( "mac", ( 'mac', 'MacOS', 'Darwin' )),
( "None", ( 'None', )), 

2014年10月9日木曜日

HOW DO YOU DO: CREATE AD USER AND ADD THIS INTO GROUP

static void Main(string[] args)
       {
           try
           {
               string[] groups = new string[] { "Admin", "Back_End", "CSharp", "Developer", "Faserati", "Flex", "Front-End", "HTML", "JS", "SQL", "Teacher", "Tester" };

               DirectoryEntry root = new DirectoryEntry();
               root.Path = "LDAP://FAST.Faserati/CN=Users,DC=FAST,DC=Faserati";
               root.Username = "Administrator";
               root.Password = "P@$$w0rd";

               DirectoryEntry group = new DirectoryEntry();
               group.Path = "LDAP://FAST.Faserati";
               group.Username = "Administrator";
               group.Password = "P@$$w0rd";
               group.Children.SchemaFilter.Add("group");
               for (int i = 0; i < 10000; i++)
               {
                   Random r = new Random();
                   string g = groups[r.Next(0, 11)];

                   DirectoryEntry parent = group.Children.Find("CN=" + g);
                   parent.Invoke("Add", CreateUser(root, g + i.ToString()).Path.ToString());

               }
           }
           catch (COMException ex)
           {
               Console.WriteLine(ex.Message);
           }
       }

       static DirectoryEntry CreateUser(DirectoryEntry root, string userName)
       {
           using (var de = new DirectoryEntry())
           {
               de.Path = "LDAP://FAST.Faserati/CN=Users,DC=FAST,DC=Faserati";
               de.Username = "Administrator";
               de.Password = "P@$$w0rd";
               DirectoryEntry user = root.Children.Add("CN=" + userName, "user");
               user.Properties["company"].Add("Faserati");
               user.Properties["employeeID"].Add("4711");
               user.Properties["samAccountName"].Add(userName);
               user.Properties["userPrincipalName"].Add(userName + "@explorer.local");
               user.Properties["sn"].Add("Doe");
               user.Properties["mail"].Add(userName + "@Faserati.com");
               user.Properties["userPassword"].Add("someSecret");
               user.Properties["userAccountControl"].Add(544);
               user.CommitChanges();

               return user;
           }

http://technet.microsoft.com/en-us/library/cc783256(v=ws.10).aspx

Understanding unique attributes in Active Directory

http://wenku.baidu.com/link?url=LewnAPwN0b7KLzTqm6L6yUWIL4s8ulFAZS4beoBoAAEtQ0AkFNZJC0p27n9ynArElwXlDOqq86VvkPyJMapTiAk8yjg8_BvcXWIkcL9apkm

Diagnosing Intermittent Authentication Failures and User Lock-Outs in Oracle WebLogic

2014年7月8日火曜日

Android: Gen already exists but is not a source folder

Error info:
Gen already exists but is not a source folder.

Workaround-1:
1. Right click project, and select "Properties"
2. Select "Java Build Path"
3. Open "Source"
4. Click "Add Folder..."
5. Select "gen", click "OK", Click "YES",and click "OK"
6. Right click project, select "Android Tools"-->"Fix Project Properties"

Workaround-2:
This error's root cause is classpath issue,and look likes following format.
-----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
-----------------------------------------------
You can modify this file's following tags:
------------------------------
kind="src"
kind="con"
kind="lib"
kind="output"
-------------------------------------------------