text
stringlengths
8
267k
meta
dict
Q: Is it feasible to support multiple applications of the same type that are all written in different languages? As much as we would all like to say it is a benefit to programmers to be language agnostic, is it really feasible to support multiple enterprise Web applications of the same type all written in different lan...
{ "language": "en", "url": "https://stackoverflow.com/questions/59436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you check what version of SQL Server for a database using TSQL? Is there a system stored procedure to get the version #? A: There is another extended Stored Procedure which can be used to see the Version info: exec [master].sys.[xp_msver] A: CREATE FUNCTION dbo.UFN_GET_SQL_SEVER_VERSION ( ) RETURNS sysnam...
{ "language": "en", "url": "https://stackoverflow.com/questions/59444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "130" }
Q: Creating a Silverlight DataTemplate in code How do I create a silverlight data template in code? I've seen plenty of examples for WPF, but nothing for Silverlight. Edit: Here's the code I'm now using this for, based on the answer from Santiago below. public DataTemplate Create(Type type) { return (DataTemplate)Xam...
{ "language": "en", "url": "https://stackoverflow.com/questions/59451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How do I make custom MenuHeaders in WPF with accelerators? I'd like to make some custom MenuHeaders in WPF so I can have (for example), an icon and text in a menu item. Normally using MenuItems, if you populate the Header field with straight text, you can add an accelerator by using an underscore. eg, _File However,...
{ "language": "en", "url": "https://stackoverflow.com/questions/59456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why do all methods in the Google Analytics tracking code start with an underscore? Prefixing variable and method names with an underscore is a common convention for marking things as private. Why does all the methods on the page tracker class in the Google Analytics tracking code (ga.js) start with an underscore, ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/59462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: In Emacs, how can I add a website like 'Stackoverflow' to my webjump hotlist? By default the webjump hotlist has the following which I use quite often: M-x webjump RET Google M-x webjump RET Wikipedia How can I add 'Stackoverflow' to my list? A: A general tip for looking up answers to questions like this one: *...
{ "language": "en", "url": "https://stackoverflow.com/questions/59465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can VS be configured to automatically remove blank line(s) after text is cut? Is there a way (or shortcut) to tell VS 2008 that it cuts a line like this: Before: Some Text here This gets cut Some Code there After: Some Text here Some Code there What I want: Some Text here Some Code there PS: I don't want...
{ "language": "en", "url": "https://stackoverflow.com/questions/59472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Optimize Windows Form Load Time I have a Windows Form that takes quite a bit of time to load initially. However, each subsequent request to load the Form doesn't take as long. Is there a way to optimize a Form's load time? A: You need to find out where the time is going before you can optimise it. Don't just nge...
{ "language": "en", "url": "https://stackoverflow.com/questions/59479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What's the better database design: more tables or more columns? A former coworker insisted that a database with more tables with fewer columns each is better than one with fewer tables with more columns each. For example rather than a customer table with name, address, city, state, zip, etc. columns, you would have...
{ "language": "en", "url": "https://stackoverflow.com/questions/59482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "95" }
Q: Confused by gdb print ptr vs print "%s" 1167 ptr = (void*)getcwd(cwd, MAX_PATH_LENGTH-1); (gdb) n 1168 if (!ptr) { (gdb) print ptr $1 = 0xbff2d96c "/media/MMC-SD/partition1/aaaaaaaaaaa" (gdb) print &cwd $2 = (char (*)[3500]) 0xbff2d96c (gdb) print strlen(cwd) $3 = 36 (gdb) print "%s",cwd $4 = "/media/MMC-S...
{ "language": "en", "url": "https://stackoverflow.com/questions/59483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert this delegate to an anonymous method or lambda I am new to all the anonymous features and need some help. I have gotten the following to work: public void FakeSaveWithMessage(Transaction t) { t.Message = "I drink goats blood"; } public delegate void FakeSave(Transaction t); public void SampleTestFunct...
{ "language": "en", "url": "https://stackoverflow.com/questions/59515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Synchronisation algorithms Are there any good references for synchronisation algorithms? I'm interested in algorithms that synchronize the following kinds of data between multiple users: * *Calendars *Documents *Lists and outlines I'm not just looking for synchronization of contents of directories a la rsync;...
{ "language": "en", "url": "https://stackoverflow.com/questions/59521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What's a good program to record video or screencast being played on screen? What's a good program to record videos or screencasts being played on screen? A: I've had success with Camtasia / CamStudio. Check out http://showmedo.com for tutorials. It's a little recursive though - it would be better to capture it fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/59525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Service Oriented Architecture: How would you define it Service Oriented Architecture seems to be more and more of a hot quote these days, but after asking around the office I have found that I seem to get many different definitions for it. How would you guys define SOA? What would you consider the official definit...
{ "language": "en", "url": "https://stackoverflow.com/questions/59537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: SQL Recursive Tables I have the following tables, the groups table which contains hierarchically ordered groups and group_member which stores which groups a user belongs to. groups --------- id parent_id name group_member --------- id group_id user_id ID PARENT_ID NAME --------------------------- 1 NULL ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What tools exist to convert a Delphi 7 application to C# and the .Net framework? I maintain an old PC-only application written in Delphi 7. Although Delphi has served me very well in the past I now only use it for this one application and find my skills with the language diminishing. Its syntax is too different from...
{ "language": "en", "url": "https://stackoverflow.com/questions/59547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Native Tongue as Default Language For an Application When downloading both Firefox and Chrome, I've noticed that the default version I got was in my native tongue of Hebrew. I personally don't like my applications in Hebrew, since I'm used to the English UI conventions embedded in me since long ago by: * *The lac...
{ "language": "en", "url": "https://stackoverflow.com/questions/59549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HTML to Markdown with Java is there an easy way to transform HTML into markdown with JAVA? I am currently using the Java MarkdownJ library to transform markdown to html. import com.petebevin.markdown.MarkdownProcessor; ... public static String getHTML(String markdown) { MarkdownProcessor markdown_processor = new...
{ "language": "en", "url": "https://stackoverflow.com/questions/59557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Most effective form of CAPTCHA? Of all the forms of CAPTCHA available, which one is the "least crackable" while remaining fairly human readable? A: I believe that CAPTCHA is dying. If someone really wants to break it, it will be broken. I read (somewhere, don't remember where) about a site that gave you free porn i...
{ "language": "en", "url": "https://stackoverflow.com/questions/59560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: lock keyword in C# I understand the main function of the lock key word from MSDN lock Statement (C# Reference) The lock keyword marks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a statement, and then releasing the lock. When should the lock...
{ "language": "en", "url": "https://stackoverflow.com/questions/59590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: VBScript conditional short-circuiting workaround I have a large classic ASP app that I have to maintain, and I repeatedly find myself thwarted by the lack of short-circuit evaluation capability. E.g., VBScript won't let you get away with: if not isNull(Rs("myField")) and Rs("myField") <> 0 then ... ...because if R...
{ "language": "en", "url": "https://stackoverflow.com/questions/59599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Detecting application hangs with ActiveX controls in .Net I am working on upgrades to a screen scraping application. We are using an ActiveX control to scrape screens out of an IBM mainframe. The mainframe program often hangs and crashes the ActiveX control causing our application to crash. We don't have access to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/59622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I find if my particular computer is going to have problems when I install linux? The IT lady just gave me a laptop to keep! I've always wanted to have Linux install to play with so the first thing I did is search stackoverflow for Linux Distro suggestions and found it here. However they also mention that y...
{ "language": "en", "url": "https://stackoverflow.com/questions/59627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AJAX Partial Page Load? I have a page results page (you get there after submitting your search query elsewhere) whit a whole bunch of gridviews for different type of data objects. Obviously, some of the queries take longer than the others. How can I make each gridview render as soon as it has the data it needs? This...
{ "language": "en", "url": "https://stackoverflow.com/questions/59628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: App does not run with VS 2008 SP1 DLLs, previous version works with RTM versions Since our switch from Visual Studio 6 to Visual Studio 2008, we've been using the MFC90.dll and msvc[pr]90.dlls along with the manifest files in a private side-by-side configuration so as to not worry about versions or installing them t...
{ "language": "en", "url": "https://stackoverflow.com/questions/59635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Determine Installed Compact Frameworks (and SP) Version What's the best way to determine which version of the .NET Compact Frameworks (including Service Packs) is installed on a device through a .NET application. A: Based up Scott's links, the information about the current CF version can be found in the registry ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Storing multiple arrays in Python I am writing a program to simulate the actual polling data companies like Gallup or Rasmussen publish daily: www.gallup.com and www.rassmussenreports.com I'm using a brute force method, where the computer generates some random daily polling data and then calculates three day average...
{ "language": "en", "url": "https://stackoverflow.com/questions/59648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Default integer type in ASP.NET from a stored procedure I have a web page that I have hooked up to a stored procedure. In this SQL data source, I have a parameter that I'm passing back to the stored procedure of type int. ASP.NET seems to want to default to int32, but the number won't get higher than 6. Is it ok ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting at the Listbox's ItemContainer when data binding Is there a way to get at the ItemContaner of a selected item in a listbox? In Silverlight 2.0 Beta 1 I could, but the container is hidden in Beta 2 of Silverlight 2.0. I'm trying to resize the listbox item when it is unselected to a specific size and when se...
{ "language": "en", "url": "https://stackoverflow.com/questions/59653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to setup a Rails integration test for XML methods? Given a controller method like: def show @model = Model.find(params[:id]) respond_to do |format| format.html # show.html.erb format.xml { render :xml => model } end end What's the best way to write an integration test that asserts that the retu...
{ "language": "en", "url": "https://stackoverflow.com/questions/59655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Why overwrite a file more than once to securely delete all traces of a file? Erasing programs such as Eraser recommend overwriting data maybe 36 times. As I understand it all data is stored on a hard drive as 1s or 0s. If an overwrite of random 1s and 0s is carried out once over the whole file then why isn't that en...
{ "language": "en", "url": "https://stackoverflow.com/questions/59656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: What are the use cases for selecting CHAR over VARCHAR in SQL? I realize that CHAR is recommended if all my values are fixed-width. But, so what? Why not just pick VARCHAR for all text fields just to be safe. A: There are performance benefits, but here is one that has not been mentioned: row migration. With char, y...
{ "language": "en", "url": "https://stackoverflow.com/questions/59667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "283" }
Q: How to get rid of `deprecated conversion from string constant to ‘char*’` warnings in GCC I'm working on an exceedingly large codebase, and recently upgraded to GCC 4.3, which now triggers this warning: warning: deprecated conversion from string constant to ‘char*’ Obviously, the correct way to fix this is to find...
{ "language": "en", "url": "https://stackoverflow.com/questions/59670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "425" }
Q: WSDualHttpBinding for duplex callbacks Would using WSDualHttpBinding for duplex callbacks work in real-world scenarios? Say, I have a .NET application that uses a random port, would the service be able to resolve the client's base addresses and port for callbacks? A: A complete answer to your question depends on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/59677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: In a LotusScript Agent how do you get the name of the current server? In a LotusScript Agent that is being run via WebQueryOpen, how do you get the name of the current server? A: Set s = New NotesSession Set db = s.CurrentDatabase If db.Server <> "" Then Set sName = New NotesName(db.Server) Else Set sName = Ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/59680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .NET visual components I really like DevX components, but they are pretty expensive, maybe anyone knows free equivalents ? or web site where I can look for some kind of free visual component for .NET A: Check out free Krypton Toolkit of Component Factory. A: I also found that DevExpress offers some free components...
{ "language": "en", "url": "https://stackoverflow.com/questions/59684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Haskell list difference operator in F# Is there an equivalent operator to Haskell's list difference operator \\ in F#? A: Nope... Just write it and make it an infix operator --using the set of special characters. Backslash (\) is not in the list below, so it will not work as an infix operator. See the manual: infi...
{ "language": "en", "url": "https://stackoverflow.com/questions/59711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I check for IsPostBack in JavaScript? I need to run a JavaScript function onLoad(), but only do it if the page loaded the first time (i.e. is not the result of a postback). Basically, I need to check for IsPostBack in JavaScript. Thank you. A: Server-side, write: if(IsPostBack) { // NOTE: the following u...
{ "language": "en", "url": "https://stackoverflow.com/questions/59719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Finding network alias in .net Is there a way in .net 2.0 to discover the network alias for the machine that my code is running on? Specifically, if my workgroup sees my machine as //jekkedev01, how do I retrieve that name programmatically? A: Since you can have multiple network interfaces, each of which can have mu...
{ "language": "en", "url": "https://stackoverflow.com/questions/59726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Coding Dojo with IE and SSL My application is using Dojo 1.1.1 on an SSL-only website. It is currently taking advantage of dijit.ProgressBar and a dijit.form.DateTextBox. Everything works fabulous in Firefox 2 & 3, but as soon as I try the same scripts in IE7 the results are an annoying Security Information dialog: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Recover corrupt zip or gzip files? The most common method for corrupting compressed files is to inadvertently do an ASCII-mode FTP transfer, which causes a many-to-one trashing of CR and/or LF characters. Obviously, there is information loss, and the best way to fix this problem is to transfer again, in FTP binary m...
{ "language": "en", "url": "https://stackoverflow.com/questions/59735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: So, if CAPTCHA's on the way out, what comes next? With text-recognition improving and CAPTCHA-breakers using Mechanical Turks to break otherwise unbreakable keys, what's the next technology to keep scripts from spam-botting a site that relies on user input? A: I like the concept of an 'Invisible Captcha'. Phil Haa...
{ "language": "en", "url": "https://stackoverflow.com/questions/59736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Number of possible combinations How many possible combinations of the variables a,b,c,d,e are possible if I know that: a+b+c+d+e = 500 and that they are all integers and >= 0, so I know they are finite. A: The answer to your question is 2656615626. Here's the code that generates the answer: public static long getN...
{ "language": "en", "url": "https://stackoverflow.com/questions/59743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Disable Specific Keys in IE 6 I need to disable specific keys (Ctrl and Backspace) in Internet Explorer 6. Is there a registry hack to do this. It has to be IE6. Thanks. Long Edit: @apandit: Whoops. I need to more specific about the backspace thing. When I say disable backspace, I mean disable the ability for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you get JavaScript/jQuery Intellisense Working in Visual Studio 2008? I thought jQuery Intellisense was supposed to be improved with SP1. I even downloaded an annotated version of jQuery 1.2.6, but intellisense will not work in a separate jscript file. I have the jQuery library referenced first on my web page...
{ "language": "en", "url": "https://stackoverflow.com/questions/59766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: Debugging with FF3 in VS2008 I am using Firefox 3 to debug my ASP.NET applications in Visual Studio 2008. How can I configure either FF3 or VS2008 so that when I 'x' out of Firefox I don't have to hit the stop debugging button in Visual Studio? (The behavior you get with IE) A: My solution to this has been to manua...
{ "language": "en", "url": "https://stackoverflow.com/questions/59768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I get a custom application name and starting window name in Visual C# 2008 using WPF? I'm using Microsft Visual C# 2008 and am creating WPF applications. If you create a new solution and pick the WPF application template it lets you provide a single string to name the solution. It then automatically turns th...
{ "language": "en", "url": "https://stackoverflow.com/questions/59786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you generate and analyze a thread dump from a running JBoss instance? How do you generate and analyze a thread dump from a running JBoss instance? A: There is a JBoss-specific method that is slightly more user-friendly: http://community.jboss.org/wiki/GenerateAThreadDumpWithTheJMXConsole This is especially u...
{ "language": "en", "url": "https://stackoverflow.com/questions/59787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Best way to transfer an xml to SQL Server? I have been hearing the podcast blog for a while, I hope I dont break this. The question is this: I have to insert an xml to a database. This will be for already defined tables and fields. So what is the best way to accomplish this? So far I am leaning toward programatic. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Good tips for a Technical presentation I am planning to give a Technical presentation for a product we are building. Intended audience is Technical developers. So, most of the time, I will be debugging trough the code in Visual Studio, performance analysis, some architecture review etc. I have read couple of blogs o...
{ "language": "en", "url": "https://stackoverflow.com/questions/59793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: GWT context.xml in shell mode I'm trying to get the GWTShell mode to load my context.xml file in which my database is described. The only usable info can be found here, but this doesn't seem to work for the context.xml part. A: I'm using Eclipse with Cypal Studio (previously called Googlipse). If there is any other...
{ "language": "en", "url": "https://stackoverflow.com/questions/59806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MS Access ADP Autonumber I am getting the following error in an MS Access ADP when trying to add a record on a form linked to a MS SQL Server 2000 table: Run-time error '31004': The value of an (AutoNumber) field cannot be retrived prior to being saved. Please save the record that contains the (AutoNumber) fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/59809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MapPoint 2009 Load Performance I'm having some problems integrating MS MapPoint 2009 into my WinForms .Net 2.0 application in C#. I've added the ActiveX MapPoint control onto a form and have no problems getting it to display a maps and locations; my concern is the time it takes to load a map once it is created. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/59816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I create a custom type in PowerShell for my scripts to use? I would like to be able to define and use a custom type in some of my PowerShell scripts. For example, let's pretend I had a need for an object that had the following structure: Contact { string First string Last string Phone } How would...
{ "language": "en", "url": "https://stackoverflow.com/questions/59819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "105" }
Q: How to retrieve an element from a set without removing it? Suppose the following: >>> s = set([1, 2, 3]) How do I get a value (any value) out of s without doing s.pop()? I want to leave the item in the set until I am sure I can remove it - something I can only be sure of after an asynchronous call to another host. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "636" }
Q: Trouble with selected radiobuttonlist value on postback vb.net I have a radio button list on a page that is used to configure products. when the page loads the first time the first list of options is displayed. you select one of them then click a "Next Step" button and the page posts back and shows a new radio butto...
{ "language": "en", "url": "https://stackoverflow.com/questions/59829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: getting java exception: java.net.MalformedURLException: no protocol I am currently calling the following line of code: java.net.URL connection_url = new java.net.URL("http://<ip address>:<port>/path"); and I get the exception above when it executes. Any ideas as to why this is happening? A: As a side note, you sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/59832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Free/Cheap ASP.NET Component Libraries earlier today someone asked about free/cheap component libraries for winforms. I'm interested in the same thing, but for asp.net. There are some great commercial libraries like Telerik and DevExpress, but are there any great free/cheap alternatives? A: I am not sure what you...
{ "language": "en", "url": "https://stackoverflow.com/questions/59834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I check if a directory exists or not in a Bash shell script? What command checks if a directory exists or not within a Bash shell script? A: if [ -d "$DIRECTORY" ]; then # Will enter here if $DIRECTORY exists fi This is not completely true... If you want to go to that directory, you also need to have th...
{ "language": "en", "url": "https://stackoverflow.com/questions/59838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4290" }
Q: bug in linq Contains statement - is there a fix or workaround? I found a bug in the Contains statement in Linq (not sure if it is really in Linq or Linq to SQL) and want to know if anyone else has seen this and if there is a fix or workaround. If the querysource you do the contains with has more than 10 items in it,...
{ "language": "en", "url": "https://stackoverflow.com/questions/59840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I create a spring bean for a Java double primitive? I'd like to create a spring bean that holds the value of a double. Something like: <bean id="doubleValue" value="3.7"/> A: It's also worth noting that depending on your need defining your own bean may not be the best bet for you. <util:constant static-fiel...
{ "language": "en", "url": "https://stackoverflow.com/questions/59850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Should I use a dedicated network channel between the database and the application server? Should I use a dedicated network channel between the database and the application server? ...or... Connecting both in the switch along with all other computer nodes makes no diference at all? The matter is performance! A: It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When Testing your MVC-based UI, how much of the test setup do you make common? I'm trying to test a simple WebForms (asp.net) based UI, and follow the MVP pattern to allow my UI to be more testable. As I follow the TDD methodology for backend algorithms, I find that there are some unit test refactorings that happen...
{ "language": "en", "url": "https://stackoverflow.com/questions/59859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are Stored Procedures more efficient, in general, than inline statements on modern RDBMS's? Conventional wisdom states that stored procedures are always faster. So, since they're always faster, use them ALL THE TIME. I am pretty sure this is grounded in some historical context where this was once the case. Now, I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "120" }
Q: Best method to obfuscate or secure .Net assemblies I'm looking for a technique or tool which we can use to obfuscate or somehow secure our compiled c# code. The goal is not for user/data security but to hinder reverse engineering of some of the technology in our software. This is not for use on the web, but for a d...
{ "language": "en", "url": "https://stackoverflow.com/questions/59893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How do I get the directory where a Bash script is located from within the script itself? How do I get the path of the directory in which a Bash script is located, inside that script? I want to use a Bash script as a launcher for another application. I want to change the working directory to the one where the Bash sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/59895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6014" }
Q: How do I stop an effect in jQuery I have a page that uses $(id).show("highlight", {}, 2000); to highlight an element when I start a ajax request, that might fail so that I want to use something like $(id).show("highlight", {color: "#FF0000"}, 2000); in the error handler. The problem is that if the first highlight...
{ "language": "en", "url": "https://stackoverflow.com/questions/59896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: SQL Server 2005 Encryption, asp.net and stored procedures I need to write a web application using SQL Server 2005, asp.net, and ado.net. Much of the user data stored in this application must be encrypted (read HIPAA). In the past for projects that required encryption, I encrypted/decrypted in the application code. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: National holiday web service Is there a public/government web service that I can call to find out what the national holidays are for a given year? (For the US and/or any country in the world.) Edit: Does anybody have a set of formulas to calculate US holidays? (C# would be my language of choice if there is a choice....
{ "language": "en", "url": "https://stackoverflow.com/questions/59934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Slowing down the playback of an audio file without changing its pitch? I am working on an application for college music majors. A feature i am considering is slowing down music playback without changing its pitch. I have seen this done in commercial software, but cannot find any libraries or open source apps that do...
{ "language": "en", "url": "https://stackoverflow.com/questions/59936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What is the purpose of a Data Access Layer? I started a project a long time ago and created a Data Access Layer project in my solution but have never developed anything in it. What is the purpose of a data access layer? Are there any good sources that I could learn more about the Data Access Layer? A: A data acce...
{ "language": "en", "url": "https://stackoverflow.com/questions/59942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Accessing .NET Web Service securely from Flex 3 We can successfully consume a .NET 2.0 web service from a Flex/AS3 application. Aside from SSL, how else can we make the security more robust (i.e., authentication)? A: You can leverage ASP.Net's built in session management by decorating your webmethods with <Enable...
{ "language": "en", "url": "https://stackoverflow.com/questions/59945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP Server variable not working on local IIS I'm working on a simple ASP.Net page (handler, actually) where I check the value of the LOGON_USER server variable. This works using Visual Studio's built-in web server and it works in other sites deployed to the live intranet site. But it doesn't work on the IIS instan...
{ "language": "en", "url": "https://stackoverflow.com/questions/59951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WPF - Programmatic Binding on a BitmapEffect I would like to be able to programmatically bind some data to the dependency properties on a BitmapEffect. With a FrameworkElement like TextBlock there is a SetBinding method where you can programmatically do these bindings like: myTextBlock.SetBinding(TextBlock.TextPrope...
{ "language": "en", "url": "https://stackoverflow.com/questions/59958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Old-school SQL DB access versus ORM (NHibernate, EF, et al). Who wins? I've been successful with writing my own SQL access code with a combination of stored procedures and parameterized queries and a little wrapper library I've written to minimize the ADO.NET grunge. This has all worked very well for me in the past ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Implementing large system changes If you're familiar with the phrase "build one to throw away", well, we seem to have done that; we’re reaching the limits of version 1 of our online app. It's time to clean things up by: * *Re-organizing code and UI *Unifying UI processes *Adding more functionality *Building fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/59974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XMLSerialization in C# I have a simple type that explicitly implemets an Interface. public interface IMessageHeader { string FromAddress { get; set; } string ToAddress { get; set; } } [Serializable] public class MessageHeader:IMessageHeader { private string from; private string to; [XmlAttribute("F...
{ "language": "en", "url": "https://stackoverflow.com/questions/59986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++ inheritance and member function pointers In C++, can member function pointers be used to point to derived (or even base) class members? EDIT: Perhaps an example will help. Suppose we have a hierarchy of three classes X, Y, Z in order of inheritance. Y therefore has a base class X and a derived class Z. Now we...
{ "language": "en", "url": "https://stackoverflow.com/questions/60000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: How to build large/busy RSS feed I've been playing with RSS feeds this week, and for my next trick I want to build one for our internal application log. We have a centralized database table that our myriad batch and intranet apps use for posting log messages. I want to create an RSS feed off of this table, but I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/60009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create multiple records at once with ActiveScaffold in ROR I am wanting to use ActiveScaffold to create assignment records for several students in a single step. The records will all contain identical data, with the exception of the student_id. I was able to override the default form and replace the dropdown...
{ "language": "en", "url": "https://stackoverflow.com/questions/60019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you resize an IE browser window to 1024 x 768 In Firefox you can enter the following into the awesome bar and hit enter: javascript:self.resizeTo(1024,768); How do you do the same thing in IE? A: Your code works in IE, you just need to "Allow blocked Content" in the Security Toolbar A: Try: javascript:r...
{ "language": "en", "url": "https://stackoverflow.com/questions/60030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Getting the array key in a 'foreach' loop How do I get the key of the current element in a foreach loop in C#? For example: PHP foreach ($array as $key => $value) { echo("$value is assigned to key: $key"); } What I'm trying to do in C#: int[] values = { 5, 14, 29, 49, 99, 150, 999 }; foreach (int val in values...
{ "language": "en", "url": "https://stackoverflow.com/questions/60032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: What is the easiest way to duplicate an activerecord record? I want to make a copy of an ActiveRecord object, changing a single field in the process (in addition to the id). What is the simplest way to accomplish this? I realize I could create a new record, and then iterate over each of the fields copying the data ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "468" }
Q: How can you find and replace text in a file using the Windows command-line environment? I am writing a batch file script using Windows command-line environment and want to change each occurrence of some text in a file (ex. "FOO") with another (ex. "BAR"). What is the simplest way to do that? Any built in functions? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "589" }
Q: C# NetCDF Library I am currently working on (or at least planning) a couple of projects that work with large amounts of repetitive data. The kind of data that works well in a spreadsheet or database, but is nasty in XML. :) NetCDF seems like a great option for a file format. However, my work is in C# and there is no...
{ "language": "en", "url": "https://stackoverflow.com/questions/60039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Google Maps in Flex Component I'm embedding the Google Maps Flash API in Flex and it runs fine locally with the watermark on it, etc. When I upload it to the server (flex.mydomain.com) I get a sandbox security error listed below: SecurityError: Error #2121: Security sandbox violation: Loader.content: http://mydo...
{ "language": "en", "url": "https://stackoverflow.com/questions/60046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java sound recording and mixer settings I'm using the javax.sound.sampled package in a radio data mode decoding program. To use the program the user feeds audio from their radio receiver into their PC's line input. The user is also required to use their mixer program to select the line in as the recording input. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/60049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Referencing back to the parent from a child object My question is pertaining to the best practice for accessing a child object's parent. So let's say a class instantiates another class, that class instance is now referenced with an object. From that child object, what is the best way to reference back to the parent ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a child's PID? I am currently in an operating systems class and my teacher spent half of the class period talking about PIDs. She mentioned, as many know, that processes know their parent's ID. My question is this: Does a process's PCB know its child's ID? If so, what is the way to go about it obtaining it?...
{ "language": "en", "url": "https://stackoverflow.com/questions/60070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Error OLE.INTEROP I'm getting an error whenever I load Management Studio or open a folder in the server explorer, etc. Additionally, If I try to create a new database it constantly is updating and does not finish. I have attached a screenshot of the error. Please let me know what I can do to fix this because it'...
{ "language": "en", "url": "https://stackoverflow.com/questions/60076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why would breakpoints in VS2008 stop working? I have a c# asp.net web app. Breakpoints in the database layer are no longer stopping execution but the breakpoints in the UI layer are still working okay. Can anyone hazard a guess why this might be happening? I've checked all the usual suspects (Debug build is on for a...
{ "language": "en", "url": "https://stackoverflow.com/questions/60093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "Could not load type" in web service converted to VB.NET I wrote a simple web service in C# using SharpDevelop (which I just got and I love). The client wanted it in VB, and fortunately there's a Convert To VB.NET feature. It's great. Translated all the code, and it builds. (I've been a "Notepad" guy for a long t...
{ "language": "en", "url": "https://stackoverflow.com/questions/60098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get a particular labeled version of a folder in Borland StarTeam? I'm about to perform a bunch of folder moving operations in StarTeam (including some new nesting levels) and I would like to set a label so that I can roll back in case of issues. I figured out how to set a label on a folder and all its chil...
{ "language": "en", "url": "https://stackoverflow.com/questions/60099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In C# (or any language) what is/are your favourite way of removing repetition? I've just coded a 700 line class. Awful. I hang my head in shame. It's as opposite to DRY as a British summer. It's full of cut and paste with minor tweaks here and there. This makes it's a prime candidate for refactoring. Before I emb...
{ "language": "en", "url": "https://stackoverflow.com/questions/60100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Good challenges/tasks/exercises for learning or improving object oriented programming (OOP) skills What is a good challenge to improve your skills in object oriented programming? The idea behind this poll is to provide an idea of which exercises are useful for learning OOP. The challenge should be as language agnost...
{ "language": "en", "url": "https://stackoverflow.com/questions/60109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "87" }
Q: HTTPS with Visual Studio's built-in ASP.NET Development Server Is there a way to access Visual Studio's built-in ASP.NET Development Server over HTTPS? A: Cassini does not support HTTPS. However, you can use IIS to do this, if your using IIS 5.1, download the MS IIS toolpack for IIS 6.0, it comes with a tool to cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/60113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "114" }
Q: Silverlight Install Base - How big is it? Silverlight v2.0 is getting closer and closer to RTM but I have yet to hear any stats as to how many browsers are running Silverlight. If I ask Adobe (by googling "Flash install base") they're only too happy to tell me that 97.7% of browsers are running Flash player 9 or bet...
{ "language": "en", "url": "https://stackoverflow.com/questions/60121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Select rows in dataset table based on other dataset table I have a dataset that has two tables in it. I want to do the following (or something like it) is it possible and is how I have it correct? dsTabData.Tables("FilingTabs").Select("fs_ID not in (select fsp_fsid from ParentTabs)") how do you reference data from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Technical issues when switching to an unmanaged Virtual Private Server (VPS) hosting provider? I'm considering moving a number of small client sites to an unmanaged VPS hosting provider. I haven't decided which one yet, but my understanding is that they'll give me a base OS install (I'd prefer Debian or Ubuntu), an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best way to determine the number of servers needed How much traffic can one web server handle? What's the best way to see if we're beyond that? I have an ASP.Net application that has a couple hundred users. Aspects of it are fairly processor intensive, but thus far we have done fine with only one server to run both ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }