Import .pyd file in google app engine? - google-app-engine

I have some old fortran77 codes, and I convert them into .pyd files using f2py. However, I could import these .pyd files in app engine... So does that mean GAE does not support .pyd file? If so, is there any way to call those fortran77 code when my website is hosted by GAE?How about compiling the fortran 77 code on a Linux machine?
#Guido van Rossum any official confirmation?
Thanks!

So does that mean GAE does not support .pyd file?
That is correct; AppEngine only supports pure-Python modules, nothing compiled whatsoever.
I don't know enough about Fortran/Python interop. to comment on the second question, except to say that you can open() files uploaded with your app and evaluate them manually.

Related

What is the difference between endpoints-framework:clientLibs and endpoints-framework:generateSrc?

I've just tested both of them and got the same results. Why?
My intent is to generate server stubs for Google Java Endpoints Framework from OpenAPI specification. Is it possible?
First, I must say I do not believe that our intention is not facilitate the creation of new projects using these tools. These tools were built for migrating old projects and are not a recommended path forward.
But to answer your question:
endpoints-framework:clientLibs is an operation your run on your server side project (appengine). It just downloads a client library (zip) for you. You can process and use this downloaded library in another project to consume the endpoint.
endpoints-framework:generateSrc is an operation you run on the endpoints consumer (or client). This is a helper that automatically includes the client library code in your project (it also downloads the client library), so you don't have to copy that code in yourself (or generate a library an import it in)

how to import javacardx.apdu in eclipse

I want to import javacardx.apdu and javacardx.framework in eclipse and use in applet in java card, how do this work? and how do I download .jar file to import.
thnaks
You can find the JavaCard Development Kit here.
The JCDK contains not only the APIs but also tools to help you build CAP files. You should read the documentation provided.
The jar file you look for is api_classic.jar and you should find it in the lib folder of the JCDK. You need to add it to your classpath so you can compile java card code.
You cannot (usually) upload .jar files. You need to convert the class files within a package to a .cap file. This conversion is usually performed by the JCDK converter tool or a third party equivalent. It converts the byte code into Java Card compatible byte code and performs some early binding (using .exp files delivered with the various libraries).
You may of compile against the api_classic.jar found in the lib fo lderof the JCDK to find out if your code compiles. Note that the name of the .jar may differ for different versions of the JCDK - I've used the one for Java Card version 3, where the functionality has been split into the connected and classic API.
I strongly recommend you follow some tuturials and - of course - the book Java Card Technology for Smart Cards: Architecture and Programmer's Guide.

How to use ipdb with Google App Engine?

GAE blocks using local libraries that it doesn't support on the server. Generally this is a good thing. Unfortunately this means that ipdb is blocked also. Adding the necessary directory for ipdb to sys.path doesn't work. It continues to give import error.
I've tried copying the ipdb+IPython folders into my gae folder, but this errors on import resource (/usr/lib/python2.7/lib-dynload/resource.so)
Another option might be to try editing GAE so it allows temporary access to local libraries?
The reason I desire ipdb is mainly for it's history and tab completion functionality.
There appears to be a way to get some readline support with pdb on Linux systems, found here https://groups.google.com/forum/?fromgroups=#!topic/django-non-relational/C0g3ZYuhoMw
Basically install the package rlwrap, then run the local server similar to this:
rlwrap python manage.py runserver

using libcurl to create a standalone site-polling program

I am creating a standalone (no DLLs) windows C/C++ program that uses HTTP POST to periodically send data to an HTTP server. I identified libCURL as the HTTP client library as it seems simple and reliable.
I still need to identify the environment (an IDE) which I can use to develop my project. My program has:
poller- which checks the status of the connection
a file writer when polled link is down
a component which POSTs the file when link is up
What is the appropriate IDE for this project? I heard endorsements for DevC++ and Visual C.
I am a newb to coding and this site. Pardon me if I am unclear in anything.
Any IDE will fit your need. Just install one of them and start coding.
Try CodeBlocks. It is light, more easy to work with and has more features than Dev C++.

Matlab Javabuilder using GWT

Anyone know how to integrate the Matlab compiler runtime with Google Web Toolkit?
Basically, I have GWT client-server app where the server side does some big computation using Java components compiled using the MATLAB Builder JA. Then server side sends the result back to the client (typical stuff).
I get the GWT app to compile fine but I can not access any of the .dylib files in the Matlab compiler runtime directories once running.
Typical error:
Caused by:
java.security.AccessControlException:
access denied (java.io.FilePermission
/Applications/MATLAB/MATLAB_Compiler_Runtime/v713/runtime/maci64/libmwmclmcrrt.7.13.dylib
read)
I know that it's killing my access b/cuz of sandbox issues. But, I have to access these dylib files somehow. What is the best/secure way to to integrate these libraries with GWT?
Additional info:
using Mac OSX 10.6.5
Eclipse JavaEE Helios + GWT 2.1 and app-engine plugin
Any help would be awesome.
Cheers
I think it is not necessary to integrate with GWT. Because GWT is pure client side. You must access MATLAB or any libraries from servlet. So you must integrate your matlab libraries with java servlets. Try access them from simple java application and use in servlets in the same way.
Google App Engine and Matlab are not good options to use together. Therefore I recommend you not to use Google App Engine. You can use , any other server side technology such as servlet for matlab computation..

Resources