Programatically get the latest Google Hosted library version? - cdn

Do anyone know if there's a way to programatically get the latest version of a Google hosted library?
The reason why I'm asking this is to use it in a template generator. IMHO, it's good to download latest library at the time the template is being applied to the project and it's slightly annoying having to update the repo just because the library released a new version.
Don't get me wrong, this isn't meant to always use the latest while your app is working. It's meant to always give you the latest version available at the time of coming up with your project.
Thanks! :)

If you use cdnjs: http://cdnjs.com/packages.json
Also available via HTTPS: https://cdnjs.com/packages.json

I couldn't find a suitable solution so I went out there and built one. Would you give CDN.io a go and share your thoughts?
Objective? Always have the latest reference to a CDN hosted library, programatically.
Why could this be useful? I.e., to be used in template generators. In that way we can always rest assured that the user will get the latest version of their CDNed library and we don't have to worry about updating helpers anymore.
Why did I even bother? Because CDN services don't offer an API to access their list of hosted libraries!
What if you don't want to use the Web Service? No problem, just use it as a library.
Thanks! :)
DarĂ­o

Related

Getting started Alfresco development

I want to develop Document Manager application based on Alfresco. I am going to change there many things: user interface, language, may be some functions... But I don't know how to start, where I can get Alfresco source code, how can I rewrite codes with netBeans and how can I test my changes. This is my first serious project so I need any help. Where I can get Started ?!
A very popular way to get started is to work through my tutorials.
You don't need the source code, although it is available and helpful when you are troubleshooting or learning how something works. Instead of forking Alfresco you will write extensions that customize the platform. If you find yourself needing to compile Alfresco's source code, most likely you are doing something wrong.

How do I get the latest Firebase and Firepad version from Firebase cdn?

The firebase CDN does not appear to have an API or a "latest" tag. The suggestion is:
<script src="https://cdn.firebase.com/js/client/2.2.9/firebase.js"></script>
A quick google shows that different sites have a lot of different version loading. I know I forget to update when I am forced to ask for a specific version.
The question is how can I infer the versions for firebase.js and firepad.(js|css) from a browser request?
Some examples...
In general we recommend just picking the latest version and using it. We don't provide a "latest" version that you can include. This insulates you if we ever accidentally introduce a bug or change a behavior that you rely on.
Then if/when you want to upgrade, you can do so and make sure everything still works before releasing it to your users. People tend to do the same thing (pin their app to a specific version) with jQuery and other libraries.

Is there any good way of SELF-updating running web application?

as stated - it needs to be a "self-update" similar like Wordpress... I haven't thought through because of my knowledge limits... (I haven't found any good answer from the web yet /asp.net c#)
anyone can give some help/ perhaps some code example would be better?
Thanks in advance!
I dont have the code, But i can tell you the general concept behind that.
Keep a public API/ Webservice which returns the latest version number of the site/ app.
In your website/ app, add a method which makes a call to this service to get the latest version number. compare it with what you have in your local application. If the one you received from the service is different than the one you have, That means there is a new version available. Then show a link to download the latest version.

Paypal PayFlow Pro Asp.Net configuration

So, this does not necessarily have to do directly with the code itself, although it is certainly a component of it.
I recently downloaded and installed the PayFlow Pro SDK for use with ASP.net
link here:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks
I installed this to my development machine. I also came accross this example code which I figured outlined the primary setup for basic Paypal Credit Card Transaction functionality.
link here:
http://www.codeproject.com/KB/aspnet/PayPal_PayflowPro.aspx
Anyways, I have two main questions
Do I have to install the SDK on the web hosts server in order to utilize the functionality of it? This seems to make sense, however, the tutorial in the second link suggests I create a web reference. Unless I am not understanding something here, wouldn't this just strictly work on my development machine, or at least, the functionality of the remote website that references this web reference to access the sdk, would this not be dependent on my computer running and broadcasting this information?
I just need clarification on how to install and/or access the sdk for use on a remote webhosts server (ie. do i need to install the sdk on the web-hosts server and if so, how would one go about doing so (ie. where to install, how to install)?).
Are there any other clean cut examples like my second link provides, that sort of outline the basic functionality of Payflow Pro? I find paypal's examples numerous and convoluted and their online slides/video tutorials to be tedious.
Perhaps I should just get off my lazy ass, but I have found peers from the general community to be much more informative in a way more efficient manner, so any help would be greatly appreciated.
Thanks!
For anyone interested, after enough searching I found a great example that notified me of all the fundamental processes to creating a basic transaction and allowed me the knowledge to further manipulate the sdk.
Check it -
Code Projects PayflowPro example and introduction.

microsoft facebook sdk

Microsoft recently announced their Facebook SDK.
http://msdn.microsoft.com/en-us/windows/ee388574.aspx
Has anyone tried using it with ASP.NET or ASP.NET MVC ?
Would like your opinion. Any gotchas that developers need to be aware of ?
Michael
This is version 3.0 of the SDK. I've been using an earlier version and am in the process of upgrading to this new version.
Your question is very vague. What kind of gotchas are you expecting? There are so many pieces of the Facebook API that it's hard to speak to what your experience will be. What's stopping you from giving it a try yourself? You'd probably learn more from a few hours of building your own app with the SDK than anything anyone would be able to tell you here. If you get stuck or something doesn't work, then post your code and/or specific question and we'll do what we can to help you.
I am working on an ASP.NET MVC app using this library.
I have not used a whole lot of the functionality of the library since there are only two MVC specific class. An Controller Extension for getting a facebook api object, and an Action decorator attribute.
I have run into quite a bit of trouble with the methods in the Facebook.Rest.Data namespace.
Namely getting and setting Cookies.
Not sure what the deal is with this but it has been frustrating. And if it was not required by the client I would probably try and find a different library.

Resources