Re: [Jmol-users] getting the applet ID

2017-06-29 Thread Paul PILLOT
It’s probably not recommended, but this may do the trick Object.keys(Jmol._applets) ? Paul > Le 29-06-2017 à 14:58, Angel Herráez a écrit : > > Callbacks return as their first parameter the ID of the JSmol object (e.g. > "jmolApplet1") > > I wonder if this ID could be retrieved directly from

Re: [Jmol-users] Jmol Anniversaries?

2017-06-08 Thread Paul PILLOT
Hi, digging in sourceforge jmol-developers list, I found that Bob starts appearing as a recurring character in 2005 and secures the leading role in developping Jmol in mid 2006 after having exhausted Miguel with thousands of messages and commits. That was around Jmol v10.x It looks like we misse

Re: [Jmol-users] State of the world of WebGL "alternatives" to JSmol

2017-05-15 Thread Paul PILLOT
; And don't forget that Jmol has a WebGL option, but I don't claim that it is > any better than the others. It's not our forte, and it comes with a > significant overhead if all you want is a molecule to show. > > On Tue, Nov 3, 2015 at 1:57 PM, Paul PILLOT <mailto:pa

Re: [Jmol-users] how to parse JSON data within Jmol

2016-01-13 Thread Paul PILLOT
Le 13-01-2016 à 20:58, Paul PILLOT a écrit : Hi Eric, rcsb implements a REST API that you can query through Ajax to get many answers to a lot of question. Here is an example of code I designed to get informations from a PDB, such as the number and names of chains, the ligands, the related

Re: [Jmol-users] labels and zshade

2016-01-05 Thread Paul PILLOT
> I believe that is the design. Otherwise labels would be faded out and > probably hard to read anyway. > > On Mon, Jan 4, 2016 at 8:45 PM, Paul PILLOT <mailto:paulpil...@gmail.com>> wrote: > Dear Jmolers, > I don’t know if this is a recent change, but I’ve just realized

[Jmol-users] labels and zshade

2016-01-04 Thread Paul PILLOT
Dear Jmolers, I don’t know if this is a recent change, but I’ve just realized with Jsmol latest version that when zshade is on, labels of atoms located behind the mid plane are hidden. Is there a way to switch off this behaviour ? -Paul

Re: [Jmol-users] test please

2015-12-21 Thread Paul PILLOT
I’ve made quick tests in Safari console. array.slice() works Int32Array.slice doesn’t work, but ArrayBuffer.slice from the same typed array works. Paul > Le 21-12-2015 à 17:03, Robert Hanson a écrit : > > Thanks, that's what I needed to know. Looks like "array.slice" or at least > Int32Array.s

Re: [Jmol-users] Jmol scripting speed in JSmol/HTML5

