text stringlengths 8 267k | meta dict |
|---|---|
Q: What do you consider before refactoring code? I've got an application that just shipped. Since I wrote it, I've learned about amfphp and propel. Both would be 'nice' to be used in the application but I can't say that it would be required at this point.
What types of things do you consider before you refactor code?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Restricting a monad to a type class In Haskell, is there a way to restrict a monad M a so that a satisfy a type class constraint?
I am translating the probabilistic modeling example from F# to Haskell. However, in Haskell, I omitted support because it would change data Distribution a to data (Ord a) => Distribution ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Java: split a List into two sub-Lists? What's the simplest, most standard, and/or most efficient way to split a List into two sub-Lists in Java? It's OK to mutate the original List, so no copying should be necessary. The method signature could be
/** Split a list into two sublists. The original list will be modified... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Get an instance of a class in a running process Using C#, is there any way to hook into a running application (my own app) and get an instance of a class? As it stands right now I'm doing this
// Find the IAutomation interface.
Type[] types = assembly.GetTypes();
foreach (Type type in types)
{
if (!type.IsAbst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Time slicing in Oracle/SQL I have a large-ish Oracle table containing rows representing units of work, with columns for start time and end time in addition to other meta-data.
I need to generate usage graphs from this data, given some arbitrary filtering criteria and a reporting time period. E.g., show me a graph o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET MVC custom routing for search Here is my scenario. For the example lets say that I need to return a list of cars based on a search criteria. I would like to have a single View to display the results since the output will be the same, but I need several ways of getting there. For instance, I may have a For... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How do I write ints out to a text file with the low bits on the right side (Bigendian) By default the BinaryWriter class writes int values with the low bits on the left (e.g. (int)6 becomes 06 00 00 00 when the resulting file is viewed in a hex editor). I need the low bits on the right (e.g. 00 00 00 06).
How do I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Clicking checkbox causes onCheckedChanged to fire twice I have a GridView with a TemplateField with a checkbox. My goal is to capture the onclick event using autopostback and setting a database flag. My only problem is that the event fire's twice. The first time The Checkbox (In the sender parameter) holds the click... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JNA causing EXCEPTION_ACCESS_VIOLATION? My Java UI unexpectly terminated and dumped an hs_err_pid file. The file says "The crash happened outside the Java Virtual Machine in native code." JNA is the only native code we use. Does anyone know of any know issues or bugs with any JNA version that might cause this. I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best SEO practice for "Under Construction" site? We have a domain which we are already blogging on in:
blog.domain.com
There are obviously pointers to the actual website at www.domain.com. I already see it in the google index but I'm worried google will think poorly of it when we launch because it says "Under Const... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to diagnose Access Violation on application exit I have an application that I'm trying to debug a crash in. However, it is difficult to detect the problem for a few reasons:
*
*The crash happens at shutdown, meaning the offending code isn't on the stack
*The crash only happens in release builds, meaning symb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: non-graphical 3-way merge tool I currently use RCS' merge command to do 3-way merges, but one thing has always annoyed me about it. If I use the -A option, the same change made in both files shows up as a conflict:
<<<<<<< file1
file1 line 1
||||||| orig
orig line 1
=======
file2 line 1
>>>>>>> file2
orig line 2
<<<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why I cannot cast oracle BLOB from native java Blob I am reading file from ResultSet and it's required to save file into Oracle Database.
...
ResultSet rs = ...
java.sql.Blob myfile = rs.getBlob("field")
java.io.OutputStream os = ((oracle.sql.BLOB) myfile).getBinaryOutputStream();
I get get this error message
java.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: deeply nested RESTful resources in Rails I have this structure in my app:
USER has_one :publicprofile, :privateprofile
PUBLICPROFILE has many :emails, :phonenumbers
PRIVATEPROFILE has many :adresses, :creditcards
I would like to know how to go about having a profile page for the user where I can update his nested re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I skip an ActionFIlter in ASP.NET MVC? I have an action filter attribute on a base class all my controllers inherit from. I want it (the filter) to work on all methods EXCEPT one. Can it be done? How?
A: This is a little hackish, but you could test for the action in the filter's OnActionExecuting method, like s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Determine which ASP.NET button was clicked using Javascript What is the best way to determine which ASP.NET button was clicked on a single page using JavaScript?
A: Add a client-side onclick handler to each button pointing to the same function?
e.g.
<button onclick="myHandler(this.ID)" />
A: I just the set the On... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can you nest html forms? Is it possible to nest html forms like this
<form name="mainForm">
<form name="subForm">
</form>
</form>
so that both forms work? My friend is having problems with this, a part of the subForm works, while another part of it does not.
A: It is possible to achieve the same result as nest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "543"
} |
Q: What are some large .NET projects with source code? I'd like to find a few large .NET projects that have public source code available.
A: For winforms development, SharpDevelop.
A: The .NET framework.
A: Paint.net.
(Having said that, I now can't find the source download location :}
A: http://www.codeplex.com/ - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Any difference between "current row" and "0 preceding/following" in windowing clause of Oracle analytic functions? Some of Oracle's analytic functions allow for a windowing clause to specify a subset of the current partition, using keywords like "unbounded preceding/following", "current row", or "value_expr precedin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .Net WebServices and out/ref WebMethod arguments I've received some documentation from one of our suppliers for a webservice they're publishing and they're very specific that on one of their WebMethods that an argument has the out modifier(? not sure if that's the right descriptor) for instance consider the followin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: T-SQL Puzzler - Crawling Object Dependencies This code involves a recursive Stored Procedure call and a "not so great" method of avoiding cursor name collision. In the end I don't care if it uses cursors or not. Just looking for the most elegant approach. I'm mainly going to use it as a simple method to track down S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Returning Array Fragments I need to get array fragments from an array. I'm sick of using Array.Copy().
new ArraySegment(..).Array returns the original [full] array. The one below is what I came up with but I feel it's pretty lame. Is there a better way to do this?
class Program
{
static void Main(string[] ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Easiest way to ensure same font and font size in labels, input boxes and text areas I have a page where I combine labels, input boxes and text areas to display some content.
I would like all of them to have the same font-family and font-size.
I have played with the font-family: inherit style but this doesn't seem t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Good pattern or technique for webforms with 100s of fields At my job, I have to implement web forms for loan applications with sometimes up to a hundred different input fields, and then save the application into the database for later retrieval.
The person whom I replaced created a sql table with 100s of columns whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Logging live search misses I have a live search on my help page that searches our help database and returns the relevant results. I figure that a good way to decide what needs more documentation would be to log searches that return no results to our database.
Normally, this would be really simple, but that fact tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Progress Database 4GL Does anyone know where I can get some samples/resources on 4GL language for Progress Database OTHER THAN THE PROGRESS DATABASE WEBSITE?
Thanks
A: http://www.peg.com
http://www.oehive.org
http://www.progresstalk.com
http://www.psdn.com (maintained by Progress Software)
A: Here's a copy of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Oracle 9i: Synonymed Table Does Not Exist? I've created a package that contains a stored procedure that I plan to invoke from a separate application. The stored procedure will return a sorted list of all the views and tables in the schema. To do that, it performs a simple select on the DBA_TABLES and DBA_VIEWS synon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting ENTER to work with a JSpinner the way it does with a JTextField First, to make my job explaining a bit easier, here's some of my code:
JSpinner spin = new JSpinner();
JFormattedTextField text = getTextField(spin);
text.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: While reading a file (ifstream), is there any way to direct it to make a new line? While reading a file (ifstream), is there any way to direct it to make a new line?
For instance, I would like for THIS to happen:
myfile>>array[1]>>array[2]>>endl;
Obviously, the "endl" just isn't allowed. Is there another way to do t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Font for mac osx that is as readable and compact as the default xterm (X11) font The font used in xterms is extremely compact yet readable. What font is that? The closest I've found that I can use in other other applications is DejaVu Sans Mono or Bitstream Vera Sans Mono. Those are as compact as xterms verticall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Assembly reference error on web site with same signature I've more than one ASP.NET 2.0 web site on IIS 6 and Windows Server 2003.
Each site reference some DLLs: design, logic and so on.
Each site is on a different ApplicationPool with default configuration about recycling techniques.
Every DLL is strong named (not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Identify process using a file I have been trying to figure out how to programmatically identify the process that has a lock on a particular file. I've searched through the Win32 API and WMI, but so far I can't find anything. I know it's possible - Sysinternals is able to list every resource accessed/locked by ever... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: PHP join help with two tables I am just learning php as I go along, and I'm completely lost here. I've never really used join before, and I think I need to here, but I don't know. I'm not expecting anyone to do it for me but if you could just point me in the right direction it would be amazing, I've tried reading ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is F# really better than C# for math? Unmanaged languages notwithstanding, is F# really better than C# for implementing math? And if that's the case, why?
A: I'm from a maths background, and have looked at F#, but I still prefer C# for most purposes. There are a couple of things that F# makes easier, but in general... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: search integration I am working on a website that currently has a number of disparate search functions, for example:
*
*A crawl 'through the front door' of the website
*A search that communicates with a web-service
*etc...
What would be the best way to tie these together, and provide what appears to be a unifie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I setup NHibernate with Visual Studio and Firebird? I'm trying to set up a small app to experiment with NHibernate in visual studio but I'm not getting far.
The error I get is: "Could not find the dialect in the configuration".
I've tried specifying settings in both app.config and hibernate.cfg.xml but neith... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Module Loading with ModuleManager in Prism This question was also posted on Prism's site on Codeplex.
I am a little lost on loading modules on demand, and I hope you guys can enlighten me. I am using v2 #7.
Here's what I want to accomplish:
1) I have 2 regions - one for buttons that instantiate the modules (MenuRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Opinions on IdeaBank? I'm a PHP developer who is being considered for a job implementing IdeaBank, idea management software written in .net. The software appears to have been selected based on its features and clients. The OpenDNS community appears to be using it.
Is anyone familiar with this software? What's it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a Perl DBI driver for SQL Server Compact 3.5? Maybe I'm not looking in the right places but I'd like to use SQL Server Compact 3.5 as a back-end for an existing Perl app that uses DBI (on Windows).
I'm looking specifically at SQL Server Compact 3.5 because I'd like to use the existing support for it in MS S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What happens to a SQL Server 2005 table with an identity (int) that goes over maxint? For example, will SQL Server warn you or does it just die?
A: SQL Server 2005 will throw the following error when you overflow the IDENTITY column.
Server: Msg 8115, Level 16, State 1, Line 1
Arithmetic overflow error converting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Copy string to pointer to pointer I am using this example:
char *myData[][2] =
{{"John", "j@usa.net"},
{"Erik", "erik@usa.net"},
{"Peter","peter@algonet.se"},
{"Rikard","rikard@algonet.se"},
{"Anders","anders@algonet.se"}};
char **tableData[6];
tableData[0] = myData[0];
tableData[1] = myData[1];
tableData[2]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding a framework in Xcode Im trying to add a third party framework in Xcode but I'm getting an error that it can't be found
error: MKAbeFook/MKAbeFook.h: No Such File or Directory
I've added it in the Linked Frameworks group and added it to the Target for this project. I've also added it to a new Copy Files buil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When I press "DONE" while playing movie using MPMoviePlayerController which view will get displayed I am playing movie using MPMoviePlayerController,
I am using TableView,what happening with my application is when I press accessory button it will display detailed view and when I press cell area it will play movie t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to turn off "periodically_call_remote" I have periodically_call_remote updating a div (main_div) in my web app. This main_div contains links that the user can click that invokes an action that overwrites data within main_div.
My problem is that the timer is running on the periodically_call_remote function and ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Replicate MYSQL data from stage to dev with a script I have two versions of my application, one "stage" and one "dev."
Right now, "stage" is exposed to the real world for beta-testing.
From time to time, I want an exact replica of the data to be replicated into the "dev" database.
Both databases are on the same host... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Compiling with CodeDomProvider doesn't allow new features of C# or VB I'm compiling some C# and VB code at run time using the CodeDomProvider, CompilerInfo, and CompilerParameters. It works great, and I really like being able to add scripting support to my application, but it only seems to support .NET 2.0 syntax. F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to use Django to include CSS (here's the tricky part) from a JS file? As far as I know, there's no way to use {% include %} within a dynamic JS file to include styles. But I don't want to have to make another call to the server to download styles.
Perhaps it would be possible by taking a stylesheet a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to do search/replace in a "binary" file from the command line I have some data files to import into a database with some "unique" delimiters:
Field Separator (FS): SOH (ASCII character 1)
Record Separator (RS) : STX (ASCII character 2) +’\n’
I'd like to import the files into Postgres using the COPY command but w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using depends with the jQuery Validation plugin I've got a form with a bunch of textboxes that are disabled by default, then enabled by use of a checkbox next to each one.
When enabled, the values in these textboxes are required to be a valid number, but when disabled they don't need a value (obviously). I'm using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is Visual Studio 2010 going to look like? I have heard several podcasters (most recently the guys on DotNetRocks) say that the look and feel of Visual Studio 2010 has been completely redesigned and Visual Studio rewritten in WPF.
I have been watching some demos on channel9 of the Visual Studio 2010 CTP and the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I delete two rows that differ only by ID I have a script that did double inserts into the database with the same data. Is there a good way to do this (without scanning through, inserting every record into an array, and then deleting duplicate array entries)?
A: MySQL supports multi-table DELETE which is rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Thread Sleep in Classic ASP? I'm doing some revision on an old app that is written in classic ASP/VbScript.
It has a feature to send out an e-mail to the members of the application, but because the member list is quite large, the server rejects new e-mails after the first hundred or so are sent.
I've written some co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: CSS Ride SideBar needs to Stay Up top My right side bar isn't staying on top.
These are the two pages for example. www.cafecartel.com
and www.cafecartel.com.index2.php
Currently the way the site is written, the right side bar must be placed like this:
body id="Support"
div id="container1"
div id="container2"
div i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AjaxHelper is not working I am working on ASP.NET MVC.
in order to use AjaxHelper, I inserted two javascript files in the site.master as following.
<script src="../../Scripts/MicrosoftMvcAjax.debug.js" type="text/javascript"></script>
<script src="../../Scripts/MicrosoftAjax.debug.js" type="text/javascript"></script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: bash script to show compatible commands based on "Windows-speak" Problem: Customer X is a Windows user who wants to be able to trigger pre-packaged bash commands by using mnemonic keywords or "tag hints" when she is logged in to her RedHat box via shell.
Example: Customer X logs into host using ssh and wants to do s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Diagnosing "% Time in Garbage Collection" Problems I have an ASP.NET 2.0 application that spends an excessive amount of time in garbage collection, over 40%, when load tested on a production grade server (dual quad-core, 4g).
I have been trying to isolate the problem but it is a large, complex code base making for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google gadget Unique ID How to get unique Google Gadget ID from a gadget added to a iGoogle website, with Javascript?
A: If you are trying to access the ID of a gadget from JavaScript within the gadget itself, you can use __MODULE_ID__. This is replaced automatically by the iGoogle server with the actual module ID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I handle Security between two Grails apps? If I have two separate Grails apps running on the same app server (Tomcat/Glassfish), how do I allow the user to log into the first app then have him authenticated for the second app so he's not prompted when he goes to that app?
A: IMO the best way to go for it is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Lets draw a spider I am new to c# and VS, but I am getting it. The application is this: A program in which the end result will draw a spider from options in which the user will define. Lets say there are 100s of options: size and number of body parts, color, connections points to the body, etc.
First question: Shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: traversing object graph from n-tier client I'm a student currently dabbling in a .Net n-tier app that uses Nhibernate+WCF+WPF.
One of the things that is done quite terribly is object graph serialisation, In fact it isn't done at all, currently associations are ignored and we are using DTOs everywhere.
As far as I ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Fade in each element - one after another I am trying to find a way to load a JSON page to display my content, which I currently have. But I am trying to fade in each element one after another? Is anyone familiar with a way to do that?
Fade in each element with a slight delay?
Here is an example of my code, I am usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: How do I parse a string to a float or int?
*
*How can I convert a str to float?
"545.2222" → 545.2222
*How can I convert a str to int?
"31" → 31
For the reverse, see Convert integer to string in Python and Converting a float to a string without rounding it.
Please instead use How can I read inputs a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2680"
} |
Q: How to implement One Definition Rule This post reference to the One Definition Rule.
Wikipedia is pretty bad on explaining how to implement it
Where can I find good ressources about guidelines to follow in C++ .NET?
A: The one definition rule basically means that a variable/function can only be located at one place... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript iPhone Scroll Effect in an iFrame / Javascript Mouse Acceleration I'm trying to recreate the iPhone flick / scroll event in a window using JavaScript.
Starting with JQuery, I'm measuring the mouse's acceleration and offset during click - drag - release events using a timer:
var MouseY = {
init: funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to get the path to the current template in Joomla 1.5? I'm writing a component and would like to insert images from the template folder.
How do you get the correct path to the template folder?
A: What kind of path...
On filesystem:
$templateDir = JPATH_THEMES.DS.JFactory::getApplication()->getTemplate().DS;
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: INNO: Disallow "Ignore" when file is in use I am using Inno Setup for the installer for my windows application. If a user has the application when the installer is run (eg. for an update), the installer will stop when it is unable to replace a file in use, and it allows the user to select whether to Abort, Ignore, o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you use the Apache "ScriptInterpreterSource Registry-Strict" directive? i run Apache web server on windows in order to work on some Perl CGI scripts. in production these scripts run on a linux box, and in the source code repository they all have shebangs like: #!/usr/bin/perl, but on my windows machine the sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: NHibernate not persisting collections I have a rather strange error with NHibernate. I am was having error with ISession been shared by across threads and got this resolved by supplying my own ADO.NET connection like:
IDbConnection connection = new SqlConnection(ApplicationConfiguration.ConnectionString)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how do I write this INSERT so that it works Basically I want to put "todays" year, month, day into two fields ... something like the following. Tried varients of but cant get it right
"INSERT INTO film_out (start_year, start_month, start_day), (end_year, end_month, end_day) VALUES ('$year', '$month', '$day') "
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dired copy asynchronously Is there a way to modify/tell dired to copy files asynchronously? If you mark multiple files in dired and then use 'C' to copy them, emacs locks up until every file is copied. I instead want this copy to be started, and for me to continue editing as it goes on in the background. Is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Can I force windows to challenge a user for authentication? Here is the scenario:
There is a file on the network I'd like my program to have access to. They haven't authenticated on the network when they run my software, so accessing the file fails.
If I have the user open up explorer and manually navigate to the ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Implementations of Subspace JavaScript cross-domain communication? This pdf paper describes a way to manage cross-domain communication using JavaScript with a bit of help from the server.
Does anyone have experience with this approach? I know CrossSafe has an implementation, but it's pretty quiet over there. (NSFW... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Programmatic Navigation through a Context Menu in .NET WinForms Framework 2.0 I have a Windows Forms application, written in VB.NET framework 2.0.
I have a grid that has an associated context menu with the following structure :
MenuItem1
MenuItem2 -->
SubMenuItem1
SubMenuItem2 -->
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to pivot my data with SQL Server 2005 I have the following data
How do I transform it (with SQL Server 2005) into the following format?
I have a example solution that I came up with but it seems a little clunky. It smells perhaps?
DECLARE @ProductLanguage TABLE
(
[PRODUCT_ID] int
, [LANGUAGE] varcha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the meaning of this attribute in .NET What is the meaning of this attribute?
<System.ComponentModel.DataObjectMethod(ComponentModel.DataObjectMethodType.Select, True)> _
A: This explains it perfectly
A: The DataObjectAttribute "identifies a type as an object suitable for binding to an ObjectDataSource obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Online Assembly language resources does anyone have any resources for learning assembly language on x86? I'm trying to debug a program in MSVC++6 and frequently come across assembly (like stepping into memcpy).. Previously I just ignored these but memcpy keeps throwing exceptions and I need to find out why..
Any hel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Does Instruments (ObjectAlloc/Leaks) require the simulator? This may be a very stupid question so I apologize in advance. It seems that Instruments only works for me when using the iPhone Simulator. Is there something special to getting it working when tethering the application to the iPhone? Or is that even possibl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: (C++) Need help with database I'm trying to make a database and so far, I've been using strings to store my entries from a text file into an array, but this just isn't working out. Thus, I began thinking of a new way of doing it.
What I want to do:
Lets say I have a text file with the following database...
John Smi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you make a class attribute that isn't a standard data type? I have one class that needs to grab an attribute that is set in another. It's not a standard data type though. Here's the code;
class graphics:
def __init__(self, Fullscreen = False, Width = 640, Height = 480):
print "Graphics Init"
SCREEN_SI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/379995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Delphi date comparison What is the difference between the two functions "IsSameDay" and "SameDate" in the Delphi DateUtils library?
A: The start of the day before day zero is TDateTime(-1.0). Noon of that day is TDateTime(-1.5).
IsSameDay(-1.5, -1); // False
SameDate(-1.5, -1); // True
For positive dates, the func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the draw order (OnPaint / OnPaintBackground event) in child-parent controls? Using C# .NET Compact Framework I am creating a GUI control that contains and controls children that are also custom controls (i.e. System.Windows.Forms.UserControl). Both, children and parent have custom drawing routines (OnPaint).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Browsing OLAP cubes Does anybody know any fine open source cube browser?
Ideally, it would be something built with plain javascript.
Does it even exists?
I'm planing to use it with classic asp agains a SQL database.
A: You can look at Pentaho Mondrian (including JPivot), or at Eclipse BIRT
With these, you get some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Ajax Asynchronous in IE - Error "The Data Necessary to Complete This Operation is Not Yet Available" I have a 100% valid Ajax model written in Javascript with a few inputs I use being, Get or Post method, What page to communicate with, What String to send to that page and What element on my own page I might be fiddl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Assignment Makes Pointer from Integer Without a Cast I have an Obj-C method similar to this:
-(void)getUserDefaults:(BOOL *)refreshDefaults
{
PostAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
if (refreshDefaults) {
[appDelegate retrieveDefaults];
}
}
When I call it li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Deploy ClickOnce application using HttpWebRequest I'm trying to launch my ClickOnce application using C# code with HttpWebRequest class. The application can be deployed fine using IE. But when doing the deployment with my code, it seems only the .application file is downloaded to client.
My code is as below.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The best way to resolve display username by SID? I read a list of SIDs from the registry, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList.
How would one resolve the display username (e.g. DOMAIN\user, BUILT-IN\user) given the SID string in C#?
A: Just found it on the pinvoke.net.
Altern... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: IE6/IE7 css border on select element Does anyone have a solution for styling the borders of "select" elements in Internet Explorer using CSS?
A: From my personal experience where we tryed to put the border red when an invalid entry was selected, it is impossible to put border red of select element in IE.
As stated ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Stop execution of ASP.NET application In my Application_Start() method, how can I stop the execution of the ASP.NET application when certain conditions are not met?
Throwing an exception doesn't appear to work.
A: i don't think that's possible; even if you could 'abort' the startup, the next attempt to access a URL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I best apply OOP principles to games and other input-driven GUI apps? Whenever I try to write graphical programs (whether a game or really any GUI app) I always wind up with one or two god classes with way too many methods (and long methods, too), and each class having far too many responsibilities. I have g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get SSL+mod_rewrite+Zend Framework MVC working together? So, I got ZF MVC site and want to force SSL connection on everything under my /checkout/
I tried using mod_rewrite for that, so my .htaccess would look like this:
RewriteEngine on
RewriteRule (\/checkout.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R]
Rewr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MSMQ v Database Table An existing process changes the status field of a booking record in a table, in response to user input.
I have another process to write, that will run asynchronously for records with a particular status. It will read the table record, perform some operations (including calls to third party web ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Foreign key not working in MySQL: Why can I INSERT a value that's not in the foreign column? I've created a table in MySQL:
CREATE TABLE actions ( A_id int NOT NULL AUTO_INCREMENT,
type ENUM('rate','report','submit','edit','delete') NOT NULL,
Q_id int NOT NULL,
U_id int NOT NULL,
date DATE NOT NULL,
time TIME NOT NU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: iPhone device vs. iPhone simulator I have heard of apps not working properly on the simulator but working properly on the actual iPhone device. Has anyone experienced an app that runs perfectly in the simulator but not on the actual iPhone device?
A: I know there are some differences in the OpenGL ES implementatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Best c# generics class for replacing DataTable as collection? I'm trying to bring a legacy C# .NET 1.1 application into the modern era. We use DataTables for our collections of what could have been business objects.
Given that most of the code thinks it is talking to the interface of a DataRow, what generic collect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Adding jquery include to a DotNetNuke 4.8 skin does nothing I'm trying to include JQuery in my DotNetNuke skin by adding these two lines of code at the top of my DNN skin:
<%
Page.ClientScript.RegisterClientScriptInclude("jquery", "http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I get the number of pages in a PDF file in Perl? Is there any Perl script to read multiple PDF files and get the number of pages in it?
By using PDFlib or pdftet.
A: How about just using Perl with the PDF::API2?
#!/usr/bin/perl
use PDF::API2;
foreach $doc (@ARGV)
{
$pdf = PDF::API2->open($doc);
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Working around development constraints in customer policy As described before, I work in IT consultancy and move through various customer environments. It is natural to encounter a variety of security policies, and in most environments we have had to go through a security checklist before authorizating our laptops -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Manual Core Data schema migration without "document changed" warning? The data model for my Core Data document-based app (10.5 only) is in a
framework, so automatic schema upgrades using a Core Data mapping
model don't appear to work. It appears that the Core Data machinery
doesn't find the appropriate data models o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Trustworthy developers writing about both Java and .NET? Let me first of all say that I'm NOT interested in a flame war about what is better: .NET or Java... PLEASE don't post if you want to tell me how killer .NET is or how Microsoft is the evil empire so there is no way that a developer with a soul could write .NE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to customize date format when creating excel cells through javascript (activexobject)? I'm trying to convert an HTML table to Excel in Javascript using new ActiveXObject("Excel.application"). Bascially I loop through table cells and insert the value to the corresponding cell in excel:
//for each table cell
oShee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/380100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.