alc6379 120 Cookie... That's it Team Colleague

What kind of CD drive do you have? How is it connected?

alc6379 120 Cookie... That's it Team Colleague

You're looking at an issue of object persistence, more than likely.

When you close the form, the object that the form represents, including all members included in it, are disposed. More than likely, you'll want to serialize the information in a temp file, or something like that.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/objserializ.asp

That'd be my guess. I'd really like to know if there's something better.

alc6379 120 Cookie... That's it Team Colleague

HJT logs belong in the Viruses forum, but I'm pretty certain that you don't have a virus or spyware causing this.

Click Start, then Run, type in cmd and click OK. When in the Command Prompt, type in ipconfig /all . Under Local Area Connection, let me know what the IP address is there. Also, while you're there, see what running this command gives you:

ipconfig /renew *

alc6379 120 Cookie... That's it Team Colleague

Not being able to add a whole lot to your code, I'm willing to bet that the reason why dunretnda (redundant) shows up more than one time is because there are duplicate characters in the string. For instance, in the case of dunretnda, position 2 == 'n', and position 6 == 'n', as well. Even though each position has the same literal character in it, it's still at a different position in the string.

Also, one way you could get around not running out of memory is to formulate some way to write the results to a temporary text file, just to purge it from RAM. It's been a while since I've programmed Python, but you could then manipulate the results stored in that file using streams, so you'd make more efficient use of the RAM available in your system. You could use a stream to write lines to a file, and then use a stream to read lines from the file, one by one. I think that Python allows you to set the position in a file, too, so you could still reference particular lines in the file, if you needed.

alc6379 120 Cookie... That's it Team Colleague

If you disabled your Ethernet controller, it will still show a ? by it because you didn't install the driver. If you're really not interested in using the NIC on the machine, then just disable it in the BIOS.

alc6379 120 Cookie... That's it Team Colleague

Does this domain have any group policies or login scripts applied to it?

alc6379 120 Cookie... That's it Team Colleague

Looks like it should work, assuming you have posix there.

alc6379 120 Cookie... That's it Team Colleague

Thanks A Bunch Man!!!!

No problem. By the way, check the other thread you posted. I think this conversation happens to be REALLY relevant to the topic there. :)

alc6379 120 Cookie... That's it Team Colleague

I'd have to agree with plazmo on this one.

You will probably have to have Office installed on all of the machines that you're planning on depolying to. I think that the Excel stuff you're doing relies upon COM, which in itself relies upon the regeistered presense of Excel/Office in order to do all of its work.

I hate to say your work was in vain, but if you had used oleDb with Jet4.0, as plazmo described, the only thing your clients would need is the correct version of .NET CLR installed on their machines.

alc6379 120 Cookie... That's it Team Colleague

Assuming the formula is right, looks basically fine to me. Just be sure to remove the spaces from the main() subroutine you call at the end, there. Good Job!

A handy tip:
Be sure to place [code][/code] tags around your code. It's especially important with Python, because the spaces actually are part of the code structure.

alc6379 120 Cookie... That's it Team Colleague

FYI: OLEDB is for both Excel and Access. Maybe this article will help:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;257819

Basically, once you start using OLEDB, you can treat the whole deal like it's a database. As such, you'd pull the data out using a SQL SELECT command (that fills a dataset), then you'd edit the data in the dataset, and you'd perform some steps that would Update the contents of the "database".

...That's how the data gets placed back in. Once you start using OLEDB, you can insert rows, update them, delete, etc, just like a SQL database.

That's the most that I could tell you-- I've just started fooling around with ADO DataSets using OLEDB provider for Access. It works great, though. There are whole books on ADO that are available through your favorite tech book retailer-- I suggest you check them out. But for starters, that link I provided might help.

alc6379 120 Cookie... That's it Team Colleague

perhaps you need to use " " instead of ' ' quotes?

alc6379 120 Cookie... That's it Team Colleague

What exactly is the program you're running, and what is the error you're getting?

If you can give the exact statements you're using, maybe we could provide some more help.

If creating an object like you demonstrated causes no issue, why not just run with it that way?

alc6379 120 Cookie... That's it Team Colleague

What little I know, your Python code looks correct. But, why the "start" part of command.com?

I know you can't really spawn new programs in DOS, but other than that it looks ok. It looks like you just use the write() method to provide input to whatever program, and that program has to accept input from stdin. I would imagine that's where your errors are coming from-- not from Python, but from the actual program that you're using os.popen() on.

alc6379 120 Cookie... That's it Team Colleague

That's by design.

You should never log in remotely as root directly. If your password were the slightest bit insecure, you could be open to a brute-force password attack, and your whole system can be compromised.

