Ok, I'm trying to draw a game board in python, here is my current code:
def draw_board(n_rows, n_cols):
'''function to draw the board'''
n_cols = int(n_cols)
n_rows = int(n_rows)
matrix = [[0 for x in range(n_cols)] for y in range(n_rows)]
print matrix #for...
My dad just updated his computer from an athlon x62 dual core to a phenom II x4 955, his motherboard is a gigabyte GA-M555LI.
For some reason when starting the computer nothings showing on the screen, nothing else has changed and we have checked the cables over and over, change video cards...
Ok I have the iso of windows 7 ultimate x64, I wiped my hard drive clean and have put the extracted contents of the iso onto a dvd.
But for some reason the computer won't recognise the cd.
I have set the boot order to CD, HDD, Floppy.
First thing it does it try to boot from the CD, then...
I'm just playing around with some websites on my localhost, and I was wondering how I could have 'http://localhost/wordpress/?p=1' show content based on the referrer. Preferably using Javascript.
So if the person reaches 'http://localhost/wordpress/?p=1' from 'http://localhost/wordpress/?p=2'...
Ok c# is giving me some more havoc.
I've got a 2 textboxes, one is called 'textbox1' the other is 'test'.
I want to get whats typed in 'test' and put it in 'textbox1' in a loop, adding each character one at a time till it reaches the end of the string.
I'm messing around with...
I'm currently using regex on some of my webpages, and I'm adding the text to a .txt file on my computer.
Regex regexObj = new Regex("(?<=<div class=\"item-artist\" style=\"display:none;\">)(.*?)(?=</div>)|((?<=<div class=\"item-title\" style=\"display:none;\">)(.*?)(?=</div>))");
I'm...
my computers keyboard does not seem to be working (typing this with onscreen keyboard) b4 i restarted when i pressed 't' it would try shutdown, and pressin esc in firefox opened the 'find' thing.
i also think the comp was playing beeping sounds... but could have been another program.
any...
I just finished building my new i7 comp and everything seems to be working fine except the core temps.
Real temp shows idle around 52 degrees and full load with prime 95 at 94 degrees per core...
This surely cant be normal, any ideas on how to keep it cooler?
I am running the stock...
I have a belkin F5D7000 wireless card, running vista x64 ultimate.
I've got the card plugged in and I've downloaded the version8 drivers for the F5D7000 that are compatible with vista x64. (note: I have downloaded the drivers but not installed them yet, as I can't find the wireless device)...
I'm building a new computer and am stuck at motherboard choices...
I have chosen a GIGABYTE EG45M-UD2H G45 at the moment, but I have found out its matx and I'm wondering if I should probably get an atx motherboard?
All these different chipsets are confusing me.
Computer so far is:
Intel...
I guess this is the right place to put this in as auto hotkey has some programming...
anyways I have been testing out auto hotkey, because I want a program that will record my mouse movements and key presses but at the speed that it is recorded, when I have recorded simple auto hotkey scripts...
I am trying to hide and show text when you click on a link... e.g. when you click on the "contact" link it shows the contact div.
My problem is that when I click on the "contact" link and then click on the "about" link it puts them on top of each other, but I want it to hide the contact div...
OK I have some troublesome css...
the element is supposed to have a 1px solid white line around a green box, with some text on the inside. The text is inside paragraph tags.
CSS:
#header }
background: #009933;
border: 1px solid white;
}
HTML:
<div id="header">
<p>header</p>
</div>
The...
My parents have a laptop here that they might get me, its windows vista
Don't worry about the price.
Toshiba Notebook
Windows Vista Home Basic
3.1 windows experience rating
processor: Intel(R) Celeron(R) CPU 550 @ 2.00GHz
Memory (RAM) 2.00GB
System Type: 32 bit
HD: 105 GB
do you...
I have been trying for awhile to get my image positioned in the center, when I use a background image it works when I do this:
#div {
background: url(images/header.jpg) no-repeat 50% 0%;
height: 250px;
}
But when I put the image in the html and try center it like this:
#div img {...
I was working on a website this afternoon when I accidentally deleted it while trying to clean up my desktop, I managed to recover the files and the images and HTML and CSS files, which managed to work perfectly in Firefox again.
When I put all these files into a folder called "index" with a...
Ok so I'm working on a header for a website and know that only one background image can be placed on an element.
I have 2 images, a 2px wide gradient and a 56px wide corner image (needs the corner image to be in the top right corner).
I figured that to get that to work you would just create 2...
I've been using CSS in my document and it doesnt seem to be working in Firefox 3, but it works perfectly in IE6.
Just wondering if I'm doing this the wrong way for Firefox
div.container {
width: 200px;
border-style: solid;
border-width: 1px;
border: #000000;
background-color...
Just been trying some things out with forms and was wondering how I would display a tick next to both of my input boxes if the input boxes have the same text inside them.
You know on those sign up forms where you have to confirm something, and if its right then it displays a tick beside both...
Anyone else getting a small wallet from the increase in the price of petrol at the pump?
My car holds 50L = 13.2G
Costs me NZ$100.45 = US$78.94 to fill up my car...
How much you guys paying? Lemme know what currency its in :)