sudo apt-get install libgmp-dev libgmp3-dev libgmp3c2Now you can do a
./configure
.sudo apt-get install libgmp-dev libgmp3-dev libgmp3c2Now you can do a
./configure
.#Download the library-fpic or -fPIC means position independent code.
wget https://mattmccutchen.net/bigint/bigint-2010.04.30.tar.bz2 --no-check-certificate
#Extract it
tar -xvf bigint-2010.04.30.tar.bz2
#Rename it to bigint
mv bigint-2010.04.30 bigint
#copy it to the include dir
sudo mkdir -p /usr/local/include/bigint/
sudo cp bigint/* /usr/local/include/bigint/
#creating shared library
#create object files
g++ -fpic -c BigInteger.cc BigIntegerAlgorithms.cc BigIntegerUtils.cc BigUnsigned.cc BigUnsignedInABase.cc
#create shared library called libbigint.so which can be invoked using -lbigint
g++ -shared -o libbigint.so BigInteger.o BigIntegerAlgorithms.o BigIntegerUtils.o BigUnsigned.o BigUnsignedInABase.o
#copy it into the local lib dir
sudo cp libbigint.so /usr/local/lib/
#configure ldconfig (dynamic linker runtime bindings) to rebuild the shared library cache
#note that ldconfig should contain the path where you copied the libbigint.so file
#/usr/local/lib is already added. You can add additional paths in /etc/ld.so.conf.d/
sudo /sbin/ldconfig -v /usr/local/lib
// big.cppCompile & run
#include <iostream>
#include <bigint/BigIntegerLibrary.hh>
using namespace std;
int main()
{
BigInteger a = 31415926535;
cout << a * a * a * a * a * a * a * a << endl;
return 0;
}
g++ big.cpp -o big -lbigint
./big
#output
948853101390095872711467085400133633064593764027907283066796117781702198979687890625
display: none;
for the span tag. Only when we hover, we'll display the span tag by changing display to block.<a id="t1" href="">kadaj<span>..lost in silence</span></a>and the CSS for that is
/* hide span tag in the anchor tag (which is our tooltip) */The only thing that changes is the top and left value depending on where the tooltip should appear when you hover on the link. However, there is a drawback when using this method. It will work only if the position of the link is fixed. Here we are using absolute position for the tooltip, so if the position of the link changes, the position of the tooltip won't change, unless you use javascript and change it accordingly. It is good for pages with fixed layout. Not ideal for blog posts, where the position of the post changes when new posts appear.
#t1 span {
display: none;
}
/* on hover show the span tag (tooltip) */
#t1:hover span {
display: block;
position: absolute;
top: 11em; /* depends on the position of the link */
left: 6em; /* depends on the position of the link */
border-radius: 3px;
text-align: center;
font: 10px Verdana, sans-serif;
padding: 0 .5em 1.5em .5em;
margin: .5em;
width: 13em;
z-index: 100; /* to show on top of other elements */
border:1px solid darkcyan;
background-color: lightcyan;
opacity: .9;
color: black;
}
/* styling tooltip image */
#t1:hover span img {
position: relative;
top: .7em;
left: .2em;
z-index: 100;
}
if (top === self) {
//not in an iframe
} else {
//in an iframe
}
window.history.pushState(null, "", "#hashtag")
method. We need to be concerned mainly about the third parameter, which is the hashtag string. After that we'll trigger a 'hashchange' event $(this).trigger("hashchange");
.window.history.pushState(data, title, url)
@param data
{So when we want to navigate to another page we can save that data so that, the next time when we revisit, popstate will fire and you can retreive the data through
page: '1',
title: "Tutorial",
category: "Html5",
desc: "intro"
}
event.originalEvent.state
object.@param title
@param url
window.location.hash
window.location.hash
, we can take the necessary action. Since we already listen for the hashchange event, we'll trigger the event when the user clicks the page's anchor link to go to that particular page. Otherwise, we can write a separate way to deal with clicking anchor links as opposed to clicking back/forward buttons, which isn't really necessary. So that's the reason we trigger 'hashchange' event manually.window.history.replaceState(data, title, url)
// Add scripts to DOM by creating a script tag dynamically.We use the native DOM API instead of jQuery for this particular case because of the way jQuery treats <script> tags. jQuery inserts script to DOM, then evaluates the script separately and then it removes the tag from the DOM. So you won't see the script tag, but the script will get executed.
// @param {String=} url Url of a js file
// @param {String=} src Script source code to add the source directly.
// NB: At least one of the parameters must be specified.
var hookScripts = function(url, src) {
var s = document.createElement("script");
s.type = "text/javascript";
s.src = url || null;
s.innerHTML = src || null;
document.getElementsByTagName("head")[0].appendChild(s);
};
// usage eg:
hookScripts('url/path/to/myscript.js'); //url
hookScripts(null, 'alert("hello");'); //giving the source code directly
// Add stylesheets to DOM by creating a link tag dynamically.
// @param {String} url The stylesheet url.
var hookLinks = function(url) {
var link = $('');
link.attr({
type: 'text/css',
rel: 'stylesheet',
href: url
});
$('head').append(link);
};
//usage eg:
hookLinks('url/to/stylesheet.css');
C:\Documents and Settings\<your-user-name>\Application Data
folder and any local folders if any.Import/Export -> Export
all messages in the folder to EML Format
from the context menu. Choose a location to save the exports, say C:\mails\eml-format\Inbox
for inbox and C:\mails\eml-format\Sent Mails
for sent mails.File
menu choose Import -> Messages -> Live Mail
. Choose the directory from the previous step where we saved the mails. So at first we will import mails from Inbox folder, so we'll choose C:\mails\eml-format\Inbox
folder. Click Next
and choose All folders
, and complete the import wizard. Similarly for the other folders.Storage Folders -> Imported Folders
section on the left pane. Now you can select all the emails under that folder and drag-and-drop to Inbox or any other folder, and organize them accordingly.diff -ru originalfile modifiedfile >patch.diffIf you are using IDEs like Eclipse with SVN plugins, then to generate a diff file, right-click on the file and choose Team -> Create Patch -> Save in File System (browse to the directory of your choice and give the file a name, say patch.diff) and click next. Choose Selection and click Finish.
#eg:
diff -ru script.orig.js script.js >bugfix-1234.diff
cabal update
cabal install HDBC-sqlite3 --extra-lib-dirs=C:\sqlite --extra-include-dirs=C:\sqlite