edit

Find the line & edit it.

I posted another one on this,, but i had to edit it really much... What the thing bassicly is that a Batch (Maybe including VBScript) can find line 29 in a txtfile... it should edit this line. If line 29 is like this: 'option=21' it should change it to 'option=22' the problem is that this line is located more in the file. so it shou...

Batch: line & remove

I want a batch file which: removes a certain line [line number by %lnum%] in a txt file. ...

How do I list files with edit locks on a network drive using a dos shell and associated tools?

How do I list files with edit locks on a network drive using a dos shell and associated tools? I think net file has to be run on the server, and I'm looking to do this from any box on the drive. ...

MFC OnEnChange handler function - infinite loop

Hi, (I'm using VS++2005) I put edit box control (with ID - ID_edit_box) on my dialog, and associate (with handler wizard) two varibles for it: control (c_editbox) and value (v_editbox) variable. Also I associate handler function OnEnChangeedit_box with that edit box control. Suppose that we may enter just one digit in edit box, and tha...

sharepoint users cannot edit their workflow tasks

Hello, I've created a custom workflow using Visual Studio 08 that uses a custom content type and .aspx task edit form. The tasks are successfully created and assigned to the users. However, only users that are members of the Site Owners group are able to 'Edit' the task items. All others (even though they have contribute and approve perm...

How do I use 'placeholder text' in a win32 edit control?

Take a look at the top-right of the Stack Overflow site. The search box has some text in it saying "search". When you click within it, the text disappears. I want to do something similar to this - if a win32 edit control is empty (i.e. has no text), I want to paint some text inside it, in a more subdued color than the normal text. If th...

Disabling 'Edit Properties' in document libarary across documents

Dear All, In sharepoint 2007 document library, when documents are uploaded, across each documents there is an option that allows us to 'Edit properties' for that document. How do we disable this option. We wish to disable this option so that our users do not mess up the properties fields in there. Thank you, Mahesh ...

Bash (Mac): edit file and some if commands.

Hello, i want that my bash script does the following: It finds a file, for example: hello.txt It searches for a specific text in the file, for example: hey If it is found, continue to the next thing, if it isn't found, write the text on a new line & continue to the next thing. Can anyone give me the script for this? EDIT: Also i w...

How does one store history of edits effectively?

Hi all, I was just wondering for sites like stackoverflow and wikipedia, they stores history of edits indefinitely and allows user to roll back the edits. Can someone recommend any resources/books/articles regarding how to do this using any suitable technology (such as databases etc) Thanks a lot! ...

Insert pcl escape sequences into PCL built from multiple PDF files

What tools/methods are available to build pcl stream from PDFs. We have a bunch of generated PDF files that get tied up into one big pdf. I need to generate a print job to print this with the ability to insert pcl escape sequences (to control paper feed and output bin stacking) per page. As of now we use the VB.Net printing classes, con...

Save edited cell to mysql - How can i send an Identifier with the edited cell data?

Hi, i have the problem that i can't send any identifier for the edited content to the edit.php file. it sends automaticaly an id=1 parameter for the first row in the grid for example...but this is not the same value as in mysql table column "id". the correct id is shown in the grid..it says id 3 in the first row, but when i edit data and...

Create Delete/Edit buttons for muliple records from linq using hidden value?

Hello all, I am using c# .net. aspx form <asp:Table ID="viewV" runat="server"> <asp:TableRow> <asp:TableHeaderCell>Name</asp:TableHeaderCell> <asp:TableHeaderCell>Type</asp:TableHeaderCell> </asp:TableRow> </asp:Table> Code Behind vRepository getV = new vRepository(); var viewAllV = getV....

check values before sending to controller in rails

In this code i have checkboxes for each item that give user ability to delete multiple items at once, but if the user press the remove button without checking any item it gives an error <% form_for :product , :url => { :action => :delete_selected } do %> <table border="1px"> <tr> <th> Select </th> ...

Best way to implement "history of edits" in Rails?

I want users to be able to see what was added / changed in a blog post. I'm using Vestal Versions (great gem) to keep track of changes, but I don't know how to show this to users so they can see what has changed. My first impulse is to find a diffing library for ruby and just show the diff between version N and version N-1. What's a goo...

How can I edit my templates in SquareSpace?

I'm hosting my blog in SquareSpace, and I need to add a <Script> tag at the footer of every post. In the middle of this <Script> tag, I need to replace a value with the permalink for the current post. So, in my home page, where I'm showing 5 posts, I need this <Script> to show up 5 times, each time with the permalink of the correspond...

Validation with a Service layer, how to update an entity

Hi! I've implemented a service layer in my application like: http://www.asp.net/learn/mvc/tutorial-38-cs.aspx (I use Linq2SQL). Now I've trouble in implementing the Edit ActionResult. In the Create (Post) ActionResult I take the service method: if (_service.CreateMovie(movie)) { return RedirectToAction("Details", new { id = movie...

I am trying to make an obfuscator.

This is kind of a two part question. But it both relates to the same thing. I want to work with the IL code of an app to apply patches. I am wondering what would be the right approach. Obviously I could decompile it and read and edit the il code file then recompile. but is there some way to read it as msil code right in the file. and ma...

Reading a file and editing it in Java

Hi, What I am doing is I am reading in a html file and I am looking for a specific location in the html for me to enter some text. So I am using a bufferedreader to read in the html file and split it by the tag . I want to enter some text before this but I am not sure how to do this. The html would then be along the lines of ...(newText...

navGrid not working with JQGrid

I have a asp.net MVC app and I'm trying to get the jqgrid 3.5 to work in it. My grid does not use paging features but I want to use the page navigator bar for edit buttons. My grid within a jquery tab control on a content page. Displaying my data works fine in the grid but when I add the .navGrid() extension and options to it it breaks t...

JQGrid edit form dropdown populated from database

My edit form requires a dropdown to be populated by a database call. I realize I must set the dataurl parm in the colModel. Does anyone have an example using a linq to sql call which returns the data in the format the jqgrid is looking for. Thanks. ...