confused about the annotation on pdb website - bioinformatics

I don't understand the C [auth B] meaning in the Chain columns. Also, i am wondering why the name of molecule is so long in the second figure. Thanks for advance

Related

Binary Packer Collection

does anybody knows where I can get a collection of PE Packers or Protectors (like: upx, ASProtect, Themida, etc)?
well I already find a collection from "tuts4you.com" for Unpackers: http://mirror7.meh.or.id/Reverse%20Engineering/Best_Reverse_Collection/Unpacking%20Tutorials/
I wonder if anybody knows where can I find a collection for packers (not Unpackers)?
well, I finally found some collection for binary compressors and protectors.
here in Aaron' Homepage you can find a collection for Compressors, Protectors, File-Analyzers, Unpackers, Debuggers, Disassemblers, Hex-Editors, Patchers and son on.

What is the correct way to obtain EntityManager using JNDI?

Am a novice in ejb trying to learn the topic..and came across this question in one of certification questions..
The options are
EntityManager em=(EntityManager)context.lookup("Persistance")
EntityManager em=(EntityManager)context.lookup()
EntityManager em=context.lookup()
EntityManager em=context.lookup("persistance")
Please explain the reason of the answer too.Would like to learn.
In your new list all options are still wrong.
1 and 2 are wrong, because dot before opening bracket is incorrect syntax.
3 and 4 are wrong, because cast of the result is missing.
2 and 3 are wrong, because argument to lookup method is missing.
First one is still closest match. Removing dot before opening bracket and assuming PersistenceManager for name "Persistence" exists in JNDI, it would work.
As and addition second ant third are incorrect because they miss argument for lookup. Fourth one is incorrect, because it does not cast result of lookup. So, first one is less bad than three other candidates.
If needed resources are available, I suggest to learn more with actually compiling and running code. And get good book about subject or check more for example from tutorial: http://docs.oracle.com/javaee/6/tutorial/doc/

Generating table of contents

I posted this one a couple of months ago on the Mathematica newsgroup, but got no usable response. I thought I'd give SO a try.
The question was: I don't seem to be able to find the method to generate the table of contents of a
Mathematica document I'm working on. Anyone knows this feauture's
hideout?
David Annetts pointed me in the direction of the AuthorTools, an old v5.1
utility package that's still hidden in Mathematica. However, it
doesn't work on my document (v7). Any clue?
Edit
The TOC should contain correct section numbers (if present in the stylesheet) and list page numbers (this requires taking page size settings into account).
Perhaps looking at the code of Yuri Kandrashkin's package, Sidebar, will be useful?

How to detect if an element exists in Watir

I'm relatively new to Watir but can find no good documentation (examples) regarding how to check if an element exists. There are the API specs, of course, but these make precious little sense to me if I don't find an example.
I've tried both combinations but nothing seems to work...
if browser.image (:src "/media/images/icons/reviewertools/editreview.jpg").exists
then...
if browser.image (:src "/media/images/icons/reviewertools/editreview.jpg").exists?
then...
If anyone has a concrete suggestion as per how to implement this, please help! Thanks!
It seems you are missing a comma between parameters.
Should be
if browser.image(:src, "/media/images/icons/reviewertools/editreview.jpg").exists?
Also you can find this page useful in future to know what attributes are supported.
The code you posted should work just fine.
Edit: Oops, wrong. As Katmoon pointed out, there is a missing comma.
browser.image(:src "/media/images/icons/reviewertools/editreview.jpg").exists?
One problem you may get caught up in is if the browser variable you specified is actually an element that doesn't exist.
e.g.
b = Watir::IE.start(ipAddress)
b.frame(:name, "doesntExist).image(:src "/media/images/icons/reviewertools/editreview.jpg").exists?
The above code will throw a Watir::UnknownFrameException. You can get around this by first verifying the frame exists or by surrounding the code in a begin/rescue block.
Seems like you are using it correctly. Here is an old RDoc of Watir.
Does it not work because Watir cannot find it? Hard to tell because there is no source or link to the page that is being tested. I think that I only use image.exists?. In general, errors that come from when the image exists but is not found are:
The how is not compatible with the element type. There is a cheatsheet to help you see which object types can be found with different attributes here.
The what is not correct. You may have to play with that a little bit. Consider trying a regex string to match it such as browser.image(:src, /editreview.jpg/). As a last resort, maybe use element_by_xpath, but there are maintenance costs with that.
The location is not correct. Maybe the element is in a frame or something like that. browser.frame("detail").image(:src, /editreview.jpg/).
Try those, but please let me know what worked. One more thing, what are you checking for? If it's part of the test criteria, you can handle it that way. If you need to click on it, then forget the .exists? and just click on it. Ruby will let you know if it's not there. If you need it to be grace, learn about begin/rescue.
Good luck,
Dave

prolog code explanation

Hello could someone help me udnerstand how this code works ?
go(Start,Dest,Route):-
go0(Start,Dest,[],R),
rev(R,Route).
go0(X,X,[X|T]).
go0(Place,Y,T,R):-
legalNode(Place,T,Next).
go0(Next,Y,[Place|T],R)
legalNode(X,Trail,Y):-
(a(X,Y);a(Y,X)),
legal(Y,Trail).
I'm assuming this is taken from the "Programming in Prolog" book? It is actually pretty well explained in there.
What the code does is given a start location and a destination give you a route if it exists. This will be put in Route.
rev, as defined in the book, reverses a results stored in R and places it in Route, basically because the result is backwards.
The remainder of the code looks for a possible route from Start to Dest by checking if there is a direct link (that's what the a(X,Y) define) between two locations or if you can get there via one of the locations there is a direct link with.
With that and the book in hand, you should be able to figure out the code.

Resources