How can I customize Hue for Hadoop - html

I am using the web UI Hue with Hadoop for the purpose of giving users ability to browse and download data. However, I do not want all the functionality of Hue, we have no need to provide capabilities to write queries, browse tables or make changes to the file system. Therefore I would like to make changes to the Hue UI to remove the unnecessary options.
My question is where can I find the files which Hue uses to serve content (i.e. the HTML, CSS, JS). I tried a "find . -name *.html" in the Hue installation directory and couldn't find anything. I am using MapR Hadoop and the installation directory is at /opt/mapr/hue/hue-3.6.0. Does anybody know where I can find the files I need to edit to customize Hue, or how I might be able to find them?

These blog posts documents how to just disable some apps:
http://gethue.com/solr-search-ui-only/
http://gethue.com/how-to-manage-permissions-in-hue/
For developing you could start with:
http://cloudera.github.io/hue/docs-3.7.0/sdk/sdk.html
http://gethue.com/how-to-build-hue-on-ubuntu-14-04-trusty/

I have found a solution that serves my needs partially, will probably prove useful to others. A Hue admin can set up permissions on a per group basis for the various apps in Hue. We can provide access to an app but we can't say it should be read-only, but it's a good place to start. More info: http://gethue.com/how-to-manage-permissions-in-hue/

Related

Workflow for User Secrets in .netcore?

I'm playing around in .netcore and attempting to make use of the user secret store, some details are here: https://docs.asp.net/en/latest/security/app-secrets.html
I'm getting along with it well enough when working locally, but I'm having trouble understanding how this could be utilized effectively in a team environment, and if I wanted to work on this project from more than one computer.
The store itself (at least by default) keeps its configuration json file within the users/appdata (on windows). This feature is good to use if you're uploading the project to github, to hide your API keys, connection strings etc. This is all great when it's just me, on one machine working on a project. But how does this work when working in a team environment, or on multiple machines? The only thing I can think of is to find the configuration file, check it into a private repo, and make sure to replace it in the correct directory when changes occur.
Is there another way to manage this that I'm not aware of?
As you already know, the Secret Manager tool is providing another method to avoid checking sensitive data into source control by adding this layer of control.
So, where should we store sensitive configuration instead? The location should obviously be separate from your source code and, more importantly, secure. It could be in a separate private repository, protected fileshare, document management system, etc.
Rather than finding and sharing the exact configuration file, however, I would suggest keeping a script (e.g. .bat file) that you would run on each machine to set your secrets. For example:
dotnet user-secrets set MySecret1 ValueOfMySecret1 --project c:\work\WebApp1
dotnet user-secrets set MySecret2 ValueOfMySecret2 --project c:\work\WebApp1
This would be more portable between machines and avoid the hassle of knowing where to find and copy the config files themselves.
Also, for these settings, consider whether you need them to be the same across all developers in your team. For local development, I would normally want to have control to install, use, and name resources differently than others in my team. Of course, this depends on your situation and preferences, and I see reasons to share them too.

Is it possible to use Lightroom to upload images to a server?

So what I want to know is whether it is possible to upload images from lightroom via FTP to a server? Each client will get it's own folder and a login and password to view the images. I was hoping lightroom had a nice program that laid out the images nicely and allows password protection and also allows the option to give the image a title.
Is this possible to do? If so, can anyone point me in the direction of some resources showing how to do so? Thanks!
You can find the latest Lightroom 4 SDK at: http://www.adobe.com/devnet/photoshoplightroom.html, which still contains the FTP plugin that #mattcawley referred to.
Adobe used to provide an FTP plugin via their downloadable Lightroom SDK but I'm not sure if this is still the case. However, there are third-party plugins that will do the job equally well.
For example: http://www.presetsheaven.com/2009/10/27/export-to-ftp-with-lightroom/
check out the built-in web galleries - they are easy to use and if they are not enough you can install additional even better ones - you might be interested for example in http://fonto.pl/fontogallery.html - it has the basic feaures you may need

