lllllIllIlllI 178 Veteran Poster

AutoPython did a great tutorial on threading that has been posted in the tutorials section of this forum:
http://www.daniweb.com/tutorials/tutorial238590.html
Hopefully that clears anything up if you needed a hand :)

lllllIllIlllI 178 Veteran Poster

Yeah, thanks a bunch everyone it looks like i might do a Linq to SQL classes class to interface between SQL and my program.

I found a great tutorial here http://www.youtube.com/watch?v=LEWZO4fO3hQ

Thanks everyone :)

lllllIllIlllI 178 Veteran Poster

By the way, i have heard a lot about LINQ, can anyone tell me what this is quickly or should i just google around? :P

lllllIllIlllI 178 Veteran Poster

Okay, so i am a bit of a beginner at C# so im sorry i didn't provide that info at the start.. Im not exactly sure what kind of database i am using but i'll tell you how i added it, that may help you understand what kind it is.

I went to the database explorer and right clicked on Data Connections and selected Add Connection. The data source that i used was "Microsoft SQL Server Compact 3.5 (.NET Framework Data Provider for Microsoft SQL Server Compact 3.5)" and it was stored on my computer. Then i made a few tables and then added a couple of Data sources.


You know what? I'll attach a screenshot. That could help.

Thanks for your help guys :)

lllllIllIlllI 178 Veteran Poster

I am currently doing a project where i am using C# and databases. I am using visual C# 2008 and i am having issues accessing the tables that i made.

So what i have done is that i have a couple of tables, one with students in it, another with classes in it. I am making a third table that links the two through an ID. So what i need to be able to do in my program is to be able to select a row from a DataGridView (what you get when you pull the table onto a form by default) and then i need to be able to add a value from that row to another database.

So i am currently able to get the value that i need from the selected row. My main problem is once i have the data that i need to put into the table, i don't know how to do it.

I keep seeing code where people have SqlConnection types yet i cant find that in my program. I don't know if this is because i am using visual C# so therefore something is loaded differently, but i would like to know how i would go about adding a row to a table in a database in C#.. or how i would find the data necessary to connect to the database with visual C#.

One last thing, i wouldn't mind more on the whole C# and databases, so …

lllllIllIlllI 178 Veteran Poster

Isn't this the second time you have said you were leaving?? Im confused :P

lllllIllIlllI 178 Veteran Poster

By the way, just noticed i cannot get to the newsletter archive again.

lllllIllIlllI 178 Veteran Poster

Yes, look for HTMLlistbox, it is a child of the listbox.

lllllIllIlllI 178 Veteran Poster

Well listboxes are HTML okay, so you can put colours in. I know this works for text as i can see it working in the wxPython demo, i'm not sure that it would work for background.

If you look at listctrl's in the wxPython demo, they are similar yet have more advanced features and i personally have done individual colours for each item in a listctrl.

Anyway, hope that helps.

lllllIllIlllI 178 Veteran Poster

Mark thread is solved has moved. You can now find it as a link at the top. Use ctrl+F and search for solved and you should find it. It is next to the bit that says "Python Discussion Thread View First Unread"

Just an FYI for anyone who needs to know.

lllllIllIlllI 178 Veteran Poster

Actually, if you want to learn about sockets then i suggest this tutorial just here
http://www.amk.ca/python/howto/sockets/
it gives more than just the syntax and actually helps you learn how to use them.

Though, this one:
http://www.devshed.com/c/a/Python/Sockets-in-Python/
is the one that i learnt with, it was pretty good.

Hope that helps :)

lllllIllIlllI 178 Veteran Poster

Just wondering now that the new feature that means when you hover over (or close to) someones avatar, the text with rep and solved count comes up. I was finding it annoying how when i help my mouse there for a while i would get a text popup that would saw "USERNAME's avatar" if that was removed then it would stop being difficult to read the rep/solved thread count.

lllllIllIlllI 178 Veteran Poster

Yeah, i appreciate that is there. I just enjoyed it when there used to be a bold emphasis on those ones. Just easier to spot.. i understand i am being lazy, but its just a feature i kind liked.

But mainly i would like to see the pencil back, and unread threads being bold

lllllIllIlllI 178 Veteran Poster

I disagree. For a few reasons, first of all, no one really cares about your "Solved Threads" count, so there is no need to only award one poster with the solved thread. Another problem there is, what if 15 different people all helped just a little bit with your problem, how would you recognise all of them.

Lastly, it would also seem like a worse idea because it would take more time, therefore probably leading to less use. Imagine if you had to trawl through your thread finding the post that helped you. The feature at the moment can give credit to some people that don't really deserve it, but really.. Who cares?

lllllIllIlllI 178 Veteran Poster

I still miss the pencil,

I do too. I thought it was a really nice thing to have. It gave a really quick way that meant you could see the threads that you had posted in without looking too hard.

Also i am missing the old feature that unread threads would be bold, and threads that had no replies would also have some kind of distinction.

lllllIllIlllI 178 Veteran Poster

Yeah i agree. It would have been nice, yet so much more complicated.

lllllIllIlllI 178 Veteran Poster

Im liking the new "first unread" button, it even looks good! :P

lllllIllIlllI 178 Veteran Poster

Sorry to say, but that is about to change. Some of the trusty posters are leaving already.

Oh come on. stop being so melodramatic. Some people will go, thats life, and anyway, apart from jephthah. But really, once issues are sorted out people will begin to post more regularly but sheesh, you sound like the site is going to die. Its not.

lllllIllIlllI 178 Veteran Poster

yes, an apology

hahaha unlikely.

Just have a look at your own posts a little bit, you'll get it eventually. If not, i don't really mind. I'm just saying, daniweb is not going to change. again, simple.

lllllIllIlllI 178 Veteran Poster

i would love a simple link. Because then i could open it in a new tab

lllllIllIlllI 178 Veteran Poster

Okay, so an import error eh.... well, if it is working once windows has fully loaded then that makes me think that something is not being started quickly.

import wmi

I am going completely off guesswork here as i have never used wmi. But if what you said is true and that it works once windows is fully loaded then that would lead me to think that wmi is not being initialised properly until windows is fully loaded..

So perhaps you could put this just before that to check if i am correct:

import time
time.sleep(20)

So that would sleep the code 20 seconds before importing wmi, just in case. Because i know that wmi is a way for python to communicate with a windows API not a native python one therefore there may be problems there.

Oh well, nothing to lose, might as well have a go and tell me what happens :)

Cheers
:)

ps. if your computer is really slow it may need more than 20 seconds of sleep time.

lllllIllIlllI 178 Veteran Poster

the publicity that came after it did. Politicians are extremely sensitive to bad press, don't give a sh*t about actual people and their opinions unless they have a printing press or TV station.

Exactly thats the beauty of media. One main point of a petition is to get people talking. If it got the media talking then it did its job. I agree, people will probably not take the number that seriously in politics, but see media just LOVE to make headlines so "200,000 sign a petition" is a pretty good one, even if its an online petition and some may be fake, thats probably not going to matter to them. From that would come public discussion due to the media, therefore causing people to question their politicians, therefore perhaps causing a change in policy.

But i do agree that those silly "change world poverty/hunger/inequality" ones are fairly pointless, im more talking about minor policy change that can be done by a specific government.

lllllIllIlllI 178 Veteran Poster

R.E.S.P.E.C.T

Quit being patronising, we are not children.

Its come to my attention that some members of this board do NOT regard the feelings of others as any importance at all when considering a reply

Boo hoo, looking at your posts there has been some reason why people would be annoyed. You asked for them to do an assignment. Need i say more? that is annoying.

I fully understand some users frustrations with lazy students who would like the community to do their homework assignments for them, however, even in this situation one can still be polite and helpful to that lazy user

You haven't been round here long. After a while (if you stayed to help) you would find that you get sick of people asking "Can haz homework plz?". You can tell when it is getting toward the end of the term because you get more of those threads. People just get sick of them, so if that person will not use any of their time trying, im not going to try either. Simple.

nother problem area I have noticed is when someone posts a simple question you may see a response something similar to this “ just google it”

This is good, when used in moderation. Sometimes people ask things like "How do i download python" etc. its simple, google it. People again are being lazy, so why should we put in extra work for someone who
A) is most likely not going …

jonsca commented: All good points +0
lllllIllIlllI 178 Veteran Poster

