Check this site out. It shows you many bit hacking solutions.
I logged in just to say a thanks to you.
That site is indeed helpful.
Check this site out. It shows you many bit hacking solutions.
I logged in just to say a thanks to you.
That site is indeed helpful.
Hi,
Have a look at the following link:
http://www.cyberciti.biz/tips/howto-find-memory-used-by-program.html
Paranoid are we? I guess you need to see the definition of generic:
Generic is something that is general, common, or inclusive rather than specific, unique, or selective.If you still think it's you, check the definition of each word.
I have been called a stupid poster here , and I wanted to know why ? That's all !!
Why? Please point me to the section of the rulebook where is says that I "should close such threads !!"
I don't tell you how to do your job, so don't tell me how to do mine.
I don't know why people do get angry here ???
It would have been better for me not to say anything to Mods here !!!!
What good would that do? Then we'd have 30% closed threads on DW.
One last thing, If you would close such senseless 30% threads, it would be better for DW, not for me !!
OOps, I gave a suggestion again !,
Please pardon me for giving that suggestion again !!
I won't bother any of the mods again now !!
Let's hope a prospective employer doesn't see 'your' [the generic stupid poster's] post in that case
Well, may I know the reasons you called me **that** ??
Look here:
http://catb.org/~esr/faqs/smart-questions.html
Moderators should close such kind of threads !!
maybe he can't read? In which case he should be starting with Perl or Ruby which are after all write-only languages so you never need to read code at least.
LOL really :)
***Jokes apart***
Let me point out, such kinds of threads do degrade the quality of the forum !!
I don't know what moderators do to such kind of threads here ?
But if u look at forums like linuxquestions.org or cplusplus.com, You won't get such threads there, that improves the reputation of the forums !!
Instead of the trouble of writing all that, take a look at this
I have seen that script before, but the OP doesn't know how to manually type and search in Google, he needs to be taught that !! Using the script would be again a spoon feeding to him :)
If he knew all that he would have followed my first post !!!
so what do i do to start?
step 1: Type http://www.google.co.in/ on your web browser.
step 2: Type i want to become a programmer there and press enter. (Enter key is supposed to be on your keyboard)
step 3: Click on the first 10 links you see there and read them.
I HOPE NOW YOU KNOW WHERE TO START ???
lol c is very very use confusing and not too easy to use like c++
LOL, That's more surprising !!
c++ cause its the most basic language to me
C++ is more basic than C to you ? That's surprising !!
If you don't know basic programming, learn it somewhere else !!
Well I must apologize for my rude words !
And U didn't read post number 6 ?
I'm learning.. I've been up late every night trying to make this program. I know I'm not good at all but I'll get there.
U cannot be a good programmer by compiling some one else's program! because u don't know the basics ! Kindly try out some small examples of ifstream then u will yourself know how simple these errors are !
#include <string>
Its string.h not string
If you don't know basic programming, learn it somewhere else !!
Your error messages are too simple :(
Error message:
ISBNPrefix.cpp:75: error: 'strlen' was not declared in this scope
Include "string.h" header file.
Error message:
ISBNPrefix.cpp:73: error: 'in' was not declared in this scope
Type of in in the following code is missing ? Line: 54
in >> areaVAL >> loPub >> hiPub;
YOU HAVE CHANGED THE CODE, NOW THE LINE NUMBERS OF THE ERROR MESSAGES DO NOT MATCH THE CODE LINE NUMBERS :(
Error message:
ISBNPrefix.cpp:87: error: expected ';' before '}' token
Look at the following code
int close (FILE* fp){
while (!inFile.eof()) {
fclose(fp);
return true;
}
return false
}
There is no ';' after return false
click?
Thanks for the response!
I saw the link, but I found all the questions that are meant for either beginners or do not involve advanced design techniques as I mentioned in my first post !
So are u getting errors ?
If yes, post them here .
If no, post the output of the program here ?
Kindly post the code so that some one can read the code and help you !
i want to become a programmer. can you help me?
Have u heard of some languages called as :
C
C++
Python
If not, Google them,
If yes, in which language u want to program ?
Can any one point out links to some small projects w.r.t C++ ?
Now when I say small projects,
It doesn't mean building a calculator or matrix multiplication programs,
nor does it mean building games,
nor does it mean dealing with databases,
What I actually want is to use the advanced features of C++ like:
i.Templates
ii. Nested friends
iii.Virtual functions
iv. Operator overloading (not merely '+', '-') but '
Yes, I have searched the Dani web forums (threads) as well as Google, couldn't get anything much useful w.r.t my requirements !!
Kindly guide !
Further description of the problem:
I have a python script which generates map-legends in the form of an html file. The legend generated have to be pasted on a map which is in a png format.
A png format file can be pasted on another png format file easily. But because the legends generated are in a html format I cannot paste it on the map file !!
Well, with some help from icky microsoft .net that is very possible with IronPython.
I'm afraid that's the only way to go.
Thanks for replying! I am working on Linux, so no Microsoft stuff allowed here.
I've only done this once and used html2ps and then ps2png. I am pretty sure that convert within Imagemagick (located here in most distros file://localhost/usr/share/doc/Image...w/convert.html ) will do it in one step from the command line but you may have to supply additional paramenters like layers, etc.
Thanks for replying! I did read about that stuff but I wanted to get it done through coding..
What does the html code look like?
Thanks for replying!
Here's my html code:
<div class="group">
<h1>Legend</h1>
<div class="group">
<h2>Areas</h2>
<div class="feature">
<img src="images/z15_1.png"/>
<div class="name">
City, Populated area
</div>
</div>
</div>
</div>
<div id="zoomLevel">Zoom level: 15</div>
<div id="scale">Scale: ~1:17000</div><div class="group">
<h1>Legend</h1>
<div class="group">
<h2>Areas</h2>
<div class="feature">
<img src="images/z15_1.png"/>
<div class="name">
City, Populated area
</div>
</div>
</div>
</div>
<div id="zoomLevel">Zoom level: 15</div>
<div id="scale">Scale: ~1:17000</div><div class="group">
<h1>Legend</h1>
<div class="group">
<h2>Areas</h2>
<div class="feature">
<img …
Thanks for replying :)
The html file which i managed to generate through python code, shows some figures when I open it through firefox. I want those figures in a png format ! What should I do to achieve this through python code ?
Kindly guide ..
I can slice it by giving something like L[1:10], but I want to know if I could do something like sort all values which begins with a & copy it to another list.
Have a look here:
http://forums.devshed.com/python-programming-11/sorting-tuples-134083.html
Hi,
I have managed to create a HTML file inside python code, now can someone help me to convert this to a PNG file through a Python script ??
I did Googling first but it resulted in various soft wares for above purpose which I don't want !!
I am not asking for direct solutions, but please give me directions if you can !!
Oh I did manage to solve it as follows:
fileHandle = open ( 'test.html', 'a' )
fileHandle.write ('\n'.join(doc))
fileHandle.close()
This is the python code from a file 'legend.py' that prints the contents of variable 'doc' to console:
print '\n'.join (doc)
Now through the above code, whatever is inside doc gets written to the console, if I run python legend.py description.xml
Below is a shell script :
for z in {0..1}; do python legend.py -z $z description.xml > $z.html; done
The above script takes as an input the above mentioned python file 'legend.py' and 'description.xml' as an input of 'legend.py'
and
Then it generates 0.html and 1.html files containing the contents of variable 'doc'
Problem statement:
I want to write a python code, which writes the contents of doc to an html file, inside 'legend.py'
rather than through the command prompt !!
I tried searching Google but couldn't get much help,
Please guide if you can !!