I am considering ways to read/modify large Excel spreadsheets with formula support in python, on Google App Engine. I am fairly unfamiliar with how COM works but I was wondering if anyone has successfully implemented pywin32 on GAE - or whether there are inherently problems with doing so, or if it's just a bad idea in general.
It seems like the only possible solution for Python (xlrd has no formula support) but if it doesn't work, I will resort to learning Java and trying JExcel API.
Any insight would be appreciated!
Google's servers are not running Windows, so no, there's no way whatsoever to use any Win32 APIs.
If you have to use GAE then you may process some stuff on a windows machine. You can use Pull Queues to lease tasks from GAE process them and then add them to Push Queues that will store the data in GAE
Related
I'm using Puppeeter for NodeJS to automate tasks in Chrome, and there're about 15-20 browsers running concurrently on Windows Server. What would be the most efficient and "right" way to accomplish easy management of these sessions? I've thought about web app communicating with the main NodeJS app via POST/GET requests.
Since this is tagged with playwright, I thought I'd suggest using browser contexts instead of or in addition to full browsers. Browser contexts are much more lightweight to start and destroy, and they are isolated too, and can be used in parallel.
https://playwright.dev/docs/api/class-browsercontext
(I suppose Puppeteer might have these as well, but couldn't quickly find how to use them there.)
About communicating with these browsers, it's up to you. Maybe grpc is a bit more efficient for this purpose. Also something like the actor model might be worth looking at for a nice concurrency model.
And if you're looking for maximum scale, high elasticity, and not having to manage VMs yourself, the examples of running PlayWright in AWS Lambda or Azure Functions are also worth a look.
https://playwright.dev/docs/showcase#examples
I have build an chat application using nodejs with mysql database. I have developed on my windows system and it works fine.
Now I want to make it live on a server to check its real time performance, As a beginner I don't know which server hosting should I choose to develop nodejs application, so someone please suggest me a hosting for nodejs application?
If you want something relatively easy to test on, Heroku will provide you with a free instance.
I can also recommend Azure over Amazon for a simple nodejs based app. The main reason is that Azure has a very simplified interface for deploying node apps after a little bit of minor setup. Amazon offers similar capabilities, but the last time I looked at them they aren't quite as simple to get up and running. Again, they're competitive in cost and reliability, this is just a subjective opinion on what I think will be easier for a dev to get up and running without prior experience.
I use Dokku, an open source solution for a Heroku like PaaS. Either of those are great for doing git style deployments. Heroku has better documentation, and doesn't require your own server so I would start with them.
https://www.heroku.com
http://dokku.viewdocs.io/dokku
Is there a tool which can transfer an Application/Code base from the Google Cloud to Azure Cloud?
Or is there a tool which can help with the process?
I tried Google but could not find anything.
I am afraid that you will not be able to find any tool helping out with code migration from Google Cloud over to Azure Cloud (or vice versa).
Google App Engine as well as Windows Azure are Platform as a Service (PaaS). Windows Azure also provides Infrastructure as a service (IaaS). Both platforms supports many different programming languages e.g. Java, PHP, Python etc. In many cases you can even use the same libraries (performing specific tasks) in both platforms. But that is pretty much is as far as similarities are concerned.
Each platform uses different architecture and different services; you need to use different SDKs. Also having in mind the fact that both platforms are dynamically evolving, it is practically not possible to a tool which allows you to transfer code base from one platform to another.
I need a recommendation for a framework/library for building web services on a Linux system. I have the following requirements:
It should have minimal dependencies, e.g. preferably not require any VM like Java or Mono.
My service implementation should have access to the native system APIs, preferably it should be possible to call C APIs directly.
If possible, the solution should not depend on a large web server installation. As I understand, Axis/C++ would require an Apache server, right? Is there anything that allows for writing some kind of "self-hosted" web service like in .NET (ServiceHost) on Linux? I would really like something that works as a standalone daemon in the end.
The resulting services should be standard-compliant as I need to make cross-platform calls. Most importantly, I need WS-Security.
The solution must be Open Source, the actual licence is less important.
If you have any suggestions, please post (web links would be nice ;-))
Thanks in advance,
Christoph
What about Twisted? http://twistedmatrix.com/trac/
As stated in the title, I would like to know if it's safe to develop a website using one of the actuals "omg" platforms that are Node.js and Ringo.js at their actual version.
Also, I would like to know if they support cookies/sessions and how do they deals with multi-fields post (fieldname[] in PHP).
Thank you
--Edit--
Thanks for all the links guys.
What can you tell me about Ringojs ?
Since I haven't figured which platform to start playing with. I must admit that the fact it can use Java seamlessly really impress me. The only available XSLT 2.0 library is in Java. I could use it as a templating system.
Is there anyone who had the chance to play with Ringojs?
From my experience using both, Ringo is more stable and "safer" for production use but you can comfortably deploy both. In addition to the ability to wrap existing Java libraries that you mention, you also get the benefit of being able to run it in an existing webapp container which manages the lifecycle of the application for you and ensures its availability.
That being said, it doesn't have to be an either or decision. By using my common-node package and assuming you don't use any Java libraries, it's perfectly feasible to maintain a project that runs on both without any changes to the code.
I've also included benchmarks that test the performance of Node.js vs. RingoJS the results of which you can find in the common-node/README.md. To summarize: RingoJS has slightly lower throughput than Node.js, but much lower variance in response times while using six times the RAM with default Java settings. The latter can be tweaked and brought down to as little as twice the memory usage of Node with e.g. my ringo-sunserver but at the expense of decreased performance.
Node.js is stable, so yes it's safe to use. Node.js is capable of handling cookies, sessions, and multiple fields but are not as easy to manage. Web frameworks solve this problem.
I recommend Express.js, it's an open-source web framework for Node.js which handles all of this and more.
You can download it here:
https://github.com/visionmedia/express
I hope this helped!
Examples of some of the bigger sites running Node.js
https://www.learnboost.com/
http://ge.tt/
https://gomockingbird.com/
https://secured.milewise.com/
http://voxer.com/
https://www.yammer.com/
http://cloud9ide.com/
http://beta.etherpad.org/
http://loggly.com/
http://wordsquared.com/
Yes. It is. https://github.com/joyent/node/wiki/Projects,-Applications,-and-Companies-Using-Node and https://github.com/joyent/node/wiki/modules
cookies/sessions/forms etc http://expressjs.com/ makes it easier
Ringojs is a framework developed by Hannes Wallnöver and uses rhino as it's scripting framework. There are webframeworks, templating-engines, orm-packages and many many more things already available. Have a look at the tutorial featuring a good subset of packages you may use for a simple web-application. It's not too long and straightforward.
Even thought some of those packages used within the tutorial (e.g. ringo-sqlstore]) are marked as 0.8 and come with the hint "consider this being beta" they are already very stable and bugs - if you find one - get fixed or commented on very fast.
And the power of uncountable java-libraries out there is at your fingertips - so if you already have java-knowledge this knowledge isn't wasted. Rhino - the scripting-engine - even enables you to implement interfaces and extend classes. It is possible a little more advanced but i've done it and i know of packages taking advantage of such features (like ringo-ftpserver which is a wrapper around Apache FtpServer written in java)
Another pro for me is - because ringojs is based on java - it works fairly well with multithreading with ringo/worker for example.