Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 23 of 23
Search took 0.01 seconds.
Search: Posts Made By: dezza
Forum: Python Jul 4th, 2009, 6:09 PM
Replies: 0
Views: 453
Posted By dezza
Calculate CRC32 checksums (like SFVs)

import binascii
def getCRC(filename):
filedata = open(filename).read()
return binascii.crc32(filedata)


So far i've got this and it returns something like:

-2087276233
Forum: PHP Feb 5th, 2009, 7:00 PM
Replies: 3
Views: 909
Posted By dezza
Re: Warning: (null)(): no MySQL-Link resource supplied in Unknown on line 0

SOLVED:

For anyone who searches on this, this has something to do with mysql_close() having no parameter, it generates a warning if so, as stated on the PHP manual page.

Fix it by assigning...
Forum: PHP Jan 21st, 2009, 4:16 PM
Replies: 3
Views: 909
Posted By dezza
Re: Warning: (null)(): no MySQL-Link resource supplied in Unknown on line 0

Yes I know that.. But it doesn't give a specific line or document at where this is happening, and that is the tricky part?

Normally I would see line or document where to debug this.
Forum: PHP Jan 19th, 2009, 2:32 PM
Replies: 3
Views: 909
Posted By dezza
Warning: (null)(): no MySQL-Link resource supplied in Unknown on line 0

Warning: (null)(): no MySQL-Link resource supplied in Unknown on line 0

What does this line mean?

I am rewriting a big source, but suddently this error showed up, looks very mysteriously, but maybe...
Forum: PHP Nov 11th, 2008, 11:42 PM
Replies: 3
Views: 347
Posted By dezza
Re: concat deep inside ..

Doesn't anyone know this? I just want it to md5 password + row secret from test-user row.

SELECT * FROM users WHERE username= 'test' AND passhash = md5('1234'concat(secret)))

Should there be a dot...
Forum: PHP Nov 10th, 2008, 9:44 PM
Replies: 3
Views: 347
Posted By dezza
Re: concat deep inside ..

I want to close the 2nd md5 encryption after the password so the final string will be like $passhash above ..

secret is a password-seed set for each user, to make the enc more...
Forum: PHP Nov 10th, 2008, 6:39 PM
Replies: 3
Views: 347
Posted By dezza
concat deep inside ..

I returned here because of good previous experiences, been to long now and I hit my head against a door!

SELECT * FROM users WHERE username= 'test' AND passhash =...
Forum: Python Dec 3rd, 2007, 5:10 PM
Replies: 3
Views: 400
Posted By dezza
Re: Fixing libgmail pipe-menu for Openbox window-manager

Yes but I did use the newest libgmail. The latest version of that menu is from 2005 as what I've seen one place.
Forum: Python Dec 3rd, 2007, 8:39 AM
Replies: 3
Views: 400
Posted By dezza
Fixing libgmail pipe-menu for Openbox window-manager

Hey guys. I though I was clever, and took my basic Python skills, that I got for one year ago, reading trough some tutorials and stuff.. I digged into this simple pipe-menu for the window-manager...
Forum: HTML / XHTML / CSS Nov 18th, 2005, 4:41 AM
Replies: 8
Views: 1,063
Posted By dezza
Can anyone help me with the 2 div boxes?

Can anyone help me with the 2 div boxes?
Forum: HTML / XHTML / CSS Nov 13th, 2005, 7:12 AM
Replies: 8
Views: 1,063
Posted By dezza
Thank you very very much :D Now i'm only one step...

Thank you very very much :D Now i'm only one step away from making it almost identical!

Check it out now:
http://home.no/dezza/9kilo.dk

