text
stringlengths
8
267k
meta
dict
Q: Tool or methods for automatically creating contextual links within a large corpus of content? Here's the basic scenario - I have a corpus of say 100,000 newspaper-like articles. Minimally they will all have a well-defined title, and some amount of body content. What I want to do is find runs of text in articles t...
{ "language": "en", "url": "https://stackoverflow.com/questions/436689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do we verify elements existence by id in SharePoint lists? I want to get a item from a list without loading all the items of the list. I know I can do it by calling SPList.getElementbyId(myID), but if I don't know if this myID exists in the list, how do I verify it? Yes I could use SPListItem myItem = myList.Ite...
{ "language": "en", "url": "https://stackoverflow.com/questions/436692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is switching app.config at runtime possible? Is there a way at runtime to switch out an applications app.config (current.config to new.config, file for file). I have a backup/restore process which needs to replace its own application.exe.config file. I have seen this post but it does not answer how to do this at r...
{ "language": "en", "url": "https://stackoverflow.com/questions/436700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is the replacement for the child selector? Since IE6 does not support the child selector (see http://kimblim.dk/csstest/#ex1), what is the alternative when dealing with this browser? I do not want to modify the markup, and I'd much much prefer a CSS-only solution... And yes, it is the direct child that I wish t...
{ "language": "en", "url": "https://stackoverflow.com/questions/436702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Element.appendChild() chokes in IE I have the following javascript: css = document.createElement('style'); css.setAttribute('type', 'text/css'); css_data = document.createTextNode(''); css.appendChild(css_data); document.getElementsByTagName("head")[0].appendChild(css); for some reason, in IE only, it cho...
{ "language": "en", "url": "https://stackoverflow.com/questions/436710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is NV32ts and its SQL Injection Attack trying to do? I have been getting a number of attacks on my website lately, with a User-Agent of NV32ts. They all are some variation of the following injection attacks against a querystring variable (where 99999 represents a valid querystring value, the attack is appended ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I invoke a method through reflection with a lambda expression as a parameter? I want to do this: MethodInfo m = myList.GetType().GetMethod("ConvertAll", System.Reflection.BindingFlags.InvokeMethod).MakeGenericMethod(typeof(object)); List<object> myConvertedList = (List<object>)m.Invoke(myList, new object[]{ (...
{ "language": "en", "url": "https://stackoverflow.com/questions/436716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Emulated ARM assembler environment? I would like my son to learn ARM assembler, and I'm considering buying him an embedded system that he can program so he can make LEDs flash and other cool stuff that I got a kick out of as a kid. Are there any emulated or virtual "workbenches" that offer this type of programming e...
{ "language": "en", "url": "https://stackoverflow.com/questions/436728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Can I bind multidimensional data to a DataGridView in C# and .NET? I'm looking to develop an app which features worksheets subclassed from DataGridView. Users can paste (or import) CSV-like data into the worksheet and it will be reflected in a data structure in memory - my first guess would be a 2D array of floats. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Looking for String operations edge cases. What do I need to test? I am getting to the last stage of my rope (a more scalable version of String) implementation. Obviously, I want all operations to give the same result as the operations on Strings whenever possible. Doing this for ordinal operations is pretty simple,...
{ "language": "en", "url": "https://stackoverflow.com/questions/436736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java not inheriting accessor methods? Given a class "Bar" that extends class "Foo" which implements interface "DeeDum" public interface DeeDum { public String getDee(); public String getDum(); } public class Foo implements DeeDum { public String dee = "D"; public String dum; public String getDe...
{ "language": "en", "url": "https://stackoverflow.com/questions/436742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Supporting Sessions Without Cookies in Tomcat I am currently running an application with the following properties: * *Java-based with Spring and Acegi *Running on Tomcat 5 I need the ability to support user sessions without cookies. Could someone please point me in the right direction. Thank you. A: See http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/436752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: C# Out parameter question: How does Out handle value types? UPDATE So totally pulled a tool moment. I really meant by reference versus Out/Ref. Anything that says 'ref' I really meant by reference as in SomeMethod(Object someObject) Versus SomeMethod(out someObject) Sorry. Just don't want to change the code so t...
{ "language": "en", "url": "https://stackoverflow.com/questions/436759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SMO scripting objects and security I have a customer that has a SQL database on a hosted server; call the db "myDatabase". The hosting co. has locked down object explorer - I can't see myDatabase in the database listed (I see tempdb and master). However, if I "use myDatabase" and then "select * from myTable", all w...
{ "language": "en", "url": "https://stackoverflow.com/questions/436760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: External Interface Error This is the code I am using to call a function calc in javascript: import flash.external.ExternalInterface; ExternalInterface.addCallback("asFunc", this, asFunc); function asFunc(str:String):Void { out.text = "JS > Hello " + str; } send_btn.addEventListener(MouseEvent.CLICK, clickLis...
{ "language": "en", "url": "https://stackoverflow.com/questions/436776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Send broadcast message from all network adapters I have an application that sends broadcast messages and listens for response packets. Below is the code snippet. m_socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); m_socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName...
{ "language": "en", "url": "https://stackoverflow.com/questions/436778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SSO Best Practices: What are solutions for unreachable IDP? Here's something similar to this question on general SSO best-practices. What is the best approach for dealing with a disabled or for-whatever-reason-unreachable central identity provider. If your website allows users to login with their centrally-stored cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/436796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Could someone provide a C# example using itemsearch from Amazon Web Services I am trying to use Amazon Web Services to query Artist and title information and receive album art back. Using C# I cannot find any examples that come even close to this. All of the examples online are outdated and do not work with AWS' n...
{ "language": "en", "url": "https://stackoverflow.com/questions/436801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Lifetime management of encapsulated objects What is the best approach to encapsulate objects and manage their lifetime? Example: I have a class A, that contains an object of type B and is solely responsible for it. Solution 1, clone b object to ensure that only A is able to clean it up. class A { B *b; public: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Add a line to a list and canvas I'm currently trying to add a regular line shape to both the canvas and a custom object. I'm not getting an error, but the line is not being added to the canvas The relevant bit of code is below lh = new LineHolder(); Line lnx = new Line(); lnx.StrokeThickness = 1; MainCan.Children...
{ "language": "en", "url": "https://stackoverflow.com/questions/436806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is your system for avoiding keyword naming clashes? Typically languages have keywords that you are unable to use directly with the exact same spelling and case for naming things (variables,functions,classes ...) in your program. Yet sometimes a keyword is the only natural choice for naming something. What is yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/436807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL Server 2000 - What really is the "Actual Number of Rows"? I have an SQL Server 2000 query which performs an clustered index scan and displays a very high number of rows. For a table where I have 260.000 records, the actual number of rows displayed in the plan execution is ... 34.000.000. Does this makes sense? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I indicate an en-dash while in math mode using LaTeX? There are four kinds of 'dashes' in LaTeX: hyphen, en-dash(--), em-dash(---) and minus $-$. They are used for, respectively, hyphenation and joining words, indicating a range, punctuation, and a mathematical symbol. My question is: how do I indicate an e...
{ "language": "en", "url": "https://stackoverflow.com/questions/436823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: How do you delegate your OpenId to Google Apps I use Google Apps for my domain email, and I was wondering if I could use that account for OpenID instead of the regular Gmail account. I know I can delegate Openid to some other URL using this: <link rel="openid.server" href="http://www.myopenid.com/server" /> <link r...
{ "language": "en", "url": "https://stackoverflow.com/questions/436829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Why is my console app running via setup.exe? What am I doing wrong? I have a simple console app in VS08. When I hit Publish, it creates a setup.exe in the target folder. When you run setup.exe, it goes through the motions of installing, but it also runs the app, which is undesirable to say the least. Is there a sett...
{ "language": "en", "url": "https://stackoverflow.com/questions/436834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert java 5 code using generics to code that can run on a J2ME device? Are there any solutions or tools that transform java 5 code that uses all the new java 5 features(generics, autoboxing, varargs, static imports) into code that can run on a J2ME device? I am particularly interested in handling generics - the o...
{ "language": "en", "url": "https://stackoverflow.com/questions/436847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Use a button to change the orientation of the iPhone Is there a way to change the orientation of the iPhone using a button? A: No. flip the phone, the orientation changes. Leave it at that, or you'll ruin the integrity of the phone. A: sometimes we need to show our app in the correct orientation, even if there is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: matching a line that doesn't contain specific text with regular expressions I want to do the following with regular expressions but not sure how to do it. I want it to match one two when one two is the beginning of the line unless the string contains three anywhere after one two. A: ^one two(?!.*three) A: You nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/436850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Storing MATLAB structs in Java objects I'm using Java HashMap in MATLAB h = java.util.HashMap; And while strings, arrays and matrices works seemlessly with it h.put(5, 'test'); h.put(7, magic(4)); Structs do not h=java.util.HashMap; st.val = 7; h.put(7, st); ??? No method 'put' with matching signature found for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: phpMyAdmin crashing the MySQL host server I have encountered this problem a couple of times, in the last few days. So, it happens occasionally. I have setup mysql on a remote machine, and there is a java program on another machine querying the database to read and write records every few seconds. I am using phpMyAd...
{ "language": "en", "url": "https://stackoverflow.com/questions/436864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you overload controller methods in ASP.NET MVC? I'm curious to see if you can overload controller methods in ASP.NET MVC. Whenever I try, I get the error below. The two methods accept different arguments. Is this something that cannot be done? The current request for action 'MyMethod' on controller type 'MyC...
{ "language": "en", "url": "https://stackoverflow.com/questions/436866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "338" }
Q: Sniffing data from a switch I have 2 network devices that talk to each other over Ethernet. I would like to sniff the traffic using Wireshark. But the devices are going through a switch. The switch routes the traffic to only the ports that need the data. At another location I have a hub. All the traffic is repea...
{ "language": "en", "url": "https://stackoverflow.com/questions/436867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What do you think about Microsoft Oslo MGraph? MGraph is a great textual data format brought by Microsoft "Oslo". Do you think it has a chance to get as broad as XML is today? Example (Google Geocode): { name = "waltrop, lehmstr 1d", Status { code = 200, request: "geocode" }, Placemark [ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Control FLV/MP4 Audio & Pan Levels How can I control the audio & pan levels of an external FLV or MP4 video that I am playing through a Video object? In AS 2, the way to do this was to create an empty movieclip and then use the attachAudio function, which has been deprecated. Should I go about doing this the same wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/436885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In MVC, should pagination info go in the path or querystring? In the path: Format: http://mydomain.com/{category}/{subcategory}/{pageNumber}/{pageSize} Example: http://mydomain.com/books/thriller/3/25 In the querystring: Format: http://mydomain.com/{category}/{subcategory}? pageNumber={pageNumber}&pageSize={pageSize...
{ "language": "en", "url": "https://stackoverflow.com/questions/436889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Delphi 5: Ideas for simulating "Obsolete" or "Deprecated" methods? i want to mark a method as obsolete, but Delphi 5 doesn't have such a feature. For the sake of an example, here is a made-up method with it's deprecated and new preferred form: procedure TStormPeaksQuest.BlowHodirsHorn; overload; //obsolete procedure...
{ "language": "en", "url": "https://stackoverflow.com/questions/436896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to display spreadsheet data in Ruby on Rails? I am looking for a way to edit data and have values dynamically calculated (i.e. totals, averages, etc.) My application is a web based gradebook system for teachers and one of the big challenges is allowing them to enter/update grades. The most nat...
{ "language": "en", "url": "https://stackoverflow.com/questions/436915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Maven install folder structure problem j2ee (spring, struts ..) i'm using maven 2.1-SNAPSHOT as eclipse plugin. My project structure is like this: src/main/java    -model    -service    -action src/test/java    empty atm src/main/resources    empty atm src/test/resources    empty atm src/main/webapp    -js ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Ajax refresh/update sum from a GridView Column to a TextBox I have a GridView A that have many columns, one of those contains price for each row. so the cue is how or in which way, can I update/refresh the total price that will be showed in a Label or TextBox (not in GridView Footer)? My working platform is C# 3.0 /...
{ "language": "en", "url": "https://stackoverflow.com/questions/436938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to start aspnet_wp.exe without firing Application_Start event I'm trying to debug a web service (Windows XP SP3, VS 2008, ASP.NET 2, VB.NET). For most of it, if the asp.net worker process is already loaded, I can start the Windows form that calls the web service, attach to aspnet_wp.exe in Visual Studio, and the...
{ "language": "en", "url": "https://stackoverflow.com/questions/436941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What should "value_from_datadict" method of a custom form widget return? I'm trying to build my own custom django form widgets (putting them in widgets.py of my project directory). What should the value "value_from_datadict()" return? Is it returning a string or the actual expected value of the field? I'm building...
{ "language": "en", "url": "https://stackoverflow.com/questions/436944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Who's on Dictionary<>.First()? What is the meaning of the .NET 3.5 extension method Enumerable.First() when you call it on an instance of the Dictionary collection? Does the set of keys determine which item is first, or is it just not defined? A: If you need the first item in a dictionary, you're best using a Sorte...
{ "language": "en", "url": "https://stackoverflow.com/questions/436954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do I hide a console application user interface when using Process.Start? I want to run a console application that will output a file. I user the following code: Process barProcess = Process.Start("bar.exe", @"C:\foo.txt"); When this runs the console window appears. I want to hide the console window so it is no...
{ "language": "en", "url": "https://stackoverflow.com/questions/436956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: .NET app.config question I have created an Excel 2003 add-in that uses the CLR 2.0 and this add-in is to be installed in hundreds of machines at my customer's site. The issue is that some of the machines where the add-in is installed have .NET 1.1 and .NET 2.0 running side by side, and the plugin throws an error whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/436958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Thinking Sphinx indexing non-expired records What would be the best approach to have Thinking Sphinx only index records where Today's date is less than or equal to the record's "expires_at" field? Thanks in advance. A: The easiest approach is adding the following statement to your define_index block: where "expired...
{ "language": "en", "url": "https://stackoverflow.com/questions/436966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LDAP won't update if cached data exists We have an SELinux client that authenticates network users using LDAP connecting to an Active Directory server. Since our machines have to operate "untethered," we have to use nscd to cache group and passwd info. Here's the issue. If we change group information on the Active D...
{ "language": "en", "url": "https://stackoverflow.com/questions/436976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Has anyone successfully connected to MySQL from Ruby? I'm starting to get a bit desperate in my attempts to get a ruby script to connect to MySQL. I've given up on DBI, as I just don't seem to be able to get it to work no matter what I do. I figured I might have more luck with just using mysql.rb from ruby-mysql. Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/436980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# pass by value/ref? Common question but I could use an "english" explanation. Is it like Java where Cat myCat actually is a pointer to Cat? Should I really create copy constructors in C#? I understand we are passing by value, but now my question is are we passing by pointer value or full copy of the object? If...
{ "language": "en", "url": "https://stackoverflow.com/questions/436986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How to get data out of network packet data in Java In C if you have a certain type of packet, what you generally do is define some struct and cast the char * into a pointer to the struct. After this you have direct programmatic access to all data fields in the network packet. Like so : struct rdp_header { int vers...
{ "language": "en", "url": "https://stackoverflow.com/questions/436989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Multiply 2 numbers and then sum I am having a difficult time trying to do something that seems like it should be really easy to do. I basically want to multiply 2 numbers in a node and then sum the total of those numbers for all the nodes. Here is the XSLT code I have tried. <xsl:value-of select="sum(Parts/Part/Quan...
{ "language": "en", "url": "https://stackoverflow.com/questions/436998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: WordPress options Today I'm on an asking spree :P Anyhow... Right now I am developing a free WordPress theme. The problem is that I want to make it as flexible as possible so that is why I will use some theme options to set some CSS colors, widths and so on. My question is this: If I assume that one of this themes w...
{ "language": "en", "url": "https://stackoverflow.com/questions/436999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the right pattern for using JQuery Ajax and ASP.Net Mvc? I'm very new to both the Mvc framework as well as JavaScript and JQuery. I'm trying to understand the right way to structure Ajax calls. Let's say I have a Vote Up button similar to what you see on StackOverflow. When the user clicks it I need to updat...
{ "language": "en", "url": "https://stackoverflow.com/questions/437002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Can one access TestContext in an AssemblyCleanup method? In Microsoft's UnitTesting namespace (Microsoft.VisualStudio.TestTools.UnitTesting) there are AssemblyInitialize and AssemblyCleanup attributes you can apply to static methods and they will be called before and after all tests respectively. [AssemblyInitialize...
{ "language": "en", "url": "https://stackoverflow.com/questions/437010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do you handle reporting filters in ASP.NET MVC? For a given report, the user will want to have multiple filtering options. This isn't bad when the options are enumerations, and other 'static' data types, however things can get silly fast when you need a select list that is populated by fields stored in a table i...
{ "language": "en", "url": "https://stackoverflow.com/questions/437011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MVC DataContext Ok to Share One Connection or Not When is the "unit of work" no longer a "unit"? Which scenario is better on resources? THe first creates one connection wheras the second creates 4. using (DataContext dc=new DataContext) { var orders= from o in dc.orders select ( new Product { pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/437022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement a python REPL that nicely handles asynchronous output? I have a Python-based app that can accept a few commands in a simple read-eval-print-loop. I'm using raw_input('> ') to get the input. On Unix-based systems, I also import readline to make things behave a little better. All this is working fine....
{ "language": "en", "url": "https://stackoverflow.com/questions/437025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: In C# what is the difference between myInt++ and ++myInt? I'm having a hard time understanding what the difference is between incrementing a variable in C# this way: myInt++; and ++myInt; When would ever matter which one you use? I'll give voteCount++ for the best answer. Or should I give it ++voteCount... A: It...
{ "language": "en", "url": "https://stackoverflow.com/questions/437026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: file uploading problem with open_basedir and move_uploaded_file I'm working with a legacy php script. There is a file upload form in it already, but I've added another one for a different section in the same script. The $_file['file'] is there. But I keep getting a open_basedir restriction error, and if not that, I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to handle a large download site? I currently have a download site for my school that is based in .net. We offer anything from antivirus, autocad, spss, office, and a number of large applications for students to download. It's currently setup to handle them in 1 of 2 ways; anything over 800 megs is direct...
{ "language": "en", "url": "https://stackoverflow.com/questions/437043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's your ideal C# project built upon? I'm starting a new personal project on the side, so this is the first time I'll be able to start from the ground up on a larger project since ASP.NET 2.0 was first released. I'd like this to also be a good learning experience for me, so right now I'm planning on building this...
{ "language": "en", "url": "https://stackoverflow.com/questions/437050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you monitor network traffic on the iPhone? We are looking for a Wireshark-like tool to use on the iPhone to test a 3rd party application before partnering with the 3rd party. Any suggestions? A: Without knowing exactly what your requirements are, here's what I did to see packts go by from the iPhone: Connec...
{ "language": "en", "url": "https://stackoverflow.com/questions/437061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: Domain Objects and Services In this question someone replies "You never let the domain object implementations call services by themselves!". Is this statement a hard fast rule of DDD or does it depend on your own application and architecture? Contrived example: As an example lets suppose we have a UserImage object i...
{ "language": "en", "url": "https://stackoverflow.com/questions/437067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Debugging to Sleep I'm having trouble with Debug(f11,etc.) using VS2008-SP1 and Vista-SP1. It randomly, but routinely, puts my computer in the sleep mode. I've looked on the web for similar problems and found nothing. A: Are you using a laptop? If so, that could be your 'sleep' button if Function Lock is Off (or on...
{ "language": "en", "url": "https://stackoverflow.com/questions/437071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WPF LinkLabel implementation strategy I am attempting to create a LinkLabel control for WPF. Essentially, I'm going to create the LinkLabel from a TextBlock and handle MouseEnter, MouseLeave, and MouseLeftButtonUp events. In the back end I have a base class that has properties that you would expect to see with a Lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/437075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get from xhtml to excel to xhtml I have a question on how best to get xhtml into excel. let the user edit it in excel and then get back to xhtml at the end. The background is that I have a web app in which the texts are stored in xhtml. These I can export to an excel file with the html in the excel cell. I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/437082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mvn release:perform without source ending up in artifactory What is the proper way to do mvn release:perform so that source code does not end up in my artifactory? All help appreciated. I know I have seen this documented somewhere Thanks A: Try setting the attach property of the maven-source-plugin to false, e.g: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's up with innerHTML and ? I'm trying to fix a bug in a rich text editor I'm using, which causes <embed> tags to be inserted without their closing tag (which screws the output up completely). I've isolated the problem to this operation: // body is a <body> tag body.innerHTML = '<embed src="http://example.com/wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/437086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: improving performance of table navigation in jquery I am trying to write table navigation using keys for asp.net gridview. This is what I have so far. It is working fine but it is slow. Please look at it and let me know how to improve the performance if possible. Basically it is html table with input elements. The s...
{ "language": "en", "url": "https://stackoverflow.com/questions/437091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaBeans Comparison Does anyone know about a free open source library (utility class) which allows you to compare two instances of one Java bean and return a list/array of properties which values are different in those two instances? Please post a small sample. Cheers Tomas A: BeanComparator of Apache commons is w...
{ "language": "en", "url": "https://stackoverflow.com/questions/437093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Where can I download the source of "appframework.jar" that comes with NetBeans? I have just started to try NetBeans. I created a new Java Desktop Application project, and it automatically added the JDesktop "appframework-1.0.3.jar" library. However, whenever I try to view its source, the command fails. I tried searc...
{ "language": "en", "url": "https://stackoverflow.com/questions/437097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to get RGB values from UIColor? I'm creating a color object using the following code. curView.backgroundColor = [[UIColor alloc] initWithHue:229 saturation:40 brightness:75 alpha:1]; How can I retrieve RGB values from the created color object? A: const CGFloat *colors = CGColorGetComponents( curView.background...
{ "language": "en", "url": "https://stackoverflow.com/questions/437113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "104" }
Q: Object browser in SSMS 2008 doesn't work if I don't have access to all databases In SQL Server Management Studio 2008, if I log into a shared hosting provider with many databases on one server, I cannot use the Object Explorer. This worked fine in 2005. Anyway to change this behavior? It throws this exception: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Help with TSQL - a way to get the value in the Nth column of a row? I hope to find a way to get the value in the Nth column of a dataset. Thus, for N = 6 I want SELECT (Column6Value) from MyTable where MyTable.RowID = 14 Is there a way to do this in TSQL as implemented in SQL Server 2005? Thanks. A: You should ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: any idea why js errors aren't showing up in my firebug console? I'm having to open the firefox error console, which is kind of annoying. A: Restart seemed to fix it. A: Open Firebug, and under the Console tab, check "Console" and "Script", then hit "Apply for domain.com".
{ "language": "en", "url": "https://stackoverflow.com/questions/437121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What is better: Global string or singleton? For my brand new ORM (chibi-ORM) I face a design decision. I'm building the API for relationships, like: @interface SamplePerson : DbObject { NSString *name; DbObjectRelation *cities; } Now, for DbObjectRelation I have this mockup: @interface DbObjectRelation ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't get values from rows/cells in GridView I'm trying get values from a GridView using the following code: foreach (GridViewRow row in this.dgvEstudios.Rows) { var xy = row.Cells[1].Text; } Always get a an empty string ("") as the value returned from .Text, why does this happen? I have set EnableViewState to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I send users to a different "site" in Apache while also using mod_proxy? I have a web site that I administer that uses Apache 2.0 on the front with Tomcat 6 on the back-end (with mod_proxy proxying the connection between the two). I want to be able to use the same VirtualHost to also access the phpMyAdmin app...
{ "language": "en", "url": "https://stackoverflow.com/questions/437140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How secure is IP address filtering? I'm planning to deploy an internal app that has sensitive data. I suggested that we put it on a machine that isn't exposed to the general internet, just our internal network. The I.T. department rejected this suggestion, saying it's not worth it to set aside a whole machine for on...
{ "language": "en", "url": "https://stackoverflow.com/questions/437146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Can someone explain this template code that gives me the size of an array? template<typename T, size_t n> size_t array_size(const T (&)[n]) { return n; } The part that I don't get is the parameters for this template function. What happens with the array when I pass it through there that gives n as the number of...
{ "language": "en", "url": "https://stackoverflow.com/questions/437150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: Custom Windows 2003 Services I have an .exe I want to start when the Win2k3 server boots. Does .exe needs to be setup as a custom service. If so, what is the process to setup the custom service? A: I assume you don't really mean at boot time (you would have to write a driver service for that) but rather at user mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/437151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IronPython Webframework There seem to be many excellent web frameworks for Python. Has anyone used any of these (Pylons, Web2Py, Django) with IronPython? A: Django has been run on IronPython before, but as a proof-of-concept. I know the IronPython team are interested in Django support as a metric for Python-compat...
{ "language": "en", "url": "https://stackoverflow.com/questions/437160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Can I host a SandstoneDB app on www.Seasidehosting.st? Did someone ever manage to make a seasidehosting-hosted web application cooperate with SandstoneDb? It seems that they disallow creating of subdirectories, which is important for SandstoneDb. Am I wrong? A: I haven't personally tried sandstoneDB on seasidehosti...
{ "language": "en", "url": "https://stackoverflow.com/questions/437161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Duplicating model instances and their related objects in Django / Algorithm for recusrively duplicating an object I've models for Books, Chapters and Pages. They are all written by a User: from django.db import models class Book(models.Model) author = models.ForeignKey('auth.User') class Chapter(models.Model) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: FIFO queue synchronization Should FIFO queue be synchronized if there is only one reader and one writer? A: What do you mean by "synchronized"? If your reader & writer are in separate threads, you want the FIFO to handle the concurrency "correctly", including such details as: * *proper use of FIFO API should nev...
{ "language": "en", "url": "https://stackoverflow.com/questions/437168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DomainKeys Sendmail DNS What steps do I have to take to configure my sendmail server to implement domainkeys properly? Also what do I have to do on the DNS end? A: There are detailed descriptions on the web. For example: * *http://www.elandsys.com/resources/sendmail/domainkeys.html *http://www.erikberg.com/note...
{ "language": "en", "url": "https://stackoverflow.com/questions/437170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Read single value from query result I am trying to return the result that I found in my query to the ASP.net table. How do I do that? I already have the query, I am just having trouble getting the count result back. string configMan.ConnString["connect"].ToString(); iDB2Conn temp = new iDB2Conn string query = "s...
{ "language": "en", "url": "https://stackoverflow.com/questions/437180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to cope with slow feedback when pair programming? I work in an Extreme Programming team, pair programming every day. Recently more and more often I get to do stuff that gives slow feedback, on order of 3 minutes. For example: change some thing, recompile, run and see wheather the performance is improved. I see i...
{ "language": "en", "url": "https://stackoverflow.com/questions/437190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does ASP.NET have built in support for skinning logos? I'm using logos as just an example. I'm trying to use themes/skins for the first time in ASP.NET - and just trying to figure out exactly what they will allow me to do. As far as i can tell themes are primarily for changing controls like buttons, which can be mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/437193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get more than 1000 items in HSQLDB in CASE WHEN statement? I'm running the following query in Hypersonic DB (HSQLDB): SELECT (CASE foo WHEN 'a' THEN 'bar' WHEN 'b' THEN 'biz' .... ELSE 'fin' END ) FROM MyTable LIMIT 1 When the number of "WHEN" clauses exceeds about 1000, I get a Java StackOverflowErr...
{ "language": "en", "url": "https://stackoverflow.com/questions/437207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can you upgrade a datatype from a 32-bit Integer to a 64-bit Integer in SQL for all foreign keys? For basically every SQL database out there, how would you upgrade your data types and have all the foreign keys linked to that data type be upgraded? For example, let's say I have ScientificResult is a 32-bit inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/437211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you register a Most Recently Used list with Windows in preparation for Windows 7? With the upcoming release of Windows 7, one of the newly touted features is the Jump Lists, with their automatic population of most recently used items. Supposedly, if you've been 'properly' recording these most recently used i...
{ "language": "en", "url": "https://stackoverflow.com/questions/437212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Is there any way to run both PHP and ASP in the same server running IIS? Very direct question, i need to know if its possible and maybe where to start reading about that. Im a programmer with zero experience in windows servers and a client is asking if we can deliver in their windows boxes(and no they wont let us us...
{ "language": "en", "url": "https://stackoverflow.com/questions/437217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using the output of diff to create the patch I have something like this src/sim/simulate.cc 41d40 < #include "mem/mem-interface.h" 90,91d88 < dram_print_stats_common(curTick/500); < src/mem/physical.hh 52d51 < public: 55,56d53 < public: < 58a56,57 > public: > 61,62c60,61 < virtual b...
{ "language": "en", "url": "https://stackoverflow.com/questions/437219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: SQL Server Index Dependency I'm considering dropping an index from a table in a SQL Server 2005 instance. Is there a way that I can see which stored procedures might have statements that are dependent on that index? A: First check if the indexes are being used at all, you can use the sys.dm_db_index_usage_stats DM...
{ "language": "en", "url": "https://stackoverflow.com/questions/437225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why does .exe refuse to stop? I've "inherited" a legacy C#/C++ program that I have to debug. The current problem is that the .exe won't stop after I close the program, i.e. it still shows up in Task Manager. This is a problem, because it won't let me restart the program, because only one instance can run. Often ki...
{ "language": "en", "url": "https://stackoverflow.com/questions/437232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Testing Frameworks for C After doing some work with Ruby, Rails, and RSpec last summer and I learned to TATFT. Now I can't write code without writing tests first. I'm taking a programming course in C next year, and I would like to learn to write C test-driven. Is it a good idea (or even possible) to do TDD with C? I...
{ "language": "en", "url": "https://stackoverflow.com/questions/437233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the best UI for selecting tags from a list of existing tags? I am using django-tagging. My model simply contains a field with a comma separated list of tags. I would like the user to be able to select tags from a list of already existing tags and also allow the user to add tags. Still resulting a comma-separ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Version control for version control? I was overseeing branching and merging throughout the last release at my company, and a number of times had to modify our Subversion pre-commit hooks to enforce different requirements on check-in comments and such. I was a bit nervous every time I was editing those files, because...
{ "language": "en", "url": "https://stackoverflow.com/questions/437247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Friend scope in C++ If I have three classes, A, B, C. A and B are friends (bidirectionally). Also, B and C are friends (bidirectionally). A has a pointer to B and B has a pointer to C. Why can't A access C's private data through the pointer? Just to clarify: This is a pure theoretical C++ language question, not a de...
{ "language": "en", "url": "https://stackoverflow.com/questions/437250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Why won't my PHP app send a 404 error? if (strstr($_SERVER['REQUEST_URI'],'index.php')) { header('HTTP/1.0 404 Not Found'); } Why wont this work? I get a blank page. A: if (strstr($_SERVER['REQUEST_URI'],'index.php')){ header('HTTP/1.0 404 Not Found'); echo "<h1>404 Not Found</h1>"; echo "The page ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "141" }