modify

C# Can i modify Request.Form's variables?

i try Request.Form.Set(k, v) but it's throw exception Collection is read-only ...

How do I run an emacs hook when a buffer is modified?

Building on http://stackoverflow.com/questions/318553/getting-emacs-to-untabify-when-saving-files , I'd like to run a hook to untabify my C++ files when I start modifying the buffer. I tried adding hooks to untabify the buffer on load, but then it untabifies all my writable files that are autoloaded when emacs starts. (For those that wo...

SQL Server xml.modify delete method

I have a problem with removing an attribute from a node. Example: DECLARE @processID int SET @processID = 8 DECLARE @xml XML SET @xml = ' ' SET @xml.modify('delete (/Process/Shapes/Shape/@subProcessID[/Process/Shapes/Shape/@subProcessID = sql:variable("@processID")])') SELECT @xml Gives the result: ...

Oracle Modify statement - error.

I added a new column in my table. ALTER TABLE neue_buch modify preis not null; and I have got this error. print(" Error starting at line 40 in command: ALTER TABLE neue_buch modify preis not null Error report: SQL Error: ORA-02296: cannot enable (S1885872.) - null values found 02296. 00000 - "cannot enable (%s.%s) - null values fo...

Passing pointer from java to native

Hi. Im making an inerface to a DLL library, so i can use it with Java. I need my native function to modify the value of a jlong parameter. Like the parameter was passed by reference. My Java method must have the exact parameters as the native function MPUSBWrite shown down here. Example of actual not working code: The MPUSBWrite gets it...

add_column for references (Rails)

I have the following Rails migration which works perfectly (irrelevant pieces removed): create_table :comments do |t| t.text :body t.references :post end Now I'd like to add an author column to my comments table (which is the userid of a user), but I have no idea how to do it (I'm tempted to just write the MySql-specific syntax us...

internet explorer -> Tools -> proxy settings: How to add menu item, create window when clicked, n perform opreations on registry

Hi I want to add menu item to Internet Explorer-> tools. For example: Exactly like Intrnet explorer-> Tools -> Delete browsing history I want to add proxy related actions For example: tools -> Enable proxy tools -> Disable proxy Also to have proxy cache, i would like to display window exactly like what is displayed when we click o...

Intercepting requests made by WebBrowser in C#

Is it possible to intercept all requests made by a WebBrowser control? I want to modify the request URI of every single request (including requests for images, scripts, stylesheets, etc.) ...

Modify a .txt file in Java

I have a text file that I want to edit using Java. It has many thousands of lines. I basically want to iterate through the lines and change/edit/delete some text. This will need to happen quite often. From the solutions I saw on other sites, the general approach seems to be: Open the existing file using a BufferedReader Read each l...

jQuery "modify" event

So I recently took a closer look at JavaScript and jQuery and after that stumbled over the Firefox extension called Greasemonkey. Well, let me explain what I mean with the "modifiy"-event: I've got 2-3 userscripts for a certain page installed which automatically look if the page has changed in any way and if it has, they load the new co...

Modifying Existing Eclipse Plugin and Correctly Installing it

Hi, I downloaded the source code for the EMF based UML2 Plugin and changed a class in the org.eclipse.uml2.uml.edit project to remove special characters when returning string representations. Now when I export the projects and place the jar files either in the dropins directory or replace my current uml2 plugin jar files in plugins dire...

C# Winform Alter Sent Keystroke

Hi i have a C# winform application with a particular form populated with a number of textboxes. I would like to make it so that by pressing the right arrow key this mimicks the same behaivour as pressing the tab key. Im not really sure how to do this. I dont want to change the behaivour of the tab key at all, just get the right arrow ke...

Adding files to java classpath at runtime.

Hi folks, Is it possible to add a file (not necessarily a jar file) to java classpath at runtime. Specifically, the file already is present in the classpath, what I want is whether I can add a modified copy of this file to the classpath. Thanks, ...

Sql Server modify select

I'm pretty sure there is no way, but i'm putting this out there for those expert beyond my knowledge. What i am looking to do is to somehow alter SELECT statements before they are executed, at the database level. For a seriously pared-down example, i'd like to do something like the following... when someone executes the following SQL ...

Modifying list contents in Python

I have a list like: list = [[1,2,3],[4,5,6],[7,8,9]] I want to append a number at the start of every value in the list programmatically, say the number is 9. I want the new list to be like: list = [[9,1,2,3],[9,4,5,6],[9,7,8,9]] How do I go about doing this in Python? I know it is a very trivial question but I couldn't find a way t...

jQuery - modify the prompt/alert functions

Hey, I need an advice, if it's worth it to downlaod a jQuery plugin (such as Impromptu), or if it's easier to make my own code just to modify the "prompt" efect. All I need is something like the first example of THIS. Or is there any other way, how to show a box of text in the midle of the screen, that stays there even when I move scrol...

Modify Page Head in User Control

How can I modify the head portion of a page from within an embeded user control? I know I can have the control run in the head portion of the .aspx page but I have a existing site with numerous pages that I don't want to change. One thing they all have in common is the menubar.ascx. So, I figured I could put the code there to modify t...

Using an event receiver to update an item's 'Title' field.

Hi there. I have written an event receiver that is activated on the 'ItemAdded' event of a 'Pages' list. The code runs fine, but my issue is this - during the call to my Sub ItemAdded, I want to change the value of a field belonging to the current list item (in this case an aspx page). The idea is that I can configure the 'Title' field...

WiX Permissions, how do I express 'Modify' in terms of DACL flags

I'm attempting to apply custom rights to a folder as part of a WiX 3.0.4318.0 installer. In terms of the Security properties UI in explorer, I want to add Modify to the rights for BUILTIN\Users. Obviously it needs to be resilient against localisation of the user name. So based on my research to date, I want at least: <CreateFolder Dir...

How to modify an immutable object?

Sorry I couldn't think of a good title for this question... At application start I load objects from a database via a DB access library, lets call their class CDbObject. class CDbObject { //... virtual CState getState() const { return m_state; } protected: CState m_state; } At runtime, I receive messages which correspond t...