NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Rob Mikkelsen

Pages: 1 2 [3] 4 5 ... 8
31
Absolutely.  No IP address is displayed.  I have www.neinonline.com forwarded to my personal computer for testing of a site I am developing. This is set up as a temporary forward, no masking.  I am sure that I could set it as permanent.  Bizarre, I know, but worth a try.

I think that the masking actually changes the URL that you have typed to reflect the location to which it is forwarded.  Nonmasking retains the URL that you typed.  As I said, counterintuitive.  Maybe this is an anomaly, but it sure works for me.

Attached is a .jpg of how I have the settings.


[attachment deleted by admin]

32
I think that the information at GoDaddy is counterintuitive.  I have a test URL set to forward to my personal PC at a specific IP address.  I set it up as a termporary forward and the URL displays instead of the IP address.

I think the mask feature actually masks the URL of the site you are forwarding to, not the site you are forwarding.

Regardless, the simple forward option works for me.

Rob

  

33
I have a browse with two children.  Everything works great until I click "add" on the parent browse, call the form and then click "cancel," returning to the browse.  Both children forget who the parent record was and try to display data associated with record 0.

How do I:

1.  Retain the current parent record before calling the form which is then canceled, or
2.  Disable the display of the children (including controls) if the parent record number (according to the children) equals zero?

I have tried all kinds of permutations with no luck.  I have retained the previous record number and reloaded the record upon return to the browse, stuffed the record ID number on return, added a line of code in each of the child records that says if the parent recordnumber=0 then return, but nothing seems to work. 

What is the magic handshake to preserve the display and linking of the child records to the highlighted parent?

Thanks!

Rob

34
Web Server - Ask For Help / Re: File Upload - removing images
« on: September 01, 2009, 04:41:34 PM »
Mike,

When a user uploads a file, I immediately copy it to a folder with that user's ID and log it into a tps database that contains the real filename as specified by the user, and the new filename because I rename each file with a sequential number.  As part of the upload process I reduce the size of the photo to display on the screen and I create rhe thumbnails at the same time..

A user can view the thumbnails and see the original filename in a browse procedure, and delete or view the file if desired.  On the record delete, I look up the actual name of the file and delete it and the thumbnail from the folder, then remove the log entry that contains the relationship between the name the user knows and the name that I have given it.

There is no simple form entry to delete a picture, nor do I believe should there be.  You could set up a text window and then use the text returned to delete the file, but that sounds like it could be a bit dangerous.

Cheers!

Rob

35
Web Server - Ask For Help / Re: HMAC MD-5 Encoding
« on: August 29, 2009, 12:37:14 PM »
All,

After much assistance and education from Larry as well as a bit of research, I have successfully cracked the HMAC-MD5 nut.

Attached is an app that uses Bruce's MD-5 routine to create a hash based on a text message (up to 256 bytes) and a key up to 64 characters.  You can redefine the length of the strings if you would like.  Keys longer than 64 characters are run through the MD-5 routine to create a 16 character string before processing.

This app is written as a window for testing but can easily be converted into source code to incorporate into your own projects.  Please feel free to use it as you see fit and let me know if you encounter any problems with it.  I have not tested it with keys > 64 characters but the code is simple enough that it should work. 

The specification for the HMAC-MD5 encryption can be found at http://tools.ietf.org/html/draft-ietf-ipsec-hmac-md5-00 .  I have put some comments into the code that should help with understanding the process.  It is pretty simple process, but very exacting in its application.

Bruce, feel free to clean up the code and incorporate this functionality into the next release of NetTalk 4.  I think this would be a good tool for the NetTalk arsenal.

Cheers!

Rob

[attachment deleted by admin]

36
Web Server - Ask For Help / Re: HMAC MD-5 Encoding
« on: August 27, 2009, 05:00:00 PM »
Larry,

In that case, it think it would be a great addition to NetTalk.

I tried to incorporate it into my NetTalk app but encountered GPFs.  Could be a conflict with the MD5 hash in NetTalk.  I modified the code into an app on its own and didn't have any problems.  I HOPE that I can create a Clarion .DLL that will avoid the confliction.

Work got in the way of testing today, but I will run the app seperately and put entry fields into the NetTalk app to see if the hash is acceptable by the portal - I am quite sure that it will be. 

I believe that you have provided the answer.  I hope to thank you properly the next time our paths cross (as they did in Las Vegas during the Capesoft World Tour...).

Thanks!

Rob

37
Web Server - Ask For Help / Re: HMAC MD-5 Encoding
« on: August 26, 2009, 12:33:59 PM »
Larry,

This appears to be exactly what I need.  I will test tonight with Authorize.Net and see if their hash is the same as mine (and it should be).  Thanks for putting together the example program - it is all crystal clear to me now.  I will let you know tomorrow if it matches their code.

Bruce,

The difference between the standard MD5 hash and the HMAC MD5 hash is that MD5 uses a private key that is known both to the sender and receiver (but no others) to create a unique value to ensure that the sender is legitimate. 

All the values except the private key are passed to allow the receiver to recreate the hash (why they do it that way is beyond my understanding, because the public key is a combination of the company's transaction account number, the invoice total, the random sequence number and (get this) the number of seconds that have elapsed since January 1, 1970 - a bit of overkill).
 
My understanding of the standard MD5 hash is to create an obfuscated value (such as a password) that cannot (supposedly) be compromised, even by the system administrators.

This HMAC MD-5 encryption sounds like a kludge for this company only that will not be used by anyone else, but it may become more popular in time.
 
Cheers!

Rob

38
Web Server - Ask For Help / Re: HMAC MD-5 Encoding
« on: August 25, 2009, 03:56:19 PM »
Larry,

I did a little research on the web site and looked at some sample code with function calls in other languages (each language appears to have its own implementation of the HMAC MD-5 protocol - can NetTalk? <g>).  The Perl implementation refers to the function as hmac_md5_hex so it appears that the output is hex.

Thanks for the offer - that is too kind of you and, yes, I would love to take a look at it!

Rob

39
Web Server - Ask For Help / Re: HMAC MD-5 Encoding
« on: August 24, 2009, 04:16:20 PM »
Larry,

I have looked at the javascript from pajhome.co.uk.  Unfortunately, there is a transaction key that must remain secure that is encoded with other data into the hash.  This code cannot be viewed by the client so the hash code has to reside on the server, not as a parameter on the client side.

Another parameter Authorize.Net requires is the time, in seconds UTC elapsed since January 1, 1970.  A task I can perform but I will need to ensure the time remains synched because they only allow a five minute variance in the time between the server and their host (assuming that the client immediately transmits the time hack created by the local server). 

I will check out the wikipaedia link and test Bruce's function to confirm that it returns the same values as the web sites that demo the HMAC MD-5 hash.

Thanks!

Rob

40
Web Server - Ask For Help / HMAC MD-5 Encoding
« on: August 22, 2009, 07:46:59 PM »
All,

I am working on a payment interface to Authorize.Net.  As part of the transaction, they require an MD-5 hash of a few pieces of information.  Is there an HMAC MD-5 encryption algorithm built into NetTalk, or do you know where I can get the code that I can integrate (or better yet, HAS been integrated! <g>).

Thanks!

Rob

41
Web Server - Ask For Help / Re: Use NetWebSource in a form
« on: August 05, 2009, 09:20:53 AM »
An extremely userful post, indeed!  I have successfully (thanks to this thread) been able to include a NetWebSource procedure in a web page.  I made all the mistakes that Rene did in the process and probably several more.

Added the div, removed the "return" from the processed code, set the parent, ensured proper xhtml, and it was off to the races.

To verify that I had proper XML code, I removed all the calls to SendPacket and just let the source routine call it once as the program as designed.  In the SendPacket routine, I copied the contents of Packet to the clipboard and pasted it into a text editor without all the form data which I am sure was correct.  I found that I was missing the terminator on the <img> statement.  Added that and, Voila!

Thanks, guys!  This has been a great help and opens up all kinds of possibilities.  Bruce, you may want to consider adding this process to your docs.

Rob

42
I would like to display additional information when a user clicks on a list in a browse table.  This will probably be HTML code, not a child browse, so a NetWebSource procedure seems to be in order. 

I have a procedure I use for testing that lists the contents of the value queue, and also one that lists the contents of the current session queue (neither of these are thread safe, of course...).  However, when displaying the session queue or the value queue, I don't detect any change in the data contained therein when the source procedure is called.  What variable is being passed?  I assume it is the unique, unchanging single element key field from the parent browse but I fail to find it.  The value passed in the session queue is the first selected record ID.  Selecting another record does not appear to change the data in either the value queue or session queue.

I inserted this NetWebSource procedure before my calls to the other two child records in the routine I used for testing.  Will having other children present skew the results even if they are supposedly called after the source procedure?

Thanks!

43
Web Server - Ask For Help / Re: Browse Table Widens With Every Click
« on: June 24, 2009, 05:21:57 PM »
Bruce,

I will try to put something together for you.  I will try to strip the other routines and send you a slimmed down version.

Another alternative:  If you would like to look at the site, the URL is http://www.trailerlocators.com (yes, NOT a government site!). Click Member sign in, user ID = tylero , password = tylero .
Go to My stuff/Trailers from the drop list.  The trailer list is the browse that widens with every click. 

Feel free to create new equipment if you don't see anything (I will try to add some tonight) -it won't be published  This may be the most expeditious method because you can see the effect and then I can send you the source that created it.

Others may view as well if interested.  I would love some feedback since this site is in beta now and will be released next week.  Obviously some cosmetic work required still but it is starting to come together.

Cheers!

Rob

44
Web Server - Ask For Help / Re: Validate record in browse
« on: June 23, 2009, 06:25:36 PM »
Walter,

Look for the embed point

Inside Browse Loop
1.  Validate Record

  add your code ...
  if ~found
     CYCLE
   end

Look at the source code for specific syntax.  I haven't tried it (I usually use a filter) but it should work.

Rob

45
Web Server - Ask For Help / Browse Table Widens With Every Click
« on: June 23, 2009, 11:06:29 AM »
I just installed V4.34.  Whenever a cell in the browse list is clicked, the list widens until eventually it extends off the page.  I have some header text, but the browse itself is generic NTWS code and it worked well in PR21.  I have checked to ensure that all the shipped web data has been copied to the new system.  I have refreshed the CSS on the browser.  What am I miissing?  This happens in IE6, IE7 and FireFox.

I just checked a site that I deployed with V4.34 and that browse list does not appear to be affected.  This may only occur on browses with child records displayed.

Thanks!

Rob.

Pages: 1 2 [3] 4 5 ... 8