Abaqus python scripting documentation, how to work with it? - python

I'm new to python scripting in Abaqus. I'm trying to make sense of the documentation but I don't get it. So far I found the following documentation:
This abaqus scripting user guide: http://abaqus.software.polimi.it/v6.13/books/cmd/default.htm?startat=pt02ch06s01.html
This abaqus scripting reference document: http://abaqus.software.polimi.it/v6.13/books/ker/default.htm
Now let's say that I want to know more about the OdbMeshElementArray class. How do I do this?
If I use the search function on the site than it just gives 0 hits.
If I download the pdf of the reference guide and I use ctrl+F then I do get hits, but there's no direct way to go to the page explaining specifically more about this class. E.g. I get a lot of hits of this search term in which I'm not interested. I just want to know the attributes and methods of this class.
Any advice?

Abaqus Scripting User Guide is more of a beginner guide, which shows how things can be done. Similar to Getting Started With Abaqus, whereas Abaqus Scripting Reference Guide is the complete list of commands, classes and objects available. Similar to the Abaqus Analysis User Guide
The search function works for me as well, try using Simulia Doc hosted by DSS itself.

I found the documentation for the OdbMeshElement object?
You can use the side bar (on the left) to get the documentation for the other objects then too

Related

Monitor RSS/Atom feed

I want to figure out constantly monitor an RSS feed (Python 2.7, using feedparser) or any other library.
Means if blog add a new article we get alert.
and if article in db != new article then add this article in our db.
I don't know how to do that.
Always smart to start with the documentation of the module you intend to use. In the case of Feedparser that would be in the link below:
https://pythonhosted.org/feedparser/index.html
Follow the instructions, tinker the code, make a few mistakes, learn from them, get familiar with the module. It's the only way you can learn.

GAE or Maps API3 Store Locator with Python? (Easy Version)

I'm tasked with creating our Google Maps website store locator and so far all I've been able to find is old php tutorials and some new appEngine apps.
The apps look great. They seem to function as designed and it looks like this is the way I need to proceed. I even found a demos here and here and both are perfect.
Problem is, I'm not at the level yet to understand them in order to learn from them and start implementing my own app for our stores. I do plan on using them to learn, but at the moment I'm not at that level yet so I'm not even really learning anything by examining the code.
Is there anything I can use at the moment that is a plugin option while I learn this? Perhaps any python tutorials out there hiding somewhere? I can learn these demos but I really need something for the time being while I'm figuring it all out.
This demo from 2008 might be a bit old but will put you on the right tracks.
There is also locator in geodatastore. Demo

Python pefile member question

Gang,
I apologize if this is a really dumb question... I am wanting to use the super convenient python script pefile (http://code.google.com/p/pefile/) that parses an executable and lists particular information about the PE structure. My question is where can I find information about how to access particular members of the executable? I've scoured the wiki and read the usage examples but that documentation only covered 4-5 members. What I am wondering is if you guys have a list of members I can access to display the information I care about. So specifically, if I wanted to list the Stack Commit Size of an executable, does it look like this: pe.FILE_HEADER.StackCommitSize, obviously I can run this code and figure it out but have you guys seen API DOC floating around that I find the members i need?
THANKS!
From the PE docstring:
Basic headers information will be available in the attributes:
DOS_HEADER
NT_HEADERS
FILE_HEADER
OPTIONAL_HEADER
All of them will contain among their attributes the members of the
corresponding structures as defined in WINNT.H
So, look at winnt.h and you'll see which attributes are available.
Or just read the source code for the module. It's big, but everything you need to know is in there.
You can generally find everything that is in a PE file in the Microsoft PE/COFF specification.
Once you've looked there, you know that the StackCommitSize is in the optional image header. Then all you have to do is to look for the corresponding structure in pefile, which usually bears a similar name, if not indeed the very same name. In this case:
pe = pefile.PE("C:\\Windows\\Notepad.exe")
print pe.OPTIONAL_HEADER.SizeOfStackCommit
Will give you what you want.
If you have trouble finding SizeOfStackCommit (after you've found it in the specification), just use your quick find on the source code. It's as easy to read as you can get, and I don't think you'll have any trouble finding the required structure.
Now, there probably aren't any API docs for pefile itself, but as you can see there's really no need for it, since it's just a nice Pythonic wrapper around the PE specification itself.

Search function with PyGTKsourceview

I'm writing a small html editor in python mostly for personal use and have integrated a gtksourceview2 object into my Python code. All the mayor functions seem to work more or less, but I'm having trouble getting a search function to work. Obvioiusly the GUI work is already done, but I can't figure out how to somehow buildin methods of the GTKsourceview.Buffer object (http://www.gnome.org/~gianmt/pygtksourceview2/class-gtksourcebuffer2.html) to actually search through the text in it.
Does anybody have a suggestion? I find the documentation not very verbose and can't really find a working example on the web.
Thanks in advance.
The reference for the C API can probably be helpful, including this chapter that I found "Searching in a GtkSourceBuffer".
As is the reference for the superclass gtk.TextBuffer
Here is the python doc, I couldn't find any up-to-date documentation so I stuffed it in my dropbox. Here is the link. What you want to look at is at is the gtk.iter_forward_search and gtk.iter_backward_search functions.

Unable to put Python code to Joomla

I have a Python code from Google app engine.
I need to implement it to Joomla.
How can you implement Python code to Joomla?
[edit after the 1st answer]
It is enough for me that I can put the code to a module position.
Joomla is PHP based whereas Google App Engine is Python based (and tends to use Django). Your best bet is to either find an alternative to the python code, find someone to translate it, or learn python and manually translate it.
There's no straight python to php conversion though.
EDIT: but if you really want to be adventurous, you can try the Python in PHP project which is still early phase and looks to be someone's side project: http://www.csh.rit.edu/~jon/projects/pip/

Categories

Resources