C/C++

TwitterFacebook
Get flash to fully experience Pearltrees

InstallGuide

1) If you want the stable 2.4.0 release of OpenCV, get it here for Windows , Linux or Mac and Android . (Or if you want the latest code being developed each day, get it from our SVN server ) 2) Install CMake and some prerequisite libraries. (You can skip this if you just use the pre-built Visual Studio 2008/2010 binaries for Windows). 3) Use CMake to build OpenCV binaries (such as "opencv_core240.dll" or "libopencv_core.so.2.4.0") from the source code. (You can skip this if you use the pre-built Visual Studio 2008/2010 binaries for Windows). http://opencv.willowgarage.com/wiki/InstallGuide
http://www.investuotojas.eu/2011/12/01/c-is-dead-long-live-c/ During the summer I was contacted by a hedge fund from Bahamas. The fund was looking for someone with R language skills on-site and insisted for phone interview. Besides obvious questions about finance, statistics, coding and how many tennis balls can fit in Boeing 747 (ok, this question was omitted), they wanted to know if I code in C++. So, I told them true – the last time I wrote a line in C++ was more or less 10 years ago.

Quantitative thoughts » C++ is dead. Long live C++

http://diybetfairbots.lefora.com/2008/08/28/web-scraping-in-java-or-c/ Now that i'm a full-blown Linux user, all my old VB6 code has become semi-obsolete. Not that it's a major problem, because after several years of botting against betfair, i have finally accepted defeat (sort of). On the plus side, moving to Linux has given me that extra push to learn C/C++ and Java, something i've been meaning to do for a couple of years but never bothered with because coding whatever i wanted in VB6 was always the easy option. I've done a little Java and understand the concept of classes and the whole OO thing, however i've not previously had a specific project to keep me interested. To cut a long story short, i need to do some web scraping in order to gather some info from several websites. I'd like to use some "native" Java functions and i'm not keen on using any 3rd party libraries because Java is already very bloaty.

Web scraping in Java or C++

In Defense of Screen Scraping

http://www.codingthewheel.com/archives/in-defense-of-screen-scraping/ Hand-coded image recognition. Checking individual color values to try to figure out if the random smear of pixels forms a “L” or an “H”. Dubious OCR schemes. Internet spambots.
http://www.codersource.net/microsoft-net/c-advanced/html-screen-scraping-in-c.aspx

HTML Screen Scraping in C# by azamsharp

What is Screen Scraping ? Screen Scraping means reading the contents of a web page. Suppose you go to yahoo.com, what you see is the interface which includes buttons, links, images etc. What we don't see is the target url of the links, the name of the images, the method used by the button which can be POST or GET. In other words we don't see the HTML behind the pages.
http://www.daniweb.com/software-development/cpp/threads/304341/c-screen-scraping-from-html I hope you know that there are libraries already made for this. If you are doing this just for practice then go ahead. To get the whole string and not be limited by cin, use getline(cin,stringVariable) . This puts the whole line into the stringVariable. Work from there.

C++ Screen Scraping from HTML - C++

Tu n'as peut-être pas installé ce qu'il faut, dans ta distribution tu dois avoir des paquets du genre curl qui contient les binaires de la lib et aussi quelque chose comme libcurl-dev qui contient ce dont t'as besoin pour programmer en utilisant curl. Tu n'as pas besoin d'inclure manuellement /usr/include dans la liste des chemins, gcc/g++ va chercher là de toutes façons. quelle distribution utilises tu ? Tu vas aussi avoir besoin de dire au compilateur/linker que tu veux lier ton programme à curl en rajoutant l'option "-lcurl" dans ta ligne de compilation. Tout ça est faisable à travers eclipse. <p style="text-align:right;color:#A8A8A8"></p> http://www.developpez.net/forums/d796039/c-cpp/cpp/debuter-curl/

Débuter avec cURL

// Copie du code source d'une page web dans une // chaîne, affichage brut, et sauvegarde dans un fichier // 09012011 !(C) (Copy-left) #include <stdlib.h>

Voici comment installer libcurl et l'utiliser

http://www.siteduzero.com/forum-83-600228-p1-voici-comment-installer-libcurl-et-l-utiliser.html
Web scraping You are encouraged to solve this task according to the task description, using any language you may know. Create a program that downloads the time from this URL: http://tycho.usno.navy.mil/cgi-bin/timer.pl and then prints the current UTC time by extracting just the UTC time from the web page's HTML . The page http://tycho.usno.navy.mil/cgi-bin/timer.pl is no longer available since july 2011.

Web scraping

http://rosettacode.org/wiki/Web_scraping#C.2B.2B

installer la lirairie libcurl dans code block

http://www.siteduzero.com/forum-83-490021-p1-installer-la-lirairie-libcurl-dans-code-block.html Bonjour je peux t'aider mais je n'utilise pas code blocks j'utilise visual c++ 2008 express. Personnellement j'utilise libcurl sans installé la librairie dans visual. Pour être plus précis j'ai fait comme si j'avais créer une .dll et que maintenant je créai un .exe qui utilise la .dll. Pour ceux que cela intéresse voici comment j'ai fait pour visual c++ 2008 express : Premièrement j'ai télécharger la dernière source de libcurl sur le site officiel : curl-7.20.1 . Ensuite je l'ai extrait dans mon dossier projets : "C:\Users\ChuChen\Documents\Visual Studio 2008\Projects".
Today we are going to discuss a bit advanced topic, not in the sense that it’d be difficult to understand (I always try to make things easier anyway) but that you won’t find an apparent use of it. What we are going to do today is what is called Web Scraping. By the way web scraping means retrieving data from web and pulling out useful information out of it for our use. Of course this wouldn’t be the next best web scraper rather it would la a basic foundation on how simple a web scraper can be.

Pulling Out Data From Google Search Results | Learning Computer Programming

Abstract This paper describes a C# program developed in Microsoft Visual Studio for extracting numerical data from Web pages and transferring it to a database. It covers technical issues such as - Using an Internet Explorer control for background HTTP communication and text data extraction Creating subclasses of IFormattable to handle specialized numerical formats Using idle event processing to implement non-blocking processes without using separate threads Strategies for developing parsers for Web page contents Integration with DMBS systems using native SQL Use of the OleDBConnection class Specific Visual Studio problem areas such as References across multiple development platforms All code necessary to build and modify the application is provided, along with this document which details the operation of the system and indicates places where changes can be made to parse different types of data from pages on the WWW.

Ripping Data on the Web