Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~7K People Reached
Favorite Tags
Member Avatar for codedhands

Hello Good people,am not so sure if this should go here,i am student who is interested in developing a search engine that indexes pages from my country.I have been doing my research on Algorithm to use for sometime now and i have found HITS and PageRank as the best out …

Member Avatar for binoykp
0
1K
Member Avatar for codedhands

Hello Good people,am not so sure if this should go here,i am student who is interested in developing a search engine that indexes pages from my country.I have been doing my research on Algorithm to use for sometime now and i have found HITS and PageRank as the best out …

Member Avatar for almostbob
0
201
Member Avatar for codedhands

Hello,i am developing an indexer that indexes html pages.My problem lies in the aspect of creating a global index of all the stored pages in the reprository.I need a method that will be suitable for quick retrieval and insertion of new data.I have tried using STL MAP but i do …

Member Avatar for codedhands
0
145
Member Avatar for codedhands

Goodday everyone,i am working on an archive like application.i intend to have a global index of data and thier physical file location stored in a stl map,then saved in a file. I would want to know if the file containing the map can be read quickly or is there a …

0
66
Member Avatar for codedhands

Hello, i have a problem constructing a regular expression to strip out puntuations from a document.Below is a simple example of my code [CODE=c++] # //headers here //... string a="kennedy .really-really. .cool"; string replace=" "; string newStr; boost::regex expression("[ ]+(\\.)|(\\.)[ ]+",boost::regex::icase); newStr=boost::regex_replace(a,expression,replace); cout << newStr << endl; //output kennedy really-really …

Member Avatar for codedhands
0
83
Member Avatar for codedhands

Hello,i am writing an application which involves invoking multiple threads to pick data from a queue and then delete or pop the retrieved data.My codes work well for this purpose but then my application suddenly crashes with a dialog with the following error message: Debug assertion failed! Program:.... Expression:_BLOCK_TYPE_IS_VALID(pHead->nBlockUse) ------------------------------------------------------------------------------ …

Member Avatar for codedhands
0
198
Member Avatar for codedhands

Hi,i am having problems passing arguments to a boost thread.I have tried using the boost::bind,it works without argument but when i try to pass arguments,it doesn't work.Here are my codes: [CODE=C++] class Parser { void Start(int a) { ... } void makeThread(int id) { boost::thread pThread(boost::bind(&Parser::Start,id)); //Problem here boost::thread::yield(); pThread.join(); …

0
90
Member Avatar for codedhands

Hi,Am writing an application which requires storing data to a map and saving it to a file.How do i save a STL map to a file and retrieve it without the application crashing?

Member Avatar for siddhant3s
0
813
Member Avatar for codedhands

Hello everyone,i am pretty new to GUI programming,am currently playing around with PyQt4.I would like to know how the ui for yahoo was created.Because the controls provided by pyqt are just normal gray-colored stuffs.Could it be that those fancy control or widgets are graphical images done with photoshop,gimp etc? Please …

Member Avatar for scru
0
98
Member Avatar for codedhands

Hello everyone,i really need help with this big problem(to me its big).The project am writing requires a panel to display its current status information on.I figured that i will need to make that panel scrollable because it will contain multiple lines of the text.My problem is i do not know …

Member Avatar for codedhands
0
2K
Member Avatar for codedhands

Hello.Please i have a problem with my code.I am trying to edit a file.The problem occurs when i use the seek function.for example,i have a file outlined like this: [CODE] myfile.txt <Name>Ben</Name> <Age>32</Age> <Sex>Male</Sex> <Country>Mars City</Country> [/CODE] Now,when i try to edit the Age,i use the code: [CODE=python] f=open('myfile.txt','a') f.seek(17,0) …

Member Avatar for lllllIllIlllI
0
96
Member Avatar for codedhands

Hi all.Am trying to extract a group of words from a text file.but i dont get the expected result using regular expression.Here are my codes: mytext.txt contains: [code] Group=1 Name=mattew Sex=male Age=25 Group=2 Name=John Sex=Male Age=19 [/code] When i try to get the group=1 i end up get everything below …

Member Avatar for codedhands
0
104
Member Avatar for codedhands

Hi everyone,i wrote a python thread that opens a file and reads it.The problem is that i dont know how to return the data as the thread will not return it from the run() method.I tried writing another function that gets the file content but when i call this function,it …

Member Avatar for codedhands
0
2K
Member Avatar for codedhands

Hi,am trying to search and extract the text [CODE]href="http://www.yahoo.com"[/CODE] from a string <a href="http://www.yahoo.com" id="link1">.Here is my code: [CODE=python] import re p=re.compile(r'\b(href="(.*)"){1}\b') m=p.search('<a href="live.net" link="go2">') print m.group() #Prints: href="live.net" link=" [/CODE] The code above [CODE]Prints: href="live.net" link="[/CODE],but i want to the href="live.net" I need help on this please

Member Avatar for jice
0
124
Member Avatar for codedhands

Hello,am newbie in python.Am trying to write a function that deletes urls in a file.The function accepts the url to be deleted as an argument.I want to use regular expression to match the url in the file and then delete it(maybe replacing it with a white space).My problem is that …

Member Avatar for codedhands
0
120