Now i only have one problem left, the two absolute positioned...
Forum: HTML / XHTML / CSS Oct 31st, 2005, 8:13 AM
Replies: 8
Views: 1,063
Posted By dezza
If i do something like: * { text-align:...

If i do something like:

* {
text-align: left;
}

and then make a <div id="center"></div> (with text-align: center;) tag around nav, header, and content, and keep the margin: 0 auto 0 auto, the...
Forum: HTML / XHTML / CSS Oct 28th, 2005, 12:22 PM
Replies: 8
Views: 1,063
Posted By dezza
text-align can be used for the whole page yes .....

text-align can be used for the whole page yes .. And why protest against something as clean and pure like xhtml and w3?

That code you posted won't center the page just ruin the liquid layout ..
Forum: HTML / XHTML / CSS Oct 28th, 2005, 9:04 AM
Replies: 8
Views: 1,063
Posted By dezza
IE Compatibility, margin: auto; (centering)

Hey guys long time no see, I was macking with some XHTML and ran into some problem in IE, this site needs to be readable for everybody, and then i thought of you wise guys inhere :D...
Forum: Python May 31st, 2005, 9:47 AM
Replies: 1
Views: 345
Posted By dezza
Hard understanding part of tutorial

http://ibiblio.org/obp/thinkCS/python/english/chap09.htm#4

I am doing this tutorial, but when it comes to the exercise in this part 9.4 I'm stuck, I do not understand the high and low thing, what...
Forum: Python Apr 5th, 2005, 12:47 PM
Replies: 5
Views: 497
Posted By dezza
['spam!', 1, ['Brie', 'Roquefort', 'Pol le Veq'],...

['spam!', 1, ['Brie', 'Roquefort', 'Pol le Veq'], [1, 2, 3]] ..

Thank you, but this is the previous list, just above the exercise, how could I do the lenght thing on this one? It won't allow me if I...
Forum: Python Apr 5th, 2005, 9:21 AM
Replies: 5
Views: 497
Posted By dezza
Thank you Cerulean, anyone who can help me with...

Thank you Cerulean, anyone who can help me with the excersise?
Forum: Python Apr 4th, 2005, 5:10 PM
Replies: 5
Views: 497
Posted By dezza
Count lenght of list inside list, how to print returns

http://ibiblio.org/obp/thinkCS/python/english/chap08.htm#3

I'm trying to complete the exercise in this step, can you help me out? :( ..

I've tried but cannot think of any good methods to do...
Forum: Python Apr 1st, 2005, 5:14 PM
Replies: 15
Views: 2,672
Posted By dezza
Really good quickstart tutorial indeed, and very...

Really good quickstart tutorial indeed, and very straight, I have 2 corrects.

1. You can't assign a variable to 1 as in "4b. Sidetracked"
2. print = dbase["a"] is print dbase["a"]

Thank you for...
Forum: Software Design and Algorithms Mar 30th, 2005, 2:46 PM
Replies: 17
Views: 3,318
Posted By dezza
Great article.. It's incredible how Java is...

Great article..

It's incredible how Java is developing, in benchmarks it is sometimes faster than C/C++ and in many almost equal speed.

We will probally see more coders in Java in the future,...
Forum: Software Design and Algorithms Mar 30th, 2005, 2:36 PM
Replies: 49
Views: 9,962
Posted By dezza
Where is Python at web programming? Hehe .. Just...

Where is Python at web programming? Hehe ..

Just ignore me ;) ..
Forum: Python Mar 29th, 2005, 10:41 AM
Replies: 4
Views: 519
Posted By dezza
Wow, I just got my own thoughts confirmed.. What...

Wow, I just got my own thoughts confirmed.. What a really nice place this is, with nice people and positive helping posts, thank you for your introduction :D

#4 (Berto)
Yeah it's really nice, you...
Forum: Python Mar 28th, 2005, 1:58 PM
Replies: 4
Views: 519
Posted By dezza
Thumbs up "How to think like a computer scientist - Python"

Hello everyone I am glad that I found this forum by searching trough Google, hope you can help me out in my attempt to fully understand Python.

I have followed the guide "How To Think Like a...
Showing results 1 to 23 of 23

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:50 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC