Getting rid of "LDAP: error code 53 - 0000001F: SvcErr: DSID-031A0FC0, problem 5003 (WILL_NOT_PERFORM), data 0" in Crowd

While adding new user in crowd this error may appear when you accidently attempt to create new user in Active Directory(LDAP).

INFO: [LDAP: error code 53 - 0000001F: SvcErr: DSID-031A0FC0, problem 5003 (WILL_NOT_PERFORM), data 0
]; nested exception is javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 0000001F: SvcErr: DSID-031A0FC0, problem 5003 (WILL_NOT_PERFORM), data 0
]; remaining name 'cn=newtestuser,cn=users,dc=vantage,dc=com'


Solution :
If you dont want to add new user in Active Directory then you can:
Remove 'Add User' permission from Active directory in your crowd application settings:
1) Goto Aplications list in crowd server.
2) Select your application..
3)Select Permissions tab.
4)Select Active directory from the list of directories in your application.
5)Uncheck Add User.
6) Click Update.
Make sure you have other directories in the list with 'Add User' permission.

'pwd' command on windows command prompt(cmd)

On windows command prompt, the command to print current directory  is :cd

Mapping 'pwd' command to 'cd':
Create a pwd.bat file on C:\Windows\System32 directory that have cd inside:

Contents of pwd.bat file :

  1. @echo off
  2. echo %cd%

This should create a pwd.bat at system32 directory. Now running pwd command should print current directory.

'clear' command on windows command prompt(cmd)

Create a batch file at C:\Windows\System32\clear.bat.
Place cls command inside it. You can do this by running the following command on an elevated Command Prompt:
  1. echo cls > %WINDIR%\system32\clear.bat
This should create a clear.bat on system32 directory.


VB.NET : Copy or Transfer .m3u playlist


  1. Private Function createplaylist(ByVal srcPl As String, ByVal destDr As String, ByVal destPl As String)
  2. Dim fso As New Scripting.FileSystemObject
  3. Dim fxo As Scripting.TextStream = fso.OpenTextFile(srcPl, Scripting.IOMode.ForReading, False, Scripting.Tristate.TristateUseDefault)
  4. Dim fxo2 As Scripting.TextStream = fso.OpenTextFile(destPl, Scripting.IOMode.ForWriting, True, Scripting.Tristate.TristateUseDefault)
  5. Dim s, drv As String
  6. drv = srcPl(0)
  7. While (1)
  8. Try
  9. s = fxo.ReadLine()
  10. If s(0) = "#" Then
  11. fxo2.WriteLine(s)
  12. Continue While
  13. Else
  14. If s(1) <> ":" Then
  15. s = drv + ":\" + s
  16. End If
  17. Try
  18. fso.CopyFile(s, destdr + "\" + fso.GetFileName(s))
  19. fxo2.WriteLine(destdr + "\" + fso.GetFileName(s))
  20. Catch ex As Exception
  21. End Try
  22. End If
  23. Catch ex As Exception
  24. GoTo xxx
  25. End Try
  26. End While
  27. xxx:
  28. Return Nothing
  29. End Function

Download full working example code (*.vbproj)
Be sure to include scrrun.dll (which can be found in c:\windows\system32 directory) in your project.

Getting started with PhoneGap/Cordova with iOS,Your first Helloworld iphone app using PhoneGap/Cordova on iOS

Install homebrew if already not installed:
  1. ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Install nodejs npm utility:
  1. brew install nodejs
Install cordova:
  1. npm install -g cordova
Create a hello world project:
  1. cordova create hello com.example.hello HelloWorld
cd into project root dir where config.xml is located:
  1. cd hello
Add ios platform specific libraries.Run:
  1. cordova platform add ios
Check add platforms by running:
  1. cordova platforms ls

You should see something like this:
Installed platforms: ios 3.5.0
Available platforms: amazon-fireos, blackberry10, firefoxos, ubuntu

Install iphone emulator:
  1. npm install -g ios-sim
Build helloworld project:
  1. cordova build

Run helloworld app:
  1. cordova emulate ios

You should see something like this:


Install/Configure and run HTML pre-render service on CentOS

To serve javascript rendered page as html page  to search engine crawlers so that our site becomes SEO friendly, we can use node server like prerender.We configure and run prerender server by using this .sh script:
    1. #install nodejs(Run "yum clean all && rpm --rebuilddb && yum update" in case yum cant find them)
    2. yum install nodejs
    3. #install nodejs,s npm utility
    4. yum install npm
    5. #install Font configuration and customization library
    6. yum install fontconfig-2.8.0-3.el6.i686
    7. cd /usr/local/
    8. #download prerender server
    9. git clone https://github.com/collectiveip/prerender.git
    10. cd prerender/
    11. #build and install
    12. npm install
    13. #create runner and log file
    14. echo "node server.js >> \"prerender_log.txt\"" >> prerender_runner.sh
    15. #set to run at startup
    16. echo "nohup /usr/local/prerender/prerender_runner.sh &" >> /etc/rc.local
    17. #start prerender
    18. sh prerender_runner.sh &
    19. #check output from prerender server
    20. tail -f prerender_log.txt
Do all this by using this Script to download,configure & run prerender server.
By default it starts on port 3000.So you will find it at : localhost:3000
To test if it successfully installed simply browse to this url:
http://localhost:3000/http://www.facebook.com

Right click on document and click view page source.You won't find any javascript there cause the page comes after all javascripts are executed.
Be careful about url syntax.Omitting protocol(http/https) and www will not work.Like these urls will not work:
http://localhost:3000/www.facebook.com
http://localhost:3000/http://facebook.com


Related:-
Making javascript heavy sites crawlable / SEO with Prerender.IO / Getting started with Prerender.io for java sites
Running web application & prerender node server on same machine