Basically, I had a ton of issues getting Alfresco 4.2 onto OS X Mavericks and I finally looked up "alfresco 4.2 mavericks install fail" and found that tons of other people had the same problem.
Upon searching "alfresco 5 mavericks install" nobody complained about it not working, so I downloaded it from the link below.
http://sourceforge.net/projects/alfresco/?source=typ_redirect
Now reading the docs http://docs.alfresco.com/5.0/concepts/dev-repo-extension-points.html
Cheers.
Allan's Blog
a ragtag collection of things I couldn't find in a quick 5-minute search on google, as well as some curiosities and what not.
Saturday, May 30, 2015
Friday, May 29, 2015
Create services in *nix systems using chkconfig
Hello there.
Long time no see because I've been messing around with Ghost blogs on localhost. However, I'm currently on a machine that doesn't have Ghost and I don't want to create another one here due to fragmentation. Eventually I'll be hosting my own Ghost server so I can use that...
I'm installing Tomcat7 on this box. Standard install location is /opt.
I want to make it a service so I can run
service tomcat start|stop|restart.
I remembered there was something called chkconfig to do that, so I looked it up.
http://www.thegeekstuff.com/2011/06/chkconfig-examples/
Whoops, this doesn't exist on Mac OS X. Unsure if it's worth learning how to create services/daemonize things in Mac.
http://batsov.com/articles/2012/12/09/from-linux-to-osx-meet-your-new-apps/
In OS X, you use launchctl...
Long time no see because I've been messing around with Ghost blogs on localhost. However, I'm currently on a machine that doesn't have Ghost and I don't want to create another one here due to fragmentation. Eventually I'll be hosting my own Ghost server so I can use that...
I'm installing Tomcat7 on this box. Standard install location is /opt.
I want to make it a service so I can run
service tomcat start|stop|restart.
I remembered there was something called chkconfig to do that, so I looked it up.
http://www.thegeekstuff.com/2011/06/chkconfig-examples/
Whoops, this doesn't exist on Mac OS X. Unsure if it's worth learning how to create services/daemonize things in Mac.
http://batsov.com/articles/2012/12/09/from-linux-to-osx-meet-your-new-apps/
In OS X, you use launchctl...
Monday, June 30, 2014
sencha cmd, skip theme build.
Found Newbridge Green's bootstrap theme for Extjs4. Looks pretty good.
Except, he understands how this crap actually works and wrote the thing in plain sass. (not the extjs theme extension thing). So, I can't really add it to the framework generated by
sencha generate app
So, I don't. Now I need to figure out how to automatically copy his css over when I do
sencha app build
and figure out how to get rid of the stupid ruby compass compilation thingy that takes forever anyways.
I also want to not use YUI to compress, but rather uglifyjs2. This can be put into a grunt task.
Here's how you get rid of the sass build and slicing.
Go to
.sencha/app/sencha.cfg
and add the lines
skip.sass=1
skip.slice=1
Finally got rid of that crap.
Now, we want to stop using YUI.
Go to
.sencha/app/build.properties
and set the following lines.
When I tried to use Uglify, I got the following error:
Since closure takes forever, the best option is probably just to not use compression, and just use a grunt task to build after everything is concatenated. That includes uglifying the concatenated app.js file, copying the bootstrap theme to the build folder, and gzipping both of those files.
Here's the gruntfile config:
And that will do it! Just make sure that
Except, he understands how this crap actually works and wrote the thing in plain sass. (not the extjs theme extension thing). So, I can't really add it to the framework generated by
sencha generate app
So, I don't. Now I need to figure out how to automatically copy his css over when I do
sencha app build
and figure out how to get rid of the stupid ruby compass compilation thingy that takes forever anyways.
I also want to not use YUI to compress, but rather uglifyjs2. This can be put into a grunt task.
Here's how you get rid of the sass build and slicing.
Go to
.sencha/app/sencha.cfg
and add the lines
skip.sass=1
skip.slice=1
Finally got rid of that crap.
Now, we want to stop using YUI.
Go to
.sencha/app/build.properties
and set the following lines.
build.compression.yui=0
build.compression.closure=1
build.compression.uglify=0
When I tried to use Uglify, I got the following error:
[ERR]
[ERR] BUILD FAILED
[ERR] java.lang.UnsupportedOperationException: Not Yet Implemented
[ERR]
[ERR] Total time: 10 seconds
Laughable.Since closure takes forever, the best option is probably just to not use compression, and just use a grunt task to build after everything is concatenated. That includes uglifying the concatenated app.js file, copying the bootstrap theme to the build folder, and gzipping both of those files.
Here's the gruntfile config:
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), shell: { sencha_app_build: { command: 'sencha app build' } }, jshint: { options: { reporter: require('jshint-stylish') }, main: ['Gruntfile.js', 'app/**/*.js'] }, uglify: { options: { banner: '/*\n Copyright <%= pkg.author %> \n <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> \n*/\n' }, main: { files: { 'build/production/<%= pkg.name %>/app.js': 'build/production/<%= pkg.name %>/app.js' } } }, copy: { main: { src: 'resources/css/bootstrap.css', dest: 'build/production/<%= pkg.name %>/resources/' } }, compress: { options: { mode: 'gzip' }, js: { expand: true, //use whole filename src: ['build/production/<%= pkg.name %>/*.js'], dest: '.' }, css: { expand: true, src: ['build/production/<%= pkg.name %>/resources/*.css'], dest: '.' } } }); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-compress'); grunt.loadNpmTasks('grunt-shell'); //or grunt-exec, unsure which is better grunt.registerTask('default', ['shell', 'uglify', 'copy', 'compress']); };
- your package name in package.json is the same as your Sencha project name
- bootstrap.css is under resources/css
- you have all the dependencies in npm and run npm install!
Friday, June 27, 2014
New server, nginx + nodejs, github
Got a new AWS server.
Decided to switch from apache to nginx.
Had to figure out how to configure it.
Default inst. locations on RedHat are:
http://stackoverflow.com/questions/2505096/cloning-a-private-github-repo
Oh, so cloning private repos uses the git@github.com:username/repo.git format...
You also need to generate SSH keys to authenticate with Github:
https://help.github.com/articles/generating-ssh-keys#platform-linux
Terse.
Decided to switch from apache to nginx.
Had to figure out how to configure it.
Default inst. locations on RedHat are:
- webroot at
/usr/share/nginx/html
- config file at
/etc/nginx/nginx.conf
Needed to learn how to clone a private repo from a new machine. Also trying to actually learn how to use Github.
And check out this nice site: https://www.atlassian.com/git/
http://stackoverflow.com/questions/2505096/cloning-a-private-github-repo
Oh, so cloning private repos uses the git@github.com:username/repo.git format...
You also need to generate SSH keys to authenticate with Github:
https://help.github.com/articles/generating-ssh-keys#platform-linux
Terse.
Saturday, May 17, 2014
Securing RESTful APIs with Node and Passport
Stated pretty well
Thursday, May 8, 2014
Really crappy post on Jakarta Connectors
https://tomcat.apache.org/connectors-doc-archive/jk2/jk2/confighowto.html
/etc/httpd/modules/mod_jk2.so
/etc/httpd/conf/httpd.conf
LoadModule jk2_module modules/mod_jk2.so
workers 2 properties
workers 2 properties
Subscribe to:
Posts (Atom)