Hey Guys, So using a webform textarea I am passing some data into PHP. This data is basically 4 columns of an excel sheet and potentially unlimited rows. Now I want to be able to go through this data, select each of the four individual elements from each row, insert these as a new row into a MySQL database and do this for each row pasted into the original textarea. I was told that Excel separates new lines with a '\n' character and each column with a '\t' separator. So my approach was to use `$rows=explode('\n',$data)` and then explode each …

Member Avatar
Member Avatar
+0 forum 6

Hi I thought this was easy. I want to copy a spreadsheet in a workbook to a new spreadsheet in the same workbook preserving links. So as the source worksheet received new entries the copied spreadsheet would be updated. My reason being that I would introduce some variation in the way that data was computed on a few lines.

Member Avatar
Member Avatar
+0 forum 3

Team, Presently i have some 20 files which i need to copy and store in the common directory. below is the example: script name: dir.sh cp /tmp/abc /home/abc/xyz cp /tmp/def /home/abc/xyz cp /tmp/hij /home/abc/xyz The above script is run, it copies the source files on the destination directory(xyz), wanted to make it more interesting. a)it should prompt me if the directory exist/else create it b)cp command should be taken as input file, so that incase i have more changes i can directly make changes to the file where all copy commands are stored c)maintain the copy files on the basis …

Member Avatar
Member Avatar
+0 forum 1

I was wondering if there was an existing method within the .Net frame work which will copy every nth element of an array to a differant array with an initial offset e.g. Original Source Array (Bytes) 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 Original Target Array 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 Source Offset 1 Source Step 3 Target Offset 3 Updated Target Array 00,00,00,12,00,00,00,16,00,00,00,20,00,00,00,24,00,00,00,28 I can quite easily do this with a loop, however it would be handy if a method existed which performed this operation. Primerily the array is a single dimensioned byte array.

Member Avatar
Member Avatar
+0 forum 4

Using the Python win32 extensions it is relatively simple to copy to and from the clipboard. Sorry. the Windows OS is a requirement.

Member Avatar
+0 forum 0

Hi, need to copy div content into clip board with jquery without any swf files.

Member Avatar
Member Avatar
+0 forum 1

