-
Javascript: There are two isNaN functions!
Javascript has two separate functions to test whether the value being tested is a Number or not. isNaN() The first one is a global isNan() function, which strictly tests whether the test value is a Number or not. So if you pass a string to this function, it will return true. For example, the following Continue reading
-
Javascript: String Manipulations
Check String for Palindrome: function palindrome(str) { var result = true; var newStr=”; for(var i=0;i<str.length;i++){ if(/[a-zA-Z0-9]/gi.test(str.charAt(i))){ newStr+= str.charAt(i); } } var revStr=”; for(var j=0;j<newStr.length; j++){ if(newStr.charAt(j).toLowerCase() != newStr.charAt(newStr.length-j-1).toLowerCase()){ result = false; } } return result; } Find the Longest Word in a String: function findLongestWord(str) { var arrStr = str.split(‘ ‘); var maxLength=0; for(var i=0;i<arrStr.length;i++){ Continue reading
-
Documentum DFC: How to get custom attributes
Here is a way to get all the custom attributes of an object in DFC without knowing them ahead of time: //Custom Attributes String allAttributes = dctmFileObject.dump(); String customAttributes = allAttributes.substring(allAttributes.indexOf(“language_code”), allAttributes.indexOf(“SYSTEM ATTRIBUTES”)); try (BufferedReader Continue reading
-
Documentum: How to Delete TBO
Steps for deleting a TBO…. Delete the module under /System/Modules/TBO folder Delete it from the app server cache ($DOCUMENTUM_SHARED/cache/<version>/bof/<docbase name> Restart application server Continue reading
-
Short Guide to RAID
A lot of today’s computers use Hard Drives to store data. Hard Drives use a mechanical system to read the data.Which means that hard drives can and will fail at some point. Which means that the data stored on them will be lost. To prevent data loss due to hard drive failure, we can set Continue reading
-
Documentum: DQL to get folders and permissions
To retrieve the folder paths and permissions on each folder, use the following query: SELECT sr.r_folder_path, ar.r_accessor_name, ar.r_accessor_permit, ar.r_accessor_xpermit FROM dm_acl_s a, dm_acl_r ar, dm_folder s, dm_folder_r sr WHERE a.r_object_id = ar.r_object_id AND s.r_object_id=sr.r_object_id AND a.object_name = s.acl_name AND sr.r_folder_path like ‘/CABINET_NAME%’ AND sr.i_position = -1 Continue reading
-
Documentum: How to encrypt password
In order to encrypt a password, go to where the dfc.jar is located using command prompt Type in the following command, and the result is the encrypted password: java -cp dfc.jar com.documentum.fc.tools.RegistryPasswordUtils password_to_encrypt Continue reading
-
DQL:How to get count of all documents by folder
Here is how to get a count of all the documents in a cabinet by folder: select count(*), f.r_folder_path from dm_document d, dm_folder f where d.i_folder_id = f.r_object_id and folder(‘/CABINET_NAME’, descend) and f.r_folder_path is not nullstring group by f.r_folder_path enable(row_based) Continue reading
-
Java: Log4J Logging different levels to different appenders
The following log4j.properties file will do the following: Only log ERROR level messages from all custom and third party libraries Log all DEBUG level messages from com.dctm.utils package to logfilename.log Log all INFO level messages to the Console # Root logger option log4j.rootLogger=ERROR, file, stdout log4j.logger.com.dctm.utils=DEBUG # Direct log messages to a log file Continue reading
-
Linux: How to find size of the current directory
In linux, the directory is just a pointer to the location. What we really want if the size of all the files that are contained in that directory. To see the individual sizes of all the directories inside the current directory: du -sh * the ‘s’ option provides a summary, the ‘h’ option provides the Continue reading
About Me
Senior Software Engineer professional with over 16 years of success with multiple open source technologies and various Content Management platforms and solutions.
Proven technical abilities through numerous projects involving enterprise web application design and development, application installation, configuration and support, and workflow and collaboration system designs.
- Ability to learn new technologies and platforms quickly and apply them to the task at hand.
- Excellent analytical skills, and strong communication and collaboration abilities.
- Technical emphasis in including but not limited to Java, Ruby on Rails, Documentum and Alfresco
in both Linux and Windows based environments