How do I use Objective-c to upload/download a file on the internet?

This is for an iphone app. The file uploaded/downloaded on the internet would be a basic leaderboard with a username or id or some sort, and three separate highscores for three modes within one game.
Further - I would like to know if this can be achieved for free? For example could I upload an xml file or a plist file to a site like mediafire and still be able to upload there using objective-c? With mediafire, for example, I already got the download working using the NSArray method initWithContentsOfURL:. So far I have been unsuccessful in uploading to mediafire (Maybe using something with the NSURL password and host methods?). Is there a way to do this on mediafire? or would it require another way of doing this?
I don't really wish to use Apple's Game-center. Do you think MySQL is required?
I seriously doubt MediaFire will offer an easy to use upload API (or an easy to use download API for that matter). Also, what happens when more than one user updates their high score at the same time?
I don't think MySQL is required, however you have moved beyond simple push/pull of a file, especially since the file has global state. This is what GameCenter and OpenFeint have tried to solve for you already, and if you don't have at least a shared hosting account with server side scripting capability you won't be able to solve this issue in an acceptable fashion.

Read EXIF online without need to upload photos

I have an HTML5 site. I want to do following thing:
Walk through files in a folder
Find all images
Get exif file from images
Analyze an exifs (on server)
Correct bad exifs
This is a best scenario, that it can be. I am conscious that 1st and 2second step is possibly done only by selecting this files by user. And 5th step is possible only when the analysis will be done at user's machine. So what is the best way to do it (to get closer as much to the optimal scenario)? What should I use without need to force a user to install anything?
EDIT:
At least I have used free GeckoFX web browser as a basic desktop app. Interface is created in HTML+JS Thx all
You would need to create an application that runs on the computer of the user. You can't create an HTML5 site that does this.
A Chrome HTML5 webapp should be able to do this.
I'm actually looking at this in these days.
Here is a NOT WORKING example ( due to old API specs, I think)
http://benno.id.au/blog/2009/12/30/html5-fileapi-jpegmeta
But should at least give some good insights.
You should use ExifTool.
It is available as a Perl library here:
http://www.sno.phy.queensu.ca/~phil/exiftool/ExifTool.html
And also as a command-line tool which can be ran by the server (same site).

simple way to quickly edit my website

here's my website:
www.newportclassic.com
do you know of any free, easy to use, content management systems, that will allow me to simply edit the text on my site without having to download the file, open the file, edit the code, save the file, upload the file ???????
I know of a few CMS's that have done well, here are two of them.
Wordpress - free - http://wordpress.org/ - 3.0 is coming soon
Perch - paid - http://grabaperch.com/ - very light and easy
Wikipedia has a very good list of content management systems broken down by language and cost (open source/proprietary) and DBMS. Most of the ones I've used/evaluated in the past have been .NET based, such as DotNetNuke. Pretty much any CMS will give you the ability to edit your HTML without changing any files on your web server. If you're going for simplicity, the Wikipedia list has several that use a flat file instead of a database, so I would start there: http://en.wikipedia.org/wiki/List_of_content_management_systems#File_.2F_Flat_file
As an alternative to installing a CMS on your server, you might be interested in a service like CushyCMS. It allows you to specify what parts of your page are editable by setting an appropriate class in each editable div tag. Then to edit the contents of those div blocks, you log in to the CushyCMS site and make your changes right there. CushyCMS connects via FTP to the server for you and updates the HTML page.
You can use emacs -- it has a mode (tramp) where you can open, edit and save remote files as if they were on your local machine. This makes it really easy to edit files on a webserver.
haven't used it myself but i've heard Surreal CMS is quite good and easy to setup. Here's a tutorial to get you started.
In terms of user friendliness zimplit is hard to beat.
Try their demo.
You can literally edit your website with a wysiwyg interface inside your browser.
Refinery HQ is probably the easiest way to create, edit and update your website. You can upload images and files as you describe in your question.
You can also connect it to your own domain (it's a hosted service). So you'd be able to hook the site you create up to newportclassic.com