how to Customize Luci UI for OpenWrt? - openwrt

First of all, I'm new to OpenWrt, and all custom build firmwares.
How to compile the OpenWrt source with the Gargoyle or X-wrt UI instead of Luci?
Or with Luci but hide some functionalities from the user interface?
I couldn't find anything in the documentation to show how to do that.
In my first compilation I fallowed this steps buildroot.exigence.
My goal is to have the root user and other users have access to a limited interface with minimal configuration abilities, and make those changes to the source so I'll have a compilable version.
Thanks in advance.

You can edit LUCI from this folder:
usr/lib/lua/luci
...controller
...model/cbi
...view

Related

How to pack whole ROS project

I have made my ROS project down, and have tested the program successfully, then i need pack my project and give it to my customer.
I am confused about how to hide my source code and pack my whole ROS project into one application maybe, can anyone help me?
The easiest way to do this is to create a shared object (that will hide all your source code).
This can be done in the CMakeList with add_library.
Once you have your mystuff.so, you can give it to your costumer (along with an example main.cpp and some documentation).
Your costumer will put a target_link_library in his CMakeList and will be able to use your stuff.

IOS UIAutomation - how to get elements when I create ios UIAutomation JS script

I have a new project need create auto test script with ios application, but only can provide ipa file (developer build), cannot provide source code. Currently I used Tuneup JS. I have some questions need help. Please see details as below.
I only have ipa file no source code, so how to get application elements and how to locate element? Is there any documents can reference? If can provide some examples should better.
If this ios application is HTML5 application, can automate?
When I use Tuneup JS to create script is there any recommended IDE to help create script? Because very hard to remember all APIs.
very very appreciate for your helps.
Thank you very much
You can use window.logElementTree(); and in the instruments window, when you run the app, it will log the elements of the current window.
check out apple's documentation:
https://developer.apple.com/library/ios/documentation/DeveloperTools/Reference/UIAutomationRef/Introduction/Introduction.html
Your second question makes no sense.
I use sublime text editor to write my tests, although it isn't an IDE, just a fancy text editor.

How to use the new Code Manager in the new Omniture Interface

I am confused within the new Omniture Interface for a small thing. I am trying to Generate SiteCatalyst JavaScript Code for my site.
Here is what I did.
Created Report Suites from Report Suite Manager.
and got confused how to generate code for my site.
See the old interface made it very clear to create code for my site by selecting a Report Suite as explained here.
But how to generate code by selecting a Report Suite in the new interface?
Thanks.
I don't know where the code generation is or if it even exists any longer. Have you considered using the tag manager?
It's in the Admin home under "Tag Management". You can download the site snippet from there. You will see all the code in your container at that point. You have to set variables a little differently when you use the tag manager at that point but there is plenty of documentation around it.
Code Manager
Code manager lets you download data collection code for web and mobile platforms.
Admin tools > Code Manager.
After you download the library, you must configure the code to send data to the correct tracking server and report suite.
Tag Manager
TagManager is the standard method for deployment of Adobe Marketing Cloud tags.Tag Manager 2.0 is the latest one available.
TagManager lets you:
Deploy Marketing Cloud products and Genesis integrations though a single hosted JavaScript file.
Manage tags and configuration in a secure administrative interface.
Test changes and quickly roll back to previous versions.
Use existing SiteCatalyst tags to implement TagManager without a complex deployment process.
Deploy third-party tags.
Dynamic Tag Manager
Adobe acquire Satellite and it is now DTM.It is the future of implementation.
Visit the link DTM
The old Code Manager is still there, just a bit hidden. If you go into the interface for Code Manager, just under that table is this text. It brings you to the old Code Manager:
To view the legacy code manager or download AppMeasurement libraries for BlackBerry, Windows Phone 7, or Symbian click here.
In future the world is expected to go with Tag Management and when you have time it is recommended that you implement that.
Thanks C.

Why is there a required build step for Web UI apps?

Why must we run a build.dart script to develop with web_ui ?
I thought it was an frequent noob question about web_ui but I do not find an answer about that. Maybe I miss some web resources or articles.
With Angular.js or Polymer MDV don't need it, and they use bidirectionnal binding.
With future version of Web_ui or Chronium version, does the build.dart will be still necessary ?
This side of web_ui disappoints me a little bit and I feel it could discourage developers to use it.
Another point is I don't like project organisation with HTML sources in "web" and another "web/out" directory ? Can we configure the script to have another out directory like "templates" for templates and "web" for output ?
Than
If you want to use #observable, then you need to run a code generation step. Because Dart is a more structured language, it's not currently possible to add methods or change structure of an object at runtime. Therefore, we must run through a small code generation step that converts #observable into the code to track and notify for changes.
Polymer doesn't need this because they can alter the object at runtime. Also, Object.observe is landing in V8 (already landed?) which means the runtime performs observability automatically.
We know this is a problem, and we have a few ideas on how to solve it.
Build a devserver that does the building for you automatically.
Implement (eventually) mirror builders, which would allow you to alter program structure at runtime.
Option 1 is a near-term solution, and option 2 is a long-term solution.

What is the best way to install a C# windows service that doesn't require running installutil manually?

I'd like to package a C# windows service project so it can be easily installed by anyone without having to use installutil command prompt utility? Is there an easy way to configure a Visual Studio setup project to do that similar to how winforms applications are installed?
I like to create a install project to get a nice and clean MSI installer, this should help you:
http://support.microsoft.com/kb/816169
And codeproject has a good example too: http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx
There are plenty of extra answers in this question.
If the app is for basic users then the MSI is the best way to go.
If it's aimed at techies then I personally prefer apps that can install and uninstall themselves, and can run as a service or like a normal app. The linked question has answers that describe this.
For completeness sakes I'll summarise http://support.microsoft.com/kb/816169 here.
You need to add a Service Installer class to your service component. This can then be called by the setup routine to add you service. You'll need to create a custom action in your Setup project to call it. The details are in the KB identified.

Resources