Giter Site home page Giter Site logo

myutilities's People

Contributors

fabien avatar mz2 avatar pasin avatar pitiphong-p avatar snej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

myutilities's Issues

MYUtilities_Prefix.pch compile error

I tried to use myCrypto library and followed the setup process. I just added the Xcode.proj file (my crypto) to an small cocoa app. Then change build phases adding into "Build Phases" to Target Dependencies (Static Lib Mycrypto), then to Link binary with Libraries - libMyCrypto.a.

And then just pressed Build and it fails with the following message:

clang: error: argument unused during compilation: '-fnested-functions'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

for library
ProcessPCH /Users/ilia/Library/Developer/Xcode/DerivedData/RandomGenerator-dwnttcbneqcvxiavyzkeswjjyavp/Build/Intermediates/PrecompiledHeaders/MYUtilities_Prefix-bpigycgguxphvwclrxcajutfidce/MYUtilities_Prefix.pch.pch ../MYUtilities/MYUtilities_Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

I am using OS X 10.9.5, Xcode 6.
Would please have a look and help?

Documentation for generating kCertTemplate value

Hey

Thanks for this repo - it's the only place I've been able to find code that can generate a self-signed certificate without using loads of deprecated CDSA/OpenSSL APIs!

One thing I am trying to figure out though, is how to replace kCertTemplate with my own certificate template. Mainly I would like to do this so that my certs can appear in the Keychain with a name relating to my own app (Hammerspoon), rather than "Anonymous".

I generated myself a CA and then created/signed a certificate from that, did the hexdump and replaced the contents of kCertTemplate with the first 499 bytes of my certificate, but SecItemAdd() returns an error that the certificate format is invalid.

My suspicion is that this is because the various kFooOffset values in MYAnonymousIdentity.m are hard-coded for the particular certificate you generated.

So, I was wondering if it would be possible to get some more information about how you generated the template certificate and figured out those offsets.

(I did also attempt to use the MyCrypto code to generate a certificate completely from scratch, but it seemed like a pretty large amount of code to drop into a tiny plugin that happens to need a self-signed certificate!)

License

Hello Jens,

I noticed you released some of your utilities classes under the BSD license (i.e. ExceptionUtils) but I was wondering if you would be willing to release the rest as well under an opensource license as well. In particular, we would be interested in using (parts of) your MYDynamicObject class but at the moment we are unable to do so as there is no license provided.

MYDynamicObject doesn't work with key names beginning with capitals.

Hi Jens!

I think if you have a property e.g. "UUID", the code seems to try to make the setter "setuUID:", which of course doesn't work. I have a patch that fixes the issue but it's probably crap performance-wise and my head is killing me, so I won't be able to submit a pull request until tomorrow. And it's really a very minor thing.

MYClassFromType doesn't handle model properties with protocols

@Property (weak) JSModel *someModelProp;

Class MYClassFromType(const char* propertyType) {
    size_t len = strlen(propertyType);
    if (propertyType[0] != _C_ID || propertyType[1] != '"' || propertyType[len-1] != '"')
        return NULL;
    char className[len - 2];
    strlcpy(className, propertyType + 2, len - 2);
    return objc_getClass(className);//className == "@\"JSModel<JSProtocol>\""
}

NULL is returned

_box() returns wrong type

NSValue* _box(const void *value, const char *encoding)

Is supposed to return NSValue * but may return NSString * (line 97)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.