Angularjs project setup (NODE & YEOMAN)

# see also https://docs.angularjs.org/guide/migration # general setup sudo ln -s /usr/bin/nodejs /usr/bin/node -> when node file is not found sudo npm install -g yo bower grunt-cli generator-karma generator-angular # see https://docs.npmjs.com/cli/view # npm help list # sudo npm list -gp […]

Compiling and using luarocks

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=luarocks NEW_BUILD_VER=2.2.2 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd /ffp/home/root/compile/luarocks-2.2.2 ~/x.sh ffpg ./configure […]

Working with subversion (SVN)

#svn+ssh url examples: svn+ssh://ssh-user@your-remote-svn-server-ip/os-path-to-svn-repository/project-name svn+ssh://root@adrhc.go.ro/i-data/SVN-Repository/image-processor svn+ssh://root@adrhc.go.ro/i-data/SVN-Repository/image-processor/trunk #starting svn server #path-to-svn-repository: the value for -r svnserve’s option svnserve -d -r path-to-svn-repository –log-file /ffp/log/svnserve.log #ssh-user will also be used as the Author when commiting to SVN #You’ll have to use Putty pageant […]

Multilayered architecture

Why use a multilayered architecture ?Flexibility It’s easier to understand, create, correct, upgrade a very specialized software component instead of a many-specialized one. Crosscutting Concerns http://msdn.microsoft.com/en-us/library/ee658105.aspx Authentication Authorization Caching Communication Configuration Management Exception Management Logging and Instrumentation State Management Validation […]

Tomcat datasource in context.xml

<Resource name=”exifweb” auth=”Container” type=”javax.sql.DataSource” factory=”org.apache.tomcat.jdbc.pool.DataSourceFactory” testWhileIdle=”true” testOnBorrow=”true” testOnReturn=”false” validationQuery=”SELECT 1″ validationInterval=”30000″ timeBetweenEvictionRunsMillis=”30000″ maxActive=”10″ minIdle=”2″ maxIdle=”3″ maxWait=”5000″ initialSize=”1″ removeAbandonedTimeout=”60″ removeAbandoned=”false” logAbandoned=”false” minEvictableIdleTimeMillis=”30000″ jmxEnabled=”false” jdbcInterceptors=”org.apache.tomcat.jdbc.pool.interceptor.ConnectionState” username=”exifweb” password=”exifweb” driverClassName=”com.mysql.jdbc.Driver” url=”jdbc:mysql://localhost:3306/exifweb”/>