Guide for Carrot2 in PDF - carrot2

Could you please say if there is a pdf (or doc) version of the documentation? If yes, where can I find it?
If such does not exist, I guess it would be great to create such.
PDF allows reading the file in Mendeley Desktop program, underlining parts that are important for me and putting comments. THis would be a great advantage to compare with the html version of the guide.

If you're using Chrome, just go to the Carrot2 online help manual and choose "Print...". In the "Destination" box on the left-hand side change it to "Save as PDF" and click OK. This functionality is built-in to Chrome by default.
For other browsers I'm sure there are add-ins/plugins you can find or you can always use a third-party PDF driver like PrimoPDF.

Related

Where is the firefox title located in the source?

This may seem like an odd question, but does anybody know where or how to locate the title in the firefox source code? like firefox.exe and the default home page source and such?
Google yielded no results, same as on the firefox page.
Looking for it manually would take a while, considering the sheer size.
The latest source code for Mozilla Firefox is nicely indexed on DXR in a searchable form (you can even use regular expressions there!).

How do I add a .chm help file to my application built in Lazarus?

The only documentation I can find online points me to a demo application called Ihelp which doesn't appear to exist in my version of Lazarus (v1.2.4).
I've created my .chm help file and just want to make it available when the user presses F1 (or selects 'Help' from a popup menu).
There is a CHM component in the FCL but I can't figure out how to use it.
Also the Form appears to have various Help related parameters but again I cannot figure out how to use them - all examples seem to point to separate HTML files rather than a compiled HTML help file.
There's a wiki page about it in the Lazarus/FreePascal wiki:
http://wiki.lazarus.freepascal.org/Add_Help_to_Your_Application
As far as my knowledge Lazarus provides help files as HTML files by default, anyway CHM files are supported too.
There's a sample program in your Lazarus installation:
${lazarusdir}/components/chmhelp/democontrol/.
This demo shows how to set up a context- sensitive help button (F1 usually).
Be sure to check the documentation about lhelp, the default Lazarus CHM viewer too, described here:
http://wiki.lazarus.freepascal.org/lhelp
I think Lazarus has a HtmlHelp API as well in packages\winunits-base\tests/hhex*
This forum discussion has more details about it:
http://forum.lazarus.freepascal.org/index.php/topic,25492.msg154922.html?PHPSESSID=68463ec6cc0de1a479b6c03165b817e3#msg154922

where can I download this code

I find a interesting website:http://www.brightpointinc.com/interactive/political_influence/
I want to learn its visualization using d3.
But when I download it, using right click button-------- save as The download page seems does not work. It seems lack some data, so I get back to the website to download some data, but it lacks some of them, can anyone send me an work version? thanks
As Lars says, your best bet is to look at the source code. To do this, you can use something like Chrome Developer Tools or Firebug for Firefox. I use the latter, so I'll take that as an example.
First, I'd right-click on the visualization itself, and click on Inspect Element with Firebug. This will pull up the HTML, which is only semi-helpful, since it only shows the output rather than the JavaScript code which created it.
To get at the JavaScript, you can use Firebug's Script tab. Most websites have more than one script, so you can hunt through the scripts being used by browsing through the dropdown menu in the second toolbar. The _buildChords.js script looks the most promising; that has some recognizable d3 code in it. You could check out the others to see what else they're calling (since it looks like there might be others - data.js, events.js, and so on).
Happy learning.

How to make a site-lookup addon for Firefox?

I'd like to create an addon for Firefox that would enable me to search a particular site by selecting text on one site and choosing to search another site by selecting that option in the context menu.
I already have an extension like that in my browser - the Wikipedia Lookup extension. Basically, I want the exact same functionality but which will send the search text to a different site.
I'm completely new to Firefox addons, so can somebody tell me what's involved in this? Or point me at a site with a list of instructions to do a plugin like this? I can see examples on how to make a Hello World kind of plugin but I can't see how to extend that example into what I need. Thanks.
Have you considered opening the Wikipedia extension source and modifying the pointer from wikipedia.com to the other search site? This is assuming you're using Windows Vista or higher. The source code should be located at:
C:\Users\YourUserName\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default\extensions\something#wikipedia.com\chrome\content
You would then have to modify the source code inside to change the pointer, and the POST variables string to match that of the site you will be using.
I hope this at least points you in the general direction!
-Alex

Can I get the current page sourcecode from a firefox extension?

Can this be done? How?
I want to write my own extension. Can Get the current page sorcecode in my own extension?
As Rich says, adding view-source in front of the URL will give you the current page's source code. A keyboard shortcut for this is Ctrl+U.
I want to write my own extension.
There are a number of existing Firefox extensions that fetch a page's source code and apply some action to it (colour-coding, syntax-checking, etc). Downloading them and looking at how they handle it may be a good place to start!
7 Firefox extensions to explore source code
View Formatted Source extension
If you're new to Firefox extension development, this article at Lifehacker is an excellent primer in how to start, and will give you an idea of where to look in the above linked extensions for tasks that may be similar to your own.
Sure, just add view-source: in front of the URL.
view-source:http://stackoverflow.com/posts/edit/145419
Will show the source of this page for instance - try it in the address bar.

Resources