When we re-decorated we used:
Little Greene on walls - Get the intelligent matt as its very durable and has really good non-artificial looking colours, washable and you cant notice touch ups. Would highly recommend even though it is pretty pricey (~£70 for 5 litres). We bought 6 cans from Cane...
Change print line to:-
print "FILE %s YEAR %s" % tuple([eval(line)[i] for i in (1,7)])
In answer to your question, eval is the function which will take the string and convert it to a python expression.
I had this issue on my iPhone 5 on three since release day. Every day it would drop to no signal and not be able to reconnect without me putting it in and out airplane mode. However, over the last week or so it has been able to automatically reconnect after losing signal, has anyone else...
Yep I ordered mine last week and got it within 2 days using 1st class postage from amazon. Its a good fit and very thin but I'm not sure how much extra protection it will give apart from stopping scratches.
We will have to design the command messages carefully to allow extensibility, but also to make sure we transmit commands using the least possible amount of data. I dont think we can use string based commands as they have the potential to be very wasteful in terms of data transferred and...
This looks like an interesting project. I am a fairly experienced c programmer and would be happy to help out on the coding side of the project when I have time.
1) Change the chav car put something more prestigious there instead.
2) Prob need a lighter blue background as the orange on blue is hard to read.
3) Vehicle is not spelt properly in the second paragraph. Also, stop your text editor splitting words with -
4) Your email address should match the...
Id put a nicer car at the bottom as that one looks pretty chavvy and you probably want to give the impression that your used to cleaning expensive cars.
edit - ignore, I was testing passing the dom document rather than the documentElement :) I would rather use childNodes.length though unless a check is added to make sure any object passed to traverse is an element object and has the hasChildNodes method.
That still has problems. childNodes is an array not a function therefore () cant be used. Also, hasChildNodes is not valid for all the objects we will come across in traverse, you have to use childNodes.length.
Had a few free mins so rewrote the parser. Seems to work ok on my system using an xml string. Your document should parse ok. Code can prob be neatened up a bit if your worried about it :)
function traverse(tree)
{
txt = "";
attrs = tree.attributes
if(attrs != null)
{...
Did you check the error console for problems when running this? Also, what does "pop-up" mean? Can you post a screenshot or something so we know what the problem is.
From the guide this was taken from I notice theres a line
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
do you have this at the top of your script? Also, this is a Microsoft only function call so will only work in IE. What does "pop up" mean? Any errors/warnings in the debugging...
So your code, with the buffer change, just waits at the read() line and never progresses? Are you certain something on the other end is writing at least 5 bytes of data down the line?
I dont see why your while loop is there checking currentline is not null. Currentline will never be null based on whats inside that loop so it will spin.
for this line:- name = strtok_r(line," ",&save2); where does line come from?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.