Hi guys. I'm working on a christmas present for my dad, it's a program that installs 8 Black Keys songs on his computer. I'm having some trouble with it though. I can't figure out how to get the files out of the jar file. I used to access them with `\\src\\package\\filename.fileending` and had no problem but it's not working for some reason now. I'm using the java.nio package to copy the files, and this is my code. (I got the ExportResource method from [this StackOverflow question](http://stackoverflow.com/questions/10308221/how-to-copy-file-inside-jar-to-outside-the-jar)) **The Window Class** package installer; import javax.swing.*; import java.awt.*; @SuppressWarnings("serial") public class InstallerWindow extends …

Member Avatar
Member Avatar
+0 forum 1

One of my students make me a question (which answer i know) but I think could be instructive to formulate the same question here so many people can learn about it. The question is: How to implement a copy assignment into a Derived class? Consider the following class A: class A { public: A(int i1_) : i1{i1_} {} A(const A& a) : i1{a.i1} {} // Copy constructor A& operator=(const A& a) // Copy assignment { i1=a.i1; return *this; } private: int i1; }; and you want to implement a derived class B: class B: public A { public: B(int i1_, …

Member Avatar
Member Avatar
+0 forum 8

hi, I need to copy a dictionary to another dictionary where the Dictionary contains class data as value for eg I want to copy the data of object A1 to A2 .Thanks for your time. Class A { } Class B { } Main() { Dictionary<int,A> A1 = new Dictionary<int,A>(); // first dictionary obj Dictionary<int,B> A2 = new Dictionary<int,B>(); // Second dictionary obj }

Member Avatar
Member Avatar
+0 forum 1

hey guys. im trying to copy the value of a text box to another text box on button click. what i have are 2 tables: `add-guest` and `guest-list` and a left button(<) and a right button(>) in between those 2 tables. In table `add-guest` names are populated from database into the body of the table using `.load()` . say for example there are 3 names in `add-guest`: noreen, marzuki, sufiz. name : noreen, is clicked (`$(".the-names").live("click", function()`) and alert pops up : noreen then the `right button`, to copy to `guest-list`, is clicked (`$("#moveright").live("click", function(){`) and alert pops up : …

Member Avatar
Member Avatar
+0 forum 1

I've written this function to take a list and shift each member right by the number supplied as the offset. I want to preserve the supplied list and return the shifted list. My problem is that the function modifies the supplied input list itself as well as returning a new list with the elements shifted, but I can't figure out why. I need the supplied list to be unchanged. My debugging shows me that the line: `work[i + offset] = list_in[i]` is the culprit because each time it executes, the supplied input list changes as well. I'm stumped as to …

Member Avatar
Member Avatar
+0 forum 9

HI, I have class where the data of the class should be copied to another object and each time shouldnt get null , please advise as how to achieve it.

Member Avatar
Member Avatar
+0 forum 1

I'm new to Javascript but need to write a script to enter some text into a form, hit submit and then copy an image to a word document. I'll post the website I'm trying to do this with and maybe you guys can give me some points. Note: I'm a Java/C++ programmer mostly and have never dealt with any kind of web programming, so any help would be appreciated. http://www.barcodesinc.com/generator/index.php

Member Avatar
Member Avatar
+0 forum 1

I have linklabel which has spaces at the end, I want to copy the label's content without the spaces. This copies the linklbl with spaces at the end: Clipboard.SetText(E_mailLinkLabel.Text) But couldn't figure out how to trim the linklabel before copying it.

Member Avatar
Member Avatar
+0 forum 1

hey guys. I have a form (very much simplified): <form method="post" action="add_contact.php"> <label>House No. :</label><input type="text" name="houseno" required /> <label>Street Name :</label><input type="text" name="street" required /> <lable>Spouse ?</lable><input type="radio" id="spouse-yes" onclick="FillSpouse(this.form)">Yes<input type="radio" id="spouse-no"> <label>House No. :</label><input type="text" name="spousehouseno" required /> <label>Street Name :</label><input type="text" name="spousestreet" required /> </form> what i want is for when radion button "Yes" is clicked the two other text fields(name="spousehouseno" and name="spousestreet") will be populated by the same input values in the text fields(name="houseno" and name="street"). ive tried using from [Click Here](http://www.htmlgoodies.com/tutorials/forms/article.php/3898101): <script type="text/javascript"> function FillSpouse(f) { if(f.spouse-yes.checked == true) { f.houseno.value = f.spousehouseno.value; f.street.value = …

Member Avatar
Member Avatar
+0 forum 5

HI I need to copy .dll files in C:\Windows\system32\ which is found or match in my my_file.txt file to C:\tools folder. my code not work and need also to found words that can match my_file.txt. so for example I have RICHED20.dll in my my_file.txt if the same file name"RICHED20.dll" exist in C:\Windows\system32\ the RICHED20.dll copy to my C:\tools import os import shutil source = os.listdir "C:\Windows\system32\" destination = "C:\tools" for files in source: if files.endswith(".dll"): shutil.move(files,destination) my_file.txt dbghelp.dll RICHED20.dll Riched32.dll napinsp.dll wshbth.dll cscapi.dll pnrpnsp.dll winrnr.dll rasadhlp.dll

Member Avatar
Member Avatar
+0 forum 2

You cannot determine whether a ctor is being called on an object that is to become const. Such as: const Foo bar( another_foo ); // no way to determine in the ctor that bar will be const I'd like some sort of function attribute for copy constructors to determine if \*this is being constructed as const. Particularly for clases that share pointers to resources. A const ctor would make perfect sense if it were feasible to be implemented into the standard in this way. we shouldn't have to create whole new classes for this kind of functionality, such as with …

Member Avatar
+0 forum 0

Hi, On copy event, i need to display confirm dialog (we use fancybox dialogs in all project) and depending on user choice add some text (reference) to the copied text or leave the text as it is. And the problem is that - when dialog appears copy function continues to go further and don't wait till confirmation. **Is there a way to pause the event and then continue?** I know i can stop event `e.preventDefault();`. Maybe there is some way to manualy invoke copy event and pass modified text as selection? $("body").bind ('beforecopy', function (e) { if (typeof window.getSelection == …

Member Avatar
Member Avatar
+0 forum 1

how to avoid duplicate lvList DoubleClick() Dim line = lvList.SelectedIndices(item.Text) lvPrint.Items.Add(lvList.Items(line).Clone())

Member Avatar
Member Avatar
+0 forum 1

I want to copy a folder full of folders to a backup on another disk. But if a duplicate filename already exists on the other disk, I want Windows to prompt to ask whether or not to replace the file for each file separately. Windows XP just gives me the option to replace all of the files or not copy the folder. Only if I copy only one folder will it prompt individual files. There are hundreds of folders in this structure, but less than 100 duplicate file names. But I don't know where the duplicates are, and do not …

Member Avatar
Member Avatar
+0 forum 9

given int a[]= {3,2,7,6,8,1,4,5} vector<int> v(a,a+8) use the stl copy algorithm to display the last 5 integers in the vector to cout with each integer on a seperate line. copy takes three argument. third argument is output container. In this case it is v.but v already have 8 elemenst. How to solve this pb?

Member Avatar
Member Avatar
+0 forum 1

I am in wonder. I just make a slideshow form and add the context menu strip as when the user click on download image then current image get copy and paste on the desktop. I use path and destination method in this but they say bitmap cannot be converted into the string. Original Code: Dim Path as string = "Path directory" } `my.resources._1` Dim destination as string = "Detination Directory" If File.Exists(path) And Not File.Exists(destination) Then File.Copy(path, destination) Replace code (try): Dim Path as bitmap = "Path directory" } `my.resources._1` Dim destination as string = "Detination Directory" If File.Exists(path) And …

Member Avatar
Member Avatar
+0 forum 4

Dear All, I'm working on application in C# which needs to filter "blanks" in one column and copy some value from other column instead. Filtering works perfectly, but copying is not so cool.. It copies some lines, but rest left blank. I cant find out where is problem. If possible please check my function below and if you have some idea, please let me know. Thank you Very much, Alan private void fill_blank_pn() { //set filter Excel.Range rg_Set_Filter = (Excel.Range)xlWorkSheet.Rows[1]; rg_Set_Filter.Activate(); rg_Set_Filter.Select(); rg_Set_Filter.AutoFilter(17, "=", Excel.XlAutoFilterOperator.xlAnd, Type.Missing, true); Excel.Range visibleCells = xlWorkSheet.UsedRange.SpecialCells(Excel.XlCellType.xlCellTypeVisible, Type.Missing); for (int area_Id = 1; area_Id <= visibleCells.Areas.Count; …

Member Avatar
+0 forum 0

Someone just notified me that a new free online space provider has launched, called Copy. If you know Dropbox: it's pretty much similar to that for as far as I can see now, only here you get a starting **15GB** for free (instead of 2? at Dropbox). They now have a temporary? launch action: for each person you redirect to Copy that then registers himself, both you *and* the one registering get 5GB of extra space. So therefore my idea: if anyone is interested in registering, register, then copy your share-link to this thread, and the next person who is …

Member Avatar
Member Avatar
+0 forum 25

Hi, Please tell me in the following question why no copy constructor is called when fun returns the A object. While returning b and constructing c, there is no copy constructor called. Why?? #include<iostream> using namespace std; class A { public: A(){cout <<"Default\n";} A(const A&){ cout<<"copy\n"; } A fun(A a) { A b; return b; } }; int main() { A a; A c = a.fun(a); // Here atleast copy copy constructor should have been called. return 0; }

Member Avatar
Member Avatar
+0 forum 2

Hello, I have a small issue with copying text from one textbox in main window to another textbox in an iframe. The code i have is as follows: index.html <html> ... \\JQuery Library Here \\JQuery Code <script> $(function() { $('#lastName').keyup(function() { var txtClone = $(this).val(); var rel = $("#listUnder").contents().find("#relationship option:selected").text(); if(rel == "Son" || rel == "Daughter"){ $("#listUnder").contents().find("#surname").val(txtClone); } }); }); </script> <body> <input type="text" name="lastName" id="lastName"/> <div align="center"> <iframe src="other.html" width="680" height="360" frameborder="1" name="listUnder" id="listUnder" scrolling="auto"></iframe> </div> </body> </html> other.html <html> <body> <form> Relationship: <select name="relationship" id="relationship" style="width:120px;"> <option value=""></option> <option value="Son">Son</option> <option value="Daughter">Daughter</option> <option value="Cousin">Cousin</option> <option value="Brother">Brother</option> <option …

Member Avatar
Member Avatar
+0 forum 2

hey guys I need help with this I have no idea how to work this out please help me with like atleast the starting coding i am trying to google too but i cannot find any info on this. ***"char * copyString( const char * s ); copyString returns a dynamically allocated copy of the arg string. For instance, if s were “CAT”, then copyString allocated a 4-byte array, sets that array to “CAT”, and returns the address of the first element of the dynamically allocated array. As usual, deallocation is the caller’s responsibility."*** this is the function that i …

Member Avatar
Member Avatar
+0 forum 6

Hello. Im new here. I have a question: I have this copy constructor here: /** Copy Constructor. * Since landscape is immutable in the scope of our project, you could * do a simple reference copy for it. * However, Fish and Plants are mutable, so those lists must be copied * with a DEEP copy! * (In other words, each fish and each plant must be copied.) */ public Model(Model other) { landscape = other.landscape; fish = new ArrayList<Fish>(); for (Fish f : other.fish) { fish.add(new Fish(f)); } plants = new ArrayList<Plant>(); for (Plant p : other.plants){ plants.add(new Plant(p)); …

Member Avatar
Member Avatar
+0 forum 2

Hi!I have a project with me which contains this html editor user control designed by someone else. I want to use this control in my project but I don't know how to copy it to my project. Please help me. Attached is the project from which I need to copy the user control. Please help me. Its very urgent. Thanks!

Member Avatar
Member Avatar
+0 forum 12

Hi Freinds I am programmer in VB.net & wanted to make a software Well this is a common problem. Consider there are 2 friends A & B One day A requires an urgent document which is there in B's laptop But unfortunately B is out for some work & will return in evening So B asks A if he could go to his house & take the required document he needed So A goes at B's House copies that important document & then the main Problem A will think Since B is not here let me see what else can …

Member Avatar
Member Avatar
+0 forum 1

The End.