As an alternative, add your user to the wheel group. That allows you to use the su command to gain root priviledges. Either that, or study up on the sudo command, which gives a finer-grained control on who can do what, and with what priviledges.

alc6379 120 Cookie... That's it Team Colleague

OMG Alex, please don't do that when I'm drinking coffee- it came right out of my nose and spewed all over my keyboard!!! [img]http://www.stevewolfonline.com/Downloads/DMR/Visuals/jesterlaugh.gif[/img]


Oh crud- now my keyboard is acting funky.... :mrgreen:

HAHAH...

Did you try hitting the NumLock key? :D

alc6379 120 Cookie... That's it Team Colleague

NO...

You don't have a virus. Your numlock key is turned on. Notice how those same keys are actually labelled with numbers on them, in a different color?

Usually, there's a key to toggle that behaviour. Like, find the key labelled "NUMLOCK" in a different color. Then, hit your Fn key and the NUMLOCK key at the same time. Things should be back to normal for you.

Keep in mind, there's absolutely no virus, to my knowledge, that remaps your keyboard like this.

alc6379 120 Cookie... That's it Team Colleague

So, the wireless card does or does not see the WAP?

If it's not seeing it, there's a problem there-- could be interference, could be a bad card/antenna connection.

If it is seeing it, do you have any firewalls installed, like Norton or McAfee? If so, uninstall them, and see what we get from there.

alc6379 120 Cookie... That's it Team Colleague

Please provide us with more information:

What is the model of your system?
Have you recently added any hardware?
Has anything recently changed, with regards to the computer's setup?

alc6379 120 Cookie... That's it Team Colleague

I'm not even a real programmer, but I'd have to agree with Narue-- there HAS to be some way to use recursion, or someting to break that up. With what little I know, that just doesn't look very "elegant", or reusable, for that matter.

alc6379 120 Cookie... That's it Team Colleague

Maybe this will help?

http://www.noah.org/python/https/

Looks to be a Python module that will help you download from HTTPS sites. I assume regular HTTP GET commands, etc, won't work through an encrypted connection.

alc6379 120 Cookie... That's it Team Colleague

Well after having some members who wanted to erase their traces from the forums I don't allow thread removal either. and on the most "serious" forum I allod edit just in 15 minutes time after the post was made. Makes life as an admin easier.

I think Dani had some similar issues here too ;)

As for the mess cleaning, we all have mods (and we're also doing this as admins) .. so usually duplicates will be easily spotted

Hear, Hear.

If you really have a problem with a post, let a mod know, or use the "Report this Post" link on each post. Trust me-- it will get taken care of...

alc6379 120 Cookie... That's it Team Colleague

Have you got any peripherals attached, like a printer, or external hard drive? Make sure that only your keyboard, mouse and monitor are attached, nothing else, for the installation. Also, set your BIOS to defaults, or pull the Clear CMOS jumper on your motherboard, that helps clear the ESCD, which stores hardware configuration. That can often cause the installation to freeze if there's a bum entry in that database.

alc6379 120 Cookie... That's it Team Colleague

Really quick SSH howto:

at the command prompt, type in

ssh computer address

Where the computer address is the IP Address or hostname of the system you want to connect to. Enter in your username and password, and get to work!

...Connecting is just that simple.

alc6379 120 Cookie... That's it Team Colleague

Could you contact your ISP and have them change your username? That's a really long username-- the reason why most don't accept more than 15 characters is because that's a "sane" limit on the amount of characters a username should have.

I mean, do you really need your ISP user name to be "this_is_my_isp_username_at_home"? If you look at it like that, that's really freaking long. Or, do you have to put username@ispname.net in there?

alc6379 120 Cookie... That's it Team Colleague

How are IP addresses assigned on these systems? What is the system in question's IP address set to?

alc6379 120 Cookie... That's it Team Colleague

Are you sure the torrent is finished downloading? You have to wait for the files to finish. Usually, your torrent client will say "Uploading", or "Seeding", or something along those lines, once you're finished downloading it.

alc6379 120 Cookie... That's it Team Colleague

as i m new to scripting i dont know much about it
so pz help me

Just figure out what commands you want to use, in the order you need them run, and put them in a text file. There, you have your script.

I'm not trying to be rude, but that's all there is to it. Now, it's up to you to figure out what commands are needed. You didn't tell what you needed the script to do-- just write down step-by-step what you want to accomplish, and you'll have already hashed out what your script is going to look like.

alc6379 120 Cookie... That's it Team Colleague

Like any programming Forums, this is a homework assignment, so the rules apply here.

Please show your work, what you have done so far, and we'll help troubleshoot what you've started on. It's imminently possible-- just keep in mind that all you do with scripts is start commands that already exist. That should be the only hint you need.

alc6379 120 Cookie... That's it Team Colleague

Proxies and firewalls are different.

If you're wanting to secure an environment, you install a firewall, block of EVERYTHING, except for the ports on the proxy server (another physical machine, usually) that you want allowed out to the Internet. Then, you configure your client machines to use the proxy server for things like HTTP, FTP, HTTPS, etc. Normally, since you'd have your own mailserver in a setup like this, you wouldn't want to have the clients doing POP, IMAP, or SMTP directly out to the 'Net. The proxy could do filtering based on URLs, or based on content, so your clients can't get out to resources you want to deny access to.

The second configuration would be for the sake of caching, or performance increases. The only difference between that and the previous configuration is that you might not care so much about the firewall configuration-- just set the proxy up to do caching, and (hopefully) you'll benefit from a speed increase when browsers hit commonly accessed pages.

Squid for Linux/UNIX/BSD is a great example of a cache/proxy server, and I've heard ISA (Internet Security and Accelleration) Server for Windows Server is pretty good. Offhand, those are the ones I think of. As far as what services are available on a proxy, you'll just have to try to find out-- configure your browser to use the proxy, and try one of each protocol. If any are not allowed through, then obviously the proxy doesn't support it.

alc6379 120 Cookie... That's it Team Colleague

Python is my first language I am learning, other then some bash scripting. I am really enjoying it.

I am a big open source(linux) guy, so i was attracted to python for that reason. I also like the fact I can write a program that will run on both linux and windows alike(there may be some porting issues, I am still learning)

There shouldn't be too many porting issues-- Python was designed ground-up to work with any platform. Unless you start fooling around with GTK or Tk/Tcl, etc, then you'll be in good shape. Even with the previously mentioned setups, you can still make them work in Windows.

alc6379 120 Cookie... That's it Team Colleague

keep in mind that your computer might not work that well with Windows 98... That computer was "Designed for Windows XP"-- usually that translates to "Too lazy to make drivers for the other OSes"

alc6379 120 Cookie... That's it Team Colleague

Hey! I have one of those in my system!

The only thing I can tell you about that controller is this: It didn't matter to me, but sometimes when adjusting the speed of one fan, it would cause the speed of the others to change ever so slightly. It seemed like when you lowered the speed of one fan, the current was redistributed to the other fans, speeding them up maybe 100-200 RPM. It's not much to worry about, I guess, but I just wanted to make you aware of it.

alc6379 120 Cookie... That's it Team Colleague

You will have to get a 4-pin to 3-pin adapter:

http://www.heatsinkstore.com/4to3ad.html

Then, you can use any adapter that uses a 3 pin header on it. That additional 3-pin cable running off of the fan is a Tachometer wire, which you can connect to the fan header on the motherboard, for RPM speed monitoring.

21db isn't that loud, really... I mean, I've got 3 fans running at nearly 60db apiece-- THAT's loud!

alc6379 120 Cookie... That's it Team Colleague

What is the output you're currently getting? That may help us determine where the hang-up is. Additionally, if you don't mind posting the actual code you're using to display the calendar, that would probably help.

Also, have you considered using a table with invisible borders, rather than trying to display it like you're doing? Just a thought, as you could create a 7 column by 5 row table, and populate it pretty easily.

alc6379 120 Cookie... That's it Team Colleague

Why do that? Let your Python code run in Java:

http://www.jython.org/

It's a python interpreter written in pure Java! Snazzy.

alc6379 120 Cookie... That's it Team Colleague

I'll post suggestions in a day or so, but I've a wedding to attend to firt :)

Who's Firt getting married to! Wish them the best!

;)

alc6379 120 Cookie... That's it Team Colleague

I'm not entirely sure that we should be discussing this here. Windows XP Pro is designed to only accept 10 incoming connections. Christian is right-- it's like trying to tow a large boat with a Ford Pinto. There's not a registry tweak, as it is something that Microsoft coded into the operating system as a hard-set limit, to keep people from using XP Pro as a server. That would obviously cut profits from their Server 2003 sales.

Simple fact of the matter is, Christian's advice was dead-on. Either pick up a real server operating system, like Server 2000/2003 that can support more concurrent users, or go with Linux and a Samba configuration, where you set how many users can connect at once. The limit we're discussing is for the system as a whole-- 10 users total, not for each share. So, 5 file shares does not mean 50 users could attach-- it means you could have 2 users on each share, or 6 users on one share, and 1 on each of the others.

alc6379 120 Cookie... That's it Team Colleague

Or do what I did, build the PC in a table and sit the monitor on top...

Yay! Dust and poor airflow for everyone! ;)

alc6379 120 Cookie... That's it Team Colleague

Wouldn't you just define the function and then call it from within main()? I think you might want to review your textbook some more on functions. I'm not worth my salt as a programmer, and I could tell you this much.

Also, I'm sure Narue might mention this, but I know you're not supposed to use void main(). I'm not entirely sure why, and I don't want to guess, but I have an idea why. Care to elaborate further on this, Narue?

alc6379 120 Cookie... That's it Team Colleague

Awesome! Thanks for the followup! :D

alc6379 120 Cookie... That's it Team Colleague

Just a note on this whole policy bit: It's only available in Windows XP Pro. Group Policy, which controls these settings in the registry, doesn't show up in XP Home. I'd agree with the possibility of a trojan, or some virus, possibly.

As to TheDelk, despite piggybacking a thread, I'll answer your question, since my answer is somewhat related. DON'T MESS WITH IT. I think not being able to adjust your Display properties is dumb, but I'm not your IT department. They might have some requirement to allow handicapped users to run at a certain resolution, I don't know. But, suffice it to say, it's not your system, and you shouldn't monkey around with how they want it set up. Even if you could make the changes you want to do, what happens if they do find out? If your IT policy is like any company I've ever worked for, you could get fired.

alc6379 120 Cookie... That's it Team Colleague
alc6379 120 Cookie... That's it Team Colleague

Already figured this one out and sent a PM to see if I can have this thread locked or removed.

How did you fix it? It would be really nice to have solution here, for posterity's sake. Perhaps you could submit a code snippet?

alc6379 120 Cookie... That's it Team Colleague

edit the boot.ini file
set default on w98
if that works; set timeout = 0

no screen anymore!

mifa

Exactly. I know this is an old post, but if you wanted to change it, this would be the trick:

old one

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home"
D:\="Microsoft Windows 98"

New one should be changed to:

[boot loader]
timeout=0
default=D:\
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home"
D:\="Microsoft Windows 98"

That should do the trick.

alc6379 120 Cookie... That's it Team Colleague

in the command prompt, type in

ipfconfig /all

and see what your IP Address is. If it's something other than 169.254.xxx.xxx, then you should be in okay shape. If it is not 169.254....., then try pinging what's listed as your default gateway. If you can ping that, then ping what's listed as the DNS servers. If you can get there, then try running ipconfig /flushdns, perhaps.

Also, try disabling any firewalls. I don't suspect any malware personally, but gefflong could be on some track I'm not aware of. But, in a situation like this, I generally start performing TCP/IP troubleshooting, which usually leads me to the likely source of the issue. That error you provided sounds like a firewall issue, so your firewall would be a good place to start.

alc6379 120 Cookie... That's it Team Colleague

Isn't asking "What's the best compiler" like asking "What's the best text editor/OS/Language/Deity/etc"?

Let me remind everyone that we're here to help. If you have beef with someone, take it up with them in PMs. Lose all the respect for someone that you'd like to lose, but we're here to help users find their own way.

Intel, you were presented with a request to back up your statements. You did so. Leave it at that. It's obvious you at know what you're talking about, so you don't have to validate yourself, just clarify when needed.

Narue, I like you. It is very possible that the overall post quality of the C/C++ forum has improved as a result of your etiquette tips. If that's the case, thanks aplenty are in order. It could be a coincidence, though, as you stated. However, there's no need to respond to jabs-- stick to the facts, and things run way more smoothly. I wouldn't call it "troll feeding", but there's no need to stamp out or stoke any embers, puffs of smoke, or outright flames.

So, let's be happy, gang. Weigh in with your opinions. If those opinions conflict with others, discuss, don't disparage. If you feel someone else's comments are out of line, take it up with the member in PM, or discuss it with a forum mod or cscgal (Dani).

alc6379 120 Cookie... That's it Team Colleague

The much maligned goto statement has a good and healthy reason to be part of the language. One of the best reasons is the escape from a nested loop. It also makes some code much easier to discern. I personally value both Intel's and Narue's input, so lets get back into the sandbox!

Seriously. It's a help forum here. Isn't a little counterproductive to go,

you don't know why you shouldn't use goto? Well, I'm not going to tell you!!! :p

Share the knowledge, and I'll learn a little bit, too.

alc6379 120 Cookie... That's it Team Colleague

Additionally, you can simply check out VNC:

www.realvnc.org

alc6379 120 Cookie... That's it Team Colleague

Let's see your source.

Christian

Very easy to find:

http://www.geocities.com/basicsofcomputing/electronics.htm

skimmed from a Google search using an exact phrase in his post.