How to enable or disable a mobilesubstrate via a preference bundle - iphone

I would like to know that suppose I have a tweak how would i enable people to enable or disable it via a switch? I need help for a current tweak im working on. This is a mobile substrate tweak made by logos in Theos

Create a Preferences plist as exemplified in a lot of opensource MobileSubstrate-based projects and as documented here.
Then, decently check if your tweak is enabled in your hooks where you find this to be most necessary, and that's it.
Note that when checking for Preferences, do it right. This function is a great example of doing this.

Related

What's the best practice to create Wizards in VSCode

VSCode's official documentation of Extension Guidelines for WebViews currently discourages the use of WebViews for Wizards, as quoted here below:
Don't
Use for promotions (upgrades, sponsors, etc.)
Use for wizards
Open on every window
Open on extension updates (ask via a Notification instead)
Add functionality that is unrelated to the editor or workspace
Repeat existing functionality (Welcome page, Settings, configuration, etc.)
With the release of VSCode's Webview UI Toolkit I was looking into using them for WebView based Wizards, but because the documentation doesn't recommend this, I'd like to know if there's an official correct approach for wizards. I could not find anything in the official APIs and docs (hopefully I didn't missed it).
My current plan is to go against the recommendation if there's nothing else available.
Thanks!

Edit an another's plugin

I have a plugin's resource codes and I want to edit. Because I want to change plugin's prefix but it isn't possible unless edit plugin. I tried edit with Eclipse but I had a lot of errors.
If you have source codes of some plugins, there meight be a problem, that they are using some api for example WorldEdit api, but you don't have it added in your project. You have to look into code and find out what they use. Then download the api and add it in Build Path - Right Click the project->Build bath->add external Jars. I hope this will help.
You may be getting errors from imports, API's, etc.
The best way to change this is to contact the developer of the plugin, who has the project themselves. It's not a good idea to change code unless you have full permission; but I will still tell you some possible ways to fix it.
Your imports may be faulty, check those.
Actually REVIEW the code yourself– Don't mess around with things you don't know what they do.
CHANGE YOUR PACKAGE NAMES (This got me before, simple mistake)
If there are comments in the code, use those to your advantage
Google your errors.
If you are new to Java, don't skip to changing code already. TRUST ME. Learn all you can before skipping to other "higher level" developer styles.
Like I said, these are vague and simple ways to fix it; the best way to have your feature implemented is to contact the developer.
*I understand that this thread is old; I'm just saying this because there are currently no answers that describe this for other Google travelers of the internet.

how to erase sensitive information shipped with iOS app

I am a new iOS developer and developing an app with costumed project which has no typical compile options like debug, release, distribute. So I have to config compile options of xcode by myself. That brought some difficulties to me.
Source codes of this project is very sensitive as the app's rival competitor will be interested in the information of source code. To erase information concerned with source code's information, I need help to config compile options of xode. For example, I can find name of functions by profiling this app with intruments and I have no idea how to erase it even after I have set option to turn off "generate debug symbols" of xcode.
How can I erase overall informations concerned with source code? Any help is appreciated. Thank you.
It looks like you're trying obfuscate you code. Take a look at this question regarding obfuscating Objective-C code. The problem with obfuscating is that it's possible to reverse it if someone really wants to, so it might be more trouble than it's worth.

Does Leksah have hlint, hoogle integration?

Does leksah support any kind of plugins? Will it? Does it have any plugins built in, such as hlint, hoogle, pl, djinn? If not, is there an easy way to integrate these things?
Does leksah support any kind of plugins?
Current version not.
Will it?
I am working on a major restructuring, to build Leksah from plugins from the very base.
https://github.com/leksah/billeksah/wiki
Unfortunately this project may take some more time to reach delivery,
but hope it will pay off.
Does it have any plugins built in, such as hlint, hoogle, pl, djinn?
It has simple support for lookup of hoogle docs.
If not, is there an easy way to integrate these things?
Help is very welcome.
Well someone ought to answer. Here's my best guesses:
Does leksah support any kind of plugins?
Nope
Will it?
It's open source (GPL 2)...get to it! (Doesn't look like this feature is on any roadmap or anything.)
Does it have any plugins built in?
According to the manual page 32:
With the Docu button you can initiate an external search in a browser with e.g. Hayoo
or Hoogle, depending on the configuration in the Preferences.
That's about all I could find.

Eclipse: collaborative dev on shared drive

I am using Eclipse with the "statet plugin for R".
I am looking for a way to do collaborative development (like in google docs: allow people to modify code at the same time). Any preferred plugin for that? I have seen eXtreme Collaborative Development Environment but I don't know if it is good?
I wouldn't use a shared drive, I'd set up a source code respository using Mercurial or Git and use that. I'm sure there's plugins for those for Eclipse.
How would you stop it being a free-for-all? In my experience, when developing code you want to control change, not have it forced upon you when you aren't ready for it.
Consider this scenario. You have a hard to explain defect in your code. You are steadily debugging it, throwing different data at it, looking at intermediate values etc. You are just about to trap it when BOOM, somebody else changes some other code and your results change because of that.
Spacedman is right, use a revision control system of your choice and keep in control of change.
If you want to do something like pair programming, but remotely, then use a remote screen, e.g. VNC, with Skype so that you can explain to the other what you are trying to achieve.
I've used egit to add git functionality to Eclipse with StatEt and it works well. Allows others to edit code in whatever way works best for them (one repository, several individual repositories with frequent merges etc)
There are plugins out there that will facilitate realtime code sharing. They commonly work by having all individual devs have their own copy of the files and synching changes back-n-forth on the fly. If conflicts are found you get to decide how to resolve them explicitly.
Here is one such plugin from ECF project:
http://wiki.eclipse.org/DocShare_Plugin
I would recommend a source control system for day-to-day development. Real-time code sharing works best for holding short-term collaborative editing or debugging sessions, doing code reviews, etc.