node-nlp
Version:
Library for NLU (Natural Language Understanding) done in Node.js
429 lines • 221 kB
JSON
{
"name": "AskUbuntuCorpus",
"desc": "Visit https://github.com/sebischair/NLU-Evaluation-Corpora for more information",
"lang": "en",
"sentences": [{
"author": "Olivier Lalonde",
"url": "http://askubuntu.com/questions/14378/what-software-can-i-use-to-view-epub-documents",
"text": "What software can I use to view epub documents?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>You can use calibre software for viewing .epub documents.</p>\n\n<p>To install calibre from terminal:</p>\n\n<pre><code>sudo apt-get install calibre\n</code></pre>\n\n<p>Or click the icon below.</p>\n\n<h1><a href=\"http://packages.ubuntu.com/calibre\" rel=\"nofollow noreferrer\">calibre</a> <a href=\"http://apt.ubuntu.com/p/calibre\" rel=\"nofollow noreferrer\"><img src=\"https://hostmar.co/software-large\" alt=\"Install calibre\"></a></h1>\n\n<hr>\n\n<p>If you don't want to launch the full <code>calibre</code> client just to view your ebook files you can add a <code>.desktop</code> launcher to <code>calibre</code>'s inbuilt ebook viewer:</p>\n\n<ol>\n<li><p>Create a new <code>.desktop</code> file in <code>~/.local/share/applications</code>:</p>\n\n<pre><code>gedit ~/.local/share/applications/calibre-ebook-viewer.desktop\n</code></pre></li>\n<li><p>Copy and paste the following passage into the file:</p>\n\n<pre><code>#!/usr/bin/env xdg-open\n\n[Desktop Entry]\nVersion=1.0\nType=Application\nTerminal=false\nIcon=calibre\nExec=ebook-viewer\nName=Calibre Ebook Viewer\nComment=Display .epub files and other ebook formats\nMimeType=application/x-mobipocket-ebook;application/epub+zip;\nStartupWMClass=calibre-ebook-viewer\n</code></pre></li>\n<li><p>Save the file. You should now be able to launch Calibre's inbuilt ebook viewer both from the dash and through the right click \"Open with\" menu.</p></li>\n</ol>\n",
"author": "karthick87"
},
"training": false
},
{
"author": "NES",
"url": "http://askubuntu.com/questions/18495/which-pdf-viewer-would-you-recommend",
"text": "Which PDF Viewer would you recommend?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>Here are some well known PDF readers:</p>\n\n<ul>\n<li><a href=\"https://www.foxitsoftware.com/products/pdf-reader/\" rel=\"noreferrer\"><strong>Foxit Reader</strong></a> - View, create, convert, annotate, print, collaborate, share, fill forms and sign.</li>\n<li><a href=\"http://packages.ubuntu.com/xpdf\" rel=\"noreferrer\"><strong>xpdf</strong></a> - <a href=\"http://apt.ubuntu.com/p/xpdf\" rel=\"noreferrer\">Install xpdf</a> \"Xpdf is a small and efficient program which uses standard X fonts\". Lightweight, but with outdated interface.</li>\n<li><a href=\"http://packages.ubuntu.com/evince\" rel=\"noreferrer\"><strong>evince</strong></a> - <a href=\"http://apt.ubuntu.com/p/evince\" rel=\"noreferrer\">Install evince</a> Evince is a document viewer for multiple document formats. Used by default on Gnome.</li>\n<li><a href=\"http://packages.ubuntu.com/kpdf\" rel=\"noreferrer\"><strong>kpdf</strong></a> - <a href=\"http://apt.ubuntu.com/p/kpdf\" rel=\"noreferrer\">Install kpdf</a> KPDF is a pdf viewer based on xpdf for KDE 3.</li>\n<li><a href=\"http://packages.ubuntu.com/gv\" rel=\"noreferrer\"><strong>gv</strong></a> - <a href=\"http://apt.ubuntu.com/p/gv\" rel=\"noreferrer\">Install gv</a> - an old lightweight pdf viewer with an old interface. Size of the package is only 580k. gv is an X front-end for the Ghostscript PostScript(TM) interpreter.</li>\n<li><a href=\"http://packages.ubuntu.com/okular\" rel=\"noreferrer\"><strong>okular</strong></a> - <a href=\"http://apt.ubuntu.com/p/okular\" rel=\"noreferrer\">Install okular</a> - KDE pdf viewer, requires many KDE prerequisites. Can easily copy text and images.</li>\n<li>acroread - Adobe Acrobat Reader, no longer supported for Linux by Adobe, seems to be no longer supported by Ubuntu.</li>\n</ul>\n\n<p>Note that most Linux PDF viewers <a href=\"https://www.linux.com/news/software/applications/792447-3-alternatives-to-the-adobe-pdf-reader-on-linux/\" rel=\"noreferrer\">don't provide</a> the advanced capabilities of PDF.</p>\n",
"author": "karthick87"
},
"training": false
},
{
"author": "RolandiXor",
"url": "http://askubuntu.com/questions/48299/what-ides-are-available-for-ubuntu",
"text": "What IDEs are available for Ubuntu?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<h1><a href=\"http://www.geany.org/\" rel=\"nofollow noreferrer\">Geany</a> <a href=\"https://apps.ubuntu.com/cat/applications/geany\" rel=\"nofollow noreferrer\"><img src=\"https://hostmar.co/software-small\" alt=\"Install geany\"></a></h1>\n\n<blockquote>\n <p>[Geany] is a text editor using the GTK2 toolkit with basic features of an integrated development environment. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. It supports many filetypes and has some nice features. My favorite so far. </p>\n</blockquote>\n\n<p><a href=\"http://www.geany.org/Main/AllFiletypes\" rel=\"nofollow noreferrer\">Supported File Types</a></p>\n\n<p><img src=\"https://i.stack.imgur.com/gT8HU.png\" alt=\"enter image description here\"></p>\n",
"author": "wojox"
},
"training": false
},
{
"author": "Mark Davidson",
"url": "http://askubuntu.com/questions/622/whats-the-best-mind-mapping-software",
"text": "What's the best Mind Mapping Software?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>I like <a href=\"https://apps.ubuntu.com/cat/applications/freemind\">FreeMind <img src=\"https://i.stack.imgur.com/WMz4X.png\" alt=\"Install freemind\"></a> very much, which is a Java mindmapping tool. Colleagues of me like <a href=\"http://www.xmind.net/\">XMind</a> most.</p>\n",
"author": "ddeimeke"
},
"training": false
},
{
"author": "Benjamin",
"url": "http://askubuntu.com/questions/22871/software-to-read-a-qr-code",
"text": "Software to read a QR code?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p><strong>FOR QR CODE</strong></p>\n\n<p>Install <a href=\"https://launchpad.net/ubuntu/+source/libdecodeqr-examples\" rel=\"nofollow noreferrer\">libdecodeqr-examples</a> from the repositories,</p>\n\n<p>Use the program, <code>libdecodeqr-simpletest</code> provided by the package to read your QR encoded image</p>\n\n<p>EXAMPLE:</p>\n\n<p>running this command to read one of the test samples in the examples img folder</p>\n\n<pre><code>libdecodeqr-simpletest /usr/share/doc/libdecodeqr-examples/img/debian.or.jp.qr.jpg\n</code></pre>\n\n<p>Gives the decoded output in the console.</p>\n\n<pre><code>libdecodeqr version 0.9.3 ($Rev: 42 $)\nSTATUS=2080\n\n\nhttp://www.debian.or.jp \n\nMEBKM:TITLE:DebianJP;URL:http\\://www.debian.or.jp;;\n</code></pre>\n\n<p>as can be seen a url was encoded in the file</p>\n\n<p>There is also a sample application that works with your webcam called libdecodeqr-webcam\nyou need a webcam to use this, I have not tested it.</p>\n\n<p>IF you would like to generate QR code you can install qrencode from the repositories.</p>\n\n<pre><code>cat input.txt | qrencode -s 10 -o test.png\n</code></pre>\n\n<p>The above will encode the information in the input.txt file in an image file called test.png.</p>\n\n<p>or you can input text from the console with;</p>\n\n<pre><code>qrencode -s 10 -o ubuntu.png http://www.ubuntu.com\n</code></pre>\n\n<p>The above will generate a QR encoded image called ubuntu.png with the url <a href=\"http://www.ubuntu.com\" rel=\"nofollow noreferrer\">http://www.ubuntu.com</a> encoded in it. </p>\n\n<p><strong>FOR DATAMATRIX</strong></p>\n\n<p>Install <a href=\"https://launchpad.net/ubuntu/+source/libdmtx-utils\" rel=\"nofollow noreferrer\">libdmtx-utils</a> from the repository and try using the tools it provides.</p>\n\n<p>Libdmtx is a library for reading and writing Data Matrix 2D barcodes,\ntwo-dimensional symbols that hold a dense pattern of data with built-in error\ncorrection.</p>\n\n<pre><code>dmtxwrite - create Data Matrix barcodes, simple example;\n\ndmtxwrite -o image.png input.txt\n</code></pre>\n\n<p>This will encode text contained in input.txt in current directory to an image, image.png in current directory.</p>\n\n<p>dmtxread - scan Data Matrix barcodes, simple example;</p>\n\n<pre><code>dmtxread image.png\n</code></pre>\n\n<p>Reads the encoded image.png and writes the decoded messages to\nstandard output.</p>\n\n<ul>\n<li>See some tips here: <a href=\"http://libdmtx.wikidot.com/helpful-tips\" rel=\"nofollow noreferrer\">http://libdmtx.wikidot.com/helpful-tips</a></li>\n<li>Home page: <a href=\"http://www.libdmtx.org/\" rel=\"nofollow noreferrer\">http://www.libdmtx.org/</a></li>\n<li>Resources: <a href=\"http://www.libdmtx.org/resources.php\" rel=\"nofollow noreferrer\">http://www.libdmtx.org/resources.php</a></li>\n</ul>\n",
"author": "Sabacon"
},
"training": false
},
{
"author": "Vijay",
"url": "http://askubuntu.com/questions/37548/pdf-to-word-conversion-software",
"text": "PDF to word conversion software?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p><code>openoffice</code> (or alternatively the <code>libreoffice</code> fork) both have pdf import plugins and .doc export functionality... though both aspects suffer from conversion issues AFAIK. \nBy this I mean that the conversion fidelity isn't always 100%. </p>\n\n<p><strong>Abiword</strong> also works in a similar way, if OpenOffice doesn't work on your system.</p>\n",
"author": "jmetz"
},
"training": false
},
{
"author": "Alaukik",
"url": "http://askubuntu.com/questions/48700/is-there-software-that-can-view-dwg-files",
"text": "Is there software that can view .dwg files?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p><a href=\"http://www.3ds.com/products/draftsight/free-cad-software/\" rel=\"nofollow noreferrer\">DraftSight</a>. It doesn't cost money and they'll give you a nice .deb installer... but it's not open source or free software.</p>\n\n<p>On the upside, it will also let you create and edit <code>.dwg</code> files.</p>\n\n<p><img src=\"https://i.stack.imgur.com/8v1ra.jpg\" alt=\"enter image description here\"></p>\n",
"author": "Oli"
},
"training": false
},
{
"author": "Noah Goodrich",
"url": "http://askubuntu.com/questions/4246/what-are-some-good-php-editors",
"text": "What are some good PHP editors?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>Netbeans is a great IDE with lots of PHP support. I can't even start to name all the features I use but there are a fair amount. Check it out here: </p>\n\n<ul>\n<li><a href=\"http://netbeans.org/features/scripting/index.html\" rel=\"nofollow noreferrer\">http://netbeans.org/features/scripting/index.html</a> </li>\n<li><a href=\"http://netbeans.org/features/php/index.html\" rel=\"nofollow noreferrer\">http://netbeans.org/features/php/index.html</a> </li>\n</ul>\n\n<p>I've used both Eclipse for Java and Netbeans for PHP and I feel Netbeans is a bit stronger for PHP as well as XHTML and CSS. That's my personal preference anyways. </p>\n\n<p>Looking at <a href=\"http://www.jetbrains.com/phpstorm/\" rel=\"nofollow noreferrer\">PHPStorm</a> I assume you're looking for something similar to it, so a full IDE.\nNetbeans and Eclipse are the closest to that as far as I'm familiar with. </p>\n\n<p>Netbeans has most, if not all, the features that PhpStorm has on that page plus a whole lot more.</p>\n\n<p><img src=\"https://i.stack.imgur.com/rHbe3.png\" alt=\"Netbeans IDE\"></p>\n",
"author": "WalterJ89"
},
"training": false
},
{
"author": "Ivan",
"url": "http://askubuntu.com/questions/9248/is-there-a-software-utility-to-adjust-screen-gamma-brightness-contrast",
"text": "Is there a software utility to adjust screen gamma/brightness/contrast?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p><a href=\"http://jonls.dk/redshift/\" rel=\"nofollow\">Redshift</a><br>\nI have been using this. Its very nice.</p>\n\n<pre><code>sudo apt-get install redshift\n</code></pre>\n\n<p>To use it just type in the terminal <code>redshift</code></p>\n\n<p>gtk-redshift is just the gui, not required.</p>\n\n<hr>\n\n<p><a href=\"http://www.stereopsis.com/flux/\" rel=\"nofollow\">f.lux</a> is also an option.</p>\n",
"author": "N 1.1"
},
"training": false
},
{
"author": "aviran",
"url": "http://askubuntu.com/questions/344642/please-recommend-a-hex-editor-for-shell",
"text": "Please recommend a hex editor for shell",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p><code>emacs</code> has a hexl-mode for hex editing.</p>\n",
"author": "psusi"
},
"training": false
},
{
"author": "Paco Porras",
"url": "http://askubuntu.com/questions/279705/is-there-lan-topology-mapping-software-available-in-ubuntu",
"text": "Is there LAN topology mapping software available in Ubuntu?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>To my knowledge, there are few comparable software packages available, free and out-of-the-box, for Ubuntu that don't require quite a bit of manual configuration.</p>\n\n<p><a href=\"http://www.opennms.org/get-opennms/\" rel=\"nofollow noreferrer\">OpenNMS</a> might come close for your needs.</p>\n\n<p>The Network Topology Mapper(and the SolarWinds Tool Suite, in general) is a <em>very</em> good, mid-level, network management tool. Unfortunately, it is Windows only and comes with a significant price tag. Without a great deal of customization, you will be hard-pressed to find a comparable solution. If you have the budget and run a heterogeneous shop, I can strongly recommend using this piece of software. Also, their IPAM and NetFlow tools are quite solid, as well.</p>\n\n<p>That said, I know of three pieces of software that run on Linux and might give you a start dynamically mapping your network: <a href=\"http://cheops-ng.sourceforge.net/\" rel=\"nofollow noreferrer\">Cheops</a>, <a href=\"https://www.manageengine.com/network-performance-management.html\" rel=\"nofollow noreferrer\">OPManager</a>, and <a href=\"http://www.opennms.org/get-opennms/\" rel=\"nofollow noreferrer\">OpenNMS</a>.</p>\n\n<p>I would also recommend looking at the <a href=\"http://www.slac.stanford.edu/xorg/nmtf/nmtf-tools.html\" rel=\"nofollow noreferrer\">SLAC page</a> to see if there are any more recent developments in the network management space.</p>\n\n<p>The following applications are listed, in ascending order, in terms of cost, complexity, and feature-sets. </p>\n\n<p><strong>Cheops</strong></p>\n\n<p>Cheops is a free network mapping solution that will go out and discover and graphically display the servers and network nodes for you. It is old, and possibly no longer under development. But, it is a simple tool to use for network discovery.</p>\n\n<p><a href=\"http://cheops-ng.sourceforge.net/images/cheops.jpg\" rel=\"nofollow noreferrer\">http://cheops-ng.sourceforge.net/images/cheops.jpg</a></p>\n\n<p>You can download Cheops, <a href=\"http://cheops-ng.sourceforge.net/download.php\" rel=\"nofollow noreferrer\">here</a></p>\n\n<p><strong>OpenNMS</strong></p>\n\n<p>OpenNMS is able to do network discovery, event management, and performance management. It is available as a .deb package as well.</p>\n\n<p><a href=\"http://www.opennms.org/w/images/a/a9/Example.jpg\" rel=\"nofollow noreferrer\">http://www.opennms.org/w/images/a/a9/Example.jpg</a></p>\n\n<p>Core features:</p>\n\n<ul>\n<li>Automatic Layer-2 and Layer-3 link discovery</li>\n<li>Automatic Network / Node Discovery and Provisioning</li>\n<li>Automatic Service Discovery and Provisioning</li>\n<li>IPv6 support throughout (new)</li>\n<li>Manual Node and Service Provisioning Requisitions</li>\n<li>Path Outage support</li>\n</ul>\n\n<p><a href=\"http://www.opennms.org/wiki/Features_List\" rel=\"nofollow noreferrer\">Feature list</a></p>\n\n<p>OpenNMS <a href=\"http://www.opennms.org/get-opennms/\" rel=\"nofollow noreferrer\">download</a></p>\n\n<p><a href=\"http://www.opennms.org/wiki/Installation:Debian\" rel=\"nofollow noreferrer\">Installation instructions</a> for deb/apt-get.</p>\n\n<p><strong>OPManager</strong></p>\n\n<p>OpManager, on the other hand, is a commercial tool. It has a similar feature-set of the SolarWinds solution. In my experience, it is very robust and customizable. That said, you will have to pay for it. It does run on Debian-based systems, though it is not custom-tailored for Ubuntu. YMMV.</p>\n\n<p><img src=\"https://www.manageengine.com/network-monitoring/images/screenshot/network-mapping.gif\" alt=\"\"></p>\n\n<p>In terms of network management functionality, it supports:</p>\n\n<ul>\n<li>Availability and Uptime Monitoring</li>\n<li>Traffic and Utilization Monitoring</li>\n<li>Cisco Monitoring</li>\n<li>Network Device Health Monitoring\n(Router, Switch, Firewall, wireless access points)</li>\n<li>Network Mapping</li>\n<li>Custom Network Maps / Network Traffic Maps</li>\n<li>WAN RTT Monitoring</li>\n<li>Network Traffic Analysis (NetFlow, sFlow)</li>\n<li>VoIP Monitoring</li>\n<li>Network Configuration Management</li>\n<li>IP Address Management</li>\n<li>Switch Port Mapper</li>\n</ul>\n\n<p>For a full list of features, see:\n<a href=\"https://www.manageengine.com/network-monitoring/features.html\" rel=\"nofollow noreferrer\">here</a></p>\n\n<p>You can download a free trial of OPManager <a href=\"https://www.manageengine.com/network-monitoring/download.html\" rel=\"nofollow noreferrer\">here</a></p>\n\n<p>I would be very interested in hearing from others in regards to using a <strong>free</strong>, unified network management solution in Ubuntu that does not require in-house development and a great deal of care and feeding. </p>\n\n<p>In the mean time, when it's unreasonable to use OPManager, or OpenNMS, I will have to make due with my own custom Nagios/Cacti/SmokePing/Rancid/IPPlan solution for smaller networks.</p>\n",
"author": "Kevin Bowen"
},
"training": false
},
{
"author": "kmassada",
"url": "http://askubuntu.com/questions/237777/is-there-a-tool-like-wifi-analyzer-for-ubuntu",
"text": "Is there a tool like wifi analyzer for ubuntu?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>There is one more tool In Ubuntu software Centre named as <code>Kismet</code>.</p>\n\n<blockquote>\n <p>Kismet is a 802.11b wireless network sniffer. It is capable of\n sniffing using almost any supported wireless card using the Airo,\n HostAP, Wlan-NG, and Orinoco (with a kernel patch) drivers.</p>\n \n <p>Can make use of sox and festival to play audio alarms for network\n events and speak out network summary on discovery. Optionally works\n with gpsd to map scanning.</p>\n</blockquote>\n\n<p>you can install it from terminal( <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>T</kbd>) also with </p>\n\n<pre><code>sudo apt-get install kismet\n</code></pre>\n",
"author": "Ten-Coin"
},
"training": false
},
{
"author": "nixnotwin",
"url": "http://askubuntu.com/questions/31450/tool-for-recovering-deleted-data-from-a-flash-drive",
"text": "Tool for recovering deleted data from a flash drive",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<ol>\n<li><a href=\"http://www.cgsecurity.org/wiki/TestDisk_Download\" rel=\"noreferrer\"><strong>TestDisk</strong></a></li>\n</ol>\n\n<blockquote>\n <p>find lost partitions and data for\n External and Internal Drive for all of\n these file systems, ext2, ext3, ext4\n and encrypted partition. for windows\n FAT12/FAT16/FAT32 and NTFS boot\n sector.</p>\n</blockquote>\n\n<p><strong>For Recovering data from external Hard drive</strong><br>\nType <code>testdisk</code> on your terminal and follow this well written step <a href=\"http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step\" rel=\"noreferrer\">TestDisk Step-By-Step</a></p>\n\n<p><strong>For Recovering files from internal and External hard drives</strong> there is <a href=\"http://www.cgsecurity.org/wiki/PhotoRec\" rel=\"noreferrer\">PhotoRec</a> which comes with TestDisk.</p>\n\n<p>type <code>photorec</code> on your terminal</p>\n\n<p><img src=\"https://i.stack.imgur.com/3Riip.gif\" alt=\"enter image description here\"></p>\n\n<p>Select your drive and hit enter to proceed and follow the instruction.</p>\n\n<ol start=\"2\">\n<li><a href=\"http://extundelete.sourceforge.net/\" rel=\"noreferrer\">Extundelete</a>\n\n<blockquote>\n <p>extundelete is a utility that can\n recover deleted files from an ext3 or\n ext4 partition</p>\n</blockquote></li>\n</ol>\n",
"author": "Achu"
},
"training": false
},
{
"text": "What's a simple \"colour picker\" app for GNOME?",
"intent": "Software Recommendation",
"entities": [],
"training": false
},
{
"author": "Ashwin Nanjappa",
"url": "http://askubuntu.com/questions/279409/any-app-that-tells-me-to-take-regular-breaks-from-working",
"text": "Any app that tells me to take regular breaks from working?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p><a href=\"http://www.workrave.org/\" rel=\"nofollow noreferrer\">WorkRave</a> is probably what you want</p>\n\n<blockquote>\n <p>Workrave is a program that assists in the recovery and prevention of\n Repetitive Strain Injury (RSI). The program frequently alerts you to\n take micro-pauses, rest breaks and restricts you to your daily limit.</p>\n</blockquote>\n\n<p><img src=\"https://i.stack.imgur.com/vPCvO.png\" alt=\"break\"></p>\n\n<p><a href=\"http://www.workrave.org/screenshots/\" rel=\"nofollow noreferrer\">More screenshots</a></p>\n",
"author": "Flint"
},
"training": false
},
{
"author": "karthick87",
"url": "http://askubuntu.com/questions/16837/what-are-some-good-ascii-art-generators",
"text": "What are some good ASCII art generators?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p><a href=\"https://apps.ubuntu.com/cat/applications/toilet\" rel=\"nofollow noreferrer\">TOIlet</a> <a href=\"https://apps.ubuntu.com/cat/applications/toilet\" rel=\"nofollow noreferrer\"><img src=\"https://hostmar.co/software-small\" alt=\"Install TOIlet\"></a></p>\n\n<p>I've seen <a href=\"http://caca.zoy.org/wiki/toilet\" rel=\"nofollow noreferrer\"><strong>TOIlet</strong></a>, I think that is what you're looking for.</p>\n",
"author": "antivirtel"
},
"training": false
},
{
"author": "Olivier Lalonde",
"url": "http://askubuntu.com/questions/19479/what-are-some-good-gui-binary-viewers-editors",
"text": "What are some good GUI binary viewers/editors?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<ul>\n<li><p><a href=\"http://apt.ubuntu.com/p/ghex\" rel=\"nofollow noreferrer\"><strong>GHEX</strong> <img src=\"https://hostmar.co/software-large\" alt=\"Install ghex\"></a> </p>\n\n<p><img src=\"https://i.stack.imgur.com/tCT7x.png\" alt=\"alt text\"></p></li>\n<li><p><a href=\"http://apt.ubuntu.com/p/lfhex\" rel=\"nofollow noreferrer\"><strong>LFHEX</strong> <img src=\"https://hostmar.co/software-large\" alt=\"Install lfhex\"></a> </p>\n\n<p><img src=\"https://i.stack.imgur.com/fRE4F.png\" alt=\"alt text\"></p></li>\n<li><p><strong><a href=\"http://wxhexeditor.sourceforge.net/\" rel=\"nofollow noreferrer\">WXHEXEDITOR</a></strong> </p>\n\n<p><img src=\"https://i.stack.imgur.com/9ybeQ.png\" alt=\"alt text\"></p></li>\n</ul>\n",
"author": "karthick87"
},
"training": false
},
{
"author": "Sahil Grover",
"url": "http://askubuntu.com/questions/401114/which-is-the-best-pdf-metadata-viewer-for-ubuntu",
"text": "Which is the best PDF metadata viewer for Ubuntu?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<ol>\n<li><p>View pdf metadata for a file called Example.pdf: </p>\n\n<pre><code>pdfinfo Example.pdf \n</code></pre></li>\n<li><p>Edit existing metadata in the terminal using nano editor: </p>\n\n<pre><code>pdftk Example.pdf dump_data output Metadata-output.txt\nnano Metadata-output.txt \n</code></pre></li>\n<li><p>Update metadata: </p>\n\n<pre><code>pdftk Example.pdf update_info Metadata-output.txt output Example-new.pdf\n</code></pre></li>\n</ol>\n\n<p><sub><strong>Nano editor keyboard shortcuts</strong></sub><br>\n<sub>Use the keyboard combination <kbd>Ctrl</kbd> + <kbd>O</kbd> and after that press <kbd>Enter</kbd> to save the file to its current location.</sub><br>\n<sub>Use the keyboard combination <kbd>Ctrl</kbd> + <kbd>X</kbd> to exit nano.</sub> </p>\n",
"author": "karel"
},
"training": false
},
{
"author": "o_o_o--",
"url": "http://askubuntu.com/questions/339125/is-there-a-linux-file-manager-with-a-proper-drop-down-tree-view-like-finder-in",
"text": "Is there a Linux file manager with a proper drop-down tree view? (like finder in OS X)",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p><a href=\"http://dolphin.kde.org/features.html\" rel=\"nofollow noreferrer\">Dolphin</a> appears to have this capability.</p>\n\n<p><img src=\"https://i.imgur.com/hmTslUv.png\" alt=\"dophin\"></p>\n",
"author": "evilsoup"
},
"training": false
},
{
"author": "NES",
"url": "http://askubuntu.com/questions/20204/which-application-do-you-recommend-for-watching-tv-dvb",
"text": "Which application do you recommend for watching TV (DVB)?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<h2><a href=\"https://apps.ubuntu.com/cat/applications/vlc\" rel=\"nofollow noreferrer\">VLC <img src=\"https://hostmar.co/software-small\" alt=\"Install vlc\"></a></h2>\n\n<p>I'm using VLC. It works pretty good for what I do. Pause/resume feature works out of the box.</p>\n\n<p>You will have to scan for channels first. Use <a href=\"http://edafe.org/vdr/w_scan/\" rel=\"nofollow noreferrer\"><code>w_scan</code></a> (<a href=\"http://apt.ubuntu.com/p/w-scan\" rel=\"nofollow noreferrer\">install it</a> if necessary) and launch the following command : </p>\n\n<pre><code>w_scan -c FR -X > channels.conf\n</code></pre>\n\n<p>Replace FR with your country (<code>w_scan -c ?</code> to get the list). Now, each time you want to watch the tv, just launch this command :</p>\n\n<pre><code>vlc channels.conf\n</code></pre>\n\n<p>You can start recording with <kbd>Shift</kbd>+<kbd>R</kbd>, again to stop it. Pause a live program with <kbd>Space</kbd>.</p>\n\n<p>There is a good wiki about DVB in french : <a href=\"http://doc.ubuntu-fr.org/tnt\" rel=\"nofollow noreferrer\">http://doc.ubuntu-fr.org/tnt</a> (has a list of compatible hardware). </p>\n\n<h2>Others</h2>\n\n<p>Other softwares are <a href=\"https://apps.ubuntu.com/cat/applications/kaffeine\" rel=\"nofollow noreferrer\">kaffeine <img src=\"https://hostmar.co/software-small\" alt=\"Install kaffeine\"></a>, <a href=\"https://apps.ubuntu.com/cat/applications/totem\" rel=\"nofollow noreferrer\">totem <img src=\"https://hostmar.co/software-small\" alt=\"Install totem\"></a>, <a href=\"https://apps.ubuntu.com/cat/applications/gxine\" rel=\"nofollow noreferrer\">gxine <img src=\"https://hostmar.co/software-small\" alt=\"Install gxine\"></a> and <a href=\"https://apps.ubuntu.com/cat/applications/mplayer\" rel=\"nofollow noreferrer\">mplayer <img src=\"https://hostmar.co/software-small\" alt=\"Install mplayer\"></a> but I don't use them.</p>\n\n<p>I used to use Kaffeine but dropped it for vlc because I had some issues. Just retested it and it seems to work nicely. It is a good program for recording (instant or scheduled record as you want). Maybe should I reconsider my actual choice for watching DVB...</p>\n",
"author": "Maxime R."
},
"training": false
},
{
"author": "all4naija",
"url": "http://askubuntu.com/questions/121878/what-is-the-best-hdr-software",
"text": "What Is The Best HDR Software?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>Look at <a href=\"http://sourceforge.net/projects/qtpfsgui/\">Luminance HDR</a>.<br>\nThese <a href=\"http://wiki.panotools.org/Luminance_HDR\">notes</a> might be useful.<br>\nIt was called <a href=\"https://launchpad.net/ubuntu/precise/+source/qtpfsgui/\">Qtpfsgui</a> earlier.</p>\n\n<p>And <a href=\"http://kornelix.squarespace.com/fotoxx/\">fotoxx</a> (from the comments here) is also an Ubuntu package -- Looks promising, I'll try it too.</p>\n",
"author": "nik"
},
"training": false
},
{
"author": "Eric Johnson",
"url": "http://askubuntu.com/questions/32691/what-do-you-use-to-edit-microsoft-word-documents-docx",
"text": "What do you use to edit Microsoft Word documents (docx)?",
"entities": [{
"text": "Word",
"entity": "SoftwareName",
"stop": 7,
"start": 7
}],
"intent": "Software Recommendation",
"answer": {
"text": "<p><a href=\"http://www.libreoffice.org/\">LibreOffice</a> is the replacement for OpenOffice and does the same job.</p>\n",
"author": "Ashfame"
},
"training": false
},
{
"author": "Strae",
"url": "http://askubuntu.com/questions/11588/whats-the-best-wireframing-tool",
"text": "What's the best Wireframing tool?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p><a href=\"http://wireframesketcher.com\" rel=\"nofollow noreferrer\">WireframeSketcher</a> is a rapid wireframing tool for Eclipse-based IDEs like Aptana, Zend Studio and the like. It also comes as a standalone version for all major platforms including Ubuntu. Give it a try.</p>\n\n<p><img src=\"https://i.stack.imgur.com/X1f0m.png\" alt=\"Sample WireframeSketcher mockup\"></p>\n",
"author": "Peter Severin"
},
"training": false
},
{
"author": "ændrük",
"url": "http://askubuntu.com/questions/16386/is-there-any-software-that-will-do-face-recognition-in-photos",
"text": "Is there any software that will do face recognition in photos?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p><a href=\"http://www.digikam.org/\" rel=\"nofollow noreferrer\"><strong>Digikam</strong></a>\n<br>\n(...will in the next release, very soon. there may be a beta/development version that does now. please read:)</p>\n\n<p><em>\"Aditya Bhatt added face detection and recognition to digiKam. He says: 'Because of my project, digiKam can now automatically detect faces in photographs. It allows you to tag these faces with People Tags, and can also identify unknown faces and automatically tag them. My work also introduced a wrapper library called libkface that can be used by other KDE apps. Right now everything works okay, but it needs a bit of usability and GUI work, as well as some tweaks to libkface. <strong>Hopefully my work will make it in time for the Christmas release, which will be 2.0!</strong>'\"</em></p>\n\n<p>this is taken from the latest google summer of code update on kde.org, here:\n<a href=\"http://dot.kde.org/2010/12/14/kdegoogle-summer-code-2010-part-1-2\" rel=\"nofollow noreferrer\"><strong>http://dot.kde.org/2010/12/14/kdegoogle-summer-code-2010-part-1-2</strong></a>\n<img src=\"https://i.stack.imgur.com/r43TY.png\" alt=\"alt text\"></p>\n",
"author": "Ike"
},
"training": false
},
{
"author": "teo96",
"url": "http://askubuntu.com/questions/5537/applications-to-replace-itunes-for-ipod-synchronization",
"text": "Applications to replace iTunes for iPod synchronization?",
"entities": [{
"text": "iTunes",
"entity": "SoftwareName",
"stop": 3,
"start": 3
}],
"intent": "Software Recommendation",
"answer": {
"text": "<p>After many tests, i found a solution to my problem : </p>\n\n<ul>\n<li>Rhythmbox <strong>or</strong> Banshee for music </li>\n<li><strong>gPodder</strong> for podcasts</li>\n</ul>\n\n<p>This configuration works fine with iPod Nano 5th generation</p>\n\n<hr>\n\n<p>Details :</p>\n\n<ul>\n<li>Banshee corrupts iPod library if you synchronize podcasts (3 times the same podcast, podcast in music and music in podcast, wrong covers ...) </li>\n<li>Rhythmbox synchronize every podcasts but convert video podcasts into audio podcasts (very long synchronization process with high CPU usage)</li>\n<li><a href=\"http://gpodder.org/\" rel=\"nofollow\">gPodder</a> version 2.9 works fine with audio and video podcasts (add gPodder ppa for the 2.9 version : deb <a href=\"http://ppa.launchpad.net/thp/gpodder/ubuntu\" rel=\"nofollow\">http://ppa.launchpad.net/thp/gpodder/ubuntu</a> maverick main )</li>\n</ul>\n",
"author": "teo96"
},
"training": false
},
{
"author": "German Rumm",
"url": "http://askubuntu.com/questions/21971/is-there-an-ssh-connection-manager",
"text": "Is there an SSH connection manager?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>I'm glad you ask that question. Please, take a look at PAC Manager, a Perl/Gtk app that pretends to be Ubuntu/General Linux SecureCRT equivalent, but with much more options!</p>\n\n<p>FEATURES (by now):</p>\n\n<ul>\n<li>Simple GUI to manage/launch connections to remote machines.</li>\n<li>Configurable [Pre|Post]-connection local commands execution.</li>\n<li>Configurable list of macros (commands) to send to connected client.</li>\n<li>Configurable list of macros (commands) to execute locally when connected.</li>\n<li>Configurable list of conditional executions on connected machine via 'Expect':\n . forget about SSH certificates\n . chain multiple ssh connections\n . automate tunnels creation\n . etc</li>\n<li>Ability to connect to machines through a Proxy server!</li>\n<li>CLUSTER connections.</li>\n<li>TABBED/WINDOWED terminals</li>\n<li>Wake On LAN capabilities</li>\n<li>Local and Global variables, eg.: write down a password once, use it ANY where, centralizing its modification for faster changes! use them for:\n . password vault\n . reusing connection strings\n . etc</li>\n<li>Seamless Gnome/Gtk integration.</li>\n<li>Tray icon for 'right button' quick launching of managed connections.</li>\n<li>Written in Perl/Gtk (wait, <em>is</em> that a feature? Well, it is for me! ;=)</li>\n<li>DEB, RPM & .TAR.GZ packages available!!</li>\n<li>It is FREE (as in freedom)!! and licensed under GNU GPLv3.</li>\n</ul>\n\n<p>The following packages are required prior to installation of PAC:</p>\n\n<pre><code>libgnome2-gconf-perl\nlibexpect-perl\nlibnet-proxy-perl\nlibcrypt-cbc-perl\nlibcrypt-blowfish-perl\nlibgtk2-gladexml-perl\nlibgtk2-ex-simple-list-perl\nlibnet-arp-perl\nlibossp-uuid-perl\nlibcrypt-rijndael-perl\nlibgtk2-uniqu\n</code></pre>\n\n<p><a href=\"http://sourceforge.net/projects/pacmanager/\" rel=\"nofollow noreferrer\">http://sourceforge.net/projects/pacmanager/</a></p>\n",
"author": "perseo22"
},
"training": false
},
{
"author": "halflings",
"url": "http://askubuntu.com/questions/124159/a-light-alternative-to-gnome-system-monitor",
"text": "A light alternative to gnome-system-monitor?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>You can try </p>\n\n<ul>\n<li><a href=\"http://goodies.xfce.org/projects/applications/xfce4-taskmanager\">xfce4-taskmanager</a> from Xfce or </li>\n<li><a href=\"http://lxde.org/lxtask_task_manager\">lxtask</a> from LXDE.</li>\n</ul>\n\n<p>Neither of them pull any specific dependencies.</p>\n",
"author": "Reinis"
},
"training": false
},
{
"author": "DisgruntledGoat",
"url": "http://askubuntu.com/questions/21768/software-to-create-a-video-slideshow",
"text": "Software to create a video slideshow?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>You can try <a href=\"http://packages.ubuntu.com/imagination\" rel=\"nofollow noreferrer\">imagination</a> from the repository.</p>\n\n<pre><code>sudo apt-get install imagination\n</code></pre>\n\n<p>Imagination is a lightweight and user-friendly DVD slide show maker with\na clean interface and few dependencies. It only requires the ffmpeg encoder\nto produce a movie to be burned with another application.</p>\n\n<p>It currently features over 50 transition effects. Exporting the slideshow in FLV format is supported as well.</p>\n",
"author": "Sabacon"
},
"training": false
},
{
"author": "Tom Brito",
"url": "http://askubuntu.com/questions/102675/is-there-a-project-management-software-for-ubuntu-like-microsoft-project",
"text": "Is there a project management software for Ubuntu like Microsoft Project?",
"entities": [{
"text": "Project",
"entity": "SoftwareName",
"stop": 10,
"start": 10
}],
"intent": "Software Recommendation",
"answer": {
"text": "<p>I can also suggest <a href=\"http://apt.ubuntu.com/p/planner\" rel=\"nofollow noreferrer\">planner</a> <a href=\"http://apt.ubuntu.com/p/planner\" rel=\"nofollow noreferrer\"><img src=\"https://hostmar.co/software-small\" alt=\"Install planner\"></a>. It's available in Ubuntu software-center.</p>\n\n<p><a href=\"http://www.taskjuggler.org/\" rel=\"nofollow noreferrer\">TaskJuggler</a> is really powerful but also a bit harder to use and is not available in Software Center.</p>\n",
"author": "roadmr"
},
"training": false
},
{
"author": "Amey Jah",
"url": "http://askubuntu.com/questions/41601/is-there-any-recovery-software-available-for-ext4",
"text": "Is there any recovery software available for ext4?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>Take a look at this:</p>\n\n<p><a href=\"http://askubuntu.com/questions/25311/best-tool-to-recover-removed-files/25364#25364\">Best tool to recover removed files</a></p>\n\n<p><a href=\"http://askubuntu.com/questions/32685/formatted-and-lost-6-years-worth-of-photo-memories-any-way-to-get-this-back/32711#32711\">Formatted and lost 6 years worth of photo memories.. any way to get this back?</a></p>\n\n<p><a href=\"http://askubuntu.com/questions/13030/how-to-recover-ubuntu-partition-after-computer-failure/25366#25366\">How to recover Ubuntu partition after computer failure?</a></p>\n\n<p>Where the answers of some other people under those questions may also be helpful for you.</p>\n\n<p>Good luck!</p>\n",
"author": "Geppettvs D'Constanzo"
},
"training": false
},
{
"author": "Vassilis",
"url": "http://askubuntu.com/questions/11317/what-blog-editor-software-are-available",
"text": "What blog editor software are available?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p><a href=\"http://www.scribefire.com/\">http://www.scribefire.com/</a> - Extension for FireFox and Chrome</p>\n",
"author": "StalkerNOVA"
},
"training": false
},
{
"author": "Ivan",
"url": "http://askubuntu.com/questions/11633/can-you-recommend-a-good-modern-gui-download-manager-wget-wrapper",
"text": "Can you recommend a good modern GUI download manager (wget wrapper?)",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<h1><a href=\"http://projects.gnome.org/gwget/\" rel=\"nofollow noreferrer\">Gwget</a> <a href=\"http://apt.ubuntu.com/p/gwget\" rel=\"nofollow noreferrer\"><img src=\"https://hostmar.co/software-large\" alt=\"Install gwget\"></a></h1>\n\n<blockquote>\n <p>Gwget is a free graphical frontend for of Wget. GWget supports all of the main features that Wget does, as well as parallel downloads. Its name is derived from GUI - Graphical user interface, and Wget.</p>\n</blockquote>\n\n<p>You can also install it by</p>\n\n<pre><code>sudo apt-get install gwget\n</code></pre>\n\n<p><br /></p>\n\n<h1><a href=\"http://multiget.sourceforge.net/\" rel=\"nofollow noreferrer\">Multiget</a> <a href=\"http://apt.ubuntu.com/p/multiget\" rel=\"nofollow noreferrer\"><img src=\"https://hostmar.co/software-large\" alt=\"Install multiget\"></a></h1>\n\n<blockquote>\n <p>MultiGet is an easy-to-use GUI file\n downloader. It's programmed in C++\n and has a GUI based on wxWidgets. It\n supports HTTP/FTP protocols which\n covers the requirements of most users.\n It supports multi-task with\n multi-thread on multi-server. It\n supports resuming downloads if the Web\n server supports it, and if you like,\n you can reconfig the thread number\n without stopping the current task.\n It's also support SOCKS 4,4a,5 proxy,\n ftp proxy, http proxy.\n In v0.8.0, a new feature was introduced, that is so called P2SP, or in other words, get file from multiple servers, and combine the data from different site into one file. This makes downloads complete much faster.</p>\n</blockquote>\n\n<p>You can also install it by</p>\n\n<pre><code>sudo apt-get install multiget\n</code></pre>\n\n<p><br /></p>\n\n<h1><a href=\"http://fatrat.dolezel.info/\" rel=\"nofollow noreferrer\">Fatrat</a> <a href=\"http://apt.ubuntu.com/p/fatrat\" rel=\"nofollow noreferrer\"><img src=\"https://hostmar.co/software-large\" alt=\"Install fatrat\"></a></h1>\n\n<blockquote>\n <p>Fatrat is an open source download manager for Linux written in C++ and built on top of the Trolltech Qt 4 library. It is rich in features and is continuously extended.</p>\n</blockquote>\n\n<p>You can also install it by</p>\n\n<pre><code>sudo apt-get install fatrat\n</code></pre>\n\n<p><br /></p>\n\n<h1><a href=\"http://urlget.sourceforge.net/\" rel=\"nofollow noreferrer\">Uget</a> <a href=\"http://apt.ubuntu.com/p/uget\" rel=\"nofollow noreferrer\"><img src=\"https://hostmar.co/software-large\" alt=\"Install uget\"></a></h1>\n\n<blockquote>\n <p>Uget (formerly urlgfe) is a Free and Open Source download manager written in GTK+ , it has many of features like easy-to-use , cross-platform (Windows & GNU/Linux) , support pause and resume , classify download , every category has an independent configuration , and more ...</p>\n</blockquote>\n\n<p>You can also install it by</p>\n\n<pre><code>sudo apt-get install uget\n</code></pre>\n",
"author": "LFC_fan"
},
"training": false
},
{
"author": "c0rp",
"url": "http://askubuntu.com/questions/753608/is-there-any-program-for-fuzzy-string-matching-which-provides-a-match-score",
"text": "Is there any program for fuzzy string matching which provides a match score?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>I found <a href=\"https://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance#Bash\">this page</a> which provides implementations of the Levenshtein distance algorithm in different languages. So, for example in bash, you could do:</p>\n\n<pre class=\"lang-bash prettyprint-override\"><code>#!/bin/bash\nfunction levenshtein {\n if [ \"$#\" -ne \"2\" ]; then\n echo \"Usage: $0 word1 word2\" >&2\n elif [ \"${#1}\" -lt \"${#2}\" ]; then\n levenshtein \"$2\" \"$1\"\n else\n local str1len=$((${#1}))\n local str2len=$((${#2}))\n local d i j\n for i in $(seq 0 $(((str1len+1)*(str2len+1)))); do\n d[i]=0\n done\n for i in $(seq 0 $((str1len))); do\n d[$((i+0*str1len))]=$i\n done\n for j in $(seq 0 $((str2len))); do\n d[$((0+j*(str1len+1)))]=$j\n done\n\n for j in $(seq 1 $((str2len))); do\n for i in $(seq 1 $((str1len))); do\n [ \"${1:i-1:1}\" = \"${2:j-1:1}\" ] && local cost=0 || local cost=1\n local del=$((d[(i-1)+str1len*j]+1))\n local ins=$((d[i+str1len*(j-1)]+1))\n local alt=$((d[(i-1)+str1len*(j-1)]+cost))\n d[i+str1len*j]=$(echo -e \"$del\\n$ins\\n$alt\" | sort -n | head -1)\n done\n done\n echo ${d[str1len+str1len*(str2len)]}\n fi\n}\n\nwhile read str1; do\n while read str2; do\n lev=$(levenshtein \"$str1\" \"$str2\");\n printf '%s / %s : %s\\n' \"$str1\" \"$str2\" \"$lev\"\n done < \"$2\"\ndone < \"$1\"\n</code></pre>\n\n<p>Save that as <code>~/bin/levenshtein.sh</code>, make it executable (<code>chmod a+x ~/bin/levenshtein.sh</code>) and run it on your two files. For example:</p>\n\n<pre class=\"lang-none prettyprint-override\"><code>$ cat fileA\nfoo\nzoo\nbar\nfob\nbaar\n$ cat fileB\nfoo\nloo\nbaar\nbob\ngaf\n$ a.sh fileA fileB\nfoo / foo : 0\nfoo / loo : 1\nfoo / baar : 4\nfoo / bob : 2\nfoo / gaf : 3\nzoo / foo : 1\nzoo / loo : 1\nzoo / baar : 4\nzoo / bob : 2\nzoo / gaf : 3\nbar / foo : 3\nbar / loo : 3\nbar / baar : 1\nbar / bob : 2\nbar / gaf : 2\nfob / foo : 1\nfob / loo : 2\nfob / baar : 4\nfob / bob : 1\nfob / gaf : 3\nbaar / foo : 4\nbaar / loo : 4\nbaar / baar : 0\nbaar / bob : 3\nbaar / gaf : 3\n</code></pre>\n\n<p>That's fine for a few patterns but will get <em>very</em> slow for larger files. If that's an issue, try one of the implementations in other languages. For example Perl:</p>\n\n<pre class=\"lang-perl prettyprint-override\"><code>#!/usr/bin/perl \nuse List::Util qw(min);\n\nsub levenshtein\n{\n my ($str1, $str2) = @_;\n my @ar1 = split //, $str1;\n my @ar2 = split //, $str2;\n\n my @dist;\n $dist[$_][0] = $_ foreach (0 .. @ar1);\n $dist[0][$_] = $_ foreach (0 .. @ar2);\n\n foreach my $i (1 .. @ar1) {\n foreach my $j (1 .. @ar2) {\n my $cost = $ar1[$i - 1] eq $ar2[$j - 1] ? 0 : 1;\n $dist[$i][$j] = min(\n $dist[$i - 1][$j] + 1, \n $dist[$i][$j - 1] + 1, \n $dist[$i - 1][$j - 1] + $cost\n );\n }\n }\n\n return $dist[@ar1][@ar2];\n}\nopen(my $fh1, \"$ARGV[0]\");\nopen(my $fh2, \"$ARGV[1]\");\nchomp(my @strings1=<$fh1>);\nchomp(my @strings2=<$fh2>);\n\nforeach my $str1 (@strings1) {\n foreach my $str2 (@strings2) {\n my $lev=levenshtein($str1, $str2);\n print \"$str1 / $str2 : $lev\\n\";\n }\n}\n</code></pre>\n\n<p>As above, save the script as <code>~/bin/levenshtein.pl</code> and make it executable and run it with the two files as arguments:</p>\n\n<pre><code>~/bin/levenstein.pl fileA fileB\n</code></pre>\n\n<p>Even in the very small files used here, the Perl approach is 10 times faster than the bash one:</p>\n\n<pre><code>$ time levenshtein.sh fileA fileB > /dev/null\n\nreal 0m0.965s\nuser 0m0.070s\nsys 0m0.057s\n\n$ time levenshtein.pl fileA fileB > /dev/null\nreal 0m0.011s\nuser 0m0.010s\nsys 0m0.000s\n</code></pre>\n",
"author": "terdon"
},
"training": false
},
{
"author": "Giorgio",
"url": "http://askubuntu.com/questions/109935/are-there-any-hardware-diagnostic-tools",
"text": "Are there any hardware diagnostic tools?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>What you ask is not specific for Linux/Ubuntu and can be achieved with 3rd party software. For instance: <a href=\"http://www.ultimatebootcd.com/\" rel=\"nofollow noreferrer\">Ultimate boot CD</a> might be helpful.</p>\n\n<p><img src=\"https://i.stack.imgur.com/s80p1.gif\" alt=\"enter image description here\"></p>\n\n<p>See the link for a long long list of tools that it has. Amongst it are BIOS, CPU, Hard Disk Information & Management, Hard Disk Diagnosis and memory tools. It also includes gparted and a resize program.</p>\n",
"author": "Rinzwind"
},
"training": false
},
{
"author": "Tim",
"url": "http://askubuntu.com/questions/31260/recommendation-for-regex-editor",
"text": "Recommendation for Regex editor?",
"entities": [],
"intent": "Software Recommendation",
"answer": {
"text": "<p>By far, the best tool for the job is <a href=\"http://gskinner.com/RegExr/\" rel=\"nofollow noreferrer\">RegExr</a>.</p>\n\n<p>The link above will take you to the online version, which is awesome and definitely the best RegEx tool I've ever used.</p>\n\n<p>If you're looking for something you can install in Ubuntu, then try the <a href=\"http://www.gskinner.com/RegExr/desktop/\" rel=\"nofollow noreferrer\">desktop version</a>, which is an Adobe Air application:</p>\n\n<p><img src=\"https://i.stack.