By Andrew Krok The company’s toolmaking division investigates new technology to reduce waste and complexity while speeding up overall production.
Daily Archives: 05.11.2015
The New York Times’ Virtual Reality App Is Here–And It’s Very, Very Cool
By Bryan Lufkin
As new technology appears, news agencies have constantly been reinventing themselves. That’s why the New York Times is rolling out a …
The New York Times’ Virtual Reality App Is Here–And It’s Very, Very Cool
By Bryan Lufkin
As new technology appears, news agencies have constantly been reinventing themselves. That’s why the New York Times is rolling out a …
KDAB on Qt: Embedding QML: Why, Where, and How
If you’re already using QML in Qt, you know that it can help quickly create flexible user interfaces using little or no C++ programming. With a basic text file and some JavaScript logic, you can put together a pretty sophisticated interface like that shown in the Qt Quick Clock demo (below) with a minimum of fuss. But did you know you can compress your plainly readable QML and hide it away inside a binary?
Figure 1: Qt Quick Clock screen
If substantial portions of the application are in a plain text file, they could be examined or modified by the user. That’s a concern if your UX contains sensitive information. Perhaps you want to remove any temptation to “tinker” with the interface, ensuring there are no unnecessary support calls. Is there any opportunity to more tightly bundle those QML resources along with the executable? Thankfully, the answer is a resounding “yes”.
Standard Qt resources—icons, bitmaps, audio files, translation tables, etc—can be compressed and linked to the executable, allowing you to create a distribution with fewer external dependencies. Not only is this simpler to manage for versioning and installation, but it provides a measure of confidence that your application will always have the resources it depends on to run properly.
With just a bit of creativity, the Qt resource capability can also be used to insert QML files into an accompanying library, making the QML a bit more protected while retaining the interface definition separate from the executable. The trick is to subvert the QML plugin capability to bind your QML into the app. You still need a bit of a QML stub to get the process kicked off. However, the main logic and content gets pulled into the app through the QML plugin, turning it into an “invisible” resource.
Here’s a little example of this approach by merging the QMLExtensionPlugins and Qt Quick Clock examples so you can see this technique in action.
First of all, we insert a line in our Qt project files (src.pro) to add an “install” directory:
target.path = $$OUT_PWD/../install
Now we’ll be able to run “make install” to create our plugin. But what goes in the plugin? The plugins directory from the example contains the files needed to manage and install the Qt plugin process, so we copy those directly. Again, we need to adapt those to integrate our Clock example, so here are the files we need:
./plugins.qml ./extensionpluginsapps ./TimeExample/hour.png ./TimeExample/minute.png ./TimeExample/clock.png ./TimeExample/center.png ./TimeExample/Clock.qml ./TimeExample
Clock.qml is our QML …read more
Source:: http://www.kdab.com/embedding-qml-why-where-and-how/
If a Solar Plant Uses Natural Gas, Is It Still Green?
By Daniel Cohan
·The giant Ivanpah solar power plant in the California Mojave Desert recently detailed how much natural gas it burned to generate power when the sun wasn’t sufficient – the equivalent to 46,000 tons of CO2 emissions in its first year, according to …
Get Ready for More Ads on Instagram
Facebook is looking down the barrel of a future advertising crisis, so it’s trying to think up new ways to put “buy now” links in front of your peepers. The company’s top brass believe the answers will come from Instagram, Whatsapp, and video.
…