As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm looking for cloud-hosting for a Grails app. In the past, I've tried several including CloudFoundry, JElastic, AppFog, but could never successfully deploy the app. The app needs:
MySQL database
File system access in order to store the Searchable plugin index files and images uploaded by users
I'll only be using this site for QA, so am not concerned about performance. Obviously I'd like it to be as simple as possible to deploy the app, and I'd like to pay as little as possible for the hosting.
I've already tried using the CloudFoundry Grails plugin to deploy to CloudFoundry, but without any success.
I have successfully hosted Grails based websites on Amazon EC2. To reduce the cost, I used small reserved instance. I think It's ok to use Amazon EC2 AMI for temporary files such as searchable index files since you can always re-index if AMI crashes.
To store user images, I used Amazon S3 using Grails AWS SDK plugin (http://grails.org/plugin/aws-sdk). It is very easy to upload files to S3 using Amazon SDK http://blanq.github.io/grails-aws/1.2.12.1/index.html -
To Upload a file with public read permissions.
amazonWebService.s3.putObject(new PutObjectRequest('some-grails-bucket',
'somePath/someKey.jpg', new File('/Users/ben/Desktop/photo.jpg')).withCannedAcl( CannedAccessControlList.PublicRead ) )
Download a file.
amazonWebService.s3.getObject(new GetObjectRequest('some-grails-bucket',
'somePath/someKey.jpg'), new File('/Users/ben/Downloads/photo.jpg'))
Delete a file.
amazonWebService.s3.deleteObject('some-grails-bucket', 'somePath/someKey.jpg')
I hope this helps.
I know it's not an ideal solution, but you could use mongodb's gridfs to store your files rather than the file system. Cloudfoundry supports mongodb, as I'm sure you know.
This doesn't help with your searchable plugin index though.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am just another average joe hoping to jump onto the social network bandwagon. I'd like to know which photo uploading/resizing gem I should use for users of my app. It would be great if you could explain why.
Carrierwave has good support for exterior things such as DataMapper, Mongoid, Sequel and even can be used with a 3rd party image managment such as cloudinary
The solution seems most complete with support coverage for about anything, but the solution is also much messier (for me at least) since there is a lot more code that you need to handle. It is actively maintained with a plethora of add-ons created by its rich community for support for many features. It also features migration instructions from other attachment solutions such as paperclip. It has about 3-4 active contributors/maintainers
Paperclip is from thoughtbot so it should be a well planned, fully featured, easy-to-handle solution for attaching files. It utilizes many built-in functions that make the experience less straining in a Rail environment. Paperclip is better for an organic Rails environment using activerecord and not all the other alternatives. Paperclip is much easier to handle for beginning rails developers and it also has advanced capabilities for the advanced developer. It has about 2-3 active maintainers. Looking at the github graphs, it seems that last few months haven't been very prolific for paperclip, with relatively few commits to the code. Hope this changes and it can be up to par with carrierwave (usually more maintainers mean more code)
Dragonfly is a rack based attachment solution. It has much support for other frameworks other than Rails, it has several addons for exterior service support but as seen from its github page, a lot is still missing. This is probably due to it having 1 active maintainer and no commit since April 2012. If it doesn't get some real boost, I don't see it living for so much longer. Especially with Rail 4 coming out soon.
At the end of line, each solution has its pros and cons, and each solution works best for each developer.
See the following list with what people has to say about each and decide whether the problems they present concern you:
Rails 3 paperclip vs carrierwave vs dragonfly vs attachment_fu
https://stackoverflow.com/questions/1614842/what-is-the-best-file-upload-attachment-plugin-rails?rq=1
Attachment_fu or Paperclip for Rails3
Carrierwave or Dragonfly
To answer your question - both carrierwave and paperclip can do uploading and resizing of images.
As for you question in the comment, I use paperclip but since carrierwave has a capability to migrate to it from paperclip I might switch if it no longer suits my needs. At the moment it does.
The best way to choose is to pick one, try it, and decide for yourself.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'll soon have to develop a web portal accessing a couchDB. Of course, I have done some research already, however I'm not sure if my ideas will work out.
I will have an existent couchDB. There will probably only be one user available which gets read-access via the GET-method. The web portal will have to filter and display data for different users from that couchDB, so I'll need some kind of extra user-management.
So far I have only basic knowledge about web frameworks and technologies, however I am quite experienced in Java. So from my research so far, I was seriously thinking about using Grails, ExtJS or both. However, will I be able to easily access the couchDB from within those frameworks? I've found some concerning info about necessary patches for ExtJS that are not in active development anymore.
I did have a very brief look at couchApps, however I'm not sure if those are sufficient enough (especially because of the user-management layer, I will only have this one couchDB user for accessing the DB). Also I found Django, however I'm not at all familiar with Python yet. :/
I'd be very thankful if someone could help me out a little in finding a suitable framework.
Thanks so far!
I would suggest that you go with whatever you know the best. It sounds like you're going to have to ramp up quickly, so learning a whole new language is near impossible. A new framework would be difficult.
Any language that can encode/decode JSON and has good a good HTTP can speak to CouchDB without a problem. If you're most familiar with Java then you're in good hands: Jackson is a very popular JSON library and there are plenty of good HTTP libraries. Ektorp is the most popular Java library for CouchDB.
Or you could skip the entire middle tier. Write a JS application in the browser that makes calls directly to CouchDB. Have your web server provide the access management: only certain users can access pieces of the CouchDB API, limit the HTTP writing verbs, etc. One popular way of doing this is to direct all GETs to CouchDB and direct all PUT/POST/DELETE communication to the business layer.
But like I said, since this sounds like a work project I would do whatever is most comfortable for you.
Cheers.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for a continuous integration server that:
Allows me to simply add my clients Rails projects as builds, checking out from Github on a new commit. These are NOT public projects.
Allows me to notify results into a campfire room.
Allows me to install services that I might need such as Postgres or Redis, so probably not anything that's hosted and run by someone else.
Is easily hosted
Are there any solutions out there that are suited to this? I've looked at Hudson and Teamcity, but was wondering what else there was out there.
Well, as long as we're spamming our own products, why don't I add mine :)
CircleCI does everything you said and more.
Security, all your databases, github, heroku and campfire+hipchat integration, automatic parallelism, incredibly fast builds, and can be set up in moments.
If you're interested in some of the rationale, check out the StackOverflow podcast where Joel and I talk about it :)
Checkout TestPilot CI
It supports private repos in a high security sandbox environment, automatically connects to Github to trigger builds when code changes, notifies by Campfire or email, and has an open source build environment (which already includes the most common dependencies, like Redis, Mongo, Postgres, Riak, Mysql, Sqlite3, RabbitMQ etc.)
I'm one of the developers behind it and we are constantly developing new features based on customer demand, so we'd love to hear what you think of it.
Take a look at Travis CI
You should definitely check out Tddium. Sign up for a free 14-day trial: there's no need to wait for a beta invitation.
It's fully hosted in sandboxed VM's, supports private Git repositories, and does CI through git hooks. Campfire integration is included.
Tddium currently supports:
Full Heroku integration, including a Heroku-approved addon
RSpec, Cucumber, Spinach, Test::Unit, and Jasmine (via Webkit)
MySQL, Postgres, Mongo
Redis, Memcached, Riak
Solr and ThinkingSphinx
Capybara, Selenium, WebKit, Culerity
Ruby 1.9.3, 1.9.2, 1.8.7, and REE
CouchDB and RabbitMQ
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have a server application that has been instrumented using JMX so that it can be monitored in test and production environments. I wish to show the current value of some JMX exposed attributes as well as the long term trends in a graphical format.
What is the best or most commonly used JMX Console / Client
I have come across a number of possibilities but none have stood out as clear leader:
JConsole (comes with JDK but no graphical view)
JManage (does not look like much recent activity)
Panoptes (does not look like much recent activity)
MC4J (does not look like much recent activity)
JBoss JMXConsole (looks like this may for JBoss servers only)
Hyperic HQ (open source / communit edition and enterprise version)
Zenoss
Which ones are the market leaders?
What ones aren't on the list?
I would prefer using JConsole for application monitoring, and it does have graphical view. If you’re using JDK 5.0 or above then it’s the best. Please refer to this using jconsole page for more details.
I have been primarily using it for GC tuning and finding bottlenecks.
JConsole has a graphical view.
You also have VisualVM and Oracle JRockit Mission Control
JRockit Mission Control is becoming Java Mission Control and will be dedicated exclusively to Hotspot. If you are an Oracle customer, you can download the 5.x versions of Java Mission Control from MOS (My Oracle Support). Java Mission Control will eventually be released together with the Oracle JDK. The reason it is not yet generally available is that there are some serious limitations, especially when using the Flight Recorder. However, if you are only interested in using the JMX console, you should be golden!
JMXConsoleTools
eclipse-jmx
ServiceMixJMXConsole
jminix is an embedded web based JMX console. Not sure if it's maintained any longer, but still.
Alternatively, constructing a JMX console yourself doesn't need to be hard. Just plug in Jolokia and create a web page getting the attributes that you're interested in. Admittedly, it doesn't allow you to do trend analysis, but it does allow you to construct something that is really geared towards your purpose.
I constructed something in just a few lines: http://nxt.flotsam.nl/ears-and-eyes.html
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have many small files containing code fragments, pseudo-code algorithms, classes, templates, SQL-samples, etc., and I obviously cannot put all these into libraries. I need a practical method to index all of them, and to be able to make this index available to others.
What must such an index contain to
make searching easiest?
Are there any such repositories
available on the web? (So I can test
the techniques they use.)
Are there any applications already
written that implement this that I
can have a look at?
Possible duplicate: https://stackoverflow.com/q/90300/15161
If you're working with .NET / Visual Studio, you could look at adding them as code snippets
Code Keep is a pretty good online repo for CodeSnippets and has plugins for VS2008
What we've done at work is created a common account for the dev to use, so everyone submits to codekeep under a common login and then can retrieve everyone elses snippets.
Also it might be worth your while creating a developer wiki on your dev network. Somewhere that the old hands can leave documentation on your regularly used patterns & snippets and new team members can check for help. We use TRAC in house as an all in one WIKI / Issue Management / SVN Integration and it does the job nicely
Another similar result from searching StackOverflow: Best Application For Storing Code Snippets
You might want to try refactormycode.com or set up your own wiki for it. A wiki actually sounds like a good application here.
I find the only way to manage source code is in the source control repository. This includes templates and pseudo code algorithms.
How it's different from the rest of your code ?
I'm familiar with cvs that can be hosted for example here (setting up cvs server is not to complex task either) you can search the repository using cvsearch and browse it using cvs web client.
I'm not saying cvs is a best option just another one that fulfill all your need.
Code snippets is a not a good option, IMHO.
You can do a full-text index of your hard drive using a tool like Copernic, Windows Live Search, or Google Desktop. Then whenever you want a code snippet that does a specific thing, just search for the relevant keywords and there it goes.