It is because of the way that chrome handles the javascript. Notice when you hover the mouse over the Go to last post button the link that is displayed down the bottom is a javascript link. Therefore chrome will not see it as you clicking a link so much. Because to the best of my understanding, you clicking that link runs a short script that return the destination to your browser, therefore chrome does not see it as a point to return to with the back button..

Though i must admit i do miss it. :S

lllllIllIlllI 178 Veteran Poster

I understand that we need to alert dani to the things that are wrong. Its just there are so many things going on some people are getting annoyed that their problem is not the first one being fixed..

And i agree with you up to a point, there could definitely been more testing done. But eh, when you only have one person that does the coding and without any kind of beta period you can't expect much better..

hahaha, i guess you could think of the next couple of weeks as the beta period for the new daniweb :P

lllllIllIlllI 178 Veteran Poster

Also, its been just one day. There have been things fixed all over the place, things will get better, just give them time.

We can't have everything fixed all at once

lllllIllIlllI 178 Veteran Poster

Where are the post numbers so one can easily reference a previous post within the thread???

Easy, click the "Permalink" see this feature makes more sense. I didn't realise the post number was a link for about 6 months, but people can easily know that permalink means exactly that.

lllllIllIlllI 178 Veteran Poster

No, the online part did nothing (except maybe raise awareness).

Im sorry... where do you get that idea?? And the whole idea of a petition in some ways is to get people talking, by having 200,000 people writing online it means that the media will report about it, therefore educating people about the issue if they had not already known about it.

So first of all, its hard to just say "It did nothing" and second, it does something, raising awareness is something.

lllllIllIlllI 178 Veteran Poster

It would be awesome if each individual user could set what they wanted, such as auto hide or auto show. That would be nice, because i am rather fond of the auto hidden quotes.

jephthah commented: that strikes me as a bad idea. user-specified color, font, size, etc is one thing, but to modify content defeats the purpose of hving a discussion in the first place. +0
lllllIllIlllI 178 Veteran Poster

Yeah.. im getting slowly used to it, its just weird hitting back on the browser and not actually going there... if only javascript allowed you to open in new tab! :P

lllllIllIlllI 178 Veteran Poster

I know what they are talking about. We used to be able to go to a forum and middle mouse click on the 'last post' button which would open a link in a new tab.

Now though it is javascript which means that it will not open in a new tab anymore.. it also means that if you are on a thread and hit the back button, it can take you back much more than you think because it will take you to the last time you clicked a link, not including the javascript stuff.

lllllIllIlllI 178 Veteran Poster

Just thinking, the MFF is not very clean. It keeps looking very messy.

lllllIllIlllI 178 Veteran Poster

If you go the community forum category you can see forum threads that you are not meant to see.

I have a screen shot attached.

lllllIllIlllI 178 Veteran Poster

Yeah i must say i agree with Dani and Tekmaven. I really like this compromise, it will also give you a very quick idea about what they are quoting.. see i dont really need to read the quote if it is exactly the same but if they just have an excerpt then perhaps i will need to read it.

So i like it, nicely done dani.

lllllIllIlllI 178 Veteran Poster

Not only do online petitions never work (and rightly so, there's no way in hell to know if the people "signing" are real and not some bot being used to generate millions of "signatures", but I fully agree with banning kids from playing gory games.
Just as I fully agree with banning kids from watching gory movies and porn.

I would disagree that online petitions do not work. Recently in australia we had a mix online and real life petition that involved the introduction of an internet filter from australia.

This internet filter was brought forward by stephen conroy and he was very sure of getting it through. After over 200,000 signatures online and about 60,000 offline the legislators started thinking about the fact that a lot of them could possibly lose their seats in parliament over one small internet filter that could easily be bypassed and not effective..

so in the end the internet protest and this legislation is hanging by a thread and is not expected to be passed any time soon if at all. There are numerous other massive pieces of legislation that the Australian parliament would rather spend their time.

EDIT: Also just recently thousands of gamers signed a petition to allow R rated (18 years and older) video games into australia, the current rating only goes up to MA-15+ so after that petition is has become a much bigger issue and serious debate has started about it getting changed.

lllllIllIlllI 178 Veteran Poster

the so called seasoned users, find it hard to adapt to.

I think dani would be more scared if we said nothing :P

Most people seem fine with it, it just is important that we point out things that we notice.

lllllIllIlllI 178 Veteran Poster

Just noticed a small problem with the rendering of the graph and the menus on the user screen.

I have a screenshot of the issue. The text is getting rendered behind the post/rep graph.

lllllIllIlllI 178 Veteran Poster

hmm... it doesn't have any kind of "This thread is more than three months old" warning that i can see. Thats odd

lllllIllIlllI 178 Veteran Poster

I would go back to having the old style that when you clicked on a whole category it gave you ALL of the forums in that category in a list...

If you still wanted to implement this new feature that shows all of the recent posts from that category then just display them underneath.. I just think we need a way to make it obvious that you are in a category not a forum otherwise these kind of threads are going to be made every three or four days

:)

lllllIllIlllI 178 Veteran Poster

permalink means that you can copy and paste that link somewhere and it will always link to the correct post

lllllIllIlllI 178 Veteran Poster

There is no goto keyword in java that will take you to a certain line. According to wikipedia the goto keyword is reserved in java but not actually used.

So, goto is not a choice.. changing the code should be though. i'll leave that to someone a little more equipped when it comes to java though :P

lllllIllIlllI 178 Veteran Poster

Since no one else mentioned it, unless I missed it, has anyone else had this weird chrome glitch? Quite obnoxious when you instantly lose a chunk of viewable space.5.0.375.29 beta/windows vista if it is of any help in solving it.

I think that is an issue with chrome. I use chrome and i get that issue on other websites sometimes. I just usually restore and then maximise the browser and that fixes the problem..

But i'm using chrome and haven't noticed anything wrong here.

EDIT:

No one obviously read them

Yeah.... good point :P

lllllIllIlllI 178 Veteran Poster

Just a couple of things i am noticing. First of all, i can't see where i can mark a forum as read. Or has that whole feature kicked the bucket?

Also, i was wondering if the announcements that were at the top of many forums such as the "we will not do your homework without you showing effort" announcement has gone. Are they going to come back?

I understand that this is of course a busy time, i was just wondering if i could expect them to come back? ooor if i was just missing them somehow.

lllllIllIlllI 178 Veteran Poster

I can't read a new PM i keep getting this error:

Fatal error: Call to a member function clean_array_gpc() on a non-object in /home/daniweb/httpdocs/forums/includes/class_postbit.php(265) : eval()'d code on line 45

I tried clearing the cache and such.

lllllIllIlllI 178 Veteran Poster

I can live with the colour scheme, I personally like purple and I can live with the changed layout or get used to it.

What is a pain is the drop in functionality of the main links.

What was

Today's Posts
--- C++
--- Software Development
--- My Subscribe Forums
--- All Forums

Has dropped to "Todays Posts" == Todays Posts All Forums

Same for Unanswered Threads

I now have to visit several pages to check all the posts I might have been interested in when I used to only have to visit 1.

Doesn't that bar down the bottom do pretty much all what you just said?

lllllIllIlllI 178 Veteran Poster

Oh i definitely agree. Classes are the way to go, i was just suggesting an alternative in case you were not comfortable with classes :)

lllllIllIlllI 178 Veteran Poster

That is because there is no class or function called tennisPro..

Also, you need to use code tags

[code]

#code here

[/code]

cheers

lllllIllIlllI 178 Veteran Poster

How about you have something that means that if your functions are going to be something along the lines of room1, room2, room3, room4 and such.

So what you could do was return the room number you wanted to go to. eg. 1,2,3,4,5 then you can use the eval statement to make a string of the function such as:

RoomInt = 3
eval("room"+str(RoomInt)+'()')

So that will first give you a string of 'room3()' and then evaluate it which will then call the function. That way you can have soo many functions.

hope that helps

lllllIllIlllI 178 Veteran Poster

The problem with having globals is that it means that you are usually declaring something inside a function when it is going to be used outside a function so it is probably better to just declare the variable outside any sort of function at all.

It also makes it easier for someone to read your code later. One last thing that can be an issue is the fact that sometimes your global statement might be missed then causing issues in the rest of the program.

so yeah, try stick clear

:) Hope that helps

lllllIllIlllI 178 Veteran Poster

Yeah, i couldn't reply to a few threads as well.

Also i can't find the shortcut to view the first unread like there used to be with that large "new" button. Now i have to come into the thread and click the 'view first unread' up the top.

Not a big hassle, just a little bit annoying.

EDIT: just worked out i just click the username of the person who last replied.