Posts

security - What's the bare minimum permission set for Sql Server 2005 services? -

best practices recommend not installing sql server run system. bare minumum need give user account create it? by default, sql server 2005 installation create security group called sqlserver2005mssqluser$computername$mssqlserver correct rights. need create domain user or local user , make member of group. more details available in sql server books online: reviewing windows nt rights , privileges granted sql server service accounts

c# - How did my process exit? -

from c# on windows box, there way find out how process stopped? i've had @ process class, managed nice friendly callback exited event once set enableraisingevents = true; have not managed find out whether process killed or whether exited naturally? fire process monitor (from sysinternals, part of microsoft), run process , let die, filter process monitor results process name -- able see did, including exit codes.

string - How can I replace newline characters using JSP and JSTL? -

i have list of bean objects passed jsp page, , 1 of them comment field. field may contain newlines, , want replace them semicolons using jstl, field can displayed in text input. have found 1 solution, it's not elegant. i'll post below possibility. here solution found. doesn't seem elegant, though: <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <% pagecontext.setattribute("newlinechar", "\n"); %> ${fn:replace(item.comments, newlinechar, "; ")}

Access to Result sets from within Stored procedures Transact-SQL SQL Server -

i'm using sql server 2005, , know how access different result sets within transact-sql. following stored procedure returns 2 result sets, how access them from, example, stored procedure? create procedure getorder (@orderid numeric) begin select order_address, order_number order_table order_id = @orderid select item, number_of_items, cost order_line order_id = @orderid end i need able iterate through both result sets individually. edit: clarify question, want test stored procedures. have set of stored procedures used vb.net client, return multiple result sets. these not going changed table valued function, can't in fact change procedures @ all. changing procedure not option. the result sets returned procedures not same data types or number of columns. the short answer is: can't it. from t-sql there no way access multiple results of nested stored procedure call, without changing stored procedure others have suggested. to complete, if proced...

javascript - Watermark text in asp.net? -

in web application using javascript water mark text in textboxes working fine textbox if textmode property set multiline water mark text not displaying there particular reason. code... <textbox id="txtone" runat="server" tooltip="enter comments" onblur="if(this.value=='') this.value='enter text,150 characters only';" onfocus="if(this.value == 'enter text,150 characters only') this.value='';" value="enter text,150 characters only"> </textbox> when textbox in multiline mode, it's rendered textarea instead of input element. textarea element doesn't use value attribute, code fails set initial value. use text property of server control instead of value argument of client control: <textbox id="txtone" runat="server" tooltip="enter comments" onblur="if(this.value=='') this.value='enter text,150 character...

java - Slowing down the playback of an audio file without changing its pitch? -

i working on application college music majors. feature considering slowing down music playback without changing pitch. have seen done in commercial software, cannot find libraries or open source apps this. are there libraries out there? how done scratch various file formats? note: working in java not oppossed changing languages. timestretching quite hard. more slow down or speed sound more artifacts get. if want know sound listen "the rockafeller skank" fat boy slim. there lot of ways have own strengths , weaknesses. math can complex. that's why there many proprietary algorithms. this page explains things bit clearer can , links dirac library. http://www.dspdimension.com/admin/time-pitch-overview/ i found link java code pitch shifting/timestretching http://www.adetorres.com/keychanger/keychangerreadme.html

javascript - How to track iPhone orientation in google analytics? -

we're getting ready deploy mobile version of our website , we'd track iphone orientation within google analytics. i'm guessing should custom variable because don't see pre-defined way track under mobile tab analytics reports. i'm not sure how detect current orientation of iphone when page loads, however. when searching answer detect see lot of suggestions apps, none safari when viewing web pages. did miss question, or know how detect iphone orientation within safari? thanks in advance! edit: mobile safari orientation events coupled analytics track js events i'm pretty sure iphone browser reports same display width (javascript:screen.width) regardless of orientation. makes impossible track such data in mobilesafari. i'm looking somewhere can confirm test on own device or emulator or emulator .