Member Avatar

Hello I am new to python coding and have a couple of things that I could really use some help on. I need to move some sor files from one folder to another and to add a date and time to the facts sheet that it produces if any one could help i would b greatly appriciated. Attached is my code import csv, datetime franchiseList = {} with open('Franchise_Name_Scrub_List.csv', 'r') as ff: fcf = csv.DictReader(ff) for frow in fcf: franchiseList[frow['Misc Franchise Name']] = frow with open('Franchise_Name_Scrub_List.csv', 'r') as fF: fcf = csv.DictReader(fF) for Frow in fcf: franchiseList[Frow['FRANCHISE Name - Directory']] …

Member Avatar
+0 forum 2
Member Avatar

I'm currently having an assignment that wants me to copy a select amount of files. More specifically files that are even using the cp command. The assignment is to copy files that start with cp and are even. This was my command at first `cp[24680]*` but it returned all files that had an even number in it. I just want files that end in the even number. example I want to copy only these files: cp1250.enc cp1256.enc cp852.enc cp864.enc cp932.enc cp1252.enc cp1258.enc cp860.enc cp866.enc cp936.enc cp1254.enc cp850.enc cp862.enc cp874.enc cp950.enc. But the command I make gives me : cp437.enc cp852.enc …

Member Avatar
+0 forum 2
Member Avatar

I am getting Copying issue with my code, when i use only one single url it works but if i get multi url from explode function and call them it gives me an error please help me i have a problem in my copy() function let me show my code. any help will be appreciated thanks! for($i=0; $i<count($mp3_filepath); $i++) { $sname = $default_mp3_directory.$mp3_folder.$mp3_filepath[$i]; if(copy($mp3_filepath[$i],$mp3_filepath[$i])){ $size = friendly_size(filesize(basename($sname))); echo"<br />Copied <a href='$mp3_filepath[$i]'>$mp3_filepath[$i]<a> to <a href='$sname'>".basename($sname)."</a> ( $size )";

Member Avatar
+0 forum 3
Member Avatar

Hi, I am a newbie in C#. I am trying to read a text file line by line (each line has fixed length of 128 numerical values). Text file has more than 300 lines. Now i want to select and copy each line after 5 lines (i.e., interval = 5 or 10) to another text file. For Example, if there are 7 lines and interval is 2, then it should select line 1 and 4 and 7. (2,3 and 5,6 should be skipped because of interval). I have written a small code which reads a text file line by line …

Member Avatar
+0 forum 2
Member Avatar

Hi, I am trying to copy a directory from one spot on my server to another spot on my server. I have copied the directory successfully, but suppose I delete a file in the "parent" directory. I want the "child" directory to be exactly the same as the parent directory. I have thought of one way I could do it: I could simply delete the child directory and then copy the new directory all over again and that would work. Here is the problem: I could be hosting upwards of 300,000 files at roughly 30MB each. I don't want to …

Member Avatar
+0 forum 4
Member Avatar

Good day to all nerds. Again, rather I should call it New USB Flash Device Problem 2, (but I may end up hijacking my post just from that title.) But my first problem there... (which i have said earlier in my problem that it doesn't have a name or driver in itself.) That first problem, is maybe, connected to my present situation. Moderators may modify my post if something's wrong. Danke. Currently, I was copying my files to my flash drive Transcend JetFlash V30, but after in a matter of intervals an error message pops out, stating like this: An …

Member Avatar
+0 forum 5
Member Avatar

Aoa, Hello All, i am having problem in this question Write a program that takes integer input from the user and store into the array dynamically allocated each time a new element is added. Your program should prompt user to take integers until he enters -1, which means end of input. After taking all the numbers print them in the reverse order as entered by the user. the code which i have written is attached along. it is printing junk values. need help :) regards code goes here [CODE]#include <iostream> using namespace std; void question1(); int main() { question1(); } …

Member Avatar
+0 forum 6
Member Avatar

Hi, I have a network with 3 Xp machines. PC1, PC2 and PC3. Copying and pasting a 600MB file from PC2 to PC3 takes 5 minutes but copying the same file from PC1 to either of the other PCs takes 75+- minutes and vice versa. Anyone know what could cause this?

Member Avatar
+0 forum 2
Member Avatar

Friends, I would like to reformat a file ( fort.80) to fort.90! For that I used type constructs for reading the input ( fort.80) as well as writing it to output ( fort.90). I can successfully do copying all but one case (dihedral), where the output file looks blank ( please see the last column of fort.90). When I tried to write individually within the loop in which I copied the corresponding data (backbonedihedral) from fort.80, it works fine. But when I write the same data along with other variables (reorderedresiseqNumber,resiName, alphadistance, calphaangle), it (backbonedihedral ) gives me only blanks.( …

Member Avatar
+0 forum 1
Member Avatar

Hey guys I've seem to be stuck with a particular problem, which I just cant solve. Here is some background info. We are small company with 8 users. We have a shared network drive on the development server (Windows Server 2008 R2) we use to sync our development code/other files. This server is connected to domain SBS 2008, which manages our mail/domain and has 2 Hyper-V running. 2 Physical Servers / 4 laptops and 4 desktops (7 Hyper V machines) All our machines are running Symantec Endpoint Protection The problem I have is the following, all our users can sync …

Member Avatar
+0 forum 11
Member Avatar

Is there a way to move data from one map to another without it being re-sorted? Ex: I have a map of [ICODE]<int, pair<string, int>[/ICODE] where the key is the number of vowels in the string (int) and the pair contains a moviename as string and rating as int (multiple entries for each moviename). I want to move this data to two maps; one with the moviename as key and total of all ratings as value, and one with the moviename as key and the number of all ratings as value. These should stay sorted in the same order (lowest …

Member Avatar
+0 forum 2
Member Avatar

I want to copy the site of compititor by posting the same titiled articles with same meta keywords. But how to determine that which article is batter to copy. I want to copy only that articles which could provide me good traffic. Copying articel does not mean to just copy & paste. I will post them after totally changing the contents.

Member Avatar
-1 forum 2
Member Avatar

My tutor suggested me to use deep copy for copying tuples for pawn-chess game... can anyone help me out with how actually deep copy works ?? coz if i know it i can work it out in a more smoother way... n yea... m new to python !!

Member Avatar
+0 forum 4
Member Avatar

How would I go about copying a robots.txt file from a webserver and then displaying that information?

Member Avatar
+0 forum 1
Member Avatar

I found this interesting blog post through one of my groups on Linkedin and I wanted to share it with everyone. Here is the link [INDENT][url]http://www.relationship-economy.com/?p=6591[/url][/INDENT] The basic premise is that in the world there are either creators or copiers and that is social media if you simply copy other peoples work you are destined to be a loser in social media. I agree with this as I strongly advocate to my clients that they have to share their knowledge and develop and speak with their own voices in the social media world otherwise they will be ignored. What do …

Member Avatar
+0 forum 4

The End.