Latex (String formula to Image) for IOS - ios

I've done my math application for Android.
I use JLatex Library to convert math expressions to Bitmap.
I have a lot of predefined strings with math expressions (in my crossplatform C++ core).
Now I'm working on IOS version. I want to use that core here.
But I face with Latex problem.
Are there JLatex alternatives for IOS?
I've found some Libraries, but syntax isn't the same...
Syntax of JLatex is the same as here.

Finally I've found great Latex Library for IOS.
It's iosMath.
Currently it has only one defect: doesn't support line break.
But I believe it'll be done soon.

Related

Erlang to c/cpp conversion how to do?

Is there a simple way to convert Erlang code to c or cpp?
thanks
I wish to convert Wings 3D code (from the first release ) to c/cpp
What would you do after converting? If you plan to run the c/cpp code, you will not get all the Erlang platform capabilities.
Sometimes, people try to convert to the language they understand, while learning a new language.

How to obfuscate iOS binary.

Hi, I'm just wondering how you could obfuscate functions in iOS binary?
If you tried to reverse iOS binaries using tools like ida you will see part of the binaries have obfuscated functions like all or partly named sub_xxxxxxxx but the other have human readable functions
Someone said, add those lines to the top of your header without any further explaining:
#define SecurityClass ah7p
#define checkCopyProtection xcyc
What the methods used to secure your App?
Sorry for the dumb question, but I'm new there and I ended up with no answer explained what I need.
There are a couple of ways to obfuscate an iOS binary.
Open Source compiler named llvm-obfuscate (https://github.com/obfuscator-llvm/obfuscator/wiki) It has some nice features to obfuscate during compilation. You are replacing your default compiler with that one.
There are for Windows of course VMWare oder Themdia that can post process but that is not the case.
Besides that I just know one more which is Liasoft antispy. It is a very advanced anti analysis toolkit that allows you to encrypt functions and much more during compilation using mixed Objective-C and C++ code. ( https://www.liasoft.de/en/products/antispy/ )
Not sure if one of these is the right one for you. Except these things you are pretty lost since Objective-C is a compiled language with lots of metadata.
Hope I could help you, this is my first post.
If you only care about obfuscating method names then the easiest way is to write relevant parts of your application in C or C++. For instance, you can rewrite your SecurityClass as a C++ class instead of Objective-C class. This will not make your code reverse-engineering-proof, but it will at least raise the bar a bit. (NOTE: I'm not saying this is the right thing to do from software engineering point of view, though).
If you need to obfuscate code, then you are in a search for a tool that can do this. There are several such tools, both commercial and free. One project for doing exactly this is obfuscator-llvm.

Functions from MATLAB to XCode

Essentially what I'm trying to do, is turn the following function:
function [template, mask] = createiristemplate(eyeimage_filename)
into a form useable by Xcode. I've spent several hours poring over the internet, and have yet to find a clean way to make it work. Any help would be greatly appreciated.
If you are talking about Xcode, the mac IDE: https://en.wikipedia.org/wiki/Xcode
According to wikipedia, this software can support the following languages:
C, C++, Objective-C, Objective-C++, Java, AppleScript, Python and Ruby
So the only way, is to use matlab coder, it is a matlab tool to convert matlab code in C or C++ :
http://www.mathworks.fr/products/matlab-coder/index.html
But it is an expansive toolbox.

Using Syntax Highlighting

I'm trying to write an IDE for the iOS and I stumbled on a problem. I of course wanted to be able to do syntax highlighting, but I have no idea how I have to get this to work.
I have been googling over a month now, but I haven't found anything useful. Most libraries are C++. That I find no problem, I know enough of C++, but they all use the Boost libraries and I heavily doubt if it's easy to install them on a jailbroken iOS device, or even compile them for the iOS on the Mac.
So I come here for help. What should I do? Should I use a PHP syntax highlighter, which always colors the whole document? Should I write a syntax highlighter my self, that doesn't use the Boost library? Or does somebody here know another library, which can be used on the iOS?
Thank you in advance,
ief2
i have a simillar problem about syntax highlighting, but i prefer to solved it using UIWebview than using core text, because that is a different pixel in rendering text in core text and UITextview (in my problem i was using a core text view that cover by uitextview), and then i try to solved using uiwebview, even i'm still on developing but i can say that it is better using uiwebview than core text, maybe you can take a look at this link http://alexgorbatchev.com/SyntaxHighlighter/ it is an open source code, but it develop using javascript.
Most Boost libraries are header-only. There are only a few Boost libraries, like those for threading and asynchronous I/O, that use a compiled library. If you've found some solutions that would work fine aside from your worries about using Boost, then I would look at them again, as they'll likely work. Even if you must use a Boost library that is not header-only, you can always build it as a static library and link that into your application, so that in the end the only thing that needs to be installed is just your app bundle.
I know this is old, but in case anybody is looking for a complete syntax highlighter for iOS, there's two options:
Highlightr: A Swift library for syntax highlighting, supports hundreds of languages but uses JS as backend. It's fast enough for live editing, though. (Disclaimer: I am the creator of this library).
SyntaxKit: A native solution on early stages of development. Should support any TextMate syntax in the future.

LaTeX support with Movable Type 5?

Is there latex math support with movable type 5?
Saying the unobvious; but Movable Type 5 cannot be embedded into LaTeX.
Saying the obvious, the other way around:
It is possible using Google's LaTeX image output: See my article on this website http://sites.google.com/site/gencoreoperative/index/articles-and-hacks/google-s-latex
I'll copy some stuff over here, if the link may ever be dead:
http://www.google.com/chart?cht=tx&chf=bg,s,FFFFFF00&chco=000000&chl=e^z=\sum^{\infty}_{n=0}\frac{z^n}{n!}
Where chl is your latex, cht is "TeX" and chf and chco are font, style and color attributes.
Update: not sure if it works on sites external from Google too...
http://bitbucket.org/alex_mikhalev/latex/ hasn't been updated in a year. not sure about MT5 support, as I didn't see a mention of version compatibility.

Resources