2015-12-18 Thread Paul PILLOT
According to jsperf ( https://jsperf.com/string-concatenation/106 ) your syntax seems optimal. > Le 18-12-2015 à 15:30, Robert Hanson a écrit : > > I was thinking of alternatives to > > s = "a" + "b" + "c" > > -

Re: [Jmol-users] Jmol scripting speed in JSmol/HTML5

2015-12-18 Thread Paul PILLOT
Regarding strings, from what I experienced, getting a value from an array is a lot faster when the array is index based than when the array is associative (strings as indexes) Don’t know if that applies to your case... Paul > Le 18-12-2015 à 15:15, Robert Hanson a écrit : > > (the copy is the

Re: [Jmol-users] Jmol scripting speed in JSmol/HTML5

2015-12-16 Thread Paul PILLOT
Hi Rolf, my experience in this area is not JSmol related, but when I had to deal with big tables in javascript (for a multiple sequence alignment script, aligning 2 sequences of 5000 signs, requires at least 1 table of 5000 rows and 5000 columns), I noticed that : - using integers only tables is

Re: [Jmol-users] Fwd: Chrome: rotation unusable in JSmol

2015-12-10 Thread Paul PILLOT
Dear Eric, I’ve noticed the same problems, especially on older computers where each scene repaint can be perceived (white background flashing between each frame). One of my pages has other concerns related to javascript event listeners that make the whole experience even worse, by adding other c

Re: [Jmol-users] draw curved arrows

2015-11-16 Thread Paul PILLOT
Angel & Killian, "set hermitelevel 7" would be more appropriate when using povray for an output (antialias doesn’t change the geometries in the pov file) Paul > Le 16-11-2015 à 12:14, Angel Herráez a écrit : > > Hi Kilian > > I'm afraid the succession of spheres is Jmol's only way of producing

Re: [Jmol-users] set picking rotate bond broken ?

2015-11-12 Thread Paul PILLOT
Otis, what Bob means is that the command « set picking rotatebond » by itself is not broken. But it requires a key modifier + mouse drag combination to work. What I did on my webpage (thanks to the code I saw on yours) is to as a bind command as previously explained, so that no key modifier is r

Re: [Jmol-users] set picking rotate bond broken ?

2015-11-12 Thread Paul PILLOT
ond rotation, however. > > You probably know this, but it took me a while to understand this point even > though it’s clearly stated in the docs: the unbind command by itself returns > to Jmol default bindings. > > Otis > > -- > Otis Rothenberger > o...@chemagic.com &

Re: [Jmol-users] set picking rotate bond broken ?

2015-11-11 Thread Paul PILLOT
o bind to a specific mouse/key action? > > Otis > > Sent from my iPad > >> On Nov 11, 2015, at 8:06 PM, Paul PILLOT wrote: >> >> Hi, >> I am wondering if the « set picking rotatebond » command is broken ? I’ve >> tried bot with the application (v

[Jmol-users] set picking rotate bond broken ?

2015-11-11 Thread Paul PILLOT
Hi, I am wondering if the « set picking rotatebond » command is broken ? I’ve tried bot with the application (v 14.5.0_2015.11.06) and the HTML5 jsmol flavour Bonds are selected by picking, but I can’t rotate any group from either side of the bond. Am I missing something (key modifier for example

Re: [Jmol-users] Request for help: Outlines for atoms (and bonds)

2015-11-10 Thread Paul PILLOT
halos mays also be an option http://chemapps.stolaf.edu/jmol/docs/#halos -Paul > Le 10-11-2015 à 14:35, Angel Herráez a écrit : > > Oh yes! > > Go to the documentation page, > http://chemapps.stolaf.edu/jmol/docs/ > and search for "outline" > and you have > set celShading TRUE > set celShading

Re: [Jmol-users] State of the world of WebGL "alternatives" to JSmol

2015-11-03 Thread Paul PILLOT
Hi Angel, feel free to include this comparison in the wiki for further reference. I fully agree with all your comments. Persistency of web libraries is an important aspect. Some are funded projects (3Dmol.js relies on a grant), some are academic or backed by public institutions. Open source deve

[Jmol-users] State of the world of WebGL "alternatives" to JSmol

2015-11-02 Thread Paul PILLOT
Dear Jmolers, with the end of Java embedded plugins, we are now relying on JSmol for displaying molecular structures in web pages. If JSmol bio/geo/chemicabilities appear to me as limitless, I am encountering other limitations in respect with its performances : some web applications I made are p

Re: [Jmol-users] Showing CIF atoms at vertices of the cell

2015-10-15 Thread Paul PILLOT
try « packed » Paul > Le 15-10-2015 à 14:30, Xavier Prat-Resina a écrit : > > Hello, > > I'm trying to display the unit cell of ZnS from a CIF file by using: > > load ZnS_blende.cif {1 1 1} > > See here: http://chemdata.r.umn.edu/jmol/blende.html >

Re: [Jmol-users] JSmol/HTML5 - Forced usage

2015-10-01 Thread Paul PILLOT
Hi Rolf, the only way to override the info setting I know about is through the URL, by adding a flag : http://wiki.jmol.org/index.php/Jmol_JavaScript_Object#Setting_parameters_from_the_URL -Paul > Le 01-10-2015 à 10:37, Rolf Huehne a écrit : > > Hi all, > > is there a way to force JSmol to us

Re: [Jmol-users] PubChem Widget

2015-09-19 Thread Paul PILLOT
Hi Otis, this is a very impressive website, thank-you for the link. I’ve found the documentation for the Pubchem autocomplete widget : https://pubchem.ncbi.nlm.nih.gov/widget/docs/widget_autocomplete_help.html -Paul >

Re: [Jmol-users] try again

2015-09-16 Thread Paul PILLOT
You’re right : jsmol.htm indeed works like a charm ! Paul > Le 16-09-2015 à 09:16, J. Bays a écrit : > > Paul: I think that is intentional. Try jsmol.htm. It is the same test without > > J. Philip Bays > Emeritus Professor of Chemistry > Saint Mary's Collegethe images. > Norte Dame, IN > > S

Re: [Jmol-users] try again

2015-09-16 Thread Paul PILLOT
Everything works as expected (including localization alerts, filter2D, fractional coordinates shorthand notation) ! Thanks a lot Bob ! The only remaining glitch is in the test2.htm page that displays 2 still images in the forefront, having the active molecule displayed ind the background. It app

Re: [Jmol-users] last release before Jmol 14.4, hopefully!

2015-09-15 Thread Paul PILLOT
Here is the test : - I’ve downloaded jsmol (extracted from jmol-14.3.16_2015.09.14.zip) and copied the folder in a repository on my local Apache web server - from the browser (same results with Firefox, Safari and Chrome on Mac OS X 10.10.5), I run the test2.htm page - I get the 4 following alert

Re: [Jmol-users] last release before Jmol 14.4, hopefully!

2015-09-15 Thread Paul PILLOT
The language bug is still present (to test this, set up your browser language to another than english). -Paul > Le 14-09-2015 à 19:15, Robert Hanson a écrit : > > http://sourceforge.net/projects/jmol/files/Jmol-beta/Jmol%2014.3/Jmol%2014.3.16/Jmol-14.3.16_2015.09.14-binary.zip > >

Re: [Jmol-users] Jmol -- testing requested -- load filter "2D" not working

2015-09-14 Thread Paul PILLOT
ND "model";calculate hydrogens;minimize > > Otis > > > > -- > Otis Rothenberger > o...@chemagic.com <mailto:o...@chemagic.com> > http://chemagic.com > >> On Sep 13, 2015, at 11:26 PM, Paul PILLOT > <mailto:paulpil...@gmail.com>&g

[Jmol-users] Jmol -- testing requested -- load filter "2D" not working

2015-09-13 Thread Paul PILLOT
Hi Jmolers, I’ve tried with the 2 latest versions of Jmol (14.3.16, 14.2.15) and they both seem broken in respect with this command. Test case : copy and paste the following in Jmol console : load DATA "model" Ethane http://www.ichemlabs.com 2 1 0 0 0 0999 v2000 -0.4330

Re: [Jmol-users] get {} value without knowing key?

2015-08-30 Thread Paul PILLOT
print x[x.keys[3]] works, but there might exist a shorter way of doing this… -Paul > Le 30-08-2015 à 20:49, Eric Martz a écrit : > > load =1al4 > x = {altloc!=""}.altloc.all.pivot > > Now we have an associative array with key:value pairs: > > $ print x > { > "A" : 238 > "B" : 244 >

Re: [Jmol-users] Jmol -- testing requested

2015-08-25 Thread Paul PILLOT
Good catch Rolf ! Indeed, setting the browser language to english disables these error messages AND allows for context menu display. Paul > Le 25-08-2015 à 15:24, Rolf Huehne a écrit : > > Am 25.08.15 um 20:59 schrieb Philip Bays: >> Do these errors only show up on your web page, or do they sho

Re: [Jmol-users] Jmol -- testing requested

2015-08-25 Thread Paul PILLOT
Thanks Otis, I am also running pages from my local web server (localhost). I haven’t spotted the setting you are referring to. I have made further tests with firefox 40 and Chrome 44. The three browsers give the same consistent error messages (that don’t prevent jsmol from working). Paul > Le

Re: [Jmol-users] Jmol -- testing requested

2015-08-25 Thread Paul PILLOT
I have also encountered a problem with the shorthand / in fractional coordinates : draw pl1 plane {0 0 0/} {1 0 0/} {1/2 1 0/}; doesn’t work : Erreur du compilateur de script: spécification de modèle incorrecte draw pl1 plane {0 0 0/} {1 0 0/} {1/2 1 0/} whereas the following

Re: [Jmol-users] Jmol -- testing requested

2015-08-25 Thread Paul PILLOT
Hi Bob, the 2 error messages on startup are displayed on MacOS X.10.5, Safari 8.0.8 TypeError: undefined is not an object (evaluating 'J.api.Interface.getInterface') try/catch path: 0 function (b, d) args[0]=TypeError: undefined is not an object (evaluating 'J.api.Int... args[1]=function () {a

Re: [Jmol-users] Jmol speed

2014-03-02 Thread Paul Pillot
Maybe because you’re mentioning it, it indeed looks faster. I’ve also tried the webGL demo and I am sorry to report that it’s broken http://chemapps.stolaf.edu/jmol/jsmol/jsmolgl.htm Paul Le 2 mars 2014 à 00:02, Robert Hanson a écrit : > Is it just my wishful thinking, or does it seem like thi

Re: [Jmol-users] Question: What is the preferred way to save JSmol state and orientation?

2014-01-31 Thread Paul Pillot
Hi Chuck, have you tried « get property stateInfo » ? It should restore everything including orientation, zoom, etc… Paul Le 31 janv. 2014 à 16:32, Charles Harrison Shubert a écrit : > Hi, > > When my users open my app, I'd like for JSmol to be in the same state that > they left it in. My use

Re: [Jmol-users] help on conversion to Jmol 14/JSmol

2013-12-19 Thread Paul Pillot
It is but some platform report that java is enabled even when it is not… Paul Le 19 déc. 2013 à 11:24, Rolf Huehne a écrit : > Am 19.12.2013 17:17, schrieb Angel Herráez: >> Note there is no automatic switch. Just not possible to detect Java >> any more. >> > I just asked a few days ago if the

[Jmol-users] JSmol HTML5 code : remaining

2013-12-11 Thread Paul Pillot
Hi, trying to debug one of my webpages that doesn’t display the HTML5 Jmol (without throwing any error) but that does display the Java version, I’ve looked at the generated code (jmolApplet0._code) and saw this for the canvas2D version : "[x]NCI(small molecules)PubChem(small molecules)RCSB(macr

Re: [Jmol-users] Safari test -- fixes Boolean issue?

2013-12-03 Thread Paul Pillot
It works ! Mac OSX.9 Safari Version 7.0 (9537.71) (the display is a lot slower than what I get with firefox) Paul Le 3 déc. 2013 à 13:54, Robert Hanson a écrit : > and http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm > and http://chemapps.stolaf.edu/jmol/jsmol/simple2.htm > > > On Tue, Dec 3,

Re: [Jmol-users] local testing ready iteration 1,203,304,440

2013-11-29 Thread Paul Pillot
If you have access to your server’s feature, you can also enable gzip compression (on Apache it’s the mo_deflate program) for the associated plain text format. Then the server and the browser will do the job ! Paul Le 28 nov. 2013 à 13:12, Rolf Huehne a écrit : > On 11/28/2013 06:15 PM, Robert

Re: [Jmol-users] How to set up a molecular playground

2013-09-21 Thread Paul Pillot
Dear Angel, thank-you for your answer. I've sent a message to Craig Martin, but he might be busy at the moment. I am also wondering at the scripts and the way they succeed from one to another. Bob mentions in the source code that he uses a "simple Excel spreadsheet with 3 columns". I have found i

[Jmol-users] How to set up a molecular playground

2013-09-20 Thread Paul Pillot
Dear Jmolers, I would like to set up a Molecular playground. I have read extensively the molecularplayground.org website, but I could not find any information regarding the software used nor download it. After some googling, I've seen on Angel's dedicated webpage that MPControlHub and MPJmolApp

Re: [Jmol-users] Some Desirable Features!

2013-09-12 Thread Paul Pillot
I think it is possible through the javascript file api to get access to the content of a local file, and then send this content to Jsmol with the "load data" function. The drawback is that the file api is not well supported across all browsers, at least I've tried it successfully with firefox a

Re: [Jmol-users] JSmol too slow!

2013-09-10 Thread Paul Pillot
Try: Jmol.script(jmolAppletObjectNameComesHere,"load =PDBID") where jmolAppletObjectNameComesHere is the name you gave to your jmol object instance at creation Paul Le 10 sept. 2013 à 18:01, Amjad Farooq a écrit : > Bob, > > I checked out your new JSmol page with the protein loaded in at: >

Re: [Jmol-users] jsmol issue

2013-09-08 Thread Paul Pillot
Not exactly the subject, but when downloading a pdb file from RCSB website, the server checks if the browser accepts compressions and compress the pdb file on the file. You don't have to explicitly request a pdb.gz file to get the benefits from data compression. Paul Le 8 sept. 2013 à 08:25, Ge

Re: [Jmol-users] Searching for help

2013-04-25 Thread Paul Pillot
Hi Birgit, the following webpage shows these capabilities of Jmol regarding the computation of MEP : http://www.librairiedemolecules.education.fr/outils/scribmol/scrib.html (the last two buttons to the right display the partial charges or the MEP). You can design your own molecules in 3D just l

Re: [Jmol-users] language localization for JSmol

2013-03-21 Thread Paul Pillot
It works great now ! Bravo ! Paul Le 22 mars 2013 à 03:08, Robert Hanson a écrit : > OK, the Chrome business should be fixed. > http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm > > > > > > On Thu, Mar 21, 2013 at 1:07 PM, Robert Hanson wrote: > OK, the problem with Chrome is that we need t

Re: [Jmol-users] language localization for JSmol

2013-03-20 Thread Paul Pillot
2013-03-20 22:42:37 -0500 (Tue, 19 Mar > 2013) $ > > You could also enter this in the developer console: > > J.i18n.GT.getLanguage() > > or > > Jmol.featureDetection.getDefaultLanguage() > > > > Bob > > > > On Wed, Mar 20, 2013 at 3:07 PM,

Re: [Jmol-users] language localization for JSmol

2013-03-20 Thread Paul Pillot
The message is still in english for me Tested on OSX.6 Chrome Version 25.0.1364.172 in french after clearing the cache. -Paul Le 20 mars 2013 à 20:54, Robert Hanson a écrit : > I've updated that after Angel's helpful tests. It should be working now: > > http://chemapps.stolaf.edu/jmol/jsmol/jsmo

Re: [Jmol-users] About adjustment of jmol applet window size by mouse

2013-03-20 Thread Paul Pillot
plus set antialiasdisplay true -Paul Le 20 mars 2013 à 19:46, Angel Herráez a écrit : >> But the cartoons structure of my test applet looks not very smooth and has >> jagged edges. >> I am wondering if there are any other features to get smoother structure. > > It may depend on your particul

[Jmol-users] WebGL version broken ?

2013-03-11 Thread Paul Pillot
Apparently the WebGL version is broken on test2.htm Chrome's console says : Uncaught TypeError: Cannot read property '_is2D' of undefined (JSmol.js:206) Paul -- Symantec Endpoint Protection 12 positioned as A LEADER in The

Re: [Jmol-users] issues with converting to jsmol

2013-02-24 Thread Paul Pillot
works for me on OsX with Chrome : <> -Paul Le 20 févr. 2013 à 22:24, Jennifer L. Muzyka a écrit : > I'm working on converting pages from Jmol to JSmol and am seeing a strange > and mysterious phenomenon, with the structures showing up in a different part > of the page than what I expect based o

Re: [Jmol-users] Transfer show info from JSO to Javascript?

2013-02-22 Thread Paul Pillot
Jmol.evaluate(myJmol1,"script(show orientation)") will do ! -Paul Le 22 févr. 2013 à 20:27, Dan Kirshner a écrit : > Sorry, I'm just not getting how to do this. > > I'd like to get the quaternion info for the current model rotation and > manipulate it in Javascript. > > I'm using the Jmol Java

Re: [Jmol-users] Problem with switching to JSMol

2013-02-22 Thread Paul Pillot
Order matters in your js files links I use the following declaration: That is with the minified version and without webGL. Paul Le 22 févr. 2013 à 12:43, Simone Sturniolo a écrit : > Hi, > > I'm trying to switch my JMol applet web page to JSMol - mainly to avoid all > the problems related wi

Re: [Jmol-users] Signed applet, LoadInline and ajax/db

2013-02-07 Thread Paul Pillot
You can prevent eval() in your code with : document[applet_name].Loadinline(sdf) Paul Le 7 févr. 2013 à 17:42, Otis Rothenberger a écrit : > Quentin, > > I'm not fully following your use of pipes, but I think one error is the > following: > > sdf=sdf.replace(/\|/g,"\n|"); > > I think you nee

Re: [Jmol-users] JSmol "lite"

2013-01-30 Thread Paul Pillot
Minimified and Gzipped, Jsmol is a 700-800kB download. I am not sure that reducing the download is the way to go in order to improve user experience on mobile phones. I've seen JSmol once on an Iphone and it was really slow. Too slow to call it interactive. Maybe targeting at the graphic performa

Re: [Jmol-users] how do you align center?

2013-01-28 Thread Paul Pillot
Have you tried the css "margin: 0 auto;" ? Paul Le 28 janv. 2013 à 19:52, Jonathan Gough a écrit : > I can embed a jsmol, using the script nomenclature, but I can't seem to align > the embed to the center. I have tried using allign center and div classes, > but nothing. > > any suggestions? >

Re: [Jmol-users] bug with Jmol.evaluate and script('show history')

2013-01-27 Thread Paul Pillot
It's working ! Thanks Bob ! Le 27 janv. 2013 à 21:57, Robert Hanson a écrit : > I see it. The "show history" command is supposed to clear out the "show > history" command itself, but only if it is not a top-level command (from the > console), but it does more than that if it is part of scrip

[Jmol-users] bug with Jmol.evaluate and script('show history')

2013-01-27 Thread Paul Pillot
, 2013 at 4:24 PM, Robert Hanson wrote: > I should be able to track that down... > > > On Sun, Jan 27, 2013 at 4:00 PM, Paul Pillot > wrote: > Thanks Bob ! > I've made more tests using the signed applet on the test2.htm page and found > the same problem : script

Re: [Jmol-users] bug with signed applet, show history and Jmol.scriptWaitAsArray()

2013-01-27 Thread Paul Pillot
the script is > completed. > > > > > > On Sun, Jan 27, 2013 at 4:24 PM, Robert Hanson wrote: > I should be able to track that down... > > > On Sun, Jan 27, 2013 at 4:00 PM, Paul Pillot > wrote: > Thanks Bob ! > I've made more tests using the signed app

Re: [Jmol-users] bug with signed applet, show history and Jmol.scriptWaitAsArray()

2013-01-27 Thread Paul Pillot
Thanks Bob ! I've made more tests using the signed applet on the test2.htm page and found the same problem : script sent via Jmol.scriptWait AsArray(jmolApplet0,...) are not added to the history, whereas scripts sent through Jmol.script(jmolApplet0,...) are. On the test page simple.html (that us

[Jmol-users] bug with signed applet, show history and Jmol.scriptWaitAsArray()

2013-01-27 Thread Paul Pillot
I am converting a former Jmol.js web page to the JOO script library and after some testings I've narrowed down the following bug : - when the signed applet is used and commands are sent with Jmol.scriptWaitAsArray(), the aforementioned commands are not displayed by the "show history" command - w

Re: [Jmol-users] Fwd: Jmol iPad app

2013-01-25 Thread Paul Pillot
I've been asked some time ago, about a facility aimed at students for combining a web textbook with the ability to interact with 3D models. The textbook could be something close to wikipedia, that is articles with links making it easy to jump to a glossary for example, or to scientific publicatio

[Jmol-users] jmol & shutter glasses

2013-01-24 Thread Paul Pillot
Dear Jmolers, I've been asked a question from a teacher who has access to a DLP3D video projector and corresponding shutter glasses. Is there a way to display stereo in Jmol with theses devices ? I think such discussions have already come their way on that list but I can't find them... Thanks Pau

Re: [Jmol-users] JSmol version issue

2013-01-16 Thread Paul Pillot
Otis, web inspector on safari have a panel to show this activity (network) : which files are indeed loaded, which others are loaded from cache you'll have a very informative timeline as well -Paul Le 16 janv. 2013 à 16:31, Otis Rothenberger a écrit : > Phil, > > Still like clockwork - 40 second

[Jmol-users] calculate partialcharge broken ?

2013-01-04 Thread Paul Pillot
Apparently the command "calculate partialcharge" doesn't work in v13.1.11 and causes the applet to stop working To reproduce the bug : http://chemapps.stolaf.edu/jmol/docs/examples-12/simple.htm Click Load MOL by NAME Load the default model Type in the command slot : "calculate partialcharge" th

Re: [Jmol-users] gzip pdb file in JSmol

2012-12-12 Thread Paul Pillot
Hi, do you have a pointer to this file, so that we can have a look at the headers ? Does Safari on your Mac load this gzipped file well ? Paul Le 12 déc. 2012 à 19:02, Wayne Decatur a écrit : > Hi, > I have JSmol opening a gzipped pdb file served from a web server on a Mac. > All is well there.

Re: [Jmol-users] testing needed for xml loading

2012-12-10 Thread Paul Pillot
23.0.1271.95. > > Otis > > > -- > Otis Rothenberger > o...@chemagic.com > http://chemagic.com > > > > > On Dec 10, 2012, at 7:58 AM, Paul Pillot wrote: > >> >> >> >> On Chrome MacOSX.6 >> no error with vasp.xml and water.xo

[Jmol-users] testing needed for xml loading

2012-12-10 Thread Paul Pillot
On Chrome MacOSX.6 no error with vasp.xml and water.xodydata. estron.cml reports the following error : FileManager.getAtomSetCollectionFromFile(estron.cml) starting HoverWatcher_7 FileManager opening http://chemapps.stolaf.edu/jmol/jsmol/estron.cml The Resolver thinks XmlCml call loadScript org

Re: [Jmol-users] Ketcher

2012-11-30 Thread Paul Pillot
prototypejs defines a global $() object as well as jquery. ketcher relies on prototypejs and jsmol on jquery a conflict probably lies there -Paul Le 30 nov. 2012 à 16:30, Robert Hanson a écrit : > It would be interesting to know more about those code collisions. We don't > want to have to us

[Jmol-users] JSmol -- Are we done? Gestures

2012-11-26 Thread Paul Pillot
So many improvements, it's hard to keep pace. I've just (re)tried with an iPad and found out that gestures now work : pinch to zoom, two fingers for a translation. There is even a support for picking measurements through double tap. This is fabulous ! Measurements are tricky : it's difficult to

Re: [Jmol-users] minimization using GPU

2012-11-25 Thread Paul Pillot
Apparently WebCL is the technology involved here, but it is not supported yet natively by any browser. Extensions exist for firefox and webkit. -Paul Le 25 nov. 2012 à 18:05, Dan Damelin a écrit : > Hi Bob, > > At the moment we don't have any free cycles in our development group for > somethin

Re: [Jmol-users] JSmol -- Are we done?

2012-11-24 Thread Paul Pillot
The zip file available is apparently an older version (from the 11/13). There might be some caching problem there, preventing from downloading the latest version ? I don't know if it's time to discuss this yet, but I have some comments about JSmol: - speed performance: a colleague of mine repor

[Jmol-users] JSmol - three months in... and compression

2012-11-21 Thread Paul Pillot
I've tried minifying JSmol (yes, again), with the new version. After gziping by the server, the results are : - 720kB with WebGL - 666kB without WebGL (including 4kB just for the HTML page) (I don't have the extra download of 40+ files, as I had previously so the minifying process works as expect

Re: [Jmol-users] two JSmols in the page

2012-11-20 Thread Paul Pillot
Hi Angel, have you tried plain test2.htm first ? I encountered a problem with the zip distribution at some point yesterday and these error messages look familiar. Paul Le 20 nov. 2012 à 21:05, Angel Herráez a écrit : > Dear all, > > I'm trying a page with two Jmols using Jmol-JSO. My code is li

Re: [Jmol-users] JSmol compression techniques

2012-11-19 Thread Paul Pillot
s > pulled in and processed by the browser. > > Cheers, Mike > > On Nov 19, 2012, at 3:51 PM, Robert Hanson wrote: > >> >> >> >> On Mon, Nov 19, 2012 at 3:41 PM, Paul Pillot >> wrote: >> So... by combining all the JSmol.js file

[Jmol-users] JSmol compression techniques

2012-11-19 Thread Paul Pillot
-compression-in-apache-server-to-speed-up-website/ mol and pdb files also benefit from this setting Paul Le 19 nov. 2012 à 20:52, Paul Pillot a écrit : > It works and caffeine is loaded after a 871kB download ! core.js is sent as a > 564kB file. > Surprisingly 43 js files are loaded afte

Re: [Jmol-users] JSmol gz compression

2012-11-19 Thread Paul Pillot
It works and caffeine is loaded after a 871kB download ! core.js is sent as a 564kB file. Surprisingly 43 js files are loaded after core.js (shaperenderer.js, ballrenderer.js, deflate.js, gzipheaders.js to name a few). Those files are not loaded on the test page delivered by the chemapps... serv

[Jmol-users] JSmol gz compression

2012-11-19 Thread Paul Pillot
I've enabled Apache mod-deflate on my local machine. It compresses all html/js/css files. I have also minimified, thanks to uglifyjs2, core.z.js (down to a 2.6MB file) Loading the test2.htm page on my local server resulted in a 2.9MB transfer, whereas the same page results in a 4.09MB transfer.

Re: [Jmol-users] My trial wit JSmol

2012-11-19 Thread Paul Pillot
Le 16 nov. 2012 à 18:04, Robert Hanson a écrit : > > Ultimately, I think we will still end up with the full load of 600 or so .js > files. I know that sounds ridiculous, but really what it means is that there > are so many options in Jmol, that defining or implementing all of them at > on

Re: [Jmol-users] JSmol advancements -- threads

2012-11-18 Thread Paul Pillot
Looks great ! Just for curiosity's sake, aren't web workers good alternative to threads in javascript ? Le 19 nov. 2012 à 03:17, Robert Hanson a écrit : > OK, we have basically everything we had in Jmol in terms of "threads" -- > tasks that run independently. It's a fake -- in a browser you get

Re: [Jmol-users] JSmol tweaks

2012-11-18 Thread Paul Pillot
Apparently, one can set up the server to choose which version of the file (gzip or plain) to deliver accordingly with the headers sent by the client's browser. Apache mod-gzip + caching seems to achieve similar results. Paul Le 19 nov. 2012 à 01:12, Evans, Michael James a écrit : > Angel, > I'

Re: [Jmol-users] JSmol tweaks

2012-11-18 Thread Paul Pillot
urther interest to know that this 1.6MB file can be gziped to a 500kB file. So, minimification + gzip compression could reduce the load by 7 (3.4MB>0.5MB). Paul Le 18 nov. 2012 à 23:50, Paul Pillot a écrit : >> For information, >> I've just tried to minimify the js

Re: [Jmol-users] JSmol tweaks

2012-11-18 Thread Paul Pillot
My mistake : variables names are changed to reduced ones (one letter), but this is not the case for objects names (such as Long, Clazz,... etc...) nor for their methods. Paul Le 18 nov. 2012 à 23:28, Paul Pillot a écrit : > For information, > I've just tried to minimify the jsmocor

[Jmol-users] JSmol and Jquery mobile

2012-11-10 Thread Paul Pillot
This might be of interest to some of this list users, I've tried to make a web app aimed at tablets or other mobile platforms using jsmol. I tried the Jquery mobile framework to achieve this, but I had a very strange result regarding the Jmol canvas : rotation was unavailable (click and drag res

Re: [Jmol-users] Give this a try...

2012-10-23 Thread Paul Pillot
This is fabulous ! I've just tried it on my laptop and on an Ipad, it worked great on both ! This unveils a new continent of possibilities, thank-you Bob ! Loading takes a bit of time for the first run : my browser pulled 313 requests. I suspect it could also be speed up by compressing the js fil

Re: [Jmol-users] Creating multiple instances of JmolViewer

2012-09-28 Thread Paul Pillot
There is just one Jmol object, but you can have several applets. Maybe what you describe is due to trying no create several Jmol objects ? Paul Le 28 sept. 2012 à 16:52, Andreas Truszkowski a écrit : > Hi Bob, > > it seams that the first instance is updated by the executed scripts of the > sec

Re: [Jmol-users] write command to server

2012-09-21 Thread Paul Pillot
> Alex beat me to it. Right. Sorry, it's not the WRITE command. It's this: > > Var x = load("http://xxx.xxx.xxx/servlet/?POST?_PNGJBIN_";) > > You will get a return from your server, but in the process Jmol will send > the PNGJ file in the POST. I can send you the PHP side of this if you wan

Re: [Jmol-users] Resolver Test Request

2012-06-28 Thread Paul Pillot
ad > your file via AJAX from my server. Did I understand Bob correctly? Is it > theoretically possible to hit Resolver directly via the JmolScript? > > Otis > > -- > Otis Rothenberger > o...@chemagic.com > http://chemagic.com > > > > > On Jun 28, 20

Re: [Jmol-users] Resolver Test Request

2012-06-28 Thread Paul Pillot
Tried it twice today (morning and afternoon): - first link has always worked - second link never worked on the first attempt, only on the second try -- Live Security Virtual Conference Exclusive live event will cover all t

Re: [Jmol-users] Notify user if signed applet request is declined

2012-06-28 Thread Paul Pillot
Try jmolScriptWait() instead Paul Le 28 juin 2012 à 09:40, Martin Hediger a écrit : > I tried "show _signedApplet" in the Jmol console, which nicely prints > "true". > However, "jmolScript('show _signedApplet')" on the console of the > browser returns "undefined". > > > > > > > > > On

Re: [Jmol-users] Notify user if signed applet request is declined

2012-06-27 Thread Paul Pillot
Sorry, this doesn't work: the signed applet gives back the same name as the unsigned... Last thing I can think of is a try{} catch {} where you could try to load a dummy file from a different domain... Paul Le 27 juin 2012 à 14:47, Paul Pillot a écrit : > With getproperty appletInfo,

Re: [Jmol-users] Notify user if signed applet request is declined

2012-06-27 Thread Paul Pillot
With getproperty appletInfo, you can access the name of the applet : appletInfo.htmlName="jmolApplet0" From there, you can guess if it's signed or not... (haven't tried it but I suspect it should work) Paul Le 27 juin 2012 à 14:25, Martin Hediger a écrit : > Just to be clear, I'm not reporting a

Re: [Jmol-users] Question Jmol / CGI response

2012-06-21 Thread Paul Pillot
That's probably not related to the issue you reported, but this part of the js might have performance issues : function build_interface(resp) { /* Handling of Q_tot coming from bio_rho.cgi. Json does not work right now, probably problem on

Re: [Jmol-users] renaming Object Jmol files

2012-06-14 Thread Paul Pillot
js ... > > and they will all be together in my directories. > > Bob > > > > > On Thu, Jun 14, 2012 at 4:36 PM, Michael Evans wrote: > A good idea from the standpoint of loading speed. > > Cheers, Mike > > --- > Mike Evans > Organic Chemistr

Re: [Jmol-users] renaming Object Jmol files

2012-06-14 Thread Paul Pillot
Good idea ! Shall we bundle them in a single mimized js file ? Paul Le 12 juin 2012 à 20:49, Robert Hanson a écrit : > I think I need to rename these so that they appear together and also are easy > to copy from one place to another: > > JmolCore.js --> Jmol_Core.js > JmolApplet.js-->

Re: [Jmol-users] Jmol/HTML5/WebGL

2012-06-11 Thread Paul Pillot
Le 11 juin 2012 à 21:10, Angel Herráez a écrit : > Testing in IE9 (64-bit, Win7): > > The IE console reports a javascript error at line 31, > jmol = Jmol.getApplet( "jmol", Info) that's because is should be : jmol = Jmol.getApplet( jmol, Info) (without quotes) --

Re: [Jmol-users] Jmol/HTML5/WebGL

2012-06-11 Thread Paul Pillot
Thanks Angel ! (I don't know why messages didn't go to the list yesterday) I've tried it at my school today with their IE8 and discovered exactly the same behavior as you described. But I've tried it with other images such as the ones on this page http://librairiedemolecules.education.fr/molecule

Re: [Jmol-users] Jmol/HTML5/WebGL

2012-06-11 Thread Paul Pillot
Might be relevant to this discussion, I'm setting up a script to replace a Jmol png image (with state included) by an applet when user hovers the image and click on a link then displayed. The first attempt can be seen there : http://librairiedemolecules.education.fr/molecule.php?idmol=336 Try hove

Re: [Jmol-users] Eval Function

2012-05-17 Thread Paul Pillot
Too quick ! The following is even better for your purpose : script INLINE @{Jmol math expression} Runs the script command result of the Jmol math expression rather than from a file. The math expression may be a simple single variable name or a more complex expression. For example, var bgColor="re

Re: [Jmol-users] Eval Function

2012-05-17 Thread Paul Pillot
Have you tried this approach : script APPLET appletName @{Jmol math expression} (from the documentation) Paul Le 17 mai 2012 à 18:46, Otis Rothenberger a écrit : > Bob, > > Is there a way to execute JmolScript that is in a string variable - i.e. an > eval function approach? > > Otis > > -- >

  1   2   3   4   >