I have a requirement to share live (timely updating) graphs from Graphite in form of a HTML tag (inline). I know that, Graphite provides a static URL, representing snapshot, of the graph.
How I can achieve this with Graphite? Is there any open-source plugin for this?
Thanks to all.
This could be achieved with a little bit of JavaScript and the default Graphite PNG output. If you're comfortable with JavaScript there are other frameworks (D3, Rickshaw, etc) that will automatically refresh the data but you'll have to perform the initial coding.
Related
My meteor application need to be enriched with an image upload functionality. Since many free image upload services exist, I thought the best way of doing it would be by using an existing image upload service. My choice fell on imgur. I guess I somehow have to use imgur's image upload API, but this looks completely alien to me.
Here are my questions:
Is imgur appropriate for what I want? Do you know a better or simpler solution?
How do I upload an image to imgur from my meteor application?
You can assume that the image file comes from an html file input tag. Later on, when the mobile app catches up, the image should come from the camera, but let's just tackle one difficulty at a time.
FSCollection will be a great option here, you can use grids (to store images on the db) or use fs(to store in certain path)
For better explanation i made this tinny demo here is the DEMO and the code
Also i made this example using the progress bar, again here is the link to the DEMO and Source Code
A simpler solution would be to just store images in MongoDB or your filesystem using CollectionFS along with cfs:filesystem for your local file system or cfs:gridfs for MongoDB. The docs are clear and simple enough to get you up and running quickly.
If you wanted to use imgur, you'd need to be able to POST data and understand what you're doing. CollectionFS has a methods package which adds an HTTP POST method to Meteor, but honestly I think that'll just complicate things for you at this point. Keep it local for now.
I am interested to implement Facebook way of link sharing feature in my web application. In FB when we paste a link it shows the content of link as thumbnail,few text etc.
How can I do that?
I know its Open Graph Protocol but how to implement it in my web application(based on spring MVC)?
What are the technology needed for this? I am a java,jquery guy.
Is it necessary to use facebook for this?
Open Graph isn't a library or a script you can use to build an application that is capable of doing what you want. Open Graph is a Protocol that follows a set of rules that provide a convinient scheme of building social applications.
By doing so, it's made sure that there is a standarized way to work with that data.
So the short answer: OG does not provide such a functionality, you have to build it by yourself (though there are pretty good links and scripts that make your life much easier: http://ogp.me/ scroll to the very bottom). Instead by using OG, you make sure that every application that works with OG (facebook and google to name a few examples) can work with your data properly.
It might not be the answer you searched for, but I think it should give you a little information on what OG really is.
I need to present Word and PDF documents in a read-only preview, via an ASPX/HTML page to my internal users. In a related requirement, I need to present editable Word documents, via ab ASPX/HTML page, to parties outside of our network - effectively the public.
We cannot rely upon Word or Adobe-type PDF plugins being available on the destination PC.
Can anyone suggest a way to do this?
Edit - For clarity, the document/data would ideally stay on our own servers.
What about using Google Docs API? You could use either their word-like doc or a form to get the data you need, and then present that internally.
Not sure if this meets all of your requirements, or is an available option.
For our company, we have a few tools that utilize Google Docs. We upload data dynamically to them for specific needs.
Based on your requirements, maybe it's best to just write your own. I haven't created a Rich Text Editor. But it looks like there are quite a few tutorials online. Here is a basic tutorial for a rich text editor. It's using javascript, HTML, & CSS. If you prefer to not use js, then you may need to look for other tutorials.
This isn't the most glamorous solution, as it looks like the users view would be HTML. I'd think you could have it updating dynamically off to the side with an actual rich text view (similar to how Stack Overflow has theirs below an answer or question being written).
Update
Over the weekend I was exploring HTML5's contenteditable attribute, I came across an editor that builds off of that called Aloha Editor. It's a WYSIWYG type editor. But if that's something that you desire for your clients, than this would probably be a pretty simple integration. I have yet to use it, but it seems like it would be a great fit - if you decide to go the route of building your own editor.
You could use the Zoho API or, if you need to keep all data on your own servers and validated clients at all times, you could try the Aspose components.
If you're interested to provide documents in a view-only way then you can try GroupDocs as well: http://groupdocs.com/. They offer viewers for different file types which you can add to your website very easily: http://groupdocs.com/apps/viewer.
Since you need to keep data on your own server, aceoffix can be one of your alternative. It is a plugin installed on your own server and save all data on your server too.
I will explain exactly what I am trying to do, and maybe someone can tell me a simple way that I can do it.
I want to track the amount of money pledged on a Kickstarter project page. The amount pledged is consistently kept within a certain tag. What are all the ways I can do this programatically?
I am just starting out to learn how to develop on the web, so that should be a good context to allow you to better help me. (I've learned bits and peices of C, Python, VB, JS, HTML/CSS)
Is there a simple hack way to do this with free tools? How would I do it all on my own? Extending this idea further, how would I notify my android device when the amount has surpassed a predefined threshold? Is this the process known as scraping? What tool do I need at my disposal to accomplish this? What language do I need to use? Do I need my own web space?
If I eventually made this concept into an android app, is there a way to only load a small portion of a website (maybe even just enough source to get to the tag I am looking for) so that I can get the data I want on the page but not have to waste a bunch of my smartphone data loading the rest of the stuff that I didn't want?
Thank you for any help you can provide!
I'm not familiar with Kickstarter's API -- do they have one? -- but here is how I'd approach this problem:
You want to "ping" the Kickstarter periodically for information. One way to do it on Android is using BuzzBox SDK
With each execution of the background task:
Load a portion of the Kickstarter page with jQuery into your own HTML document.
Compare it with a threshold and possibly the previous stored value. Should be doable with basic <= unless you want to go anal-retentive with parsing and stuff.
Use notification in Android to notify the user once the amount is updated.
Wrap all this into an app.
I'm working on a program that parses text and turns it into iCal events. I'm then using FullCalendar to display the information inside a google gadget.
I'm currently importing the .ics file into my google calendar, making that public, and then pointing fullCalendar at it.
However I'm trying to do accomplish without making the information public. Any ideas?
Alternatively, is there any other lightweight customizable javascript calendar that can interpret .iCal?
Ideally I would be able to just use a single day view/single week view and not an entire month view.
You never said if you using PHP, .NET or what.
So I will assume you use .NET just becuase i use it.
I use this nice DLL Library in .NET
DDay iCal
I use it to create iCals so that people can import to iphones,outlook etc. but briefly looking there is a way to serialize it as well, so you could use it anyway you need to.
And Google Calendars are not listed publicly any more because of private security. Only people with the link can access the gCal.. and your the only ones that knows it. If somebody wanted to get sensitive data then no matter what method you used it always has some vulnerably
I wish I had a better answer. I was doing the same thing (iCalendar format -> Google Calendar, public -> FullCalendar) but became frustrated with how slowly Google Calendar would update. So instead, I put the data into JSON format for FullCalendar.
So now, the site does (A) iCalendar format for distribution to people (they can add it to their own Google Calendar, iCal software, etc.), and also (2) JSON format for FullCalendar.
The advantage is that I can reformat the JSON "description" part to make it look better with QTip bubbles (html line breaks, css styling).
There is also jQuery iCalendar you should check it out.
And there is JSON to XML converter, it's very useful maybe it can help.
Both can work with any language, you should try them and see which
one is better for your specific calendar.