Re: Getting 32-bit Livecode running on 64-bit Linux

2016-07-14 Thread José Antonio Rocha
2016-07-14 7:17 GMT-03:00 G.W.Gaich :

[0714/121416:ERROR:webgraphicscontext3d_command_buffer_impl.cc(227)] Failed
> to initialize command buffer.
>

​It seems some Chromium video related problem. My video card is Intel
Haswell Mobile.



-- 
[image: Meira]
--
nome: "José Antonio Meira da Rocha
"
email: joseantonioro...@gmail.com
veículo: [ http://meiradarocha.jor.br ]
fones: [ 55-8448-3866  55-3744-2994 ] 
--
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Getting 32-bit Livecode running on 64-bit Linux

2016-07-12 Thread José Antonio Rocha
2016-07-12 13:53 GMT-03:00 Richard Gaskin :

>
> Is there a bug report for this?  I don't have Xubuntu set up here, but I
> do run Ubuntu and Lubuntu so maybe I can help pin down what's happening
> with that 64-bit version.


​I have this problem with U​buntu 16.04 in portuguese, too.
At least, with LC 32-bits the dictionary open in Chrome, not blank.



-- 

[image: Meira]nome: "José Antonio Meira da Rocha
"
email: joseantonioro...@gmail.com
veículo: [ http://meiradarocha.jor.br ]
fones: [ 55-8448-3866  55-3744-2994 ] 
--
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [ANN] Release 8.0.1 RC-1

2016-05-13 Thread José Antonio Rocha
2016-05-13 14:43 GMT-03:00 RM :

> I am looking forwards to some sort of in-built Dictionary in the Linux
> 64-bit build


​The 32-bits LC on 64-bits Linux call the default browser, instead stuck
like 64-bits LC. With Chromium, the dictionary load fast and perfect.​ With
Firefox, load erraticaly.



-- 
​T​

[image: Meira]
--
nome: "José Antonio Meira da Rocha
"
email: joseantonioro...@gmail.com
veículo: [ http://meiradarocha.jor.br ]
fones: [ 55-8448-3866  55-3744-2994 ] 
--
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: XML-RPC

2015-11-16 Thread José Antonio Rocha
2015-11-15 15:48 GMT-02:00 Peter Haworth :

> This looks like the server side of things and I'm
> looking for examples of using the revXMLRPC@ calls from a Livecode desktop
> app.
>

​Here is my getPost WordPress function:

---
-- GET POST
---
/*
-- Fields to return (optionals):
string post_id, string post_title, datetime post_date, datetime
post_date_gmt,
datetime post_modified, datetime post_modified_gmt, string post_status,
string post_type, string post_format, string post_name, string post_author,
string post_password, string post_excerpt, string post_content, string
post_parent
string post_mime_type, string link, string guid, int menu_order, string
comment_status,
string ping_status, boolean sticky, struct post_thumbnail [lack support,
yet],
array terms (string term_id, string name, string slug, string term_group,
string term_taxonomy_id, string taxonomy, string description,
string parent, int count ), array custom_fields (id, key, value),
array enclosure (url, length, type)
*/
function wp.getPost pPostID pFieldsA
   global gDebug
   global gServer, gPort, gXmlrpcPath, gProto, gBlogID
   local tID, res, lPostContentA,tMembersNum, tMemberPath, tName
   local tCustomPath, tCustomNum, tCustomStructPath, tTemp, tCustomName,
tCustomValue
   local tTermsPath, tTermsNum, tTermMembersPath, tTermMembersNum, tTermName
   local tTermStructChildPath, tTermValue, tEnclosurePath, tEnclosureName
   local tEnclosureChildPath, tEnclosureValue, tValuePath, tValue

   put revXMLRPC_CreateRequest(gServer, gPort, gXmlrpcPath, gProto) into tID
   revXMLRPC_SetMethod tID, "wp.getPost"
   revXMLRPC_AddParam tID, "int", gBlogID -- this don't select the blog but
is neccessary
   XMLRPC_AddUser tID
   -- Set the post to retrieve
   revXMLRPC_AddParam tID, "int", pPostID
   -- Set optional fields to retrieve
   revXMLRPC_AddParam tID, "array", pFieldsA
   XMLRPC_SetAuthorization tID
   -- Retrieve
   put revXMLRPC_Execute(tID) into res
   //put revXMLText(res) into gDebug debugging
   revDeleteXMLTree tID
   Err res
   -- Build an array with posts data
   -- This path refers to structure of returned XML
   put revXMLnumberOfChildren(res,
"/methodResponse/params/param/value/struct/","member", 1) into tMembersNum
   repeat with x = 1 to tMembersNum
  put format("/methodResponse/params/param/value/struct/member[%s]/",
x) into tMemberPath
  put revXMLNodeContents(res, (tMemberPath & "name")) into tName
  if tName is "custom_fields" then
 put
format("/methodResponse/params/param/value/struct/member[%s]/value/array/data/",x)
into tCustomPath
 put revxmlnumberofchildren(res, tCustomPath,"value", 1) into
tCustomNum
 repeat with y = 1 to tCustomNum
put
format("/methodResponse/params/param/value/struct/member[%s]/value/array/data/value[%s]/struct/",
x,y) into tCustomStructPath
-- Get the fields: "id", "key", "value"
repeat with z = 1 to 3
   put
format("/methodResponse/params/param/value/struct/member[%s]/value/array/data/value[%s]/struct/member[%s]/",
x,y,z) into tTemp
   put revXMLNodeContents(res, (tTemp & "name")) into
tCustomName
   put revXMLNodeContents(res, (tTemp & "value/string")) into
tCustomValue
   put textDecode(tCustomValue,"UTF-8") into
lPostContentA[tName][y][tCustomName]
end repeat
 end repeat
 next repeat
  end if
  if tName is "terms" then
 put
format("/methodResponse/params/param/value/struct/member[%s]/value/array/data/",x)
into tTermsPath
 put revxmlnumberofchildren(res, tTermsPath,"value", 1) into
tTermsNum
 repeat with y = 1 to tTermsNum
put
format("/methodResponse/params/param/value/struct/member[%s]/value/array/data/value[%s]/struct/",
x,y) into tTermMembersPath
put revxmlnumberofchildren(res, tTermMembersPath,"value", 1)
into tTermMembersNum
repeat with z = 1 to tTermMembersNum
   put
format("/methodResponse/params/param/value/struct/member[%s]/value/array/data/value[%s]/struct/member[%s]/",
x,y,z) into tTemp
   put revXMLNodeContents(res, (tTemp & "name")) into tTermName
   put revXMLFirstChild(res,(tTemp & "value")) into
tTermStructChildPath
   put revXMLNodeContents(res, tTermStructChildPath) into
tTermValue
   put textDecode(tTermValue,"UTF-8") into
lPostContentA[tName][y][tTermName]
end repeat
 end repeat
 next repeat
  end if
  -- WP return just one enclosure. It apears in custom fields, too.
  if tName is "enclosure" then
 put
format("/methodResponse/params/param/value/struct/member[%s]/value/struct/",
x) into tEnclosurePath
 -- Get the fields: "url", "length", "type"
 repeat with y = 1 to 3
put

Re: SHA256

2014-12-15 Thread José Antonio Rocha
Hi!
There is this, but I could not make it work:
http://masmit.net/libhash-hmac.html

2014-12-15 17:25 GMT-02:00 Richard Gaskin ambassa...@fourthworld.com:

 LiveCode currently provides only two hashes, MD5 and SHA1.  I have a
 project in which I need SHA256.  Anyone here have a function for that?

 --
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.com

 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode



-- 
[image: Meira]
--
nome: José Antonio Meira da Rocha
https://plus.google.com/+JoséAntonioMeiradaRocha/
email: joseantonioro...@gmail.com
veículo: [ http://meiradarocha.jor.br ]
fones: [ 55-8448-3866  55-3744-2994 ]
--
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: SHA256

2014-12-15 Thread José Antonio Rocha
2014-12-15 18:00 GMT-02:00 Michael Doub miked...@gmail.com:

 I have not used these functions personally but I see in the readme that
 multiple steps are required for sha-256.

 So, to get the sha-256 digest of a string:
 put sha256.hex(the cat sat on the mat) into tDigest
 put sha256.b64(someVariable) into tDigest

 and of a file
 put sha256.bin(/Users/yourusername/Desktop/somefile.txt, true) into
 tDigest


​Thank you, I will try this.​



-- 
[image: Meira]
--
nome: José Antonio Meira da Rocha
https://plus.google.com/+JoséAntonioMeiradaRocha/
email: joseantonioro...@gmail.com
veículo: [ http://meiradarocha.jor.br ]
fones: [ 55-8448-3866  55-3744-2994 ]
--
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode