jondecker76

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 74 total)
  • Author
    Posts
  • in reply to: $100 Bounty: MX2 Running on Samsung's Linux on Dex #16194

    jondecker76
    Participant

    Bounty upped to $200

    Since I don’t check here every day, i can be contacted at jondecker76@gmail.com


    jondecker76
    Participant

    Thanks Danilo, very helpful!

    in reply to: $100 Bounty: MX2 Running on Samsung's Linux on Dex #16175

    jondecker76
    Participant

    Bounty still stands!

    in reply to: Monkey as your website. #16166

    jondecker76
    Participant

    Everything ran beautifully on my Galaxy Note 9 in Dex mode

    in reply to: Float rounding #16156

    jondecker76
    Participant

    For anyone else having a similar issue, I just made a simple currency class to ensure decimal rounding is handled as expected.  It’s nothing fancy, but does what I need it to do anyways

     

    in reply to: Requiring discord to join forums #16144

    jondecker76
    Participant

    Ugh, this is seriously horrible news!

    This is by far the best language I’ve ever used and I’m very deep into development of several projects. Please tell us you’re not pulling the plug on MX2!  I come here almost daily to see what’s new.  I agree that it sucks that there is a lack of activity on the forum, but give it some time!


    jondecker76
    Participant

    yep, sorry.  Just a typo


    jondecker76
    Participant

    Doh!  I found my problem…  I didn’t have a:

    in reply to: Using monkey to call an api behind https? #16107

    jondecker76
    Participant

    This is straight from my current Amazon MWS API wrapper.  It’s kind of specific to what I’m doing, but that part that builds a request to send is the line starting with cmd=….

     

    You should be able to modify this for your own needs pretty easily (and get rid of the the generic return type if you just need a string)

    In my case as above, the type T has a constructor which accepts:
    – httpRequest (the original httpRequest, which is useful for debugging and logging)

    -result (the result integer returned from the wget command.  Also useful for logging, debugging and filtering

    – ldstr (the actual string returned by the API call. In my case it’s XML, but it could be anything

     

    Here is the New() method of the base class for all of my <T> return types (if that helps)

    An an example of a return type that extends the above…

    Here is an example of an actual request class calling the generic post method:

    in reply to: Using monkey to call an api behind https? #16104

    jondecker76
    Participant

    I’m currently using monkey to interface with a few different REST APIs over https with no problem

    in reply to: First class function / callback help #16098

    jondecker76
    Participant

    Thanks to both of you!

    I finally have it figured out.

    I do a lot of database work, and have been evaluating Monkey2 for a large project that I would like to make cross-platform.  I find the current sqlite3 library very ugly and difficult to work with, so I created a very simple wrapper class that makes things so much easier for me.  Here is the current state, though I do plan on making this more complete and turning this into a module.  Thanks again for the help!

    in reply to: First class function / callback help #16093

    jondecker76
    Participant

    Thanks for the response.  I will give that a try.

    I had noticed before that a passing a Ptr with a Varptr preface would show up as ptr ptr when hovered over, so I guess I was assuming that would have been expected behavior.

    Thanks again


    jondecker76
    Participant

    I’m going to take a hybrid approach – I’ll have to make routines to match the appropriate skeleton class to the XMLString – but then I’ll use reflection to fill in the fields in the class.  At least I’m hoping this method will work


    jondecker76
    Participant

    Thanks for the reply.

     

    I was afraid of that.  It seems like there is no way to get a true object from the reflection system and have it usable as a normal object (without heaping up piles of GetType..GetDecl..Invoke..Cast.. and making the code overly complex)

    I’m trying to build an XML parser that builds objects out of “skeleton” classes from the XML data.  But I wanted to do so without special cases and Casts, as there are literally hundreds of skeleton classes.  I just can’t find a way to build a true object from it’s name:String in monkey2.  I’m guessing that I’m just going to have to bite the bullet and write a custom loader for each and every one of the hundreds of object types.  Bummer

     

    For example, I just need to make a function that:

    instance:=ObjectFromName(“class_name”)

    in reply to: Reflection / Turning XML into an object #15983

    jondecker76
    Participant

    I updated my github bug report.

     

    The problem is that reflection is currently broken with generic namespaces (I.e. std..)

    But working fine with fully qualified namespaces (I,e, std.stream)

    I’m back to work on my project using fully-qualified namespaces for now!

Viewing 15 posts - 1 through 15 (of 74 total)