Mailchimp/Mandrill clients/wrappers generator - code-generation

Does any one know how Mailchimp generates the api clients/wrappers for so many languages? Php, python, ruby, etc.
https://bitbucket.org/mailchimp/
Is there any opensource tool to help with that?

Related

Web browser manipulation, iterate emails and get statistics data

I want to make a program that iterate through my emails and then get some statistics about them. Is there any programming language or tool I can use for this?.
You can use selenium, which has support for a variety of languages (e.g. Java, Python, Objective-C, C#, Javascript, Ruby, and more). Under the hood, it's using webdriver to drive the browser, and there are other language-specific tools that use webdriver for programatic browser manipulation (e.g. watir-webdriver in ruby).

Is this correct : jquery is to javascript, django is to python?

I'm familiar with jquery and javascript but i'm a python noob. Whenever I learn something about python on the web, there's mention of django here and there. When i went to the official django site, it described it as "Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design." So I inferred it's what jquery is for javascript, am I correct?
[This might seem like a silly question but I tend to get shameless when it comes to asking questions on stack**overflow**]
I don't think it's a very useful comparison.
JQuery is mostly a wrapper around core functionality of javascript. Partly to make it easier to use and partly because otherwise you'd have to deal with browser specific problems even for the most basic scripts.
Django is a full-featured web framework that has many useful and necessary things built-in. It has request routing, templating, database abstractions, localization and a lot more.
In contrast to other web-frameworks it has those things tightly coupled and is opionated on what's the best practice to build your website with it.
A better comparison in the JavaScript world is (as an example) AngularJS. It also comes with lots of good features (routing, templating, data-bindings, dependency injection, etc.) but when you use it, you should better stick to "the angular way" of doing front-end JavaScript.
Think of JQuery more of a low-level library that you can build your code and even frameworks like AngularJS on. Kinda like the standard library of Python.
The short answer: Kind of- it is in the sense that JQuery is essentially a set of useful bits of code written in Javascript and Django the same in Python. However, JQuery is a more functional framework, where as DJango is more like a CMS framework.
No question is a silly question!
Almost, but not exactly.
I would say your python to javascript comparison is correct (as Python can be used as a scripting language for web applications, just like javascript), but jQuery is not exactly like Django.
jQuery is a library designed to simplify the scripts needed for dynamic website functionality, whereas Django is more useful in the creation of complex, database-driven websites.

What languages can be used to make dynamic websites?

So, there are several languages which will allow you to create a website, as long as you configure the server(s) well enough.
To my knowledge, there is:
PHP
ASP.NET
Ruby(on rails, what is
that all about?)
And thusly, my knowledge is limited. Ruby and ASP, I've only heard of, never worked with. If there are other languages, I suppose they have some way to make files containing the needed html. It would then suffice to add a line to the Apache config to associate the file-extension.
And if other languages: are there any notable characteristics about the one(s) you mention?
ANY language can be use to make a dynamic website - you could do it in COBOL or FORTRAN if you were twisted enough. Back in the olden days (about 10 years ago) most dynamic websites were done with CGI scripts - all you needed was a program that could read data from standard input and write data (usually HTML) to standard output.
Most modern languages have libraries and frameworks to make it easier. As well as the languages you have already mentioned, Java, C# and Python are probably the most common in use today.
Typically a web framework will have:
a way of mapping URLs to a class or function to handle the request
a mechanism for extracting data from a request and converting it into an easy to use form
a template system to easily create HTML by filling in the blanks
an easy way to access a database, such as an ORM
mechanisms to handle caching, redirections, errors etc
You can find a comparison of popular web frameworks on wikipedia.
How can you forget Java ? :)
Python
It runs on Windows, Linux/Unix, Mac OS X, and has been ported to the Java and .NET virtual machines.
Python is a perfect scripting language for web applications, e.g. via mod_python for the Apache web server. With Web Server Gateway Interface a standard API has been developed to facilitate these applications. Web application frameworks or application servers like Django, Pylons, TurboGears, web2py and Zope support developers in the design and maintenance of complex applications. Around libraries like NumPy, Scipy and Matplotlib, Python is a standard in scientific computing.
Among the users of Python are YouTube and the original BitTorrent client. Large organizations that make use of Python include Google, Yahoo!, CERN, NASA,and ITA.
This could be for your interest.
Virtually thru CGI all programming languages that produce output may use for web page generation.
Basically, you can use any language (if you are hosting your own server)
Very closely related and very interesting is this article where LISP has been used to build a very succesfull website.
Python has a 3rd party module CherryPy which can be used with or without a http server.
Amongst others: Erlang (YAWS, Mochiweb), Python
JSP has the advantage that it automatically wraps your code in a servlet, compiles that to bytecodes, then uses the just-in-time Java compiler to recompile critical sections into native object code. Not aware of any alternative which allows optimizes your work automatically in this way.
Also allows you to develop and deploy on any combination of Windows, Mac OS X, or Linux.
If you'd like to choose one for the beginning, you should check out PHP first. It gives you the basic clues about how dynamic sites work in general.
After you've become familiar with the basics, I recommend ASP.NET.
Fist off, you should know that ASP.NET is a technology and not a language. (It actually supports any language that can be used on the .NET platform.) Also it is not to be confused with classic ASP. (The old ASP was much more like PHP.)
ASP.NET is very easy to begin with, and after you have some clues about its concepts, you can always dig deeper and customize everything in it. The http://asp.net site is a very good starting point, if you are to learn it. I think it is really worth the effort, because even if you choose not to stick to it, it will give you some interesting ideas and concepts.
I tell you its most important advantages:
The code is compiled (and NOT interpreted like PHP), and it has a very good performance. (In a performace comparsion, it is 10-15 times faster. http://www.misfitgeek.com/pages/Perf_Stat_0809.htm)
It can be run on Windows without effort, and on Linux / Mac / etc using the Mono project.
It implements the Separation of Concerns principle very well.
It has most of the general functionality you'll need built-in. (Such as membership, roles, database management, and so on.)

Best programming languages to create technical charts for stocks on the server side

What programming languages are best suited to create technical charts for stocks on the server side and then stream out to http and see it on the browser.
Thanks
Vishal
It is hard to say what is "best".
This is something that Python can do well since it has add-on libraries for complex mathematical data manipulation such as NumPy and for quantitative finance such as Quantlib. Matplotlib is a very flexible Python charting library.
In addition, there is an IronPython-based spreadsheet called Resolver One that is popular in the financial services industry and they have an add-on that turns any spreadsheet into a web application.
If you did decide to use Resolver, you should be able to use almost any Python or .NET library and integrate it with your application.
I would suggest that you take a look at SVG as the graphical format for the technical charts because you can zoom into these charts in the web browser.
Any language with a graphical library will do. I know of implementations in Perl, C++, and Java
The perfect language for you would be Scala, here's why. You can write your serverside program using Scala, and you can then use the Scala.js framework to display the output(The Chart) to the browser(Client Side). The output will then be handled using Javascript.
Many websites currently use this method, for example, Twitter and Facebook.

Semantic Web Framework

What semantic web frameworks are there, and what are the advantages / disadvantages of each? I've made extensive use of Jena, and I have looked at Sesame briefly. Are there others I should consider as well?
Redland is a good RDF framework (just like Andreas said). I am mainly using its Python bindings and am installing it on Mac OS X via MacPorts (e.g., port install redland-bindings +python).
You could use it with other languages too (see its bindings for Perl, Ruby, ...).
For pointers to some larger lists of RDF frameworks see Semantic Web FAQ: Tools.
a more low-level appproach is redland, which provides bindings to a lot of languages like Perl, PHP, Python and Ruby. redland itself is written in C. i have scripted with it in ruby to provide a simple webservice with a rdf backend instead of a classic database.
http://www.cubicweb.org is a semantic web framework written in Python. It can be used to develop applications that serve content both to humans and computers, providing each with the format it asks for.
This question may be related to what-are-some-good-java-rdf-libraries
I would definitely take a look at Intellidimensions offerings if you are working on the Microsoft stack of technologies.
They have a mature SQL Server based framework for storing and processing (with rules) semantic web data. They also have a great .NET SDK that I have used extensively.
If you are using Java, and are interested in OWL inferencing, you should look at Pellet. It has bindings to Jena and the OWL-API, which itself, is a useful semweb framework.
The most web-centric I've seen so far is RAP (RDF API for PHP).