text
stringlengths
8
267k
meta
dict
Q: Dynamically Generated Datatable for Google's Annotated Time Line I want to use Google's Annotated Time Line Visualization. It is very easy to make this work by manually adding the lines for column & row data. This is all done through attributes of google.visualization.DataTable(). I would like to update this data t...
{ "language": "en", "url": "https://stackoverflow.com/questions/288584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I specify in my ccnet config file how to do daily builds? How do I specify in my ccnet config file how to do daily builds? A: You set up a scheduleTrigger: <triggers> <scheduleTrigger time="23:30" /> </triggers> would run that project every night at 11:30pm
{ "language": "en", "url": "https://stackoverflow.com/questions/288600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Mysql throwing query error yet finishing query just fine-why? I am getting Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in *filename* on line 81 While running a query to build a chart. The query gets data from the mysql db and uses it to build the chart. Usually, I get thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/288603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.Net MVC Output Caching: The directive or the configuration settings profile must specify the 'varyByParam' attribute I encountered the above error message after applying the OutputCache attribute on ActionResult methods with no input parameters - why would I use VaryByParams in this case? Is this a bug in ASP.Ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/288608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Best/Easy way to set up a quick booting Linux Hopefully this still falls within StackOverflow's umbrella! I'm looking to create a quick boot linux laptop for my wife. All it really needs is to be able to do is browse the internet (with flash and video etc.). Are there any distros that are made for this, or any guide...
{ "language": "en", "url": "https://stackoverflow.com/questions/288609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to increase the max upload file size in ASP.NET? I have a form that excepts a file upload in ASP.NET. I need to increase the max upload size to above the 4 MB default. I have found in certain places referencing the below code at msdn. [ConfigurationPropertyAttribute("maxRequestLength", DefaultValue = )] None o...
{ "language": "en", "url": "https://stackoverflow.com/questions/288612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "267" }
Q: How to build a PHP form Dynamically with OOP? How would I go about creating a real world form creation class that I can use to display a new form with fields of different types, as how many fields I want, I can use drop downs and I can do all of this by using OOP? A: To be honest I wouldn't roll my own, considering...
{ "language": "en", "url": "https://stackoverflow.com/questions/288614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: .NET Communications Component I'm looking for a component for C#.NET 2008 Professional that is capable of doing the majority of the network communications work that is required of our application so our programmers don't have to. This component should function similarly to the way RealThinClient (RTC) does. The com...
{ "language": "en", "url": "https://stackoverflow.com/questions/288618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Select on collection - C# Say I have a sql query SELECT fname, lname, dob, ssn, address1, address2, zip, phone,state from users Now say the records are now either in dictionary base or a strongly typed collection. I have a grid view control and i want to bind it to my collection but I only want to display fname, l...
{ "language": "en", "url": "https://stackoverflow.com/questions/288619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What GOOD tools are available for generating ERD from a SQL Server Database? I am trying to generate an Entity Relationship Diagram from an existing MS SQLServer 2005 database. What tools are available? Specifically,I am not only interested in ERD's more directly I am looking for a tool to help quickly learning and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/288620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: What does the quote "An extra level of indirection solves every problem" mean? What does the quote "Level of Indirection solves every Problem" mean in Computer Science? A: Generally it means that by increasing the level of abstraction one can make the problem easier to understand/resolve. Be careful with your abstr...
{ "language": "en", "url": "https://stackoverflow.com/questions/288623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: Remove extra white space from first page of SQL Server Reporting Services report I am using SQL Server Reporting Services 2008 (though this seems to be an issue for me in 2005 also). I have a report that has one page per customer (i.e. paged on customerId). The odd thing I'm seeing is that the first report (i.e. f...
{ "language": "en", "url": "https://stackoverflow.com/questions/288628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL: Get all posts with any comments I need to construct some rather simple SQL, I suppose, but as it's a rare event that I work with DBs these days I can't figure out the details. I have a table 'posts' with the following columns: id, caption, text and a table 'comments' with the following columns: id, name, tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/288637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does the SQL Server 2008 search problem affect SharePoint search? Does anyone know if the problems that have been affecting Stack Overflow with regards to SQL Server 2008 Full Text Search performance have implications for the search in SharePoint? As far as I understand it SharePoint search uses SQL Server full text...
{ "language": "en", "url": "https://stackoverflow.com/questions/288663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you hook up a Module thats loaded dynamically in the PureMVC framework for ActionScript 3 I'm using the PureMVC framework on a FlexBuilder 3 project. I have already hooked up the ApplicationFacade and have executed simple commands successfully. I have a ModuleLoader in my entry point Application.mxml and I s...
{ "language": "en", "url": "https://stackoverflow.com/questions/288673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fade an NSSound object I've written a cheap & cheerful sound board in for my Mac, and I play the various sounds with NSSound like this: -(void)play:(NSSound *)soundEffect:(BOOL)stopIfPlaying { BOOL wasPlaying = FALSE; if([nowPlaying isPlaying]) { [nowPlaying stop]; wasPlaying = TRUE;...
{ "language": "en", "url": "https://stackoverflow.com/questions/288687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the pros + cons of Link-Time Code Generation? (VS 2005) I've heard that enabling Link-Time Code Generation (the /LTCG switch) can be a major optimization for large projects with lots of libraries to link together. My team is using it in the Release configuration of our solution, but the long compile-time is...
{ "language": "en", "url": "https://stackoverflow.com/questions/288691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Is it correct to inherit from built-in classes? I want to parse an Apache access.log file with a python program in a certain way, and though I am completely new to object-oriented programming, I want to start doing it now. I am going to create a class ApacheAccessLog, and the only thing I can imagine now, it will be...
{ "language": "en", "url": "https://stackoverflow.com/questions/288695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Get the position of a div/span tag Can someone show me how to get the top & left position of a div or span element when one is not specified? ie: <span id='11a' style='top:55px;' onmouseover="GetPos(this);">stuff</span> <span id='12a' onmouseover="GetPos(this);">stuff</span> In the above, if I do: document.getEleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/288699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "119" }
Q: How do I extend infix and stack priorities to additional operators? How would the infix and stack priorities be extended to include the operators <, >, <=, >=, ==, !=, !, &&, and ||? When parsing an infix expression, for example: P + (Q – F) / Y#, each symbol has a priority which is relevant to their order of operat...
{ "language": "en", "url": "https://stackoverflow.com/questions/288704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is the standard (or best supported) big number (arbitrary precision) library for Lua? I'm working with large numbers that I can't have rounded off. Using Lua's standard math library, there seem to be no convenient way to preserve precision past some internal limit. I also see there are several libraries that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/288707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Checking if a variable is defined? How can I check whether a variable is defined in Ruby? Is there an isset-type method available? A: This is useful if you want to do nothing if it does exist but create it if it doesn't exist. def get_var @var ||= SomeClass.new() end This only creates the new instance once. Aft...
{ "language": "en", "url": "https://stackoverflow.com/questions/288715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "605" }
Q: Faster MD5 alternative? I'm working on a program that searches entire drives for a given file. At the moment, I calculate an MD5 hash for the known file and then scan all files recursively, looking for a match. The only problem is that MD5 is painfully slow on large files. Is there a faster alternative that I can us...
{ "language": "en", "url": "https://stackoverflow.com/questions/288732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Post build visual studio step not being called at all The long of it is I built an installer in visual studio that gave me this cheery error when I tried to use the program: Retrieving the COM class factory for component with CLSID {EC10E7E8-797E-4495-A86D-3E9EADA6D5BB} failed due to the following error: 8...
{ "language": "en", "url": "https://stackoverflow.com/questions/288735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generate random numbers uniformly over an entire range I need to generate random numbers within a specified interval, [max;min]. Also, the random numbers should be uniformly distributed over the interval, not located to a particular point. Currenly I am generating as: for(int i=0; i<6; i++) { DWORD random = rand...
{ "language": "en", "url": "https://stackoverflow.com/questions/288739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "116" }
Q: Strange jQuery AJAX Firefox Issue -- Page Randomly Won't Finish Downloading I have this strange issue with my web app. You see, I'm using jQuery with the Forms API and doing $('#MyForm').ajaxSubmit(api parms and callback function goes here). Randomly when I do this, however, and only on Firefox, the page load icon s...
{ "language": "en", "url": "https://stackoverflow.com/questions/288752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Print from a windows App - data from an Oracle DB on Linux We have an Oracle DB running on Linux. When data is ready to report, a value is placed in a table in the DB. Presently an app is scheduled to run every 10 seconds to check for the value and if it's there it prints out the report. NOT prety. How can I make t...
{ "language": "en", "url": "https://stackoverflow.com/questions/288755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How To Identify Email Belongs to Existing Thread or Conversation We have an internal .NET case management application that automatically creates a new case from an email. I want to be able to identify other emails that are related to the original email so we can prevent duplicate cases from being created. I have ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/288757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Rich interaction in Java/JSP web app I'm writing a website in JSP using Struts and Hibernate. I'm looking for a way to implement a rich UI where you can have more than just buttons. For examples, drag and drops, drop down lists that updates itself in real time as you type more letters out etc. Is there a way to use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/288761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: STL::Map - Walk through list or use find? Say I have a method that needs to pull 8 values from a map with 100 elements in it. Which do you think would be preferable: Walk in a for loop from begin to end once, pulling the elements out by switching on the key? Or using find 8 times to get those values? A: Walking the...
{ "language": "en", "url": "https://stackoverflow.com/questions/288775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MVC actions, should I create 2 actions for logging in? In asp.net mvc, I want to create a action for login. So this is how I am doing it: * *create a action/view named login that simply displays the view. *create another action, named login2 that will be the page that handles the form post and checks the databas...
{ "language": "en", "url": "https://stackoverflow.com/questions/288779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does C# optimize the concatenation of string literals? For instance, does the compiler know to translate string s = "test " + "this " + "function"; to string s = "test this function"; and thus avoid the performance hit with the string concatenation? A: Yes - You can see this explicitly using ILDASM. Example: He...
{ "language": "en", "url": "https://stackoverflow.com/questions/288794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: How to use terminal services programmatically I want to access remote server using my program (C# .NET) and execute there a program in the context of connected user, just like using Remote Desktop. I don't want just run a program using some user account(like RunAs), but to have a separate execution session like Remo...
{ "language": "en", "url": "https://stackoverflow.com/questions/288796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does this regular expression kill the Java regex engine? I have this naive regex "<([\s]|[^<])+?>" (excluding the quotation marks). It seems so straightforward but it is indeed evil when it works against the below HTML text. It sends the Java regular expression engine to an infinite loop. I have another regex (...
{ "language": "en", "url": "https://stackoverflow.com/questions/288800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How Does MSTEST/Visual Studio 2008 Team Test Decide Test Method Execution Order? I was under the impression that the test methods in a unit test class would be executed in the order that they appear in the class file. Apparently this is not true. It also doesn't appear to be purely based off of alphabetical order ei...
{ "language": "en", "url": "https://stackoverflow.com/questions/288805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Is Yield Return == IEnumerable & IEnumerator? Is yield return a shortcut for implementing IEnumerable and IEnumerator? A: Yes, it is. You can find out a lot more about it in chapter 6 of my book, C# in Depth. Fortunately chapter 6 is available for free from Manning's web site. I also have two other articles on the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/288808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Get the subdomain from a URL Getting the subdomain from a URL sounds easy at first. http://www.domain.example Scan for the first period then return whatever came after the "http://" ... Then you remember http://super.duper.domain.example Oh. So then you think, okay, find the last period, go back a word and get eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/288810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "111" }
Q: RMI server picking up an old ip address I am seeing a strange problem: I have a linux machine, installed JDK1.6 on that machine, and some business went on, and some days later had to change the IP address of the machine. and now after some months... i am trying to get some spring application to work... and it seems ...
{ "language": "en", "url": "https://stackoverflow.com/questions/288811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to repaint a parent form while a modal form is active? In Delphi 2006, I am showing a modal form. User input in that form can change data that might be displayed currently on the parent form which is the mainform. To reflect those changes I need to force a repaint of some ownerdrawn components on the mainform. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/288813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Prints pdf when page loads I have this code in my aspx page; <a href="javascript:void(0);" onclick=<% Print(); %> title="Print listings">Print</a> which presents a link to print a listings to a pdf when the user clicks on it; as you can note the script calls a function from the behind code. The problem is that when...
{ "language": "en", "url": "https://stackoverflow.com/questions/288814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use a JDBC driver from an arbitrary location I need to test a JDBC connection to a database. The java code to do that should be as simple as: DriverManager.getConnection("jdbc connection URL", "username", "password"); The driver manager will lookup the appropriate the driver for the given connection URL. How...
{ "language": "en", "url": "https://stackoverflow.com/questions/288828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How to return JSON from a 2.0 asmx web service I am using .Net framework 2.0 / jQuery to make an Ajax call to a 2.0 web service. No matter what I set the contentType to in the ajax call, the service always returns XML. I want it to return Json! Here is the call: $(document).ready(function() { $.ajax({...
{ "language": "en", "url": "https://stackoverflow.com/questions/288850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Eclipse Optimize Imports to Include Static Imports Is there anyway to get Eclipse to automatically look for static imports? For example, now that I've finally upgraded to Junit 4, I'd like to be able to write: assertEquals(expectedValue, actualValue); hit Ctrl + Shift + O and have Eclipse add: import static org.jun...
{ "language": "en", "url": "https://stackoverflow.com/questions/288861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "419" }
Q: How to code a JavaScript modal popup (to replace Ajax)? I need to replace our Ajax Modal Popup controls with a JavaScript equivalent. We use this as a simple context sensitive help type popup. I did a quick browse but didn't see quite what I was looking for. I just need some text and a simple Close button/link, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/288867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Increasing WPM - High End We've had this question already, but I want to narrow it down to already high-speed typists. The original poster had hit a barrier of 75 WPM and wanted to increase his speed. I'm at a barrier where I can reliably type around 130, and I can sometimes hit 150, probably depending on the distr...
{ "language": "en", "url": "https://stackoverflow.com/questions/288874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C#: How would you cycle through items in a listview using next and previous buttons? C#: How would you cycle through items in a listview using next and previous buttons? Background: Let's say you have 10 items in a listview. Next to the listview there are two buttons titled previos and next. Problem: How would you c...
{ "language": "en", "url": "https://stackoverflow.com/questions/288875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP: Callback on Entry/Exit of Class Methods? Is there a way I can set up callbacks on (or automataically log) method parameters, entries, and exits without making explicit calls within each method? I basically want to log this information to my logger class (which is static) without having to do it manually for eac...
{ "language": "en", "url": "https://stackoverflow.com/questions/288877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to prevent scroll on Refresh in a PropertyGrid? I'm using a PropertyGrid in a tool app to show a window to monitor an object in a remote app. Every second or so I get an update from the app with the state of any members that have changed, and I update the grid. I call Refresh() to make the changes take. This all...
{ "language": "en", "url": "https://stackoverflow.com/questions/288893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Update multiple values in a single statement I have a master / detail table and want to update some summary values in the master table against the detail table. I know I can update them like this: update MasterTbl set TotalX = (select sum(X) from DetailTbl where DetailTbl.MasterID = MasterTbl.ID) update MasterTbl s...
{ "language": "en", "url": "https://stackoverflow.com/questions/288894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Variable expansion from/within (XML) source file in Ruby I want some slightly 'dynamic' XML source files. I want some of the element values to be dynamic, or 'expandable'. I'm providing a value for this variable, from some other source. @Name = 'freezingkiwis' What I want to provide is something like this in an XM...
{ "language": "en", "url": "https://stackoverflow.com/questions/288898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I convert a string to a number in Perl? I have a string which holds a decimal value in it and I need to convert that string into a floating point variable. So an example of the string I have is "5.45" and I want a floating point equivalent so I can add .1 to it. I have searched around the internet, but I onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/288900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "98" }
Q: How to convert last 3 digits of number into 0 How to convert last 3 digits of number into 0 example 3444678 to 3444000 I can do like (int)(3444678/1000) * 1000= 3444000 But division and multiplication could be costly... Any other solution???? A: A shift trick, then: n >>= 3; n -= n % (5 * 5 * 5); n <<= 3; Is it f...
{ "language": "en", "url": "https://stackoverflow.com/questions/288942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I keep aspect ratio on scalable, scrollable content in WPF? I'm fairly new to WPF and I've come across a problem that seems a bit tricky to solve. Basically I want a 4x4 grid thats scalable but keeps a square (or any other arbitrary) aspect ratio. This actually seems quite tricky to do, which surprises me b...
{ "language": "en", "url": "https://stackoverflow.com/questions/288954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Send binary to the serial port To send a serial string character to the serial port. I would need to call WriteFile(handle, "A", strlen("A"), ...) However, what if I want to specify and send a hex or binary number? For example, I want to send WriteFile(handle, 0x41, sizeOf(0x41), ...) ? Is there a function that al...
{ "language": "en", "url": "https://stackoverflow.com/questions/288955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running Time of Random Sort How would you describe the running time of this sort, given a function sorted which returns True if the list is sorted that runs in O(n): def sort(l): while not sorted(l): random.shuffle(l) Assume shuffling is perfectly random. Would this be written in big-O notation? Or is there so...
{ "language": "en", "url": "https://stackoverflow.com/questions/288966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I use named groups in a Perl regex to get the results in a hash? Is it possible to perform a named-group match in Perl's regex syntax as with Python's? I always bind the $n values to proper names after matching, so I'd find it more convenient to do it in the regex itself if it's possible. Python does it like so:...
{ "language": "en", "url": "https://stackoverflow.com/questions/288968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Specifying return rows in LINQ2DataSet I have a requirement to extract a distinct subset of rows from a DataTable, and thought LINQ2DataSets may be a useful and clean way to do this, however it appears that it is not possible to simply identify return rows from a LINQ2DS query as follows var result = from r in fips....
{ "language": "en", "url": "https://stackoverflow.com/questions/288972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get difference between two dates in months using MySQL query? I'm looking to calculate the number of months between 2 date time fields. Is there a better way than getting the Unix timestamp and then dividing by 2 592 000 (seconds) and rounding up within MySQL? A: I prefer this way, because evryone will under...
{ "language": "en", "url": "https://stackoverflow.com/questions/288984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: Does SQLDeveloper support executing scripts? I was trying to follow some instructions today, and it starts with the comment REM In SQLPlus I manually copy in each line and execute it. That's nice, I don't have SQLPlus, I have SQLDeveloper. The lines that were pasted in were of the type: @\\server\dir\dir\dir\c...
{ "language": "en", "url": "https://stackoverflow.com/questions/288988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: C# casts differing between VS2008 and IIS6 I have a piece of C# code that add the values of an enum to a drop down list by type. It requires that it be called with T1 being an enum type, although I cannot specify this as a type constraint because enums are special case in which this isn't possible. This is not a maj...
{ "language": "en", "url": "https://stackoverflow.com/questions/288997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sandy 3D: Creating a Room with Physics I was wondering if anyone can help me get started with creating a room in Sandy 3D. I know I can generate the planes, but I am unsure as to how to implement simple physics (i.e. the player cannot walk through a wall). Is there a simple way to do this, or should I look into some...
{ "language": "en", "url": "https://stackoverflow.com/questions/288998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does MySQL index NULL values? I have a MySQL table where an indexed INT column is going to be 0 for 90% of the rows. If I change those rows to use NULL instead of 0, will they be left out of the index, making the index about 90% smaller? A: http://dev.mysql.com/doc/refman/5.0/en/is-null-optimization.html MySQL can...
{ "language": "en", "url": "https://stackoverflow.com/questions/289001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: How to raise custom event from a Static Class I have a static class that I would like to raise an event as part of a try catch block within a static method of that class. For example in this method I would like to raise a custom event in the catch. public static void saveMyMessage(String message) { try { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: Setting Response.ContentType="image/tiff" in asp.net 1.1 and IE7 doesn't display tif files I have an Asp.Net 1.1 application that uses the following code to write out an image file to a pop up web page. Response.ContentType="image/tiff" 'Only for Tif files Dim objStream As Object objStream = Server.Cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/289003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ObjectDataSource and Collection of Objects I have a GridView that I would like to bind to an ObjectDataSource. I have a ReadOnlyCollection of business objects that have many properties. I only to need to display four of these properties in the GridView. I haven't used the ObjectDataSource control before, so how c...
{ "language": "en", "url": "https://stackoverflow.com/questions/289004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you instantiate a SPWeb Object from a console app? I am trying to write a console app that simply lists the number of lists at the sharepoint root. I tried doing it by using the following code, but the object SPContext.Current is null. Any ideas of how to get the web object? SPWeb web = SPContext.Current.Si...
{ "language": "en", "url": "https://stackoverflow.com/questions/289006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# List<> Sort by x then y Similar to List<> OrderBy Alphabetical Order, we want to sort by one element, then another. we want to achieve the functional equivalent of SELECT * from Table ORDER BY x, y We have a class that contains a number of sorting functions, and we have no issues sorting by one element. For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "89" }
Q: JDBC: Can I share a connection in a multithreading app, and enjoy nice transactions? It seems like the classical way to handle transactions with JDBC is to set auto-commit to false. This creates a new transaction, and each call to commit marks the beginning the next transactions. On multithreading app, I understand ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: HTML hyperlink with mouse over image I am having a Html hyperlink. I need to link this hyperlink to another page.When I place the mouse over the link. It should show the image. how to do this A: That depends on where you need to display the image. If you are looking for something along the lines of an icon next to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Better TreeView for Windows Forms - .NET 3.5 Is there a better free TreeView control that exists for Visual Studio 2008 / .NET 3.5? I believe I need something a little more powerful than the out-of-the box version. I'm not exactly sure for what yet but I thought I'd ask quickly before I get too far in to my project....
{ "language": "en", "url": "https://stackoverflow.com/questions/289033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: receiving data over a python socket I'm making a program that retrieves decently large amounts of data through a python socket and then immediately disconnects when the information is finished sending. But I'm not sure how to do this All the examples on the web are of tcp clients where they have while 1: data = s...
{ "language": "en", "url": "https://stackoverflow.com/questions/289035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MS Entourage 2008 and quoted-printable encoding I need to send an HTML email. All email clients (Outlook, Thunderbird ..) but Entourage can receive and read this email without major problems. Entourage, though is breaking the content and displays just few lines from the beginning. My guess is that it has something t...
{ "language": "en", "url": "https://stackoverflow.com/questions/289055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you get the current user object in Joomla 1.5? In Joomla 1.0, the current User object was stored in a global variable called $my. This doesn't exist in Joomla 1.5 any more - how do I get that object? Also, how can you tell if the user hasn't logged in? A: Information found at http://docs.joomla.org/Accessing...
{ "language": "en", "url": "https://stackoverflow.com/questions/289065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In Visual Studio 2008, how can I add a 'using blah.myblah;' to all new page codebehinds? Is there a way to modify the default template for new pages so that it includes my custom 'using' statements? A: From Steve's blog, it suggests that you edit the Class.cs file located in: %Program Files%\Microsoft Visual Studio...
{ "language": "en", "url": "https://stackoverflow.com/questions/289071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I pass a pointer to an array using p/invoke in C#? Example C API signature: void Func(unsigned char* bytes); In C, when I want to pass a pointer to an array, I can do: unsigned char* bytes = new unsigned char[1000]; Func(bytes); // call How do I translate the above API to P/Invoke such that I can pass a poi...
{ "language": "en", "url": "https://stackoverflow.com/questions/289076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Do you HtmlEncode during input or output? When do you call Microsoft.Security.Application.AntiXss.HtmlEncode? Do you do it when the user submits the information or do you do when you're displaying the information? How about for basic stuff like First Name, Last Name, City, State, Zip? A: You should only encode o...
{ "language": "en", "url": "https://stackoverflow.com/questions/289077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET MVC Editing A Collection Best Practices - Your Opinion Given the following class, what is your opinion on the best way to handle create/edit where Attributes.Count can be any number. public class Product { public int Id {get;set;} public string Name {get;set;} public IList<Attribute> Attributes {get;s...
{ "language": "en", "url": "https://stackoverflow.com/questions/289082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Applications development with D language For those who had developed applications with D, * *which libraries did you use to build your application? *those libraries were good documented? *did you use Tango? *do you feel that D is ready to build big applications? *which IDE did you use? Descent maybe? A: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How do I declare the return type of a SOAP method to be a map (in its WSDL)? I am adding a method to a SOAP service. I would like this method to be able to return a map. More specifically it is map of lists (vectors/arrays). How would I capture this in its WSDL? A: Here's and XSD type for a regular map from string ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I execute a command every time after ssh'ing from one machine to another? How do I execute a command every time after ssh'ing from one machine to another? e.g ssh mymachine stty erase ^H I'd rather just have "stty erase ^H" execute every time after my ssh connection completes. This command can't simply go in...
{ "language": "en", "url": "https://stackoverflow.com/questions/289092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Does Request.IsMvcAjaxRequest() method return true for requests originating from Ajax.ActionLink() click? I have a controller action that is being executed by a link that was created using 'Ajax.ActionLink()' the problem is that I can't tell in my action that the request is an AJAX request because Request.IsMvcAjaxR...
{ "language": "en", "url": "https://stackoverflow.com/questions/289093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Paging on Gridview control VS-2008 If you followed my previous post var filteredUser = from U in collection select new {U.fname,U.lname}; gridView.DataSource = filteredUser; gridView.DataBind(); Now I am trying to do this: * *Format the column names based o...
{ "language": "en", "url": "https://stackoverflow.com/questions/289097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to work around a potential performance issue when using a Grails hasMany relation? Given the following domain classes: class Post { SortedSet tags static hasMany = [tags: Tag] } class Tag { static belongsTo = Post static hasMany = [posts: Post] } From my understanding so far, using a hasMany will r...
{ "language": "en", "url": "https://stackoverflow.com/questions/289098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there any static duck-typed languages? Can I specify interfaces when I declare a member? After thinking about this question for a while, it occurred to me that a static-duck-typed language might actually work. Why can't predefined classes be bound to an interface at compile time? Example: public interface IMyInt...
{ "language": "en", "url": "https://stackoverflow.com/questions/289106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Convert this Scheme function into a different form? So here's one way to define a sum as a message passing object: (define (make-sum . exps) (let ((len (length exps))) ;; first handle variable length operands (cond ((= len 0) (make-number 0)) ;; base case for addition ((= len 1) (car exps)) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a Request.IsMvcAjaxRequest() equivalent for jQuery? I prefer to use jQuery with my ASP.NET MVC apps than the Microsoft Ajax library. I have been adding a parameter called "mode" to my actions, which I set in my ajax calls. If it is provided, I return a JsonViewResult. If it isn't supplied, I assume it was a...
{ "language": "en", "url": "https://stackoverflow.com/questions/289108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What's a good tool to run SQL scripts against any database? Currently I have a custom tool which generates vanilla-SQL (only using standard SQL), from our Data-models that sets up database schemas and initial data for our new databases, and do version patches, etc... This part is all fine and dandy right now. Howeve...
{ "language": "en", "url": "https://stackoverflow.com/questions/289117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I programmatically change the line colour for a series in a chart in Excel 2007 I have a chart with a series that denotes a large set (1000's) of discrete measurements. Some of these are bad measurements and I want to colour the line for the series based on another set of data that describes how accurate the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When is it time to create a 2nd database? I have a mysql database which has grown to over 200 tables in it. I know this isn't a performance problem, but most admin tools I have aren't organized well enough to manage this number of tables easily, and I am thinking of putting some (new) tables into a 2nd database just...
{ "language": "en", "url": "https://stackoverflow.com/questions/289123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: use batch file to call another batch file from different comp Is it possible to use batch file (for XP) to call another batch file from different computer? if yes, how identify the target computer? Is it by IP comp ID? A: You can do this using psexec from Sysinternals/Microsoft. The computer name can be specified e...
{ "language": "en", "url": "https://stackoverflow.com/questions/289127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Studio 2008 .dll disappearing issues Ok, so I have VS 2008 and SVN. When I "rebuild all" a handful of my .dll's disappear from my bin folder. I have these .dll's in a library folder and that's where I am referencing them from. When I go to publish the app the publish fails, I think they are related. When I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: General Question: Java has the heap and local stack. Can you access any object from the heap? I was really looking at the differences between pass by value and how Java allocates objects and what java does to put objects on the stack. Is there anyway to access objects allocated on the heap? What mechanisms does jav...
{ "language": "en", "url": "https://stackoverflow.com/questions/289138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How can I pass a reference parameter (&) (not pointer) using p/invoke in C#? I have a C++ API prototype void Func(int& size); How can I translate it to P/Invoke in C#? From what I know, if I use public static extern Func(ref int size); , the function will receive a pointer to the int instead of the value. A: (O...
{ "language": "en", "url": "https://stackoverflow.com/questions/289157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Capturing linebreaks (newline,linefeed) characters in a textarea I have a form with a <textarea> and I want to capture any line breaks in that textarea on the server-side, and replace them with a <br/>. Is that possible? I tried setting white-space:pre on the textarea's CSS, but it's still not enough. A: The nl2br(...
{ "language": "en", "url": "https://stackoverflow.com/questions/289159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Is it worth porting a small C# "engine" to C++ or similar? So, following a tutorial I found on MSDN I've created what you might call an "engine" using DirectX and C#. I haven't seen a lot of this sort of thing (Personally, that is) done in C# and the majority seem to favour C/C++ so I'm curious as to whether using C...
{ "language": "en", "url": "https://stackoverflow.com/questions/289162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I use Html.ValidationSummary with Ajax.BeginForm? I have an AJAX form that I am creating in my MVC project. If the form is submitted using normal browser function and a page refresh occurs I get validation information rendered in the form (the built in MVC validation based on ViewData.ModelState). Is there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What's the point of ActionResult return type? What is the point of an action returning ActionResult? A: Returning an ActionResult instead of "just doing whatever the ActionResult is doing" (i.e. using Response.Redirect directly or trying to render out a View through the Response OutputStream directly) gives you one...
{ "language": "en", "url": "https://stackoverflow.com/questions/289171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Google AppEngine App Version Is it possible to fetch the current application version programmatically for use in urls with far future expires header? For example: <link rel="stylesheet" href="app.js?v=1.23" /> Should be automatically updated to: <link rel="stylesheet" href="app.js?v=1.24" /> In order to do so I ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/289174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How is duck typing different from the old 'variant' type and/or interfaces? I keep seeing the phrase "duck typing" bandied about, and even ran across a code example or two. I am way too lazy busy to do my own research, can someone tell me, briefly: * *the difference between a 'duck type' and an old-skool 'variant...
{ "language": "en", "url": "https://stackoverflow.com/questions/289176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: PDFKit framework available on the iPhone OS? I'm curious to know whether the PDFKit framework is available for use within the iPhone OS, in order to build a PDF reader a bit more sophisticated than the one available by simply opening PDF documents with UIWebView. Just wondering if this is an option or not. A: Grab ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }