Python help (finding duplicates)
I was trying to pull duplicates out of 2 different files. Needless to say there are duplicates I would place a # next to the duplicate. Example files: file 1: file 2: 433.3 947.3 543.1 749.0 741.1 859.2 238.5 433.3 839.2 229.1 583.6 990.1 863.4 741.1 859.2 101.8 import string i=1 primaryfile = open('/tmp/extract','r') secondaryfile = open('/tmp/unload') for line in primaryfile: pcompare = line print(pcompare) for row in secondaryfile: i = i + 1 print(i) scompare = row if pcompare == scompare: print(scompare) secondaryfile.write('#') With this code it should go through the files and find a duplicate and place a '#' next to it. But for some reasonson it doesn't even get to the second for statement. I don't know what else to do. Please offer some assistance. :) --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Python help (finding duplicates)
I hope these are small files, the algorithm you wrote is not going to run well as file size gets large (over 10,000 entries) Have you checked the space/tab situation? Python uses indentation changes to indicate the end of a block, so inconsistent use of tabs and spaces freaks it out. Here are a couple questions: Are these always numbers? Do the files have to remain in their original order, or can you reorder them during processing? How often does this have to run? Do you have to comment the duplicate, or can you remove it? Are there any other requirements not obvious from the description below? Kevin Faulkner wrote: I was trying to pull duplicates out of 2 different files. Needless to say there are duplicates I would place a # next to the duplicate. Example files: file 1: file 2: 433.3 947.3 543.1 749.0 741.1 859.2 238.5 433.3 839.2 229.1 583.6 990.1 863.4 741.1 859.2 101.8 import string i=1 primaryfile = open('/tmp/extract','r') secondaryfile = open('/tmp/unload') for line in primaryfile: pcompare = line print(pcompare) for row in secondaryfile: i = i + 1 print(i) scompare = row if pcompare == scompare: print(scompare) secondaryfile.write('#') With this code it should go through the files and find a duplicate and place a '#' next to it. But for some reasonson it doesn't even get to the second for statement. I don't know what else to do. Please offer some assistance. :) --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss signature.asc Description: OpenPGP digital signature --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: OT: Self Employed Health Insurance Costs and Coverage
I thought I had it bad having to pay $750 per month but it is an HMO so we don't have those God-awful high deductibles. I retired from state service this year, after getting laid off this spring. Sorry for the politics, but I think we need a good strong single payer system like they have in Germany; I always heard that their system was quite excellent. On Tue, Aug 17, 2010 at 10:21:32AM -0700, keith smith wrote: She helps me in the business. Yikes!! Keith Smith --- On Tue, 8/17/10, Thomas Cameron thomas.came...@camerontech.com wrote: From: Thomas Cameron thomas.came...@camerontech.com Subject: Re: OT: Self Employed Health Insurance Costs and Coverage To: plug-discuss@lists.plug.phoenix.az.us Date: Tuesday, August 17, 2010, 10:00 AM Is there any possibility your wife could take a job somewhere with insurance? Both times I've been self employed that's what we did. Full family coverage for ~ $400/month with a very low deductible. Some part time gigs even offer (more expensive) insurance. Still less than self-employed rates. On 08/17/2010 10:52 AM, keith smith wrote: Hi, I am self employed and have gone without health insurance for a while. I have been very healthy, with the exception of bouts of high blood pressure and high cholesterol. I was told both could be treated with diet and exercise. Both in place. Here is my dilemma. I am older so I am more high risk. The best insurance I can find cost close to $500/month for my wife and I and it has a $3000 deductible for each of us. Basically we will be paying $6000/year for catastrophic insurance and will pay $3000 for each of us until the insurance kicks in. If we just have some preventative care, we could end up spending upwards of $8000 a year without accessing the Insurance. Any suggestions from others who are self employed? Thanks! Keith Smith --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Firefox problem
I'm not sure what distros have to do with Firefox working or not but I use ArchLinux here and I use Firefox all the time. I mainly use downloaded binaries from trunk instead of the Arch binary because I want latest version so I can try and keep up with accessibility bug fixes. In the case of trunk binaries, I just download the tarball and extract into a firefox directory in my $HOME directory and run it from there. I'm not aware of any problems doing it that way. On Fri, Aug 27, 2010 at 05:21:48PM -0800, Clayton Stapleton wrote: Thanks, I pinged yahoo.com and it works fine. Opera is not on my distro but Arora is and it works fine and so did Firefox. The only problem with Arora is the yahoo only recognizes Firefox so that does away with Arora. Tried Suse 11.3 as a live cd and Firefox works fine. Ubuntu's Firefox does not recognize either yahoo.com or the URL. So now I am looking for a new distro that Works with Firefox. Clay --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Firefox problem
Neither has anything to do with the problem. Something in his environment specific to Firefox like an add-on or a firewall setting is blocking it. I use that combination on at least 2 machines and have no problem at all. He says he didn't have a problem with a SUSE LiveCD but he would also have no problem with an Ubuntu LiveCD. On Sat, Aug 28, 2010 at 1:49 AM, Steve Holmes st...@holmesgrown.com wrote: I'm not sure what distros have to do with Firefox working or not but I use ArchLinux here and I use Firefox all the time. I mainly use downloaded binaries from trunk instead of the Arch binary because I want latest version so I can try and keep up with accessibility bug fixes. In the case of trunk binaries, I just download the tarball and extract into a firefox directory in my $HOME directory and run it from there. I'm not aware of any problems doing it that way. On Fri, Aug 27, 2010 at 05:21:48PM -0800, Clayton Stapleton wrote: Thanks, I pinged yahoo.com and it works fine. Opera is not on my distro but Arora is and it works fine and so did Firefox. The only problem with Arora is the yahoo only recognizes Firefox so that does away with Arora. Tried Suse 11.3 as a live cd and Firefox works fine. Ubuntu's Firefox does not recognize either yahoo.com or the URL. So now I am looking for a new distro that Works with Firefox. Clay --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss -- Dazed_75 a.k.a. Larry The spirit of resistance to government is so valuable on certain occasions, that I wish it always to be kept alive. - Thomas Jefferson --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Python help (finding duplicates)
Sorry about the time issue. On Friday 27 August 2010 23:50:00 you wrote: I hope these are small files, the algorithm you wrote is not going to run well as file size gets large (over 10,000 entries) Have you checked the space/tab situation? Python uses indentation changes to indicate the end of a block, so inconsistent use of tabs and spaces freaks it out. Here are a couple questions: This is not a school project, so you won't be doing my homework or anything :) The space/tab issue is okay, but the script does not even get to the print(i), I even tried for line in secondaryfile: and the for loop still wouldn't be executed. Are these always numbers? Yes, they are IP's from an Apache error log. Do the files have to remain in their original order, or can you reorder them during processing? How often does this have to run? they are not in order because one list is 852 entries and another list is 3300 entries. This script only needs to run once. Do you have to comment the duplicate, or can you remove it? The plan is to remove it, but I wanted to see if my removal method would work, so I was trying to put a comment next to it. Are there any other requirements not obvious from the description below? No real requirements, if anyone would like the original files I can give them to you, a lot of them are bots. Thank you :) -Kevin Kevin Faulkner wrote: I was trying to pull duplicates out of 2 different files. Needless to say there are duplicates I would place a # next to the duplicate. Example files: file 1: file 2: 433.3 947.3 543.1 749.0 741.1 859.2 238.5 433.3 839.2 229.1 583.6 990.1 863.4 741.1 859.2 101.8 import string i=1 primaryfile = open('/tmp/extract','r') secondaryfile = open('/tmp/unload') for line in primaryfile: pcompare = line print(pcompare) for row in secondaryfile: i = i + 1 print(i) scompare = row if pcompare == scompare: print(scompare) secondaryfile.write('#') With this code it should go through the files and find a duplicate and place a '#' next to it. But for some reasonson it doesn't even get to the second for statement. I don't know what else to do. Please offer some assistance. :) --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Python help (finding duplicates)
OK, I've attached a complete program that works, if you want to just get it done, but I've also described what went wrong in your first attempt below. # the i value was just for debugging, so I dropped it primaryfile = open('/tmp/extract','r') # read the primary file into a list for speed and so you aren't reading more than once primary_lines = primaryfile.readlines() # you didn't specify a mode for this, so it defaulted to read-only. Be explicit for clarity secondaryfile = open('/tmp/unload', 'r') # Open a separate file for output, otherwise you would have been writing and reading the same file over and over again, which usually causes errors outputfile = open('/tmp/result-file', 'w') # read the second file into a list, then you can scan through it over and over without hammering disk and re-reading a file you might have modified. secondary_lines = secondaryfile.readlines() # print is a statement, not a function. print 'opened files' # loop through the list, not the file for line in primary_lines: pcompare = line # print is a statement, use the formatting operator to print variable values print 'primary line = %s' % (pcompare) # loop through the list, not the file for row in secondary_lines: scompare = row if pcompare == scompare: # print as a statement, not a function print 'secondary line = %s' % (scompare) # you were writing random # characters in a file (most likely after the line read), this writes a comment to a new file, which is usually clearer. # invert the test, and add the line to a set here then write out the set at the end to get an output of lines without duplication. outputfile.write('#%s' % (scompare)) print 'Done' Kevin Faulkner wrote: Sorry about the time issue. On Friday 27 August 2010 23:50:00 you wrote: I hope these are small files, the algorithm you wrote is not going to run well as file size gets large (over 10,000 entries) Have you checked the space/tab situation? Python uses indentation changes to indicate the end of a block, so inconsistent use of tabs and spaces freaks it out. Here are a couple questions: This is not a school project, so you won't be doing my homework or anything :) The space/tab issue is okay, but the script does not even get to the print(i), I even tried for line in secondaryfile: and the for loop still wouldn't be executed. Are these always numbers? Yes, they are IP's from an Apache error log. Do the files have to remain in their original order, or can you reorder them during processing? How often does this have to run? they are not in order because one list is 852 entries and another list is 3300 entries. This script only needs to run once. Do you have to comment the duplicate, or can you remove it? The plan is to remove it, but I wanted to see if my removal method would work, so I was trying to put a comment next to it. Are there any other requirements not obvious from the description below? No real requirements, if anyone would like the original files I can give them to you, a lot of them are bots. Thank you :) -Kevin Kevin Faulkner wrote: I was trying to pull duplicates out of 2 different files. Needless to say there are duplicates I would place a # next to the duplicate. Example files: file 1: file 2: 433.3 947.3 543.1 749.0 741.1 859.2 238.5 433.3 839.2 229.1 583.6 990.1 863.4 741.1 859.2 101.8 import string i=1 primaryfile = open('/tmp/extract','r') secondaryfile = open('/tmp/unload') for line in primaryfile: pcompare = line print(pcompare) for row in secondaryfile: i = i + 1 print(i) scompare = row if pcompare == scompare: print(scompare) secondaryfile.write('#') With this code it should go through the files and find a duplicate and place a '#' next to it. But for some reasonson it doesn't even get to the second for statement. I don't know what else to do. Please offer some assistance. :) --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss def sort_and_compare_files(extract, unload, clean_extract, clean_unload, clean_combined): try: input_extract = open(extract, 'r') input_unload = open(unload, 'r') output_extract = open(clean_extract, 'w') output_unload = open(clean_unload, 'w') output_combined = open(clean_combined, 'w') extract_set = set(input_extract) unload_set = set(input_unload) extract_unique = extract_set.difference(unload_set)
Re: Python help (finding duplicates)
if you are just looking for a list of unique values, why not just do: cat file1 file2 | sort | uniq file3 Obviously you could have reasons why this won't suffice for your need, but I've not seen that in your description yet On Sat, Aug 28, 2010 at 9:48 AM, Kevin Faulkner kondo...@encryptedforest.net wrote: Sorry about the time issue. On Friday 27 August 2010 23:50:00 you wrote: I hope these are small files, the algorithm you wrote is not going to run well as file size gets large (over 10,000 entries) Have you checked the space/tab situation? Python uses indentation changes to indicate the end of a block, so inconsistent use of tabs and spaces freaks it out. Here are a couple questions: This is not a school project, so you won't be doing my homework or anything :) The space/tab issue is okay, but the script does not even get to the print(i), I even tried for line in secondaryfile: and the for loop still wouldn't be executed. Are these always numbers? Yes, they are IP's from an Apache error log. Do the files have to remain in their original order, or can you reorder them during processing? How often does this have to run? they are not in order because one list is 852 entries and another list is 3300 entries. This script only needs to run once. Do you have to comment the duplicate, or can you remove it? The plan is to remove it, but I wanted to see if my removal method would work, so I was trying to put a comment next to it. Are there any other requirements not obvious from the description below? No real requirements, if anyone would like the original files I can give them to you, a lot of them are bots. Thank you :) -Kevin Kevin Faulkner wrote: I was trying to pull duplicates out of 2 different files. Needless to say there are duplicates I would place a # next to the duplicate. Example files: file 1: file 2: 433.3 947.3 543.1 749.0 741.1 859.2 238.5 433.3 839.2 229.1 583.6 990.1 863.4 741.1 859.2 101.8 import string i=1 primaryfile = open('/tmp/extract','r') secondaryfile = open('/tmp/unload') for line in primaryfile: pcompare = line print(pcompare) for row in secondaryfile: i = i + 1 print(i) scompare = row if pcompare == scompare: print(scompare) secondaryfile.write('#') With this code it should go through the files and find a duplicate and place a '#' next to it. But for some reasonson it doesn't even get to the second for statement. I don't know what else to do. Please offer some assistance. :) --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss -- Dazed_75 a.k.a. Larry The spirit of resistance to government is so valuable on certain occasions, that I wish it always to be kept alive. - Thomas Jefferson --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Small Quiet PC recommendations
10. Re: Small Quiet PC recommendations (Tuna) I'm actually partial to Asus Netbooks. I have had a 700, 900 and 1000 series. I still have to two later ones. The reason for the whole netbook is that it has it's own UPS, you don't have to drag out a monitor if something goes tits up, and it's designed to run off of USB pretty much completely from boot to finish. They are quiet, and pretty unobtrusive. The only thing you need to make sure about is that you place any netbook on a hard surface without any clothe, so it can breathe and won't overheat. It's pretty much par for the course with any laptop anyway. I looked through some of the posts about FreeNAS. Personally I would never touch the OS again if someone paid me. I had 3x where for whatever reason after having it for the most part configured and doing some final stuff in the Web interface that the whole OS locked up. This was only the beginning of troubles. When I finally could regain control of the machine the OS, or the filesystem itself and/or all my data was destroyed. Needless to say I wasn't happy. I converted it back over to a Linux box and had no issues. vp --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Compact Flash cards
So far the cheapest cards from Kingston with Lifetime warranties run about $75 for 32GB. I am actually planning on getting a couple of these to retire one hdd that I have had in service for backups the past 3 years or so. Temp Ranges are generally -25C to 85C and are waterproof. So with the offsite backups I am using through DataStorageUnit.com and what is in my machine should be more than sufficient. I have one of the 25N1 multi slot readers so I can pretty much read any media I want. SD cards seem to be just about as durable, at least a close 2nd, but about the same price. I wouldn't look at any USB flash drives because I literally have had 2-3 in the past few months fall apart in my hands. With my data on it. Another lets not make me a happy camper issue. As far as compact flash goes I really haven't seen any 64 GB cards that at present would be in the price of us mortal humans. Right now that 32 GB would fit what I think is critical to backups and in the next 6 months, most likely after the holidays prices should drop on 64GB sufficiently. The idea is compactness, durability not necessarily size of the drive at present. Does anyone else use anything else that I may not be thinking of at the moment? -- -- Remember it's not that we have something to hide, we just have nothing we want to show. ---Keep tunnelling. --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: OT: Self Employed Health Insurance Costs and Coverage
On Sat, Aug 28, 2010 at 07:01:41AM -0700, keith smith wrote: Anytime you get the government involved you have a recipe for disaster. And it is unconstitutional. We have a problem and it needs to be fixed. I believe in a free market solution. The health insurance industry has been operating under a free market system forever. How's that been working out? Not so good? I believe everyone should pay for their own health insurance. Remove this from the employer. Then the payer and consumer will be the same. It will not take long for the market to adjust once that happens. You're advocating the elimination of group coverage with it's lower premiums. Good luck buying an individual policy with it's exclusions for pre-existing conditions. ...snip.. -- Bob Holtzman Key ID: 8D549279 If you think you're getting free lunch, check the price of the beer signature.asc Description: Digital signature --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Compact Flash cards
CompactFlash cards have the advantage of being an IDE interface, so it only takes a very simple (i.e. cheap) adapter to plug one into a motherboard IDE connector. For large capacity, I'd wait a bit with SD, as the SDXC cards and peripherals are just showing up, and there's a big improvement in headroom from SDHC to SDXC. If you want something internal, there are actual 2.5 SATA SSD drives in the 32G range on NewEgg for about $75 as well. gm5729 wrote: So far the cheapest cards from Kingston with Lifetime warranties run about $75 for 32GB. I am actually planning on getting a couple of these to retire one hdd that I have had in service for backups the past 3 years or so. Temp Ranges are generally -25C to 85C and are waterproof. So with the offsite backups I am using through DataStorageUnit.com and what is in my machine should be more than sufficient. I have one of the 25N1 multi slot readers so I can pretty much read any media I want. SD cards seem to be just about as durable, at least a close 2nd, but about the same price. I wouldn't look at any USB flash drives because I literally have had 2-3 in the past few months fall apart in my hands. With my data on it. Another lets not make me a happy camper issue. As far as compact flash goes I really haven't seen any 64 GB cards that at present would be in the price of us mortal humans. Right now that 32 GB would fit what I think is critical to backups and in the next 6 months, most likely after the holidays prices should drop on 64GB sufficiently. The idea is compactness, durability not necessarily size of the drive at present. Does anyone else use anything else that I may not be thinking of at the moment? --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss signature.asc Description: OpenPGP digital signature --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: OT: Self Employed Health Insurance Costs and Coverage
Your employer might be paying upwards of $800 a month for your insurance. If premiums continue to rise, your employer is either going to make you pay more, get junk insurance, or drop it all together. The problem is your employer pays for the insurance so you are out of the loop. You do not have any say in the decision and you do not feel the pain of paying the premium. The consumer is not the payer. It is not a real free market solution, however I was responding to the suggestion of a single payer system. Single payer sounds like M$ - monopoly. If each person was to buy health insurance like car insurance then people would be more educated and the system would have to change. For the most part you are not covered for any pre-existing conditions on your employer sponsored group health. I worked for an HMO in the mid to late 90's. They did all kinds of things to determine if you have a pre-existing condition. As an example they checked every birth to make sure the mother was covered at the time of conception. If there were any questions they would deny the claim. Another example is someone in a car accident. You make a claim against the other driver and the HMO wants to be reimbursed because you were paid in a settlement. The system is a mess, and most people are unaware. Let someone pay $800 a month and at the end of the year when they have paid out $9,600 and went to the doctor 3 times at a cost of $300.00, they will start to look at the system and either drop their coverage or find a better way. The HMO's would be out and grassroots clinics would spout up all over the place. Keith Smith --- On Sat, 8/28/10, Robert Holtzman hol...@cox.net wrote: From: Robert Holtzman hol...@cox.net Subject: Re: OT: Self Employed Health Insurance Costs and Coverage To: plug-discuss@lists.plug.phoenix.az.us Date: Saturday, August 28, 2010, 12:16 PM On Sat, Aug 28, 2010 at 07:01:41AM -0700, keith smith wrote: Anytime you get the government involved you have a recipe for disaster. And it is unconstitutional. We have a problem and it needs to be fixed. I believe in a free market solution. The health insurance industry has been operating under a free market system forever. How's that been working out? Not so good? I believe everyone should pay for their own health insurance. Remove this from the employer. Then the payer and consumer will be the same. It will not take long for the market to adjust once that happens. You're advocating the elimination of group coverage with it's lower premiums. Good luck buying an individual policy with it's exclusions for pre-existing conditions. ...snip.. -- Bob Holtzman Key ID: 8D549279 If you think you're getting free lunch, check the price of the beer -Inline Attachment Follows- --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Compact Flash cards
This will be for actual backup purposes. I have an SSD/GPT already for my OS in my box. This is so I can carry and go. SDXC is $275 for 64GB, a little more than I want to spend at present, but a future contender for sure. I have no IDE slots on my mobo, its all SATA. Welcome to the world of Micro ATX. Which by the by for those that don't know. gdisk and gnu Parted are the only partitions you can use on SSD/GPT drives or you destroy the block/geometry mappings. There are no such thing as logical/extended partitions on them, everything is primary. YOU MUST after setting the GPT mapping for the MBR set up a min 1MB empty partition, no filesystem, flagged as bios_grub or ee, kinda like the 82/83 schema. GRUB 2 is best on these devices and grub.org recommends strongly using a separate /boot, be prepared with a Super Grub2 Disk just in case. After that you are set as normal with your favorite distro. -- -- Remember it's not that we have something to hide, we just have nothing we want to show. ---Keep tunnelling. --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Compact Flash cards
On Sat, Aug 28, 2010 at 2:19 PM, gm5729 gm5...@gmail.com wrote: Which by the by for those that don't know. gdisk and gnu Parted are the only partitions you can use on SSD/GPT drives or you destroy the block/geometry mappings. There are no such thing as logical/extended partitions on them, everything is primary. YOU MUST after setting the GPT mapping for the MBR set up a min 1MB empty partition, no filesystem, flagged as bios_grub or ee, kinda like the 82/83 schema. GRUB 2 is best on these devices and grub.org recommends strongly using a separate /boot, be prepared with a Super Grub2 Disk just in case. After that you are set as normal with your favorite distro. What does GPT mean? The SSD should not care about what partitioning tool is used. So, at the moment, I am confused about your statements above. Maybe I don't understand something. Alan --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: OT: Self Employed Health Insurance Costs and Coverage
At 12:16 PM 8/28/2010, you wrote: On Sat, Aug 28, 2010 at 07:01:41AM -0700, keith smith wrote: Anytime you get the government involved you have a recipe for disaster. And it is unconstitutional. We have a problem and it needs to be fixed. I believe in a free market solution. The health insurance industry has been operating under a free market system forever. Sorry - that is not correct...big brother govt has had their hand in for quite some time, messing up the works. How's that been working out? Not so good? I believe everyone should pay for their own health insurance. Remove this from the employer. Then the payer and consumer will be the same. It will not take long for the market to adjust once that happens. You're advocating the elimination of group coverage with it's lower premiums. Good luck buying an individual policy with it's exclusions for pre-existing conditions. If 100% of the people bought, we would have much lower pricingand if tort reform came about, even more.100% would buy if we quit giving it to them free. ...snip.. -- Bob Holtzman Key ID: 8D549279 If you think you're getting free lunch, check the price of the beer --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Compact Flash cards
GPT disk A GPT disk uses the GUID partition table (GPT) disk partitioning system. A GPT disk offers these benefits: • Allows up to 128 primary partitions. (MBR disks can support up to four primary partitions and an infinite number of partitions inside an extended partition.) • Allows a much larger volume size - greater than 2 TB, which is the limit for MBR disks. • Provides greater reliability due to replication and cyclical redundancy check (CRC) protection of the partition table. • Can be used as a storage volume on all x64-based platforms. -- -- Remember it's not that we have something to hide, we just have nothing we want to show. ---Keep tunnelling. --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Compact Flash cards
On Sat, Aug 28, 2010 at 2:48 PM, gm5729 gm5...@gmail.com wrote: GPT disk A GPT disk uses the GUID partition table (GPT) disk partitioning system. A GPT disk offers these benefits: • Allows up to 128 primary partitions. (MBR disks can support up to four primary partitions and an infinite number of partitions inside an extended partition.) • Allows a much larger volume size - greater than 2 TB, which is the limit for MBR disks. • Provides greater reliability due to replication and cyclical redundancy check (CRC) protection of the partition table. • Can be used as a storage volume on all x64-based platforms. Very interesting. Thank you. You stated: gdisk and gnu Parted are the only partitions you can use on SSD/GPT drives or you destroy the block/geometry mappings. Is the destruction of the geometry mappings a bug in other tools or a side effect of using GPT or what? I'm trying to understand how the drive would allow an outside tool to muck about in it's mapping data. In general, such data is simply not available to outside tools. Alan --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Compact Flash cards
On Sat, Aug 28, 2010 at 16:48, gm5729 gm5...@gmail.com wrote: GPT disk A GPT disk uses the GUID partition table (GPT) disk partitioning system. A GPT disk offers these benefits: • Allows up to 128 primary partitions. (MBR disks can support up to four primary partitions and an infinite number of partitions inside an extended partition.) • Allows a much larger volume size - greater than 2 TB, which is the limit for MBR disks. • Provides greater reliability due to replication and cyclical redundancy check (CRC) protection of the partition table. • Can be used as a storage volume on all x64-based platforms. -- -- Remember it's not that we have something to hide, we just have nothing we want to show. ---Keep tunnelling. Yes I did. cfdisk and fdisk will ruin the mappings on the drive. I have found with most installers that upon ELF trying to boot there is a GPT error and the installer won't let you continue. IF you can continue and you use the above tools in their present state you will probably in the very strongly realm get instabilities. If you add such things as LVM2, RAID, etc etc they can increase. In my case and this has taken me 6 months to figure out along with someone who is developing a hybrid iso/usb installer. My MBR got overwritten by the /boot partition by 2 bytes. Doesn't sound like much, until you install a bootloader and it overwrites the /boot partition by that 2 bytes. Now if your computer is having a bad day, which in this case it is you might not be able to boot or you might have no /boot. So I would encourage using the proper tools so as not get surprises in your xmas stocking. vp -- -- Remember it's not that we have something to hide, we just have nothing we want to show. ---Keep tunnelling. --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Auto Reply: PLUG-discuss Digest, Vol 62, Issue 30
I will be out of the office from 8/27 - 8/30. Please contact my manager Rob Lau @ (949) 521 0757 or robert@oracle.com for any urgent issues. --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Auto Reply: PLUG-discuss Digest, Vol 62, Issue 30
That's a problem. I'll email his manager to see if he can do anything about this, guys. On 08/28/2010 12:00 PM, jason.hil...@oracle.com wrote: I will be out of the office from 8/27 - 8/30. Please contact my manager Rob Lau @ (949) 521 0757 or robert@oracle.com for any urgent issues. --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Python help (finding duplicates)
On Saturday 28 August 2010 11:48:10 Joseph Sinclair wrote: OK, I've attached a complete program that works, if you want to just get it done, but I've also described what went wrong in your first attempt below. I really appreciate what you have done. I more so like the description of what I did wrong. Using readlines() is a better approach like you said, less disk thrashing. I was using /usr/bin/python3, so print() is now a function. My next step is to take the host list and identify where the IP is using pygeoip. Thank you again. :) -Kevin # the i value was just for debugging, so I dropped it primaryfile = open('/tmp/extract','r') # read the primary file into a list for speed and so you aren't reading more than once primary_lines = primaryfile.readlines() # you didn't specify a mode for this, so it defaulted to read-only. Be explicit for clarity secondaryfile = open('/tmp/unload', 'r') # Open a separate file for output, otherwise you would have been writing and reading the same file over and over again, which usually causes errors outputfile = open('/tmp/result-file', 'w') # read the second file into a list, then you can scan through it over and over without hammering disk and re-reading a file you might have modified. secondary_lines = secondaryfile.readlines() # print is a statement, not a function. print 'opened files' # loop through the list, not the file for line in primary_lines: pcompare = line # print is a statement, use the formatting operator to print variable values print 'primary line = %s' % (pcompare) # loop through the list, not the file for row in secondary_lines: scompare = row if pcompare == scompare: # print as a statement, not a function print 'secondary line = %s' % (scompare) # you were writing random # characters in a file (most likely after the line read), this writes a comment to a new file, which is usually clearer. # invert the test, and add the line to a set here then write out the set at the end to get an output of lines without duplication. outputfile.write('#%s' % (scompare)) print 'Done' Kevin Faulkner wrote: Sorry about the time issue. On Friday 27 August 2010 23:50:00 you wrote: I hope these are small files, the algorithm you wrote is not going to run well as file size gets large (over 10,000 entries) Have you checked the space/tab situation? Python uses indentation changes to indicate the end of a block, so inconsistent use of tabs and spaces freaks it out. Here are a couple questions: This is not a school project, so you won't be doing my homework or anything :) The space/tab issue is okay, but the script does not even get to the print(i), I even tried for line in secondaryfile: and the for loop still wouldn't be executed. Are these always numbers? Yes, they are IP's from an Apache error log. Do the files have to remain in their original order, or can you reorder them during processing? How often does this have to run? they are not in order because one list is 852 entries and another list is 3300 entries. This script only needs to run once. Do you have to comment the duplicate, or can you remove it? The plan is to remove it, but I wanted to see if my removal method would work, so I was trying to put a comment next to it. Are there any other requirements not obvious from the description below? No real requirements, if anyone would like the original files I can give them to you, a lot of them are bots. Thank you :) -Kevin Kevin Faulkner wrote: I was trying to pull duplicates out of 2 different files. Needless to say there are duplicates I would place a # next to the duplicate. Example files: file 1:file 2: 433.3 947.3 543.1 749.0 741.1 859.2 238.5 433.3 839.2 229.1 583.6 990.1 863.4 741.1 859.2 101.8 import string i=1 primaryfile = open('/tmp/extract','r') secondaryfile = open('/tmp/unload') for line in primaryfile: pcompare = line print(pcompare) for row in secondaryfile: i = i + 1 print(i) scompare = row if pcompare == scompare: print(scompare) secondaryfile.write('#') With this code it should go through the files and find a duplicate and place a '#' next to it. But for some reasonson it doesn't even get to the second for statement. I don't know what else to do. Please offer some assistance. :) --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings:
Re: OT: Self Employed Health Insurance Costs and Coverage
On Sat, Aug 28, 2010 at 02:39:06PM -0700, Lyle Tuttle wrote: At 12:16 PM 8/28/2010, you wrote: snip. We have a problem and it needs to be fixed. I believe in a free market solution. The health insurance industry has been operating under a free market system forever. Sorry - that is not correct...big brother govt has had their hand in for quite some time, messing up the works. Oh. That's probably the reason rates have *far* outstripped inflation. Yup, too much regulation. Couldn't be the profit motive. .snip. If 100% of the people bought, we would have much lower pricing That's a feature of the health care package.the feature that causes conservatives to have a stroke. -- Bob Holtzman Key ID: 8D549279 If you think you're getting free lunch, check the price of the beer signature.asc Description: Digital signature --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: OT: Self Employed Health Insurance Costs and Coverage
Based on a recent experience, other life experiences, and much reading I would say health insurance premiums are increasing do a great extent based on and the cause of extremely expensive rates is based on the uninsured who utilize and do not pay. We have a ton of guests who use the emergency room as their PCP. You and I pay for that in many ways. Directly and indirectly. It also affects our taxes. I know you are going to cry foul. I think you might change your tune if you had to pay $800 a month for insurance you can hardly use. The quotes I have been receiving are in the $400 plus range and have a $9000 deductible. That means I pay $4800 a year plus all medical costs up to $9000. My out of pocket would be $13,800 before I would get into a 70% / 30% where I would pay up to another $3000 and then the insurance kicks in. That means I would spend $16,800 before the insurance takes over. This is all true. Keith Smith --- On Sat, 8/28/10, Robert Holtzman hol...@cox.net wrote: From: Robert Holtzman hol...@cox.net Subject: Re: OT: Self Employed Health Insurance Costs and Coverage To: plug-discuss@lists.plug.phoenix.az.us Date: Saturday, August 28, 2010, 5:23 PM On Sat, Aug 28, 2010 at 02:39:06PM -0700, Lyle Tuttle wrote: At 12:16 PM 8/28/2010, you wrote: snip. We have a problem and it needs to be fixed. I believe in a free market solution. The health insurance industry has been operating under a free market system forever. Sorry - that is not correct...big brother govt has had their hand in for quite some time, messing up the works. Oh. That's probably the reason rates have *far* outstripped inflation. Yup, too much regulation. Couldn't be the profit motive. .snip. If 100% of the people bought, we would have much lower pricing That's a feature of the health care package.the feature that causes conservatives to have a stroke. -- Bob Holtzman Key ID: 8D549279 If you think you're getting free lunch, check the price of the beer -Inline Attachment Follows- --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: OT: Self Employed Health Insurance Costs and Coverage
At 05:23 PM 8/28/2010, you wrote: On Sat, Aug 28, 2010 at 02:39:06PM -0700, Lyle Tuttle wrote: At 12:16 PM 8/28/2010, you wrote: snip. We have a problem and it needs to be fixed. I believe in a free market solution. The health insurance industry has been operating under a free market system forever. Sorry - that is not correct...big brother govt has had their hand in for quite some time, messing up the works. Oh. That's probably the reason rates have *far* outstripped inflation. Yup, too much regulation. Couldn't be the profit motive. Of COURSE profit motive enters the picture..but get govt OUT and let the FREE MARKET work! .snip. If 100% of the people bought, we would have much lower pricing That's a feature of the health care package.the feature that causes conservatives to have a stroke. You just haven't received the bill yet...for example, did you know you will soon get to pay a 3.8% tax on the selling price of your home, with that tax going to heqlth care? Now, I ask you, what the heck does selling a house have to do with health care? Nothing, they are just hiding the real cost...there ain't no free lunch - they may be putting them out on consignment for now, but sooner or later. --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: OT: Self Employed Health Insurance Costs and Coverage
Keith, you are correct though you have no idea why. I am uninsured. The reason why I am no longer in a group is complicated. The reason I am uninsured is not complicated at all. My individual premium had reached over $1600/month with a $1 deductible and prescription coverage that was worse than just mail ordering prescriptions from Canada. At the time I was making 2 doctor visits per year, with blood work each time, getting 4 prescriptions and had no additional medical costs for years. Once I dropped that useless insurance, I tried several group discount plans which was a waste. I quit going to doctors and all medication for 7 years. I just recently started going again because I found a lump under my arm (it turned out to be an infected hair follicle). Now I am paying full bore costs for everything and it scares the hell out of me that something serious will happen. The last blood work series listed out at nearly $1000. I pay that much because the medical facilities have to overcharge (and set precedents) of high costs because medicare and insurance companies underpay for everything. The free market driven system and government controls BOTH suck ... largely because there is no free market. The bottom line mentality today drives everything and hurts everyone but the rich and powerful. Sorry, I had promised I would not get involved in this thread and have failed badly. On Sat, Aug 28, 2010 at 5:39 PM, keith smith klsmith2...@yahoo.com wrote: Based on a recent experience, other life experiences, and much reading I would say health insurance premiums are increasing do a great extent based on and the cause of extremely expensive rates is based on the uninsured who utilize and do not pay. We have a ton of guests who use the emergency room as their PCP. You and I pay for that in many ways. Directly and indirectly. It also affects our taxes. I know you are going to cry foul. I think you might change your tune if you had to pay $800 a month for insurance you can hardly use. The quotes I have been receiving are in the $400 plus range and have a $9000 deductible. That means I pay $4800 a year plus all medical costs up to $9000. My out of pocket would be $13,800 before I would get into a 70% / 30% where I would pay up to another $3000 and then the insurance kicks in. That means I would spend $16,800 before the insurance takes over. This is all true. Keith Smith --- On *Sat, 8/28/10, Robert Holtzman hol...@cox.net* wrote: From: Robert Holtzman hol...@cox.net Subject: Re: OT: Self Employed Health Insurance Costs and Coverage To: plug-discuss@lists.plug.phoenix.az.us Date: Saturday, August 28, 2010, 5:23 PM On Sat, Aug 28, 2010 at 02:39:06PM -0700, Lyle Tuttle wrote: At 12:16 PM 8/28/2010, you wrote: snip. We have a problem and it needs to be fixed. I believe in a free market solution. The health insurance industry has been operating under a free market system forever. Sorry - that is not correct...big brother govt has had their hand in for quite some time, messing up the works. Oh. That's probably the reason rates have *far* outstripped inflation. Yup, too much regulation. Couldn't be the profit motive. .snip. If 100% of the people bought, we would have much lower pricing That's a feature of the health care package.the feature that causes conservatives to have a stroke. -- Bob Holtzman Key ID: 8D549279 If you think you're getting free lunch, check the price of the beer -Inline Attachment Follows- --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.ushttp://mc/compose?to=plug-disc...@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss -- Dazed_75 a.k.a. Larry The spirit of resistance to government is so valuable on certain occasions, that I wish it always to be kept alive. - Thomas Jefferson --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: OT: Self Employed Health Insurance Costs and Coverage
If you are in the self employed for the long hall you may want to join a small business group policy. Basically the policy managers take a chunk off the top but present a group of several thousand to the insurance company so they get a corporate like deal. Typically it works out to be cheaper but the last time I looked into it they all wanted a 2 year contract. On Tue, Aug 17, 2010 at 8:52 AM, keith smith klsmith2...@yahoo.com wrote: Hi, I am self employed and have gone without health insurance for a while. I have been very healthy, with the exception of bouts of high blood pressure and high cholesterol. I was told both could be treated with diet and exercise. Both in place. Here is my dilemma. I am older so I am more high risk. The best insurance I can find cost close to $500/month for my wife and I and it has a $3000 deductible for each of us. Basically we will be paying $6000/year for catastrophic insurance and will pay $3000 for each of us until the insurance kicks in. If we just have some preventative care, we could end up spending upwards of $8000 a year without accessing the Insurance. Any suggestions from others who are self employed? Thanks! Keith Smith --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss