I am using qr-encode library to generate Qrcode on unix platform. But i am not able to customization of generated Qrcode.
Can you please tell me using this library how to customize generated Qrcode.
i want to change finder patterns with different designs.
I have found the manual of then libqrencode library:
http://www.linuxintheshell.org/2012/03/01/entry-001-qrencode/
Howewer, i'm not sure you can change the design of the qrcodes in the command line.
If you want to customize your qr-code with colors, shapes, ... online, you could use http://www.the-qrcode-generator.com/
Related
Is it possible to compare two images using Robot Framework? I tried one solution using OpenCV that compares two images, but it's getting difficult to write something specific to Robot Framework.
Robot framework itself doesn't have any such feature. However, it's possible to write a custom keyword to do it. I worked on a team a few years ago that built some keywords based on the ImageMagick library. You can either have the keywords import the imagemagick library itself, or use the imagemagick cli.
For more information see “Diff” an image using ImageMagick
I'm writing a Qt application that is supposed to show a geo-map of a specific geographical region in one of its views on top of which I need to be able to draw various other graphical elements.
The requirements are that all the map-tiles must be pre-downloaded for off-line use as during the use of the application there will be no internet connection.
After lengthy search for a suitable library that I could link into my Qt project that would support my needs (off-line tile loading, rendering and painting the map in Qt framework, non-QML only C++ integration) I thought libOsmScout would do the job.
However, I have managed to download .mbtiles files for my region from OpenMapTiles just to realise that libOsmScout cannot natively work with .mbtiles.
The library can only work (indirectly after "import") with .osm.pbf files.
(http://libosmscout.sourceforge.net/tutorials/importing/)
I've searched extensively the web but all the results were pointing to conversion procedures in the opposite direction, i.e. into the .mbtiles.
So my question is: is it possible to convert .mbtiles files to .osm.pbf format so I can then import it into libOsmScout compatible internal set of files?
If it is possible, what the process?
Any help or guidance would be much appreciated.
Thanks.
Easiest way is to use ogr2ogr to convert to pbf format.
ogr2ogr -f MVT output_dir_name input.mbtiles -dsco MAXZOOM=2
This will create a directory structure with each zoom level having a directory and pbf file named according to the tile position.
Or
using this tool called MBUtil.
There are some steps which you can follow from the github repo.
After that, you can then use the following command to convert to directory structure with each tile in pbf format.
mb-util input.mbtiles output_dir_name image_format=pbf
where tiles is the directory name you want
Basically i want it to import data from a SQL database and Display it as graphs. Having said that i also want it to be dynamic,responsive as in the users should have filtering options. Any leads would be definitely helpful.
Please note that i am just a beginner with drupal.
Yes, But I recommend you to work on your own framework. Or even you can use some data visualization framework
Maybe this one is useful for you if you want to do it on your own:
http://www.sitepoint.com/twelve-javascript-libraries-data-visualization/
Why do you need Drupal for that?
I would make some PHP script which would read SQL and generate image out of that data, by using GD or ImageMagic lib. I guess you know that PHP can shoot out image file header and dynamically generate image, on fly. That PHP script could also read filter parameters to have influence on generated image.
I am new to Qt and C++... Now, I am writing an application in Qt, in which I have to display an already generated .dot file inside my application. I tried the render function but did not work for me.. Can anyone out there help me in this regard..
Thanks
Had the same problem using Python. I came up with this solution:
svg_string = dot_graph.create_svg(prog='dot')
svgWidget = QtSvg.QSvgWidget()
svgWidget.load(QtCore.QByteArray(svg_string))
Guess you can do something similar in C++
Plotting directly a dot file requires to be able to display the nodes in the correct positions, and link them properly. This is done by very complicated engines and is not included in the dot file, which is simply a description of the graph. Maybe there are C++/Qt libraries that take dot files as an input, but I don't know them.
According to this topic (Graphviz: How to go from .dot to a graph?), you can easily transform a dot file into a png or svg file. If you want to display the rendered graph into your application, the easiest thing to do is to generate that png picture (from the shell or from your code) and to manipulate it from your program.
Take a look to QGraph. You will need much more work to make your graphs interactive.
Anyway, if you are new to Qt, even the simple display it's a steep introduction to graphics.
I have my own implementation, but I'm sorry it's not yet ready for publishing - I will do in a SWI-Prolog context...
I decided to use Drupal for a project. I am having some difficulties so please kindly help me.
I want to generate a table containing different calculations.
I want to generate a chart using the data from the table. If possible.
I tried before with view aggregation but no luck so far
I can't use google chart . Machine don't have access to internet.
Please see the attached image for info
Using Charts in combination with Highcharts is for sure an option that does not require an internet connection. However you'd have to check The license terms to see if you qualify for a free license (at no Cost). Refer to Steps to create charts using the views UI for step by step instructions.
There are some other modules available also, which also facilitate the creation of charts, and which might be considered as a possible alternative to the charts module. Checkout the Comparison of charting modules I creatief, for more details about them.