<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can JMP compute the MD5 value for each row of text in the specified column? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/750037#M93061</link>
    <description>&lt;P&gt;Can this python code be changed from multiple lines to one line?&lt;BR /&gt;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;import jmp ;import hashlib

dt = jmp.open(jmp.SAMPLE_DATA + 'Big Class.jmp');dt.new_column('cksum', jmp.DataType.Character)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2024 03:59:04 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2024-04-26T03:59:04Z</dc:date>
    <item>
      <title>Can JMP compute the MD5 value for each row of text in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/746734#M92572</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;txt
zzJXKxOYK2w2I000163798053859
eaimGDAVK2w2I000163798053859
wOSVvvNQK2w2I000163798053859
WXHmhViTK2w2I000163798053859&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-04-11_12-18-25.png" style="width: 692px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63253i77DB88882149B194/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-04-11_12-18-25.png" alt="2024-04-11_12-18-25.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 04:21:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/746734#M92572</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-04-11T04:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP compute the MD5 value for each row of text in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/746829#M92573</link>
      <description>&lt;P&gt;Scripting Index does give fairly good example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
Hex(/* make it printable */ Blob MD5(/* get the hash */
		Load Text File(/* a file from the samples */
			"$SAMPLE_IMPORT_DATA/animals.txt",
			BLOB/* the result is a BLOB, not a string */
		)
	)
) == "763D3C9F5F3E92951B3A3DC965084DAC" /* benchmark hash value */ /* the result is 1 if the benchmark matches */
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;with slight modification&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Hex(Blob MD5(Char To Blob("mytext")));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Apr 2024 06:37:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/746829#M92573</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-11T06:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP compute the MD5 value for each row of text in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/750010#M93055</link>
      <description>&lt;P&gt;Using the Python Integration in JMP 18. &amp;nbsp;The code here opens 'Big Class' adds a 'cksum' column then does the md5 checksum on the 'name' column, filling in the data table rows as you go along.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import jmp
import hashlib

dt = jmp.open(jmp.SAMPLE_DATA + 'Big Class.jmp')
dt.new_column('cksum', jmp.DataType.Character)

for x in range( dt.nrows ):
    dt['cksum'][x] = hashlib.md5( dt['name'][x].encode('utf-8' ) ).hexdigest()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Big Class-md5.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63733i1D20CC219767B50B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Big Class-md5.png" alt="Big Class-md5.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 01:30:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/750010#M93055</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2024-04-26T01:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP compute the MD5 value for each row of text in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/750034#M93059</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Unfortunately, JMP 18 hasn't had a chance to be tried yet.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Looking forward to it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 03:50:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/750034#M93059</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-04-26T03:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP compute the MD5 value for each row of text in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/750037#M93061</link>
      <description>&lt;P&gt;Can this python code be changed from multiple lines to one line?&lt;BR /&gt;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;import jmp ;import hashlib

dt = jmp.open(jmp.SAMPLE_DATA + 'Big Class.jmp');dt.new_column('cksum', jmp.DataType.Character)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 03:59:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/750037#M93061</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-04-26T03:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP compute the MD5 value for each row of text in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/750128#M93075</link>
      <description>&lt;P&gt;Yes you can.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of Python's central design goals is ensuring code readability. &amp;nbsp;That's why there are no begin / end block control characters such as used by C / C++ / Java. { &amp;nbsp;} &amp;nbsp;Instead Python forces use of indentation levels to signify scoping. &amp;nbsp;As a developer that has had to maintain my own code (or worse someone else's code), months or years later, I prefer making code easy for me to read. &amp;nbsp; The combination on a single line only saves a single character in memory, &amp;lt;CRLF&amp;gt; vs ';' &amp;nbsp;But if you have any spacing around the ';' then you are not saving memory and reducing clarity.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The choice is entirely yours.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 13:23:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/750128#M93075</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2024-04-26T13:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP compute the MD5 value for each row of text in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/750357#M93115</link>
      <description>&lt;P&gt;I wish for a knowledge wiki. And a way to promote examples like this one, and make it cross-referenced by Python, MD5, and Data table.&lt;/P&gt;
&lt;P&gt;And I like your compromise dark/light theme; between that and the drop shadow, it really looks good with the high contrast black/white.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2024 11:37:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-compute-the-MD5-value-for-each-row-of-text-in-the/m-p/750357#M93115</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-04-27T11:37:01Z</dc:date>
    </item>
  </channel>
</rss>

