Using logparser to import IIS logs to a db results in one column that has the date value and a second field for time:
2010-05-25 00:00:00.000 2010-01-01 11:11:58.000
I'd like to code an INSERT AFTER trigger that combines the 2 fields.
Lets suppose that $(document).height() is 1000. Then i insert a new div at the bottom of the page with height=100. The $(document).height() should be 1100 but it keeps throwing 1000 to me.
How can i get the new $(document).height() dynamically?
Thank!
I have defined function which returns table with 2 columns. Can I rename these columns so that resulting table would be like:
Press name | Sum of pages
?
CREATE FUNCTION F_3
(@press nvarchar(255))
RETURNS @table TABLE ( Press nvarchar(255),
PagesSum int )
AS
BEGIN
INSERT @table SELECT @press, SUM(Books.Pages)
FROM Books, Press
WHERE Press.Name = @press AND
Books.Id_Press = Press.Id
GROUP BY Press.Name
RETURN
END
GO
SELECT * FROM F_3('BHV')
GO
I've tried to do it like
Press AS 'Press name' nvarchar(255)
but that won't work.
how to keep the document status as Checked out when it is uplaoding to sharepoint site?
Means , I want that , when i will insert any document to specific document library of sharepoint site , then how shold i can keep its status as Checked out rather than checked by default
What would be appropriate scenario when stored procedures should be used?
I stumbled upon implementation where almost whole data manipulation was handled by store procedures, even simplest form of INSERT/DELETE statements were wrapped and used via SP's.
So, what's the rationale for using stored procedures in general?
Sorry for such a beginners question..
Hi,
In Rails is there a way to get the URL to the image (going through the assets_host) and just return the URL of the image? I want to use assets_host data in my Javascript, but I just need to insert the URL into the JS, not the whole image_tag.
Thank you in advance!
Hi guys.
I want to update a part of a page by PPR.
This is the part of page that i want to update:
<h:panelGroup id="aggiungiAuto"
rendered="#{!autoBean.operazioneOk}">
<ui:include src="../component/aggiungi_auto.xhtml"/>
</h:panelGroup>
While this is the commandButton present in aggiungi_auto.xhtml
<p:commandButton value="Submit"
update="growl aggiungiAuto aggiungiFoto"
actionListener="#{autoBean.insert}"/>
Any Idea?
I want to run a javascript snippet inside the <head> tag. Is that possible to do that in Selenium RC+Java?
I understood that if I use getEval or runScript that will insert the code inside the HTML body.
Any Ideas?
Thanks
How do I insert a subscript charachter in a string in C#? I have nor problems appending a superscript 2 in the same string using char.ConvertFromUtf32(178);, but I struggle with finding a similar solution for the subscripted text. Actually, I'm struggling with finding ANY solution at all to this rather embarrassing issue. :)
Hello,
Is there any way to load an existing index into an instance of MemoryIndex?. I have an application which uses Hibernate Search so I can use index() in FullTextEntityManager instance to index an object. I'd like to recover back the created index and insert it into a MemoryIndex instance to execute several queries over it.
Is it possible?
Thanks.
My situation is explained in the code below.
I need to send via a socket NSString drawn from a TextBox
Thank you very much
NSString *string = fieldTesto.txt;
// I Find an istruction for insert s string in to the CFSocketSend
UInt8 message[] = "Hello world";
CFDataRef data =
CFDataCreate(NULL, message, sizeof(message));
CFSocketSendData(s, NULL, data, 0);
CFRelease(data);
Is there a simple way of dynamically scaling an image in php?
Id like to specifically use some kind of function where i can insert it into my heml such as
<img src=image.php?img=boss.jpg&width=500>
and of course it would then scale the image to whatever height constrains it to 500px wide
i appreciate all input, thanks.
EDIT does need to include jpg png and gif file types
The line cmd.ExecuteNonQuery();
cmd.CommandText
CREATE TRIGGER subscription_trig_0 ON subscription AFTER INSERT AS UPDATE user_data SET msg_count=msg_count+1 FROM user_data
JOIN INSERTED ON user_data.id = INSERTED.recipient;
The exception:
Incorrect syntax near the keyword 'TRIGGER'.
Then using VS 2010, connected to the very same file (a mdf file) i run the query above and i get a success message. WTF!
I have an app that reads and writes data from sqlite3. I tested it on the simulator it looks like everything is OK. But if the ad-hoc version does a 'delete' or 'insert' query in the sqlite3 file on iPhone, it crashes.
Is it possible to debug ad hoc versions of iPhone apps with XCode?
I wrote a code to insert data .When ,i enter the value in the form and click submit ,the data is getting into database.
Now,i should make all those data to edit from from end and,if i click update button,it should be updated in database.
Give a snippet for performing this task.
i have a datagrid. which display some values which is already inserted and that is fetched from database.but from the datagrid i need to insert the values to database. how to find in which row a new record get inserted and to pass all the values to database
any idea???
1 - If I insert to Cache by assigning the value:
Cache["key"] = value;
what's the expiration time?
2 - Removing the same value from Cache:
I want to check if the value is in Cache by if(Cache["key"]!=null), is it better to remove it from Cache by Cache.Remove("key") or Cache["key"]=null ?
Indentify a suitable programming language that will read the XML document and insert its contents into the database.
i need help with this question i am getting really confused can some one show me and guide me thorught how to do this
I'm using a slider as user input for a screen. Basically it's a bulk update screen where there is a table with multiple rows, thus multiple sliders. I created it so that the hidden value is what gets posted in the form.
<td>
<input class="percentageProvidedHidden" type="hidden" name='<%= "Values[" + i + "].Percentage" %>' value='<%=item.Percentage %>' />
<div class="percentageProvidedSlider"></div>
</td>
I have the update working just fine (move slider changes hidden input value, submit, values are updated in db), however, I can't get the damn thing to initialize with the value of the hidden input (note the "value: " parameter below). In this case I think $(this) isn't actually $('percentageProvidedSlider') but the page itself. Can someone help me get the slider value to initialize with the hidden input field? I'm using ASP .Net MVC 2 so if there are any methods I should try with that I welcome them as well.
$('.percentageProvidedSlider').slider(
{
min: 0,
max: 100,
step: 25,
value: $(this).parents('tr').find('input.percentageProvidedHidden').val(),
slide: function(e, ui) {
var mypos = ui.value;
$(this).find('.ui-slider-handle').text(ui.value);
},
change: function(event, ui) {
var myVal = $(this).slider("option", "value");
$(this).parents('tr').find('input.percentageProvidedHidden').val(myVal);
var myDropDown = $(this).parents('tr').find('select.verified');
}
});
Found this question while trying to do the same:
http://stackoverflow.com/questions/642076/how-to-save-sms-to-inbox-in-android-programmatically.
But this part:
getContentResolver().insert(Uri.parse("content://sms/sent"), values);
throws an SecurityException.
I requestet SMS_WRITE permission in the manifest file.
Thanks in advance!
I need to create a page that has a listbox with databound items. Upon clicking an entry in the listbox, the page will postback and insert an entry into a listview.
The listview should have the item's name, and a textbox allowing the user to edit the value for each. I don't want the listview to be in "edit" mode. I just want the user to be able to update the value. Is this possible?
Hi! I would like to insert a descriptive text inside an input element that disappers when the user click on it.
Example
I know it is a very common trick, but I do not know how to do that..
What is the simplest/better solution?